/*
 * Snappington website. Everything that is not a brand token lives here; the tokens (colours,
 * type scale, radii, motion, light/dark themes) come from tokens.css, a copy of brand/tokens.css.
 *
 * Sections: 1 site variables  2 base  3 layout  4 header  5 buttons and links
 * 6 the annotation layer  7 stages and screenshots  8 home  9 components  10 pages
 * 11 footer  12 utilities  13 reduced motion
 */

/* ---- 1. Site variables (theme-aware) ------------------------------------------------------- */

:root {
  --gutter: clamp(16px, 4.6vw, 48px);
  --max: 1200px;
  --max-wide: 1360px;
  --max-text: 700px;
  --sec: clamp(72px, 8.5vw, 124px);
  --header-h: 64px;

  --btn-hover: var(--accent-hover);
  /* The annotation layer (BRAND.md 7): frames, step circles and the wink dot in the accent
     (Racing Green on light, Mint on dark); arrows Burnt Marigold #d17208 on light (3.4:1 on
     white), marigold on dark. */
  --annot: var(--accent);
  --annot-arrow: #d17208;
  --dot: rgba(19, 20, 23, 0.075);
  --card: var(--bg-raised);
  --card-line: var(--line);
  --callout-bg: var(--white);
  --callout-fg: var(--ink-900);
  /* The Marker swipe behind a word (.marker); why the dark values differ: section 6. */
  --marker-bg: var(--marker);
  --marker-fg: var(--ink-900);
  --header-bg: rgba(255, 255, 255, 0.85);
  /* The backdrop behind a product shot: neutral, with the soft tile gradient over it. */
  --stage: var(--tile-gradient-soft);
  --stage-base: var(--ink-50);
  --chip-bg: rgba(19, 20, 23, 0.05);
  --redact: var(--ink-900);
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --annot-arrow: var(--marigold);
    --dot: rgba(255, 255, 255, 0.06);
    --card-line: rgba(255, 255, 255, 0.09);
    --callout-bg: var(--ink-850);
    --callout-fg: #ececf0;
    --marker-bg: rgba(245, 165, 36, 0.45);
    --marker-fg: var(--fg);
    --header-bg: rgba(19, 20, 23, 0.8);
    --stage: linear-gradient(135deg, rgba(35, 164, 124, 0.2), rgba(15, 107, 79, 0.14) 55%, rgba(245, 165, 36, 0.1));
    --stage-base: #17181b;
    --chip-bg: rgba(255, 255, 255, 0.06);
    --redact: var(--fg);
  }
}

:root[data-theme="dark"] {
  --annot-arrow: var(--marigold);
  --redact: var(--fg);
  --dot: rgba(255, 255, 255, 0.06);
  --card-line: rgba(255, 255, 255, 0.09);
  --callout-bg: var(--ink-850);
  --callout-fg: #ececf0;
  --marker-bg: rgba(245, 165, 36, 0.45);
  --marker-fg: var(--fg);
  --header-bg: rgba(19, 20, 23, 0.8);
  --stage: linear-gradient(135deg, rgba(35, 164, 124, 0.2), rgba(15, 107, 79, 0.14) 55%, rgba(245, 165, 36, 0.1));
  --stage-base: #17181b;
  --chip-bg: rgba(255, 255, 255, 0.06);
}

/* Theme-dependent images and icons: both are in the markup, CSS shows one. */
.only-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .only-dark { display: block !important; }
  :root:not([data-theme="light"]) .only-light { display: none !important; }
}
:root[data-theme="dark"] .only-dark { display: block !important; }
:root[data-theme="dark"] .only-light { display: none !important; }

/* ---- 2. Base --------------------------------------------------------------------------------- */

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: calc(var(--header-h) + 24px);
  background: var(--bg);
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--fg);
  font-family: var(--font-text);
  font-size: var(--step-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}

img,
svg,
video { max-width: 100%; }
img { height: auto; }

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 760;
  letter-spacing: var(--track-heading);
  line-height: 1.06;
  text-wrap: balance;
}

h1 { font-size: var(--step-h1); letter-spacing: var(--track-display); line-height: 1.02; }
h2 { font-size: var(--step-h2); line-height: 1.04; }
h3 { font-size: var(--step-h3); font-weight: 720; line-height: 1.15; }

p, li, dd, figcaption { text-wrap: pretty; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }

ul, ol { margin: 0; padding: 0; }

code, kbd, samp, pre { font-family: var(--font-mono); font-size: 0.92em; }

:not(pre) > code {
  padding: 0.1em 0.38em;
  border-radius: var(--radius-xs);
  background: var(--chip-bg);
  font-size: 0.88em;
  white-space: nowrap;
}

kbd {
  display: inline-block;
  min-width: 1.9em;
  padding: 0.14em 0.5em 0.1em;
  border: 1px solid var(--line-strong);
  border-bottom-width: 2px;
  border-radius: 6px;
  background: var(--bg-raised);
  color: var(--fg);
  font-size: 0.82em;
  font-weight: 500;
  line-height: 1.5;
  text-align: center;
  white-space: nowrap;
}

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

::selection { background: rgba(35, 164, 124, 0.3); }

:focus-visible {
  outline: 2px solid var(--accent-text);
  outline-offset: 3px;
  border-radius: 4px;
}

.skip-link {
  position: absolute;
  left: 12px;
  top: -200px;
  z-index: 100;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  background: var(--accent);
  color: var(--accent-fg);
  font-weight: 600;
  text-decoration: none;
}
.skip-link:focus { top: 12px; }

/* ---- 3. Layout ------------------------------------------------------------------------------- */

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.wrap-wide { width: min(100% - 2 * var(--gutter), var(--max-wide)); margin-inline: auto; }
.wrap-text { width: min(100% - 2 * var(--gutter), var(--max-text)); margin-inline: auto; }

.section { padding-block: var(--sec); }
.section-tight { padding-block: calc(var(--sec) * 0.6); }
.section + .section.no-top, .no-top { padding-top: 0; }
.rule-top { border-top: 1px solid var(--line); }

.sec-head { max-width: 780px; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head.center { margin-inline: auto; text-align: center; }
.sec-head.center .eyebrow { justify-content: center; }

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 18px;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: var(--track-caps);
  line-height: 1.3;
  text-transform: uppercase;
}

.lead {
  margin-top: 20px;
  color: var(--fg-muted);
  font-size: var(--step-lead);
  line-height: 1.5;
  max-width: 38em;
}
.sec-head.center .lead { margin-inline: auto; }

