/* Fontit omalta palvelimelta (ei kolmansia osapuolia) */
@font-face { font-family: "General Sans"; src: url("/assets/fonts/general-sans-400.woff2") format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/general-sans-500.woff2") format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }
@font-face { font-family: "General Sans"; src: url("/assets/fonts/general-sans-600.woff2") format("woff2"); font-weight: 600; font-style: normal; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-ext-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD; }
@font-face { font-family: "Geist Mono"; src: url("/assets/fonts/geist-mono-latin-ext-500-normal.woff2") format("woff2"); font-weight: 500; font-display: swap; unicode-range: U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF; }

/* ==========================================================================
   Valokeila
   Light grey grid, near-black, one terracotta accent. Mono labels.
   ========================================================================== */

:root {
  /* Yö + jää. Viileä vaalea pohja, syvä yönsininen tumma, jäänsininen korostus tummalla. */
  --bg: #F3F4F7;
  --bg-hero: #141B3D;
  --bg-alt: #EAECF2;
  --white: #FCFCFE;
  --black: #141B3D;           /* yönsininen: tummat osiot, kortit, tummat napit */
  --black-2: #0C1129;         /* syvä yönsininen: loppuosio, ylös-nappi */
  --dark-hover: #1F2856;
  --text: #11152B;
  --muted: #545A72;
  --line: #DDE0EA;
  --line-strong: #C3C8D8;
  --grid: rgba(170, 190, 255, .08);

  --accent: #3546C9;          /* indigo vaalealla: valkoinen teksti 7:1 */
  --accent-hover: #2A389F;
  --accent-light: #A8BEFF;    /* jäänsininen tummalla */
  --accent-light-hover: #C2D1FF;

  --on-dark: #F2F4FF;
  --on-dark-muted: #B4BAD6;
  --line-dark: rgba(170, 190, 255, .16);

  --sans: "General Sans", "Geist", sans-serif;
  --mono: "Geist Mono", "SF Mono", Menlo, monospace;

  --wrap: 1240px;
  --r: 8px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

/* Base ------------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.7 var(--sans);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }
h1, h2, h3 { margin: 0; font-weight: 500; text-wrap: balance; }
h1 { font-size: clamp(2.7rem, 6.4vw, 5.4rem); line-height: 1.02; letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); line-height: 1.15; letter-spacing: -.025em; }
h3 { font-size: 1.2rem; line-height: 1.3; letter-spacing: -.012em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
::selection { background: var(--accent); color: #fff; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -9999px; top: 10px; z-index: 100; background: var(--black); color: #fff; padding: 8px 14px; }
.skip:focus { left: 10px; }

/* Buttons ---------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: stretch; min-height: 58px; border-radius: var(--r);
  font: 500 1.02rem/1 var(--sans); text-decoration: none; cursor: pointer; border: 1px solid transparent;
  transition: background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease);
}
.btn__label { display: flex; align-items: center; padding: 0 1.6rem; }
.btn__icon { display: grid; place-items: center; width: 58px; position: relative; }
.btn__icon::before { content: ""; position: absolute; left: 0; top: 14px; bottom: 14px; width: 1px; background: currentColor; opacity: .35; transform: skewX(-8deg); }
.btn__icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; transition: transform .25s var(--ease); }
.btn:hover .btn__icon svg { transform: translate(2px, -2px); }
.btn--accent { background: var(--accent); color: #fff; border-color: var(--accent); }
.btn--accent:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn--dark { background: var(--black); color: #fff; border-color: var(--black); }
.btn--dark:hover { background: var(--dark-hover); border-color: var(--dark-hover); }
.btn--line { background: transparent; color: var(--text); border-color: var(--line); }
.btn--line:hover { border-color: var(--text); }
.tlink { color: var(--accent); text-underline-offset: 4px; text-decoration-thickness: 1px; }

/* Header ----------------------------------------------------------------- */
.top { position: sticky; top: 0; z-index: 40; background: rgba(20, 27, 61, .9); color: var(--on-dark); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid transparent; transition: background .3s, border-color .3s; }
.top.is-scrolled { border-bottom-color: var(--line-dark); background: rgba(12, 17, 41, .95); }
.top__inner { display: flex; align-items: center; gap: 2rem; height: 80px; }
.brand { display: inline-flex; align-items: center; gap: .5em; text-decoration: none; font-weight: 600; font-size: 1.45rem; letter-spacing: -.04em; margin-right: auto; }
.brand__mark { width: 1.05em; height: .9em; flex: none; }
.brand__l { fill: currentColor; }
.brand__r { fill: var(--accent); }
.brand--light { color: var(--on-dark); }
.brand--light .brand__r { fill: var(--accent-light); }

.top__links { display: flex; gap: 1.9rem; }
.top__links a { font: 400 .8rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-decoration: none; color: var(--muted); transition: color .2s; }
.top__links a:hover { color: var(--text); }
.top__menu { display: none; align-items: center; gap: .8rem; background: none; border: 0; cursor: pointer; color: var(--text); padding: .5rem; }
.top__menu-label { font: 400 .95rem/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; }
.top__menu-icon { width: 22px; height: 12px; position: relative; }
.top__menu-icon i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.top__menu-icon i:first-child { top: 0; }
.top__menu-icon i:last-child { top: 10px; }
.top__menu[aria-expanded="true"] .top__menu-icon i:first-child { top: 5px; transform: rotate(45deg); }
.top__menu[aria-expanded="true"] .top__menu-icon i:last-child { top: 5px; transform: rotate(-45deg); }
.top__go { display: grid; place-items: center; width: 50px; height: 50px; border-radius: var(--r); background: var(--black); color: #fff; transition: background .2s; }
.top__go:hover { background: var(--accent); }
.top__go svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.6; }

.menu { position: fixed; inset: 80px 0 0; z-index: 39; background: var(--bg); border-top: 1px solid var(--line); overflow-y: auto; }
.menu__inner { display: flex; flex-direction: column; padding: 1rem 0 3rem; }
.menu a { display: flex; align-items: baseline; gap: 1.25rem; padding: 1.1rem 0; border-bottom: 1px solid var(--line); text-decoration: none; font-size: 1.6rem; letter-spacing: -.02em; }
.menu a span { font: 400 .8rem var(--mono); color: var(--accent); }

@media (max-width: 1000px) {
  .top__links { display: none; }
  .top__menu { display: inline-flex; }
  .top__inner { gap: 1.25rem; }
}
@media (min-width: 1001px) { .menu { display: none !important; } }
@media (max-width: 480px) { .top__inner { height: 72px; } .menu { top: 72px; } .brand { font-size: 1.3rem; } .top__go { width: 46px; height: 46px; } }

/* Hero ------------------------------------------------------------------- */
.hero {
  position: relative; margin-top: -80px; padding: calc(80px + clamp(3rem, 8vw, 6.5rem)) 0 clamp(4rem, 8vw, 6.5rem);
  background-color: var(--bg-hero);
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: calc(100% / 8) 128px;
  background-position: -1px -1px;
  border-bottom: 1px solid var(--line);
}
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3.5rem; align-items: center; }
.crumb { display: flex; align-items: center; gap: .9rem; font: 400 .9rem/1 var(--mono); letter-spacing: .02em; margin-bottom: 2.75rem; }
.crumb span[aria-hidden] { color: var(--muted); }
.crumb__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); }
.hero h1 em { font-style: normal; color: var(--accent); }
.hero__lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; max-width: 36rem; margin: 2rem 0 2.5rem; }
.hero__actions { display: flex; flex-wrap: wrap; gap: .9rem; }
.hero__ask { margin: 2rem 0 0; font-weight: 500; }
.hero__ask a { text-underline-offset: 4px; text-decoration-thickness: 1px; }
@media (max-width: 1000px) {
  .hero { margin-top: -80px; background-size: calc(100% / 4) 128px; }
  .hero__grid { grid-template-columns: 1fr; }
}
@media (max-width: 480px) { .hero { margin-top: -72px; padding-top: calc(72px + 3rem); } }

