/* ==========================================================================
   Barilex — marketing site system
   Layout: a library at night. Dark instrument panels ruled into columns,
   with paper documents laid on them wherever the court's words or the
   finished work appear.
   Three typographic voices: Instrument Sans is Barilex speaking, Source
   Serif is the court's own words, Geist is the agent's working.
   ========================================================================== */

:root {
  color-scheme: dark;

  /* night: the ground the whole site sits on */
  --bg: #0A0D0B;
  --bg-deep: #060807;
  --surface: #111612;
  --ink: #EDECE6;
  --ink-2: #B3B8B0;
  --muted: #8C928A;
  --rule: rgba(237, 236, 230, .09);
  --rule-2: rgba(237, 236, 230, .17);
  --grid: rgba(237, 236, 230, .045);

  /* paper: documents laid on the desk */
  --doc: #F3EFE4;
  --doc-2: #E9E3D3;
  --doc-ink: #1A1D1A;
  --doc-ink-2: #4A4F49;
  --doc-muted: #5F635B;
  --doc-rule: rgba(26, 29, 26, .14);

  /* brand: red tape, and the bindings of law reports */
  --tape: #C42A47;
  --tape-btn: #B3213F;
  --tape-btn-hover: #9E1B36;
  --tape-text: #EE5E74;
  --tape-doc: #9E1E36;
  --green: #11764B;
  --maroon: #5E1A2A;
  --blue: #2A4AA8;
  --ochre: #A9895A;
  --slate: #2E3A33;
  --cream: #E6DFCC;
  --gilt: rgba(214, 178, 104, .7);

  /* verification states */
  --ok: #3DBA7E;
  --fix: #F2AE2F;
  --bad: #F06A55;
  --ok-doc: #0B7A4B;
  --fix-doc: #8A5800;
  --bad-doc: #B8231A;

  /* pixel sprites, drawn for a dark ground */
  --px-ink: #D9D4C6;
  --px-wig: #F1ECDF;
  --px-curl: #BFB59F;
  --px-skin: #8A5634;
  --px-skin-2: #6E4227;
  --px-gown: #262E28;
  --px-band: #FFFFFF;
  --px-paper: #161B17;
  --px-eye: #0A0D0B;
  --px-tape: #D23A56;
  --px-amber: #E3A33A;
  --px-green: #2FA36C;
  --px-seal: #C9372B;

  /* type */
  --f-sans: "Instrument Sans", "Helvetica Neue", Arial, system-ui, sans-serif;
  --f-serif: "Source Serif 4", Georgia, "Times New Roman", serif;
  --f-work: "Geist", "Helvetica Neue", Arial, system-ui, sans-serif;

  --fs-display: clamp(46px, 7.6vw, 118px);
  --fs-h2: clamp(34px, 4.7vw, 66px);
  --fs-h3: clamp(25px, 2.5vw, 36px);
  --fs-lede: clamp(17.5px, 1.35vw, 20px);
  --fs-body: 16.5px;

  --gutter: clamp(16px, 3vw, 40px);
  --nav-h: 64px;
  --ease: cubic-bezier(.22, .8, .3, 1);
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 400 var(--fs-body)/1.55 var(--f-sans);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, p, ol, ul, figure, blockquote, dl, dd { margin: 0; }
ol, ul { padding: 0; list-style: none; }
a { color: inherit; text-decoration: none; }
button, input, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
img, svg { max-width: 100%; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--tape-text); outline-offset: 3px; border-radius: 3px; }
::selection { background: var(--tape); color: #fff; }

.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  padding: 10px 14px; border-radius: 6px; background: var(--ink); color: var(--bg);
}
.skip:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

.wrap { width: 100%; max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); position: relative; }

/* Column hairlines behind a section, eight to the page width */
.cols { position: relative; }
.cols::before {
  content: ""; position: absolute; inset: 0 var(--gutter); pointer-events: none;
  background-image: linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: calc(100% / 8) 100%; box-shadow: inset -1px 0 0 var(--grid);
}
.cols > * { position: relative; }

/* ---------- pixel sprites ---------- */
.px { display: block; flex: none; image-rendering: pixelated; }
.px-ink { fill: var(--px-ink); }
.px-wig { fill: var(--px-wig); }
.px-curl { fill: var(--px-curl); }
.px-skin { fill: var(--px-skin); }
.px-skin-2 { fill: var(--px-skin-2); }
.px-gown { fill: var(--px-gown); }
.px-band { fill: var(--px-band); }
.px-paper { fill: var(--px-paper); }
.px-tape { fill: var(--px-tape); }
.px-amber { fill: var(--px-amber); }
.px-green { fill: var(--px-green); }
.px-seal { fill: var(--px-seal); }
.px-eye { fill: var(--px-eye); }
.logo, .tile { display: block; flex: none; }
.wm-ink { fill: currentColor; }
.wm-dot { fill: var(--tape); }
.logo.mono .wm-dot { fill: currentColor; }

/* ---------- type voices ---------- */
.eyebrow {
  display: flex; align-items: flex-start; gap: 10px; text-wrap: balance;
  font: 600 11.5px/1.2 var(--f-work); letter-spacing: .16em; text-transform: uppercase;
  color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; margin-top: 3px; background: var(--tape); flex: none; }
@media (max-width: 420px) { .eyebrow { letter-spacing: .12em; } }

