/* RideJam site styles — brand system pulled from the venture pitch deck
   Gradient: teal #34D399 -> sky blue #38BDF8 -> purple #8B5CF6 -> magenta #EC4899 -> orange #FB923C
   Dark, near-black ground; white headlines; muted gray body text. */

:root {
  --bg: #08080d;
  --bg-panel: #131320;
  --bg-panel-2: #1b1b2c;
  --border: #2a2a3d;
  --text: #f5f5fa;
  --text-muted: #a7a7bd;
  --teal: #34D399;
  --blue: #38BDF8;
  --purple: #8B5CF6;
  --magenta: #EC4899;
  --orange: #FB923C;
  --gradient: linear-gradient(90deg, var(--teal), var(--blue), var(--purple), var(--magenta), var(--orange));
  --radius: 16px;
  --max-width: 1080px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.5;
}

a { color: inherit; }

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

.wrap {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  background: rgba(8, 8, 13, 0.92);
  backdrop-filter: blur(6px);
  z-index: 10;
}

.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.logo-link {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}

.logo-link img {
  height: 32px;
  width: auto;
}

.logo-icon { height: 34px; }
.logo-word { height: 26px; }

nav.main-nav {
  display: flex;
  gap: 28px;
}

nav.main-nav a {
  display: inline-block;
  color: var(--text-muted);
  text-decoration: none;
  font-size: 15px;
  font-weight: 500;
  padding: 12px 2px;
  transition: color 0.15s ease;
}

nav.main-nav a:hover,
nav.main-nav a.active {
  color: var(--text);
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 16px;
  text-decoration: none;
  border: none;
  cursor: pointer;
}

.btn-primary {
  background: var(--gradient);
  color: #08080d;
}

.btn-secondary {
  background: transparent;
  color: var(--text);
  border: 1px solid var(--border);
}

.btn-primary:disabled {
  background: var(--bg-panel-2);
  color: var(--text-muted);
  border: 1px solid var(--border);
  opacity: 1;
}

.btn-block { display: block; width: 100%; text-align: center; }

/* Focus visibility — this product is used one-handed, often while distracted */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--purple);
  outline-offset: 2px;
  border-radius: 4px;
}

/* Disabled controls should look inactive, not broken */
button:disabled,
input:disabled,
.pref-chip:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.coming-soon {
  display: inline-block;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
  margin: -14px 0 24px;
}

/* Hero */
.hero {
  padding: 88px 0 64px;
  text-align: center;
}

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 0.12em;
  font-size: 13px;
  font-weight: 700;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin-bottom: 14px;
}

h1 {
  font-size: 56px;
  line-height: 1.08;
  margin: 0 0 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
}

.subhead {
  font-size: 19px;
  color: var(--text-muted);
  max-width: 640px;
  margin: 0 auto 32px;
}

.hero-actions { margin-bottom: 48px; }

.hero-note {
  display: block;
  color: var(--text-muted);
  font-size: 14px;
  margin: 14px 0 0;
}

.h1-sub { font-size: 44px; }

.hero-photo {
  border-radius: 20px;
  border: 3px solid transparent;
  background: var(--gradient);
  padding: 3px;
  max-width: 640px;
  margin: 0 auto;
}

.hero-photo img { border-radius: 17px; width: 100%; }

.hero-photo-caption {
  font-size: 14px;
  color: var(--text-muted);
  font-style: italic;
  margin-top: 12px;
}

/* Sections */
section { padding: 64px 0; }
section.tight { padding: 40px 0; }

h2 {
  font-size: 34px;
  font-weight: 800;
  margin: 0 0 12px;
  letter-spacing: -0.01em;
}

.section-lead {
  color: var(--text-muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 0 40px;
}

.divider {
  height: 1px;
  background: var(--border);
  border: none;
  margin: 0;
}

/* Step flow (How It Works, home teaser) */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.step-card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 28px 20px;
  text-align: center;
}

.step-icon {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--gradient);
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 18px;
}

.step-icon img {
  width: 26px;
  height: 26px;
  filter: brightness(0) invert(1);
}

.step-card h3 {
  font-size: 17px;
  margin: 0 0 8px;
}

.step-card p {
  font-size: 14px;
  color: var(--text-muted);
  margin: 0;
}

.step-num {
  font-size: 13px;
  font-weight: 700;
  color: var(--purple);
  margin-bottom: 8px;
}

/* Cards / stats */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}

.card {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px;
}

.card-centered { max-width: 560px; margin: 0 auto; }

.card h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 15px;
}

