/* LumaSift marketing site
   Tokens sourced from DESIGN.md: Gallery-Grade Utility. */

:root {
  /* Color */
  --primary: #003F34;
  --primary-hover: #00352C;
  --on-primary: #FBF8F4;
  --primary-container: #EAF1E6;
  --on-primary-container: #123A32;
  --secondary: #C7A15A;
  --secondary-ink: #8A6322;
  --secondary-container: #F4E9D4;
  --on-secondary-container: #123A32;
  --tertiary: #91ABB2;
  --tertiary-container: #EBEEE2;
  --success: #1E7A54;
  --warning: #B56A16;
  --error: #B3261E;

  --background: #FAF7EF;
  --surface: #FFFDF8;
  --surface-low: #F8F3E8;
  --surface-container: #EAF1E6;
  --surface-high: #E9E4D9;
  --review: #0F1715;
  --review-muted: #17231F;
  --on-review: #F7F6F1;
  --on-review-muted: color-mix(in srgb, var(--on-review) 74%, transparent);
  --on-review-soft: color-mix(in srgb, var(--on-review) 66%, transparent);
  --on-review-faint: color-mix(in srgb, var(--on-review) 60%, transparent);
  --on-review-border: color-mix(in srgb, var(--on-review) 10%, transparent);
  --on-review-border-soft: color-mix(in srgb, var(--on-review) 8%, transparent);
  --on-review-border-strong: color-mix(in srgb, var(--secondary) 42%, transparent);
  --device-shell: #0B0C0E;
  --device-highlight: color-mix(in srgb, var(--on-primary) 10%, transparent);
  --device-inner-highlight: color-mix(in srgb, var(--on-primary) 7%, transparent);
  --shadow-rgb: 13 23 20;
  --primary-rgb: 0 63 52;
  --black-rgb: 0 0 0;

  --on-background: #123A32;
  --on-surface: #123A32;
  --text-muted: color-mix(in srgb, var(--on-background) 74%, transparent);
  --text-subtle: color-mix(in srgb, var(--on-background) 82%, transparent);
  --outline: #756F67;
  --outline-variant: #D9D4C8;

  /* Radius */
  --r-sm: 6px;
  --r-md: 8px;
  --r-lg: 10px;
  --r-xl: 14px;
  --r-2xl: 20px;
  --r-full: 9999px;

  /* Spacing rhythm (8px) */
  --s-1: 8px;
  --s-2: 16px;
  --s-3: 24px;
  --s-4: 32px;
  --s-6: 48px;
  --s-8: 64px;
  --s-10: 80px;
  --touch-min: 44px;

  --maxw: 1120px;
  --shadow-soft: 0 1px 2px rgb(var(--shadow-rgb) / .04), 0 12px 32px rgb(var(--shadow-rgb) / .07);
  --shadow-card: 0 1px 2px rgb(var(--shadow-rgb) / .05), 0 18px 48px rgb(var(--shadow-rgb) / .10);

  /* Project fonts: SwiftUI .serif (Apple New York) for display, .default (SF Pro) for body */
  --font-display: ui-serif, "New York", "Iowan Old Style", "Apple Garamond", Georgia, "Times New Roman", serif;
  --font-body: -apple-system, BlinkMacSystemFont, ui-sans-serif, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

/* Reset */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--font-body);
  background: var(--background);
  color: var(--on-background);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-optical-sizing: auto;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 600; letter-spacing: 0; line-height: 1.08; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--secondary) 78%, var(--primary));
  outline-offset: 4px;
}

.wrap { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }
.eyebrow {
  font-family: var(--font-body);
  font-size: 14px; font-weight: 650;
  letter-spacing: 0; text-transform: none;
  color: var(--secondary-ink);
}
.muted { color: var(--text-muted); }
.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;
}

