/* =====================================================================
   Treeni — etusivu (landing). Omat tokenit, samat värit kuin sovelluksella
   (SPEC §7). Ei ulkoisia fontteja tai kirjastoja.
   ===================================================================== */
:root {
  color-scheme: dark;
  --bg: #0A0B10;
  --bg-2: #0E1017;
  --surface-1: #12141C;
  --surface-2: #181B26;
  --surface-3: #212535;
  --line: rgba(255, 255, 255, .07);
  --line-strong: rgba(255, 255, 255, .13);
  --text: #F4F6FB;
  --text-2: #C3C7D6;
  --text-muted: #8B90A5;      /* 6.3:1 bg:tä vasten */
  --lime: #B6FF3B;
  --cyan: #27E8FF;
  --magenta: #FF3D9A;
  --orange: #FF8A3D;
  --violet: #9B7BFF;
  --on-accent: #0A0B10;

  --font-sans: "SF Pro Text", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, system-ui, sans-serif;
  --font-display: "SF Pro Display", "Inter Display", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI Variable Display", "Segoe UI", Roboto, system-ui, sans-serif;
  --font-mono: "SF Mono", "JetBrains Mono", ui-monospace, Menlo, Consolas, "Roboto Mono", monospace;

  --wrap: 1160px;
  --gutter: 20px;
  --radius: 20px;
  --radius-lg: 28px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --header-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 1rem/1.55 var(--font-sans);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
@supports (overflow: clip) { body { overflow-x: clip; } }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); margin: 0; letter-spacing: -.03em; line-height: 1.05; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
ul, ol { margin: 0; padding: 0; list-style: none; }
.num { font-variant-numeric: tabular-nums; }
.mono { font-family: var(--font-mono); }

:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 8px; }
.skip-link {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--lime); color: var(--on-accent); padding: 10px 14px; border-radius: 10px; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 12px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gutter); }

/* ---------- Painikkeet ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 22px; border-radius: 14px; border: 1px solid transparent;
  font: 700 1rem/1 var(--font-sans); text-decoration: none; cursor: pointer;
  transition: transform .15s var(--ease), background-color .15s, box-shadow .2s, border-color .15s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn--primary { background: var(--lime); color: var(--on-accent); box-shadow: 0 0 0 1px rgba(182,255,59,.4), 0 10px 32px -8px rgba(182,255,59,.55); }
.btn--primary:hover { background: #C8FF6A; box-shadow: 0 0 0 1px rgba(182,255,59,.6), 0 14px 40px -8px rgba(182,255,59,.7); }
.btn--lg { min-height: 58px; padding: 0 28px; font-size: 1.0625rem; border-radius: 16px; }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { background: var(--surface-2); border-color: rgba(255,255,255,.22); }
.btn--sm { min-height: 40px; padding: 0 14px; font-size: .9rem; border-radius: 11px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 11, 16, .78);
  -webkit-backdrop-filter: saturate(140%) blur(14px); backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; font: 800 1.25rem/1 var(--font-display); letter-spacing: -.03em; }
.brand__mark { width: 32px; height: 32px; border-radius: 9px; background: var(--surface-2); border: 1px solid var(--line-strong); display: grid; place-items: center; }
.brand__mark svg { width: 20px; height: 20px; filter: drop-shadow(0 0 6px rgba(182,255,59,.55)); }
.site-nav { display: none; gap: 4px; margin-left: 12px; }
.site-nav a { text-decoration: none; color: var(--text-2); font-weight: 500; font-size: .95rem; padding: 8px 12px; border-radius: 10px; }
.site-nav a:hover { color: var(--text); background: var(--surface-1); }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.header-cta { display: none; }
.lang-switch { display: inline-flex; padding: 3px; border-radius: 12px; background: var(--surface-1); border: 1px solid var(--line); }
.lang-switch button {
  min-width: 44px; min-height: 36px; border: 0; border-radius: 9px; background: transparent; color: var(--text-muted);
  font: 700 .8125rem/1 var(--font-mono); letter-spacing: .06em; cursor: pointer;
}
.lang-switch button[aria-pressed="true"] { background: var(--surface-3); color: var(--text); }
.lang-switch button:hover { color: var(--text); }
@media (min-width: 900px) {
  .site-nav { display: flex; }
  .header-cta { display: inline-flex; }
}

/* ---------- Osion yleiset ---------- */
section { position: relative; }
.section { padding: 72px 0; }
@media (min-width: 900px) { .section { padding: 96px 0; } }
.section--tight { padding: 64px 0; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 600 .75rem/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted);
}
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 2px; background: var(--lime); box-shadow: 0 0 8px rgba(182,255,59,.7); }
.section-head { max-width: 680px; margin-bottom: 44px; }
.section-head h2 { font-size: clamp(2rem, 5.2vw, 3.25rem); font-weight: 800; margin-top: 14px; }
.section-head p { color: var(--text-2); font-size: 1.0625rem; margin-top: 16px; max-width: 60ch; }
.accent { color: var(--lime); }

