/* ==========================================================================
   läheltä.fi – design system
   Inspiroitu apple.com: paljon tilaa, tiukka typografia, pehmeät pyöristykset,
   lasimainen navigaatio, vuorottelevat vaaleat ja tummat osiot.
   ========================================================================== */

:root {
  --bg: #ffffff;
  --bg-alt: #f5f5f7;
  --bg-dark: #000000;
  --bg-dark-2: #111114;
  --text: #1d1d1f;
  --text-2: #6e6e73;
  --text-3: #86868b;
  --text-inv: #f5f5f7;
  --text-inv-2: #a1a1a6;
  --line: rgba(0, 0, 0, 0.08);
  --line-strong: rgba(0, 0, 0, 0.16);
  --accent: #0071e3;
  --accent-hover: #0077ed;
  --accent-soft: rgba(0, 113, 227, 0.1);
  --warm: #ff6a3d;
  --pink: #ff3d77;
  --cool: #2f7cf6;
  --green: #34c759;
  --red: #ff3b30;
  --grad: linear-gradient(100deg, #ff6a3d 0%, #ff3d77 45%, #2f7cf6 100%);
  --grad-soft: linear-gradient(135deg, rgba(255, 106, 61, 0.14), rgba(47, 124, 246, 0.14));
  --radius-xl: 32px;
  --radius-l: 24px;
  --radius-m: 18px;
  --radius-s: 12px;
  --shadow-1: 0 2px 12px rgba(0, 0, 0, 0.06);
  --shadow-2: 0 14px 44px rgba(0, 0, 0, 0.1);
  --shadow-3: 0 30px 80px rgba(0, 0, 0, 0.18);
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);
  --font: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Segoe UI Variable Text", "Segoe UI", Inter, Roboto, "Helvetica Neue", Helvetica, Arial, sans-serif;
  --nav-h: 52px;
  --container: 1080px;
  --container-wide: 1240px;
  --container-narrow: 760px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.47;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
  display: block;
}

