/* heyletsfix.com — the landing page. One stylesheet for both languages.
   Tokens and type are the app's (civi_web_app/src/static/app.css), so the
   landing and the app read as one product: road-marking yellow, ink, the
   state colours of a case. Phone first; wide screens get two columns. */
:root {
  --bg: #eceae4; --surface: #fbfaf7; --surface-2: #f2f0ea; --ink: #1c1d20; --ink-2: #55575d; --line: #d9d6cd;
  --accent: #f2c230; --accent-ink: #1c1d20; --map-bg: #e4e1d8; --road: #ffffff;
  --s-open: #d9481e; --s-ack: #c98a00; --s-claim: #2563c9; --s-fixed: #1f8a55;
  --asphalt: #8a8b8f; --asphalt-2: #7b7c80; --hole: #3a3b3f; --patch: #5e5f63;
  --shadow: 0 10px 30px rgba(28, 29, 32, .16);
  --display: "Barlow Condensed", "Roboto Condensed", "Arial Narrow", sans-serif;
  --body: "Barlow", "Roboto", "Segoe UI", Arial, sans-serif;
  --wrap: 1100px; color-scheme: light;
}
/* Dark: the phone's setting, unless the visitor picked a theme (theme.js sets
   data-theme before the first paint). */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #121315; --surface: #1c1d21; --surface-2: #25272c; --ink: #ecebe6; --ink-2: #a6a7ad; --line: #34363c;
    --accent-ink: #16171a; --map-bg: #1b1c20; --road: #474a51;
    --s-open: #ff6a3d; --s-ack: #f0b232; --s-claim: #5b95ff; --s-fixed: #3dbb7d;
    --asphalt: #5f6064; --asphalt-2: #55565a; --hole: #2a2b2e; --patch: #47484c;
    --shadow: 0 10px 30px rgba(0, 0, 0, .5); color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #121315; --surface: #1c1d21; --surface-2: #25272c; --ink: #ecebe6; --ink-2: #a6a7ad; --line: #34363c;
  --accent-ink: #16171a; --map-bg: #1b1c20; --road: #474a51;
  --s-open: #ff6a3d; --s-ack: #f0b232; --s-claim: #5b95ff; --s-fixed: #3dbb7d;
  --asphalt: #5f6064; --asphalt-2: #55565a; --hole: #2a2b2e; --patch: #47484c;
  --shadow: 0 10px 30px rgba(0, 0, 0, .5); color-scheme: dark;
}
/* Serbian in Cyrillic: Barlow has no Cyrillic, so the stacks lead with Roboto. */
html[lang="sr-Cyrl"] { --display: "Roboto Condensed", "Arial Narrow", sans-serif; --body: "Roboto", "Segoe UI", Arial, sans-serif; }

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 400 17px/1.55 var(--body); -webkit-text-size-adjust: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--display); font-weight: 700; letter-spacing: .2px; line-height: 1.08; margin: 0; }
h2 { font-size: clamp(30px, 6vw, 46px); }
h3 { font-size: 24px; }
p { margin: 0; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--ink-2); }
.gap { margin-top: 14px; }
.skip { position: absolute; left: -999px; }
.skip:focus { left: 16px; top: 8px; z-index: 99; background: var(--accent); color: var(--accent-ink); padding: 6px 10px; border-radius: 8px; }
:focus-visible { outline: 3px solid var(--s-claim); outline-offset: 2px; }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--display); font-weight: 700; font-size: 22px; white-space: nowrap; }
.brand-mark { width: 44px; height: 28px; flex: none; background: url(/static/icons/hey.svg) center / contain no-repeat; transform: rotate(-4deg); }
.brand-mark.hello { animation: brand-hello .9s cubic-bezier(.3, .7, .3, 1) .3s both; }
@keyframes brand-hello {
  0%   { opacity: 0; transform: scale(.3) rotate(-22deg); }
  45%  { opacity: 1; transform: scale(1.18) rotate(2deg); }
  65%  { transform: scale(.94) rotate(-7deg); }
  82%  { transform: scale(1.03) rotate(-3deg); }
  100% { transform: scale(1) rotate(-4deg); }
}
.place { text-decoration: underline; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 10px 20px; border-radius: 12px; font: 700 17px/1.1 var(--body); text-decoration: none; border: 2px solid transparent; cursor: pointer; }
.btn-yellow { background: var(--accent); color: var(--accent-ink); }
.btn-yellow:hover { filter: brightness(1.05); }
.btn-ghost { border-color: var(--line); background: var(--surface); }
.btn-ghost:hover { border-color: var(--ink-2); }
.btn-sm { min-height: 38px; padding: 6px 14px; font-size: 15px; border-radius: 10px; }