.split {
  display: grid;
  gap: clamp(40px, 6vw, 88px);
  align-items: center;
}
@media (min-width: 1100px) {
  .split { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .split.even { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .split.flip { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
  .split.flip > :first-child { order: 2; }
  .split.top { align-items: start; }
}

.prose { max-width: var(--max-text); }
.prose h2 { font-size: clamp(1.5rem, 1.2rem + 1.2vw, 2.125rem); margin: 56px 0 16px; }
.prose h3 { margin: 36px 0 10px; }
.prose p, .prose ul, .prose ol { margin: 0 0 1.1em; }
.prose ul, .prose ol { padding-left: 1.3em; }
.prose li { margin: 0.35em 0; }
.prose li::marker { color: var(--fg-subtle); }
.prose > :first-child { margin-top: 0; }

/* ---- 4. Header --------------------------------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--header-bg);
  border-bottom: 1px solid var(--line);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  backdrop-filter: saturate(1.4) blur(14px);
}

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

.brand-link {
  display: inline-flex;
  flex: none;
  align-items: center;
  border-radius: 8px;
}
.brand-link img { height: 27px; width: auto; }

.site-nav { margin-left: auto; }
.site-nav ul { display: flex; align-items: center; gap: 4px; list-style: none; }
.site-nav a {
  position: relative;
  display: block;
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--fg-muted);
  font-size: 15px;
  font-weight: 520;
  text-decoration: none;
  transition: color var(--dur-quick) var(--ease), background-color var(--dur-quick) var(--ease);
}
.site-nav a:hover { color: var(--fg); background: var(--chip-bg); }
.site-nav a[aria-current="page"] { color: var(--fg); }
/* The wink (the i dot) marks the current page. */
.site-nav a[aria-current="page"]::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 0;
  width: 5px;
  height: 5px;
  margin-left: -2.5px;
  border-radius: 50%;
  background: var(--annot);
}
.site-nav .nav-download { display: none; }

.header-actions { display: flex; align-items: center; gap: 8px; }
.header-actions::before {
  content: "";
  width: 1px;
  height: 22px;
  margin: 0 8px 0 4px;
  background: var(--line-strong);
}

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--fg-muted);
  cursor: pointer;
  transition: color var(--dur-quick) var(--ease), background-color var(--dur-quick) var(--ease);
}
.icon-btn:hover { color: var(--fg); background: var(--chip-bg); }
.icon-btn svg { width: 20px; height: 20px; }
html:not(.js) .theme-toggle { display: none; }

.menu-btn { display: none; }

@media (max-width: 900px) {
  .header-actions .header-download { display: none; }
  .header-actions::before { display: none; }
  .header-actions { margin-left: auto; }
  html.js .site-nav { display: none; }
  html.js .menu-btn { display: inline-grid; }
  html.js .site-header.is-open .site-nav {
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    max-height: calc(100vh - var(--header-h));
    overflow-y: auto;
    padding: 8px var(--gutter) 24px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    box-shadow: 0 24px 40px -24px rgba(0, 0, 0, 0.35);
  }
  html.js .site-header.is-open .site-nav ul { flex-direction: column; align-items: stretch; gap: 0; }
  html.js .site-header.is-open .site-nav li { border-bottom: 1px solid var(--line); }
  html.js .site-header.is-open .site-nav li:last-child { border-bottom: 0; }
  html.js .site-header.is-open .site-nav a {
    padding: 16px 4px;
    border-radius: 0;
    color: var(--fg);
    font-family: var(--font-display);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: var(--track-heading);
  }
  html.js .site-header.is-open .site-nav a:hover { background: none; color: var(--accent-text); }
  html.js .site-header.is-open .site-nav a[aria-current="page"]::after { left: auto; right: 8px; bottom: 50%; margin: 0 0 -2.5px; width: 8px; height: 8px; }
  html.js .site-header.is-open .site-nav .nav-download { display: block; padding-top: 20px; }
  html.js .site-header.is-open .site-nav .nav-download a {
    display: flex;
    justify-content: center;
    padding: 0;
    color: var(--accent-fg);
    font-family: var(--font-text);
    font-size: 17px;
    font-weight: 600;
    letter-spacing: 0;
  }
  html.js .site-header.is-open .site-nav .nav-download a:hover { color: var(--accent-fg); background: var(--btn-hover); }
  /* No script: the nav wraps under the bar instead of hiding behind a button. */
  html:not(.js) .site-header .bar { flex-wrap: wrap; height: auto; padding-block: 12px; }
  html:not(.js) .site-nav { order: 3; width: 100%; margin-left: 0; }
  html:not(.js) .site-nav ul { flex-wrap: wrap; }
}
@media (max-width: 420px) {
  .brand-link img { height: 24px; }
}

/* ---- 5. Buttons and links ------------------------------------------------------------------ */

a { color: var(--accent-text); text-decoration-thickness: 1px; text-underline-offset: 0.2em; }
a:hover { text-decoration-thickness: 2px; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 10px;
  font-family: var(--font-text);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  text-align: center;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color var(--dur-quick) var(--ease), border-color var(--dur-quick) var(--ease),
    color var(--dur-quick) var(--ease), transform var(--dur-quick) var(--ease), box-shadow var(--dur-quick) var(--ease);
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { box-shadow: var(--focus-ring); border-radius: 10px; }

.btn-primary {
  background: var(--accent);
  color: var(--accent-fg);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16), 0 8px 20px -10px rgba(9, 58, 45, 0.7);
}
.btn-primary:hover { background: var(--btn-hover); color: var(--accent-fg); }

.btn-secondary {
  background: var(--bg-raised);
  border-color: var(--line-strong);
  color: var(--fg);
}
.btn-secondary:hover { border-color: var(--fg-subtle); color: var(--fg); }

.btn-quiet { padding-inline: 12px; background: transparent; color: var(--accent-text); }
.btn-quiet:hover { background: var(--accent-soft); color: var(--accent-text); }

.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; border-radius: 9px; }
.btn-sm svg { width: 18px; height: 18px; }
.btn-lg { min-height: 56px; padding: 0 28px; font-size: 17px; border-radius: 12px; }

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

.more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  text-decoration: none;
}
.more svg { width: 18px; height: 18px; transition: transform var(--dur-quick) var(--ease); }
.more:hover { text-decoration: underline; text-decoration-thickness: 2px; }
.more:hover svg { transform: translateX(3px); }

.icon { width: 24px; height: 24px; flex: none; }

/* ---- 6. The annotation layer --------------------------------------------------------------- */

/* Marker: a highlighter swipe behind a word. On light, Ink on the Marker swipe (about 14:1). On
   dark, the text stays light on a 45% marigold swipe (about 5.7:1): Ink text would vanish where
   ascenders and descenders leave the swipe. Tags and labels, which the fill fully contains, use
   Ink on --highlight (solid marigold on dark, about 7:1). */
.marker {
  position: relative;
  z-index: 0;
  display: inline-block;
  color: var(--marker-fg);
  white-space: nowrap;
}
.marker::before {
  content: "";
  position: absolute;
  z-index: -1;
  left: -0.07em;
  right: -0.09em;
  top: 0.2em;
  bottom: 0.02em;
  border-radius: 0.1em 0.24em 0.14em 0.3em;
  background: var(--marker-bg);
  transform: skewX(-9deg) rotate(-1.4deg);
  transform-origin: 0 50%;
}
.marker-sm::before { top: 0.14em; bottom: -0.02em; left: -0.14em; right: -0.14em; }

/* The wink: the i dot of the wordmark (the butler's winking eye) as a full stop, a bullet, a
   landing point. Racing Green on light, Mint on dark. */
.dot-stop::after {
  content: "";
  display: inline-block;
  width: 0.19em;
  height: 0.19em;
  margin-left: 0.05em;
  border-radius: 50%;
  background: var(--annot);
  vertical-align: baseline;
}

