/* KontrolAI landing v2 — "dossier/rejestr" direction.
   The page reads as a typeset document about one register: a serif display face
   (Spectral, self-hosted OFL subset) over a warm near-black, system sans body,
   mono registry labels, hairline ledgers instead of icon cards, and a marginalia
   rail instead of ghost numerals. Radius 0, no gradients/glows, dark only.
   One accent family: desaturated ink-blue — the "stamp ink" of the register.
   --accent = borders/graphics/focus; --accent-tint = small accent text AND
   filled stamps/buttons (near-black text on tint ≈ 9:1, AA for small text). */

/* ---------- Self-hosted display face (zero external requests) ---------- */
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/spectral-600-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('/fonts/spectral-600-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/spectral-italic-latin.woff2') format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304,
    U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Spectral';
  font-style: italic;
  font-weight: 400;
  font-display: swap;
  src: url('/fonts/spectral-italic-latin-ext.woff2') format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308,
    U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113,
    U+2C60-2C7F, U+A720-A7FF;
}

:root {
  /* Warm near-black — tuned to sit under the cream/gold photography instead of
     fighting it. Panels alternate a half-step warmer. */
  --bg: #0c0b09;
  --panel: #12100d;
  --text: #ffffff;
  --body: #e8e4dd; /* warm stone — primary reading color */
  --muted: #b5afa5;
  --faint: #918a7f; /* ≥5:1 on --bg (verified in scripts/check-contrast.mjs) */
  --line: #2d2a25; /* hairlines */
  --line-strong: #474238;

  --accent: #4a7ba6; /* ink — borders, graphics, focus */
  --accent-tint: #8fb8dc; /* ink light — small accent text + filled stamps */
  --danger: #ff6b6b;

  --maxw: 1240px;
  --gutter: clamp(20px, 5vw, 64px);
  --railw: 190px;

  --serif: 'Spectral', Georgia, 'Times New Roman', serif;
  --font:
    -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, 'Helvetica Neue',
    sans-serif;
  --mono: ui-monospace, SFMono-Regular, 'SF Mono', Menlo, Consolas, 'Liberation Mono', monospace;
}

* {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--body);
  background: var(--bg);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text);
  font-family: var(--serif);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.01em;
  overflow-wrap: break-word;
}

p {
  margin: 0;
}

figure {
  margin: 0;
}

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

a {
  color: var(--text);
  text-decoration: none;
}
a:hover {
  color: var(--accent-tint);
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
::selection {
  background: var(--accent);
  color: #0c0b09;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  z-index: 100;
  background: var(--accent-tint);
  color: #0c0b09;
  padding: 10px 16px;
  font-weight: 600;
}
.skip-link:focus {
  left: 12px;
  top: 12px;
}

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin: 0 auto;
  padding-inline: var(--gutter);
}

/* Mono-uppercase label voice — section kickers (mobile), figure headers, stamps. */
.eyebrow {
  display: inline-block;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
}

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.25s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 700;
  font-size: 17px;
  letter-spacing: -0.01em;
}
.brand:hover {
  color: var(--text);
}
.brand-mark {
  width: 26px;
  height: 26px;
  flex: none;
  display: block;
}
.mark-node {
  fill: var(--accent);
}
.mark-stroke {
  stroke: var(--accent);
}
.nav-cta {
  display: inline-flex;
  align-items: center;
  height: 40px;
  padding: 0 18px;
  border: 1px solid var(--line-strong);
  color: var(--text);
  font-size: 14px;
  font-weight: 500;
  letter-spacing: -0.01em;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease;
}
.nav-cta:hover {
  border-color: var(--accent);
  color: var(--text);
  background: color-mix(in srgb, var(--accent) 14%, transparent);
}

