/* ==========================================================================
   Alumbus — website styles
   One stylesheet, no dependencies, no fonts fetched from anywhere.

   Colours are the app's own, lifted from Theme.swift so the site and the
   product agree rather than approximate each other.

   Two layers:
     1. The static site. Complete and legible on its own — this is what you
        get with reduced motion, without JavaScript, or on a very short
        window.
     2. `.motion` rules. site.js sets that class before first paint when
        motion is welcome, and drives the scroll-linked scenes.
   ========================================================================== */

/* --- Tokens -------------------------------------------------------------- */

:root {
  --bg:            #F5F5F7;
  --bg-raise:      #FFFFFF;
  --surface:       #FFFFFF;
  --surface-muted: #EDEFF5;
  --line:          #DDE1EC;
  --line-soft:     rgba(17, 21, 40, .06);

  --text:   #111528;
  --text-2: #4E5470;
  /* Darkened from the app's own 6E7488, which only reaches 4.2:1 here. */
  --text-3: #646A7C;

  --accent:      #4C63E6;
  --accent-ink:  #3345C9;
  --btn-bg:       #4C63E6;
  --btn-bg-hover: #3D51D2;
  --accent-wash: rgba(76, 99, 230, .09);
  --accent-line: rgba(76, 99, 230, .22);
  --positive:    #12855B;
  --negative:    #C4304A;
  --warning:     #9A5D00;
  --confirm:     #7A46D8;

  --glow-a: rgba(76, 99, 230, .30);
  --glow-b: rgba(122, 70, 216, .20);

  --shadow-sm: 0 1px 2px rgba(17, 21, 40, .05), 0 4px 14px rgba(17, 21, 40, .05);
  --shadow-lg: 0 30px 80px -24px rgba(17, 21, 40, .35), 0 8px 24px rgba(17, 21, 40, .08);

  --radius:    22px;
  --radius-sm: 14px;
  --gutter:    clamp(16px, 5vw, 44px);
  --measure:   68ch;
  --header-h:  52px;

  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --font-text: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto,
               Helvetica, Arial, sans-serif;
  --font-display: -apple-system, BlinkMacSystemFont, "SF Pro Display",
                  "Segoe UI Variable Display", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-round: ui-rounded, "SF Pro Rounded", -apple-system, BlinkMacSystemFont,
                "Segoe UI", Roboto, system-ui, sans-serif;

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --bg:            #000000;
    --bg-raise:      #0E1017;
    --surface:       #12141C;
    --surface-muted: #1B1E28;
    --line:          #2A2F3D;
    --line-soft:     rgba(242, 244, 250, .07);
    --text:   #F5F5F7;
    --text-2: #B4BCD6;
    --text-3: #8A92AE;
    --accent:      #7C90FF;
    --accent-ink:  #A3B1FF;
    --accent-wash: rgba(110, 133, 255, .13);
    --accent-line: rgba(110, 133, 255, .30);
    --btn-bg:       #5068EE;
    --btn-bg-hover: #4356DD;
    --positive:    #3ED598;
    --negative:    #FF6B81;
    --warning:     #FFB020;
    --confirm:     #A98BFF;
    --glow-a: rgba(94, 118, 255, .38);
    --glow-b: rgba(169, 139, 255, .22);
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5), 0 4px 14px rgba(0, 0, 0, .35);
    --shadow-lg: 0 30px 90px -20px rgba(0, 0, 0, .9), 0 8px 24px rgba(0, 0, 0, .5);
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:            #000000;
  --bg-raise:      #0E1017;
  --surface:       #12141C;
  --surface-muted: #1B1E28;
  --line:          #2A2F3D;
  --line-soft:     rgba(242, 244, 250, .07);
  --text:   #F5F5F7;
  --text-2: #B4BCD6;
  --text-3: #8A92AE;
  --accent:      #7C90FF;
  --accent-ink:  #A3B1FF;
  --accent-wash: rgba(110, 133, 255, .13);
  --accent-line: rgba(110, 133, 255, .30);
  --btn-bg:       #5068EE;
  --btn-bg-hover: #4356DD;
  --positive:    #3ED598;
  --negative:    #FF6B81;
  --warning:     #FFB020;
  --confirm:     #A98BFF;
  --glow-a: rgba(94, 118, 255, .38);
  --glow-b: rgba(169, 139, 255, .22);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, .5), 0 4px 14px rgba(0, 0, 0, .35);
  --shadow-lg: 0 30px 90px -20px rgba(0, 0, 0, .9), 0 8px 24px rgba(0, 0, 0, .5);
}

