/* ==========================================================================
   Porepartio Oy – tyylit
   ========================================================================== */

:root {
  --ink: #0b2a32;
  --ink-soft: #456168;
  --deep: #0c3b46;
  --deeper: #072b34;
  --aqua: #7fe0d2;
  --teal: #12877b;
  --aqua-soft: #ddf1f3;
  --foam: #f6f1e7;
  --paper: #fffdf8;
  --ember: #f4845f;
  --ember-deep: #d9522b;
  --line: rgba(11, 42, 50, .14);
  --line-light: rgba(246, 241, 231, .16);

  --radius: 22px;
  --shadow: 0 30px 60px -28px rgba(7, 43, 52, .5);
  --container: 1180px;

  --font-display: "Bricolage Grotesque", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-body: "Instrument Sans", "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --font-serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --check-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2a32' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12.5 4.5 4.5L19 7.5'/%3E%3C/svg%3E");
  --plus-ink: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2a32' stroke-width='2.2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E");
}

/* ---------- Perusta ---------- */

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

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--ink);
  background: var(--foam);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

[hidden] { display: none !important; }

h1, h2, h3, p, ul, ol, dl, dd, figure, blockquote { margin: 0; }
ul, ol { padding: 0; list-style: none; }
svg, img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }

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

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

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.skip-link {
  position: fixed;
  top: .75rem;
  left: .75rem;
  z-index: 100;
  padding: .7rem 1rem;
  border-radius: 10px;
  background: var(--ember);
  color: var(--ink);
  font-weight: 600;
  transform: translateY(-200%);
}
.skip-link:focus { transform: none; }

/* ---------- Painikkeet ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .6rem;
  padding: 1rem 1.6rem;
  border: 1.5px solid transparent;
  border-radius: 999px;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: transform .2s, box-shadow .2s, background-color .2s, color .2s, border-color .2s;
}
.btn svg {
  width: 1.15em;
  height: 1.15em;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
  transition: transform .2s;
}
.btn:hover svg { transform: translateX(3px); }

.btn--primary {
  background: var(--ember);
  color: #1d0e05;
  box-shadow: 0 12px 26px -12px rgba(244, 132, 95, .8);
}
.btn--primary:hover { background: #f79b7c; transform: translateY(-2px); }

.btn--ghost { border-color: rgba(246, 241, 231, .4); color: var(--foam); }
.btn--ghost:hover { background: rgba(246, 241, 231, .1); border-color: var(--foam); }

.btn--outline { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn--outline:hover { background: var(--ink); color: var(--foam); }

.btn--sm { padding: .72rem 1.15rem; font-size: .92rem; }

/* ---------- Yläpalkki ---------- */

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 50;
  color: var(--foam);
  transition: background-color .3s, box-shadow .3s;
}
.site-header.is-scrolled {
  background: rgba(7, 43, 52, .88);
  -webkit-backdrop-filter: blur(14px) saturate(140%);
  backdrop-filter: blur(14px) saturate(140%);
  box-shadow: 0 1px 0 var(--line-light);
}

.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.5rem;
  height: 4.75rem;
}

.logo {
  display: inline-flex;
  align-items: center;
  flex: none;
  margin-left: -.5rem; /* sanamerkin kuvatiedostossa on oma reunatila */
  text-decoration: none;
}
.logo img { width: auto; height: 4rem; }

.nav { display: flex; align-items: center; gap: 2rem; }
.nav ul { display: flex; gap: 1.75rem; }
.nav ul a {
  position: relative;
  padding: .4rem 0;
  font-size: .95rem;
  font-weight: 500;
  text-decoration: none;
  opacity: .85;
  transition: opacity .2s;
}
.nav ul a::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 2px;
  border-radius: 2px;
  background: var(--aqua);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s;
}
.nav ul a:hover { opacity: 1; }
.nav ul a:hover::after { transform: scaleX(1); }

.nav-toggle { display: none; }

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

