/* ───────────────────────────────────────────────────────────────────────────
   Skindra Landing — page layout & sections.
   Mobile-first. Warm cream/rosé brand world + Apple-premium restraint:
   generous air, large Fraunces display type, soft motion, very round corners.
   ─────────────────────────────────────────────────────────────────────────── */

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--sk-background);
  color: var(--sk-text-primary);
  font-family: var(--sk-font-body);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ion-icon { pointer-events: none; }

/* warm grain-free morning-light wash over the whole page */
body::before {
  content: "";
  position: fixed;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(70% 45% at 80% 0%, rgba(212, 128, 110, 0.16), transparent 60%),
    radial-gradient(60% 40% at 0% 12%, rgba(155, 79, 106, 0.10), transparent 55%),
    var(--sk-canvas-gradient);
}

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 22px; }
.narrow { max-width: 720px; }

/* ── Type helpers (fluid, Apple-large) ─────────────────────────────────────── */
.kicker {
  font-family: var(--sk-font-body);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 1.4px;
  text-transform: uppercase;
  color: var(--sk-primary);
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.kicker::before {
  content: "";
  width: 18px; height: 2px; border-radius: 2px;
  background: var(--sk-primary);
  opacity: 0.65;
}
.display {
  font-family: var(--sk-font-heading);
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.04;
  color: var(--sk-text-primary);
  font-size: clamp(34px, 9vw, 60px);
  text-wrap: balance;
  margin: 0;
}
.h2 {
  font-family: var(--sk-font-heading);
  font-weight: 600;
  letter-spacing: -0.018em;
  line-height: 1.08;
  font-size: clamp(28px, 6.4vw, 44px);
  text-wrap: balance;
  margin: 0;
}
.lead {
  font-family: var(--sk-font-body);
  font-weight: 400;
  font-size: clamp(16px, 4.4vw, 19px);
  line-height: 1.55;
  color: var(--sk-text-secondary);
  text-wrap: pretty;
  margin: 0;
}
.section { padding: clamp(64px, 13vw, 120px) 0; }

/* ── Buttons ───────────────────────────────────────────────────────────────── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  height: var(--sk-control-height);
  padding: 0 26px;
  border-radius: 999px;
  font-family: var(--sk-font-body);
  font-weight: 600;
  font-size: 16px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 160ms ease, box-shadow 160ms ease, background 160ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--sk-primary);
  color: var(--sk-on-primary);
  box-shadow: 0 8px 20px -8px rgba(184, 92, 74, 0.6);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 14px 28px -10px rgba(184, 92, 74, 0.6); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.7);
  color: var(--sk-text-primary);
  border-color: var(--sk-border);
}
.btn-ghost:hover { transform: translateY(-2px); background: #fff; }
.btn ion-icon { font-size: 19px; }

/* ── App-store badges ──────────────────────────────────────────────────────── */
.badges { display: flex; gap: 12px; flex-wrap: wrap; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  height: 54px;
  padding: 0 18px 0 16px;
  border-radius: 16px;
  background: var(--sk-text-primary);
  color: #fff;
  transition: transform 160ms ease, box-shadow 160ms ease;
  box-shadow: var(--sk-shadow-md);
}
.badge:hover { transform: translateY(-2px); box-shadow: var(--sk-shadow-lg); }
.badge svg { width: 22px; height: 22px; flex: none; fill: #fff; }
.badge .b-txt { display: flex; flex-direction: column; line-height: 1.1; }
.badge .b-sm { font-size: 9.5px; letter-spacing: 0.4px; opacity: 0.82; }
.badge .b-lg { font-family: var(--sk-font-heading); font-weight: 600; font-size: 16px; letter-spacing: -0.2px; }

/* ── Header / nav ──────────────────────────────────────────────────────────── */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(250, 247, 244, 0.72);
  backdrop-filter: saturate(140%) blur(14px);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color 200ms ease, background 200ms ease;
}
.site-header.scrolled { border-bottom-color: var(--sk-border-subtle); }
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
}
.nav-logo { height: 30px; width: auto; }
.nav-links { display: none; align-items: center; gap: 26px; }
.nav-links a {
  font-weight: 500;
  font-size: 15px;
  color: var(--sk-text-secondary);
  transition: color 140ms ease;
}
.nav-links a:hover { color: var(--sk-primary); }
.nav-cta { display: inline-flex; }
.nav-cta .btn { height: 44px; font-size: 15px; padding: 0 20px; }
.nav-actions { display: flex; align-items: center; gap: 12px; }
.lang-switch {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--sk-border);
  border-radius: 999px;
  background: var(--sk-surface);
}
.lang-switch a {
  font-weight: 600;
  font-size: 13px;
  line-height: 1;
  padding: 6px 10px;
  border-radius: 999px;
  color: var(--sk-text-secondary);
  transition: color 140ms ease, background 140ms ease;
}
.lang-switch a:hover { color: var(--sk-primary); }
.lang-switch a[aria-current="true"] {
  background: var(--sk-primary);
  color: var(--sk-on-primary);
}
@media (min-width: 760px) {
  .nav-links { display: flex; }
}
/* Hero headline highlight — foregrounds the target condition (Neurodermitis / eczema) */
.hl { color: var(--sk-primary); }

