/* ============================================================
   MILENIA SKIN — design system
   Nordic / scandinavian / apple-clean skincare.
   Warm white paper, blush pink accents, brass micro-accent.
   Type: Fraunces (display) + Instrument Sans (UI/body).
   ============================================================ */

:root {
  --paper: #FAF7F5;
  --white: #FFFFFF;
  --ink: #1C1713;
  --ink-60: #6F665E;
  --ink-40: #A39A91;
  --blush: #F6E4E7;
  --blush-soft: #FBF1F2;
  --blush-deep: #EFD3D8;
  --rose: #C4808F;
  --rose-deep: #A55D6E;
  --gold: #B7965E;
  --line: rgba(28, 23, 19, 0.10);
  --line-soft: rgba(28, 23, 19, 0.06);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Instrument Sans", -apple-system, "Helvetica Neue", sans-serif;

  --r-sm: 14px;
  --r-md: 22px;
  --r-lg: 32px;

  --pad: clamp(20px, 4.5vw, 56px);
  --section: clamp(88px, 12vw, 160px);

  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }

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

/* Ankkurihypyt laskeutuvat sticky-headerin alapuolelle */
[id] { scroll-margin-top: 110px; }

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

/* Film grain — barely there, keeps large white fields alive */
body::after {
  content: "";
  position: fixed;
  inset: 0;
  z-index: 9999;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--blush-deep); color: var(--ink); }

img { max-width: 100%; display: block; }
img[hidden] { display: none; }

a { color: inherit; text-decoration: none; }

/* Pitkät suomen yhdyssanat ja sähköpostiosoite eivät mahdu kapeimmille
   puhelimille ja työnsivät sivun vaakavieritykseen — sallitaan katkaisu */
h1, h2, h3, h4, p, li, a, blockquote, summary, figcaption, cite {
  overflow-wrap: break-word;
}

/* Vain ruudunlukijalle — visuaalisesti piilossa mutta luettavissa */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.container {
  max-width: 1240px;
  margin-inline: auto;
  padding-inline: var(--pad);
}

/* ---------- Typography ---------- */

h1, h2, h3, .display {
  font-family: var(--font-display);
  font-weight: 340;
  line-height: 1.04;
  letter-spacing: -0.015em;
  font-variation-settings: "opsz" 100;
}

.h-hero {
  font-size: clamp(3.1rem, 8.4vw, 7.4rem);
}
/* Pidempi hero-otsikko — pienempi koko + tasapainoinen rivitys */
.h-hero-long {
  font-size: clamp(2.4rem, 5.8vw, 4.6rem);
  text-wrap: balance;
  max-width: 13ch;
}

.h-section {
  font-size: clamp(2.1rem, 4.6vw, 3.9rem);
  line-height: 1.06;
}

.h-card {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.35rem, 2vw, 1.7rem);
  line-height: 1.15;
}

em, .accent-i {
  font-style: italic;
  font-weight: 380;
  color: var(--rose-deep);
}

.eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--rose-deep);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px;
  height: 1px;
  background: var(--rose);
}

.lead {
  font-size: clamp(1.1rem, 1.6vw, 1.3rem);
  line-height: 1.6;
  color: var(--ink-60);
  max-width: 34em;
}

.muted { color: var(--ink-60); }
.small { font-size: 0.9rem; }

/* ---------- Buttons & chips ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-family: var(--font-body);
  font-size: 0.98rem;
  font-weight: 550;
  padding: 17px 32px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.45s var(--ease), box-shadow 0.45s var(--ease),
              background 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink);
  color: var(--white);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -12px rgba(28, 23, 19, 0.45);
  background: #2B241E;
}
.btn-ghost {
  background: transparent;
  color: var(--ink);
  border-color: var(--line);
}
.btn-ghost:hover {
  border-color: var(--ink);
  transform: translateY(-2px);
}
.btn-blush {
  background: var(--white);
  color: var(--ink);
}
.btn-blush:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 34px -14px rgba(165, 93, 110, 0.5);
}
.btn .arr { transition: transform 0.35s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }

.chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.82rem;
  font-weight: 550;
  letter-spacing: 0.02em;
  padding: 9px 16px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--line-soft);
  box-shadow: 0 6px 22px -12px rgba(28, 23, 19, 0.22);
}
.chip::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--rose);
}

/* ---------- Header ---------- */

