/* Besley and Libre Franklin (SIL Open Font License), served from our own site so no visitor's IP goes to Google. */
@font-face { font-family: 'Besley'; font-style: normal; font-weight: 700; font-display: swap; src: url(fonts/besley-700-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: 'Libre Franklin'; font-style: normal; font-weight: 400; font-display: swap; src: url(fonts/libre-franklin-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: 'Libre Franklin'; font-style: normal; font-weight: 500; font-display: swap; src: url(fonts/libre-franklin-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: 'Libre Franklin'; font-style: normal; font-weight: 600; font-display: swap; src: url(fonts/libre-franklin-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; }
/* Visningskoll – one sheet for every page. Olive ink on bone paper, like a printed plan document. */
:root {
  --bg: #ecebe7; --surface: #e2e0d9; --surface-2: #d8d5cc; --paper: #f6f5f1;
  --ink: #2f3a0c; --muted: #535d34; --accent: #38450f; --accent-ink: #f3f2ec;
  --field: #38450f; --field-ink: #ecebe7; --field-muted: #c9cfb2;
  --warn: #7a4600; --warn-bg: #f1dc9f; --warn-mid: #d29a1e; --info-mid: #5f84a3; --ok-mid: #6f9150; --na-mid: #c4c1b6; --info: #2b4e6c; --info-bg: #d5dee3;
  --ok: #3a5f22; --ok-bg: #d3dcc0; --na: #57574d; --na-bg: #d9d7cf;
  --map: #e6e4dc; --map-green: #cfd6b6; --map-water: #9fbccb; --map-road: #f8f7f3; --map-lot: #d9d6cc;
  --display: "Besley", Georgia, "Times New Roman", serif;
  --text: "Libre Franklin", system-ui, -apple-system, "Segoe UI", sans-serif;
  --step-small: 0.875rem; --step-body: clamp(1.0625rem, 1.02rem + 0.2vw, 1.1875rem);
  --step-lead: clamp(1.25rem, 1.1rem + 0.6vw, 1.5rem); --step-head: clamp(2rem, 1.4rem + 2.4vw, 3.25rem);
  --step-hero: clamp(2.25rem, 1.5rem + 3.4vw, 4.5rem);
  --gut: clamp(16px, 3vw, 40px); --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #161911; --surface: #1f2318; --surface-2: #292e20; --paper: #1b1f15;
    --ink: #e3e7d2; --muted: #b3ba9b; --accent: #c4d08a; --accent-ink: #161911;
    --field: #2a3110; --field-ink: #e3e7d2; --field-muted: #b9c09d;
    --warn: #f0c15e; --warn-bg: #3a2e10; --warn-mid: #d9a32a; --info-mid: #5f84a3; --ok-mid: #7a9c58; --na-mid: #4a4a40; --info: #9fc0dc; --info-bg: #1d2b36; --ok: #a9cf8c; --ok-bg: #233019;
    --na: #c2c1b3; --na-bg: #2c2c26;
    --map: #1d2117; --map-green: #2a331d; --map-water: #2f4a58; --map-road: #33392a; --map-lot: #272c1f;
    color-scheme: dark;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 var(--step-body)/1.55 var(--text); -webkit-tap-highlight-color: transparent; }
h1, h2, h3, h4 { margin: 0; text-wrap: balance; }
h1, h2 { font-family: var(--display); font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; }
h1 { font-size: var(--step-hero); hyphens: auto; overflow-wrap: break-word; }
h2 { font-size: var(--step-head); }
h3 { font-size: var(--step-lead); font-weight: 600; line-height: 1.25; }
h4 { font-size: 1em; font-weight: 600; line-height: 1.35; }
p, ul, ol { margin: 0; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { text-decoration-thickness: 2px; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; }
::selection { background: var(--accent); color: var(--accent-ink); }
[hidden] { display: none !important; } /* [data-free]/[data-paid] toggles beat a component's own display */
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lead { font-size: var(--step-lead); line-height: 1.4; max-width: 34ch; }
.soft { color: var(--muted); }
.small { font-size: var(--step-small); }

/* Bar */
.bar { display: flex; align-items: center; gap: 24px; padding: 18px var(--gut); background: var(--bg); position: relative; z-index: 5; }
.wordmark { display: inline-flex; align-items: center; gap: .3em; font-family: var(--display); font-weight: 700; font-size: 1.375rem; line-height: 1; letter-spacing: -0.02em; text-decoration: none; margin-right: auto; }
/* The symbol (home in the dotted 500 m ring) in the text colour, so it follows light, dark and the photo bar. */
.wordmark::before { content: ""; flex: none; width: 1.08em; height: 1.08em; background: currentColor;
  -webkit-mask: url(brand/symbol.svg) center / contain no-repeat; mask: url(brand/symbol.svg) center / contain no-repeat; }
.bar ul { display: flex; gap: 22px; list-style: none; padding: 0; font-size: 1rem; }
.bar nav a { text-decoration: none; }
.bar nav a:hover, .bar nav a[aria-current] { text-decoration: underline; }
.menu-btn { display: none; font: 600 1rem var(--text); background: none; border: 0; color: var(--ink); padding: 10px 4px; margin-left: auto; cursor: pointer; text-decoration: underline; text-underline-offset: 4px; }
/* The Meny button from 880 px down: with four menu items the row wrapped onto two lines at 770–820 px. */
@media (max-width: 880px) {
  .bar nav { display: none; }
  .menu-btn { display: block; }
  .bar.open nav { display: block; position: absolute; top: 100%; left: 0; right: 0; background: var(--bg); border-bottom: 1px solid var(--surface-2); padding: 8px var(--gut) 16px; }
  .bar.open nav ul { flex-direction: column; gap: 4px; }
  .bar.open nav a { display: block; padding: 10px 0; }
}
/* Phones: wordmark, Meny and Sök adress take ~411 px at full size and gave every page a sideways scroll at 375 px. */
@media (max-width: 480px) {
  .bar { gap: 12px; }
  .wordmark { font-size: 1.125rem; }
  .bar .btn-small { padding: 0 12px; }
}
@media (max-width: 350px) { .bar .btn-small { display: none; } }

/* Buttons and fields: square corners, one fill */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 24px; border: 0; border-radius: 0;
  background: var(--accent); color: var(--accent-ink); font: 600 1.0625rem/1 var(--text); text-decoration: none; cursor: pointer;
  transition: transform .18s var(--ease), background-color .18s var(--ease); }
.btn:hover { background: color-mix(in srgb, var(--accent) 86%, var(--ink)); text-decoration: none; }
.btn:active { transform: scale(.97); }
.btn-small { min-height: 42px; padding: 0 14px; font-size: .9375rem; white-space: nowrap; }
.btn-quiet { background: var(--surface-2); color: var(--ink); }
.btn-quiet:hover { background: color-mix(in srgb, var(--surface-2) 80%, var(--ink)); }
.field { display: grid; gap: 6px; }
.field label { font-weight: 600; font-size: 1rem; }
input[type="text"], input[type="email"], input[type="search"] {
  width: 100%; min-height: 56px; padding: 0 16px; border: 2px solid var(--ink); border-radius: 0; background: var(--paper);
  color: var(--ink); font: 400 1.125rem/1 var(--text); }
input::placeholder { color: var(--muted); opacity: 1; }
.err { color: var(--warn); font-weight: 600; font-size: 1rem; min-height: 1.5em; }

/* Start page: the fixed map on the left, a reading column on the right */
.split { display: grid; grid-template-columns: minmax(0, 46fr) minmax(0, 54fr); }
.stage { position: sticky; top: 0; height: 100svh; padding: 0 0 var(--gut) var(--gut); }
.stage-inner { position: relative; height: 100%; background: var(--map); overflow: hidden; }
.stage .plan-map { width: 100%; height: 100%; display: block; }
.stage-cap { position: absolute; left: 12px; bottom: 12px; max-width: calc(100% - 24px); padding: 6px 10px; background: var(--bg); font-size: var(--step-small); color: var(--ink); }
.col { padding: 0 var(--gut) 0 clamp(24px, 4.5vw, 72px); display: grid; gap: clamp(80px, 9vw, 120px); padding-bottom: 120px; }
.col > section { scroll-margin-top: 24px; }
.measure { max-width: 46ch; }
.hero { min-height: calc(100svh - 120px); display: grid; align-content: center; gap: 28px; padding-top: 24px; }
.hero h1 { max-width: 14ch; hyphens: manual; }
.search { display: grid; gap: 10px; max-width: 560px; }
.search-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; }
.search-row input { border-right: 0; }
.hint { font-size: 1rem; color: var(--muted); }
@media (max-width: 900px) {
  .split { display: block; }
  .stage { position: relative; height: 24svh; min-height: 170px; padding: 0 16px; }
  .stage-cap { font-size: .75rem; padding: 3px 8px; left: 8px; bottom: 8px; }
  .stage .plan-map { inset: auto !important; left: -30% !important; top: -24% !important; width: 160% !important; height: 150% !important; }
  .col { padding: 0 16px 100px; gap: 72px; }
  .hero { min-height: 0; padding-top: 36px; }
}
@media (max-width: 480px) { .search-row { grid-template-columns: 1fr; } .search-row input { border-right: 2px solid var(--ink); } .search-row .btn { width: 100%; } }

/* Map styling and layer focus */
.m-bg { fill: var(--map); }
.m-green { fill: var(--map-green); }
.m-lake { fill: var(--map-water); }
.m-flood { fill: var(--map-water); fill-opacity: .45; }
.m-creek { fill: none; stroke: var(--map-water); stroke-width: 6; }
.m-road { fill: none; stroke: var(--map-road); stroke-width: 12; stroke-linecap: round; }
.m-road-big { fill: none; stroke: var(--map-road); stroke-width: 22; stroke-linecap: round; }
.m-lot { fill: var(--map-lot); }
.m-deso { fill: none; stroke: var(--muted); stroke-width: 2; stroke-dasharray: 2 8; stroke-linecap: round; }
.m-infra { fill: none; stroke: var(--warn); stroke-width: 5; stroke-dasharray: 16 10; }
.m-rail { fill: none; stroke: var(--ink); stroke-width: 4; }
.m-rail-ties { fill: none; stroke: var(--ink); stroke-width: 14; stroke-dasharray: 2 14; }
.m-plan { stroke: var(--warn); stroke-width: 3; }
.m-hatch-bg { fill: var(--map); }
.m-hatch { stroke: var(--warn); stroke-width: 2.4; }
.m-plan2 { fill: none; stroke: var(--warn); stroke-width: 3; stroke-dasharray: 8 6; }
.m-permit { fill: var(--info); }
.m-school { fill: var(--info); }
.m-bus { fill: var(--paper); stroke: var(--info); stroke-width: 4; }
.m-ring { fill: none; stroke: var(--ink); stroke-width: 2; stroke-dasharray: 3 9; stroke-linecap: round; }
.m-home-lot { fill: var(--paper); stroke: var(--ink); stroke-width: 3; }
.m-home { fill: var(--accent); stroke: var(--paper); stroke-width: 4; }
.m-label, .m-small, .m-home-label { font-family: var(--text); fill: var(--ink); paint-order: stroke; stroke: var(--map); stroke-width: 5px; stroke-linejoin: round; }
.m-label { font-size: 19px; font-weight: 600; }
.m-label-end { text-anchor: end; }
.m-small { font-size: 17px; }
.m-home-label { font-size: 21px; font-weight: 700; }
.plan-map g { transition: opacity .5s var(--ease); }
.stage[data-focus] .plan-map g:not(.l-on) { opacity: .22; }
@media (prefers-reduced-motion: reduce) { .plan-map g { transition: none; } }

/* Preview and report pieces */
.tally { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 4px; }
.tally p { padding: 14px 16px; display: grid; gap: 4px; font-size: 1rem; line-height: 1.25; }
.tally .n { font-family: var(--display); font-weight: 700; font-size: 2.25rem; line-height: 1; font-variant-numeric: tabular-nums; }
.t-warn { background: var(--warn-bg); color: var(--warn); } .t-info { background: var(--info-bg); color: var(--info); }
.t-ok { background: var(--ok-bg); color: var(--ok); } .t-na { background: var(--na-bg); color: var(--na); }
.group { display: grid; gap: 10px; }
.group > h2 { font-size: var(--step-lead); }
.group h2, .group h3 { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.group-n { font-size: 1rem; font-weight: 400; color: var(--muted); }
.rows { list-style: none; padding: 0; display: grid; gap: 4px; }
.row { background: none; border-bottom: 1px solid var(--surface-2); padding: 12px 16px; display: grid; gap: 4px; border-left: 6px solid var(--na-bg); }
.row.s-warn { border-left-color: var(--warn-mid); } .row.s-info { border-left-color: var(--info-mid); }
.row.s-ok { border-left-color: var(--ok-mid); } .row.s-na { border-left-color: var(--na-mid); }
.row-head { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: baseline; gap: 4px 12px; }
.pill { font-size: var(--step-small); font-weight: 600; padding: 3px 10px; border-radius: 999px; white-space: nowrap; }
.p-warn { background: var(--warn-bg); color: var(--warn); } .p-info { background: var(--info-bg); color: var(--info); }
.p-ok { background: var(--ok-bg); color: var(--ok); } .p-na { background: var(--na-bg); color: var(--na); }
.p-pending { background: var(--na-bg); color: var(--na); font-style: italic; }
.signal { font-weight: 500; }
.detail { max-width: 68ch; margin-top: 6px; }
.detail ul { padding-left: 1.1em; display: grid; gap: 6px; }
.src { font-size: var(--step-small); color: var(--muted); margin-top: 6px; }
.lock { display: flex; gap: 10px; align-items: center; font-size: 1rem; color: var(--muted); margin-top: 4px; }
.lock::before { content: ""; flex: none; width: 12px; height: 14px; background: var(--muted);
  clip-path: polygon(0 45%, 18% 45%, 18% 25%, 30% 8%, 70% 8%, 82% 25%, 82% 45%, 100% 45%, 100% 100%, 0 100%, 0 45%, 30% 45%, 30% 28%, 38% 20%, 62% 20%, 70% 28%, 70% 45%, 0 45%); }
.asks { border: 1px solid var(--surface-2); padding: 22px 24px; display: grid; gap: 12px; }
.asks ol, .asks ul { padding-left: 1.3em; display: grid; gap: 8px; max-width: 68ch; }
.asks-bid { background: none; border: 3px solid var(--ink); }
.mock-note { background: var(--info-bg); color: var(--info); padding: 12px 16px; font-size: 1rem; }

/* The preview block and the offer */
.preview { display: grid; gap: 28px; }
.preview[hidden] { display: none; }
.preview-head { display: grid; gap: 8px; }
#preview-title:focus { outline: none; }
.top { border: 3px solid var(--ink); padding: 18px 20px; display: grid; gap: 12px; }
.top h3 { font-size: 1.0625rem; margin: 0; }
.top ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.top li { display: grid; gap: 2px; } .top li b { font-weight: 600; }
.top .btn { justify-self: start; }
.buybar[hidden] { display: none; }
.buybar { position: fixed; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); z-index: 20; justify-content: center; }
@media (min-width: 901px) { .buybar { display: none !important; } }
@media (max-width: 900px) { .preview { padding-bottom: 84px; } }
.offer { background: var(--field); color: var(--field-ink); padding: clamp(24px, 4vw, 40px); display: grid; gap: 18px; }
.offer h3 { font-family: var(--display); font-size: var(--step-head); font-weight: 700; letter-spacing: -0.02em; line-height: 1.02; }
.offer ul { padding-left: 1.1em; display: grid; gap: 4px; }
.offer .btn { background: var(--field-ink); color: var(--field); }
.offer .btn:hover { background: color-mix(in srgb, var(--field-ink) 85%, var(--field)); }
.offer input { border-color: var(--field-ink); }
.offer .soft { color: var(--field-muted); }
.choice { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; border: 0; padding: 0; margin: 0; }
.choice label { display: grid; gap: 2px; padding: 14px 16px; background: color-mix(in srgb, var(--field) 82%, var(--field-ink)); cursor: pointer; }
.choice label:has(input:checked) { background: var(--field-ink); color: var(--field); }
.choice input { position: absolute; opacity: 0; }
.consent { display: grid; grid-template-columns: auto 1fr; gap: 10px; align-items: start; font-size: .82em; color: var(--field-muted); cursor: pointer; }
.consent input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--field-ink); }
.consent a { color: inherit; }
.choice label:has(input:focus-visible) { outline: 3px solid var(--field-ink); outline-offset: 3px; }
.choice b { font-size: 1.375rem; font-variant-numeric: tabular-nums; }
.thanks h3 { margin-bottom: 4px; }

/* Preview: offer right after the summary, every point folded in its group */
.offer-body { display: grid; gap: 18px; }
.proof { margin: 0; border-left: 3px solid var(--field-ink); padding: 4px 0 4px 16px; display: grid; gap: 6px; }
.proof blockquote { margin: 0; font-size: 1rem; line-height: 1.5; }
.proof figcaption { font-size: var(--step-small); color: var(--field-muted); }
.proof a { color: var(--field-ink); }
.all-points { display: grid; gap: 12px; }
.all-points > h3 { font-size: 1.125rem; }
details.group { border-top: 1px solid var(--surface-2); }
details.group > summary { list-style: none; cursor: pointer; padding: 14px 40px 14px 0; position: relative; display: grid; gap: 2px; }
details.group > summary::-webkit-details-marker { display: none; }
details.group > summary::after { content: ""; position: absolute; right: 8px; top: 22px; width: 9px; height: 9px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s var(--ease); }
details.group[open] > summary::after { transform: rotate(-135deg); top: 26px; }
details.group > summary b { font-size: 1.125rem; }
details.group > summary span { color: var(--muted); font-size: 1rem; }
details.group > .rows { padding-bottom: 16px; }

/* Covers: five groups as a plain definition list on tone steps */
.covers { display: grid; gap: 4px; margin-top: 36px; }
.covers div { border-top: 1px solid var(--surface-2); padding: 16px 0; display: grid; grid-template-columns: 11ch minmax(0, 1fr); gap: 4px 20px; }
.covers dt { font-family: var(--display); font-weight: 700; font-size: 1.25rem; line-height: 1.2; }
.covers dd { margin: 0; }
@media (max-width: 560px) { .covers div { grid-template-columns: 1fr; } }

/* Story */
.story { display: grid; gap: 22px; }
.story blockquote { margin: 0; font-family: var(--display); font-size: clamp(1.375rem, 1.2rem + .8vw, 1.875rem); line-height: 1.25; font-weight: 700; letter-spacing: -0.01em; max-width: 28ch; }

/* How it works: an itinerary slip */
.slip-wrap { display: grid; gap: 28px; }
.moments { list-style: none; margin: 32px 0 0; padding: 0; display: grid; gap: 4px; counter-reset: m; }
.moments li { counter-increment: m; display: grid; grid-template-columns: 2.5rem 1fr; gap: 2px 12px; padding: 16px 0; border-top: 1px solid var(--surface-2); }
.moments li::before { content: counter(m); grid-row: span 2; font-family: var(--display); font-size: 1.5rem; font-weight: 700; line-height: 1.2; }
.moments b { font-size: 1.0625rem; }
.moments span { color: var(--muted); }
.slip { background: var(--paper); padding: 26px 26px 22px; max-width: 480px; font-variant-numeric: tabular-nums;
  clip-path: polygon(0 0, 100% 0, 100% calc(100% - 10px), 95% 100%, 90% calc(100% - 10px), 85% 100%, 80% calc(100% - 10px), 75% 100%, 70% calc(100% - 10px), 65% 100%, 60% calc(100% - 10px), 55% 100%, 50% calc(100% - 10px), 45% 100%, 40% calc(100% - 10px), 35% 100%, 30% calc(100% - 10px), 25% 100%, 20% calc(100% - 10px), 15% 100%, 10% calc(100% - 10px), 5% 100%, 0 calc(100% - 10px)); }
.slip h3 { font-size: 1.0625rem; margin: 22px 0 8px; } .slip h3:first-child { margin-top: 0; }
.slip-row { display: flex; align-items: baseline; gap: 8px; font-size: 1rem; padding: 3px 0; }
.slip-row span:nth-child(2) { flex: 1; min-width: 16px; border-bottom: 3px dotted var(--muted); transform: translateY(-4px); }
.slip-end { margin: 22px -26px 0; background: var(--ink); color: var(--paper); padding: 0 26px; min-height: 48px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-weight: 600; font-size: 1rem; }

/* Examples teaser and gallery */
.ex-list { list-style: none; padding: 0; display: grid; gap: 4px; }
.ex-list a { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 20px; align-items: center; padding: 18px 0; border-top: 1px solid var(--surface-2); text-decoration: none;
  transition: background-color .18s var(--ease), transform .18s var(--ease); }
.ex-list a:hover strong { text-decoration: underline; text-underline-offset: 4px; }
.ex-list a:active { transform: scale(.99); }
.ex-list strong { font-family: var(--display); font-size: 1.375rem; line-height: 1.15; letter-spacing: -0.01em; }
.strip { display: grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: 3px; height: 28px; margin-top: 8px; }
.strip i { display: block; background: var(--na); }
.strip .s-warn { background: var(--warn-mid); } .strip .s-info { background: var(--info-mid); } .strip .s-ok { background: var(--ok-mid); } .strip .s-na { background: var(--na-mid); }
.gallery { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px; }
.gallery a { display: grid; gap: 10px; align-content: start; padding: clamp(20px, 3vw, 32px); background: var(--surface); text-decoration: none; height: 100%;
  transition: background-color .18s var(--ease), transform .18s var(--ease); }
.gallery a:hover { background: var(--surface-2); } .gallery a:active { transform: scale(.99); }
.gallery .area { font-family: var(--display); font-weight: 700; font-size: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem); line-height: 1; letter-spacing: -0.02em; }
.gallery .street { font-weight: 600; font-size: 1.125rem; }
.gallery .tag { font-size: 1rem; color: var(--muted); }
.gallery .go { font-weight: 600; text-decoration: underline; text-underline-offset: 3px; margin-top: 6px; }
.gallery li.fict a { background: var(--paper); }
@media (max-width: 760px) { .gallery { grid-template-columns: 1fr; } }
.ex-sub { grid-column: 1 / -1; font-size: 1rem; color: var(--muted); }

