/* Design tokens and shared components, ported from the Claude Design prototype.
   Every number the visitor reads uses the text font (Hanken Grotesk); only the big
   result amount and the decorative 01/02/03 use .display (Instrument Serif). */

@font-face {
  font-family: "Hanken Grotesk";
  src: url("../fonts/hanken-grotesk-latin.a6b899943e31.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-latin.c008db4e8a97.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

:root {
  --h: 162;  /* accent hue */
  --hd: 170; /* dark/ink hue */

  --bg: oklch(0.98 0.006 140);
  --ink: oklch(0.24 0.02 var(--hd));
  --muted: oklch(0.45 0.015 var(--hd));
  --muted-2: oklch(0.56 0.015 var(--hd));
  --accent: oklch(0.52 0.12 var(--h));
  --accent-hover: oklch(0.45 0.12 var(--h));
  --link: oklch(0.42 0.11 var(--h));
  --dark: oklch(0.24 0.03 var(--hd));
  --on-dark: oklch(0.85 0.02 var(--h));
  --tint: oklch(0.95 0.03 var(--h));
  --tint-border: oklch(0.87 0.05 var(--h));
  --card: #fff;
  --border: oklch(0.91 0.012 150);
  --border-strong: oklch(0.88 0.012 150);
  --row-divider: oklch(0.94 0.008 150);
  --table-head: oklch(0.97 0.008 150);
  --error: oklch(0.52 0.17 28);

  --dot-ok: oklch(0.6 0.14 150);
  --dot-warn: oklch(0.74 0.15 70);
  --dot-bad: oklch(0.6 0.19 28);
  --dot-none: oklch(0.88 0.01 150);

  --radius-card: 22px;
  --radius-table: 18px;
  --radius-cta: 20px;
  --radius-result: 16px;
  --radius-input: 12px;
  --radius-pill: 99px;

  --font: "Hanken Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --font-display: "Instrument Serif", Georgia, serif;

  --gutter: 24px;
  --wide: 1160px;
  --narrow: 860px;
  --article: 760px;
}

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

[hidden] { display: none !important; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16.5px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
}

a { color: var(--link); text-underline-offset: 3px; }

h1, h2, h3 { line-height: 1.12; margin: 0 0 0.5em; font-weight: 700; }
h1 { font-size: clamp(32px, 5vw, 56px); letter-spacing: -0.035em; }
h2 { font-size: clamp(24px, 3.2vw, 38px); letter-spacing: -0.025em; }
h3 { font-size: 20px; letter-spacing: -0.02em; }

.display { font-family: var(--font-display); font-weight: 400; letter-spacing: -0.01em; }
.muted { color: var(--muted); }
.small { font-size: 13.5px; }

.container { max-width: var(--wide); margin: 0 auto; padding: 0 var(--gutter); }
.container--narrow { max-width: var(--narrow); }
.container--article { max-width: var(--article); }
.section { padding-top: 60px; }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap;
}

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

.site-header { padding: 20px 0; }
.site-header__inner { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.brand {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--ink); text-decoration: none; font-size: 21px; font-weight: 700; letter-spacing: -0.02em;
}
.brand__word { white-space: nowrap; }
.brand__max { color: var(--accent-hover); }
.brand__tld { color: oklch(0.55 0.015 170); font-weight: 500; }
/* Roof line in green, apex dot (header only) in ink; recoloured per use. */
.brand-mark { width: 26px; height: 21px; flex: none; }
.brand-mark path { stroke: var(--mark-line, var(--accent)); stroke-width: var(--mark-stroke, 3.2); }
.brand-mark circle { fill: var(--mark-dot, oklch(0.24 0.02 170)); }
.site-header .brand { gap: 9px; }
.site-footer__brand { margin-bottom: 18px; }
.site-footer__brand .brand { gap: 8px; font-size: 16px; color: oklch(0.32 0.02 170); }
.site-footer__brand .brand-mark { width: 22px; height: 18px; --mark-stroke: 3; }
.site-nav { display: flex; align-items: center; gap: 22px; margin-left: auto; flex-wrap: wrap; }
.site-nav a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 15px; }
.site-nav a:hover { color: var(--accent); }

