/* ==========================================================================
   archivers.ai — v2 design system
   "Archivers, as the product looks": warm near-white ground, one gold accent
   used as punctuation, hairlines instead of shadows, real product screenshots
   at size. Dark is reserved for the nav and the closing CTA band + footer.

   Component canon (one commented block each, in order):
     tokens · base · layout · buttons · links & ticks · plate · nav · hero
     logo-strip · feature-row · card-grid · stat-band · proof · pricing-cards
     faq · cta-band · footer · cookie-banner · a11y/motion/print
   Mobile-first, four breakpoints (640 / 760 / 900 / 1040), no !important.
   ========================================================================== */

/* --------------------------------------------------------------- 1. tokens */
:root {
  /* ground */
  --bg:          #FAFAF7;
  --bg-tint:     #F3F1EB;
  --surface:     #FFFFFF;
  --dark:        #161513;
  --dark-2:      #201F1B;

  /* ink */
  --ink:         #141414;
  --ink-2:       #444444;
  --ink-3:       #6B6B6B;
  --ink-inv:     #F7F5F0;
  --ink-inv-2:   rgba(247,245,240,.66);

  /* accent — punctuation only */
  --gold:        #B8860B;
  --gold-hover:  #A0740A;
  --gold-light:  #D4A017;
  --gold-tint:   #FBF3DD;

  /* lines */
  --line:        #E6E2D8;
  --line-strong: #D8D2C4;
  --line-inv:    rgba(247,245,240,.16);

  /* semantic — inside product vignettes only */
  --ok:          #2E7D4F;
  --warn:        #B4720A;
  --stop-colour: #A62B21;

  /* type */
  --font-display: "Playfair Display", Georgia, "Times New Roman", serif;
  --font-body:    "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono:    "IBM Plex Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* shape */
  --r-btn:  6px;
  --r-card: 10px;
  --r-well: 14px;
  --shadow-plate: 0 20px 60px rgba(20,20,20,.10);

  /* rhythm */
  --gutter:  24px;
  --section: 56px;
  --max:     1200px;
}

@media (min-width: 900px) {
  :root { --gutter: 48px; --section: 88px; }
}

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

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }

body.v2 {
  margin: 0;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink-2);
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

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

h1, h2, h3, h4 { margin: 0; color: var(--ink); }

/* Playfair carries H1 and H2 only, set at 500 and tracked tight so the serif
   reads as confidence rather than decoration. */
h1, .h1 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.5rem, 1.6rem + 3.4vw, 4.15rem);
  line-height: 1.06;
  letter-spacing: -0.018em;
  text-wrap: balance;
}
h2, .h2 {
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.9rem, 1.35rem + 1.9vw, 2.8rem);
  line-height: 1.12;
  letter-spacing: -0.014em;
  text-wrap: balance;
}
h3, .h3 {
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 1.0625rem;
  line-height: 1.35;
  letter-spacing: -0.005em;
}

p { margin: 0 0 1rem; }
p:last-child { margin-bottom: 0; }

a { color: inherit; }

.mono {
  font-family: var(--font-mono);
  font-size: 0.8125em;
  letter-spacing: -0.01em;
}

/* The one piece of accent typography: a gold full stop after a headline. */
.stop { color: var(--gold); }

/* --------------------------------------------------------------- 3. layout */
.container {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section { padding: var(--section) 0; }
.section--tint { background: var(--bg-tint); }

/* Left-aligned section head: eyebrow, H2 of eight words or fewer, one line. */
.section__head { max-width: 42rem; margin: 0 0 clamp(32px, 4vw, 52px); }
.section__head h2 { margin: 10px 0 0; }
.section__lede {
  margin: 14px 0 0;
  font-size: 1.0625rem;
  color: var(--ink-3);
  max-width: 36rem;
  text-wrap: pretty;
}

.eyebrow {
  display: block;
  font-size: 0.75rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}

.rule { height: 1px; background: var(--line); border: 0; margin: 0; }

/* -------------------------------------------------------------- 4. buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.005em;
  text-decoration: none;
  cursor: pointer;
  transition: background-color .16s ease, border-color .16s ease, color .16s ease;
}

.btn--primary {
  background: var(--gold);
  border-color: var(--gold);
  color: #fff;
}
.btn--primary:hover { background: var(--gold-hover); border-color: var(--gold-hover); }

/* Outline on light ground. */
.btn--outline,
.btn--secondary {
  background: transparent;
  border-color: rgba(20,20,20,.22);
  color: var(--ink);
}
.btn--outline:hover,
.btn--secondary:hover { border-color: var(--ink); background: rgba(20,20,20,.03); }

/* Outline on dark ground (nav, CTA band). */
.btn--ghost {
  background: transparent;
  border-color: var(--line-inv);
  color: var(--ink-inv);
}
.btn--ghost:hover { border-color: rgba(247,245,240,.5); background: rgba(247,245,240,.07); }

.btn--sm, .btn--small { min-height: 38px; padding: 0 16px; font-size: 0.875rem; }

.btn-pair { display: flex; flex-wrap: wrap; gap: 12px; }

/* -------------------------------------------------- 5. links, ticks, facts */
.textlink {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
  border-bottom: 1px solid var(--line-strong);
  padding-bottom: 2px;
  transition: color .16s ease, border-color .16s ease;
}
.textlink:hover { color: var(--gold-hover); border-color: var(--gold); }
.textlink::after { content: "\2192"; font-weight: 500; }

/* Tick bullets — gold check drawn once as a data URI, ten words or fewer. */
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li {
  position: relative;
  padding-left: 26px;
  font-size: 0.9375rem;
  color: var(--ink-2);
  line-height: 1.5;
}
.ticks li::before {
  content: "";
  position: absolute;
  left: 0; top: 4px;
  width: 16px; height: 16px;
  background: no-repeat center/16px 16px
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20' fill='none' stroke='%23B8860B' stroke-width='2.1' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4 10.5l4 4 8-9'/%3E%3C/svg%3E");
}

/* One-line trust facts, separated by hairlines. */
.fact-row {
  display: grid;
  gap: 0;
  border-top: 1px solid var(--line);
}
.fact {
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-2);
}
.fact strong { color: var(--ink); font-weight: 600; }