.hero {
  position: relative;
  overflow: hidden;
  padding: clamp(8rem, 13vw, 11rem) 0 clamp(7rem, 13vw, 12rem);
  color: var(--foam);
  background:
    radial-gradient(60rem 40rem at 88% -10%, rgba(127, 224, 210, .24), transparent 60%),
    radial-gradient(48rem 34rem at -12% 108%, rgba(18, 135, 123, .4), transparent 62%),
    linear-gradient(180deg, var(--deeper), var(--deep) 62%, #0f4b57);
}

.hero__grid {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr);
  gap: clamp(2.5rem, 5vw, 5rem);
  align-items: center;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  padding: .45rem 1rem .45rem .8rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: rgba(246, 241, 231, .07);
  font-size: .9rem;
  font-weight: 500;
}
.pill__dot {
  width: .6rem;
  height: .6rem;
  border-radius: 50%;
  background: #6ef0a0;
  animation: pulse 2s infinite;
}

.hero h1 {
  margin-top: 1.5rem;
  font-family: var(--font-display);
  font-size: clamp(2.9rem, 6.6vw, 5.4rem);
  font-weight: 700;
  line-height: .96;
  letter-spacing: -.035em;
  text-wrap: balance;
}
.hero h1 em {
  display: block;
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -.02em;
  color: var(--aqua);
}

.lead {
  margin-top: 1.6rem;
  max-width: 35rem;
  font-size: clamp(1.08rem, 1.5vw, 1.25rem);
  color: rgba(246, 241, 231, .86);
}

.hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  margin-top: 2.25rem;
}

.hero__proof {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 2.25rem;
  margin-top: 2.75rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: .9rem;
  color: rgba(246, 241, 231, .72);
}
.hero__proof strong {
  display: block;
  font-family: var(--font-display);
  font-size: 1.15rem;
  color: var(--foam);
}

/* Kuplat */
.hero__bubbles { position: absolute; inset: 0; z-index: 1; pointer-events: none; }
.bubble {
  position: absolute;
  bottom: -90px;
  left: var(--x);
  width: var(--s);
  height: var(--s);
  border: 1.5px solid rgba(127, 224, 210, .45);
  border-radius: 50%;
  background: radial-gradient(circle at 30% 28%, rgba(255, 255, 255, .4), rgba(127, 224, 210, .05) 58%);
  opacity: 0;
  animation: rise var(--d) linear var(--delay) infinite;
}

.hero__wave {
  position: absolute;
  left: 0;
  bottom: -1px;
  z-index: 1;
  width: 100%;
  height: clamp(40px, 7vw, 110px);
  fill: var(--foam);
}

/* Raporttikortti */
.hero__visual { position: relative; justify-self: center; width: min(100%, 420px); }

.report {
  position: relative;
  padding: 1.6rem 1.6rem 1.4rem;
  border-radius: 20px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
  transform: rotate(2.2deg);
}

.report__head,
.report__foot {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1rem;
}
.report__head { padding-bottom: 1.1rem; border-bottom: 2px dashed var(--line); }
.report__foot { padding-top: 1.1rem; border-top: 2px dashed var(--line); }

.report__label {
  font-size: .7rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}
