/* ===========================================================
   ASOR-katto — Design System
   Refined Nordic craftsmanship: forest green · gold · cream
   =========================================================== */

:root {
  /* Brand */
  --green-900: #06371C;
  --green-700: #0B5A2E;
  --green-600: #008037;
  --green-100: #E6F2EB;
  --gold-600:  #B8902F;
  --gold-500:  #C9A24B;
  --gold-200:  #EBDBB4;

  /* Neutrals */
  --ink:       #141413;
  --ink-soft:  #4A4A48;
  --white:     #FFFFFF;
  --cream:     #FAF8F3;
  --line:      #E7E2D8;

  /* Semantic */
  --bg:        var(--white);
  --shadow-card: 0 4px 24px rgba(20,20,19,.06);
  --shadow-lift: 0 12px 40px rgba(20,20,19,.10);
  --shadow-deep: 0 30px 80px rgba(6,55,28,.18);

  /* Typography */
  --font-head: 'Montserrat', system-ui, -apple-system, sans-serif;
  --font-body: 'Open Sans', system-ui, -apple-system, sans-serif;

  /* Layout */
  --content: 1200px;
  --gutter: 24px;
  --radius-card: 16px;
  --radius-img: 20px;
  --header-h: 80px;

  /* Spacing scale */
  --s-1: 4px; --s-2: 8px; --s-3: 12px; --s-4: 16px;
  --s-6: 24px; --s-8: 32px; --s-12: 48px; --s-16: 64px;
  --s-24: 96px; --s-32: 128px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  font-size: 18px;
  line-height: 1.7;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, video { display: block; max-width: 100%; }
a { color: var(--green-600); text-decoration: none; transition: color .2s ease; }
a:hover { color: var(--gold-600); }
button { font-family: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--gold-500); outline-offset: 2px; border-radius: 4px; }
::selection { background: var(--gold-200); color: var(--ink); }

/* ---------- Typography ---------- */
h1, h2, h3, h4 { font-family: var(--font-head); color: var(--ink); line-height: 1.1; }
.eyebrow {
  font-family: var(--font-head);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .14em;
  color: var(--green-700);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold-500);
  display: inline-block;
}
.eyebrow.center::after {
  content: "";
  width: 28px; height: 1px;
  background: var(--gold-500);
  display: inline-block;
}
.h1 { font-family: var(--font-head); font-size: clamp(32px, 6vw, 80px); font-weight: 800; letter-spacing: -.02em; line-height: 1.04; }
.h2 { font-family: var(--font-head); font-size: clamp(30px, 4vw, 46px); font-weight: 700; letter-spacing: -.02em; line-height: 1.1; }
.h3 { font-size: 24px; font-weight: 700; letter-spacing: -.005em; }
.lead { font-size: clamp(18px, 2vw, 21px); color: var(--ink-soft); line-height: 1.6; }
.meta { font-size: 14px; color: var(--ink-soft); }
p { max-width: 68ch; }

/* ---------- Layout ---------- */
.wrap { max-width: var(--content); margin-inline: auto; padding-inline: var(--gutter); }
.section { padding-block: clamp(56px, 9vw, 128px); }
.section--tight { padding-block: clamp(48px, 6vw, 80px); }
/* More breathing room between sections on mobile */
@media (max-width: 640px) {
  .section { padding-block: 78px; }
  .section--tight { padding-block: 60px; }
}
.center { text-align: center; }
.center p { margin-inline: auto; }
.stack > * + * { margin-top: var(--s-6); }
.section-head { max-width: 720px; }
.section-head.center { margin-inline: auto; }
.section-head .h2 { margin-top: 16px; }
.section-head .lead { margin-top: 18px; }