/* ---- Nav ---- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--background) 72%, transparent);
  backdrop-filter: saturate(180%) blur(20px);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid color-mix(in srgb, var(--outline-variant) 70%, transparent);
  box-shadow: 0 8px 24px -20px rgb(var(--shadow-rgb) / .5);
}
.nav .wrap { display: flex; align-items: center; justify-content: space-between; height: 64px; }
.brand { min-height: var(--touch-min); display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 600; font-size: 20px; }
.brand img { width: 32px; height: 32px; border-radius: 8px; box-shadow: var(--shadow-soft); }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { position: relative; min-height: var(--touch-min); display: flex; align-items: center; padding: 0 8px; margin: 0 -8px; font-size: 15px; color: color-mix(in srgb, var(--on-background) 78%, transparent); transition: color .2s ease; }
.nav-links a::after {
  content: ""; position: absolute; left: 8px; right: 8px; bottom: 9px; height: 1.5px;
  background: var(--primary); border-radius: 2px;
  transform: scaleX(0); transform-origin: left;
  transition: transform .28s cubic-bezier(.22, 1, .36, 1);
}
.nav-links a:hover, .nav-links a:focus-visible, .nav-links a[aria-current="true"] { color: var(--primary); }
.nav-links a:hover::after, .nav-links a:focus-visible::after, .nav-links a[aria-current="true"]::after { transform: scaleX(1); }
.mobile-menu-panel a[aria-current="true"] { background: var(--surface-low); color: var(--primary); }
.nav-cta { display: inline-flex; }
.mobile-menu { display: none; position: relative; }
.mobile-menu summary {
  min-width: 44px; min-height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-md);
  background: var(--surface-low);
  color: var(--primary);
  cursor: pointer;
  list-style: none;
}
.mobile-menu summary::-webkit-details-marker { display: none; }
.mobile-menu .bars,
.mobile-menu .bars::before,
.mobile-menu .bars::after {
  display: block;
  width: 18px;
  height: 2px;
  border-radius: 2px;
  background: currentColor;
}
.mobile-menu .bars { position: relative; }
.mobile-menu .bars::before,
.mobile-menu .bars::after { content: ""; position: absolute; left: 0; }
.mobile-menu .bars::before { top: -6px; }
.mobile-menu .bars::after { top: 6px; }
.mobile-menu[open] .bars { background: transparent; }
.mobile-menu[open] .bars::before { top: 0; transform: rotate(45deg); }
.mobile-menu[open] .bars::after { top: 0; transform: rotate(-45deg); }
.mobile-menu-panel {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  min-width: 220px;
  padding: 8px;
  border: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--shadow-card);
}
.mobile-menu-panel a {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-radius: var(--r-md);
  color: var(--on-surface);
  font-weight: 650;
  font-size: 15px;
}
.mobile-menu-panel a:hover { background: var(--surface-low); }

/* ---- Buttons ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; height: auto; padding: 13px 24px;
  border-radius: 12px;
  font-family: var(--font-body); font-weight: 650; font-size: 15px;
  cursor: pointer; border: 1px solid transparent;
  line-height: 1.25;
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), box-shadow .3s ease, background .2s ease, border-color .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--primary); color: var(--on-primary); box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / .12), 0 10px 24px -12px rgb(var(--primary-rgb) / .5); }
.btn-primary:hover { background: var(--primary-hover); transform: translateY(-2px); box-shadow: 0 2px 4px rgb(var(--shadow-rgb) / .12), 0 18px 36px -14px rgb(var(--primary-rgb) / .55); }
.btn-secondary { background: var(--surface-low); color: var(--on-surface); border-color: var(--outline-variant); }
.btn-secondary:hover { border-color: var(--outline); transform: translateY(-2px); box-shadow: var(--shadow-soft); }
.btn-sm { min-height: var(--touch-min); padding: 10px 18px; font-size: 14px; }
.btn-ghost { background: transparent; color: var(--primary); padding: 0 8px; min-height: var(--touch-min); height: auto; }
.btn-ghost:hover { text-decoration: underline; }
.btn-ghost-dark { color: var(--on-review); }

/* Coming-soon (app in review, not yet downloadable) */
.btn-soon {
  background: var(--surface-low); color: var(--on-primary-container);
  border: 1px solid color-mix(in srgb, var(--secondary) 72%, var(--outline-variant));
  cursor: default; box-shadow: none;
}
.btn-soon:hover { background: var(--surface-low); }
.btn-soon:active { transform: none; }
.btn-soon .tag {
  font-size: 10px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--secondary); color: var(--on-secondary-container); padding: 3px 7px; border-radius: var(--r-full);
}
/* On the dark final-CTA panel */
.btn-soon.on-dark {
  background: var(--secondary-container); color: var(--on-secondary-container);
  border-color: var(--secondary);
}
.btn-soon.on-dark:hover { background: var(--secondary-container); }
.nav-cta.btn-soon { gap: 8px; }

