/* IQ Tools launch site — shared stylesheet
   Palette derives from the desktop app's Chrome.Tokens.axaml:
   AnodBlueBrush #2E8BDB→#1668B0, AnodCyanBrush #2BC0DE→#0E9BB8, engraved/quiet inks.
   Amber, orange and yellow are never used as a status colour (product standing rule). */

/* ---------- self-hosted fonts (2026-09-08 owner decision: self-host IBM Plex) ----------
   Latin-subset woff2 files fetched once from the Google Fonts static CDN, served
   locally from assets/fonts/ so no third party is contacted at runtime. Licence: OFL, see
   assets/fonts/OFL-IBM-Plex.txt. Both files below are variable fonts covering every weight
   this site uses; --sans/--mono fallback stacks are unchanged. */
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-weight: 300 600;
  font-display: swap;
  src: url('fonts/ibm-plex-sans-var.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 400;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-400.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-500.woff2') format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url('fonts/ibm-plex-mono-600.woff2') format('woff2');
}

:root {
  /* --ground-hi darkened from #1d63a8 (2026-09-08 contrast pass): the three .ground text tokens
     must clear WCAG AA 4.5:1 against every stop of the .ground radial gradient, and ground-hi
     (the gradient's declared center, sitting behind every .page-head) was the failing stop. */
  --ground-hi: #18518A;
  --ground-mid: #0f4174;
  --ground-lo: #061f3f;
  --screen: #06182e;

  --blue-hi: #2E8BDB;
  --blue-lo: #1668B0;
  --blue-ink: #1257a0;
  --blue-ring: #0f4a80;

  --cyan-hi: #2BC0DE;
  --cyan-lo: #0E9BB8;
  --cyan-ink: #052a33;
  --cyan-text: #7fd3e8;
  /* --cyan-ink-plate: TEXT-USE-ONLY darker cyan (2026-09-08 contrast pass) — for the pricing
     "Annual" plate label, which needs 4.5:1 on white. Kept distinct from --cyan-lo, which is
     also used as a fill/border colour and must stay at its current value for those uses. */
  --cyan-ink-plate: #0B7F97;

  --alu-1: #f2f6fa;
  --alu-2: #dbe4ee;
  --alu-3: #c9d5e2;
  --alu-4: #e4ebf3;
  --alu-edge: #9fb3c8;
  --alu-edge-lo: #7f98b3;

  --page: #f3f6f9;
  --card: #ffffff;
  --card-edge: #c4cfdb;
  --rule: #dfe6ee;

  --ink: #163a5e;
  --ink-strong: #1a1a1a;
  /* --ink-quiet darkened from #4f6a86 (2026-09-08 contrast pass): failed 4.5:1 against the .alu
     mid gradient stops (alu-2/alu-3) used under nav/tile/footer quiet text. */
  --ink-quiet: #465D76;
  --ink-on-dark: #f4f8fc;
  --body-on-dark: #b9d2ea;
  /* --quiet-on-dark lightened from #7fa4c9 (2026-09-08 contrast pass): was the widest dark-mode
     failure, below 4.5:1 against both ground-hi and ground-mid. */
  --quiet-on-dark: #ACC4DC;

  --sans: 'IBM Plex Sans', 'Segoe UI', system-ui, -apple-system, sans-serif;
  --mono: 'IBM Plex Mono', Consolas, 'Cascadia Mono', 'SF Mono', Menlo, monospace;

  --radius: 3px;
  --radius-lg: 6px;
  --max: 1280px;
  --gutter: clamp(20px, 4vw, 56px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  color: var(--ink);
  background: var(--page);
  text-rendering: optimizeLegibility;
}

/* link color darkened from #1f7ac9 (2026-09-08 contrast pass): 4.48:1 on white / 4.13:1 on --page,
   both below AA 4.5:1. */
a { color: #1D73BD; text-decoration: none; }
a:hover { color: #155a98; text-decoration: underline; }
img, svg { max-width: 100%; display: block; }
h1, h2, h3, h4 { margin: 0; font-weight: 300; letter-spacing: -0.3px; text-wrap: pretty; }
p { margin: 0; text-wrap: pretty; }
strong { font-weight: 600; }
.mono { font-family: var(--mono); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }

/* ---------- materials ---------- */
.ground {
  background: radial-gradient(ellipse 120% 90% at 50% 22%, var(--ground-hi) 0%, var(--ground-mid) 48%, var(--ground-lo) 100%);
  color: var(--ink-on-dark);
}
.alu {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.07) 0px, rgba(255,255,255,0.07) 1px, rgba(0,40,80,0.05) 1px, rgba(0,40,80,0.05) 2px, transparent 2px, transparent 3px),
    linear-gradient(180deg, var(--alu-1) 0%, var(--alu-2) 42%, var(--alu-3) 52%, var(--alu-4) 100%);
}
.blue-steel {
  background:
    repeating-linear-gradient(0deg, rgba(255,255,255,0.06) 0px, rgba(255,255,255,0.06) 1px, rgba(0,20,50,0.10) 1px, rgba(0,20,50,0.10) 2px, transparent 2px, transparent 3px),
    linear-gradient(180deg, #3d8fd6 0%, #1f6fb8 45%, #175f9f 55%, #2f80c8 100%);
}

/* ---------- type scale ---------- */
.display { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.08; font-weight: 300; letter-spacing: -0.5px; }
.display em, .h2 em { font-style: normal; font-weight: 500; }
.h2 { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.15; }
.h3 { font-size: 20px; line-height: 1.3; font-weight: 600; letter-spacing: 0; }
.lead { font-size: clamp(16px, 1.3vw, 18px); line-height: 1.55; }
.plate {
  font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-quiet);
}
.ground .plate { color: var(--cyan-text); }
.plate-rule { display: inline-flex; align-items: center; gap: 10px; }
.plate-rule::before { content: ""; display: inline-block; width: 28px; height: 1px; background: currentColor; opacity: 0.8; }
.fig { font-family: var(--mono); font-weight: 600; color: var(--blue-ink); letter-spacing: -0.5px; }
.ground .fig { color: #ffffff; }

/* Measured/predicted/saved provenance mark. Text --ink-strong on --alu-3: contrast ratio
   ~11.7:1 (WCAG relative-luminance formula; see docs/report/2026-09-08-launch-site-tighten-lane.md). */
.meas {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 1px 5px;
  border-radius: 3px;
  color: var(--ink-strong);
  background: var(--alu-3);
  vertical-align: middle;
}
.meas.predicted, .meas.saved { background: var(--alu-2); }
.quiet { color: var(--ink-quiet); }
.ground .quiet { color: var(--quiet-on-dark); }
.ground p { color: var(--body-on-dark); }
.ground h1, .ground h2, .ground h3 { color: var(--ink-on-dark); }

/* ---------- controls ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 44px; padding: 0 22px; border-radius: var(--radius);
  font-family: var(--sans); font-size: 14px; font-weight: 600; letter-spacing: 0.4px;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: transform 80ms ease, box-shadow 120ms ease;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn svg { width: 16px; height: 16px; flex: none; }

.btn-accent {
  color: #ffffff; border: 1px solid var(--cyan-lo);
  background: linear-gradient(180deg, var(--blue-hi) 0%, var(--blue-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 0 0 1px rgba(43,192,222,0.25), 0 2px 6px rgba(0,10,30,0.45);
}
.btn-accent:hover { color: #fff; background: linear-gradient(180deg, #3a97e6 0%, #1a72bf 100%); box-shadow: inset 0 1px 0 rgba(255,255,255,0.4), 0 0 0 1px rgba(43,192,222,0.45), 0 3px 10px rgba(0,10,30,0.5); }
.btn-accent:active { background: linear-gradient(180deg, #1A6AB4 0%, #155A98 100%); box-shadow: inset 0 2px 3px rgba(0,0,0,0.35); }

.btn-key {
  color: var(--ink); font-weight: 500; border: 1px solid var(--alu-edge);
  background: linear-gradient(180deg, #F0F5FA 0%, #DAE3EE 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 1px 1px rgba(0,20,50,0.25);
}
.btn-key:hover { color: var(--ink); background: linear-gradient(180deg, #F6F9FC 0%, #E2EAF2 100%); }
.btn-key:active { box-shadow: inset 0 1px 2px rgba(0,20,50,0.3); }
.btn-sm { min-height: 34px; padding: 0 14px; font-size: 13px; }
/* ---------- disabled / not-yet-available control ---------- */
.btn-disabled { cursor: not-allowed; opacity: 0.55; filter: grayscale(35%); pointer-events: none; }
.btn-disabled:hover { box-shadow: none; }

/* ---------- layout ---------- */
.wrap { width: 100%; max-width: var(--max); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }
.section { padding: clamp(56px, 8vw, 104px) 0; }
.section + .section { border-top: 1px solid var(--rule); }
.ground.section { border-top: 0; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 760px; margin-bottom: clamp(28px, 4vw, 48px); }
.grid { display: grid; gap: 20px; }
.cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 960px) { .cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .cols-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .cols-2, .cols-3, .cols-4 { grid-template-columns: minmax(0, 1fr); } }

/* ---------- nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 20; height: 64px;
  will-change: transform; /* own compositor layer: the brushed texture is not re-rasterised on every scroll frame */
  border-bottom: 1px solid var(--alu-edge-lo);
  box-shadow: 0 1px 0 rgba(255,255,255,0.6) inset, 0 2px 8px rgba(0,10,30,0.35);
}
.nav .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.brand:hover { text-decoration: none; color: var(--ink); }
.brand svg { width: 38px; height: 38px; flex: none; }
.brand-name { display: flex; flex-direction: column; gap: 2px; }
.brand-name b { font-size: 16px; font-weight: 600; letter-spacing: 2.5px; line-height: 1; }
.brand-name span { font-family: var(--mono); font-size: 9px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-quiet); }
.nav-links { display: flex; align-items: center; gap: 28px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-size: 13px; font-weight: 500; color: var(--ink); }
.nav-links a[aria-current="page"] { color: var(--blue-ink); box-shadow: 0 2px 0 var(--cyan-lo); }
.nav-links a:hover { text-decoration: none; color: var(--blue-ink); }
.nav-toggle { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; border: 0; background: transparent; color: var(--ink); cursor: pointer; }
@media (max-width: 900px) {
  .nav-links { position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0; padding: 8px var(--gutter) 16px; border-bottom: 1px solid var(--alu-edge-lo); box-shadow: 0 8px 20px rgba(0,10,30,0.25); display: none; }
  .nav-links.open { display: flex; }
  .nav-links li { border-top: 1px solid rgba(0,20,50,0.08); }
  .nav-links a { display: block; padding: 12px 0; font-size: 15px; }
  .nav-links a[aria-current="page"] { box-shadow: none; }
  .nav-links .btn { margin-top: 10px; }
  .nav-toggle { display: inline-flex; }
}

