/* =====================================================================
   Manuella Oy – tilitoimiston ulkoasu pohjan päälle.
   Vaalea «paperi», antiikvaotsikot, syvä metsänvihreä ja logon vihreä.
   Ladataan viimeisenä (views/layout.js), joten säännöt ohittavat pohjan.
   ===================================================================== */

/* ---------- Typografia ---------- */
h1, h2, h3, .h1, .h2, .h3,
.contact-panel__title, .prefooter__title, .card__title {
  font-family: var(--font-serif);
  letter-spacing: -0.005em;
}
.h1 { font-weight: 600; letter-spacing: -0.015em; line-height: 1.08; }
.h2 { font-weight: 600; }
.card__title { font-weight: 600; font-size: clamp(1.2rem, 1.1rem + 0.4vw, 1.4rem); }
.eyebrow { color: var(--color-accent); letter-spacing: 0.14em; }
.eyebrow::before {
  content: "";
  display: inline-block;
  width: 1.6em;
  height: 1px;
  margin-right: 0.6em;
  vertical-align: middle;
  background: currentColor;
}
body { background: var(--color-bg); }

/* ---------- Vaalea yläpalkki ---------- */
.site-header { color: var(--color-ink); }
.site-header::before {
  background: rgb(251 250 246 / 0.92);
  border-bottom: 1px solid var(--color-line);
  box-shadow: 0 10px 30px -24px rgb(16 41 28 / 0.4);
}
.site-header::after { background: var(--color-line); }
.site-header.is-menu-open::before { background: var(--color-bg); }
.nav__link { color: var(--color-text); }
.nav__link[aria-current="page"] { color: var(--color-ink); }
.nav__link::after { background: var(--color-accent); }
@media (hover: hover) and (pointer: fine) { .nav__link:hover { color: var(--color-ink); } }
.header-phone__icon { background: var(--color-accent-soft); color: var(--color-accent-strong); }
@media (min-width: 1024px) and (max-width: 1199px) { .nav__link { padding: 0 0.6rem; } .nav__link::after { left: 0.6rem; right: 0.6rem; } }

/* Mobiilivalikko: sama vaalea pinta kuin yläpalkki */
.mobile-menu { background: var(--color-bg); color: var(--color-ink); }
.mobile-menu__link { color: var(--color-ink); border-bottom-color: var(--color-line); font-family: var(--font-serif); font-weight: 600; }
.mobile-menu__link svg, .mobile-menu__link[aria-current="page"] { color: var(--color-accent); }
.mobile-menu .contact-chip { color: var(--color-ink); }
.mobile-menu .contact-chip__icon { background: var(--color-accent-soft); box-shadow: none; color: var(--color-accent-strong); }

/* ---------- Vaalea hero ---------- */
.hero--light {
  color: var(--color-text);
  background: var(--color-bg);
}
.hero--light::before { display: none; }
/* Kirjanpitopaperin vaakaviivat ja pystymarginaali, häivytetty oikealle */
.hero--light.hero--plain .hero__bg {
  background:
    linear-gradient(90deg, transparent calc(var(--gutter) + 2.25rem), rgb(196 74 60 / 0.16) calc(var(--gutter) + 2.25rem), rgb(196 74 60 / 0.16) calc(var(--gutter) + 2.25rem + 1px), transparent calc(var(--gutter) + 2.25rem + 1px)),
    repeating-linear-gradient(180deg, transparent 0 31px, rgb(16 41 28 / 0.055) 31px 32px),
    radial-gradient(70% 90% at 92% 10%, rgb(51 134 15 / 0.10) 0%, transparent 60%),
    linear-gradient(180deg, #fbfaf6 0%, #f4f2ea 100%);
  -webkit-mask: none;
  mask: none;
}
.hero--light.hero--plain .hero__bg::before { background: var(--color-accent); opacity: 0.07; }
.hero--light.hero--plain .hero__bg::after { background: var(--color-accent); opacity: 0.12; }
.hero--split.hero--plain .hero__bg::before,
.hero--split.hero--plain .hero__bg::after { display: none; }
.hero--light h1 { color: var(--color-ink); }
.hero--light .accent { color: var(--color-accent); }
.hero--light .eyebrow { color: var(--color-accent); }
.hero--light .hero__lead { color: var(--color-text); }
.hero--light .hero__note { color: var(--color-ink); border-left-color: var(--color-accent); font-weight: var(--fw-medium); }
.hero--light .breadcrumbs { color: var(--color-muted); }
.hero--light .breadcrumbs a:hover { color: var(--color-ink); }
.hero--light .contact-chip { color: var(--color-ink); }
.hero--light .contact-chip__label { color: var(--color-muted); }
.hero--light .btn--outline-light { --btn-fg: var(--color-ink); --btn-border: var(--color-line-strong); --btn-bg-hover: var(--color-surface); }
.hero { min-height: clamp(520px, 80svh, 800px); }
.hero--page { min-height: clamp(320px, 22vw + 240px, 520px); }
.hero--page.hero--light { border-bottom: 1px solid var(--color-line); }

/* Kaksi saraketta: teksti + tilakortti */
.hero--split .container { display: grid; gap: clamp(2rem, 4vw, 4rem); align-items: center; }
@media (min-width: 1024px) {
  .hero--split { align-items: center; }
  .hero--split .container { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); }
  .hero--split.hero--plain .hero__content { max-width: none; }
}
.hero__visual { min-width: 0; }

