/* ─────────────────────────────────────────────────────────────
   Atho — Shared marketing styles
   Used by /, /beta, /beta/features, /beta/for-coaches,
   /beta/for-athletes, /beta/pricing
   ───────────────────────────────────────────────────────────── */

@font-face {
  font-family: 'Quity';
  src:
    url('/fonts/Quity.woff2') format('woff2'),
    url('/fonts/Quity.woff') format('woff');
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --primary: #b8d74a;
  --primary-hover: #c5e056;
  --primary-soft: rgba(184, 215, 74, 0.08);
  --primary-glow: rgba(184, 215, 74, 0.4);

  --bg: #000000;
  --bg-elevated: #0b0b0b;
  --bg-card: #0d0d0d;
  --bg-card-hover: #131313;

  --text: #f6f8eb;
  --text-dim: #9aa0a6;
  --text-faint: #5b6066;

  --border: #1c1c1c;
  --border-strong: #2a2a2a;

  --radius-pill: 999px;
  --radius-md: 12px;
  --radius-lg: 20px;

  --container: 1200px;
  --container-pad: 32px;

  /* Track & Field event category colors (echoes the editor) */
  --cat-sprint: #c7e55c;
  --cat-dist: #6bd96b;
  --cat-hurd: #ff8a4c;
  --cat-throw: #ff4d4d;
  --cat-jump: #e54c9a;
  --cat-relay: #4da8ff;
  --cat-multi: #c97fe6;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

html {
  background: var(--bg);
  scroll-behavior: smooth;
}

body {
  background: var(--bg);
  color: var(--text);
  font-family: 'Satoshi', system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  font-weight: 400;
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  min-height: 100vh;
  min-height: 100dvh;
  overflow-x: hidden;
}

/* Subtle radial glow behind body */
body.page-glow::before {
  content: '';
  position: fixed;
  inset: 0;
  background:
    radial-gradient(900px 700px at 50% 0%, rgba(184, 215, 74, 0.08), transparent 60%),
    radial-gradient(700px 500px at 50% 100%, rgba(184, 215, 74, 0.04), transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* ── Quity for h1, ALL CAPS, 95% line-height ── */
h1 {
  font-family: 'Quity', 'Satoshi', system-ui, sans-serif;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: -0.025em;
  line-height: 0.95;
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
}

/* ── Satoshi headlines: sentence case, -2% tracking ── */
h2 {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
  margin: 0;
  font-size: clamp(28px, 3.6vw, 44px);
  color: var(--text);
}

h3 {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin: 0;
  font-size: clamp(18px, 1.4vw, 22px);
  color: var(--text);
}

.text-accent {
  color: var(--primary);
}
.text-dim {
  color: var(--text-dim);
}
.text-faint {
  color: var(--text-faint);
}

a {
  color: inherit;
  text-decoration: none;
}

img,
svg {
  max-width: 100%;
  display: block;
}

/* ── Container ── */
.container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--container-pad);
  position: relative;
  z-index: 1;
}

/* ── Page layout ── */
.page {
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  min-height: 100dvh;
}

.page main {
  flex: 1;
}

/* Coming-soon: vertically center the hero in the available viewport */
.page-centered main {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 0;
}

.page-centered .hero {
  padding: 0;
}

/* ── Nav ── */
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 24px 0;
  position: relative;
  z-index: 10;
}

.brand {
  display: inline-flex;
  align-items: center;
  line-height: 1;
}

.brand img {
  height: 32px;
  width: auto;
  display: block;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
  font-size: 15px;
  color: var(--text-dim);
}

.nav-links a {
  transition: color 0.15s ease;
}
.nav-links a:hover,
.nav-links a.is-active {
  color: var(--text);
}

.nav-actions {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

/* ── Buttons ── */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 11px 20px;
  border-radius: var(--radius-pill);
  font-family: 'Satoshi', system-ui, sans-serif;
  font-size: 15px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  border: 1px solid transparent;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    color 0.15s ease,
    transform 0.05s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:active {
  transform: translateY(1px);
}

.btn-primary {
  background: var(--primary);
  color: #0a0a0a;
  border-color: var(--primary);
}
.btn-primary:hover {
  background: var(--primary-hover);
  border-color: var(--primary-hover);
}

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-ghost:hover {
  border-color: #444;
  background: rgba(255, 255, 255, 0.02);
}

.btn-lg {
  padding: 14px 26px;
  font-size: 16px;
}

/* ── Badge ── */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: var(--radius-pill);
  border: 1px solid var(--primary-glow);
  background: var(--primary-soft);
  color: var(--primary);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.01em;
}