/* Pricing as a menu */
.menu { display: grid; gap: 22px; margin-top: 32px; }
.menu-item { display: grid; gap: 2px; }
.menu-line { display: flex; justify-content: space-between; gap: 16px; font-size: 1.1875rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.menu-item p:not(.menu-line) { color: var(--muted); font-size: 1rem; max-width: 40ch; }

/* FAQ */
.faq { display: grid; gap: 4px; margin-top: 32px; }
.faq details { border-top: 1px solid var(--surface-2); }
.faq summary { list-style: none; cursor: pointer; padding: 16px 52px 16px 0; font-weight: 600; font-size: 1.125rem; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 22px; top: 50%; width: 10px; height: 10px; border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink);
  transform: translateY(-70%) rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details > div { padding: 0 0 20px; max-width: 62ch; display: grid; gap: 10px; }
.faq summary:hover { text-decoration: underline; text-underline-offset: 4px; }

/* Footer: a full olive field, the name across it */
.foot { background: var(--field); color: var(--field-ink); padding: 56px var(--gut) 24px; overflow: hidden; }
.foot-top { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 32px 64px; }
.foot-links { list-style: none; padding: 0; display: grid; gap: 8px; align-content: start; }
.foot-sources { display: grid; gap: 10px; font-size: 1rem; color: var(--field-muted); max-width: 62ch; justify-self: end; }
.foot-sources a { color: var(--field-ink); }
.foot-name { font-family: var(--display); font-weight: 700; letter-spacing: -0.04em; line-height: .8; font-size: clamp(3.5rem, 15.5vw, 15rem);
  margin-top: 72px; padding-bottom: .3em; white-space: nowrap; /* room for the g: Besley's descender is .27em */ transform-origin: left bottom; }
@media (max-width: 760px) { .foot-top { grid-template-columns: 1fr; } }

/* Plain pages (exempel, mäklare, om, villkor) */
.page { padding: 48px var(--gut) 140px; display: grid; gap: clamp(72px, 9vw, 120px); }
.page-head { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 24px 64px; align-items: end; }
@media (max-width: 860px) { .page-head { grid-template-columns: 1fr; } }
.page-head .lead, .two > .prose { max-width: none; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px 64px; align-items: start; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
.prose { display: grid; gap: 16px; max-width: 62ch; }
.prose h2 { font-size: clamp(1.625rem, 1.3rem + 1.4vw, 2.25rem); margin-top: 24px; }
.prose ul { padding-left: 1.2em; display: grid; gap: 6px; }
.panel { background: var(--surface); padding: clamp(22px, 3vw, 36px); display: grid; gap: 14px; }
.panel-field { background: var(--field); color: var(--field-ink); }
.panel-field .soft { color: var(--field-muted); }

/* Report view with margin notes */
.r-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 16px; }
.switch { display: inline-flex; background: var(--surface-2); padding: 4px; gap: 4px; }
.switch button { font: 600 1rem/1 var(--text); border: 0; background: transparent; color: var(--ink); padding: 12px 16px; cursor: pointer; border-radius: 0; }
.switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.r-grid { display: grid; gap: 40px; }
.blk { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 16px 48px; align-items: start; }
.note { font-size: 1rem; line-height: 1.45; padding: 4px 0 4px 16px; border-left: 4px solid var(--accent); color: var(--ink); position: sticky; top: 20px; }
.note b { display: block; }
@media (max-width: 1000px) { .blk { grid-template-columns: 1fr; } .note { position: static; order: -1; } }
.r-head { display: grid; gap: 12px; }
.r-facts { display: flex; flex-wrap: wrap; gap: 4px 20px; color: var(--muted); font-size: 1rem; }
.r-map { margin: 0; background: var(--map); }
.r-map .plan-map { display: block; width: 100%; height: clamp(300px, 46vw, 560px); }
.r-map figcaption { padding: 10px 16px 14px; font-size: 1rem; color: var(--muted); }
.r-groups { display: grid; gap: 40px; }
.unlock { background: var(--field); color: var(--field-ink); padding: 24px; display: grid; gap: 12px; justify-items: start; }
.unlock .btn { background: var(--field-ink); color: var(--field); }
.label-ex { background: var(--info-bg); color: var(--info); padding: 12px 16px; font-size: 1rem; }
.notes-list { display: grid; gap: 12px; max-width: 68ch; }

/* Motion: entrances rise once; content stays visible without script */
.can-rise [data-rise] > * { opacity: 0; transform: translateY(22px); }
.can-rise [data-rise].in > * { opacity: 1; transform: none; transition: opacity .6s var(--ease) var(--d, 0ms), transform .7s var(--ease) var(--d, 0ms); }
.preview:not([hidden]) .row { animation: rowIn .45s var(--ease) both; animation-delay: calc(var(--i, 0) * 28ms); }
@keyframes rowIn { from { opacity: 0; transform: translateY(10px); } }
@media (prefers-reduced-motion: reduce) { .preview .row { animation: none !important; } .btn, .ex-list a { transition: none; } }