.stat-number {
  font-size: 40px;
  font-weight: 800;
  background: var(--gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  margin: 0 0 6px;
}

/* Team */
.team-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.team-card {
  text-align: center;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 26px 16px;
}

.team-avatar {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--gradient);
  margin: 0 auto 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 22px;
  color: #08080d;
}

.team-card h3 { margin: 0 0 4px; font-size: 16px; }
.team-card p { margin: 0; color: var(--text-muted); font-size: 14px; }

/* Trust / consent box */
.trust-box {
  background: var(--bg-panel-2);
  border: 1px solid var(--purple);
  border-radius: var(--radius);
  padding: 32px;
}

.trust-box h2 { margin-top: 0; }

.draft-flag {
  display: inline-block;
  background: rgba(236, 73, 153, 0.15);
  color: var(--magenta);
  border: 1px solid var(--magenta);
  border-radius: 999px;
  padding: 4px 14px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 16px;
}

.todo {
  color: var(--purple);
  font-weight: 700;
  font-size: 0.95em;
}

.todo-box {
  border: 1px dashed var(--purple);
  border-radius: var(--radius);
  padding: 20px;
  color: var(--purple);
  font-size: 14px;
  background: rgba(139, 92, 246, 0.08);
}

/* QR panel */
.qr-panel {
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 40px;
  text-align: center;
  max-width: 360px;
  margin: 0 auto;
}

.qr-frame {
  background: #fff;
  border: 2px dashed #cfcfd8;
  border-radius: 12px;
  padding: 20px;
  width: 200px;
  height: 200px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.qr-placeholder {
  color: #c4c4ce;
  font-size: 15px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

/* Queue */
.queue-list {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--bg-panel);
}

.queue-row {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
}

.queue-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--text-muted);
  font-size: 15px;
}

.queue-row:last-child { border-bottom: none; }

.queue-position {
  width: 28px;
  text-align: center;
  color: var(--text-muted);
  font-weight: 700;
}

.queue-info { flex: 1; }
.queue-info .song { font-weight: 600; }
.queue-info .artist { color: var(--text-muted); font-size: 14px; }

.vote-group {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vote-btn {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 8px;
  color: var(--text-muted);
  padding: 6px 10px;
  font-size: 13px;
  cursor: pointer;
}

.vote-btn:hover { border-color: var(--purple); color: var(--text); }

.vote-btn.voted {
  background: var(--purple);
  border-color: var(--purple);
  color: #08080d;
}

.vote-count {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
  font-size: 14px;
}

.search-box {
  display: flex;
  gap: 10px;
  margin-bottom: 24px;
}

.search-box input {
  flex: 1;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--text);
  font-size: 15px;
}

.search-box input::placeholder { color: var(--text-muted); }

.ride-status {
  display: inline-block;
  background: var(--bg-panel);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  font-size: 13px;
  padding: 8px 18px;
  margin-bottom: 24px;
}

/* Driver preferences (Start a Ride) */
.pref-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pref-chip {
  background: var(--bg-panel-2);
  border: 1px solid var(--border);
  border-radius: 999px;
  color: var(--text-muted);
  padding: 8px 18px;
  font-size: 14px;
  font-weight: 600;
}

/* Footer */
footer {
  border-top: 1px solid var(--border);
  padding: 40px 0;
  margin-top: 40px;
}

footer .wrap {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 24px;
}

.footer-tagline {
  font-size: 13px;
  color: var(--text-muted);
}

.footer-links {
  display: flex;
  gap: 24px;
  font-size: 14px;
  color: var(--text-muted);
}

.footer-links a { text-decoration: none; }
.footer-links a:hover,
.footer-links a.active { color: var(--text); }

@media (max-width: 860px) {
  h1 { font-size: 38px; }
  .h1-sub { font-size: 32px; }
  .hero { padding: 44px 0 40px; }
  .steps, .team-grid, .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .grid-2 { grid-template-columns: 1fr; }

  /* Riders open this site on a phone, mid-ride — the nav must never disappear.
     Wrap it onto its own row instead of hiding it. */
  .site-header .wrap {
    flex-wrap: wrap;
    height: auto;
    padding-top: 14px;
    padding-bottom: 14px;
    row-gap: 10px;
  }
  nav.main-nav {
    width: 100%;
    gap: 16px;
    flex-wrap: wrap;
  }
  nav.main-nav a { font-size: 14px; }
}

@media (max-width: 420px) {
  .qr-panel { padding: 28px 20px; }
  .search-box { flex-direction: column; }
}
