/* Coach 21 — shared styles. Mobile-first; column max-width 460px.
   Palette: graphite "vault" + champagne gold, matching the app's redesign.
   Type: Bodoni Moda (display serif) + Manrope (body). Portrait phone mockups. */

:root {
  /* Vault palette (mirrors src/theme/palette.ts → vault) */
  --bg-deep: #050506;
  --bg: #0A0A0B;
  --bg-mid: #1B1B20;
  --bg-card: #101013;
  --felt: #13322A;
  --felt-hi: #1B4437;
  --gold: #E8D9A8;
  --gold-hi: #F6EDD0;
  --gold-dim: #B99F62;
  --ink: #141414;               /* text on gold surfaces */
  --text: #F4F2ED;
  --text-2: rgba(244, 242, 237, 0.78);
  --text-muted: rgba(244, 242, 237, 0.55);
  --text-dim: rgba(244, 242, 237, 0.38);
  --border-gold: rgba(232, 217, 168, 0.22);
  --border-gold-hi: rgba(232, 217, 168, 0.55);
  --border-subtle: rgba(255, 255, 255, 0.07);
  --chip: rgba(232, 217, 168, 0.08);

  --serif: 'Bodoni Moda', Georgia, 'Times New Roman', serif;
  --sans: 'Manrope', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--bg);
  color: var(--text-2);
  font-family: var(--sans);
  font-size: 15px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  -webkit-text-size-adjust: 100%;
}
img { max-width: 100%; display: block; }
a { color: var(--gold); text-decoration: none; }
a:hover { text-decoration: underline; }