.topbar {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.85);
  font-size: 0.78rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-align: center;
  padding: 9px var(--pad);
  font-weight: 500;
}
.topbar b { color: var(--white); font-weight: 600; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: color-mix(in srgb, var(--paper) 82%, transparent);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s ease, background 0.3s ease;
}
.site-header.scrolled {
  border-bottom-color: var(--line-soft);
  background: color-mix(in srgb, var(--paper) 92%, transparent);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-block: 18px;
}
/* Alkuperäinen brändilogo: MILENIASKIN — geometrinen sans kuten
   tuote-etiketissä. MILENIA lihavana, SKIN kevyenä, kaikki versaalilla. */
.logo {
  font-family: "Poppins", var(--font-body);
  font-weight: 600;
  font-size: 1.08rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}
.logo span { font-weight: 300; }
.nav-links {
  display: flex;
  gap: clamp(18px, 3vw, 38px);
  list-style: none;
}
.nav-links a {
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--ink-60);
  transition: color 0.25s ease;
  position: relative;
}
.nav-links a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -5px;
  width: 100%;
  height: 1px;
  background: var(--rose-deep);
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.4s var(--ease);
}
.nav-links a:hover { color: var(--ink); }
.nav-links a:hover::after { transform: scaleX(1); transform-origin: left; }
.nav-cta { padding: 12px 24px; font-size: 0.9rem; }

/* ---------- Hero (full-bleed bg image) ---------- */

.hero-full {
  position: relative;
  display: flex;
  align-items: center;
  min-height: clamp(560px, 86vh, 880px);
  padding-block: clamp(48px, 7vh, 96px);
  overflow: hidden;
}
.hero-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(52% 46% at 82% 24%, var(--blush) 0%, transparent 70%),
    radial-gradient(40% 38% at 8% 88%, var(--blush-soft) 0%, transparent 70%),
    var(--paper);
}
.hero-bg-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 72% center;
}
.hero-scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg,
      color-mix(in srgb, var(--paper) 90%, transparent) 0%,
      color-mix(in srgb, var(--paper) 58%, transparent) 36%,
      transparent 64%),
    linear-gradient(0deg,
      color-mix(in srgb, var(--paper) 70%, transparent) 0%,
      transparent 24%);
}
.hero-inner { width: 100%; }
.hero-copy { max-width: 640px; }

/* Pystynäkymissä (puhelin, pysty tabletti) käytetään omaa pystykuvaa
   assets/hero-mobile.jpg, jossa tyhjä tila on kuvan yläosassa: teksti
   nostetaan ylös ja scrim kääntyy ylhäältä alas, jolloin tuoteasetelma jää
   näkyviin alareunaan. Ehto on sama kuin index.html:n <source media>. */
@media (max-aspect-ratio: 1/1) {
  .hero-full {
    min-height: min(92vh, 820px);
    align-items: flex-start;
    padding-block: 34px 48px;
  }
  .hero-bg-img { object-position: center center; }
  /* Verho pysyy vahvana koko tekstipalstan matkan ja aukeaa vasta alaosassa,
     jossa tuoteasetelma saa näkyä */
  .hero-scrim {
    background:
      linear-gradient(180deg,
        color-mix(in srgb, var(--paper) 92%, transparent) 0%,
        color-mix(in srgb, var(--paper) 78%, transparent) 44%,
        color-mix(in srgb, var(--paper) 42%, transparent) 70%,
        transparent 92%);
  }
  /* Tiiviimpi pystyrytmi, jotta napit eivät valu tuotteen päälle */
  .hero-copy .eyebrow { margin-bottom: 18px; }
  .hero-copy h1 { margin-bottom: 20px; }
  .hero-copy .lead { margin-bottom: 26px; }
  .hero-actions { margin-bottom: 24px; }
}
.hero-copy .eyebrow { margin-bottom: 26px; }
.hero-copy h1 { margin-bottom: 30px; }
.hero-copy .lead { margin-bottom: 40px; }
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  align-items: center;
  margin-bottom: 34px;
}
.hero-note {
  font-size: 0.85rem;
  color: var(--ink-60);
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
}
.hero-note span { display: inline-flex; align-items: center; gap: 7px; }
.hero-note svg { width: 14px; height: 14px; stroke: var(--gold); }

/* Orchestrated hero reveal — piilotus vain kun JS on varmasti käytössä
   (html.js lisätään inline-skriptillä <head>issa; ilman JS:ää kaikki näkyy) */
