/* Paikalliset alkuperäisfontit. Lisenssi ei salli tiedostojen subsetointia. */
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Extralight.woff2") format("woff2");
  font-weight: 200;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2122;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Light.woff2") format("woff2");
  font-weight: 300;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2122;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2122;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2122;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Semibold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2122;
}
@font-face {
  font-family: "General Sans";
  src: url("../fonts/GeneralSans-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-024F, U+1E00-1EFF, U+2000-206F, U+20A0-20CF, U+2122;
}

/* ==========================================================================
   Pirkanmaan IT - sivuston tyylit
   Mustavalkoinen, pelkistetty ilme. Musta pohja, valkoinen teksti,
   hiusviivakehykset, terävät kulmat eikä yhtään varjoa tai hehkua.
   Mobiili ensin (mobile first)
   ========================================================================== */

:root {
  color-scheme: dark;

  /* Harmaasävyportaat korvaavat aiemmat navy- ja cyan-sarjat. */
  --ink-0: #000000;   /* sivun pohja */
  --ink-1: #060606;   /* vuorotteleva osio */
  --ink-2: #0C0C0C;   /* kortin pinta */
  --ink-3: #141414;   /* kohotettu pinta, lomakekentat */
  --ink-4: #1C1C1C;   /* kortin hover-pinta */

  /* Vaaleimmat harmaat on valittu niin, etta jokainen savy yltaa
     mustaa vasten vahintaan suhteeseen 4.5:1 (WCAG AA, pieni teksti).
     Kontrastit: 200 = 16.5:1, 300 = 12.3:1, 400 = 7.5:1,
     500 = 6.1:1, 600 = 4.6:1. */
  --grey-100: #FFFFFF;
  --grey-200: #E4E4E4;
  --grey-300: #C6C6C6;
  --grey-400: #9A9A9A;
  --grey-500: #8A8A8A;
  --grey-600: #767676;

  /* Hiusviivat kantavat rakenteen, koska varjoja ei kayteta lainkaan.
     Lomakekenttien reunat tarvitsevat oman, vahvemman viivansa, jotta
     kentan rajat erottuvat myos heikommalla nayttolaadulla. */
  --hair: rgba(255, 255, 255, .13);
  --hair-strong: rgba(255, 255, 255, .30);
  --hair-solid: rgba(255, 255, 255, .55);
  --hair-input: rgba(255, 255, 255, .46);

  --dur-fast: 160ms;
  --dur-base: 300ms;
  --dur-slow: 620ms;
  --ease-out: cubic-bezier(.22, 1, .36, 1);
  --ease-inout: cubic-bezier(.65, 0, .35, 1);

  /* Semanttiset roolit. Nimet sailyvat, jotta merkkaus ei muutu. */
  --base: var(--ink-0);
  --base-soft: var(--ink-1);
  --base-line: var(--hair);
  --brand: var(--grey-100);
  --brand-deep: var(--ink-0);
  --brand-soft: var(--grey-200);
  --accent: var(--grey-100);
  --accent-deep: var(--grey-100);
  --accent-quiet: var(--grey-400);
  --action: var(--grey-100);
  --text: var(--grey-200);
  --text-muted: var(--grey-400);
  --white: var(--ink-2);

  /* Ainoa savy koko sivustolla. Kaytossa vain lomakkeen virhetiloissa,
     joissa pelkka harmaasavy ei erottaisi virhetta tavallisesta kentasta. */
  --danger: #FF6B6B;

  --radius: 0px;
  --radius-lg: 0px;

  --wrap: 1240px;
  --gutter: clamp(20px, 5vw, 40px);
  --header-h: 72px;

  /* Suuraakkostettujen mikro-otsikoiden yhteinen mitta. */
  --micro-size: .72rem;
  --micro-track: .2em;

  --font: "General Sans", "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: auto;
  scroll-padding-top: calc(var(--header-h) + 16px);
  background: var(--ink-0);
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text);
  background: var(--ink-0);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  font-kerning: normal;
  overflow-x: hidden;
}

img, svg, video { max-width: 100%; height: auto; display: block; }

/* Kevyt leikkaus suurissa otsikoissa on koko ilmeen kantava valinta. */
h1, h2, h3, h4 {
  font-family: var(--font);
  font-weight: 300;
  line-height: 1.16;
  color: var(--grey-100);
  margin: 0 0 .55em;
  letter-spacing: -.02em;
  overflow-wrap: normal;
  word-break: normal;
  hyphens: none;
}

h1 { font-size: clamp(2.1rem, 6.4vw, 4rem); }
h2 { font-size: clamp(1.65rem, 4.6vw, 2.7rem); }
h3 {
  font-size: clamp(1.02rem, 2.4vw, 1.18rem);
  font-weight: 500;
  line-height: 1.4;
  letter-spacing: 0;
}
h4 { font-size: 1rem; font-weight: 500; letter-spacing: 0; }

p { margin: 0 0 1.15em; }

/* Korostus tehdaan varilla ja yhdella painoaskeleella, ei lihavoinnilla.
   Selaimen oletus 700 olisi tassa ilmeessa liian jarea. */
strong, b { font-weight: 500; color: var(--grey-100); }

/* Linkin alleviivaus piirtyy hiusviivana, ei selaimen paksuna viivana. */
a {
  color: var(--grey-100);
  text-decoration: none;
  border-bottom: 1px solid var(--hair-strong);
  padding-bottom: 1px;
}
a:hover { color: var(--grey-100); border-bottom-color: var(--grey-100); }

ul, ol { padding-left: 1.25em; }
li { margin-bottom: .45em; }

hr { border: 0; border-top: 1px solid var(--hair); margin: 3rem 0; }

:focus-visible {
  outline: 2px solid var(--grey-100);
  outline-offset: 3px;
  border-radius: 0;
}

/* --- Apuluokat ----------------------------------------------------------- */

.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

/* Runsas tyhja tila on pelkistetyn ilmeen tarkein yksittainen keino. */
.section { position: relative; padding-block: clamp(64px, 12vw, 136px); }
.section--tight { padding-block: clamp(44px, 8vw, 88px); }
.section--white { background: var(--ink-1); }
.section--soft { background: var(--ink-0); }

.section--brand { background: var(--ink-1); color: var(--text); }
.section--brand h2, .section--brand h3 { color: var(--grey-100); }
.section--brand a { color: var(--grey-100); }

