/* paljukylpy.com-uudistusdemo
   Vanilla CSS. Tokenit brändifilistä (TASTE-SKILL/brands/paljukylpy.md).
   Osiot: byq truebase-navigation-bar-1, nextwell-hero-3, babka-intro-text-2,
   stringer-ecommerce-21, nextwell-cta-1, stringer-image-gallery-5, harbor-contact-3,
   stringer-footer-4, truebase-utility-page-2, kelvin-value-features-16,
   forerunner-utility-page-1, stringer-process-1, stringer-structured-data-1,
   for-human-contact-1 (kaikki kaannetty vanillaksi ja sovitettu brandiin). */

:root {
  --bg: #F8F6F2;
  --surface: #FFFFFF;
  --surface-2: #EFEBE4;
  --ink: #1C1A17;
  --muted: #5E5952;
  --line: #DED8CF;
  --accent: #B9521C;
  --accent-hover: #9E4517;
  --free: #2F7D4F;
  --booked: #B9521C;
  --on-ink-muted: rgba(255, 255, 255, 0.72);

  --free-bg: #EAF2ED;
  --free-bg-hover: #D9EADF;
  --free-line: rgba(47, 125, 79, 0.45);
  --booked-bg: #F5E6DE;
  --booked-line: rgba(185, 82, 28, 0.4);
  --booked-text: #9E4517;

  --font: 'Albert Sans', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --max: 1360px;
  --gutter: 32px;
  --col-gap: 32px;
  --section: 120px;
  --header-h: 76px;
  --radius: 12px;
  --radius-btn: 8px;
  --mk: var(--accent);
  --ease: cubic-bezier(0.16, 1, 0.3, 1);

  --fs-h1: clamp(2.6rem, 6vw, 4.6rem);
  --fs-h2: clamp(1.9rem, 3.4vw, 3rem);
  --fs-h3: 1.375rem;
  --fs-body: clamp(1.0625rem, 1rem + 0.2vw, 1.125rem);
  --fs-small: 0.9375rem;
  --fs-label: 0.875rem;
}

@media (max-width: 767px) {
  :root {
    --gutter: 20px;
    --col-gap: 20px;
    --section: 72px;
  }
}

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

html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  scroll-padding-top: 92px;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font);
  font-size: var(--fs-body);
  line-height: 1.6;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, textarea, select { font: inherit; color: inherit; }
p { margin: 0; }
ul, ol { margin: 0; padding: 0; }
h1, h2, h3 {
  margin: 0;
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.08;
  text-wrap: balance;
}
h1 { font-size: var(--fs-h1); }
h2 { font-size: var(--fs-h2); line-height: 1.1; }
h3 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 200;
  background: var(--ink);
  color: #fff;
  padding: 12px 18px;
  border-radius: var(--radius-btn);
  text-decoration: none;
}
.skip:focus { top: 12px; }

.wrap {
  width: 100%;
  max-width: calc(var(--max) + 2 * var(--gutter));
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
}