/* ── HERO ──────────────────────────────────────────────────────────────────── */
/* Copy flows normally at the top; the device stage below it pins and is
   scrubbed by scroll — so copy and phone never fight for one viewport. */
.hero-copy {
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
  padding: clamp(46px, 11vw, 92px) 22px clamp(8px, 3vw, 24px);
  position: relative;
  z-index: 5;
}
.hero-stage { position: relative; height: 300vh; }
.hero-stage.no-pin { height: auto; }
.no-pin .hero-pin { position: static; min-height: 0; padding: 0 0 clamp(40px, 9vw, 80px); }
.hero-pin {
  position: sticky;
  top: 0;
  min-height: 100svh;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
}
/* Device sized by available height — no layout shift, fits the pinned stage. */
.hero-stagebox .device { width: auto; height: clamp(400px, 64vh, 600px); }
.hero-copy .display { margin-bottom: 18px; }
.hero-copy .lead { margin: 0 auto 26px; max-width: 520px; }
.hero-actions { display: flex; flex-direction: column; align-items: center; gap: 14px; }
.hero-note {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  color: var(--sk-text-tertiary);
}
.hero-note ion-icon { color: var(--sk-status-helpful); font-size: 15px; }

/* device stage — perspective wrapper for the scrubbed phone(s) */
.hero-stagebox {
  position: relative;
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  perspective: 1400px;
  perspective-origin: 50% 40%;
}
.hero-devices {
  position: relative;
  transform-style: preserve-3d;
  will-change: transform;
}
/* secondary phones used only by the "fan" variant */
.hero-devices .device.sat {
  position: absolute;
  top: 0; left: 50%;
  transform: translateX(-50%) scale(0.9);
  opacity: 0;
  transition: opacity 400ms ease;
}
.hero-devices[data-variant="fan"] .device.sat { opacity: 1; }

/* soft glow under the device */
.hero-glow {
  position: absolute;
  bottom: 4%;
  left: 50%;
  width: 70%;
  height: 40px;
  transform: translateX(-50%);
  background: radial-gradient(closest-side, rgba(44, 31, 26, 0.22), transparent);
  filter: blur(8px);
  z-index: -1;
}

/* (removed: progress dots — the active footer tab now signals the screen) */

