/* euser.net: shared styles for the hub and the app pages. */

@font-face {
  font-family: "Barlow Condensed";
  /* Latin only (English, Spanish, …) and WOFF2: about a tenth of the original file. Other characters fall back. */
  src: url("/fonts/BarlowCondensed-ExtraBold.woff2") format("woff2");
  font-weight: 800;
  font-display: swap;
}

:root {
  --bg: #0b0c0f;
  --surface: #15171c;
  --surface-2: #1d2026;
  --line: rgba(255, 255, 255, 0.08);
  --text: #f4f5f6;
  --muted: #9095a0;
  --accent: #ff5a4e;
  --accent-text: #ff7d73;
  --accent-soft: rgba(255, 90, 78, 0.12);
  --accent-deep: #d33a2f;
  --accent-fill: #dc3834;       /* behind white text: 4.5:1, same as the app's buttons */
  --free: #4fd8ff;
  --text-2: #c9ccd2;            /* body copy on the page */
  --line-strong: rgba(255, 255, 255, 0.28);
  --topbar: rgba(11, 12, 15, 0.78);
  --featured: linear-gradient(135deg, #1b1d23 0%, #15171c 60%);
  --store-bg: #fff;
  --store-text: #000;
  --raised-shadow: 0 20px 50px rgba(0, 0, 0, 0.5);
  --phone-shadow: 0 40px 80px rgba(0, 0, 0, 0.55);
  --radius: 22px;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  --ui: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Inter, Roboto, sans-serif;
  color-scheme: dark;
}

/* Light: the app's own light colours. Used when the device is set to light, unless the visitor picked dark,
   and whenever the visitor picked light with the switch in the header. */
@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f4f5f1; --surface: #ffffff; --surface-2: #ecede8; --line: rgba(16, 20, 10, 0.09);
    --text: #0e1013; --muted: #5f646d; --text-2: #3b4048; --accent-text: #c4352b; --accent-soft: #ffe9e6;
    --line-strong: rgba(16, 20, 10, 0.22); --topbar: rgba(244, 245, 241, 0.82);
    --featured: linear-gradient(135deg, #ffffff 0%, #f7f7f4 60%);
    --store-bg: #0e1013; --store-text: #fff;
    --raised-shadow: 0 20px 50px rgba(20, 24, 10, 0.16); --phone-shadow: 0 30px 60px rgba(20, 24, 10, 0.22);
    color-scheme: light;
  }
}
:root[data-theme="light"] {
  --bg: #f4f5f1; --surface: #ffffff; --surface-2: #ecede8; --line: rgba(16, 20, 10, 0.09);
  --text: #0e1013; --muted: #5f646d; --text-2: #3b4048; --accent-text: #c4352b; --accent-soft: #ffe9e6;
  --line-strong: rgba(16, 20, 10, 0.22); --topbar: rgba(244, 245, 241, 0.82);
  --featured: linear-gradient(135deg, #ffffff 0%, #f7f7f4 60%);
  --store-bg: #0e1013; --store-text: #fff;
  --raised-shadow: 0 20px 50px rgba(20, 24, 10, 0.16); --phone-shadow: 0 30px 60px rgba(20, 24, 10, 0.22);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 var(--ui);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: var(--accent-text); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }

/* ---------- Top bar ---------- */
.top {
  position: sticky; top: 0; z-index: 10;
  background: var(--topbar);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.top .wrap { display: flex; align-items: center; gap: 16px; height: 64px; }
.wordmark {
  font: 800 26px/1 var(--display); letter-spacing: 0.01em; color: var(--text);
  display: inline-flex; align-items: baseline; gap: 2px;
}
.wordmark:hover { text-decoration: none; }
.wordmark i { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); display: inline-block; }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 22px; font-size: 15px; }
.top nav a { color: var(--muted); }
.top nav a:hover { color: var(--text); text-decoration: none; }
.top nav a.btn-primary, .top nav a.btn-primary:hover { color: #fff; }
.app-crumb { display: inline-flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: 15px; }
.app-crumb img { width: 30px; height: 30px; border-radius: 8px; }
.app-crumb:hover { text-decoration: none; }
.crumb-sep { color: var(--muted); }

.theme-switch {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface);
  color: var(--text); display: grid; place-items: center; cursor: pointer; padding: 0; flex: none;
}
.theme-switch svg { width: 18px; height: 18px; }
.theme-switch .sun { display: none; }
:root[data-theme="dark"] .theme-switch .sun { display: block; }
:root[data-theme="dark"] .theme-switch .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-switch .sun { display: block; }
  :root:not([data-theme="light"]) .theme-switch .moon { display: none; }
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 14px;
  font: 600 16px/1 var(--ui); border: 1px solid transparent; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn-primary { background: var(--accent-fill); color: #fff; box-shadow: 0 10px 30px rgba(220, 56, 52, 0.28); }
.btn-primary:hover { background: #c92f2b; }
.btn-ghost { background: var(--surface-2); color: var(--text); border-color: var(--line); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: 14px; border-radius: 11px; }
.btn svg { width: 20px; height: 20px; flex: none; }

/* App Store button: shows "Coming soon" until the app is live (see data-appstore in the HTML). */
.store {
  display: inline-flex; align-items: center; gap: 12px;
  min-height: 56px; padding: 0 20px 0 16px; border-radius: 14px;
  background: var(--store-bg); color: var(--store-text); border: 1px solid var(--store-bg);
}
.store:hover { text-decoration: none; transform: translateY(-1px); }
.store svg { width: 26px; height: 26px; }
.store span { display: grid; line-height: 1.1; text-align: left; }
.store small { font-size: 11px; font-weight: 500; letter-spacing: 0.02em; }
.store b { font-size: 19px; font-weight: 600; letter-spacing: -0.01em; }
.store.soon { background: transparent; color: var(--text); border-color: var(--line-strong); }

.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cta-note { color: var(--muted); font-size: 14px; margin: 14px 0 0; }

/* ---------- Type ---------- */
.eyebrow {
  font: 700 13px/1 var(--ui); letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent-text);
}
.display {
  font: 800 clamp(54px, 9vw, 112px)/0.9 var(--display); text-transform: uppercase; letter-spacing: -0.005em;
  margin: 14px 0 18px;
}
.display em { font-style: normal; color: var(--accent); }
.h2 { font: 800 clamp(38px, 5.5vw, 64px)/0.95 var(--display); text-transform: uppercase; margin: 10px 0 14px; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--text-2); max-width: 34em; margin: 0 0 28px; }
.muted { color: var(--muted); }

