/* ============================================================
   Jazz Interactive — Beginner Pathway
   Palette: warm cream + ink, rust/horn accent, teal progress.
   Type: Spectral (display) · DM Sans (UI) · DM Mono (numerals)
   ============================================================ */

:root {
  --cream:   #f5f0e8;
  --cream-2: #ece4d6;
  --paper:   #fbf8f2;
  --paper-2: #f3ecdf;
  --ink:     #221d16;
  --ink-2:   #5d5648;
  --ink-3:   #938a78;
  --line:    #e4dbca;
  --line-2:  #d6cab2;
  --accent:  #b1481e;   /* rust / horn */
  --accent-soft: #f1ddd0;
  --teal:    #2f6f62;   /* progress / done */
  --teal-soft: #d9e8e2;
  --gold:    #b6852b;
  --gold-soft: #f0e4c6;
  --blue:    #335f8c;   /* blue note */
  --shadow:  0 1px 2px rgba(40,30,15,.04), 0 6px 22px -10px rgba(60,45,20,.18);
  --shadow-lg: 0 2px 6px rgba(40,30,15,.06), 0 24px 50px -22px rgba(60,45,20,.30);
  --r: 14px;
  --r-sm: 9px;
  --r-lg: 22px;
  --maxw: 1120px;
  --serif: "Spectral", Georgia, serif;
  --sans: "DM Sans", system-ui, sans-serif;
  --mono: "DM Mono", ui-monospace, monospace;
}

.dark {
  --cream:   #17140f;
  --cream-2: #1e1a14;
  --paper:   #221d16;
  --paper-2: #2a241c;
  --ink:     #efe7d8;
  --ink-2:   #b1a690;
  --ink-3:   #837a68;
  --line:    #342d22;
  --line-2:  #42392c;
  --accent:  #e07440;
  --accent-soft: #3a261b;
  --teal:    #6bb3a2;
  --teal-soft: #1f322d;
  --gold:    #d6a444;
  --gold-soft: #332a18;
  --blue:    #7aa6d4;
  --shadow:  0 1px 2px rgba(0,0,0,.3), 0 6px 22px -10px rgba(0,0,0,.5);
  --shadow-lg: 0 2px 6px rgba(0,0,0,.4), 0 24px 50px -22px rgba(0,0,0,.7);
}

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

html { scroll-behavior: smooth; }
body {
  font-family: var(--sans);
  background: var(--cream);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
em { font-style: italic; }

.app { min-height: 100vh; display: flex; flex-direction: column; }
.main { flex: 1; }

/* ── Nav ──────────────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--cream) 86%, transparent);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.nav-inner {
  max-width: var(--maxw); margin: 0 auto; padding: 0 24px;
  height: 64px; display: flex; align-items: center; gap: 28px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand-mark {
  width: 30px; height: 30px; border-radius: 8px;
  background: var(--ink); color: var(--cream);
  display: grid; place-items: center;
  font-family: var(--serif); font-weight: 700; font-size: 14px; font-style: italic;
}
.brand-name { font-family: var(--serif); font-weight: 600; font-size: 17px; letter-spacing: -.01em; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 8px; }
.nav-link {
  position: relative; padding: 8px 12px; border-radius: 8px;
  font-size: 14.5px; color: var(--ink-2); font-weight: 500;
  transition: color .15s, background .15s;
}
.nav-link:hover { color: var(--ink); background: var(--cream-2); }
.nav-link.is-active { color: var(--accent); font-weight: 600; }
.nav-link-dot { position: absolute; bottom: 2px; left: 50%; transform: translateX(-50%); width: 4px; height: 4px; border-radius: 50%; background: var(--accent); }
.nav-right { margin-left: auto; display: flex; align-items: center; gap: 6px; }
.iconbtn {
  width: 38px; height: 38px; border-radius: 9px; display: grid; place-items: center;
  color: var(--ink-2); transition: background .15s, color .15s;
}
.iconbtn:hover { background: var(--cream-2); color: var(--ink); }
.nav-burger { display: none; }
.nav-mobile { display: none; flex-direction: column; padding: 8px 16px 14px; border-top: 1px solid var(--line); gap: 2px; }
.nav-mobile-link { text-align: left; padding: 11px 12px; border-radius: 9px; font-size: 15px; font-weight: 500; color: var(--ink-2); }
.nav-mobile-link.is-active { color: var(--accent); background: var(--accent-soft); font-weight: 600; }

/* ── Shared bits ──────────────────────────────────────────── */
.eyebrow {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 12.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase;
  color: var(--accent);
}
.section-label {
  font-family: var(--sans); font-size: 12.5px; font-weight: 600;
  letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3);
}
.diff {
  font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 100px;
  letter-spacing: .01em; white-space: nowrap;
}
.diff-beg { background: var(--teal-soft); color: var(--teal); }
.diff-all { background: var(--gold-soft); color: var(--gold); }
.diff-bridge { background: var(--accent-soft); color: var(--accent); }
.metachip { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; color: var(--ink-2); font-weight: 500; }
.metachip svg { color: var(--ink-3); }

