/* HealthLens landing — tokens mirror docs/BRAND.md in the HealthLens repo. */

:root {
  --bg: #F6F7FB;
  --bg-2: #EEF0F8;
  --card: #FFFFFF;
  --card-2: #F8F9FD;
  --ink: #0F172A;
  --muted: #64748B;
  --line: rgba(15, 23, 42, .08);
  --line-2: rgba(15, 23, 42, .14);
  --shadow: 0 1px 2px rgba(79, 70, 229, .06), 0 12px 32px -8px rgba(79, 70, 229, .14);
  --shadow-lg: 0 2px 6px rgba(79, 70, 229, .06), 0 32px 64px -16px rgba(79, 70, 229, .26);
  --blob-a: rgba(79, 70, 229, .30);
  --blob-b: rgba(6, 182, 212, .28);
  --blob-c: rgba(236, 72, 153, .22);
  --phone: #0B1020;
  --chip: #EEF0FA;

  --indigo: #4F46E5;
  --blue: #3B82F6;
  --cyan: #06B6D4;
  --violet: #8B5CF6;
  --pink: #EC4899;

  --glucose: #FF5C8A;
  --bp: #8B5CF6;
  --hr: #F43F5E;
  --weight: #F59E0B;
  --spo2: #0EA5E9;
  --temp: #F97316;

  --ok: #10B981;
  --elevated: #F59E0B;
  --high: #F97316;
  --urgent: #EF4444;
  --low: #3B82F6;

  --grad-ui: linear-gradient(135deg, #4F46E5 0%, #3B82F6 55%, #06B6D4 100%);
  --grad-mark: linear-gradient(135deg, #8B5CF6 0%, #EC4899 100%);
  --grad-warm: linear-gradient(135deg, #FF8A65 0%, #FF5C8A 50%, #8B5CF6 100%);
  --grad-teal: linear-gradient(150deg, #0D9488 0%, #14B8A6 50%, #06B6D4 100%);

  --r-card: 24px;
  --r-hero: 28px;
  --wrap: 1180px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0B1020;
    --bg-2: #0F1530;
    --card: #1A2239;
    --card-2: #151C33;
    --ink: #E2E8F0;
    --muted: #94A3B8;
    --line: rgba(226, 232, 240, .08);
    --line-2: rgba(226, 232, 240, .16);
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -8px rgba(0, 0, 0, .5);
    --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 32px 64px -16px rgba(0, 0, 0, .7);
    --blob-a: rgba(79, 70, 229, .40);
    --blob-b: rgba(6, 182, 212, .22);
    --blob-c: rgba(236, 72, 153, .24);
    --phone: #03060F;
    --chip: #232C47;
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0B1020;
  --bg-2: #0F1530;
  --card: #1A2239;
  --card-2: #151C33;
  --ink: #E2E8F0;
  --muted: #94A3B8;
  --line: rgba(226, 232, 240, .08);
  --line-2: rgba(226, 232, 240, .16);
  --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 12px 32px -8px rgba(0, 0, 0, .5);
  --shadow-lg: 0 2px 6px rgba(0, 0, 0, .3), 0 32px 64px -16px rgba(0, 0, 0, .7);
  --blob-a: rgba(79, 70, 229, .40);
  --blob-b: rgba(6, 182, 212, .22);
  --blob-c: rgba(236, 72, 153, .24);
  --phone: #03060F;
  --chip: #232C47;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 16px/1.6 "Plus Jakarta Sans", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
  transition: background-color .4s var(--ease), color .4s var(--ease);
}
img, svg { display: block; max-width: 100%; }
main { overflow-x: clip; }
a { color: inherit; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--indigo); outline-offset: 3px; border-radius: 10px; }
.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; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--indigo); color: #fff; padding: 10px 16px; border-radius: 999px; text-decoration: none; font-weight: 700; }
.skip:focus { top: 12px; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
@media (max-width: 640px) { .wrap { padding: 0 16px; } }

/* ---------- type ---------- */
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -.02em; line-height: 1.1; text-wrap: balance; }
h2 { font-size: clamp(30px, 4.4vw, 48px); }
h3 { font-size: 20px; font-weight: 700; letter-spacing: -.01em; line-height: 1.25; }
p { margin: 0; text-wrap: pretty; }
.lede { color: var(--muted); font-size: clamp(16px, 1.6vw, 18px); max-width: 60ch; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase;
  color: var(--indigo);
}
[data-theme="dark"] .eyebrow { color: #A5B4FC; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .eyebrow { color: #A5B4FC; } }
.grad-text {
  background: var(--grad-mark);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.grad-ui-text {
  background: var(--grad-ui);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}
.section { padding: clamp(72px, 10vw, 128px) 0; position: relative; }
.section-head { display: grid; gap: 14px; max-width: 720px; margin-bottom: clamp(36px, 5vw, 56px); }
.section-head.center { text-align: center; margin-inline: auto; justify-items: center; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font-weight: 700; font-size: 15px; text-decoration: none; cursor: pointer;
  transition: transform .35s var(--spring), box-shadow .3s var(--ease), background-color .3s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: scale(.97); }
.btn-primary { background: var(--grad-ui); color: #fff; box-shadow: 0 10px 24px -8px rgba(79, 70, 229, .55); }
.btn-ghost { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line-2); }
.btn-ghost:hover { box-shadow: inset 0 0 0 1px var(--indigo); }

.play-badge {
  display: inline-flex; align-items: center; gap: 12px;
  height: 58px; padding: 0 22px 0 18px; border-radius: 16px;
  background: #0B0B0F; color: #fff; text-decoration: none;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, .14) inset, 0 16px 32px -12px rgba(15, 23, 42, .6);
  transition: transform .35s var(--spring), box-shadow .3s var(--ease);
}
.play-badge:hover { transform: translateY(-3px) scale(1.02); box-shadow: 0 0 0 1px rgba(255, 255, 255, .22) inset, 0 22px 40px -12px rgba(79, 70, 229, .6); }
.play-badge svg { width: 28px; height: 30px; flex: none; }
.play-badge span { display: grid; line-height: 1.05; }
.play-badge small { font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; opacity: .8; font-weight: 600; }
.play-badge b { font-size: 21px; font-weight: 700; letter-spacing: -.01em; }

/* ---------- nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto; z-index: 50;
  transition: background-color .3s var(--ease), box-shadow .3s var(--ease), backdrop-filter .3s;
}
.nav.scrolled {
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  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; text-decoration: none; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.brand .mark { width: 34px; height: 34px; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: 14.5px; color: var(--muted); padding: 8px 12px; border-radius: 999px; transition: color .2s, background-color .2s; }
.nav-links a:hover { color: var(--ink); background: var(--chip); }
.nav-actions { display: flex; align-items: center; gap: 8px; }
.icon-btn {
  width: 42px; height: 42px; border-radius: 999px; border: 0; cursor: pointer;
  display: grid; place-items: center; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2);
  transition: transform .35s var(--spring);
}
.icon-btn:hover { transform: rotate(-12deg) scale(1.06); }
.icon-btn svg { width: 20px; height: 20px; }
.theme-toggle .sun { display: none; }
[data-theme="dark"] .theme-toggle .sun { display: block; }
[data-theme="dark"] .theme-toggle .moon { display: none; }
.nav .btn { min-height: 42px; padding: 0 18px; font-size: 14px; }
.menu-btn { display: none; }
@media (max-width: 920px) {
  .nav-links { display: none; }
  .nav-actions { margin-left: auto; }
  .menu-btn { display: grid; }
  .nav .nav-cta { display: none; }
  .nav.open .nav-links {
    display: grid; position: absolute; top: 72px; left: 16px; right: 16px;
    background: var(--card); border-radius: 20px; padding: 10px; box-shadow: var(--shadow-lg);
  }
  .nav.open .nav-links a { padding: 12px 14px; font-size: 16px; color: var(--ink); }
}

/* ---------- aurora ---------- */
.aurora { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; }
.aurora i { position: absolute; border-radius: 50%; filter: blur(70px); animation: drift 9s var(--ease) infinite alternate; }
.aurora i:nth-child(1) { width: 52vw; height: 52vw; max-width: 720px; max-height: 720px; background: var(--blob-a); top: -18%; left: -12%; }
.aurora i:nth-child(2) { width: 44vw; height: 44vw; max-width: 620px; max-height: 620px; background: var(--blob-b); top: 6%; right: -14%; animation-delay: -3s; animation-duration: 11s; }
.aurora i:nth-child(3) { width: 38vw; height: 38vw; max-width: 520px; max-height: 520px; background: var(--blob-c); bottom: -22%; left: 30%; animation-delay: -6s; animation-duration: 13s; }
@keyframes drift {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(4%, 6%, 0) scale(1.08); }
  100% { transform: translate3d(-5%, 2%, 0) scale(.96); }
}

/* ---------- hero ---------- */
.hero { position: relative; padding: 132px 0 72px; overflow: hidden; }
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.hero-copy { display: grid; gap: 24px; justify-items: start; }
.pill {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px;
  background: color-mix(in srgb, var(--card) 80%, transparent); border-radius: 999px;
  box-shadow: inset 0 0 0 1px var(--line-2); font-size: 13.5px; font-weight: 600; color: var(--muted);
  backdrop-filter: blur(8px);
}
.pill b { background: var(--grad-mark); color: #fff; padding: 3px 10px; border-radius: 999px; font-size: 12px; letter-spacing: .02em; }
.hero h1 { font-size: clamp(44px, 7vw, 84px); letter-spacing: -.035em; line-height: 1.02; }
.hero h1 .grad-text { display: inline-block; padding-bottom: .08em; }
.hero .lede { font-size: clamp(17px, 1.8vw, 20px); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 20px; color: var(--muted); font-size: 14px; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { width: 18px; height: 18px; color: var(--ok); }

.hero-stage { position: relative; height: 640px; display: grid; place-items: center; perspective: 1400px; }
.hero-stage .phone { transform: rotateY(-10deg) rotateX(4deg); transition: transform .8s var(--ease); }
.hero-stage:hover .phone { transform: rotateY(-4deg) rotateX(2deg); }
.float {
  position: absolute; z-index: 3; background: var(--card); border-radius: 20px; box-shadow: var(--shadow-lg);
  padding: 14px 16px; display: flex; gap: 12px; align-items: center; font-size: 14px;
  animation: bob 6s ease-in-out infinite;
  will-change: transform;
}
.float .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.float .ic svg { width: 22px; height: 22px; }
.float strong { display: block; font-size: 15px; font-weight: 700; }
.float small { color: var(--muted); font-size: 12.5px; font-weight: 500; }
.float-saved { left: -2%; top: 18%; }
.float-next { right: -4%; top: 52%; animation-delay: -2s; }
.float-trend { left: 2%; bottom: 8%; animation-delay: -4s; flex-direction: column; align-items: stretch; gap: 6px; width: 220px; }
.float-trend svg { width: 100%; height: 44px; }
@keyframes bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 700; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.status.ok { color: #059669; background: rgba(16, 185, 129, .14); }
.status.elevated { color: #B45309; background: rgba(245, 158, 11, .16); }
.status.high { color: #C2410C; background: rgba(249, 115, 22, .16); }
.status.urgent { color: #DC2626; background: rgba(239, 68, 68, .14); }
.status.low { color: #2563EB; background: rgba(59, 130, 246, .14); }
.status.neutral { color: var(--muted); background: var(--chip); }
[data-theme="dark"] .status.ok { color: #34D399; }
[data-theme="dark"] .status.elevated { color: #FBBF24; }
[data-theme="dark"] .status.high { color: #FB923C; }
[data-theme="dark"] .status.urgent { color: #F87171; }
[data-theme="dark"] .status.low { color: #60A5FA; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .status.ok { color: #34D399; }
  :root:not([data-theme="light"]) .status.elevated { color: #FBBF24; }
  :root:not([data-theme="light"]) .status.high { color: #FB923C; }
  :root:not([data-theme="light"]) .status.urgent { color: #F87171; }
  :root:not([data-theme="light"]) .status.low { color: #60A5FA; }
}

.hero-bloom { position: absolute; z-index: 0; width: 520px; height: 520px; opacity: .9; }
.orbit-ring { position: absolute; inset: 0; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 60s linear infinite; }
.orbit-ring.r2 { inset: 70px; animation-duration: 40s; animation-direction: reverse; }
.orbit-dot { position: absolute; width: 12px; height: 12px; border-radius: 50%; top: -6px; left: calc(50% - 6px); box-shadow: 0 0 0 5px color-mix(in srgb, currentColor 18%, transparent); background: currentColor; }
@keyframes spin { to { transform: rotate(360deg); } }

@media (max-width: 980px) {
  .hero { padding-top: 112px; }
  .hero-grid { grid-template-columns: 1fr; gap: 24px; }
  .hero-copy { justify-items: center; text-align: center; }
  .hero-ctas, .hero-trust { justify-content: center; }
  .hero-stage { height: 600px; }
}
@media (max-width: 560px) {
  .hero-stage { height: 520px; }
  .hero-bloom { width: 360px; height: 360px; }
  .float-saved { left: -8px; top: 10%; }
  .float-next { right: -8px; top: 56%; }
  .float-trend { display: none; }
  .float { padding: 10px 12px; }
  .float .ic { width: 34px; height: 34px; }
}

/* ---------- phone ---------- */
.phone {
  --pw: 290px;
  position: relative; z-index: 2; width: var(--pw); aspect-ratio: 9 / 19.6;
  border-radius: calc(var(--pw) * .15); padding: calc(var(--pw) * .035);
  background: var(--phone);
  box-shadow: 0 0 0 2px rgba(255, 255, 255, .06) inset, 0 0 0 1px rgba(15, 23, 42, .4), var(--shadow-lg), 0 60px 120px -40px rgba(79, 70, 229, .45);
}
.phone::before { /* side button */
  content: ""; position: absolute; right: -3px; top: 22%; width: 3px; height: 13%; border-radius: 0 3px 3px 0; background: var(--phone);
}
.screen { position: relative; width: 100%; height: 100%; border-radius: calc(var(--pw) * .118); overflow: hidden; background: #F6F7FB; }
.screen img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.screen::after { /* punch-hole camera */
  content: ""; position: absolute; top: 1.6%; left: 50%; width: 3.6%; aspect-ratio: 1; translate: -50% 0; border-radius: 50%; background: #05070d; z-index: 2;
}
@media (max-width: 560px) { .phone { --pw: 250px; } }

.dark-only { display: none; }
[data-theme="dark"] .dark-only { display: block; }
[data-theme="dark"] .light-only { display: none; }

/* ---------- metric marquee ---------- */
.marquee { position: relative; z-index: 1; padding: 18px 0 8px; overflow: hidden; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; gap: 14px; width: max-content; animation: marquee 38s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.metric-chip {
  display: inline-flex; align-items: center; gap: 12px; padding: 10px 20px 10px 10px; border-radius: 999px;
  background: var(--card); box-shadow: var(--shadow); white-space: nowrap; font-weight: 700; font-size: 15px;
}
.metric-chip .ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.metric-chip .ic svg { width: 20px; height: 20px; }
.metric-chip small { color: var(--muted); font-weight: 600; font-size: 13px; }

/* ---------- how it works (scrollytelling) ---------- */
.how-grid { display: grid; grid-template-columns: 1fr 360px; gap: 72px; align-items: start; }
.steps { display: grid; gap: 28px; }
.step {
  display: grid; grid-template-columns: 200px 1fr; gap: 28px; align-items: center;
  padding: 28px; border-radius: var(--r-hero); background: var(--card);
  box-shadow: var(--shadow); opacity: .5; transform: scale(.98);
  transition: opacity .5s var(--ease), transform .6s var(--ease), box-shadow .5s var(--ease);
}
.step.active { opacity: 1; transform: none; box-shadow: var(--shadow-lg); }
.step .art { width: 200px; height: 200px; border-radius: 22px; position: relative; overflow: hidden; background: var(--card-2); }
.step .art svg { width: 100%; height: 100%; }
.step-num { font-size: 13px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--c, var(--indigo)); display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.step-num::after { content: ""; height: 2px; width: 28px; border-radius: 2px; background: currentColor; opacity: .5; }
.step h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.02em; margin-bottom: 10px; }
.step p { color: var(--muted); }
.step ul { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 8px; font-size: 14.5px; font-weight: 600; }
.step li { display: flex; gap: 10px; align-items: flex-start; }
.step li::before { content: ""; flex: none; margin-top: 7px; width: 8px; height: 8px; border-radius: 50%; background: var(--c, var(--indigo)); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c, var(--indigo)) 18%, transparent); }
.step-shot { display: none; }
.how-phone { position: sticky; top: 112px; display: grid; justify-items: center; gap: 18px; }
.how-phone .phone { --pw: 320px; }
.how-phone .screen img { opacity: 0; transform: scale(1.04); transition: opacity .6s var(--ease), transform .8s var(--ease); }
.how-phone .screen img.on { opacity: 1; transform: none; }
.dots { display: flex; gap: 8px; }
.dots button { width: 8px; height: 8px; border-radius: 999px; border: 0; padding: 0; background: var(--line-2); cursor: pointer; transition: width .4s var(--ease), background-color .3s; }
.dots button.on { width: 28px; background: var(--indigo); }
@media (max-width: 1080px) {
  .how-grid { grid-template-columns: 1fr; }
  .how-phone { display: none; }
  .step { opacity: 1; transform: none; }
}
@media (max-width: 720px) {
  .step { grid-template-columns: 1fr; padding: 20px; }
  .step .art { width: 100%; height: 220px; }
  .step-shot { display: block; width: 100%; max-width: 260px; margin: 18px auto 0; border-radius: 22px; box-shadow: var(--shadow-lg); }
}

/* illustration motion helpers (SVG) */
.floaty { animation: floaty 5s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.swing { animation: swing 2.4s ease-in-out infinite; transform-box: fill-box; transform-origin: 50% 8%; }
@keyframes swing { 0%, 100% { transform: rotate(-9deg); } 50% { transform: rotate(9deg); } }
.scanline { animation: scan 2.6s ease-in-out infinite; }
@keyframes scan { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(58px); } }
.pulse-ring { animation: pulsering 2.4s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.pulse-ring.d2 { animation-delay: 1.2s; }
@keyframes pulsering { 0% { transform: scale(.6); opacity: .7; } 100% { transform: scale(1.5); opacity: 0; } }
.draw { stroke-dasharray: 400; stroke-dashoffset: 400; animation: draw 3.2s var(--ease) infinite; }
@keyframes draw { 0% { stroke-dashoffset: 400; } 45%, 80% { stroke-dashoffset: 0; } 100% { stroke-dashoffset: -400; } }
.grow { transform-box: fill-box; transform-origin: bottom; animation: grow 3.2s var(--ease) infinite; }
@keyframes grow { 0% { transform: scaleY(.15); } 40%, 85% { transform: scaleY(1); } 100% { transform: scaleY(.15); } }
.twinkle { animation: twinkle 2s ease-in-out infinite; transform-box: fill-box; transform-origin: center; }
@keyframes twinkle { 0%, 100% { opacity: .3; transform: scale(.7); } 50% { opacity: 1; transform: scale(1.1); } }
.orbit { animation: spin 7s linear infinite; transform-box: view-box; }
.hand { animation: spin 6s linear infinite; transform-box: view-box; }
.bloom-petal { transform-box: view-box; transform-origin: 50px 50px; animation: petal 1.4s var(--ease) both; }
.bloom-petal:nth-child(2) { animation-delay: .21s; }
.bloom-petal:nth-child(3) { animation-delay: .42s; }
@keyframes petal { from { transform: scale(0); opacity: 0; } }
.bloom-core { transform-box: view-box; transform-origin: 50px 50px; animation: core .6s var(--spring) 1.1s both; }
@keyframes core { from { transform: scale(0); } }
.breathe .bloom-petals { transform-box: view-box; transform-origin: 50px 50px; animation: breathe 2.6s ease-in-out 1.6s infinite; }
@keyframes breathe { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.05); } }

/* ---------- try it ---------- */
.try { background: linear-gradient(180deg, transparent, var(--bg-2) 18%, var(--bg-2) 82%, transparent); }
.try-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 28px; align-items: stretch; }
.panel { background: var(--card); border-radius: var(--r-hero); box-shadow: var(--shadow-lg); padding: clamp(20px, 3vw, 32px); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; cursor: pointer;
  background: var(--chip); color: var(--ink); font-weight: 600; font-size: 14.5px;
  box-shadow: inset 0 0 0 1.5px transparent;
  transition: background-color .25s, box-shadow .25s, color .25s, transform .35s var(--spring);
}
.chip:hover { transform: translateY(-1px); }
.chip svg { width: 16px; height: 16px; }
.chip[aria-pressed="true"], .chip[aria-checked="true"] {
  background: color-mix(in srgb, var(--c, var(--indigo)) 14%, var(--card));
  color: var(--c, var(--indigo)); box-shadow: inset 0 0 0 1.5px var(--c, var(--indigo));
}
.try-label { font-size: 14px; font-weight: 700; margin: 22px 0 10px; display: block; }
.readout {
  margin-top: 20px; border-radius: 22px; padding: 22px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line);
  display: grid; gap: 6px; justify-items: center; text-align: center; position: relative;
}
.readout-top { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; font-weight: 700; }
.readout-top .name { display: inline-flex; align-items: center; gap: 10px; }
.readout-top .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.readout-top .ic svg { width: 20px; height: 20px; }
.big-num { font-size: clamp(56px, 8vw, 76px); font-weight: 800; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; margin-top: 10px; }
.big-num .sep { color: var(--muted); font-weight: 700; font-size: .55em; margin: 0 2px; }
.unit { color: var(--muted); font-weight: 600; }
.stepper { display: flex; gap: 12px; align-items: center; width: 100%; margin-top: 12px; }
.stepper button { width: 40px; height: 40px; border-radius: 50%; border: 0; background: var(--card); box-shadow: inset 0 0 0 1px var(--line-2); cursor: pointer; font-size: 20px; font-weight: 700; flex: none; transition: transform .3s var(--spring); }
.stepper button:active { transform: scale(.9); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; background: linear-gradient(90deg, var(--c) var(--p, 50%), var(--line-2) var(--p, 50%)); outline: none; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--c); box-shadow: 0 4px 10px rgba(15, 23, 42, .2); cursor: grab; }
input[type="range"]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--c); cursor: grab; }
.range2 { display: none; width: 100%; gap: 12px; align-items: center; margin-top: 4px; font-size: 13px; font-weight: 700; color: var(--muted); }
.range2.show { display: flex; }
.toggle-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 18px; font-size: 14.5px; font-weight: 600; }
.switch { position: relative; width: 50px; height: 30px; border-radius: 999px; border: 0; background: var(--line-2); cursor: pointer; transition: background-color .3s; flex: none; }
.switch::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .2); transition: transform .35s var(--spring); }
.switch[aria-checked="true"] { background: var(--glucose); }
.switch[aria-checked="true"]::after { transform: translateX(20px); }
.result { display: grid; gap: 16px; align-content: start; }
.result-card { border-radius: 22px; padding: 20px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); }
.result-card .k { font-size: 12.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.result-card .v { font-size: 20px; font-weight: 800; letter-spacing: -.01em; margin-top: 4px; }
.result-card p { color: var(--muted); font-size: 14.5px; margin-top: 6px; }
.next-card { background: var(--grad-ui); color: #fff; box-shadow: 0 20px 40px -18px rgba(79, 70, 229, .7); position: relative; overflow: hidden; }
.next-card .k, .next-card p { color: rgba(255, 255, 255, .82); }
.next-card.urgent { background: linear-gradient(135deg, #EF4444, #F97316); box-shadow: 0 20px 40px -18px rgba(239, 68, 68, .7); }
.next-card .bell { position: absolute; right: 16px; top: 16px; width: 44px; height: 44px; border-radius: 14px; background: rgba(255, 255, 255, .18); display: grid; place-items: center; }
.next-card .bell svg { width: 24px; height: 24px; }
.next-card .v { font-size: 26px; padding-right: 56px; }
.band { position: relative; height: 12px; border-radius: 99px; margin: 14px 0 6px; background: linear-gradient(90deg, var(--low) 0 var(--b1), var(--ok) var(--b1) var(--b2), var(--elevated) var(--b2) var(--b3), var(--urgent) var(--b3) 100%); opacity: .9; }
.band i { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 4px solid var(--ink); translate: -50% -50%; left: var(--at, 50%); transition: left .5s var(--spring); box-shadow: 0 4px 10px rgba(15, 23, 42, .25); }
.band-legend { display: flex; justify-content: space-between; font-size: 12px; font-weight: 600; color: var(--muted); }
.save-btn { width: 100%; margin-top: 20px; background: linear-gradient(90deg, #FF5C8A, #8B5CF6); color: #fff; min-height: 54px; font-size: 16px; }
.toast { position: absolute; inset: 0; border-radius: inherit; display: grid; place-items: center; align-content: center; gap: 8px; background: color-mix(in srgb, var(--card) 94%, transparent); backdrop-filter: blur(6px); opacity: 0; pointer-events: none; transition: opacity .3s; text-align: center; }
.toast.show { opacity: 1; }
.toast .check { width: 76px; height: 76px; border-radius: 50%; background: var(--ok); display: grid; place-items: center; color: #fff; transform: scale(0); transition: transform .5s var(--spring); }
.toast.show .check { transform: scale(1); }
.toast .check svg { width: 40px; height: 40px; }
.toast b { font-size: 26px; font-weight: 800; }
.confetti { position: absolute; left: 50%; top: 50%; width: 8px; height: 8px; border-radius: 50%; pointer-events: none; }
.fine { font-size: 12.5px; color: var(--muted); margin-top: 14px; }
@media (max-width: 900px) { .try-grid { grid-template-columns: 1fr; } }

/* ---------- insights ---------- */
.ins-grid { display: grid; grid-template-columns: repeat(12, 1fr); gap: 20px; }
.ins-grid > * { min-width: 0; }
.proj { grid-column: span 5; background: var(--grad-teal); color: #fff; border-radius: var(--r-hero); padding: 28px; box-shadow: 0 30px 60px -30px rgba(13, 148, 136, .8); position: relative; overflow: hidden; }
.proj::after { content: ""; position: absolute; width: 260px; height: 260px; border-radius: 50%; right: -90px; top: -90px; background: radial-gradient(circle, rgba(255, 255, 255, .25), transparent 70%); }
.proj .k { font-size: 12.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; opacity: .9; display: flex; gap: 8px; align-items: center; }
.proj .k svg { width: 18px; height: 18px; }
.proj .from-to { display: flex; align-items: baseline; gap: 14px; margin: 16px 0 4px; font-weight: 800; letter-spacing: -.03em; }
.proj .from-to b { font-size: 52px; line-height: 1; font-variant-numeric: tabular-nums; }
.proj .from-to svg { width: 36px; height: 24px; align-self: center; }
.proj .rows { margin-top: 20px; display: grid; gap: 10px; }
.proj .row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 10px; align-items: center; font-weight: 600; font-size: 15px; font-variant-numeric: tabular-nums; }
.proj .row svg { width: 18px; height: 14px; opacity: .85; }
.proj .note { font-size: 12.5px; opacity: .85; margin-top: 18px; }
.day { grid-column: span 7; }
.card { background: var(--card); border-radius: var(--r-card); box-shadow: var(--shadow); padding: 26px; }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.card-head p { color: var(--muted); font-size: 14px; }
.bars { height: 230px; display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(8px, 2vw, 20px); align-items: end; padding-top: 30px; position: relative; }
.bars .target { position: absolute; left: 0; right: 0; border-top: 2px dashed color-mix(in srgb, var(--ok) 60%, transparent); font-size: 11px; font-weight: 700; color: var(--ok); text-align: left; padding-top: 2px; transition: bottom .6s var(--ease); }
.bar { display: grid; justify-items: center; gap: 8px; height: 100%; align-content: end; }
.bar .col { width: min(56px, 100%); border-radius: 14px 14px 8px 8px; background: linear-gradient(180deg, var(--c), color-mix(in srgb, var(--c) 45%, transparent)); height: 0; transition: height .9s var(--spring); }
.bar .val { font-weight: 800; font-size: 15px; color: var(--c); font-variant-numeric: tabular-nums; }
.bar .lab { font-size: 12.5px; font-weight: 600; color: var(--muted); white-space: nowrap; }
.noticed { grid-column: span 7; display: grid; gap: 12px; }
.notice { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; border-radius: 20px; background: var(--card); box-shadow: var(--shadow); }
.notice .ic { width: 38px; height: 38px; border-radius: 12px; flex: none; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 14%, transparent); color: var(--c); }
.notice .ic svg { width: 20px; height: 20px; }
.notice b { display: block; font-weight: 700; }
.notice span { color: var(--muted); font-size: 14.5px; }
.unlock { grid-column: span 5; display: grid; justify-items: center; align-content: center; text-align: center; gap: 12px; }
.ring { width: 150px; height: 150px; position: relative; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 12; stroke-linecap: round; }
.ring .track { stroke: var(--chip); }
.ring .prog { stroke: url(#ringGrad); stroke-dasharray: 402; stroke-dashoffset: 402; transition: stroke-dashoffset 1.6s var(--ease); }
.ring .lbl { position: absolute; inset: 0; display: grid; place-content: center; }
.ring .lbl b { font-size: 34px; font-weight: 800; letter-spacing: -.02em; line-height: 1; }
.ring .lbl small { color: var(--muted); font-weight: 600; font-size: 12.5px; }
@media (max-width: 960px) {
  .proj, .day, .noticed, .unlock { grid-column: 1 / -1; }
}

/* ---------- AI ---------- */
.ai-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.ai-orbit { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin: 0 auto; }
.ai-orb {
  position: absolute; inset: 34%; border-radius: 50%;
  background: conic-gradient(from 0deg, #8B5CF6, #EC4899, #F59E0B, #06B6D4, #3B82F6, #8B5CF6);
  filter: saturate(1.2); animation: spin 8s linear infinite;
  box-shadow: 0 0 80px 10px rgba(139, 92, 246, .35);
}
.ai-orb::after { content: ""; position: absolute; inset: 0; border-radius: 50%; background: radial-gradient(circle at 35% 30%, rgba(255, 255, 255, .85), rgba(255, 255, 255, 0) 45%); }
.ai-ring { position: absolute; border-radius: 50%; border: 1px dashed var(--line-2); animation: spin 48s linear infinite; }
.ai-ring.a { inset: 16%; }
.ai-ring.b { inset: 0; animation-duration: 72s; animation-direction: reverse; }
.ai-ring .prov { position: absolute; left: 50%; top: 50%; }
.ai-ring .prov span {
  display: inline-flex; align-items: center; gap: 8px; translate: -50% -50%;
  padding: 7px 14px 7px 7px; border-radius: 999px; background: var(--card); box-shadow: var(--shadow); white-space: nowrap;
  font-size: 13.5px; font-weight: 700; animation: spin 48s linear infinite reverse;
}
.ai-ring.b .prov span { animation-duration: 72s; animation-direction: normal; }
.ai-ring .prov i { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; font-style: normal; font-size: 11px; font-weight: 800; color: #fff; background: var(--c); }
.report { margin-top: 26px; font-size: 14.5px; }
.report h4 { font-size: 15px; font-weight: 800; margin: 14px 0 6px; display: flex; align-items: center; gap: 8px; }
.report h4:first-child { margin-top: 0; }
.report h4::before { content: ""; width: 6px; height: 16px; border-radius: 3px; background: var(--grad-mark); }
.report p, .report li { color: var(--muted); }
.report ul { margin: 0; padding-left: 20px; display: grid; gap: 4px; }
.caret { display: inline-block; width: 2px; height: 1em; background: var(--indigo); vertical-align: -2px; margin-left: 2px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.ai-points { display: grid; gap: 12px; margin-top: 22px; }
.ai-points div { display: flex; gap: 12px; align-items: flex-start; font-weight: 600; }
.ai-points svg { width: 22px; height: 22px; flex: none; color: var(--violet); margin-top: 1px; }
@media (max-width: 560px) { .ai-ring.b .prov { display: none; } .ai-ring.a { inset: 8%; } }
@media (max-width: 960px) {
  .ai-grid { grid-template-columns: 1fr; }
  .ai-orbit { max-width: 420px; width: calc(100% - 96px); }
  .ai-ring .prov span { font-size: 12px; padding: 5px 10px 5px 5px; }
  .ai-ring .prov i { width: 22px; height: 22px; font-size: 10px; }
}

/* ---------- personas ---------- */
.people { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.person {
  position: relative; padding: 24px; border-radius: var(--r-card); background: var(--card); box-shadow: var(--shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease); overflow: hidden; transform-style: preserve-3d;
}
.person:hover { box-shadow: var(--shadow-lg); }
.person::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--c); }
.avatar { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: color-mix(in srgb, var(--c) 15%, transparent); color: var(--c); margin-bottom: 16px; }
.avatar svg { width: 30px; height: 30px; }
.person h3 { font-size: 18px; }
.person .who { color: var(--muted); font-size: 13.5px; font-weight: 600; margin: 2px 0 12px; }
.person p { font-size: 14.5px; color: var(--muted); }
.person .tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 14px; }
.person .tags span { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, transparent); color: var(--c); }
@media (max-width: 1020px) { .people { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .people { grid-template-columns: 1fr; } }

/* ---------- privacy ---------- */
.privacy { background: radial-gradient(1200px 500px at 50% 0%, color-mix(in srgb, var(--indigo) 10%, transparent), transparent 70%); }
.priv-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 56px; align-items: center; }
.shield-art { width: 100%; max-width: 420px; margin: 0 auto; }
.priv-tiles { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; }
.tile { padding: 20px; border-radius: 22px; background: var(--card); box-shadow: var(--shadow); display: grid; gap: 8px; align-content: start; }
.tile .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, var(--c, var(--indigo)) 14%, transparent); color: var(--c, var(--indigo)); }
.tile .ic svg { width: 22px; height: 22px; }
.tile b { font-size: 16px; }
.tile span { color: var(--muted); font-size: 14px; }
.priv-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 22px; }
@media (max-width: 960px) { .priv-grid { grid-template-columns: 1fr; } }
@media (max-width: 520px) { .priv-tiles { grid-template-columns: 1fr; } }

/* ---------- gallery ---------- */
.gallery-wrap { position: relative; }
.gallery { display: flex; gap: 28px; overflow-x: auto; scroll-snap-type: x mandatory; padding: 24px max(24px, calc((100vw - var(--wrap)) / 2 + 24px)) 40px; scrollbar-width: none; cursor: grab; }
.gallery::-webkit-scrollbar { display: none; }
.gallery.dragging { cursor: grabbing; scroll-snap-type: none; }
.gallery figure { margin: 0; flex: none; scroll-snap-align: center; display: grid; justify-items: center; gap: 14px; }
.gallery .phone { --pw: 240px; transition: transform .5s var(--ease); }
.gallery figure:hover .phone { transform: translateY(-8px); }
.gallery figcaption { font-weight: 700; font-size: 14.5px; }
.gallery figcaption small { display: block; color: var(--muted); font-weight: 500; font-size: 13px; text-align: center; }
.gallery-nav { display: flex; gap: 10px; justify-content: center; }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--card); border-radius: 20px; box-shadow: var(--shadow); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 20px 22px; font-weight: 700; font-size: 16.5px; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%; background: var(--chip) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%234F46E5' stroke-width='2.6' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 16px no-repeat; transition: transform .4s var(--spring); }
.faq details[open] summary::after { transform: rotate(135deg); }
.faq .ans { padding: 0 22px 20px; color: var(--muted); }
.faq .ans a { color: var(--indigo); font-weight: 600; }

/* ---------- CTA ---------- */
.cta { position: relative; overflow: hidden; border-radius: 36px; padding: clamp(40px, 7vw, 80px) clamp(22px, 5vw, 64px); background: linear-gradient(135deg, #2E1065 0%, #4F46E5 40%, #7C3AED 70%, #DB2777 100%); color: #fff; display: grid; grid-template-columns: 1fr auto; gap: 40px; align-items: center; }
.cta::before, .cta::after { content: ""; position: absolute; border-radius: 50%; filter: blur(60px); animation: drift 10s var(--ease) infinite alternate; }
.cta::before { width: 420px; height: 420px; background: rgba(6, 182, 212, .45); left: -120px; bottom: -200px; }
.cta::after { width: 380px; height: 380px; background: rgba(236, 72, 153, .5); right: -80px; top: -180px; animation-delay: -4s; }
.cta > * { position: relative; z-index: 1; }
.cta h2 { font-size: clamp(32px, 5vw, 56px); }
.cta p { opacity: .88; margin-top: 14px; font-size: 18px; max-width: 48ch; }
.cta .hero-ctas { margin-top: 28px; }
.cta .btn-ghost { background: rgba(255, 255, 255, .12); color: #fff; box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .3); }
.cta-mark { width: 220px; height: 220px; filter: drop-shadow(0 30px 50px rgba(0, 0, 0, .35)); }
@media (max-width: 820px) { .cta { grid-template-columns: 1fr; text-align: center; justify-items: center; } .cta .hero-ctas { justify-content: center; } .cta-mark { width: 150px; height: 150px; grid-row: 1; } }

/* ---------- footer ---------- */
.footer { padding: 64px 0 40px; margin-top: clamp(64px, 8vw, 104px); border-top: 1px solid var(--line); }
.foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; }
.foot-grid h4 { font-size: 13px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; margin-bottom: 14px; }
.foot-grid ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.foot-grid a { text-decoration: none; font-weight: 600; font-size: 15px; }
.foot-grid a:hover { color: var(--indigo); }
.foot-brand p { color: var(--muted); margin-top: 12px; font-size: 15px; max-width: 36ch; }
.disclaimer { margin-top: 40px; padding: 18px 20px; border-radius: 18px; background: var(--card); box-shadow: inset 0 0 0 1px var(--line); color: var(--muted); font-size: 13.5px; display: flex; gap: 12px; align-items: flex-start; }
.disclaimer svg { width: 20px; height: 20px; flex: none; color: var(--elevated); margin-top: 1px; }
.foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 28px; color: var(--muted); font-size: 13.5px; }
.foot-bottom a { color: inherit; }
@media (max-width: 820px) { .foot-grid { grid-template-columns: 1fr 1fr; } .foot-brand { grid-column: 1 / -1; } }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.in { opacity: 1; transform: none; }

/* ---------- legal pages ---------- */
.legal-hero { position: relative; padding: 140px 0 48px; overflow: hidden; }
.legal-hero .wrap { position: relative; z-index: 1; display: grid; gap: 14px; max-width: 828px; }
.legal-hero h1 { font-size: clamp(38px, 6vw, 60px); letter-spacing: -.03em; }
.legal-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.legal-tabs a { text-decoration: none; }
.legal { max-width: 780px; margin: 0 auto; background: var(--card); border-radius: var(--r-hero); box-shadow: var(--shadow); padding: clamp(24px, 5vw, 56px); }
.legal .summary { background: color-mix(in srgb, var(--indigo) 8%, var(--card)); border-radius: 18px; padding: 18px 20px; margin-bottom: 28px; box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--indigo) 20%, transparent); }
.legal h2 { font-size: 22px; letter-spacing: -.01em; margin: 36px 0 12px; scroll-margin-top: 96px; }
.legal h2:first-of-type { margin-top: 0; }
.legal p, .legal li { color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.legal p + p { margin-top: 12px; }
.legal ul { padding-left: 22px; display: grid; gap: 8px; }
.legal a { color: var(--indigo); font-weight: 600; }
.legal .toc { display: grid; gap: 6px; padding: 18px 20px; border-radius: 18px; background: var(--card-2); margin-bottom: 32px; font-size: 14.5px; }
.legal .toc b { font-size: 13px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.legal .toc ol { margin: 0; padding-left: 20px; columns: 2; column-gap: 28px; }
.legal .toc li { margin-bottom: 4px; }
@media (max-width: 560px) { .legal .toc ol { columns: 1; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .marquee-track { animation: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* legal: data table, steps, notes */
.legal .table-wrap { margin: 16px 0; border-radius: 18px; box-shadow: inset 0 0 0 1px var(--line-2); overflow: hidden; }
.legal table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.legal th { text-align: left; font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); background: var(--card-2); padding: 12px 16px; }
.legal td { padding: 14px 16px; vertical-align: top; border-top: 1px solid var(--line); color: color-mix(in srgb, var(--ink) 82%, var(--muted)); }
.legal td:first-child { width: 40%; }
@media (max-width: 640px) {
  .legal thead { display: none; }
  .legal table, .legal tbody, .legal tr, .legal td { display: block; width: 100% !important; }
  .legal tr { padding: 14px 16px; border-top: 1px solid var(--line); }
  .legal tr:first-child { border-top: 0; }
  .legal td { border: 0; padding: 4px 0; }
  .legal td[data-label]::before { content: attr(data-label); display: block; font-size: 11.5px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); margin-top: 6px; }
}
.legal .option { border-radius: 22px; padding: 22px; background: var(--card-2); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 14px; }
.legal .option-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.legal .option-head h2 { margin: 0; }
.legal .tag { font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; background: rgba(16, 185, 129, .14); color: #059669; }
[data-theme="dark"] .legal .tag { color: #34D399; }
.legal .steps-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: s; }
.legal .steps-list li { counter-increment: s; display: flex; gap: 14px; align-items: center; padding: 12px 14px; border-radius: 16px; background: var(--card); box-shadow: var(--shadow); }
.legal .steps-list li::before { content: counter(s); flex: none; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #fff; background: var(--grad-ui); }
.legal .option + .option { margin-top: 18px; }
.legal .option .btn { justify-self: start; }
.legal .option .btn, .legal .option .btn:hover { color: #fff; }
.legal .note { display: flex; gap: 12px; align-items: flex-start; padding: 16px 18px; border-radius: 18px; background: color-mix(in srgb, var(--elevated) 10%, var(--card)); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--elevated) 30%, transparent); font-size: 14.5px; margin-top: 16px; }
.legal .note svg { width: 20px; height: 20px; flex: none; color: var(--elevated); margin-top: 2px; }
