/* /aloita/ (mainos-landing vaihe 1). Etusivun ilme ilman 3D:tä: värit vain /style.css:n muuttujista
   (--p 60, --t 30, --k 10), ei yhtään uutta heksaa. Oranssi vain: pääpainike, valittu valinta, vaihelaskurin valmis
   viiva, puhelimen reunavalo ja nauhan viiva (sama kuin etusivulla). */
/* avoid-ai-design-ignore-file: SD2 -- near-black + orange is the owner's palette O1/O2 (28.11.2026), not a default */
@font-face { font-family: "Archivo"; src: url("/fonts/archivo-wdth-fi.woff2") format("woff2"); font-weight: 100 900; font-stretch: 62% 125%; font-display: swap; }
:root { --disp: "Archivo", "Familjen Grotesk", "Helvetica Neue", Arial, sans-serif; --soft: color-mix(in srgb, var(--t) 84%, var(--p)); }
html, body.al-body { background: var(--p); }
html { overflow-x: clip; }
body.al-body { overflow-x: clip; position: relative; }

.top { position: relative; z-index: 5; background: color-mix(in srgb, var(--p) 86%, transparent); }
.top nav a[aria-current="page"] { color: var(--t); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: .3em; }
/* K5: the top button is the outlined one; the filled one belongs to the hero / form */
.top nav .al-topbtn { min-height: 44px; padding: 0 18px; color: var(--t); border-color: color-mix(in srgb, var(--t) 55%, transparent); }

/* Y1 + Y9 everything pressable: size and give */
.al-body .btn, .al-body summary, .al-pick span, .al-ex-row a, .al-wa { touch-action: manipulation; }
.al-body .btn:active, .al-pick label:active span, .al-ex-row a:active, .al-wa:active { transform: scale(.97); }
.al-body summary:active { transform: scale(.99); transform-origin: left center; }
/* Y11 one ring, three pixels off the edge */
.al-body :focus-visible { outline: 3px solid var(--t); outline-offset: 3px; }

/* ---------------- first screen: the home page's 3D stage (etusivu3d.css + lava.js), our copy and survey ---------------- */
.al-hero .h1-claim { font-size: clamp(2.4rem, min(3.9vw, 7.4svh), 4.4rem); font-stretch: 108%; line-height: .95; letter-spacing: -.026em; max-width: 15ch; }
.e3d-wrap.al-wrap { grid-template-columns: minmax(0, 1fr) minmax(420px, 520px); grid-template-areas: "copy stage"; column-gap: clamp(36px, 5vw, 88px); }
.al-copy { grid-area: copy; }
.al-slot { grid-area: stage; }
.al-noname { display: none !important; }