.report__title {
  margin-top: .2rem;
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.report__no { font-size: .82rem; font-weight: 600; color: var(--ink-soft); font-variant-numeric: tabular-nums; }

.report__list { display: grid; gap: .15rem; padding: .7rem 0; }
.report__list li {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: .7rem;
  padding: .5rem 0;
  font-size: .95rem;
  opacity: 0;
  animation: item-in .5s cubic-bezier(.2, .7, .2, 1) calc(.5s + var(--i) * .32s) forwards;
}
.report__list b { font-size: .8rem; font-weight: 700; color: var(--teal); }

.tick {
  width: 1.35rem;
  height: 1.35rem;
  border-radius: 50%;
  background: var(--aqua) var(--check-ink) center / 62% no-repeat;
}
.is-note .tick {
  display: grid;
  place-items: center;
  background: var(--ember);
}
.is-note .tick::after { content: "!"; font-size: .85rem; font-weight: 800; line-height: 1; }
.report__list .is-note b { color: var(--ember-deep); }

.report__grade { display: flex; gap: .3rem; margin-top: .45rem; }
.report__grade span {
  width: .95rem;
  height: .95rem;
  border: 2px solid var(--teal);
  border-radius: 50%;
  background: var(--teal);
}
.report__grade .is-empty { background: transparent; }

.report__sign { font-size: .78rem; line-height: 1.35; text-align: right; color: var(--ink-soft); }
.report__sign strong { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 1.3rem; color: var(--ink); }

.stamp {
  position: absolute;
  right: 8.5rem;
  bottom: .35rem;
  width: 6.2rem;
  height: 6.2rem;
  color: var(--ember-deep);
  font-family: var(--font-body);
  mix-blend-mode: multiply;
  animation: stamp .45s cubic-bezier(.2, 1.5, .4, 1) 2.9s both;
}

.report__chip {
  position: absolute;
  left: -1.6rem;
  bottom: -3.1rem;
  padding: .7rem 1.05rem;
  border-radius: 14px;
  background: var(--ember);
  color: #1d0e05;
  font-size: .88rem;
  font-weight: 600;
  line-height: 1.2;
  box-shadow: 0 18px 30px -16px rgba(0, 0, 0, .6);
  transform: rotate(-4deg);
}
.report__chip strong { display: block; font-family: var(--font-display); font-size: 1.5rem; letter-spacing: -.02em; }

/* ---------- Luvut ---------- */

.stats { padding: clamp(2rem, 4vw, 3.5rem) 0 0; }
.stats__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem clamp(1.5rem, 3vw, 3rem);
}
.stats__grid li { padding-top: 1.25rem; border-top: 2px solid var(--ink); }
.stats__grid strong {
  display: block;
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 5vw, 4rem);
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.04em;
}
.stats__grid span { display: block; max-width: 17rem; margin-top: .7rem; font-size: .95rem; color: var(--ink-soft); }

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

.section { padding: clamp(4.5rem, 9vw, 8rem) 0; }

.section-head { max-width: 44rem; margin-bottom: clamp(2.5rem, 5vw, 4rem); }
.section-head--center { margin-inline: auto; text-align: center; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--teal);
}
.eyebrow::before {
  content: "";
  width: .6rem;
  height: .6rem;
  border: 2px solid currentColor;
  border-radius: 50%;
}