.js [data-stagger] > * {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.loaded [data-stagger] > * { opacity: 1; transform: none; }
.loaded [data-stagger] > *:nth-child(1) { transition-delay: 0.05s; }
.loaded [data-stagger] > *:nth-child(2) { transition-delay: 0.16s; }
.loaded [data-stagger] > *:nth-child(3) { transition-delay: 0.27s; }
.loaded [data-stagger] > *:nth-child(4) { transition-delay: 0.38s; }
.loaded [data-stagger] > *:nth-child(5) { transition-delay: 0.49s; }
.loaded [data-stagger] > *:nth-child(6) { transition-delay: 0.6s; }
.loaded [data-stagger] > *:nth-child(7) { transition-delay: 0.7s; }
.loaded [data-stagger] > *:nth-child(8) { transition-delay: 0.78s; }
.loaded [data-stagger] > *:nth-child(n+9) { transition-delay: 0.86s; }

/* ---------- Marquee ---------- */

.marquee {
  border-block: 1px solid var(--line-soft);
  background: var(--white);
  overflow: hidden;
  padding-block: 20px;
  display: flex;
  user-select: none;
}
.marquee-track {
  display: flex;
  gap: 0;
  flex-shrink: 0;
  min-width: 100%;
  animation: marquee 36s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-track span {
  font-family: var(--font-display);
  font-size: clamp(1rem, 1.6vw, 1.3rem);
  font-weight: 380;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
  padding-inline: 26px;
  color: var(--ink-60);
  display: inline-flex;
  align-items: center;
  gap: 52px;
}
.marquee-track span::after {
  content: "✦";
  font-size: 0.7em;
  color: var(--rose);
}
/* Kaksi identtistä raitaa vierekkäin ilman väliä — yhden raidan levyinen
   siirto (-100%) osuu tarkalleen seuraavan raidan alkuun, joten silmukka
   ei nytkähdä */
@keyframes marquee {
  to { transform: translateX(-100%); }
}

/* ---------- Ennen / jälkeen -slider ---------- */

.ba { background: var(--white); border-bottom: 1px solid var(--line-soft); }
.ba-grid {
  display: grid;
  grid-template-columns: 1.02fr 0.98fr;
  gap: clamp(36px, 5.5vw, 90px);
  align-items: center;
}
.ba-slider {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: var(--blush-soft);
  box-shadow: 0 40px 90px -40px rgba(165, 93, 110, 0.35);
}
.ba-slider:has(.ba-range:focus-visible) {
  outline: 2px solid var(--rose-deep);
  outline-offset: 4px;
}
.ba-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.ba-after-wrap {
  position: absolute;
  inset: 0;
  clip-path: inset(0 0 0 50%);
}
.ba-label {
  position: absolute;
  top: 16px;
  z-index: 3;
  font-size: 0.76rem;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 7px 14px;
  border-radius: 999px;
  pointer-events: none;
}
.ba-label-before {
  left: 16px;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(6px);
  color: var(--ink);
}
.ba-label-after {
  right: 16px;
  background: var(--ink);
  color: var(--white);
}
.ba-handle {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  z-index: 2;
  width: 2px;
  background: rgba(255, 255, 255, 0.92);
  transform: translateX(-50%);
  pointer-events: none;
  box-shadow: 0 0 18px rgba(28, 23, 19, 0.25);
}
.ba-knob {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 46px;
  height: 46px;
  border-radius: 50%;
  background: var(--white);
  box-shadow: 0 10px 30px -8px rgba(28, 23, 19, 0.4);
  display: grid;
  place-items: center;
}
.ba-knob svg { width: 18px; height: 18px; stroke: var(--ink); fill: none; }
.ba-range {
  position: absolute;
  inset: 0;
  z-index: 4;
  width: 100%;
  height: 100%;
  margin: 0;
  opacity: 0;
  cursor: ew-resize;
  -webkit-appearance: none;
  appearance: none;
}
.ba-side h3 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
  margin-bottom: 28px;
}
.ba-side .btn { margin-top: 36px; }

.check-list {
  list-style: none;
  display: grid;
  gap: 18px;
}
.check-list li {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 12px;
  align-items: start;
}
.check-list svg {
  width: 19px;
  height: 19px;
  stroke: var(--gold);
  fill: none;
  margin-top: 4px;
}
.check-list b { display: block; font-weight: 600; margin-bottom: 2px; }
.check-list li span { color: var(--ink-60); font-size: 0.95rem; line-height: 1.5; }

/* ---------- Sections ---------- */

section { padding-block: var(--section); }
section.tight { padding-block: calc(var(--section) * 0.6); }

.section-head {
  max-width: 720px;
  margin-bottom: clamp(44px, 6vw, 80px);
}
.section-head .eyebrow { margin-bottom: 22px; }
.section-head .lead { margin-top: 22px; }

/* Reveal on scroll — piilotus vain kun JS on käytössä */
.js .reveal {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 0.95s var(--ease), transform 0.95s var(--ease);
}
.reveal.in { opacity: 1; transform: none; }
.reveal[data-delay="1"] { transition-delay: 0.1s; }
.reveal[data-delay="2"] { transition-delay: 0.2s; }
.reveal[data-delay="3"] { transition-delay: 0.3s; }

/* ---------- Media & placeholders ---------- */

.media {
  position: relative;
  border-radius: var(--r-lg);
  overflow: hidden;
  background: linear-gradient(150deg, var(--blush-soft) 0%, var(--blush) 55%, var(--blush-deep) 100%);
}
.media img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
/* Slot label shows through while the generated image doesn't exist yet */
.media::before {
  content: attr(data-slot);
  position: absolute;
  inset: 0;
  display: grid;
  place-content: center;
  font-family: var(--font-display);
  font-style: italic;
  font-size: 1.05rem;
  letter-spacing: 0.14em;
  color: var(--rose-deep);
  opacity: 0.75;
}
.media::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 1px dashed color-mix(in srgb, var(--rose) 45%, transparent);
  border-radius: calc(var(--r-lg) - 12px);
}
.media:has(img:not([hidden]))::before,
.media:has(img:not([hidden]))::after { content: none; }

