/* Gare in Vista · Design system v1.0
   Every value below is documented in ../gare-in-vista-design-system.md.
   Components read tokens only; literal values live in :root. */

@font-face {
  font-family: Manrope;
  src: url("manrope.woff2") format("woff2");
  font-weight: 400 700;
  font-display: swap;
}

:root {
  /* Brand */
  --ink: #12182b;
  --paper: #ffffff;
  --surface: #ffffff;
  --signal: #263de5;
  --signal-hover: #1830c9;
  --signal-wash: #edf1ff;
  --signal-line: #b7c5ff;
  --signal-on-ink: #aebcff;
  --on-signal: #ffffff;

  /* Neutrals */
  --wash: #f6f7fb;
  --sunken: #eef1f7;
  --line: #e0e5ef;
  --line-strong: #c9d1e1;
  --muted: #556078;
  --muted-on-ink: #d5dcec;
  --faint-on-ink: #8b96b4;
  --line-on-ink: #34405e;

  /* States: one blue family, told apart by intensity and fill.
     Positive = soft wash · Caution = strong outline · Critical = solid fill.
     The written label always carries the meaning; color only supports it. */
  --positive: #263de5;
  --positive-wash: #edf1ff;
  --positive-line: #b7c5ff;
  --positive-on-ink: #aebcff;
  --positive-halo-on-ink: rgba(174, 188, 255, .18);
  --caution: #1c2ca8;
  --caution-wash: #f7f8ff;
  --caution-line: #263de5;
  --critical: #121f8f;
  --critical-wash: #e4e9ff;
  --critical-line: #263de5;
  --neutral-wash: #f1f3f8;

  /* Focus and overlay */
  --focus: var(--signal);
  --focus-on-ink: var(--signal-on-ink);
  --focus-halo: rgba(38, 61, 229, .18);
  --scrim: rgba(18, 24, 43, .56);
  --tint-on-ink: rgba(255, 255, 255, .08);

  /* Type */
  --font: Manrope, system-ui, sans-serif;
  --text-xs: .75rem;      --leading-xs: 1rem;
  --text-sm: .875rem;     --leading-sm: 1.25rem;
  --text-base: 1rem;      --leading-base: 1.5rem;
  --text-md: 1.125rem;    --leading-md: 1.75rem;
  --text-lg: 1.25rem;     --leading-lg: 1.75rem;
  --text-xl: 1.5rem;      --leading-xl: 2rem;
  --text-2xl: 1.875rem;   --leading-2xl: 2.25rem;
  --text-3xl: 2.25rem;    --leading-3xl: 2.5rem;
  --text-4xl: 3rem;       --leading-4xl: 3.25rem;
  --text-5xl: 3.75rem;    --leading-5xl: 3.875rem;
  --text-6xl: 4.5rem;     --leading-6xl: 4.5rem;
  --tracking-display: -.04em;
  --tracking-heading: -.03em;
  --tracking-tight: -.015em;
  --tracking-label: .01em;
  --measure: 68ch;

  /* Space */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 24px;
  --space-6: 32px;
  --space-7: 40px;
  --space-8: 48px;
  --space-9: 64px;
  --space-10: 80px;
  --space-11: 96px;

  /* Radius */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-pill: 999px;

  /* Elevation */
  --shadow-1: 0 1px 2px rgba(18, 24, 43, .06);
  --shadow-2: 0 12px 32px rgba(23, 36, 86, .08);
  --shadow-3: 0 24px 64px rgba(18, 24, 43, .22);

  /* Motion */
  --ease: cubic-bezier(.32, .72, 0, 1);
  --dur-1: 120ms;
  --dur-2: 220ms;
  --dur-3: 320ms;

  /* Layout */
  --shell: 1264px;
  --gutter: 40px;
  --target: 44px;
  --z-sticky: 10;
  --z-skip: 50;
}

/* ---------- Base ---------- */

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-color: var(--line-strong) transparent; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 400 var(--text-base)/var(--leading-base) var(--font); caret-color: var(--signal); -webkit-font-smoothing: antialiased; }
::selection { background: var(--signal); color: var(--on-signal); }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); border-radius: var(--radius-sm); }
main:focus, [tabindex="-1"]:focus:not(:focus-visible) { outline: none; box-shadow: none; }
h1, h2, h3, h4, p, figure, dl, dd, blockquote { margin: 0; }
h1, h2, h3, h4 { font-weight: 700; text-wrap: balance; }
h2 { font-size: var(--text-3xl); line-height: var(--leading-3xl); letter-spacing: var(--tracking-heading); }
h3 { font-size: var(--text-lg); line-height: var(--leading-lg); letter-spacing: var(--tracking-tight); }
h4 { font-size: var(--text-base); line-height: var(--leading-base); letter-spacing: var(--tracking-tight); }
p { text-wrap: pretty; }
a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button, input, select { font: inherit; color: inherit; }
button, select, summary, label:has(input) { cursor: pointer; }
input, select { min-width: 0; accent-color: var(--signal); }
code { font-family: inherit; font-variant-numeric: tabular-nums; letter-spacing: .02em; }
section, main, [id] { scroll-margin-top: var(--space-5); }
.shell { width: min(100% - var(--gutter) * 2, var(--shell)); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.visually-hidden { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: fixed; top: var(--space-3); left: var(--space-3); z-index: var(--z-skip); transform: translateY(-150%); }
.skip:focus { transform: none; }
.numeric, .num { font-variant-numeric: tabular-nums; }
.icon { width: 1.125em; height: 1.125em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; vertical-align: -.2em; }
.context { color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.lede { color: var(--muted); font-size: var(--text-md); line-height: var(--leading-md); max-width: 62ch; }
.section { margin-block-start: var(--space-11); }
.section-heading { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap; margin-bottom: var(--space-5); }
.section-intro { display: grid; gap: var(--space-3); margin-bottom: var(--space-6); max-width: 820px; }
.section-intro h2 { font-size: var(--text-4xl); line-height: var(--leading-4xl); letter-spacing: var(--tracking-display); }

/* ---------- Buttons and links ---------- */

.button {
  display: inline-flex; justify-content: center; align-items: center; gap: var(--space-2);
  min-height: var(--target); padding: var(--space-2) var(--space-4); border: 1px solid transparent;
  border-radius: var(--radius-sm); font-size: var(--text-base); line-height: var(--leading-base); font-weight: 600;
  text-decoration: none; white-space: nowrap; transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease), opacity var(--dur-1) var(--ease);
}
.button:active:not(:disabled), .text-button:active, .icon-button:active, .segmented button:active { opacity: .85; }
.button:disabled { cursor: not-allowed; opacity: .5; }
.button--small { min-height: var(--target); padding-inline: var(--space-3); font-size: var(--text-sm); line-height: var(--leading-sm); }
.button--block { width: 100%; }
.button--primary { background: var(--signal); color: var(--on-signal); }
.button--primary:hover:not(:disabled) { background: var(--signal-hover); }
.button--outline { border-color: var(--line-strong); background: var(--surface); color: var(--ink); }
.button--outline:hover:not(:disabled) { background: var(--signal-wash); color: var(--signal); }
.button--on-ink { background: var(--paper); color: var(--ink); }
.button--on-ink:hover { background: var(--signal-wash); }
.button--ghost-on-ink { border-color: var(--line-on-ink); color: var(--paper); background: transparent; }
.button--ghost-on-ink:hover { background: var(--tint-on-ink); }
.text-button {
  display: inline-flex; align-items: center; gap: var(--space-1); padding: 0; border: 0; background: transparent; min-height: var(--target);
  color: var(--signal); font-weight: 700; font-size: var(--text-sm); line-height: var(--leading-sm); text-decoration: none;
}
.text-button:hover { text-decoration: underline; }
.icon-button { display: inline-grid; place-items: center; width: var(--target); height: var(--target); padding: 0; border: 0; border-radius: var(--radius-sm); background: transparent; color: var(--muted); }
.icon-button:hover { background: var(--sunken); color: var(--ink); }
.icon-button .icon { width: 20px; height: 20px; }
.inline-link { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--signal); font-weight: 600; text-decoration: none; }
.inline-link:hover { text-decoration: underline; }

