:root {
  --bg: #ffffff;
  --muted-bg: #f8fafc;
  --ink: #0f172a;
  --text: #334155;
  --soft: #374151;
  --line: #e2e8f0;
  --blue: #1d4ed8;
  --blue-dark: #1e3a8a;
  --blue-soft: #eff6ff;
  --card: #ffffff;
  --focus: #1d4ed8;
  --shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 8px 24px rgba(15, 23, 42, 0.06);
  --font: Inter, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.6;
}
img { display: block; }
a { color: var(--blue); text-underline-offset: 2px; }
a:hover { color: var(--blue-dark); }
:focus { outline: none; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
h1, h2, h3 { color: var(--ink); letter-spacing: -0.025em; line-height: 1.2; font-weight: 700; }
h1 { margin: 0 0 0.75rem; font-size: clamp(1.85rem, 6vw, 3.25rem); }
h2 { margin: 0 0 1.25rem; font-size: clamp(1.5rem, 3vw, 2rem); }
h3 { margin: 0 0 0.35rem; font-size: 1.05rem; }
p { margin: 0 0 0.8rem; }

.skip {
  position: absolute;
  left: 1rem;
  top: -4rem;
  background: white;
  color: var(--ink);
  padding: 0.5rem 0.75rem;
  z-index: 50;
}
.skip:focus { top: 0.5rem; }
.wrap { width: min(72rem, calc(100% - 2rem)); margin-inline: auto; }
.narrow { width: min(44rem, calc(100% - 2rem)); }
.eyebrow {
  margin: 0 0 0.5rem;
  color: var(--blue);
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 30;
  background: rgba(255, 255, 255, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(8px);
}
.header-row {
  min-height: 4rem;
  display: flex;
  align-items: center;
  gap: 1rem;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
  letter-spacing: -0.03em;
}
.nav { display: none; gap: 1.25rem; margin-left: 1.5rem; }
.nav a { color: var(--soft); text-decoration: none; font-weight: 500; font-size: 0.95rem; }
.nav a:hover { color: var(--ink); }
.header-note { margin: 0 0 0 auto; color: var(--soft); font-size: 0.8125rem; }

.hero { padding: 1.75rem 0 1.25rem; }
.hero-grid { display: grid; gap: 1.25rem; align-items: start; }
.lede { font-size: 1.05rem; color: var(--soft); max-width: 38rem; }
.reassure { margin: 0.75rem 0 0; color: var(--soft); font-size: 0.875rem; }
.rent-note { margin: 0.65rem 0 0; color: var(--soft); font-size: 0.95rem; }
.assume-note { margin: 0.35rem 0 0; color: var(--soft); font-size: 0.92rem; }
.basis-line { margin: 0.7rem 0 0; font-weight: 700; }
.basis-toggle { width: auto; margin-top: 0.45rem; }
.pack-line { margin: 0 0 0.75rem; color: var(--soft); }
.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.section.section-quiz { padding: 0; scroll-margin-top: 4.75rem; }
.chips { display: grid; gap: 0.65rem; margin: 1rem 0; }
.chip {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  min-height: 3.4rem;
  padding: 0.9rem 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--ink);
  font-weight: 600;
  cursor: pointer;
}
.chip input { width: 1.15rem; height: 1.15rem; margin: 0; accent-color: var(--blue); flex: none; }
.chip:has(input:checked),
button.chip.is-on,
.unsure-chip:focus-visible { border-color: var(--blue); background: var(--blue-soft); }
button.chip {
  width: 100%;
  font: inherit;
  font-weight: 600;
  text-align: left;
}
.exact-link {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  margin: 0.15rem 0 0.85rem;
  padding: 0.35rem 0;
  border: 0;
  background: transparent;
  color: #1d4ed8;
  font: inherit;
  font-size: 0.92rem;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
  cursor: pointer;
}
.exact-link:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.rough-note { margin: 0.35rem 0 0.15rem; color: var(--soft); font-size: 0.92rem; }
.rough-line { margin: 0.35rem 0 0; color: #374151; font-size: 0.95rem; font-weight: 600; line-height: 1.4; }
.band-label { margin: 0.8rem 0 0; font-weight: 700; }
#cc-main {
  --cc-font-family: var(--font);
  --cc-z-index: 46;
  --cc-bg: #fff;
  --cc-primary-color: #0f172a;
  --cc-secondary-color: #374151;
  --cc-btn-primary-bg: #1d4ed8;
  --cc-btn-primary-color: #fff;
  --cc-btn-primary-border-color: #1d4ed8;
  --cc-btn-primary-hover-bg: #1e3a8a;
  --cc-btn-primary-hover-color: #fff;
  --cc-btn-primary-hover-border-color: #1e3a8a;
  --cc-btn-secondary-bg: #fff;
  --cc-btn-secondary-color: #0f172a;
  --cc-btn-secondary-border-color: #1d4ed8;
  --cc-btn-secondary-hover-bg: #eff6ff;
  --cc-btn-secondary-hover-color: #0f172a;
  --cc-btn-secondary-hover-border-color: #1d4ed8;
  --cc-toggle-on-bg: #1d4ed8;
  --cc-link-color: #1d4ed8;
  --cc-footer-bg: #fff;
  --cc-separator-border-color: #e2e8f0;
}
#cc-main .cm {
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.08);
  border-top: 1px solid var(--line);
  bottom: 0;
  margin: 0;
  max-width: none;
  width: 100%;
}
#cc-main .cm__texts { padding: 0.55rem 0 0; }
#cc-main .cm__title {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
#cc-main .cm__title + .cm__desc { margin-top: 0; }
#cc-main .cm__desc {
  font-size: 0.9rem;
  line-height: 1.35;
  max-height: none;
  overflow: visible;
  padding-bottom: 0.1rem;
}
#cc-main .cm__btns,
#cc-main .cm__links { padding: 0.35rem 1rem 0.55rem; }
html.show--preferences #cc-main .cc--anim .cm {
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transition: none !important;
}
html.show--preferences #cc-main .cc--anim .pm {
  background: #fff !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}