/* ---------- Section scaffolding: marginalia rail, not ghost numerals ---------- */
.section {
  position: relative;
  border-top: 1px solid var(--line);
  scroll-margin-top: 84px;
}
.section--b {
  background: var(--panel);
}
.section-grid {
  padding-block: clamp(60px, 9vw, 118px);
}
.section-body {
  min-width: 0;
}
.rail {
  display: none;
}
.sm-only {
  display: inline-block;
  margin-bottom: 18px;
}
@media (min-width: 1080px) {
  .section-grid {
    display: grid;
    grid-template-columns: var(--railw) minmax(0, 1fr);
    column-gap: clamp(40px, 4.5vw, 72px);
  }
  .rail {
    display: block;
    position: sticky;
    top: 96px;
    align-self: start;
    font-family: var(--mono);
    text-transform: uppercase;
    padding-top: 6px;
    border-top: 1px solid var(--line-strong);
  }
  .rail-num {
    display: block;
    font-size: 13px;
    letter-spacing: 0.2em;
    color: var(--accent-tint);
    margin-bottom: 6px;
  }
  .rail-txt {
    display: block;
    font-size: 11px;
    letter-spacing: 0.18em;
    color: var(--faint);
    line-height: 1.7;
    max-width: 150px;
  }
  .sm-only {
    display: none;
  }
}

.section-head {
  max-width: 780px;
  margin-bottom: clamp(36px, 4.5vw, 56px);
}
.section-head h2 {
  font-size: clamp(29px, 3.8vw, 46px);
  text-wrap: balance;
}
.section-head p {
  margin-top: 20px;
  color: var(--body);
  font-size: clamp(16.5px, 1.7vw, 18.5px);
  max-width: 660px;
}
.section-head .asof {
  display: inline-block;
  margin-top: 22px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  color: var(--muted);
  border: 1px solid var(--line);
  padding: 6px 12px;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding-block: clamp(36px, 5vw, 72px) clamp(48px, 6vw, 88px);
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 44px);
}
@media (min-width: 981px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.08fr) minmax(0, 0.92fr);
    grid-template-areas:
      'copy card'
      'trust card';
    column-gap: clamp(36px, 4.5vw, 72px);
    row-gap: 0;
    align-items: start;
  }
  .hero-copy {
    grid-area: copy;
  }
  .hero-trust {
    grid-area: trust;
  }
  .hero-card {
    grid-area: card;
  }
  .hero {
    min-height: calc(100svh - 68px);
    display: flex;
    align-items: center;
  }
  .hero-grid {
    width: 100%;
  }
}
.hero-eyebrow {
  display: block;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(37px, 4.9vw, 68px);
  line-height: 1.04;
  letter-spacing: -0.015em;
}
.hero-title .line {
  display: block;
  overflow: hidden;
  padding-bottom: 0.04em;
}
.hero h1 .accent {
  color: var(--accent-tint);
}
.hero-promise {
  margin-top: 26px;
  max-width: 560px;
  font-size: clamp(17px, 1.9vw, 19.5px);
  color: var(--body);
  line-height: 1.55;
}
.hero-promise strong {
  color: var(--text);
  font-weight: 700;
}
.hero-cta-row {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 22px;
}
.btn-primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 56px;
  padding: 0 30px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: inherit;
  color: #0c0b09;
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint);
  cursor: pointer;
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    transform 0.08s ease;
}
.btn-primary:hover {
  background: var(--text);
  border-color: var(--text);
  color: #0c0b09;
}
.btn-primary:active {
  transform: translateY(1px);
}
.cta-sub {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.4;
}
.cta-sub b {
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: -0.01em;
}

/* Trust — three short human lines */
.trust {
  margin: 0;
  padding: 0;
  display: grid;
  gap: 13px;
  max-width: 560px;
  list-style: none;
}
.hero-trust {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}
.trust li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  color: var(--body);
  font-size: 15px;
  line-height: 1.45;
}
.trust svg {
  width: 18px;
  height: 18px;
  flex: none;
  margin-top: 1px;
  color: var(--muted);
}
.trust strong {
  color: var(--text);
  font-weight: 600;
}