.ratio-45 { aspect-ratio: 4 / 5; }
.ratio-11 { aspect-ratio: 1 / 1; }
.ratio-32 { aspect-ratio: 3 / 2; }
.ratio-916 { aspect-ratio: 9 / 16; }

/* ---------- Editorial "what" section ---------- */

/* Kuvaton, keskitetty editorial-palsta */
.what-solo { max-width: 720px; margin-inline: auto; text-align: center; }
.what-solo .eyebrow { justify-content: center; margin-bottom: 22px; }
.what-solo p { margin-inline: auto; }
.what-solo .stat-row { justify-content: center; }
.what-copy h2 { margin-bottom: 28px; }
.what-copy p + p { margin-top: 18px; }
.what-copy p { color: var(--ink-60); max-width: 32em; }
.what-copy strong { color: var(--ink); font-weight: 600; }
.stat-row {
  display: flex;
  gap: clamp(28px, 4vw, 56px);
  margin-top: 44px;
  padding-top: 34px;
  border-top: 1px solid var(--line-soft);
}
.stat b {
  display: block;
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(1.9rem, 3vw, 2.6rem);
  line-height: 1;
  margin-bottom: 8px;
}
.stat b i { font-style: italic; color: var(--rose-deep); }
.stat span { font-size: 0.85rem; color: var(--ink-60); }

/* ---------- Benefits ---------- */

.benefits { background: var(--white); border-block: 1px solid var(--line-soft); }
.benefit-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  background: var(--line-soft);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  overflow: hidden;
}
.benefit {
  background: var(--white);
  padding: clamp(30px, 3.4vw, 48px);
  transition: background 0.4s ease;
  position: relative;
}
.benefit:hover { background: var(--blush-soft); }
.benefit .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 350;
  font-size: 1.05rem;
  color: var(--rose-deep);
  display: block;
  margin-bottom: 22px;
}
.benefit h3 { margin-bottom: 12px; }
.benefit p { color: var(--ink-60); font-size: 0.98rem; max-width: 30em; }

.benefits-flat {
  margin-top: clamp(40px, 5vw, 64px);
}

/* ---------- Ingredients ---------- */

.ing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.4vw, 28px);
}
.ing-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(28px, 3vw, 42px);
  transition: transform 0.5s var(--ease), box-shadow 0.5s var(--ease);
}
.ing-card:hover {
  transform: translateY(-6px);
  box-shadow: 0 26px 60px -30px rgba(165, 93, 110, 0.35);
}
.ing-card .glyph {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--blush);
  display: grid;
  place-items: center;
  margin-bottom: 24px;
}
.ing-card .glyph svg { width: 22px; height: 22px; stroke: var(--rose-deep); fill: none; stroke-width: 1.5; }
.ing-card h3 { margin-bottom: 6px; }
.ing-card .role {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--rose-deep);
  display: block;
  margin-bottom: 14px;
}
.ing-card p { color: var(--ink-60); font-size: 0.97rem; }

.inci {
  margin-top: clamp(36px, 5vw, 56px);
  padding: clamp(26px, 3vw, 40px);
  border-radius: var(--r-md);
  background: var(--white);
  border: 1px solid var(--line-soft);
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(20px, 4vw, 60px);
  align-items: center;
}
.inci .label {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
}
.inci p {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: clamp(1.02rem, 1.5vw, 1.2rem);
  line-height: 1.55;
  color: var(--ink-60);
}

