/* KDI — Tool visual system (v0.15.0).
 * Direction: plain functional tool, full-width like 16personalities.
 * White ground, Inter throughout, royal blue accent (leather pride flag),
 * 18px base, nothing under 15px, large buttons and click targets.
 * No photography, no display type, no visual theatrics.
 * Accent provenance: deep royal blue from the leather pride flag (owner pick, 2026-07-21).
 * Direction doc: docs/kdi-design-directions.md
 */
:root {
  --bg: #FFFFFF;
  --panel: #F6F7F8;
  --panel2: #EEF0F2;
  --line: #E4E6E9;
  --line2: #D2D5D9;
  --ink: #1C1E21;
  --body: #3B4046;
  --muted: #5A6068;
  --faint: #7C838B;
  --accent: #274690;
  --accent-dark: #1D3670;
  --accent-soft: #EDF1FA;
  /* legacy aliases — older rules and modules read these names */
  --night: var(--bg);
  --night2: var(--panel);
  --night3: var(--panel2);
  --seam: var(--line);
  --seam2: var(--line2);
  --bone: var(--ink);
  --bone2: var(--body);
  --red: var(--accent);
  --red-bright: var(--accent);
  --rule: var(--line);
  --hairline: var(--line);
  --hairline2: var(--line2);
  --paper: var(--panel);
  --graphite: var(--panel);
  --radius: 10px;
  --radius-lg: 14px;
  --font-serif: "Inter", -apple-system, system-ui, sans-serif;
  --font-sans: "Inter", -apple-system, system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 18px;
  font-weight: 400;
  line-height: 1.7;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 40px; }
a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font-family: var(--font-sans); cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
b { font-weight: 650; }

.mono { font-family: var(--font-mono); }
.eyebrow {
  font-size: 15px;
  font-weight: 550;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--muted);
}

/* the chip — legacy atom, now a plain square swatch */
.chip {
  display: inline-block;
  width: 16px; height: 16px;
  border-radius: 4px;
  background: var(--chip-c, var(--accent));
}
.chip::after { content: none; }

/* ---------- header ---------- */
.site-head { display: flex; align-items: center; justify-content: space-between; padding: 24px 0 20px; }
.brand { display: flex; align-items: center; gap: 12px; }
.brand .logo { display: block; flex: none; }
.brand .sub { position: relative; top: 1px; }
.brand .mark {
  font-weight: 650;
  font-size: 22px;
  letter-spacing: 0.5px;
  color: var(--ink);
}
.brand .mark em { color: var(--accent); font-style: normal; }
.brand .sub { color: var(--muted); font-size: 15px; }
/* hairline under the header */
.rule-strip { height: 1px; background: var(--line); }
.rule-strip::after { content: none; }

/* ---------- landing ---------- */
.bleed { margin-inline: calc(50% - 50vw); padding-inline: max(40px, calc(50vw - 530px)); }
.band { background: var(--panel); border-block: 1px solid var(--line); }

.hero { padding: 88px 0 48px; max-width: 820px; }
.hero .eyebrow { margin-bottom: 18px; }
.hero h1 {
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.15;
  font-weight: 650;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
  text-wrap: balance;
}
.hero h1 em, .hero h1 .fade { font-style: normal; color: var(--accent); }
.hero p.lede { color: var(--body); font-size: 20px; max-width: 64ch; margin: 0 0 36px; line-height: 1.7; }
.hero.small { padding: 56px 0 22px; }

/* home hero: big, centered, full-width (16p-style) */
.hero-home { padding: 96px 0 88px; text-align: center; }
.hero-home h1 {
  font-size: clamp(38px, 4.6vw, 58px);
  line-height: 1.12;
  font-weight: 650;
  letter-spacing: -0.02em;
  max-width: 21ch;
  margin: 0 auto;
  text-wrap: balance;
}
.hero-home .lede { margin: 24px auto 0; color: var(--body); font-size: 20px; max-width: 64ch; line-height: 1.7; }
.hero-home .hero-cta { margin-top: 40px; display: flex; justify-content: center; align-items: center; gap: 28px; flex-wrap: wrap; flex-direction: row; }
.hero-home .meta-line { text-align: left; }
.privacy-line { margin-top: 22px; font-size: 16px; color: var(--muted); }