/* Mockup */
.mock { position: relative; margin: 0; padding-bottom: 2.5rem; container-type: inline-size; }
.mock__browser {
  background: var(--white); border: 1px solid var(--line); border-radius: 10px; overflow: hidden;
  box-shadow: 0 30px 60px -36px rgba(20, 27, 61, .35);
  font-size: clamp(7px, 2cqi, 11.5px);
}
.mock__chrome { display: flex; align-items: center; gap: 1em; padding: .95em 1.2em; border-bottom: 1px solid var(--line); background: var(--bg); }
.mock__dots { display: flex; gap: .5em; }
.mock__dots i { width: .8em; height: .8em; border-radius: 50%; background: var(--line); }
.mock__url { flex: 1; max-width: 22em; margin: 0 auto; text-align: center; font: 400 1em/1 var(--mono); color: var(--muted); background: var(--white); border: 1px solid var(--line); border-radius: 5px; padding: .55em 1em; }
.mock__site { padding: 1.8em 2.2em 2.2em; }
.ms-nav { display: flex; align-items: center; gap: 1.8em; color: var(--muted); padding-bottom: 1.5em; border-bottom: 1px solid var(--line); }
.ms-nav strong { color: var(--text); font-weight: 600; font-size: 1.3em; letter-spacing: -.03em; margin-right: auto; }
.ms-nav em { font-style: normal; color: var(--text); font-weight: 500; }
.ms-hero { display: grid; grid-template-columns: 1.1fr 1fr; gap: 2em; padding: 2.4em 0 2.2em; align-items: center; }
.ms-kicker { font: 400 .85em/1 var(--mono); letter-spacing: .08em; color: var(--accent); margin: 0 0 1.1em; }
.ms-title { font-size: 2.4em; line-height: 1.05; letter-spacing: -.035em; font-weight: 500; margin: 0 0 .6em; }
.ms-body { font-size: 1.05em; color: var(--muted); margin: 0 0 1.5em; }
.ms-btn { display: inline-block; background: var(--black); color: #fff; border-radius: 4px; padding: .8em 1.2em; font-size: .95em; }
.ms-photo { border-radius: 4px; overflow: hidden; aspect-ratio: 1 / .9; }
.ms-photo svg { display: block; width: 100%; height: 100%; }
.ms-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4em; border-top: 1px solid var(--line); padding-top: 1.4em; }
.ms-row b { display: block; font-weight: 500; margin-bottom: .25em; }
.ms-row span { color: var(--muted); font-size: .92em; }
.mock__toast {
  position: absolute; left: -1.5rem; bottom: 0; display: flex; align-items: center; gap: .85rem;
  background: var(--white); border: 1px solid var(--line); border-radius: var(--r); padding: .85rem 1.1rem;
  box-shadow: 0 20px 40px -26px rgba(20, 27, 61, .4); font-size: .85rem; line-height: 1.35;
  animation: rise .8s .5s var(--ease) both;
}
.mock__toast p { margin: 0; color: var(--muted); }
.mock__toast p:first-child { display: flex; justify-content: space-between; gap: 1rem; color: var(--text); }
.mock__toast strong { font-weight: 500; }
.mock__toast time { font: 400 .75rem var(--mono); color: var(--muted); }
.mock__toast-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; box-shadow: 0 0 0 5px rgba(53, 70, 201, .14); }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@media (max-width: 1000px) { .mock { max-width: 620px; } .mock__toast { left: 1rem; } }
@media (max-width: 640px) { .mock { display: none; } }

/* Facts ------------------------------------------------------------------ */
.facts { padding: 1.25rem 0; background: var(--white); border-bottom: 1px solid var(--line); }
.facts__grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; }
.facts__item {
  display: grid; place-items: center; text-align: center; min-height: 86px; padding: .75rem 1rem;
  border: 1px solid var(--line); border-radius: var(--r); background: var(--white);
  font: 500 .82rem/1.45 var(--mono); letter-spacing: .1em; text-transform: uppercase;
}
.facts__item--dark { background: var(--black); color: #fff; border-color: var(--black); }
.facts__item--dark::before { content: none; }
@media (max-width: 1000px) {
  .facts__grid { grid-template-columns: 1fr 1fr; }
  .facts__item--wide { grid-column: 1 / -1; }
}

/* Index ------------------------------------------------------------------ */
.index { padding: 1.25rem 0 0; }
.index__grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 10px; padding-bottom: 1.25rem; border-bottom: 1px solid var(--line); }
.index a {
  display: grid; place-items: center; text-align: center; min-height: 64px; padding: .5rem;
  border: 1px solid var(--line); text-decoration: none; font-weight: 500; font-size: .98rem;
  transition: border-color .2s, background .2s, color .2s;
}
.index a:hover { border-color: var(--text); background: var(--white); }
@media (max-width: 1000px) { .index__grid { grid-template-columns: 1fr 1fr; } }

/* Sections --------------------------------------------------------------- */
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; }
.section--alt { background: var(--bg-alt); border-block: 1px solid var(--line); }
.section--dark { background: var(--black); color: var(--on-dark); }

.rule { display: flex; align-items: center; gap: 1.5rem; margin: 0 0 3rem; font: 400 .85rem/1 var(--mono); letter-spacing: .02em; }
.rule span { color: var(--accent); }
.rule i { flex: 1; height: 1px; background: var(--line); }
.rule b { font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--accent); }
.section--dark .rule span, .section--dark .rule b { color: var(--accent-light); }
.section--dark .rule i { background: var(--line-dark); }

.intro { max-width: 44rem; margin-bottom: 3rem; }
.intro h2 { margin-bottom: 1.4rem; }
.intro p { font-size: 1.1rem; }
.intro p:last-child { margin-bottom: 0; }
.section--dark .intro p { color: var(--on-dark-muted); }

/* Boxes (shared) */
.boxes { display: grid; gap: 14px; }
.boxes--2 { grid-template-columns: 1fr 1fr; }
.boxes--3 { grid-template-columns: repeat(3, 1fr); }
.boxes--4 { grid-template-columns: repeat(4, 1fr); }
.box { background: var(--white); border: 1px solid var(--line); padding: clamp(1.5rem, 2.6vw, 2.25rem); transition: border-color .25s; }
.box:hover { border-color: var(--line-strong); }
.box h3 { margin-bottom: .9rem; }
.box p { color: var(--muted); }
.box p:last-child { margin-bottom: 0; }
.box__num { font: 400 .8rem/1 var(--mono); color: var(--accent) !important; letter-spacing: .06em; margin-bottom: 2.25rem !important; }
.box--dark { background: var(--black); border-color: var(--black); color: var(--on-dark); margin: 14px 0; }
.box--dark:hover { border-color: var(--black); }
.box--dark p { color: var(--on-dark-muted); max-width: 52rem; }
.box--dark h3 { color: var(--on-dark); }
@media (max-width: 1000px) { .boxes--4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 860px) { .boxes--3 { grid-template-columns: 1fr; } }
@media (max-width: 680px) { .boxes--2, .boxes--4 { grid-template-columns: 1fr; } }

.squares li { position: relative; padding: .6rem 0; border-top: 1px solid var(--line); }
.squares li:first-child { border-top: 0; }
.box .squares { margin-top: 1rem; }

.after { margin: 2.5rem 0 0; font-size: 1.1rem; max-width: 44rem; }

