/* ==========================================================================
   Diagrammar landing — Silkway diagram line (verdigris)
   Type sizes resolve to the Tailwind scale. Spacing resolves to the
   landing-page spacing table. Colour resolves to brand tokens.css.
   ========================================================================== */

/* ── Self-hosted type. Both are variable fonts; one file covers the range. ── */
@font-face {
  font-family: 'Geist';
  src: url('fonts/geist-variable.woff2') format('woff2');
  font-weight: 400 600; font-style: normal; font-display: swap;
}
@font-face {
  font-family: 'Geist Mono';
  src: url('fonts/geist-mono-variable.woff2') format('woff2');
  font-weight: 400 500; font-style: normal; font-display: swap;
}

/* Icons are an inline SVG sprite; .ph sizes off font-size exactly as the
   icon font did, so every existing `.ph { font-size: … }` rule still governs. */
.ph {
  width: 1em; height: 1em; fill: currentColor;
  display: inline-block; vertical-align: -0.125em; flex: none;
}

/* ── Spacing table ── */
:root {
  --s-25:2px;  --s-50:4px;  --s-75:8px;  --s-100:12px; --s-200:16px;
  --s-300:24px; --s-400:32px; --s-500:40px; --s-600:48px;
  --s-700:64px; --s-800:80px; --s-900:96px;

  --page: 1200px;
  --gutter: var(--s-300);
  --radius-surface: var(--sw-radius-2xl);
  --img-outline: oklch(0 0 0 / 0.1);

  interpolate-size: allow-keywords;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme='light']) { --img-outline: oklch(1 0 0 / 0.1); }
}
:root[data-theme='dark'] { --img-outline: oklch(1 0 0 / 0.1); }

@media (min-width: 768px) { :root { --gutter: var(--s-500); } }

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

body {
  margin: 0;
  background: var(--sw-bg);
  color: var(--sw-fg);
  font-family: var(--sw-font-sans);
  font-size: 16px; line-height: 24px;
  -webkit-font-smoothing: antialiased;
  text-wrap: pretty;
}

img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--sw-dye-fill);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip {
  position: absolute; inset-inline-start: var(--s-200); top: var(--s-200);
  background: var(--sw-dye-fill); color: var(--sw-on-dye);
  padding: var(--s-75) var(--s-100); border-radius: 8px;
  font-size: 14px; line-height: 20px; font-weight: 600;
  transform: translateY(calc(var(--s-200) * -5));
  transition: transform var(--sw-dur-fast) var(--sw-ease-out); z-index: 200;
}
.skip:focus { transform: none; }

.wrap {
  max-width: var(--page); margin: 0 auto;
  padding-inline-start: max(var(--gutter), env(safe-area-inset-left));
  padding-inline-end: max(var(--gutter), env(safe-area-inset-right));
}

/* ── Type scale (Tailwind steps) ────────────────────────────────────────── */
.t-xs   { font-size:12px; line-height:16px; }
.t-sm   { font-size:14px; line-height:20px; }
.t-base { font-size:16px; line-height:24px; }
.t-lg   { font-size:18px; line-height:28px; }
.t-xl   { font-size:20px; line-height:28px; }
.t-2xl  { font-size:24px; line-height:32px; }
.t-3xl  { font-size:30px; line-height:36px; }
.t-4xl  { font-size:36px; line-height:40px; }

.eyebrow {
  font-family: var(--sw-font-mono);
  font-size: 12px; line-height: 16px; font-weight: 500;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--sw-dye-text);
}
.mono { font-family: var(--sw-font-mono); }

h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: -0.022em; text-wrap: balance; }

h2 { font-size: 30px; line-height: 36px; }
@media (min-width: 768px) { h2 { font-size: 36px; line-height: 40px; } }
h3 { font-size: 20px; line-height: 28px; letter-spacing: -0.012em; }