.cta-row { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; }
.btn {
  border: 1px solid var(--line2);
  border-radius: var(--radius);
  padding: 15px 32px;
  font-size: 17px;
  font-weight: 550;
  letter-spacing: 0.1px;
  background: var(--bg);
  color: var(--ink);
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.btn:active { transform: scale(.985); }
.btn-primary { background: var(--accent); color: #fff; border-color: var(--accent); box-shadow: 0 1px 2px rgba(28,30,33,.14); }
.btn-primary:hover { background: var(--accent-dark); border-color: var(--accent-dark); color: #fff; }
.btn-ghost { background: transparent; color: var(--muted); border-color: var(--line2); }
.btn-ghost:hover { color: var(--ink); border-color: var(--muted); }
.btn-xl { padding: 18px 48px; font-size: 18px; }
.meta-line { color: var(--muted); font-size: 16px; line-height: 1.65; max-width: 360px; }
.hero-cta { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; }

/* landing sections */
.sect { padding-block: 88px; }
.section-title { font-size: clamp(26px, 3vw, 34px); font-weight: 650; letter-spacing: -0.015em; margin: 0 0 8px; }
.section-sub { color: var(--muted); font-size: 17.5px; margin-bottom: 22px; max-width: 70ch; }
.st-loud { font-size: clamp(26px, 3vw, 34px); margin-top: 0; }

/* axes — 2×2 grid of scale cards */
.axes-grid { margin-top: 40px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.axis-scale { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 28px 30px 24px; }
.axis-scale .as-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.axis-scale .as-head .t { font-weight: 650; font-size: 19px; }
.axis-scale .as-head .d { color: var(--muted); font-size: 15.5px; text-align: right; }
.axis-scale .scale { position: relative; height: 42px; margin-top: 14px; }
.axis-scale .scale .bar { position: absolute; left: 0; right: 0; top: 20px; height: 3px; background: var(--line2); border-radius: 2px; }
.axis-scale .scale .tick { position: absolute; top: 15px; width: 1px; height: 13px; background: #C6CACF; }
.axis-scale .scale .mark { position: absolute; top: 13px; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--accent); transform: translateX(-50%); box-shadow: 0 1px 3px rgba(28,30,33,.2); }
.axis-scale .ends { display: flex; justify-content: space-between; font-size: 15px; color: var(--muted); }
.axis-scale .as-blurb { color: var(--body); font-size: 16px; margin-top: 12px; line-height: 1.6; }
.axes-note { margin-top: 24px; font-size: 16px; color: var(--muted); }

/* ---------- type grid: big clickable cards ---------- */
.type-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 40px 0 54px; border: none; background: transparent; }
.type-tile {
  display: block; position: relative;
  background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg);
  padding: 24px 24px 22px;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.type-tile:hover { background: var(--bg); border-color: #B9BEC5; box-shadow: 0 6px 18px -8px rgba(28,30,33,.2); transform: translateY(-2px); text-decoration: none; }
.type-tile .code { font-size: 15px; font-weight: 650; color: var(--accent); letter-spacing: 0.08em; }
.type-tile .tname { font-size: 19px; font-weight: 650; color: var(--ink); line-height: 1.3; margin-top: 8px; }
.type-tile .tepi { font-size: 15.5px; color: var(--muted); margin-top: 6px; line-height: 1.55; }
.tstrip { display: none; }
a.type-tile { text-decoration: none; color: inherit; cursor: pointer; }
a.type-tile:hover .code { color: var(--accent-dark); }
.type-grid.neighbors { margin-bottom: 8px; }
a.btn { text-decoration: none; display: inline-flex; align-items: center; }
a.btn:hover { text-decoration: none; }

/* ---------- ethos / how it's built ---------- */
.ethos { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 30px 34px; margin-bottom: 60px; }
.ethos::before { content: none; }
.ethos h3 { color: var(--ink); font-size: 20px; font-weight: 650; margin-bottom: 14px; }
.ethos ul { list-style: none; }
.ethos li { color: var(--body); font-size: 16.5px; padding: 8px 0 8px 26px; position: relative; }
.ethos li::before { content: "—"; position: absolute; left: 0; color: var(--accent); }
.ethos b { color: var(--ink); }

/* ---------- pairing promo ---------- */
.pair-promo { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel); padding: 34px 36px; margin: 60px 0; }
.pair-promo::before { content: none; }
.pair-promo h3 { font-size: 26px; font-weight: 650; margin: 10px 0 8px; }
.pair-promo p { color: var(--body); max-width: 66ch; margin: 0 0 22px; line-height: 1.65; font-size: 17px; }

/* ---------- gate ---------- */
.gate { position: fixed; inset: 0; background: rgba(28, 30, 33, .45); backdrop-filter: blur(4px); display: flex; align-items: center; justify-content: center; z-index: 50; padding: 20px; }
.gate-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); max-width: 520px; padding: 38px; text-align: left; position: relative; box-shadow: 0 20px 50px -20px rgba(28,30,33,.35); }
.gate-card::before { content: "18+"; position: absolute; top: 16px; right: 16px; background: var(--accent); color: #fff; font-weight: 650; font-size: 15px; letter-spacing: 0.5px; padding: 5px 12px; border-radius: 7px; }
.gate-card h2 { font-size: 27px; font-weight: 650; margin-bottom: 14px; }
.gate-card p { color: var(--body); font-size: 17px; margin-bottom: 10px; }
.gate-card .actions { margin-top: 26px; display: flex; gap: 12px; flex-wrap: wrap; }

/* ---------- quiz (full-viewport question screen) ---------- */
.quiz-shell { padding: 44px 0 90px; }
.qs-focus {
  padding: 24px 0 40px;
  min-height: calc(100vh - 190px);
  min-height: calc(100svh - 190px);
  display: flex; flex-direction: column; justify-content: center;
}
.progress-rail {
  height: 4px;
  border: none;
  background: var(--panel2);
  border-radius: 2px;
  position: relative;
  overflow: hidden;
  max-width: min(1100px, 100%);
  margin: 0 auto;
}
.progress-fill { height: 100%; background: var(--accent); transition: width .25s ease; }
.progress-label { color: var(--muted); font-size: 15.5px; letter-spacing: 0.3px; text-align: center; margin: 12px 0 clamp(36px, 7vh, 84px); }
.q-card { text-align: center; }
.anchor-note { border-left: 3px solid var(--accent); background: var(--accent-soft); color: var(--muted); font-size: 15px; line-height: 1.55; padding: 14px 18px; margin: 0 0 22px; text-align: left; border-radius: 0 6px 6px 0; }
.anchor-note b { color: var(--ink); }
.q-text {
  font-weight: 550;
  font-size: clamp(26px, 3vw, 42px);
  line-height: 1.4;
  letter-spacing: -0.01em;
  min-height: 3.2em;
  display: flex; align-items: center; justify-content: center;
  max-width: min(940px, 94vw); margin: 0 auto clamp(44px, 8vh, 96px);
}
/* size encodes strength; side encodes direction (disagree slate / agree blue) */
:root { --scale-de: #8E9196; --scale-ag: #274690; --scale-mid: #B3B8BE; }
.likert { display: flex; align-items: center; justify-content: center; gap: clamp(14px, 2.4vw, 36px); }
.likert .opt {
  position: relative;
  flex: none; padding: 0; border-radius: 50%;
  background: var(--bg); border: 3px solid var(--scale-mid);
  display: flex; align-items: center; justify-content: center;
  transition: background .12s ease, border-color .12s ease, transform .12s ease;
}
.likert .opt.c1, .likert .opt.c5 { width: clamp(62px, 6.8vw, 100px); height: clamp(62px, 6.8vw, 100px); }
.likert .opt.c2, .likert .opt.c4 { width: clamp(48px, 5.2vw, 78px); height: clamp(48px, 5.2vw, 78px); }
.likert .opt.c3 { width: clamp(35px, 3.7vw, 54px); height: clamp(35px, 3.7vw, 54px); }
.likert .opt.c1, .likert .opt.c2 { border-color: var(--scale-de); }
.likert .opt.c4, .likert .opt.c5 { border-color: var(--scale-ag); }
.likert .opt:hover { transform: scale(1.08); }
.likert .opt.c1:hover, .likert .opt.c2:hover { background: rgba(142, 145, 150, 0.16); }
.likert .opt.c4:hover, .likert .opt.c5:hover { background: rgba(39, 70, 144, 0.12); }
.likert .opt.c3:hover { background: rgba(179, 184, 190, 0.2); }
.likert .opt.selected { border-width: 0; }
.likert .opt.c1.selected, .likert .opt.c2.selected { background: var(--scale-de); }
.likert .opt.c3.selected { background: var(--scale-mid); }
.likert .opt.c4.selected, .likert .opt.c5.selected { background: var(--scale-ag); }
.likert .opt.selected::after { content: "\2713"; color: #fff; font-size: clamp(18px, 1.8vw, 26px); line-height: 1; }
.scale-mid {
  position: absolute; top: calc(100% + 14px); left: 50%; transform: translateX(-50%);
  white-space: nowrap; font-size: clamp(15px, 1.2vw, 16px); color: var(--muted); letter-spacing: 0.2px;
  pointer-events: none;
}
.scale-end { font-size: clamp(17px, 1.5vw, 21px); font-weight: 550; letter-spacing: 0.2px; }
.scale-end.de { color: var(--muted); margin-right: 12px; }
.scale-end.ag { color: var(--scale-ag); margin-left: 12px; }
.quiz-nav { margin-top: clamp(48px, 8vh, 96px); display: flex; justify-content: center; gap: 36px; }
.quiz-nav button { background: none; border: none; color: var(--muted); font-size: 16px; letter-spacing: 0.2px; padding: 10px 6px; }
.quiz-nav button:hover { color: var(--ink); text-decoration: underline; }

/* during questions, quiet the chrome */
body:has(.q-card) .rule-strip, body:has(.q-card) .site-foot { display: none; }
body:has(.q-card) .site-head { opacity: .4; }

/* ---------- modifiers ---------- */
.mod-card { border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); padding: 32px; margin-bottom: 18px; }
.mod-card h3 { font-size: 23px; font-weight: 650; margin-bottom: 6px; }
.mod-card p { color: var(--muted); font-size: 16.5px; margin-bottom: 18px; }
.pick-row { display: flex; gap: 10px; flex-wrap: wrap; }
.pick-row button {
  background: var(--bg);
  border: 1px solid var(--line2);
  color: var(--body);
  border-radius: var(--radius);
  padding: 16px 26px;
  font-size: 17px;
  font-weight: 450;
  transition: all .12s;
}
.pick-row button.selected { border-color: var(--accent); background: var(--accent); color: #fff; font-weight: 550; }
.pick-row button:hover { border-color: var(--muted); color: var(--ink); }
.pick-row button.selected:hover { color: #fff; }

/* ---------- results: the summary card ---------- */
.cert {
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--panel);
  margin: 44px 0 8px;
  padding: 46px 30px 36px;
  text-align: center;
  position: relative;
}
.cert::before, .cert::after,
.cert .corner-b::before, .cert .corner-b::after { content: none; }
.cert .eyebrow { color: var(--accent); margin-bottom: 22px; }
.cert .code {
  font-weight: 650;
  font-size: clamp(56px, 10vw, 104px);
  letter-spacing: 12px;
  margin-left: 12px;
  line-height: 1;
  color: var(--ink);
}
.cert .tname { font-weight: 650; font-size: clamp(26px, 4vw, 35px); letter-spacing: -0.01em; margin-top: 14px; }
.cert .essence { color: var(--body); font-size: 18px; margin-top: 8px; }
.cert .epigraph { font-style: italic; font-size: 17.5px; color: var(--muted); margin-top: 16px; }
.cert .modline { color: var(--muted); font-size: 15px; letter-spacing: 0.6px; text-transform: uppercase; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }

/* ---------- score gauges ---------- */
.gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; border: none; background: transparent; margin: 18px 0 34px; }
.gauge-cell { padding: 24px 22px 20px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); text-align: center; }
.gauge-cell svg { width: 100%; max-width: 320px; height: auto; display: block; margin: 0 auto; }
.gauge-cell .g-name { font-size: 15px; font-weight: 650; letter-spacing: 0.6px; text-transform: uppercase; color: var(--ink); margin-top: 10px; }
.gauge-cell .g-read { font-size: 15.5px; color: var(--muted); margin-top: 4px; }
.gauge-cell .g-read b { color: var(--accent); font-weight: 650; }
.chip-slide { transition: transform 900ms cubic-bezier(.2,.8,.2,1); }
.needle { transform-origin: 100px 100px; transition: transform 900ms cubic-bezier(.2,.8,.2,1); }

/* ---------- notes & profile ---------- */
.switch-note { background: var(--accent-soft); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: var(--radius); padding: 18px 22px; color: var(--body); font-size: 16.5px; margin-bottom: 30px; }
.switch-note b { color: var(--ink); }
.profile-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-bottom: 34px; }
.p-card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 26px; }
.p-card.wide { grid-column: 1 / -1; }
.p-card h4 { color: var(--muted); font-size: 15px; font-weight: 650; text-transform: uppercase; letter-spacing: 1px; margin-bottom: 10px; }
.p-card p, .p-card li { color: var(--body); font-size: 16.5px; }
.p-card ul { list-style: none; }
.p-card .p-act { margin-top: 12px; }
.p-card .p-act a { color: var(--accent); font-weight: 550; text-decoration: none; }
.p-card .p-act a:hover { text-decoration: underline; }
.p-card li { padding: 4px 0 4px 20px; position: relative; }
.p-card li::before { content: "•"; position: absolute; left: 4px; color: var(--accent); }
.p-card.safety { border-color: var(--accent); border-width: 1.5px; }
.p-card.safety h4 { color: var(--accent); }
.res-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin: 38px 0; }