/* Plans ------------------------------------------------------------------ */
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan {
  display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: 12px;
  padding: clamp(1.75rem, 3.4vw, 3rem); transition: border-color .25s, box-shadow .3s var(--ease);
}
.plan:hover { border-color: var(--line-strong); box-shadow: 0 24px 48px -36px rgba(20, 27, 61, .35); }
.plan__tag { font: 500 .85rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 1.6rem; }
.plan h3 { font-size: clamp(1.4rem, 2.2vw, 1.75rem); letter-spacing: -.02em; margin-bottom: 1rem; }
.plan__desc { font-size: 1.08rem; margin-bottom: 1.75rem; }
.plan__list { flex: 1; margin-bottom: 2.25rem; }
.plan__list li { position: relative; padding: .6rem 0; font-size: 1.05rem; border-top: 1px solid var(--line); }
.plan__list li:first-child { border-top: 0; }
.plan__foot { border-top: 1px solid var(--line); padding-top: 2rem; }
.plan__price { font-size: clamp(2.8rem, 5vw, 3.6rem); line-height: 1; letter-spacing: -.04em; font-weight: 500; margin: 0 0 .6rem; }
.plan__meta { color: var(--muted); margin-bottom: 1.75rem; }

.plan--dark { background: var(--black); border-color: var(--black); color: var(--on-dark); }
.plan--dark:hover { border-color: var(--black); }
.plan--dark .plan__tag { color: var(--accent-light); }
.plan--dark .plan__desc, .plan--dark .plan__meta { color: var(--on-dark-muted); }
.plan--dark .plan__list li { border-top-color: var(--line-dark); }
.plan--dark .plan__list li:first-child { border-top: 0; }
.plan--dark .plan__foot { border-top-color: var(--line-dark); }
@media (max-width: 1000px) { .plans { grid-template-columns: 1fr; max-width: 640px; } }

.note { margin-top: 14px; padding: 1.5rem clamp(1.5rem, 2.6vw, 2.25rem); border: 1px dashed var(--line-strong); display: grid; grid-template-columns: auto 1fr 1fr; gap: .75rem 2.5rem; align-items: start; }
.note p { margin: 0; color: var(--muted); font-size: .98rem; }
.note strong { color: var(--text); font-weight: 500; }
.note__tag { font: 500 .78rem/1.6 var(--mono) !important; letter-spacing: .12em; text-transform: uppercase; color: var(--accent) !important; margin-bottom: 1rem !important; }
.note > .note__tag { margin: 0 !important; }
@media (max-width: 860px) { .note { grid-template-columns: 1fr; } }

/* What you get */
.gets .box { display: flex; flex-direction: column; }
.gets h3 { font-size: 1.12rem; margin-bottom: .6rem; }
.gets p:last-child { font-size: .98rem; }

/* Steps ------------------------------------------------------------------ */
.steps { border-top: 1px solid var(--line-dark); }
.steps li { display: grid; grid-template-columns: 7rem 1fr auto; gap: 1rem 2.5rem; align-items: baseline; padding: 1.9rem 0; border-bottom: 1px solid var(--line-dark); transition: background .25s; }
.steps__num { font: 400 2.4rem/1 var(--sans); letter-spacing: -.04em; color: var(--accent-light); margin: 0; }
.steps h3 { font-size: 1.35rem; margin-bottom: .45rem; }
.steps li p:not(.steps__num):not(.steps__when) { color: var(--on-dark-muted); margin: 0; max-width: 36rem; }
.steps__when { font: 400 .78rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); margin: 0; border: 1px solid var(--line-dark); padding: .55rem .8rem; border-radius: 4px; white-space: nowrap; }
@media (max-width: 760px) {
  .steps li { grid-template-columns: 3.25rem 1fr; }
  .steps__num { font-size: 1.6rem; }
  .steps__when { grid-column: 2; justify-self: start; }
}

/* Promise box */
.box--promise { margin-top: 14px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 1.5rem 4rem; border-color: var(--text); }
.box--promise h3 { font-size: 1.45rem; }
.box--promise .squares { margin: 0; }
.box--promise .squares li { color: var(--text); }
@media (max-width: 860px) { .box--promise { grid-template-columns: 1fr; } }

/* FAQ -------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }
.faq details { background: var(--white); border: 1px solid var(--line); transition: border-color .2s; }
.faq details:hover, .faq details[open] { border-color: var(--line-strong); }
.faq summary { list-style: none; cursor: pointer; position: relative; padding: 1.35rem 4rem 1.35rem 1.6rem; font-size: 1.12rem; font-weight: 500; letter-spacing: -.01em; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; right: 1.6rem; top: 50%; width: 14px; height: 1.5px; background: var(--accent); transition: transform .3s var(--ease); }
.faq summary::after { transform: rotate(90deg); }
.faq details[open] summary::after { transform: rotate(0); }
.faq details p { margin: 0; padding: 0 1.6rem 1.5rem; color: var(--muted); max-width: 46rem; }

/* Contact ---------------------------------------------------------------- */
.contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 14px; align-items: start; }
@media (min-width: 901px) { .contact__card { position: sticky; top: 100px; } }
.contact__card { background: var(--black); color: var(--on-dark); padding: clamp(1.75rem, 3.4vw, 3rem); border-radius: 12px; display: flex; flex-direction: column; }
.contact__card .note__tag { color: var(--accent-light) !important; }
.contact__card h2 { margin-bottom: 1.25rem; }
.contact__card > p { color: var(--on-dark-muted); }
.contact__list { margin: auto 0 0; padding-top: 2rem; }
.contact__list div { display: grid; grid-template-columns: 8.5rem 1fr; gap: 1rem; padding: .9rem 0; border-top: 1px solid var(--line-dark); }
.contact__list dt { font: 400 .75rem/1.9 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted); }
.contact__list dd { margin: 0; }
.contact__list a { text-underline-offset: 4px; }
@media (max-width: 900px) { .contact { grid-template-columns: 1fr; } }
@media (max-width: 420px) { .contact__list div { grid-template-columns: 1fr; gap: .1rem; } }

/* Contact form --------------------------------------------------------- */
.form { display: flex; flex-direction: column; gap: 1.5rem; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: clamp(1.6rem, 3.4vw, 3rem); }
.form__tag { font: 500 .85rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin: 0 0 -.5rem; }
.form__title { font-size: clamp(1.4rem, 2.4vw, 1.75rem); letter-spacing: -.02em; margin: 0 0 -.5rem; }
.form__intro { font-size: 1.08rem; margin: 0; }
.field { display: flex; flex-direction: column; gap: .7rem; }
.field label, .choice legend { font: 600 .85rem/1.45 var(--sans); letter-spacing: .2em; text-transform: uppercase; }
.field input, .field select, .field textarea {
  font: 400 1.08rem/1.5 var(--sans); color: var(--text); width: 100%;
  background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 1.1rem 1.1rem;
  transition: border-color .2s, box-shadow .2s;
}
.field input { min-height: 60px; }
.field select {
  appearance: none; cursor: pointer; padding-right: 2.8rem; min-height: 60px;
  background: var(--white) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 8' fill='none' stroke='%23121212' stroke-width='1.4'%3E%3Cpath d='M1 1.5l5 5 5-5'/%3E%3C/svg%3E") no-repeat right 1.1rem center / 11px;
}
.field textarea { resize: vertical; min-height: 11rem; }
.field textarea::placeholder { color: #8A8FA6; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: var(--line-strong); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--text); box-shadow: 0 0 0 3px rgba(53, 70, 201, .1); }
.field .is-invalid { border-color: var(--accent); border-style: dashed; }

.choice { border: 0; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .75rem; }
.choice legend { padding: 0; margin-bottom: .7rem; }
.choice__opt { position: relative; display: flex; align-items: center; gap: 1rem; min-height: 64px; padding: 0 1.25rem; border: 1px solid var(--line); border-radius: 6px; cursor: pointer; font-size: 1.08rem; transition: border-color .2s, background .2s; }
.choice__opt:hover { border-color: var(--line-strong); }
.choice__opt input { appearance: none; margin: 0; flex: none; width: 22px; height: 22px; border-radius: 50%; border: 2px solid #9AA0B8; transition: border-color .2s, box-shadow .2s; }
.choice__opt input:checked { border: 7px solid var(--accent); }
.choice__opt:has(input:checked) { border-color: var(--text); }
.choice__opt input:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }

.form__hint p { margin: 0; }
.form__hint p + p { color: var(--muted); margin-top: .35rem; }
.form__hint strong { font-weight: 600; font-size: 1.12rem; }
.btn--block { width: 100%; min-height: 62px; }
.btn--block .btn__label { flex: 1; justify-content: center; }
.btn--block .btn__icon { width: 72px; }
.form__status { margin: -.75rem 0 0; color: var(--muted); font-size: .95rem; min-height: 0; }
.form__status:empty { display: none; }
.form__legal { margin: 0; font-size: .95rem; color: var(--muted); }
.form__legal a { color: var(--text); text-underline-offset: 3px; }

/* End section + footer --------------------------------------------------- */
.end { background: var(--black-2); color: var(--on-dark); }
.end__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem clamp(2rem, 7vw, 6rem); align-items: start; padding: clamp(4.5rem, 9vw, 7rem) 0 clamp(3.5rem, 7vw, 5rem); }
.end h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.08; letter-spacing: -.03em; max-width: 15ch; margin-bottom: 1.75rem; }
.end h2 em { font-style: normal; color: var(--accent-light); }
.end__copy p { color: var(--on-dark); opacity: .88; font-size: 1.12rem; max-width: 30rem; margin-bottom: 2.25rem; }
.btn--white { background: var(--accent-light); color: var(--black-2); border-color: var(--accent-light); }
.btn--white:hover { background: var(--accent-light-hover); border-color: var(--accent-light-hover); }