/* ---------- top bar ---------- */
.top { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 12px; height: 60px; }
.top .spacer { flex: 1; }
.top-nav { display: none; gap: 20px; font-weight: 600; font-size: 15px; }
.top-nav a { text-decoration: none; color: var(--ink-2); }
.top-nav a:hover { color: var(--ink); }
/* Language: one drop-down; theme: one button (moon in light, sun in dark). */
.prefs { display: flex; align-items: center; gap: 6px; }
.lang-pick { position: relative; }
.lang-pick select { appearance: none; -webkit-appearance: none; height: 38px; padding: 0 30px 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); font: 600 14.5px/1 var(--body); cursor: pointer; max-width: 46vw; }
.lang-pick::after { content: ""; position: absolute; right: 12px; top: 15px; width: 6px; height: 6px; border: solid var(--ink-2); border-width: 0 2px 2px 0; transform: rotate(45deg); pointer-events: none; }
.theme-btn { width: 38px; height: 38px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: var(--surface-2); color: var(--ink); cursor: pointer; flex: none; }
.theme-btn svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.theme-btn .sun { display: none; }
:root[data-theme="dark"] .theme-btn .sun { display: block; }
:root[data-theme="dark"] .theme-btn .moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .theme-btn .sun { display: block; }
  :root:not([data-theme="light"]) .theme-btn .moon { display: none; }
}
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.top .btn { display: none; }
@media (max-width: 420px) { .top .brand-phrase { display: none; } }
@media (min-width: 640px) { .top .btn { display: inline-flex; } }
@media (min-width: 980px) { .top-nav { display: flex; } }

/* ---------- hero ---------- */
.hero { padding: 36px 0 56px; background: var(--surface); }
.hero .wrap { display: grid; gap: 40px; }
.tag { display: inline-block; background: var(--accent); color: var(--accent-ink); font: 700 14px/1 var(--display); letter-spacing: .6px; text-transform: uppercase; padding: 6px 9px; border-radius: 6px; transform: rotate(-2deg); }
.hero h1 { font-size: clamp(40px, 9.5vw, 72px); margin: 16px 0 18px; max-width: 13ch; }
.lede { font-size: 19px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 16px; }
.fine { font-size: 14.5px; color: var(--ink-2); max-width: 34em; }
.urgent { margin-top: 14px; font-size: 14.5px; padding: 10px 12px; border-left: 4px solid var(--s-open); background: color-mix(in srgb, var(--s-open) 8%, transparent); border-radius: 0 8px 8px 0; max-width: 34em; }
.qr { display: none; align-items: center; gap: 14px; margin-top: 22px; font-size: 14.5px; color: var(--ink-2); max-width: 26em; }
.qr img { width: 96px; height: 96px; border-radius: 8px; border: 1px solid var(--line); flex: none; }
@media (min-width: 900px) and (hover: hover) { .qr { display: flex; } }
@media (min-width: 900px) { .hero { padding: 64px 0 80px; } .hero .wrap { grid-template-columns: 1.15fr .85fr; align-items: center; } }

