/* ============================================================
   ClearedBy — "Flow"
   Clean, modern, alive. White / near-black / cleared-green.
   The page is the product: actions stream, gates hold,
   you clear the sections as you read.
   ============================================================ */

:root {
  --bg:     #fcfcfb;
  --bg-2:   #f4f5f3;
  --ink:    #101210;
  --ink-2:  #5d625c;
  --ink-3:  #a2a79f;
  --hair:   #e7e9e4;
  --hair-2: #d3d6d0;

  --grn:      #0e9f5d;   /* cleared */
  --grn-deep: #0a7a47;
  --grn-soft: #e2f3e9;
  --red:      #c2452d;   /* rejected — semantics only */
  --red-soft: #f6e3dd;
  --amber:      #a87a14; /* sent back for revision */
  --amber-soft: #f6edd8;
  --esc:        #4a51c9; /* escalated — senior clearance */

  --dark:   #101210;     /* the record */
  --dark-2: #181b18;
  --dark-line: rgba(252,252,251,0.12);
  --dark-fg:  #f0f1ee;
  --dark-fg2: #8f948c;

  --maxw: 1240px;
  --gut: clamp(20px, 5vw, 72px);

  --sans: "Schibsted Grotesk", system-ui, -apple-system, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, monospace;

  --ease: cubic-bezier(.22,.61,.36,1);
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: var(--grn); color: #fff; }

a { color: inherit; text-decoration: none; }
img, svg { display: block; max-width: 100%; }
h1,h2,h3,h4 { margin: 0; font-weight: 600; letter-spacing: -0.03em; line-height: 1.04; }
p { margin: 0; text-wrap: pretty; }
button { font-family: inherit; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding-inline: var(--gut); position: relative; }
.section { padding-block: clamp(76px, 9vw, 140px); border-top: 1px solid var(--hair); position: relative; }
.mono { font-family: var(--mono); }
.mono.sm { font-size: .85em; }
.grn { color: var(--grn); }
.measure { max-width: 60ch; }

/* ---------- type ---------- */
.h-display {
  font-size: clamp(2.7rem, 6.5vw, 5.8rem);
  line-height: 0.98; letter-spacing: -0.045em; font-weight: 650;
}
.h-display .em { color: var(--grn); }
.h2 { font-size: clamp(1.9rem, 4vw, 3.1rem); letter-spacing: -0.035em; font-weight: 600; line-height: 1.02; }
.lede { font-size: clamp(1.05rem, 1.45vw, 1.25rem); color: var(--ink-2); line-height: 1.55; letter-spacing: -0.01em; }
.eyebrow { font-size: 14px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); }
.codechip { font-family: var(--mono); font-size: .82em; background: var(--bg-2); border: 1px solid var(--hair); padding: 2px 7px; border-radius: 6px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 600; font-size: 15px; letter-spacing: -0.01em;
  padding: 12px 20px; border-radius: 10px;
  border: 1px solid transparent; cursor: pointer;
  transition: transform .16s var(--ease), background .18s, border-color .18s, color .18s;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: var(--bg); }
.btn-primary:hover { background: var(--grn); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--hair-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-arrow svg { transition: transform .2s var(--ease); }
.btn-arrow:hover svg { transform: translateX(3px); }
.btn-sm { padding: 8px 14px; font-size: 13.5px; border-radius: 8px; }

/* ============================================================
   NAV + HUD
   ============================================================ */
.nav {
  position: sticky; top: 0; z-index: 60;
  background: color-mix(in srgb, var(--bg) 86%, transparent);
  backdrop-filter: saturate(140%) blur(14px);
}
.nav-in { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 9px; }
.brand-logo { height: 30px; width: auto; display: block; }
.brand .mark {
  width: 24px; height: 24px; border-radius: 8px;
  background: var(--grn); color: #fff;
  display: inline-grid; place-items: center; flex: none;
}
.brand .mark svg { width: 14px; height: 14px; }
.brand-word { font-weight: 700; letter-spacing: -0.03em; font-size: 18px; }
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--ink-2); font-weight: 500; transition: color .15s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 14px; }
.nav-signin { font-size: 14px; color: var(--ink-2); font-weight: 500; white-space: nowrap; }
.nav-signin:hover { color: var(--ink); }
@media (max-width: 600px) { .nav-signin { display: none; } }
@media (max-width: 880px) { .nav-links { display: none; } }

/* live HUD strip */
.hud { border-block: 1px solid var(--hair); background: var(--bg); overflow: hidden; }
.hud-in {
  display: flex; align-items: center; gap: 26px; height: 34px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: .03em;
  color: var(--ink-3); white-space: nowrap;
}
.hud-in b { color: var(--ink); font-weight: 600; font-variant-numeric: tabular-nums; }
.hud-right { margin-left: auto; }
.hud-live { display: inline-flex; align-items: center; gap: 6px; color: var(--grn); text-transform: uppercase; letter-spacing: .14em; font-size: 9.5px; }
.hud-live i { width: 6px; height: 6px; border-radius: 50%; background: var(--grn); animation: blink 2s infinite; }
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }
@media (max-width: 880px) { .hud-in span:nth-child(3), .hud-right { display: none; } }
@media (max-width: 560px) { .hud-in span:nth-child(4) { display: none; } }

/* ============================================================
   HERO + FLOW LINE
   ============================================================ */
.hero { padding-top: clamp(40px, 4.6vw, 88px); padding-bottom: clamp(36px, 4vw, 72px); }

/* one scene: a top row (agents conjure, left · text right next to them),
   then the whole event track as a band BELOW the text + buttons (no overlap) */
.hero-scene { position: relative; }
.hero-top { display: flex; align-items: flex-start; gap: clamp(22px, 2.6vw, 48px); }
.gf-agents { flex: none; }
.hero-copy { flex: 1; min-width: 0; position: relative; z-index: 5; padding-top: 4px; }
.hero h1 { max-width: 19ch; text-wrap: balance; font-size: clamp(2.2rem, 4vw, 4rem); }
.hero-sub { margin-top: 18px; max-width: 54ch; font-size: clamp(1rem, 1.2vw, 1.15rem); }
.hero-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; }

/* the scene bleeds to the right page edge so the conveyor runs off the page
   (the headline/lede are max-width capped, so the text doesn't stretch) */
.hero-scene { overflow: visible; margin-right: calc(50% - 50vw); }

/* the event track — a tall band that sits entirely below the text + buttons */
.gf-track { position: relative; height: 226px; margin-top: clamp(10px, 1.6vw, 22px); }

/* the dashed people-line the held cards ride on */
.gf-humanline {
  position: absolute; left: 38%; right: 18%; top: 76px;
  border-top: 1px dashed var(--hair); transition: border-color .3s var(--ease);
}
.gf-humanline.active { border-top-color: var(--ink-2); }

.gf-zone {
  position: absolute; font-size: 9.5px; letter-spacing: .12em;
  text-transform: uppercase; color: var(--ink-3);
}
.gf-z-people { left: 22%; top: 12px; }