@media (min-width: 760px) {
  .fact-row { grid-template-columns: repeat(4, 1fr); border-bottom: 1px solid var(--line); }
  .fact { border-bottom: 0; border-left: 1px solid var(--line); padding: 22px 24px; }
  .fact:first-child { border-left: 0; padding-left: 0; }
}

/* ---------------------------------------------------------------- 6. plate */
/* Every screenshot lives in a plate: white frame, hairline, optional browser
   chrome bar. Shadow is reserved for the hero plate. */
.plate {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  overflow: hidden;
}
.plate__chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  height: 28px;
  padding: 0 12px;
  background: var(--bg-tint);
  border-bottom: 1px solid var(--line);
}
.plate__chrome span {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--line-strong);
}
.plate__frame { position: relative; overflow: hidden; background: var(--surface); }
.plate__frame img { width: 100%; display: block; }

/* Crop windows — screenshots are tall; show the part that carries the claim. */
.plate--crop .plate__frame { aspect-ratio: 4 / 3; }
.plate--crop .plate__frame img { height: 100%; object-fit: cover; object-position: top center; }

/* A centre crop, for wide captures with dead margin either side. */
.plate--focus .plate__frame { aspect-ratio: 4 / 3; }
.plate--focus .plate__frame img { height: 100%; object-fit: cover; object-position: center; }

/* A wide band crop, for screens whose claim sits in the top few hundred px. */
.plate--band .plate__frame { aspect-ratio: 4 / 3; }
.plate--band .plate__frame img { height: 100%; object-fit: cover; object-position: center 2%; }

@media (min-width: 760px) {
  .plate--crop .plate__frame { aspect-ratio: 3 / 2; }
  .plate--focus .plate__frame { aspect-ratio: 3 / 2; }
  .plate--band .plate__frame { aspect-ratio: 1.9 / 1; }
}

/* A tinted well behind a plate gives depth without a shadow. */
.well {
  background: var(--bg-tint);
  border-radius: var(--r-well);
  padding: 16px;
}
@media (min-width: 760px) { .well { padding: 28px; } }

/* On a phone a whole desktop capture is unreadable, so the plate that carries
   the claim zooms into the part that proves it. */
@media (max-width: 759px) {
  .plate--band .plate__frame img { width: 152%; margin-left: -10%; max-width: none; }
}

/* ------------------------------------------------------------------ 7. nav */
.nav {
  position: sticky;
  top: 0;
  z-index: 60;
  background: var(--dark);
  border-bottom: 1px solid rgba(247,245,240,.08);
}
.nav--scrolled { box-shadow: 0 1px 0 rgba(0,0,0,.4); }

.nav__inner {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: 68px;
}

.nav__logo { display: inline-flex; align-items: center; flex-shrink: 0; }
.nav__logo-lockup { width: 148px; height: auto; }

.nav__links { display: none; }

.nav__link {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--ink-inv-2);
  text-decoration: none;
  transition: color .16s ease;
}
.nav__link:hover { color: var(--ink-inv); }
.nav__link--active { color: var(--ink-inv); }

.nav__ctas { display: flex; gap: 10px; }

.nav__hamburger {
  display: inline-flex;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
  width: 40px; height: 40px;
  padding: 0 8px;
  background: none;
  border: 0;
  cursor: pointer;
}
.nav__hamburger span {
  display: block;
  width: 22px;
  height: 1.5px;
  background: var(--ink-inv);
  border-radius: 2px;
  transition: transform .18s ease, opacity .18s ease;
}
.nav__hamburger.active span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav__hamburger.active span:nth-child(2) { opacity: 0; }
.nav__hamburger.active span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile: dropdown overlay under the bar, not a slide-in panel. */
.nav__links.active {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 0;
  position: absolute;
  top: 100%; left: 0; right: 0;
  max-height: calc(100vh - 68px);
  overflow-y: auto;
  padding: 8px var(--gutter) 24px;
  background: var(--dark);
  border-bottom: 1px solid rgba(247,245,240,.12);
}
.nav__links.active .nav__link {
  padding: 14px 0;
  font-size: 1.0625rem;
  border-bottom: 1px solid rgba(247,245,240,.08);
}
.nav__links.active .nav__ctas {
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.nav__links.active .btn { min-height: 46px; font-size: 0.9375rem; }

@media (min-width: 1040px) {
  .nav__hamburger { display: none; }
  .nav__links { display: flex; align-items: center; gap: 28px; }
  .nav__ctas { margin-left: 8px; }
}

/* ----------------------------------------------------------------- 8. hero */
/* The only centred block on the page besides the CTA band. */
.hero {
  padding: clamp(48px, 6vw, 84px) 0 0;
  text-align: center;
}
.hero__inner { max-width: 58rem; margin: 0 auto; }
.hero .eyebrow { margin-bottom: 20px; }
/* Tuned so the line breaks after "catalogue" rather than orphaning a word. */
.hero__title { margin: 0 auto; max-width: 880px; text-wrap: pretty; }
.hero__sub {
  margin: 24px auto 0;
  max-width: 40rem;
  font-size: 1.125rem;
  line-height: 1.6;
  color: var(--ink-2);
  text-wrap: pretty;
}
.hero__ctas { justify-content: center; margin-top: 30px; }
.hero__risk {
  margin: 16px 0 0;
  font-size: 0.875rem;
  color: var(--ink-3);
}

/* The plate steps over the boundary into the tinted strip below. */
.hero__plate {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: clamp(36px, 5vw, 56px) auto calc(var(--section) * -0.6);
  box-shadow: var(--shadow-plate);
}
/* Trim the collapsed sidebar sliver on the left of the capture. */
.hero__plate .plate__frame img {
  width: calc(100% + 46px);
  max-width: none;
  margin-left: -40px;
}
/* On a phone the whole capture is unreadable, so zoom the record itself. */
@media (max-width: 759px) {
  .hero__plate .plate__frame img { width: 174%; margin-left: -14%; }
}

/* ----------------------------------------------------------- 9. logo-strip */
.logo-strip {
  background: var(--bg-tint);
  padding: calc(var(--section) * 0.6 + 44px) 0 40px;
  text-align: center;
}
.logo-strip__lead {
  margin: 0 0 20px;
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-3);
}
.logo-strip__list {
  list-style: none;
  margin: 0; padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: 12px 24px;
}
.logo-strip__name {
  font-family: var(--font-display);
  font-size: 1.125rem;
  font-weight: 500;
  color: var(--ink);
  letter-spacing: -0.01em;
  opacity: .76;
}