/* ---------- Pills, tags, citations ---------- */

.pill {
  display: inline-flex; align-items: center; gap: 6px; width: fit-content; padding: 2px var(--space-2);
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--neutral-wash); color: var(--muted);
  font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: 700; white-space: nowrap;
}
.pill::before { content: ""; flex: none; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill--good, .pill--saving { background: var(--positive-wash); border-color: var(--positive-line); color: var(--positive); }
.pill--warn { background: var(--caution-wash); border-color: var(--caution-line); color: var(--caution); }
.pill--critical { background: var(--signal); border-color: var(--signal); color: var(--on-signal); }
.pill--saving::before { width: 8px; height: 8px; background: none; border: 2px solid currentColor; }
.tag { display: inline-flex; width: fit-content; padding: 2px var(--space-2); border-radius: var(--radius-sm); background: var(--signal-wash); color: var(--signal); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: 700; letter-spacing: var(--tracking-label); }
.tag--sample { background: var(--caution-wash); color: var(--caution); border: 1px dashed var(--caution-line); }
.tag--on-ink { background: var(--tint-on-ink); color: var(--paper); border: 1px dashed var(--faint-on-ink); }
.cite { display: block; margin-top: var(--space-1); color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: 400; }
.cite-label { font-weight: 700; }
.callout { display: flex; flex-wrap: wrap; align-items: baseline; gap: var(--space-2); margin-block: var(--space-4); padding: var(--space-3) var(--space-4); border-radius: var(--radius-md); font-size: var(--text-sm); line-height: var(--leading-sm); }
.callout--warn { background: var(--caution-wash); color: var(--caution); }
.callout--info { background: var(--signal-wash); color: var(--ink); }
.warn-text { color: var(--caution); }

/* ---------- Brand mark ---------- */

.brand { display: inline-flex; align-items: center; gap: var(--space-2); width: max-content; min-height: var(--target); font-weight: 700; font-size: var(--text-lg); line-height: var(--leading-lg); letter-spacing: -.04em; text-decoration: none; }
.mark { display: inline-block; width: 32px; height: 32px; position: relative; flex: none; border-radius: var(--radius-sm); color: var(--on-signal); background: var(--signal); }
.mark i, .image-viewfinder i { position: absolute; width: 22%; height: 22%; border: 2px solid currentColor; }
.mark i:nth-child(1), .image-viewfinder i:nth-child(1) { top: 24%; left: 24%; border-right: 0; border-bottom: 0; }
.mark i:nth-child(2), .image-viewfinder i:nth-child(2) { top: 24%; right: 24%; border-left: 0; border-bottom: 0; }
.mark i:nth-child(3), .image-viewfinder i:nth-child(3) { bottom: 24%; left: 24%; border-right: 0; border-top: 0; }
.mark i:nth-child(4), .image-viewfinder i:nth-child(4) { bottom: 24%; right: 24%; border-left: 0; border-top: 0; }
.mark b, .image-viewfinder b { position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%); width: 13%; aspect-ratio: 1; border-radius: 50%; background: currentColor; }
.mark--lg { width: 96px; height: 96px; border-radius: var(--radius-lg); }
.mark--lg i { border-width: 4px; }

/* ---------- Header ---------- */

.site-header { border-bottom: 1px solid var(--line); background: var(--paper); }
.nav { display: flex; align-items: center; justify-content: space-between; gap: var(--space-6); padding-block: var(--space-3); }
.nav-links { display: flex; gap: var(--space-5); align-items: center; }
.nav-links a { display: inline-flex; align-items: center; min-height: var(--target); text-decoration: none; white-space: nowrap; color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 600; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 8px; }
.nav-action { color: var(--signal); }

/* ---------- Hero ---------- */

.hero { position: relative; margin-top: var(--space-5); }
.hero-panel { display: grid; grid-template-columns: 1.2fr 1fr; min-height: 440px; border-radius: var(--radius-xl); overflow: hidden; background: var(--wash); }
.hero-copy { display: grid; align-content: center; gap: var(--space-5); padding: var(--space-10) var(--space-6) var(--space-11) var(--space-8); }
.hero h1 { max-width: 680px; font-size: clamp(var(--text-5xl), 5vw, var(--text-6xl)); line-height: 1.02; letter-spacing: var(--tracking-display); }
.hero h1 span { color: var(--signal); }
.hero-copy > p { max-width: 460px; color: var(--muted); font-size: var(--text-md); line-height: var(--leading-md); }
.hero-image { min-width: 0; position: relative; background: var(--signal); overflow: hidden; isolation: isolate; }
.hero-image img { position: absolute; width: 100%; height: 100%; inset: 0; object-fit: cover; object-position: 56% 56%; filter: grayscale(100%) contrast(.92); opacity: .88; mix-blend-mode: luminosity; }
.image-viewfinder { position: absolute; width: 176px; aspect-ratio: 1; top: 45%; left: 63%; transform: translate(-50%, -50%); color: var(--on-signal); }
.image-viewfinder i { width: 20%; height: 20%; border-width: 3px; }
.image-viewfinder b { width: 6%; }
.search-form {
  z-index: 1; position: relative; display: grid; grid-template-columns: 2fr 1.1fr 1fr auto; align-items: end;
  gap: var(--space-3); width: calc(100% - 128px); margin: -56px auto 0; padding: var(--space-4);
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-2);
}
.search-form label, .text-field { display: grid; gap: var(--space-1); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 700; min-width: 0; }
.search-form select, .search-form input, .sort select, .text-field input {
  width: 100%; height: var(--target); padding: var(--space-2) var(--space-3); background: var(--wash); border: 1px solid var(--line);
  border-radius: var(--radius-sm); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 600;
  transition: background-color var(--dur-1) var(--ease);
}
.search-form input:hover, .search-form select:hover, .sort select:hover, .text-field input:hover { background: var(--sunken); }
.search-form input::placeholder, .text-field input::placeholder { color: var(--muted); font-weight: 500; }
.keyword-input { position: relative; display: block; min-width: 0; }
.keyword-input input { padding-left: var(--space-7); }
.search-icon { position: absolute; left: var(--space-3); top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; }
.hero-note { max-width: 760px; text-wrap: balance; margin: var(--space-4) auto 0; text-align: center; color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }

/* ---------- Search results ---------- */

