/* =============================================================================
   DONEVIA Auto Refi Launchpad — aubergine / hot pink / Manrope
   ========================================================================== */
@font-face { font-family: Manrope; src: url("../fonts/manrope-latin-400-normal.woff2") format("woff2"); font-style: normal; font-weight: 400; font-display: swap; }
@font-face { font-family: Manrope; src: url("../fonts/manrope-latin-500-normal.woff2") format("woff2"); font-style: normal; font-weight: 500; font-display: swap; }
@font-face { font-family: Manrope; src: url("../fonts/manrope-latin-600-normal.woff2") format("woff2"); font-style: normal; font-weight: 600; font-display: swap; }
@font-face { font-family: Manrope; src: url("../fonts/manrope-latin-700-normal.woff2") format("woff2"); font-style: normal; font-weight: 700; font-display: swap; }
@font-face { font-family: Manrope; src: url("../fonts/manrope-latin-800-normal.woff2") format("woff2"); font-style: normal; font-weight: 800; font-display: swap; }
:root {
  color-scheme: dark;
  --ink: #241a25;
  --ink-2: #302532;
  --ink-3: #3b2d3b;
  --ink-line: #514052;
  --pink: #FF2DAF;
  --pink-ink: #ff91c5;
  --pink-soft: #482c42;
  --pink-line: #87506e;
  --bg: #241a25;
  --card: #302532;
  --line: #493849;
  --line-2: #614c60;
  --text: #f8f0f5;
  --text-2: #d0c1ce;
  --muted: #c3b2c1;
  --on-dark: #f8f0f5;
  --on-dark-2: #c9bac8;
  --on-dark-3: #a18f9f;
  --grey-mark: #b4a2b2;
  --grey-mark-dark: #695869;

  /* status — fixed, always paired with icon + label */
  --good: #77d5a0;   --good-tx: #b1edc8;   --good-bg: #244435;
  --warning: #f0c36b; --warning-tx: #ffe1a2; --warning-bg: #514027;
  --serious: #f19a78; --serious-tx: #ffd0ba; --serious-bg: #54372f;
  --critical: #f1838a; --critical-tx: #ffc3c6; --critical-bg: #512e36;

  --radius: 20px;
  --radius-sm: 12px;
  --shadow: 0 8px 24px rgba(12, 5, 14, .16);
  --shadow-lg: 0 24px 60px rgba(12, 5, 14, .28);
  --font: 'Manrope', sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font-family: var(--font); font-size: 15px; line-height: 1.55;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
body.dark-page { background: var(--ink); }
img, svg { display: block; }
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--pink-ink); }
h1, h2, h3, h4 { margin: 0; letter-spacing: -0.02em; line-height: 1.12; text-wrap: balance; }
p { margin: 0; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--pink); outline-offset: 2px; border-radius: 6px; }

