/* ============================================================
   AI Studio Workflow Guide — shared styles
   ============================================================ */

/* Inter — self-hosted variable font (matches the Field Guide builds) */
@font-face {
  font-family: 'Inter';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url('../fonts/Inter.woff2') format('woff2');
}

:root {
  --radius: 10px;
  --maxw: 880px;
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  /* ---- Light theme: plum + gold on warm cream (default) ---- */
  --bg: hsl(40 18% 97%);
  --bg-raised: hsl(40 12% 92%);
  --bg-card: hsl(40 22% 99%);
  --border: hsl(40 12% 86%);
  --text: hsl(285 25% 9%);
  --text-dim: hsl(285 10% 33%);
  --text-faint: hsl(285 8% 52%);
  --accent: hsl(285 45% 26%);
  --accent-dim: hsl(285 40% 34%);
  --accent-soft: hsl(285 45% 26% / 0.10);
  --gold: hsl(38 72% 47%);
  --gold-soft: hsl(38 72% 47% / 0.14);
  --moises: hsl(36 76% 37%);
  --moises-soft: hsl(38 72% 47% / 0.14);
  --suno: hsl(210 72% 40%);
  --suno-soft: hsl(210 72% 40% / 0.10);
  --logic: hsl(156 46% 30%);
  --logic-soft: hsl(156 46% 30% / 0.10);
  --warn: hsl(2 62% 46%);
  --warn-soft: hsl(2 62% 46% / 0.09);
  --good: hsl(160 55% 30%);
  --good-soft: hsl(160 55% 30% / 0.09);
  --nav-bg: hsl(40 18% 97% / 0.88);
  --shadow: hsl(285 30% 18% / 0.14);
}

/* ---- Dark theme: gold + plum on warm plum-black ---- */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme]) {
    --bg: hsl(285 12% 6%);
    --bg-raised: hsl(285 8% 14%);
    --bg-card: hsl(285 10% 9%);
    --border: hsl(285 8% 17%);
    --text: hsl(40 15% 92%);
    --text-dim: hsl(285 8% 68%);
    --text-faint: hsl(285 8% 50%);
    --accent: hsl(285 55% 66%);
    --accent-dim: hsl(285 45% 52%);
    --accent-soft: hsl(285 55% 66% / 0.15);
    --gold: hsl(38 74% 60%);
    --gold-soft: hsl(38 74% 60% / 0.15);
    --moises: hsl(38 76% 62%);
    --moises-soft: hsl(38 76% 62% / 0.15);
    --suno: hsl(205 80% 68%);
    --suno-soft: hsl(205 80% 68% / 0.15);
    --logic: hsl(154 52% 58%);
    --logic-soft: hsl(154 52% 58% / 0.14);
    --warn: hsl(0 75% 68%);
    --warn-soft: hsl(0 75% 68% / 0.12);
    --good: hsl(158 52% 60%);
    --good-soft: hsl(158 52% 60% / 0.12);
    --nav-bg: hsl(285 12% 6% / 0.9);
    --shadow: hsl(0 0% 0% / 0.5);
  }
}

:root[data-theme="dark"] {
  --bg: hsl(285 12% 6%);
  --bg-raised: hsl(285 8% 14%);
  --bg-card: hsl(285 10% 9%);
  --border: hsl(285 8% 17%);
  --text: hsl(40 15% 92%);
  --text-dim: hsl(285 8% 68%);
  --text-faint: hsl(285 8% 50%);
  --accent: hsl(285 55% 66%);
  --accent-dim: hsl(285 45% 52%);
  --accent-soft: hsl(285 55% 66% / 0.15);
  --gold: hsl(38 74% 60%);
  --gold-soft: hsl(38 74% 60% / 0.15);
  --moises: hsl(38 76% 62%);
  --moises-soft: hsl(38 76% 62% / 0.15);
  --suno: hsl(205 80% 68%);
  --suno-soft: hsl(205 80% 68% / 0.15);
  --logic: hsl(154 52% 58%);
  --logic-soft: hsl(154 52% 58% / 0.14);
  --warn: hsl(0 75% 68%);
  --warn-soft: hsl(0 75% 68% / 0.12);
  --good: hsl(158 52% 60%);
  --good-soft: hsl(158 52% 60% / 0.12);
  --nav-bg: hsl(285 12% 6% / 0.9);
  --shadow: hsl(0 0% 0% / 0.5);
}