/* The phone: a drawing of the app — top bar, a bit of map, the case sheet. */
.phone { width: min(300px, 78vw); margin: 0 auto; aspect-ratio: 9 / 18; border-radius: 30px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); overflow: hidden; display: flex; flex-direction: column; position: relative; }
.phone-top { display: flex; align-items: center; gap: 6px; padding: 12px 12px 9px; border-bottom: 1px solid var(--line); font: 700 16px/1 var(--display); white-space: nowrap; }
.phone-top .brand-mark { width: 30px; height: 19px; }
.phone-map { flex: 1; background: var(--map-bg); position: relative; }
.phone-map svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.phone-map .street { stroke: var(--road); fill: none; stroke-linecap: round; }
.phone-map .park { fill: color-mix(in srgb, var(--s-fixed) 22%, var(--map-bg)); }
.pin { position: absolute; left: 54%; top: 38%; width: 22px; height: 22px; border-radius: 50% 50% 50% 0; background: var(--s-open); transform: rotate(-45deg); box-shadow: 0 0 0 4px color-mix(in srgb, var(--s-open) 25%, transparent); }

/* The hero demo (landing.js §4): the phone plays a report — open, take a
   photo, AI blurs and recognises, confirm, on the map — a different problem
   each loop. Without the script the phone above stays as it is. */
