/* ============================================================================
   AI Koutsi · Site Chrome (Header + Footer + base)
   Brand-system v2.1 (2026-05-04)
   - Cream #FDF6E3 surface, Navy #1E3A5F text, Energy Yellow #F5B041 aksentti
   - Fraunces SOFT 50 (otsikot), Source Sans 3 (body), Bebas Neue (eyebrowit)
   - EI gradientteja, EI frosted glassia, EI pill-buttoneita (border-radius ≤ 8px)
   ============================================================================ */

:root {
  --navy: #1E3A5F;
  --energy-yellow: #F5B041;
  --cream: #FDF6E3;
  --white: #FFFFFF;
  --dark-text: #2A2A2A;
  --header-height: 80px;
}

/* ---- Base ---- */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--cream);
  color: var(--dark-text);
  font-family: 'Source Sans 3', system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  padding-top: var(--header-height); /* fixed-headerin tila */
}

a { color: var(--navy); }

.visually-hidden {
  position: absolute !important;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0);
  white-space: nowrap; border: 0;
}

/* Skip-link (WCAG 2.4.1 Bypass Blocks) */
.skip-link {
  position: absolute;
  top: -40px;
  left: 8px;
  padding: 12px 20px;
  background: var(--navy);
  color: var(--cream);
  text-decoration: none;
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 600;
  z-index: 1100;
  border-radius: 4px;
  transition: top 0.15s ease;
}
.skip-link:focus {
  top: 8px;
  outline: 3px solid var(--energy-yellow);
  outline-offset: 2px;
}

/* ============================================================================
   HEADER (sticky, Cream-pohjainen, brand v2.1)
   ============================================================================ */
.site-header {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--header-height);
  background: var(--cream);
  z-index: 1000;
  border-bottom: 1px solid transparent;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.site-header.scrolled {
  border-bottom-color: rgba(30, 58, 95, 0.10);
  box-shadow: 0 2px 12px rgba(30, 58, 95, 0.06);
}

.site-header-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}

/* Logo (mark-only + wordmark) */
.site-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--navy);
}
.site-logo img {
  width: 64px;
  height: 64px;
  aspect-ratio: 1;
  display: block;
}
.site-logo-text {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 36, 'wght' 800, 'SOFT' 50;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--navy);
}

/* Nav */
.site-nav {
  display: flex;
  align-items: center;
  gap: 40px;
}
.site-nav-list {
  display: flex;
  gap: 8px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav-link {
  position: relative;
  display: inline-block;
  padding: 8px 14px;
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 24, 'wght' 600, 'SOFT' 50;
  font-size: 16px;
  color: var(--navy);
  text-decoration: none;
  border-radius: 4px; /* ≤ 8px brand-rule */
  transition: color 0.15s ease;
}
.site-nav-link:hover {
  color: var(--navy);
}
.site-nav-link::after {
  content: '';
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 4px;
  height: 2px;
  background: var(--energy-yellow);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s ease;
}
.site-nav-link:hover::after,
.site-nav-link.is-active::after {
  transform: scaleX(1);
}
.site-nav-link.is-active {
  font-variation-settings: 'opsz' 24, 'wght' 700, 'SOFT' 50;
}

/* Header CTA - pikseli-3D Yellow + Navy varjo */
.site-nav-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  background: var(--energy-yellow);
  color: var(--navy);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--navy);
  box-shadow: 0 4px 0 var(--navy);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap; /* "Varaa kartoitus" pysyy yhdellä rivillä */
  flex-shrink: 0;
}
.site-nav-cta:hover, .site-nav-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--navy);
}
.site-nav-cta:active {
  transform: translateY(0);
  box-shadow: 0 2px 0 var(--navy);
}
.site-nav-cta svg {
  transition: transform 0.15s ease;
}
.site-nav-cta:hover svg {
  transform: translateX(2px);
}