.result-toolbar, .result-caption { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); }
.explore-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(254px, 312px); gap: var(--space-6); align-items: start; }
.results-main { min-width: 0; }
.sector-filter { display: flex; gap: var(--space-5); flex-wrap: wrap; margin-bottom: var(--space-4); border-bottom: 1px solid var(--line); }
.sector-filter button { min-height: var(--target); padding: 0; border: 0; background: transparent; color: var(--muted); font-size: var(--text-sm); font-weight: 700; }
.sector-filter button[aria-pressed="true"] { color: var(--signal); box-shadow: inset 0 -2px var(--signal); }
.sector-filter button:hover { color: var(--ink); }
.result-filters, .selection-actions, .status-group { display: flex; align-items: center; gap: var(--space-3); flex-wrap: wrap; }
.segmented { display: flex; flex-wrap: wrap; padding: var(--space-1); background: var(--neutral-wash); border-radius: var(--radius-md); }
.segmented button {
  min-height: var(--target); border: 1px solid transparent; border-radius: var(--radius-sm); padding: var(--space-2) var(--space-3);
  background: transparent; color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 700;
  transition: background-color var(--dur-1) var(--ease), color var(--dur-1) var(--ease);
}
.segmented button:hover { color: var(--ink); background: var(--sunken); }
.segmented button[aria-pressed="true"] { color: var(--ink); background: var(--surface); border-color: var(--line); box-shadow: var(--shadow-1); }
.sort { display: flex; align-items: center; gap: var(--space-2); color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.sort select { width: auto; color: var(--ink); background: var(--surface); }
.result-caption { min-height: 48px; color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.result-list { display: grid; gap: var(--space-2); }
.result-row {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: start; gap: var(--space-3) var(--space-5);
  padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); background: var(--surface);
  transition: background-color var(--dur-1) var(--ease);
}
.result-row:hover { background: var(--wash); }
.result-row:has(.flash-pick[aria-pressed="true"]) { border-color: var(--signal-line); background: var(--signal-wash); }
.result-labels, .result-footer { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-2) var(--space-4); }
.sector-label { color: var(--signal); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: 700; letter-spacing: var(--tracking-label); }
.result-footer { grid-column: 1 / -1; justify-content: space-between; padding-top: var(--space-3); border-top: 1px solid var(--line); }
.result-meta { text-align: right; }
.result-row h3 { margin-block: var(--space-2) var(--space-1); font-size: var(--text-md); line-height: var(--leading-md); text-wrap: pretty; }
.result-title { text-decoration: none; }
.result-title:hover { text-decoration: underline; }
.result-matches { margin-top: var(--space-1); }
.result-value { font-size: var(--text-md); line-height: var(--leading-md); font-weight: 700; }
.flash-pick[aria-pressed="true"], .detail-actions [data-select][aria-pressed="true"] { color: var(--signal); background: var(--surface); border-color: var(--signal-line); }
.empty { padding: var(--space-7); border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--surface); text-align: center; }
.empty p { margin-block: var(--space-2) var(--space-4); color: var(--muted); }
.selection-bar { position: sticky; top: var(--space-4); z-index: var(--z-sticky); display: grid; gap: var(--space-3); padding: var(--space-5); border: 1px solid var(--signal-line); border-radius: var(--radius-md); background: var(--signal-wash); }
.selection-heading { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: var(--space-2); }
.selection-price { color: var(--signal); font-size: var(--text-lg); font-weight: 700; }
.selection-price small { font-size: var(--text-sm); font-weight: 600; }
.selection-empty { color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.selection-actions { display: grid; align-items: stretch; }
.selection-bar .text-button { justify-content: center; }
.selected-list { list-style: none; padding: 0; margin: 0; display: grid; gap: var(--space-2); }
.selected-list li { display: grid; grid-template-columns: 1fr var(--target); align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding-left: var(--space-3); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 600; }

/* ---------- Free card ---------- */

.detail-section { padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-xl); background: var(--surface); }
.detail-section:has(#report) { border-color: var(--line-strong); }
.back { margin-bottom: var(--space-3); }
.detail-head h2 { margin-block: var(--space-3); text-wrap: pretty; }
.detail-head .detail-note { max-width: 70ch; }
.detail-note { margin-top: var(--space-3); color: var(--muted); }
.detail-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-4); margin-top: var(--space-6); }
.public-card, .unlock { padding: var(--space-5); border-radius: var(--radius-md); }
.public-card { border: 1px solid var(--line); }
.unlock { background: var(--signal-wash); }
.public-card h3, .unlock h3 { margin-bottom: var(--space-3); }
.cig-title { margin-top: var(--space-5); font-size: var(--text-sm); }
.cig-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 0 var(--space-4); margin: var(--space-2) 0 0; padding: 0; list-style: none; font-size: var(--text-sm); line-height: var(--leading-sm); }
.cig-list li { display: flex; justify-content: space-between; gap: var(--space-2); padding-block: var(--space-2); border-bottom: 1px solid var(--line); }
.cig-list span { color: var(--muted); }
.unlock-list { display: grid; gap: var(--space-2); margin: 0 0 var(--space-4); padding: 0; list-style: none; }
.unlock-list li { display: flex; gap: var(--space-2); align-items: start; font-weight: 600; font-size: var(--text-sm); line-height: var(--leading-sm); }
.unlock-list .icon { color: var(--signal); margin-top: 1px; }
.detail-actions { display: flex; gap: var(--space-2); flex-wrap: wrap; margin-top: var(--space-4); }
.data-list { display: grid; margin: 0; }
.data-list > div { display: grid; grid-template-columns: minmax(120px, .45fr) minmax(0, 1fr); gap: var(--space-3); padding-block: var(--space-3); border-bottom: 1px solid var(--line); font-size: var(--text-sm); line-height: var(--leading-sm); }
.data-list > div:last-child { border-bottom: 0; }
.data-list dt { color: var(--muted); font-weight: 600; }
.data-list dd { font-weight: 700; overflow-wrap: anywhere; }
.data-list small { display: block; margin-top: 2px; color: var(--muted); font-weight: 500; }
.data-list small.warn-text { color: var(--caution); }

/* ---------- How it works ---------- */

.flow-band { padding-block: var(--space-10); background: var(--ink); color: var(--paper); }
.flow-band :focus-visible { outline-color: var(--focus-on-ink); }
.flow-head { display: grid; grid-template-columns: 1.6fr 1fr; align-items: end; gap: var(--space-6); }
.flow-head h2 { max-width: 720px; font-size: var(--text-4xl); line-height: var(--leading-4xl); letter-spacing: var(--tracking-display); }
.flow-head p { color: var(--muted-on-ink); max-width: 340px; justify-self: end; }
.reveal-word { transition: color 800ms var(--ease); }
.reveal-inactive { color: var(--faint-on-ink); }
.flow { position: relative; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-6); margin: var(--space-9) 0 0; padding: 0; list-style: none; }
.flow::before { content: ""; position: absolute; top: 5px; left: 0; right: 0; height: 1px; background: var(--line-on-ink); }
.flow-step { position: relative; padding-top: var(--space-6); }
.flow-step::before { content: ""; position: absolute; top: 0; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--ink); box-shadow: inset 0 0 0 2px var(--signal-on-ink); }
.flow-step h3 { font-size: var(--text-2xl); line-height: var(--leading-2xl); letter-spacing: var(--tracking-heading); margin-block: var(--space-2) var(--space-3); }
.flow-step p:last-child { color: var(--muted-on-ink); font-size: var(--text-sm); line-height: var(--leading-sm); }
.flow-price { color: var(--signal-on-ink); font-weight: 700; font-size: var(--text-sm); line-height: var(--leading-sm); }
.flow-aside { margin-top: var(--space-8); padding-top: var(--space-5); border-top: 1px solid var(--line-on-ink); color: var(--muted-on-ink); }
.flow-aside a { color: var(--paper); font-weight: 700; }

/* ---------- Ladder table ---------- */

