/* Paripari draft D: light drawn in grain. One token set for landing, trial page and docs. */
@font-face { font-family: "Host Grotesk"; src: url("/static/fonts/host-grotesk-var.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/static/fonts/geist-mono-var.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  color-scheme: dark;
  --ground: #0b0908; --ground-2: #110e0c; --surface: #171310; --surface-2: #201b17;
  --ink: #f2ece3; --ink-2: #bcb2a6; --ink-3: #91877c;
  --line: rgba(242, 236, 227, .11); --line-strong: rgba(242, 236, 227, .24);
  /* verdict colours = the only accents; every use carries its word */
  --v-hit: #ffb340; --v-wq: #5cc8ff; --v-fr: #ff4f9a; --v-miss: #ff4b2b; --v-inj: #a98bff; --v-quiet: #8d8478;
  --paper: #f1ece2; --paper-2: #e7e0d3; --paper-ink: #17130f; --paper-ink-2: #514840; --hl: #ffe27a;
  --v-hit-ink: #9a5b00; --v-wq-ink: #04689b; --v-fr-ink: #b3105c;
  --f-text: "Host Grotesk", system-ui, sans-serif;
  --f-data: "Geist Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .7, .1, 1);
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --d-press: 150ms; --d-ui: 180ms; --d-panel: 250ms;
  --rail: 96px;
  --r-ctl: 10px; --r-card: 14px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--ground); color: var(--ink); font: 400 17px/1.6 var(--f-text); -webkit-font-smoothing: antialiased; }
/* no contextual alternates anywhere: Host Grotesk turns "3X8" into "3×8", and IDs and quotes must show the exact characters */
html, body, input, select, button, pre, code { font-feature-settings: "calt" 0; font-variant-ligatures: no-contextual; }
a { color: inherit; }
button { font: inherit; color: inherit; }
::selection { background: var(--hl); color: var(--paper-ink); }
.num, .mono { font-family: var(--f-data); font-variant-numeric: tabular-nums; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 6px; }

