/* ══════════════════════════════════════════════════════════════════════════
   Saunapiha: "Iltalöylyt". Kesäyön järvimaisema ja hehkuva sauna, hinta-
   laput pyykkinarulla, puinen "saunan säännöt" -kyltti, löylymittari
   laskurissa, kumileimasin lupatarkistimessa ja kunnat sinisinä tienvarsi-
   kyltteinä. Otsikot Fraunces (pehmeä + "wonky"), leipäteksti Plex Sans,
   luvut Plex Mono, käsin kirjoitetut huomiot Caveat.
   ══════════════════════════════════════════════════════════════════════════ */

@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-normal.woff2") format("woff2"); font-weight: 400 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Fraunces"; src: url("/assets/fonts/fraunces-italic.woff2") format("woff2"); font-weight: 400 800; font-style: italic; font-display: swap; }
@font-face { font-family: "Plex"; src: url("/assets/fonts/plex-sans.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Plex Mono"; src: url("/assets/fonts/plex-mono-500.woff2") format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Caveat"; src: url("/assets/fonts/caveat-normal.woff2") format("woff2"); font-weight: 500 700; font-display: swap; }

:root {
  --birch: #f4ecdf;
  --birch-2: #eadcc5;
  --paper: #fbf6ed;
  --ink: #241a14;
  --ink-2: #4b3c32;
  --muted: #7b6a5d;
  --line: rgba(36, 26, 20, .13);
  --line-2: rgba(36, 26, 20, .24);
  --ember: #df5527;
  --ember-2: #f06a37;
  --ember-ink: #a93a14;
  --ember-soft: rgba(223, 85, 39, .12);
  --glow: #ffb45e;
  --rye: #dcb27a;
  --rye-2: #c8945a;
  --rye-soft: #f1dfc1;
  --lake: #2b5a62;
  --lake-2: #1f4148;
  --moss: #586f3c;
  --moss-soft: rgba(88, 111, 60, .14);
  --night: #15110f;
  --night-2: #211a16;
  --night-3: #2d241f;
  --cream: #f7eddd;
  --cream-2: rgba(247, 237, 221, .78);
  --cream-3: rgba(247, 237, 221, .5);
  --sign: #1e5aa8;
  --note: #fff1a8;
  --r: 16px;
  --r-sm: 14px;
  --shadow: 0 1px 2px rgba(36, 26, 20, .06), 0 14px 34px -18px rgba(36, 26, 20, .36);
  --shadow-lg: 0 2px 6px rgba(36, 26, 20, .06), 0 34px 70px -28px rgba(36, 26, 20, .5);
  --ease: cubic-bezier(.2, .7, .2, 1);
  --spring: cubic-bezier(.34, 1.56, .64, 1);
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Plex", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Plex Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --hand: "Caveat", "Segoe Print", "Comic Sans MS", cursive;
  --hdr: 74px;
  --sky: linear-gradient(180deg, #110d1a 0%, #241a33 30%, #4e2a43 52%, #9a4747 70%, #e2774a 86%, #f6aa5f 100%);
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--hdr) + 20px); }
body { margin: 0; background: var(--birch); color: var(--ink); font: 400 1.0625rem/1.7 var(--sans); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
/* Paperin rakeisuus koko sivulle */
body::after { content: ""; position: fixed; inset: 0; z-index: 90; pointer-events: none; opacity: .16; mix-blend-mode: multiply; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='180' height='180'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3CfeColorMatrix values='0 0 0 0 .14 0 0 0 0 .1 0 0 0 0 .08 0 0 0 .22 0'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-family: var(--serif); font-weight: 650; line-height: 1.06; letter-spacing: -.018em; text-wrap: balance; font-variation-settings: "SOFT" 100, "WONK" 1; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); letter-spacing: -.028em; }
h2 { font-size: clamp(2rem, 3.8vw, 3.1rem); }
h3 { font-size: 1.35rem; }
h1 em, h2 em, h3 em { font-style: italic; font-weight: 600; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
strong { font-weight: 650; }
.num { font-family: var(--mono); font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hand { font-family: var(--hand); font-weight: 600; font-size: 1.45em; line-height: 1; color: var(--ember-ink); }
.i { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
:focus-visible { outline: 3px solid var(--ember-2); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--cream); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

.wrap { width: min(1220px, 100% - 48px); margin-inline: auto; }
.narrow { width: min(860px, 100% - 48px); }
.center { text-align: center; }
.fine { font-size: .9rem; color: var(--muted); }
.opt { color: var(--muted); font-weight: 400; font-style: normal; }
.mt { margin-top: 64px; margin-bottom: 14px; }

/* ── Painikkeet ja linkit ─────────────────────────────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: .55em; padding: 14px 24px; border-radius: 10px; border: 2px solid transparent; font: 650 1rem/1.2 var(--sans); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s; white-space: nowrap; }
.btn .i { transition: transform .25s var(--ease); }
.btn:hover .i { transform: translateX(3px); }
.btn-ember { background: var(--ember); color: #fff; }
.btn-ember:hover { background: #c4461b; }
.btn-ghost { border-color: rgba(247, 237, 221, .5); color: var(--cream); background: transparent; }
.btn-ghost:hover { border-color: var(--cream); background: rgba(247, 237, 221, .1); }
.btn-line { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-line:hover { background: var(--ink); color: var(--cream); }
.btn-cream { background: var(--cream); color: var(--ink); }
.btn-cream:hover { background: #fff; }
.btn-sm { padding: 9px 17px; font-size: .93rem; }
.btn-lg { padding: 17px 28px; font-size: 1.06rem; }
.link { display: inline-flex; align-items: center; gap: .4em; font-weight: 650; text-decoration: none; background: linear-gradient(var(--ember), var(--ember)) 0 100% / 100% 2px no-repeat; padding-bottom: 3px; transition: gap .3s var(--ease), background-size .3s, color .25s; }
.link:hover { gap: .7em; color: var(--ember-ink); background-size: 100% 4px; }
.link-sm { font-size: .9rem; }
.link-quiet { background-image: linear-gradient(var(--line-2), var(--line-2)); color: var(--ink-2); }
.prose a:not(.link):not(.btn), .a-in a, .note a, .disclosure a, .fine a, .rule-list a { color: var(--ember-ink); text-decoration-thickness: 1.5px; text-underline-offset: 3px; font-weight: 600; }
.aff-tag { display: inline-block; margin-left: 4px; padding: 1px 7px; border-radius: 999px; background: var(--ember-soft); color: var(--ember-ink); font: 500 .7rem var(--mono); letter-spacing: .03em; vertical-align: middle; }

/* ── Ylätunniste: sama tumma palkki joka sivulla ──────────────────────────── */
.hdr { position: sticky; top: 0; z-index: 60; background: var(--night); color: var(--cream); border-bottom: 1px solid rgba(247, 237, 221, .08); transition: box-shadow .3s; }
.hdr.scrolled { box-shadow: 0 10px 30px -16px rgba(0, 0, 0, .6); }
.nav { display: flex; align-items: center; gap: 32px; height: var(--hdr); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; flex: none; --logo-ink: var(--cream); --logo-bg: var(--night); --logo-ember: var(--glow); }
.brand .mark { width: 38px; height: 38px; margin-top: -4px; }
.brand .mk-steam { animation: steamy 2.6s ease-in-out infinite; transform-box: fill-box; transform-origin: bottom; }
@keyframes steamy { 0%, 100% { transform: translateY(0); opacity: 1; } 50% { transform: translateY(-2px); opacity: .55; } }
.wm { font: 700 1.32rem/1 var(--serif); letter-spacing: -.02em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.tld { font-style: italic; font-weight: 500; color: var(--glow); }
.links { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.links > a { position: relative; padding: 6px 0; text-decoration: none; font-weight: 500; font-size: .96rem; color: var(--cream-2); transition: color .2s; }
.links > a:hover, .links > a[aria-current="page"] { color: var(--cream); }
.links > a[aria-current="page"]::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 2px; border-radius: 2px; background: var(--glow); }
.menu-extra { display: none; }
.nav-right { display: flex; align-items: center; gap: 12px; }
.burger { display: none; position: relative; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(247, 237, 221, .25); background: transparent; color: inherit; cursor: pointer; align-items: center; justify-content: center; transition: border-color .2s; }
.burger span { position: absolute; width: 18px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .35s var(--ease); }
.burger span:first-child { transform: translateY(-4px); }
.burger span:last-child { transform: translateY(4px); }
.burger[aria-expanded="true"] { border-color: var(--glow); }
.burger[aria-expanded="true"] span:first-child { transform: rotate(45deg); }
.burger[aria-expanded="true"] span:last-child { transform: rotate(-45deg); }

/* ── Osiot ────────────────────────────────────────────────────────────────── */
.sec { padding: 112px 0; position: relative; }
.sec-tight { padding: 64px 0; }
/* sivun viimeiseen osioon tilaa footerin kylämaisemalle (.village), ettei se peitä tekstiä */
main > .sec:last-child { padding-bottom: 210px; }
.sec-paper { background: var(--paper); }
.sec-rye { background: var(--rye-soft); }
.sec-dark { background: var(--night); color: var(--cream); }
.sec-dark p { color: var(--cream-2); }
.sec-head { max-width: 720px; margin-bottom: 60px; }
.sec-head.center { margin-inline: auto; }
.sec-head h2 { margin-bottom: 18px; }
.sec-head p { color: var(--muted); font-size: 1.12rem; }
.sec-dark .sec-head p { color: var(--cream-2); }
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.split-wide { grid-template-columns: 1.1fr .9fr; }
.split h2 { margin-bottom: 20px; }
.split .btn, .split .link { margin-top: 16px; }
.more-link { margin-top: 40px; }
.group-h { font-size: clamp(1.6rem, 2.8vw, 2.2rem); margin-bottom: 30px; }

/* ── Hero: punainen rantasauna koko leveydeltä, hinnat lasinauhassa ──────── */
.hero { position: relative; min-height: clamp(600px, calc(100svh - var(--hdr)), 860px); display: flex; flex-direction: column; background: #10140f; color: var(--cream); overflow: hidden; isolation: isolate; }
.hero-bg, .hero-bg img { position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; z-index: -2; }
.hero-bg img { object-fit: cover; object-position: 78% 50%; }
/* sumea esikatselu, kunnes oikea kuva on latautunut */
.hero-bg { background: #10140f url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAAbACgDASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDiAvy8VNEpNaQ0pmXIGKaunSq3SqWqMWmUwnzVMI+9bFrpQ3L5gJzWg+mxKNgj5PehtI0jRcle5ybpiitu50krJtzwaKdzPlZAl+23g1LHejOSa59WbHU1OjHb1piOhTUGUg7qsHWDsxgZ9a5je2fvGnBmx1NBSnJKyZrz37O2d3NFY5Y7utFMm5//2Q==") 78% 50% / cover no-repeat; }
.hero .hero-bg img { animation: settle 18s var(--ease) both; }
@keyframes settle { from { transform: scale(1.06); } to { transform: scale(1); } }
.hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 12, 10, .78) 0%, rgba(8, 12, 10, .5) 36%, rgba(8, 12, 10, 0) 62%), linear-gradient(180deg, rgba(8, 12, 10, .35) 0%, transparent 20%, transparent 62%, rgba(8, 12, 10, .5) 100%); }
.hero-in { flex: 1; display: flex; align-items: center; padding: 56px 0 36px; }
.hero-copy { max-width: 600px; }
.hero h1 { max-width: 560px; margin-bottom: 24px; color: var(--cream); text-shadow: 0 2px 24px rgba(0, 0, 0, .3); }
.hero h1 em { color: var(--glow); }
.hero .lead { max-width: 500px; font-size: 1.18rem; color: rgba(247, 237, 221, .88); }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 32px 0 0; }
.hero-strip { display: grid; grid-template-columns: repeat(4, 1fr); overflow: hidden; border-radius: 14px; background: rgba(18, 22, 20, .45); border: 1px solid rgba(255, 255, 255, .16); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.hero-strip a { display: grid; gap: 2px; padding: 18px 22px; color: var(--cream); text-decoration: none; border-left: 1px solid rgba(255, 255, 255, .12); transition: background .25s; }
.hero-strip a:first-child { border-left: 0; }
.hero-strip a:hover { background: rgba(255, 255, 255, .08); }
.hero-strip span { font-size: .84rem; color: rgba(247, 237, 221, .75); }
.hero-strip strong { font: 700 1.75rem/1.1 var(--serif); color: var(--cream); font-variation-settings: "SOFT" 100, "WONK" 1; }
.hero-strip a:last-child strong { color: var(--glow); }
.hero-strip em { font: 500 .7rem var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .08em; color: var(--glow); }
.hero-foot { display: flex; justify-content: space-between; gap: 6px 16px; flex-wrap: wrap; padding: 12px 2px 68px; font: 500 .7rem var(--mono); letter-spacing: .03em; color: rgba(247, 237, 221, .6); }
.edge { position: absolute; left: 0; right: 0; bottom: -1px; width: 100%; height: 56px; z-index: 1; pointer-events: none; }
@keyframes rise { 0% { opacity: 0; transform: translateY(18px) scaleY(.8); } 25% { opacity: .85; } 100% { opacity: 0; transform: translateY(-34px) scaleY(1.15); } }

/* ── Kortit (yleinen) ─────────────────────────────────────────────────────── */
.card { position: relative; display: block; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 30px; box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: transform .3s var(--ease), box-shadow .3s; }
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-lg); }
.card-ic { display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--ember-soft); color: var(--ember-ink); margin-bottom: 20px; transition: background .25s, color .25s; }
.card-ic .i { width: 26px; height: 26px; }
.card:hover .card-ic { background: var(--ember); color: #fff; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--muted); }

/* ── Neljä tyyppiä: värikkäät kuvituskortit ───────────────────────────────── */
.types { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.type { --bg: var(--ember); --fg: var(--cream); position: relative; display: flex; flex-direction: column; min-height: 520px; padding: 26px 26px 24px; border-radius: 18px; background: var(--bg); color: var(--fg); text-decoration: none; overflow: hidden; box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.type:hover { transform: translateY(-6px); box-shadow: var(--shadow-lg); }
.type-sauna { --bg: var(--ember); }
.type-barrel { --bg: var(--rye); --fg: var(--ink); }
.type-kota { --bg: var(--moss); }
.type-tub { --bg: var(--lake); }
.type .ill { width: 100%; height: 190px; margin: 4px 0 18px; }
.type .ill .st { fill: none; stroke: currentColor; stroke-linecap: round; opacity: 0; transform-box: fill-box; transform-origin: center bottom; }
.type:hover .ill .st { animation: rise 2.6s ease-in-out infinite; }
.type:hover .ill .st:nth-of-type(2) { animation-delay: -1.2s; }
.type .kind { font: 500 .74rem var(--mono); letter-spacing: .12em; text-transform: uppercase; opacity: .75; }
.type h3 { font-size: 2rem; margin: 6px 0 10px; }
.type p { font-size: .96rem; opacity: .88; flex: 1; }
.type .from { display: flex; align-items: baseline; gap: 8px; margin: 18px 0 4px; }
.type .from span { font: 500 .8rem var(--mono); opacity: .8; }
.type .from strong { font: 700 2.1rem/1 var(--serif); font-variation-settings: "SOFT" 100, "WONK" 1; }
.type .meta-line { font: 500 .8rem var(--mono); opacity: .78; }
.type .go { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 650; }
.type .go .i { transition: transform .3s var(--ease); }
.type:hover .go .i { transform: translateX(6px); }

/* ── Laskurin esittely: löylymittari ja kuitti ────────────────────────────── */
.calc-demo { position: relative; display: grid; grid-template-columns: 240px 1fr; align-items: center; gap: 0; }
.calc-demo .gauge-wrap { position: relative; z-index: 2; margin-right: -40px; }
.gauge { width: 100%; height: auto; filter: drop-shadow(0 24px 30px rgba(0, 0, 0, .5)); }
.gauge .needle { transform-origin: 120px 120px; transition: transform 1.1s var(--spring); }
.gauge .g-val { font: 700 25px var(--serif); fill: var(--ink); font-variation-settings: "SOFT" 100, "WONK" 1; }
.gauge .g-lab { font: 500 9px var(--mono); fill: var(--muted); letter-spacing: .12em; }
.gauge .g-end { font: 500 9.5px var(--mono); fill: var(--ink-2); }
.receipt { position: relative; background: var(--paper); color: var(--ink); border-radius: 6px; padding: 34px 32px 26px 70px; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9); transform: rotate(1deg); }
.receipt::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 12px; background: radial-gradient(circle at 8px -2px, transparent 8px, var(--paper) 8.5px) 0 0 / 16px 12px repeat-x; }
.receipt-h { font: 650 1.25rem var(--serif); margin-bottom: 16px; color: var(--ink) !important; }
.r-line { display: flex; justify-content: space-between; gap: 16px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: .98rem; }
.r-total { border-bottom: 0; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 14px; font-weight: 700; font-size: 1.15rem; }
.receipt-f { margin-top: 14px; font-size: .82rem; color: var(--muted) !important; }
.receipt .scribble { position: absolute; right: 4px; top: -58px; font: 600 1.5rem/1 var(--hand); color: var(--glow) !important; transform: rotate(-5deg); text-align: right; }

/* ── Laki ja leima ────────────────────────────────────────────────────────── */
.law-sec { overflow: hidden; }
.law-sec::before { content: "§"; position: absolute; right: -2%; top: 50%; transform: translateY(-50%); font: 700 clamp(18rem, 40vw, 34rem)/1 var(--serif); color: rgba(36, 26, 20, .045); pointer-events: none; }
.law-card { position: relative; margin: 0; padding: 44px 40px 40px; background: var(--paper); border-radius: 6px; box-shadow: var(--shadow-lg); background-image: repeating-linear-gradient(180deg, transparent 0 33px, rgba(43, 90, 98, .12) 33px 34px); }
.law-card p { font: 500 1.35rem/1.55 var(--serif); color: var(--ink); }
.law-card cite { display: block; margin-top: 18px; font: 500 .85rem var(--mono); color: var(--muted); font-style: normal; }
.stamp { position: absolute; right: -34px; top: -52px; display: grid; place-items: center; width: 150px; height: 150px; border-radius: 50%; border: 4px solid var(--moss); color: var(--moss); text-align: center; font: 700 1.05rem/1.05 var(--mono); letter-spacing: .04em; text-transform: uppercase; transform: rotate(-14deg); opacity: .88; mix-blend-mode: multiply; }
.stamp::before { content: ""; position: absolute; inset: 7px; border-radius: 50%; border: 1.5px dashed currentColor; }
.stamp small { display: block; font-size: .62rem; letter-spacing: .12em; margin-top: 4px; }
.stamp.need { border-color: var(--ember); color: var(--ember); }
.stamp.thump { animation: thump .45s var(--spring); }
@keyframes thump { 0% { transform: rotate(-24deg) scale(1.7); opacity: 0; } 100% { transform: rotate(-14deg) scale(1); opacity: .88; } }

.ticks, .checks { list-style: none; padding: 0; margin: 0 0 1.2em; display: grid; gap: 12px; }
.ticks li, .checks li { position: relative; padding-left: 32px; }
.ticks li::before { content: ""; position: absolute; left: 5px; top: .62em; width: 13px; height: 7px; border-left: 2.5px solid var(--moss); border-bottom: 2.5px solid var(--moss); transform: rotate(-45deg); }
.sec-dark .ticks li::before { border-color: var(--glow); }
.checks li::before { content: ""; position: absolute; left: 2px; top: .4em; width: 18px; height: 18px; border-radius: 6px; background: var(--moss-soft); box-shadow: inset 0 0 0 1.5px var(--moss); }
.checks li::after { content: ""; position: absolute; left: 7.5px; top: .68em; width: 7px; height: 4px; border-left: 2px solid var(--moss); border-bottom: 2px solid var(--moss); transform: rotate(-45deg); }
.src { color: var(--muted); font-size: .88rem; }
.steps-list { counter-reset: s; list-style: none; padding: 0; margin: 0 0 1.4em; display: grid; gap: 16px; }
.steps-list li { counter-increment: s; position: relative; padding-left: 52px; }
.steps-list li::before { content: counter(s); position: absolute; left: 0; top: -2px; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--ember); color: #fff; font: 700 1.05rem var(--serif); }
.chip-s { display: inline-block; margin: 0 6px 6px 0; padding: 4px 12px; border-radius: 999px; background: var(--moss-soft); color: var(--moss); font-size: .84rem; font-weight: 650; }
a.chip-s { text-decoration: none; transition: background .2s, color .2s; }
a.chip-s:hover { background: var(--moss); color: #fff; }
/* Merkkisivut */
.brand-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-bottom: 26px; }
.brand-card h2 { font-size: 1.55rem; margin-bottom: 12px; }
.brand-card .brand-n { margin: 6px 0 4px; color: var(--ember-ink); font-size: .95rem; }
.brand-card .link { margin-top: 14px; }
.tbl.tbl-fit table { min-width: 0; }
.prose ul.models { padding-left: 0; margin: 6px 0 34px; }

/* ── Oppaat: lukulista ────────────────────────────────────────────────────── */
.reading { display: grid; grid-template-columns: 1fr 1fr; gap: 0 56px; counter-reset: g; }
.read { position: relative; display: grid; grid-template-columns: 64px 1fr auto; gap: 18px; align-items: start; padding: 26px 0; border-top: 1px solid var(--line-2); text-decoration: none; counter-increment: g; transition: padding .35s var(--ease); }
.read::before { content: counter(g, decimal-leading-zero); font: italic 600 2.1rem/1 var(--serif); color: var(--rye-2); transition: color .25s; }
.read:hover { padding-left: 10px; }
.read:hover::before { color: var(--ember); }
.read .kind { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .12em; color: var(--moss); }
.read h3 { font-size: 1.42rem; margin: 4px 0 6px; transition: color .25s; }
.read:hover h3 { color: var(--ember-ink); }
.read p { font-size: .93rem; color: var(--muted); margin: 0; }
.read .arr { width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line-2); transition: background .25s, border-color .25s, color .25s; }
.read:hover .arr { background: var(--ember); border-color: var(--ember); color: #fff; }

/* ── Saunan säännöt: laudoista koottu kyltti, joka roikkuu köysistä.
   Jokainen tekstirivi on omalla laudallaan, jotta saumat eivät halkaise tekstiä. */
.board { --nail: radial-gradient(circle, #c4bcb3 0 1.2px, #5c534b 3.6px, rgba(40, 20, 5, .3) 4.6px, transparent 5.6px); position: relative; display: grid; gap: 3px; max-width: 980px; margin: 70px auto 0; border-radius: 6px; background: #3d2412; color: #2e1a0c; isolation: isolate; filter: drop-shadow(0 26px 28px rgba(70, 36, 12, .32)); }
.board::before, .board::after { content: ""; position: absolute; z-index: -1; top: -150px; height: 170px; width: 7px; border-radius: 4px; background: repeating-linear-gradient(-32deg, #d8b47e 0 4px, #a87d49 4px 7px); }
.board::before { left: 22%; }
.board::after { right: 22%; }
.board-row { --wx: 0px; position: relative; background: var(--nail) 18px 50% / 12px 12px no-repeat, var(--nail) calc(100% - 18px) 50% / 12px 12px no-repeat, #c48d55 url("/assets/img/puu.webp") var(--wx) 50% / 1600px 100% repeat-x; box-shadow: inset 0 2px 0 rgba(255, 234, 200, .4), inset 0 -3px 5px rgba(74, 38, 12, .3), inset 8px 0 10px -6px rgba(74, 38, 12, .35), inset -8px 0 10px -6px rgba(74, 38, 12, .35); }
.board-row:first-child { border-radius: 5px 5px 0 0; }
.board-row:last-child { border-radius: 0 0 5px 5px; }
.board-title { --wx: -140px; padding: 40px 70px 32px; text-align: center; }
/* poltettu teksti: tumma, ja kaiverruksen vaalea alareuna */
.board h2, .rules > div::before, .rules h3 { color: #2e1a0c; text-shadow: 0 1px 0 rgba(255, 228, 186, .55); }
.board h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); }
.board h2::after { content: ""; display: block; width: 110px; height: 2px; margin: 14px auto 0; background: #2e1a0c; opacity: .55; box-shadow: 0 1px 0 rgba(255, 228, 186, .55); }
.rules { --wx: -470px; background: var(--nail) 18px 50% / 12px 12px no-repeat, var(--nail) calc(100% - 18px) 50% / 12px 12px no-repeat, linear-gradient(rgba(240, 204, 156, .32), rgba(240, 204, 156, .32)), #c48d55 url("/assets/img/puu.webp") var(--wx) 50% / 1600px 100% repeat-x; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; padding: 38px 70px 44px; counter-reset: r; }
.rules > div { counter-increment: r; position: relative; }
.rules > div::before { content: counter(r) "."; display: block; font: italic 700 2.4rem/1 var(--serif); margin-bottom: 10px; }
.rules h3 { font-size: 1.22rem; margin-bottom: 8px; }
.rules p { font-size: 1rem; font-weight: 550; line-height: 1.6; color: #34200f; text-shadow: 0 1px 0 rgba(255, 228, 186, .35); }

/* ── Kunnat: tienviitat tolpissa. Luku = kunnan etäisyyssääntö metreinä. ──── */
.signs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 34px 30px; align-items: end; }
.sign { --pt: 28px; position: relative; display: flex; flex-direction: column; align-items: center; padding-bottom: 48px; text-decoration: none; color: #1c1c1c; isolation: isolate; filter: drop-shadow(0 10px 9px rgba(20, 40, 80, .2)); }
.sign-plate { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-height: 72px; padding: 14px calc(var(--pt) + 14px) 14px 20px; color: #fff; background: var(--sign); clip-path: polygon(6px 0, calc(100% - var(--pt)) 0, 100% 50%, calc(100% - var(--pt)) 100%, 6px 100%, 0 calc(100% - 6px), 0 6px); }
.sign-plate::before, .sign-plate::after { content: ""; position: absolute; }
.sign-plate::before { inset: 4px 5px 4px 4px; background: #fff; clip-path: polygon(4px 0, calc(100% - var(--pt) + 3px) 0, 100% 50%, calc(100% - var(--pt) + 3px) 100%, 4px 100%, 0 calc(100% - 4px), 0 4px); }
.sign-plate::after { inset: 7px 9px 7px 7px; background: var(--sign); clip-path: polygon(3px 0, calc(100% - var(--pt) + 5.5px) 0, 100% 50%, calc(100% - var(--pt) + 5.5px) 100%, 3px 100%, 0 calc(100% - 3px), 0 3px); transition: background .2s; }
.sign-l .sign-plate { padding: 14px 20px 14px calc(var(--pt) + 14px); clip-path: polygon(var(--pt) 0, calc(100% - 6px) 0, 100% 6px, 100% calc(100% - 6px), calc(100% - 6px) 100%, var(--pt) 100%, 0 50%); }
.sign-l .sign-plate::before { inset: 4px 4px 4px 5px; clip-path: polygon(calc(var(--pt) - 3px) 0, calc(100% - 4px) 0, 100% 4px, 100% calc(100% - 4px), calc(100% - 4px) 100%, calc(var(--pt) - 3px) 100%, 0 50%); }
.sign-l .sign-plate::after { inset: 7px 7px 7px 9px; clip-path: polygon(calc(var(--pt) - 5.5px) 0, calc(100% - 3px) 0, 100% 3px, 100% calc(100% - 3px), calc(100% - 3px) 100%, calc(var(--pt) - 5.5px) 100%, 0 50%); }
.sign:hover .sign-plate, .sign:hover .sign-plate::after { background: #2468c2; }
.sign-plate > * { position: relative; z-index: 1; }
.sign-plate strong { min-width: 0; font: 700 1.42rem/1.1 var(--sans); letter-spacing: -.01em; }
.sign-num { flex: none; font: 700 1.42rem/1 var(--sans); }
.sign-num small { margin-left: 3px; font-size: .72em; }
/* lisäkilpi: valkoinen, ohut musta reunus */
.sign-sub { position: relative; display: block; width: 84%; margin-top: 6px; padding: 8px 10px 9px; border-radius: 4px; background: #fff; box-shadow: inset 0 0 0 2px #fff, inset 0 0 0 3.5px #222; text-align: center; font: 600 .84rem/1.3 var(--sans); }
.sign-sub em { display: block; margin-top: 3px; font: 500 .64rem var(--mono); font-style: normal; text-transform: uppercase; letter-spacing: .08em; color: #5d5d5d; }
.sign:hover .sign-sub { text-decoration: underline; text-underline-offset: 3px; }
.sign-post { position: absolute; z-index: -1; top: 26px; bottom: 0; left: 50%; width: 10px; margin-left: -5px; border-radius: 3px 3px 0 0; background: linear-gradient(90deg, #7b8388, #dde2e5 40%, #a2aaaf 70%, #6c7479); }
.sign::after { content: ""; position: absolute; z-index: -2; bottom: -3px; left: 50%; width: 44px; height: 7px; margin-left: -22px; border-radius: 50%; background: rgba(36, 26, 20, .16); }
/* kuntasivun otsakkeen paikannimikyltti */
.place-sign { display: inline-block; margin-bottom: 22px; padding: 14px 30px 12px; border-radius: 10px; background: var(--sign); color: #fff; box-shadow: inset 0 0 0 4px var(--sign), inset 0 0 0 6.5px #fff, 0 14px 26px -16px rgba(0, 0, 0, .6); font: 700 clamp(2.4rem, 6vw, 4rem)/1.1 var(--sans); letter-spacing: -.01em; }

/* ── UKK ──────────────────────────────────────────────────────────────────── */
.faq { border-top: 2px solid var(--ink); }
.qa { border-bottom: 1px solid var(--line-2); }
.q { display: flex; align-items: center; justify-content: space-between; gap: 24px; width: 100%; padding: 26px 4px; border: 0; background: none; text-align: left; font: 650 1.22rem/1.35 var(--serif); color: var(--ink); cursor: pointer; font-variation-settings: "SOFT" 100, "WONK" 0; transition: color .2s; }
.q:hover { color: var(--ember-ink); }
.pm { position: relative; flex: none; width: 38px; height: 38px; border-radius: 50%; background: var(--rye-soft); transition: background .3s, transform .45s var(--spring); }
.pm::before, .pm::after { content: ""; position: absolute; left: 50%; top: 50%; width: 13px; height: 2.2px; margin: -1.1px 0 0 -6.5px; border-radius: 2px; background: var(--ink); transition: transform .4s var(--ease), background .3s; }
.pm::after { transform: rotate(90deg); }
.qa.open .pm { background: var(--ember); transform: rotate(180deg); }
.qa.open .pm::before, .qa.open .pm::after { background: #fff; }
.qa.open .pm::after { transform: rotate(0); }
.a { overflow: hidden; }
.faqjs .a { max-height: 0; transition: max-height .5s var(--ease); }
.a-in { padding: 0 4px 28px; color: var(--ink-2); font-size: 1.04rem; }

/* ── CTA ja alatunniste ───────────────────────────────────────────────────── */
.cta-band { --wv: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1440 56' preserveAspectRatio='none'%3E%3Cpath d='M0 30C360 4 720 54 1080 26S1440 20 1440 20V56H0Z'/%3E%3C/svg%3E"); position: relative; margin-top: -54px; background: var(--ember); color: #fff; padding: 150px 0 176px; overflow: hidden; isolation: isolate; -webkit-mask: var(--wv) 0 0 / 100% 56px no-repeat, linear-gradient(#000, #000) 0 55px / 100% calc(100% - 55px) no-repeat; mask: var(--wv) 0 0 / 100% 56px no-repeat, linear-gradient(#000, #000) 0 55px / 100% calc(100% - 55px) no-repeat; }
.cta-in { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 40px; }
.cta-in h2 { margin-bottom: 12px; color: #fff; }
.cta-in p { color: rgba(255, 255, 255, .9); max-width: 620px; }
.ftr { position: relative; background: var(--night); color: var(--cream-3); padding: 90px 0 32px; font-size: .95rem; }
.village { position: absolute; left: 0; right: 0; bottom: calc(100% - 1px); width: 100%; height: 130px; pointer-events: none; }
.village .win { fill: var(--glow); }
.village .smoke { fill: none; stroke: #fff3e4; stroke-width: 4; stroke-linecap: round; opacity: .3; transform-box: fill-box; transform-origin: 50% 100%; animation: puff 6s ease-in-out infinite; }
.village .flag { transform-box: fill-box; transform-origin: 0 50%; animation: flutter 3.2s ease-in-out infinite; }
@keyframes puff { 0%, 100% { opacity: .12; transform: translateY(0) scaleY(.9); } 50% { opacity: .42; transform: translateY(-5px) scaleY(1.06); } }
@keyframes flutter { 0%, 100% { transform: scaleX(1) skewY(0); } 50% { transform: scaleX(.9) skewY(4deg); } }
.ft-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 40px; }
.ft-grid a { display: block; text-decoration: none; padding: 4px 0; transition: color .2s; }
.ft-grid a:hover { color: var(--cream); }
.ft-brand p { margin-top: 18px; max-width: 360px; color: var(--cream-2); }
.ft-note { font-size: .85rem; color: var(--cream-3) !important; }
.brand-light { color: var(--cream); --logo-ink: var(--cream); --logo-bg: var(--night); --logo-ember: var(--glow); }
.ft-h { font: 500 .78rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--glow); margin-bottom: 14px; }
.ft-bottom { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; margin-top: 60px; padding-top: 24px; border-top: 1px solid rgba(247, 237, 221, .1); font-size: .85rem; }
.ft-bottom a { text-decoration: none; }
.ft-bottom a:hover { color: var(--cream); }

/* ── Alasivujen otsake: sama saunakuva tummempana ─────────────────────────── */
.page-hero { position: relative; padding: 60px 0 108px; background: #10140f; color: var(--cream); overflow: hidden; isolation: isolate; }
.page-hero .hero-bg, .page-hero .hero-bg img { object-position: 74% 58%; background-position: 74% 58%; }
.page-hero::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 12, 10, .88) 0%, rgba(8, 12, 10, .7) 50%, rgba(8, 12, 10, .32) 100%); }
.page-hero h1 { font-size: clamp(2.2rem, 4.6vw, 3.6rem); max-width: 940px; margin-bottom: 22px; color: var(--cream); }
.page-hero .lead { max-width: 780px; color: var(--cream-2); font-size: 1.15rem; }
.nf { min-height: calc(100svh - var(--hdr) - 120px); display: grid; align-items: center; }
.meta { display: inline-flex; align-items: center; gap: 8px; margin-top: 22px; padding: 6px 13px; border-radius: 999px; background: rgba(247, 237, 221, .1); border: 1px solid rgba(247, 237, 221, .2); font: 500 .78rem var(--mono); color: var(--cream); }
.meta .i { color: var(--glow); }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 26px; font-size: .88rem; color: var(--cream-3); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: .5; }
.crumbs a { text-decoration: none; color: var(--cream-2); }
.crumbs a:hover { color: var(--cream); text-decoration: underline; }

.guide-grid { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: 70px; padding: 64px 0 100px; }
.toc { position: sticky; top: calc(var(--hdr) + 24px); align-self: start; padding: 20px 0 20px 20px; border-left: 3px solid var(--rye); }
.toc-h { font: italic 650 1.15rem var(--serif); margin-bottom: 10px; }
.toc ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; }
.toc a { display: block; padding: 6px 0; text-decoration: none; font-size: .92rem; color: var(--ink-2); transition: color .2s, transform .3s var(--ease); }
.toc a:hover, .toc a.on { color: var(--ember-ink); transform: translateX(5px); }
.toc a.on { font-weight: 650; }
.prose { max-width: 780px; min-width: 0; }
.prose h2 { margin: 72px 0 18px; scroll-margin-top: calc(var(--hdr) + 20px); font-size: clamp(1.7rem, 3vw, 2.3rem); }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin: 34px 0 12px; font-size: 1.28rem; }
.prose ul:not(.ticks):not(.checks), .prose ol:not(.steps-list):not(.sources) { padding-left: 1.2em; }
.sources { padding-left: 1.3em; display: grid; gap: 8px; font-size: .92rem; }
.sources a { word-break: break-word; }

/* faktat hintalappuina */
.facts { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin: 0 0 30px; }
.fact { position: relative; display: grid; gap: 4px; align-content: start; padding: 30px 16px 16px; border-radius: 4px 4px 16px 16px; background: var(--paper); box-shadow: var(--shadow); transition: transform .3s var(--ease), box-shadow .3s; }
.fact::before { content: ""; position: absolute; left: 50%; top: 11px; width: 9px; height: 9px; margin-left: -4.5px; border-radius: 50%; background: var(--birch); box-shadow: inset 0 1px 2px rgba(0, 0, 0, .3); }
.fact:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.fact-v { font: 700 1.45rem/1.1 var(--serif); color: var(--ember); letter-spacing: -.01em; font-variation-settings: "SOFT" 100, "WONK" 1; }
.fact-l { font-size: .84rem; line-height: 1.4; color: var(--muted); }
.data-note, .disclosure { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 26px; padding: 14px 16px; border-radius: 14px; background: var(--moss-soft); color: var(--ink-2); font-size: .9rem; line-height: 1.55; }
.data-note .i, .disclosure .i { color: var(--moss); margin-top: 2px; }
.disclosure { background: rgba(36, 26, 20, .05); margin-top: 28px; }

.tbl { margin: 12px 0 24px; overflow-x: auto; border-radius: 12px; background: var(--paper); box-shadow: var(--shadow); border: 1px solid var(--line); }
.tbl table { width: 100%; border-collapse: collapse; font-size: .95rem; min-width: 520px; }
.tbl th, .tbl td { padding: 13px 15px; text-align: left; border-bottom: 1px dashed var(--line-2); vertical-align: top; }
.tbl th { font: 500 .72rem var(--mono); text-transform: uppercase; letter-spacing: .1em; color: #5a3c22; background: var(--rye-soft); border-bottom: 2px solid var(--rye); white-space: nowrap; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { transition: background .2s; }
.tbl tbody tr:hover { background: rgba(255, 180, 94, .12); }
.tbl .r { text-align: right; }
.tbl td.num { white-space: nowrap; font-size: .92rem; }
.tbl td.num strong { color: var(--ember-ink); font-weight: 500; }

.note { position: relative; margin: 26px 0; padding: 22px 24px; border-radius: 6px; background: var(--paper); box-shadow: var(--shadow); }
.note-h { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; }
.note-h .i { width: 22px; height: 22px; }
.note-law { border-left: 5px solid var(--lake); background-image: linear-gradient(90deg, transparent, transparent), repeating-linear-gradient(180deg, transparent 0 29px, rgba(43, 90, 98, .1) 29px 30px); overflow: hidden; }
.note-law::after { content: "§"; position: absolute; right: 14px; bottom: -34px; font: 700 7rem/1 var(--serif); color: rgba(43, 90, 98, .1); pointer-events: none; }
.note-law .note-h { color: var(--lake); }
.note-law p { font-family: var(--serif); font-size: 1.1rem; line-height: 1.55; }
.note-warn { border-left: 5px solid var(--ember); background: #fff3ea; }
.note-warn .note-h .i { color: var(--ember); }
.note-tip { background: var(--note); border-radius: 2px; box-shadow: 0 18px 24px -18px rgba(90, 70, 0, .45); }
.note-tip::before { content: ""; position: absolute; left: 50%; top: -11px; width: 92px; height: 24px; margin-left: -46px; background: rgba(255, 255, 255, .55); border: 1px solid rgba(0, 0, 0, .06); transform: rotate(-3deg); }
.note-tip .note-h .i { color: #7a6200; }

.calc-box { position: relative; margin: 12px 0 16px; padding: 26px 28px; border-radius: 6px; background: var(--paper); box-shadow: var(--shadow); }
.calc-box::after { content: ""; position: absolute; left: 0; right: 0; bottom: -10px; height: 12px; background: radial-gradient(circle at 8px -2px, transparent 8px, var(--paper) 8.5px) 0 0 / 16px 12px repeat-x; }
.calc-line { display: flex; justify-content: space-between; gap: 18px; padding: 9px 0; border-bottom: 1px dashed var(--line-2); }
.calc-line .num { white-space: nowrap; }
.calc-total { border: 0; border-top: 2px solid var(--ink); margin-top: 6px; padding-top: 14px; font-weight: 700; }
.inline-cta { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 40px 0; padding: 28px 30px; border-radius: 14px; background: var(--night); color: var(--cream); }
.inline-cta p { color: var(--cream-2); margin: 4px 0 0; font-size: .95rem; }
.inline-cta strong { font: 650 1.3rem var(--serif); }
.pick-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin: 28px 0; }
.pick h3 { font-size: 1.2rem; }

/* ── Työkalut: lupatarkistin ──────────────────────────────────────────────── */
.tool { position: relative; margin: 0 0 44px; padding: 30px; border-radius: 6px; background: var(--paper); box-shadow: var(--shadow-lg); background-image: linear-gradient(90deg, rgba(223, 85, 39, .25) 0 2px, transparent 2px), repeating-linear-gradient(180deg, transparent 0 31px, rgba(43, 90, 98, .09) 31px 32px); background-size: 100% 100%, 100% 100%; background-position: 54px 0, 0 0; background-repeat: no-repeat, repeat; }
.tool-head { display: flex; gap: 16px; align-items: flex-start; margin-bottom: 24px; }
.tool-head > .i { width: 40px; height: 40px; padding: 8px; border-radius: 12px; background: var(--lake); color: var(--cream); }
.tool-head h3 { margin-bottom: 4px; font-size: 1.5rem; }
.tool-head p { color: var(--muted); font-size: .95rem; }
.tool-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 24px; }
.fld { display: grid; gap: 8px; margin: 0; padding: 0; border: 0; min-width: 0; }
.fld > span, .fld legend { font-weight: 650; font-size: .95rem; padding: 0; margin-bottom: 8px; }
.fld input[type="number"], .mini-num { width: 100%; padding: 12px 14px; border-radius: 12px; border: 2px solid var(--line-2); background: #fff; font: 500 1rem var(--mono); color: var(--ink); transition: border-color .2s, box-shadow .2s; }
.fld input:focus, .mini-num:focus { outline: none; border-color: var(--ember); box-shadow: 0 0 0 4px var(--ember-soft); }
.seg { display: flex; flex-wrap: wrap; gap: 8px; }
.seg label { position: relative; cursor: pointer; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 17px; border-radius: 999px; border: 2px solid var(--line-2); background: #fff; font-weight: 650; font-size: .94rem; color: var(--ink-2); transition: border-color .2s, background .2s, color .2s; }
.seg label:hover span { border-color: var(--ink); }
.seg input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--cream); }
.seg input:focus-visible + span { outline: 3px solid var(--ember-2); outline-offset: 2px; }
.seg input:disabled + span { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.tool-out { position: relative; margin-top: 26px; padding: 24px 170px 4px 0; border-top: 2px dashed var(--line-2); min-height: 190px; }
.tool-out .stamp { right: 6px; top: 26px; bottom: auto; }
.verdict { font: 650 1.45rem/1.3 var(--serif); margin-bottom: 6px; }
.verdict.need { color: var(--ember-ink); }
.checklist { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; font-size: .96rem; }
.checklist li { position: relative; padding-left: 26px; color: var(--ink-2); }
.checklist li::before { content: "→"; position: absolute; left: 0; top: 0; color: var(--ember); font-weight: 700; }

/* ── Hintalaskuri ─────────────────────────────────────────────────────────── */
.calc { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 36px; align-items: start; }
.calc-form { padding: 10px 32px; border-radius: 6px; }
.calc-form:hover { transform: none; }
.step { margin: 0; padding: 26px 0; border: 0; border-bottom: 2px dashed var(--line); min-width: 0; }
.step:last-child { border-bottom: 0; }
.step legend { display: flex; align-items: center; gap: 12px; padding: 0; margin-bottom: 16px; font: 650 1.3rem var(--serif); float: left; width: 100%; }
.step legend + * { clear: both; }
.step-n { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--ember); color: #fff; font: 700 1rem var(--serif); }
.seg-wrap span .i { width: 18px; height: 18px; }
[data-show-stove] { margin-top: 14px; }
.hint { margin: 12px 0 0; font-size: .87rem; color: var(--muted); }
.row-check { display: flex; align-items: center; gap: 10px; margin: 4px 0; font-weight: 550; cursor: pointer; }
.row-check input[type="checkbox"] { width: 21px; height: 21px; accent-color: var(--ember); }
.mini-num { width: 86px; padding: 8px 10px; }
.calc-sum { position: sticky; top: calc(var(--hdr) + 20px); display: grid; gap: 22px; }
.sum-card { position: relative; padding: 30px 28px 26px; border-radius: 18px; background: var(--night); color: var(--cream); box-shadow: var(--shadow-lg); overflow: hidden; isolation: isolate; }
.sum-card::before { content: ""; position: absolute; left: 50%; top: -120px; width: 420px; height: 300px; margin-left: -210px; background: radial-gradient(ellipse, rgba(255, 140, 70, .35), transparent 65%); z-index: -1; }
.sum-card .gauge { width: min(270px, 100%); margin: -6px auto 8px; filter: drop-shadow(0 18px 24px rgba(0, 0, 0, .55)); }
.sum-label { text-align: center; font: 500 .76rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--glow); margin-bottom: 8px; }
.sum-range { text-align: center; color: var(--cream-2); font-size: .95rem; }
.sum-range strong { color: var(--cream); font-weight: 500; }
.sum-lines { margin-top: 18px; border-top: 1px solid rgba(247, 237, 221, .12); }
.sum-line { display: flex; justify-content: space-between; gap: 14px; padding: 10px 0; border-bottom: 1px dashed rgba(247, 237, 221, .14); font-size: .92rem; }
.sum-line span:first-child { color: var(--cream-2); }
.sum-line .num { color: var(--cream); white-space: nowrap; }
.sum-note { margin-top: 14px; font-size: .84rem; color: var(--cream-3) !important; }
.sum-models { padding: 26px; border-radius: 6px; background: var(--paper); box-shadow: var(--shadow); }
.h-sm { font-size: 1.25rem; margin-bottom: 12px; }
.models { list-style: none; padding: 0; margin: 0; display: grid; }
.models li { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 13px 0; border-bottom: 1px dashed var(--line-2); font-size: .92rem; }
.models li:last-child { border-bottom: 0; }
.models .m-name { font-weight: 650; }
.models .m-meta { grid-column: 1; color: var(--muted); font-size: .84rem; }
.models .m-price { grid-row: 1; grid-column: 2; font-family: var(--mono); font-weight: 500; white-space: nowrap; color: var(--ember-ink); }
.models .m-link { grid-column: 2; justify-self: end; }
.models .empty { display: block; color: var(--muted); }

/* ── Kaupat ───────────────────────────────────────────────────────────────── */
.shop-list { display: grid; gap: 20px; }
.shop-head { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 10px; }
.shop h2 { font-size: 1.7rem; }
.owner { font: 500 .8rem var(--mono); color: var(--muted); }
.shop p { color: var(--ink-2); }
.sells { margin: 14px 0 4px; }
.shop-links { display: flex; flex-wrap: wrap; gap: 12px 22px; margin-top: 12px; }

/* ── Kuntasivu ────────────────────────────────────────────────────────────── */
.status { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 14px; line-height: 1.45; font: 500 .8rem var(--mono); background: rgba(247, 237, 221, .12); border: 1px solid rgba(247, 237, 221, .22); color: var(--cream); }
.status::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #9bd36b; }
.status.draft::before { background: var(--glow); }
.status.old::before { background: #e98d7a; }
.rule-list { display: grid; gap: 0; margin: 10px 0 26px; border-top: 2px solid var(--ink); }
.rule-list > div { display: grid; grid-template-columns: 230px 1fr; gap: 20px; padding: 18px 0; border-bottom: 1px dashed var(--line-2); }
.rule-list dt { font: 650 1.05rem var(--serif); }
.rule-list dd { margin: 0; color: var(--ink-2); }
.pull { position: relative; margin: 34px 0; padding: 8px 0 8px 34px; border-left: 4px solid var(--ember); font: italic 550 1.4rem/1.45 var(--serif); color: var(--ink); }
.pull cite { display: block; margin-top: 10px; font: 500 .82rem var(--mono); font-style: normal; color: var(--muted); }

/* ── Esiintulo ────────────────────────────────────────────────────────────── */
.js .rv { opacity: 0; transform: translateY(26px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .rv-d1 { transition-delay: .09s; }
.js .rv-d2 { transition-delay: .18s; }
.js .rv-d3 { transition-delay: .27s; }

/* ── Mobiili ──────────────────────────────────────────────────────────────── */
@media (max-width: 1180px) {
  .types { grid-template-columns: 1fr 1fr; }
  .type { min-height: 0; }
  .signs { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 960px) {
  .brand-grid { grid-template-columns: 1fr 1fr; }
  .hero-strip { grid-template-columns: 1fr 1fr; }
  .hero-strip a:nth-child(3) { border-left: 0; }
  .hero-strip a:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .12); }
  .split, .split-wide, .calc { grid-template-columns: minmax(0, 1fr); gap: 56px; }
  .reading { grid-template-columns: 1fr; }
  .rules { grid-template-columns: 1fr; gap: 22px; }
  /* kapealla näytöllä jokainen sääntö on oma lautansa */
  .rules { display: grid; grid-template-columns: minmax(0, 1fr); gap: 3px; padding: 0; background: none; box-shadow: none; }
  .rules > div { --wx: -260px; padding: 30px 56px 32px; background: var(--nail) 18px 50% / 12px 12px no-repeat, var(--nail) calc(100% - 18px) 50% / 12px 12px no-repeat, linear-gradient(rgba(240, 204, 156, .32), rgba(240, 204, 156, .32)), #c48d55 url("/assets/img/puu.webp") var(--wx) 50% / 1600px 100% repeat-x; box-shadow: inset 0 2px 0 rgba(255, 234, 200, .4), inset 0 -3px 5px rgba(74, 38, 12, .3), inset 8px 0 10px -6px rgba(74, 38, 12, .35), inset -8px 0 10px -6px rgba(74, 38, 12, .35); }
  .rules > div:nth-child(2) { --wx: -560px; filter: brightness(.96); }
  .rules > div:nth-child(3) { --wx: -90px; border-radius: 0 0 5px 5px; }
  .guide-grid { grid-template-columns: minmax(0, 1fr); gap: 0; padding-top: 44px; }
  .toc { display: none; }
  .facts { grid-template-columns: 1fr 1fr; }
  .calc-sum { position: static; }
  .calc-demo { grid-template-columns: 200px 1fr; }
  .ft-grid { grid-template-columns: 1fr 1fr; }
  .cta-in, .inline-cta { flex-direction: column; align-items: flex-start; }
  .rule-list > div { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 860px) {
  .links { position: fixed; inset: var(--hdr) 0 0 0; margin: 0; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0; padding: 12px 24px 32px; overflow-y: auto; background: var(--night); color: var(--cream); border-top: 1px solid rgba(247, 237, 221, .08); opacity: 0; visibility: hidden; transition: opacity .3s, visibility .3s; }
  .links.open { opacity: 1; visibility: visible; }
  .links > a { display: block; padding: 16px 0; border-bottom: 1px solid rgba(247, 237, 221, .1); font: 600 clamp(1.6rem, 7vw, 2.1rem) var(--serif); letter-spacing: -.015em; color: var(--cream); opacity: 0; transform: translateY(14px); transition: opacity .45s, transform .45s var(--ease), color .2s; }
  .links > a:hover { color: var(--glow); }
  .links > a[aria-current="page"] { color: var(--glow); }
  .links > a[aria-current="page"]::after { display: none; }
  .links.open > a { opacity: 1; transform: none; }
  .links.open > a:nth-child(1) { transition-delay: .04s; } .links.open > a:nth-child(2) { transition-delay: .08s; }
  .links.open > a:nth-child(3) { transition-delay: .12s; } .links.open > a:nth-child(4) { transition-delay: .16s; }
  .links.open > a:nth-child(5) { transition-delay: .2s; } .links.open > a:nth-child(6) { transition-delay: .24s; }
  .menu-extra { display: grid; gap: 16px; margin-top: auto; padding-top: 36px; opacity: 0; transform: translateY(14px); transition: opacity .45s .25s, transform .45s .25s var(--ease); }
  .links.open .menu-extra { opacity: 1; transform: none; }
  .menu-extra .btn { padding: 17px 26px; font-size: 1.05rem; }
  .menu-extra .mc { color: var(--cream-3); font-size: .95rem; }
  body.menu-open { overflow: hidden; }
  .burger { display: inline-flex; }
  .nav-right { margin-left: auto; }
  .hide-m { display: none; }
}
@media (max-width: 640px) {
  .tbl.tbl-fit th, .tbl.tbl-fit td { padding: 10px 8px; }
  .tbl.tbl-fit th { font-size: .62rem; letter-spacing: .04em; }
  .brand-grid { grid-template-columns: 1fr; }
  :root { --hdr: 66px; }
  .wrap, .narrow { width: calc(100% - 32px); }
  .sec { padding: 80px 0; }
  .sec-tight { padding: 46px 0; }
  main > .sec:last-child { padding-bottom: 170px; }
  /* puhelimella kuva on oma kaistansa ylhäällä, jottei teksti peitä saunaa */
  .hero { min-height: 0; }
  .hero > .hero-bg { position: relative; inset: auto; flex: none; height: 72vw; }
  .hero-in { margin-top: -54px; padding: 0 0 28px; }
  .hero .lead { font-size: 1.07rem; }
  .hero-bg img { object-position: 50% 48%; }
  .hero-bg { background-image: url("data:image/jpeg;base64,/9j/4AAQSkZJRgABAQAAAQABAAD/2wBDAA0JCgsKCA0LCgsODg0PEyAVExISEyccHhcgLikxMC4pLSwzOko+MzZGNywtQFdBRkxOUlNSMj5aYVpQYEpRUk//2wBDAQ4ODhMREyYVFSZPNS01T09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0//wAARCAAoACADASIAAhEBAxEB/8QAHwAAAQUBAQEBAQEAAAAAAAAAAAECAwQFBgcICQoL/8QAtRAAAgEDAwIEAwUFBAQAAAF9AQIDAAQRBRIhMUEGE1FhByJxFDKBkaEII0KxwRVS0fAkM2JyggkKFhcYGRolJicoKSo0NTY3ODk6Q0RFRkdISUpTVFVWV1hZWmNkZWZnaGlqc3R1dnd4eXqDhIWGh4iJipKTlJWWl5iZmqKjpKWmp6ipqrKztLW2t7i5usLDxMXGx8jJytLT1NXW19jZ2uHi4+Tl5ufo6erx8vP09fb3+Pn6/8QAHwEAAwEBAQEBAQEBAQAAAAAAAAECAwQFBgcICQoL/8QAtREAAgECBAQDBAcFBAQAAQJ3AAECAxEEBSExBhJBUQdhcRMiMoEIFEKRobHBCSMzUvAVYnLRChYkNOEl8RcYGRomJygpKjU2Nzg5OkNERUZHSElKU1RVVldYWVpjZGVmZ2hpanN0dXZ3eHl6goOEhYaHiImKkpOUlZaXmJmaoqOkpaanqKmqsrO0tba3uLm6wsPExcbHyMnK0tPU1dbX2Nna4uPk5ebn6Onq8vP09fb3+Pn6/9oADAMBAAIRAxEAPwDkHHFORTipWXJwBUsFpLIMqvSrRhFN6IhEeDSOmOlaP9nXBXJQ4qu0YBIPBoG4uO5q22nlYxIUy1adlbdQY6o/bHVvlPFTwaiyZyaHG6NqU0pLoW5Fl3hQp21WutPR4C5jCt61YbVo9o+Xkd6oz37yZy3HpUxjYutUUutzCW62jJpftmelFFaHKL9q9TTWuOOtFFAH/9k="); background-position: 50% 48%; }
  .hero::before { inset: 0 0 auto 0; height: calc(72vw + 1px); background: linear-gradient(180deg, rgba(16, 20, 15, 0) 45%, #10140f 100%); }
  .hero-strip a { padding: 14px; }
  .hero-strip strong { font-size: 1.35rem; }
  .hero-foot { font-size: .6rem; padding-bottom: 42px; }
  .page-hero { padding: 36px 0 70px; }
  .types, .pick-grid, .tool-grid { grid-template-columns: 1fr; }
  .edge { height: 30px; }
  .signs { grid-template-columns: 1fr 1fr; gap: 26px 14px; }
  .sign { --pt: 18px; padding-bottom: 36px; }
  .sign-plate { min-height: 56px; gap: 6px; padding: 10px calc(var(--pt) + 10px) 10px 12px; }
  .sign-l .sign-plate { padding: 10px 12px 10px calc(var(--pt) + 10px); }
  .sign-plate strong, .sign-num { font-size: 1rem; }
  .sign-sub { width: 94%; padding: 7px 6px 8px; font-size: .76rem; }
  .read { grid-template-columns: 46px 1fr; }
  .read .arr { display: none; }
  .read::before { font-size: 1.7rem; }
  .card { padding: 24px; }
  .tool { padding: 22px 18px; background-position: 30px 0, 0 0; }
  .tool-out { padding-right: 0; padding-top: 140px; }
  .tool-out .stamp { left: 50%; right: auto; top: 18px; margin-left: -60px; width: 120px; height: 120px; font-size: .9rem; }
  .calc-form { padding: 4px 18px; }
  .calc-demo { grid-template-columns: 1fr; }
  .calc-demo .gauge-wrap { width: 210px; margin: 0 auto -50px; }
  .receipt { padding: 70px 22px 22px; }
  .receipt .scribble { right: 8px; top: -50px; font-size: 1.3rem; }
  .btn-lg { width: 100%; }
  .hero-cta .btn { width: 100%; }
  .stamp { width: 112px; height: 112px; right: -6px; top: -48px; font-size: .85rem; }
  .law-card { padding: 54px 24px 34px; }
  .ft-grid { grid-template-columns: 1fr; gap: 32px; }
  .ftr { padding-top: 70px; }
  .village { height: 110px; }
  .cta-band { margin-top: -34px; padding: 100px 0 150px; -webkit-mask: var(--wv) 0 0 / 100% 36px no-repeat, linear-gradient(#000, #000) 0 35px / 100% calc(100% - 35px) no-repeat; mask: var(--wv) 0 0 / 100% 36px no-repeat, linear-gradient(#000, #000) 0 35px / 100% calc(100% - 35px) no-repeat; }
  .facts { grid-template-columns: 1fr 1fr; gap: 12px; }
  .fact { padding: 28px 12px 14px; }
  .fact-v { font-size: 1.15rem; }
  .tbl table { font-size: .88rem; }
  .tbl th, .tbl td { padding: 10px 11px; }
  .seg span { padding: 9px 13px; font-size: .9rem; }
  .q { font-size: 1.1rem; }
  .board { margin-top: 60px; }
  .board::before { left: 16%; }
  .board::after { right: 16%; }
  .board-title { padding: 32px 34px 26px; }
  .rules > div { padding: 26px 34px 28px; background-position: 9px 50%, calc(100% - 9px) 50%, 0 0, var(--wx) 50%; }
  .board-row { background-position: 9px 50%, calc(100% - 9px) 50%, var(--wx) 50%; }
  .pull { font-size: 1.2rem; padding-left: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .rv { opacity: 1; transform: none; }
}