/* prices: the home page bar, Archivo numbers, even width (Y14), orange underline (drawn in by lava.js) */
.al-prices { max-width: 600px; margin-top: 24px; padding-block: 12px 8px; }
.al-prices b { white-space: nowrap; }
.al-prices em { margin-top: 8px; padding-top: 8px; }
.al-prices b small { font-size: .42em; font-weight: 600; font-stretch: 100%; letter-spacing: 0; margin-left: 2px; color: var(--soft); }
.al-prices em a { color: var(--t); text-underline-offset: 3px; display: inline-block; padding-block: 10px; margin-block: -10px; }
/* the price row is not one big link (L7a puts a link inside it): no lift or underline on hover */
.al-prices:hover { transform: none; box-shadow: none; border-color: var(--t); }
.al-prices:hover b { text-decoration: none; }
@media (min-width: 561px) { .al-prices { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.al-acts { margin-top: 24px; display: grid; justify-items: start; gap: 10px; }
.al-hint { color: var(--soft); font-size: .95rem; }
/* the big button (Jussi 3.12.): opens the survey in place; the only filled button on the first screen (K5) */
.al-hero.is-open .al-acts { visibility: hidden; }
/* the survey takes the phone's place: the slot goes (lava.js then draws nothing and its loop stops = 3D paused) */







/* sent: the form gives way to the receipt in the same card */

/* ---------------- sections ---------------- */
.al-body section:not(.al-hero) { position: relative; z-index: 1; border-top: 1px solid var(--rule); }
.al-body section h2 { font-family: var(--disp); font-stretch: 108%; font-weight: 800; letter-spacing: -.024em; }
.al-split { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.6fr); gap: clamp(28px, 5vw, 80px); align-items: start; }
.al-side p { margin-top: 14px; color: var(--soft); }
.al-side a, .al-once a { color: var(--t); }

/* how it goes: a real sequence, so numbers */
.al-path { list-style: none; margin: 36px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 clamp(20px, 3vw, 44px); counter-reset: al; }
.al-path li { counter-increment: al; padding-top: 18px; border-top: 2px solid color-mix(in srgb, var(--t) 22%, transparent); }
.al-path li:first-child { border-top-color: var(--t); }
.al-path li::before { content: counter(al); display: block; font: 800 clamp(2.4rem, 4vw, 3.4rem)/1 var(--disp); font-stretch: 108%; font-variant-numeric: tabular-nums; color: var(--t); margin-bottom: 14px; }
.al-path h3 { font-size: 1.2rem; }
.al-path p { margin-top: 8px; color: var(--soft); }

/* prices: K1 numbers big, one line under each */
.al-tiers { margin: 0; border-top: 1px solid var(--rule); }
.al-tiers > div { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr); gap: 8px 32px; padding: 20px 0; border-bottom: 1px solid var(--rule); align-items: baseline; }
.al-tiers dt { display: flex; align-items: baseline; justify-content: space-between; gap: 16px; }
.al-tn { font-weight: 700; font-size: 1.15rem; }
.al-tp { font: 800 clamp(2rem, 3.6vw, 2.8rem)/1 var(--disp); font-stretch: 108%; letter-spacing: -.03em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-tp small { font: 600 .9rem var(--font); letter-spacing: 0; color: var(--soft); margin-left: 2px; }
.al-tiers dd { margin: 0; color: var(--soft); }
.al-once { margin-top: 22px; }
.al-once > p { color: var(--soft); }
.al-once > p b { color: var(--t); }
.al-upkeep { margin-top: 10px; border-top: 1px solid var(--rule); }
.al-upkeep summary { font-size: 1rem; min-height: 44px; display: flex; align-items: center; padding-block: 10px; }
.al-upkeep ul { margin: 0 0 14px; padding-left: 1.2em; color: var(--soft); display: grid; gap: 6px; }
.al-upkeep p { padding: 0 0 12px; }
.al-upkeep b { color: var(--t); }

/* examples: three phones in a row; on a phone a swipe row with no arrows (K7) */
.al-ex-lead { margin-top: 12px; color: var(--soft); }
.al-ex-row { list-style: none; margin: 32px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(20px, 3vw, 44px); }
.al-ex-row li { display: grid; align-content: start; gap: 6px; }
.al-ex-row img { width: 100%; max-width: 240px; height: auto; border-radius: 13% / 6%; padding: 2.4%; background: color-mix(in srgb, var(--t) 14%, var(--p));
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--t) 22%, transparent); margin-bottom: 10px; }
.al-ex-row h3 { font-size: 1.15rem; }
.al-ex-row p { color: var(--soft); font-size: .95rem; }
/* Y13 link underline: thin, off the text, thicker on hover */
.al-ex-row a { justify-self: start; display: inline-flex; align-items: center; min-height: 44px; color: var(--t); font-weight: 600; text-underline-offset: .22em; text-decoration-thickness: 1px; }
.al-ex-row a:hover { text-decoration-thickness: 2px; }

.al-faq .faq { margin-top: 0; }
.al-faq summary { min-height: 44px; }

footer { position: relative; z-index: 1; padding-bottom: 96px; }

/* floating WhatsApp: the icon alone, no number (Jussi 30.11.) */
.al-wa { position: fixed; right: 16px; bottom: 16px; z-index: 6; width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center;
  background: var(--t); color: var(--p); box-shadow: 0 10px 30px -10px var(--p); transition: transform 120ms var(--ease-out); }
