/* CoachFlat — coachflat.app
   Brand: plum accent (matches the app's AccentColor), system type stack,
   light/dark via prefers-color-scheme. Single stylesheet, no dependencies. */

:root {
  --plum: #A72871;
  --plum-deep: #7E1E55;
  --ink: #1d1d1f;
  --body: #424245;
  --muted: #86868b;
  --bg: #ffffff;
  --surface: #faf7f9;
  --line: #e8e3e6;
  --max: 1080px;
}

@media (prefers-color-scheme: dark) {
  :root {
    --plum: #EA6BA8;
    --plum-deep: #F09BC4;
    --ink: #f5f5f7;
    --body: #c7c7cc;
    --muted: #8e8e93;
    --bg: #141013;
    --surface: #1e1820;
    --line: #2e2630;
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.65;
  color: var(--body);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
}

.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }

/* ---- header ---- */
header.site {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: saturate(180%) blur(16px);
  border-bottom: 1px solid var(--line);
}
header.site .wrap {
  display: flex; align-items: center; justify-content: space-between;
  height: 56px; gap: 16px;
}
.brand {
  font-weight: 700; font-size: 1.0625rem; color: var(--ink);
  text-decoration: none; letter-spacing: -0.01em;
}
nav.site { display: flex; align-items: center; gap: 20px; }
nav.site a {
  color: var(--body); text-decoration: none; font-size: 0.9375rem;
}
nav.site a:hover { color: var(--plum); }

/* ---- hero ---- */
.hero { padding: 72px 0 40px; text-align: center; }
.badge {
  display: inline-block; font-size: 0.8125rem; font-weight: 600;
  color: var(--plum); background: color-mix(in srgb, var(--plum) 10%, transparent);
  border: 1px solid color-mix(in srgb, var(--plum) 25%, transparent);
  padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
h1 {
  font-size: clamp(2.25rem, 6vw, 3.5rem); line-height: 1.08;
  font-weight: 700; color: var(--ink); letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.lede {
  font-size: clamp(1.0625rem, 2.2vw, 1.25rem); max-width: 620px;
  margin: 0 auto 12px; color: var(--body);
}
.subtle { color: var(--muted); font-size: 0.875rem; margin-top: 14px; }

.hero-shot {
  display: block; width: 100%; max-width: 300px; height: auto;
  margin: 40px auto 0; border-radius: 28px;
  border: 1px solid var(--line);
  box-shadow: 0 24px 60px -20px rgba(0,0,0,0.28);
}

/* ---- price strip ---- */
.strip {
  background: var(--surface); border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line); padding: 40px 0; margin: 56px 0;
}
.price-grid {
  display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 28px; text-align: center;
}
.price-grid .n {
  display: block; font-size: 2rem; font-weight: 700;
  color: var(--plum); letter-spacing: -0.02em;
}
.price-grid .l { font-size: 0.9375rem; color: var(--body); }

/* ---- feature rows ---- */
.row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 48px;
  align-items: center; padding: 56px 0;
}
.row + .row { border-top: 1px solid var(--line); }
.row.reverse .copy { order: 2; }
.row h2 {
  font-size: clamp(1.375rem, 3vw, 1.875rem); color: var(--ink);
  font-weight: 700; letter-spacing: -0.02em; margin-bottom: 12px; line-height: 1.2;
}
.row p { margin-bottom: 14px; }
.row ul { list-style: none; }
.row li {
  position: relative; padding-left: 22px; margin-bottom: 8px;
  font-size: 0.9375rem;
}
.row li::before {
  content: ""; position: absolute; left: 4px; top: 0.6em;
  width: 6px; height: 6px; border-radius: 50%; background: var(--plum);
}
.shot img {
  display: block; width: 100%; max-width: 280px; height: auto;
  margin: 0 auto; border-radius: 24px; border: 1px solid var(--line);
  box-shadow: 0 18px 44px -18px rgba(0,0,0,0.25);
}

/* ---- faq ---- */
.faq { padding: 56px 0; border-top: 1px solid var(--line); }
.faq h2 {
  font-size: 1.75rem; color: var(--ink); font-weight: 700;
  letter-spacing: -0.02em; margin-bottom: 24px;
}
.faq details {
  border-bottom: 1px solid var(--line); padding: 16px 0;
}
.faq summary {
  cursor: pointer; font-weight: 600; color: var(--ink);
  font-size: 1rem; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: " +"; color: var(--plum); font-weight: 700; }
.faq details[open] summary::after { content: " –"; }
.faq details p { margin-top: 10px; font-size: 0.9375rem; }

/* ---- footer ---- */
footer.site {
  border-top: 1px solid var(--line); padding: 32px 0 56px;
  margin-top: 40px; font-size: 0.875rem; color: var(--muted);
}
footer.site .wrap { display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; }
footer.site a { color: var(--body); text-decoration: none; }
footer.site a:hover { color: var(--plum); text-decoration: underline; }
footer.site nav { display: flex; gap: 18px; flex-wrap: wrap; }

/* ---- legal pages ---- */
.legal { max-width: 720px; padding: 48px 24px 80px; margin: 0 auto; }
.legal h1 { font-size: 2rem; margin-bottom: 4px; }
.legal .updated { color: var(--muted); font-size: 0.875rem; margin-bottom: 32px; }
.legal h2 {
  font-size: 1.125rem; font-weight: 600; color: var(--ink);
  margin-top: 30px; margin-bottom: 8px;
}
.legal p, .legal li { font-size: 0.9375rem; margin-bottom: 10px; }
.legal ul { padding-left: 22px; margin-bottom: 12px; }
.legal a { color: var(--plum); }
.legal table {
  width: 100%; border-collapse: collapse; margin: 12px 0 18px; font-size: 0.875rem;
}
.legal th, .legal td {
  text-align: left; padding: 8px 10px; border: 1px solid var(--line); vertical-align: top;
}
.legal th { background: var(--surface); color: var(--ink); font-weight: 600; }

@media (max-width: 760px) {
  .row { grid-template-columns: 1fr; gap: 28px; padding: 40px 0; }
  .row.reverse .copy { order: 0; }
  nav.site { gap: 14px; }
  nav.site a.hide-sm { display: none; }
  .hero { padding: 48px 0 24px; }
}