@media (min-width: 760px) {
  .logo-strip__list { gap: 18px 44px; }
  .logo-strip__name { font-size: 1.3125rem; }
}

/* --------------------------------------------------------- 10. feature-row */
/* 7/5 alternating: screenshot takes the wide column, copy the narrow one. */
.feature-rows { display: grid; gap: clamp(56px, 7vw, 96px); }

.feature-row { display: grid; gap: 32px; align-items: center; }
.feature-row__body .eyebrow { margin-bottom: 12px; }
.feature-row__body h2 { margin: 0; }
.feature-row__line {
  margin: 14px 0 0;
  font-size: 1.0625rem;
  color: var(--ink-3);
}
.feature-row__body .ticks { margin-top: 24px; }
.feature-row__body .textlink { margin-top: 26px; }

@media (min-width: 900px) {
  .feature-row {
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: clamp(48px, 5vw, 76px);
  }
  /* Mirror the row: the screenshot keeps the wide column on either side. */
  .feature-row--reverse { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .feature-row--reverse .feature-row__media { order: 2; }
  .feature-row--reverse .feature-row__body { order: 1; }
}

/* ----------------------------------------------------------- 11. stat-band */
.stat-grid { display: grid; gap: 32px; }
.stat__rule { display: block; width: 28px; height: 2px; background: var(--gold); }
.stat__figure {
  display: block;
  margin: 18px 0 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(2.25rem, 1.6rem + 2.1vw, 3.25rem);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.stat__caption {
  margin: 12px 0 0;
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--ink-3);
  max-width: 15rem;
}
.stat-note {
  margin: clamp(32px, 4vw, 48px) 0 0;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  font-size: 0.9375rem;
  color: var(--ink-3);
  max-width: 46rem;
}

@media (min-width: 640px) { .stat-grid { grid-template-columns: repeat(2, 1fr); gap: 40px 32px; } }
@media (min-width: 1040px) { .stat-grid { grid-template-columns: repeat(4, 1fr); } }

/* ----------------------------------------------------------- 12. card-grid */
/* Once per page. Icon, title, one line, optional ticks, one link. */
.card-grid { display: grid; gap: 16px; }

.card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
  transition: border-color .18s ease, transform .18s ease;
}
.card:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.card__icon { color: var(--gold); margin-bottom: 18px; }
.card__icon svg { width: 20px; height: 20px; }
.card__title { margin: 0 0 8px; }
.card__line {
  margin: 0;
  font-size: 0.9375rem;
  line-height: 1.55;
  color: var(--ink-3);
}
.card .ticks { margin-top: 16px; }
.card__link { margin-top: auto; padding-top: 22px; }
.card__link a {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  text-decoration: none;
}
.card__link a::after { content: "\2192"; color: var(--gold); }
.card__link a:hover { color: var(--gold-hover); }

@media (min-width: 640px) { .card-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) {
  .card-grid--3 { grid-template-columns: repeat(3, 1fr); }
  .card-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --------------------------------------------------------------- 13. proof */
.proof__panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: clamp(28px, 4vw, 48px);
  animation: v2-fade .2s ease both;
}
.proof__panel[hidden] { display: none; }
.proof__quote {
  margin: 0;
  font-size: clamp(1.125rem, 0.95rem + 0.7vw, 1.5rem);
  line-height: 1.5;
  letter-spacing: -0.01em;
  color: var(--ink);
  max-width: 40rem;
}
.proof__cite {
  display: block;
  margin-top: 20px;
  font-size: 0.875rem;
  font-style: normal;
  color: var(--ink-3);
}
.proof__stats {
  display: grid;
  gap: 24px;
  margin-top: 32px;
  padding-top: 28px;
  border-top: 1px solid var(--line);
}
.proof__aside { margin-top: 24px; }
.proof__aside .textlink { margin-top: 16px; }
.proof .fact-row { margin-top: clamp(28px, 3.5vw, 40px); }

@media (min-width: 900px) {
  .proof__panel {
    display: grid;
    grid-template-columns: minmax(0, 7fr) minmax(0, 5fr);
    gap: 56px;
    align-items: start;
  }
  .proof__aside { margin-top: 6px; }
  .proof__cite { margin-top: 0; }
}