/* --- Buttons and pills -------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border: 0; border-radius: var(--radius-pill); cursor: pointer;
  font: inherit; font-weight: 600; font-size: 15.5px; text-decoration: none;
  padding: 11px 18px; line-height: 1.2;
}
.btn--dark { background: var(--dark); color: #fff; }
.btn--dark:hover { background: oklch(0.3 0.03 var(--hd)); }
.btn--accent { background: var(--accent); color: #fff; }
.btn--accent:hover { background: var(--accent-hover); }
.btn--outline { background: #fff; color: var(--ink); border: 1px solid var(--border-strong); }
.btn--sm { padding: 8px 16px; font-size: 14.5px; }
.site-nav .btn--dark { color: #fff; padding: 9px 16px; }

/* --- Cards and blocks --------------------------------------------------- */

.card { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-card); padding: 28px; }
.card--table { border-radius: var(--radius-table); padding: 0; overflow: hidden; }
.cta-dark { background: var(--dark); color: #fff; border-radius: var(--radius-cta); padding: 26px; }
.cta-dark p { color: var(--on-dark); }
.tint-block {
  background: var(--tint); border: 1px solid var(--tint-border); border-radius: 14px; padding: 18px 20px;
}

/* --- Breadcrumb --------------------------------------------------------- */

.breadcrumb { font-size: 14px; color: var(--muted); margin: 8px 0 18px; }
.breadcrumb ol { list-style: none; display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 6px; color: var(--muted-2); }
.breadcrumb a { color: var(--muted); }
.breadcrumb [aria-current] { color: var(--ink); font-weight: 600; }

/* --- Tables ------------------------------------------------------------- */

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.data-table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.data-table th {
  background: var(--table-head); text-align: left; font-size: 12px; font-weight: 600;
  text-transform: uppercase; letter-spacing: 0.04em; color: var(--muted); padding: 12px 16px;
}
.data-table td { padding: 13px 16px; border-top: 1px solid var(--row-divider); }
/* Row headers (first column) read as data, not as column headings. */
.data-table tbody th {
  background: none; font-size: inherit; text-transform: none; letter-spacing: normal;
  color: var(--ink); padding: 13px 16px; border-top: 1px solid var(--row-divider);
}
.data-table .num { text-align: right; white-space: nowrap; }

.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--dot-none); }
.dot--ok { background: var(--dot-ok); }
.dot--warn { background: var(--dot-warn); }
.dot--bad { background: var(--dot-bad); }

/* --- Footer ------------------------------------------------------------- */

