/* Il Passaggio che Conta — design system "Term Sheet"
   Corporate-finance language: navy ink, white paper, one accent (cobalt), tabular numbers,
   1px rules, 2px corners. Type: Source Serif 4 (titles, key figures), IBM Plex Sans (text, UI),
   IBM Plex Mono (labels, axes). Fonts self-hosted (OFL). No inline styles: CSP style-src 'self'. */

@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-serif-4-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: normal;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-serif-4-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'Source Serif 4';
  font-style: italic;
  font-display: swap;
  font-weight: 200 900;
  src: url(../fonts/source-serif-4-latin-wght-italic.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+2000-206F, U+20AC;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url(../fonts/ibm-plex-sans-latin-wght-normal.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'IBM Plex Sans';
  font-style: normal;
  font-display: swap;
  font-weight: 100 700;
  src: url(../fonts/ibm-plex-sans-latin-ext-wght-normal.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 400;
  src: url(../fonts/ibm-plex-mono-latin-400-normal.woff2) format('woff2');
}
@font-face {
  font-family: 'IBM Plex Mono';
  font-style: normal;
  font-display: swap;
  font-weight: 500;
  src: url(../fonts/ibm-plex-mono-latin-500-normal.woff2) format('woff2');
}

:root {
  --paper: #f3f5f8;          /* alternate bands */
  --surface: #ffffff;        /* page, cards */
  --ink: #0b1f3a;            /* navy: titles, dark bands */
  --ink-deep: #08162a;       /* footer */
  --text: #3a4a5e;           /* body text, 9.1:1 on white */
  --muted: #56677d;          /* secondary text, 5.8:1 on white */
  --accent: #1f4fb4;         /* actions, links, key data: 7.4:1 on white */
  --accent-hover: #183f91;
  --accent-soft: #9ab0dd;    /* accent on navy, 7.6:1 */
  --accent-tint: #edf1f9;    /* selected choice */
  --ramp-1: #dbe3f3;         /* data scale, light to dark */
  --ramp-2: #9cb2de;
  --ramp-3: #1f4fb4;
  --ramp-4: #0b1f3a;
  --line: #d9e0e8;
  --line-2: #c9d3df;
  --line-strong: #7c8da3;    /* field borders, 3.4:1 on white */
  --on-dark: #ffffff;
  --on-dark-muted: #c9d3df;  /* 10.9:1 on navy */
  --line-dark: rgba(255, 255, 255, 0.18);
  --danger: #b42318;
  --ok: #1f6b4f;

  --radius: 2px;
  --shadow-1: 0 1px 2px rgba(11, 31, 58, 0.05), 0 6px 18px rgba(11, 31, 58, 0.05);
  --shadow-2: 0 24px 60px rgba(4, 12, 24, 0.35);

  --font-display: 'Source Serif 4', Georgia, 'Times New Roman', serif;
  --font-body: 'IBM Plex Sans', 'Helvetica Neue', Arial, sans-serif;
  --font-mono: 'IBM Plex Mono', ui-monospace, 'SFMono-Regular', Menlo, monospace;

  --fs-0: 13px;
  --fs-hint: 14px;
  --fs-1: 15px;
  --fs-2: 17px;
  --fs-3: 22px;
  --fs-4: 30px;
  --fs-5: clamp(30px, 3.4vw, 44px);
  --fs-6: clamp(42px, 5.6vw, 72px);

  --sp-1: 8px;
  --sp-2: 16px;
  --sp-3: 24px;
  --sp-4: 32px;
  --sp-5: 48px;
  --sp-6: 64px;
  --sp-7: 96px;
  --sp-8: 128px;

  --container: 1200px;
  --gutter: 20px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--fs-2);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
button, input, select, textarea { font: inherit; color: inherit; }

:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
.band--dark :focus-visible, .site-footer :focus-visible { outline-color: var(--accent-soft); }

.skip-link {
  position: absolute; left: -9999px; top: 8px; z-index: 10;
  background: var(--surface); color: var(--ink); padding: 8px 16px; border: 1px solid var(--line);
}
.skip-link:focus { left: 8px; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
@media (min-width: 768px) { :root { --gutter: 40px; } }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- type ---------- */
.display, h1, h2, h3 { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; margin: 0; color: var(--ink); }
h1 { font-size: var(--fs-6); line-height: 1.04; letter-spacing: -0.015em; }
h2 { font-size: var(--fs-5); line-height: 1.12; }
h3 { font-size: var(--fs-3); line-height: 1.3; font-weight: 600; }
h1 em, h2 em { font-style: italic; font-weight: 400; }
.band--dark h1, .band--dark h2, .band--dark h3 { color: var(--on-dark); }
p { margin: 0; }
.lead { font-size: clamp(18px, 1.6vw, 19px); line-height: 1.6; }
.muted { color: var(--muted); }
.small { font-size: var(--fs-1); }
.eyebrow {
  font-family: var(--font-mono); font-size: 12px; font-weight: 500; letter-spacing: 0.14em; text-transform: uppercase;
  line-height: 1.5; color: var(--accent);
}
.band--dark .eyebrow { color: var(--accent-soft); }
/* eyebrow inside an h1: same look as the standalone eyebrow, so the keyword is part of the heading */
.h1-kicker { display: block; margin-bottom: 22px; letter-spacing: 0.16em; }

/* ---------- bands ---------- */
.band { padding: var(--sp-7) 0; }
.band--tight { padding: var(--sp-6) 0; }
.band--dark { background: var(--ink); color: var(--on-dark); }
.band--dark .muted { color: var(--on-dark-muted); }
.band--white { background: var(--surface); }

/* ---------- header ---------- */
.site-header { background: var(--surface); color: var(--ink); border-bottom: 1px solid var(--line); }
.site-header .container { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px var(--sp-3); min-height: 76px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); }
.brand__mark { width: 30px; height: 30px; flex: none; }
.brand__name { font-family: var(--font-display); font-size: 20px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; }
.site-nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px var(--sp-3); font-size: var(--fs-1); }
.site-nav a { color: var(--text); text-decoration: none; }
.site-nav a:not(.nav-cta) { padding: 10px 0; } /* 44px tap target */
.site-nav a:hover { color: var(--ink); text-decoration: underline; }
.site-nav .nav-cta { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; background: var(--accent); color: #fff; font-weight: 600; border-radius: var(--radius); }
.site-nav .nav-cta:hover { background: var(--accent-hover); color: #fff; text-decoration: none; }
.site-nav a[aria-current='page'] { color: var(--ink); font-weight: 600; }
@media (max-width: 560px) {
  .site-nav { width: 100%; }
  .site-nav .hide-sm { display: none; }
  .site-nav .nav-cta { margin-left: auto; }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 var(--sp-3);
  border: 1px solid transparent; border-radius: var(--radius);
  font-weight: 600; font-size: 16px; line-height: 1; text-decoration: none; cursor: pointer;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, opacity 150ms ease;
}
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn--primary { background: var(--accent); color: #fff; }
.btn--primary:hover { background: var(--accent-hover); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent-tint); }
.btn--ghost { background: var(--surface); border-color: var(--line-strong); color: var(--ink); }
.btn--ghost:hover { border-color: var(--ink); }
.band--dark .btn--ghost { background: transparent; border-color: rgba(255, 255, 255, 0.5); color: var(--on-dark); }
.band--dark .btn--ghost:hover { border-color: var(--on-dark); }
.btn .arrow { transition: transform 150ms ease; }
.btn:hover .arrow { transform: translateX(3px); }
.link-quiet { color: var(--on-dark-muted); font-size: var(--fs-1); }
.text-link { color: var(--accent); font-weight: 600; }

/* ---------- hero ---------- */
.hero { padding: var(--sp-6) 0 var(--sp-7); }
.hero__grid { display: grid; gap: var(--sp-5); align-items: center; }
@media (min-width: 980px) { .hero__grid { grid-template-columns: 1.15fr 0.85fr; gap: var(--sp-6); } .hero { padding: 88px 0 96px; } }
.hero h1 { margin: 0 0 var(--sp-3); }
.hero .lead { color: var(--on-dark-muted); max-width: 34em; }
.hero__actions { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2) var(--sp-3); margin-top: 36px; }
.hero__actions .link-quiet { color: var(--on-dark); }
.trust { list-style: none; padding: 22px 0 0; margin: 44px 0 0; border-top: 1px solid var(--line-dark); display: grid; gap: 10px; font-size: 14px; color: var(--on-dark-muted); }
@media (min-width: 640px) { .trust { display: flex; flex-wrap: wrap; gap: 10px var(--sp-4); } .trust li { white-space: nowrap; } }
.trust li { display: flex; align-items: center; gap: 8px; }
.trust svg { width: 16px; height: 16px; flex: none; color: var(--accent-soft); }

/* term sheet card (hero example) */
.sample {
  background: var(--surface); color: var(--ink); border-top: 3px solid var(--accent); box-shadow: var(--shadow-2);
  padding: 28px 28px 24px; max-width: 460px; justify-self: center; width: 100%;
}
.sample__tag { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px var(--sp-2); font-family: var(--font-mono); font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.12em; }
.sample__story { margin-top: 14px; font-family: var(--font-display); font-style: italic; font-size: 17px; line-height: 1.4; color: var(--text); }
.sample__label { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.sample__story + .sample__label { margin-top: 22px; }
.sample__value { font-family: var(--font-display); font-size: clamp(32px, 4vw, 40px); line-height: 1.1; margin: 6px 0 0; font-variant-numeric: lining-nums tabular-nums; color: var(--ink); }
.sample__row { display: flex; justify-content: space-between; gap: var(--sp-2); padding: 10px 0; border-top: 1px solid #e3e8ee; font-size: 14px; color: var(--text); }
.sample .range__legend + .sample__row { margin-top: 18px; }
.sample__row strong { font-weight: 600; text-align: right; color: var(--ink); font-variant-numeric: tabular-nums; }
.sample__ipg { margin-top: 16px; padding-top: 16px; border-top: 2px solid var(--ink); }
.sample__ipg-row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-top: 8px; }
.sample__ipg-score { font-family: var(--font-display); font-size: 34px; line-height: 1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.sample__ipg-score small { font-size: 16px; color: var(--muted); }
.sample__ipg-band { font-weight: 600; font-size: 14px; color: var(--accent); text-align: right; }
.sample__ipg-band a { color: inherit; }
.ipg-mini { position: relative; margin-top: 12px; }
.ipg-mini__bar { display: grid; grid-template-columns: 40fr 25fr 15fr 20fr; gap: 2px; height: 8px; }
.ipg-mini__bar span:nth-child(1) { background: var(--ramp-1); }
.ipg-mini__bar span:nth-child(2) { background: var(--ramp-2); }
.ipg-mini__bar span:nth-child(3) { background: var(--ramp-3); }
.ipg-mini__bar span:nth-child(4) { background: var(--ramp-4); }
.ipg-mini__mark { position: absolute; top: -5px; left: 79%; width: 2px; height: 18px; background: var(--ink); }
.sample__lever { margin-top: 16px; background: var(--paper); padding: 14px 16px; font-size: 14px; line-height: 1.5; color: var(--text); }
.sample__lever b { color: var(--accent); font-weight: 700; font-variant-numeric: tabular-nums; }

/* small range bar (hero example) */
.range { position: relative; height: 10px; background: #e7ecf2; margin: 18px 0 8px; }
.range__fill { position: absolute; top: 0; bottom: 0; background: var(--ramp-2); }
.range__mark { position: absolute; top: -5px; width: 2px; height: 20px; margin-left: -1px; background: var(--ink); }
.range__legend { display: flex; justify-content: space-between; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.range__fill--sample { left: 16.67%; right: 43.33%; }
.range__mark--sample { left: 36.67%; }

/* ---------- key figures ---------- */
.kpis { background: var(--surface); border-bottom: 1px solid var(--line); }
.kpis__grid { display: grid; gap: var(--sp-4) var(--sp-5); grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); padding-top: 44px; padding-bottom: 44px; }
.kpi__value { font-family: var(--font-display); font-size: clamp(34px, 3.4vw, 44px); line-height: 1; color: var(--ink); font-variant-numeric: lining-nums; }
.kpi__label { margin-top: 12px; font-size: 14px; line-height: 1.5; color: var(--muted); max-width: 24em; }

/* ---------- section heads, how it works ---------- */
.section-head { max-width: 44em; margin-bottom: var(--sp-5); }
.section-head h2 { margin-top: 14px; }
.section-head p { margin-top: 20px; }
.steps-3 { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); counter-reset: s; }
@media (min-width: 860px) { .steps-3 { grid-template-columns: repeat(3, 1fr); gap: 40px; } }
.steps-3 li { counter-increment: s; padding-top: 22px; border-top: 2px solid var(--ink); }
.steps-3 li::before { content: counter(s, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 14px; font-weight: 500; color: var(--accent); margin-bottom: 12px; }
.steps-3 h3 { margin-bottom: 10px; }
.steps-3 p { font-size: 16px; }

/* ---------- calculator ---------- */
.calc { display: grid; gap: var(--sp-5); }
.calc > *, .result-top > *, .report-cta > *, .about > *, .hero__grid > *, .split > *, .charts > * { min-width: 0; }
@media (min-width: 980px) { .calc { grid-template-columns: 0.8fr 1.2fr; gap: var(--sp-6); align-items: start; } .calc__intro { position: sticky; top: var(--sp-4); } }
.calc__intro h2 { margin: 14px 0 var(--sp-2); }
.calc__intro ul { margin: var(--sp-3) 0 0; padding: 0; list-style: none; display: grid; gap: 12px; font-size: var(--fs-1); color: var(--muted); }
.calc__intro li { display: flex; gap: 10px; }
.calc__intro li svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--accent); }

.card { background: var(--surface); border: 1px solid var(--line); padding: var(--sp-3); }
@media (min-width: 640px) { .card { padding: 36px; } }

.progress { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; margin-bottom: var(--sp-4); list-style: none; padding: 0; }
.progress li { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.progress li::before { content: ''; display: block; height: 4px; background: var(--line); margin-bottom: 8px; transition: background-color 200ms ease; }
.progress li.is-done::before, .progress li.is-current::before { background: var(--accent); }
.progress li.is-current { color: var(--ink); }
@media (max-width: 420px) { .progress li span { display: none; } }

.step { border: 0; margin: 0; padding: 0; min-width: 0; }
.step[hidden] { display: none; }
.step__title { font-family: var(--font-display); font-size: 26px; font-weight: 600; line-height: 1.25; color: var(--ink); margin-bottom: var(--sp-1); }
.step__lead { color: var(--muted); margin-bottom: var(--sp-4); font-size: var(--fs-1); }
.step-count { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); margin: 0 0 var(--sp-1); }

.field { margin-bottom: var(--sp-3); }
.field__label { display: block; font-weight: 600; font-size: 14px; color: var(--ink); margin-bottom: 6px; }
.field__hint { display: block; font-size: 13px; color: var(--muted); margin-top: 6px; line-height: 1.45; }
.field__opt { font-weight: 400; color: var(--muted); }
.input, .select {
  width: 100%; min-height: 48px; padding: 10px 14px; border-radius: var(--radius);
  border: 1px solid var(--line-strong); background: var(--surface); font-size: 16px; color: var(--ink);
  font-variant-numeric: tabular-nums;
  transition: border-color 150ms ease, box-shadow 150ms ease;
}
.input:hover, .select:hover { border-color: var(--ink); }
.input:focus, .select:focus { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px var(--ramp-1); }
.input[aria-invalid='true'], .select[aria-invalid='true'] { border-color: var(--danger); }
.select { appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%230b1f3a' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 14px center; padding-right: 42px; }
.money { position: relative; }
.money .input { padding-left: 34px; }
.money::before { content: '€'; position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.preview { display: block; min-height: 20px; font-size: 13px; color: var(--muted); margin-top: 6px; font-variant-numeric: tabular-nums; }
.error { display: block; color: var(--danger); font-size: var(--fs-hint); font-weight: 600; margin-top: 6px; }
.error:empty { display: none; }
.grid-2 { display: grid; gap: 0 var(--sp-3); }
@media (min-width: 640px) { .grid-2 { grid-template-columns: 1fr 1fr; } }

.helper { margin: calc(-1 * var(--sp-1)) 0 var(--sp-3); background: var(--paper); border: 1px solid var(--line); }
.helper summary { cursor: pointer; padding: 12px 16px; font-size: var(--fs-1); font-weight: 600; color: var(--accent); list-style: none; }
.helper summary::-webkit-details-marker { display: none; }
.helper summary::after { content: ' +'; }
.helper[open] summary::after { content: ' −'; }
.helper__body { padding: 0 16px 16px; }
.helper__body .field { margin-bottom: var(--sp-2); }

.q { border: 0; padding: 0; margin: 0 0 var(--sp-4); min-width: 0; }
.q legend { font-weight: 600; font-size: var(--fs-2); color: var(--ink); margin-bottom: 12px; padding: 0; line-height: 1.4; }
.choices { display: grid; gap: 8px; }
.choices--3 { grid-template-columns: 1fr 1fr; }
@media (min-width: 640px) { .choices--2 { grid-template-columns: 1fr 1fr; } .choices--4 { grid-template-columns: 1fr 1fr; } .choices--3 { grid-template-columns: repeat(3, 1fr); } }
.choice { position: relative; display: block; }
.choice input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.choice span {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 16px;
  border: 1px solid var(--line-strong); border-radius: var(--radius); background: var(--surface); font-size: var(--fs-1); line-height: 1.35; color: var(--ink);
  transition: border-color 150ms ease, background-color 150ms ease;
}
.choice span::before { content: ''; width: 18px; height: 18px; flex: none; border-radius: 50%; border: 2px solid var(--line-strong); transition: border-color 150ms ease, box-shadow 150ms ease; }
.choice:hover span { border-color: var(--ink); }
.choice input:checked + span { border-color: var(--accent); background: var(--accent-tint); }
.choice input:checked + span::before { border-color: var(--accent); box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 10px var(--accent); }
.choice input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.q[aria-invalid='true'] .choice span { border-color: var(--danger); }

.nav-row { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: 1px solid #e3e8ee; }
.nav-row #next { margin-left: auto; }
@media (min-width: 480px) { .nav-row .btn { min-width: 140px; } }
@media (max-width: 479px) { .nav-row .btn { padding: 0 var(--sp-2); } .nav-row #next { flex: 1 1 auto; } }
.privacy-note { font-size: 13px; color: var(--muted); margin-top: var(--sp-2); }
.js-fallback { font-size: var(--fs-hint); color: var(--danger); margin: 0 0 var(--sp-2); }
.js .js-fallback { display: none; }

/* ---------- upload ---------- */
.upload {
  display: flex; gap: var(--sp-2); align-items: flex-start; margin-bottom: var(--sp-4);
  padding: 20px; border: 1px dashed var(--line-strong); background: #f8fafc;
  transition: border-color 150ms ease, background-color 150ms ease;
}
.upload.is-dragover { border-color: var(--accent); background: var(--accent-tint); }
.upload[data-state='ok'] { border-style: solid; border-color: var(--ok); }
.upload[data-state='error'] { border-style: solid; border-color: var(--danger); }
.upload:focus-within { outline: 3px solid var(--accent); outline-offset: 2px; }
.upload__icon { width: 30px; height: 30px; flex: none; color: var(--accent); margin-top: 2px; }
.upload__body { min-width: 0; flex: 1; }
.upload__title { font-weight: 600; color: var(--ink); }
.upload__hint { font-size: 13px; color: var(--muted); margin: 4px 0 var(--sp-2); line-height: 1.5; }
.upload__btn { min-height: 44px; font-size: 15px; }
.upload__status { margin-top: var(--sp-2); font-size: var(--fs-hint); line-height: 1.5; }
.upload__status:empty { display: none; }
.upload__status ul { margin: 6px 0 0; padding-left: 18px; display: grid; gap: 4px; }
.upload[data-state='ok'] .upload__status > p:first-child { color: var(--ok); font-weight: 600; }
.upload[data-state='error'] .upload__status { color: var(--danger); font-weight: 600; }
@media (max-width: 479px) { .upload { flex-direction: column; } }
.field__src { display: inline-block; margin-left: 6px; padding: 1px 6px; background: var(--ramp-1); color: var(--ink); font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.06em; text-transform: uppercase; vertical-align: 1px; }
.field__src:empty { display: none; }

/* ---------- results (navy) ---------- */
.results[hidden] { display: none; }
.results { animation: rise 220ms ease-out; }
@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.result-top { display: grid; gap: var(--sp-5); }
@media (min-width: 980px) { .result-top { grid-template-columns: 1.25fr 0.75fr; gap: var(--sp-6); } }
.res-title { font-size: 28px; line-height: 1.2; margin-top: var(--sp-2); }
.band--dark .res-title { color: var(--on-dark-muted); }
.big-value { font-family: var(--font-display); font-size: clamp(44px, 6vw, 76px); line-height: 1.02; margin: 10px 0 0; letter-spacing: -0.015em; font-variant-numeric: lining-nums tabular-nums; }
.big-sub { margin-top: 14px; color: var(--on-dark-muted); font-size: 16px; }
.kv { display: grid; grid-template-columns: 1fr auto; gap: 0; margin: 36px 0 0; font-size: var(--fs-1); max-width: 600px; }
.kv dt, .kv dd { padding: 12px 0; border-top: 1px solid var(--line-dark); margin: 0; }
.kv dt { color: var(--on-dark-muted); }
.kv dd { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; padding-left: var(--sp-3); color: var(--on-dark); }
.kv dt:nth-last-of-type(1), .kv dd:nth-last-of-type(1) { border-bottom: 1px solid var(--line-dark); }
@media (max-width: 640px) { .kv { grid-template-columns: minmax(50%, 1fr) auto; } } /* long values wrap instead of squeezing the labels */

.panel { border: 1px solid var(--line-dark); background: rgba(255, 255, 255, 0.05); padding: 28px; }
.score { font-family: var(--font-display); font-size: 64px; line-height: 1; color: var(--on-dark); font-variant-numeric: tabular-nums; }
.score small { font-size: 22px; color: var(--on-dark-muted); }
.score-label { display: inline-block; margin-top: var(--sp-1); font-weight: 600; color: var(--accent-soft); }
.ipg-meter { position: relative; margin: 20px 0 0; }
.ipg-meter__bar { display: grid; grid-template-columns: 40fr 25fr 15fr 20fr; gap: 3px; }
.ipg-meter__bar span { height: 10px; background: rgba(255, 255, 255, 0.18); }
.ipg-meter__bar span.on { background: var(--accent-soft); }
.ipg-meter__mark { position: absolute; top: -5px; width: 2px; height: 20px; margin-left: -1px; background: var(--on-dark); }
.ipg-meter__axis { position: relative; height: 18px; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--on-dark-muted); }
.ipg-meter__axis span { position: absolute; top: 0; transform: translateX(-50%); }
.ipg-meter__axis span:nth-child(1) { left: 0; transform: none; }
.ipg-meter__axis span:nth-child(2) { left: 40%; }
.ipg-meter__axis span:nth-child(3) { left: 65%; }
.ipg-meter__axis span:nth-child(4) { left: 80%; }
.ipg-meter__axis span:nth-child(5) { left: 100%; transform: translateX(-100%); }
.panel__note { margin-top: 14px; font-size: 13px; line-height: 1.5; color: var(--on-dark-muted); }
.panel__note a { color: var(--on-dark); }
.factor-list { list-style: none; margin: var(--sp-3) 0 0; padding: 0; display: grid; gap: 14px; font-size: 14px; }
.factor-list li { display: grid; grid-template-columns: 1fr auto; gap: 6px var(--sp-2); color: var(--on-dark); }
.factor-list li > span:nth-child(2) { font-variant-numeric: tabular-nums; }
.factor-list .bar { grid-column: 1 / -1; height: 4px; background: rgba(255, 255, 255, 0.16); overflow: hidden; }
.factor-list .bar i { display: block; height: 100%; background: var(--accent-soft); }

.note { margin-top: var(--sp-4); padding: var(--sp-2) var(--sp-3); border: 1px solid var(--line-dark); border-top: 2px solid var(--accent-soft); background: rgba(255, 255, 255, 0.05); font-size: var(--fs-1); color: var(--on-dark-muted); }
.note[hidden] { display: none; }
.note strong { color: var(--on-dark); }

/* ---------- results: charts (white band) ---------- */
.charts { display: grid; gap: 40px; }
@media (min-width: 980px) { .charts { grid-template-columns: 1fr 1fr; } }
.chart { margin: 0; padding: 28px; border: 1px solid var(--line); background: var(--surface); }
.chart[hidden] { display: none; }
.chart__title { display: block; font-family: var(--font-display); font-weight: 600; font-size: 20px; color: var(--ink); }
.chart__note { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }
@media (max-width: 560px) { .chart { padding: 20px 16px; } }

/* football field: value ranges on one axis */
.ff { position: relative; margin-top: 24px; }
.ff__grid { position: absolute; top: 0; bottom: 26px; width: 1px; background: #e3e8ee; }
.ff__row { position: relative; padding: 6px 0 22px; }
.ff__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 12px; font-size: 14px; padding: 0 8px; }
.ff__label { font-weight: 600; color: var(--ink); }
.ff__value { color: var(--text); font-variant-numeric: tabular-nums; }
.ff__track { position: relative; height: 24px; margin-top: 10px; }
.ff__bar { position: absolute; top: 0; bottom: 0; background: var(--ink); }
.ff__bar--equity { background: var(--ramp-2); }
.ff__mark { position: absolute; top: -5px; bottom: -5px; width: 2px; margin-left: -1px; background: var(--accent); }
.ff__row--equity .ff__mark { background: var(--ink); }
.ff__axis { position: relative; height: 20px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.ff__axis span { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; }
.ff__axis span:first-child { transform: none; }
.ff__axis span:last-child { transform: translateX(-100%); }

/* bridge: from enterprise value to equity value */
.bridge { display: flex; gap: 8px; margin-top: 24px; }
.bridge__col { flex: 1 1 0; min-width: 0; }
.bridge__plot { position: relative; height: 240px; border-bottom: 1px solid var(--line-strong); }
.bridge__bar { position: absolute; left: 14%; right: 14%; background: var(--ink); }
.bridge__bar--down { background: var(--ramp-2); }
.bridge__bar--up { background: var(--accent); }
.bridge__val { position: absolute; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 11px; color: var(--ink); white-space: nowrap; }
.bridge__zero { position: absolute; left: 0; right: 0; height: 1px; background: var(--line-strong); }
.bridge__label { margin-top: 10px; font-size: 13px; line-height: 1.35; text-align: center; color: var(--text); hyphens: manual; }
.bridge__col:last-child .bridge__label { font-weight: 600; color: var(--ink); }
@media (max-width: 420px) { .bridge { gap: 4px; } .bridge__val { font-size: 10px; } .bridge__label { font-size: 12px; } }

/* ---------- results: multiple and levers (grey band) ---------- */
.split { display: grid; gap: var(--sp-5); align-items: start; }
@media (min-width: 980px) {
  .split { grid-template-columns: 1.1fr 0.9fr; gap: var(--sp-6); }
  .split:has(> [hidden]) { grid-template-columns: minmax(0, 760px); }
}
.h2-sm { font-size: clamp(26px, 3vw, 36px); line-height: 1.15; margin-top: 14px; }
.table-box { margin-top: var(--sp-3); overflow-x: auto; background: var(--surface); border: 1px solid var(--line); -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; min-width: 440px; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.data-table th, .data-table td { padding: 12px 16px; border-bottom: 1px solid #e3e8ee; text-align: left; vertical-align: top; }
.data-table thead th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); border-bottom-color: var(--line); }
.data-table td:first-child, .data-table th[scope='row'] { color: var(--ink); }
.data-table .num { text-align: right; white-space: nowrap; }
.data-table .neg { color: var(--ink); font-weight: 600; }
.data-table tfoot th, .data-table tfoot td { border-top: 2px solid var(--ink); border-bottom: 0; color: var(--ink); font-weight: 600; }
.data-table tfoot .num { font-family: var(--font-display); font-size: 20px; }
.data-table__sub { display: none; }
@media (max-width: 560px) {
  /* phones: the answer moves under the factor, so the correction column stays on screen */
  .data-table { min-width: 0; }
  .data-table th, .data-table td { padding: 10px 12px; }
  .data-table tr > :nth-child(2) { display: none; }
  .data-table__sub { display: block; margin-top: 2px; font-size: 13px; font-weight: 400; color: var(--muted); }
}

.levers-title { margin-top: 14px; }
.lever-teaser { margin-top: var(--sp-3); display: grid; gap: 14px; }
.lever { background: var(--surface); border: 1px solid var(--line); border-top: 3px solid var(--accent); padding: 18px 22px 20px; }
.lever .eyebrow { font-size: 11px; }
.lever__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; margin-top: 4px; }
.lever h3 { font-size: 20px; margin: 0; }
.lever .gain { font-family: var(--font-display); font-size: 20px; color: var(--accent); font-variant-numeric: tabular-nums; }
.lever p.lever__text { margin-top: 8px; font-size: 15px; line-height: 1.55; color: var(--muted); }
.lever--locked p { filter: blur(4px); user-select: none; }
.uplift { margin-top: 18px; font-size: var(--fs-1); line-height: 1.55; color: var(--ink); }
.uplift[hidden] { display: none; }

/* ---------- report ---------- */
.report-cta { display: grid; gap: var(--sp-5); }
@media (min-width: 980px) { .report-cta { grid-template-columns: 0.9fr 1.1fr; gap: var(--sp-6); align-items: start; } }
.report-cta ul { margin: var(--sp-3) 0 0; padding: 0; list-style: none; display: grid; gap: 10px; color: var(--ink); }
.report-cta ul li { position: relative; padding-left: 30px; }
.report-cta ul li::before { content: ''; position: absolute; left: 4px; top: 5px; width: 6px; height: 12px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.report-cta h2 { margin-top: 14px; }
.report-cta .card { border-top: 3px solid var(--ink); }
.check { display: flex; gap: 12px; align-items: flex-start; margin-bottom: var(--sp-2); font-size: var(--fs-1); line-height: 1.45; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; flex: none; accent-color: var(--accent); }
.form-status { margin-top: var(--sp-2); font-size: var(--fs-1); }
.form-status[data-kind='ok'] { color: var(--ok); font-weight: 600; }
.form-status[data-kind='warn'] { color: var(--danger); font-weight: 600; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- recognition ---------- */
@media (min-width: 980px) {
  .recog { display: grid; grid-template-columns: 1fr 1.1fr; column-gap: 72px; align-items: start; }
  .recog .section-head { grid-column: 1; grid-row: 1; margin-bottom: 0; }
  .recog .situations { grid-column: 2; grid-row: 1; }
  .recog__close { grid-column: 1 / -1; }
}
.situations { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--line-2); }
.situations li { position: relative; padding: 18px 0 18px 36px; border-top: 1px solid var(--line-2); font-size: 17px; line-height: 1.5; color: var(--ink); }
.situations li::before { content: ''; position: absolute; left: 6px; top: 22px; width: 7px; height: 13px; border: solid var(--accent); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.recog__close { margin-top: 56px; max-width: 46em; font-family: var(--font-display); font-size: var(--fs-3); line-height: 1.5; color: var(--ink); }
.recog__close strong { font-weight: 600; }

/* ---------- selling process ---------- */
.process { list-style: none; margin: 0 0 var(--sp-6); padding: 0; display: grid; gap: 36px; counter-reset: p; }
@media (min-width: 860px) { .process { grid-template-columns: repeat(4, 1fr); gap: var(--sp-4); } }
.process li { counter-increment: p; padding-top: 20px; border-top: 1px solid rgba(255, 255, 255, 0.24); }
.process li::before { content: counter(p, decimal-leading-zero); display: block; font-family: var(--font-mono); font-size: 14px; color: var(--accent-soft); margin-bottom: 12px; }
.process h3 { margin-bottom: 8px; font-size: 21px; }
.process p { font-size: var(--fs-1); }

/* ---------- about / faq ---------- */
.about { display: grid; gap: var(--sp-5); }
@media (min-width: 980px) { .about { grid-template-columns: 1fr 1fr; gap: 72px; } }
.about p + p { margin-top: var(--sp-2); }
.about-title { margin: 14px 0 var(--sp-3); }
.facts { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; }
.facts li { border-top: 1px solid var(--line-dark); padding-top: 18px; }
.facts strong { display: block; font-family: var(--font-display); font-size: 21px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.facts--light li { border-top-color: var(--line-2); }
.facts span { font-size: var(--fs-1); }

.faq { max-width: 820px; border-bottom: 1px solid var(--line); }
.faq details { border-top: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative; font-family: var(--font-display); font-size: 21px; line-height: 1.35; color: var(--ink); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-family: var(--font-body); font-size: 24px; font-weight: 300; color: var(--accent); }
.faq details[open] summary::after { content: '−'; }
.faq details > div { padding: 0 0 var(--sp-3); color: var(--text); max-width: 44em; font-size: 16px; }
.faq details > div p + p { margin-top: var(--sp-1); }

/* ---------- footer ---------- */
.site-footer { background: var(--ink-deep); color: var(--on-dark-muted); font-size: 14px; padding: var(--sp-5) 0; }
.site-footer .container { display: grid; gap: var(--sp-3); }
@media (min-width: 860px) { .site-footer .container { grid-template-columns: 1fr auto; align-items: end; } }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px var(--sp-3); }
.site-footer a { color: var(--on-dark); }
.disclaimer { font-size: 12px; line-height: 1.6; max-width: 60em; }

/* ---------- prose pages ---------- */
.prose { max-width: 760px; }
.prose h1 { font-size: clamp(36px, 5vw, 56px); margin: 14px 0 var(--sp-3); }
.prose h2 { font-size: var(--fs-4); margin: var(--sp-5) 0 var(--sp-2); }
.prose h3 { font-size: 20px; margin: var(--sp-4) 0 var(--sp-1); }
.prose p, .prose li { color: var(--text); }
.prose p + p { margin-top: var(--sp-2); }
.prose ul, .prose ol { padding-left: 22px; display: grid; gap: 6px; }
.prose table { width: 100%; border-collapse: collapse; margin: var(--sp-3) 0; font-size: var(--fs-1); font-variant-numeric: tabular-nums; background: var(--surface); }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { font-family: var(--font-mono); font-size: 11px; font-weight: 500; text-transform: uppercase; letter-spacing: 0.1em; color: var(--muted); border-bottom-color: var(--ink); }
.prose td:first-child { color: var(--ink); }
.prose td.num, .prose th.num { text-align: right; white-space: nowrap; }
.prose caption { caption-side: top; text-align: left; padding: 0 0 var(--sp-1); font-size: 14px; color: var(--muted); background: var(--paper); }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.prose .meta { color: var(--muted); font-size: 14px; }
.prose a { color: var(--accent); }
.prose .btn--primary { color: #fff; }

/* ---------- IPG ---------- */
.ipg-scale { margin: 0 0 var(--sp-4); padding: 24px; background: var(--paper); border: 1px solid var(--line); }
.prose .ipg-scale { background: var(--surface); margin: var(--sp-3) 0 0; }
.ipg-scale__bar { display: grid; grid-template-columns: 40fr 25fr 15fr 20fr; gap: 3px; height: 16px; }
.ipg-scale__bar span:nth-child(1) { background: var(--ramp-1); }
.ipg-scale__bar span:nth-child(2) { background: var(--ramp-2); }
.ipg-scale__bar span:nth-child(3) { background: var(--ramp-3); }
.ipg-scale__bar span:nth-child(4) { background: var(--ramp-4); }
.ipg-scale__axis { position: relative; height: 18px; margin-top: 8px; font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.ipg-scale__axis span { position: absolute; top: 0; transform: translateX(-50%); }
.ipg-scale__axis span:nth-child(1) { left: 0; transform: none; }
.ipg-scale__axis span:nth-child(2) { left: 40%; }
.ipg-scale__axis span:nth-child(3) { left: 65%; }
.ipg-scale__axis span:nth-child(4) { left: 80%; }
.ipg-scale__axis span:nth-child(5) { left: 100%; transform: translateX(-100%); }
.ipg-scale figcaption { margin-top: var(--sp-1); }
.ipg-scale .ipg-scale__legend { list-style: none; margin: var(--sp-2) 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 10px var(--sp-3); font-size: 14px; color: var(--ink); }
.ipg-scale__legend li { display: flex; align-items: center; gap: 8px; }
.ipg-scale__legend li::before { content: ''; width: 12px; height: 12px; flex: none; background: var(--ramp-1); outline: 1px solid var(--line-2); }
.ipg-scale__legend li:nth-child(2)::before { background: var(--ramp-2); outline: 0; }
.ipg-scale__legend li:nth-child(3)::before { background: var(--ramp-3); outline: 0; }
.ipg-scale__legend li:nth-child(4)::before { background: var(--ramp-4); outline: 0; }
.ipg-scale__legend b { font-variant-numeric: tabular-nums; }
.ipg-dims { padding-left: 22px; display: grid; gap: 8px; }
.ipg-dims strong { font-weight: 600; color: var(--ink); }

/* ---------- utilities ---------- */
.mt-1 { margin-top: var(--sp-1); }
.mt-2 { margin-top: var(--sp-2); }
.w-full { width: 100%; }

[hidden] { display: none !important; }
