/* Playdate — Marketing-Landing · Pfad Dark
 * Tokens 1:1 aus docs/design/theme.jsx (THEMES.pfad.dark + Form/Typo).
 * Web und App teilen EINE Marken-Wahrheit: ändert sich theme.jsx,
 * ziehen diese Custom-Properties nach.
 */

:root {
  /* ── Pfad Dark · Palette ────────────────────────────── */
  --bg: #1A140E;
  --surface: #251C13;
  --surface-alt: #2F2417;
  --text: #F1E7D2;
  --text-soft: #C9B89B;
  --mute: #8A7860;
  --hair: rgba(241, 231, 210, 0.10);
  --hair-strong: rgba(241, 231, 210, 0.16);
  --accent: #E08458;        /* Terracotta hell (Dark-Akzent) */
  --accent-deep: #B95A36;   /* Terracotta (Marken-Kern) */
  --accent-soft: #5C3923;
  --on-accent: #1A140E;
  --success: #A4B580;
  --crimson: #C9433B;       /* Live/Stopp — nur als Live-Ring-Akzent */
  /* Amber (#D9AD55 / #C8932A) ist Leinenpflicht-reserviert — NICHT verwenden. */

  /* ── Form ───────────────────────────────────────────── */
  --radius: 22px;
  --radius-small: 14px;
  --radius-pill: 999px;

  /* ── Typo (3 Rollen, strikt getrennt) ───────────────── */
  /* TODO self-hosted: Instrument Serif, DM Sans, DM Mono als @font-face
   * lokal einbinden (woff2 in marketing/fonts/), damit keine externen CDNs
   * geladen werden (Privacy-Konsistenz). Bis dahin System-Fallback-Stack. */
  --font-display: "Instrument Serif", "Source Serif Pro", Georgia, "Times New Roman", serif;
  --font-ui: "DM Sans", -apple-system, BlinkMacSystemFont, system-ui, "Segoe UI", sans-serif;
  --font-mono: "DM Mono", ui-monospace, "SF Mono", "Menlo", monospace;

  /* ── Rhythmus ───────────────────────────────────────── */
  --maxw: 1120px;
  --gutter: clamp(1.25rem, 5vw, 4rem);
  --section-y: clamp(4.5rem, 12vw, 9rem);
}

/* ── Reset (schlank) ──────────────────────────────────── */
*, *::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(--bg);
  color: var(--text);
  font-family: var(--font-ui);
  font-size: clamp(1rem, 0.95rem + 0.25vw, 1.125rem);
  line-height: 1.65;
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  /* Leiser Papier-Verlauf, kein hartes Schwarz — Ambiente statt Leere. */
  background-image:
    radial-gradient(120% 70% at 78% -8%, rgba(224, 132, 88, 0.10), transparent 55%),
    radial-gradient(90% 60% at 0% 8%, rgba(185, 90, 54, 0.05), transparent 60%);
  background-attachment: fixed;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
em { font-style: normal; }

/* ── Layout ───────────────────────────────────────────── */
.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

section {
  padding-block: var(--section-y);
  position: relative;
}
/* Hairline zwischen den Sektionen — Textur über Struktur, nicht Linien-Lärm */
main > section + section::before {
  content: "";
  position: absolute;
  top: 0; left: var(--gutter); right: var(--gutter);
  height: 1px;
  background: var(--hair);
}
.privacy::before { display: none; } /* hat eigene border-block */

/* ── Typo-Rollen ──────────────────────────────────────── */
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;       /* tracking +2, Title-Case (kein uppercase) */
  color: var(--mute);
  margin: 0 0 1.5rem;
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
}
/* explizit KEIN text-transform: uppercase — Mono bleibt Title-Case. */
.eyebrow .dot {
  width: 6px; height: 6px;
  border-radius: var(--radius-pill);
  background: var(--accent);
  flex: none;
}

.serif {
  font-family: var(--font-display);
  font-weight: 400;
  line-height: 1.08;
  letter-spacing: 0.005em;
}

h1, h2, h3 {
  font-family: var(--font-display);
  font-weight: 400;
  margin: 0;
  line-height: 1.06;
}

h1 {
  font-size: clamp(3rem, 1.5rem + 7.5vw, 6.25rem);
  letter-spacing: -0.01em;
}
h2 {
  font-size: clamp(2.1rem, 1.2rem + 4vw, 3.9rem);
}
h2 em { color: var(--accent); }

