/* ============================================================
   CoachBoost — shared styles
   Brand: blue (from the shield logo)
   Type:  Space Grotesk (display) + Plus Jakarta Sans (body)
   ============================================================ */

:root {
  --ink:        #0A1F3D;   /* deepest navy — dark sections     */
  --navy:       #103264;   /* brand navy — from logo figures   */
  --blue:       #2E90FA;   /* bright accent — logo bright figure*/
  --blue-600:   #1B74D6;   /* accent hover                     */
  --sky:        #E9F2FE;   /* light blue card fill             */
  --sky-line:   #D2E4FB;   /* light blue hairline              */
  --paper:      #F5F8FC;   /* cool page background             */
  --white:      #FFFFFF;
  --slate:      #55688A;   /* secondary text                   */
  --slate-900:  #14243F;   /* headings on light                */
  --line:       #E3EAF3;   /* neutral hairline                 */
  --shield:     #97A0AD;   /* logo grey                        */

  --maxw: 1120px;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(16,50,100,.04), 0 12px 32px -12px rgba(16,50,100,.18);
  --shadow-lg: 0 24px 64px -20px rgba(10,31,61,.35);

  --font-display: "Space Grotesk", "Plus Jakarta Sans", system-ui, sans-serif;
  --font-body:    "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  font-family: var(--font-body);
  color: var(--slate-900);
  background: var(--paper);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: 24px; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before {
  content: "";
  width: 22px; height: 2px;
  background: var(--blue);
  display: inline-block;
}

h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; color: var(--slate-900); }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font-display);
  font-weight: 600; font-size: 15px;
  padding: 13px 22px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 18px -6px rgba(46,144,250,.6); }
.btn-primary:hover { background: var(--blue-600); transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--white); border-color: rgba(255,255,255,.28); }
.btn-ghost:hover { border-color: rgba(255,255,255,.6); background: rgba(255,255,255,.06); }
.btn-dark { background: var(--navy); color: #fff; }
.btn-dark:hover { background: var(--ink); transform: translateY(-1px); }
.btn-lg { font-size: 16px; padding: 15px 28px; }

/* Beehiiv subscribe-form card — frames the embed cleanly on dark CTA band */
.beehiiv-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 22px;
  max-width: 460px;
  margin: 0 auto;
  box-shadow: var(--shadow-lg);
  text-align: left;
}
.beehiiv-card iframe { width: 100% !important; }

