/* Session Pilot website. Same palette as the app: deep aubergine with cream type in dark mode,
   paper-cream in light mode, Punch In Pete's purple as the accent. No scripts, no trackers. */
:root {
  --bg: #1b1724; --panel: #241f30; --panel-2: #2d2740; --line: #3a3350; --line-soft: #2f2941;
  --text: #f3efe6; --muted: #a89fbd; --faint: #7d7494;
  --accent: #b99ae8; --accent-strong: #7a4fc6; --accent-ink: #ffffff;
  --ok: #5fae6a; --warn: #e5a33d; --bad: #e5574f;
  --note-bg: #332a52;
  --shadow: 0 10px 30px rgba(0,0,0,.35);
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f6f2ea; --panel: #fffdf8; --panel-2: #efe9dd; --line: #ddd4c4; --line-soft: #e8e1d3;
    --text: #1d1830; --muted: #6b6480; --faint: #9a93aa;
    --accent: #7a4fc6; --accent-strong: #7a4fc6; --accent-ink: #ffffff;
    --note-bg: #ece4fb;
    --shadow: 0 10px 30px rgba(60,40,90,.12);
    color-scheme: light;
  }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 16px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Helvetica, Arial, sans-serif;
  -webkit-font-smoothing: antialiased; min-height: 100vh; display: flex; flex-direction: column;
}
a { color: var(--accent); text-underline-offset: 2px; }
a:hover { text-decoration-thickness: 2px; }
img { max-width: 100%; height: auto; }
h1, h2, h3 { line-height: 1.2; letter-spacing: -.2px; margin: 0 0 .4em; }
h1 { font-size: 34px; font-weight: 800; }
h2 { font-size: 24px; font-weight: 700; }
h3 { font-size: 17px; font-weight: 700; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 980px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 720px; }
.muted { color: var(--muted); }
.small { font-size: 14px; }

/* ---- header ---- */
.top { border-bottom: 1px solid var(--line-soft); background: var(--panel); }
.top .wrap { display: flex; align-items: center; gap: 14px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 9px; font-weight: 700; font-size: 16px; color: var(--text); text-decoration: none; flex: 1; min-width: 0; white-space: nowrap; }
.brand img { width: 28px; height: 28px; border-radius: 7px; }
.nav { display: flex; gap: 4px; flex-wrap: wrap; justify-content: flex-end; }
.nav a { color: var(--muted); text-decoration: none; font-size: 14px; padding: 6px 10px; border-radius: 8px; }
.nav a:hover, .nav a[aria-current] { color: var(--text); background: var(--panel-2); }

/* ---- buttons ---- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 12px; padding: 12px 20px; font-weight: 600; text-decoration: none; border: 1px solid transparent; cursor: pointer; font-size: 16px; line-height: 1.2; }
.btn.primary { background: var(--accent-strong); color: var(--accent-ink); box-shadow: 0 6px 18px color-mix(in srgb, var(--accent-strong) 35%, transparent); }
.btn.primary:hover { filter: brightness(1.08); text-decoration: none; }
.btn.secondary { background: var(--panel); color: var(--text); border-color: var(--line); }
.btn.secondary:hover { border-color: var(--accent); text-decoration: none; }
.btn svg { width: 18px; height: 18px; fill: currentColor; }

/* ---- hero ---- */
.hero { padding: 40px 0 28px; text-align: center; }
.hero .pete { width: 190px; height: auto; filter: drop-shadow(0 14px 28px rgba(0,0,0,.35)); margin: 0 auto 12px; display: block; }
.hero .kicker { color: var(--accent); font-weight: 700; font-size: 13px; letter-spacing: 1.2px; text-transform: uppercase; margin-bottom: 10px; }
.hero h1 { max-width: 14em; margin-left: auto; margin-right: auto; }
.hero .lead { color: var(--muted); font-size: 18px; max-width: 30em; margin: 0 auto 22px; }
.cta { display: flex; flex-direction: column; align-items: center; gap: 10px; }
.cta .fine { color: var(--faint); font-size: 13.5px; margin: 0; }
.cta .fine strong { color: var(--muted); font-weight: 600; }

/* ---- the exchange: you say, he does ---- */
.exchange { margin: 10px auto 0; max-width: 560px; display: flex; flex-direction: column; gap: 10px; text-align: left; }
.turn { display: flex; gap: 10px; align-items: flex-end; max-width: 92%; }
.turn.me { align-self: flex-end; flex-direction: row-reverse; }
.turn img { width: 34px; height: 34px; flex: none; object-fit: contain; filter: drop-shadow(0 3px 6px rgba(0,0,0,.3)); }
.msg { padding: 10px 14px; border-radius: 16px; font-size: 15px; }
.msg.user { background: var(--note-bg); border-bottom-right-radius: 6px; }
.msg.pete { background: var(--panel); border: 1px solid var(--line-soft); border-bottom-left-radius: 6px; box-shadow: 0 4px 14px rgba(0,0,0,.12); }