.display {
  font-family: var(--f-sans); font-weight: 650; font-stretch: 88%;
  font-size: var(--fs-display); line-height: .95; letter-spacing: -.045em;
  text-wrap: balance;
}
.h2 {
  font-family: var(--f-sans); font-weight: 600; font-stretch: 90%;
  font-size: var(--fs-h2); line-height: 1.02; letter-spacing: -.038em;
  text-wrap: balance;
}
.h3 {
  font-family: var(--f-sans); font-weight: 600; font-stretch: 92%;
  font-size: var(--fs-h3); line-height: 1.08; letter-spacing: -.028em;
  text-wrap: balance;
}
.lede { font-size: var(--fs-lede); line-height: 1.52; color: var(--ink-2); max-width: 60ch; text-wrap: pretty; }
.body { color: var(--ink-2); max-width: 62ch; text-wrap: pretty; }
.small { font-size: 14px; line-height: 1.5; color: var(--muted); }
.work { font-family: var(--f-work); }
.meta { font: 400 12.5px/1.5 var(--f-work); color: var(--muted); }
.meta a { color: var(--ink-2); text-decoration: underline; text-decoration-color: var(--rule-2); text-underline-offset: 3px; }
.meta a:hover { color: var(--tape-text); text-decoration-color: currentColor; }
.label { font: 500 11px/1.3 var(--f-work); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.court { font-family: var(--f-serif); font-optical-sizing: auto; }
.lcd {
  font-family: var(--f-work);
  -webkit-mask-image: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 3px);
  mask-image: repeating-linear-gradient(180deg, #000 0 2px, transparent 2px 3px);
}
.tnum { font-variant-numeric: tabular-nums; }
.crimson { color: var(--tape-text); }

/* ---------- buttons and links ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 12px 18px; border-radius: 7px;
  font: 600 15.5px/1.1 var(--f-sans); letter-spacing: -.005em; white-space: nowrap;
  transition: background .16s, color .16s, border-color .16s;
}
.btn .chev { transition: transform .18s var(--ease); }
.btn:hover .chev { transform: translateX(4px); }
.btn--primary {
  background: var(--tape-btn); color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .22), 0 10px 28px rgba(179, 33, 63, .28);
}
.btn--primary:hover { background: var(--tape-btn-hover); }
.btn--line { border: 1px solid var(--rule-2); color: var(--ink); background: transparent; }
.btn--line:hover { background: var(--surface); border-color: rgba(237, 236, 230, .3); }
.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--ink); border-bottom: 1px solid var(--rule-2); padding-bottom: 2px; width: fit-content; }
.link-arrow:hover { border-color: var(--tape-text); }
.link-arrow .chev { transition: transform .18s var(--ease); }
.link-arrow:hover .chev { transform: translateX(3px); }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 60;
  background: rgba(10, 13, 11, .78);
  backdrop-filter: blur(16px) saturate(140%); -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom: 1px solid var(--rule);
}
.nav__bar { display: flex; align-items: center; gap: 6px; height: var(--nav-h); max-width: 1440px; margin-inline: auto; padding-inline: var(--gutter); }
.nav__brand { display: inline-flex; align-items: center; margin-right: 22px; color: var(--ink); }
.nav__links { display: flex; align-items: center; gap: 2px; }
.nav__links a { position: relative; padding: 8px 12px; border-radius: 7px; font-size: 15px; font-weight: 500; color: var(--ink-2); transition: background .15s, color .15s; }
.nav__links a:hover { background: var(--surface); color: var(--ink); }
.nav__links a[aria-current] { color: var(--ink); }
.nav__links a[aria-current]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; background: var(--tape); }
.nav__fill { flex: 1 1 auto; }
.nav__status { display: inline-flex; align-items: center; gap: 9px; margin-right: 14px; font: 500 11px var(--f-work); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); white-space: nowrap; }
.nav__status i { width: 7px; height: 7px; background: var(--fix); animation: blink 2.4s steps(2, end) infinite; }
@keyframes blink { 50% { opacity: .25; } }
.nav__cta { min-height: 40px; padding: 9px 16px; gap: 0; font-size: 14.5px; }
.nav__toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; margin-left: 6px; border-radius: 7px; border: 1px solid var(--rule-2); }
.nav__drawer { border-top: 1px solid var(--rule); }
.nav__drawer a { display: flex; justify-content: space-between; align-items: center; padding: 17px var(--gutter); border-bottom: 1px solid var(--rule); font-size: 17px; font-weight: 500; }
.nav__drawer a:last-child { border-bottom: 0; }
.nav__drawer a[aria-current] { color: var(--tape-text); }
@media (min-width: 981px) { .nav__drawer { display: none !important; } }
@media (max-width: 1080px) { .nav__status { display: none; } }
@media (max-width: 980px) { .nav__links { display: none; } .nav__toggle { display: inline-flex; } }
@media (max-width: 420px) { .nav__cta .long { display: none; } }

/* ---------- sections ---------- */
.sec { position: relative; border-bottom: 1px solid var(--rule); }
.sec-pad { padding-block: clamp(72px, 9vw, 128px); }
.sec-head { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px 56px; align-items: end; margin-bottom: clamp(40px, 5vw, 64px); }
.sec-head > div:first-child { display: grid; gap: 20px; min-width: 0; }
@media (max-width: 900px) { .sec-head { grid-template-columns: minmax(0, 1fr); } }
.deep { background: var(--bg-deep); }

/* shared hairline cells: grid with 1px gaps over the rule colour */
.cells { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.cells > * { background: var(--bg); min-width: 0; }
.checktabs, .cells.trio, .outcomes, .voices, .flow, .check, .rule, .kit-grid, .foot__cols, .foot__bar { max-width: 1440px; margin-inline: auto; }

/* ---------- hero ---------- */
.hero {
  position: relative; overflow: hidden; border-bottom: 1px solid var(--rule);
  background:
    radial-gradient(60% 70% at 64% 100%, rgba(226, 178, 108, .13) 0%, rgba(226, 178, 108, 0) 70%),
    radial-gradient(40% 50% at 12% 0%, rgba(196, 42, 71, .10) 0%, rgba(196, 42, 71, 0) 70%),
    var(--bg);
}
.hero__inner { display: grid; gap: clamp(28px, 3.4vw, 44px); padding-block: clamp(56px, 7.5vw, 104px) clamp(36px, 4vw, 52px); }
.hero .display { max-width: 15.5ch; }
.hero__row { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 32px 64px; align-items: start; }
.hero__aside { display: grid; gap: 14px; }
.hero__more { display: flex; flex-wrap: wrap; gap: 10px 22px; align-items: center; margin-top: 4px; }
@media (max-width: 900px) { .hero__row { grid-template-columns: minmax(0, 1fr); } }

/* the shelf of law reports, lit by a reading lamp */
.shelf { position: relative; height: clamp(150px, 15vw, 214px); }
.shelf--foot { height: clamp(120px, 11vw, 160px); }
.shelf svg.shelf__art { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.bk-ink { fill: var(--slate); }
.bk-tape { fill: var(--tape); }
.bk-amber { fill: var(--ochre); }
.bk-green { fill: var(--green); }
.bk-seal { fill: #8E2236; }
.bk-blue { fill: var(--blue); }
.bk-maroon { fill: var(--maroon); }
.bk-cream { fill: var(--cream); }
.bk-gilt { fill: var(--gilt); }
.bk-label { fill: rgba(243, 239, 228, .9); }
.bk-text { fill: var(--doc-ink); font: 600 9px var(--f-work); letter-spacing: .08em; }
.bk-shadow { fill: rgba(0, 0, 0, .45); }
.bk-plank { fill: #1A201C; }
.bk-plank-top { fill: rgba(237, 236, 230, .14); }
/* Bari walks the shelf and touches each book (barilex.js adds .is-walking).
   A touched book lifts and grows from its foot; the SC 2009 volume is the
   one Bari is after, so it comes out further and its tag shows. Without
   the walk (no JS, or reduced motion) Bari stands on the stack and that
   volume is shown already pulled. */
.book { transform-box: fill-box; transform-origin: 50% 100%; transition: transform .3s cubic-bezier(.3, 1.5, .5, 1), filter .3s; }
.book--found { transform: translateY(-26px); }
.shelf.is-walking .book--found { transform: none; }
.book.is-touched { transform: translateY(-10px) scale(1.12); filter: brightness(1.18); }
.shelf.is-walking .book--found.is-touched { transform: translateY(-26px) scale(1.08); }
.walker, .walker [data-frame] { display: none; }
.shelf.is-walking .walker { display: inline; }
.shelf.is-walking .bari-still { display: none; }
.walker[data-pose="walk-a"] [data-frame="walk-a"],
.walker[data-pose="walk-b"] [data-frame="walk-b"],
.walker[data-pose="reach"] [data-frame="reach"] { display: inline; }
.shelf__tag {
  position: absolute; display: grid; gap: 6px; padding: 12px 14px; width: 236px;
  background: var(--surface); border: 1px solid var(--rule-2); border-radius: 7px;
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  font: 500 12px/1.4 var(--f-work); color: var(--ink-2);
}
.shelf__tag b { font-weight: 600; color: var(--ink); }
.shelf__tag .ok { color: var(--ok); }
.shelf__tag::after {
  content: ""; position: absolute; right: -7px; top: calc(50% - 6px); width: 12px; height: 12px;
  background: var(--surface); border-right: 1px solid var(--rule-2); border-top: 1px solid var(--rule-2); transform: rotate(45deg);
}
.shelf.is-walking .shelf__tag { opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s; }
.shelf.is-walking.is-found .shelf__tag { opacity: 1; transform: none; }
@media (max-width: 760px) { .shelf__tag { display: none; } }

/* ---------- waitlist form ---------- */
.wl { display: grid; gap: 12px; }
.wl__row {
  display: flex; align-items: center; gap: 8px; padding: 6px 6px 6px 16px;
  background: var(--surface); border: 1px solid rgba(237, 236, 230, .4); border-radius: 10px;
  transition: border-color .15s, box-shadow .15s;
}
.wl__row:focus-within { border-color: var(--tape-text); box-shadow: 0 0 0 3px rgba(196, 42, 71, .28); }
.wl__row input { flex: 1 1 auto; width: 0; min-width: 0; border: 0; outline: none; background: transparent; color: var(--ink); font-size: 16px; padding-block: 10px; }
.wl__row input::placeholder { color: var(--muted); opacity: 1; }
.wl__row .btn { min-height: 44px; }
@media (max-width: 420px) {
  .wl__row { flex-wrap: wrap; padding: 6px; }
  .wl__row input { flex-basis: 100%; padding-inline: 10px; }
  .wl__row .btn { flex: 1 1 100%; }
}
.wl__note { font: 400 12.5px/1.5 var(--f-work); color: var(--muted); }
.wl__error { font: 500 13.5px/1.4 var(--f-sans); color: var(--bad); }
.wl__roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; border: 0; padding: 0; margin: 0; min-width: 0; }
.wl__roles legend { margin-bottom: 8px; padding: 0; }
.wl__roles label { position: relative; display: flex; }
.wl__roles input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.wl__roles span {
  display: flex; flex: 1; align-items: center; width: 100%; min-height: 40px; padding: 8px 14px; border-radius: 6px;
  border: 1px solid var(--rule-2); background: transparent; font-size: 14.5px; font-weight: 500; color: var(--ink-2);
  transition: background .15s, color .15s, border-color .15s;
}
@media (max-width: 420px) {
  .cta__form .wl { padding: 16px; }
  .wl__roles span { padding: 8px 10px; font-size: 14px; }
}
@media (max-width: 380px) { .wl__roles span { font-size: 13.5px; padding-inline: 8px; } }
.wl__roles input:checked + span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.wl__roles input:focus-visible + span { outline: 2px solid var(--tape-text); outline-offset: 2px; }
.wl__done { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: 10px; background: var(--surface); border: 1px solid var(--rule-2); }
.wl__done p { font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.wl__done b { color: var(--ink); }

/* ---------- ladder statement ---------- */
.ladder { display: grid; }
.ladder__row {
  display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 18px 32px; align-items: baseline;
  padding-block: clamp(20px, 2.4vw, 30px); border-bottom: 1px solid var(--rule);
}
.ladder__row:first-child { border-top: 1px solid var(--rule); }
.ladder__row p { font-weight: 600; font-stretch: 90%; letter-spacing: -.03em; line-height: 1.04; text-wrap: balance; }
.ladder__row:nth-child(1) p { font-size: clamp(22px, 2.2vw, 30px); color: #6F756D; }
.ladder__row:nth-child(2) p { font-size: clamp(28px, 3.2vw, 44px); color: var(--ink-2); }
.ladder__row:nth-child(3) p { font-size: clamp(36px, 5vw, 72px); color: var(--ink); letter-spacing: -.042em; }
.ladder__row .tag { text-align: right; }
.ladder__row:nth-child(3) .tag { color: var(--tape-text); }
.ladder__foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 18px 40px; margin-top: 30px; align-items: end; }
@media (max-width: 760px) {
  .ladder__row { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .ladder__row .tag { text-align: left; }
  .ladder__row > .label:first-child { display: none; }
}

/* ---------- agent console (How it works) ---------- */
.agent { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: stretch; }
@media (max-width: 980px) { .agent { grid-template-columns: minmax(0, 1fr); } }
.steps { display: flex; flex-direction: column; }
.steps li { position: relative; border-top: 1px solid var(--rule); }
.steps li:last-child { border-bottom: 1px solid var(--rule); }
.step { width: 100%; display: grid; grid-template-columns: 46px minmax(0, 1fr); gap: 2px 6px; padding: 17px 0; text-align: left; }
.step .n { font: 500 11.5px/1.9 var(--f-work); color: var(--muted); }
.step .t { font-size: 17px; font-weight: 500; letter-spacing: -.01em; color: var(--ink-2); transition: color .2s; }
.step .d { grid-column: 2; font-size: 14.5px; line-height: 1.5; color: var(--muted); max-height: 0; overflow: hidden; opacity: 0; transition: max-height .35s var(--ease), opacity .3s, margin .3s; }
.step .bar { position: absolute; left: 0; top: -1px; height: 1px; width: 0; background: var(--tape); transition: width .45s var(--ease); }
.step:hover .t { color: var(--ink); }
.step[aria-selected="true"] .t { color: var(--ink); font-weight: 600; }
.step[aria-selected="true"] .n { color: var(--tape-text); }
.step[aria-selected="true"] .d { max-height: 80px; opacity: 1; margin-top: 4px; }
.step[aria-selected="true"] .bar { width: 46%; }
.steps__ctl { display: flex; align-items: center; gap: 14px; margin-top: 22px; }
.play {
  display: inline-flex; align-items: center; gap: 10px; min-height: 40px; padding: 8px 14px; border-radius: 7px;
  border: 1px solid var(--rule-2); color: var(--ink-2);
  font: 600 11px var(--f-work); letter-spacing: .14em; text-transform: uppercase;
}
.play:hover { color: var(--ink); background: var(--surface); }
.play i { width: 0; height: 0; border-left: 7px solid currentColor; border-block: 5px solid transparent; }
.play[aria-pressed="true"] i { width: 8px; height: 10px; border: 0; border-inline: 3px solid currentColor; }

.console {
  display: flex; flex-direction: column; min-height: 600px; min-width: 0;
  border: 1px solid rgba(237, 237, 230, .1); border-radius: 18px; overflow: hidden;
  background: linear-gradient(160deg, #151C17 0%, #0D120E 56%, #080B09 100%);
  box-shadow: 0 34px 90px rgba(0, 0, 0, .55);
  color: var(--ink);
}
.console__top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 22px 24px 14px; flex-wrap: wrap; }
.console__status { font-size: clamp(20px, 2vw, 25px); letter-spacing: -.02em; color: #D5D8D0; }
.console__chip { font: 500 10px/1.3 var(--f-work); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); padding: 6px 9px; border: 1px dashed rgba(237, 237, 230, .18); border-radius: 5px; }
.console__rail { position: relative; height: 1px; margin-inline: 24px; background: rgba(237, 237, 230, .1); }
.console__rail i { position: absolute; left: 0; top: 0; height: 1px; background: var(--tape); transition: width .5s var(--ease); }
.console__body { flex: 1 1 auto; display: flex; padding: 22px 24px; min-width: 0; }
.console__body > [role="tabpanel"] { flex: 1 1 auto; display: flex; flex-direction: column; justify-content: flex-end; gap: 12px; min-width: 0; animation: rise .45s var(--ease); }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.console__foot {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 13px 18px;
  border-top: 1px solid rgba(237, 237, 230, .07);
  background: linear-gradient(180deg, #2A2F2B 0%, #1D211E 58%, #161917 100%);
  font: 500 10px var(--f-work); letter-spacing: .02em; color: rgba(237, 237, 230, .36);
}
.console__brand { letter-spacing: .3em; }
.console__foot .grp { display: flex; align-items: center; gap: 12px; }
.screw { width: 12px; height: 12px; border-radius: 50%; background: radial-gradient(circle at 36% 30%, #6A706B, #2A2E2B 70%); box-shadow: inset 0 1px 1px rgba(255, 255, 255, .14); }
.grille { width: 74px; height: 13px; background-image: radial-gradient(circle, rgba(255, 255, 255, .2) 1px, transparent 1.3px); background-size: 13px 13px; }
.console__stage { display: flex; align-items: center; gap: 9px; color: rgba(237, 237, 230, .74); }
.console__stage i { width: 7px; height: 7px; border-radius: 50%; background: var(--tape-text); box-shadow: 0 0 10px var(--tape); }
@media (max-width: 560px) { .console { min-height: 0; } .grille, .console__foot .console__brand { display: none; } .console__top, .console__body { padding-inline: 16px; } .console__rail { margin-inline: 16px; } }

.msg { align-self: flex-end; max-width: 88%; padding: 12px 15px; border-radius: 12px 12px 4px 12px; background: #2A302B; color: #F0F0EA; font-size: 15px; line-height: 1.5; }
.who { font: 500 10.5px var(--f-work); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.who.right { align-self: flex-end; }
.out { border: 1px solid rgba(237, 236, 230, .1); border-radius: 10px; background: rgba(237, 236, 230, .03); display: grid; overflow: hidden; }
.out__row { display: grid; grid-template-columns: 148px minmax(0, 1fr); gap: 4px 14px; padding: 11px 14px; border-top: 1px solid rgba(237, 236, 230, .07); font-size: 14.5px; line-height: 1.5; color: #D9DCD4; }
.out__row:first-child { border-top: 0; }
.out__row dt { font: 500 10.5px/2 var(--f-work); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); }
.out__row dt.is-bad { color: var(--bad); }
.out__row dt.is-ok { color: var(--ok); }
.out__row dt.is-fix { color: var(--fix); }
@media (max-width: 560px) { .out__row { grid-template-columns: minmax(0, 1fr); } }
.tool { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; padding: 9px 12px; border: 1px solid rgba(237, 236, 230, .08); border-radius: 8px; background: rgba(237, 236, 230, .025); font: 400 12.5px/1.5 var(--f-work); color: #CFD3CB; }
.tool .g { color: #5E655F; }
.tool .fn { color: #F1F1EA; font-weight: 500; }
.tool .arg { color: var(--fix); }
.tool .res { margin-left: auto; color: var(--ok); }
.auth { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; padding: 10px 2px; border-top: 1px solid rgba(237, 236, 230, .07); font-size: 14.5px; }
.auth:first-child { border-top: 0; }
.auth .nm { color: #F1F1EA; font-weight: 500; }
.auth .nt { grid-column: 1 / -1; color: var(--muted); font-size: 13.5px; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 3px 7px; border-radius: 4px; font: 600 10px/1.3 var(--f-work); letter-spacing: .1em; text-transform: uppercase; white-space: nowrap; }
.chip--sc { background: rgba(214, 178, 104, .14); color: #E2C27E; }
.chip--ca { background: rgba(237, 236, 230, .08); color: #C9CDC4; }
.chip--ok { background: rgba(61, 186, 126, .13); color: var(--ok); }
.chip--fix { background: rgba(242, 174, 47, .14); color: var(--fix); }
.chip--bad { background: rgba(240, 106, 85, .14); color: var(--bad); }
.chip--ink { background: rgba(237, 236, 230, .08); color: var(--ink-2); }
.quote-court { padding: 14px 16px; border-left: 2px solid var(--gilt); background: rgba(214, 178, 104, .06); font-family: var(--f-serif); font-size: 17.5px; line-height: 1.5; color: #ECE7D8; }
.quote-court cite { display: block; margin-top: 8px; font: 500 11px var(--f-work); letter-spacing: .02em; font-style: normal; color: var(--muted); }
.principle { font-size: 17px; line-height: 1.5; color: #F1F1EA; }
.vtable-wrap { overflow-x: auto; border: 1px solid rgba(237, 236, 230, .1); border-radius: 10px; }
.vtable { width: 100%; min-width: 520px; border-collapse: collapse; font-size: 13.5px; }
.vtable th { padding: 10px 12px; text-align: left; font: 500 10px var(--f-work); letter-spacing: .12em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid rgba(237, 236, 230, .1); }
.vtable td { padding: 11px 12px; border-bottom: 1px solid rgba(237, 236, 230, .06); color: #D9DCD4; vertical-align: top; }
.vtable tr:last-child td { border-bottom: 0; }
.vtable td.c { text-align: center; font-family: var(--f-work); }
.vtable .y { color: var(--ok); }
.vtable .f { color: var(--fix); }
.vtable .x { color: var(--bad); }
.vtable .sub { display: block; font-size: 12px; color: var(--muted); margin-top: 2px; }
.tally { display: flex; flex-wrap: wrap; gap: 8px; }
.doc { align-self: stretch; background: var(--doc); color: var(--doc-ink); border-radius: 8px; padding: 20px 22px 16px; box-shadow: 0 18px 44px rgba(0, 0, 0, .45); display: grid; gap: 11px; }
.doc h5 { font: 600 11px/1.45 var(--f-work); letter-spacing: .08em; text-transform: uppercase; text-align: center; color: #2B2F2B; }
.doc p { font-size: 15px; line-height: 1.6; color: #2B2F2B; }
.doc sup { font: 600 10px var(--f-work); color: var(--tape-doc); }
.doc .fn { display: grid; gap: 4px; padding-top: 10px; border-top: 1px solid var(--doc-rule); font: 400 11.5px/1.45 var(--f-work); color: var(--doc-ink-2); }
.doc .fn b { color: var(--ok-doc); font-weight: 600; }
.doc .fn i { font-style: normal; color: var(--fix-doc); }
.ready { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; align-items: center; font: 500 11.5px var(--f-work); letter-spacing: .01em; color: var(--ink-2); }
.ready b { color: var(--ok); font-weight: 600; }

/* ---------- verification: five checks across the top, a judgment page below ---------- */
.checktabs { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--rule); }
.checktab { position: relative; display: grid; gap: 12px; align-content: start; padding: 22px var(--gutter) 24px; text-align: left; border-right: 1px solid var(--rule); transition: background .15s; }
.checktab:last-child { border-right: 0; }
.checktab .lcd { font-size: clamp(28px, 2.8vw, 40px); line-height: 1; letter-spacing: -.03em; color: #5E655F; transition: color .15s; }
.checktab .q { font-size: 16px; font-weight: 500; line-height: 1.3; color: var(--ink-2); }
.checktab .k { font: 500 10.5px var(--f-work); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.checktab:hover { background: var(--surface); }
.checktab[aria-selected="true"] { background: var(--surface); }
.checktab[aria-selected="true"]::before { content: ""; position: absolute; left: 0; right: 0; top: -1px; height: 2px; background: var(--tape); }
.checktab[aria-selected="true"] .lcd { color: var(--tape-text); }
.checktab[aria-selected="true"] .q { color: var(--ink); font-weight: 600; }
@media (max-width: 900px) {
  .checktabs { grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: minmax(180px, 1fr); overflow-x: auto; scrollbar-width: none; }
  .checktab { padding-inline: clamp(16px, 2vw, 24px); }
}
@media (max-width: 560px) {
  .checktabs { grid-auto-flow: row; grid-auto-columns: auto; grid-template-columns: minmax(0, 1fr); overflow: visible; }
  .checktab { grid-template-columns: 44px minmax(0, 1fr); align-items: center; gap: 2px 12px; padding: 12px var(--gutter); border-right: 0; }
  .checktab + .checktab { border-top: 1px solid var(--rule); }
  .checktab .lcd { font-size: 24px; grid-row: span 2; }
  .checktab[aria-selected="true"]::before { top: 0; bottom: 0; left: 0; right: auto; width: 2px; height: auto; }
}
.checkpanels { padding-block: clamp(36px, 4.4vw, 60px) clamp(56px, 6vw, 84px); }
.feature { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: 40px clamp(32px, 5vw, 80px); align-items: center; }
.feature__text { display: flex; flex-direction: column; gap: 20px; align-items: flex-start; }
.feature__text .h3 { max-width: 14ch; }
.feature__text .body { max-width: 42ch; }
@media (max-width: 980px) { .feature { grid-template-columns: minmax(0, 1fr); } .feature__text .h3 { max-width: 22ch; } }

/* a page from a judgment or a draft, flagged like a court bundle */
.page {
  position: relative; background: var(--doc); color: var(--doc-ink); border-radius: 3px;
  padding: 22px 28px 24px 64px; box-shadow: 0 30px 70px rgba(0, 0, 0, .55), 0 1px 0 rgba(255, 255, 255, .6) inset;
  font-size: 15px; line-height: 1.6;
}
.page::before { content: ""; position: absolute; top: 0; bottom: 0; left: 52px; width: 1px; background: rgba(158, 30, 54, .22); }
.page__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 0 120px 12px 0; margin-bottom: 14px; border-bottom: 1px solid var(--doc-rule); font: 500 11px/1.4 var(--f-work); letter-spacing: .1em; text-transform: uppercase; color: var(--doc-muted); }
.page__lines { display: grid; gap: 6px; counter-reset: ln var(--ln, 0); }
.page__lines li { position: relative; color: var(--doc-ink-2); }
.page__lines li::before { counter-increment: ln; content: counter(ln); position: absolute; left: -54px; width: 30px; text-align: right; font: 400 11px/2.2 var(--f-work); color: var(--doc-muted); }
.page .court { font-size: 16.5px; line-height: 1.55; color: var(--doc-ink); }
.page .cite { font: 500 13px/1.6 var(--f-work); color: var(--doc-ink); }
.page .cite del { color: var(--bad-doc); text-decoration-thickness: 2px; }
.page .cite ins { color: #076640; text-decoration: none; background: rgba(11, 122, 75, .12); padding: 0 3px; border-radius: 2px; }
.page .struck { text-decoration: line-through; text-decoration-color: var(--bad-doc); text-decoration-thickness: 2px; color: var(--doc-muted); }
.page mark { background: rgba(240, 174, 47, .42); color: inherit; padding: 0 2px; border-radius: 2px; }
.page .tagline { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 4px; }
.page .tagline span { padding: 2px 7px; border: 1px solid var(--doc-rule); border-radius: 3px; font: 600 10px/1.5 var(--f-work); letter-spacing: .1em; text-transform: uppercase; color: var(--doc-ink-2); }
.page .pair { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 12px; }
.page .pair > div { display: grid; gap: 6px; align-content: start; padding: 12px; border-radius: 3px; background: rgba(26, 29, 26, .04); border: 1px solid var(--doc-rule); }
.page .pair .label { color: var(--doc-muted); }
@media (max-width: 560px) { .page .pair { grid-template-columns: minmax(0, 1fr); } }
.page .timeline li { display: grid; grid-template-columns: 48px 12px minmax(0, 1fr); gap: 10px; align-items: start; }
.page .timeline .yr { font: 500 12.5px/1.6 var(--f-work); color: var(--doc-muted); }
.page .timeline .pip { width: 10px; height: 10px; margin-top: 6px; background: var(--doc-ink-2); }
.page .timeline .pip.ok { background: var(--ok-doc); }
.page .timeline .pip.bad { background: var(--bad-doc); }
.page .timeline .pip.fix { background: var(--fix-doc); }
.flag {
  --c: var(--ok-doc);
  position: absolute; right: -12px; top: 18px; max-width: 170px; padding: 9px 14px 9px 13px;
  background: var(--c); color: #fff; border-radius: 3px 0 0 3px; box-shadow: 0 8px 18px rgba(0, 0, 0, .3);
  font: 600 10.5px/1.3 var(--f-work); letter-spacing: .12em; text-transform: uppercase;
}
.flag::after { content: ""; position: absolute; right: 0; bottom: -6px; border-top: 6px solid rgba(0, 0, 0, .45); border-right: 12px solid transparent; }
.flag small { display: block; margin-top: 3px; font-weight: 400; font-size: 11px; letter-spacing: .02em; text-transform: none; opacity: .92; }
.flag--fix { --c: var(--fix-doc); }
.flag--bad { --c: var(--bad-doc); }
@media (max-width: 560px) {
  .page { padding: 20px 18px 22px 48px; }
  .page::before { left: 38px; }
  .page__lines li::before { left: -44px; width: 26px; }
  .page__head { padding-right: 0; }
  .flag { position: static; display: inline-block; margin-bottom: 14px; border-radius: 3px; max-width: none; }
  .flag::after { display: none; }
}

/* ---------- corpus record (paper) ---------- */
.corpus { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 980px) { .corpus { grid-template-columns: minmax(0, 1fr); } }
.corpus__text { display: grid; gap: 24px; position: sticky; top: calc(var(--nav-h) + 40px); }
@media (max-width: 980px) { .corpus__text { position: static; } }
.count { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 18px; align-items: center; padding: 20px 0; border-block: 1px solid var(--rule); }
.count b { font: 600 clamp(40px, 4.6vw, 62px)/1 var(--f-sans); font-stretch: 88%; letter-spacing: -.04em; }
.count p { font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.record { border-radius: 4px; background: var(--doc); color: var(--doc-ink); overflow: hidden; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); }
.record__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 20px; background: var(--doc-2); border-bottom: 1px solid var(--doc-rule); flex-wrap: wrap; }
.record__head h3 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.record__head .label { color: var(--doc-muted); }
.field { display: grid; grid-template-columns: 142px minmax(0, 1fr); border-top: 1px solid var(--doc-rule); transition: background .15s; }
.field:first-of-type { border-top: 0; }
.field:hover { background: rgba(240, 174, 47, .12); }
.field dt { padding: 14px 16px 14px 20px; font: 600 10.5px/1.9 var(--f-work); letter-spacing: .14em; text-transform: uppercase; color: var(--doc-muted); border-right: 1px solid var(--doc-rule); }
.field dd { padding: 12px 20px 12px 18px; font-size: 15px; line-height: 1.55; color: var(--doc-ink-2); }
.field dd.court { font-size: 16.5px; color: var(--doc-ink); }
.field.is-key { background: rgba(158, 30, 54, .06); }
.field.is-key dt { color: var(--tape-doc); }
@media (max-width: 560px) { .field { grid-template-columns: minmax(0, 1fr); } .field dt { border-right: 0; padding-bottom: 0; } }

/* ---------- authority graph ---------- */
.swipe-hint { display: none; margin-bottom: 10px; }
@media (max-width: 800px) { .swipe-hint { display: block; } }
.graph-wrap { overflow-x: auto; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); }
.graph { display: block; width: 100%; min-width: 760px; height: auto; overflow: visible; }
.graph .lane { fill: rgba(237, 237, 230, .022); }
.graph .lane-line { stroke: rgba(237, 237, 230, .1); stroke-dasharray: 2 5; }
.graph .lane-label { fill: var(--ink-2); font: 500 13px var(--f-sans); }
.graph .yr { fill: var(--muted); font: 400 11px var(--f-work); }
.graph .edge { fill: none; stroke: rgba(237, 237, 230, .16); stroke-width: 1.1; transition: stroke .35s, opacity .35s, stroke-width .35s; }
.graph .node { fill: #4A524C; transition: fill .35s; }
.graph .node-label { fill: var(--ink); font: 500 11px var(--f-work); letter-spacing: .04em; opacity: 0; transition: opacity .35s; }
.graph .node-label-bg { fill: var(--bg-deep); opacity: 0; transition: opacity .35s; }
.graph .node-label-bg.hl { opacity: .92; }
.graph[data-mode] .edge { opacity: .35; }
.graph .edge.hl { opacity: 1; stroke-width: 1.8; }
.graph .edge.hl.followed { stroke: var(--ok); }
.graph .edge.hl.distinguished { stroke: var(--fix); }
.graph .edge.hl.overruled { stroke: var(--bad); }
.graph .edge.hl.cited { stroke: #C9CDC4; }
.graph .node.hl { fill: #F1F1EA; }
.graph .node.hl.bad { fill: var(--bad); }
.graph .node.hl.warn { fill: var(--fix); }
.graph .node-label.hl { opacity: 1; }
.graph-ctl { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 18px 28px; margin-top: 26px; }
.seg { display: inline-flex; gap: 4px; padding: 5px; border: 1px solid var(--rule-2); border-radius: 11px; background: var(--surface); flex-wrap: wrap; }
.seg button { padding: 0 16px; min-height: 44px; border-radius: 8px; font: 600 11px var(--f-work); letter-spacing: .13em; text-transform: uppercase; color: var(--muted); transition: background .15s, color .15s; }
.seg button:hover { color: var(--ink); }
.seg button[aria-selected="true"], .seg button[aria-pressed="true"] { background: #2B322D; color: #fff; }
@media (max-width: 1130px) {
  #who .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  #who .seg button { padding: 6px; line-height: 1.25; letter-spacing: .06em; text-align: center; }
}
@media (max-width: 560px) {
  .seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; }
  .seg button { padding: 6px; line-height: 1.25; letter-spacing: .06em; text-align: center; }
}
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font: 500 11px var(--f-work); letter-spacing: .02em; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 8px; }
.legend i { width: 18px; height: 2px; background: currentColor; }
.legend .followed { color: var(--ok); }
.legend .distinguished { color: var(--fix); }
.legend .overruled { color: var(--bad); }
.legend .cited { color: #C9CDC4; }
@media (max-width: 800px) { .graph { min-width: 1000px; } .graph .lane-label { font-size: 17px; } .graph .yr, .graph .node-label { font-size: 15px; } }
.graph-cap { min-height: 3.2em; font-size: clamp(19px, 1.8vw, 24px); line-height: 1.3; letter-spacing: -.015em; color: var(--ink); max-width: 40ch; }

/* ---------- audiences: a typed instruction, and the brief that comes back ---------- */
.aud { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 36px 56px; align-items: start; }
@media (max-width: 900px) { .aud { grid-template-columns: minmax(0, 1fr); } }
.aud__ask { display: grid; gap: 22px; align-content: start; }
.aud__ask .big { font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; font-stretch: 90%; letter-spacing: -.032em; line-height: 1.08; text-wrap: balance; }
.prompt { display: grid; gap: 8px; padding: 16px 18px; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--bg-deep); }
.prompt .label { color: var(--tape-text); }
.prompt p { font-size: 16.5px; line-height: 1.55; color: var(--ink); }
.brief {
  position: relative; background: var(--doc); color: var(--doc-ink); border-radius: 3px;
  padding: 26px 26px 22px 52px; box-shadow: 0 30px 70px rgba(0, 0, 0, .5); display: grid; gap: 14px;
}
.brief::before { content: ""; position: absolute; top: 0; bottom: 0; left: 20px; width: 9px; background: var(--tape); box-shadow: 1px 0 0 rgba(0, 0, 0, .12); }
.brief::after { content: ""; position: absolute; left: 10px; top: 30px; width: 30px; height: 12px; background: #A8233E; transform: rotate(-16deg); border-radius: 2px; }
.brief .label { color: var(--doc-muted); }
.brief h4 { font-size: 19px; font-weight: 600; letter-spacing: -.015em; }
.brief ul { display: grid; gap: 10px; }
.brief li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 8px; font-size: 15px; line-height: 1.5; color: var(--doc-ink-2); }
.brief li::before { content: "✓"; font: 600 12px/1.7 var(--f-work); color: var(--ok-doc); }
.brief__foot { padding-top: 12px; border-top: 1px solid var(--doc-rule); font: 500 11px/1.5 var(--f-work); letter-spacing: .01em; color: var(--doc-ink-2); }

/* ---------- three-up cells (principles, pricing) ---------- */
.trio { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.trio > * { padding: clamp(28px, 3vw, 40px) var(--gutter); display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 900px) { .trio { grid-template-columns: minmax(0, 1fr); } }
.cellcard > .px { height: 36px; }
.cellcard h3 { font-size: clamp(21px, 1.9vw, 26px); font-weight: 600; letter-spacing: -.022em; line-height: 1.15; }
.cellcard p { color: var(--ink-2); line-height: 1.55; }

.plan { position: relative; }
.plan .price { display: flex; align-items: baseline; gap: 8px; }
.plan .price b { font: 600 clamp(40px, 4vw, 56px)/1 var(--f-sans); font-stretch: 88%; letter-spacing: -.04em; }
.plan .price span { font-size: 15px; color: var(--muted); }
.plan ul { display: grid; gap: 9px; }
.plan li { display: grid; grid-template-columns: 16px minmax(0, 1fr); gap: 8px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.plan li::before { content: "✓"; font: 600 12px/1.6 var(--f-work); color: var(--ok); }
.plan .btn { margin-top: auto; align-self: flex-start; }
@media (min-width: 901px) { .plan .body { min-height: 3.1em; } }
.plan.is-featured { background: var(--surface); }
.plan.is-featured::before { content: ""; position: absolute; inset: 0 0 auto; height: 2px; background: var(--tape); }
.proposed { display: inline-flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 5px; border: 1px dashed var(--rule-2); font: 500 11px var(--f-work); letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 48px clamp(32px, 5vw, 80px); align-items: start; }
@media (max-width: 900px) { .faq { grid-template-columns: minmax(0, 1fr); } }
.faq__intro { display: grid; gap: 20px; }
.qa { border-top: 1px solid var(--rule); }
.qa:last-child { border-bottom: 1px solid var(--rule); }
.qa summary { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 17.5px; line-height: 1.4; letter-spacing: -.012em; font-weight: 500; color: var(--ink); }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: "+"; flex: none; width: 22px; text-align: center; font: 400 22px/1.1 var(--f-work); color: var(--muted); }
.qa[open] summary::after { content: "−"; color: var(--tape-text); }
.qa summary:hover { color: var(--tape-text); }
.qa p { padding: 0 44px 24px 0; color: var(--ink-2); max-width: 62ch; }

/* ---------- closing CTA ---------- */
.cta {
  background:
    radial-gradient(50% 80% at 85% 100%, rgba(226, 178, 108, .10) 0%, rgba(226, 178, 108, 0) 70%),
    var(--bg);
}
.cta__inner { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 40px clamp(32px, 5vw, 80px); align-items: end; padding-block: clamp(80px, 10vw, 136px) clamp(64px, 8vw, 104px); }
.cta__text { display: grid; gap: 22px; }
.cta .display { font-size: clamp(42px, 6.4vw, 96px); max-width: 11ch; }
.cta__form { display: grid; gap: 0; }
.cta__form .px { margin-left: 18px; }
.cta__form .wl { padding: 22px; border: 1px solid var(--rule-2); border-radius: 12px; background: var(--surface); }
.cta__form .wl__row { background: var(--bg); }
@media (max-width: 900px) { .cta__inner { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer ---------- */
.foot { background: var(--bg-deep); }
.foot__cols { grid-template-columns: minmax(0, 1.4fr) repeat(3, minmax(0, 1fr)); border-top: 0; }
.foot__cols > * { background: var(--bg-deep); }
.foot__cols > div { padding: 40px var(--gutter) 48px; display: grid; gap: 14px; align-content: start; }
.foot__cols h4 { font-size: 14px; font-weight: 500; color: var(--muted); margin-bottom: 6px; }
.foot__cols a { font-size: 15.5px; color: var(--ink); width: fit-content; }
.foot__cols a:hover { color: var(--tape-text); }
.foot__cols a.foot__brand:hover { color: var(--ink); }
.foot__brand { display: flex; align-items: center; color: var(--ink); }
@media (max-width: 900px) { .foot__cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } .foot__cols > div:first-child, .foot__cols > div:last-child { grid-column: 1 / -1; } }
.foot__bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 28px; padding: 22px var(--gutter) 26px; }

/* ---------- sub-page hero ---------- */
.phero { border-bottom: 1px solid var(--rule); background: radial-gradient(50% 80% at 90% 0%, rgba(196, 42, 71, .09) 0%, rgba(196, 42, 71, 0) 70%), var(--bg); }
.phero__inner { display: grid; gap: 26px; padding-block: clamp(64px, 8vw, 112px) clamp(48px, 6vw, 80px); }
.phero .display { font-size: clamp(42px, 6.4vw, 96px); max-width: 17ch; }

/* ---------- verification page ---------- */
.anatomy { display: grid; gap: 34px; padding-block: 8px clamp(56px, 7vw, 96px); }
.anatomy__cite { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 18px 14px; font: 500 clamp(15px, 1.3vw, 19px)/1.35 var(--f-work); letter-spacing: -.01em; color: var(--ink); }
.seg-part { display: grid; gap: 10px; }
.seg-part > span:first-child { padding-bottom: 10px; border-bottom: 2px solid var(--rule-2); white-space: nowrap; }
.seg-part .num { display: flex; gap: 8px; align-items: baseline; font: 500 11px var(--f-work); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.seg-part .num b { font-size: 13px; color: var(--tape-text); }
.seg-part:hover > span:first-child { border-color: var(--tape); }
.anatomy__claim { font-size: 16px; color: var(--ink-2); max-width: 70ch; }
@media (max-width: 640px) { .seg-part > span:first-child { white-space: normal; } }

.statement { padding-block: clamp(80px, 10vw, 140px); text-align: center; }
.statement > p:first-child { max-width: 22ch; margin-inline: auto; font-size: clamp(32px, 4.6vw, 64px); font-weight: 600; font-stretch: 90%; letter-spacing: -.038em; line-height: 1.05; text-wrap: balance; }
.statement > p + p { margin: 24px auto 0; max-width: 52ch; }
.statement > p.meta { max-width: none; }

.check { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 5fr) minmax(0, 5fr); border-top: 1px solid var(--rule); scroll-margin-top: calc(var(--nav-h) + 8px); }
.check:last-child { border-bottom: 1px solid var(--rule); }
.check > * { padding: clamp(28px, 3.4vw, 48px) var(--gutter); min-width: 0; }
.check__num { border-right: 1px solid var(--rule); display: grid; gap: 14px; align-content: start; }
.check__num .lcd { font-size: clamp(48px, 6vw, 88px); line-height: .9; letter-spacing: -.04em; color: var(--ink); }
.check__body { display: grid; gap: 18px; align-content: start; border-right: 1px solid var(--rule); }
.ledger { display: grid; align-content: start; }
.ledger div { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 12px; padding: 14px 0; border-top: 1px solid var(--rule); }
.ledger div:first-child { border-top: 0; padding-top: 0; }
.ledger dt { font: 600 10.5px/1.9 var(--f-work); letter-spacing: .14em; text-transform: uppercase; }
.ledger dd { font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.ledger .pass dt { color: var(--ok); }
.ledger .fail dt { color: var(--bad); }
.ledger .see dt { color: var(--muted); }
@media (max-width: 980px) {
  .check { grid-template-columns: minmax(0, 1fr); }
  .check__num, .check__body { border-right: 0; }
  .check__num { padding-bottom: 0; grid-auto-flow: column; justify-content: start; align-items: end; gap: 18px; }
  .check__body { padding-bottom: 8px; }
}

.state { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; font: 600 11px/1.3 var(--f-work); letter-spacing: .08em; text-transform: uppercase; }
.state::before { content: ""; width: 8px; height: 8px; background: currentColor; flex: none; }
.state--ok { color: var(--ok); }
.state--fix { color: var(--fix); }
.state--bad { color: var(--bad); }
.state--muted { color: var(--muted); }

.outcomes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.outcomes > div { padding: clamp(26px, 3vw, 36px) var(--gutter); display: grid; gap: 12px; align-content: start; }
.outcomes h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.outcomes p { color: var(--ink-2); font-size: 15.5px; }
@media (max-width: 980px) { .outcomes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .outcomes { grid-template-columns: minmax(0, 1fr); } }

.voices { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.voices > div { padding: clamp(28px, 3vw, 40px) var(--gutter); display: grid; gap: 16px; align-content: start; }
.voices .sample-sans { font-size: 26px; font-weight: 600; letter-spacing: -.025em; line-height: 1.15; font-stretch: 92%; }
.voices .sample-serif { font-family: var(--f-serif); font-size: 24px; line-height: 1.3; text-wrap: balance; }
.voices .sample-work { font-family: var(--f-work); font-size: 16px; line-height: 1.5; }
@media (max-width: 900px) { .voices { grid-template-columns: minmax(0, 1fr); } }

/* ---------- principles page ---------- */
.rules { border-top: 1px solid var(--rule); }
.rule { display: grid; grid-template-columns: 120px minmax(0, 5fr) minmax(0, 6fr); gap: 20px clamp(24px, 4vw, 64px); align-items: start; padding: clamp(28px, 3.2vw, 44px) var(--gutter); border-bottom: 1px solid var(--rule); }
.rule h3 { font-size: clamp(26px, 2.8vw, 40px); font-weight: 600; font-stretch: 90%; letter-spacing: -.033em; line-height: 1.05; text-wrap: balance; }
.rule p { color: var(--ink-2); font-size: 17px; line-height: 1.6; max-width: 56ch; }
@media (max-width: 900px) { .rule { grid-template-columns: minmax(0, 1fr); } }

.layers { display: grid; gap: 8px; }
.layer { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: 10px 28px; align-items: center; padding: 22px 26px; border-radius: 4px; color: #fff; border: 1px solid rgba(255, 255, 255, .08); }
.layer h3 { font-size: 22px; font-weight: 600; letter-spacing: -.02em; }
.layer p:not(.label) { color: rgba(255, 255, 255, .9); font-size: 15.5px; line-height: 1.5; }
.layer .label { color: rgba(255, 255, 255, .88); }
.layer.l1 { background: var(--green); }
.layer.l2 { background: var(--blue); margin-inline: 1.5% 0; }
.layer.l3 { background: var(--maroon); margin-inline: 0 2%; }
.layer.l4 { background: var(--slate); margin-inline: 1% 1%; }
.layer.model { background: transparent; border: 1px dashed rgba(237, 237, 230, .3); color: var(--ink-2); margin-inline: 22%; padding-block: 14px; }
.layer.model p:not(.label) { color: var(--ink-2); }
.layer.model .label { color: var(--muted); }
@media (max-width: 760px) { .layer { grid-template-columns: minmax(0, 1fr); margin-inline: 0 !important; } }

.flow { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.flow li { position: relative; display: grid; gap: 12px; align-content: start; padding: 26px clamp(16px, 1.8vw, 26px) 30px; }
.flow li:first-child { padding-left: var(--gutter); }
.flow li:last-child { padding-right: var(--gutter); }
.flow li .n { font: 600 11px var(--f-work); letter-spacing: .14em; color: var(--tape-text); }
.flow li p { font-size: 15.5px; line-height: 1.45; color: var(--ink); font-weight: 500; }
@media (max-width: 1100px) { .flow { grid-template-columns: repeat(4, minmax(0, 1fr)); } .flow li:nth-child(4n+1) { padding-left: var(--gutter); } .flow li:nth-child(4n) { padding-right: var(--gutter); } }
@media (max-width: 640px) { .flow { grid-template-columns: minmax(0, 1fr); } .flow li { grid-template-columns: 40px minmax(0, 1fr); padding-inline: var(--gutter); } }

/* ---------- brand kit ---------- */
.kit-grid { display: grid; gap: 1px; background: var(--rule); border-block: 1px solid var(--rule); }
.kit-grid > * { background: var(--bg); padding: clamp(26px, 3vw, 40px) var(--gutter); min-width: 0; }
.kit-2 { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
@media (max-width: 900px) { .kit-2 { grid-template-columns: minmax(0, 1fr); } }
.mascot-stage {
  display: flex; flex-wrap: wrap; align-items: flex-end; gap: 28px 40px; padding: 36px; border-radius: 4px; min-height: 260px;
  background: radial-gradient(70% 90% at 50% 100%, rgba(226, 178, 108, .16) 0%, rgba(226, 178, 108, 0) 70%), var(--surface);
  border: 1px solid var(--rule);
}
.mascot-stage .cap { font: 500 11px var(--f-work); letter-spacing: .04em; color: var(--muted); margin-top: 10px; }
/* Up to three columns, each wide enough for the 128 px nav lockup plus padding, so no logo is scaled off its pixel grid. */
.logo-board { display: grid; grid-template-columns: repeat(auto-fit, minmax(max(174px, calc((100% - 24px) / 3)), 1fr)); gap: 12px; }
.logo-tile { display: grid; justify-items: start; align-content: space-between; gap: 22px; min-width: 0; padding: 22px; border: 1px solid var(--rule); border-radius: 5px; background: var(--surface); color: var(--ink); }
.logo-tile--main { grid-column: 1 / -1; place-items: center; align-content: center; min-height: 200px; background: radial-gradient(70% 90% at 50% 100%, rgba(226, 178, 108, .12) 0%, rgba(226, 178, 108, 0) 70%), var(--surface); }
.logo-tile--paper { background: var(--doc); border-color: var(--doc); color: var(--doc-ink); }
.logo-tile .cap { font: 500 11px var(--f-work); letter-spacing: .04em; color: var(--muted); }
.logo-tile--paper .cap { color: var(--doc-muted); }
@media (max-width: 560px) { .logo-tile--main { min-height: 150px; } }
.swatches { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 14px; }
@media (max-width: 760px) { .swatches { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.swatch .chip-c { height: 84px; border-radius: 3px; border: 1px solid var(--rule-2); }
.swatch b { display: block; margin-top: 9px; font-size: 14px; font-weight: 600; }
.swatch span { font: 400 12px var(--f-work); color: var(--muted); }
.pixset { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 900px) { .pixset { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .pixset > div { padding: 14px 4px 10px; } .pixset span { font-size: 10px; letter-spacing: 0; } }
.pixset > div { display: grid; justify-items: center; align-content: end; gap: 10px; padding: 18px 8px 12px; border: 1px solid var(--rule); border-radius: 5px; background: var(--surface); min-height: 112px; }
.pixset span { font: 400 11.5px var(--f-work); color: var(--muted); text-align: center; }
.dodont { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1px; background: var(--rule); border: 1px solid var(--rule); }
.dodont > div { background: var(--surface); padding: 18px 20px; display: grid; gap: 6px; }
.dodont .label.ok { color: var(--ok); }
.dodont .label.no { color: var(--bad); }
.dodont p:not(.label) { font-size: 17px; line-height: 1.4; font-weight: 500; }
.dodont .no + p { color: var(--muted); text-decoration: line-through; text-decoration-color: rgba(240, 106, 85, .6); }
@media (max-width: 640px) { .dodont { grid-template-columns: minmax(0, 1fr); } }

/* ---------- utilities ---------- */
.stack-sm { display: grid; gap: 12px; }
.row-wrap { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}