.al-wa svg { width: 26px; height: 26px; }
.al-wa:focus-visible { outline-color: var(--t); outline-offset: 4px; }

/* narrow desktop: the survey keeps its width, the copy keeps room for the price bar */
@media (min-width: 901px) and (max-width: 1279px) {
  .e3d-wrap.al-wrap { width: calc(100% - 64px); grid-template-columns: minmax(0, 1fr) 420px; column-gap: 40px; }
  .al-prices { column-gap: 14px; }
}
/* ---------------- phone width (900 px, the same break as lava.js) ---------------- */
@media (max-width: 900px) {
  .e3d-wrap.al-wrap { grid-template-columns: 1fr; grid-template-areas: none; }
  .al-hero .h1-claim { font-size: clamp(2.1rem, 9.4vw, 3rem); font-stretch: 92%; line-height: .96; letter-spacing: -.02em; max-width: none; }
  /* our price row keeps its full line (L1, L7a) and its own /kk (L7b): the home page's phone rules are undone here */
  .al-prices.e3d-prices em { display: block; font-size: .86rem; }
  .al-prices.e3d-prices b::after { content: none; }
  .al-prices { margin-top: 16px; }
  .al-acts { margin-top: 16px; order: 4; }
  .al-big { width: 100%; max-width: 460px; justify-content: space-between; }
  .al-hint { font-size: .9rem; }
  .al-copy, .al-card, .al-slot { grid-area: auto; }
  .al-card { order: 5; }
  .al-slot { order: 6; margin-top: 22px; }
  .al-hero.is-open .al-acts { display: none; }
  .al-split { grid-template-columns: 1fr; }
  .al-path { grid-template-columns: 1fr; gap: 26px; }
  .al-tiers > div { grid-template-columns: 1fr; gap: 6px; }
  .al-ex-row { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 18px; margin-inline: -16px; padding: 0 16px 10px; scrollbar-width: none; }
  .al-ex-row::-webkit-scrollbar { display: none; }
  .al-ex-row li { flex: 0 0 62%; scroll-snap-align: start; }
}
@media (max-width: 720px) { .wrap { width: calc(100% - 32px); } }

@media (prefers-reduced-motion: reduce) {
  .al-body .btn, .al-pick span, .al-bars i, .al-wa, .btn.go .piste svg { transition: none; }
  .al-body .btn:active, .al-pick label:active span, .al-ex-row a:active, .al-wa:active, .al-body summary:active { transform: none; }
}

@media (max-width: 900px) { .al-wa { transition: opacity .2s ease, transform 120ms var(--ease-out); } .al-wa.is-away { opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s .2s; } }
/* jury: the top button fills on hover (not a colour swap only); small text links get a 24 px+ tap height */
@media (hover: hover) and (pointer: fine) { .top nav .al-topbtn:hover { background: var(--t); color: var(--p); border-color: var(--t); } }
.al-side a, .al-form .cf-note a, .al-faq .al-side a { display: inline-block; padding-block: 4px; }

/* ---------------- J449: notice-board coupon (?r=it-NN; html.al-it is set in <head> before the first paint) ----------------
   The printed notice's ticket: light card, dark ink, orange stub with two notches. Plays once (~1.4 s from 0.3 s):
   the normal price stands big, a line strikes it, it settles small (still readable), 4,90 € drops in, the stub stamps.
   Transforms and opacity only; the end state is the layout, so nothing moves the page around it. */