.table-scroll { position: relative; overflow-x: auto; max-width: 100%; border-radius: var(--radius-sm); }
.ladder-scroll { border: 1px solid var(--line); border-radius: var(--radius-lg); }
.ladder { width: 100%; min-width: 980px; border-collapse: separate; border-spacing: 0; font-size: var(--text-sm); line-height: var(--leading-sm); }
.ladder th, .ladder td { padding: var(--space-3) var(--space-4); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.ladder thead th { padding-block: var(--space-5) var(--space-4); vertical-align: top; border-bottom-color: var(--line-strong); }
.ladder tbody th { width: 28%; font-weight: 600; color: var(--ink); background: var(--surface); }
.ladder tbody th, .ladder thead .ladder-corner, .ladder tfoot td:first-child { position: sticky; left: 0; z-index: 1; background: var(--surface); }
.ladder-name { display: block; font-size: var(--text-md); line-height: var(--leading-md); font-weight: 700; letter-spacing: var(--tracking-tight); }
.ladder-price { display: block; margin-top: var(--space-1); font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: var(--tracking-tight); white-space: nowrap; }
.ladder-price small { font-size: var(--text-xs); font-weight: 600; color: var(--muted); }
.ladder-kind { display: block; margin-top: var(--space-1); color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: 600; }
.ladder-question td { font-weight: 700; color: var(--ink); }
.ladder-question th { color: var(--muted); }
.ladder-shared { color: var(--muted); background: var(--wash); text-align: center !important; vertical-align: middle !important; }
.ladder .ladder-focus { background: var(--signal-wash); }
.ladder thead .ladder-focus { border-radius: var(--radius-sm) var(--radius-sm) 0 0; }
.ladder thead .ladder-focus .ladder-price { color: var(--signal); }
.ladder tfoot td { border-bottom: 0; padding-block: var(--space-4) var(--space-5); }
.ladder tfoot .button { white-space: nowrap; }
.yes, .no { position: relative; display: inline-grid; place-items: center; width: 24px; height: 24px; }
.yes { color: var(--positive); }
.yes .icon { width: 20px; height: 20px; stroke-width: 2.25; }
.no { color: var(--line-strong); }
.service-note { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: var(--space-3) var(--space-6); margin-top: var(--space-5); padding: var(--space-5); border-radius: var(--radius-lg); background: var(--wash); }
.service-note h3 { grid-row: span 2; }
.service-prices { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }
.service-prices dt { color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: 600; }
.service-prices dd { margin-top: var(--space-1); font-weight: 700; font-size: var(--text-md); line-height: var(--leading-md); }
.service-note > p { color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); grid-column: 2; }

/* ---------- Radar Pro ---------- */

.plans-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-4); }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--radius-lg); overflow: hidden; }
.plan { display: grid; grid-template-rows: auto auto auto auto 1fr auto; gap: var(--space-2); padding: var(--space-6); }
.plan + .plan { border-left: 1px solid var(--line); }
.plan h3 { font-size: var(--text-xl); line-height: var(--leading-xl); }
.plan-cap { color: var(--muted); }
.plan-cap strong { color: var(--ink); }
.plan-price { margin-top: var(--space-3); display: flex; align-items: baseline; gap: var(--space-2); flex-wrap: wrap; }
.plan-amount { font-size: var(--text-4xl); line-height: var(--leading-4xl); font-weight: 700; letter-spacing: var(--tracking-display); }
.plan-unit { color: var(--muted); font-weight: 600; font-size: var(--text-sm); }
.plan-billing { color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.plan-audience { padding-top: var(--space-3); border-top: 1px solid var(--line); font-size: var(--text-sm); line-height: var(--leading-sm); }
.plan .button { margin-top: var(--space-3); }
.rules { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4) var(--space-6); margin: var(--space-6) 0 0; padding: 0; list-style: none; }
.rules li { padding-top: var(--space-3); border-top: 1px solid var(--line); color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.rules strong { color: var(--ink); }
.compare-block { margin-top: var(--space-8); }
.compare-block h3 { margin-bottom: var(--space-3); }
.compare-table { min-width: 560px; }
.cell-note { display: block; margin-top: var(--space-1); color: var(--muted); font-size: var(--text-xs); }

/* ---------- Radiografia value band ---------- */

.value-band { padding-block: var(--space-10); background: var(--wash); }
.value-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: var(--space-9); align-items: center; }
.value-copy h2 { font-size: var(--text-4xl); line-height: var(--leading-4xl); letter-spacing: var(--tracking-display); }
.value-copy .lede { margin-top: var(--space-4); }
.value-list { display: grid; gap: var(--space-2); margin: var(--space-5) 0 0; padding: 0; list-style: none; }
.value-list li { position: relative; padding-left: var(--space-5); font-weight: 600; }
.value-list li::before { content: ""; position: absolute; left: 0; top: .6em; width: 8px; height: 8px; border-radius: 50%; background: var(--signal); }
.value-guarantee { margin-top: var(--space-5); color: var(--muted); max-width: 56ch; }
.value-guarantee strong { color: var(--ink); }
.value-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-top: var(--space-5); }
.excerpt { position: relative; padding: var(--space-6); background: var(--surface); border-radius: var(--radius-sm); box-shadow: var(--shadow-2); }
.excerpt-caption { padding-bottom: var(--space-3); border-bottom: 1px solid var(--line); color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 700; }
.excerpt-list { display: grid; margin: 0; padding: 0; list-style: none; }
.excerpt-list li { display: grid; grid-template-columns: 128px minmax(0, 1fr); gap: var(--space-4); padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.excerpt-list li:last-child { border-bottom: 0; padding-bottom: 0; }
.excerpt-figure { font-size: var(--text-xl); line-height: var(--leading-xl); font-weight: 700; color: var(--signal); letter-spacing: var(--tracking-tight); white-space: nowrap; }
.excerpt-list p:not(.excerpt-figure) { font-weight: 600; }
.excerpt-list small { display: block; margin-top: var(--space-1); color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); }
.excerpt-frame { position: absolute; inset: -14px; pointer-events: none; color: var(--signal); }
.excerpt-frame i { position: absolute; width: 28px; height: 28px; border: 3px solid currentColor; }
.excerpt-frame i:nth-child(1) { top: 0; left: 0; border-right: 0; border-bottom: 0; }
.excerpt-frame i:nth-child(2) { top: 0; right: 0; border-left: 0; border-bottom: 0; }
.excerpt-frame i:nth-child(3) { bottom: 0; left: 0; border-right: 0; border-top: 0; }
.excerpt-frame i:nth-child(4) { bottom: 0; right: 0; border-left: 0; border-top: 0; }

/* ---------- FAQ, blog teaser, final CTA, footer ---------- */

.faq { display: grid; grid-template-columns: .7fr 1.3fr; gap: var(--space-6); }
.faq-items details { border-bottom: 1px solid var(--line); }
.faq-items details:first-child { border-top: 1px solid var(--line); }
.faq-items summary { display: flex; align-items: center; justify-content: space-between; gap: var(--space-3); min-height: 56px; padding-block: var(--space-3); font-weight: 700; list-style: none; }
.faq-items summary::-webkit-details-marker { display: none; }
.faq-items summary::after { content: ""; flex: none; width: 10px; height: 10px; border-right: 2px solid var(--muted); border-bottom: 2px solid var(--muted); transform: rotate(45deg) translateY(-3px); transition: transform var(--dur-2) var(--ease); }
.faq-items details[open] summary::after { transform: rotate(225deg) translateY(-3px); }
.faq-items summary:hover { color: var(--signal); }
.faq-items details p { padding-bottom: var(--space-4); color: var(--muted); max-width: var(--measure); }
.post-feature { display: grid; gap: var(--space-3); padding: var(--space-6); border: 1px solid var(--line); border-radius: var(--radius-lg); text-decoration: none; transition: background-color var(--dur-1) var(--ease); }
.post-feature:hover { background: var(--wash); }
.post-meta { color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 600; }
.post-feature-title { max-width: 26ch; font-size: var(--text-3xl); line-height: var(--leading-3xl); font-weight: 700; letter-spacing: var(--tracking-heading); text-wrap: balance; }
.post-feature-text { max-width: 64ch; color: var(--muted); }
.post-link { display: inline-flex; align-items: center; gap: var(--space-1); color: var(--signal); font-weight: 700; }
.final-cta { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: var(--space-4); margin-block: var(--space-11) var(--space-9); padding-top: var(--space-6); border-top: 1px solid var(--line); }
.final-cta h2 { font-size: var(--text-2xl); line-height: var(--leading-2xl); }
.site-footer { padding-block: var(--space-7) var(--space-8); border-top: 1px solid var(--line); background: var(--wash); font-size: var(--text-sm); line-height: var(--leading-sm); }
.footer-grid { display: grid; grid-template-columns: 1.6fr repeat(3, minmax(0, 1fr)); gap: var(--space-6); }
.footer-brand p { margin-top: var(--space-2); color: var(--muted); max-width: 36ch; }
.footer-col { display: grid; align-content: start; justify-items: start; }
.footer-col h2 { margin-bottom: var(--space-1); font-size: var(--text-sm); line-height: var(--leading-sm); letter-spacing: 0; color: var(--muted); }
.footer-col a { display: inline-flex; align-items: center; min-height: var(--target); text-decoration: none; font-weight: 700; }
.footer-col a:hover { text-decoration: underline; }
.footer-col .text-button { color: var(--ink); font-size: var(--text-sm); }