a {
  color: var(--accent);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

h1,
h2,
h3,
h4 {
  margin: 0;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.1;
  text-wrap: balance;
}

p {
  margin: 0;
}

.container {
  width: min(100% - 40px, var(--container));
  margin-inline: auto;
}

.container-narrow {
  width: min(100% - 40px, var(--container-narrow));
  margin-inline: auto;
}

/* Leveämpi säiliö neljän kortin riville, jotta pitkät otsikot (Poistoilmalämpöpumppu) mahtuvat ilman tavutusta */
.container-wide {
  width: min(100% - 40px, var(--container-wide));
  margin-inline: auto;
}

.visually-hidden {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 3px;
  border-radius: 6px;
}

.skip-link {
  position: absolute;
  left: 16px;
  top: -60px;
  z-index: 200;
  background: var(--text);
  color: #fff;
  padding: 10px 16px;
  border-radius: 999px;
}

.skip-link:focus {
  top: 12px;
}

.icon {
  width: 24px;
  height: 24px;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

/* Gradientti-teksti */
.grad-text {
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* --------------------------------------------------------------------------
   Navigaatio
   -------------------------------------------------------------------------- */

.nav {
  position: sticky;
  top: 0;
  z-index: 100;
  height: var(--nav-h);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s, background 0.3s;
}

.nav.scrolled {
  border-bottom-color: var(--line);
  background: rgba(255, 255, 255, 0.82);
}

.nav-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
  font-size: 19px;
  letter-spacing: -0.02em;
  color: var(--text);
}

.brand:hover {
  text-decoration: none;
}

.brand-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--grad);
  box-shadow: 0 0 0 4px rgba(255, 106, 61, 0.12);
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-links a {
  color: var(--text);
  font-size: 14px;
  opacity: 0.85;
}

.nav-links a:hover {
  opacity: 1;
  text-decoration: none;
}

.nav-toggle {
  display: none;
  background: none;
  border: 0;
  padding: 8px;
  margin-right: -8px;
  color: var(--text);
  cursor: pointer;
}

/* --------------------------------------------------------------------------
   Napit
   -------------------------------------------------------------------------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 22px;
  border-radius: 999px;
  border: 0;
  font: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 1;
  cursor: pointer;
  white-space: nowrap;
  transition: transform 0.25s var(--ease), background 0.2s, box-shadow 0.25s, color 0.2s;
}

.btn:hover {
  text-decoration: none;
}

.btn:active {
  transform: scale(0.97);
}

.btn-primary {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 6px 20px rgba(0, 113, 227, 0.28);
}

.btn-primary:hover {
  background: var(--accent-hover);
  box-shadow: 0 10px 28px rgba(0, 113, 227, 0.36);
}

.btn-secondary {
  background: rgba(0, 0, 0, 0.06);
  color: var(--text);
}

.btn-secondary:hover {
  background: rgba(0, 0, 0, 0.1);
}

.btn-ghost {
  background: transparent;
  color: var(--text-2);
}

.btn-ghost:hover {
  color: var(--text);
  background: rgba(0, 0, 0, 0.05);
}

.btn-sm {
  min-height: 32px;
  padding: 6px 14px;
  font-size: 13px;
}

.btn-lg {
  min-height: 54px;
  padding: 14px 30px;
  font-size: 19px;
}

.btn-inv {
  background: #fff;
  color: var(--text);
}

.btn-inv:hover {
  background: #f0f0f2;
}

.link-arrow {
  display: inline;
  font-size: 17px;
  font-weight: 500;
}

.link-arrow::after {
  content: "›";
  display: inline-block;
  margin-left: 4px;
  vertical-align: -1px;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.2s;
}

.link-arrow:hover::after {
  transform: translateX(3px);
}

.link-arrow:hover {
  text-decoration: none;
}

/* --------------------------------------------------------------------------
   Hero
   -------------------------------------------------------------------------- */

.hero {
  position: relative;
  overflow: hidden;
  padding: 96px 0 40px;
  text-align: center;
}

.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
}

.hero-bg::before,
.hero-bg::after {
  content: "";
  position: absolute;
  width: 60vw;
  height: 60vw;
  max-width: 820px;
  max-height: 820px;
  border-radius: 50%;
  filter: blur(90px);
  opacity: 0.35;
}

.hero-bg::before {
  left: -18vw;
  top: -30vw;
  background: radial-gradient(circle at center, #ff8a5c, transparent 62%);
}

.hero-bg::after {
  right: -20vw;
  top: -22vw;
  background: radial-gradient(circle at center, #4f8ef7, transparent 62%);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
  background: rgba(0, 0, 0, 0.05);
  border-radius: 999px;
  padding: 6px 14px;
  margin-bottom: 22px;
}

.eyebrow .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(52, 199, 89, 0.18);
}

.hero h1 {
  font-size: clamp(42px, 7.2vw, 80px);
  font-weight: 700;
  letter-spacing: -0.035em;
  line-height: 1.02;
  max-width: 14ch;
  margin-inline: auto;
}

.hero .lead {
  font-size: clamp(19px, 2.2vw, 24px);
  line-height: 1.4;
  color: var(--text-2);
  max-width: 640px;
  margin: 22px auto 0;
  text-wrap: pretty;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 14px 20px;
  margin-top: 32px;
}

.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 22px;
  margin-top: 30px;
  padding: 0;
  list-style: none;
  color: var(--text-2);
  font-size: 15px;
}

.trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust .icon {
  width: 18px;
  height: 18px;
  color: var(--green);
  stroke-width: 2.4;
}

.hero-visual {
  margin: 56px auto 0;
  max-width: 760px;
}

/* --------------------------------------------------------------------------
   Osiot
   -------------------------------------------------------------------------- */

.section {
  padding: 104px 0;
}

.section-tight {
  padding: 72px 0;
}

.section-alt {
  background: var(--bg-alt);
}