/* Segment tabs (used on inner pages; the homepage runs a single panel). */
.proof__tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  margin-bottom: 28px;
  border-bottom: 1px solid var(--line);
}
.proof__tab {
  appearance: none;
  background: none;
  border: 0;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  padding: 0 0 12px;
  font-family: var(--font-body);
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
  transition: color .16s ease, border-color .16s ease;
}
.proof__tab:hover { color: var(--ink); }
.proof__tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--gold); }

@keyframes v2-fade { from { opacity: 0; } to { opacity: 1; } }
@media (min-width: 640px) { .proof__stats { grid-template-columns: repeat(2, 1fr); } }

/* ------------------------------------------------------- 14. pricing-cards */
.billing-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  margin-bottom: 32px;
  background: var(--bg-tint);
  border: 1px solid var(--line);
  border-radius: 999px;
}
.billing-toggle button {
  appearance: none;
  border: 0;
  background: none;
  border-radius: 999px;
  padding: 8px 18px;
  font-family: var(--font-body);
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink-3);
  cursor: pointer;
}
.billing-toggle button[aria-pressed="true"] {
  background: var(--surface);
  color: var(--ink);
  box-shadow: 0 1px 2px rgba(20,20,20,.08);
}
.pill {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--gold-tint);
  color: var(--gold-hover);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.tier-grid { display: grid; gap: 16px; }
.tier {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  padding: 28px;
}
.tier--featured { border-color: var(--gold); }
.tier__name { margin: 0; }
.tier__price {
  display: block;
  margin: 16px 0 4px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 2.25rem;
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.tier__unit { font-size: 0.8125rem; color: var(--ink-3); }
.tier .ticks { margin: 22px 0 26px; }
.tier .btn { margin-top: auto; width: 100%; }
.tier__alt { margin-top: 10px; text-align: center; font-size: 0.8125rem; }
.tier__alt a { color: var(--ink-3); }

@media (min-width: 640px) { .tier-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .tier-grid { grid-template-columns: repeat(4, 1fr); } }

/* ----------------------------------------------------------------- 15. faq */
.faq { max-width: 46rem; border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 32px 20px 0;
  position: relative;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  font-weight: 600;
  color: var(--ink);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: "";
  position: absolute;
  right: 4px; top: 50%;
  width: 12px; height: 2px;
  margin-top: -1px;
  background: var(--gold);
}
.faq__item summary::before {
  content: "";
  position: absolute;
  right: 9px; top: 50%;
  width: 2px; height: 12px;
  margin-top: -6px;
  background: var(--gold);
  transition: opacity .16s ease;
}
.faq__item[open] summary::before { opacity: 0; }
.faq__answer { padding: 0 0 22px; font-size: 0.9375rem; color: var(--ink-2); max-width: 40rem; }

/* ------------------------------------------------------------ 16. cta-band */
.cta-band {
  background: var(--dark);
  color: var(--ink-inv);
  padding: clamp(64px, 8vw, 104px) 0;
  text-align: center;
}
.cta-band h2 { color: var(--ink-inv); max-width: 20ch; margin: 0 auto; }
.cta-band__line {
  margin: 20px auto 0;
  max-width: 34rem;
  font-size: 1.0625rem;
  color: var(--ink-inv-2);
}
.cta-band__ctas { justify-content: center; margin-top: 30px; }

/* -------------------------------------------------------------- 17. footer */
.footer {
  background: var(--dark-2);
  color: var(--ink-inv-2);
  padding: clamp(48px, 6vw, 72px) 0 40px;
  font-size: 0.875rem;
}
.footer__top {
  display: grid;
  gap: 14px;
  padding-bottom: 36px;
  border-bottom: 1px solid var(--line-inv);
}
.footer__logo-lockup { width: 148px; height: auto; }
.footer__line { margin: 0; max-width: 34rem; color: var(--ink-inv-2); }

.footer__cols {
  display: grid;
  gap: 32px;
  padding: 36px 0;
}
.footer__heading {
  margin: 0 0 14px;
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-inv);
}
.footer__link {
  display: block;
  padding: 5px 0;
  color: var(--ink-inv-2);
  text-decoration: none;
  transition: color .16s ease;
}
.footer__link:hover { color: var(--ink-inv); }

.footer__legal {
  padding-top: 28px;
  border-top: 1px solid var(--line-inv);
  font-size: 0.8125rem;
  color: rgba(247,245,240,.45);
}
.footer__legal p { margin: 0 0 6px; }

@media (min-width: 640px) { .footer__cols { grid-template-columns: repeat(2, 1fr); gap: 36px; } }
@media (min-width: 1040px) {
  .footer__top { grid-template-columns: 200px 1fr; align-items: center; gap: 40px; }
  .footer__cols { grid-template-columns: repeat(5, 1fr); }
}

/* ------------------------------------------------------- 18. cookie-banner */
.cookie-banner {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  z-index: 90;
  background: var(--surface);
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 32px rgba(20,20,20,.10);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner__inner {
  max-width: var(--max);
  margin: 0 auto;
  padding: 18px var(--gutter);
  display: grid;
  gap: 14px;
  align-items: center;
}
.cookie-banner__text { margin: 0; font-size: 0.8125rem; color: var(--ink-2); }
.cookie-banner__text a { color: var(--gold-hover); }
.cookie-banner__actions { display: flex; gap: 10px; }

.cookie-settings-reopen {
  position: fixed;
  bottom: 16px; left: 16px;
  z-index: 80;
  padding: 7px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-btn);
  font-family: var(--font-body);
  font-size: 0.75rem;
  color: var(--ink-3);
  cursor: pointer;
}
.cookie-settings-reopen[hidden] { display: none; }