/* ---------- Dialogs ---------- */

dialog { width: min(calc(100% - 32px), 520px); max-height: calc(100dvh - 32px); padding: var(--space-6); border: 0; border-radius: var(--radius-lg); color: var(--ink); background: var(--surface); box-shadow: var(--shadow-3); overflow: auto; overscroll-behavior: contain; }
dialog::backdrop { background: var(--scrim); backdrop-filter: blur(4px); }
dialog p { color: var(--muted); }
#dialog-copy { margin-block: var(--space-3) var(--space-5); }
#checkout-dialog { width: min(calc(100% - 32px), 560px); }
#radar-dialog { width: min(calc(100% - 32px), 640px); }
.dialog-head { display: flex; align-items: start; justify-content: space-between; gap: var(--space-3); margin-bottom: var(--space-3); }
.dialog-head h2 { font-size: var(--text-2xl); line-height: var(--leading-2xl); }
.dialog-close { margin: calc(var(--space-2) * -1) calc(var(--space-2) * -1) 0 0; }
.dialog-kicker { color: var(--caution); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 700; margin-bottom: var(--space-1); }
.dialog-lede { margin-bottom: var(--space-4); }
.dialog-fineprint { margin-block: var(--space-3) var(--space-4); font-size: var(--text-xs); line-height: var(--leading-xs); }
#checkout-description { margin-bottom: var(--space-4); }
.checkout-list { display: grid; gap: var(--space-2); margin: 0; padding: 0; list-style: none; }
.checkout-list li, .checkout-procedure { padding: var(--space-3) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--wash); }
.checkout-list li { display: flex; justify-content: space-between; align-items: center; gap: var(--space-3); }
.checkout-list small, .checkout-procedure small { display: block; color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); margin-top: 2px; }
.checkout-lots-note { margin-top: var(--space-3); color: var(--ink); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 600; }
.checkout-total { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); margin-block: var(--space-4); padding-top: var(--space-4); border-top: 1px solid var(--line); }
.checkout-total strong { font-size: var(--text-lg); }
.field-error { margin-top: var(--space-2); color: var(--critical) !important; font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 600; }
.field-group { min-width: 0; margin: 0 0 var(--space-5); padding: 0; border: 0; }
.field-group legend { padding: 0; margin-bottom: var(--space-2); font-weight: 700; }
.field-hint { color: var(--muted); font-weight: 500; font-size: var(--text-sm); }
.checkbox-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 var(--space-3); padding: var(--space-1) var(--space-3); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.checkbox-grid--3 { margin-bottom: var(--space-3); }
.field-group:has([aria-invalid="true"]) .checkbox-grid { border-color: var(--critical-line); background: var(--critical-wash); }
.text-field input[aria-invalid="true"] { border-color: var(--critical-line); }
.pick { display: flex; align-items: center; gap: var(--space-2); min-height: var(--target); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 600; }
.pick input { width: 18px; height: 18px; flex: none; margin: 0; }
.choice-list, .choice-row { display: grid; gap: var(--space-2); }
.choice-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.choice { display: flex; align-items: center; gap: var(--space-3); min-height: 52px; padding: var(--space-2) var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: var(--text-sm); line-height: var(--leading-sm); transition: background-color var(--dur-1) var(--ease); }
.choice:hover { background: var(--wash); }
.choice:has(input:checked) { background: var(--signal-wash); border-color: var(--signal-line); }
.choice input { width: 18px; height: 18px; flex: none; margin: 0; }
.choice small { display: block; color: var(--muted); font-weight: 600; }
.radar-preview { display: grid; gap: var(--space-2); padding: var(--space-4); border-radius: var(--radius-md); background: var(--wash); font-size: var(--text-sm); line-height: var(--leading-sm); }
.radar-preview p { color: var(--ink); }
.radar-preview .context { color: var(--muted); }
#radar-done-text { margin-block: var(--space-3) var(--space-5); color: var(--ink); font-size: var(--text-md); line-height: var(--leading-md); }

/* ---------- Reports ---------- */