.section { padding-top: var(--section); padding-bottom: var(--section); }
.bg-surface-2 { background: var(--surface-2); }
.bg-ink { background: var(--ink); color: #fff; --mk: #fff; }

.muted { color: var(--muted); }
.w500 { font-weight: 500; }
.measure { max-width: 68ch; }

/* ---------- signature: vedenpinnan merkki ---------- */
.mk::before {
  content: "";
  display: block;
  width: 56px;
  height: 10px;
  margin-bottom: 20px;
  background:
    linear-gradient(var(--mk), var(--mk)) left bottom / 56px 2px no-repeat,
    linear-gradient(var(--mk), var(--mk)) right bottom / 2px 10px no-repeat;
}

/* ---------- napit ja linkit ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding-left: 22px;
  padding-right: 22px;
  border-radius: var(--radius-btn);
  border: 1px solid transparent;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.2;
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn .arr { width: 16px; height: 16px; flex: none; transition: transform 0.2s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-hover); }
.btn-secondary { border-color: var(--ink); color: var(--ink); background: transparent; }
.btn-secondary:hover { background: var(--ink); color: #fff; }
.btn-light { border-color: #fff; color: #fff; background: transparent; }
.btn-light:hover { background: #fff; color: var(--ink); }
.btn[disabled] { opacity: 0.55; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

.alink {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 5px;
  transition: color 0.2s ease;
}
.alink .arr { width: 16px; height: 16px; flex: none; transition: transform 0.2s var(--ease); }
.alink:hover { color: var(--accent-hover); }
.bg-ink .alink:hover, .on-dark .alink:hover { color: #fff; text-decoration-thickness: 2px; }
.alink:hover .arr { transform: translateX(4px); }

.tlink {
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 4px;
}
.tlink:hover { color: var(--accent-hover); }
.bg-ink .tlink:hover { color: #fff; text-decoration-thickness: 2px; }

/* ---------- header (truebase-navigation-bar-1) ---------- */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 60;
  height: var(--header-h);
  background: var(--bg);
  border-bottom: 1px solid var(--line);
  color: var(--ink);
  transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.site-header.is-overlay { background: transparent; border-bottom-color: transparent; color: #fff; }
.header-inner {
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { display: block; flex: none; text-decoration: none; }
.brand img { height: 56px; width: auto; }
.brand .logo-mark { height: 40px; }
.brand .logo-light, .brand .logo-mark, .brand .logo-mark-light { display: none; }
.is-overlay .brand .logo-dark { display: none; }
.is-overlay .brand .logo-light { display: block; }

.nav-desktop ul { list-style: none; display: flex; gap: 22px; }
.nav-desktop a {
  position: relative;
  display: block;
  padding-top: 8px;
  padding-bottom: 8px;
  font-size: var(--fs-small);
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}
.nav-desktop a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 2px;
  border-radius: 0;
  background: var(--accent);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.2s var(--ease);
}
.nav-desktop a:hover::after { transform: scaleX(1); }
.nav-desktop a[aria-current="page"]::after { transform: scaleX(1); }

.header-cta { display: flex; align-items: center; flex: none; }
.header-cta .btn { min-height: 44px; padding-left: 18px; padding-right: 18px; font-size: var(--fs-small); }
.tel-link { font-size: var(--fs-small); font-weight: 500; text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; white-space: nowrap; }
.header-cta .tel-link { display: none; }

.burger {
  display: none;
  position: relative;
  width: 44px;
  height: 44px;
  border: 1px solid currentColor;
  border-radius: var(--radius-btn);
  background: transparent;
  cursor: pointer;
  flex: none;
}
.burger span {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 1.5px;
  background: currentColor;
  transition: transform 0.2s ease, top 0.2s ease;
}
.burger span:nth-child(1) { top: 17px; }
.burger span:nth-child(2) { top: 25px; }
.burger[aria-expanded="true"] span:nth-child(1) { top: 21px; transform: rotate(45deg); }
.burger[aria-expanded="true"] span:nth-child(2) { top: 21px; transform: rotate(-45deg); }

.nav-panel {
  position: fixed;
  top: var(--header-h);
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 59;
  background: var(--bg);
  color: var(--ink);
  overflow-y: auto;
  padding-top: 24px;
  padding-bottom: 40px;
}
.nav-panel[hidden] { display: none; }
.nav-panel ul { list-style: none; border-top: 1px solid var(--line); }
.nav-panel li { border-bottom: 1px solid var(--line); }
.nav-panel a.pl {
  display: block;
  padding-top: 12px;
  padding-bottom: 12px;
  font-size: clamp(1.75rem, 7vw, 2.4rem);
  font-weight: 500;
  letter-spacing: -0.02em;
  line-height: 1.15;
  text-decoration: none;
}
.nav-panel a.pl[aria-current="page"] { text-decoration: underline; text-decoration-thickness: 2px; text-decoration-color: var(--accent); text-underline-offset: 8px; }
.nav-panel .panel-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 18px; margin-top: 32px; }
.nav-open { overflow: hidden; }
.nav-open .site-header { background: var(--bg); color: var(--ink); border-bottom-color: var(--line); }
.nav-open .site-header .brand .logo-dark { display: block; }
.nav-open .site-header .brand .logo-light { display: none; }

@media (max-width: 1099px) {
  .header-cta .btn { display: none; }
  .header-cta .tel-link { display: inline; }
}
@media (max-width: 959px) {
  .nav-desktop, .header-cta { display: none; }
  .burger { display: block; }
}
@media (max-width: 599px) {
  .brand .logo-dark, .brand .logo-light,
  .is-overlay .brand .logo-light,
  .nav-open .site-header .brand .logo-dark { display: none; }
  .brand .logo-mark { display: block; }
  .is-overlay .brand .logo-mark { display: none; }
  .is-overlay .brand .logo-mark-light { display: block; }
  .nav-open .site-header .brand .logo-mark { display: block; }
  .nav-open .site-header .brand .logo-mark-light { display: none; }
}

/* ---------- hero (nextwell-hero-3 ilman videota, korttia ja vihjetta) ---------- */
.hero {
  position: relative;
  min-height: max(640px, 100svh);
  display: flex;
  align-items: flex-end;
  color: #fff;
  background: var(--ink);
  overflow: hidden;
}
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 28% 70%; }
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(to bottom, rgba(28, 26, 23, 0.7) 0, rgba(28, 26, 23, 0) 220px),
    linear-gradient(to right, rgba(28, 26, 23, 0.72) 0%, rgba(28, 26, 23, 0) 55%),
    linear-gradient(to top, rgba(28, 26, 23, 0.6) 0%, rgba(28, 26, 23, 0) 60%),
    linear-gradient(rgba(28, 26, 23, 0.15), rgba(28, 26, 23, 0.15));
}
.hero-inner { position: relative; z-index: 1; padding-top: 140px; padding-bottom: 88px; }
/* Tekstin alle ankkuroitu tummennus: kulkee sisallon mukana kaikilla nakymakorkeuksilla,
   jotta valkoinen teksti pysyy >= 4.5:1 myos lumen ja altaan reunan paalla. */
