/* ALASIVUJEN tyylit (nav/wrap/page-hero/foot-*-rakenne).
   index.html EI käytä tätä — sillä on oma styles.css. */

/* ============================================================
   Tilannekartta — launch page styles
   Theme: Dark Navy / Emergency Operations Center (matches index.html)
   ============================================================ */

:root {
  --font-head: "Archivo", system-ui, sans-serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;

  /* accent — alert orange */
  --accent: #D87333;
  --accent-strong: #FFA25C;
  --accent-ink: #160B03;

  /* category colours (constant across themes) */
  --fire: #C24545;
  --traffic: #3A7AB8;
  --police: #3D6BC7;
  --medical: #C9B036;
  --other: #9A5FC4;
  --ai: #8472C8;

  /* Dark Navy theme */
  --bg: #050A14;
  --bg-2: #081020;
  --surface: rgba(14,24,44,.55);
  --surface-2: rgba(20,32,58,.5);
  --border: rgba(140,170,220,.14);
  --text: #EAF0F9;
  --dim: #B9C4D6;
  --mute: #8A98B0;
  --hero-bg: radial-gradient(1200px 700px at 72% -10%, rgba(216,115,51,.14), transparent 60%), radial-gradient(900px 600px at -10% 30%, rgba(26,74,139,.18), transparent 65%), var(--bg);
  --shadow: 0 30px 70px -30px rgba(0,0,0,.65);

  --maxw: 1180px;
  --radius: 16px;
}

/* ============================================================
   base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  padding-top: 96px;
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
::selection { background: rgba(216,115,51,.4); }
h1, h2, h3, h4 { font-family: var(--font-head); margin: 0; line-height: 1.05; letter-spacing: -0.02em; font-weight: 700; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section { padding: clamp(64px, 9vw, 128px) 0; }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 500;
}
.eyebrow::before {
  content: "";
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 22%, transparent);
}
.section-head { max-width: 720px; }
.section-head h2 {
  font-size: clamp(30px, 4.6vw, 50px);
  margin-top: 18px;
  text-wrap: balance;
}
.section-head .lede {
  margin-top: 18px;
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--dim);
  max-width: 640px;
  text-wrap: pretty;
}

/* ============================================================
   nav
   ============================================================ */
