/* =========================================================
   Spotted marketing site
   Palettes mirror src/theme/palettes.ts (Sky Glass).
   Each palette sets --l-* (light) and --d-* (dark) values;
   the scheme blocks below map them onto the working tokens.
   ========================================================= */

:root {
  /* Lagoon (default) */
  --l-bg1: #bdeedf; --l-bg2: #e3f8f0; --l-bg3: #f5fcf9;
  --l-text: #0c2420; --l-muted: #4f6e66;
  --l-accent: #0c9a72; --l-accent-ink: #08805e; --l-btn: #08805e; --l-on-btn: #ffffff;
  --l-tint: #d6f2e7; --l-surface2: #eef7f3;

  --d-bg1: #0f4237; --d-bg2: #0b2622; --d-bg3: #07130f;
  --d-text: #e9fbf5; --d-muted: #8fb3a8;
  --d-accent: #2fd1a0; --d-accent-ink: #6fe6c1; --d-btn: #2fd1a0; --d-on-btn: #04221a;
  --d-tint: rgba(47, 209, 160, 0.16); --d-surface: #12251f; --d-surface2: #1b342c;

  --radius-sm: 14px;
  --radius: 22px;
  --radius-lg: 28px;
  --ease-out: cubic-bezier(.2, .8, .2, 1);
  --ease-spring: cubic-bezier(.34, 1.56, .64, 1);
  --font: "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

:root[data-accent="sky"] {
  --l-bg1: #c9e1ff; --l-bg2: #e6f1ff; --l-bg3: #f5f9fe; --l-text: #0f1828; --l-muted: #5b6a80;
  --l-accent: #2d6bff; --l-accent-ink: #2459e0; --l-btn: #2459e0; --l-tint: #e5eeff; --l-surface2: #f0f4fa;
  --d-bg1: #16305c; --d-bg2: #0f1d39; --d-bg3: #0a1222; --d-text: #eef3ff; --d-muted: #93a2c0;
  --d-accent: #5b8cff; --d-accent-ink: #a3bfff; --d-btn: #7aa2ff; --d-on-btn: #0a1222;
  --d-tint: rgba(91, 140, 255, 0.18); --d-surface: #17223a; --d-surface2: #212e4a;
}
:root[data-accent="sunset"] {
  --l-bg1: #ffd6bd; --l-bg2: #ffeadd; --l-bg3: #fff8f3; --l-text: #26140d; --l-muted: #7d6155;
  --l-accent: #ef5a28; --l-accent-ink: #c2410f; --l-btn: #c2410f; --l-tint: #ffe3d5; --l-surface2: #fbf1ea;
  --d-bg1: #4f2618; --d-bg2: #2b1712; --d-bg3: #160e0b; --d-text: #fff1ea; --d-muted: #b89f93;
  --d-accent: #ff7a4d; --d-accent-ink: #ffa47f; --d-btn: #ff7a4d; --d-on-btn: #210c04;
  --d-tint: rgba(255, 122, 77, 0.18); --d-surface: #2a1a14; --d-surface2: #38251d;
}
:root[data-accent="lavender"] {
  --l-bg1: #dad0ff; --l-bg2: #eee9ff; --l-bg3: #faf8ff; --l-text: #17122b; --l-muted: #655d80;
  --l-accent: #6c4af2; --l-accent-ink: #5b38e3; --l-btn: #5b38e3; --l-tint: #ebe5ff; --l-surface2: #f3f0fb;
  --d-bg1: #30226a; --d-bg2: #1b1538; --d-bg3: #0e0b1d; --d-text: #f1edff; --d-muted: #a69fc4;
  --d-accent: #9a7bff; --d-accent-ink: #c0aaff; --d-btn: #9a7bff; --d-on-btn: #140b33;
  --d-tint: rgba(154, 123, 255, 0.18); --d-surface: #1d1833; --d-surface2: #282245;
}
:root[data-accent="rose"] {
  --l-bg1: #ffd1e1; --l-bg2: #ffe9f0; --l-bg3: #fff8fa; --l-text: #2a0f1a; --l-muted: #80596a;
  --l-accent: #df3a72; --l-accent-ink: #c42a60; --l-btn: #c42a60; --l-tint: #ffe0eb; --l-surface2: #fbf0f4;
  --d-bg1: #541833; --d-bg2: #2c0f1d; --d-bg3: #160810; --d-text: #ffeef4; --d-muted: #c09aab;
  --d-accent: #ff5c92; --d-accent-ink: #ff93b6; --d-btn: #ff5c92; --d-on-btn: #2a0614;
  --d-tint: rgba(255, 92, 146, 0.18); --d-surface: #2a1520; --d-surface2: #371e2b;
}

/* ---------- scheme mapping: light (default) ---------- */
:root {
  color-scheme: light;
  --bg1: var(--l-bg1); --bg2: var(--l-bg2); --bg3: var(--l-bg3);
  --text: var(--l-text); --muted: var(--l-muted);
  --accent: var(--l-accent); --accent-ink: var(--l-accent-ink);
  --btn: var(--l-btn); --on-btn: var(--l-on-btn);
  --tint: var(--l-tint); --surface: #ffffff; --surface2: var(--l-surface2);
  --glass: rgba(255, 255, 255, 0.72);
  --glass-strong: rgba(255, 255, 255, 0.9);
  --glass-border: rgba(255, 255, 255, 0.9);
  --line: rgba(10, 30, 25, 0.08);
  --shadow-sm: 0 1px 2px rgba(8, 40, 32, .06), 0 6px 18px -8px rgba(8, 40, 32, .14);
  --shadow: 0 2px 6px rgba(8, 40, 32, .05), 0 22px 48px -24px rgba(8, 60, 45, .28);
  --blob-a: color-mix(in oklab, var(--accent) 34%, transparent);
  --blob-b: color-mix(in oklab, var(--bg1) 90%, white);
}

/* ---------- dark (system) ---------- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg1: var(--d-bg1); --bg2: var(--d-bg2); --bg3: var(--d-bg3);
    --text: var(--d-text); --muted: var(--d-muted);
    --accent: var(--d-accent); --accent-ink: var(--d-accent-ink);
    --btn: var(--d-btn); --on-btn: var(--d-on-btn);
    --tint: var(--d-tint); --surface: var(--d-surface); --surface2: var(--d-surface2);
    --glass: color-mix(in oklab, var(--d-surface) 78%, transparent);
    --glass-strong: color-mix(in oklab, var(--d-surface) 94%, transparent);
    --glass-border: rgba(255, 255, 255, 0.08);
    --line: rgba(255, 255, 255, 0.08);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px -8px rgba(0, 0, 0, .5);
    --shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 26px 50px -24px rgba(0, 0, 0, .7);
    --blob-a: color-mix(in oklab, var(--accent) 22%, transparent);
    --blob-b: color-mix(in oklab, var(--bg1) 80%, transparent);
  }
}
/* ---------- dark (forced) ---------- */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg1: var(--d-bg1); --bg2: var(--d-bg2); --bg3: var(--d-bg3);
  --text: var(--d-text); --muted: var(--d-muted);
  --accent: var(--d-accent); --accent-ink: var(--d-accent-ink);
  --btn: var(--d-btn); --on-btn: var(--d-on-btn);
  --tint: var(--d-tint); --surface: var(--d-surface); --surface2: var(--d-surface2);
  --glass: color-mix(in oklab, var(--d-surface) 78%, transparent);
  --glass-strong: color-mix(in oklab, var(--d-surface) 94%, transparent);
  --glass-border: rgba(255, 255, 255, 0.08);
  --line: rgba(255, 255, 255, 0.08);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .3), 0 6px 18px -8px rgba(0, 0, 0, .5);
  --shadow: 0 2px 6px rgba(0, 0, 0, .25), 0 26px 50px -24px rgba(0, 0, 0, .7);
  --blob-a: color-mix(in oklab, var(--accent) 22%, transparent);
  --blob-b: color-mix(in oklab, var(--bg1) 80%, transparent);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg3);
  background-image: linear-gradient(180deg, var(--bg1) 0, var(--bg2) 720px, var(--bg3) 1400px);
  background-repeat: no-repeat;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  transition: background-color .4s ease, color .4s ease;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--accent-ink); text-underline-offset: 3px; }