/* ---- Hero ---- */
.hero { padding: clamp(56px, 9vw, 104px) 0 0; position: relative; isolation: isolate; }
.hero::before {
  content: ""; position: absolute; inset: -80px 0 auto; height: 620px; z-index: -1;
  background:
    radial-gradient(90% 70% at 72% 8%, color-mix(in srgb, var(--secondary-container) 55%, transparent), transparent 60%),
    radial-gradient(80% 70% at 12% 30%, color-mix(in srgb, var(--primary-container) 60%, transparent), transparent 62%);
  pointer-events: none;
}
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { font-size: clamp(44px, 6.4vw, 76px); font-weight: 600; }
.hero h1 .accent { font-style: italic; color: var(--primary); }
.hero-sub { margin-top: 24px; font-size: clamp(17px, 1.6vw, 20px); max-width: 30ch; color: var(--text-muted); }
.hero-actions { margin-top: 32px; display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note { margin-top: 20px; font-size: 14px; display: flex; align-items: center; gap: 10px; color: var(--text-muted); }
.hero-note::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--secondary); box-shadow: 0 0 0 4px var(--secondary-container); }

.hero-art { position: relative; display: flex; justify-content: center; }
/* Authentic iOS device frame: thin near-black bezel + rounded screen corners */
.device {
  position: relative; z-index: 1; display: inline-block;
  background: var(--device-shell); padding: 7px; border-radius: 46px;
  box-shadow: var(--shadow-card), inset 0 0 0 1.5px var(--device-highlight);
}
.device::after {
  content: ""; position: absolute; inset: 7px; border-radius: 39px;
  box-shadow: inset 0 0 0 1px var(--device-inner-highlight); pointer-events: none;
}
.device picture { display: contents; }
.device img { display: block; width: 100%; height: auto; border-radius: 39px; }
.hero-device { width: clamp(248px, 31vw, 330px); }

/* ---- Trust bar ---- */
.trust { margin-top: clamp(48px, 7vw, 88px); border-top: 1px solid var(--outline-variant); border-bottom: 1px solid var(--outline-variant); background: var(--surface); }
.trust .wrap { display: flex; flex-wrap: wrap; gap: 14px 36px; justify-content: center; padding-top: 22px; padding-bottom: 22px; }
.trust-item { display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--on-surface); }
.trust-item svg { width: 18px; height: 18px; color: var(--primary); flex: none; }

/* ---- Sections ---- */
.section {
  padding: clamp(64px, 9vw, 112px) 0;
  scroll-margin-top: 28px;
}
.section-head { max-width: 640px; margin: 0 auto clamp(40px, 5vw, 64px); text-align: center; }
.section-head h2 { font-size: clamp(32px, 4.4vw, 48px); margin-top: 14px; }
.section-head p { margin-top: 16px; font-size: 18px; color: var(--text-muted); }
.section-head .eyebrow { margin-top: 0; color: var(--secondary-ink); }
.section-alt { background: var(--surface); border-top: 1px solid var(--outline-variant); border-bottom: 1px solid var(--outline-variant); }