.section-head h2 {
  margin-top: .9rem;
  font-family: var(--font-display);
  font-size: clamp(2.1rem, 4.6vw, 3.5rem);
  font-weight: 700;
  line-height: 1.02;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.section-head h2 em {
  font-family: var(--font-serif);
  font-weight: 400;
  font-size: 1.08em;
  letter-spacing: -.015em;
  color: var(--teal);
}
.section-head h2 + p { margin-top: 1.1rem; font-size: 1.1rem; color: var(--ink-soft); }
.section-head a { color: var(--teal); font-weight: 600; }

/* ---------- Palvelukortit ---------- */

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.card {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 1.9rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: transparent; }

.card__icon {
  display: grid;
  place-items: center;
  width: 3.25rem;
  height: 3.25rem;
  margin-bottom: 1.5rem;
  border-radius: 16px;
  background: var(--aqua-soft);
}
.card__icon svg {
  width: 1.6rem;
  height: 1.6rem;
  fill: none;
  stroke: var(--ink);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.card h3 {
  font-family: var(--font-display);
  font-size: 1.4rem;
  font-weight: 700;
  line-height: 1.15;
  letter-spacing: -.02em;
}
.card h3 + p { margin: .6rem 0 1.5rem; color: var(--ink-soft); }

.card__meta {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: auto;
  padding-top: 1.1rem;
  border-top: 1px dashed var(--line);
  font-size: .9rem;
  color: var(--ink-soft);
}
.card__meta span { font-weight: 700; color: var(--ink); }

.card--hot {
  border-color: transparent;
  background: linear-gradient(160deg, #11505d, var(--deeper));
  color: var(--foam);
}
.card--hot h3 + p { color: rgba(246, 241, 231, .8); }
.card--hot .card__icon { background: var(--ember); }
.card--hot .card__meta { border-color: var(--line-light); color: rgba(246, 241, 231, .7); }
.card--hot .card__meta span { color: var(--aqua); }

.card__badge {
  position: absolute;
  top: 1.9rem;
  right: 1.9rem;
  padding: .3rem .75rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--aqua);
}

/* ---------- Mitä tarkastamme ---------- */

.inspect {
  margin-inline: clamp(.5rem, 1.5vw, 1.5rem);
  border-radius: clamp(24px, 4vw, 48px);
  color: var(--foam);
  background:
    radial-gradient(40rem 30rem at 0% 0%, rgba(18, 135, 123, .35), transparent 60%),
    linear-gradient(170deg, var(--deep), var(--deeper));
}
.inspect .eyebrow,
.inspect .section-head h2 em { color: var(--aqua); }
.inspect .section-head h2 + p { color: rgba(246, 241, 231, .78); }
.inspect .section-head { margin-bottom: 2rem; }

.inspect__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: center;
}

.tub {
  width: min(100%, 460px);
  margin-inline: auto;
  filter: drop-shadow(0 34px 40px rgba(0, 0, 0, .4));
}
.tub__bubbles circle {
  transform-box: fill-box;
  transform-origin: center;
  animation: pop 2.8s ease-in-out var(--d) infinite;
}

.hotspot { cursor: pointer; }
.hotspot__dot { fill: var(--paper); stroke: var(--ink); stroke-width: 2; transition: fill .25s; }
.hotspot text { font: 700 14px var(--font-display); fill: var(--ink); pointer-events: none; }
.hotspot__ring {
  fill: none;
  stroke: var(--ember);
  stroke-width: 3;
  opacity: 0;
  transform-box: fill-box;
  transform-origin: center;
}
.hotspot.is-active .hotspot__dot { fill: var(--ember); }
.hotspot.is-active .hotspot__ring { animation: ring 1.8s ease-out infinite; }

.tabs { display: flex; flex-wrap: wrap; gap: .5rem; margin-bottom: 1.5rem; }
html:not(.js) .tabs { display: none; }

.tab {
  display: inline-flex;
  align-items: center;
  gap: .55rem;
  padding: .5rem 1rem .5rem .5rem;
  border: 1px solid var(--line-light);
  border-radius: 999px;
  background: transparent;
  color: var(--foam);
  font-size: .93rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s;
}
.tab span {
  display: grid;
  place-items: center;
  width: 1.6rem;
  height: 1.6rem;
  border-radius: 50%;
  background: rgba(246, 241, 231, .12);
  font-size: .8rem;
}
.tab:hover { border-color: var(--aqua); }
.tab[aria-selected="true"] { background: var(--aqua); border-color: var(--aqua); color: var(--ink); }
.tab[aria-selected="true"] span { background: var(--ember); }

.panel + .panel { margin-top: 2rem; }
.js .panel + .panel { margin-top: 0; }
.panel__title { margin-bottom: .8rem; font-family: var(--font-display); font-size: 1.2rem; }
.js .panel__title { display: none; }
.js .panel:not([hidden]) { animation: item-in .4s cubic-bezier(.2, .7, .2, 1); }

.checks { display: grid; grid-template-columns: repeat(2, 1fr); gap: .8rem; }
.checks li {
  position: relative;
  padding: 1.1rem 1.1rem 1.1rem 3.2rem;
  border: 1px solid var(--line-light);
  border-radius: 16px;
  background: rgba(246, 241, 231, .05);
  font-size: .93rem;
  line-height: 1.45;
  color: rgba(246, 241, 231, .76);
}
.checks li::before {
  content: "";
  position: absolute;
  top: 1.15rem;
  left: 1.05rem;
  width: 1.4rem;
  height: 1.4rem;
  border-radius: 50%;
  background: var(--aqua) var(--check-ink) center / 62% no-repeat;
}
.checks strong {
  display: block;
  margin-bottom: .15rem;
  font-family: var(--font-display);
  font-size: 1.06rem;
  color: var(--foam);
}

.inspect__note {
  margin-top: 1.5rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: 1.25rem;
  color: var(--aqua);
}

/* ---------- Prosessi ---------- */

.steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(1.5rem, 4vw, 3.5rem);
}
.steps::before {
  content: "";
  position: absolute;
  top: 1rem;
  left: 0;
  right: 0;
  border-top: 2px dashed var(--line);
}