/* ---- the magical source: AI agents conjuring actions ---- */
.gf-agents { position: relative; width: 196px; height: 188px; flex: none; z-index: 3; }
.ag-field { position: absolute; left: 0; top: 0; width: 150px; height: 122px; }
.ag-halo {
  position: absolute; left: 30px; top: 26px; width: 84px; height: 84px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,159,93,.20), transparent 68%);
  animation: aghalo 4.2s ease-in-out infinite;
}
.ag-core {
  position: absolute; left: 50px; top: 46px; width: 48px; height: 48px; border-radius: 50%;
  display: grid; place-items: center; color: var(--grn-deep);
  background: radial-gradient(circle at 38% 30%, #fff, var(--bg-2));
  border: 1px solid var(--hair-2);
  box-shadow: 0 10px 24px -10px rgba(14,159,93,.55), inset 0 0 0 4px rgba(255,255,255,.6);
}
.ag-core svg { width: 26px; height: 26px; animation: agspin 11s linear infinite; }
.ag-orb {
  position: absolute; width: 9px; height: 9px; border-radius: 50%;
  background: var(--grn); box-shadow: 0 0 9px rgba(14,159,93,.75);
}
.ag-orb.a { left: 16px; top: 26px; animation: agfloat 5s ease-in-out infinite; }
.ag-orb.b { left: 122px; top: 20px; background: var(--ink); box-shadow: 0 0 8px rgba(16,18,16,.3); animation: agfloat 6.2s ease-in-out infinite reverse; }
.ag-orb.c { left: 116px; top: 92px; animation: agfloat 4.6s ease-in-out infinite .4s; }
.ag-tw {
  position: absolute; font-size: 11px; line-height: 1; color: var(--grn); opacity: 0;
  text-shadow: 0 0 7px rgba(14,159,93,.55); animation: agtw 3.6s ease-in-out infinite;
}
.ag-tw.t1 { left: 4px; top: 6px; animation-delay: .2s; }
.ag-tw.t2 { left: 128px; top: 54px; animation-delay: 1.3s; }
.ag-tw.t3 { left: 64px; top: 106px; animation-delay: 2.2s; font-size: 13px; }
.ag-tw.t4 { left: 100px; top: 4px; animation-delay: 2.9s; font-size: 9px; }
.ag-label { position: absolute; left: 2px; top: 128px; font-size: 11.5px; font-weight: 600; color: var(--ink); }
.ag-label b { display: block; font-weight: 500; font-size: 8px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); margin-top: 3px; }
/* the "cast" — extra shimmer the moment an action is conjured */
.gf-agents.cast .ag-core { animation: agcast .55s var(--ease); }
.gf-agents.cast .ag-halo { animation: aghalocast .55s var(--ease); }
@keyframes agspin { to { transform: rotate(360deg); } }
@keyframes agfloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes aghalo { 0%,100% { opacity: .7; transform: scale(1); } 50% { opacity: 1; transform: scale(1.08); } }
@keyframes agtw { 0%,100% { opacity: 0; transform: scale(.4) rotate(0deg); } 50% { opacity: 1; transform: scale(1) rotate(20deg); } }
@keyframes agcast {
  0% { transform: scale(1); }
  42% { transform: scale(1.14); box-shadow: 0 0 0 5px var(--grn-soft), 0 10px 24px -10px rgba(14,159,93,.6); }
  100% { transform: scale(1); }
}
@keyframes aghalocast { 0% { opacity: .7; transform: scale(1); } 42% { opacity: 1; transform: scale(1.4); } 100% { opacity: .7; transform: scale(1); } }

/* the drawn path the conjured actions ride */
.gf-path { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 0; }
.gf-path path { fill: none; stroke: var(--hair-2); stroke-width: 1.4; }

/* sparkles flung off as each action is conjured */
.gf-sparkle {
  position: absolute; font-size: 10px; line-height: 1; color: var(--grn); pointer-events: none;
  transform: translate(-50%, -50%) scale(.2); opacity: 0;
  text-shadow: 0 0 7px rgba(14,159,93,.6); animation: sparklepop .62s var(--ease) forwards;
}
@keyframes sparklepop {
  0%   { opacity: 0; transform: translate(-50%, -50%) scale(.2); }
  35%  { opacity: 1; transform: translate(calc(-50% + (var(--dx) * .5)), calc(-50% + (var(--dy) * .5))) scale(1.1); }
  100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) scale(.4); }
}
.gf-card.gf-eject { animation: cardeject .3s var(--ease); }
@keyframes cardeject { from { opacity: 0; } to { opacity: 1; } }

.gf-gate { position: absolute; left: 41%; top: 0; bottom: 0; width: 0; z-index: 1; }
/* the ClearedBy mark sits at the top of the gate */
.gf-gate-mark {
  position: absolute; top: 0; left: 0; transform: translateX(-50%);
  width: 27px; height: 27px; border-radius: 50%;
  background: var(--bg); border: 1px solid var(--hair-2);
  display: grid; place-items: center;
  box-shadow: 0 3px 9px -4px rgba(16,18,16,.32);
}
.gf-gate-mark svg { width: 14px; height: 17px; display: block; }
.gf-gate-mark svg path { fill: var(--ink); }
.gf-gate-line { position: absolute; left: 0; top: 31px; bottom: 16px; border-left: 1.5px solid var(--ink); }
.gf-gate-lbl {
  position: absolute; top: 2px; left: 22px; font-size: 9.5px;
  letter-spacing: .12em; text-transform: uppercase; color: var(--ink); white-space: nowrap;
}
.gf-gate-sub {
  position: absolute; top: 15px; left: 22px; font-size: 9px;
  letter-spacing: .08em; color: var(--ink-3); white-space: nowrap;
}

.gf-card {
  position: absolute; left: 0; top: 0; z-index: 2;
  display: flex; flex-direction: column; gap: 2px;
  font-family: var(--mono); font-size: 11px; white-space: nowrap;
  background: var(--bg); border: 1px solid var(--hair-2); border-radius: 8px;
  padding: 7px 11px; color: var(--ink); will-change: transform;
  box-shadow: 0 2px 10px -6px rgba(16,18,16,.25);
}
.gf-card .row { display: inline-flex; gap: 7px; align-items: center; }
.gf-card .ic {
  width: 18px; height: 18px; display: grid; place-items: center; flex: none;
  border: 1px solid var(--hair-2); border-radius: 4px; color: var(--ink-2);
}
.gf-card .ic svg { width: 11px; height: 11px; }
.gf-card .v { color: var(--ink-3); }
.gf-card .ctx { font-size: 9px; color: var(--ink-3); letter-spacing: .01em; }