/* --- Reset --------------------------------------------------------------- */

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--bg);
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-text);
  font-size: 17px;
  line-height: 1.55;
  letter-spacing: -.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  /* `clip`, not `hidden`: hidden would make body a scroll container and
     break every position: sticky on the page. */
  overflow-x: clip;
}

img, svg { max-width: 100%; height: auto; display: block; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-ink); }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -.028em;
  line-height: 1.08;
  margin: 0;
  color: var(--text);
  text-wrap: balance;
}
p { margin: 0 0 1em; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--accent-wash); }

.skip-link {
  position: absolute; left: -9999px; top: 0; z-index: 100;
  background: var(--accent); color: #fff;
  padding: 12px 18px; border-radius: 0 0 var(--radius-sm) 0; font-weight: 600;
}
.skip-link:focus { left: 0; color: #fff; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

/* --- Layout -------------------------------------------------------------- */

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

section { padding-block: clamp(72px, 11vw, 140px); }

.section-head { max-width: 40ch; margin-bottom: clamp(32px, 5vw, 56px); }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head p { color: var(--text-2); margin: 16px 0 0; font-size: clamp(18px, 2vw, 21px); line-height: 1.45; }

.eyebrow {
  font-family: var(--font-round);
  font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 14px;
}

h1 { font-size: clamp(42px, 7.6vw, 92px); letter-spacing: -.04em; line-height: 1.02; }
h2 { font-size: clamp(34px, 5.4vw, 64px); letter-spacing: -.035em; }
h3 { font-size: clamp(20px, 2.1vw, 24px); letter-spacing: -.02em; line-height: 1.2; }

.lede { font-size: clamp(18px, 2.1vw, 22px); line-height: 1.45; color: var(--text-2); max-width: 52ch; }

.grad {
  background: linear-gradient(100deg, var(--accent) 10%, var(--confirm) 90%);
  -webkit-background-clip: text; background-clip: text;
  color: transparent;
}

/* --- Header -------------------------------------------------------------- */

.site-header {
  position: sticky; top: 0; z-index: 50;
  view-transition-name: site-header;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: saturate(1.8) blur(20px);
  -webkit-backdrop-filter: saturate(1.8) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s ease, background-color .3s ease;
}
.site-header[data-scrolled="true"] { border-bottom-color: var(--line-soft); }

.site-header .bar { display: flex; align-items: center; gap: 10px; height: var(--header-h); }

.brand {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-round); font-weight: 700; font-size: 18px; letter-spacing: -.02em;
  color: var(--text); text-decoration: none; margin-right: auto;
}
.brand img { width: 28px; height: 28px; border-radius: 22.4%; view-transition-name: app-mark; }
.brand:hover { color: var(--text); }

.nav { display: flex; align-items: center; gap: 2px; }
.nav a {
  color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500;
  padding: 7px 12px; border-radius: 999px;
  transition: color .2s ease, background-color .2s ease;
}
.nav a:hover { color: var(--text); background: var(--surface-muted); }
.nav a[aria-current="page"] { color: var(--text); font-weight: 600; }

.icon-btn {
  appearance: none; border: 0; background: transparent; color: var(--text-2);
  width: 38px; height: 38px; border-radius: 999px;
  display: grid; place-items: center; cursor: pointer; flex: none;
  transition: color .2s ease, background-color .2s ease;
}
.icon-btn:hover { color: var(--text); background: var(--surface-muted); }
.icon-btn svg { width: 18px; height: 18px; }

.theme-toggle .moon { display: none; }
:root[data-theme="dark"] .theme-toggle .moon { display: block; }
:root[data-theme="dark"] .theme-toggle .sun { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-toggle .moon { display: block; }
  :root:not([data-theme="light"]) .theme-toggle .sun { display: none; }
}

.menu-toggle { display: none; }
.menu-toggle .bars { position: relative; width: 18px; height: 12px; }
.menu-toggle .bars::before, .menu-toggle .bars::after {
  content: ""; position: absolute; left: 0; right: 0; height: 1.6px; border-radius: 2px;
  background: currentColor; transition: transform .35s var(--ease-out), top .35s var(--ease-out);
}
.menu-toggle .bars::before { top: 2px; }
.menu-toggle .bars::after { top: 8.4px; }
.site-header.is-open .menu-toggle .bars::before { top: 5.2px; transform: rotate(45deg); }
.site-header.is-open .menu-toggle .bars::after { top: 5.2px; transform: rotate(-45deg); }