/* ---------- premium ---------- */
.premium { background: var(--panel); color: var(--ink); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 36px; text-align: center; margin-bottom: 44px; }
.premium h3 { font-size: 26px; font-weight: 650; letter-spacing: -0.01em; margin-bottom: 8px; }
.premium p { color: var(--muted); font-size: 17px; max-width: 560px; margin: 0 auto 16px; }
.premium .soon { display: inline-block; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; color: var(--ink); border: 1px solid var(--line2); border-radius: 999px; padding: 7px 16px; }

/* ---------- debug: the audit ---------- */
.debug-panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-top: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 26px;
  margin-bottom: 44px;
  font-family: var(--font-mono);
  font-size: 15px;
  color: var(--muted);
  overflow-x: auto;
}
.debug-panel h4 { color: var(--ink); font-family: inherit; margin-bottom: 12px; font-size: 15px; letter-spacing: 0.5px; }
.debug-panel table { border-collapse: collapse; width: 100%; margin: 10px 0 18px; }
.debug-panel th, .debug-panel td { border: 1px solid var(--line); padding: 4px 8px; text-align: left; white-space: nowrap; }
.debug-panel th { color: var(--ink); font-weight: 600; }
.debug-panel .formula { color: var(--ink); }
.debug-panel button { background: var(--bg); color: var(--ink); border: 1px solid var(--line2); border-radius: var(--radius); padding: 8px 14px; font-family: inherit; font-size: 15px; }
.debug-panel button:hover { border-color: var(--ink); }