/* ---- Features: scan-dashboard screenshot + quiet feature rows ---- */
.features {
  max-width: 1040px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, .92fr) minmax(320px, 1.08fr);
  gap: 0 clamp(32px, 5vw, 56px);
  align-items: start;
}
.features-art { position: sticky; top: 88px; display: flex; justify-content: center; }
.features-art .device { width: clamp(240px, 30vw, 300px); }
.features-list { display: grid; }
.feature {
  position: relative;
  display: grid; grid-template-columns: 44px 1fr; gap: 6px 16px; align-content: start;
  margin: 0 -16px;
  padding: 22px 16px;
  border-bottom: 1px solid var(--outline-variant);
  border-radius: var(--r-lg);
  transition: background .25s ease, border-color .25s ease;
}
.features-list .feature:last-child { border-bottom: 0; }
.feature:hover {
  background: color-mix(in srgb, var(--surface-low) 64%, transparent);
  border-color: color-mix(in srgb, var(--secondary) 34%, var(--outline-variant));
}
.feature .ico {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  background: var(--surface-low); color: var(--primary);
  border: 1px solid color-mix(in srgb, var(--secondary) 42%, var(--outline-variant));
  grid-row: 1 / 3; align-self: start;
  transition: background .3s ease, color .3s ease, border-color .3s ease;
}
.feature:hover .ico {
  background: var(--primary-container);
  border-color: color-mix(in srgb, var(--secondary) 55%, transparent);
}
.feature .ico svg { width: 22px; height: 22px; }
.feature h3 { grid-column: 2; grid-row: 1; align-self: center; font-family: var(--font-body); font-weight: 700; font-size: 18px; letter-spacing: 0; }
.feature p { grid-column: 2; grid-row: 2; font-size: 15px; color: var(--text-muted); }

