/* ───────────────────────────────────────────────────────────────────────────
   Skindra Landing — "Hautjournal" layout.
   The page reads like a journal of the app's own path: hero, a short
   editorial on the problem, four chapters on one thread (Haut-Check → Scan →
   Plan → Routine), two tools for in between, questions, call to action.
   Left-aligned and asymmetric on purpose; all colours come from the tokens.
   ─────────────────────────────────────────────────────────────────────────── */

/* ── HERO ──────────────────────────────────────────────────────────────────── */
.hero { padding: clamp(36px, 8vw, 72px) 0 clamp(24px, 6vw, 56px); }
.hero-grid { display: grid; gap: clamp(8px, 3vw, 24px); align-items: center; }
.hero-copy { position: relative; z-index: 5; max-width: 560px; }
.hero-copy .display { margin-bottom: 20px; }
.hero-copy .lead { margin: 0 0 28px; max-width: 500px; }
.hero-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
/* the free trial sits on top of the download, as the reason to tap now */
.cta-trial {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  padding: 7px 14px 7px 10px;
  border-radius: var(--sk-radius-full);
  background: var(--sk-status-helpful-bg);
  color: var(--sk-status-helpful);
  font-size: 14px;
  font-weight: 700;
}
.cta-trial ion-icon { font-size: 17px; }
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px; }
}
/* phones: headline, then the video in the first screen, then lead and download.
   The video shrinks with the window height so it fits under the headline. */
@media (max-width: 959px) {
  .hero { padding-top: 20px; }
  .hero-grid { gap: 16px; }
  .hero-copy { display: contents; }
  .hero-copy .display { order: 1; margin: 0; }
  .hero .promo-video {
    order: 2;
    width: clamp(220px, calc((100vh - 220px) * 9 / 16), 340px);
    width: clamp(220px, calc((100svh - 220px) * 9 / 16), 340px);
  }
  .hero-copy .lead { order: 3; margin: 8px 0 0; }
  .hero-actions { order: 4; }
}

/* ── INTRO · "Du kennst das." ─────────────────────────────────────────────── */
.intro { padding-top: clamp(40px, 8vw, 80px); }
.intro-grid { display: grid; gap: 22px; }
.intro-text {
  margin: 0;
  font-family: var(--sk-font-heading);
  font-weight: 500;
  font-size: clamp(22px, 3.4vw, 32px);
  line-height: 1.32;
  letter-spacing: -0.012em;
  color: var(--sk-text-primary);
  text-wrap: pretty;
}
.intro-turn {
  margin: 22px 0 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--sk-primary);
}
.intro-note {
  display: flex;
  align-items: baseline;
  gap: 16px;
  padding-top: 22px;
  border-top: 1px solid var(--sk-border);
}
.intro-num {
  flex: none;
  font-family: var(--sk-font-heading);
  font-weight: 600;
  font-size: clamp(36px, 6vw, 48px);
  line-height: 1;
  letter-spacing: -0.02em;
  color: var(--sk-primary);
}
.intro-note p { margin: 0; font-size: 14.5px; line-height: 1.55; color: var(--sk-text-secondary); max-width: 460px; }
@media (min-width: 860px) {
  .intro-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); column-gap: 56px; row-gap: 40px; }
  .intro-note { grid-column: 2; }
}