.callback { display: flex; flex-direction: column; gap: .8rem; border: 1px solid var(--line-dark); padding: clamp(1.5rem, 3vw, 2.25rem); }
.callback__tag { font: 600 .85rem/1 var(--sans); letter-spacing: .26em; text-transform: uppercase; color: var(--accent-light); margin: 0 0 .9rem; }
.callback input {
  font: 400 1.05rem/1.4 var(--sans); color: var(--on-dark); background: rgba(170, 190, 255, .06); border: 1px solid var(--line-dark);
  padding: 1rem 1.1rem; width: 100%; transition: border-color .2s;
}
.callback input::placeholder { color: #A3AACB; }
.callback input:focus { outline: none; border-color: var(--on-dark-muted); }
.callback input.is-invalid { border-color: var(--accent-light); border-style: dashed; }
.callback__btn {
  display: flex; align-items: center; justify-content: space-between; width: 100%; min-height: 60px; padding: 0 1.4rem;
  background: var(--accent-light); color: var(--black-2); border: 0; cursor: pointer; font: 600 1.05rem var(--sans); transition: background .2s;
}
.callback__btn:hover { background: var(--accent-light-hover); }
.callback__btn svg, .end__links svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.7; transition: transform .25s var(--ease); }
.callback__btn:hover svg, .end__links a:hover svg { transform: translate(2px, -2px); }
.callback__status { margin: .2rem 0 0; color: var(--on-dark-muted); font-size: .92rem; }
.callback__status:empty { display: none; }

.end__links { margin-top: 1.5rem; }
.end__links a { display: flex; align-items: center; justify-content: space-between; padding: 1.3rem 0; border-bottom: 1px solid var(--line-dark); text-decoration: none; font-weight: 600; font-size: 1.1rem; }
.end__links .end__mono { font: 400 1.05rem var(--mono); letter-spacing: .02em; }
.end__links a:hover { color: var(--accent-light); }
@media (max-width: 900px) { .end__grid { grid-template-columns: 1fr; } }

.foot__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1.25rem 2rem; padding: 2rem 0 7rem; border-top: 1px solid var(--line-dark); color: var(--on-dark-muted); font-size: .92rem; }
.foot__inner p { margin: 0; }
.foot__nav { display: flex; flex-wrap: wrap; gap: 1.5rem; font: 400 .78rem var(--mono); letter-spacing: .08em; text-transform: uppercase; }
.foot__nav a { text-decoration: none; transition: color .2s; }
.foot__nav a:hover { color: var(--on-dark); }
.end .brand { font-size: 1.25rem; margin-right: 0; }

