/* HQ.tennis — marketing-only component classes.
 *
 * Brand tokens (colors, fonts, animations) live in app/assets/tailwind/application.css
 * (@theme block). This file is just the handful of component patterns that don't
 * fit cleanly into utilities — reused type recipes, buttons, the pill, card
 * patterns, FAQ accordion styling, and the founders photo placeholder.
 */

/* ---------- Type recipes ---------- */

.t-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
}

.t-mono {
  font-family: var(--font-mono);
  font-feature-settings: "tnum";
}

.t-display {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.95;
}

.t-display-xl {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.035em;
  line-height: 0.92;
  font-size: clamp(56px, 9vw, 132px);
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 14px 22px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
  border-radius: 8px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform 0.12s ease, background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  text-decoration: none;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

.btn-primary { background: var(--color-lime); color: var(--color-court-deepest); }
.btn-primary:hover { background: var(--color-lime-bright); }

.btn-ghost-dark { background: transparent; color: var(--color-paper); border-color: var(--color-rule-dark-strong); }
.btn-ghost-dark:hover { border-color: var(--color-lime); color: var(--color-lime); }

.btn-ghost-light { background: transparent; color: var(--color-ink); border-color: rgba(10,20,16,0.18); }
.btn-ghost-light:hover { border-color: var(--color-court-mid); color: var(--color-court-mid); }

.btn-sm { padding: 9px 14px; font-size: 13px; border-radius: 6px; }

/* ---------- Live "signals" pill (animated dot) ---------- */

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid var(--color-rule-dark-strong);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-lime);
  background: rgba(212, 255, 79, 0.04);
}
.pill .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-lime);
  box-shadow: 0 0 0 3px rgba(212, 255, 79, 0.18);
  animation: var(--animate-pulse-dot);
}

/* Light surface variant of the pill (for interior pages on paper bg) */
.pill-light {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border: 1px solid rgba(19, 58, 38, 0.20);
  border-radius: 999px;
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--color-court-mid);
  background: rgba(19, 58, 38, 0.04);
}
.pill-light .dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--color-court-mid);
  box-shadow: 0 0 0 3px rgba(19, 58, 38, 0.12);
  animation: var(--animate-pulse-dot);
}

/* ---------- Section header ---------- */

.sect-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 16px;
}
.sect-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.025em;
  line-height: 0.95;
  font-size: clamp(32px, 4.5vw, 56px);
  margin: 0;
  max-width: 800px;
}

/* ---------- How-it-works step card ---------- */

.step-card {
  border: 1px solid var(--color-rule-dark);
  border-radius: 10px;
  padding: 24px;
  background: rgba(19, 58, 38, 0.3);
  display: flex;
  flex-direction: column;
}
.step-card .step-num {
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-lime);
  letter-spacing: 0.12em;
  margin-bottom: 20px;
}
.step-card .step-art {
  aspect-ratio: 1.4 / 1;
  margin-bottom: 24px;
  background: var(--color-court-deep);
  border: 1px solid var(--color-rule-dark);
  border-radius: 6px;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.step-card .step-art > svg { width: 100%; height: 100%; display: block; }
.step-card h3 {
  font-family: var(--font-display);
  font-size: 21px;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.05;
  color: var(--color-paper);
  margin: 0 0 10px;
}
.step-card p {
  font-size: 14px;
  line-height: 1.55;
  color: var(--color-ink-faint);
  margin: 0;
}

/* ---------- City card (3-up grid with 1px gap) ---------- */

.city-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--color-rule-dark-strong);
  border: 1px solid var(--color-rule-dark-strong);
}
.city-card {
  background: var(--color-court-deep);
  padding: 32px 28px;
  text-decoration: none;
  color: inherit;
  display: block;
  transition: background 0.15s;
}
.city-card:hover { background: var(--color-court-mid); }
.city-card .name {
  font-family: var(--font-display);
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1;
  font-size: 28px;
  color: var(--color-paper);
  margin: 0;
}
@media (max-width: 760px) {
  .city-grid { grid-template-columns: 1fr; }
}

/* ---------- FAQ ---------- */

.faq-item {
  border-bottom: 1px solid var(--color-rule-dark);
}
.faq-item summary {
  list-style: none;
  padding: 24px 0;
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  color: var(--color-paper);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary > .q {
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 500;
  letter-spacing: -0.01em;
}
.faq-item summary > .pm {
  font-family: var(--font-mono);
  color: var(--color-lime);
  font-size: 18px;
  width: 18px;
  text-align: right;
}
.faq-item summary > .pm::before { content: "+"; }
.faq-item[open] summary > .pm::before { content: "–"; }
.faq-item .a {
  padding-bottom: 28px;
  padding-right: 64px;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(244, 241, 232, 0.78);
  max-width: 880px;
  animation: var(--animate-fade-up);
}

/* ---------- Founders photo placeholder (corner-bracket pseudos) ---------- */

.founders-photo {
  position: relative;
  aspect-ratio: 1 / 1;
  max-width: 280px;
  border: 1px solid var(--color-rule-dark);
  background:
    repeating-linear-gradient(
      135deg,
      rgba(212, 255, 79, 0.04) 0px,
      rgba(212, 255, 79, 0.04) 8px,
      rgba(212, 255, 79, 0.08) 8px,
      rgba(212, 255, 79, 0.08) 16px
    );
  display: flex;
  align-items: flex-end;
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--color-ink-faint);
}
.founders-photo::before,
.founders-photo::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
}
.founders-photo::before {
  top: 14px;
  left: 14px;
  border-top: 1px solid var(--color-rule-dark-strong);
  border-left: 1px solid var(--color-rule-dark-strong);
}
.founders-photo::after {
  bottom: 14px;
  right: 14px;
  border-bottom: 1px solid var(--color-rule-dark-strong);
  border-right: 1px solid var(--color-rule-dark-strong);
}

/* ---------- Ticker scroller (animation hook) ---------- */

.ticker-track {
  display: flex;
  animation: var(--animate-ticker);
  width: max-content;
  padding: 14px 0;
}
.ticker-item {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 0 28px;
  border-right: 1px solid var(--color-rule-dark);
  white-space: nowrap;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--color-paper);
  opacity: 0.85;
}
.ticker-item .bullet { color: var(--color-lime); }