/* ---- How it works (centered numbered timeline) ---- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; counter-reset: step; position: relative; }
.step { position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; }
.step::before {
  counter-increment: step; content: counter(step);
  display: grid; place-items: center;
  width: 46px; height: 46px; border-radius: 50%;
  font-family: var(--font-display); font-size: 20px; font-weight: 600;
  color: var(--primary); background: var(--primary-container);
  border: 1px solid var(--secondary);
  box-shadow: 0 1px 2px rgb(var(--shadow-rgb) / .05), 0 10px 22px -14px rgb(var(--shadow-rgb) / .25);
  margin-bottom: 22px; position: relative; z-index: 1;
}
.step-line {
  position: absolute; top: 23px; left: 50%; width: calc(100% + 32px); height: 1px; margin: 0; z-index: 0;
  background: var(--secondary);
}
.step:last-child .step-line { display: none; }
.step h3 { font-family: var(--font-body); font-size: 20px; font-weight: 700; }
.step p { margin-top: 10px; font-size: 15px; color: var(--text-muted); max-width: 34ch; }

/* ---- Showcase (alternating screenshots) ---- */
.showcase { display: grid; gap: clamp(56px, 8vw, 96px); }
.show-row { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
.show-row.reverse .show-art { order: 2; }
.show-art { display: flex; justify-content: center; }
.show-art .device { width: clamp(228px, 27vw, 300px); }
.show-copy h3 { font-size: clamp(28px, 3.4vw, 40px); }
.show-copy p { margin-top: 16px; font-size: 17px; color: var(--text-muted); max-width: 42ch; }
.show-list { margin: 20px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.show-list li { position: relative; padding-left: 30px; font-size: 15px; }
.show-list li::before,
.plan li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: .12em;
  width: 20px;
  height: 20px;
  display: grid;
  place-items: center;
  color: var(--success);
  font-weight: 800;
  line-height: 1;
}

/* ---- Privacy band ---- */
.privacy-band { background: var(--review); color: var(--on-review); }
.privacy-band .section-head h2, .privacy-band h2 { color: var(--on-review); }
.privacy-band .section-head .eyebrow { color: var(--secondary-container); }
.privacy-band .section-head p:not(.eyebrow) { color: var(--on-review-muted); }
/* Privacy cards (separated, Apple-style on the dark band) */
/* Privacy ledger: a bold typographic proof, not stat cards */
.privacy-ledger { max-width: 820px; margin: clamp(10px, 2vw, 22px) auto 0; }
.ledger-row {
  display: grid; grid-template-columns: clamp(88px, 11vw, 108px) 1fr; align-items: center;
  gap: clamp(16px, 3vw, 32px); padding: clamp(18px, 2.4vw, 26px) 0;
  border-top: 1px solid var(--on-review-border);
}
.ledger-row:last-of-type { border-bottom: 1px solid var(--on-review-border); }
.ledger-row .num {
  justify-self: start; font-family: var(--font-display); font-weight: 600;
  font-size: clamp(40px, 4.4vw, 52px); line-height: 1; letter-spacing: -0.02em;
  color: var(--secondary-container); font-variant-numeric: tabular-nums;
}
.ledger-row .num small { font-family: var(--font-body); font-size: clamp(12px, 1.3vw, 15px); font-weight: 500; letter-spacing: 0; color: var(--on-review-faint); margin-left: 5px; }
.ledger-row .claim {
  font-family: var(--font-display); font-weight: 500; font-size: clamp(18px, 2vw, 22px);
  line-height: 1.25; color: var(--on-review); max-width: 28ch; text-wrap: balance;
}
.privacy-note {
  display: flex; align-items: center; justify-content: center; gap: 10px;
  max-width: 760px; margin: 20px auto 0; font-size: 14px; color: var(--on-review-soft); text-align: center;
}
.privacy-note svg { width: 18px; height: 18px; color: var(--secondary-container); flex: none; }

/* ---- Pricing ---- */
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--outline-variant);
  border-radius: var(--r-2xl); padding: 30px; display: flex; flex-direction: column;
  box-shadow: none;
  transition: border-color .3s ease, background .3s ease;
}
.plan:hover {
  background: color-mix(in srgb, var(--surface-low) 42%, var(--surface));
  border-color: color-mix(in srgb, var(--secondary) 38%, var(--outline-variant));
}
.plan.featured {
  border-color: color-mix(in srgb, var(--primary) 50%, transparent);
  background: color-mix(in srgb, var(--primary-container) 32%, var(--surface));
  box-shadow: none;
}
.plan.featured .badge { background: var(--primary); color: var(--on-primary); }
.plan .badge {
  align-self: flex-start; font-size: 11px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase;
  background: var(--primary-container); color: var(--on-primary-container);
  padding: 6px 10px; border-radius: var(--r-full); margin-bottom: 14px;
}
.plan h3 { font-family: var(--font-body); font-size: 19px; font-weight: 700; }
.plan .price { font-family: var(--font-display); font-size: 46px; margin-top: 12px; line-height: 1; letter-spacing: 0; font-variant-numeric: tabular-nums; white-space: nowrap; }
.plan .price span { font-family: var(--font-body); font-size: 15px; font-weight: 500; color: var(--text-muted); margin-left: 4px; }
.plan ul { list-style: none; margin: 22px 0; padding: 0; display: grid; gap: 12px; flex: 1; }
.plan li { position: relative; padding-left: 28px; font-size: 15px; }
.plan li::before { top: .2em; width: 18px; height: 18px; }
.plan .btn { width: 100%; }
.plan-soon {
  justify-content: center;
  text-align: center;
  white-space: normal;
}
.pricing-note { max-width: 680px; text-align: center; margin: 26px auto 0; font-size: 14px; color: var(--text-muted); }
.launch-note { max-width: 680px; text-align: center; margin: 10px auto 0; font-size: 14px; color: var(--text-muted); }
.launch-note a {
  min-height: var(--touch-min);
  display: inline-flex;
  align-items: center;
  padding: 0 4px;
  margin: 0 -4px;
  color: var(--primary);
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

/* ---- FAQ ---- */
.faq { max-width: 760px; margin: 0 auto; }
.faq details {
  border: 1px solid var(--outline-variant); border-radius: var(--r-md);
  padding: 4px 20px; margin-bottom: 12px; background: var(--surface);
}
.faq summary {
  cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; font-size: 16px;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 9px; height: 9px; margin-right: 4px;
  border-right: 2px solid var(--secondary-ink); border-bottom: 2px solid var(--secondary-ink);
  transform: rotate(45deg); transform-origin: center;
  transition: transform .3s cubic-bezier(.22, 1, .36, 1);
}
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { padding: 0 0 18px; font-size: 15px; color: var(--text-muted); }
/* Smooth accordion open where supported (instant toggle otherwise) */
@supports (interpolate-size: allow-keywords) {
  :root { interpolate-size: allow-keywords; }
  @media (prefers-reduced-motion: no-preference) {
    .faq details::details-content {
      block-size: 0; overflow: hidden; opacity: 0;
      transition: block-size .34s cubic-bezier(.22, 1, .36, 1), opacity .28s ease, content-visibility .34s allow-discrete;
    }
    .faq details[open]::details-content { block-size: auto; opacity: 1; }
  }
}

/* ---- Final CTA ---- */
.cta-final { text-align: center; }
.cta-final .panel {
  background: var(--review); color: var(--on-review);
  border: 1px solid var(--on-review-border-soft);
  border-radius: var(--r-2xl); padding: clamp(48px, 7vw, 80px) 32px;
  box-shadow: none;
}
.cta-final h2 { color: var(--on-review); font-size: clamp(32px, 4.4vw, 52px); position: relative; }
.cta-final p { position: relative; margin: 18px auto 0; max-width: 46ch; color: var(--on-review-muted); }
.cta-final .hero-actions { position: relative; justify-content: center; }
.cta-final .btn-secondary { background: var(--review-muted); color: var(--on-review); border-color: color-mix(in srgb, var(--on-review) 18%, transparent); }
.cta-final .btn-secondary:hover { background: color-mix(in srgb, var(--review-muted) 84%, var(--on-review)); }
.cta-status {
  position: relative; display: inline-flex; align-items: center; gap: 8px; margin-bottom: 16px;
  font-size: 13px; font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--secondary-container);
}
.cta-status svg { flex: none; }
.notify-form {
  position: relative; display: flex; flex-wrap: wrap; gap: 10px;
  max-width: 460px; margin: 26px auto 0;
}
.notify-form input {
  flex: 1 1 220px; min-height: 52px; padding: 13px 16px;
  border-radius: 12px; font: inherit; font-size: 15px;
  background: color-mix(in srgb, var(--on-review) 8%, transparent);
  border: 1px solid color-mix(in srgb, var(--on-review) 22%, transparent);
  color: var(--on-review);
  transition: border-color .2s ease, background .2s ease;
}
.notify-form input::placeholder { color: var(--on-review-faint); }
.notify-form input:focus-visible {
  outline: 3px solid color-mix(in srgb, var(--secondary) 70%, var(--on-review));
  outline-offset: 2px; border-color: transparent;
}
.notify-form button {
  flex: 0 0 auto; background: var(--on-review); color: var(--review); border-color: transparent;
  box-shadow: 0 1px 2px rgb(var(--black-rgb) / .3), 0 10px 24px -14px rgb(var(--black-rgb) / .6);
}
.notify-form button:hover { background: #fff; transform: translateY(-2px); }
.notify-form button:disabled { opacity: .72; cursor: default; transform: none; box-shadow: none; }
.notify-status { position: relative; margin: 16px auto 0; max-width: 46ch; font-size: 14px; line-height: 1.4; }
.notify-status:empty { display: none; }
.notify-status.is-success { color: var(--secondary-container); font-weight: 650; }
.notify-status.is-error { color: color-mix(in srgb, var(--error) 45%, var(--on-review)); font-weight: 600; }
.notify-fallback { position: relative; margin: 14px auto 0; max-width: 46ch; font-size: 13px; color: var(--on-review-soft); }
.notify-fallback a { color: var(--on-review); text-decoration: underline; }

/* Back to top (reveals after scrolling; static fallback where unsupported) */
.to-top {
  position: fixed; right: clamp(16px, 3vw, 28px); bottom: clamp(16px, 3vw, 28px); z-index: 40;
  width: 44px; height: 44px; display: grid; place-items: center;
  border-radius: 50%; background: var(--primary); color: var(--on-primary);
  box-shadow: var(--shadow-card);
  transition: transform .2s cubic-bezier(.22, 1, .36, 1), background .2s ease;
}
.to-top svg { width: 20px; height: 20px; }
.to-top:hover { transform: translateY(-2px); background: var(--primary-hover); }
@supports (animation-timeline: scroll()) {
  .to-top {
    opacity: 0; pointer-events: none;
    animation: to-top-show steps(1, end) both;
    animation-timeline: scroll(root); animation-range: 75vh 76vh;
  }
}
@keyframes to-top-show { to { opacity: 1; pointer-events: auto; } }

/* ---- Footer ---- */
.footer { padding: 56px 0 40px; border-top: 1px solid var(--outline-variant); }
.footer-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer .brand { font-size: 18px; }
.footer-tag { margin-top: 14px; font-size: 14px; max-width: 30ch; color: var(--text-muted); }
.footer-cols { display: flex; gap: 64px; flex-wrap: wrap; }
.footer-col-title { font-size: 12px; font-weight: 650; letter-spacing: 0.04em; text-transform: uppercase; color: var(--secondary-ink); margin: 0 0 14px; }
.footer-col a { min-height: 44px; display: flex; align-items: center; font-size: 14px; color: var(--text-muted); }
.footer-col a:hover { color: var(--primary); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--outline-variant); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; color: var(--text-muted); }
.footer-bottom a { min-height: var(--touch-min); display: inline-flex; align-items: center; padding: 0 8px; margin: 0 -8px; color: inherit; }