.nav {
  position: fixed; top: 16px; left: 50%; transform: translateX(-50%); z-index: 50;
  width: min(1080px, calc(100% - 32px));
  border-radius: 999px;
  background: rgba(8,14,28,.62);
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px);
  border: 1px solid var(--border);
  box-shadow: 0 8px 40px rgba(0,0,0,.45);
}
.nav .wrap { max-width: none; padding: 12px 20px; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; }
.brand { display: flex; align-items: center; gap: 10px; font-family: var(--font-head); font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.brand .glyph {
  width: 30px; height: 30px; border-radius: 9px;
  background-image: url("assets/icon.png");
  background-size: cover; background-position: center;
  flex: none;
  box-shadow: 0 0 18px rgba(216,115,51,.35);
}
.nav-links { display: flex; align-items: center; gap: 28px; }
.nav-links a { font-size: 14px; color: var(--mute); transition: color .25s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 8px; }
@media (max-width: 700px) { .nav-links { display: none; } }

/* ============================================================
   buttons & store badges
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  padding: 11px 20px; border-radius: 999px; cursor: pointer;
  border: 1px solid transparent; transition: transform .25s, background .25s, border-color .25s, box-shadow .25s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  background: linear-gradient(135deg, var(--accent-strong), var(--accent)); color: var(--accent-ink);
  box-shadow: 0 0 24px rgba(216,115,51,.45), inset 0 1px 0 rgba(255,255,255,.35);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 6px 34px rgba(216,115,51,.6), inset 0 1px 0 rgba(255,255,255,.35); }
.btn-ghost { background: rgba(140,170,220,.08); color: var(--text); border-color: var(--border); }
.btn-ghost:hover { background: rgba(140,170,220,.14); transform: translateY(-2px); border-color: color-mix(in srgb, var(--text) 36%, transparent); }

.badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store {
  display: inline-flex; align-items: center; gap: 12px;
  padding: 11px 17px 11px 14px; border-radius: 13px;
  background: var(--surface); border: 1px solid var(--border);
  transition: border-color .15s, transform .12s;
}
.store:hover { border-color: color-mix(in srgb, var(--text) 28%, transparent); transform: translateY(-1px); }
.store .os {
  width: 30px; height: 30px; flex: none; display: grid; place-items: center;
  border-radius: 8px; background: var(--surface-2); color: var(--text);
}
.store .os svg { width: 18px; height: 18px; fill: currentColor; }
.store .txt { display: flex; flex-direction: column; line-height: 1.15; }
.store .txt b { font-family: var(--font-head); font-size: 15.5px; font-weight: 600; }
.store .soon {
  margin-left: 4px; font-family: var(--font-mono); font-size: 10px; letter-spacing: .1em;
  text-transform: uppercase; color: var(--accent);
  border: 1px solid color-mix(in srgb, var(--accent) 45%, transparent);
  padding: 3px 7px; border-radius: 999px;
}

/* ============================================================
   hero
   ============================================================ */
.hero { background: var(--hero-bg); position: relative; overflow: hidden; border-bottom: 1px solid var(--border); }
.hero-grid {
  display: grid; grid-template-columns: 1.05fr 0.95fr; gap: 56px; align-items: center;
  padding: clamp(56px, 8vw, 104px) 0 clamp(64px, 8vw, 110px);
}
.hero h1 {
  font-size: clamp(38px, 6vw, 70px);
  margin-top: 22px;
  text-wrap: balance;
  font-weight: 700;
}
.hero .sub {
  margin-top: 22px; font-size: clamp(16.5px, 1.8vw, 20px);
  color: var(--dim); max-width: 520px; text-wrap: pretty;
}
.hero-actions { margin-top: 32px; }
.hero-note { margin-top: 16px; font-family: var(--font-mono); font-size: 12.5px; color: var(--mute); }
.hero-media { display: flex; justify-content: center; position: relative; }
.hero-glow {
  position: absolute; width: 460px; height: 460px; border-radius: 50%;
  background: radial-gradient(circle, color-mix(in srgb, var(--accent) 28%, transparent) 0%, transparent 66%);
  filter: blur(20px); z-index: 0; top: 50%; left: 50%; transform: translate(-50%,-50%);
  pointer-events: none;
}

/* ============================================================
   phone frame
   ============================================================ */
.phone {
  position: relative; z-index: 1;
  width: 300px; aspect-ratio: 300 / 624;
  background: #05070A; border-radius: 46px;
  padding: 11px;
  box-shadow: var(--shadow), 0 0 0 1.5px #2a3140, inset 0 0 0 2px #000;
}
.phone.tilt { transform: rotate(-1.5deg); }
.phone.device { aspect-ratio: 1206 / 2622; }
.phone.device .phone-screen { background: #0C0E11; }
.phone-screen {
  position: relative; width: 100%; height: 100%;
  border-radius: 36px; overflow: hidden;
}
.appshot {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; object-position: top center; display: block;
}

/* ============================================================
   trust strip
   ============================================================ */
.trust { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); background: var(--bg-2); }
.trust-inner { display: flex; align-items: center; gap: 14px 34px; flex-wrap: wrap; padding: 26px 0; }
.trust .lbl { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.trust .srcs { display: flex; gap: 12px 26px; flex-wrap: wrap; align-items: center; }
.trust .src { font-family: var(--font-head); font-weight: 600; font-size: 15px; color: var(--dim); }
.trust .cc { font-family: var(--font-mono); font-size: 11px; color: var(--mute); margin-left: auto; }

/* ============================================================
   features
   ============================================================ */
.features-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 56px; }
.feat {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 30px; position: relative; overflow: hidden;
  transition: border-color .18s, transform .18s;
}
.feat:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--border)); transform: translateY(-3px); }
.feat .fnum { font-family: var(--font-mono); font-size: 12px; color: var(--mute); letter-spacing: .1em; }
.feat .ficon {
  width: 46px; height: 46px; border-radius: 12px; margin-top: 16px;
  display: grid; place-items: center; background: var(--surface-2); border: 1px solid var(--border);
}
.feat .ficon .sq { width: 18px; height: 18px; border-radius: 5px; }
.feat h3 { font-size: 21px; margin-top: 18px; }
.feat p { margin-top: 10px; color: var(--dim); font-size: 15px; text-wrap: pretty; }
.feat .ftags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 16px; }
.feat .ftag { font-family: var(--font-mono); font-size: 11px; padding: 4px 9px; border-radius: 6px; background: var(--surface-2); border: 1px solid var(--border); color: var(--dim); }