/* Numbered steps. */
.step-badge {
  display: inline-grid;
  flex: none;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-fg);
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
}
.step-badge.ring { box-shadow: 0 0 0 2.5px #fff, 0 8px 18px -6px rgba(9, 58, 45, 0.7); }
.step-badge.lg { width: 40px; height: 40px; font-size: 20px; }
/* Icon pins: the hero marks what each part of the app is for (numbers there would clash with the
   screenshot's own numbered steps and the chapter numbers below). */
.icon-pin svg { display: block; width: 58%; height: 58%; }

/* Selection frame with handles. */
.selframe {
  position: absolute;
  border: 1.5px solid var(--annot);
  pointer-events: none;
}
.selframe > i {
  position: absolute;
  width: 9px;
  height: 9px;
  border: 1.5px solid var(--annot);
  border-radius: 2px;
  background: #fff;
}
.selframe > i:nth-child(1) { left: -5px; top: -5px; }
.selframe > i:nth-child(2) { right: -5px; top: -5px; }
.selframe > i:nth-child(3) { left: -5px; bottom: -5px; }
.selframe > i:nth-child(4) { right: -5px; bottom: -5px; }
.selframe > i:nth-child(5) { left: calc(50% - 4.5px); top: -5px; }
.selframe > i:nth-child(6) { left: calc(50% - 4.5px); bottom: -5px; }
.selframe > i:nth-child(7) { left: -5px; top: calc(50% - 4.5px); }
.selframe > i:nth-child(8) { right: -5px; top: calc(50% - 4.5px); }

.dim-label {
  position: absolute;
  padding: 3px 7px;
  border-radius: 6px;
  background: var(--ink-900);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  line-height: 1.4;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

/* Callouts: a rounded bubble with a short tail. */
.callout {
  position: absolute;
  z-index: 2;
  width: max-content;
  max-width: 240px;
  padding: 10px 14px 11px;
  border-radius: 12px;
  background: var(--callout-bg);
  color: var(--callout-fg);
  box-shadow: var(--shadow), 0 0 0 1px var(--card-line);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
}
.callout small { display: block; margin-top: 2px; color: var(--fg-muted); font-size: 13px; font-weight: 450; }
.callout .tag {
  display: block;
  width: fit-content;
  margin-bottom: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--highlight);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

/* Arrows: fixed-size SVGs placed on the layer; strokes use --annot-arrow (marigold). */
.annot-arrow { position: absolute; overflow: visible; pointer-events: none; }
.annot-arrow path {
  fill: none;
  stroke: var(--annot-arrow);
  stroke-width: 3.5;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.annot-arrow .halo { stroke: #fff; stroke-width: 7.5; opacity: 0.9; }

/* Redaction: solid Ink bars. */
.redact-bar {
  display: inline-block;
  height: 0.95em;
  border-radius: 2px;
  background: var(--redact);
  vertical-align: -0.12em;
}

/* An annotation layer placed over an image; children use --x/--y in percent of the image. */
.annot { position: absolute; inset: 0; pointer-events: none; }
.pin { position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%); }

/* ---- 7. Stages and screenshots ------------------------------------------------------------- */

.stage {
  position: relative;
  padding: clamp(14px, 4.4vw, 60px);
  border-radius: var(--radius-lg);
  background-color: var(--stage-base);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.4px), var(--stage);
  background-size: 22px 22px, auto;
  background-position: 11px 11px, 0 0;
  isolation: isolate;
}
.stage.plain {
  background-color: var(--bg-sunken);
  background-image: radial-gradient(var(--dot) 1.1px, transparent 1.4px);
}
.stage.ink {
  background-color: var(--ink-950);
  background-image: radial-gradient(rgba(255, 255, 255, 0.06) 1.1px, transparent 1.4px);
}
.stage.tight { padding: clamp(12px, 3vw, 36px); }
.stage.center { display: grid; place-items: center; }

.shot {
  position: relative;
  margin: 0;
  border-radius: var(--radius);
  background: var(--ink-900);
  box-shadow: var(--shadow-lg);
}
.shot > img,
.shot > picture img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: inherit;
}
.shot::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.07), 0 0 0 1px rgba(19, 20, 23, 0.1);
  pointer-events: none;
}
.shot.light-bg { background: var(--white); }
.shot.flat { box-shadow: var(--shadow); }
.shot.bare { background: none; box-shadow: none; }
.shot.bare::after { display: none; }
.shot.crop { overflow: hidden; }
.shot.crop > img { height: 100%; object-fit: cover; }
.markup-clip { margin: 36px 0 44px; }
.fgroup-visual.stack { display: grid; gap: 32px; }
.steps-clip { max-width: 1100px; margin-inline: auto; }

/* Clips: a silent looping video in a .shot frame (site.js adds the pause button). */
.shot.clip > video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 16 / 10;
  border-radius: inherit;
  background: var(--ink-900);
}
.clip-toggle {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: rgba(19, 20, 23, 0.62);
  color: #fff;
  cursor: pointer;
  opacity: 0;
  transition: opacity 0.2s ease;
}
.clip-toggle svg { width: 16px; height: 16px; }
.shot.clip:hover .clip-toggle,
.clip-toggle:focus-visible,
.clip-toggle[aria-label="Play the clip"] { opacity: 1; }
@media (hover: none) { .clip-toggle { opacity: 0.85; } }

figure { margin: 0; }
.fig-caption {
  margin-top: 14px;
  color: var(--fg-muted);
  font-size: 14px;
  line-height: 1.45;
}
.stage + .fig-caption { text-align: center; }

/* Fallback panel for a screenshot that isn't there yet: never drawn UI, just the frame. */
.shot-missing {
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: var(--radius);
  border: 1.5px dashed var(--line-strong);
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 13px;
  text-align: center;
}

/* ---- 8. Home --------------------------------------------------------------------------------- */

.hero { padding-top: clamp(48px, 7vw, 104px); }

.hero-head {
  display: grid;
  gap: 28px clamp(32px, 5vw, 72px);
  align-items: end;
  margin-bottom: clamp(40px, 5.5vw, 72px);
}
@media (min-width: 1120px) {
  .hero-head { grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); }
}

.hero h1 {
  font-size: var(--step-hero);
  font-weight: 790;
  letter-spacing: var(--track-display);
  line-height: 0.98;
}
.hero h1 .line { display: block; }

.hero-copy .lead { margin: 0 0 28px; max-width: 30em; color: var(--fg-muted); }
.hero-copy .lead strong { color: var(--fg); font-weight: 600; }
.platform-note {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 18px;
  color: var(--fg-muted);
  font-size: 14px;
}
.platform-note .sep { width: 4px; height: 4px; border-radius: 50%; background: var(--fg-subtle); }

.hero-stage { padding: clamp(12px, 4.2vw, 64px); }
.hero-shot { position: relative; }

.hero-legend {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 22px 0 0;
  list-style: none;
  color: var(--fg-muted);
  font-size: 14px;
}
.hero-legend li { display: flex; align-items: center; gap: 10px; }
.hero-legend .step-badge { width: 22px; height: 22px; font-size: 12px; }

