/* ==========================================================================
   PlayClearly — Marketing site styles
   Visual system per PlayClearly Brand Standards v1.0 ("Hybrid" direction):
   dark Pitch Ink hero/footer, light Whiteboard content, Coach Green primary,
   Chalk Gold used sparingly. Calm, not gamified.
   ========================================================================== */

:root {
  /* Core palette (Brand Standards §3.1) */
  --pitch-ink:     #0F1715; /* near-black, faint green cast — dark surfaces */
  --whiteboard:    #FAFAF8; /* warm off-white — primary light background */
  --coach-green:   #143D2E; /* primary brand color */
  --marker-green:  #2E7D56; /* secondary accent — active states, success */
  --chalk-gold:    #E0A83E; /* highlight accent — used sparingly */
  --sideline-gray: #8A8F8C; /* secondary text, borders, dividers */

  /* Derived tints/shades for UI states (kept within brand palette) */
  --coach-green-hover: #1D5A43;
  --pitch-ink-soft:    #16211D; /* slightly raised dark surface */
  --whiteboard-soft:   #F1F0EA; /* subtle alternating section */
  --hairline:          #E2E1DA; /* light borders on Whiteboard */
  --hairline-dark:     rgba(255, 255, 255, 0.12);

  /* Text */
  --text-on-light:        #1A2420; /* body on Whiteboard (>7:1) */
  --text-on-light-muted:  #5A615D; /* muted body on Whiteboard (AA) */
  --text-on-dark:         #F4F5F2;
  --text-on-dark-muted:   #B7C0BB;

  /* Type families (Brand Standards §4.1) */
  --font-sans: "Avenir Next", "Avenir", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-serif: Georgia, "Times New Roman", Times, serif;

  /* Spacing scale */
  --space-1: 0.5rem;
  --space-2: 1rem;
  --space-3: 1.5rem;
  --space-4: 2rem;
  --space-5: 3rem;
  --space-6: 4rem;
  --space-7: 6rem;

  --radius: 10px;
  --radius-lg: 16px;
  --maxw: 1120px;
  --maxw-prose: 760px;
}

/* ----- Reset / base ------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 1.0625rem;
  line-height: 1.6;
  color: var(--text-on-light);
  background: var(--whiteboard);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
  font-family: var(--font-sans);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 0.5em;
  color: var(--coach-green);
}
h1 { font-size: clamp(2.1rem, 5vw, 3.25rem); font-weight: 700; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 700; }
p { margin: 0 0 1em; }

a { color: var(--coach-green); text-decoration: underline; text-underline-offset: 2px; }
a:hover { color: var(--marker-green); }

ul { margin: 0 0 1em; padding-left: 1.25rem; }
li { margin-bottom: 0.35em; }

/* Accessible focus ring */
:focus-visible {
  outline: 3px solid var(--chalk-gold);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Skip link */
.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--chalk-gold);
  color: var(--pitch-ink);
  padding: 0.6rem 1rem;
  font-weight: 700;
  z-index: 1000;
  border-radius: 0 0 var(--radius) 0;
}
.skip-link:focus { left: 0; }

/* ----- Layout helpers ---------------------------------------------------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 1.25rem; }
.section { padding: var(--space-7) 0; }
.section--tight { padding: var(--space-6) 0; }
.section--ink { background: var(--pitch-ink); color: var(--text-on-dark); }
.section--ink h2, .section--ink h3 { color: #fff; }
.section--alt { background: var(--whiteboard-soft); }
.section__lead { max-width: var(--maxw-prose); }
.section__eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--marker-green);
  margin-bottom: 0.75rem;
}
.section--ink .section__eyebrow { color: var(--chalk-gold); }
.text-muted { color: var(--text-on-light-muted); }
.section--ink .text-muted { color: var(--text-on-dark-muted); }
.gold-rule { height: 3px; width: 56px; background: var(--chalk-gold); border: 0; margin: 0 0 1.5rem; border-radius: 3px; }

/* ----- Buttons ----------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.85rem 1.5rem;
  border-radius: var(--radius);
  text-decoration: none;
  border: 2px solid transparent;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease, transform 0.05s ease;
}
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--coach-green); color: #fff; }
.btn--primary:hover { background: var(--coach-green-hover); color: #fff; }
.btn--on-dark { background: #fff; color: var(--coach-green); }
.btn--on-dark:hover { background: var(--whiteboard-soft); color: var(--coach-green); }
.btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,0.4); }
.btn--ghost:hover { border-color: var(--chalk-gold); color: var(--chalk-gold); }

/* App store badge (placeholder) */
.store-badges { display: flex; flex-wrap: wrap; gap: 0.85rem; margin-top: var(--space-3); }
.store-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.7rem;
  padding: 0.7rem 1.15rem;
  border-radius: var(--radius);
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.22);
  color: #fff;
  text-decoration: none;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}