.hero-inner::before {
  content: "";
  position: absolute;
  z-index: -1;
  top: -180px;
  bottom: 0;
  left: calc(50% - 50vw);
  right: calc(50% - 50vw);
  background: linear-gradient(to bottom, rgba(28, 26, 23, 0) 0, rgba(28, 26, 23, 0.62) 180px, rgba(28, 26, 23, 0.74) 100%);
  pointer-events: none;
}
.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 7fr) minmax(0, 1fr) minmax(0, 4fr);
  grid-template-areas:
    "title . para"
    "acts  . para";
  column-gap: var(--col-gap);
  row-gap: 32px;
  align-items: end;
}
.hero-title { grid-area: title; }
.hero-title h1 { max-width: 18ch; }
.hero-para { grid-area: para; align-self: end; justify-self: end; max-width: 420px; color: rgba(255, 255, 255, 0.92); font-size: 1.125rem; line-height: 1.55; }
.hero-acts { grid-area: acts; }

.hero-mark { position: relative; display: block; width: 56px; height: 10px; margin-bottom: 20px; }
.hero-mark::before,
.hero-mark::after { content: ""; position: absolute; bottom: 0; background: #fff; }
.hero-mark::before { left: 0; width: 56px; height: 2px; transform-origin: left center; }
.hero-mark::after { right: 0; width: 2px; height: 10px; }

.js .hero-mark::before { animation: mkline 300ms var(--ease) both; }
.js .hero-mark::after { animation: fadein 160ms ease-out 280ms both; }
.js .hero .h-anim { animation: rise 600ms var(--ease) both; animation-delay: var(--d, 300ms); }

@keyframes mkline { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes fadein { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

@media (max-width: 899px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "title" "para" "acts";
    row-gap: 24px;
  }
  .hero-para { justify-self: start; max-width: 36rem; font-size: 1.0625rem; }
  .hero-inner { padding-bottom: 104px; }
}

/* ---------- osio-otsikkorivi ---------- */
.sec-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 40px;
}
.sec-head .alink { margin-bottom: 6px; }

/* ---------- etusivu: esittely (babka-intro-text-2) ---------- */
.intro-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-areas: "h h h h h . t t t t t t" "i i i i i . t t t t t t";
  column-gap: var(--col-gap);
  row-gap: 48px;
  align-items: start;
}
.intro-h { grid-area: h; }
.intro-img { grid-area: i; max-width: 420px; }
.intro-img img { border-radius: var(--radius); width: 100%; }
.intro-t { grid-area: t; display: flex; flex-direction: column; gap: 24px; max-width: 62ch; padding-top: 30px; }
.intro-t p:first-child { font-size: 1.25rem; line-height: 1.5; }
@media (max-width: 899px) {
  .intro-grid { grid-template-columns: minmax(0, 1fr); grid-template-areas: "h" "i" "t"; row-gap: 32px; }
  .intro-t { padding-top: 0; }
}