/* ---------- Top nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(245,248,252,.82);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: flex; align-items: center; gap: 11px; font-family: var(--font-display); font-weight: 600; font-size: 18px; letter-spacing: -0.01em; color: var(--slate-900); }
.brand img { width: 32px; height: 32px; }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links a { font-size: 15px; font-weight: 500; color: var(--slate); transition: color .15s ease; }
.nav-links a:hover { color: var(--slate-900); }
.nav-cta { display: flex; align-items: center; gap: 8px; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(1200px 600px at 80% -10%, rgba(46,144,250,.18), transparent 60%),
    radial-gradient(900px 500px at 0% 110%, rgba(16,50,100,.9), transparent 60%),
    linear-gradient(160deg, var(--ink) 0%, var(--navy) 100%);
  color: #EAF1FB;
  overflow: hidden;
}
.hero::after {
  /* faint shield motif */
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.035) 1px, transparent 1px);
  background-size: 44px 44px;
  mask-image: radial-gradient(700px 500px at 78% 20%, #000 0%, transparent 70%);
  pointer-events: none;
}
.hero-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; padding: 92px 0 100px; }
.hero .eyebrow { color: #8FC2FF; }
.hero .eyebrow::before { background: #8FC2FF; }
.hero h1 { color: #fff; font-size: clamp(38px, 5.6vw, 62px); margin: 22px 0 20px; }
.hero h1 .accent { color: var(--blue); }
.hero p.lede { font-size: clamp(17px, 2.1vw, 20px); color: #B8CCE6; max-width: 33ch; }
.hero-cta { margin-top: 34px; }

/* signup form */
.signup-form { display: flex; gap: 10px; max-width: 440px; }
.signup-form input[type=email] {
  flex: 1; min-width: 0;
  font-family: var(--font-body); font-size: 15px;
  padding: 13px 16px; border-radius: var(--radius-sm);
  border: 1px solid var(--line); background: #fff; color: var(--slate-900);
}
.signup-form input[type=email]::placeholder { color: #9AA9BF; }
.signup-form input[type=email]:focus { outline: 2px solid var(--blue); outline-offset: 1px; border-color: transparent; }
.hero .signup-form input[type=email] { border-color: rgba(255,255,255,.18); }
.form-msg { font-size: 14px; margin-top: 12px; min-height: 20px; font-weight: 500; }
.form-note { font-size: 13px; color: #8FA6C4; margin-top: 12px; }
.hero .form-msg.ok, .cta-band .form-msg.ok { color: #7EE3B0; }
.form-msg.err { color: #FF9A9A; }
.section .form-msg.ok { color: #17915B; }

/* ---------- Hero product illustration (NOT a screenshot) ---------- */
.mock {
  position: relative;
  background: linear-gradient(180deg, #16346A 0%, #0E2653 100%);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 22px;
  padding: 18px;
  box-shadow: var(--shadow-lg);
}
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 4px 4px 14px; }
.mock-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.22); }
.mock-card { background: #fff; border-radius: 14px; padding: 16px 16px 18px; color: var(--slate-900); }
.mock-role-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--font-display); font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--blue); background: var(--sky); padding: 5px 10px; border-radius: 999px; }
.mock-card h4 { font-family: var(--font-display); font-size: 18px; margin: 12px 0 3px; letter-spacing: -0.01em; }
.mock-card .sub { font-size: 13px; color: var(--slate); }
.mock-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.mock-mini { background: var(--paper); border: 1px solid var(--line); border-radius: 11px; padding: 11px 12px; }
.mock-mini .label { font-size: 10px; letter-spacing: .09em; text-transform: uppercase; color: var(--slate); font-weight: 700; }
.mock-mini .val { font-family: var(--font-display); font-size: 15px; font-weight: 600; margin-top: 3px; }
.mock-bars { margin-top: 14px; display: grid; gap: 9px; }
.mock-bars .b { display: flex; align-items: center; gap: 10px; }
.mock-bars .bl { font-size: 12px; color: var(--slate); width: 74px; }
.mock-bars .bt { flex: 1; height: 7px; border-radius: 999px; background: var(--sky); overflow: hidden; }
.mock-bars .bf { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--blue), var(--navy)); }
.mock-float {
  position: absolute; right: -18px; bottom: 42px;
  background: #fff; color: var(--slate-900);
  border-radius: 12px; padding: 11px 14px;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; font-weight: 600;
}
.mock-float .ic { width: 30px; height: 30px; border-radius: 8px; background: var(--sky); display: grid; place-items: center; color: var(--blue); }

/* ---------- Generic light section ---------- */
.section { padding: 88px 0; }
.section-head { max-width: 640px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 40px); margin: 16px 0 14px; }
.section-head p { color: var(--slate); font-size: 18px; }
.section.tint { background: linear-gradient(180deg, #fff, var(--paper)); }
.section.plain { background: #fff; }

/* ---------- Problem band ---------- */
.problem { background: var(--white); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.problem-inner { padding: 64px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; }
.problem h2 { font-size: clamp(26px, 3.4vw, 34px); }
.problem p { color: var(--slate); margin-top: 14px; font-size: 17px; }
.chip-cloud { display: flex; flex-wrap: wrap; gap: 10px; }
.chip { font-family: var(--font-display); font-size: 14px; font-weight: 500; color: var(--slate); background: var(--paper); border: 1px dashed var(--sky-line); border-radius: 999px; padding: 9px 15px; }
.chip.through { text-decoration: line-through; text-decoration-color: var(--blue); opacity: .7; }
.chip.win { color: #fff; background: var(--blue); border-style: solid; border-color: var(--blue); text-decoration: none; }

/* ---------- Feature list ---------- */
.features { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; transition: transform .18s ease, box-shadow .18s ease, border-color .18s ease;
}
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--sky-line); }
.feature .ic {
  width: 46px; height: 46px; border-radius: 12px;
  background: var(--sky); color: var(--blue);
  display: grid; place-items: center; margin-bottom: 18px;
}
.feature h3 { font-size: 20px; margin-bottom: 8px; }
.feature p { color: var(--slate); font-size: 15.5px; }
.feature.wide { grid-column: 1 / -1; display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: center; }
.feature.wide .ic { margin-bottom: 0; }

/* ---------- Roles (signature) ---------- */
.roles { background: var(--ink); color: #EAF1FB; }
.roles .section-head h2 { color: #fff; }
.roles .section-head p { color: #A9BFDD; }
.roles .eyebrow { color: #8FC2FF; }
.roles .eyebrow::before { background: #8FC2FF; }
.role-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.role {
  position: relative;
  background: linear-gradient(180deg, rgba(255,255,255,.06), rgba(255,255,255,.02));
  border: 1px solid rgba(255,255,255,.1);
  border-radius: var(--radius);
  padding: 28px;
}
.role .num { font-family: var(--font-display); font-size: 13px; font-weight: 600; color: var(--blue); letter-spacing: .1em; }
.role h3 { color: #fff; font-size: 23px; margin: 14px 0 12px; }
.role ul { list-style: none; display: grid; gap: 10px; }
.role li { position: relative; padding-left: 24px; color: #B8CCE6; font-size: 15px; }
.role li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.role.coach { border-top: 3px solid var(--blue); }
.role.player { border-top: 3px solid #5AA9FF; }
.role.parent { border-top: 3px solid var(--shield); }

/* ---------- How it works ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; counter-reset: step; }
.step { position: relative; padding-top: 20px; }
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--blue);
  display: block; margin-bottom: 14px;
}
.step h3 { font-size: 20px; margin-bottom: 8px; }
.step p { color: var(--slate); font-size: 15.5px; }
.step:not(:last-child)::after {
  content: ""; position: absolute; top: 26px; right: -14px; width: 28px; height: 1px; background: var(--sky-line);
}

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: #fff; padding: 4px 20px; margin-bottom: 12px;
  transition: border-color .15s ease;
}
.faq details[open] { border-color: var(--sky-line); }
.faq summary {
  font-family: var(--font-display); font-weight: 600; font-size: 17px;
  padding: 16px 0; cursor: pointer; list-style: none;
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 22px; color: var(--blue); font-weight: 400; transition: transform .2s ease; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { color: var(--slate); font-size: 15.5px; padding: 0 0 18px; }

/* ---------- CTA band ---------- */
.cta-band {
  background:
    radial-gradient(800px 400px at 20% 0%, rgba(46,144,250,.28), transparent 60%),
    linear-gradient(160deg, var(--navy), var(--ink));
  color: #fff;
}
.cta-inner { padding: 78px 0; text-align: center; }
.cta-inner h2 { color: #fff; font-size: clamp(28px, 4vw, 42px); }
.cta-inner p { color: #B8CCE6; font-size: 18px; margin: 14px auto 30px; max-width: 46ch; }
.cta-inner .signup-form { margin-inline: auto; }

/* ---------- Footer ---------- */
.footer { background: var(--ink); color: #9FB4D2; padding: 56px 0 40px; border-top: 1px solid rgba(255,255,255,.08); }
.footer-top { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; padding-bottom: 40px; border-bottom: 1px solid rgba(255,255,255,.08); }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand img { background: #fff; border-radius: 8px; padding: 4px; box-shadow: 0 2px 6px rgba(0,0,0,.25); }
.footer .blurb { font-size: 14.5px; color: #90A6C6; max-width: 34ch; }
.footer h5 { font-family: var(--font-display); font-size: 13px; letter-spacing: .1em; text-transform: uppercase; color: #C7D6EC; margin-bottom: 16px; }
.footer ul { list-style: none; display: grid; gap: 11px; }
.footer ul a { font-size: 14.5px; color: #9FB4D2; transition: color .15s ease; }
.footer ul a:hover { color: #fff; }
.footer-bottom { padding-top: 28px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13.5px; color: #7E93B4; }

/* ---------- Legal / content pages ---------- */
.legal { background: #fff; }
.legal-head { background: linear-gradient(160deg, var(--ink), var(--navy)); color: #fff; padding: 64px 0 52px; }
.legal-head h1 { color: #fff; font-size: clamp(30px, 5vw, 44px); }
.legal-head p { color: #A9BFDD; margin-top: 12px; font-size: 15px; }
.legal-body { padding: 56px 0 80px; max-width: 760px; }
.legal-body h2 { font-size: 22px; margin: 36px 0 12px; }
.legal-body h3 { font-size: 18px; margin: 24px 0 8px; }
.legal-body p, .legal-body li { color: #33465F; font-size: 16px; margin-bottom: 12px; }
.legal-body ul { padding-left: 22px; margin-bottom: 14px; }
.legal-body a { color: var(--blue-600); font-weight: 500; }
.legal-body a:hover { text-decoration: underline; }
.callout { background: var(--sky); border: 1px solid var(--sky-line); border-radius: var(--radius-sm); padding: 18px 20px; margin: 22px 0; font-size: 15px; color: var(--navy); }

/* ---------- Support cards ---------- */
.support-cards { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin: 8px 0 20px; }
.support-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; background: #fff; }
.support-card .ic { width: 44px; height: 44px; border-radius: 11px; background: var(--sky); color: var(--blue); display: grid; place-items: center; margin-bottom: 16px; }
.support-card h3 { font-size: 19px; margin-bottom: 8px; }
.support-card p { color: var(--slate); font-size: 15px; margin-bottom: 12px; }
.support-card a.mail { font-family: var(--font-display); font-weight: 600; color: var(--blue-600); }

/* ---------- Reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 40px; padding: 64px 0 72px; }
  .hero p.lede { max-width: 46ch; }
  .mock-float { right: 8px; }
  .problem-inner { grid-template-columns: 1fr; gap: 28px; padding: 52px 0; }
  .features { grid-template-columns: 1fr; }
  .feature.wide { grid-template-columns: 1fr; text-align: left; }
  .role-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 22px; }
  .step:not(:last-child)::after { display: none; }
  .footer-top { grid-template-columns: 1fr 1fr; gap: 28px; }
  .support-cards { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .signup-form { flex-direction: column; }
  .signup-form .btn { width: 100%; }
  .footer-top { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; }
}

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .btn:hover, .feature:hover { transform: none !important; }
}
