/* ============================================================================
   BLURT — "Warm paper editorial" design system
   Aesthetic: warm cream paper + dark product "stage" insets, with milled
   product objects (Option key, waveform pill, app windows) drawn in pure CSS.
   Shared by index.html, privacy.html, terms.html. No build step.
   Recreated from design_handoff_blurt (high-fidelity).
   ========================================================================== */

/* ----------------------------------------------------------------- tokens -- */
:root {
  /* Surfaces */
  --paper:      #F3ECE0;   /* warm cream page */
  --paper-2:    #ECE3D4;   /* deeper cream — alt sections */
  --paper-3:    #E4D9C6;   /* card hairlines / fills */
  --stage:      #121417;   /* dark stage for product objects */
  --stage-2:    #1A1E22;   /* raised dark panel */
  --stage-3:    #23282E;   /* dark control */

  /* Ink */
  --ink:        #16120C;   /* headings */
  --ink-2:      #3B342A;   /* body on paper */
  --ink-3:      #6F6657;   /* muted on paper */
  --ink-4:      #9A8F7C;   /* faint / mono labels */
  --paper-ink:  #F3ECE0;   /* text on dark stage */
  --paper-ink-2:#B9B4AB;   /* muted text on dark */
  --paper-ink-3:#7C7972;   /* faint text on dark */

  /* Accents */
  --coral:      #E45D3A;   /* warm secondary accent */
  --teal:       #0AA593;   /* readable teal on paper */
  --teal-deep:  #0B7D70;
  --teal-bright:#37E3D2;   /* neon CTA fill */
  --teal-glow:  rgba(55,227,210,.55);

  /* Type */
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --sans:  "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono:  "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  /* Geometry */
  --r-xs: 8px;
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 36px;
  --pad: clamp(20px, 5vw, 96px);
  --maxw: 1280px;

  /* Shadow */
  --sh-soft: 0 1px 2px rgba(40,30,15,.05), 0 8px 24px rgba(40,30,15,.06);
  --sh-card: 0 2px 4px rgba(40,30,15,.04), 0 18px 44px rgba(40,30,15,.10);
  --sh-stage: 0 30px 80px -20px rgba(0,0,0,.55), 0 8px 24px rgba(0,0,0,.3);
  --sh-obj: 0 24px 50px -12px rgba(0,0,0,.6), inset 0 1px 0 rgba(255,255,255,.06);

  /* legacy aliases (kept so any leftover inline tokens never break) */
  --font-sans: var(--sans);
  --font-serif: var(--serif);
  --font-mono: var(--mono);
  --text: var(--ink);
  --text-mute: var(--ink-3);
}

/* ------------------------------------------------------------------ reset -- */
*, *::before, *::after { box-sizing: border-box; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink-2);
  font-family: var(--sans);
  font-size: 18px;
  line-height: 1.6;
  overflow-x: hidden;
}
::selection { background: var(--coral); color: #fff; }

h1, h2, h3 { margin: 0; color: var(--ink); font-weight: 600; letter-spacing: -0.01em; }
p { margin: 0; text-wrap: pretty; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
img, svg { display: block; }
input { font-family: inherit; }
[id] { scroll-margin-top: 96px; }

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

/* the old steel theme had a cursor key-light overlay; the legal pages may still
   carry an empty <div class="keylight"> — neutralise it under the new design */
.keylight { display: none; }

/* skip link */
.skip-link {
  position: absolute; left: 12px; top: -56px; z-index: 100;
  background: var(--stage); color: var(--paper-ink);
  padding: 10px 16px; border-radius: var(--r-xs);
  font-family: var(--mono); font-size: 13px;
  transition: top .2s ease;
}
.skip-link:focus { top: 12px; }

.sr-only {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* paper grain texture */
body::before {
  content: "";
  position: fixed; inset: 0;
  pointer-events: none; z-index: 1;
  opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)' opacity='.035'/%3E%3C/svg%3E");
  mix-blend-mode: multiply;
}

/* ---------------------------------------------------------- layout helpers -- */
.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--pad); }
.section { position: relative; z-index: 2; padding-block: clamp(72px, 11vw, 168px); }
.section--paper-2 { background: var(--paper-2); }
.section--stage { background: var(--stage); color: var(--paper-ink); overflow: hidden; }