.site-footer { margin-top: 80px; padding: 36px 0 48px; border-top: 1px solid var(--border); }
.footer-links { display: flex; flex-wrap: wrap; gap: 8px 22px; margin: 0 0 16px; padding: 0; list-style: none; }
.footer-links a { color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.disclaimer { font-size: 13px; color: var(--muted-2); max-width: 760px; }

/* --- Floating "back to top" -------------------------------------------- */

.to-top {
  position: fixed; right: 20px; bottom: 20px; z-index: 20;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.to-top.is-visible { opacity: 1; pointer-events: auto; }

/* --- Utilities ---------------------------------------------------------- */

.row { display: flex; gap: 10px; align-items: center; }
.row--wrap { flex-wrap: wrap; }
.row--tight { gap: 6px; }
.row--end { justify-content: flex-end; }
.stack { display: flex; flex-direction: column; gap: 22px; margin-top: 26px; }
.stack--tight { gap: 14px; margin-top: 0; }
.italic { font-style: italic; }
.strong { font-weight: 600; }
.h2-sm { font-size: clamp(24px, 3vw, 30px); letter-spacing: -0.03em; margin: 0; }
.no-js .js-only { display: none !important; }

/* --- Pills, tabs, inputs, switch --------------------------------------- */

.pill, .tab {
  border-radius: var(--radius-pill); cursor: pointer; font: inherit; font-weight: 600;
  border: 1px solid var(--border-strong); background: #fff; color: oklch(0.34 0.02 var(--hd));
}
.pill { padding: 11px 18px; font-size: 15.5px; }
.pill--sm { padding: 8px 16px; font-size: 14.5px; }
.pill[aria-pressed="true"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.tab { padding: 9px 15px; font-size: 14.5px; border-color: oklch(0.9 0.012 150); color: oklch(0.42 0.015 var(--hd)); }
.tab[aria-pressed="true"] { border-color: var(--accent); background: oklch(0.94 0.03 var(--h)); color: oklch(0.34 0.09 var(--h)); }

.input {
  width: 100%; padding: 14px 15px; border: 1px solid var(--border-strong); border-radius: var(--radius-input);
  background: #fff; font: inherit; font-size: 16px; color: inherit;
}
.input:focus { outline: 2px solid oklch(0.52 0.12 var(--h) / 0.35); outline-offset: 1px; }
.field-label { display: block; font-size: 16px; font-weight: 600; margin-bottom: 6px; }
.error { font-size: 14px; color: var(--error); font-weight: 600; }
.note { margin: 14px 0 0; font-size: 13.5px; color: oklch(0.5 0.015 var(--hd)); line-height: 1.45; }
.link-button {
  padding: 0; border: 0; background: none; font: inherit; font-style: normal; font-weight: 600;
  color: var(--link); cursor: pointer; text-decoration: underline; text-underline-offset: 3px;
}

input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; background: transparent; margin: 4px 0 0; }
input[type="range"]::-webkit-slider-runnable-track { height: 6px; border-radius: 99px; background: oklch(0.91 0.02 150); }
input[type="range"]::-moz-range-track { height: 6px; border-radius: 99px; background: oklch(0.91 0.02 150); }
input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; height: 26px; width: 26px; margin-top: -10px; border-radius: 99px;
  background: var(--accent); border: 3px solid #fff; box-shadow: 0 2px 8px oklch(0.24 0.02 170 / 0.28); cursor: grab;
}
input[type="range"]::-moz-range-thumb {
  height: 20px; width: 20px; border-radius: 99px; background: var(--accent); border: 3px solid #fff;
  box-shadow: 0 2px 8px oklch(0.24 0.02 170 / 0.28); cursor: grab;
}

.slider__head { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.slider__head label { font-size: 16px; font-weight: 600; }
.slider__head output { font-size: 21px; font-weight: 600; line-height: 1; }
.slider--compact .slider__head label { font-size: 14px; color: oklch(0.42 0.015 var(--hd)); }
.slider--compact .slider__head output { font-size: 17px; font-weight: 700; }
.slider__scale { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted-2); }
.slider__more { margin-top: 8px; }
.slider__more label { display: block; font-size: 14px; color: oklch(0.5 0.015 var(--hd)); margin-bottom: 4px; }

.switch {
  display: inline-flex; align-items: center; gap: 10px; padding: 0; border: 0; background: none; cursor: pointer;
  font: inherit; font-size: 14.5px; font-weight: 600; color: oklch(0.34 0.02 var(--hd));
}
.switch__track { position: relative; display: inline-block; width: 44px; height: 26px; border-radius: 99px; background: oklch(0.86 0.015 150); transition: background 0.15s; }
.switch__knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 99px; background: #fff; box-shadow: 0 1px 3px oklch(0.24 0.02 170 / 0.3); transition: left 0.15s; }
.switch[aria-checked="true"] .switch__track { background: var(--accent); }
.switch[aria-checked="true"] .switch__knob { left: 21px; }

.btn--square { border-radius: var(--radius-input); padding: 14px 20px; font-size: 16px; }
.btn--grow { flex: 1; }
.btn--block { width: 100%; margin-top: 14px; padding: 16px; font-size: 17px; }
.btn:disabled { background: var(--border-strong); color: oklch(0.6 0.015 var(--hd)); cursor: not-allowed; }

/* --- Hero + calculator -------------------------------------------------- */

.hero {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); gap: 40px; align-items: start;
  padding-top: 24px;
}
.hero__intro { padding-top: 24px; }
.hero__title { font-size: clamp(38px, 5.4vw, 60px); line-height: 1.02; margin: 0; text-wrap: balance; }
.lead { font-size: clamp(17px, 2vw, 19.5px); line-height: 1.5; color: oklch(0.42 0.015 var(--hd)); max-width: 30em; margin: 18px 0 0; }
.checks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-direction: column; gap: 12px; color: oklch(0.34 0.02 var(--hd)); }
.checks li { display: flex; gap: 10px; }
.checks li::before { content: "✓"; color: var(--accent); font-weight: 700; }