/* ---------- frame: left rail, right progress rail, phone bar ---------- */
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); padding: 12px 0 12px 12px; z-index: 40; }
.rail-in { height: 100%; display: flex; flex-direction: column; gap: 2px; padding: 6px; border: 1px solid var(--line); border-radius: 20px; background: rgba(23, 19, 16, .9); box-shadow: 0 18px 50px -24px #000; }
.rail-mark { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; padding: 10px 0 9px; border-radius: 14px; text-decoration: none; transition: background-color var(--d-ui) var(--ease); }
.rail-word { font-size: 13px; font-weight: 700; letter-spacing: -.01em; color: var(--ink); line-height: 1; }
.rail-mark:hover { background: var(--surface-2); }
.rail a.place { display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 9px 2px 8px; border-radius: 12px; text-decoration: none; color: var(--ink-2); font-size: 13px; line-height: 1.1; transition: background-color var(--d-ui) var(--ease), color var(--d-ui) var(--ease); }
.rail a.place svg { width: 18px; height: 18px; stroke: currentColor; fill: none; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.rail a.place:hover { color: var(--ink); background: var(--surface-2); }
.rail a.place[aria-current="page"] { color: var(--ink); background: var(--surface-2); }
.rail a.place:active { transform: scale(.97); transition-duration: var(--d-press); }
.rail-foot { margin-top: auto; padding: 10px 6px; border: 1px solid var(--line); border-radius: 12px; text-align: center; font-size: 13px; line-height: 1.25; color: var(--ink-2); }
.rail-foot b { display: block; font-family: var(--f-data); font-weight: 500; color: var(--ink); }
.lamp { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: var(--v-hit); vertical-align: 1px; animation: lamp 2.2s linear infinite; }
@keyframes lamp { 50% { opacity: .3; } }
@media (prefers-reduced-motion: reduce) { .lamp { animation: none; } }

.progress { position: fixed; right: 18px; top: 50%; transform: translateY(-50%); z-index: 40; display: flex; flex-direction: column; gap: 22px; padding: 10px 0; }
.progress::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; width: 1px; background: var(--line); }
.progress button { position: relative; width: 22px; height: 22px; padding: 0; border: 0; background: none; cursor: pointer; }
.progress button i { position: absolute; left: 50%; top: 50%; width: 7px; height: 7px; margin: -3.5px 0 0 -3.5px; border-radius: 50%; border: 1px solid var(--line-strong); background: var(--ground); transition: transform var(--d-ui) var(--ease), background-color var(--d-ui) var(--ease), height var(--d-panel) var(--ease); }
.progress button:hover i { transform: scale(1.4); }
.progress button[aria-current="true"] i { width: 3px; height: 26px; margin: -13px 0 0 -1.5px; border-radius: 3px; border: 0; background: var(--v-hit); }
.progress button span { position: absolute; right: 26px; top: 50%; transform: translate(6px, -50%); opacity: 0; white-space: nowrap; pointer-events: none; padding: 4px 9px; border: 1px solid var(--line); border-radius: 8px; background: rgba(17, 14, 12, .94); font-size: 13px; color: var(--ink); transition: opacity var(--d-panel) var(--ease), transform var(--d-panel) var(--ease); }
.progress button:hover span, .progress button:focus-visible span { opacity: 1; transform: translate(0, -50%); }

.phonebar { display: none; }
.menu-sheet { display: none; }

main { margin-left: var(--rail); margin-right: 48px; }
.wrap { padding: 0 48px 0 40px; max-width: 1360px; }

/* ---------- type ---------- */
.display { font-weight: 700; letter-spacing: -.042em; line-height: .92; margin: 0; }
.h2 { font-size: clamp(30px, 2.1rem + 1.4vw, 54px); font-weight: 700; letter-spacing: -.035em; line-height: 1; margin: 0; }
.h3 { font-size: 22px; font-weight: 650; letter-spacing: -.015em; line-height: 1.2; margin: 0; }
.lead { color: var(--ink-2); max-width: 36em; }
.small { font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.cap { font-size: 13px; line-height: 1.45; color: var(--ink-3); }

/* ---------- controls ---------- */
.btn { --h: 44px; display: inline-grid; place-items: center; height: var(--h); padding: 0 18px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: transparent; color: var(--ink); font-size: 15px; font-weight: 550; letter-spacing: -.008em; white-space: nowrap; cursor: pointer; text-decoration: none; transition: background-color var(--d-ui) var(--ease), border-color var(--d-ui) var(--ease), color var(--d-ui) var(--ease), transform var(--d-press) cubic-bezier(.4, 0, .2, 1); }
.btn:hover { background: var(--surface-2); border-color: rgba(242, 236, 227, .36); }
.btn:active:not(:disabled):not([aria-disabled="true"]) { transform: scale(.97); }
.btn:disabled, .btn[aria-disabled="true"] { opacity: .5; cursor: not-allowed; }
.btn.solid { background: var(--ink); color: var(--ground); border-color: var(--ink); }
.btn.solid:hover { background: #fff; }
.btn > * { grid-area: 1 / 1; }
.btn[aria-busy="true"] { cursor: progress; }
.link { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-decoration-thickness: 1px; text-underline-offset: 4px; transition: text-decoration-color var(--d-ui) var(--ease); }
.link:hover { text-decoration-color: var(--ink); }

/* verdict word chips: colour + word, never colour alone */
.vw { display: inline-flex; align-items: center; gap: 6px; font-size: 15px; color: var(--ink-2); white-space: nowrap; }
.vw::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--c, var(--v-quiet)); }
.vw.hit { --c: var(--v-hit); } .vw.wq { --c: var(--v-wq); } .vw.fr { --c: var(--v-fr); } .vw.miss { --c: var(--v-miss); } .vw.inj { --c: var(--v-inj); } .vw.quiet { --c: var(--v-quiet); }
.vw.flag::before { background: transparent; border: 1.5px solid var(--ink); box-shadow: none; width: 8px; height: 8px; }

/* copy button */
.copy { display: inline-flex; align-items: center; gap: 6px; height: 30px; padding: 0 10px; border: 1px solid var(--line); border-radius: 8px; background: rgba(255, 255, 255, .03); color: var(--ink-2); font-size: 13px; cursor: pointer; transition: color var(--d-ui) var(--ease), border-color var(--d-ui) var(--ease), transform var(--d-press) var(--ease); }
.copy:hover { color: var(--ink); border-color: var(--line-strong); }
.copy:active { transform: scale(.96); }
.copy[data-done="1"] { color: var(--v-hit); border-color: rgba(255, 179, 64, .4); }

/* measured rows (acrux grammar, Paripari data) */
.rows { border-top: 1px solid var(--line); }
.row { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, .8fr) minmax(0, 1.6fr); gap: 24px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.row-name { font-size: 18px; font-weight: 650; letter-spacing: -.01em; }
.row-name small { display: block; margin-top: 4px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--ink-2); line-height: 1.45; }
.fig { display: flex; align-items: baseline; gap: 8px; }
.fig b { font-family: var(--f-data); font-variant-numeric: tabular-nums; font-size: clamp(34px, 3.4vw, 48px); font-weight: 600; letter-spacing: -.04em; line-height: 1; }
.fig span { font-size: 14px; color: var(--ink-2); }
.strip { position: relative; height: 64px; overflow-x: clip; }
.strip .base { position: absolute; left: 0; right: 0; top: 40px; height: 1px; background: var(--line-strong); }
.strip .grid { position: absolute; top: 4px; bottom: 24px; width: 1px; background: var(--line); }
.strip .tick { position: absolute; top: 14px; height: 26px; width: 2px; margin-left: -1px; border-radius: 2px; background: var(--c, var(--ink)); transform-origin: bottom; }
.strip .tick.med { width: 3px; margin-left: -1.5px; top: 6px; height: 34px; background: var(--ink); box-shadow: none; }
.strip .ref { position: absolute; top: 4px; height: 36px; border-left: 1px dashed var(--v-hit); opacity: .8; }
.strip .note { position: absolute; font-family: var(--f-data); font-size: 13px; line-height: 1; white-space: nowrap; color: var(--ink-2); }
.strip .note.top { top: -12px; } .strip .note.bot { top: 48px; }

