/* Perus-teema – Flow CMS:n oletusteema. Neutraali, moderni, hiusviivoihin ja tyhjään tilaan nojaava.
   Toteuttaa lohkojen luokkasopimuksen (themes/README.md, packages/shared/src/blocks.ts).
   Sivuston asetukset voivat ylikirjoittaa :root-muuttujat (esim. --accent, --font-heading). */

/* ---------- 1. Muuttujat ---------- */
:root {
  --accent: #2456a6;          /* pääväri: painikkeet, linkit, korostukset */
  --accent-ink: #ffffff;      /* teksti accent-taustan päällä */
  --text: #14161a;
  --muted: #5b6270;
  --bg: #ffffff;
  --surface: #f6f7f9;
  --line: #e3e6eb;
  --radius: 12px;
  --font-body: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-heading: var(--font-body);

  /* johdetut (päivittyvät, kun --accent vaihtuu) */
  --accent-hover: color-mix(in srgb, var(--accent) 86%, #000);
  --accent-soft: color-mix(in srgb, var(--accent) 8%, var(--bg));
  --accent-light: color-mix(in srgb, var(--accent) 45%, #fff);
  --input-border: #8a92a0;    /* lomakekenttien reuna, kontrasti >= 3:1 */
  --danger: #b42318;
  --color-primary: var(--accent); /* lohkojen yhteiset tyylit voivat käyttää tätä */

  --shell: 1160px;
  --prose: 720px;
  --gutter: 20px;
  --section-y: clamp(56px, 8vw, 104px);
  --radius-sm: calc(var(--radius) * .6);
  --shadow: 0 1px 2px rgba(20, 22, 26, .04), 0 8px 24px rgba(20, 22, 26, .06);
  --side: max(var(--gutter), calc((100% - var(--shell)) / 2));
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- 2. Perusta ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font: 400 1.0625rem/1.65 var(--font-body); color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, video { max-width: 100%; height: auto; }
h1, h2, h3, h4 { margin: 0; font-family: var(--font-heading); font-weight: 700; letter-spacing: -.02em; line-height: 1.12; color: var(--text); text-wrap: balance; }
h1 { font-size: clamp(2.25rem, 1.2rem + 4.2vw, 3.875rem); line-height: 1.06; letter-spacing: -.03em; }
h2 { font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.625rem); }
h3 { font-size: 1.25rem; letter-spacing: -.012em; line-height: 1.25; }
p { margin: 0; }
a { color: var(--accent); text-underline-offset: .18em; }
a:hover { color: var(--accent-hover); }
ul, ol { margin: 0; padding: 0; }
main { display: block; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--accent); color: var(--accent-ink); }
.accent { color: var(--accent); }
.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: -60px; z-index: 100; padding: 10px 16px; background: var(--text); color: var(--bg); border-radius: var(--radius-sm); font-weight: 600; text-decoration: none; }
.skip-link:focus { top: 12px; color: var(--bg); }
.border-top { border-top: 1px solid var(--line); }
.icon { width: 20px; height: 20px; flex: none; vertical-align: -4px; }

/* ---------- 3. Rakenne ---------- */
.shell { width: 100%; max-width: calc(var(--shell) + 2 * var(--gutter)); margin-inline: auto; padding-inline: var(--gutter); }
.section, .hero { padding: var(--section-y) var(--side); }
.section.bg-surface { background: var(--surface); }
/* kaksi valkoista osiota peräkkäin: ei tuplatyhjää */
.section:not(.bg-surface) + .section:not(.bg-surface) { padding-top: 0; }
.section__inner { max-width: var(--prose); }

.eyebrow { display: block; margin-bottom: 14px; font-size: .8125rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--accent); line-height: 1.4; }
.label { margin: 0; font-size: .8125rem; font-weight: 600; letter-spacing: .09em; text-transform: uppercase; color: var(--muted); }
.lead { font-size: clamp(1.0625rem, 1rem + .4vw, 1.25rem); line-height: 1.6; color: var(--muted); max-width: 62ch; }
.link-arrow { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; color: var(--accent); text-decoration: none; }
.link-arrow::after { content: "→"; transition: transform .2s ease; }
a.link-arrow:hover::after, .service-card:hover .link-arrow::after, .job-card:hover .link-arrow::after { transform: translateX(4px); }

