/* One stylesheet, no framework, no webfont request.
 *
 * The buyer opens this standing in a street on rural 4G. Every kilobyte is a
 * kilobyte they wait for, so the type is the system stack and the only image
 * that loads above the fold is the product itself.
 *
 * Two themes, both from the design system: light, the way a public body's own
 * pages look, and dark, the app's own interface. The device decides until the
 * visitor picks one with the button in the header. Every colour below is a
 * variable, so a theme is one block of values and nothing else. */

:root {
  color-scheme: light;
  --page: #f8fafc;
  --band: #f1f5f9;          /* bg light */
  --surface: #ffffff;       /* panel light */
  --input: #f1f5f9;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --ink: #0f172a;           /* text-primary */
  --ink-2: #334155;         /* slate-300: secondary ink */
  --muted: #475569;         /* slate-400 */
  --dim: #64748b;           /* slate-500 */
  --brand: #e11d48;         /* brand-500 */
  --brand-hover: #be123c;
  --brand-ink: #be123c;     /* brand-400: rose as text */
  --brand-soft: #ffe4e6;
  --green-ink: #047857;     /* cat-green */
  --green-soft: #dcfce7;
  --chip-out: #f0fdf4;
  --chip-out-border: #bbf7d0;
  --chip-out-ink: #065f46;
  --header: #ffffff;
  --hero: #ffffff;
  --shadow: rgba(15, 23, 42, 0.14);
  --shadow-strong: rgba(15, 23, 42, 0.28);
  /* the band that shows the product, and the calculator's answer: dark in
   * both themes, a step deeper than the page in dark */
  --feature: #0b0f19;
  --feature-panel: #151c2c;
  --feature-border: #2a344a;
  --foot: #0b0f19;
  /* category hues, one rung per theme like the app */
  --c-red: #dc2626; --c-green: #047857; --c-purple: #6d28d9;
  --c-yellow: #a16207; --c-orange: #b45309; --c-blue: #2563eb;
  /* the hero map, as on the light app icon */
  --map-land: #eef1f5; --map-street: #ffffff; --map-park: #cdebd8;
  --map-water: #cfe2f6; --map-route: #0f172a;
  --radius: 14px;
  --wrap: 1140px;
  /* Names the checked-in legal documents use in their own <style> blocks. */
  --panel: var(--surface);
  --panel-2: var(--band);
  --green: var(--green-ink);
}

/* Dark: the app's dark palette. Declared twice, once for a device that asks
 * for dark and once for a visitor who picked it, because CSS cannot share a
 * block between a media query and an attribute selector. Keep them equal. */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    color-scheme: dark;
    --page: #0b0f19; --band: #0f1522; --surface: #151c2c; --input: #0b0f19;
    --border: #2a344a; --border-strong: #3a4660;
    --ink: #f8fafc; --ink-2: #cbd5e1; --muted: #94a3b8; --dim: #94a3b8;
    --brand: #e11d48; --brand-hover: #be123c; --brand-ink: #fb7185; --brand-soft: rgba(225, 29, 72, 0.16);
    --green-ink: #34d399; --green-soft: rgba(16, 185, 129, 0.14);
    --chip-out: rgba(16, 185, 129, 0.1); --chip-out-border: rgba(52, 211, 153, 0.35); --chip-out-ink: #6ee7b7;
    --header: #0b0f19; --hero: #0b0f19; --shadow: rgba(0, 0, 0, 0.45); --shadow-strong: rgba(0, 0, 0, 0.6);
    --feature: #020617; --feature-panel: #151c2c; --feature-border: #2a344a; --foot: #020617;
    --c-red: #ef4444; --c-green: #10b981; --c-purple: #a78bfa;
    --c-yellow: #eab308; --c-orange: #f59e0b; --c-blue: #3b82f6;
    --map-land: #151c2c; --map-street: #26314a; --map-park: #173a30;
    --map-water: #1a3352; --map-route: #cbd5e1;
  }
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --page: #0b0f19; --band: #0f1522; --surface: #151c2c; --input: #0b0f19;
  --border: #2a344a; --border-strong: #3a4660;
  --ink: #f8fafc; --ink-2: #cbd5e1; --muted: #94a3b8; --dim: #94a3b8;
  --brand: #e11d48; --brand-hover: #be123c; --brand-ink: #fb7185; --brand-soft: rgba(225, 29, 72, 0.16);
  --green-ink: #34d399; --green-soft: rgba(16, 185, 129, 0.14);
  --chip-out: rgba(16, 185, 129, 0.1); --chip-out-border: rgba(52, 211, 153, 0.35); --chip-out-ink: #6ee7b7;
  --header: #0b0f19; --hero: #0b0f19; --shadow: rgba(0, 0, 0, 0.45); --shadow-strong: rgba(0, 0, 0, 0.6);
  --feature: #020617; --feature-panel: #151c2c; --feature-border: #2a344a; --foot: #020617;
  --c-red: #ef4444; --c-green: #10b981; --c-purple: #a78bfa;
  --c-yellow: #eab308; --c-orange: #f59e0b; --c-blue: #3b82f6;
  --map-land: #151c2c; --map-street: #26314a; --map-park: #173a30;
  --map-water: #1a3352; --map-route: #cbd5e1;
}

