/* ============================================================
   DeepPockets — landing page styles
   Palette: warm cream canvas · deep emerald · gold · ink
   Type:    Fraunces (display serif) + Inter (UI/body)
   ============================================================ */

:root {
  /* brand */
  --ink:        #101a17;
  --ink-soft:   #33413c;
  --muted:      #6a7873;
  --cream:      #f7f4ec;
  --cream-2:    #efe9dc;
  --line:       #e2dccc;
  --emerald:    #0f7a5a;
  --emerald-br: #17b57e;
  --emerald-dk: #0a4d3a;
  --gold:       #d19a3d;
  --gold-soft:  #e7c67e;
  --surface-dk: #0a1210;
  --surface-dk2:#0f1d18;

  --shadow-sm: 0 1px 2px rgba(16,26,23,.05), 0 4px 14px rgba(16,26,23,.05);
  --shadow-md: 0 10px 30px rgba(16,26,23,.09), 0 2px 8px rgba(16,26,23,.05);
  --shadow-lg: 0 30px 70px rgba(10,18,16,.28);

  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;

  --maxw: 1180px;
  --ease: cubic-bezier(.22,.61,.36,1);
  --font-body: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --font-disp: "Fraunces", Georgia, "Times New Roman", serif;
}

/* ---------- reset-ish ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--ink);
  background: var(--cream);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-disp); font-weight: 500; letter-spacing: -0.02em; line-height: 1.08; }
p { margin: 0; }
.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;
}
.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: clamp(20px, 5vw, 48px); }

/* ---------- buttons ---------- */
.btn {
  --pad-y: .72em; --pad-x: 1.3em;
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  padding: var(--pad-y) var(--pad-x);
  font-family: var(--font-body); font-size: .96rem; font-weight: 600;
  border-radius: 999px; border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease), background .25s var(--ease), box-shadow .25s var(--ease), color .25s var(--ease), border-color .25s var(--ease);
  will-change: transform;
}
.btn--lg { --pad-y: .95em; --pad-x: 1.7em; font-size: 1.02rem; }
.btn--primary {
  background: linear-gradient(180deg, var(--emerald-br), var(--emerald));
  color: #fff; box-shadow: 0 8px 22px rgba(15,122,90,.32);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(15,122,90,.4); }
.btn--primary:active { transform: translateY(0); }
.btn--ghost {
  background: rgba(255,255,255,.08); color: #fff; border-color: rgba(255,255,255,.28);
  backdrop-filter: blur(8px);
}
.btn--ghost:hover { background: rgba(255,255,255,.16); }
.nav.is-scrolled .btn--ghost { background: var(--emerald); border-color: transparent; box-shadow: 0 6px 18px rgba(15,122,90,.3); }
.nav.is-scrolled .btn--ghost:hover { background: var(--emerald-dk); }
.btn--link { background: none; color: #eae7dd; font-weight: 500; padding-inline: .4em; }
.btn--link:hover { color: #fff; }
.btn:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.eyebrow {
  display: inline-block; font-size: .78rem; font-weight: 600; letter-spacing: .14em;
  text-transform: uppercase; color: var(--emerald); margin-bottom: 18px;
}
.eyebrow--light { color: var(--gold-soft); }
.eyebrow--voice { display: inline-flex; align-items: center; gap: 10px; }

/* ---------- the "voice" motif ----------
   Five equalizer bars that breathe like speech. This is the site-wide sign
   that your money is saying something — it recurs in the hero, the problem
   section and every KPI reply, so "suno" has a consistent visual verb.
   Inherits currentColor so it works on cream and on ink.            */
.voice { display: inline-flex; align-items: center; gap: 3px; height: 14px; flex: none; }
.voice i { width: 3px; height: 30%; border-radius: 2px; background: currentColor; animation: voice-bar 1.15s var(--ease) infinite; }
.voice i:nth-child(2) { animation-delay: .10s; }
.voice i:nth-child(3) { animation-delay: .22s; }
.voice i:nth-child(4) { animation-delay: .34s; }
.voice i:nth-child(5) { animation-delay: .46s; }
.voice--sm { height: 11px; }
.voice--sm i { width: 2.5px; }
@keyframes voice-bar {
  0%, 100% { height: 26%; opacity: .55; }
  50%      { height: 100%; opacity: 1; }
}

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  transition: background .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s var(--ease);
}
.nav.is-scrolled {
  background: rgba(247,244,236,.82);
  backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 var(--line);
}
.nav__inner { display: flex; align-items: center; gap: 24px; height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; }
.brand__name { font-family: var(--font-disp); font-size: 1.28rem; font-weight: 600; letter-spacing: -.02em; color: #fff; }
.nav.is-scrolled .brand__name { color: var(--ink); }
/* The logo is a mid-green mark — a soft shadow keeps it legible on the dark hero */
.brand__mark { width: 34px; height: 34px; object-fit: contain; flex: none; filter: drop-shadow(0 1px 3px rgba(0,0,0,.35)); }
.nav.is-scrolled .brand__mark { filter: none; }
.nav__links { margin-left: auto; display: flex; gap: 28px; }
.nav__links a { font-size: .95rem; font-weight: 500; color: rgba(255,255,255,.82); transition: color .2s; }
.nav__links a:hover { color: #fff; }
.nav.is-scrolled .nav__links a { color: var(--ink-soft); }
.nav.is-scrolled .nav__links a:hover { color: var(--emerald); }
.nav__cta { flex: none; }
@media (max-width: 860px) {
  .nav__links { display: none; }
  .nav__inner { justify-content: space-between; }
  .nav__cta { margin-left: auto; }
}

/* ============================================================
   1. HERO
   ============================================================ */
.hero {
  position: relative; min-height: 100svh; display: flex; align-items: center;
  padding: 120px 0 90px; background: var(--surface-dk); overflow: hidden; isolation: isolate;
}
.hero__canvas { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -2; }
.hero__scrim {
  position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(120% 90% at 15% 20%, rgba(10,18,16,.15), rgba(10,18,16,.72) 70%),
    linear-gradient(180deg, rgba(10,18,16,.25), rgba(10,18,16,.55));
}
.hero__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(28px, 5vw, 72px); align-items: center;
}
.hero__copy { color: #f3efe6; max-width: 620px; }
.hero__title {
  color: #fff; font-size: clamp(2.6rem, 6vw, 4.4rem); font-weight: 500; margin-bottom: 22px;
}
.hero__title em { font-style: italic; font-weight: 400; color: var(--gold-soft); }
.hero__lede { font-size: clamp(1.02rem, 1.6vw, 1.22rem); color: rgba(243,239,230,.82); max-width: 30em; margin-bottom: 30px; }
.hero__actions { display: flex; align-items: center; gap: 20px; flex-wrap: wrap; }
.hero__trust { margin-top: 26px; font-size: .9rem; color: rgba(243,239,230,.6); max-width: 34em; }

/* ---------- "your money says" — the tagline, demonstrated ----------
   Sits between the lede and the CTA so the promise ("listen to your money")
   is shown before it's asked for. Lines cycle from app.js.            */
.says {
  position: relative; max-width: 30em; margin-bottom: 30px;
  padding: 18px 22px 20px; border-radius: 20px 20px 20px 6px;
}
.says__who {
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 10px;
  font-size: .72rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase;
  color: var(--gold-soft);
}
.says__line {
  font-family: var(--font-disp); font-style: italic; font-weight: 400;
  font-size: clamp(1.12rem, 2.1vw, 1.4rem); line-height: 1.35; color: #fff;
  /* Reserve the tallest line's box so cycling never nudges the CTA below.
     Multiples of line-height: 2 lines wide, 3 lines when the column narrows. */
  min-height: 2.7em;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.says.is-swapping .says__line { opacity: 0; transform: translateY(6px); }
@media (max-width: 900px) { .says__line { min-height: 4.05em; } }

/* hero visual */
.hero__viz { position: relative; justify-self: center; width: 100%; max-width: 460px; }
.glass {
  background: linear-gradient(160deg, rgba(255,255,255,.14), rgba(255,255,255,.05));
  border: 1px solid rgba(255,255,255,.18);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border-radius: var(--r-lg); box-shadow: var(--shadow-lg);
}
.dash { padding: 22px; color: #eef4f1; }
.dash__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.dash__label { font-size: .74rem; letter-spacing: .1em; text-transform: uppercase; color: rgba(238,244,241,.6); }
.dash__figure { display: flex; align-items: center; gap: 10px; margin-top: 8px; }
.dash__trend { color: var(--emerald-br); font-size: .9rem; }
.dash__tabs { display: flex; gap: 6px; }
.dash__tabs span { width: 22px; height: 5px; border-radius: 3px; background: rgba(255,255,255,.2); }
.dash__tabs span.on { background: var(--gold-soft); width: 30px; }
.dash__chart { width: 100%; height: 108px; margin: 6px 0 18px; overflow: visible; }
.dash__area { opacity: .9; }
.dash__line { fill: none; stroke: var(--emerald-br); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 620; stroke-dashoffset: 620; animation: draw 2.4s var(--ease) .3s forwards; }
.dash__grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 12px; }
.dash__cell { background: rgba(255,255,255,.07); border: 1px solid rgba(255,255,255,.1); border-radius: var(--r-sm); padding: 12px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; }
.dash__ring { width: 34px; height: 34px; border-radius: 50%; }
.dash__ring--a { background: conic-gradient(var(--emerald-br) 0 62%, rgba(255,255,255,.14) 0); -webkit-mask: radial-gradient(circle 11px at 50% 50%, transparent 98%, #000 100%); mask: radial-gradient(circle 11px at 50% 50%, transparent 98%, #000 100%); }
.dash__ring--b { background: conic-gradient(var(--gold-soft) 0 40%, rgba(255,255,255,.14) 0); -webkit-mask: radial-gradient(circle 11px at 50% 50%, transparent 98%, #000 100%); mask: radial-gradient(circle 11px at 50% 50%, transparent 98%, #000 100%); }
.dash__bars { display: flex; align-items: flex-end; gap: 4px; height: 34px; }
.dash__bars i { width: 6px; border-radius: 2px; background: rgba(255,255,255,.35); }
.dash__bars i:nth-child(1){ height: 40%; } .dash__bars i:nth-child(2){ height: 70%; background: var(--emerald-br);} .dash__bars i:nth-child(3){ height: 55%; } .dash__bars i:nth-child(4){ height: 90%; background: var(--gold-soft);}

.skeleton { display: block; border-radius: 6px; background: linear-gradient(90deg, rgba(255,255,255,.1), rgba(255,255,255,.24), rgba(255,255,255,.1)); background-size: 200% 100%; animation: shimmer 2.2s linear infinite; }
.skeleton--num { width: 130px; height: 26px; }
.skeleton--sm { width: 60%; height: 8px; }

.chip {
  position: absolute; display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; font-size: .82rem; font-weight: 600; color: #eef4f1; border-radius: 14px;
}
.chip--a { top: -22px; right: -8px; animation: float 6s var(--ease) infinite; }
.chip--b { bottom: -20px; left: -14px; animation: float 7s var(--ease) infinite reverse; }
.dot { width: 8px; height: 8px; border-radius: 50%; }
.dot--up { background: var(--emerald-br); box-shadow: 0 0 0 4px rgba(23,181,126,.22); }
.dot--flat { background: var(--gold-soft); box-shadow: 0 0 0 4px rgba(231,198,126,.2); }

.hero__scroll { position: absolute; bottom: 26px; left: 50%; transform: translateX(-50%); width: 26px; height: 42px; border: 2px solid rgba(255,255,255,.4); border-radius: 20px; display: grid; place-items: start center; padding-top: 7px; z-index: 2; }
.hero__scroll span { width: 4px; height: 8px; border-radius: 2px; background: var(--gold-soft); animation: scrolldot 1.8s var(--ease) infinite; }

@media (max-width: 900px) {
  .hero__inner { grid-template-columns: 1fr; text-align: left; }
  .hero__viz { max-width: 420px; margin-top: 8px; justify-self: start; }
  .hero__scroll { display: none; }
}

/* ============================================================
   Shared section scaffolding
   ============================================================ */
.section { padding: clamp(72px, 11vw, 130px) 0; position: relative; }
.section__head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.section__title { font-size: clamp(1.9rem, 4vw, 3rem); color: var(--ink); }
.section__sub { margin-top: 18px; font-size: clamp(1rem, 1.4vw, 1.16rem); color: var(--muted); max-width: 40em; }

.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }

/* ============================================================
   2. PROBLEM
   ============================================================ */
.problem { background: var(--cream); }
.scatter { position: relative; }
.scatter__field {
  position: relative;
  min-height: clamp(400px, 52vw, 500px);
  border-radius: var(--r-lg);
  background: radial-gradient(90% 90% at 50% 45%, #fff, var(--cream-2));
  border: 1px solid var(--line);
  overflow: hidden;
}
/* faint dotted grid, faded toward the edges */
.scatter__field::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(16,26,23,.06) 1px, transparent 1.4px);
  background-size: 24px 24px;
  -webkit-mask: radial-gradient(circle at 50% 48%, #000 35%, transparent 78%);
  mask: radial-gradient(circle at 50% 48%, #000 35%, transparent 78%);
}

/* connector lines (drawn + animated by app.js) */
.scatter__links { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; z-index: 1; }
.s-link { fill: none; stroke: url(#linkGrad); stroke-width: 1.6; stroke-linecap: round; stroke-dasharray: 4 9; animation: dashflow 1s linear infinite; }
.s-packet { fill: var(--gold); filter: drop-shadow(0 0 5px rgba(209,154,61,.7)); }

/* unresolved centre — "the full picture is missing" */
.scatter__core {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: clamp(96px, 15vw, 128px); height: clamp(96px, 15vw, 128px);
  display: grid; place-items: center; z-index: 2;
}
.scatter__core::after {
  content: ""; position: absolute; inset: 12px; border-radius: 50%;
  background: radial-gradient(circle, rgba(209,154,61,.22), transparent 70%);
  animation: corepulse 3.2s var(--ease) infinite;
}
.scatter__core-ring { position: absolute; inset: 0; border-radius: 50%; border: 2px dashed rgba(209,154,61,.55); animation: spin 20s linear infinite; }
.scatter__core-q { position: relative; font-family: var(--font-disp); font-weight: 600; font-size: clamp(2rem, 5vw, 2.6rem); color: var(--gold); line-height: 1; }
.scatter__core-cap { position: absolute; bottom: -26px; left: 50%; transform: translateX(-50%); white-space: nowrap; font-size: .72rem; font-weight: 600; letter-spacing: .1em; color: var(--muted); text-transform: uppercase; }

/* scattered app chips */
.app-chip {
  position: absolute; left: var(--cx); top: var(--cy);
  transform: translate(-50%, -50%) rotate(var(--r));
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 13px;
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-md); white-space: nowrap; z-index: 3;
  animation: chipfloat 7s var(--ease) infinite; animation-delay: var(--d, 0s);
  will-change: transform;
}
.app-chip__ic { flex: none; width: 34px; height: 34px; display: grid; place-items: center; font-size: 18px; background: var(--cream); border-radius: 10px; }
.app-chip__body { display: flex; flex-direction: column; gap: 5px; align-items: flex-start; }
.app-chip__body b { font-size: .84rem; font-weight: 600; color: var(--ink); line-height: 1; }
.app-chip__bar { width: 48px; height: 5px; border-radius: 3px; background: linear-gradient(90deg, var(--emerald-br), var(--cream-2)); }
.app-chip__bar--b { width: 40px; background: linear-gradient(90deg, var(--gold), var(--cream-2)); }
.app-chip__bar--c { width: 54px; }

.problem__punch {
  margin-top: 44px; text-align: center; font-family: var(--font-disp);
  font-size: clamp(1.4rem, 3.4vw, 2.3rem); font-weight: 500; color: var(--ink); letter-spacing: -.02em; line-height: 1.2;
}
.problem__punch b { color: var(--emerald); font-weight: 500; font-style: italic; }

@media (max-width: 560px) {
  .scatter__field { min-height: 440px; }
  .app-chip { padding: 7px 10px; gap: 8px; }
  .app-chip__ic { width: 28px; height: 28px; font-size: 15px; }
  .app-chip__body b { font-size: .76rem; }
  .app-chip__bar { width: 38px; }
}

/* ============================================================
   3. FEATURES
   ============================================================ */
.features { background: linear-gradient(180deg, var(--cream), #fbf9f3); }
.grid { display: grid; gap: 18px; }
.grid--features { grid-template-columns: repeat(4, 1fr); }
.feature { padding: 26px 24px; transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d7cfba; }
.feature__icon {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 13px; margin-bottom: 18px;
  background: linear-gradient(160deg, rgba(23,181,126,.16), rgba(23,181,126,.06));
  color: var(--emerald);
}
.feature__icon svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature h3 { font-size: 1.14rem; margin-bottom: 8px; color: var(--ink); font-weight: 600; }
.feature p { font-size: .93rem; color: var(--muted); }
@media (max-width: 980px){ .grid--features { grid-template-columns: repeat(2,1fr); } }
@media (max-width: 520px){ .grid--features { grid-template-columns: 1fr; } }

/* ============================================================
   4. KPIs
   ============================================================ */
.kpis { background: #fbf9f3; }
.kpi-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.kpi {
  display: grid; grid-template-columns: minmax(260px, 360px) 1fr; align-items: center; gap: clamp(20px,4vw,56px);
  padding: 26px clamp(22px,3vw,34px); background: #fff; border: 1px solid var(--line); border-radius: var(--r-md);
  box-shadow: var(--shadow-sm); transition: transform .3s var(--ease), box-shadow .3s var(--ease);
}
.kpi:hover { transform: translateX(4px); box-shadow: var(--shadow-md); }
.kpi__metric { display: flex; flex-direction: column; gap: 12px; }
.kpi__name { font-family: var(--font-disp); font-size: 1.3rem; font-weight: 600; color: var(--ink); }
.kpi__meter { position: relative; height: 8px; border-radius: 6px; background: var(--cream-2); overflow: hidden; }
.kpi__meter i { position: absolute; inset: 0; width: 0; border-radius: 6px; background: linear-gradient(90deg, var(--emerald), var(--emerald-br)); transition: width 1.1s var(--ease); }
.kpi__meter--split i { background: linear-gradient(90deg, var(--emerald-br) 0 55%, var(--gold) 55% 100%); }
.kpi.is-in .kpi__meter i { width: var(--v); }
.kpi__q { font-family: var(--font-disp); font-style: italic; font-size: clamp(1.1rem, 2vw, 1.5rem); color: var(--ink-soft); font-weight: 400; }

/* the money answers back — the emotional payoff of each metric */
.kpi__talk { display: flex; flex-direction: column; gap: 14px; }
.kpi__reply {
  display: flex; align-items: flex-start; gap: 11px;
  font-size: .97rem; line-height: 1.55; color: var(--ink-soft);
  padding-top: 14px; border-top: 1px dashed var(--line);
}
.kpi__reply .voice { color: var(--emerald); margin-top: 5px; }
.kpi__reply b { font-weight: 600; color: var(--emerald); }
@media (max-width: 720px){ .kpi { grid-template-columns: 1fr; gap: 16px; } }

/* ============================================================
   5. PRIVACY
   ============================================================ */
.privacy { background: var(--surface-dk2); color: #eef4f1; overflow: hidden; }
.privacy .eyebrow { color: var(--gold-soft); }
.privacy .section__title { color: #fff; }
.privacy .section__sub { color: rgba(238,244,241,.72); }
.privacy strong { color: #fff; font-weight: 600; }
.privacy__inner { display: grid; grid-template-columns: 1.15fr .85fr; gap: clamp(32px,5vw,72px); align-items: center; }
.privacy__points { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 14px; }
.privacy__points li { display: flex; align-items: center; gap: 12px; color: rgba(238,244,241,.9); font-weight: 500; }
.tick { flex: none; width: 22px; height: 22px; border-radius: 50%; background: rgba(23,181,126,.2); position: relative; }
.tick::after { content: ""; position: absolute; left: 7px; top: 5px; width: 5px; height: 9px; border: solid var(--emerald-br); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.privacy__visual { padding: 34px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.privacy__device, .privacy__drive { display: flex; flex-direction: column; align-items: center; gap: 12px; text-align: center; flex: none; }
.privacy__device .lock, .privacy__drive svg { width: 60px; height: 60px; }
.privacy__device .lock { display: grid; place-items: center; border-radius: 16px; background: rgba(23,181,126,.16); border: 1px solid rgba(23,181,126,.3); }
.privacy__device .lock svg { width: 30px; height: 30px; fill: none; stroke: var(--emerald-br); stroke-width: 1.8; }
.privacy__drive svg { fill: none; stroke: var(--gold-soft); stroke-width: 1.4; stroke-linejoin: round; }
.privacy__label { font-size: .82rem; color: rgba(238,244,241,.7); }
.privacy__flow { flex: 1; display: flex; align-items: center; justify-content: center; gap: 8px; }
.privacy__flow span { width: 8px; height: 8px; border-radius: 50%; background: var(--emerald-br); opacity: .35; animation: pulseflow 1.8s var(--ease) infinite; }
.privacy__flow span:nth-child(2){ animation-delay: .3s; } .privacy__flow span:nth-child(3){ animation-delay: .6s; }
@media (max-width: 820px){ .privacy__inner { grid-template-columns: 1fr; } }

/* ============================================================
   6. HOW IT WORKS
   ============================================================ */
.how { background: var(--cream); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4,1fr); gap: 18px; counter-reset: step; }
.step { position: relative; padding: 28px 24px; background: #fff; border: 1px solid var(--line); border-radius: var(--r-md); box-shadow: var(--shadow-sm); }
.step__num { font-family: var(--font-disp); font-size: 1rem; font-weight: 600; color: var(--emerald); background: rgba(23,181,126,.12); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 18px; }
.step h3 { font-size: 1.14rem; color: var(--ink); margin-bottom: 8px; font-weight: 600; }
.step p { font-size: .93rem; color: var(--muted); }
.step::after { content: "→"; position: absolute; right: -16px; top: 46px; color: var(--line); font-size: 1.3rem; z-index: 1; }
.step:last-child::after { display: none; }
@media (max-width: 900px){ .steps { grid-template-columns: repeat(2,1fr); } .step:nth-child(2)::after { display: none; } }
@media (max-width: 520px){ .steps { grid-template-columns: 1fr; } .step::after { display: none; } }

/* ============================================================
   7. WAITLIST
   ============================================================ */
.waitlist { background: radial-gradient(120% 120% at 50% 0%, var(--emerald-dk), var(--surface-dk) 70%); color: #fff; text-align: center; }
.waitlist__inner { max-width: 640px; margin-inline: auto; }
.waitlist__title { font-size: clamp(2rem, 4.6vw, 3.2rem); color: #fff; }
.waitlist__sub { margin: 18px auto 34px; color: rgba(255,255,255,.78); font-size: 1.08rem; max-width: 34em; }
.wl-form { max-width: 520px; margin-inline: auto; }
.wl-form__row { display: flex; gap: 10px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.2); border-radius: 999px; padding: 7px; transition: border-color .25s, background .25s; }
.wl-form__row:focus-within { border-color: var(--gold-soft); background: rgba(255,255,255,.14); }
.wl-form.is-invalid .wl-form__row { border-color: #ff9a8b; }
.wl-form__input { flex: 1; min-width: 0; background: none; border: none; outline: none; color: #fff; font: inherit; font-size: 1rem; padding: 0 14px; }
.wl-form__input::placeholder { color: rgba(255,255,255,.5); }
.wl-form__btn { flex: none; position: relative; }
.wl-form.is-loading .wl-form__btn-label { visibility: hidden; }
.wl-form__spinner { display: none; position: absolute; width: 18px; height: 18px; border: 2px solid rgba(255,255,255,.4); border-top-color: #fff; border-radius: 50%; animation: spin .7s linear infinite; }
.wl-form.is-loading .wl-form__spinner { display: block; }
.wl-form__msg { min-height: 22px; margin-top: 14px; font-size: .9rem; color: #ffb4a6; text-align: left; padding-left: 20px; }
.wl-form__msg.is-ok { color: var(--gold-soft); }

.wl-success { max-width: 480px; margin: 0 auto; padding: 40px 30px; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.16); border-radius: var(--r-lg); animation: pop .5s var(--ease); }
.wl-success__check { display: grid; place-items: center; width: 58px; height: 58px; margin: 0 auto 18px; border-radius: 50%; background: var(--emerald); }
.wl-success__check svg { width: 28px; height: 28px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.wl-success h3 { font-size: 1.6rem; color: #fff; margin-bottom: 8px; }
.wl-success p { color: rgba(255,255,255,.78); }
@media (max-width: 520px){
  .wl-form__row { flex-direction: column; border-radius: var(--r-md); padding: 12px; }
  .wl-form__input { padding: 10px 12px; text-align: center; }
  .wl-form__btn { width: 100%; }
}

/* ============================================================
   8. FOOTER
   ============================================================ */
.footer { background: var(--surface-dk); color: rgba(255,255,255,.7); padding: 54px 0; }
.footer__inner { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand--light .brand__name { color: #fff; }
.footer__tag { font-family: var(--font-disp); font-style: italic; margin-top: 8px; color: var(--gold-soft); }
.footer__legal { font-size: .86rem; color: rgba(255,255,255,.5); }

/* ============================================================
   Scroll reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.reveal.is-in { opacity: 1; transform: none; }
/* subtle stagger for grids */
.grid--features .feature.is-in { transition-delay: calc(var(--i, 0) * 70ms); }
.kpi-list .kpi.is-in { transition-delay: calc(var(--i, 0) * 80ms); }
.steps .step.is-in { transition-delay: calc(var(--i, 0) * 90ms); }

/* ============================================================
   Preloader
   ============================================================ */
.preloader { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; background: var(--surface-dk); transition: opacity .6s var(--ease), visibility .6s; }
.preloader.is-hidden { opacity: 0; visibility: hidden; }
.preloader__inner { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.preloader__logo { width: 60px; height: 60px; object-fit: contain; animation: pl-pulse 1.6s var(--ease) infinite; }
@keyframes pl-pulse {
  0%, 100% { transform: scale(1);    opacity: .82; }
  50%      { transform: scale(1.07); opacity: 1; }
}
.preloader__word { font-family: var(--font-disp); color: #fff; font-size: 1.3rem; letter-spacing: -.02em; }
.preloader__bar { width: 160px; height: 3px; border-radius: 3px; background: rgba(255,255,255,.14); overflow: hidden; }
.preloader__bar span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--emerald-br), var(--gold-soft)); transition: width .3s var(--ease); }

/* ============================================================
   Keyframes
   ============================================================ */
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes float { 0%,100%{ transform: translateY(0); } 50%{ transform: translateY(-9px); } }
@keyframes chipfloat {
  0%,100%{ transform: translate(-50%,-50%) rotate(var(--r)) translateY(0); }
  50%{ transform: translate(-50%,-50%) rotate(var(--r)) translateY(-9px); }
}
@keyframes dashflow { to { stroke-dashoffset: -26; } }
@keyframes corepulse { 0%,100%{ opacity: .5; transform: scale(.9); } 50%{ opacity: 1; transform: scale(1.08); } }
@keyframes scrolldot { 0%{ transform: translateY(0); opacity: 1; } 70%{ transform: translateY(12px); opacity: 0; } 100%{ opacity: 0; } }
@keyframes pulseflow { 0%,100%{ opacity: .25; transform: scale(.85); } 50%{ opacity: 1; transform: scale(1.1); } }
@keyframes pop { from { opacity: 0; transform: scale(.94); } to { opacity: 1; transform: none; } }

/* ============================================================
   STANDALONE WAITLIST PAGE  (/waitlist)
   ============================================================ */
.wl-page {
  min-height: 100svh; display: flex; flex-direction: column;
  background: var(--surface-dk); color: #f3efe6;
  position: relative; isolation: isolate; overflow: hidden;
}
/* reuses .hero__canvas + .hero__scrim for the WebGL background */

.wl-page__nav { position: relative; z-index: 3; }
.wl-page__nav .nav__inner { justify-content: space-between; }

.wl-hero { flex: 1; display: grid; align-items: center; padding: 108px 0 64px; position: relative; z-index: 2; }
.wl-grid { display: grid; grid-template-columns: 1.08fr .92fr; gap: clamp(32px, 6vw, 84px); align-items: center; width: 100%; }

.wl-lead { max-width: 620px; }
.wl-lead__title { color: #fff; font-size: clamp(2.3rem, 5.2vw, 3.8rem); font-weight: 500; margin-bottom: 20px; }
.wl-lead__title em { font-style: italic; font-weight: 400; color: var(--gold-soft); }
.wl-lead__sub { font-size: clamp(1.02rem, 1.5vw, 1.2rem); color: rgba(243,239,230,.82); max-width: 34em; margin-bottom: 32px; }

/* the .wl-form styles from the homepage are reused as-is (already dark-themed) */
.wl-hero .wl-form { margin-inline: 0; max-width: 540px; }
.wl-hero .wl-form__msg { text-align: left; }

.wl-benefits { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 12px 22px; }
.wl-benefits li { display: flex; align-items: center; gap: 9px; font-size: .92rem; color: rgba(243,239,230,.82); font-weight: 500; }
.wl-benefits .tick { width: 20px; height: 20px; }
.wl-benefits .tick::after { left: 6px; top: 4px; }

.wl-note { margin-top: 24px; font-size: .86rem; color: rgba(243,239,230,.55); display: flex; align-items: center; gap: 8px; }
.wl-note svg { width: 15px; height: 15px; flex: none; fill: none; stroke: var(--emerald-br); stroke-width: 1.8; }

/* right-hand perks card */
.wl-aside { justify-self: center; width: 100%; max-width: 420px; }
.wl-perks { padding: 30px 30px 26px; }
.wl-perks__eyebrow { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-soft); font-weight: 600; }
.wl-perks__title { font-family: var(--font-disp); font-size: 1.45rem; color: #fff; font-weight: 600; margin: 8px 0 20px; }
.wl-perks__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 16px; }
.wl-perks__list li { display: flex; gap: 14px; align-items: flex-start; }
.wl-perks__ic { flex: none; width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: rgba(23,181,126,.14); border: 1px solid rgba(23,181,126,.26); }
.wl-perks__ic svg { width: 20px; height: 20px; fill: none; stroke: var(--emerald-br); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.wl-perks__list b { display: block; color: #fff; font-weight: 600; font-size: .98rem; }
.wl-perks__list span { color: rgba(243,239,230,.66); font-size: .88rem; }
.wl-perks__foot { display: flex; align-items: center; gap: 10px; margin-top: 22px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.12); font-family: var(--font-disp); font-style: italic; color: var(--gold-soft); font-size: 1rem; }

.wl-hero .wl-success { margin: 0; max-width: 540px; text-align: left; }
.wl-hero .wl-success__check { margin: 0 0 18px; }

.wl-page__footer { position: relative; z-index: 2; padding: 22px 0; border-top: 1px solid rgba(255,255,255,.08); }
.wl-page__footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.wl-page__footer p { font-size: .84rem; color: rgba(243,239,230,.5); }
.wl-page__footer .footer__tag { margin: 0; }

@media (max-width: 900px) {
  .wl-grid { grid-template-columns: 1fr; gap: 40px; }
  .wl-aside { justify-self: stretch; max-width: none; order: 2; }
  .wl-hero { padding-top: 96px; }
}

/* ============================================================
   Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .dash__line { stroke-dashoffset: 0; animation: none; }
  .skeleton, .chip--a, .chip--b, .app-chip, .hero__scroll span,
  .privacy__flow span, .preloader__logo, .wl-form__spinner, .voice i,
  .scatter__core-ring, .scatter__core::after, .s-link { animation: none !important; }
  .kpi__meter i { transition: none; }
  /* frozen bars still read as a waveform, so the motif survives */
  .voice i { height: 62% !important; opacity: .85 !important; }
  .says__line { transition: none; }
}
