/* ============================================================
   CheerSounds Academy: shared styles
   Brand: CheerSounds dark + orange accent (#fa4c29)
   Fonts: Outfit (body), Oxanium (display)
   ============================================================ */

:root {
  --accent: #fa4c29;
  --accent-soft: #ff8a6a;
  --bg: #1a1b1f;
  --bg-elevated: #27292f;
  --bg-soft: #202226;
  --line: #3a3e47;
  --muted: #aeb4c2;
  --panel: #2e3138;
  --text: #f4f6fb;
  --good: #4cd964;
  --warn: #ffcc00;
  --radius: 14px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  background: var(--bg);
  color: var(--text);
  font-family: "Outfit", system-ui, -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, .display {
  font-family: "Oxanium", "Outfit", sans-serif;
  line-height: 1.15;
  letter-spacing: 0.01em;
}

a { color: var(--accent); text-decoration: none; }
a:hover { color: var(--accent-soft); }

/* ---------- Layout ---------- */
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 24px; }

.topbar {
  position: sticky; top: 0; z-index: 50;
  background: rgba(26, 27, 31, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.topbar .wrap { display: flex; align-items: center; gap: 28px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-family: "Oxanium", sans-serif; font-weight: 800; font-size: 17px; color: var(--text); }
.brand .dot { color: var(--accent); }
.brand small { font-weight: 500; color: var(--muted); }
.topbar nav { display: flex; gap: 20px; margin-left: auto; }
.topbar nav a { color: var(--muted); font-weight: 600; font-size: 14px; }
.topbar nav a:hover { color: var(--text); }
.topbar nav a.active { color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 500px at 20% -10%, rgba(250,76,41,0.15), transparent 60%); border-bottom: 1px solid var(--line); }
.eyebrow {
  display: inline-block; font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--accent); border: 1px solid rgba(250,76,41,0.4); padding: 5px 12px; border-radius: 999px; margin-bottom: 20px;
}
.hero h1 { font-size: clamp(34px, 6vw, 56px); margin-bottom: 16px; }
.hero h1 .hl { color: var(--accent); }
.hero p.lede { font-size: 19px; color: var(--muted); max-width: 640px; }
.hero .cta-row { margin-top: 30px; display: flex; gap: 14px; flex-wrap: wrap; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px; justify-content: center;
  padding: 12px 22px; border-radius: 10px; font-weight: 700; font-size: 15px;
  border: 1px solid transparent; cursor: pointer; transition: all 0.15s ease; font-family: inherit;
}
.btn-accent { background: var(--accent); color: #1a1b1f; }
.btn-accent:hover { background: var(--accent-soft); color: #1a1b1f; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--accent); color: var(--accent); }

/* ---------- Sections ---------- */
section.block { padding: 56px 0; }
section.block.alt { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.block h2 { font-size: 30px; margin-bottom: 8px; }
.block .sub { color: var(--muted); margin-bottom: 32px; max-width: 640px; }

/* ---------- Cards ---------- */
.grid3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 20px; }
.card {
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; transition: transform 0.15s ease, border-color 0.15s ease;
}
.card:hover { transform: translateY(-3px); border-color: rgba(250,76,41,0.5); }
.card .icon { font-size: 26px; margin-bottom: 12px; }
.card h3 { font-size: 18px; margin-bottom: 6px; }
.card p { color: var(--muted); font-size: 14.5px; }
.card .tag { display: inline-block; font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--accent); border: 1px solid rgba(250,76,41,0.35); padding: 2px 8px; border-radius: 999px; margin-bottom: 10px; }

/* ---------- Lesson page ---------- */
.lesson-body { max-width: 760px; }
.lesson-body h1 { font-size: 34px; margin: 24px 0 12px; }
.lesson-body .meta { color: var(--muted); font-size: 14px; margin-bottom: 28px; display: flex; gap: 16px; flex-wrap: wrap; }
.lesson-body h2 { font-size: 24px; margin: 40px 0 12px; color: var(--accent); }
.lesson-body p, .lesson-body li { color: #dfe3ec; }
.lesson-body ul, .lesson-body ol { padding-left: 22px; margin: 12px 0; }
.lesson-body li { margin: 6px 0; }
.lesson-body .big-idea {
  background: rgba(250,76,41,0.08); border-left: 4px solid var(--accent);
  padding: 18px 22px; border-radius: 0 10px 10px 0; margin: 24px 0;
}
.lesson-body .big-idea p { color: var(--text); }
.note { background: var(--panel); border: 1px solid var(--line); padding: 16px 20px; border-radius: 10px; margin: 20px 0; font-size: 14.5px; color: #dfe3ec; }

/* ---------- Beat grid studio ---------- */
.studio {
  background: var(--bg-elevated); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 24px; margin: 32px 0;
}
.studio-head { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; margin-bottom: 18px; }
.studio-head h3 { font-size: 18px; }
.studio-head .tempo { display: flex; align-items: center; gap: 10px; margin-left: auto; color: var(--muted); font-size: 14px; }
.studio-head input[type=range] { width: 120px; accent-color: var(--accent); }
.bpm-val { font-family: "Oxanium", monospace; font-weight: 700; color: var(--text); min-width: 42px; }

.grid-stage { display: flex; flex-direction: column; gap: 14px; }

/* one student's beat lane */
.lane { border: 1px solid var(--line); border-radius: 12px; padding: 14px; background: var(--bg-soft); }
.lane-head { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.lane-head .color-chip { width: 14px; height: 14px; border-radius: 4px; }
.lane-head .student { font-family: "Oxanium", sans-serif; font-weight: 700; font-size: 15px; }
.lane-head .role { font-size: 12.5px; color: var(--muted); }
.lane-head .lane-mute { margin-left: auto; font-size: 12px; font-weight: 700; color: var(--muted); background: none; border: 1px solid var(--line); border-radius: 8px; padding: 4px 10px; cursor: pointer; font-family: inherit; }
.lane-head .lane-mute:hover { border-color: var(--accent); color: var(--accent); }
.lane-head .lane-mute.muted { color: var(--muted); opacity: 0.5; }

/* instrument row */
.rows { display: flex; flex-direction: column; gap: 6px; }
.irow { display: flex; align-items: center; gap: 10px; }
.irow .iname { width: 62px; font-size: 12.5px; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.04em; flex-shrink: 0; }
.steps { display: grid; grid-template-columns: repeat(16, 1fr); gap: 5px; flex: 1; }
.step {
  aspect-ratio: 1.4 / 1; border-radius: 5px; background: var(--panel); border: 1px solid transparent;
  cursor: pointer; transition: background 0.08s ease, transform 0.08s ease; position: relative;
}
.step:hover { background: #3a404b; }
.step.on { background: var(--accent); }
.step.on:hover { background: var(--accent-soft); }
.step.head { border-left: 3px solid var(--accent-soft); }
.step.playing { outline: 2px solid var(--text); outline-offset: 1px; transform: scale(0.92); }

.ctrl-row { display: flex; gap: 14px; margin-top: 20px; flex-wrap: wrap; align-items: center; }
.transport { display: flex; gap: 10px; }
.stat { font-size: 13px; color: var(--muted); }
.stat b { color: var(--text); font-family: "Oxanium", monospace; }

/* ---------- Playable example buttons ---------- */
.examples { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 18px; }
.ex-btn {
  background: var(--bg-soft); color: var(--text); border: 1px solid var(--line);
  border-radius: 10px; padding: 10px 16px; font-size: 14px; font-weight: 700;
  font-family: inherit; cursor: pointer; transition: all 0.15s ease;
}
.ex-btn:hover { border-color: var(--accent); color: var(--accent); }
.ex-btn.active { background: var(--accent); border-color: var(--accent); color: #1a1b1f; }

/* ---------- Footer ---------- */
footer { border-top: 1px solid var(--line); padding: 36px 0 48px; margin-top: 40px; color: var(--muted); font-size: 14px; }
footer .cols { display: flex; gap: 48px; flex-wrap: wrap; margin-bottom: 24px; }
footer h4 { color: var(--text); font-family: "Oxanium", sans-serif; font-size: 14px; margin-bottom: 10px; }
footer ul { list-style: none; }
footer li { margin: 6px 0; }
footer .legal { border-top: 1px solid var(--line); padding-top: 18px; font-size: 12.5px; display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* ---------- Chromatic step colors per instrument (optional layered view) ---------- */
.step.kick.on { background: #ff5a3c; }
.step.clap.on { background: #ffb020; }
.step.tap.on  { background: #48c3ff; }

.mobile-hint { display: none; text-align: center; color: var(--muted); font-size: 13px; margin-top: 12px; }
@media (max-width: 640px) {
  .steps { gap: 3px; }
  .irow .iname { width: 46px; font-size: 11px; }
  .mobile-hint { display: block; }
}

@media (max-width: 720px) {
  .topbar .wrap { gap: 14px; }
  .topbar nav { gap: 12px; }
  .topbar nav a { font-size: 13px; }
}