/* ---------- Tilakortti (etusivun hero) ---------- */
.ledger {
  position: relative;
  max-width: 440px;
  margin-inline: auto;
  padding: clamp(1.25rem, 1rem + 1vw, 1.75rem);
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  /* toinen «paperi» kortin takana: varjona, jotta se pysyy aina kortin alla */
  box-shadow: 14px 14px 0 -1px var(--color-accent-soft), 14px 14px 0 0 rgb(51 134 15 / 0.18), var(--shadow-4);
  color: var(--color-text);
  animation: rise-in 800ms var(--ease-out) 150ms both;
}
.ledger__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--space-3); padding-bottom: var(--space-4); border-bottom: 1px dashed var(--color-line-strong); }
.ledger__label { font-size: var(--fs-xs); font-weight: var(--fw-bold); letter-spacing: var(--tracking-caps); text-transform: uppercase; color: var(--color-muted); }
.ledger__month { font-family: var(--font-serif); font-size: 1.25rem; font-weight: 600; color: var(--color-ink); }
.ledger__rows { display: grid; gap: 2px; padding-block: var(--space-3); }
.ledger__row {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: var(--space-3);
  padding: 0.6rem 0.25rem;
  border-bottom: 1px solid var(--color-line);
  font-size: var(--fs-sm);
}
.ledger__check {
  display: grid; place-items: center;
  width: 26px; height: 26px;
  border-radius: 50%;
  border: 1.5px solid var(--color-line-strong);
  color: #fff;
}
.ledger__check svg { width: 15px; height: 15px; stroke-width: 2.6; opacity: 0; }
.ledger__text { color: var(--color-ink); font-weight: var(--fw-medium); }
.ledger__state { font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--color-accent-strong); opacity: 0; }
.ledger__chart { display: flex; align-items: flex-end; gap: 8px; height: 84px; margin-top: var(--space-4); padding: 0 0.25rem; border-bottom: 1px solid var(--color-line-strong); }
.ledger__bar { flex: 1; height: var(--h); border-radius: 4px 4px 0 0; background: linear-gradient(180deg, #4fa52a, var(--color-accent)); transform-origin: bottom; }
.ledger__bar:last-child { background: linear-gradient(180deg, #8fd65c, #4fa52a); }
.ledger__foot { display: flex; align-items: center; gap: var(--space-2); margin-top: var(--space-4); font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-ink); }
.ledger__dot { width: 9px; height: 9px; border-radius: 50%; background: #3fa516; box-shadow: 0 0 0 4px rgb(63 165 22 / 0.18); }
@media (prefers-reduced-motion: no-preference) {
  /* Rivit kuittautuvat yksi kerrallaan, pylväät kasvavat – kerran, ei toistoa */
  .ledger__check { animation: ledger-check 420ms var(--ease-out) both; animation-delay: calc(900ms + var(--i) * 450ms); }
  .ledger__check svg { animation: ledger-fade 300ms var(--ease-out) both; animation-delay: calc(1000ms + var(--i) * 450ms); }
  .ledger__state { animation: ledger-fade 400ms var(--ease-out) both; animation-delay: calc(1050ms + var(--i) * 450ms); }
  .ledger__bar { animation: ledger-bar 700ms var(--ease-out) both; animation-delay: calc(500ms + var(--i) * 70ms); }
  .ledger__dot { animation: ledger-pulse 2.4s ease-in-out 3s infinite; }
}
@media (prefers-reduced-motion: reduce) {
  .ledger { animation: none; }
  .ledger__check { background: var(--color-accent); border-color: var(--color-accent); }
  .ledger__check svg, .ledger__state { opacity: 1; }
}
@keyframes ledger-check { to { background: var(--color-accent); border-color: var(--color-accent); } }
@keyframes ledger-fade { from { opacity: 0; transform: translateX(-4px); } to { opacity: 1; transform: none; } }
@keyframes ledger-bar { from { transform: scaleY(0.05); } }
@keyframes ledger-pulse { 50% { box-shadow: 0 0 0 8px rgb(63 165 22 / 0); } }
@media (max-width: 1023px) { .hero--split .hero__visual { order: 2; } .ledger { max-width: 400px; margin-inline: 0 auto; } }
@media (max-width: 479px) { .ledger { box-shadow: 8px 8px 0 -1px var(--color-accent-soft), 8px 8px 0 0 rgb(51 134 15 / 0.18), var(--shadow-3); } }

/* ---------- Kortit ---------- */
.card { background: #fff; box-shadow: 0 1px 2px rgb(16 41 28 / 0.04), 0 10px 30px -22px rgb(16 41 28 / 0.35); }
.card--icon .card__body { gap: var(--space-3); padding: clamp(1.4rem, 1.1rem + 1vw, 2rem); }
.card__icon {
  display: grid; place-items: center;
  width: 52px; height: 52px;
  margin-bottom: var(--space-2);
  border-radius: 12px;
  background: var(--color-accent-soft);
  color: var(--color-accent-strong);
  transition: background var(--dur-card) var(--ease-out), color var(--dur-card) var(--ease-out);
}
.card__icon svg { width: 26px; height: 26px; }
.card--icon { border-top: 3px solid transparent; }
@media (hover: hover) and (pointer: fine) {
  .card--icon:hover { border-top-color: var(--color-accent); }
}
/* Palvelukortit: viimeinen vajaa rivi venyy koko leveydelle (3 + 3 + 2 → kaksi alinta yhtä leveänä kuin kolme ylintä) */
@container grid (min-width: 900px) {
  .auto-grid--3 > :nth-last-child(2):nth-child(3n + 1),
  .auto-grid--3 > :nth-last-child(2):nth-child(3n + 1) + * { grid-column: span 3; }
  .auto-grid--3 > :last-child:nth-child(3n + 1) { grid-column: 1 / -1; }
}
@container grid (560px <= width < 900px) {
  .auto-grid--3 > :last-child:nth-child(2n + 1) { grid-column: 1 / -1; }
}

/* Shakkiruutu: vaaleat ja tummanvihreät kortit vuorotellen (3 saraketta: joka toinen kortti,
   2 saraketta: rivit vaihtavat järjestystä, 1 sarake: joka toinen) */
.card--icon { --c-bg: #fff; --c-ink: var(--color-ink); --c-text: var(--color-text); --c-cta: var(--color-accent); --c-icon-bg: var(--color-accent-soft); --c-icon: var(--color-accent-strong); }
.card--icon { background: var(--c-bg); }
.card--icon .card__title, .card--icon .card__link { color: var(--c-ink); }
.card--icon .card__text { color: var(--c-text); }
.card--icon .card__cta { color: var(--c-cta); }
.card--icon .card__icon { background: var(--c-icon-bg); color: var(--c-icon); }
.auto-grid > li:nth-child(2n) .card--icon { --c-bg: linear-gradient(160deg, #17402a 0%, var(--color-dark) 100%); --c-ink: #fff; --c-text: rgb(255 255 255 / 0.8); --c-cta: var(--color-accent-on-dark); --c-icon-bg: rgb(255 255 255 / 0.1); --c-icon: var(--color-accent-on-dark); border-color: transparent; }
@container grid (560px <= width < 900px) {
  /* 2 saraketta: rivi 1 vaalea–tumma, rivi 2 tumma–vaalea */
  .auto-grid > li:nth-child(4n + 3) .card--icon { --c-bg: linear-gradient(160deg, #17402a 0%, var(--color-dark) 100%); --c-ink: #fff; --c-text: rgb(255 255 255 / 0.8); --c-cta: var(--color-accent-on-dark); --c-icon-bg: rgb(255 255 255 / 0.1); --c-icon: var(--color-accent-on-dark); border-color: transparent; }
  .auto-grid > li:nth-child(4n + 4) .card--icon { --c-bg: #fff; --c-ink: var(--color-ink); --c-text: var(--color-text); --c-cta: var(--color-accent); --c-icon-bg: var(--color-accent-soft); --c-icon: var(--color-accent-strong); border-color: var(--color-line); }
}
@media (hover: hover) and (pointer: fine) {
  .card--icon:hover .card__icon { background: var(--color-accent); color: #fff; }
}

/* ---------- Tummat pinnat: syvä vihreä ---------- */
.section--dark, .contact-panel__info, .prefooter__inner, .site-footer {
  background-color: var(--color-dark);
}
.site-footer { background: linear-gradient(180deg, #10291c 0%, #0b1f15 100%); }

/* ---------- Etäpalvelu koko Suomeen ---------- */
.remote { background: linear-gradient(180deg, var(--color-bg) 0%, var(--color-surface) 100%); overflow: hidden; }
.remote__grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
@media (min-width: 960px) { .remote__grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } }
.remote__text { display: grid; gap: var(--space-6); }
.remote__list { display: grid; gap: var(--space-4); }
.remote__item { display: grid; grid-template-columns: auto 1fr; gap: var(--space-4); align-items: start; }
.remote__item strong { display: block; font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; margin-bottom: 2px; }
.remote__item span span { color: var(--color-text); }
.remote__icon { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 12px; background: #fff; border: 1px solid var(--color-line); color: var(--color-accent-strong); box-shadow: var(--shadow-1); }
.remote__icon svg { width: 22px; height: 22px; }

.fi-map { position: relative; margin: 0; max-width: 520px; justify-self: center; width: 100%; }
.fi-map__svg { display: block; width: 100%; height: auto; overflow: visible; }
.fi-land { fill: #fff; stroke: rgb(51 134 15 / 0.45); stroke-width: 1.2; stroke-linejoin: round; filter: drop-shadow(0 18px 30px rgb(16 41 28 / 0.12)); }
.fi-dots { fill: rgb(51 134 15 / 0.16); }
.fi-arc { fill: none; stroke: var(--color-accent); stroke-width: 1.4; stroke-linecap: round; stroke-dasharray: 1; stroke-dashoffset: 1; opacity: 0.75; }
.fi-city__dot { fill: var(--color-accent); opacity: 0.35; }
.fi-city__ring { fill: none; stroke: var(--color-accent); stroke-width: 1.2; opacity: 0; transform-box: fill-box; transform-origin: center; }
.fi-city__label { font: 600 11px var(--font-sans); fill: var(--color-ink); opacity: 0.5; letter-spacing: 0.02em; }
.fi-office__dot { fill: var(--color-accent); stroke: #fff; stroke-width: 3; }
.fi-office__pulse { fill: var(--color-accent); opacity: 0; transform-box: fill-box; transform-origin: center; }
.fi-office__label { font: 700 12px var(--font-sans); fill: var(--color-accent-strong); letter-spacing: 0.04em; text-transform: uppercase; }
.fi-doc rect { fill: #fff; stroke: var(--color-accent-strong); stroke-width: 1.2; }
.fi-doc path { stroke: var(--color-accent); stroke-width: 1.1; stroke-linecap: round; }
.fi-doc--in rect { fill: #e8f3e0; }
.fi-docs { opacity: 0; transition: opacity 600ms var(--ease-out) 1.2s; }

/* Ilmoituskortit kartan päällä */
.fi-toasts { position: absolute; right: 0; bottom: 8%; width: min(250px, 58%); display: grid; }
.fi-toast {
  grid-area: 1 / 1;
  display: flex; align-items: center; gap: var(--space-3);
  padding: 0.7rem 0.9rem;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 12px;
  box-shadow: var(--shadow-3);
  opacity: 0;
}
.fi-toast__icon { display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--color-accent-soft); color: var(--color-accent-strong); }
.fi-toast__icon svg { width: 16px; height: 16px; }
.fi-toast__text { display: grid; line-height: 1.25; font-size: var(--fs-sm); }
.fi-toast__text strong { font-size: var(--fs-sm); }
.fi-toast__text span { font-size: var(--fs-xs); color: var(--color-muted); }

@media (prefers-reduced-motion: no-preference) {
  .fi-map.is-revealed .fi-arc { animation: fi-draw 1.1s var(--ease-out) both; animation-delay: calc(0.4s + var(--i) * 0.28s); }
  .fi-map.is-revealed .fi-city__dot { animation: fi-light 500ms var(--ease-out) both; animation-delay: calc(1.2s + var(--i) * 0.28s); }
  .fi-map.is-revealed .fi-city__ring { animation: fi-ring 1.6s var(--ease-out) both; animation-delay: calc(1.2s + var(--i) * 0.28s); }
  .fi-map.is-revealed .fi-city__label { animation: fi-label 500ms var(--ease-out) both; animation-delay: calc(1.3s + var(--i) * 0.28s); }
  .fi-map.is-revealed .fi-docs { opacity: 1; }
  .fi-office__pulse { animation: fi-pulse 2.8s ease-out infinite; }
  .fi-office__pulse--2 { animation-delay: 1.4s; }
  .fi-map.is-revealed .fi-toast { animation: fi-toast 12s var(--ease-out) infinite; animation-delay: calc(2.5s + var(--t) * 3s); }
}
@media (prefers-reduced-motion: reduce) {
  .fi-arc { stroke-dashoffset: 0; }
  .fi-city__dot { opacity: 1; }
  .fi-city__label { opacity: 1; }
  .fi-docs { display: none; }
  .fi-toast:first-child { opacity: 1; }
}
.no-js .fi-arc { stroke-dashoffset: 0; }
.no-js .fi-city__dot, .no-js .fi-city__label { opacity: 1; }
@keyframes fi-draw { from { stroke-dashoffset: 1; } to { stroke-dashoffset: 0; } }
@keyframes fi-light { to { opacity: 1; } }
@keyframes fi-label { to { opacity: 1; } }
@keyframes fi-ring { 0% { opacity: 0.9; transform: scale(0.4); } 100% { opacity: 0; transform: scale(2.2); } }
@keyframes fi-pulse { 0% { opacity: 0.35; transform: scale(0.8); } 100% { opacity: 0; transform: scale(3.4); } }
@keyframes fi-toast {
  0% { opacity: 0; transform: translateY(10px); }
  3%, 22% { opacity: 1; transform: none; }
  25%, 100% { opacity: 0; transform: translateY(-8px); }
}
@media (max-width: 559px) { .fi-toasts { position: static; width: 100%; margin-top: var(--space-4); } .fi-city__label { font-size: 13px; } }

/* ---------- Kuvattomat lohkot: teksti koko leveydelle, ei tyhjää kuvapaikkaa ---------- */
.process__grid--no-media, .feature--no-media, .service-main--no-media { grid-template-columns: minmax(0, 1fr) !important; }
.process__grid--no-media .steps { display: grid; gap: 0 clamp(2rem, 4vw, 4rem); }
@media (min-width: 900px) { .process__grid--no-media .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.service-main--no-media .service-main__text, .feature--no-media .feature__text { max-width: 52rem; }
@media (min-width: 900px) {
  .service-main--no-media .service-main__text { columns: 2; column-gap: clamp(2rem, 4vw, 4rem); max-width: none; }
  .service-main--no-media .service-main__text h2 { column-span: all; margin-bottom: var(--space-5); }
  .service-main--no-media .service-main__text p { break-inside: avoid; }
}

/* ---------- Aikajana (työn vaiheet) – sama kaikilla sivuilla ---------- */
.timeline-sec { background: linear-gradient(180deg, var(--color-surface) 0%, var(--color-bg) 100%); border-block: 1px solid var(--color-line); }
.timeline {
  --dot: 56px;
  position: relative;
  display: grid;
  gap: var(--space-6);
  margin-top: var(--space-stack);
  counter-reset: none;
}
/* Pohjaviiva ja täyttyvä viiva */
.timeline::before, .timeline::after {
  content: "";
  position: absolute;
  left: calc(var(--dot) / 2 - 1px);
  top: calc(var(--dot) / 2);
  bottom: calc(var(--dot) / 2);
  width: 2px;
  background: var(--color-line-strong);
}
.timeline::after { background: var(--color-accent); transform-origin: top; transform: scaleY(0); transition: transform 1.6s var(--ease-out) 0.2s; }
.timeline.is-revealed::after, .no-js .timeline::after { transform: none; }
.timeline__step { position: relative; display: grid; grid-template-columns: var(--dot) 1fr; column-gap: var(--space-5); align-items: center; }
.timeline__num {
  position: relative; z-index: 1;
  display: grid; place-items: center;
  width: var(--dot); height: var(--dot);
  border-radius: 50%;
  background: #fff;
  border: 2px solid var(--color-line-strong);
  font-family: var(--font-serif);
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--color-muted);
  box-shadow: 0 0 0 6px var(--color-bg);
  transition: background 400ms var(--ease-out), border-color 400ms var(--ease-out), color 400ms var(--ease-out), transform 400ms var(--ease-out);
  transition-delay: calc(0.3s + var(--i) * 0.3s);
}
.timeline.is-revealed .timeline__num, .no-js .timeline__num { background: var(--color-accent); border-color: var(--color-accent); color: #fff; }
.timeline__title { grid-column: 2; font-family: var(--font-serif); font-size: clamp(1.1rem, 1rem + 0.4vw, 1.3rem); font-weight: 600; color: var(--color-ink); line-height: 1.3; }
.timeline__text { grid-column: 2; margin-top: var(--space-1); font-size: var(--fs-sm); color: var(--color-text); max-width: 30ch; }
@media (min-width: 900px) {
  .timeline { grid-template-columns: repeat(var(--n), minmax(0, 1fr)); gap: var(--space-5); }
  .timeline::before, .timeline::after {
    left: calc(100% / var(--n) / 2); right: calc(100% / var(--n) / 2);
    top: calc(var(--dot) / 2 - 1px); bottom: auto;
    width: auto; height: 2px;
  }
  .timeline::after { transform-origin: left; transform: scaleX(0); }
  .timeline.is-revealed::after { transform: none; }
  .timeline__step { grid-template-columns: 1fr; justify-items: center; text-align: center; align-content: start; row-gap: var(--space-4); }
  .timeline__title, .timeline__text { grid-column: 1; }
  .timeline__text { margin-top: 0; }
}
@media (hover: hover) and (pointer: fine) { .timeline__step:hover .timeline__num { transform: scale(1.08); } }
@media (prefers-reduced-motion: reduce) {
  .timeline::after { transform: none !important; transition: none; }
  .timeline__num { background: var(--color-accent); border-color: var(--color-accent); color: #fff; transition: none; }
}

/* ---------- «Mitä palveluun voi sisältyä» – sama ulkoasu kaikilla palvelusivuilla ----------
   Jokainen ryhmä on yksi yhtä korkea kortti: numeroitu otsikko ja tarkistuslista viivoin erotettuna. */
.work-groups { align-items: stretch !important; }
.work-group {
  display: flex; flex-direction: column;
  background: #fff;
  border: 1px solid var(--color-line);
  border-top: 3px solid var(--color-accent);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgb(16 41 28 / 0.04), 0 10px 30px -24px rgb(16 41 28 / 0.35);
  overflow: hidden;
}
.work-group__title {
  display: flex; align-items: center; gap: var(--space-3);
  padding: var(--space-4) var(--space-5);
  background: var(--color-surface);
  border-bottom: 1px solid var(--color-line);
  font-family: var(--font-serif);
  font-size: 1.15rem;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  color: var(--color-ink);
}
.work-group__num { font-family: var(--font-sans); font-size: var(--fs-xs); font-weight: var(--fw-bold); color: var(--color-accent); letter-spacing: 0.08em; }
.work-group .work-list { gap: 0; flex: 1; padding: var(--space-2) var(--space-5) var(--space-4); }
.work-group .work-item {
  padding: var(--space-3) 0;
  background: none;
  border: 0;
  border-bottom: 1px dashed var(--color-line);
  border-radius: 0;
  box-shadow: none;
}
.work-group .work-item:last-child { border-bottom: 0; }
.work-group .work-item svg { color: #fff; background: var(--color-accent); border-radius: 50%; padding: 3px; width: 20px; height: 20px; stroke-width: 2.6; margin-top: 2px; }
/* Keskimmäinen ryhmä tummana – sama rytmi kuin palvelukorteissa */
@media (min-width: 900px) {
  .work-group:nth-child(2) { background: linear-gradient(160deg, #17402a 0%, var(--color-dark) 100%); border-color: transparent; border-top-color: var(--color-accent-on-dark); }
  .work-group:nth-child(2) .work-group__title { background: rgb(255 255 255 / 0.06); border-bottom-color: rgb(255 255 255 / 0.12); color: #fff; }
  .work-group:nth-child(2) .work-group__num { color: var(--color-accent-on-dark); }
  .work-group:nth-child(2) .work-item { color: rgb(255 255 255 / 0.88); border-bottom-color: rgb(255 255 255 / 0.14); }
  .work-group:nth-child(2) .work-item svg { background: var(--color-accent-on-dark); color: var(--color-dark); }
}

/* ---------- Pikapainikkeet (ylös, WhatsApp, soita) ---------- */
/* WhatsApp tunnistetaan heti omasta vihreästään */
.float-btn--wa { background: var(--color-whatsapp); color: #fff; }
@media (hover: hover) and (pointer: fine) { .float-btn--wa:hover { background: #18773f; } }
/* Puhelimella painikkeet eivät saa peittää lomakkeita: kun lomake on näkyvissä, ne väistyvät */
@media (max-width: 767px) {
  body:has(.varaus-hero) .float-actions,
  body:has(:is(input, textarea, select):focus) .float-actions { opacity: 0; visibility: hidden; transform: translateY(12px); }
  .float-actions { transition: opacity var(--dur-hover) var(--ease-out), visibility var(--dur-hover), transform var(--dur-hover) var(--ease-out); }
}

/* =====================================================================
   Manuellan oma rakenne (erottaa sivuston muista saman pohjan sivustoista)
   Vihreän sävyt: minttu, salvia, smaragdi ja metsä.
   ===================================================================== */
:root {
  --mint: #eef6e8;
  --mint-strong: #dcecd0;
  --sage: #e7ece0;
  --emerald: #1f6b3a;
  --forest: #10291c;
}

/* ---------- Yläpalkki: aukiolo, puhelin ja sähköposti ---------- */
.topbar { display: none; }
@media (min-width: 1024px) {
  :root { --header-h: 124px; }
  .site-header { display: flex; flex-direction: column; }
  .topbar {
    display: block; position: relative; z-index: 1;
    height: 36px; flex: none;
    background: var(--forest); color: rgb(255 255 255 / 0.82);
    font-size: 0.8125rem;
  }
  .topbar__inner { display: flex; align-items: center; gap: var(--space-6); height: 100%; }
  .topbar__item { display: inline-flex; align-items: center; gap: 0.45rem; color: inherit; text-decoration: none; white-space: nowrap; }
  .topbar__item svg { width: 15px; height: 15px; color: var(--color-accent-on-dark); }
  a.topbar__item:hover { color: #fff; text-decoration: underline; text-underline-offset: 0.2em; }
  .topbar__item--end { margin-left: auto; }
  .site-header__inner { height: 88px; flex: none; }
  .site-header::before { top: 36px; }
  .site-header::after { display: none; }
}

/* ---------- Pillerit ja pyöreät painikkeet ---------- */
.eyebrow {
  display: inline-flex; align-items: center; gap: 0.5em; width: fit-content;
  padding: 0.38em 0.9em;
  border-radius: 999px;
  background: var(--mint);
  border: 1px solid rgb(51 134 15 / 0.18);
  color: var(--emerald);
  letter-spacing: 0.1em;
}
.eyebrow::before { width: 0.45em; height: 0.45em; margin: 0; border-radius: 50%; background: var(--color-accent); }
.on-dark .eyebrow, .section--dark .eyebrow { background: rgb(255 255 255 / 0.08); border-color: rgb(255 255 255 / 0.14); color: var(--color-accent-on-dark); }
.section-head--center .eyebrow, .statement .eyebrow { margin-inline: auto; }
.btn { border-radius: 999px; }
.menu-toggle { border-radius: 14px; }

/* ---------- Alasivujen hero: keskitetty, palvelulla oma ikoni ---------- */
.hero--page.hero--light .hero__content { margin-inline: auto; max-width: 46rem; text-align: center; justify-items: center; }
.hero--page.hero--light .breadcrumbs { justify-content: center; }
.hero--page.hero--light .hero__note { border-left: 0; padding-left: 0; }
.hero--page.hero--light .actions { justify-content: center; }
.hero--page.hero--light.hero--plain .hero__bg::before,
.hero--page.hero--light.hero--plain .hero__bg::after { display: none; }
/* Kaksi pehmeää vihreää valoa reunoilla korvaavat ison taustamerkin */
.hero--page.hero--light.hero--plain .hero__bg {
  background:
    radial-gradient(40% 70% at 0% 100%, rgb(51 134 15 / 0.10) 0%, transparent 70%),
    radial-gradient(40% 80% at 100% 0%, rgb(143 214 92 / 0.18) 0%, transparent 70%),
    repeating-linear-gradient(180deg, transparent 0 31px, rgb(16 41 28 / 0.05) 31px 32px),
    linear-gradient(180deg, #fbfaf6 0%, var(--mint) 100%);
}
.hero__icon {
  display: grid; place-items: center;
  width: 72px; height: 72px;
  border-radius: 22px;
  background: linear-gradient(150deg, #2e7a0d, var(--emerald));
  color: #fff;
  box-shadow: 0 14px 30px -14px rgb(31 107 58 / 0.6), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.hero__icon svg { width: 36px; height: 36px; }

/* ---------- Etusivu: keskitetty lausuma + luottamuspillerit ---------- */
.statement { background: var(--color-bg); }
.statement__inner { display: grid; justify-items: center; gap: var(--space-5); text-align: center; max-width: 52rem; }
.statement__title { font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); line-height: 1.12; font-weight: 600; }
.statement__title .accent { position: relative; white-space: nowrap; z-index: 0; }
.statement__title .accent::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0.04em; height: 0.2em; z-index: -1;
  background: var(--mint-strong); border-radius: 4px;
}
.statement__text { font-size: var(--fs-lg); color: var(--color-text); max-width: 44rem; }
.statement__text--small { font-size: var(--fs-base); color: var(--color-muted); }
.trust { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-3); margin-top: var(--space-2); }
.trust li {
  display: inline-flex; align-items: center; gap: 0.5rem;
  padding: 0.55rem 1rem;
  background: #fff; border: 1px solid var(--color-line);
  border-radius: 999px;
  font-size: var(--fs-sm); font-weight: var(--fw-semibold); color: var(--color-ink);
  box-shadow: var(--shadow-1);
}
.trust svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--color-accent); color: #fff; stroke-width: 2.6; }

/* Palvelut-osio salvianvihreällä pohjalla */
.statement + .section { background: linear-gradient(180deg, var(--color-bg) 0%, var(--sage) 100%); padding-top: var(--space-section); }

/* ---------- «Miksi Manuella»: neljä pilaria mintunvihreällä ---------- */
.pillars { background: linear-gradient(180deg, var(--mint) 0%, var(--mint-strong) 100%); border-block: 1px solid rgb(51 134 15 / 0.14); }
.pillars__list { display: grid; gap: var(--grid-gap); margin-top: var(--space-stack); }
@media (min-width: 640px) { .pillars__list { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .pillars__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.pillar {
  position: relative;
  display: grid; align-content: start; gap: var(--space-3);
  padding: clamp(1.4rem, 1.1rem + 1vw, 2rem);
  background: #fff;
  border: 1px solid rgb(51 134 15 / 0.14);
  border-radius: var(--radius-card);
  box-shadow: 0 1px 2px rgb(16 41 28 / 0.04), 0 14px 30px -22px rgb(16 41 28 / 0.4);
  overflow: hidden;
  transition: transform var(--dur-card) var(--ease-out), box-shadow var(--dur-card) var(--ease-out);
}
.pillar::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, var(--color-accent), #8fd65c); }
.pillar:nth-child(even) { background: linear-gradient(160deg, #17402a 0%, var(--forest) 100%); border-color: transparent; }
.pillar:nth-child(even) .pillar__title { color: #fff; }
.pillar:nth-child(even) p { color: rgb(255 255 255 / 0.8); }
.pillar:nth-child(even) .pillar__num { color: var(--color-accent-on-dark); }
.pillar__num { font-family: var(--font-serif); font-size: 2.6rem; font-weight: 600; line-height: 1; color: var(--color-accent); }
.pillar__title { font-family: var(--font-serif); font-size: 1.3rem; font-weight: 600; color: var(--color-ink); }
.pillar p { color: var(--color-text); font-size: var(--fs-sm); }
@media (hover: hover) and (pointer: fine) { .pillar:hover { transform: translateY(var(--lift-card)); box-shadow: var(--shadow-3); } }
.pillars__more { margin-top: var(--space-6); text-align: center; }

/* Etäpalvelu-osio: smaragdinen valo kulmassa */
.remote { background: radial-gradient(60% 70% at 100% 100%, rgb(31 107 58 / 0.10) 0%, transparent 70%), linear-gradient(180deg, var(--color-bg) 0%, var(--sage) 100%); }

/* ---------- Yhteydenotto: mintunvihreä pohja, lomake valkoisena korttina ---------- */
.contact-panel {
  background: linear-gradient(150deg, var(--mint) 0%, var(--mint-strong) 100%);
  border: 1px solid rgb(51 134 15 / 0.16);
  border-radius: var(--radius-xl);
  padding: clamp(0.75rem, 0.5rem + 1vw, 1.25rem);
  box-shadow: 0 20px 50px -34px rgb(16 41 28 / 0.45);
}
.contact-panel__info { background: none !important; color: var(--color-text); box-shadow: none !important; }
.contact-panel__info::before, .contact-panel__info::after { display: none !important; }
.contact-panel__title { color: var(--color-ink); }
.contact-panel__title .accent { color: var(--color-accent); }
.contact-panel__lead { color: var(--color-text); }
.contact-panel__info .eyebrow { background: #fff; border-color: rgb(51 134 15 / 0.18); color: var(--emerald); }
.contact-panel__info .site-footer__title { color: var(--emerald); }
.contact-panel .mini-steps li { border-color: rgb(51 134 15 / 0.18); }
.contact-panel .mini-steps__num { color: #fff; background: var(--color-accent); border-radius: 50%; width: 28px; height: 28px; display: inline-grid; place-items: center; font-size: 0.75rem; }
.contact-panel .mini-steps__text strong { color: var(--color-ink); }
.contact-panel .mini-steps__text span { color: var(--color-text); }
.contact-panel__mail { color: var(--color-text); border-color: rgb(51 134 15 / 0.18) !important; }
.contact-panel__mail a { color: var(--emerald); }
.contact-panel__form { background: #fff; border-radius: calc(var(--radius-xl) - 6px); box-shadow: var(--shadow-3); }

/* ---------- Ajanvarauskutsu ennen alatunnistetta ---------- */
.prefooter__inner {
  display: grid; align-items: center; gap: var(--space-5);
  background: radial-gradient(70% 120% at 100% 0%, rgb(143 214 92 / 0.25) 0%, transparent 60%), linear-gradient(140deg, var(--mint) 0%, var(--mint-strong) 100%);
  border: 1px solid rgb(51 134 15 / 0.2);
  box-shadow: 0 24px 50px -32px rgb(16 41 28 / 0.5);
  color: var(--color-text);
}
@media (min-width: 900px) { .prefooter__inner { grid-template-columns: auto minmax(0, 1fr) auto; gap: var(--space-6); } }
.prefooter__title { color: var(--color-ink); max-width: none; }
.prefooter__title .accent { color: var(--color-accent); }
.prefooter__lead { margin-top: var(--space-2); color: var(--color-text); }
.prefooter__actions { display: flex; flex-wrap: wrap; gap: var(--space-3); }
.prefooter__cal {
  display: grid; grid-template-rows: auto 1fr; justify-items: center;
  width: 84px; height: 92px;
  background: #fff; border-radius: 16px; overflow: hidden;
  box-shadow: var(--shadow-2);
  border: 1px solid var(--color-line);
}
.prefooter__cal span { width: 100%; padding: 4px 0; text-align: center; background: var(--color-accent); color: #fff; font-size: 0.75rem; font-weight: var(--fw-bold); text-transform: uppercase; letter-spacing: 0.08em; }
.prefooter__cal b { align-self: center; font-family: var(--font-serif); font-size: 2.3rem; line-height: 1; color: var(--color-ink); }
@media (max-width: 899px) { .prefooter__cal { width: 64px; height: 72px; } .prefooter__cal b { font-size: 1.8rem; } }

/* ---------- Alatunniste: iso tunnuslause ja varauslinkki ---------- */
.site-footer__hero {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: var(--space-5);
  padding-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  margin-bottom: clamp(1.75rem, 1.2rem + 2vw, 3rem);
  border-bottom: 1px solid rgb(255 255 255 / 0.12);
}
.site-footer__slogan { font-family: var(--font-serif); font-size: clamp(1.7rem, 1.2rem + 2.2vw, 2.8rem); font-weight: 600; line-height: 1.1; color: #fff; max-width: 20ch; }
.site-footer__slogan .accent { color: var(--color-accent-on-dark); }
.site-footer__book {
  display: inline-flex; align-items: center; gap: 0.6rem;
  padding: 0.9rem 1.4rem;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.08);
  border: 1px solid rgb(255 255 255 / 0.2);
  color: #fff !important; font-weight: var(--fw-semibold);
  transition: background var(--dur-hover) var(--ease-out), transform var(--dur-hover) var(--ease-out);
}
.site-footer__book svg { width: 18px; height: 18px; color: var(--color-accent-on-dark); }
@media (hover: hover) and (pointer: fine) { .site-footer__book:hover { background: var(--color-accent); transform: translateY(var(--lift-button)); } .site-footer__book:hover svg { color: #fff; } }
.site-footer { background: radial-gradient(50% 60% at 100% 0%, rgb(46 122 13 / 0.25) 0%, transparent 70%), linear-gradient(180deg, #10291c 0%, #0b1f15 100%); }

/* Aikajana salvianvihreällä */
.timeline-sec { background: linear-gradient(180deg, var(--sage) 0%, var(--color-bg) 100%); }

/* Kortin otsikko ei katkea puhelimella */
.ledger__head { flex-wrap: wrap; }
.ledger__month { white-space: nowrap; }

/* =====================================================================
   Alasivujen ja etusivun hero v2: teksti vasemmalla, oikealla animoitu
   asiakirjapino. Tausta: hieno pisteruudukko + hitaasti liikkuvat minttuvalot.
   ===================================================================== */
.hero--light.hero--plain .hero__bg,
.hero--page.hero--light.hero--plain .hero__bg {
  background:
    radial-gradient(circle at 1px 1px, rgb(16 41 28 / 0.11) 1px, transparent 1.4px) 0 0 / 22px 22px,
    linear-gradient(180deg, #fbfaf6 0%, #f3f7ee 100%);
  -webkit-mask: none; mask: none;
  overflow: hidden;
}
/* Pisteruudukko häivytetään reunoilta, valot liikkuvat hitaasti */
.hero--light.hero--plain .hero__bg::before,
.hero--light.hero--plain .hero__bg::after,
.hero--page.hero--light.hero--plain .hero__bg::before,
.hero--page.hero--light.hero--plain .hero__bg::after {
  display: block;
  content: "";
  position: absolute;
  inset: auto;
  width: 46vw; height: 46vw; max-width: 720px; max-height: 720px;
  aspect-ratio: auto;
  border-radius: 50%;
  -webkit-mask: none; mask: none;
  clip-path: none;
  filter: blur(60px);
  opacity: 1;
  pointer-events: none;
}
.hero--light.hero--plain .hero__bg::before,
.hero--page.hero--light.hero--plain .hero__bg::before { right: -10vw; top: -18vw; background: rgb(143 214 92 / 0.30); }
.hero--light.hero--plain .hero__bg::after,
.hero--page.hero--light.hero--plain .hero__bg::after { left: -14vw; bottom: -26vw; background: rgb(31 107 58 / 0.14); }
@media (prefers-reduced-motion: no-preference) {
  .hero--light.hero--plain .hero__bg::before { animation: hero-drift 18s ease-in-out infinite alternate; }
  .hero--light.hero--plain .hero__bg::after { animation: hero-drift 22s ease-in-out -6s infinite alternate-reverse; }
}
@keyframes hero-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(-6vw, 4vw) scale(1.12); } }
.hero--split.hero--plain .hero__bg::before,
.hero--split.hero--plain .hero__bg::after { display: block; }
/* Hienovarainen alareuna */
.hero--light { border-bottom: 1px solid var(--color-line); }

/* Alasivut: takaisin vasemmalle tasattuun kaksipalstaiseen asetteluun */
.hero--page.hero--light .hero__content { margin-inline: 0; max-width: none; text-align: left; justify-items: start; }
.hero--page.hero--light .breadcrumbs, .hero--page.hero--light .actions { justify-content: flex-start; }
.hero--page.hero--split { min-height: clamp(440px, 30vw + 260px, 640px); }
@media (min-width: 1024px) {
  .hero--page.hero--split .container { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); }
}
.hero--page .hero__lead { max-width: 36rem; }
.hero--page .h1 { letter-spacing: -0.02em; }
/* Otsikon alle lyhyt vihreä viiva, joka piirtyy sisään */
.hero--light .hero__content .h1::after {
  content: ""; display: block; width: 64px; height: 3px; margin-top: 0.35em;
  border-radius: 3px; background: linear-gradient(90deg, var(--color-accent), #8fd65c);
  transform-origin: left;
}
@media (prefers-reduced-motion: no-preference) { .hero--light .hero__content .h1::after { animation: hero-line 900ms var(--ease-out) 400ms both; } }
@keyframes hero-line { from { transform: scaleX(0); } }

/* ---------- Asiakirjapino ---------- */
.docs { position: relative; width: min(100%, 400px); margin-inline: auto; aspect-ratio: 1 / 0.92; }
.docs__blob {
  position: absolute; inset: 8% 4% 2% 10%;
  border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%;
  background: linear-gradient(140deg, var(--mint-strong), rgb(143 214 92 / 0.35));
  filter: blur(2px);
}
.docs__sheet {
  position: absolute;
  inset: 10% 12% 12% 8%;
  background: #fff;
  border: 1px solid var(--color-line);
  border-radius: 16px;
  box-shadow: 0 1px 2px rgb(16 41 28 / 0.05), 0 22px 44px -26px rgb(16 41 28 / 0.45);
}
.docs__sheet--3 { transform: rotate(-7deg) translate(-4%, 4%); background: #f4f8ef; }
.docs__sheet--2 { transform: rotate(4deg) translate(5%, 2%); background: #fafcf7; }
.docs__sheet--1 {
  display: grid; align-content: start; gap: 14px;
  padding: clamp(18px, 4%, 26px);
  box-shadow: 0 2px 4px rgb(16 41 28 / 0.05), 0 30px 60px -28px rgb(16 41 28 / 0.55);
}
.docs__head { display: flex; align-items: center; gap: 12px; padding-bottom: 14px; border-bottom: 1px dashed var(--color-line-strong); }
.docs__icon {
  display: grid; place-items: center; flex: none;
  width: 48px; height: 48px; border-radius: 14px;
  background: linear-gradient(150deg, #2e7a0d, var(--emerald));
  color: #fff;
  box-shadow: 0 10px 22px -12px rgb(31 107 58 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.25);
}
.docs__icon svg { width: 24px; height: 24px; }
.docs__meta { display: grid; min-width: 0; }
.docs__kicker { font-size: 0.6875rem; font-weight: var(--fw-bold); letter-spacing: 0.12em; text-transform: uppercase; color: var(--color-muted); }
.docs__title { font-family: var(--font-serif); font-size: 1.15rem; font-weight: 600; color: var(--color-ink); line-height: 1.25; }
.docs__rows { display: grid; gap: 4px; }
.docs__row { display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1px solid var(--color-line); font-size: 0.9rem; color: var(--color-ink); font-weight: var(--fw-medium); }
.docs__tick { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--color-accent); color: #fff; }
.docs__tick svg { width: 13px; height: 13px; stroke-width: 3; }
.docs__label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.docs__lines { display: grid; gap: 8px; margin-top: 4px; }
.docs__lines span { height: 7px; border-radius: 4px; background: var(--sage); transform-origin: left; }
.docs__lines span:nth-child(1) { width: 92%; }
.docs__lines span:nth-child(2) { width: 76%; }
.docs__lines span:nth-child(3) { width: 54%; }
.docs__stamp {
  position: absolute; right: -14px; bottom: 18%;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 8px 14px 8px 10px;
  border-radius: 999px;
  background: var(--forest); color: #fff;
  font-size: 0.8125rem; font-weight: var(--fw-bold); letter-spacing: 0.02em;
  box-shadow: 0 14px 28px -12px rgb(16 41 28 / 0.6);
}
.docs__stamp svg { width: 18px; height: 18px; padding: 3px; border-radius: 50%; background: var(--color-accent-on-dark); color: var(--forest); stroke-width: 3; }

@media (prefers-reduced-motion: no-preference) {
  .docs__sheet--3 { animation: docs-in-3 900ms var(--ease-out) 100ms both; }
  .docs__sheet--2 { animation: docs-in-2 900ms var(--ease-out) 220ms both; }
  .docs__sheet--1 { animation: docs-in-1 900ms var(--ease-out) 340ms both, docs-float 7s ease-in-out 1.6s infinite; }
  .docs__row { animation: docs-row 500ms var(--ease-out) both; animation-delay: calc(900ms + var(--i) * 260ms); }
  .docs__tick { animation: docs-tick 420ms cubic-bezier(.2,1.6,.4,1) both; animation-delay: calc(1050ms + var(--i) * 260ms); }
  .docs__lines span { animation: docs-write 700ms var(--ease-out) both; }
  .docs__lines span:nth-child(1) { animation-delay: 1.8s; }
  .docs__lines span:nth-child(2) { animation-delay: 2.0s; }
  .docs__lines span:nth-child(3) { animation-delay: 2.2s; }
  .docs__stamp { animation: docs-stamp 600ms cubic-bezier(.2,1.5,.4,1) 2.6s both; }
  .docs__blob { animation: docs-blob 12s ease-in-out infinite alternate; }
}
@keyframes docs-in-3 { from { opacity: 0; transform: rotate(-12deg) translate(-12%, 10%); } }
@keyframes docs-in-2 { from { opacity: 0; transform: rotate(10deg) translate(14%, 8%); } }
@keyframes docs-in-1 { from { opacity: 0; transform: translateY(10%) scale(0.96); } }
@keyframes docs-float { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-8px) rotate(-0.6deg); } }
@keyframes docs-row { from { opacity: 0; transform: translateX(-10px); } }
@keyframes docs-tick { from { transform: scale(0); } }
@keyframes docs-write { from { transform: scaleX(0); } }
@keyframes docs-stamp { from { opacity: 0; transform: scale(1.6) rotate(-8deg); } }
@keyframes docs-blob { from { border-radius: 46% 54% 50% 50% / 55% 45% 55% 45%; transform: rotate(0deg); } to { border-radius: 58% 42% 44% 56% / 46% 58% 42% 54%; transform: rotate(6deg); } }

@media (max-width: 1023px) {
  .hero--page.hero--split .hero__visual { order: 2; }
  .docs { width: min(100%, 340px); margin-inline: 0 auto; }
}
@media (max-width: 479px) { .docs__stamp { right: 0; } }

/* Leima pinon alareunaan, ei rivien päälle; pitkät rivit rivittyvät */
.docs__stamp { bottom: -16px; right: 18px; }
.docs__label { white-space: normal; overflow: visible; }
.docs { aspect-ratio: auto; padding: 8% 10% 12% 6%; }
.docs__sheet--1 { position: relative; inset: auto; }
@media (max-width: 1023px) { .docs { width: min(100%, 360px); } }

/* ---------- Viimeistely (tarkistuskierros) ---------- */
/* Pilleri ei katkea kahdelle riville */
.eyebrow { white-space: nowrap; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
/* Tummassa CTA-laatikossa pilleri tummana, teksti luettavaksi */
.service-cta .eyebrow { background: rgb(255 255 255 / 0.1); border-color: rgb(255 255 255 / 0.18); color: var(--color-accent-on-dark); }
/* Puhelimella alatunnisteessa näkyvät myös palvelut */
@media (max-width: 1023px) {
  .site-footer__list--services { display: grid !important; }
  .site-footer__all { display: none; }
}

/* ---------- Kompakti alatunniste ---------- */
.site-footer { padding-block: clamp(1.75rem, 1.2rem + 2vw, 2.75rem) calc(var(--space-4) + env(safe-area-inset-bottom)); font-size: 0.875rem; }
.site-footer__hero { padding-bottom: var(--space-5); margin-bottom: var(--space-5); }
.site-footer__slogan { font-size: clamp(1.3rem, 1.05rem + 1.1vw, 1.9rem); max-width: none; }
.site-footer__book { padding: 0.6rem 1.1rem; font-size: 0.875rem; }
.site-footer__grid { gap: var(--space-5) var(--space-6); }
.site-footer__title { margin-bottom: var(--space-1); }
.site-footer__brand .logo .brand-logo { height: 26px; }
.site-footer__tagline, .site-footer__area { font-size: 0.8125rem; }
/* Yhteystiedot tiiviinä rivinä ilman isoja ikonilaatikoita */
.footer-list__row { min-height: 0 !important; padding-block: 0.3rem !important; gap: 0.6rem !important; border: 0 !important; }
.footer-list__icon { width: 28px !important; height: 28px !important; }
.footer-list__icon svg { width: 15px; height: 15px; }
.footer-list__label { display: none; }
.footer-list__value { font-size: 0.875rem; font-weight: var(--fw-semibold); }
.site-footer__list a { min-height: 32px; }
.site-footer__bottom { padding-top: var(--space-4); margin-top: var(--space-5); font-size: 0.75rem; }
@media (max-width: 1023px) {
  .site-footer__grid { grid-template-columns: minmax(0, 1fr) !important; }
  .site-footer__brand p { display: none; }
  /* Sivut yhdelle riville, palvelut kahteen palstaan */
  .site-footer__menu .site-footer__list { display: flex !important; flex-wrap: wrap; gap: 0 1.1rem; }
  .site-footer__menu .site-footer__list a { border: 0 !important; padding: 0 !important; min-height: 34px; }
  .site-footer__menu .site-footer__list a svg { display: none !important; }
  .site-footer__list--services { grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--space-4); }
  .site-footer__list--services a { min-height: 34px; font-size: 0.8125rem; line-height: 1.25; }
  .site-footer__menu, .site-footer__services, .site-footer__bottom { padding-right: 0 !important; }
  .site-footer__bottom { display: flex; flex-wrap: wrap; gap: 0.25rem 1rem; padding-right: 64px !important; }
}
@media (max-width: 1023px) {
  .site-footer__hero { flex-wrap: nowrap; align-items: center; gap: var(--space-3); }
  .site-footer__slogan { font-size: 1.15rem; }
  .site-footer__book { flex: none; padding: 0.55rem 0.9rem; }
  .site-footer__book svg:last-child { display: none; }
  .site-footer__brand { display: none; }
  .footer-list__row { border-bottom: 0 !important; }
  .site-footer__grid { gap: var(--space-4); }
  /* Palvelut juoksevana tekstinä pisteillä erotettuna */
  .site-footer__list--services { display: flex !important; flex-wrap: wrap; gap: 0; }
  .site-footer__list--services li:not(:last-child)::after { content: "·"; margin: 0 0.45rem; color: var(--color-accent-on-dark); }
  .site-footer__list--services a { display: inline; min-height: 0; font-size: 0.8125rem; line-height: 2; }
  .site-footer__menu .site-footer__list a { min-height: 30px; font-size: 0.875rem; }
}

/* ---------- Etusivun lausuma v2: kortti, lainausmerkki ja kolme tasakokoista etua ---------- */
.statement__inner {
  position: relative;
  max-width: 60rem;
  padding: clamp(2rem, 1.2rem + 3vw, 3.5rem) clamp(1.25rem, 0.8rem + 3vw, 3.5rem);
  background: radial-gradient(80% 60% at 50% 0%, rgb(143 214 92 / 0.16) 0%, transparent 70%), #fff;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-xl);
  box-shadow: 0 1px 2px rgb(16 41 28 / 0.04), 0 30px 60px -40px rgb(16 41 28 / 0.45);
  overflow: hidden;
}
.statement__inner::before {
  content: "\201C";
  position: absolute; top: -0.18em; left: 50%; transform: translateX(-50%);
  font-family: var(--font-serif); font-size: 9rem; line-height: 1;
  color: rgb(51 134 15 / 0.08);
  pointer-events: none;
}
.statement__inner::after {
  content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px;
  background: linear-gradient(90deg, transparent, var(--color-accent), #8fd65c, transparent);
}
.statement__text { max-width: 40rem; }
.statement__text--small { padding-top: var(--space-4); border-top: 1px dashed var(--color-line-strong); max-width: 36rem; }
.trust { display: grid; grid-template-columns: minmax(0, 1fr); gap: var(--space-3); width: 100%; margin-top: var(--space-4); }
@media (min-width: 760px) { .trust { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.trust li {
  display: flex; align-items: center; gap: var(--space-3);
  padding: 0.9rem 1rem;
  border-radius: 14px;
  background: var(--mint);
  border: 1px solid rgb(51 134 15 / 0.16);
  box-shadow: none;
  text-align: left;
  font-weight: var(--fw-regular);
}
.trust li > span:last-child { display: grid; line-height: 1.3; }
.trust strong { font-size: 0.9375rem; color: var(--color-ink); }
.trust li > span:last-child > span { font-size: 0.8125rem; color: var(--color-muted); }
.trust__icon {
  display: grid; place-items: center; flex: none;
  width: 40px; height: 40px; border-radius: 12px;
  background: linear-gradient(150deg, #2e7a0d, var(--emerald)); color: #fff;
  box-shadow: 0 8px 18px -10px rgb(31 107 58 / 0.7);
}
.trust .trust__icon svg { width: 20px; height: 20px; padding: 0; background: none; border-radius: 0; stroke-width: 1.8; }
@media (max-width: 759px) { .statement__title { font-size: 1.85rem; } .statement__text { font-size: 1rem; } }

/* Alatunniste ilman palvelulistaa: kolme palstaa leveällä näytöllä */
@media (min-width: 1024px) { .site-footer__grid { grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, 0.8fr) !important; } }
