/* Rally — marketing page */

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body { background: var(--paper); }

.wrap {
  width: 100%;
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 28px;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(15, 53, 39, 0.92);
  backdrop-filter: saturate(140%) blur(10px);
  -webkit-backdrop-filter: saturate(140%) blur(10px);
  color: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}
.header-inner {
  display: flex;
  align-items: center;
  height: 64px;
  gap: 32px;
}
.site-nav { display: flex; gap: 26px; margin-left: 12px; }
.site-nav a, .header-link {
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-size: 14.5px;
  font-weight: 500;
}
.site-nav a:hover, .header-link:hover { color: #fff; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 18px; }

/* Hero */
.hero {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(900px 500px at 85% 20%, rgba(216, 241, 74, 0.10), transparent 60%),
    linear-gradient(180deg, #0f3527 0%, #133f2f 100%);
  color: #fff;
  padding: 72px 0 96px;
}
.hero-court {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  color: rgba(255, 255, 255, 0.07);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 13.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  color: rgba(255, 255, 255, 0.8);
  padding: 6px 14px 6px 10px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  margin-bottom: 26px;
}
.eyebrow .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--ball);
  box-shadow: 0 0 0 4px rgba(216, 241, 74, 0.2);
}
.hero h1 {
  font-size: clamp(40px, 4.9vw, 60px);
  font-weight: 750;
  letter-spacing: -0.035em;
  line-height: 1.02;
}
.hero h1 em {
  font-style: normal;
  color: var(--ball);
}
.lede {
  margin-top: 24px;
  font-size: 18.5px;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.78);
  max-width: 540px;
}
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.btn-outline-light { color: #fff; border-color: rgba(255, 255, 255, 0.3); background: transparent; }
.btn-outline-light:hover { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.6); }
.hero-note { margin-top: 14px; font-size: 14px; color: rgba(255, 255, 255, 0.6); }

/* Hero product mock */
.hero-visual { position: relative; margin-bottom: 96px; }
.mock {
  position: relative;
  background: #fbfaf6;
  color: var(--ink);
  border-radius: 18px;
  padding: 18px 18px 22px;
  box-shadow: 0 40px 80px -30px rgba(0, 0, 0, 0.6), 0 0 0 1px rgba(255, 255, 255, 0.06);
  transform: rotate(-1deg);
}
.mock-top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 14px; }
.mock-club { font-family: var(--font-display); font-weight: 700; font-size: 17px; letter-spacing: -0.02em; }
.mock-date { font-size: 12.5px; color: var(--ink-3); }
.mock-live {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; font-weight: 600; color: var(--court);
  background: var(--court-soft); padding: 4px 10px; border-radius: 999px;
}
.mock-live span { width: 6px; height: 6px; border-radius: 50%; background: var(--court); animation: pulse 1.6s infinite; }
@keyframes pulse { 50% { opacity: 0.3; } }