/* Burger (mobile only, 44×44 WCAG 2.5.5) */
.site-burger {
  display: none;
  width: 44px;
  height: 44px;
  padding: 0;
  background: transparent;
  border: 2px solid var(--navy);
  border-radius: 4px;
  cursor: pointer;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 5px;
}
.site-burger span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--navy);
  transition: transform 0.2s ease, opacity 0.2s ease;
}
.site-burger.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.site-burger.is-open span:nth-child(2) { opacity: 0; }
.site-burger.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* Mobile breakpoint — 960 px on lähellä todellista pakkauspistettä:
   nav-rivi (logo + 5 linkkiä + "Varaa kartoitus" -CTA + paddings) vie noin 940 px desktop-tilassa.
   Tämä pitää desktop-menun käytössä mahdollisimman pitkään ennen burger-tilaa. */
@media (max-width: 960px) {
  .site-header-inner { padding: 0 24px; gap: 16px; }
  .site-burger { display: inline-flex; }
  /* Nav default: kokonaan piilossa (display:none on robustimpi kuin transform-piilotus pienelle navi-sisällölle) */
  .site-nav {
    display: none;
    position: fixed;
    top: var(--header-height);
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 24px;
    background: var(--cream);
    border-bottom: 1px solid rgba(30, 58, 95, 0.10);
    box-shadow: 0 4px 16px rgba(30, 58, 95, 0.08);
    z-index: 999;
  }
  .site-nav.is-open {
    display: flex;
  }
  .site-nav-list {
    flex-direction: column;
    gap: 4px;
    margin-bottom: 16px;
  }
  .site-nav-link {
    padding: 14px 16px;
    font-size: 18px;
  }
  .site-nav-link::after { display: none; } /* mobiilissa active = bold, ei underline */
  .site-nav-cta {
    justify-content: center;
  }
}

@media (prefers-reduced-motion: reduce) {
  .site-nav-link::after, .site-nav-cta, .site-nav-cta svg, .site-burger span, .site-nav { transition: none !important; }
  .site-nav-cta:hover { transform: none; }
}

/* ============================================================================
   FOOTER (Cream-pohjainen, 4-saraketta, brand v2.1)
   ============================================================================ */
.site-footer {
  background: var(--cream);
  border-top: 1px solid rgba(30, 58, 95, 0.10);
  padding: 96px 48px 32px;
}

.site-footer-inner {
  max-width: 1280px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: 64px;
}

.site-footer-brand-col .site-footer-logo {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  margin-bottom: 16px;
}
.site-footer-brand-col .site-footer-logo img {
  width: 56px; height: 56px; aspect-ratio: 1; display: block;
}
.site-footer-brand-col .site-footer-logo-text {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 36, 'wght' 800, 'SOFT' 50;
  font-size: 22px;
  color: var(--navy);
}
.site-footer-description {
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy);
  opacity: 0.78;
  max-width: 320px;
  margin: 0 0 24px 0;
}
.site-footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.site-footer-contact a,
.site-footer-contact span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
}
.site-footer-contact a:hover { text-decoration: underline; }

.site-footer-col-title {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--navy);
  margin: 0 0 20px 0;
  text-transform: uppercase;
}

.site-footer-col-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.site-footer-col-list a {
  color: var(--navy);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  opacity: 0.85;
  transition: opacity 0.15s ease;
}
.site-footer-col-list a:hover {
  opacity: 1;
  text-decoration: underline;
}