/* ---------- hero ---------- */
.hero { padding: clamp(48px, 7vw, 88px) 0 clamp(32px, 4vw, 48px); }
.hero .wrap { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 4vw, 48px); align-items: center; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; max-width: 600px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-aside { display: flex; flex-direction: column; gap: 12px; }
.hero-meta { font-family: var(--mono); font-size: 12px; letter-spacing: 0.6px; color: var(--quiet-on-dark); }
.hero-foot { border-top: 1px solid rgba(43,192,222,0.35); }
.hero-foot .wrap { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; padding-top: 14px; padding-bottom: 14px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.8px; color: var(--quiet-on-dark); text-transform: uppercase; }
@media (max-width: 960px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } .hero-copy { max-width: none; } }

/* ---------- tiles, cards ---------- */
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 480px) { .tiles { grid-template-columns: minmax(0, 1fr); } }
.tile {
  padding: 14px 16px; border-radius: 4px; border: 1px solid var(--alu-edge);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 8px rgba(0,10,30,0.35);
  display: flex; flex-direction: column; gap: 6px; color: var(--ink);
}
.tile .fig { font-size: clamp(18px, 1.6vw, 24px); color: var(--blue-ink); white-space: nowrap; }
.tile p { font-size: 12px; line-height: 1.4; color: var(--ink-quiet); }