.flowdots { display: inline-flex; gap: 5px; }
.flowdot { border-radius: 50%; background: var(--line-2); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  border-radius: 11px; font-weight: 600; font-size: 14.5px; line-height: 1;
  transition: transform .12s, background .15s, box-shadow .15s, border-color .15s;
  border: 1px solid transparent; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-sm { padding: 8px 12px; font-size: 13.5px; border-radius: 9px; }
.btn-md { padding: 11px 16px; }
.btn-lg { padding: 15px 22px; font-size: 16px; border-radius: 13px; }
.btn-full { width: 100%; }
.btn-primary { background: var(--accent); color: #fff; box-shadow: var(--shadow); }
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 90%, #000); }
.dark .btn-primary { color: #1a120c; }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--cream-2); color: var(--ink); }
.btn-soft { background: var(--paper); color: var(--ink); border-color: var(--line); }
.btn-soft:hover { border-color: var(--line-2); }

/* Glossary */
.gloss { position: relative; display: inline-block; }
.gloss-term {
  color: var(--accent); font-weight: 600; padding: 0;
  border-bottom: 1.5px dotted color-mix(in srgb, var(--accent) 55%, transparent);
}
.gloss-term:hover, .gloss-term.is-open { border-bottom-style: solid; }
.gloss-pop {
  position: absolute; bottom: calc(100% + 10px); left: 50%; transform: translateX(-50%);
  width: min(280px, 78vw); z-index: 30;
  background: var(--ink); color: var(--cream);
  padding: 12px 14px; border-radius: 12px; box-shadow: var(--shadow-lg);
  display: flex; flex-direction: column; gap: 4px; text-align: left;
  animation: pop .14s ease-out;
}
.gloss-pop::after {
  content: ""; position: absolute; top: 100%; left: 50%; transform: translateX(-50%);
  border: 7px solid transparent; border-top-color: var(--ink);
}
.gloss-pop-term { font-family: var(--serif); font-style: italic; font-size: 15px; font-weight: 600; }
.gloss-pop-def { font-size: 13px; line-height: 1.45; color: color-mix(in srgb, var(--cream) 80%, transparent); }
@keyframes pop { from { opacity: 0; transform: translate(-50%, 4px); } to { opacity: 1; transform: translate(-50%, 0); } }

/* ── Site footer ──────────────────────────────────────────── */
.site-foot {
  max-width: var(--maxw); margin: 0 auto; padding: 40px 24px 56px;
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  border-top: 1px solid var(--line); margin-top: 40px;
  font-size: 13px; color: var(--ink-3);
}

/* ============================================================
   LANDING
   ============================================================ */
.landing { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

.hero {
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center;
  padding: 64px 0 56px;
}
.hero-title {
  font-family: var(--serif); font-weight: 700; font-size: clamp(40px, 5.2vw, 62px);
  line-height: 1.02; letter-spacing: -.02em; margin: 18px 0 20px;
}
.hero-title em { color: var(--accent); }
.hero-intro { font-size: 17.5px; line-height: 1.6; color: var(--ink-2); max-width: 52ch; }
.hero-meta { display: flex; gap: 18px; flex-wrap: wrap; margin: 24px 0 28px; }
.hero-cta { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.hero-resume { font-size: 13.5px; color: var(--ink-2); }
.hero-resume strong { color: var(--ink); font-weight: 600; }

/* Quick-start card */
.qstart {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r-lg);
  overflow: hidden; box-shadow: var(--shadow-lg);
}
.qstart-thumb {
  position: relative; height: 168px;
  background: linear-gradient(135deg, #2a2018, #3d2c1e 60%, var(--accent));
  display: grid; place-items: center; overflow: hidden;
}
.dark .qstart-thumb { background: linear-gradient(135deg, #110d09, #2a1d12 55%, #5a2c14); }
.qstart-play {
  width: 56px; height: 56px; border-radius: 50%; z-index: 2;
  background: rgba(255,255,255,.92); color: #1a120c;
  display: grid; place-items: center; box-shadow: 0 8px 24px rgba(0,0,0,.3);
  padding-left: 3px;
}
.qstart-time {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: rgba(0,0,0,.5); color: #fff; font-family: var(--mono);
  font-size: 12px; padding: 3px 8px; border-radius: 6px;
}
.qstart-waves { position: absolute; inset: 0; display: flex; align-items: center; gap: 3px; padding: 0 18px; opacity: .35; }
.qstart-waves span { flex: 1; background: #fff; border-radius: 2px; }
.qstart-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 4px; }
.qstart-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); }
.qstart-title { font-family: var(--serif); font-size: 19px; font-weight: 600; margin-top: 2px; }
.qstart-note { font-size: 13.5px; color: var(--ink-2); line-height: 1.45; }

/* Who */
.who { padding: 8px 0 48px; }
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; margin-top: 16px; }
.who-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 18px 20px; display: flex; flex-direction: column; gap: 4px;
}
.who-card-label { font-family: var(--serif); font-size: 17px; font-weight: 600; }
.who-card-note { font-size: 13.5px; color: var(--ink-2); }

/* Pathway */
.path { padding: 12px 0 16px; }
.path-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 24px; }
.path-progress { display: flex; flex-direction: column; gap: 7px; min-width: 220px; }
.path-progress-text { font-size: 13px; font-weight: 600; color: var(--ink-2); text-align: right; }
.progress-track { height: 7px; border-radius: 100px; background: var(--cream-2); overflow: hidden; }
.progress-fill { display: block; height: 100%; border-radius: 100px; background: var(--teal); transition: width .5s cubic-bezier(.2,.8,.2,1); }

.path-list { list-style: none; }
.path-item { display: grid; grid-template-columns: 44px 1fr; gap: 18px; }
.path-rail { display: flex; flex-direction: column; align-items: center; }
.path-node {
  width: 44px; height: 44px; border-radius: 50%; flex-shrink: 0;
  background: var(--paper); border: 2px solid var(--line-2); color: var(--ink-2);
  display: grid; place-items: center; font-family: var(--mono); font-size: 14px; font-weight: 500;
  transition: all .2s; z-index: 2;
}
.path-item.is-next .path-node { border-color: var(--accent); color: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.path-item.is-done .path-node { background: var(--teal); border-color: var(--teal); color: #fff; }
.dark .path-item.is-done .path-node { color: #11201c; }
.path-connector { width: 2px; flex: 1; background: var(--line-2); margin: 4px 0; min-height: 24px; }
.path-item.is-done .path-connector { background: var(--teal); }

.path-card {
  display: flex; gap: 20px; align-items: stretch; text-align: left;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--r);
  padding: 20px 22px; margin-bottom: 16px; width: 100%;
  transition: transform .15s, box-shadow .15s, border-color .15s;
}
.path-card:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: var(--line-2); }
.path-item.is-next .path-card { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); }
.path-card-main { flex: 1; min-width: 0; }
.path-card-top { display: flex; gap: 8px; align-items: center; margin-bottom: 8px; min-height: 18px; }
.capstone-tag, .next-tag, .done-tag, .links-tag {
  display: inline-flex; align-items: center; gap: 5px;
  font-size: 11px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase;
  padding: 3px 9px; border-radius: 100px;
}
.capstone-tag { background: var(--gold-soft); color: var(--gold); }
.capstone-tag.sm { text-transform: none; letter-spacing: 0; font-size: 11px; }
.next-tag { background: var(--accent-soft); color: var(--accent); }
.done-tag { background: var(--teal-soft); color: var(--teal); }
.links-tag { background: var(--cream-2); color: var(--ink-2); text-transform: none; letter-spacing: 0; }
.path-card-title { font-family: var(--serif); font-size: 22px; font-weight: 600; letter-spacing: -.01em; line-height: 1.15; }
.path-card-title em { color: var(--accent); }
.path-card-goal { font-size: 14.5px; color: var(--ink-2); margin: 6px 0 12px; line-height: 1.45; }
.path-card-meta { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.path-card-side {
  display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between;
  border-left: 1px solid var(--line); padding-left: 20px; flex-shrink: 0;
}
.path-card-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; color: var(--accent); }

/* Ready for more */
.more { margin: 36px 0 8px; }
.more-inner {
  background: var(--ink); color: var(--cream); border-radius: var(--r-lg);
  padding: 36px 40px; display: grid; grid-template-columns: 1fr auto; gap: 32px; align-items: center;
}
.dark .more-inner { background: var(--paper-2); border: 1px solid var(--line); }
.more-title { font-family: var(--serif); font-size: 28px; font-weight: 600; }
.more-text { font-size: 15px; line-height: 1.55; color: color-mix(in srgb, var(--cream) 75%, transparent); max-width: 46ch; margin-top: 8px; }
.dark .more-text { color: var(--ink-2); }
.more-chips { display: flex; flex-direction: column; gap: 9px; min-width: 220px; }
.more-chip {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.12);
  padding: 11px 16px; border-radius: 10px; font-size: 14.5px; font-weight: 500;
}
.dark .more-chip { background: var(--cream-2); border-color: var(--line); }
.more-chip em { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: color-mix(in srgb, var(--cream) 60%, transparent); font-style: normal; }
.dark .more-chip em { color: var(--ink-3); }
.more-chip-all { background: var(--accent); border-color: var(--accent); color: #fff; cursor: pointer; }
.dark .more-chip-all { color: #1a120c; }

/* ============================================================
   MODULE
   ============================================================ */
.module { max-width: var(--maxw); margin: 0 auto; padding: 28px 24px 0; }
.crumb { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-3); margin-bottom: 22px; }
.crumb button { color: var(--ink-2); font-weight: 500; }
.crumb button:hover { color: var(--accent); }
.crumb-cur { font-family: var(--mono); color: var(--ink); }

.mod-head { display: flex; gap: 28px; align-items: flex-start; justify-content: space-between; padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.mod-eyebrow { font-family: var(--mono); font-size: 12.5px; letter-spacing: .05em; color: var(--ink-3); text-transform: uppercase; }
.mod-title { font-family: var(--serif); font-size: clamp(30px, 4.2vw, 46px); font-weight: 700; line-height: 1.05; letter-spacing: -.02em; margin: 10px 0 14px; }
.mod-title em { color: var(--accent); }
.mod-summary { font-size: 17px; line-height: 1.55; color: var(--ink-2); max-width: 58ch; }
.mod-meta { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 18px; }
.goal-chip { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; color: var(--ink-2); background: var(--cream-2); padding: 6px 12px; border-radius: 100px; }
.goal-chip svg { color: var(--accent); }
.mod-head-side { flex-shrink: 0; }
.complete-btn {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--paper); border: 1px solid var(--line-2); color: var(--ink);
  padding: 11px 16px; border-radius: 11px; font-size: 14px; font-weight: 600;
  transition: all .15s;
}
.complete-btn:hover { border-color: var(--teal); }
.complete-box { width: 18px; height: 18px; border-radius: 6px; border: 2px solid var(--line-2); }
.complete-btn.is-done { background: var(--teal-soft); border-color: var(--teal); color: var(--teal); }

/* Tabs */
.tabs { display: flex; gap: 4px; margin: 22px 0 26px; background: var(--cream-2); padding: 5px; border-radius: 14px; }
.tab {
  flex: 1; display: flex; align-items: center; justify-content: center; gap: 9px;
  padding: 12px 10px; border-radius: 10px; font-size: 14.5px; font-weight: 600; color: var(--ink-2);
  transition: all .15s;
}
.tab:hover { color: var(--ink); }
.tab.is-active { background: var(--paper); color: var(--ink); box-shadow: var(--shadow); }
.tab.is-active .tab-num { background: var(--accent); color: #fff; }
.dark .tab.is-active .tab-num { color: #1a120c; }
.tab-num { width: 20px; height: 20px; border-radius: 6px; background: var(--line-2); color: var(--ink-2); display: grid; place-items: center; font-size: 11.5px; font-family: var(--mono); }
.tab svg { color: var(--ink-3); }
.tab.is-active svg { color: var(--accent); }

/* Module body */
.mod-body { display: grid; grid-template-columns: 1fr 270px; gap: 36px; align-items: start; }
.mod-content { min-width: 0; }
.mod-aside { position: sticky; top: 84px; display: flex; flex-direction: column; gap: 14px; }

/* Tips */
.tips { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.tips-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--accent); margin-bottom: 14px; }
.tips-list { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.tip { display: flex; flex-direction: column; gap: 3px; }
.tip-head { font-family: var(--serif); font-size: 15.5px; font-weight: 600; font-style: italic; }
.tip-body { font-size: 13px; line-height: 1.45; color: var(--ink-2); }
.confused-btn { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; padding: 12px; border-radius: var(--r); border: 1px dashed var(--line-2); color: var(--ink-2); font-size: 13.5px; font-weight: 500; transition: all .15s; }
.confused-btn:hover { border-color: var(--accent); color: var(--accent); }

/* Pane */
.pane { animation: fade .25s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.pane-head { margin-bottom: 16px; }
.pane-step { display: inline-flex; align-items: center; gap: 8px; font-family: var(--serif); font-size: 20px; font-weight: 600; font-style: italic; color: var(--accent); }
.pane-intro { font-size: 16.5px; line-height: 1.6; color: var(--ink); max-width: 62ch; }
.pane-points { list-style: none; display: flex; flex-direction: column; gap: 11px; margin-top: 22px; }
.pane-points li { display: flex; gap: 12px; font-size: 15px; line-height: 1.5; color: var(--ink-2); }
.point-mark { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); margin-top: 9px; flex-shrink: 0; }

/* Diagrams */
.diagrams { display: flex; flex-direction: column; gap: 16px; margin: 24px 0; }
.diagram-frame { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 24px; }
.dg-sub { font-size: 13.5px; color: var(--ink-2); margin-bottom: 18px; }
.dg-sub strong { color: var(--ink); font-weight: 600; }
.dg-row { margin-bottom: 18px; }
.dg-row:last-child { margin-bottom: 0; }
.dg-caption { font-size: 13px; color: var(--ink-2); margin-bottom: 10px; }
.dg-tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); background: var(--cream-2); padding: 2px 8px; border-radius: 100px; margin-right: 6px; }
.dg-tag.accent { background: var(--accent-soft); color: var(--accent); }

/* Swing lanes */
.swing-lane { position: relative; height: 56px; background: var(--cream-2); border-radius: 10px; }
.swing-beats { position: absolute; inset: 0; }
.swing-beats span { position: absolute; top: 0; bottom: 0; width: 1px; background: var(--line-2); font-family: var(--mono); font-size: 10px; color: var(--ink-3); padding-top: 3px; padding-left: 4px; }
.swing-ball { position: absolute; top: 50%; width: 16px; height: 16px; border-radius: 50%; margin-top: -8px; margin-left: -8px; }
.swing-ball.straight { background: var(--ink-3); }
.swing-ball.swung { background: var(--accent); animation: bounce 1.4s ease-in-out infinite; }
.swing-ball.swung.short { width: 11px; height: 11px; margin-top: -5.5px; margin-left: -5.5px; opacity: .75; }
@keyframes bounce { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }

/* Triplet */
.trip-lane { display: flex; gap: 10px; }
.trip-beat { flex: 1; position: relative; display: flex; gap: 6px; justify-content: center; padding: 14px 0 24px; background: var(--cream-2); border-radius: 10px; }
.trip-n { width: 13px; height: 13px; border-radius: 50%; }
.trip-n.is-kept { background: var(--accent); }
.trip-n.is-skipped { background: transparent; border: 2px dashed var(--line-2); }
.trip-beat-num { position: absolute; bottom: 5px; left: 50%; transform: translateX(-50%); font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.trip-legend { display: flex; gap: 20px; margin-top: 14px; font-size: 12.5px; color: var(--ink-2); }
.trip-legend span { display: inline-flex; align-items: center; gap: 7px; }
.trip-legend .dot { width: 11px; height: 11px; border-radius: 50%; }
.trip-legend .dot.kept { background: var(--accent); }
.trip-legend .dot.skipped { border: 2px dashed var(--line-2); }

/* Comping */
.comp-lane { display: flex; gap: 5px; }
.comp-cell { flex: 1; height: 46px; background: var(--cream-2); border-radius: 7px; display: grid; place-items: center; }
.comp-cell.is-down { background: color-mix(in srgb, var(--cream-2) 70%, var(--line)); }
.comp-hit { width: 18px; height: 18px; border-radius: 5px; background: var(--ink-3); animation: hit 1.6s ease-in-out infinite; }
.comp-hit.accent { background: var(--accent); width: 22px; height: 22px; }
@keyframes hit { 0%, 80%, 100% { transform: scale(1); opacity: .8; } 8% { transform: scale(1.18); opacity: 1; } }
.comp-counts { display: flex; gap: 5px; margin-top: 8px; }
.comp-counts span { flex: 1; text-align: center; font-family: var(--mono); font-size: 11px; color: var(--ink-3); }
.comp-counts span.is-beat { color: var(--ink); font-weight: 500; }

/* Ladder */
.ladder { display: flex; gap: 8px; }
.rung { flex: 1; height: 64px; border-radius: 10px; background: var(--cream-2); display: grid; place-items: center; animation: rise .5s ease backwards; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.rung-deg { font-family: var(--mono); font-size: 16px; font-weight: 500; color: var(--ink-2); }
.rung.is-accent { background: var(--accent-soft); }
.rung.is-accent .rung-deg { color: var(--accent); font-weight: 700; }

/* Chord tones */
.ct-row { display: flex; gap: 8px; }
.ct-note { flex: 1; height: 56px; border-radius: 10px; display: grid; place-items: center; font-family: var(--mono); font-size: 15px; background: var(--cream-2); color: var(--ink-3); border: 2px solid transparent; animation: rise .5s ease backwards; }
.ct-note.is-tone { background: var(--accent-soft); color: var(--accent); border-color: var(--accent); font-weight: 700; }

/* 7-3 */
.st-row { display: flex; align-items: stretch; gap: 16px; }
.st-chord { flex: 1; background: var(--cream-2); border-radius: 12px; padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.st-chord-name { font-family: var(--serif); font-size: 18px; font-weight: 600; }
.st-chord-name em { color: var(--ink-3); font-size: 14px; }
.st-note { font-family: var(--mono); font-size: 14px; padding: 6px 10px; border-radius: 8px; align-self: flex-start; }
.st-note.from { background: var(--accent-soft); color: var(--accent); }
.st-note.to { background: var(--teal-soft); color: var(--teal); }
.st-arrow { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: var(--accent); font-size: 11px; }

/* Blues form */
.form-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.form-bar { position: relative; aspect-ratio: 1.6; border-radius: 10px; display: grid; place-items: center; animation: rise .5s ease backwards; }
.form-bar-num { position: absolute; top: 6px; left: 9px; font-family: var(--mono); font-size: 10px; opacity: .6; }
.form-bar-chord { font-family: var(--serif); font-size: 22px; font-weight: 700; }
.chord-I { background: var(--teal-soft); color: var(--teal); }
.chord-IV { background: var(--gold-soft); color: var(--gold); }
.chord-V { background: var(--accent-soft); color: var(--accent); }
.form-legend { display: flex; gap: 18px; margin-top: 16px; font-size: 12.5px; color: var(--ink-2); }
.form-legend span { display: inline-flex; align-items: center; gap: 7px; }
.form-legend .sw { width: 12px; height: 12px; border-radius: 4px; }
.form-legend .chord-I .sw, .form-legend span.chord-I .sw { background: var(--teal); }

/* Clips (Hear) */
.clips { display: flex; flex-direction: column; gap: 12px; margin-top: 22px; }
.clip { display: flex; align-items: center; gap: 16px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 16px 18px; transition: border-color .15s; }
.clip.is-playing { border-color: var(--accent); }
.clip-play { width: 44px; height: 44px; border-radius: 50%; background: var(--ink); color: var(--cream); display: grid; place-items: center; flex-shrink: 0; transition: background .15s; }
.clip.is-playing .clip-play { background: var(--accent); color: #fff; }
.dark .clip.is-playing .clip-play { color: #1a120c; }
.clip-main { flex: 1; min-width: 0; }
.clip-top { display: flex; align-items: center; gap: 10px; }
.clip-label { font-weight: 600; font-size: 15px; }
.clip-feel { font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: 2px 8px; border-radius: 100px; }
.feel-straight { background: var(--cream-2); color: var(--ink-3); }
.feel-swung { background: var(--accent-soft); color: var(--accent); }
.clip-desc { font-size: 13px; color: var(--ink-2); display: block; margin: 3px 0 8px; }
.clip-wave { display: flex; align-items: center; gap: 2px; height: 30px; }
.clip-wave span { flex: 1; background: var(--line-2); border-radius: 2px; min-height: 3px; }
.clip-wave span.is-live { background: var(--accent); animation: eq 1s ease-in-out infinite; }
@keyframes eq { 0%, 100% { transform: scaleY(.55); } 50% { transform: scaleY(1); } }
.clip-dur { font-family: var(--mono); font-size: 12.5px; color: var(--ink-3); flex-shrink: 0; }

/* Apply */
.apply-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin: 22px 0 16px; }
.apply-card { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.apply-card-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.apply-card p { font-size: 15px; line-height: 1.55; color: var(--ink); }
.apply-prompt { background: var(--ink); color: var(--cream); border-radius: var(--r); padding: 22px 24px; }
.dark .apply-prompt { background: var(--paper-2); border: 1px solid var(--line); }
.apply-prompt-label { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.apply-prompt p { font-size: 16px; line-height: 1.55; }
.apply-prompt .gloss-term { color: var(--accent); }
.links-card { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-top: 16px; background: var(--accent-soft); border: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); border-radius: var(--r); padding: 16px 20px; text-decoration: none; color: var(--ink); transition: transform .15s; }
.links-card:hover { transform: translateY(-2px); }
.links-card-label { font-family: var(--serif); font-size: 16px; font-weight: 600; display: block; }
.links-card-note { font-size: 13px; color: var(--ink-2); }
.links-card svg { color: var(--accent); flex-shrink: 0; }

/* Tab nav + foot */
.tab-nav { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.mod-foot { display: flex; justify-content: space-between; gap: 16px; padding: 28px 0 8px; margin-top: 32px; border-top: 1px solid var(--line); }
.footnav { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: var(--r); background: var(--paper); border: 1px solid var(--line); max-width: 340px; transition: all .15s; }
.footnav:hover { border-color: var(--line-2); transform: translateY(-2px); }
.footnav span { display: flex; flex-direction: column; text-align: left; }
.footnav.next span { text-align: right; }
.footnav em { font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); font-style: normal; margin-bottom: 2px; }
.footnav span:not(em) { font-weight: 600; font-size: 14.5px; }
.footnav svg { color: var(--accent); flex-shrink: 0; }

/* ============================================================
   PLAYER
   ============================================================ */
.player { display: flex; flex-direction: column; gap: 16px; }
.player-stage { background: var(--ink); color: var(--cream); border-radius: var(--r-lg); padding: 24px 26px; }
.dark .player-stage { background: var(--paper-2); border: 1px solid var(--line); }
.player-stage-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.np-label { font-size: 11.5px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: color-mix(in srgb, var(--cream) 55%, transparent); }
.dark .np-label { color: var(--ink-3); }
.np-feel { font-family: var(--mono); font-size: 12.5px; color: color-mix(in srgb, var(--cream) 70%, transparent); }
.dark .np-feel { color: var(--ink-2); }
.np-display { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.np-center { text-align: center; flex: 1; }
.np-chord { font-family: var(--serif); font-size: 52px; font-weight: 700; line-height: 1; }
.np-chord-q { font-size: 22px; color: var(--accent); margin-left: 4px; }
.np-bar { font-family: var(--mono); font-size: 12.5px; color: color-mix(in srgb, var(--cream) 60%, transparent); margin-top: 8px; }
.dark .np-bar { color: var(--ink-3); }
.np-beats { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.np-beat { width: 10px; height: 10px; border-radius: 50%; background: rgba(255,255,255,.16); transition: all .08s; }
.dark .np-beat { background: var(--line-2); }
.np-beat.is-on { background: var(--accent); transform: scale(1.3); }
.np-beat.is-count { box-shadow: 0 0 0 2px color-mix(in srgb, var(--accent) 40%, transparent); }
.transport-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border-radius: 11px; font-weight: 600; font-size: 14.5px; transition: all .15s; }
.transport-btn.ghost { width: 44px; height: 44px; background: rgba(255,255,255,.08); color: var(--cream); }
.dark .transport-btn.ghost { background: var(--cream-2); color: var(--ink); }
.transport-btn.ghost:hover { background: rgba(255,255,255,.16); }
.transport-btn.ghost.wide { width: auto; padding: 0 18px; gap: 8px; }
.transport-row { display: flex; gap: 10px; }
.transport-btn.play { flex: 1; padding: 14px; background: var(--accent); color: #fff; }
.dark .transport-btn.play { color: #1a120c; }
.transport-btn.play:hover { background: color-mix(in srgb, var(--accent) 88%, #fff); }
.loop-row { display: flex; align-items: center; gap: 14px; margin-top: 18px; padding-top: 18px; border-top: 1px solid rgba(255,255,255,.1); }
.dark .loop-row { border-color: var(--line); }
.loop-label { font-size: 12.5px; color: color-mix(in srgb, var(--cream) 60%, transparent); font-weight: 600; }
.dark .loop-label { color: var(--ink-2); }
.loop-segs { display: flex; gap: 6px; }
.loop-seg { font-size: 13px; padding: 6px 14px; border-radius: 8px; background: rgba(255,255,255,.08); color: color-mix(in srgb, var(--cream) 80%, transparent); }
.dark .loop-seg { background: var(--cream-2); color: var(--ink-2); }
.loop-seg.is-active { background: var(--accent); color: #fff; font-weight: 600; }
.dark .loop-seg.is-active { color: #1a120c; }

.player-controls { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.ctrl { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.ctrl:first-child { grid-column: 1 / -1; }
.ctrl-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.ctrl-label { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--ink-2); }
.ctrl-label svg { color: var(--accent); }
.ctrl-value { font-family: var(--mono); font-size: 22px; font-weight: 500; }
.ctrl-unit { font-size: 12px; color: var(--ink-3); margin-left: 6px; }
.ctrl-hint { font-size: 12px; color: var(--ink-3); }

.slider { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 100px; background: var(--cream-2); outline: none; }
.slider::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--accent); cursor: pointer; box-shadow: 0 2px 6px rgba(0,0,0,.2); border: 3px solid var(--paper); }
.slider::-moz-range-thumb { width: 18px; height: 18px; border-radius: 50%; background: var(--accent); cursor: pointer; border: 3px solid var(--paper); }
.preset-row { display: flex; gap: 6px; margin-top: 14px; }
.preset { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 8px 4px; border-radius: 9px; background: var(--cream-2); transition: all .15s; }
.preset:hover { background: var(--paper-2); }
.preset.is-active { background: var(--accent-soft); }
.preset-bpm { font-family: var(--mono); font-size: 13px; font-weight: 500; }
.preset.is-active .preset-bpm { color: var(--accent); }
.preset-name { font-size: 10.5px; color: var(--ink-3); }

.key-rail { display: flex; gap: 8px; align-items: center; }
.key-btn { width: 48px; height: 48px; border-radius: 11px; background: var(--cream-2); font-family: var(--serif); font-size: 19px; font-weight: 600; transition: all .15s; }
.key-btn:hover { background: var(--paper-2); }
.key-btn.is-active { background: var(--accent); color: #fff; }
.dark .key-btn.is-active { color: #1a120c; }
.key-rail-locked { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--ink-3); margin-left: 6px; }

.seg-row, .toggle-row { display: flex; gap: 6px; flex-wrap: wrap; }
.seg { flex: 1; padding: 11px 8px; border-radius: 9px; background: var(--cream-2); font-size: 13.5px; font-weight: 500; color: var(--ink-2); transition: all .15s; white-space: nowrap; }
.seg:hover { color: var(--ink); }
.seg.is-active { background: var(--accent); color: #fff; font-weight: 600; }
.dark .seg.is-active { color: #1a120c; }
.toggle { display: inline-flex; align-items: center; gap: 7px; padding: 9px 13px; border-radius: 9px; background: var(--cream-2); font-size: 13px; font-weight: 500; color: var(--ink-2); transition: all .15s; }
.toggle-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); transition: all .15s; }
.toggle.is-on { color: var(--ink); }
.toggle.is-on .toggle-dot { background: var(--teal); }

/* Record */
.record { background: var(--paper); border: 1px solid var(--line); border-radius: var(--r); padding: 18px 20px; }
.record-main { display: flex; align-items: center; gap: 16px; }
.rec-btn { display: inline-flex; align-items: center; gap: 9px; padding: 11px 18px; border-radius: 11px; background: var(--cream-2); color: var(--ink); font-weight: 600; font-size: 14px; transition: all .15s; }
.rec-btn svg { color: var(--accent); }
.rec-btn:hover { background: var(--paper-2); }
.rec-btn.is-recording { background: var(--accent); color: #fff; animation: recpulse 1.4s ease-in-out infinite; }
.dark .rec-btn.is-recording { color: #1a120c; }
.rec-btn.is-recording svg { color: #fff; }
.dark .rec-btn.is-recording svg { color: #1a120c; }
@keyframes recpulse { 0%, 100% { box-shadow: 0 0 0 0 color-mix(in srgb, var(--accent) 45%, transparent); } 50% { box-shadow: 0 0 0 8px transparent; } }
.record-note { font-size: 13px; color: var(--ink-2); }
.take { display: flex; align-items: center; gap: 14px; margin-top: 16px; padding-top: 16px; border-top: 1px solid var(--line); }
.take-play { width: 38px; height: 38px; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; flex-shrink: 0; }
.dark .take-play { color: #11201c; }
.take-wave { flex: 1; display: flex; align-items: center; gap: 2px; height: 32px; }
.take-wave span { flex: 1; background: var(--teal); opacity: .4; border-radius: 2px; min-height: 3px; }
.take-wave span.is-live { animation: eq 1s ease-in-out infinite; opacity: 1; }
.take-label { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
.player-foot { display: flex; align-items: center; gap: 4px; font-size: 12px; color: var(--ink-3); }
.player-foot svg { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 880px) {
  .nav-links { display: none; }
  .nav-burger { display: grid; }
  .nav-mobile { display: flex; }
  .hero { grid-template-columns: 1fr; gap: 32px; padding: 40px 0 36px; }
  .hero-aside { max-width: 420px; }
  .who-grid { grid-template-columns: 1fr; }
  .mod-head { flex-direction: column; gap: 18px; }
  .mod-body { grid-template-columns: 1fr; gap: 24px; }
  .mod-aside { position: static; flex-direction: row; flex-wrap: wrap; }
  .tips { flex: 1; min-width: 240px; }
  .more-inner { grid-template-columns: 1fr; gap: 24px; }
  .apply-cards { grid-template-columns: 1fr; }
  .player-controls { grid-template-columns: 1fr; }
  .path-card { flex-direction: column; gap: 14px; }
  .path-card-side { border-left: none; padding-left: 0; flex-direction: row; align-items: center; justify-content: space-between; border-top: 1px solid var(--line); padding-top: 14px; }
}

@media (max-width: 560px) {
  .nav-inner, .landing, .module { padding-left: 16px; padding-right: 16px; }
  .tab-label { display: none; }
  .tab { padding: 12px 6px; }
  .mod-aside { flex-direction: column; }
  .form-grid { grid-template-columns: repeat(2, 1fr); }
  .preset-name { display: none; }
  .key-btn { width: 44px; height: 44px; }
  .np-chord { font-size: 42px; }
  .footnav { max-width: none; flex: 1; }
  .mod-foot { flex-direction: column; }
  .hero-meta { gap: 12px; }
  .clip-dur { display: none; }
}