/* Floating --------------------------------------------------------------- */
.float-ask {
  position: fixed; left: 16px; bottom: 16px; z-index: 30; display: flex; flex-direction: column; gap: .2rem;
  background: var(--white); border: 1px solid var(--line); padding: .7rem 1.1rem; text-decoration: none;
  font-weight: 500; font-size: .98rem; line-height: 1.2; box-shadow: 0 12px 30px -20px rgba(20, 27, 61, .5);
  transition: border-color .2s, transform .3s var(--ease), opacity .3s;
}
.float-ask span { font: 400 .72rem var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
.float-ask:hover { border-color: var(--text); }
.to-top {
  position: fixed; right: 16px; bottom: 16px; z-index: 30; width: 52px; height: 52px; display: grid; place-items: center;
  border-radius: 50%; background: var(--black-2); color: #fff; opacity: 0; transform: translateY(10px); pointer-events: none;
  transition: opacity .3s, transform .3s var(--ease), background .2s;
}
.to-top.is-visible { opacity: 1; transform: none; pointer-events: auto; }
.to-top:hover { background: var(--accent); }
.to-top__ring { position: absolute; inset: 0; width: 100%; height: 100%; transform: rotate(-90deg); fill: none; stroke-width: 2; }
.to-top__ring circle:first-child { stroke: rgba(255,255,255,.12); }
.to-top__progress { stroke: var(--accent-light); stroke-dasharray: 138.2; stroke-dashoffset: 138.2; stroke-linecap: round; }
.to-top__arrow { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.6; position: relative; }
.is-hidden-float { opacity: 0 !important; pointer-events: none; transform: translateY(10px); }

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

@media (max-width: 480px) {
  .hero__actions { flex-direction: column; }
  .hero__actions .btn { justify-content: space-between; }
  .hero__actions .btn--line { justify-content: center; }
}


/* ---- Teema: tummat taustat ---------------------------------------- */
.top .brand, .top__menu { color: var(--on-dark); }
.top .brand__r { fill: var(--accent-light); }
.top__links a { color: var(--on-dark-muted); }
.top__links a:hover { color: var(--on-dark); }
.top__go { background: var(--accent-light); color: var(--black-2); }
.top__go:hover { background: var(--accent-light-hover); }

.hero { color: var(--on-dark); border-bottom-color: var(--black-2); }
.hero h1 em { color: var(--accent-light); }
.hero .crumb span[aria-hidden] { color: var(--on-dark-muted); }
.hero .crumb__dot { background: var(--accent-light); box-shadow: 0 0 0 5px rgba(168, 190, 255, .18); }
.hero__lead { color: var(--on-dark); opacity: .9; }
.hero__ask { color: var(--on-dark-muted); }
.hero__ask a { color: var(--on-dark); }
.hero .btn--line { color: var(--on-dark); border-color: var(--line-dark); }
.hero .btn--line:hover { border-color: var(--on-dark); }
.mock__browser { box-shadow: 0 40px 80px -30px rgba(4, 6, 20, .6); border-color: rgba(170, 190, 255, .2); }

/* Persikkanappi tummilla pinnoilla */
.hero .btn--accent, .plan--dark .btn--accent, .section--dark .btn--accent {
  background: var(--accent-light); border-color: var(--accent-light); color: var(--black-2);
}
.hero .btn--accent:hover, .plan--dark .btn--accent:hover, .section--dark .btn--accent:hover {
  background: var(--accent-light-hover); border-color: var(--accent-light-hover);
}

.facts__item--dark { background: var(--accent); border-color: var(--accent); }
.facts__item--dark::before { content: none; }
.index a:hover { border-color: var(--accent); color: var(--accent); background: var(--white); }

.box--dark { background: var(--black); }
.box--promise { border-color: var(--accent); }
.plan--dark { box-shadow: 0 30px 60px -30px rgba(20, 27, 61, .55); }
.plan--dark .plan__price { color: var(--accent-light); }
.steps li:hover .steps__num { color: var(--on-dark); }
.contact__card { background: var(--black); }
.choice__opt:has(input:checked) { border-color: var(--accent); background: rgba(53, 70, 201, .04); }
.choice__opt input:checked { border-color: var(--accent); }
.band { background-color: var(--black-2); }
.end h2 em { color: var(--accent-light); }
.float-ask { border-color: var(--line-strong); }
.float-ask:hover { border-color: var(--accent); }
.to-top { background: var(--black-2); }
.to-top:hover { background: var(--accent); }
::selection { background: var(--accent-light); color: var(--black-2); }
.hero .mock { color: var(--text); }

/* Hero background: animated contour lines (canvas) replaces the grid */
.hero { overflow: hidden; isolation: isolate; background-image: none !important; }
.hero__spot { position: absolute; left: 0; top: 0; z-index: -1; width: 760px; height: 760px; margin: -380px 0 0 -380px; border-radius: 50%; pointer-events: none; opacity: 0;
  background: radial-gradient(closest-side, rgba(120, 146, 255, .3), rgba(120, 146, 255, .1) 45%, transparent 75%); will-change: transform, opacity; }
@media (max-width: 700px) { .hero__spot { width: 520px; height: 520px; margin: -260px 0 0 -260px; } }
.hero__bg {
  position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; display: block; pointer-events: none;
  -webkit-mask-image: linear-gradient(to bottom, #000 70%, transparent);
          mask-image: linear-gradient(to bottom, #000 70%, transparent);
}

/* Subpages: compact animated header */
.hero--page { padding: calc(80px + clamp(3rem, 7vw, 5.5rem)) 0 clamp(3rem, 6vw, 4.5rem); }
.hero--page h1 { font-size: clamp(2.6rem, 6vw, 4.6rem); max-width: 16ch; }
.hero--page .hero__lead { margin-bottom: 0; max-width: 40rem; }
.hero--page + .section { padding-top: clamp(3.5rem, 7vw, 5.5rem); }
.hero--luonnos { padding-bottom: clamp(2rem, 4vw, 3.5rem); }
.hero__split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: clamp(2rem, 4vw, 4rem); align-items: center; }
.hero--luonnos .hero__actions { display: flex; align-items: center; gap: 1.2rem 1.6rem; flex-wrap: wrap; margin-top: 2.2rem; }
.hero__note { font-size: .95rem; color: var(--on-dark); opacity: .75; }
.hero__phones { width: 100%; height: auto; display: block; margin-right: -2%; }
@media (max-width: 900px) { .hero__split { grid-template-columns: minmax(0, 1fr); } .hero__phones { max-width: 34rem; margin: 0 auto; } }
@media (max-width: 480px) { .hero--page { padding-top: calc(72px + 2.5rem); } }
.top__links a[aria-current="page"] { color: var(--on-dark); text-decoration: underline; text-decoration-color: var(--accent-light); text-underline-offset: 8px; text-decoration-thickness: 2px; }


/* White headline emphasis (no accent color) */
.hero h1 em, .end h2 em { color: inherit; }

/* Process ----------------------------------------------------------------- */
.proc { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 3rem clamp(3rem, 7vw, 6.5rem); align-items: start; }
.proc__side { position: sticky; top: 120px; }
.proc__side h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 1.25rem; }
.proc__lead { color: var(--on-dark-muted); font-size: 1.1rem; max-width: 26rem; }
.proc__time { margin-top: 2.5rem; border: 1px solid var(--line-dark); border-radius: 12px; padding: 1.5rem 1.6rem 1.4rem; background: rgba(170, 190, 255, .03); }
.proc__time-title { font: 500 .75rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--accent-light); margin: 0 0 1.1rem; }
.proc__time ul { display: grid; gap: .95rem; }
.proc__time li { display: grid; grid-template-columns: 5.5rem 1fr auto; align-items: center; gap: 1rem; font-size: .95rem; }
.proc__time li span { color: var(--on-dark); font-weight: 500; }
.proc__time li i { height: 6px; border-radius: 6px; background: var(--line-dark); position: relative; overflow: hidden; }
.proc__time li i::after { content: ""; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--accent-light); }
.proc__time li b { font-weight: 500; color: var(--on-dark-muted); white-space: nowrap; }
.proc__time-note { margin: 1.1rem 0 0; font-size: .85rem; color: var(--on-dark-muted); }

.proc__steps { --fill: 1; position: relative; padding-left: 2.75rem; }
.proc__steps::before, .proc__steps::after { content: ""; position: absolute; left: 7px; top: .55rem; bottom: .55rem; width: 2px; border-radius: 2px; }
.proc__steps::before { background: var(--line-dark); }
.proc__steps::after { background: var(--accent-light); transform-origin: top; transform: scaleY(var(--fill)); }
.proc__step { position: relative; padding-bottom: clamp(2.25rem, 4vw, 3rem); }
.proc__step:last-child { padding-bottom: 0; }
.proc__step::before {
  content: ""; position: absolute; left: calc(-2.75rem + 1px); top: .3rem; width: 14px; height: 14px; border-radius: 50%;
  background: var(--accent-light); box-shadow: 0 0 0 5px rgba(168, 190, 255, .14); transition: background .35s, box-shadow .35s;
}
.proc--anim .proc__step::before { background: var(--black); border: 2px solid var(--line-dark); box-shadow: none; width: 14px; height: 14px; box-sizing: border-box; }
.proc--anim .proc__step.is-on::before { background: var(--accent-light); border-color: var(--accent-light); box-shadow: 0 0 0 5px rgba(168, 190, 255, .14); }
.proc__when { font: 500 .75rem/1.4 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent-light); margin: 0 0 .5rem; }
.proc__step h3 { font-size: clamp(1.35rem, 2.2vw, 1.6rem); letter-spacing: -.02em; margin-bottom: .6rem; }
.proc__text { color: var(--on-dark-muted); margin: 0 0 1.1rem; max-width: 34rem; }
.proc__who { display: grid; grid-template-columns: 1fr 1fr; margin: 0; max-width: 34rem; border: 1px solid var(--line-dark); border-radius: 10px; overflow: hidden; }
.proc__who div { padding: .8rem 1rem; }
.proc__who div + div { border-left: 1px solid var(--line-dark); background: rgba(170, 190, 255, .04); }
.proc__who dt { font: 400 .68rem var(--mono); letter-spacing: .18em; text-transform: uppercase; color: var(--on-dark-muted); margin-bottom: .2rem; }
.proc__who dd { margin: 0; font-size: .95rem; color: var(--on-dark); }
@media (max-width: 900px) {
  .proc { grid-template-columns: 1fr; }
  .proc__side { position: static; }
}
@media (max-width: 480px) {
  .proc__steps { padding-left: 2.1rem; }
  .proc__step::before { left: calc(-2.1rem + 1px); }
  .proc__who { grid-template-columns: 1fr; }
  .proc__who div + div { border-left: 0; border-top: 1px solid var(--line-dark); }
  .proc__time li { grid-template-columns: 4.6rem 1fr; }
  .proc__time li b { grid-column: 2; font-size: .85rem; margin-top: -.5rem; }
}

/* Contact ---------------------------------------------------------------- */
.cx { display: grid; grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 3rem clamp(3rem, 7vw, 6.5rem); align-items: start; }
.cx__side { position: sticky; top: 120px; }
.cx__side h2 { font-size: clamp(2.2rem, 4.4vw, 3.4rem); line-height: 1.05; letter-spacing: -.035em; margin-bottom: 1.1rem; }
.cx__side > p { color: var(--muted); font-size: 1.1rem; max-width: 24rem; }
.cx__next { margin-top: 2.25rem; display: grid; gap: 1.1rem; }
.cx__next li { position: relative; padding-left: 2.2rem; display: grid; gap: .15rem; }
.cx__next li::before {
  content: ""; position: absolute; left: 0; top: .15rem; width: 20px; height: 20px; border-radius: 50%;
  background: rgba(53, 70, 201, .1) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%233546C9' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.cx__next b { font-weight: 600; }
.cx__next span { color: var(--muted); font-size: .97rem; }

.cx__form { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: clamp(1.5rem, 3.4vw, 2.75rem); box-shadow: 0 30px 60px -45px rgba(20, 27, 61, .45); }
.cx__progress { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: .5rem; margin-bottom: 2.25rem; padding-bottom: 1rem; }
.cx__progress span { font: 500 .72rem var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); transition: color .3s; }
.cx__progress span.is-on { color: var(--accent); }
.cx__progress i { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--line); overflow: hidden; }
.cx__progress b { position: absolute; inset: 0 auto 0 0; width: 33.4%; background: var(--accent); border-radius: inherit; transition: width .45s var(--ease); }