/* The capture animation: dim, drag a selection, one white flash, annotations snap in. */
.cap { position: absolute; inset: 0; border-radius: inherit; overflow: hidden; pointer-events: none; display: none; }
.cap-sel {
  position: absolute;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  box-shadow: 0 0 0 200vmax rgba(8, 8, 14, 0.5);
}
.cap-sel .selframe { inset: 0; }
.cap-sel .dim-label { right: 6px; bottom: 6px; }
.cap-flash { position: absolute; inset: 0; background: #fff; opacity: 0; }

@property --cw { syntax: "<integer>"; inherits: true; initial-value: 1440; }
@property --ch { syntax: "<integer>"; inherits: true; initial-value: 900; }
.cap-sel .dim-label::after { counter-reset: cw var(--cw) ch var(--ch); content: counter(cw) " \00D7  " counter(ch); }

@media (prefers-reduced-motion: no-preference) {
  html.js .hero-shot[data-state="idle"] .annot > * { opacity: 0; animation: annot-safety 1ms 2.4s forwards; }
  html.js .hero-shot[data-state="play"] .cap { display: block; animation: cap-out 1ms 0.78s forwards; }
  html.js .hero-shot[data-state="play"] .cap-sel { animation: cap-drag 0.56s 0.06s cubic-bezier(0.3, 0.7, 0.2, 1) both; }
  html.js .hero-shot[data-state="play"] .cap-flash { animation: cap-flash 0.26s 0.64s ease-out both; }
  html.js .hero-shot[data-state="play"] .annot > * { animation: snap-in 0.34s var(--ease-snap) both; animation-delay: calc(0.8s + var(--i, 0) * 0.07s); }
  html.js .hero-shot[data-state="play"] .annot > .annot-svg { animation: fade-in 0.22s var(--ease) both; animation-delay: calc(0.8s + var(--i, 0) * 0.07s); }
  .hero-title .marker::before { animation: swipe 0.42s 0.22s var(--ease) both; }
}

@keyframes cap-drag {
  0% { width: 0; height: 0; --cw: 0; --ch: 0; }
  100% { width: 100%; height: 100%; --cw: 1440; --ch: 900; }
}
@keyframes cap-flash { 0% { opacity: 0; } 30% { opacity: 0.85; } 100% { opacity: 0; } }
@keyframes cap-out { to { visibility: hidden; } }
@keyframes snap-in { from { opacity: 0; transform: var(--t, translate(0, 0)) scale(0.6); } to { opacity: 1; transform: var(--t, translate(0, 0)) scale(1); } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes swipe { from { transform: skewX(-9deg) rotate(-1.4deg) scaleX(0); } to { transform: skewX(-9deg) rotate(-1.4deg) scaleX(1); } }
@keyframes annot-safety { to { opacity: 1; } }

/* Proof strip: measured numbers. */
.proof { border-block: 1px solid var(--line); }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}
.proof-grid > div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 10px;
  padding: 28px 20px 30px 0;
  border-top: 1px solid var(--line);
}
.proof-grid > div:nth-child(-n + 2) { border-top: 0; }
.proof-grid > div:nth-child(even) { padding-left: 20px; border-left: 1px solid var(--line); }
@media (min-width: 900px) {
  .proof-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .proof-grid > div { border-top: 0; padding: 40px 28px 42px; border-left: 1px solid var(--line); }
  .proof-grid > div:first-child { padding-left: 0; border-left: 0; }
}
.proof-grid dt { color: var(--fg-muted); font-size: 15px; line-height: 1.4; }
.proof-grid dd {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(2.5rem, 1.7rem + 3.2vw, 4.25rem);
  font-weight: 780;
  line-height: 0.95;
  letter-spacing: var(--track-display);
  white-space: nowrap;
}
.proof-grid .unit {
  margin-left: 0.12em;
  color: var(--fg-muted);
  font-family: var(--font-mono);
  font-size: 0.34em;
  font-weight: 500;
  letter-spacing: 0;
}
.proof-note {
  padding: 16px 0 18px;
  border-top: 1px solid var(--line);
  color: var(--fg-muted);
  font-size: 13px;
}

/* Pillars: four ways of doing it properly. */
.pillars {
  display: grid;
  gap: 40px 32px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 230px), 1fr));
  list-style: none;
}
.pillar { padding-top: 22px; border-top: 2px solid var(--fg); }
.pillar h3 { font-size: clamp(1.75rem, 1.4rem + 1.2vw, 2.375rem); font-weight: 780; letter-spacing: var(--track-display); }
.pillar .say { margin: 14px 0 12px; font-size: 18px; font-weight: 560; line-height: 1.4; }
.pillar .proof-line { color: var(--fg-muted); font-size: 15px; }

/* Numbered product sections. */
.chapter-head .eyebrow .step-badge { width: 26px; height: 26px; font-size: 14px; }

.feature-list { display: grid; gap: 22px; margin-top: 32px; list-style: none; }
.feature-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 16px; align-items: start; }
.feature-list .ico,
.tool .ico {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  background: var(--accent-soft);
  color: var(--accent-text);
}
.feature-list .ico svg,
.tool .ico svg { width: 22px; height: 22px; }
.feature-list strong { display: block; margin-bottom: 2px; font-weight: 620; }
.feature-list p { color: var(--fg-muted); }
.feature-list.compact { gap: 16px; }

/* Tool grid: a spec sheet of the markup tools, drawn with the app's own icons. */
.tools {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  background: var(--card-line);
  list-style: none;
}
.tool {
  display: grid;
  grid-template-columns: 40px minmax(0, 1fr);
  gap: 4px 16px;
  padding: 18px 20px;
  background: var(--card);
  align-content: start;
}
.tool .ico { grid-row: span 2; }
.tool h3 { font-family: var(--font-text); font-size: 16px; font-weight: 620; letter-spacing: 0; line-height: 1.35; }
.tool p { color: var(--fg-muted); font-size: 14.5px; line-height: 1.45; }
@media (min-width: 560px) {
  .tools { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .tools { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .tool { grid-template-columns: minmax(0, 1fr); padding: 24px 24px 26px; }
  .tool .ico { grid-row: auto; margin-bottom: 14px; }
}
.tools-foot { margin-top: 20px; color: var(--fg-muted); font-size: 15px; }

/* Redact means redact. */
.redact-panel {
  display: grid;
  gap: clamp(28px, 4vw, 56px);
  margin-top: clamp(48px, 6vw, 80px);
  padding: clamp(24px, 4vw, 56px);
  border-radius: var(--radius-lg);
  background: var(--ink-950);
  color: #ececf0;
  --fg: #ececf0;
  --fg-muted: #a3a4ae;
  --line: rgba(255, 255, 255, 0.1);
  --accent-text: var(--green-300);
  --chip-bg: rgba(255, 255, 255, 0.08);
}
@media (min-width: 980px) {
  .redact-panel { grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); align-items: center; }
}
.redact-panel h3 { font-size: var(--step-h2); font-weight: 780; letter-spacing: var(--track-display); }
.redact-panel .lead { color: var(--fg-muted); font-size: 17px; }
.redact-panel .lead:first-of-type { margin-top: 16px; }

.rd-pair { display: grid; gap: 16px; }
@media (min-width: 620px) { .rd-pair { grid-template-columns: 1fr 1fr; } }
.rd-card { display: flex; flex-direction: column; }
.rd-doc {
  flex: 1;
  padding: 18px 20px;
  border-radius: 10px;
  background: #fff;
  color: #2a2b31;
  font-size: 14px;
  line-height: 1.6;
  box-shadow: 0 16px 36px -18px rgba(0, 0, 0, 0.8);
}
.rd-doc .row { display: flex; justify-content: space-between; gap: 12px; padding: 5px 0; border-bottom: 1px solid #ececf0; }
.rd-doc .row:last-child { border-bottom: 0; }
.rd-doc .k { color: #6c6d77; }
.rd-doc .v { font-weight: 600; white-space: nowrap; }
.rd-doc .blurred { filter: blur(4.5px); user-select: none; }
.rd-doc .redact-bar { --redact: var(--ink-900); width: 11ch; height: 1.1em; vertical-align: -0.2em; border-radius: 2px; }
.rd-card figcaption { margin-top: 14px; font-size: 14.5px; color: var(--fg-muted); line-height: 1.5; }
.rd-card figcaption strong { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; color: var(--fg); font-size: 16px; }
.rd-card figcaption svg { width: 18px; height: 18px; color: var(--green-300); }
.rd-card .file-note {
  display: inline-flex;
  gap: 6px;
  margin-top: 10px;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.06);
  font-family: var(--font-mono);
  font-size: 12px;
  color: #c3c4cc;
}

/* Stats (video, steps). */
.stats { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); margin: 32px 0 0; }
.stats > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; gap: 6px; padding: 4px 24px 4px 0; }
.stats dd { margin: 0; font-family: var(--font-display); font-size: clamp(2rem, 1.6rem + 1.6vw, 3rem); font-weight: 780; letter-spacing: var(--track-display); line-height: 1; white-space: nowrap; }
.stats dd .unit { margin-left: 0.28em; color: var(--fg-muted); font-family: var(--font-mono); font-size: 0.34em; font-weight: 500; letter-spacing: 0; }
.stats dt { color: var(--fg-muted); font-size: 14.5px; line-height: 1.4; }