/* ---------- Anne ja Tyyne (stringer-ecommerce-21) ---------- */
.duo { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 56px; }
.tub { display: flex; flex-direction: column; gap: 24px; }
.frame { position: relative; overflow: hidden; border-radius: var(--radius); background: var(--line); }
.frame-43 { aspect-ratio: 4 / 3; }
.frame img { width: 100%; height: 100%; object-fit: cover; }
.tub h3 { font-weight: 400; }
.tub h3 b { font-weight: 500; }
.tub h3 .muted { font-size: 0.85em; }
.vat { margin-top: 40px; font-size: var(--fs-small); }
@media (max-width: 899px) { .duo { grid-template-columns: minmax(0, 1fr); } }

/* ledger-rivit */
.ledger { margin: 0; border-bottom: 1px solid var(--line); }
.ledger .row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 24px;
  padding-top: 14px;
  padding-bottom: 14px;
  border-top: 1px solid var(--line);
}
.ledger dt, .ledger .k { color: var(--muted); font-size: var(--fs-small); margin: 0; }
.ledger dd, .ledger .v { margin: 0; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; color: var(--ink); text-align: right; }

/* ---------- telttasauna (nextwell-cta-1 kuvalla) ---------- */
.tent { display: grid; grid-template-columns: minmax(0, 320px) minmax(0, 760px); column-gap: clamp(40px, 7vw, 120px); row-gap: 32px; align-items: start; }
.tent-img { width: 100%; max-width: 320px; }
.tent-img img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: var(--radius); }
.tent-body { display: flex; flex-direction: column; gap: 32px; }
@media (max-width: 899px) {
  .tent { grid-template-columns: minmax(0, 1fr); }
  .tent-img, .tent-body { grid-column: auto; }
  .tent-img { max-width: 240px; }
}