/* ---------- Top bar ---------- */
.topbar {
  position: sticky; top: 0; z-index: 40;
  background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
}
.topbar.dark { background: rgba(11, 11, 15, .82); border-bottom-color: rgba(255, 255, 255, .06); }
.topbar-inner { max-width: 1240px; margin: 0 auto; padding: 12px 24px; display: flex; align-items: center; gap: 20px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex-shrink: 0; }
.brand svg { height: 18px; width: auto; }
.brand .lab {
  font-size: 10px; font-weight: 800; letter-spacing: .18em; padding: 3px 7px; border-radius: 6px;
  background: var(--ink); color: #fff;
}
.topbar.dark .brand .lab { background: var(--pink); color: var(--ink); }
.brand .wm-fill { fill: var(--ink); }
.topbar.dark .brand .wm-fill { fill: var(--pink); }
.product-name { font-size: 13px; font-weight: 700; color: var(--muted); padding-left: 16px; border-left: 1px solid var(--line); white-space: nowrap; }
.topbar.dark .product-name { color: var(--on-dark-2); border-left-color: var(--ink-line); }
.stepper { display: flex; gap: 2px; margin-left: auto; overflow-x: auto; scrollbar-width: none; }
.stepper::-webkit-scrollbar { display: none; }
.stepper button {
  border: 0; background: none; padding: 7px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700;
  color: var(--muted); cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 6px;
}
.stepper button .n { width: 18px; height: 18px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 10.5px; background: var(--line); color: var(--text-2); }
.stepper button.done .n { background: var(--ink); color: #fff; }
.stepper button.active { background: var(--ink); color: #fff; }
.stepper button.active .n { background: var(--pink); color: var(--ink); }
.stepper button:disabled { opacity: .45; cursor: default; }
.stepper button:not(:disabled):not(.active):hover { background: var(--line); color: var(--text); }
.topbar.dark .stepper button { color: var(--on-dark-3); }
.topbar.dark .stepper button .n { background: var(--ink-3); color: var(--on-dark-2); }
.topbar.dark .stepper button.done .n { background: var(--on-dark); color: var(--ink); }
.topbar.dark .stepper button.active { background: var(--on-dark); color: var(--ink); }
.topbar.dark .stepper button:not(:disabled):not(.active):hover { background: var(--ink-3); color: var(--on-dark); }
.top-actions { display: flex; gap: 8px; align-items: center; }
.mini-progress { display: none; font-size: 12px; font-weight: 700; color: var(--muted); margin-left: auto; white-space: nowrap; }
.topbar.dark .mini-progress { color: var(--on-dark-2); }
.progress-line { height: 2px; background: transparent; }
.progress-line > i { display: block; height: 100%; width: 0; background: var(--pink); transition: width .5s ease; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: 999px; padding: 13px 24px; font-weight: 700; font-size: 15px; letter-spacing: .005em;
  cursor: pointer; transition: transform .15s, background .15s, color .15s, box-shadow .15s; text-decoration: none; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: var(--pink); color: var(--ink); }
.btn-primary:disabled { opacity: .35; cursor: not-allowed; background: var(--ink); color: #fff; }
.btn-pink { background: var(--pink); color: var(--ink); box-shadow: 0 10px 40px rgba(255, 45, 175, .35); }
.btn-pink:hover { background: #fff; color: var(--ink); }
.btn-ghost { background: transparent; color: var(--text); border: 1.5px solid var(--line-2); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost.on-dark { color: var(--on-dark); border-color: var(--ink-line); }
.btn-ghost.on-dark:hover { border-color: var(--on-dark); }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-lg { padding: 18px 34px; font-size: 17px; }
.btn-link { background: none; border: 0; padding: 0; color: var(--pink-ink); font-weight: 700; cursor: pointer; font-size: inherit; }
.btn-link.on-dark { color: var(--pink); }
.arrow { transition: transform .15s; }
.btn:hover .arrow { transform: translateX(3px); }

/* ---------- Layout ---------- */
.screen { max-width: 1240px; margin: 0 auto; padding: 40px 24px 96px; animation: rise .45s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.eyebrow { font-size: 11.5px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--pink-ink); }
.on-dark .eyebrow, .eyebrow.on-dark { color: var(--pink); }
.screen-head { max-width: 760px; margin-bottom: 32px; }
.screen-head h1 { font-size: clamp(30px, 4vw, 44px); font-weight: 800; margin: 10px 0 12px; }
.screen-head p { font-size: 17px; color: var(--text-2); }
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.card + .card { margin-top: 16px; }
.card-title { font-size: 19px; font-weight: 800; letter-spacing: -0.015em; }
.card-sub { color: var(--muted); font-size: 14px; margin-top: 4px; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nav-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 32px; flex-wrap: wrap; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.split { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 24px; align-items: start; }
.sticky { position: sticky; top: 84px; }
.hr { height: 1px; background: var(--line); margin: 20px 0; border: 0; }

/* ---------- Landing ---------- */
.landing { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.landing::before {
  content: ''; position: absolute; width: 1100px; height: 1100px; right: -380px; bottom: -560px; pointer-events: none;
  background: radial-gradient(circle, rgba(255, 45, 175, .26) 0%, rgba(255, 45, 175, .07) 45%, rgba(255, 45, 175, 0) 70%);
}
.landing::after { content: ''; position: absolute; left: 0; top: 0; height: 3px; width: 34%; background: var(--pink); }
.landing-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 88px 24px 72px; }
.landing h1 { font-size: clamp(38px, 6vw, 76px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.02; max-width: 15ch; margin: 18px 0 24px; }
.landing h1 em { font-style: normal; color: var(--pink); }
.landing .lede { font-size: clamp(17px, 2vw, 21px); color: var(--on-dark-2); max-width: 640px; line-height: 1.5; }
.landing .lede b { color: var(--on-dark); font-weight: 700; }
.cta-row { display: flex; align-items: center; gap: 20px; margin-top: 36px; flex-wrap: wrap; }
.free-tag { font-size: 14px; color: var(--on-dark-2); font-weight: 600; }
.free-tag b { color: var(--on-dark); }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; }
.trust span { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--on-dark); }
.trust svg { width: 16px; height: 16px; color: var(--pink); }
.leave-with { margin-top: 80px; }
.leave-with h2 { font-size: 13px; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-3); font-weight: 800; margin-bottom: 18px; }
.lw-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 12px; }
.lw { background: rgba(255, 255, 255, .03); border: 1px solid var(--ink-line); border-radius: 16px; padding: 20px; }
.lw .num { font-size: 12px; font-weight: 800; color: var(--pink); letter-spacing: .1em; }
.lw h3 { font-size: 16px; font-weight: 800; margin: 10px 0 6px; letter-spacing: -0.01em; }
.lw p { font-size: 13.5px; color: var(--on-dark-2); line-height: 1.5; }
.not-asked { margin-top: 40px; display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 14px; border: 1px dashed var(--ink-line); max-width: 860px; }
.not-asked svg { width: 20px; height: 20px; color: var(--pink); flex-shrink: 0; margin-top: 2px; }
.not-asked p { font-size: 14px; color: var(--on-dark-2); }
.not-asked b { color: var(--on-dark); }
.landing-foot { position: relative; border-top: 1px solid var(--ink-line); }
.landing-foot .inner { max-width: 1240px; margin: 0 auto; padding: 22px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 13px; color: var(--on-dark-3); }
.flow-strip { display: flex; align-items: center; gap: 10px; margin-top: 56px; flex-wrap: wrap; }
.flow-strip .node { padding: 9px 14px; border-radius: 999px; border: 1px solid var(--ink-line); font-size: 12.5px; font-weight: 700; color: var(--on-dark-2); background: rgba(255,255,255,.02); }
.flow-strip .node.hot { border-color: var(--pink); color: var(--on-dark); background: rgba(255, 45, 175, .1); }
.flow-strip .sep { color: var(--on-dark-3); font-size: 14px; }

/* ---------- Forms ---------- */
.form-section { scroll-margin-top: 90px; }
.form-section .sec-head { display: flex; align-items: baseline; gap: 12px; margin-bottom: 20px; }
.sec-num { font-size: 12px; font-weight: 800; color: var(--pink-ink); letter-spacing: .1em; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 20px; }
.fields .full { grid-column: 1 / -1; }
.field label, .field .label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 7px; }
.field .help { font-size: 12.5px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.field .err { font-size: 12.5px; color: var(--critical-tx); margin-top: 6px; font-weight: 600; }
.input, select.input {
  width: 100%; height: 46px; border: 1.5px solid var(--line-2); border-radius: var(--radius-sm); background: #fff;
  padding: 0 14px; font-size: 15px; font-weight: 600; transition: border-color .15s, box-shadow .15s; appearance: none; -webkit-appearance: none;
}
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%236E6E79' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 36px; }
.input:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 4px rgba(255, 45, 175, .14); }
.input.invalid { border-color: var(--critical); }
.input:disabled { background: var(--bg); color: var(--muted); }
.affix { position: relative; }
.affix .pre, .affix .suf { position: absolute; top: 50%; transform: translateY(-50%); color: var(--muted); font-weight: 700; font-size: 14px; pointer-events: none; }
.affix .pre { left: 14px; }
.affix .suf { right: 14px; }
.affix .pre + .input { padding-left: 28px; }
.affix .input.has-suf { padding-right: 46px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  border: 1.5px solid var(--line-2); background: #fff; border-radius: 999px; padding: 9px 15px; font-size: 14px; font-weight: 700;
  cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: all .15s; color: var(--text-2);
}
.chip:hover { border-color: var(--ink); color: var(--text); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip svg { width: 16px; height: 16px; }
.chip .tick { display: none; }
.chip[aria-pressed="true"] .tick { display: inline; color: var(--pink); }
.seg { display: inline-flex; background: var(--bg); border: 1px solid var(--line); border-radius: 999px; padding: 3px; gap: 2px; flex-wrap: wrap; }
.seg button { border: 0; background: none; padding: 8px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 700; color: var(--muted); cursor: pointer; }
.seg button[aria-pressed="true"] { background: #fff; color: var(--text); box-shadow: 0 1px 3px rgba(11, 11, 15, .12); }
.days { display: flex; gap: 6px; flex-wrap: wrap; }
.days .chip { padding: 9px 0; width: 48px; justify-content: center; }
.hours-row { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 10px; }

/* benchmark toggle field */
.assume { border: 1px solid var(--line); border-radius: 16px; padding: 18px; background: #fff; }
.assume + .assume { margin-top: 12px; }
.assume-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.assume-title { font-weight: 800; font-size: 15px; }
.assume-row { display: grid; grid-template-columns: 200px 1fr; gap: 16px; align-items: center; margin-top: 14px; }
.bench-val { font-size: 13.5px; color: var(--text-2); }
.bench-val b { font-weight: 800; color: var(--text); }
.switch { display: inline-flex; align-items: center; gap: 10px; cursor: pointer; font-size: 13px; font-weight: 700; color: var(--text-2); user-select: none; }
.switch input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch .track { width: 38px; height: 22px; border-radius: 999px; background: var(--line-2); position: relative; transition: background .15s; flex-shrink: 0; }
.switch .track::after { content: ''; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: transform .18s; box-shadow: 0 1px 2px rgba(0,0,0,.2); }
.switch input:checked + .track { background: var(--ink); }
.switch input:checked + .track::after { transform: translateX(16px); background: var(--pink); }
.switch input:focus-visible + .track { outline: 2px solid var(--pink); outline-offset: 2px; }

/* basis badge + source panel */
.basis { display: inline-flex; align-items: center; gap: 5px; font-size: 10.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.basis.published { background: #E6F4EA; color: #155D27; }
.basis.derived { background: #E8EEFF; color: #22409A; }
.basis.working { background: #F1F0F5; color: #4A4458; }
.on-dark .basis.working { background: #26262F; color: #C9C6D6; }
.on-dark .basis.derived { background: #1C2547; color: #B9C8FF; }
.on-dark .basis.published { background: #173322; color: #A6E3B6; }
.source-btn { background: none; border: 0; padding: 0; color: var(--muted); font-size: 12.5px; font-weight: 700; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.source-btn:hover { color: var(--text); }
.source-panel { margin-top: 12px; background: var(--bg); border-radius: 12px; padding: 14px 16px; font-size: 13px; color: var(--text-2); display: grid; gap: 8px; }
.source-panel dl { display: grid; grid-template-columns: 110px 1fr; gap: 6px 12px; margin: 0; }
.source-panel dt { font-weight: 800; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .08em; padding-top: 2px; }
.source-panel dd { margin: 0; }
.ctx-list { margin: 4px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.ctx-list li { padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 10px; }
.ctx-list .fig { font-weight: 800; color: var(--text); }
.ctx-list .src { font-size: 12px; color: var(--muted); margin-top: 3px; }
.on-dark .source-panel { background: rgba(255,255,255,.04); color: var(--on-dark-2); }
.on-dark .ctx-list li { background: rgba(255,255,255,.03); border-color: var(--ink-line); }
.on-dark .ctx-list .fig { color: var(--on-dark); }

/* live math sidebar */
.live { background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow-lg); }
.live .eyebrow { color: var(--pink); }
.live h3 { font-size: 17px; font-weight: 800; margin: 8px 0 16px; }
.live-eq { display: grid; gap: 10px; }
.live-eq .row { display: flex; justify-content: space-between; gap: 10px; font-size: 14px; color: var(--on-dark-2); padding-bottom: 10px; border-bottom: 1px solid var(--ink-line); }
.live-eq .row b { color: var(--on-dark); font-weight: 800; font-variant-numeric: tabular-nums; }
.live-eq .row.total { border-bottom: 0; padding-bottom: 0; font-size: 15px; }
.live-eq .row.total b { color: var(--pink); font-size: 20px; }
.live-meter { margin-top: 18px; }
.live-meter .bar { height: 8px; border-radius: 999px; background: var(--ink-3); overflow: hidden; }
.live-meter .bar i { display: block; height: 100%; background: var(--pink); border-radius: 999px; transition: width .4s ease; }
.live-meter .cap { display: flex; justify-content: space-between; font-size: 12px; color: var(--on-dark-3); margin-top: 8px; font-weight: 600; }
.live .note { font-size: 12px; color: var(--on-dark-3); margin-top: 16px; line-height: 1.5; }
.privacy-note { display: flex; gap: 10px; align-items: flex-start; margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; color: var(--text-2); }
.privacy-note svg { width: 16px; height: 16px; color: var(--pink-ink); flex-shrink: 0; margin-top: 1px; }

/* ---------- Status pills ---------- */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px 5px 8px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; }
.pill svg { width: 15px; height: 15px; flex-shrink: 0; }
.pill.good { background: var(--good-bg); color: var(--good-tx); }
.pill.good svg { color: var(--good); }
.pill.warning { background: var(--warning-bg); color: var(--warning-tx); }
.pill.warning svg { color: #D99300; }
.pill.serious { background: var(--serious-bg); color: var(--serious-tx); }
.pill.serious svg { color: var(--serious); }
.pill.critical { background: var(--critical-bg); color: var(--critical-tx); }
.pill.critical svg { color: var(--critical); }
.pill.lg { font-size: 14px; padding: 7px 14px 7px 10px; }

/* ---------- Reality check ---------- */
.stat-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.stat .k { font-size: 12px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; }
.stat .v { font-size: 34px; font-weight: 800; letter-spacing: -0.03em; margin-top: 8px; font-variant-numeric: tabular-nums; line-height: 1.05; }
.stat .s { font-size: 13px; color: var(--text-2); margin-top: 6px; }
.stat.dark { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.stat.dark .k { color: var(--on-dark-3); }
.stat.dark .s { color: var(--on-dark-2); }
.stat.dark .v { color: var(--pink); }
.equation { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 10px; font-size: 15px; color: var(--text-2); padding: 16px 20px; background: #fff; border: 1px solid var(--line); border-radius: 14px; margin: 16px 0; }
.equation b { color: var(--text); font-weight: 800; font-variant-numeric: tabular-nums; }
.equation .op { color: var(--muted); font-weight: 700; }
.equation .res { color: var(--pink-ink); }
.assessment { border-radius: var(--radius); padding: 28px; border: 1px solid var(--line); background: #fff; position: relative; overflow: hidden; }
.assessment::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; }
.assessment.good::before { background: var(--good); }
.assessment.warning::before { background: var(--warning); }
.assessment.serious::before { background: var(--serious); }
.assessment.critical::before { background: var(--critical); }
.assessment h2 { font-size: 24px; font-weight: 800; margin: 12px 0 10px; }
.assessment p { color: var(--text-2); }
.consider { margin-top: 18px; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.consider .opt { border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; background: var(--bg); }
.consider .opt .t { font-weight: 800; font-size: 14px; }
.consider .opt .d { font-size: 13px; color: var(--text-2); margin-top: 4px; }
.consider .opt .d b { color: var(--text); }

/* sliders */
.slider-group { display: grid; gap: 18px; }
.slider .top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.slider .top label { font-size: 13.5px; font-weight: 700; }
.slider .top output { font-weight: 800; font-variant-numeric: tabular-nums; font-size: 15px; }
.slider .bench { font-size: 11.5px; color: var(--muted); margin-top: 2px; }
input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 26px; background: transparent; cursor: pointer; margin: 4px 0 0; }
input[type=range]::-webkit-slider-runnable-track { height: 6px; border-radius: 999px; background: linear-gradient(to right, var(--ink) var(--p, 50%), var(--line) var(--p, 50%)); }
input[type=range]::-moz-range-track { height: 6px; border-radius: 999px; background: var(--line); }
input[type=range]::-moz-range-progress { height: 6px; border-radius: 999px; background: var(--ink); }
input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 20px; height: 20px; border-radius: 50%; background: #fff; border: 3px solid var(--pink); margin-top: -7px; box-shadow: 0 1px 4px rgba(0,0,0,.2); }
input[type=range]::-moz-range-thumb { width: 14px; height: 14px; border-radius: 50%; background: #fff; border: 3px solid var(--pink); }
.on-dark input[type=range]::-webkit-slider-runnable-track { background: linear-gradient(to right, var(--pink) var(--p, 50%), var(--ink-3) var(--p, 50%)); }
.on-dark input[type=range]::-moz-range-track { background: var(--ink-3); }
.on-dark input[type=range]::-moz-range-progress { background: var(--pink); }
.on-dark input[type=range]::-webkit-slider-thumb { background: var(--ink); }

/* ---------- Charts ---------- */
.chart { position: relative; width: 100%; }
.chart svg { width: 100%; height: auto; overflow: visible; }
.chart text { font-family: var(--font); }
.chart .axis-label { fill: var(--muted); font-size: 11px; font-weight: 600; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .baseline { stroke: var(--line-2); stroke-width: 1; }
.chart .row-label { fill: var(--text); font-size: 13px; font-weight: 700; }
.chart .row-sub { fill: var(--muted); font-size: 11.5px; font-weight: 600; }
.chart .val-label { fill: var(--text); font-size: 12.5px; font-weight: 800; }
.chart .val-sub { fill: var(--muted); font-size: 12px; font-weight: 600; }
.chart .ref-line { stroke: var(--ink); stroke-width: 1.5; stroke-dasharray: 4 4; }
.chart .ref-label { fill: var(--ink); font-size: 11.5px; font-weight: 800; }
.chart .hit { fill: transparent; cursor: default; }
.chart .hit:hover + .hl, .chart g.row:hover .bar-mark { opacity: .85; }
.on-dark .chart .axis-label, .on-dark .chart .row-sub, .on-dark .chart .val-sub { fill: var(--on-dark-3); }
.on-dark .chart .row-label, .on-dark .chart .val-label { fill: var(--on-dark); }
.on-dark .chart .grid { stroke: var(--ink-line); }
.on-dark .chart .baseline { stroke: var(--ink-line); }
.on-dark .chart .ref-line { stroke: var(--on-dark-2); }
.on-dark .chart .ref-label { fill: var(--on-dark-2); }
.tooltip {
  position: fixed; z-index: 100; pointer-events: none; background: var(--ink); color: #fff; padding: 10px 12px; border-radius: 10px;
  font-size: 12.5px; line-height: 1.45; box-shadow: var(--shadow-lg); max-width: 260px; opacity: 0; transition: opacity .1s; border: 1px solid var(--ink-line);
}
.tooltip.show { opacity: 1; }
.tooltip b { font-weight: 800; }
.tooltip .t-title { font-weight: 800; margin-bottom: 4px; }
.tooltip .t-row { display: flex; justify-content: space-between; gap: 14px; color: #C9C9D2; }
.tooltip .t-row b { color: #fff; }
.legend { display: flex; flex-wrap: wrap; gap: 8px 18px; font-size: 12.5px; font-weight: 700; color: var(--text-2); margin-top: 10px; }
.legend span { display: inline-flex; align-items: center; gap: 7px; }
.legend i { width: 12px; height: 12px; border-radius: 3px; display: inline-block; }
.legend i.line { height: 2px; border-radius: 0; width: 16px; }
.legend i.dash { height: 0; border-top: 2px dashed var(--ink); width: 16px; border-radius: 0; background: none !important; }
.on-dark .legend { color: var(--on-dark-2); }
.table-toggle { margin-top: 10px; }
.data-table { width: 100%; border-collapse: collapse; font-size: 13px; margin-top: 10px; }
.data-table th, .data-table td { text-align: left; padding: 8px 10px; border-bottom: 1px solid var(--line); }
.data-table th { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 800; }
.data-table td.num, .data-table th.num { text-align: right; font-variant-numeric: tabular-nums; }
.on-dark .data-table th, .on-dark .data-table td { border-bottom-color: var(--ink-line); }

/* ---------- Readiness (conversational) ---------- */
.convo { max-width: 760px; margin: 0 auto; }
.convo-progress { display: flex; align-items: center; gap: 14px; margin-bottom: 28px; }
.convo-progress .bar { flex: 1; height: 6px; background: var(--line); border-radius: 999px; overflow: hidden; }
.convo-progress .bar i { display: block; height: 100%; background: var(--pink); transition: width .4s ease; }
.convo-progress .txt { font-size: 13px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.thread { display: grid; gap: 14px; }
.msg { display: flex; gap: 12px; align-items: flex-start; animation: rise .35s ease both; }
.msg .avatar { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); display: grid; place-items: center; flex-shrink: 0; }
.msg .avatar svg { width: 16px; height: 16px; }
.msg .bubble { background: #fff; border: 1px solid var(--line); border-radius: 4px 18px 18px 18px; padding: 14px 18px; max-width: 600px; font-size: 15px; }
.msg.bot .bubble.q { font-size: 18px; font-weight: 700; letter-spacing: -0.01em; line-height: 1.35; padding: 18px 22px; }
.msg.bot .bubble .topic { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-ink); display: block; margin-bottom: 6px; }
.msg.bot .bubble .why { display: block; margin-top: 10px; font-size: 12px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.msg.user { justify-content: flex-end; }
.msg.user .bubble { background: var(--ink); color: #fff; border-color: var(--ink); border-radius: 18px 4px 18px 18px; font-weight: 700; display: flex; align-items: center; gap: 12px; }
.msg.user .edit { background: none; border: 0; color: var(--pink); font-size: 12px; font-weight: 800; cursor: pointer; padding: 0; }
.msg.reaction .bubble { background: var(--pink-soft); border-color: var(--pink-line); font-size: 14px; color: var(--text-2); }
.answer-zone { margin: 6px 0 0 46px; animation: rise .35s ease both; }
.options { display: grid; gap: 8px; }
.option {
  text-align: left; width: 100%; background: #fff; border: 1.5px solid var(--line-2); border-radius: 14px; padding: 14px 16px; cursor: pointer;
  font-size: 15px; font-weight: 700; display: flex; align-items: center; gap: 12px; transition: all .15s;
}
.option:hover { border-color: var(--ink); background: var(--pink-soft); }
.option .key { width: 26px; height: 26px; border-radius: 8px; background: var(--bg); border: 1px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 800; color: var(--muted); flex-shrink: 0; }
.option.selected { border-color: var(--ink); background: var(--ink); color: #fff; }
.option.selected .key { background: var(--pink); color: var(--ink); border-color: var(--pink); }
.num-answer { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.stepper-input { display: inline-flex; align-items: center; border: 1.5px solid var(--line-2); border-radius: 14px; background: #fff; overflow: hidden; }
.stepper-input button { width: 46px; height: 50px; border: 0; background: none; font-size: 20px; font-weight: 700; cursor: pointer; color: var(--text-2); }
.stepper-input button:hover { background: var(--bg); }
.stepper-input input { width: 64px; height: 50px; border: 0; text-align: center; font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
.stepper-input input:focus { outline: none; }
.num-help { font-size: 13px; color: var(--muted); margin-top: 10px; max-width: 560px; }
.convo-done { text-align: center; padding: 28px; }

/* ---------- Report ---------- */
.report-head { background: var(--ink); color: var(--on-dark); border-radius: 24px; padding: 36px; position: relative; overflow: hidden; }
.report-head::after { content: ''; position: absolute; width: 600px; height: 600px; right: -200px; top: -300px; background: radial-gradient(circle, rgba(255,45,175,.22), rgba(255,45,175,0) 65%); pointer-events: none; }
.report-head .meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 12.5px; color: var(--on-dark-3); font-weight: 600; position: relative; }
.report-head .meta b { color: var(--on-dark-2); }
.report-head h1 { font-size: clamp(26px, 3.6vw, 40px); font-weight: 800; margin: 16px 0 0; max-width: 24ch; position: relative; }
.report-head h1 .l2 { display: block; color: var(--pink); }
.tally { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 24px; position: relative; }
.tally .t { padding: 10px 14px; border-radius: 12px; background: rgba(255,255,255,.05); border: 1px solid var(--ink-line); font-size: 13px; color: var(--on-dark-2); font-weight: 600; }
.tally .t b { font-size: 20px; color: var(--on-dark); font-weight: 800; margin-right: 6px; }
.tally .t.mat b { color: var(--pink); }
.area-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin: 24px 0; }
.area-tile { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: 12px; font-size: 13.5px; font-weight: 700; cursor: pointer; text-align: left; }
.area-tile:hover { border-color: var(--ink); }
.finding { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; scroll-margin-top: 90px; }
.finding + .finding { margin-top: 10px; }
.finding > button { width: 100%; text-align: left; background: none; border: 0; padding: 20px 22px; cursor: pointer; display: grid; grid-template-columns: 180px 1fr auto; gap: 16px; align-items: center; }
.finding .area { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.finding .ftitle { font-size: 16px; font-weight: 800; letter-spacing: -0.01em; }
.finding .sev { font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin-top: 3px; }
.finding .sev.material { color: var(--pink-ink); }
.finding .chev { width: 20px; height: 20px; color: var(--muted); transition: transform .2s; }
.finding.open .chev { transform: rotate(180deg); }
.finding .body { display: none; padding: 0 22px 22px; }
.finding.open .body { display: block; }
.finding .body .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; border-top: 1px solid var(--line); padding-top: 18px; }
.finding .body h4 { font-size: 11px; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); font-weight: 800; margin-bottom: 8px; }
.finding .body p { font-size: 14.5px; color: var(--text-2); }
.finding .body .rec { background: var(--bg); border-radius: 12px; padding: 14px 16px; }
.finding .body .rec p { color: var(--text); font-weight: 600; }
.finding .playbook-link { margin-top: 10px; font-size: 13px; }
.capacity-box { margin-top: 18px; border-top: 1px solid var(--line); padding-top: 18px; }
.capacity-box .ctl { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 8px; }
.value-note { margin-top: 24px; display: flex; gap: 14px; padding: 18px 20px; border-radius: 16px; background: #fff; border: 1px dashed var(--line-2); font-size: 14px; color: var(--text-2); align-items: flex-start; }
.value-note svg { width: 20px; height: 20px; color: var(--pink-ink); flex-shrink: 0; margin-top: 1px; }

/* ---------- Playbook ---------- */
.flow { position: relative; }
.flow-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; box-shadow: var(--shadow);
  display: grid; grid-template-columns: 44px 1fr; gap: 14px; animation: rise .4s ease both;
}
.flow-card .ico { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg); color: var(--ink); }
.flow-card .ico svg { width: 20px; height: 20px; }
.flow-card.milestone { background: var(--ink); border-color: var(--ink); color: var(--on-dark); }
.flow-card.milestone .ico { background: var(--pink); color: var(--ink); }
.flow-card.milestone .kicker { color: var(--pink); }
.flow-card.milestone .actions li { color: var(--on-dark-2); }
.flow-card.milestone .actions li::before { background: var(--pink); }
.flow-card.milestone .owner { background: var(--ink-3); color: var(--on-dark-2); }
.flow-card .head { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; flex-wrap: wrap; }
.flow-card .kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--pink-ink); }
.flow-card h3 { font-size: 17px; font-weight: 800; margin-top: 4px; letter-spacing: -0.01em; }
.owner { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 999px; background: var(--bg); color: var(--text-2); white-space: nowrap; letter-spacing: .02em; }
.actions { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 6px; }
.actions li { font-size: 14px; color: var(--text-2); padding-left: 16px; position: relative; line-height: 1.45; }
.actions li::before { content: ''; position: absolute; left: 2px; top: 8px; width: 6px; height: 6px; border-radius: 2px; background: var(--ink); }
.touch-list { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.touch { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; padding: 6px 10px; border-radius: 10px; background: var(--bg); border: 1px solid var(--line); color: var(--text); }
.touch svg { width: 14px; height: 14px; color: var(--pink-ink); }
.closes { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 12px; }
.closes span { font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 6px; background: var(--pink-soft); color: var(--pink-ink); border: 1px solid var(--pink-line); }
.flow-card.milestone .closes span { background: rgba(255,45,175,.12); border-color: rgba(255,45,175,.35); color: var(--pink); }
.connector { height: 30px; width: 2px; background: var(--line-2); margin-left: 41px; position: relative; }
.connector::after { content: ''; position: absolute; bottom: -1px; left: -4px; border: 5px solid transparent; border-top: 6px solid var(--line-2); border-bottom: 0; }
.connector.label-c { height: 40px; }
.connector span { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 11.5px; font-weight: 700; color: var(--muted); white-space: nowrap; }
.branch-head { display: flex; align-items: center; gap: 10px; margin: 6px 0 12px 21px; font-size: 12px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.branch-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.branch-grid .flow-card { grid-template-columns: 1fr; }
.branch-grid .flow-card .ico { display: none; }
.flow-card.tone-pink { border-color: var(--pink-line); background: linear-gradient(180deg, #FFF7FB, #fff 60%); }
.flow-card.tone-good { border-color: #CDEBCF; background: linear-gradient(180deg, #F5FBF5, #fff 60%); }
.rail { margin-top: 16px; border: 1.5px dashed var(--line-2); border-radius: 18px; padding: 16px 20px; background: #fff; }
.rail .kicker { font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.settings-card .setting + .setting { margin-top: 18px; }
.settings-card .setting .label { font-size: 13px; font-weight: 800; margin-bottom: 8px; display: block; }
.settings-card .setting .help { font-size: 12px; color: var(--muted); margin-top: 6px; }
.download-card { margin-top: 16px; background: var(--ink); color: var(--on-dark); border-radius: var(--radius); padding: 22px; }
.download-card h3 { font-size: 16px; font-weight: 800; }
.download-card p { font-size: 13px; color: var(--on-dark-2); margin: 6px 0 14px; }
.download-card .btns { display: grid; gap: 8px; }

/* ---------- Execution gap (climax) ---------- */
.climax { background: var(--ink); color: var(--on-dark); position: relative; overflow: hidden; }
.climax::before { content: ''; position: absolute; width: 1200px; height: 1200px; right: -500px; top: 120px; background: radial-gradient(circle, rgba(255,45,175,.18), rgba(255,45,175,0) 62%); pointer-events: none; }
.climax-inner { position: relative; max-width: 1240px; margin: 0 auto; padding: 64px 24px 96px; }
.climax h1 { font-size: clamp(40px, 7vw, 92px); font-weight: 800; letter-spacing: -0.04em; line-height: .98; }
.climax h1 span { display: block; }
.climax h1 .dim { color: #63636E; }
.climax h1 .hot { color: var(--pink); }
.climax .sub { font-size: 17px; color: var(--on-dark-2); max-width: 640px; margin-top: 22px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 48px; }
.side { border-radius: 24px; padding: 28px; border: 1px solid var(--ink-line); background: var(--ink-2); position: relative; }
.side.with { border-color: rgba(255,45,175,.55); background: linear-gradient(180deg, rgba(255,45,175,.10), rgba(255,45,175,.02) 45%, var(--ink-2)); box-shadow: 0 0 0 1px rgba(255,45,175,.2), 0 30px 80px rgba(255,45,175,.12); }
.side .tag { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--on-dark-3); }
.side.with .tag { color: var(--pink); }
.side .stage { padding: 14px 0; font-size: 15px; color: var(--on-dark-2); }
.side .stage b { color: var(--on-dark); font-size: 22px; font-weight: 800; display: block; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.side .down { width: 2px; height: 18px; background: var(--ink-line); margin-left: 4px; }
.side.with .down { background: rgba(255,45,175,.5); }
.side .proc-title { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3); margin: 14px 0 10px; }
.proc { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.proc li { display: flex; gap: 10px; font-size: 14px; color: var(--on-dark-2); align-items: flex-start; line-height: 1.4; }
.proc li svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 1px; color: var(--on-dark-3); }
.side.with .proc li { color: var(--on-dark); }
.side.with .proc li svg { color: var(--pink); }
.proc li.gap svg { color: var(--serious); }
.outcome { margin-top: 18px; padding-top: 18px; border-top: 1px solid var(--ink-line); display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.outcome .k { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--on-dark-3); }
.outcome .v { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.03em; margin-top: 4px; font-variant-numeric: tabular-nums; line-height: 1.05; }
.side.with .outcome .v { color: var(--pink); }
.opportunity { margin-top: 20px; border-radius: 24px; padding: 32px; background: var(--on-dark); color: var(--ink); display: grid; grid-template-columns: 1.1fr 1fr; gap: 24px; align-items: center; }
.opportunity .tag { font-size: 12px; font-weight: 800; letter-spacing: .16em; text-transform: uppercase; color: var(--pink-ink); }
.opportunity .big { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; margin-top: 8px; font-variant-numeric: tabular-nums; }
.opportunity .big2 { font-size: clamp(22px, 3vw, 32px); font-weight: 800; letter-spacing: -0.02em; margin-top: 8px; color: var(--text-2); font-variant-numeric: tabular-nums; }
.opportunity .same { display: grid; gap: 6px; font-size: clamp(18px, 2.2vw, 24px); font-weight: 800; letter-spacing: -0.02em; }
.opportunity .same span:last-child { color: var(--pink-ink); }
.opportunity .fine { font-size: 12.5px; color: var(--muted); margin-top: 14px; font-weight: 500; line-height: 1.5; }
.range-viz { margin-top: 20px; background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 20px; padding: 22px 24px; }
.expand-btn { margin: 28px auto 0; display: flex; align-items: center; gap: 8px; background: none; border: 1px solid var(--ink-line); color: var(--on-dark); border-radius: 999px; padding: 12px 22px; font-weight: 800; font-size: 15px; cursor: pointer; }
.expand-btn:hover { border-color: var(--pink); }
.expand-btn svg { width: 18px; height: 18px; transition: transform .2s; color: var(--pink); }
.expand-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.model { margin-top: 24px; display: none; }
.model.open { display: block; animation: rise .4s ease both; }
.model-card { background: var(--ink-2); border: 1px solid var(--ink-line); border-radius: 20px; padding: 26px; }
.model-card + .model-card { margin-top: 14px; }
.model-card h3 { font-size: 18px; font-weight: 800; }
.model-card .lead { font-size: 14.5px; color: var(--on-dark-2); margin-top: 8px; max-width: 80ch; }
.formula { font-family: var(--mono); font-size: 12.5px; line-height: 1.75; background: var(--ink); border: 1px solid var(--ink-line); border-radius: 12px; padding: 16px 18px; color: var(--on-dark-2); margin-top: 14px; overflow-x: auto; white-space: pre; }
.formula b { color: var(--pink); font-weight: 600; }
.lever-table { width: 100%; border-collapse: separate; border-spacing: 0; margin-top: 16px; font-size: 13.5px; }
.lever-table th { text-align: left; font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-3); font-weight: 800; padding: 8px 10px; border-bottom: 1px solid var(--ink-line); }
.lever-table td { padding: 14px 10px; border-bottom: 1px solid var(--ink-line); vertical-align: top; color: var(--on-dark-2); }
.lever-table td .ln { color: var(--on-dark); font-weight: 800; font-size: 14px; }
.lever-table td .why { font-size: 12px; color: var(--on-dark-3); margin-top: 4px; line-height: 1.45; }
.range-in { display: flex; align-items: center; gap: 6px; }
.range-in input { width: 64px; height: 36px; border-radius: 10px; border: 1px solid var(--ink-line); background: var(--ink); color: var(--on-dark); text-align: right; padding: 0 8px; font-weight: 800; font-variant-numeric: tabular-nums; font-size: 14px; }
.range-in input:focus { outline: none; border-color: var(--pink); }
.range-in span { color: var(--on-dark-3); font-size: 12px; font-weight: 700; }
.range-in.with input { border-color: rgba(255,45,175,.4); }
.overridden { font-size: 10.5px; font-weight: 800; color: var(--pink); text-transform: uppercase; letter-spacing: .08em; margin-top: 4px; }
.param-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin-top: 16px; }
.param { border: 1px solid var(--ink-line); border-radius: 14px; padding: 14px 16px; background: var(--ink); }
.param .top { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; }
.param .nm { font-weight: 800; font-size: 13.5px; color: var(--on-dark); }
.param .ex { font-size: 12.5px; color: var(--on-dark-3); margin-top: 6px; line-height: 1.5; }
.disclaimer { margin-top: 14px; font-size: 12.5px; color: var(--on-dark-3); line-height: 1.6; border-left: 2px solid var(--pink); padding-left: 14px; }
.climax-nav { display: flex; justify-content: space-between; margin-top: 40px; gap: 12px; flex-wrap: wrap; }

/* ---------- Conversion ---------- */
.convert { max-width: 980px; margin: 0 auto; }
.convert h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 800; letter-spacing: -0.03em; line-height: 1.04; }
.convert h1 span { display: block; color: var(--pink-ink); }
.does { margin-top: 36px; display: grid; gap: 0; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); background: #fff; }
.does .row { display: grid; grid-template-columns: 54px 1fr auto; align-items: center; gap: 16px; padding: 18px 24px; border-bottom: 1px solid var(--line); opacity: 0; animation: rise .45s ease forwards; }
.does .row:last-child { border-bottom: 0; background: var(--ink); color: var(--on-dark); }
.does .row .i { width: 40px; height: 40px; border-radius: 12px; background: var(--pink-soft); color: var(--pink-ink); display: grid; place-items: center; }
.does .row:last-child .i { background: var(--pink); color: var(--ink); }
.does .row .i svg { width: 20px; height: 20px; }
.does .row .t { font-size: 18px; font-weight: 800; letter-spacing: -0.015em; }
.does .row .t em { font-style: normal; color: var(--pink-ink); }
.does .row:last-child .t em { color: var(--pink); }
.does .row .g { font-size: 11px; font-weight: 800; color: var(--muted); text-transform: uppercase; letter-spacing: .08em; text-align: right; }
.does .row:last-child .g { color: var(--on-dark-3); }
.convert-cta { margin-top: 28px; display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.kit { margin-top: 48px; }
.kit-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-top: 16px; }
.kit-item { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; background: #fff; border: 1px solid var(--line); border-radius: 14px; }
.kit-item svg { width: 18px; height: 18px; color: var(--pink-ink); flex-shrink: 0; margin-top: 2px; }
.kit-item .t { font-weight: 800; font-size: 14px; }
.kit-item .d { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.kit-actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 16px; }
.philosophy { margin-top: 40px; padding: 24px 28px; border-radius: 20px; background: var(--ink); color: var(--on-dark); display: flex; justify-content: space-between; gap: 20px; align-items: center; flex-wrap: wrap; }
.philosophy p { font-size: 18px; font-weight: 800; letter-spacing: -0.015em; }
.philosophy p span { color: var(--pink); }

/* ---------- Modal ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(11,11,15,.6); backdrop-filter: blur(4px); z-index: 80; display: grid; place-items: center; padding: 16px; animation: fade .2s ease; }
@keyframes fade { from { opacity: 0; } }
.modal { background: #fff; border-radius: 24px; max-width: 560px; width: 100%; padding: 30px; max-height: calc(100vh - 32px); overflow: auto; box-shadow: var(--shadow-lg); animation: rise .3s ease; }
.modal h2 { font-size: 24px; font-weight: 800; }
.modal .sub { color: var(--text-2); margin-top: 6px; font-size: 14.5px; }
.modal .fields { margin-top: 20px; }
.modal textarea.input { height: 90px; padding: 12px 14px; resize: vertical; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13px; color: var(--text-2); cursor: pointer; }
.check input { margin-top: 3px; accent-color: var(--ink); width: 16px; height: 16px; }
.modal .actions-row { display: flex; justify-content: flex-end; gap: 10px; margin-top: 22px; flex-wrap: wrap; }
.success { text-align: center; padding: 10px 0; }
.success .ok { width: 56px; height: 56px; border-radius: 16px; background: var(--pink); color: var(--ink); display: grid; place-items: center; margin: 0 auto 16px; }
.success .ok svg { width: 26px; height: 26px; }

/* ---------- Footer ---------- */
.app-foot { border-top: 1px solid var(--line); }
.app-foot .inner { max-width: 1240px; margin: 0 auto; padding: 20px 24px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); }
.dark-page .app-foot { border-top-color: var(--ink-line); }
.dark-page .app-foot .inner { color: var(--on-dark-3); }

.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%) translateY(20px); background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 700; z-index: 120; opacity: 0; transition: all .25s; pointer-events: none; box-shadow: var(--shadow-lg); }
.toast.show { opacity: 1; transform: translateX(-50%); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .stepper { display: none; }
  .mini-progress { display: block; }
  .lw-grid { grid-template-columns: repeat(2, 1fr); }
  .lw-grid .lw:last-child { grid-column: 1 / -1; }
  .split { grid-template-columns: 1fr; }
  .sticky { position: static; }
  .stat-row { grid-template-columns: repeat(2, 1fr); }
  .kit-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 760px) {
  body { font-size: 14.5px; }
  .topbar-inner { padding: 10px 16px; gap: 12px; }
  .product-name { display: none; }
  .screen { padding: 28px 16px 72px; }
  .landing-inner { padding: 56px 16px 48px; }
  .climax-inner { padding: 44px 16px 72px; }
  .card { padding: 20px; }
  .fields { grid-template-columns: 1fr; }
  .assume-row { grid-template-columns: 1fr; gap: 10px; }
  .grid-2, .grid-3, .consider, .param-grid, .branch-grid, .vs, .opportunity { grid-template-columns: 1fr; }
  .lw-grid, .kit-grid { grid-template-columns: 1fr; }
  .stat-row { grid-template-columns: 1fr 1fr; }
  .stat .v { font-size: 26px; }
  .finding > button { grid-template-columns: 1fr auto; }
  .finding > button .pillcell { grid-column: 1 / -1; order: -1; }
  .finding .body .cols { grid-template-columns: 1fr; }
  .answer-zone { margin-left: 0; }
  .msg .avatar { width: 28px; height: 28px; }
  .report-head { padding: 24px; border-radius: 20px; }
  .lever-table thead { display: none; }
  .lever-table, .lever-table tbody, .lever-table tr, .lever-table td { display: block; width: 100%; }
  .lever-table tr { border-bottom: 1px solid var(--ink-line); padding: 8px 0; }
  .lever-table td { border: 0; padding: 6px 0; }
  .lever-table td[data-h]::before { content: attr(data-h); display: block; font-size: 10.5px; text-transform: uppercase; letter-spacing: .08em; color: var(--on-dark-3); font-weight: 800; margin-bottom: 4px; }
  .does .row { grid-template-columns: 40px 1fr; padding: 14px 16px; }
  .does .row .g { display: none; }
  .does .row .t { font-size: 16px; }
  .opportunity { padding: 22px; }
  .model-card { padding: 18px; }
  .side { padding: 20px; }
  .hours-row { grid-template-columns: 1fr; }
  .hours-row .to { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
@media print {
  .topbar, .nav-row, .app-foot, .expand-btn, .climax-nav { display: none !important; }
}

/* Re-render without replaying entrance animations; settled chat history stays still. */
.no-anim .screen, .no-anim .flow-card, .no-anim .model.open, .msg.static, .no-anim .does .row { animation: none !important; opacity: 1 !important; }

/* DONEVIA dark product skin: aubergine surfaces, warm readable type, precise pink signal. */
html { color-scheme: dark; }
body { background: #241a25; color: #f8f0f5; }
a { color: #ff91c5; }
.topbar, .topbar.dark { background: rgba(36, 26, 37, .94); border-bottom-color: rgba(244,228,239,.12); }
.topbar-inner { max-width: 1380px; }
.brand .wm-fill, .topbar.dark .brand .wm-fill { fill: var(--pink); }
.brand .lab { color: var(--pink); background: transparent; border: 1px solid rgba(255,45,175,.42); letter-spacing: .14em; }
.product-name { color: #c9bac8; border-left-color: #514052; }
.stepper button { color: #c3b2c1; }
.stepper button .n { background: #493849; color: #e6d8e3; }
.stepper button.done .n { background: #5c4659; color: #f8f0f5; }
.stepper button.active { background: #482c42; color: #fff1f8; }
.stepper button.active .n { background: var(--pink); color: #241a25; }
.stepper button:not(:disabled):not(.active):hover { background: #382c39; color: #fff; }
.btn-primary { background: var(--pink); color: #241a25; }
.btn-primary:hover { background: #ff80c6; color: #241a25; }
.btn-primary:disabled { background: #514052; color: #c3b2c1; }
.btn-pink { color: #241a25; box-shadow: 0 10px 34px rgba(255,45,175,.18); }
.btn-pink:hover { background: #ffc0e0; color: #241a25; }
.btn-ghost { color: #f8f0f5; border-color: #614c60; }
.btn-ghost:hover, .btn-ghost.on-dark:hover { border-color: #ff91c5; background: rgba(255,255,255,.04); }
.btn-link { color: #ff91c5; }
.screen-head p, .card-sub, .muted, .field .help, .num-help { color: #c3b2c1; }
.card, .stat, .equation, .assessment, .finding, .flow-card, .rail, .does, .kit-item, .assume, .area-tile, .value-note, .privacy-note, .msg .bubble, .option, .stepper-input, .modal {
  background: #302532; border-color: #493849; color: #f8f0f5; box-shadow: 0 14px 34px rgba(12,5,12,.12);
}
.card { box-shadow: 0 8px 24px rgba(12,5,12,.12); }
.stat .k, .finding .area, .finding .sev, .source-panel dt, .data-table th { color: #bba9b9; }
.stat .s, .equation, .finding .body p, .consider .opt .d, .source-panel, .bench-val { color: #d0c1ce; }
.stat.dark, .report-head, .live, .does .row:nth-child(odd), .msg.user .bubble { background: #241a25; border-color: #514052; color: #f8f0f5; }
.assessment h2, .card-title, .assume-title, .finding .ftitle, .equation b, .ctx-list .fig { color: #f8f0f5; }
.assessment p, .finding .body .rec p { color: #d0c1ce; }
.consider .opt, .finding .body .rec, .source-panel, .seg, .option .key, .stepper-input button:hover { background: #382c39; border-color: #514052; }
.input, select.input, .chip, .stepper-input, .stepper-input input, .range-in input, .param {
  background-color: #211923; color: #f8f0f5; border-color: #614c60;
}
.input::placeholder, .stepper-input input::placeholder { color: #a18f9f; }
select.input option { background: #302532; color: #f8f0f5; }
select.input { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%23c9bac8' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"); }
.input:focus { border-color: #ff91c5; box-shadow: 0 0 0 3px rgba(255,45,175,.18); }
.input:disabled { background: #382c39; color: #bba9b9; }
.input.invalid { border-color: #f1838a; }
.field .err { color: #ffadb2; }
.chip { color: #e3d5e1; }
.chip:hover, .option:hover { border-color: #ff91c5; background: #382c39; color: #fff; }
.chip[aria-pressed="true"], .option.selected { background: #482c42; border-color: #ff2daf; color: #fff; }
.chip[aria-pressed="true"] .tick { color: #ff91c5; }
.seg { border: 1px solid #514052; }
.seg button { color: #c3b2c1; }
.seg button[aria-pressed="true"] { background: #5b3c54; color: #fff; box-shadow: none; }
.switch .track { background: #614c60; }
.switch input:checked + .track { background: #ab397b; }
.source-btn { color: #ff91c5; }
.source-panel a { color: #ff91c5; }
.ctx-list li { background: #382c39; border-color: #514052; }
.basis.published { background: #244435; color: #b1edc8; }
.basis.derived { background: #353e5c; color: #c4d1ff; }
.basis.working { background: #514052; color: #e5d6e3; }
.pill.good { background: #244435; color: #b1edc8; }
.pill.warning { background: #514027; color: #ffe1a2; }
.pill.serious { background: #54372f; color: #ffd0ba; }
.pill.critical { background: #512e36; color: #ffc3c6; }
.pill.good svg { color: #77d5a0; }
.pill.warning svg { color: #f0c36b; }
.pill.serious svg { color: #f19a78; }
.pill.critical svg { color: #f1838a; }
.msg .avatar { background: #482c42; color: #ff91c5; }
.msg.bot .bubble .topic { color: #ff91c5; }
.msg.bot .bubble .why { color: #bba9b9; }
.msg.reaction .bubble { background: #382c39; border-color: #614c60; color: #e4d5e2; }
.msg.user .bubble { background: #482c42; color: #fff; border-color: #87506e; }
.msg.user .edit { color: #ff91c5; }
.answer-zone, .convo-progress .txt { color: #c3b2c1; }
.convo-progress .bar { background: #493849; }
.stepper-input button { color: #f8f0f5; }
.stepper-input input { color: #f8f0f5; background: transparent; }
.chart .axis-label, .chart .row-sub, .chart .val-sub { fill: #bba9b9; }
.chart .row-label, .chart .val-label { fill: #f8f0f5; }
.chart .grid, .chart .baseline { stroke: #514052; }
.chart .ref-line { stroke: #c3b2c1; }
.chart .ref-label, .chart text[style*="fill:#C8107A"] { fill: #ff91c5 !important; }
.chart .bar-mark[fill="#0B0B0F"] { fill: #9c8198 !important; }
.legend { color: #d0c1ce; }
.legend i.dash { border-top-color: #c3b2c1; }
.data-table th, .data-table td { border-bottom-color: #514052; }
.tooltip { background: #211923; color: #f8f0f5; border-color: #614c60; }
.tooltip .t-row { color: #d0c1ce; }
.tooltip .t-row b { color: #fff; }
.source-panel dl dd { color: #e2d5e0; }
.modal-back { background: rgba(16,10,17,.76); }
.modal { background: #302532; border: 1px solid #614c60; color: #f8f0f5; }
.modal .sub, .modal label, .modal .help { color: #d0c1ce; }
.modal input, .modal select, .modal textarea { background: #211923; border-color: #614c60; color: #f8f0f5; }
.modal input::placeholder, .modal textarea::placeholder { color: #a18f9f; }
.modal .check { color: #d0c1ce; }
.check input { accent-color: #ff2daf; }
.success .ok { color: #241a25; }
.app-foot { border-top-color: #493849; }
.app-foot .inner, .dark-page .app-foot .inner { color: #a18f9f; }
.app-foot .inner span:first-child { color: #e5d7e3; }
.flow-card.tone-pink { background: linear-gradient(180deg, #382638, #302532 70%); border-color: #87506e; }
.flow-card.tone-good { background: linear-gradient(180deg, #293b33, #302532 70%); border-color: #42634e; }
.rail { background: #302532; }
.value-note { border-color: #614c60; }
.privacy-note { background: #302532; color: #d0c1ce; }
.climax h1 .dim { color: #c9bac8; }
.opportunity { background: #382638; color: #f8f0f5; border: 1px solid #87506e; }
.opportunity .big2 { color: #e7d9e5; }
.opportunity .fine { color: #c3b2c1; }
.landing::before { background: radial-gradient(circle, rgba(255,45,175,.17) 0%, rgba(255,45,175,.04) 48%, transparent 72%); }
.landing-foot { border-top-color: #493849; }
.topbar.dark .product-name { color: #c9bac8; }
.btn:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible {
  outline: 3px solid #ff91c5; outline-offset: 3px;
}
.progress-line > i, .live-meter .bar i, .convo-progress .bar i { background: #ff2daf; }
.toast { background: #382c39; border: 1px solid #614c60; color: #fff; }

@media (max-width: 760px) {
  .topbar-inner { gap: 9px; flex-wrap: wrap; }
  .brand svg { height: 14px; }
  .brand { gap: 6px; }
  .brand .lab { font-size: 8px; padding: 3px 5px; letter-spacing: .12em; }
  .top-actions .btn { font-size: 12px; padding: 10px; min-height: 44px; }
  .convert-cta .btn { width: 100%; max-width: 100%; white-space: normal; }
  .kit-actions .btn { max-width: 100%; white-space: normal; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
@media print {
  :root { color-scheme: light; --bg:#f6f6f8; --card:#fff; --line:#e6e6eb; --text:#241a25; --text-2:#464652; --muted:#6e6e79; }
  body { background: #fff !important; color: #241a25 !important; }
  .card, .finding, .flow-card, .stat, .equation, .assessment, .kit-item, .area-tile { background: #fff !important; color: #241a25 !important; box-shadow: none !important; }
}