p { margin: 0; }
.lead { font-size: 18px; line-height: 28px; color: var(--sw-fg-secondary); }
.muted { color: var(--sw-fg-muted); }
.body { color: var(--sw-fg-secondary); }
strong { font-weight: 600; color: var(--sw-fg); }

section, [id] { scroll-margin-top: 96px; }

section { padding-top: var(--s-700); padding-bottom: var(--s-700); }
@media (min-width: 768px) { section { padding-top: var(--s-900); padding-bottom: var(--s-900); } }

.rule { border: 0; border-top: 1px solid var(--sw-line); margin: 0; }

.link {
  text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, currentColor 40%, transparent);
  transition: text-decoration-color var(--sw-dur-instant) var(--sw-ease);
}
.link:hover { text-decoration-color: currentColor; }
.answer .link { color: var(--sw-dye-text); }

/* ── Buttons ────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; gap: var(--s-75);
  font-size: 16px; line-height: 24px; font-weight: 600;
  padding: var(--s-100) var(--s-300);
  border-radius: var(--sw-radius-md); border: 1px solid transparent;
  cursor: pointer;
  transition: transform var(--sw-dur-instant) var(--sw-ease-out),
              background-color var(--sw-dur-fast) var(--sw-ease),
              border-color var(--sw-dur-fast) var(--sw-ease),
              color var(--sw-dur-fast) var(--sw-ease);
}
.btn-primary { background: var(--sw-dye-fill); color: var(--sw-on-dye); }
.btn-primary:active { transform: scale(0.96); }
.btn-ghost { background: transparent; color: var(--sw-fg); border-color: var(--sw-line-strong); }
.btn-ghost:active { transform: scale(0.96); }
.btn-sm { font-size: 14px; line-height: 20px; padding: var(--s-75) var(--s-200); border-radius: var(--sw-radius-md); }

@media (hover: hover) and (pointer: fine) {
  .btn-primary:hover { background: var(--sw-dye-text); transform: translateY(-1px); }
  .btn-primary:active { transform: translateY(-1px) scale(0.96); }
  .btn-ghost:hover { background: var(--sw-bg-sunken); transform: translateY(-1px); }
  .btn-ghost:active { transform: translateY(-1px) scale(0.96); }
}

/* App Store badge — Apple's supplied artwork. Never recoloured or restyled. */
.store-badge {
  display: inline-block; border-radius: var(--sw-radius-md);
  transition: transform var(--sw-dur-instant) var(--sw-ease-out);
}
.store-badge img { width: 144px; height: auto; }
.store-badge:active { transform: scale(0.96); }
@media (hover: hover) and (pointer: fine) {
  .store-badge:hover { transform: translateY(-1px); }
  .store-badge:active { transform: translateY(-1px) scale(0.96); }
}

/* ── Island nav ─────────────────────────────────────────────────────────── */
.nav-shell {
  position: sticky; top: 0; z-index: 100; padding-top: var(--s-300);
  padding-inline: env(safe-area-inset-left) env(safe-area-inset-right);
}
.island {
  margin: 0 auto; width: max-content; max-width: calc(100% - var(--s-400));
  display: flex; align-items: center; gap: var(--s-300);
  padding: var(--s-75) var(--s-75) var(--s-75) var(--s-200);
  border-radius: 9999px;
  border: 1px solid var(--sw-line);
  background: color-mix(in oklab, var(--sw-bg) 72%, transparent);
  backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
  box-shadow: var(--sw-shadow-md);
}
/* Below 360px the pill cannot hold brand + CTA + toggle without clipping the
   toggle. The menu already carries Download, and the hero CTA is just below. */
.island > .btn-sm { display: none; }
@media (min-width: 360px) { .island > .btn-sm { display: inline-flex; } }