/* ── JOURNEY · four chapters on one thread ─────────────────────────────────── */
.journey-head { max-width: 620px; }
.journey-head .lead { margin-top: 16px; }
.chapters {
  position: relative;
  list-style: none;
  margin: clamp(44px, 8vw, 72px) 0 0;
  padding: 0;
  display: grid;
  gap: clamp(64px, 11vw, 112px);
}
.chapter { position: relative; display: grid; gap: 28px; justify-items: center; }
.chapter-copy { max-width: 440px; justify-self: start; }
.chapter-num {
  display: block;
  font-family: var(--sk-font-heading);
  font-weight: 600;
  font-size: clamp(48px, 8vw, 72px);
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--sk-primary-light);
  opacity: 0.55;
  margin-bottom: 10px;
}
.chapter-title {
  margin: 0 0 12px;
  font-family: var(--sk-font-heading);
  font-weight: 600;
  font-size: clamp(24px, 4vw, 30px);
  line-height: 1.15;
  letter-spacing: -0.015em;
  color: var(--sk-text-primary);
}
.chapter-copy > p { margin: 0; font-size: 16px; line-height: 1.65; color: var(--sk-text-secondary); }
.chapter-facts { list-style: none; margin: 20px 0 0; padding: 0; display: grid; gap: 9px; }
.chapter-facts li {
  position: relative;
  padding-left: 18px;
  font-size: 14.5px;
  line-height: 1.5;
  color: var(--sk-text-primary);
}
.chapter-facts li::before {
  content: "";
  position: absolute;
  left: 0; top: 0.62em;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--sk-primary);
  opacity: 0.7;
}
/* every chapter phone shares one height; taller screens clip inside the bezel */
.chapter-media .device {
  --dev-w: clamp(240px, 66vw, 290px);
  aspect-ratio: auto;
  height: calc(var(--dev-w) * 620 / 296);
}
@media (min-width: 860px) {
  /* the thread: one quiet line down the middle, a dot where each chapter sits */
  .chapters::before {
    content: "";
    position: absolute;
    top: 0; bottom: 0; left: 50%;
    width: 1px;
    background: var(--sk-border);
  }
  .chapter { grid-template-columns: 1fr 1fr; column-gap: 112px; align-items: center; }
  .chapter::after {
    content: "";
    position: absolute;
    top: 50%; left: 50%;
    width: 11px; height: 11px;
    margin: -5.5px 0 0 -5.5px;
    border-radius: 50%;
    background: var(--sk-background);
    border: 2px solid var(--sk-primary);
  }
  .chapter-copy { justify-self: end; }
  .chapter.flip .chapter-copy { order: 2; justify-self: start; }
}

/* ── MORE · Frag Skindra + Einkaufs-Kompass ───────────────────────────────── */
.more-grid { display: grid; gap: 22px; margin-top: clamp(36px, 6vw, 52px); }
.more-card {
  background: var(--sk-surface);
  border: 1px solid var(--sk-border-subtle);
  border-radius: var(--sk-radius-xl);
  padding: clamp(18px, 3vw, 26px);
  box-shadow: var(--sk-shadow-sm);
}
.more-card h3 {
  margin: 22px 0 8px;
  font-family: var(--sk-font-heading);
  font-weight: 600;
  font-size: 22px;
  letter-spacing: -0.01em;
  color: var(--sk-text-primary);
}
.more-card > p { margin: 0; font-size: 15px; line-height: 1.6; color: var(--sk-text-secondary); }
.more-demo {
  background: var(--sk-canvas-gradient);
  border-radius: var(--sk-radius-lg);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
@media (min-width: 760px) { .more-grid { grid-template-columns: 1fr 1fr; } }

/* chat snippet */
.chat-head { display: flex; align-items: center; gap: 9px; }
.chat-avatar {
  width: 30px; height: 30px; flex: none;
  border-radius: 50%;
  background: var(--sk-surface);
  display: grid; place-items: center;
  box-shadow: var(--sk-shadow-sm);
}
.chat-avatar img { width: 17px; height: 17px; }
.chat-name { font-family: var(--sk-font-heading); font-weight: 600; font-size: 15px; color: var(--sk-text-primary); }
.chat-ai {
  margin-left: auto;
  font-size: 11px; font-weight: 700;
  padding: 3px 9px;
  border-radius: var(--sk-radius-full);
  background: var(--sk-contrast-bg);
  color: var(--sk-contrast);
}
.chat-disclaimer { margin: 0; font-size: 12px; line-height: 1.45; color: var(--sk-text-tertiary); }
.bubble { max-width: 88%; padding: 10px 13px; font-size: 13.5px; line-height: 1.5; border-radius: 18px; }
.bubble.me {
  align-self: flex-end;
  background: var(--sk-primary);
  color: var(--sk-on-primary);
  border-bottom-right-radius: 6px;
}
.bubble.ai {
  align-self: flex-start;
  background: var(--sk-surface);
  color: var(--sk-text-primary);
  border-bottom-left-radius: 6px;
  box-shadow: var(--sk-shadow-sm);
}
.bubble-report {
  display: inline-flex; align-items: center; gap: 5px;
  margin-top: 8px;
  font-size: 11.5px; font-weight: 600;
  color: var(--sk-text-tertiary);
}

/* compass snippet */
.compass-head { display: flex; align-items: center; gap: 8px; font-family: var(--sk-font-heading); font-weight: 600; font-size: 15px; color: var(--sk-text-primary); }
.compass-head ion-icon { font-size: 19px; color: var(--sk-primary); }
.compass-basis { margin: 0; font-size: 12px; color: var(--sk-text-tertiary); }
.compass-group {
  background: var(--sk-surface);
  border-radius: 16px;
  padding: 12px 13px;
  box-shadow: var(--sk-shadow-sm);
}
.compass-group b { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; font-size: 13px; color: var(--sk-text-primary); }
.compass-group .dot { width: 9px; height: 9px; border-radius: 50%; flex: none; }
.compass-group .dot.helpful { background: var(--sk-status-helpful); }
.compass-group .dot.meiden { background: var(--sk-status-irritating); }
.compass-group .chips { display: flex; flex-wrap: wrap; gap: 6px; }
.compass-group .chip { font-size: 11.5px; font-weight: 600; padding: 5px 11px; border-radius: var(--sk-radius-full); }

/* ── FAQ · two columns ─────────────────────────────────────────────────────── */
.faq-grid { display: grid; gap: 8px; }
.faq-side .lead { margin-top: 14px; }
.faq-side .lead a { color: var(--sk-primary); font-weight: 600; }
.faq-grid .faq-list { margin-top: 26px; }
@media (min-width: 860px) {
  .faq-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1.7fr); gap: 56px; align-items: start; }
  .faq-side { position: sticky; top: 104px; }
  .faq-grid .faq-list { margin-top: 0; }
}

