/* ==========================================================================
   Indexed Brain — site stylesheet
   Ported from "Indexed Brain - Home.dc.html" (Design Composer v4).
   Shared across all pages; page-specific rules live at the bottom.
   ========================================================================== */

/* --- Design tokens ------------------------------------------------------ */
:root {
  /* Surfaces */
  --ink:            #241B12;  /* page dark                     */
  --ink-2:          #2B2018;  /* deep brown / text on cream    */
  --cream:          #F6EFE1;  /* primary cream                 */
  --cream-2:        #FBF6EA;  /* raised cream surface          */

  /* Lines */
  --line:           #E2D5B6;
  --line-2:         #D9C9A6;
  --line-3:         #EDE2C8;

  /* Muted ink (on cream).
     --ink-faint is the mockup's #8A7454 darkened ~9%: the original lands at
     3.9:1 on cream, just under WCAG AA for the 11–13px captions that use it. */
  --ink-muted:      #4A3B2C;
  --ink-faint:      #7E6A4C;

  /* Accents */
  --teal:           #34686B;
  --teal-band:      #2F6165;
  --teal-light:     #8FC0BD;
  --rose:           #D28A93;
  --rose-2:         #C0767E;
  --rose-deep:      #9C5761;  /* mockup #A85E68, darkened ~7% to clear AA on cream */
  --gold:           #C79A5E;
  --gold-2:         #B5824C;
  /* Darkened variant for small gold text on cream — the display weights
     (the big 01–04 numerals) keep the brighter --gold / --gold-2. */
  --gold-2-text:    #8B643B;

  /* Cream-on-dark text ramp.
     Nudged up from the mockup's 0.5/0.55 so small captions clear WCAG AA
     against --ink; the visual weight is effectively unchanged. */
  --on-dark:        rgba(246, 239, 225, 1);
  --on-dark-80:     rgba(246, 239, 225, 0.80);
  /* 0.80 is the floor that clears AA against the teal band (--teal-band),
     which is a lighter backdrop than --ink. */
  --on-dark-70:     rgba(246, 239, 225, 0.80);
  --on-dark-60:     rgba(246, 239, 225, 0.64);
  --hairline:       rgba(246, 239, 225, 0.16);
  --hairline-2:     rgba(246, 239, 225, 0.30);
  --wash:           rgba(246, 239, 225, 0.04);

  /* Type */
  --serif: 'Newsreader', Georgia, 'Times New Roman', serif;
  --mono:  'IBM Plex Mono', ui-monospace, SFMono-Regular, Menlo, monospace;

  /* Layout */
  --maxw: 1280px;
  --pad:  40px;
  --radius:    16px;
  --radius-sm: 12px;

  /* Motion. The built-in CSS easings are too weak to read as intentional;
     these are exponential curves that start fast, so interactions feel
     answered immediately. */
  --ease-out:    cubic-bezier(0.23, 1, 0.32, 1);
  --ease-in-out: cubic-bezier(0.77, 0, 0.175, 1);
  --t-press: 140ms;
  --t-hover: 180ms;
}

@media (max-width: 900px) { :root { --pad: 28px; } }
@media (max-width: 560px) { :root { --pad: 20px; } }

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

html {
  scroll-behavior: smooth;
  /* Sticky header must not cover the target of an in-page jump. */
  scroll-padding-top: 88px;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  background: var(--ink);
  color: var(--cream);
  font-family: var(--serif);
  font-synthesis-weight: none;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a {
  color: var(--teal-light);
  text-decoration-color: rgba(143, 192, 189, 0.4);
  text-underline-offset: 3px;
}
@media (hover: hover) and (pointer: fine) {
  a:hover { color: var(--rose); text-decoration-color: rgba(210, 138, 147, 0.5); }
}

::selection { background: var(--rose); color: var(--ink); }

h1, h2, h3 { font-weight: 500; letter-spacing: -0.02em; text-wrap: balance; }
p { text-wrap: pretty; }

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

/* Screen-reader-only utility */
.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap;
}

.skip-link {
  position: absolute; left: 50%; top: 0;
  transform: translate(-50%, -120%);
  z-index: 100;
  background: var(--cream); color: var(--ink);
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  padding: 12px 22px; border-radius: 0 0 10px 10px;
  text-decoration: none;
}
.skip-link:focus-visible { transform: translate(-50%, 0); color: var(--ink); }

/* --- Layout primitives -------------------------------------------------- */
.wrap { max-width: var(--maxw); margin-inline: auto; padding-inline: var(--pad); }

.section        { padding-block: clamp(72px, 10vw, 130px); }
.section--cream { background: var(--cream); color: var(--ink-2); }
.section--dots  {
  background-image: radial-gradient(rgba(246, 239, 225, 0.06) 1.5px, transparent 1.5px);
  background-size: 28px 28px;
}

/* Small caps label. Used only where it IS the heading (a card's own title),
   never as a kicker above a heading. */
.eyebrow {
  font-family: var(--mono);
  font-size: 13px; font-weight: 600;
  letter-spacing: 0.22em;
  margin: 0;
}
.eyebrow--deep { color: var(--rose-deep); }

.kicker {
  font-family: var(--mono);
  font-size: 12.5px;
  letter-spacing: 0.18em;
  margin: 0;
}