/* ---------- Hero ---------- */
.hero { padding: 40px 0 72px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -10% auto auto; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(182,255,59,.10), transparent 70%);
}
.hero__grid { display: grid; gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(2.6rem, 9.6vw, 4.75rem); font-weight: 800; letter-spacing: -.045em; line-height: .98; margin-top: 18px; }
.hero h1 .accent { display: inline; text-shadow: 0 0 32px rgba(182,255,59,.28); }
.hero__lead { font-size: clamp(1.0625rem, 2.6vw, 1.25rem); color: var(--text-2); margin-top: 22px; max-width: 34ch; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero__ctas .btn--primary { flex: 1 1 auto; }
@media (min-width: 520px) { .hero__ctas .btn--primary { flex: 0 0 auto; } }
.trust { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-top: 26px; color: var(--text-muted); font-size: .9rem; }
.trust li { display: inline-flex; align-items: center; gap: 7px; }
.trust svg { width: 16px; height: 16px; color: var(--lime); flex: none; }
.hero__stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 40px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; max-width: 460px; }
.hero__stats div { background: var(--bg); padding: 14px 14px 12px; }
.hero__stats b { display: block; font: 800 1.5rem/1 var(--font-display); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero__stats span { display: block; margin-top: 6px; font: 500 .6875rem/1.3 var(--font-mono); letter-spacing: .08em; text-transform: uppercase; color: var(--text-muted); }
.hero__visual { position: relative; display: flex; justify-content: center; }
@media (min-width: 960px) {
  .hero { padding: 64px 0 104px; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 40px; }
  .hero .phone { width: 276px; }
}

/* ---------- Puhelinmockup ---------- */
.phone {
  position: relative; width: min(300px, 78vw); aspect-ratio: 600 / 1298;
  padding: 9px; border-radius: 46px;
  background: linear-gradient(160deg, #2A2E3C, #14161E 45%, #0D0F15);
  box-shadow: 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.06), 0 40px 80px -30px rgba(0,0,0,.9), 0 20px 60px -20px rgba(39,232,255,.12);
  box-sizing: content-box;
}
.phone--island::before { /* dynamic island (vain HTML-näytössä; kuvakaappauksissa ei peitä sisältöä) */
  content: ""; position: absolute; z-index: 3; top: 19px; left: 50%; width: 84px; height: 24px; margin-left: -42px;
  border-radius: 20px; background: #000;
}
.phone__screen { position: relative; width: 100%; height: 100%; border-radius: 37px; overflow: hidden; background: var(--bg); }
.phone__screen img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone--sm { width: min(250px, 64vw); }

/* Hero-näyttö: elävä HTML-versio sovelluksen Ravinto/Tänään-kortista */
.app-screen { position: absolute; inset: 0; padding: 50px 16px 16px; display: flex; flex-direction: column; gap: 12px; font-size: 13px; }
.app-screen__top { display: flex; align-items: flex-end; justify-content: space-between; }
.app-screen__date { font: 600 9px/1 var(--font-mono); letter-spacing: .14em; text-transform: uppercase; color: var(--text-muted); display: flex; gap: 6px; align-items: center; }
.app-screen__date::before { content: ""; width: 5px; height: 5px; border-radius: 1px; background: var(--lime); }
.app-screen__title { font: 800 22px/1 var(--font-display); letter-spacing: -.03em; margin-top: 6px; }
.app-card { background: var(--surface-1); border: 1px solid var(--line); border-radius: 18px; padding: 14px; }
.app-card--ring { background: linear-gradient(170deg, rgba(182,255,59,.07), rgba(18,20,28,1) 50%); border-color: rgba(182,255,59,.18); }
.app-card__head { display: flex; justify-content: space-between; align-items: baseline; }
.app-card__head b { font: 700 13px/1.2 var(--font-display); }
.app-card__head span { color: var(--text-muted); font-size: 10px; }
.ring { position: relative; width: 150px; height: 150px; margin: 10px auto 4px; }
.ring svg { width: 100%; height: 100%; transform: rotate(-90deg); overflow: visible; }
.ring__track { fill: none; stroke: rgba(182,255,59,.12); stroke-width: 11; }
.ring__val { fill: none; stroke: var(--lime); stroke-width: 11; stroke-linecap: round; filter: drop-shadow(0 0 6px rgba(182,255,59,.55));
  stroke-dasharray: 100 100; stroke-dashoffset: 100; animation: ring-fill 1.8s .35s var(--ease) forwards; }
.ring__ticks { fill: none; stroke: rgba(255,255,255,.14); stroke-width: 1.2; stroke-dasharray: .6 2.53; }
.ring__center { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; }
.ring__center b { font: 800 30px/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.ring__center span { font: 600 8.5px/1.5 var(--font-mono); letter-spacing: .12em; color: var(--text-muted); text-transform: uppercase; margin-top: 4px; }
.macros { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; margin-top: 10px; }
.macro { text-align: center; }
.macro__ring { position: relative; width: 52px; height: 52px; margin: 0 auto; }
.macro__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.macro__ring circle { fill: none; stroke-width: 5; }
.macro__ring .t { stroke: rgba(255,255,255,.07); }
.macro__ring .v { stroke-linecap: round; stroke-dasharray: 100 100; stroke-dashoffset: 100; animation: ring-fill 1.4s var(--ease) forwards; }
.macro__ring b { position: absolute; inset: 0; display: grid; place-items: center; font: 800 12px/1 var(--font-display); font-variant-numeric: tabular-nums; }
.macro small { display: flex; align-items: center; justify-content: center; gap: 4px; margin-top: 5px; font-size: 9.5px; color: var(--text-2); }
.macro small i { width: 6px; height: 6px; border-radius: 2px; }
.m-p .v { stroke: var(--cyan); --to: 42; animation-delay: .7s; } .m-p i { background: var(--cyan); }
.m-c .v { stroke: var(--orange); --to: 55; animation-delay: .85s; } .m-c i { background: var(--orange); }
.m-f .v { stroke: var(--magenta); --to: 61; animation-delay: 1s; } .m-f i { background: var(--magenta); }
.ring__val { --to: 42; }
@keyframes ring-fill { to { stroke-dashoffset: var(--to); } }

.app-next { display: flex; align-items: center; gap: 12px; }
.app-next__icon { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: rgba(182,255,59,.1); color: var(--lime); flex: none; }
.app-next__icon svg { width: 18px; height: 18px; }
.app-next small { display: block; font: 600 8.5px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }
.app-next b { display: block; font: 700 14px/1.25 var(--font-display); margin-top: 3px; }
.app-next span { display: block; color: var(--text-muted); font-size: 10.5px; }
.app-start { margin-top: auto; height: 42px; border-radius: 13px; background: var(--lime); color: var(--on-accent); display: flex; align-items: center; justify-content: center; gap: 8px; font: 700 13px/1 var(--font-sans); box-shadow: 0 8px 24px -8px rgba(182,255,59,.6); }
.app-start svg { width: 13px; height: 13px; }
.app-streak { display: flex; justify-content: space-between; align-items: center; }
.app-streak__dots { display: flex; gap: 5px; }
.app-streak__dots i { width: 14px; height: 14px; border-radius: 50%; background: var(--surface-3); display: grid; place-items: center; }
.app-streak__dots i.on { background: var(--lime); }
.app-streak__dots i.on::after { content: ""; width: 5px; height: 3px; border: solid var(--on-accent); border-width: 0 0 1.6px 1.6px; transform: rotate(-45deg) translate(0, -1px); }
.app-streak small { font: 600 8.5px/1.2 var(--font-mono); letter-spacing: .12em; text-transform: uppercase; color: var(--text-muted); }

/* Kelluvat sirut heron puhelimen ympärillä (oikeita sovelluksen tiloja) */
.float {
  position: absolute; z-index: 4; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(24, 27, 38, .92);
  border: 1px solid var(--line-strong); box-shadow: 0 18px 40px -14px rgba(0,0,0,.8);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px);
  font-size: .8125rem; white-space: nowrap;
  animation: float-in .7s var(--ease) both;
}
.float b { display: block; font: 700 .875rem/1.2 var(--font-display); }
.float span { display: block; color: var(--text-muted); font-size: .75rem; }
.float__icon { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float__icon svg { width: 18px; height: 18px; }
.float--pr { left: -6px; top: 22%; animation-delay: 1.6s; }
.float--pr .float__icon { background: rgba(182,255,59,.14); color: var(--lime); }
.float--rest { right: -4px; bottom: 11%; animation-delay: 2s; }
.float--rest .mini-ring { width: 34px; height: 34px; }
.mini-ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.mini-ring circle { fill: none; stroke-width: 4; }
.mini-ring .t { stroke: rgba(39,232,255,.15); }
.mini-ring .v { stroke: var(--cyan); stroke-linecap: round; stroke-dasharray: 100 100; animation: rest 12s linear 2.4s infinite; filter: drop-shadow(0 0 4px rgba(39,232,255,.6)); }
@keyframes rest { from { stroke-dashoffset: 0; } to { stroke-dashoffset: 100; } }
@keyframes float-in { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: 1; transform: none; } }
@media (min-width: 560px) {
  .float--pr { left: calc(50% - 250px); }
  .float--rest { right: calc(50% - 250px); }
}

/* ---------- Tavoitteet ---------- */
.goals { display: grid; gap: 14px; }
@media (min-width: 640px) { .goals { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .goals { grid-template-columns: repeat(4, 1fr); } }
.goal {
  --c: var(--lime);
  position: relative; padding: 22px 22px 24px; border-radius: var(--radius); background: var(--surface-1); border: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 12px; overflow: hidden;
  transition: border-color .2s, transform .2s var(--ease);
}
.goal:hover { border-color: color-mix(in srgb, var(--c) 35%, transparent); transform: translateY(-2px); }
.goal::after { content: ""; position: absolute; left: 22px; right: 22px; top: 0; height: 2px; background: var(--c); border-radius: 0 0 2px 2px; opacity: .85; }
.goal__icon { width: 44px; height: 44px; border-radius: 13px; display: grid; place-items: center; color: var(--c); background: color-mix(in srgb, var(--c) 12%, transparent); }
.goal__icon svg { width: 22px; height: 22px; }
.goal h3 { font-size: 1.375rem; font-weight: 800; }
.goal p { color: var(--text-2); font-size: .95rem; }
.goal__tag { margin-top: auto; padding-top: 8px; font: 600 .6875rem/1.4 var(--font-mono); letter-spacing: .1em; text-transform: uppercase; color: var(--c); }
.goal--fat { --c: var(--orange); }
.goal--hyp { --c: var(--lime); }
.goal--str { --c: var(--cyan); }
.goal--sport { --c: var(--magenta); }

/* ---------- Miten se toimii ---------- */
.how { background: linear-gradient(180deg, transparent, var(--bg-2) 30%, var(--bg-2) 70%, transparent); }
.steps { display: grid; gap: 14px; counter-reset: step; }
@media (min-width: 860px) { .steps { grid-template-columns: repeat(3, 1fr); gap: 18px; } }
.step { position: relative; padding: 26px 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-1); }
.step__n { display: flex; align-items: center; gap: 12px; font: 700 .75rem/1 var(--font-mono); letter-spacing: .14em; color: var(--text-muted); text-transform: uppercase; }
.step__n b { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; font: 800 1.0625rem/1 var(--font-display); letter-spacing: 0; color: var(--on-accent); background: var(--lime); }
.step:nth-child(2) .step__n b { background: var(--cyan); }
.step:nth-child(3) .step__n b { background: var(--magenta); }
.step h3 { font-size: 1.375rem; font-weight: 800; margin-top: 18px; }
.step p { color: var(--text-2); margin-top: 10px; font-size: .975rem; }
.step__chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 16px; }
.chip { display: inline-flex; align-items: center; min-height: 28px; padding: 0 10px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--line); font: 500 .75rem/1 var(--font-mono); color: var(--text-2); letter-spacing: .02em; }