h1, h2, h3 { text-wrap: balance; line-height: 1.1; letter-spacing: -0.025em; margin: 0; font-weight: 800; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
figure { margin: 0; }
button { font: inherit; color: inherit; }
.ic { width: 1.15em; height: 1.15em; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; flex: none; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 10px; }
::selection { background: color-mix(in oklab, var(--accent) 30%, transparent); }

.visually-hidden {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 16px; top: -60px; z-index: 100;
  background: var(--btn); color: var(--on-btn); padding: 10px 16px; border-radius: 999px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
@media (min-width: 768px) { .container { width: min(1200px, 100% - 64px); } }

.glass {
  background: var(--glass);
  border: 1px solid var(--glass-border);
  box-shadow: var(--shadow-sm);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  backdrop-filter: blur(18px) saturate(1.4);
}

/* ---------- buttons ---------- */
.btn {
  --h: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: var(--h); padding: 0 24px; border-radius: 999px;
  font-weight: 700; font-size: 16px; text-decoration: none; white-space: nowrap;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .25s var(--ease-out), box-shadow .25s var(--ease-out), background-color .25s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: var(--btn); color: var(--on-btn);
  box-shadow: 0 10px 24px -10px color-mix(in oklab, var(--btn) 75%, transparent), inset 0 1px 0 rgba(255,255,255,.18);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 30px -12px color-mix(in oklab, var(--btn) 80%, transparent), inset 0 1px 0 rgba(255,255,255,.18); }
.btn-ghost { background: var(--glass-strong); color: var(--text); border-color: var(--glass-border); box-shadow: var(--shadow-sm); }
.btn-ghost:hover { transform: translateY(-2px); }
.btn-ghost .ic { transition: transform .25s var(--ease-out); }
.btn-ghost:hover .ic { transform: translateX(3px); }
.btn-sm { --h: 42px; padding: 0 16px; font-size: 15px; gap: 8px; }
.btn-lg { --h: 58px; padding: 0 30px; font-size: 17px; }

/* ---------- header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  transition: background-color .3s, box-shadow .3s, border-color .3s;
  border-bottom: 1px solid transparent;
}
.site-header.is-scrolled {
  background: color-mix(in oklab, var(--bg2) 72%, transparent);
  -webkit-backdrop-filter: blur(16px) saturate(1.5);
  backdrop-filter: blur(16px) saturate(1.5);
  border-bottom-color: var(--line);
}
.header-inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); font-weight: 800; font-size: 20px; letter-spacing: -0.02em; }
.brand img { border-radius: 10px; box-shadow: 0 6px 14px -6px rgba(7, 107, 80, .55); }
.site-nav { display: none; margin-left: auto; gap: 4px; }
.site-nav a { color: var(--text); text-decoration: none; font-weight: 600; font-size: 15px; padding: 8px 14px; border-radius: 999px; transition: background-color .2s; }
.site-nav a:hover { background: var(--glass); }
.header-inner > .btn { margin-left: auto; }
@media (min-width: 860px) {
  .site-nav { display: flex; }
  .header-inner > .btn { margin-left: 8px; }
}
@media (max-width: 380px) {
  .header-inner > .btn span { display: none; }
  .header-inner > .btn { padding: 0 13px; }
  .header-inner > .btn::after { content: "Notify me"; }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 28px 0 56px; overflow: clip; }
.hero-blobs { position: absolute; inset: 0; pointer-events: none; }
.hero-blobs span { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .9; }
.hero-blobs span:nth-child(1) { width: 520px; height: 520px; background: var(--blob-a); top: -160px; right: -120px; animation: blob 18s ease-in-out infinite alternate; }
.hero-blobs span:nth-child(2) { width: 420px; height: 420px; background: var(--blob-b); top: 220px; left: -180px; animation: blob 22s ease-in-out -6s infinite alternate-reverse; }
.hero-blobs span:nth-child(3) { width: 300px; height: 300px; background: color-mix(in oklab, var(--accent) 16%, transparent); bottom: -80px; right: 30%; animation: blob 20s ease-in-out -3s infinite alternate; }
@keyframes blob { to { transform: translate3d(40px, 50px, 0) scale(1.12); } }

.hero-grid { position: relative; display: grid; gap: 40px; align-items: center; }
.hero-copy { text-align: left; }
.pill-badge {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 7px 14px 7px 12px; border-radius: 999px; font-size: 14px; font-weight: 700;
  background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); color: var(--text);
}
.pill-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 0 0 var(--accent); animation: ping 2.2s var(--ease-out) infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 color-mix(in oklab, var(--accent) 60%, transparent); } 80%, 100% { box-shadow: 0 0 0 10px transparent; } }
.hero h1 { font-size: clamp(40px, 10.5vw, 76px); margin: 20px 0 18px; letter-spacing: -0.04em; line-height: 1.02; }
.hero h1 em { font-style: normal; color: var(--accent-ink); position: relative; white-space: nowrap; }
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em; border-radius: 99px;
  background: color-mix(in oklab, var(--accent) 35%, transparent); transform-origin: left; animation: underline 1.1s .7s var(--ease-out) both;
}
@keyframes underline { from { transform: scaleX(0); } }
.lead { font-size: clamp(17px, 2.2vw, 20px); color: var(--muted); line-height: 1.55; max-width: 34em; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.works-with { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 24px; color: var(--muted); font-size: 14px; font-weight: 600; }
.works-with li { display: inline-flex; align-items: center; gap: 8px; }
.works-with li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

@media (max-width: 479px) {
  .hero-ctas .btn { flex: 1 1 100%; }
}

/* hero stage */
.hero-stage { position: relative; display: grid; justify-items: center; padding: 20px 0 0; width: min(100%, 580px); justify-self: center; }
.hero-icon {
  position: absolute; z-index: 3; width: 76px; height: 76px; border-radius: 20px;
  top: 0; left: calc(50% - 170px);
  box-shadow: 0 18px 30px -12px rgba(7, 80, 60, .55);
  animation: bob 6s ease-in-out infinite;
}
@keyframes bob { 50% { transform: translateY(-10px) rotate(-4deg); } }

/* ---------- phone frame ---------- */
.phone {
  --w: 280px;
  position: relative; width: var(--w); max-width: 100%;
  padding: calc(var(--w) * .032);
  border-radius: calc(var(--w) * .155);
  background: linear-gradient(150deg, #34413d 0%, #121816 38%, #0b0f0e 100%);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .14),
    inset 0 0 0 4px rgba(0, 0, 0, .55),
    0 0 0 1px rgba(0, 0, 0, .25),
    0 50px 90px -40px rgba(4, 50, 38, .55),
    0 22px 40px -22px rgba(0, 0, 0, .45);
  flex: none;
}
.phone::before, .phone::after { content: ""; position: absolute; right: -2.5px; width: 3px; border-radius: 0 3px 3px 0; background: #1d2522; }
.phone::before { top: 19%; height: 7%; }
.phone::after { top: 29%; height: 12%; }
.phone-screen {
  position: relative; overflow: hidden; aspect-ratio: 1344 / 2992;
  border-radius: calc(var(--w) * .125);
  background: var(--bg2);
  isolation: isolate;
}
.phone-screen::after {
  content: ""; position: absolute; z-index: 5; top: calc(var(--w) * .022); left: 50%;
  width: calc(var(--w) * .036); aspect-ratio: 1; border-radius: 50%; transform: translateX(-50%);
  background: radial-gradient(circle at 35% 35%, #2b3a44 0 18%, #050807 30%);
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .05);
}
.phone-screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.strip-item figcaption { text-align: center; font-size: 14px; font-weight: 700; color: #cfe9e1; margin-top: 14px; }

.phone-hero { --w: min(290px, 70vw); z-index: 2; }
.phone-screen[data-cycle] img,
.phone-screen.swap img {
  position: absolute; inset: 0; opacity: 0; transform: scale(1.04);
  transition: opacity .7s var(--ease-out), transform 1.2s var(--ease-out);
}
.phone-screen[data-cycle] img.is-active,
.phone-screen.swap img.is-active { opacity: 1; transform: none; }

.cycle-ui { display: flex; align-items: center; gap: 10px; margin-top: 22px; z-index: 2; }
.cycle-steps { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); }
.cycle-steps button {
  position: relative; border: 0; background: transparent; padding: 7px 13px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; overflow: hidden;
  transition: color .3s, background-color .3s;
}
.cycle-steps li.is-active button { color: var(--accent-ink); background: var(--tint); }
.cycle-steps li.is-active button::after {
  content: ""; position: absolute; left: 12px; right: 12px; bottom: 3px; height: 2px; border-radius: 2px; background: var(--accent);
  transform-origin: left; animation: stepbar var(--cycle, 3.4s) linear both;
}
.is-paused .cycle-steps li.is-active button::after { animation: none; transform: scaleX(1); }
@keyframes stepbar { from { transform: scaleX(0); } }
.cycle-toggle {
  width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid var(--glass-border); background: var(--glass-strong); box-shadow: var(--shadow-sm); color: var(--text);
}
.cycle-toggle .ic { width: 16px; height: 16px; }

/* floating pins */
.float-pins { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.fpin {
  position: absolute; display: flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: 999px; white-space: nowrap;
  background: var(--glass-strong); border: 1px solid var(--glass-border);
  box-shadow: 0 16px 30px -14px rgba(8, 50, 40, .35), 0 2px 6px rgba(8, 40, 32, .06);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  font-size: 14px; line-height: 1.25;
  animation: pop .7s var(--ease-spring) both, drift 7s ease-in-out infinite;
}
.fpin > span:last-child { display: grid; }
.fpin b { font-weight: 700; }
.fpin i { font-style: italic; font-size: 12.5px; color: var(--muted); font-weight: 500; }
.fpin-emoji { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 50%; background: var(--surface2); font-size: 18px; }
.fp1 { top: 14%; left: 0; animation-delay: .5s, 1.2s; }
.fp2 { top: 46%; right: -4px; animation-delay: .8s, 0s; animation-duration: .7s, 8s; }
.fp3 { bottom: 23%; left: -6px; animation-delay: 1.1s, 2s; animation-duration: .7s, 9s; }
.fp4 { top: 4%; right: 2%; animation-delay: 1.4s, .6s; animation-duration: .7s, 7.5s; }
@keyframes pop { from { opacity: 0; transform: translateY(14px) scale(.6); } }
@keyframes drift { 50% { translate: 0 -12px; } }
.drop {
  position: absolute; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; transform: rotate(-45deg);
  background: var(--accent); box-shadow: 0 8px 14px -6px color-mix(in oklab, var(--accent) 80%, black);
  animation: dropin 4.8s var(--ease-out) infinite;
}
.drop::after { content: ""; position: absolute; inset: 7px; border-radius: 50%; background: #fff; }
.d1 { top: 30%; left: 12%; animation-delay: .4s; }
.d2 { top: 66%; right: 10%; animation-delay: 2s; }
.d3 { bottom: 6%; left: 22%; animation-delay: 3.4s; }
@keyframes dropin {
  0% { opacity: 0; transform: translateY(-40px) rotate(-45deg) scale(.8); }
  14% { opacity: 1; transform: translateY(0) rotate(-45deg) scale(1); }
  20% { transform: translateY(-6px) rotate(-45deg); }
  26% { transform: translateY(0) rotate(-45deg); }
  80% { opacity: 1; }
  100% { opacity: 0; transform: translateY(0) rotate(-45deg) scale(.9); }
}

@media (max-width: 599px) {
  .fpin { font-size: 12.5px; padding: 4px 12px 4px 4px; gap: 8px; }
  .fpin i { display: none; }
  .fpin-emoji { width: 28px; height: 28px; font-size: 15px; }
  .fp1 { top: 18%; left: 0; }
  .fp2 { top: 52%; right: 0; }
  .fp3 { bottom: 24%; left: 0; }
  .fp4 { top: 6%; right: 0; }
  .hero-icon { width: 60px; height: 60px; border-radius: 16px; left: 2px; top: 30px; display: none; }
}

@media (min-width: 960px) {
  .hero { padding: 40px 0 88px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 48px; min-height: min(760px, calc(100svh - 68px)); }
  .phone-hero { --w: 300px; }
  .hero-stage { padding-top: 30px; }
  .hero-icon { left: calc(50% - 222px); top: 4px; width: 84px; height: 84px; border-radius: 22px; }
  .fp1 { left: -10%; top: 22%; }
  .fp2 { right: -12%; }
  .fp3 { left: -8%; }
  .fp4 { right: -8%; top: 6%; }
}

/* ---------- steps band ---------- */
.steps-band { padding: 8px 0 24px; }
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { padding: 24px; border-radius: var(--radius-lg); display: grid; gap: 6px; align-content: start; }
.step-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--tint); color: var(--accent-ink); margin-bottom: 8px; }
.step-ic .ic { width: 22px; height: 22px; }
.step-n { font-size: 13px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; color: var(--accent-ink); }
.step h3 { font-size: 21px; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 16px; }
@media (max-width: 767px) {
  .step { grid-template-columns: 48px 1fr; column-gap: 16px; row-gap: 2px; padding: 20px; }
  .step-ic { grid-row: 1 / span 3; margin-bottom: 0; }
}
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }

/* ---------- sections ---------- */
.section { padding: 72px 0; position: relative; }
@media (min-width: 960px) { .section { padding: 112px 0; } }
.section-head { max-width: 760px; margin-bottom: 40px; }
.section-head h2, .feature-copy h2 { font-size: clamp(32px, 6.4vw, 54px); letter-spacing: -0.035em; margin: 10px 0 16px; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--accent-ink);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: currentColor; }

/* ---------- pipeline ---------- */
.pipeline { display: grid; gap: 0; align-items: stretch; }
.pl-col { border-radius: var(--radius-lg); padding: 22px; position: relative; }
.pl-label { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 15px; margin-bottom: 18px; }
.pl-num { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-size: 13px; background: var(--btn); color: var(--on-btn); }

.pl-source-body { display: grid; grid-template-columns: minmax(96px, 128px) 1fr; gap: 16px; align-items: stretch; }
.reel-thumb { position: relative; border-radius: 18px; overflow: hidden; min-height: 200px; box-shadow: var(--shadow-sm); }
.reel-thumb img { position: absolute; inset: 0; }
.reel-thumb img { width: 100%; height: 100%; object-fit: cover; }
.scan {
  position: absolute; left: 0; right: 0; top: 0; height: 34%;
  background: linear-gradient(180deg, transparent, color-mix(in oklab, var(--accent) 45%, transparent) 85%, #fff 100%);
  opacity: 0; mix-blend-mode: screen;
}
.signals { display: grid; gap: 6px; }
.signals li {
  display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 12px;
  font-size: 14px; font-weight: 600; background: var(--tint); color: var(--text);
}
.signals .ic { width: 16px; height: 16px; color: var(--accent-ink); }

.pl-flow { position: relative; height: 40px; display: grid; place-items: center; }
.pl-flow span {
  width: 3px; height: 100%; border-radius: 3px;
  background: repeating-linear-gradient(180deg, var(--accent) 0 6px, transparent 6px 12px);
  background-size: 100% 24px; opacity: .55;
}

.engine { display: grid; grid-template-columns: 44px 1fr; gap: 12px; align-items: start; padding: 14px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); margin-bottom: 10px; position: relative; overflow: hidden; }
.engine b { display: block; font-size: 15px; line-height: 1.3; }
.engine span:not(.engine-ic) { display: block; font-size: 14px; color: var(--muted); line-height: 1.45; margin-top: 3px; }
.engine-ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--tint); color: var(--accent-ink); }
.engine-ic .ic { width: 22px; height: 22px; }
.engine::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: linear-gradient(100deg, transparent 30%, color-mix(in oklab, var(--accent) 16%, transparent) 50%, transparent 70%);
  transform: translateX(-100%);
}
.progress-list { display: grid; gap: 10px; margin-top: 16px; padding: 4px 4px 0; }
.progress-list li { display: flex; align-items: center; gap: 12px; font-size: 15px; font-weight: 600; }
.pdot { width: 22px; height: 22px; border-radius: 50%; flex: none; background: var(--btn); position: relative; }
.pdot::after { content: ""; position: absolute; left: 7px; top: 4px; width: 5px; height: 10px; border: solid var(--on-btn); border-width: 0 2px 2px 0; transform: rotate(45deg); }

