/* Norpan nettisivu. Sama kuvakieli kuin sovelluksessa: paksut tummat ääriviivat, pyöreät muodot,
   "painettavat" napit ja Fredoka-fontti (omalta palvelimelta, ei Googlelta). */

@font-face { font-family: Fredoka; font-weight: 400; font-display: swap; src: url(/assets/fonts/Fredoka-400.ttf) format('truetype'); }
@font-face { font-family: Fredoka; font-weight: 500; font-display: swap; src: url(/assets/fonts/Fredoka-500.ttf) format('truetype'); }
@font-face { font-family: Fredoka; font-weight: 600; font-display: swap; src: url(/assets/fonts/Fredoka-600.ttf) format('truetype'); }
@font-face { font-family: Fredoka; font-weight: 700; font-display: swap; src: url(/assets/fonts/Fredoka-700.ttf) format('truetype'); }

:root {
  --ink: #2b2340;
  --muted: #5d6478;
  --bg: #eaf6fc;
  --sky: #9fd9f8;
  --sky-light: #cdeefd;
  --water: #3aa7da;
  --water-deep: #2a8fc4;
  --sun: #ffcf4a;
  --grass: #6fbf63;
  --grass-light: #e2f3d8;
  --cream: #fff8ea;
  --pink: #ff7f96;
  --white: #fff;
  --line: 3px solid var(--ink);
  --shadow: 0 5px 0 var(--ink);
  --radius: 26px;
  --round: 'Fredoka', ui-rounded, 'SF Pro Rounded', system-ui, sans-serif;
  --text: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --wrap: 1120px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 500 18px/1.55 var(--round); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 2px; text-underline-offset: 3px; }
a:hover { text-decoration-color: var(--water); }
:focus-visible { outline: 3px solid var(--water); outline-offset: 3px; border-radius: 8px; }
h1, h2, h3 { font-family: var(--round); margin: 0; line-height: 1.08; letter-spacing: -0.01em; text-wrap: balance; }
h1 { font-weight: 700; font-size: clamp(44px, 7.4vw, 86px); }
h2 { font-weight: 700; font-size: clamp(32px, 4.6vw, 54px); }
h3 { font-weight: 600; font-size: 23px; }
p { margin: 0; text-wrap: pretty; }
.lead { font-size: clamp(18px, 1.8vw, 21px); color: var(--muted); line-height: 1.5; }
.narrow { max-width: 620px; }
mark.todo { background: #ffe14d; color: var(--ink); outline: 2px dashed #d6334f; outline-offset: 1px; border-radius: 4px; padding: 0 3px; }

.skip { position: absolute; left: 12px; top: -60px; background: var(--white); border: var(--line); border-radius: 12px; padding: 8px 14px; z-index: 50; }
.skip:focus { top: 12px; }

/* ---------- Yläpalkki ---------- */
.topbar { position: relative; z-index: 20; display: flex; align-items: center; gap: 20px; max-width: var(--wrap); margin: 12px auto 0; padding: 8px 10px 8px 16px; background: var(--white); border: var(--line); border-radius: 999px; box-shadow: var(--shadow); width: calc(100% - 32px); }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 24px; text-decoration: none; }
.brand svg { width: 38px; height: 38px; }
.topnav { display: flex; gap: 22px; margin-left: 8px; }
.topnav a { text-decoration: none; font-weight: 600; color: var(--muted); }
.topnav a:hover { color: var(--ink); }
.topbar-end { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { font-weight: 600; font-size: 15px; color: var(--muted); text-decoration: none; }
.lang:hover { color: var(--ink); }
@media (max-width: 820px) { .topnav { display: none; } }
@media (max-width: 420px) { .lang { display: none; } .topbar { gap: 10px; } }

/* ---------- Napit ---------- */
.btn { --bg-btn: var(--sun); display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 0 24px; font: 700 18px var(--round); color: var(--ink); background: var(--bg-btn); border: var(--line); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); text-decoration: none; cursor: pointer; transition: transform .08s, box-shadow .08s; }
.btn:hover { text-decoration: none; filter: brightness(1.03); }
.btn:active { transform: translateY(4px); box-shadow: 0 0 0 var(--ink); }
.btn-white { --bg-btn: var(--white); }
.btn-small { min-height: 42px; padding: 0 16px; font-size: 16px; border-radius: 999px; }
.link-btn { background: none; border: 0; font: 600 15px var(--round); color: var(--muted); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 4px; }
.arrow-link { display: inline-block; margin-top: 28px; font-weight: 600; font-size: 19px; }
.badge img { height: 52px; width: auto; }
.badge { display: inline-block; border-radius: 12px; transition: transform .12s; }
.badge:hover { transform: translateY(-2px); }