.section-dark {
  background: var(--bg-dark);
  color: var(--text-inv);
}

.section-dark .text-2,
.section-dark .section-head p {
  color: var(--text-inv-2);
}

.section-head {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-head h2 {
  font-size: clamp(32px, 4.8vw, 56px);
  letter-spacing: -0.03em;
}

.section-head p {
  font-size: clamp(18px, 2vw, 21px);
  color: var(--text-2);
  margin-top: 16px;
  text-wrap: pretty;
}

.text-2 {
  color: var(--text-2);
}

.grid {
  display: grid;
  gap: 20px;
}

.grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.grid-4 {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

/* Bento-laatat */
.tile {
  background: var(--bg);
  border-radius: var(--radius-l);
  padding: 34px 30px;
  box-shadow: var(--shadow-1);
  transition: transform 0.4s var(--ease), box-shadow 0.4s var(--ease);
}

.section-alt .tile {
  box-shadow: none;
}

.tile:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2);
}

.tile h3 {
  font-size: 22px;
  margin-top: 18px;
}

.tile p {
  color: var(--text-2);
  margin-top: 10px;
  font-size: 16px;
}

.tile-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--grad);
}

.tile-icon .icon {
  width: 26px;
  height: 26px;
  stroke-width: 2;
}

.tile-icon.mono {
  background: var(--text);
}

.tile-dark {
  background: var(--bg-dark-2);
  color: var(--text-inv);
}

.tile-dark p {
  color: var(--text-inv-2);
}

.tile-link {
  color: inherit;
  display: block;
}

.tile-link:hover {
  text-decoration: none;
}

.tile-cta {
  margin-top: 22px;
  color: var(--accent);
}

/* Askeleet */
.steps {
  counter-reset: step;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 28px;
}

.step {
  counter-increment: step;
  padding: 0 8px;
}

.step-num {
  font-size: 64px;
  font-weight: 700;
  letter-spacing: -0.04em;
  line-height: 1;
  background: var(--grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.step h3 {
  font-size: 22px;
  margin-top: 14px;
}

.step p {
  color: var(--text-2);
  margin-top: 8px;
}

/* Feature-lista */
.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.checklist li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 17px;
}

.checklist .icon {
  width: 22px;
  height: 22px;
  color: var(--green);
  stroke-width: 2.6;
  margin-top: 2px;
}

.section-dark .checklist .icon {
  color: #30d158;
}

/* Kaksipalstainen sisältö */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}

.split h2 {
  font-size: clamp(30px, 4vw, 44px);
  letter-spacing: -0.03em;
}

.split > div > p {
  color: var(--text-2);
  font-size: 19px;
  margin-top: 14px;
}

.section-dark .split > div > p {
  color: var(--text-inv-2);
}

/* Hinnasto */
.table-wrap {
  overflow-x: auto;
  border-radius: var(--radius-l);
  background: var(--bg);
  box-shadow: var(--shadow-1);
}

table.pricing {
  width: 100%;
  border-collapse: collapse;
  font-size: 16px;
  min-width: 560px;
}

table.pricing th,
table.pricing td {
  padding: 18px 22px;
  text-align: left;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}