.mini-map { position: relative; height: 150px; border-radius: 18px; overflow: hidden; margin-bottom: 14px; border: 1px solid var(--line); }
.mini-map svg { width: 100%; height: 100%; }
.mm-water { fill: #9bd9e6; }
.mm-land { fill: #e8f1e9; }
.mm-park { fill: #bfe5c8; }
.mm-road { fill: none; stroke: #fff; stroke-width: 5; stroke-linecap: round; }
:root[data-theme="dark"] .mm-water { fill: #10222c; }
:root[data-theme="dark"] .mm-land { fill: #1b2a35; }
:root[data-theme="dark"] .mm-park { fill: #1e3a32; }
:root[data-theme="dark"] .mm-road { stroke: #2b3d48; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .mm-water { fill: #10222c; }
  :root:not([data-theme="light"]) .mm-land { fill: #1b2a35; }
  :root:not([data-theme="light"]) .mm-park { fill: #1e3a32; }
  :root:not([data-theme="light"]) .mm-road { stroke: #2b3d48; }
}
.mpin {
  position: absolute; left: var(--x); top: var(--y); translate: -50% -100%;
  width: 38px; height: 38px; display: grid; place-items: center; font-size: 17px; line-height: 1;
  border-radius: 50%; background: var(--surface); border: 2.5px solid var(--accent);
  box-shadow: 0 10px 16px -8px rgba(0, 0, 0, .45);
}
.mpin::after {
  content: ""; position: absolute; left: 50%; bottom: -9px; translate: -50% 0;
  border: 7px solid transparent; border-bottom: 0; border-top-color: var(--accent);
}
.results { display: grid; gap: 8px; }
.results li { padding: 12px 14px; border-radius: 16px; background: var(--surface); border: 1px solid var(--line); display: grid; gap: 2px; }
.results b { font-size: 15.5px; }
.results .meta { display: flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--muted); }
.results .star { width: 14px; height: 14px; color: #f5a524; }
.found { font-size: 12.5px; color: var(--muted); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 6px; margin-top: 4px; }
.found em { font-style: normal; font-weight: 600; color: var(--text); background: var(--surface2); padding: 2px 8px; border-radius: 99px; }
.pl-note { margin-top: 28px; color: var(--muted); max-width: 46em; font-size: 16px; }

@media (min-width: 1024px) {
  .pipeline { grid-template-columns: 1.1fr 56px 1fr 56px 1fr; align-items: center; }
  .pl-flow { align-self: stretch; }
  .pl-flow { height: auto; }
  .pl-flow span { width: 100%; height: 3px; background: repeating-linear-gradient(90deg, var(--accent) 0 6px, transparent 6px 12px); background-size: 24px 100%; }
}

/* pipeline animation (JS adds .is-on when in view) */
.js .pipeline:not(.is-on) .signals li { opacity: .4; background: transparent; }
.js .pipeline:not(.is-on) .mpin,
.js .pipeline:not(.is-on) .results li { opacity: 0; }
.js .pipeline:not(.is-on) .progress-list li { opacity: .45; }
.js .pipeline:not(.is-on) .pdot { background: var(--surface2); }
.js .pipeline:not(.is-on) .pdot::after { opacity: 0; }

.pipeline.is-on .scan { animation: scan 2.4s ease-in-out 0s 2 both; }
@keyframes scan { 0% { opacity: 0; transform: translateY(-100%); } 15% { opacity: .9; } 85% { opacity: .9; } 100% { opacity: 0; transform: translateY(300%); } }
.pipeline.is-on .signals li { animation: sig .5s var(--ease-out) both; animation-delay: calc(var(--i) * .28s + .2s); }
@keyframes sig { from { opacity: .4; background: transparent; transform: translateX(-6px); } 60% { transform: translateX(2px); } }
.pipeline.is-on .pl-flow span { animation: flowy .8s linear infinite; }
@keyframes flowy { to { background-position: 0 24px; } }
@media (min-width: 1024px) { @keyframes flowy { to { background-position: 24px 0; } } }
.pipeline.is-on .engine::after { animation: shimmer 1.6s ease-in-out both; }
.pipeline.is-on .e1::after { animation-delay: 2.4s; }
.pipeline.is-on .e2::after { animation-delay: 3.4s; }
@keyframes shimmer { to { transform: translateX(100%); } }
.pipeline.is-on .progress-list li { animation: stepOn .4s var(--ease-out) both; animation-delay: calc(var(--i) * .9s + 2.2s); }
.pipeline.is-on .pdot { animation: dotOn .4s var(--ease-spring) both; animation-delay: calc(var(--i) * .9s + 2.4s); }
.pipeline.is-on .pdot::after { animation: fadeIn .2s both; animation-delay: calc(var(--i) * .9s + 2.6s); }
@keyframes stepOn { from { opacity: .45; } }
@keyframes dotOn { from { background: var(--surface2); transform: scale(.6); } }
@keyframes fadeIn { from { opacity: 0; } }
.pipeline.is-on .mpin { animation: pinDrop .7s var(--ease-spring) both; animation-delay: calc(var(--i) * .45s + 5.4s); }
@keyframes pinDrop { from { opacity: 0; transform: translateY(-50px); } 60% { opacity: 1; } }
.pipeline.is-on .results li { animation: rise .6s var(--ease-out) both; animation-delay: calc(var(--i) * .45s + 5.5s); }
@keyframes rise { from { opacity: 0; transform: translateY(14px) scale(.98); } }

/* ---------- feature rows ---------- */
.feature-grid { display: grid; gap: 44px; align-items: center; }
.feature-copy .lead { margin-bottom: 26px; }
.ticks { display: grid; gap: 14px; }
.ticks li { display: grid; grid-template-columns: 40px 1fr; gap: 14px; align-items: start; font-size: 16.5px; }
.ticks .ic { width: 40px; height: 40px; padding: 10px; border-radius: 13px; background: var(--tint); color: var(--accent-ink); }
.ticks span { padding-top: 8px; }
.feature-media { position: relative; display: grid; justify-items: center; }
.feature-media .phone { --w: min(290px, 74vw); }

@media (min-width: 960px) {
  .feature-grid { grid-template-columns: 1fr 1fr; gap: 72px; }
  .feature-alt .feature-copy { order: 2; }
}

.duo { padding: 10px 0 70px; }
.duo .phone { --w: min(236px, 50vw); }
.duo .back { justify-self: start; margin-left: 2%; transform: rotate(-5deg); z-index: 1; }
.duo .front { position: absolute; top: 60px; right: 2%; transform: rotate(4deg); z-index: 2; }
@media (min-width: 600px) {
  .duo .phone { --w: 250px; }
  .duo .back { margin-left: 12%; }
  .duo .front { right: 12%; }
}
@media (min-width: 960px) {
  .duo .back { margin-left: 4%; }
  .duo .front { right: 4%; }
}

/* scroll-driven parallax, progressive enhancement */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .duo .back { animation: parBack linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    .duo .front { animation: parFront linear both; animation-timeline: view(); animation-range: entry 0% exit 100%; }
    @keyframes parBack { from { translate: 0 30px; } to { translate: 0 -30px; } }
    @keyframes parFront { from { translate: 0 70px; } to { translate: 0 -50px; } }
  }
}

.autoclose {
  position: relative; margin-top: 18px; z-index: 3;
  display: grid; gap: 8px; padding: 12px 16px; border-radius: 18px; min-width: 210px;
  font-size: 14px; font-weight: 600; color: var(--muted);
}
.autoclose b { color: var(--text); font-variant-numeric: tabular-nums; }
.autoclose-bar { display: block; height: 5px; border-radius: 5px; background: var(--surface2); overflow: hidden; }
.autoclose-bar span { display: block; height: 100%; background: var(--accent); border-radius: inherit; transform-origin: left; animation: shrink 5s linear infinite; }
@keyframes shrink { from { transform: scaleX(1); } to { transform: scaleX(0); } }
@media (min-width: 600px) { .autoclose { position: absolute; margin: 0; right: 0; top: 34%; } }
@media (min-width: 960px) { .autoclose { right: -28px; min-width: 190px; } }

/* notifications */
.notif-stage { padding: 10px 0; }
.lock {
  position: relative; width: min(380px, 100%); padding: 40px 16px 26px; border-radius: 36px; overflow: hidden;
  background:
    radial-gradient(120% 80% at 20% 0%, color-mix(in oklab, var(--accent) 55%, #0b3a2e) 0%, transparent 60%),
    radial-gradient(90% 70% at 100% 100%, #0d5c47 0%, transparent 60%),
    linear-gradient(160deg, #0f4237, #07130f);
  box-shadow: var(--shadow);
  color: #fff; text-align: center;
}
.lock-time { font-size: 64px; font-weight: 700; letter-spacing: -0.04em; line-height: 1; }
.lock-date { font-size: 15px; opacity: .8; margin-top: 6px; margin-bottom: 28px; font-weight: 600; }
.notif {
  display: grid; grid-template-columns: 38px 1fr; gap: 12px; text-align: left; align-items: start;
  padding: 12px 14px; border-radius: 22px; margin-top: 10px;
  background: rgba(255, 255, 255, .92); color: #10201c;
  -webkit-backdrop-filter: blur(20px); backdrop-filter: blur(20px);
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .5);
}
.notif img { border-radius: 10px; }
.notif-top { display: flex; justify-content: space-between; font-size: 13px; color: #4f6e66; }
.notif-top b { color: #10201c; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; font-size: 12px; }
.notif-title { font-weight: 700; font-size: 15px; margin-top: 2px; }
.notif-body { font-size: 14px; line-height: 1.4; color: #33504a; }
.n2 { opacity: .78; transform: scale(.96); }
.js .notif-stage:not(.is-in) .notif { opacity: 0; }
.notif-stage.is-in .n1 { animation: notifIn .8s var(--ease-spring) .5s both; }
.notif-stage.is-in .n2 { animation: notifIn2 .8s var(--ease-out) .2s both; }
@keyframes notifIn { from { opacity: 0; transform: translateY(-40px) scale(.9); } }
@keyframes notifIn2 { from { opacity: 0; transform: translateY(-20px) scale(.9); } to { opacity: .78; transform: scale(.96); } }

/* map */
.cat-rail { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.cat-rail li, .vault-chips li {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px;
  background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); font-weight: 600; font-size: 15px;
}
.vault-chips { display: flex; flex-wrap: wrap; gap: 10px; }
.vault-chips li { font-size: 16px; padding: 10px 16px; }
.js .reveal.is-in .cat-rail li, .js .reveal.is-in .vault-chips li { animation: chipPop .5s var(--ease-spring) both; }
.cat-rail li:nth-child(2), .vault-chips li:nth-child(2) { animation-delay: .06s !important; }
.cat-rail li:nth-child(3), .vault-chips li:nth-child(3) { animation-delay: .12s !important; }
.cat-rail li:nth-child(4), .vault-chips li:nth-child(4) { animation-delay: .18s !important; }
.cat-rail li:nth-child(5) { animation-delay: .24s !important; }
.cat-rail li:nth-child(6) { animation-delay: .3s !important; }
@keyframes chipPop { from { opacity: 0; transform: scale(.7) translateY(8px); } }

.map-switch { display: inline-flex; gap: 4px; padding: 4px; margin-bottom: 20px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); }
.map-switch button { border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--muted); cursor: pointer; transition: background-color .25s, color .25s; }
.map-switch button[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); }

/* ---------- dark showcase ---------- */
.dark-panel {
  --panel-text: #e9fbf5; --panel-muted: #a9cbc0;
  position: relative; overflow: hidden; border-radius: 36px; padding: 48px 20px 40px;
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(47, 209, 160, .22), transparent 60%),
    radial-gradient(60% 50% at 0% 100%, rgba(47, 209, 160, .12), transparent 60%),
    linear-gradient(180deg, #0f4237 0%, #0b2622 50%, #07130f 100%);
  color: var(--panel-text);
  box-shadow: var(--shadow);
  border: 1px solid rgba(255, 255, 255, .06);
}
.dark-panel .eyebrow { color: #6fe6c1; }
.dark-panel .lead { color: var(--panel-muted); }
.dark-panel :focus-visible { outline-color: #2fd1a0; }
.dark-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 40px; align-items: center; justify-items: center; }
.compare { position: relative; display: grid; justify-items: center; }
.compare .phone { --w: min(290px, 74vw); }
.compare-screen img { position: absolute; inset: 0; }
.compare-screen img:first-child { position: relative; }
.compare-top { clip-path: inset(0 calc(100% - var(--pos)) 0 0); }
.compare-handle {
  position: absolute; top: 0; bottom: 0; left: var(--pos); width: 3px; translate: -50% 0; z-index: 4;
  background: #fff; box-shadow: 0 0 0 1px rgba(0, 0, 0, .15), 0 0 16px rgba(0, 0, 0, .3); pointer-events: none;
}
.compare-handle span {
  position: absolute; top: 50%; left: 50%; width: 40px; height: 40px; translate: -50% -50%; border-radius: 50%;
  background: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .35);
}
.compare-handle span::before, .compare-handle span::after {
  content: ""; position: absolute; top: 50%; width: 0; height: 0; border: 6px solid transparent; translate: 0 -50%;
}
.compare-handle span::before { left: 6px; border-right-color: #0c9a72; }
.compare-handle span::after { right: 6px; border-left-color: #0c9a72; }
.compare-range {
  position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: ew-resize; margin: 0; z-index: 6;
}
.compare-range:focus-visible { opacity: 0; }
.compare:has(.compare-range:focus-visible) .phone { outline: 3px solid #2fd1a0; outline-offset: 6px; }
.dark-strip { display: flex; gap: 16px; justify-content: center; width: 100%; min-width: 0; }
.dark-strip .phone { --w: min(200px, 28vw); }
.dark-strip .strip-item:nth-child(2) { margin-top: 36px; }
@media (max-width: 599px) {
  .dark-strip { gap: 10px; }
  .dark-strip .phone { --w: calc((100vw - 32px - 40px - 20px) / 3); padding: 3px; }
  .dark-strip .strip-item:nth-child(2) { margin-top: 20px; }
  .strip-item figcaption { font-size: 12px; }
}
@media (min-width: 960px) {
  .dark-panel { padding: 72px 56px 64px; }
  .dark-grid { grid-template-columns: auto minmax(0, 1fr); gap: 56px; }
}

/* ---------- themes ---------- */
.theme-controls { display: grid; gap: 16px; }
.palette-picker { display: flex; flex-wrap: wrap; gap: 10px; }
.swatch {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border-radius: 999px; cursor: pointer;
  background: var(--glass-strong); border: 1.5px solid var(--glass-border); box-shadow: var(--shadow-sm); font-weight: 700; font-size: 15px;
  transition: transform .2s var(--ease-out), border-color .2s;
}
.swatch span { width: 26px; height: 26px; border-radius: 50%; background: var(--c); box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5); transition: transform .3s var(--ease-spring); }
.swatch:hover span { transform: scale(1.12); }
.swatch[aria-pressed="true"] { border-color: var(--accent); }
.swatch[aria-pressed="true"] span { box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .5), 0 0 0 3px var(--surface), 0 0 0 5px var(--c); }
.scheme-picker { display: inline-flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); justify-self: start; }
.scheme-picker button { display: inline-flex; align-items: center; gap: 8px; border: 0; background: transparent; padding: 9px 16px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--muted); cursor: pointer; transition: background-color .25s, color .25s; }
.scheme-picker button[aria-pressed="true"] { background: var(--btn); color: var(--on-btn); }
.scheme-picker .ic { width: 17px; height: 17px; }
@media (max-width: 380px) { .scheme-picker button { padding: 9px 12px; } }
.settings-card { width: min(460px, 100%); padding: 10px; border-radius: 30px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
.settings-card img { border-radius: 22px; width: 100%; }
.settings-card figcaption { text-align: center; font-size: 14px; color: var(--muted); padding: 10px 0 4px; font-weight: 600; }
@media (min-width: 960px) { .settings-card { transform: rotate(2deg); } }

/* ---------- trust cards ---------- */
.cards { display: grid; gap: 16px; }
.card { padding: 26px; border-radius: var(--radius-lg); display: grid; gap: 8px; align-content: start; }
.card h3 { font-size: 20px; letter-spacing: -0.02em; }
.card p { color: var(--muted); font-size: 16px; }
.card-ic { width: 48px; height: 48px; border-radius: 16px; display: grid; place-items: center; background: var(--tint); color: var(--accent-ink); margin-bottom: 6px; }
.card-ic .ic { width: 22px; height: 22px; }
@media (min-width: 768px) { .cards { grid-template-columns: repeat(3, 1fr); } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 8px; }
@media (min-width: 960px) { .faq-grid { grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; } .faq .section-head { position: sticky; top: 100px; } }
.faq-list { display: grid; gap: 10px; }
.faq details { border-radius: var(--radius); background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary {
  list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 700; font-size: 17px; position: relative; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 20px; top: 50%; width: 24px; height: 24px; translate: 0 -50%; border-radius: 50%;
  background:
    linear-gradient(var(--accent-ink), var(--accent-ink)) center / 11px 2px no-repeat,
    linear-gradient(var(--accent-ink), var(--accent-ink)) center / 2px 11px no-repeat,
    var(--tint);
  transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(135deg); }
.faq details p { padding: 0 22px 20px; color: var(--muted); }
.faq details[open] p { animation: faqIn .35s var(--ease-out); }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } }

/* ---------- final CTA ---------- */
.final-cta { padding-top: 24px; }
.cta-panel {
  text-align: center; display: grid; justify-items: center; gap: 16px; padding: 56px 20px; border-radius: 36px;
  background:
    radial-gradient(60% 80% at 50% 0%, color-mix(in oklab, var(--accent) 22%, transparent), transparent 70%),
    var(--glass);
  border: 1px solid var(--glass-border); box-shadow: var(--shadow);
}
.cta-panel h2 { font-size: clamp(30px, 6vw, 52px); letter-spacing: -0.035em; max-width: 14em; }
.cta-panel .lead { margin-bottom: 8px; }
.cta-icon { width: 88px; height: 88px; border-radius: 24px; box-shadow: 0 18px 30px -12px rgba(7, 80, 60, .55); animation: bob 6s ease-in-out infinite; }

/* ---------- footer ---------- */
.site-footer { padding: 48px 0 40px; border-top: 1px solid var(--line); margin-top: 40px; }
.footer-inner { display: grid; gap: 20px; }
.footer-brand p { color: var(--muted); font-size: 15px; margin-top: 8px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 6px 22px; }
.footer-links a { color: var(--text); font-weight: 600; text-decoration: none; }
.footer-links a:hover { color: var(--accent-ink); text-decoration: underline; }
.fine { font-size: 13px; color: var(--muted); max-width: 60em; }
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1fr auto; align-items: start; }
  .fine { grid-column: 1 / -1; }
}

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }
.steps .reveal:nth-child(2), .cards .reveal:nth-child(2) { --d: .1s; }
.steps .reveal:nth-child(3), .cards .reveal:nth-child(3) { --d: .2s; }
.hero .reveal:nth-child(2) { --d: .08s; }
.hero .reveal:nth-child(3) { --d: .16s; }
.hero .reveal:nth-child(4) { --d: .24s; }
.hero .reveal:nth-child(5) { --d: .32s; }
.hero-stage.reveal { --d: .2s; }

/* ---------- reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; animation-delay: 0s !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .hero-blobs span, .drop { animation: none !important; }
  .drop { opacity: 0; }
  .cycle-steps li.is-active button::after { animation: none; transform: scaleX(1); }
}

/* ---------- legal pages ---------- */
.legal { padding: 40px 0 80px; }
.legal-card { max-width: 820px; margin-inline: auto; padding: 36px 22px; border-radius: 32px; background: var(--glass-strong); border: 1px solid var(--glass-border); box-shadow: var(--shadow); }
@media (min-width: 768px) { .legal-card { padding: 56px 64px; } }
.legal h1 { font-size: clamp(34px, 6vw, 50px); letter-spacing: -0.035em; margin: 8px 0 8px; }
.legal .updated { color: var(--muted); font-size: 15px; margin-bottom: 28px; }
.legal h2 { font-size: 22px; letter-spacing: -0.02em; margin: 36px 0 10px; }
.legal h3 { font-size: 17px; margin: 22px 0 6px; }
.legal p, .legal li { color: color-mix(in oklab, var(--text) 82%, var(--muted)); }
.legal p + p { margin-top: 12px; }
.legal ul { list-style: disc; padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.legal ol { list-style: decimal; padding-left: 22px; display: grid; gap: 6px; margin: 10px 0; }
.legal table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 14px 0; display: block; overflow-x: auto; }
.legal th, .legal td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.legal th { font-size: 13px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.legal .callout { margin: 20px 0; padding: 16px 18px; border-radius: 18px; background: var(--tint); color: var(--text); font-size: 15.5px; }
.legal .back { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; text-decoration: none; margin-bottom: 18px; }
.legal .back .ic { transform: rotate(180deg); }

@media (min-width: 600px) and (max-width: 1023px) {
  .signals { grid-template-columns: 1fr 1fr; align-content: start; }
  .pl-source-body { grid-template-columns: 150px 1fr; }
  .reel-thumb { min-height: 260px; }
}


/* ---------- UI/UX review (ui-ux-pro-max): touch targets, progress, chapter CTA ---------- */
/* touch-target-size: every control is at least 44×44 px */
.btn-sm { --h: 44px; }
.brand { min-height: 44px; }
.cycle-steps button { min-height: 44px; padding: 0 14px; }
.cycle-toggle { width: 44px; height: 44px; }
.map-switch button, .scheme-picker button { min-height: 44px; }
.footer-links { gap: 0 22px; }
.footer-links a { display: inline-flex; align-items: center; min-height: 44px; }

/* Scroll-triggered storytelling: a reading-progress bar under the sticky header */
.read-progress {
  position: absolute; left: 0; right: 0; bottom: -1px; height: 2px; pointer-events: none;
  background: var(--accent); transform-origin: left; transform: scaleX(var(--read, 0));
  opacity: 0; transition: opacity .3s;
}
.site-header.is-scrolled .read-progress { opacity: 1; }

/* A small CTA at the end of the "how it works" chapter (otherwise the page only asks at the top and bottom) */
.chapter-cta { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-top: 28px; font-weight: 600; color: var(--muted); }

/* Less dead space between the final CTA and the footer */
.final-cta { padding-bottom: 40px; }
.site-footer { margin-top: 0; }
