/* Process Traveler — soft-modern editorial styling.
   Near-white paper, alternating lavender / cool-gray panels, one accent (violet).
   System sans for everything; JetBrains Mono kept for every numeric value. */

:root {
  /* palette */
  --paper: #FAFAFA;
  --white: #FFFFFF;
  --ink: #171717;
  --ink-2: #52525B;          /* 7.4:1 on paper */
  --ink-3: #6B6B75;          /* 5.2:1 on paper, labels + small print */
  --violet: #733BE9;
  --violet-deep: #5B2BC4;    /* small text on white: 7.0:1 */
  --violet-a: #7C3AED;
  --violet-b: #4F46E5;
  --lav-1: #EDE9FE;
  --lav-2: #C7C2F5;
  --gray-1: #F5F5F5;
  --gray-2: #D4D4D8;
  --slate: #475569;
  --line: rgba(0, 0, 0, .06);
  --line-2: rgba(0, 0, 0, .10);

  /* section tint, re-set by the scroll spy */
  --tint: 115 59 233;
  --tint-soft: 237 233 254;

  /* type */
  --mono: 'JetBrains Mono', ui-monospace, 'Cascadia Mono', Menlo, Consolas, monospace;
  --sans: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;

  /* metrics */
  --gutter: clamp(20px, 5vw, 72px);
  --radius: 20px;
  --radius-sm: 12px;
  --navspace: 104px;
  --shadow-1: 0 1px 2px rgba(16, 16, 24, .04), 0 6px 16px rgba(16, 16, 24, .06);
  --shadow-2: 0 2px 4px rgba(16, 16, 24, .05), 0 18px 40px rgba(16, 16, 24, .10);
  --shadow-v: 0 2px 6px rgba(115, 59, 233, .12), 0 20px 46px rgba(115, 59, 233, .20);
  --noise: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.82' numOctaves='3' seed='11' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 -1.1 1.05'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  scroll-snap-type: y proximity;
  scroll-behavior: smooth;
  background: var(--paper);
}
body {
  margin: 0;
  color: var(--ink);
  font: 400 16px/1.55 var(--sans);
  background: var(--paper);
  overflow-x: clip;
  padding-bottom: var(--navspace);
}
.defs { position: absolute; width: 0; height: 0; overflow: hidden; }
.mono { font-family: var(--mono); font-variant-numeric: tabular-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.muted { color: var(--ink-2); }
h1, h2, h3, h4 { margin: 0; font-weight: 600; letter-spacing: normal; }
p { margin: 0 0 1em; }
a { color: var(--violet-deep); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; border-radius: 4px; }
.skip { position: absolute; left: -999px; top: 10px; z-index: 60; background: var(--violet); color: #fff; padding: 12px 18px; border-radius: 999px; text-decoration: none; font-weight: 600; }
.skip:focus { left: 12px; }

/* ══════════════ textures ══════════════ */
.grain {
  position: fixed; inset: 0; z-index: 40; pointer-events: none;
  background-image: var(--noise); background-size: 200px 200px;
  opacity: .035; mix-blend-mode: multiply;
}
.blobs { position: fixed; inset: 0; z-index: -2; pointer-events: none; overflow: hidden; }
.blob { position: absolute; display: block; border-radius: 50%; filter: blur(80px); opacity: .5; }
.blob-1 { width: 46vmax; height: 46vmax; left: -12vmax; top: -10vmax; background: radial-gradient(circle, rgba(124, 58, 237, .40), rgba(124, 58, 237, 0) 68%); animation: drift-a 34s ease-in-out infinite alternate; }
.blob-2 { width: 40vmax; height: 40vmax; right: -14vmax; top: 22vh; background: radial-gradient(circle, rgba(79, 70, 229, .32), rgba(79, 70, 229, 0) 68%); animation: drift-b 42s ease-in-out infinite alternate; }
.blob-3 { width: 36vmax; height: 36vmax; left: 30vw; bottom: -16vmax; background: radial-gradient(circle, rgba(56, 189, 248, .26), rgba(56, 189, 248, 0) 68%); animation: drift-c 38s ease-in-out infinite alternate; }
@keyframes drift-a { to { transform: translate3d(9vw, 7vh, 0) scale(1.14); } }
@keyframes drift-b { to { transform: translate3d(-10vw, -6vh, 0) scale(1.1); } }
@keyframes drift-c { to { transform: translate3d(7vw, -9vh, 0) scale(1.18); } }

.wave { position: absolute; z-index: 0; pointer-events: none; opacity: .85; }
.wave svg { display: block; width: 100%; height: 100%; }
.wave-hero { top: -6%; right: -14%; width: min(74vw, 900px); aspect-ratio: 5 / 4; }
.wave-what { bottom: -12%; left: -18%; width: min(66vw, 760px); aspect-ratio: 5 / 4; transform: scaleX(-1); }
.wave-cases { top: -10%; right: -20%; width: min(60vw, 720px); aspect-ratio: 5 / 4; }
.wave-about { bottom: -14%; left: -16%; width: min(70vw, 820px); aspect-ratio: 5 / 4; transform: scaleX(-1); }

.dotfield {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image: radial-gradient(rgba(23, 23, 23, .16) 1px, transparent 1px);
  background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 30%, #000, transparent 75%);
  opacity: .5;
}

/* ══════════════ sections ══════════════ */
.sec {
  position: relative;
  min-height: 100svh;
  scroll-snap-align: start;
  scroll-margin-top: 0;
  display: flex; align-items: center;
  padding: clamp(64px, 9vh, 120px) 0 clamp(72px, 9vh, 120px);
  isolation: isolate;
}
/* Only the sections whose line-art bleeds past their edges are clipped; the tool
   section must stay unclipped so its sticky requirements panel keeps working. */
.sec-hero, .sec-what, .sec-cases, .sec-about { overflow: clip; }
.sec-inner { position: relative; z-index: 1; width: 100%; max-width: 1360px; margin: 0 auto; padding: 0 var(--gutter); min-width: 0; }
.sec-what { background: linear-gradient(160deg, var(--lav-1) 0%, var(--lav-2) 100%); }
.sec-chart { background: linear-gradient(170deg, var(--gray-1) 0%, var(--gray-2) 100%); }
.sec-cases { background: linear-gradient(200deg, var(--lav-1) 0%, var(--lav-2) 100%); }
.sec-about { background: linear-gradient(170deg, var(--gray-1) 0%, var(--gray-2) 100%); }
.sec-tool, .sec-matrix, .sec-data { background: var(--paper); }

.eyebrow {
  margin: 0 0 18px; font: 600 12px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase;
  color: var(--violet-deep);
}
.display {
  font-size: clamp(42px, 8.2vw, 96px); line-height: .98; font-weight: 600; letter-spacing: -.01em;
  margin: 0 0 clamp(20px, 3vh, 40px); color: var(--ink); max-width: 16ch;
}
.display-xl { font-size: clamp(44px, 9vw, 104px); }
.sec-note { max-width: 62ch; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); margin-bottom: clamp(20px, 3vh, 36px); }

/* ══════════════ hero ══════════════ */
.sec-hero { align-items: center; }
.hero-inner { max-width: 1200px; }
.wordmark {
  font-size: clamp(34px, 8.4vw, 118px); line-height: .95; font-weight: 700; letter-spacing: -.02em;
  margin: 0 0 clamp(20px, 4vh, 48px); color: var(--ink);
  display: flex; flex-wrap: wrap; gap: 0 .32em;
}
.wm-word { display: inline-flex; }
.wordmark .ch { display: inline-block; will-change: transform; }
.wordmark.is-anim .ch { opacity: 0; transform: translateY(.42em); animation: ch-in .62s cubic-bezier(.22, 1, .36, 1) forwards; animation-delay: calc(var(--i) * 42ms + 120ms); }
@keyframes ch-in { to { opacity: 1; transform: none; } }

.hero-quote {
  font: 600 clamp(13px, 1.5vw, 17px)/1.3 var(--sans); letter-spacing: .1em; text-transform: uppercase;
  color: var(--violet-deep); margin: 0 0 14px;
}
.hero-statement {
  font-size: clamp(24px, 3.6vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -.01em;
  margin: 0 0 clamp(18px, 3vh, 30px); color: var(--ink);
}
.typeline {
  display: flex; align-items: center; flex-wrap: wrap; gap: 10px;
  font-size: clamp(20px, 2.8vw, 36px); font-weight: 600; line-height: 1.2;
  min-height: calc(1.2em + 22px);            /* reserve space: no CLS */
  margin: 0 0 clamp(24px, 4vh, 40px);
}
.type-prefix { color: var(--ink-2); font-weight: 500; }
.type-box {
  display: inline-flex; align-items: center; min-width: min(11ch, 60vw); min-height: 1.35em;
  background: var(--violet); color: #fff; border-radius: 10px; padding: .1em .38em;
  box-shadow: 0 6px 20px rgba(115, 59, 233, .32);
}
.caret { display: inline-block; width: .07em; min-width: 2px; height: 1em; background: #fff; margin-left: .06em; animation: blink 1.05s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; }

/* ══════════════ buttons ══════════════ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font: 600 15px/1 var(--sans); min-height: 48px; padding: 0 22px; border-radius: 999px;
  border: 1px solid transparent; cursor: pointer; text-decoration: none;
  transition: transform .22s cubic-bezier(.22, 1, .36, 1), box-shadow .22s, background-color .2s, color .2s;
}
.btn-sm { min-height: 44px; padding: 0 16px; font-size: 14px; }
.btn-fill { background: linear-gradient(135deg, var(--violet-a), var(--violet-b)); color: #fff; box-shadow: var(--shadow-v); }
.btn-fill:hover { transform: translateY(-2px); box-shadow: 0 4px 10px rgba(115, 59, 233, .2), 0 26px 54px rgba(115, 59, 233, .3); }
.btn-ghost { background: rgba(255, 255, 255, .7); color: var(--ink); border-color: var(--line-2); box-shadow: var(--shadow-1); }
.btn-ghost:hover { transform: translateY(-2px); border-color: rgba(115, 59, 233, .35); box-shadow: 0 10px 26px rgba(115, 59, 233, .16); color: var(--violet-deep); }
.btn:active { transform: translateY(0); }
.linkish { font: inherit; color: var(--violet-deep); background: none; border: 0; padding: 0; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* ══════════════ what it does ══════════════ */
.feature-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.feature {
  background: rgba(255, 255, 255, .82); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 30px); box-shadow: var(--shadow-1);
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), box-shadow .26s;
}
.feature:hover { transform: translateY(-5px); box-shadow: var(--shadow-v); }
.feature h3 { font-size: clamp(22px, 2.6vw, 40px); font-weight: 800; line-height: 1.02; letter-spacing: -.015em; margin-bottom: 12px; }
.feature p { margin: 0; color: var(--ink-2); font-size: 15px; }

/* ══════════════ tool layout ══════════════ */
.tool-grid { display: grid; grid-template-columns: minmax(300px, 360px) minmax(0, 1fr); gap: clamp(18px, 2.4vw, 34px); align-items: start; }
.out { min-width: 0; }
.req { position: sticky; top: 24px; }

.form-block {
  background: var(--white); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow-2); margin: 0; overflow: hidden;
}
.fb-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 16px 20px 14px; border-bottom: 1px solid var(--line); }
.fb-head h3 { font-size: 18px; font-weight: 700; }
.fb-no { font-size: 11px; color: var(--ink-3); letter-spacing: .06em; }
.field { border: 0; border-bottom: 1px solid var(--line); margin: 0; padding: 16px 20px 18px; min-width: 0; }
.field legend { float: left; width: 100%; padding: 0; margin: 0 0 10px; font: 600 14px/1.3 var(--sans); display: flex; align-items: center; gap: 9px; }
.field legend + * { clear: both; }
.fno { display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: rgba(115, 59, 233, .12); color: var(--violet-deep); font-size: 11px; font-weight: 600; }
.field-sub legend { font-weight: 500; color: var(--ink-2); }
.hint { margin: 10px 0 0; font-size: 13px; color: var(--ink-2); }
.refpart { margin: 0; padding: 14px 20px; font-size: 12.5px; color: var(--ink-2); border-bottom: 1px solid var(--line); }
.form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0; padding: 14px 20px 16px; }
.copy-status { font: 500 13px var(--sans); color: var(--violet-deep); min-width: 1ch; }

