/* marketing-site/styles.css
   Kapslo, 2026 redesign.
   Palette = the app's own tokens (src/theme.ts) plus the icon's capsule amber,
   so the site and the app read as one product:
     teal   = brand + primary actions
     amber  = the capsule half, used as a highlighter, never for text on paper
     violet = AI / Premium, and nothing else (same meaning as the in-app accent)
     red    = over the limit / myth verdict, and nothing else
   Type: Bricolage Grotesque (display), Geist (text), Geist Mono (doses, numbers).
   Light and dark themes via prefers-color-scheme; all colour lives in tokens. */

:root {
  --teal: #0F766E;
  --teal-deep: #0B4F4A;
  --teal-bright: #14B8A6;
  --teal-soft: #CCFBF1;
  --amber: #FBBF24;
  --violet: #7C3AED;
  --violet-soft: #EDE9FE;
  --violet-text: #5B21B6;
  --red: #DC2626;
  --red-soft: #FEE2E2;
  --red-text: #991B1B;

  --paper: #F7F6F1;          /* warm off-white page ground */
  --surface: #FFFFFF;
  --surface-2: #F1F5F4;
  --ink: #0F172A;
  --ink-2: #475569;          /* 7:1 on --paper */
  --line: rgba(15, 23, 42, 0.10);
  --line-strong: rgba(15, 23, 42, 0.18);
  --brand-text: var(--teal-deep);
  --ai-text: var(--violet-text);
  --ai-bg: var(--violet-soft);
  --alert-text: var(--red-text);
  --alert-bg: var(--red-soft);
  --band: #0A1F1D;           /* evidence band, dark in both themes */
  --band-ink: #E6F2EF;
  --band-ink-2: #9DBDB7;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 12px 32px -12px rgba(15, 23, 42, 0.18);
  --glow-a: rgba(20, 184, 166, 0.22);
  --glow-b: rgba(251, 191, 36, 0.18);

  --display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --text: "Geist", "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --gutter: clamp(16px, 4vw, 40px);
  --r-lg: 28px;
  --r-md: 18px;
  --r-sm: 10px;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --paper: #0A1614;
    --surface: #10211F;
    --surface-2: #152B28;
    --ink: #E8F1EF;
    --ink-2: #A3B8B4;
    --line: rgba(232, 241, 239, 0.10);
    --line-strong: rgba(232, 241, 239, 0.20);
    --brand-text: #5EEAD4;
    --ai-text: #C4B5FD;
    --ai-bg: rgba(124, 58, 237, 0.20);
    --alert-text: #FCA5A5;
    --alert-bg: rgba(220, 38, 38, 0.18);
    --band: #04100E;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3), 0 16px 40px -16px rgba(0, 0, 0, 0.7);
    --glow-a: rgba(20, 184, 166, 0.20);
    --glow-b: rgba(251, 191, 36, 0.08);
    color-scheme: dark;
  }
}

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

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--text);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--display);
  margin: 0;
  font-weight: 700;
  line-height: 1.05;
  letter-spacing: -0.025em;
  text-wrap: balance;
}
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
a { color: inherit; }
p { text-wrap: pretty; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding-inline: var(--gutter); }

.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-link {
  position: absolute; left: 16px; top: -100px; z-index: 100;
  background: var(--ink); color: var(--paper);
  padding: 10px 16px; border-radius: var(--r-sm); font-weight: 600; text-decoration: none;
}
.skip-link:focus { top: 12px; }

:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; border-radius: 6px; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 1rem/1 var(--text);
  color: #fff; background: var(--teal);
  border: 0; border-radius: 999px;
  padding: 0 22px; min-height: 52px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 6px 18px -8px rgba(15, 118, 110, 0.8);
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.btn:hover { background: var(--teal-deep); }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn--small { min-height: 40px; padding: 0 16px; font-size: 0.9375rem; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 50;
  padding-top: env(safe-area-inset-top, 0px);
  background: color-mix(in srgb, var(--paper) 78%, transparent);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar__inner { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.topbar__progress {
  position: absolute; left: 0; bottom: -1px; height: 2px; width: 100%;
  background: linear-gradient(90deg, var(--teal-bright), var(--amber));
  transform-origin: 0 50%; transform: scaleX(0);
}
@supports (animation-timeline: scroll()) {
  .topbar__progress { animation: progress linear both; animation-timeline: scroll(root); }
  @keyframes progress { to { transform: scaleX(1); } }
}
@supports not (animation-timeline: scroll()) { .topbar__progress { display: none; } }

.wordmark {
  display: inline-flex; align-items: center; gap: 10px;
  font: 700 1.375rem/1 var(--display); letter-spacing: -0.03em;
  text-decoration: none; color: var(--ink);
}
.wordmark--small { font-size: 1.125rem; }

/* The app icon's two-tone capsule, drawn in CSS */
.wordmark__pill {
  position: relative; display: inline-block; width: 30px; height: 30px; border-radius: 9px;
  background: linear-gradient(135deg, var(--teal-bright), var(--teal));
  flex: none;
}
.wordmark__pill > span {
  position: absolute; left: 50%; top: 50%; width: 22px; height: 9px; border-radius: 99px;
  transform: translate(-50%, -50%) rotate(-35deg);
  background: linear-gradient(90deg, #fff 50%, var(--amber) 50%);
  box-shadow: 0 2px 3px rgba(0, 0, 0, 0.2);
}
.wordmark--small .wordmark__pill { width: 24px; height: 24px; border-radius: 7px; }
.wordmark--small .wordmark__pill > span { width: 18px; height: 7px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: clip; padding-block: clamp(40px, 7vw, 96px) clamp(56px, 8vw, 112px); }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: min(900px, 120vw); aspect-ratio: 1;
  background:
    radial-gradient(closest-side, var(--glow-a), transparent 70%),
    radial-gradient(closest-side at 30% 70%, var(--glow-b), transparent 70%);
  pointer-events: none; z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr); gap: clamp(32px, 5vw, 72px); align-items: center; }

.status-pill {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 0.875rem; font-weight: 500; color: var(--brand-text);
  background: color-mix(in srgb, var(--teal-soft) 60%, transparent);
  border: 1px solid color-mix(in srgb, var(--teal) 25%, transparent);
  padding: 7px 14px 7px 12px; border-radius: 999px; margin-bottom: 24px;
}
@media (prefers-color-scheme: dark) { .status-pill { background: rgba(20, 184, 166, 0.12); } }
.status-pill__dot { position: relative; width: 8px; height: 8px; border-radius: 50%; background: var(--teal-bright); flex: none; }
.status-pill__dot::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--teal-bright);
  animation: ping 2s var(--ease) infinite;
}
@keyframes ping { 0% { transform: scale(1); opacity: 0.7; } 80%, 100% { transform: scale(2.8); opacity: 0; } }