/* Format chips. */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 24px 0 0; list-style: none; }
.chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border: 1px solid var(--line);
  border-radius: var(--radius-pill);
  background: var(--card);
  color: var(--fg);
  font-family: var(--font-mono);
  font-size: 13px;
  font-weight: 500;
}

/* Yours: an Ink band in both themes. */
.band-ink {
  background: var(--ink-950);
  color: #ececf0;
  --fg: #ececf0;
  --fg-muted: #a3a4ae;
  --fg-subtle: #8a8b96;
  --line: rgba(255, 255, 255, 0.09);
  --line-strong: rgba(255, 255, 255, 0.16);
  --card: var(--ink-850);
  --card-line: rgba(255, 255, 255, 0.09);
  --accent-text: var(--green-300);
  --accent-soft: rgba(127, 224, 181, 0.14);
  --chip-bg: rgba(255, 255, 255, 0.07);
  --bg-raised: var(--ink-850);
  color-scheme: dark;
}
.band-ink .btn-secondary { background: transparent; }

.yours-list { display: grid; gap: 0; margin-top: 36px; list-style: none; border-top: 1px solid var(--line); }
.yours-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.yours-list li::before { content: ""; width: 9px; height: 9px; margin: 0.5em 0 0 4px; border-radius: 50%; background: var(--green-400); }
.yours-list strong { font-weight: 620; }
.yours-list span { color: var(--fg-muted); }