.island-brand {
  display: flex; align-items: center; gap: var(--s-75); font-weight: 600; font-size: 16px; line-height: 24px;
  transition: transform var(--sw-dur-instant) var(--sw-ease-out);
}
.island-brand:active { transform: scale(0.96); }
.island-brand img { width: 24px; height: 24px; border-radius: 6px; }
.island-links { display: none; align-items: center; gap: var(--s-300); }
.island-links a { font-size: 14px; line-height: 20px; padding-block: var(--s-75); color: var(--sw-fg-secondary); transition: color var(--sw-dur-instant) var(--sw-ease); }
.island-links a:hover, .island-links a[aria-current] { color: var(--sw-fg); }
@media (min-width: 900px) { .island-links { display: flex; } }

.burger {
  width: 40px; height: 40px; border-radius: 9999px;
  border: 1px solid var(--sw-line); background: transparent;
  position: relative; cursor: pointer; flex: none;
  transition: transform var(--sw-dur-instant) var(--sw-ease-out),
              border-color var(--sw-dur-fast) var(--sw-ease);
}
.burger:active { transform: scale(0.96); }
@media (min-width: 900px) { .burger { display: none; } }
.burger span {
  position: absolute; left: 50%; top: 50%; width: 16px; height: 1.5px;
  background: var(--sw-fg); border-radius: 2px;
  transition: transform var(--sw-dur-fast) var(--sw-ease-out), opacity var(--sw-dur-fast) var(--sw-ease-out);
}
.burger span:nth-child(1) { transform: translate(-50%, -5px); }
.burger span:nth-child(2) { transform: translate(-50%, 3.5px); }
body.menu-open .burger span:nth-child(1) { transform: translate(-50%, -0.75px) rotate(45deg); }
body.menu-open .burger span:nth-child(2) { transform: translate(-50%, -0.75px) rotate(-45deg); }

.menu {
  position: fixed; inset: 0; z-index: 90;
  display: flex; flex-direction: column; justify-content: center;
  gap: var(--s-300); padding: var(--s-600) var(--gutter);
  background: color-mix(in oklab, var(--sw-bg) 80%, transparent);
  backdrop-filter: blur(48px); -webkit-backdrop-filter: blur(48px);
  opacity: 0; pointer-events: none; visibility: hidden;
  overscroll-behavior: contain;
  /* Exit: hold visibility until the fade finishes, then flip discretely. */
  transition: opacity var(--sw-dur-fast) var(--sw-ease-out),
              visibility 0s linear var(--sw-dur-fast);
}
body.menu-open .menu {
  opacity: 1; pointer-events: auto; visibility: visible;
  /* Enter: visibility applies with no delay, so the element is focusable in the
     same tick that setMenu() moves focus to the first link. */
  transition: opacity var(--sw-dur-base) var(--sw-ease-out),
              visibility 0s linear 0s;
}
.menu a {
  font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.022em;
  opacity: 0; transform: translateY(12px);
  transition: opacity var(--sw-dur-fast) var(--sw-ease-out), transform var(--sw-dur-fast) var(--sw-ease-out);
}
body.menu-open .menu a { opacity: 1; transform: translateY(0); transition-duration: var(--sw-dur-base); }
body.menu-open .menu a:nth-child(1) { transition-delay: 100ms; }
body.menu-open .menu a:nth-child(2) { transition-delay: 150ms; }
body.menu-open .menu a:nth-child(3) { transition-delay: 200ms; }
body.menu-open .menu a:nth-child(4) { transition-delay: 250ms; }
body.menu-open .menu a:nth-child(5) { transition-delay: 300ms; }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero { padding-top: var(--s-600); padding-bottom: var(--s-700); }
@media (min-width: 768px) { .hero { padding-top: var(--s-800); padding-bottom: var(--s-900); } }
.hero-copy { max-width: 680px; }
.hero h1 {
  font-size: 36px; line-height: 40px; letter-spacing: -0.032em;
  margin-top: var(--s-300); margin-bottom: var(--s-300);
  color: var(--sw-fg);
}
@media (min-width: 640px) { .hero h1 { font-size: 48px; line-height: 1; } }
@media (min-width: 1024px) { .hero h1 { font-size: 60px; line-height: 1; } }
.hero-sub { max-width: 680px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--s-200); margin-top: var(--s-500); }
.hero-proof {
  display: flex; flex-wrap: wrap; gap: var(--s-100) var(--s-300);
  margin-top: var(--s-300);
  font-family: var(--sw-font-mono); font-size: 12px; line-height: 16px;
  letter-spacing: 0.06em; color: var(--sw-fg-muted);
}
.hero-proof span { display: inline-flex; align-items: center; gap: var(--s-50); }
.hero-proof .ph { font-size: 14px; color: var(--sw-dye-text); }