/* ---------- Kicker (pieni tarra otsikon yllä) ---------- */
.kicker { display: inline-block; font-weight: 600; font-size: 15px; padding: 4px 12px; background: var(--white); border: 2px solid var(--ink); border-radius: 999px; margin-bottom: 16px; transform: rotate(-1.5deg); }

/* ---------- Puhelin ---------- */
.phone { margin: 0; aspect-ratio: 393 / 852; padding: 3.4%; background: #1f1b2b; border: var(--line); border-radius: 15% / 7%; box-shadow: 0 8px 0 var(--ink); }
.phone.tilt { transform: rotate(3deg); }
.phone-screen { position: relative; height: 100%; border-radius: 12% / 5.6%; overflow: hidden; background: var(--top, var(--sky)); container-type: inline-size; }
.statusbar { position: absolute; inset: 0 0 auto; height: 6.34%; display: flex; align-items: center; justify-content: space-between; padding: 0 9% 0 10%; font: 600 4.2cqw/1 var(--text); color: #111; z-index: 1; }
.phone-screen.dark .statusbar { color: #fff; }
.statusbar .island { position: absolute; left: 50%; top: 22%; width: 31%; height: 62%; transform: translateX(-50%); background: #000; border-radius: 999px; }
.sb-icons { display: flex; gap: 1.6cqw; align-items: center; }
.sb-icons svg { height: 3.1cqw; width: auto; fill: currentColor; }
.phone-screen img { position: absolute; top: 6.34%; left: 0; width: 100%; height: 93.66%; object-fit: cover; object-position: top; }

/* ---------- Osiot ---------- */
.band { padding: clamp(72px, 10vw, 128px) 20px; }
.band-grass { background: var(--grass-light); }
.band-light { background: var(--cream); }
.band-cream { background: #fffdf6; }
.band-sky { background: var(--sky-light); }
.band-ink { background: var(--ink); color: var(--white); }
.band-ink .kicker { color: var(--ink); }
.wrap { max-width: var(--wrap); margin: 0 auto; }
.narrow-wrap { max-width: 780px; }
.center { text-align: center; }
.center > .lead { margin-left: auto; margin-right: auto; max-width: 640px; }
h2 + .lead { margin-top: 16px; }
.flag { display: inline-block; width: 21px; height: 13px; vertical-align: -1px; margin-left: 4px; border-radius: 2px; box-shadow: 0 0 0 1px #c9cfdb; }
.two { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 80px); align-items: center; }
@media (max-width: 860px) { .two { grid-template-columns: 1fr; } }
/* Kapealla näytöllä rivit (puhelimet) vierivät sivuttain. */
@media (max-width: 760px) {
  .slide { display: grid; grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(68%, 260px); overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; margin-inline: -20px; padding: 12px 20px 20px; scroll-padding-inline: 20px; }
  .slide::-webkit-scrollbar { display: none; }
  .slide > li { scroll-snap-align: center; }
}

/* ---------- Hero ---------- */
/* Koko ikkunan korkuinen: otsikko ylhäällä, puhelin nousee metsän edestä ja painuu niittyyn. */
.hero { position: relative; margin-top: -76px; padding-top: calc(76px + clamp(28px, 6svh, 72px)); min-height: 100svh; display: flex; flex-direction: column; text-align: center; background: linear-gradient(180deg, #a9e0fb 0%, #d9f2fe 58%, #eef9f3 100%); overflow: hidden; }
.hero-sky { position: absolute; inset: 0; pointer-events: none; }
.hero-sun { position: absolute; width: 112px; height: 112px; right: 9%; top: 128px; border-radius: 50%; background: #ffe27a; box-shadow: 0 0 0 16px rgba(255, 226, 122, .35), 0 0 0 38px rgba(255, 226, 122, .14); }
.cloud { position: absolute; width: 150px; height: 44px; background: #fff; border-radius: 999px; animation: cloud 28s ease-in-out infinite alternate; }
.cloud::before, .cloud::after { content: ''; position: absolute; background: #fff; border-radius: 50%; }
.cloud::before { width: 66px; height: 66px; left: 24px; top: -32px; }
.cloud::after { width: 50px; height: 50px; left: 74px; top: -20px; }
.c1 { left: 5%; top: 170px; }
.c2 { left: 76%; top: 290px; scale: .7; animation-duration: 36s; animation-direction: alternate-reverse; }
.c3 { left: 30%; top: 96px; scale: .5; animation-duration: 44s; }
@keyframes cloud { to { translate: 70px 0; } }
.hero-text { position: relative; max-width: 940px; margin: 0 auto; padding: 0 20px; }
.hero h1 { font-size: clamp(40px, min(8vw, 10svh), 100px); letter-spacing: -0.02em; line-height: 1.02; }
.hero .lead { margin: 18px auto 0; max-width: 640px; color: #34405c; }
.lead { font-weight: 400; }
.cta { display: flex; align-items: center; justify-content: center; gap: 16px; margin-top: 26px; flex-wrap: wrap; }
.cta-note { font-weight: 600; color: #3c4560; }
.hero-stage { position: relative; flex: 1 1 0; min-height: 260px; margin-top: clamp(20px, 4svh, 44px); container-type: size; }
.hero-land { position: absolute; left: 0; bottom: 0; width: 100%; height: 72%; max-width: none; object-fit: cover; object-position: center bottom; }
.hero-phone { position: absolute; left: 50%; top: 0; width: calc(112cqh * 393 / 852); transform: translateX(-50%) rotate(-2deg); transform-origin: 50% 0; z-index: 2; }
.hero-front { position: absolute; left: 0; bottom: -1px; width: 100%; height: 16%; max-width: none; fill: var(--grass-light); z-index: 3; }

/* Leijuvat kortit puhelimen vieressä (sovelluksen omia näkymiä pienoiskoossa). */
.float-card { position: absolute; z-index: 4; width: 246px; padding: 14px 16px; background: var(--white); border: var(--line); border-radius: 22px; box-shadow: var(--shadow); text-align: left; font-size: 15px; line-height: 1.35; animation: float 5.5s ease-in-out infinite; }
@keyframes float { 50% { translate: 0 -8px; } }
.fc-shield { right: calc(50% + 23cqh); top: 12%; rotate: -3deg; }
.fc-week { left: calc(50% + 23cqh); top: 6%; rotate: 2deg; animation-delay: -2s; }
.fc-rain { left: calc(50% + 20cqh); top: 50%; width: auto; max-width: 290px; display: flex; gap: 10px; align-items: center; rotate: -2deg; animation-delay: -3.5s; background: #e7f8ff; }
.fc-head { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); margin-bottom: 8px; }
.fc-head b { color: var(--ink); }
.fc-head small { margin-left: auto; font-size: 13px; }
.fc-icon { width: 30px; height: 30px; border-radius: 9px; background: var(--sky-light); border: 2px solid var(--ink); padding: 2px; }
.fc-title { font-weight: 700; font-size: 18px; }
.fc-sub { color: var(--muted); margin-top: 2px; }
.fc-btn { display: block; margin-top: 12px; padding: 9px; text-align: center; font-weight: 700; background: var(--sun); border: var(--line); border-radius: 14px; box-shadow: 0 3px 0 var(--ink); }
.fc-link { display: block; margin-top: 8px; text-align: center; font-size: 13px; color: var(--muted); }
.fc-week ol { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; }
.fc-week li { display: grid; grid-template-columns: 18px 1fr auto; gap: 8px; padding: 5px 8px; border-radius: 12px; }
.fc-week li.me { background: #fff4d1; outline: 2px solid var(--ink); }
.fc-week li span { font-weight: 700; color: var(--muted); }
.fc-week li em { font-style: normal; font-weight: 700; }
.fc-rain svg { width: 34px; height: 34px; flex: none; }
.fc-rain p b { display: block; }
.fc-rain p small { color: var(--muted); font-size: 13px; }
@media (max-width: 1000px) { .fc-week { display: none; } }
/* Matala ja leveä näyttö (esim. kannettava, jossa on suuri skaalaus): teksti vasemmalle, puhelin oikealle, jotta kaikki mahtuu. */
@media (min-width: 901px) and (max-height: 760px) {
  .hero { display: grid; grid-template-columns: 1fr; grid-template-rows: 1fr; height: 100svh; min-height: 500px; padding-top: 76px; text-align: left; }
  .hero-text { grid-area: 1 / 1; align-self: start; z-index: 5; width: 100%; max-width: calc(var(--wrap) + 40px); padding-top: clamp(16px, 5svh, 48px); }
  .hero h1 { font-size: clamp(40px, min(5.4vw, 11.5svh), 84px); max-width: 62%; }
  .hero .lead { margin-left: 0; max-width: min(48%, 520px); font-size: 18px; }
  .cta { justify-content: flex-start; }
  .hero-stage { grid-area: 1 / 1; margin: 0; min-height: 0; }
  .hero-land { height: 34%; }
  .hero-front { height: 12%; }
  .hero-phone { left: auto; right: max(4%, calc((100% - var(--wrap)) / 2 + 150px)); transform: rotate(-2deg); top: 6%; width: calc(104cqh * 393 / 852); }
  .fc-week { display: none; }
  .fc-shield { right: calc(max(4%, (100% - var(--wrap)) / 2 + 150px) + 30cqh); top: 44%; width: 220px; }
  .fc-rain { left: auto; right: max(8px, calc((100% - var(--wrap)) / 2 - 20px)); top: 16%; max-width: 230px; }
}
@media (max-width: 700px) {
  .float-card { width: 200px; padding: 10px 12px; font-size: 13px; }
  .fc-title { font-size: 15px; }
  .fc-btn { padding: 6px; margin-top: 8px; }
  .fc-shield { right: auto; left: max(8px, calc(50% - 30cqh - 120px)); top: 26%; }
  .fc-rain { left: auto; right: max(8px, calc(50% - 30cqh - 110px)); top: 6%; max-width: 210px; }
  .fc-rain svg { width: 26px; height: 26px; }
}

/* ---------- Vieritystarina ---------- */
/* Kehys pysyy paikallaan, ja tarina.js vaihtaa maisemaa vierityksen mukaan. Ilman JavaScriptiä näkyy täysi järvi. */
.story { position: relative; padding: 0 16px; background: var(--grass-light); }
.js-story .story { height: 520svh; }
.story-stick { position: sticky; top: 0; height: 100svh; padding: 16px 0; }
.story-card { --w: 1; --dry: 0; --dc: 0; --pipe: 0; --rain: 0; position: relative; height: 100%; max-width: 1440px; margin: 0 auto; border: var(--line); border-radius: 36px; box-shadow: 0 8px 0 var(--ink); overflow: hidden; background: #8fd3f7; isolation: isolate; }
.story-svg { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; }
.story-svg .st-dry { opacity: var(--dry); }
.story-svg .st-wet { opacity: calc(1 - var(--dry)); }
/* Puut: kuivat tulevat ensin vihreiden päälle, sitten vihreät häviävät (ei läpikuultavaa välivaihetta). */
.story-svg .st-trees.st-dry { opacity: calc(var(--dry) * 2); }
.story-svg .st-trees.st-wet { opacity: calc(2 - var(--dry) * 2); }
.st-water { transform-box: fill-box; transform-origin: 50% 50%; transform: scale(var(--w)); }
.st-dc { transform: translateY(calc((1 - var(--dc)) * 220px)); }
.st-pipe { stroke-dasharray: 1 2; stroke-dashoffset: calc(1 - var(--pipe)); }
.st-rain { opacity: var(--rain); }
.st-drops { animation: rain .55s linear infinite; }
@keyframes rain { from { transform: translate(0, -50px); } to { transform: translate(-16px, 70px); } }
.st-gift { opacity: 0; transition: opacity .6s ease; }
.story-card[data-gifts="1"] .st-g1,
.story-card[data-gifts="2"] :is(.st-g1, .st-g2),
.story-card[data-gifts="3"] :is(.st-g1, .st-g2, .st-g3),
.story-card[data-gifts="4"] .st-gift { opacity: 1; }
.st-mood { opacity: 0; transition: opacity .3s; }
.story-card[data-mood="happy"] .st-happy, .story-card[data-mood="normal"] .st-normal,
.story-card[data-mood="worried"] .st-worried, .story-card[data-mood="sad"] .st-sad { opacity: 1; }
.st-seal { animation: bob 3.4s ease-in-out infinite; }
.st-drift { animation: drift 26s ease-in-out infinite alternate; }
.st-drift2 { animation: drift 34s ease-in-out infinite alternate-reverse; }
@keyframes drift { to { transform: translateX(60px); } }
.st-wave { animation: wave 3s ease-in-out infinite alternate; }
@keyframes wave { to { transform: translateX(10px); } }
.story-svg .rays { transform-box: fill-box; transform-origin: center; animation: spin 40s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.story-svg .smoke circle { transform-box: fill-box; transform-origin: center; animation: smoke 4s ease-out infinite; opacity: 0; }
.story-svg .smoke circle:nth-child(2) { animation-delay: 1.3s; }
.story-svg .smoke circle:nth-child(3) { animation-delay: 2.6s; }
@keyframes smoke { 0% { opacity: 0; transform: translate(0, 0) scale(.6); } 20% { opacity: .85; } 100% { opacity: 0; transform: translate(16px, -60px) scale(1.7); } }
.st-jump { transform-box: fill-box; transform-origin: center; animation: jump 5s ease-in-out infinite; }
@keyframes jump { 0%, 62%, 100% { opacity: 0; transform: translate(0, 20px) rotate(-40deg); } 70% { opacity: 1; } 78% { transform: translate(30px, -46px) rotate(0); } 88% { opacity: 1; transform: translate(60px, 10px) rotate(50deg); } 92% { opacity: 0; } }
@keyframes bob { 50% { transform: translateY(6px); } }

.story-text { position: absolute; left: 0; right: 0; top: clamp(24px, 6svh, 64px); display: grid; padding: 0 24px; text-align: center; z-index: 2; pointer-events: none; }
.story-step { grid-area: 1 / 1; opacity: 0; transform: translateY(16px); transition: opacity .45s ease, transform .45s ease; }
.story-step.on { opacity: 1; transform: none; }
.story-step h2 { font-size: clamp(36px, min(6.4vw, 8.5svh), 80px); letter-spacing: -0.02em; }
.story-step p { margin: 12px auto 0; max-width: 560px; font: 400 clamp(17px, 1.7vw, 21px)/1.45 var(--round); color: #2f3a55; }
.story-pills { position: absolute; left: 18px; top: 18px; z-index: 3; display: flex; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px 5px 8px; background: var(--white); border: var(--line); border-radius: 999px; font-weight: 700; font-size: 16px; font-variant-numeric: tabular-nums; }
.pill svg { width: 22px; height: 22px; }
.story-chips { list-style: none; margin: 0; padding: 0; }
.chip { position: absolute; z-index: 3; max-width: 270px; padding: 10px 14px 12px; background: var(--white); border: var(--line); border-radius: 18px; box-shadow: 0 4px 0 var(--ink); line-height: 1.3; opacity: 0; transform: translateY(12px) scale(.9); transition: opacity .35s ease, transform .35s cubic-bezier(.3, 1.5, .6, 1); }
.chip.on { opacity: 1; transform: none; }
.chip small { display: block; font-size: 13px; font-weight: 600; color: var(--muted); }
.chip b { display: block; font-size: 17px; }
.chip em { display: inline-flex; align-items: center; gap: 4px; margin-top: 8px; padding: 2px 10px; border-radius: 999px; font-style: normal; font-weight: 700; font-size: 14px; }
.chip em svg { width: 16px; height: 16px; }
.chip-skip em { background: #ffe0e6; color: #b3264a; }
.chip-think em { background: #dff5d6; color: #2c7a3a; }
.chip-skip { rotate: -2deg; }
.chip-think { rotate: 2deg; }
[data-chip="b1"] { left: 5%; top: 40%; }
[data-chip="b2"] { right: 5%; top: 33%; }
[data-chip="b3"] { left: 10%; top: 60%; }
[data-chip="c1"] { right: 6%; top: 38%; }
[data-chip="c2"] { left: 6%; top: 31%; }
[data-chip="c3"] { right: 10%; top: 62%; }
@media (max-width: 760px) {
  .js-story .story { height: 460svh; }
  .story { padding: 0 10px; }
  .story-stick { padding: 10px 0; }
  .story-card { border-radius: 28px; }
  .story-text { top: 66px; padding: 0 16px; }
  .story-pills { left: 12px; top: 12px; }
  .pill { font-size: 14px; }
  /* Kapealla näkyy vain uusin kortti, tekstin alla. */
  .chip, [data-chip] { left: 50%; right: auto; top: auto; bottom: 47%; translate: -50% 0; max-width: calc(100% - 40px); width: max-content; }
  .chip.on:not(.newest) { opacity: 0; }
}

/* ---------- Näin se toimii ---------- */
#how { padding-block: clamp(56px, 8svh, 110px); }
.band-meadow { background: radial-gradient(130% 52% at 50% 100%, #a3dc8b 0 62%, transparent 62.2%), var(--cream); }
.how-steps { list-style: none; padding: 0; margin: 56px auto 0; max-width: 1000px; display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(20px, 4vw, 48px); }
.how-step { display: flex; flex-direction: column; align-items: center; }
.how-phone { width: min(250px, 100%, (100svh - 400px) * 393 / 852); min-width: 170px; margin-bottom: 22px; }
.how-step:nth-child(1) .how-phone { rotate: -3deg; }
.how-step:nth-child(2) .how-phone { translate: 0 -18px; }
.how-step:nth-child(3) .how-phone { rotate: 3deg; }
.step-no { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--sun); border: var(--line); font-weight: 700; margin-bottom: 10px; box-shadow: 0 3px 0 var(--ink); }
.how-step h3 { margin-bottom: 4px; }
.how-step p { font-weight: 400; color: #23422a; }
.how-note { margin: 44px auto 0; max-width: 620px; padding: 16px 22px; background: var(--white); border: var(--line); border-radius: 20px; font-weight: 400; }

/* ---------- Aarteet (päivästä yöhön) ---------- */
.band-dusk { background: linear-gradient(180deg, var(--sky-light) 0%, #c3cdf3 38%, #6d63b0 70%, #222a5c 100%); }
.grow-phones { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(16px, 3vw, 36px); }
.grow-phones li { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.grow-phone { width: min(240px, 100%, (100svh - 380px) * 393 / 852); min-width: 160px; margin-bottom: 14px; }
.grow-phones li:nth-child(odd) .grow-phone { translate: 0 22px; margin-bottom: 36px; }
.grow-day, .grow-what { padding: 2px 14px; border-radius: 999px; background: var(--white); border: 2px solid var(--ink); }
.grow-day { font-size: 18px; font-weight: 700; background: var(--sun); }
.grow-what { font-size: 15px; }
.milestones { list-style: none; padding: 0; margin: 56px auto 0; max-width: 980px; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; color: #fff; }
.milestones li { display: flex; gap: 8px; align-items: baseline; padding: 6px 14px; border: 2px solid rgba(255, 255, 255, .55); border-radius: 999px; font-size: 15px; }
.milestones b { color: var(--sun); }
@media (max-width: 760px) { .grow-phones li:nth-child(odd) .grow-phone { translate: none; margin-bottom: 14px; } }

/* ---------- Kaverit ---------- */
.board-stack { position: relative; padding: 40px 10px 72px; }
.board-seal { position: absolute; width: 120px; right: 40px; top: -18px; z-index: 0; rotate: 8deg; }
.board { position: relative; z-index: 1; margin: 0; background: var(--white); border: var(--line); border-radius: 30px; box-shadow: 0 8px 0 var(--ink); padding: 20px; transform: rotate(1.2deg); }
.board figcaption { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: 24px; margin: 4px 6px 14px; }
.board figcaption small { font-weight: 600; font-size: 13px; color: var(--muted); border: 2px solid var(--muted); border-radius: 999px; padding: 1px 8px; }
.board ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.board li { display: grid; grid-template-columns: 30px 44px 1fr auto; align-items: center; gap: 12px; padding: 10px; border-radius: 18px; }
.board li.me { background: #fff4d1; outline: 2px solid var(--ink); }
.board .place { font-weight: 700; font-size: 20px; text-align: center; }
.board .avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; border: 2px solid var(--ink); background: #dff3fc; font-weight: 700; font-size: 19px; }
.board .who { display: flex; flex-direction: column; line-height: 1.25; }
.board .who small { color: var(--muted); font-size: 14px; }
.board .pts { font-weight: 700; font-size: 20px; font-variant-numeric: tabular-nums; }
.crew-card { position: absolute; z-index: 2; left: -10px; bottom: 0; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; background: #e7f8ff; border: var(--line); border-radius: 20px; box-shadow: var(--shadow); rotate: -3deg; }
.crew-badge { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--sun); border: var(--line); font-weight: 700; }
.crew-card b { display: block; font-size: 18px; }
.crew-card small { color: var(--muted); font-size: 14px; }

/* ---------- Miksi ---------- */
.facts { list-style: none; padding: 0; margin: 56px 0 0; display: grid; grid-template-columns: repeat(6, 1fr); gap: 40px 32px; text-align: left; }
.fact { grid-column: span 2; padding-top: 18px; border-top: 5px solid var(--water); }
.fact-brain { grid-column: span 3; border-top-color: var(--pink); }
.fact p:not(.fact-big) { color: #3c4560; font-weight: 400; }
.fact-big { font-weight: 700; font-size: clamp(36px, 4vw, 52px); line-height: 1.02; margin-bottom: 10px; color: var(--water-deep); letter-spacing: -0.02em; }
.fact-brain .fact-big { color: #d94a66; }
.fact-src { display: inline-block; margin-top: 10px; font-size: 14px; color: var(--muted); font-weight: 500; }
.fact-src a, a.fact-src { color: var(--muted); }
@media (max-width: 860px) { .facts { grid-template-columns: 1fr; gap: 28px; } .fact, .fact-brain { grid-column: auto; } }
.pro-brain { position: relative; margin: 64px auto 0; max-width: 760px; padding: 34px 32px 30px; border-radius: 32px; background: var(--sun); border: var(--line); box-shadow: 0 8px 0 var(--ink); transform: rotate(-1deg); }
.pro-seal { position: absolute; width: 104px; left: -30px; top: -52px; rotate: -10deg; }
.pro-brain-title { font-weight: 700; font-size: clamp(28px, 3.6vw, 42px); line-height: 1.1; margin-bottom: 10px; }
.pro-brain p:last-child { font-weight: 400; font-size: 19px; }
.honest { margin: 40px auto 0; max-width: 640px; color: var(--muted); font-size: 15px; font-weight: 400; }

/* ---------- Tietosuoja (tumma) ---------- */
.promises { list-style: none; padding: 0; margin: 48px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.promise-icon { display: inline-grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #3d3460; color: var(--ink); margin-bottom: 14px; border: 3px solid #fff; }
.promise-icon svg { width: 36px; height: 36px; }
.promises h3 { margin-bottom: 8px; color: var(--sun); }
.promises p { color: #d9dcea; font-weight: 400; }
.band-ink .arrow-link { color: var(--white); }
@media (max-width: 860px) { .promises { grid-template-columns: 1fr; } }

/* ---------- Norppa ---------- */
.seal-art { width: min(320px, 50vw); justify-self: center; filter: drop-shadow(0 6px 0 rgba(43, 35, 64, .12)); }
.seal .fact-src { margin-top: 18px; }
.seal h2 { margin-bottom: 16px; }

/* Kysymykset */
.faq { margin-top: 40px; display: grid; gap: 14px; }
.qa { background: var(--white); border: var(--line); border-radius: 22px; box-shadow: 0 4px 0 var(--ink); }
.qa summary { list-style: none; cursor: pointer; padding: 18px 56px 18px 22px; font-weight: 600; font-size: 19px; position: relative; }
.qa summary::-webkit-details-marker { display: none; }
.qa summary::after { content: ''; position: absolute; right: 18px; top: 50%; width: 30px; height: 30px; margin-top: -15px; border-radius: 50%; border: 2px solid var(--ink); background: linear-gradient(var(--ink), var(--ink)) center / 12px 2.5px no-repeat, linear-gradient(var(--ink), var(--ink)) center / 2.5px 12px no-repeat, var(--sun); transition: transform .2s; }
.qa[open] summary::after { transform: rotate(45deg); }
.qa > div { padding: 0 22px 20px; color: #3c4560; }
.qa > div p + p, .qa > div ol, .qa > div ul { margin-top: 10px; }


/* Lataa: kesäinen järvi, jonka taivaalla on kutsu */
.get { position: relative; text-align: center; background: #8fd3f7; overflow: hidden; }
.get-text { position: relative; z-index: 1; padding: clamp(64px, 10svh, 120px) 20px 0; }
.get h2 { font-size: clamp(40px, 6vw, 76px); letter-spacing: -0.02em; margin-bottom: 10px; }
.get .lead { color: #24405e; }
.get .cta { margin-top: 24px; }
.get-scene { display: block; width: 100%; max-width: none; height: clamp(380px, 46vw, 760px); object-fit: cover; object-position: 50% 100%; margin-top: clamp(-220px, -12vw, -40px); }
@media (max-width: 760px) { .get-scene { height: 480px; object-position: 55% 100%; margin-top: -40px; } }

/* Alatunniste */
.footer { background: var(--white); border-top: var(--line); padding: 48px 20px 36px; }
.footer-inner { max-width: var(--wrap); margin: 0 auto; display: grid; grid-template-columns: 1fr auto; gap: 24px 40px; }
.footer-brand p { color: var(--muted); margin-top: 6px; }
.footer-links { display: flex; flex-wrap: wrap; gap: 10px 24px; align-items: center; font-weight: 600; }
.footer-links a { text-decoration: none; }
.footer-links a:hover { text-decoration: underline; }
.footer-small { grid-column: 1 / -1; color: var(--muted); font-size: 15px; }
@media (max-width: 700px) { .footer-inner { grid-template-columns: 1fr; } }

/* ---------- Juridiset sivut ja tuki ---------- */
.legal, .support { max-width: 800px; margin: 0 auto; padding: 64px 20px 96px; }
.legal-head { margin-bottom: 32px; }
.legal-head h1 { font-size: clamp(40px, 6vw, 62px); margin-bottom: 12px; }
.legal-meta { color: var(--muted); font-weight: 600; margin-bottom: 18px; }
.legal-head .lead { font: 400 19px/1.6 var(--text); color: #3c4560; }
.summary { background: var(--cream); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 24px 28px; margin-bottom: 32px; }
.summary h2 { font-size: 26px; margin-bottom: 12px; }
.summary ul { margin: 0; padding-left: 20px; font: 400 17px/1.6 var(--text); display: grid; gap: 8px; }
.toc { background: var(--white); border: 2px solid var(--ink); border-radius: 20px; padding: 18px 24px; margin-bottom: 44px; }
.toc h2 { font-size: 20px; margin-bottom: 8px; }
.toc ol { margin: 0; padding-left: 22px; columns: 2 220px; column-gap: 32px; font: 400 16px/1.8 var(--text); }
.legal-body section { padding-top: 12px; margin-bottom: 36px; }
.legal-body h2 { font-size: clamp(26px, 3.2vw, 32px); margin-bottom: 14px; }
.legal-body, .support .qa > div, .contact-card { font: 400 17px/1.65 var(--text); }
.legal-body p + p, .legal-body p + ul, .legal-body ul + p, .legal-body .table-wrap + p, .legal-body p + .table-wrap { margin-top: 14px; }
.legal-body ul, .legal-body ol { padding-left: 22px; display: grid; gap: 6px; margin: 10px 0 0; }
.table-wrap { overflow-x: auto; border: 2px solid var(--ink); border-radius: 18px; background: var(--white); }
table { border-collapse: collapse; width: 100%; min-width: 560px; font-size: 16px; line-height: 1.5; }
th, td { text-align: left; vertical-align: top; padding: 12px 14px; border-bottom: 1px solid #d9dde8; }
thead th { font-family: var(--round); font-weight: 600; background: var(--sky-light); border-bottom: 2px solid var(--ink); }
tbody th { font-weight: 600; white-space: normal; width: 24%; }
tbody tr:last-child > * { border-bottom: 0; }
.contact-card { background: var(--white); border: var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 26px 28px; margin-bottom: 48px; }
.contact-card h2 { font-size: 26px; margin-bottom: 10px; }
.contact-card p + p { margin-top: 12px; }
.contact-mail { font: 700 24px var(--round); }
.muted { color: var(--muted); }
.qa-group { margin-bottom: 40px; }
.qa-group h2 { font-size: 28px; margin-bottom: 16px; }
.qa-group .qa + .qa { margin-top: 12px; }
.qa-group .qa ol, .qa-group .qa ul { padding-left: 22px; display: grid; gap: 4px; }
.support-legal { color: var(--muted); font-weight: 600; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