.report { margin-top: var(--space-3); }
.report-heading { padding-bottom: var(--space-4); }
.report-title { margin-bottom: var(--space-2); font-size: var(--text-3xl); line-height: var(--leading-3xl); letter-spacing: var(--tracking-heading); }
.report-meta { color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 600; }
.report-lede { color: var(--muted); max-width: 72ch; }
.report-nav { position: sticky; top: 0; z-index: var(--z-sticky); display: flex; gap: var(--space-5); overflow-x: auto; margin-bottom: var(--space-6); border-bottom: 1px solid var(--line); background: var(--surface); scrollbar-width: thin; }
.report-nav .text-button { flex: none; color: var(--muted); }
.report-nav .text-button:hover { color: var(--signal); }
.report-section { margin-top: var(--space-9); }
.report-section > h3, .report-section .source-heading h3 { font-size: var(--text-xl); line-height: var(--leading-xl); letter-spacing: var(--tracking-heading); margin-bottom: var(--space-2); }
.report-section > .report-lede { margin-bottom: var(--space-4); }
.report-group { margin-top: var(--space-5); }
.report-table { width: 100%; border-spacing: 0; border-collapse: collapse; text-align: left; font-size: var(--text-sm); line-height: var(--leading-sm); }
.report-table caption { padding-bottom: var(--space-2); text-align: left; color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: 700; }
.report-table th, .report-table td { padding: var(--space-3); border-bottom: 1px solid var(--line); vertical-align: top; }
.report-table thead th { color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: 700; border-bottom-color: var(--line-strong); }
.report-table tbody th { font-weight: 700; }
.report-table small { display: block; margin-top: 2px; color: var(--muted); font-weight: 500; }
.report-table small.warn-text { color: var(--caution); }
.report-table .num { text-align: right; white-space: nowrap; }
.report-table .cite { max-width: 60ch; }
.table-scroll .report-table { min-width: 640px; }
.table-scroll:focus-visible { box-shadow: 0 0 0 4px var(--focus-halo); }
.report-metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: var(--space-2); margin-block: var(--space-4); }
.report-metrics > div { padding: var(--space-3) var(--space-4); background: var(--wash); border-radius: var(--radius-sm); }
.report-metrics dt { font-size: var(--text-xs); line-height: var(--leading-xs); color: var(--muted); font-weight: 600; }
.report-metrics dd { margin-top: var(--space-1); font-weight: 700; overflow-wrap: anywhere; }
.metric-note { margin-top: 2px; color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); }
.lots-details { margin-top: var(--space-2); border: 1px solid var(--line); border-radius: var(--radius-sm); }
.lots-details summary { min-height: var(--target); display: flex; align-items: center; padding: var(--space-2) var(--space-3); font-weight: 700; font-size: var(--text-sm); }
.lots-details summary:hover { background: var(--wash); }
.lots-note { padding: 0 var(--space-3) var(--space-3); color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.report-action { margin-top: var(--space-4); }
.report-footer { display: flex; gap: var(--space-3); justify-content: space-between; align-items: center; flex-wrap: wrap; margin-top: var(--space-9); padding-top: var(--space-5); border-top: 1px solid var(--line); }
.report-footer p { color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.table-title { margin-block: var(--space-6) var(--space-2); }

/* Verdict card */
.verdict { padding: var(--space-6); border-radius: var(--radius-xl); background: var(--ink); color: var(--paper); }
.verdict :focus-visible { outline-color: var(--focus-on-ink); }
.verdict:focus { outline: none; }
.verdict-main { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: var(--space-7); }
.verdict-call { display: grid; align-content: start; gap: var(--space-3); }
.verdict-title { display: flex; align-items: center; gap: var(--space-3); font-size: var(--text-4xl); line-height: var(--leading-4xl); letter-spacing: var(--tracking-display); }
.verdict-dot { flex: none; width: 18px; height: 18px; border-radius: 50%; background: var(--positive-on-ink); box-shadow: 0 0 0 6px var(--positive-halo-on-ink); }
.verdict--warn .verdict-dot { background: transparent; box-shadow: inset 0 0 0 4px var(--positive-on-ink), 0 0 0 6px var(--positive-halo-on-ink); }
.verdict--critical .verdict-dot { background: var(--paper); box-shadow: 0 0 0 6px var(--positive-halo-on-ink); }
.verdict-lede { color: var(--muted-on-ink); font-size: var(--text-md); line-height: var(--leading-md); }
.verdict-reasons { display: grid; gap: var(--space-4); margin: 0; padding: 0; list-style: none; counter-reset: reason; }
.verdict-reasons li { position: relative; padding-left: var(--space-7); counter-increment: reason; }
.verdict-reasons li::before { content: counter(reason); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; border: 1px solid var(--line-on-ink); color: var(--signal-on-ink); font-size: var(--text-xs); font-weight: 700; }
.verdict-reasons p { margin-top: var(--space-1); color: var(--muted-on-ink); font-size: var(--text-sm); line-height: var(--leading-sm); }
.verdict-reasons .cite { color: var(--faint-on-ink); }
.verdict-facts { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-6); padding-top: var(--space-5); border-top: 1px solid var(--line-on-ink); }
.verdict-facts dt { color: var(--faint-on-ink); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: 700; }
.verdict-facts dd { margin-top: var(--space-1); font-size: var(--text-md); line-height: var(--leading-md); font-weight: 700; }
.verdict-facts p { margin-top: var(--space-1); color: var(--muted-on-ink); font-size: var(--text-xs); line-height: var(--leading-xs); }

/* Requirements, profile, clauses */
.section-split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 340px); gap: var(--space-5); align-items: start; margin-bottom: var(--space-4); }
.profile-card { display: grid; gap: var(--space-2); padding: var(--space-4); border: 1px dashed var(--caution-line); border-radius: var(--radius-md); background: var(--caution-wash); }
.profile-card dl { display: grid; gap: var(--space-2); }
.profile-card dt { color: var(--caution); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: 700; }
.profile-card dd { font-size: var(--text-sm); line-height: var(--leading-sm); font-weight: 600; }
.profile-note { color: var(--caution); font-size: var(--text-xs); line-height: var(--leading-xs); }
.clause-list { display: grid; margin: var(--space-3) 0 0; padding: 0; list-style: none; }
.clause-list li { padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.clause-list p { margin-top: var(--space-1); color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }

/* How it is won */
.win-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: var(--space-4); margin-block: var(--space-4) var(--space-5); }
.formula, .cheap-points { padding: var(--space-5); border-radius: var(--radius-md); background: var(--wash); }
.formula-label { color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: 700; }
.formula-expression { margin-block: var(--space-2); font-size: var(--text-2xl); line-height: var(--leading-2xl); font-weight: 700; letter-spacing: var(--tracking-tight); }
.formula-note { color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); margin-bottom: var(--space-4); }
.points-table { background: var(--surface); border-radius: var(--radius-sm); }
.points-table caption { padding: var(--space-2) 0; }
.cheap-points ul { display: grid; gap: var(--space-4); margin: var(--space-3) 0 var(--space-4); padding: 0; list-style: none; }
.cheap-value { display: block; font-size: var(--text-2xl); line-height: var(--leading-2xl); font-weight: 700; color: var(--signal); }
.cheap-points li p { font-size: var(--text-sm); line-height: var(--leading-sm); }

/* Costs */
.cost-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-5); margin-top: var(--space-5); }
.cost-grid h4 { margin-bottom: var(--space-2); }
.cost-list { display: grid; margin: 0; padding: 0; list-style: none; border-top: 1px solid var(--line-strong); }
.cost-item { display: flex; justify-content: space-between; align-items: start; gap: var(--space-4); padding-block: var(--space-3); border-bottom: 1px solid var(--line); }
.cost-label { display: block; font-weight: 700; font-size: var(--text-sm); line-height: var(--leading-sm); }
.cost-detail { display: block; color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); margin-top: 2px; }
.cost-value { flex: none; max-width: 48%; text-align: right; font-weight: 700; font-size: var(--text-sm); line-height: var(--leading-sm); }
.cost-item--saving .cost-value { color: var(--positive); }
.cost-item--warn .cost-value { color: var(--caution); }

/* Anomalies and quesiti */
.anomaly-list { display: grid; margin: var(--space-4) 0 0; padding: 0; list-style: none; }
.anomaly { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: var(--space-5); padding-block: var(--space-5); border-top: 1px solid var(--line); }
.anomaly-finding p { margin-top: var(--space-1); color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.anomaly-question blockquote { margin-top: var(--space-2); padding: var(--space-4); border-radius: var(--radius-sm); background: var(--wash); font-size: var(--text-sm); line-height: var(--leading-sm); }

/* Sector module, pack, guarantee */
.sector-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-block: var(--space-4) var(--space-5); }
.sector-facts > div { padding: var(--space-4); border: 1px solid var(--line); border-radius: var(--radius-md); }
.sector-facts p { margin-top: var(--space-2); color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); display: flex; flex-wrap: wrap; gap: var(--space-2); }
.pack-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-top: var(--space-5); align-items: start; }
.dgue-card { padding: var(--space-5); border: 1px dashed var(--caution-line); border-radius: var(--radius-md); }
.guarantee { padding: var(--space-5); border-radius: var(--radius-md); background: var(--positive-wash); }
.guarantee p { color: var(--ink); max-width: 72ch; }

/* Sources and checklist */
.source-panel, .analysis-work, .question-panel { padding: var(--space-5); border-radius: var(--radius-md); background: var(--wash); }
.source-panel { margin-top: var(--space-5); }
.pack-grid .source-panel { margin-top: 0; }
.source-panel > .context { margin-top: var(--space-2); }
.source-heading { display: flex; align-items: start; justify-content: space-between; flex-wrap: wrap; column-gap: var(--space-3); row-gap: var(--space-2); }
.source-list { display: grid; gap: var(--space-2); padding: 0; margin: var(--space-4) 0 0; list-style: none; }
.source-list li { display: flex; align-items: center; justify-content: space-between; gap: var(--space-2); padding: var(--space-2) var(--space-3); background: var(--surface); border-radius: var(--radius-sm); font-size: var(--text-sm); line-height: var(--leading-sm); }
.source-list small, .task-item small { display: block; color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: 500; }
.analysis-work { margin-top: var(--space-5); }
.analysis-work p { color: var(--muted); font-size: var(--text-sm); }
.task-group { min-width: 0; margin: var(--space-4) 0 0; padding: var(--space-2) var(--space-4); border: 0; border-radius: var(--radius-sm); background: var(--surface); }
.task-group legend { float: left; width: 100%; padding: var(--space-2) 0; font-size: var(--text-sm); font-weight: 700; }
.task-item { clear: both; padding-block: var(--space-2); align-items: start; }
.task-item input { margin-top: 2px; }
.task-item + .task-item { border-top: 1px solid var(--line); }
.task-item:has(input:checked) > span { color: var(--positive); }
.question-panel { margin-top: var(--space-5); }
.question-panel p { color: var(--muted); font-size: var(--text-sm); }
.question-panel ol { margin: var(--space-3) 0 0; padding-left: var(--space-5); }
.question-panel li + li { margin-top: var(--space-2); }