/* ---- benefits ---- */
.benefits { display: grid; grid-template-columns: 1fr; gap: 14px; padding: 28px 0; }
.card { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 20px; box-shadow: 0 4px 14px rgba(0,0,0,.08); }
.card .icon { width: 40px; height: 40px; border-radius: 12px; background: color-mix(in srgb, var(--accent-strong) 16%, transparent); display: grid; place-items: center; margin-bottom: 12px; }
.card .icon svg { width: 22px; height: 22px; fill: none; stroke: var(--accent); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

/* ---- how it works / requirements ---- */
.section { padding: 28px 0; border-top: 1px solid var(--line-soft); }
.section h2 { text-align: center; margin-bottom: 18px; }
.steps { display: grid; grid-template-columns: 1fr; gap: 12px; counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li { position: relative; background: var(--panel); border: 1px solid var(--line-soft); border-radius: 14px; padding: 16px 16px 16px 58px; counter-increment: step; }
.steps li::before { content: counter(step); position: absolute; left: 16px; top: 16px; width: 28px; height: 28px; border-radius: 50%; background: var(--accent-strong); color: #fff; font-weight: 700; display: grid; place-items: center; font-size: 14px; }
.steps strong { display: block; margin-bottom: 2px; }
.steps span { color: var(--muted); font-size: 15px; }
.req { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; list-style: none; padding: 0; margin: 0; }
.req li { background: var(--panel); border: 1px solid var(--line); border-radius: 999px; padding: 7px 14px; font-size: 14px; color: var(--text); }
.req li::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); margin-right: 8px; vertical-align: 1px; }

/* ---- callout ---- */
.callout { background: var(--panel); border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line-soft)); border-radius: 16px; padding: 18px 20px; display: flex; gap: 14px; align-items: flex-start; }
.callout img { width: 54px; height: 54px; flex: none; object-fit: contain; }
.callout > div { min-width: 0; overflow-wrap: anywhere; }
.callout .big { font-size: 18px; font-weight: 700; }
.callout p { margin: 0; }
.callout p + p { margin-top: 6px; }

/* ---- prose pages ---- */
.page { padding: 36px 0 20px; flex: 1; }
.page header { margin-bottom: 28px; }
.page .dated { color: var(--faint); font-size: 14px; margin: 0; }
.page h2 { font-size: 20px; margin-top: 34px; }
.page h3 { margin-top: 22px; }
.page ul, .page ol { padding-left: 22px; margin: 0 0 1em; }
.page li { margin-bottom: 6px; }
.page table { width: 100%; border-collapse: collapse; font-size: 15px; margin: 0 0 1.2em; }
.page th, .page td { text-align: left; padding: 9px 10px 9px 0; border-bottom: 1px solid var(--line-soft); vertical-align: top; }
.page th { color: var(--muted); font-weight: 600; font-size: 13.5px; }
.summary { background: var(--panel); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; margin-bottom: 8px; }
.summary h2 { margin-top: 0; font-size: 17px; }
.summary ul { margin: 0; }
.review { background: color-mix(in srgb, var(--warn) 14%, transparent); border: 1px solid color-mix(in srgb, var(--warn) 55%, transparent); border-radius: 10px; padding: 8px 12px; font-size: 14px; margin: 0 0 1em; }
.review strong { color: var(--warn); }
.toc { display: flex; flex-wrap: wrap; gap: 6px 14px; padding: 0; margin: 0 0 1em; list-style: none; font-size: 14px; }
.toc li { margin: 0; }

/* ---- FAQ ---- */
.faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 14px; padding: 0 18px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 12px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; color: var(--accent); font-size: 22px; font-weight: 400; line-height: 1; flex: none; }
.faq details[open] summary::after { content: "\2212"; }
.faq details > div { padding: 0 0 16px; color: var(--muted); font-size: 15px; }
.faq details > div p:last-child { margin-bottom: 0; }
.faq code { background: color-mix(in srgb, var(--accent) 14%, transparent); padding: 1px 6px; border-radius: 5px; font: 13.5px ui-monospace, Menlo, monospace; color: var(--text); }
.contact { text-align: center; padding: 10px 0 30px; }
.contact .big { font-size: 20px; font-weight: 700; }

/* ---- footer ---- */
footer { margin-top: auto; border-top: 1px solid var(--line-soft); background: var(--panel); }
footer .wrap { padding-top: 22px; padding-bottom: 28px; display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--muted); }
footer nav { display: flex; flex-wrap: wrap; gap: 6px 18px; }
footer nav a { color: var(--muted); text-decoration: none; }
footer nav a:hover { color: var(--text); text-decoration: underline; }
footer .legal { color: var(--faint); font-size: 13px; margin: 0; }

@media (min-width: 640px) {
  h1 { font-size: 44px; }
  .hero { padding: 56px 0 36px; }
  .hero .pete { width: 230px; }
  .benefits { grid-template-columns: 1fr 1fr; padding: 36px 0; }
  .steps { grid-template-columns: 1fr 1fr 1fr; }
  .cta { flex-direction: row; justify-content: center; flex-wrap: wrap; }
  .cta .fine { width: 100%; text-align: center; }
  footer .wrap { flex-direction: row; align-items: center; justify-content: space-between; }
}
@media (min-width: 900px) {
  .hero .wrap { display: grid; grid-template-columns: 1fr 280px; gap: 30px; align-items: center; text-align: left; }
  .hero h1, .hero .lead { margin-left: 0; }
  .hero .pete { width: 280px; margin: 0; order: 2; }
  .cta { justify-content: flex-start; }
  .cta .fine { text-align: left; }
  .exchange { grid-column: 1 / -1; order: 3; margin: 26px auto 0; max-width: 620px; }
  .benefits { grid-template-columns: repeat(5, 1fr); }
  .card { padding: 18px; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
@media (max-width: 440px) { .nav a[href="index.html"] { display: none; } .nav a { padding: 6px 8px; } }