/* ---------- Ominaisuudet ---------- */
.features { display: grid; grid-template-columns: minmax(0, 1fr); gap: 96px; }
.feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: 36px; align-items: center; }
.feature > * { min-width: 0; }
.feature__media { display: flex; justify-content: center; position: relative; }
.feature__media::before {
  content: ""; position: absolute; inset: 10% 5%; border-radius: 50%; pointer-events: none;
  background: radial-gradient(closest-side, color-mix(in srgb, var(--c, var(--lime)) 14%, transparent), transparent);
}
.feature__text h3 { font-size: clamp(1.75rem, 4.4vw, 2.5rem); font-weight: 800; margin-top: 14px; }
.feature__text > p { color: var(--text-2); font-size: 1.0625rem; margin-top: 14px; max-width: 52ch; }
.feature .eyebrow::before { background: var(--c, var(--lime)); box-shadow: 0 0 8px color-mix(in srgb, var(--c, var(--lime)) 70%, transparent); }
.ticks { display: grid; gap: 12px; margin-top: 24px; }
.ticks li { display: grid; grid-template-columns: 22px 1fr; gap: 12px; color: var(--text-2); }
.ticks li::before {
  content: ""; width: 22px; height: 22px; border-radius: 7px; margin-top: 1px;
  background: color-mix(in srgb, var(--c, var(--lime)) 14%, transparent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5 6.8 11 12 5.5' fill='none' stroke='%23F4F6FB' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.ticks b { color: var(--text); font-weight: 600; }
.note {
  margin-top: 22px; padding: 14px 16px; border-radius: 14px; border: 1px solid var(--line-strong); background: var(--surface-1);
  color: var(--text-2); font-size: .9rem; display: flex; gap: 10px;
}
.note svg { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--magenta); }
.feature--prog { --c: var(--lime); }
.feature--nutri { --c: var(--orange); }
.feature--log { --c: var(--cyan); }
.feature--track { --c: var(--cyan); }
.feature--ai { --c: var(--magenta); }
.duo { position: relative; width: min(100%, 470px); height: auto; display: flex; justify-content: center; }
.duo .phone { width: min(230px, 54vw); }
.duo .phone:first-child { transform: translateX(14%) rotate(-3deg); z-index: 1; }
.duo .phone:last-child { transform: translateX(-14%) translateY(36px) rotate(3deg); z-index: 2; }
@media (min-width: 900px) {
  .feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 64px; }
  .feature:nth-child(even) .feature__media { order: 2; }
}