.lead {
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.4rem);
  max-width: 34ch;
  margin: 1.6rem 0 0;
  line-height: 1.55;
}

.accent { color: var(--accent); }

/* ── Pill-Button ──────────────────────────────────────── */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.625rem;
  font-family: var(--font-ui);
  font-weight: 500;
  font-size: 1rem;
  text-decoration: none;
  border-radius: var(--radius-pill);
  padding: 0.875rem 1.5rem;
  border: 1px solid transparent;
  transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}
.pill--primary {
  background: var(--accent);
  color: var(--on-accent);
}
.pill--primary:hover { transform: translateY(-1px); background: #ea9166; }
.pill--ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--hair-strong);
}
.pill--ghost:hover { border-color: var(--accent); color: var(--accent); }
.pill svg { width: 18px; height: 18px; }

.pill:focus-visible,
a:focus-visible,
button:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: var(--radius-small);
}

/* ── Header ───────────────────────────────────────────── */
.site-head {
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px);
  background: color-mix(in srgb, var(--bg) 80%, transparent);
  border-bottom: 1px solid var(--hair);
}
.site-head .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding-block: 0.9rem;
}
.brand {
  font-family: var(--font-display);
  font-size: 1.55rem;
  letter-spacing: 0.01em;
  text-decoration: none;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}
.brand .paw { color: var(--accent); }
.head-right { display: inline-flex; align-items: center; gap: 0.75rem; }
.head-cta { padding: 0.5rem 1.05rem; font-size: 0.9rem; }
@media (max-width: 560px) { .head-cta { display: none; } }

/* Headline-Umschaltung: 3 dezente Mono-Pills */
.hswitch {
  display: inline-flex;
  gap: 0.375rem;
  padding: 0.25rem;
  border: 1px solid var(--hair);
  border-radius: var(--radius-pill);
}
.hswitch button {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  background: transparent;
  border: 0;
  border-radius: var(--radius-pill);
  padding: 0.3rem 0.7rem;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
  line-height: 1;
}
.hswitch button:hover { color: var(--text-soft); }
.hswitch button[aria-pressed="true"] {
  background: var(--accent-soft);
  color: var(--accent);
}

/* ── Hero ─────────────────────────────────────────────── */
.hero { padding-bottom: clamp(3rem, 7vw, 5rem); }
.hero .wrap {
  display: grid;
  gap: clamp(2.5rem, 6vw, 4.5rem);
  align-items: center;
}
@media (min-width: 900px) {
  .hero .wrap {
    grid-template-columns: 1.05fr 0.95fr;
  }
}
.hero h1 { max-width: 13ch; }
.hero-cta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.875rem;
  margin-top: 2.5rem;
  align-items: center;
}
.hero-note {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  color: var(--mute);
  letter-spacing: 0.02em;
}

/* ── Leo · Porträt-Held ───────────────────────────────── */
.hero-portrait {
  margin: 0;
  justify-self: center;
  width: 100%;
  max-width: 420px;
}
.portrait-frame {
  position: relative;
  aspect-ratio: 4 / 5;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--hair-strong);
  background:
    radial-gradient(120% 90% at 50% 0%, var(--surface-alt), var(--surface) 70%);
  /* Pfad-Dark-Rahmen: weicher Doppel-Rand statt Schatten-Lärm */
  box-shadow:
    0 0 0 1px rgba(26, 20, 14, 0.6),
    0 24px 60px -28px rgba(0, 0, 0, 0.7);
}
.portrait-fallback {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  color: var(--accent);
}
.portrait-fallback span {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--mute);
}
.portrait-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  /* leichte Wärme-Angleichung ans Pfad-Dunkel */
  filter: saturate(1.02) contrast(1.02);
}
/* Innen-Vignette, damit das Foto im Dunkel sitzt statt zu schweben */
.portrait-frame::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(180deg, transparent 55%, rgba(26, 20, 14, 0.55) 100%),
    radial-gradient(120% 100% at 50% 0%, transparent 60%, rgba(26, 20, 14, 0.35) 100%);
}
/* Crimson Live-Ring oben rechts — der einzige Live-Marker */
.live-ring {
  position: absolute;
  top: 14px; right: 14px;
  width: 11px; height: 11px;
  border-radius: var(--radius-pill);
  background: var(--crimson);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--crimson) 22%, transparent);
  z-index: 2;
}
@media (prefers-reduced-motion: no-preference) {
  .live-ring { animation: livepulse 2.6s ease-in-out infinite; }
}
@keyframes livepulse {
  0%, 100% { box-shadow: 0 0 0 4px color-mix(in srgb, var(--crimson) 22%, transparent); }
  50% { box-shadow: 0 0 0 7px color-mix(in srgb, var(--crimson) 8%, transparent); }
}
.portrait-cap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  margin-top: 1rem;
  flex-wrap: wrap;
}
.portrait-cap .paw-mini { color: var(--accent); display: inline-flex; }
.cap-name {
  font-family: var(--font-display);
  font-size: 1.5rem;
  line-height: 1;
}
.cap-handle {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--mute);
  letter-spacing: 0.02em;
}
.cap-live {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--crimson);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}
.cap-live::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: var(--radius-pill);
  background: var(--crimson);
}