/* ---------- Hero record card (REC 04 teaser) ---------- */
.hero-card {
  border: 1px solid var(--line-strong);
  background: var(--panel);
  max-width: 560px;
}
.card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 16px;
  border-bottom: 1px solid var(--line);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.card-head .card-ref {
  color: var(--accent-tint);
}
.card-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.card-caption {
  padding: 16px;
  border-top: 1px solid var(--line);
  display: grid;
  gap: 12px;
  justify-items: start;
}
.card-caption p {
  font-size: 14.5px;
  color: var(--muted);
  line-height: 1.55;
}
.card-caption em {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16.5px;
  color: var(--text);
}

/* ---------- AI provenance tag (the page labels its own illustrations) ---------- */
.ai-tag {
  position: absolute;
  top: 10px;
  right: 10px;
  font-family: var(--mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  padding: 5px 7px 5px 9px;
  color: #ffffff;
  background: rgba(12, 11, 9, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.34);
  backdrop-filter: blur(3px);
  -webkit-backdrop-filter: blur(3px);
  pointer-events: none;
}
.ai-tag--inline {
  position: static;
  flex: none;
  pointer-events: auto;
  background: transparent;
  color: var(--accent-tint);
  border-color: var(--line-strong);
}

/* ---------- Verdict stamps ---------- */
.verdict {
  font-family: var(--mono);
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 7px 11px;
  border: 1px solid var(--line-strong);
  line-height: 1.4;
}
.verdict.v-yes {
  background: var(--accent-tint);
  border-color: var(--accent-tint);
  color: #0c0b09;
}
.verdict.v-no {
  color: var(--muted);
}
.verdict.v-review {
  color: var(--accent-tint);
  border-color: var(--accent);
}
.verdict-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
}
.conf {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--faint);
  white-space: nowrap;
}
.photo-credit {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.04em;
  color: var(--faint);
  line-height: 1.5;
}

/* ---------- [01] Mini-demo: dropzone + result ---------- */
.demo-panel {
  display: grid;
  gap: 16px;
  max-width: 860px;
}
.dropzone {
  border: 1px dashed var(--line-strong);
  background: var(--panel);
  padding: clamp(28px, 4vw, 44px) clamp(20px, 3vw, 32px);
  display: grid;
  justify-items: center;
  gap: 12px;
  text-align: center;
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}
.dropzone:hover,
.dropzone:focus-visible,
.dropzone.is-drag {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 6%, var(--panel));
}
.dropzone.is-busy {
  pointer-events: none;
  opacity: 0.7;
}
.dropzone svg {
  width: 34px;
  height: 34px;
  color: var(--muted);
}
.dz-main {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 21px);
  font-weight: 600;
  color: var(--text);
}
.dz-main span {
  font-family: var(--font);
  font-size: 14px;
  font-weight: 400;
  color: var(--muted);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  height: 44px;
  padding: 0 22px;
  font-size: 15px;
  font-weight: 600;
  font-family: inherit;
  letter-spacing: -0.01em;
  color: var(--text);
  background: transparent;
  border: 1px solid var(--line-strong);
  cursor: pointer;
  transition:
    border-color 0.16s ease,
    background 0.16s ease;
}
.btn-ghost:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, transparent);
}
.dz-limits {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--faint);
}
.dz-input {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
}
.demo-result {
  border: 1px solid var(--line-strong);
  border-left: 2px solid var(--accent);
  background: var(--bg);
  padding: clamp(18px, 2.5vw, 26px);
  display: grid;
  gap: 12px;
}
/* display:grid would defeat the hidden attribute — restore it explicitly. */
.demo-result[hidden] {
  display: none;
}
.demo-result .dr-file {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--faint);
  overflow-wrap: anywhere;
}
.demo-result ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 7px;
}
.demo-result li {
  font-size: 14.5px;
  color: var(--body);
  line-height: 1.55;
  padding-left: 16px;
  position: relative;
}
.demo-result li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 0.62em;
  width: 7px;
  height: 1px;
  background: var(--accent);
}
.demo-result .dr-note {
  font-size: 12.5px;
  color: var(--faint);
  line-height: 1.55;
  border-top: 1px solid var(--line);
  padding-top: 12px;
}
.demo-result.is-error {
  border-left-color: var(--danger);
}
.demo-result.is-error p {
  color: var(--body);
  font-size: 14.5px;
}
.demo-noscript {
  border: 1px solid var(--line);
  padding: 14px 16px;
  font-size: 14px;
  color: var(--muted);
}