/* Lukurivi ominaisuuksien välissä */
.figures { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
@media (min-width: 760px) { .figures { grid-template-columns: repeat(4, 1fr); } }
.figures div { background: var(--bg); padding: 24px 20px; }
.figures b { display: block; font: 800 clamp(2rem, 6vw, 2.75rem)/1 var(--font-display); letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.figures div:nth-child(1) b { color: var(--lime); }
.figures div:nth-child(2) b { color: var(--cyan); }
.figures div:nth-child(3) b { color: var(--magenta); }
.figures div:nth-child(4) b { color: var(--orange); }
.figures span { display: block; margin-top: 8px; color: var(--text-muted); font-size: .875rem; }

/* ---------- Tutkimus ---------- */
.science { display: grid; gap: 28px; padding: 36px 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background:
  radial-gradient(600px 300px at 100% 0%, rgba(39,232,255,.07), transparent 70%), var(--surface-1); }
.science h2 { font-size: clamp(1.875rem, 4.6vw, 2.75rem); font-weight: 800; margin-top: 14px; }
.science > div > p { color: var(--text-2); margin-top: 16px; font-size: 1.0625rem; max-width: 58ch; }
.pillars { display: grid; gap: 12px; }
.pillar { padding: 18px; border-radius: 16px; background: var(--bg); border: 1px solid var(--line); }
.pillar h3 { font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; display: flex; gap: 10px; align-items: center; }
.pillar h3 i { width: 8px; height: 8px; border-radius: 2px; background: var(--c); }
.pillar p { color: var(--text-muted); font-size: .9rem; margin-top: 6px; }
.science__fine { color: var(--text-muted); font-size: .875rem; margin-top: 18px; }
@media (min-width: 900px) { .science { grid-template-columns: 1.1fr .9fr; padding: 48px; gap: 48px; align-items: center; } }

/* ---------- Asennus ---------- */
.install-grid { display: grid; gap: 14px; }
@media (min-width: 860px) { .install-grid { grid-template-columns: repeat(3, 1fr); } }
.platform { padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface-1); }
.platform__head { display: flex; align-items: center; gap: 12px; }
.platform__head svg { width: 26px; height: 26px; color: var(--text-2); }
.platform h3 { font-size: 1.1875rem; font-weight: 700; letter-spacing: -.015em; }
.platform small { display: block; color: var(--text-muted); font-size: .8125rem; margin-top: 2px; }
.platform ol { margin-top: 18px; display: grid; gap: 12px; counter-reset: s; }
.platform li { counter-increment: s; display: grid; grid-template-columns: 26px 1fr; gap: 10px; color: var(--text-2); font-size: .95rem; }
.platform li::before { content: counter(s); width: 26px; height: 26px; border-radius: 8px; background: var(--surface-3); color: var(--text); display: grid; place-items: center; font: 700 .75rem/1 var(--font-mono); }
.platform li b { color: var(--text); font-weight: 600; }
.kbd { display: inline-flex; align-items: center; gap: 4px; padding: 1px 7px; border-radius: 6px; background: var(--surface-3); border: 1px solid var(--line-strong); font: 600 .8125rem/1.5 var(--font-sans); color: var(--text); white-space: nowrap; }
.kbd svg { width: 13px; height: 13px; display: inline-block; vertical-align: -2px; }
.install-cta { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; padding: 18px 20px; border-radius: var(--radius); border: 1px solid rgba(182,255,59,.25); background: rgba(182,255,59,.05); }
.install-cta p { color: var(--text-2); font-size: .95rem; flex: 1 1 260px; }
.install-cta[hidden] { display: none; }

/* ---------- UKK ---------- */
.faq { display: grid; gap: 10px; max-width: 820px; }
.faq details { border-radius: 16px; border: 1px solid var(--line); background: var(--surface-1); transition: border-color .2s; }
.faq details[open] { border-color: var(--line-strong); }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 20px; min-height: 60px; font: 700 1.0625rem/1.3 var(--font-display); letter-spacing: -.01em; border-radius: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 28px; height: 28px; border-radius: 8px; background: var(--surface-3) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M8 3.5v9M3.5 8h9' stroke='%23F4F6FB' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") center / 14px no-repeat;
  transition: transform .2s var(--ease);
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 20px 20px; color: var(--text-2); max-width: 66ch; }

