/* ---------- Poppins, self-hosted ---------- */
/* Served from this origin rather than fonts.gstatic.com: one less origin to
   connect to, no serialised CSS-then-font round trip, and no visitor IP handed
   to a third party. Browsers partition their HTTP cache per site, so the
   "already cached from another site" argument for a CDN no longer holds.
   Only 300 and 500 are shipped - they are the only weights the site uses.
   latin-ext is NOT optional here: without it every Slovak diacritic falls back
   to another font mid-word. */
@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-300.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: 'Poppins';
  font-style: normal;
  font-weight: 300;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-ext-300.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

@font-face {
  font-family: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-500.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: 'Poppins';
  font-style: normal;
  font-weight: 500;
  font-display: swap;
  src: url('/assets/fonts/poppins-latin-ext-500.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-20C4, U+2113, U+2C60-2C7F, U+A720-A7FF;
}

/* Design tokens taken from the source design. */
:root {
  --sand: #F5F3EC;
  --sand-dim: #EEECE2;
  --sage: #E7ECD9;
  --ink: #1A2114;
  --ink-soft: #4A5142;
  --ink-muted: #6B7161;
  --ink-label: #5C6353;
  --green: #5A8D2B;
  --green-dark: #3F651C;
  --green-hover: #4B7A22;
  --green-deep: #33501A;
  --line: #E3E0D4;
  --line-soft: #DDDACD;
  --line-sage: #CFD6BC;
  --line-cool: #CBD1BC;
  --forest: #1E2A12;
  --forest-text: #F0EFE6;
  --forest-muted: #C7CDBB;
  --forest-accent: #A8C77E;
  --forest-dot: #8FBB55;
  --clay: #A55A28;
  --footer: #161E10;
  --footer-text: #9BA391;
  /* One family, two weights: 300 carries the prose, 500 every emphasis. */
  --font-display: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --font-body: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --weight-body: 300;
  --weight-medium: 500;
  --gutter: clamp(16px, 4vw, 56px);
  --section-y: clamp(48px, 7vw, 104px);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  /* Keep anchor targets clear of the sticky header. */
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  background: var(--sand);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: var(--weight-body);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }

input, button, select, textarea { font: inherit; color: inherit; }

/* Visible keyboard focus - the source design had no focus styling at all. */
:focus-visible {
  outline: 2px solid var(--green);
  outline-offset: 3px;
  border-radius: 4px;
}

h1, h2, h3 { text-wrap: balance; }

/* Only 300 and 500 are loaded, so bold would be synthesised. */
strong, b { font-weight: var(--weight-medium); }
p { text-wrap: pretty; }

/* ---------- shared type ---------- */

.display {
  font-family: var(--font-display);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.12;
  margin: 0;
  font-size: clamp(26px, 3.2vw, 40px);
}

.eyebrow {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--green);
}

.lede { font-size: clamp(15px, 1.4vw, 17px); line-height: 1.65; color: var(--ink-soft); }

.pill {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border-radius: 999px;
  font-weight: 500;
  white-space: nowrap;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}

.pill--primary { padding: 16px 28px; background: var(--ink); color: var(--sand); font-size: 16px; }
.pill--primary:hover { background: var(--green-deep); color: var(--sand); }

.pill--ghost { padding: 16px 26px; border: 1px solid var(--line-cool); color: var(--ink); font-size: 16px; font-weight: 500; }
.pill--ghost:hover { border-color: var(--green); color: var(--green-dark); }

