/* coachcard.fit: Coachcard design-system tokens (dark first, light from the system setting),
   layout from docs/Coachcard.html (desktop and phone boards). No web fonts, no scripts. */

:root {
  --bg: #000000; --surface: #1c1c1f; --surface-2: #2c2c31; --line: #3a3a40; --control-border: #76767f;
  --ink: #ffffff; --ink-muted: #a3a3ad; --state-hover: #ffffff0d;
  --effort: #a8d672; --effort-track: #252f19;
  --action: #a8d672; --on-action: #0d0d10; --link: #a8d672;
  --focus: #38d3ff; --focus-ring: 0 0 0 2px #000000, 0 0 0 4px #38d3ff;
  --phone-shadow: 0 40px 80px rgba(0, 0, 0, .5);
  --font-sans: -apple-system, BlinkMacSystemFont, "SF Pro Text", "SF Pro Display", "Helvetica Neue", system-ui, sans-serif;
  color-scheme: dark;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f2f2f5; --surface: #ffffff; --surface-2: #e6e6eb; --line: #c9c9d1; --control-border: #80808a;
    --ink: #0d0d10; --ink-muted: #5c5c66; --state-hover: #0d0d100a;
    --effort: #3f6f00; --effort-track: #e1efc6;
    --action: #a8d672; --on-action: #0d0d10; --link: #3f6f00;
    --focus: #0a6c9e; --focus-ring: 0 0 0 2px #f2f2f5, 0 0 0 4px #0a6c9e;
    --phone-shadow: 0 24px 60px rgba(13, 13, 16, .18);
    color-scheme: light;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; }
img { max-width: 100%; }
a:focus-visible { outline: none; box-shadow: var(--focus-ring); border-radius: 8px; }
.vh { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: min(1120px, 100% - 40px); margin: 0 auto; }

/* Header */
.head { display: flex; align-items: center; justify-content: space-between; height: 88px; }
.logo-link { display: block; color: var(--ink); }
.logo { display: block; width: 150px; height: 22px; }
.foot .logo { width: 122px; height: 18px; }
.nav { display: flex; gap: 8px; }
.nav a { color: var(--ink-muted); text-decoration: none; font-size: 15px; font-weight: 500; padding: 12px 14px; border-radius: 9999px; }
.nav a:hover { color: var(--ink); background: var(--state-hover); }
.nav a[aria-current] { color: var(--ink); background: var(--surface); }
.nav .only-phone { display: none; }

/* Footer */
.foot { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding: 48px 0 56px; margin-top: 96px; border-top: 1px solid var(--line); }
.foot-id { display: flex; flex-direction: column; gap: 10px; font-size: 14px; color: var(--ink-muted); }
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 24px; }
.foot nav a { color: var(--ink-muted); text-decoration: none; font-size: 15px; line-height: 44px; }
.foot nav a:hover { color: var(--ink); }
.link { color: var(--effort); font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* Home */
.hero { display: grid; grid-template-columns: 1fr 380px; gap: 96px; align-items: center; padding: 64px 0 96px; }
.eyebrow { font-size: 15px; font-weight: 600; color: var(--effort); margin: 0 0 16px; }
.h1 { font-size: 64px; line-height: 68px; font-weight: 700; letter-spacing: -0.025em; margin: 0; }
.lede { font-size: 21px; line-height: 31px; color: var(--ink-muted); margin: 24px 0 36px; max-width: 520px; }
.cta { display: flex; align-items: center; gap: 20px; }
.note { font-size: 15px; line-height: 21px; color: var(--ink-muted); margin: 0; }

/* Until Apple approves the app, a plain label stands where the official App Store badge will go. */
.store-soon { display: inline-flex; align-items: center; justify-content: center; flex: none; min-height: 53px; padding: 8px 20px; border: 1.5px solid var(--control-border); border-radius: 10px; color: var(--ink); font-size: 15px; font-weight: 600; line-height: 20px; text-align: center; }

.phone { display: block; width: 300px; aspect-ratio: 300 / 652; border-radius: 46px; overflow: hidden; box-shadow: 0 0 0 8px var(--surface-2), var(--phone-shadow); background: var(--bg); }
.phone picture { display: block; height: 100%; }
.phone img { display: block; width: 100%; height: 100%; object-fit: cover; }

.coach { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; background: var(--surface); border-radius: 28px; padding: 56px; }
.h2 { font-size: 40px; line-height: 46px; font-weight: 700; letter-spacing: -0.02em; margin: 0; }
.p { font-size: 18px; line-height: 28px; color: var(--ink-muted); margin: 16px 0 0; }
.quote { margin: 0; padding: 24px; border-radius: 20px; background: var(--surface-2); }
.quote p { margin: 0; font-size: 22px; line-height: 31px; font-weight: 600; }
.quote figcaption { margin-top: 12px; font-size: 14px; color: var(--ink-muted); }
.list { list-style: none; margin: 28px 0 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.list li { display: flex; gap: 12px; font-size: 17px; line-height: 24px; }
.list li::before { content: ""; flex: none; width: 8px; height: 8px; margin-top: 8px; border-radius: 9999px; background: var(--effort); }

.feat { display: grid; grid-template-columns: 1fr 1fr; gap: 96px; align-items: center; padding: 112px 0 0; }
.feat .phone { justify-self: center; }

.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding: 128px 0 0; }
.tile { background: var(--surface); border-radius: 20px; padding: 28px; }
.tile h3 { margin: 0 0 10px; font-size: 20px; line-height: 25px; font-weight: 600; }
.tile p { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-muted); }