/* Kevyt koostumus -highlight: nostaa esiin huokosia kuormittamattoman koostumuksen */
.ing-highlight {
  margin-top: clamp(28px, 4vw, 44px);
  padding: clamp(24px, 3.2vw, 38px) clamp(26px, 3.4vw, 44px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(130% 150% at 0% 0%, var(--blush) 0%, transparent 62%),
    var(--blush-soft);
  border: 1px solid var(--blush-deep);
  display: flex;
  align-items: center;
  gap: clamp(20px, 3vw, 34px);
}
.ing-highlight-glyph {
  flex: none;
  width: 62px;
  height: 62px;
  border-radius: 50%;
  background: var(--white);
  display: grid;
  place-items: center;
  box-shadow: 0 16px 34px -20px rgba(165, 93, 110, 0.55);
}
.ing-highlight-glyph svg { width: 27px; height: 27px; stroke: var(--rose-deep); fill: none; }
.ing-highlight .label {
  display: block;
  margin-bottom: 10px;
  color: var(--rose-deep);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.ing-highlight p {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.1rem, 1.9vw, 1.4rem);
  line-height: 1.42;
  color: var(--ink);
  max-width: 52ch;
}
.ing-highlight p strong { font-weight: 600; color: var(--rose-deep); }

@media (max-width: 640px) {
  .ing-highlight { flex-direction: column; text-align: center; gap: 16px; }
  .ing-highlight p { max-width: none; }
}

/* ---------- Steps / how to use ---------- */

.how { background: var(--ink); color: #F4EFEA; }
.how .eyebrow { color: var(--blush-deep); }
.how .eyebrow::before { background: var(--rose); }
.how .lead { color: rgba(244, 239, 234, 0.65); }
.how-grid {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.how-media { position: sticky; top: 110px; }
.step {
  display: grid;
  grid-template-columns: 84px 1fr;
  gap: clamp(16px, 2.6vw, 36px);
  padding-block: clamp(24px, 3vw, 36px);
  border-bottom: 1px solid rgba(244, 239, 234, 0.14);
  align-items: baseline;
}
.step:last-of-type { border-bottom: none; }
.step .num {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 330;
  font-size: clamp(2rem, 3.4vw, 3rem);
  line-height: 1;
  color: var(--rose);
}
.step h3 { margin-bottom: 8px; color: var(--white); font-weight: 400; }
.step p { color: rgba(244, 239, 234, 0.62); font-size: 0.98rem; max-width: 30em; }
.how-note {
  margin-top: 34px;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  padding: 14px 22px;
  border-radius: 999px;
  border: 1px solid rgba(244, 239, 234, 0.2);
  font-size: 0.9rem;
  color: rgba(244, 239, 234, 0.8);
}
.how-note b { color: var(--blush-deep); font-weight: 600; }

/* ---------- Arvostelut (marquee-raita) ---------- */

.reviews {
  background: linear-gradient(180deg, var(--paper) 0%, var(--blush-soft) 45%, var(--blush) 100%);
  border-radius: 0 0 clamp(20px, 3vw, 34px) clamp(20px, 3vw, 34px);
}
.reviews-head {
  max-width: 640px;
  margin-inline: auto;
  text-align: center;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.reviews-head h2 { margin-bottom: 20px; }
.reviews-head .lead { margin-inline: auto; }

/* Staattinen ruudukko — aidot palautteet ilman marqueeta ja tähtiä.
   Kortteja lisätään sitä mukaa kun palautetta kertyy. */
.review-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: clamp(18px, 2.2vw, 26px);
  align-items: start;
  margin-bottom: clamp(44px, 6vw, 72px);
}
.review-card {
  background: var(--white);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-lg);
  padding: clamp(26px, 2.6vw, 36px);
  box-shadow: 0 24px 60px -40px rgba(165, 93, 110, 0.4);
}
.review-card p {
  font-family: var(--font-display);
  font-weight: 380;
  font-size: 1.12rem;
  line-height: 1.5;
}

.reviews-foot {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 22px;
  text-align: center;
}
.tiktok-link {
  font-size: 0.9rem;
  font-weight: 550;
  /* Tummempi kuin --rose-deep: blush-taustalla rose-deep jää 4,0:1-kontrastiin
     eli alle WCAG AA -rajan. #8A4757 yltää n. 5,4:1. */
  color: #8A4757;
  /* Ei flexiä: kun teksti rivittyy kapealla näytöllä, nuoli seuraa viimeistä
     sanaa sen sijaan että ajautuisi omalle riville oikeaan laitaan */
  text-align: center;
  text-wrap: balance;
}
.tiktok-link:hover { color: var(--ink); }
.tiktok-link .arr { display: inline-block; margin-left: 6px; transition: transform 0.35s var(--ease); }
.tiktok-link:hover .arr { transform: translateX(4px); }

/* ---------- FAQ ---------- */

.faq-wrap {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: clamp(40px, 6vw, 100px);
  align-items: start;
}
.faq-item {
  border-bottom: 1px solid var(--line);
}
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  padding-block: 26px;
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.15rem, 1.8vw, 1.45rem);
  transition: color 0.25s ease;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--rose-deep); }