.section-head { max-width: 760px; margin-bottom: clamp(32px, 4vw, 52px); }
.section-head > .lead { margin-top: 16px; }
.section-head > .link-arrow { margin-top: 20px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }
.section-head--split { display: grid; gap: 20px 64px; max-width: none; align-items: end; }
.section-head--split .stack { display: flex; flex-direction: column; gap: 16px; align-items: flex-start; }
.section-head--split .lead { margin-top: 0; }
@media (min-width: 900px) { .section-head--split { grid-template-columns: 1fr 1fr; } }

/* ---------- 4. Napit ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border: 1px solid transparent; border-radius: var(--radius-sm); font: 600 .9375rem/1.2 var(--font-body); text-decoration: none; text-align: center; cursor: pointer; color: var(--text); background: transparent; transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.btn-lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.btn-block { display: flex; width: 100%; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-ink); }
.btn-secondary { background: var(--text); border-color: var(--text); color: var(--bg); }
.btn-secondary:hover { background: color-mix(in srgb, var(--text) 82%, #fff); color: var(--bg); }
.btn-outline { border-color: var(--text); color: var(--text); }
.btn-outline:hover { background: var(--text); color: var(--bg); }
.btn-ghost { border-color: var(--line); background: var(--bg); color: var(--text); }
.btn-ghost:hover { border-color: var(--text); color: var(--text); }
.btn-ghost-dark { border-color: rgba(255, 255, 255, .4); color: #fff; }
.btn-ghost-dark:hover { border-color: #fff; background: rgba(255, 255, 255, .1); color: #fff; }
.btn-group { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.btn-group--center { justify-content: center; }
@media (max-width: 559px) { .btn-group--stack-mobile { flex-direction: column; align-items: stretch; } }

/* ---------- 5. Header, valikko, footer ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--bg) 90%, transparent); -webkit-backdrop-filter: saturate(1.4) blur(12px); backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid var(--line); }
.site-header__inner { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; min-height: 68px; padding: 0 var(--side); }
.site-logo { margin-right: auto; font-size: 1.1875rem; font-weight: 700; letter-spacing: -.02em; color: var(--text); text-decoration: none; }
.site-logo:hover { color: var(--text); }
.site-nav { display: flex; flex-wrap: wrap; gap: 2px; }
.site-nav a { padding: 8px 14px; border-radius: var(--radius-sm); font-size: .9375rem; font-weight: 500; color: var(--muted); text-decoration: none; transition: color .15s ease, background-color .15s ease; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav-toggle { display: none; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); cursor: pointer; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { display: block; width: 18px; height: 2px; background: currentColor; border-radius: 2px; transition: transform .2s ease, background-color .2s ease; }
.nav-toggle__bars { position: relative; }
.nav-toggle__bars::before, .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
.nav-toggle__bars::before { top: -6px; }
.nav-toggle__bars::after { top: 6px; }
.site-header.is-open .nav-toggle__bars { background: transparent; }
.site-header.is-open .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.site-header.is-open .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }
@media (max-width: 820px) {
  .js .nav-toggle { display: inline-flex; }
  .js .site-nav { display: none; flex-basis: calc(100% + 2 * var(--gutter)); flex-direction: column; gap: 0; margin: 0 calc(var(--gutter) * -1); padding: 4px var(--gutter) 16px; border-top: 1px solid var(--line); background: var(--bg); }
  .js .site-header.is-open .site-nav { display: flex; }
  .js .site-nav a { padding: 14px 0; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 1.0625rem; background: none; }
  .js .site-nav a:last-child { border-bottom: 0; }
  .site-header__inner { padding-block: 0; }
}

.site-footer { border-top: 1px solid var(--line); background: var(--surface); color: var(--muted); font-size: .9375rem; }
.site-footer__inner { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 32px; padding: 32px var(--side); }
.site-footer__brand { font-weight: 700; color: var(--text); letter-spacing: -.01em; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 4px 20px; }
.site-footer__nav a { color: var(--muted); text-decoration: none; }
.site-footer__nav a:hover { color: var(--text); text-decoration: underline; }
.site-footer__copy { flex-basis: 100%; padding-top: 20px; border-top: 1px solid var(--line); font-size: .875rem; }

/* ---------- 6. Hero ---------- */
.hero { position: relative; }
.hero--page { background: var(--surface); border-bottom: 1px solid var(--line); padding-block: clamp(40px, 6vw, 80px); }
.hero--page .hero__inner { max-width: 820px; }
.hero--page h1 { font-size: clamp(2.125rem, 1.1rem + 3.6vw, 3.25rem); }
.hero h1 { margin-bottom: 20px; }
.hero .eyebrow { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hero__actions { margin-top: 32px; }
.hero--home { padding-block: clamp(56px, 9vw, 128px); text-align: center; background: radial-gradient(ellipse 70% 60% at 50% 0%, var(--accent-soft), transparent 70%), var(--bg); border-bottom: 1px solid var(--line); }
.hero--home .hero__inner { max-width: 900px; margin-inline: auto; }
.hero--home h1 { font-size: clamp(2.5rem, 1rem + 6vw, 4.75rem); }
.hero--home .lead { margin-inline: auto; max-width: 640px; }
.hero--home .btn-group { justify-content: center; }
.hero__trust { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin: 36px 0 0; padding: 0; list-style: none; font-size: .9375rem; color: var(--muted); }
.hero__trust .icon { width: 18px; height: 18px; color: var(--accent); margin-right: 4px; }
.breadcrumb { margin-bottom: 28px; font-size: .875rem; }
.breadcrumb ol { display: flex; flex-wrap: wrap; gap: 4px 8px; list-style: none; color: var(--muted); }
.breadcrumb li + li::before { content: "/"; margin-right: 8px; color: var(--line); color: #a3aab6; }
.breadcrumb a { color: var(--muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--text); text-decoration: underline; }
.breadcrumb [aria-current] { color: var(--text); font-weight: 500; }

.pill { display: inline-flex; align-items: center; gap: 8px; margin-bottom: 28px; padding: 5px 14px 5px 6px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: .875rem; color: var(--text); text-decoration: none; box-shadow: var(--shadow); }
.pill:hover { border-color: var(--accent); color: var(--text); }
.badge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 600; letter-spacing: .02em; line-height: 1.4; text-transform: none; white-space: nowrap; }
.badge--soft { background: var(--accent-soft); color: var(--accent); }
.badge--outline { background: transparent; border: 1px solid var(--line); color: var(--muted); }
.badge--dark { background: var(--text); color: var(--bg); }

/* ---------- 7. Ruudukot ja kortit ---------- */
.grid-lines { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 280px), 1fr)); }
@media (min-width: 640px) {
  .grid-lines.cols-2, .grid-lines.cols-3, .grid-lines.cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1000px) {
  .grid-lines.cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid-lines.cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 639px) { .grid-lines.cols-2, .grid-lines.cols-3, .grid-lines.cols-4 { grid-template-columns: minmax(0, 1fr); } }