/* ── Hero-Kennzahlen-Strip ────────────────────────────── */
.hero-strip {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.25rem;
  margin-top: clamp(3rem, 7vw, 4.5rem);
  padding-top: clamp(2rem, 5vw, 2.75rem);
  border-top: 1px solid var(--hair);
}
@media (min-width: 720px) {
  .hero-strip {
    grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr;
    align-items: center;
    gap: clamp(1rem, 3vw, 2.5rem);
  }
}
.strip-item { display: flex; flex-direction: column; gap: 0.35rem; }
.strip-num {
  font-size: clamp(2rem, 1.4rem + 2vw, 2.8rem);
  line-height: 1;
  font-variant-numeric: tabular-nums;
  color: var(--text);
}
.strip-num .unit { font-size: 0.5em; color: var(--accent); margin-left: 0.1em; }
.strip-cap {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--mute);
}
.strip-rule { display: none; }
@media (min-width: 720px) {
  .strip-rule { display: block; width: 1px; align-self: stretch; background: var(--hair); }
}

/* ── Pitch · Problem → Lösung (Elevator) ──────────────── */
.pitch h2 { max-width: 16ch; }
.pitch-lead {
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 1rem + 0.45vw, 1.3rem);
  line-height: 1.55;
  max-width: 52ch;
  margin: 1.6rem 0 0;
}
.pitch-steps {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}
@media (min-width: 820px) {
  .pitch-steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 2rem);
  background: var(--surface);
  position: relative;
}
/* Schritt 03 — die Begegnung — leise akzentuiert als Ziel des Pitches */
.step:last-child {
  border-color: color-mix(in srgb, var(--accent) 35%, var(--hair));
  background:
    radial-gradient(120% 80% at 100% 0%, rgba(224, 132, 88, 0.08), transparent 60%),
    var(--surface);
}
.step-num {
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.55;
  display: block;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.step-k {
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  letter-spacing: 0.02em;
  color: var(--text);
  margin: 0 0 0.6rem;
}
.step-body {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.0625rem;
  line-height: 1.5;
}

/* ── Feel · echte Produkt-Momente ─────────────────────── */
.feel h2 { max-width: 14ch; }
.feel-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: clamp(1.5rem, 3vw, 2rem);
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}
@media (min-width: 820px) {
  .feel-grid { grid-template-columns: 1fr 1fr; }
  .feel-card--wide { grid-column: span 1; }
}
.feel-card {
  display: flex;
  gap: clamp(1.25rem, 3vw, 1.75rem);
  align-items: center;
  background: var(--surface);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: clamp(1.5rem, 3vw, 1.85rem);
}
.feel-text { display: flex; flex-direction: column; gap: 0.4rem; }
.feel-card .label {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  margin: 0;
}
.feel-card .line {
  font-size: clamp(1.4rem, 1.1rem + 1vw, 1.85rem);
  line-height: 1.1;
  margin: 0.1rem 0 0;
}
.feel-card .sub {
  color: var(--text-soft);
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0.35rem 0 0;
  max-width: 34ch;
}

/* ── Echte App-Screens (Screenshots im iPhone-Rahmen) ──── */
.shot {
  flex: none;
  margin: 0;
  width: clamp(124px, 32vw, 158px);
}
.shot img {
  width: 100%;
  height: auto;
  border-radius: 20px;
  display: block;
  /* Der iPhone-Rahmen ist Teil des Screenshots — wir setzen ihn nur
   * ruhig ins Pfad-Dunkel: weiche Kante + dezenter Tiefenschatten. */
  box-shadow:
    0 0 0 1px var(--hair-strong),
    0 20px 44px -24px rgba(0, 0, 0, 0.7);
}