.hero-art { margin-top: var(--s-700); display: grid; gap: var(--s-300); grid-template-columns: 1fr; align-items: end; }
@media (min-width: 900px) { .hero-art { grid-template-columns: 1.55fr 1fr; gap: var(--s-500); margin-top: var(--s-800); } }

.shot {
  border: 1px solid var(--sw-line);
  border-radius: var(--radius-surface);
  background: var(--sw-bg-raised);
  padding: var(--s-75);
  box-shadow: var(--sw-shadow-lg);
  overflow: hidden;
}
.shot img {
  border-radius: 15px;                       /* 24 outer − 1 border − 8 padding */
  outline: 1px solid var(--img-outline); outline-offset: -1px;
}
.shot-flat { padding: 0; }
.shot--phone  { max-width: 316px; margin-inline: auto; }
.shot--tablet { max-width: 560px; margin-inline: auto; }
.shot-flat img { border-radius: 23px; }
.shot-cap {
  display: flex; align-items: center; gap: var(--s-75);
  padding: var(--s-100) var(--s-100) var(--s-50);
  font-family: var(--sw-font-mono); font-size: 12px; line-height: 16px;
  letter-spacing: 0.06em; color: var(--sw-fg-muted);
}

/* ── Generic grids ──────────────────────────────────────────────────────── */
.grid { display: grid; gap: var(--s-300); }
.grid-2 { grid-template-columns: 1fr; }
.grid-3 { grid-template-columns: 1fr; }
@media (min-width: 700px) { .grid-2 { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px) { .grid-3 { grid-template-columns: repeat(3, 1fr); } }

.card {
  border: 1px solid var(--sw-line);
  border-radius: var(--sw-radius-lg);
  background: var(--sw-bg-raised);
  padding: var(--s-300);
}
.card .ph { font-size: 24px; color: var(--sw-dye-text); }
.card h3 { margin-top: var(--s-200); margin-bottom: var(--s-75); }

.section-head { max-width: 680px; margin-bottom: var(--s-600); }
.section-head h2 { margin-top: var(--s-200); margin-bottom: var(--s-200); }

/* ── Format switcher ────────────────────────────────────────────────────── */
.tabs-wrap { position: relative; margin-bottom: var(--s-400); }
.tabs { display: flex; flex-wrap: wrap; gap: var(--s-75); }
.tab {
  font-family: var(--sw-font-mono); font-size: 14px; line-height: 20px; font-weight: 500;
  padding: var(--s-75) var(--s-200); border-radius: 9999px;
  border: 1px solid var(--sw-line-strong); background: transparent; color: var(--sw-fg-secondary);
  cursor: pointer;
  transition: background-color var(--sw-dur-fast) var(--sw-ease), color var(--sw-dur-fast) var(--sw-ease),
              border-color var(--sw-dur-fast) var(--sw-ease), transform var(--sw-dur-instant) var(--sw-ease-out);
}
.tab:active { transform: scale(0.96); }
.tab[aria-selected='true'] {
  background: var(--sw-dye-fill); border-color: var(--sw-dye-fill); color: var(--sw-on-dye);
}
@media (hover: hover) and (pointer: fine) {
  .tab:hover { color: var(--sw-fg); background: var(--sw-bg-sunken); }
}
[role="tablist"][data-kbd='true'] .tab { transition-duration: 0ms; }

/* Sliding pill overlay — a duplicate "always active" tab list, clipped to the
   active tab's rectangle. Clipping one filled object reads as a single pill
   sliding and resizing, instead of two independently-timed colour swaps. */
.tabs-pill {
  position: absolute; inset: 0; margin: 0;
  pointer-events: none; visibility: hidden;
  transition: clip-path var(--sw-dur-fast) var(--sw-ease-out);
}
.tabs-pill .tab { background: var(--sw-dye-fill); border-color: var(--sw-dye-fill); color: var(--sw-on-dye); cursor: default; }
.tabs-wrap.has-pill .tabs-pill { visibility: visible; }
.tabs-wrap.has-pill .tab[aria-selected='true'] {
  background: transparent; border-color: var(--sw-line-strong); color: var(--sw-fg-secondary);
}
.tabs-wrap:has([data-kbd='true']) .tabs-pill { transition-duration: 0ms; }

.panels { display: grid; }
.panel {
  grid-area: 1 / 1;
  display: grid; gap: var(--s-400); grid-template-columns: 1fr; align-items: start;
  opacity: 1; filter: blur(0); visibility: visible; pointer-events: auto;
  transition: opacity var(--sw-dur-fast) var(--sw-ease-out),
              filter var(--sw-dur-fast) var(--sw-ease-out),
              visibility var(--sw-dur-fast) var(--sw-ease-out);
  transition-behavior: allow-discrete;
}
@media (min-width: 900px) { .panel { grid-template-columns: 1fr 1fr; gap: var(--s-600); } }
.panel[data-active='false'] { opacity: 0; filter: blur(4px); visibility: hidden; pointer-events: none; }
.panel-copy h3 { margin-bottom: var(--s-100); }
.panel-copy .ext {
  display: inline-block; margin-bottom: var(--s-200);
  font-family: var(--sw-font-mono); font-size: 12px; line-height: 16px;
  padding: var(--s-25) var(--s-75); border-radius: 6px;
  background: var(--sw-dye-tint); color: var(--sw-dye-text);
}

@media (forced-colors: active) {
  .tabs-pill { display: none; }
  .tabs-wrap.has-pill .tab[aria-selected='true'] {
    text-decoration: underline; text-underline-offset: 4px;
  }
}

/* ── Tagline reveal ─────────────────────────────────────────────────────── */
.tagline { padding-top: var(--s-800); padding-bottom: var(--s-800); }
.tagline p {
  max-width: 680px;
  font-size: 30px; line-height: 40px; font-weight: 600; letter-spacing: -0.022em;
  text-wrap: balance;
}
@media (min-width: 768px) { .tagline p { font-size: 36px; line-height: 48px; } }
@media (min-width: 1024px) { .tagline p { font-size: 48px; line-height: 60px; } }
.tagline .w {
  display: inline-block;
  color: color-mix(in oklab, var(--sw-fg) 30%, transparent);
  transition: color var(--sw-dur-base) var(--sw-ease);
}
.tagline .w.on { color: var(--sw-fg); }

/* ── Steps ──────────────────────────────────────────────────────────────── */
.steps { counter-reset: st; display: grid; gap: var(--s-300); grid-template-columns: 1fr; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: st; border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); padding: var(--s-300); }
.step::before {
  content: counter(st, decimal-leading-zero);
  display: block; margin-bottom: var(--s-200);
  font-family: var(--sw-font-mono); font-size: 12px; line-height: 16px;
  font-weight: 500; letter-spacing: 0.06em; color: var(--sw-dye-text);
}
.step h3 { margin-bottom: var(--s-75); }

