:root {
  --bg: #0b0d10;
  --bg-elev: #14181d;
  --ink: #f5f5f7;
  --muted: #9aa3ad;
  --line: #1f242b;
  --accent: #f5a623;
  --accent-2: #e87a17;
  --gold: #d4a23a;
  --max: 1120px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", system-ui, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
h1, h2, h3 { letter-spacing: -0.02em; line-height: 1.1; margin: 0; }
p { margin: 0; }

.nav {
  max-width: var(--max);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; }
.brand-mark {
  width: 32px; height: 32px;
  display: grid; place-items: center;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1206;
  border-radius: 8px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.nav nav { display: flex; gap: 24px; }
.nav nav a { color: var(--muted); font-size: 14px; }
.nav nav a:hover { color: var(--ink); }

.hero {
  max-width: var(--max);
  margin: 40px auto 80px;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: 56px;
  align-items: center;
}
.hero-copy .kicker {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 6px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
  margin-bottom: 24px;
}
.hero-copy h1 {
  font-size: clamp(40px, 6vw, 68px);
  font-weight: 800;
  margin-bottom: 20px;
}
.hero-copy .accent {
  background: linear-gradient(135deg, var(--accent), var(--gold));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lede {
  font-size: 18px;
  color: var(--muted);
  max-width: 480px;
  margin-bottom: 28px;
}
.cta-row { display: flex; gap: 12px; margin-bottom: 16px; flex-wrap: wrap; }
.btn-primary, .btn-ghost {
  display: inline-flex;
  align-items: center;
  padding: 14px 22px;
  border-radius: 10px;
  font-weight: 600;
  font-size: 15px;
  transition: transform .15s ease, background .15s ease;
}
.btn-primary {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1206;
}
.btn-primary:hover { transform: translateY(-1px); }
.btn-ghost {
  background: var(--bg-elev);
  color: var(--ink);
  border: 1px solid var(--line);
}
.btn-ghost:hover { background: #1b2026; }
.micro { font-size: 13px; color: var(--muted); }

.hero-art { display: grid; place-items: center; }
.phone {
  width: 280px;
  height: 560px;
  background: #1a1f26;
  border-radius: 40px;
  border: 8px solid #0f1216;
  box-shadow: 0 30px 60px rgba(0,0,0,.5), 0 0 0 1px #2a3038 inset;
  padding: 24px 16px;
  position: relative;
}
.phone::before {
  content: "";
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #0f1216;
  border-radius: 0 0 18px 18px;
}
.phone-screen { margin-top: 36px; display: flex; flex-direction: column; gap: 10px; }
.phone-row {
  display: grid;
  grid-template-columns: 28px 1fr auto;
  align-items: center;
  gap: 12px;
  background: #232a32;
  padding: 14px;
  border-radius: 14px;
  font-size: 14px;
}
.phone-row .num {
  font-weight: 700;
  color: var(--accent);
}
.phone-row .name { color: var(--ink); }
.phone-row .tag {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  color: #1a1206;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  padding: 4px 8px;
  border-radius: 999px;
}
.phone-row.up-next { background: #2a2218; border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent); }

.features {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
  border-top: 1px solid var(--line);
}
.features h2 {
  font-size: clamp(28px, 4vw, 40px);
  margin-bottom: 40px;
}
.grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
}
.card {
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 24px;
}
.card-icon { font-size: 28px; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 8px; }
.card p { color: var(--muted); font-size: 15px; }

.beta {
  max-width: 640px;
  margin: 0 auto;
  padding: 80px 24px 100px;
  text-align: center;
}
.beta h2 { font-size: clamp(28px, 4vw, 40px); margin-bottom: 16px; }
.beta > p { color: var(--muted); margin-bottom: 28px; }
.signup {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
  justify-content: center;
}
.signup input {
  flex: 1;
  min-width: 240px;
  background: var(--bg-elev);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px 16px;
  color: var(--ink);
  font-size: 15px;
}
.signup input:focus {
  outline: 2px solid color-mix(in srgb, var(--accent) 50%, transparent);
  outline-offset: 0;
  border-color: transparent;
}
.signup button {
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  color: #1a1206;
  border: 0;
  border-radius: 10px;
  padding: 14px 22px;
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
}
.signup-msg { font-size: 14px; color: var(--accent); min-height: 1.5em; }
.signup-msg[hidden] { display: none; }
.signup-msg.error { color: #ff7a7a; }

footer {
  border-top: 1px solid var(--line);
  padding: 32px 24px;
}
.foot-row {
  max-width: var(--max);
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  color: var(--muted);
  font-size: 14px;
}
footer nav { display: flex; gap: 24px; }
footer nav a:hover { color: var(--ink); }

/* Static doc pages (privacy / support) */
.doc {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 24px 80px;
}
.doc h1 { font-size: 36px; margin-bottom: 8px; }
.doc .updated { color: var(--muted); font-size: 14px; margin-bottom: 32px; }
.doc h2 { font-size: 20px; margin: 32px 0 12px; }
.doc p, .doc li { color: #cdd3da; font-size: 16px; }
.doc ul { padding-left: 20px; }
.doc a { color: var(--accent); }
.doc a:hover { text-decoration: underline; }

/* ── Hero phone — Game Day screen ─────────────────────────────────────── */
.phone-notch {
  position: absolute;
  top: 14px; left: 50%;
  transform: translateX(-50%);
  width: 110px; height: 28px;
  background: #0f1216;
  border-radius: 0 0 18px 18px;
  z-index: 2;
}
.phone::before { display: none; }   /* superseded by .phone-notch element */

.screen-status {
  display: flex;
  justify-content: space-between;
  font-size: 10px;
  font-weight: 600;
  color: #9aa3ad;
  padding: 32px 8px 12px;
  letter-spacing: 0.04em;
}
.status-right { letter-spacing: 0.08em; }

.game-day { display: flex; flex-direction: column; gap: 10px; }

.screen-header {
  display: flex;
  align-items: stretch;
  gap: 10px;
  background: #1a1f26;
  border-radius: 14px;
  padding: 10px 12px;
  overflow: hidden;
}
.team-stripe {
  width: 4px;
  border-radius: 2px;
  flex-shrink: 0;
}
.team-meta { display: flex; flex-direction: column; gap: 2px; }
.team-title { font-size: 13px; font-weight: 700; color: var(--ink); }
.team-sub { font-size: 11px; color: var(--muted); }

.now-playing {
  display: flex;
  gap: 12px;
  align-items: center;
  background: linear-gradient(135deg, rgba(245,166,35,0.18), rgba(232,122,23,0.08));
  border: 1px solid color-mix(in srgb, var(--accent) 35%, transparent);
  border-radius: 16px;
  padding: 14px;
}
.album-art {
  width: 56px; height: 56px;
  border-radius: 10px;
  background: linear-gradient(135deg, #1f2630, #0f1419);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  box-shadow: 0 4px 12px rgba(0,0,0,0.4);
}
.album-art.lg { width: 72px; height: 72px; border-radius: 12px; }
.album-bars { display: flex; gap: 3px; align-items: flex-end; height: 24px; }
.album-bars span {
  width: 4px;
  background: var(--accent);
  border-radius: 2px;
  animation: pulse-bar 1.2s ease-in-out infinite;
}
.album-bars span:nth-child(1) { height: 60%; animation-delay: 0s; }
.album-bars span:nth-child(2) { height: 95%; animation-delay: 0.2s; }
.album-bars span:nth-child(3) { height: 45%; animation-delay: 0.4s; }
.album-bars span:nth-child(4) { height: 80%; animation-delay: 0.6s; }
@keyframes pulse-bar {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.5); }
}

.now-meta { display: flex; flex-direction: column; gap: 2px; min-width: 0; flex: 1; }
.now-label {
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: var(--accent);
}
.now-name { font-size: 13px; font-weight: 700; color: var(--ink); }
.now-song { font-size: 11px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.now-voice { font-size: 10px; color: var(--gold); margin-top: 2px; }

.lineup { display: flex; flex-direction: column; gap: 6px; }
.lineup-row {
  display: grid;
  grid-template-columns: 28px 1fr 10px;
  align-items: center;
  gap: 10px;
  background: #1a1f26;
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
}
.lineup-row .num { font-weight: 700; color: var(--accent); }
.lineup-row .name { color: var(--ink); }
.lineup-row .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: #22c55e;
}
.lineup-row .dot.warn { background: #f59e0b; }

/* ── Feature showcase ─────────────────────────────────────────────────── */
.features-showcase {
  max-width: var(--max);
  margin: 0 auto;
  padding: 80px 24px;
  border-top: 1px solid var(--line);
}
.features-showcase h2 {
  font-size: clamp(28px, 4vw, 42px);
  text-align: center;
  margin-bottom: 12px;
}
.section-lede {
  text-align: center;
  color: var(--muted);
  font-size: 17px;
  max-width: 620px;
  margin: 0 auto 64px;
}

.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
  padding: 56px 0;
  border-bottom: 1px solid var(--line);
}
.feature-row:last-child { border-bottom: 0; }
.feature-row.reverse .feature-copy { order: 2; }
.feature-row.reverse .feature-art { order: 1; }

.feature-copy h3 {
  font-size: clamp(24px, 3vw, 34px);
  font-weight: 800;
  margin: 12px 0 14px;
}
.feature-kicker {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  padding: 5px 10px;
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 999px;
}
.feature-copy > p {
  color: var(--muted);
  font-size: 16px;
  margin-bottom: 18px;
}
.feature-bullets {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.feature-bullets li {
  color: #cdd3da;
  font-size: 14px;
  padding-left: 22px;
  position: relative;
}
.feature-bullets li::before {
  content: "✓";
  position: absolute;
  left: 0; top: 0;
  color: var(--accent);
  font-weight: 700;
}

.feature-art { display: grid; place-items: center; }
.phone-sm {
  width: 260px;
  height: 540px;
  padding: 18px 12px;
}

/* ── Team list screen ─────────────────────────────────────────────────── */
.team-list { display: flex; flex-direction: column; gap: 10px; }
.big-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--ink);
  padding: 4px 4px 8px;
  letter-spacing: -0.02em;
}
.team-card {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #1a1f26;
  border-radius: 12px;
  padding: 10px 12px 10px 0;
  overflow: hidden;
}
.team-card-icon {
  width: 44px; height: 44px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-size: 22px;
  margin-left: 10px;
  flex-shrink: 0;
}
.team-card-meta { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.team-card-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.team-card-sub { font-size: 11px; color: var(--muted); }
.team-card-chev { color: var(--muted); font-size: 18px; padding-right: 4px; }

.add-pill {
  text-align: center;
  font-size: 13px;
  color: var(--accent);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 12px;
  padding: 12px;
  margin-top: 4px;
}

/* ── Snippet trim screen ──────────────────────────────────────────────── */
.snippet { display: flex; flex-direction: column; gap: 14px; }
.snippet-art {
  display: flex; align-items: center; gap: 14px;
  padding: 4px;
}
.snippet-track-meta { display: flex; flex-direction: column; gap: 3px; }
.snippet-song { font-size: 16px; font-weight: 700; color: var(--ink); }
.snippet-artist { font-size: 12px; color: var(--muted); }

.waveform {
  position: relative;
  background: #14181d;
  border-radius: 12px;
  padding: 16px 12px;
  height: 110px;
}
.wave-bars {
  display: flex;
  gap: 3px;
  height: 100%;
  align-items: center;
  width: 100%;
}
.wave-bars span {
  flex: 1;
  background: #333a44;
  border-radius: 2px;
  min-width: 4px;
}
.wave-window {
  position: absolute;
  top: 6px; bottom: 6px;
  background: rgba(245,166,35,0.18);
  border-left: 2px solid var(--accent);
  border-right: 2px solid var(--accent);
  border-radius: 4px;
  pointer-events: none;
}
.handle {
  position: absolute;
  top: -4px; bottom: -4px;
  width: 10px;
  background: var(--accent);
  border-radius: 4px;
  box-shadow: 0 0 0 2px rgba(245,166,35,0.25);
}
.handle.left  { left: -6px; }
.handle.right { right: -6px; }
.time-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  color: var(--muted);
  padding: 0 4px;
}
.time-pill {
  background: var(--accent);
  color: #1a1206;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11px;
}
.play-button {
  text-align: center;
  font-size: 14px;
  font-weight: 700;
  color: #1a1206;
  background: linear-gradient(135deg, var(--accent), var(--accent-2));
  border-radius: 14px;
  padding: 14px;
  margin-top: 4px;
}

/* ── Share screen ─────────────────────────────────────────────────────── */
.share { display: flex; flex-direction: column; gap: 14px; }
.share-card {
  background: linear-gradient(135deg, rgba(245,166,35,0.18), rgba(232,122,23,0.06));
  border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent);
  border-radius: 16px;
  padding: 18px 14px;
  text-align: center;
}
.share-icon { font-size: 22px; margin-bottom: 4px; }
.share-team { font-size: 12px; color: var(--muted); }
.share-code {
  font-family: ui-monospace, "SF Mono", "JetBrains Mono", monospace;
  font-size: 22px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--accent);
  margin: 4px 0;
}
.share-sub { font-size: 10px; color: var(--muted); }

.share-row-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
}
.share-app {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: var(--muted);
}
.share-app-icon {
  width: 44px; height: 44px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  font-size: 20px;
  color: #fff;
}

.invite-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: #1a1f26;
  border-radius: 10px;
  padding: 9px 12px;
}
.invite-avatar {
  width: 30px; height: 30px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f5a623, #e87a17);
  color: #1a1206;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
}
.invite-avatar.mom { background: linear-gradient(135deg, #60a5fa, #2563eb); color: #fff; }
.invite-meta { flex: 1; display: flex; flex-direction: column; gap: 2px; }
.invite-name { font-size: 12px; color: var(--ink); font-weight: 600; }
.invite-sub  { font-size: 10px; color: var(--muted); }
.invite-badge {
  font-size: 10px;
  font-weight: 700;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(245,166,35,0.18);
  color: var(--accent);
}
.invite-badge.view { background: rgba(96,165,250,0.18); color: #60a5fa; }

/* ── Music mix screen ─────────────────────────────────────────────────── */
.mix { display: flex; flex-direction: column; gap: 14px; }
.now-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, rgba(245,166,35,0.22), rgba(232,122,23,0.08));
  border: 1px solid color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 12px;
  padding: 10px 14px;
  font-size: 12px;
  color: var(--ink);
}
.pulse {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(245,166,35,0.25);
  animation: pulse-dot 1.4s ease-in-out infinite;
}
@keyframes pulse-dot {
  0%, 100% { transform: scale(1); opacity: 1; }
  50%      { transform: scale(0.7); opacity: 0.6; }
}
.now-text { flex: 1; }
.now-text strong { color: var(--accent); }
.now-skip { font-size: 16px; color: var(--muted); }

.vibe-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
}
.vibe {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  background: #1a1f26;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 16px 8px;
  font-size: 22px;
}
.vibe span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}
.vibe.selected {
  background: linear-gradient(135deg, rgba(245,166,35,0.22), rgba(232,122,23,0.08));
  border-color: var(--accent);
}
.vibe.selected span { color: var(--accent); }

.vibe-add {
  text-align: center;
  font-size: 12px;
  color: var(--accent);
  border: 1px dashed color-mix(in srgb, var(--accent) 40%, transparent);
  border-radius: 12px;
  padding: 12px;
  margin-top: 4px;
}

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .hero { grid-template-columns: 1fr; gap: 32px; margin-top: 16px; }
  .hero-art { order: -1; }
  .phone { width: 240px; height: 480px; padding: 20px 12px; }
  .nav nav a:not(:last-child) { display: none; }

  .feature-row {
    grid-template-columns: 1fr;
    gap: 32px;
    padding: 40px 0;
  }
  .feature-row.reverse .feature-copy { order: 0; }
  .feature-row.reverse .feature-art   { order: 0; }
  .phone-sm { width: 240px; height: 480px; padding: 16px 10px; }
}