.step { position: relative; }
.step__time {
  position: relative;
  display: inline-block;
  padding: .3rem .9rem;
  border-radius: 999px;
  background: var(--ink);
  color: var(--foam);
  box-shadow: 0 0 0 .6rem var(--foam);
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .02em;
  font-variant-numeric: tabular-nums;
}
.step__num {
  margin-top: 1.4rem;
  font-family: var(--font-serif);
  font-style: italic;
  font-size: clamp(4.5rem, 8vw, 6.5rem);
  line-height: .9;
  color: var(--teal);
}
.step h3 {
  margin-top: .6rem;
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  letter-spacing: -.02em;
}
.step h3 + p { margin-top: .5rem; color: var(--ink-soft); }

/* ---------- Hinnasto ---------- */

.pricing { background: linear-gradient(180deg, var(--foam), #e2f3ef 55%, var(--foam)); }

.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; align-items: stretch; }

.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 2.3rem 2rem 2rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
}
.plan h3 { font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; letter-spacing: -.02em; }
.plan__desc { margin-top: .2rem; color: var(--ink-soft); }
.plan__price {
  margin: 1.5rem 0;
  font-family: var(--font-display);
  font-size: 4.2rem;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -.045em;
}
.plan__price span { font-size: .45em; font-weight: 600; letter-spacing: 0; color: var(--ink-soft); }

.plan__list { display: grid; gap: .7rem; flex: 1; margin-bottom: 2rem; padding-top: 1.5rem; border-top: 1px dashed var(--line); align-content: start; }
.plan__list li { position: relative; padding-left: 2rem; }
.plan__list li::before {
  content: "";
  position: absolute;
  top: .2rem;
  left: 0;
  width: 1.3rem;
  height: 1.3rem;
  border-radius: 50%;
  background: var(--aqua) var(--check-ink) center / 62% no-repeat;
}

.plan--featured {
  border-color: transparent;
  background: linear-gradient(165deg, #11505d, var(--deeper));
  color: var(--foam);
  box-shadow: var(--shadow);
  transform: translateY(-14px);
}
.plan--featured .plan__desc,
.plan--featured .plan__price span { color: rgba(246, 241, 231, .7); }
.plan--featured .plan__list { border-color: var(--line-light); }

.plan__badge {
  position: absolute;
  top: -.85rem;
  left: 2rem;
  padding: .35rem .85rem;
  border-radius: 999px;
  background: var(--aqua);
  color: var(--ink);
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
}

.pricing__note { margin-top: 2rem; text-align: center; font-size: .92rem; color: var(--ink-soft); }

/* ---------- Kokemuksia ---------- */

.voices {
  margin-inline: clamp(.5rem, 1.5vw, 1.5rem);
  border-radius: clamp(24px, 4vw, 48px);
  background: var(--aqua-soft);
}

.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; }