/* hero variant switcher */
.variant-switch {
  position: fixed;
  z-index: 60;
  right: 14px;
  bottom: 14px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 5px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--sk-shadow-md);
  border: 1px solid var(--sk-border-subtle);
}
.variant-switch .vs-label {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  color: var(--sk-text-tertiary);
  padding: 0 6px 0 8px;
}
.variant-switch button {
  border: 0;
  cursor: pointer;
  background: transparent;
  color: var(--sk-text-secondary);
  font-family: var(--sk-font-body);
  font-weight: 600;
  font-size: 12px;
  padding: 7px 12px;
  border-radius: 999px;
  transition: background 140ms ease, color 140ms ease;
}
.variant-switch button.on { background: var(--sk-primary); color: #fff; }

/* ── Reveal on scroll ──────────────────────────────────────────────────────── */
/* Progressive enhancement: content is visible by default (crawlers, no-JS, and
   any frozen render all see it). Only once JS marks <html class="js-anim"> does
   the not-yet-revealed hidden state apply, so animation can never hide content
   from a search engine or a user whose JS failed. */
.reveal {
  opacity: 1;
  transform: none;
  transition: opacity 720ms cubic-bezier(0.22, 1, 0.36, 1), transform 720ms cubic-bezier(0.22, 1, 0.36, 1);
}
html.js-anim .reveal:not(.in) {
  opacity: 0;
  transform: translateY(26px);
}
.reveal.d1 { transition-delay: 90ms; }
.reveal.d2 { transition-delay: 180ms; }
.reveal.d3 { transition-delay: 270ms; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* Hero copy — always visible above the fold. Motion in the hero lives in the
   scroll-scrubbed phone and in the reveal sections below, so the headline is
   never gated behind an animation that could hold it hidden. */
.hero-in { opacity: 1; }

/* ── PROBLEM ───────────────────────────────────────────────────────────────── */
.section-head { max-width: 640px; }
.section-head.center { margin: 0 auto; text-align: center; }
.section-head .kicker { margin-bottom: 14px; }
.section-head .lead { margin-top: 16px; }

.prob-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  margin-top: 38px;
}
.prob-card {
  background: var(--sk-surface);
  border-radius: var(--sk-radius-lg);
  padding: 24px;
  box-shadow: var(--sk-shadow-sm);
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 200ms ease;
}
.prob-card:hover { transform: translateY(-3px); box-shadow: var(--sk-shadow-md); }
.prob-card .ic {
  width: 42px; height: 42px; border-radius: 999px;
  display: flex; align-items: center; justify-content: center;
  background: var(--sk-status-irritating-bg);
  margin-bottom: 14px;
}
.prob-card .ic ion-icon { font-size: 21px; color: var(--sk-status-irritating); }
.prob-card p { margin: 0; font-size: 15.5px; line-height: 1.5; color: var(--sk-text-primary); }
.prob-turn {
  margin-top: 30px;
  font-family: var(--sk-font-heading);
  font-weight: 500;
  font-size: clamp(20px, 5.2vw, 26px);
  line-height: 1.3;
  letter-spacing: -0.4px;
  color: var(--sk-text-secondary);
  text-wrap: balance;
}
.prob-turn b { color: var(--sk-primary); font-weight: 600; }
@media (min-width: 720px) {
  .prob-grid { grid-template-columns: repeat(3, 1fr); }
}

/* ── STEPS (So funktioniert's) — alternating screen + copy ────────────────── */
.steps { display: flex; flex-direction: column; gap: clamp(60px, 12vw, 104px); margin-top: 56px; }
.step { display: grid; grid-template-columns: 1fr; gap: 30px; align-items: center; justify-items: center; }
.step-media { display: flex; justify-content: center; }
.step-copy { max-width: 460px; text-align: center; }
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 999px;
  background: var(--sk-primary); color: #fff;
  font-family: var(--sk-font-heading); font-weight: 600; font-size: 16px;
  margin-bottom: 14px;
}
.step-copy h3 {
  font-family: var(--sk-font-heading); font-weight: 600;
  font-size: clamp(22px, 5.4vw, 30px); letter-spacing: -0.4px;
  margin: 0 0 12px; color: var(--sk-text-primary);
}
.step-copy p { margin: 0; font-size: 16px; line-height: 1.6; color: var(--sk-text-secondary); }
@media (min-width: 860px) {
  .step { grid-template-columns: 1fr 1fr; gap: 56px; justify-items: stretch; }
  .step-copy { text-align: left; max-width: none; }
  .step-media { justify-content: center; }
  .step.flip .step-media { order: 2; }
}

