/* ROI-Rechner — extends v11.css tokens, doesn't redefine them. */

/* Several elements below set their own `display` (flex/grid) for when they're
   shown — that author rule otherwise beats the UA [hidden]{display:none}
   default, so this file-scoped override keeps `hidden` reliable everywhere. */
[hidden] { display: none !important; }

/* v11.css's .btn-link only ever styled <a> tags (only sets border-bottom),
   so on our <button> "Zurück" links the untouched native button chrome
   (background, full border box, system font) showed through as OS-default
   buttons. Full reset here, then the intended link look is reapplied. */
button.btn-link {
  all: unset;
  cursor: pointer;
  box-sizing: border-box;
  font-size: 14px;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--rule);
  padding-bottom: 2px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 200ms var(--ease), border-color 200ms var(--ease);
}
button.btn-link:hover { color: var(--c-indigo); border-bottom-color: var(--c-violet); }

.calc-shell {
  /* Deliberately wider than the marketing site's --col (1340px) — this is a
     working tool, not an editorial text column, so it should use noticeably
     more of a wide monitor instead of leaving huge empty margins either side. */
  max-width: 1600px;
  margin: 0 auto;
  padding: clamp(32px, 6vw, 64px) clamp(20px, 4vw, 48px) 96px;
}

.calc-head { max-width: 680px; margin: 0 auto 28px; text-align: center; }
.calc-head h1 {
  font-family: var(--display);
  font-size: clamp(28px, 4.5vw, 42px);
  line-height: 1.1;
  margin: 12px 0 14px;
  color: var(--ink);
}
.calc-lead { color: var(--ink-muted); font-size: 16px; max-width: 46ch; margin: 0 auto; }

/* ---- Stepper ---- */

.calc-progress {
  display: flex;
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  max-width: 480px;
  margin-left: auto;
  margin-right: auto;
}
.calc-progress li {
  flex: 1;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-align: center;
}
.calc-progress li:not(:last-child)::after {
  content: '';
  position: absolute;
  top: 15px;
  left: calc(50% + 20px);
  width: calc(100% - 40px);
  height: 2px;
  background: var(--rule);
  z-index: 0;
  transition: background-color 300ms var(--ease);
}
.calc-progress li.is-done:not(:last-child)::after { background: var(--accent); }

.step-dot {
  width: 32px; height: 32px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  background: var(--paper); border: 2px solid var(--rule);
  color: var(--ink-faint);
  position: relative; z-index: 1;
  transition: background-color 250ms var(--ease), border-color 250ms var(--ease), box-shadow 250ms var(--ease), color 250ms var(--ease);
}
.step-label {
  font-size: 11px; color: var(--ink-faint); text-transform: uppercase; letter-spacing: 0.04em; font-weight: 600;
  transition: color 250ms var(--ease);
}
.calc-progress li.is-active .step-dot {
  background: var(--grad-brand); border-color: transparent; color: #fff;
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.calc-progress li.is-active .step-label { color: var(--accent); }
.calc-progress li.is-done .step-dot {
  background: var(--accent); border-color: var(--accent); color: transparent; font-size: 0;
}
.calc-progress li.is-done .step-dot::before {
  content: 'check'; font-family: var(--icons); font-size: 16px; color: #fff;
}
.calc-progress li.is-done .step-label { color: var(--ink-muted); }

.calc-progress li { cursor: default; }
.calc-progress li.is-visited { cursor: pointer; }
.calc-progress li.is-visited:not(.is-active):hover .step-dot {
  box-shadow: 0 0 0 5px var(--accent-soft);
}
.calc-progress li.is-visited:not(.is-active):hover .step-label { color: var(--accent); }
.calc-progress li:not(.is-visited) .step-dot { opacity: 0.55; }
.calc-progress li:focus-visible { outline: none; }
.calc-progress li:focus-visible .step-dot { box-shadow: 0 0 0 3px var(--accent-soft); }

/* ---- Cards + entrance animation ---- */

@keyframes calc-fade-up {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: translateY(0); }
}

.calc-card {
  background: var(--paper);
  border: 1px solid var(--rule-soft);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-card);
  padding: clamp(24px, 4vw, 44px);
  animation: calc-fade-up 420ms var(--ease-out);
}
/* 640px looked lost in the middle of a wide monitor even once the shell and
   the wide (needs/result) steps got more room — this is the very first
   screen most people see, so it needs to feel substantial too, not just the
   later steps. */