.faq-item summary .ic {
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 1px solid var(--line);
  display: grid;
  place-items: center;
  transition: transform 0.45s var(--ease), background 0.3s ease, border-color 0.3s ease;
}
.faq-item summary .ic::before {
  content: "+";
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 1.15rem;
  line-height: 1;
}
.faq-item[open] summary .ic {
  transform: rotate(45deg);
  background: var(--ink);
  border-color: var(--ink);
  color: var(--white);
}
.faq-item .faq-body {
  padding-bottom: 28px;
  color: var(--ink-60);
  max-width: 40em;
}

/* ---------- Final CTA ---------- */

.cta-final { padding-block: clamp(24px, 4vw, 60px) var(--section); }
.cta-panel {
  position: relative;
  border-radius: calc(var(--r-lg) + 8px);
  background:
    radial-gradient(70% 90% at 85% 10%, rgba(255, 255, 255, 0.55) 0%, transparent 60%),
    linear-gradient(140deg, var(--blush) 0%, var(--blush-deep) 100%);
  padding: clamp(56px, 8vw, 120px) clamp(28px, 6vw, 100px);
  text-align: center;
  overflow: hidden;
}
.cta-panel h2 { margin-bottom: 20px; }
/* Blush-paneelilla --rose-deep jää alle WCAG AA -kontrastin — sama tummempi
   sävy kuin .tiktok-link käyttää */
.cta-panel .lead { margin-inline: auto; margin-bottom: 40px; color: #8A4757; }
.cta-panel .price-line {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 2vw, 1.5rem);
  margin-bottom: 34px;
  color: var(--ink);
}
.cta-panel .price-line s { color: var(--rose-deep); opacity: 0.6; margin-right: 10px; }
.cta-actions { display: flex; justify-content: center; gap: 14px; flex-wrap: wrap; }
.cta-sub { margin-top: 26px; font-size: 0.85rem; color: #8A4757; }

/* ---------- Footer ---------- */

.site-footer {
  background: var(--white);
  border-top: 1px solid var(--line-soft);
  padding-block: clamp(48px, 6vw, 80px) 36px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1fr;
  gap: clamp(28px, 4vw, 60px);
  margin-bottom: clamp(40px, 5vw, 64px);
}
.footer-brand .logo { font-size: 1.2rem; display: inline-block; margin-bottom: 14px; }
.footer-brand p { color: var(--ink-60); font-size: 0.92rem; max-width: 24em; }
.footer-col h4 {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-60);
  margin-bottom: 18px;
}
.footer-col ul { list-style: none; display: grid; gap: 10px; }
.footer-col a {
  font-size: 0.94rem;
  color: var(--ink-60);
  transition: color 0.25s ease;
}
.footer-col a:hover { color: var(--rose-deep); }
.footer-bottom {
  border-top: 1px solid var(--line-soft);
  padding-top: 28px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  flex-wrap: wrap;
  font-size: 0.82rem;
  color: var(--ink-60);
}
.pay-badges { display: flex; gap: 8px; flex-wrap: wrap; }
.pay-badges span {
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  border: 1px solid var(--line-soft);
  border-radius: 6px;
  padding: 4px 9px;
  color: var(--ink-60);
  background: var(--paper);
}

/* ============================================================
   PRODUCT PAGE
   ============================================================ */

.crumbs {
  padding-block: 26px 0;
  font-size: 0.85rem;
  color: var(--ink-60);
}
.crumbs a { color: var(--ink-60); }
.crumbs a:hover { color: var(--rose-deep); }
.crumbs .sep { margin-inline: 8px; }

.pdp {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(36px, 5.5vw, 90px);
  padding-block: clamp(28px, 4vw, 56px) var(--section);
  align-items: start;
}

.pdp-gallery { position: sticky; top: 104px; }
.pdp-main { margin-bottom: 16px; }
.pdp-main .media { aspect-ratio: 4 / 5; }
.pdp-thumbs {
  display: flex;
  gap: 12px;
}
.pdp-thumbs .media {
  flex: 1;
  min-width: 0;
  aspect-ratio: 1;
  border-radius: var(--r-sm);
  cursor: pointer;
  border: 1px solid transparent;
  transition: border-color 0.25s ease, opacity 0.25s ease;
  opacity: 0.75;
}
.pdp-thumbs .media::before { font-size: 0.68rem; }
.pdp-thumbs .media::after { inset: 8px; border-radius: 8px; }
.pdp-thumbs .media.active,
.pdp-thumbs .media:hover { opacity: 1; border-color: var(--rose); }
.pdp-thumbs .media:focus-visible {
  opacity: 1;
  border-color: var(--rose);
  outline: 2px solid var(--rose-deep);
  outline-offset: 2px;
}