/* ---------- galleriapoiminta (stringer-image-gallery-5) ---------- */
.rule-top { border-top: 1px solid var(--line); }
.pick-sec { padding-top: 0; }
.pick { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; text-decoration: none; }
.pick .cell, .proof .cell { display: block; overflow: hidden; border-radius: var(--radius); background: var(--line); aspect-ratio: 1 / 1; }
.pick img, .proof img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s var(--ease), opacity 0.3s ease; }
.pick .cell:hover img, .proof .cell:hover img { transform: scale(1.03); }
@media (max-width: 899px) { .pick { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 599px) {
  .pick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .pick .cell:nth-child(n+5) { display: none; }
}

/* ---------- yhteys (harbor-contact-3, tumma) ---------- */
.contact { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; }
.contact-h { grid-column: 1 / span 4; }
.contact-cards { grid-column: 5 / span 8; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.dcard {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 32px;
  padding: 28px;
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.14);
}
.dcard .lines { display: flex; flex-direction: column; gap: 6px; }
.dcard a.tlink { color: #fff; }
.dcard .alink { color: #fff; align-self: flex-start; }
@media (max-width: 1199px) {
  .contact-h { grid-column: 1 / -1; }
  .contact-cards { grid-column: 1 / -1; }
}
@media (max-width: 767px) { .contact-cards { grid-template-columns: minmax(0, 1fr); } }

/* ---------- footer (stringer-footer-4) ---------- */
.site-footer { background: var(--ink); color: #fff; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.f-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: 40px;
  row-gap: 32px;
  align-items: start;
  padding-top: 56px;
  padding-bottom: 40px;
}
.f-brand img { height: 52px; width: auto; }
.f-brand p { margin-top: 14px; color: var(--on-ink-muted); font-size: var(--fs-small); }
.f-nav ul, .f-links { list-style: none; display: flex; flex-wrap: wrap; gap: 10px 24px; }
.f-nav { max-width: 420px; }
.f-nav a, .f-links a { font-size: var(--fs-small); text-decoration: none; color: #fff; }
.f-nav a:hover, .f-links a:hover { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 4px; }
.f-links { flex-direction: column; align-items: flex-end; gap: 10px; justify-self: end; }
.f-under {
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  padding-top: 20px;
  padding-bottom: 28px;
  color: var(--on-ink-muted);
  font-size: var(--fs-label);
}
@media (max-width: 899px) {
  .f-row { grid-template-columns: minmax(0, 1fr); }
  .f-links { align-items: flex-start; justify-self: start; }
}

/* ---------- mobiilin soittopalkki ---------- */
.callbar { display: none; }
@media (max-width: 899px) {
  body.has-callbar { padding-bottom: calc(64px + env(safe-area-inset-bottom, 0px)); }
  .callbar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 55;
    background: var(--bg);
    border-top: 1px solid var(--line);
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom, 0px));
    gap: 8px;
  }
  .callbar .btn { min-height: 48px; padding-left: 10px; padding-right: 10px; font-size: var(--fs-small); }
}

/* ---------- alasivun paa (truebase-utility-page-2) ---------- */
.page-head { padding-top: 160px; }
.page-head .rule { margin-top: 40px; border-top: 1px solid var(--line); }
.after-head { padding-top: 72px; }
@media (max-width: 767px) {
  .page-head { padding-top: 112px; }
  .page-head .rule { margin-top: 28px; }
  .after-head { padding-top: 48px; }
}

/* ---------- hinnasto (kelvin-value-features-16) ---------- */
.split { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 40px; align-items: start; }
.split-aside { grid-column: 1 / span 4; position: sticky; top: 108px; }
.split-main { grid-column: 5 / span 8; }
.split-main.offset { grid-column: 6 / span 7; }
.anchors { list-style: none; border-top: 1px solid var(--line); }
.anchors li { border-bottom: 1px solid var(--line); }
.anchors a {
  position: relative;
  display: block;
  padding-top: 11px;
  padding-bottom: 11px;
  padding-left: 16px;
  font-size: var(--fs-small);
  line-height: 1.4;
  text-decoration: none;
  color: var(--muted);
  transition: color 0.2s ease;
}
.anchors a:hover { color: var(--ink); }
.anchors a::before {
  content: "";
  position: absolute;
  left: 0;
  top: 10px;
  bottom: 10px;
  width: 2px;
  border-radius: 0;
  background: var(--accent);
  transform: scaleY(0);
  transition: transform 0.2s var(--ease);
}
.anchors a.is-active { color: var(--ink); font-weight: 500; }
.anchors a.is-active::before { transform: scaleY(1); }
.pgroup + .pgroup { margin-top: 56px; }
.pgroup h3 { margin-bottom: 20px; scroll-margin-top: 108px; }
.pgroup .k .nm b { font-weight: 500; color: var(--ink); }
.ledger.lg .k { font-size: 1rem; color: var(--ink); }
.ledger.lg .k .muted { color: var(--muted); }
.vat-h { margin-top: 56px; }
.closing { padding-top: 80px; padding-bottom: 80px; }
.closing .measure { display: flex; flex-direction: column; gap: 20px; }
.closing .btn-row { margin-top: 12px; }
@media (max-width: 959px) {
  .split-aside, .split-main, .split-main.offset { grid-column: 1 / -1; }
  .split-aside { position: static; }
  .hide-mobile { display: none; }
}
@media (min-width: 960px) { .show-mobile { display: none; } }

/* ---------- vuokraehdot (forerunner-utility-page-1) ---------- */
.terms h2 { font-size: clamp(1.5rem, 2.4vw, 2rem); scroll-margin-top: 92px; margin-bottom: 20px; }
.terms .tsec + .tsec { margin-top: 56px; }
.terms p, .terms li { font-size: 1.0625rem; line-height: 1.65; max-width: 64ch; }
.terms p + p, .terms p + ul, .terms ul + p { margin-top: 16px; }
.plain-list { list-style: none; border-top: 1px solid var(--line); }
.plain-list li { border-bottom: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; }
.toc-details { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.toc-details summary {
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 14px;
  padding-bottom: 14px;
  font-weight: 500;
}
.toc-details summary::-webkit-details-marker { display: none; }
.toc-details summary::after {
  content: "";
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: rotate(45deg) translateY(-3px);
  transition: transform 0.2s ease;
}
.toc-details[open] summary::after { transform: rotate(-135deg) translateY(-3px); }
.toc-details .anchors { margin-bottom: 16px; }

/* ---------- ohjeet (stringer-process-1) ---------- */
.steps { list-style: none; counter-reset: step; border-bottom: 1px solid var(--line); }
.steps > li {
  counter-increment: step;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  column-gap: 24px;
  row-gap: 20px;
  padding-top: 28px;
  padding-bottom: 28px;
  border-top: 1px solid var(--line);
}
.steps > li::before {
  content: counter(step) ".";
  color: var(--muted);
  font-weight: 500;
  font-size: 1.125rem;
  line-height: 1.6;
  font-variant-numeric: tabular-nums;
}
.steps p { font-size: 1.0625rem; line-height: 1.65; max-width: 64ch; }
.steps .has-img { grid-template-columns: 48px minmax(0, 1fr) minmax(0, 376px); }
.steps .has-img .step-img { padding-left: 16px; }
.step-img { width: 100%; }
.step-img img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--radius); }
.steps.compact > li { padding-top: 18px; padding-bottom: 18px; }
.outro { margin-top: 40px; font-size: var(--fs-h3); font-weight: 500; letter-spacing: -0.01em; }
@media (max-width: 899px) {
  .steps .has-img { grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; }
  .steps > li { grid-template-columns: 36px minmax(0, 1fr); column-gap: 16px; }
  .step-img { grid-column: 2; max-width: 420px; }
  .steps .has-img .step-img { padding-left: 0; }
}