table.pricing th {
  font-weight: 600;
  color: var(--text-2);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

table.pricing tr:last-child td {
  border-bottom: 0;
}

table.pricing td:first-child {
  font-weight: 600;
}

table.pricing .price {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.fineprint {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 16px;
  text-align: center;
}

/* Pumpputyypit – vaakavieritettävä kortti­rivi mobiilissa (some-tyylinen) */
.scroller {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

/* Neljä korttia rinnan vain, kun pisin otsikko mahtuu yhdelle riville; muuten kaksi */
@media (max-width: 1240px) {
  .scroller {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.card {
  background: var(--bg);
  border-radius: var(--radius-l);
  padding: 28px 24px;
  box-shadow: var(--shadow-1);
  display: flex;
  flex-direction: column;
  min-height: 100%;
}

.card h3 {
  font-size: 21px;
  margin-top: 16px;
}

/* Kortin linkki alareunaan, jotta kortit ovat samassa linjassa */
.card .tile-cta {
  margin-top: auto;
  padding-top: 16px;
}

.card p {
  color: var(--text-2);
  margin-top: 8px;
  font-size: 15.5px;
  flex: 1;
}

.card .meta {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  color: var(--text-2);
  display: grid;
  gap: 4px;
}

.card .meta strong {
  color: var(--text);
  font-weight: 600;
}

/* UKK */
.faq {
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  border-bottom: 1px solid var(--line);
}

.faq summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 22px 0;
  font-size: 19px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary .icon {
  transition: transform 0.3s var(--ease);
  color: var(--text-3);
}

.faq details[open] summary .icon {
  transform: rotate(180deg);
}

.faq .answer {
  padding: 0 0 24px;
  color: var(--text-2);
  max-width: 64ch;
}

.faq .answer p + p {
  margin-top: 10px;
}

/* CTA-banneri */
.cta-band {
  text-align: center;
  padding: 96px 0;
}

.cta-band h2 {
  font-size: clamp(32px, 5vw, 56px);
  letter-spacing: -0.03em;
}

.cta-band p {
  color: var(--text-inv-2);
  font-size: 20px;
  margin-top: 16px;
}

.cta-band .btn {
  margin-top: 32px;
}

/* Alatunniste */
.footer {
  background: var(--bg-alt);
  padding: 40px 0 48px;
  font-size: 13px;
  color: var(--text-2);
}

.footer-inner {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px 32px;
  align-items: center;
}

.footer a {
  color: var(--text-2);
}

.footer nav {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
}

.footer .brand {
  font-size: 15px;
}

.placeholder {
  background: #fff3cd;
  color: #7a5b00;
  padding: 0 6px;
  border-radius: 6px;
  font-weight: 500;
}

/* Kiinteä mobiilin CTA (app-tyylinen) */
.sticky-cta {
  position: fixed;
  left: 16px;
  right: 16px;
  bottom: 16px;
  z-index: 90;
  display: none;
  transform: translateY(120%);
  transition: transform 0.4s var(--ease);
}

.sticky-cta.show {
  transform: translateY(0);
}

.sticky-cta .btn {
  width: 100%;
  box-shadow: var(--shadow-3);
}

/* Scroll reveal */
.reveal {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease);
}

.reveal.in {
  opacity: 1;
  transform: none;
}

.reveal-delay-1 {
  transition-delay: 0.08s;
}

.reveal-delay-2 {
  transition-delay: 0.16s;
}

.reveal-delay-3 {
  transition-delay: 0.24s;
}

html:not(.js) .reveal {
  opacity: 1;
  transform: none;
}

/* Sisältösivut (tietosuoja, kiitos, 404) */
.prose {
  padding: 72px 0 104px;
}

.prose h1 {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -0.03em;
}

.prose h2 {
  font-size: 26px;
  margin-top: 44px;
}

.prose h3 {
  font-size: 20px;
  margin-top: 28px;
}

.prose p,
.prose li {
  color: var(--text-2);
  margin-top: 12px;
}

.prose li {
  margin-top: 6px;
}

.prose .lead {
  font-size: 20px;
  margin-top: 18px;
}

.prose ul,
.prose ol {
  padding-left: 22px;
}

.prose .meta {
  font-size: 14px;
  color: var(--text-3);
  margin-top: 10px;
}

.center {
  text-align: center;
}

.success-mark {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  margin: 0 auto 28px;
  display: grid;
  place-items: center;
  background: var(--green);
  color: #fff;
  box-shadow: 0 16px 40px rgba(52, 199, 89, 0.35);
}

.success-mark .icon {
  width: 48px;
  height: 48px;
  stroke-width: 3;
}

/* Hero-kuvitus: animoidut ilmavirrat */
.hero-visual .flow {
  stroke-dasharray: 14 18;
  animation: flow 2.6s linear infinite;
}

.hero-visual .flow-2 {
  animation-delay: -0.9s;
}

.hero-visual .flow-3 {
  animation-delay: -1.7s;
}

@keyframes flow {
  to {
    stroke-dashoffset: -64;
  }
}

/* ==========================================================================
   Stories-tyylinen tarjouspyyntölomake
   ========================================================================== */

.story-section {
  background: var(--bg-dark);
  color: var(--text-inv);
  padding: 104px 0;
  position: relative;
  overflow: hidden;
}

.story-section::before {
  content: "";
  position: absolute;
  inset: auto -20% -40% -20%;
  height: 70%;
  background: radial-gradient(ellipse at center, rgba(47, 124, 246, 0.35), transparent 60%);
  pointer-events: none;
}

.story-section .section-head h2 {
  color: #fff;
}

.story-section .section-head p {
  color: var(--text-inv-2);
}

.story {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  background: var(--bg);
  color: var(--text);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  padding: 22px 28px 28px;
  overflow: hidden;
}

.story-progress {
  display: flex;
  gap: 6px;
  margin-bottom: 26px;
}

.story-progress span {
  flex: 1;
  height: 4px;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.1);
  overflow: hidden;
  position: relative;
}

.story-progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}

.story-progress span.done::after,
.story-progress span.current::after {
  transform: scaleX(1);
}

.story-step {
  border: 0;
  margin: 0;
  padding: 0;
  min-width: 0;
}

.story-step + .story-step {
  margin-top: 40px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

.js .story-step + .story-step {
  margin-top: 0;
  padding-top: 0;
  border-top: 0;
}

.js .story-step:not(.active) {
  display: none;
}

.js .story-step.active {
  animation: step-in 0.45s var(--ease);
}

.js .story-step.active.back {
  animation-name: step-in-back;
}

@keyframes step-in {
  from {
    opacity: 0;
    transform: translateX(28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@keyframes step-in-back {
  from {
    opacity: 0;
    transform: translateX(-28px);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

.story-step legend {
  padding: 0;
  float: left;
  width: 100%;
}

.story-step legend + * {
  clear: both;
}

.story-q {
  font-size: clamp(24px, 3.4vw, 30px);
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1.15;
}

.story-hint {
  color: var(--text-2);
  margin-top: 8px;
  font-size: 16px;
}

.options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 24px;
}

.options.cols-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.option {
  position: relative;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px 16px;
  border-radius: var(--radius-m);
  background: var(--bg-alt);
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.25s var(--ease), border-color 0.2s, background 0.2s, box-shadow 0.25s;
  min-height: 72px;
  -webkit-tap-highlight-color: transparent;
}

.option:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-1);
}

.option:active {
  transform: scale(0.98);
}

.option input {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
  pointer-events: none;
}

.option .opt-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: #fff;
  color: var(--text);
  flex: none;
  transition: background 0.2s, color 0.2s;
}

.option .opt-text {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.option .opt-title {
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
}

.option .opt-sub {
  font-size: 13px;
  color: var(--text-2);
}

.option .opt-check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--line-strong);
  display: grid;
  place-items: center;
  color: #fff;
  flex: none;
  transition: background 0.2s, border-color 0.2s;
}

.option .opt-check .icon {
  width: 14px;
  height: 14px;
  stroke-width: 3.2;
  opacity: 0;
}

.option:has(input:checked) {
  border-color: var(--accent);
  background: var(--accent-soft);
}

.option:has(input:checked) .opt-icon {
  background: var(--accent);
  color: #fff;
}

.option:has(input:checked) .opt-check {
  background: var(--accent);
  border-color: var(--accent);
}

.option:has(input:checked) .opt-check .icon {
  opacity: 1;
}

.option:has(input:focus-visible) {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

/* Tekstikentät */
.fields {
  display: grid;
  gap: 16px;
  margin-top: 24px;
}

.fields.cols-2 {
  grid-template-columns: 1fr 1fr;
}

.field {
  display: grid;
  gap: 6px;
}

.field label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text-2);
}

.field label .opt {
  font-weight: 400;
  color: var(--text-3);
}

.field input,
.field select,
.field textarea {
  font: inherit;
  font-size: 17px;
  padding: 13px 16px;
  border-radius: var(--radius-s);
  border: 1.5px solid var(--line-strong);
  background: #fff;
  color: var(--text);
  width: 100%;
  transition: border-color 0.2s, box-shadow 0.2s;
}

.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: 0;
  border-color: var(--accent);
  box-shadow: 0 0 0 4px var(--accent-soft);
}

.field textarea {
  min-height: 120px;
  resize: vertical;
}

.field.invalid input,
.field.invalid textarea {
  border-color: var(--red);
}

.field-error {
  font-size: 13px;
  color: var(--red);
  display: none;
}

.field.invalid .field-error {
  display: block;
}

.consent {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
  color: var(--text-2);
  margin-top: 6px;
  cursor: pointer;
}

.consent input {
  width: 20px;
  height: 20px;
  margin: 2px 0 0;
  accent-color: var(--accent);
  flex: none;
}

.consent.invalid {
  color: var(--red);
}

.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  width: 0;
}