:root[data-theme="light"] {
  --bg: hsl(40 18% 97%);
  --bg-raised: hsl(40 12% 92%);
  --bg-card: hsl(40 22% 99%);
  --border: hsl(40 12% 86%);
  --text: hsl(285 25% 9%);
  --text-dim: hsl(285 10% 33%);
  --text-faint: hsl(285 8% 52%);
  --accent: hsl(285 45% 26%);
  --accent-dim: hsl(285 40% 34%);
  --accent-soft: hsl(285 45% 26% / 0.10);
  --gold: hsl(38 72% 47%);
  --gold-soft: hsl(38 72% 47% / 0.14);
  --moises: hsl(36 76% 37%);
  --moises-soft: hsl(38 72% 47% / 0.14);
  --suno: hsl(210 72% 40%);
  --suno-soft: hsl(210 72% 40% / 0.10);
  --logic: hsl(156 46% 30%);
  --logic-soft: hsl(156 46% 30% / 0.10);
  --warn: hsl(2 62% 46%);
  --warn-soft: hsl(2 62% 46% / 0.09);
  --good: hsl(160 55% 30%);
  --good-soft: hsl(160 55% 30% / 0.09);
  --nav-bg: hsl(40 18% 97% / 0.88);
  --shadow: hsl(285 30% 18% / 0.14);
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; border-radius: var(--radius); }

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

/* ---------- Top nav ---------- */

.topnav {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem 1.5rem;
  background: var(--nav-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.topnav .brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-weight: 700;
  color: var(--text);
  font-size: 1.05rem;
  white-space: nowrap;
}

.topnav .brand .dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  flex-shrink: 0;
}

.topnav .brand:hover { text-decoration: none; }

.nav-controls {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-shrink: 0;
}

#navToggle {
  display: none;
  background: none;
  border: 1px solid var(--border);
  color: var(--text);
  border-radius: 8px;
  padding: 0.4rem 0.6rem;
  font-size: 1rem;
  cursor: pointer;
}

.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 1px solid var(--border);
  color: var(--text-dim);
  border-radius: 8px;
  padding: 0.35rem;
  cursor: pointer;
  line-height: 0;
}

.theme-toggle:hover { color: var(--text); background: var(--bg-card); }
.theme-toggle svg { width: 17px; height: 17px; display: block; }
.theme-toggle .ic { display: none; }
.theme-toggle[data-mode="light"] .ic-light,
.theme-toggle[data-mode="dark"] .ic-dark,
.theme-toggle[data-mode="system"] .ic-system { display: block; }

.navlinks {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
}

.navlinks a {
  color: var(--text-dim);
  font-size: 0.88rem;
  padding: 0.4rem 0.7rem;
  border-radius: 7px;
  white-space: nowrap;
}

.navlinks a:hover,
.navlinks a.active {
  color: var(--text);
  background: var(--bg-card);
  text-decoration: none;
}

/* ---------- Grouped nav (dropdowns) ---------- */

.navgroup { position: relative; }

.navgroup-btn {
  background: none;
  border: none;
  font-family: inherit;
  color: var(--text-dim);
  font-size: 0.88rem;
  padding: 0.4rem 0.7rem;
  border-radius: 7px;
  cursor: pointer;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
}

.navgroup-btn .caret { font-size: 0.7em; opacity: 0.7; transition: transform 0.15s ease; }
.navgroup.open .navgroup-btn .caret { transform: rotate(180deg); }