/* Rule with dots, used above the wedge + final CTA */
.rule { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }
.rule__line { width: clamp(40px, 8vw, 72px); border-top: 1.5px dashed var(--hairline-2); }
.rule__dot  { width: 9px; height: 9px; border-radius: 50%; background: var(--teal-light); flex: none; }
.rule__dot--rose { background: var(--rose); }

/* --- Buttons ------------------------------------------------------------ */
.btn {
  display: inline-block;
  font-family: var(--mono);
  font-size: 15px; font-weight: 600;
  padding: 17px 34px;
  border: 1.5px solid transparent;
  border-radius: 999px;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color var(--t-hover) var(--ease-out),
    color            var(--t-hover) var(--ease-out),
    border-color     var(--t-hover) var(--ease-out),
    transform        var(--t-press) var(--ease-out);
}
/* Press feedback: the control must acknowledge the press itself, not wait
   for navigation. Subtle on purpose. */
.btn:active { transform: scale(0.97); }

.btn--cream  { background: var(--cream); color: var(--ink); }
.btn--ghost  { background: transparent; color: var(--cream); border-color: var(--hairline-2); }
.btn--teal   { background: var(--teal); color: var(--cream); font-size: 13.5px; padding: 12px 22px; }
.btn--lg     { font-size: 16px; padding: 19px 42px; }

/* Hover is gated: on touch, :hover latches after a tap and leaves controls
   stuck in their hovered state. */
@media (hover: hover) and (pointer: fine) {
  .btn--cream:hover { background: var(--teal-light); color: var(--ink); }
  .btn--ghost:hover { border-color: var(--rose); color: var(--rose); }
  .btn--teal:hover  { background: var(--ink-2); color: var(--cream); }
}

/* --- Header / nav ------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(246, 239, 225, 0.96);
  border-bottom: 1px solid var(--line);
}
@supports (backdrop-filter: blur(8px)) {
  .site-header { background: rgba(246, 239, 225, 0.86); backdrop-filter: blur(8px); }
}

.nav {
  max-width: var(--maxw); margin-inline: auto;
  padding: 10px var(--pad);
  display: flex; align-items: center; gap: 30px;
}
.nav__logo { display: flex; align-items: center; text-decoration: none; flex: none; }
/* The logo PNG carries a real alpha channel, so it needs no blend mode —
   `mix-blend-mode: multiply` (in the mockup) would tint it against cream. */
.nav__logo img { height: 52px; width: auto; }

.nav__spacer { flex: 1; }

.nav__links {
  display: flex; align-items: center; gap: 24px;
  font-family: var(--mono); font-size: 13.5px;
}
.nav__link { text-decoration: none; color: var(--ink-2); transition: color var(--t-hover) var(--ease-out); }
.nav__link[aria-current="page"] { color: var(--rose-deep); }
@media (hover: hover) and (pointer: fine) {
  .nav__link:hover { color: var(--rose-deep); }
}

/* Mobile menu toggle — hidden until the links collapse */
.nav__toggle {
  display: none;
  flex: none;
  width: 44px; height: 44px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--line);
  border-radius: 10px;
  color: var(--ink-2);
  cursor: pointer;
  transition: transform var(--t-press) var(--ease-out);
}
.nav__toggle:active { transform: scale(0.94); }
.nav__toggle span,
.nav__toggle span::before,
.nav__toggle span::after {
  display: block; width: 18px; height: 1.5px;
  background: currentColor; border-radius: 2px;
  margin-inline: auto;
  transition: transform .2s ease, opacity .2s ease;
}
.nav__toggle span { position: relative; }
.nav__toggle span::before,
.nav__toggle span::after { content: ''; position: absolute; left: 0; }
.nav__toggle span::before { top: -6px; }
.nav__toggle span::after  { top:  6px; }
.nav__toggle[aria-expanded="true"] span { background: transparent; }
.nav__toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span::after  { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1000px) {
  .nav { gap: 16px; }
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream);
    border-bottom: 1px solid var(--line);
    padding: 8px var(--pad) 20px;
    font-size: 15px;
    display: none;
  }
  .nav__links.is-open { display: flex; }
  .nav__links .nav__link { padding: 14px 0; border-bottom: 1px solid var(--line-3); }
  .nav__links .btn { margin-top: 16px; text-align: center; }
}

/* --- Hero --------------------------------------------------------------- */
.hero {
  max-width: var(--maxw); margin-inline: auto;
  /* Top pad capped at 88px: past ~96px the hero content floats down the
     viewport and the closing line falls below the fold at 900px. */
  padding: clamp(56px, 7vw, 88px) var(--pad) clamp(56px, 8vw, 90px);
  display: grid; grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(40px, 5vw, 72px); align-items: center;
}

.badge {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid rgba(246, 239, 225, 0.25);
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.18em;
  color: var(--teal-light);
}
.badge__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-light); flex: none; }

.hero h1 {
  /* 92px wrapped this headline to four lines and broke "re-explaining"
     across them at its hyphen. 72px holds it to three. */
  font-size: clamp(40px, 5.2vw, 72px);
  /* 1.0 clipped the italic descender on the y in "every". */
  line-height: 1.06;
  letter-spacing: -0.025em;
  margin: 26px 0 0;
}
.hero h1 em {
  color: var(--rose);
  /* Italic descenders overhang their box; reserve room so the y is not
     shaved by the following element. */
  padding-bottom: 0.06em;
}
/* Keep the browser from breaking the word at its own hyphen. */
.nowrap { white-space: nowrap; }