.al-coupon { display: none; }
html.al-it .al-coupon { display: grid; grid-template-columns: minmax(0, 1fr) clamp(112px, 34%, 200px); max-width: 600px; margin-top: 22px; color: var(--p); background: var(--t); border-radius: 14px; position: relative; isolation: isolate; }
.al-cp-main { padding: 14px 18px 14px; display: grid; justify-items: start; align-content: start; }
.al-cp-main p, .al-cp-stub { margin: 0; }
.al-cp-tag { display: flex; align-items: center; gap: 8px; font-size: .78rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.al-cp-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--k); }
.al-cp-code { letter-spacing: .06em; font-variant-numeric: tabular-nums; }
.al-cp-was { margin-top: 6px !important; font: 700 1.15rem/1 var(--disp); font-stretch: 108%; font-variant-numeric: tabular-nums; position: relative; transform-origin: left center; color: color-mix(in srgb, var(--p) 72%, var(--t)); }
.al-cp-was del { text-decoration: none; position: relative; }
/* the strike: a drawn orange line instead of the browser's thin one (still a <del> for screen readers) */
.al-cp-was del::after { content: ""; position: absolute; left: -3px; right: -3px; top: 50%; height: 3px; margin-top: -1px; background: var(--k); border-radius: 2px; transform-origin: left center; }
.al-cp-now { font: 800 clamp(3.1rem, 9vw, 4.2rem)/.9 var(--disp); font-stretch: 100%; letter-spacing: -.04em; font-variant-numeric: tabular-nums; margin-top: 4px !important; }
.al-cp-now b { font-weight: 800; }
.al-cp-eur { font-size: .5em; letter-spacing: 0; }
.al-cp-then { margin-top: 6px !important; font-size: .95rem; line-height: 1.25; }
.al-cp-then b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.al-cp-stub { display: grid; align-content: center; gap: 8px; padding: 14px 14px 14px 18px; background: var(--k); color: var(--p); border-radius: 0 14px 14px 0; position: relative; text-align: center; }
.al-cp-stub b { font: 800 clamp(1.15rem, 3.2vw, 1.45rem)/1.02 var(--disp); font-stretch: 92%; letter-spacing: -.01em; }
.al-cp-stub b span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.al-cp-stub small { font-size: .74rem; line-height: 1.25; font-weight: 600; }
/* the two notches where the stub tears off (the page colour shows through) */
.al-cp-stub::before, .al-cp-stub::after { content: ""; position: absolute; left: -10px; width: 20px; height: 20px; border-radius: 50%; background: var(--p); }
.al-cp-stub::before { top: -10px; }
.al-cp-stub::after { bottom: -10px; }

@media (prefers-reduced-motion: no-preference) {
  html.al-it .al-cp-was { animation: alcp-was 1.4s cubic-bezier(.2, .7, .2, 1) .3s both; }
  html.al-it .al-cp-was del::after { animation: alcp-strike 1.4s cubic-bezier(.65, 0, .35, 1) .3s both; }
  /* avoid-ai-design-ignore: M4 -- the brief asks the new price to drop in; a small landing settle sells the drop, used once */
  html.al-it .al-cp-now { animation: alcp-drop 1.4s cubic-bezier(.3, 1.18, .6, 1) .3s both; }
  html.al-it .al-cp-then { animation: alcp-fade 1.4s ease-out .3s both; }
  html.al-it .al-cp-stub b, html.al-it .al-cp-stub small { animation: alcp-stamp 1.4s cubic-bezier(.2, .8, .2, 1) .3s both; }
}
/* 0-28 %: the old price stands big where the new one lands and is struck (6-26 %); 28-55 %: settles small, still readable;
   34-70 %: 4,90 € drops in; 58-88 %: the line under it and the stub's stamp. 1.4 s in all, from 0.3 s. */
@keyframes alcp-was { 0%, 28% { transform: translateY(40px) scale(2.3); color: var(--p); } 55%, 100% { transform: none; } }
@keyframes alcp-strike { 0%, 6% { transform: scaleX(0); } 26%, 100% { transform: scaleX(1); } }
@keyframes alcp-drop { 0%, 34% { transform: translateY(-46px); opacity: 0; } 44% { opacity: 1; } 70%, 100% { transform: none; opacity: 1; } }
@keyframes alcp-fade { 0%, 58% { opacity: 0; transform: translateY(6px); } 82%, 100% { opacity: 1; transform: none; } }
@keyframes alcp-stamp { 0%, 64% { opacity: 0; transform: scale(1.25); } 88%, 100% { opacity: 1; transform: none; } }

@media (max-width: 900px) {
  html.al-it .al-coupon { order: 3; margin-top: 14px; max-width: 460px; }
  .al-cp-main { padding: 12px 14px; }
  .al-cp-stub { padding: 12px 10px 12px 14px; }
}