.quote {
  display: flex;
  flex-direction: column;
  padding: 2rem;
  border-radius: var(--radius);
  background: var(--paper);
}
.quote blockquote { flex: 1; }
.quote blockquote::before {
  content: "”";
  display: block;
  height: 2.6rem;
  font-family: var(--font-serif);
  font-size: 5rem;
  line-height: 1;
  color: var(--teal);
}
.quote blockquote p { font-family: var(--font-serif); font-size: 1.45rem; line-height: 1.28; letter-spacing: -.005em; }
.quote__by { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px dashed var(--line); font-size: .9rem; color: var(--ink-soft); }
.quote__by strong { display: block; font-family: var(--font-display); font-size: 1.05rem; color: var(--ink); }

/* ---------- UKK ---------- */

.faq__grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr);
  gap: clamp(1rem, 6vw, 6rem);
  align-items: start;
}

.faq__list details { border-bottom: 1px solid var(--line); }
.faq__list details:first-child { border-top: 1px solid var(--line); }

.faq__list summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.35rem 0;
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  letter-spacing: -.01em;
  list-style: none;
  cursor: pointer;
}
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: "";
  flex: none;
  width: 2.1rem;
  height: 2.1rem;
  border: 1.5px solid var(--line);
  border-radius: 50%;
  background: var(--plus-ink) center / 58% no-repeat;
  transition: transform .3s, background-color .3s, border-color .3s;
}
.faq__list summary:hover::after { border-color: var(--teal); }
.faq__list details[open] summary::after {
  transform: rotate(45deg);
  background-color: var(--aqua);
  border-color: var(--aqua);
}
.faq__list details p { max-width: 38rem; padding: 0 3rem 1.5rem 0; color: var(--ink-soft); }

/* ---------- Varaus ---------- */

.booking {
  color: var(--foam);
  background:
    radial-gradient(46rem 32rem at 100% 0%, rgba(127, 224, 210, .18), transparent 60%),
    linear-gradient(180deg, var(--deep), var(--deeper));
}
.booking .eyebrow,
.booking .section-head h2 em { color: var(--aqua); }
.booking .section-head h2 em { display: block; }
.booking .section-head h2 + p { color: rgba(246, 241, 231, .78); }
.booking .section-head { margin-bottom: 0; }

.booking__grid {
  display: grid;
  grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr);
  gap: clamp(2rem, 5vw, 5rem);
  align-items: start;
}

.contact { display: grid; grid-template-columns: 1fr 1fr; gap: 1.4rem 1.5rem; margin-top: 2.5rem; }
.contact div { padding-top: 1.1rem; border-top: 1px solid var(--line-light); }
.contact dt { font-size: .74rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--aqua); }
.contact dd { margin-top: .3rem; font-family: var(--font-display); font-size: 1.2rem; font-weight: 600; line-height: 1.3; overflow-wrap: anywhere; }
.contact a { text-decoration: none; }
.contact a:hover { text-decoration: underline; text-decoration-color: var(--aqua); text-underline-offset: 4px; }

.booking__card {
  padding: clamp(1.4rem, 3vw, 2.5rem);
  border-radius: 28px;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, .6);
}

.form { display: grid; grid-template-columns: 1fr 1fr; gap: 1.1rem 1rem; }
.field { min-width: 0; }
.field--full { grid-column: 1 / -1; }

.form label,
.form legend {
  display: block;
  margin-bottom: .4rem;
  padding: 0;
  font-size: .9rem;
  font-weight: 600;
}
.form label span { font-weight: 400; color: var(--ink-soft); }