.hero__lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
  color: var(--on-dark-80);
  margin: 30px 0 0;
  max-width: 54ch;
}

.hero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 38px; }

.hero__note {
  font-style: italic;
  font-size: 18px;
  color: var(--on-dark-60);
  margin: 28px 0 0;
}

/* Browser-chrome frame around the hero media */
.hero__frame { transform: rotate(1.5deg); }
.frame {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 14px;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.7);
  overflow: hidden;
}
.frame__bar {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line-3);
}
.frame__dot { width: 11px; height: 11px; border-radius: 50%; flex: none; }
.frame__title {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--ink-faint); margin-left: 10px;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.frame__body { position: relative; aspect-ratio: 16 / 10; }

.hero__caption {
  font-family: var(--mono); font-size: 12.5px;
  color: var(--on-dark-60);
  margin-top: 14px; text-align: center;
}

/* Play affordance layered over a video poster */
.play {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.play__ring {
  width: 78px; height: 78px; border-radius: 50%;
  background: rgba(43, 32, 24, 0.78);
  border: 1.5px solid rgba(246, 239, 225, 0.6);
  display: flex; align-items: center; justify-content: center;
}
.play__tri {
  width: 0; height: 0;
  border-top: 13px solid transparent;
  border-bottom: 13px solid transparent;
  border-left: 22px solid var(--cream);
  margin-left: 6px;
}

/* --- Media slots -------------------------------------------------------- */
/* Stand-ins for footage that has not been shot yet. Replace the element with
   an <img>/<video> of the same aspect ratio; no other change is needed. */
.slot {
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  padding: 24px;
  background:
    repeating-linear-gradient(45deg,
      transparent, transparent 14px,
      rgba(52, 104, 107, 0.06) 14px, rgba(52, 104, 107, 0.06) 28px),
    var(--cream-2);
  color: var(--ink-faint);
  font-family: var(--mono); font-size: 13px; line-height: 1.6;
  text-align: center;
}
/* When a play affordance sits on top, drop the caption clear of the ring. */
.slot--under-play { align-items: flex-end; padding-bottom: 18px; }

.slot--dark {
  background:
    repeating-linear-gradient(45deg,
      transparent, transparent 14px,
      rgba(246, 239, 225, 0.05) 14px, rgba(246, 239, 225, 0.05) 28px),
    rgba(36, 27, 18, 0.55);
  color: var(--on-dark-70);
}

/* --- Ticker ------------------------------------------------------------- */
.ticker {
  background: var(--teal-band);
  border-block: 1px solid rgba(246, 239, 225, 0.14);
  overflow: hidden;
  padding: 16px 0;
  font-family: var(--mono); font-size: 14px;
  letter-spacing: 0.1em;
  color: var(--on-dark-70);
  white-space: nowrap;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 6%, #000 94%, transparent);
}
.ticker__track {
  display: flex; width: max-content;
  animation: ticker-scroll 42s linear infinite;
}
.ticker__group { display: flex; gap: 36px; padding-right: 36px; flex: none; }
.ticker__sep { color: var(--teal-light); }
.ticker__item--strong { color: var(--cream); }

@keyframes ticker-scroll {
  from { transform: translate3d(0, 0, 0); }
  to   { transform: translate3d(-50%, 0, 0); }
}

/* --- Cards -------------------------------------------------------------- */
.card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 34px 32px;
  background: var(--wash);
}
.card p { font-size: 18px; line-height: 1.65; color: var(--on-dark-80); margin: 16px 0 0; }

.card--cream {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 26px 28px;
}
.card--cream p { font-size: 18px; line-height: 1.6; color: var(--ink-muted); margin: 12px 0 0; }
/* The card's own label is a heading, not body copy — `.card--cream p` would
   otherwise out-specify .eyebrow--deep and drain its color. */
.card--cream p.eyebrow { margin: 0; color: var(--rose-deep); }

/* --- Cynic -------------------------------------------------------------- */
.cynic { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(40px, 6vw, 80px); }
.cynic h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.06; margin: 0; }
.cynic h2 em { color: var(--rose-deep); }
.cynic__stack { display: flex; flex-direction: column; gap: 20px; margin-top: 44px; }
.cynic__close { font-size: 20px; line-height: 1.7; margin: 32px 0 0; }
.cynic__close em { color: var(--rose-deep); }
.cynic__aside { border-left: 1px solid var(--line-2); padding-left: clamp(28px, 4vw, 56px); }
.cynic__aside p { font-size: 20px; line-height: 1.75; color: var(--ink-muted); margin: 0; }
.cynic__aside p + p { margin-top: 22px; }
.cynic__aside p:last-child { color: var(--ink-2); }

/* --- Thesis ------------------------------------------------------------- */
.thesis__head { text-align: center; }
.thesis__head h2 {
  font-size: clamp(38px, 6vw, 72px);
  line-height: 1.05;
  margin: 0 auto;
  max-width: 18ch;
}
.thesis__head h2 em { color: var(--teal-light); }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 64px; }

.thesis__foot {
  font-size: 17px; line-height: 1.65; font-style: italic;
  color: var(--on-dark-60);
  margin: 36px auto 0; text-align: center; max-width: 60ch;
}