.band { margin-top: 128px; display: flex; align-items: center; justify-content: space-between; gap: 48px; padding: 56px; border-radius: 28px; background: var(--effort-track); }
.band .p { color: var(--ink); }

/* Support */
.support { max-width: 680px; padding-top: 48px; }
.support h1 { font-size: 48px; line-height: 54px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 12px; }
.support .intro { font-size: 18px; line-height: 28px; color: var(--ink-muted); margin: 0; }
.mail { display: inline-flex; align-items: center; justify-content: center; min-height: 52px; padding: 0 28px; margin: 28px 0 40px; border-radius: 9999px; background: var(--action); color: var(--on-action); font-size: 17px; font-weight: 600; text-decoration: none; }
.rows { background: var(--surface); border-radius: 20px; padding: 0 24px; }
.row { padding: 20px 0; border-top: 1px solid var(--line); }
.row:first-child { border-top: 0; }
.row h2 { margin: 0 0 4px; font-size: 17px; line-height: 22px; font-weight: 600; }
.row p { margin: 0; font-size: 16px; line-height: 24px; color: var(--ink-muted); }
.legal-links { margin-top: 32px; display: flex; flex-direction: column; }
.legal-links a { display: flex; align-items: center; justify-content: space-between; min-height: 52px; color: var(--ink); text-decoration: none; font-size: 17px; border-bottom: 1px solid var(--line); }
.legal-links svg { color: var(--ink-muted); flex: none; }

/* Privacy and terms */
.legal { display: grid; grid-template-columns: 240px minmax(0, 680px); gap: 96px; padding: 48px 0 0; }
.toc { position: sticky; top: 24px; align-self: start; max-height: calc(100vh - 48px); overflow-y: auto; }
.toc-title { margin: 0 0 12px; font-size: 13px; font-weight: 600; color: var(--ink-muted); }
.toc ul { list-style: none; margin: 0; padding: 0; }
.toc a { display: block; padding: 6px 12px; margin-left: -12px; border-radius: 8px; color: var(--ink-muted); text-decoration: none; font-size: 14px; line-height: 20px; }
.toc a:hover { color: var(--ink); background: var(--surface); }
.toc-phone { display: none; background: var(--surface); border-radius: 16px; margin: 0 0 28px; }
.toc-phone summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: 0 16px; font-size: 15px; font-weight: 600; cursor: pointer; list-style: none; }
.toc-phone summary::-webkit-details-marker { display: none; }
.toc-phone[open] summary svg { transform: rotate(180deg); }
.toc-phone ul { list-style: none; margin: 0; padding: 0 16px 12px; }
.toc-phone a { display: block; padding: 8px 0; color: var(--ink-muted); text-decoration: none; font-size: 15px; line-height: 20px; }