/* content previews — the artifact rides on the card */
.gf-card .pv { display: flex; gap: 6px; align-items: center; margin-top: 3px; }
.gf-card .pv-img {
  width: 26px; height: 26px; border-radius: 4px; flex: none; position: relative;
  border: 1px solid var(--hair-2); overflow: hidden;
  background: linear-gradient(180deg, #ffd9a0 0%, #ff9e6d 55%, #e8643c 100%);
}
.gf-card .pv-img::after {
  content: ""; position: absolute; width: 7px; height: 7px; border-radius: 50%;
  background: #fff3d6; top: 4px; left: 5px;
}
.gf-card .pv-img.pv-photo {
  background: linear-gradient(180deg, #cfe7dd 0%, #7fb6a4 60%, #e8dcc0 100%);
}
.gf-card .pv-ava {
  width: 18px; height: 18px; border-radius: 50%; flex: none;
  background: var(--ink-2);
}
.gf-card .pv-lines { display: flex; flex-direction: column; gap: 3px; }
.gf-card .pv-lines b { width: 64px; height: 4px; background: var(--hair-2); border-radius: 2px; }
.gf-card .pv-lines u { width: 44px; height: 4px; background: var(--hair); border-radius: 2px; text-decoration: none; }
.gf-card .pv em {
  font-style: normal; font-size: 8.5px; letter-spacing: .08em; color: var(--ink-3);
  border: 1px solid var(--hair-2); border-radius: 3px; padding: 1px 4px; margin-left: 2px;
}
.gf-card .stamp { display: none; font-size: 9.5px; letter-spacing: .02em; color: var(--ink-3); }
.gf-card.stamped .stamp { display: block; }
.gf-card.gating { border-color: var(--ink); animation: gatepulse .45s var(--ease) infinite alternate; }
@keyframes gatepulse {
  from { box-shadow: 0 2px 10px -6px rgba(16,18,16,.25); }
  to   { box-shadow: 0 0 0 4px var(--bg-2); }
}
.gf-card.cleared  { border-color: var(--grn); animation: none; }
.gf-card.cleared .stamp { color: var(--grn-deep); }
.gf-card.rejected { border-color: var(--red); animation: none; }
.gf-card.rejected .stamp { color: var(--red); }
.gf-card.held {
  border-color: var(--ink); animation: none;
  box-shadow: 0 8px 26px -8px rgba(16,18,16,.32);
}
.gf-card.held .stamp { color: var(--ink-2); }

/* rubber-stamp verdict marks — same treatment as the review workspace UI */
.gf-stampmark {
  position: absolute; inset: -4px; display: grid; place-items: center;
  pointer-events: none; opacity: 0;
}
.gf-card.stampin .gf-stampmark { opacity: 1; }
.gf-stampmark b {
  font-weight: 700; font-size: 10px; letter-spacing: .18em;
  padding: 2px 7px; border: 2px solid currentColor; border-radius: 2px;
  background: rgba(252, 252, 251, .82);
  transform: rotate(-6deg);
}
.gf-card.stampin .gf-stampmark b {
  animation: stampslam .32s cubic-bezier(.2, 1.4, .4, 1) both;
}
@keyframes stampslam {
  0%   { transform: rotate(-14deg) scale(2.1); opacity: 0; }
  60%  { transform: rotate(-5deg)  scale(.94); opacity: 1; }
  100% { transform: rotate(-6deg)  scale(1);   opacity: 1; }
}
.gf-stampmark.s-clear  { color: var(--grn-deep); }
.gf-stampmark.s-reject { color: var(--red); }
.gf-stampmark.s-routed { color: var(--ink); }
.gf-stampmark.s-esc    { color: var(--esc); }
.gf-stampmark.s-back   { color: var(--amber); }
.gf-card.esc { border-color: var(--esc); }
.gf-card.esc .stamp { color: var(--esc); }
.gf-card.sentback { border-color: var(--amber); animation: none; }
.gf-card.sentback .stamp { color: var(--amber); }

/* the pull up to review — suction beam from the lane to the people line */
.gf-beam {
  position: absolute; width: 0;
  border-left: 1px dashed var(--ink-2);
  opacity: 0; transition: opacity .25s var(--ease);
  pointer-events: none;
}
.gf-beam.on { opacity: .55; }

/* pass flash at the gate when a card clears instantly */
.gf-flash {
  position: absolute; width: 26px; height: 26px; border-radius: 50%;
  border: 2px solid var(--grn); pointer-events: none;
  animation: flashring .55s var(--ease) forwards;
}
@keyframes flashring {
  0%   { transform: scale(.35); opacity: 0; }
  30%  { opacity: .9; }
  100% { transform: scale(1.6); opacity: 0; }
}

/* the dark strip every verdict lands on */
.gf-record {
  display: flex; align-items: center; gap: 16px;
  background: var(--dark); border-bottom: 1px solid var(--hair);
  padding: 12px 16px; min-height: 62px; overflow: hidden;
}
.gf-rec-label {
  font-size: 9.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--dark-fg2); flex: none;
}
.gf-chain {
  display: flex; gap: 13px; justify-content: flex-end; align-items: center;
  flex: 1; overflow: hidden; min-height: 38px;
}
.gf-block {
  position: relative; flex: none; width: 96px; height: 38px;
  display: grid; place-items: center;
  background: var(--dark-2); border: 1px solid var(--dark-line); border-top-width: 2px;
  font-family: var(--mono); font-size: 10px; color: var(--dark-fg);
  animation: blockin .5s var(--ease);
}
/* the link to the previous block — the chain is the point */
.gf-block::before {
  content: ""; position: absolute; left: -14px; top: 50%; width: 14px;
  border-top: 1px solid var(--dark-line);
}
.gf-block:first-child::before { display: none; }
.gf-block.v-auto   { border-top-color: var(--grn); }
.gf-block.v-human  { border-top-color: var(--dark-fg); }
.gf-block.v-reject { border-top-color: var(--red); }
@keyframes blockin { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes verifyflash {
  0%, 100% { box-shadow: none; }
  45%      { box-shadow: inset 0 0 0 1px var(--grn); }
}
.gf-rec-meta { font-size: 10px; color: var(--dark-fg2); flex: none; transition: color .3s var(--ease); }
.gf-rec-meta.ok { color: var(--grn); }

.gf-caption {
  display: flex; gap: 14px; flex-wrap: wrap; align-items: center; justify-content: center;
  padding-top: clamp(22px, 2.6vw, 38px); font-size: 10.5px; letter-spacing: .06em;
  text-transform: uppercase; color: var(--ink-3);
}
.gf-caption .arr { color: var(--hair-2); }
.gf-caption .grn { color: var(--grn); }

/* stacked layout: text on top, agents under it, then the track band */
@media (max-width: 900px) {
  .hero-top { flex-direction: column; gap: 16px; }
  .hero-copy { order: 1; }
  .gf-agents { order: 2; }
  .hero h1 { max-width: 20ch; font-size: clamp(2rem, 6.2vw, 3rem); }
  .hero-sub { max-width: 60ch; }
  .gf-track { height: 200px; }
  .gf-humanline, .gf-z-people { display: none; }
  .gf-gate { left: 50%; }
  .gf-rec-meta { display: none; }
  .gf-block { width: 80px; }
  .gf-card .pv { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .ag-core svg, .ag-halo, .ag-orb, .ag-tw { animation: none; }
}

/* ============================================================
   SECTION HEADS — work items
   ============================================================ */
.sec-head {
  display: flex; align-items: baseline; gap: 16px;
  padding-bottom: 18px; margin-bottom: clamp(28px, 4vw, 48px);
  border-bottom: 1px solid var(--hair);
}
.sec-head .wi { font-size: 10.5px; color: var(--ink-3); letter-spacing: .1em; }
.sec-head .sec-status {
  margin-left: auto; font-size: 10.5px; color: var(--ink-3); letter-spacing: .04em;
  transition: color .3s; font-variant-numeric: tabular-nums; white-space: nowrap;
}
.sec-head .sec-status.cleared { color: var(--grn); }

/* ============================================================
   WI-01 — the shift
   ============================================================ */
.shift-grid { display: grid; grid-template-columns: 1.35fr 1fr; gap: clamp(28px,5vw,80px); align-items: end; }
@media (max-width: 860px){ .shift-grid { grid-template-columns: 1fr; gap: 36px; } }
.bigstat { font-size: clamp(4rem, 9vw, 7.5rem); font-weight: 650; letter-spacing: -.05em; line-height: .85; }
.bigstat .x { color: var(--grn); }
.shift-note { font-size: 14px; color: var(--ink-2); line-height: 1.6; margin-top: 20px; max-width: 40ch; }
.shift-note b { color: var(--ink); }

/* ============================================================
   WI-02 — spine
   ============================================================ */
.spine { display: grid; grid-template-columns: 1fr 1fr; gap: 0; margin-top: 52px; border-top: 1px solid var(--hair); }
@media (max-width: 820px){ .spine { grid-template-columns: 1fr; } }
.surface { padding: 32px clamp(0px,3vw,46px) 8px 0; }
.surface + .surface { border-left: 1px solid var(--hair); padding-left: clamp(24px,3vw,46px); padding-right: 0; }
@media (max-width: 820px){ .surface + .surface { border-left: none; border-top: 1px solid var(--hair); padding-left: 0; } }
.face-kick { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.pill { font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; padding: 5px 10px; border-radius: 999px; }
.pill.ink { background: var(--ink); color: var(--bg); }
.pill.grn { background: var(--grn); color: #fff; }
.emotion { font-size: 13px; color: var(--ink-3); font-style: italic; }
.quote { font-size: clamp(1.3rem,2vw,1.75rem); font-weight: 600; letter-spacing: -.03em; line-height: 1.15; margin-bottom: 14px; max-width: 24ch; }
.surface-sub { font-size: 14px; color: var(--ink-2); margin-bottom: 18px; }
.surface ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 7px; }
.surface ul li { font-family: var(--mono); font-size: 11px; border: 1px solid var(--hair); border-radius: 7px; padding: 5px 10px; color: var(--ink-2); background: var(--bg-2); }

/* ============================================================
   WI-03 — flow steps
   ============================================================ */
.flow-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 0; margin-top: 52px; border-top: 1px solid var(--hair); }
@media (max-width: 880px){ .flow-steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 520px){ .flow-steps { grid-template-columns: 1fr; } }
.step { padding: 26px 26px 28px 0; border-right: 1px solid var(--hair); }
.step:last-child { border-right: none; }
@media (max-width: 880px){ .step{ border-bottom:1px solid var(--hair); padding-right:22px; } }
.step .n { font-family: var(--mono); font-size: 10.5px; color: var(--grn-deep); letter-spacing: .1em; text-transform: uppercase; margin-bottom: 16px; }
.step h4 { font-size: 1.12rem; letter-spacing: -.02em; margin-bottom: 8px; }
.step p { font-size: 14px; color: var(--ink-2); line-height: 1.5; }
.step p .mono { color: var(--ink); }

/* ============================================================
   WI-04 — workspace
   ============================================================ */
.ws-grid { display: grid; grid-template-columns: 0.85fr 1.15fr; gap: clamp(30px,5vw,72px); align-items: center; }
@media (max-width: 960px){ .ws-grid { grid-template-columns: 1fr; gap: 40px; } }
.ws-metric { margin-top: 26px; display: flex; align-items: baseline; gap: 16px; }
.ws-metric .num { font-size: clamp(2.8rem,5vw,4.2rem); font-weight: 650; letter-spacing: -.05em; line-height: .9; }
.ws-metric .lab { font-size: 13px; color: var(--ink-2); max-width: 24ch; }
.ws-metric .lab b { color: var(--ink); }
.ws-shot {
  background: var(--bg); border: 1px solid var(--hair-2); border-radius: 12px; overflow: hidden;
  box-shadow: 0 30px 70px -42px rgba(16,18,16,.45), 0 2px 10px -6px rgba(16,18,16,.12);
}

/* top bar — mirrors the real workspace TopBar */
.ws-top { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-bottom: 1px solid var(--hair); background: #fff; }
.ws-logo { height: 15px; width: auto; }
.ws-stat { display: flex; align-items: center; gap: 5px; font-size: 9.5px; color: var(--ink-3); white-space: nowrap; }
.ws-stat b { color: var(--ink); }
.ws-stat .ws-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--grn); }
.ws-stat .ws-sep { color: var(--hair-2); }
.ws-pause { margin-left: auto; display: inline-flex; align-items: center; gap: 5px; font-size: 9px; color: var(--red);
  background: var(--red-soft); border: 1px solid color-mix(in srgb, var(--red) 18%, transparent); padding: 4px 8px; border-radius: 4px; white-space: nowrap; }
.ws-pause svg { width: 11px; height: 11px; }
.ws-user { width: 24px; height: 24px; border-radius: 5px; background: var(--bg-2); border: 1px solid var(--hair-2);
  display: grid; place-items: center; font-size: 10px; font-weight: 700; color: var(--ink); }
@media (max-width: 640px) { .ws-stat { display: none; } }

/* body: rail · queue · review */
.ws-body { display: flex; min-height: 350px; }

/* collapsed left rail */
.ws-rail { width: 46px; flex: none; border-right: 1px solid var(--hair); background: var(--bg-2);
  display: flex; flex-direction: column; align-items: center; gap: 4px; padding: 8px 0; }
.ws-ri { width: 30px; height: 30px; border-radius: 6px; display: grid; place-items: center; color: var(--ink-3); }
.ws-ri svg { width: 16px; height: 16px; }
.ws-ri.active { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px var(--hair), 0 1px 3px -1px rgba(16,18,16,.14); }
.ws-ri.esc { color: var(--esc); }
.ws-ri-div { width: 20px; height: 1px; background: var(--hair); margin: 3px 0; }
.ws-ri.zap { margin-top: auto; color: var(--amber); }

/* queue list */
.ws-queue { width: 170px; flex: none; border-right: 1px solid var(--hair);
  background: color-mix(in srgb, var(--bg-2) 55%, var(--bg)); display: flex; flex-direction: column; }
.ws-qhead { padding: 11px 12px; font-size: 9px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); border-bottom: 1px solid var(--hair); }
.ws-qcard { margin: 6px; padding: 9px 10px; border-radius: 5px; border: 1px solid transparent; position: relative; }
.ws-qcard.active { background: #fff; border-color: var(--ink); box-shadow: 0 2px 8px -4px rgba(16,18,16,.22); }
.ws-qcard.active::before { content: ""; position: absolute; left: 0; top: 9px; bottom: 9px; width: 2px; background: var(--ink); }
.ws-qtop { display: flex; align-items: center; justify-content: space-between; margin-bottom: 5px; }
.ws-qtype { display: inline-flex; align-items: center; gap: 5px; font-size: 8.5px; letter-spacing: .05em; text-transform: uppercase; color: var(--ink-2); }
.ws-qtype svg { width: 12px; height: 12px; color: var(--ink-3); }
.ws-sla { display: inline-flex; align-items: center; gap: 3px; font-size: 9px; color: var(--ink-3); }
.ws-sla svg { width: 11px; height: 11px; }
.ws-sla.urgent { color: var(--red); }
.ws-qtitle { font-size: 11.5px; font-weight: 600; color: var(--ink); margin-bottom: 2px; letter-spacing: -.01em; }
.ws-qprev { font-size: 10px; color: var(--ink-3); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ws-qflag { display: flex; align-items: center; gap: 5px; margin-top: 6px; font-size: 9px; color: var(--amber);
  background: var(--amber-soft); border: 1px solid color-mix(in srgb, var(--amber) 16%, transparent); padding: 4px 6px; border-radius: 4px; line-height: 1.3; }
.ws-qflag svg { width: 11px; height: 11px; flex: none; }
@media (max-width: 600px) { .ws-queue { display: none; } }

/* review pane */
.ws-review { flex: 1; min-width: 0; padding: 16px; display: flex; flex-direction: column; }
.ws-rhead { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px;
  padding-bottom: 14px; border-bottom: 1px solid var(--hair); margin-bottom: 16px; }
.ws-rmeta { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; }
.ws-id { font-size: 9.5px; color: var(--ink-2); background: var(--bg-2); border: 1px solid var(--hair); padding: 3px 7px; }
.ws-pol { display: inline-flex; align-items: center; gap: 4px; font-size: 9px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.ws-pol svg { width: 12px; height: 12px; }
.ws-rtitle { font-size: 16px; font-weight: 650; color: var(--ink); letter-spacing: -.02em; }
.ws-ghead { text-align: right; flex: none; }
.ws-glabel { display: block; font-size: 8px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin-bottom: 5px; }
.ws-grule { font-size: 9.5px; color: var(--ink); background: var(--bg-2); border: 1px solid var(--hair); padding: 4px 8px; white-space: nowrap; }

.ws-diff { border: 1px solid var(--hair); border-radius: 6px; overflow: hidden; font-size: 11px; }
.ws-diff .dl { padding: 7px 11px; display: flex; gap: 9px; }
.ws-diff .dl + .dl { border-top: 1px solid var(--hair); }
.ws-diff .dl .mk { width: 10px; flex: none; }
.ws-diff .dl.del { background: var(--red-soft); color: var(--red); }
.ws-diff .dl.add { background: var(--grn-soft); color: var(--grn-deep); }
.ws-precedent { margin-top: 12px; display: flex; flex-wrap: wrap; gap: 7px; }
.ws-precedent .pc { font-size: 10px; border: 1px solid var(--hair); border-radius: 5px; padding: 4px 8px; color: var(--ink-2); display: flex; align-items: center; gap: 6px; }
.ws-precedent .pc .tick { width: 6px; height: 6px; border-radius: 50%; background: var(--grn); display: block; }

.ws-actions { margin-top: auto; padding-top: 18px; }
.ws-note { display: block; font-size: 10.5px; color: var(--ink-3); font-style: italic; border: 1px solid var(--hair); border-radius: 5px; padding: 8px 10px; margin-bottom: 10px; }
.ws-acts { display: flex; gap: 7px; flex-wrap: wrap; }
.wact {
  flex: 1; display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  font-size: 11px; font-weight: 600; padding: 9px 6px; border-radius: 5px;
  border: 1px solid var(--hair-2); background: var(--bg); cursor: pointer; color: var(--ink-2);
  transition: transform .15s var(--ease), border-color .15s, background .15s, color .15s; white-space: nowrap;
}
.wact:hover { transform: translateY(-1px); border-color: var(--ink); color: var(--ink); }
.wact .k { font-size: 8.5px; color: var(--ink-3); border: 1px solid var(--hair-2); border-radius: 3px; padding: 0 3px; }
.wact.approve { flex: 1.3; background: var(--grn); border-color: var(--grn); color: #fff; }
.wact.approve:hover { background: var(--grn-deep); border-color: var(--grn-deep); color: #fff; }
.wact.approve .k { color: #fff; border-color: #ffffff66; }
.wact.approve:hover { background: var(--grn-deep); }

/* ============================================================
   WI-05 — learning loop
   ============================================================ */
.loop-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,72px); align-items: center; }
@media (max-width: 960px){ .loop-grid { grid-template-columns: 1fr; gap: 44px; } }
.loop-points { display: grid; gap: 20px; margin-top: 30px; }
.loop-pt h4 { font-size: 1.1rem; margin-bottom: 6px; letter-spacing: -.02em; }
.loop-pt p { font-size: 14px; color: var(--ink-2); line-height: 1.5; max-width: 50ch; }
.panic { margin-top: 28px; display: inline-flex; align-items: center; gap: 12px; border: 1px solid var(--hair); border-radius: 12px; padding: 12px 16px; background: var(--bg-2); }
.panic .sw { width: 36px; height: 21px; border-radius: 999px; background: var(--ink); position: relative; flex: none; }
.panic .sw::after { content:""; position:absolute; top:2px; right:2px; width:17px; height:17px; border-radius:50%; background:#fff; }
.panic .tx { font-size: 13px; color: var(--ink-2); } .panic .tx b { color: var(--ink); }
.dial-card { background: var(--bg); border: 1px solid var(--hair-2); border-radius: 14px; padding: 24px 26px 18px; box-shadow: 0 24px 60px -44px rgba(16,18,16,.4); }
.dial-head { font-size: 10px; color: var(--ink-3); letter-spacing: .14em; text-transform: uppercase; margin-bottom: 8px; }
.chart { width: 100%; height: 220px; }
.chart text { font-family: var(--mono); font-size: 10px; fill: var(--ink-3); }
.chart .axis { stroke: var(--hair); stroke-width: 1; }
.chart .area { fill: url(#g-area); }
.chart .linep { fill: none; stroke: var(--grn); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.chart .dot { fill: var(--bg); stroke: var(--grn); stroke-width: 2; }
.dial-legend { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--hair); font-size: 11px; color: var(--ink-2); }
.dial-legend b { color: var(--ink); }

/* ============================================================
   WI-06 — the record (dark)
   ============================================================ */
.ledger { background: var(--dark); color: var(--dark-fg); border-top: none; }
.ledger .sec-head { border-bottom-color: var(--dark-line); }
.ledger .eyebrow { color: var(--dark-fg); }
.ledger .sec-head .wi, .ledger .sec-status { color: var(--dark-fg2); }
.ledger .sec-status.cleared { color: var(--grn); }
.ledger .h2 { color: var(--dark-fg); }
.ledger .lede { color: var(--dark-fg2); }
.ledger-grid { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: clamp(30px,5vw,72px); align-items: start; margin-top: 50px; }
@media (max-width: 920px){ .ledger-grid { grid-template-columns: 1fr; gap: 40px; } }
.chain { font-size: 12px; display: grid; gap: 10px; }
.chain-row { border: 1px solid var(--dark-line); border-radius: 12px; padding: 14px 16px; background: var(--dark-2); position: relative; }
.chain-row + .chain-row::before {
  content: "↑ prev_row_hash"; position: absolute; top: -16px; left: 18px;
  font-size: 9px; color: var(--dark-fg2); background: var(--dark); padding: 0 6px;
}
.chain-row .top { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.chain-row .dot { width: 8px; height: 8px; border-radius: 50%; display: block; flex: none; }
.chain-row .dot.grn { background: var(--grn); }
.chain-row .dot.red { background: #d4654c; }
.chain-row .top b { font-family: var(--sans); font-size: 13px; color: #fff; letter-spacing: -.01em; }
.chain-row .top .when { margin-left: auto; color: var(--dark-fg2); font-size: 10.5px; }
.chain-row .hash { color: #6fcf9a; word-break: break-all; line-height: 1.5; }
.chain-row .prev { color: var(--dark-fg2); font-size: 10.5px; margin-top: 4px; }
.ledger-side { display: grid; gap: 26px; padding-top: 6px; }
.led-pt h4 { font-size: 1.08rem; margin-bottom: 6px; color: var(--dark-fg); letter-spacing: -.02em; }
.led-pt p { font-size: 14px; color: var(--dark-fg2); line-height: 1.5; }

/* ============================================================
   WI-07 — integrate
   ============================================================ */
.integrate-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(30px,5vw,64px); align-items: center; margin-top: 48px; }
@media (max-width: 920px){ .integrate-grid { grid-template-columns: 1fr; gap: 40px; } }
.code { background: var(--dark); border-radius: 14px; overflow: hidden; box-shadow: 0 30px 70px -46px rgba(16,18,16,.6); }
.code-bar { padding: 11px 16px; border-bottom: 1px solid var(--dark-line); font-size: 11px; color: var(--dark-fg2); }
.code pre { margin: 0; padding: 18px 20px; overflow-x: auto; }
.code code { font-family: var(--mono); font-size: 12.5px; line-height: 1.7; color: var(--dark-fg); }
.code .cm { color: #5d635d; } .code .kw { color: #6fcf9a; } .code .fn { color: #a8e0c2; } .code .st { color: #cfd6b8; } .code .pr { color: #9bb6d4; }
.rungs { display: grid; gap: 0; border-top: 1px solid var(--hair); }
.rung { display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 18px 2px; border-bottom: 1px solid var(--hair); }
.rung .ri { font-size: 11px; color: var(--ink-3); }
.rung h4 { font-size: 1.02rem; letter-spacing: -.02em; margin-bottom: 3px; }
.rung p { font-size: 13px; color: var(--ink-2); line-height: 1.45; }
.rung p .mono { color: var(--ink); }
.rung .enf { display: flex; gap: 3px; align-items: center; }
.rung .enf i { width: 5px; height: 12px; background: var(--hair-2); border-radius: 1px; display: block; }
.rung .enf i.on { background: var(--grn); }

/* ============================================================
   WI-08 — pricing
   ============================================================ */
/* 7 tiers — 4 across (4 + 3) reads better than 6 + an orphan, and the wider
   cards give the Free/Personal capability lines room to breathe. */
.price-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 44px; }
@media (max-width: 920px){ .price-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px){ .price-grid { grid-template-columns: 1fr; } }
.tier { padding: 22px 18px; border: 1px solid var(--hair); border-radius: 12px; display: flex; flex-direction: column; background: var(--bg); }
.tier.feature { border-color: var(--grn); box-shadow: 0 8px 26px rgba(14,159,93,.10); }
.tier .tname { font-size: 10px; letter-spacing: .13em; text-transform: uppercase; color: var(--ink-3); display: flex; align-items: center; gap: 7px; flex-wrap: wrap; }
.tier .tname .rec { color: var(--grn); letter-spacing: .05em; white-space: nowrap; }
.tier .tprice { font-size: clamp(1.6rem, 2.1vw, 2.1rem); font-weight: 650; letter-spacing: -.03em; margin: 14px 0 3px; line-height: 1; }
.tier .tprice small { font-size: 13px; font-weight: 500; color: var(--ink-3); letter-spacing: -.01em; }
.tier .tgates { font-size: 11px; color: var(--ink-2); letter-spacing: .01em; margin-bottom: 14px; }
.tier .tfor { font-size: 12.5px; color: var(--ink-2); line-height: 1.45; margin-bottom: 18px; flex: 1; }
.tier .btn { width: 100%; justify-content: center; }
.price-note { margin-top: 20px; font-size: 12px; color: var(--ink-3); max-width: 64ch; }

/* ============================================================
   CLOSE — the payoff
   ============================================================ */
.close { text-align: left; padding-block: clamp(90px, 11vw, 170px); }
.close-meta { font-size: 11px; color: var(--ink-3); letter-spacing: .06em; margin-bottom: 24px; }
.close-meta b, #closeCount b { color: var(--grn); }
.close .h-display #closeTime { color: var(--ink); font-variant-numeric: tabular-nums; }
.close-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 36px; }

/* fixed progress pill */
.progress {
  position: fixed; right: 18px; bottom: 18px; z-index: 50;
  font-size: 10.5px; letter-spacing: .04em; color: var(--ink-2);
  background: var(--bg); border: 1px solid var(--hair-2); border-radius: 999px;
  padding: 7px 13px; box-shadow: 0 8px 26px -12px rgba(16,18,16,.35);
  opacity: 0; transform: translateY(8px); transition: opacity .4s var(--ease), transform .4s var(--ease);
  pointer-events: none;
}
.progress.on { opacity: 1; transform: none; }
.progress b { color: var(--grn); font-weight: 600; }

/* ============================================================
   FOOTER
   ============================================================ */
.foot { border-top: 1px solid var(--hair); padding-block: 50px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; margin-bottom: 38px; }
.foot-brand { max-width: 30ch; }
.foot-brand p { font-size: 13px; color: var(--ink-2); margin-top: 14px; line-height: 1.5; }
.foot-cols { display: flex; gap: 56px; flex-wrap: wrap; }
.foot-col h5 { font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 13px; font-weight: 500; }
.foot-col a { display: block; font-size: 13.5px; color: var(--ink-2); margin-bottom: 9px; transition: color .15s; }
.foot-col a:hover { color: var(--grn-deep); }
.foot-bot { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; border-top: 1px solid var(--hair); padding-top: 20px; font-size: 11px; color: var(--ink-3); }

/* ============================================================
   reveal
   ============================================================ */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .hud-live i { animation: none; }
  * { scroll-behavior: auto; }
}

/* ============================================================
   USE-CASE LANDING PAGES (generated by build-use-cases.mjs)
   ============================================================ */
.uc-main { padding-bottom: clamp(40px, 6vw, 96px); }
.uc-crumbs { padding-top: 22px; font-size: 11px; color: var(--ink-3); display: flex; gap: 8px; align-items: center; }
.uc-crumbs a { color: var(--ink-2); }
.uc-crumbs a:hover { color: var(--ink); }
.uc-crumbs span { color: var(--hair-2); }

.uc-hero { padding-top: clamp(26px, 4vw, 56px); padding-bottom: clamp(20px, 3vw, 40px); }
/* two columns only when there's an illustration (page heros, not the hub) */
.uc-hero:has(.uc-hero-art) { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: clamp(24px, 4vw, 56px); align-items: center; }
.uc-hero-copy { min-width: 0; }
.uc-hero-art { min-width: 0; }
.uc-art-svg { width: 100%; height: auto; display: block; overflow: visible; }
.uc-art-svg text { font-family: var(--mono); }
.uc-art-svg .a-lbl { font-size: 9px; letter-spacing: .14em; text-transform: uppercase; fill: var(--ink-3); }
.uc-art-svg .a-mono { font-size: 11.5px; fill: var(--ink); }
.uc-art-svg .a-mono-sm { font-size: 9.5px; fill: var(--ink-2); }
.uc-art-svg .a-card { fill: url(#agCard); stroke: var(--hair-2); }
.uc-art-svg .a-soft { filter: url(#agSoft); }
.uc-art-svg .a-wire { fill: none; stroke: var(--hair-2); stroke-width: 1.5; }
.uc-art-svg .a-wire-g { fill: none; stroke: var(--grn); stroke-width: 1.6; }
.uc-art-svg .a-gate { stroke: var(--ink); stroke-width: 1.5; }
.uc-art-svg .a-dot { fill: var(--grn); }
.uc-art-svg .a-orb { fill: var(--grn); }
.uc-art-svg .a-block { fill: url(#agInk); }
.uc-art-svg .a-seal { fill: var(--grn); }
.uc-art-svg .a-pill { fill: var(--bg); }
.uc-art-svg .a-pill-g { stroke: var(--grn); }
.uc-art-svg .a-pill-i { stroke: var(--ink); }
.uc-art-svg .a-grn-t { fill: var(--grn-deep); font-size: 11px; }
.uc-art-svg .a-ink-t { fill: var(--ink); font-size: 11px; }
.uc-art-svg .a-tw { fill: var(--grn); }
.uc-art-svg .a-ring { fill: none; stroke: var(--hair); stroke-width: 1.2; }
@media (max-width: 880px) { .uc-hero:has(.uc-hero-art) { grid-template-columns: 1fr; } .uc-hero-art { max-width: 440px; } }
.uc-eyebrow { display: inline-block; color: var(--grn); margin-bottom: 16px; }
.uc-h1 { font-size: clamp(2.1rem, 4.4vw, 3.4rem); max-width: 18ch; }
.uc-dek { max-width: 56ch; margin-top: 20px; }
.uc-cta-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 28px; }
.uc-actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 26px; }
.uc-chip {
  font-size: 11px; color: var(--ink-2); background: var(--bg-2);
  border: 1px solid var(--hair); border-radius: 6px; padding: 5px 10px;
}

.uc-section { padding-top: clamp(34px, 5vw, 64px); border-top: 1px solid var(--hair); margin-top: clamp(34px, 5vw, 64px); }
.uc-section .h2 { font-size: clamp(1.5rem, 2.6vw, 2.1rem); margin-bottom: 24px; }
.uc-prose { max-width: 64ch; }
.uc-prose p { color: var(--ink-2); font-size: 1.05rem; line-height: 1.65; }
.uc-prose p + p { margin-top: 16px; }

.uc-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 22px; max-width: 70ch; }
.uc-step { display: flex; gap: 18px; align-items: flex-start; }
.uc-step-n { color: var(--grn); font-size: 13px; font-weight: 600; padding-top: 3px; flex: none; }
.uc-step h3 { font-size: 1.1rem; margin-bottom: 5px; }
.uc-step p { color: var(--ink-2); line-height: 1.6; }

.uc-example { margin-top: 28px; border: 1px solid var(--hair-2); border-radius: 10px; overflow: hidden; max-width: 70ch; }
.uc-example-bar { background: var(--bg-2); border-bottom: 1px solid var(--hair); padding: 9px 14px; font-size: 11px; color: var(--ink-3); }
.uc-example pre { margin: 0; padding: 14px 16px; font-size: 12.5px; line-height: 1.6; color: var(--ink); white-space: pre-wrap; word-break: break-word; }

.uc-faq { display: grid; gap: 0; max-width: 72ch; border-top: 1px solid var(--hair); }
.uc-faq-item { padding: 20px 0; border-bottom: 1px solid var(--hair); }
.uc-faq-item h3 { font-size: 1.05rem; margin-bottom: 8px; }
.uc-faq-item p { color: var(--ink-2); line-height: 1.6; }

.uc-related { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 800px) { .uc-related { grid-template-columns: 1fr; } }
.uc-rel { display: flex; flex-direction: column; gap: 8px; padding: 18px; border: 1px solid var(--hair); border-radius: 12px; transition: border-color .18s, transform .18s var(--ease); }
.uc-rel:hover { border-color: var(--ink); transform: translateY(-2px); }
.uc-rel-eyebrow { font-size: 9.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--grn); }
.uc-rel-title { font-weight: 600; letter-spacing: -.01em; }

.uc-final { padding-top: clamp(40px, 6vw, 72px); border-top: 1px solid var(--hair); margin-top: clamp(40px, 6vw, 72px); }
.uc-final .h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); max-width: 22ch; }
.uc-final .lede { max-width: 52ch; margin-top: 16px; }

/* hub */
.uc-hub-group { padding-top: clamp(34px, 5vw, 56px); border-top: 1px solid var(--hair); margin-top: clamp(34px, 5vw, 56px); }
.uc-hub-group .h2 { font-size: clamp(1.4rem, 2.4vw, 2rem); margin-bottom: 22px; }
.uc-hub-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 900px) { .uc-hub-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .uc-hub-grid { grid-template-columns: 1fr; } }
.uc-card { display: flex; flex-direction: column; gap: 8px; padding: 20px; border: 1px solid var(--hair); border-radius: 12px; transition: border-color .18s, transform .18s var(--ease); }
.uc-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.uc-card-title { font-weight: 600; font-size: 1.05rem; letter-spacing: -.015em; }
.uc-card-dek { font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* legal pages (privacy / terms) */
.legal-head { padding-top: clamp(26px, 4vw, 56px); }
.legal-head .uc-h1 { max-width: none; }
.legal-updated { color: var(--ink-3); font-size: 11px; margin-top: 14px; }
.legal-body { padding-top: clamp(18px, 3vw, 32px); max-width: 70ch; }
.legal-body .h2 { font-size: clamp(1.15rem, 1.9vw, 1.5rem); margin: 32px 0 12px; }
.legal-body p { color: var(--ink-2); line-height: 1.7; margin-bottom: 12px; }
.legal-body ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 8px; }
.legal-body li { color: var(--ink-2); line-height: 1.6; }

/* footer legal links */
.foot-legal { display: inline-flex; gap: 16px; }
.foot-legal a { color: var(--ink-3); }
.foot-legal a:hover { color: var(--ink); }

/* ============================================================
   DOCS (docs/partners/*: the partner docs section)
   Sticky table of contents, copyable code.
   Docs pages follow the reader's light/dark preference: the
   tokens are redefined below, so every component just uses them.
   ============================================================ */
body.docs .logo-dark { display: none; }
@media (prefers-color-scheme: dark) {
  body.docs {
    --bg:     #0f110f;
    --bg-2:   #171a17;
    --ink:    #eef0ec;
    --ink-2:  #a9aea6;
    --ink-3:  #7b8078;
    --hair:   #262a25;
    --hair-2: #353a34;
    --grn:      #2fbf7a;
    --grn-deep: #5fd49a;
    --grn-soft: #13301f;
    --red:      #e06a52;
    --red-soft: #3a1c15;
    --amber:      #d9a441;
    --amber-soft: #33280f;
    --esc:        #8b90ff;
    --dark:   #181b18;
    --dark-line: rgba(252,252,251,0.10);
    color-scheme: dark;
  }
  body.docs .logo-light { display: none; }
  body.docs .logo-dark { display: block; }
}

.docs-main { padding-bottom: clamp(40px, 6vw, 96px); }
.docs-head { padding-top: clamp(26px, 4vw, 56px); padding-bottom: clamp(18px, 3vw, 36px); }
.docs-head .uc-h1 { max-width: 22ch; }
.docs-head .lede { max-width: 62ch; margin-top: 18px; }
.docs-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }

.docs-layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
@media (max-width: 960px) { .docs-layout { grid-template-columns: minmax(0, 1fr); } }

/* table of contents */
.docs-toc { position: sticky; top: 78px; max-height: calc(100vh - 96px); overflow-y: auto; padding: 4px 4px 24px 0; font-size: 13.5px; }
.docs-toc summary { list-style: none; cursor: default; font-size: 10px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); font-family: var(--mono); margin-bottom: 12px; }
.docs-toc summary::-webkit-details-marker { display: none; }
.docs-toc ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; counter-reset: toc; }
.docs-toc li { counter-increment: toc; }
.docs-toc a { display: flex; gap: 10px; padding: 5px 8px; border-radius: 7px; color: var(--ink-2); line-height: 1.35; border-left: 2px solid transparent; }
.docs-toc a::before { content: counter(toc, decimal-leading-zero); font-family: var(--mono); font-size: 11px; color: var(--ink-3); padding-top: 1px; flex: none; }
.docs-toc a:hover { color: var(--ink); background: var(--bg-2); }
.docs-toc a.active { color: var(--ink); background: var(--bg-2); border-left-color: var(--grn); }
@media (max-width: 960px) {
  .docs-toc { position: static; max-height: none; border: 1px solid var(--hair); border-radius: 12px; padding: 14px 16px; }
  .docs-toc summary { cursor: pointer; margin-bottom: 0; }
  .docs-toc summary::after { content: ' +'; }
  .docs-toc[open] summary { margin-bottom: 12px; }
  .docs-toc[open] summary::after { content: ' \2212'; }
}

/* body copy */
.docs-body { min-width: 0; max-width: 80ch; }
.docs-sec { padding-top: 32px; margin-top: 32px; border-top: 1px solid var(--hair); scroll-margin-top: 76px; }
.docs-sec:first-child { border-top: none; margin-top: 0; padding-top: 0; }
.docs-sec > h2 { font-size: clamp(1.45rem, 2.4vw, 1.9rem); letter-spacing: -.03em; line-height: 1.1; margin-bottom: 16px; display: flex; gap: 12px; align-items: baseline; }
.docs-sec > h2 .n { font-family: var(--mono); font-size: 13px; color: var(--grn); font-weight: 500; letter-spacing: 0; flex: none; }
.docs-body h3 { font-size: 1.15rem; letter-spacing: -.02em; line-height: 1.25; margin: 30px 0 10px; scroll-margin-top: 76px; }
.docs-body h4 { font-size: 1rem; letter-spacing: -.01em; margin: 22px 0 8px; }
.docs-body p { color: var(--ink-2); line-height: 1.7; margin-bottom: 14px; font-size: 16px; }
.docs-body p strong, .docs-body li strong, .docs-body td strong { color: var(--ink); }
.docs-body ul, .docs-body ol { margin: 0 0 16px; padding-left: 22px; display: grid; gap: 7px; }
.docs-body li { color: var(--ink-2); line-height: 1.6; font-size: 16px; }
.docs-body a:not(.btn) { color: var(--grn-deep); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--grn) 40%, transparent); text-underline-offset: 3px; }
.docs-body a:not(.btn):hover { text-decoration-color: var(--grn); }
.docs-body :not(pre) > code { font-family: var(--mono); font-size: .84em; background: var(--bg-2); border: 1px solid var(--hair); padding: 1px 6px; border-radius: 5px; color: var(--ink); overflow-wrap: anywhere; }
.docs-body .lead-in { color: var(--ink); font-size: 1.08rem; }

/* code blocks: the site's dark .code panel plus a copy button */
.docs-body .code { margin: 14px 0 20px; box-shadow: none; border: 1px solid var(--dark-line); }
.docs-body .code-bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 7px 8px 7px 16px; }
.docs-body .code code { font-size: 12.5px; white-space: pre; font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.docs-body code { font-variant-ligatures: none; font-feature-settings: "liga" 0, "calt" 0; }
.copy-btn { font-family: var(--mono); font-size: 11px; color: var(--dark-fg2); background: transparent; border: 1px solid var(--dark-line); border-radius: 6px; padding: 4px 9px; cursor: pointer; transition: color .15s, border-color .15s; }
.copy-btn:hover { color: var(--dark-fg); border-color: var(--dark-fg2); }
.copy-btn.done { color: #6fcf9a; border-color: #6fcf9a; }

/* tables */
.docs-table { overflow-x: auto; margin: 14px 0 22px; border: 1px solid var(--hair); border-radius: 10px; }
.docs-table table { border-collapse: collapse; width: 100%; font-size: 14px; }
.docs-table th { text-align: left; font-weight: 600; font-size: 12px; letter-spacing: .02em; color: var(--ink); background: var(--bg-2); padding: 9px 12px; border-bottom: 1px solid var(--hair); white-space: nowrap; }
.docs-table td { padding: 9px 12px; border-bottom: 1px solid var(--hair); color: var(--ink-2); vertical-align: top; line-height: 1.5; }
.docs-table tr:last-child td { border-bottom: none; }
.docs-table td code { white-space: nowrap; }
.docs-table td.wrap code { white-space: normal; }
.docs-table .grp td { background: var(--bg-2); color: var(--ink); font-weight: 600; font-size: 12px; letter-spacing: .02em; }

/* callouts */
.callout { border: 1px solid var(--hair-2); border-left: 3px solid var(--ink-3); border-radius: 10px; padding: 14px 16px; margin: 16px 0 22px; background: var(--bg); }
.callout > :last-child { margin-bottom: 0; }
.callout-title { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.callout p, .callout li { font-size: 15px; }
.callout-soon { border-left-color: var(--amber); background: color-mix(in srgb, var(--amber-soft) 55%, var(--bg)); }
.callout-must { border-left-color: var(--red); background: color-mix(in srgb, var(--red-soft) 45%, var(--bg)); }
.callout-tip { border-left-color: var(--grn); background: color-mix(in srgb, var(--grn-soft) 50%, var(--bg)); }
.pill { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10.5px; letter-spacing: .06em; text-transform: uppercase; border-radius: 999px; padding: 3px 9px; border: 1px solid var(--hair-2); color: var(--ink-2); background: var(--bg); white-space: nowrap; }
.pill-soon { color: var(--amber); border-color: color-mix(in srgb, var(--amber) 55%, transparent); }
.pill-must { color: var(--red); border-color: color-mix(in srgb, var(--red) 55%, transparent); }
.pill-grn { color: var(--grn-deep); border-color: color-mix(in srgb, var(--grn) 55%, transparent); }

/* numbered steps + checklist */
.docs-body .docs-steps { list-style: none; padding-left: 0; counter-reset: step; gap: 12px; }
.docs-steps > li { counter-increment: step; position: relative; padding-left: 38px; }
.docs-steps > li::before { content: counter(step); position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--hair-2); display: grid; place-items: center; font-family: var(--mono); font-size: 11px; color: var(--ink); }
.docs-body .checklist { list-style: none; padding-left: 0; }
.checklist > li { position: relative; padding-left: 30px; }
.checklist > li::before { content: ''; position: absolute; left: 0; top: 4px; width: 16px; height: 16px; border: 1.5px solid var(--hair-2); border-radius: 4px; }
.must-list > li::marker { color: var(--red); font-weight: 600; }

/* lifecycle diagram (inline SVG, drawn with the tokens above so it follows light/dark) */
.docs-figure { margin: 18px 0 26px; border: 1px solid var(--hair); border-radius: 14px; padding: clamp(12px, 2vw, 22px); background: var(--bg); overflow-x: auto; }
.docs-figure svg { width: 100%; min-width: 560px; height: auto; display: block; }
.docs-figure figcaption { font-size: 13px; color: var(--ink-3); margin-top: 10px; line-height: 1.5; }
.lc-box { fill: var(--bg); stroke: var(--hair-2); stroke-width: 1.2; }
.lc-box-cb { fill: var(--grn-soft); stroke: var(--grn); stroke-width: 1.2; }
.lc-box-you { fill: var(--bg-2); stroke: var(--hair-2); stroke-width: 1.2; }
.lc-t { font-family: var(--sans); font-size: 14px; font-weight: 600; fill: var(--ink); }
.lc-s { font-family: var(--mono); font-size: 10.5px; fill: var(--ink-2); }
.lc-lane { font-family: var(--mono); font-size: 10px; letter-spacing: .14em; fill: var(--ink-3); }
.lc-line { fill: none; stroke: var(--ink-3); stroke-width: 1.4; }
.lc-line-g { fill: none; stroke: var(--grn); stroke-width: 1.6; }
.lc-line-a { fill: none; stroke: var(--amber); stroke-width: 1.4; stroke-dasharray: 4 4; }
.lc-head { fill: var(--ink-3); }
.lc-head-g { fill: var(--grn); }
.lc-head-a { fill: var(--amber); }
.lc-num { fill: var(--ink); }
.lc-num-t { font-family: var(--mono); font-size: 10px; font-weight: 600; fill: var(--bg); }
.lc-note { font-family: var(--mono); font-size: 10px; fill: var(--amber); }
.lc-sep { stroke: var(--hair); stroke-width: 1; stroke-dasharray: 2 5; }

/* ============================================================
   PARTNER DOCS SECTION (docs/partners/*): tabs shared by every
   page, the landing page's cards and the AI-agent prompt box.
   ============================================================ */
.docs-tabs { border-bottom: 1px solid var(--hair); background: var(--bg); }
.docs-tabs-in { display: flex; align-items: center; gap: 4px; overflow-x: auto; scrollbar-width: none; }
.docs-tabs-in::-webkit-scrollbar { display: none; }
.docs-tabs a { flex: none; font-size: 13.5px; font-weight: 500; color: var(--ink-2); padding: 12px 10px 11px; border-bottom: 2px solid transparent; white-space: nowrap; }
.docs-tabs a:hover { color: var(--ink); }
.docs-tabs a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--grn); }
.docs-tabs .docs-tabs-llm { margin-left: auto; font-size: 11.5px; color: var(--ink-3); }
.docs-head .lede a { color: var(--grn-deep); text-decoration: underline; text-underline-offset: 3px; }
.pill-link { text-decoration: none; }
.pill-link:hover { color: var(--ink); border-color: var(--ink-3); }

.docs-landing { max-width: none; }
.docs-landing > .docs-sec { max-width: 980px; }
.docs-landing-h { font-size: clamp(1.3rem, 2.2vw, 1.7rem); letter-spacing: -.03em; line-height: 1.15; margin-bottom: 16px; }
.docs-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.docs-body a.docs-card { display: flex; flex-direction: column; gap: 6px; padding: 18px 18px 20px; border: 1px solid var(--hair); border-radius: 14px; background: var(--bg); color: var(--ink-2); text-decoration: none; transition: border-color .15s, background .15s; }
.docs-body a.docs-card:hover { border-color: var(--grn); background: var(--bg-2); }
.docs-card strong { color: var(--ink); font-size: 1.08rem; letter-spacing: -.01em; }
.docs-card > span:last-child { font-size: 14.5px; line-height: 1.55; }
.docs-card-k { font-size: 10.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--grn-deep); }
.docs-card-lead { border-color: color-mix(in srgb, var(--grn) 45%, var(--hair)); background: color-mix(in srgb, var(--grn-soft) 45%, var(--bg)); }
.docs-agent { border: 1px solid var(--hair-2); border-radius: 16px; padding: clamp(18px, 3vw, 28px); background: var(--bg-2); }
.docs-agent .code { margin-bottom: 12px; }
.docs-agent .code code { white-space: pre-wrap; }
.docs-agent-foot { font-size: 14px; margin-bottom: 0; }
.docs-body h4 { scroll-margin-top: 76px; }
.docs-body h3, .docs-body h4 { overflow-wrap: anywhere; }   /* long endpoint paths on phones */
.docs-body .code-bar { min-width: 0; overflow-wrap: anywhere; }