.navgroup-btn:hover,
.navgroup.open .navgroup-btn,
.navgroup-btn.active-parent {
  color: var(--text);
  background: var(--bg-card);
}

.navgroup-menu {
  display: none;
  position: absolute;
  top: 100%;
  right: 0;
  min-width: 190px;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 9px;
  padding: 0.4rem;
  margin-top: 0.35rem;
  z-index: 60;
  box-shadow: 0 16px 44px -14px var(--shadow);
}

.navgroup.open .navgroup-menu { display: block; }

@media (hover: hover) {
  .navgroup:hover .navgroup-menu { display: block; }
}

.navgroup-menu a {
  display: block;
  color: var(--text-dim);
  font-size: 0.88rem;
  padding: 0.45rem 0.7rem;
  border-radius: 6px;
  white-space: nowrap;
}

.navgroup-menu a:hover,
.navgroup-menu a.active {
  color: var(--text);
  background: var(--bg-card);
  text-decoration: none;
}

/* ---------- Layout ---------- */

main {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 5rem;
}

.back-home {
  display: inline-block;
  font-size: 0.82rem;
  color: var(--text-dim);
  margin-bottom: 1.6rem;
  padding: 0.35rem 0.75rem;
  border: 1px solid var(--border);
  border-radius: 7px;
}

.back-home:hover {
  color: var(--text);
  background: var(--bg-card);
  border-color: var(--accent-dim);
  text-decoration: none;
}

.eyebrow {
  display: inline-block;
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 700;
  margin-bottom: 0.8rem;
}

.eyebrow.suno { color: var(--suno); }
.eyebrow.moises { color: var(--moises); }
.eyebrow.logic { color: var(--logic); }

h1 {
  font-size: clamp(1.8rem, 4vw, 2.5rem);
  line-height: 1.14;
  margin: 0 0 0.6rem;
  font-weight: 900;
  letter-spacing: -0.022em;
}

.subtitle {
  font-size: 1.1rem;
  color: var(--text-dim);
  max-width: 60ch;
  margin: 0 0 2.2rem;
}

h2 {
  font-size: 1.4rem;
  margin: 2.6rem 0 1rem;
  padding-top: 0.4rem;
  border-top: 1px solid var(--border);
  letter-spacing: -0.005em;
}

section:first-of-type h2:first-child,
main > h2:first-of-type { border-top: none; padding-top: 0; }

h3 {
  font-size: 1.1rem;
  margin: 1.6rem 0 0.7rem;
  color: var(--text);
}

p { margin: 0 0 1rem; color: var(--text-dim); }
strong { color: var(--text); font-weight: 600; }

/* Tool-name colour coding in body copy (color only — no extra weight, to stay calm at volume) */
.tool { color: var(--moises); }
.tool.suno { color: var(--suno); }
.tool.logic { color: var(--logic); }

/* Critical negation — the one word that prevents a silent mistake, in the warning colour */
strong.neg { color: var(--warn); }

ol, ul {
  color: var(--text-dim);
  padding-left: 1.3rem;
  margin: 0 0 1.2rem;
}
li { margin-bottom: 0.5rem; }
li::marker { color: var(--accent); }

code {
  font-family: var(--font-mono);
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 5px;
  padding: 0.1rem 0.4rem;
  font-size: 0.85em;
  color: var(--text);
}

pre {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.2rem;
  overflow-x: auto;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
  line-height: 1.7;
}

hr {
  border: none;
  border-top: 1px solid var(--border);
  margin: 2.5rem 0;
}

/* ---------- Callouts ---------- */

.callout {
  border-radius: var(--radius);
  border: 1px solid var(--border);
  padding: 1.1rem 1.3rem;
  margin: 1.4rem 0;
}

.callout p:last-child { margin-bottom: 0; }

.callout-title {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
  font-size: 0.95rem;
}

.callout.warn { background: var(--warn-soft); border-color: rgba(255,107,107,0.35); }
.callout.warn .callout-title { color: var(--warn); }

