/* ==========================================================================
   PumppuPro — Design System
   Valkoinen tausta · musta teksti · ekologinen metsänvihreä korostus
   Mobile first. Ei frameworkkeja.
   ========================================================================== */

/* ---------- Design tokens ---------- */
:root {
  /* Vain 3 väriä: brändivihreä (logosta), valkoinen, musta. Ei muita sävyjä, ei häivytyksiä. */
  --green:        #5CA878;
  --green-dark:   #5CA878;   /* sama vihreä – ei erillistä sävyä */
  --green-deep:   #141414;   /* "tumma" osio = musta */
  --green-tint:   #ffffff;   /* ei vaaleita vihreitä taustoja */
  --green-tint-2: #ffffff;
  --green-soft:   #5CA878;
  --green-ring:   rgba(92,168,120,.5);

  --ink:          #15191c;   /* lähes musta leipäteksti */
  --ink-soft:     #3c454b;   /* pehmeämpi musta */
  --muted:        #5d686f;   /* harmaa aputeksti */
  --line:         #e4e8ea;   /* ohut reunaviiva */
  --line-soft:    #eef1f2;

  --white:        #ffffff;
  --paper:        #fbfcfb;

  /* Terävät, neliömäiset kulmat kautta linjan */
  --radius-sm: 2px;
  --radius:    2px;
  --radius-lg: 4px;
  --radius-pill: 2px;
  --radius-round: 999px;  /* vain aidosti pyöreille elementeille (ikonit, badge-renkaat) */

  --shadow-sm: 0 1px 2px rgba(20,25,28,.05);
  --shadow:    0 8px 30px rgba(20,25,28,.07);
  --shadow-lg: 0 20px 50px rgba(20,25,28,.12);
  --shadow-green: 0 10px 24px rgba(20,25,28,.16);  /* neutraali varjo, ei vihreä */

  --maxw: 1160px;
  --gap: clamp(1.5rem, 4vw, 4rem);

  --font: "Quicksand", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-head: "Quicksand", var(--font);

  --header-h: 68px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.65;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, picture { display: block; max-width: 100%; }
img { height: auto; }
a { color: var(--green-dark); text-decoration: none; }
a:hover { color: var(--green); }
ul { list-style: none; padding: 0; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
:focus-visible { outline: 3px solid var(--green-ring); outline-offset: 2px; border-radius: 4px; }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -0.02em; color: var(--ink); font-weight: 700; overflow-wrap: break-word; }
p, li, a, .lead, figcaption { overflow-wrap: break-word; }
h1 { font-size: clamp(2.1rem, 6vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 4.4vw, 2.6rem); }
h3 { font-size: clamp(1.2rem, 2.6vw, 1.5rem); font-weight: 700; }
h4 { font-size: 1.05rem; font-weight: 700; }
p  { color: var(--ink-soft); }
.lead { font-size: clamp(1.05rem, 2.4vw, 1.28rem); color: var(--ink-soft); line-height: 1.6; }
strong { color: var(--ink); font-weight: 700; }

/* ---------- Layout helpers ---------- */
.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 20px; }
.section { padding-block: clamp(3.5rem, 9vw, 6.5rem); }
.section--tint { background: #fff; }
.section--green {
  background: var(--green);  /* yhtenäinen brändivihreä, ei liukuväriä */
  color: var(--ink);
}
.section--green h2, .section--green h3 { color: var(--ink); }
.section--green p { color: var(--ink); }
.center { text-align: center; }
.measure { max-width: 56ch; }
.center .measure { margin-inline: auto; }

/* Pienet "eyebrow"-yläotsikot poistettu sivulta käyttäjän toiveesta */
.eyebrow { display: none !important; }
.eyebrow-OFF {
  align-items: center; gap: .5rem;
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--green-dark);
}
.eyebrow::before { content: ""; width: 22px; height: 2px; background: var(--green); border-radius: 2px; }
.section--green .eyebrow { color: var(--ink); }
.section--green .eyebrow::before { background: var(--ink); }

.section-head { max-width: 60ch; margin-bottom: clamp(2rem, 5vw, 3.25rem); }
.center.section-head { margin-inline: auto; }
.section-head .eyebrow { margin-bottom: .9rem; }
.section-head p { margin-top: .9rem; }

