/* Norgrid Oy – päivitys 11/2026: yhdistetty etusivu, ratkaisuteemat, Meistä-osio ja blogilistaus.
   Ladataan style.css:n ja motion.css:n jälkeen. Käyttää style.css:n värimuuttujia. */

/* ---------- Hero: kolme teemaa (hintapiikit, sähkökatkot, omavaraisuus) ---------- */
.hero--themes { min-height: 0; padding-bottom: 72px; }
.hero--themes .stack { max-width: 760px; }
.hero-themes {
  list-style: none; margin: 40px 0 0; padding: 0;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 16px;
  position: relative; z-index: 1;
}
.hero-theme {
  --accent: var(--orange);
  display: flex; flex-direction: column; gap: 10px; height: 100%;
  padding: 24px 24px 20px; border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05); border: 1px solid var(--navy-line);
  border-top: 3px solid var(--accent);
  color: var(--on-navy); text-decoration: none;
  transition: background-color .25s ease, border-color .25s ease, transform .25s ease;
}
.hero-theme--blue { --accent: var(--blue); }
.hero-theme--green { --accent: var(--green); }
.hero-theme:hover, .hero-theme:focus-visible { background: rgba(255, 255, 255, 0.09); color: var(--on-navy); transform: translateY(-3px); }
.hero-theme .theme-q { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; line-height: 1.15; color: #FFFFFF; }
.hero-theme .theme-a { font-size: 0.975rem; line-height: 1.5; flex-grow: 1; }
.hero-theme .theme-more { font-weight: 700; font-size: 0.95rem; color: #FFFFFF; display: inline-flex; gap: 8px; align-items: center; }
.hero-theme .theme-more svg { transition: transform .25s ease; }
.hero-theme:hover .theme-more svg { transform: translateX(4px); }
.hero-trust { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 28px; color: var(--on-navy-muted); font-size: 0.925rem; position: relative; z-index: 1; }
.hero-trust span { display: inline-flex; align-items: center; gap: 8px; }
.hero-trust span::before { content: ""; width: 8px; height: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--green-light); }
@media (prefers-reduced-motion: reduce) { .hero-theme, .hero-theme .theme-more svg { transition: none; } .hero-theme:hover { transform: none; } }

/* ---------- Ratkaisut-osio ---------- */
.solutions { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(320px, 100%), 1fr)); gap: 24px; }
.solution {
  --accent: var(--orange);
  scroll-margin-top: 110px;
  display: flex; flex-direction: column; gap: 18px;
  padding: 32px 28px; border-radius: var(--radius); background: var(--ground-soft);
  border-top: 4px solid var(--accent);
}
.solution--blue { --accent: var(--blue); }
.solution--green { --accent: var(--green); }
.solution .sol-tag { font-size: 0.85rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.solution h3 { font-size: 1.6rem; }
.solution p { color: var(--muted); }
.solution .sol-label { font-weight: 700; color: var(--navy); font-size: 0.95rem; margin-top: 4px; }
.sol-list { list-style: none; margin: -6px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.sol-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.975rem; line-height: 1.5; }
.sol-list li::before { content: ""; flex: none; width: 9px; height: 9px; margin-top: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); }
.solution .btn { margin-top: auto; align-self: flex-start; }
.solutions-note { color: var(--muted); font-size: 0.95rem; max-width: 52rem; }

/* ---------- Työn vaiheet ---------- */
.process { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 24px; counter-reset: vaihe; }
.process li { counter-increment: vaihe; display: flex; flex-direction: column; gap: 8px; padding-top: 18px; border-top: 3px solid var(--navy); }
.process li:nth-child(1) { border-color: var(--orange); }
.process li:nth-child(2) { border-color: var(--blue); }
.process li:nth-child(3) { border-color: var(--green); }
.process li::before { content: "0" counter(vaihe); font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--muted); }
.process strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); line-height: 1.2; }
.process span { color: var(--muted); font-size: 0.975rem; line-height: 1.5; }

/* ---------- Meistä ---------- */
.about-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px 64px; align-items: start; }
@media (max-width: 900px) { .about-grid { grid-template-columns: 1fr; } }
.about-person { display: flex; gap: 20px; align-items: center; }
.about-mono {
  flex: none; width: 88px; height: 88px; border-radius: 50%; background: var(--navy); color: #FFFFFF;
  display: grid; place-items: center; font-family: var(--font-display); font-weight: 700; font-size: 1.9rem; letter-spacing: .04em;
}
.about-person strong { display: block; font-family: var(--font-display); font-size: 1.4rem; color: var(--navy); line-height: 1.2; }
.about-person span { color: var(--muted); font-size: 0.95rem; }
.tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.tags li { background: var(--ground); border: 1px solid var(--border); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; color: var(--navy); }
.panel .tags li { background: #FFFFFF; }
.edu li { display: flex; flex-direction: column; gap: 0; }
.edu li span { color: var(--muted); font-size: 0.95rem; }
.values-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr)); gap: 24px 32px; }
.values-list li { display: flex; flex-direction: column; gap: 8px; }
.values-list strong { font-family: var(--font-display); font-size: 1.3rem; color: var(--navy); }
.values-list span { color: var(--muted); }
.sub-h { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); margin: 0; }

/* Kumppanien palvelulistat */
.partner .mini-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.95rem; }
.partner .mini-list li { display: flex; gap: 10px; }
.partner .mini-list li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 9px; border-radius: 2px; transform: rotate(45deg); background: var(--green); }
.partner-disclosure { font-size: 0.9rem; color: var(--muted); border-left: 3px solid var(--blue); padding-left: 14px; max-width: 52rem; }

/* ---------- UKK ---------- */
.faq { display: flex; flex-direction: column; border-top: 1px solid var(--border); max-width: 52rem; }
.faq details { border-bottom: 1px solid var(--border); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 40px 20px 0; position: relative;
  font-family: var(--font-display); font-weight: 700; font-size: 1.25rem; color: var(--navy); line-height: 1.3;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 8px; top: 50%; width: 10px; height: 10px; margin-top: -7px;
  border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); transition: transform .2s ease;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details > div { padding: 0 0 22px; color: var(--muted); max-width: 46rem; }