.site-footer-bottom {
  max-width: 1280px;
  margin: 64px auto 0;
  padding-top: 24px;
  border-top: 1px solid rgba(30, 58, 95, 0.10);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
.site-footer-copyright {
  font-size: 14px;
  color: var(--navy);
  opacity: 0.75;
  margin: 0;
}
.site-footer-copyright a {
  color: var(--navy);
  text-decoration: underline;
}
.site-footer-tagline {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 24, 'wght' 600, 'SOFT' 50;
  font-style: italic;
  font-size: 16px;
  color: var(--navy);
  margin: 0;
}

@media (max-width: 900px) {
  .site-footer { padding: 64px 24px 24px; }
  .site-footer-inner { grid-template-columns: 1fr 1fr; gap: 40px; }
}
@media (max-width: 560px) {
  .site-footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .site-footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================================
   PAGE-BASE (placeholder-sivuille)
   ============================================================================ */
.page-shell {
  max-width: 920px;
  margin: 0 auto;
  padding: 96px 48px 96px;
}
.page-shell h1 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 96, 'wght' 800, 'SOFT' 50;
  font-size: clamp(40px, 6vw, 64px);
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 24px 0;
  letter-spacing: -0.01em;
}
.page-shell .eyebrow {
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.page-shell .eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--energy-yellow);
  margin-right: 12px;
  vertical-align: middle;
}
.page-shell .lead {
  font-size: 20px;
  line-height: 1.65;
  color: var(--navy);
  font-weight: 500;
  max-width: 720px;
  margin: 0 0 48px 0;
}
.page-shell h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 60, 'wght' 700, 'SOFT' 50;
  font-size: clamp(28px, 4vw, 40px);
  line-height: 1.2;
  color: var(--navy);
  margin: 64px 0 16px 0;
}
.page-shell p {
  margin: 0 0 16px 0;
  max-width: 720px;
}
.page-shell .placeholder-note {
  margin-top: 48px;
  padding: 24px 28px;
  background: var(--white);
  border-left: 4px solid var(--energy-yellow);
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy);
}
@media (max-width: 700px) {
  .page-shell { padding: 64px 24px; }
}

/* ============================================================================
   PAGE-WIDE (palvelut.html ja vastaavat sivut joissa tarvitaan koko leveyttä)
   ============================================================================ */
.page-wide {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 48px;
}
@media (max-width: 700px) {
  .page-wide { padding: 0 24px; }
}

.page-section {
  padding: 96px 0;
}
@media (max-width: 700px) {
  .page-section { padding: 64px 0; }
}

.page-hero {
  padding: 96px 0 64px;
  text-align: center;
}
.page-hero .eyebrow {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 16px;
  letter-spacing: 4px;
  color: var(--navy);
  text-transform: uppercase;
  margin-bottom: 20px;
}
.page-hero .eyebrow::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 2px;
  background: var(--energy-yellow);
  margin-right: 12px;
  vertical-align: middle;
}
.page-hero h1 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 96, 'wght' 800, 'SOFT' 50;
  font-size: clamp(44px, 6.5vw, 72px);
  line-height: 1.05;
  color: var(--navy);
  margin: 0 0 24px 0;
  letter-spacing: -0.02em;
}
.page-hero p {
  font-size: clamp(18px, 1.6vw, 22px);
  line-height: 1.55;
  color: var(--navy);
  font-weight: 500;
  max-width: 720px;
  margin: 0 auto;
  opacity: 0.85;
}

/* Section header (eyebrow + h2 + lead) */
.section-header {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 64px;
}
.section-header .eyebrow {
  display: inline-block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 14px;
  letter-spacing: 4px;
  color: var(--navy);
  margin-bottom: 16px;
  opacity: 0.85;
  text-transform: uppercase;
}
.section-header .eyebrow::before {
  content: '';
  display: inline-block;
  width: 24px;
  height: 2px;
  background: var(--energy-yellow);
  margin-right: 10px;
  vertical-align: middle;
}
.section-header h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 60, 'wght' 700, 'SOFT' 50;
  font-size: clamp(32px, 4.5vw, 48px);
  line-height: 1.1;
  color: var(--navy);
  margin: 0 0 16px 0;
  letter-spacing: -0.01em;
}
.section-header p {
  font-size: 18px;
  line-height: 1.6;
  color: var(--navy);
  opacity: 0.78;
  margin: 0;
}