/* ---------- Loppu-CTA ---------- */
.final { text-align: center; padding: 96px 0; }
.final h2 { font-size: clamp(2.25rem, 7vw, 4rem); font-weight: 800; letter-spacing: -.045em; }
.final p { color: var(--text-2); margin: 18px auto 0; max-width: 46ch; font-size: 1.0625rem; }
.final .btn { margin-top: 32px; }
.final__ring { width: 120px; height: 120px; margin: 0 auto 28px; }
.final__ring svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.final__ring circle { fill: none; stroke-width: 7; stroke-linecap: round; }

/* ---------- Footer ---------- */
.site-footer .brand { color: var(--text); }
.site-footer { border-top: 1px solid var(--line); padding: 40px 0 48px; color: var(--text-muted); font-size: .875rem; }
.site-footer .wrap { display: grid; gap: 24px; }
.footer-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px; }
.footer-top nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer-top nav a { text-decoration: none; color: var(--text-2); padding: 6px 0; }
.footer-top nav a:hover { color: var(--text); }
.footer-local { display: inline-flex; align-items: center; gap: 8px; color: var(--text-2); font-weight: 500; }
.footer-local svg { width: 16px; height: 16px; color: var(--lime); }
.disclaimer { max-width: 80ch; line-height: 1.6; }

/* ---------- Ilmestymisanimaatio ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .mini-ring .v { animation: none !important; stroke-dashoffset: 30; }
  .js .reveal { opacity: 1; transform: none; }
}