/* pill segmented controls */
.seg { display: flex; flex-wrap: wrap; gap: 6px; }
.seg label { flex: 1 1 auto; position: relative; display: flex; min-width: 0; }
.seg input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.seg label > span {
  flex: 1; display: flex; flex-direction: column; justify-content: center; align-items: center; text-align: center;
  min-height: 44px; padding: 8px 12px; border-radius: 999px; cursor: pointer;
  background: var(--gray-1); border: 1px solid var(--line); color: var(--ink);
  font: 500 14px/1.2 var(--sans); transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}
.seg label:hover > span { border-color: rgba(115, 59, 233, .3); background: #fff; }
.seg input:checked + span { background: linear-gradient(135deg, var(--violet-a), var(--violet-b)); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(115, 59, 233, .3); }
.seg input:focus-visible + span { outline: 3px solid var(--violet); outline-offset: 2px; }
.seg-mono label > span { font-family: var(--mono); font-size: 13px; font-variant-numeric: tabular-nums; }
.seg-stack { flex-direction: column; }
.seg-stack label > span { align-items: flex-start; text-align: left; border-radius: 14px; padding: 10px 16px; }
.seg-stack small { display: block; font-weight: 400; font-size: 12px; color: var(--ink-2); }
.seg-stack input:checked + span small { color: rgba(255, 255, 255, .85); }

.seg-presets { margin-bottom: 14px; }
.chip {
  flex: 1 1 0; min-width: 0; min-height: 46px; border-radius: 999px; cursor: pointer;
  background: var(--gray-1); border: 1px solid var(--line); color: var(--ink);
  font: 500 13px/1.15 var(--sans); padding: 4px 6px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  transition: background-color .18s, color .18s, border-color .18s, box-shadow .18s;
}
.chip small { font-family: var(--mono); font-size: 10px; color: var(--ink-3); }
.chip:hover { background: #fff; border-color: rgba(115, 59, 233, .3); }
.chip[aria-pressed="true"] { background: linear-gradient(135deg, var(--violet-a), var(--violet-b)); border-color: transparent; color: #fff; font-weight: 600; box-shadow: 0 6px 16px rgba(115, 59, 233, .3); }
.chip[aria-pressed="true"] small { color: rgba(255, 255, 255, .85); }

/* log slider */
.qslider { padding: 0 2px; --fill: 50%; }
#q-range { -webkit-appearance: none; appearance: none; width: 100%; height: 44px; background: transparent; margin: 0; cursor: pointer; }
#q-range::-webkit-slider-runnable-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--violet-a) 0%, var(--violet-b) var(--fill), var(--gray-2) var(--fill), var(--gray-2) 100%);
}
#q-range::-moz-range-track {
  height: 8px; border-radius: 999px;
  background: linear-gradient(90deg, var(--violet-a) 0%, var(--violet-b) var(--fill), var(--gray-2) var(--fill), var(--gray-2) 100%);
}
#q-range::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; margin-top: -7px; border-radius: 50%; background: #fff; border: 4px solid var(--violet); box-shadow: 0 3px 10px rgba(115, 59, 233, .4); }
#q-range::-moz-range-thumb { width: 22px; height: 22px; box-sizing: border-box; border-radius: 50%; background: #fff; border: 4px solid var(--violet); box-shadow: 0 3px 10px rgba(115, 59, 233, .4); }
.q-scale { display: flex; justify-content: space-between; font-size: 10px; color: var(--ink-3); margin-top: -2px; padding: 0 9px; }
.q-scale span { width: 0; display: flex; justify-content: center; white-space: nowrap; }
.q-readout { display: flex; align-items: center; gap: 10px; margin-top: 14px; }
.q-readout label { font: 700 14px var(--mono); color: var(--ink-2); }
#q-num { width: 11ch; min-height: 44px; font: 500 16px var(--mono); font-variant-numeric: tabular-nums; padding: 4px 12px; border: 1px solid var(--line-2); border-radius: 12px; background: #fff; color: var(--ink); }
#q-num:focus-visible { border-color: var(--violet); }
.unit { font-size: 13px; color: var(--ink-3); }

/* feature checks */
.checks { display: grid; gap: 6px; }
.checks label { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 0 16px; border-radius: 14px; background: var(--gray-1); border: 1px solid var(--line); cursor: pointer; font-weight: 500; font-size: 14px; transition: background-color .18s, border-color .18s; }
.checks label:hover { background: #fff; border-color: rgba(115, 59, 233, .3); }
.checks input { -webkit-appearance: none; appearance: none; width: 22px; height: 22px; border: 2px solid var(--gray-2); border-radius: 7px; margin: 0; background: #fff; display: grid; place-items: center; flex: none; cursor: pointer; transition: background-color .15s, border-color .15s; }
.checks input:checked { background: var(--violet); border-color: var(--violet); }
.checks input:checked::after { content: ''; width: 10px; height: 5px; border: solid #fff; border-width: 0 0 2.5px 2.5px; transform: translate(0, -2px) rotate(-45deg); }
.checks input:focus-visible { outline: 3px solid var(--violet); outline-offset: 2px; }

/* ══════════════ results ══════════════ */
.sec-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 16px; }
.sec-head h3 { font-size: clamp(22px, 2.4vw, 30px); font-weight: 700; letter-spacing: -.01em; }
.seg-mode { flex: 0 1 auto; }
.seg-mode label > span { padding: 8px 18px; }

.summary {
  background: var(--white); border: 1px solid var(--line); border-left: 4px solid var(--violet);
  border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 20px; box-shadow: var(--shadow-1);
}
.summary p { margin: 0; max-width: 80ch; }
.summary .req-str { font-size: 13px; color: var(--ink-2); }

.stack { display: grid; gap: 18px; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 18px; margin-top: 18px; }

.card {
  position: relative; background: var(--white); border: 1px solid var(--line);
  border-radius: var(--radius); box-shadow: var(--shadow-1); overflow: hidden;
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), box-shadow .26s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-v); }
.card.is-rec {
  border-color: transparent;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    linear-gradient(135deg, var(--violet-a), var(--violet-b)) border-box;
  border: 2px solid transparent;
  box-shadow: var(--shadow-v);
}
.card.is-out { background: #FCFCFD; }
.tb-top { display: grid; grid-template-columns: 62px 54px minmax(0, 1fr) 54px; gap: 10px; padding: 16px 18px 12px; align-items: start; }
.card .cell { min-width: 0; }
.c-icon { display: grid; place-items: center; width: 54px; height: 54px; border-radius: 14px; background: rgba(115, 59, 233, .08); }
.picto { width: 38px; height: 38px; color: var(--violet); display: block; }
.picto .void { fill: #fff; }
.k { display: block; font: 600 10px/1.3 var(--sans); text-transform: uppercase; letter-spacing: .08em; color: var(--ink-3); }
.v { display: block; font-size: 14px; margin-top: 3px; overflow-wrap: anywhere; }
/* Numeric values must never break mid-number ($12.57 -> "$12.5" + "7"). */
.v.mono { overflow-wrap: normal; word-break: keep-all; white-space: nowrap; }
.c-name h3 { font-size: 19px; font-weight: 700; line-height: 1.2; letter-spacing: -.01em; margin-top: 2px; }
.c-long { display: block; font-size: 12px; color: var(--ink-2); margin-top: 2px; }
.c-rank .v { font: 700 22px var(--mono); line-height: 1.1; color: var(--violet-deep); }
.card.is-out .c-rank .v { color: var(--ink-3); }
.v-big { font-size: 19px; font-weight: 700; }
.sub { display: block; font-size: 12px; color: var(--ink-3); }
.tb-fields { display: grid; grid-template-columns: repeat(5, minmax(min-content, 1fr)); gap: 12px; padding: 12px 18px 14px; margin: 0 18px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.tb-fields .c-route .v { font-size: 13px; line-height: 1.3; }
.conf { display: inline-block; margin-top: 4px; font: 600 9.5px/1.4 var(--sans); letter-spacing: .06em; padding: 2px 7px; border-radius: 999px; background: var(--gray-1); color: var(--ink-2); border: 1px solid var(--line); }
.conf-illustrative { border-style: dashed; }

.bullets { margin: 0; padding: 14px 18px 4px 34px; }
.bullets li { margin: 0 0 5px; max-width: 75ch; font-size: 14.5px; color: var(--ink-2); }
.bullets li::marker { color: var(--violet); }
.notes { list-style: none; margin: 0; padding: 6px 18px 12px; display: grid; gap: 6px; font-size: 14px; }
.notes li { display: flex; gap: 10px; align-items: baseline; max-width: 80ch; color: var(--ink-2); }
.tag { flex: none; font: 600 9.5px/1.6 var(--sans); text-transform: uppercase; letter-spacing: .07em; border-radius: 999px; padding: 1px 9px; min-width: 62px; text-align: center; background: rgba(115, 59, 233, .09); color: var(--violet-deep); }

.whynot { border-top: 1px solid var(--line); }
.whynot summary, .ruled > summary { cursor: pointer; list-style: none; min-height: 46px; display: flex; align-items: center; gap: 10px; padding: 6px 18px; font-weight: 600; font-size: 14px; }
.whynot summary::-webkit-details-marker, .ruled > summary::-webkit-details-marker { display: none; }
.whynot summary::before, .ruled > summary::before { content: '+'; font: 600 14px/1 var(--mono); width: 20px; height: 20px; border-radius: 50%; background: rgba(115, 59, 233, .1); color: var(--violet-deep); display: grid; place-items: center; flex: none; }
.whynot[open] summary::before, .ruled[open] > summary::before { content: '\2212'; }
.whynot ol { margin: 0; padding: 0 18px 14px 40px; }
.whynot li { margin-bottom: 6px; max-width: 80ch; font-size: 14px; color: var(--ink-2); }
.whynot li strong { color: var(--ink); }
.src { font-size: 12px; color: var(--ink-3); }
.src a { color: var(--ink-3); }

.card.is-out .picto { color: var(--slate); }
.card.is-out .c-icon { background: rgba(71, 85, 105, .08); }

/* verdict pills (replaces the rubber stamps) */
.verdict { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px 12px; margin: 0; padding: 12px 18px 16px; border-top: 1px solid var(--line); }
.vpill {
  display: inline-flex; align-items: center; flex: none; border-radius: 999px; padding: 5px 14px;
  font: 700 11px/1.4 var(--sans); text-transform: uppercase; letter-spacing: .1em;
}
.vpill-rec { background: linear-gradient(135deg, var(--violet-a), var(--violet-b)); color: #fff; box-shadow: 0 6px 16px rgba(115, 59, 233, .3); }
.vpill-out { background: rgba(71, 85, 105, .1); color: #3D4A5C; }
.vreason { font-size: 13.5px; color: var(--ink-2); min-width: 0; }
.vrank { font: 600 12px var(--mono); color: var(--ink-3); }

.ruled { margin-top: 24px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-1); }
.ruled > summary { font-size: 16px; font-weight: 700; flex-wrap: wrap; padding: 12px 18px; }
.summ-list { font-weight: 400; font-size: 13px; color: var(--ink-2); flex-basis: 100%; padding-left: 30px; }
.ruled > .stack { padding: 4px 16px 18px; }
.empty { border: 1px dashed rgba(115, 59, 233, .4); background: rgba(115, 59, 233, .04); border-radius: var(--radius-sm); padding: 14px 18px; margin-bottom: 18px; }
.empty p { margin: 0; }

/* ══════════════ matrix ══════════════ */
.matrix-wrap { overflow-x: auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); -webkit-overflow-scrolling: touch; }
.matrix { border-collapse: separate; border-spacing: 0; width: max-content; min-width: 100%; font-size: 13px; }
.matrix th, .matrix td { border-bottom: 1px solid var(--line); padding: 10px 12px; vertical-align: top; text-align: left; width: 132px; max-width: 160px; }
.matrix thead th { background: var(--gray-1); font-weight: 600; }
.matrix .grp th { border-bottom: 0; padding: 6px 12px; font-size: 11px; font-weight: 500; background: var(--white); }
.matrix .grp .fam { border-bottom: 1px solid var(--line); text-align: center; background: rgba(115, 59, 233, .05); color: var(--violet-deep); font-weight: 600; border-radius: 0; }
.matrix .sticky { position: sticky; left: 0; z-index: 1; background: var(--gray-1); width: 154px; min-width: 154px; border-right: 1px solid var(--line-2); }
.matrix tbody .sticky { font-weight: 600; }
.matrix tbody tr:nth-child(even) td { background: #FBFBFC; }
.matrix tbody tr:nth-child(even) .sticky { background: #F1F1F3; }
.matrix tr:last-child > * { border-bottom: 0; }
.th-op { display: block; font: 400 11px var(--mono); color: var(--ink-3); }
.matrix thead .col-rec { background: rgba(115, 59, 233, .12); box-shadow: inset 0 3px 0 var(--violet); color: var(--violet-deep); }
.matrix tbody .col-rec, .matrix tbody tr:nth-child(even) td.col-rec { background: rgba(115, 59, 233, .06); }
.matrix .col-out { color: var(--ink-3); }
.ok, .x, .w { display: inline-block; font: 600 10px/1.5 var(--sans); letter-spacing: .05em; text-transform: uppercase; padding: 1px 8px; border-radius: 999px; }
.ok { background: rgba(115, 59, 233, .1); color: var(--violet-deep); }
.x { background: rgba(71, 85, 105, .14); color: #33404F; }
.w { background: rgba(180, 83, 9, .12); color: #92400E; }
.mini-stamp { display: inline-block; font: 700 10px/1.5 var(--sans); text-transform: uppercase; letter-spacing: .08em; border-radius: 999px; padding: 2px 10px; background: rgba(71, 85, 105, .1); color: #3D4A5C; }
.mini-stamp.rec { background: linear-gradient(135deg, var(--violet-a), var(--violet-b)); color: #fff; }
.family { margin-top: 28px; border-top: 1px solid var(--line-2); padding-top: 18px; }
.family-head { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; }
.family-head h3 { font-size: 20px; font-weight: 700; }
.family-head p { margin: 0; color: var(--ink-2); font-size: 14px; }

/* ══════════════ chart ══════════════ */
.chart-card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-2); overflow: hidden; }
.chart-fig { margin: 0; padding: 8px 8px 0; }
#chart { display: block; width: 100%; height: auto; }
.chart-cap { padding: 10px 14px 12px; font-size: 14px; color: var(--ink-2); }
.chart-foot { display: flex; flex-wrap: wrap; gap: 10px 26px; padding: 12px 18px 14px; border-top: 1px solid var(--line); background: var(--gray-1); }
.cf-cell { min-width: 0; }
.cf-cell .v { font-size: 12.5px; }
.cf-note { flex: 1 1 260px; }
.cf-note .v { font-family: var(--sans); color: var(--ink-2); }

.c-grid { stroke: rgba(23, 23, 23, .14); stroke-width: .6; }
.c-grid-minor { stroke: rgba(23, 23, 23, .05); stroke-width: .5; }
.c-axes { fill: none; stroke: rgba(23, 23, 23, .22); stroke-width: 1; }
.c-tick { font-family: var(--mono); fill: var(--ink-2); font-variant-numeric: tabular-nums; }
.c-label { font-family: var(--sans); font-weight: 600; fill: var(--ink-2); }
.c-curve { fill: none; stroke: #64748B; stroke-width: 1.3; stroke-linecap: round; opacity: .8; }
.c-curve-rec-glow { fill: none; stroke: var(--violet); stroke-width: 9; stroke-linejoin: round; stroke-linecap: round; opacity: .22; filter: blur(5px); }
.c-curve-rec { fill: none; stroke: var(--violet); stroke-width: 3.2; stroke-linejoin: round; stroke-linecap: round; }
.c-end { font-family: var(--sans); font-weight: 500; fill: var(--ink-2); }
.c-end.is-rec { font-weight: 700; fill: var(--violet-deep); }
.c-leader-thin { fill: none; stroke: rgba(23, 23, 23, .2); stroke-width: .7; }
.c-qline { stroke: var(--violet); stroke-width: 1; stroke-dasharray: 4 4; opacity: .55; }
.c-qtag { fill: var(--violet); rx: 8; }
.c-qtag-t { font-family: var(--mono); fill: #fff; font-weight: 600; }
.c-qdot { fill: var(--violet); stroke: #fff; stroke-width: 2.5; }
.c-ext { stroke: rgba(23, 23, 23, .25); stroke-width: .7; stroke-dasharray: 3 3; }
.c-dim { stroke: var(--ink); stroke-width: .9; }
.c-dimt { font-family: var(--sans); font-weight: 600; fill: var(--ink-2); }
.c-bep { fill: #fff; stroke: var(--violet); stroke-width: 2.5; }
.c-leader { fill: none; stroke: var(--ink); stroke-width: 1; }
.c-callout { fill: #171717; }
.c-callout-t { font-family: var(--mono); font-weight: 600; fill: #fff; }
.c-callout-s { font-family: var(--sans); fill: rgba(255, 255, 255, .72); }

.xover { margin-top: 20px; background: rgba(255, 255, 255, .8); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 20px; box-shadow: var(--shadow-1); }
.xover h3 { font-size: 17px; font-weight: 700; margin-bottom: 8px; }
.xover-list { margin: 0; padding-left: 20px; font-size: 14px; color: var(--ink-2); }
.xover-list li { margin-bottom: 5px; }

/* ══════════════ verified scenarios ══════════════ */
.case-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr)); gap: clamp(14px, 1.6vw, 22px); }
.case {
  display: flex; flex-direction: column; gap: 12px; text-align: left; cursor: pointer;
  background: rgba(255, 255, 255, .86); border: 1px solid rgba(255, 255, 255, .9); border-radius: var(--radius);
  padding: clamp(20px, 2.2vw, 28px); box-shadow: var(--shadow-1); font: inherit; color: inherit;
  transition: transform .26s cubic-bezier(.22, 1, .36, 1), box-shadow .26s;
}
.case:hover { transform: translateY(-5px); box-shadow: var(--shadow-v); }
.case-n { font: 600 11px/1 var(--sans); letter-spacing: .14em; text-transform: uppercase; color: var(--violet-deep); }
.case h3 { font-size: clamp(20px, 2.1vw, 28px); font-weight: 800; line-height: 1.1; letter-spacing: -.01em; }
.case-spec { margin: 0; font: 500 13px var(--mono); color: var(--ink-2); font-variant-numeric: tabular-nums; }
.case-rows { display: grid; gap: 8px; margin: 2px 0 0; }
.case-row { display: flex; align-items: baseline; gap: 10px; }
.case-row dt { flex: none; width: 76px; font: 600 10px/1.6 var(--sans); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.case-row dd { margin: 0; font-size: 15px; font-weight: 600; }
.case-match { display: inline-flex; align-items: center; gap: 7px; font: 600 12px var(--sans); color: var(--violet-deep); }
.case-match::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--violet); }
.case-go { margin-top: auto; font: 600 14px var(--sans); color: var(--violet-deep); display: inline-flex; align-items: center; gap: 7px; }
.case:hover .case-go { gap: 11px; }
.case-go span { transition: none; }

/* ══════════════ data & sources ══════════════ */
.data-lede { max-width: 66ch; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); }
.lbl { display: inline-block; font: 600 10px/1.6 var(--sans); text-transform: uppercase; letter-spacing: .08em; padding: 2px 10px; border-radius: 999px; white-space: nowrap; }
.lbl-typical { background: rgba(115, 59, 233, .1); color: var(--violet-deep); }
.lbl-illustrative { background: rgba(180, 83, 9, .12); color: #92400E; }
.conflicts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); gap: 16px; margin: 0 0 24px; }
.conflict { background: var(--white); border: 1px solid var(--line); border-left: 4px solid #B45309; border-radius: var(--radius-sm); padding: 16px 18px; box-shadow: var(--shadow-1); }
.conflict h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.conflict p { margin: 0 0 6px; font-size: 14px; color: var(--ink-2); }
.data-sub { font-size: clamp(20px, 2vw, 28px); font-weight: 700; letter-spacing: -.01em; margin: 0 0 14px; }
.srclist { font-size: 13px; columns: 2; column-gap: 32px; color: var(--ink-2); padding-left: 20px; }
.srclist li { overflow-wrap: anywhere; break-inside: avoid; margin-bottom: 4px; }
.data-foot { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 22px; }

/* ══════════════ about / footer ══════════════ */
.about-copy { max-width: 62ch; color: var(--ink-2); font-size: clamp(16px, 1.4vw, 19px); }
.about-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 26px 0 0; }
.detail-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); gap: 18px; margin: clamp(32px, 5vh, 56px) 0 0; padding-top: 22px; border-top: 1px solid rgba(0, 0, 0, .12); }
.detail dt { font: 600 10px/1.6 var(--sans); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-3); }
.detail dd { margin: 4px 0 0; font-size: 15px; font-weight: 600; color: var(--ink); }

/* ══════════════ floating pill nav ══════════════ */
.pillnav {
  position: fixed; z-index: 50; left: 50%; bottom: 18px; transform: translateX(-50%);
  max-width: calc(100vw - 20px);
  display: flex; align-items: center; gap: 4px; padding: 8px;
  border-radius: 999px; border: 1px solid rgba(var(--tint), .22);
  background: rgba(255, 255, 255, .76);
  -webkit-backdrop-filter: blur(20px) saturate(180%); backdrop-filter: blur(20px) saturate(180%);
  box-shadow: 0 2px 6px rgba(16, 16, 24, .06), 0 14px 40px rgba(var(--tint), .26);
  transition: border-color .55s ease, box-shadow .55s ease, background-color .55s ease;
  overflow-x: auto; scrollbar-width: none; overscroll-behavior-x: contain;
}
.pillnav::-webkit-scrollbar { display: none; }
.pn-home {
  flex: none; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  border: 0; cursor: pointer; color: #fff;
  background: rgb(var(--tint));
  box-shadow: 0 4px 14px rgba(var(--tint), .45);
  transition: background-color .55s ease, box-shadow .55s ease, transform .2s;
}
.pn-home:hover { transform: translateY(-2px); }
.pn-home svg { width: 20px; height: 20px; }
.pn-link {
  flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 15px;
  border: 0; border-radius: 999px; background: transparent; cursor: pointer; white-space: nowrap;
  font: 500 14px/1 var(--sans); color: var(--ink);
  transition: background-color .3s, color .3s;
}
.pn-link:hover { background: rgba(var(--tint), .12); color: rgb(var(--tint)); }
.pn-link[aria-current="true"] { background: rgba(var(--tint), .16); color: rgb(var(--tint)); font-weight: 600; }
.pn-short { display: none; }

/* ══════════════ section dots ══════════════ */
.dots { position: fixed; z-index: 50; right: 18px; top: 50%; transform: translateY(-50%); display: flex; flex-direction: column; align-items: center; gap: 12px; }
.dot { width: 22px; height: 22px; display: grid; place-items: center; border: 0; background: none; padding: 0; cursor: pointer; }
.dot::after { content: ''; display: block; width: 14px; height: 2px; border-radius: 2px; background: rgba(23, 23, 23, .28); transition: all .32s cubic-bezier(.22, 1, .36, 1); }
.dot:hover::after { background: rgba(115, 59, 233, .6); }
.dot[aria-current="true"]::after { width: 10px; height: 10px; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 4px rgba(115, 59, 233, .16); }

/* ══════════════ scroll reveal ══════════════ */
[data-reveal-child], [data-reveal] > * { opacity: 0; transform: translateY(24px); transition: opacity .62s cubic-bezier(.22, 1, .36, 1), transform .62s cubic-bezier(.22, 1, .36, 1); }
.is-in[data-reveal-child], .is-in[data-reveal] > * { opacity: 1; transform: none; }
.is-in[data-reveal] > * { transition-delay: calc(var(--i, 0) * 70ms); }

/* ══════════════ about drawer ══════════════ */
.drawer {
  margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(780px, 100vw); max-width: 100vw;
  padding: 0; border: 0; background: var(--paper); color: var(--ink);
  display: none; flex-direction: column; box-shadow: -20px 0 60px rgba(16, 16, 24, .2);
}
.drawer[open] { display: flex; animation: slide-in .26s cubic-bezier(.22, 1, .36, 1); }
.drawer::backdrop { background: rgba(23, 23, 23, .4); -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px); }
@keyframes slide-in { from { transform: translateX(40px); opacity: 0; } to { transform: none; opacity: 1; } }
.drawer-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 24px; border-bottom: 1px solid var(--line); background: var(--white); }
.drawer-head h2 { font-size: 22px; font-weight: 700; letter-spacing: -.01em; }
.tabs { display: flex; gap: 6px; padding: 12px 24px; background: var(--white); border-bottom: 1px solid var(--line); }
.tabs [role="tab"] { font: 500 14px var(--sans); color: var(--ink); background: var(--gray-1); border: 1px solid var(--line); min-height: 44px; padding: 0 18px; cursor: pointer; border-radius: 999px; }
.tabs [aria-selected="true"] { background: linear-gradient(135deg, var(--violet-a), var(--violet-b)); border-color: transparent; color: #fff; font-weight: 600; }
.drawer-body { overflow: auto; padding: 22px 24px 40px; flex: 1; }
.prose { max-width: 72ch; }
.prose h3 { font-size: 19px; font-weight: 700; margin: 26px 0 8px; letter-spacing: -.01em; }
.prose h3:first-child { margin-top: 0; }
.prose h4 { font-size: 15px; font-weight: 700; margin: 18px 0 6px; }
.prose p, .prose li { margin: 0 0 8px; color: var(--ink-2); }
.prose ul, .prose ol { padding-left: 22px; margin: 0 0 10px; }
#panel-sources { max-width: none; }
.figs { width: 100%; border-collapse: separate; border-spacing: 0; font-size: 13px; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; margin-bottom: 8px; }
.figs th, .figs td { border-bottom: 1px solid var(--line); padding: 8px 10px; vertical-align: top; text-align: left; }
.figs tr:last-child > * { border-bottom: 0; }
.figs th { background: var(--gray-1); font-weight: 600; }
.figs td:nth-child(2) { white-space: normal; min-width: 12ch; }

/* ══════════════ responsive ══════════════ */
@media (max-width: 1100px) {
  .tool-grid { grid-template-columns: minmax(0, 1fr); }
  .req { position: static; }
  .srclist { columns: 1; }
}
@media (max-width: 860px) {
  .tb-fields { grid-template-columns: repeat(2, minmax(min-content, 1fr)); }
  .tb-fields .c-route { grid-column: span 2; }
}
@media (max-width: 720px) {
  :root { --navspace: 96px; --radius: 18px; }
  .dots { display: none; }
  .sec { min-height: auto; padding: 56px 0 64px; }
  .sec-hero { min-height: 100svh; }
  .display { font-size: clamp(34px, 11vw, 56px); max-width: none; }
  .wordmark { font-size: clamp(30px, 10.5vw, 58px); }
  .pillnav { bottom: 12px; padding: 6px; gap: 2px; max-width: calc(100vw - 16px); }
  .pn-link { padding: 0 11px; font-size: 13px; }
  .pn-long { display: none; }
  .pn-short { display: inline; }
  .tb-top { grid-template-columns: 58px minmax(0, 1fr) 46px; }
  .tb-top .cell:not(.c-name):not(.c-rank) { display: none; }
  .picto { width: 34px; height: 34px; }
  .c-icon { width: 50px; height: 50px; }
  .seg-mode { width: 100%; }
  .matrix .sticky { width: 120px; min-width: 120px; }
  .chart-foot { gap: 8px 18px; }
  .typeline { font-size: clamp(19px, 6vw, 28px); }
}
@media (max-width: 420px) {
  .seg label { flex: 1 1 44%; }
}

/* ══════════════ reduced motion ══════════════ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; scroll-snap-type: none; }
  .drawer[open] { animation: none; }
  .blob { animation: none !important; }
  .caret { animation: none; opacity: 1; }
  .wordmark.is-anim .ch { animation: none; opacity: 1; transform: none; }
  [data-reveal-child], [data-reveal] > * { opacity: 1 !important; transform: none !important; transition: none !important; }
  .card, .feature, .case, .btn, .pn-home { transition: none; }
  .card:hover, .feature:hover, .case:hover, .btn:hover, .pn-home:hover { transform: none; }
}
