/* Fastighetsstyrning. StoryBrand-ordning och foton på familjens egna fastigheter.
   Literata för rubriker, Public Sans för lättläst brödtext. Ockra från
   40-talsfasaderna för knapparna, djupblått från himlen i fotona. */

@font-face {
  font-family: "Literata";
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url("fonts/literata-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Cormorant Garamond";
  font-style: normal;
  font-weight: 600;
  font-display: swap;
  src: url("fonts/cormorant-garamond-600-latin.woff2") format("woff2");
}
@font-face {
  font-family: "Public Sans";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("fonts/public-sans-latin.woff2") format("woff2");
}

:root {
  color-scheme: light;
  --paper: #ffffff;
  --stone: #f1f3f0;
  --ink: #1b2a33;
  --muted: #4f5f68;
  --rule: #d6ddd9;
  --field: #a9b6b0;
  --brand: #1d4466;
  --cta: #f0b429;
  --cta-hover: #e3a414;
  --cta-soft: #fcefc9;
  --seal-accent: #c8932f;
  --warm: #c8432f;
  --ok: #1d4466;

  --serif: "Literata", Georgia, "Times New Roman", serif;
  --wordmark: "Cormorant Garamond", Garamond, Georgia, serif;
  --sans: "Public Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --measure: 36em;
  --gutter: clamp(16px, 4vw, 40px);
  --band: clamp(64px, 9vw, 120px);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 88px; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 1.1875rem;
  line-height: 1.6;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--brand); text-decoration-thickness: 1px; text-underline-offset: 0.18em; }
a:hover { text-decoration-thickness: 2px; }
a[href^="tel:"] { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: 3px; }