.card { background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--radius); padding: 22px; display: flex; flex-direction: column; gap: 12px; box-shadow: 0 1px 2px rgba(0,20,50,0.06); }
.card .h3 { color: var(--ink-strong); }
.card p { font-size: 15px; }
.card ul { margin: 0; padding-left: 18px; font-size: 15px; display: flex; flex-direction: column; gap: 8px; }
.card-dark { background: linear-gradient(180deg, #0f4174, #061f3f); border-color: var(--ground-lo); color: var(--ink-on-dark); }
.card-dark p, .card-dark li { color: var(--body-on-dark); }
.card-dark .h3 { color: var(--ink-on-dark); }

/* ---------- video bezel (placeholder until footage exists) ---------- */
.bezel {
  padding: 14px; border-radius: var(--radius-lg); border: 1px solid var(--blue-ring);
  box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 0 0 1px rgba(43,192,222,0.2), 0 20px 50px rgba(0,10,30,0.55);
}
.bezel-sm { padding: 8px; border-radius: 5px; box-shadow: 0 1px 0 rgba(255,255,255,0.3) inset, 0 8px 24px rgba(0,10,30,0.45); }
.screen {
  position: relative; aspect-ratio: 16 / 9; background: var(--screen); border-radius: var(--radius); border: 1px solid #03101f;
  display: flex; align-items: center; justify-content: center; overflow: hidden; color: var(--quiet-on-dark);
}
.screen::before {
  content: ""; position: absolute; inset: 0;
  background-image: linear-gradient(rgba(43,192,222,0.08) 1px, transparent 1px), linear-gradient(90deg, rgba(43,192,222,0.08) 1px, transparent 1px);
  background-size: 100% 22px, 120px 100%;
}
.screen-inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px; text-align: center; }
.play {
  width: 72px; height: 72px; border-radius: 50%; border: 1px solid var(--cyan-lo);
  background: linear-gradient(180deg, var(--cyan-hi) 0%, var(--cyan-lo) 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.5), 0 4px 16px rgba(14,155,184,0.55);
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.play svg { width: 26px; height: 26px; fill: var(--cyan-ink); }
.bezel-sm .play { width: 52px; height: 52px; } .bezel-sm .play svg { width: 20px; height: 20px; }
.video-id { font-family: var(--mono); font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--cyan-text); }
.video-shot { font-size: 14px; line-height: 1.4; max-width: 400px; color: var(--quiet-on-dark); }
.bezel-sm .video-shot { font-size: 12px; }
.video-note { display: none; margin-top: 8px; font-size: 12px; color: var(--cyan-text); font-family: var(--mono); }
.video-note.show { display: block; }

/* ---------- screenshot placeholders (until UI is final) ---------- */
.shot-id { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; color: var(--cyan-text); border: 1px dashed rgba(43,192,222,0.5); border-radius: 3px; padding: 4px 8px; }
.film-chip { position: absolute; right: 12px; bottom: 12px; display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); font-size: 10px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--cyan-text); background: rgba(6,24,46,0.8); border: 1px solid rgba(43,192,222,0.35); border-radius: 3px; padding: 4px 8px; }
.film-chip svg { width: 10px; height: 10px; fill: currentColor; }