/* Narrow screens. With the script, the links fold behind a menu button. Without
   it, they simply take a row of their own — nothing is ever unreachable. */
@media (max-width: 640px) {
  .no-js .site-header .bar { flex-wrap: wrap; height: auto; padding-block: 8px; }
  .no-js .nav { order: 3; width: 100%; justify-content: space-between; }
  .no-js .nav a { padding: 6px 8px; }

  .js .menu-toggle { display: grid; }
  .js .nav {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px var(--gutter) 26px;
    min-height: calc(100vh - var(--header-h)); min-height: calc(100svh - var(--header-h));
    background: var(--bg);
    visibility: hidden; opacity: 0; transform: translateY(-8px);
    transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s linear .4s;
  }
  .js .nav a { font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--text); padding: 10px 0; border-radius: 0; }
  .js .nav a:hover { background: none; color: var(--accent); }
  .js .site-header.is-open .nav {
    visibility: visible; opacity: 1; transform: none;
    transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s;
  }
  .js .site-header.is-open { background: var(--bg); }
}

/* --- Buttons and the App Store badge ------------------------------------- */

.actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

.btn {
  display: inline-flex; align-items: center; gap: 8px;
  min-height: 48px; padding: 0 22px; border-radius: 999px;
  font-size: 16px; font-weight: 600; text-decoration: none;
  transition: transform .3s var(--ease-out), background-color .2s ease, color .2s ease;
}
.btn--quiet { color: var(--accent); background: var(--accent-wash); }
.btn--quiet:hover { color: var(--accent-ink); background: var(--accent-line); }
.btn:active { transform: scale(.97); }

