/* Vevia – etusivu, versio 4
   Valmistajan luettelo: kapea isokirjaiminen otsikkotyyppi, tekniset piirrokset
   ja logon värit, eli sininen ja harmaat. Ei pyöreitä harmaita UI-kortteja. */

:root {
  --bg: #fff;
  --alt: #f3f2ee;
  --line: #d9d8d2;
  --ink: #16171b;
  --text-2: #45464d;
  --soft: #77787f;
  --accent: #5271ff;
  --blue: #4466ff; /* logon sininen hieman syvempänä, jotta valkoinen teksti sen päällä erottuu */
  --accent-ink: #2f4bd8;
  --studio: #2a292d;
  --on-dark: #f2f1ec;
  --on-dark-2: #a9a8a3;

  --r: 4px;
  --maxw: 1440px;
  --gutter: clamp(16px, 3.4vw, 48px);
  --sec: clamp(64px, 8vw, 120px);
  --header: 72px;
  --t-display: clamp(3.2rem, min(7.4vw, 11.5vh), 8.8rem);
  --t-h2: clamp(2.4rem, 4.6vw, 4.4rem);
  --t-h2s: clamp(2rem, 3vw, 2.75rem);
  --t-h3: 1.6rem;
  --w-head: 500;   /* isot otsikot: kevyt kuin logon VEVIA-teksti */
  --w-label: 600;  /* pienet isokirjaimiset nimet ja otsikot */
  --w-num: 700;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Archivo", system-ui, sans-serif; font-size: 1.0625rem; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; }
button { font: inherit; color: inherit; }
p { margin: 0 0 1em; text-wrap: pretty; }

/* Otsikot: kapea, raskas ja isokirjaiminen kuin tehtaan kyltissä */
h1, h2 {
  margin: 0; font-weight: var(--w-head); font-stretch: 70%; text-transform: uppercase;
  letter-spacing: -.005em; line-height: .9; text-wrap: balance;
}
h1 { font-size: var(--t-h2s); }
h2 { font-size: var(--t-h2); }
h3 { margin: 0; font-size: 1.25rem; font-weight: 700; font-stretch: 88%; letter-spacing: -.01em; line-height: 1.15; }
.h-tech { font-size: 1.5rem; font-stretch: 72%; font-weight: var(--w-head); text-transform: uppercase; letter-spacing: .01em; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 16px; }
.skip:focus { top: 12px; }
.wrap { width: min(100% - 2 * var(--gutter), var(--maxw)); margin-inline: auto; }
.lead { font-size: 1.2rem; line-height: 1.5; }
.marker { font-family: "Permanent Marker", cursive; }

/* ------------------------------------------------ painikkeet ja linkit */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 50px; padding: 0 24px; border: 0; border-radius: 3px;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 1rem; line-height: 1.2;
  text-decoration: none; white-space: nowrap; cursor: pointer; transition: background-color .2s;
}
.btn:hover { background: var(--accent-ink); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--alt); }
.link { font-weight: 700; white-space: nowrap; }
.link--light { color: #fff; }

/* Alleviivaus piirtyy hoverissa vasemmalta oikealle. Pysyvissä linkeissä vaalea
   pohjaviiva näkyy koko ajan ja sininen viiva liukuu sen päälle. */
.link, .next a, .faq-list details a, .cat-go, .shop-more span, .finder-clear, .cl-remove, .fb, .quote-toggle {
  --u-base: rgb(82 113 255 / .35);
  padding-bottom: 2px; text-decoration: none;
  background: linear-gradient(var(--accent), var(--accent)) 0 100% / 0 2px no-repeat, linear-gradient(var(--u-base), var(--u-base)) 0 100% / 100% 2px no-repeat;
  transition: background-size .45s var(--ease);
}
.link--light, .fb, .quote-toggle { --u-base: rgb(255 255 255 / .4); }
.link:hover, .link:focus-visible, .next a:hover, .next a:focus-visible, .faq-list details a:hover, .cat:hover .cat-go, .cat:focus-visible .cat-go,
.shop-more a:hover span, .shop-more a:focus-visible span, .finder-clear:hover, .cl-remove:hover, .fb:hover, .quote-toggle:hover { background-size: 100% 2px, 100% 2px; }

.nav a, .topbar a, .crumbs a, .site-footer nav a, .people a, .faq-phone, .person a, .topper h3 a, .mini-card strong, .cl-name, .contact-phone, .footer-contact a {
  text-decoration: none;
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 2px no-repeat;
  transition: background-size .35s var(--ease);
}
.nav a { background-image: linear-gradient(var(--accent), var(--accent)); background-position: 0 calc(100% - 3px); }
.topper h3 a { background-image: linear-gradient(var(--accent), var(--accent)); }
.nav a:hover, .nav a:focus-visible, .nav a[aria-current="page"], .topbar a:hover, .crumbs a:hover, .site-footer nav a:hover, .site-footer nav a:focus-visible,
.people a:hover, .faq-phone:hover, .person a:hover, .topper:hover h3 a, a.mini-card:hover strong, .cl-name:hover, .contact-phone:hover, .footer-contact a:hover { background-size: 100% 2px; }

/* ------------------------------------------------ yläpalkki ja header */
.topbar { position: relative; z-index: 61; background: var(--blue); color: #fff; font-size: .875rem; }
.topbar-row { display: flex; justify-content: space-between; gap: 16px; padding: 7px 0; }
.topbar p { margin: 0; }
.topbar :focus-visible { outline-color: #fff; }
.hero :focus-visible, .over-hero :focus-visible, .section--dark :focus-visible, .site-footer :focus-visible { outline-color: #fff; }
.tb-short { display: none; }

.site-header { position: sticky; top: 0; z-index: 60; height: var(--header); background: #fff; color: var(--ink); transition: background-color .3s, color .3s, box-shadow .3s; }
.site-header.is-scrolled { box-shadow: 0 1px 0 var(--line); }
.site-header.over-hero { background: transparent; color: #fff; box-shadow: none; }
.header-row { display: flex; align-items: center; gap: 32px; height: 100%; }
.logo { color: var(--accent); flex: none; }
.over-hero .logo { color: #fff; }
.nav { display: flex; gap: clamp(16px, 2vw, 30px); margin-left: auto; }
.nav a { align-self: flex-start; font-weight: 600; font-size: .95rem; padding: 6px 0; }
.header-tools { display: flex; align-items: center; gap: 4px; }
.icon-btn { position: relative; display: grid; place-items: center; width: 44px; height: 44px; border-radius: 3px; text-decoration: none; }
.icon-btn:hover { color: var(--accent-ink); }
.over-hero .icon-btn:hover { color: var(--accent); }
.shop-btn { min-height: 42px; margin-left: 24px; padding: 0 22px; font-size: .95rem; }
.cart-count { position: absolute; right: 3px; top: 5px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--blue); color: #fff; font-size: .68rem; font-weight: 700; display: grid; place-items: center; }
.menu-btn { display: none; width: 44px; height: 44px; border: 0; border-radius: 3px; background: none; cursor: pointer; }
.menu-lines, .menu-lines::before, .menu-lines::after { display: block; width: 22px; height: 2px; margin: auto; background: currentColor; transition: transform .3s var(--ease); }
.menu-lines { position: relative; }
.menu-lines::before, .menu-lines::after { content: ""; position: absolute; left: 0; }
.menu-lines::before { top: -6px; }
.menu-lines::after { top: 6px; }
.nav-open .menu-lines { background: transparent !important; }
.nav-open .menu-lines::before { transform: translateY(6px) rotate(45deg); }
.nav-open .menu-lines::after { transform: translateY(-6px) rotate(-45deg); }

/* ------------------------------------------------ osiot */
.section { padding: var(--sec) 0; }
.section--alt { background: var(--alt); }
.section--dark { background: var(--studio); color: var(--on-dark); }
.section--foam { position: relative; isolation: isolate; background: var(--alt); }
.section--foam::before { content: ""; position: absolute; inset: 0; z-index: -1; background: url(../img/huokoset.svg) 0 0 / 320px; opacity: .09; mix-blend-mode: multiply; }
.head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 4fr) minmax(0, 2fr); align-items: end; gap: 16px 48px; margin-bottom: clamp(32px, 4vw, 56px); }
.head p { margin: 0; color: var(--text-2); max-width: 52ch; }
.head > :last-child:not(p):not(h2) { justify-self: end; }
.next { margin: 36px 0 0; color: var(--text-2); }
.next a { color: var(--ink); font-weight: 700; }

/* ------------------------------------------------ hero
   Kuva on ylhäällä oikealla, ja sen tumma studiotausta jatkuu koko heroon.
   Teksti kulkee alhaalla koko leveydeltä. Yläpadding lasketaan kuvan koosta,
   joten otsikko jää aina patjan kulman alapuolelle. */
.hero {
  --photo: min(76vw, 104vh);
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: calc(var(--header) * -1);
  min-height: clamp(640px, 92vh, 1000px);
  display: flex; align-items: flex-end;
  padding: calc(var(--photo) * .44 + 28px) 0 clamp(28px, min(5vw, 5vh), 76px);
  background: var(--studio); color: #fff;
}
.hero-photo {
  position: absolute; top: calc(var(--photo) * -.1); right: 0; z-index: -2;
  width: var(--photo); aspect-ratio: 3 / 2;
  -webkit-mask-image: linear-gradient(90deg, transparent 4%, #000 32%), linear-gradient(0deg, transparent 0, #000 30%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(90deg, transparent 4%, #000 32%), linear-gradient(0deg, transparent 0, #000 30%);
  mask-composite: intersect;
}
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }
.hero::before {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(180deg, rgb(42 41 45 / .82) 0, rgb(42 41 45 / .5) calc(var(--header) + 16px), rgb(42 41 45 / 0) calc(var(--header) + 150px));
}
.hero-content { position: relative; }
.hero h1 { font-size: var(--t-display); }
.hero h1 span { display: block; }
.hero-row { display: grid; justify-items: start; gap: 28px; margin-top: clamp(20px, 2vw, 28px); }
.hero .lead { max-width: 64ch; margin: 0; color: rgb(255 255 255 / .85); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 32px; }
.hero .actions { margin: 0; }


/* ------------------------------------------------ valikoima */
.cats { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.cat { display: flex; flex-direction: column; padding: 10px 10px 22px; border-radius: var(--r); text-decoration: none; color: var(--ink); background: var(--alt); }
.cat-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; margin-bottom: 16px; border-radius: 3px; background: #fff; }
.cat-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.cat:hover .cat-img img { transform: scale(1.03); }
.cat-name, .cat-meta { padding-inline: 14px; }
.cat-name { font-size: clamp(2rem, 3vw, 2.8rem); font-weight: var(--w-head); font-stretch: 70%; text-transform: uppercase; line-height: .95; }
.cat-meta { display: flex; justify-content: space-between; gap: 12px; margin-top: 8px; font-size: .98rem; }
.cat-meta b { white-space: nowrap; }

/* ------------------------------------------------ sängyt */
.beds { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 56px); align-items: start; }
.beds-visual { padding: 0; }
.explode { width: 100%; height: auto; overflow: visible; }
.explode .layer { transition: transform 1s var(--ease), opacity .3s; }
.explode.is-open .layer { transform: translateY(calc(var(--i) * -26px)); transition-delay: calc(var(--i) * 60ms); }
.explode.is-dim .layer { opacity: .3; }
.explode.is-dim .layer.is-hot { opacity: 1; }
.layer-legend { list-style: none; margin: 16px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 4px 20px; }
.layer-legend li { display: grid; grid-template-columns: 26px 1fr; gap: 0 12px; padding: 8px; border-radius: 3px; }
.layer-legend li:hover, .layer-legend li:focus-visible { color: var(--accent-ink); }
.layer-legend .sw { grid-row: span 2; width: 26px; height: 18px; margin-top: 3px; border-radius: 2px; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .18); }
.layer-legend strong { font-weight: 700; font-size: .95rem; }
.layer-legend span:last-child { font-size: .875rem; color: var(--text-2); }

.bed-models { display: grid; gap: 10px; }
.model {
  display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 18px;
  padding: 12px 2px; border: 0; border-radius: 0; background: none;
  text-align: left; cursor: pointer; transition: border-color .2s;
}
.model:hover .model-name { color: var(--accent-ink); }
.model[aria-selected="true"] { border-color: transparent; box-shadow: inset 0 -3px 0 var(--accent); }
.model-img { display: none; }
.bed-side { display: grid; gap: 10px; align-content: start; }
.bed-photo { width: 100%; aspect-ratio: 3 / 2; object-fit: cover; border-radius: var(--r); margin-bottom: 8px; }
.model-text { display: grid; gap: 2px; }
.model-name { font-size: 1.35rem; font-weight: var(--w-label); font-stretch: 72%; text-transform: uppercase; line-height: 1; }
.model-spec { font-size: .9rem; color: var(--text-2); }
.model-price { font-weight: 700; white-space: nowrap; }
.model-buy { display: grid; gap: 14px; justify-items: start; margin-top: 14px; }
.bed-guarantee { margin: 0; font-weight: 600; }

/* ------------------------------------------------ petauspatjat */
.finder-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px 56px; align-items: start; margin-bottom: 40px; }
.finder-label { margin: 0 0 12px; font-size: 1.3rem; font-weight: var(--w-label); font-stretch: 72%; text-transform: uppercase; }
.picks { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 8px; }
.picks button {
  display: grid; justify-items: center; align-content: start; gap: 8px;
  padding: 4px 2px 8px; border: 0; border-radius: 0; background: none; color: var(--text-2);
  font-size: .9rem; font-weight: 600; line-height: 1.25; text-align: center; cursor: pointer;
  transition: color .2s, box-shadow .2s;
}
.picks svg { width: 64px; height: 32px; color: var(--ink); transition: color .2s; }
.picks button:hover { color: var(--ink); }
.picks button:hover svg { color: var(--accent-ink); }
.picks button[aria-pressed="true"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.picks button[aria-pressed="true"] svg { color: var(--accent); }
.finder-note { min-height: 1.6em; margin: 14px 0 0; color: var(--text-2); max-width: 74ch; }
.finder-note strong { color: var(--ink); }

.care-label {
  position: relative; width: 250px; margin-top: 4px; padding: 34px 20px 18px;
  background: repeating-linear-gradient(0deg, rgb(0 0 0 / .022) 0 1px, transparent 1px 3px), #fdfcf8;
  border-radius: 3px 3px 9px 9px;
  box-shadow: 0 1px 0 rgb(0 0 0 / .06), 0 16px 26px -16px rgb(40 30 0 / .45);
  outline: 1.5px dashed rgb(22 23 27 / .3); outline-offset: -8px;
  font-stretch: 85%; font-size: .875rem; line-height: 1.35;
}
.cl-fold { position: absolute; left: 0; right: 0; top: 0; height: 18px; border-radius: 3px 3px 0 0; background: linear-gradient(#e7e4d9, #f6f4ec); box-shadow: inset 0 -1px 0 rgb(0 0 0 / .08); }
.cl-brand { margin: 0 0 10px; font-size: 1.3rem; font-weight: 800; font-stretch: 120%; letter-spacing: .06em; text-transform: uppercase; line-height: 1; }
.cl-brand span { display: block; margin-top: 4px; font-size: .66rem; font-weight: 600; letter-spacing: .04em; font-stretch: 90%; }
.care-label ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; text-transform: uppercase; font-weight: 600; }
.cl-wash { display: flex; align-items: center; gap: 8px; }

.toppers { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 32px 24px; }
.topper { position: relative; display: flex; flex-direction: column; transition: opacity .3s; }
.t-img { display: block; aspect-ratio: 4 / 3; overflow: hidden; border-radius: var(--r); background: var(--alt); }
.t-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.topper:hover .t-img img { transform: scale(1.03); }
.topper h3 { margin-top: 16px; }
.topper h3 { font-size: 1.6rem; font-weight: var(--w-head); font-stretch: 70%; text-transform: uppercase; }
.topper h3 a::after { content: ""; position: absolute; inset: 0; }
.t-desc { margin: 6px 0 4px; color: var(--text-2); font-size: .95rem; line-height: 1.5; }
.t-spec { margin: 0; font-size: .875rem; font-weight: 600; color: var(--text-2); }
.t-buy { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: auto 0 0; padding-top: 14px; }
.t-buy .link { position: relative; z-index: 1; }
.price { font-weight: var(--w-num); font-size: 1.15rem; }
.t-feel { margin: 4px 0 0; font-size: 1.05rem; font-weight: 700; line-height: 1.35; }
.t-fit { margin: 10px 0 0; font-size: .95rem; font-weight: 600; }
.t-fit[hidden] { display: none; }
.topper.is-fit h3 a { background-image: linear-gradient(var(--accent), var(--accent)); background-size: 100% 3px; }

.feel { display: grid; grid-template-columns: minmax(0, 4fr) minmax(0, 8fr); gap: clamp(24px, 4vw, 56px); align-items: center; margin-top: 56px; padding: clamp(20px, 3vw, 40px); border-radius: var(--r); background: var(--alt); }
.feel-copy p { color: var(--text-2); }
.swatches, .densities { display: flex; flex-wrap: wrap; gap: 10px; }
.swatches button, .densities button {
  display: grid; justify-items: center; gap: 6px; padding: 6px 6px 8px; border: 2px solid transparent; border-radius: var(--r);
  background: none; font-size: .875rem; font-weight: 700; cursor: pointer;
}
.swatches .sw, .densities .sw { width: 52px; height: 52px; border-radius: 3px; }
.swatches button:hover, .densities button:hover { color: var(--accent-ink); }
.swatches button[aria-selected="true"], .densities button[aria-pressed="true"] { font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.feel-spec { margin: 18px 0 0; min-height: 3.2em; }
.feel-spec span { color: var(--text-2); }
.press { width: 100%; height: auto; cursor: pointer; touch-action: none; user-select: none; -webkit-user-select: none; }

/* ------------------------------------------------ vaahtomuovi */
.foam { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 4vw, 56px); align-items: center; }
.foam-form { display: flex; flex-direction: column; gap: 24px; }
.field { border: 0; margin: 0; padding: 0; min-width: 0; }
.field legend, .field > label { display: flex; justify-content: space-between; align-items: baseline; width: 100%; padding: 0; margin-bottom: 10px; font-size: 1.15rem; font-weight: var(--w-label); font-stretch: 72%; text-transform: uppercase; }
.field output { font-size: 1.5rem; font-weight: var(--w-head); font-stretch: 72%; }
.sizes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.sizes button { display: grid; justify-items: center; gap: 6px; padding: 4px 6px 8px; border: 0; background: none; font-weight: 700; font-size: .9rem; color: var(--text-2); cursor: pointer; transition: color .2s, box-shadow .2s; }
.sizes svg { width: 48px; height: 48px; }
.sizes rect { fill: #fff; stroke: var(--ink); stroke-width: 1.5; }
.sizes button:hover { color: var(--ink); }
.sizes button[aria-pressed="true"] { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.sizes button[aria-pressed="true"] rect { fill: var(--accent); stroke-width: 2.5; }
.ruler { position: relative; padding-bottom: 22px; }
.ruler-ticks { position: absolute; left: 11px; right: 11px; bottom: 0; display: flex; justify-content: space-between; font-size: .72rem; font-weight: 700; color: var(--text-2); }
.ruler-ticks span { position: relative; width: 0; display: flex; justify-content: center; }
.ruler-ticks span::before { content: ""; position: absolute; bottom: 16px; width: 1.5px; height: 9px; background: var(--ink); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 34px; margin: 0; background: none; cursor: pointer; }
input[type="range"]::-webkit-slider-runnable-track { height: 10px; border-radius: 2px; background: repeating-linear-gradient(90deg, rgb(0 0 0 / .18) 0 1px, transparent 1px 8px), #fff; box-shadow: inset 0 0 0 1px rgb(0 0 0 / .2); }
input[type="range"]::-moz-range-track { height: 10px; border-radius: 2px; background: #fff; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 30px; margin-top: -10px; border-radius: 3px; background: var(--ink); border: 3px solid #fff; box-shadow: 0 1px 4px rgb(0 0 0 / .35); }
input[type="range"]::-moz-range-thumb { width: 16px; height: 24px; border-radius: 3px; background: var(--ink); border: 3px solid #fff; }
.hint { margin: 8px 0 0; font-size: .875rem; color: var(--text-2); }
.buy { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; }
.buy-price { display: grid; margin: 0; }
.buy-price span { font-size: clamp(2.4rem, 3.6vw, 3.2rem); font-weight: var(--w-num); font-stretch: 72%; line-height: 1; font-variant-numeric: tabular-nums; }
.buy-price small { margin-top: 4px; font-size: .9375rem; color: var(--text-2); }
.block { width: 100%; height: auto; overflow: visible; }

/* ------------------------------------------------ mittatilaukset */
.drawing { width: 100%; height: auto; aspect-ratio: 360 / 250; border-radius: var(--r); background: var(--alt); }

/* ------------------------------------------------ meistä */
.story { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(32px, 5vw, 80px); align-items: center; }
.story .lead { margin-top: 22px; color: var(--on-dark-2); }
.quote { margin: 30px 0 0; }
.quote blockquote { margin: 0; }
.quote p { margin: 0; font-size: clamp(1.6rem, 2.4vw, 2.2rem); line-height: 1.1; font-weight: 700; font-stretch: 78%; }
.quote-toggle { margin-top: 12px; padding: 0 0 2px; border: 0; color: var(--on-dark-2); font-size: .9rem; cursor: pointer; }
.quote-toggle:hover { color: #fff; }
.people { display: flex; flex-wrap: wrap; gap: 14px 40px; margin-top: 32px; }
.people p { display: grid; margin: 0; }
.people span { color: var(--on-dark-2); font-size: .9rem; }
.people a { justify-self: start; font-weight: 700; font-size: 1.2rem; }
.story-photo { margin: 0; }
.story-photo img { width: 100%; height: clamp(280px, 34vw, 500px); object-fit: cover; border-radius: var(--r); }
.story-photo figcaption { margin-top: 10px; font-size: .875rem; color: var(--on-dark-2); }
.story-more { display: inline-block; margin-top: 28px; }

/* ------------------------------------------------ usein kysyttyä ja paketti */
.faq { display: grid; gap: clamp(28px, 3vw, 40px); }
.faq h2, .contact h2 { font-size: var(--t-h2s); }
.faq-list { margin-top: clamp(24px, 3vw, 36px); border-bottom: 1.5px solid var(--line); }
.faq-list details { border-top: 1.5px solid var(--line); }
.faq-list summary { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 2px; font-size: 1.12rem; font-weight: 700; line-height: 1.3; cursor: pointer; list-style: none; }
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ""; flex: none; width: 18px; height: 18px;
  background: linear-gradient(currentColor, currentColor) center / 18px 2.5px no-repeat, linear-gradient(currentColor, currentColor) center / 2.5px 18px no-repeat;
  color: var(--accent); transition: transform .3s var(--ease);
}
.faq-list summary:hover { color: var(--accent-ink); }
.faq-list details[open] summary::after { transform: rotate(45deg); }
.faq-list details p { margin: -4px 0 22px; padding-right: 44px; max-width: 60ch; color: var(--text-2); }
.faq-list details a { color: var(--ink); font-weight: 600; }
@supports (interpolate-size: allow-keywords) {
  .faq-list { interpolate-size: allow-keywords; }
  .faq-list details::details-content { height: 0; overflow: clip; transition: height .35s var(--ease), content-visibility .35s allow-discrete; }
  .faq-list details[open]::details-content { height: auto; }
}
.faq-help { display: grid; gap: 6px; justify-items: start; }
.faq-help h3 { font-size: 1.6rem; font-weight: var(--w-head); font-stretch: 70%; text-transform: uppercase; }
.faq-help p { margin: 0 0 6px; }
.faq-phone { font-size: 2rem; font-weight: var(--w-num); font-stretch: 72%; }

/* ------------------------------------------------ yhteys ja footer */
.contact { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: clamp(32px, 5vw, 80px); align-items: start; }
.contact .lead { margin-top: 18px; color: var(--text-2); }
.contact-form { display: grid; gap: 14px; }
.contact-form label { display: grid; gap: 6px; font-weight: 700; font-size: .95rem; }
.contact-form input, .contact-form select, .contact-form textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 3px; background: #fff; font: inherit; font-weight: 400; resize: vertical; }
.contact-form input:focus, .contact-form select:focus, .contact-form textarea:focus { outline: none; border-color: var(--ink); }
.contact-form .btn { justify-self: start; }
.form-status { margin: 0; min-height: 1.5em; font-size: .9rem; color: var(--text-2); }

.site-footer { background: var(--studio); color: var(--on-dark-2); padding: clamp(56px, 7vw, 88px) 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.5fr repeat(3, 1fr); gap: 32px; }
.footer-brand svg { color: #fff; margin-bottom: 16px; }
.footer-brand p { margin: 0 0 12px; font-size: .95rem; }
.fb { color: var(--on-dark); }
.site-footer nav { display: grid; align-content: start; gap: 8px; }
.site-footer nav a { justify-self: start; font-size: .95rem; }
.site-footer nav a:hover { color: #fff; }
.fh { margin: 0 0 6px; color: #fff; font-weight: var(--w-label); font-stretch: 72%; text-transform: uppercase; font-size: 1.1rem; }
.footer-copy { margin-top: 48px; font-size: .875rem; }

/* ------------------------------------------------ mittatilaukset, UKK, yhteys ja footer */
.pro { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(28px, 3.5vw, 44px) clamp(24px, 3vw, 48px); }
.pro-main, .pro-row { display: grid; align-items: center; gap: 16px clamp(24px, 3vw, 48px); }
.pro-main { grid-column: 1 / -1; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
.pro-row { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
.pro-photo { width: 100%; aspect-ratio: 3 / 2; padding: 3% 6%; object-fit: contain; border-radius: var(--r); background: var(--alt); }
.pro h3 { margin: 0; font-size: var(--t-h3); font-weight: var(--w-head); font-stretch: 70%; text-transform: uppercase; line-height: 1; }
.pro-main h3 { font-size: clamp(1.8rem, 2.6vw, 2.4rem); }
.pro p { margin: 10px 0 0; max-width: 60ch; color: var(--text-2); }
.pro .link { display: inline-block; margin-top: 14px; }
.pro-end { margin: clamp(32px, 4vw, 48px) 0 0; }
.faq-group { margin: 36px 0 8px; font-size: 1.0625rem; font-weight: var(--w-label); font-stretch: 78%; text-transform: uppercase; letter-spacing: .02em; }
.faq-list > .faq-group:first-child { margin-top: 0; }
.contact-info { display: grid; gap: 10px; justify-items: start; margin-top: 28px; }
.contact-phone { font-size: 1.6rem; font-weight: var(--w-num); font-stretch: 72%; }
.contact-info .addr { margin: 8px 0 0; color: var(--text-2); }
.contact-info .addr .link { display: inline-block; margin-top: 4px; }
.form-note { margin: 0; font-size: .9rem; color: var(--text-2); }
.section-end { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 48px; }
.section-end .link, .pro .link { white-space: normal; }
.foam-more { margin: 0; color: var(--text-2); }
.nav-extra { display: none; }
.cart-count[hidden] { display: none; }
.contact-form label[hidden] { display: none; }
.faq-more { margin-top: 18px; border: 0; padding: 0 0 2px; font: inherit; font-weight: 700; color: inherit; cursor: pointer; }
.footer-copy { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; }
.footer-copy p { margin: 0; }

/* ------------------------------------------------ responsiivisuus */
/* Matalilla läppärinäytöillä heron kuva ja otsikko pienenevät, jotta painikkeet näkyvät ilman vieritystä */
@media (min-width: 901px) and (max-height: 700px) {
  .hero { --photo: min(76vw, 96vh); min-height: 0; }
  .hero-row { gap: 20px; margin-top: 16px; }
}

@media (max-width: 1180px) {
  .nav { position: fixed; inset: 0; z-index: -1; flex-direction: column; justify-content: center; gap: 4px; padding: 96px var(--gutter) 40px; background: var(--bg); color: var(--ink); opacity: 0; visibility: hidden; transition: opacity .25s, visibility .25s; }
  .nav a { font-size: clamp(2.2rem, 8vw, 3.2rem); font-weight: var(--w-head); font-stretch: 70%; text-transform: uppercase; line-height: 1.05; }
  .nav-open .nav { opacity: 1; visibility: visible; }
  .nav-extra { display: grid; gap: 8px; margin-top: 28px; }
  .nav .nav-extra a { font-size: 1.1rem; font-weight: 600; font-stretch: 100%; text-transform: none; line-height: 1.4; }
  .nav-open { overflow: hidden; }
  .nav-open .site-header { background: #fff; color: var(--ink); }
  .nav-open .site-header .logo { color: var(--accent); }
  .header-tools { margin-left: auto; }
  .menu-btn { display: grid; place-items: center; margin-left: 12px; }
  .picks { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .toppers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .head { grid-template-columns: minmax(0, 1fr) auto; }
  .head p { grid-column: 1 / -1; grid-row: 2; }
}

@media (max-width: 900px) {
  .beds, .feel, .foam, .story, .faq, .contact, .finder-row, .pro-main, .pro-row { grid-template-columns: minmax(0, 1fr); }
  .hero { flex-direction: column; align-items: stretch; min-height: 0; padding: calc(var(--header) + 32px) 0 0; }
  .hero::before { content: none; }
  .hero-photo { position: relative; top: auto; right: auto; order: 2; width: 100%; margin-top: 4px;
    -webkit-mask-image: linear-gradient(180deg, transparent 0, #000 34%); mask-image: linear-gradient(180deg, transparent 0, #000 34%); }
  .hero-content { order: 1; }
  .hero h1 span { display: inline; }
  .hero-row { gap: 24px; }
  .cats { grid-template-columns: minmax(0, 1fr); }
  .cat { display: grid; grid-template-columns: 40% 1fr; align-items: center; gap: 4px 14px; padding: 10px 14px 10px 10px; }
  .cat-name { font-size: clamp(1.5rem, 6.4vw, 2.2rem); overflow-wrap: anywhere; }
  .cat-img { grid-row: 1 / span 4; align-self: start; margin: 0; }
  .cat-name, .cat-use, .cat-prices, .cat-go { grid-column: 2; }
  .cat-name, .cat-meta { padding-inline: 0; }
  .cat .cat-prices { align-self: start; margin-top: 6px; padding: 0; font-size: .92rem; }
  .cat-meta { flex-direction: column; gap: 2px; margin-top: 0; align-self: start; }
  .cat-name { align-self: start; }
  .layer-legend { grid-template-columns: minmax(0, 1fr); }
  .care-label { margin: 0 auto; }
  .toppers { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foam .block { order: -1; max-height: 240px; }
  .pro { grid-template-columns: minmax(0, 1fr); }
  .pro-row .drawing { max-width: 320px; }
  .story-photo img { height: clamp(220px, 56vw, 380px); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 600px) {
  body { font-size: 1rem; }
  :root { --header: 64px; }
  .topbar p, .tb-long { display: none; }
  .tb-short { display: inline; }
  .topbar-row { justify-content: center; text-align: center; }
  .logo svg { width: 106px; }
  .icon-btn[aria-label="Haku"] { display: none; }
  .header-row { gap: 12px; }
  .shop-btn { min-height: 40px; margin-left: 8px; padding: 0 12px; font-size: .9rem; font-stretch: 85%; }
  .menu-btn { margin-left: 6px; }
  .head { grid-template-columns: minmax(0, 1fr); }
  .head > :last-child:not(p):not(h2) { justify-self: start; }
  .picks { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .model { grid-template-columns: minmax(0, 1fr) auto; }
  .sizes button { font-size: .875rem; }
  .toppers { grid-template-columns: minmax(0, 1fr); gap: 24px; }
  .toppers .topper { display: grid; grid-template-columns: 104px minmax(0, 1fr); column-gap: 14px; align-content: start; }
  .toppers .topper > * { grid-column: 2; }
  .toppers .topper .t-img { grid-column: 1; grid-row: 1 / span 5; align-self: start; }
  .toppers .topper h3 { margin-top: 0; }
  .toppers .t-desc { display: none; }
  .footer-grid { grid-template-columns: minmax(0, 1fr); }
}

/* ------------------------------------------------ käyttötarkoitus ja hinnan koko näkyviin */
.cat-use { display: block; margin-top: 8px; padding-inline: 14px; font-size: 1.05rem; font-weight: 600; line-height: 1.35; }
.cat .cat-meta { display: block; margin-top: 10px; }
.cat-meta b { margin-right: 8px; font-size: 1.15rem; }
.cat-prices { display: grid; gap: 2px; margin-top: auto; padding: 10px 14px 0; font-size: .98rem; }
.cat-prices b { margin-right: 8px; font-size: 1.15rem; }
.model-price { text-align: right; }
.model-price small, .price small { display: block; font-size: .9375rem; font-weight: 500; color: var(--text-2); }
.bed-note { margin: 0; font-size: .9rem; color: var(--text-2); }
.t-name { margin: 16px 0 2px; font-size: .9rem; font-weight: 700; color: var(--accent-ink); }

/* ------------------------------------------------ selkeämmät toiminnot */
.cat-go { align-self: flex-start; justify-self: start; margin: 12px 14px 0; font-weight: 700; }
.finder-clear { margin: 10px 0 0; padding: 0 0 2px; border: 0; font-size: .9rem; font-weight: 600; color: var(--accent-ink); cursor: pointer; }
.finder-clear[hidden] { display: none; }

/* ------------------------------------------------ kaupan yhteiset osat: murupolku, toimitusrivi, tuotesivun kokovalitsin */
.crumbs { margin: 0; padding-top: 20px; font-size: .875rem; color: var(--text-2); }
.ship-note { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: 0; font-size: .875rem; color: var(--text-2); }
.size-opt { display: grid; justify-items: center; gap: 6px; padding: 6px 4px 10px; border: 0; background: none; color: var(--ink); cursor: pointer; transition: box-shadow .2s; }
.size-opt svg { width: 56px; height: 52px; }
.size-opt rect { fill: var(--alt); stroke: var(--ink); stroke-width: 1.5; }
.size-opt strong { font-size: 1.3rem; font-weight: var(--w-label); font-stretch: 75%; }
.size-opt span { font-size: .85rem; color: var(--text-2); }
.size-opt:hover rect { stroke: var(--accent-ink); }
.size-opt[aria-pressed="true"] { box-shadow: inset 0 -3px 0 var(--accent); }
.size-opt[aria-pressed="true"] rect { fill: var(--accent); stroke-width: 2.5; }
.choice-pick { min-height: 44px; padding: 0 18px; border: 2px solid var(--ink); border-radius: 3px; background: #fff; font-weight: 700; cursor: pointer; }
/* Ostoskorin yhteenveto: tietokoneella oikealla, puhelimessa alapalkkina */
.summary { position: sticky; top: 96px; padding: 22px; border-radius: var(--r); background: var(--alt); }
.summary h2 { font-size: 1.6rem; margin-bottom: 14px; }
.sum-rows { display: grid; gap: 10px; margin: 0; }
.sum-rows div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
.sum-rows dt { font-size: .85rem; color: var(--text-2); }
.sum-rows dd { margin: 0; grid-column: 1; font-weight: 650; }
.sum-rows .s-price { grid-column: 2; grid-row: 1 / span 2; align-self: end; font-weight: 750; }
.sum-total { display: flex; justify-content: space-between; align-items: baseline; margin: 16px 0 4px; padding-top: 14px; box-shadow: 0 -2px 0 var(--ink); }
.sum-total strong { font-size: 2rem; font-weight: var(--w-num); font-stretch: 72%; }
.summary .ship-note { display: grid; gap: 2px; margin: 8px 0 16px; }
.btn--full { width: 100%; }
.btn:disabled { background: #b9b9b6; cursor: not-allowed; }

@media (max-width: 900px) {
  .cat-use { padding-inline: 0; margin-top: 4px; font-size: .95rem; }
  .cat-go { margin: 6px 0 0; }
  .summary { position: fixed; left: 0; right: 0; bottom: 0; top: auto; z-index: 50; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 4px 16px; padding: 12px var(--gutter); border-radius: 0; box-shadow: 0 -8px 24px rgb(0 0 0 / .14); }
  .summary h2, .summary .sum-rows, .summary .ship-note { display: none; }
  .summary .sum-total { display: grid; margin: 0; padding: 0; box-shadow: none; }
  .summary .sum-total span { font-size: .8rem; color: var(--text-2); }
  .summary .sum-total strong { font-size: 1.6rem; }
  .summary .btn { width: auto; }
}

/* ------------------------------------------------ sänkypolku (sangyt.html)
   Koko, malli, petauspatja ja yhteenveto. Vaihtoehdot ovat radiopainikkeita, ja valinta näkyy
   kuten muualla: sininen alleviivaus ja paksumpi teksti, korteissa lisäksi "Valittu". */
.page-intro { padding: 18px 0 clamp(24px, 3vw, 40px); }
.page-intro h1 { margin-bottom: 12px; }
.page-intro .lead { max-width: 60ch; margin: 0; color: var(--text-2); }
.path { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 3vw, 48px); align-items: start; padding-bottom: var(--sec); }
.path [hidden] { display: none; }
.steps ol { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px 20px; margin: 0 0 clamp(24px, 3vw, 36px); padding: 0; list-style: none; }
.steps li { display: grid; justify-items: start; align-content: start; gap: 2px; min-width: 0; }
.s-label { padding: 4px 0 6px; font-size: 1.15rem; font-weight: var(--w-label); font-stretch: 72%; text-transform: uppercase; line-height: 1.2; color: var(--text-2); }
.steps .is-current .s-label { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.steps .is-done .s-label { color: var(--ink); }
.s-value { max-width: 100%; font-size: .9375rem; line-height: 1.35; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.s-value:empty { display: none; }
.s-change { font-size: .9375rem; }
/* Muuta-linkkien ja tyhjennyksen kosketusalue on 44 px, vaikka viiva pysyy tekstin alla */
.s-change, .sl-change, .path-finder .finder-clear { position: relative; }
.s-change::before, .sl-change::before, .path-finder .finder-clear::before { content: ""; position: absolute; inset: -11px -6px; }
.s-short { display: none; }
.step[hidden] { display: none; }
.step h2 { width: fit-content; margin-bottom: 10px; font-size: var(--t-h3); line-height: 1; }
.step-intro { max-width: 60ch; margin: 0 0 22px; color: var(--text-2); }
.opts { min-width: 0; margin: 0; padding: 0; border: 0; }
.step-error { margin: 0; font-weight: 700; }
.step-error:not(:empty) { margin-top: 14px; }
.size-picks { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 8px; }
.size-pick { position: relative; display: grid; justify-items: center; align-content: start; gap: 2px; padding: 8px 4px 12px; text-align: center; cursor: pointer; font-variant-numeric: tabular-nums; }
.size-pick svg { width: 58px; height: 64px; margin-bottom: 8px; }
.size-pick rect, .sl-media rect { fill: var(--alt); stroke: var(--ink); stroke-width: 1.5; vector-effect: non-scaling-stroke; transition: fill .2s; }
.size-pick strong { font-size: 1.3rem; font-weight: var(--w-label); font-stretch: 75%; line-height: 1.15; white-space: nowrap; }
.sp-from { font-size: .9375rem; line-height: 1.35; color: var(--text-2); text-wrap: balance; }
.size-pick:hover rect { stroke: var(--accent-ink); }
.size-pick:has(:checked) { box-shadow: inset 0 -3px 0 var(--accent); }
.size-pick:has(:checked) strong { font-weight: 700; }
.size-pick:has(:checked) rect, .sl-media rect { fill: var(--accent); stroke: var(--accent); }
.size-pick:has(:focus-visible), .pick-card:has(:focus-visible), .tab-pick:has(:focus-visible) { outline: 2px solid var(--accent); outline-offset: 3px; }

.bed-fig { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); align-items: center; gap: 12px 32px; margin: 0 0 clamp(24px, 3vw, 36px); }
.bed-fig figcaption { display: grid; gap: 6px; }
.bed-fig-name { font-size: 1.15rem; font-weight: var(--w-label); font-stretch: 72%; text-transform: uppercase; }
.bed-fig .layer-legend { grid-template-columns: minmax(0, 1fr); margin: 0; }
.pick-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px 20px; }
.pick-cards--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pick-card { position: relative; display: flex; flex-direction: column; padding-bottom: 14px; cursor: pointer; }
.pc-img { display: block; aspect-ratio: 3 / 2; overflow: hidden; margin-bottom: 14px; border-radius: var(--r); background: var(--alt); }
/* Petauspatjat 2 × 2 rivikortteina: kuva vasemmalla, teksti ja hinta oikealla */
.pick-cards--2 .pick-card { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); grid-template-rows: auto 1fr; align-content: start; column-gap: 18px; }
.pick-cards--2 .pc-img { grid-row: 1 / span 2; margin: 0; aspect-ratio: 4 / 3; }
.pick-cards--2 .pc-name, .pick-cards--2 .pc-text { grid-column: 2; }
.pc-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.pick-card:hover .pc-img img { transform: scale(1.03); }
.pc-name { font-size: 1.35rem; font-weight: var(--w-head); font-stretch: 70%; text-transform: uppercase; line-height: 1.05; transition: color .2s; }
.pick-card:hover .pc-name { color: var(--accent-ink); }
.pc-text { display: flex; flex: 1; flex-direction: column; gap: 4px; margin-top: 6px; }
.pc-feel { font-weight: 600; line-height: 1.4; }
.pc-spec { font-size: .9375rem; color: var(--text-2); }
.pc-fit { margin-top: 4px; font-size: .9375rem; font-weight: 600; line-height: 1.45; }
.pc-fit[hidden] { display: none; }
.pc-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; }
.pc-price { display: grid; font-variant-numeric: tabular-nums; }
.pc-price b { font-size: 1.35rem; font-weight: var(--w-num); line-height: 1.2; }
.pc-price small { font-size: .9375rem; color: var(--text-2); }
.pc-picked { font-weight: 700; visibility: hidden; }
.pick-card:has(:checked) { box-shadow: inset 0 -3px 0 var(--accent); }
.pick-card:has(:checked) .pc-name { font-weight: var(--w-label); }
.pick-card:has(:checked) .pc-picked { visibility: visible; }

/* Kovuus ja muut lyhyet valinnat: alleviivatut välilehdet */
.firm-field { min-width: 0; margin: 28px 0 0; padding: 0; border: 0; }
.firm-field legend { margin-bottom: 4px; padding: 0; font-size: 1.15rem; font-weight: var(--w-label); font-stretch: 72%; text-transform: uppercase; }
.tab-picks { display: flex; flex-wrap: wrap; gap: 4px 28px; }
.tab-pick { position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 2px; font-size: 1.1rem; font-weight: 600; cursor: pointer; }
.tab-pick:hover { color: var(--accent-ink); }
.tab-pick:has(:checked) { color: var(--ink); font-weight: 700; box-shadow: inset 0 -3px 0 var(--accent); }
.pick-none { margin-top: 22px; }
.firm-help { margin-top: 10px; font-size: .9375rem; color: var(--text-2); }
.firm-help > p, .weights, .weights > summary { display: inline; }
.firm-help .link { color: var(--ink); }
.weights > summary { cursor: pointer; list-style: none; }
.weights > summary::-webkit-details-marker { display: none; }
.weights-body { display: grid; gap: 22px; max-width: 46rem; margin: 18px 0 6px; color: var(--ink); }
.weights-body p { margin: 0; }
.source { font-size: .9375rem; color: var(--text-2); }
.more { margin-top: 32px; border-block: 1.5px solid var(--line); }
.more > summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 10px 2px; font-size: 1.12rem; font-weight: 700; cursor: pointer; list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::after {
  content: ""; flex: none; width: 18px; height: 18px;
  background: linear-gradient(currentColor, currentColor) center / 18px 2.5px no-repeat, linear-gradient(currentColor, currentColor) center / 2.5px 18px no-repeat;
  color: var(--accent); transition: transform .3s var(--ease);
}
.more > summary:hover { color: var(--accent-ink); }
.more[open] > summary::after { transform: rotate(45deg); }
.table-wrap { overflow-x: auto; padding-bottom: 20px; }
.data-table { width: 100%; border-collapse: collapse; font-size: .9375rem; line-height: 1.45; font-variant-numeric: tabular-nums; }
.data-table caption { padding-bottom: 8px; text-align: left; font-weight: 700; }
.data-table th, .data-table td { padding: 9px 14px 9px 0; border-bottom: 1.5px solid var(--line); text-align: left; vertical-align: top; }
.data-table th { font-weight: 700; }
.data-table thead th { font-weight: var(--w-label); }
.compare-table caption { caption-side: bottom; padding: 10px 0 0; font-weight: 400; color: var(--text-2); }
.compare-table tbody tr:last-child td { font-weight: var(--w-num); white-space: nowrap; }

.path-finder { margin-bottom: clamp(28px, 3vw, 40px); }
.sum-lines { display: grid; }
.sum-line { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto auto; align-items: center; gap: 8px 24px; padding: 16px 0; border-bottom: 1.5px solid var(--line); }
.sum-line:first-child { border-top: 1.5px solid var(--line); }
.sl-media { display: grid; place-items: center; width: 112px; aspect-ratio: 4 / 3; overflow: hidden; border-radius: 3px; background: var(--alt); }
.sl-media:empty { background: none; }
.sl-media img { width: 100%; height: 100%; object-fit: cover; }
.sl-media svg { width: 40px; height: 44px; }
.sl-name { margin: 0; font-size: 1.35rem; font-weight: var(--w-label); font-stretch: 72%; text-transform: uppercase; line-height: 1.1; }
.sl-dims { text-transform: none; font-variant-numeric: tabular-nums; }
.sl-meta { margin: 2px 0 0; font-size: .9375rem; color: var(--text-2); }
.sl-price { font-size: 1.2rem; font-weight: var(--w-num); font-variant-numeric: tabular-nums; white-space: nowrap; text-align: right; }
.sl-change { font-size: .9375rem; }
.order-flow { margin-top: 32px; }
.order-flow h3 { font-size: 1.15rem; font-weight: var(--w-label); font-stretch: 72%; text-transform: uppercase; letter-spacing: 0; }
.order-flow ul { display: grid; gap: 4px; margin: 10px 0 0; padding: 0; list-style: none; }
.path-help { margin: 24px 0 0; }
.step-next { margin-top: 32px; }

.path-panel { position: sticky; top: calc(var(--header) + 24px); padding: 24px; border-radius: var(--r); background: var(--alt); }
.path-panel h2 { margin-bottom: 14px; font-size: var(--t-h3); line-height: 1; }
.pp-from { margin: 0; }
.pp-from b { display: block; font-size: 2rem; font-weight: var(--w-num); font-stretch: 72%; line-height: 1.15; font-variant-numeric: tabular-nums; }
.pp-rows { display: grid; gap: 12px; margin: 0; }
.pp-rows div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0 12px; }
.pp-rows dt { grid-column: 1 / -1; font-size: .9375rem; color: var(--text-2); }
.pp-rows dd { margin: 0; font-weight: 600; }
.pp-rows .pp-price { font-weight: var(--w-num); font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; }
.path-panel .sum-total strong { font-variant-numeric: tabular-nums; }
.pp-note { margin: 6px 0 0; font-size: .9375rem; color: var(--text-2); }
.pp-help { margin: 16px 0 0; }
.path-panel .btn { margin-top: 18px; }
.path-bar { display: none; }

@media (max-width: 900px) {
  .path { grid-template-columns: minmax(0, 1fr); }
  .path-panel, .step-next { display: none; }
  /* Puhelimen alapalkki: summa ja Jatka tai Lisää ostoskoriin */
  .path-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 50; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom)); background: var(--alt); transition: transform .25s var(--ease); }
  .path-bar.is-off { transform: translateY(110%); }
  .pb-sum { display: grid; margin: 0; line-height: 1.2; font-variant-numeric: tabular-nums; }
  .pb-sum span { font-size: .9375rem; color: var(--text-2); }
  .pb-sum strong { font-size: 1.6rem; font-weight: var(--w-num); font-stretch: 72%; white-space: nowrap; }
  .pb-sum small { font-size: .9375rem; font-weight: 400; font-stretch: 100%; color: var(--text-2); }
  .path-bar .btn { flex: none; }
  html:has(.path-bar) { scroll-padding-bottom: 96px; }
  body:has(.path-bar) .footer-copy { padding-bottom: 88px; }
}
@media (max-width: 600px) {
  .page-intro .lead { font-size: 1.0625rem; }
  .steps ol { gap: 6px 10px; }
  .s-label { font-size: 1rem; }
  .s-long { display: none; }
  .s-short { display: inline; }
  .size-picks { grid-template-columns: repeat(3, minmax(0, 1fr)); row-gap: 10px; }
  .size-pick svg { width: 44px; height: 48px; margin-bottom: 4px; }
  .size-pick strong { font-size: 1.15rem; }
  .pick-cards, .pick-cards--2 { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .pick-card, .pick-cards--2 .pick-card { display: grid; grid-template-columns: 112px minmax(0, 1fr); grid-template-rows: auto 1fr; align-content: start; column-gap: 14px; }
  .pick-card .pc-img, .pick-cards--2 .pc-img { grid-row: 1 / span 2; margin: 0; aspect-ratio: 4 / 3; }
  .pick-card .pc-name, .pick-card .pc-text { grid-column: 2; }
  .bed-fig { grid-template-columns: minmax(0, 1fr); }
  .bed-fig .layer-legend { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .bed-fig .layer-legend li { padding: 4px; }
  .bed-fig .layer-legend span:last-child { display: none; }
  .compare-table { font-size: .875rem; }
  .sum-line { grid-template-columns: 72px minmax(0, 1fr) auto; gap: 4px 14px; }
  .sl-media { grid-row: span 2; width: 72px; }
  .sl-change { grid-column: 3; justify-self: end; }
  .data-table th, .data-table td { padding-right: 10px; }
}

/* ------------------------------------------------ verkkokauppa: putiikki */
.shop-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px 40px; padding: 18px 0 8px; }
.shop-intro { max-width: 62ch; margin: 14px 0 0; color: var(--text-2); }
.shop-intro .link { color: var(--ink); white-space: normal; }
.filters { display: flex; flex-wrap: wrap; gap: 4px 26px; margin: 28px 0 32px; padding: 0; list-style: none; }
.filters button { padding: 6px 0; border: 0; background: none; font-size: 1.25rem; font-weight: var(--w-label); font-stretch: 72%; text-transform: uppercase; color: var(--text-2); cursor: pointer; box-shadow: inset 0 -3px 0 transparent; transition: color .2s, box-shadow .2s; }
.filters button:hover { color: var(--ink); }
.filters button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.shop-count { margin: 0; color: var(--text-2); font-size: .95rem; }
.shop-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px 24px; }
.shop-more { display: flex; flex-wrap: wrap; gap: 16px; margin-top: 56px; }
.shop-more a { flex: 1 1 280px; display: grid; gap: 4px; padding: 22px 24px; border-radius: var(--r); background: var(--alt); text-decoration: none; }
.shop-more strong { font-size: 1.5rem; font-weight: var(--w-head); font-stretch: 72%; text-transform: uppercase; }
.shop-more span { justify-self: start; font-weight: 600; }

/* ------------------------------------------------ verkkokauppa: tuotesivu */
.pdp { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(28px, 4vw, 64px); align-items: start; padding: 18px 0 clamp(48px, 6vw, 80px); }
.pdp-gallery { position: sticky; top: 96px; display: grid; gap: 10px; }
.pdp-main { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); background: var(--alt); }
.pdp-thumbs { display: flex; gap: 10px; }
.pdp-thumbs button { width: 96px; padding: 0; border: 0; background: none; cursor: pointer; opacity: .55; box-shadow: inset 0 -3px 0 transparent; transition: opacity .2s; }
.pdp-thumbs button[aria-pressed="true"] { opacity: 1; }
.pdp-thumbs img { width: 96px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.pdp-gallery .block { padding: 12px; border-radius: var(--r); background: var(--alt); }
.pdp-thumb-wide { width: 100%; aspect-ratio: 16 / 7; object-fit: cover; object-position: 50% 38%; border-radius: var(--r); }
.pdp-buy h1 { font-size: var(--t-h2); }
.pdp-buy .t-name { margin: 0 0 6px; }
.pdp-feel { margin: 12px 0 6px; font-size: 1.35rem; font-weight: 700; }
.pdp-diff { color: var(--text-2); }
.pdp-buy .field { margin-top: 22px; }
.pdp-sizes { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 4px; }
.pdp-sizes .size-opt svg { width: 46px; height: 44px; }
.pdp-sizes .size-opt strong { font-size: 1.1rem; }
.firm-tabs { display: flex; gap: 22px; }
.firm-tabs button { padding: 6px 0; border: 0; background: none; font-size: 1.1rem; font-weight: 700; color: var(--text-2); cursor: pointer; box-shadow: inset 0 -3px 0 transparent; }
.firm-tabs button[aria-pressed="true"] { color: var(--ink); box-shadow: inset 0 -3px 0 var(--accent); }
.pdp-price { display: grid; margin-top: 26px; }
.pdp-price .amount { font-size: clamp(2.4rem, 3.6vw, 3.2rem); font-weight: var(--w-num); font-stretch: 72%; line-height: 1; }
.pdp-price .note { margin-top: 4px; font-size: .9rem; color: var(--text-2); }
.pdp-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; margin-top: 18px; }
.pdp-actions .btn { flex: 1 1 220px; }
.qty { display: inline-flex; align-items: center; gap: 4px; }
.qty button { width: 36px; height: 36px; padding: 0; border: 0; background: none; font-size: 1.5rem; font-weight: 500; line-height: 1; cursor: pointer; color: var(--ink); }
.qty button:hover { color: var(--accent-ink); }
.qty output { min-width: 2ch; text-align: center; font-size: 1.15rem; font-weight: var(--w-num); }
.pdp-added { min-height: 1.5em; margin: 12px 0 0; font-weight: 600; }
.pdp-facts { list-style: none; display: grid; gap: 6px; margin: 20px 0 0; padding: 0; font-size: .95rem; color: var(--text-2); }
.pdp-more { max-width: 1000px; margin-bottom: clamp(40px, 5vw, 72px); }
.pdp-layers { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 28px; align-items: center; padding-bottom: 24px; }
.pdp-more .price-table { max-width: 420px; margin: -4px 0 22px; }
.spec-list { display: grid; grid-template-columns: auto 1fr; gap: 6px 18px; margin: 0 0 22px; }
.spec-list dt { color: var(--text-2); }
.spec-list dd { margin: 0; font-weight: 600; }
.pdp-cross { padding: clamp(40px, 5vw, 64px) 0; }
.pdp-cross h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); margin-bottom: 20px; }
.pdp-cross > p { max-width: 60ch; color: var(--text-2); }
.mini-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; }
.mini-card { display: grid; gap: 2px; align-content: start; color: var(--ink); text-decoration: none; }
.mini-card img { width: 100%; aspect-ratio: 4 / 3; object-fit: cover; border-radius: var(--r); margin-bottom: 8px; }
.mini-card strong { justify-self: start; font-size: 1.15rem; font-weight: var(--w-label); font-stretch: 75%; text-transform: uppercase; }
.mini-card > span:last-of-type { color: var(--text-2); font-size: .9rem; }
.mini-card .t-name { margin: 0; }
.mini-card .choice-pick { justify-self: start; margin-top: 8px; }

/* ------------------------------------------------ verkkokauppa: ostoskori ja kassa */
.cart { display: grid; grid-template-columns: minmax(0, 8fr) minmax(0, 4fr); gap: clamp(24px, 3vw, 48px); align-items: start; padding: 18px 0 clamp(40px, 5vw, 72px); }
.cart-line { display: grid; grid-template-columns: 112px minmax(0, 1fr) auto auto auto; align-items: center; gap: 12px 24px; padding: 18px 0; border-bottom: 1.5px solid var(--line); }
.cart-line:first-child { border-top: 1.5px solid var(--line); }
.cart-line img { width: 112px; aspect-ratio: 4 / 3; object-fit: cover; border-radius: 3px; }
.cl-info p { margin: 2px 0 0; font-size: .92rem; color: var(--text-2); }
.cl-name { display: block; width: fit-content; line-height: 1.1; font-size: 1.35rem; font-weight: var(--w-label); font-stretch: 72%; text-transform: uppercase; }
.cl-total { min-width: 90px; text-align: right; font-size: 1.2rem; font-weight: var(--w-num); font-stretch: 85%; }
.cl-remove { padding: 0 0 2px; border: 0; font-size: .9rem; color: var(--text-2); cursor: pointer; }
.cl-remove:hover { color: var(--ink); }
.cart-empty { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 24px; padding: 32px 0; }
.cart-empty p { flex-basis: 100%; margin: 0; font-size: 1.2rem; }
.cart-summary[hidden] { display: none; }
.cart-summary .sum-total { margin-top: 8px; }
.cart-summary .btn { margin-top: 14px; }
.cart-continue { display: inline-block; margin-top: 14px; }
.cart-suggest { padding-top: 40px; }
.cart-suggest h2 { font-size: clamp(1.8rem, 2.6vw, 2.5rem); }
.cart-suggest > p { color: var(--text-2); margin: 8px 0 20px; }
.co { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(24px, 4vw, 64px); align-items: start; padding: 18px 0 clamp(40px, 5vw, 72px); }
.co-form { display: grid; gap: 34px; }
.co-form fieldset { display: grid; gap: 14px; margin: 0; padding: 0; border: 0; min-width: 0; }
.co-form legend { margin-bottom: 12px; padding: 0; font-size: 1.6rem; font-weight: var(--w-head); font-stretch: 72%; text-transform: uppercase; }
.co-form label { display: grid; gap: 6px; font-weight: 600; font-size: .95rem; }
.co-form input[type="text"], .co-form input[type="email"], .co-form input[type="tel"], .co-form textarea { width: 100%; padding: 12px 14px; border: 2px solid var(--line); border-radius: 3px; background: #fff; font: inherit; font-weight: 400; }
.co-form input:focus, .co-form textarea:focus { outline: none; border-color: var(--ink); }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.form-row--zip { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); }
.opts { display: grid; gap: 4px; }
.opt { display: flex !important; align-items: center; gap: 14px; padding: 10px 0; font-weight: 600 !important; cursor: pointer; }
.opt input { width: 20px; height: 20px; margin: 0; accent-color: var(--ink); }
.opt img { order: 2; width: 92px; height: 34px; margin-left: auto; object-fit: contain; object-position: right center; }
.opt small { display: block; font-weight: 500; color: var(--text-2); }
.co-note { margin: 0; font-size: .9rem; color: var(--text-2); }
.co-terms { display: flex !important; align-items: flex-start; gap: 12px; font-weight: 500 !important; }
.co-terms input { width: 20px; height: 20px; margin: 2px 0 0; accent-color: var(--ink); }
.co-terms a { font-weight: 700; }
.co-summary { position: sticky; top: 96px; padding: 24px; border-radius: var(--r); background: var(--alt); }
.co-summary h2 { font-size: 1.6rem; margin-bottom: 12px; }
.co-line { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1.5px solid var(--line); }
.co-line small { display: block; font-size: .85rem; color: var(--text-2); }
.co-line > span:last-child { font-weight: 700; white-space: nowrap; }
.co-status { min-height: 1.5em; margin: 0; font-weight: 600; }

@media (max-width: 1180px) {
  .shop-grid, .mini-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .pdp, .cart, .co, .pdp-layers { grid-template-columns: minmax(0, 1fr); }
  .pdp-gallery, .co-summary { position: static; }
  .cart-line { grid-template-columns: 88px minmax(0, 1fr) auto; gap: 8px 16px; }
  .cart-line img { width: 88px; grid-row: span 2; }
  .cart-line .qty { grid-column: 2; }
  .cl-total { grid-column: 3; grid-row: 1; }
  .cl-remove { grid-column: 3; justify-self: end; }
  .cart { padding-bottom: 120px; }
  .cart-summary .btn { margin-top: 0; }
  .cart-summary .cart-continue { display: none; }
  body:has(.summary:not([hidden])) .footer-copy { padding-bottom: 88px; }
}
@media (max-width: 600px) {
  .shop-grid { grid-template-columns: minmax(0, 1fr); }
  .pdp-sizes { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .form-row, .form-row--zip { grid-template-columns: minmax(0, 1fr); }
  .filters { gap: 4px 18px; }
}

/* Pienimmillä puhelimilla header mahtuu yhdelle riville ja pitkät otsikkosanat ruutuun */
@media (max-width: 374px) {
  h2 { font-size: 2.1rem; }
  .header-row { gap: 6px; }
  .logo svg { width: 80px; }
  .menu-btn { margin-left: 0; }
  .shop-btn { margin-left: 0; padding: 0 10px; font-size: .875rem; }
  .pdp-buy h1 { font-size: 2.2rem; }
  .s-label { font-size: .875rem; }
  .steps ol { column-gap: 6px; }
  .data-table th, .data-table td { padding-right: 6px; }
}

@media (forced-colors: active) {
  [aria-pressed="true"], [aria-selected="true"], .nav a[aria-current="page"], .steps .is-current .s-label,
  .size-pick:has(:checked), .pick-card:has(:checked), .tab-pick:has(:checked) { outline: 2px solid Highlight; outline-offset: 2px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: .01ms !important; animation-duration: .01ms !important; animation-delay: 0s !important; }
}