.form input,
.form select,
.form textarea {
  width: 100%;
  padding: .8rem 1rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
.form textarea { resize: vertical; min-height: 5.5rem; }
.form select {
  appearance: none;
  padding-right: 2.75rem;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230b2a32' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") right 1rem center / 1.1rem no-repeat;
}
.form ::placeholder { color: #8ba0a5; }

.form input:focus,
.form select:focus,
.form textarea:focus {
  outline: none;
  border-color: var(--teal);
  box-shadow: 0 0 0 4px rgba(18, 135, 123, .18);
}
.form [aria-invalid="true"] { border-color: #c2331f; }
.field__error { margin-top: .35rem; font-size: .84rem; font-weight: 500; color: #b02a18; }

.slots { margin: 0; padding: 0; border: 0; }
.slots__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: .55rem; }
.slots__grid > input { grid-column: 1 / -1; }

.slot { position: relative; margin: 0 !important; cursor: pointer; }
.slot input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: pointer;
}
.slot span {
  display: block;
  padding: .6rem .4rem;
  border: 1.5px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font-size: .86rem;
  font-weight: 500 !important;
  line-height: 1.3;
  text-align: center;
  color: var(--ink) !important;
  transition: background-color .2s, color .2s, border-color .2s;
}
.slot strong { display: block; font-family: var(--font-display); font-size: 1rem; }
.slot:hover span { border-color: var(--teal); }
.slot input:checked + span { background: var(--deep); border-color: var(--deep); color: var(--foam) !important; }
.slot input:focus-visible + span { box-shadow: 0 0 0 4px rgba(244, 132, 95, .5); }

.form__actions { display: flex; flex-wrap: wrap; align-items: center; gap: .9rem 1.25rem; margin-top: .4rem; }
.form__hint { flex: 1; min-width: 12rem; font-size: .86rem; color: var(--ink-soft); }

.success { padding: 2rem .5rem; text-align: center; }
.success:focus { outline: none; }
.success__icon { width: 4.5rem; height: 4.5rem; margin: 0 auto 1.25rem; color: var(--teal); }
.success h3 { font-family: var(--font-display); font-size: 1.7rem; line-height: 1.15; letter-spacing: -.02em; text-wrap: balance; }
.success h3 + p { margin-top: .9rem; color: var(--ink-soft); }
.success__demo {
  margin: 1.25rem auto 1.75rem;
  padding: .7rem 1rem;
  border-radius: 12px;
  background: var(--aqua-soft);
  font-size: .86rem;
}

/* ---------- Alatunniste ---------- */

.site-footer {
  padding: 4rem 0 2rem;
  background: #051e25;
  color: rgba(246, 241, 231, .72);
  font-size: .95rem;
}

.footer__grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr; gap: 2.5rem; }
.footer__brand .logo { margin-left: -.7rem; }
.footer__brand .logo img { height: 8.75rem; }
.footer__brand p { max-width: 21rem; margin-top: .25rem; }

.site-footer h2 {
  margin-bottom: 1rem;
  font-size: .74rem;
  font-weight: 700;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--aqua);
}
.site-footer li + li { margin-top: .5rem; }
.site-footer li a { text-decoration: none; }
.site-footer li a:hover { color: var(--foam); text-decoration: underline; text-underline-offset: 4px; }

.footer__bottom {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: .5rem 2rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--line-light);
  font-size: .84rem;
  color: rgba(246, 241, 231, .55);
}

/* ---------- Animaatiot ---------- */

.js .reveal {
  opacity: 0;
  translate: 0 26px;
  transition: opacity .7s cubic-bezier(.2, .7, .2, 1), translate .7s cubic-bezier(.2, .7, .2, 1);
  transition-delay: var(--delay, 0s);
}
.js .reveal.is-visible { opacity: 1; translate: 0 0; }

@keyframes rise {
  0% { transform: translate(0, 0) scale(.6); opacity: 0; }
  8% { opacity: .9; }
  50% { transform: translate(var(--sway), -65vh) scale(1); }
  85% { opacity: .5; }
  100% { transform: translate(calc(var(--sway) * -1), -130vh) scale(1.1); opacity: 0; }
}

@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(110, 240, 160, .6); }
  70% { box-shadow: 0 0 0 .55rem rgba(110, 240, 160, 0); }
  100% { box-shadow: 0 0 0 0 rgba(110, 240, 160, 0); }
}