.video { padding-top: 80px; padding-bottom: 80px; }
.video .muted { margin-top: 12px; }
.poster {
  position: relative;
  display: block;
  max-width: 720px;
  margin-top: 32px;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--ink);
}
.poster img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; transition: transform 0.3s var(--ease); }
.poster:hover img { transform: scale(1.02); }
.play {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 64px;
  height: 64px;
  margin-left: -32px;
  margin-top: -32px;
  border-radius: 50%;
  background: #fff;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  color: var(--ink);
}
.play svg { width: 22px; height: 22px; margin-left: 3px; }
.video .alink { margin-top: 16px; }

/* ---------- varaus: kalenteri (stringer-structured-data-1:n matriisi) ---------- */
.booking { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--col-gap); row-gap: 48px; align-items: start; }
.booking-cal { grid-column: 1 / span 7; }
.booking-form { grid-column: 8 / span 5; position: sticky; top: 100px; }
@media (max-width: 959px) {
  .booking-cal, .booking-form { grid-column: 1 / -1; }
  .booking-form { position: static; }
}
.demo-note { font-size: var(--fs-label); color: var(--muted); }
.cal-tabs { display: flex; gap: 8px; margin-top: 16px; }
.cal-tab {
  min-height: 44px;
  padding-left: 22px;
  padding-right: 22px;
  border-radius: var(--radius-btn);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--ink);
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.2s ease, border-color 0.2s ease;
}
.cal-tab:hover { border-color: var(--ink); }
.cal-tab[aria-selected="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.cal-nav { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 28px; margin-bottom: 16px; }
.cal-month { font-size: 1.25rem; font-weight: 500; letter-spacing: -0.01em; }
.cal-arrow {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--surface);
  cursor: pointer;
}
.cal-arrow:hover { border-color: var(--ink); }
.cal-arrow[disabled] { opacity: 0.4; cursor: not-allowed; border-color: var(--line); }
.cal-arrow svg { width: 16px; height: 16px; }
.cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal-dow { text-align: center; font-size: var(--fs-label); color: var(--muted); padding-bottom: 4px; }
.cal-day {
  min-height: 52px;
  border-radius: 6px;
  border: 1px solid transparent;
  background: transparent;
  font-size: 1rem;
  font-weight: 500;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  padding: 0;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}