.callout.tip { background: var(--accent-soft); border-color: rgba(255,159,67,0.35); }
.callout.tip .callout-title { color: var(--accent); }

.callout.good { background: var(--good-soft); border-color: rgba(95,212,168,0.35); }
.callout.good .callout-title { color: var(--good); }

.callout.note { background: var(--bg-card); }
.callout.note .callout-title { color: var(--text-dim); }

/* ---------- Cards / grids ---------- */

.card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.5rem 0 2rem;
}

.card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.2rem 1.3rem;
}

.card h3 { margin-top: 0; font-size: 1rem; }
.card p { margin-bottom: 0; font-size: 0.92rem; }

.card .tag {
  display: inline-block;
  font-size: 0.68rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  font-weight: 700;
  padding: 0.15rem 0.5rem;
  border-radius: 5px;
  margin-bottom: 0.6rem;
}
.tag.moises { background: var(--moises-soft); color: var(--moises); }
.tag.suno { background: var(--suno-soft); color: var(--suno); }
.tag.logic { background: var(--logic-soft); color: var(--logic); }

/* ---------- Tables ---------- */

.table-wrap { overflow-x: auto; margin: 1.2rem 0 2rem; border: 1px solid var(--border); border-radius: var(--radius); }

table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
  min-width: 480px;
}

th, td {
  text-align: left;
  padding: 0.7rem 1rem;
  border-bottom: 1px solid var(--border);
  vertical-align: top;
}

th {
  background: var(--bg-raised);
  color: var(--text);
  font-weight: 600;
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

td { color: var(--text-dim); }
tr:last-child td { border-bottom: none; }
td strong { color: var(--text); }

/* ---------- Workflow chain (combined-workflow page) ---------- */

.chain {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin: 2rem 0;
}

.chain-step {
  display: flex;
  gap: 1rem;
  padding: 1.1rem 0;
}

.chain-step .num {
  flex-shrink: 0;
  width: 2.2rem;
  height: 2.2rem;
  border-radius: 50%;
  background: var(--bg-card);
  border: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: var(--accent);
  font-size: 0.95rem;
}

.chain-step:not(:last-child) {
  border-bottom: 1px dashed var(--border);
}

.chain-step .body h3 { margin: 0 0 0.3rem; }
.chain-step .body p { margin-bottom: 0.2rem; }
.chain-step .tool-label {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  color: var(--text-faint); /* default (Melodyne stays neutral — it's the optional helper, not a core tool) */
  margin-bottom: 0.3rem;
}
.chain-step .tool-label.suno   { color: var(--suno); }
.chain-step .tool-label.moises { color: var(--moises); }
.chain-step .tool-label.logic  { color: var(--logic); }

/* ---------- Screenshots (real product crops) ---------- */

.shot {
  margin: 1.6rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-card);
}

.shot img { display: block; width: 100%; }

.shot figcaption {
  padding: 0.7rem 1rem;
  font-size: 0.84rem;
  color: var(--text-faint);
  border-top: 1px solid var(--border);
}

.shot-trio {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 1.1rem;
  margin: 1.8rem 0 2.2rem;
}

.shot-trio .shot { margin: 0; display: flex; flex-direction: column; }
.shot-trio .shot img { width: 100%; height: auto; }

/* ---------- Full-bleed hero shots (home page) ---------- */

.hero-shots {
  width: 100vw;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  padding: 0.5rem 1.5rem 0;
  box-sizing: border-box;
}

.hero-shots .shot-trio {
  max-width: 1440px;
  margin: 0 auto;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 1.5rem;
}

.hero-shots .shot {
  box-shadow: 0 20px 60px -20px var(--shadow);
}

.shot-link {
  display: flex;
  flex-direction: column;
  border-color: var(--accent-dim); /* static lavender border — separates the cards at rest */
  transition: border-color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
}