.badge::before {
  content: '';
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--primary);
  box-shadow: 0 0 8px rgba(184, 215, 74, 0.7);
}

/* ── Eyebrow (small section label, lowercase + tracked) ── */
.eyebrow {
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.04em;
  color: var(--primary);
  margin-bottom: 14px;
  display: inline-block;
}

/* ── Footer ── */
.footer {
  padding: 36px 0;
  border-top: 1px solid var(--border);
  color: var(--text-faint);
  font-size: 13px;
  margin-top: 80px;
}

.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.footer a {
  color: var(--text-dim);
  transition: color 0.15s ease;
}
.footer a:hover {
  color: var(--text);
}

.footer-links {
  display: flex;
  gap: 24px;
  flex-wrap: wrap;
}

/* ── Beta banner ── */
.beta-banner {
  background: var(--primary-soft);
  border-bottom: 1px solid var(--primary-glow);
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
  text-align: center;
  padding: 8px 16px;
  letter-spacing: 0.02em;
}

/* ── Hero ── */
.hero {
  padding: 56px 0 96px;
}

.hero-center {
  text-align: center;
  max-width: 920px;
  margin: 0 auto;
}

.hero-cluster {
  display: grid;
  grid-template-columns: 1.05fr 1.4fr;
  gap: 56px;
  align-items: center;
}

@media (max-width: 960px) {
  .hero-cluster {
    grid-template-columns: 1fr;
    gap: 40px;
  }
}

.hero h1 {
  margin-bottom: 24px;
}
.hero-sub {
  font-size: clamp(16px, 1.6vw, 19px);
  color: var(--text-dim);
  max-width: 680px;
  margin: 0 auto 36px;
  line-height: 1.6;
  text-wrap: pretty;
}

.hero-cluster .hero-sub {
  margin-left: 0;
  margin-right: 0;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.hero-cluster .hero-actions {
  justify-content: flex-start;
}
.hero-center .hero-actions {
  justify-content: center;
}

.hero .badge {
  margin-bottom: 28px;
}

/* ── Sections ── */
.section {
  padding: 80px 0;
}

.section-tight {
  padding: 56px 0;
}

.section-heading {
  text-align: center;
  max-width: 720px;
  margin: 0 auto 56px;
}

.section-heading h2 {
  margin-bottom: 18px;
}

.section-heading p {
  color: var(--text-dim);
  font-size: 18px;
  line-height: 1.6;
  margin: 0;
}

/* ── Feature grid (6 cards) ── */
.features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

@media (max-width: 900px) {
  .features {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 600px) {
  .features {
    grid-template-columns: 1fr;
  }
}

.feature-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 28px;
  transition:
    background-color 0.15s ease,
    border-color 0.15s ease,
    transform 0.15s ease;
}

.feature-card:hover {
  background: var(--bg-card-hover);
  border-color: var(--border-strong);
  transform: translateY(-2px);
}

.feature-icon {
  width: 36px;
  height: 36px;
  margin-bottom: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.feature-card h3 {
  font-size: 18px;
  margin-bottom: 10px;
  color: var(--text);
}

.feature-card p {
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.55;
  margin: 0;
}

/* ── Two-column callout (alternating) ── */
.callout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: 40px 0;
}

.callout--reverse > .callout-visual {
  order: 1;
}

@media (max-width: 880px) {
  .callout {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .callout--reverse > .callout-visual {
    order: 0;
  }
}

.callout h2 {
  margin-bottom: 18px;
}
.callout p {
  color: var(--text-dim);
  font-size: 17px;
  line-height: 1.65;
  margin: 0 0 20px;
}

.callout-visual {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px;
  min-height: 300px;
  position: relative;
  overflow: hidden;
}

/* ── CTA section ── */
.cta-section {
  background: linear-gradient(180deg, var(--bg-elevated), var(--bg-card));
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 64px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-section::after {
  content: '';
  position: absolute;
  inset: 0;
  background: radial-gradient(420px 320px at 50% 0%, rgba(184, 215, 74, 0.12), transparent 70%);
  pointer-events: none;
}

.cta-section > * {
  position: relative;
  z-index: 1;
}

.cta-section h2 {
  margin-bottom: 16px;
}
.cta-section p {
  color: var(--text-dim);
  font-size: 17px;
  margin: 0 auto 32px;
  max-width: 520px;
  line-height: 1.6;
}
.cta-section .hero-actions {
  justify-content: center;
}

/* ── Waitlist form ── */
.waitlist {
  display: flex;
  gap: 8px;
  max-width: 480px;
  margin: 0 auto;
  background: var(--bg-elevated);
  border: 1px solid var(--border);
  border-radius: var(--radius-pill);
  padding: 6px;
  transition: border-color 0.15s ease;
}
.waitlist:focus-within {
  border-color: var(--primary);
}
.waitlist input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  color: var(--text);
  padding: 10px 16px;
  font-family: inherit;
  font-size: 15px;
  outline: none;
}
.waitlist input::placeholder {
  color: var(--text-faint);
}
.waitlist button {
  flex-shrink: 0;
}

.form-meta {
  margin-top: 14px;
  font-size: 13px;
  color: var(--text-faint);
  min-height: 18px;
}
.form-meta.is-success {
  color: var(--primary);
}

/* ── Pricing grid ── */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  align-items: stretch;
}

@media (max-width: 880px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }
}

