/* ==========================================================================
   Lookas — Landing page styles
   Design system: "Harvest" (see DESIGN.md). The quiet content keeps the bronze
   accent; the brand signature (orange + near-black) appears only on brand
   surfaces here: the wordmark's living eyes, the dark hero, the primary CTA.
   Depth = layered solid fills + borders + radius + contrast.
   ========================================================================== */

/* ----- Fonts (self-hosted woff2 for speed + privacy) ---------------------- */
@font-face {
  font-family: 'Fredoka';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('/assets/fonts/fredoka.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 800;
  font-display: swap;
  src: url('/assets/fonts/jakarta.woff2') format('woff2');
}
@font-face {
  font-family: 'Pacifico';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('/assets/fonts/pacifico.woff2') format('woff2');
}

/* ----- Design tokens ------------------------------------------------------ */
:root {
  --bronze: #D4A373;
  --bronze-ink: #8A5A2B;     /* brand-as-text on light */
  --on-bronze: #3A2A1A;      /* ink on a bronze fill */
  --sage: #8FA45E;
  --terra: #B0563C;
  --honey: #E0B77E;

  /* Lookas brand signature (theme-independent): orange + near-black. Used on
     brand surfaces only (wordmark, hero, primary CTA) — see DESIGN.md. */
  --orange: #ED9E2F;
  --orange-deep: #D8702E;
  --on-orange: #1A1409;
  --black: #0A0A0B;

  --bg: #F4F4F5;
  --surface: #FFFFFF;
  --surface-2: #ECECEE;
  --border: #DEDEE2;
  --ink: #1B1B1D;
  --ink-soft: #6C6C72;

  --acc-soft: #F6ECDD;       /* solid bronze tint */
  --acc-border: #E7CBA3;
  --acc-ink: #8A5A2B;

  --r-sm: 14px;
  --r: 18px;
  --r-lg: 24px;
  --r-pill: 999px;

  --pad: 16px;
  --gap: 12px;
  --maxw: 1120px;

  --font-display: 'Fredoka', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --font-script: 'Pacifico', 'Brush Script MT', cursive;

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) {
    --bronze: #D4A373;
    --bronze-ink: #E0B98C;
    --on-bronze: #3A2A1A;
    --sage: #9CB069;
    --terra: #C56A4D;
    --honey: #E0B77E;

    --bg: #161617;
    --surface: #202022;
    --surface-2: #2A2A2C;
    --border: #34343A;
    --ink: #F2F2F3;
    --ink-soft: #9B9BA2;

    --acc-soft: #2C2419;
    --acc-border: #4C3A26;
    --acc-ink: #E0B98C;
  }
}
:root[data-theme='dark'] {
  --bronze: #D4A373; --bronze-ink: #E0B98C; --on-bronze: #3A2A1A;
  --sage: #9CB069; --terra: #C56A4D; --honey: #E0B77E;
  --bg: #161617; --surface: #202022; --surface-2: #2A2A2C; --border: #34343A;
  --ink: #F2F2F3; --ink-soft: #9B9BA2;
  --acc-soft: #2C2419; --acc-border: #4C3A26; --acc-ink: #E0B98C;
}

/* ----- Reset -------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; transition-duration: 0.001ms !important; }
}
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--ink);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--bronze); outline-offset: 2px; border-radius: 6px; }

/* ----- Layout primitives -------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section--tight { padding: 64px 0; }
.center { text-align: center; }

.eyebrow {
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--bronze-ink);
  display: inline-block;
}
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.01em; }
h1 { font-size: clamp(2.6rem, 7vw, 4.6rem); font-weight: 700; }
h2 { font-size: clamp(2rem, 4.5vw, 3rem); font-weight: 600; }
h3 { font-size: 1.25rem; font-weight: 600; }
.lead { font-size: clamp(1.05rem, 2vw, 1.25rem); color: var(--ink-soft); max-width: 60ch; }
.section-head { max-width: 46rem; margin: 0 auto 56px; text-align: center; }
.section-head h2 { margin: 14px 0 16px; }
.section-head .lead { margin: 0 auto; }

/* ----- Header ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--border);
}
.site-header .container { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-weight: 600; font-size: 0.95rem; color: var(--ink-soft); transition: color 0.15s var(--ease); }
.nav-links a:hover { color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 12px; }
.menu-toggle { display: none; }

/* Brand wordmark: "Lookas" in Pacifico (the oo are glossy living eyes), penned
   on. The reveal follows a hand-guided centre-line (stroke-dashoffset) so the
   bold script "writes" itself. Default = finished (no-JS / reduced-motion); the
   `.js` gate hides it pre-paint so JS can play the draw without a flash. */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.brand { display: inline-flex; align-items: center; color: var(--ink); }