/* ---------- Blogi / uutiset (rakenne: otsikkokaista, suodatin, korttiruudukko, yhteydenottokaista) ---------- */
.page-hero { padding: 64px var(--pad-x) 56px; }
.page-hero h1 { font-size: clamp(2.25rem, 4.4vw, 3.5rem); }
.page-hero .lead { margin-top: 12px; }
.breadcrumb { font-size: 0.875rem; color: var(--on-navy-muted); margin-bottom: 18px; }
.breadcrumb a { color: var(--on-navy); }
.breadcrumb a:hover { color: #FFFFFF; }

.blog-filter {
  display: flex; flex-wrap: wrap; gap: 10px; padding: 0; margin: 0; list-style: none;
}
.blog-filter button {
  font: inherit; font-size: 0.95rem; font-weight: 700; cursor: pointer;
  min-height: 44px; padding: 8px 18px; border-radius: 999px;
  background: var(--ground-soft); color: var(--navy); border: 1px solid transparent;
  transition: background-color .2s ease, border-color .2s ease, color .2s ease;
}
.blog-filter button:hover { border-color: var(--navy); }
.blog-filter button[aria-pressed="true"] { background: var(--navy); color: #FFFFFF; }
.blog-count { color: var(--muted); font-size: 0.925rem; }

.blog-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(320px, 100%), 1fr)); gap: 32px 24px; }
.blog-grid > li[hidden] { display: none; }
.blog-card {
  height: 100%; display: flex; flex-direction: column; background: var(--ground); border: 1px solid var(--border);
  border-radius: var(--radius); overflow: hidden; transition: box-shadow .3s ease, transform .3s ease;
}
.blog-card:hover { box-shadow: 0 16px 36px rgba(0, 16, 56, 0.10); transform: translateY(-3px); }
@media (prefers-reduced-motion: reduce) { .blog-card, .blog-card:hover { transition: none; transform: none; } }
.blog-card .cover { display: block; aspect-ratio: 16 / 9; background: var(--navy); position: relative; overflow: hidden; }
.blog-card .cover svg { width: 100%; height: 100%; display: block; }
.blog-card .cover-label {
  position: absolute; left: 20px; bottom: 16px; right: 20px;
  font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; letter-spacing: .14em; text-transform: uppercase; color: #FFFFFF;
}
.blog-card .card-body { display: flex; flex-direction: column; gap: 12px; padding: 22px 24px 24px; flex-grow: 1; }
.cat-tags { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.cat-tags li { font-size: 0.8rem; font-weight: 700; letter-spacing: .02em; padding: 4px 10px; border-radius: 4px; background: var(--ground-soft); color: var(--navy); }
.cat-tags li.t-green { background: #6CB789; color: var(--navy); } /* Luonto vaalealle 60 % */
.cat-tags li.t-blue { background: #7C9AF0; color: var(--navy); } /* Virta vaalealle 60 % */
.cat-tags li.t-orange { background: #DD9566; color: var(--navy); } /* Hehku vaalealle 60 % */
.cat-tags li.t-soon { background: var(--navy); color: #FFFFFF; }
.blog-card h3 { font-size: 1.35rem; }
.blog-card h3 a { color: var(--navy); text-decoration: none; }
.blog-card h3 a:hover { text-decoration: underline; text-underline-offset: 4px; }
.blog-card time, .blog-card .card-date { color: var(--muted); font-size: 0.9rem; }
.blog-card .btn { margin-top: auto; align-self: flex-start; min-height: 44px; padding: 10px 22px; }
.blog-card--soon { background: var(--ground-tint); }
.blog-card--soon .cover { opacity: .85; }
.btn--outline { background: transparent; color: var(--navy); border: 1px solid var(--navy); }
.btn--outline:hover { background: var(--navy); color: #FFFFFF; }
.btn--disabled { background: var(--ground-soft); color: var(--muted); cursor: default; }

/* Etusivun nosto */
.latest-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 32px; }

/* Blogikirjoituksen yläpalkki (julkaistut kirjoitukset) */
.post-nav { max-width: 960px; margin: 0 auto 16px; display: flex; justify-content: space-between; gap: 16px; font: 700 15px/1.4 "Roboto", "Calibri", "Segoe UI", sans-serif; }
.post-nav a { color: #001038; }
.blog-card h2, .blog-card .h3-like { font-size: 1.35rem; line-height: 1.3; }
.blog-card h2 a { color: var(--navy); text-decoration: none; }
.blog-card h2 a:hover { text-decoration: underline; text-underline-offset: 4px; }
/* Hero-kortit läpinäkymättömiksi, jotta koristemuodot eivät näy tekstin alta */
.hero-theme { background: #17264A; } /* Kallio 90 % */
.hero-theme:hover, .hero-theme:focus-visible { background: #334060; } /* Kallio 80 % */
.about-grid .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
@media (max-width: 600px) { .about-grid .facts { grid-template-columns: 1fr; } }
.soft .panel { background: #FFFFFF; }
.about-person .about-mono { color: #FFFFFF; font-size: 1.9rem; }
.about-grid .fact-label { font-size: 0.95rem; line-height: 1.45; hyphens: auto; -webkit-hyphens: auto; overflow-wrap: anywhere; }
.page-hero { min-height: 0 !important; }

/* ===== Päivitys 2: alkuperäiset kaksi vinoneliötä heron yläosaan ===== */
.hero--themes .hero-shapes { bottom: auto; height: min(640px, 100%); }

/* ===== Energiaprofiilikysely ===== */
.ep-wrap { background: var(--ground-soft); border-radius: var(--radius); padding: 32px clamp(20px, 4vw, 48px) 36px; }
.ep-progress { list-style: none; margin: 0 0 28px; padding: 0; display: none; gap: 6px; }
.ep-wrap:has(.ep.is-js) .ep-progress { display: grid; grid-template-columns: repeat(6, 1fr); }
.ep-progress li { display: flex; flex-direction: column; gap: 8px; font-size: 0.85rem; font-weight: 700; color: var(--muted); padding-top: 10px; border-top: 4px solid var(--border); }
.ep-progress li span { display: none; }
.ep-progress li.is-done { border-color: var(--green); color: var(--navy); }
.ep-progress li.is-active { border-color: var(--orange); color: var(--navy); }
@media (max-width: 600px) { .ep-progress li { font-size: 0; } }
.ep { display: flex; flex-direction: column; gap: 28px; }
.ep-step { border: 0; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 26px; }
.ep.is-js .ep-step { display: none; }
.ep.is-js .ep-step.is-active { display: flex; }
.ep:not(.is-js) .ep-result, .ep:not(.is-js) .ep-nav { display: none; }
.ep-legend { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--navy); padding: 0; margin-bottom: 2px; }
.ep-q { display: flex; flex-direction: column; gap: 12px; }
.ep-q[hidden], .ep-slider[hidden] { display: none; }
.ep-qt { font-weight: 700; color: var(--navy); }
.ep-qt span { font-weight: 400; color: var(--muted); font-size: 0.925rem; }
.ep-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; cursor: pointer; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span {
  display: inline-flex; align-items: center; min-height: 44px; padding: 8px 18px; border-radius: 999px;
  background: #FFFFFF; border: 1px solid var(--input-border); color: var(--navy); font-size: 0.975rem; font-weight: 400;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease;
}
.chip:hover span { border-color: var(--navy); }
.chip input:checked + span { background: var(--navy); border-color: var(--navy); color: #FFFFFF; }
.chip input:checked + span::before { content: ""; width: 7px; height: 7px; margin-right: 9px; border-radius: 2px; transform: rotate(45deg); background: var(--green-light); }
.chip input:focus-visible + span { outline: 3px solid var(--green-light); outline-offset: 2px; }
.ep-slider { display: flex; flex-direction: column; gap: 10px; background: #FFFFFF; border-radius: 10px; padding: 18px 20px; border: 1px solid var(--border); }
.ep-slider-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.ep-slider-top label { font-weight: 700; color: var(--navy); }
.ep-slider output { font-family: var(--font-display); font-weight: 700; font-size: 1.5rem; color: var(--orange); line-height: 1; }
.ep-slider input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 32px; background: transparent; cursor: pointer; --fill: 50%; }
.ep-slider input[type=range]::-webkit-slider-runnable-track { height: 8px; border-radius: 999px; background: linear-gradient(90deg, var(--orange) var(--fill), var(--border) var(--fill)); }
.ep-slider input[type=range]::-moz-range-track { height: 8px; border-radius: 999px; background: var(--border); }
.ep-slider input[type=range]::-moz-range-progress { height: 8px; border-radius: 999px; background: var(--orange); }
.ep-slider input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 28px; height: 28px; margin-top: -10px; border-radius: 8px; transform: rotate(45deg); background: var(--navy); border: 3px solid #FFFFFF; box-shadow: 0 2px 8px rgba(0, 16, 56, .3); }
.ep-slider input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 7px; transform: rotate(45deg); background: var(--navy); border: 3px solid #FFFFFF; box-shadow: 0 2px 8px rgba(0, 16, 56, .3); }
.ep-slider input[type=range]:disabled { opacity: .35; cursor: default; }
.ep-slider input[type=range]:focus-visible { outline: 3px solid var(--green-light); outline-offset: 4px; border-radius: 6px; }
.ep-hint { font-size: 0.875rem; color: var(--muted); }
.ep-dk { display: inline-flex; align-items: center; gap: 8px; font-size: 0.925rem; color: var(--muted); cursor: pointer; align-self: flex-start; min-height: 32px; }
.ep-dk input { width: 18px; height: 18px; accent-color: var(--navy); }
.ep-nav { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ep-nav #ep-next { margin-left: auto; }
.ep-nav [hidden] { display: none; }
.ep-result { gap: 20px; outline: none; }
.ep-figs { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(220px, 100%), 1fr)); gap: 12px; }
.ep-figs li { background: var(--navy); color: var(--on-navy); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 4px; }
.ep-figs strong { font-family: var(--font-display); font-size: 1.5rem; color: #FFFFFF; line-height: 1.2; }
.ep-figs span { font-size: 0.9rem; }
.ep-sub { font-weight: 700; color: var(--navy); margin-top: 8px; }
.ep-topics { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.ep-topics li { background: #FFFFFF; border-radius: 10px; padding: 16px 18px; border-left: 4px solid var(--green); display: flex; flex-direction: column; gap: 4px; }
.ep-topics li:nth-child(3n+2) { border-color: var(--blue); }
.ep-topics li:nth-child(3n+3) { border-color: var(--orange); }
.ep-topics strong { color: var(--navy); }
.ep-topics span { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }
.ep-note { font-size: 0.875rem; color: var(--muted); }

/* Lomakkeen energiaprofiili */
.ep-summary { background: #FFFFFF; border: 1px solid var(--border); border-left: 4px solid var(--green); border-radius: 10px; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.ep-summary[hidden] { display: none; }
.ep-summary-head { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.ep-summary-head strong { color: var(--navy); font-family: var(--font-display); font-size: 1.25rem; }
.ep-summary-head a { font-weight: 700; font-size: 0.95rem; }
.ep-summary dl { margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(240px, 100%), 1fr)); gap: 8px 24px; }
.ep-summary dl div { display: flex; flex-direction: column; }
.ep-summary dt { font-size: 0.8rem; color: var(--muted); }
.ep-summary dd { margin: 0; font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.ep-tip { font-size: 0.95rem; color: var(--muted); background: #FFFFFF; border-radius: 10px; padding: 12px 16px; border: 1px dashed var(--input-border); }
.ep-tip[hidden] { display: none; }
.ep-tip a { font-weight: 700; }

/* ===== Yhteistyöpolku ===== */
.path { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.path::before { content: ""; position: absolute; left: 40px; right: 40px; top: 40px; height: 2px; background: var(--border); z-index: 0; }
@media (max-width: 1000px) { .path { grid-template-columns: repeat(2, minmax(0, 1fr)); } .path::before { display: none; } }
@media (max-width: 600px) { .path { grid-template-columns: 1fr; } }
.path-step { --accent: var(--green); position: relative; z-index: 1; display: flex; flex-direction: column; gap: 8px; }
.path-step--blue { --accent: var(--blue); }
.path-step--orange { --accent: var(--orange); }
.path-step--navy { --accent: var(--navy); }
.path-step .ico { width: 80px; height: 80px; border-radius: 50%; background: var(--accent); color: #FFFFFF; display: grid; place-items: center; margin-bottom: 14px; box-shadow: 0 0 0 8px var(--ground-soft); }
.path-step .ico svg { width: 34px; height: 34px; }
.path-no { font-size: 0.8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.path-step h3 { font-size: 1.4rem; }
.path-sub { font-style: italic; color: var(--muted); font-size: 0.925rem; margin-top: -4px; }
.path-step ul { list-style: none; margin: 6px 0 0; padding: 18px 18px 18px; background: #FFFFFF; border-radius: 10px; display: flex; flex-direction: column; gap: 8px; flex-grow: 1; border-top: 3px solid var(--accent); }
.path-step ul li { display: flex; gap: 10px; font-size: 0.95rem; line-height: 1.45; }
.path-step ul li::before { content: ""; flex: none; width: 7px; height: 7px; margin-top: 8px; border-radius: 2px; transform: rotate(45deg); background: var(--accent); }
.svc-list { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(240px, 100%), 1fr)); gap: 0 24px; }
.svc-list li { display: flex; flex-direction: column; gap: 4px; padding: 16px 0; border-top: 1px solid var(--border); }
.svc-list strong { color: var(--navy); }
.svc-list span { color: var(--muted); font-size: 0.95rem; line-height: 1.5; }

/* ===== Hinta ja pilotit ===== */
.pricing { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 24px; }
@media (max-width: 800px) { .pricing { grid-template-columns: 1fr; } }
.price-card { border: 1px solid var(--border); border-radius: var(--radius); padding: 36px 32px; display: flex; flex-direction: column; gap: 14px; }
.price { font-family: var(--font-display); font-weight: 700; font-size: clamp(2.4rem, 4vw, 3.2rem); line-height: 1; color: var(--navy); }
.price-card--pilot { background: var(--navy); border-color: var(--navy); color: var(--on-navy); }
.price-card--pilot h2 { color: #FFFFFF; }
.price-card--pilot .kicker { color: var(--green-light); }

/* ===== Meistä ===== */
.about-intro { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 32px 64px; align-items: center; }
@media (max-width: 900px) { .about-intro { grid-template-columns: 1fr; } }
.big-facts { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.big-facts li { background: #FFFFFF; border-radius: var(--radius); padding: 24px 28px; display: flex; flex-direction: column; gap: 6px; color: var(--muted); }
.big-facts .fact-value { font-size: 3rem; }
.big-facts li.big-facts--dark { background: var(--navy); color: var(--on-navy); }
.big-facts li.big-facts--dark .fact-value { color: #FFFFFF; }
.person-row { display: grid; grid-template-columns: 1.05fr 1fr 1fr 1fr; gap: 20px; }
@media (max-width: 1100px) { .person-row { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 600px) { .person-row { grid-template-columns: 1fr; } }
.person-card-dark { background: var(--navy); color: var(--on-navy); border-radius: var(--radius); padding: 32px 24px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; }
.person-card-dark img { width: 168px; height: 168px; border-radius: 50%; object-fit: cover; margin-bottom: 12px; border: 4px solid var(--navy-line); }
.person-card-dark strong { font-family: var(--font-display); font-size: 1.6rem; color: #FFFFFF; }
.person-card-dark span { font-size: 0.95rem; }
.li-link { display: inline-flex; align-items: center; gap: 8px; margin-top: 12px; color: var(--green-light); font-weight: 700; }
.li-link:hover { color: #FFFFFF; }
.person-phone { color: #FFFFFF; font-weight: 700; text-decoration: none; }
.person-panel-l { background: #FFFFFF; border-radius: var(--radius); padding: 28px 24px; display: flex; flex-direction: column; gap: 16px; }
.person-panel-l .sub-h { font-size: 1.35rem; }
.person-panel-l .tags li { background: var(--ground-soft); border-color: transparent; }

/* Arvot */
.value-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(280px, 100%), 1fr)); gap: 20px; }
.value-card { --accent: var(--green); background: #FFFFFF; border-radius: var(--radius); padding: 32px 28px; display: flex; flex-direction: column; gap: 12px; position: relative; overflow: hidden; }
.value-card::after { content: ""; position: absolute; right: -36px; bottom: -36px; width: 110px; height: 110px; border-radius: 26px; transform: rotate(45deg); border: 10px solid var(--accent); opacity: .12; }
.value-card--blue { --accent: var(--blue); }
.value-card--orange { --accent: var(--orange); }
.value-card .ico { width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center; background: var(--accent); color: #FFFFFF; }
.value-card strong { font-family: var(--font-display); font-size: 1.5rem; color: var(--navy); }
.value-card span:not(.ico) { color: var(--muted); }
.keyfactors { display: flex; flex-direction: column; gap: 12px; }
.kf-title { font-size: 0.8rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.tags--lg li { padding: 10px 18px; font-size: 0.95rem; background: #FFFFFF; }
.ep-wrap, #yhteys, #energiaprofiili { scroll-margin-top: 120px; }
.hero--themes .hero-shapes { height: 560px; }
.hero--themes .hero-shape--a { width: clamp(220px, 21vw, 340px); top: 6%; }
.hero--themes .hero-shape--b { width: clamp(160px, 15vw, 240px); top: 44%; right: 4%; }

/* ===== Päivitys 3: selkeys ja yhtenäisyys ===== */
.section:not(.dark) .kicker, .soft .kicker, .price-card:not(.price-card--pilot) .kicker { color: var(--green-text); }
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 760px; margin: 0 auto; }
.sec-head .muted { max-width: 640px; }
.sub-h--center { text-align: center; }
.btn-center { align-self: center; }
.btn--text { background: none; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; padding-inline: 12px; }
.btn--text:hover { color: var(--navy); }
.faq { margin: 0 auto; width: 100%; }

/* Uutiset ja blogi vie toiselle sivulle: erottuva väri ja nuoli */
.main-nav a.nav-page { color: var(--green-light); display: inline-flex; align-items: center; gap: 6px; }
.main-nav a.nav-page:hover { color: #FFFFFF; }
.main-nav a.nav-page[aria-current="page"] { color: #FFFFFF; }

/* Alatunnisteen kuvakkeet */
.site-footer .f-ico { display: inline-flex; align-items: center; gap: 10px; }
.site-footer .f-ico svg { flex: none; color: var(--green-light); }
.site-footer .footer-links-block .f-ico { flex-direction: row-reverse; }
@media (max-width: 760px) { .site-footer .footer-links-block .f-ico { flex-direction: row; } }
.site-footer .footer-contact-links { gap: 8px; }
.site-footer .footer-links { gap: 8px; }

/* Hinta */
.price span { display: block; font-family: var(--font-body); font-size: 0.9rem; font-weight: 700; color: var(--muted); margin-top: 8px; letter-spacing: 0; }

/* Kysely: vaihepalkki napsautettavana */
.ep-wrap { max-width: 1040px; margin: 0 auto; width: 100%; }
.ep-progress button {
  all: unset; box-sizing: border-box; cursor: pointer; display: flex; flex-direction: column; gap: 8px; width: 100%;
  padding-top: 10px; font-size: 0.85rem; font-weight: 700; color: var(--muted);
}
.ep-progress button:focus-visible { outline: 3px solid var(--green-light); outline-offset: 3px; border-radius: 4px; }
.ep-progress li { border-top: 0; padding-top: 0; position: relative; }
.ep-progress li::before { content: ""; height: 4px; border-radius: 4px; background: var(--border); }
.ep-progress li.is-done::before { background: var(--green); }
.ep-progress li.is-active::before { background: var(--orange); }
.ep-progress li.is-active button, .ep-progress li.is-done button { color: var(--navy); }
.ep-progress li { display: flex; flex-direction: column; }
.ep-legend { display: flex; flex-direction: column; gap: 2px; }
.ep-count { font-family: var(--font-body); font-size: 0.8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-text); }
.ep-step { gap: 22px; }
.ep-qt { font-size: 1.05rem; }

/* Kooste */
.ep-result-head { display: flex; flex-direction: column; gap: 6px; }
.ep-cols { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: 20px; align-items: start; }
@media (max-width: 860px) { .ep-cols { grid-template-columns: 1fr; } }
.ep-col { background: #FFFFFF; border-radius: 12px; padding: 24px; display: flex; flex-direction: column; gap: 14px; }
.ep-h { font-size: 1.3rem; padding-bottom: 10px; border-bottom: 2px solid var(--ground-soft); }
.ep-groups { display: flex; flex-direction: column; gap: 16px; }
.ep-gt { font-size: 0.78rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--green-text); margin-bottom: 6px; }
.ep-group dl { margin: 0; display: flex; flex-direction: column; gap: 4px; }
.ep-group dl div { display: grid; grid-template-columns: minmax(110px, 40%) 1fr; gap: 12px; font-size: 0.95rem; padding: 3px 0; border-bottom: 1px dashed var(--border); }
.ep-group dt { color: var(--muted); }
.ep-group dd { margin: 0; font-weight: 700; color: var(--navy); }
.ep-figs li { padding: 16px 18px; }
.ep-figs strong { font-size: 1.35rem; }
.ep-plan { list-style: none; margin: 0; padding: 0; counter-reset: p; display: flex; flex-direction: column; gap: 12px; }
.ep-plan li { counter-increment: p; position: relative; padding: 14px 16px 14px 56px; border-radius: 10px; background: var(--ground-tint); display: flex; flex-direction: column; gap: 4px; }
.ep-plan li::before { content: counter(p); position: absolute; left: 14px; top: 14px; width: 28px; height: 28px; border-radius: 50%; background: var(--navy); color: #FFFFFF; display: grid; place-items: center; font-weight: 700; font-size: 0.9rem; }
.ep-plan li:first-child::before { background: var(--orange); color: var(--navy); }
.ep-plan strong { color: var(--navy); font-size: 1.05rem; }
.ep-why { color: var(--muted); font-size: 0.925rem; }
.ep-next { font-size: 0.925rem; color: var(--text); }
.ep-bring { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 0.925rem; }
.ep-bring li { display: flex; gap: 10px; }
.ep-bring li::before { content: ""; flex: none; width: 14px; height: 14px; margin-top: 4px; border: 2px solid var(--green); border-radius: 3px; }
.ep-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.ep-chiplist { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.ep-chiplist li { background: var(--ground-soft); border-radius: 999px; padding: 6px 14px; font-size: 0.9rem; color: var(--navy); }
.ep-chiplist li.fig { background: var(--navy); color: var(--on-navy); }
.ep-chiplist li.fig b { color: #FFFFFF; }
@media (max-width: 600px) { .ep-actions .btn { width: 100%; } .ep-group dl div { grid-template-columns: 1fr; gap: 0; } }

/* Tulostus / PDF: vain kooste */
@media print {
  html.ep-print body * { visibility: hidden !important; }
  html.ep-print .ep-result, html.ep-print .ep-result * { visibility: visible !important; }
  html.ep-print .ep-result { position: absolute; left: 0; top: 0; width: 100%; display: flex !important; }
  html.ep-print .ep-actions, html.ep-print .mobile-bar, html.ep-print .scroll-progress { display: none !important; }
  html.ep-print .ep-figs li { background: #FFFFFF !important; color: #001038 !important; border: 1px solid #CCCFD7; }
  html.ep-print .ep-figs strong { color: #001038 !important; }
  html.ep-print .ep-col { border: 1px solid #CCCFD7; break-inside: avoid; }
}
#ep-tulos { display: flex; flex-direction: column; gap: 16px; }
.keyfactors { align-items: center; text-align: center; }
.keyfactors .tags { justify-content: center; }
.partner-disclosure { border-left: 0; padding-left: 0; text-align: center; margin: 0 auto; }

/* ===== Päivitys 4: tarkat luvut, tiiviys ja luettavuus ===== */
.ep-numwrap { display: inline-flex; align-items: baseline; gap: 6px; }
.ep-num {
  width: 7.5ch; font-family: var(--font-display); font-weight: 700; font-size: 1.6rem; line-height: 1.1; color: var(--orange);
  text-align: right; border: 0; border-bottom: 2px dashed var(--border); background: transparent; padding: 0 2px; -moz-appearance: textfield;
}
.ep-num::-webkit-outer-spin-button, .ep-num::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.ep-num:focus { outline: none; border-bottom-color: var(--orange); }
.ep-num:disabled { color: var(--muted); }
.ep-unit { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.ep-slider-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 4px 16px; }
.ep-slider { gap: 6px; padding: 16px 20px; }
.ep-slider output { font-size: 1.6rem; }
.ep-step { gap: 18px; }
.ep-q { gap: 10px; }
.ep-legend { font-size: 1.4rem; }
.ep-wrap { padding: 28px clamp(18px, 4vw, 40px) 32px; }
.chip span { min-height: 42px; padding: 7px 16px; font-size: 0.95rem; }
.ep-progress { margin-bottom: 20px; }
.pricing { margin-top: 8px; }
.price-card { padding: 28px; }
#yhteistyo .stack-sm .sub-h--center { margin-top: 8px; }
/* Luettavuus: leipäteksti tummemmaksi ja rivinpituus rajatuksi */
.muted { color: #334060; } /* Kallio 80 %: riittävä kontrasti myös vaalealla Selkeys-pohjalla */
.sec-head .muted { font-size: 1.05rem; }
.faq summary { font-size: 1.15rem; }
.faq details > div { font-size: 1rem; line-height: 1.6; }
@media (max-width: 600px) {
  .ep-slider-top { flex-direction: column; align-items: flex-start; }
  .ep-num { text-align: left; }
  .sec-head h2 { font-size: 1.65rem; }
}
.ep-wrap:has(.ep.is-js) .ep-progress { grid-template-columns: repeat(5, 1fr); }
@media (max-width: 600px) { .ep-progress button { font-size: 0; gap: 0; } }

/* ===== Päivitys 5: visuaalinen kysely ja kooste ===== */
/* Kuvakkeelliset valintakortit */
.ep-chips--cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(150px, 100%), 1fr)); gap: 10px; }
.chip--card span { flex-direction: column; justify-content: center; text-align: center; gap: 8px; min-height: 104px; border-radius: 12px; padding: 14px 10px; font-size: 0.925rem; line-height: 1.3; height: 100%; }
.chip--card { display: block; height: 100%; }
.chip--card svg { color: var(--blue-text); }
.chip--card input:checked + span svg { color: var(--green-light); }
.chip--card input:checked + span::before { display: none; }
.chip--card input:checked + span { box-shadow: 0 6px 18px rgba(0, 16, 56, .2); }
@media (max-width: 600px) { .ep-chips--cards { grid-template-columns: repeat(2, minmax(0, 1fr)); } .chip--card span { min-height: 92px; } }

/* Säätimien asteikko ja "Yli" */
.ep-scale { display: flex; justify-content: space-between; font-size: 0.8rem; color: var(--muted); margin-top: -4px; }
.ep-overtxt { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; color: var(--orange); }
.ep-overtxt[hidden] { display: none; }

/* Kooste: kuvakkeelliset tunnusluvut */
.ep-tiles { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(200px, 100%), 1fr)); gap: 12px; }
.ep-tiles li { background: var(--navy); color: var(--on-navy); border-radius: 12px; padding: 18px; display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto auto; column-gap: 14px; align-items: center; }
.ep-ti { grid-row: 1 / 4; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: rgba(255, 255, 255, .08); color: var(--green-light); }
.ep-tiles li:nth-child(2) .ep-ti { color: var(--blue-light); }
.ep-tiles li:nth-child(3) .ep-ti { color: var(--orange-light); }
.ep-tl { font-size: 0.8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--on-navy-muted); }
.ep-tiles strong { font-family: var(--font-display); font-size: 1.55rem; color: #FFFFFF; line-height: 1.15; }
.ep-ts { font-size: 0.85rem; color: var(--on-navy-muted); }

/* Kuvaajat */
.ep-bars { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.ep-bar { background: #FFFFFF; border-radius: 12px; padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; }
.ep-bt { font-weight: 700; color: var(--navy); font-size: 0.95rem; }
.ep-stack, .ep-meter { display: flex; height: 16px; border-radius: 999px; overflow: hidden; background: var(--ground-soft); }
.ep-stack .s-el, .ep-legend2 i.s-el { background: var(--blue); }
.ep-stack .s-he, .ep-legend2 i.s-he { background: var(--orange); }
.ep-meter span { background: linear-gradient(90deg, var(--green), var(--orange)); border-radius: 999px; }
.ep-legend2 { display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 0.875rem; color: var(--muted); }
.ep-legend2 span { display: inline-flex; align-items: center; gap: 6px; }
.ep-legend2 i { width: 10px; height: 10px; border-radius: 3px; display: inline-block; }
.ep-legend2 b { color: var(--navy); }
.ep-bn { font-size: 0.875rem; color: var(--text); }

/* Kehityskohteet kortteina */
.ep-h2 { font-size: 1.3rem; margin-top: 4px; }
.ep-cards { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr)); gap: 12px; }
.ep-cards li { background: #FFFFFF; border-radius: 12px; padding: 18px; display: grid; grid-template-columns: auto 1fr; gap: 14px; align-items: start; border: 1px solid var(--border); }
.ep-cards li.is-first { border: 2px solid var(--orange); }
.ep-ci { position: relative; width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; background: var(--ground-soft); color: var(--navy); }
.ep-cards li.is-first .ep-ci { background: var(--orange); color: var(--navy); }
.ep-ci b { position: absolute; top: -8px; left: -8px; width: 24px; height: 24px; border-radius: 50%; background: var(--navy); color: #FFFFFF; font-size: 0.8rem; display: grid; place-items: center; }
.ep-cards div { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.ep-cards strong { color: var(--navy); font-size: 1.05rem; }
.ep-cards .ep-why { font-size: 0.875rem; color: var(--muted); }
.ep-cards .ep-next { font-size: 0.925rem; line-height: 1.45; }

/* Avattavat lisätiedot */
.ep-more { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(300px, 100%), 1fr)); gap: 12px; align-items: start; }
.ep-more details { background: #FFFFFF; border-radius: 12px; padding: 0 20px; }
.ep-more summary { cursor: pointer; list-style: none; padding: 16px 28px 16px 0; font-weight: 700; color: var(--navy); position: relative; }
.ep-more summary::-webkit-details-marker { display: none; }
.ep-more summary::after { content: ""; position: absolute; right: 4px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 2px solid var(--navy); border-bottom: 2px solid var(--navy); transform: rotate(45deg); }
.ep-more details[open] summary::after { transform: rotate(-135deg); margin-top: -1px; }
.ep-more details > *:last-child { padding-bottom: 18px; }
@media print { html.ep-print .ep-more details { display: block; } html.ep-print .ep-tiles li { background: #FFFFFF !important; color: #001038 !important; border: 1px solid #CCCFD7; } html.ep-print .ep-tiles strong { color: #001038 !important; } }
.chip--card span { display: flex; width: 100%; }
@media (max-width: 600px) {
  .ep-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ep-tiles li { grid-template-columns: 1fr; padding: 14px; }
  .ep-ti { display: none; }
  .ep-tiles strong { font-size: 1.3rem; }
}

/* ===== Päivitys 6: tiiviys, osaamisikonit, blogipainike ===== */
:root { --section: 60px; }
@media (max-width: 900px) { :root { --section: 52px; } }
@media (max-width: 600px) { :root { --section: 44px; } }
.hero--themes { padding-bottom: 56px; }
.hero { min-height: 0; }
.stack { gap: 22px; }
.sec-head { gap: 10px; }
.path { gap: 16px; }
.path-step .ico { margin-bottom: 8px; }
.pricing { margin-top: 0; }
.person-row, .value-cards { gap: 16px; }
.value-card { padding: 26px 24px; }
.big-facts li { padding: 20px 24px; }
.about-intro { gap: 24px 56px; }
.blog-grid { gap: 20px; }
.faq summary { padding: 16px 40px 16px 0; }

/* Uutiset ja blogi -painike: sama muoto kuin Ota yhteyttä, vihreänä */
.main-nav a.btn.nav-page { color: var(--navy); gap: 6px; }
.main-nav a.btn.nav-page:hover { color: var(--navy); }
.main-nav a.btn.nav-page[aria-current="page"] { color: var(--navy); text-decoration: none; box-shadow: inset 0 0 0 2px #FFFFFF; }
.main-nav a.btn.nav-page::after { content: none !important; }

/* Osaaminen ikoneineen (kuten yritysesitteessä) */
.skill-list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 8px; }
.skill-list li { display: flex; align-items: center; gap: 12px; font-weight: 700; color: var(--navy); }
.sk-ic { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: #FFFFFF; flex: none; }
.sk-sun .sk-ic { background: #F0A866; color: var(--navy); } /* Hehku 60 % */
.sk-bat .sk-ic { background: var(--blue); }
.sk-chp .sk-ic { background: #C74F00; } /* Hehku vaalealle */
.sk-fire .sk-ic { background: var(--orange); }
.sk-bio .sk-ic { background: var(--green); }
.sk-h2 .sk-ic { background: #95B0FF; color: var(--navy); } /* Virta 60 % */

/* Palvelut tiiviinä rivinä */
.svc-chips { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(230px, 100%), 1fr)); gap: 10px; }
.svc-chips li { background: #FFFFFF; border-radius: 10px; padding: 14px 16px; font-size: 0.9rem; color: var(--muted); line-height: 1.45; border-left: 3px solid var(--green); }
.svc-chips li:nth-child(2) { border-color: var(--blue); }
.svc-chips li:nth-child(3) { border-color: var(--orange); }
.svc-chips li:nth-child(4) { border-color: var(--navy); }
.svc-chips strong { display: block; color: var(--navy); font-size: 0.975rem; }
.svc-chips a { color: inherit; text-decoration: none; display: block; }
.svc-chips a:hover strong { text-decoration: underline; }

/* ===== Päivitys 7 ===== */
/* Hero: kicker kahdelle riville, väljempi painikerivi, yksi iso painike korttien alla */
.kicker--2 span { display: block; }
.kicker--2 span + span { color: #FFFFFF; opacity: .85; margin-top: 2px; }
.hero .btn-row { gap: 16px 24px; }
.hero-cta { display: flex; justify-content: center; margin-top: 28px; position: relative; z-index: 1; }
.btn--lg { min-height: 60px; padding: 16px 36px; font-size: 1.1rem; gap: 10px; }
.btn--lg svg { transition: transform .25s ease; }
.btn--lg:hover svg { transform: translateX(4px); }
.hero-theme { cursor: pointer; }
/* Vinoneliöt: koko heron korkuinen alue (ei leikkausta parallaksissa), sijainnit pikseleinä */
.hero--themes .hero-shapes { bottom: 0; height: auto; }
.hero--themes .hero-shape--a { top: 40px; }
.hero--themes .hero-shape--b { top: 250px; }
/* Kyselyn info-rivit */
.ep-info { font-size: 0.9rem; color: var(--blue-text); background: #EEF2FA; border-radius: 8px; padding: 8px 12px; align-self: flex-start; }
.ep-info[hidden] { display: none; }
.ep-chips--cards { grid-template-columns: repeat(auto-fill, minmax(min(140px, 100%), 1fr)); }
.chip--card span { min-height: 92px; }
/* Koulutuksen aiheet */
.topics strong { color: #FFFFFF; }

/* ===== Päivitys 8: typografia, virtauskaavio, tiivis toimenpidelista ===== */
/* Yhtenäinen otsikkoasteikko */
h2, .sec-head h2 { font-size: clamp(1.8rem, 2.8vw, 2.4rem); }
.page-hero h1 { font-size: clamp(2.2rem, 4vw, 3.2rem); }
h2.h2-small, .price-card--pilot h2 { font-size: clamp(1.5rem, 2.2vw, 1.85rem); }
h3, .sub-h, .ep-h2 { font-size: 1.3rem; line-height: 1.25; }
.sub-h--center { font-size: 1.45rem; }
.path-step h3 { font-size: 1.25rem; }
.value-card strong, .person-panel-l .sub-h { font-size: 1.3rem; }
.blog-card h2, .blog-card h3 { font-size: 1.2rem; }
.hero-theme .theme-q { font-size: 1.35rem; }
.kicker { font-size: 0.8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; }
.hero .kicker { font-size: 0.8rem; }
.kicker--2 span + span { font-size: 0.85rem; letter-spacing: .06em; margin-top: 4px; }
.ep-legend { font-size: 1.35rem; }
.ep-qt { font-size: 1rem; }
.lead { font-size: 1.1rem; }

/* Hero: selvä väli painikkeiden välissä */
.hero .btn-row { column-gap: 48px; row-gap: 16px; }
@media (max-width: 600px) { .hero .btn-row { row-gap: 14px; } }

/* Pilotti vasemmalle, hinta oikealle */
.pricing { grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); }
@media (max-width: 800px) { .pricing { grid-template-columns: 1fr; } }

/* Kooste: virtauskaavio ja mittari */
.ep-viz { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 12px; align-items: stretch; }
@media (max-width: 860px) { .ep-viz { grid-template-columns: 1fr; } }
.ep-flow svg { width: 100%; height: auto; overflow: visible; }
.ep-flow .sk-n { font: 700 14px var(--font-body); fill: var(--navy); }
.ep-flow .sk-s { font: 400 12px var(--font-body); fill: var(--muted); }
.ep-flow .sk-t { font: 700 22px var(--font-display); fill: var(--navy); }
.ep-meter { position: relative; overflow: visible; }
.ep-meter span { border-radius: 999px; }
.ep-fut { position: absolute; top: -5px; width: 3px; height: 26px; border-radius: 2px; background: var(--navy); }
/* Mitä voimme tehdä yhdessä */
.ep-todo { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(280px, 100%), 1fr)); gap: 10px; counter-reset: t; }
.ep-todo li { counter-increment: t; display: flex; gap: 12px; align-items: center; background: #FFFFFF; border: 1px solid var(--border); border-radius: 12px; padding: 12px 14px; }
.ep-todo li.is-first { border: 2px solid var(--orange); }
.ep-todo .ep-ci { width: 42px; height: 42px; border-radius: 12px; flex: none; }
.ep-todo li.is-first .ep-ci { background: var(--orange); }
.ep-todo div { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.ep-todo strong { color: var(--navy); font-size: 0.975rem; }
.ep-todo strong::before { content: counter(t) ". "; color: var(--muted); font-weight: 700; }
.ep-todo span:not(.ep-ci) { font-size: 0.875rem; color: var(--muted); line-height: 1.4; }
.section .price-card--pilot .kicker { color: var(--green-light); }

/* ===== Päivitys 9 ===== */
.hero .kicker--2 span { font-size: 1rem; letter-spacing: .08em; }
.hero .kicker--2 span + span { font-size: 1.15rem; letter-spacing: .04em; text-transform: none; font-weight: 700; opacity: 1; margin-top: 6px; }
.btn--blue { background: var(--blue); color: var(--navy); }
.btn--blue:hover, .btn--blue:focus-visible { background: var(--blue-light); color: var(--navy); box-shadow: 0 10px 24px rgba(79, 123, 255, .35); }
.mobile-bar .btn--blue { border: 0; }
.chip--card span { min-height: 84px; }

/* ===== Päivitys 10: vaiheittainen yhteydenotto ===== */
.cf { display: flex; flex-direction: column; gap: 14px; max-width: 960px; margin: 0 auto; width: 100%; background: transparent; padding: 0; }
.cf-step { border: 0; margin: 0; padding: 22px 24px; background: #FFFFFF; border-radius: 14px; min-width: 0; transition: opacity .3s ease, box-shadow .3s ease; border: 1px solid var(--border); }
.cf-step[disabled] { opacity: .45; background: var(--ground-tint); }
.cf-step[disabled] .cf-body { pointer-events: none; filter: grayscale(1); }
.cf-step.is-new { box-shadow: 0 0 0 3px var(--green-light); }
.cf-head { display: flex; align-items: center; gap: 12px; font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; color: var(--navy); padding: 0; margin-bottom: 14px; float: left; width: 100%; }
.cf-head + * { clear: both; }
.cf-no { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--navy); color: #FFFFFF; font-size: 1rem; flex: none; }
.cf-step.is-open:not(.is-done) .cf-no { background: var(--orange); color: var(--navy); }
.cf-step.is-done .cf-no { background: var(--green); color: #FFFFFF; font-size: 0; }
.cf-step.is-done .cf-no::before { content: "✓"; font-size: 1rem; }
.cf-step[disabled] .cf-no { background: var(--muted); }
.cf-body { display: flex; flex-direction: column; gap: 12px; }
.cf-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 18px; }
.cf-grid .full { grid-column: 1 / -1; }
@media (max-width: 600px) { .cf-grid { grid-template-columns: 1fr; } }
.cf-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.cf-cal { position: relative; display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 10px 18px; border-radius: var(--radius-btn); background: var(--navy); color: #FFFFFF; font-weight: 700; cursor: pointer; }
.cf-cal input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; cursor: pointer; }
.cf-cal:hover { background: #334060; }
.cf-cal svg { color: var(--green-light); }
.cf-times { gap: 6px; }
.cf-times .chip span { min-height: 40px; padding: 6px 14px; }
.cf-picked { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.cf-picked:empty { display: none; }
.cf-picked li { display: inline-flex; align-items: center; gap: 8px; background: #6CB789; color: var(--navy); border-radius: 999px; padding: 6px 8px 6px 14px; font-weight: 700; font-size: 0.925rem; }
.cf-picked button { all: unset; cursor: pointer; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; background: #FFFFFF; color: var(--navy); font-size: 1rem; }
.cf-note { font-size: 0.875rem; color: var(--muted); }
.cf-hidden { position: absolute !important; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.cf-import { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }
.cf-import .btn { gap: 10px; }
.cf .btn--lg.full { justify-self: start; }

/* Päivitys 11: kalenteripainike */
.cf-calwrap { position: relative; display: inline-flex; }
.cf-cal { border: 0; font: inherit; }
.cf-date { position: absolute; left: 0; bottom: 0; width: 100%; height: 100%; opacity: 0; pointer-events: none; }
.cf-calwrap.is-native .cf-date { position: static; opacity: 1; pointer-events: auto; width: auto; height: 48px; margin-left: 10px; border: 1px solid var(--input-border); border-radius: var(--radius-btn); padding: 0 12px; font: inherit; }

/* Päivitys 12: ajanvarauksen vaihtoehtorivit */
.cf-slots { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.cf-slot { display: grid; grid-template-columns: 110px auto minmax(150px, 220px); gap: 10px 14px; align-items: center; padding: 10px 12px; border-radius: 10px; background: var(--ground-tint); border: 1px solid var(--border); }
.cf-slot[hidden] { display: none; }
.cf-slot.is-set { background: #F5F7FC; border-color: var(--green-light); } /* Selkeys 60 % + vihreä reuna */
.cf-slot-no { font-weight: 700; color: var(--navy); font-size: 0.925rem; }
.cf-slot.is-set .cf-slot-no::after { content: " ✓"; color: var(--green-text); }
.cf-slot .cf-cal { min-height: 44px; padding: 8px 16px; justify-content: flex-start; min-width: 200px; }
.cf-klo { min-height: 44px; border: 1px solid var(--input-border); border-radius: var(--radius-btn); padding: 0 12px; font: inherit; background: #FFFFFF; color: var(--navy); }
.cf-slot-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.cf-slot-actions .btn[hidden] { display: none; }
@media (max-width: 600px) {
  .cf-slot { grid-template-columns: 1fr; }
  .cf-slot .cf-cal { width: 100%; min-width: 0; }
  .cf-calwrap { display: flex; }
}
@media (min-width: 601px) { .cf-slot { grid-template-columns: 110px max-content 200px; justify-content: start; } }

/* Päivitys 13: pilotin 0 € -merkki */
.price-card--pilot { position: relative; overflow: visible; }
.price-badge {
  position: absolute; top: -22px; right: 24px; z-index: 2;
  display: grid; place-items: center; width: 104px; height: 104px; border-radius: 50%;
  background: var(--orange); color: var(--navy); font-family: var(--font-display); font-weight: 700; font-size: 2.4rem; line-height: 1;
  box-shadow: 0 0 0 6px rgba(230, 110, 0, .25), 0 12px 28px rgba(0, 16, 56, .35); transform: rotate(-8deg);
  animation: badge-pulse 2.6s ease-in-out infinite;
}
@keyframes badge-pulse { 0%, 100% { box-shadow: 0 0 0 6px rgba(230, 110, 0, .25), 0 12px 28px rgba(0, 16, 56, .35); } 50% { box-shadow: 0 0 0 14px rgba(230, 110, 0, .08), 0 12px 28px rgba(0, 16, 56, .35); } }
@media (prefers-reduced-motion: reduce) { .price-badge { animation: none; } }
@media (max-width: 600px) { .price-badge { width: 80px; height: 80px; font-size: 1.9rem; top: -18px; right: 14px; } }
.price-card--pilot h2 { padding-right: 110px; }
@media (max-width: 600px) { .price-card--pilot h2 { padding-right: 80px; } }
.pricing { margin-top: 24px; }

/* Päivitys 14: hinta- ja pilottikorttien yläotsikot suuremmiksi */
.pricing .price-card .kicker { font-size: 1.05rem; letter-spacing: .06em; line-height: 1.35; }
@media (max-width: 600px) { .pricing .price-card .kicker { font-size: 0.95rem; } }

/* Päivitys 15: kyselyn siirtymispainikkeet selkeästi erottuviksi */
.ep-nav { padding-top: 18px; margin-top: 4px; border-top: 2px solid var(--border); align-items: center; }
.ep-btn-next {
  min-height: 56px; padding: 14px 34px; font-size: 1.1rem; gap: 10px;
  box-shadow: none; /* hehku vain hoverissa (vaalean pohjan painikesääntö) */
}
.ep-btn-next span { transition: transform .2s ease; }
.ep-btn-next:hover span { transform: translateX(4px); }
.ep-btn-prev {
  min-height: 56px; padding: 14px 26px; font-size: 1.05rem; gap: 8px;
  background: var(--navy); color: #FFFFFF;
}
.ep-btn-prev:hover, .ep-btn-prev:focus-visible { background: #334060; color: #FFFFFF; }
@media (max-width: 600px) {
  .ep-nav { flex-wrap: nowrap; gap: 10px; }
  .ep-btn-prev { padding: 14px 16px; flex: 0 0 auto; }
  .ep-btn-next { flex: 1 1 auto; padding: 14px 18px; }
}
.ep-nav:has(#ep-next[hidden]) { display: none; }
.ep-wrap:has(.ep.is-js) .ep-progress { grid-template-columns: repeat(4, 1fr); }

/* Päivitys 16: vaihepalkki painikkeiksi */
.ep-wrap:has(.ep.is-js) .ep-progress { gap: 10px; counter-reset: vaihe; margin-bottom: 22px; }
.ep-progress li { counter-increment: vaihe; }
.ep-progress li::before { content: none !important; }
.ep-progress button {
  display: flex; flex-direction: row; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 8px 14px; border-radius: 12px;
  background: #FFFFFF; border: 2px solid var(--border); color: var(--navy);
  font-size: 1rem; font-weight: 700; box-shadow: 0 2px 6px rgba(0, 16, 56, .08);
  transition: background-color .2s ease, border-color .2s ease, box-shadow .2s ease, transform .2s ease;
}
.ep-progress button::before {
  content: counter(vaihe); flex: none; width: 28px; height: 28px; border-radius: 50%;
  display: grid; place-items: center; font-size: 0.875rem; background: var(--ground-soft); color: var(--navy);
}
.ep-progress li:last-child:not(.is-active) button::before { content: "≡"; }
.ep-progress button:hover { border-color: var(--navy); box-shadow: 0 6px 16px rgba(0, 16, 56, .14); transform: translateY(-1px); }
.ep-progress li.is-active button { background: var(--navy); border-color: var(--navy); color: #FFFFFF; box-shadow: 0 8px 20px rgba(0, 16, 56, .25); }
.ep-progress li.is-active button::before { background: var(--orange); color: var(--navy); }
.ep-progress li.is-done button { border-color: var(--green); color: var(--green-text); }
.ep-progress li.is-done button::before { content: "✓"; background: var(--green); color: #FFFFFF; }
@media (prefers-reduced-motion: reduce) { .ep-progress button { transition: none; } .ep-progress button:hover { transform: none; } }
@media (max-width: 600px) {
  .ep-wrap:has(.ep.is-js) .ep-progress { gap: 6px; }
  .ep-progress button { font-size: 0; gap: 0; min-height: 44px; padding: 6px; }
  .ep-progress button::before { font-size: 0.875rem; }
}

/* Blogikirjoitusten logotyyppi (wordmark) kirjoituksen ylä- ja alapalkissa */
.np-logo img[src*="norgrid-wordmark"] { height: 28px; width: auto; max-width: none; }
.np-foot .np-logo img[src*="norgrid-wordmark"] { height: 22px; }

/* Päiväkentän varanäkymä (selaimet ilman showPickeria): reunaväri ohjeiston mukaan */
.cf-date, .cf-hidden { border-color: var(--input-border); }

/* Kyselyn koosteen kehotus: oranssi painike yhteydenottolomakkeeseen */
.ep-cta { display: flex; justify-content: center; margin-top: 8px; }
.ep-cta .btn { text-align: center; }

/* Oranssit painikkeet vaalealla pohjalla: ohjeiston Hehku vaalealle #C74F00 + valkoinen teksti (kontrasti 4,6:1).
   Hover vaalenee Hehkuun ja tekstiksi Kallio, kuten tummalla pohjalla. */
.ep-wrap .btn--primary, .cf-step .btn--primary { background: #C74F00; color: #FFFFFF; }
.ep-wrap .btn--primary:hover, .ep-wrap .btn--primary:focus-visible,
.cf-step .btn--primary:hover, .cf-step .btn--primary:focus-visible { background: #E66E00; color: var(--navy); }
.ep-wrap .btn--primary:hover, .cf-step .btn--primary:hover { box-shadow: 0 10px 24px rgba(199, 79, 0, 0.30); }

/* FI / EN -kielivalitsin yläpalkissa: kapeammilla työpöytäleveyksillä tiiviimpi väli, jotta valikko mahtuu yhdelle riville */
@media (min-width: 901px) and (max-width: 1279px) { .main-nav { column-gap: 18px; } }
@media (min-width: 901px) and (max-width: 999px) { .main-nav { column-gap: 12px; } }

/* Blogikorttien kansikuvan vinoneliöt hehkuvat omaa väriään, kun korttia hoveroidaan (kuten heron muodot) */
.blog-card .cover-shape { transition: filter .35s ease; }
@media (hover: hover) and (pointer: fine) {
  .blog-card:hover .cover-shape,
  .blog-card:focus-within .cover-shape { filter: brightness(1.25) drop-shadow(0 0 7px var(--cover-glow, #95B0FF)); }
}

/* Heron pitkä painike: mobiilissa rivinvaihto kiinteästä kohdasta (Voisiko yrityksesi / energiaratkaisuja optimoida?), normaali fonttikoko */
.br-mobile { display: none; }
@media (max-width: 600px) {
  .br-mobile { display: inline; }
  .btn--twoline { text-align: center; line-height: 1.35; }
}
@media (max-width: 359px) { .btn--twoline { padding-left: 12px; padding-right: 12px; font-size: 1rem; } }

/* ---------- Hero kahdessa vaiheessa (työpöytä, motion.js lisää luokan html.hero-pin) ----------
   Hero täyttää näkymän ja pysyy paikallaan vieritettäessä: ensin teksti ja painikkeet,
   sitten teemakortit ja "Kokeile laskuriamme". Hero alkaa yläpalkin alta (--hdr = yläpalkin korkeus). */
html.hero-pin .hero--themes {
  margin-top: calc(-1 * var(--hdr, 129px));
  height: 100vh; height: 100svh; min-height: 0;
  padding-top: calc(var(--hdr, 129px) + 24px); padding-bottom: 32px;
  display: flex; align-items: center;
}
html.hero-pin .hero--themes > .wrap { display: grid; align-items: center; width: 100%; }
html.hero-pin .hero--themes > .wrap > .stack,
html.hero-pin .hero--themes > .wrap > .hero-phase2 { grid-area: 1 / 1; }
html.hero-pin .hero-phase2 .hero-themes { margin-top: 0; }
html.hero-pin .hero--themes .hero-shapes { top: var(--hdr, 129px); bottom: 0; height: auto; }
/* Vaiheet ovat päällekkäin: vain näkyvissä olevat elementit ottavat hiiren vastaan */
html.hero-pin .hero-phase2 { pointer-events: none; }
html.hero-pin .hero-phase2 * { pointer-events: none; }
html.hero-pin .hero-phase2 a, html.hero-pin .hero-phase2 .hero-theme { pointer-events: auto; }
html.hero-pin .hero--themes > .wrap > .stack { pointer-events: none; }
html.hero-pin .hero--themes > .wrap > .stack a { pointer-events: auto; }

/* ---------- Heron yläotsikot: Rajdhani Bold, vihreä, vaihtuvat vuorotellen (motion.js lisää html.kicker-rotate) ---------- */
.hero .kicker--2 span,
.hero .kicker--2 span + span {
  font-family: var(--font-display); font-weight: 700; color: var(--green-light);
  font-size: 1.45rem; line-height: 1.25; letter-spacing: .01em; text-transform: none; opacity: 1;
}
.hero .kicker--2 span + span { margin-top: 4px; }
html.kicker-rotate .hero .kicker--2 { display: grid; overflow: hidden; padding-bottom: .1em; }
html.kicker-rotate .hero .kicker--2 span { grid-area: 1 / 1; margin: 0; }
@media (max-width: 600px) { .hero .kicker--2 span, .hero .kicker--2 span + span { font-size: 1.1rem; } }

/* Heron tekstipalstaan lisää tyhjää tilaa elementtien väliin (skaalautuu näytön korkeuden mukaan) */
.hero--themes .stack { gap: clamp(22px, 3.6vh, 36px); }
.hero--themes .stack > .btn-row { margin-top: clamp(4px, 1.4vh, 14px); }
@media (max-width: 600px) { .hero--themes .stack { gap: 24px; } .hero--themes .stack > .btn-row { margin-top: 6px; } }

/* ---------- Heron painikkeet: logon i-kirjaimesta johdettu viisto rajaus (työpöytä) ----------
   Painikkeet muodostavat yhden palkin, jonka halkaisee 45° nouseva rako (kuten logon i).
   --slant = viiston vaakasuora pituus (= painikkeen korkeus, eli 45°), --cut = raon vaakaleveys.
   Viistoreunan puolelle lisätään pehmustetta, jotta teksti mahtuu kokonaan. Mobiilissa ennallaan. */
@media (min-width: 901px) {
  .hero--themes .btn-row { --bh: 56px; --slant: var(--bh); --cut: 34px; flex-wrap: nowrap; gap: 0; width: max-content; max-width: none; }
  .hero--themes .btn-row .btn { height: var(--bh); min-height: 0; padding-top: 0; padding-bottom: 0; white-space: nowrap; }
  /* Chrome (esim. 216 % näyttöskaalaus) jätti hoverliikkeen jälkeen viistorajauksen piirtämättä ja näytti
     painikkeen suorakaiteena: pysyvä oma piirtokerros pitää rajauksen aina voimassa */
  .hero--themes .btn-row .btn { will-change: transform; }
  .hero--themes .btn-row .btn:first-child {
    border-radius: var(--radius-btn) 0 0 var(--radius-btn);
    padding-right: calc(24px + var(--slant)); padding-left: 28px;
    clip-path: polygon(0 0, 100% 0, calc(100% - var(--slant)) 100%, 0 100%);
    margin-right: calc(var(--cut) - var(--slant));
  }
  .hero--themes .btn-row .btn:last-child {
    border-radius: 0 var(--radius-btn) var(--radius-btn) 0;
    padding-left: calc(24px + var(--slant)); padding-right: 28px;
    clip-path: polygon(var(--slant) 0, 100% 0, 100% 100%, 0 100%);
  }
  /* Rajaus leikkaa varjot ja ulkoreunan fokuskehyksen: fokus näytetään painikkeen sisällä */
  .hero--themes .btn-row .btn:hover { box-shadow: none; }
  .hero--themes .btn-row .btn:focus-visible { outline: 3px solid #FFFFFF; outline-offset: -6px; }
}

/* Blogikorttien kolmivärinen raita ja kategoriatagit hohtavat omaa väriään hoverissa (kuten kansikuvan vinoneliöt) */
.blog-card .cover svg rect[y="176"] { transition: filter .35s ease; }
.blog-card .cat-tags li { transition: box-shadow .35s ease, filter .35s ease; }
@media (hover: hover) and (pointer: fine) {
  .blog-card:hover .cover svg rect[y="176"][fill="#0B9341"], .blog-card:focus-within .cover svg rect[y="176"][fill="#0B9341"] { filter: brightness(1.3) drop-shadow(0 0 6px #6DBE8D); }
  .blog-card:hover .cover svg rect[y="176"][fill="#2457E6"], .blog-card:hover .cover svg rect[y="176"][fill="#4F7BFF"], .blog-card:focus-within .cover svg rect[y="176"][fill="#2457E6"], .blog-card:focus-within .cover svg rect[y="176"][fill="#4F7BFF"] { filter: brightness(1.3) drop-shadow(0 0 6px #95B0FF); }
  .blog-card:hover .cover svg rect[y="176"][fill="#E66E00"], .blog-card:focus-within .cover svg rect[y="176"][fill="#E66E00"] { filter: brightness(1.2) drop-shadow(0 0 6px #F0A866); }
  .blog-card:hover .cat-tags li, .blog-card:focus-within .cat-tags li { filter: brightness(1.08); }
  .blog-card:hover .cat-tags li.t-green, .blog-card:focus-within .cat-tags li.t-green { box-shadow: 0 0 14px rgba(108, 183, 137, 0.75); }
  .blog-card:hover .cat-tags li.t-blue, .blog-card:focus-within .cat-tags li.t-blue { box-shadow: 0 0 14px rgba(124, 154, 240, 0.75); }
  .blog-card:hover .cat-tags li.t-orange, .blog-card:focus-within .cat-tags li.t-orange { box-shadow: 0 0 14px rgba(221, 149, 102, 0.75); }
}

/* Heron fontit hieman suuremmiksi työpöydällä. Koko rajataan myös näytön korkeuden mukaan,
   jotta lukittu hero mahtuu matalillakin näytöillä. */
@media (min-width: 901px) {
  .hero--themes .stack { max-width: 840px; }
  .hero--themes h1 { font-size: clamp(1.85rem, min(3.7vw, 7vh), 3.3rem); }
  .hero--themes .lead { font-size: clamp(1.0625rem, 2.3vh, 1.2rem); max-width: 700px; }
  .hero--themes .kicker--2 span, .hero--themes .kicker--2 span + span { font-size: clamp(1.45rem, 3.1vh, 1.65rem); }
  .hero-theme .theme-q { font-size: 1.5rem; }
  .hero-theme .theme-a { font-size: 1.0625rem; }
}

/* ---------- FI / EN -kielivalitsin katkaisijana ----------
   Pillerinmuotoinen kisko, jossa vaalea nuppi on valitun kielen kohdalla.
   Klikattaessa nuppi liukuu toisen kielen kohdalle ennen sivun vaihtoa (main.js, data-to). */
.main-nav .lang {
  position: relative; display: inline-flex; align-items: center; gap: 0;
  padding: 3px; border-radius: 999px; font-size: 0; /* piilottaa vanhan "/"-erottimen */
  background: rgba(255, 255, 255, 0.06); border: 1px solid #334060;
}
.main-nav .lang::before {
  content: ""; position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px);
  border-radius: 999px; background: #EEF2FA; box-shadow: 0 2px 8px rgba(0, 0, 0, 0.35);
  transition: transform .25s cubic-bezier(.65, 0, .35, 1);
}
.main-nav .lang:has(a[lang="en"][aria-current="true"])::before { transform: translateX(100%); }
.main-nav .lang[data-to="en"]::before { transform: translateX(100%) !important; } /* klikkaus voittaa nykyisen kielen sijainnin */
.main-nav .lang[data-to="fi"]::before { transform: translateX(0) !important; }
.main-nav .lang a {
  position: relative; z-index: 1; display: inline-flex; align-items: center; justify-content: center;
  min-width: 38px; padding: 5px 9px; border-radius: 999px;
  font-size: 0.8rem; font-weight: 700; letter-spacing: .04em; line-height: 1; text-decoration: none !important;
  color: var(--on-navy-muted) !important; transition: color .25s ease;
}
.main-nav .lang a[aria-current="true"] { color: var(--navy) !important; }
.main-nav .lang a:not([aria-current="true"]):hover,
.main-nav .lang a:not([aria-current="true"]):focus-visible { color: #FFFFFF !important; }
.main-nav .lang[data-to] a[aria-current="true"] { color: var(--on-navy-muted) !important; }
.main-nav .lang[data-to] a:not([aria-current="true"]) { color: var(--navy) !important; }
@media (max-width: 900px) {
  .main-nav .lang { align-self: flex-start; min-height: 0; margin: 12px 0 4px; }
  .main-nav .lang a { min-height: 40px !important; min-width: 52px !important; font-size: 0.95rem; }
}
@media (prefers-reduced-motion: reduce) { .main-nav .lang::before { transition: none; } }

/* ---------- Ei versaaleja: pienet otsikot Rajdhani Boldilla, vain iso alkukirjain ----------
   Rajdhani on Robotoa pienempi samalla pistekoolla, joten kokoa kasvatetaan hieman. */
.kicker, .ep-count, .ep-gt, .ep-tl, .kf-title, .path-no, .solution .sol-tag, .blog-card .cover-label {
  font-family: var(--font-display); font-weight: 700; text-transform: none; letter-spacing: .01em;
}
.kicker { font-size: 1.1rem; }
.ep-count { font-size: 1.05rem; }
.ep-gt, .ep-tl { font-size: 1rem; }
.kf-title, .path-no, .solution .sol-tag { font-size: 1.1rem; }
.blog-card .cover-label { font-size: 1.3rem; }
.pricing .price-card .kicker { letter-spacing: .01em; font-size: 1.2rem; }
@media (max-width: 600px) { .pricing .price-card .kicker { font-size: 1.1rem; } }

/* ---------- Heron alalaidan vinoneliökuvio (laidasta laitaan) ----------
   Lomittaiset pyöristetyt vinoneliöt, jotka häipyvät ylöspäin läpinäkyviksi. Kuviotiili SVG:nä:
   kaksi neliötä tiilessä (keskipisteet 1/4 ja 3/4), jolloin rivit asettuvat lomittain. */
.hero-pattern {
  position: absolute; left: 0; right: 0; bottom: 0; z-index: 0;
  height: clamp(150px, 26vh, 260px); pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='56' viewBox='0 0 84 56'%3E%3Cg fill='%23667088'%3E%3Crect x='8.7' y='1.7' width='24.6' height='24.6' rx='4.5' transform='rotate(45 21 14)'/%3E%3Crect x='50.7' y='29.7' width='24.6' height='24.6' rx='4.5' transform='rotate(45 63 42)'/%3E%3Crect x='8.7' y='57.7' width='24.6' height='24.6' rx='4.5' transform='rotate(45 21 70)'/%3E%3Crect x='50.7' y='-26.3' width='24.6' height='24.6' rx='4.5' transform='rotate(45 63 -14)'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 84px 56px; background-repeat: repeat; background-position: center bottom;
  opacity: .55;
  -webkit-mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
  mask-image: linear-gradient(to top, #000 0%, rgba(0, 0, 0, .55) 45%, transparent 100%);
}
@media (max-width: 600px) { .hero-pattern { background-size: 60px 40px; height: 140px; } }
/* Canvas-versio (motion.js): taustakuva pois, peittävyys hoidetaan piirrossa */
.hero-pattern.is-canvas { background-image: none; opacity: 1; }
.hero-pattern canvas { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
/* Kuvio hieman alemmas: alin rivi jää osittain heron alareunan taakse */
.hero-pattern { bottom: -44px; }
@media (max-width: 600px) { .hero-pattern { bottom: -30px; } }
/* Heron tekstit hieman ylemmäs: keskitetty sisältö nostetaan alamarginaalilla (huomioitu motion.js:n mahtumistarkistuksessa) */
html.hero-pin .hero--themes > .wrap { margin-bottom: 9vh; }

/* Heron teemakortit eivät ole linkkejä: ei osoitinta eikä hover-nostoa */
.hero-theme { cursor: default; }
.hero-theme:hover { background: #17264A; transform: none; }

/* Teemakorttien kallistus (motion.js): GSAP hoitaa transformin, valoheijastus seuraa osoitinta */
.hero-theme { position: relative; transition: background-color .25s ease, border-color .25s ease; will-change: transform; }
.hero-theme::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.10), transparent 55%);
  opacity: 0; transition: opacity .3s ease;
}
.hero-theme.is-tilt::after { opacity: 1; }

/* Yhteistyökumppanit: neljä korttia aina 2 × 2 (mobiilissa allekkain) */
@media (min-width: 760px) { .partner-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Kumppanikortit: listat alkavat samalta tasolta, linkki kortin alareunaan */
.partner p:last-of-type { flex-grow: 0; }
.partner .partner-links { margin-top: auto; padding-top: 6px; }

/* Arvomme-kortit: kallistus kuten heron korteissa (motion.js) ja kuvake brändin vinoneliössä */
.value-card { will-change: transform; }
.value-card::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 1;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(0, 16, 56, 0.05), transparent 55%);
  opacity: 0; transition: opacity .3s ease;
}
.value-card.is-tilt::before { opacity: 1; }
.value-card .ico { position: relative; width: 64px; height: 64px; border-radius: 0; background: none; margin: -2px 0 2px -4px; }
.value-card .ico::before {
  content: ""; position: absolute; inset: 10px; border-radius: 12px; background: var(--accent);
  transform: rotate(45deg); box-shadow: 0 6px 16px -6px var(--accent);
}
.value-card .ico svg { position: relative; z-index: 1; }

/* Yhteistyökumppanien kortit: kallistus kuten heron korteissa (motion.js) */
.partner { position: relative; }
.partner::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none;
  background: radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.7), transparent 55%);
  opacity: 0; transition: opacity .3s ease;
}
.partner.is-tilt::before { opacity: 1; }
.partner > * { position: relative; }

/* Footerin logo: valoliuku kulkee kunkin brändivärin viivaa pitkin vasemmalta oikealle (main.js) */
.logo-flow { position: relative; display: block; width: fit-content; }
.logo-flow-svg { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.logo-flow-run { stroke-dasharray: 0.28 3; stroke-dashoffset: 0.4; animation: logo-run 7s cubic-bezier(.4, 0, .6, 1) infinite; }
.logo-flow-blue { animation-delay: .6s; }
.logo-flow-green { animation-delay: 1.2s; }
@keyframes logo-run {
  0% { stroke-dashoffset: 0.4; opacity: 1; }
  38% { opacity: 1; }
  56% { opacity: 0; }
  60%, 100% { stroke-dashoffset: -1; opacity: 0; }
}
@media (prefers-reduced-motion: reduce) { .logo-flow-svg { display: none; } }

/* Yläpalkin madaltuminen ei siirrä sivun asettelua: puuttuva korkeus korvataan alamarginaalilla (motion.js mittaa) */
.site-header { transition: box-shadow .3s ease, padding .3s ease, margin-bottom .3s ease; }
.site-header.is-scrolled { margin-bottom: var(--hdr-shrink, 0px); }

/* Henkilökortti: LinkedIn, puhelinnumero ja WhatsApp tasaisin välein */
.person-card-dark .li-link ~ a { margin-top: 4px; }
.person-card-dark .li-link, .person-card-dark .person-phone { line-height: 24px; }

/* Kirjoitusten osio-otsikot: numero brändin vinoneliössä (osion väri --ic) */
.np .np-sec .np-ico.np-num { position: relative; width: 46px; height: 46px; border: 0; background: none; border-radius: 0; font-size: 0; }
.np .np-sec .np-ico.np-num::before {
  content: ""; position: absolute; inset: 7px; border-radius: 9px; background: var(--ic, var(--n-blue));
  transform: rotate(45deg); box-shadow: 0 6px 14px -6px var(--ic, var(--n-blue));
}
.np .np-sec .np-ico.np-num b { position: relative; font: 700 16px/1 "Rajdhani", "Bahnschrift", sans-serif; color: #FFFFFF; letter-spacing: .01em; }
@container (max-width: 640px) { .np .np-sec .np-ico.np-num { width: 40px; height: 40px; } .np .np-sec .np-ico.np-num::before { inset: 6px; border-radius: 8px; } }

/* Henkilökortin puhelinnumero: hover ei saa muuttua taustan väriseksi (yleinen a:hover on navy) */
.person-card-dark .person-phone:hover, .person-card-dark .person-phone:focus-visible { color: var(--green-light); text-decoration: underline; text-underline-offset: 4px; }

/* Blogikorttien kuvituskuva: näkyy vasemmassa yläkulmassa, Kallio-tummennus voimistuu
   oikealle (vinoneliöiden alle) ja alas (kortin otsikko) – sama käsittely kuin kirjoitusten kansikuvissa */
.blog-card .cover.has-photo .cover-photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 40%; z-index: 0; transition: transform .6s ease; }
.blog-card .cover.has-photo::before {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(0, 16, 56, .25) 0%, rgba(0, 16, 56, .55) 45%, rgba(0, 16, 56, .92) 80%),
    linear-gradient(0deg, rgba(0, 16, 56, .75) 0%, rgba(0, 16, 56, 0) 60%);
}
.blog-card .cover.has-photo svg { position: relative; z-index: 2; }
.blog-card .cover.has-photo svg > rect[fill="#001038"] { fill: transparent; }
.blog-card .cover.has-photo .cover-label { z-index: 3; }
.blog-card:hover .cover.has-photo .cover-photo { transform: scale(1.04); }
@media (prefers-reduced-motion: reduce) { .blog-card .cover.has-photo .cover-photo { transition: none; } }

/* Pilotin 0 € -merkki brändin vinoneliönä (pyöristetty, 45° käännetty neliö) */
.price-badge {
  width: 120px; height: 120px; top: -30px; right: 20px; border-radius: 0; background: none; box-shadow: none;
  transform: none; animation: none; isolation: isolate;
}
.price-badge::before {
  content: ""; position: absolute; inset: 18px; z-index: -1; border-radius: 18px; background: var(--orange);
  transform: rotate(45deg);
  box-shadow: 0 0 0 6px rgba(230, 110, 0, .25), 0 12px 28px rgba(0, 16, 56, .35);
  animation: badge-pulse 2.6s ease-in-out infinite;
}
@media (prefers-reduced-motion: reduce) { .price-badge::before { animation: none; } }
@media (max-width: 600px) {
  .price-badge { width: 92px; height: 92px; top: -22px; right: 10px; font-size: 1.8rem; }
  .price-badge::before { inset: 14px; border-radius: 14px; }
}

/* Arvomme-korttien koristeneliö oikeaan yläkulmaan */
.value-card::after { top: -36px; bottom: auto; }

/* Kirjoitusten yhteenvetolaatikot: check-merkin tilalla vihreä brändivinoneliö */
.np .np-sum li { padding-left: 26px; }
.np .np-sum li::before { width: 10px; height: 10px; left: 4px; top: .62em; border-radius: 2.5px; background: #0B9341; transform: rotate(45deg); box-shadow: 0 0 0 3px rgba(11, 147, 65, .18); }

/* Kirjoitusten edellinen/seuraava-navigointi */
.post-pager { max-width: 960px; margin: 24px auto 0; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.post-pager a { display: flex; flex-direction: column; gap: 6px; padding: 18px 22px; background: #FFFFFF; border: 1px solid #DFE2E8; border-radius: 12px; color: var(--navy); text-decoration: none; transition: border-color .25s ease, box-shadow .25s ease, transform .25s ease; }
.post-pager a:hover, .post-pager a:focus-visible { border-color: var(--blue); box-shadow: 0 10px 24px rgba(0, 16, 56, .08); transform: translateY(-2px); color: var(--navy); }
.post-pager .pp-next { text-align: right; align-items: flex-end; }
.post-pager .pp-dir { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-display); font-weight: 700; font-size: 1rem; color: var(--green); }
.post-pager .pp-dir svg { transition: transform .25s ease; }
.post-pager .pp-prev:hover .pp-dir svg { transform: translateX(-4px); }
.post-pager .pp-next:hover .pp-dir svg { transform: translateX(4px); }
.post-pager .pp-title { font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; line-height: 1.25; }
@media (max-width: 640px) { .post-pager { grid-template-columns: 1fr; } .post-pager .pp-empty { display: none; } }
@media (prefers-reduced-motion: reduce) { .post-pager a, .post-pager .pp-dir svg { transition: none; } }
/* Yhteenvetolaatikoiden kappaleet: vihreä vinoneliö luettelomerkkinä */
.np .np-sum > p { position: relative; padding-left: 26px; }
.np .np-sum > p::before { content: ""; position: absolute; width: 10px; height: 10px; left: 4px; top: .62em; border-radius: 2.5px; background: #0B9341; transform: rotate(45deg); box-shadow: 0 0 0 3px rgba(11, 147, 65, .18); }

/* Kirjoitusten tekstilistat: pallojen tilalla pienet vihreät vinoneliöt (kuten etusivun listoissa) */
.np .np-sec ul { list-style: none; padding-left: 0; }
.np .np-sec ul li { position: relative; padding-left: 22px; }
.np .np-sec ul li::before { content: ""; position: absolute; left: 3px; top: .68em; width: 7px; height: 7px; border-radius: 2px; background: var(--green, #0B9341); transform: rotate(45deg); }

/* Heron teemakorttien foliointi: kallistuessa brändiväreissä (sininen, oranssi, vihreä) liukuva
   hologrammiheijastus, joka seuraa osoitinta (--mx/--my, motion.js). Teksti pysyy luettavana. */
.hero-theme { overflow: hidden; isolation: isolate; }
.hero-theme::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1;
  background:
    repeating-linear-gradient(-45deg, rgba(255, 255, 255, 0.045) 0 2px, transparent 2px 6px),
    linear-gradient(115deg,
      transparent 18%,
      rgba(79, 123, 255, 0.55) 32%,
      rgba(230, 110, 0, 0.5) 46%,
      rgba(11, 147, 65, 0.55) 60%,
      rgba(79, 123, 255, 0.45) 72%,
      transparent 86%);
  background-size: 100% 100%, 260% 260%;
  background-position: 0 0, var(--mx, 50%) var(--my, 50%);
  mix-blend-mode: screen;
  opacity: 0; transition: opacity .35s ease;
}
.hero-theme.is-tilt::before { opacity: .55; }
.hero-theme > * { position: relative; }
@media (prefers-reduced-motion: reduce) { .hero-theme::before { display: none; } }

/* Arvomme-korttien foliointi kuten heron korteissa: vaalealla pohjalla värit sekoitetaan
   multiply-tilassa, jolloin brändiväreissä liukuva heijastus näkyy pehmeänä sävynä */
.value-card::before {
  background:
    radial-gradient(circle at var(--mx, 50%) var(--my, 50%), rgba(255, 255, 255, 0.55), transparent 45%),
    repeating-linear-gradient(-45deg, rgba(0, 16, 56, 0.025) 0 2px, transparent 2px 6px),
    linear-gradient(115deg,
      transparent 18%,
      rgba(79, 123, 255, 0.34) 32%,
      rgba(230, 110, 0, 0.30) 46%,
      rgba(11, 147, 65, 0.32) 60%,
      rgba(79, 123, 255, 0.27) 72%,
      transparent 86%);
  background-size: 100% 100%, 100% 100%, 200% 200%;
  background-position: 0 0, 0 0, var(--mx, 50%) var(--my, 50%);
  mix-blend-mode: multiply;
  transition: opacity .35s ease;
}
.value-card.is-tilt::before { opacity: .9; }
@media (prefers-reduced-motion: reduce) { .value-card::before { display: none; } }

/* Meistä: Osaaminen, Koulutus ja Työkokemus -otsikoihin brändiväriset alleviivaukset (oranssi, sininen, vihreä) */
.person-panel-l .sub-h { --uline: var(--orange); width: fit-content; padding-bottom: 8px; position: relative; }
.person-panel-l .sub-h::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 3px; border-radius: 3px; background: var(--uline); }
.person-panel-l + .person-panel-l .sub-h { --uline: var(--blue); }
.person-panel-l + .person-panel-l + .person-panel-l .sub-h { --uline: var(--green); }

/* Mobiilissa (≤ 600 px) alalaidan palkissa on jo Soita-painike: heron erillinen Soita-painike piiloon.
   Tableteilla ja tietokoneella alapalkkia ei ole, joten heron painike näkyy niissä. */
@media (max-width: 600px) { .hero .btn-row .btn--blue[href^="tel:"] { display: none; } }