.store-badge:hover { color: #fff; border-color: var(--chalk-gold); background: rgba(255,255,255,0.1); }
.store-badge svg { flex: none; }
.store-badge .store-badge__sub { display: block; font-size: 0.72rem; color: var(--text-on-dark-muted); line-height: 1.1; }
.store-badge .store-badge__main { display: block; font-size: 1.02rem; font-weight: 700; line-height: 1.15; }
.store-note { font-size: 0.82rem; color: var(--text-on-dark-muted); margin-top: 0.85rem; }

/* "Coming soon" status indicator (pre-launch) — replaces app-download CTAs.
   Small gold pill; reads on both the dark hero and the Coach Green header/CTA band. */
.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  padding: 0.5rem 1.15rem;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 700;
  font-size: 0.9rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--chalk-gold);
  background: rgba(224, 168, 62, 0.12);
  border: 1px solid rgba(224, 168, 62, 0.55);
}
.coming-soon::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--chalk-gold);
  flex: none;
}
.coming-soon--sm { padding: 0.32rem 0.8rem; font-size: 0.72rem; gap: 0.4rem; }
.coming-soon--sm::before { width: 6px; height: 6px; }

/* ----- Header / nav ------------------------------------------------------ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--coach-green);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 1.25rem;
  max-width: var(--maxw);
  margin: 0 auto;
}
.brand-logo { display: inline-flex; align-items: center; }
.brand-logo img { height: 30px; width: auto; }
.brand-logo:focus-visible { outline-offset: 4px; }
.site-nav { display: flex; align-items: center; gap: 1.5rem; }
.site-nav__links { display: inline-flex; align-items: center; gap: 1.4rem; }
.site-nav a:not(.btn) {
  color: var(--text-on-dark);
  text-decoration: none;
  font-weight: 600;
  font-size: 0.98rem;
}
.site-nav a:not(.btn):hover { color: var(--chalk-gold); }
.site-nav .btn { font-size: 0.92rem; padding: 0.6rem 1.05rem; }

@media (max-width: 720px) {
  .site-nav__links { display: none; }
}

/* ----- Hero -------------------------------------------------------------- */
.hero {
  background:
    radial-gradient(1100px 480px at 78% -10%, rgba(46,125,86,0.30), transparent 60%),
    radial-gradient(700px 360px at 8% 110%, rgba(224,168,62,0.10), transparent 60%),
    var(--pitch-ink);
  color: var(--text-on-dark);
  padding: var(--space-7) 0;
  border-bottom: 1px solid var(--hairline-dark);
}
.hero__logo { height: 64px; width: auto; margin-bottom: var(--space-4); }
.hero h1 { color: #fff; max-width: 16ch; }
.hero__tagline {
  font-size: clamp(1.1rem, 2.2vw, 1.4rem);
  color: var(--text-on-dark-muted);
  max-width: 46ch;
  margin-bottom: var(--space-4);
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 0.85rem; align-items: center; }
.hero__sports {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
  margin-top: var(--space-4);
  font-size: 0.88rem;
  color: var(--text-on-dark-muted);
}
/* Calm chips — brand palette only, no bright sport colors (§3.2) */
.sport-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.32rem 0.9rem;
  border: 1px solid var(--hairline-dark);
  border-radius: 999px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: var(--text-on-dark-muted);
  background: rgba(255, 255, 255, 0.04);
}

/* Two-column hero with framed illustration */
.hero__inner { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: var(--space-6); align-items: center; }
.hero__media { display: flex; justify-content: center; }
@media (max-width: 860px) {
  .hero__inner { grid-template-columns: 1fr; gap: var(--space-5); }
  .hero h1 { max-width: none; }
}