/* eyebrow / section marker */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: .22em;
  text-transform: uppercase;
  color: var(--ink-4);
  display: inline-flex; align-items: center; gap: 14px;
  white-space: nowrap;
}
.eyebrow .num { color: var(--coral); font-weight: 600; }
.eyebrow::before { content: ""; width: 28px; height: 1px; background: var(--ink-4); opacity: .6; }
.eyebrow.on-dark { color: var(--paper-ink-3); }
.eyebrow.on-dark::before { background: var(--paper-ink-3); }

/* display heading */
.display, .h2 {
  font-family: var(--serif);
  font-weight: 600;
  line-height: .98;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.h2 { font-size: clamp(34px, 5vw, 64px); line-height: 1.04; }
.display em, .h2 em { font-style: italic; font-weight: 500; }
.ink-coral { color: var(--coral); }
.ink-teal  { color: var(--teal); }

.lede { max-width: 56ch; font-size: 19px; color: var(--ink-2); }

/* underline marker drawn behind a word */
.mark { position: relative; white-space: nowrap; }
.mark::after {
  content: ""; position: absolute; left: -2px; right: -2px; bottom: .06em; height: .34em;
  background: var(--coral); opacity: .26; z-index: -1; border-radius: 2px;
  transform: skewX(-12deg);
}

/* serif accent (legal-page titles: Privacy *Policy*; emphasis words) */
.serif { font-family: var(--serif); font-style: italic; font-weight: 500; color: var(--coral); letter-spacing: -0.01em; }

.mono { font-family: var(--mono); }
.spec { font-family: var(--mono); font-size: 13px; color: var(--ink-4); display: block; }

/* --------------------------------------------------------------- buttons --- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  font-weight: 600; font-size: 16px;
  padding: 15px 26px; border-radius: 999px;
  transition: transform .18s ease, box-shadow .25s ease, background .2s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn .ico { width: 17px; height: 17px; }
.btn-sm { padding: 11px 22px; font-size: 15px; }

.btn-primary {
  background: linear-gradient(180deg, var(--teal-bright), #16C6B5);
  color: #06302C;
  box-shadow: 0 0 0 1px rgba(11,125,112,.25), 0 12px 30px -8px var(--teal-glow), inset 0 1px 0 rgba(255,255,255,.6);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 0 1px rgba(11,125,112,.3), 0 18px 40px -8px var(--teal-glow), inset 0 1px 0 rgba(255,255,255,.7);
}
.btn-ghost {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 1.5px rgba(22,18,12,.18);
}
.btn-ghost:hover { box-shadow: inset 0 0 0 1.5px rgba(22,18,12,.4); transform: translateY(-2px); }
.btn-ondark { background: var(--stage-3); color: var(--paper-ink); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); }
.btn .arrow, .btn .ico-arrow { transition: transform .2s ease; }
.btn:hover .arrow, .btn:hover .ico-arrow { transform: translateX(4px); }

/* ----------------------------------------------------- reveal animation ---- */
/* Progressive enhancement: content is fully visible by default. JS adds
   `reveals-armed` to <html> only once it's running, which arms the hidden
   start-state; `.in` is then added when the element scrolls into view. If JS
   fails, content is never left hidden. Reduced-motion shows everything too. */
.reveals-armed .reveal {
  opacity: 0; transform: translateY(26px);
  transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1);
  will-change: opacity, transform;
}
.reveals-armed .reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; }
.reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; }
.reveal.d4 { transition-delay: .32s; }