/* ---------- toast / footer ---------- */
.toast { position: fixed; bottom: 26px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; border-radius: var(--radius); padding: 12px 24px; font-size: 16px; opacity: 0; transition: opacity .25s; pointer-events: none; z-index: 60; box-shadow: 0 8px 24px -8px rgba(28,30,33,.4); }
.toast.show { opacity: 1; }
.site-foot { border-top: 1px solid var(--line); margin-top: 30px; padding: 32px 0 48px; color: var(--muted); font-size: 15px; text-align: center; line-height: 1.9; }
.site-foot .ver { font-size: 15px; letter-spacing: 0.4px; }

/* ---------- data donation & statistics ---------- */
.donate-sec {
  border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--panel);
  padding: 32px 34px; margin: 46px 0 0;
}
.donate-sec h3 { font-size: 25px; font-weight: 650; margin: 10px 0 8px; }
.donate-sec p { color: var(--body); max-width: 68ch; line-height: 1.65; font-size: 16.5px; }

/* ---------- KDI+ report ---------- */
.rep-score { display: inline-block; font-family: var(--font-mono); font-size: 15px; letter-spacing: .03em; margin: 0 10px; }
.rep-honesty { max-width: 640px; margin: 18px auto 0; text-align: center; }
.rep-primer { max-width: 640px; margin: 22px auto 0; padding: 16px 20px; border: 1px solid var(--line2); background: var(--panel); text-align: left; }
.rep-primer h4 { margin: 0 0 6px; font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); }
.rep-primer p { margin: 0; font-size: 0.95rem; line-height: 1.55; }
.rep-allmid { max-width: 640px; margin: 14px auto 0; text-align: center; color: var(--accent); font-weight: 550; }
.rep-glyph { color: var(--accent); margin: 6px 0 10px; line-height: 0; }
.glyph-note { font-size: 13px; color: var(--muted, #667); max-width: 460px; margin: 16px auto 0; }
.compat-h { font-size: 15px; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); margin: 26px 0 10px; }
.compat-note { margin-top: 14px; }
.compat-picks { display: flex; flex-direction: column; gap: 10px; }
.compat-pick { border: 1px solid var(--line, #d8dce6); border-radius: var(--radius); padding: 12px 16px; }
.compat-pick .pick-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.compat-pick .pick-code { font-weight: 700; letter-spacing: .06em; text-decoration: none; color: var(--accent); }
.compat-pick .pick-name { font-weight: 600; }
.compat-pick .fit-num { margin-left: auto; }
.pick-reasons { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 8px; }
.pick-why { font-size: 13.5px; color: var(--muted, #667); }
.pick-why::before { font-weight: 700; margin-right: 6px; }
.why-plus::before { content: "+"; color: var(--accent); }
.why-minus::before { content: "−"; color: #a33; }
.why-flex::before { content: "~"; }
.compat-all { margin-top: 18px; }
.compat-all summary { cursor: pointer; font-weight: 600; color: var(--accent); padding: 8px 0; }
.compat-all summary:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.rep-block .rep-looks { margin: 12px 0 0 18px; font-size: 16px; }
.rep-block .rep-looks li { margin-bottom: 5px; }
.rep-compat td a { color: var(--accent); text-decoration: none; font-weight: 550; }
.rep-compat td a:hover { text-decoration: underline; }

/* seam-track gauge (report) */
.rg { display: flex; align-items: center; gap: 10px; margin: 14px 0 6px; --ink-c: var(--accent); }
.rg-pole { font-size: 12.5px; font-weight: 650; color: var(--muted); width: 84px; text-align: right; flex: none; }
.rg-track ~ .rg-pole { text-align: left; }
@media (max-width: 560px) { .rg-pole { width: 62px; font-size: 11px; } }
.rg-track { position: relative; flex: 1; height: 9px; background: var(--panel2); border: 1px solid var(--line); border-radius: 5px; }
.rg-mid { position: absolute; left: 50%; top: -5px; bottom: -5px; width: 1px; background: var(--line2); }
.rg-fill { position: absolute; top: 0; bottom: 0; background: var(--ink-c); opacity: .85; border-radius: 4px; }
.rg-dot { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; background: #fff; border: 4px solid var(--ink-c); transform: translate(-50%, -50%); box-shadow: 0 1px 3px rgba(28,30,33,.25); }
.rg-read { font-size: 15px; color: var(--body); min-width: 60px; text-align: right; flex: none; }
.rep-gauges { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 44px; max-width: 820px; margin: 30px auto 6px; text-align: left; }
.rg-cell .rg-name { font-size: 15px; font-weight: 650; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); }
.axis-read.rep-inked { box-shadow: inset 0 3px 0 var(--ink-c, var(--accent)); }
.axis-read.rep-inked .ar-name { color: var(--ink); }
.rep-ch .ch-no { display: block; font-size: 15px; font-weight: 650; letter-spacing: 2px; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.quad { float: right; display: grid; grid-template-columns: repeat(2, 46px); grid-auto-rows: 36px; gap: 3px; margin: 2px 0 12px 18px; }
.quad span { display: flex; align-items: center; justify-content: center; font-size: 15px; color: var(--faint); border: 1px solid var(--line); border-radius: 6px; }
.quad span.on { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); }
.fitbar { display: inline-flex; gap: 2px; vertical-align: middle; }
.fitbar i { width: 12px; height: 12px; border-radius: 3px; background: var(--panel2); border: 1px solid var(--line); }
.fitbar i.on { background: var(--tier, var(--muted)); border-color: var(--tier, var(--muted)); }
.tier-0 { --tier: var(--accent); }
.tier-1 { --tier: #5477C7; }
.tier-2 { --tier: #8E9196; }
.tier-3 { --tier: #C0C4C9; }
.tier-chip { font-size: 15px; letter-spacing: 0.4px; padding: 3px 10px; border: 1px solid var(--tier, var(--line2)); border-radius: 999px; color: var(--body); white-space: nowrap; }
.fit-num { font-family: var(--font-mono); font-size: 15px; color: var(--muted); white-space: nowrap; }
.rep-script { margin-top: 14px; padding: 14px 16px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--accent-soft); font-style: italic; font-size: 17px; line-height: 1.6; }
.rep-verdict { margin: 14px 0 4px; padding: 12px 16px; border-left: 3px solid var(--accent); border-radius: 0 var(--radius) var(--radius) 0; background: var(--accent-soft); font-size: 17px; line-height: 1.6; }
.rep-verdict b { font-size: 15px; font-weight: 650; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 6px; }
.rep-script b { font-style: normal; font-size: 15px; font-weight: 650; letter-spacing: 1.2px; text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 6px; }
.rep-check ul { columns: 2; column-gap: 44px; }
.rep-check li { break-inside: avoid; }

.donate-table { width: 100%; border-collapse: collapse; margin-top: 16px; font-size: 16px; }
.donate-table th, .donate-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--body); }
.donate-table th { font-size: 15px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.donate-table tr.not-stored td { color: var(--faint); }
.donate-table tr.not-stored td:nth-child(2) { color: var(--accent); }
.token-code {
  font-family: var(--font-mono); font-size: 21px; letter-spacing: .05em;
  border: 1px dashed var(--line2); border-radius: var(--radius); color: var(--ink); padding: 14px 18px; display: inline-block; margin: 12px 0;
  user-select: all;
  background: var(--panel);
}
.stat-card { margin-top: 22px; }
.stat-progress { height: 5px; background: var(--panel2); border-radius: 3px; margin-top: 10px; overflow: hidden; }
.stat-progress span { display: block; height: 100%; background: var(--accent); }
.hist-row { display: flex; align-items: flex-end; gap: 14px; margin: 14px 0; }
.hist-label { font-size: 15px; width: 180px; color: var(--muted); }
.hist-bins { display: flex; gap: 4px; align-items: flex-end; height: 56px; flex: 1; }
.hist-bin { flex: 1; height: 100%; display: flex; align-items: flex-end; background: transparent; border-bottom: 1px solid var(--line); }
.hist-bin i { display: block; width: 100%; background: var(--accent); opacity: .75; min-height: 2px; }
.hist-bin.suppressed { align-items: center; justify-content: center; color: var(--faint); }
.switch-rows p { margin: 6px 0; color: var(--body); }
.stat-note { font-size: 15px; color: var(--muted); margin-top: 10px; }

/* ---------- pairing explorer ---------- */
.pair-input {
  width: 100%; box-sizing: border-box; margin-top: 10px;
  font-family: var(--font-mono); font-size: 15px;
  padding: 13px 15px; color: var(--ink);
  background: var(--bg); border: 1px solid var(--line2); border-radius: var(--radius);
}
.pair-input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(39,70,144,.14); }
.pair-input::placeholder { color: var(--faint); }
.pair-row .ar-head { flex-wrap: wrap; gap: 6px; }

/* ---------- axis narratives ---------- */
.axis-reads { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; border: none; background: transparent; margin-bottom: 44px; }
.axis-read { padding: 28px 30px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); }
.ar-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.ar-name { font-size: 15px; font-weight: 650; letter-spacing: 1px; text-transform: uppercase; color: var(--accent); }
.ar-score { font-family: var(--font-mono); font-size: 15px; color: var(--muted); text-align: right; }
.axis-read h4 { font-weight: 650; font-size: 19px; margin-bottom: 8px; }
.axis-read p { color: var(--body); font-size: 16.5px; line-height: 1.65; }
@media (max-width: 720px) {
  .axis-reads { grid-template-columns: 1fr; }
}

/* ---------- honesty & safety copy ---------- */
.dial-note { font-size: 15.5px; color: var(--muted); margin-top: 12px; max-width: 600px; }
.validation-line { font-size: 15px; letter-spacing: 0.8px; text-transform: uppercase; color: var(--muted); border-top: 1px solid var(--line); padding-top: 14px; margin-bottom: 18px; text-align: center; }
.drop-note { font-size: 15px; color: var(--muted); border-top: 1px dashed var(--line); margin-top: 10px; padding-top: 8px; }

/* ---------- legacy landing classes (kept harmless) ---------- */
.hero.split { max-width: none; display: block; }
.hero-seam, .ticker, .rule-strip .chip, .hero-line, .flag-panel { display: none; }
.axes-loud { margin: 34px 0 96px; }
.axis-band { display: grid; grid-template-columns: 1fr; gap: 8px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.ab-poles { display: none; }
.ab-name { font-size: 15px; font-weight: 650; letter-spacing: 1px; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.ab-full { font-weight: 650; font-size: 21px; color: var(--ink); margin-bottom: 6px; }
.ab-copy p { color: var(--body); font-size: 16.5px; line-height: 1.65; max-width: 700px; }
.axes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 54px 0; border: none; background: transparent; }
.axis-card { padding: 24px 22px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); position: relative; }
.axis-card .idx { display: flex; align-items: center; gap: 8px; font-size: 15px; letter-spacing: 0.8px; color: var(--muted); margin-bottom: 12px; text-transform: uppercase; font-weight: 650; }
.axis-card .idx .chip { width: 10px; height: 10px; border-radius: 3px; }
.axis-card .poles { font-weight: 650; font-size: 28px; letter-spacing: 0.5px; color: var(--ink); }
.axis-card .poles span { color: var(--faint); font-weight: 400; font-size: 19px; }
.axis-card .name { font-size: 15px; text-transform: uppercase; letter-spacing: 1px; color: var(--muted); margin-top: 5px; font-weight: 650; }
.axis-card .blurb { color: var(--body); font-size: 15.5px; margin-top: 10px; line-height: 1.55; }

/* ---------- The Library ---------- */
.lib-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; margin: 26px 0 10px; }
.lib-card { display: block; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg); padding: 24px 24px 20px; text-decoration: none; color: inherit; transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease; }
.lib-card:hover { border-color: #B9BEC5; box-shadow: 0 6px 18px -8px rgba(28,30,33,.2); transform: translateY(-2px); text-decoration: none; }
.lib-kicker { font-size: 15px; font-weight: 650; letter-spacing: 1px; text-transform: uppercase; color: var(--faint); margin-bottom: 10px; }
.lib-card h3 { font-weight: 650; margin: 0 0 8px; font-size: 19px; line-height: 1.3; }
.lib-card p { margin: 0; color: var(--muted); font-size: 16px; line-height: 1.55; }
.article { max-width: 760px; margin: 0 auto; padding-top: 40px; }
.article .eyebrow a { color: inherit; }
.article h1 { font-weight: 650; font-size: clamp(28px, 5vw, 40px); letter-spacing: -0.015em; line-height: 1.15; margin: 12px 0 10px; }

/* ---------- Provenance page ---------- */
.about-page .section-title { text-align: left; }
.about-table { width: 100%; border-collapse: collapse; margin: 16px 0 10px; font-size: 16px; }
.about-table th, .about-table td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; line-height: 1.55; color: var(--body); }
.about-table th { font-size: 15px; font-weight: 650; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.about-table td.mono { font-family: var(--font-mono); font-size: 15px; white-space: nowrap; color: var(--muted); }
.about-body { color: var(--body); font-size: 17px; line-height: 1.7; max-width: 900px; margin: 0 0 34px; }
.section-title.left { text-align: left; margin: 40px 0 8px; font-size: 22px; }
.art-p { color: var(--body); font-size: 17px; line-height: 1.7; margin: 0 0 14px; }
.refs { color: var(--muted); font-size: 15px; line-height: 1.6; padding-left: 18px; }
.refs li { margin-bottom: 6px; }

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .type-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  body { font-size: 17px; }
  .wrap { padding: 0 20px; }
  .bleed { padding-inline: 20px; }
  .hero { padding-top: 52px; }
  .hero-home { padding: 64px 0 56px; }
  .sect { padding-block: 64px; }
  .axes-grid { grid-template-columns: 1fr; }
  .axes { grid-template-columns: 1fr 1fr; }
  .type-grid { grid-template-columns: 1fr; }
  .gauges { grid-template-columns: 1fr; }
  .profile-grid { grid-template-columns: 1fr; }
  .rep-gauges { grid-template-columns: 1fr; gap: 14px; }
  .quad { grid-template-columns: repeat(2, 38px); grid-auto-rows: 30px; margin-left: 12px; }
  .rep-check ul { columns: 1; }
  .rep-compat { display: block; overflow-x: auto; }
  .hero-home .hero-cta { gap: 16px; }
  .hero-home .meta-line { text-align: center; }
  .btn-xl { display: block; width: 100%; text-align: center; }
  .likert { flex-wrap: wrap; }
  .qs-focus { min-height: calc(100svh - 150px); }
  .scale-mid { font-size: 15px; top: calc(100% + 10px); }
  .scale-end { font-size: 15.5px; }
  .scale-end.de { order: 2; flex: 1 0 30%; text-align: left; margin: 38px 0 0; }
  .scale-end.ag { order: 3; flex: 1 0 30%; text-align: right; margin: 38px 0 0; }
  .q-text { min-height: 4em; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  html { scroll-behavior: auto; }
}

/* ---------- v0.16.0: header nav, footer row, language switcher, rarity, contact ---------- */
a.brand { text-decoration: none; color: inherit; }
/* v0.17.0: nav lives in the footer — quieter exposure */
.site-nav { display: flex; gap: 26px; align-items: center; justify-content: center; flex-wrap: wrap; margin-bottom: 18px; }
.site-nav a { color: var(--body); text-decoration: none; font-size: 15px; font-weight: 500; }
.site-nav a:hover { color: var(--accent); }
.foot-row { display: flex; justify-content: center; align-items: center; gap: 22px; margin-top: 14px; flex-wrap: wrap; }
.lang-slot { display: inline-flex; align-items: center; gap: 8px; }
.lang-label { font-size: 14px; color: var(--muted); }
.lang-select { font: inherit; font-size: 14px; color: var(--body); background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; }
.cert .rarity { margin-top: 14px; font-size: 15.5px; color: var(--body); }
.cert .rarity:empty { display: none; }
.cert .rarity b { color: var(--accent); }
.ct-msg { min-height: 150px; resize: vertical; font: inherit; }
.ct-hp { position: absolute; left: -9999px; top: -9999px; height: 0; overflow: hidden; }
@media (max-width: 720px) { .site-nav { gap: 16px; } .site-nav a { font-size: 14.5px; } }