/* ============================================================
   how it works
   ============================================================ */
.how { background: var(--bg-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 56px; }
.step { position: relative; }
.step .sn {
  font-family: var(--font-head); font-weight: 700; font-size: 14px;
  width: 38px; height: 38px; border-radius: 10px; display: grid; place-items: center;
  background: var(--accent); color: var(--accent-ink);
}
.step h3 { font-size: 21px; margin-top: 20px; }
.step p { margin-top: 10px; color: var(--dim); font-size: 15px; text-wrap: pretty; }
.step .line { position: absolute; top: 19px; left: 50px; right: -14px; height: 1px; background: var(--border); }
.step:last-child .line { display: none; }

/* ============================================================
   screenshots
   ============================================================ */
.shots { background: var(--bg); }
.shots-rail {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 60px; align-items: start;
}
.shot { display: flex; flex-direction: column; align-items: center; text-align: center; }
.shot .phone { width: 232px; }
.shot .cap { margin-top: 26px; }
.shot .cap .ct { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); }
.shot .cap h4 { font-family: var(--font-head); font-size: 19px; margin-top: 9px; }
.shot .cap p { margin-top: 8px; color: var(--dim); font-size: 14px; max-width: 280px; text-wrap: pretty; }

/* ============================================================
   pricing
   ============================================================ */
.pricing { background: var(--bg-2); border-top: 1px solid var(--border); }
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 56px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--border); border-radius: 20px;
  padding: 30px 28px; display: flex; flex-direction: column;
}
.plan.featured { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent), var(--shadow); position: relative; }
.plan .ptag { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--dim); }
.plan.featured .badge-pop {
  position: absolute; top: -12px; left: 28px;
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: .1em; text-transform: uppercase;
  background: var(--accent); color: var(--accent-ink); padding: 4px 11px; border-radius: 999px; font-weight: 600;
}
.plan .price { display: flex; align-items: baseline; gap: 6px; margin-top: 16px; }
.plan .price .amt { font-family: var(--font-head); font-weight: 700; font-size: 42px; letter-spacing: -.03em; }
.plan .price .per { font-size: 14px; color: var(--mute); font-family: var(--font-mono); }
.plan .pdesc { margin-top: 12px; color: var(--dim); font-size: 14px; min-height: 40px; text-wrap: pretty; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-direction: column; gap: 11px; }
.plan li { display: flex; gap: 10px; font-size: 14px; color: var(--text); align-items: flex-start; }
.plan li .tick { color: var(--accent); flex: none; margin-top: 1px; font-weight: 700; }
.plan li.off { color: var(--mute); }
.plan li.off .tick { color: var(--mute); }
.plan .plan-foot { margin-top: auto; padding-top: 22px; }
.plan .trial { font-family: var(--font-mono); font-size: 11.5px; color: var(--medical); margin-top: 10px; text-align: center; }
.price-note {
  margin-top: 26px; text-align: center; color: var(--dim); font-size: 14px;
  font-family: var(--font-mono); text-wrap: pretty;
}

/* ============================================================
   final CTA + footer
   ============================================================ */
.cta { background: var(--bg); }
.cta-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 26px;
  padding: clamp(40px, 6vw, 72px); text-align: center; position: relative; overflow: hidden;
}
.cta-card::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background: radial-gradient(80% 120% at 50% -10%, color-mix(in srgb, var(--accent) 20%, transparent), transparent 60%);
}
.cta-card > * { position: relative; z-index: 1; }
.cta-card h2 { font-size: clamp(30px, 4.4vw, 48px); text-wrap: balance; }
.cta-card p { margin: 18px auto 0; color: var(--dim); max-width: 480px; font-size: 17px; text-wrap: pretty; }
.cta-card .badges { justify-content: center; margin-top: 32px; }

footer { background: linear-gradient(180deg, transparent, rgba(8,14,28,.6)); border-top: 1px solid var(--border); padding: 56px 0 40px; margin-top: 40px; }
.foot-top { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.foot-brand { max-width: 320px; }
.foot-brand p { color: var(--dim); font-size: 14px; margin-top: 14px; }
.foot-cols { display: flex; gap: 60px; flex-wrap: wrap; }
.foot-col h5 { font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); margin: 0 0 14px; font-weight: 500; }
.foot-col a { display: block; color: var(--dim); font-size: 14px; padding: 5px 0; transition: color .15s; }
.foot-col a:hover { color: var(--text); }
.foot-bottom {
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; align-items: center;
  margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--border);
  font-family: var(--font-mono); font-size: 12px; color: var(--mute);
}
.foot-bottom .cc-note { max-width: 520px; }