/* ============================================================================
   PALVELUSIVU — paketti-kortit
   ============================================================================ */
/* Free Kartoitus -kortti, leveä ja eyecatching */
.svc-wide {
  background: var(--white);
  border: 2px solid var(--navy);
  box-shadow: 0 4px 0 var(--navy);
  padding: 48px;
  margin-bottom: 64px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.svc-wide-icon {
  width: 56px;
  height: 56px;
  background: var(--energy-yellow);
  border: 2px solid var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 20px;
}
.svc-wide h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 60, 'wght' 800, 'SOFT' 50;
  font-size: clamp(32px, 3.6vw, 42px);
  color: var(--navy);
  margin: 0 0 8px 0;
  line-height: 1.1;
}
.svc-wide-tagline {
  font-size: 17px;
  color: var(--navy);
  opacity: 0.75;
  margin: 0 0 24px 0;
}
.svc-wide-price {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 96, 'wght' 900, 'SOFT' 50;
  font-size: 64px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 24px;
}
.svc-wide-price .unit {
  font-size: 28px;
  margin-left: 4px;
}
.svc-wide-desc {
  font-size: 16px;
  line-height: 1.6;
  color: var(--navy);
  margin: 0 0 32px 0;
  max-width: 480px;
}
.svc-features {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.svc-features li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 16px;
  color: var(--navy);
  line-height: 1.5;
}
.svc-features li::before {
  content: '';
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  background: var(--energy-yellow);
  border: 2px solid var(--navy);
  display: inline-block;
  margin-top: 2px;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 16 16"><path d="M13.5 4.5L6 12L2.5 8.5" stroke="%231E3A5F" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round" fill="none"/></svg>');
  background-size: 14px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Maksulliset paketit grid:ssä */
.svc-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 32px;
}
.svc-card {
  background: var(--white);
  border: 2px solid var(--navy);
  box-shadow: 0 4px 0 var(--navy);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  position: relative;
}
.svc-card.is-highlighted {
  background: var(--cream);
  border-width: 3px;
}
.svc-badge {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 14px;
  background: var(--energy-yellow);
  border: 2px solid var(--navy);
  font-family: 'Bebas Neue', sans-serif;
  font-size: 13px;
  letter-spacing: 2px;
  color: var(--navy);
  text-transform: uppercase;
}
.svc-card-icon {
  width: 48px;
  height: 48px;
  background: var(--energy-yellow);
  border: 2px solid var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--navy);
  margin-bottom: 20px;
}
.svc-card h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 60, 'wght' 800, 'SOFT' 50;
  font-size: 28px;
  color: var(--navy);
  margin: 0 0 6px 0;
  line-height: 1.15;
}
.svc-card-tagline {
  font-size: 14px;
  color: var(--navy);
  opacity: 0.7;
  margin: 0 0 18px 0;
  line-height: 1.4;
}
.svc-card-price {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 96, 'wght' 900, 'SOFT' 50;
  font-size: 48px;
  color: var(--navy);
  line-height: 1;
  margin-bottom: 16px;
}
.svc-card-price .unit {
  font-size: 22px;
  margin-left: 4px;
}
.svc-card-desc {
  font-size: 15px;
  line-height: 1.55;
  color: var(--navy);
  opacity: 0.85;
  margin: 0 0 20px 0;
}
.svc-card .svc-features {
  margin-bottom: 24px;
}
.svc-includes {
  font-size: 14px;
  line-height: 1.55;
  color: var(--navy);
  background: var(--cream);
  padding: 14px 16px;
  border-left: 3px solid var(--energy-yellow);
  margin: 0 0 20px 0;
}
.svc-card.is-highlighted .svc-includes {
  background: var(--white);
}
.svc-includes-label {
  display: block;
  font-family: 'Bebas Neue', sans-serif;
  font-size: 12px;
  letter-spacing: 3px;
  color: var(--navy);
  margin-bottom: 4px;
}
.svc-guarantee {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  color: var(--navy);
  opacity: 0.85;
  line-height: 1.5;
  margin-top: auto;
  padding-top: 16px;
  border-top: 1px solid rgba(30, 58, 95, 0.15);
}
.svc-cta {
  margin-top: auto;
  padding-top: 24px;
}
.svc-cta a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 22px;
  background: var(--energy-yellow);
  color: var(--navy);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 15px;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--navy);
  box-shadow: 0 4px 0 var(--navy);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.svc-cta a:hover, .svc-cta a:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--navy);
}
.svc-cta a:active {
  transform: translateY(0);
  box-shadow: 0 2px 0 var(--navy);
}