/* Hairline gold divider between sections */
.hairline { height: 1px; background: linear-gradient(90deg, transparent, var(--gold-200) 20%, var(--gold-500) 50%, var(--gold-200) 80%, transparent); border: 0; max-width: var(--content); margin-inline: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  font-family: var(--font-head); font-size: 16px; font-weight: 600;
  padding: 15px 30px; border-radius: 9999px; border: 1.5px solid transparent;
  cursor: pointer; transition: transform .25s cubic-bezier(.2,.7,.3,1), box-shadow .25s ease, background .25s ease, color .2s ease, border-color .2s ease;
  white-space: nowrap; line-height: 1;
}
.btn svg { width: 18px; height: 18px; }
.btn--primary { background: var(--green-600); color: #fff; box-shadow: 0 8px 24px rgba(0,128,55,.25); }
.btn--primary:hover { background: var(--green-700); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(0,128,55,.32); color:#fff; }
.btn--gold { background: var(--gold-500); color: var(--ink); box-shadow: 0 8px 24px rgba(201,162,75,.30); }
.btn--gold:hover { background: var(--gold-600); transform: translateY(-2px); box-shadow: 0 14px 34px rgba(184,144,47,.38); color: var(--ink); }
.btn--ghost { background: transparent; border-color: var(--gold-500); color: #fff; }
.btn--ghost:hover { background: rgba(201,162,75,.14); border-color: var(--gold-500); transform: translateY(-2px); color:#fff; }
.btn--ghost-dark { background: transparent; border-color: var(--green-600); color: var(--green-700); }
.btn--ghost-dark:hover { background: var(--green-100); transform: translateY(-2px); color: var(--green-700); }
.btn--lg { padding: 18px 38px; font-size: 17px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 -1px auto -1px; z-index: 100;
  height: var(--header-h);
  display: flex; align-items: center;
  transition: background .35s ease, box-shadow .35s ease, border-color .35s ease;
  border-bottom: 1px solid transparent;
}
.header .wrap { display: flex; align-items: center; justify-content: space-between; width: 100%; gap: 24px; }
.header.scrolled { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(20,20,19,.06); border-color: var(--line); }

.brand { position: relative; display: inline-flex; align-items: center; flex-shrink: 0; }
.brand__logo { height: 46px; width: auto; display: block; transition: opacity .35s ease; }
.brand__logo--dark { position: absolute; left: 0; top: 0; opacity: 0; }
.header.scrolled .brand__logo--light { opacity: 0; }
.header.scrolled .brand__logo--dark { opacity: 1; }

.nav { display: flex; align-items: center; gap: 6px; }
.nav a {
  font-family: var(--font-head); font-weight: 600; font-size: 15px;
  color: rgba(255,255,255,.92); padding: 10px 14px; border-radius: 9999px;
  transition: color .25s ease, background .25s ease; position: relative;
  display: inline-flex; align-items: center; white-space: nowrap;
}
.nav a:hover { color: #fff; background: rgba(255,255,255,.12); }
.header.scrolled .nav a { color: var(--ink); }
.header.scrolled .nav a:hover { color: var(--green-700); background: var(--green-100); }
.nav a.active { color: var(--gold-500); }
.header.scrolled .nav a.active { color: var(--green-600); }

/* Solid header at top for pages with a light hero (nav stays visible without scroll) */
.header--solid { background: rgba(255,255,255,.92); backdrop-filter: saturate(180%) blur(14px); box-shadow: 0 1px 0 var(--line), 0 8px 30px rgba(20,20,19,.06); border-color: var(--line); }
.header--solid .brand__logo--light { opacity: 0; }
.header--solid .brand__logo--dark { opacity: 1; }
.header--solid .nav a { color: var(--ink); }
.header--solid .nav a:hover { color: var(--green-700); background: var(--green-100); }
.header--solid .nav a.active { color: var(--green-600); }
.header--solid .burger span { background: var(--ink); }

/* Dropdown */
.nav__item { position: relative; }
.nav__caret { width: 14px; height: 14px; margin-left: 2px; vertical-align: middle; transition: transform .25s ease; }
.nav__item:hover .nav__caret,
.nav__item:has(.nav__menu:hover) .nav__caret { transform: rotate(180deg); }
.nav__menu {
  position: absolute; top: calc(100% + 6px); left: 50%; transform: translateX(-50%) translateY(8px);
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  box-shadow: var(--shadow-lift); padding: 8px; min-width: 230px;
  opacity: 0; visibility: hidden; transition: opacity .22s ease, transform .22s ease;
  transition-delay: .25s;
}
/* Invisible bridge so the cursor doesn't lose hover crossing the gap */
.nav__menu::before { content: ""; position: absolute; bottom: 100%; left: 0; right: 0; height: 14px; }
.nav__item:hover .nav__menu,
.nav__menu:hover { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); transition-delay: 0s; }
.nav__menu a { display: flex; align-items: center; gap: 10px; color: var(--ink); padding: 11px 14px; border-radius: 10px; font-size: 15px; }
.nav__menu a:hover { background: var(--green-100); color: var(--green-700); }
.nav__menu a svg { width: 18px; height: 18px; color: var(--gold-600); flex-shrink: 0; }

.header__cta { display: flex; align-items: center; gap: 12px; flex-shrink: 0; }
.header .btn--primary { padding: 12px 24px; }

/* Mobile menu button */
.burger { display: none; width: 46px; height: 46px; border: 0; background: transparent; border-radius: 10px; position: relative; }
.burger span { position: absolute; left: 11px; right: 11px; height: 2px; background: #fff; border-radius: 2px; transition: transform .3s ease, opacity .2s ease, background .35s ease; }
.header.scrolled .burger span { background: var(--ink); }
.burger span:nth-child(1) { top: 16px; }
.burger span:nth-child(2) { top: 22px; }
.burger span:nth-child(3) { top: 28px; }
body.menu-open .burger span:nth-child(1) { top: 22px; transform: rotate(45deg); background: var(--ink); }
body.menu-open .burger span:nth-child(2) { opacity: 0; }
body.menu-open .burger span:nth-child(3) { top: 22px; transform: rotate(-45deg); background: var(--ink); }

/* Mobile drawer */
.drawer { position: fixed; inset: 0; z-index: 99; background: rgba(6,55,28,.45); opacity: 0; visibility: hidden; transition: opacity .3s ease; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: min(86vw, 380px);
  background: #fff; padding: 96px 28px 32px; overflow-y: auto;
  transform: translateX(100%); transition: transform .35s cubic-bezier(.2,.7,.3,1);
  display: flex; flex-direction: column; gap: 4px;
}
body.menu-open .drawer { opacity: 1; visibility: visible; }
body.menu-open .drawer__panel { transform: translateX(0); }
.drawer a { font-family: var(--font-head); font-weight: 600; font-size: 18px; color: var(--ink); padding: 14px 12px; border-radius: 12px; border-bottom: 1px solid var(--line); }
.drawer a:hover { color: var(--green-700); }
.drawer .drawer__sub { font-size: 15px; padding-left: 28px; color: var(--ink-soft); border-bottom: 1px solid var(--line); font-weight: 500; }
.drawer .btn { margin-top: 18px; width: 100%; }

/* ---------- Hero ---------- */
.hero { position: relative; min-height: clamp(560px, 78vh, 820px); display: flex; align-items: center; isolation: isolate; overflow: hidden; }
.hero__bg { position: absolute; inset: 0; z-index: -2; background: linear-gradient(135deg, #0a3d20 0%, #06371C 55%, #052a16 100%); }
/* roof chevron motif */
.hero__seams { position: absolute; inset: 0; z-index: -2; opacity: .5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='42'%3E%3Cpath d='M0 42 L42 10 L84 42' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.10'/%3E%3C/svg%3E");
  background-size: 84px 42px;
  mask-image: linear-gradient(180deg, transparent, #000 30%, #000 70%, transparent);
}
.hero__glow { position: absolute; z-index: -2; width: 720px; height: 720px; right: -10%; top: -25%;
  background: radial-gradient(circle, rgba(201,162,75,.22), transparent 62%); filter: blur(8px); }
.hero__glow2 { position: absolute; z-index: -2; width: 560px; height: 560px; left: -12%; bottom: -28%;
  background: radial-gradient(circle, rgba(0,128,55,.32), transparent 64%); }
.hero__grain { position: absolute; inset: 0; z-index: -1; opacity: .05; pointer-events: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='120' height='120'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }
.hero .wrap { width: 100%; padding-top: var(--header-h); }
.hero__inner { max-width: 940px; padding-block: 40px; }
.hero .eyebrow { color: var(--gold-500); }
.hero .eyebrow::before { background: var(--gold-500); }
.hero h1 { color: #fff; margin-top: 22px; text-wrap: balance; }
.hero h1 em { font-style: normal; color: var(--gold-500); }
.hero__sub { color: rgba(255,255,255,.82); font-size: clamp(17px,2vw,20px); line-height: 1.6; margin-top: 22px; max-width: 56ch; }
.hero__cta { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.hero--sub .hero__cta { justify-content: center; }
.hero__rating { display: inline-flex; align-items: center; flex-wrap: wrap; gap: 8px 11px; color: rgba(255,255,255,.9); font-size: 15px; }
.hero__rating .stars { color: var(--gold-500); letter-spacing: 1px; }
.hero__rating-score { font-weight: 700; }
.hero__rating-src { display: inline-flex; align-items: center; gap: 7px; padding-left: 12px; border-left: 1px solid rgba(255,255,255,.22); color: rgba(255,255,255,.74); font-weight: 600; }
.hero__rating-src svg { width: 15px; height: 15px; display: block; flex: none; }
/* wave bottom */
.hero__wave { position: absolute; left: 0; right: 0; bottom: -1px; z-index: -1; width: 100%; height: 60px; }
.hero__wave path { fill: var(--white); }
.hero--cream .hero__wave path { fill: var(--cream); }

/* compact hero for subpages */
.hero--sub { min-height: clamp(600px, 78vh, 760px); }
.hero--sub .hero__inner { max-width: 880px; padding-bottom: 84px; }

/* real photo behind subpage heroes */
.hero__photo { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.hero__scrim { position: absolute; inset: 0; z-index: -2;
  background: linear-gradient(180deg, rgba(5,33,18,.62) 0%, rgba(5,33,18,.55) 45%, rgba(5,33,18,.80) 100%); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--cream); border-bottom: 1px solid var(--line); }
.trustbar .wrap { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; padding-block: 34px; }
.trust-item { display: flex; align-items: center; gap: 14px; }
.trust-item__ic { width: 44px; height: 44px; flex-shrink: 0; color: var(--green-600); }
.trust-item__big { font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--ink); line-height: 1.1; }
.trust-item__small { font-size: 13.5px; color: var(--ink-soft); }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 24px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card);
  padding: 32px; box-shadow: var(--shadow-card);
  transition: transform .3s cubic-bezier(.2,.7,.3,1), box-shadow .3s ease, border-color .3s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow-lift); border-color: var(--gold-200); }
.card__ic { width: 52px; height: 52px; color: var(--green-600); margin-bottom: 18px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--ink-soft); font-size: 16px; }

/* Service cards with image */
.service-card { position: relative; border-radius: var(--radius-img); overflow: hidden; min-height: 360px; display: flex; align-items: flex-end; isolation: isolate; box-shadow: var(--shadow-card); border: 1px solid var(--line); transition: transform .35s cubic-bezier(.2,.7,.3,1), box-shadow .35s ease; }
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-deep); }
.service-card__art { position: absolute; inset: 0; z-index: -2; background-size: cover; background-position: center; transition: transform .5s cubic-bezier(.2,.7,.3,1); }
.service-card:hover .service-card__art { transform: scale(1.05); }
.service-card__art::after { content:""; position:absolute; inset:0; background: linear-gradient(180deg, rgba(6,55,28,.05) 0%, rgba(6,55,28,.55) 60%, rgba(6,55,28,.88) 100%); }
.service-card__body { position: relative; padding: 30px; color: #fff; width: 100%; }
.service-card__body h3 { color: #fff; }
.service-card__body p { color: rgba(255,255,255,.85); font-size: 15.5px; margin-top: 8px; }
.service-card__link { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; color: var(--gold-500); font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.service-card__link svg { width: 16px; height: 16px; transition: transform .25s ease; }
.service-card:hover .service-card__link svg { transform: translateX(4px); }

.cardlink { display: inline-flex; align-items: center; gap: 7px; margin-top: 16px; color: var(--green-600); font-family: var(--font-head); font-weight: 600; font-size: 15px; }
.cardlink svg { width: 16px; height: 16px; transition: transform .25s ease; }
.cardlink:hover { color: var(--green-700); }
.cardlink:hover svg { transform: translateX(4px); }

/* ---------- CTA microcopy + lead benefits ---------- */
.cta-note { display: inline-flex; align-items: center; gap: 8px; margin-top: 14px; font-size: 14px; color: rgba(255,255,255,.72); }
.cta-note svg { width: 17px; height: 17px; color: var(--gold-500); flex-shrink: 0; }
.cta-note--ink { color: var(--ink-soft); }
.cta-note--ink svg { color: var(--green-600); }

.lead-benefits { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 16px; }
.lead-benefits li { display: flex; align-items: flex-start; gap: 13px; font-size: 15.5px; line-height: 1.5; color: var(--ink); }
.lead-benefits li svg { width: 24px; height: 24px; flex-shrink: 0; color: var(--green-600); margin-top: 1px; }
.lead-benefits li strong { font-family: var(--font-head); font-weight: 700; display: block; font-size: 16px; }
.lead-benefits li span { color: var(--ink-soft); font-size: 14.5px; }

/* compact perks row (lower forms) */
.perks { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.perks li { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--ink-soft); }
.perks li svg { width: 16px; height: 16px; flex-shrink: 0; color: var(--green-600); }
.perks--light li { color: rgba(255,255,255,.9); }
.perks--light li svg { color: var(--gold-500); }

/* short lead form layout */
.lead-grid { display: grid; grid-template-columns: 1fr .9fr; gap: clamp(32px,5vw,60px); align-items: center; }
@media (max-width: 860px) { .lead-grid { grid-template-columns: 1fr; gap: 36px; } }
.form--short .form__grid { grid-template-columns: 1fr 1fr; }
.form--short .field.full { grid-column: 1 / -1; }

/* ---------- Reference gallery ---------- */
.refs { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 44px; }
@media (max-width: 860px) { .refs { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 540px) { .refs { grid-template-columns: 1fr; } }
.ref { position: relative; border-radius: var(--radius-img); overflow: hidden; aspect-ratio: 4 / 3; box-shadow: var(--shadow-card); border: 1px solid var(--line); }
.ref img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.4s cubic-bezier(.22,.61,.36,1); }
.ref:hover img { transform: scale(1.07); }
.ref__cap { position: absolute; left: 0; right: 0; bottom: 0; padding: 18px 18px 16px; color: #fff;
  background: linear-gradient(180deg, transparent, rgba(6,55,28,.82)); font-family: var(--font-head); font-weight: 600; font-size: 14.5px; }

/* ---------- Landing page (kattoremontti) ---------- */
.header__phone { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 16px; color: #fff; white-space: nowrap; transition: color .35s ease; }
.header__phone svg { width: 18px; height: 18px; color: var(--gold-500); flex-shrink: 0; }
.header.scrolled .header__phone { color: var(--ink); }
@media (max-width: 600px) { .header__phone .num { display: none; } }

.lp-hero { min-height: auto; }
.lp-hero .wrap { width: 100%; padding-top: var(--header-h); }
.lp-hero__grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(380px, 460px); gap: clamp(36px, 5vw, 72px); align-items: center; padding-block: clamp(44px, 6vw, 88px); }
@media (max-width: 960px) { .lp-hero__grid { grid-template-columns: 1fr; gap: 38px; } }
.lp-hero__content { color: #fff; min-width: 0; }
.lp-hero__content h1 { color: #fff; margin-top: 20px; text-wrap: balance; }
.lp-hero__content h1 em { font-style: normal; color: var(--gold-500); }
.lp-hero__sub { color: rgba(255,255,255,.85); font-size: clamp(17px, 2vw, 20px); line-height: 1.6; margin-top: 20px; max-width: 54ch; }
.lp-checks { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.lp-checks li { display: flex; align-items: flex-start; gap: 12px; color: rgba(255,255,255,.92); font-size: 16.5px; line-height: 1.45; }
.lp-checks li svg { width: 22px; height: 22px; color: var(--gold-500); flex-shrink: 0; margin-top: 1px; }
.lp-hero .hero__rating { margin-top: 26px; }

.form--hero { box-shadow: var(--shadow-deep); }
.form--hero .form__head { text-align: center; }
.form--hero .tag { display: inline-block; font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-600); background: rgba(201,162,75,.13); padding: 6px 14px; border-radius: 9999px; margin-bottom: 14px; }

/* ---------- "Miksi ASOR?" dark section ---------- */
.why { position: relative; background: var(--green-900); color: #fff; overflow: hidden; isolation: isolate; }
.why::before { content:""; position:absolute; inset:0; z-index:-1; opacity:.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='42'%3E%3Cpath d='M0 42 L42 10 L84 42' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 84px 42px;
  mask-image: linear-gradient(180deg, transparent, #000 25%, #000 75%, transparent); }
.why__glow { position:absolute; z-index:-1; width:600px; height:600px; right:-8%; top:-20%;
  background: radial-gradient(circle, rgba(201,162,75,.16), transparent 64%); }
.why .eyebrow { color: var(--gold-500); }
.why .eyebrow::before, .why .eyebrow.center::after { background: var(--gold-500); }
.why .h2 { color: #fff; }
.why .lead { color: rgba(255,255,255,.78); }
/* Why cards (subpages — 3-card grid) */
.why-card { background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.10); border-radius: var(--radius-card); padding: 30px; transition: background .3s ease, border-color .3s ease, transform .3s ease; }
.why-card:hover { background: rgba(255,255,255,.07); border-color: rgba(201,162,75,.4); transform: translateY(-5px); }
.why-card__ic { width: 46px; height: 46px; color: var(--gold-500); margin-bottom: 18px; }
.why-card h3 { color: #fff; font-size: 21px; margin-bottom: 8px; }
.why-card p { color: rgba(255,255,255,.74); font-size: 15.5px; }

/* Why items (homepage — alternating big rows) */
.why-items { display: flex; flex-direction: column; gap: clamp(48px, 7vw, 92px); margin-top: clamp(52px, 7vw, 80px); }
.why-item { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.why-item:nth-child(even) .why-item__visual { order: -1; }
.why-item__text .why-item__num { display: inline-flex; align-items: center; gap: 14px; font-family: var(--font-head); font-weight: 800; font-size: 16px; letter-spacing: .18em; color: var(--gold-500); font-variant-numeric: tabular-nums; }
.why-item__text .why-item__num::after { content: ""; width: 42px; height: 2px; background: var(--gold-500); opacity: .6; }
.why-item__text h3 { color: #fff; font-family: var(--font-head); font-weight: 800; font-size: clamp(25px, 3.2vw, 34px); line-height: 1.12; margin: 18px 0 16px; }
.why-item__text p { color: rgba(255,255,255,.76); font-size: 16.5px; line-height: 1.7; max-width: 46ch; }
.why-item__visual { position: relative; border-radius: var(--radius-img); overflow: hidden; min-height: clamp(280px, 32vw, 360px); border: 1px solid rgba(255,255,255,.10); box-shadow: var(--shadow-lift); display: grid; place-items: center; padding: clamp(26px, 4vw, 44px); background: var(--green-900); }
.why-item__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.why-item__visual::after { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(150deg, rgba(6,55,28,.55) 0%, rgba(6,55,28,.80) 100%); }
.why-fig { position: relative; z-index: 2; width: 100%; max-width: 320px; }
.why-fig__card { background: rgba(255,255,255,.97); border-radius: 18px; box-shadow: 0 26px 54px -22px rgba(0,0,0,.6); color: var(--ink); padding: 24px; }
.why-fig__tag { display: block; font: 800 12px/1 var(--font-head); letter-spacing: .16em; text-transform: uppercase; color: var(--green-600); margin-bottom: 16px; }
.why-fig__takuu { display: block; width: 100%; max-width: 300px; height: auto; margin: 4px auto 0; }
/* 01 — three guarantee seals (roof specialties) */
.why-emblems { display: flex; justify-content: center; gap: 16px; }
.why-emblem { display: flex; flex-direction: column; align-items: center; gap: 9px; font: 700 13px var(--font-head); color: var(--ink); }
.why-emblem__seal { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; background: radial-gradient(circle at 50% 32%, #0a9d4b, var(--green-900)); border: 2.5px solid var(--gold-500); box-shadow: 0 8px 18px rgba(0,0,0,.22); }
.why-emblem__seal svg { width: 28px; height: 28px; color: #fff; }
/* 02 — guarantee seal */
.why-seal { width: 94px; height: 94px; border-radius: 50%; margin: 4px auto 16px; background: radial-gradient(circle at 50% 34%, #0a9d4b, var(--green-900)); border: 3px solid var(--gold-500); color: #fff; display: grid; place-items: center; align-content: center; box-shadow: 0 12px 26px rgba(0,0,0,.3); }
.why-seal strong { font: 800 34px/1 var(--font-head); }
.why-seal small { font: 700 10px var(--font-head); letter-spacing: .16em; margin-top: 3px; }
.why-cert-txt { text-align: center; }
.why-cert-txt b { display: block; font: 700 17px var(--font-head); color: var(--ink); }
.why-cert-txt span { font-size: 13px; color: var(--ink-soft); }
/* 03 — precision: evenly measured roof rows */
.why-precision { position: relative; display: flex; flex-direction: column; gap: 9px; padding-left: 24px; }
.why-precision__row { height: 14px; border-radius: 4px; background: linear-gradient(90deg, #eaece6, #d8ddd1); border: 1px solid rgba(0,0,0,.06); box-shadow: inset 0 1px 2px rgba(0,0,0,.05); }
.why-precision__dim { position: absolute; left: 7px; top: 1px; bottom: 1px; width: 2px; background: var(--gold-600); }
.why-precision__dim::before, .why-precision__dim::after { content: ""; position: absolute; left: -3px; width: 8px; height: 2px; background: var(--gold-600); }
.why-precision__dim::before { top: 0; }
.why-precision__dim::after { bottom: 0; }
.why-precision__tick { position: absolute; left: 4px; width: 7px; height: 2px; background: rgba(184,144,47,.55); }
/* 04 — checklist */
.why-checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 12px; }
.why-checks li { display: flex; align-items: center; gap: 12px; font: 600 16px var(--font-body); color: var(--ink); }
.why-checks .ck { width: 25px; height: 25px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; flex-shrink: 0; }
.why-checks .ck svg { width: 14px; height: 14px; }
/* 05 — material brands */
.why-logos { display: grid; grid-template-columns: 1fr 1fr; gap: 20px 18px; align-items: center; }
.why-logos img { width: 100%; height: 30px; object-fit: contain; }
/* 06 — responsibility / contact */
.why-contact { display: flex; align-items: center; gap: 15px; }
.why-contact > img { width: 60px; height: 60px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.why-contact b { display: block; font: 700 16px var(--font-head); color: var(--ink); }
.why-contact a { display: block; font: 800 18px var(--font-head); color: var(--green-600); text-decoration: none; }
.why-contact small { color: var(--ink-soft); font-size: 12.5px; }

/* ---------- Split (image + text) ---------- */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center; }
.split--reverse .split__media { order: 2; }
.split__media { position: relative; border-radius: var(--radius-img); overflow: hidden; min-height: 420px; box-shadow: var(--shadow-lift); border: 1px solid var(--line); }
.split__media .art { position: absolute; inset: 0; }
.split__photo { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.split__badge { position: absolute; bottom: 22px; left: 22px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); border-radius: 14px; padding: 16px 20px; box-shadow: var(--shadow-card); display: flex; align-items: center; gap: 14px; }
.split__badge .big { font-family: var(--font-head); font-weight: 800; font-size: 30px; color: var(--green-600); line-height: 1; }
.split__badge .small { font-size: 13px; color: var(--ink-soft); }
.split__media--takuu { display: grid; place-items: center; padding: clamp(30px, 5vw, 54px);
  background:
    radial-gradient(130% 100% at 50% 0%, rgba(201,162,75,.16), transparent 60%),
    linear-gradient(160deg, var(--green-700) 0%, var(--green-900) 100%); }
.split__media--takuu .takuu-seals { width: 100%; max-width: 460px; height: auto; filter: drop-shadow(0 14px 30px rgba(0,0,0,.38)); }
.split__media .split__badge svg { width: 38px; height: 38px; color: var(--gold-600); }
.split__badge--logo { padding: 14px 18px; background: #fff; }
.split__badge--logo img { height: 56px; width: auto; display: block; }

/* checklist */
.checklist { list-style: none; padding: 0; display: grid; gap: 14px; }
.checklist li { display: flex; gap: 14px; align-items: flex-start; font-size: 17px; }
.checklist li svg { width: 24px; height: 24px; color: var(--green-600); flex-shrink: 0; margin-top: 2px; }
.checklist li strong { font-family: var(--font-head); }

/* ---------- Guarantee table ---------- */
.guarantee { background: var(--cream); border: 1px solid var(--gold-200); border-radius: var(--radius-card); overflow: hidden; box-shadow: var(--shadow-card); }
.guarantee__top { height: 4px; background: linear-gradient(90deg, var(--gold-500), var(--gold-600)); }
.guarantee__row { display: flex; align-items: center; gap: 16px; padding: 20px 28px; border-bottom: 1px solid var(--line); }
.guarantee__row:last-child { border-bottom: 0; }
.guarantee__row svg { width: 24px; height: 24px; color: var(--green-600); flex-shrink: 0; }
.guarantee__row .name { flex: 1; font-size: 17px; }
.guarantee__row .years { font-family: var(--font-head); font-weight: 700; font-size: 20px; color: var(--green-700); white-space: nowrap; }
.guarantee__row .years em { font-style: normal; font-size: 14px; color: var(--ink-soft); font-weight: 600; }

/* ---------- RR swatches ---------- */
.swatches { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.swatch { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; background: #fff; transition: transform .25s ease, box-shadow .25s ease; }
.swatch:hover { transform: translateY(-4px); box-shadow: var(--shadow-lift); }
.swatch__color { height: 84px; }
.swatch__label { padding: 12px 14px; }
.swatch__code { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink); }
.swatch__name { font-size: 12.5px; color: var(--ink-soft); }

/* ---------- Reviews ---------- */
.reviews-head { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; }
.reviews-score { display: flex; flex-direction: column; gap: 4px; }
.reviews-score .word { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.reviews-score .stars { color: var(--gold-500); font-size: 22px; letter-spacing: 2px; }
.reviews-score .count { font-size: 13px; color: var(--ink-soft); }
.g-badge { display: inline-flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; color: var(--ink-soft); font-size: 14px; }
.g-badge svg { width: 20px; height: 20px; }

.review-card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: 26px; box-shadow: var(--shadow-card); height: 100%; display: flex; flex-direction: column; }
.review-card__top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.review-card__avatar { width: 44px; height: 44px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 17px; flex-shrink: 0; }
.review-card__name { font-family: var(--font-head); font-weight: 700; font-size: 16px; }
.review-card__stars { color: var(--gold-500); font-size: 15px; letter-spacing: 1px; }
.review-card p { color: var(--ink-soft); font-size: 15.5px; display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 9; line-clamp: 9; overflow: hidden; }
.review-card__more { align-self: flex-start; margin-top: 14px; padding: 0; background: none; border: 0; color: var(--green-700); font-family: var(--font-head); font-weight: 700; font-size: 14px; cursor: pointer; border-bottom: 1px solid transparent; transition: border-color .2s ease; }
.review-card__more:hover { border-bottom-color: var(--green-700); }

/* Review modal — read the full testimonial */
.review-modal { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.review-modal.is-open { opacity: 1; visibility: visible; }
.review-modal__overlay { position: absolute; inset: 0; background: rgba(6,30,16,.6); backdrop-filter: blur(3px); }
.review-modal__card { position: relative; width: 100%; max-width: 560px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-radius: 20px; box-shadow: var(--shadow-deep); padding: 34px;
  transform: translateY(18px) scale(.97); transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.review-modal.is-open .review-modal__card { transform: none; }
.review-modal__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: var(--cream); color: var(--ink-soft); transition: background .2s ease, color .2s ease; }
.review-modal__close:hover { background: var(--green-100); color: var(--green-700); }
.review-modal__close svg { width: 18px; height: 18px; pointer-events: none; }
.review-modal__top { display: flex; align-items: center; gap: 13px; margin-bottom: 18px; padding-right: 34px; }
.review-modal__avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--green-100); color: var(--green-700); display: grid; place-items: center; font-family: var(--font-head); font-weight: 700; font-size: 18px; flex-shrink: 0; }
.review-modal__name { font-family: var(--font-head); font-weight: 700; font-size: 17px; }
.review-modal__stars { color: var(--gold-500); font-size: 15px; letter-spacing: 1px; }
.review-modal__body { color: var(--ink-soft); font-size: 16px; line-height: 1.7; }

/* Reviews carousel */
.reviews-carousel { position: relative; display: flex; align-items: center; gap: 14px; }
.reviews-viewport { flex: 1 1 auto; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; -ms-overflow-style: none; scrollbar-width: none; }
.reviews-viewport::-webkit-scrollbar { display: none; }
.reviews-viewport:focus-visible { outline: 3px solid var(--green-200, #b7e0c6); outline-offset: 4px; border-radius: var(--radius-card); }
.reviews-track { display: flex; gap: 24px; padding: 4px; }
.reviews-track .review-card { flex: 0 0 calc((100% - 48px) / 3); scroll-snap-align: start; }
.rc-nav { flex: 0 0 auto; width: 48px; height: 48px; border-radius: 50%; border: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; place-items: center; cursor: pointer; box-shadow: var(--shadow-card); transition: background .2s ease, color .2s ease, border-color .2s ease, opacity .2s ease; }
.rc-nav svg { width: 22px; height: 22px; }
.rc-nav:hover { background: var(--green-600); color: #fff; border-color: var(--green-600); }
.rc-nav:disabled { opacity: .35; cursor: default; }
.rc-nav:disabled:hover { background: #fff; color: var(--ink); border-color: var(--line); }
.reviews-dots { display: flex; justify-content: center; gap: 8px; margin-top: 26px; }
.reviews-dots button { width: 8px; height: 8px; padding: 0; border: none; border-radius: 50%; background: var(--line); cursor: pointer; transition: background .2s ease, transform .2s ease; }
.reviews-dots button.active { background: var(--green-600); transform: scale(1.35); }
@media (max-width: 900px) { .reviews-track .review-card { flex-basis: calc((100% - 24px) / 2); } }
@media (max-width: 640px) { .reviews-carousel { gap: 8px; } .rc-nav { display: none; } .reviews-track .review-card { flex-basis: 86%; } }
@media (prefers-reduced-motion: reduce) { .reviews-viewport { scroll-behavior: auto; } }

/* Bare reviews strip — joins directly under a kuntoarvio/form section */
.reviews-strip { background: var(--cream); padding: 0 0 clamp(54px, 7vw, 80px); margin-top: calc(clamp(28px, 5vw, 56px) * -1); }
.reviews-strip .reviews-score-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px 14px; margin-bottom: 30px; }
.reviews-strip .reviews-score-line .word { font-family: var(--font-head); font-weight: 700; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.reviews-strip .reviews-score-line .stars { color: var(--gold-500); font-size: 20px; letter-spacing: 2px; }
.reviews-strip .reviews-score-line .count { font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--ink-soft); }
.reviews-strip .reviews-carousel { margin-top: 0; }
.reviews-strip--flush { margin-top: 0; padding-top: clamp(48px, 7vw, 80px); }

/* ---------- Logo carousel ---------- */
.logos { overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.logos__track { display: flex; align-items: center; width: max-content; animation: marquee 56s linear infinite; }
@media (prefers-reduced-motion: reduce) { .logos__track { animation: none; } }
.logos__item { display: flex; align-items: center; margin-right: 64px; }
.logos__item img { height: 38px; width: auto; display: block; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- FAQ / UKK ---------- */
.faq { max-width: 840px; margin: 46px auto 0; display: grid; gap: 14px; }
.faq__item { border: 1px solid var(--line); border-radius: 16px; background: #fff; overflow: hidden; transition: border-color .2s ease, box-shadow .2s ease; }
.faq__item[open] { border-color: var(--green-100); box-shadow: var(--shadow-card); }
.faq__q { list-style: none; cursor: pointer; padding: 22px 26px; display: flex; align-items: center; justify-content: space-between; gap: 18px; font-family: var(--font-head); font-weight: 700; font-size: 18px; color: var(--ink); }
.faq__q::-webkit-details-marker { display: none; }
.faq__q:hover { color: var(--green-700); }
.faq__chev { flex: 0 0 22px; width: 22px; height: 22px; color: var(--green-600); transition: transform .25s ease; }
.faq__item[open] .faq__chev { transform: rotate(180deg); }
.faq__a { padding: 0 26px 24px; color: var(--ink-soft); font-size: 16px; line-height: 1.72; }
@media (max-width: 640px) { .faq__q { font-size: 16px; padding: 18px 20px; } .faq__a { padding: 0 20px 20px; } }

/* ---------- Steps (kuntoarvio walkthrough) ---------- */
.steps { position: relative; max-width: 880px; margin: 48px auto 0; padding-left: 46px; display: grid; gap: 18px; }
/* Process rail: a thread that travels alongside the numbered steps */
.steps::before {
  content: "";
  position: absolute;
  left: 16px; top: 30px; bottom: 30px;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-500) 0%, rgba(201,162,75,.3) 100%);
}
.step { position: relative; display: grid; grid-template-columns: auto 1fr; gap: clamp(18px, 3vw, 28px); align-items: start;
  background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: clamp(22px, 3vw, 30px); box-shadow: var(--shadow-card); }
.step::before {
  content: "";
  position: absolute;
  left: -35px;
  top: calc(clamp(22px, 3vw, 30px) + 20px);
  width: 12px; height: 12px;
  border-radius: 50%;
  background: var(--gold-500);
  border: 2px solid var(--cream);
  box-shadow: 0 0 0 1px rgba(201,162,75,.4);
}
.step__num { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0;
  font-family: var(--font-head); font-weight: 800; font-size: 22px; color: var(--gold-600);
  background: rgba(201,162,75,.12); border: 1px solid rgba(201,162,75,.32); }
.step__body h3 { margin-bottom: 8px; }
.step__body p { color: var(--ink-soft); font-size: 16px; line-height: 1.72; }
@media (max-width: 560px) {
  .steps { padding-left: 0; }
  .steps::before, .step::before { display: none; }
  .step { grid-template-columns: 1fr; gap: 14px; }
  .step__num { width: 46px; height: 46px; font-size: 19px; }
}

/* ---------- Risk cards (kuntoarvio) ---------- */
.risk-card { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 18px;
  padding: clamp(26px, 3vw, 34px); box-shadow: var(--shadow-card); overflow: hidden; }
.risk-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px;
  background: linear-gradient(var(--gold-500), var(--gold-600)); }
.risk-card__ic { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 14px;
  background: rgba(201,162,75,.12); border: 1px solid rgba(201,162,75,.3); margin-bottom: 18px; }
.risk-card__ic svg { width: 26px; height: 26px; color: var(--gold-600); }
.risk-card h3 { margin-bottom: 10px; }
.risk-card p { color: var(--ink-soft); font-size: 16px; line-height: 1.72; }

/* ---------- CTA band ---------- */
.cta-band { position: relative; background: linear-gradient(120deg, var(--green-700), var(--green-900)); color: #fff; border-radius: 28px; padding: clamp(40px, 6vw, 72px); overflow: hidden; isolation: isolate; }
.cta-band::before { content:""; position:absolute; inset:0; z-index:-1; opacity:.5;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='42'%3E%3Cpath d='M0 42 L42 10 L84 42' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.10'/%3E%3C/svg%3E");
  background-size: 84px 42px; }
.cta-band__glow { position:absolute; z-index:-1; width:520px; height:520px; right:-6%; top:-40%; background: radial-gradient(circle, rgba(201,162,75,.22), transparent 64%); }
.cta-band .h2 { color: #fff; max-width: 18ch; }
.cta-band p { color: rgba(255,255,255,.82); margin-top: 14px; }
.cta-band__inner { display: flex; align-items: center; justify-content: space-between; gap: 40px; flex-wrap: wrap; }

/* ---------- Inline soittopyyntö-väli ---------- */
.callback-band { position: relative; display: flex; align-items: center; justify-content: space-between; gap: 22px 40px; flex-wrap: wrap;
  background: linear-gradient(120deg, var(--green-700), var(--green-900)); color: #fff; border-radius: 22px;
  padding: clamp(26px, 4vw, 40px) clamp(26px, 5vw, 52px); overflow: hidden; isolation: isolate; }
.callback-band__text .h3 { color: #fff; }
.callback-band__text p { color: rgba(255,255,255,.82); margin-top: 6px; }
.callback-band__fields { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.callback-band__fields input { height: 52px; padding: 0 16px; border-radius: 12px; font: inherit; flex: 1 1 150px; min-width: 130px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.10); color: #fff; }
.callback-band__fields input[name="postinro"] { flex: 0 0 150px; }
.callback-band__fields input::placeholder { color: rgba(255,255,255,.62); }
.callback-band__fields input:focus { outline: none; border-color: var(--gold-500); background: rgba(255,255,255,.16); }

/* ---------- Form ---------- */
.contact-grid { display: grid; grid-template-columns: 1.3fr .9fr; gap: clamp(32px,5vw,64px); align-items: start; }
.form { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); padding: clamp(26px, 4vw, 40px); box-shadow: var(--shadow-card); }
.form__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; margin-top: 24px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field.full { grid-column: 1 / -1; }
.field label { font-family: var(--font-head); font-weight: 600; font-size: 14px; color: var(--ink); }
.field label .req { color: var(--gold-600); }
.field input, .field select, .field textarea {
  font-family: var(--font-body); font-size: 16px; color: var(--ink);
  padding: 13px 15px; border: 1.5px solid var(--line); border-radius: 12px; background: var(--cream);
  transition: border-color .2s ease, box-shadow .2s ease, background .2s ease; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold-500); background: #fff; box-shadow: 0 0 0 4px rgba(201,162,75,.18);
}
.field textarea { resize: vertical; min-height: 110px; }
.form .btn { margin-top: 22px; width: 100%; }
.form__note { font-size: 13px; color: var(--ink-soft); margin-top: 14px; text-align: center; }
.form__error { font-size: 14px; color: #b3261e; background: #fdecea; border: 1px solid #f5c6c2; border-radius: 12px; padding: 12px 16px; margin-top: 14px; text-align: center; }
.form__success { display: none; text-align: center; padding: 30px 10px; }
.form__success.show { display: block; }
.form__success svg { width: 56px; height: 56px; color: var(--green-600); margin: 0 auto 14px; }
.form.sent .form__grid, .form.sent > .btn, .form.sent .form__note, .form.sent .form__head, .form.sent .cta-note, .form.sent .form-trust { display: none; }

/* ---------- Riskinpoisto lomakkeen yhteydessä (form-trust) ---------- */
.form-trust { margin-top: 18px; padding: 15px 17px; border: 1px solid var(--line); border-radius: 12px; background: var(--cream); }
.form-trust__rating { display: flex; align-items: center; gap: 9px; font-size: 14px; color: var(--ink); }
.form-trust__rating .stars { color: var(--gold-500); letter-spacing: 1.5px; }
.form-trust__quote { margin: 11px 0 0; font-size: 13.5px; line-height: 1.55; color: var(--ink-soft); font-style: italic; }
.form-trust__quote span { font-style: normal; color: var(--ink); font-weight: 600; }
.form-trust__badges { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 13px; }
.form-trust__badges span { font-size: 12px; font-weight: 600; color: var(--green-700); background: var(--green-100); border-radius: 999px; padding: 5px 12px; }

.contact-side { display: grid; gap: 22px; }
.contact-card { background: var(--green-900); color: #fff; border-radius: var(--radius-card); padding: 32px; }
.contact-card .person { display: flex; align-items: center; gap: 16px; }
.contact-card .person__av { width: 64px; height: 64px; border-radius: 50%; background: rgba(201,162,75,.18); color: var(--gold-500); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; font-size: 22px; flex-shrink: 0; }
.contact-card .person__name { font-family: var(--font-head); font-weight: 700; font-size: 19px; }
.contact-card .person__role { font-size: 14px; color: rgba(255,255,255,.7); }
.contact-list { list-style: none; padding: 0; margin-top: 24px; display: grid; gap: 14px; }
.contact-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 15.5px; color: rgba(255,255,255,.9); }
.contact-list li svg { width: 20px; height: 20px; color: var(--gold-500); flex-shrink: 0; margin-top: 2px; }
.contact-list a { color: #fff; }
.contact-list a:hover { color: var(--gold-500); }
.area-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.area-tags span { font-size: 13px; background: var(--green-100); color: var(--green-700); padding: 6px 12px; border-radius: 9999px; }

/* ---------- Badges / trust marks ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 28px; align-items: center; }
.badge-mark { display: flex; align-items: center; gap: 12px; }
.badge-mark__ic { width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center; background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12); }
.badge-mark__ic svg { width: 26px; height: 26px; color: var(--gold-500); }
.badge-mark__t { font-family: var(--font-head); font-weight: 700; font-size: 15px; }
.badge-mark__s { font-size: 12.5px; color: rgba(255,255,255,.6); }

/* ---------- Footer ---------- */
.footer { position: relative; background: var(--green-900); color: #fff; padding-block: 72px 36px; isolation: isolate; }
.footer::before { content:""; position:absolute; top:0; left:0; right:0; height:1px; background: linear-gradient(90deg, transparent, var(--gold-500) 50%, transparent); }
.footer__seams { position:absolute; inset:0; z-index:-1; opacity:.4; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='84' height='42'%3E%3Cpath d='M0 42 L42 10 L84 42' fill='none' stroke='%23ffffff' stroke-width='1' opacity='0.08'/%3E%3C/svg%3E"); background-size: 84px 42px; }
.footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 40px; }
.footer .brand__logo { height: 44px; }
.footer__about p { color: rgba(255,255,255,.85); font-size: 15px; margin-top: 18px; }
.footer h4 { font-family: var(--font-head); font-size: 14px; text-transform: uppercase; letter-spacing: .1em; color: var(--gold-500); margin-bottom: 18px; }
.footer ul { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer ul a, .footer__contact li { color: rgba(255,255,255,.8); font-size: 15px; }
.footer ul a:hover { color: var(--gold-500); }
.footer__contact { list-style: none; padding: 0; display: grid; gap: 11px; }
.footer__contact li { display: flex; gap: 10px; }
.footer__contact svg { width: 18px; height: 18px; color: var(--gold-500); flex-shrink: 0; margin-top: 3px; }
.footer__contact a { color: rgba(255,255,255,.85); }
.footer__marks { display: flex; gap: 14px; margin-top: 22px; flex-wrap: wrap; align-items: center; }
.footer__badge { height: 58px; width: auto; display: block; background: #fff; border-radius: 10px; padding: 7px 12px; }

/* Real-asset additions */
.person__av img, .contact-card .person__av img { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.person__av.person__av--photo { background: none; padding: 0; overflow: hidden; }
.trust-badges { display: flex; flex-wrap: wrap; align-items: center; gap: 22px 32px; }
.trust-badges img { display: block; }
.badge-aaa { height: 72px; width: auto; }
.badge-kumppani { height: 72px; width: auto; border-radius: 10px; }
.seal-badges { width: 100%; max-width: 460px; height: auto; display: block; }
.footer__bottom { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; margin-top: 52px; padding-top: 28px; border-top: 1px solid rgba(255,255,255,.1); }
.footer__bottom p, .footer__bottom a { color: rgba(255,255,255,.55); font-size: 13.5px; }

/* ---------- Timed callback popup ---------- */
body.cbpop-open { overflow: hidden; }
.callback-pop { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; padding: 20px;
  opacity: 0; visibility: hidden; transition: opacity .3s ease, visibility .3s ease; }
.callback-pop.is-open { opacity: 1; visibility: visible; }
.callback-pop__overlay { position: absolute; inset: 0; background: rgba(6,30,16,.6); backdrop-filter: blur(3px); }
.callback-pop__card { position: relative; width: 100%; max-width: 440px; max-height: calc(100vh - 40px); overflow-y: auto;
  background: #fff; border-radius: 20px;
  box-shadow: var(--shadow-deep); padding: 30px; transform: translateY(18px) scale(.97); transition: transform .35s cubic-bezier(.2,.7,.3,1); }
.callback-pop.is-open .callback-pop__card { transform: none; }
.callback-pop__close { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; display: grid; place-items: center;
  border-radius: 50%; background: var(--cream); color: var(--ink-soft); transition: background .2s ease, color .2s ease; }
.callback-pop__close:hover { background: var(--green-100); color: var(--green-700); }
.callback-pop__close svg { width: 18px; height: 18px; pointer-events: none; }
.callback-pop .form { box-shadow: none; padding: 0; background: none; border: 0; }
.cbpop-review { margin: 2px 0 18px; padding: 13px 16px; background: var(--cream); border-radius: 12px; border-left: 3px solid var(--gold-500); }
.cbpop-review__stars { color: var(--gold-500); letter-spacing: 2px; font-size: 13px; }
.cbpop-review__text { margin-top: 6px; font-size: 14px; line-height: 1.5; color: var(--ink); font-style: italic; }
.cbpop-review__name { display: block; margin-top: 8px; font-size: 12.5px; color: var(--ink-soft); font-weight: 600; }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 1.15s cubic-bezier(.22,.61,.36,1), transform 1.15s cubic-bezier(.22,.61,.36,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .1s; }
.reveal.d2 { transition-delay: .2s; }
.reveal.d3 { transition-delay: .3s; }
.reveal.d4 { transition-delay: .4s; }
.reveal.d5 { transition-delay: .5s; }

/* Non-uniform reveals — different character per section, not one identical fade */
/* Cascade the "Miksi Asor" rows and reference grids instead of popping at once */
.why-items > .why-item.reveal:nth-child(2) { transition-delay: .07s; }
.why-items > .why-item.reveal:nth-child(3) { transition-delay: .14s; }
.why-items > .why-item.reveal:nth-child(4) { transition-delay: .07s; }
.why-items > .why-item.reveal:nth-child(5) { transition-delay: .14s; }
.why-items > .why-item.reveal:nth-child(6) { transition-delay: .21s; }
.refs > .ref.reveal:nth-child(2) { transition-delay: .09s; }
.refs > .ref.reveal:nth-child(3) { transition-delay: .18s; }
/* Image blocks wipe up under a clip mask rather than fading like text */
.reveal-clip {
  clip-path: inset(0 0 14% 0);
  transition: opacity 1.15s cubic-bezier(.22,.61,.36,1), transform 1.15s cubic-bezier(.22,.61,.36,1), clip-path 1.1s cubic-bezier(.22,.61,.36,1);
}
.reveal-clip.in { clip-path: inset(0 0 0 0); }
/* Kicker ridge line draws itself in as the heading reveals */
.section-head.reveal .eyebrow::before,
.section-head.reveal .eyebrow.center::after {
  width: 0;
  transition: width .6s cubic-bezier(.22,.61,.36,1) .18s;
}
.section-head.reveal.in .eyebrow::before,
.section-head.reveal.in .eyebrow.center::after { width: 28px; }

/* Reveal pois yläosan/utility-alueilta — ne näkyvät heti, animointi sopii niihin huonosti.
   Jätetään reveal sisältöosioihin jotka tulevat näkyviin scrollatessa. */
.hero .reveal,
.trustbar .reveal,
.footer .reveal { opacity: 1; transform: none; transition: none; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
  .reveal-clip { clip-path: none; }
  .section-head.reveal .eyebrow::before,
  .section-head.reveal .eyebrow.center::after { width: 28px; }
  .ref img, .photostrip img, .gallery__item img, .split__photo, .why-item__photo { transition: none !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .nav, .header__cta .btn--primary { display: none; }
  .burger { display: block; }
  .trustbar .wrap { grid-template-columns: repeat(2, 1fr); gap: 22px 18px; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .split, .contact-grid { grid-template-columns: 1fr; }
  .why-item { grid-template-columns: 1fr; gap: 26px; }
  .why-item:nth-child(even) .why-item__visual { order: 0; }
  .why-item__visual { min-height: 240px; }
  .split--reverse .split__media { order: 0; }
  .split__media { min-height: 320px; }
  .swatches { grid-template-columns: repeat(3, 1fr); }
  .cta-band__inner { flex-direction: column; align-items: flex-start; }
  .callback-band__fields { width: 100%; }
  .callback-band__fields input,
  .callback-band__fields input[name="postinro"],
  .callback-band__fields .btn { flex: 1 1 100%; width: 100%; }
}
@media (max-width: 620px) {
  body { font-size: 17px; }
  .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; }
  .why-fig { max-width: 300px; }
  .form__grid { grid-template-columns: 1fr; }
  .swatches { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: 1fr 1fr; gap: 32px 24px; }
  .footer__about { grid-column: 1 / -1; }
  .reviews-head { gap: 16px; }
  .trust-item__big { font-size: 19px; }
  /* more breathing room (green) under homepage hero before the wave */
  .hero:not(.hero--sub) { align-items: flex-start; }
  .hero:not(.hero--sub) .wrap { padding-top: calc(var(--header-h) + 30px); }
  .hero:not(.hero--sub) .hero__inner { padding-block: 4px 90px; }
  /* mobile: bigger, more impactful homepage hero title */
  .hero:not(.hero--sub) .h1 { font-size: clamp(40px, 12vw, 56px); line-height: 1.05; }
  /* mobile: sub-page hero — minimal side padding so the longest compound title
     (Huopakattoremontti, the widest word) still fits the width on one line.
     Size is calibrated to the widest title so every sub-page matches. */
  .hero--sub .wrap { padding-inline: 10px; }
  /* JS (fitHeroTitles in app.js) overrides this to fill the full width per page;
     this clamp is the no-JS fallback, calibrated to the widest title. */
  .hero--sub .h1 { font-size: clamp(28px, 8.6vw, 56px); line-height: 1.06; }
  /* mobile: drop the secondary ghost button on the homepage hero — saves space */
  .hero:not(.hero--sub) .hero__cta .btn--ghost { display: none; }
  /* mobile: keep only AAA + Kotimainen under the hero */
  .trustbar--home .trust-item:nth-child(1),
  .trustbar--home .trust-item:nth-child(4) { display: none; }
}

/* ===========================================================
   Roof art backgrounds (self-contained, no external images)
   =========================================================== */
.art { background-size: cover; background-position: center; }

/* Generic dark green roof (hero/sub) */
.art-roof {
  background:
    linear-gradient(180deg, rgba(6,55,28,.15), rgba(6,55,28,.45)),
    repeating-linear-gradient(8deg, #0d4023 0 18px, #0a3a1f 18px 20px),
    linear-gradient(120deg, #0e4527, #06371C);
}
/* Pelti — metallic standing seam, graphite */
.art-pelti {
  background:
    linear-gradient(165deg, rgba(20,20,19,.05), rgba(20,20,19,.22)),
    repeating-linear-gradient(96deg, #3a3f42 0 38px, #2c3033 38px 41px, #50565a 41px 44px),
    linear-gradient(120deg, #565b5e, #2a2d2f);
}
/* Tiili — terracotta tile rows */
.art-tiili {
  background:
    linear-gradient(180deg, rgba(20,20,19,.04), rgba(20,20,19,.22)),
    repeating-linear-gradient(180deg, #a84030 0 14px, #8c4331 14px 16px, #c25e3f 16px 30px),
    linear-gradient(120deg, #b34c32, #7a3322);
}
/* Huopa — slate grey shingle grid */
.art-huopa {
  background:
    linear-gradient(180deg, rgba(20,20,19,.04), rgba(20,20,19,.24)),
    repeating-linear-gradient(180deg, #5b6166 0 20px, #4d5256 20px 22px),
    repeating-linear-gradient(90deg, rgba(0,0,0,.10) 0 38px, transparent 38px 40px),
    linear-gradient(120deg, #656b70, #43484c);
}
/* Turva — green roof with safety-rail rhythm */
.art-turva {
  background:
    linear-gradient(180deg, rgba(6,55,28,.18), rgba(6,55,28,.50)),
    repeating-linear-gradient(90deg, rgba(255,255,255,.06) 0 2px, transparent 2px 70px),
    repeating-linear-gradient(8deg, #0d4023 0 18px, #0a3a1f 18px 20px),
    linear-gradient(120deg, #0e4527, #06371C);
}
/* Taloyhtiöt — broad slate roofscape */
.art-talo {
  background:
    linear-gradient(180deg, rgba(20,20,19,.06), rgba(20,20,19,.28)),
    repeating-linear-gradient(180deg, #7a6353 0 16px, #66503f 16px 18px),
    linear-gradient(120deg, #7d6657, #4a3a30);
}
/* Cream texture for badge media etc. */
.art-cream { background: linear-gradient(135deg, #fbf9f4, #f2ede2); }

/* ---------- Ennen & jälkeen ---------- */
.ba-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(22px, 3vw, 32px); margin-top: 46px; }
.ba-case { background: #fff; border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: var(--shadow-card); overflow: hidden; }
.ba-pair { display: grid; grid-template-columns: 1fr 1fr; }
.ba-shot { position: relative; aspect-ratio: 3 / 4; overflow: hidden; background: #e9e6df; }
.ba-shot img { width: 100%; height: 100%; object-fit: cover; object-position: center; display: block; }
.ba-shot + .ba-shot { border-left: 3px solid #fff; }
.ba-shot__tag { position: absolute; left: 12px; top: 12px; font-family: var(--font-head); font-weight: 700; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; padding: 6px 12px; border-radius: 100px; background: rgba(20, 20, 19, .68); color: #fff; }
.ba-shot--after .ba-shot__tag { background: var(--green-600); }
.ba-case__cap { padding: 16px 20px 18px; display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; }
.ba-case__cap h3 { font-size: 16px; margin: 0; }
.ba-case__cap span { color: var(--ink-soft); font-size: 13px; }
@media (max-width: 900px) { .ba-grid { grid-template-columns: 1fr; max-width: 620px; margin-inline: auto; } }
@media (max-width: 560px) {
  .ba-pair { grid-template-columns: 1fr; }
  .ba-shot { aspect-ratio: 3 / 4; }
  .ba-shot + .ba-shot { border-left: 0; border-top: 3px solid #fff; }
  .ba-shot__tag { left: 14px; top: 14px; font-size: 12px; padding: 7px 14px; }
  .ba-case__cap { padding: 14px 18px 16px; }
}

/* ---------- Kuvagalleria + lightbox ---------- */
.gallery { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 46px; }
.gallery__item { position: relative; aspect-ratio: 1 / 1; overflow: hidden; border-radius: 14px; border: none; padding: 0; margin: 0; cursor: pointer; background: #e9e6df; }
.gallery__item img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.gallery__item::after { content: ""; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 55%, rgba(12, 22, 16, .32)); opacity: 0; transition: opacity .3s ease; }
.gallery__item:hover img, .gallery__item:focus-visible img { transform: scale(1.07); }
.gallery__item:hover::after { opacity: 1; }
.gallery__item:focus-visible { outline: 3px solid var(--green-600); outline-offset: 3px; }
@media (max-width: 1000px) { .gallery { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 640px) { .gallery { grid-template-columns: repeat(2, 1fr); gap: 10px; } }

.lightbox { position: fixed; inset: 0; z-index: 200; background: rgba(9, 12, 10, .93); display: none; align-items: center; justify-content: center; padding: 24px; opacity: 0; transition: opacity .25s ease; }
.lightbox.is-open { display: flex; opacity: 1; }
.lightbox__img { max-width: min(1120px, 92vw); max-height: 86vh; border-radius: 10px; box-shadow: 0 30px 90px rgba(0, 0, 0, .55); }
.lightbox__btn { position: absolute; width: 52px; height: 52px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .25); background: rgba(255, 255, 255, .08); color: #fff; display: grid; place-items: center; cursor: pointer; transition: background .2s ease, border-color .2s ease; }
.lightbox__btn:hover { background: rgba(255, 255, 255, .18); border-color: rgba(255, 255, 255, .5); }
.lightbox__btn svg { width: 24px; height: 24px; }
.lb-close { top: 22px; right: 22px; }
.lb-prev { left: 22px; top: 50%; transform: translateY(-50%); }
.lb-next { right: 22px; top: 50%; transform: translateY(-50%); }
@media (max-width: 640px) { .lb-prev { left: 12px; } .lb-next { right: 12px; } .lightbox__btn { width: 44px; height: 44px; } }

/* ---------- Kategoriakuvat (photostrip) ---------- */
.photostrip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: clamp(26px, 3vw, 38px); }
.photostrip figure { margin: 0; border-radius: 16px; overflow: hidden; aspect-ratio: 3 / 2; background: #e9e6df; }
.photostrip img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .55s cubic-bezier(.22,.61,.36,1); }
.photostrip figure:hover img { transform: scale(1.05); }
@media (max-width: 700px) { .photostrip { grid-template-columns: 1fr 1fr; } }
@media (max-width: 460px) { .photostrip { grid-template-columns: 1fr; } }

/* ---------- Prosessi (näin remontti etenee) ---------- */
.process { display: grid; grid-template-columns: repeat(5, 1fr); gap: clamp(18px, 2vw, 26px); margin-top: 48px; position: relative; padding-top: 19px; }
/* Process line: one continuous rail along the top edge, numbers sit on it */
.process::before {
  content: "";
  position: absolute;
  top: 19px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, transparent 0%, var(--gold-500) 6%, var(--gold-500) 94%, transparent 100%);
  z-index: 1;
}
.process__media { position: relative; aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; background: #e9e6df; }
.process__media img { width: 100%; height: 100%; object-fit: cover; display: block; }
.process__step { position: relative; }
.process__num { position: absolute; left: 14px; top: -19px; width: 38px; height: 38px; border-radius: 50%; background: var(--green-600); color: #fff; font-family: var(--font-head); font-weight: 700; display: grid; place-items: center; box-shadow: 0 6px 18px rgba(0, 0, 0, .25); z-index: 2; }
.process__step h3 { font-size: 17px; margin: 16px 0 6px; }
.process__step p { color: var(--ink-soft); font-size: 14px; line-height: 1.55; margin: 0; }
@media (max-width: 760px) { .process { grid-template-columns: 1fr 1fr; padding-top: 0; } .process::before { display: none; } .process__num { top: 14px; } }
@media (max-width: 440px) { .process { grid-template-columns: 1fr; } }

/* ---------- Evästebanneri (Consent Mode v2) ---------- */
.cc { position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999; display: none; padding: 16px clamp(14px, 3vw, 28px); }
.cc.is-open { display: block; }
.cc__card { max-width: 1080px; margin: 0 auto; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius-card); box-shadow: 0 -6px 40px rgba(6, 55, 28, .18), var(--shadow-lift); padding: clamp(18px, 2.4vw, 26px); }
.cc__title { font-family: var(--font-head); font-weight: 700; font-size: clamp(17px, 2vw, 20px); color: var(--ink); margin: 0 0 8px; }
.cc__text { color: var(--ink-soft); font-size: 14.5px; line-height: 1.6; margin: 0 0 18px; max-width: 76ch; }
.cc__text a { color: var(--green-600); text-decoration: underline; }
.cc__actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.cc__actions .btn { min-width: 168px; justify-content: center; }
.cc__link { background: none; border: 0; padding: 8px 4px; font: inherit; font-size: 14px; color: var(--ink-soft); text-decoration: underline; cursor: pointer; }
.cc__link:hover { color: var(--ink); }
/* Settings panel */
.cc__opts { display: none; margin: 4px 0 18px; border-top: 1px solid var(--line); padding-top: 16px; }
.cc.is-settings .cc__opts { display: block; }
.cc.is-settings .cc__intro-actions { display: none; }
.cc.is-settings .cc__settings-actions { display: flex; }
.cc__settings-actions { display: none; }
.cc__opt { display: flex; gap: 14px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.cc__opt:last-child { border-bottom: 0; }
.cc__opt-info { flex: 1; }
.cc__opt-info strong { display: block; font-family: var(--font-head); font-size: 15px; color: var(--ink); margin-bottom: 3px; }
.cc__opt-info span { display: block; font-size: 13.5px; color: var(--ink-soft); line-height: 1.55; }
/* Toggle switch */
.cc__switch { position: relative; flex: 0 0 auto; width: 46px; height: 26px; margin-top: 2px; }
.cc__switch input { position: absolute; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.cc__track { position: absolute; inset: 0; background: #cfcabb; border-radius: 999px; transition: background .18s ease; }
.cc__track::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .3); transition: transform .18s ease; }
.cc__switch input:checked + .cc__track { background: var(--green-600); }
.cc__switch input:checked + .cc__track::after { transform: translateX(20px); }
.cc__switch input:disabled + .cc__track { background: var(--green-700); opacity: .55; cursor: not-allowed; }
.cc__switch input:focus-visible + .cc__track { outline: 2px solid var(--gold-500); outline-offset: 2px; }
/* Floating reopen button */
.cc-reopen { position: fixed; left: 16px; bottom: 16px; z-index: 9998; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); box-shadow: var(--shadow-card); cursor: pointer; display: none; align-items: center; justify-content: center; color: var(--green-700); }
.cc-reopen.is-visible { display: flex; }
.cc-reopen:hover { box-shadow: var(--shadow-lift); }
.cc-reopen svg { width: 22px; height: 22px; }
@media (max-width: 560px) {
  .cc__actions .btn { flex: 1 1 auto; min-width: 0; }
  .cc__actions { gap: 10px; }
}

/* ---------- Legal / tietosuoja ---------- */
.legal { max-width: 820px; }
.legal__eyebrow { font-family: var(--font-head); font-weight: 700; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-600); margin: 0 0 10px; }
.legal .h1 { margin: 0 0 18px; }
.legal__lead { font-size: clamp(16px, 1.8vw, 18px); line-height: 1.65; color: var(--ink-soft); margin: 0 0 18px; }
.legal__meta { font-size: 13.5px; line-height: 1.6; color: var(--ink-soft); background: var(--cream); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0 0 8px; }
.legal h2 { font-family: var(--font-head); font-weight: 700; font-size: clamp(19px, 2.2vw, 23px); color: var(--ink); margin: 40px 0 12px; padding-top: 8px; }
.legal p { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; margin: 0 0 14px; }
.legal ul { color: var(--ink-soft); font-size: 15.5px; line-height: 1.7; margin: 0 0 14px; padding-left: 22px; }
.legal li { margin-bottom: 7px; }
.legal li::marker { color: var(--gold-500); }
.legal strong { color: var(--ink); }
.legal a { color: var(--green-600); text-decoration: underline; }
.legal a:hover { color: var(--green-700); }
.legal a.btn { text-decoration: none; }
.legal__todo { color: var(--gold-600); font-size: 12.5px; font-weight: 600; }