/* Lomakkeen navigointi */
.story-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 28px;
}

.story-nav .counter {
  font-size: 13px;
  color: var(--text-3);
  font-variant-numeric: tabular-nums;
}

.story-nav .spacer {
  flex: 1;
}

html:not(.js) .story-nav .js-only {
  display: none;
}

.story-alert {
  display: none;
  margin-top: 16px;
  padding: 12px 16px;
  border-radius: var(--radius-s);
  background: rgba(255, 59, 48, 0.08);
  color: #b3261e;
  font-size: 14px;
}

.story-alert.show {
  display: block;
}

.story-success {
  display: none;
  text-align: center;
  padding: 24px 8px 8px;
}

.story-success.show {
  display: block;
  animation: step-in 0.5s var(--ease);
}

.story-success h3 {
  font-size: 30px;
  letter-spacing: -0.025em;
}

.story-success p {
  color: var(--text-2);
  margin-top: 12px;
  max-width: 46ch;
  margin-inline: auto;
}

.story-success .btn {
  margin-top: 24px;
}

.privacy-note {
  margin-top: 20px;
  text-align: center;
  font-size: 13px;
  color: var(--text-inv-2);
}

.privacy-note a {
  color: #fff;
}

/* --------------------------------------------------------------------------
   Responsiivisuus
   -------------------------------------------------------------------------- */