/* Ohut erotinviiva osioiden valiin korvaa taustaverien vaihtelun. */
.section--white + .section--soft,
.section--soft + .section--white,
.section--soft + .section--soft { border-top: 1px solid var(--hair); }

.lede {
  font-size: clamp(1rem, 2.2vw, 1.12rem);
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-muted);
  max-width: 60ch;
}
.section--brand .lede { color: var(--text-muted); }

/* Mikro-otsikko: suuraakkoset ja reilu harvennus, kuten referenssissa. */
.eyebrow {
  display: inline-block;
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: var(--micro-track);
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 1.4rem;
}
.hero .eyebrow, .page-head .eyebrow, .section--brand .eyebrow { color: var(--grey-400); }

.center { text-align: center; }
.center .lede { margin-inline: auto; }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  margin: -1px; padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.skip-link {
  position: absolute;
  left: 12px; top: 0;
  transform: translateY(-100%);
  z-index: 200;
  background: var(--grey-100);
  color: var(--ink-0);
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: var(--micro-track);
  text-transform: uppercase;
  border: 0;
  padding: 14px 22px;
}
.skip-link:hover { color: var(--ink-0); }
.skip-link:focus { transform: translateY(0); }

/* --- Painikkeet ---------------------------------------------------------- */

/* Suorakulmainen, suuraakkostettu painike ilman varjoa tai pyoristysta. */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7em;
  min-height: 52px;
  padding: 15px 34px;
  border: 1px solid var(--grey-100);
  border-radius: 0;
  background: transparent;
  color: var(--grey-100);
  font: inherit;
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: var(--micro-track);
  text-transform: uppercase;
  text-align: center;
  text-decoration: none;
  line-height: 1.2;
  cursor: pointer;
}

/* Painikkeissa ei ole liiketta eika siirtymaa: varit vaihtavat paikkaa
   kertaheitolla. Valkoisesta pohjasta tulee musta ja mustasta valkoinen,
   kehys pysyy samana. */

.btn--primary {
  background: var(--grey-100);
  color: var(--ink-0);
  border-color: var(--grey-100);
}
.btn--primary:hover,
.btn--primary:focus-visible {
  background: var(--ink-0);
  color: var(--grey-100);
  border-color: var(--grey-100);
}

.btn--ghost, .btn--dark {
  background: var(--ink-0);
  color: var(--grey-100);
  border-color: var(--grey-100);
}
.btn--ghost:hover, .btn--ghost:focus-visible,
.btn--dark:hover, .btn--dark:focus-visible {
  background: var(--grey-100);
  color: var(--ink-0);
  border-color: var(--grey-100);
}

.section--brand .btn--ghost,
.hero .btn--ghost { background: transparent; color: var(--grey-100); border-color: var(--hair-strong); }
.section--brand .btn--ghost:hover, .section--brand .btn--ghost:focus-visible,
.hero .btn--ghost:hover, .hero .btn--ghost:focus-visible {
  background: var(--grey-100);
  color: var(--ink-0);
  border-color: var(--grey-100);
}

.btn--block { width: 100%; }

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 2.2rem;
}
.center .btn-row { justify-content: center; }

@media (max-width: 420px) {
  .btn-row .btn { width: 100%; }
}

/* --- Ylatunniste --------------------------------------------------------- */

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(0, 0, 0, .82);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--hair);
}

.header-inner {
  position: relative;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-100);
  text-decoration: none;
  border: 0;
  line-height: 1.2;
  padding-block: 8px;
}
.logo:hover { color: var(--grey-100); }
.logo img { width: 30px; height: 30px; flex: none; }
.logo span small {
  display: block;
  margin-top: 3px;
  font-size: .56rem;
  font-weight: 400;
  letter-spacing: .24em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 46px; height: 46px;
  padding: 0;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 0;
  cursor: pointer;
  color: var(--grey-100);
}
.nav-toggle:hover { border-color: var(--grey-100); }
.nav-toggle span {
  position: relative;
  display: block;
  width: 18px; height: 1px;
  background: currentColor;
}
.nav-toggle span::before,
.nav-toggle span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px; height: 1px;
  background: currentColor;
}
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }

.nav-toggle[aria-expanded="true"] span { background: transparent; }
.nav-toggle[aria-expanded="true"] span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span::after { transform: translateY(-6px) rotate(-45deg); }

.site-nav {
  display: none;
  /* Sijoittelun perustana on .header-inner-elementin reunuslaatikko, joka
     sisaltaa jo .wrap-luokan vaakapehmusteen - siksi left/right on 0. */
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  background: var(--ink-0);
  border-bottom: 1px solid var(--hair);
  padding: 4px var(--gutter) 24px;
  max-height: calc(100vh - var(--header-h));
  overflow-y: auto;
}
.site-nav.is-open { display: block; }

.site-nav ul { list-style: none; margin: 0; padding: 0; }
.site-nav li { margin: 0; border-bottom: 1px solid var(--hair); }
.site-nav li:last-child { border-bottom: 0; }

.site-nav a {
  display: block;
  padding: 17px 2px;
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: var(--micro-track);
  text-transform: uppercase;
  color: var(--grey-400);
  text-decoration: none;
  border: 0;
}
.site-nav a:hover { color: var(--grey-100); }
.site-nav a[aria-current="page"] { color: var(--grey-100); }

.site-nav .btn { margin-top: 20px; width: 100%; }

@media (min-width: 900px) {
  .nav-toggle { display: none; }
  .site-nav {
    display: block;
    position: static;
    background: none;
    border: 0;
    padding: 0;
    max-height: none;
    overflow: visible;
  }
  .site-nav ul { display: flex; align-items: center; gap: 4px; }
  .site-nav li { border: 0; }
  .site-nav a {
    position: relative;
    padding: 10px 16px;
    border-radius: 0;
  }
  /* Hiusviiva kasvaa linkin alle keskelta ulospain. */
  .site-nav a::after {
    content: "";
    position: absolute;
    left: 16px; right: 16px; bottom: 2px;
    height: 1px;
    background: currentColor;
    transform: scaleX(0);
  }
  .site-nav a:hover::after,
  .site-nav a[aria-current="page"]::after { transform: scaleX(1); }
  .site-nav .btn { margin-top: 0; margin-left: 14px; width: auto; min-height: 44px; padding: 12px 26px; }
}