/* ============================================================
   reveal animation
   ============================================================ */
/* Nakyva nappaimistofokus. Selaimen oletusrengas huku tahan taustaan
   (#050A14), joten nappaimistolla navigoiva ei nae missa on. Vari tulee
   samasta paletista kuin muu sivusto eika ole erillinen korjausvari.
   :focus-visible eika :focus — hiiriklikkaus ei saa jattaa rengasta. */
:focus-visible {
  outline: 2px solid var(--accent-strong);
  outline-offset: 2px;
}

@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(20px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
  .reveal.in { opacity: 1; transform: none; }
}

/* ============================================================
   inner content pages (tietosuoja, käyttöehdot, yhteystiedot)
   ============================================================ */
.page-hero {
  position: relative; overflow: hidden;
  background: var(--hero-bg); border-bottom: 1px solid var(--border);
  padding: clamp(40px, 6vw, 72px) 0;
}
.page-hero .wrap { position: relative; }
.page-hero .eyebrow { margin-bottom: 14px; display: flex; }
.page-hero h1 { font-family: var(--font-head); font-weight: 900; font-size: clamp(28px, 4vw, 44px); letter-spacing: -.03em; text-wrap: balance; }
.page-hero .meta { margin-top: 14px; font-family: var(--font-mono); font-size: 12px; color: var(--mute); }

.page-body { padding: clamp(48px, 7vw, 96px) 0; }
.page-body .wrap { max-width: 740px; }
.page-body h2 { font-size: 22px; margin-top: 48px; padding-top: 48px; border-top: 1px solid var(--border); }
.page-body h2:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.page-body h3 { font-size: 17px; margin-top: 26px; }
.page-body p { margin-top: 14px; color: var(--dim); font-size: 15px; line-height: 1.7; text-wrap: pretty; }
.page-body ul { margin: 14px 0 0; padding-left: 20px; color: var(--dim); font-size: 15px; line-height: 1.7; }
.page-body ul li { margin-top: 8px; }
.page-body a:not(.btn) { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.page-body a:not(.btn):hover { text-decoration-color: var(--accent); }
.page-body .note {
  margin-top: 26px; padding: 18px 22px; background: var(--surface-2); border: 1px solid var(--border);
  border-left: 3px solid var(--accent); border-radius: 10px; font-size: 14px; color: var(--dim);
}

.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-top: 32px; }
.contact-card {
  background: linear-gradient(160deg, rgba(20,32,58,.55), rgba(10,17,32,.75));
  border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
  transition: transform .35s, border-color .35s, box-shadow .35s;
}
.contact-card:hover { transform: translateY(-4px); border-color: rgba(255,165,90,.35); box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.contact-card .cc-label { font-family: var(--font-mono); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; color: var(--mute); }
.contact-card .cc-value { font-size: 17px; font-weight: 600; }
.contact-card .cc-value a { color: var(--text); text-decoration: none; }
.contact-card .cc-value a:hover { color: var(--accent); }
.contact-card p { color: var(--dim); font-size: 14px; margin: 0; }

/* ============================================================
   responsive
   ============================================================ */
@media (max-width: 940px) {
  .hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .hero-media { order: -1; }
  .features-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 36px; }
  .step .line { display: none; }
  .shots-rail { grid-template-columns: repeat(2, 1fr); gap: 44px 24px; }
  .shot .phone { width: 248px; }
  .price-grid { grid-template-columns: 1fr; }
  .nav-links { display: none; }
  .trust .cc { margin-left: 0; width: 100%; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 20px; }
  .shots-rail { grid-template-columns: 1fr; gap: 48px; }
  .shot .phone { width: 264px; }
  .badges { width: 100%; }
  .store { flex: 1; }
  .foot-top { flex-direction: column; gap: 32px; }
  .contact-grid { grid-template-columns: 1fr; }
}

/* ── Vertailutaulukko (vertailu.html) ─────────────────────────────────────
   Leveä sisältö vierii omassa säiliössään, jotta sivu itse ei koskaan vieri
   sivusuunnassa kapealla ruudulla. */
