@import url('drh-tokens.css');
@import url('https://fonts.googleapis.com/css2?family=Saira+Condensed:wght@500;600;700;800&family=Barlow:ital,wght@0,400;0,500;0,600;0,700;1,400;1,600&family=JetBrains+Mono:wght@400;500;700&display=swap');

/* ---------------------------------------------------------------------
   Dirt Race Hub public marketing site (dirtracehub.com "/"). Shares the
   same design tokens as the staff app (dirt-race-hub.css) and the auth
   pages (_AuthLayout.cshtml's inline styles), but is its own stylesheet
   since the marketing surface has no dependency on the staff app shell.
   Zero JavaScript by design — every interactive-looking element here
   (nav anchors, <details> FAQ, CTA links) is plain HTML/CSS.
   --------------------------------------------------------------------- */

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  color: var(--text-body);
  background: var(--surface-page);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--text-heading);
  line-height: 1.05;
}

h1,
.display {
  font-family: var(--font-display);
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
}

h2 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: .01em;
  text-transform: uppercase;
  font-size: var(--text-3xl);
}

a {
  color: inherit;
}

.site-container {
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Nav ---- */

.site-nav {
  position: sticky;
  top: 0;
  z-index: 10;
  border-bottom: 1px solid var(--border-subtle);
  background: rgba(250, 250, 248, .92);
  backdrop-filter: saturate(180%) blur(6px);
}

.site-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 0;
}

.site-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.site-brand-mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 8px;
  background: var(--track-900);
  color: var(--clay-300);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 800;
  flex: none;
}

.site-brand-name {
  color: var(--track-900);
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 800;
  letter-spacing: .01em;
  text-transform: uppercase;
}

.site-brand-name b {
  color: var(--clay-600);
}

.site-nav-links {
  display: flex;
  align-items: center;
  gap: 28px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.site-nav-links a {
  color: var(--text-body);
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
}

.site-nav-links a:hover {
  color: var(--clay-600);
}

.site-nav-actions {
  display: flex;
  align-items: center;
  gap: 18px;
}

.site-nav-actions .link-signin {
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  color: var(--text-body);
}

.site-nav-actions .link-signin:hover {
  color: var(--clay-600);
}

.site-nav-mobile-links {
  display: none;
}

/* ---- Buttons ---- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 7px;
  font-weight: 800;
  font-size: 15px;
  text-decoration: none;
  white-space: nowrap;
}

.btn-primary {
  border-color: var(--clay-600);
  background: var(--clay-600);
  color: white;
}

.btn-primary:hover {
  background: var(--clay-700);
  border-color: var(--clay-700);
}

.btn-secondary {
  border-color: var(--border-default);
  background: var(--surface-card);
  color: var(--text-heading);
}

.btn-secondary:hover {
  border-color: var(--clay-600);
  color: var(--clay-600);
}

.btn-lg {
  min-height: 52px;
  padding: 0 28px;
  font-size: 16px;
}

/* ---- Hero ---- */

.hero {
  padding: 64px 0 56px;
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 440px);
  gap: 48px;
  align-items: center;
}

.hero-eyebrow {
  display: inline-block;
  margin-bottom: 16px;
  padding: 5px 12px;
  border: 1px solid var(--clay-100);
  border-radius: 999px;
  background: var(--clay-50);
  color: var(--clay-600);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: var(--text-hero);
  max-width: 14ch;
}

.hero-subhead {
  max-width: 46ch;
  margin: 20px 0 28px;
  color: var(--text-body);
  font-size: var(--text-lg);
  line-height: 1.5;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px;
}

.hero-ctas .link-signin {
  font-weight: 700;
  text-decoration: none;
  color: var(--text-heading);
}

.hero-ctas .link-signin:hover {
  color: var(--clay-600);
}

/* Hero visual: a real order-desk screenshot (Task 7.3) inside a lightweight
   browser-style frame. The frame chrome (dots + bar) is CSS only — the image
   itself is the actual app, not a mockup. */
.app-frame {
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

.app-frame-chrome {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 10px 14px;
  background: var(--track-900);
}

.app-frame-dot {
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--track-600);
}

.app-frame-dot:first-child {
  background: var(--clay-500);
}

.app-frame-title {
  margin-left: 8px;
  color: var(--track-300);
  font-size: 12px;
  font-weight: 600;
}

.app-frame-shot {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Showcase strip (Task 7.3): register + confirm screenshots ---- */

.showcase-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 40px;
  align-items: start;
  max-width: 640px;
  margin: 0 auto;
}

.showcase-item {
  text-align: center;
}

.showcase-item h3 {
  margin-bottom: 6px;
  font-size: var(--text-base);
}

