/* Planklar – landing page. A drawing sheet, not a chatbot: paper, graphite ink, one survey-orange signal colour,
   thin precise lines, mono for numbers and sources. Everything real is marked as real; illustrations are labelled. */
@font-face { font-family: "Schibsted Grotesk"; font-weight: 400 900; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-wght-normal.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: "Schibsted Grotesk"; font-weight: 400 900; font-display: swap; src: url("../fonts/schibsted-grotesk-latin-ext-wght-normal.woff2") format("woff2"); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+1E00-1E9F, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "IBM Plex Mono"; font-weight: 400; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-400-normal.woff2") format("woff2"); }
@font-face { font-family: "IBM Plex Mono"; font-weight: 500; font-display: swap; src: url("../fonts/ibm-plex-mono-latin-500-normal.woff2") format("woff2"); }

:root {
  color-scheme: light;
  --paper: #f4f2ec;
  --paper-2: #ebe8df;
  --sheet: #fbfaf6;
  --ink: #121417;
  --ink-2: #3a3f45;
  --muted: #5f656b;
  --line: #d8d4c9;
  --line-2: #bdb8ab;
  --signal: #ff5b22;
  --signal-ink: #b83a0a;
  --signal-wash: #ffe7dc;
  --night: #101316;
  --night-2: #1a1e22;
  --night-line: #2c3238;
  --on-night: #f4f2ec;
  --on-night-2: #b9bcbf;
  --ok: #276e44;
  --ok-wash: #e3f0e7;
  --warn: #8a5a00;
  --warn-wash: #f7ecd2;
  --bad: #a8262e;
  --bad-wash: #f6e0df;
  --na: #5f656b;
  --water: #2f6fb5;
  --sewer: #9a5a2c;
  --storm: #3c7f6a;
  --sans: "Schibsted Grotesk", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --wrap: 1240px;
  --gutter: 24px;
  --r: 10px;
  --r-s: 6px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --nav-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--nav-h) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink); font-family: var(--sans);
  font-size: 17px; line-height: 1.55; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
[hidden] { display: none !important; }
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; }
::selection { background: var(--signal); color: var(--ink); }
:focus-visible { outline: 2px solid var(--signal-ink); outline-offset: 3px; border-radius: 3px; }
.wrap { width: min(var(--wrap), 100% - 2 * var(--gutter)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: var(--paper); padding: 10px 14px; border-radius: var(--r-s); }
.skip:focus { top: 12px; }
.fact b, .kv dd, .tb b, .quote dd, .tool span, .risk-table small, .infra__col li > span { font-variant-numeric: tabular-nums; }

/* ---------- type ---------- */
.label {
  display: inline-flex; align-items: center; gap: 10px; margin: 0;
  font: 500 12px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink-2);
}
.label::before { content: ""; width: 9px; height: 9px; background: var(--signal); flex: none; }
.h1 { font-size: clamp(42px, 5.4vw, 80px); line-height: 0.98; letter-spacing: -0.038em; font-weight: 700; margin: 0; text-wrap: balance; }
.h2 { font-size: clamp(32px, 3.9vw, 56px); line-height: 1.02; letter-spacing: -0.032em; font-weight: 700; margin: 0; text-wrap: balance; }
.h3 { font-size: clamp(21px, 1.7vw, 25px); line-height: 1.18; letter-spacing: -0.018em; font-weight: 650; margin: 0; }
.h1 em, .h2 em { font-style: normal; color: var(--signal-ink); }
.lead { font-size: clamp(18px, 1.5vw, 21px); line-height: 1.48; color: var(--ink-2); margin: 20px 0 0; max-width: 58ch; }
.small { font-size: 14px; line-height: 1.5; }
.muted { color: var(--muted); }
p { margin: 0; }

/* ---------- buttons & links ---------- */
.btn {
  --b: var(--ink); display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 22px; border-radius: 8px; border: 1.5px solid var(--b);
  font: 600 16px/1 var(--sans); letter-spacing: -0.005em; color: var(--ink); background: transparent;
  text-decoration: none; cursor: pointer; white-space: nowrap;
  transition: background 0.18s, color 0.18s, border-color 0.18s, transform 0.18s var(--ease);
}
.btn:hover { background: var(--ink); color: var(--paper); }
.btn:active { transform: translateY(1px); }
.btn--signal { --b: var(--signal); background: var(--signal); color: var(--ink); }
.btn--signal:hover { --b: var(--ink); background: var(--ink); color: var(--paper); }
.btn--ink { background: var(--ink); color: var(--paper); }
.btn--ink:hover { --b: var(--signal); background: var(--signal); color: var(--ink); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: 14.5px; }
.btn svg { width: 18px; height: 18px; flex: none; }
.on-night .btn { --b: var(--on-night); color: var(--on-night); }
.on-night .btn:hover { background: var(--on-night); color: var(--ink); }
.on-night .btn--signal { --b: var(--signal); color: var(--ink); }
.arrow { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; text-decoration: none; border-bottom: 1.5px solid currentColor; padding-bottom: 2px; }
.arrow::after { content: "→"; transition: transform 0.2s var(--ease); }
.arrow:hover::after { transform: translateX(4px); }
.kbd { font: 500 0.88em var(--mono); background: var(--sheet); border: 1px solid var(--line); border-radius: 4px; padding: 1px 6px; white-space: nowrap; }

/* ---------- status chips: never colour alone ---------- */
.st { display: inline-flex; align-items: center; gap: 7px; font: 500 12px/1 var(--mono); letter-spacing: 0.02em; padding: 6px 9px 6px 8px; border-radius: 4px; white-space: nowrap; border: 1px solid transparent; }
.st::before { content: ""; width: 9px; height: 9px; flex: none; border-radius: 2px; }
.st--ok { background: var(--ok-wash); color: var(--ok); }
.st--ok::before { background: var(--ok); }
.st--warn { background: var(--warn-wash); color: var(--warn); }
.st--warn::before { background: repeating-linear-gradient(45deg, var(--warn) 0 2px, transparent 2px 4px); outline: 1px solid var(--warn); }
.st--bad { background: var(--bad-wash); color: var(--bad); }
.st--bad::before { background: var(--bad); border-radius: 50%; }
.st--na { background: transparent; color: var(--na); border-color: var(--line-2); border-style: dashed; }
.st--na::before { border: 1.5px dashed var(--na); }
.st--info { background: var(--paper-2); color: var(--ink-2); }
.st--info::before { background: var(--ink-2); }

/* ---------- nav ---------- */
.lnav { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--paper) 88%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color 0.2s; }
.lnav.is-scrolled { border-bottom-color: var(--line); }
.lnav .wrap { display: flex; align-items: center; gap: 28px; height: var(--nav-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 21px; letter-spacing: -0.03em; }
.brand svg { width: 30px; height: 30px; }
.brand small { font: 500 11px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-left: 1px solid var(--line-2); padding-left: 10px; margin-left: 2px; }
.lnav nav { display: flex; gap: 4px; margin-left: auto; }
.lnav nav a { padding: 8px 11px; border-radius: 6px; text-decoration: none; font-size: 15px; color: var(--ink-2); font-weight: 500; }
.lnav nav a:hover { background: var(--paper-2); color: var(--ink); }
.lnav .nav-cta { display: flex; align-items: center; gap: 18px; }
.lnav .nav-try { font-size: 15px; font-weight: 600; text-decoration: none; }
.lnav .nav-try:hover { text-decoration: underline; }
.nav-try-m { display: none; }
.btn .i-chat { flex: none; margin-right: 7px; }
/* logged in: straight back to the chat from the hero */
.welcome { margin: 0 0 22px; padding: 16px 18px; background: var(--sheet, #fff); border: 1.5px solid var(--ink); border-radius: 8px; }
.welcome__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 16px; }
.welcome__h { margin: 0; font-size: 15.5px; color: var(--ink-2); overflow-wrap: anywhere; }
.welcome__h b { color: var(--ink); }
.welcome__sub { margin: 12px 0 0; font-size: 14.5px; color: var(--muted); }
.welcome__list { list-style: none; margin: 6px 0 0; padding: 0; }
.welcome__list li + li { border-top: 1px solid var(--line); }
.welcome__list a { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 9px 0; text-decoration: none; color: var(--ink); font-weight: 500; font-size: 15px; }
.welcome__list a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.welcome__list a small { flex: none; font: 400 12.5px var(--mono); color: var(--muted); }
.welcome__list a:hover span { text-decoration: underline; }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; color: var(--ink); cursor: pointer; }
.nav-toggle svg { width: 22px; height: 22px; margin: auto; }
.nav-toggle .i-close { display: none; }
.lnav.is-open .nav-toggle .i-open { display: none; }
.lnav.is-open .nav-toggle .i-close { display: block; }

/* ---------- hero ---------- */
.hero { position: relative; padding: clamp(36px, 5vw, 72px) 0 clamp(56px, 7vw, 96px); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: 0.55;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px; background-position: -1px -1px;
  mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000 0%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse 70% 80% at 72% 40%, #000 0%, transparent 72%);
}
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 4.5vw, 72px); align-items: center; }
.hero .h1 { margin: 22px 0 0; }
.hero .lead { max-width: 34em; }
.ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__links { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 22px; font-size: 15.5px; }
.hero__links a { color: var(--ink-2); }
.hero__trust { margin-top: 28px; padding-top: 16px; border-top: 1px solid var(--line); font: 400 12.5px/1.6 var(--mono); color: var(--muted); }
.hero__trust span + span::before { content: " · "; }