/* The light logo has a navy wordmark, the dark one a white one. */
.on-dark { display: none !important; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .on-light { display: none !important; }
  :root:not([data-theme="light"]) .on-dark { display: block !important; }
}
:root[data-theme="dark"] .on-light { display: none !important; }
:root[data-theme="dark"] .on-dark { display: block !important; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--page);
  color: var(--ink);
  font: 16px/1.6 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
  /* A short page (contact, a legal document) still ends with the footer at
   * the bottom of the window, not with a strip of page under it. */
  min-height: 100vh;
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
}
body > main { flex: 1 0 auto; }
a { color: inherit; }
img { max-width: 100%; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }

/* --- buttons ---------------------------------------------------------- */

.btn {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 13px 22px; border-radius: 11px;
  font-weight: 650; font-size: 15px; text-decoration: none;
  border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 2px solid var(--brand-ink); outline-offset: 2px; }
.btn-primary { background: var(--brand); color: #fff; }
.btn-primary:hover { background: var(--brand-hover); }
.btn-ghost { background: var(--surface); border-color: var(--border); color: var(--ink); }
.btn-ghost:hover { border-color: var(--border-strong); background: var(--band); }
.btn-light { background: #fff; color: #0f172a; }
.btn-light:hover { background: #ffe4e6; }
.btn-outline-light { border-color: rgba(255, 255, 255, 0.55); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-sm { padding: 9px 16px; font-size: 14px; }

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

/* Every page's header, the hand-written legal documents' included. */
body > header {
  position: sticky; top: 0; z-index: 10;
  background: var(--header); border-bottom: 1px solid var(--border);
}
.bar { display: flex; align-items: center; gap: 22px; height: 68px; }
.logo { display: flex; flex: none; align-items: center; gap: 10px; font-weight: 800; letter-spacing: -0.01em; text-decoration: none; }
/* The legal documents still draw the logo as a tile and a name. */
.logo .mark {
  width: 30px; height: 30px; border-radius: 9px;
  background: var(--band); border: 1px solid var(--border);
  display: grid; place-items: center;
}
.logo .mark svg { width: 16px; height: 16px; }
.logo img { height: 32px; width: auto; display: block; }
.bar nav { margin-left: auto; display: flex; gap: 22px; font-size: 14.5px; }
.bar nav a { color: var(--ink-2); text-decoration: none; }
.bar nav a:hover { color: var(--brand-ink); }
.langs { display: flex; gap: 8px; font-size: 12px; letter-spacing: 0.04em; }
.langs a { color: var(--dim); text-decoration: none; }
.langs a[aria-current="true"] { color: var(--ink); font-weight: 700; }
.theme-toggle {
  flex: none; display: grid; place-items: center; width: 38px; height: 38px; padding: 0;
  border-radius: 10px; border: 1px solid var(--border); background: var(--surface); color: var(--ink-2); cursor: pointer;
}
.theme-toggle:hover { border-color: var(--border-strong); color: var(--ink); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .sun { display: none; }
.theme-toggle[aria-pressed="true"] .sun { display: block; }
.theme-toggle[aria-pressed="true"] .moon { display: none; }

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

.hero { background: var(--hero); padding: 64px 0 72px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 10px; margin-bottom: 20px;
  background: var(--brand-soft); color: var(--brand-ink);
  border-radius: 999px; font-size: 13px; font-weight: 700;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); }
h1, h2 { text-wrap: balance; }
h1 {
  margin: 0 0 20px;
  font-size: clamp(34px, 4.6vw, 54px); line-height: 1.06;
  letter-spacing: -0.03em; font-weight: 820;
}
/* Rose headline words: brand-500 on white, the lighter rose on dark, where
 * brand-500 would fall under 4.5:1. */
h1 em { font-style: normal; color: var(--brand); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) h1 em { color: var(--brand-ink); } }
:root[data-theme="dark"] h1 em { color: var(--brand-ink); }
.lede { font-size: 18.5px; color: var(--muted); margin: 0 0 30px; max-width: 33em; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.facts { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-wrap: wrap; gap: 10px 22px; font-size: 14px; color: var(--ink-2); font-weight: 600; }
.facts li { display: flex; align-items: center; gap: 7px; }
.facts svg { width: 18px; height: 18px; fill: none; stroke: var(--green-ink); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }

.hero-visual { position: relative; height: 600px; }
.map { position: absolute; inset: 0; border-radius: 28px; overflow: hidden; border: 1px solid var(--border); }
.map svg { width: 100%; height: 100%; display: block; }
.m-land { fill: var(--map-land); }
.m-park { fill: var(--map-park); }
.m-water { stroke: var(--map-water); }
.m-street { stroke: var(--map-street); }
.m-route { stroke: var(--map-route); }
.phone {
  position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%);
  width: 252px; height: auto;
  border: 8px solid #0f1626; border-radius: 34px;
  box-shadow: 0 0 0 1px var(--feature-border), 0 30px 60px var(--shadow-strong), 0 8px 18px var(--shadow);
}
.float {
  position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 14px 34px var(--shadow);
  font-size: 13px;
}
.float b { display: block; font-size: 13.5px; }
.float small { display: block; color: var(--dim); font-size: 12px; }
.float-change { left: -28px; top: 64px; width: 238px; padding: 14px; }
.float-head { display: flex; gap: 10px; align-items: center; margin-bottom: 10px; }
.pin {
  flex: none; width: 28px; height: 28px; border-radius: 50%; border: 2px solid #fff;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.25); background: #dc2626;
  color: #fff; font-weight: 700; font-size: 12.5px; display: grid; place-items: center;
}
.badge { display: inline-block; padding: 3px 8px; border-radius: 6px; background: var(--brand); color: #fff; font-size: 10.5px; font-weight: 700; letter-spacing: 0.05em; }
.float-change p { margin: 8px 0 0; color: var(--ink-2); }
.float-export { right: -20px; bottom: 70px; display: flex; gap: 12px; align-items: center; padding: 12px 16px 12px 12px; }
.float-export svg { width: 36px; height: 36px; padding: 8px; border-radius: 10px; background: var(--green-soft); fill: none; stroke: var(--green-ink); stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }

/* --- sections --------------------------------------------------------- */

section { padding: 88px 0; }
.band { background: var(--band); }
.band-white { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.kicker { margin: 0 0 10px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--brand-ink); }
h2 { margin: 0 0 14px; font-size: clamp(27px, 3.3vw, 38px); line-height: 1.15; letter-spacing: -0.024em; font-weight: 800; }
.sub { color: var(--muted); margin: 0 0 18px; max-width: 44em; font-size: 17px; }
section > .wrap > .sub:last-of-type { margin-bottom: 40px; }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }

/* services */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.service {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px;
  transition: border-color 0.15s, transform 0.15s;
}
.c-red { --c: var(--c-red); } .c-green { --c: var(--c-green); } .c-purple { --c: var(--c-purple); }
.c-yellow { --c: var(--c-yellow); } .c-orange { --c: var(--c-orange); } .c-blue { --c: var(--c-blue); }
.service:hover { border-color: color-mix(in srgb, var(--c) 45%, var(--border)); transform: translateY(-2px); }
.ico {
  display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; margin-bottom: 18px;
  background: color-mix(in srgb, var(--c) 13%, var(--surface)); color: var(--c);
}
.ico svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.service h3 { margin: 0 0 8px; font-size: 18px; letter-spacing: -0.01em; }
.service p { margin: 0; color: var(--muted); font-size: 15px; }

/* the product band: the app's own interface colours, in both themes */
.dark { background: var(--feature); color: #fff; border-top: 1px solid var(--feature-border); border-bottom: 1px solid var(--feature-border); }
.dark .kicker { color: #fb7185; }
.dark .sub { color: #94a3b8; }
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps li { background: var(--feature-panel); border: 1px solid var(--feature-border); border-radius: 18px; padding: 28px; }
.steps .num { display: block; font-size: 44px; font-weight: 820; letter-spacing: -0.03em; color: #fb7185; line-height: 1; margin-bottom: 18px; }
.steps h3 { margin: 0 0 8px; font-size: 19px; }
.steps p { margin: 0; color: #cbd5e1; font-size: 15px; }

/* change report: a printed page, so white in both themes, as in the app */
.paper-wrap { margin: 0; }
.paper {
  background: #fff; color: #0f172a; border-radius: 14px; padding: 26px;
  border: 1px solid #e2e8f0;
  box-shadow: 0 24px 50px var(--shadow);
  font-size: 14.5px; transform: rotate(-1.2deg);
}
.paper-band { height: 7px; background: #e11d48; border-radius: 3px; margin-bottom: 20px; }
.paper h4 { margin: 0; font-size: 12px; letter-spacing: 0.08em; color: #334155; }
.paper .verdict { color: #be123c; margin-left: 6px; }
.paper .since { color: #64748b; font-size: 13px; margin: 6px 0 12px; }
.paper ul { margin: 0; padding-left: 18px; }
.paper li { margin-bottom: 5px; }
.paper .caveat { margin-top: 14px; padding-top: 12px; border-top: 1px solid #e2e8f0; color: #be123c; font-size: 13px; }
.paper-wrap figcaption { margin-top: 18px; font-size: 13px; color: var(--dim); }

/* GIS */
.split-gis { grid-template-columns: 0.95fr 1.05fr; }
.gis {
  display: grid; grid-template-columns: auto auto auto; justify-content: space-between; gap: 18px; align-items: center;
  background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 30px 26px;
}
.gis-col { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.gis-label { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--dim); margin-bottom: 4px; }
.chip { white-space: nowrap; padding: 7px 12px; border-radius: 9px; background: var(--band); border: 1px solid var(--border); font-size: 13.5px; font-weight: 600; color: var(--ink-2); }
.gis-col:last-child { align-items: flex-end; }
.gis-col:last-child .chip { background: var(--chip-out); border-color: var(--chip-out-border); color: var(--chip-out-ink); }
.gis-app { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 18px 14px; border-radius: 16px; background: var(--brand-soft); font-size: 12px; font-weight: 700; color: var(--brand-ink); position: relative; }
.gis-app::before, .gis-app::after { content: ""; position: absolute; top: 50%; width: 18px; border-top: 2px dotted var(--dim); }
.gis-app::before { right: 100%; }
.gis-app::after { left: 100%; }

/* privacy */
.trust { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.trust li { display: flex; gap: 14px; align-items: flex-start; background: var(--page); border: 1px solid var(--border); border-radius: 14px; padding: 16px 18px; }
.t-ico { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border); color: var(--green-ink); }
.t-ico svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.trust b { display: block; font-size: 15.5px; }
.trust span { color: var(--muted); font-size: 14px; }
.note { margin: 20px 0 0; font-size: 14px; color: var(--muted); }
.note a { color: var(--brand-ink); }

/* calculator */
.calc { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.calc-inputs, .calc-out { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px; }
.calc-row { padding: 12px 0; border-bottom: 1px solid var(--border); }
.calc-row:first-child { padding-top: 0; }
.calc-row:last-child { border-bottom: 0; padding-bottom: 0; }
.calc-row label { display: block; font-size: 14px; font-weight: 650; margin-bottom: 8px; }
.calc-input { display: flex; align-items: center; gap: 8px; }
.calc-input input {
  width: 92px; padding: 9px 12px; border-radius: 10px;
  border: 1px solid var(--border); background: var(--input); color: var(--ink);
  font: inherit; font-size: 15px; font-weight: 650;
}
.calc-input input:focus { outline: none; border-color: var(--brand); }
.calc-unit { font-size: 13px; color: var(--dim); }
.calc-row input[type=range] { width: 100%; margin-top: 10px; accent-color: var(--brand); }
.calc-note { font-size: 12.5px; color: var(--dim); margin: 8px 0 0; line-height: 1.5; }
.calc-out { background: var(--feature); border-color: var(--feature-border); color: #fff; position: sticky; top: 88px; }
.calc-out .calc-note { color: #94a3b8; }
.calc-bars { display: grid; gap: 12px; margin-bottom: 22px; }
.calc-bar-label { font-size: 12.5px; color: #94a3b8; display: block; margin-bottom: 5px; }
.calc-track { background: var(--feature-panel); border-radius: 999px; height: 10px; overflow: hidden; }
.calc-fill { height: 100%; border-radius: 999px; transition: width 0.18s ease; }
.calc-fill.worse { background: #e11d48; }
.calc-fill.better { background: #10b981; }
.calc-out h3 { margin: 0 0 14px; font-size: 15px; }
.calc-figures { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-bottom: 8px; }
.calc-label { display: block; font-size: 12.5px; color: #94a3b8; }
.calc-big { font-size: 26px; font-weight: 820; letter-spacing: -0.02em; }
.calc-big.accent { color: #34d399; }
.calc-out .btn { margin-top: 16px; }
.calc-disclaimer { margin: 18px 0 0; font-size: 13px; color: var(--dim); max-width: 60em; }

/* pricing */
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; align-items: stretch; }
.price { background: var(--page); border: 1px solid var(--border); border-radius: 18px; padding: 28px; position: relative; }
.price.featured { background: var(--surface); border: 2px solid var(--brand); box-shadow: 0 20px 40px rgba(225, 29, 72, 0.12); }
.flag { position: absolute; top: -13px; left: 26px; background: var(--brand); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; }
.price .tier { font-size: 13px; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; text-transform: uppercase; }
.price .amount { font-size: 38px; font-weight: 820; margin: 10px 0 2px; letter-spacing: -0.02em; }
.price .per { color: var(--dim); font-size: 13.5px; }
.price ul { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--border); }
.price li { color: var(--ink-2); font-size: 15px; padding: 5px 0 5px 26px; position: relative; }
.price li::before {
  content: ""; position: absolute; left: 2px; top: 11px; width: 12px; height: 6px;
  border-left: 2.2px solid var(--green-ink); border-bottom: 2.2px solid var(--green-ink); transform: rotate(-45deg);
}

/* pilot: the brand rose in both themes, white on it at 4.7:1 */
.pilot { padding: 0 0 88px; background: var(--surface); }
.pilot-card {
  display: grid; grid-template-columns: 1.4fr auto; gap: 40px; align-items: center;
  background: #e11d48; color: #fff; border-radius: 26px; padding: 48px;
  position: relative; overflow: hidden;
}
.pilot-card::after {
  content: ""; position: absolute; right: -60px; top: -60px; width: 240px; height: 240px; border-radius: 50%;
  border: 40px solid rgba(255, 255, 255, 0.08);
}
.pilot-card h2 { color: #fff; }
.pilot-card p { margin: 0; color: #fff; font-size: 17px; max-width: 40em; }
.pilot-card .cta-row { position: relative; z-index: 1; }

/* faq */
.home-faq { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.qa { display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 0 20px; }
.faq-item summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 650; display: flex; justify-content: space-between; gap: 16px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; color: var(--brand-ink); font-size: 22px; line-height: 1; font-weight: 500; }
.faq-item[open] summary::after { content: "\2212"; }
.faq-item p { margin: 0 0 18px; color: var(--muted); font-size: 15px; }

/* footer: dark in both themes */
footer { background: var(--foot); color: #94a3b8; padding: 56px 0 28px; font-size: 14px; border-top: 1px solid var(--feature-border); }
.foot-grid { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-grid img { height: 28px; width: auto; display: block; margin-bottom: 14px; }
.foot-grid p { margin: 0 0 6px; }
.foot-grid a { color: #cbd5e1; }
.foot-links { display: grid; grid-template-columns: repeat(2, auto); gap: 8px 40px; }
.foot-links a { text-decoration: none; }
.foot-links a:hover { color: #fff; }
.foot-note { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--feature-border); font-size: 13px; color: #94a3b8; }

/* --- the other pages --------------------------------------------------- */

.page-head { padding-top: 56px; padding-bottom: 8px; }
.page-head h1 { font-size: clamp(30px, 4vw, 44px); margin: 0 0 12px; }
.page-head + section { padding-top: 40px; }
/* Narrow reading columns, aligned with the heading above them. */
.prose > * { max-width: 46em; }
.cta-note { font-size: 13px; color: var(--dim); margin-top: 16px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.cards.two { grid-template-columns: repeat(2, 1fr); }
.card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; }
.card h3 { margin: 0 0 8px; font-size: 17px; }
.card p { margin: 0 0 6px; color: var(--muted); font-size: 15px; }
.card a { color: var(--brand-ink); font-weight: 650; }

.cases { display: grid; gap: 18px; }
.case { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 26px 28px; }
.case h3 { margin: 0 0 16px; font-size: 19px; letter-spacing: -0.015em; }
.case dl { margin: 0; display: grid; gap: 6px; }
.case dt { font-size: 12px; letter-spacing: 0.06em; text-transform: uppercase; font-weight: 800; color: var(--dim); margin-top: 8px; }
.case dt:first-child { margin-top: 0; }
.case dt.bad { color: var(--brand-ink); }
.case dt.good { color: var(--green-ink); }
.case dd { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }

.faq { display: grid; gap: 10px; }
.faq > * { max-width: 52em; }

/* The legal documents: their own <style> sets the layout, this the colours. */
.doc { color: var(--ink); }
.doc a { color: var(--brand-ink); }
.back { color: var(--muted); }

/* --- narrow screens ----------------------------------------------------- */

@media (max-width: 1000px) {
  .bar nav { display: none; }
  .theme-toggle { margin-left: auto; }
  .hero-grid, .split, .split-gis, .home-faq { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { height: 560px; max-width: 520px; width: 100%; margin: 0 auto; }
  .float-change { left: 10px; }
  .float-export { right: 10px; }
  .services, .steps, .prices, .cards { grid-template-columns: 1fr 1fr; }
  .calc { grid-template-columns: 1fr; }
  .calc-out { position: static; }
  .pilot-card { grid-template-columns: 1fr; padding: 36px; }
}

@media (max-width: 640px) {
  .wrap { padding: 0 16px; }
  .bar { height: 60px; gap: 10px; }
  .logo img { height: 26px; }
  .theme-toggle { width: 34px; height: 34px; }
  .bar .btn-sm { display: none; }
  .hero { padding: 36px 0 48px; }
  .lede { font-size: 17px; }
  .hero-visual { height: 500px; }
  .phone { width: 210px; }
  .float-change { top: 18px; left: 8px; width: 210px; padding: 12px; }
  .float-export { bottom: 18px; right: 8px; }
  section { padding: 60px 0; }
  .services, .steps, .prices, .cards, .cards.two { grid-template-columns: 1fr; }
  .page-head { padding-top: 36px; }
  .case { padding: 22px 20px; }
  .gis { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .gis-col, .gis-col:last-child { align-items: center; }
  .gis-app::before, .gis-app::after { display: none; }
  .calc-figures { grid-template-columns: 1fr; }
  .calc-inputs, .calc-out { padding: 20px 18px; }
  .prices { gap: 26px; }
  .pilot { padding-bottom: 60px; }
  .pilot-card { padding: 28px 22px; border-radius: 20px; }
  .foot-links { grid-template-columns: 1fr 1fr; gap: 8px 20px; }
}

/* The legal documents' header holds only a way back to the site. On a phone
 * the section links go, that one stays. */
@media (max-width: 1000px) {
  .bar nav:has(> .back) { display: flex; }
}