.mock-grid { --row: 38px; --gap: 6px; --label: 34px; }
.mock-hours {
  display: flex;
  justify-content: space-between;
  margin-left: var(--label);
  font-size: 11px;
  color: var(--ink-3);
  padding-bottom: 6px;
}
.mock-hours span { width: 0; white-space: nowrap; }
.mock-hours span:last-child { direction: rtl; }
.mock-rows { position: relative; display: grid; gap: var(--gap); }
.mock-row { display: flex; align-items: center; height: var(--row); }
.mock-row b { width: var(--label); flex: none; font-size: 11.5px; color: var(--ink-3); font-weight: 600; }
.lane {
  position: relative;
  flex: 1;
  height: 100%;
  border-radius: 7px;
  background:
    repeating-linear-gradient(90deg, transparent 0 calc(25% - 1px), var(--line) calc(25% - 1px) 25%),
    #f1eee5;
}
.blk {
  position: absolute;
  top: 3px;
  bottom: 3px;
  border-radius: 5px;
  padding: 0 8px;
  font-style: normal;
  font-size: 11.5px;
  font-weight: 600;
  display: flex;
  align-items: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.05);
}
.blk + .blk { margin-left: 2px; }
.blk.blk-top { align-items: flex-start; padding-top: 3px; }
.blk-book { background: #dce9e1; color: #174a36; }
.blk-league { background: var(--sky-soft); color: #234c9b; }
.blk-clinic { background: var(--plum-soft); color: #573394; }
.blk-open {
  background: transparent;
  color: var(--court);
  box-shadow: inset 0 0 0 1.5px rgba(29, 90, 66, 0.45);
  border: 0;
  background-image: repeating-linear-gradient(135deg, rgba(29, 90, 66, 0.07) 0 6px, transparent 6px 12px);
}
.blk-ladder { background: var(--amber-soft); color: #7a520a; }

.mock-mover {
  left: calc(var(--label) + (100% - var(--label)) * 0.25);
  width: calc((100% - var(--label)) * 0.25);
  top: 19px;
  bottom: auto;
  height: 22px;
  font-size: 11px;
  background: #fff1ea;
  color: #a93c1b;
  box-shadow: inset 0 0 0 1.5px var(--clay), 0 6px 14px -6px rgba(212, 85, 47, 0.6);
  animation: mover 9s infinite cubic-bezier(.6, 0, .3, 1);
}
@keyframes mover {
  0%, 40% { transform: translateY(0); background: #fff1ea; color: #a93c1b; box-shadow: inset 0 0 0 1.5px var(--clay), 0 6px 14px -6px rgba(212, 85, 47, 0.6); }
  52%, 92% {
    transform: translateY(calc((var(--row) + var(--gap)) * 4 - 14px));
    background: var(--amber-soft); color: #7a520a; box-shadow: inset 0 0 0 1px rgba(0,0,0,0.05);
  }
  100% { transform: translateY(0); }
}

.mock-alert {
  position: absolute;
  right: -18px;
  bottom: -112px;
  width: 316px;
  min-height: 128px;
  background: #fff;
  border-radius: 14px;
  box-shadow: var(--shadow-lg);
  border: 1px solid var(--line);
  transform: rotate(1deg);
}
.mock-alert-state {
  position: absolute;
  inset: 0;
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 5px;
}
.mock-alert-state strong { font-size: 14px; line-height: 1.3; }
.mock-alert-state .sub { font-size: 12.5px; color: var(--ink-3); line-height: 1.4; }
.is-conflict { animation: showA 9s infinite; }
.is-fixed { animation: showB 9s infinite; opacity: 0; }
@keyframes showA { 0%, 42% { opacity: 1; } 47%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes showB { 0%, 50% { opacity: 0; } 55%, 92% { opacity: 1; } 97%, 100% { opacity: 0; } }
.fake-btn {
  align-self: flex-start;
  margin-top: 4px;
  background: var(--court);
  color: #fff;
  font-size: 12px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
}
.pill {
  align-self: flex-start;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 2px 8px;
  border-radius: 999px;
}
.pill-red { background: var(--clay-soft); color: #a93c1b; }
.pill-green { background: var(--court-soft); color: var(--court); }

@media (prefers-reduced-motion: reduce) {
  .mock-mover, .is-conflict, .is-fixed, .mock-live span { animation: none; }
}

/* Strip */
.strip { border-bottom: 1px solid var(--line); background: var(--paper-2); }
.strip-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-top: 22px;
  padding-bottom: 22px;
  flex-wrap: wrap;
}
.strip p { font-weight: 600; color: var(--ink-2); }
.strip ul { display: flex; gap: 28px; list-style: none; margin: 0; padding: 0; flex-wrap: wrap; font-size: 14px; color: var(--ink-3); }
.strip li strong { color: var(--ink); }

/* Sections */
.section-head { max-width: 640px; margin-bottom: 48px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head h2 { font-size: clamp(30px, 3.6vw, 44px); margin: 10px 0 14px; }
.section-head p:not(.kicker) { color: var(--ink-2); font-size: 17px; }
.kicker {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--court);
}

/* Day timeline */
.day { padding: 104px 0 96px; }
.timeline {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}
.timeline li:last-child { grid-column: span 2; }
@media (max-width: 1100px) { .timeline { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 640px) { .timeline { grid-template-columns: minmax(0, 1fr); } .timeline li:last-child { grid-column: auto; } }
.timeline li { display: flex; flex-direction: column; gap: 10px; }
.timeline time {
  font-family: var(--font-display);
  font-weight: 650;
  font-size: 15px;
  color: var(--ink-3);
  display: flex;
  align-items: center;
  gap: 10px;
}
.timeline time::after { content: ""; flex: 1; height: 1px; background: var(--line-2); }
.tl-card {
  flex: 1;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 22px 22px 24px;
  transition: transform 0.2s, box-shadow 0.2s;
}
.tl-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); }
.tl-card h3 { font-size: 20px; margin: 14px 0 8px; }
.tl-card p { color: var(--ink-2); font-size: 15px; }
.timeline li:last-child .tl-card { background: var(--court-deep); color: #fff; border-color: var(--court-deep); }
.timeline li:last-child .tl-card p { color: rgba(255, 255, 255, 0.75); }

.tag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: 999px;
}
.tag-teal { background: var(--teal-soft); color: #0d665d; }
.tag-plum { background: var(--plum-soft); color: #573394; }
.tag-amber { background: var(--amber-soft); color: #7a520a; }
.tag-red { background: var(--clay-soft); color: #a93c1b; }
.tag-ball { background: #eef8c1; color: #4f5a07; }
.tag-sky { background: var(--sky-soft); color: #234c9b; }
.tag-court { background: var(--ball); color: var(--court-ink); }

/* Dashboard pitch */
.dash { padding: 96px 0; background: var(--paper-2); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.dash-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 64px; align-items: center; }
.dash-copy h2 { font-size: clamp(30px, 3.4vw, 42px); margin: 10px 0 24px; }
.checks { list-style: none; padding: 0; margin: 0 0 32px; display: grid; gap: 16px; }
.checks li {
  position: relative;
  padding-left: 34px;
  color: var(--ink-2);
  font-size: 16px;
}
.checks li strong { color: var(--ink); }
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--court) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23d8f14a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12.5l4 4 8-9'/%3E%3C/svg%3E") center / 14px no-repeat;
}

.quote {
  margin: 0;
  background: var(--card);
  border-radius: 20px;
  padding: 34px;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.quote blockquote {
  margin: 0;
  font-family: var(--font-display);
  font-size: 23px;
  line-height: 1.3;
  font-weight: 500;
  letter-spacing: -0.015em;
}
.quote figcaption { display: flex; align-items: center; gap: 14px; margin-top: 24px; font-size: 14px; color: var(--ink-3); }
.quote figcaption strong { color: var(--ink); }
.avatar {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--ball); color: var(--court-ink);
  font-weight: 700; font-size: 14px; flex: none;
}
.quote-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin: 26px 0 0;
  padding-top: 22px;
  border-top: 1px solid var(--line);
}
.quote-stats dt { font-size: 13px; color: var(--ink-3); }
.quote-stats dd { margin: 2px 0 0; font-family: var(--font-display); font-size: 34px; font-weight: 700; letter-spacing: -0.03em; color: var(--court); }

/* Pricing */
.pricing { padding: 104px 0 96px; }
.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.plan {
  position: relative;
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 30px 28px 32px;
  display: flex;
  flex-direction: column;
}
.plan h3 { font-size: 24px; }
.plan-for { color: var(--ink-3); margin-top: 6px; font-size: 15px; min-height: 45px; }
.price { margin: 18px 0 22px; display: flex; align-items: baseline; gap: 2px; }
.price .amt { font-family: var(--font-display); font-size: 54px; font-weight: 750; letter-spacing: -0.04em; line-height: 1; }
.price .per { color: var(--ink-3); font-size: 16px; font-weight: 500; }
.plan-cta { width: 100%; height: 46px; }
.plan ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 11px; font-size: 15px; color: var(--ink-2); }
.plan li { position: relative; padding-left: 26px; }
.plan li::before {
  content: "";
  position: absolute;
  left: 2px;
  top: 6px;
  width: 12px;
  height: 7px;
  border-left: 2px solid var(--court);
  border-bottom: 2px solid var(--court);
  transform: rotate(-45deg);
}
.plan li strong { color: var(--ink); }
.plan-featured {
  background: var(--court-deep);
  border-color: var(--court-deep);
  color: #fff;
  box-shadow: var(--shadow-lg);
  transform: translateY(-8px);
}
.plan-featured .plan-for, .plan-featured .price .per { color: rgba(255, 255, 255, 0.65); }
.plan-featured ul { color: rgba(255, 255, 255, 0.8); }
.plan-featured li strong { color: #fff; }
.plan-featured li::before { border-color: var(--ball); }
.plan-badge {
  position: absolute;
  top: 26px;
  right: 24px;
  background: var(--ball);
  color: var(--court-ink);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
}
.plans-note { text-align: center; margin-top: 30px; color: var(--ink-3); font-size: 14px; }

/* FAQ */
.faq { padding: 40px 0 104px; }
.faq-grid { display: grid; grid-template-columns: 0.8fr 1.2fr; gap: 56px; align-items: start; }
.faq-list { border-top: 1px solid var(--line-2); }
.faq details { border-bottom: 1px solid var(--line-2); }
.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 40px 20px 0;
  font-weight: 600;
  font-size: 17px;
  position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  position: absolute;
  right: 4px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 24px;
  font-weight: 400;
  color: var(--ink-3);
  transition: transform 0.2s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 40px 22px 0; color: var(--ink-2); }

/* CTA */
.cta {
  background: var(--court-deep);
  color: #fff;
  padding: 88px 0;
  position: relative;
  overflow: hidden;
}
.cta::before {
  content: "";
  position: absolute;
  right: -120px;
  top: -120px;
  width: 420px;
  height: 420px;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 50%, rgba(216, 241, 74, 0.18), transparent 65%);
}
.cta-inner { position: relative; text-align: center; max-width: 720px; }
.cta h2 { font-size: clamp(32px, 4vw, 50px); letter-spacing: -0.035em; }
.cta p { color: rgba(255, 255, 255, 0.72); margin-top: 14px; font-size: 17px; }
.cta-form { display: flex; gap: 10px; justify-content: center; margin-top: 32px; flex-wrap: wrap; position: relative; }
.cta-form input {
  height: 50px;
  width: min(340px, 100%);
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.06);
  color: #fff;
  padding: 0 22px;
  font: inherit;
  font-size: 16px;
}
.cta-form input::placeholder { color: rgba(255, 255, 255, 0.45); }
.cta-form input:focus { outline: none; border-color: var(--ball); background: rgba(255, 255, 255, 0.1); }
.cta-form .cta-sent { display: none; width: 100%; color: var(--ball); font-weight: 600; margin-top: 6px; }
.cta-form.sent .cta-sent { display: block; }
.cta-form.sent input, .cta-form.sent button { display: none; }

/* Footer */
.site-footer { background: var(--court-ink); color: rgba(255, 255, 255, 0.6); padding: 32px 0; font-size: 14px; }
.footer-inner { display: flex; align-items: center; gap: 32px; flex-wrap: wrap; }
.site-footer .logo { color: #fff; font-size: 18px; }
.site-footer nav { display: flex; gap: 22px; }
.site-footer nav a { text-decoration: none; }
.site-footer nav a:hover { color: #fff; }
.site-footer p { margin-left: auto; }

/* Responsive */
@media (max-width: 980px) {
  .hero-grid, .dash-grid, .faq-grid { grid-template-columns: 1fr; }
  .hero-visual { max-width: 560px; margin: 0 auto 40px; width: 100%; }
  .mock-alert { right: 12px; }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan-featured { transform: none; }
  .site-nav { display: none; }
}
@media (max-width: 560px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 48px 0 80px; }
  .header-link { display: none; }
  .mock-alert { width: calc(100% - 24px); right: 12px; }
  .site-footer p { margin-left: 0; }
}