.calc-card:not(.calc-card-wide) { max-width: 780px; margin-left: auto; margin-right: auto; }
/* The profile step has three fields naturally suited to sitting side by side
   (see .profile-grid below) — give it a bit more room still so that layout
   can actually happen instead of always stacking. */
.calc-card[data-view="profile"] { max-width: 960px; }
.calc-card-wide { width: 100%; }

.calc-card h2 { font-family: var(--display); font-size: 26px; margin: 0 0 8px; color: var(--ink); }
.calc-muted { color: var(--ink-muted); font-size: 14.5px; margin: 0 0 24px; }
.calc-fineprint { color: var(--ink-faint); font-size: 12px; margin-top: 20px; line-height: 1.5; }
.calc-fineprint a { color: var(--ink-muted); }

/* ---- Gate step ---- */

.gate-icon {
  width: 56px; height: 56px; border-radius: var(--r);
  display: flex; align-items: center; justify-content: center;
  background: var(--grad-brand); color: #fff; margin-bottom: 20px;
  box-shadow: 0 12px 24px -10px rgba(57,109,221,0.4);
}
.gate-icon .icon { font-size: 28px; }

.gate-form { margin-top: 8px; }
.gate-field { display: flex; gap: 12px; flex-wrap: wrap; }
.gate-field input {
  flex: 1 1 260px;
  min-width: 0;
  padding: 14px 18px;
  font-size: 16px;
  border-radius: 9999px;
  border: 1px solid var(--rule);
  background: var(--bg-soft);
  color: var(--ink);
  transition: border-color 200ms var(--ease), background-color 200ms var(--ease);
}
.gate-field input:focus { outline: none; border-color: var(--accent); background: var(--paper); }
.gate-error {
  color: var(--no);
  font-size: 13.5px;
  margin: 12px 0 0;
  animation: calc-fade-up 250ms var(--ease-out);
}
.gate-loading {
  display: flex; align-items: center; gap: 12px;
  margin-top: 20px; color: var(--ink-muted); font-size: 14.5px;
  animation: calc-fade-up 300ms var(--ease-out);
}
.gate-spinner {
  width: 18px; height: 18px; border-radius: 50%;
  border: 2px solid var(--rule);
  border-top-color: var(--accent);
  animation: calc-spin 0.8s linear infinite;
  flex-shrink: 0;
}
@keyframes calc-spin { to { transform: rotate(360deg); } }

.gate-trust {
  display: flex; flex-wrap: wrap; gap: 10px 22px;
  margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--rule-soft);
}
.gate-trust-item {
  display: flex; align-items: center; gap: 6px;
  font-size: 12px; color: var(--ink-faint); font-weight: 500;
}
.gate-trust-item .icon { font-size: 16px; color: var(--accent); }