@media (min-width: 900px) {
  .cookie-banner__inner { grid-template-columns: 1fr auto; gap: 28px; }
}

/* ------------------------------------------------- 19a. motion: reveals */
/* Things settle into place as they enter the viewport. JS puts .js-reveal on
   <html>; without it every element is simply visible. --i staggers siblings. */
.js-reveal .reveal {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity .6s cubic-bezier(.2,.7,.2,1), transform .6s cubic-bezier(.2,.7,.2,1);
  transition-delay: calc(var(--i, 0) * 80ms);
}
/* Sideways reveals only on wide screens; on a phone a 22px shift to the
   right would widen the document and let it scroll sideways. */
@media (min-width: 760px) {
  .js-reveal .reveal--left  { transform: translateX(-22px); }
  .js-reveal .reveal--right { transform: translateX(22px); }
}
.js-reveal .reveal--scale { transform: translateY(24px) scale(.985); }
.js-reveal .reveal.is-in  { opacity: 1; transform: none; }

/* The gold stat rule draws itself once the stat is in view. */
.js-reveal .stat .stat__rule { width: 0; transition: width .5s cubic-bezier(.2,.7,.2,1) calc(var(--i, 0) * 80ms + .25s); }
.js-reveal .stat.is-in .stat__rule { width: 28px; }

/* Tick bullets tick in one after another. */
.js-reveal .reveal .ticks li::before { transform: scale(0); transition: transform .3s cubic-bezier(.3,1.4,.5,1); }
.js-reveal .reveal.is-in .ticks li::before { transform: scale(1); }
.js-reveal .reveal.is-in .ticks li:nth-child(1)::before { transition-delay: .35s; }
.js-reveal .reveal.is-in .ticks li:nth-child(2)::before { transition-delay: .5s; }
.js-reveal .reveal.is-in .ticks li:nth-child(3)::before { transition-delay: .65s; }

/* Micro-interactions: buttons lift, arrows nudge, plates float on hover. */
.btn { transition: background-color .16s ease, border-color .16s ease, color .16s ease, transform .16s ease, box-shadow .16s ease; }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 8px 20px rgba(184,134,11,.28); }
.btn:active { transform: translateY(0) scale(.98); box-shadow: none; }
.textlink::after { display: inline-block; transition: transform .18s ease; }
.textlink:hover::after { transform: translateX(3px); }
.card__link a::after { display: inline-block; margin-left: 5px; transition: transform .18s ease; }
.card:hover .card__link a::after { transform: translateX(3px); }
.card__icon { transition: transform .25s cubic-bezier(.3,1.4,.5,1); }
.card:hover .card__icon { transform: translateY(-2px) rotate(-4deg); }
.well .plate { transition: transform .35s cubic-bezier(.2,.7,.2,1), box-shadow .35s ease; }
.well:hover .plate { transform: translateY(-4px); box-shadow: 0 18px 40px rgba(20,20,20,.10); }
.logo-strip__name { transition: opacity .2s ease, color .2s ease; }
.logo-strip__name:hover { opacity: 1; color: var(--gold-hover); }

/* ---------------------------------------------- 19b. stage and callouts */
/* A stage is a tinted, rounded panel that screenshots and vignettes sit on;
   callouts are small chips floating over the plate that name the claim. */
.well--stage { position: relative; overflow: visible; }
.callout {
  position: absolute;
  z-index: 3;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 260px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 10px 30px rgba(20,20,20,.12);
  font-size: 0.8125rem;
  line-height: 1.35;
  color: var(--ink-2);
  animation: vg-float 7s ease-in-out infinite alternate;
}
.callout b { color: var(--ink); font-weight: 600; }
.callout__dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); }
.callout__dot--warn { background: var(--warn); }
.callout__dot--gold { background: var(--gold); }
.callout svg { flex: none; width: 16px; height: 16px; color: var(--gold); }
.callout--tl { top: 8px; left: -8px; }
.callout--tr { top: 8px; right: -8px; animation-delay: -2.5s; }
.callout--bl { bottom: 10px; left: -8px; animation-delay: -4s; }
.callout--br { bottom: 10px; right: -8px; animation-delay: -1.5s; }
.js-reveal .callout { opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .45s ease .5s, transform .45s cubic-bezier(.3,1.3,.5,1) .5s; animation: none; }
.js-reveal .is-in .callout { opacity: 1; transform: none; animation: vg-float 7s ease-in-out 1s infinite alternate; }
.js-reveal .is-in .callout--tr { animation-delay: -1.5s; }
.js-reveal .is-in .callout--bl { animation-delay: -3s; }
.js-reveal .is-in .callout--br { animation-delay: -4.5s; }
@media (min-width: 760px) {
  .callout { font-size: 0.875rem; padding: 10px 14px; }
  .callout--tl { top: 18px; left: -18px; }
  .callout--tr { top: 18px; right: -18px; }
  .callout--bl { bottom: 22px; left: -18px; }
  .callout--br { bottom: 22px; right: -18px; }
}
@keyframes vg-float {
  from { translate: 0 0; }
  to   { translate: 0 -6px; }
}

/* ------------------------------------------------- 19c. hero vignette */
/* Instead of a raw capture, the hero shows the product's one idea as a
   composed scene: AI describes a record with its evidence, an archivist
   reviews and accepts it, and it is published. Real record, real fields,
   real exports. Fields carry an evidence mark (cited / no evidence), never a
   per-field confidence score: the app does not produce one.
   States on [data-vignette]: draft -> review -> accepted (default: accepted). */