/* ---------- Buttons ---------- */
.btn {
  --btn-bg: var(--green); --btn-fg: #fff;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.5rem; border-radius: var(--radius-pill);
  font-weight: 700; font-size: .98rem; line-height: 1;
  background: rgba(92,168,120,.9); color: var(--btn-fg);
  -webkit-backdrop-filter: blur(10px) saturate(140%);
  backdrop-filter: blur(10px) saturate(140%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.38), 0 6px 18px rgba(20,25,28,.14);
  transition: transform .15s ease, box-shadow .2s ease, background .2s ease;
  white-space: nowrap;
}
.btn svg { width: 18px; height: 18px; }
.btn:hover { color: #fff; transform: translateY(-2px); box-shadow: inset 0 1px 0 rgba(255,255,255,.4), 0 12px 26px rgba(20,25,28,.2); background: rgba(92,168,120,1); }
.btn:active { transform: translateY(0); }
.btn--lg { padding: 1.05rem 1.9rem; font-size: 1.05rem; }
.btn--outline {
  background: transparent; color: var(--ink);
  box-shadow: inset 0 0 0 2px var(--ink);
}
.btn--outline:hover { background: var(--ink); color: #fff; box-shadow: inset 0 0 0 2px var(--ink); transform: translateY(-2px); }
.btn--ghost { background: transparent; color: var(--ink); box-shadow: inset 0 0 0 2px var(--ink); }
.btn--ghost:hover { background: var(--ink); color: #fff; }
.btn--white { background: #fff; color: var(--green); }
.btn--white:hover { background: #fff; color: var(--ink); }
.btn-row { display: flex; flex-wrap: wrap; gap: .8rem; }

.textlink { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--green-dark); }
.textlink svg { width: 17px; height: 17px; transition: transform .15s ease; }
.textlink:hover svg { transform: translateX(3px); }

/* ---------- Skip link (saavutettavuus) ---------- */
.skip-link { position: absolute; left: -9999px; top: 0; z-index: 100; background: var(--green); color: #fff; padding: .7rem 1.1rem; border-radius: 0 0 12px 0; font-weight: 700; }
.skip-link:focus { left: 0; }

/* ---------- Header / Nav ---------- */
/* Kelluva, lasimainen (glass) header: välit ylös ja sivuille */
.site-header {
  position: sticky; top: 14px; z-index: 60;
  margin-top: 14px; background: transparent; border: none;
}
.nav {
  height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  width: calc(100% - clamp(20px, 5vw, 44px));
  max-width: var(--maxw); margin-inline: auto;
  padding-inline: clamp(14px, 2.5vw, 26px);
  background: rgba(255,255,255,.55);
  -webkit-backdrop-filter: blur(18px) saturate(180%);
  backdrop-filter: blur(18px) saturate(180%);
  border: 1px solid rgba(255,255,255,.65);
  border-radius: 4px;
  box-shadow: 0 12px 34px rgba(20,25,28,.12);
}
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.18rem; color: var(--ink); letter-spacing: -.02em; }
.brand:hover { color: var(--ink); }
.brand img { height: 36px; width: auto; }
/* Header käyttää brändivihreää logoa (valkoisella taustalla), footer valkoista logoa. */
.brand .brand-mark { /* fallback SVG logo box */
  width: 38px; height: 38px; border-radius: 10px;
  background: linear-gradient(150deg, var(--green), var(--green-dark));
  display: grid; place-items: center; flex: none;
}
.brand .brand-mark svg { width: 22px; height: 22px; color: #fff; }
.brand b { color: var(--green-dark); }

.nav-links { display: none; align-items: center; gap: .35rem; }
.nav-links a {
  padding: .5rem .8rem; border-radius: var(--radius-pill);
  color: var(--ink-soft); font-weight: 600; font-size: .96rem;
  transition: background .15s ease, color .15s ease;
}
.nav-links a:hover { background: var(--green-tint); color: var(--green-dark); }
.nav-links a[aria-current="page"] { color: var(--green-dark); background: var(--green-tint); }

.nav-cta { display: none; align-items: center; gap: .7rem; }
.nav-phone { display: inline-flex; align-items: center; gap: .45rem; font-weight: 700; color: var(--ink); }
.nav-phone svg { width: 18px; height: 18px; color: var(--green); }
.nav-phone:hover { color: var(--green-dark); }

.nav-toggle {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; border-radius: 12px; color: var(--ink);
  background: var(--green-tint);
}
.nav-toggle svg { width: 24px; height: 24px; }
.nav-toggle .icon-close { display: none; }
.nav-toggle[aria-expanded="true"] .icon-open { display: none; }
.nav-toggle[aria-expanded="true"] .icon-close { display: block; }

/* Mobile drawer */
.mobile-menu {
  display: none;
  position: fixed; inset: 0 0 0 0; z-index: 55;
  background: #fff;
  padding: calc(var(--header-h) + 40px) 20px 2.5rem;
  flex-direction: column;
  overflow-y: auto;
  animation: fade .2s ease;
}
.mobile-menu.open { display: flex; }
.mobile-menu a.m-link {
  padding: 1rem .25rem; font-size: 1.25rem; font-weight: 700; color: var(--ink);
  border-bottom: 1px solid var(--line-soft); display: flex; align-items: center; justify-content: space-between;
}
.mobile-menu a.m-link[aria-current="page"] { color: var(--green-dark); }
.mobile-menu a.m-link svg { width: 20px; height: 20px; color: var(--green); }
.mobile-menu .m-actions { margin-top: 1.6rem; display: flex; flex-direction: column; gap: .8rem; }
.mobile-menu .m-actions .btn { width: 100%; }
body.menu-open { overflow: hidden; }

@keyframes fade { from { opacity: 0; transform: translateY(-6px);} to { opacity: 1; transform: none;} }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2.5rem, 7vw, 5rem); overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background:
    radial-gradient(60% 60% at 85% 0%, var(--green-tint) 0%, transparent 60%),
    radial-gradient(50% 50% at 0% 100%, var(--green-tint-2) 0%, transparent 55%);
}
.hero-grid { display: grid; gap: clamp(2rem, 5vw, 3.5rem); align-items: center; }
.hero h1 { margin-top: 1rem; }
.hero .lead { margin-top: 1.15rem; max-width: 52ch; }
.hero .btn-row { margin-top: 1.8rem; }
.hero-trust { margin-top: 1.8rem; display: flex; flex-wrap: wrap; gap: 1.4rem 1.8rem; }
.hero-trust .ht { display: flex; align-items: center; gap: .5rem; font-size: .92rem; font-weight: 600; color: var(--ink-soft); }
.hero-trust .ht svg { width: 20px; height: 20px; color: var(--green); flex: none; }

.hero-visual { position: relative; }
.hero-media {
  position: relative; border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-lg); aspect-ratio: 4/3; background: var(--green-tint);
}
.hero-media img { width: 100%; height: 100%; object-fit: cover; }
.hero-badge {
  position: absolute; left: -8px; bottom: 18px;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .85rem 1.1rem; display: flex; align-items: center; gap: .75rem;
  max-width: 260px;
}
.hero-badge .hb-ic { width: 42px; height: 42px; border-radius: 12px; background: var(--green-tint); display: grid; place-items: center; flex: none; }
.hero-badge .hb-ic svg { width: 24px; height: 24px; color: var(--green-dark); }
.hero-badge .hb-num { font-weight: 800; font-size: 1.15rem; color: var(--ink); line-height: 1.1; }
.hero-badge .hb-txt { font-size: .82rem; color: var(--muted); }

/* ---------- Etusivun hero: kuva täytenä taustana (ylös asti), teksti lasikortilla ---------- */
.hero3 {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(540px, 90vh, 820px);
  display: grid; align-items: center;
  margin-top: calc(-1 * (var(--header-h) + 28px));
  padding-top: calc(var(--header-h) + 56px);
  padding-bottom: clamp(2rem, 5vw, 4rem);
}
.hero3-bg { position: absolute; inset: 0; z-index: -1; }
.hero3-bg img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.hero3-card {
  max-width: 560px;
  background: rgba(255,255,255,.82);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 4px;
  padding: clamp(1.5rem, 4vw, 2.6rem);
  box-shadow: 0 24px 60px rgba(20,25,28,.22);
}
.hero3-card h1 { margin-bottom: 1rem; }
.hero3-card .lead { margin-bottom: 1.6rem; }

/* ---------- Etusivun hero (vanha split; ei käytössä) ---------- */
.hero2 { padding-block: clamp(2rem, 5vw, 4rem); }
.hero2-grid { display: grid; gap: clamp(1.8rem, 5vw, 3.5rem); align-items: center; }
.hero2-copy h1 { margin-bottom: 1.1rem; }
.hero2-copy .lead { margin-bottom: 1.7rem; max-width: 52ch; }
.hero2-media { border-radius: 4px; overflow: hidden; aspect-ratio: 16 / 11; box-shadow: var(--shadow-lg); }
.hero2-media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.hero2-rating { margin-top: 1.8rem; display: inline-flex; align-items: center; gap: .55rem; flex-wrap: wrap; padding: .55rem .9rem; border: 1px solid var(--line); border-radius: 2px; background: #fff; }
.hero2-rating .g-logo-ic { width: 20px; height: 20px; flex: none; }
.hero2-rating .g-stars { color: #F5B100; }
.hero2-rating .hr-tx { font-size: .92rem; color: var(--ink); }
.hero2-rating .hr-tx strong { font-weight: 700; }
/* Pieni valon välähdys joka pyyhkäisee Google-arvostelumerkin yli */
.hero2-rating { position: relative; overflow: hidden; }
.hero2-rating::after {
  content: ""; position: absolute; top: 0; left: -75%; width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-18deg); pointer-events: none;
  animation: ratingShine 5s ease-in-out infinite;
}
@keyframes ratingShine { 0%, 55% { left: -75%; } 100% { left: 150%; } }
@media (prefers-reduced-motion: reduce) { .hero2-rating::after { animation: none; display: none; } }
@media (min-width: 860px) { .hero2-grid { grid-template-columns: 1.05fr .95fr; } }

/* ---------- Banner-hero (vanha; ei käytössä etusivulla) ---------- */
.hero-banner {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: clamp(560px, 90vh, 760px);
  display: grid; align-items: end;   /* mobiili: teksti alaosaan vihreän päälle */
}
.hb-photo { position: absolute; inset: 0; z-index: -3; }
.hb-photo img { width: 100%; height: 100%; object-fit: cover; object-position: 60% center; }
.hb-photo::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(8,20,14,.28), transparent 48%); }
/* mobiili: pehmeä brändivihreä liu'utus alhaalta ylös – ei kovaa reunaa */
.hb-shape { position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: linear-gradient(to top, var(--green-deep) 22%, rgba(35,78,55,.95) 42%, rgba(35,78,55,.5) 62%, rgba(35,78,55,0) 84%); }
/* ilmavirtaus-aaltokuvio (valkoinen, läpikuultava) */
.hb-waves { position: absolute; z-index: -1; color: #fff; opacity: .22; pointer-events: none; }
.hb-waves svg { width: 100%; height: 100%; }
.hb-waves--tl { top: 6%; left: 4%; width: 120px; height: 120px; }
.hb-waves--br { right: 5%; bottom: 9%; width: 150px; height: 150px; opacity: .5; }
.hero-banner .container { position: relative; z-index: 2; }
.hb-content { max-width: 600px; color: #fff; padding-block: 2.5rem; }
.hb-content .eyebrow { color: var(--green-soft); }
.hb-content .eyebrow::before { background: var(--green-soft); }
.hb-content h1 { color: #fff; margin-top: 1rem; text-shadow: 0 2px 24px rgba(0,0,0,.25); }
.hb-content .lead { color: #eaf4ec; margin-top: 1.1rem; max-width: 46ch; }
.hb-content .btn-row { margin-top: 1.9rem; }
.hb-trust { margin-top: 1.9rem; display: flex; flex-wrap: wrap; gap: 1rem 1.7rem; }
.hb-trust .ht { display: flex; align-items: center; gap: .5rem; font-weight: 600; font-size: .94rem; color: #eef7f0; }
.hb-trust .ht svg { width: 20px; height: 20px; color: var(--green-soft); flex: none; }
.hb-badge {
  position: absolute; right: clamp(16px, 4vw, 48px); bottom: clamp(16px, 4vw, 48px); z-index: 3;
  background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg);
  padding: .9rem 1.15rem; display: flex; align-items: center; gap: .8rem; max-width: 260px;
}
.hb-badge .hb-ic { width: 44px; height: 44px; border-radius: 12px; background: var(--green-tint); display: grid; place-items: center; flex: none; }
.hb-badge .hb-ic svg { width: 24px; height: 24px; color: var(--green-dark); }
.hb-badge .hb-num { font-weight: 800; font-size: 1.2rem; color: var(--ink); line-height: 1.05; }
.hb-badge .hb-txt { font-size: .8rem; color: var(--muted); }

/* Työpöytä: vihreä kaareva paneeli vasemmalle, kuva oikealle */
@media (min-width: 860px) {
  .hero-banner { align-items: center; }
  .hb-photo img { object-position: 64% center; }
  /* työpöytä: pehmeä vasemmalta-oikealle vihreä liu'utus, teksti vasemmalla – ei leikkaavaa reunaa */
  .hb-photo::after { background: none; }
  .hb-shape { background: linear-gradient(96deg, var(--green-deep) 0%, var(--green-deep) 34%, rgba(35,78,55,.95) 46%, rgba(35,78,55,.5) 58%, rgba(35,78,55,0) 72%); }
  .hb-content { padding-block: 3rem; max-width: 560px; }
  .hb-content .lead { text-shadow: 0 1px 12px rgba(0,0,0,.22); }
  .hb-waves--tl { top: 12%; left: 3%; }
  .hb-waves--br { display: none; }
}

/* Aaltokuvio (ilmavirtaus) osioiden koristeena */
.wave-deco { position: absolute; color: var(--green); opacity: .1; pointer-events: none; z-index: 0; }
.wave-deco svg { width: 100%; height: 100%; }
/* Hieno aaltokuvio vihreille osioille ja CTA-palkkiin (ei vaadi markkupia) */
.section--green { position: relative; overflow: hidden; }
/* Vino "leikkaus" vihreän osion ylä- ja alareunaan – dynaamisempi, vähemmän geneerinen ilme */
.section--green {
  clip-path: polygon(0 38px, 100% 0, 100% 100%, 0 calc(100% - 38px));
  padding-block: calc(clamp(3.5rem, 9vw, 6.5rem) + 38px);
  margin-block: -1px;
}
.section--green::after, .cta-band::after {
  content: ""; position: absolute; pointer-events: none; z-index: 0;
  right: -16px; top: 26px; width: 150px; height: 120px; opacity: .14;
  background: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%2080'%20fill='none'%20stroke='white'%20stroke-width='4'%20stroke-linecap='round'%3E%3Cpath%20d='M6%2022%20q22%20-15%2044%200'/%3E%3Cpath%20d='M6%2040%20q28%20-18%2056%200'/%3E%3Cpath%20d='M6%2058%20q34%20-20%2068%200'/%3E%3C/svg%3E") no-repeat center / contain;
}
.cta-band::after { right: auto; left: -10px; bottom: 18px; top: auto; }
.section--green > .container { position: relative; z-index: 1; }
.cta-band > * { position: relative; z-index: 1; }

/* Kaareva osionjakaja */
.curve-top { position: relative; }
.curve-top::before {
  content: ""; position: absolute; top: -1px; left: 0; right: 0; height: clamp(40px, 6vw, 80px);
  background: inherit; border-radius: 0 0 50% 50%/ 0 0 100% 100%; transform: translateY(-99%);
}

/* ---------- Stats strip ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow-sm); }
.stat { background: #fff; padding: 1.4rem 1.2rem; text-align: center; }
.stat .num { font-size: clamp(1.6rem, 4vw, 2.2rem); font-weight: 800; color: var(--green-dark); letter-spacing: -.02em; }
.stat .lbl { font-size: .85rem; color: var(--muted); margin-top: .2rem; }

/* "PumppuPro numeroina" – ainoa sallittu hieno taustahäivytys (vihreä → valkoinen) */
.numbers-section { background: radial-gradient(75% 95% at 50% 0%, rgba(92,168,120,.13), #fff 68%); }
.stats--3 { grid-template-columns: 1fr; }
@media (min-width: 620px) { .stats--3 { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Split / zigzag ---------- */
.split { display: grid; gap: clamp(1.8rem, 5vw, 3.5rem); align-items: center; }
.split + .split { margin-top: clamp(3rem, 7vw, 5rem); }
.split-media {
  border-radius: var(--radius-lg); overflow: hidden; box-shadow: var(--shadow);
  aspect-ratio: 5/4; background: var(--green-tint);
}
.split-media img { width: 100%; height: 100%; object-fit: cover; }
.split-body .eyebrow { margin-bottom: .8rem; }
.split-body h2 { margin-bottom: .9rem; }
.split-body .feature-list { margin-top: 1.3rem; }
.split-body .btn-row { margin-top: 1.6rem; }

/* ---------- Feature checklist ---------- */
.feature-list { display: grid; gap: .8rem; }
.feature-list li { display: flex; align-items: flex-start; gap: .7rem; color: var(--ink-soft); }
.feature-list li svg { width: 22px; height: 22px; color: var(--green); flex: none; margin-top: 1px; }
.feature-list li strong { display: block; color: var(--ink); }

/* ---------- Cards grid ---------- */
.cards { display: grid; gap: 1.25rem; }
.cards--3 { grid-template-columns: 1fr; }
.cards--4 { grid-template-columns: 1fr; }
.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm);
  transition: transform .18s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: #d4ddd6; }
.card-ic {
  width: 52px; height: 52px; border-radius: 4px; background: var(--green);
  display: grid; place-items: center; margin-bottom: 1.1rem;
}
.card-ic svg { width: 28px; height: 28px; color: #fff; }
.card h3 { margin-bottom: .5rem; }
.card p { font-size: .98rem; }
.card .textlink { margin-top: 1rem; }
.card--link { display: block; color: inherit; }
.card--link:hover { color: inherit; }

/* ---------- Palvelukortit kuvilla (terävät, neliömäiset kulmat) ---------- */
.service-grid { display: grid; gap: 1.4rem; grid-template-columns: 1fr; }
.service-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: 4px; overflow: hidden; box-shadow: var(--shadow-sm); transition: transform .18s ease, box-shadow .2s ease; }
.service-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.service-card .sc-media { position: relative; aspect-ratio: 4 / 3; overflow: hidden; background: var(--green-tint); }
.service-card .sc-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .45s ease; }
.service-card:hover .sc-media img { transform: scale(1.06); }
.service-card .sc-num { position: absolute; top: 0; left: 0; background: var(--green); color: #fff; font-weight: 800; font-size: .9rem; letter-spacing: .04em; padding: .45rem .85rem; }
.service-card .sc-body { padding: 1.5rem; display: flex; flex-direction: column; flex: 1; }
.service-card h3 { margin-bottom: .5rem; }
.service-card p { font-size: .97rem; }
.service-card .textlink { margin-top: 1.1rem; }

/* ---------- Pricing ---------- */
.price-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.price-card {
  position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem; box-shadow: var(--shadow-sm); display: flex; flex-direction: column;
}
.price-card.is-featured { border-color: var(--green); box-shadow: var(--shadow); }
.price-tag-top { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-bottom: .2rem; }
.price-brand { font-size: .8rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--green-dark); }
.price-badge { font-size: .72rem; font-weight: 700; color: #fff; background: var(--green); padding: .25rem .6rem; border-radius: var(--radius-pill); }
.price-card h3 { margin: .1rem 0 .4rem; }
.price-amount { font-size: 2rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.price-amount span { font-size: .9rem; font-weight: 600; color: var(--muted); }
.price-meta { font-size: .9rem; color: var(--muted); margin: .15rem 0 1rem; }
.price-card .feature-list { font-size: .95rem; margin-top: .4rem; }
.price-card .feature-list li svg { width: 19px; height: 19px; }
.price-card .btn { margin-top: auto; }
.price-card .price-meta { margin-bottom: 1.3rem; }
.price-esite { display: inline-flex; align-items: center; gap: .35rem; margin-top: .7rem; font-size: .85rem; font-weight: 600; color: var(--green-dark); }
.price-esite svg { width: 15px; height: 15px; }
.price-esite:hover { text-decoration: underline; }
.price-use { font-size: .8rem; font-weight: 700; color: var(--green-dark); text-transform: uppercase; letter-spacing: .05em; }

.price-media { height: 132px; display: flex; align-items: center; justify-content: center; background: #fff; border: 1px solid var(--line); border-radius: 2px; margin-bottom: 1.1rem; padding: .5rem; }
.price-media img { max-height: 114px; width: auto; object-fit: contain; }
.price-note { margin-top: 1.6rem; padding: 1.1rem 1.3rem; background: #fff; border: 1px solid var(--green); border-left: 4px solid var(--green); border-radius: 2px; font-size: .95rem; color: var(--ink-soft); }
.price-extras { display: grid; gap: .6rem; grid-template-columns: 1fr; margin-top: 1.4rem; }
.price-extras li { display: flex; justify-content: space-between; gap: 1rem; padding: .7rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); font-size: .95rem; }
.price-extras li b { color: var(--green-dark); white-space: nowrap; }

.hero-trust { margin-top: .9rem; font-size: .92rem; font-weight: 600; color: var(--muted); }

/* ---------- Brand logo strip ---------- */
.brand-strip-label { text-align: center; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); margin-bottom: 1.6rem; }
/* Logo-slideri: jatkuva vaakavieritys, sama kiinteä väli joka logolle.
   Väli margin-rightilla (ei gap), jotta -50 % -silmukka on täysin saumaton. */
.brand-marquee { position: relative; overflow: hidden; }
.brand-track { display: flex; align-items: center; width: max-content; animation: brandscroll 22s linear infinite; will-change: transform; }
.brand-track img { height: 40px; width: auto; flex: none; display: block; margin-right: 64px; }
.brand-track img[src*="mitsubishi-electric"] { height: 46px; }
.brand-marquee:hover .brand-track { animation-play-state: paused; }
@keyframes brandscroll { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (max-width: 640px) {
  .brand-track { animation-duration: 13s; }
  .brand-track img { height: 32px; margin-right: 44px; }
  .brand-track img[src*="mitsubishi-electric"] { height: 37px; }
}
@media (prefers-reduced-motion: reduce) { .brand-track { animation: none; flex-wrap: wrap; justify-content: center; width: auto; row-gap: 1.4rem; } }

/* ---------- Eco band ---------- */
.eco-points { display: grid; gap: 1.4rem; margin-top: 2rem; }
.eco-point { display: flex; gap: 1rem; }
.eco-point .ep-ic { width: 48px; height: 48px; border-radius: 4px; background: #fff; display: grid; place-items: center; flex: none; }
.eco-point .ep-ic svg { width: 26px; height: 26px; color: var(--green); }
.eco-point h4 { color: var(--ink); margin-bottom: .25rem; }
.eco-point p { color: var(--ink); font-size: .96rem; }

/* ---------- Steps ---------- */
.steps { display: grid; gap: 1.25rem; counter-reset: step; }
.step { display: flex; gap: 1rem; align-items: flex-start; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.4rem; box-shadow: var(--shadow-sm); }
.step .step-n { counter-increment: step; flex: none; width: 40px; height: 40px; border-radius: var(--radius-round); background: var(--green); color: #fff; font-weight: 800; display: grid; place-items: center; }
.step .step-n::before { content: counter(step); }
.step h4 { margin-bottom: .25rem; }
.step p { font-size: .95rem; }

/* ---------- Gallery (referenssit) ---------- */
.gallery { display: grid; gap: 1rem; grid-template-columns: 1fr; }
.gallery-item {
  position: relative; border-radius: var(--radius); overflow: hidden; background: var(--green-tint);
  aspect-ratio: 4/3; box-shadow: var(--shadow-sm); border: 1px solid var(--line);
}
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-item figcaption {
  position: absolute; inset: auto 0 0 0; padding: 1.4rem 1rem .9rem;
  background: var(--ink);
  color: #fff; font-weight: 600; font-size: .95rem;
}
.gallery-item .tag { position: absolute; top: .8rem; left: .8rem; background: rgba(255,255,255,.92); color: var(--green-dark); font-size: .75rem; font-weight: 700; padding: .25rem .6rem; border-radius: var(--radius-pill); }

/* ---------- Testimonials ---------- */
.quotes { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.quote { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.6rem; box-shadow: var(--shadow-sm); }
.quote .stars { display: flex; gap: 2px; color: var(--green); margin-bottom: .8rem; }
.quote .stars svg { width: 18px; height: 18px; }
.quote p { color: var(--ink); font-size: 1.02rem; }
.quote .q-by { margin-top: 1rem; font-size: .9rem; color: var(--muted); font-weight: 600; }
.quote .q-by b { color: var(--ink); }

/* ---------- "Miksi valita meidät" -merkkilista (pillit + check-badget) ---------- */
.why-list { display: grid; gap: .9rem; }
.why-item { display: flex; align-items: center; gap: .9rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius-pill); padding: .65rem 1.3rem .65rem .65rem; box-shadow: var(--shadow-sm); transition: transform .15s ease, box-shadow .2s ease; }
.why-item:hover { transform: translateX(4px); box-shadow: var(--shadow); }
.why-item .why-ic { width: 42px; height: 42px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; flex: none; }
.why-item .why-ic svg { width: 22px; height: 22px; }
.why-item .why-tx strong { display: block; color: var(--ink); font-size: 1.02rem; }
.why-item .why-tx span { font-size: .9rem; color: var(--muted); }
.section--green .why-item { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.16); }
.section--green .why-item .why-tx strong { color: #fff; }
.section--green .why-item .why-tx span { color: #cfe6d5; }
.section--green .why-item .why-ic { background: #fff; color: var(--green-dark); }

/* Tarjous-/etumerkki (kuten "Ilmainen kartoitus") */
.offer-badge { display: inline-flex; align-items: center; gap: .7rem; background: var(--green); color: #fff; font-weight: 700; padding: .7rem 1.2rem; border-radius: var(--radius-pill); box-shadow: var(--shadow-green); }
.offer-badge svg { width: 22px; height: 22px; }
.offer-badge--ring { flex-direction: column; gap: .15rem; width: 134px; height: 134px; border-radius: 50%; justify-content: center; text-align: center; line-height: 1.15; box-shadow: var(--shadow-lg); border: 3px dashed rgba(255,255,255,.55); padding: 0 .6rem; }
.offer-badge--ring b { font-size: 1.15rem; letter-spacing: .01em; }
.offer-badge--ring small { font-size: .7rem; font-weight: 600; opacity: .95; }

/* Flyer-tyylinen "Miksi meidät" -osio: ympyräkuva + tarjousrengas + pillit */
.why-feature { display: grid; gap: 2.4rem; align-items: center; }
.why-photo { position: relative; width: 100%; max-width: 420px; margin-inline: auto; }
.wp-circle { position: relative; aspect-ratio: 1; border-radius: 50%; overflow: hidden; border: 8px solid #fff; box-shadow: var(--shadow-lg); }
.wp-circle img { width: 100%; height: 100%; object-fit: cover; }
.wp-arc { position: absolute; inset: -16px; border-radius: 50%; border: 3px dashed var(--green); opacity: .35; pointer-events: none; }
.why-photo .offer-badge--ring { position: absolute; right: -8px; bottom: 8px; z-index: 2; }
.why-feature .why-list { grid-template-columns: 1fr; margin-top: 1.5rem; }

/* ---------- Google-arvostelut ---------- */
.g-stars { display: inline-flex; gap: 2px; color: #F5B100; }
.g-stars svg { width: 18px; height: 18px; }
.g-rating { display: flex; align-items: center; gap: 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.3rem 1.5rem; box-shadow: var(--shadow-sm); }
.g-rating .g-num { font-size: 2.8rem; font-weight: 800; color: var(--ink); line-height: 1; letter-spacing: -.02em; }
.g-rating .g-meta { display: flex; flex-direction: column; gap: .3rem; }
.g-rating .g-meta .g-stars svg { width: 20px; height: 20px; }
.g-rating .g-count { font-size: .9rem; color: var(--muted); }
.g-logo { display: inline-flex; align-items: center; gap: .4rem; font-weight: 700; color: var(--ink-soft); font-size: .9rem; }
.g-logo svg { width: 18px; height: 18px; }
.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; box-shadow: var(--shadow-sm); }
.review-card .r-head { display: flex; align-items: center; gap: .8rem; }
.r-avatar { width: 46px; height: 46px; border-radius: 50%; background: var(--green); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.1rem; flex: none; }
.r-name { font-weight: 700; color: var(--ink); }
.r-date { font-size: .82rem; color: var(--muted); }
.review-card .g-stars { margin: .9rem 0 .5rem; }
.review-card p { color: var(--ink); }
.r-google { display: inline-flex; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); margin-top: .9rem; }
.r-google svg { width: 16px; height: 16px; }
.reviews-grid { display: grid; gap: 1.25rem; grid-template-columns: 1fr; }
.reviews-top { display: grid; gap: 1.25rem; grid-template-columns: 1fr; margin-bottom: 1.5rem; align-items: center; }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 2rem; }
.contact-info { display: grid; gap: 1rem; }
.info-row { display: flex; gap: .9rem; align-items: flex-start; padding: 1.1rem 1.2rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); }
.info-row .ir-ic { width: 44px; height: 44px; border-radius: 4px; background: var(--green); display: grid; place-items: center; flex: none; }
.info-row .ir-ic svg { width: 22px; height: 22px; color: #fff; }
.info-row .ir-label { font-size: .8rem; color: var(--muted); font-weight: 600; }
.info-row .ir-value { font-weight: 700; color: var(--ink); font-size: 1.05rem; word-break: break-word; }
.info-row a.ir-value:hover { color: var(--green-dark); }

.form-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: clamp(1.4rem, 4vw, 2.2rem); box-shadow: var(--shadow); }
.field { margin-bottom: 1.1rem; }
.field label { display: block; font-weight: 600; font-size: .92rem; margin-bottom: .4rem; color: var(--ink); }
.field .req { color: var(--green-dark); }
.input, .textarea, .select {
  width: 100%; padding: .85rem 1rem; font: inherit; color: var(--ink);
  background: var(--paper); border: 1.5px solid var(--line); border-radius: var(--radius-sm);
  transition: border-color .15s ease, box-shadow .15s ease;
}
.input:focus, .textarea:focus, .select:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 4px var(--green-ring); background: #fff; }
.textarea { min-height: 130px; resize: vertical; }
.radio-row { display: flex; flex-wrap: wrap; gap: .6rem; }
.radio-chip { position: relative; }
.radio-chip input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.radio-chip span { display: inline-flex; padding: .6rem 1.05rem; border: 1.5px solid var(--line); border-radius: var(--radius-pill); font-weight: 600; font-size: .92rem; color: var(--ink-soft); transition: all .15s ease; }
.radio-chip input:checked + span { border-color: var(--green); background: var(--green); color: #fff; }
.radio-chip input:focus-visible + span { box-shadow: 0 0 0 4px var(--green-ring); }
.form-note { font-size: .82rem; color: var(--muted); margin-top: .5rem; }
.form-success { display: none; padding: 1.4rem 1.5rem; background: #fff; border: 2px solid var(--green); border-radius: 2px; color: var(--ink); }
.form-success.show { display: block; }
.form-success h3 { color: var(--ink); margin-bottom: .4rem; }
.prefill-hint { display: none; margin-bottom: 1.1rem; padding: .7rem 1rem; background: #fff; border: 1px solid var(--green); border-left: 4px solid var(--green); border-radius: 2px; font-weight: 600; color: var(--ink); font-size: .92rem; }

/* ---------- FAQ accordion ---------- */
.faq { display: grid; gap: .8rem; max-width: 760px; margin-inline: auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
.faq summary { list-style: none; cursor: pointer; padding: 1.2rem 1.3rem; font-weight: 700; color: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .faq-plus { width: 24px; height: 24px; flex: none; position: relative; }
.faq summary .faq-plus::before, .faq summary .faq-plus::after { content: ""; position: absolute; background: var(--green); border-radius: 2px; transition: transform .2s ease; }
.faq summary .faq-plus::before { top: 11px; left: 4px; right: 4px; height: 2px; }
.faq summary .faq-plus::after { left: 11px; top: 4px; bottom: 4px; width: 2px; }
.faq details[open] summary .faq-plus::after { transform: scaleY(0); }
.faq details > div { padding: 0 1.3rem 1.3rem; color: var(--ink-soft); }

/* Tekijät-teaser (perustajat) */
.tekijat-teaser { display: grid; gap: 1.5rem; align-items: center; }
.tt-photo { text-align: center; }
.tt-photo img { max-height: 360px; width: auto; display: inline-block; }
@media (min-width: 760px) { .tekijat-teaser { grid-template-columns: .82fr 1.18fr; gap: 3rem; } }

/* ---------- CTA band ---------- */
.cta-band { border-radius: var(--radius-lg); padding: clamp(2.2rem, 6vw, 3.6rem); background: var(--green); color: var(--ink); text-align: center; }
.cta-band h2 { color: var(--ink); }
.cta-band p { color: var(--ink); margin: .9rem auto 1.8rem; max-width: 52ch; }
.cta-band .btn-row { justify-content: center; }

/* ---------- Page hero (subpages) ---------- */
/* Alasivujen banneri: sama hero-kuva taustalla + lasikortti (kuten etusivulla) */
.page-hero {
  position: relative; isolation: isolate; overflow: hidden;
  margin-top: calc(-1 * (var(--header-h) + 28px));
  padding-top: calc(var(--header-h) + 64px);
  padding-bottom: clamp(2.5rem, 6vw, 4rem);
}
.page-hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background-image: url("../images/moderni-talo.webp");
  background-size: cover; background-position: center;
}
.page-hero .container {
  background: rgba(255,255,255,.9);
  -webkit-backdrop-filter: blur(16px) saturate(150%);
  backdrop-filter: blur(16px) saturate(150%);
  border: 1px solid rgba(255,255,255,.7);
  border-radius: 4px;
  padding: clamp(1.4rem, 4vw, 2.2rem);
  max-width: 700px; margin-inline: auto;
  box-shadow: 0 20px 50px rgba(20,25,28,.18);
}
/* Banneri on ylätaitteessa – näytetään heti ilman reveal-häivytystä */
.js .page-hero .container[data-reveal] { opacity: 1 !important; transform: none !important; }
.hero3-card[data-reveal], .hero3 [data-reveal] { opacity: 1 !important; transform: none !important; }
.page-hero .eyebrow { margin-bottom: .8rem; }
.page-hero p { margin-top: .9rem; max-width: 60ch; }
.breadcrumb { font-size: .85rem; color: var(--muted); margin-bottom: 1rem; }
.breadcrumb a { color: var(--muted); }
.breadcrumb a:hover { color: var(--green-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--green-deep); color: #c4d6c7; padding-block: clamp(2.8rem, 6vw, 4rem) 1.5rem; }
.footer-grid { display: grid; gap: 2.2rem; grid-template-columns: 1fr; }
.site-footer .brand { color: #fff; margin-bottom: 1rem; }
.site-footer .brand b { color: var(--green); }
.site-footer p { color: rgba(255,255,255,.66); font-size: .95rem; }
.footer-col h4 { color: #fff; font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: 1rem; }
.footer-col ul { display: grid; gap: .6rem; }
.footer-col a { color: rgba(255,255,255,.72); font-size: .96rem; }
.footer-col a:hover { color: var(--green); }
.footer-contact li { display: flex; gap: .6rem; align-items: flex-start; color: rgba(255,255,255,.72); font-size: .96rem; margin-bottom: .6rem; }
.footer-contact li svg { width: 18px; height: 18px; color: var(--green); flex: none; margin-top: 3px; }
.footer-social { display: flex; gap: .7rem; margin-top: 1.1rem; }
.footer-social a { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.08); display: grid; place-items: center; color: #fff; }
.footer-social a:hover { background: var(--green); color: #fff; }
.footer-social svg { width: 20px; height: 20px; }
.footer-bottom { margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,.12); display: flex; flex-wrap: wrap; gap: .5rem 1.5rem; justify-content: space-between; font-size: .85rem; color: rgba(255,255,255,.55); }

/* ---------- Tarjous-popup ---------- */
.promo-pop { position: fixed; inset: 0; z-index: 100; display: none; align-items: center; justify-content: center; padding: 20px; }
.promo-pop.open { display: flex; }
.promo-pop__backdrop { position: absolute; inset: 0; background: rgba(20,20,20,.55); }
.promo-pop__card { position: relative; z-index: 1; background: #fff; border-radius: 4px; max-width: 420px; width: 100%; overflow: hidden; box-shadow: var(--shadow-lg); animation: cbIn .25s ease; }
.promo-pop__img { aspect-ratio: 16 / 9; background: var(--green); }
.promo-pop__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.promo-pop__body { padding: clamp(1.3rem, 4vw, 1.8rem); }
.promo-pop__body h3 { margin-bottom: .5rem; }
.promo-pop__body p { font-size: .96rem; }
.promo-pop__body .btn { width: 100%; margin-top: 1.1rem; }
.promo-pop__close { position: absolute; top: 10px; right: 10px; z-index: 2; width: 36px; height: 36px; border-radius: 2px; background: rgba(255,255,255,.92); color: var(--ink); display: grid; place-items: center; box-shadow: var(--shadow-sm); }
.promo-pop__close:hover { background: #fff; }
.promo-pop__close svg { width: 20px; height: 20px; }

/* ==========================================================================
   Chatbot
   ========================================================================== */
.cb-launch {
  position: fixed; right: 18px; bottom: 18px; z-index: 80;
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .85rem 1.15rem; border-radius: var(--radius-pill);
  background: var(--green); color: #fff; font-weight: 700; font-size: .95rem;
  box-shadow: var(--shadow-green);
  transition: transform .15s ease, background .2s ease;
}
.cb-launch:hover { transform: translateY(-2px); background: var(--green-dark); color: #fff; }
.cb-launch svg { width: 22px; height: 22px; flex: none; }
.cb-launch .cb-launch-txt { display: none; }
.cb-launch.is-hidden { display: none; }

.cb-panel {
  position: fixed; right: 18px; bottom: 18px; z-index: 81;
  width: min(380px, calc(100vw - 36px));
  height: min(620px, calc(100vh - 36px));
  background: #fff; border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg); display: none; flex-direction: column; overflow: hidden;
  border: 1px solid var(--line);
}
.cb-panel.open { display: flex; animation: cbIn .22s ease; }
@keyframes cbIn { from { opacity: 0; transform: translateY(14px) scale(.98);} to { opacity: 1; transform: none;} }

.cb-header { background: var(--green); color: var(--ink); padding: 1.05rem 1.15rem; display: flex; align-items: center; gap: .75rem; }
.cb-header .cb-avatar { width: 40px; height: 40px; border-radius: 4px; background: #fff; display: grid; place-items: center; flex: none; }
.cb-header .cb-avatar svg { width: 24px; height: 24px; color: var(--green); }
.cb-header .cb-title { font-weight: 800; font-size: 1rem; line-height: 1.2; }
.cb-header .cb-sub { font-size: .8rem; color: var(--ink); display: flex; align-items: center; gap: .35rem; }
.cb-header .cb-sub::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.cb-close { margin-left: auto; width: 34px; height: 34px; border-radius: 2px; display: grid; place-items: center; color: var(--ink); background: rgba(0,0,0,.08); }
.cb-close:hover { background: rgba(0,0,0,.16); }
.cb-close svg { width: 20px; height: 20px; }

.cb-body { flex: 1; overflow-y: auto; padding: 1.1rem; display: flex; flex-direction: column; gap: .7rem; background: var(--green-tint-2); }
.cb-msg { max-width: 85%; padding: .7rem .9rem; border-radius: 14px; font-size: .94rem; line-height: 1.5; animation: cbMsg .25s ease; }
@keyframes cbMsg { from { opacity: 0; transform: translateY(6px);} to { opacity: 1; transform: none;} }
.cb-msg.bot { background: #fff; border: 1px solid var(--line); color: var(--ink); border-bottom-left-radius: 4px; align-self: flex-start; }
.cb-msg.user { background: var(--green); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.cb-options { display: flex; flex-wrap: wrap; gap: .5rem; padding-top: .2rem; }
.cb-chip { padding: .55rem .9rem; border-radius: var(--radius-pill); border: 1.5px solid var(--green); background: #fff; color: var(--green-dark); font-weight: 600; font-size: .9rem; transition: all .15s ease; }
.cb-chip:hover { background: var(--green); color: #fff; }

.cb-rec { background: #fff; border: 1px solid var(--line); border-radius: 14px; overflow: hidden; box-shadow: var(--shadow-sm); }
.cb-rec-top { background: var(--green-tint); padding: .9rem 1rem; }
.cb-rec-brand { font-size: .72rem; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--green-dark); }
.cb-rec-name { font-weight: 800; font-size: 1.08rem; color: var(--ink); }
.cb-rec-body { padding: .9rem 1rem; }
.cb-rec-price { font-size: 1.5rem; font-weight: 800; color: var(--green-dark); }
.cb-rec-price span { font-size: .82rem; font-weight: 600; color: var(--muted); }
.cb-rec-why { font-size: .9rem; color: var(--ink-soft); margin: .5rem 0 .2rem; }
.cb-rec-alt { font-size: .82rem; color: var(--muted); margin-top: .6rem; padding-top: .6rem; border-top: 1px dashed var(--line); }

.cb-input { padding: .7rem; border-top: 1px solid var(--line); background: #fff; display: flex; flex-direction: column; gap: .5rem; }
.cb-input .btn { width: 100%; }
.cb-restart { background: none; color: var(--muted); font-size: .82rem; font-weight: 600; padding: .3rem; }
.cb-restart:hover { color: var(--green-dark); }
.cb-typing { display: inline-flex; gap: 3px; padding: .8rem .9rem; }
.cb-typing span { width: 7px; height: 7px; border-radius: 50%; background: var(--green); opacity: .5; animation: cbDot 1s infinite; }
.cb-typing span:nth-child(2){ animation-delay: .15s; } .cb-typing span:nth-child(3){ animation-delay: .3s; }
@keyframes cbDot { 0%,60%,100%{ transform: translateY(0); opacity:.4;} 30%{ transform: translateY(-4px); opacity:1;} }

/* ==========================================================================
   Responsive — scale up from mobile
   ========================================================================== */
@media (min-width: 560px) {
  .cards--3, .cards--4 { grid-template-columns: repeat(2, 1fr); }
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .price-grid { grid-template-columns: repeat(2, 1fr); }
  .price-extras { grid-template-columns: repeat(2, 1fr); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cb-launch .cb-launch-txt { display: inline; }
  .reviews-grid { grid-template-columns: repeat(2, 1fr); }
  .why-list { grid-template-columns: 1fr 1fr; }
  .service-grid { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 860px) {
  .nav-links { display: flex; }
  .nav-cta { display: flex; }
  .nav-toggle { display: none; }
  .hero-grid { grid-template-columns: 1.05fr .95fr; }
  .split { grid-template-columns: 1fr 1fr; }
  .split--reverse .split-media { order: 2; }
  .cards--3 { grid-template-columns: repeat(3, 1fr); }
  .cards--4 { grid-template-columns: repeat(4, 1fr); }
  .gallery { grid-template-columns: repeat(3, 1fr); }
  .price-grid { grid-template-columns: repeat(3, 1fr); }
  .price-extras { grid-template-columns: repeat(3, 1fr); }
  .contact-grid { grid-template-columns: .85fr 1.15fr; align-items: start; }
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr 1.2fr; }
  .eco-points { grid-template-columns: repeat(2, 1fr); gap: 1.8rem 2.2rem; }
  .quotes { grid-template-columns: repeat(3, 1fr); }
  .gallery-item.is-wide { grid-column: span 2; }
  .reviews-grid { grid-template-columns: repeat(3, 1fr); }
  .reviews-top { grid-template-columns: .8fr 1.2fr; }
  .why-feature { grid-template-columns: .85fr 1.15fr; gap: 3.5rem; }
}

@media (min-width: 1024px) {
  .price-grid--4 { grid-template-columns: repeat(4, 1fr); }
}

/* Reveal-on-scroll: aktivoituu vain kun JS on käytössä (ei piilota sisältöä muuten) */
.js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js [data-reveal].in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; scroll-behavior: auto !important; transition: none !important; }
  .js [data-reveal] { opacity: 1 !important; transform: none !important; }
}