@media (max-width: 460px) {
  .feel-card { flex-direction: column; text-align: center; align-items: center; }
  .feel-card .sub { margin-inline: auto; }
}

/* ── Privacy (betonte Section) ────────────────────────── */
.privacy {
  background: var(--surface);
  border-block: 1px solid var(--hair);
}
.privacy h2 { max-width: 20ch; }
.privacy h2 em { font-style: normal; color: var(--accent); }
.privacy-lead {
  color: var(--text-soft);
  font-size: clamp(1.0625rem, 1rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  max-width: 50ch;
  margin: 1.5rem 0 0;
}
.proofs {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(2.5rem, 6vw, 3.5rem);
}
@media (min-width: 720px) {
  .proofs { grid-template-columns: repeat(3, 1fr); }
}
.proof {
  background: var(--surface-alt);
  border: 1px solid var(--hair);
  border-radius: var(--radius);
  padding: 1.85rem;
  position: relative;
}
.proof-num {
  font-size: 2.2rem;
  line-height: 1;
  color: var(--accent);
  opacity: 0.55;
  display: block;
  margin-bottom: 1rem;
  font-variant-numeric: tabular-nums;
}
.proof .k {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  margin: 0 0 0.6rem;
}
.proof p:not(.k) {
  margin: 0;
  color: var(--text-soft);
  font-size: 1.0625rem;
  line-height: 1.55;
}
.proof strong { color: var(--text); font-weight: 600; }
.proof code {
  font-family: var(--font-mono);
  font-size: 0.9em;
  color: var(--accent);
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 0.05em 0.35em;
}

/* Abgrenzungs-Block · Stütze, kein Lead */
.not-this {
  margin-top: clamp(2rem, 5vw, 3rem);
  padding-top: clamp(1.75rem, 4vw, 2.25rem);
  border-top: 1px solid var(--hair);
}
.not-this-k {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.04em;
  color: var(--mute);
  margin: 0 0 1rem;
}
.not-this ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 0.7rem;
}
.not-this li {
  display: flex;
  gap: 0.7rem;
  font-size: 1.0625rem;
  line-height: 1.45;
  color: var(--text-soft);
}
.not-this li::before {
  content: "";
  flex: none;
  margin-top: 0.6em;
  width: 5px; height: 5px;
  border-radius: var(--radius-pill);
  background: var(--mute);
}
@media (min-width: 720px) {
  .not-this ul { grid-template-columns: repeat(3, 1fr); }
}

/* ── Für wen ──────────────────────────────────────────── */
.audience .wrap { max-width: 42ch; }
.audience-h { max-width: 16ch; }
.audience-body {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 1rem + 2.2vw, 2.5rem);
  line-height: 1.2;
  color: var(--text-soft);
  margin: 1.75rem 0 0;
}
.audience-body .accent { color: var(--accent); }

/* ── Schluss-CTA ──────────────────────────────────────── */
.outro { text-align: center; }
.outro-h { max-width: 16ch; margin-inline: auto; }
.outro .hero-cta { justify-content: center; margin-top: 2.25rem; }
.notify {
  margin-top: 2.5rem;
  font-family: var(--font-mono);
  font-size: 0.8125rem;
  color: var(--mute);
  letter-spacing: 0.02em;
}
.notify a { color: var(--text-soft); text-decoration: underline; text-underline-offset: 3px; }
.notify a:hover { color: var(--accent); }

/* ── Footer ───────────────────────────────────────────── */
.site-foot {
  border-top: 1px solid var(--hair);
  padding-block: 2.5rem;
}
.site-foot .wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  font-family: var(--font-mono);
  font-size: 0.75rem;
  letter-spacing: 0.02em;
  color: var(--mute);
}
.foot-brand { color: var(--text-soft); }
.site-foot nav { display: flex; flex-wrap: wrap; gap: 1.25rem; }
.site-foot a { text-decoration: none; color: var(--mute); }
.site-foot a:hover { color: var(--text-soft); }

/* ── Reveal-on-scroll (sehr leise, optional) ──────────── */
.reveal { opacity: 0; transform: translateY(14px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
  .live-ring { animation: none; }
}