.store-badge {
  display: inline-flex; align-items: center; gap: 10px;
  min-height: 48px; padding: 7px 20px 7px 16px; border-radius: 999px;
  background: var(--text); color: var(--bg); text-decoration: none;
  transition: transform .3s var(--ease-out), box-shadow .3s ease;
}
.store-badge svg { width: 22px; height: 22px; fill: currentColor; }
.store-badge span { display: grid; line-height: 1.1; text-align: left; }
.store-badge small { font-size: 11px; opacity: .8; }
.store-badge strong { font-size: 17px; letter-spacing: -.02em; }
a.store-badge:hover { color: var(--bg); transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.store-badge[aria-disabled="true"] { cursor: default; }

/* --- The device ---------------------------------------------------------- */
/* Drawn rather than photographed, so it is crisp at any size and weighs
   nothing. The screenshots are full-screen captures with their own status bar
   and Dynamic Island; the frame only has to round and hold them. */

.phone {
  --w: min(290px, 72vw);
  position: relative;
  width: var(--w);
  padding: calc(var(--w) * .034);
  border-radius: calc(var(--w) * .168);
  background: linear-gradient(145deg, #2b2e36, #0c0d11 40%, #1d1f25);
  box-shadow:
    inset 0 0 0 1.5px rgba(255, 255, 255, .14),
    inset 0 0 0 4px #07080b,
    var(--shadow-lg);
  flex: none;
}
/* Side buttons. */
.phone::before, .phone::after {
  content: ""; position: absolute; width: 3px; border-radius: 2px;
  background: linear-gradient(#34373f, #17181d);
}
.phone::before { left: -2px; top: 22%; height: 11%; }
.phone::after { right: -2px; top: 27%; height: 16%; }

.screen {
  position: relative;
  aspect-ratio: 440 / 956;
  border-radius: calc(var(--w) * .135);
  overflow: hidden;
  background: #F3F4F8;
  isolation: isolate;
  /* Safari clips transformed children correctly only with this. */
  -webkit-mask-image: -webkit-radial-gradient(white, black);
}
.screen img, .screen .shot { position: absolute; inset: 0; width: 100%; height: 100%; }
.screen .shot { box-shadow: -18px 0 40px rgba(0, 0, 0, .22); }
.screen .shot::after {
  content: ""; position: absolute; inset: 0; background: #000;
  opacity: var(--dim, 0); pointer-events: none;
}
.screen .shot + .shot { display: none; }

/* --- Home: the story ------------------------------------------------------
   Static layout first: a hero, then each screen with its own writing. */

.story { padding: 0; position: relative; }
.story-pin { position: relative; }

.hero-copy {
  text-align: center;
  padding: clamp(56px, 9vh, 110px) var(--gutter) 0;
  max-width: 980px; margin-inline: auto;
}
.hero-copy .lede { margin: 22px auto 0; }
.hero-copy .actions { justify-content: center; margin-top: 30px; }
.hero-note { margin: 18px 0 0; font-size: 14px; color: var(--text-3); }

.story-device { display: flex; justify-content: center; padding: 56px 0 0; position: relative; z-index: 1; }
.story-device .phone { --w: min(300px, 70vw); }

.story-glow {
  position: absolute; left: 50%; top: 50%;
  width: min(900px, 140vw); aspect-ratio: 1; margin: calc(min(900px, 140vw) / -2) 0 0 calc(min(900px, 140vw) / -2);
  pointer-events: none; z-index: 0;
  display: none;
}
.motion .story-glow { display: block; }
.story-glow i {
  position: absolute; inset: 0; border-radius: 50%;
  background: radial-gradient(closest-side, var(--tint), transparent 70%);
  opacity: 0;
}
.story-glow i:first-child { opacity: 1; }
.story-glow [data-tint="indigo"] { --tint: var(--glow-a); }
.story-glow [data-tint="rose"]   { --tint: rgba(236, 72, 108, .26); }
.story-glow [data-tint="blue"]   { --tint: rgba(56, 140, 255, .28); }
.story-glow [data-tint="violet"] { --tint: var(--glow-b); }
.story-glow [data-tint="green"]  { --tint: rgba(18, 180, 120, .24); }

.story-head { max-width: 1180px; margin: 0 auto; padding: clamp(80px, 10vw, 130px) var(--gutter) 0; }

.story-steps { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); display: grid; gap: clamp(64px, 9vw, 110px); }
.story-step { display: grid; gap: 28px; align-items: center; }
.story-step .step-shot { display: flex; justify-content: center; }
.story-step .step-shot .phone { --w: min(260px, 64vw); }
.story-step h3 { font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.032em; line-height: 1.08; margin-bottom: 14px; }
.story-step p { color: var(--text-2); font-size: clamp(17px, 1.6vw, 19px); line-height: 1.5; max-width: 44ch; margin: 0; }
.story-step .stage-mark { font-family: var(--font-round); font-size: 13px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--accent); margin-bottom: 12px; }
@media (min-width: 860px) {
  .story-step { grid-template-columns: 1fr 1fr; gap: 64px; }
  .story-step:nth-child(even) .step-shot { order: 2; }
}
.story-progress { display: none; }

/* --- Statement: words light up as you read -------------------------------- */

.statement .words {
  font-size: clamp(34px, 5.6vw, 72px);
  letter-spacing: -.035em; line-height: 1.1;
  max-width: 19ch;
}
.statement .w { transition: opacity .25s linear; }

.privacy-grid {
  display: grid; gap: 14px; margin-top: clamp(40px, 6vw, 72px);
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
}
.privacy-item {
  display: flex; gap: 14px; align-items: flex-start;
  padding: 22px 22px 24px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
}
.privacy-item svg { width: 22px; height: 22px; color: var(--positive); flex: none; margin-top: 2px; }
.privacy-item p { margin: 0; display: grid; gap: 4px; }
.privacy-item strong { font-size: 17px; letter-spacing: -.015em; }
.privacy-item span { color: var(--text-2); font-size: 15px; line-height: 1.45; }

/* --- Steps --------------------------------------------------------------- */

.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); counter-reset: step; }
.step {
  counter-increment: step;
  padding: 30px 28px 32px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
}
.step::before {
  content: counter(step);
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--accent-wash); color: var(--accent);
  font-family: var(--font-round); font-weight: 700; font-size: 19px;
  margin-bottom: 22px;
}
.step h3 { margin-bottom: 10px; }
.step p { color: var(--text-2); margin: 0; font-size: 16px; }

/* --- Gallery ------------------------------------------------------------- */