/* --- Demo band ---------------------------------------------------------- */
.demo { background: var(--teal-band); background-image: radial-gradient(rgba(246, 239, 225, 0.08) 1.5px, transparent 1.5px); background-size: 28px 28px; }
.demo__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.demo__head h2 { font-size: clamp(36px, 4.6vw, 56px); line-height: 1.08; margin: 0; max-width: 16ch; }
.demo__head p { font-family: var(--mono); font-size: 14px; color: var(--on-dark-70); margin: 0 0 10px; text-align: right; }
.demo__media {
  margin-top: 44px;
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 40px 90px -40px rgba(0, 0, 0, 0.6);
  border: 1px solid rgba(246, 239, 225, 0.25);
  position: relative;
  aspect-ratio: 16 / 7.5;
}

/* --- Wedge -------------------------------------------------------------- */
.wedge__head { text-align: center; }
.wedge__head h2 { font-size: clamp(34px, 4.6vw, 56px); line-height: 1.1; margin: 0 auto; max-width: 24ch; }
.wedge__head p { font-size: 19px; line-height: 1.7; color: var(--on-dark-80); max-width: 66ch; margin: 26px auto 0; }

.compare {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: clamp(32px, 4vw, 56px);
  margin-top: 56px;
  position: relative;
}
.compare__vs {
  position: absolute; left: 50%; top: 42%;
  transform: translate(-50%, -50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: var(--teal-light); color: var(--ink);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 14px; font-weight: 600;
  box-shadow: 0 0 0 8px var(--ink);
  z-index: 2;
}
.compare__label {
  font-family: var(--mono); font-size: 13px; font-weight: 600;
  letter-spacing: 0.18em; margin-bottom: 12px;
}
.compare__label--dim  { color: var(--on-dark-60); }
.compare__label--live { color: var(--teal-light); }

.compare__box {
  aspect-ratio: 4 / 2.7;
  border: 1.5px dashed var(--hairline-2);
  border-radius: var(--radius-sm);
  background: repeating-linear-gradient(45deg,
    transparent, transparent 14px,
    rgba(246, 239, 225, 0.045) 14px, rgba(246, 239, 225, 0.045) 28px);
  display: flex; align-items: center; justify-content: center;
  padding: 0 20px;
  font-family: var(--mono); font-size: 14px; line-height: 1.6;
  color: var(--on-dark-60); text-align: center;
}
.compare__box--live {
  /* Standalone class, not a modifier — it must restate its own box metrics.
     Its only child is absolutely positioned, so without aspect-ratio the
     element collapses to the height of its border. */
  aspect-ratio: 4 / 2.7;
  border: 2px solid var(--teal-light);
  border-radius: var(--radius-sm);
  overflow: hidden; position: relative;
  box-shadow: 0 30px 70px -40px rgba(143, 192, 189, 0.5);
}
.compare__caption { font-size: 20px; font-style: italic; margin: 16px 0 0; text-align: center; }
.compare__caption--dim  { color: var(--on-dark-60); }
.compare__caption--live { color: var(--teal-light); }

.compare__note { grid-column: 1 / -1; }
.compare__note em { color: var(--rose); }

/* --- What's inside ------------------------------------------------------ */
.inside__head { display: flex; align-items: baseline; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.inside__head h2 { font-size: clamp(38px, 5vw, 64px); margin: 0; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 26px; margin-top: 56px; }

.piece {
  background: var(--cream-2);
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: clamp(30px, 3.4vw, 40px) clamp(26px, 3.2vw, 38px);
  /* Set explicitly: the card carries its own surface, so it must carry its
     own foreground too. Inheriting from the section only works while the
     section happens to be cream. */
  color: var(--ink-2);
}
.piece--dark { background: var(--ink-2); border-color: var(--ink-2); color: var(--cream); }
.piece__top { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.piece__num { font-size: 46px; font-weight: 500; line-height: 1; }
.piece__tag {
  font-family: var(--mono); font-size: 12px; letter-spacing: 0.16em;
  border: 1px solid currentColor; border-radius: 999px;
  padding: 6px 14px; white-space: nowrap;
}
.piece h3 { font-size: clamp(26px, 2.6vw, 32px); margin: 18px 0 0; }
.piece p { font-size: 17.5px; line-height: 1.65; color: var(--ink-muted); margin: 14px 0 0; }
.piece--dark p { color: var(--on-dark-80); }
.piece code { font-family: var(--mono); font-size: 15px; }

.proof {
  display: flex; align-items: center; gap: 24px;
  margin-top: 60px; border-top: 1px solid var(--line-2); padding-top: 36px;
}
.proof img { width: 64px; height: 64px; flex: none; }
.proof p { font-size: clamp(18px, 2vw, 21px); line-height: 1.55; margin: 0; max-width: 60ch; }
.proof em { color: var(--rose-deep); }

/* --- Free Core ---------------------------------------------------------- */
.core { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 80px); align-items: center; }
.core h2 { font-size: clamp(38px, 5vw, 64px); line-height: 1.06; margin: 0; }
.core h2 em { color: var(--rose); }
.core__lede { font-size: 19px; line-height: 1.7; color: var(--on-dark-80); margin: 26px 0 0; max-width: 54ch; }

.core__card {
  background: rgba(246, 239, 225, 0.05);
  border: 1px solid rgba(246, 239, 225, 0.18);
  border-radius: 18px;
  padding: clamp(32px, 4vw, 44px) clamp(28px, 3.6vw, 42px);
}
.core__label { font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em; color: var(--on-dark-60); }

.core__input {
  width: 100%;
  margin-top: 20px;
  font-family: var(--mono); font-size: 15px;
  padding: 16px 18px;
  border-radius: 10px;
  border: 1px solid var(--hairline-2);
  background: rgba(246, 239, 225, 0.06);
  color: var(--cream);
  outline: none;
}
.core__input::placeholder { color: var(--on-dark-60); }
.core__input:focus-visible { border-color: var(--teal-light); outline: 2px solid var(--teal-light); outline-offset: 1px; }

.core__submit {
  display: block; width: 100%;
  text-align: center; margin-top: 14px;
  background: var(--rose-2); color: var(--ink);
  font-family: var(--mono); font-size: 15px; font-weight: 600;
  padding: 17px 0;
  border: none; border-radius: 10px;
  text-decoration: none; cursor: pointer;
  transition:
    background-color var(--t-hover) var(--ease-out),
    transform        var(--t-press) var(--ease-out);
}
.core__submit:active { transform: scale(0.98); }
@media (hover: hover) and (pointer: fine) {
  .core__submit:hover { background: var(--cream); color: var(--ink); }
}

.core__fine {
  font-family: var(--mono); font-size: 12.5px; line-height: 1.9;
  color: var(--on-dark-60); margin-top: 22px;
}
.core__fine strong { color: var(--cream); font-weight: 600; }

.core__status { font-family: var(--mono); font-size: 13px; line-height: 1.6; margin: 14px 0 0; min-height: 1.2em; }
.core__status[data-state="error"] { color: var(--rose); }
.core__status[data-state="ok"]    { color: var(--teal-light); }

/* --- Final CTA ---------------------------------------------------------- */
.final {
  border-top: 1px solid rgba(246, 239, 225, 0.14);
  text-align: center;
  padding: clamp(84px, 11vw, 140px) var(--pad) clamp(80px, 10vw, 130px);
}
.final h1,
.final h2 {
  font-size: clamp(44px, 7.5vw, 104px);
  letter-spacing: -0.03em; line-height: 1.02; margin: 0;
}
.final h1 em,
.final h2 em { color: var(--teal-light); padding-bottom: 0.06em; }
.final__fine { font-family: var(--mono); font-size: 13.5px; color: var(--on-dark-60); margin-top: 22px; }

/* --- Footer ------------------------------------------------------------- */
.site-footer { background: var(--cream); color: var(--ink-2); border-top: 1px solid var(--line); }
.site-footer .wrap { padding-top: 64px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: clamp(32px, 4vw, 56px); align-items: start; }
.footer__blurb { font-size: 16.5px; line-height: 1.6; color: var(--ink-muted); margin: 18px 0 0; max-width: 30ch; }
.site-footer .nav__logo img { height: 60px; }

.footer__col { display: flex; flex-direction: column; gap: 12px; font-family: var(--mono); font-size: 13.5px; }
.footer__head { font-size: 12px; font-weight: 600; letter-spacing: 0.2em; color: var(--rose-deep); margin-bottom: 6px; }
.footer__link { text-decoration: none; color: var(--ink-2); transition: color var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .footer__link:hover { color: var(--rose-deep); }
}
.footer__muted { color: var(--ink-faint); }
.footer__soon { font-size: 11px; border: 1px solid #C4B18C; border-radius: 999px; padding: 2px 8px; margin-left: 4px; }
.footer__fine { color: var(--ink-faint); font-size: 12.5px; line-height: 1.7; }

.footer__bar {
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line);
  margin-top: 56px; padding: 22px 0;
  font-family: var(--mono); font-size: 12.5px; color: var(--ink-faint);
}
.footer__bar a { color: var(--rose-deep); }

/* --- Responsive --------------------------------------------------------- */
@media (max-width: 1000px) {
  .hero        { grid-template-columns: 1fr; }
  /* Keep DOM order: the headline must lead on small screens. */
  .hero__frame { transform: none; }
  .cynic       { grid-template-columns: 1fr; }
  .cynic__aside { border-left: 0; border-top: 1px solid var(--line-2); padding-left: 0; padding-top: 36px; }
  .core        { grid-template-columns: 1fr; }
  .grid-3      { grid-template-columns: 1fr; gap: 20px; margin-top: 44px; }
  .footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 760px) {
  .grid-2 { grid-template-columns: 1fr; }

  /* Stack the comparison and let the "vs" pip sit between the two halves. */
  .compare { grid-template-columns: 1fr; }
  .compare__vs { position: static; transform: none; margin: 4px auto; order: 2; box-shadow: none; }
  .compare__col--static { order: 1; }
  .compare__col--live   { order: 3; }
  .compare__note        { order: 4; }

  .demo__head p { text-align: left; }
  .proof { flex-direction: column; align-items: flex-start; gap: 16px; }
}

@media (max-width: 760px) {
  /* Footer links sit at their 18px line box on desktop, which is too small
     to hit reliably by thumb. Pad them to a 44px target on touch widths. */
  .footer__col { gap: 2px; }
  .footer__link { padding-block: 13px; }
  .footer__col .btn { margin-top: 10px; }
}

@media (max-width: 560px) {
  .footer__grid { grid-template-columns: 1fr; }
  .hero__actions .btn { width: 100%; text-align: center; }
  .footer__bar { justify-content: flex-start; }
}

/* ==========================================================================
   Interior pages
   Shared by system / start-free / catalog / pricing / about / faq / legal.
   ========================================================================== */

/* --- Interior hero ------------------------------------------------------ */
/* Shorter than the home hero: these pages are read, not landed on. */
.phero {
  max-width: var(--maxw); margin-inline: auto;
  padding: clamp(56px, 7vw, 88px) var(--pad) clamp(40px, 5vw, 64px);
}
.phero--center { text-align: center; }
.phero h1 {
  font-size: clamp(38px, 5.4vw, 76px);
  line-height: 1.04;
  letter-spacing: -0.025em;
  margin: 26px 0 0;
}
.phero h1 em { color: var(--rose); padding-bottom: 0.06em; }
.phero__lede {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.65;
  color: var(--on-dark-80);
  margin: 26px 0 0;
  max-width: 62ch;
}
.phero--center .phero__lede { margin-inline: auto; }
.phero__actions { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 34px; }
.phero--center .phero__actions { justify-content: center; }

/* --- Long-form prose ---------------------------------------------------- */
.prose { max-width: 68ch; }
.prose--wide { max-width: 78ch; }
.prose p {
  font-size: clamp(17px, 1.9vw, 19.5px);
  line-height: 1.75;
  color: var(--on-dark-80);
  margin: 0 0 22px;
}
.prose p:last-child { margin-bottom: 0; }
.prose strong { color: var(--cream); font-weight: 600; }
.prose em { color: var(--rose); }
.prose--ink p { color: var(--ink-muted); }
.prose--ink strong { color: var(--ink-2); }
.prose--ink em { color: var(--rose-deep); }

/* A quiet aside: the honest filters and disqualifications. Not a callout
   box — it should read as the author lowering their voice, not shouting. */
.aside {
  border-left: 1px solid var(--hairline-2);
  padding-left: 22px;
  font-size: 17px; line-height: 1.7; font-style: italic;
  color: var(--on-dark-60);
  margin: 26px 0 0;
  max-width: 62ch;
}
.aside--ink { border-left-color: var(--line-2); color: var(--ink-faint); }

/* --- Section heading ---------------------------------------------------- */
.shead {
  font-size: clamp(32px, 4.2vw, 52px);
  line-height: 1.1;
  margin: 0 0 clamp(28px, 3.4vw, 40px);
}
.shead em { color: var(--teal-light); padding-bottom: 0.06em; }
.section--cream .shead em { color: var(--rose-deep); }
.shead--center { text-align: center; margin-inline: auto; }

/* --- Before / after ----------------------------------------------------- */
.ba { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.ba__label {
  font-family: var(--mono); font-size: 12.5px;
  letter-spacing: 0.18em; margin: 0 0 14px;
}
.ba__card {
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 30px 28px;
  background: var(--wash);
}
.ba__card p { font-size: 17.5px; line-height: 1.7; color: var(--on-dark-80); margin: 0; }

/* --- Comparison table --------------------------------------------------- */
/* Scrolls inside its own container so the page never scrolls sideways. */
.tablewrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin-top: 8px; }
.ctable {
  width: 100%; min-width: 640px;
  border-collapse: collapse;
  font-size: 16.5px;
}
.ctable th, .ctable td {
  text-align: left; vertical-align: top;
  padding: 18px 20px;
  border-bottom: 1px solid var(--hairline);
}
.ctable thead th {
  font-family: var(--mono); font-size: 12.5px; font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--on-dark-60);
  border-bottom-color: var(--hairline-2);
}
.ctable tbody th {
  font-family: var(--mono); font-size: 13px; font-weight: 500;
  color: var(--on-dark-60);
  white-space: nowrap;
}
.ctable td { color: var(--on-dark-80); line-height: 1.6; }
/* The winning column, marked by weight and a hairline, not a colored block. */
.ctable .col-ours { color: var(--cream); }
.ctable thead .col-ours { color: var(--teal-light); }
.ctable .col-ours { border-left: 1px solid var(--hairline-2); border-right: 1px solid var(--hairline-2); }
.ctable tr:last-child td, .ctable tr:last-child th { border-bottom: 0; }

/* --- For / not for ------------------------------------------------------ */
.fornot { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.fornot__col { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 32px 30px; background: var(--wash); }
.fornot h3 { font-size: 22px; margin: 0 0 18px; }
.fornot ul { margin: 0; padding: 0; list-style: none; }
.fornot li {
  font-size: 17px; line-height: 1.65;
  color: var(--on-dark-80);
  padding: 0 0 0 26px; margin-bottom: 14px;
  position: relative;
}
.fornot li:last-child { margin-bottom: 0; }
.fornot li::before {
  content: ''; position: absolute; left: 0; top: 0.6em;
  width: 10px; height: 1.5px; background: var(--teal-light);
}
.fornot__col--not li::before { background: var(--rose); }

/* --- Feature list ------------------------------------------------------- */
.flist { display: flex; flex-direction: column; gap: 26px; }
.flist__item { border-top: 1px solid var(--hairline); padding-top: 26px; }
.flist__item:first-child { border-top: 0; padding-top: 0; }
.flist h3 { font-size: clamp(21px, 2.2vw, 26px); margin: 0 0 12px; }
.flist p { font-size: 17.5px; line-height: 1.7; color: var(--on-dark-80); margin: 0; }
.section--cream .flist__item { border-top-color: var(--line-2); }
.section--cream .flist p { color: var(--ink-muted); }

/* --- Steps -------------------------------------------------------------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; counter-reset: step; }
.steps__item { border: 1px solid var(--hairline); border-radius: var(--radius); padding: 30px 28px; background: var(--wash); }
.steps__n {
  font-family: var(--mono); font-size: 13px; letter-spacing: 0.16em;
  color: var(--teal-light); display: block; margin-bottom: 14px;
}
.steps p { font-size: 17px; line-height: 1.65; color: var(--on-dark-80); margin: 0; }

/* --- FAQ ---------------------------------------------------------------- */
.faq { max-width: 78ch; }
.faq__item { border-bottom: 1px solid var(--hairline); }
.section--cream .faq__item { border-bottom-color: var(--line-2); }
.faq__q {
  font-size: clamp(18px, 2vw, 21px);
  line-height: 1.45;
  padding: 24px 44px 24px 0;
  cursor: pointer;
  position: relative;
  list-style: none;
  font-family: var(--serif);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: ''; position: absolute; right: 10px; top: 50%;
  width: 12px; height: 12px;
  border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--t-hover) var(--ease-out);
  opacity: .55;
}
details[open] > .faq__q::after { transform: translateY(-30%) rotate(-135deg); }
.faq__a { padding: 0 0 26px; max-width: 68ch; }
.faq__a p { font-size: 17px; line-height: 1.75; color: var(--on-dark-80); margin: 0 0 16px; }
.faq__a p:last-child { margin-bottom: 0; }
.section--cream .faq__a p { color: var(--ink-muted); }

/* --- Offer / guarantee -------------------------------------------------- */
/* The guarantee travels with every buy CTA — it is never FAQ-only. */
.offer {
  border: 1px solid var(--hairline-2);
  border-radius: 18px;
  padding: clamp(32px, 4vw, 48px);
  background: var(--wash);
  max-width: 64ch;
}
.offer h2 { font-size: clamp(26px, 3vw, 34px); margin: 0 0 16px; }
.offer p { font-size: 17.5px; line-height: 1.7; color: var(--on-dark-80); margin: 0 0 20px; }
.guarantee {
  font-family: var(--mono); font-size: 13px; line-height: 1.8;
  color: var(--on-dark-60); margin-top: 18px;
}
.guarantee strong { color: var(--cream); font-weight: 600; }

/* --- Price cards -------------------------------------------------------- */
.tiers { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.tier {
  border: 1px solid var(--hairline);
  border-radius: 18px;
  padding: clamp(28px, 3.4vw, 38px);
  background: var(--wash);
  display: flex; flex-direction: column;
}
.tier--anchor { border-color: var(--teal-light); }
.tier__name { font-size: clamp(22px, 2.4vw, 28px); margin: 0 0 6px; }
.tier__meta { font-family: var(--mono); font-size: 12.5px; letter-spacing: 0.14em; color: var(--teal-light); margin: 0 0 18px; }
.tier__price { font-size: 40px; font-weight: 500; line-height: 1; margin: 0 0 6px; }
/* Prices are unresolved by decision, not oversight. Render the placeholder
   plainly rather than inventing a number. */
.tier__price--tbd { color: var(--on-dark-60); font-family: var(--mono); font-size: 26px; }
.tier__note { font-family: var(--mono); font-size: 12px; color: var(--on-dark-60); margin: 0 0 22px; }
.tier ul { margin: 0 0 26px; padding: 0; list-style: none; }
.tier li {
  font-size: 16.5px; line-height: 1.6; color: var(--on-dark-80);
  padding-left: 24px; margin-bottom: 12px; position: relative;
}
.tier li::before {
  content: ''; position: absolute; left: 0; top: 0.62em;
  width: 9px; height: 1.5px; background: var(--teal-light);
}
.tier .btn { margin-top: auto; text-align: center; }

/* --- Legal doc ---------------------------------------------------------- */
.legal { max-width: 74ch; }
.legal h2 { font-size: clamp(24px, 2.8vw, 32px); margin: 48px 0 16px; }
.legal h2:first-child { margin-top: 0; }
.legal h3 { font-size: 20px; margin: 30px 0 12px; }
.legal p, .legal li { font-size: 17px; line-height: 1.75; color: var(--on-dark-80); }
.legal p { margin: 0 0 18px; }
.legal ul { margin: 0 0 18px; padding-left: 22px; }
.legal li { margin-bottom: 10px; }
.legal__updated { font-family: var(--mono); font-size: 13px; color: var(--on-dark-60); margin-bottom: 40px; }

/* --- Links on cream surfaces -------------------------------------------- */
/* The global link color is tuned for the dark page; on cream it lands near
   1.8:1. Cream surfaces use the ink-side accent instead. */
.section--cream a:not(.btn),
.piece a:not(.btn),
.ba__card a:not(.btn),
.steps__item a:not(.btn) {
  color: var(--rose-deep);
  text-decoration-color: rgba(156, 87, 97, 0.45);
}
.piece--dark a:not(.btn) {
  color: var(--teal-light);
  text-decoration-color: rgba(143, 192, 189, 0.4);
}
@media (hover: hover) and (pointer: fine) {
  .section--cream a:not(.btn):hover,
  .piece a:not(.btn):hover,
  .ba__card a:not(.btn):hover,
  .steps__item a:not(.btn):hover { color: var(--ink-2); }
  .piece--dark a:not(.btn):hover { color: var(--rose); }
}

/* --- Interior responsive ------------------------------------------------ */
@media (max-width: 900px) {
  .ba, .fornot, .tiers { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
}

/* ==========================================================================
   Motion
   One system, three moments: page-load hero entrance, below-fold scroll
   reveals, and the FAQ disclosure. Everything animates `translate` +
   `opacity` only (compositor-friendly, and `translate` never clobbers an
   element's existing `transform`, e.g. the home hero frame's rotation).
   All of it is double-gated on prefers-reduced-motion: the CSS is inside
   the media query AND the JS checks before adding any class.
   ========================================================================== */

@media (prefers-reduced-motion: no-preference) {

  /* Hero entrance — runs once per page load, staggered top to bottom.
     `backwards` fill hides pre-delay children instead of flashing them. */
  @keyframes rise-in {
    from { opacity: 0; translate: 0 12px; }
  }
  .phero > *,
  .hero > div:first-child > * {
    animation: rise-in .55s var(--ease-out) backwards;
  }
  .phero > :nth-child(2),
  .hero > div:first-child > :nth-child(2) { animation-delay: 70ms; }
  .phero > :nth-child(3),
  .hero > div:first-child > :nth-child(3) { animation-delay: 140ms; }
  .phero > :nth-child(4),
  .hero > div:first-child > :nth-child(4) { animation-delay: 210ms; }
  .phero > :nth-child(5),
  .hero > div:first-child > :nth-child(5) { animation-delay: 280ms; }
  .hero__frame { animation: rise-in .6s var(--ease-out) 180ms backwards; }

  /* Scroll reveal — .rv is added by site.js to below-fold elements only,
     so content is never hidden without JS. The transition lives on .is-in,
     not .rv, so the initial state paints with no transition artifacts. */
  .rv { opacity: 0; translate: 0 14px; }
  .rv.is-in {
    opacity: 1; translate: 0 0;
    transition:
      opacity   .55s var(--ease-out),
      translate .55s var(--ease-out);
  }

  /* FAQ disclosure — modern engines animate open via ::details-content;
     everything else keeps the instant toggle, which is the right fallback
     (a slow non-animated jump would be worse than an instant one). */
  .faq__item::details-content {
    height: 0;
    overflow: clip;
    transition:
      height .28s var(--ease-out),
      content-visibility .28s allow-discrete;
  }
  .faq__item[open]::details-content { height: auto; }

  /* Mobile menu entrance. Exit stays instant — it's a utility, not a scene. */
  @media (max-width: 1000px) {
    @keyframes menu-in {
      from { opacity: 0; translate: 0 -6px; }
    }
    .nav__links.is-open { animation: menu-in .18s var(--ease-out); }
  }
}

/* Enables height:auto interpolation for the FAQ transition above. */
:root { interpolate-size: allow-keywords; }

/* ==========================================================================
   Readability
   ========================================================================== */

/* Inline code — the copy leans on tokens like `.md` and `.canvas`; give
   them a real chip on both surfaces instead of bare browser-default mono. */
code {
  font-family: var(--mono);
  font-size: 0.85em;
  background: rgba(246, 239, 225, 0.08);
  border: 1px solid rgba(246, 239, 225, 0.12);
  border-radius: 5px;
  padding: 0.08em 0.38em;
  white-space: nowrap;
}
.section--cream code,
.piece:not(.piece--dark) code,
.ba__card code {
  background: rgba(43, 32, 24, 0.05);
  border-color: rgba(43, 32, 24, 0.14);
}
.piece--dark code {
  background: rgba(246, 239, 225, 0.08);
  border-color: rgba(246, 239, 225, 0.12);
}

/* Feature-list headings get the same dash marker the for/not lists carry —
   an anchor for the scanning eye on long text pages. */
.flist h3 { position: relative; padding-left: 26px; }
.flist h3::before {
  content: ''; position: absolute; left: 0; top: 0.55em;
  width: 14px; height: 1.5px; background: var(--teal-light);
}
.section--cream .flist h3::before { background: var(--teal); }

/* Comparison/pricing tables: zebra + row hover so the eye can track a row
   across three columns. */
.ctable tbody tr:nth-child(even) { background: rgba(246, 239, 225, 0.025); }
@media (hover: hover) and (pointer: fine) {
  .ctable tbody tr:hover { background: rgba(246, 239, 225, 0.055); }
}

/* FAQ questions signal interactivity on hover. */
.faq__q { transition: color var(--t-hover) var(--ease-out); }
@media (hover: hover) and (pointer: fine) {
  .faq__q:hover { color: var(--teal-light); }
  .section--cream .faq__q:hover { color: var(--rose-deep); }
}

/* Legal doc: hairline above each section heading for scannability. */
.legal h2 { border-top: 1px solid var(--hairline); padding-top: 34px; }
.legal h2:first-of-type { border-top: 0; padding-top: 0; }

/* --- Motion / print ----------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .ticker__track { animation: none; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
}

@media print {
  .site-header, .ticker, .nav__toggle { display: none; }
  body { background: #fff; color: #000; }
  * { print-color-adjust: exact; -webkit-print-color-adjust: exact; }
  /* Un-hide any scroll-reveal element: print renders no frames, so the
     observer that would reveal them never fires. */
  .rv { opacity: 1 !important; translate: 0 0 !important; }
}