/* --- Hero ---------------------------------------------------------------- */

/* Kuva tayttaa koko heron taustan ja teksti keskitetaan sen paalle,
   kuten referenssikuvassa. Rakenne on sama, sijoittelu eri. */
.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  align-items: center;
  min-height: min(82vh, 760px);
  overflow: hidden;
  padding-block: clamp(80px, 14vw, 150px);
  background-color: var(--ink-0);
  color: var(--text);
  border-bottom: 1px solid var(--hair);
}

.hero-grid {
  position: relative;
  z-index: 2;
  display: block;
  max-width: 900px;
  text-align: center;
}

.hero h1 { color: var(--grey-100); margin-bottom: .45em; }
.hero h1 em { font-style: normal; color: var(--grey-100); }
.hero .lede {
  color: var(--grey-300);
  margin-inline: auto;
  font-size: clamp(1rem, 2.4vw, 1.14rem);
}
.hero .btn-row { justify-content: center; }

.hero-badges {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 28px;
  margin: 2.4rem 0 0;
  padding: 0;
  list-style: none;
}
.hero-badges li {
  margin: 0;
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-500);
  background: none;
  border: 0;
  padding: 0;
}

/* Herokuva on taustakerros, ei palsta. */
.hero-art {
  position: absolute;
  inset: 0;
  z-index: 0;
  min-width: 0;
  pointer-events: none;
}
.hero-art picture { display: block; height: 100%; }
.hero-art img {
  width: 100%;
  height: 100%;
  aspect-ratio: auto;
  object-fit: cover;
  object-position: center;
  /* Kuva jaa hiljaiseksi taustaksi: se antaa syvyytta mutta ei kilpaile
     tekstin kanssa. Sivun teksti on pitka, joten luettavuus voittaa. */
  opacity: .5;
  mask-image: none;
}
/* Kaksi kerrosta: pystysuunnan tummennus reunoille ja pehmea tumma
   keskusta juuri tekstipalstan taakse. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
  background:
    radial-gradient(64% 58% at 50% 48%, rgba(0,0,0,.86) 0%, rgba(0,0,0,.45) 60%, transparent 100%),
    linear-gradient(180deg, rgba(0,0,0,.70) 0%, rgba(0,0,0,.25) 34%,
                    rgba(0,0,0,.25) 64%, rgba(0,0,0,.82) 100%);
  pointer-events: none;
}

.service-illustration {
  display: block;
  width: 100%;
  aspect-ratio: 900 / 605;
  object-fit: cover;
  border-radius: 0;
  border: 1px solid var(--hair);
  filter: grayscale(1);
}

/* --- Sivun otsikkopalkki ------------------------------------------------- */

.page-head {
  position: relative;
  color: var(--text-muted);
  padding-block: clamp(64px, 11vw, 130px) clamp(48px, 8vw, 96px);
  background-color: var(--ink-0);
  border-bottom: 1px solid var(--hair);
  text-align: center;
}
.page-head h1 { color: var(--grey-100); margin-bottom: .4em; }
.page-head .lede { color: var(--text-muted); margin-inline: auto; }

.breadcrumb {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin: 0 0 1.8rem;
  padding: 0;
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--grey-500);
}
.breadcrumb li { margin: 0; }
.breadcrumb li + li::before { content: "/"; margin-right: 10px; color: var(--grey-600); }
.breadcrumb a { color: var(--grey-400); text-decoration: none; border: 0; }
.breadcrumb a:hover { color: var(--grey-100); }

/* --- Ruudukot ------------------------------------------------------------ */

.grid { display: grid; gap: clamp(20px, 3vw, 32px); }

@media (min-width: 620px) {
  .grid--2 { grid-template-columns: repeat(2, 1fr); }
  .grid--3 { grid-template-columns: repeat(2, 1fr); }
  .grid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 980px) {
  .grid--3 { grid-template-columns: repeat(3, 1fr); }
  .grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* --- Kortit -------------------------------------------------------------- */

.card {
  background: var(--ink-2);
  border: 1px solid var(--hair);
  border-radius: 0;
  padding: clamp(26px, 4vw, 40px);
}
.card h3 { margin-bottom: .55em; }
.card p:last-child { margin-bottom: 0; }
.card--link:hover { border-color: var(--hair-strong); }

.card-icon { width: 44px; height: 44px; margin-bottom: 22px; color: var(--grey-100); }

/* --- Palvelukortit ------------------------------------------------------- */

.service-card {
  display: flex;
  flex-direction: column;
  background: var(--ink-2);
  border: 1px solid var(--hair);
  border-radius: 0;
  overflow: hidden;
}
.service-card:hover { border-color: var(--hair-strong); }

.service-card__art {
  position: relative;
  background: var(--ink-0);
  padding: 0;
  overflow: hidden;
}
.service-card__art img {
  width: 100%;
  aspect-ratio: 900 / 605;
  object-fit: cover;
  border-radius: 0;
  filter: grayscale(1);
}

.service-card__body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: clamp(24px, 4vw, 34px);
}
.service-card__body h3 { margin-bottom: .5em; }
.service-card__body > p { color: var(--text-muted); font-size: .95rem; }
.service-card__body .btn { margin-top: auto; align-self: flex-start; }

.price-tag {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 10px;
  margin-bottom: 1.2rem;
  font-size: clamp(1.9rem, 4vw, 2.4rem);
  font-weight: 200;
  color: var(--grey-100);
  letter-spacing: -.03em;
  line-height: 1.1;
  font-variant-numeric: tabular-nums lining-nums;
}
.price-tag small {
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-500);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.8rem;
}
.feature-list li {
  position: relative;
  padding-left: 26px;
  margin-bottom: .7em;
  font-size: .95rem;
  color: var(--text-muted);
}
/* Ohut valintamerkki samalla viivapaksuudella kuin muut kuvakkeet. */
.feature-list li::before {
  content: "";
  position: absolute;
  left: 1px; top: .55em;
  width: 12px; height: 6px;
  border-left: 1px solid var(--grey-100);
  border-bottom: 1px solid var(--grey-100);
  transform: rotate(-45deg);
}
.feature-list strong { color: var(--grey-200); font-weight: 500; }