.cal-day.is-free { background: var(--free-bg); border-color: var(--free-line); color: var(--ink); }
.cal-day.is-free:hover { background: var(--free-bg-hover); border-color: var(--free); }
.cal-day.is-booked { background: var(--booked-bg); border-color: var(--booked-line); color: var(--booked-text); text-decoration: line-through; text-decoration-thickness: 1px; cursor: not-allowed; }
.cal-day.is-past { color: var(--muted); cursor: default; font-weight: 400; }
.cal-day.is-range { background: var(--surface-2); border-color: var(--line); }
.cal-day.is-sel { background: var(--ink); border-color: var(--ink); color: #fff; }
.cal-legend { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 16px; font-size: var(--fs-label); color: var(--muted); }
.cal-legend span { display: inline-flex; align-items: center; gap: 8px; }
.cal-legend i { width: 12px; height: 12px; border-radius: 2px; border: 1px solid; display: inline-block; }
.cal-legend .lg-free { background: var(--free-bg); border-color: var(--free); }
.cal-legend .lg-booked { background: var(--booked-bg); border-color: var(--accent); }
.cal-legend .lg-sel { background: var(--ink); border-color: var(--ink); }
.cal-msg { min-height: 1.6em; margin-top: 12px; font-size: var(--fs-small); color: var(--booked-text); font-weight: 500; }
@media (max-width: 599px) {
  .cal-grid { gap: 4px; }
  .cal-day { min-height: 44px; }
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 32px;
}
@media (max-width: 599px) { .card { padding: 24px; } }
.form-title { font-size: var(--fs-h3); margin-bottom: 24px; }
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.field label { font-size: var(--fs-label); font-weight: 500; }
.field input, .field textarea {
  min-height: 48px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--radius-btn);
  background: var(--surface);
  padding: 10px 14px;
  font-size: 1rem;
}
.field textarea { min-height: 112px; resize: vertical; }
.field input[readonly] { background: var(--bg); }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; border-color: transparent; }
.field-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.check { display: flex; align-items: flex-start; gap: 10px; margin-top: 8px; margin-bottom: 24px; }
.check input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); flex: none; }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.form-done { font-size: 1.0625rem; line-height: 1.6; }
.js .nojs-note { display: none; }
.nojs-note { margin-top: 16px; }

.below-cal { margin-top: 80px; }
.below-cal h3 { margin-bottom: 24px; }