/* Framed illustration card — white matte so white-background art reads as intentional */
.illus-frame {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.25rem;
  box-shadow: 0 18px 50px rgba(0,0,0,0.28);
  max-width: 420px;
  width: 100%;
}
.illus-frame img { border-radius: 6px; margin: 0 auto; }
.illus-frame--sm { max-width: 300px; }
.illus-frame--hero { max-width: 440px; }
/* On light sections the shadow is softer and tinted toward Coach Green */
.section .illus-frame,
.section--alt .illus-frame { box-shadow: 0 12px 32px rgba(20,61,46,0.12); }

/* ----- Feature grid ------------------------------------------------------ */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: var(--space-5);
}
.feature-card {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}
.feature-card:hover {
  border-color: var(--marker-green);
  box-shadow: 0 8px 24px rgba(20,61,46,0.08);
  transform: translateY(-2px);
}
.feature-card__icon {
  width: 48px;
  height: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: rgba(20,61,46,0.07);
  color: var(--coach-green);
  margin-bottom: 1rem;
}
.feature-card__icon svg { width: 26px; height: 26px; }
.feature-card h3 { margin-bottom: 0.4rem; }
.feature-card p { margin: 0; color: var(--text-on-light-muted); font-size: 0.97rem; }

/* ----- Showcase band (alternating illustration rows) --------------------- */
.showcase-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-5);
  align-items: center;
}
.showcase-row + .showcase-row { margin-top: var(--space-6); }
.showcase-row__media { display: flex; justify-content: center; }
.showcase-row__body h3 { font-size: 1.5rem; }
.showcase-row__body p { color: var(--text-on-light-muted); margin-bottom: 0; }
.showcase-row__body .section__eyebrow { margin-bottom: 0.5rem; }
/* Reverse the second row so the image alternates side */
.showcase-row--reverse .showcase-row__media { order: 2; }
@media (max-width: 760px) {
  .showcase-row { grid-template-columns: 1fr; gap: var(--space-3); }
  .showcase-row--reverse .showcase-row__media { order: 0; }
  .showcase-row__media { order: -1; }
}

/* ----- Audience callouts ------------------------------------------------- */
.audience-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
  margin-top: var(--space-5);
}
.audience-card {
  border-radius: var(--radius-lg);
  padding: 1.85rem;
  background: var(--pitch-ink-soft);
  border: 1px solid var(--hairline-dark);
}
.audience-card h3 { color: #fff; display: flex; align-items: center; gap: 0.6rem; }
.audience-card .tag {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--pitch-ink);
  background: var(--chalk-gold);
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
}
.audience-card p { color: var(--text-on-dark-muted); margin-bottom: 0; }
.audience-card ul { color: var(--text-on-dark-muted); }
.audience-card li::marker { color: var(--marker-green); }

/* ----- Trust band -------------------------------------------------------- */
.trust-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 1.25rem;
  margin-top: var(--space-5);
}
.trust-item {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 1.5rem;
}
.trust-item__icon {
  flex: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(46, 125, 86, 0.1);
  color: var(--marker-green);
}
.trust-item__icon svg { width: 24px; height: 24px; }
.trust-item h3 { font-size: 1.05rem; margin-bottom: 0.35rem; }
.trust-item p { margin: 0; color: var(--text-on-light-muted); font-size: 0.95rem; }