/* --- Matkakorvaustaulukko ------------------------------------------------ */

.fee-list {
  list-style: none;
  padding: 0;
  margin: 0 0 1.6rem;
}
.fee-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 18px;
  margin: 0;
  padding: 15px 0;
  border-bottom: 1px solid var(--hair);
  font-size: .95rem;
  color: var(--text-muted);
}
.fee-list li:last-child { border-bottom: 0; }
.fee-list strong {
  color: var(--grey-100);
  font-weight: 400;
  white-space: nowrap;
  font-variant-numeric: tabular-nums lining-nums;
}
.fee-list .fee-free { color: var(--grey-100); }

/* --- Tietolaatikko ------------------------------------------------------- */

.notice {
  background: var(--ink-2);
  border: 1px solid var(--hair);
  border-left: 1px solid var(--grey-100);
  border-radius: 0;
  padding: clamp(22px, 3.5vw, 32px);
}
.notice h3 { margin-bottom: .5em; }
.notice p:last-child { margin-bottom: 0; }

/* Omistaja- ja arvostelumoduulit. */
.owner-card { display: grid; gap: clamp(28px, 5vw, 56px); align-items: center; }
.owner-card__media { display: block; width: 100%; max-width: 300px; }
.owner-card__photo {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center 25%;
  border-radius: 0;
  background: var(--ink-0);
  border: 1px solid var(--hair);
  filter: grayscale(1) contrast(1.05);
}
.owner-card__promise { color: var(--grey-100); font-weight: 400; }

.reviews-grid { display: grid; gap: 24px; margin-top: 3rem; }
.review-card { margin: 0; min-width: 0; }
.review-card blockquote { margin: 1.4rem 0; color: var(--grey-200); font-weight: 300; font-size: 1.05rem; }
.review-card figcaption { color: var(--grey-500); font-size: var(--micro-size); letter-spacing: .1em; text-transform: uppercase; }
.review-card__rating { display: flex; align-items: center; gap: 8px; color: var(--grey-100); }
.review-card__rating svg { width: 20px; height: 20px; flex: none; color: var(--grey-100); }

@media (min-width: 700px) {
  .owner-card { grid-template-columns: minmax(180px, 300px) minmax(0, 1fr); }
}
@media (min-width: 960px) {
  .reviews-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* --- Vaiheet ------------------------------------------------------------- */

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  gap: 0;
  /* Viivat piirretaan askelmiin, ei sailioon. Jos sailiolla olisi
     taustavari, se nakyisi harmaana laattana sisaantuloanimaation ajan. */
  background: none;
  border: 0;
  border-top: 1px solid var(--hair);
}
/* Askelmat muodostavat yhtenaisen ruudukon hiusviivoilla erotettuna. */
.steps li {
  counter-increment: step;
  position: relative;
  margin: 0;
  padding: clamp(28px, 4vw, 40px);
  background: none;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
}
.steps li::before {
  content: "0" counter(step);
  display: block;
  margin-bottom: 20px;
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: var(--micro-track);
  color: var(--grey-500);
  background: none;
  width: auto; height: auto;
  position: static;
}
.steps h3 { margin-bottom: .5em; }
.steps p { margin: 0; color: var(--text-muted); font-size: .95rem; }

@media (min-width: 780px) {
  .steps { grid-template-columns: repeat(2, 1fr); }
  /* Pystyviiva vain vasempaan sarakkeeseen, jotta ruudukko sulkeutuu. */
  .steps li:nth-child(odd) { border-right: 1px solid var(--hair); }
}

/* --- Lomake -------------------------------------------------------------- */

.form-card {
  background: var(--ink-2);
  border: 1px solid var(--hair);
  border-radius: 0;
  padding: clamp(24px, 4.5vw, 48px);
}

.field { margin-bottom: 26px; }

.field label {
  display: block;
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 10px;
}

.req { color: var(--grey-100); font-weight: 400; }

.hint {
  display: block;
  font-size: .82rem;
  letter-spacing: 0;
  text-transform: none;
  color: var(--grey-500);
  margin-top: 8px;
  font-weight: 400;
}

/* Kentat ovat pohjaltaan tummia laatikoita hiusviivakehyksella. */
.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 52px;
  padding: 14px 16px;
  font: inherit;
  font-size: 16px; /* estaa iOS-zoomauksen */
  color: var(--grey-100);
  background: var(--ink-0);
  border: 1px solid var(--hair-input);
  border-radius: 0;
}
.field textarea { min-height: 160px; resize: vertical; line-height: 1.7; }
.field input::placeholder, .field textarea::placeholder { color: var(--grey-600); }

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: var(--ink-0);
  border-color: var(--grey-100);
  box-shadow: none;
}

.field input[aria-invalid="true"],
.field textarea[aria-invalid="true"] {
  border-color: var(--danger);
  background: var(--ink-0);
}

.error-msg {
  display: none;
  margin-top: 8px;
  font-size: .84rem;
  font-weight: 400;
  color: var(--danger);
}
.error-msg.is-visible { display: block; }

fieldset { margin: 0 0 26px; padding: 0; border: 0; }
fieldset legend {
  padding: 0;
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 14px;
}

/* Sarakkeita syntyy vasta kun tilaa oikeasti on - nain pitkat sanat
   kuten "Kayttojarjestelman" eivat pakota vaakavieritysta. */
.choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.choice {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 16px 18px;
  background: var(--ink-0);
  border: 1px solid var(--hair-strong);
  border-radius: 0;
  cursor: pointer;
  font-weight: 400;
  font-size: .95rem;
  color: var(--grey-200);
  min-height: 58px;
  overflow-wrap: anywhere;
}
.choice:hover { border-color: var(--hair-strong); }

.choice span small {
  display: block;
  font-weight: 400;
  font-size: .82rem;
  color: var(--grey-500);
}
.choice.is-checked { border-color: var(--grey-100); background: var(--ink-3); }

/* Suostumusvalinta on .field-lohkon sisalla, joten .field label- ja
   .field input -saannot voittaisivat tarkkuudessa ilman naita valitsimia.
   Ilman tata valintaruutu saisi 52 px korkeuden, pehmusteen ja kehyksen. */
.field label.consent,
.consent {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 0;
  font-size: .9rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.65;
  color: var(--text-muted);
  cursor: pointer;
}