.hero__stage {
  position: relative;
  z-index: 2;
  max-width: 1040px;
  margin: clamp(36px, 5vw, 56px) auto calc(var(--section) * -0.6);
}
.stage {
  position: relative;
  border-radius: 20px;
  padding: 20px 16px 16px;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(212,160,23,.22), transparent 55%),
    radial-gradient(circle at 100% 100%, rgba(184,134,11,.10), transparent 45%),
    var(--gold-tint);
}
.stage::before {
  content: "";
  position: absolute; inset: 0;
  border-radius: inherit;
  background-image: radial-gradient(rgba(20,20,20,.10) 1px, transparent 1.2px);
  background-size: 22px 22px;
  mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse at 50% 40%, #000 30%, transparent 75%);
  pointer-events: none;
}
.vg { position: relative; margin: 0; }

/* The record card */
.vg__record {
  position: relative;
  z-index: 2;
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-card);
  box-shadow: 0 24px 60px rgba(20,20,20,.12);
  padding: 16px 16px 14px;
  text-align: left;
}
.vg__top {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  font-size: 0.75rem; color: var(--ink-3);
}
.vg__crumb { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.vg__status {
  position: relative; flex: none;
  display: inline-grid;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: .02em;
}
.vg__status > span {
  grid-area: 1 / 1;
  padding: 3px 10px;
  border-radius: 999px;
  transition: opacity .3s ease, transform .3s cubic-bezier(.3,1.4,.5,1);
}
.vg__status-unreviewed { background: #FBF3DD; color: var(--warn); }
.vg__status-accepted   { background: #E4F3EA; color: var(--ok); opacity: 0; transform: scale(.7); }
.vg__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-top: 12px; }
.vg__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: clamp(1.1rem, 0.95rem + 0.9vw, 1.5rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.vg__accept-wrap { position: relative; flex: none; }
.vg__accept {
  display: inline-flex; align-items: center; gap: 6px;
  min-height: 32px; padding: 0 12px;
  border: 1px solid var(--gold); border-radius: 6px;
  background: var(--gold); color: #fff;
  font-family: var(--font-body); font-size: 0.8125rem; font-weight: 600;
  transition: transform .18s cubic-bezier(.3,1.4,.5,1), background-color .18s ease;
}
.vg__accept svg { width: 14px; height: 14px; }
.vg__accept-ring {
  position: absolute; inset: -6px; border-radius: 10px;
  border: 2px solid var(--gold); opacity: 0; pointer-events: none;
}

.vg__mode {
  display: inline-grid;
  margin-top: 14px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase;
  color: var(--ink-3);
}
.vg__mode > span { grid-area: 1 / 1; display: flex; align-items: center; gap: 6px; transition: opacity .25s ease; opacity: 0; }
.vg__mode > span::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); }
.vg__mode > .vg__mode-accepted::before { background: var(--ok); }
.vg__mode-draft::after {
  content: ""; width: 34px; height: 4px; border-radius: 2px;
  background: linear-gradient(90deg, var(--line) 0%, var(--gold-light) 50%, var(--line) 100%);
  background-size: 200% 100%;
  animation: vg-shimmer 1.1s linear infinite;
}
@keyframes vg-shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }

.vg__fields { margin: 10px 0 0; display: grid; border-top: 1px solid var(--line); }
.vg__field {
  display: grid;
  grid-template-columns: 74px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: baseline;
  padding: 8px 6px;
  margin: 0 -6px;
  border-bottom: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.8125rem;
  transition: background-color .35s ease, opacity .4s ease, transform .4s cubic-bezier(.2,.7,.2,1);
}
.vg__field dt { color: var(--ink-3); font-weight: 500; }
.vg__field dd { margin: 0; color: var(--ink); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.vg__field--long dd { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.vg__ev {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.6875rem; font-weight: 600; letter-spacing: .02em; color: var(--ink-3);
  white-space: nowrap;
  transition: opacity .3s ease, color .3s ease;
}
.vg__ev::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: var(--ok);
  transition: transform .3s cubic-bezier(.3,1.4,.5,1), background-color .3s ease;
}
.vg__field[data-ev="none"] .vg__ev { color: var(--warn); }
.vg__field[data-ev="none"] .vg__ev::before { background: var(--warn); }
.vg__tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 12px; }
.vg__tags span {
  padding: 2px 9px; border-radius: 999px;
  background: var(--bg-tint); color: var(--ink-2);
  font-size: 0.6875rem; font-weight: 500;
  transition: opacity .3s ease, transform .3s ease;
}

/* The source page, propped behind the record */
.vg__source {
  position: absolute;
  z-index: 1;
  display: none;
  width: 210px;
  right: 56px; top: 24px;
  padding: 8px 8px 30px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(20,20,20,.14);
  rotate: 3deg;
}
.vg__source img { border-radius: 3px; width: 100%; height: auto; }
.vg__source-label {
  position: absolute; left: 8px; right: 8px; bottom: 9px;
  font-family: var(--font-mono); font-size: 0.6rem; color: var(--ink-3);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}