/* ── SHOWCASE — horizontal scroll rail of screens ─────────────────────────── */
.rail {
  display: flex;
  gap: 22px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  padding: 34px 22px 14px;
  margin: 0 -22px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
}
.rail::-webkit-scrollbar { display: none; }
.rail-item { scroll-snap-align: center; flex: none; display: flex; flex-direction: column; align-items: center; gap: 14px; }
/* All showcase phones share one fixed height — taller content (e.g. the plan)
   is clipped inside the bezel instead of stretching the device. */
.rail .device--single {
  aspect-ratio: auto;
  height: calc(var(--dev-w) * 620 / 296);
}
.rail-cap { text-align: center; max-width: 290px; }
.rail-cap h4 { font-family: var(--sk-font-heading); font-weight: 600; font-size: 18px; letter-spacing: -0.3px; margin: 0 0 4px; color: var(--sk-text-primary); }
.rail-cap p { margin: 0; font-size: 13.5px; line-height: 1.5; color: var(--sk-text-secondary); }
.rail-hint { display: flex; align-items: center; justify-content: center; gap: 7px; margin-top: 10px; font-size: 13px; color: var(--sk-text-tertiary); }

/* ── STAT (dark) ───────────────────────────────────────────────────────────── */
.stat {
  background: var(--sk-text-primary);
  color: var(--sk-text-inverse);
  border-radius: clamp(28px, 6vw, 44px);
  padding: clamp(48px, 10vw, 92px) clamp(26px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.stat::after {
  content: "";
  position: absolute;
  inset: auto -10% -40% -10%;
  height: 70%;
  background: radial-gradient(60% 100% at 50% 100%, rgba(212, 128, 110, 0.3), transparent 70%);
}
.stat-num {
  font-family: var(--sk-font-heading);
  font-weight: 700;
  font-size: clamp(64px, 18vw, 128px);
  line-height: 0.92;
  letter-spacing: -3px;
  color: var(--sk-primary-light);
  position: relative;
}
.stat-lead {
  font-family: var(--sk-font-heading);
  font-weight: 500;
  font-size: clamp(20px, 5vw, 30px);
  line-height: 1.28;
  letter-spacing: -0.4px;
  max-width: 620px;
  margin: 18px auto 0;
  text-wrap: balance;
  position: relative;
}
.stat-sub { font-size: 15px; line-height: 1.6; color: rgba(250, 247, 244, 0.66); max-width: 480px; margin: 16px auto 0; position: relative; }

/* ── FACES / relatability ──────────────────────────────────────────────────── */
.faces {
  display: grid;
  grid-template-columns: 1fr;
  gap: 28px;
  align-items: center;
}
.faces-photos { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.faces-photos image-slot {
  width: 100%;
  aspect-ratio: 3 / 4;
  box-shadow: var(--sk-shadow-md);
}
.faces-photos image-slot:first-child { margin-top: 22px; }
.face-quote {
  font-family: var(--sk-font-heading);
  font-weight: 500;
  font-size: clamp(20px, 5vw, 27px);
  line-height: 1.34;
  letter-spacing: -0.3px;
  color: var(--sk-text-primary);
  text-wrap: balance;
  margin: 0 0 16px;
}
.face-attr { font-size: 14px; color: var(--sk-text-tertiary); }
.face-disclaim { margin-top: 18px; font-size: 12px; color: var(--sk-text-tertiary); display: inline-flex; gap: 6px; align-items: center; }
@media (min-width: 860px) {
  .faces { grid-template-columns: 0.9fr 1.1fr; gap: 56px; }
}

/* ── FAQ ───────────────────────────────────────────────────────────────────── */
.faq-list { margin-top: 34px; display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--sk-surface);
  border-radius: var(--sk-radius-lg);
  box-shadow: var(--sk-shadow-sm);
  overflow: hidden;
}
.faq-item > summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--sk-font-heading);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: -0.2px;
  color: var(--sk-text-primary);
}
.faq-item > summary::-webkit-details-marker { display: none; }
.faq-item summary .chev {
  flex: none; transition: transform 240ms ease; color: var(--sk-primary); font-size: 20px;
}
.faq-item[open] summary .chev { transform: rotate(180deg); }
.faq-item .faq-a { padding: 0 22px 20px; margin: 0; font-size: 15px; line-height: 1.6; color: var(--sk-text-secondary); }