.shot-link:hover {
  text-decoration: none;
  border-color: var(--accent); /* brightens slightly on engage; the lift is the eye candy */
  transform: translateY(-3px);
  box-shadow: 0 26px 70px -20px var(--shadow);
}

.shot-link img { flex-shrink: 0; }

.shot-cap {
  display: block;
  padding: 0.85rem 1rem;
  font-size: 0.92rem;
  color: var(--text-dim);
  border-top: 1px solid var(--border);
}

.shot-cap .tool { font-weight: 600; color: var(--moises); }
.shot-cap .tool.suno { color: var(--suno); }
.shot-cap .tool.logic { color: var(--logic); }

.shot-cap .go {
  display: inline-block;
  margin-top: 0.35rem;
  color: var(--accent);
  font-weight: 600;
  font-size: 0.85rem;
  opacity: 0.75;
  transition: opacity 0.15s ease;
}

.shot-link:hover .go { opacity: 1; }

@media (max-width: 900px) {
  .hero-shots { padding: 0.5rem 1rem 0; }
}

/* ---------- Hero (home page) ---------- */

.hero {
  padding: 3rem 0 1rem;
}

.hero-centered { text-align: center; }
.hero-centered .pitch { margin-left: auto; margin-right: auto; }

.crest-wrap {
  position: relative;
  display: inline-block;
  margin: 0 auto 1.4rem;
}

.crest {
  display: block;
  width: 60px;
  height: auto;
  filter: drop-shadow(0 0 22px rgba(255, 159, 67, 0.16)) drop-shadow(0 6px 16px var(--shadow));
}

.crest-wrap .tm {
  position: absolute;
  right: -0.55rem;
  bottom: 0.6rem;
  font-size: 0.62rem;
  font-weight: 600;
  color: var(--text-faint);
  letter-spacing: 0.02em;
}

@media (max-width: 720px) {
  .crest { width: 60px; }
}

.hero .pitch {
  font-size: 1.2rem;
  color: var(--text);
  max-width: 62ch;
  line-height: 1.55;
  margin: 1.2rem 0 2.4rem;
}

.hero .pitch .tool { color: var(--moises); font-weight: 600; }
.hero .pitch .tool.suno { color: var(--suno); }
.hero .pitch .tool.logic { color: var(--logic); }

.hero-image {
  margin: 2rem 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
}

/* ---------- Nav cards (home page index into site) ---------- */

.nav-card {
  display: block;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.3rem 1.4rem;
  transition: border-color 0.15s ease, transform 0.15s ease;
}

.nav-card:hover {
  text-decoration: none;
  border-color: var(--accent-dim);
  transform: translateY(-1px);
}

.nav-card h3 { margin: 0 0 0.4rem; color: var(--text); }
.nav-card p { margin: 0; font-size: 0.9rem; }
.nav-card .arrow { color: var(--accent); font-size: 0.85rem; font-weight: 600; }

/* ---------- Starter track + lyric walkthrough (workflow page) ---------- */

.starter { margin: 2.6rem 0; }
.starter .starter-h { border-top: none; padding-top: 0; margin-top: 0.2rem; }
.starter-note { font-size: 0.9rem; color: var(--text-faint); margin-top: 1rem; }

.track {
  display: flex;
  align-items: center;
  gap: 1rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1rem 1.1rem;
  margin: 1.5rem 0 0;
  box-shadow: 0 16px 44px -24px var(--shadow);
}

.track-play {
  flex-shrink: 0;
  width: 3rem;
  height: 3rem;
  border-radius: 50%;
  border: none;
  cursor: pointer;
  background: linear-gradient(135deg, var(--accent), var(--gold));
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
  transition: transform 0.12s ease, filter 0.12s ease, box-shadow 0.12s ease;
  box-shadow: 0 6px 18px -6px var(--shadow);
}
.track-play:hover { filter: brightness(1.07); transform: translateY(-1px); }
.track-play svg { width: 22px; height: 22px; display: block; }
.track-play .ic-pause { display: none; }
.track.playing .ic-play { display: none; }
.track.playing .ic-pause { display: block; }