.gate-org {
  margin: 14px 0 0; font-size: 12px; color: var(--ink-faint);
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.gate-org a { color: var(--ink-muted); border-bottom: 1px solid var(--rule); padding-bottom: 1px; }
.gate-org a:hover { color: var(--c-indigo); border-bottom-color: var(--c-violet); }
.gate-org-logo-link { display: inline-flex; line-height: 0; }
.gate-org-logo { height: 15px; width: auto; }

/* ---- Profile step ---- */

.profile-ai {
  border-radius: var(--r-lg); border: 1px solid var(--rule-soft);
  overflow: hidden; margin-bottom: 28px;
  animation: calc-fade-up 400ms var(--ease-out);
}
.profile-ai-head {
  display: flex; align-items: center; gap: 10px;
  background: var(--grad-brand); color: #fff; padding: 16px 22px;
  font-size: 15px; font-weight: 700;
}
.profile-ai-head .icon { font-size: 20px; }
.profile-ai-body { padding: 18px 22px; background: var(--accent-soft); }
.profile-ai-body p { margin: 0; color: var(--ink-soft); font-size: 13.5px; line-height: 1.6; }
.profile-ai-challenges { margin: 12px 0 0; padding-left: 18px; color: var(--ink-muted); font-size: 13px; line-height: 1.7; }
.profile-ai-challenges:empty { display: none; }
.profile-ai-challenges li::marker { color: var(--accent); }

.profile-grid { display: grid; gap: 28px; margin-bottom: 8px; grid-template-columns: 1fr; }
@media (min-width: 760px) {
  .profile-grid { grid-template-columns: repeat(3, 1fr); }
}
.calc-field { display: block; }
.calc-field-label {
  display: block; font-size: 13px; font-weight: 600; color: var(--ink-soft);
  text-transform: uppercase; letter-spacing: 0.04em; margin-bottom: 10px;
}
.calc-field input[type="range"] {
  width: 100%; height: 6px; border-radius: 9999px; background: var(--rule);
  appearance: none; cursor: pointer; accent-color: var(--accent);
}
.calc-field-value {
  display: block; margin-top: 8px; font-family: var(--mono);
  font-size: 24px; font-weight: 800; color: var(--ink);
}
.calc-field-value small { font-size: 13px; font-weight: 500; color: var(--ink-muted); margin-left: 2px; font-family: var(--sans); }

.calc-num-input {
  font-family: var(--mono); font-size: 24px; font-weight: 800; color: var(--ink);
  background: transparent; border: none; border-bottom: 1.5px solid transparent;
  width: 5ch; padding: 0; text-align: left; -moz-appearance: textfield;
  transition: border-color 150ms var(--ease);
}
.calc-num-input::-webkit-outer-spin-button,
.calc-num-input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.calc-num-input:hover, .calc-num-input:focus { border-bottom-color: var(--accent); outline: none; }
.calc-num-input-sm { font-size: 14px; font-weight: 700; width: 6.5ch; text-align: right; border-bottom-width: 1px; }
.calc-num-input-bare { font-size: 16px; font-weight: 700; width: 3ch; text-align: center; }

.profile-scope { margin-top: 8px; padding-top: 24px; border-top: 1px solid var(--rule-soft); }
.profile-scope-intro { font-size: 14px; line-height: 1.5; color: var(--ink-muted); margin: 0 0 14px; max-width: 640px; }
.profile-scope-toggle { display: inline-flex; gap: 8px; margin-bottom: 20px; }
.profile-scope-toggle button {
  font-family: var(--sans); font-size: 14px; font-weight: 600; padding: 9px 18px;
  border: 1px solid var(--rule); border-radius: 9999px; background: var(--paper); color: var(--ink-soft);
  cursor: pointer; transition: background-color 150ms var(--ease), color 150ms var(--ease), border-color 150ms var(--ease);
}
.profile-scope-toggle button:hover { border-color: var(--accent); color: var(--ink); }
.profile-scope-toggle button.is-selected { background: var(--ink); color: #fff; border-color: var(--ink); }
#profile-department-field { max-width: 360px; }

.calc-actions {
  display: flex; align-items: center; justify-content: space-between;
  margin-top: 32px; gap: 16px; flex-wrap: wrap;
}

/* ---- Needs step: dashboard ---- */

.needs-dashboard {
  position: sticky; top: 12px; z-index: 5;
  display: grid; grid-template-columns: 300px 1fr;
  background: var(--paper); border: 1px solid var(--rule-soft); border-radius: var(--r-lg);
  box-shadow: var(--shadow-lift); overflow: hidden; margin-bottom: 32px;
}
.needs-dashboard-inputs {
  padding: 28px; display: flex; flex-direction: column; gap: 20px;
  border-right: 1px solid var(--rule-soft); background: var(--bg-soft);
}
.needs-stat-label {
  display: flex; align-items: center; gap: 8px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); margin-bottom: 6px;
}
.needs-stat-label .icon { font-size: 16px; color: var(--accent); }
.needs-stat-value { font-family: var(--mono); font-size: 26px; font-weight: 800; color: var(--ink); line-height: 1; }
.needs-stat-value small { font-size: 12.5px; font-weight: 500; color: var(--ink-muted); margin-left: 4px; font-family: var(--sans); }

.needs-rate-control { display: flex; align-items: center; gap: 12px; }
.needs-rate-box {
  flex-shrink: 0; min-width: 52px; height: 40px; padding: 0 10px;
  display: flex; align-items: center; justify-content: center;
  background: var(--paper); border: 1px solid var(--rule); border-radius: 10px;
  font-family: var(--mono); font-weight: 700; font-size: 16px; color: var(--ink);
}
.needs-rate-control input[type="range"] {
  flex: 1; height: 5px; border-radius: 9999px; background: var(--rule);
  appearance: none; cursor: pointer; accent-color: var(--accent);
}
.needs-stat-sub {
  display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-faint);
  padding-top: 16px; border-top: 1px solid var(--rule-soft);
}
.needs-stat-sub .icon { font-size: 14px; color: var(--accent); }