.doc h1 { font-size: 48px; line-height: 54px; font-weight: 700; letter-spacing: -0.02em; margin: 0 0 16px; }
.doc h2 { font-size: 24px; line-height: 30px; font-weight: 700; margin: 48px 0 12px; scroll-margin-top: 24px; }
.doc h3 { font-size: 18px; line-height: 24px; font-weight: 600; margin: 28px 0 8px; scroll-margin-top: 24px; }
.doc p, .doc li { font-size: 17px; line-height: 28px; }
.doc p { margin: 0 0 16px; }
.doc ul, .doc ol { margin: 0 0 16px; padding-left: 22px; }
.doc li { margin-bottom: 8px; }
.doc a { color: var(--effort); font-weight: 600; }
.doc h1 + p { font-size: 15px; line-height: 24px; color: var(--ink-muted); }
.doc h1 + p strong { font-weight: 600; }
.doc table { border-collapse: collapse; width: 100%; margin: 0 0 16px; font-size: 15px; line-height: 22px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); }

/* Tablet */
@media (max-width: 1040px) {
  .hero { grid-template-columns: 1fr 300px; gap: 48px; }
  .h1 { font-size: 52px; line-height: 56px; }
  .feat { gap: 48px; }
  .legal { grid-template-columns: 200px minmax(0, 1fr); gap: 48px; }
}

/* Phone, from the 390px board */
@media (max-width: 760px) {
  .head { height: 64px; }
  .head .logo { width: 122px; height: 18px; }
  .nav a { padding: 12px 4px 12px 12px; background: none; }
  .nav a[aria-current] { background: none; }
  .nav .only-wide { display: none; }
  .nav .only-phone { display: inline; }

  .hero { display: block; padding: 24px 0 0; }
  .eyebrow { font-size: 14px; margin-bottom: 12px; }
  .h1 { font-size: 40px; line-height: 44px; }
  .h1 br { display: none; }
  .lede { font-size: 18px; line-height: 27px; margin: 16px 0 24px; }
  .cta { flex-direction: column; align-items: flex-start; gap: 12px; }
  .note { font-size: 14px; line-height: 20px; }
  .note br { display: none; }
  .store-soon { min-height: 50px; }

  .phone { width: 250px; margin: 40px auto 0; border-radius: 40px; box-shadow: 0 0 0 7px var(--surface-2), var(--phone-shadow); }
  .hero .phone { margin-top: 40px; }

  .coach { display: block; margin-top: 56px; padding: 24px; }
  .h2 { font-size: 28px; line-height: 34px; letter-spacing: -0.015em; }
  .p { font-size: 17px; line-height: 26px; margin-top: 12px; }
  .list { margin-top: 20px; gap: 10px; }
  .list li { font-size: 16px; line-height: 23px; }
  .quote { margin-top: 20px; padding: 18px; border-radius: 16px; }
  .quote p { font-size: 18px; line-height: 26px; }

  .feat { display: flex; flex-direction: column; gap: 0; padding-top: 72px; align-items: stretch; }
  .feat > div { order: -1; }

  .grid3 { display: block; padding-top: 72px; }
  .tile { padding: 20px; margin-top: 12px; }
  .tile h3 { font-size: 18px; line-height: 23px; margin-bottom: 8px; }
  .tile p { font-size: 15px; line-height: 22px; }

  .band { display: block; margin-top: 72px; padding: 28px 24px; }
  .band .p { margin-bottom: 20px; }

  .foot { flex-direction: column; align-items: flex-start; gap: 16px; padding: 32px 0 48px; margin-top: 64px; }
  .foot nav { order: 1; gap: 4px 20px; }
  .foot-id { display: contents; }
  .foot-id .logo { order: 0; }
  .foot-id span { order: 2; }

  .support { padding-top: 16px; }
  .support h1 { font-size: 34px; line-height: 41px; margin: 0 0 8px; }
  .support .intro { font-size: 17px; line-height: 26px; }
  .mail { display: flex; margin: 24px 0 32px; }
  .rows { padding: 0 16px; }
  .row { padding: 16px 0; }
  .row p { font-size: 15px; line-height: 22px; }

  .legal { display: block; padding-top: 16px; }
  .toc { display: none; }
  .toc-phone { display: block; }
  .doc h1 { font-size: 34px; line-height: 41px; margin-bottom: 12px; }
  .doc h2 { font-size: 22px; line-height: 28px; margin: 36px 0 10px; }
  .doc p, .doc li { line-height: 27px; }
  .doc ul, .doc ol { padding-left: 20px; }
}