.tier {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
}

.tier--featured {
  background: var(--bg-card-hover);
  border-color: var(--primary-glow);
  position: relative;
}

.tier--featured::after {
  content: 'Most popular';
  position: absolute;
  top: -10px;
  right: 24px;
  background: var(--primary);
  color: black;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.04em;
}

.tier-name {
  font-size: 18px;
  margin-bottom: 8px;
  color: var(--text);
}

.tier-price {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 800;
  font-size: 44px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--text);
  margin: 16px 0 6px;
}

.tier-price-suffix {
  font-family: 'Satoshi', sans-serif;
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0;
  color: var(--text-dim);
}

.tier-tagline {
  color: var(--text-dim);
  font-size: 14.5px;
  margin: 0 0 24px;
  line-height: 1.5;
}

.tier-features {
  list-style: none;
  margin: 0 0 28px;
  padding: 0;
  flex: 1;
}

.tier-features li {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 8px 0;
  color: var(--text-dim);
  font-size: 14.5px;
  line-height: 1.5;
}

.tier-features li::before {
  content: '';
  width: 16px;
  height: 16px;
  flex-shrink: 0;
  margin-top: 2px;
  background: var(--primary);
  -webkit-mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    no-repeat center / contain;
  mask: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'><polyline points='20 6 9 17 4 12'/></svg>")
    no-repeat center / contain;
}

/* ── FAQ ── */
.faq {
  display: grid;
  gap: 8px;
  max-width: 760px;
  margin: 0 auto;
}

.faq details {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  transition: border-color 0.15s ease;
}

.faq details[open] {
  border-color: var(--border-strong);
}

.faq summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--text);
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq summary::-webkit-details-marker {
  display: none;
}

.faq summary::after {
  content: '+';
  font-size: 22px;
  color: var(--text-dim);
  transition: transform 0.2s ease;
  font-weight: 400;
}

.faq details[open] summary::after {
  transform: rotate(45deg);
}

.faq p {
  margin: 12px 0 0;
  color: var(--text-dim);
  font-size: 15px;
  line-height: 1.6;
}

/* ── Stat tile ── */
.stat-num {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 800;
  font-size: clamp(28px, 4vw, 44px);
  letter-spacing: -0.02em;
  color: var(--primary);
  line-height: 1;
}

.stat-label {
  font-size: 13px;
  color: var(--text-dim);
  margin-top: 8px;
  letter-spacing: 0.02em;
}

/* ── Article (long-form pages: privacy, terms, etc.) ── */
.article {
  max-width: 720px;
  margin: 0 auto;
  padding: 32px 0 80px;
}

.article h1 {
  margin-bottom: 12px;
  font-size: clamp(36px, 5vw, 56px);
}

.article-meta {
  color: var(--text-faint);
  font-size: 14px;
  margin: 0 0 48px;
}

.article h2 {
  margin-top: 48px;
  margin-bottom: 14px;
  font-size: clamp(22px, 2.5vw, 28px);
}

.article p {
  color: var(--text-dim);
  font-size: 16px;
  margin: 0 0 16px;
  line-height: 1.7;
}

.article ul {
  color: var(--text-dim);
  padding-left: 22px;
  margin: 0 0 20px;
  line-height: 1.7;
}

.article ul li {
  margin-bottom: 6px;
}

.article strong {
  color: var(--text);
  font-weight: 600;
}