@media (max-width: 640px) {
  html.show--preferences #cc-main .cc--anim .pm {
    top: 1.25rem !important;
    right: 0.75rem !important;
    bottom: 1.25rem !important;
    left: 0.75rem !important;
    width: auto !important;
    height: auto !important;
    max-height: calc(100% - 2.5rem) !important;
    border-radius: 0.75rem !important;
    transform: none !important;
  }
}
html.show--preferences #cc-main .cc--anim .pm-overlay {
  background: rgba(15, 23, 42, 0.72) !important;
  opacity: 1 !important;
  visibility: visible !important;
  transition: none !important;
}
#cc-main .section__toggle:not(:disabled):not(:checked) ~ .toggle__icon {
  background: #fff !important;
  box-shadow: inset 0 0 0 2px #0f172a !important;
}
#cc-main .section__toggle:not(:disabled):not(:checked) ~ .toggle__icon .toggle__icon-circle {
  background: #0f172a !important;
}
#cc-main .section__toggle-wrapper:has(.section__toggle:disabled) {
  cursor: not-allowed;
}
#cc-main .cm__btn-group:first-child {
  display: grid !important;
  grid-template-columns: 1fr 1fr !important;
  flex-direction: row !important;
  gap: 0.6rem;
  width: 100%;
}
#cc-main .cm__btn-group:first-child .cm__btn + .cm__btn {
  margin: 0 !important;
}
#cc-main .cm__btn[data-role="show"] {
  width: auto;
  min-height: 2.25rem;
  margin-top: 0.35rem;
  background: transparent !important;
  color: var(--blue) !important;
  border: 0 !important;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
#cc-main .cm__btn {
  width: 100%;
  min-height: 2.75rem;
  padding: 0.45rem 0.7rem;
  font-weight: 700;
  font-size: 0.95rem;
  text-align: center;
}
#cc-main .cm__link-group {
  justify-content: flex-start;
}
#cc-main .cm__link-group .cm__btn {
  width: auto;
  min-height: 2.25rem;
  background: transparent;
  color: var(--blue);
  border: 0;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.15em;
}
#cc-main .pm__btn {
  min-height: 2.75rem;
  font-weight: 700;
}
#cc-main button:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}
html.show--consent body { padding-bottom: var(--cookie-sheet, 14.5rem); }
html.show--consent .sticky-cta,
html.show--consent .sticky-cta.sticky-ready { bottom: var(--cookie-sheet, 14.5rem); }
.footer-button {
  margin: 0;
  padding: 0;
  border: 0;
  background: none;
  color: #bfdbfe;
  font: inherit;
  font-size: inherit;
  text-decoration: underline;
  cursor: pointer;
}
@media (max-width: 799px) {
  .sticky-cta { transform: translateY(120%); pointer-events: none; }
  .sticky-cta.sticky-ready { transform: none; pointer-events: auto; }
}