/* ── Feature rows ───────────────────────────────────────────────────────── */
.feature { display: grid; gap: var(--s-400); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 900px) {
  /* Top-aligned, not centred: the eyebrow, heading and the top edge of the
     screenshot form one rail. Centring detaches the heading from the art and
     only relocates the trailing space rather than removing it. */
  .feature { grid-template-columns: 1fr 1fr; gap: var(--s-700); }
  .feature.flip .feature-art { order: -1; }
  .feature .shot--phone, .feature .shot--tablet { margin-inline: 0 auto; }
  .feature.flip .shot--phone, .feature.flip .shot--tablet { margin-inline: auto 0; }
}
.feature + .feature { margin-top: var(--s-800); }
.feature h3 { margin-top: var(--s-200); margin-bottom: var(--s-100); }
.feature ul { margin: var(--s-300) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-100); }
.feature li { display: flex; gap: var(--s-100); align-items: flex-start; font-size: 16px; line-height: 24px; color: var(--sw-fg-secondary); }
.feature li .ph { font-size: 20px; color: var(--sw-dye-text); flex: none; }

/* ── Pricing ────────────────────────────────────────────────────────────── */
.plans { display: grid; gap: var(--s-300); grid-template-columns: 1fr; }
@media (min-width: 800px) { .plans { grid-template-columns: repeat(2, 1fr); } }
.plan { border: 1px solid var(--sw-line); border-radius: var(--sw-radius-lg); padding: var(--s-400); background: var(--sw-bg-raised); }
.plan.featured { border-color: var(--sw-dye-fill); }
.plan-name { display: flex; align-items: baseline; justify-content: space-between; gap: var(--s-200); margin-bottom: var(--s-200); }
.plan-price { font-size: 30px; line-height: 36px; font-weight: 600; letter-spacing: -0.022em; }
.plan-price small { font-size: 14px; line-height: 20px; font-weight: 400; color: var(--sw-fg-muted); }
.plan ul { margin: var(--s-300) 0 0; padding: 0; list-style: none; display: grid; gap: var(--s-100); }
.plan li { display: flex; gap: var(--s-100); align-items: flex-start; font-size: 16px; line-height: 24px; color: var(--sw-fg-secondary); }
.plan li .ph { font-size: 20px; color: var(--sw-dye-text); flex: none; }
.plan > .btn { margin-top: var(--s-300); width: 100%; justify-content: center; }
.plan-note { margin-top: var(--s-300); font-size: 14px; line-height: 20px; color: var(--sw-fg-muted); }