.gallery { padding-bottom: 0; }
.gallery-pin { display: flex; flex-direction: column; justify-content: center; }
.gallery-track {
  display: flex; gap: clamp(22px, 4vw, 56px);
  padding: 10px max(var(--gutter), calc((100vw - 1180px) / 2 + var(--gutter))) 60px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
}
.gallery-track::-webkit-scrollbar { display: none; }
.gallery-item { margin: 0; scroll-snap-align: center; display: grid; gap: 18px; justify-items: center; }
.gallery-item .phone { --w: min(236px, 58vw); }
.gallery-item figcaption { font-size: 15px; font-weight: 600; color: var(--text-2); text-align: center; max-width: 24ch; }

/* --- Cards, notes, lists -------------------------------------------------- */

.cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); }
.card {
  padding: 28px 26px 30px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
  transition: transform .5s var(--ease-out), box-shadow .5s var(--ease-out);
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-2); font-size: 16px; }
.card p:last-child { margin-bottom: 0; }
.card-icon {
  width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
  background: var(--accent-wash); color: var(--accent); margin-bottom: 20px;
}
.card-icon svg { width: 24px; height: 24px; }
.card-icon[data-tint="positive"] { background: color-mix(in srgb, var(--positive) 12%, transparent); color: var(--positive); }
.card-icon[data-tint="confirm"]  { background: color-mix(in srgb, var(--confirm) 12%, transparent); color: var(--confirm); }
.card-icon[data-tint="warning"]  { background: color-mix(in srgb, var(--warning) 14%, transparent); color: var(--warning); }

.more-link { margin-top: 32px; font-size: 17px; font-weight: 600; }
.more-link a { text-decoration: none; }
.more-link a::after { content: " \203A"; }
.more-link a:hover { text-decoration: underline; }

.honest { list-style: none; display: grid; gap: 0; max-width: 760px; border-top: 1px solid var(--line); }
.honest li { padding: 20px 0 20px 36px; border-bottom: 1px solid var(--line); position: relative; font-size: 18px; color: var(--text-2); }
.honest li::before {
  content: ""; position: absolute; left: 4px; top: 30px; width: 14px; height: 2px; border-radius: 2px; background: var(--text-3);
}

.note { padding: 28px 30px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line-soft); }
.note p { color: var(--text-2); }
.note p:last-child { margin-bottom: 0; }

.pill-list { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.pill-list li { font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--accent-wash); color: var(--accent); }

.cta {
  text-align: center; padding: clamp(56px, 8vw, 100px) var(--gutter);
  border-radius: calc(var(--radius) * 1.6);
  background:
    radial-gradient(60% 80% at 50% 0%, var(--glow-a), transparent 70%),
    var(--surface);
  border: 1px solid var(--line-soft);
  overflow: hidden;
}
.cta-icon { width: 96px; height: 96px; border-radius: 22.4%; margin: 0 auto 28px; box-shadow: var(--shadow-lg); }
.cta p { color: var(--text-2); max-width: 46ch; margin: 18px auto 0; font-size: 19px; }
.cta .actions { justify-content: center; margin-top: 30px; }

/* --- Pricing ------------------------------------------------------------ */

.plans { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); }
.plan {
  position: relative; padding: 28px 26px 26px; border-radius: var(--radius);
  background: var(--surface); border: 1px solid var(--line-soft);
}
.plan--best { border: 2px solid var(--accent); }
.plan h3 { margin-bottom: 6px; }
.plan p { color: var(--text-2); font-size: 16px; margin-bottom: 0; }
.plan .plan-price {
  font-family: var(--font-round); font-size: clamp(34px, 4vw, 42px); font-weight: 700;
  letter-spacing: -.02em; color: var(--text); margin: 4px 0 12px;
}
.plan .plan-price span { font-size: 17px; font-weight: 600; color: var(--text-3); margin-left: 4px; letter-spacing: 0; }
.plan .plan-badge {
  position: absolute; top: -13px; left: 24px; margin: 0;
  font-size: 12px; font-weight: 700; letter-spacing: .02em; color: #fff;
  background: var(--btn-bg); padding: 4px 10px; border-radius: 999px;
}
.fine-print { font-size: 14px; color: var(--text-3); max-width: 70ch; margin-top: 24px; }

/* --- Feature rows (Features page) ---------------------------------------- */

.page-hero { padding-block: clamp(56px, 9vw, 120px) clamp(24px, 4vw, 48px); text-align: center; }
.page-hero .lede { margin: 22px auto 0; }