.brand-svg { height: 1.7rem; width: auto; overflow: visible; display: block; }
.brand--lg .brand-svg { height: clamp(3rem, 9vw, 4.2rem); }
.wm-word { font-family: var(--font-script); }

/* The wordmark "draws itself": each real Pacifico glyph contour strokes on in
   order (driven by main.js via per-contour stroke-dashoffset), then the fill +
   glossy eyes fade in. Default = finished (no-JS / reduced-motion); the `.js`
   gate hides it pre-paint so JS can play the draw without a flash. */
.wm-stroke { fill: none; opacity: 0; }
.wm-fill, .wm-eye, .wm-pupils { opacity: 1; }
.js .wm-fill, .js .wm-eye, .js .wm-pupils { opacity: 0; }
.js .wm-stroke { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  .js .wm-fill, .js .wm-eye, .js .wm-pupils { opacity: 1; }
  .js .wm-stroke { opacity: 0; }
}

/* ----- Lookas living eyes (the glossy "oo") ------------------------------- */
.lk-eyes { --eye: 26px; display: inline-flex; align-items: center; gap: calc(var(--eye) * 0.14); vertical-align: middle; }
.lk-eye {
  position: relative; flex: none;
  width: calc(var(--eye) * 0.82); height: var(--eye);
  transform-origin: center 42%;
  transition: transform 0.12s cubic-bezier(0.34, 1.56, 0.64, 1);
}
.lk-eye.blink { transform: scaleY(0.08); transition: transform 0.07s ease-in; }
.lk-ball {
  position: absolute; inset: 0; border-radius: 50%; overflow: hidden;
  background: radial-gradient(120% 120% at 30% 22%, #fff 0%, #fcfbf7 55%, #e7e3d8 100%);
  box-shadow: inset 0 -2px 5px rgba(60, 40, 20, 0.18), inset 0 2px 3px rgba(255, 255, 255, 0.9), 0 1px 2px rgba(0, 0, 0, 0.22);
}
.lk-pupil {
  position: absolute; left: 50%; top: 50%;
  width: calc(var(--eye) * 0.82 * 0.6); height: calc(var(--eye) * 0.82 * 0.6);
  border-radius: 50%; transform: translate(-50%, -50%);
  background: radial-gradient(110% 110% at 35% 30%, #3a342b 0%, #181613 60%, #050505 100%);
  box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.5);
  transition: transform 0.32s cubic-bezier(0.5, 0, 0.2, 1);
}
.lk-catch { position: absolute; top: 20%; left: 24%; width: 26%; height: 26%; border-radius: 50%; background: rgba(255, 255, 255, 0.92); }
.lk-eyes--xl { --eye: 76px; }
.mock-eyes { --eye: 22px; }

/* ----- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-display); font-weight: 600; font-size: 1rem;
  padding: 13px 22px; border-radius: var(--r-pill);
  border: 1px solid transparent;
  transition: transform 0.1s var(--ease), background 0.15s var(--ease), border-color 0.15s var(--ease);
}
.btn:active { transform: scale(0.97); }
.btn--primary { background: var(--orange); color: var(--on-orange); }
.btn--primary:hover { background: var(--orange-deep); }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--border); }
.btn--ghost:hover { border-color: var(--bronze); }
.btn--sm { padding: 9px 16px; font-size: 0.92rem; }

/* Store badges */
.store-row { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.store-row--center { justify-content: center; }
.store-badge {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--ink); color: var(--surface);
  border-radius: var(--r); padding: 11px 20px 11px 18px;
  border: 1px solid var(--ink);
  transition: transform 0.1s var(--ease), opacity 0.15s var(--ease);
}
:root[data-theme='dark'] .store-badge,
.store-badge { /* keep solid dark pill regardless of theme for store-recognisability */ }
.store-badge:hover { transform: translateY(-2px); }
.store-badge:active { transform: scale(0.97); }
.store-badge svg { width: 26px; height: 26px; flex: none; fill: var(--surface); }
.store-badge .lines { display: flex; flex-direction: column; line-height: 1.15; text-align: left; }
.store-badge .lines small { font-size: 0.68rem; font-weight: 500; opacity: 0.85; letter-spacing: 0.02em; }
.store-badge .lines b { font-family: var(--font-display); font-weight: 600; font-size: 1.12rem; }

/* ----- Hero (the dark brand band) ----------------------------------------- */
.hero { position: relative; padding: 80px 0 92px; overflow: hidden; background: var(--black); color: #F6F5F1; }
.hero::before {
  /* faint warm grid texture on the near-black ground */
  content: ''; position: absolute; inset: 0; z-index: 0;
  background-image: linear-gradient(#1A1810 1px, transparent 1px),
                    linear-gradient(90deg, #1A1810 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(circle at 50% 28%, #000 0%, transparent 62%);
          mask-image: radial-gradient(circle at 50% 28%, #000 0%, transparent 62%);
  opacity: 0.85; pointer-events: none;
}
.hero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.hero-copy { max-width: 34rem; }
.hero .eyebrow { color: var(--orange); }
.hero-copy h1 { margin: 18px 0 20px; color: #FFFFFF; }
.hero-copy .lead { margin-bottom: 30px; color: #B7B5AE; }
.hero-cta { margin-bottom: 14px; }
.hero-note { font-size: 0.9rem; color: #908E88; display: inline-flex; align-items: center; gap: 8px; }
.hero-note .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--orange); }
/* On the dark hero the store badges flip to light pills (standard on dark) */
.hero .store-badge { background: #F6F5F1; color: #15140F; border-color: #F6F5F1; }
.hero .store-badge svg { fill: #15140F; }

/* ----- Phone mock --------------------------------------------------------- */
.phone-wrap { display: flex; justify-content: center; }
.phone {
  width: 300px; max-width: 78vw;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 38px; padding: 12px;
}
.phone-screen {
  background: var(--surface-2); border: 1px solid var(--border);
  border-radius: 28px; padding: 18px; overflow: hidden;
}
.mock-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.mock-chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--acc-soft); border: 1px solid var(--acc-border); color: var(--acc-ink);
  font-weight: 700; font-size: 0.74rem; padding: 5px 11px; border-radius: var(--r-pill);
}
.mock-chip svg { width: 14px; height: 14px; fill: var(--bronze); }
.mock-portrait {
  position: relative; aspect-ratio: 1 / 1.12; border-radius: var(--r-lg);
  background: var(--bg); border: 1px solid var(--border); overflow: hidden;
  display: grid; place-items: center;
}
.mock-portrait svg { width: 100%; height: 100%; }
.mock-eyebrow { font-size: 0.8rem; color: var(--ink-soft); text-align: center; margin: 16px 0 4px; font-weight: 600; }
.mock-age { font-family: var(--font-display); font-weight: 700; font-size: 3.4rem; text-align: center; line-height: 1; color: var(--ink); font-variant-numeric: tabular-nums; }
.mock-slider { margin: 18px 4px 6px; height: 8px; border-radius: var(--r-pill); background: var(--surface-2); border: 1px solid var(--border); position: relative; }
.mock-slider .fill { position: absolute; inset: 0 auto 0 0; width: 54%; background: var(--bronze); border-radius: var(--r-pill); }
.mock-slider .thumb { position: absolute; top: 50%; left: 54%; width: 22px; height: 22px; border-radius: 50%; background: var(--surface); border: 3px solid var(--bronze); transform: translate(-50%, -50%); }
.mock-reward {
  margin-top: 16px; display: flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--bronze); color: var(--on-bronze); font-family: var(--font-display); font-weight: 700;
  padding: 11px; border-radius: var(--r); font-size: 1.05rem;
}
.mock-reward svg { width: 20px; height: 20px; fill: var(--on-bronze); }

/* ----- Duel mock (hero phone) -------------------------------------------- */
.phone-screen--duel { display: flex; flex-direction: column; }
.duel-hud { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.duel-spots { display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 700; font-size: 0.82rem; color: var(--bronze-ink); background: var(--acc-soft); border: 1px solid var(--acc-border); padding: 4px 11px; border-radius: var(--r-pill); }
.duel-spots svg { width: 14px; height: 14px; fill: var(--bronze); }
.duel-tag { align-self: center; display: inline-flex; align-items: center; gap: 5px; font-family: var(--font-display); font-weight: 700; font-size: 0.66rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-soft); background: var(--surface); border: 1px solid var(--border); padding: 4px 11px; border-radius: var(--r-pill); }
.duel-tag svg { width: 12px; height: 12px; fill: var(--ink-soft); }
.duel-q { text-align: center; font-size: 1.5rem; font-weight: 700; margin: 9px 0 0; color: var(--ink); letter-spacing: -0.02em; }
.duel-stage { position: relative; width: 100%; aspect-ratio: 1 / 0.94; margin: 16px 0 4px; }
.duel-card { position: absolute; width: 60%; aspect-ratio: 1 / 1; border-radius: var(--r); overflow: hidden; background: var(--surface-2); border: 1.5px solid var(--border); }
.duel-card svg { width: 100%; height: 100%; display: block; }
.duel-card--a { top: 0; left: 0; transform: rotate(4deg); }
.duel-card--b { right: 0; bottom: 0; transform: rotate(-4deg); }
.duel-badge { position: absolute; top: 8px; left: 8px; width: 26px; height: 26px; border-radius: var(--r-sm); background: #0A0A0B; color: #fff; display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 0.86rem; }
.duel-card--b .duel-badge { top: auto; bottom: 8px; left: auto; right: 8px; }
.duel-vs { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%) rotate(-8deg); width: 52px; height: 52px; border-radius: var(--r); background: #fff; border: 4px solid var(--bronze); display: grid; place-items: center; font-family: var(--font-display); font-weight: 800; font-size: 1.15rem; color: var(--bronze-ink); }
.duel-submit { margin-top: auto; text-align: center; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--acc-ink); background: var(--acc-soft); border: 1px solid var(--acc-border); padding: 11px; border-radius: var(--r-pill); }

/* interactive duel: real photos, selection + reveal states */
.duel-card { appearance: none; -webkit-appearance: none; padding: 0; cursor: pointer; transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1), border-color 0.25s ease, opacity 0.3s ease; }
.duel-photo { width: 100%; height: 100%; object-fit: cover; display: block; }
.duel-vs { pointer-events: none; transition: opacity 0.28s ease, transform 0.28s ease; }
.duel-mark { position: absolute; right: 8px; bottom: 8px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 0.92rem; opacity: 0; transform: scale(0.4); transition: opacity 0.25s ease, transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1); }
.duel-card.is-selected { border-color: var(--bronze); border-width: 3px; z-index: 4; }
.duel-card--a.is-selected, .duel-card--b.is-selected { transform: rotate(0deg) scale(1.06); }
.duel-card.is-selected .duel-badge { background: var(--bronze); color: var(--on-bronze); }
.duel-card.is-dim { opacity: 0.5; }
.duel-stage.is-picked .duel-vs { opacity: 0; transform: translate(-50%, -50%) rotate(-8deg) scale(0.7); }
.duel-card.is-correct { border-color: #5FA45E; border-width: 3px; opacity: 1; }
.duel-card.is-wrong { border-color: #D2603A; border-width: 3px; }
.duel-card.is-correct .duel-mark { background: #5FA45E; opacity: 1; transform: scale(1); }
.duel-card.is-correct .duel-mark::after { content: '\2713'; }
.duel-card.is-wrong .duel-mark { background: #D2603A; opacity: 1; transform: scale(1); }
.duel-card.is-wrong .duel-mark::after { content: '\2715'; }
.duel-q { transition: color 0.25s ease; }
.duel-q.is-win { color: #5FA45E; }
.duel-q.is-lose { color: #D2603A; }
.duel-submit { appearance: none; -webkit-appearance: none; width: 100%; cursor: pointer; transition: background 0.25s ease, color 0.25s ease, border-color 0.25s ease; }
.duel-submit.is-active { color: var(--on-bronze); background: var(--bronze); border-color: var(--bronze); }
.duel-submit.is-result { color: var(--ink); background: var(--surface-2); border-color: var(--border); }
@media (prefers-reduced-motion: no-preference) {
  .float-chip.pop { animation: chipPop 0.6s cubic-bezier(0.34, 1.56, 0.64, 1); }
  @keyframes chipPop { 0% { transform: scale(1); } 35% { transform: scale(1.3); } 100% { transform: scale(1); } }
}

/* ----- Modes / nationality showcase -------------------------------------- */
.modes-grid { display: grid; grid-template-columns: 0.92fr 1.08fr; gap: 56px; align-items: center; }
.modes-copy .eyebrow { color: var(--bronze-ink); }
.modes-copy h2 { margin: 14px 0 16px; }
.modes-list { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 12px; }
.modes-list li { display: flex; align-items: center; gap: 12px; color: var(--ink); font-weight: 600; }
.modes-list li svg { width: 20px; height: 20px; flex: none; fill: var(--bronze); background: var(--acc-soft); border: 1px solid var(--acc-border); border-radius: var(--r-sm); padding: 7px; box-sizing: content-box; }

.nat-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 18px; }
.nat-head { display: flex; align-items: center; gap: 12px; margin-bottom: 2px; }
.nat-thumb { width: 50px; height: 50px; border-radius: var(--r-sm); overflow: hidden; flex: none; background: var(--surface-2); }
.nat-thumb svg { width: 100%; height: 100%; display: block; }
.nat-headtext { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.nat-q { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; color: var(--ink); letter-spacing: -0.01em; }

.natmap { position: relative; margin: 16px 0; aspect-ratio: 2 / 1.04; border-radius: var(--r); background-color: var(--surface-2); border: 1px solid var(--border); overflow: hidden; background-image: radial-gradient(var(--border) 1.1px, transparent 1.1px); background-size: 15px 15px; background-position: 7px 7px; }
.nat-world { position: absolute; inset: 0; width: 100%; height: 100%; }
.nat-world path { fill: var(--sage); opacity: 0.34; }

.pin { position: absolute; width: 0; height: 0; }
.pin-flag { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 25px; height: 25px; border-radius: 50%; overflow: hidden; border: 2px solid var(--surface); }
.pin .flag { width: 100%; height: 100%; display: block; }
.pin--sel .pin-flag { width: 34px; height: 34px; border-color: var(--bronze); border-width: 3px; z-index: 3; }
.pin-ping { position: absolute; left: 50%; top: 50%; width: 34px; height: 34px; transform: translate(-50%, -50%); border-radius: 50%; border: 2px solid var(--bronze); opacity: 0; }
.pin-label { position: absolute; left: 50%; bottom: calc(50% + 26px); transform: translateX(-50%); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; background: var(--ink); color: #fff; font-family: var(--font-display); font-weight: 700; font-size: 0.78rem; padding: 4px 9px; border-radius: var(--r-pill); }
.pin-label .flag { width: 16px; height: 12px; border-radius: 3px; }
.pin-label::after { content: ''; position: absolute; left: 50%; bottom: -3px; transform: translateX(-50%) rotate(45deg); width: 8px; height: 8px; background: var(--ink); border-radius: 1px; }

.nat-submit { display: flex; align-items: center; justify-content: center; gap: 9px; font-family: var(--font-display); font-weight: 700; color: var(--on-bronze); background: var(--bronze); padding: 12px; border-radius: var(--r-pill); }
.nat-submit .flag { width: 22px; height: 15px; border-radius: 4px; flex: none; }

@media (prefers-reduced-motion: no-preference) {
  .js .natvisual.reveal .pin-flag, .js .natvisual.reveal .pin-label { opacity: 0; }
  .natvisual.reveal.in .pin-flag { animation: pinDrop 0.55s cubic-bezier(0.34, 1.56, 0.64, 1) both; animation-delay: calc(var(--i, 0) * 90ms + 250ms); }
  .natvisual.reveal.in .pin-label { animation: labelIn 0.5s ease forwards 1s, floatLabel 3s ease-in-out infinite 1.5s; }
  .natvisual.reveal.in .pin--sel .pin-ping { animation: pinPing 2.6s cubic-bezier(0, 0, 0.2, 1) infinite 1.3s; }
  @keyframes pinDrop { from { opacity: 0; transform: translate(-50%, -50%) translateY(-16px) scale(0.3); } to { opacity: 1; transform: translate(-50%, -50%); } }
  @keyframes labelIn { from { opacity: 0; transform: translateX(-50%) translateY(6px); } to { opacity: 1; transform: translateX(-50%); } }
  @keyframes floatLabel { 0%, 100% { transform: translateX(-50%) translateY(0); } 50% { transform: translateX(-50%) translateY(-4px); } }
  @keyframes pinPing { 0% { opacity: 0.65; transform: translate(-50%, -50%) scale(0.6); } 80%, 100% { opacity: 0; transform: translate(-50%, -50%) scale(2.7); } }
}

@media (max-width: 860px) {
  .modes-grid { grid-template-columns: 1fr; gap: 30px; }
}

/* floating reward chip animation */
.float-chip {
  position: absolute; right: -10px; top: 30%;
  background: var(--surface); border: 1px solid var(--acc-border); color: var(--acc-ink);
  font-family: var(--font-display); font-weight: 700; font-size: 0.95rem;
  padding: 8px 14px; border-radius: var(--r-pill); display: inline-flex; gap: 6px; align-items: center;
}
.float-chip svg { width: 16px; height: 16px; fill: var(--bronze); }
.float-chip.f2 { top: 56%; left: -14px; right: auto; }
@media (prefers-reduced-motion: no-preference) {
  .float-chip { animation: floaty 3.4s var(--ease) infinite; }
  .float-chip.f2 { animation-delay: 1.2s; }
  @keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
}

/* ----- Steps (how it works) ---------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: step; }
.step { position: relative; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 30px 26px; }
.step .num { counter-increment: step; font-family: var(--font-display); font-weight: 700; font-size: 0.85rem; color: var(--bronze-ink); letter-spacing: 0.05em; }
.step .num::before { content: '0' counter(step); }
.step .icon { width: 52px; height: 52px; border-radius: var(--r); background: var(--acc-soft); border: 1px solid var(--acc-border); display: grid; place-items: center; margin: 16px 0 18px; }
.step .icon svg { width: 26px; height: 26px; fill: var(--bronze); }
.step h3 { margin-bottom: 8px; }
.step p { color: var(--ink-soft); font-size: 0.98rem; }

/* ----- Feature grid ------------------------------------------------------- */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 26px 22px; transition: transform 0.15s var(--ease), border-color 0.15s var(--ease);
}
.feature:hover { transform: translateY(-3px); border-color: var(--acc-border); }
.feature .icon { width: 46px; height: 46px; border-radius: var(--r-sm); background: var(--acc-soft); border: 1px solid var(--acc-border); display: grid; place-items: center; margin-bottom: 16px; }
.feature .icon svg { width: 24px; height: 24px; fill: var(--bronze); }
.feature h3 { font-size: 1.08rem; margin-bottom: 7px; }
.feature p { color: var(--ink-soft); font-size: 0.93rem; line-height: 1.55; }

/* ----- Highlight band ----------------------------------------------------- */
.highlight {
  background: var(--acc-soft); border-top: 1px solid var(--acc-border); border-bottom: 1px solid var(--acc-border);
}
.highlight .container { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.highlight h2 { margin: 12px 0 14px; }
.highlight .lead { color: var(--ink); opacity: 0.85; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 24px 18px; text-align: center; }
.stat .val { font-family: var(--font-display); font-weight: 700; font-size: clamp(2rem, 5vw, 2.8rem); color: var(--bronze-ink); line-height: 1; font-variant-numeric: tabular-nums; }
.stat .lab { font-size: 0.82rem; color: var(--ink-soft); margin-top: 10px; }

/* ----- Download CTA ------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg);
  padding: 56px 32px; max-width: 720px; margin: 0 auto;
}
.cta-card h2 { margin: 14px 0 14px; }
.cta-card .lead { margin: 0 auto 30px; }
.cta-card .note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 18px; }

/* ----- FAQ ---------------------------------------------------------------- */
.faq-list { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r); overflow: hidden; }
.faq-item summary {
  list-style: none; cursor: pointer; padding: 20px 22px; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  font-family: var(--font-display); font-weight: 600; font-size: 1.05rem;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus { flex: none; width: 22px; height: 22px; position: relative; transition: transform 0.2s var(--ease); }
.faq-item summary .plus::before, .faq-item summary .plus::after { content: ''; position: absolute; background: var(--bronze); border-radius: 2px; }
.faq-item summary .plus::before { top: 10px; left: 2px; right: 2px; height: 2px; }
.faq-item summary .plus::after { left: 10px; top: 2px; bottom: 2px; width: 2px; transition: transform 0.2s var(--ease); }
.faq-item[open] summary .plus::after { transform: rotate(90deg); }
.faq-item .answer { padding: 0 22px 20px; color: var(--ink-soft); }

/* ----- Footer ------------------------------------------------------------- */
.site-footer { border-top: 1px solid var(--border); background: var(--surface); padding: 56px 0 40px; }
.footer-grid { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; align-items: flex-start; }
.footer-brand { max-width: 22rem; }
.footer-brand p { color: var(--ink-soft); font-size: 0.95rem; margin-top: 14px; }
.footer-col h4 { font-family: var(--font-body); font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.12em; color: var(--ink-soft); margin-bottom: 14px; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--ink); font-weight: 500; font-size: 0.95rem; }
.footer-col a:hover { color: var(--bronze-ink); }
.lang-switch { display: flex; flex-wrap: wrap; gap: 8px; }
.lang-switch a {
  padding: 7px 13px; border-radius: var(--r-pill); border: 1px solid var(--border);
  font-size: 0.85rem; font-weight: 600; color: var(--ink-soft);
}
.lang-switch a.active { background: var(--acc-soft); border-color: var(--acc-border); color: var(--acc-ink); }
.footer-bottom { margin-top: 44px; padding-top: 24px; border-top: 1px solid var(--border); display: flex; flex-wrap: wrap; gap: 12px; justify-content: space-between; align-items: center; }
.footer-bottom small { color: var(--ink-soft); font-size: 0.85rem; }

/* theme toggle button */
.theme-toggle { width: 40px; height: 40px; border-radius: var(--r-pill); border: 1px solid var(--border); background: var(--surface); display: grid; place-items: center; transition: border-color 0.15s var(--ease); }
.theme-toggle:hover { border-color: var(--bronze); }
.theme-toggle svg { width: 20px; height: 20px; fill: var(--ink-soft); }
.theme-toggle .moon { display: none; }
:root[data-theme='dark'] .theme-toggle .sun { display: none; }
:root[data-theme='dark'] .theme-toggle .moon { display: block; }

/* ----- Legal / content pages --------------------------------------------- */
.content-page { padding: 64px 0 96px; }
.content-page .container { max-width: 760px; }
.content-page .back { display: inline-flex; align-items: center; gap: 7px; color: var(--ink-soft); font-weight: 600; font-size: 0.9rem; margin-bottom: 28px; }
.content-page .back:hover { color: var(--ink); }
.content-page .back svg { width: 16px; height: 16px; fill: currentColor; }
.content-page h1 { font-size: clamp(2rem, 5vw, 2.8rem); margin-bottom: 8px; }
.content-page .updated { color: var(--ink-soft); font-size: 0.88rem; margin-bottom: 40px; }
.content-page h2 { font-size: 1.3rem; margin: 34px 0 12px; }
.content-page p { color: var(--ink-soft); margin-bottom: 12px; }
.content-page ul { color: var(--ink-soft); margin: 0 0 12px 22px; }
.content-page li { margin-bottom: 6px; }
.content-page h3 { font-size: 1.04rem; margin: 20px 0 8px; }
.content-page p a, .content-page li a { color: var(--bronze-ink); font-weight: 600; word-break: break-word; }
.content-page p a:hover, .content-page li a:hover { text-decoration: underline; }

/* ----- Account deletion form --------------------------------------------- */
.del-card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 32px; margin-top: 28px; }
.del-card .what { background: var(--acc-soft); border: 1px solid var(--acc-border); border-radius: var(--r); padding: 18px 20px; margin: 8px 0 26px; }
.del-card .what h3 { font-size: 1rem; margin-bottom: 10px; color: var(--acc-ink); }
.del-card .what ul { margin-left: 20px; color: var(--ink); }
.del-card .what li { margin-bottom: 5px; }
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 0.92rem; margin-bottom: 7px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--ink); background: var(--bg);
  border: 1px solid var(--border); border-radius: var(--r-sm); padding: 12px 14px;
  transition: border-color 0.15s var(--ease);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--bronze); }
.field textarea { resize: vertical; min-height: 92px; }
.del-card .submit-row { margin-top: 24px; }
.del-card .fallback { margin-top: 18px; font-size: 0.88rem; color: var(--ink-soft); }
.del-card .fallback a { color: var(--bronze-ink); font-weight: 600; }
.timing-note { font-size: 0.88rem; color: var(--ink-soft); margin-top: 22px; }


/* ----- Reveal on scroll --------------------------------------------------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity 0.55s var(--ease), transform 0.55s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay='1'] { transition-delay: 0.08s; }
.reveal[data-delay='2'] { transition-delay: 0.16s; }
.reveal[data-delay='3'] { transition-delay: 0.24s; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; } }

/* ----- Responsive --------------------------------------------------------- */
@media (max-width: 900px) {
  .hero .container { grid-template-columns: 1fr; gap: 44px; }
  .hero-copy { max-width: none; text-align: center; margin: 0 auto; }
  .hero-cta { justify-content: center; }
  .highlight .container { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .menu-toggle {
    display: grid; place-items: center; width: 42px; height: 42px;
    border: 1px solid var(--border); border-radius: var(--r-pill); background: var(--surface);
  }
  .menu-toggle svg { width: 22px; height: 22px; fill: var(--ink); }
  .nav-links.open {
    display: flex; flex-direction: column; gap: 4px; position: absolute; top: 68px; left: 0; right: 0;
    background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 24px 22px;
  }
  .nav-links.open a { padding: 10px 0; font-size: 1.05rem; }
}
@media (max-width: 620px) {
  .section { padding: 64px 0; }
  .steps { grid-template-columns: 1fr; }
  .feature-grid { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr; }
  .container { padding: 0 18px; }
  .cta-card { padding: 40px 22px; }
}