.pill--compact { padding: 10px 18px; background: var(--green); color: #FFFFFF; font-size: 14px; }
.pill--compact:hover { background: var(--green-hover); color: #FFFFFF; }

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

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px var(--gutter);
  background: rgba(245, 243, 236, 0.88);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}

.site-header__identity {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 0;
  color: inherit;
  text-decoration: none;
}
.site-header__mark { flex: none; display: block; width: 31px; height: 34px; }
.site-header__text { display: flex; flex-direction: column; gap: 1px; min-width: 0; }
.site-header__identity:hover { color: inherit; }
.site-header__name { font-family: var(--font-display); font-size: 17px; font-weight: 500; letter-spacing: -0.01em; white-space: nowrap; }
.site-header__role { font-size: 11px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.site-header__actions { display: flex; align-items: center; gap: 10px; }

/* ---------- hero ---------- */

.page-hero {
  padding: clamp(40px, 6vw, 80px) var(--gutter) clamp(24px, 3vw, 40px);
  background: radial-gradient(120% 90% at 80% 20%, var(--sage) 0%, var(--sand) 62%);
}

.page-hero__inner { max-width: 1240px; margin: 0 auto; }

.page-hero__title {
  margin: 16px 0 0;
  max-width: 20ch;
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: clamp(32px, 4.8vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.page-hero__text { margin: 20px 0 0; max-width: 56ch; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.62; color: var(--ink-soft); }

/* ---------- funnel: the step-by-step valuation ---------- */

.funnel {
  padding: clamp(32px, 5vw, 72px) var(--gutter) var(--section-y);
  background: radial-gradient(120% 90% at 85% 20%, var(--sage) 0%, var(--sand) 62%);
}

/* The pitch beside the form on a wide screen, above it on a narrow one. */
.funnel__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(28px, 4vw, 40px);
  max-width: 1240px;
  margin: 0 auto;
  align-items: start;
}

@media (min-width: 980px) {
  .funnel__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 600px); gap: clamp(40px, 5vw, 80px); }
  .funnel__intro { position: sticky; top: 120px; }
  /* While the card is shorter than the pitch (the first step), it sits on the
     pitch's centre line rather than hanging from the top. Once a step makes
     it taller, the row grows to fit it and the pitch stays put, so the
     headline does not move every time "Ďalej" is pressed. */
  .funnel__card { align-self: center; }
}

.funnel__title {
  margin: 16px 0 0;
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: clamp(32px, 4.6vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.025em;
}

.funnel__lede { margin: 20px 0 0; max-width: 48ch; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.62; color: var(--ink-soft); }

.funnel__points { display: flex; flex-direction: column; gap: 12px; margin: 28px 0 0; padding: 0; list-style: none; }
.funnel__point { display: flex; align-items: center; gap: 12px; font-size: 15.5px; font-weight: var(--weight-medium); color: var(--ink); }
.funnel__point::before {
  content: '';
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--sage) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 24 24' fill='none' stroke='%233F651C' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 13px no-repeat;
  border: 1px solid var(--line-sage);
}

/* On a phone the pitch is a heading and a line; the points would push the
   form below the fold. */
@media (max-width: 979px) {
  .funnel__points { display: none; }
  .funnel__intro { text-align: center; }
  .funnel__lede { margin-left: auto; margin-right: auto; }
}

.funnel__card {
  position: relative;
  padding: clamp(22px, 3.5vw, 40px);
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: 24px;
  box-shadow: 0 30px 70px rgba(26, 33, 20, 0.08), 0 2px 6px rgba(26, 33, 20, 0.04);
}

/* ---------- stepper ---------- */
/* Which step, by name, over five segments: done ones full, the open one
   filling as it opens. Replaces a percentage, which says how far but not
   what comes next. */
.stepper { margin-bottom: clamp(22px, 3vw, 30px); }

.stepper__head { display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.stepper__logo { flex: none; width: 26px; height: auto; }
.stepper__count { margin: 0; font-size: 12px; font-weight: var(--weight-medium); letter-spacing: 0.14em; text-transform: uppercase; color: var(--ink-muted); }
.stepper__name {
  margin: 0 0 0 auto;
  font-size: 14px;
  font-weight: var(--weight-medium);
  color: var(--green-dark);
  animation: stepItemIn .35s cubic-bezier(.22, .61, .36, 1) both;
}

.stepper__track { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.stepper__segment { position: relative; height: 5px; overflow: hidden; border-radius: 999px; background: var(--line); }
.stepper__fill {
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green-dark), var(--green));
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform .55s cubic-bezier(.22, .61, .36, 1);
}
.stepper__segment.is-done .stepper__fill,
.stepper__segment.is-current .stepper__fill { transform: scaleX(1); }
/* The open step's segment is a lighter green, so "here" reads apart from "done". */
.stepper__segment.is-current .stepper__fill { background: linear-gradient(90deg, var(--green), var(--forest-dot)); }

/* Changing step: the old one slides out the way the visitor is going, then
   the new one's parts arrive in turn, heading first. Forward moves left, back
   moves right. --i, the order of each part, is set by app.js. */
.step > * { animation: stepItemIn .46s cubic-bezier(.22, .61, .36, 1) both; animation-delay: calc(var(--i, 0) * 55ms); }
[data-direction="back"] .step > * { animation-name: stepItemInBack; }
.step.is-leaving { animation: stepOut .18s ease-in both; }
[data-direction="back"] .step.is-leaving { animation-name: stepOutBack; }
.step[hidden] { display: none; }

/* Headings take focus when their step opens, so a screen reader announces the
   new question. They are not controls, so they show no ring. */
.step__title, .teaser__title { outline: none; }

.step__title {
  margin: 0;
  font-family: var(--font-display);
  font-weight: var(--weight-medium);
  font-size: clamp(21px, 2.2vw, 25px);
  line-height: 1.25;
  letter-spacing: -0.015em;
}
.step__title--next { margin-top: clamp(30px, 4vw, 40px); }
.step__subtitle { margin: clamp(28px, 4vw, 36px) 0 0; font-size: clamp(18px, 1.8vw, 20px); font-weight: var(--weight-medium); letter-spacing: -0.01em; }

/* ---------- fields ---------- */

.field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.field[hidden] { display: none; }
.field__label { font-size: 14px; font-weight: var(--weight-medium); color: var(--ink-label); }
.field__optional { font-weight: var(--weight-body); color: var(--ink-muted); }

.field__input {
  width: 100%;
  min-height: 50px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-soft);
  background: var(--sand);
  font-size: 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.field__input:focus { border-color: var(--green); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(90, 141, 43, 0.15); }
.field__input[aria-invalid="true"] { border-color: #C77A6A; background: #FDF3F1; }

select.field__input {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%234A5142' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 16px center;
}

.field__error { margin: 0; font-size: 13px; line-height: 1.45; color: #8A3527; }
.field__error:empty { display: none; }

.form__grid { display: grid; gap: 16px 18px; grid-template-columns: 1fr; }
.form__grid + .form__grid, .form__grid + .field { margin-top: 16px; }
.details .form__grid { margin-top: 18px; }

@media (min-width: 560px) {
  .form__grid { grid-template-columns: 1fr 1fr; }
  .form__grid--name { grid-template-columns: 120px 1fr 1fr; }
  .form__grid--address { grid-template-columns: repeat(4, 1fr); }
  .form__grid--address [data-field="ulica"], .form__grid--address [data-field="obec"] { grid-column: span 3; }
}

.teaser + .form__grid { margin-top: clamp(24px, 3vw, 32px); }

.check-row { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; line-height: 1.55; color: var(--ink-soft); cursor: pointer; }
.check-row input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--green); }
.consent-field { margin-top: 22px; }

/* ---------- step 1: address search ---------- */

/* Block, not the flex column every other .field is: the suggestion list below
   relies on its static position, and inside a flex container an absolutely
   positioned child's static position is the container's top edge. */
/* z-index: each part of a step animates in, which gives every one of them
   its own stacking context. Without this, the suggestion list's z-index only
   counts inside this block, and the link and note after it paint on top. */
.address.field { display: block; position: relative; z-index: 5; margin-top: 20px; }
.address .field__label { display: block; margin-bottom: 6px; }
.address .field__error { margin-top: 6px; }
.address[hidden] { display: none; }
.address__box { position: relative; display: flex; align-items: center; }
.address__icon { position: absolute; left: 16px; color: var(--ink-muted); pointer-events: none; }

.address__input {
  width: 100%;
  min-height: 58px;
  padding: 14px 52px 14px 48px;
  border-radius: 14px;
  border: 1px solid var(--line-soft);
  background: var(--sand);
  font-size: 16px;
  outline: none;
  transition: border-color .2s ease, box-shadow .2s ease, background-color .2s ease;
}
.address__input:focus { border-color: var(--green); background: #FFFFFF; box-shadow: 0 0 0 3px rgba(90, 141, 43, 0.15); }
.address__input[aria-invalid="true"] { border-color: #C77A6A; }

.address__clear {
  position: absolute;
  right: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 999px;
  background: none;
  color: var(--ink-muted);
  cursor: pointer;
}
.address__clear:hover { background: var(--sand-dim); color: var(--ink); }
.address__clear[hidden] { display: none; }

/* No top: an absolutely positioned box without one stays where it would have
   been in the flow, right under the input, and floats over what follows. */
.address__suggestions {
  position: absolute;
  z-index: 20;
  left: 0;
  right: 0;
  max-height: 340px;
  margin: 6px 0 0;
  padding: 6px;
  overflow-y: auto;
  list-style: none;
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  border-radius: 14px;
  box-shadow: 0 18px 40px rgba(26, 33, 20, 0.12);
}
.address__suggestions[hidden] { display: none; }

.suggestion { display: flex; flex-direction: column; gap: 2px; padding: 10px 12px; border-radius: 10px; cursor: pointer; }
.suggestion:hover, .suggestion[aria-selected="true"] { background: var(--sage); }
.suggestion__label { font-size: 15px; font-weight: var(--weight-medium); }
.suggestion__detail { font-size: 13px; color: var(--ink-muted); }
.suggestion--note { cursor: default; font-size: 14px; color: var(--ink-muted); }
.suggestion--note:hover { background: none; }

.address__found { margin-top: 22px; animation: fadeUp .45s cubic-bezier(.22, .61, .36, 1) both; }
.address__found[hidden] { display: none; }
.address__found-label { margin: 0 0 10px; font-size: 15px; font-weight: var(--weight-medium); color: var(--green-dark); }

/* A still map built from OpenStreetMap tiles by app.js: no map library, no
   key, nothing to pan. Toned down so the pin is what stands out. */
.map { position: relative; height: 200px; overflow: hidden; border-radius: 14px; border: 1px solid var(--line-soft); background: var(--sand-dim); }
.map__tile { position: absolute; width: 256px; height: 256px; max-width: none; filter: grayscale(.85) contrast(.92) brightness(1.06); user-select: none; }
.map__pin {
  position: absolute;
  left: 50%;
  top: 50%;
  color: var(--green);
  transform: translate(-50%, -100%);
  filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.25));
  animation: pinDrop .6s cubic-bezier(.34, 1.56, .64, 1) .15s both;
}
/* A few rings where the pin lands, then still. */
.map__pulse {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 16px;
  height: 16px;
  margin: -8px 0 0 -8px;
  border-radius: 999px;
  background: rgba(90, 141, 43, 0.4);
  animation: ring 1.8s ease-out .6s 3 both;
}
.map__credit { position: absolute; right: 0; bottom: 0; padding: 2px 6px; border-top-left-radius: 6px; background: rgba(255, 255, 255, 0.85); font-size: 11px; }
.map__credit a { color: var(--ink-soft); }

.link-button { display: inline-block; margin-top: 16px; padding: 6px 0; background: none; border: 0; cursor: pointer; font-size: 14px; color: var(--green-dark); text-decoration: underline; text-underline-offset: 3px; }
.link-button[hidden] { display: none; }

.address__manual { margin: 18px 0 0; padding: 0; border: 0; min-width: 0; }
.address__manual[hidden] { display: none; }

.trust { display: flex; align-items: center; justify-content: center; gap: 8px; margin: clamp(28px, 4vw, 40px) 0 0; font-size: 13.5px; color: var(--ink-muted); text-align: center; }
.trust svg { flex: none; }

/* ---------- step 2: type cards ---------- */

.type-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }

.type-card {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 18px 18px 20px;
  border: 1.5px solid var(--line-soft);
  border-radius: 18px;
  background: var(--sand);
  cursor: pointer;
  transition: border-color .2s ease, background-color .2s ease, transform .25s ease, box-shadow .25s ease;
}
.type-card:hover { border-color: var(--line-cool); background: #FFFFFF; transform: translateY(-2px); box-shadow: 0 14px 30px rgba(26, 33, 20, 0.08); }
.type-card__input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }

.type-card__badge {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  margin-bottom: 10px;
  border-radius: 16px;
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  color: var(--green-dark);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.type-card__label { font-size: 17px; font-weight: var(--weight-medium); letter-spacing: -0.01em; color: var(--ink); }
.type-card__hint { font-size: 13.5px; color: var(--ink-muted); }

.type-card:has(.type-card__input:checked) { border-color: var(--green); background: #FFFFFF; box-shadow: 0 0 0 4px rgba(90, 141, 43, 0.12); }
.type-card:has(.type-card__input:checked) .type-card__badge { background: var(--green); border-color: var(--green); color: #FFFFFF; transform: rotate(-6deg) scale(1.05); }
.type-card:has(.type-card__input:focus-visible) { outline: 2px solid var(--green); outline-offset: 3px; }

.details { animation: fadeUp .35s ease both; }
.details[hidden] { display: none; }

/* ---------- steps 3 and 4: choice cards and chips ---------- */

.choices { display: grid; gap: 12px; margin-top: 20px; }

/* Every choice is a whole-surface radio button: the input covers its label,
   invisible, so it stays a native radio group for keys and screen readers. */
.choice {
  position: relative;
  display: flex;
  cursor: pointer;
  border: 1.5px solid var(--line-soft);
  background: var(--sand);
  transition: border-color .2s ease, background-color .2s ease, color .2s ease, transform .25s ease, box-shadow .25s ease;
}
.choice:hover { border-color: var(--line-cool); background: #FFFFFF; }
.choice__input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.choice:has(.choice__input:focus-visible) { outline: 2px solid var(--green); outline-offset: 3px; }
.choice:has(.choice__input:checked) { border-color: var(--green); background: #FFFFFF; box-shadow: 0 0 0 4px rgba(90, 141, 43, 0.12); }

.choice__text { display: flex; flex-direction: column; gap: 4px; }
.choice__label { font-size: 15.5px; font-weight: var(--weight-medium); letter-spacing: -0.005em; }
.choice__description { font-size: 13.5px; line-height: 1.45; color: var(--ink-muted); }

/* Cards: an icon above a name and a line. */
.choice--card { flex-direction: column; align-items: flex-start; gap: 12px; padding: 18px; border-radius: 18px; }
.choice--card:hover { transform: translateY(-2px); box-shadow: 0 14px 30px rgba(26, 33, 20, 0.08); }
.choice__icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #FFFFFF;
  border: 1px solid var(--line-soft);
  color: var(--green-dark);
  transition: background-color .25s ease, color .25s ease, border-color .25s ease, transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.choice--card:has(.choice__input:checked) .choice__icon { background: var(--green); border-color: var(--green); color: #FFFFFF; transform: rotate(-6deg) scale(1.05); }

@media (min-width: 560px) {
  .choices--two { grid-template-columns: 1fr 1fr; }
}

/* Rows: for answers with a sentence of explanation, which cramped columns
   would wrap into five lines. */
.choices--rows .choice--card { flex-direction: row; align-items: center; gap: 16px; padding: 16px 18px; }
.choices--rows .choice__icon { flex: none; }
.choices--rows .choice--card:hover { transform: translateX(3px); }

/* Chips: short answers that read best side by side. */
.choices--chips { display: flex; flex-wrap: wrap; gap: 10px; }
.choice--chip { align-items: center; min-height: 46px; padding: 10px 18px; border-radius: 999px; }
.choice--chip .choice__label { font-size: 15px; }
.choice--chip:has(.choice__input:checked) { background: var(--green); border-color: var(--green); color: #FFFFFF; box-shadow: 0 8px 18px rgba(90, 141, 43, 0.25); }

/* A group the visitor tried to skip. */
.is-invalid .choice, .is-invalid .type-card { border-color: #E7C6BF; }

/* ---------- step 5 and the result: the estimate card ---------- */

.teaser {
  position: relative;
  overflow: hidden;
  padding: clamp(22px, 3vw, 30px);
  border-radius: 20px;
  background: var(--forest);
  color: var(--forest-text);
  box-shadow: 0 24px 50px rgba(30, 42, 18, 0.22);
}
/* A soft light in the corner, so the dark card is not a flat slab. */
.teaser::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 70%;
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(168, 199, 126, 0.22) 0%, rgba(168, 199, 126, 0) 65%);
  pointer-events: none;
}
.teaser > * { position: relative; }

.teaser__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.teaser__title { margin: 0; font-size: clamp(21px, 2.4vw, 26px); font-weight: var(--weight-medium); line-height: 1.2; letter-spacing: -0.015em; color: #FFFFFF; }
.teaser__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: none;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: var(--forest-text);
  font-size: 11.5px;
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.teaser__badge--open { background: var(--forest-accent); border-color: var(--forest-accent); color: var(--forest); animation: pop .45s cubic-bezier(.34, 1.56, .64, 1) .2s both; }
.teaser__text { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--forest-muted); }

.teaser__range {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  margin: 20px 0 0;
  font-family: var(--font-display);
  font-size: clamp(24px, 3.4vw, 36px);
  font-weight: var(--weight-medium);
  letter-spacing: -0.015em;
  color: #FFFFFF;
  font-variant-numeric: tabular-nums;
}
.teaser__currency { font-size: 0.62em; letter-spacing: 0.06em; color: var(--forest-accent); }

/* Blurs the digits, not the box around them; a slow sheen says "locked",
   not "loading". */
.teaser__blur {
  position: relative;
  overflow: hidden;
  padding: 2px 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.06);
  color: transparent;
  text-shadow: 0 0 14px rgba(240, 239, 230, 0.85);
  user-select: none;
}
.teaser__blur::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(100deg, transparent 25%, rgba(255, 255, 255, 0.14) 50%, transparent 75%);
  transform: translateX(-100%);
  animation: sheen 3.2s ease-in-out infinite;
}
.teaser__blur + .teaser__blur::after { animation-delay: .25s; }

.teaser__value { margin: 12px 0 0; font-size: 15px; color: var(--forest-muted); }
.teaser__value strong { color: #FFFFFF; font-variant-numeric: tabular-nums; }

/* The estimate drawn as a band: low and high at the ends, the most likely
   price as the dot, which glides into place when the result opens. */
.range-bar { position: relative; height: 6px; margin: 22px 0 6px; border-radius: 999px; background: linear-gradient(to right, rgba(168, 199, 126, 0.2), var(--forest-accent), rgba(168, 199, 126, 0.2)); }
.range-bar__dot {
  position: absolute;
  top: 50%;
  left: 0;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #FFFFFF;
  border: 3px solid var(--forest-accent);
  box-shadow: 0 0 0 6px rgba(168, 199, 126, 0.18);
  transform: translate(-50%, -50%);
  transition: left 1s cubic-bezier(.22, .61, .36, 1) .15s;
}

.confidence { display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 6px 12px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); font-size: 13px; color: var(--forest-text); }
.confidence::before { content: ''; width: 8px; height: 8px; border-radius: 999px; background: var(--forest-dot); }
.confidence--medium::before { background: #E2A33C; }
.confidence--poor::before { background: #D9826A; }

.result-facts { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 14px; margin: 24px 0 0; padding: 0; }
.result-facts dt { font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-muted); }
.result-facts dd { margin: 4px 0 0; font-size: 16px; font-weight: var(--weight-medium); }

.result-note { margin: 18px 0 0; font-size: 14px; line-height: 1.6; color: var(--ink-soft); }
.result-id { margin: 14px 0 0; font-size: 13px; color: var(--ink-muted); }
.result-id strong { color: var(--ink); letter-spacing: 0.04em; }

.report-link { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 22px; padding: 18px 20px; border-radius: 14px; background: #FFFFFF; border: 1px solid var(--line-soft); }
.report-link__title { margin: 0; font-size: 15px; font-weight: var(--weight-medium); }
.report-link__text { margin: 0; font-size: 14px; line-height: 1.55; color: var(--ink-soft); }

.form__warning { margin: 18px 0 0; padding: 14px 16px; border-radius: 12px; background: #FDF3F1; border: 1px solid #E7C6BF; color: #8A3527; font-size: 14px; line-height: 1.55; }

/* ---------- loading ---------- */

.step--loading { padding: clamp(24px, 5vw, 56px) 0; text-align: center; }
.loader { position: relative; display: grid; place-items: center; width: 112px; height: 112px; margin: 0 auto 26px; color: var(--green); }
.loader__ring { position: absolute; inset: 0; border: 4px solid var(--sage); border-top-color: var(--green); border-radius: 999px; animation: spin 1s linear infinite; }
.loader__logo { width: 52px; height: auto; animation: pulse 1.8s ease-in-out infinite; }

.loader__steps { display: inline-flex; flex-direction: column; gap: 12px; margin: 26px 0 0; padding: 0; list-style: none; text-align: left; }
.loader__step { display: flex; align-items: center; gap: 12px; font-size: 15px; color: var(--ink-muted); transition: color .3s ease; }
.loader__step::before { content: ''; flex: none; width: 22px; height: 22px; box-sizing: border-box; border: 2px solid var(--line-cool); border-radius: 999px; }
.loader__step.is-active { color: var(--ink); }
.loader__step.is-active::before { border-color: var(--green); border-top-color: transparent; animation: spin .8s linear infinite; }
.loader__step.is-done { color: var(--ink); }
.loader__step.is-done::before {
  border-color: var(--green);
  background: var(--green) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center / 12px no-repeat;
}

/* ---------- step navigation ---------- */

.step-nav { display: flex; align-items: center; gap: 14px; margin-top: clamp(28px, 4vw, 40px); }

.step-nav__back {
  flex: none;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid var(--line-soft);
  border-radius: 999px;
  background: #FFFFFF;
  color: var(--ink);
  cursor: pointer;
}
.step-nav__back:hover { border-color: var(--green); }
.step-nav__back[hidden] { display: none; }

/* Greyed until the step is complete, like the funnel on tobireal.sk, but still
   pressable: a press on an incomplete step says what is missing, which a
   disabled button never can. */
.step-nav__next {
  flex: 1;
  min-height: 52px;
  border: 0;
  border-radius: 999px;
  background: var(--green);
  color: #FFFFFF;
  font-size: 16px;
  font-weight: var(--weight-medium);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  transition: background-color .25s ease, color .25s ease, box-shadow .25s ease;
}
.step-nav__next:hover { background: var(--green-hover); box-shadow: 0 10px 24px rgba(90, 141, 43, 0.25); }
.step-nav__next svg { transition: transform .25s ease; }
.step-nav__next:hover svg { transform: translateX(4px); }
/* A press on an incomplete step: a small shake, and the errors appear. */
.step-nav__next.is-nudged { animation: nudge .4s ease; }
.step-nav__next[aria-disabled="true"] { background: var(--line); color: var(--ink-muted); box-shadow: none; }
.step-nav__next[aria-disabled="true"] svg { transform: none; }
.step-nav__next[aria-busy="true"] { opacity: .7; cursor: progress; }

.form__status { margin: 16px 0 0; font-size: 14px; line-height: 1.5; color: var(--ink-muted); }
.form__status:empty { display: none; }
.form__status--error { color: #8A3527; }

/* ---------- generic band ---------- */

.band { padding: var(--section-y) var(--gutter); }
.band--tinted { background: var(--sand-dim); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.band__inner { max-width: 1240px; margin: 0 auto; }
.band__lede { max-width: 62ch; margin: 18px 0 0; }

.steps {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: clamp(20px, 3vw, 32px);
  margin-top: clamp(28px, 4vw, 48px);
}

.step-card { padding: 28px 26px 30px; background: var(--sand); border: 1px solid var(--line-soft); border-radius: 18px; }
.step-card__number { margin: 0; font-family: var(--font-display); font-size: 34px; color: var(--green); line-height: 1; }
.step-card__title { margin: 16px 0 0; font-size: 19px; font-weight: 500; letter-spacing: -0.01em; }
.step-card__text { margin: 10px 0 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- long-form copy ---------- */

.prose { display: flex; flex-direction: column; gap: 18px; max-width: 62ch; }
.prose > p { margin: 0; }
.prose__heading { margin: 10px 0 0; font-size: clamp(17px, 1.6vw, 20px); font-weight: var(--weight-medium); letter-spacing: -0.01em; }
.prose__meta { font-size: 14px; line-height: 1.6; color: var(--ink-muted); }

/* ---------- pending-content notice ---------- */
/* Used where content has not been supplied yet. Deliberately visible rather
   than silently omitted, so nobody ships the page thinking it is finished. */
.placeholder {
  padding: 18px 20px;
  border: 1px dashed var(--line-cool);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.5);
}
.placeholder p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

.site-footer .placeholder { border-color: rgba(255, 255, 255, 0.2); background: transparent; }
.site-footer .placeholder p { color: var(--footer-text); font-size: 13px; }

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

.site-footer {
  padding: clamp(32px, 5vw, 56px) var(--gutter);
  background: var(--footer);
  color: var(--footer-text);
  font-size: 14px;
}

.site-footer__inner {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  gap: clamp(24px, 4vw, 48px);
  max-width: 1240px;
  margin: 0 auto;
}

.site-footer__block p { margin: 0 0 6px; line-height: 1.6; }
.site-footer__name { color: var(--forest-muted); font-weight: var(--weight-medium); }
.site-footer__label {
  font-size: 12px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--forest-muted);
  font-weight: var(--weight-medium);
  margin-bottom: 10px !important;
}

.site-footer__links { display: flex; flex-direction: column; gap: 8px; list-style: none; margin: 0; padding: 0; }
.site-footer__legal {
  max-width: 1240px;
  margin: clamp(24px, 4vw, 40px) auto 0;
  padding-top: 18px;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 12.5px;
  line-height: 1.65;
  color: var(--footer-text);
}

.site-footer a { color: var(--forest-muted); }
.site-footer a:hover { color: #FFFFFF; }

/* ---------- utilities ---------- */

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

/* Honeypot: reachable to a DOM-parsing bot, unreachable to a person. Positioned
   off-screen rather than display:none, because some bots skip hidden fields. */
.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
  pointer-events: none;
}

.noscript-note { margin: 0; font-size: 15px; line-height: 1.6; color: var(--ink-soft); }

/* ---------- motion ---------- */

@keyframes spin { to { transform: rotate(360deg); } }

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.08); }
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes stepItemIn {
  from { opacity: 0; transform: translateX(22px); }
  to { opacity: 1; transform: none; }
}

@keyframes stepItemInBack {
  from { opacity: 0; transform: translateX(-22px); }
  to { opacity: 1; transform: none; }
}

@keyframes stepOut {
  to { opacity: 0; transform: translateX(-26px); }
}

@keyframes stepOutBack {
  to { opacity: 0; transform: translateX(26px); }
}

@keyframes pop {
  from { opacity: 0; transform: scale(.4); }
  to { opacity: 1; transform: scale(1); }
}

@keyframes sheen {
  0%, 30% { transform: translateX(-100%); }
  70%, 100% { transform: translateX(100%); }
}

@keyframes pinDrop {
  from { opacity: 0; transform: translate(-50%, -190%); }
  to { opacity: 1; transform: translate(-50%, -100%); }
}

@keyframes ring {
  from { opacity: .9; transform: scale(.5); }
  to { opacity: 0; transform: scale(3.4); }
}

@keyframes nudge {
  0%, 100% { transform: none; }
  20% { transform: translateX(-6px); }
  40% { transform: translateX(5px); }
  60% { transform: translateX(-3px); }
  80% { transform: translateX(2px); }
}

@keyframes rise {
  from { opacity: 0; transform: translateY(22px); }
  to { opacity: 1; transform: none; }
}

/* The first view eases in: the pitch line by line, then the card. */
.funnel__intro > * { animation: rise .7s cubic-bezier(.22, .61, .36, 1) both; }
.funnel__intro > :nth-child(2) { animation-delay: .06s; }
.funnel__intro > :nth-child(3) { animation-delay: .12s; }
.funnel__intro > :nth-child(4) { animation-delay: .18s; }
.funnel__card { animation: rise .8s cubic-bezier(.22, .61, .36, 1) .12s both; }

/* Below the fold, sections ease in as they scroll into view. Scoped to .js,
   set by app.js, so a page whose script fails stays fully readable. */
.js [data-reveal] {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity .8s cubic-bezier(.22, .61, .36, 1), transform .8s cubic-bezier(.22, .61, .36, 1);
}
.js [data-reveal].is-revealed { opacity: 1; transform: none; }
.steps > [data-reveal]:nth-child(2) { transition-delay: .08s; }
.steps > [data-reveal]:nth-child(3) { transition-delay: .16s; }
.fade-up { animation: fadeUp .4s ease both; }

/* Nothing here is load-bearing, so drop all of it when motion is unwelcome. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .js [data-reveal] { opacity: 1; transform: none; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
}

/* ---------- cookie consent ---------- */
/* Built in JavaScript and appended to <body>, so it exists only where the pixel
   could actually run - with scripting off there is nothing to consent to.
   Both buttons share one size and shape on purpose: making refusal less
   prominent than acceptance is what makes a consent banner invalid. */
.consent {
  position: fixed;
  left: 50%;
  bottom: clamp(12px, 3vw, 24px);
  transform: translateX(-50%);
  z-index: 60;
  width: min(760px, calc(100vw - 2 * var(--gutter)));
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px 22px;
  padding: 16px 20px;
  background: var(--forest);
  color: var(--forest-text);
  border-radius: 14px;
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.25);
}
.consent__text {
  margin: 0;
  flex: 1 1 300px;
  font-size: 13.5px;
  line-height: 1.6;
  color: var(--forest-muted);
}
.consent__text a { color: var(--forest-accent); }
.consent__actions { display: flex; gap: 10px; flex: 0 0 auto; }
.consent__button {
  font: inherit;
  font-size: 14px;
  font-weight: var(--weight-medium);
  padding: 9px 18px;
  border-radius: 999px;
  border: 1px solid var(--forest-muted);
  background: transparent;
  color: var(--forest-text);
  cursor: pointer;
}
.consent__button:hover { border-color: var(--forest-text); }
.consent__button--accept {
  background: var(--forest-accent);
  border-color: var(--forest-accent);
  color: var(--forest);
}
.consent__button--accept:hover { background: #BBD694; border-color: #BBD694; }

/* The city only where the header has room for it on one line. */
.site-header__city { display: none; }
@media (min-width: 480px) { .site-header__city { display: inline; } }