/* Code panels and file trees. */
.code {
  margin: 0;
  padding: 22px 24px;
  overflow-x: auto;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius);
  background: #0b0c0e;
  color: #d9dae3;
  font-family: var(--font-mono);
  font-size: 13.5px;
  line-height: 1.75;
  tab-size: 2;
  box-shadow: var(--shadow);
}
.code code { font-size: inherit; background: none; padding: 0; white-space: pre; }
.code .c { color: #8b8d99; }
.code .k { color: #8fe6bf; }
.code .s { color: #ffd98a; }
.code .n { color: #f5a524; }
.code .d { color: #fff; font-weight: 500; }
.code .p { color: #8b8d99; }
.code-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 0 0 -1px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius) var(--radius) 0 0;
  background: #16171b;
  color: #a3a4ae;
  font-family: var(--font-mono);
  font-size: 12.5px;
}
.code-title + .code { border-top-left-radius: 0; border-top-right-radius: 0; }

/* Pricing. */
.placeholder-notice {
  padding: 14px 18px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--fg);
  font-size: 15px;
}
.placeholder-notice .tag { margin-right: 10px; }
.placeholder-notice .tag,
.tag-marker {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 5px;
  background: var(--highlight);
  color: var(--ink-900);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.plans { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 900px) { .plans { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.plans.two { max-width: 920px; }
@media (min-width: 720px) { .plans.two { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.plan.featured { border-color: var(--annot); box-shadow: 0 0 0 1px var(--annot), var(--shadow); }
.plan h3 { font-size: 24px; }
.plan .for { margin: 8px 0 22px; color: var(--fg-muted); font-size: 15px; }
.price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 4px 10px; margin: 0 0 6px; }
.price .amount { font-family: var(--font-display); font-size: clamp(2.75rem, 2.2rem + 1.8vw, 3.75rem); font-weight: 790; letter-spacing: var(--track-display); line-height: 1; }
.price .per { color: var(--fg-muted); font-size: 15px; }
.plan .terms { margin: 0 0 22px; color: var(--fg-muted); font-size: 14px; }
.plan ul { display: grid; gap: 10px; margin: 0 0 28px; list-style: none; font-size: 15px; }
.plan li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 10px; }
.plan li svg { width: 20px; height: 20px; color: var(--accent-text); margin-top: 1px; }
.plan .btn { margin-top: auto; }
.plan .badge-top {
  position: absolute;
  top: -12px;
  left: clamp(24px, 3vw, 36px);
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  color: var(--accent-fg);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.teaser-plans { display: grid; gap: 1px; margin: 32px 0; border: 1px solid var(--card-line); border-radius: var(--radius-lg); overflow: hidden; background: var(--card-line); }
@media (min-width: 720px) { .teaser-plans { grid-template-columns: 1fr 1fr; } }
.teaser-plans > div { padding: 28px; background: var(--card); }
.teaser-plans h3 { font-family: var(--font-text); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--fg-muted); }
.teaser-plans .amount { display: block; margin: 8px 0 6px; font-family: var(--font-display); font-size: 44px; font-weight: 790; letter-spacing: var(--track-display); line-height: 1; }
.teaser-plans p { color: var(--fg-muted); font-size: 15px; }

/* FAQ. */
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  position: relative;
  display: block;
  padding: 22px 48px 22px 0;
  font-family: var(--font-display);
  font-size: clamp(1.125rem, 1.05rem + 0.35vw, 1.3125rem);
  font-weight: 680;
  letter-spacing: -0.01em;
  line-height: 1.3;
  cursor: pointer;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "";
  position: absolute;
  right: 6px;
  top: 50%;
  width: 12px;
  height: 12px;
  margin-top: -9px;
  border-right: 2px solid var(--fg-muted);
  border-bottom: 2px solid var(--fg-muted);
  transform: rotate(45deg);
  transition: transform var(--dur) var(--ease), margin var(--dur) var(--ease);
}
.faq details[open] summary::after { transform: rotate(225deg); margin-top: -3px; }
.faq summary:hover { color: var(--accent-text); }
.faq .answer { padding: 0 0 24px; color: var(--fg-muted); max-width: 44em; }
.faq .answer a { font-weight: 550; }

/* The one tile-gradient moment below the hero: the closing band. */
.cta-band {
  position: relative;
  display: grid;
  gap: 32px;
  align-items: center;
  overflow: hidden;
  padding: clamp(28px, 6vw, 80px);
  border-radius: calc(var(--radius-lg) + 8px);
  background: var(--tile-gradient);
  isolation: isolate;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: radial-gradient(rgba(255, 255, 255, 0.16) 1.1px, transparent 1.4px);
  background-size: 22px 22px;
}
@media (min-width: 900px) { .cta-band { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); } }
.cta-glyph { position: relative; justify-self: center; width: clamp(140px, 24vw, 290px); aspect-ratio: 47.2 / 43.1; }
.cta-glyph img { display: block; width: 100%; height: 100%; }
.cta-glyph .selframe { inset: -18px -22px; border-color: rgba(255, 255, 255, 0.95); }
.cta-glyph .selframe > i { border-color: #fff; background: rgba(255, 255, 255, 0.25); }
.cta-glyph .dim-label { right: -22px; top: calc(100% + 30px); background: rgba(19, 20, 23, 0.72); }
.cta-card {
  position: relative;
  padding: clamp(24px, 4vw, 44px);
  border-radius: var(--radius-lg);
  background: var(--bg-raised);
  color: var(--fg);
  box-shadow: 0 30px 60px -30px rgba(9, 58, 45, 0.8);
}
.cta-card::before {
  content: "";
  position: absolute;
  left: -9px;
  top: 50%;
  width: 20px;
  height: 20px;
  margin-top: -10px;
  border-radius: 3px;
  background: inherit;
  transform: rotate(45deg);
}
@media (max-width: 899px) { .cta-card::before { left: 50%; top: -9px; margin: 0 0 0 -10px; } }
.cta-card h2 { font-size: clamp(2rem, 1.5rem + 2.2vw, 3.25rem); }
.cta-card p { margin: 16px 0 26px; color: var(--fg-muted); font-size: 17px; }
.cta-card .platform-note { margin-top: 16px; }

/* ---- 9. Components ---------------------------------------------------------------------------- */

.card {
  padding: clamp(22px, 3vw, 32px);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.card h3 { margin-bottom: 10px; }
.card p { color: var(--fg-muted); }

.grid-2, .grid-3, .grid-4 { display: grid; gap: 20px; }
@media (min-width: 720px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.steps-list { display: grid; gap: 28px; list-style: none; counter-reset: s; }
@media (min-width: 900px) { .steps-list.row { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.steps-list li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 18px; align-items: start; }
.steps-list.row li { grid-template-columns: minmax(0, 1fr); gap: 16px; padding-top: 22px; border-top: 1px solid var(--line-strong); }
.steps-list h3 { font-size: 21px; margin-bottom: 8px; }
.steps-list p { color: var(--fg-muted); }

.check-list { display: grid; gap: 12px; list-style: none; }
.check-list li { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; }
.check-list svg { width: 22px; height: 22px; color: var(--accent-text); }
.check-list.not svg { color: var(--fg-subtle); }

.spec-table { width: 100%; border-collapse: collapse; font-size: 15.5px; }
.spec-table th, .spec-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.spec-table th { width: 32%; color: var(--fg-muted); font-weight: 500; }
.spec-table tr:first-child th, .spec-table tr:first-child td { border-top: 1px solid var(--line); }
.table-scroll { overflow-x: auto; }

.aside-note {
  padding: 16px 20px;
  border-left: 3px solid var(--annot);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--accent-soft);
  color: var(--fg);
  font-size: 15px;
}

.draft-banner {
  margin-bottom: 28px;
  padding: 12px 16px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  color: var(--fg-muted);
  font-size: 14.5px;
}

.link-list { display: grid; gap: 0; list-style: none; border-top: 1px solid var(--line); }
.link-list li { border-bottom: 1px solid var(--line); }
.link-list a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 2px;
  color: var(--fg);
  font-weight: 560;
  text-decoration: none;
}
.link-list a:hover { color: var(--accent-text); }
.link-list svg { width: 20px; height: 20px; flex: none; color: var(--fg-muted); }
.link-list .meta { color: var(--fg-muted); font-family: var(--font-mono); font-size: 13px; font-weight: 400; }

/* ---- 10. Pages ------------------------------------------------------------------------------- */

.page-hero { padding-top: clamp(56px, 8vw, 112px); padding-bottom: clamp(48px, 6vw, 88px); }
.page-hero h1 { max-width: 15em; }
.page-hero .lead { font-size: clamp(1.125rem, 1rem + 0.5vw, 1.375rem); }
.page-hero .btn-row { margin-top: 32px; }
.page-hero.center { text-align: center; }
.page-hero.center h1, .page-hero.center .lead { margin-inline: auto; }
.page-hero.center .eyebrow, .page-hero.center .btn-row { justify-content: center; }

/* Features: sticky in-page nav on wide screens, a scrolling chip row on narrow ones. */
.with-toc { display: grid; gap: 40px; }
.toc ul { list-style: none; }
.toc a { color: var(--fg-muted); text-decoration: none; font-size: 15px; font-weight: 520; }
.toc a:hover { color: var(--fg); }
.toc a[aria-current="true"] { color: var(--fg); }
@media (min-width: 1100px) {
  .with-toc { grid-template-columns: 210px minmax(0, 1fr); gap: 72px; }
  .toc { position: sticky; top: calc(var(--header-h) + 36px); align-self: start; }
  .toc p { margin: 0 0 12px; }
  .toc ul { border-left: 1px solid var(--line); }
  .toc a { position: relative; display: block; padding: 7px 0 7px 18px; }
  .toc a[aria-current="true"]::before {
    content: "";
    position: absolute;
    left: -4.5px;
    top: 50%;
    width: 8px;
    height: 8px;
    margin-top: -4px;
    border-radius: 50%;
    background: var(--annot);
  }
}
@media (max-width: 1099px) {
  .toc { position: sticky; top: var(--header-h); z-index: 20; margin-inline: calc(var(--gutter) * -1); padding: 10px var(--gutter); background: var(--header-bg); border-bottom: 1px solid var(--line); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  .toc p { display: none; }
  .toc ul { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; }
  .toc ul::-webkit-scrollbar { display: none; }
  .toc a { display: block; padding: 6px 12px; border-radius: var(--radius-pill); white-space: nowrap; font-size: 14px; }
  .toc a[aria-current="true"] { background: var(--accent-soft); color: var(--fg); }
}

.fgroup { padding-block: clamp(48px, 6vw, 80px); border-top: 1px solid var(--line); }
.fgroup:first-child { padding-top: 0; border-top: 0; }
.fgroup-head { display: flex; align-items: flex-start; gap: 18px; margin-bottom: 12px; }
.fgroup-head .ico { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 12px; background: var(--accent-soft); color: var(--accent-text); }
.fgroup-head .ico svg { width: 26px; height: 26px; }
.fgroup h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.fgroup > .lead { margin: 10px 0 32px; max-width: 40em; }
.fgroup-visual { margin: 36px 0 8px; }

.defs { display: grid; gap: 0 40px; margin: 0; }
@media (min-width: 760px) { .defs { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.defs > div { padding: 18px 0; border-top: 1px solid var(--line); }
.defs dt { font-weight: 620; margin-bottom: 4px; }
.defs dd { margin: 0; color: var(--fg-muted); font-size: 15.5px; }

/* Open format: file tree. */
.tree { font-family: var(--font-mono); }

/* Press. */
.swatches { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); list-style: none; }
.swatch { overflow: hidden; border: 1px solid var(--card-line); border-radius: var(--radius); background: var(--card); }
.swatch .chipc { height: 88px; }
.swatch div { padding: 12px 14px 14px; }
.swatch strong { display: block; font-size: 15px; }
.swatch code { background: none; padding: 0; color: var(--fg-muted); font-size: 13px; }

.logo-tiles { display: grid; gap: 16px; }
@media (min-width: 760px) { .logo-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.logo-tile { overflow: hidden; border: 1px solid var(--card-line); border-radius: var(--radius-lg); background: var(--card); }
.logo-tile .art { display: grid; place-items: center; height: 200px; padding: 32px; }
.logo-tile .art img { max-width: 100%; height: auto; }
.logo-tile .art.on-light { background: var(--ink-50); }
.logo-tile .art.on-dark { background: var(--ink-900); }
.logo-tile .art.on-gradient { background: var(--tile-gradient); }
.logo-tile .art.mascot { height: 240px; padding: 24px; }
@media (min-width: 760px) { .logo-tiles.three { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.logo-tile .meta { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 16px; padding: 14px 18px; border-top: 1px solid var(--card-line); font-size: 15px; }
.logo-tile .meta span { color: var(--fg-muted); font-size: 14px; }

.boiler { position: relative; }
.boiler blockquote {
  margin: 0;
  padding: 22px 24px;
  border: 1px solid var(--card-line);
  border-radius: var(--radius);
  background: var(--card);
  font-size: 17px;
  line-height: 1.6;
}
.boiler .boiler-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 10px; }
.boiler .boiler-head h3 { font-family: var(--font-text); font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--fg-muted); }
.copy-btn[hidden] { display: none; }

.dos { display: grid; gap: 20px; }
@media (min-width: 760px) { .dos { grid-template-columns: 1fr 1fr; } }

/* 404. */
.nf { min-height: calc(100vh - var(--header-h) - 120px); display: grid; align-content: center; padding-block: 72px; }
/* The Inspector on his disc, in a dashed selection frame on a dotted canvas, beside the copy. */
.nf-grid { display: grid; gap: 44px; justify-items: center; text-align: center; max-width: 1000px; }
.nf-inspector { position: relative; width: clamp(180px, 32vw, 272px); padding: clamp(14px, 2vw, 20px); background-image: radial-gradient(var(--dot) 1.1px, transparent 1.4px); background-size: 18px 18px; }
.nf-inspector img { display: block; width: 100%; height: auto; }
.nf-inspector .selframe { inset: 0; border-style: dashed; }
.nf-copy .eyebrow { justify-content: center; }
@media (min-width: 820px) {
  .nf-grid { grid-template-columns: auto minmax(0, 1fr); gap: clamp(56px, 6vw, 88px); align-items: center; justify-items: start; text-align: left; }
  .nf-copy .eyebrow { justify-content: flex-start; }
}

/* Beta sign-up form (pricing.html, download.html). Posts to /api/signup; site.js sends it in place. */
.signup {
  padding: clamp(24px, 3vw, 36px);
  border: 1px solid var(--card-line);
  border-radius: var(--radius-lg);
  background: var(--card);
}
.signup h3 { font-size: 24px; }
.signup > p { margin-top: 8px; color: var(--fg-muted); font-size: 15px; }
.field { display: grid; gap: 6px; margin-top: 20px; }
.field label { font-size: 15px; font-weight: 600; }
.field .hint { margin-left: 6px; color: var(--fg-muted); font-weight: 400; }
.field input,
.field textarea {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius-sm);
  background: var(--bg);
  color: var(--fg);
  font: inherit;
  font-size: 16px;
}
.field textarea { min-height: 92px; resize: vertical; line-height: 1.5; }
.field input:focus-visible,
.field textarea:focus-visible { outline: none; border-color: var(--accent); box-shadow: var(--focus-ring); }
.check { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 12px; align-items: start; margin-top: 20px; font-size: 15.5px; cursor: pointer; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--accent); }
.check input:focus-visible { outline: none; box-shadow: var(--focus-ring); }
.signup .btn { margin-top: 24px; }
.signup .fine { margin-top: 16px; color: var(--fg-muted); font-size: 14px; }
/* The honeypot: out of sight and out of the tab order; people never fill it, bots do. */
.hp { position: absolute !important; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.form-status { margin-top: 20px; padding: 14px 18px; border-left: 3px solid var(--annot); border-radius: 0 var(--radius-sm) var(--radius-sm) 0; background: var(--accent-soft); color: var(--fg); font-size: 15.5px; }
.form-status[data-state="error"] { border-left-color: var(--red); background: var(--chip-bg); }
.form-status strong { display: block; margin-bottom: 2px; }
.form-status:focus { outline: none; }

/* The SmartScreen walk-through on the download page. */
.smartscreen { display: grid; gap: 24px; }
@media (min-width: 900px) { .smartscreen { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; } }
.smartscreen ol { margin: 0; }

/* signup-problem.html: the reason the form was refused is the #target. */
.reasons { display: grid; gap: 12px; list-style: none; }
.reasons li { padding: 14px 18px; border: 1px solid var(--card-line); border-radius: var(--radius); background: var(--card); scroll-margin-top: calc(var(--header-h) + 24px); }
.reasons li:target { border-color: var(--annot); box-shadow: 0 0 0 1px var(--annot); }
.reasons strong { display: block; margin-bottom: 2px; }
.reasons p { color: var(--fg-muted); font-size: 15px; }

/* ---- 11. Footer ------------------------------------------------------------------------------ */

.site-footer { padding: clamp(56px, 7vw, 88px) 0 32px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; gap: 40px 32px; }
@media (min-width: 600px) { .footer-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .footer-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } .footer-brand { grid-column: auto; } }
.footer-brand img { height: 28px; width: auto; }
.footer-brand p { margin: 18px 0 0; max-width: 24em; color: var(--fg-muted); font-size: 15px; }
.footer-brand .made { margin-top: 10px; color: var(--fg); font-weight: 560; }
.footer-col h2 { margin-bottom: 14px; font-family: var(--font-mono); font-size: 12.5px; font-weight: 500; letter-spacing: var(--track-caps); text-transform: uppercase; color: var(--fg-muted); }
.footer-col ul { display: grid; gap: 10px; list-style: none; }
.footer-col a { color: var(--fg); font-size: 15px; text-decoration: none; }
.footer-col a:hover { color: var(--accent-text); text-decoration: underline; }
.footer-legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--fg-muted); font-size: 13.5px; }
.footer-legal p { margin: 0; }

/* ---- 12. Utilities ----------------------------------------------------------------------------- */

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.muted { color: var(--fg-muted); }
.small { font-size: 14px; }
.mono { font-family: var(--font-mono); }
.nowrap { white-space: nowrap; }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.mt-s { margin-top: 16px; }
.mt-m { margin-top: 32px; }
.mt-l { margin-top: clamp(48px, 6vw, 80px); }
.mb-m { margin-bottom: 32px; }

/* Review aid: open any page with ?todo to outline every placeholder. */
html.show-todo [data-todo] { outline: 2px dashed var(--amber) !important; outline-offset: 2px; }
html.show-todo [data-todo]:not(meta, link)::after {
  content: "TODO: " attr(data-todo);
  display: inline-block;
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 4px;
  background: var(--amber);
  color: #231400;
  font: 500 11px/1.4 var(--font-mono);
  letter-spacing: 0;
  text-transform: none;
  vertical-align: middle;
}

/* ---- 13. Reduced motion ----------------------------------------------------------------------- */

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}
@media (prefers-reduced-motion: no-preference) {
  html { scroll-behavior: smooth; }
}

/* ---- Annotation placement, tuned to the screenshots -------------------------------------- */
.pin { --t: translate(-50%, -50%); }
.hero-title .stop { color: var(--annot); }

/* SVG annotations drawn in the screenshot's own coordinates (viewBox = image aspect). */
.annot-svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.annot-svg path { fill: none; stroke: var(--annot-arrow); stroke-width: 3.5; stroke-linecap: round; stroke-linejoin: round; vector-effect: non-scaling-stroke; }
.annot-svg .halo { stroke: #fff; stroke-width: 8; opacity: 0.92; }

.hero-callout { left: 81.6%; top: 70%; max-width: 16.5%; font-size: clamp(12px, 0.35vw + 8.6px, 14px); }
@media (max-width: 999px) {
  .hero-arrow, .hero-callout { display: none; }
}
@media (max-width: 599px) {
  .hero-shot .step-badge.ring { width: 22px; height: 22px; font-size: 12px; box-shadow: 0 0 0 2px #fff; }
}
.nobr { display: inline-block; }
.proof-sec { padding-bottom: 0; }
.zoom-callout { left: 21%; top: 95.5%; }
@media (max-width: 599px) { .zoom-arrow, .zoom-callout { display: none; } }
.record-shot, .video-shot { margin-bottom: 44px; }
@media (max-width: 599px) { .record-shot, .video-shot { margin-bottom: 0; } }

/* ---- Page extras -------------------------------------------------------------------------- */
.keys-row { display: flex; flex-wrap: wrap; gap: 12px 28px; margin-top: 28px; color: var(--fg-muted); font-size: 14.5px; }
.keys-row span { display: inline-flex; align-items: center; gap: 4px; }
.keys-row span kbd:last-of-type { margin-right: 6px; }

.cta-inline { display: grid; gap: 24px; align-items: center; padding: clamp(28px, 4vw, 48px); }
@media (min-width: 900px) { .cta-inline { grid-template-columns: minmax(0, 1fr) auto; } }
.cta-inline h2 { font-size: clamp(1.75rem, 1.4rem + 1.4vw, 2.5rem); }
.cta-inline p { margin: 10px 0 0; font-size: 17px; }

.defs.one { grid-template-columns: minmax(0, 1fr); }
.defs dt code, .defs dt { overflow-wrap: anywhere; }

.proof-grid.two, .proof-grid.three { grid-template-columns: minmax(0, 1fr); }
.proof-grid.two > div, .proof-grid.three > div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
.proof-grid.two > div:first-child, .proof-grid.three > div:first-child { border-top: 0; }
@media (min-width: 760px) {
  .proof-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .proof-grid.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .proof-grid.two > div, .proof-grid.three > div { border-top: 0; padding: 36px 28px 38px; border-left: 1px solid var(--line); }
  .proof-grid.two > div:first-child, .proof-grid.three > div:first-child { padding-left: 0; border-left: 0; }
}
.proof-grid dd.date { font-size: clamp(2.25rem, 1.6rem + 2.6vw, 3.75rem); }
.proof-grid.modes dd { font-size: clamp(1.875rem, 1.3rem + 1.9vw, 3rem); }
.proof-note kbd { font-size: 12px; }

.price .amount-text { font-size: clamp(2.25rem, 1.9rem + 1.2vw, 2.75rem); }

.download-hero .download-mark { display: block; width: 88px; height: 88px; margin: 0 auto 28px; filter: drop-shadow(0 18px 30px rgba(9, 58, 45, 0.35)); }
.download-hero .btn-row { margin-top: 32px; }
.release-meta { margin-top: 16px; color: var(--fg-muted); font-size: 13px; }
.table-title { font-family: var(--font-text); font-size: 15px; font-weight: 600; letter-spacing: 0; margin-bottom: 12px; color: var(--fg-muted); }
.keys-table th { width: auto; }
.keys-table td { text-align: right; white-space: nowrap; }
.checksum { margin-top: 12px; padding: 14px 18px; font-size: 13px; }
.mac-note { align-self: center; }
/* The Inspector keeps an eye out for the Mac version. */
.mac-note { display: grid; grid-template-columns: 96px minmax(0, 1fr); column-gap: 24px; align-items: center; }
.mac-note .mac-inspector { grid-row: span 2; width: 96px; height: 96px; }
.mac-note h3 { align-self: end; }
.mac-note p { align-self: start; }
@media (max-width: 420px) { .mac-note { grid-template-columns: 72px minmax(0, 1fr); column-gap: 18px; } .mac-note .mac-inspector { width: 72px; height: 72px; } }

.format-card .chip { margin: 0 0 18px; }
.format-card h3 { margin-bottom: 8px; }

.h-code { padding: 0 0.12em; border-radius: 8px; background: var(--chip-bg); font-size: 0.86em; font-weight: 500; letter-spacing: -0.02em; }

.steps-hero { align-items: end; }
.steps-stage, .video-stage { margin-bottom: 0; }
.steps-shot { max-width: 1100px; margin-inline: auto; }
.recorder-stage, .steps-bar-stage { padding-block: clamp(40px, 6vw, 80px); }
.recorder-stage .shot, .steps-bar-stage .shot { max-width: 100%; }
.recorder-stage .shot img, .steps-bar-stage .shot img { width: auto; max-width: 100%; margin-inline: auto; }
.steps-bar-stage .fig-caption { margin-top: 20px; }

.privacy { padding-bottom: 24px; }
.privacy section + section { margin-top: 64px; padding-top: 8px; border-top: 1px solid var(--line); }
.privacy h2 { margin-top: 48px; }
.privacy h3 { font-family: var(--font-text); font-size: 18px; font-weight: 650; letter-spacing: 0; }

.shots-list a { font-weight: 500; }
.shots-list a span:first-child { min-width: 0; }

.nf-lead { margin-inline: auto; }
.nf-actions { justify-content: center; margin-top: 32px; }
.nf h1 { font-size: var(--step-h1); }
@media (min-width: 820px) {
  .nf-lead { margin-inline: 0; }
  .nf-actions { justify-content: flex-start; }
}

.fgroups { min-width: 0; }
.yours-code { min-width: 0; }
.shot.toolbar { display: flex; justify-content: center; width: 100%; }
.shot.toolbar img { width: 100%; height: auto; border-radius: 12px; box-shadow: var(--shadow-lg), 0 0 0 1px rgba(255, 255, 255, 0.06); }
.split > *, .with-toc > *, .grid-2 > *, .grid-3 > *, .grid-4 > * { min-width: 0; }
.with-toc { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 1100px) { .with-toc { grid-template-columns: 210px minmax(0, 1fr); } }
@media (max-width: 480px) { .keys-table td { white-space: normal; } .keys-table th { padding-right: 10px; } }
.steps-list li { align-content: start; }
.proof-grid .unit.word, .stats .unit.word { margin-left: 0.4em; font-size: 0.26em; }
.lead kbd { font-size: 0.7em; vertical-align: 0.12em; }
@media (min-width: 1100px) { .steps-hero { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.plan .price { min-height: clamp(2.75rem, 2.2rem + 1.8vw, 3.75rem); align-items: flex-end; }
.page-hero.center .lead { text-wrap: balance; }
.hero { padding-top: clamp(40px, 6vw, 88px); }
.hero-head { margin-bottom: clamp(36px, 4.5vw, 60px); }
.defs-with-rail { display: grid; gap: 40px; }
.rail-fig { display: none; }
@media (min-width: 900px) {
  .defs-with-rail { grid-template-columns: minmax(0, 1fr) 80px; gap: 48px; }
  .rail-fig { display: block; padding-top: 4px; }
}
.texttb-stage, .menu-stage { padding-block: clamp(32px, 5vw, 64px); }
.stage.center .fig-caption { text-align: center; }
.stats { gap: 20px 32px; }
.proof-grid .unit.word, .stats .unit.word { font-size: clamp(12px, 0.26em, 20px); }
@media (max-width: 479px) {
  .hero-copy .btn-row .btn, .page-hero .btn-row .btn, .cta-card .btn-row .btn { flex: 1 1 100%; }
}
/* A tall document shown as a page that carries on below the fold. */
.shot.doc { overflow: hidden; background: #fff; }
.shot.doc > img { height: auto; -webkit-mask-image: linear-gradient(#000 72%, transparent 99%); mask-image: linear-gradient(#000 72%, transparent 99%); }
.annot-img { bottom: auto; aspect-ratio: 1200 / 1400; }
.step-callout { left: 27.5%; top: 37%; }
.steps-shot { max-width: 960px; margin-inline: auto; }
@media (max-width: 599px) { .step-arrow, .step-callout { display: none; } }
.draft-banner .tag-marker { margin-right: 10px; }
.privacy section > h2:first-child { margin-top: 0; }
.menu-btn .i-close, .site-header.is-open .menu-btn .i-menu { display: none; }
.site-header.is-open .menu-btn .i-close { display: block; }
@media (max-width: 479px) { .code { font-size: 12.5px; padding: 18px; } }
.code:focus-visible { outline-offset: 2px; }
.redact-panel { border: 1px solid rgba(255, 255, 255, 0.07); }