/* paper (specimen) chapter */
.paper { background: var(--paper); color: var(--paper-ink); margin: 0 -48px 0 calc(-1 * var(--rail)); padding-left: var(--rail); padding-right: 48px; }
.paper .lead, .paper .small { color: var(--paper-ink-2); }
.paper .cap { color: #5f554b; }
.chip { display: inline-block; padding: 3px 8px 2px; background: var(--hl); color: var(--paper-ink); font-family: var(--f-data); font-size: 13px; letter-spacing: .02em; line-height: 1.5; }
mark.hl { background: linear-gradient(transparent 12%, var(--hl) 12%, var(--hl) 88%, transparent 88%); color: inherit; padding: 0 2px; }

/* reveal on scroll: hidden only under html.js */
html.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: calc(var(--i, 0) * 90ms); }
html.js [data-reveal].in { opacity: 1; transform: none; }
html.js [data-step] { opacity: .32; transition: opacity .7s var(--ease), color .7s var(--ease); }
html.js [data-step].on { opacity: 1; }
@media (prefers-reduced-motion: reduce) {
  html.js [data-reveal] { opacity: 1; transform: none; transition: none; }
  html.js [data-step] { opacity: 1; transition: none; }
}

/* tooltip for the rosettes */
.tip { position: fixed; z-index: 60; max-width: 340px; padding: 10px 12px; border: 1px solid var(--line-strong); border-radius: 10px; background: rgba(17, 14, 12, .96); font-size: 14px; line-height: 1.45; color: var(--ink); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity 125ms var(--ease-out), transform 125ms var(--ease-out); }
.tip.on { opacity: 1; transform: none; }
.tip b { font-weight: 650; }
.tip .num { color: var(--ink-2); font-size: 13px; }

/* footer */
.foot { border-top: 1px solid var(--line); padding: 40px 0 56px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; font-size: 15px; }
.foot h4 { margin: 0 0 10px; font-size: 13px; font-weight: 500; color: var(--ink-3); }
.foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.foot a { color: var(--ink-2); text-decoration: none; transition: color var(--d-ui) var(--ease); }
.foot a:hover { color: var(--ink); }