.feature { display: grid; gap: 40px; align-items: center; }
.feature + .feature { margin-top: clamp(80px, 12vw, 150px); }
.feature-body h2, .feature-body .feature-title { font-size: clamp(30px, 4vw, 48px); letter-spacing: -.032em; margin-bottom: 18px; }
.feature-body p { color: var(--text-2); font-size: 18px; max-width: 46ch; }
.feature-shot { display: flex; justify-content: center; perspective: 1400px; }
.feature-shot .phone { --w: min(290px, 68vw); }
@media (min-width: 860px) {
  .feature { grid-template-columns: 1.05fr .95fr; gap: 72px; }
  .feature--flip .feature-shot { order: -1; }
}

/* --- Page headers for documents ------------------------------------------ */

.doc-header { padding-block: clamp(48px, 7vw, 88px) 0; }
.doc-header .lede, .doc-header .meta { margin-top: 18px; }
.doc-header .meta { font-size: 14px; color: var(--text-3); }
.doc-header + section { padding-top: clamp(40px, 5vw, 64px); }

/* --- Legal documents ----------------------------------------------------- */

.doc-layout { display: block; }
@media (min-width: 1040px) {
  .doc-layout { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 60px; align-items: start; }
}
.toc {
  background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius);
  padding: 20px 18px 22px; margin-bottom: 36px;
}
@media (min-width: 1040px) {
  .toc { position: sticky; top: calc(var(--header-h) + 24px); margin-bottom: 0; max-height: calc(100vh - var(--header-h) - 48px); overflow-y: auto; }
}
.toc h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); font-weight: 700; margin-bottom: 12px; }
.toc ol { list-style: none; counter-reset: toc; display: grid; gap: 2px; }
.toc li { counter-increment: toc; }
.toc a {
  display: flex; gap: 9px; font-size: 14.5px; line-height: 1.35; color: var(--text-2);
  text-decoration: none; padding: 6px 8px; border-radius: 8px;
  transition: background-color .2s ease, color .2s ease;
}
.toc a::before { content: counter(toc) "."; color: var(--text-3); flex: none; }
.toc a:hover { background: var(--surface-muted); color: var(--text); }
.toc a.is-here { background: var(--accent-wash); color: var(--text); font-weight: 600; }
.toc a.is-here::before { color: var(--accent); }

.summary-panel {
  background: var(--accent-wash); border: 1px solid var(--accent-line);
  border-radius: var(--radius); padding: 24px 26px; margin-bottom: 40px;
}
.summary-panel h2 { font-size: 19px; margin-bottom: 14px; letter-spacing: -.015em; }
.summary-panel ul { list-style: none; display: grid; gap: 9px; }
.summary-panel li { display: flex; gap: 11px; align-items: flex-start; }
.summary-panel li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--accent); flex: none; margin-top: 10px; }

.doc { max-width: var(--measure); }
.doc section { padding-block: 0; margin-bottom: 40px; }
.doc h2 { font-size: clamp(21px, 2.4vw, 25px); letter-spacing: -.02em; margin-bottom: 16px; display: flex; gap: 10px; align-items: baseline; }
.doc h2 .n { color: var(--accent); font-variant-numeric: tabular-nums; }
.doc p { color: var(--text-2); margin-bottom: 1.05em; }
.doc p .c { color: var(--text-3); font-variant-numeric: tabular-nums; font-weight: 600; margin-right: .35em; text-decoration: none; }
a.c:hover { color: var(--accent); }
.doc blockquote {
  margin: 0 0 32px; padding: 20px 24px;
  border: 1px solid var(--line); border-left: 3px solid var(--warning);
  border-radius: var(--radius-sm); background: var(--surface); color: var(--text);
}
.doc blockquote p:last-child { margin-bottom: 0; color: var(--text); }
.doc-nav { margin-top: 48px; padding-top: 26px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; gap: 12px 26px; font-size: 15px; }

.progress {
  position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60;
  background: var(--accent); transform-origin: 0 50%; transform: scaleX(var(--read, 0));
  pointer-events: none;
}

/* --- FAQ ----------------------------------------------------------------- */

