/* Plexcoach landing — same palette as the app/web: blue #1F40E6 on warm white,
   navy hero. Dependency-free; system font stack matching web/src/styles.css. */
:root {
  --blue: #1f40e6;
  --navy: #051c2c;
  --warm: #faf9f6;
  --text: #1a1a1a;
  --muted: #6b6b6b;
  --divider: #e6e4df;
  --bg: #ffffff;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--text);
  background: var(--warm);
  line-height: 1.6;
}
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; }

.container { max-width: 960px; margin: 0 auto; padding: 0 24px; }
.muted { color: var(--muted); }

/* Screen-reader-only (visible to assistive tech, removed from the visual layout). */
.visually-hidden {
  position: absolute; width: 1px; height: 1px; margin: -1px;
  padding: 0; border: 0; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap;
}
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }
.hero :focus-visible, .story :focus-visible, footer :focus-visible { outline-color: #fff; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

/* ── Header ─────────────────────────────────────────────────────────────── */
header {
  background: var(--bg);
  border-bottom: 1px solid var(--divider);
  position: sticky; top: 0; z-index: 10;
}
.nav {
  display: flex; align-items: center; gap: 12px;
  max-width: 960px; margin: 0 auto; padding: 12px 24px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand img { width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--divider); }
.nav .spacer { flex: 1; }
.nav a.link { color: var(--muted); font-size: 15px; margin-left: 18px; }
.nav a.link:hover { color: var(--text); text-decoration: none; }
.nav a.cta {
  margin-left: 18px; padding: 8px 18px; border-radius: 999px;
  background: var(--blue); color: #fff; font-size: 15px; font-weight: 600;
}
.nav a.cta:hover { text-decoration: none; filter: brightness(1.1); }

/* ── Hero ───────────────────────────────────────────────────────────────── */
.hero {
  background: var(--navy); color: #fff;
  padding: 96px 0 104px;
}
.hero h1 {
  font-size: clamp(36px, 6vw, 60px);
  line-height: 1.12; margin: 0 0 22px; letter-spacing: -0.02em;
  max-width: 760px;
}
.hero p.lede {
  font-size: clamp(18px, 2.3vw, 22px);
  color: rgba(255,255,255,.82);
  max-width: 620px; margin: 0 0 38px;
}
.hero .actions { display: flex; gap: 14px; flex-wrap: wrap; }
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 999px;
  font-size: 16px; font-weight: 600; border: none; cursor: pointer;
  font-family: inherit;
}
.btn.primary { background: var(--blue); color: #fff; }
.btn.primary:hover { filter: brightness(1.12); text-decoration: none; }
.btn.ghost { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.4); }
.btn.ghost:hover { border-color: #fff; text-decoration: none; }

/* ── Sections ───────────────────────────────────────────────────────────── */
section { padding: 72px 0; }
section.alt { background: var(--bg); border-top: 1px solid var(--divider); border-bottom: 1px solid var(--divider); }
h2.section-title { font-size: clamp(26px, 3.6vw, 36px); margin: 0 0 10px; letter-spacing: -0.01em; }
p.section-sub { color: var(--muted); font-size: 17px; margin: 0 0 40px; max-width: 640px; }

/* ── Story (split-screen narrative) ─────────────────────────────────────── */
.story { background: var(--navy); color: #fff; padding: 88px 0; }
.story-grid { display: grid; gap: 40px; }
@media (min-width: 820px) {
  .story-grid { grid-template-columns: 1fr 1.1fr; gap: 72px; }
  .story-pin h2 { position: sticky; top: 110px; }
}
.story-pin h2 {
  font-size: clamp(30px, 4.5vw, 46px); line-height: 1.12;
  letter-spacing: -0.02em; margin: 0;
}
.story-beats p {
  font-size: clamp(17px, 2vw, 20px); color: rgba(255,255,255,.78);
  margin: 0 0 26px;
}
.story-beats .story-kicker {
  color: #fff; font-weight: 600; font-size: clamp(19px, 2.4vw, 24px);
  margin-bottom: 0;
}

/* ── How it works ───────────────────────────────────────────────────────── */
.how-grid {
  display: grid; gap: 40px 56px;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  margin-top: 44px;
}
.how-item { border-top: 2px solid var(--divider); padding-top: 24px; }
.how-item svg { width: 28px; height: 28px; color: var(--blue); margin-bottom: 14px; }
.how-item h3 { margin: 0 0 8px; font-size: 18px; }
.how-item p { margin: 0; color: var(--muted); font-size: 15.5px; }
.compound {
  margin: 72px auto 0; text-align: center; max-width: 680px;
  font-size: clamp(20px, 3vw, 28px); font-weight: 700; letter-spacing: -0.01em;
}

/* ── Privacy teaser ─────────────────────────────────────────────────────── */
.privacy-teaser {
  display: grid; gap: 28px; grid-template-columns: 1fr;
}
@media (min-width: 760px) { .privacy-teaser { grid-template-columns: 1.2fr 1fr; align-items: center; } }
.privacy-points { list-style: none; padding: 0; margin: 0 0 20px; }
.privacy-points li { padding-left: 30px; position: relative; margin-bottom: 12px; font-size: 16px; }
.privacy-points li::before {
  content: "✓"; position: absolute; left: 0; top: 0;
  color: var(--blue); font-weight: 700;
}
.privacy-card {
  background: var(--navy); color: rgba(255,255,255,.9);
  border-radius: 16px; padding: 30px; font-size: 15px;
}
.privacy-card strong { color: #fff; }

/* ── Book a demo / contact ──────────────────────────────────────────────── */
.contact-box {
  background: var(--bg); border: 1px solid var(--divider); border-radius: 16px;
  padding: 40px; max-width: 620px; margin: 0 auto; text-align: center;
}
.contact-box h2 { margin-top: 0; }
.contact-box .muted { max-width: 480px; margin: 0 auto; }
.contact-form { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; text-align: left; }
.contact-form .field-row { display: flex; gap: 12px; }
.contact-form .field { flex: 1; }
.contact-form input,
.contact-form textarea {
  width: 100%; padding: 12px 16px; border: 1px solid var(--divider); border-radius: 10px;
  font: inherit; background: var(--warm); color: var(--text);
}
.contact-form textarea { resize: vertical; min-height: 84px; }
.contact-form input:focus,
.contact-form textarea:focus { outline: 2px solid var(--blue); outline-offset: -1px; }
.contact-form .btn { margin-top: 4px; }
@media (max-width: 520px) { .contact-form .field-row { flex-direction: column; gap: 12px; } }
/* Honeypot — hidden from humans, present for bots. */
.wf-company { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }
.waitlist-note { color: var(--muted); font-size: 13px; margin-top: 16px; }
.waitlist-status { font-size: 15px; margin-top: 14px; min-height: 22px; }
.waitlist-status.ok { color: #1a7f37; }
.waitlist-status.err { color: #b3261e; }

/* ── Footer ─────────────────────────────────────────────────────────────── */
footer {
  background: var(--navy); color: rgba(255,255,255,.7);
  padding: 40px 0; font-size: 14px;
}
footer .cols { display: flex; flex-wrap: wrap; gap: 24px; justify-content: space-between; align-items: center; }
footer a { color: rgba(255,255,255,.85); margin-right: 20px; }
footer a:hover { color: #fff; }

/* ── Prose pages (privacy / impressum / datenschutz) ────────────────────── */
.prose { max-width: 760px; margin: 0 auto; padding: 56px 24px 80px; }
.prose h1 { font-size: clamp(28px, 4vw, 40px); letter-spacing: -0.01em; margin-bottom: 6px; }
.prose h2 { font-size: 22px; margin-top: 40px; }
.prose h3 { font-size: 17px; margin-top: 28px; }
.prose p, .prose li { font-size: 16px; }
.prose .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.prose table { border-collapse: collapse; width: 100%; font-size: 14px; margin: 18px 0; }
.prose th, .prose td { border: 1px solid var(--divider); padding: 8px 10px; text-align: left; vertical-align: top; }
.prose th { background: var(--bg); }
.prose .callout {
  background: rgba(31,64,230,.06); border-left: 4px solid var(--blue);
  border-radius: 0 10px 10px 0; padding: 14px 18px; margin: 22px 0; font-size: 15px;
}
.prose .draft-banner {
  background: #fff7e0; border: 1px solid #e6cf8a; color: #6b5200;
  border-radius: 10px; padding: 12px 16px; margin-bottom: 28px; font-size: 14px;
}

/* ── Mobile ─────────────────────────────────────────────────────────────── */
@media (max-width: 620px) {
  .nav { gap: 8px; padding: 12px 18px; }
  .nav a.link { display: none; }         /* text links live in the footer on small screens */
  .nav a.cta { margin-left: auto; padding: 8px 14px; font-size: 14px; }
  .brand { font-size: 18px; }
  .hero { padding: 56px 0 64px; }
  section { padding: 56px 0; }
  footer .cols { flex-direction: column; align-items: flex-start; gap: 14px; }
}

/* ── Print (legal pages get printed by buyers' legal teams) ─────────────── */
@media print {
  header, footer, .nav { display: none; }
  body { background: #fff; color: #000; }
  .prose { padding: 0; max-width: none; }
  .prose a { color: #000; text-decoration: underline; }
  .prose .callout, .prose th { background: #fff; }
}