@media (max-width: 900px) {
  :root { --rail: 0px; }
  .rail, .progress { display: none; }
  main { margin: 0; }
  .paper { margin: 0; padding-left: 0; padding-right: 0; }
  .wrap { padding: 0 16px; }
  .phonebar { display: flex; position: sticky; top: 0; z-index: 50; align-items: center; gap: 10px; height: 56px; padding: 0 8px 0 16px; background: rgba(11, 9, 8, .92); border-bottom: 1px solid var(--line); backdrop-filter: blur(8px); }
  .phonebar .name { font-weight: 700; letter-spacing: -.02em; text-decoration: none; font-size: 18px; }
  .phonebar .status { margin-left: auto; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
  .phonebar button { width: 44px; height: 44px; display: grid; place-items: center; border: 0; background: none; cursor: pointer; border-radius: 10px; }
  .phonebar button i, .phonebar button i::before { display: block; width: 18px; height: 1.5px; background: var(--ink); transition: transform var(--d-ui) var(--ease); }
  .phonebar button i::before { content: ""; transform: translateY(6px); }
  .phonebar button[aria-expanded="true"] i { transform: translateY(3px) rotate(45deg); }
  .phonebar button[aria-expanded="true"] i::before { transform: rotate(-90deg); }
  .menu-sheet { position: fixed; z-index: 49; top: 56px; left: 0; right: 0; padding: 8px 16px 20px; background: rgba(11, 9, 8, .98); border-bottom: 1px solid var(--line); }
  .menu-sheet.open { display: grid; }
  .menu-sheet a { display: flex; align-items: center; min-height: 48px; font-size: 18px; text-decoration: none; border-bottom: 1px solid var(--line); }
  .row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
  .row .strip { grid-column: 1 / -1; }
  .foot { grid-template-columns: 1fr 1fr; }
  .foot ul a { display: inline-flex; align-items: center; min-height: 44px; min-width: 44px; }
}

/* Motion Prompt #080 highlighter: the key's words are drawn in when their block enters the view (0.8 s, cubic ease-out) */
html.js [data-reveal] mark.hl { background-size: 0% 100%; background-repeat: no-repeat; transition: background-size .8s cubic-bezier(.33, 1, .68, 1) .25s; }
html.js [data-reveal].in mark.hl { background-size: 100% 100%; }
@media (prefers-reduced-motion: reduce) { html.js [data-reveal] mark.hl { background-size: 100% 100%; transition: none; } }

/* ---------- shared by every page of the site ---------- */
.tint { position: fixed; inset: 0; z-index: 30; pointer-events: none; opacity: 0; mix-blend-mode: screen; background: radial-gradient(120% 90% at 50% 55%, var(--c, var(--v-wq)), transparent 70%); }
.tint.go { animation: tint 1.5s var(--ease) both; }
@keyframes tint { 0% { opacity: 0; } 12% { opacity: .2; } 100% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .tint.go { animation: none; } }
.toast { position: fixed; left: 50%; bottom: 24px; z-index: 70; visibility: hidden; opacity: 0; transform: translate(-50%, 200%); padding: 10px 16px; border: 1px solid var(--line-strong); border-radius: 12px; background: rgba(23, 19, 16, .97); font-size: 14px; transition: transform 400ms var(--ease-out); }
.toast.on { visibility: visible; opacity: 1; transform: translate(-50%, 0); }
.toast { transition: transform 400ms var(--ease-out), opacity 200ms var(--ease-out), visibility 0s linear 400ms; }
.toast.on { transition: transform 400ms var(--ease-out), opacity 200ms var(--ease-out); }
.tag { display: inline-flex; align-items: center; height: 26px; padding: 0 9px; border: 1px solid var(--line); border-radius: 7px; font-size: 13px; color: var(--ink-2); white-space: nowrap; }
.tag-strong { color: var(--ink); border-color: var(--line-strong); background: var(--surface); }
.empty { padding: 28px 22px; border: 1px dashed var(--line-strong); border-radius: 12px; }
.empty b { display: block; font-size: 17px; margin-bottom: 4px; }
.empty p { margin: 0; color: var(--ink-2); font-size: 15px; }
.empty .btn { margin-top: 14px; }
.btnrow { display: flex; flex-wrap: wrap; gap: 8px; }
.foot-name { font-size: 18px; letter-spacing: -.02em; }
.foot-note { margin: 8px 0 0; max-width: 34em; }
q { quotes: "\201C" "\201D"; }
.tablewrap { max-width: 100%; }
@media (max-width: 900px) { .tablewrap { overflow-x: auto; } }
/* agent names, quotes and IDs can be long strings without spaces: they break inside their box, never widen it */
body { overflow-wrap: anywhere; }