/* Valintaruudut piirretaan itse, jotta ne nayttavat samalta kaikissa
   selaimissa. Selaimen oma piirto ei noudata sivun savyja luotettavasti. */
.choice input[type="checkbox"],
.field label.consent input[type="checkbox"],
.consent input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  flex: none;
  display: grid;
  place-content: center;
  width: 18px;
  height: 18px;
  min-height: 0;
  margin: 3px 0 0;
  padding: 0;
  border: 1px solid var(--hair-input);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  cursor: pointer;
}

.choice input[type="checkbox"]::after,
.field label.consent input[type="checkbox"]::after,
.consent input[type="checkbox"]::after {
  content: "";
  width: 11px;
  height: 11px;
  background: var(--ink-0);
  opacity: 0;
  transform: scale(.7);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round' d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

.choice input[type="checkbox"]:checked,
.field label.consent input[type="checkbox"]:checked,
.consent input[type="checkbox"]:checked {
  background: var(--grey-100);
  border-color: var(--grey-100);
}

.choice input[type="checkbox"]:checked::after,
.field label.consent input[type="checkbox"]:checked::after,
.consent input[type="checkbox"]:checked::after {
  opacity: 1;
  transform: scale(1);
}

.choice:hover input[type="checkbox"]:not(:checked) { border-color: var(--grey-100); }

.field label.consent .req { margin-left: 2px; }

.form-alert {
  display: none;
  margin-bottom: 26px;
  padding: 16px 18px;
  border-radius: 0;
  font-weight: 400;
  font-size: .92rem;
  background: var(--ink-0);
  border: 1px solid var(--danger);
  border-left-width: 3px;
  color: var(--danger);
}
.form-alert.is-visible { display: block; }

.hp-field {
  position: absolute !important;
  left: -9999px;
  width: 1px; height: 1px;
  opacity: 0;
  overflow: hidden;
}

/* --- Yhteystietolista ---------------------------------------------------- */

.contact-list { list-style: none; padding: 0; margin: 0; }
.contact-list li {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 20px 0;
  border-bottom: 1px solid var(--hair);
  margin: 0;
}
.contact-list li:last-child { border-bottom: 0; }
.contact-list svg { flex: none; width: 20px; height: 20px; color: var(--grey-100); margin-top: 5px; }
.contact-list strong {
  display: block;
  color: var(--grey-500);
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  margin-bottom: 4px;
}
.contact-list a { font-weight: 400; word-break: break-word; }

/* --- Hintataulukko ------------------------------------------------------- */

.table-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  border: 1px solid var(--hair);
  border-radius: 0;
  background: var(--ink-2);
}

table.price-table {
  width: 100%;
  min-width: 540px;
  border-collapse: collapse;
  font-size: .95rem;
}
.price-table caption {
  text-align: left;
  padding: 20px 22px 0;
  font-size: .84rem;
  color: var(--grey-500);
}
.price-table th, .price-table td {
  padding: 16px 22px;
  text-align: left;
  border-bottom: 1px solid var(--hair);
  vertical-align: top;
}
.price-table thead th {
  background: var(--ink-0);
  color: var(--grey-400);
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
}
.price-table tbody tr:last-child td { border-bottom: 0; }
.price-table tbody tr:nth-child(even) { background: var(--ink-1); }
.price-table td.price { font-weight: 400; color: var(--grey-100); white-space: nowrap; }

/* --- UKK / haitari ------------------------------------------------------- */

/* Haitari on yksi yhtenainen viivapino, ei erillisia laatikoita. */
.faq-list { display: grid; gap: 0; border-top: 1px solid var(--hair); }

.faq-item {
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  padding: 24px 4px;
  background: none;
  border: 0;
  font: inherit;
  font-weight: 400;
  font-size: 1.02rem;
  line-height: 1.5;
  color: var(--grey-200);
  text-align: left;
  cursor: pointer;
  min-height: 64px;
}
.faq-q:hover { color: var(--grey-100); }

/* Plusmerkki ohuilla viivoilla, ei ympyraa. */
.faq-q .chev {
  flex: none;
  width: 16px; height: 16px;
  margin-top: 8px;
  border-radius: 0;
  background: none;
  position: relative;
}
.faq-q .chev::before,
.faq-q .chev::after {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  background: currentColor;
  border-radius: 0;
  transform: translate(-50%, -50%);
}
.faq-q .chev::before { width: 14px; height: 1px; }
.faq-q .chev::after { width: 1px; height: 14px; }
.faq-q[aria-expanded="true"] { color: var(--grey-100); }
.faq-q[aria-expanded="true"] .chev { background: none; }
.faq-q[aria-expanded="true"] .chev::before,
.faq-q[aria-expanded="true"] .chev::after { background: currentColor; }
.faq-q[aria-expanded="true"] .chev::after { opacity: 0; }

.faq-a { padding: 0 4px; }
.faq-a[hidden] { display: none; }
.faq-a > :first-child { margin-top: 0; }
.faq-a p, .faq-a li { color: var(--text-muted); font-size: .95rem; }
.faq-a > :last-child { margin-bottom: 26px; }

/* --- Tekstisivut --------------------------------------------------------- */

.prose {
  max-width: 76ch;
  background: transparent;
  border: 0;
  border-radius: 0;
  padding: 0;
}
.prose h2 { margin-top: 2.6em; font-size: clamp(1.3rem, 3.2vw, 1.8rem); }
.prose h2:first-of-type { margin-top: 0; }
.prose h3 { margin-top: 2em; }
.prose li { color: var(--text-muted); }
.prose .updated {
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--grey-500);
  border-bottom: 1px solid var(--hair);
  padding-bottom: 1.6em;
}

.toc {
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 0;
  padding: 26px 30px;
  margin-bottom: 3rem;
}
.toc p {
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: var(--micro-track);
  text-transform: uppercase;
  color: var(--grey-400);
  margin-bottom: 1em;
}
.toc ol { margin: 0; padding-left: 1.2em; }
.toc li { font-size: .93rem; }

/* --- CTA-palkki ---------------------------------------------------------- */