/* Floating chips */
.vg__chip {
  position: absolute;
  z-index: 4;
  display: inline-flex; align-items: flex-start; gap: 8px;
  max-width: 240px;
  padding: 9px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(20,20,20,.14);
  font-size: 0.75rem; line-height: 1.35; color: var(--ink-2);
  text-align: left;
  transition: opacity .4s ease, transform .5s cubic-bezier(.3,1.3,.5,1);
}
.vg__chip b { color: var(--ink); font-weight: 600; }
.vg__chip svg { flex: none; width: 16px; height: 16px; margin-top: 1px; color: var(--gold); }
.vg__chip--human svg, .vg__chip--export svg { color: var(--ok); }
.vg__chip--rationale { left: -6px; bottom: 28%; }
.vg__chip--pii { right: -6px; top: 40%; }
.vg__chip--export { right: -6px; bottom: -12px; }
.vg__chip--human { left: 12px; top: -14px; }
.vg__exports { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 5px; }
.vg__exports span {
  padding: 1px 7px; border-radius: 4px;
  background: var(--bg-tint); font-family: var(--font-mono); font-size: 0.65rem; color: var(--ink);
}

/* Phone layout: chips sit under the record instead of over it. Chips of
   the same beat share a grid cell, so the stage never changes height. */
@media (max-width: 759px) {
  .vg { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; }
  .vg__record { grid-row: 1; grid-column: 1; }
  .vg__chip { position: static; max-width: none; display: flex; grid-column: 1; }
  .vg__chip--rationale, .vg__chip--human { grid-row: 2; }
  .vg__chip--pii, .vg__chip--export { grid-row: 3; }
  .vg__chip--rationale, .vg__chip--human, .vg__chip--pii, .vg__chip--export { left: auto; right: auto; top: auto; bottom: auto; }
}

/* Desktop layout: the record takes the left 60%, the source sits behind it
   to the right, chips overlap the edges. */
@media (min-width: 760px) {
  .stage { padding: 44px 48px 24px; border-radius: 24px; }
  .vg__record { width: 62%; padding: 22px 24px 20px; }
  .vg__source { display: block; }
  .vg__chip { font-size: 0.8125rem; padding: 10px 14px; max-width: 270px; }
  .vg__chip--rationale { left: auto; right: 24px; bottom: auto; top: 57%; max-width: 250px; }
  .vg__chip--pii { right: 48px; top: auto; bottom: -6px; max-width: 230px; }
  .vg__chip--export { right: 24px; bottom: 2%; }
  .vg__chip--human { left: 56%; top: -18px; }
  .vg__field { grid-template-columns: 96px minmax(0, 1fr) auto; font-size: 0.875rem; padding: 10px 8px; margin: 0 -8px; }
}
@media (min-width: 1040px) {
  .vg__record { width: 58%; }
  .vg__source { width: 250px; right: 70px; }
  .vg__chip--rationale { right: 28px; top: 58%; max-width: 270px; }
  .vg__chip--pii { right: 70px; bottom: 0; }
  .vg__chip--export { right: 40px; bottom: 6%; }
}

/* A plain stage around a hero screenshot on pages without a vignette. */
.stage--plate { padding: 14px; }
.stage--plate .hero__plate { margin: 0; max-width: none; }
@media (min-width: 760px) { .stage--plate { padding: 28px 28px 0; border-radius: 24px 24px 0 0; overflow: hidden; } .stage--plate .hero__plate { border-bottom: 0; border-radius: var(--r-card) var(--r-card) 0 0; } }

/* ---- state machine ---------------------------------------------------- */
/* reset: everything cleared, no transitions, ready for a fresh draft. */
[data-vignette][data-state="reset"] .vg__field,
[data-vignette][data-state="reset"] .vg__tags span { opacity: 0; transform: translateY(6px); transition: none; }
[data-vignette][data-state="reset"] .vg__chip { opacity: 0; transform: translateY(10px) scale(.96); transition: none; }
[data-vignette][data-state="reset"] .vg__ev { opacity: 0; transition: none; }
[data-vignette][data-state="reset"] .vg__status-accepted { transition: none; }

/* draft: fields land one by one, confidence and tags appear, chips hidden. */
[data-vignette][data-state="draft"] .vg__field { opacity: 1; transform: none; }
[data-vignette][data-state="draft"] .vg__field:nth-child(1) { transition-delay: .05s; }
[data-vignette][data-state="draft"] .vg__field:nth-child(2) { transition-delay: .25s; }
[data-vignette][data-state="draft"] .vg__field:nth-child(3) { transition-delay: .45s; }
[data-vignette][data-state="draft"] .vg__field:nth-child(4) { transition-delay: .65s; }
[data-vignette][data-state="draft"] .vg__field:nth-child(5) { transition-delay: .85s; }
[data-vignette][data-state="draft"] .vg__ev { opacity: 1; transition-delay: 1.3s; }
[data-vignette][data-state="draft"] .vg__tags span { opacity: 1; transform: none; }
[data-vignette][data-state="draft"] .vg__tags span:nth-child(1) { transition-delay: 1.4s; }
[data-vignette][data-state="draft"] .vg__tags span:nth-child(2) { transition-delay: 1.5s; }
[data-vignette][data-state="draft"] .vg__tags span:nth-child(3) { transition-delay: 1.6s; }
[data-vignette][data-state="draft"] .vg__tags span:nth-child(4) { transition-delay: 1.7s; }
[data-vignette][data-state="draft"] .vg__tags span:nth-child(5) { transition-delay: 1.8s; }
[data-vignette][data-state="draft"] .vg__chip { opacity: 0; transform: translateY(10px) scale(.96); }
[data-vignette][data-state="draft"] .vg__mode-draft { opacity: 1; }
[data-vignette][data-state="draft"] .vg__status-accepted { opacity: 0; transform: scale(.7); }