h1, h2, h3 { font-family: var(--serif); color: var(--ink); margin: 0; letter-spacing: -0.012em; }
h1 { font-size: clamp(2.2rem, 3.9vw, 3.1rem); line-height: 1.08; font-weight: 700; }
h2 { font-size: clamp(1.85rem, 3.4vw, 2.7rem); line-height: 1.12; font-weight: 700; }
h3 { font-size: 1.3rem; line-height: 1.25; font-weight: 600; letter-spacing: 0; }
p { margin: 0; }
p + p { margin-top: 0.9em; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 var(--gutter); }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--paper); padding: 8px 12px; z-index: 20; }
.skip:focus { left: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
[hidden] { display: none !important; }

/* Buttons */
.btn {
  display: inline-block;
  font: inherit;
  font-weight: 700;
  font-size: 1.08rem;
  line-height: 1.2;
  padding: 17px 26px;
  border-radius: 8px;
  border: 2px solid transparent;
  text-decoration: none;
  cursor: pointer;
  text-align: center;
}
.btn-cta { background: var(--cta); color: var(--ink); border-color: var(--cta); }
.btn-cta:hover { background: var(--cta-hover); border-color: var(--cta-hover); }
.btn-cta:disabled { opacity: 0.7; cursor: wait; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-ghost:hover { background: var(--stone); }
.btn-on-dark { color: #ffffff; border-color: #ffffff; }
.btn-on-dark:hover { background: rgba(255, 255, 255, 0.12); }
.btn-small { padding: 11px 18px; font-size: 1rem; }
.center { text-align: center; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }

/* Header */
.top { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, 0.97); border-bottom: 1px solid var(--rule); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 72px; }
.brand { display: inline-flex; align-items: center; gap: 12px; color: var(--brand); text-decoration: none; margin-right: auto; }
.brand .seal { width: 48px; height: 48px; flex: none; }
.brand-word { font-family: var(--wordmark); font-weight: 600; font-size: 1.75rem; line-height: 1; letter-spacing: 0.005em; }

/* The seal logo. Colours follow currentColor; the accent changes on dark ground. */
.seal { display: block; }
.seal-text { font-family: var(--sans); font-weight: 700; fill: currentColor; }
.seal-dot { fill: var(--seal-accent); }
.seal-ring { stroke: var(--seal-accent); }
.nav { display: flex; gap: 22px; }
.nav a { color: var(--ink); text-decoration: none; font-size: 1rem; }
.nav a:hover { text-decoration: underline; }
.phone { display: inline-flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 700; text-decoration: none; white-space: nowrap; }
.phone:hover { text-decoration: underline; }
.phone svg { width: 20px; height: 20px; fill: none; stroke: var(--brand); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

/* Hero */
.hero { padding: clamp(32px, 6vw, 80px) 0 var(--band); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.hero h1 { max-width: 14em; }
.lede { margin-top: 24px; font-size: 1.3rem; color: var(--muted); max-width: 30em; }
.trust { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--rule); color: var(--muted); font-size: 1rem; max-width: 30em; }

.photo-temps { margin: 0; }
.photo-frame { position: relative; border-radius: 14px; overflow: hidden; background: var(--stone); }
.photo-frame img { width: 100%; }
.flats { list-style: none; margin: 0; padding: 0; }
.flats li {
  position: absolute;
  transform: translate(-50%, -100%);
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 4px 9px 5px;
  border-radius: 7px;
  background: var(--warm);
  color: #ffffff;
  line-height: 1.1;
  font-variant-numeric: tabular-nums;
  box-shadow: 0 2px 6px rgba(27, 42, 51, 0.25);
  transition: background-color 0.6s ease;
}
/* Window positions in assets/img/eksjo-hornhus.jpg, as a share of the photo. */
.flats li:nth-child(1) { left: 41.9%; top: 25.4%; }
.flats li:nth-child(2) { left: 57.8%; top: 32.5%; }
.flats li:nth-child(3) { left: 73.3%; top: 39.7%; }
.flats li:nth-child(4) { left: 41.9%; top: 44.8%; }
.flats li:nth-child(5) { left: 81.4%; top: 55.1%; }
.flats li::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -6px;
  margin-left: -6px;
  border: 6px solid transparent;
  border-bottom: 0;
  border-top-color: var(--warm);
  transition: border-top-color 0.6s ease;
}
.flats li.is-ok { background: var(--ok); }
.flats li.is-ok::after { border-top-color: var(--ok); }
.flat-no { font-size: 0.68rem; opacity: 0.9; }
.flat-temp { font-size: 1.02rem; font-weight: 700; }
.photo-temps figcaption { margin-top: 12px; font-size: 0.95rem; color: var(--muted); }

/* Bands */
.band { padding: var(--band) 0; }
.band-stone { background: var(--stone); }
.lead { margin-top: 18px; font-size: 1.25rem; color: var(--muted); max-width: var(--measure); }

/* Problem */
.problem-grid { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.problems { display: grid; gap: 28px; }
.problems > div { padding-left: 20px; border-left: 3px solid var(--warm); }
.problems p { margin-top: 6px; color: var(--muted); max-width: 32em; }
.stakes { background: var(--paper); border-radius: 12px; padding: clamp(24px, 3vw, 36px); }
.stakes-num { font-family: var(--serif); font-weight: 700; font-size: clamp(2.6rem, 5vw, 3.6rem); line-height: 1; color: var(--warm); font-variant-numeric: tabular-nums; }
.stakes-text { margin-top: 14px; font-size: 1.15rem; }
.stakes-note { margin-top: 12px; font-size: 0.92rem; color: var(--muted); }
.principle { margin-top: 56px; font-family: var(--serif); font-weight: 600; font-size: clamp(1.4rem, 2.6vw, 1.9rem); line-height: 1.3; max-width: 24em; }

/* Section heads: heading on the left, text on the right */
.split-head { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px clamp(32px, 6vw, 96px); align-items: start; }
.split-head > p, .split-head > div > p { font-size: 1.2rem; color: var(--muted); max-width: 32em; }
.split-head .actions { margin-top: 28px; }
.subhead { margin-top: clamp(72px, 9vw, 112px); }

/* Benefits on the dark band */
.band-brand { background: var(--brand); color: #ffffff; }
.band-brand h2 { color: #ffffff; }
.band-brand a { color: #ffffff; }
.benefits { list-style: none; margin: 56px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 52px clamp(24px, 4vw, 56px); text-align: center; }
.benefits svg { display: block; width: 52px; height: 52px; margin: 0 auto; fill: var(--cta); color: var(--cta); }
.benefits .cut { fill: var(--brand); }
.benefits .cut-line { fill: none; stroke: var(--brand); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.benefits p { margin: 18px auto 0; max-width: 16em; font-size: 1.2rem; line-height: 1.4; }

/* How it works */
.how {
  margin-top: 56px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(48px, 0.6fr) auto minmax(48px, 0.6fr) minmax(0, 1fr);
  grid-template-areas:
    "apps apps apps apps apps"
    ". . cloud . ."
    ". . link . ."
    "src in box both dst"
    "srcl . boxl . dstl";
  justify-items: center;
  align-items: center;
}
.how-apps { grid-area: apps; justify-self: stretch; position: relative; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; padding: 30px clamp(20px, 3vw, 40px) 34px; background: var(--paper); border-radius: 24px; text-align: center; }
.how-apps::after { content: ""; position: absolute; left: 50%; top: 100%; width: 300px; height: 46px; transform: translateX(-50%); background: inherit; clip-path: polygon(0 0, 100% 0, 64% 100%, 36% 100%); }
.how-apps h3 { font-family: var(--sans); font-size: 1.15rem; font-weight: 700; color: var(--brand); }
.how-apps p { margin-top: 4px; font-size: 0.98rem; color: var(--muted); }
.how-cloud { grid-area: cloud; position: relative; z-index: 1; width: 210px; margin-top: 6px; color: var(--brand); }
.how-cloud svg { display: block; width: 100%; height: auto; fill: currentColor; }
.how-cloud span { position: absolute; left: 0; right: 0; bottom: 20px; text-align: center; color: #ffffff; font-weight: 700; }
.how-link { grid-area: link; width: 36px; height: 64px; margin: 6px 0; background-image: radial-gradient(circle, var(--cta) 4px, transparent 4.5px), radial-gradient(circle, var(--cta) 4px, transparent 4.5px); background-size: 12px 16px; background-position: 2px 0, 22px 0; background-repeat: repeat-y; }
.how-icons { grid-area: src; display: flex; gap: 8px; }
.how-icons svg { width: 60px; height: 60px; fill: var(--brand); }
.how .ink { fill: var(--brand); }
.how .ink-line { fill: none; stroke: var(--brand); }
.how-box { grid-area: box; position: relative; display: grid; place-items: center; width: 150px; height: 118px; border-radius: 20px; background: var(--cta); }
.how-box > svg:first-child { width: 120px; height: 96px; stroke: var(--brand); }
.how-radio { position: absolute; right: -28px; top: -28px; width: 40px; height: 40px; stroke: var(--brand); }
.how-dst { grid-area: dst; display: grid; gap: 10px; justify-items: center; padding: 16px 20px; background: var(--brand); border-radius: 22px; }
.how-dst svg { width: 46px; height: 46px; }
.how-label { margin-top: 14px; max-width: 15em; text-align: center; font-size: 0.95rem; line-height: 1.4; color: var(--muted); align-self: start; }
.how-label strong { display: block; color: var(--ink); font-size: 1.05rem; }
.how-src-label { grid-area: srcl; }
.how-box-label { grid-area: boxl; }
.how-dst-label { grid-area: dstl; }
.how-flow { position: relative; justify-self: stretch; height: 12px; margin: 0 16px; background-image: radial-gradient(circle, var(--cta) 3.5px, transparent 4px); background-size: 18px 12px; background-position: 0 50%; background-repeat: repeat-x; }
.how-flow-in { grid-area: in; }
.how-flow-both { grid-area: both; }
.how-flow::after, .how-flow-both::before { content: ""; position: absolute; top: 50%; width: 13px; height: 13px; border-top: 3px solid var(--brand); border-right: 3px solid var(--brand); }
.how-flow::after { right: -4px; transform: translateY(-50%) rotate(45deg); }
.how-flow-both::before { left: -4px; transform: translateY(-50%) rotate(-135deg); }
@media (prefers-reduced-motion: no-preference) {
  .how-flow-in { animation: how-x 1.4s linear infinite; }
  .how-link { animation: how-y 1.4s linear infinite; }
}
@keyframes how-x { to { background-position: 18px 50%; } }
@keyframes how-y { to { background-position: 2px -16px, 22px 16px; } }

/* Guide offer (lead generator) */
.offer { display: grid; grid-template-columns: minmax(0, 0.7fr) minmax(0, 1.3fr); gap: clamp(28px, 5vw, 72px); align-items: center; }
.offer-cover { margin: 0; max-width: 300px; justify-self: center; }
.offer-cover img { border-radius: 4px; box-shadow: 0 10px 30px rgba(27, 42, 51, 0.22), 0 2px 6px rgba(27, 42, 51, 0.12); }
.offer-list { margin: 18px 0 0; padding-left: 1.2em; color: var(--muted); }
.offer-list li + li { margin-top: 4px; }
.offer form { margin-top: 28px; max-width: 40em; }
.offer .guide-email { max-width: 26em; }

/* Guide (us) */
.guide-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.guide-text p { margin-top: 18px; max-width: 32em; }
.guide-text h2 + p { margin-top: 24px; }
.guide-text .sign { margin-top: 32px; display: flex; align-items: flex-end; gap: 20px; }
.sign img { width: 176px; height: auto; aspect-ratio: 4 / 5; border-radius: 12px; flex: none; box-shadow: 0 0 0 1px var(--rule); }
@media (max-width: 520px) { .sign img { width: 132px; } }
.guide-text .sign p { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.sign-name { font-family: var(--wordmark); font-weight: 600; font-size: 1.75rem; line-height: 1.1; color: var(--ink); }
.facts { margin: 32px 0 0; display: flex; flex-wrap: wrap; gap: 16px 40px; }
.facts div { display: flex; flex-direction: column-reverse; }
.facts dt { color: var(--muted); font-size: 0.98rem; }
.facts dd { margin: 0; font-family: var(--serif); font-weight: 700; font-size: 2.2rem; line-height: 1.1; color: var(--brand); }
.guide-photo { margin: 0; }
.guide-photo img, .strip img { border-radius: 12px; }
.guide-photo figcaption, .strip figcaption { margin-top: 8px; font-size: 0.95rem; color: var(--muted); }
.strip { grid-column: 1 / -1; list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(16px, 2.5vw, 28px); }
.strip figure { margin: 0; }
.strip img { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }

/* Plan */
.steps { list-style: none; margin: 48px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(24px, 4vw, 48px); counter-reset: step; }
.steps li { counter-increment: step; }
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--brand);
  color: #ffffff;
  font-family: var(--serif);
  font-weight: 700;
  font-size: 1.45rem;
  margin-bottom: 18px;
}
.steps p { margin-top: 8px; color: var(--muted); }
.promises { margin-top: 56px; padding: clamp(22px, 3vw, 32px); border-left: 5px solid var(--cta); background: var(--stone); border-radius: 0 12px 12px 0; max-width: 48em; }
.promises ul { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.promises li { position: relative; padding-left: 32px; }
.promises li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 0.45em;
  width: 16px;
  height: 9px;
  border-left: 3px solid var(--brand);
  border-bottom: 3px solid var(--brand);
  transform: rotate(-45deg);
}

/* Forms */
.field { display: block; margin-bottom: 20px; }
.field > span, .seg legend, fieldset.choice legend { display: block; font-weight: 700; margin-bottom: 6px; }
.field small { display: block; color: var(--muted); font-size: 0.9rem; margin-top: 5px; line-height: 1.45; }
input[type="number"], input[type="email"], input[type="text"], input[type="tel"], select {
  width: 100%;
  font: inherit;
  font-size: 1.1rem;
  color: var(--ink);
  background: var(--paper);
  border: 2px solid var(--field);
  border-radius: 8px;
  padding: 12px 14px;
  font-variant-numeric: tabular-nums;
}
input:focus-visible, select:focus-visible { outline-offset: 1px; border-color: var(--brand); }
.seg { border: 0; padding: 0; margin: 0; min-width: 0; }
.seg-opts { display: inline-flex; margin-bottom: 8px; border: 2px solid var(--field); border-radius: 8px; overflow: hidden; }
.seg-opts label { position: relative; }
.seg-opts label + label { border-left: 2px solid var(--field); }
.seg-opts input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.seg-opts span { display: block; padding: 7px 14px; font-size: 0.98rem; }
.seg-opts input:checked + span { background: var(--brand); color: #ffffff; }
.seg-opts input:focus-visible + span { outline: 3px solid var(--cta); outline-offset: -3px; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 18px; }
.field-wide { grid-column: 1 / -1; }
.check { display: grid; grid-template-columns: 24px 1fr; gap: 12px; align-items: start; margin: 8px 0 14px; }
.check input { width: 22px; height: 22px; margin: 3px 0 0; accent-color: var(--brand); }
fieldset.choice { border: 0; padding: 0; margin: 4px 0 0; min-width: 0; }
.req { color: var(--warm); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 16px; font-weight: 700; }
.form-msg.is-error { color: var(--warm); }
.done h2, .done h3 { font-size: 1.6rem; }
.done p { margin-top: 10px; color: var(--muted); }

/* Calculator: sliders with a value pill, heating tiles, result cards */
.calc { margin-top: 48px; }
.calc-qs { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px clamp(28px, 5vw, 72px); }
.q { margin: 0; padding: 0; border: 0; min-width: 0; }
.q-label { display: block; padding: 0; margin-bottom: 14px; font-weight: 700; font-size: 1.2rem; line-height: 1.3; color: var(--brand); }
.q-help { margin-top: 8px; font-size: 0.92rem; color: var(--muted); }
.slide { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; }
.slide-track { display: flex; align-items: center; min-height: 72px; padding: 0 22px; background: var(--stone); border-radius: 16px; }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 36px; margin: 0; background: transparent; cursor: pointer; --fill: 0%; }
input[type="range"]::-webkit-slider-runnable-track { height: 4px; border-radius: 2px; background: linear-gradient(90deg, var(--brand) var(--fill), var(--field) var(--fill)); }
input[type="range"]::-moz-range-track { height: 4px; border-radius: 2px; background: var(--field); }
input[type="range"]::-moz-range-progress { height: 4px; border-radius: 2px; background: var(--brand); }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; appearance: none; box-sizing: border-box; width: 34px; height: 34px; margin-top: -15px; border-radius: 50%; background: var(--paper); border: 9px solid var(--cta); box-shadow: 0 1px 4px rgba(27, 42, 51, 0.3); }
input[type="range"]::-moz-range-thumb { box-sizing: border-box; width: 34px; height: 34px; border-radius: 50%; background: var(--paper); border: 9px solid var(--cta); box-shadow: 0 1px 4px rgba(27, 42, 51, 0.3); }
input[type="range"]:focus-visible { outline: none; }
input[type="range"]:focus-visible::-webkit-slider-thumb { outline: 3px solid var(--brand); outline-offset: 2px; }
input[type="range"]:focus-visible::-moz-range-thumb { outline: 3px solid var(--brand); outline-offset: 2px; }
.pill { display: flex; align-items: baseline; justify-content: center; gap: 8px; min-width: 188px; padding: 18px 20px; background: var(--brand); color: #ffffff; border-radius: 16px; }
.pill input[type="number"] { width: 4.4ch; padding: 0; border: 0; border-radius: 4px; background: transparent; color: #ffffff; font-family: var(--serif); font-size: 2rem; font-weight: 600; line-height: 1.1; text-align: right; -moz-appearance: textfield; appearance: textfield; }
.pill input::-webkit-outer-spin-button, .pill input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.pill input:focus-visible { outline: 2px solid var(--cta); outline-offset: 4px; }
@supports (field-sizing: content) { .pill input[type="number"] { width: auto; min-width: 1ch; field-sizing: content; } }
.pill .unit { font-size: 1rem; color: #dbe4ec; white-space: nowrap; }
.tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.tiles label { position: relative; }
.tiles input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.tiles span { display: grid; place-items: center; min-height: 72px; padding: 8px 10px; border-radius: 16px; background: var(--stone); font-weight: 700; text-align: center; color: var(--brand); }
.tiles label:hover span { background: #e4e8e4; }
.tiles input:checked + span { background: var(--brand); color: #ffffff; }
.tiles input:focus-visible + span { outline: 3px solid var(--cta); outline-offset: 2px; }
.calc-more { margin-top: 36px; border-top: 1px solid var(--rule); border-bottom: 1px solid var(--rule); }
.calc-more summary { cursor: pointer; list-style: none; position: relative; padding: 16px 40px 16px 0; font-weight: 700; color: var(--brand); }
.calc-more summary::-webkit-details-marker { display: none; }
.calc-more-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 40px); padding: 8px 0 8px; }
.calc-out { margin-top: 32px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.res { padding: 28px 24px 30px; background: var(--cta-soft); border-radius: 20px; text-align: center; }
.res h3 { font-family: var(--sans); font-size: 1.1rem; font-weight: 700; color: var(--brand); }
.res-num { margin-top: 12px; font-family: var(--serif); font-size: clamp(2rem, 3.4vw, 2.6rem); font-weight: 600; line-height: 1.1; color: var(--brand); font-variant-numeric: tabular-nums; }
.res-unit { font-family: var(--sans); font-size: 1rem; font-weight: 400; color: var(--ink); }
.res-text { margin: 14px auto 0; max-width: 24em; font-size: 0.98rem; }
.calc-facts { margin: 14px 0 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px; }
.calc-facts > div { padding: 18px 22px; border: 2px solid var(--stone); border-radius: 16px; }
.calc-facts dt { font-size: 0.95rem; color: var(--muted); }
.calc-facts dd { margin: 4px 0 0; font-weight: 700; font-size: 1.3rem; color: var(--brand); font-variant-numeric: tabular-nums; }
.calc-facts .fact-note { font-weight: 400; font-size: 0.9rem; line-height: 1.45; color: var(--muted); }

/* Contact card under the calculator */
.lead-card { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 0.55fr) minmax(0, 1.45fr); gap: clamp(24px, 5vw, 72px); align-items: center; padding: clamp(24px, 5vw, 64px); background: var(--stone); border-radius: 24px; }
.lead-art { width: 100%; max-width: 210px; justify-self: center; }
.lead-art .coin circle { fill: var(--cta); }
.lead-art .coin text { font-family: var(--sans); font-size: 17px; font-weight: 700; fill: var(--brand); text-anchor: middle; }
.lead-house { fill: var(--brand); }
.lead-ring { fill: none; stroke: var(--cta); stroke-width: 6; }
.lead-cut { fill: var(--stone); }
.lead-body h3 { font-size: clamp(1.6rem, 2.6vw, 2.1rem); line-height: 1.15; font-weight: 700; }
.lead-body > p { margin-top: 12px; color: var(--muted); max-width: 36em; }
.lead-body form { margin-top: 24px; }
.lead-body .actions { margin-top: 20px; }

.result dl { margin: 0; }
.result .row { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; padding: 12px 0; border-bottom: 1px solid var(--rule); }
.result dt { color: var(--muted); }
.result dd { margin: 0; font-weight: 700; font-size: 1.2rem; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.result .row-hero { display: block; padding: 0 0 16px; }
.result .row-hero dt { font-weight: 700; color: var(--ink); }
.result .row-hero dd { text-align: left; font-family: var(--serif); font-size: clamp(2.6rem, 5.2vw, 3.8rem); line-height: 1.05; color: var(--brand); margin-top: 4px; }
.result .row-value dd { color: var(--brand); font-size: 1.35rem; }
.verdict { margin-top: 18px; }
.result .actions { margin-top: 24px; }
.source { margin-top: 28px; font-size: 0.95rem; color: var(--muted); max-width: 48em; }

/* More gains: photo and accordion */
.acc-grid { margin-top: 48px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.acc-photo { margin: 0; }
.acc-photo img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 24px; }
.acc-photo figcaption { margin-top: 8px; font-size: 0.95rem; color: var(--muted); }
.acc { border-top: 1px solid var(--brand); }
.acc details { border-bottom: 1px solid var(--brand); }
.acc summary { cursor: pointer; list-style: none; position: relative; padding: 20px 40px 20px 0; font-weight: 700; font-size: 1.15rem; color: var(--brand); }
.acc summary::-webkit-details-marker { display: none; }
.acc details p { padding-bottom: 20px; max-width: var(--measure); }
.acc details p + p { margin-top: -6px; }
.acc .eg { font-size: 0.92rem; color: var(--muted); }
.acc summary::after, .calc-more summary::after { content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; border-right: 2.5px solid var(--brand); border-bottom: 2.5px solid var(--brand); transform: translateY(-75%) rotate(45deg); }
.acc details[open] summary::after, .calc-more[open] summary::after { transform: translateY(-25%) rotate(-135deg); }

/* Value tables */
.value-table { width: 100%; margin-top: 36px; border-collapse: collapse; font-variant-numeric: tabular-nums; }
.value-table thead th { text-align: left; font-family: var(--sans); font-size: 0.92rem; font-weight: 700; color: var(--muted); padding: 0 16px 10px 0; border-bottom: 2px solid var(--ink); }
.value-table tbody th, .value-table td { text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--rule); }
.value-table tbody th { font-weight: 700; width: 30%; }
.value-table td:nth-child(2) { font-weight: 700; color: var(--brand); white-space: nowrap; width: 22%; }
.value-table td:nth-child(3) { color: var(--muted); font-size: 1rem; }
.payback-table td:nth-child(2) { width: 30%; }
.payback-table td.em { font-family: var(--serif); font-size: 1.6rem; line-height: 1.1; color: var(--brand); }
.table-title { margin-top: 56px; }

/* Instalment */
.fin-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.fin-note { margin-top: 18px; max-width: var(--measure); }
.fin-table { margin-top: 0; background: var(--paper); border-radius: 12px; }
.fin-table thead th, .fin-table tbody th, .fin-table td { padding-left: 18px; }
.fin-table thead th { padding-top: 16px; }
.fin-table td:nth-child(2), .fin-table td:nth-child(3) { width: 24%; color: var(--ink); font-weight: 700; font-size: inherit; text-align: right; white-space: nowrap; padding-right: 18px; }
.fin-table thead th:nth-child(2), .fin-table thead th:nth-child(3) { text-align: right; padding-right: 18px; }
.fin-table tr.sum th, .fin-table tr.sum td { border-bottom: 2px solid var(--ink); font-weight: 700; }
.fin-table tr.plus td { color: var(--brand); font-family: var(--serif); font-size: 1.25rem; }
.fin-table tr.plus th { font-weight: 600; }
@media (max-width: 760px) {
  .value-table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .value-table tr { display: block; padding: 14px 0; border-bottom: 1px solid var(--rule); }
  .value-table tbody th, .value-table td { display: block; width: auto; padding: 2px 0; border: 0; white-space: normal; }
  .value-table td { margin-top: 6px; }
  .value-table td::before { content: attr(data-label); display: block; font-weight: 400; color: var(--muted); font-family: var(--sans); font-size: 0.88rem; }
  .value-table td:nth-child(2), .payback-table td.em { white-space: normal; }
  .payback-table td.em { font-size: 1.3rem; }
  .fin-table { padding: 4px 16px; }
  .fin-table thead th, .fin-table tbody th, .fin-table td { padding-left: 0; padding-right: 0; text-align: left; }
  .fin-table tr.sum th, .fin-table tr.sum td { border-bottom: 0; }
}

/* Price */
.price-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.price-card { background: var(--paper); border-radius: 14px; padding: clamp(22px, 3.5vw, 40px); }
.price-line { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 14px; padding: 14px 0; border-bottom: 1px solid var(--rule); }
.price-line strong { font-family: var(--serif); font-size: 1.8rem; font-variant-numeric: tabular-nums; }
.price-line span { color: var(--muted); }
.price-main strong { font-size: 2.6rem; color: var(--brand); }
.includes { margin-top: 16px; color: var(--muted); font-size: 1rem; }
.guarantee { display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; align-items: start; margin-top: 18px; padding: 16px 18px; background: var(--cta-soft); border-radius: 12px; }
.guarantee svg { width: 34px; height: 34px; fill: var(--brand); }
.guarantee .cut-line { fill: none; stroke: var(--cta-soft); stroke-width: 4.5; stroke-linecap: round; stroke-linejoin: round; }
.guarantee p { font-size: 1rem; }
.guarantee strong { display: block; margin-bottom: 2px; color: var(--brand); }
.price-card .actions { margin-top: 24px; }

/* AI */
.ai-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.chat { margin: 0; padding: 0; list-style: none; }
.chat li { padding: 14px 18px; border-radius: 12px; margin-bottom: 10px; }
.chat .q { background: var(--stone); margin-right: 12%; }
.chat .a { background: #e2eaf1; margin-left: 12%; }
.chat .who { display: block; font-size: 0.85rem; font-weight: 700; color: var(--muted); margin-bottom: 2px; }
.chat-note { font-size: 0.9rem; color: var(--muted); }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq details { border-bottom: 1px solid var(--rule); }
.faq summary { cursor: pointer; padding: 18px 36px 18px 0; font-weight: 700; font-size: 1.12rem; list-style: none; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 13px; font-size: 1.6rem; font-weight: 400; color: var(--brand); }
.faq details[open] summary::after { content: "−"; }
.faq details p { padding: 0 0 20px; color: var(--muted); max-width: var(--measure); }
.faq details p + p { margin-top: -6px; }

/* Closing */
.closing { position: relative; overflow: hidden; color: #ffffff; background: #12222d; }
.closing-bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.closing::before { content: ""; position: absolute; inset: 0; z-index: 1; background: linear-gradient(90deg, rgba(14, 27, 37, 0.9) 0%, rgba(14, 27, 37, 0.72) 55%, rgba(14, 27, 37, 0.35) 100%); }
.closing-inner { position: relative; z-index: 2; padding-top: clamp(80px, 12vw, 160px); padding-bottom: clamp(80px, 12vw, 160px); }
.closing h2 { color: #ffffff; max-width: 14em; }
.closing p { margin-top: 18px; font-size: 1.25rem; max-width: 30em; color: #e6ecef; }
.closing a:not(.btn) { color: #ffffff; }

/* Panels keep contrast against whichever band they sit in. */
.band:not(.band-stone) .price-card { background: var(--stone); }
.band-stone .promises, .band-stone .chat .q { background: var(--paper); }

/* Order page */
.order { padding: clamp(32px, 5vw, 64px) 0 var(--band); }
.order .lede { margin-top: 16px; }
.order-grid { margin-top: 36px; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(28px, 5vw, 64px); align-items: start; }
.panel { background: var(--stone); border-radius: 14px; padding: clamp(20px, 4vw, 36px); }
.panel h2 { font-size: 1.6rem; }
.panel.result dl { margin-top: 12px; }
.vat { margin-top: 14px; font-size: 0.95rem; color: var(--muted); }
.waitlist { margin-top: 40px; background: var(--paper); border: 2px solid var(--rule); border-top: 6px solid var(--cta); border-radius: 14px; padding: clamp(20px, 4vw, 40px); max-width: 50em; }
.waitlist h2 { font-size: clamp(1.6rem, 3vw, 2.1rem); }
.waitlist > p { margin-top: 12px; color: var(--muted); }
.waitlist form { margin-top: 28px; }
.wl-note { margin: -4px 0 14px; font-size: 0.95rem; color: var(--muted); }
.call-us { margin-top: 18px; color: var(--muted); }

/* Plain text pages */
.doc { padding: clamp(32px, 5vw, 64px) 0 var(--band); }
.doc .wrap > * { max-width: 40em; }
.doc h1 { font-size: clamp(2rem, 4vw, 2.8rem); }
.doc h2 { font-size: 1.4rem; margin-top: 36px; margin-bottom: 8px; }
.doc .lede { margin-top: 16px; }

/* Footer */
.foot { background: var(--ink); color: #c9d3d8; padding: 44px 0 60px; font-size: 0.98rem; --seal-accent: #f0b429; }
.seal-foot { width: 96px; height: 96px; color: #ffffff; flex: none; }
.foot a { color: #ffffff; }
.foot-row { display: flex; flex-wrap: wrap; align-items: flex-start; gap: 24px 40px; }
.foot-row > p { margin-left: auto; }
.foot address { font-style: normal; }

@media (max-width: 1080px) {
  .nav { display: none; }
}
@media (max-width: 1000px) {
  .calc-out { grid-template-columns: minmax(0, 1fr); }
  .res { padding: 22px 24px; text-align: left; }
  .res-num { margin-top: 6px; }
  .res-text { margin: 8px 0 0; max-width: 36em; }
}
@media (max-width: 860px) {
  .hero-grid, .problem-grid, .guide-grid, .steps, .price-grid, .ai-grid, .faq-grid, .offer, .order-grid, .fin-grid, .split-head, .calc-qs, .calc-more-grid, .acc-grid, .lead-card { grid-template-columns: minmax(0, 1fr); }
  .hero h1 { max-width: none; }
  .offer-cover { max-width: 220px; justify-self: start; }
  .benefits { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lead-art { max-width: 140px; justify-self: start; }
  .how {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "apps apps"
      "cloud cloud"
      "link link"
      "box box"
      "boxl boxl"
      "in both"
      "src dst"
      "srcl dstl";
  }
  .how-apps { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .how-apps::after { width: 200px; }
  .how-box-label { margin-bottom: 4px; }
  .how-flow { justify-self: center; width: 12px; height: 56px; margin: 8px 0; background-size: 12px 18px; background-position: 50% 0; background-repeat: repeat-y; }
  .how-flow::after { top: -4px; right: auto; left: 50%; transform: translateX(-50%) rotate(-45deg); }
  .how-flow-both::before { top: auto; bottom: -4px; left: 50%; transform: translateX(-50%) rotate(135deg); }
  .how-icons svg { width: 48px; height: 48px; }
  .how-icons { gap: 6px; }
  .how-dst { grid-auto-flow: column; gap: 8px; padding: 12px 14px; border-radius: 18px; }
  .how-dst svg { width: 40px; height: 40px; }
}
@media (max-width: 860px) and (prefers-reduced-motion: no-preference) {
  .how-flow-in { animation-name: how-up; }
}
@keyframes how-up { to { background-position: 50% -18px; } }
@media (max-width: 560px) {
  body { font-size: 1.125rem; }
  .top-row { gap: 12px; }
  .strip, .form-grid { grid-template-columns: minmax(0, 1fr); }
  .benefits { gap: 36px 16px; }
  .benefits svg { width: 44px; height: 44px; }
  .benefits p { margin-top: 12px; font-size: 1rem; }
  .tiles span { font-size: 0.98rem; padding: 6px; }
  .slide-track { padding: 0 14px; }
  .pill { min-width: 0; padding: 18px 14px; gap: 6px; }
  .pill input[type="number"] { font-size: 1.5rem; }
  .pill .unit { font-size: 0.88rem; }
  .actions .btn { width: 100%; }
  .top .btn-small { padding: 9px 12px; font-size: 0.92rem; }
  .brand { gap: 8px; }
  .brand .seal { width: 40px; height: 40px; }
  .brand-word { font-size: 1.35rem; }
  .phone-number { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .phone svg { width: 24px; height: 24px; }
  .flats li { padding: 3px 6px 4px; }
  .flat-no { display: none; }
  .flat-temp { font-size: 0.88rem; }
  .chat .q { margin-right: 0; }
  .chat .a { margin-left: 0; }
}
@media (max-width: 480px) {
  .top .btn-small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .flats li, .flats li::after { transition: none; }
}
