/* ---------- Self-hosted fonts (Manrope, IBM Plex Mono; SIL OFL 1.1, see assets/fonts/) ---------- */
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/manrope-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/manrope-latin-400.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: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/manrope-latin-ext-500.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/manrope-latin-500.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: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/manrope-latin-ext-600.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 600; font-display: swap; src: url('/assets/fonts/manrope-latin-600.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: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/manrope-latin-ext-700.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 700; font-display: swap; src: url('/assets/fonts/manrope-latin-700.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: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/manrope-latin-ext-800.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'Manrope'; font-style: normal; font-weight: 800; font-display: swap; src: url('/assets/fonts/manrope-latin-800.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: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-ext-400.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 400; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-400.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: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-ext-500.woff2') format('woff2'); unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: 'IBM Plex Mono'; font-style: normal; font-weight: 500; font-display: swap; src: url('/assets/fonts/ibm-plex-mono-latin-500.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; }

/* ---------- Tokens ---------- */
:root, [data-theme="dark"] {
  --bg: #0C1014; --bg-2: #10171C; --surface: #141A20; --surface-2: #1A222A;
  --line: #242F39; --line-2: #3A4753;
  --text: #F2F6F8; --text-2: #C7D0D8; --muted: #94A3B0; --faint: #7B8A97;
  --accent: #3DDC97; --accent-hover: #8EEBC4; --accent-ink: #0C1014; --accent-text: #3DDC97;
  --accent-soft: rgba(61,220,151,.12); --accent-line: rgba(61,220,151,.35);
  --good: #3C9E6E; --fair: #DFAE3C; --poor: #D4544F; --fix: #5BA2FF;
  --shadow: 0 30px 80px rgba(0,0,0,.45);
  --hero-overlay: linear-gradient(180deg, rgba(12,16,20,.62) 0%, rgba(12,16,20,.45) 55%, #0C1014 100%);
  --hero-photo: url('/assets/img/hero-bg.jpg?v=7a8bf2d6');
  --logo-filter: grayscale(1) invert(1); --logo-opacity: .85;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #FFFFFF; --bg-2: #F4F7F6; --surface: #FFFFFF; --surface-2: #F1F5F4;
  --line: #E1E7EA; --line-2: #C8D1D7;
  --text: #0C1014; --text-2: #3A4753; --muted: #5B6B78; --faint: #5F6E7B;
  --accent: #17855A; --accent-hover: #126B48; --accent-ink: #FFFFFF; --accent-text: #137049;
  --accent-soft: #E6F6EE; --accent-line: #A6DEC4;
  --good: #2E8B5E; --fair: #C98F12; --poor: #C2413C; --fix: #2463EB;
  --shadow: 0 24px 60px rgba(12,16,20,.12);
  --hero-overlay: linear-gradient(180deg, rgba(255,255,255,.0) 0%, rgba(255,255,255,0) 100%);
  --hero-photo: none;
  --logo-filter: grayscale(1); --logo-opacity: .7;
  color-scheme: light;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: Manrope, system-ui, -apple-system, Segoe UI, sans-serif; font-size: 16px; line-height: 1.55; -webkit-font-smoothing: antialiased; transition: background .3s, color .3s; }
img, video { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-text); }
a:hover { color: var(--accent-hover); }
h1, h2, h3 { margin: 0; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { max-width: 1240px; margin: 0 auto; padding: 0 40px; }
.mono { font-family: 'IBM Plex Mono', ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; font-size: 11px; }
.eyebrow { color: var(--accent-text); }
.h2 { font-size: 44px; font-weight: 800; line-height: 1.08; }
.h2 em { font-style: normal; color: var(--accent-text); }
.lead { font-size: 17px; color: var(--text-2); }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.head { display: flex; flex-direction: column; gap: 16px; max-width: 760px; margin-bottom: 44px; }
.grid { display: grid; gap: 20px; }
.g2 { grid-template-columns: repeat(2, minmax(0,1fr)); }
.g3 { grid-template-columns: repeat(3, minmax(0,1fr)); }
.g4 { grid-template-columns: repeat(4, minmax(0,1fr)); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; }
[data-theme="light"] .card { box-shadow: 0 1px 2px rgba(12,16,20,.04); }
.card h3 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.card p { font-size: 15px; color: var(--text-2); }
.fig { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-weight: 500; line-height: 1; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 48px; padding: 0 22px; border-radius: 999px; font-weight: 700; font-size: 15px; text-decoration: none; white-space: nowrap; border: 0; cursor: pointer; font-family: inherit; transition: background .2s, border-color .2s; }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); color: var(--accent-ink); }
.btn-ghost { background: transparent; border: 1px solid var(--line-2); color: var(--text); }
.btn-ghost:hover { border-color: var(--muted); color: var(--text); }
.link { color: var(--accent-text); text-decoration: none; font-weight: 600; font-size: 15px; }
.tag { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: 11px; letter-spacing: .1em; text-transform: uppercase; padding: 5px 9px; border-radius: 6px; background: var(--accent-soft); color: var(--accent-text); border: 1px solid var(--accent-line); }
.frame { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.icon { width: 28px; height: 28px; stroke: var(--accent-text); fill: none; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }

/* ---------- Nav ---------- */
.nav { position: sticky; top: 0; z-index: 20; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav .wrap { display: flex; align-items: center; justify-content: space-between; gap: 24px; height: 72px; }
.nav-links { display: flex; gap: 28px; }
.nav-links a { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.nav-links a:hover { color: var(--text); }
.nav-right { display: flex; gap: 12px; align-items: center; }
.nav-right .login { color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 500; }
.logo img { height: 30px; width: auto; }
.logo .for-light { display: none; }
[data-theme="light"] .logo .for-light { display: block; }
[data-theme="light"] .logo .for-dark { display: none; }
.lang { color: var(--muted); text-decoration: none; padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; background: var(--hero-photo) center/cover no-repeat, var(--bg); }
.hero::before { content: ""; position: absolute; inset: 0; background: var(--hero-overlay); }
[data-theme="light"] .hero { background: radial-gradient(1200px 500px at 85% 10%, #E8F6EF 0%, rgba(255,255,255,0) 60%), var(--bg); }
.hero .wrap { position: relative; display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 56px; align-items: center; padding-top: 88px; padding-bottom: 72px; }
.hero h1 { font-size: 72px; font-weight: 800; line-height: 1.0; letter-spacing: -0.03em; }
.hero h1 em { font-style: normal; color: var(--accent-text); }
.hero .sub { font-size: 20px; line-height: 1.5; color: var(--text-2); max-width: 600px; }
.hero-copy { display: flex; flex-direction: column; gap: 26px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-film { position: relative; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0C1014; }
.hero-film video { width: 100%; height: 100%; object-fit: cover; }
.hero-film .cap { position: absolute; left: 14px; bottom: 14px; background: rgba(12,16,20,.78); color: #F2F6F8; padding: 6px 10px; border-radius: 6px; }

/* ---------- Logos ---------- */
.logos { padding: 34px 0 10px; }
.logos .row { display: flex; align-items: center; flex-wrap: wrap; gap: 18px 44px; border-top: 1px solid var(--line); padding-top: 26px; }
.logos .label { color: var(--muted); min-width: 90px; }
.logos img { height: 30px; width: auto; filter: var(--logo-filter); opacity: var(--logo-opacity); }
.logos .word { font-weight: 800; font-size: 16px; color: var(--muted); letter-spacing: -.01em; }

/* ---------- Figures ---------- */
.figs .card .fig { font-size: 44px; color: var(--text); }
.figs .card .fig.accent { color: var(--accent-text); }
.figs .card p { margin-top: 10px; font-size: 14px; }
.footnote { margin-top: 14px; font-size: 12px; color: var(--faint); }

/* ---------- Benefits ---------- */
.benefit { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Budget tool ---------- */
.tool { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,8fr); gap: 28px; align-items: start; }
.tool .panel { display: flex; flex-direction: column; gap: 18px; }
.tool .amount { font-family: 'IBM Plex Mono', monospace; font-size: 40px; font-weight: 500; }
.tool input[type=range] { width: 100%; accent-color: var(--accent); height: 28px; }
.tool .stats { display: grid; grid-template-columns: minmax(0,1fr); gap: 8px; }
.tool .stat { background: var(--surface-2); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; align-items: baseline; gap: 12px; }
.tool .stat b { font-family: 'IBM Plex Mono', monospace; font-weight: 500; font-size: 22px; min-width: 92px; white-space: nowrap; }
.tool .stat span { font-size: 12px; color: var(--muted); }
.netmap { display: block; width: 100%; height: auto; aspect-ratio: 1278 / 1040; border-radius: 12px; background: var(--surface-2); }
.netmap .blk { fill: var(--line); opacity: .45; }
.netmap .water { fill: #9DB8C9; opacity: .35; }
[data-theme="dark"] .netmap .water { fill: #1E3442; opacity: .9; }
.netmap .park { fill: #9CC5A1; opacity: .3; }
[data-theme="dark"] .netmap .park { fill: #18302A; opacity: .9; }
.netmap line { stroke-linecap: round; transition: stroke .3s, stroke-width .3s; }
.netmap line.g { stroke: var(--good); }
.netmap line.f { stroke: var(--fair); }
.netmap line.p { stroke: var(--poor); }
.netmap line.fix { stroke: var(--fix); filter: drop-shadow(0 0 5px var(--fix)); }
.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: 12px; color: var(--muted); margin-top: 12px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.source-band { margin-top: 28px; display: flex; gap: 20px; align-items: center; padding: 22px 26px; border-radius: 16px; background: var(--accent-soft); border: 1px solid var(--accent-line); }
.source-band .fig { font-size: 40px; color: var(--accent-text); white-space: nowrap; }
.source-band p { font-size: 15px; color: var(--text-2); }
.source-band cite { font-style: normal; color: var(--muted); font-size: 13px; }

/* ---------- How ---------- */
.step { display: flex; flex-direction: column; gap: 12px; }
.step .num { color: var(--muted); }
.report { margin-top: 28px; }
.report figcaption { padding: 14px 20px; font-size: 13px; color: var(--muted); border-top: 1px solid var(--line); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; }

.only-light { display: none !important; }
[data-theme="light"] .only-light { display: block !important; }
[data-theme="light"] figcaption .only-light { display: inline !important; }
[data-theme="light"] .only-dark { display: none !important; }

/* ---------- Film ---------- */
.film { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,8fr); gap: 40px; align-items: center; }
.yt { position: relative; aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow); background: #0C1014 url('/assets/img/film-thumb.jpg?v=1025d8a9') center/cover no-repeat; cursor: pointer; }
.yt::before { content: ""; position: absolute; inset: 0; background: url('/assets/img/highway.jpg?v=3a5e2f79') center/cover no-repeat; z-index: 0; }
.yt.has-thumb::before { display: none; }
.yt::after { content: ""; position: absolute; inset: 0; background: linear-gradient(rgba(12,16,20,.2), rgba(12,16,20,.5)); }
.yt button { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%,-50%); width: 88px; height: 88px; border-radius: 999px; border: 0; background: #3DDC97; display: flex; align-items: center; justify-content: center; box-shadow: 0 0 0 10px rgba(61,220,151,.2); cursor: pointer; }
.yt .cap { position: absolute; z-index: 2; left: 18px; bottom: 16px; background: rgba(12,16,20,.78); color: #F2F6F8; padding: 6px 10px; border-radius: 6px; }
.yt iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; z-index: 3; }

/* ---------- Story ---------- */
.story { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); }
.story .photo { min-height: 440px; background: url('/assets/img/day-story.jpg?v=f172471f') center/cover no-repeat; position: relative; }
.story .photo .tag { position: absolute; left: 22px; top: 22px; background: rgba(12,16,20,.82); color: #3DDC97; border-color: rgba(61,220,151,.4); }
.story .body { padding: 48px; display: flex; flex-direction: column; gap: 20px; }
.story h2 { font-size: 34px; font-weight: 800; line-height: 1.12; }
.story h2 em { font-style: normal; color: var(--accent-text); }
.story ul { margin: 0; padding-left: 18px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }
.story blockquote { margin: 0; padding: 18px 20px; border-left: 3px solid var(--accent); background: var(--surface-2); border-radius: 0 12px 12px 0; font-size: 16px; }
.story blockquote p { margin: 0; }
.story blockquote footer { margin-top: 10px; font-size: 13px; color: var(--muted); }

/* ---------- Evidence ---------- */
.evidence { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 32px; }
.report-card { border-color: var(--accent-line); }
.report-card ul { margin: 14px 0 0; padding-left: 18px; color: var(--text-2); display: flex; flex-direction: column; gap: 6px; }

/* ---------- Audiences ---------- */
.aud { padding: 0; overflow: hidden; display: flex; flex-direction: column; text-decoration: none; color: var(--text); }
.aud:hover { border-color: var(--line-2); color: var(--text); }
.aud .ph { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.ph-mun { background-image: url('/assets/img/who-municipal.jpg?v=092414db'); }
.ph-op  { background-image: url('/assets/img/who-operator.jpg?v=803a562c'); }
.ph-air { background-image: url('/assets/img/who-airport.jpg?v=644e726a'); }
.ph-con { background-image: url('/assets/img/who-contractor.jpg?v=97d2c521'); }
.aud .txt { padding: 22px; display: flex; flex-direction: column; gap: 10px; flex-grow: 1; }
.aud .txt h3 { font-size: 19px; }
.aud .txt p { flex-grow: 1; font-size: 14px; }

/* ---------- Pricing ---------- */
.price .fig { font-size: 30px; white-space: nowrap; }
.price .fig small { font-family: Manrope, sans-serif; font-size: 15px; color: var(--muted); font-weight: 500; }
.price.featured { border-color: var(--accent-line); }
.pilot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; border-style: dashed; margin-top: 20px; }

/* ---------- People ---------- */
.person { display: flex; gap: 18px; align-items: flex-start; }
.avatar { flex: none; width: 76px; height: 76px; border-radius: 999px; overflow: hidden; background: var(--surface-2); border: 2px solid var(--accent); box-sizing: border-box; display: flex; align-items: center; justify-content: center; font-weight: 800; color: var(--accent-text); position: relative; }
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.person h3 { font-size: 18px; }
.person .role { color: var(--muted); margin: 4px 0 8px; }
.person p { font-size: 14px; }
.person h3 a { color: inherit; text-decoration: none; }
.person h3 a:hover { color: var(--accent-text); }
.group-label { color: var(--muted); margin: 36px 0 16px; }

/* ---------- Asset management ---------- */
.assetx { display: grid; grid-template-columns: minmax(0,6fr) minmax(0,6fr); gap: 32px; align-items: stretch; }
.assetx .photo { border-radius: 18px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 1280 / 683; align-self: center; background: url('/assets/img/detection-photo.jpg?v=67eece06') center/cover no-repeat; position: relative; box-shadow: var(--shadow); }
.assetx .photo .tag { position: absolute; left: 18px; top: 18px; background: rgba(12,16,20,.82); color: #3DDC97; border-color: rgba(61,220,151,.4); }
.assetx ul { margin: 0; padding-left: 18px; color: var(--text-2); display: flex; flex-direction: column; gap: 8px; }
.apps { margin-top: 28px; }
.apps .card h3 { font-size: 17px; margin: 10px 0 6px; }
.apps .card p { font-size: 14px; }

/* ---------- Privacy ---------- */
.privacy { display: grid; grid-template-columns: minmax(0,5fr) minmax(0,7fr); gap: 32px; align-items: start; }
.privacy .pts { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; }
.privacy .pts .card { padding: 22px; }
.privacy .pts h3 { font-size: 16px; margin: 10px 0 6px; }
.privacy .pts p { font-size: 14px; }
.privacy figure { margin: 20px 0 0; }
.privacy figure img { width: 100%; height: auto; display: block; border-radius: 14px; border: 1px solid var(--line); }
.privacy figcaption { font-size: 13px; color: var(--faint); margin-top: 8px; }
.funding { display: flex; align-items: center; gap: 14px; margin-top: 6px; }
.funding img { height: 44px; width: auto; }

/* ---------- News ---------- */
.news a.card { text-decoration: none; color: var(--text); display: flex; flex-direction: column; gap: 10px; }
.news a.card:hover { border-color: var(--line-2); }
.news h3 { font-size: 18px; line-height: 1.3; }
.news p { font-size: 14px; }

.newsc { padding: 0; overflow: hidden; }
.newsc .nimg { aspect-ratio: 16 / 10; background-size: cover; background-position: center; }
.newsc .ntxt { padding: 20px; display: flex; flex-direction: column; gap: 8px; }
.newsc h3 { font-size: 17px; }
.nits { display: flex; align-items: flex-end; padding: 18px; background: linear-gradient(135deg, #0F3D5E 0%, #1C9A68 100%); color: #fff; font-weight: 800; font-size: 22px; line-height: 1.15; }
.earlier { display: flex; flex-wrap: wrap; gap: 10px 28px; align-items: center; margin-top: 22px; font-size: 14px; }
.earlier a { color: var(--text-2); text-decoration: none; }
.earlier a:hover { color: var(--accent-text); }
.earlier .label { color: var(--muted); }
.logos img.eu { height: 40px; filter: none !important; opacity: 1 !important; }  /* EU emblem: never grey, invert or alter */
.logos img.tall { height: 40px; }
/* Optical size per logo: similar width and visual weight across the rows */
.logos img[src$="ramboll.png"] { height: 24px; }
.logos img[src$="ftia.png"] { height: 26px; }
.logos img[src$="pimara.png"] { height: 30px; }
.logos img[src$="dubrovnik-airport.png"] { height: 40px; }
.logos img[src$="raasepori.png"] { height: 42px; }
.logos img[src$="roaddata.png"] { height: 24px; }
.logos img[src$="cantech.png"] { height: 52px; }
.logos img[src$="sitowise.png"] { height: 20px; }
.logos img[src$="fluent.png"] { height: 22px; }
.logos img[src$="innovestor.svg"] { height: 24px; }
.logos img[src$="finnpartnership.svg"] { height: 28px; }
.logos img[src$="eit.png"] { height: 38px; }
.logos img[src$="d2xcel.png"] { height: 30px; }
.logos img[src$="partners/aalto.png"] { height: 46px; }
.logos img[src$="its-finland.png"] { height: 30px; }
.logos img[src$="traffic-data-service-cluster.png"] { height: 52px; }  /* monochrome like the other logos (black mark, transparent, circular) */
.logos .row { gap: 22px 48px; }

/* Phones: logo rows as a 2-column grid, equal cells (~72 px), logo centred, max 80 % of the cell. EU emblem full width on its own row. */
@media (max-width: 639px) {
  .logos .row { display: grid; grid-template-columns: 1fr 1fr; gap: 6px 8px; align-items: stretch; }
  .logos .row .label { grid-column: 1 / -1; min-width: 0; margin-bottom: 6px; }
  .logos .row img, .logos .row .word { box-sizing: border-box; width: 100%; height: 72px; padding: 0 10%; object-fit: contain; object-position: center; display: flex; align-items: center; justify-content: center; text-align: center; }
  .logos .row img[src] { padding: 14px 10%; }
  .logos .row img.eu { grid-column: 1 / -1; padding: 16px 0; }
  .logos .row img[src$="traffic-data-service-cluster.png"] { padding: 6px 10%; }  /* thin dotted circle: needs the room to read */
  .logos .row img.eu.only-light, .logos .row img.eu.only-dark { height: 72px; }
  .logos .row > :last-child:nth-child(even) { grid-column: 1 / -1; }
}

/* ---------- FAQ ---------- */
.faq { display: grid; grid-template-columns: minmax(0,4fr) minmax(0,8fr); gap: 32px; }
.faq details { padding: 20px 24px; }
.faq summary { font-weight: 700; font-size: 17px; cursor: pointer; }
.faq details p { margin-top: 12px; font-size: 15px; }

/* ---------- CTA + footer ---------- */
.cta { border-radius: 24px; border: 1px solid var(--accent-line); padding: 56px; display: grid; grid-template-columns: minmax(0,7fr) minmax(0,5fr); gap: 32px; align-items: center; background: linear-gradient(rgba(12,16,20,.62), rgba(12,16,20,.62)), url('/assets/img/pothole.jpg?v=f81eeb44') center/cover no-repeat; color: #F2F6F8; }
.cta h2 { font-size: 36px; font-weight: 800; line-height: 1.1; color: #fff; }
.cta p { color: #C7D0D8; }
.cta form { display: flex; flex-direction: column; gap: 10px; }
.cta label { font-size: 13px; color: #C7D0D8; }
.cta input { height: 48px; border-radius: 10px; border: 1px solid #3A4753; background: #0C1014; color: #F2F6F8; padding: 0 14px; font-size: 15px; font-family: inherit; }
.cta .btn-primary { background: #3DDC97; color: #0C1014; }
[data-theme="light"] .cta { background: linear-gradient(135deg, #E6F6EE 0%, #F4FAF7 60%, #FFFFFF 100%); color: var(--text); }
[data-theme="light"] .cta h2 { color: var(--text); }
[data-theme="light"] .cta p, [data-theme="light"] .cta label { color: var(--text-2); }
[data-theme="light"] .cta input { background: #fff; border-color: var(--line-2); color: var(--text); }
[data-theme="light"] .cta .btn-primary { background: var(--accent); color: var(--accent-ink); }
[data-theme="light"] .cta span, [data-theme="light"] .cta span a { color: var(--muted) !important; }
[data-theme="light"] .hero-film { background: #E9EEF0; }
footer { border-top: 1px solid var(--line); padding: 48px 0 32px; margin-top: 96px; }
footer .cols { display: grid; grid-template-columns: 4fr 2fr 2fr 2fr 2fr; gap: 32px; }
footer .col { display: flex; flex-direction: column; gap: 10px; }
footer .col a, footer .col span { color: var(--text-2); text-decoration: none; font-size: 14px; }
footer .base { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 20px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; font-size: 12px; color: var(--faint); }

/* ---------- Preview theme switch ---------- */
.switch { position: fixed; right: 18px; bottom: 18px; z-index: 50; display: flex; align-items: center; gap: 6px; padding: 6px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line-2); box-shadow: var(--shadow); }
.switch span { padding: 0 8px; color: var(--muted); }
.switch button { height: 34px; padding: 0 14px; border-radius: 999px; border: 0; background: transparent; color: var(--text-2); font: 600 13px Manrope, sans-serif; cursor: pointer; }
.switch button[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }

/* ---------- Responsive ---------- */
@media (max-width: 1080px) {
  .hero .wrap, .tool, .film, .story, .evidence, .faq, .cta, .assetx, .privacy { grid-template-columns: minmax(0,1fr); }
  .hero h1 { font-size: 56px; }
  .hero-film { max-width: 440px; }
  .g4 { grid-template-columns: repeat(2, minmax(0,1fr)); }
  .nav-links { display: none; }
  footer .cols { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .h2 { font-size: 34px; }
  .hero .wrap { padding-top: 48px; }
  .hero h1 { font-size: 42px; }
  .hero .sub { font-size: 17px; }
  .g2, .g3, .g4 { grid-template-columns: minmax(0,1fr); }
  .nav-right .login, .lang { display: none; }
  .story .body, .cta { padding: 28px; }
  .tool .stats, .privacy .pts { grid-template-columns: minmax(0,1fr); }
  .source-band { flex-direction: column; align-items: flex-start; }
  footer .cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .netmap line { transition: none; } }

/* ---------- Blog (generated pages: /<slug>/ and /blog/) ---------- */
.post-wrap { max-width: 760px; padding-top: 56px; padding-bottom: 8px; }
.crumbs { margin: 0 0 28px; font-size: 14px; }
.crumbs a { color: var(--accent-text); text-decoration: none; font-weight: 600; }
.post-head { display: flex; flex-direction: column; gap: 14px; margin-bottom: 32px; }
.post-meta { color: var(--muted); }
.post-title { font-size: 40px; font-weight: 800; line-height: 1.12; letter-spacing: -0.02em; }
.post-body { font-size: 18px; line-height: 1.7; color: var(--text-2); }
.post-body > * + * { margin-top: 1.1em; }
.post-body h2 { font-size: 26px; line-height: 1.25; color: var(--text); margin-top: 2em; }
.post-body h3 { font-size: 20px; line-height: 1.3; color: var(--text); margin-top: 1.6em; }
.post-body strong { color: var(--text); }
.post-body a { color: var(--accent-text); text-decoration: underline; text-underline-offset: 3px; }
.post-body ul, .post-body ol { padding-left: 1.4em; }
.post-body li + li { margin-top: .4em; }
.post-body table { border-collapse: collapse; width: 100%; font-size: 15px; }
.post-body th, .post-body td { border: 1px solid var(--line); padding: 10px 12px; text-align: left; vertical-align: top; }
.post-body blockquote { margin-left: 0; padding-left: 18px; border-left: 3px solid var(--accent-line); color: var(--text-2); }
.post-body code { font-family: 'IBM Plex Mono', ui-monospace, monospace; font-size: .9em; background: var(--surface-2); padding: 2px 6px; border-radius: 6px; }
.post-more { margin-top: 36px; font-size: 16px; }
.post-more a { color: var(--accent-text); font-weight: 600; text-decoration: none; }
.post-cta { margin-top: 56px; padding: 32px; border: 1px solid var(--accent-line); border-radius: 20px; background: var(--accent-soft); display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.post-cta h2 { font-size: 24px; font-weight: 800; line-height: 1.2; }
.post-cta p { color: var(--text-2); }
.post-related { margin-top: 56px; }
.post-related h2 { font-size: 22px; font-weight: 800; margin-bottom: 18px; }
.post-related .grid { display: grid; grid-template-columns: 1fr; gap: 16px; }
.blog-index .h2 { font-size: 44px; }
.blog-filter { display: flex; gap: 10px; margin: 32px 0 28px; flex-wrap: wrap; }
.blog-filter a { padding: 8px 18px; border: 1px solid var(--line-2); border-radius: 999px; color: var(--text-2); text-decoration: none; font-size: 14px; font-weight: 600; }
.blog-filter a:hover { border-color: var(--muted); color: var(--text); }
/* Language filter without JavaScript: #all is the default; #en / #fi show when targeted */
.plists ol { display: none; list-style: none; margin: 0; padding: 0; gap: 16px; scroll-margin-top: 140px; }
.plists #all { display: grid; }
.plists #en:target, .plists #fi:target { display: grid; }
.plists #en:target ~ #all, .plists #fi:target ~ #all { display: none; }
.plists a.card { display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: var(--text); }
.plists a.card:hover { border-color: var(--line-2); }
.plists h2 { font-size: 20px; font-weight: 700; line-height: 1.25; }
.plists p { font-size: 15px; color: var(--text-2); }
.plists .none { color: var(--muted); }
@media (min-width: 900px) { .plists ol { grid-template-columns: 1fr 1fr; } .post-related .grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) { .post-title { font-size: 32px; } .post-body { font-size: 17px; } .blog-index .h2 { font-size: 34px; } }

/* Draft banner on generated pages (content/pages, status: draft) */
.draft-bar { background: #FBE9A8; color: #3B2D00; border-bottom: 1px solid #D9B84A; text-align: center; padding: 10px 16px; font-weight: 700; font-size: 14px; }