/* ── FINAL CTA ─────────────────────────────────────────────────────────────── */
/* the one loud moment of the page: the brand colour as a surface */
.final {
  position: relative;
  overflow: hidden;
  background: linear-gradient(150deg, var(--sk-primary) 0%, var(--sk-primary-dark) 100%);
  color: var(--sk-on-primary);
  border-radius: var(--sk-radius-xl);
  padding: clamp(36px, 7vw, 72px) clamp(24px, 6vw, 64px);
  box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--sk-primary-dark) 85%, transparent);
}
.final-copy { position: relative; z-index: 1; max-width: 520px; }
.final .h2 { color: var(--sk-on-primary); }
.final .lead { margin-top: 14px; color: color-mix(in srgb, var(--sk-on-primary) 84%, transparent); }
.final .cta-trial {
  margin-top: 26px;
  background: color-mix(in srgb, var(--sk-on-primary) 16%, transparent);
  color: var(--sk-on-primary);
}
.final .badges { margin-top: 16px; }
.final .badge {
  background: var(--sk-surface);
  color: var(--sk-primary-dark);
  box-shadow: 0 12px 26px -12px color-mix(in srgb, var(--sk-text-primary) 60%, transparent);
}
.final .badge:hover { background: var(--sk-background); }
.final .badge:focus-visible { outline-color: var(--sk-surface); }
/* the S-wave stays behind the content as a key visual, never in front of it */
.final-mark {
  position: absolute;
  right: clamp(-60px, -4vw, -20px);
  bottom: -40px;
  width: clamp(180px, 30vw, 320px);
  height: auto;
  opacity: 0.12;
  filter: brightness(0) invert(1);
  pointer-events: none;
}

/* ── Page rhythm ───────────────────────────────────────────────────────────── */
/* anchor jumps land below the sticky header */
main section[id] { scroll-margin-top: 80px; }
/* the footer brings its own top margin, the last section needs none below */
main > .section:last-child { padding-bottom: 0; }