/* ============================================================
   PRODUCT OBJECTS (dark) — shared
   ============================================================ */
.obj-key {
  width: 118px; height: 118px; border-radius: 24px;
  background: linear-gradient(160deg, #2A2F35, #15181C 70%);
  box-shadow: var(--sh-obj), 0 0 0 1px rgba(255,255,255,.04);
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; color: var(--paper-ink-2); position: relative;
  transition: transform .15s ease, box-shadow .15s ease;
}
.obj-key .glyph { font-size: 30px; color: var(--paper-ink); line-height: 1; }
.obj-key .lbl { font-family: var(--mono); font-size: 10px; letter-spacing: .18em; color: var(--paper-ink-3); }
.obj-key.pressed {
  transform: translateY(4px) scale(.97);
  box-shadow: 0 6px 14px -6px rgba(0,0,0,.6), inset 0 2px 6px rgba(0,0,0,.5), 0 0 0 1px var(--teal);
}
.obj-key.pressed .glyph { color: var(--teal-bright); }

.obj-pill {
  height: 84px; border-radius: 999px; min-width: 200px;
  background: linear-gradient(180deg, #1C2025, #0E1114);
  box-shadow: var(--sh-obj);
  display: flex; align-items: center; justify-content: center; gap: 5px;
  padding-inline: 30px;
}

/* waveform — CSS-animated bars (no JS needed for idle motion) */
.wave { display: flex; align-items: center; gap: 5px; height: 30px; }
.wave .wbar {
  width: 5px; border-radius: 3px; background: var(--paper-ink-3);
  height: 30px; transform: scaleY(.22); transform-origin: center;
}
.wave.active .wbar {
  background: var(--teal-bright); box-shadow: 0 0 8px var(--teal-glow);
  animation: wave 900ms ease-in-out infinite;
}
.wave .wbar:nth-child(1){ animation-delay: 0ms }
.wave .wbar:nth-child(2){ animation-delay: 90ms }
.wave .wbar:nth-child(3){ animation-delay: 180ms }
.wave .wbar:nth-child(4){ animation-delay: 270ms }
.wave .wbar:nth-child(5){ animation-delay: 360ms }
.wave .wbar:nth-child(6){ animation-delay: 450ms }
.wave .wbar:nth-child(7){ animation-delay: 540ms }
.wave .wbar:nth-child(8){ animation-delay: 630ms }
.wave .wbar:nth-child(9){ animation-delay: 720ms }
.wave .wbar:nth-child(10){ animation-delay: 810ms }
.wave .wbar:nth-child(11){ animation-delay: 900ms }
.wave.sm { height: 18px; gap: 3px; }
.wave.sm .wbar { width: 3px; height: 18px; }

/* app window */
.appwin {
  background: linear-gradient(180deg, #1B1F24, #121519);
  border-radius: 16px; overflow: hidden;
  box-shadow: var(--sh-obj); width: 100%;
}
.appwin .titlebar {
  height: 40px; display: flex; align-items: center; padding-inline: 14px; gap: 8px;
  border-bottom: 1px solid rgba(255,255,255,.06);
}
.appwin .dots { display: flex; gap: 7px; }
.appwin .dots i { width: 11px; height: 11px; border-radius: 50%; display: block; }
.appwin .title { flex: 1; text-align: center; font-family: var(--mono); font-size: 12px; color: var(--paper-ink-3); margin-right: 36px; }
.appwin .body { padding: 18px 20px; min-height: 96px; font-size: 16px; color: var(--paper-ink); line-height: 1.5; }
.appwin .txt-line { height: 6px; background: rgba(255,255,255,.12); border-radius: 4px; }

/* ----------------------------------------------------------------- nav ----- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 50;
  transition: background .3s, box-shadow .3s, padding .3s;
  padding: 18px 0;
}
.nav.stuck {
  background: rgba(243,236,224,.82);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  box-shadow: 0 1px 0 rgba(22,18,12,.08);
  padding: 12px 0;
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.brand { display: inline-flex; align-items: center; gap: 12px; font-family: var(--serif); font-weight: 600; font-size: 24px; color: var(--ink); }
.brand .mark-pill {
  width: 46px; height: 24px; border-radius: 999px;
  background: linear-gradient(180deg,#23282E,#121417); box-shadow: var(--sh-obj);
  display: flex; align-items: center; justify-content: center; gap: 3px; flex: none;
}
.brand .mark-pill i { width: 3px; height: 9px; border-radius: 3px; background: var(--teal-bright); display: block; }
.brand .mark-pill i:nth-child(1){ height: 5px } .brand .mark-pill i:nth-child(3){ height: 13px } .brand .mark-pill i:nth-child(4){ height: 7px }

.nav-links { display: flex; gap: 34px; font-family: var(--mono); font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.nav-links a { transition: color .2s; }
.nav-links a:hover { color: var(--coral); }
.nav-cta { display: flex; align-items: center; gap: 12px; }

/* burger (mobile) */
.nav-burger {
  display: none; width: 42px; height: 42px; border-radius: 12px;
  align-items: center; justify-content: center;
  box-shadow: inset 0 0 0 1.5px rgba(22,18,12,.18);
}
.nav-burger span { position: relative; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: background .2s; }
.nav-burger span::before, .nav-burger span::after { content: ""; position: absolute; left: 0; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s, top .25s; }
.nav-burger span::before { top: -6px; } .nav-burger span::after { top: 6px; }
.nav.menu-open .nav-burger span { background: transparent; }
.nav.menu-open .nav-burger span::before { top: 0; transform: rotate(45deg); }
.nav.menu-open .nav-burger span::after { top: 0; transform: rotate(-45deg); }

.nav-mobile {
  display: none; position: absolute; left: var(--pad); right: var(--pad); top: calc(100% + 8px);
  background: rgba(243,236,224,.96); backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  border-radius: var(--r-md); box-shadow: var(--sh-card);
  padding: 14px; flex-direction: column; gap: 4px;
}
.nav.menu-open .nav-mobile { display: flex; }
.nav-mobile a { padding: 14px 16px; border-radius: var(--r-xs); font-family: var(--mono); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.nav-mobile a:hover { background: rgba(22,18,12,.05); color: var(--coral); }
.nav-mobile a.btn-primary { color: #06302C; }

/* ---------------------------------------------------------------- cards ---- */
.card {
  background: linear-gradient(180deg, rgba(255,255,255,.5), rgba(255,255,255,.16));
  border-radius: var(--r-lg); padding: 34px;
  box-shadow: var(--sh-card); position: relative; overflow: hidden;
  transition: transform .3s ease, box-shadow .3s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: 0 4px 8px rgba(40,30,15,.05), 0 28px 60px rgba(40,30,15,.14); }
.card .card-ic {
  width: 44px; height: 44px; border-radius: 12px; display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); box-shadow: inset 0 0 0 1px rgba(22,18,12,.1); color: var(--ink); margin-bottom: 22px;
}
.card .card-ic svg { width: 22px; height: 22px; }
.card .kicker { font-family: var(--mono); font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--coral); }
.card h3 { font-size: 22px; margin: 10px 0 12px; }
.card p { color: var(--ink-3); font-size: 16px; }

.stage-card { background: var(--stage); color: var(--paper-ink); box-shadow: var(--sh-stage); }
.stage-card h3, .stage-card .display { color: var(--paper-ink); }
.stage-card p { color: var(--paper-ink-2); }
.stage-card .card-ic { background: var(--stage-3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.08); color: var(--paper-ink); }

/* chips */
.chips { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 26px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 9px 16px; border-radius: 999px;
  font-family: var(--mono); font-size: 13px; color: var(--ink-2); white-space: nowrap;
  background: rgba(255,255,255,.4); box-shadow: inset 0 0 0 1px rgba(22,18,12,.12);
}
.chip svg { width: 15px; height: 15px; opacity: .7; }
.chip-solid { font-family: var(--sans); font-weight: 600; font-size: 14px; }

.kbd { font-family: var(--mono); font-size: .85em; padding: 2px 8px; border-radius: 6px;
  background: rgba(255,255,255,.5); box-shadow: inset 0 0 0 1px rgba(22,18,12,.2); color: var(--ink); white-space: nowrap; }

/* ============================================================
   HERO (split)
   ============================================================ */
.hero { padding-top: clamp(130px, 16vw, 210px); }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: clamp(40px,6vw,90px); align-items: center; }
.hero-copy .hero-h1 { font-size: clamp(52px, 6.4vw, 98px); line-height: 1.06; padding-bottom: .22em; margin-top: 26px; }
.hero-sub { margin: 30px 0 0; max-width: 46ch; color: var(--ink-2); font-size: 19px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 38px; }
.hero-meta { font-family: var(--mono); font-size: 13px; color: var(--ink-4); margin-top: 24px; }
.hero-stage { position: relative; }
.hero-demo-wrap { position: relative; padding-top: 56px; }
/* -34px overhang on desktop, but never let the key cross the viewport edge
   on narrow screens (keeps an 8px margin inside the wrap padding). */
.hero-optionkey { position: absolute; top: -18px; left: max(-34px, calc(8px - var(--pad))); z-index: 3; }
.hero-optionkey .obj-key { width: 104px; height: 104px; }

/* live demo */
.livedemo { display: grid; gap: 26px; }
.livedemo .demo-text { min-height: 58px; font-size: 19px; }
.livedemo .demo-raw { font-family: var(--mono); color: var(--paper-ink-3); font-size: 14px; }
.livedemo .demo-raw .w { color: var(--paper-ink-2); transition: all .3s; }
.livedemo.is-cleaning .demo-raw .w.fill { color: var(--paper-ink-3); text-decoration: line-through; opacity: .5; }
.livedemo .demo-clean { color: var(--paper-ink); }
.livedemo .cleaning-note { margin-top: 10px; display: none; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; color: var(--teal-bright); }
.livedemo.is-cleaning .cleaning-note { display: flex; }
.demo-pill-row { display: flex; justify-content: center; }
.demo-pill { min-width: 220px; width: 220px; transition: width .4s cubic-bezier(.2,.8,.2,1), box-shadow .4s ease; }
.livedemo.is-listening .demo-pill { width: 300px; box-shadow: var(--sh-obj), 0 0 0 1px var(--teal), 0 0 40px -10px var(--teal-glow); }
.demo-pill .pill-label { font-family: var(--mono); font-size: 12px; color: var(--paper-ink-3); display: flex; gap: 8px; align-items: center; }
.demo-pill .pill-wave { display: none; }
.livedemo.is-listening .demo-pill .pill-wave { display: flex; }
.livedemo.is-listening .demo-pill .pill-label { display: none; }
.optkey-mini {
  display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px;
  border-radius: 6px; background: var(--stage-3); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1);
  font-size: 12px; color: var(--paper-ink);
}

/* blinking caret + spinner */
.caret { display: inline-block; width: 2px; height: 1em; background: var(--teal-bright); margin-left: 1px; vertical-align: -2px; animation: blink 1s steps(1) infinite; }
.spin { width: 12px; height: 12px; border-radius: 50%; border: 2px solid rgba(55,227,210,.25); border-top-color: var(--teal-bright); display: inline-block; animation: spin .7s linear infinite; }

/* ============================================================
   STATS
   ============================================================ */
.stats-section { padding-top: 0; }
.stats-eyebrow { margin-bottom: 36px; }
.stats-grid { padding: 0; display: grid; grid-template-columns: repeat(4,1fr); overflow: hidden; }
.stat { padding: 30px 28px; position: relative; }
.stat + .stat { border-left: 1px solid rgba(22,18,12,.1); }
.stat .stat-v { font-family: var(--serif); font-weight: 600; font-size: clamp(42px, 5vw, 64px); line-height: 1; color: var(--ink); letter-spacing: -.02em; }
.stat .stat-l { color: var(--ink-3); font-size: 15px; margin-top: 12px; }
.stat .stat-ic { position: absolute; top: 28px; right: 26px; color: var(--ink-4); }
.stat .stat-ic svg { width: 18px; height: 18px; }

/* ============================================================
   HOW IT WORKS
   ============================================================ */
.how-head h2 { font-size: clamp(38px,6vw,80px); margin: 22px 0 18px; }
.how-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 64px; }
.how-stage { min-height: 240px; display: flex; align-items: center; justify-content: center; padding: 30px; }
.how-meta { margin-top: 24px; }
.how-kicker { font-family: var(--mono); font-size: 12px; letter-spacing: .14em; color: var(--coral); }
.how-meta h3 { font-size: 24px; font-family: var(--serif); margin: 10px 0 10px; }
.how-meta p { color: var(--ink-3); font-size: 16px; }