.needs-dashboard-visual { padding: 28px 32px; display: flex; align-items: center; gap: 28px; flex-wrap: nowrap; }
.needs-legend { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 9px; max-height: 180px; overflow-y: auto; }
.needs-legend-item { display: flex; align-items: baseline; gap: 10px; font-size: 13px; }
.needs-legend-name { color: var(--ink-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.needs-legend-amount { margin-left: auto; font-family: var(--mono); font-weight: 700; color: var(--ink); white-space: nowrap; }
.needs-bar-empty { color: var(--ink-faint); font-size: 13px; }

.needs-vbar-wrap {
  flex-shrink: 0; width: 64px; height: 180px; background: var(--paper);
  border-radius: 16px; box-shadow: var(--shadow-lift); padding: 6px;
}
.needs-vbar { width: 100%; height: 100%; border-radius: 10px; overflow: hidden; display: flex; flex-direction: column; background: var(--bg-soft); }
.needs-vbar-seg { width: 100%; transition: height 350ms var(--ease); }

.needs-arrow { flex-shrink: 0; font-size: 26px; color: var(--ink-faint); }

.needs-potential {
  flex-shrink: 0; position: relative; background: var(--grad-soft); border: 1px solid var(--rule-soft);
  border-radius: var(--r); padding: 20px 30px; width: 230px; overflow: hidden; text-align: center;
}
.needs-potential-bg { position: absolute; right: -14px; top: -14px; font-size: 96px; color: var(--accent-soft); z-index: 0; }
.needs-potential-label {
  position: relative; display: flex; align-items: center; justify-content: center; gap: 4px; font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.04em; color: #16a34a; margin-bottom: 6px;
}
.needs-potential-label .icon { font-size: 14px; }
.needs-potential-value { position: relative; display: block; font-family: var(--mono); font-size: 30px; font-weight: 800; color: var(--ink); line-height: 1; }
.needs-potential-sub { position: relative; display: block; font-size: 12px; color: var(--ink-muted); margin-top: 4px; }

@media (max-width: 760px) {
  .needs-dashboard { grid-template-columns: 1fr; position: static; }
  .needs-dashboard-inputs { border-right: none; border-bottom: 1px solid var(--rule-soft); }
  .needs-dashboard-visual { flex-direction: column; align-items: stretch; }
  .needs-vbar-wrap { align-self: center; }
  .needs-arrow { align-self: center; transform: rotate(90deg); }
}

/* ---- Needs step: tool cards ---- */

.tool-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(440px, 1fr)); gap: 20px; align-items: start; }

.tool-card {
  border: 1px solid var(--rule); border-radius: var(--r); background: var(--paper);
  transition: border-color 200ms var(--ease), box-shadow 200ms var(--ease), transform 200ms var(--ease);
}
.tool-card:not(.is-active):hover { border-color: var(--rule-strong); box-shadow: var(--shadow-card); transform: translateY(-1px); }
.tool-card.is-active { border-color: var(--tool-color, var(--accent)); box-shadow: var(--shadow-lift); }

.tool-card-head {
  display: flex; align-items: flex-start; gap: 16px; padding: 20px 22px; cursor: pointer;
}
.tool-card-icon {
  width: 44px; height: 44px; border-radius: 12px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: var(--bg-soft); color: var(--ink-faint);
  transition: background-color 250ms var(--ease), color 250ms var(--ease), box-shadow 250ms var(--ease);
}
.tool-card.is-active .tool-card-icon {
  background: var(--tool-color, var(--accent)); color: #fff;
  box-shadow: 0 10px 20px -8px color-mix(in srgb, var(--tool-color, var(--accent)) 60%, transparent);
}
.tool-card-icon .icon { font-size: 22px; }
.tool-card-body { flex: 1; min-width: 0; }
.tool-card-name { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); }
.tool-card.is-active .tool-card-name { color: var(--tool-color, var(--accent)); }
.tool-card-question { font-size: 16px; color: var(--ink-soft); margin: 4px 0 0; }

