/* ==========================================================================
   leiepris.husleie.no
   --------------------------------------------------------------------------
   Hand-written in November 2026 to replace the Statamic/Tailwind export, from
   the "Leiepris v2 funnel" design canvas. Built on the Rentelligent /
   Husleie.no design system (tokens, buttons, focus, radius) like the other
   sites in this repo. Additions the design system does not cover are marked
   [PROPOSED]. The canvas uses Inter 700; the design system stops at 600, so
   700 is set as 600 here.

   Plain CSS, no build step. Sections, top to bottom:
   fonts · tokens · base · layout · buttons · header · footer · start page ·
   flow · form controls · loader · result · aside · cookie · utilities
   ========================================================================== */

/* ------------------------------------------------------------------ fonts */

/* Inter 4, variable (weight + optical size), self-hosted. SIL OFL 1.1. */
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
@font-face {
  font-family: 'Inter'; font-style: normal; font-weight: 100 900; font-display: swap;
  src: url(../fonts/inter-latin-ext.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* ----------------------------------------------------------------- tokens */

:root {
  /* design system: brand */
  --c-primary:          #00aa73;
  --c-primary-dark:     #009162;   /* button border */
  --c-primary-ink:      #0b6f4c;   /* green text on white, 6.2:1 */
  --c-primary-light:    #d9f7e8;   /* selected option */
  --c-secondary:        #0a1f44;   /* navy */

  /* design system: surfaces and text */
  --c-background:       #ffffff;
  --c-card:             #fafafb;
  --c-muted:            #f5f6f8;
  --c-border:           #eef0f3;
  --c-border-dark:      #e0e2e4;
  --c-accent:           #0a1f440d; /* 5% navy, the hover wash */
  --c-foreground:       #090a0b;
  --c-ink-2:            #202020;
  --c-muted-foreground: #707782;   /* 4.6:1 on white */
  --c-info:             #1951b4;
  --c-warning:          #ea631b;
  --c-warning-ink:      #b5460c;   /* [PROPOSED] warning text on the pale pill, 4.9:1 */
  --c-warning-bg:       #fdf3e7;
  --c-info-bg:          #e9f0fb;

  /* design system: radius ladder */
  --radius-xs: 4px; --radius-sm: 8px; --radius-md: 12px; --radius-lg: 16px; --radius-xl: 24px; --radius-full: 9999px;

  /* design system: type */
  --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
  --fw-regular: 400; --fw-medium: 500; --fw-semibold: 600;
  --lh-tight: 1.1; --lh-normal: 1.4;
  --lh-prose: 1.55;                          /* [PROPOSED] paragraphs longer than one line */
  /* [PROPOSED] marketing and wizard heading sizes; the design system stops at 40px */
  --text-hero:  clamp(32px, 4.6vw, 56px);
  --text-step:  clamp(28px, 3vw, 40px);
  --text-value: clamp(36px, 3.4vw, 44px);
  --text-h2:    clamp(20px, 2.2vw, 32px);
  --text-h3:    24px;

  /* design system: focus, motion, effects */
  --focus: 3px solid var(--c-info);
  --motion-fast: 120ms; --motion-normal: 180ms;
  --ease-out: cubic-bezier(0, 0, .2, 1);
  --ease-in-out: cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-button: inset 0 2px 2px 0 rgba(255, 255, 255, .4), inset 0 -2px 2px 0 rgba(0, 0, 0, .17);
  --shadow-pop: 0 8px 24px rgba(9, 10, 11, .08), 0 1px 2px rgba(9, 10, 11, .04);

  /* one content column for every page */
  --container: 1200px;
  --gutter: clamp(16px, 3vw, 32px);
  --header-h: 72px;
}
@media (max-width: 767px) { :root { --header-h: 56px; } }

/* ------------------------------------------------------------------- base */

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh; min-height: 100svh;
  display: flex; flex-direction: column;
  background: var(--c-background); color: var(--c-foreground);
  font-family: var(--font); font-size: 16px; line-height: var(--lh-normal);
  font-size-adjust: from-font;            /* fallback keeps Inter's x-height while the web font loads */
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
main { flex: 1 0 auto; }
main:focus { outline: none; }
h1, h2, h3 { margin: 0; font-weight: var(--fw-semibold); line-height: var(--lh-tight); letter-spacing: -0.02em; text-wrap: balance; }
h1:focus { outline: none; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
button { cursor: pointer; }
fieldset { margin: 0; padding: 0; border: 0; min-width: 0; }
legend { padding: 0; }
b, strong { font-weight: var(--fw-semibold); }

:focus-visible { outline: var(--focus); outline-offset: 2px; }
:focus:not(:focus-visible) { outline: none; }
::selection { background: var(--c-primary-light); color: var(--c-secondary); }

.skip-link {
  position: absolute; z-index: 100; top: 8px; left: 8px; padding: 10px 16px; border-radius: var(--radius-sm);
  background: var(--c-secondary); color: #fff; font-weight: var(--fw-semibold); text-decoration: none;
  transform: translateY(-160%);
}
.skip-link:focus { transform: none; }

.icon { width: 24px; height: 24px; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.icon--sm { width: 16px; height: 16px; }
.icon--xs { width: 14px; height: 14px; }
.icon--brand { color: var(--c-primary); }
.icon--muted { color: var(--c-muted-foreground); }

.visually-hidden {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden;
  clip-path: inset(50%); white-space: nowrap; border: 0;
}
.muted { color: var(--c-muted-foreground); }
.small-center { font-size: 12px; line-height: var(--lh-normal); color: var(--c-muted-foreground); text-align: center; }

/* ----------------------------------------------------------------- layout */

.container { width: 100%; max-width: calc(var(--container) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(40px, 6vw, 72px); }
.section + .section { padding-top: 0; }

/* ---------------------------------------------------------------- buttons */
/* Design system: 40px tall, radius 8; each variant has its own hover; the
   primary carries its bevel. */

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 40px; padding: 11px 16px;
  border: 1px solid transparent; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: var(--fw-semibold); line-height: 16px;
  text-align: center; text-decoration: none; white-space: nowrap;
  background-color: transparent;
  transition: background-color var(--motion-fast) var(--ease-in-out), background-image var(--motion-fast) var(--ease-in-out);
}
.btn--primary { background-color: var(--c-primary); border-color: var(--c-primary-dark); color: #fff; box-shadow: var(--shadow-button); }
.btn--primary:hover { background-image: linear-gradient(rgba(0, 0, 0, .2), rgba(0, 0, 0, .2)); }
.btn--secondary { background-color: #fff; border-color: var(--c-border-dark); color: var(--c-foreground); }
.btn--secondary:hover { background-image: linear-gradient(var(--c-accent), var(--c-accent)); }
.btn--ghost { color: var(--c-primary-ink); }
.btn--ghost:hover { background-color: var(--c-muted); }
/* [PROPOSED] the wizard's main action: 48px, 16px label (canvas; also a 44px+ touch target) */
.btn--xl { min-height: 48px; padding: 14px 24px; font-size: 16px; line-height: 18px; }
.btn--block { display: flex; width: 100%; }

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: var(--radius-sm);
  background: transparent; color: var(--c-foreground);
}
.icon-btn:hover { background: var(--c-muted); }

.textlink {
  display: inline-flex; align-items: center; gap: 4px; align-self: flex-start;
  min-height: 44px; padding: 0; border: 0; background: none;
  font-size: 14px; font-weight: var(--fw-semibold); color: var(--c-primary-ink); text-decoration: none;
}
.textlink:hover { text-decoration: underline; }

/* ----------------------------------------------------------------- header */

.site-header { position: relative; z-index: 10; background: #fff; border-bottom: 1px solid var(--c-border); }
.site-header__inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 16px; height: var(--header-h); }
.site-header__logo { grid-column: 1; justify-self: start; display: inline-flex; align-items: center; min-height: 44px; }
.site-header__wordmark { width: 167px; height: 20px; }
.site-header__mark { display: none; width: 28px; height: 20px; }
.site-header__back { grid-column: 1; justify-self: start; margin-left: -10px; }
.site-header__end { grid-column: 3; justify-self: end; display: flex; align-items: center; gap: 24px; min-width: 0; }
/* Visitor buttons, as on husleie.no: «Logg inn» and «Opprett gratis konto» (no main menu) */
.site-header__actions { display: flex; align-items: center; gap: 12px; }
@media (max-width: 767px) {
  .site-header__wordmark { width: 140px; height: auto; }
  /* design system small button (32px) so the logo and both buttons share one row */
  .site-header__actions { gap: 8px; }
  .site-header__actions .btn { min-height: 32px; padding: 7px 12px; font-size: 13px; }
}
/* narrow phones: the Husleie mark instead of the full logo while the visitor buttons are shown */
@media (max-width: 479px) {
  html:not([data-user]) body:not(.in-flow) .site-header__wordmark { display: none; }
  html:not([data-user]) body:not(.in-flow) .site-header__mark { display: block; }
}
/* in the calculator: back arrow left, logo centred, no menu */
.in-flow .site-header__logo { grid-column: 2; justify-self: center; }
.in-flow .site-header__end { display: none; }

/* Logged in on husleie.no (html[data-user]): the account menu replaces the visitor buttons */
[data-user] .if-visitor { display: none; }
.account__btn { gap: 6px; max-width: 46vw; }
.account__btn > span { overflow: hidden; text-overflow: ellipsis; }
.account__btn[aria-expanded="true"] .account__chevron { rotate: 180deg; }
@media (prefers-reduced-motion: no-preference) { .account__chevron { transition: rotate var(--motion-fast) var(--ease-out); } }
@media (max-width: 767px) { .account__hello { display: none; } }
.account { position: relative; }
.account__menu {
  min-width: 200px; margin: 0; padding: 6px; border: 1px solid var(--c-border); border-radius: var(--radius-md);
  background: #fff; color: var(--c-foreground); box-shadow: var(--shadow-pop);
}
.account__menu a {
  display: flex; align-items: center; min-height: 44px; padding: 0 12px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: var(--fw-medium); color: inherit; text-decoration: none;
}
.account__menu a:hover { background: var(--c-muted); }
/* Without popover support the menu is a plain toggled list under the button */
.account__menu:not([popover]) { position: absolute; z-index: 20; top: calc(100% + 8px); right: 0; }
/* As a popover it lives in the top layer: script places it under the button unless position-area does */
.account__menu[popover] { position: fixed; inset: auto; margin: 0; }
@supports (position-area: block-end) {
  .account__menu[popover] { position-area: block-end span-inline-start; margin-block-start: 8px; }
}

.progress {
  appearance: none; position: absolute; left: 0; right: 0; bottom: -1px; display: block; width: 100%; height: 4px;
  border: 0; background: var(--c-border); color: var(--c-primary);
}
.progress::-webkit-progress-bar { background: var(--c-border); }
.progress::-webkit-progress-value { background: var(--c-primary); }
.progress::-moz-progress-bar { background: var(--c-primary); }

/* ----------------------------------------------------------------- footer */

.site-footer { border-top: 1px solid var(--c-border); background: #fff; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 32px; padding-block: 24px 32px; }
.site-footer__logo { display: inline-flex; align-items: center; min-height: 44px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 0 24px; }
.site-footer nav a, .site-footer nav button {
  display: inline-flex; align-items: center; min-height: 44px; padding: 0; border: 0; background: none;
  font-size: 14px; color: var(--c-muted-foreground); text-decoration: none;
}
.site-footer nav a:hover, .site-footer nav button:hover { color: var(--c-foreground); text-decoration: underline; }
.site-footer__copy { font-size: 12px; color: var(--c-muted-foreground); }
@media (min-width: 768px) { .site-footer__copy { font-size: 14px; } }
@media (max-width: 767px) { .site-footer__inner { flex-direction: column; align-items: flex-start; } }
/* the steps on a phone keep focus on the question: no footer */
@media (max-width: 767px) { .in-steps .site-footer { display: none; } }

/* ------------------------------------------------------------- start page */

.hero { display: grid; gap: 24px; padding-top: 16px; }
.hero__img { order: -1; width: 100%; height: 200px; object-fit: cover; object-position: center 35%; border-radius: var(--radius-lg); background: var(--c-muted); }
.hero__text { display: flex; flex-direction: column; gap: 12px; padding: 0 4px; }
.hero h1 { font-size: var(--text-hero); line-height: 1.05; }
.hero__lead { font-size: clamp(16px, 1.5vw, 20px); line-height: 1.45; color: var(--c-ink-2); max-width: 46ch; }
.choices { display: grid; gap: 12px; margin-top: 8px; }
.choice {
  display: flex; align-items: center; gap: 12px; min-height: 60px; padding: 0 20px;
  border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: #fff;
  font-size: 17px; font-weight: var(--fw-semibold); line-height: 1.25; color: #111; text-decoration: none;
  transition: border-color .15s var(--ease-out);
}
.choice .icon { color: var(--c-primary); }
.choice:hover { border-color: var(--c-primary); }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 24px; margin-top: 8px; font-size: 14px; color: var(--c-muted-foreground); }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
@media (min-width: 960px) {
  .hero { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; padding-top: 32px; }
  .hero__img { order: 0; height: 100%; min-height: 480px; border-radius: var(--radius-xl); object-position: center 40%; }
  .hero__text { justify-content: center; gap: 16px; padding: 24px 0; }
  .choices { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 560px; margin-top: 16px; }
  .choice { min-height: 64px; font-size: 18px; }
}

.kpi__card {
  display: flex; flex-direction: column; gap: 20px; padding: 24px;
  border: 1px solid var(--c-border); border-radius: var(--radius-xl); background: var(--c-card);
}
.kpi__text { display: grid; gap: 8px; max-width: 64ch; }
.kpi h2 { font-size: 20px; line-height: 1.25; letter-spacing: -0.01em; }
.kpi p { line-height: var(--lh-prose); color: var(--c-ink-2); }
.kpi .btn { align-self: flex-start; }
@media (min-width: 768px) {
  .kpi__card { flex-direction: row; align-items: center; justify-content: space-between; gap: 32px; padding: 32px 40px; }
  .kpi h2 { font-size: var(--text-h3); }
  .kpi .btn { align-self: center; }
}

.faq-section { display: flex; flex-wrap: wrap; gap: 12px 32px; align-items: flex-start; }
.faq-section__intro { flex: 1 1 300px; display: grid; gap: 8px; padding: 0 4px; }
.faq-section__intro h2 { font-size: var(--text-h2); }
.faq-section__intro p { color: var(--c-muted-foreground); line-height: 1.5; }
.faq { flex: 999 1 560px; min-width: 0; }
.faq details { border-bottom: 1px solid var(--c-border); }
.faq details:first-child { border-top: 1px solid var(--c-border); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  min-height: 56px; padding: 12px 4px; list-style: none; cursor: pointer;
  font-size: 16px; font-weight: var(--fw-semibold); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { color: var(--c-primary-ink); }
.faq__plus { width: 18px; height: 18px; color: var(--c-muted-foreground); }
.faq details[open] .faq__plus { transform: rotate(45deg); color: var(--c-primary-ink); }
.faq details p { max-width: 64ch; padding: 0 4px 16px; font-size: 14px; line-height: 1.5; color: var(--c-ink-2); }
@media (min-width: 768px) {
  .faq-section__intro { padding-top: 8px; }
  .faq summary { min-height: 64px; padding: 16px 4px; font-size: 18px; }
  .faq details p { padding-bottom: 20px; font-size: 16px; }
}
.noscript { padding-bottom: 40px; color: var(--c-ink-2); }

/* ------------------------------------------------------------------- flow */

.flow { display: flex; flex-wrap: wrap; gap: 32px; align-items: flex-start; padding-block: 0 56px; }
.flow__main { flex: 999 1 600px; min-width: 0; display: flex; flex-direction: column; gap: 24px; }
.flow__aside { flex: 1 1 380px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
@media (max-width: 959px) { .in-steps .flow__aside { display: none; } }
@media (min-width: 768px) { .flow { padding-top: 40px; } }

.step { display: flex; flex-direction: column; gap: 32px; }
.step__head { display: grid; gap: 12px; }
.step__count { font-size: 14px; font-weight: var(--fw-semibold); color: var(--c-primary-ink); font-variant-numeric: tabular-nums; }
.step h1 { font-size: var(--text-step); line-height: 1.15; }
.step__lede { font-size: 16px; line-height: 1.4; color: var(--c-muted-foreground); max-width: 60ch; }
.step__body { display: flex; flex-direction: column; gap: 28px; }
.step__foot { display: flex; flex-direction: column; gap: 12px; }
.step__note { display: none; }
.step__hint { font-size: 12px; line-height: var(--lh-normal); color: var(--c-muted-foreground); text-align: center; }
@media (max-width: 767px) {
  /* phone: one screen per question, the action at the bottom */
  .step { min-height: calc(100svh - var(--header-h) - 1px); padding-top: 32px; padding-bottom: 32px; }
  .step__foot { margin-top: auto; }
  .step__foot .btn { width: 100%; }
}
@media (min-width: 768px) {
  .step { padding: 40px; border: 1px solid var(--c-border); border-radius: var(--radius-xl); background: #fff; }
  .step__count { font-size: 16px; }
  .step__lede { font-size: 18px; }
  .step__foot { flex-direction: row; align-items: center; justify-content: space-between; gap: 16px; padding-top: 24px; border-top: 1px solid var(--c-border); }
  .step__foot .btn { margin-left: auto; }
  .step__note { display: inline; font-size: 14px; color: var(--c-muted-foreground); }
  .step__hint { display: none; }
}

/* ---------------------------------------------------------- form controls */

.field { display: flex; flex-direction: column; gap: 8px; max-width: 560px; }
.field__label { font-size: 14px; font-weight: var(--fw-semibold); }
.field__help { font-size: 12px; line-height: var(--lh-normal); color: var(--c-muted-foreground); }
.field__row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.field__row--start { justify-content: flex-start; }
.field__ok { display: flex; align-items: center; gap: 8px; min-height: 24px; font-size: 14px; color: var(--c-ink-2); }
.field__ok b { color: var(--c-primary-ink); }
.field__place { display: inline-flex; align-items: center; gap: 6px; font-size: 16px; font-weight: var(--fw-semibold); color: var(--c-primary-ink); }
.field__error { font-size: 14px; font-weight: var(--fw-medium); color: #be133f; }
.field__error:empty { display: none; }
@media (min-width: 768px) { .field__help { font-size: 14px; } }
.tick { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 20px; height: 20px; border-radius: 50%; background: var(--c-primary); color: #fff; }
.tick .icon { width: 12px; height: 12px; stroke-width: 4; }

.input, .combo__box, .money, .stepper { border: 1px solid var(--c-border-dark); border-radius: var(--radius-sm); background: #fff; }
.input:focus-visible, .combo__box:focus-within, .money:focus-within { outline: var(--focus); outline-offset: 2px; border-color: var(--c-primary); }
.input:focus-visible, .combo__box input:focus-visible, .money input:focus-visible { outline: none; }
[aria-invalid="true"], .combo__box:has([aria-invalid="true"]) { border-color: #be133f; }

.combo { position: relative; }
.combo__box { display: flex; align-items: center; gap: 10px; height: 56px; padding: 0 6px 0 16px; }
.combo__box input { flex: 1 1 auto; min-width: 0; height: 52px; border: 0; background: transparent; font-size: 18px; }
.combo__box input:focus { outline: none; }
.combo__list {
  position: absolute; z-index: 5; left: 0; right: 0; top: 62px; padding: 6px;
  border: 1px solid var(--c-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-pop);
}
.combo__list li[role="option"] {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 10px; border-radius: var(--radius-sm); cursor: pointer;
}
.combo__list li[role="option"]:hover, .combo__list li[aria-selected="true"] { background: var(--c-muted); }
.combo__list li .icon { width: 18px; height: 18px; color: var(--c-muted-foreground); }
.combo__opt { display: flex; flex-direction: column; gap: 2px; }
.combo__opt small { font-size: 12px; color: var(--c-muted-foreground); }
.combo__empty { padding: 12px 10px; font-size: 14px; color: var(--c-muted-foreground); }
@keyframes pop-in { from { opacity: 0; transform: translateY(-4px); } to { opacity: 1; transform: none; } }

.input--pc { width: 200px; height: 56px; padding: 0 16px; font-size: 20px; font-weight: var(--fw-semibold); letter-spacing: .08em; font-variant-numeric: tabular-nums; }
@media (min-width: 768px) { .input--pc { font-size: 24px; } }

/* option chips: a native radio or checkbox inside each label; :has(:checked) carries the state */
.opt {
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  min-height: 48px; padding: 0 16px; border: 1px solid var(--c-border-dark); border-radius: var(--radius-sm);
  background: #fff; color: var(--c-foreground); font-size: 14px; font-weight: var(--fw-medium);
  transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out);
}
.opt:hover { border-color: var(--c-primary); }
.opt:has(:focus-visible), .tile:has(:focus-visible) { outline: var(--focus); outline-offset: 2px; }
.opt:has(:checked) { border-color: var(--c-primary); background: var(--c-primary-light); color: var(--c-primary-ink); font-weight: var(--fw-semibold); }
.seg { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; max-width: 520px; }
@media (min-width: 768px) { .seg { gap: 12px; } .seg .opt { min-height: 56px; font-size: 16px; } }

.steppers { display: flex; flex-wrap: wrap; gap: 28px 24px; }
.steppers .field { flex: 1 1 248px; max-width: 360px; }
@media (min-width: 768px) { .steppers .field { flex: 0 0 248px; } }
.stepper { display: flex; align-items: center; justify-content: space-between; height: 56px; padding: 0 6px; }
.stepper .icon-btn { color: var(--c-muted-foreground); }
.stepper output { font-size: 20px; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }

.tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 768px) { .tiles { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.tile {
  cursor: pointer;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between;
  height: 88px; padding: 16px; border: 1px solid var(--c-border-dark); border-radius: var(--radius-md);
  background: #fff; text-align: left; font-size: 15px; font-weight: var(--fw-semibold);
  transition: border-color .15s var(--ease-out), background-color .15s var(--ease-out);
}
@media (min-width: 768px) { .tile { height: 112px; font-size: 16px; } }
.tile:hover { border-color: var(--c-primary); }
.tile__box { display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border: 1.5px solid var(--c-border-dark); border-radius: var(--radius-xs); background: #fff; color: #fff; }
.tile__box .icon { width: 14px; height: 14px; stroke-width: 3.5; }
.tile:has(:checked) { border-color: var(--c-primary); background: var(--c-primary-light); }
.tile:has(:checked) .tile__box { border-color: var(--c-primary); background: var(--c-primary); }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chips .opt { min-height: 44px; }

.money { display: flex; align-items: center; width: 360px; max-width: 100%; height: 64px; padding: 0 16px; }
.money input { flex: 1 1 auto; min-width: 0; border: 0; background: transparent; font-size: 28px; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.money input:focus { outline: none; }
.money span { font-size: 16px; font-weight: var(--fw-medium); color: var(--c-muted-foreground); white-space: nowrap; }

/* ----------------------------------------------------------------- loader */

.loader { display: flex; flex-direction: column; justify-content: center; gap: 40px; min-height: calc(100svh - var(--header-h) - 1px); padding-block: 32px; }
.loader__status { display: flex; flex-direction: column; align-items: center; gap: 20px; }
.spinner { width: 72px; height: 72px; border-radius: 50%; border: 6px solid var(--c-primary-light); border-top-color: var(--c-primary); animation: spin .9s linear infinite; }
@media (prefers-reduced-motion: reduce) { .spinner { animation-duration: 3s; } }
.loader__line { font-size: 18px; font-weight: var(--fw-semibold); line-height: 1.3; text-align: center; }
.loader__card { display: flex; flex-direction: column; align-items: center; gap: 16px; padding: 24px 20px; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-card); }
.loader__kicker { font-size: 14px; font-weight: var(--fw-semibold); color: var(--c-primary-ink); }
.loader__slide { display: flex; align-items: center; justify-content: center; min-height: 84px; font-size: 20px; font-weight: var(--fw-semibold); line-height: 1.4; text-align: center; }
.loader__note { font-size: 12px; line-height: var(--lh-normal); color: var(--c-muted-foreground); text-align: center; }
.dots { display: flex; gap: 6px; }
.dots span { width: 6px; height: 6px; border-radius: var(--radius-full); background: var(--c-border); transition: background-color .25s; }
.dots span.on { width: 20px; background: var(--c-primary); }
@media (min-width: 768px) {
  .loader { min-height: 560px; padding: 64px 40px; gap: 48px; border: 1px solid var(--c-border); border-radius: var(--radius-xl); }
  .spinner { width: 96px; height: 96px; border-width: 8px; }
  .loader__line { font-size: 24px; }
  .loader__card { width: 100%; max-width: 680px; align-self: center; padding: 32px 40px; gap: 20px; }
  .loader__kicker { font-size: 16px; }
  .loader__slide { min-height: 76px; max-width: 560px; font-size: 28px; line-height: 1.35; letter-spacing: -0.01em; }
  .loader__note { font-size: 14px; }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes rise-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes swap-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
/* Spatial motion is opt-in: without a reduced-motion preference only. Colour transitions stay on. */
@media (prefers-reduced-motion: no-preference) {
  .loader { animation: rise-in .25s var(--ease-out) both; }
  .swap { animation: swap-in .18s var(--ease-out) both; }
  .combo__list { animation: pop-in .15s var(--ease-out) both; }
  .tip { animation: pop-in .18s var(--ease-out) both; }
  .faq__plus { transition: transform var(--motion-normal) var(--ease-out); }
  .dots span { transition: width .25s var(--ease-out), background-color .25s; }
}

/* ----------------------------------------------------------------- result */

.result { display: flex; flex-direction: column; gap: 16px; padding-top: 16px; }
@media (min-width: 768px) { .result { padding-top: 0; } }
.summary {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 48px; padding: 8px 16px;
  border: 1px solid var(--c-border); border-radius: var(--radius-sm); background: var(--c-card); text-align: left;
  font-size: 14px; color: var(--c-ink-2);
}
.summary:hover { background: var(--c-muted); }
.summary__edit { display: inline-flex; align-items: center; gap: 6px; flex: none; font-weight: var(--fw-semibold); color: var(--c-primary-ink); }
@media (min-width: 768px) { .summary { font-size: 16px; } }

/* Flat card (the canvas's mint gradient was removed 16.11); the white range box sits on the card tint */
.answer { display: flex; flex-direction: column; gap: 20px; padding: 24px 20px; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: var(--c-card); }
@media (min-width: 768px) { .answer { gap: 24px; padding: 40px; } }
.answer__head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.answer__head--center { align-items: center; text-align: center; }
.answer__kicker { font-size: 16px; font-weight: var(--fw-semibold); color: var(--c-ink-2); }
.answer__value { font-size: var(--text-value); line-height: 1.1; font-variant-numeric: tabular-nums; }
.answer__value--t { font-size: clamp(28px, 3vw, 40px); }
.answer__unit { font-size: 18px; font-weight: var(--fw-medium); letter-spacing: 0; color: var(--c-ink-2); }
.answer__sub { font-size: 16px; color: var(--c-ink-2); font-variant-numeric: tabular-nums; }
.answer__sub b { color: var(--c-foreground); }

.pill { display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-full); font-size: 12px; font-weight: var(--fw-semibold); }
.pill--success, .pill.is-success { background: var(--c-primary-light); color: var(--c-primary-ink); }
.pill.is-warning { background: var(--c-warning-bg); color: var(--c-warning-ink); }
.pill.is-info { background: var(--c-info-bg); color: var(--c-info); }

.range { display: flex; flex-direction: column; gap: 12px; padding: 20px; border-radius: var(--radius-md); background: #fff; }
@media (min-width: 768px) { .range { padding: 24px; } }
.range__u { display: flex; flex-direction: column; gap: 24px; padding-block: 8px 4px; }
@media (min-width: 768px) { .range__u { gap: 32px; padding-block: 16px 8px; } }
.bar { position: relative; height: 48px; margin-inline: 4px; }
.bar--t { height: 52px; margin-inline: 12px; }
.bar__track { position: absolute; left: 0; right: 0; top: 30px; height: 10px; border-radius: var(--radius-full); background: var(--c-muted); }
.bar--t .bar__track { top: 32px; }
.bar__track--full { background: var(--c-primary); }
.bar__band { position: absolute; left: var(--left); width: var(--width); top: 32px; height: 10px; border-radius: var(--radius-full); background: var(--c-primary); }
.bar__mark { position: absolute; left: var(--left); top: 22px; width: 6px; height: 26px; margin-left: -3px; border-radius: var(--radius-full); background: var(--c-secondary); box-shadow: 0 0 0 3px #fff; }
.bar--t .bar__mark { top: 24px; }
.bar__tag { position: absolute; left: var(--left); top: 0; transform: translateX(-50%); font-size: 14px; font-weight: var(--fw-semibold); white-space: nowrap; color: var(--c-primary-ink); }
.bar__tag--ask { color: var(--c-foreground); }
.bar__tag.align-start { transform: translateX(-12px); }
.bar__tag.align-end { transform: translateX(calc(-100% + 12px)); }
.bar__dot { position: absolute; left: var(--left); top: 25px; width: 24px; height: 24px; margin-left: -12px; border-radius: 50%; border: 4px solid #fff; box-shadow: 0 0 0 1px var(--c-border-dark); background: var(--c-primary); }
.range__ends { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; }
.range__ends > span { display: flex; flex-direction: column; gap: 2px; }
.range__ends b { font-size: 18px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.range__ends small { font-size: 14px; color: var(--c-muted-foreground); }
.range__end-r { align-items: flex-end; text-align: right; }
/* Tenant: the range and the checked rent are both long; stack them on narrow screens so neither overflows */
@media (max-width: 559px) {
  .range__ends--t { flex-direction: column; gap: 12px; }
  .range__ends--t .range__end-r { align-items: flex-start; text-align: left; }
}
.legend { display: inline-flex; align-items: center; gap: 8px; }
.legend__band { width: 14px; height: 6px; border-radius: var(--radius-full); background: var(--c-primary); }
.legend__dot { width: 12px; height: 12px; border-radius: 50%; background: var(--c-primary); }
.is-warning.bar__dot, .is-warning.legend__dot { background: var(--c-warning); }
.is-info.bar__dot, .is-info.legend__dot { background: var(--c-info); }

.source { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; font-size: 14px; color: var(--c-ink-2); }
.source > span { flex: 1 1 200px; }
.source__toggle {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px; margin: -10px -12px -10px 0;
  border: 0; border-radius: var(--radius-sm); background: transparent; font-size: 14px; font-weight: var(--fw-semibold);
}
.source__toggle:hover { background: rgba(255, 255, 255, .6); }
.source__toggle[aria-expanded="true"] { color: var(--c-primary-ink); }
.tip { display: flex; flex-direction: column; gap: 12px; max-width: 72ch; padding: 20px 24px; border-radius: var(--radius-md); background: #fff; font-size: 15px; line-height: var(--lh-prose); color: var(--c-ink-2); }
.tip > div { display: grid; gap: 12px; }
.tip b { color: var(--c-foreground); }

.result__cta { display: flex; flex-direction: column; gap: 8px; }
.advice { padding: 0 4px; font-size: 16px; line-height: 1.5; color: var(--c-ink-2); }
.advice b { color: var(--c-foreground); }

.block { display: flex; flex-direction: column; gap: 16px; margin-top: 16px; }
.block h2 { padding: 0 4px; font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
@media (min-width: 768px) { .block h2 { font-size: var(--text-h3); } }
.block__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px 16px; flex-wrap: wrap; }
.block__head h2 { padding: 0; }
.block__head > div { display: grid; gap: 4px; padding: 0 4px; }
.block__sub { font-size: 14px; color: var(--c-muted-foreground); }
.features { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 12px; }
@media (min-width: 768px) { .features { gap: 16px; } }
.features li { display: flex; gap: 14px; padding: 20px; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: #fff; }
.features li > span { display: flex; flex-direction: column; gap: 4px; font-size: 14px; line-height: 1.45; color: var(--c-muted-foreground); }
.features b { font-size: 16px; line-height: 1.3; color: var(--c-foreground); }
/* Listing cards: a row (photo left) on phones, a three-column grid from 560px */
.listings { display: grid; gap: 12px; }
.listing > a, .listing--skeleton {
  display: grid; grid-template-columns: 120px minmax(0, 1fr); align-items: center; gap: 0;
  min-height: 90px; overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--radius-lg); background: #fff;
  color: inherit; text-decoration: none;
}
.listing > a:hover { background-color: var(--c-card); border-color: var(--c-border-dark); }
.listing__img { display: flex; align-items: center; justify-content: center; align-self: stretch; min-height: 90px; overflow: hidden; background: var(--c-muted); color: var(--c-muted-foreground); }
.listing__img img { width: 100%; height: 100%; object-fit: cover; }
.listing__body { display: flex; flex-direction: column; gap: 2px; min-width: 0; padding: 12px 14px; font-size: 14px; }
.listing__price { font-size: 16px; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.listing__price small { font-size: 13px; font-weight: var(--fw-medium); color: var(--c-muted-foreground); }
.listing__street { font-weight: var(--fw-semibold); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.listing__meta { color: var(--c-muted-foreground); }
.listing--skeleton .listing__body span { display: block; height: 12px; border-radius: var(--radius-xs); background: var(--c-muted); }
.listing--skeleton .listing__body span + span { width: 60%; margin-top: 8px; }
@media (min-width: 560px) {
  .listings { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .listing > a, .listing--skeleton { grid-template-columns: 1fr; align-items: stretch; }
  .listing__img { aspect-ratio: 4 / 3; min-height: 0; }
  .listing__body { padding: 14px 16px 16px; }
  .listing__price { font-size: 18px; }
}

/* ------------------------------------------------------------------ aside */

.panel { display: flex; flex-direction: column; gap: 16px; padding: 24px 20px; border: 1px solid var(--c-border); border-radius: var(--radius-xl); background: #fff; }
@media (min-width: 768px) { .panel { padding: 28px; } }
.panel--sunk { background: var(--c-card); }
.panel__title { font-size: 18px; letter-spacing: 0; }
.panel__intro { display: grid; gap: 6px; }
.panel__intro h2 { font-size: 20px; line-height: 1.2; letter-spacing: -0.01em; }
@media (min-width: 768px) { .panel__intro h2 { font-size: var(--text-h3); } }
.panel__intro p { line-height: 1.45; color: var(--c-ink-2); }
.panel__cta { display: flex; flex-direction: column; gap: 8px; }
.panel__foot { padding-top: 12px; border-top: 1px solid var(--c-border); font-size: 14px; color: var(--c-muted-foreground); }
.panel__foot a { font-weight: var(--fw-semibold); color: var(--c-primary-ink); text-decoration: none; }
.panel__foot a:hover { text-decoration: underline; }

.answers li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 0; border-top: 1px solid var(--c-border); }
.answers__mark { flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--c-border-dark); background: #fff; }
.answers li.is-current .answers__mark { border-color: var(--c-primary); }
.answers li.is-done .answers__mark { display: inline-flex; align-items: center; justify-content: center; border: 0; background: var(--c-primary); color: #fff; }
.answers__mark .icon { width: 12px; height: 12px; stroke-width: 4; }
.answers__text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.answers__text small { font-size: 14px; color: var(--c-muted-foreground); }
.answers__text span { font-size: 16px; color: var(--c-muted-foreground); overflow-wrap: anywhere; }
.answers li.is-current .answers__text span { color: var(--c-foreground); }
.answers li.is-done .answers__text span { color: var(--c-foreground); font-weight: var(--fw-semibold); }

.trust { display: grid; gap: 12px; padding: 8px 4px 0; }
.trust h2 { font-size: 16px; letter-spacing: 0; line-height: 1.3; }
.trust p { font-size: 14px; line-height: 1.5; color: var(--c-muted-foreground); }
.trust ul { display: grid; gap: 12px; }
.trust li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--c-ink-2); }

.adcard { overflow: hidden; border: 1px solid var(--c-border); border-radius: var(--radius-lg); }
.adcard__img { position: relative; display: flex; align-items: center; justify-content: center; aspect-ratio: 16 / 10; background: var(--c-muted); color: var(--c-muted-foreground); }
.adcard__ph { display: flex; flex-direction: column; align-items: center; gap: 8px; font-size: 12px; font-weight: var(--fw-medium); }
.adcard__badge { position: absolute; top: 10px; right: 10px; display: inline-flex; align-items: center; height: 24px; padding: 0 10px; border-radius: var(--radius-full); background: rgba(255, 255, 255, .92); font-size: 12px; font-weight: var(--fw-semibold); color: var(--c-foreground); }
.adcard__body { display: flex; flex-direction: column; gap: 2px; padding: 14px 16px 16px; font-size: 14px; }
.adcard__body b { font-size: 16px; }
.adcard__price { margin-top: 6px; font-size: 18px; font-weight: var(--fw-semibold); font-variant-numeric: tabular-nums; }
.adcard__price small { font-size: 14px; font-weight: var(--fw-medium); color: var(--c-muted-foreground); }
.adcard__channels { padding: 4px 16px; border-top: 1px solid var(--c-border); }
.adcard__channels li { display: flex; align-items: center; justify-content: space-between; min-height: 44px; font-size: 14px; }
.adcard__channels li + li { border-top: 1px solid var(--c-border); }

.checks { display: grid; gap: 16px; }
.checks li { display: flex; gap: 12px; }
.checks__icon { display: inline-flex; align-items: flex-start; justify-content: center; flex: none; width: 24px; padding-top: 1px; color: var(--c-primary); }
.checks__icon .icon { width: 20px; height: 20px; }
.checks li > span:last-child { display: flex; flex-direction: column; gap: 2px; font-size: 14px; line-height: 1.4; color: var(--c-muted-foreground); }
.checks b { font-size: 16px; color: var(--c-foreground); }

@media (max-width: 959px) { .only-wide { display: none !important; } }
@media (min-width: 960px) { .only-narrow { display: none !important; } }

/* ----------------------------------------------------------------- cookie */

.cookie {
  position: fixed; z-index: 50; left: 16px; right: 16px; bottom: 16px; display: flex; flex-direction: column; gap: 16px;
  padding: 24px; border: 1px solid var(--c-border); border-radius: var(--radius-md); background: #fff; box-shadow: var(--shadow-pop);
  font-size: 14px; font-weight: var(--fw-medium); line-height: 1.5; color: var(--c-ink-2);
}
.cookie a { text-decoration: underline; text-decoration-color: var(--c-primary); text-underline-offset: 3px; }
.cookie__actions { display: flex; gap: 8px; }
@media (min-width: 768px) { .cookie { left: auto; right: 32px; bottom: 32px; width: 340px; } }

/* -------------------------------------------------------- privacy policy */

.page { padding-block: clamp(32px, 5vw, 64px); }
.prose { max-width: 72ch; line-height: 1.6; overflow-wrap: break-word; }
.prose > * + * { margin-top: 16px; }
.prose h1 { font-size: clamp(32px, 3.8vw, 44px); }
.prose h2 { margin-top: 40px; font-size: var(--text-h3); }
.prose h3 { margin-top: 28px; font-size: 20px; line-height: 1.25; }
.prose h2 + *, .prose h3 + * { margin-top: 12px; }
.prose ul, .prose ol { display: grid; gap: 8px; padding-left: 22px; }
.prose ul { list-style: disc; }
.prose ol { list-style: decimal; }
.prose a { text-decoration: underline; text-decoration-color: var(--c-primary); text-underline-offset: 3px; overflow-wrap: anywhere; }
.prose table { width: 100%; border-collapse: collapse; font-size: 14px; line-height: var(--lh-normal); }
.prose th, .prose td { padding: 10px 12px; border: 1px solid var(--c-border-dark); text-align: left; vertical-align: top; }
.prose th { background: var(--c-muted); }