.pdp-info .eyebrow { margin-bottom: 18px; }
.pdp-info h1,
.pdp-info .pdp-title {
  font-size: clamp(2.4rem, 4.4vw, 3.8rem);
  margin-bottom: 14px;
}
.pdp-sub {
  color: var(--ink-60);
  max-width: 32em;
  margin-bottom: 16px;
}
.rating-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 20px;
}
.rating-row .rating-text {
  font-size: 0.87rem;
  color: var(--ink-60);
  text-decoration: underline;
  text-underline-offset: 3px;
  text-decoration-color: var(--line);
  transition: color 0.25s ease;
}
.rating-row:hover .rating-text { color: var(--rose-deep); }
.pdp-checks {
  list-style: none;
  display: grid;
  gap: 10px;
  margin-bottom: 32px;
}
.pdp-checks li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-size: 0.97rem;
  color: var(--ink-60);
}
.pdp-checks svg {
  width: 17px;
  height: 17px;
  stroke: var(--gold);
  fill: none;
  flex-shrink: 0;
  margin-top: 4px;
}
.pdp-price {
  display: flex;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 26px;
}
.pdp-price .now {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2rem);
  font-weight: 400;
}
.pdp-price .per { font-size: 0.85rem; color: var(--ink-60); }
.pdp-desc { color: var(--ink-60); margin-bottom: 28px; max-width: 36em; }
.pdp-chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px; }

/* ---------- Osta: määrä + kassanappi (cart permalink) ---------- */

.buy-row {
  display: flex;
  gap: 14px;
  align-items: stretch;
  margin-bottom: 22px;
}
.qty {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}
.qty button {
  width: 46px;
  height: 100%;
  min-height: 54px;
  border: none;
  background: none;
  font-family: var(--font-body);
  font-size: 1.2rem;
  cursor: pointer;
  color: var(--ink-60);
  transition: color 0.2s ease;
}
.qty button:hover { color: var(--ink); }
.qty output {
  min-width: 30px;
  text-align: center;
  font-weight: 600;
  font-size: 1rem;
}
.btn-buy { flex: 1; font-size: 1.02rem; }

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  padding: 18px 0;
  border-block: 1px solid var(--line-soft);
  margin-bottom: 30px;
}
.trust-row div {
  font-size: 0.82rem;
  color: var(--ink-60);
  display: flex;
  align-items: center;
  gap: 9px;
}
.trust-row svg { width: 17px; height: 17px; stroke: var(--gold); fill: none; stroke-width: 1.5; flex-shrink: 0; }

.pdp-acc .faq-item summary { font-size: 1.08rem; padding-block: 20px; }
.pdp-acc .faq-item .faq-body { font-size: 0.96rem; }
.pdp-acc .faq-item .faq-body ol { padding-left: 20px; display: grid; gap: 6px; }

/* ---------- Osta-sektio (etusivun upotettu PDP) ---------- */

/* Etusivun osta-sektio on heti marquee-raidan jälkeen — paperitausta erottaa
   sen valkoisesta raidasta ja seuraavasta valkoisesta ba-sektiosta */
.osta { background: var(--paper); }
.osta .pdp { padding-block: 0; }
.osta .pdp-gallery { top: 120px; }

/* Sticky mobile buy bar */
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 200;
  background: color-mix(in srgb, var(--white) 92%, transparent);
  backdrop-filter: blur(16px);
  border-top: 1px solid var(--line-soft);
  padding: 12px var(--pad);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  transform: translateY(110%);
  transition: transform 0.5s var(--ease);
}
.sticky-buy.show { transform: none; }
.sticky-buy .meta b { display: block; font-weight: 600; font-size: 0.95rem; }
.sticky-buy .meta span { font-size: 0.85rem; color: var(--ink-60); }
.sticky-buy .btn { padding: 13px 26px; }

/* ---------- Palautelomake (popup) ---------- */