.demo { display: grid; justify-items: center; gap: 14px; min-width: 0; }
.demo .phone { display: block; }
.demo .scene { position: absolute; inset: 0; display: flex; flex-direction: column; opacity: 0; transition: opacity .45s ease; }
.demo .phone { --pin: var(--s-open); }
.demo .phone[data-st="ack"] { --pin: var(--s-ack); }
.demo .phone[data-st="claim"], .demo .phone[data-st="ask"] { --pin: var(--s-claim); }
.demo .phone[data-st="fixed"] { --pin: var(--s-fixed); }
.demo .phone[data-s="case"] .s-map, .demo .phone[data-s="map"] .s-map, .demo .phone[data-s="sent"] .s-map, .demo .phone[data-s="cam"] .s-cam, .demo .phone[data-s="ai"] .s-ai, .demo .phone[data-s="send"] .s-ai { opacity: 1; }
.demo .phone-top { background: var(--surface); }
.demo .phone-map { overflow: hidden; }
.demo .you { position: absolute; left: 47%; top: 34%; width: 16px; height: 16px; margin: -8px; border-radius: 50%; background: var(--s-claim); border: 3px solid #fff; animation: demo-pulse 1.8s ease-out infinite; }
@keyframes demo-pulse { from { box-shadow: 0 0 0 0 color-mix(in srgb, var(--s-claim) 45%, transparent); } to { box-shadow: 0 0 0 16px transparent; } }
.demo .dot { position: absolute; width: 12px; height: 12px; margin: -6px; border-radius: 50%; border: 2px solid #fff; }
.demo .report { position: absolute; left: 50%; bottom: 18px; transform: translateX(-50%); background: var(--accent); color: var(--accent-ink); font: 700 17px/1 var(--display); padding: 13px 22px; border-radius: 999px; white-space: nowrap; box-shadow: 0 6px 16px rgba(0, 0, 0, .18); transition: opacity .3s; }
.demo .phone[data-s="sent"] .report, .demo .phone[data-s="case"] .report { opacity: 0; }
.demo .newpin { position: absolute; left: 47%; top: 34%; width: 26px; height: 34px; margin: -34px 0 0 -13px; opacity: 0; }
.demo .newpin svg { width: 100%; height: 100%; display: block; }
.demo .phone[data-s="sent"] .newpin { animation: demo-drop .7s cubic-bezier(.3, 1.6, .5, 1) .25s both; }
.demo .phone[data-s="case"] .newpin { opacity: 1; }
.demo .newpin path { transition: fill .4s; }
@keyframes demo-drop { from { opacity: 0; transform: translateY(-46px); } to { opacity: 1; transform: none; } }
.demo .toast { position: absolute; left: 12px; right: 12px; bottom: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 11px 12px; font-size: 13.5px; line-height: 1.35; box-shadow: var(--shadow); display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; opacity: 0; transform: translateY(16px); transition: opacity .35s .7s, transform .35s .7s; }
.demo .toast .ok { grid-row: span 2; width: 28px; height: 28px; border-radius: 50%; background: var(--s-fixed); color: #fff; display: grid; place-items: center; font-weight: 700; }
.demo .toast span:last-child { color: var(--ink-2); }
.demo .phone[data-s="sent"] .t-sent, .demo .phone[data-st="fixed"] .t-fixed { opacity: 1; transform: none; }
.demo .t-fixed { top: 12px; bottom: auto; transform: translateY(-16px); transition-delay: .5s; }
/* The case sheet: the state pill, "Me too", the history, the question on the spot. */
.demo .sheet { position: absolute; left: 0; right: 0; bottom: 0; height: 60%; background: var(--surface); border-top: 1px solid var(--line); border-radius: 16px 16px 0 0; box-shadow: 0 -6px 18px rgba(0, 0, 0, .1); padding: 12px 12px 10px; display: flex; flex-direction: column; gap: 9px; font-size: 12.5px; line-height: 1.35; transform: translateY(102%); transition: transform .45s cubic-bezier(.2, .8, .3, 1); }
.demo .phone[data-s="case"] .sheet { transform: none; }
.demo .sheet-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 8px; font-size: 14px; }
.demo .d-pill { flex: none; font: 700 11.5px/1 var(--body); padding: 5px 8px; border-radius: 999px; color: #fff; background: var(--pin); transition: background .4s; max-width: 55%; text-align: center; }
.demo .phone[data-st="ack"] .d-pill { color: var(--accent-ink); }
.demo .metoo { display: grid; grid-template-columns: auto 1fr; gap: 0 8px; align-items: center; }
.demo .metoo .muted { grid-column: 2; font-size: 11.5px; }
.demo .faces { grid-row: span 2; display: flex; }
.demo .faces i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--surface); margin-left: -6px; background: var(--s-claim); }
.demo .faces i:first-child { margin-left: 0; background: var(--s-ack); }
.demo .faces i:last-child { background: var(--s-fixed); }
.demo .d-tl { list-style: none; margin: 0; padding: 0 0 0 14px; border-left: 2px solid var(--line); display: grid; gap: 6px; color: var(--ink-2); }
.demo .d-tl li { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.demo .d-tl li::before { content: ""; position: absolute; left: -20px; top: 4px; width: 10px; height: 10px; border-radius: 50%; background: var(--s-open); }
.demo .d-tl .r2::before { background: var(--s-ack); }
.demo .d-tl .r3::before { background: var(--s-claim); }
.demo .d-tl .r2, .demo .d-tl .r3 { display: none; }
.demo .phone[data-st="ack"] .r2, .demo .phone[data-st="claim"] .r2, .demo .phone[data-st="ask"] .r2, .demo .phone[data-st="fixed"] .r2,
.demo .phone[data-st="claim"] .r3, .demo .phone[data-st="ask"] .r3, .demo .phone[data-st="fixed"] .r3 { display: flex; animation: demo-in .35s ease-out; }
@keyframes demo-in { from { opacity: 0; transform: translateY(6px); } }
.demo .phone-map .thumb { position: static; width: 54px; height: 40px; border-radius: 6px; flex: none; }
.demo .ask { display: none; margin-top: auto; border: 1.5px solid var(--s-claim); border-radius: 12px; padding: 9px 10px; gap: 8px; flex-direction: column; font-weight: 600; color: var(--ink); }
.demo .phone[data-st="ask"] .ask { display: flex; animation: demo-in .35s ease-out; }
.demo .ask-btns { display: flex; gap: 8px; }
.demo .ask-btns b { flex: 1; text-align: center; padding: 8px; border-radius: 10px; font-size: 13px; }
.demo .ask-btns .d-yes { background: var(--s-fixed); color: #fff; }
.demo .ask-btns .d-no { background: var(--surface-2); border: 1px solid var(--line); }
.demo .tap { position: absolute; width: 44px; height: 44px; margin: -22px; border-radius: 50%; background: color-mix(in srgb, var(--ink) 22%, transparent); border: 2px solid color-mix(in srgb, var(--ink) 40%, transparent); opacity: 0; pointer-events: none; z-index: 2; }
.demo .tap.go { animation: demo-tap .7s ease-out both; }
@keyframes demo-tap { 0% { opacity: 0; transform: scale(.4); } 30% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1.5); } }
.demo .s-cam { background: #000; }
.demo .cam-bar { display: flex; justify-content: space-between; padding: 12px 14px; color: #fff; font: 600 12.5px/1 var(--body); }
.demo .cam-bar .gps { background: rgba(31, 138, 85, .9); padding: 5px 8px; border-radius: 999px; }
.demo .view { flex: 1; position: relative; overflow: hidden; }
.demo .view svg, .demo .shot svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.demo .frame { position: absolute; inset: 16% 12%; border: 2px solid rgba(255, 255, 255, .7); border-radius: 10px; }
.demo .cam-foot { height: 92px; display: grid; place-items: center; }
.demo .shutter { width: 62px; height: 62px; border-radius: 50%; background: #fff; box-shadow: 0 0 0 4px #000, 0 0 0 7px #fff; }
.demo .flash { position: absolute; inset: 0; background: #fff; opacity: 0; pointer-events: none; }
.demo .flash.go { animation: demo-flash .45s ease-out; }
@keyframes demo-flash { 30% { opacity: .9; } to { opacity: 0; } }
.demo .s-ai { background: var(--surface); }
.demo .shot { height: 44%; position: relative; overflow: hidden; background: #000; flex: none; }
.demo .scan { position: absolute; left: 0; right: 0; height: 3px; top: 0; background: var(--accent); box-shadow: 0 0 14px 4px color-mix(in srgb, var(--accent) 60%, transparent); opacity: 0; }
.demo .phone[data-s="ai"] .scan { animation: demo-scan 1.5s ease-in-out .2s 1 both; }
@keyframes demo-scan { 0% { opacity: 1; top: 0; } 90% { opacity: 1; top: 100%; } 100% { opacity: 0; top: 100%; } }
.demo .blurbox { opacity: 0; transition: opacity .4s; }
.demo .phone[data-s="ai"] .blurbox { opacity: 1; transition-delay: 1.5s; }
.demo .phone[data-s="send"] .blurbox { opacity: 1; }
.demo .panel { flex: 1; padding: 12px 12px 14px; display: flex; flex-direction: column; gap: 9px; font-size: 13.5px; line-height: 1.35; }
.demo .ai-line { display: flex; align-items: center; gap: 8px; color: var(--ink-2); min-height: 2.7em; }
.demo .spin { width: 14px; height: 14px; flex: none; border: 2px solid var(--line); border-top-color: var(--accent); border-radius: 50%; animation: demo-spin .8s linear infinite; }
@keyframes demo-spin { to { transform: rotate(360deg); } }
.demo .ai-line .done { display: none; color: var(--s-fixed); font-weight: 700; }
.demo .phone.ready .ai-line .spin, .demo .phone.ready .ai-line .wait { display: none; }
.demo .phone.ready .ai-line .done { display: inline; }
.demo .ai-chips { display: grid; gap: 7px; }
.demo .chip { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 1.5px solid var(--line); border-radius: 12px; padding: 9px 11px; font-weight: 600; background: var(--surface-2); opacity: 0; transform: translateY(8px); transition: opacity .3s, transform .3s, border-color .3s, background .3s; }
.demo .chip small { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }
.demo .phone.ready .chip { opacity: 1; transform: none; }
.demo .phone.ready .chip + .chip { transition-delay: .12s; }
.demo .phone[data-s="send"] .chip.pick { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 18%, var(--surface)); }
.demo .note { border: 1.5px solid var(--line); border-radius: 12px; padding: 8px 11px; min-height: 36px; background: var(--surface); opacity: 0; transition: opacity .3s; }
.demo .caret { display: inline-block; width: 2px; height: 1em; background: var(--ink); vertical-align: -2px; animation: demo-blink 1s steps(1) infinite; }
@keyframes demo-blink { 50% { opacity: 0; } }
.demo .phone[data-s="send"] .note { opacity: 1; }
.demo .send { margin-top: auto; text-align: center; background: var(--accent); color: var(--accent-ink); font: 700 18px/1 var(--display); padding: 13px; border-radius: 12px; opacity: 0; transition: opacity .3s; }
.demo .phone[data-s="send"] .send { opacity: 1; }
/* Progress: equal segments, the current one filling for as long as its scene
   lasts (--d); tap one to jump there. Names are for screen readers only. */
.demo-bar { display: grid; grid-template-columns: repeat(10, 1fr); gap: 4px; width: min(300px, 78vw); max-width: 100%; }
.demo-bar button { height: 18px; padding: 7px 0; border: 0; background: none; cursor: pointer; }
.demo-bar i { display: block; height: 4px; border-radius: 2px; background: var(--line); overflow: hidden; position: relative; }
.demo-bar i::after { content: ""; position: absolute; inset: 0; background: var(--accent); transform: scaleX(0); transform-origin: left; }
.demo-bar .past i::after { transform: none; }
.demo-bar .now i::after { animation: demo-fill var(--d, 0ms) linear forwards; }
@keyframes demo-fill { to { transform: none; } }
.demo-bar button:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 3px; }
.no-motion .demo .you, .no-motion .demo .spin, .no-motion .demo .caret, .no-motion .demo .d-tl li, .no-motion .demo .ask { animation: none; }
.no-motion .demo-bar .now i::after { animation: none; transform: none; }
.no-motion .demo .scene, .no-motion .demo .sheet, .no-motion .demo .chip, .no-motion .demo .toast, .no-motion .demo .note, .no-motion .demo .send, .no-motion .demo .blurbox { transition: none; }

/* ---------- sections ---------- */
section { padding: 64px 0; }
.sec-head { max-width: 40em; margin-bottom: 30px; }
.sec-head p { margin-top: 12px; font-size: 18px; color: var(--ink-2); }
.alt { background: var(--surface); }
.more { display: inline-block; margin-top: 26px; font-weight: 700; text-decoration-color: var(--accent); text-decoration-thickness: 3px; text-underline-offset: 4px; }

/* ---------- the case card ---------- */
/* A state's name, in its colour (the four states below). */
.pill { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: color-mix(in srgb, var(--pc) 16%, transparent); color: var(--pc); white-space: nowrap; }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--pc); }
.s-open { --pc: var(--s-open); } .s-ack { --pc: var(--s-ack); } .s-claim { --pc: var(--s-claim); } .s-fixed { --pc: var(--s-fixed); }

/* ---------- the path: four steps on a road centre line ---------- */
.path { display: grid; gap: 28px; }
.steps { list-style: none; margin: 0; padding: 0 0 0 52px; position: relative; display: grid; gap: 34px; }
/* The road line: yellow dashes along the four states (down on phones, across on wide screens).
   Its centre (x = 17px) is the markers' centre; the markers sit on top. */
.steps::before, .steps::after { content: ""; position: absolute; left: 14px; top: 17px; width: 6px; border-radius: 3px; }
.steps::before { bottom: 17px; background: var(--line); opacity: .6; }
.steps::after { bottom: 17px; background: repeating-linear-gradient(to bottom, var(--accent) 0 26px, transparent 26px 42px); }
.step { position: relative; z-index: 1; }
.mark { position: absolute; left: -52px; top: -4px; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--surface); border: 3px solid var(--pc); color: var(--pc); }
.mark svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.2; stroke-linecap: round; stroke-linejoin: round; }
.step .pill { margin-bottom: 8px; }
.step h3 { font-size: 26px; margin-bottom: 6px; }
.step .who { font-weight: 700; }
/* Wide screens: the four states side by side on one road line. */
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; padding: 56px 0 0; }
  .steps::before, .steps::after { left: 17px; right: 17px; top: 14px; bottom: auto; width: auto; height: 6px; }
  .steps::after { background: repeating-linear-gradient(to right, var(--accent) 0 26px, transparent 26px 42px); }
  .mark { left: 0; top: -4px; transform: translateY(-52px); }
  .step h3 { font-size: 22px; }
}