/* ============================================================
   FEATURES
   ============================================================ */
.features-head h2 { font-size: clamp(38px,6vw,80px); margin: 22px 0 60px; }
.feat-row-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.feat-row-3 { display: grid; grid-template-columns: repeat(3,1fr); gap: 28px; margin-top: 28px; }
.feat-row-2 .card, .feat-row-3 .card { height: 100%; }

.cleanup-inset { margin-top: 24px; padding: 20px; background: var(--paper-2); border-radius: var(--r-md); box-shadow: inset 0 0 0 1px rgba(22,18,12,.08); }
.cleanup-line { font-family: var(--mono); font-size: 15px; line-height: 1.9; }
.cleanup-line .raw { color: var(--ink-3); }
.cleanup-line .raw .w { transition: all .4s; }
.cleanup-line.cleaned .raw .w.fill { text-decoration: line-through; color: var(--coral); opacity: .55; }
.cleanup-line .result { font-family: var(--sans); font-weight: 600; color: var(--ink); font-size: 17px; opacity: .35; transform: translateY(4px); transition: all .5s; }
.cleanup-line.cleaned .result { opacity: 1; transform: none; }

/* diagnostics demo (dark) */
.diag-card { margin-top: 28px; padding: 40px; }
.diag-card h3 { color: var(--paper-ink); }
.diag-card p { max-width: 70ch; margin-bottom: 26px; }
.diag { display: grid; gap: 14px; }
.diag-row { display: grid; align-items: center; gap: 16px; background: var(--stage-2); border-radius: var(--r-sm); padding: 16px 18px; }
.diag-row.raw { grid-template-columns: auto 1fr; box-shadow: inset 0 0 0 1px rgba(255,255,255,.05); cursor: text; }
.diag-row.clean { grid-template-columns: auto 1fr auto; box-shadow: inset 0 0 0 1px var(--teal), 0 0 30px -14px var(--teal-glow); }
.diag .tag { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; color: var(--paper-ink-3); }
.diag-row.clean .tag { color: var(--teal-bright); }
.diag-input { background: transparent; border: none; outline: none; color: var(--paper-ink-2); font-family: var(--mono); font-size: 15px; width: 100%; caret-color: var(--teal-bright); }
.diag .val { color: var(--paper-ink); font-weight: 600; font-size: 16px; }
.diag .copy-btn { padding: 8px 14px; font-size: 13px; display: inline-flex; align-items: center; gap: 6px; }
.diag .copy-btn svg { width: 14px; height: 14px; }