/* review: the low-confidence row is highlighted; rationale and PII chips in. */
[data-vignette][data-state="review"] .vg__field[data-ev="none"] { background: #FFF6E5; }
[data-vignette][data-state="review"] .vg__field[data-ev="none"] .vg__ev::before { transform: scale(1.5); }
[data-vignette][data-state="review"] .vg__chip--rationale,
[data-vignette][data-state="review"] .vg__chip--pii { opacity: 1; transform: none; }
[data-vignette][data-state="review"] .vg__chip--pii { transition-delay: .5s; }
[data-vignette][data-state="review"] .vg__chip--export,
[data-vignette][data-state="review"] .vg__chip--human { opacity: 0; transform: translateY(10px) scale(.96); }
[data-vignette][data-state="review"] .vg__mode-review { opacity: 1; }
[data-vignette][data-state="review"] .vg__status-accepted { opacity: 0; transform: scale(.7); }

/* accepted: the button presses, the status flips, exports leave. */
[data-vignette][data-state="accepted"] .vg__accept { background: var(--gold-hover); transform: scale(.96); }
[data-vignette][data-state="accepted"] .vg__accept-ring { animation: vg-ring .7s ease-out both; }
[data-vignette][data-state="accepted"] .vg__status-unreviewed { opacity: 0; transform: scale(.7); }
[data-vignette][data-state="accepted"] .vg__status-accepted { opacity: 1; transform: none; transition-delay: .1s; }
[data-vignette][data-state="accepted"] .vg__chip--rationale,
[data-vignette][data-state="accepted"] .vg__chip--pii { opacity: 0; transform: translateY(-6px) scale(.97); }
[data-vignette][data-state="accepted"] .vg__chip--human { opacity: 1; transform: none; transition-delay: .25s; }
[data-vignette][data-state="accepted"] .vg__chip--export { opacity: 1; transform: none; transition-delay: .7s; }
[data-vignette][data-state="accepted"] .vg__mode-accepted { opacity: 1; }
[data-vignette][data-state="accepted"] .vg__field[data-ev="none"] .vg__ev::before { background: var(--ok); }
[data-vignette][data-state="accepted"] .vg__field[data-ev="none"] .vg__ev { color: var(--ink-3); }

/* Static default (no JS or reduced motion): the accepted record. */
[data-vignette]:not([data-state]) .vg__status-unreviewed { opacity: 0; }
[data-vignette]:not([data-state]) .vg__status-accepted { opacity: 1; transform: none; }
[data-vignette]:not([data-state]) .vg__mode-accepted { opacity: 1; }
[data-vignette]:not([data-state]) .vg__chip--rationale,
[data-vignette]:not([data-state]) .vg__chip--pii { display: none; }

/* Idle float on the chips and the source page while a state holds. */
[data-vignette].is-live .vg__chip--human  { animation: vg-float 6s ease-in-out -1s infinite alternate; }
[data-vignette].is-live .vg__chip--export { animation: vg-float 6s ease-in-out -3s infinite alternate; }
[data-vignette].is-live .vg__chip--rationale { animation: vg-float 6s ease-in-out -2s infinite alternate; }
[data-vignette].is-live .vg__chip--pii { animation: vg-float 6s ease-in-out -4s infinite alternate; }
[data-vignette].is-live .vg__source { animation: vg-drift 9s ease-in-out infinite alternate; }
@keyframes vg-drift { from { translate: 0 0; } to { translate: 0 -8px; } }
@keyframes vg-ring {
  0%   { opacity: .9; transform: scale(.85); }
  100% { opacity: 0;  transform: scale(1.35); }
}

/* Step pills under the stage name the three beats and let a visitor jump. */
.stage__steps {
  position: relative; z-index: 3;
  display: flex; justify-content: center; flex-wrap: wrap; gap: 4px;
  margin: 18px 0 0;
  padding: 0; list-style: none;
}
.stage__step {
  appearance: none;
  border: 0;
  background: none;
  padding: 6px 8px;
  border-radius: 999px;
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 600;
  color: var(--ink-3);
  display: inline-flex; align-items: center; gap: 8px;
  cursor: pointer;
  transition: color .2s ease;
}
.stage__step::before {
  content: ""; width: 18px; height: 3px; border-radius: 2px;
  background: rgba(20,20,20,.14);
  transition: background-color .2s ease, width .2s ease;
}
.stage__step:hover { color: var(--ink); }
.stage__step[aria-current="step"] { color: var(--ink); }
.stage__step[aria-current="step"]::before { background: var(--gold); width: 28px; }

/* ------------------------------------------ 19. a11y, motion, print, misc */
:focus-visible {
  outline: 2px solid var(--gold-light);
  outline-offset: 3px;
  border-radius: 3px;
}

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

/* Styleguide scaffolding only. */
.sg-spec {
  margin: 0 0 20px;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--gold-hover);
}
.sg-swatches { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.sg-swatch { border: 1px solid var(--line); border-radius: var(--r-card); overflow: hidden; background: var(--surface); }
.sg-swatch__chip { height: 64px; }
.sg-swatch__label { padding: 10px 12px; font-family: var(--font-mono); font-size: 0.6875rem; color: var(--ink-3); }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js-reveal .reveal, .js-reveal .callout { opacity: 1; transform: none; }
  .js-reveal .stat .stat__rule { width: 28px; }
  .js-reveal .reveal .ticks li::before { transform: none; }
  .callout, .vg__chip, .vg__source { animation: none; }
  *, *::before, *::after {
    animation-duration: 0.01ms;
    animation-iteration-count: 1;
    transition-duration: 0.01ms;
    scroll-behavior: auto;
  }
}

@media print {
  .nav, .cta-band, .cookie-banner, .cookie-settings-reopen, .footer__cols { display: none; }
  body.v2 { background: #fff; color: #000; font-size: 11pt; }
  .plate, .card, .tier { border-color: #999; break-inside: avoid; }
  .hero__plate { box-shadow: none; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 9pt; color: #555; }
}