@media (max-width: 1024px) {
  .grid-4,
  .scroller {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .nav-links {
    display: none;
    position: absolute;
    top: var(--nav-h);
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    -webkit-backdrop-filter: blur(20px);
    backdrop-filter: blur(20px);
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
    padding: 8px 20px 16px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links.open {
    display: flex;
  }

  .nav-links li {
    width: 100%;
  }

  .nav-links a {
    display: block;
    padding: 14px 0;
    font-size: 17px;
    border-bottom: 1px solid var(--line);
  }

  .nav-links li:last-child a {
    border-bottom: 0;
  }

  .nav-links .btn {
    margin-top: 12px;
    width: 100%;
    border-bottom: 0;
  }

  .nav-toggle {
    display: inline-flex;
  }

  .hero {
    padding-top: 64px;
  }

  .section {
    padding: 72px 0;
  }

  .grid-3,
  .grid-2,
  .steps,
  .split {
    grid-template-columns: 1fr;
  }

  .split {
    gap: 36px;
  }

  .steps {
    gap: 36px;
  }

  /* Pumpputyypit: swipe-rivi kuin somessa */
  .scroller {
    display: flex;
    gap: 14px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 4px 20px 16px;
    margin: 0 -20px;
    scrollbar-width: none;
  }

  .scroller::-webkit-scrollbar {
    display: none;
  }

  .scroller .card {
    flex: 0 0 82%;
    max-width: 340px;
    scroll-snap-align: center;
  }

  .sticky-cta {
    display: block;
  }

  body {
    padding-bottom: 76px;
  }

  .story {
    padding: 18px 18px 22px;
    border-radius: var(--radius-l);
  }

  .story-section {
    padding: 72px 0;
  }

  .options,
  .options.cols-3,
  .fields.cols-2 {
    grid-template-columns: 1fr;
  }

  .option {
    min-height: 64px;
  }

  .footer-inner {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 480px) {
  .hero-actions .btn {
    width: 100%;
  }

  .story-nav {
    flex-wrap: wrap;
  }

  .story-nav .btn-primary {
    flex: 1 1 100%;
    order: 3;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .reveal,
  .js .story-step.active,
  .story-success.show,
  .hero-visual .flow {
    animation: none;
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* Navigaation CTA-nappi säilyttää valkoisen tekstin linkkityylistä huolimatta */
.nav-links .btn-primary {
  color: #fff;
  opacity: 1;
  font-size: 13px;
}

/* hidden-attribuutti voittaa aina luokkien display-arvot (esim. .btn) */
[hidden] {
  display: none !important;
}

/* Apuluokat (korvaavat inline-tyylit, jotta CSP voi kieltää inline-tyylit) */
.mt-22 { margin-top: 22px; }
.mt-24 { margin-top: 24px; }
.mt-28 { margin-top: 28px; }
.icon-sm { width: 18px; height: 18px; }
.tile-ghost { background: transparent; border: 2px dashed var(--line-strong); box-shadow: none; }
.turnstile-box { margin-top: 18px; min-height: 65px; }

/* Ennakkotila: <body class="prelaunch"> piilottaa julkaisun jälkeiset elementit (.launch-only)
   ja näyttää "aukeaa pian" -elementit (.prelaunch-only). Avaus: poista luokka body-elementistä. */
body:not(.prelaunch) .prelaunch-only { display: none !important; }
.prelaunch .launch-only { display: none !important; }
.badge-soon { display: inline-flex; align-items: center; font-size: 13px; font-weight: 600; padding: 6px 12px; border-radius: 999px; background: var(--grad); color: #fff; }
.btn-disabled { background: rgba(0, 0, 0, 0.06); color: var(--text-2); box-shadow: none; cursor: default; }
.btn-disabled:active { transform: none; }
.launch-note { margin: 18px auto 0; max-width: 560px; color: var(--text-2); font-size: 16px; text-wrap: pretty; }
.launch-notice { max-width: 640px; margin: 0 auto; background: var(--bg); color: var(--text); border-radius: var(--radius-xl); padding: 44px 32px; text-align: center; box-shadow: var(--shadow-3); }
.launch-notice .tile-icon { margin: 0 auto 18px; }
.launch-notice h2 { font-size: clamp(26px, 3.6vw, 34px); letter-spacing: -0.025em; }
.launch-notice p { color: var(--text-2); margin-top: 12px; font-size: 17px; text-wrap: pretty; }

/* Pumpputyyppikohtaiset huolto-oppaat (/lämpöpumppu/<tyyppi>-huolto) */
.hero-compact {
  padding-bottom: 72px;
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px 10px;
  margin-bottom: 26px;
  font-size: 14px;
  color: var(--text-3);
}
.breadcrumb a {
  color: var(--text-2);
}
.breadcrumb [aria-current="page"] {
  color: var(--text);
  font-weight: 500;
}
.tile .checklist {
  gap: 10px;
}
.tile .checklist li {
  font-size: 16px;
}
.tile .checklist .icon {
  width: 20px;
  height: 20px;
}
.cta-band .btn-disabled {
  margin-top: 32px;
}
.tile-link .tile-cta {
  margin-top: 16px;
}
.tile-link:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-2, var(--shadow-1));
}