.card--flush { padding: 0; overflow: hidden; box-shadow: 0 20px 50px -30px oklch(0.24 0.04 var(--hd) / 0.5); }
.calc__progress { display: flex; gap: 6px; padding: 18px 24px 0; }
.calc__progress span { height: 4px; flex: 1; border-radius: 99px; background: oklch(0.91 0.02 150); }
.calc__progress .is-done { background: var(--accent); }
.calc__body { padding: 20px 24px 26px; }
.calc__meta {
  display: flex; justify-content: space-between; font-size: 13.5px; font-weight: 600; letter-spacing: 0.04em;
  text-transform: uppercase; color: oklch(0.5 0.015 var(--hd));
}
.calc__step { margin-top: 18px; }
.js .calc__step:not(.is-active) { display: none; }
.no-js .calc__step + .calc__step { border-top: 1px solid var(--row-divider); padding-top: 18px; }
.calc__question { font-size: 20px; font-weight: 600; letter-spacing: -0.015em; margin-bottom: 14px; }
.calc__question--sm { font-size: 18px; margin: 22px 0 12px; }
.calc__total { margin-left: auto; font-size: 14px; font-style: italic; color: oklch(0.52 0.015 var(--hd)); white-space: nowrap; }
.calc__recap { display: flex; gap: 6px 10px; flex-wrap: wrap; align-items: baseline; margin-bottom: 14px; font-size: 14px; font-style: italic; color: oklch(0.52 0.015 var(--hd)); }
.calc__nav { display: flex; gap: 12px; margin-top: 22px; }
.calc__link {
  display: flex; justify-content: space-between; gap: 12px; margin-top: 16px; padding-top: 14px;
  border-top: 1px solid oklch(0.93 0.01 150); font-size: 15px; font-weight: 600; text-decoration: none;
}
.grid-ages { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 12px; }

.debt__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.debt__title { font-size: 16.5px; font-weight: 600; }
.debt__amount { margin-top: 6px; }
.debt__amount .slider__head output { font-size: 19px; }

.result { padding: 22px; border-radius: var(--radius-result); background: var(--dark); color: #fff; }
.result__label { font-size: 14px; letter-spacing: 0.04em; text-transform: uppercase; color: oklch(0.82 0.03 var(--h)); }
.result__amount { font-size: clamp(44px, 8vw, 62px); line-height: 1.02; margin-top: 6px; }
.result__grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 18px 28px; margin: 18px 0 0;
  padding-top: 18px; border-top: 1px solid oklch(1 0 0 / 0.16);
}
.result__grid dt { font-size: 13.5px; color: oklch(0.82 0.03 var(--h)); }
.result__grid dd { margin: 2px 0 0; font-size: 21px; font-weight: 600; }
.result__label-a { margin: 16px 0 0; padding-top: 14px; border-top: 1px solid oklch(1 0 0 / 0.16); font-size: 15.5px; line-height: 1.45; }
.result__note { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; color: oklch(0.82 0.03 var(--h)); }
.result__label { display: flex; align-items: center; gap: 8px; }
.result__label .brand-mark { width: 15px; height: 12px; --mark-line: oklch(0.78 0.12 var(--h)); --mark-stroke: 3.6; }
.result__disclaimer { margin: 12px 0 0; font-size: 13.5px; line-height: 1.45; font-weight: 600; color: #fff; }
.hint {
  margin-top: 14px; padding: 14px 16px; border-radius: 14px; background: var(--tint); border: 1px solid var(--tint-border);
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; font-size: 15.5px;
}
.lead-form { margin-top: 22px; }
.lead-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-top: 12px; }

/* --- "Wat kan ik kopen" block -------------------------------------------- */

.buy-block { display: flex; flex-wrap: wrap; gap: 24px; align-items: center; min-height: 230px; padding: clamp(24px, 3.5vw, 36px); }
.buy-block__text { flex: 1 1 300px; min-width: 0; }
.buy-block__text p { margin: 8px 0 0; max-width: 32em; }
.buy-block__controls { flex: 1 1 500px; min-width: 0; display: flex; flex-direction: column; gap: 14px; }
.buy-block__sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 32px; }
.buy-block__footer { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; border-top: 1px solid oklch(0.93 0.01 150); }

/* --- Rate table ----------------------------------------------------------- */