.service-card, .pricing-card, .testimonial-card, .job-card, .team-card { position: relative; display: flex; flex-direction: column; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); }
.service-card, .job-card { transition: border-color .2s ease, box-shadow .2s ease, transform .2s ease; }
.service-card:hover, .job-card:hover { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); box-shadow: var(--shadow); }
.service-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 20px; }
.service-card__title a, .job-card__title a { color: var(--text); text-decoration: none; }
.service-card__title a::after, .job-card__title a::after { content: ""; position: absolute; inset: 0; border-radius: var(--radius); }
.service-card__title a:focus-visible::after, .job-card__title a:focus-visible::after { outline: 2px solid var(--accent); outline-offset: 2px; }
.service-card__text, .job-card__text { margin-top: 10px; color: var(--muted); font-size: 1rem; }
.service-card__list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .9375rem; }
.service-card__list li { position: relative; padding-left: 22px; }
.service-card__list li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 9px; height: 5px; border-left: 2px solid var(--accent); border-bottom: 2px solid var(--accent); transform: rotate(-45deg) translateY(-50%); }
.service-card__footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 24px; }
.service-card__list + .service-card__footer, .service-card__text + .service-card__footer { border-top: 0; }
.service-card__price { font-weight: 600; font-size: .9375rem; color: var(--text); }

.icon-box { display: inline-flex; align-items: center; justify-content: center; flex: none; width: 46px; height: 46px; border-radius: var(--radius-sm); background: var(--accent-soft); color: var(--accent); }
.icon-box .icon { width: 22px; height: 22px; vertical-align: 0; }