@media (max-width: 1024px) {
  .svc-grid { grid-template-columns: 1fr; gap: 32px; }
  .svc-wide { grid-template-columns: 1fr; gap: 32px; padding: 32px; }
  .svc-wide-price { font-size: 56px; }
}
@media (max-width: 700px) {
  .svc-wide { padding: 24px; }
  .svc-card { padding: 28px 24px; }
}

/* ============================================================================
   PROCESS-grid (4 step kortteja)
   ============================================================================ */
.process-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}
.process-step {
  background: var(--cream);
  padding: 32px 24px;
  border: 2px solid var(--navy);
  position: relative;
}
.process-step-num {
  display: inline-block;
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 60, 'wght' 900, 'SOFT' 50;
  font-size: 36px;
  color: var(--energy-yellow);
  -webkit-text-stroke: 2px var(--navy);
  line-height: 1;
  margin-bottom: 14px;
}
.process-step h3 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 36, 'wght' 700, 'SOFT' 50;
  font-size: 22px;
  color: var(--navy);
  margin: 0 0 8px 0;
}
.process-step p {
  font-size: 15px;
  line-height: 1.55;
  color: var(--navy);
  opacity: 0.82;
  margin: 0;
}
@media (max-width: 1024px) {
  .process-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .process-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   FAQ-grid (kysymys-vastaus -kortit)
   ============================================================================ */
.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.faq-card {
  background: var(--white);
  padding: 28px;
  border: 1px solid rgba(30, 58, 95, 0.15);
}
.faq-card h4 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 36, 'wght' 700, 'SOFT' 50;
  font-size: 20px;
  color: var(--navy);
  margin: 0 0 12px 0;
  line-height: 1.3;
}
.faq-card p {
  font-size: 15px;
  line-height: 1.6;
  color: var(--navy);
  opacity: 0.85;
  margin: 0;
}
@media (max-width: 800px) {
  .faq-grid { grid-template-columns: 1fr; }
}

/* ============================================================================
   CTA-bandi alaosaan
   ============================================================================ */
.page-cta-band {
  background: var(--navy);
  color: var(--cream);
  padding: 96px 48px;
  text-align: center;
}
.page-cta-band h2 {
  font-family: 'Fraunces', serif;
  font-variation-settings: 'opsz' 96, 'wght' 700, 'SOFT' 50;
  font-size: clamp(32px, 4.2vw, 48px);
  line-height: 1.15;
  color: var(--cream);
  letter-spacing: -0.01em;
  margin: 0 auto 32px;
  max-width: 800px;
  text-wrap: balance;
}
.page-cta-band h2 em {
  font-style: italic;
  color: var(--energy-yellow);
}
.page-cta-band-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 16px 32px;
  background: var(--energy-yellow);
  color: var(--navy);
  font-family: 'Source Sans 3', sans-serif;
  font-weight: 700;
  font-size: 17px;
  text-decoration: none;
  border-radius: 4px;
  border: 2px solid var(--cream);
  box-shadow: 0 4px 0 var(--cream);
  transition: transform 0.15s ease, box-shadow 0.15s ease;
}
.page-cta-band-cta:hover, .page-cta-band-cta:focus-visible {
  transform: translateY(-2px);
  box-shadow: 0 6px 0 var(--cream);
}
.page-cta-band-meta {
  margin-top: 20px;
  font-family: 'Source Sans 3', sans-serif;
  font-size: 14px;
  color: var(--cream);
  opacity: 0.7;
  letter-spacing: 0.02em;
}
.page-cta-band-meta-sep {
  display: inline-block;
  margin: 0 10px;
  color: rgba(253, 246, 227, 0.4);
}
@media (max-width: 700px) {
  .page-cta-band { padding: 64px 24px; }
}