.hero__title {
  font-size: clamp(2.75rem, 7.2vw, 5.5rem);
  font-weight: 750; font-variation-settings: "wdth" 88;
  letter-spacing: -0.04em; line-height: 0.95;
}
.hl {
  display: inline; color: var(--brand-text);
  background: linear-gradient(transparent 68%, color-mix(in srgb, var(--amber) 55%, transparent) 68%, color-mix(in srgb, var(--amber) 55%, transparent) 92%, transparent 92%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
}
@media (prefers-color-scheme: dark) {
  .hl { background: linear-gradient(transparent 70%, rgba(251, 191, 36, 0.28) 70%, rgba(251, 191, 36, 0.28) 92%, transparent 92%); }
}
.hero__lede { margin-top: 24px; font-size: clamp(1.0625rem, 1.6vw, 1.25rem); color: var(--ink-2); max-width: 34em; }

/* ---------- Signup ---------- */
.signup { margin-top: 32px; max-width: 520px; }
.signup__form {
  display: flex; gap: 6px; padding: 6px;
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: 999px;
  box-shadow: var(--shadow);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.signup__form:focus-within { border-color: var(--teal); box-shadow: var(--shadow), 0 0 0 4px color-mix(in srgb, var(--teal-bright) 25%, transparent); }
.signup__form input {
  flex: 1 1 auto; min-width: 0; border: 0; background: transparent; color: var(--ink);
  font: 400 1rem/1 var(--text); padding: 0 16px; min-height: 52px; border-radius: 999px;
}
.signup__form input::placeholder { color: var(--ink-2); opacity: 0.75; }
.signup__form input:focus { outline: none; }
.form-status { min-height: 1.6em; margin-top: 10px; font-size: 0.9375rem; font-weight: 500; }
.form-status:empty { min-height: 0; margin-top: 0; }
.form-status--success { color: var(--brand-text); }
.form-status--error { color: var(--alert-text); }
.form-notice { margin-top: 10px; font-size: 0.8125rem; color: var(--ink-2); padding-left: 18px; }
.signup--center { margin-inline: auto; }
.signup--center .form-notice { padding-left: 0; }

.proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 36px; font-size: 0.875rem; color: var(--ink-2); }
.proof li { display: inline-flex; align-items: baseline; gap: 8px; }
.proof strong { font: 600 0.75rem/1 var(--mono); letter-spacing: 0.04em; color: var(--ink); padding: 4px 7px; border: 1px solid var(--line-strong); border-radius: 6px; }

/* ---------- Hero visual: the protocol screen ---------- */
.hero__visual { position: relative; display: grid; justify-items: center; }
.phone {
  position: relative; width: min(330px, 84vw);
  padding: 11px; border-radius: 52px;
  background: linear-gradient(145deg, #1B2B29, #050B0A);
  box-shadow: 0 0 0 1.5px rgba(255, 255, 255, 0.08) inset, 0 40px 80px -30px rgba(10, 31, 29, 0.55), 0 12px 24px -12px rgba(10, 31, 29, 0.4);
  rotate: 2deg;
}
@media (prefers-color-scheme: dark) {
  .phone { box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.14), 0 0 0 1.5px rgba(255, 255, 255, 0.08) inset, 0 40px 80px -30px rgba(0, 0, 0, 0.8); }
}
.phone__screen { border-radius: 42px; overflow: hidden; background: #F4F6F8; color: #0F172A; }
.phone__status { display: flex; justify-content: space-between; align-items: center; padding: 14px 26px 6px; font: 600 0.8125rem/1 var(--text); }
.phone__island { width: 92px; height: 26px; background: #000; border-radius: 99px; }
.phone__icons { width: 40px; height: 11px; border-radius: 3px; background: linear-gradient(90deg, #0F172A 0 60%, transparent 60% 68%, #0F172A 68%); opacity: 0.85; }
.app { padding: 10px 14px 20px; font-size: 0.8125rem; line-height: 1.4; }
.app__eyebrow { font-size: 0.75rem; color: #64748B; font-weight: 500; }
.app__title { font: 700 1.5rem/1.1 var(--display); letter-spacing: -0.03em; margin-top: 2px; }
.app__chips { display: flex; gap: 6px; margin: 10px 0 14px; flex-wrap: wrap; }
.app__chips span { font: 500 0.6875rem/1 var(--mono); padding: 5px 8px; border-radius: 99px; background: #CCFBF1; color: #0B4F4A; }

.card { background: #fff; border: 1px solid #E2E8F0; border-radius: 16px; padding: 12px 13px; margin-top: 8px; box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04); }
.card__top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.card__name { font-weight: 650; font-size: 0.9375rem; }
.card__when { font-size: 0.6875rem; color: #0B4F4A; background: #F0FDFA; padding: 2px 7px; border-radius: 6px; }
.card__flag { font: 600 0.6875rem/1 var(--text); color: #fff; background: #DC2626; padding: 4px 7px; border-radius: 6px; text-transform: uppercase; letter-spacing: 0.04em; }
.card__note { color: #64748B; font-size: 0.75rem; margin-top: 4px; }
.card--alert { border-color: #FECACA; background: #FFFBFB; }
.calc { font: 400 0.8125rem/1.3 var(--mono); margin-top: 6px; display: flex; flex-wrap: wrap; gap: 5px; align-items: baseline; color: #475569; }
.calc i { font-style: normal; color: #94A3B8; }
.calc b { font-weight: 600; color: #0F172A; font-size: 1rem; }
.card--alert .calc b { color: #B91C1C; }

.meter { position: relative; height: 6px; border-radius: 99px; background: #F1F5F9; margin-top: 8px; overflow: visible; }
.meter__fill { position: absolute; inset: 0 auto 0 0; width: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--teal-bright) 0 83%, #DC2626 83%); }
.meter__limit { position: absolute; left: 83%; top: -4px; bottom: -4px; width: 2px; background: #0F172A; border-radius: 2px; }

.annot {
  position: absolute; display: flex; flex-direction: column; gap: 2px;
  background: var(--surface); color: var(--ink); border: 1px solid var(--line);
  border-radius: 14px; padding: 10px 14px; font-size: 0.8125rem; font-weight: 500;
  box-shadow: var(--shadow); white-space: nowrap;
}
.annot span { font: 600 0.6875rem/1.2 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand-text); }
.annot--a { left: -16%; bottom: 24%; rotate: -3deg; }
.annot--b { right: -9%; bottom: 13%; rotate: 2deg; }
.annot--b span { color: var(--alert-text); }
.hero__caption { margin-top: 22px; font-size: 0.8125rem; color: var(--ink-2); text-align: center; }

/* Hero entrance: cards land one by one, the zinc meter overfills, the flag stamps.
   Gated on .js so no-JS visitors see the finished state. */
.js .phone[data-reveal] .card { opacity: 0; transform: translateY(10px); }
.js .phone[data-reveal] .meter__fill { transform: scaleX(0); transform-origin: 0 50%; }
.js .phone[data-reveal] .card__flag { opacity: 0; transform: scale(1.8) rotate(-8deg); }
.js .phone.is-visible .card { opacity: 1; transform: none; transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .phone.is-visible .card--1 { transition-delay: 0.2s; }
.js .phone.is-visible .card--2 { transition-delay: 0.55s; }
.js .phone.is-visible .card--3 { transition-delay: 0.9s; }
.js .phone.is-visible .meter__fill { transform: none; transition: transform 1s var(--ease) 1.35s; }
.js .phone.is-visible .card__flag { opacity: 1; transform: none; transition: opacity 0.2s 2.2s, transform 0.35s cubic-bezier(0.3, 1.6, 0.5, 1) 2.2s; }
.js .annot { opacity: 0; transform: translateY(8px); transition: opacity 0.5s var(--ease), transform 0.5s var(--ease); }
.js .phone.is-visible ~ .annot--a { opacity: 1; transform: none; transition-delay: 1.5s; }
.js .phone.is-visible ~ .annot--b { opacity: 1; transform: none; transition-delay: 2.4s; }

/* ---------- Sections ---------- */
.section { padding-block: clamp(72px, 10vw, 136px); }
.section-head { max-width: 760px; margin-bottom: clamp(36px, 5vw, 64px); }
.eyebrow { font: 600 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.12em; color: var(--brand-text); margin-bottom: 16px; }
.eyebrow--on-dark { color: #5EEAD4; }
.section-title { font-size: clamp(2rem, 4.6vw, 3.5rem); font-variation-settings: "wdth" 92; letter-spacing: -0.035em; }

/* Generic scroll reveal (JS-gated) */
.js [data-reveal]:not(.phone) { opacity: 0; transform: translateY(18px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
.js [data-reveal].is-visible:not(.phone) { opacity: 1; transform: none; }

/* ---------- Questions ---------- */
.qa { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.qa__pair { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(24px, 3vw, 36px); }
.qa dt { font: 650 clamp(1.25rem, 2vw, 1.5rem)/1.2 var(--display); letter-spacing: -0.02em; }
.qa__n { display: block; font: 500 0.8125rem/1 var(--mono); color: var(--ink-2); margin-bottom: 18px; }
.qa dd { margin-top: 14px; color: var(--ink-2); }
.qa__pair:nth-child(2) { transition-delay: 0.08s; }
.qa__pair:nth-child(3) { transition-delay: 0.16s; }
.qa__pair:nth-child(4) { transition-delay: 0.24s; }

/* ---------- Bento ---------- */
.features { padding-top: 0; }
.bento { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.tile {
  position: relative; display: flex; flex-direction: column; gap: 10px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg);
  padding: clamp(22px, 2.6vw, 32px); overflow: hidden;
}
.tile h3 { font-size: clamp(1.375rem, 2.2vw, 1.75rem); padding-right: 48px; }
.tile > p:not(.tag):not(.notif) { color: var(--ink-2); font-size: 0.9875rem; }
.tile--scan { grid-column: span 4; }
.tile--protocol { grid-column: span 2; }
.tile--limit, .tile--myth { grid-column: span 3; }
.tile--fast, .tile--cold, .tile--catalog { grid-column: span 2; }
.tile > :last-child { margin-top: auto; padding-top: 18px; }

.tag {
  position: absolute; top: 22px; right: 22px;
  font: 600 0.6875rem/1 var(--mono); letter-spacing: 0.08em;
  padding: 6px 9px; border-radius: 99px;
}
.tag--ai { color: var(--ai-text); background: var(--ai-bg); }
.tag--ai::before { content: "✦ "; }

/* scan */
.scan { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 14px; }
.scan__label, .scan__out {
  position: relative; display: flex; flex-direction: column; gap: 3px;
  font: 400 0.8125rem/1.35 var(--mono); padding: 16px; border-radius: var(--r-md); overflow: hidden;
}
.scan__label { background: #FEF3C7; color: #78350F; border: 1px dashed rgba(120, 53, 15, 0.35); rotate: -1.5deg; }
.scan__out { background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); }
.scan__out b { color: var(--brand-text); }
.scan__lang { align-self: flex-start; font-size: 0.6875rem; font-weight: 600; padding: 2px 6px; border-radius: 4px; background: rgba(120, 53, 15, 0.12); margin-bottom: 6px; }
.scan__lang--cs { background: var(--teal-soft); color: var(--teal-deep); }
.scan__arrow { font: 400 1.5rem/1 var(--display); color: var(--ink-2); }
.scan__beam {
  position: absolute; left: 0; right: 0; top: 0; height: 36%;
  background: linear-gradient(180deg, transparent, rgba(20, 184, 166, 0.28), transparent);
  animation: beam 3.2s ease-in-out infinite;
}
@keyframes beam { 0%, 100% { transform: translateY(-40%); } 50% { transform: translateY(210%); } }

/* protocol day */
.day { display: grid; gap: 8px; }
.day li { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding-bottom: 8px; border-bottom: 1px dashed var(--line-strong); }
.day li:last-child { border-bottom: 0; padding-bottom: 0; }
.day span { font: 500 0.75rem/1 var(--mono); color: var(--ink-2); width: 64px; }
.day em { font-style: normal; font-size: 0.8125rem; font-weight: 500; padding: 4px 9px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--line); }

/* limit gauge */
.gauge { display: grid; gap: 10px; }
.gauge__row { display: flex; justify-content: space-between; font-size: 0.9375rem; font-weight: 600; }
.gauge__row b { font: 600 0.9375rem/1.4 var(--mono); color: var(--alert-text); }
.meter--static { background: var(--surface-2); height: 10px; }
.meter--static .meter__limit { background: var(--ink); }
.gauge__btn {
  justify-self: start; font-size: 0.875rem; font-weight: 600; color: var(--ink-2);
  padding: 9px 16px; border-radius: 99px; border: 1px dashed var(--line-strong);
  text-decoration: line-through; text-decoration-color: var(--red); text-decoration-thickness: 2px;
}

/* verdict */
.verdict { background: var(--surface-2); border-radius: var(--r-md); padding: 18px; border: 1px solid var(--line); }
.verdict__claim { font: 500 1.125rem/1.3 var(--display); letter-spacing: -0.01em; }
.verdict__row { display: flex; gap: 6px; margin-top: 14px; flex-wrap: wrap; }
.verdict__v { font: 600 0.75rem/1 var(--mono); text-transform: uppercase; letter-spacing: 0.06em; padding: 7px 10px; border-radius: 8px; color: var(--ink-2); border: 1px solid var(--line-strong); opacity: 0.55; }
.verdict__v--myth { color: #fff; background: var(--red); border-color: var(--red); opacity: 1; rotate: -3deg; }

/* fasting ring */
.ring { position: relative; width: 128px; aspect-ratio: 1; align-self: center; }
.ring svg { width: 100%; height: 100%; rotate: -90deg; }
.ring circle { fill: none; stroke-width: 10; stroke-linecap: round; }
.ring__track { stroke: var(--surface-2); }
.ring__fill { stroke: var(--teal-bright); stroke-dasharray: 79 100; }
.ring__time { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font: 600 1.375rem/1 var(--mono); }
.ring__time small { font: 400 0.6875rem/1.6 var(--text); color: var(--ink-2); }

/* cold streak */
.streak { display: grid; gap: 12px; }
.streak__time { font: 500 clamp(2.5rem, 5vw, 3.25rem)/1 var(--mono); letter-spacing: -0.04em; color: #0EA5E9; }
@media (prefers-color-scheme: dark) { .streak__time { color: #7DD3FC; } }
.streak__dots { display: flex; gap: 6px; }
.streak__dots i { width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, #7DD3FC, #0EA5E9); }
.streak__dots i.off { background: var(--surface-2); border: 1px dashed var(--line-strong); }

/* notification */
.notif {
  display: flex; gap: 10px; align-items: flex-start; font-size: 0.8125rem; line-height: 1.35;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 12px;
}
.notif b { display: block; font-weight: 600; }
.notif__app { flex: none; width: 28px; height: 28px; border-radius: 8px; background: linear-gradient(135deg, var(--teal-bright), var(--teal)); position: relative; }
.notif__app::after { content: ""; position: absolute; left: 50%; top: 50%; width: 18px; height: 7px; border-radius: 99px; transform: translate(-50%, -50%) rotate(-35deg); background: linear-gradient(90deg, #fff 50%, var(--amber) 50%); }

/* ---------- Evidence band ---------- */
.rigor { background: var(--band); color: var(--band-ink); position: relative; overflow: clip; }
.rigor::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(94, 234, 212, 0.12) 1px, transparent 1px);
  background-size: 22px 22px;
  mask-image: linear-gradient(180deg, #000, transparent 70%);
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 70%);
}
.rigor .wrap { position: relative; }
.rigor__head { max-width: 760px; }
.rigor__lede { margin-top: 20px; color: var(--band-ink-2); font-size: 1.125rem; }
.five {
  display: flex; flex-wrap: wrap; gap: 0 0.35em; margin-top: clamp(32px, 5vw, 56px);
  font: 750 clamp(2.75rem, 9vw, 7.5rem)/0.98 var(--display);
  font-variation-settings: "wdth" 80; letter-spacing: -0.045em;
}
.five li { color: var(--band-ink); }
.five li::after { content: ","; color: #5EEAD4; }
.five li:last-child::after { content: "."; }
/* Scroll-driven: the five names light up as the band scrolls into view.
   Browsers without scroll timelines simply show them at full strength. */
@supports (animation-timeline: view()) {
  @media (prefers-reduced-motion: no-preference) {
    .five li { animation: light linear both; animation-timeline: view(); }
    .five li:nth-child(1) { animation-range: entry 40% cover 25%; }
    .five li:nth-child(2) { animation-range: entry 60% cover 30%; }
    .five li:nth-child(3) { animation-range: entry 80% cover 35%; }
    .five li:nth-child(4) { animation-range: entry 100% cover 40%; }
    .five li:nth-child(5) { animation-range: cover 20% cover 45%; }
    @keyframes light { from { opacity: 0.16; } to { opacity: 1; } }
  }
}
.five__coda { margin-top: 24px; color: var(--band-ink-2); max-width: 40em; font-size: 1.0625rem; }
.rigor__facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: clamp(48px, 7vw, 88px); }
.fact { border: 1px solid rgba(230, 242, 239, 0.14); border-radius: var(--r-lg); padding: 28px; background: rgba(255, 255, 255, 0.03); }
.fact__k { font: 600 0.75rem/1 var(--mono); letter-spacing: 0.1em; color: #5EEAD4; margin-bottom: 18px; }
.fact h3 { font-size: 1.375rem; }
.fact p:last-child { margin-top: 10px; color: var(--band-ink-2); font-size: 0.9875rem; }
.fact:nth-child(2) { transition-delay: 0.08s; }
.fact:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Steps ---------- */
.steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding: 28px 28px 32px; border-top: 2px solid var(--ink); }
.steps li::before {
  content: counter(step, decimal-leading-zero);
  display: block; font: 700 clamp(3rem, 6vw, 4.5rem)/1 var(--display); letter-spacing: -0.05em;
  color: transparent; -webkit-text-stroke: 1.5px var(--brand-text); margin-bottom: 20px;
}
.steps h3 { font-size: 1.5rem; }
.steps p { margin-top: 8px; color: var(--ink-2); }
.steps li:nth-child(2) { transition-delay: 0.08s; }
.steps li:nth-child(3) { transition-delay: 0.16s; }

/* ---------- Model ---------- */
.model { padding-top: 0; }
.model__grid { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: start; }
.model__intro p:not(.eyebrow) { margin-top: 20px; color: var(--ink-2); }
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 28px; }
.plan h3 { font-size: 1.5rem; }
.plan__sub { font-size: 0.875rem; color: var(--ink-2); margin-top: 4px; }
.plan ul { margin-top: 20px; display: grid; gap: 10px; }
.plan li { position: relative; padding-left: 28px; font-size: 0.9875rem; }
.plan li::before {
  content: ""; position: absolute; left: 0; top: 0.3em; width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.2l2.6 2.6L13 6.4' fill='none' stroke='%230F766E' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/100% no-repeat;
}
.plan--premium { border-color: color-mix(in srgb, var(--violet) 35%, transparent); background: linear-gradient(180deg, color-mix(in srgb, var(--violet) 7%, var(--surface)), var(--surface)); }
.plan--premium h3 { color: var(--ai-text); }
.plan--premium li::before {
  background: var(--violet-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M9 4l1.3 3.7L14 9l-3.7 1.3L9 14l-1.3-3.7L4 9l3.7-1.3z' fill='%237C3AED'/%3E%3C/svg%3E") center/100% no-repeat;
}
.plan--premium { transition-delay: 0.08s; }

/* ---------- FAQ ---------- */
.faq { padding-top: 0; }
.faq__grid { display: grid; grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr); gap: clamp(32px, 5vw, 72px); }
.faq__list { border-top: 1px solid var(--line-strong); }
.faq details { border-bottom: 1px solid var(--line-strong); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
  padding: 22px 0; cursor: pointer; list-style: none;
  font: 600 1.1875rem/1.3 var(--display); letter-spacing: -0.015em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 50%;
  border: 1px solid var(--line-strong);
  background:
    linear-gradient(var(--ink), var(--ink)) center/11px 1.5px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center/1.5px 11px no-repeat;
  transition: transform 0.25s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 44px 24px 0; color: var(--ink-2); }
.faq details a { color: var(--brand-text); }

/* ---------- Closing ---------- */
.closing { padding-block: 0 clamp(72px, 10vw, 120px); }
.closing__card {
  position: relative; overflow: hidden; text-align: center;
  border-radius: clamp(28px, 4vw, 44px);
  padding: clamp(48px, 8vw, 104px) clamp(20px, 5vw, 64px);
  background:
    radial-gradient(60% 80% at 15% 0%, rgba(20, 184, 166, 0.55), transparent 70%),
    radial-gradient(50% 70% at 100% 100%, rgba(251, 191, 36, 0.28), transparent 70%),
    #0B3D39;
  color: #F0FDFA;
}
.closing__pill { display: inline-block; position: relative; width: 64px; height: 26px; border-radius: 99px; rotate: -35deg; margin-bottom: 28px; background: linear-gradient(90deg, #fff 50%, var(--amber) 50%); box-shadow: 0 10px 24px -6px rgba(0, 0, 0, 0.4); }
.closing__pill span { position: absolute; left: 8px; right: 14px; top: 5px; height: 5px; border-radius: 99px; background: rgba(255, 255, 255, 0.5); }
.closing__title { font-size: clamp(2.25rem, 5.5vw, 4.25rem); font-variation-settings: "wdth" 88; letter-spacing: -0.04em; max-width: 14em; margin-inline: auto; }
.closing__lede { margin: 18px auto 0; max-width: 34em; color: rgba(240, 253, 250, 0.78); font-size: 1.125rem; }
.closing .signup__form { background: rgba(255, 255, 255, 0.97); border-color: transparent; }
.closing .signup__form input { color: #0F172A; }
.closing .signup__form input::placeholder { color: #475569; }
.closing .form-notice { color: rgba(240, 253, 250, 0.72); }
.closing .form-status--success { color: #99F6E4; }
.closing .form-status--error { color: #FECACA; }

/* ---------- Footer ---------- */
.colophon { border-top: 1px solid var(--line); padding-block: 32px calc(32px + env(safe-area-inset-bottom, 0px)); font-size: 0.875rem; color: var(--ink-2); }
.colophon__inner { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 28px; }
.colophon__inner p { flex: 1 1 280px; }
.colophon__links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.colophon__links a { text-underline-offset: 3px; }

/* ---------- Responsive ---------- */
@media (max-width: 1180px) { .annot { display: none; } }
@media (max-width: 1020px) {
  .tile--scan { grid-column: span 6; }
  .tile--protocol { grid-column: span 3; }
  .tile--limit { grid-column: span 3; }
  .tile--myth { grid-column: span 3; }
  .tile--fast { grid-column: span 3; }
  .tile--cold, .tile--catalog { grid-column: span 3; }
}
@media (max-width: 880px) {
  .hero__grid, .model__grid, .faq__grid { grid-template-columns: 1fr; }
  .hero__visual { margin-top: 8px; }
  .rigor__facts, .steps { grid-template-columns: 1fr; }
  .steps li { padding-inline: 0; }
}
@media (max-width: 640px) {
  body { font-size: 1rem; }
  .qa, .plans { grid-template-columns: 1fr; }
  .bento { grid-template-columns: 1fr; }
  .bento > .tile { grid-column: auto; }
  .scan { grid-template-columns: 1fr; }
  .scan__arrow { justify-self: center; rotate: 90deg; }
  .annot { display: none; }
  .phone { rotate: 0deg; }
  .topbar .btn--small { padding: 0 14px; font-size: 0.875rem; }
}
@media (max-width: 440px) {
  .signup__form { flex-direction: column; border-radius: 26px; }
  .signup__form input { min-height: 48px; }
  .signup__form .btn { width: 100%; }
  .form-notice { padding-left: 4px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; transition-delay: 0s !important; }
  .scan__beam, .status-pill__dot::after { display: none; }
}

/* Launch: download buttons replace the waitlist form */
.download { margin-top: 32px; max-width: 520px; }
.stores { display: flex; flex-wrap: wrap; gap: 12px; }
.stores[data-center] { justify-content: center; }
.store {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 56px; padding: 8px 22px; border-radius: 14px;
  background: var(--ink); color: var(--paper); text-decoration: none;
  ttransition: transform 0.2s var(--ease), background 0.2s var(--ease);
}
.store:hover { background: var(--teal-deep); color: #fff; }
.store:active { transform: translateY(1px); }
.store:focus-visible { outline: 3px solid var(--teal-bright); outline-offset: 3px; }
.store__small { font-size: 0.75rem; letter-spacing: 0.02em; opacity: 0.8; }
.store__big { font-family: var(--display); font-size: 1.25rem; font-weight: 700; line-height: 1.1; }
.closing .store { background: #fff; color: #0F172A; }
.closing .store:hover { background: var(--teal-soft); color: #0B4F4A; }
@media (max-width: 520px) { .store { flex: 1 1 100%; } }

.topbar__nav { display: flex; align-items: center; gap: 20px; }
.topbar__link { color: inherit; text-decoration: none; font-weight: 500; }
.topbar__link:hover { text-decoration: underline; text-underline-offset: 4px; }
.download .form-notice--lead { margin: 20px 0 10px; }