.rates { display: flex; flex-wrap: wrap; margin-top: 22px; }
.rates__filters {
  flex: 1 1 230px; display: flex; flex-direction: column; gap: 20px; padding: 20px;
  background: oklch(0.975 0.007 150); border-right: 1px solid oklch(0.93 0.01 150);
}
.filter { display: flex; flex-direction: column; gap: 9px; }
.filter__label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: oklch(0.5 0.015 var(--hd)); }
.rates__table { flex: 999 1 420px; min-width: 0; }
.rate-table { width: 100%; border-collapse: collapse; }
.rate-table th {
  background: var(--table-head); padding: 14px 22px; text-align: left; font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; text-transform: uppercase; color: oklch(0.5 0.015 var(--hd));
}
.rate-table td { padding: 16px 22px; border-top: 1px solid var(--row-divider); font-size: 16.5px; }
.rate-table td:first-child { font-weight: 600; }
.rate-table .num { text-align: right; }
.rates__more {
  width: 100%; padding: 15px 22px; border: 0; border-top: 1px solid var(--row-divider); background: #fff; text-align: left;
  font: inherit; font-size: 15.5px; font-weight: 600; color: var(--link); cursor: pointer;
}
.rates__more:hover { background: oklch(0.98 0.008 150); }
.rates__note { margin: 0; padding: 14px 22px; border-top: 1px solid var(--row-divider); font-size: 14.5px; color: oklch(0.45 0.015 var(--hd)); }
.rates__note.small { font-size: 13px; color: var(--muted-2); }
.arrow-link { display: inline-flex; gap: 8px; margin-top: 16px; font-size: 15.5px; font-weight: 600; text-decoration: none; }

/* --- Explanation + CTA ---------------------------------------------------- */

.explain { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; margin-top: 24px; }
.card--sm { border-radius: var(--radius-table); padding: 24px; }
.card--sm h3 { font-size: 18px; font-weight: 600; margin: 8px 0 0; }
.card--sm p { font-size: 15.5px; margin: 6px 0 0; }
.numeral { font-size: 34px; color: var(--accent); line-height: 1; }
.cta-dark--split {
  border-radius: var(--radius-card); padding: clamp(28px, 4vw, 48px);
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px; align-items: center;
}
.cta-dark--split p { margin: 12px 0 22px; max-width: 34em; font-size: 16.5px; }
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; font-size: 16.5px; }
.steps li { display: flex; gap: 14px; align-items: baseline; }
.steps .display { font-size: 24px; color: oklch(0.8 0.08 var(--h)); }

/* --- Wat kan ik kopen ----------------------------------------------------- */