/* Flash split */
.flash-tender { padding-top: var(--space-6); border-top: 1px solid var(--line-strong); }
.flash-tender > h3 { font-size: var(--text-xl); line-height: var(--leading-xl); }
.split { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--space-4); margin-block: var(--space-4); }
.split-col { padding: var(--space-5); border-radius: var(--radius-md); }
.split-col--public { background: var(--wash); }
.split-col--paid { border: 1px solid var(--signal-line); background: var(--surface); }
.split-col h4 { font-size: var(--text-md); line-height: var(--leading-md); }
.split-col--paid h4 { color: var(--signal); }
.split-note { color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); margin-bottom: var(--space-2); }

/* ---------- Article and blog ---------- */

.page-head { padding-block: var(--space-9) var(--space-6); }
.page-head h1 { font-size: var(--text-5xl); line-height: var(--leading-5xl); letter-spacing: var(--tracking-display); max-width: 18ch; }
.page-head .lede { margin-top: var(--space-4); }
.breadcrumb { display: flex; flex-wrap: wrap; gap: var(--space-2); margin-bottom: var(--space-5); color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.breadcrumb a { color: var(--signal); font-weight: 600; text-decoration: none; }
.breadcrumb a:hover { text-decoration: underline; }
.post-list { display: grid; gap: var(--space-4); margin: 0 0 var(--space-10); padding: 0; list-style: none; }
.post-card { display: grid; gap: var(--space-2); padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-lg); }
.post-card :is(h2, h3) { font-size: var(--text-lg); line-height: var(--leading-lg); }
.post-card a { text-decoration: none; }
.post-card a:hover { text-decoration: underline; }
.post-card p { color: var(--muted); max-width: 70ch; }
.post-card--placeholder { border-style: dashed; background: var(--wash); }
.post-card--placeholder :is(h2, h3) { color: var(--muted); }
.related .post-list { margin-bottom: 0; grid-template-columns: 1fr; }
.post-list-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-4); }

.article-layout { display: grid; grid-template-columns: 220px minmax(0, var(--measure)); justify-content: space-between; gap: var(--space-9); padding-bottom: var(--space-10); }
.article-layout > .article-body { grid-column: 2; }
.article-header { grid-column: 1 / -1; padding-block: var(--space-9) var(--space-6); border-bottom: 1px solid var(--line); }
.article-header h1 { max-width: 22ch; font-size: var(--text-5xl); line-height: var(--leading-5xl); letter-spacing: var(--tracking-display); }
.standfirst { max-width: 60ch; margin-top: var(--space-5); color: var(--muted); font-size: var(--text-lg); line-height: var(--leading-xl); }
.byline { display: flex; flex-wrap: wrap; gap: var(--space-1) var(--space-4); margin-top: var(--space-5); color: var(--muted); font-size: var(--text-sm); line-height: var(--leading-sm); }
.byline strong { color: var(--ink); }
.toc { position: sticky; top: var(--space-5); align-self: start; font-size: var(--text-sm); line-height: var(--leading-sm); }
.toc h2 { font-size: var(--text-sm); line-height: var(--leading-sm); letter-spacing: 0; color: var(--muted); margin-bottom: var(--space-2); }
.toc ol { display: grid; margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--line); }
.toc a { display: block; padding: var(--space-2) var(--space-3); color: var(--muted); font-weight: 600; text-decoration: none; }
.toc a:hover { color: var(--signal); background: var(--wash); }
.prose { font-size: var(--text-md); line-height: var(--leading-md); }
.prose > * + * { margin-top: var(--space-5); }
.prose h2 { margin-top: var(--space-9); font-size: var(--text-2xl); line-height: var(--leading-2xl); }
.prose h2 + p { margin-top: var(--space-3); }
.prose p, .prose li { color: var(--ink); }
.prose ul, .prose ol { padding-left: var(--space-5); }
.prose li + li { margin-top: var(--space-2); }
.prose a { color: var(--signal); font-weight: 600; }
.prose strong { font-weight: 700; }
.prose .report-table { font-size: var(--text-sm); }
.facts-box { margin-top: var(--space-8); padding: var(--space-5); border-radius: var(--radius-md); background: var(--wash); font-size: var(--text-sm); line-height: var(--leading-sm); }
.facts-box h2 { font-size: var(--text-md); line-height: var(--leading-md); margin: 0 0 var(--space-3); }
.facts-box ol { margin: 0; padding-left: var(--space-5); display: grid; gap: var(--space-2); }
.facts-box li { color: var(--ink); }
.facts-box a { color: var(--signal); font-weight: 600; }
.cta-block { display: grid; gap: var(--space-4); margin-top: var(--space-8); padding: var(--space-6); border-radius: var(--radius-lg); background: var(--ink); color: var(--paper); }
.cta-block :focus-visible { outline-color: var(--focus-on-ink); }
.cta-block h2 { margin: 0; font-size: var(--text-2xl); line-height: var(--leading-2xl); color: var(--paper); }
.cta-block p { color: var(--muted-on-ink); }
.cta-actions { display: flex; flex-wrap: wrap; gap: var(--space-2); }
.related { margin-top: var(--space-8); }
.related h2 { font-size: var(--text-xl); line-height: var(--leading-xl); margin-bottom: var(--space-4); }

/* ---------- Living style guide ---------- */

.sg-section { padding-block: var(--space-8); border-top: 1px solid var(--line); }
.sg-section > h2 { margin-bottom: var(--space-2); }
.sg-section > .lede { margin-bottom: var(--space-6); }
.sg-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: var(--space-4); }
.sg-swatch { border: 1px solid var(--line); border-radius: var(--radius-md); overflow: hidden; font-size: var(--text-sm); line-height: var(--leading-sm); }
.sg-chip { height: 88px; display: flex; align-items: end; padding: var(--space-3); font-weight: 700; }
.sg-swatch dl { display: grid; gap: 2px; padding: var(--space-3); }
.sg-swatch dt { font-weight: 700; }
.sg-swatch dd { color: var(--muted); }
.sg-type-row { display: grid; grid-template-columns: 200px minmax(0, 1fr); gap: var(--space-5); align-items: baseline; padding-block: var(--space-4); border-bottom: 1px solid var(--line); }
.sg-type-row code { color: var(--muted); font-size: var(--text-xs); }
.sg-type-sample { font-weight: 700; letter-spacing: var(--tracking-heading); overflow-wrap: anywhere; }
.sg-scale { display: grid; gap: var(--space-2); }
.sg-scale-row { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: var(--space-4); align-items: center; font-size: var(--text-sm); }
.sg-bar { height: 16px; border-radius: 4px; background: var(--signal); }
.sg-box { display: grid; place-items: center; height: 96px; border: 1px solid var(--line); background: var(--surface); font-size: var(--text-sm); font-weight: 700; }
.sg-demo { display: flex; flex-wrap: wrap; gap: var(--space-3); align-items: center; padding: var(--space-5); border: 1px solid var(--line); border-radius: var(--radius-md); }
.sg-demo + .sg-demo { margin-top: var(--space-3); }
.sg-demo--ink { background: var(--ink); border-color: var(--ink); }
.sg-label { width: 100%; color: var(--muted); font-size: var(--text-xs); line-height: var(--leading-xs); font-weight: 700; }
.sg-demo--ink .sg-label { color: var(--faint-on-ink); }
.is-hover.button--primary { background: var(--signal-hover); }
.is-hover.button--outline { background: var(--signal-wash); color: var(--signal); }
.is-focus { outline: 2px solid var(--focus); outline-offset: 2px; box-shadow: 0 0 0 6px var(--focus-halo); }