/* ── FAQ ────────────────────────────────────────────────────────────────── */
.faq { max-width: 780px; }
.faq details { border-top: 1px solid var(--sw-line); }
.faq details:last-of-type { border-bottom: 1px solid var(--sw-line); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-300);
  padding: var(--s-300) 0;
  font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -0.012em;
  transition: color var(--sw-dur-instant) var(--sw-ease);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--sw-dye-text); }
.faq summary .ph {
  font-size: 20px; color: var(--sw-fg-muted); flex: none;
  transition: transform var(--sw-dur-base) var(--sw-ease-out), color var(--sw-dur-instant) var(--sw-ease);
}
.faq details[open] summary .ph { transform: rotate(45deg); }
.faq summary:active .ph { color: var(--sw-dye-text); transform: scale(0.85); }
.faq details[open] summary:active .ph { transform: scale(0.85) rotate(45deg); }
.faq .answer { padding-bottom: var(--s-300); max-width: 68ch; color: var(--sw-fg-secondary); }
.faq details::details-content {
  height: 0; opacity: 0; overflow: hidden;
  transition: content-visibility var(--sw-dur-base) var(--sw-ease-out),
              opacity var(--sw-dur-fast) var(--sw-ease-out),
              height var(--sw-dur-base) var(--sw-ease-out);
  transition-behavior: allow-discrete;
}
.faq details[open]::details-content { height: auto; opacity: 1; }