/* ============================================================================
   Fade-in stagger reveal (validoitu 2026-05-09)
   - Section-tausta näkyy heti, vain sisäelementit feidaavat staggerina
   - 32 px translateY · 1 s ease-out · 130 ms askel
   - Selektori: .fade-in-section sisällä mikä tahansa "-inner" -loppuinen wrapper
     + tunnetut grid-konteinerit (per homepage); sub-sivut hyödyntävät -inner-pattern
   - prefers-reduced-motion: kaikki näkyy heti
   ============================================================================ */
.fade-in-section :is([class$="-inner"], .hero-steps, .syyt, .faq-list, .kartoitus-vaiheet, .miksi-me-stats-block, .ankkurit, .kings-voice-promo-v2) > * {
  opacity: 0;
  transform: translateY(32px);
  transition: opacity 1s ease-out, transform 1s ease-out;
  transition-delay: calc(var(--stagger, 0) * 130ms);
}

.fade-in-section :is([class$="-inner"], .hero-steps, .syyt, .faq-list, .kartoitus-vaiheet, .miksi-me-stats-block, .ankkurit, .kings-voice-promo-v2) > *:nth-child(1) { --stagger: 0; }
.fade-in-section :is([class$="-inner"], .hero-steps, .syyt, .faq-list, .kartoitus-vaiheet, .miksi-me-stats-block, .ankkurit, .kings-voice-promo-v2) > *:nth-child(2) { --stagger: 1; }
.fade-in-section :is([class$="-inner"], .hero-steps, .syyt, .faq-list, .kartoitus-vaiheet, .miksi-me-stats-block, .ankkurit, .kings-voice-promo-v2) > *:nth-child(3) { --stagger: 2; }
.fade-in-section :is([class$="-inner"], .hero-steps, .syyt, .faq-list, .kartoitus-vaiheet, .miksi-me-stats-block, .ankkurit, .kings-voice-promo-v2) > *:nth-child(4) { --stagger: 3; }
.fade-in-section :is([class$="-inner"], .hero-steps, .syyt, .faq-list, .kartoitus-vaiheet, .miksi-me-stats-block, .ankkurit, .kings-voice-promo-v2) > *:nth-child(5) { --stagger: 4; }
.fade-in-section :is([class$="-inner"], .hero-steps, .syyt, .faq-list, .kartoitus-vaiheet, .miksi-me-stats-block, .ankkurit, .kings-voice-promo-v2) > *:nth-child(6) { --stagger: 5; }
.fade-in-section :is([class$="-inner"], .hero-steps, .syyt, .faq-list, .kartoitus-vaiheet, .miksi-me-stats-block, .ankkurit, .kings-voice-promo-v2) > *:nth-child(7) { --stagger: 6; }
.fade-in-section :is([class$="-inner"], .hero-steps, .syyt, .faq-list, .kartoitus-vaiheet, .miksi-me-stats-block, .ankkurit, .kings-voice-promo-v2) > *:nth-child(8) { --stagger: 7; }

.fade-in-section.in-view :is([class$="-inner"], .hero-steps, .syyt, .faq-list, .kartoitus-vaiheet, .miksi-me-stats-block, .ankkurit, .kings-voice-promo-v2) > * {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .fade-in-section :is([class$="-inner"], .hero-steps, .syyt, .faq-list, .kartoitus-vaiheet, .miksi-me-stats-block, .ankkurit, .kings-voice-promo-v2) > * {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
}