/* ---- Legal pages ---- */
.legal { padding: clamp(48px, 7vw, 88px) 0; }
.legal .wrap { max-width: 760px; }
.legal h1 { font-size: clamp(34px, 5vw, 52px); }
.legal .updated { margin-top: 14px; color: var(--text-muted); font-size: 14px; }
.legal h2 { font-family: var(--font-body); font-weight: 700; font-size: 22px; margin-top: 40px; }
.legal p, .legal li { font-size: 16px; color: color-mix(in srgb, var(--on-background) 78%, transparent); }
.legal p { margin-top: 14px; }
.legal ul { margin-top: 14px; padding-left: 22px; display: grid; gap: 8px; }
.legal a { min-height: var(--touch-min); display: inline-flex; align-items: center; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.legal-back { margin-top: 40px; }
.legal-subheading { font-size: 18px; }
.legal-footer { border: 0; margin: 0; padding: 0; }
.legal-footer a { color: inherit; }

/* ---- Premium motion: hero load + scroll reveal (zero-JS, progressive enhancement) ---- */
@keyframes reveal-rise {
  from { opacity: 0; translate: 0 28px; }
  to   { opacity: 1; translate: 0 0; }
}
@media (prefers-reduced-motion: no-preference) {
  /* Hero settles in on load, lightly staggered */
  .hero-copy > *, .hero-art { animation: reveal-rise .85s cubic-bezier(.22, 1, .36, 1) both; }
  .hero-copy > :nth-child(1) { animation-delay: .04s; }
  .hero-copy > :nth-child(2) { animation-delay: .10s; }
  .hero-copy > :nth-child(3) { animation-delay: .16s; }
  .hero-copy > :nth-child(4) { animation-delay: .22s; }
  .hero-copy > :nth-child(5) { animation-delay: .28s; }
  .hero-art { animation-delay: .18s; }

  /* Reveal only legitimate sibling groups / sequences as they scroll in (not every section) */
  @supports (animation-timeline: view()) {
    .feature,
    .ledger-row,
    .plan,
    .step {
      animation: reveal-rise linear both;
      animation-timeline: view();
      animation-range: entry 2% entry 40%;
    }
  }
}

/* ---- Responsive ---- */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; text-align: center; }
  .hero-sub { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-note { justify-content: center; }
  .hero-art { margin-top: 40px; }
  .features { grid-template-columns: 1fr; max-width: 560px; gap: 8px; }
  .features-art { position: static; margin-bottom: 28px; }
  .steps { grid-template-columns: 1fr; gap: 28px; }
  .step-line { display: none; }
  .show-row, .show-row.reverse .show-art { grid-template-columns: 1fr; order: 0; }
  .show-art { order: -1 !important; }
  .show-copy { text-align: center; }
  .show-copy p { margin-left: auto; margin-right: auto; }
  .show-list { display: inline-grid; text-align: left; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .nav-links { display: none; }
  .mobile-menu { display: block; }
}
@media (max-width: 560px) {
  .feature { margin: 0; padding-left: 0; padding-right: 0; }
  .feature:hover { background: transparent; }
  .trust .wrap { gap: 12px 22px; }
  .nav-cta { display: none; }
  /* Stack hero/CTA actions full-width so the long "Coming soon" button never overflows */
  .hero-actions { flex-direction: column; align-items: stretch; gap: 12px; }
  .hero-actions .btn { width: 100%; }
  .btn-soon { white-space: normal; }
  .cta-final .panel { padding-left: 22px; padding-right: 22px; }
  .notify-form { flex-direction: column; }
  .notify-form input { flex: 0 0 auto; width: 100%; }
  .notify-form button { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
  .feature:hover, .plan:hover { transform: none; }
}