.fb-modal {
  /* Sivuston `* { margin: 0 }` -reset nollaa dialogin UA-tyylin
     `margin: auto`in — palautetaan se, jotta popup keskittyy ruudulle */
  margin: auto;
  border: none;
  border-radius: var(--r-lg);
  padding: 0;
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  background: var(--paper);
  color: var(--ink);
  box-shadow: 0 40px 120px -30px rgba(28, 23, 19, 0.45);
}
.fb-modal::backdrop {
  background: rgba(28, 23, 19, 0.45);
  backdrop-filter: blur(4px);
}
.fb-form {
  position: relative;
  display: grid;
  gap: 16px;
  padding: clamp(28px, 5vw, 44px);
}
.fb-form h3 {
  font-family: var(--font-display);
  font-weight: 400;
  font-size: clamp(1.6rem, 3vw, 2.1rem);
}
.fb-sub { color: var(--ink-60); font-size: 0.95rem; max-width: 34em; }
.fb-close {
  position: absolute;
  top: 18px;
  right: 18px;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  font-size: 1.35rem;
  line-height: 1;
  color: var(--ink-60);
  cursor: pointer;
  transition: color 0.2s ease, border-color 0.2s ease, transform 0.3s var(--ease);
}
.fb-close:hover { color: var(--ink); border-color: var(--ink); transform: rotate(90deg); }
.fb-field { display: grid; gap: 7px; font-size: 0.9rem; font-weight: 550; }
.fb-field span i { font-style: normal; font-weight: 400; color: var(--ink-40); }
.fb-field input,
.fb-field textarea {
  font: inherit;
  font-weight: 400;
  padding: 13px 16px;
  border: 1px solid var(--line);
  border-radius: var(--r-sm);
  background: var(--white);
  color: var(--ink);
  resize: vertical;
  min-width: 0;
}
.fb-field input:focus-visible,
.fb-field textarea:focus-visible {
  outline: 2px solid var(--rose-deep);
  outline-offset: 1px;
}
.fb-submit { justify-self: start; }
.fb-status { font-size: 0.92rem; min-height: 1.3em; }
.fb-status.ok { color: var(--rose-deep); font-weight: 550; }
.fb-status.error { color: #A03B2E; }
.fb-status a { text-decoration: underline; text-underline-offset: 3px; }

/* Footerin "Anna palautetta" — nappi joka näyttää linkiltä */
.footer-link-btn {
  font: inherit;
  font-size: 0.94rem;
  color: var(--ink-60);
  background: none;
  border: none;
  padding: 0;
  cursor: pointer;
  text-align: left;
  transition: color 0.25s ease;
}
.footer-link-btn:hover { color: var(--rose-deep); }

/* ---------- Responsive ---------- */

@media (max-width: 1020px) {
  .ba-grid { grid-template-columns: 1fr; gap: 44px; }
  .ba-slider { max-width: 520px; }
  .how-grid, .faq-wrap { grid-template-columns: 1fr; }
  .how-media { position: static; max-width: 480px; }
  .ing-grid { grid-template-columns: 1fr 1fr; }
  .pdp { grid-template-columns: 1fr; }
  .pdp-gallery { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 640px) {
  .nav-links { display: none; }
  /* Logo + ostonappi eivät mahtuneet riville kapeimmilla puhelimilla (320px),
     jolloin header työnsi sivun vaakavieritykseen. Samalla headerista tulee
     matalampi eikä sen ympärille jää turhaa tyhjää. */
  .nav { gap: 12px; padding-block: 12px; }
  .logo { font-size: 0.95rem; }
  .nav-cta { padding: 11px 18px; font-size: 0.86rem; }
  /* Sama kapeikko sticky-palkissa: nowrap-nappi + tuotenimi vaativat enemmän
     tilaa kuin 320px-ruutu antaa */
  .sticky-buy { gap: 10px; padding-inline: 16px; }
  .sticky-buy .meta { min-width: 0; }
  .sticky-buy .meta b { font-size: 0.88rem; }
  .sticky-buy .meta span { font-size: 0.76rem; }
  .sticky-buy .btn { padding: 12px 18px; font-size: 0.9rem; }
  /* Grid-sarakkeet eivät saa jäädä min-content-leveyteensä lukkoon */
  .footer-grid > *, .footer-col, .footer-brand { min-width: 0; }
  .footer-col a { overflow-wrap: anywhere; }
  .step { grid-template-columns: 44px 1fr; }
  .topbar span.extra { display: none; }
  .ing-grid { grid-template-columns: 1fr; }
  .benefit-list { grid-template-columns: 1fr; }
  .inci { grid-template-columns: 1fr; gap: 14px; }
  .step { grid-template-columns: 56px 1fr; }
  .buy-row { flex-wrap: wrap; }
  .btn-buy { flex-basis: 100%; }
  .trust-row { grid-template-columns: 1fr; }
  .ba-knob { width: 40px; height: 40px; }
}

/* Arvostelukortit pystyyn kapeilla näytöillä */
@media (max-width: 900px) {
  .review-grid { grid-template-columns: 1fr; gap: 14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
  html { scroll-behavior: auto; }
}