/* varauskalenteri: backend-tilat (lataus, virheet, kiitos) */
.cal-day.is-loading { background: var(--surface); border-color: var(--line); color: var(--muted); cursor: progress; font-weight: 400; }
html:not(.js) [data-calendar] > .cal-tabs,
html:not(.js) [data-calendar] > [role="tabpanel"] { display: none; }
.cal-noscript { max-width: 64ch; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius-btn); background: var(--surface); }
.field-error { font-size: var(--fs-label); line-height: 1.4; color: var(--booked-text); font-weight: 500; }
.field-error[hidden], .form-error[hidden] { display: none; }
.check-error { margin-top: -16px; margin-bottom: 16px; }
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"] { border-color: var(--accent); box-shadow: inset 0 0 0 1px var(--accent); }
.check input[aria-invalid="true"] { outline: 2px solid var(--accent); outline-offset: 2px; }
.form-error { margin-bottom: 16px; padding: 12px 14px; border: 1px solid var(--booked-line); border-radius: var(--radius-btn); background: var(--booked-bg); color: var(--booked-text); font-size: var(--fs-small); font-weight: 500; }
.form-error:focus { outline: none; }
.form-done > * + * { margin-top: 12px; }
.form-done .form-title { margin-bottom: 0; }
.form-done:focus { outline: none; }

/* ---------- galleria (proof sheet + lightbox) ---------- */
.proof { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 16px; }
.proof:has(.cell:hover) .cell:not(:hover) img { opacity: 0.7; }
@media (max-width: 1023px) { .proof { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 599px) { .proof { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; } }
.proof-foot { display: flex; gap: 24px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); }

.lb { border: 0; padding: 0; margin: 0; width: 100vw; height: 100vh; max-width: 100vw; max-height: 100vh; background: transparent; color: #fff; }
.lb::backdrop { background: rgba(28, 26, 23, 0.86); }
.lb-inner { height: 100%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 20px; padding: 24px; }
.lb-img { max-width: 90vw; max-height: 72vh; width: auto; height: auto; object-fit: contain; border-radius: 6px; }
.lb-bar { width: min(90vw, 1100px); background: var(--ink); border-radius: var(--radius-btn); padding: 10px 10px 10px 18px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.lb-meta { display: flex; gap: 16px; color: var(--on-ink-muted); font-size: var(--fs-small); }
.lb-count { color: #fff; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lb-tools { display: flex; gap: 8px; }
.lb-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding-left: 14px;
  padding-right: 14px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: var(--radius-btn);
  background: transparent;
  color: #fff;
  cursor: pointer;
  font-size: var(--fs-small);
}
.lb-btn:hover { border-color: #fff; }
.lb-btn svg { width: 14px; height: 14px; }
.lb-lock { overflow: hidden; }

/* ---------- yhteystiedot (for-human-contact-1) ---------- */
.info { padding-top: 80px; padding-bottom: 80px; }
.info-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.info-grid .card { display: flex; flex-direction: column; gap: 20px; }
.info-grid h2 { font-size: var(--fs-h3); line-height: 1.25; letter-spacing: -0.01em; }
.rows { list-style: none; border-top: 1px solid var(--line); }
.rows li { border-bottom: 1px solid var(--line); padding-top: 10px; padding-bottom: 10px; }
.info-grid .alink { align-self: flex-start; }
@media (max-width: 899px) { .info-grid { grid-template-columns: minmax(0, 1fr); } }
.ajo .intro-t p:first-child { font-size: inherit; font-weight: 500; }
.ajo .intro-grid { grid-template-areas: "h h h h h . t t t t t t"; }
@media (max-width: 899px) { .ajo .intro-grid { grid-template-areas: "h" "t"; } }

/* ---------- 404 ---------- */
.nf { min-height: 70vh; padding-bottom: 120px; }
.nf .btn-row { margin-top: 32px; align-items: center; }

/* ---------- reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity 600ms var(--ease), transform 600ms var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

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

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