/* Pohja "rauhallinen": valkoinen ja väljä, jaettu ensinäkymä, hinnasto pisteviivoin, Käynti-kortit.
   Fontti Instrument Sans (OFL 1.1, fontit/instrumentsans-OFL.txt). */
@font-face { font-family: "Instrument Sans"; src: url(/_s/fontit/instrumentsans.woff2) format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  --vari: #2e6b5e;
  --teksti: "Instrument Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --otsikko-paino: 600; --leveys: 1160px; --pyoristys: 20px;
}
h1, h2, h3 { letter-spacing: -0.02em; }
.leveys { padding: 0 24px; }

.yla { position: sticky; top: 0; z-index: 10; background: rgb(255 255 255 / .94); border-bottom: 1px solid var(--viiva); }
@supports (backdrop-filter: blur(8px)) { .yla { background: rgb(255 255 255 / .82); backdrop-filter: blur(8px); } }
.yla .leveys { display: flex; align-items: center; gap: 28px; min-height: 64px; }
.logo { font-size: 19px; margin-right: auto; }
.yla nav { display: flex; gap: 24px; font-size: 15px; }
.yla nav a { color: var(--heikko); }
.yla nav a:hover { color: var(--muste); }
.yla .nappi { min-height: 42px; padding: 0 18px; }

.ylaotsikko { font-size: 14px; letter-spacing: .08em; text-transform: uppercase; color: var(--linkki); font-weight: 600; margin-bottom: 16px; }
.hero { padding: 56px 0 72px; }
.hero.kuvalla .leveys { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(36px, 5.2vw, 60px); margin-bottom: 22px; max-width: 15ch; }
.hero-teksti > p:not(.ylaotsikko) { font-size: 19px; color: var(--heikko); max-width: 46ch; }
.hero .napit { display: flex; gap: 12px; flex-wrap: wrap; margin: 28px 0 22px; }
.hero .tila { padding: 8px 14px; border-radius: 999px; background: var(--vari-pehmea); }
.hero .lupaukset { margin-top: 22px; }
.hero-kuva { position: relative; }
.hero-kuva > img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 28px; }
.tekija-kortti { position: absolute; left: -24px; bottom: 28px; display: flex; gap: 12px; align-items: center; background: #fff; border-radius: 16px; padding: 12px 18px 12px 12px; box-shadow: 0 18px 40px rgb(23 32 29 / .12); font-size: 15px; }
.tekija-kortti img { width: 48px; height: 48px; border-radius: 50%; object-fit: cover; }
.tekija-kortti b { display: block; font-size: 16px; }

.osio { border-top: 1px solid var(--viiva); }
.hinnasto .leveys { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; }
.hinnasto-otsake { position: sticky; top: 96px; align-self: start; }
.hinnasto-otsake p { color: var(--heikko); }
.hinnasto-otsake .nappi { margin-top: 8px; }
.hinnat li { padding: 20px 0; border-bottom: 1px solid var(--viiva); }
.hinnat .rivi { display: flex; align-items: baseline; gap: 12px; }
.hinnat h3 { font-size: 20px; letter-spacing: -0.01em; }
.hinnat .pv { flex: 1; min-width: 24px; border-bottom: 2px dotted #c3ccc8; transform: translateY(-5px); }
.hinnat .hinta { font-weight: 600; font-size: 20px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.hinnat p { margin: 4px 0 0; color: var(--heikko); font-size: 15px; }

.vaiheet { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 28px; counter-reset: v; }
.vaiheet li { counter-increment: v; }
.vaiheet li::before { content: counter(v); display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--vari-pehmea); color: var(--linkki); font-weight: 700; margin-bottom: 14px; }
.vaiheet h3 { font-size: 19px; margin-bottom: 6px; }
.vaiheet p { color: var(--heikko); }

.esittelija .leveys { display: grid; gap: 56px; align-items: center; }
.esittelija.kuvalla .leveys { grid-template-columns: 1fr 1fr; }
.esittelija-kuva img { width: 100%; aspect-ratio: 5 / 4; object-fit: cover; border-radius: 28px; }
.esittelija h2 { margin-bottom: 4px; }
.titteli { color: var(--linkki); font-weight: 600; }
.esittelija-teksti { font-size: 21px; line-height: 1.5; max-width: 40ch; }

.laskuriosio { background: var(--pinta); }

.kaynti { background: var(--vari-pehmea); border-top: 0; }
.kortit { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.kortit + .kortit { margin-top: 20px; }
.kortti { background: #fff; border-radius: var(--pyoristys); padding: 26px; }
.kortti h3 { font-size: 18px; margin-bottom: 12px; }
.kortti p:last-child { margin-bottom: 0; }

@media (max-width: 760px) {
  .yla .paavalikko { display: none; }
  .yla .leveys { gap: 12px; }
  .hero { padding: 28px 0 48px; }
  .hero.kuvalla .leveys, .hinnasto .leveys, .esittelija.kuvalla .leveys { grid-template-columns: 1fr; gap: 32px; }
  .hero-kuva > img { aspect-ratio: 4 / 3; }
  .tekija-kortti { left: 12px; bottom: 12px; }
  .hinnasto-otsake { position: static; }
  .hinnat h3, .hinnat .hinta { font-size: 18px; }
  .esittelija-teksti { font-size: 19px; }
}

/* Laajan alasivut */
.sivun-otsake { padding-top: 56px; }
.sivun-otsake + .osio { border-top: 0; }
.jatko { background: var(--vari-pehmea); }