section { padding: clamp(64px, 10vw, 120px) 0; }
.section-head { max-width: 640px; margin-bottom: 44px; }
.section-head p { color: var(--muted); margin: 0; font-size: 18px; }

/* ---------- Phone frame ---------- */
.phone {
  position: relative; width: 300px; aspect-ratio: 599 / 1300;
  border-radius: 46px; padding: 10px; background: #050506;
  box-shadow: 0 0 0 1.5px #2b2e35, var(--phone-shadow);
}
.phone img { width: 100%; height: 100%; object-fit: cover; border-radius: 37px; }
.phone.small { width: 230px; border-radius: 36px; padding: 8px; }
.phone.small img { border-radius: 29px; }

/* ---------- Cards ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px;
}
.icon-dot {
  width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center;
  background: var(--accent-soft); color: var(--accent-text); margin-bottom: 18px;
}
.icon-dot svg { width: 22px; height: 22px; }
.card h3 { font-size: 19px; margin: 0 0 6px; letter-spacing: -0.01em; }
.card p { margin: 0; color: var(--muted); font-size: 16px; }

/* ---------- Footer ---------- */
footer.site {
  border-top: 1px solid var(--line); padding: 40px 0 56px; color: var(--muted); font-size: 14px;
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px 32px; align-items: center; }
footer.site nav { display: flex; flex-wrap: wrap; gap: 20px; margin-left: auto; }
footer.site a { color: var(--muted); }
footer.site a:hover { color: var(--text); }

/* ---------- Hub ---------- */
.hub-hero { padding: clamp(72px, 12vw, 150px) 0 clamp(48px, 7vw, 80px); position: relative; }
.hub-hero::before {
  content: ""; position: absolute; inset: -200px 0 auto; height: 620px; z-index: -1;
  background: radial-gradient(600px 320px at 18% 30%, rgba(255, 90, 78, 0.16), transparent 70%);
}
.hub-hero .display { font-size: clamp(56px, 9.5vw, 124px); max-width: 11ch; }