.cta-band {
  background: var(--ink-0);
  color: var(--text-muted);
  border: 1px solid var(--hair);
  border-radius: 0;
  padding: clamp(44px, 8vw, 96px) clamp(24px, 5vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band::after { content: none; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band .btn-row { justify-content: center; }
.cta-band h2 { color: var(--grey-100); }
.cta-band p { color: var(--text-muted); max-width: 54ch; margin-inline: auto; }

/* --- CTA-palkin valojuovakehys -------------------------------------------
   Kehys pysyy paikallaan. Kaksi valkoista valojuovaa kiertaa sen ympari
   vastakkaisilla puolilla. pathLength="100" tekee katkoviivan yksikoista
   prosentteja kehan pituudesta, joten efekti skaalautuu ilman JavaScriptia. */

.cta-band--beam { isolation: isolate; }
.cta-band--beam .btn-row { justify-content: center; }

/* SVG on korvattava elementti, joten pelkka inset ei venyta sita.
   Siksi svg taytetaan kokonaan ja reunus kavennetaan rect-elementissa. */
.cta-band .beam-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 0;
  overflow: visible;
  pointer-events: none;
}

.beam-frame rect {
  --beam-inset: 0px;
  x: var(--beam-inset);
  y: var(--beam-inset);
  width: calc(100% - 2 * var(--beam-inset));
  height: calc(100% - 2 * var(--beam-inset));
  rx: 0;
  fill: none;
}

.beam-frame__track { stroke: none; }

/* Juovat piirtyvat vain kun liiketta ei ole rajoitettu. */
.beam-frame__beam { stroke: none; }

@media (prefers-reduced-motion: no-preference) {
  .beam-frame__beam {
    stroke: var(--grey-100);
    stroke-width: 1;
    stroke-linecap: butt;
    stroke-dasharray: 9 91;
    animation: hehkukierros 9s linear infinite;
  }
  .beam-frame__beam--2 { animation-delay: -4.5s; }

  @keyframes hehkukierros {
    from { stroke-dashoffset: 0; }
    to { stroke-dashoffset: -100; }
  }
}

/* --- Kiitos-sivu --------------------------------------------------------- */

.thanks {
  min-height: 62vh;
  display: grid;
  place-items: center;
  text-align: center;
  padding-block: clamp(64px, 12vw, 120px);
}
.thanks-inner { max-width: 640px; }
.thanks-mark {
  width: 84px; height: 84px;
  margin: 0 auto 36px;
  border-radius: 0;
  display: grid;
  place-items: center;
  background: transparent;
  border: 1px solid var(--hair-strong);
}
.thanks-mark svg { width: 34px; height: 34px; color: var(--grey-100); }

.summary-box {
  text-align: left;
  background: transparent;
  border: 1px solid var(--hair);
  border-radius: 0;
  padding: clamp(24px, 4vw, 34px);
  margin-top: 2.6rem;
}
.summary-box h2 {
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: var(--micro-track);
  text-transform: uppercase;
  color: var(--grey-400);
}

/* --- 404 ----------------------------------------------------------------- */

.err-code {
  font-size: clamp(5.5rem, 24vw, 12rem);
  font-weight: 200;
  line-height: .88;
  letter-spacing: -.06em;
  margin: 0 0 .15em;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  color: var(--grey-100);
  -webkit-text-fill-color: currentColor;
}

.link-list {
  list-style: none;
  padding: 0;
  margin: 2.6rem 0 0;
  display: grid;
  gap: 0;
  text-align: left;
  border-top: 1px solid var(--hair);
}
.link-list li { margin: 0; }
.link-list a {
  display: flex;
  align-items: center;
  padding: 20px 4px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: .14em;
  text-transform: uppercase;
  text-decoration: none;
  color: var(--grey-400);
  min-height: 60px;
}
.link-list a:hover { color: var(--grey-100); }

/* --- Alatunniste --------------------------------------------------------- */

.site-footer {
  background: var(--ink-0);
  color: var(--grey-500);
  border-top: 1px solid var(--hair);
  padding-block: clamp(56px, 9vw, 96px) 0;
  font-size: .93rem;
}
.site-footer h2, .site-footer h3 {
  color: var(--grey-400);
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: var(--micro-track);
  text-transform: uppercase;
  margin-bottom: 1.6em;
}
.site-footer a { color: var(--grey-400); text-decoration: none; border: 0; }
.site-footer a:hover { color: var(--grey-100); }

.footer-grid { display: grid; gap: 40px; }
@media (min-width: 700px) { .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; } }

.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid ul li { margin-bottom: .8em; }
.footer-grid > div > p { color: var(--grey-500); max-width: 38ch; }

.footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--grey-100);
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  text-decoration: none;
  border: 0;
  margin-bottom: 20px;
}
.footer-logo img { width: 28px; height: 28px; }
.footer-logo:hover { text-decoration: none; color: var(--grey-100); }

.site-footer .partner-btn {
  display: inline-block;
  margin-top: 14px;
  padding-block: 8px;
  color: var(--grey-500);
  font-weight: 400;
  font-size: .78rem;
  line-height: 1.5;
  text-decoration: none;
  border: 0;
}
.site-footer .partner-btn:hover { color: var(--grey-100); }

.footer-bottom {
  margin-top: clamp(44px, 6vw, 64px);
  padding-block: 26px;
  border-top: 1px solid var(--hair);
  display: flex;
  flex-wrap: wrap;
  gap: 10px 26px;
  align-items: center;
  justify-content: space-between;
  font-size: var(--micro-size);
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--grey-600);
}
.footer-bottom ul {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.footer-bottom li { margin: 0; }
.footer-bottom a { color: var(--grey-600); }

/* --- Somekanavat --------------------------------------------------------- */

.footer-socials { margin-top: 36px; }
.social-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.social-row li { margin: 0; }
.site-footer .social-btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 11px 18px;
  border: 1px solid var(--hair);
  border-radius: 0;
  background: transparent;
  color: var(--grey-400);
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: .12em;
  text-transform: uppercase;
  line-height: 1;
  text-decoration: none;
}
.social-btn svg { width: 16px; height: 16px; flex: none; }
.site-footer .social-btn:hover,
.site-footer .social-btn:focus-visible {
  color: var(--ink-0);
  border-color: var(--grey-100);
  background: var(--grey-100);
  text-decoration: none;
}