.deadline {
  background: var(--card);
  border: 1px solid var(--line);
  border-left: 4px solid var(--blue);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 1.1rem 1.15rem;
}
.deadline p:last-of-type { margin-bottom: 0.45rem; }
.deadline-kicker {
  margin: 0;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.deadline-date {
  margin: 0.2rem 0 0.45rem;
  color: var(--ink);
  font-size: 1.75rem;
  font-weight: 700;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.btn {
  appearance: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 3rem;
  padding: 0.75rem 1.15rem;
  border-radius: 0.5rem;
  border: 1px solid transparent;
  background: var(--blue);
  color: #fff;
  font: inherit;
  font-weight: 600;
  line-height: 1.3;
  text-align: center;
  cursor: pointer;
}
.btn:hover { background: var(--blue-dark); }
.btn-lg { min-height: 3.25rem; font-size: 1.05rem; }
.btn-quiet {
  background: #fff;
  color: var(--ink);
  border-color: #cbd5e1;
}
.btn-quiet:hover { background: var(--muted-bg); color: var(--ink); }
.btn-green { background: var(--blue); }
.btn:disabled { opacity: 0.65; cursor: wait; }

.trust-wrap { padding: 0 0 0.15rem; }
.trust {
  list-style: none;
  margin: 0;
  padding: 0.75rem 1rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.55rem;
  background: var(--muted-bg);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}
.trust li {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.55rem;
  color: var(--ink);
  font-size: 0.92rem;
  text-align: center;
}
.trust strong { font-weight: 600; }
.tick {
  width: 1.15rem;
  height: 1.15rem;
  flex: none;
  border-radius: 999px;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%231d4ed8' stroke-width='2' d='M3.5 8.2 6.4 11 12.5 5'/%3E%3C/svg%3E") center / 1rem no-repeat;
}

.proof { padding: 0 0 1rem; }
.proof-inner {
  padding: 1.15rem 1.2rem;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.proof p { margin: 0 0 0.4rem; }

.section { padding: 3rem 0; }
.section-muted { background: var(--muted-bg); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.steps > li {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 1.15rem 1.15rem 0.4rem;
  box-shadow: var(--shadow);
}
.step-no {
  display: inline-grid;
  place-items: center;
  width: 1.75rem;
  height: 1.75rem;
  margin-bottom: 0.7rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue);
  font-size: 0.85rem;
  font-weight: 700;
}

.faq-list { border-top: 1px solid var(--line); }
.faq-list details { border-bottom: 1px solid var(--line); background: #fff; }
.faq-list summary {
  cursor: pointer;
  padding: 1rem 0.15rem;
  color: var(--ink);
  font-weight: 600;
}
.faq-list details p { margin: 0; padding: 0 0 1rem; color: var(--soft); }
.source-list { padding-left: 1.15rem; }
.source-list li { margin: 0.4rem 0; }

.site-footer {
  background: #0f172a;
  color: #cbd5e1;
  padding: 2.25rem 0 6.5rem;
}
.site-footer strong { color: #fff; }
.footer-disclaimer { color: #fff; font-size: 1.05rem; }
.site-footer a { color: #bfdbfe; }
.footer-meta { margin: 1rem 0 0; font-size: 0.875rem; color: #94a3b8; display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.licence { white-space: pre-wrap; font: 0.85rem/1.5 ui-monospace, monospace; background: var(--muted-bg); padding: 1rem; border-radius: 0.75rem; }

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 40;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
  box-shadow: 0 -8px 24px rgba(15, 23, 42, 0.06);
}
.more { margin: 0.35rem 0 0.75rem; }
.more summary { cursor: pointer; color: var(--blue); font-weight: 600; font-size: 0.92rem; }
.more:not([open]) > :not(summary) { display: none; }
.more .detail { margin: 0.45rem 0 0; }
.about { margin: 0 0 0.65rem; color: #fff; font-weight: 600; }
body.quiz-open .sticky-cta,
body.quiz-active .sticky-cta,
body.quiz-in-view .sticky-cta,
.sticky-cta.is-hidden { display: none; }
body.quiz-open { padding-bottom: 0; }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  box-shadow: var(--shadow);
  padding: 1.15rem;
}
.progress { height: 0.35rem; background: #e2e8f0; border-radius: 999px; overflow: hidden; margin-bottom: 0.85rem; }
.progress span { display: block; height: 100%; background: var(--blue); }
.q-kicker { margin: 0; color: var(--soft); font-size: 0.8125rem; font-weight: 600; }
.progress-note { margin: 0.4rem 0 0.75rem; color: var(--soft); font-size: 0.82rem; line-height: 1.35; }
#quiz { scroll-margin-top: 4.75rem; }
.section-quiz .row .btn {
  scroll-margin-top: 5.25rem;
  scroll-margin-bottom: 6.5rem;
}
.detail { color: var(--soft); }
.device-note { margin: 0.15rem 0 0.85rem; color: #374151; font-size: 0.85rem; font-weight: 500; }
.pay-help { margin: 0.35rem 0 0.85rem; }
.pay-help summary { cursor: pointer; color: #1d4ed8; font-weight: 600; }
.pay-help summary:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; }
.pay-help p { margin: 0.45rem 0 0; }
.money-field { margin: 0.8rem 0; }
.money-with-period { display: flex; align-items: flex-end; gap: 0.45rem; }
.money-with-period .money-field { flex: 1; min-width: 0; margin-bottom: 0; }
.money-with-period .period-beside { flex: none; flex-direction: column; margin: 0 0 0.15rem; }
.money { display: flex; align-items: center; gap: 0.35rem; margin: 0; padding: 0.35rem 0.7rem; border: 1px solid var(--line); border-radius: 0.75rem; background: #fff; }
.money-label { display: block; width: auto; height: auto; margin: 0 0 0.35rem; overflow: visible; clip: auto; position: static; font-weight: 700; color: var(--ink); }
.money .euro { font-size: 1.65rem; font-weight: 700; color: var(--soft); }
.money input { flex: 1; min-width: 0; border: 0; font-size: 2rem; font-weight: 700; padding: 0.35rem 0; width: 100%; background: transparent; }
.money input:focus { outline: none; }
.money:focus-within { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft); }
.field-label { font-weight: 700; margin: 0.9rem 0 0.25rem; }
.start-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.6rem; }
.stack { display: grid; gap: 0.25rem; font-weight: 600; }
.plain-select { width: 100%; min-height: 48px; border: 1px solid var(--line); border-radius: 0.6rem; padding: 0.45rem 0.6rem; font: inherit; background: #fff; color: var(--ink); }
.before-claim { margin: 0.2rem 0 0.8rem; padding-left: 1.15rem; }
.before-claim li { margin: 0.35rem 0; }
.bill-hint { font-weight: 600; color: var(--ink); }
.period { display: flex; flex-wrap: wrap; gap: 0.4rem; margin: 0.6rem 0; }
.period-btn { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 0.4rem 0.75rem; min-height: 40px; cursor: pointer; }
.period-btn.is-on { border-color: var(--blue); background: var(--blue-soft); font-weight: 600; }
.year-money { margin: 0.8rem 0; }
.year-label { margin: 0.2rem 0; font-weight: 700; }
.day-hints { display: flex; flex-wrap: wrap; gap: 0.4rem; }
.warn-row { display: flex; gap: 0.5rem; margin: 0.4rem 0 0.6rem; }
.unsure-amount { margin-top: 0.4rem; }
.range-line { margin: 0.2rem 0 0.45rem; font-weight: 600; }
.deadline-line { margin: 0.35rem 0 0.6rem; font-weight: 600; }
.worth { margin-top: 1rem; }
.allowance { border: 0; margin: 0.6rem 0; padding: 0; }
.allowance legend { font-weight: 600; margin-bottom: 0.4rem; }
.options { display: grid; gap: 0.55rem; margin: 1rem 0; }
.option {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  padding: 0.85rem 0.9rem;
  border: 1px solid var(--line);
  border-radius: 0.6rem;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
  min-height: 48px;
}
.option input { width: 1.1rem; height: 1.1rem; margin: 0.15rem 0 0; accent-color: var(--blue); flex: none; }
.option-text { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.option small { display: block; color: var(--soft); font-size: 0.85rem; overflow-wrap: anywhere; }
.detail,
.progress-note,
.q-kicker,
.assume-note,
.resume-note,
.quiz-dialog h3,
.quiz-dialog p,
.quiz-dock .btn,
.chip {
  overflow-wrap: anywhere;
}
.option:has(input:checked) { border-color: var(--blue); background: var(--blue-soft); }
.option input[type="radio"] { accent-color: var(--blue); }
.year-amounts { display: grid; gap: 0.15rem; }
.bill-year { margin: 0.85rem 0 0.2rem; padding: 0; border: 0; min-inline-size: 0; }
.bill-year legend { padding: 0; font-weight: 700; color: var(--ink); }
.other-credits { margin: 0.85rem 0 0.2rem; font-size: 0.92rem; color: var(--soft); }
.other-credits a { font-weight: 600; }
.allowance-check {
  display: flex;
  align-items: flex-start;
  gap: 0.7rem;
  margin: 0.9rem 0 0.4rem;
  color: #111;
  font-weight: 600;
}
.allowance-check input { width: 1.15rem; height: 1.15rem; margin-top: 0.2rem; accent-color: var(--blue); flex: none; }
.quiz-dialog { color: #374151; }
.row { display: flex; gap: 0.6rem; }
.row .btn { flex: 1; }
.error { color: #991b1b; min-height: 1.3em; margin: 0 0 0.5rem; }
.estimate {
  background: var(--blue-soft);
  border-radius: 0.75rem;
  padding: 1rem 1.05rem 0.35rem;
  margin-bottom: 1rem;
}
.kicker {
  margin: 0;
  color: var(--blue);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.estimate .amount { margin: 0.15rem 0 0.45rem; font-size: clamp(2rem, 8vw, 2.75rem); font-weight: 700; letter-spacing: -0.03em; color: #111; opacity: 1; }
.nothing-note { margin: 0.35rem 0 0.8rem; font-weight: 600; }
.amount.is-plain {
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  letter-spacing: -0.02em;
  line-height: 1.25;
  overflow-wrap: break-word;
}
.estimate .amount.is-note {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.01em;
  line-height: 1.4;
  overflow-wrap: break-word;
}
.estimate .amount.is-note + .result-line {
  margin: 0.2rem 0 0.7rem;
  font-size: 0.95rem;
  line-height: 1.45;
}
.relief {
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  padding: 0.95rem 1rem 0.4rem;
  margin: 0.75rem 0;
  background: #fff;
}
.pill {
  display: inline-block;
  margin: 0 0 0.4rem;
  padding: 0.15rem 0.55rem;
  border-radius: 999px;
  background: var(--blue-soft);
  color: var(--blue-dark);
  font-size: 0.75rem;
  font-weight: 700;
}
.pill.possible { background: #fef3c7; color: #78350f; }
.pill.claimed { background: #f1f5f9; color: #334155; }
.links { margin: 0.2rem 0 0.6rem; padding-left: 1.1rem; }
.guide .guide-steps { grid-template-columns: 1fr; }
.guide .links {
  list-style: none;
  margin: 0.35rem 0 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
}
.guide .links li {
  list-style: none;
  background: none;
  border: 0;
  box-shadow: none;
  padding: 0;
  margin: 0;
}
.guide .links a { overflow-wrap: anywhere; }
.resume-note {
  margin: 0 0 0.75rem;
  padding: 0.45rem 0.7rem;
  border-radius: 0.55rem;
  background: var(--blue-soft);
  color: var(--ink);
  font-size: 0.92rem;
}
.muted-block { color: var(--soft); font-size: 0.95rem; }
.next-step { margin-top: 1.25rem; padding-top: 0.4rem; }
.doors { display: grid; gap: 0.85rem; }
.door {
  padding: 0.85rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: var(--muted-bg);
}
.door-note { margin: 0.55rem 0 0; color: var(--soft); font-size: 0.9rem; }
.panel {
  margin-top: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--line);
  border-radius: 0.75rem;
  background: #fff;
}
label { display: block; font-weight: 600; color: var(--ink); margin-bottom: 0.35rem; }
.job-picker > label { margin-top: 0.85rem; }
.job-group {
  margin: 0.85rem 0 0;
  padding: 0;
  border: 0;
  min-inline-size: 0;
}
.job-group legend {
  padding: 0;
  margin: 0 0 0.4rem;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.job-group .options { margin-top: 0; }
.job-empty { margin: 0.75rem 0 0; color: var(--soft); }
input[type="email"],
input[type="search"] {
  width: 100%;
  font: inherit;
  color: var(--ink);
  padding: 0.75rem 0.8rem;
  border-radius: 0.5rem;
  border: 1px solid #cbd5e1;
  margin-bottom: 0.7rem;
  background: #fff;
}
.restart {
  margin-top: 0.5rem;
  padding: 0;
  border: 0;
  background: none;
  color: var(--blue);
  font: inherit;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.restart.inline-restart {
  display: inline;
  margin: 0;
  font-weight: 700;
  vertical-align: baseline;
}
.sub-question { margin: 1.1rem 0 0.35rem; font-size: 1.05rem; }
.result-line { margin: 0; color: var(--soft); }
.worked { margin: 0.25rem 0 1rem; }
.relief-amount { margin: 0.15rem 0 0.55rem; font-size: 1.25rem; font-weight: 700; color: var(--ink); }
.relief.is-claimed .relief-amount,
.relief.is-claimed .year-table { opacity: 0.55; }
.year-table { width: 100%; border-collapse: collapse; margin: 0 0 0.75rem; font-size: 0.92rem; }
.year-table th, .year-table td { text-align: left; padding: 0.4rem 0.2rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.year-table td:first-child { white-space: nowrap; }
.year-table .year-note { font-size: 0.82rem; line-height: 1.35; white-space: normal; }
.year-table th { color: var(--soft); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.year-badge {
  display: inline-block;
  margin-left: 0.45rem;
  padding: 0.1rem 0.45rem;
  border-radius: 999px;
  background: #fef3c7;
  color: #78350f;
  font-size: 0.75rem;
  font-weight: 700;
}
.claim-toggle {
  display: inline-block;
  width: auto;
  max-width: 100%;
  min-height: 24px;
  margin: 0.15rem 0 0.55rem;
  padding: 0.1rem 0;
  border: 0;
  border-radius: 0;
  background: none;
  color: var(--soft);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 600;
  line-height: 1.4;
  text-align: left;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.claim-toggle:hover { background: none; color: var(--ink); }
.guide { margin: 1.25rem 0 0.5rem; }
.guide > h3 { margin-bottom: 0.35rem; }
.guide-steps { margin-top: 0.75rem; }
.guide-steps li { padding-bottom: 0.2rem; }
.opening { margin: 0 0 0.65rem; color: var(--blue); font-weight: 700; }
.doors .btn { width: 100%; white-space: normal; }

@media (min-width: 800px) {
  .nav { display: flex; }
  .hero { padding: 4rem 0 2rem; }
  .hero-grid { grid-template-columns: 1.15fr 0.85fr; gap: 3rem; align-items: center; }
  .btn, .btn-lg { width: auto; }
  .sticky-cta { display: none; }
  .chips { grid-template-columns: 1fr 1fr; }
  .site-footer { padding-bottom: 2.5rem; }
  .trust {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    justify-items: center;
    align-items: center;
    gap: 0.75rem 1rem;
    padding: 0.85rem 1.15rem;
  }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .doors { grid-template-columns: 1fr; }
  .row .btn { flex: 0 0 auto; }
  .card .btn, .door .btn, .panel .btn, .sticky-cta .btn { width: 100%; }
}

@media (max-width: 799px) {
  body { padding-bottom: 5.5rem; }
  .header-row { min-height: 3.25rem; }
  .hero { padding: 0.55rem 0 0.2rem; }
  .hero h1 { font-size: 1.55rem; margin-bottom: 0.35rem; }
  .lede { margin-bottom: 0.4rem; font-size: 1rem; }
  .rent-note { margin-top: 0.35rem; font-size: 0.88rem; line-height: 1.35; }
  .reassure { margin-top: 0.3rem; font-size: 0.8rem; line-height: 1.35; }
  .section-quiz { padding: 0; scroll-margin-top: 4.75rem; }
  .section-quiz .card { padding: 0.7rem 0.8rem 1.35rem; scroll-margin-top: 4.75rem; scroll-margin-bottom: 6.5rem; }
  .section-quiz .progress { margin-bottom: 0.4rem; }
  html.show--consent body { padding-bottom: calc(5.5rem + var(--cookie-sheet, 14.5rem)); }
  .header-note { display: none; }
  .trust { padding: 0.7rem 0.85rem; gap: 0.45rem; }
  .trust li { font-size: 0.9rem; gap: 0.4rem; }
  /* Netlify Drop adds its own badge in the bottom-right. Leave that corner clear. */
  .sticky-cta { padding-right: 8.5rem; box-shadow: none; }
  .sticky-cta .btn {
    min-height: 2.75rem;
    padding: 0.55rem 0.7rem;
    font-size: 0.84rem;
    line-height: 1.2;
  }
  .door .btn { font-size: 0.92rem; text-wrap: balance; }
}

@media (max-width: 700px) {
  .hero-grid { grid-template-columns: 1fr; }
  .trust {
    display: grid;
    grid-template-columns: 1fr 1fr;
    justify-items: start;
    align-items: center;
    gap: 0.55rem 0.75rem;
  }
}

@media (max-width: 480px) {
  .trust { padding: 0.5rem 0.75rem; gap: 0.45rem 0.6rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .quiz-stage,
  .quiz-stage.is-leaving,
  .quiz-stage.is-entering { animation: none; transition: none; transform: none; opacity: 1; }
}

html.quiz-locked { overflow: hidden; }
body.quiz-locked {
  overflow: hidden;
}
.quiz-scrim {
  position: fixed;
  inset: 0;
  height: 100dvh;
  z-index: 80;
  display: flex;
  padding: 0;
  background: #fff;
  border-radius: 0;
}
.quiz-dialog {
  position: relative;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  min-height: 0;
  min-width: 0;
  margin: 0;
  background: #fff;
  border-radius: 0;
  transform: none;
}
.quiz-top {
  flex: none;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) 48px;
  grid-template-rows: auto auto;
  column-gap: 0.65rem;
  align-items: center;
  width: 100%;
  min-height: 5.2rem;
  padding: 0.35rem 0.45rem 0.45rem;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.quiz-back { grid-column: 1; grid-row: 1; }
.quiz-back:focus-visible { outline: 2px solid var(--focus); outline-offset: 2px; }
.quiz-close { grid-column: 3; grid-row: 1; justify-self: end; }
.quiz-icon.is-hidden {
  visibility: hidden;
  pointer-events: none;
}
.quiz-progress { grid-column: 2; grid-row: 1; min-width: 0; width: 100%; }
.quiz-progress .progress { width: 100%; margin: 0.28rem 0 0; }
.quiz-progress .q-kicker { font-size: 0.82rem; }
.running-estimate {
  grid-column: 1 / -1;
  grid-row: 2;
  margin: 0.15rem 0 0;
  text-align: center;
  color: #111;
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.3;
}
.running-estimate[hidden] { display: none !important; }
.quiz-top > .progress-note {
  grid-column: 1 / -1;
  grid-row: 3;
  margin: 0.2rem 0 0;
  font-size: 0.75rem;
  line-height: 1.3;
  text-align: center;
}
.quiz-top > .progress-note.is-quiet { visibility: hidden; }
.quiz-icon:disabled { opacity: 0.38; cursor: default; }
.quiz-icon:disabled:hover { background: transparent; }
.progress-note[hidden] { display: none !important; }
.quiz-icon {
  width: 48px;
  height: 48px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 1.35rem;
  line-height: 1;
  cursor: pointer;
}
.quiz-icon:hover { background: var(--muted-bg); }
.quiz-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 1rem 1.15rem 1.25rem;
  overscroll-behavior: contain;
}
.quiz-dialog .card {
  border: 0;
  box-shadow: none;
  padding: 0;
  background: transparent;
}
.quiz-dialog #question-title {
  font-size: clamp(1.35rem, 4.5vw, 1.85rem);
  margin: 0.15rem 0 0.65rem;
}
.quiz-stage { opacity: 1; }
.quiz-stage.is-leaving {
  opacity: 0.85;
  transform: translateY(8px);
  transition: opacity 150ms ease, transform 150ms ease;
}
.quiz-stage.is-entering { animation: quiz-enter 150ms ease; }
@keyframes quiz-enter {
  from { opacity: 0.85; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}
.quiz-dock[hidden] { display: none !important; }
.quiz-dock {
  flex: none;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem calc(0.75rem + env(safe-area-inset-bottom));
  background: #fff;
  border-top: 1px solid var(--line);
}
.quiz-dock .btn { width: 100%; min-height: 48px; white-space: normal; text-align: center; }
.quiz-dock .btn:disabled {
  background: #e2e8f0;
  color: #64748b;
  border-color: #cbd5e1;
  opacity: 1;
  cursor: not-allowed;
  box-shadow: none;
}
.quiz-dock.is-result {
  display: block;
  max-height: min(18rem, 46%);
  overflow: auto;
}
.more-options {
  display: none;
  margin: 0.35rem 0 0;
  padding: 0.15rem 0;
  border: 0;
  background: transparent;
  color: var(--blue);
  font: inherit;
  font-size: 0.9rem;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
  cursor: pointer;
}
.quiz-dock .opening { margin: 0 0 0.15rem; }
.quiz-dock .pack-line { margin: 0 0 0.55rem; color: var(--soft); font-size: 0.85rem; }
.quiz-dock .restart { display: inline-block; margin: 0.45rem 0 0; }
.enter-hint { display: none; color: var(--soft); font-size: 0.8rem; white-space: nowrap; }
.key-hint { display: none; }
.quiz-dialog .guide { margin-top: 0.75rem; }
.quiz-dialog .guide-steps { gap: 0.6rem; }
.quiz-dialog .guide-steps > li { padding: 0.7rem 0.85rem 0.3rem; }
.quiz-dialog .step-no { margin-bottom: 0.35rem; }
.quiz-dialog .estimate { margin-bottom: 0.65rem; }
.quiz-confirm {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(15, 23, 42, 0.48);
}
.quiz-confirm[hidden] { display: none !important; }
.quiz-confirm-card {
  width: min(24rem, 100%);
  padding: 1.2rem 1.15rem 1rem;
  border-radius: 0.9rem;
  background: #fff;
  box-shadow: var(--shadow);
}
.quiz-confirm-card h2 { font-size: 1.25rem; margin-bottom: 1rem; }
.quiz-confirm-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 0.7rem; }
.quiz-confirm-actions .btn { min-height: 48px; }
@media (max-width: 700px) {
  .quiz-dock.is-result:not(.is-more) {
    max-height: none;
    overflow: visible;
  }
  .quiz-dock.is-result .dock-extra,
  .quiz-dock.is-result .dock-expert,
  .quiz-dock.is-result .restart,
  .quiz-dock.is-result .panel {
    display: none;
  }
  .quiz-dock.is-result.is-more .dock-extra,
  .quiz-dock.is-result.is-more .dock-expert,
  .quiz-dock.is-result.is-more .restart,
  .quiz-dock.is-result.is-more .panel,
  .quiz-dock.is-result.has-door .panel {
    display: block;
  }
  .quiz-dock.is-result .more-options {
    display: block;
    width: 100%;
    text-align: left;
    white-space: normal;
  }
  .quiz-dock.is-result .doors { gap: 0.55rem; }
}
@media (max-width: 767px) {
  .quiz-scrim {
    position: fixed;
    inset: 0;
    height: 100dvh;
    display: flex;
    padding: 0;
    background: #fff;
    border-radius: 0;
  }
  .quiz-dialog {
    width: 100%;
    max-width: none;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
    background: #fff;
    box-shadow: none;
  }
}
@media (min-width: 768px) {
  .quiz-scrim {
    display: grid;
    place-items: center;
    padding: 1.25rem;
    height: 100dvh;
    background: rgba(15, 23, 42, 0.92);
  }
  .quiz-dialog {
    width: min(640px, 100%);
    max-width: 640px;
    height: min(44rem, calc(100dvh - 2.5rem));
    max-height: calc(100dvh - 2.5rem);
    margin: auto;
    justify-self: center;
    align-self: center;
    border-radius: 1rem;
    box-shadow: 0 24px 80px rgba(15, 23, 42, 0.28);
    overflow: hidden;
  }
  .quiz-dialog.is-result {
    width: min(720px, 100%);
    max-width: 720px;
    height: calc(100dvh - 48px);
    max-height: calc(100dvh - 48px);
  }
}
@media (pointer: fine) and (min-width: 768px) {
  .quiz-dock:not(.is-result) .btn { width: auto; flex: 1 1 auto; }
  .enter-hint {
    display: inline-block;
    visibility: hidden;
    flex: none;
    min-width: 7.5rem;
    text-align: right;
  }
  .enter-hint.is-on { visibility: visible; }
  .key-hint {
    display: inline-grid;
    place-items: center;
    margin-left: auto;
    flex: none;
    min-width: 1.35rem;
    height: 1.35rem;
    padding: 0 0.28rem;
    border: 1px solid var(--line);
    border-radius: 0.3rem;
    color: var(--soft);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1;
  }
}