.featured {
  display: grid; grid-template-columns: 1.05fr 1fr; gap: 0; overflow: hidden; padding: 0;
  background: var(--featured);
}
.featured-copy { padding: clamp(28px, 4vw, 52px); display: flex; flex-direction: column; justify-content: center; }
.featured-copy .app-id { display: flex; align-items: center; gap: 16px; margin-bottom: 22px; }
.featured-copy .app-id img { width: 72px; height: 72px; border-radius: 17px; box-shadow: 0 8px 24px rgba(255, 90, 78, 0.25); }
.featured-copy h3 { font: 800 40px/0.95 var(--display); text-transform: uppercase; margin: 0; }
.featured-copy .tag { color: var(--muted); font-size: 15px; margin-top: 4px; }
.featured-copy p.desc { color: var(--text-2); font-size: 17px; margin: 0 0 26px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; list-style: none; }
.chips li { font-size: 13px; padding: 6px 12px; border-radius: 99px; background: var(--surface-2); color: var(--text-2); border: 1px solid var(--line); }
.featured-art {
  position: relative; min-height: 460px;
  background: linear-gradient(160deg, #ff7a6e 0%, #ff5a4e 45%, #d33a2f 100%);
  display: flex; align-items: flex-end; justify-content: center; gap: 18px; padding-top: 48px; overflow: hidden;
}
.featured-art .phone { width: 220px; border-radius: 34px; padding: 8px; margin-bottom: -60px; }
.featured-art .phone img { border-radius: 27px; }
.featured-art .phone:nth-child(2) { width: 200px; margin-bottom: -110px; opacity: 0.96; }

.next-apps { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 20px; }
.placeholder { border-style: dashed; background: transparent; }

.principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.contact-band { text-align: left; }
.contact-band .card { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px; padding: clamp(28px, 4vw, 44px); }
.contact-band h2 { font: 800 clamp(32px, 4vw, 44px)/1 var(--display); text-transform: uppercase; margin: 0 0 6px; }
.contact-band p { margin: 0; color: var(--muted); }

/* ---------- App page ---------- */
.app-hero { padding: clamp(48px, 8vw, 96px) 0 clamp(40px, 6vw, 72px); position: relative; overflow: hidden; }
.app-hero::before {
  content: ""; position: absolute; z-index: -1; right: -10%; top: -20%; width: 70%; height: 140%;
  background: radial-gradient(closest-side, rgba(255, 90, 78, 0.22), transparent);
}
.app-hero .wrap { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 48px; align-items: center; }
.app-hero .app-icon { width: 88px; height: 88px; border-radius: 21px; margin-bottom: 26px; box-shadow: 0 12px 36px rgba(255, 90, 78, 0.3); }
.hero-phones { position: relative; height: 640px; }
.hero-phones .phone { position: absolute; }
.hero-phones .phone:first-child { right: 150px; top: 60px; width: 250px; transform: rotate(-5deg); opacity: 0.9; }
.hero-phones .phone:last-child { right: 0; top: 0; }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.stats div { padding: 26px 24px; border-left: 1px solid var(--line); }
.stats div:first-child { border-left: 0; }
.stats b { display: block; font: 800 52px/1 var(--display); color: var(--text); }
.stats b em { font-style: normal; color: var(--accent); }
.stats span { color: var(--muted); font-size: 14px; }

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }

.spotlight { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 88px); align-items: center; }
.spotlight + .spotlight { margin-top: clamp(72px, 10vw, 120px); }
.spotlight.flip .spotlight-art { order: -1; }
.spotlight-art { display: flex; justify-content: center; gap: 20px; position: relative; }
.spotlight-art::before {
  content: ""; position: absolute; inset: 10% 5%; z-index: -1; border-radius: 40px;
  background: radial-gradient(closest-side, rgba(255, 90, 78, 0.18), transparent);
}
.spotlight-art .phone:nth-child(2) { margin-top: 70px; }
.checks { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; }
.checks li { display: flex; gap: 12px; color: var(--text-2); }
.checks li::before {
  content: ""; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 50%;
  background: var(--accent-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23ff7d73' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.levels { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 8px; }
.level { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 20px; position: relative; overflow: hidden; }
.level small { color: var(--muted); font-size: 13px; }
.level b { display: block; font: 800 30px/1 var(--display); text-transform: uppercase; margin: 6px 0 14px; }
.level .bar { height: 6px; border-radius: 3px; background: var(--surface-2); overflow: hidden; }
.level .bar i { display: block; height: 100%; background: var(--accent); border-radius: 3px; }
.level p { margin: 12px 0 0; color: var(--muted); font-size: 14px; }
.level p strong { color: var(--text); font-weight: 600; }

.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.steps .card { position: relative; }
.steps .card::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; margin-bottom: 18px;
  background: var(--accent-fill); color: #fff; font: 800 22px/1 var(--display);
}

.gallery {
  display: flex; gap: 22px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 10px 20px 40px;
  scrollbar-width: none; margin-inline: calc((100vw - min(1120px, 100vw - 40px)) / -2);
  padding-inline: calc((100vw - min(1120px, 100vw - 40px)) / 2);
}
.gallery::-webkit-scrollbar { display: none; }
.gallery figure { margin: 0; scroll-snap-align: center; flex: none; text-align: center; }
.gallery figcaption { color: var(--muted); font-size: 14px; margin-top: 18px; }

.privacy-band .card {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: start;
  background: linear-gradient(135deg, rgba(255, 90, 78, 0.10), rgba(255, 90, 78, 0.02) 60%), var(--surface);
  padding: clamp(28px, 4vw, 48px);
}
.privacy-band .shield { width: 64px; height: 64px; border-radius: 18px; background: var(--accent-soft); display: grid; place-items: center; color: var(--accent-text); }
.privacy-band .shield svg { width: 30px; height: 30px; }
.privacy-band ul { margin: 18px 0 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 28px; }
.privacy-band li { color: var(--text-2); padding-left: 18px; position: relative; }
.privacy-band li::before { content: ""; position: absolute; left: 0; top: 0.65em; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.faq { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); padding: 4px 0; }
.faq summary {
  cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 20px; align-items: center;
  padding: 18px 0; font-size: 18px; font-weight: 600;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 26px/1 var(--ui); color: var(--muted); transition: transform 0.2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 20px; color: var(--text-2); max-width: 44em; }

.final-cta { text-align: center; }
.final-cta .card {
  padding: clamp(40px, 7vw, 80px) 24px;
  background: linear-gradient(160deg, #ff7a6e 0%, #ff5a4e 45%, #d33a2f 100%); border: 0;
}
.final-cta .h2 { color: #fff; margin-top: 0; }
.final-cta p { color: rgba(255, 255, 255, 0.88); font-size: 19px; margin: 0 auto 30px; max-width: 30em; }
.final-cta .cta-row { justify-content: center; }
.final-cta .store.soon { color: #fff; border-color: rgba(255, 255, 255, 0.6); background: transparent; }
.final-cta .cta-note { color: rgba(255, 255, 255, 0.8); }

/* ---------- Cookie choice (analytics.js) ---------- */
[data-cookie-settings] { display: none; }
.has-analytics [data-cookie-settings] { display: inline; }
#consent {
  position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; margin-inline: auto; max-width: 560px;
  display: flex; flex-wrap: wrap; align-items: center; gap: 14px 18px;
  padding: 18px 20px; border-radius: 18px; background: var(--surface-2); border: 1px solid var(--line);
  box-shadow: var(--raised-shadow); font-size: 15px;
}
#consent p { margin: 0; flex: 1 1 260px; color: var(--text-2); }
#consent .consent-actions { display: flex; gap: 10px; margin-left: auto; }
.cookie-link { background: none; border: 0; padding: 0; font: inherit; color: var(--muted); cursor: pointer; }
.cookie-link:hover { color: var(--text); }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .featured, .app-hero .wrap, .spotlight { grid-template-columns: 1fr; }
  .spotlight.flip .spotlight-art { order: 0; }
  .features, .principles, .steps { grid-template-columns: 1fr 1fr; }
  .levels { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
  .stats div:nth-child(3) { border-left: 0; }
  .stats div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .hero-phones { height: 560px; max-width: 460px; margin: 0 auto; width: 100%; }
  .featured-art { min-height: 400px; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .top nav .hide-sm { display: none; }
  .features, .principles, .steps, .next-apps, .privacy-band ul { grid-template-columns: 1fr; }
  .privacy-band .card { grid-template-columns: 1fr; }
  .hero-phones { height: 470px; }
  .hero-phones .phone:last-child { width: 230px; right: 4%; }
  .hero-phones .phone:first-child { width: 190px; right: 46%; top: 50px; }
  .spotlight-art .phone { width: 46%; max-width: 230px; border-radius: 30px; padding: 6px; }
  .spotlight-art .phone img { border-radius: 25px; }
  .featured-art .phone { width: 46%; }
  .featured-art .phone:nth-child(2) { width: 42%; }
  .stats b { font-size: 42px; }
  .stats div { padding: 20px 18px; }
  .card { padding: 22px; }
  .contact-band .card { flex-direction: column; align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn, .store { transition: none; }
}
