/* Landing page. Colours, fonts and radii come from app/tokens.css, the
   same tokens the app uses; change colours there, never here. */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
body {
  background: var(--ground);
  color: var(--ink);
  font-family: var(--fu);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; height: auto; }
a { color: var(--accent); }
/* The transparent outline is drawn in forced-colors mode, where box-shadow is dropped. */
:focus-visible { outline: 2px solid transparent; outline-offset: 1px; box-shadow: var(--ring); }

.wrap { max-width: 1120px; margin: 0 auto; padding: 0 16px; }
.wrap--narrow { max-width: 760px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }

h1, h2, h3 { font-family: var(--fd); color: var(--ink); line-height: 1.15; text-wrap: balance; }
h1 { font-size: clamp(36px, 6.4vw, 60px); font-weight: 800; letter-spacing: -.025em; }
h2 { font-size: clamp(26px, 3.6vw, 34px); font-weight: 750; letter-spacing: -.015em; margin-bottom: 28px; }
h3 { font-size: 17px; font-weight: 700; margin-bottom: 6px; }

/* ── Buttons (the app's .btn shapes, on the same tokens) ── */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 40px; padding: 0 16px;
  border: 1.5px solid transparent; border-radius: var(--rs);
  font-family: var(--fu); font-size: 15px; font-weight: 650; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer;
  transition: background var(--tr), border-color var(--tr), color var(--tr);
  -webkit-tap-highlight-color: transparent;
}
.btn--lg { min-height: 50px; padding: 0 24px; font-size: 16px; border-radius: var(--r); }
.btn--primary   { background: var(--accent); color: var(--on-accent); border-color: var(--accent); }
.btn--primary:hover   { background: var(--accent-hi); border-color: var(--accent-hi); }
.btn--secondary { background: var(--surface); color: var(--ink2); border-color: var(--border-firm); }
.btn--secondary:hover { background: var(--raised); color: var(--ink); border-color: var(--ink4); }
.btn--onDark    { background: transparent; color: var(--hdr-ink); border-color: var(--hdr-line); min-height: 36px; font-size: 14px; }
.btn--onDark:hover    { background: var(--hdr-hover); border-color: var(--hdr-ink2); }

/* ── Top bar ── */
.top { background: var(--hdr-bg); border-bottom: 1px solid var(--hdr-line); }
.top-in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 60px; }
.top-logo { display: block; border-radius: var(--rxs); }

/* ── Hero ── */
.hero { padding: 56px 0 64px; overflow: hidden; }
.hero-in { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) {
  .hero { padding: 80px 0 88px; }
  .hero-in { grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); }
}
.kicker {
  font-size: 13px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 14px;
}
.lede { font-size: clamp(17px, 2vw, 19px); color: var(--ink2); margin: 20px 0 30px; max-width: 34em; }
.cta-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; }
.cta-note { font-size: 14px; color: var(--ink3); }

.join { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); max-width: 380px; }
.join label { display: block; font-size: 14px; font-weight: 600; color: var(--ink2); margin-bottom: 8px; }
.join-row { display: flex; gap: 8px; }
.join input {
  flex: 1; min-width: 0; min-height: 40px; padding: 0 12px;
  font: 600 16px/1 var(--fu); letter-spacing: .08em; text-transform: uppercase;
  color: var(--ink); background: var(--surface);
  border: 1.5px solid var(--border-firm); border-radius: var(--rs);
}
.join input::placeholder { color: var(--ink3); opacity: .6; letter-spacing: .08em; }
.join input:focus { outline: none; border-color: var(--accent); box-shadow: var(--ring); }

.hero-shot {
  border-radius: var(--rlg); overflow: hidden;
  border: 1px solid var(--border); box-shadow: var(--shm);
  background: var(--surface);
}
/* One screenshot per theme, following the same three rules as tokens.css */
.shot--dark { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .shot--light { display: none; }
  :root:not([data-theme="light"]) .shot--dark  { display: block; }
}
:root[data-theme="dark"] .shot--light { display: none; }
:root[data-theme="dark"] .shot--dark  { display: block; }

/* ── Bands ── */
.band { padding: 64px 0; }
@media (min-width: 960px) { .band { padding: 88px 0; } }
.band--alt { background: var(--raised); }
.band--dark { background: var(--hdr-bg); }
.band--dark h2 { color: var(--hdr-ink); }
.sub { color: var(--ink2); max-width: 40em; margin: -14px 0 32px; }
.band--dark .sub { color: var(--hdr-ink2); }

.grid { display: grid; gap: 14px; }
@media (min-width: 640px) { .grid--3, .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 960px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r); padding: 20px 22px; box-shadow: var(--sh);
}
.card p { color: var(--ink2); font-size: 15px; }
.pain { border-left: 4px solid var(--ball); }
.pain p { color: var(--ink); font-family: var(--fd); font-size: 17px; font-weight: 600; line-height: 1.4; }

/* ── Steps ── */
.steps { list-style: none; display: grid; gap: 28px; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; } }
.step-n {
  display: inline-grid; place-items: center; width: 40px; height: 40px; margin-bottom: 14px;
  border-radius: 50%; background: var(--accent); color: var(--on-accent);
  font: 800 18px/1 var(--fd);
}
.steps p { color: var(--ink2); }

/* ── Stats ── */
.stats { display: grid; gap: 14px; }
@media (min-width: 760px) { .stats { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat {
  border: 1px solid var(--hdr-line); border-radius: var(--r);
  padding: 22px 24px; display: flex; flex-direction: column; gap: 6px;
}
.stat-v { font: 800 clamp(36px, 5vw, 48px)/1 var(--fd); color: var(--ball); letter-spacing: -.02em; }
.stat-l { color: var(--hdr-ink2); font-size: 15px; }

/* ── Online sessions ── */
.online { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 40px; }
.online h2 { margin-bottom: 12px; }
.online p { color: var(--ink2); max-width: 36em; }

/* ── FAQ ── */
.faq { display: grid; gap: 10px; }
.faq details {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--r);
}
.faq summary {
  list-style: none; cursor: pointer; padding: 16px 48px 16px 20px; position: relative;
  font: 650 16px/1.35 var(--fd); color: var(--ink); border-radius: var(--r);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ''; position: absolute; right: 20px; top: 50%; width: 9px; height: 9px;
  border-right: 2px solid var(--ink3); border-bottom: 2px solid var(--ink3);
  transform: translateY(-70%) rotate(45deg); transition: transform var(--tr);
}
.faq details[open] summary::after { transform: translateY(-30%) rotate(-135deg); }
.faq details p { padding: 0 20px 18px; color: var(--ink2); }

/* ── Footer ── */
.foot { background: var(--hdr-bg); color: var(--hdr-ink2); font-size: 14px; }
.foot-in { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; min-height: 76px; padding-top: 18px; padding-bottom: 18px; }
.foot a { color: var(--hdr-ink); margin-left: auto; }

@media (hover: none) {
  .btn--primary:hover   { background: var(--accent); border-color: var(--accent); }
  .btn--secondary:hover { background: var(--surface); color: var(--ink2); border-color: var(--border-firm); }
  .btn--onDark:hover    { background: transparent; border-color: var(--hdr-line); }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; } }