/* ---------- Example sequence: one photo, four fates ---------- */
.seq {
  margin-top: clamp(36px, 4.5vw, 56px);
}
.seq-head {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 16px;
}
.seq-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border-top: 1px solid var(--line);
  border-left: 1px solid var(--line);
}
.seq-card {
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: clamp(14px, 1.8vw, 20px);
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
}
.seq-media {
  position: relative;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border: 1px solid var(--line);
}
.seq-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Scenario schematics: monoline diagrams, deliberately NOT photos — real photos
   are shown as photos, hypothetical scenarios as schematics. */
.seq-media--schema {
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--panel);
  color: var(--muted);
}
.seq-media--schema svg {
  width: 58%;
  height: 58%;
  flex: none;
}
.seq-idx {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--faint);
}
.seq-card h3 {
  font-size: clamp(17px, 1.8vw, 20px);
}
.seq-card p {
  color: var(--muted);
  font-size: 13.5px;
  line-height: 1.55;
}
.seq-note {
  margin-top: 18px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 720px;
}

/* ---------- Fold accordions (optional depth, less text at once) ---------- */
.folds {
  border-top: 1px solid var(--line-strong);
}
.fold {
  border-bottom: 1px solid var(--line);
}
.fold > summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 44px 24px 0;
  position: relative;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(19px, 2.3vw, 24px);
  color: var(--text);
  line-height: 1.3;
}
.fold > summary::-webkit-details-marker {
  display: none;
}
.fold > summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -7px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13'%3E%3Cpath d='M6.5 1v11M1 6.5h11' stroke='%238fb8dc' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}
.fold[open] > summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13'%3E%3Cpath d='M1 6.5h11' stroke='%238fb8dc' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}
.fold-body {
  padding-bottom: clamp(24px, 3vw, 36px);
}
.fold-intro {
  font-size: 15.5px;
  color: var(--body);
  line-height: 1.6;
  max-width: 660px;
  margin-bottom: 20px;
}

/* ---------- Who is behind this (trust block) ---------- */
.who {
  margin-top: 26px;
  border: 1px solid var(--line);
  padding: 16px 18px;
  display: grid;
  gap: 8px;
  max-width: 420px;
}
.who .who-tag {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
}
.who p {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.65;
}
.who p b {
  color: var(--body);
  font-weight: 600;
}
.who a {
  color: var(--body);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.who a:hover {
  color: var(--accent-tint);
}

/* ---------- Ledger rows (facts / platforms / deliverables) ---------- */
.ledger {
  border-top: 1px solid var(--line-strong);
}
.ledger--top-gap {
  margin-top: clamp(36px, 4.5vw, 56px);
}
.ledger-row {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr) auto;
  gap: 12px clamp(24px, 3vw, 44px);
  padding-block: clamp(20px, 2.6vw, 30px);
  border-bottom: 1px solid var(--line);
}
.ledger-row .lg-tag {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent-tint);
  padding-top: 5px;
}
.ledger-row.is-mine {
  border-left: 2px solid var(--accent);
  padding-left: 18px;
  margin-left: -20px;
}
.lg-body {
  min-width: 0;
  display: grid;
  gap: 8px;
}
.lg-body h3 {
  font-size: clamp(19px, 2vw, 23px);
}
.lg-body p {
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.6;
  max-width: 640px;
}
.lg-body p b {
  color: var(--text);
  font-weight: 600;
}
.date-hl {
  color: var(--text);
  font-weight: 600;
  white-space: nowrap;
}
.soon {
  align-self: start;
  justify-self: end;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--line-strong);
  padding: 4px 9px;
}