.cx__step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 1rem; }
.cx--js .cx__step:not(.is-active) { display: none; }
.cx--js .cx__step.is-active { animation: cxIn .45s var(--ease) both; }
@keyframes cxIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.cx__q { font-size: 1.25rem; font-weight: 500; letter-spacing: -.015em; margin: .75rem 0 .1rem; padding: 0; }
.cx__step > .cx__q:first-child, .cx__step > legend.cx__q { margin-top: 0; }
.cx__q--small { font-size: 1.05rem; }

.cx__cards { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.cx__card { position: relative; display: grid; gap: .2rem; padding: 1rem 1.1rem 1rem 3rem; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; transition: border-color .2s, background .2s, box-shadow .2s; }
.cx__card:hover { border-color: var(--line-strong); }
.cx__card input { position: absolute; opacity: 0; pointer-events: none; }
.cx__card::before { content: ""; position: absolute; left: 1.1rem; top: 1.15rem; width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); transition: border .2s; box-sizing: border-box; }
.cx__card:has(input:checked) { border-color: var(--accent); background: rgba(53, 70, 201, .04); box-shadow: 0 0 0 1px var(--accent); }
.cx__card:has(input:checked)::before { border: 6px solid var(--accent); }
.cx__card:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }
.cx__card-name { font-weight: 600; }
.cx__card-meta { font-size: .9rem; color: var(--muted); }

