/* Rally — marketing landing page */

.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-5);
}
@media (min-width: 768px) { .container { padding: 0 var(--space-8); } }

/* ---------- Nav ---------- */
.site-nav {
  position: sticky;
  top: 0;
  z-index: var(--z-nav);
  background: rgb(246 247 243 / 0.88);
  backdrop-filter: saturate(1.4) blur(12px);
  -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.site-nav.is-scrolled { border-bottom-color: var(--color-border); box-shadow: var(--shadow-1); }
.nav-inner { display: flex; align-items: center; gap: var(--space-6); height: 68px; }
.nav-links { display: flex; gap: var(--space-1); margin-left: var(--space-6); }
.nav-links a {
  display: inline-flex; align-items: center;
  min-height: 44px; padding: 0 var(--space-3);
  border-radius: var(--radius-sm);
  font-weight: 550; font-size: var(--text-sm);
  color: var(--color-fg-muted);
  text-decoration: none;
  transition: color var(--dur-fast) ease, background-color var(--dur-fast) ease;
}
.nav-links a:hover { color: var(--color-fg); background: rgb(16 32 26 / 0.05); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: var(--space-2); }
.nav-toggle { display: none; }

@media (max-width: 899px) {
  .nav-toggle { display: inline-flex; }
  .nav-login { display: none; }
  .nav-links {
    display: none;
    position: absolute; top: 68px; left: 0; right: 0;
    margin: 0;
    flex-direction: column;
    padding: var(--space-3) var(--space-5) var(--space-5);
    background: var(--color-bg);
    border-bottom: 1px solid var(--color-border);
    box-shadow: var(--shadow-2);
  }
  .nav-links.is-open { display: flex; }
  .nav-links a { font-size: var(--text-base); }
}
@media (max-width: 420px) {
  .nav-cta .btn-primary { padding: 0 var(--space-3); }
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: var(--space-12) 0 var(--space-16);
  overflow: hidden;
}
.hero::before {
  /* faint court lines */
  content: "";
  position: absolute; inset: -10% -20% auto auto;
  width: 900px; height: 700px;
  background:
    linear-gradient(90deg, transparent 49.8%, rgb(14 107 79 / 0.08) 49.8% 50.2%, transparent 50.2%),
    linear-gradient(0deg, transparent 34.8%, rgb(14 107 79 / 0.08) 34.8% 35.2%, transparent 35.2% 64.8%, rgb(14 107 79 / 0.08) 64.8% 65.2%, transparent 65.2%);
  border: 2px solid rgb(14 107 79 / 0.08);
  border-radius: 8px;
  transform: rotate(-8deg);
  pointer-events: none;
}
.hero-grid { position: relative; display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 1024px) {
  .hero { padding: var(--space-20) 0 var(--space-24); }
  .hero-grid { grid-template-columns: 1fr 1.05fr; gap: var(--space-16); }
}

.eyebrow {
  display: inline-flex; align-items: center; gap: var(--space-2);
  padding: 6px 14px 6px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: var(--text-sm); font-weight: 600;
  color: var(--color-fg-muted);
}
.eyebrow-dot { width: 10px; height: 10px; border-radius: 50%; background: var(--ball-400); box-shadow: 0 0 0 3px var(--ball-100); }

.hero h1 {
  margin-top: var(--space-5);
  font-size: clamp(2.4rem, 5.4vw, 3.9rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  color: var(--court-950);
}
.hl {
  background: linear-gradient(transparent 62%, var(--ball-400) 62% 92%, transparent 92%);
  padding: 0 0.06em;
}
.lede {
  margin-top: var(--space-5);
  max-width: 34em;
  font-size: var(--text-lg);
  line-height: 1.6;
  color: var(--color-fg-muted);
}
.hero-actions { display: flex; flex-wrap: wrap; gap: var(--space-3); margin-top: var(--space-8); }
.hero-assurances {
  display: flex; flex-wrap: wrap; gap: var(--space-2) var(--space-5);
  margin-top: var(--space-5);
  list-style: none;
  font-size: var(--text-sm); color: var(--color-fg-muted); font-weight: 550;
}
.hero-assurances li { display: inline-flex; align-items: center; gap: 6px; }
.hero-assurances .icon { color: var(--court-700); stroke-width: 2.5; }

/* Hero product visual */
.hero-visual { position: relative; padding: var(--space-8) 0 104px; }
.board {
  position: relative;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-3);
  padding: var(--space-5);
  overflow: hidden;
}
.board-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: var(--space-4); }
.board-title { font-weight: 750; font-size: var(--text-sm); }
.board-sub { font-size: var(--text-xs); color: var(--color-fg-subtle); }
.live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: var(--text-xs); font-weight: 700; color: var(--color-success);
  background: var(--color-success-bg); padding: 2px 10px; border-radius: var(--radius-pill);
}
.live-dot { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
@media (prefers-reduced-motion: no-preference) {
  .live-dot { animation: pulse 2s ease-in-out infinite; }
}
@keyframes pulse { 50% { opacity: 0.35; } }

.board-axis {
  display: grid; grid-template-columns: 64px repeat(5, 1fr);
  padding-right: 20px;
  font-size: 11px; font-weight: 600; color: var(--color-fg-subtle);
  margin-bottom: var(--space-2);
}
.board-rows { display: grid; gap: 6px; padding-right: 20px; }
.b-row { display: grid; grid-template-columns: 64px 1fr; align-items: center; }
.b-label { font-size: 12px; font-weight: 650; color: var(--color-fg-muted); }
.b-track {
  position: relative; height: 44px;
  background: repeating-linear-gradient(90deg, transparent 0 calc(20% - 1px), var(--color-border) calc(20% - 1px) 20%), var(--color-surface-2);
  border-radius: 8px;
}
.b {
  position: absolute; top: 3px; bottom: 3px;
  display: flex; align-items: center;
  padding: 0 8px; margin-right: 3px;
  border-radius: 6px;
  border-left: 3px solid;
  font-style: normal; font-size: 11px; font-weight: 650;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.b-top { bottom: 50%; margin-bottom: 1px; }
.b-bottom { top: 50%; margin-top: 1px; }
.is-conflict .b-top, .is-conflict .b-bottom { outline: 2px solid var(--color-danger); outline-offset: -1px; }
.b-open-slot { background: repeating-linear-gradient(-45deg, #fff 0 6px, var(--court-50) 6px 12px); border: 1.5px dashed var(--court-600); color: var(--court-700); }
.t-booking { background: var(--t-booking-bg); border-color: var(--t-booking-edge); color: var(--t-booking-fg); }
.t-open { background: var(--t-open-bg); border-color: var(--t-open-edge); color: var(--t-open-fg); }
.t-league { background: var(--t-league-bg); border-color: var(--t-league-edge); color: var(--t-league-fg); }
.t-clinic { background: var(--t-clinic-bg); border-color: var(--t-clinic-edge); color: var(--t-clinic-fg); }
.t-lesson { background: var(--t-lesson-bg); border-color: var(--t-lesson-edge); color: var(--t-lesson-fg); }
.board-now {
  position: absolute; top: 74px; bottom: 16px; width: 2px;
  background: var(--color-danger);
}
.board-now::before {
  content: ""; position: absolute; top: -4px; left: -4px;
  width: 10px; height: 10px; border-radius: 50%; background: var(--color-danger);
}

.float-card {
  position: absolute;
  display: flex; gap: var(--space-3);
  max-width: 320px;
  padding: var(--space-4);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-3);
}
.float-alert { left: -40px; bottom: -4px; max-width: 300px; border-color: var(--color-danger-border); }
.float-ok { right: -24px; top: -6px; max-width: 290px; }
.fc-icon { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 9px; }
.fc-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.fc-success { background: var(--color-success-bg); color: var(--color-success); }
.fc-title { font-weight: 700; font-size: var(--text-sm); line-height: 1.3; }
.fc-body { font-size: 12.5px; color: var(--color-fg-muted); margin-top: 2px; line-height: 1.45; }
.fc-actions { display: flex; align-items: center; gap: var(--space-3); margin-top: var(--space-3); }
.fc-btn { white-space: nowrap; font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 7px; background: var(--color-primary); color: #fff; }
.fc-link { font-size: 12px; font-weight: 650; color: var(--court-700); }

@media (prefers-reduced-motion: no-preference) {
  .float-alert { animation: rise 600ms var(--ease-out) 350ms both; }
  .float-ok { animation: rise 600ms var(--ease-out) 700ms both; }
}
@keyframes rise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

@media (max-width: 1023px) {
  .float-alert { left: 8px; }
  .float-ok { right: 8px; }
}
@media (max-width: 560px) {
  .hero-visual { padding: 0; }
  .float-card { position: relative; left: auto; right: auto; top: auto; bottom: auto; max-width: none; margin-top: var(--space-3); }
  .float-ok { display: none; }
  .board { padding: var(--space-4); }
  .board-axis, .b-row { grid-template-columns: 54px 1fr; }
  .board-axis { grid-template-columns: 54px repeat(5, 1fr); }
  .board-now { display: none; }
}

/* ---------- Proof ---------- */
.proof { padding: var(--space-10) 0; border-top: 1px solid var(--color-border); border-bottom: 1px solid var(--color-border); background: var(--color-surface); }
.proof-title { text-align: center; font-size: var(--text-sm); font-weight: 600; color: var(--color-fg-muted); letter-spacing: 0; }
.proof-logos {
  list-style: none;
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: var(--space-4) var(--space-10);
  margin-top: var(--space-6);
}
.proof-logos li {
  font-weight: 800; font-size: 1.05rem; letter-spacing: -0.02em;
  color: #6b7a72;
}
.proof-logos li:nth-child(2n) { font-style: italic; font-weight: 700; }
.proof-logos li:nth-child(3n) { letter-spacing: 0.08em; text-transform: uppercase; font-size: 0.85rem; }

/* ---------- Sections ---------- */
.section { padding: var(--space-20) 0; }
@media (min-width: 1024px) { .section { padding: var(--space-24) 0; } }
.section-tint { background: linear-gradient(180deg, var(--court-50), var(--color-bg)); }
.section-head { max-width: 720px; margin-bottom: var(--space-12); }
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  font-size: var(--text-sm); font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--court-700); margin-bottom: var(--space-3);
}
.section h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; color: var(--court-950); }
.section-lede { margin-top: var(--space-4); font-size: var(--text-lg); color: var(--color-fg-muted); max-width: 40em; }
.section-head.center .section-lede { margin-inline: auto; }

/* Features */
.feature-grid { list-style: none; display: grid; gap: var(--space-5); }
@media (min-width: 640px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .feature-grid { grid-template-columns: repeat(3, 1fr); } }
.feature {
  padding: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  transition: border-color var(--dur-base) ease, box-shadow var(--dur-base) ease;
}
.feature:hover { border-color: var(--color-border-strong); box-shadow: var(--shadow-2); }
.f-icon {
  display: grid; place-items: center;
  width: 44px; height: 44px; border-radius: 12px;
  background: var(--court-100); color: var(--court-700);
  margin-bottom: var(--space-4);
}
.feature h3 { font-size: var(--text-lg); font-weight: 750; }
.feature p { margin-top: var(--space-2); color: var(--color-fg-muted); font-size: 0.9375rem; }

/* Dark spotlight */
.section-dark { background: var(--court-900); color: #e6f0eb; position: relative; overflow: hidden; }
.section-dark h2 { color: #fff; }
.section-dark .section-lede { color: #b9cdc4; }
.kicker-on-dark { color: var(--ball-400); }
.spotlight { display: grid; gap: var(--space-12); align-items: center; }
@media (min-width: 1024px) { .spotlight { grid-template-columns: 1fr 1fr; gap: var(--space-16); } }
.steps { list-style: none; display: grid; gap: var(--space-5); margin-top: var(--space-8); }
.steps li { display: flex; gap: var(--space-4); }
.step-n {
  flex: none; display: grid; place-items: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--ball-400); color: var(--court-950);
  font-weight: 800; font-size: var(--text-sm);
}
.steps h3 { font-size: var(--text-base); font-weight: 700; color: #fff; }
.steps p { color: #b9cdc4; font-size: 0.9375rem; margin-top: 2px; }

.attn-card {
  background: var(--color-surface); color: var(--color-fg);
  border-radius: var(--radius-xl);
  padding: var(--space-5);
  box-shadow: 0 30px 60px -20px rgb(0 0 0 / 0.5);
}
.attn-head { display: flex; align-items: center; gap: var(--space-2); font-weight: 750; margin-bottom: var(--space-3); }
.attn-count { display: grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--radius-pill); background: var(--color-danger); color: #fff; font-size: 12px; }
.attn-item {
  display: grid; grid-template-columns: auto 1fr auto; gap: var(--space-3); align-items: center;
  padding: var(--space-3) 0;
  border-top: 1px solid var(--color-border);
}
.attn-item b { display: block; font-size: var(--text-sm); }
.attn-item small { display: block; font-size: 12.5px; color: var(--color-fg-muted); }
.ai-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; }
.ai-danger { background: var(--color-danger-bg); color: var(--color-danger); }
.ai-warn { background: var(--color-warning-bg); color: var(--color-warning); }
.ai-info { background: var(--color-info-bg); color: var(--color-info); }
.ai-btn { font-size: 12px; font-weight: 700; padding: 7px 12px; border-radius: 7px; border: 1px solid var(--color-border-strong); }

/* Outcomes */
.outcomes { display: grid; gap: var(--space-5); }
@media (min-width: 768px) { .outcomes { grid-template-columns: repeat(3, 1fr); } }
.stat {
  display: flex; flex-direction: column; gap: var(--space-2);
  padding: var(--space-6);
  border-left: 4px solid var(--ball-400);
  background: var(--color-surface);
  border-radius: 0 var(--radius-lg) var(--radius-lg) 0;
}
.stat-n { font-size: 2.6rem; font-weight: 800; letter-spacing: -0.04em; color: var(--court-700); line-height: 1; }
.stat-l { color: var(--color-fg-muted); font-weight: 500; }
.stat-note { margin-top: var(--space-3); font-size: var(--text-xs); color: var(--color-fg-subtle); }

.quote {
  margin: var(--space-16) auto 0;
  max-width: 820px;
  text-align: center;
}
.quote blockquote { margin: 0; }
.quote p { font-size: clamp(1.2rem, 2.2vw, 1.55rem); font-weight: 600; line-height: 1.5; letter-spacing: -0.015em; color: var(--court-950); }
.quote figcaption {
  display: inline-flex; align-items: center; gap: var(--space-3); text-align: left;
  margin-top: var(--space-6); font-size: var(--text-sm); color: var(--color-fg-muted);
}
.quote figcaption b { color: var(--color-fg); }
.avatar {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%;
  background: var(--court-700); color: #fff; font-weight: 700; font-size: var(--text-sm);
}

/* Pricing */
.pricing { display: grid; gap: var(--space-5); align-items: stretch; max-width: 1080px; margin: 0 auto; }
@media (min-width: 900px) { .pricing { grid-template-columns: repeat(3, 1fr); } }
.plan {
  position: relative;
  display: flex; flex-direction: column;
  padding: var(--space-8) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-1);
}
.plan h3 { font-size: var(--text-xl); font-weight: 800; }
.plan-fit { color: var(--color-fg-muted); font-size: var(--text-sm); margin-top: 2px; }
.price { display: flex; align-items: baseline; gap: 4px; margin: var(--space-5) 0; }
.amt { font-size: 3rem; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.per { color: var(--color-fg-muted); font-weight: 600; }
.btn-block { width: 100%; }
.plan-list { list-style: none; display: grid; gap: var(--space-3); margin-top: var(--space-6); font-size: 0.9375rem; }
.plan-list li { display: flex; gap: var(--space-2); align-items: flex-start; }
.plan-list .icon { margin-top: 3px; color: var(--court-700); stroke-width: 2.6; }
.plan-featured {
  background: var(--court-900); color: #e6f0eb; border-color: var(--court-900);
  box-shadow: var(--shadow-3);
}
@media (min-width: 900px) { .plan-featured { transform: translateY(-12px); } }
.plan-featured h3, .plan-featured .amt { color: #fff; }
.plan-featured .plan-fit, .plan-featured .per { color: #b9cdc4; }
.plan-featured .plan-list .icon { color: var(--ball-400); }
.plan-featured b { color: #fff; }
.plan-badge {
  position: absolute; top: -13px; left: var(--space-6);
  padding: 3px 12px; border-radius: var(--radius-pill);
  background: var(--ball-400); color: var(--court-950);
  font-size: var(--text-xs); font-weight: 800; letter-spacing: 0.02em;
}
.pricing-note { text-align: center; margin-top: var(--space-8); font-size: var(--text-sm); color: var(--color-fg-muted); }

/* FAQ */
.faq-wrap { display: grid; gap: var(--space-8); }
@media (min-width: 1024px) { .faq-wrap { grid-template-columns: 1fr 1.6fr; gap: var(--space-16); } }
.faq { border-top: 1px solid var(--color-border); }
.faq details { border-bottom: 1px solid var(--color-border); }
.faq summary {
  display: flex; justify-content: space-between; align-items: center; gap: var(--space-4);
  min-height: 64px; padding: var(--space-4) 0;
  font-weight: 700; font-size: 1.0625rem;
  cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .icon { color: var(--color-fg-subtle); transition: transform var(--dur-base) var(--ease-out); }
.faq details[open] summary .icon { transform: rotate(180deg); }
.faq details p { padding: 0 var(--space-8) var(--space-5) 0; color: var(--color-fg-muted); max-width: 62ch; }

/* Final CTA */
.final-cta { background: var(--court-950); color: #e6f0eb; padding: var(--space-20) 0; }
.cta-inner { display: grid; gap: var(--space-10); align-items: center; }
@media (min-width: 1024px) { .cta-inner { grid-template-columns: 1.1fr 1fr; gap: var(--space-16); } }
.final-cta h2 { font-size: clamp(1.75rem, 3.4vw, 2.6rem); font-weight: 800; letter-spacing: -0.03em; color: #fff; }
.final-cta p { margin-top: var(--space-4); color: #b9cdc4; font-size: var(--text-lg); max-width: 34em; }
.trial-form {
  display: grid; grid-template-columns: 1fr auto; gap: var(--space-3); align-items: start;
  padding: var(--space-6);
  background: rgb(255 255 255 / 0.04);
  border: 1px solid rgb(255 255 255 / 0.12);
  border-radius: var(--radius-xl);
}
.trial-form .field { display: contents; }
.trial-form label { grid-column: 1 / -1; font-weight: 650; font-size: var(--text-sm); color: #fff; }
.trial-form input {
  min-height: 52px; padding: 0 var(--space-4);
  border-radius: var(--radius-lg);
  border: 1px solid rgb(255 255 255 / 0.25);
  background: #fff; color: var(--color-fg);
  font-size: var(--text-base);
}
.trial-form input:focus-visible { outline: 3px solid var(--ball-400); outline-offset: 2px; }
.trial-form input[aria-invalid="true"] { border-color: #ff9b91; box-shadow: 0 0 0 1px #ff9b91; }
.trial-form .field-help { grid-column: 1 / -1; grid-row: 3; margin: 0; font-size: var(--text-sm); color: #b9cdc4; }
.trial-form .field-help b { color: #fff; }
.trial-form .field-error { color: #ffb4ab; font-weight: 600; }
.trial-form .form-status { grid-column: 1 / -1; margin: 0; font-size: var(--text-sm); font-weight: 650; color: var(--ball-400); }
.trial-form .form-status:empty { display: none; }
.final-cta .btn-accent:focus-visible { outline-color: #fff; }
@media (max-width: 560px) {
  .trial-form { grid-template-columns: 1fr; }
  .trial-form .field-help { grid-row: auto; }
}

/* Footer */
.footer { background: var(--court-950); color: #b9cdc4; border-top: 1px solid rgb(255 255 255 / 0.08); padding: var(--space-8) 0; }
.footer-inner { display: flex; flex-wrap: wrap; align-items: center; gap: var(--space-4) var(--space-8); }
.footer .logo { color: #fff; }
.footer nav { display: flex; flex-wrap: wrap; gap: var(--space-1); }
.footer nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 var(--space-3); text-decoration: none; font-size: var(--text-sm); font-weight: 600; border-radius: var(--radius-sm); }
.footer nav a:hover { color: #fff; }
.footer-fine { margin-left: auto; font-size: var(--text-xs); }
.footer :focus-visible { outline-color: var(--ball-400); }
.section-dark :focus-visible { outline-color: var(--ball-400); }