/* ── Final CTA ──────────────────────────────────────────────────────────── */
.final { border: 1px solid var(--sw-line); border-radius: var(--radius-surface); padding: var(--s-600) var(--s-400); text-align: center; background: var(--sw-bg-raised); }
@media (min-width: 768px) { .final { padding: var(--s-800) var(--s-600); } }
.final h2 { max-width: 680px; margin: var(--s-200) auto; }
.final h1 { font-size: 30px; line-height: 36px; max-width: 680px; margin: var(--s-200) auto; }
@media (min-width: 768px) { .final h1 { font-size: 36px; line-height: 40px; } }
.final .lead { max-width: 560px; margin: 0 auto; }
.final .hero-actions { justify-content: center; }
.final .hero-proof { justify-content: center; }
.final .hero-proof + p { margin-top: var(--s-200); }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer { border-top: 1px solid var(--sw-line); padding-top: var(--s-600); padding-bottom: var(--s-600); }
.foot-grid { display: grid; gap: var(--s-400); grid-template-columns: 1fr; }
@media (min-width: 700px) { .foot-grid { grid-template-columns: 2fr 1fr 1fr; } }
.foot-grid h2 { font-size: 12px; line-height: 16px; font-family: var(--sw-font-mono); letter-spacing: 0.14em; text-transform: uppercase; color: var(--sw-fg-muted); margin-bottom: var(--s-200); font-weight: 500; }
.foot-links { display: grid; }
.foot-links a { padding-block: var(--s-75); }
.foot-links a { font-size: 14px; line-height: 20px; color: var(--sw-fg-secondary); transition: color var(--sw-dur-instant) var(--sw-ease); }
.foot-links a:hover { color: var(--sw-fg); }
.foot-bottom { margin-top: var(--s-600); padding-top: var(--s-300); border-top: 1px solid var(--sw-line);
  display: flex; flex-wrap: wrap; gap: var(--s-200) var(--s-300); justify-content: space-between;
  font-size: 14px; line-height: 20px; color: var(--sw-fg-muted); }
.endorse { display: flex; align-items: center; gap: var(--s-75); }
.endorse img { width: 20px; height: 20px; border-radius: 5px; }

/* ── Scroll reveal ──────────────────────────────────────────────────────── */
.reveal { opacity: 0; transform: translateY(8px);
  transition: opacity var(--sw-dur-slow) var(--sw-ease-out),
              transform var(--sw-dur-slow) var(--sw-ease-out); }
.reveal.in { opacity: 1; transform: none; }

.grid-3 .card.reveal:nth-child(1) { transition-delay: 0ms; }
.grid-3 .card.reveal:nth-child(2) { transition-delay: 50ms; }
.grid-3 .card.reveal:nth-child(3) { transition-delay: 100ms; }
.steps .step.reveal:nth-child(1) { transition-delay: 0ms; }
.steps .step.reveal:nth-child(2) { transition-delay: 50ms; }
.steps .step.reveal:nth-child(3) { transition-delay: 100ms; }
.plans .plan.reveal:nth-child(1) { transition-delay: 0ms; }
.plans .plan.reveal:nth-child(2) { transition-delay: 50ms; }

@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; }
  .tagline .w { color: var(--sw-fg); }
  /* Durations collapse via the tokens, but delays do not: without this the
     staggers still play out over 300ms, one item at a time. */
  .menu a, .reveal { transition-delay: 0s !important; }
}

/* ── Legal / 404 pages ──────────────────────────────────────────────────── */
.prose { max-width: 68ch; }
.prose h2 { font-size: 24px; line-height: 32px; margin-top: var(--s-600); margin-bottom: var(--s-200); }
.prose h1 { font-size: 36px; line-height: 40px; letter-spacing: -0.032em; margin-bottom: var(--s-300); }
.prose p, .prose li { color: var(--sw-fg-secondary); margin-bottom: var(--s-200); }
.prose ul { padding-inline-start: var(--s-300); }
.prose a {
  color: var(--sw-dye-text); text-decoration: underline; text-underline-offset: 3px;
  text-decoration-color: color-mix(in oklab, currentColor 40%, transparent);
  transition: text-decoration-color var(--sw-dur-instant) var(--sw-ease);
}
.prose a:hover { text-decoration-color: currentColor; }