/* ---------- [03] Gray zone pull-quote ---------- */
.grayzone {
  margin-bottom: clamp(32px, 4vw, 48px);
}
.gz-lead {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  font-size: clamp(21px, 2.8vw, 30px);
  line-height: 1.4;
  color: var(--text);
  max-width: 820px;
  border-left: 2px solid var(--accent);
  padding-left: clamp(18px, 2.5vw, 28px);
  text-wrap: balance;
}
.gz-lead .mark {
  color: var(--accent-tint);
}

/* ---------- [04] Procedure (vertical, statute-like) ---------- */
.procedure {
  margin: 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid var(--line-strong);
}
.procedure li {
  display: grid;
  grid-template-columns: 64px minmax(0, 1fr);
  gap: 20px;
  padding-block: 20px;
  border-bottom: 1px solid var(--line);
}
.procedure .p-num {
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.12em;
  color: var(--faint);
  padding-top: 6px;
}
.procedure li.is-out .p-num {
  color: var(--accent-tint);
}
.p-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}
.p-body h3 {
  font-size: 19px;
}
.procedure li.is-out h3 {
  color: var(--accent-tint);
}
.p-body p {
  color: var(--muted);
  font-size: 14.5px;
  line-height: 1.55;
  max-width: 620px;
}

.micro-note {
  margin-top: 22px;
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  max-width: 720px;
}
.micro-note b {
  color: var(--body);
  font-weight: 600;
}

/* ---------- [05] FAQ ---------- */
.faq {
  border-top: 1px solid var(--line-strong);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 44px 22px 0;
  position: relative;
  font-family: var(--serif);
  font-weight: 600;
  font-size: clamp(17px, 2vw, 21px);
  color: var(--text);
  line-height: 1.35;
}
.faq-item summary::-webkit-details-marker {
  display: none;
}
.faq-item summary::after {
  content: '';
  position: absolute;
  right: 6px;
  top: 50%;
  width: 13px;
  height: 13px;
  margin-top: -7px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13'%3E%3Cpath d='M6.5 1v11M1 6.5h11' stroke='%238fb8dc' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  transition: transform 0.2s ease;
}
.faq-item[open] summary::after {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 13 13'%3E%3Cpath d='M1 6.5h11' stroke='%238fb8dc' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
}
.faq-item .faq-body {
  padding: 0 44px 24px 0;
  max-width: 780px;
}
.faq-item .faq-body p {
  color: var(--body);
  font-size: 15.5px;
  line-height: 1.65;
}
.faq-item .faq-body p + p {
  margin-top: 12px;
}
.faq-disclaimer {
  margin-top: 22px;
  font-size: 13px;
  color: var(--faint);
  line-height: 1.6;
}