.showcase-item p {
  margin: 0 0 20px;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* A phone-style frame around the mobile screenshots: rounded corners plus a
   thicker "bezel" border so the screenshot reads as a phone, CSS only. */
.phone-frame {
  display: inline-block;
  padding: 10px;
  border: 1px solid var(--border-subtle);
  border-radius: 28px;
  background: var(--track-900);
  box-shadow: var(--shadow-md);
}

.phone-frame img {
  display: block;
  width: 220px;
  height: auto;
  border-radius: 20px;
}

/* ---- Generic sections ---- */

.section {
  padding: 56px 0;
  border-top: 1px solid var(--border-subtle);
}

.section-header {
  max-width: 640px;
  margin: 0 auto 40px;
  text-align: center;
}

.section-header h2 {
  margin-bottom: 12px;
}

.section-header p {
  color: var(--text-muted);
  font-size: var(--text-lg);
}

/* ---- How it works ---- */

.steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 24px;
}

.step {
  display: grid;
  gap: 10px;
}

.step-number {
  display: grid;
  width: 36px;
  height: 36px;
  place-items: center;
  border-radius: 999px;
  background: var(--track-900);
  color: var(--clay-300);
  font-family: var(--font-display);
  font-weight: 800;
  font-size: 16px;
}

.step h3 {
  font-size: var(--text-lg);
}

.step p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* ---- Feature grid (reuses .card look from the staff app) ---- */

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.card {
  padding: var(--space-6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  background: var(--surface-card);
  box-shadow: var(--shadow-sm);
}

.feature-card-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: var(--radius-md);
  background: var(--clay-50);
  color: var(--clay-600);
  font-size: 18px;
}

.feature-card h3 {
  margin-bottom: 8px;
  font-size: var(--text-base);
}

.feature-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: var(--text-sm);
}

/* Events dashboard screenshot (Task 7.3), shown under the feature grid in the
   same browser-chrome frame as the hero shot for a consistent look. */
.feature-shot-frame {
  max-width: 720px;
  margin: 32px auto 0;
}

.feature-shot-frame img {
  display: block;
  width: 100%;
  height: auto;
}

/* ---- Pricing ---- */

.pricing-wrap {
  display: flex;
  justify-content: center;
}

.pricing-card {
  width: 100%;
  max-width: 420px;
  padding: 36px;
  text-align: center;
}

.pricing-amount {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 6px;
  margin: 18px 0 6px;
}

.pricing-amount .amount {
  color: var(--track-900);
  font-family: var(--font-display);
  font-size: 52px;
  font-weight: 800;
}

.pricing-amount .period {
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 600;
}

.pricing-tagline {
  margin-bottom: 22px;
  color: var(--text-muted);
  font-size: 14px;
}

.pricing-features {
  display: grid;
  gap: 12px;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  text-align: left;
}

.pricing-features li {
  position: relative;
  padding-left: 26px;
  color: var(--text-body);
  font-size: 15px;
}

.pricing-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--green-flag);
  font-weight: 800;
}

.pricing-cash-note {
  margin-top: 18px;
  padding: 12px 14px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-page);
  color: var(--text-muted);
  font-size: 13px;
}

/* ---- FAQ ---- */

.faq-list {
  display: grid;
  gap: 12px;
  max-width: 760px;
  margin: 0 auto;
}

.faq-item {
  padding: 4px 20px;
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  background: var(--surface-card);
}

.faq-item summary {
  padding: 16px 0;
  color: var(--text-heading);
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  float: right;
  color: var(--clay-600);
  font-weight: 800;
}

.faq-item[open] summary::after {
  content: "\2212";
}

.faq-item p {
  margin: 0 0 16px;
  color: var(--text-body);
  font-size: 14px;
  line-height: 1.6;
}

/* ---- Final CTA band ---- */

.cta-band {
  padding: 64px 0;
  background: var(--track-900);
  text-align: center;
}

.cta-band h2 {
  color: white;
  margin-bottom: 20px;
}

/* ---- Footer ---- */

.site-footer {
  border-top: 1px solid var(--border-subtle);
  padding: 32px 0;
  background: var(--surface-page);
}

.site-footer-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.site-footer-links {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
}

.site-footer-links a {
  color: var(--text-muted);
  text-decoration: none;
}

.site-footer-links a:hover {
  color: var(--clay-600);
}

.site-footer-copy {
  color: var(--text-muted);
  font-size: 13px;
}

/* ---- Responsive ---- */

@media (max-width: 860px) {
  .hero-grid {
    grid-template-columns: 1fr;
  }

  .steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .feature-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .site-nav-links {
    display: none;
  }
}

@media (max-width: 560px) {
  .steps,
  .feature-grid {
    grid-template-columns: 1fr;
  }

  .site-nav-actions .btn-secondary {
    display: none;
  }

  .hero {
    padding: 40px 0 40px;
  }

  .showcase-grid {
    grid-template-columns: 1fr;
    gap: 32px;
  }
}