/* Somekortit ovat yhtenainen viivaruudukko, kuten referenssin kolme saraketta. */
.socials-grid {
  display: grid;
  gap: 0;
  grid-template-columns: 1fr;
  margin-top: clamp(36px, 5vw, 56px);
  /* Viivat ovat korteissa, ei sailiossa. Ks. .steps-kommentti. */
  background: none;
  border: 1px solid var(--hair);
}
.social-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 18px;
  padding: clamp(30px, 4vw, 44px) 20px;
  border: 0;
  border-bottom: 1px solid var(--hair);
  border-radius: 0;
  background: none;
  color: var(--grey-200);
  text-align: center;
  text-decoration: none;
}
.social-card__icon {
  display: grid;
  place-content: center;
  flex: none;
  width: auto;
  height: auto;
  border-radius: 0;
  background: none;
  color: var(--grey-100);
}
.social-card__icon svg { width: 28px; height: 28px; }
.social-card__name {
  display: block;
  font-size: var(--micro-size);
  font-weight: 500;
  letter-spacing: var(--micro-track);
  text-transform: uppercase;
  color: var(--grey-100);
}
.social-card__handle {
  display: block;
  margin-top: 8px;
  font-size: .85rem;
  color: var(--grey-500);
  overflow-wrap: anywhere;
}
.social-card:last-child { border-bottom: 0; }
.social-card:hover,
.social-card:focus-visible { background: var(--ink-3); text-decoration: none; }

@media (min-width: 720px) {
  .socials-grid { grid-template-columns: repeat(3, 1fr); }
  .social-card { border-bottom: 0; border-right: 1px solid var(--hair); }
  .social-card:last-child { border-right: 0; }
}

/* --- Animaatiot ---------------------------------------------------------- */

.reveal { opacity: 1; transform: none; }
.reveal.is-visible { opacity: 1; transform: none; }

/* Hehkuluokka on jaanne vaaleasta ilmeesta eika piirra enaa mitaan. */
.glow-top::before { content: none; }

/* --- Sivujen valiset siirtymat (View Transitions) ------------------------- */

@view-transition { navigation: none; }

/* Ylatunniste ja alatunniste pysyvat paikallaan, sisalto vaihtuu pehmeasti. */
.site-header { view-transition-name: site-header; }
.site-footer { view-transition-name: site-footer; }

@keyframes vt-ulos { to { opacity: 0; } }
@keyframes vt-sisaan { from { opacity: 0; } }

/* Varasuunnitelma selaimille, joissa View Transitions ei ole kaytossa.
   Luokan .ei-vt lisaa main.js. */
@keyframes sivu-saapuu { from { opacity: 0; } }

.ei-vt.sivu-poistuu main { opacity: 1; transform: none; }

/* --- Tulostus ------------------------------------------------------------ */