/* ============================================================
   PRIVACY
   ============================================================ */
.privacy .wrap { text-align: center; display: grid; justify-items: center; }
.privacy h2 { font-size: clamp(38px,6vw,78px); margin: 22px 0 22px; max-width: 16ch; }
.privacy .lede { max-width: 58ch; }
.privacy-flow-wrap { width: min(820px,100%); margin-top: 70px; }
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; align-items: start; position: relative; }
.flow-step { display: flex; flex-direction: column; align-items: center; gap: 14px; position: relative; padding: 0 8px; }
.flow-node {
  width: 60px; height: 60px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper-2); box-shadow: inset 0 0 0 1.5px rgba(22,18,12,.16), var(--sh-soft);
  position: relative; z-index: 2; opacity: 1; transform: scale(1);
}
.flow-node svg { width: 26px; height: 26px; color: var(--ink); }
.flow.in .flow-node { animation: pop .6s cubic-bezier(.2,1.4,.4,1) both; animation-delay: var(--d); }
.flow-line { position: absolute; top: 30px; left: 50%; width: 100%; height: 2px; background: var(--ink-4); opacity: .3; z-index: 0; transform-origin: left; transform: scaleX(1); }
.flow.in .flow-line { animation: grow .5s ease both; animation-delay: var(--d); }
.flow.in .flow-line::after {
  content: ""; position: absolute; top: -3px; left: 0; width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal); box-shadow: 0 0 12px var(--teal-glow);
  animation: travel 2.4s ease-in-out infinite; animation-delay: calc(var(--d) + .5s);
}
.flow-k { font-family: var(--mono); font-size: 11px; letter-spacing: .16em; color: var(--coral); }
.flow-t { color: var(--ink-2); font-size: 15px; margin-top: 3px; }
.privacy-chips { display: flex; gap: 12px; flex-wrap: wrap; justify-content: center; margin-top: 56px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-section h2 { font-size: clamp(40px,6vw,84px); margin: 22px 0 40px; }
.faq-item { border-bottom: 1px solid rgba(22,18,12,.12); }
/* native <details>/<summary>: works (and is readable) without JS; JS only adds
   single-open behaviour. */
.faq-q { display: flex; align-items: center; justify-content: space-between; gap: 20px; width: 100%; text-align: left;
  list-style: none; cursor: pointer;
  padding: 26px 4px; font-size: clamp(18px,2.2vw,22px); font-family: var(--serif); font-weight: 600; color: var(--ink); transition: color .2s; }
.faq-q::-webkit-details-marker { display: none; }
.faq-q:hover { color: var(--coral); }
.faq-q .pm { flex: none; width: 26px; height: 26px; position: relative; color: var(--ink-3); }
.faq-q .pm::before, .faq-q .pm::after { content: ""; position: absolute; background: currentColor; border-radius: 2px; transition: transform .3s, opacity .3s; }
.faq-q .pm::before { top: 12px; left: 4px; right: 4px; height: 2px; }
.faq-q .pm::after { left: 12px; top: 4px; bottom: 4px; width: 2px; }
.faq-item[open] .faq-q { color: var(--coral); }
.faq-item[open] .pm { color: var(--coral); }
.faq-item[open] .pm::after { transform: rotate(90deg); opacity: 0; }
.faq-a p { color: var(--ink-3); padding: 0 4px 28px; max-width: 70ch; font-size: 17px; }
.faq-item[open] .faq-a { animation: faqIn .4s ease both; }
@keyframes faqIn { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

/* ============================================================
   FINAL CTA
   ============================================================ */
.cta .wrap { text-align: center; display: grid; justify-items: center; }
.cta .cta-pill { width: 220px; margin-bottom: 30px; }
.cta h2 { color: var(--paper-ink); font-size: clamp(44px,7vw,92px); margin: 20px 0 34px; line-height: 1.04; }
.cta .lede { max-width: 44ch; color: var(--paper-ink-2); }
.cta .cta-btn-wrap { margin-top: 38px; }
.cta .spec { color: var(--paper-ink-3); margin-top: 24px; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--stage); color: var(--paper-ink-2); position: relative; z-index: 2; }
.footer a { transition: color .2s; }
.footer a:hover { color: var(--teal-bright); }
.footer-grid { padding-block: 64px; display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: start; }
.footer .brand { color: var(--paper-ink); }
.footer-tagline { font-family: var(--serif); font-style: italic; font-size: 19px; color: var(--paper-ink-2); margin-top: 18px; display: block; }
.footer-build { font-family: var(--mono); font-size: 12px; color: var(--paper-ink-3); margin-top: 18px; display: block; }
.footer-copy { font-family: var(--mono); font-size: 12px; color: var(--paper-ink-3); margin-top: 40px; display: block; }
.footer-links { display: flex; gap: 40px; justify-content: flex-end; font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; }

/* ============================================================
   LEGAL PAGES (privacy.html / terms.html)
   ============================================================ */
.page-head { padding-top: clamp(120px, 15vw, 170px); }
.back-link { font-family: var(--mono); font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); transition: color .2s; }
.back-link:hover { color: var(--coral); }
.prose { max-width: 72ch; }
.prose h2 { font-family: var(--serif); font-weight: 600; font-size: clamp(22px,3vw,28px); margin: 2.4rem 0 .7rem; color: var(--ink); letter-spacing: -.01em; }
.prose p { color: var(--ink-2); margin-bottom: 1rem; font-size: 17px; line-height: 1.7; }
.prose ul { color: var(--ink-2); margin: 0 0 1rem; padding-left: 1.3rem; }
.prose li { margin-bottom: .5rem; font-size: 17px; line-height: 1.7; }
.prose a { color: var(--teal-deep); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.prose a:hover { color: var(--coral); }
.prose code { font-family: var(--mono); font-size: .85em; background: rgba(22,18,12,.06); padding: 2px 6px; border-radius: 6px; color: var(--ink); }
.prose strong { color: var(--ink); }

/* ============================================================
   ANIMATIONS
   ============================================================ */
@keyframes wave { 0%, 100% { transform: scaleY(.22); } 50% { transform: scaleY(1); } }
@keyframes blink { 50% { opacity: 0; } }
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes pop { from { opacity: 0; transform: scale(.7); } to { opacity: 1; transform: scale(1); } }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes travel { 0% { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { left: 100%; opacity: 0; } }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 920px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .feat-row-2, .feat-row-3, .how-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .stats-grid .stat:nth-child(odd) { border-left: none; }
  .stats-grid .stat { border-top: 1px solid rgba(22,18,12,.1); }
  .stats-grid .stat:nth-child(1), .stats-grid .stat:nth-child(2) { border-top: none; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-links { justify-content: flex-start; }
}
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-cta .btn-primary { display: none; }
  .nav-burger { display: flex; }
  .flow { grid-template-columns: 1fr 1fr; gap: 30px 0; }
  .flow-line { display: none; }
}
@media (max-width: 540px) {
  .stats-grid { grid-template-columns: 1fr; }
  .stats-grid .stat { border-left: none; }
  .stats-grid .stat:nth-child(1) { border-top: none; }
  body { font-size: 17px; }
  .card { padding: 26px; }
  .diag-card { padding: 28px; }
}

/* ============================================================
   REDUCED MOTION — everything visible, no looping animation
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveals-armed .reveal { opacity: 1 !important; transform: none !important; transition: none; }
  .wave.active .wbar { animation: none; transform: scaleY(.7); }
  .caret { animation: none; }
  .spin { animation: none; }
  .flow.in .flow-node, .flow.in .flow-line { animation: none; }
  .flow.in .flow-line::after { animation: none; opacity: 1; left: 50%; }
  .faq-item[open] .faq-a { animation: none; }
  .btn:hover, .card:hover { transform: none; }
}