.faq { display: grid; gap: 10px; max-width: var(--measure); }
.faq details { background: var(--surface); border: 1px solid var(--line-soft); border-radius: var(--radius-sm); overflow: hidden; }
.faq details:target { border-color: var(--accent-line); }
.faq summary {
  cursor: pointer; padding: 18px 20px; font-weight: 600; font-size: 17px;
  list-style: none; display: flex; gap: 14px; align-items: center; justify-content: space-between;
  transition: background-color .2s ease;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary h3 { font: inherit; margin: 0; letter-spacing: -.015em; }
.faq summary::after {
  content: ""; width: 9px; height: 9px; flex: none;
  border-right: 2px solid var(--text-3); border-bottom: 2px solid var(--text-3);
  transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease-out);
}
.faq details[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.faq summary:hover { background: var(--surface-muted); }
.faq .answer { padding: 0 20px 18px; color: var(--text-2); }
.faq .answer p:last-child { margin-bottom: 0; }

/* --- Footer and back-to-top ---------------------------------------------- */

.site-footer { border-top: 1px solid var(--line-soft); padding-block: 40px 96px; font-size: 13px; color: var(--text-3); margin-top: clamp(40px, 6vw, 80px); }
.footer-grid { display: grid; gap: 28px; }
@media (min-width: 760px) { .footer-grid { grid-template-columns: 1fr auto; } }
.footer-legal { max-width: 52ch; }
.footer-legal p { margin-bottom: .5em; }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; list-style: none; }
.footer-links a { color: var(--text-2); text-decoration: none; }
.footer-links a:hover { color: var(--text); text-decoration: underline; }
.footer-note { margin-top: 16px; }

.to-top {
  position: fixed; right: 18px; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 40;
  width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-soft);
  background: color-mix(in srgb, var(--surface) 86%, transparent);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  color: var(--text-2); display: grid; place-items: center; cursor: pointer;
  box-shadow: var(--shadow-sm);
  opacity: 0; visibility: hidden; transform: translateY(10px) scale(.9);
  transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s linear .4s;
}
.to-top svg { width: 18px; height: 18px; }
.to-top.is-shown { opacity: 1; visibility: visible; transform: none; transition: opacity .3s ease, transform .4s var(--ease-out), visibility 0s; }

.u-mt { margin-top: 26px; }
.u-measure { max-width: var(--measure); }

/* --- Print --------------------------------------------------------------- */