.cx__pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.cx__pills label { cursor: pointer; }
.cx__pills input { position: absolute; opacity: 0; pointer-events: none; }
.cx__pills span { display: inline-block; padding: .65rem 1.05rem; border: 1px solid var(--line); border-radius: 999px; font-size: .97rem; transition: border-color .2s, background .2s, color .2s; }
.cx__pills label:hover span { border-color: var(--line-strong); }
.cx__pills input:checked + span { background: var(--text); border-color: var(--text); color: var(--white); }
.cx__pills input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.cx__row { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.cx__form .field input, .cx__form .field textarea { background: var(--bg); }
.cx__form .field input:focus, .cx__form .field textarea:focus { background: var(--white); }
.cx__hint { margin: -.35rem 0 0; font-size: .9rem; color: var(--muted); }
.cx__trap { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

.cx__nav { display: flex; align-items: center; justify-content: flex-end; gap: 1rem; margin-top: 1rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
.cx__back { margin-right: auto; background: none; border: 0; padding: .5rem 0; font: 500 1rem var(--sans); color: var(--muted); cursor: pointer; text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line-strong); }
.cx__back:hover { color: var(--text); }
.btn.is-busy { opacity: .7; pointer-events: none; }
.cx__legal { margin: .25rem 0 0; font-size: .85rem; color: var(--muted); }
.cx__legal a { color: var(--text); }
.cx__error { margin: 1rem 0 0; padding: .8rem 1rem; border-radius: 10px; background: rgba(53, 70, 201, .07); color: var(--text); font-size: .95rem; }

.cx__done { display: none; text-align: center; padding: 2.5rem 0 1rem; outline: none; }
.cx__form.is-done .cx__done { display: block; animation: cxIn .5s var(--ease) both; }
.cx__form.is-done .cx__step, .cx__form.is-done .cx__progress, .cx__form.is-done .cx__error { display: none !important; }
.cx__check { display: inline-grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--accent); margin-bottom: 1.25rem; }
.cx__check svg { width: 30px; height: 30px; fill: none; stroke: #fff; stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 24; stroke-dashoffset: 24; }
.cx__form.is-done .cx__check svg { animation: cxDraw .6s .25s var(--ease) forwards; }
@keyframes cxDraw { to { stroke-dashoffset: 0; } }
.cx__done h3 { font-size: 1.6rem; letter-spacing: -.02em; margin-bottom: .5rem; }
.cx__done-text { color: var(--muted); margin: 0 auto 1.5rem; max-width: 26rem; }
.cx__done .cx__back { margin: 0; }

@media (max-width: 900px) {
  .cx { grid-template-columns: 1fr; }
  .cx__side { position: static; }
}
@media (max-width: 560px) {
  .cx__cards, .cx__row { grid-template-columns: 1fr; }
  .cx__nav .btn { flex: 1; justify-content: space-between; }
}
@media (prefers-reduced-motion: reduce) {
  .cx--js .cx__step.is-active, .cx__form.is-done .cx__done { animation: none; }
  .cx__form.is-done .cx__check svg { animation: none; stroke-dashoffset: 0; }
}
.cx__if[hidden] { display: none !important; }
.cx__form .field label span { color: var(--muted); font-weight: 400; letter-spacing: .04em; text-transform: none; margin-left: .4rem; }

/* Hero without example image: one column */
.hero__grid { grid-template-columns: minmax(0, 1fr); }
.hero__copy { max-width: 52rem; }
.hero h1 { max-width: 16ch; }

/* Oppaat */
.prose { max-width: 44rem; font-size: 1.08rem; line-height: 1.75; }
.prose h2 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 3rem 0 1rem; letter-spacing: -.02em; }
.prose h3 { font-size: 1.2rem; margin: 2rem 0 .5rem; }
.prose p, .prose li { color: var(--text); }
.prose ul { padding-left: 1.2rem; margin: 0 0 1.4rem; }
.prose li { margin-bottom: .55rem; }
.prose a:not(.btn):not(.guide) { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose__cta { margin-top: 2.5rem; }
.guides { display: grid; gap: 14px; max-width: none; }
.guide { display: block; padding: 1.6rem 1.7rem; border: 1px solid var(--line); border-radius: 14px; background: var(--white); text-decoration: none; color: inherit; transition: border-color .15s; }
.guide:hover { border-color: var(--accent); }
.guide h2 { font-size: 1.35rem; margin: 0 0 .5rem; }
.guide p { margin: 0 0 .8rem; color: var(--muted); }
.guide span { font-weight: 600; color: var(--accent); }

/* Liike ---------------------------------------------------------------------
   Käytössä vain kun <html> saa luokan .mo (asetetaan headissa, ei jos käyttäjä on
   valinnut "vähennä liikettä"). Jos skripti ei jostain syystä käynnisty, sisältö
   tulee näkyviin varmistusanimaatiolla. */
:root { --out: cubic-bezier(.16, 1, .3, 1); }


/* Paljastuvat osat */
.mo :is(.section .rule, .intro > :not(h2), .box, .plan, .facts__item, .proc__side > *, .faq details, .cx, .end__copy > :not(h2), .end__side, .guide, .prose > *, .note, .squares, .tlink, .boxes > *, .demo) {
  opacity: 0; transform: translate3d(0, 34px, 0);
  transition: opacity .9s var(--out) var(--d, 0ms), transform 1.1s var(--out) var(--d, 0ms);
}
.mo .facts__item { transform: translate3d(0, 18px, 0) scale(.96); }
.mo :is(.section .rule, .intro > :not(h2), .box, .plan, .facts__item, .proc__side > *, .faq details, .cx, .end__copy > :not(h2), .end__side, .guide, .prose > *, .note, .squares, .tlink, .boxes > *, .demo).in { opacity: 1; transform: none; }
.mo .rule i { transform: scaleX(0); transform-origin: left; transition: transform 1.4s var(--out) calc(var(--d, 0ms) + 150ms); }
.mo .rule.in i { transform: scaleX(1); }

/* Otsikot sana kerrallaan */
.mo :is(.hero h1, .intro h2, .end__copy h2) { opacity: 0; }
.mo :is(.hero h1, .intro h2, .end__copy h2).split { opacity: 1; }
.w { display: inline-block; overflow: hidden; vertical-align: top; padding: .12em .02em .14em; margin: -.12em -.02em -.14em; }
.w > span { display: inline-block; opacity: 0; transform: translate3d(0, 100%, 0); transition: transform 1.05s var(--out) var(--d, 0ms), opacity .7s ease var(--d, 0ms); }
.split.in .w > span { transform: none; opacity: 1; }
/* Etusivun pääotsikko: CSS-animaatio käynnistyy heti, ei odota skriptiä tai vieritystä */
.mo .hero h1.split .w > span { opacity: 1; transform: none; transition: none; animation: wordUp 1.05s var(--out) both; animation-delay: calc(var(--d, 0ms) + 80ms); }
@keyframes wordUp { from { opacity: 0; transform: translate3d(0, 100%, 0); } }

/* Etusivun alku */
.mo .hero :is(.hero__lead, .hero__actions, .hero__ask, .crumb) { animation: heroUp 1.1s var(--out) both; }
.mo .hero .hero__lead { animation-delay: .55s; }
.mo .hero .hero__actions { animation-delay: .7s; }
.mo .hero .hero__ask { animation-delay: .85s; }
.mo .hero__bg { animation: heroBg 2.2s ease-out both; }
.mo .top__inner > * { animation: topIn .9s var(--out) both; }
.mo .top__inner > :nth-child(2) { animation-delay: .08s; }
.mo .top__inner > :nth-child(3) { animation-delay: .14s; }
.mo .top__inner > :nth-child(4) { animation-delay: .2s; }
@keyframes heroUp { from { opacity: 0; transform: translate3d(0, 26px, 0); } }
@keyframes heroBg { from { opacity: 0; } }
@keyframes topIn { from { opacity: 0; transform: translate3d(0, -12px, 0); } }
.hero__copy { will-change: transform, opacity; }

/* Varmistus: jos skripti ei käynnisty, näytä kaikki 3,5 s jälkeen */
.mo:not(.mo-ok) :is(.section .rule, .intro > *, .box, .plan, .facts__item, .proc__side > *, .faq details, .cx, .end__copy > *, .end__side, .guide, .prose > *, .note, .squares, .tlink, .boxes > *, .hero h1) { animation: moShow .6s 3.5s forwards; }
@keyframes moShow { to { opacity: 1; transform: none; } }

/* Hintakortit: valo seuraa hiirtä ja kortti kallistuu */
.plan { position: relative; isolation: isolate; }
.plan::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .4s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(53, 70, 201, .09), transparent 60%);
}
.plan--dark::after { background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgba(168, 190, 255, .16), transparent 60%); }
.plan.is-hover::after { opacity: 1; }
.mo .plan.in { transform: none; transition: transform .45s var(--out), opacity .9s var(--out) var(--d, 0ms); }
.mo .plan.in.is-hover { transform: translateY(-4px); }
/* Valokeila hintakorteissa: reunus syttyy hiiren kohdalta */
.plan::before { content: ""; position: absolute; inset: -1px; border-radius: inherit; padding: 2px; pointer-events: none; z-index: 1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), var(--accent), transparent 70%);
  -webkit-mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000); -webkit-mask-clip: content-box, border-box; -webkit-mask-composite: xor;
  mask-image: linear-gradient(#000, #000), linear-gradient(#000, #000); mask-clip: content-box, border-box; mask-composite: exclude; }
.plan--dark::before { background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 0%), #DCE5FF, var(--accent-light) 25%, transparent 70%); }
.plan.is-hover::before { opacity: 1; }
.mo .plan.in.is-hover { transition: transform .18s ease-out, border-color .25s, box-shadow .3s; }
.plan__price { font-variant-numeric: tabular-nums; }

/* Kortit nousevat hoverissa */
@media (hover: hover) {
  .mo .box.in { transition: opacity .9s var(--out) var(--d, 0ms), transform .5s var(--out) var(--d, 0ms), border-color .25s, box-shadow .4s var(--out); }
  .mo .box.in:hover { transform: translate3d(0, -4px, 0); box-shadow: 0 22px 44px -30px rgba(20, 27, 61, .35); }
  .mo .guide.in:hover { transform: translate3d(0, -3px, 0); }
}

/* Magneettiset napit */
.mag { transition: transform .5s var(--out), background .2s var(--ease), border-color .2s var(--ease), color .2s var(--ease); }
.mag.is-mag { transition: transform .12s ease-out, background .2s, border-color .2s, color .2s; }
.btn:hover .btn__icon svg { transform: translate(2px, -2px); }

/* Usein kysyttyä: pehmeä avautuminen */
.faq details > :not(summary) { overflow: hidden; }


/* Etusivun alku keskitettynä */
.hero:not(.hero--page) .hero__grid { justify-items: center; }
.hero:not(.hero--page) .hero__copy { margin: 0 auto; max-width: 58rem; text-align: center; }
.hero:not(.hero--page) h1 { max-width: 15ch; margin-inline: auto; letter-spacing: -.045em; text-wrap: balance; }
.hero:not(.hero--page) .hero__lead { max-width: 38rem; margin: 1.9rem auto 2.6rem; text-wrap: pretty; }
.hero:not(.hero--page) .hero__actions { justify-content: center; }
.hero:not(.hero--page) .hero__ask { text-align: center; }
.hero:not(.hero--page)::after {
  content: ""; position: absolute; left: 50%; top: 46%; z-index: -1; pointer-events: none;
  width: min(1150px, 150vw); height: min(680px, 90vw); transform: translate(-50%, -50%);
  background: radial-gradient(closest-side, rgba(53, 70, 201, .5), rgba(53, 70, 201, .16) 55%, transparent 100%);
}
.hero__pill {
  display: inline-flex; align-items: center; gap: .7rem; margin: 0 0 1.9rem; padding: .55rem 1.05rem .55rem .85rem;
  border: 1px solid rgba(168, 190, 255, .26); border-radius: 999px; background: rgba(255, 255, 255, .04);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font: 500 .74rem/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--on-dark-muted);
}
.mo .hero .hero__pill { animation: heroUp 1s var(--out) .05s both; }
@media (max-width: 560px) {
  .hero__pill { font-size: .68rem; letter-spacing: .12em; }
  .hero__pill b { display: none; }
  .hero:not(.hero--page) .hero__actions { flex-direction: column; align-items: stretch; max-width: 22rem; margin-inline: auto; }
  .hero:not(.hero--page) .hero__actions .btn { justify-content: center; }
}
.hero__pill b { font-weight: inherit; }

/* Yläpalkin tarjousnappi tekstillä isoilla näytöillä */
.top__go-label { display: none; }
@media (min-width: 1000px) {
  .top__go { width: auto; gap: .7rem; padding: 0 1.15rem 0 1.25rem; grid-auto-flow: column; font: 600 .92rem var(--sans); text-decoration: none; }
}
@media (min-width: 1000px) { .top__go-label { display: inline; } }