.track-body { flex: 1; min-width: 0; }

.track-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.8rem;
}
.track-title { font-weight: 700; color: var(--text); }
.track-sub {
  font-size: 0.72rem;
  color: var(--text-faint);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-top: 0.15rem;
}

.track-dl {
  flex-shrink: 0;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--accent);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 0.35rem 0.7rem;
  white-space: nowrap;
}
.track-dl:hover {
  text-decoration: none;
  border-color: var(--accent-dim);
  background: var(--accent-soft);
}

.track-scrub { margin-top: 0.75rem; }
.track-seek {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 5px;
  border-radius: 3px;
  background: var(--bg-raised);
  cursor: pointer;
}
.track-seek::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-card);
  cursor: pointer;
}
.track-seek::-moz-range-thumb {
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--accent);
  border: 2px solid var(--bg-card);
  cursor: pointer;
}
.track-time {
  display: flex;
  justify-content: space-between;
  font-size: 0.72rem;
  color: var(--text-faint);
  margin-top: 0.35rem;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 560px) {
  .track { flex-wrap: wrap; }
  .track-head { flex-wrap: wrap; }
}

.lyric-walk {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1rem;
  margin: 1.6rem 0 0;
}
.lyric-step {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-top: 3px solid var(--border);
  border-radius: var(--radius);
  padding: 1.1rem 1.2rem;
}
.lyric-step.suno   { border-top-color: var(--suno); }
.lyric-step.moises { border-top-color: var(--moises); }
.lyric-step.logic  { border-top-color: var(--logic); }
.lyric-step .stage {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  margin-bottom: 0.6rem;
}
.lyric-step.suno   .stage { color: var(--suno); }
.lyric-step.moises .stage { color: var(--moises); }
.lyric-step.logic  .stage { color: var(--logic); }
.lyric-step blockquote {
  margin: 0 0 0.6rem;
  padding: 0;
  font-size: 0.95rem;
  font-style: italic;
  color: var(--text);
  line-height: 1.5;
}
.lyric-step p { margin: 0; font-size: 0.88rem; }

/* ---------- Quick reference table styling helper ---------- */

.qr-section { margin-bottom: 2.5rem; }

/* ---------- Footer ---------- */

footer {
  border-top: 1px solid var(--border);
  padding: 2rem 1.5rem 3rem;
  text-align: center;
  color: var(--text-faint);
  font-size: 0.85rem;
}

footer a { color: var(--text-faint); text-decoration: underline; }

/* ---------- Prev/Next page nav ---------- */

.pagenav {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 3rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border);
}

.pagenav a {
  flex: 1;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1.1rem;
  color: var(--text-dim);
}

.pagenav a:hover { border-color: var(--accent-dim); text-decoration: none; color: var(--text); }
.pagenav .next { text-align: right; }
.pagenav .label { display: block; font-size: 0.7rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--text-faint); margin-bottom: 0.2rem; }

/* ---------- Responsive ---------- */

@media (max-width: 720px) {
  #navToggle { display: block; }
  .navlinks {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--bg-raised);
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    padding: 0.6rem;
  }
  .navlinks.open { display: flex; }
  .navlinks a { padding: 0.6rem 0.8rem; }

  /* dropdowns expand inline under the hamburger, no absolute overlay */
  .navgroup { width: 100%; }
  .navgroup-btn { width: 100%; justify-content: space-between; padding: 0.6rem 0.8rem; }
  .navgroup-menu {
    position: static;
    min-width: 0;
    background: transparent;
    border: none;
    box-shadow: none;
    padding: 0 0 0.3rem 0.8rem;
    margin-top: 0;
  }
  .navgroup:hover .navgroup-menu { display: none; }
  .navgroup.open .navgroup-menu { display: block; }
  .pagenav { flex-direction: column; }
}