/* drawing sheet */
.sheet { position: relative; margin: 0; background: var(--sheet); border: 1.5px solid var(--ink); padding: 10px; box-shadow: 10px 10px 0 -1px var(--paper-2), 10px 10px 0 0 var(--line-2); }
.sheet__frame { position: relative; border: 1px solid var(--line-2); overflow: hidden; background: var(--sheet); }
.sheet__frame > svg { width: 100%; height: auto; }
.dwg--hero-m { display: none !important; }
.sheet__tag { position: absolute; top: 12px; left: 14px; font: 500 10.5px/1 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 5px 7px; }
.tb { display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr; border: 1px solid var(--line-2); border-top: 0; }
.tb > div { padding: 8px 10px 9px; border-left: 1px solid var(--line-2); min-width: 0; }
.tb > div:first-child { border-left: 0; }
.tb span { display: block; font: 400 10px/1.3 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.tb b { display: block; margin-top: 3px; font: 500 13px/1.3 var(--mono); color: var(--ink); overflow-wrap: anywhere; }
.sheet figcaption, .cap { margin-top: 12px; font-size: 13.5px; line-height: 1.5; color: var(--muted); }
.sheet figcaption b, .cap b { color: var(--ink-2); font-weight: 600; }

/* svg drawing styles (site plan) */
.dwg text { font-family: var(--mono); }
.dwg .teig { fill: none; stroke: var(--ink); stroke-width: 2.4; stroke-linejoin: round; }
.dwg .nabo { fill: none; stroke: var(--line-2); stroke-width: 1; }
.dwg .bygg { fill: #dedad0; stroke: #8f897b; stroke-width: 1; }
.dwg .bygg--egen { fill: #b9b4a7; stroke: var(--ink); stroke-width: 1.2; }
.dwg .kote { fill: none; stroke: #b5ae9e; stroke-width: 0.8; }
.dwg .kote--5 { stroke: #968f7e; stroke-width: 1.2; }
.dwg .vei { fill: none; stroke: #e4e0d6; stroke-linecap: round; stroke-linejoin: round; }
.dwg .vei-c { fill: none; stroke: #a39d90; stroke-width: 1; stroke-dasharray: 10 7; }
.dwg .byggbart { fill: rgba(255, 91, 34, 0.07); stroke: var(--ink-2); stroke-width: 1.2; stroke-dasharray: 6 4; }
.dwg .ny-tomt { fill: rgba(255, 91, 34, 0.12); stroke: none; }
.dwg .dele { fill: none; stroke: var(--signal); stroke-width: 3; stroke-dasharray: 14 6 3 6; }
.dwg .nytt-hus { fill: var(--signal); stroke: var(--ink); stroke-width: 1.4; }
.dwg .dim { stroke: var(--ink); stroke-width: 1; fill: none; }
.dwg .lbl { fill: var(--ink); }
.dwg .lbl--b { font-weight: 500; }
.dwg .lbl-bg { fill: var(--sheet); stroke: var(--ink); stroke-width: 0.8; }
.dwg .lbl-bg--s { fill: var(--signal); stroke: var(--signal); }
.js .dwg .draw { stroke-dasharray: var(--len) var(--len); stroke-dashoffset: var(--len); }
.js .dwg.is-in .draw { animation: draw 1.6s var(--ease) forwards; animation-delay: var(--d, 0s); }
.js .dwg .pop { opacity: 0; }
.js .dwg.is-in .pop { animation: pop 0.5s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.dwg .pop { transform-box: fill-box; }

/* ---------- facts band ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--sheet); }
.facts .wrap { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.fact { padding: 26px 22px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font: 600 clamp(34px, 3.4vw, 46px)/1 var(--sans); letter-spacing: -0.035em; }
.fact span { display: block; margin-top: 8px; font-size: 14.5px; line-height: 1.4; color: var(--ink-2); }
.facts__note { grid-column: 1 / -1; border-top: 1px dashed var(--line); padding: 10px 0 12px; font: 400 11.5px/1.4 var(--mono); color: var(--muted); }

/* ---------- sections ---------- */
.sec { padding: clamp(72px, 9vw, 128px) 0; }
.sec--tight { padding: clamp(56px, 6vw, 88px) 0; }
.sec--alt { background: var(--paper-2); }
.sec--night { background: var(--night); color: var(--on-night); }
.sec--night .lead, .sec--night .muted { color: var(--on-night-2); }
.sec--night .label { color: var(--on-night-2); }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 0; max-width: 860px; margin-bottom: clamp(36px, 4.5vw, 60px); }
.sec-head .label { margin-bottom: 18px; }
.sec-head--split { max-width: none; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 48px; align-items: end; }
.sec-head--split .lead { margin-top: 0; }
.idx { font: 500 12px/1 var(--mono); color: var(--muted); letter-spacing: 0.08em; }
.reveal { opacity: 1; }
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--d, 0s); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* ---------- case ---------- */
.case-intro { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 48px; align-items: start; margin-bottom: 48px; }
.case-meta { border: 1px solid var(--line-2); background: var(--sheet); }
.case-meta dl { margin: 0; display: grid; grid-template-columns: auto 1fr; }
.case-meta dt, .case-meta dd { margin: 0; padding: 10px 14px; border-top: 1px solid var(--line); font-size: 14.5px; }
.case-meta dt { font: 400 11px/1.6 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding-top: 12px; }
.case-meta dd { font-weight: 500; }
.case-meta > p { padding: 10px 14px; font: 400 11.5px/1.5 var(--mono); color: var(--muted); }
.case-meta dl > :nth-child(1), .case-meta dl > :nth-child(2) { border-top: 0; }

/* chat demo (scroll-driven on wide screens) */
.demo { position: relative; }
.demo__grid { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 64px); align-items: start; }
.demo__steps { list-style: none; margin: 28px 0 0; padding: 0; counter-reset: s; }
.demo__steps li { position: relative; padding: 14px 0 14px 44px; border-top: 1px solid var(--line); color: var(--muted); transition: color 0.3s; }
.demo__steps li::before { counter-increment: s; content: "0" counter(s); position: absolute; left: 0; top: 16px; font: 500 12px/1 var(--mono); color: var(--muted); }
.demo__steps li b { display: block; color: var(--ink-2); font-weight: 600; font-size: 17px; }
.demo__steps li p { margin-top: 4px; font-size: 15px; line-height: 1.5; }
.demo__steps li.is-on { color: var(--ink-2); }
.demo__steps li.is-on b { color: var(--ink); }
.demo__steps li.is-on::before { color: var(--signal-ink); }
.window { background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; box-shadow: 0 30px 60px -40px rgba(18, 20, 23, 0.45); }
.window__bar { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); font: 500 11.5px/1 var(--mono); color: var(--muted); }
.window__bar .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.window__bar .conn { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: var(--ink); }
.window__bar .conn svg { width: 15px; height: 15px; }
.chat { padding: 20px 20px 8px; display: flex; flex-direction: column; gap: 14px; }
.bubble { align-self: flex-end; max-width: 88%; background: var(--paper-2); border-radius: 14px 14px 4px 14px; padding: 12px 15px; font-size: 15.5px; line-height: 1.5; }
.tools { border: 1px solid var(--line); border-radius: 8px; overflow: hidden; }
.tools__head { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; background: var(--sheet); border-bottom: 1px solid var(--line); font: 500 12px/1.2 var(--mono); color: var(--ink-2); }
.tool { display: grid; grid-template-columns: 14px minmax(0, auto) minmax(0, 1fr); gap: 10px; align-items: center; padding: 7px 12px; border-top: 1px solid var(--line); font-size: 13.5px; }
.tool:first-of-type { border-top: 0; }
.tool i { width: 10px; height: 10px; border-radius: 50%; border: 1.5px solid var(--line-2); }
.tool.is-run i { border-color: var(--signal); border-top-color: transparent; animation: spin 0.7s linear infinite; }
.tool.is-done i, .no-motion .tool i { background: var(--ok); border-color: var(--ok); }
.tool code { font: 500 12.5px/1.2 var(--mono); color: var(--ink); white-space: nowrap; }
.tool span { color: var(--muted); text-align: right; font: 400 12.5px/1.3 var(--mono); overflow-wrap: anywhere; }
@keyframes spin { to { transform: rotate(360deg); } }
.answer { font-size: 15.5px; line-height: 1.58; color: var(--ink); }
.answer p + p { margin-top: 10px; }
.answer b { font-weight: 650; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips { list-style: none; margin: 0; padding: 0; }
.chips li { font: 500 11.5px/1 var(--mono); padding: 6px 8px; border: 1px solid var(--line); border-radius: 4px; color: var(--ink-2); background: var(--sheet); }
.composer { margin: 8px 14px 14px; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; font-size: 15px; color: var(--muted); display: flex; align-items: center; gap: 10px; }
.composer i { margin-left: auto; width: 26px; height: 26px; border-radius: 50%; background: var(--paper-2); }
.js .demo .chat__item { opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.js .demo .chat__item.is-on { opacity: 1; transform: none; }
.js .demo .tool { opacity: 0.35; transition: opacity 0.3s; }
.js .demo .tool.is-on { opacity: 1; }

/* split proposal */
.split { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(64px, 8vw, 112px); }
.split > .fig-sheet { grid-column: 1 / -1; order: 2; }
.split > div { display: contents; }
.split > div > .label { grid-column: 1 / -1; order: 0; }
.split > div > .h3 { grid-column: 1 / -1; order: 1; margin: 0 !important; }
.split > div > .muted { grid-column: 1; order: 3; }
.split > div > .kv { grid-column: 2; order: 3; margin-top: 0 !important; }
.split .sheet { box-shadow: none; }
.kv { border-top: 1.5px solid var(--ink); margin: 0; }
.kv > div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; align-items: baseline; padding: 11px 0; border-bottom: 1px solid var(--line); }
.kv dt { font-size: 15px; color: var(--ink-2); margin: 0; }
.kv dd { margin: 0; font: 500 15px/1.3 var(--mono); text-align: right; }
.checks { list-style: none; margin: 0; padding: 0; border-top: 1.5px solid var(--ink); }
.checks li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.checks li b { font-weight: 600; font-size: 15.5px; }
.checks li .v { grid-column: 1; font-size: 14.5px; color: var(--ink-2); }
.checks li .src { grid-column: 1 / -1; font: 400 11.5px/1.45 var(--mono); color: var(--muted); }
.checks li .st { grid-column: 2; grid-row: 1 / span 2; align-self: start; }

/* inlined figures from the worked example (namespaced SVG, desktop + mobile versions) */
.fig { display: block; width: 100%; height: auto; --plan-font: var(--sans); --plan-ink: var(--ink); --plan-muted: var(--muted); }
.fig-m { display: none; }
.tools__more { display: none; margin: 0; padding: 8px 12px 10px; font: 500 12px/1.3 var(--mono); color: var(--muted); }
.js [data-js-hidden] { display: none; }
html:not(.js) .seg { display: none; }
.fig-sheet { margin: 0; box-shadow: none; }
.fig-sheet figcaption { padding: 0 2px; }
.fig-box { margin: 0; background: #fff; border: 1px solid var(--line-2); }
.fig-box figcaption { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 9px 12px; border-top: 1px solid var(--line); font: 400 11.5px/1.4 var(--mono); color: var(--muted); }
.srct { display: inline-block; font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.04em; text-transform: uppercase; color: var(--ink-2); background: var(--paper-2); border: 1px solid var(--line-2); border-radius: 3px; padding: 2px 5px 1px; margin-right: 4px; vertical-align: 1px; white-space: nowrap; }
.answer .srct { background: var(--sheet); }
.checks--grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; margin-top: 36px; border-top: 1.5px solid var(--ink); }
.checks--grid li { border-bottom: 1px solid var(--line); }
.more-risks { margin-top: 0; }
.more-risks[open] .when-closed, .more-risks:not([open]) .when-open { display: none; }
.more-risks summary, .case-sources summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 10px; margin-top: 16px; padding: 10px 14px; border: 1.5px solid var(--ink); border-radius: 8px; font-weight: 600; font-size: 15px; }
.more-risks summary::-webkit-details-marker, .case-sources summary::-webkit-details-marker { display: none; }
.more-risks summary::after, .case-sources summary::after { content: "+"; font: 500 17px/1 var(--mono); }
.more-risks[open] summary::after, .case-sources[open] summary::after { content: "–"; }
.risk-table--more { border-top: 0; margin-top: 12px; }
.pit { margin: 28px 0 0; background: #fff; border: 1px solid var(--line-2); }
.swipe-note { display: none; }
.pit__scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; overscroll-behavior-x: contain; }
.pit .fig { padding: 6px; }
.pit figcaption { padding: 9px 12px; border-top: 1px solid var(--line); font: 400 11.5px/1.45 var(--mono); color: var(--muted); }
.case-sources { margin-top: 28px; }
.case-sources ul { margin: 14px 0 0; padding-left: 18px; font-size: 14px; color: var(--ink-2); line-height: 1.6; columns: 2 380px; }

/* infrastructure strip */
.infra { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0; margin-top: clamp(48px, 6vw, 80px); border: 1.5px solid var(--ink); background: var(--sheet); }
.infra__col { padding: 22px 22px 24px; border-left: 1px solid var(--line-2); }
.infra__col:first-child { border-left: 0; }
.infra__col h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 650; letter-spacing: -0.01em; margin: 0 0 14px; }
.infra__col h3 svg { width: 22px; height: 22px; }
.infra__col ul { list-style: none; margin: 0; padding: 0; }
.infra__col li { padding: 10px 0; border-top: 1px solid var(--line); }
.infra__col li:first-child { border-top: 0; padding-top: 0; }
.infra__col li b { display: block; font-size: 15px; font-weight: 600; }
.infra__col li > span { display: block; font: 400 13px/1.45 var(--mono); color: var(--ink-2); margin-top: 3px; }
.infra__col li small { display: block; font: 400 11.5px/1.45 var(--mono); color: var(--muted); margin-top: 4px; }
.sw { display: inline-block; width: 11px; height: 11px; border: 2.5px solid; border-radius: 50%; vertical-align: -1px; margin-right: 8px; }

/* risks */
.risks { margin-top: clamp(56px, 7vw, 96px); }
.risks__head { display: flex; justify-content: space-between; align-items: end; gap: 24px; margin-bottom: 18px; flex-wrap: wrap; }
.risk-table { width: 100%; border-collapse: collapse; border-top: 1.5px solid var(--ink); }
.risk-table thead th { text-align: left; font: 500 11px/1.3 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line-2); }
.risk-table td { padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); vertical-align: top; font-size: 15px; line-height: 1.5; }
.risk-table tbody th { width: 28%; text-align: left; vertical-align: top; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.5; font-weight: 600; }
.risk-table tbody th small { display: block; margin-top: 6px; font: 400 11.5px/1.45 var(--mono); color: var(--muted); font-weight: 400; }
.risk-table td.lvl { width: 120px; }
.risk-table td.next { width: 30%; color: var(--ink-2); }

/* house proposal */
.house { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); grid-template-areas: "head head" "plan plan" "sect sect" "text nums"; gap: 20px clamp(28px, 4vw, 56px); margin-top: clamp(64px, 8vw, 112px); align-items: start; }
.house__head { grid-area: head; max-width: 860px; margin-bottom: 8px; }
.house__plan { grid-area: plan; }
.house__section { grid-area: sect; }
.house__text { grid-area: text; }
.house__nums { grid-area: nums; }
.house__text .bullets { margin-top: 0; }
.bullets { list-style: none; margin: 18px 0 0; padding: 0; }
.bullets li { position: relative; padding: 10px 0 10px 26px; border-top: 1px solid var(--line); font-size: 15.5px; line-height: 1.5; }
.bullets li::before { content: ""; position: absolute; left: 2px; top: 19px; width: 12px; height: 2px; background: var(--signal); }
.limits { margin-top: 22px; padding: 14px 16px; border: 1px dashed var(--line-2); font-size: 14px; line-height: 1.55; color: var(--ink-2); }
.limits b { display: block; font: 500 11px/1.3 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.limits ul { margin: 0; padding-left: 18px; }
.case-cta { margin-top: clamp(48px, 6vw, 72px); display: flex; gap: 14px; flex-wrap: wrap; align-items: center; padding-top: 28px; border-top: 1px solid var(--line); }
.case-cta p { margin-right: auto; font-size: 17px; font-weight: 600; }

/* ---------- connector explainer ---------- */
.flowchart { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.node { position: relative; padding: 24px 22px 26px; border: 1px solid var(--night-line); border-left-width: 0; background: var(--night-2); }
.node:first-child { border-left-width: 1px; }
.node--pk { background: var(--on-night); color: var(--ink); border-color: var(--on-night); }
.node .idx { color: var(--on-night-2); }
.node--pk .idx { color: var(--muted); }
.node h3 { margin: 14px 0 6px; font-size: 21px; font-weight: 650; letter-spacing: -0.015em; }
.node > p { font-size: 15px; line-height: 1.5; color: var(--on-night-2); }
.node--pk > p { color: var(--ink-2); }
.node ul { list-style: none; margin: 16px 0 0; padding: 0; font: 400 12.5px/1.5 var(--mono); color: var(--on-night-2); }
.node--pk ul { color: var(--ink-2); }
.node li { padding: 6px 0; border-top: 1px dashed var(--night-line); }
.node--pk li { border-top-color: var(--line-2); }
.node:not(:last-child)::after {
  content: ""; position: absolute; z-index: 2; right: -13px; top: 32px; width: 24px; height: 24px; border-radius: 50%;
  background: var(--signal) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23121417' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M9 6l6 6-6 6'/%3E%3C/svg%3E") center / 15px no-repeat;
}
.benefits { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0; margin-top: clamp(48px, 6vw, 80px); border-top: 1px solid var(--night-line); }
.benefit { padding: 28px 32px 30px 0; border-bottom: 1px solid var(--night-line); }
.benefit:nth-child(even) { padding-left: 32px; padding-right: 0; border-left: 1px solid var(--night-line); }
.benefit h3 { display: flex; gap: 14px; align-items: baseline; font-size: 22px; font-weight: 650; letter-spacing: -0.015em; margin: 0 0 10px; }
.benefit h3 .idx { color: var(--signal); }
.benefit p { color: var(--on-night-2); font-size: 16px; line-height: 1.55; max-width: 52ch; }
.benefit p q { color: var(--on-night); quotes: "«" "»"; }
.compare { margin-top: clamp(48px, 6vw, 80px); overflow-x: auto; }
.compare table { width: 100%; min-width: 640px; border-collapse: collapse; }
.compare caption { text-align: left; font: 500 12px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--on-night-2); padding-bottom: 14px; }
.compare th, .compare td { padding: 13px 14px; border-bottom: 1px solid var(--night-line); text-align: left; font-size: 15px; vertical-align: top; }
.compare thead th { font: 500 12px/1.3 var(--mono); letter-spacing: 0.04em; color: var(--on-night-2); border-bottom: 1px solid var(--on-night-2); }
.compare thead th.pk { color: var(--signal); }
.compare tbody th { font-weight: 500; color: var(--on-night); width: 28%; }
.compare td { color: var(--on-night-2); }
.compare td.pk { color: var(--on-night); background: rgba(255, 91, 34, 0.08); }
.compare td .y, .compare td .n, .compare td .p { font-family: var(--mono); font-weight: 500; margin-right: 6px; }
.compare td .y { color: #7fd3a1; }
.compare td.pk .y { color: var(--signal); }
.compare td .n { color: #8b8f93; }
.compare td .p { color: #d7b56d; }
.compare__note { margin-top: 14px; font: 400 12px/1.5 var(--mono); color: var(--on-night-2); }
.early { margin-top: clamp(40px, 5vw, 64px); display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 22px 24px; border: 1px solid var(--night-line); }
.early p { font-size: 17px; line-height: 1.5; color: var(--on-night); }
.early p span { color: var(--on-night-2); }
.early__ctas { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- roles ---------- */
.roles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.role { position: relative; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--line-2); border-radius: var(--r); padding: 26px 26px 24px; }
.role .idx { position: absolute; right: 22px; top: 24px; }
.role h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.018em; margin: 0 48px 6px 0; }
.role .who { font: 400 12.5px/1.5 var(--mono); color: var(--muted); }
.role > p { margin-top: 14px; font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.ask { margin-top: 18px; padding: 14px 16px; border-left: 3px solid var(--signal); background: var(--paper); font-size: 15px; line-height: 1.5; }
.ask span { display: block; font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin-bottom: 6px; }
.role ul { list-style: none; margin: 16px 0 0; padding: 0; font-size: 14.5px; color: var(--ink-2); }
.role li { padding: 6px 0 6px 20px; position: relative; }
.role li::before { content: ""; position: absolute; left: 2px; top: 15px; width: 9px; height: 1.5px; background: var(--ink); }
.role .check-self { margin-top: auto; padding-top: 16px; font: 400 12.5px/1.5 var(--mono); color: var(--muted); }
.others { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 16px; }
.other { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 18px; align-items: center; padding: 20px 24px; border: 1px dashed var(--line-2); border-radius: var(--r); }
.other h3 { font-size: 18px; font-weight: 650; margin: 0 0 4px; letter-spacing: -0.01em; }
.other p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }

/* ---------- outputs ---------- */
.outputs { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); gap: 16px; }
.out { margin: 0; display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--line-2); border-radius: var(--r); overflow: hidden; grid-column: span 4; }
.out--wide { grid-column: span 6; }
.out__img { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: #fff; border-bottom: 1px solid var(--line); }
.out__img img { width: 100%; height: 100%; object-fit: cover; object-position: var(--pos, 50% 0%); }
.out__img.contain img { object-fit: contain; padding: 12px; }
.out__tag { display: inline-block; align-self: flex-start; margin-bottom: 10px; font: 500 10px/1 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; background: var(--ink); color: var(--paper); padding: 5px 7px; }
.out__tag--ex { background: var(--paper); color: var(--ink); border: 1px solid var(--ink); }
.out__body { padding: 18px 20px 20px; display: flex; flex-direction: column; flex: 1; }
.out__body h3 { font-size: 19px; font-weight: 650; letter-spacing: -0.012em; margin: 0 0 6px; }
.out__body p { font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.fmt { display: flex; gap: 6px; margin-top: auto; padding-top: 16px; }
.fmt { flex-wrap: wrap; align-items: center; }
.fmt span { font: 500 11px/1 var(--mono); padding: 5px 7px; border: 1px solid var(--line-2); border-radius: 4px; }
.out__plan { margin-left: auto; font: 400 11.5px/1.3 var(--mono); font-style: normal; color: var(--muted); }
.mock-check { padding: 16px 18px 18px; display: grid; gap: 6px; align-content: start; height: 100%; }
.mock-check div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 10px; align-items: center; font-size: 14px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--sheet); }

/* ---------- gathered: fetch, compute, draw ---------- */
.flow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: 16px; }
.flow__step { background: var(--sheet); border: 1px solid var(--line-2); border-radius: var(--r); padding: 24px 24px 22px; display: flex; flex-direction: column; min-width: 0; }
.flow__step--in { grid-column: 1 / -1; }
.flow__step--out { border: 1.5px solid var(--ink); }
.flow__head { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; align-items: center; margin-bottom: 18px; }
.flow__head h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.018em; margin: 0; }
.flow__head p { grid-column: 2; margin-top: 4px; font-size: 15px; line-height: 1.5; color: var(--muted); }
.flow__n { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: var(--paper); font: 600 14px/1 var(--mono); }
.flow__step--out .flow__n { background: var(--signal); color: var(--ink); }
.gather { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.gather li { display: flex; flex-direction: column; gap: 6px; padding: 16px 16px 16px 0; border-bottom: 1px solid var(--line); min-width: 0; }
.gather li:nth-child(4n + 2), .gather li:nth-child(4n + 3), .gather li:nth-child(4n + 4) { padding-left: 16px; border-left: 1px solid var(--line); }
.gather b, .compute b, .made b { font-size: 16px; font-weight: 650; letter-spacing: -0.01em; }
.gather span, .compute span { font-size: 14.5px; line-height: 1.45; color: var(--ink-2); }
.gather small { margin-top: auto; padding-top: 4px; font: 400 11.5px/1.4 var(--mono); color: var(--muted); }
.compute, .made { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.compute li { display: grid; gap: 4px; padding: 13px 0 13px 22px; border-bottom: 1px solid var(--line); position: relative; }
.compute li::before { content: ""; position: absolute; left: 2px; top: 21px; width: 9px; height: 1.5px; background: var(--ink); }
.compute li:last-child, .made li:last-child { border-bottom: 0; }
.drawings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-bottom: 16px; }
.drawings figure { margin: 0; background: #fff; border: 1px solid var(--line-2); display: flex; flex-direction: column; }
.drawings__crop { aspect-ratio: 4 / 3; overflow: hidden; }
.drawings img { width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1)); transform-origin: var(--at, 50% 50%); }
.drawings figcaption { border-top: 1px solid var(--line); padding: 6px 10px; font: 500 10.5px/1.2 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-2); }
.made li { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.made small { font: 400 11.5px/1.3 var(--mono); color: var(--muted); white-space: nowrap; }
.flow__step .cap { margin-top: auto; padding-top: 14px; }
.cap a { color: var(--ink-2); }
.trust { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(28px, 4vw, 56px); align-items: start; margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 3vw, 40px); border-top: 1.5px solid var(--ink); }
.trust h3 { font-size: 22px; font-weight: 650; letter-spacing: -0.018em; margin: 0 0 10px; }
.trust > div > p:not(.cap) { font-size: 16px; line-height: 1.55; color: var(--ink-2); }
.quote { background: var(--sheet); border: 1.5px solid var(--ink); }
.quote blockquote { margin: 0; padding: 28px 28px 24px; font-size: clamp(22px, 2.2vw, 30px); line-height: 1.3; letter-spacing: -0.015em; font-weight: 500; }
.quote blockquote::before { content: "«"; color: var(--signal-ink); }
.quote blockquote::after { content: "»"; color: var(--signal-ink); }
.quote dl { margin: 0; display: grid; grid-template-columns: minmax(0, 2.2fr) minmax(0, 0.6fr) minmax(0, 1fr) minmax(0, 1.5fr); border-top: 1px solid var(--line-2); }
.quote dl > div { padding: 10px 14px 12px; border-left: 1px solid var(--line-2); min-width: 0; }
.quote dl > div:first-child { border-left: 0; }
.quote dt { font: 400 10px/1.3 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.quote dd { margin: 4px 0 0; font: 500 12.5px/1.4 var(--mono); overflow-wrap: break-word; }
.quote__url { border-top: 1px solid var(--line-2); padding: 10px 14px; font: 400 12px/1.4 var(--mono); overflow-wrap: anywhere; }
.quote__url a { color: var(--ink-2); }

/* ---------- setup ---------- */
.seg { position: relative; display: inline-flex; gap: 2px; padding: 4px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--sheet); margin-bottom: 28px; }
.seg button { position: relative; z-index: 1; border: 0; background: transparent; font: 600 15px/1 var(--sans); padding: 12px 18px; border-radius: 7px; cursor: pointer; color: var(--ink-2); }
.seg button[aria-selected="true"] { color: var(--paper); }
.seg .thumb { position: absolute; z-index: 0; top: 4px; left: 0; height: calc(100% - 8px); border-radius: 7px; background: var(--ink); transition: transform 0.3s var(--ease), width 0.3s var(--ease); }
.setup { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: clamp(28px, 4vw, 56px); align-items: start; }
.steps { list-style: none; margin: 0; padding: 0; counter-reset: st; border-top: 1.5px solid var(--ink); }
.steps li { display: grid; grid-template-columns: 40px minmax(0, 1fr); gap: 10px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.steps li::before { counter-increment: st; content: counter(st); width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--ink); display: grid; place-items: center; font: 500 13px/1 var(--mono); }
.steps b { display: block; font-size: 16.5px; font-weight: 650; }
.steps p { margin-top: 3px; font-size: 15px; color: var(--ink-2); line-height: 1.5; }
.urlbox { display: flex; gap: 10px; align-items: center; margin-top: 22px; padding: 10px 10px 10px 14px; border: 1.5px solid var(--ink); border-radius: 8px; background: #fff; }
.urlbox code { flex: 1; min-width: 0; font: 500 14px/1.35 var(--mono); overflow-wrap: break-word; }
.note { margin-top: 14px; font-size: 14px; line-height: 1.55; color: var(--muted); }
.note a { color: var(--ink-2); }
.mock { border: 1.5px solid var(--ink); border-radius: var(--r); background: #fff; overflow: hidden; }
.mock__bar { display: flex; align-items: center; gap: 8px; padding: 10px 12px; border-bottom: 1px solid var(--line); font: 500 11.5px/1 var(--mono); color: var(--muted); }
.mock__bar i { width: 8px; height: 8px; border-radius: 50%; background: var(--line-2); }
.mock__main { padding: 22px; background: var(--paper); min-height: 330px; position: relative; }
.mock__crumb { font: 500 12px/1.3 var(--mono); color: var(--muted); }
.mock__sub { font-size: 14px; color: var(--ink-2); margin: 4px 0 16px; }
.dialog { background: #fff; border: 1px solid var(--line-2); border-radius: 10px; padding: 18px; box-shadow: 0 20px 40px -28px rgba(18, 20, 23, 0.5); }
.dialog__title { font-weight: 650; font-size: 16px; margin-bottom: 14px; }
.field { margin-bottom: 12px; }
.field__label { display: block; font-size: 12.5px; color: var(--muted); margin-bottom: 5px; }
.inp, .sel { min-height: 38px; border: 1px solid var(--line-2); border-radius: 6px; padding: 9px 10px; font: 400 13px/1.35 var(--mono); overflow-wrap: anywhere; background: #fff; }
.inp.focus { border-color: var(--ink); box-shadow: 0 0 0 3px var(--signal-wash); }
.sel { display: flex; justify-content: space-between; font-family: var(--sans); }
.caret { display: inline-block; width: 1.5px; height: 1em; background: var(--ink); vertical-align: text-bottom; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.check { display: flex; align-items: center; gap: 8px; font-size: 13px; margin: 6px 0 12px; }
.check i { width: 15px; height: 15px; border: 1.5px solid var(--ink); border-radius: 3px; }
.mock.is-done .check i { background: var(--ink); }
.dialog .row { display: flex; justify-content: flex-end; gap: 8px; }
.dialog .b { font-size: 13px; font-weight: 600; padding: 8px 12px; border-radius: 6px; border: 1px solid var(--line-2); }
.dialog .b.solid { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.toast { position: static; margin-top: 14px; padding: 11px 14px; border-radius: 8px; background: var(--ink); color: var(--paper); font-size: 13.5px; opacity: 0; transform: translateY(8px); transition: opacity 0.4s var(--ease), transform 0.4s var(--ease); }
.mock.is-done .toast { opacity: 1; transform: none; }
.cli { padding: 18px; background: var(--night); color: var(--on-night); font: 400 13px/1.7 var(--mono); min-height: 330px; overflow-wrap: anywhere; }
.cli .p { color: var(--signal); }
.cli .c { color: #7fd3a1; }
.mock__caption { margin-top: 10px; font: 400 11.5px/1.45 var(--mono); color: var(--muted); }

/* ---------- hero: address and question ---------- */
.finder { position: relative; margin-top: 30px; display: grid; gap: 14px; padding: 16px; background: var(--sheet); border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: 8px 8px 0 -1px var(--paper-2), 8px 8px 0 0 var(--line-2); }
.finder__row { display: grid; gap: 6px; min-width: 0; }
.finder__label { font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--ink-2); }
.finder__label span { margin-left: 6px; text-transform: none; letter-spacing: 0; color: var(--muted); }
.finder input, .finder textarea, .handoff__f textarea { width: 100%; min-width: 0; font: inherit; font-size: 16px; line-height: 1.45; color: var(--ink); background: #fff; border: 1px solid var(--line-2); border-radius: 8px; padding: 12px 13px; }
.finder textarea, .handoff__f textarea { resize: vertical; min-height: 56px; }
.finder input::placeholder, .finder textarea::placeholder, .handoff__f textarea::placeholder { color: #80868c; }
.finder input:focus-visible, .finder textarea:focus-visible, .handoff__f textarea:focus-visible { outline: 2px solid var(--signal-ink); outline-offset: 1px; border-color: var(--ink); border-radius: 8px; }
.finder input[aria-invalid="true"] { border-color: var(--bad); box-shadow: 0 0 0 1px var(--bad); }
.finder__err { font-size: 14.5px; font-weight: 600; color: var(--bad); }
.finder__err::before { content: "! "; font-family: var(--mono); }
.finder .btn { width: 100%; }
.btn:disabled { opacity: 0.6; cursor: progress; transform: none; }
.finder__note { margin-top: 14px; max-width: 60ch; font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.search__q { position: relative; min-width: 0; display: grid; }
.suggest { position: absolute; z-index: 20; left: 0; right: 0; min-width: min(380px, calc(100vw - 48px)); top: calc(100% + 6px); background: #fff; color: var(--ink); border: 1px solid var(--line-2); border-radius: 10px; overflow: hidden; box-shadow: 0 20px 40px -20px rgba(0, 0, 0, 0.5); }
.suggest button { display: flex; justify-content: space-between; gap: 12px; width: 100%; text-align: left; padding: 11px 14px; border: 0; border-bottom: 1px solid var(--line); background: #fff; font: inherit; font-size: 15px; cursor: pointer; color: var(--ink); }
.suggest button:hover, .suggest button.on { background: var(--paper); }
.suggest small { font: 400 12px var(--mono); color: var(--muted); }
.examples { margin-top: 14px; font-size: 14.5px; color: var(--ink-2); display: flex; flex-wrap: wrap; gap: 6px 14px; }
.examples a { color: var(--ink); font-weight: 500; }

/* ---------- preview card and the handoff to the chat ---------- */
.result { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); scroll-margin-top: var(--nav-h); }
.result__grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 3vw, 40px); align-items: start; }
.pv { background: var(--sheet); border: 1.5px solid var(--ink); border-radius: var(--r); overflow: hidden; }
.pv__head { padding: 20px 22px 16px; border-bottom: 1px solid var(--line-2); }
.pv__title { margin: 12px 0 0; font-size: clamp(24px, 2.2vw, 30px); line-height: 1.12; letter-spacing: -0.02em; font-weight: 700; overflow-wrap: anywhere; }
.pv__title:focus, .pv__title:focus-visible { outline: none; } /* focused by the script (tabindex -1), not a control */
.pv__title--msg { font-size: clamp(20px, 1.8vw, 24px); line-height: 1.25; }
.pv__sub { margin-top: 6px; font: 500 13px/1.3 var(--mono); color: var(--muted); }
.pv__facts { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pv__facts > div { padding: 10px 14px 12px 22px; border-bottom: 1px solid var(--line-2); min-width: 0; }
.pv__facts > div:nth-child(even) { border-left: 1px solid var(--line-2); padding-left: 14px; }
.pv__facts dt { font: 400 10px/1.3 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.pv__facts dd { margin: 4px 0 0; font: 500 15px/1.3 var(--mono); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.pv__sec { padding: 16px 22px 18px; border-bottom: 1px solid var(--line-2); }
.pv__sec h3 { margin: 0 0 10px; font: 500 11.5px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); }
.pv__lights { list-style: none; margin: 0; padding: 0; display: grid; gap: 7px; }
.pv__lights li { display: grid; grid-template-columns: 78px minmax(0, 1fr); gap: 4px 12px; align-items: center; font-size: 15px; line-height: 1.35; }
.pv__lights .st { justify-self: start; }
.pv__lights small { grid-column: 2; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
/* report sections: the free point per section, then how many are locked (the bars hold no text) */
.pv__lead { margin: -2px 0 12px; font-size: 14px; line-height: 1.5; color: var(--ink-2); }
.pv__sects { list-style: none; margin: 0; padding: 0; }
.pv__sect { padding: 12px 0 13px; border-top: 1px dashed var(--line-2); min-width: 0; }
.pv__sect:first-child { border-top: 0; padding-top: 2px; }
.pv__stitle { margin: 0; font-size: 15.5px; line-height: 1.3; font-weight: 650; letter-spacing: -0.005em; overflow-wrap: anywhere; }
.pv__pts { margin: 6px 0 0; display: grid; gap: 6px; }
.pv__pts > div { min-width: 0; }
.pv__pts dt { font-size: 13px; line-height: 1.35; color: var(--muted); overflow-wrap: anywhere; }
.pv__pts dd { margin: 2px 0 0; font-size: 14.5px; line-height: 1.45; color: var(--ink); overflow-wrap: anywhere; }
.pv__ghost { display: grid; gap: 6px; margin-top: 10px; }
.pv__ghost i { display: block; height: 9px; width: 86%; border-radius: 3px; background: var(--line); }
.pv__ghost i + i { width: 58%; }
.pv__more { display: inline-flex; align-items: center; gap: 6px; margin-top: 8px; font: 500 12.5px/1.35 var(--mono); color: var(--ink-2); }
.pv__lock { display: inline-flex; color: var(--muted); }
.pv__lock svg { width: 14px; height: 14px; }
/* obstacles: a count and what it means; the chip says it in words, not only in colour */
.pv__hind { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 4px 12px; align-items: center; padding: 14px 22px 15px; border-bottom: 1px solid var(--line-2); }
.pv__hind .st { justify-self: start; }
.pv__hindt { font-size: 15px; line-height: 1.4; font-weight: 600; }
.pv__hind small { grid-column: 2; font-size: 13.5px; line-height: 1.45; color: var(--ink-2); }
.pv__pitch { font-size: 15px; line-height: 1.5; font-weight: 500; color: var(--ink); }
.pv__links { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 4px; }
.pv__help { font-size: 15px; line-height: 1.5; color: var(--ink-2); }

/* «Rapporten bygges»: the real steps, started on a timer and marked done only when the answer is here */
.build__lead { font: 400 14px/1.5 var(--sans); color: var(--ink-2); }
.build__bar { height: 4px; background: var(--paper-2); overflow: hidden; }
.build__fill { display: block; height: 100%; width: 100%; background: var(--signal); transform-origin: left center; transform: scaleX(var(--p, 0.03)); transition: transform 1.4s var(--ease), background 0.3s; }
.build.is-done .build__fill { background: var(--ok); }
.build__steps { list-style: none; margin: 0; padding: 10px 22px 8px; }
.build__steps li { display: grid; grid-template-columns: 16px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 9px 0; border-top: 1px dashed var(--line-2); font-size: 15px; line-height: 1.35; color: var(--muted); transition: color 0.25s; }
.build__steps li:first-child { border-top: 0; }
.build__steps i { width: 12px; height: 12px; justify-self: center; border-radius: 50%; border: 1.5px solid var(--line-2); }
.build__steps li.is-on { color: var(--ink-2); }
.build__steps li.is-on i { border-color: var(--signal-ink); background: linear-gradient(90deg, var(--signal) 50%, transparent 50%); }
.build__steps li.is-run { color: var(--ink); font-weight: 600; }
.build__steps li.is-run i { border-color: var(--signal); border-top-color: transparent; animation: spin 0.8s linear infinite; }
.build__steps li.is-done { color: var(--ink-2); }
.build__steps li.is-done i { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M3 6.2 5 8l4-4.2'/%3E%3C/svg%3E") center / 10px no-repeat; }
.build__lbl { overflow-wrap: anywhere; }
.build__st { font: 500 11px/1 var(--mono); letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted); white-space: nowrap; font-weight: 500; }
.build__steps li.is-on .build__st, .build__steps li.is-run .build__st { color: var(--signal-ink); }
.build__steps li.is-done .build__st { color: var(--ok); }
.build__foot { display: flex; justify-content: space-between; align-items: baseline; gap: 6px 16px; padding: 12px 22px 18px; border-top: 1px solid var(--line-2); background: var(--paper); }
.build__now { min-height: 1.5em; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }
.build__time { flex: none; font: 400 12px/1.4 var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.pv__cta { display: grid; gap: 10px; padding: 18px 22px 20px; background: var(--paper); border-bottom: 1px solid var(--line-2); }
.pv__cta .btn, .handoff .btn, .plan .btn, .pv__error .btn { white-space: normal; text-align: center; line-height: 1.25; padding-block: 12px; }
.pv__cta .arrow { justify-self: start; margin-top: 4px; }
.pv__open { font-size: 13.5px; line-height: 1.5; color: var(--ink-2); }
.pv__open a { font-weight: 600; }
.pv__terms { flex-basis: 100%; margin: 0; font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.pv__note { padding: 12px 22px 14px; font: 400 11.5px/1.5 var(--mono); color: var(--muted); }
.pv__wait { padding: 18px 22px 20px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.pv__wait .btn { margin-left: 4px; }
.pv__error { padding: 20px 22px 22px; display: grid; gap: 12px; }
.pv__error .pv__title { margin: 0; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 14px; }

.handoff { display: grid; gap: 12px; padding: 20px 22px 22px; background: #fff; border: 1.5px solid var(--ink); border-radius: var(--r); box-shadow: 8px 8px 0 -1px var(--paper), 8px 8px 0 0 var(--line-2); }
.handoff__title { margin: 2px 0 0; font-size: clamp(22px, 2vw, 28px); line-height: 1.15; font-weight: 700; letter-spacing: -0.02em; overflow-wrap: anywhere; }
.handoff__lead { font-size: 15.5px; line-height: 1.55; color: var(--ink-2); max-width: 56ch; }
.handoff__f { display: grid; gap: 10px; margin-top: 4px; }
.handoff__f .btn { width: 100%; }
.chatp__who { font: 400 12px/1.4 var(--mono); color: var(--muted); }
.chatp__hint { font-size: 13.5px; line-height: 1.5; color: var(--muted); }

/* ---------- prices ---------- */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 290px), 1fr)); gap: 16px; align-items: stretch; }
.plan { display: flex; flex-direction: column; background: var(--sheet); border: 1px solid var(--line-2); border-radius: var(--r); padding: 24px 24px 22px; }
.plan--featured { border: 1.5px solid var(--ink); box-shadow: 8px 8px 0 -1px var(--paper), 8px 8px 0 0 var(--line-2); }
.plan h3 { margin: 0; font-size: 21px; font-weight: 650; letter-spacing: -0.015em; }
.plan__price { margin: 14px 0 0; display: grid; gap: 6px; }
.plan__price b { font: 600 clamp(32px, 3vw, 42px)/1 var(--sans); letter-spacing: -0.035em; font-variant-numeric: tabular-nums; }
.plan__price span { font: 400 12.5px/1.45 var(--mono); color: var(--muted); }
.plan ul { list-style: none; margin: 18px 0 22px; padding: 0; border-top: 1px solid var(--line); }
.plan li { position: relative; padding: 9px 0 9px 22px; border-bottom: 1px solid var(--line); font-size: 15px; line-height: 1.45; color: var(--ink-2); }
.plan li::before { content: ""; position: absolute; left: 2px; top: 18px; width: 10px; height: 2px; background: var(--signal); }
.plan .btn { margin-top: auto; }
.plan__note { margin-top: 10px; font: 400 12px/1.45 var(--mono); color: var(--muted); }
.plans__code { margin-top: 20px; display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.plans__note { margin-top: 20px; max-width: 92ch; font-size: 14.5px; line-height: 1.6; color: var(--ink-2); }
.plans__note .arrow { margin-left: 4px; }
.notice { max-width: 92ch; margin: 0 0 22px; padding: 12px 16px; border: 1px dashed var(--ink-2); border-radius: 8px; background: var(--sheet); font-size: 14.5px; line-height: 1.55; color: var(--ink-2); }
.notice::before { content: "Merk: "; font-weight: 650; color: var(--ink); }

/* ---------- tools ---------- */
.toolgroups { columns: 3 300px; column-gap: 32px; }
.toolgroup { break-inside: avoid; margin: 0 0 28px; }
.toolgroup h3 { font: 500 12px/1.3 var(--mono); letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted); margin: 0 0 8px; padding-bottom: 8px; border-bottom: 1.5px solid var(--ink); }
.toolgroup ul { list-style: none; margin: 0; padding: 0; }
.toolgroup li { overflow-wrap: anywhere; display: grid; grid-template-columns: minmax(0, auto) minmax(0, 1fr); gap: 4px 12px; padding: 8px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
.toolgroup li code { font: 500 12.5px/1.5 var(--mono); color: var(--ink); }
.tools-more { margin-top: 8px; }
.tools-more summary { cursor: pointer; font-weight: 600; list-style: none; display: inline-flex; gap: 10px; align-items: center; padding: 12px 16px; border: 1.5px solid var(--ink); border-radius: 8px; }
.tools-more summary::-webkit-details-marker { display: none; }
.tools-more summary::after { content: "+"; font: 500 18px/1 var(--mono); }
.tools-more[open] summary::after { content: "–"; }
.tools-more[open] summary { margin-bottom: 28px; }

/* ---------- faq ---------- */
.faq { max-width: 920px; border-top: 1.5px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: grid; grid-template-columns: minmax(0, 1fr) 24px; gap: 16px; align-items: center; padding: 20px 0; cursor: pointer; list-style: none; font-size: 18.5px; font-weight: 600; letter-spacing: -0.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font: 400 22px/1 var(--mono); text-align: center; transition: transform 0.25s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { max-width: 68ch; padding: 0 48px 22px 0; color: var(--ink-2); font-size: 16px; line-height: 1.6; }

/* ---------- final ---------- */
.final { text-align: left; }
.final .wrap { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 40px; align-items: end; }
.final .ctas { margin-top: 0; justify-content: flex-end; }

/* ---------- footer: a title block ---------- */
.lfoot { border-top: 1.5px solid var(--ink); background: var(--sheet); padding: 0 0 40px; font-size: 14px; }
.titleblock { display: grid; grid-template-columns: 2fr repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line-2); }
.titleblock > div { padding: 16px 16px 18px; border-left: 1px solid var(--line-2); min-width: 0; }
.titleblock > div:first-child { border-left: 0; padding-left: 0; }
.titleblock span { display: block; font: 400 10px/1.3 var(--mono); letter-spacing: 0.07em; text-transform: uppercase; color: var(--muted); }
.titleblock b { display: block; margin-top: 4px; font: 500 13px/1.35 var(--mono); }
.titleblock .brand { font-size: 22px; }
.lfoot nav { display: flex; flex-wrap: wrap; gap: 6px 20px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.lfoot nav a { text-decoration: none; font-weight: 500; color: var(--ink-2); }
.lfoot nav a:hover { color: var(--ink); text-decoration: underline; }
.lfoot p { margin-top: 14px; max-width: 110ch; color: var(--muted); line-height: 1.6; font-size: 13.5px; }
/* seller details (_bunntekst.html, ehandelsloven § 8) */
.lfoot .bunntekst { margin-top: 20px; padding-top: 14px; border-top: 1px solid var(--line); font: 400 12.5px/1.6 var(--mono); color: var(--ink-2); }
.lfoot .bunntekst p { margin: 0; max-width: none; font: inherit; color: inherit; }
.lfoot .bunntekst .juridisk { display: block; padding: 6px 0 0; border: 0; }
.lfoot .bunntekst a { color: var(--ink-2); font-weight: 500; }

/* ---------- responsive ---------- */
@media (max-width: 1100px) {
  .lnav nav { display: none; }
  .lnav .nav-try { display: none; }
  .nav-toggle { display: grid; place-items: center; }
  .lnav .nav-cta { margin-left: auto; }
  .nav-toggle { margin-left: 12px; }
  .lnav.is-open nav { display: flex; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; padding: 10px var(--gutter) 18px; background: var(--paper); border-bottom: 1px solid var(--line); gap: 0; }
  .lnav.is-open nav a { padding: 13px 4px; border-bottom: 1px solid var(--line); border-radius: 0; font-size: 17px; }
  .lnav.is-open nav .nav-try-m { display: block; font-weight: 600; color: var(--ink); }
  .checks--grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero .wrap, .case-intro, .split, .flow, .trust, .setup, .final .wrap, .sec-head--split, .result__grid { grid-template-columns: minmax(0, 1fr); }
  .split > div > .muted, .split > div > .kv { grid-column: 1 / -1; }
  .split > div > .kv { order: 4; margin-top: 4px !important; }
  .final .ctas { justify-content: flex-start; }
  .demo__grid { grid-template-columns: minmax(0, 1fr); }
  .flowchart { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .node:nth-child(3) { border-left-width: 1px; }
  .node:nth-child(n + 3) { border-top-width: 0; }
  .node:nth-child(2)::after { display: none; }
  .out, .out--wide { grid-column: span 6; }
  .gather { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .gather li:nth-child(n) { padding-left: 0; border-left: 0; }
  .gather li:nth-child(2n) { padding-left: 16px; border-left: 1px solid var(--line); }
  .titleblock { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .titleblock > div:first-child { grid-column: 1 / -1; padding-left: 16px; border-bottom: 1px solid var(--line-2); }
  .titleblock > div:nth-child(2), .titleblock > div:nth-child(4) { border-left: 0; }
  .titleblock > div:nth-child(n + 2) { border-top: 0; }
  .titleblock > div:nth-child(2), .titleblock > div:nth-child(3) { border-bottom: 1px solid var(--line-2); }
}
@media (max-width: 990px) {
  .fig-d { display: none; }
  .fig-m { display: block; max-width: 560px; margin-inline: auto; }
  .pit .fig-d { display: block; }  /* no portrait variant: it scrolls sideways on phones */
}
@media (min-width: 1101px) {
  .demo__copy { position: sticky; top: calc(var(--nav-h) + 32px); }
}
@media (max-width: 760px) {
  :root { --gutter: 16px; --nav-h: 58px; }
  html { scroll-padding-bottom: 96px; }
  .hero .h1 em { display: block; }
  body { font-size: 16px; }
  .brand small { display: none; }
  .lnav .nav-cta .btn { display: none; }
  .lnav .nav-cta .btn.nav-chat { display: inline-flex; }
  .ctas .btn { flex: 1 1 100%; }
  .facts .wrap { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .fact { padding: 20px 14px 18px; }
  .fact:nth-child(odd) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .tb { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .tb > div:nth-child(3) { border-left: 0; }
  .tb > div:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
  .flowchart { grid-template-columns: minmax(0, 1fr); }
  .node { border-left-width: 1px; border-top-width: 0; }
  .node:first-child { border-top-width: 1px; }
  .node:not(:last-child)::after { display: block; right: auto; left: 22px; top: auto; bottom: -13px; transform: rotate(90deg); }
  .node:nth-child(2)::after { display: block; }
  .benefits { grid-template-columns: minmax(0, 1fr); }
  .benefit, .benefit:nth-child(even) { padding: 24px 0; border-left: 0; }
  .roles, .others { grid-template-columns: minmax(0, 1fr); }
  .role { padding: 22px 18px 20px; }
  .out, .out--wide { grid-column: 1 / -1; }
  .infra { grid-template-columns: minmax(0, 1fr); }
  .infra__col { border-left: 0; border-top: 1px solid var(--line-2); }
  .infra__col:first-child { border-top: 0; }
  .risk-table, .risk-table tbody, .risk-table tr, .risk-table td, .risk-table tbody th { display: block; width: 100% !important; }
  .risk-table tbody th { padding: 4px 0; border: 0; }
  .risk-table td.next::before { content: attr(data-label); display: block; margin: 6px 0 2px; font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
  .risk-table thead { display: none; }
  .risk-table tr { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .risk-table td { padding: 4px 0; border: 0; }
  .risk-table td.lvl { padding: 8px 0; }
  .quote dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .quote dl > div:nth-child(3) { border-left: 0; }
  .quote dl > div:nth-child(n + 3) { border-top: 1px solid var(--line-2); }
  .flow__step { padding: 20px 18px 18px; }
  .compare table { min-width: 0; }
  .compare thead { display: none; }
  .compare tbody, .compare tr, .compare th, .compare td { display: block; width: 100% !important; }
  .compare tr { padding: 14px 0; border-bottom: 1px solid var(--night-line); }
  .compare th, .compare td { border: 0; padding: 4px 0; }
  .compare tbody th { font-size: 16px; margin-bottom: 4px; }
  .compare td::before { content: attr(data-label); display: block; font: 500 10.5px/1.4 var(--mono); letter-spacing: 0.06em; text-transform: uppercase; color: var(--on-night-2); opacity: 0.8; }
  .compare td.pk { padding: 8px 10px; margin-top: 4px; }
  .finder { padding: 12px; box-shadow: none; }
  .handoff { padding: 18px 16px 20px; box-shadow: none; }
  .pv__head, .pv__sec, .pv__cta, .pv__note, .pv__wait, .pv__error, .pv__hind, .build__steps, .build__foot { padding-left: 16px; padding-right: 16px; }
  .pv__facts > div { padding-left: 16px; }
  .pv__lights li { grid-template-columns: 70px minmax(0, 1fr); }
  .early__ctas .btn { flex: 1 1 100%; }
  .plan { padding: 20px 18px; }
  .plan--featured { box-shadow: none; }
  .early, .other { grid-template-columns: minmax(0, 1fr); }
  .seg { display: flex; width: 100%; }
  .seg button { flex: 1; padding: 12px 8px; font-size: 14px; }
  .faq details p { padding-right: 0; }
  .case-cta p { margin-right: 0; flex: 1 1 100%; }
  .case-cta .btn { flex: 1 1 100%; }
  .sheet { box-shadow: none; }
  .hero .dwg--hero { display: none !important; }
  .pit__scroll > svg { min-width: 900px; }
  .swipe-note { display: inline; }
  .tools > .tool:nth-child(n + 8) { display: none; }
  .tools__more { display: block; }
  .gather li { padding: 12px 10px 12px 0; gap: 4px; }
  .gather li:nth-child(2n) { padding-left: 10px; }
  .gather b, .compute b, .made b { font-size: 15px; }
  .gather span { font-size: 13.5px; }
  .gather small { font-size: 10.5px; }
  .flow__head p { grid-column: 1 / -1; }
  .out__img:has(.mock-check) { aspect-ratio: auto; }
  .kv > div { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dd { text-align: left; }
  .quote dl > div:first-child { grid-column: 1 / -1; border-bottom: 1px solid var(--line-2); }
  .quote dl > div:nth-child(2) { border-left: 0; }
  .urlbox { flex-wrap: wrap; }
  .urlbox code { flex: 1 1 100%; }
  .urlbox .btn { width: 100%; }
  .checks--grid { grid-template-columns: minmax(0, 1fr); }
  .house { grid-template-columns: minmax(0, 1fr); grid-template-areas: "head" "plan" "sect" "text" "nums"; }
  .hero .dwg--hero-m { display: block !important; }
  .titleblock { grid-template-columns: minmax(0, 1fr); }
  .titleblock > div { border-left: 0 !important; border-bottom: 1px solid var(--line-2); padding-left: 0 !important; }
  .titleblock > div:first-child { padding-left: 0; }
}

@media (max-width: 420px) {
  .toolgroup li { grid-template-columns: minmax(0, 1fr); gap: 2px; }
}
@media (max-height: 560px) {
  .mcta { display: none !important; }
  .lnav { position: relative; }
}

/* sticky mobile CTA after the hero */
.mcta { display: none; }
@media (max-width: 760px) {
  .mcta { display: flex; position: fixed; z-index: 40; left: 12px; right: 12px; bottom: max(12px, env(safe-area-inset-bottom)); gap: 8px; transform: translateY(140%); transition: transform 0.35s var(--ease); }
  .mcta.is-on { transform: none; }
  .mcta .btn { flex: 1; min-height: 50px; box-shadow: 0 14px 30px -12px rgba(18, 20, 23, 0.55); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-delay: 0s !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .js .dwg .draw { stroke-dashoffset: 0; }
  .js .dwg .pop { opacity: 1; }
}
@media print {
  .lnav, .mcta, .seg, .composer, .handoff { display: none !important; }
  .js .reveal, .js .demo .chat__item, .js .dwg .pop { opacity: 1 !important; transform: none !important; }
  .js .dwg .draw { stroke-dashoffset: 0 !important; }
}