.table-scroll{
  overflow-x:auto;
  -webkit-overflow-scrolling:touch;
  margin:2rem 0;
  border:1px solid var(--stroke);
  border-radius:var(--radius);
  background:var(--surface-solid);
}
table.cmp{
  border-collapse:collapse;
  width:100%;
  min-width:640px;
  font-size:.94rem;
}
table.cmp th,
table.cmp td{
  padding:.85rem 1rem;
  text-align:left;
  border-bottom:1px solid var(--stroke);
  vertical-align:top;
}
table.cmp thead th{
  font-family:var(--font-display);
  font-weight:700;
  color:var(--text);
  background:rgba(255,255,255,.03);
  position:sticky;
  top:0;
}
table.cmp thead th:nth-child(2){color:var(--orange-hi)}
table.cmp tbody tr:last-child td{border-bottom:none}
table.cmp td:first-child{color:var(--muted)}
table.cmp td.yes{color:#7FD18B}
table.cmp td.no{color:#8A98B0}
table.cmp td.part{color:var(--orange-hi)}

/* ── Tietoa-valikko ───────────────────────────────────────────────────────
   Alasvetovalikko <details>-elementillä eikä JavaScriptillä: se avautuu ja
   sulkeutuu selaimen omalla logiikalla, toimii näppäimistöllä ja on olemassa
   myös silloin kun skriptit eivät lataudu.

   Syy valikolle: navigaatiossa oli kahdeksan linkkiä, ja seitsemäs ja
   kahdeksas jäivät huomaamatta. Sisältösivut ovat nyt yhden otsikon alla. */
.nav-menu { position: relative; }
.nav-menu > summary {
  list-style: none; cursor: pointer;
  font-size: 14px; color: var(--mute); transition: color .25s;
}
.nav-menu > summary::-webkit-details-marker { display: none }
.nav-menu > summary::after {
  content: "▾"; margin-left: 5px; font-size: 11px; opacity: .7;
}
.nav-menu[open] > summary,
.nav-menu > summary:hover { color: var(--text); }
.nav-menu-items {
  position: absolute; top: calc(100% + 12px); left: -14px; z-index: 60;
  display: flex; flex-direction: column; gap: 2px; min-width: 210px;
  padding: 8px; border-radius: 14px;
  background: var(--surface-solid, #0C1628);
  border: 1px solid var(--stroke, rgba(140,170,220,.14));
  box-shadow: 0 18px 40px rgba(0,0,0,.45);
}
.nav-menu-items a {
  padding: 8px 12px; border-radius: 9px; white-space: nowrap;
}
.nav-menu-items a:hover { background: rgba(255,255,255,.06); color: var(--text); }

/* Staattinen hälytystaulukko (kartta.html). Leivotaan julkaisussa
   hakukoneita varten, ja se on myös se sisältö joka näkyy jos JavaScript ei
   aja. Kiinteät sarakkeet: silmä ei löydä saraketta jonka alkukohta vaihtelee
   rivin mukaan, ja väliviivoin eroteltu lista vei kolme kertaa tilan. */
.alert-static-meta { font-size: 13px; color: var(--mute); margin: 0 0 6px; }
/* Mainos listan yläpuolella: lista on ote, ja lukija näkee heti mistä loput
   löytyvät. Erottuu leipätekstistä vasemmalla palkilla, ei laatikolla —
   laatikko keskeyttäisi lukemisen taulukon edellä. */
.alert-static-cta {
  font-size: 13px; color: var(--mute); margin: 0 0 14px;
  padding-left: 11px; border-left: 2px solid var(--accent);
}
.alert-static-cta a { color: var(--accent); font-weight: 600; }
.alert-static {
  width: 100%; border-collapse: collapse; font-size: 13.5px; table-layout: fixed;
}
.alert-static th {
  text-align: left; font-family: var(--font-head); font-weight: 700;
  font-size: 12px; letter-spacing: .04em; text-transform: uppercase;
  color: var(--mute); padding: 0 10px 7px 0;
  border-bottom: 1px solid var(--stroke);
}
.alert-static td {
  padding: 6px 10px 6px 0; border-bottom: 1px solid var(--stroke);
  vertical-align: top;
}
.alert-static tr:last-child td { border-bottom: none; }
/* Aika ja lähde kiinteän levyisinä, hälytys vie lopun. Numerot tasavälein,
   jotta kellonajat asettuvat allekkain. */
.alert-static th:first-child, .alert-static td:first-child {
  width: 92px; font-variant-numeric: tabular-nums; color: var(--mute);
  white-space: nowrap;
}
.alert-static th:last-child, .alert-static td:last-child {
  width: 128px; color: var(--mute);
}
@media (max-width: 620px) {
  .alert-static { font-size: 12.5px; }
  .alert-static th:first-child, .alert-static td:first-child { width: 76px; }
  .alert-static th:last-child, .alert-static td:last-child { width: 96px; }
}

/* ── Silta etusivun väreihin ─────────────────────────────────────────────
   Uudemmat osat (Tietoa-valikko, karttasivu, taulukot) käyttävät etusivun
   muuttujanimiä. Määritellään ne tässä samoilla arvoilla — vanhat nimet
   (--mute, --font-head) jäävät ennalleen, joten mikään vanha sääntö ei muutu. */
:root{
  --bg-2:#081020;
  --surface:rgba(14,24,44,.55);
  --surface-solid:#0C1628;
  --stroke:rgba(140,170,220,.14);
  --text:#EAF0F9;
  --muted:#8A98B0;
  --mute:#8A98B0;
  --orange:#D87333;
  --orange-hi:#FFA25C;
  --radius:20px;
}


/* ── Mobiilivalikko ──────────────────────────────────────────────────────
   Aiemmin mobiili vain piilotti navigaation (display:none) eikä tilalle
   tullut mitään — puhelimella sivustolla ei ollut valikkoa lainkaan.
   Hampurilainen on checkbox+label eikä JavaScriptiä: toimii vaikka skriptit
   eivät lataudu, ja sama malli kelpaa molemmille sivurakenteille. */
.nav-toggle-box { display: none; }
.nav-toggle { display: none; font-size: 22px; line-height: 1; cursor: pointer;
              color: var(--text, #EAF0F9); padding: 6px 10px; user-select: none; }
@media (max-width: 700px) {
  .nav-toggle { display: block; }
  .nav-links {
    display: none; position: fixed; top: 58px; left: 0; right: 0; z-index: 90;
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 8px 18px 16px; background: var(--surface-solid, #0C1628);
    border-bottom: 1px solid var(--stroke, rgba(140,170,220,.14));
    box-shadow: 0 18px 40px rgba(0,0,0,.5);
  }
  .nav-toggle-box:checked ~ .nav-links { display: flex; }
  .nav-links > a { display: block; padding: 11px 0; font-size: 15px; }
  /* Tietoa-alavalikko aukeaa paneelin sisään, ei irralliseksi laatikoksi */
  .nav-links .nav-menu > summary { padding: 11px 0; font-size: 15px; }
  .nav-links .nav-menu-items {
    position: static; min-width: 0; padding: 0 0 4px 14px;
    background: none; border: none; box-shadow: none;
  }
}

/* ── Kuntasivut ─────────────────────────────────────────────────────────
   Kuntakohtaiset hälytyssivut (kunta/*.html). Generoidaan julkaisussa
   scripts/make_kunta_pages.py:llä, ks. sen alusta miksi. */
.page { padding: 34px 0 64px; }
.page h1 { font-family: var(--font-head); font-size: clamp(28px, 5vw, 40px);
  line-height: 1.12; margin: 0 0 14px; text-wrap: balance; }
.page h2 { font-family: var(--font-head); font-size: 21px; margin: 38px 0 10px; }
.page p { max-width: 68ch; }
.page .lead { font-size: 16.5px; line-height: 1.6; color: var(--text); }
.page .btn { display: inline-block; margin: 6px 0 4px; }

/* Murupolku. Pieni ja hillitty: se on suunnistusapu, ei sisältöä. */
.crumbs { font-size: 12.5px; color: var(--mute); margin: 0 0 18px; }
.crumbs a { color: var(--mute); }
.crumbs a:hover { color: var(--accent); }

/* Kuntalinkkien ruudukko. Sadan linkin lista on luettava vain jos linkit
   erottuvat toisistaan — siksi väli on iso ja rivitys vapaa. */
.kunta-links { max-width: none; line-height: 2.1; font-size: 14.5px; }
.kunta-links a { display: inline-block; margin-right: 4px; }
.kunta-n { color: var(--mute); font-size: 12px; margin-right: 10px;
  font-variant-numeric: tabular-nums; }