/* ---- Layout columns ---- */
.col {
  max-width: 460px;
  margin: 0 auto;
  position: relative;
}
.col-home {
  background:
    radial-gradient(135% 55% at 50% -6%, #24242c 0%, #131317 40%, #08080a 78%, #050506 100%);
  overflow: hidden;
  box-shadow: 0 0 80px rgba(0, 0, 0, 0.7);
}
.col-doc {
  padding: 0 22px;
  background:
    radial-gradient(135% 45% at 50% -4%, #1e1e24 0%, #111114 44%, #08080a 100%);
  min-height: 100vh;
}

/* ---- Typography helpers ---- */
.serif { font-family: var(--serif); }

.eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.subhead {
  font-family: var(--serif);
  font-weight: 500;
  font-style: italic;
  font-size: 19px;
  letter-spacing: 0.01em;
  color: var(--gold);
}

/* Champagne foil for display headings + wordmarks */
.gold-foil {
  background: linear-gradient(168deg, #FBF3D8 0%, #F6EDD0 22%, #E8D9A8 50%, #C9AE74 78%, #B99F62 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  background-size: 100% 200%;
  animation: goldShimmer 8s ease-in-out infinite alternate;
}
.section-title-gradient {
  background: linear-gradient(180deg, #F6EDD0, #E8D9A8 52%, #BFA46A);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.small-wordmark {
  color: var(--text);
}

@keyframes goldShimmer {
  0%   { background-position: 50% 0; }
  100% { background-position: 50% 100%; }
}
@keyframes floatY {
  0%, 100% { transform: rotate(-2.5deg) translateY(0); }
  50%      { transform: rotate(-2.5deg) translateY(-10px); }
}
@keyframes glowPulse {
  0%, 100% {
    box-shadow:
      0 6px 18px rgba(0, 0, 0, 0.5),
      0 0 22px rgba(232, 217, 168, 0.18),
      0 0 0 1px rgba(232, 217, 168, 0.45) inset;
  }
  50% {
    box-shadow:
      0 6px 18px rgba(0, 0, 0, 0.5),
      0 0 34px rgba(232, 217, 168, 0.34),
      0 0 0 1px rgba(232, 217, 168, 0.7) inset;
  }
}

/* ---- Wordmark lockup: "Coach 21" ---- */
.wordmark {
  font-family: var(--serif);
  font-weight: 600;
  letter-spacing: 0.005em;
}
.wordmark .co { color: var(--text); }
.wordmark .num { color: var(--gold); }

/* The "21" rendered as the app-icon ring mark, sized to the wordmark letters.
   Folds the brand mark into the name so we don't repeat "21" (icon + text). */
.ring21 {
  height: 1.4em;
  width: auto;
  vertical-align: -0.35em;
  margin-left: 0.12em;
}

/* ---- Flourish divider ---- */
.flourish {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin: 14px auto;
}
.flourish .rule { width: 46px; height: 1px; }
.flourish .rule.l { background: linear-gradient(90deg, transparent, var(--gold-dim)); }
.flourish .rule.r { background: linear-gradient(270deg, transparent, var(--gold-dim)); }
.flourish .diamond { color: var(--gold-dim); font-size: 10px; line-height: 1; }

/* ---- Store badges ---- */
.store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: center;
  align-items: center;
}
.appstore-badge {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  padding: 11px 21px;
  border-radius: 13px;
  background: linear-gradient(180deg, #1c1c20, #0a0a0c);
  border: 1px solid var(--border-gold-hi);
  box-shadow: 0 8px 22px -8px rgba(0, 0, 0, 0.7), inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: var(--text);
  text-decoration: none;
}
.appstore-badge:hover { text-decoration: none; }
.appstore-badge .apple { width: 20px; height: 24px; fill: var(--text); flex: none; }
.appstore-badge .gplay { width: 21px; height: 23px; fill: var(--text); flex: none; }
.appstore-badge .stack { display: flex; flex-direction: column; line-height: 1; text-align: left; }
.appstore-badge .stack .top { font-size: 9px; letter-spacing: 0.04em; opacity: 0.82; }
.appstore-badge .stack .bot { font-size: 17px; font-weight: 700; margin-top: 2px; }
.appstore-badge.pulse { animation: glowPulse 4s ease-in-out infinite; }

/* ---- Sections (home) ---- */
.section {
  padding: 50px 26px;
  border-top: 1px solid var(--border-subtle);
}
.section.hero {
  padding: 26px 26px 44px;
  position: relative;
  border-top: none;
  background: radial-gradient(125% 58% at 50% -8%, #26262f, #14141a 46%, #08080a 100%);
  overflow: hidden;
}
.section.features { background: linear-gradient(180deg, #0b0b0e, #08080a); }
.section.training { background: radial-gradient(120% 55% at 50% 0%, #16161c, #0a0a0c); }
.section.counting { background: linear-gradient(180deg, #08080a, #0d0d11); }
.section.table {
  /* a whisper of felt green ties back to the app's table */
  background: radial-gradient(135% 72% at 50% 100%, #123528, #0c1f18 46%, #08080a 100%);
}
.section.coach { background: radial-gradient(120% 55% at 50% 0%, #16161c, #0a0a0c); }
.section.cta-band {
  background: linear-gradient(180deg, #14141a, #08080a);
  border-top: 1px solid var(--border-gold);
  text-align: center;
  padding: 44px 26px;
}

.hero .bokeh {
  position: absolute;
  top: -50px; right: -60px;
  width: 200px; height: 200px;
  background: radial-gradient(circle, rgba(232, 217, 168, 0.16), transparent 68%);
  filter: blur(6px);
  pointer-events: none;
}

/* Inline header used in hero */
.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  position: relative;
  z-index: 1;
}
.hero-header .wordmark-sm {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.hero-header nav a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 18px;
}
.hero-header nav a:hover { color: var(--gold); text-decoration: none; }

/* Hero content */
.hero-inner { text-align: center; position: relative; z-index: 1; }
.hero-eyebrow { margin: 26px auto 14px; color: var(--gold-dim); }
.h1-wordmark {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 50px;
  line-height: 1.1;
  letter-spacing: 0.005em;
  margin: 10px 0 14px;
}
.tagline {
  max-width: 350px;
  margin: 14px auto 24px;
  color: var(--text-2);
  font-size: 15px;
}

/* Section titles */
.h2 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 31px;
  line-height: 1.14;
  text-align: center;
  margin: 0 0 10px;
  color: var(--text);
}
.h2.small { font-size: 27px; }
.section .sub {
  text-align: center;
  margin: 4px auto 24px;
  max-width: 350px;
  color: var(--text-2);
  font-size: 15px;
}

/* Feature rows */
.feature-list {
  display: flex;
  flex-direction: column;
  gap: 24px;
  margin-top: 8px;
}
.feature-row {
  display: flex;
  gap: 15px;
  align-items: flex-start;
}
.icon-circle {
  flex: none;
  width: 46px; height: 46px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--chip);
  border: 1px solid var(--border-gold-hi);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 4px 12px rgba(0, 0, 0, 0.4);
  color: var(--gold);
  font-size: 20px;
  line-height: 1;
}
.icon-circle.sm { width: 44px; height: 44px; font-size: 19px; }
.feature-title {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15.5px;
  letter-spacing: 0.01em;
  color: var(--text);
  margin: 3px 0 4px;
}
.feature-body {
  color: var(--text-2);
  font-size: 14px;
  line-height: 1.55;
}

/* Bar-chart icon (analytics) */
.bar-icon {
  display: flex;
  align-items: flex-end;
  gap: 3px;
  height: 18px;
}
.bar-icon span {
  display: block;
  width: 4px;
  background: var(--gold);
  border-radius: 1px;
}
.bar-icon span:nth-child(1) { height: 8px; }
.bar-icon span:nth-child(2) { height: 13px; }
.bar-icon span:nth-child(3) { height: 17px; }

/* Phone mockup — PORTRAIT (graphite + champagne bezel, matches the icon tile) */
.phone {
  margin: 32px auto 0;
  width: 100%;
  max-width: 268px;
  border-radius: 38px;
  padding: 5px;
  background: linear-gradient(150deg, #d8c48c 0%, #8a7233 34%, #f0e2b0 60%, #7a6425 100%);
  box-shadow:
    0 28px 52px -14px rgba(0, 0, 0, 0.85),
    inset 0 0 0 1px rgba(255, 255, 255, 0.1);
  position: relative;
}
.phone.float { animation: floatY 6s ease-in-out infinite; transform: rotate(-2.5deg); }
.phone .screen {
  position: relative;
  width: 100%;
  height: 0;
  /* Aspect ratio via padding (WebKit-safe): 9:19.5 portrait frame. */
  padding-bottom: 216.67%;
  border-radius: 33px;
  overflow: hidden;
  background: var(--bg);
}
.phone .screen img { position: absolute; top: 0; left: 0; width: 100%; height: 100%; object-fit: cover; }
.phone .island {
  position: absolute;
  left: 50%; top: 9px;
  width: 78px; height: 7px;
  background: #000;
  border-radius: 6px;
  transform: translateX(-50%);
  z-index: 2;
}

/* Running-count widget (decorative) */
.count-widget {
  max-width: 300px;
  margin: 8px auto 22px;
  padding: 16px 20px;
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(27, 27, 32, 0.9), rgba(10, 10, 11, 0.7));
  border: 1px solid var(--border-gold);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05), 0 8px 22px -12px rgba(0, 0, 0, 0.7);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.count-widget .cw-label {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.count-widget .cw-val {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 32px;
  line-height: 1;
  color: var(--gold);
}
.count-widget .cw-col { display: flex; flex-direction: column; gap: 6px; }
.count-widget .cw-col.right { align-items: flex-end; }
.count-widget .cw-sub {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-muted);
}

/* Tag chips (skills) */
.tags {
  display: flex; flex-wrap: wrap;
  gap: 9px;
  justify-content: center;
  margin-top: 20px;
}
.tag {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.02em;
  color: var(--text-2);
  background: var(--chip);
  border: 1px solid var(--border-gold);
  border-radius: 999px;
  padding: 7px 14px;
}
.tag.hi {
  color: var(--ink);
  background: linear-gradient(180deg, var(--gold-hi), var(--gold-dim));
  border-color: var(--gold-dim);
  font-weight: 700;
}

/* CTA band */
.cta-line {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 21px;
  margin-bottom: 20px;
}
.cta-line .d { color: var(--gold-dim); margin: 0 10px; font-size: 13px; vertical-align: middle; }

/* ---- Footer ---- */
.footer {
  text-align: center;
  padding: 42px 26px 34px;
  border-top: 1px solid var(--border-subtle);
}
.footer .wordmark-lg {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 27px;
  letter-spacing: 0.02em;
  margin-bottom: 18px;
}
.footer nav {
  display: flex; justify-content: center; gap: 20px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}
.footer nav a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12.5px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
}
.footer nav a.current { color: var(--gold); }
.footer .email-link {
  display: inline-block;
  font-size: 13px;
  color: var(--gold);
  margin-bottom: 14px;
}
.footer .disclaimer {
  max-width: 380px;
  margin: 16px auto 12px;
  color: var(--text-dim);
  font-size: 11px;
  line-height: 1.6;
}
.footer .madeby {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.footer .madeby a { color: var(--gold); }
.footer .copyright {
  color: var(--text-dim);
  font-size: 11px;
}

/* ---- Doc page header ---- */
.doc-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px 0 18px;
  border-bottom: 1px solid var(--border-subtle);
}
.doc-header .wordmark-sm {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 17px;
  letter-spacing: 0.02em;
}
.doc-header nav a {
  font-family: var(--sans);
  font-weight: 600;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-muted);
  margin-left: 18px;
}
.doc-header nav a.current { color: var(--gold); }
.doc-header nav a:hover { color: var(--gold); text-decoration: none; }

/* Doc title block */
.doc-title-block { text-align: center; padding: 36px 0 12px; }
.h1-doc {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 40px;
  line-height: 1.06;
  letter-spacing: 0.005em;
  margin: 8px 0 12px;
}
.doc-intro {
  max-width: 380px;
  margin: 0 auto;
  color: var(--text-2);
  font-size: 15px;
}

/* Contact / highlight card */
.card {
  background: linear-gradient(180deg, var(--bg-mid), var(--bg-card));
  border: 1px solid var(--border-gold);
  border-radius: 16px;
  padding: 22px;
  box-shadow: 0 10px 30px -14px rgba(0, 0, 0, 0.8);
  margin: 24px 0;
  display: block;
  text-decoration: none;
  color: inherit;
}
.card:hover { text-decoration: none; border-color: var(--border-gold-hi); }
.card .card-eyebrow {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 11px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin-bottom: 8px;
}
.card .card-email {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 20px;
  color: var(--gold);
  margin: 4px 0 8px;
  word-break: break-all;
}
.card .card-sub {
  font-size: 13.5px;
  color: var(--text-2);
  line-height: 1.55;
}
.card .diamond-lg {
  font-size: 24px;
  color: var(--gold);
  display: block;
  margin-bottom: 8px;
}
.card h3 {
  font-family: var(--serif);
  font-weight: 600;
  font-size: 19px;
  color: var(--gold);
  margin: 4px 0 8px;
}

/* FAQ */
.faq-group {
  margin: 34px 0 4px;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-dim);
}
details.faq { border-bottom: 1px solid var(--border-subtle); }
details.faq > summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 18px 0;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 15.5px;
  color: var(--text);
}
details.faq > summary::-webkit-details-marker { display: none; }
details.faq .crq {
  flex: none;
  color: var(--gold-dim);
  font-size: 20px;
  font-weight: 400;
  line-height: 1;
  transition: transform 0.2s;
}
details.faq[open] .crq { transform: rotate(45deg); }
details.faq .a {
  padding: 0 0 18px;
  font-size: 14px;
  line-height: 1.62;
  color: var(--text-2);
}
details.faq .a p + p { margin-top: 10px; }
details.faq .a ul { margin: 8px 0 0; padding-left: 18px; }
details.faq .a li { margin: 4px 0; }

/* Privacy prose */
.prose h2 {
  font-family: var(--sans);
  font-weight: 700;
  font-size: 15px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--gold);
  margin: 34px 0 10px;
}
.prose p {
  font-family: var(--sans);
  font-size: 14px;
  line-height: 1.68;
  color: var(--text-2);
  margin: 0 0 12px;
}
.prose a.lnk { color: var(--gold); text-decoration: underline; }

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .gold-foil { animation: none; }
  .phone.float { animation: none; }
  .appstore-badge.pulse { animation: none; }
}

/* =========================================================
   Responsive scale-up — iPad and desktop
   Mobile (<=767px) stays exactly as designed.
   ========================================================= */

/* ---- iPad / small desktop: 768px+ ---- */
@media (min-width: 768px) {
  body {
    background: radial-gradient(60% 40% at 50% 0%, #1a1a20 0%, #101013 60%, #050506 100%);
  }

  .col { max-width: 760px; }
  .col-home { box-shadow: 0 0 120px rgba(0, 0, 0, 0.8); }
  .col-doc { padding: 0 40px; }

  .section { padding: 76px 48px; }
  .section.hero { padding: 52px 48px 66px; }
  .section.cta-band { padding: 60px 48px; }

  .h1-wordmark { font-size: 76px; }
  .h2 { font-size: 40px; }
  .h2.small { font-size: 34px; }
  .h1-doc { font-size: 56px; }
  .subhead { font-size: 22px; }
  .tagline, .sub { max-width: 460px; font-size: 16px; }
  .feature-body { font-size: 15px; }

  /* Hero: text + phone side-by-side. The phone is taller than the text
     column, so centering it makes its (tilted, floating) top ride up into
     the header — push the whole grid down to keep clear of the nav. */
  .section.hero .hero-inner {
    display: grid;
    grid-template-columns: 1.15fr 0.85fr;
    align-items: center;
    gap: 44px;
    margin-top: 44px;
    text-align: left;
  }
  .section.hero .hero-inner > .eyebrow,
  .section.hero .hero-inner > .h1-wordmark,
  .section.hero .hero-inner > .subhead,
  .section.hero .hero-inner > .tagline,
  .section.hero .hero-inner > .store-badges {
    grid-column: 1;
    justify-self: start;
  }
  .section.hero .hero-inner > .tagline { margin-left: 0; }
  .section.hero .hero-inner > .phone {
    grid-column: 2;
    grid-row: 1 / span 5;
    margin: 0;
    justify-self: center;
  }

  /* Feature grids: 2-column */
  .features .feature-list,
  .training .feature-list,
  .counting .feature-list,
  .coach .feature-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 30px 36px;
  }

  .phone { max-width: 300px; border-radius: 42px; padding: 6px; }
  .phone .screen { border-radius: 37px; }
  .phone .island { height: 8px; width: 92px; }

  /* Doc pages — wider prose */
  .doc-intro { max-width: 560px; font-size: 16px; }
  .prose p { font-size: 15.5px; }
  details.faq > summary { font-size: 17px; padding: 22px 0; }
  details.faq .a { font-size: 15px; padding-bottom: 22px; }

  .footer { padding: 60px 48px 46px; }
  .footer .wordmark-lg { font-size: 34px; }
}

/* ---- Desktop: 1100px+ ---- */
@media (min-width: 1100px) {
  .col { max-width: 1080px; }
  .col-doc { padding: 0 64px; }

  .section { padding: 100px 72px; }
  .section.hero { padding: 72px 72px 84px; }
  .section.cta-band { padding: 76px 72px; }

  .h1-wordmark { font-size: 96px; }
  .h2 { font-size: 46px; }
  .h2.small { font-size: 40px; }
  .h1-doc { font-size: 70px; }
  .tagline, .sub { max-width: 520px; font-size: 17px; }

  .section.hero .hero-inner { gap: 64px; }
  .section.hero .hero-inner > .phone { max-width: 320px; }

  /* Features go 3-up on wide screens for density */
  .features .feature-list { grid-template-columns: 1fr 1fr 1fr; }

  /* Doc prose stays comfortably narrow even in wide column */
  .col-doc .doc-title-block,
  .col-doc .card,
  .col-doc .faq-group,
  .col-doc details.faq,
  .col-doc .prose { max-width: 760px; margin-left: auto; margin-right: auto; }
}