/* Kelluva viestinappi: siisti, ei peitä sisältöä puhelimella */
.float-ask { flex-direction: row; align-items: center; gap: .75rem; border-radius: 999px; padding: .6rem 1.15rem .6rem .7rem; }
.float-ask__icon { width: 34px; height: 34px; padding: 8px; border-radius: 50%; background: var(--accent); fill: none; stroke: #fff; stroke-width: 1.6; stroke-linejoin: round; flex: none; box-sizing: border-box; }
.float-ask__txt { display: flex; flex-direction: column; gap: .15rem; }
@media (max-width: 640px) {
  .float-ask { padding: 0; width: 52px; height: 52px; justify-content: center; border-radius: 50%; background: var(--accent); border-color: var(--accent); box-shadow: 0 10px 26px -12px rgba(20, 27, 61, .6); }
  .float-ask__icon { width: 52px; height: 52px; padding: 15px; background: transparent; }
  .float-ask__txt { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
}

/* Ylläpito ja lisäkulut: kolme tekstiä siististi */
.note { grid-template-columns: auto repeat(3, minmax(0, 1fr)); }
@media (max-width: 1100px) { .note { grid-template-columns: repeat(3, minmax(0, 1fr)); } .note > .note__tag { grid-column: 1 / -1; } }
@media (max-width: 860px) { .note { grid-template-columns: 1fr; } }

/* Kelluvan napin tekstit */
.float-ask .float-ask__txt { font: 500 .95rem/1.2 var(--sans); letter-spacing: 0; text-transform: none; color: var(--text); }
.float-ask .float-ask__txt > span { font: 400 .68rem/1 var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }

/* Esimerkit: oikeat esimerkkisivut selain- ja puhelinkehyksessä, vaihto napeista */
.demo__tabs { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 1.5rem; }
.demo__tabs button { font: 500 .95rem/1 var(--sans); padding: .8rem 1.15rem; min-height: 44px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--white); color: var(--text); cursor: pointer; transition: background-color .2s, color .2s, border-color .2s, transform .2s var(--out); }
.demo__tabs button:hover { border-color: var(--text); transform: translateY(-1px); }
.demo__tabs button:active { transform: scale(.98); }
.demo__tabs button[aria-selected="true"] { background: var(--black); color: #fff; border-color: var(--black); }
.demo__stage { position: relative; padding: 0 0 48px; }
.demo__browser { width: 84%; border-radius: 12px; overflow: hidden; background: var(--white); border: 1px solid var(--line); box-shadow: 0 2px 0 rgba(20,27,61,.03), 0 30px 60px -36px rgba(20,27,61,.45); }
.demo__bar { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; border-bottom: 1px solid var(--line); }
.demo__bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.demo__url { margin-left: 14px; flex: 1; max-width: 360px; height: 24px; border-radius: 6px; background: var(--bg); color: var(--muted); font: 400 .78rem/24px var(--mono); padding: 0 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.demo__url b { font-weight: 400; color: var(--text); }
.demo__view { position: relative; overflow: hidden; aspect-ratio: 16 / 10; background: var(--bg); }
.demo__view iframe { position: absolute; left: 0; top: 0; border: 0; transform-origin: 0 0; opacity: 0; transition: opacity .4s ease; background: transparent; }
.demo__view iframe.is-on { opacity: 1; }
.demo__poster { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: top; }
.demo__phone { position: absolute; right: 0; bottom: 0; width: 24%; min-width: 200px; padding: 8px; border-radius: 34px; background: var(--black); box-shadow: 0 30px 50px -20px rgba(20,27,61,.6); }
.demo__view--m { aspect-ratio: 390 / 844; border-radius: 27px; }
.demo__view { cursor: pointer; }
.demo__hint { position: absolute; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 2; padding: .55rem .9rem; border-radius: 999px; background: rgba(20,27,61,.88); color: #fff; font: 500 .82rem/1 var(--sans); white-space: nowrap; pointer-events: none; opacity: 0; transition: opacity .25s; }
.demo__view:hover .demo__hint { opacity: 1; }
.demo__view.is-live { cursor: auto; }
.demo__view.is-live .demo__hint { opacity: 0; }
.demo__foot { margin: .5rem 0 0; color: var(--muted); max-width: 44rem; }
.demo__foot .tlink { margin-left: .4rem; white-space: nowrap; }
@media (max-width: 860px) {
  .demo__browser { width: 100%; }
  .demo__phone { display: none; }
  .demo__stage { padding: 0; }
}
@media (max-width: 600px) {
  .demo__browser { display: none; }
  .demo__phone { display: block; position: relative; width: min(100%, 300px); margin: 0 auto; }
}
@media (prefers-reduced-motion: reduce) { .demo__tabs button, .demo__view iframe { transition: none; } }

/* Väliosio: iso lause, jonka sanat syttyvät vierityksen mukana (valokeila osuu sanoihin) */
.statement { background: var(--black-2); color: var(--on-dark); padding: clamp(7rem, 16vw, 12rem) 0; position: relative; overflow: hidden; isolation: isolate; }
.statement::before { content: ""; position: absolute; z-index: -1; left: 50%; top: 50%; width: min(1100px, 140vw); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 50%;
  background: radial-gradient(closest-side, rgba(120, 146, 255, .16), transparent 70%); opacity: var(--glow, .4); transition: opacity .3s; }
.statement__text { font: 500 clamp(2rem, 4.8vw, 4.25rem)/1.12 var(--sans); letter-spacing: -.035em; max-width: 21ch; margin: 0; text-wrap: balance; }
.statement__text em { font-style: normal; color: var(--accent-light); }
.statement__text .lw { transition: color .25s ease; }
.statement__after { margin: clamp(2rem, 4vw, 3rem) 0 0; }
.statement__link { display: inline-flex; align-items: center; gap: .55rem; color: var(--on-dark); font: 400 .85rem/1 var(--mono); letter-spacing: .18em; text-transform: uppercase; text-decoration: none; padding: .9rem 0; }
.statement__link svg { width: 15px; height: 15px; fill: none; stroke: var(--accent-light); stroke-width: 1.6; transition: transform .3s var(--out); }
.statement__link:hover svg { transform: translateY(3px); }

/* Mitä hintaan kuuluu: numeroitu kahden sarakkeen lista laatikoiden sijaan */
.gets2 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(2rem, 6vw, 5rem); counter-reset: g; }
.gets2 > li { counter-increment: g; display: grid; align-content: start; grid-template-columns: 3.2rem minmax(0, 1fr); gap: .2rem 1rem; padding: 1.6rem 0 1.7rem; border-top: 1px solid var(--line-strong); }
.gets2 > li::before { content: counter(g, decimal-leading-zero); grid-row: 1 / span 2; font: 400 .85rem/1.9 var(--mono); color: var(--accent); letter-spacing: .06em; }
.gets2 h3 { font-size: clamp(1.15rem, 1.6vw, 1.35rem); letter-spacing: -.015em; margin: 0; }
.gets2 p { margin: .35rem 0 0; color: var(--muted); max-width: 46ch; }
.gets2 > li { transition: border-color .3s; }
.gets2 > li:hover { border-top-color: var(--accent); }
@media (max-width: 760px) { .gets2 { grid-template-columns: minmax(0, 1fr); } }
.gets2--ic > li { grid-template-columns: 2.75rem minmax(0, 1fr); gap: .2rem 1.1rem; }
.gets2--ic > li::before { content: none; }
.g-ic { grid-row: 1 / span 2; width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border: 1px solid var(--line-strong); border-radius: 10px; color: var(--accent); background: color-mix(in srgb, var(--accent) 6%, transparent); transition: border-color .3s, background .3s; }
.g-ic svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.gets2--ic > li:hover .g-ic { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
#mita-saat .box--promise { margin-top: clamp(2.5rem, 5vw, 4rem); }
.mo .gets2 > li { opacity: 0; transform: translate3d(0, 24px, 0); transition: opacity .9s var(--out) var(--d, 0ms), transform 1.1s var(--out) var(--d, 0ms), border-color .3s; }
.mo .gets2 > li.in { opacity: 1; transform: none; }

/* Alasivut aloittain: esimerkkikuva ja muut alat */
.ala-ex { display: block; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); text-decoration: none !important; background: var(--white); transition: transform .35s var(--out), box-shadow .35s; }
.ala-ex img { display: block; width: 100%; height: auto; transition: transform .7s var(--out); }
.ala-ex span { display: block; padding: .9rem 1.1rem; font-weight: 500; color: var(--accent); }
.ala-ex:hover { transform: translateY(-2px); box-shadow: 0 24px 48px -32px rgba(20, 27, 61, .4); }
.ala-ex:hover img { transform: scale(1.02); }
.ala-muut { margin-top: 2.5rem; color: var(--muted); font-size: .98rem; }