.feature { padding-top: 24px; border-top: 1px solid var(--line); }
.feature .icon-box { margin-bottom: 18px; }
.feature__title { margin-bottom: 8px; }
.feature__text { color: var(--muted); font-size: 1rem; }
.feature-list { list-style: none; max-width: 820px; border-bottom: 1px solid var(--line); }
.feature-list .feature { display: grid; grid-template-columns: auto 1fr; column-gap: 20px; padding: 26px 0; }
.feature-list .feature .icon-box { grid-row: 1 / span 2; margin: 0; }
.feature-list .feature__title { margin-bottom: 4px; }

.kpi { display: flex; flex-direction: column; gap: 6px; padding-top: 22px; border-top: 1px solid var(--line); }
.kpi__label { font-size: .8125rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.kpi__value { display: flex; align-items: baseline; gap: 8px; font-family: var(--font-heading); font-size: clamp(2.5rem, 1.6rem + 3vw, 3.75rem); font-weight: 700; letter-spacing: -.035em; line-height: 1.05; color: var(--text); font-variant-numeric: tabular-nums; }
.kpi__unit { font-size: 1.125rem; font-weight: 600; letter-spacing: 0; color: var(--accent); }
.kpi__text { color: var(--muted); font-size: .9375rem; max-width: 30ch; }

/* Prosessi */
.process-steps { list-style: none; display: grid; gap: 0; counter-reset: step; }
.process-step { position: relative; counter-increment: step; padding: 0 0 32px 44px; border-left: 1px solid var(--line); margin-left: 14px; }
.process-step:last-child { padding-bottom: 0; border-left-color: transparent; }
.process-step::before { content: counter(step); position: absolute; left: -15px; top: -2px; display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .8125rem; font-weight: 700; }
.process-step__meta { display: block; margin-bottom: 6px; font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.process-step__title { margin-bottom: 8px; }
.process-step__text { color: var(--muted); font-size: 1rem; max-width: 46ch; }
@media (min-width: 900px) {
  .process-steps { grid-template-columns: repeat(var(--steps, 4), minmax(0, 1fr)); gap: 32px; }
  .process-step { padding: 28px 0 0; margin: 0; border-left: 0; border-top: 1px solid var(--line); }
  .process-step:last-child { border-top-color: var(--line); }
  .process-step::before { left: 0; top: -15px; }
}

/* Hinnoittelu */
.pricing-card { padding: 32px; }
.pricing-card--featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.pricing-card__tier { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.pricing-card__desc { margin-top: 8px; color: var(--muted); font-size: .9375rem; }
.pricing-card__price { margin: 24px 0; padding: 24px 0; border-block: 1px solid var(--line); font-family: var(--font-heading); font-size: clamp(2.25rem, 1.6rem + 2vw, 3rem); font-weight: 700; letter-spacing: -.03em; line-height: 1.1; }
.pricing-card__price small { display: block; margin-bottom: 4px; font-family: var(--font-body); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.pricing-card__unit { font-family: var(--font-body); font-size: .9375rem; font-weight: 500; letter-spacing: 0; color: var(--muted); }
.pricing-card__list { flex: 1; margin: 0 0 28px; padding: 0; list-style: none; display: grid; gap: 12px; align-content: start; font-size: .9375rem; }
.pricing-card__list li { display: flex; gap: 10px; align-items: flex-start; }
.pricing-card__list .icon { width: 18px; height: 18px; margin-top: 3px; color: var(--accent); }
.pricing-card__list .is-muted { color: var(--muted); }
.pricing-card__list .is-muted .icon { color: #a3aab6; opacity: .7; }
.pricing-card__list .is-muted { text-decoration: line-through; text-decoration-color: #c4c9d2; }

/* FAQ */
.faq { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__q { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 22px 0; cursor: pointer; list-style: none; font-size: 1.0625rem; font-weight: 600; letter-spacing: -.01em; }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--accent); }
.faq__icon { position: relative; flex: none; width: 20px; height: 20px; color: var(--accent); }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 14px; height: 2px; margin: -1px 0 0 -7px; background: currentColor; border-radius: 2px; transition: transform .2s ease; }
.faq__icon::after { transform: rotate(90deg); }
.faq__item[open] .faq__icon::after { transform: rotate(0); }
.faq__a { padding: 0 44px 24px 0; color: var(--muted); max-width: 68ch; }
.faq-layout { display: grid; gap: 8px 72px; align-content: start; }
.faq-layout > .section-head { margin-bottom: 32px; }
@media (min-width: 900px) {
  .faq-layout { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
  .faq-layout > .section-head { position: sticky; top: 100px; align-self: start; margin-bottom: 0; }
}

/* Referenssit */
.case-list { display: grid; }
.case-row { display: grid; gap: 32px; padding: clamp(32px, 5vw, 56px) 0; border-top: 1px solid var(--line); align-items: center; }
.case-row:last-child { border-bottom: 1px solid var(--line); }
@media (min-width: 900px) {
  .case-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 72px; }
  .case-row--reverse .case-row__body { order: 2; }
}
.case-row__client { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 20px; }
.case-row__logo { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; letter-spacing: -.01em; }
.case-row__logo .icon { color: var(--accent); }
.case-row__title { font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2.125rem); letter-spacing: -.025em; }
.case-row__text { margin-top: 14px; color: var(--muted); max-width: 52ch; }
.case-row .link-arrow { margin-top: 22px; }
.tag-list { display: flex; flex-wrap: wrap; gap: 8px; margin: 20px 0 0; padding: 0; list-style: none; }
.tag { padding: 4px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .8125rem; color: var(--muted); background: var(--bg); }

.data-card { margin: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.bg-surface .data-card { background: var(--bg); }
.data-card__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 14px 20px; border-bottom: 1px solid var(--line); font-size: .8125rem; color: var(--muted); }
.data-card__head b { color: var(--text); font-weight: 600; }
.data-card__live { display: inline-flex; align-items: center; gap: 6px; padding: 2px 10px; border: 1px solid var(--line); border-radius: 999px; background: var(--bg); font-size: .75rem; font-weight: 500; }
.data-card__live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.data-card__chart { padding: 16px 20px 8px; }
.data-card__chart svg { display: block; width: 100%; height: auto; }
.data-card__meta { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; border-top: 1px solid var(--line); }
.data-card__meta > div { padding: 14px 20px; border-bottom: 1px solid var(--line); }
.data-card__meta > div:nth-child(odd) { border-right: 1px solid var(--line); }
.data-card__meta > div:nth-last-child(-n+2) { border-bottom: 0; }
.data-card__meta dt { font-size: .75rem; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.data-card__meta dd { margin: 2px 0 0; font-weight: 600; font-size: .9375rem; }
.chart-grid { fill: none; stroke: var(--line); stroke-width: 1; }
.chart-axis { fill: none; stroke: #a3aab6; stroke-width: 1.5; }
.chart-area { fill: var(--accent); fill-opacity: .1; stroke: none; }
.chart-primary-stroke { stroke: var(--accent); stroke-width: 3; stroke-linecap: round; }
.chart-compare-stroke { stroke: #a3aab6; stroke-width: 2; stroke-dasharray: 6 6; stroke-linecap: round; }

/* Suositukset */
.testimonial-card { margin: 0; gap: 28px; justify-content: space-between; }
.testimonial-card__quote { margin: 0; font-size: 1.125rem; line-height: 1.55; letter-spacing: -.01em; color: var(--text); }
.testimonial-card__quote::before { content: "\201C"; display: block; height: .55em; font-size: 3.5rem; line-height: .9; color: var(--accent); font-family: Georgia, serif; }
.testimonial-card__person { display: flex; align-items: center; gap: 14px; }
.testimonial-card__avatar, .team-card__avatar { display: inline-grid; place-items: center; flex: none; width: 46px; height: 46px; border-radius: 50%; background: var(--accent-soft); color: var(--accent); font-size: .9375rem; font-weight: 700; letter-spacing: .02em; }
.testimonial-card__name { font-weight: 600; }
.testimonial-card__role { font-size: .875rem; color: var(--muted); }

/* Logorivi */
.logo-row__caption { margin-bottom: 28px; text-align: center; }
.logo-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin: 0; padding: 0; list-style: none; }
@media (min-width: 600px) { .logo-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (min-width: 1000px) { .logo-row { grid-template-columns: repeat(6, minmax(0, 1fr)); } }
.logo-row__item { display: flex; align-items: center; justify-content: center; padding: 28px 12px; border-bottom: 1px solid var(--line); border-right: 1px solid var(--line); text-align: center; font-size: 1.0625rem; font-weight: 700; letter-spacing: -.01em; color: var(--muted); }
.logo-row__item:nth-child(2n) { border-right: 0; }
@media (min-width: 600px) { .logo-row__item:nth-child(2n) { border-right: 1px solid var(--line); } .logo-row__item:nth-child(3n) { border-right: 0; } }
@media (min-width: 1000px) { .logo-row__item:nth-child(3n) { border-right: 1px solid var(--line); } .logo-row__item:nth-child(6n) { border-right: 0; } .logo-row__item { border-bottom: 0; } }

/* Tiimi, yhteys, työpaikat */
.team-card { align-items: flex-start; }
.team-card__avatar { width: 60px; height: 60px; font-size: 1.125rem; margin-bottom: 18px; }
.team-card__avatar--accent { background: var(--accent); color: var(--accent-ink); }
.team-card__role { margin-top: 2px; color: var(--muted); font-size: .9375rem; }
.contact-list { margin: 18px 0 0; padding: 0; list-style: none; display: grid; gap: 8px; font-size: .9375rem; }
.contact-list a { display: inline-flex; align-items: center; gap: 8px; color: var(--text); text-decoration: none; overflow-wrap: anywhere; }
.contact-list a:hover { color: var(--accent); text-decoration: underline; }
.contact-list .icon { width: 18px; height: 18px; color: var(--accent); }
.job-card__meta { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-bottom: 14px; font-size: .8125rem; font-weight: 500; color: var(--muted); }
.job-card__meta span + span::before { content: "·"; margin-right: 14px; color: #a3aab6; }
.job-card .link-arrow { margin-top: auto; padding-top: 22px; }

/* ---------- 8. Lomakkeet ---------- */
.form-card { max-width: 760px; padding: clamp(24px, 4vw, 40px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); box-shadow: var(--shadow); }
.form { display: grid; gap: 20px; }
.form-row { display: grid; gap: 20px; }
@media (min-width: 640px) { .form-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.form-field { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.form-label { font-size: .9375rem; font-weight: 600; }
.req { color: var(--danger); }
.form-input, .form-select, .form-textarea { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid var(--input-border); border-radius: var(--radius-sm); background: var(--bg); color: var(--text); font: 400 1rem/1.4 var(--font-body); transition: border-color .15s ease, box-shadow .15s ease; }
.form-textarea { min-height: 144px; resize: vertical; }
.form-select { appearance: none; padding-right: 40px; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 20px) 21px, calc(100% - 15px) 21px; background-size: 5px 5px; background-repeat: no-repeat; }
.form-input:hover, .form-select:hover, .form-textarea:hover { border-color: var(--text); }
.form-input:focus-visible, .form-select:focus-visible, .form-textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; border-color: var(--accent); border-radius: var(--radius-sm); }
.form-input:user-invalid, .form-textarea:user-invalid { border-color: var(--danger); }
.form-check { display: flex; align-items: flex-start; gap: 10px; font-size: .9375rem; color: var(--muted); cursor: pointer; }
.form-check input { flex: none; width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--accent); }

/* ---------- 9. CTA-palkki ---------- */
.cta-band { position: relative; isolation: isolate; overflow: hidden; margin: 0 var(--side); padding: clamp(36px, 6vw, 72px) clamp(24px, 5vw, 64px); border-radius: calc(var(--radius) * 1.6); background: var(--text); color: var(--bg); }
.cta-band__art { position: absolute; right: 0; bottom: 0; z-index: -1; width: min(620px, 90%); height: auto; fill: none; stroke: rgba(255, 255, 255, .14); stroke-width: 1.5; pointer-events: none; }
.cta-band__art .is-accent { stroke: var(--accent-light); stroke-width: 2; }
.cta-band__inner { display: grid; gap: 32px; align-items: center; }
@media (min-width: 900px) { .cta-band__inner { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 56px; } .cta-band__actions { justify-self: end; } }
.cta-band h2 { color: inherit; font-size: clamp(1.75rem, 1.1rem + 2.4vw, 2.75rem); }
.cta-band .eyebrow { color: var(--accent-light); }
.cta-band .accent { color: var(--accent-light); }
.cta-band__text p { margin-top: 16px; max-width: 54ch; color: rgba(255, 255, 255, .78); }
.cta-band__actions { display: flex; flex-direction: column; gap: 14px; }
.cta-band__note { font-size: .875rem; color: rgba(255, 255, 255, .7); }
.cta-band .btn-primary { background: var(--bg); border-color: var(--bg); color: var(--text); }
.cta-band .btn-primary:hover { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--text); }
.cta-band :focus-visible { outline-color: #fff; }
.cta-band--primary { background: var(--accent); color: var(--accent-ink); }
.cta-band--primary .eyebrow, .cta-band--primary .cta-band__text p, .cta-band--primary .cta-band__note { color: color-mix(in srgb, var(--accent-ink) 88%, var(--accent)); }
.cta-band--primary .accent { color: var(--accent-ink); text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: .18em; }
.cta-band--primary .cta-band__art { stroke: rgba(255, 255, 255, .22); }
.cta-band--primary .cta-band__art .is-accent { stroke: rgba(255, 255, 255, .6); }
.cta-band--primary .btn-primary { background: var(--accent-ink); border-color: var(--accent-ink); color: var(--accent); }
.cta-band--primary .btn-primary:hover { background: color-mix(in srgb, var(--accent-ink) 90%, var(--accent)); color: var(--accent); }
/* Chat-painike näytetään vain, kun sivustolla on chat-widget (html.has-chat) */
[data-open-chat] { display: none; }
.has-chat [data-open-chat] { display: inline-flex; }
main > .cta-band:last-child { margin-bottom: var(--section-y); }
main > .cta-band:first-child { margin-top: var(--section-y); }

/* ---------- 10. Sisältöelementit ---------- */
.prose { color: var(--text); font-size: 1.0625rem; line-height: 1.75; }
.prose > * + * { margin-top: 1.25em; }
.prose h2 { margin-top: 2.2em; font-size: clamp(1.5rem, 1.1rem + 1.4vw, 2rem); }
.prose h3 { margin-top: 1.9em; font-size: 1.3125rem; }
.prose > :first-child { margin-top: 0; }
.prose h2 + *, .prose h3 + * { margin-top: .75em; }
.prose ul, .prose ol { padding-left: 1.4em; }
.prose li + li { margin-top: .4em; }
.prose li::marker { color: var(--accent); }
.prose a { text-decoration: underline; text-decoration-thickness: 1px; }
.prose strong { font-weight: 600; }
.prose blockquote { margin-inline: 0; padding: 4px 0 4px 24px; border-left: 3px solid var(--accent); font-size: clamp(1.25rem, 1rem + 1vw, 1.625rem); font-weight: 500; line-height: 1.4; letter-spacing: -.015em; }
.callout { padding: 20px 24px; border: 1px solid color-mix(in srgb, var(--accent) 22%, var(--line)); border-left: 4px solid var(--accent); border-radius: var(--radius-sm); background: var(--accent-soft); font-size: 1rem; line-height: 1.6; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); -webkit-overflow-scrolling: touch; }
.table { width: 100%; min-width: 520px; border-collapse: collapse; font-size: .9375rem; }
.table th, .table td { padding: 14px 20px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: middle; }
.table tbody tr:last-child > * { border-bottom: 0; }
.table thead th { background: var(--surface); font-size: .8125rem; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.table tbody th { font-weight: 600; }
.table td, .table thead th:not(:first-child) { text-align: center; }
.table .is-yes { color: var(--accent); font-size: 1.125rem; font-weight: 700; }
.table .is-no { color: var(--muted); }
.divider-hatch { width: min(var(--shell), 100% - 2 * var(--gutter)); height: 14px; margin: 0 auto; border-block: 1px solid var(--line); background: repeating-linear-gradient(-45deg, var(--line) 0 1px, transparent 1px 8px); }

/* ---------- 11. Animaatio ---------- */
.js .reveal { opacity: 0; transform: translateY(14px); transition: opacity .6s ease, transform .6s cubic-bezier(.2, .7, .2, 1); }
.js .reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- 12. Tulostus ---------- */
@media print {
  :root { --section-y: 24px; }
  body { font-size: 11pt; color: #000; background: #fff; }
  .site-header, .skip-link, .cta-band__art, .btn-group, .site-footer__nav, [data-open-chat] { display: none !important; }
  .hero, .section, .section.bg-surface, .hero--home, .hero--page { background: #fff; padding-block: 16px; border: 0; }
  .cta-band, .cta-band--primary { background: #fff; color: #000; border: 1px solid #999; margin-inline: 0; }
  .cta-band h2, .cta-band .accent { color: #000; }
  .js .reveal { opacity: 1 !important; transform: none !important; }
  .service-card, .pricing-card, .case-row, .faq__item, .testimonial-card, .kpi, .feature, .process-step { break-inside: avoid; }
  .prose a[href^="http"]::after { content: " (" attr(href) ")"; font-size: .85em; color: #444; }
  details.faq__item:not([open]) .faq__a { display: block; }
}