@keyframes item-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

@keyframes stamp {
  from { opacity: 0; transform: rotate(-14deg) scale(2.4); }
  to { opacity: .9; transform: rotate(-14deg) scale(1); }
}

@keyframes pop {
  0% { transform: scale(.3); opacity: 0; }
  40% { opacity: .85; }
  100% { transform: scale(1.6); opacity: 0; }
}

@keyframes ring {
  from { opacity: .9; transform: scale(1); }
  to { opacity: 0; transform: scale(2.3); }
}

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

@media (max-width: 1040px) {
  .cards,
  .quotes { grid-template-columns: repeat(2, 1fr); }
  .nav { gap: 1.25rem; }
  .nav ul { gap: 1.25rem; }
}

@media (max-width: 920px) {
  html:not(.js) .nav ul { display: none; }

  .js .nav-toggle {
    display: inline-grid;
    place-items: center;
    width: 2.9rem;
    height: 2.9rem;
    border: 1px solid var(--line-light);
    border-radius: 50%;
    background: transparent;
    cursor: pointer;
  }
  .nav-toggle__bars,
  .nav-toggle__bars::before,
  .nav-toggle__bars::after {
    display: block;
    width: 1.15rem;
    height: 2px;
    border-radius: 2px;
    background: var(--foam);
    transition: transform .25s, background-color .25s;
  }
  .nav-toggle__bars { position: relative; }
  .nav-toggle__bars::before,
  .nav-toggle__bars::after { content: ""; position: absolute; left: 0; }
  .nav-toggle__bars::before { top: -6px; }
  .nav-toggle__bars::after { top: 6px; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

  .js .nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 1.25rem;
    padding: .5rem 1.25rem 1.75rem;
    border-top: 1px solid var(--line-light);
    background: var(--deeper);
    box-shadow: 0 30px 40px -20px rgba(0, 0, 0, .5);
  }
  .js .nav.is-open { display: flex; }
  .js .nav ul { flex-direction: column; gap: 0; }
  .js .nav ul a {
    display: block;
    padding: .95rem 0;
    border-bottom: 1px solid var(--line-light);
    font-size: 1.15rem;
    opacity: 1;
  }
  .js .nav ul a::after { display: none; }
  .site-header.is-open { background: var(--deeper); }

  .hero__grid,
  .inspect__grid,
  .faq__grid,
  .booking__grid { grid-template-columns: 1fr; }

  .hero__visual { margin: 1rem 0 2.5rem; }
  .inspect__visual { max-width: 380px; margin-inline: auto; }

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

  .plans { grid-template-columns: 1fr; max-width: 30rem; margin-inline: auto; gap: 1.75rem; }
  .plan--featured { transform: none; }

  .steps { grid-template-columns: 1fr; gap: 2.5rem; }
  .steps::before { display: none; }
  .step__time { box-shadow: none; }
}

@media (max-width: 640px) {
  body { font-size: 1rem; }

  .cards,
  .quotes,
  .checks,
  .form,
  .contact,
  .footer__grid { grid-template-columns: 1fr; }

  .hero__proof { gap: 1rem 1.5rem; }
  .hero__actions .btn { flex: 1 1 100%; }

  .report { padding: 1.3rem 1.2rem 1.2rem; transform: rotate(1.2deg); }
  .stamp { right: 8rem; width: 5rem; height: 5rem; }
  .report__chip { left: -.4rem; bottom: -3.5rem; }
  .hero__visual { margin-bottom: 3rem; }

  .slots__grid { grid-template-columns: repeat(2, 1fr); }
  .form__actions .btn { width: 100%; }

  .faq__list details p { padding-right: 0; }
  .footer__grid { gap: 2rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation-duration: .001ms !important;
    animation-delay: 0s !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
  }
  .js .reveal { opacity: 1; translate: none; }
  .tub__bubbles circle,
  .pill__dot { animation: none; }
}