/* ---------- what you can report ---------- */
.chips-lead { font-weight: 700; margin-bottom: 12px; }
.chips { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; list-style: none; margin: 0; padding: 0; }
.chips li { display: flex; align-items: center; gap: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px; font-weight: 600; font-size: 15.5px; line-height: 1.25; }
.chips svg { width: 24px; height: 24px; flex: none; stroke: var(--ink); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.alt .chips li { background: var(--bg); }
.rule-line { margin-top: 22px; font-weight: 700; font-size: 18px; }
.rule-line::before { content: "✕ "; color: var(--s-open); }
@media (min-width: 760px) { .chips { grid-template-columns: repeat(4, 1fr); } }

/* ---------- roles ---------- */
.cards { display: grid; gap: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h3 { margin-bottom: 8px; }
.card .lead { font-weight: 700; margin-bottom: 6px; }
@media (min-width: 760px) { .cards.three { grid-template-columns: repeat(3, 1fr); } .cards.two { grid-template-columns: 1fr 1fr; } }

/* ---------- rules: yellow stickers ---------- */
.rules { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; counter-reset: r; }
.rules li { counter-increment: r; background: var(--accent); color: var(--accent-ink); border-radius: 12px; padding: 18px 18px 18px 64px; position: relative; transform: rotate(-1.2deg); box-shadow: 0 2px 0 rgba(0, 0, 0, .12); }
.rules li:nth-child(even) { transform: rotate(.9deg); }
.rules li::before { content: counter(r); position: absolute; left: 18px; top: 12px; font: 700 38px/1 var(--display); }
.rules b { display: block; font-family: var(--display); font-size: 23px; line-height: 1.1; margin-bottom: 4px; }
@media (min-width: 760px) { .rules { grid-template-columns: 1fr 1fr; gap: 22px; } }

/* ---------- privacy ---------- */
.privacy { display: grid; gap: 28px; }
.privacy .links { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 18px; font-weight: 600; }
.history { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; font-size: 15px; }
.history h3 { font-size: 18px; margin-bottom: 10px; }
.history ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.history li { display: grid; grid-template-columns: 4.6em 1fr; gap: 10px; }
.history time { color: var(--ink-2); }
.history .who { font-weight: 700; }
@media (min-width: 860px) { .privacy { grid-template-columns: 1.1fr .9fr; align-items: start; } }

/* ---------- services / your town ---------- */
.card .btn { margin-top: 16px; }
.neutral { margin-top: 26px; text-align: center; font-weight: 600; color: var(--ink-2); max-width: 44em; margin-inline: auto; }

/* ---------- footer ---------- */
footer { padding: 34px 0 44px; border-top: 1px solid var(--line); font-size: 14.5px; color: var(--ink-2); }
footer .wrap { display: grid; gap: 14px; }
footer .row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 18px; }
footer a { text-decoration: none; }
footer a:hover { text-decoration: underline; }
footer .brand { font-size: 18px; color: var(--ink); }

/* ---------- less motion ---------- */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .brand-mark.hello { animation: none; }
}

/* ---------- 404 ---------- */
.notfound { padding-top: 18vh; padding-bottom: 18vh; }
.notfound .brand-mark { display: block; width: 88px; height: 56px; margin-bottom: 22px; }
.notfound h1 { font-size: clamp(38px, 8vw, 60px); margin-bottom: 14px; }