/* ---------- workflow read/edit tags ---------- */
.wf-tag { display: inline-block; padding: 3px 8px; border-radius: 6px; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 0.8px; text-transform: uppercase; vertical-align: middle; margin-left: 8px; }
.wf-tag.read { color: var(--blue-ink); background: rgba(31,122,201,0.10); border: 1px solid rgba(31,122,201,0.3); }
.wf-tag.edit { color: #085f70; background: rgba(14,155,184,0.12); border: 1px solid rgba(14,155,184,0.4); }
/* ---------- comparison bars ---------- */
.bars { display: flex; flex-direction: column; gap: 12px; }
.bar-row { display: grid; grid-template-columns: 120px minmax(0, 1fr) 84px; gap: 12px; align-items: center; font-family: var(--mono); font-size: 13px; }
.bar-row .lab { color: var(--ink-quiet); }
.bar-row .val { font-weight: 600; text-align: right; color: var(--ink-strong); }
.bar-track { height: 20px; background: rgba(0,20,50,0.06); border-radius: 2px; overflow: hidden; }
.bar-fill { height: 100%; border-radius: 2px; background: #8fa3b8; }
.bar-fill.iq { background: linear-gradient(180deg, var(--blue-hi), var(--blue-lo)); box-shadow: 0 0 0 1px rgba(43,192,222,0.35); }
@media (max-width: 520px) { .bar-row { grid-template-columns: 90px minmax(0, 1fr) 70px; font-size: 12px; } }

/* ---------- stations (how it works) ---------- */
.stations { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; position: relative; }
.stations::before { content: ""; position: absolute; left: 12%; right: 12%; top: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--cyan-lo), transparent); opacity: 0.6; }
.station { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; position: relative; }
.station .disc { width: 56px; height: 56px; border-radius: 50%; border: 1px solid var(--alu-edge); background: linear-gradient(180deg, #F0F5FA, #C9D5E2); box-shadow: inset 0 1px 0 rgba(255,255,255,0.7), 0 2px 6px rgba(0,10,30,0.35); display: flex; align-items: center; justify-content: center; }
.station .disc svg { width: 24px; height: 24px; stroke: var(--ink); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.station.final .disc { border-color: var(--cyan-lo); background: linear-gradient(180deg, var(--blue-hi), var(--blue-lo)); box-shadow: inset 0 1px 0 rgba(255,255,255,0.35), 0 0 0 1px rgba(43,192,222,0.3), 0 2px 6px rgba(0,10,30,0.45); }
.station.final .disc svg { stroke: #fff; }
.station b { font-family: var(--mono); font-size: 11px; letter-spacing: 1px; text-transform: uppercase; }
.station p { font-size: 13px; color: var(--ink-quiet); }
@media (max-width: 760px) { .stations { grid-template-columns: repeat(2, minmax(0, 1fr)); } .stations::before { display: none; } }

/* ---------- tables ---------- */
.table-wrap { overflow-x: auto; border: 1px solid var(--alu-edge); border-radius: var(--radius); background: var(--card); }
table { border-collapse: collapse; width: 100%; min-width: 640px; }
th { text-align: left; font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 1px; text-transform: uppercase; color: var(--ink-quiet); padding: 10px 12px; border-bottom: 1px solid var(--alu-edge); background: linear-gradient(180deg, #EEF3F8, #DBE3EC); white-space: nowrap; }
td { font-size: 14px; padding: 9px 12px; border-bottom: 1px solid var(--rule); vertical-align: top; color: var(--ink); }
td.m { font-family: var(--mono); font-size: 13px; white-space: nowrap; }
td.num { font-family: var(--mono); font-size: 13px; text-align: right; white-space: nowrap; }
th.num { text-align: right; }
tr:last-child td { border-bottom: 0; }
tfoot td { font-weight: 600; background: #f3f6f9; }

/* ---------- honesty list ---------- */
.plain-list { margin: 0; padding: 0; list-style: none; display: flex; flex-direction: column; }
.plain-list li { padding: 16px 0; border-top: 1px solid var(--rule); font-size: 16px; }
.plain-list li:last-child { border-bottom: 1px solid var(--rule); }
.plain-list b { display: block; font-weight: 600; color: var(--ink-strong); margin-bottom: 4px; }

/* ---------- footer ---------- */
.footer { padding: 48px 0 32px; border-top: 1px solid var(--alu-edge-lo); }
.footer .wrap { display: flex; flex-direction: column; gap: 32px; }
.footer-privacy { font-size: 16px; color: var(--ink); max-width: 720px; }
.footer-cols { display: grid; grid-template-columns: 1.4fr repeat(3, minmax(0, 1fr)); gap: 24px; }
.footer-cols h4 { font-family: var(--mono); font-size: 10px; font-weight: 600; letter-spacing: 1.2px; text-transform: uppercase; color: var(--ink-quiet); margin-bottom: 10px; }
.footer-cols ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.footer-cols a { color: var(--ink); font-size: 14px; }
.footer-meta { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 11px; letter-spacing: 0.6px; color: var(--ink-quiet); padding-top: 16px; border-top: 1px solid rgba(0,20,50,0.1); }
@media (max-width: 760px) { .footer-cols { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- sub-page header ---------- */
.page-head { padding: clamp(40px, 6vw, 72px) 0; }
.page-head .wrap { display: flex; flex-direction: column; gap: 14px; max-width: 900px; }

/* ---------- placeholders ---------- */
.ph { font-family: var(--mono); color: var(--blue-ink); background: rgba(31,122,201,0.10); border: 1px dashed rgba(31,122,201,0.45); border-radius: 3px; padding: 0 6px; }
.ground .ph { color: var(--cyan-text); background: rgba(43,192,222,0.10); border-color: rgba(43,192,222,0.45); }

/* ---------- reveal ---------- */
/* Progressive enhancement: content is visible by default; only when the script confirms it can observe
   does it hide .reveal blocks, and it force-reveals everything after 1.5 s regardless. */
.js-reveal .reveal { opacity: 0; transform: translateY(12px); transition: opacity 500ms ease, transform 500ms ease; }
.js-reveal .reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .js-reveal .reveal { opacity: 1; transform: none; transition: none; } }

/* ---------- workflows library ---------- */
.wf { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 24px; align-items: start; padding: 28px 0; border-top: 1px solid var(--rule); }
.wf:first-of-type { border-top: 0; }
.wf-meta { display: flex; flex-direction: column; gap: 10px; }
.wf-meta .row { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 12px; font-size: 14px; }
.wf-meta .row span:first-child { font-family: var(--mono); font-size: 11px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--ink-quiet); padding-top: 3px; }
@media (max-width: 840px) { .wf { grid-template-columns: minmax(0, 1fr); } }

/* ---------- pricing ---------- */
.price-card .fig { font-size: 40px; line-height: 1; }
.price-card .per { font-family: var(--mono); font-size: 13px; color: var(--ink-quiet); }
.price-card .price-tag { font-family: var(--mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-quiet); margin-bottom: 4px; }
.price-card ul { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 8px; }
.price-card li { padding-left: 22px; position: relative; font-size: 15px; }
.price-card li::before { content: ""; position: absolute; left: 0; top: 9px; width: 12px; height: 6px; border-left: 2px solid var(--cyan-lo); border-bottom: 2px solid var(--cyan-lo); transform: rotate(-45deg); }

/* ---------- docs ---------- */
.doc { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 40px; }
.doc-nav { position: sticky; top: 84px; align-self: start; display: flex; flex-direction: column; gap: 6px; }
.doc-nav a { font-size: 14px; color: var(--ink); padding: 6px 0; border-left: 2px solid transparent; padding-left: 12px; }
.doc-nav a:hover { border-color: var(--cyan-lo); text-decoration: none; }
.doc-body { display: flex; flex-direction: column; gap: 40px; }
.doc-body h2 { font-size: 26px; scroll-margin-top: 90px; }
.doc-body h3 { font-size: 18px; font-weight: 600; letter-spacing: 0; margin-top: 8px; }
.doc-body p, .doc-body li { font-size: 15px; }
.doc-body ul, .doc-body ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; }
.doc-body section { display: flex; flex-direction: column; gap: 12px; }
.doc-body code { font-family: var(--mono); font-size: 13px; background: rgba(0,20,50,0.06); padding: 1px 5px; border-radius: 3px; }
pre { margin: 0; padding: 14px 16px; background: var(--screen); color: var(--body-on-dark); border-radius: var(--radius); overflow-x: auto; font-family: var(--mono); font-size: 13px; line-height: 1.5; }
@media (max-width: 840px) { .doc { grid-template-columns: minmax(0, 1fr); } .doc-nav { position: static; flex-direction: row; flex-wrap: wrap; gap: 4px 16px; } .doc-nav a { border-left: 0; padding-left: 0; } }

/* ---------- capacity calculator (ported from iq-tools-time-motion-study.html §07) ---------- */
.calc { background: var(--card); border: 1px solid var(--card-edge); border-radius: var(--radius-lg); padding: 26px 24px; box-shadow: 0 1px 2px rgba(0,20,50,0.06); }
.calc h3 { margin-bottom: 4px; }
.calcbar { display: flex; flex-wrap: wrap; gap: 20px 28px; align-items: flex-end; padding-bottom: 20px; border-bottom: 1px solid var(--rule); }
.calc-field label { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-quiet); margin-bottom: 7px; }
.calc-field input, .calc-field select {
  font-family: var(--mono); font-size: 16px; font-weight: 500; padding: 8px 10px;
  background: #fff; color: var(--ink-strong); border: 1px solid var(--card-edge); border-radius: var(--radius);
}
.calc-field input[type="number"] { width: 120px; }
.calc-field select { width: 150px; }
.calc-segs { display: flex; border: 1px solid var(--card-edge); border-radius: var(--radius); overflow: hidden; }
.calc-segs button {
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
  padding: 10px 14px; background: #fff; color: var(--ink-quiet); border: none; border-right: 1px solid var(--card-edge); cursor: pointer;
}
.calc-segs button:last-child { border-right: none; }
.calc-segs button:focus-visible { outline: 2px solid var(--blue-ink); outline-offset: -2px; }
.calc-segs button[aria-pressed="true"] { background: var(--blue-ink); color: #fff; }
.calcout { display: grid; gap: 1px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); background: var(--rule); margin-top: 20px; border: 1px solid var(--rule); border-radius: var(--radius); overflow: hidden; }
.crow { background: var(--card); padding: 18px; display: flex; flex-direction: column; align-items: flex-start; }
.crow .r { font-family: var(--sans); font-size: 13.5px; font-weight: 600; color: var(--ink-strong); }
.crow .staff { display: flex; align-items: center; gap: 9px; margin: 11px 0 3px; }
.crow .staff span, .crow .modelsrow span { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.13em; text-transform: uppercase; color: var(--ink-quiet); }
.crow .staff input, .crow .modelsrow select {
  font-family: var(--mono); font-size: 15px; font-weight: 500; width: 62px; padding: 5px 8px;
  background: #fff; color: var(--ink-strong); border: 1px solid var(--card-edge); border-radius: var(--radius); text-align: center;
}
.crow .modelsrow { display: flex; align-items: center; gap: 9px; margin: 11px 0 3px; }
.crow .modelsrow select { width: auto; text-align: left; }
.crow .h { font-family: var(--mono); font-size: 12px; color: var(--ink-quiet); margin-top: 3px; font-variant-numeric: tabular-nums; }
.crow .m { font-family: var(--mono); font-size: 24px; font-weight: 600; color: var(--blue-ink); margin-top: 8px; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.crow .x { font-family: var(--mono); font-size: 11px; color: var(--ink-quiet); margin-top: 4px; font-variant-numeric: tabular-nums; }
/* label sits on its own line beneath the number (both mobile and desktop — see
   docs/launch/web note 2026-09-18): stacking, not horizontal margin, is what survives a
   flex-wrap break, so the .money-saved/.money-price spans carry no inline spacing of their own. */
.money-saved { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--cyan-ink-plate, var(--blue-ink)); }
.money-price { font-family: var(--sans); font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--ink-quiet); }
.roi-fig .money-saved-lg { font-size: clamp(13px, 1.6vw, 18px); }
.crow.zero { opacity: 0.45; }
.calctotal {
  display: flex; flex-wrap: wrap; gap: 14px 24px; align-items: baseline; justify-content: space-between;
  border-top: 1.5px solid var(--ink-strong); margin-top: 1px; padding: 18px 0 4px;
}
.calctotal .tl { font-family: var(--sans); font-size: 15px; font-weight: 700; letter-spacing: -0.01em; color: var(--ink-strong); }
.calctotal .th { font-family: var(--mono); font-size: 12px; color: var(--ink-quiet); margin-top: 4px; font-variant-numeric: tabular-nums; }
.calctotal .tm { font-family: var(--mono); font-size: 32px; font-weight: 600; color: var(--blue-ink); letter-spacing: -0.03em; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.calc-ledger { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 32px; align-items: start; }
.calc-ledger .ledger-cell .tm { margin-top: 6px; }
.calc-ledger .ledger-cost .tm { color: var(--ink-strong); }
@media (max-width: 640px) { .calc-ledger { grid-template-columns: minmax(0, 1fr); } }
.calc-roi {
  margin-top: 20px; padding: clamp(22px, 3vw, 34px) clamp(18px, 3vw, 32px); border-radius: var(--radius);
  background: linear-gradient(180deg, var(--ground-mid), var(--ground-lo)); border: 1px solid var(--blue-ring);
  display: flex; flex-direction: column; align-items: flex-start; gap: 10px; color: var(--body-on-dark);
}
.calc-roi .roi-label { font-family: var(--mono); font-size: 10.5px; letter-spacing: .13em; text-transform: uppercase; color: var(--quiet-on-dark); }
.calc-roi .roi-fig { font-family: var(--mono); font-size: clamp(44px, 6vw, 72px); font-weight: 600; line-height: 1; letter-spacing: -0.03em; color: #fff; font-variant-numeric: tabular-nums; display: flex; flex-direction: column; align-items: flex-start; gap: 4px; }
.calc-roi .roi-fig .money-saved { color: var(--quiet-on-dark); }
.calc-roi .roi-hours { display: flex; flex-wrap: wrap; gap: 6px 22px; font-family: var(--mono); font-size: 14px; color: var(--body-on-dark); font-variant-numeric: tabular-nums; }
.calc-roi .roi-hours b { color: #fff; font-weight: 600; }
.calc-roi .roi-hours .roi-hours-lab { color: var(--quiet-on-dark); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.calc-roi .roi-sub { font-family: var(--mono); font-size: 13.5px; color: var(--body-on-dark); font-variant-numeric: tabular-nums; }
.calc-roi .roi-note { font-size: 13px; color: var(--quiet-on-dark); }
.calc-roi .roi-note a { color: var(--cyan-text); }
.btn-lg { font-size: 17px; padding: 14px 26px; margin-top: 8px; }
.calc-payback { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule); font-family: var(--mono); font-size: 13.5px; color: var(--ink); }
.calc-payback b { color: var(--blue-ink); }
.calc-note { margin-top: 16px; font-size: 14px; color: var(--ink-quiet); max-width: 74ch; }
@media (max-width: 640px) { .calcbar { gap: 16px 20px; } }
