/* ============================================================
   Tilannekartta — launch page styles
   Theme: Selkeä (light) — hardcoded production build
   ============================================================ */

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

  /* accent — alert orange */
  --accent: #E5742E;
  --accent-strong: #F0853C;
  --accent-ink: #150d06;

  /* category colours (constant across themes) */
  --fire: #CE4B4B;
  --traffic: #CD8038;
  --police: #4A7BB8;
  --medical: #36886C;
  --other: #6A7184;
  --ai: #8472C8;

  /* Selkeä (light) theme */
  --bg: #FBFAF7;
  --bg-2: #F4F2EC;
  --surface: #FFFFFF;
  --surface-2: #F6F4EF;
  --border: #E7E2D8;
  --text: #181A1F;
  --dim: #5A606C;
  --mute: #939AA6;
  --hero-bg: radial-gradient(120% 90% at 80% 6%, #FFFFFF 0%, #F4F1EA 60%);
  --shadow: 0 30px 60px -30px rgba(24,26,31,.22);

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

/* ============================================================
   base
   ============================================================ */
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  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;
}
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: sticky; top: 0; z-index: 50;
  backdrop-filter: blur(14px);
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  border-bottom: 1px solid color-mix(in srgb, var(--border) 70%, transparent);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-head); font-weight: 700; font-size: 18px; letter-spacing: -0.02em; }
.brand .glyph {
  width: 32px; height: 32px; border-radius: 9px;
  background-image: url("assets/icon.png");
  background-size: cover; background-position: center;
  flex: none;
  box-shadow: 0 0 0 1px rgba(0,0,0,.06), 0 2px 8px -4px rgba(0,0,0,.24);
}
.nav-links { display: flex; align-items: center; gap: 30px; }
.nav-links a { font-size: 14.5px; color: var(--dim); transition: color .15s; }
.nav-links a:hover { color: var(--text); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* ============================================================
   buttons & store badges
   ============================================================ */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  padding: 11px 18px; border-radius: 11px; cursor: pointer;
  border: 1px solid transparent; transition: transform .12s, background .15s, border-color .15s;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-strong); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { 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: var(--bg-2); border-top: 1px solid var(--border); padding: 56px 0 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
   ============================================================ */
@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 {
  background: var(--bg-2); border-bottom: 1px solid var(--border);
  padding: clamp(40px, 6vw, 72px) 0;
}
.page-hero .eyebrow { margin-bottom: 14px; display: flex; }
.page-hero h1 { font-size: clamp(28px, 4vw, 44px); 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 { color: var(--accent); text-decoration: underline; text-decoration-color: color-mix(in srgb, var(--accent) 40%, transparent); }
.page-body a: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: var(--surface); border: 1px solid var(--border); border-radius: 16px;
  padding: 28px; display: flex; flex-direction: column; gap: 10px;
}
.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; }
}