@media print {
  .site-header, .site-footer, .toc, .doc-nav, .skip-link, .to-top, .progress { display: none !important; }
  body { background: #fff; color: #000; font-size: 11pt; }
  .doc { max-width: none; }
  .doc p, .summary-panel li { color: #000; }
  a { color: #000; text-decoration: none; }
}

/* ==========================================================================
   Motion
   Only when site.js has set `.motion`, which it does only when the reader has
   not asked for reduced motion and the window is tall enough to pin a scene.
   ========================================================================== */

@view-transition { navigation: auto; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .35s; }
@media (prefers-reduced-motion: reduce) { @view-transition { navigation: none; } }

@keyframes rise {
  from { opacity: 0; transform: translateY(28px); }
  to   { opacity: 1; transform: none; }
}
.motion .enter { animation: rise 1s var(--ease-out) both; }
.motion .enter--1 { animation-delay: .08s; }
.motion .enter--2 { animation-delay: .16s; }
.motion .enter--3 { animation-delay: .24s; }
.motion .enter--4 { animation-delay: .32s; }

/* Reveal on scroll. Children of `.stagger` arrive one after another. */
.motion .reveal, .motion .stagger > * {
  opacity: 0; transform: translateY(48px);
  transition: opacity 1s var(--ease-out), transform 1.1s var(--ease-out);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.motion .reveal.is-in, .motion .stagger.is-in > * { opacity: 1; transform: none; }

.motion .faq details[open] .answer { animation: rise .45s var(--ease-out) both; }

/* --- The story, pinned --------------------------------------------------- */
/* The scene is 835 screens-per-100 tall: one screen to pin, and 7.35 more of
   scrolling for site.js to spend. Keep in step with STORY_LENGTH there. */

.motion .story { height: 835vh; height: 835svh; }
.motion .story-pin {
  position: sticky; top: 0;
  height: 100vh; height: 100svh;
  overflow: hidden; overflow: clip;
}
/* The heading the static layout shows stays for screen readers. */
.motion .story-head {
  position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0;
  overflow: hidden; clip-path: inset(50%); white-space: nowrap;
}

.motion .hero-copy {
  position: absolute; left: 0; right: 0; top: var(--header-h);
  padding-top: clamp(28px, 7vh, 88px);
  z-index: 3; will-change: transform, opacity;
}

.motion .story-device {
  position: absolute; inset: 0; margin: auto; padding: 0;
  width: fit-content; height: fit-content; z-index: 2;
}
/* The device waits for its first frame to be placed, then arrives. */
.motion .story-device { opacity: 0; translate: 0 70px; }
.motion .story.is-ready .story-device {
  opacity: 1; translate: 0 0;
  transition: opacity 1s ease .15s, translate 1.4s var(--ease-out) .15s;
}
.motion .story-device .phone {
  --w: clamp(220px, calc((100svh - var(--header-h) - 80px) / 2.26), 340px);
  will-change: transform;
  transform-origin: 50% 50%;
}
.motion .screen .shot { will-change: transform; }
.motion .screen .shot + .shot { display: block; transform: translate3d(100%, 0, 0); }

.motion .story-glow { will-change: transform; }

.motion .story-steps {
  position: absolute; z-index: 4; padding: 0; margin: 0;
  display: grid; gap: 0;
}
.motion .story-step { grid-area: 2 / 1; display: block; opacity: 0; will-change: transform, opacity; }
.motion .story-step .step-shot { display: none; }

.motion .story-progress { grid-area: 1 / 1; display: flex; gap: 6px; margin-bottom: 18px; list-style: none; }
.motion .story-progress li {
  flex: 1; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; max-width: 44px;
}
.motion .story-progress li::after {
  content: ""; display: block; height: 100%; background: var(--accent);
  transform-origin: 0 50%; transform: scaleX(var(--fill, 0));
}

@media (min-width: 860px) {
  .motion .story-steps {
    top: 50%; transform: translateY(-50%);
    left: calc(50% + clamp(24px, 4vw, 64px)); right: var(--gutter);
    max-width: 480px;
  }
}

@media (max-width: 859px) {
  .motion .story-device .phone {
    --w: clamp(150px, calc((100svh - var(--header-h) - 270px) / 2.26), 62vw);
  }
  .motion .hero-copy { padding-top: clamp(20px, 4.5vh, 48px); }
  .motion .hero-copy h1 { font-size: clamp(38px, 11vw, 56px); }
  .motion .hero-copy .lede { font-size: 17px; margin-top: 16px; }
  .motion .hero-copy .actions { margin-top: 22px; }
  .motion .story-steps {
    left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom));
    padding: 18px 20px 20px;
    border-radius: 24px;
    background: color-mix(in srgb, var(--bg-raise) 76%, transparent);
    backdrop-filter: saturate(1.8) blur(24px);
    -webkit-backdrop-filter: saturate(1.8) blur(24px);
    border: 1px solid var(--line-soft);
    box-shadow: var(--shadow-sm);
    opacity: 0;
  }
  .motion .story-step h3 { font-size: 22px; margin-bottom: 6px; }
  .motion .story-step p { font-size: 15px; line-height: 1.45; }
  .motion .story-step .stage-mark { font-size: 11px; margin-bottom: 6px; }
  .motion .story-progress { margin-bottom: 12px; }
  /* The text card owns the bottom of the screen while the story is pinned. */
  .in-story .to-top.is-shown { opacity: 0; visibility: hidden; }
}

/* --- Statement ----------------------------------------------------------- */
.motion .statement .w { opacity: .16; }

/* --- Gallery, pinned: vertical scroll drives it sideways ------------------ */
.motion .gallery.is-pinned { padding: 0; }
.motion .gallery.is-pinned .gallery-pin {
  position: sticky; top: 0; height: 100vh; height: 100svh; overflow: hidden; overflow: clip;
  padding-top: var(--header-h);
}
.motion .gallery.is-pinned .gallery-track {
  overflow: visible; scroll-snap-type: none; will-change: transform; width: max-content;
}
.motion .gallery.is-pinned .gallery-item { will-change: transform, opacity; }
.motion .gallery.is-pinned .gallery-item .phone {
  --w: clamp(130px, calc((100svh - var(--header-h) - 330px) / 2.26), 250px);
}
.motion .gallery.is-pinned .section-head { margin-bottom: clamp(14px, 3vh, 36px); }
.motion .gallery.is-pinned .section-head h2 { font-size: clamp(30px, min(5vw, 6.4vh), 60px); }
.motion .gallery.is-pinned .section-head p { font-size: clamp(16px, 2.2vh, 20px); margin-top: 10px; }
.motion .gallery.is-pinned .gallery-track { padding-bottom: 24px; }

/* Feature rows: the device drifts and turns slightly as it crosses the screen. */
.motion .feature-shot .phone { will-change: transform; }