@media print {
  .site-header, .site-footer, .btn, .nav-toggle, .cta-band { display: none !important; }
  body { background: #FFF; color: #000; font-size: 12pt; }
  body::before { display: none; }
  .hero, .page-head { background: #FFF !important; color: #000; min-height: 0; }
  .hero::before, .hero-art { display: none; }
  .hero h1, .page-head h1, h1, h2, h3, h4 { color: #000; }
  .card, .prose, .form-card, .steps li { border-color: #CCC; background: #FFF; }
}

/* Liike kaynnistyy vain kayttajan salliessa sen. */
@media (prefers-reduced-motion: no-preference) {
  @view-transition { navigation: auto; }

  .skip-link { transition: transform var(--dur-fast) var(--ease-out); }


  /* Painikkeet on rajattu ulos: niissa varit vaihtuvat kertaheitolla. */
  a:not(.btn), .site-nav a, .site-footer a, .breadcrumb a, .link-list a,
  .faq-q, .social-btn, .social-card {
    transition: color var(--dur-fast) var(--ease-out),
                background-color var(--dur-base) var(--ease-out),
                border-color var(--dur-fast) var(--ease-out);
  }
  .btn, button.btn { transition: none; }
  .site-nav a::after { transition: transform var(--dur-base) var(--ease-out); }

  .card, .service-card { transition: border-color var(--dur-base) var(--ease-out); }
  /* Kuva hengittaa hitaasti kortin paalla, kehys pysyy paikallaan. */
  .service-card__art img { transition: transform var(--dur-slow) var(--ease-out); }
  .service-card:hover .service-card__art img { transform: scale(1.04); }

  .nav-toggle span::before, .nav-toggle span::after { transition: transform var(--dur-base) var(--ease-out); }
  .faq-q .chev::after { transition: opacity var(--dur-fast) var(--ease-out); }
  .choice, .choice input[type="checkbox"] { transition: border-color var(--dur-fast) var(--ease-out), background-color var(--dur-fast) var(--ease-out); }
  .field input, .field textarea, .field select { transition: border-color var(--dur-fast) var(--ease-out); }

  .reveal {
    --i: 0;
    opacity: 0;
    transform: translateY(24px);
    transition: opacity var(--dur-slow) var(--ease-out), transform var(--dur-slow) var(--ease-out);
    transition-delay: calc(var(--i) * 70ms);
  }
  .reveal.is-visible { opacity: 1; transform: none; }

  /* Estetaan ryhmien oletusanimaatiot, jotka voivat muuttaa mittoja. */
  ::view-transition-group(*) { animation: none; }
  ::view-transition-old(site-header), ::view-transition-new(site-header),
  ::view-transition-old(site-footer), ::view-transition-new(site-footer) { animation: none; }
  ::view-transition-old(root) { animation: vt-ulos var(--dur-base) var(--ease-out) both; }
  ::view-transition-new(root) { animation: vt-sisaan var(--dur-slow) var(--ease-out) both; }
  .ei-vt main { animation: sivu-saapuu var(--dur-slow) var(--ease-out) both; }
  .ei-vt.sivu-poistuu main { opacity: 0; transition: opacity var(--dur-base) var(--ease-out); }
}

/* Vahennetty liike nayttaa sisallon heti ja sailyttaa toiminnot. */
@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
  .reveal, .ei-vt main, .ei-vt.sivu-poistuu main { opacity: 1; transform: none; }
}

/* Selaimen aikajana korvaa ajastetun esiintulon vain tuetuissa selaimissa.
   Muuten yllä olevat siirtymät ja JavaScriptin havainnointi säilyvät. */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal, .reveal.is-visible {
      transition: none;
      animation: vieritys-esiin auto var(--ease-out) both;
      animation-timeline: view();
      animation-range: entry 0% cover 25%;
    }
    @keyframes vieritys-esiin {
      from { opacity: 0; transform: translateY(24px); }
      to { opacity: 1; transform: translateY(0); }
    }
  }
  @supports (animation-timeline: scroll()) {
    /* Herokuva liikkuu hitaasti tekstin alla, enintaan 60 pikselia. */
    .hero-art img {
      animation: hero-parallaksi auto linear both;
      animation-timeline: scroll(root block);
      animation-range: 0px 100vh;
    }
    @keyframes hero-parallaksi {
      from { transform: scale(1.06) translateY(0); }
      to { transform: scale(1.06) translateY(60px); }
    }
  }
}

/* Samat kuvat jakavat nimen, joka esiintyy vain kerran kummallakin sivulla.
   Osaosuma (*=) loppuosuman ($=) sijaan, koska src paattyy valimuistin
   ohittavaan ?v=-tunnisteeseen. */
@media (prefers-reduced-motion: no-preference) {
  main img[src*="/kayttojarjestelman-asennus.jpg"] { view-transition-name: palvelu-os; }
  main img[src*="/wifi-asennus.jpg"] { view-transition-name: palvelu-wifi; }
  main img[src*="/tietokoneen-kasaus.jpg"] { view-transition-name: palvelu-kasaus; }
  main img[src*="/laitteiden-asennus.jpg"] { view-transition-name: palvelu-laitteet; }
  ::view-transition-old(palvelu-os), ::view-transition-old(palvelu-wifi),
  ::view-transition-old(palvelu-kasaus), ::view-transition-old(palvelu-laitteet) {
    width: 100%; height: 100%; animation: kuva-ulos var(--dur-slow) var(--ease-out) both;
  }
  ::view-transition-new(palvelu-os), ::view-transition-new(palvelu-wifi),
  ::view-transition-new(palvelu-kasaus), ::view-transition-new(palvelu-laitteet) {
    width: 100%; height: 100%; animation: kuva-sisaan var(--dur-slow) var(--ease-out) both;
  }
  @keyframes kuva-ulos { to { opacity: 0; } }
  @keyframes kuva-sisaan { from { opacity: 0; } }
}

/* Sanamaskit kayttavat saman rivin yhteista 80 ms porrastusta. */
.hero-word-mask { display: inline-block; vertical-align: bottom; overflow: hidden; }
.hero-word { display: inline-block; }
.price-digits { position: relative; display: inline-block; }

/* Pitka lomakeotsikko mahtuu tabletin palstaan kokonaisina sanoina. */
@media (min-width: 620px) and (max-width: 899px) {
  .form-card h2 { font-size: 1.35rem; }
}

/* Pitkat otsikkosanat sailyvat kokonaisina kapeissa tekstipalstoissa. */
@media (max-width: 359px) { .prose h2 { font-size: 1.15rem; } }
@media (min-width: 980px) and (max-width: 1100px) { .service-card h3 { font-size: 1.02rem; } }

/* ==========================================================================
   JavaScriptin lisaamat tilat
   Nama luokat tulevat main.js-tiedostosta. Ilman naita saantoja
   hintalaskuri, lomakkeen lahetysnappi ja lukemispalkki jaisivat piirtymatta.
   ========================================================================== */

.price-count { position: absolute; inset: 0; text-align: right; visibility: hidden; }
.price-digits.is-counting .price-original { opacity: 0; }
.price-digits.is-counting .price-count { visibility: visible; }

/* Hyvaksytyn kentan merkki on sama ohut valintaviiva kuin muualla. */
.field:has(> input:not([type="checkbox"]):not([type="hidden"])),
.field:has(> textarea) { position: relative; }
.field:has(> .is-valid)::after {
  content: "";
  position: absolute;
  right: 16px; top: 52px;
  width: 16px; height: 16px;
  pointer-events: none;
  background: var(--grey-100);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
  transform-origin: left center;
}
.field input.is-valid, .field textarea.is-valid { padding-right: 44px; }

button.btn[type="submit"] { position: relative; }
button.is-sending, button.is-sent { color: transparent; }
button.is-sending::after, button.is-sent::after {
  content: "";
  position: absolute;
  left: calc(50% - 10px); top: calc(50% - 10px);
  width: 20px; height: 20px;
  z-index: 1;
  pointer-events: none;
}
button.is-sending::after {
  border: 1px solid var(--ink-0);
  border-top-color: transparent;
  border-radius: 50%;
}
button.is-sent::after {
  background: var(--ink-0);
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='none' stroke='black' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round' d='M4 12l5 5L20 6'/%3E%3C/svg%3E") center / contain no-repeat;
}

@media (prefers-reduced-motion: no-preference) {
  /* Otsikon sanat nousevat rivi kerrallaan maskin takaa.
     Muuttuja --line on main.js:n asettama rivinumero, ei vari. */
  .hero h1.lines-ready .hero-word {
    animation: otsikko-esiin var(--dur-slow) var(--ease-out) both;
    animation-delay: calc(var(--line, 0) * 80ms);
  }
  @keyframes otsikko-esiin {
    from { opacity: 0; transform: translateY(105%); }
    to { opacity: 1; transform: translateY(0); }
  }

  .field:has(> .is-valid)::after, button.is-sent::after {
    animation: merkki-esiin var(--dur-base) var(--ease-out) both;
  }
  @keyframes merkki-esiin {
    from { opacity: 0; transform: scaleX(0); }
    to { opacity: 1; transform: scaleX(1); }
  }

  button.is-sending::after { animation: lahetys-pyorii calc(var(--dur-slow) * 2) linear infinite; }
  @keyframes lahetys-pyorii { to { transform: rotate(360deg); } }

  /* Lukemisen edistyminen on hiusviiva sivun ylareunassa. */
  .has-reading-progress::after {
    content: "";
    position: fixed;
    inset: 0 0 auto;
    height: 1px;
    z-index: 300;
    background: var(--grey-100);
    pointer-events: none;
    transform-origin: left;
    transform: scaleX(var(--reading-progress, 0));
  }
}

@media (prefers-reduced-motion: reduce) {
  .price-digits.is-counting .price-original { opacity: 1; }
  .price-count { display: none; }
}