.tool-card-right { display: flex; flex-direction: column; align-items: flex-end; gap: 8px; flex-shrink: 0; }
.tool-card-preview { text-align: right; }
.tool-card-preview-label { display: block; font-size: 10px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-faint); }
.tool-card-preview-value { display: block; font-family: var(--mono); font-weight: 800; font-size: 17px; color: #16a34a; line-height: 1.3; }

.tool-card-toggle {
  flex-shrink: 0; border: none; border-radius: 9999px; padding: 8px 16px;
  font-size: 12px; font-weight: 700; cursor: pointer;
  background: var(--ink); color: #fff; transition: background-color 200ms var(--ease);
}
.tool-card-toggle:hover { background: var(--tool-color, var(--accent)); }
.tool-card.is-active .tool-card-toggle { background: var(--bg-soft); color: var(--no); }
.tool-card.is-active .tool-card-toggle:hover { background: #fee2e2; }

.tool-card-detail { padding: 0 22px 22px; animation: calc-fade-up 280ms var(--ease-out); }
.tool-card-slider { background: var(--bg-soft); border: 1px solid var(--rule-soft); border-radius: var(--r); padding: 18px 20px; }
.tool-slider-row { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; gap: 12px; }
.tool-slider-row label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--ink-muted); }
.tool-card-detail input[type="range"] {
  width: 100%; height: 5px; border-radius: 9999px; background: var(--rule);
  appearance: none; cursor: pointer; accent-color: var(--tool-color, var(--accent));
}
.tool-slider-hint { margin-top: 8px; font-size: 11.5px; color: var(--ink-faint); text-align: center; }
.tool-sub { margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--rule-soft); }
.tool-subfeatures-toggle {
  all: unset; box-sizing: border-box; cursor: pointer; width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 8px;
  margin-top: 16px; padding-top: 14px; border-top: 1px solid var(--rule-soft);
  font-size: 12.5px; font-weight: 600; color: var(--ink-muted);
  transition: color 150ms var(--ease);
}
.tool-subfeatures-toggle:hover { color: var(--ink); }
.tool-subfeatures-toggle .icon { font-size: 18px; flex-shrink: 0; transition: transform 200ms var(--ease); }
.tool-subfeatures-toggle[aria-expanded="true"] .icon { transform: rotate(180deg); }
.tool-subfeatures { margin-top: 4px; }
.tool-subfeatures .tool-sub:first-child { margin-top: 16px; }
.tool-card-potential { margin-top: 14px; font-size: 13px; color: var(--ink-muted); display: flex; justify-content: space-between; }
.tool-card-potential strong { color: #16a34a; }
.tool-complexity { display: flex; gap: 8px; margin-bottom: 14px; }
.tool-complexity button {
  flex: 1; padding: 8px; border-radius: 8px; border: 1px solid var(--rule);
  background: var(--paper); font-size: 12.5px; font-weight: 600; color: var(--ink-muted); cursor: pointer;
  transition: border-color 150ms var(--ease), color 150ms var(--ease), background-color 150ms var(--ease);
}
.tool-complexity button.is-selected { border-color: var(--tool-color, var(--accent)); color: var(--tool-color, var(--accent)); background: var(--accent-soft); }

/* ---- Result step ---- */

.result-grid { display: grid; gap: 24px; grid-template-columns: 1.1fr 1fr; margin-bottom: 32px; }
@media (max-width: 860px) { .result-grid { grid-template-columns: 1fr; } }

.result-case {
  background: linear-gradient(135deg, var(--ink) 0%, #1c2733 100%);
  color: #fff; border-radius: var(--r-lg); padding: 32px;
}
.result-row { display: flex; justify-content: space-between; align-items: center; padding: 14px 0; border-bottom: 1px solid rgba(255,255,255,0.12); font-size: 14.5px; color: rgba(255,255,255,0.75); }
.result-row strong { font-size: 20px; color: #fff; }
.result-row-total { border-bottom: none; padding-top: 18px; }
.result-row-total strong { font-size: 26px; }
.result-pos { color: #4ade80 !important; }
.result-roi { margin-top: 18px; background: rgba(255,255,255,0.08); border-radius: var(--r); padding: 14px 18px; display: flex; justify-content: space-between; align-items: center; font-size: 13px; }
.result-roi strong { font-size: 22px; color: #fff; }

.result-package {
  border: 2px solid var(--accent); border-radius: var(--r-lg); padding: 32px; position: relative; background: var(--paper);
}
.result-package-badge {
  position: absolute; top: 0; right: 0; background: var(--grad-brand); color: #fff;
  font-size: 11px; font-weight: 700; padding: 6px 14px; border-radius: 0 var(--r-lg) 0 12px;
}
.result-package h3 { font-family: var(--display); font-size: 22px; margin: 6px 0 4px; }
.result-package-price { font-size: 34px; font-weight: 800; color: var(--ink); margin: 12px 0 24px; }
.result-package .btn { width: 100%; justify-content: center; }
.result-resume-link { display: flex; justify-content: center; width: 100%; margin-top: 14px; }

.result-seatnote {
  display: flex; gap: 16px; align-items: flex-start;
  background: var(--accent-soft); border: 1px solid var(--rule-soft);
  border-radius: var(--r); padding: 20px 24px; margin-bottom: 32px;
}
.result-seatnote .icon { font-size: 22px; color: var(--accent); flex-shrink: 0; margin-top: 2px; }
.result-seatnote strong { display: block; font-size: 14.5px; color: var(--ink); margin-bottom: 6px; }
.result-seatnote p { margin: 0; font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); }

.result-compare { margin-bottom: 32px; }
.result-compare h3 { font-size: 18px; margin: 0 0 18px; }
.compare-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.compare-row .compare-label { width: 110px; flex-shrink: 0; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.compare-row .compare-track { flex: 1; height: 16px; background: var(--bg-soft); border-radius: 8px; overflow: hidden; position: relative; }
.compare-row .compare-fill {
  display: block; height: 100%; border-radius: 8px; min-width: 3px;
  transition: width 500ms var(--ease-out);
}
.compare-row .compare-amount {
  width: 100px; flex-shrink: 0; text-align: right;
  font-family: var(--mono); font-weight: 700; font-size: 14px; color: var(--ink);
}
.compare-row.compare-cost .compare-fill { background: linear-gradient(90deg, var(--ink-faint), var(--ink-soft)); }
.compare-row.compare-value .compare-fill { background: linear-gradient(90deg, #22c55e, #16a34a); }

.result-breakdown h3 { font-size: 18px; margin: 0 0 16px; }
.breakdown-row { display: flex; align-items: center; gap: 12px; margin-bottom: 12px; font-size: 13.5px; }
.breakdown-row .breakdown-dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.breakdown-row .name { width: 130px; flex-shrink: 0; color: var(--ink-soft); font-weight: 600; }
.breakdown-row .bar-wrap { flex: 1; height: 9px; background: var(--bg-soft); border-radius: 9999px; overflow: hidden; }
.breakdown-row .bar { display: block; height: 100%; border-radius: 9999px; transition: width 400ms var(--ease-out); }
.breakdown-row .amount { width: 90px; text-align: right; font-family: var(--mono); font-weight: 700; color: var(--ink); flex-shrink: 0; }

@media (max-width: 880px) {
  /* This page's nav is just the brand + one CTA link (no hamburger menu here) —
     v11.css hides .nav-links below 880px to make room for the main site's
     mobile menu, which doesn't exist on this page, so re-show it compactly. */
  .nav-links { display: flex; }
  .nav-links a { font-size: 13px; }
}

@media (max-width: 640px) {
  .gate-field { flex-direction: column; }
  /* .gate-field input's "flex: 1 1 260px" sizes width in the default row
     layout, but once the field stack goes column-direction, that same
     flex-basis sizes HEIGHT instead — blowing the input up to 260px tall,
     which with its pill border-radius rendered as a big oval/circle. */
  .gate-field input { flex: 0 0 auto; width: 100%; }
  .gate-field button { width: 100%; justify-content: center; }
  .compare-row .compare-label { width: 80px; font-size: 12px; }
  .compare-row .compare-amount { width: 76px; font-size: 12px; }
  .breakdown-row .name { width: 90px; font-size: 12.5px; }
  .breakdown-row .amount { width: 70px; font-size: 12.5px; }

  .tool-grid { grid-template-columns: 1fr; }
  .tool-card-head { flex-wrap: wrap; }
  .calc-num-input-sm { padding: 6px 2px; width: 6ch; }
  .tool-card-right {
    flex-basis: 100%; flex-direction: row; align-items: center;
    justify-content: space-between; margin-top: 6px;
  }
  .tool-card-preview { text-align: left; }
}