.js .no-js-only { display: none; }
.income { padding-top: 20px; }
.back-link {
  display: inline-flex; align-items: center; gap: 8px; margin-bottom: 18px; padding: 9px 14px 9px 11px;
  border: 1px solid oklch(0.88 0.012 150); border-radius: var(--radius-pill); background: #fff;
  font-size: 14.5px; font-weight: 600; color: oklch(0.34 0.02 170); text-decoration: none;
}
.back-link:hover { border-color: oklch(0.7 0.05 var(--h)); color: var(--ink); }
.income__title { font-size: clamp(32px, 4.8vw, 50px); }
.income__controls { margin-top: 24px; padding: 20px 22px; }
.income__sliders { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 28px; margin-top: 16px; }
a.pill, a.tab { text-decoration: none; }
.pill[aria-current="page"] { background: var(--dark); border-color: var(--dark); color: #fff; }
.income__result {
  margin-top: 16px; padding: 16px 20px; border-radius: 16px; background: #fff; border: 1px solid oklch(0.91 0.012 150);
  display: flex; gap: 8px 24px; flex-wrap: wrap; align-items: baseline; justify-content: space-between;
}
.income__result-main { font-size: 17px; line-height: 1.45; }
.income__result .arrow-link { margin: 0; }

.segmented { display: inline-flex; gap: 4px; margin-top: 22px; padding: 4px; border-radius: var(--radius-pill); background: oklch(0.94 0.01 150); }
.segmented button {
  min-width: 172px; padding: 9px 18px; border: none; border-radius: var(--radius-pill); font: inherit; font-size: 14.5px;
  font-weight: 600; cursor: pointer; background: transparent; color: oklch(0.45 0.015 170);
}
.segmented button[aria-selected="true"] { background: #fff; color: var(--ink); box-shadow: inset 0 0 0 1px oklch(0.88 0.012 150); }
@media (max-width: 480px) { .segmented { display: flex; } .segmented button { min-width: 0; flex: 1; } }

.legend { display: flex; gap: 8px 18px; flex-wrap: wrap; margin: 16px 0 10px; color: oklch(0.45 0.015 170); }
.legend__item { display: inline-flex; align-items: center; gap: 6px; }
.loc-table .dot { margin-right: 4px; }
.sort-btn { all: unset; cursor: pointer; display: inline-flex; gap: 6px; align-items: baseline; }
.sort-btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.sort-btn__arrow { color: oklch(0.72 0.015 170); font-size: 12px; }
th[aria-sort] .sort-btn__arrow { color: oklch(0.42 0.11 var(--h)); }
.no-js .sort-btn { cursor: default; }
.no-js .sort-btn__arrow { display: none; }
.data-table--compact { min-width: 0; }
[data-panel] + [data-panel] { margin-top: 28px; }
.js [data-panel] + [data-panel] { margin-top: 0; }

.income__deep h2 { font-size: 26px; }
.income__deep h3 { margin-top: 32px; }
.income__deep p { font-size: 16.5px; line-height: 1.55; color: oklch(0.38 0.015 170); max-width: 42em; }
.income__cta { margin-top: 18px; padding: 20px 22px; border-radius: 16px; display: flex; gap: 16px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.income__cta p { margin: 4px 0 0; font-size: 15px; color: var(--on-dark); max-width: 32em; }
.income__cta-title { font-size: 17px; font-weight: 700; line-height: 1.35; }
.tab[aria-current="true"] { border-color: var(--accent); background: oklch(0.94 0.03 var(--h)); color: oklch(0.34 0.09 var(--h)); }

/* --- Legal pages ---------------------------------------------------------- */

.legal { padding-top: 40px; padding-bottom: 40px; font-size: 16.5px; line-height: 1.6; color: oklch(0.3 0.02 170); }
.legal h1 { margin: 32px 0 0; font-size: clamp(30px, 5vw, 40px); line-height: 1.1; letter-spacing: -0.03em; color: var(--ink); }
.legal > h1:first-child { margin-top: 0; }
.legal h2 { margin: 40px 0 8px; font-size: 22px; letter-spacing: -0.02em; color: var(--ink); }
.legal h3 { margin: 0; font-size: inherit; letter-spacing: normal; color: var(--ink); }
.legal p { margin: 10px 0 0; }
.legal h2 + p, .legal h3 + p { margin-top: 0; }
.legal__lead { font-size: 18px; color: oklch(0.38 0.015 170); }
.legal__draft {
  display: flex; gap: 10px; align-items: flex-start; padding: 14px 16px; border-radius: 12px;
  background: oklch(0.95 0.06 95); color: oklch(0.32 0.06 80); font-size: 14.5px; line-height: 1.5;
}
.legal__draft strong { flex: none; }
.legal__facts { margin: 12px 0 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 4px 20px; font-size: 15.5px; }
.legal__facts dt { color: oklch(0.5 0.015 170); }
.legal__facts dd { margin: 0; }
.legal__facts--strong { gap: 6px 20px; }
.legal__facts--strong dt { color: var(--ink); font-weight: 600; }
.legal__blocks { margin-top: 14px; display: flex; flex-direction: column; gap: 14px; }
.legal__updated { margin-top: 24px !important; font-size: 14.5px; color: oklch(0.5 0.015 170); }
.legal__back { display: inline-block; margin-top: 32px; font-weight: 600; }
@media (max-width: 480px) { .legal__facts { grid-template-columns: 1fr; gap: 0; } .legal__facts dd { margin-bottom: 8px; } }
mark.todo { background: oklch(0.94 0.08 95); color: inherit; padding: 0 4px; border-radius: 4px; }

/* --- Floating actions on sub-pages (V2 changes §8) ------------------------ */

.float-actions {
  position: fixed; right: 20px; bottom: 20px; z-index: 50; display: flex; align-items: center; gap: 10px;
  opacity: 0; pointer-events: none; transition: opacity 0.2s;
}
.float-actions.is-visible { opacity: 1; pointer-events: auto; }
.float-actions__top {
  display: grid; place-items: center; width: 46px; height: 46px; border: 1px solid oklch(0.86 0.012 150);
  border-radius: var(--radius-pill); background: #fff; color: oklch(0.3 0.02 170); font-size: 18px;
  text-decoration: none; box-shadow: 0 8px 24px -10px oklch(0.24 0.04 170 / 0.4);
}
.float-actions__top:hover { background: oklch(0.96 0.01 150); }
.float-actions__cta {
  display: flex; align-items: center; gap: 8px; padding: 13px 20px; border-radius: var(--radius-pill);
  background: var(--accent); color: #fff; font-size: 15.5px; font-weight: 600; text-decoration: none;
  box-shadow: 0 10px 28px -10px oklch(0.3 0.08 var(--h) / 0.6);
}
.float-actions__cta:hover { background: oklch(0.47 0.12 var(--h)); color: #fff; }
.site-footer--float { padding-bottom: 104px; }
@media (max-width: 639px) {
  .float-actions {
    left: 0; right: 0; bottom: 0; gap: 10px; padding: 10px 14px calc(10px + env(safe-area-inset-bottom));
    background: #fff; border-top: 1px solid oklch(0.9 0.012 150); box-shadow: 0 -8px 24px -16px oklch(0.24 0.04 170 / 0.4);
  }
  .float-actions__top { flex: none; width: 44px; height: 44px; border-radius: var(--radius-input); box-shadow: none; }
  .float-actions__cta { flex: 1; justify-content: center; height: 44px; padding: 0 16px; border-radius: var(--radius-input); box-shadow: none; }
  .float-actions__arrow { display: none; }
}

/* --- Maps (server-drawn SVG) ---------------------------------------------- */

.map { position: relative; margin: 0; }
.map svg { display: block; width: 100%; height: auto; }
.map__hint, .map-hint { font-size: 13.5px; font-weight: 600; color: oklch(0.42 0.11 var(--h)); }
.map__hint { text-align: center; margin-bottom: 6px; }
.map-card { margin-top: 18px; padding: 16px 12px 14px; }
.map-card .map svg { max-width: 640px; margin: 0 auto; }
.map__area { stroke: #fff; stroke-width: 1; cursor: pointer; transition: opacity 0.15s; }
.map__area:hover { opacity: 0.8; }
.map__area[style] { fill: color-mix(in lab, #24715a var(--tone), #e2f2ea); }
.map__area--empty, .map__area--none { fill: #e6e9e7; }
.map__area--ok { fill: #7cc49a; }
.map__area--warn { fill: #f0b44c; }
.map__area--bad { fill: #e0694f; }
.map a:focus-visible .map__area { stroke: var(--ink); stroke-width: 2.5; }
.map__label text, text.map__label {
  pointer-events: none; text-anchor: middle; font-weight: 700; fill: #1f302b;
  paint-order: stroke; stroke: rgba(255, 255, 255, 0.85); stroke-width: 3px; stroke-linejoin: round;
}
.map__m2 { font-weight: 600; }
.map__chosen { fill: url(#arcering); stroke: #1f302b; stroke-width: 3; stroke-linejoin: round; pointer-events: none; }
.map__legend { display: flex; align-items: center; gap: 10px; justify-content: center; font-size: 13px; color: oklch(0.45 0.015 170); margin-top: 4px; }
.map__scale { width: 160px; height: 8px; border-radius: var(--radius-pill); background: linear-gradient(90deg, #e2f2ea, #24715a); }
.map__tip {
  position: absolute; top: 0; left: 0; z-index: 5; pointer-events: none; background: #1f302b; color: #fff;
  padding: 10px 12px; border-radius: 10px; font-size: 13.5px; line-height: 1.45; white-space: nowrap;
}
.map__tip b { font-size: 14.5px; }
.map__tip-hint { opacity: 0.75; }
[data-map="band"] { margin-top: 12px; }

/* --- Location pages ------------------------------------------------------- */

.back-row { display: flex; flex-wrap: wrap; gap: 8px; }
.back-row .back-link { margin-bottom: 18px; }
.location .map { margin-top: 18px; }
.location__actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-top: 8px; }
.cta-card {
  display: flex; gap: 14px; align-items: center; justify-content: space-between; flex-wrap: wrap; margin-top: 20px;
  padding: 16px 20px; border-radius: 14px; background: oklch(0.95 0.03 var(--h)); border: 1px solid oklch(0.87 0.05 var(--h));
  color: oklch(0.28 0.04 170); text-decoration: none; font-size: 16px; line-height: 1.4;
}
.cta-card__go { padding: 10px 16px; border-radius: 10px; background: var(--accent); color: #fff; font-weight: 600; font-size: 15px; white-space: nowrap; }
.cta-card:hover .cta-card__go { background: oklch(0.47 0.12 var(--h)); }
.location__h2 { font-size: 22px; margin: 28px 0 0; }
.location .legend + .card, .location__h2 + .card { margin-top: 12px; }
.location__cta { margin-top: 36px; border-radius: 20px; padding: 26px; }
.location__cta .income__cta-title { font-size: 20px; letter-spacing: -0.02em; }
.loc-table th[scope="row"] a { color: var(--ink); text-decoration: none; }
.loc-table th[scope="row"] a:hover { color: var(--accent); text-decoration: underline; }
.loc-row.is-chosen th, .loc-row.is-chosen td { background: oklch(0.9 0.06 var(--h)); }
.tag { display: inline-block; padding: 2px 8px; border-radius: var(--radius-pill); background: var(--dark); color: #fff; font-size: 11.5px; font-weight: 600; vertical-align: 1px; }
.chosen-card {
  margin-top: 20px; padding: 18px 20px; border-radius: 16px; background: oklch(0.95 0.03 var(--h));
  border: 1px solid oklch(0.87 0.05 var(--h)); display: flex; gap: 12px 28px; flex-wrap: wrap; align-items: center;
}
.chosen-card__name { flex: 1 1 180px; }
.chosen-card__label { font-size: 12.5px; font-weight: 600; letter-spacing: 0.04em; text-transform: uppercase; color: oklch(0.42 0.09 var(--h)); }
.chosen-card__title { font-size: 20px; font-weight: 700; margin-top: 2px; }
.chosen-card__key { font-size: 13px; color: oklch(0.45 0.015 170); }
.chosen-card__value { font-size: 18px; font-weight: 700; }

/* --- Search box ----------------------------------------------------------- */

.search { margin-top: 22px; }
.search__label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 8px; }
.search__box { position: relative; }
.search__icon { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); font-size: 18px; color: oklch(0.55 0.015 170); }
.search__input {
  width: 100%; padding: 15px 16px 15px 44px; border: 1px solid oklch(0.86 0.012 150); border-radius: 14px;
  background: #fff; font: inherit; font-size: 16.5px; color: var(--ink);
}
.search__input:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px oklch(0.52 0.12 var(--h) / 0.15); }
.search__list {
  position: absolute; left: 0; right: 0; top: calc(100% + 6px); z-index: 30; margin: 0; padding: 0; list-style: none;
  background: #fff; border: 1px solid oklch(0.9 0.012 150); border-radius: 14px; overflow: hidden;
  box-shadow: 0 16px 40px -16px oklch(0.24 0.04 170 / 0.35);
}
.search__option { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 11px 16px; cursor: pointer; }
.search__option + .search__option { border-top: 1px solid oklch(0.95 0.008 150); }
.search__option[aria-selected="true"] { background: oklch(0.96 0.02 var(--h)); }
.search__name { font-weight: 600; }
.search__sub { color: oklch(0.5 0.015 170); font-size: 14px; }
.search__kind { font-size: 12.5px; font-weight: 600; color: oklch(0.45 0.015 170); }
.search__empty { padding: 12px 16px; color: oklch(0.5 0.015 170); font-size: 14.5px; }

/* --- Location tables on phones: place, price, own money; the rest under the name */

.loc-sub, .label-short { display: none; }
@media (max-width: 639px) {
  .loc-table { min-width: 0; font-size: 14px; }
  .loc-table .col-extra { display: none; }
  .loc-table th, .loc-table td { padding: 10px 8px; }
  .loc-table th:first-child, .loc-table td:first-child { padding-left: 14px; }
  .loc-table th:last-child, .loc-table td:last-child { padding-right: 14px; }
  .loc-table thead th { white-space: normal; }
  .loc-table .sort-btn { flex-wrap: wrap; row-gap: 0; }
  .loc-sub > span { white-space: nowrap; }
  .loc-table .loc-sub { display: block; margin-top: 2px; font-size: 12.5px; font-weight: 400; color: oklch(0.5 0.015 170); }
  .loc-table .label-full { display: none; }
  .loc-table .label-short { display: inline; }
  .loc-table .dot { margin-right: 2px; }
}

/* --- Lead form ------------------------------------------------------------- */

.lead-field { display: block; }
.lead-field .input { width: 100%; }
.lead-field__error { display: block; min-height: 0; margin-top: 4px; font-size: 13px; color: oklch(0.5 0.18 28); }
.lead-field__error:empty { display: none; }
.lead-form__trap { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }
.lead-form .btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.lead-form .cf-turnstile { margin-top: 12px; }
.lead-done { margin-top: 22px; padding: 20px; border-radius: 14px; background: oklch(0.95 0.03 var(--h)); border: 1px solid oklch(0.87 0.05 var(--h)); }
.lead-done:focus { outline: none; }
.lead-done__title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.lead-done p { margin: 0; }