/* ---------- Responsive ---------- */

@media (max-width: 1100px) {
  .verdict-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  :root { --gutter: 24px; }
  .hero-copy { padding-left: var(--space-7); }
  .hero h1 { font-size: var(--text-5xl); line-height: var(--leading-5xl); }
  .search-form { width: calc(100% - 48px); }
  .nav { gap: var(--space-4); }
  .nav-links { gap: var(--space-4); }
  .explore-grid { grid-template-columns: minmax(0, 1fr) minmax(218px, 254px); gap: var(--space-4); }
  .selection-bar { padding: var(--space-4); }
  .flow { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .flow::before { display: none; }
  .value-grid { gap: var(--space-7); }
  .verdict-main { grid-template-columns: 1fr; gap: var(--space-5); }
  .article-layout { grid-template-columns: 180px minmax(0, 1fr); gap: var(--space-6); }
}

@media (max-width: 860px) {
  .nav { flex-wrap: wrap; row-gap: 0; }
  .nav-links { order: 3; width: 100%; overflow-x: auto; gap: var(--space-5); scrollbar-width: none; border-top: 1px solid var(--line); }
  .nav-links::-webkit-scrollbar { display: none; }
  .nav-links a:first-child { display: none; }
  .value-grid, .faq, .service-note, .win-grid, .anomaly, .section-split, .pack-grid, .detail-grid { grid-template-columns: 1fr; }
  .service-note h3 { grid-row: auto; }
  .service-note > p { grid-column: auto; }
  .plans { grid-template-columns: 1fr; }
  .plan + .plan { border-left: 0; border-top: 1px solid var(--line); }
  .article-layout { grid-template-columns: minmax(0, 1fr); }
  .article-layout > .article-body { grid-column: 1; }
  .toc { position: static; padding: var(--space-4); border-radius: var(--radius-md); background: var(--wash); }
  .toc ol { border-left: 0; }
  .toc a { padding-inline: 0; }
  .post-list-grid { grid-template-columns: 1fr; }
}

@media (max-width: 760px) {
  :root { --gutter: 16px; }
  .section { margin-block-start: var(--space-9); }
  .section-intro h2, .flow-head h2, .value-copy h2 { font-size: var(--text-2xl); line-height: var(--leading-2xl); }
  h2 { font-size: var(--text-2xl); line-height: var(--leading-2xl); }
  .hero-panel { grid-template-columns: 1fr; min-height: 0; border-radius: var(--radius-lg); }
  .hero-copy { padding: var(--space-6) var(--space-5) var(--space-8); gap: var(--space-4); }
  .hero h1 { font-size: var(--text-4xl); line-height: var(--leading-4xl); }
  .hero-copy > p { font-size: var(--text-base); line-height: var(--leading-base); }
  .hero-image { min-height: 200px; }
  .hero-image img { object-position: 55% 58%; }
  .image-viewfinder { width: 96px; }
  .search-form { width: calc(100% - 24px); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: -32px; padding: var(--space-3); }
  .search-form .keyword, .search-form > button { grid-column: 1 / -1; }
  .result-row { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding: var(--space-4); }
  .result-meta { text-align: left; }
  .explore-grid { grid-template-columns: 1fr; }
  .selection-bar { position: static; }
  .detail-section { padding: var(--space-4); border-radius: var(--radius-lg); }
  .detail-section:has(#report) { padding: var(--space-2) 0 0; border: 0; border-radius: 0; }
  .flow-band, .value-band { padding-block: var(--space-9); }
  .flow-head { grid-template-columns: 1fr; }
  .flow-head p { justify-self: start; }
  .flow { grid-template-columns: 1fr; gap: var(--space-5); margin-top: var(--space-7); }
  .flow-step { padding-top: 0; padding-left: var(--space-6); }
  .flow-step::before { top: 6px; }
  .flow-step h3 { font-size: var(--text-xl); line-height: var(--leading-xl); }
  .rules, .cost-grid, .split, .sector-facts, .choice-row { grid-template-columns: 1fr; }
  .ladder { min-width: 840px; }
  .ladder th, .ladder td { padding-inline: var(--space-3); }
  .ladder tbody th, .ladder thead .ladder-corner { width: 136px; min-width: 136px; font-size: var(--text-xs); line-height: var(--leading-xs); }
  .checkbox-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .service-prices { grid-template-columns: 1fr; }
  .excerpt { padding: var(--space-4); }
  .excerpt-list li { grid-template-columns: 1fr; gap: var(--space-1); }
  .excerpt-frame { inset: -8px; }
  .excerpt-frame i { width: 20px; height: 20px; }
  .verdict { padding: var(--space-4); border-radius: var(--radius-lg); }
  .verdict-reasons li { padding-left: var(--space-6); }
  .verdict-title { font-size: var(--text-2xl); line-height: var(--leading-2xl); }
  .verdict-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .report-title { font-size: var(--text-2xl); line-height: var(--leading-2xl); }
  .data-list > div { grid-template-columns: 1fr; gap: var(--space-1); }
  .footer-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer-brand { grid-column: 1 / -1; }
  .final-cta { flex-direction: column; align-items: start; }
  .post-feature { padding: var(--space-5); }
  .post-feature-title { font-size: var(--text-2xl); line-height: var(--leading-2xl); }
  .page-head h1, .article-header h1 { font-size: var(--text-3xl); line-height: var(--leading-3xl); }
  .standfirst { font-size: var(--text-md); line-height: var(--leading-md); }
  .sg-type-row { grid-template-columns: 1fr; gap: var(--space-1); }
  dialog { padding: var(--space-5); }
}

@media (max-width: 400px) {
  .nav .brand { font-size: var(--text-base); }
  .nav-action { padding-inline: var(--space-2); }
  .hero h1 { font-size: var(--text-3xl); line-height: var(--leading-3xl); }
  .verdict-facts { grid-template-columns: 1fr; }
  .segmented button { padding-inline: var(--space-2); font-size: var(--text-xs); line-height: var(--leading-xs); }
  .cost-item { flex-direction: column; gap: var(--space-1); }
  .cost-value { max-width: none; text-align: left; }
}

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

@media (forced-colors: active) {
  .pill, .tag { border: 1px solid CanvasText; }
  .mark { forced-color-adjust: none; }
}

@media print {
  @page { size: A4; margin: 14mm 16mm; }
  body { background: white; color: black; }
  body.report-print > :not(main), body.report-print main > :not(#scheda),
  body.report-print #scheda > :not(#detail-content), body.report-print #detail-content > :not(.report),
  body.report-print .report-footer button { display: none !important; }
  body.report-print #scheda, body.report-print .report { width: 100%; margin: 0; padding: 0; border: 0; background: white; }
  body.report-print .report-table tr, body.report-print details, body.report-print .anomaly, body.report-print .cost-item { break-inside: avoid; }
  body.report-print .table-scroll { overflow: visible; }
  body.report-print .table-scroll .report-table { min-width: 0; }
  body.report-print .report-nav, body.report-print .report-action, body.report-print .source-panel .button, body.report-print [data-export], body.report-print [data-copy] { display: none !important; }
  body.report-print .verdict { background: white; color: var(--ink); border: 1px solid var(--line-strong); }
  body.report-print .verdict :is(p, dt, .cite, .verdict-lede) { color: var(--ink); }
  body.report-print .tag--on-ink { color: var(--ink); }
  body.report-print .report-section { margin-top: 16px; }
}