/* ----- CTA band ---------------------------------------------------------- */
.cta-band { text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .hero__cta { justify-content: center; }

/* ----- Footer ------------------------------------------------------------ */
.site-footer {
  background: var(--pitch-ink);
  color: var(--text-on-dark-muted);
  padding: var(--space-6) 0 var(--space-4);
  border-top: 1px solid var(--hairline-dark);
}
.site-footer__top {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  gap: 2rem;
  margin-bottom: var(--space-4);
}
.site-footer img.footer-logo { height: 34px; width: auto; margin-bottom: 1rem; }
.site-footer h4 {
  color: #fff;
  font-size: 0.82rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  margin: 0 0 0.9rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer a { color: var(--text-on-dark-muted); text-decoration: none; }
.site-footer a:hover { color: var(--chalk-gold); }
.site-footer__bottom {
  border-top: 1px solid var(--hairline-dark);
  padding-top: 1.5rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1.5rem;
  justify-content: space-between;
  font-size: 0.85rem;
}
@media (max-width: 720px) {
  .site-footer__top { grid-template-columns: 1fr; gap: 1.75rem; }
}

/* ==========================================================================
   Legal pages (Privacy / Terms) — long-form, serif body per §4.2
   ========================================================================== */
.legal-hero {
  background: var(--coach-green);
  color: #fff;
  padding: var(--space-6) 0 var(--space-5);
}
.legal-hero h1 { color: #fff; margin-bottom: 0.4rem; }
.legal-hero p { color: rgba(255,255,255,0.82); margin: 0; }
.legal-hero .updated { font-size: 0.9rem; }

.template-notice {
  max-width: var(--maxw-prose);
  margin: var(--space-4) auto 0;
  background: #FBF3DF;
  border: 1px solid var(--chalk-gold);
  border-left: 5px solid var(--chalk-gold);
  border-radius: var(--radius);
  padding: 1.1rem 1.25rem;
  color: #5A4A1E;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.template-notice strong { color: #4A3C10; }
.template-notice p:last-child { margin-bottom: 0; }

.legal-body {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding: var(--space-5) 1.25rem var(--space-7);
  font-family: var(--font-serif);
  font-size: 1.06rem;
  line-height: 1.7;
  color: var(--text-on-light);
}
.legal-body h2 {
  font-family: var(--font-sans);
  margin-top: 2.4rem;
  font-size: 1.5rem;
  padding-top: 0.5rem;
}
.legal-body h3 { font-family: var(--font-sans); margin-top: 1.6rem; font-size: 1.12rem; }
.legal-body h2:first-of-type { margin-top: 0; }
.legal-body .placeholder {
  background: rgba(224,168,62,0.18);
  border-bottom: 1px dashed var(--chalk-gold);
  padding: 0 0.2em;
  font-style: italic;
}
.legal-toc {
  background: var(--whiteboard-soft);
  border: 1px solid var(--hairline);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  margin-bottom: 2.5rem;
  font-family: var(--font-sans);
}
.legal-toc h2 { font-size: 0.82rem; letter-spacing: 0.06em; text-transform: uppercase; color: var(--marker-green); margin: 0 0 0.75rem; }
.legal-toc ol { margin: 0; padding-left: 1.25rem; columns: 2; column-gap: 2rem; font-size: 0.95rem; }
.legal-toc li { margin-bottom: 0.3rem; }
@media (max-width: 560px) { .legal-toc ol { columns: 1; } }

.legal-body table {
  width: 100%;
  border-collapse: collapse;
  margin: 1.25rem 0 1.75rem;
  font-family: var(--font-sans);
  font-size: 0.95rem;
}
.legal-body th, .legal-body td {
  text-align: left;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--hairline);
  vertical-align: top;
}
.legal-body th { background: var(--coach-green); color: #fff; font-weight: 700; }
.legal-body tbody tr:nth-child(even) { background: var(--whiteboard-soft); }

.back-link { font-family: var(--font-sans); font-weight: 600; font-size: 0.95rem; }

/* ==========================================================================
   FAQ page — same sans body font as the rest of the site (short Q&A, not
   long-form policy text, so it doesn't take the legal pages' serif treatment)
   ========================================================================== */
.faq-body {
  max-width: var(--maxw-prose);
  margin: 0 auto;
  padding: var(--space-5) 1.25rem var(--space-7);
}
.faq-group + .faq-group { margin-top: var(--space-6); }
.faq-group h2 { font-size: 1.5rem; }

.faq-item {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  margin-top: 0.85rem;
  overflow: hidden;
}
.faq-item summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.1rem 1.35rem;
  cursor: pointer;
  font-weight: 700;
  color: var(--coach-green);
  list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary:hover { color: var(--marker-green); }
.faq-item__icon {
  flex: none;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: rgba(20, 61, 46, 0.07);
  color: var(--coach-green);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  line-height: 1;
  transition: transform 0.15s ease, background-color 0.15s ease, color 0.15s ease;
}
.faq-item[open] .faq-item__icon { transform: rotate(45deg); background: var(--coach-green); color: #fff; }
.faq-item__answer { padding: 0 1.35rem 1.25rem; color: var(--text-on-light-muted); }
.faq-item__answer p { margin: 0 0 0.75rem; }
.faq-item__answer p:last-child { margin-bottom: 0; }