/* ── FINAL CTA ─────────────────────────────────────────────────────────────── */
.final {
  text-align: center;
  background:
    radial-gradient(80% 120% at 50% 0%, rgba(212, 128, 110, 0.16), transparent 60%),
    var(--sk-surface);
  border-radius: clamp(28px, 6vw, 44px);
  padding: clamp(52px, 11vw, 96px) clamp(26px, 6vw, 56px);
  box-shadow: var(--sk-shadow-md);
}
.final .badges { justify-content: center; margin-top: 26px; }
.final .hero-note { margin-top: 18px; }
.final-mark { width: 56px; height: 56px; margin: 0 auto 22px; }

/* ── FOOTER ────────────────────────────────────────────────────────────────── */
.site-footer { padding: clamp(48px, 9vw, 76px) 0 36px; border-top: 1px solid var(--sk-border-subtle); margin-top: clamp(60px, 12vw, 110px); }
.foot-grid { display: grid; grid-template-columns: 1fr; gap: 36px 28px; }
.foot-brand { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.foot-logo { height: 30px; width: auto; align-self: flex-start; flex: none; }
.foot-tag {
  margin: 0;
  font-family: var(--sk-font-heading);
  font-weight: 500;
  font-size: 15.5px;
  letter-spacing: -0.2px;
  color: var(--sk-text-secondary);
}
.foot-badges { margin-top: 4px; gap: 10px; }
.foot-badges .badge { height: 46px; padding: 0 16px 0 14px; }
.foot-badges .badge .b-lg { font-size: 15px; }
.foot-col { display: flex; flex-direction: column; gap: 11px; }
.foot-h {
  margin: 0 0 3px;
  font-family: var(--sk-font-body);
  font-weight: 700;
  font-size: 11.5px;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  color: var(--sk-text-tertiary);
}
.foot-col a { width: fit-content; font-size: 14.5px; color: var(--sk-text-secondary); transition: color 140ms ease; }
.foot-col a:hover { color: var(--sk-primary); }
.disclaimer {
  margin-top: 34px;
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 16px 18px;
  background: var(--sk-background);
  border-radius: var(--sk-radius-md);
  border: 1px solid var(--sk-border-subtle);
}
.disclaimer ion-icon { font-size: 17px; color: var(--sk-text-tertiary); flex: none; margin-top: 1px; }
.disclaimer p { margin: 0; font-size: 12.5px; line-height: 1.6; color: var(--sk-text-tertiary); }
.foot-bottom {
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--sk-border-subtle);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.foot-legal { margin: 0; font-size: 12px; color: var(--sk-text-tertiary); }
.foot-bottom-links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.foot-bottom-links a { font-size: 12px; color: var(--sk-text-tertiary); transition: color 140ms ease; }
.foot-bottom-links a:hover { color: var(--sk-primary); }
@media (min-width: 760px) {
  .foot-grid {
    grid-template-columns: 2.2fr 1fr 1.3fr 1.1fr;
    gap: 40px;
    align-items: start;
  }
  .foot-bottom { flex-direction: row; align-items: center; justify-content: space-between; }
}

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