.article a {
  color: var(--primary);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.article a:hover {
  color: var(--primary-hover);
}

/* ── Hero screenshot (literal image of the meet planner) ── */
.hero-screenshot {
  width: 100%;
  height: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  display: block;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(184, 215, 74, 0.04);
}

/* ── Calendar mockup ── */
.cal-wrap {
  background: linear-gradient(180deg, #0a0a0a, #050505);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 16px;
  position: relative;
  box-shadow:
    0 40px 80px -20px rgba(0, 0, 0, 0.6),
    0 0 0 1px rgba(184, 215, 74, 0.04);
}

.cal-wrap::before {
  content: '';
  position: absolute;
  inset: -1px;
  border-radius: var(--radius-lg);
  background: linear-gradient(180deg, rgba(184, 215, 74, 0.18), transparent 40%);
  pointer-events: none;
  -webkit-mask:
    linear-gradient(black, black) content-box,
    linear-gradient(black, black);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  padding: 1px;
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
  gap: 16px;
  padding: 4px 4px 0;
}

.cal-date {
  color: var(--text-faint);
  font-size: 10px;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
}

.cal-title {
  font-family: 'Satoshi', system-ui, sans-serif;
  font-weight: 600;
  font-size: 16px;
  letter-spacing: -0.01em;
  color: var(--text);
  line-height: 1.1;
}

.cal-key {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  justify-content: flex-end;
  max-width: 60%;
}

.cal-key-chip {
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 9.5px;
  font-weight: 600;
  color: black;
  letter-spacing: 0.02em;
}

.cal-grid {
  display: grid;
  grid-template-columns: 36px repeat(7, minmax(0, 1fr));
  gap: 1px;
  background: #181818;
  border-radius: 8px;
  overflow: hidden;
  font-size: 9px;
}

.cal-cell {
  background: #0d0d0d;
  padding: 3px 3px;
  min-height: 26px;
  display: flex;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 2px;
}

.cal-time {
  background: #060606;
  color: var(--text-faint);
  font-size: 9px;
  text-align: right;
  padding: 4px 6px 0 0;
  font-family: 'Satoshi', sans-serif;
  font-weight: 500;
}

.cal-col-header {
  background: #060606;
  color: var(--text-dim);
  font-size: 9.5px;
  text-align: center;
  padding: 6px 2px;
  font-weight: 600;
  font-family: 'Satoshi', sans-serif;
  letter-spacing: 0.02em;
}

.cal-corner {
  background: #060606;
}

.cal-event {
  font-size: 9px;
  padding: 2.5px 5px;
  border-radius: 4px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  width: 100%;
  font-family: 'Satoshi', sans-serif;
  line-height: 1.2;
}

.cal-event--sprint {
  background: var(--cat-sprint);
  color: black;
}
.cal-event--dist {
  background: var(--cat-dist);
  color: black;
}
.cal-event--hurd {
  background: var(--cat-hurd);
  color: black;
}
.cal-event--throw {
  background: var(--cat-throw);
  color: var(--text);
}
.cal-event--jump {
  background: var(--cat-jump);
  color: var(--text);
}
.cal-event--relay {
  background: var(--cat-relay);
  color: var(--text);
}
.cal-event--multi {
  background: var(--cat-multi);
  color: var(--text);
}

@media (max-width: 600px) {
  .cal-grid {
    grid-template-columns: 30px repeat(7, minmax(0, 1fr));
  }
  .cal-event,
  .cal-key-chip,
  .cal-col-header {
    font-size: 8px;
  }
  .cal-time {
    font-size: 8px;
  }
}

/* ── Mobile ── */
@media (max-width: 760px) {
  .nav-links {
    display: none;
  }
}

@media (max-width: 640px) {
  :root {
    --container-pad: 20px;
  }
  .nav {
    padding: 18px 0;
  }
  .nav-actions .btn {
    padding: 9px 16px;
    font-size: 14px;
  }
  .brand img {
    height: 28px;
  }
  .hero {
    padding: 32px 0 56px;
  }
  .section,
  .section-tight {
    padding: 48px 0;
  }
  .cta-section {
    padding: 48px 24px;
  }
  .footer {
    margin-top: 56px;
  }
  .waitlist {
    flex-direction: column;
    padding: 10px;
    border-radius: 20px;
  }
  .waitlist input {
    padding: 12px 14px;
  }
  .waitlist button {
    width: 100%;
  }
}