/* ---------- [06] Waitlist ---------- */
.waitlist {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: clamp(28px, 4vw, 56px);
  align-items: start;
}
@media (min-width: 981px) {
  .waitlist {
    grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
  }
}
.waitlist-copy h2 {
  font-size: clamp(27px, 3.6vw, 42px);
  text-wrap: balance;
}
.waitlist-lede {
  margin-top: 20px;
  max-width: 560px;
  font-size: clamp(16.5px, 1.8vw, 18.5px);
  color: var(--body);
  line-height: 1.55;
  margin-bottom: 24px;
}
.waitlist-form {
  border: 1px solid var(--line-strong);
  background: var(--bg);
  padding: clamp(22px, 3vw, 32px);
  display: grid;
  gap: 16px;
}
.field {
  display: grid;
  gap: 7px;
}
.field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  letter-spacing: -0.01em;
}
.field .req {
  color: var(--accent-tint);
}
.field input[type='email'] {
  width: 100%;
  min-width: 0;
  font-family: inherit;
  font-size: 16px;
  color: var(--text);
  background: var(--panel);
  border: 1px solid var(--line-strong);
  padding: 14px 14px;
  transition: border-color 0.16s ease;
}
.field input[type='email']:focus {
  outline: none;
  border-color: var(--accent);
}
.field input::placeholder {
  color: var(--faint);
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.consent {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  align-items: start;
  font-size: 13px;
  line-height: 1.6;
  color: var(--muted);
}
.consent input[type='checkbox'] {
  appearance: none;
  -webkit-appearance: none;
  width: 20px;
  height: 20px;
  margin: 1px 0 0;
  flex: none;
  border: 1px solid var(--line-strong);
  background: var(--panel);
  cursor: pointer;
  display: grid;
  place-content: center;
}
.consent input[type='checkbox']::before {
  content: '';
  width: 11px;
  height: 11px;
  transform: scale(0);
  background: var(--accent-tint);
  transition: transform 0.1s ease;
}
.consent input[type='checkbox']:checked::before {
  transform: scale(1);
}
.consent input[type='checkbox']:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
.consent a {
  color: var(--body);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.consent a:hover {
  color: var(--accent-tint);
}
.btn-submit {
  height: 56px;
  padding: 0 28px;
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.01em;
  font-family: inherit;
  color: #0c0b09;
  background: var(--accent-tint);
  border: 1px solid var(--accent-tint);
  cursor: pointer;
  transition:
    background 0.14s ease,
    border-color 0.14s ease,
    transform 0.08s ease;
}
.btn-submit:hover {
  background: var(--text);
  border-color: var(--text);
  color: #0c0b09;
}
.btn-submit:active {
  transform: translateY(1px);
}
.btn-submit:disabled {
  opacity: 0.55;
  cursor: default;
  transform: none;
}
.form-status {
  min-height: 20px;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.5;
}
.form-status[data-state='error'] {
  color: var(--danger);
}
.form-status[data-state='success'] {
  color: var(--accent-tint);
}
.form-status[data-state='pending'] {
  color: var(--muted);
}
.form-note {
  font-size: 12px;
  color: var(--faint);
  line-height: 1.55;
}
.form-expect {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.form-expect li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.45;
}
.form-expect svg {
  width: 15px;
  height: 15px;
  flex: none;
  margin-top: 2px;
  color: var(--faint);
}

/* ---------- Footer ---------- */
.site-footer {
  border-top: 1px solid var(--line);
  padding-block: 40px;
}
.footer-top {
  display: flex;
  flex-wrap: wrap;
  gap: 20px 40px;
  justify-content: space-between;
  padding-bottom: 26px;
  border-bottom: 1px solid var(--line);
}
.footer-disc {
  max-width: 560px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.6;
}
.footer-disc b {
  color: var(--body);
  font-weight: 600;
}
.footer-inner {
  margin-top: 26px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.footer-inner .copy {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  color: var(--faint);
}
.footer-links {
  display: flex;
  gap: 28px;
}
.footer-links a {
  color: var(--muted);
  font-size: 14px;
  position: relative;
}
.footer-links a:hover {
  color: var(--accent-tint);
}
.footer-links a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -3px;
  height: 1px;
  width: 100%;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.24s cubic-bezier(0.2, 0.7, 0.2, 1);
}
.footer-links a:hover::after {
  transform: scaleX(1);
  transform-origin: left;
}

/* ---------- Grain (the one allowed texture) ---------- */
.grain {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.03;
  background-image: url('/scene/grain.svg');
  background-size: 180px 180px;
}
body > * {
  position: relative;
  z-index: 1;
}

/* ---------- Scroll reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(14px);
  transition:
    opacity 0.55s ease,
    transform 0.55s ease;
}
.reveal.in {
  opacity: 1;
  transform: none;
}

/* ==================== MOTION ==================== */
@keyframes fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes line-in {
  from {
    transform: translateY(100%);
  }
  to {
    transform: translateY(0);
  }
}
@keyframes stamp-in {
  from {
    opacity: 0;
    transform: scale(1.18);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (prefers-reduced-motion: no-preference) {
  /* Hero headline lines mask up, staggered. */
  .hero-title .line span {
    display: inline-block;
    animation: line-in 0.55s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .hero-title .line:nth-child(1) span {
    animation-delay: 0.06s;
  }
  .hero-title .line:nth-child(2) span {
    animation-delay: 0.18s;
  }
  .hero-title .line:nth-child(3) span {
    animation-delay: 0.3s;
  }

  .hero-copy .hero-promise {
    animation: fade-up 0.5s ease 0.5s both;
  }
  .hero-copy .hero-cta-row {
    animation: fade-up 0.5s ease 0.64s both;
  }
  .hero-trust {
    animation: fade-up 0.5s ease 0.78s both;
  }
  .hero-card {
    animation: fade-up 0.6s ease 0.24s both;
  }
  /* The hero stamp lands after the card settles — the record gets its verdict. */
  .hero-card .verdict {
    animation: stamp-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) 0.95s both;
  }

  /* Sequence cards: each verdict stamps in shortly after the grid reveals. */
  .seq.reveal .verdict {
    opacity: 0;
  }
  .seq.reveal.in .verdict {
    animation: stamp-in 0.3s cubic-bezier(0.2, 0.7, 0.2, 1) both;
  }
  .seq.reveal.in .seq-card:nth-of-type(1) .verdict {
    animation-delay: 0.3s;
  }
  .seq.reveal.in .seq-card:nth-of-type(2) .verdict {
    animation-delay: 0.5s;
  }
  .seq.reveal.in .seq-card:nth-of-type(3) .verdict {
    animation-delay: 0.7s;
  }
  .seq.reveal.in .seq-card:nth-of-type(4) .verdict {
    animation-delay: 0.9s;
  }
  /* Demo result panel eases in when injected. */
  .demo-result:not([hidden]) {
    animation: fade-up 0.35s ease both;
  }
}

@media (prefers-reduced-motion: reduce) {
  .reveal {
    opacity: 1;
    transform: none;
    transition: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-delay: 0ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  /* Narrative order on small screens: copy → record card → trust lines. */
  .hero-trust {
    order: 3;
  }
  .hero-card {
    max-width: 560px;
  }
}
@media (max-width: 960px) {
  .seq-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 480px) {
  .seq-grid {
    grid-template-columns: 1fr;
  }
  .seq-media {
    max-width: 380px;
  }
}
@media (max-width: 720px) {
  .ledger-row {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
  }
  .ledger-row .lg-tag {
    padding-top: 0;
  }
  .ledger-row.is-mine {
    padding-left: 14px;
    margin-left: -16px;
  }
  .soon {
    justify-self: start;
  }
  .procedure li {
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 14px;
  }
}
@media (max-width: 620px) {
  body {
    font-size: 16px;
  }
  .hero-cta-row {
    gap: 18px;
  }
  .btn-primary {
    width: 100%;
  }
  .nav-cta {
    height: 38px;
    padding: 0 14px;
  }
}

/* ---------- Legal / prose pages ---------- */
.legal {
  max-width: 780px;
  margin: 0 auto;
  padding-block: clamp(48px, 8vw, 96px);
}
.legal .lede {
  color: var(--body);
  font-size: 18px;
  margin-top: 20px;
}
.legal h1 {
  font-size: clamp(32px, 5vw, 48px);
}
.legal h2 {
  font-size: 21px;
  margin-top: 44px;
}
.legal p,
.legal li {
  color: var(--body);
  font-size: 16px;
  margin-top: 14px;
  line-height: 1.7;
}
.legal strong {
  color: var(--text);
}
.legal ul {
  margin: 10px 0 0;
  padding-left: 20px;
}
.legal a {
  color: var(--body);
  text-decoration: underline;
  text-underline-offset: 2px;
}
.legal a:hover {
  color: var(--accent-tint);
}
.legal .meta {
  font-family: var(--mono);
  color: var(--muted);
  font-size: 13px;
  letter-spacing: 0.04em;
  margin-top: 10px;
}
.legal .back {
  display: inline-block;
  margin-top: 52px;
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--muted);
}
.legal .back:hover {
  color: var(--accent-tint);
}
