:root {
  color-scheme: light;
  --ink: #171514;
  --muted: #665f58;
  --paper: #fbfaf7;
  --panel: #ffffff;
  --line: #ded7cf;
  --red: #b63f2f;
  --red-dark: #842d24;
  --teal: #176c68;
  --gold: #d99a2b;
  --blue: #263f75;
  --shadow: 0 22px 60px rgba(23, 21, 20, 0.16);
  --radius: 8px;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 92px; }
body { margin: 0; background: var(--paper); color: var(--ink); }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
section, main { scroll-margin-top: 86px; }

.site-header {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 52px);
  background: rgba(251, 250, 247, 0.9);
  border-bottom: 1px solid rgba(222, 215, 207, 0.75);
  backdrop-filter: blur(18px);
}

.brand { display: inline-flex; align-items: center; gap: 10px; min-width: max-content; font-weight: 800; }
.brand img { width: 42px; height: 42px; border-radius: 50%; object-fit: cover; }
.site-nav { display: flex; align-items: center; gap: clamp(14px, 2vw, 28px); color: #312d2a; font-size: 0.95rem; }
.site-nav a { border-bottom: 2px solid transparent; padding: 8px 0; }
.site-nav a:hover, .site-nav a:focus-visible { border-color: var(--red); }
.nav-cta {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--ink);
  border-radius: 999px;
  padding: 0 16px !important;
  line-height: 1;
  white-space: nowrap;
}
.nav-button { border: 0; background: transparent; color: #312d2a; cursor: pointer; font-weight: 800; padding: 8px 0; }
.menu-toggle { display: none; }

.hero {
  position: relative;
  min-height: min(660px, 86vh);
  display: flex;
  align-items: center;
  overflow: hidden;
  padding: 112px clamp(22px, 6vw, 80px) 84px;
  isolation: isolate;
}

.hero-bg, .hero-shade { position: absolute; inset: 0; }
.hero-bg { width: 100%; height: 100%; object-fit: cover; object-position: center center; z-index: -2; }
.hero-shade {
  z-index: -1;
  background:
    linear-gradient(90deg, rgba(12, 10, 8, 0.9) 0%, rgba(12, 10, 8, 0.68) 42%, rgba(12, 10, 8, 0.14) 100%),
    linear-gradient(0deg, rgba(12, 10, 8, 0.48), rgba(12, 10, 8, 0.04));
}
.hero-content { max-width: 690px; color: white; }
.eyebrow { margin: 0 0 14px; color: var(--gold); font-size: 0.78rem; font-weight: 800; letter-spacing: 0; text-transform: uppercase; }
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { margin: 0; max-width: 12ch; font-size: clamp(3rem, 7vw, 5.65rem); line-height: 0.96; letter-spacing: 0; }
h2 { margin: 0; font-size: clamp(2rem, 4.8vw, 4.6rem); line-height: 1; letter-spacing: 0; }
h3 { margin: 0; font-size: 1.18rem; }
.hero-copy { max-width: 58ch; margin: 24px 0 0; color: rgba(255, 255, 255, 0.88); font-size: clamp(1rem, 1.5vw, 1.24rem); line-height: 1.6; }
.hero-actions, .tool-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  border: 1px solid transparent;
  border-radius: 999px;
  padding: 0 18px;
  cursor: pointer;
  font-weight: 800;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}
.button:hover, .button:focus-visible, .tempo-button:hover, .tool-tab:hover, .tool-tab:focus-visible { transform: translateY(-1px); }
.button.primary { background: var(--red); color: white; }
.button.primary:hover, .button.primary:focus-visible { background: var(--red-dark); }
.button.secondary { border-color: rgba(255, 255, 255, 0.6); color: white; }
.button.quiet { border-color: var(--line); background: var(--panel); }
.text-link { color: var(--red); font-weight: 900; }
.page-main { padding-top: 70px; }
.page-hero {
  display: grid;
  gap: 18px;
  padding: clamp(96px, 14vw, 150px) clamp(18px, 4vw, 52px) clamp(48px, 8vw, 84px);
  background: #ede8e1;
}
.page-hero h1, .auth-copy h1, .portal-loading h1, .about-section h1, .contact-band h1, .tools-page h1 {
  max-width: 12ch;
  margin: 0;
  font-size: clamp(2.7rem, 6vw, 5.4rem);
  line-height: 0.98;
}
.page-hero p:not(.eyebrow), .auth-copy p, .teaser-panel p {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.65;
}
.lesson-grid-section { padding-top: 28px; }

.quick-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-bottom: 1px solid var(--line); }
.quick-strip div { min-height: 106px; display: grid; align-content: center; gap: 6px; padding: 22px clamp(18px, 4vw, 52px); background: var(--paper); }
.quick-strip strong { font-size: 1.55rem; }
.quick-strip span, .lesson-panel p, .about-copy, .contact-band p, .reviews-grid blockquote { color: var(--muted); line-height: 1.6; }

.section { padding: clamp(72px, 10vw, 128px) clamp(18px, 4vw, 52px); }
.section-heading { max-width: 920px; margin-bottom: clamp(30px, 5vw, 58px); }
.lesson-grid, .reviews-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.lesson-panel, .reviews-grid figure { border: 1px solid var(--line); border-radius: var(--radius); background: var(--panel); padding: 24px; }
.lesson-panel { min-height: 218px; display: flex; flex-direction: column; justify-content: space-between; }
.lesson-panel:nth-child(1) { border-top: 6px solid var(--teal); }
.lesson-panel:nth-child(2) { border-top: 6px solid var(--red); }
.lesson-panel:nth-child(3) { border-top: 6px solid var(--blue); }

.portal-section { background: #f0ebe4; }
.portal-teaser {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 520px);
  gap: clamp(28px, 6vw, 78px);
  align-items: start;
  background: #f0ebe4;
}
.teaser-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 24px;
}
.portal-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1.6fr) minmax(240px, 0.8fr);
  gap: 16px;
  align-items: start;
}
.portal-sidebar, .portal-main, .teacher-panel {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--panel);
  padding: 18px;
}
.login-card, .student-card, .teacher-panel, .portal-main { display: grid; gap: 16px; }
.login-card label, .teacher-panel label { display: grid; gap: 8px; }
.login-card span, .teacher-panel label span { color: var(--muted); font-size: 0.88rem; font-weight: 800; }
.is-hidden { display: none !important; }
.student-card p, .portal-toolbar p, .lesson-module p, .teacher-saved { margin: 0; color: var(--muted); line-height: 1.55; }
.progress-ring {
  width: 132px;
  height: 132px;
  display: grid;
  place-items: center;
  justify-self: center;
  border: 10px solid #e6ddd2;
  border-top-color: var(--teal);
  border-radius: 50%;
  text-align: center;
}
.progress-ring strong, .progress-ring span { display: block; }
.progress-ring strong { font-size: 2rem; line-height: 1; }
.progress-ring span { color: var(--muted); font-size: 0.8rem; font-weight: 800; }
.portal-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 16px;
}
.lesson-module {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-left: 6px solid #d3c8ba;
  border-radius: var(--radius);
  padding: 18px;
  background: #fffdf9;
}
.lesson-module.active { border-left-color: var(--red); }
.module-meta { display: grid; gap: 6px; }
.module-meta span { color: var(--gold); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; }
.module-meta strong { font-size: 1.18rem; }
.module-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.completion-check {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 10px;
  align-items: start;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  color: #3a332e;
  font-weight: 700;
}
.completion-check input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
.student-row {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 12px;
  align-items: center;
  color: #3a332e;
  font-weight: 900;
}
progress { width: 100%; height: 12px; accent-color: var(--teal); }

.tools-section { background: #11100f; color: white; }
.tools-page { min-height: calc(100vh - 70px); }
.tools-layout { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 20px; align-items: start; }
.tool-tabs { display: grid; gap: 8px; }
.tool-tab { min-height: 48px; border: 1px solid rgba(255,255,255,0.18); border-radius: var(--radius); background: rgba(255,255,255,0.06); color: white; cursor: pointer; padding: 0 14px; text-align: left; }
.tool-tab.active { background: white; color: var(--ink); }
.tool-surface { min-height: 514px; border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius); background: #f6f2ed; color: var(--ink); box-shadow: var(--shadow); padding: clamp(18px, 3vw, 34px); }
.tool-pane { display: none; }
.tool-pane.active { display: grid; gap: 24px; }
.tool-header { display: flex; justify-content: space-between; gap: 14px; align-items: center; }
.tool-badge { min-width: 76px; border-radius: 999px; background: #e7ded2; color: #413832; padding: 7px 12px; text-align: center; font-size: 0.82rem; font-weight: 800; }

.metronome-stage {
  display: grid;
  grid-template-columns: minmax(240px, 330px) 62px;
  justify-content: center;
  gap: 18px;
  align-items: center;
}
.metronome-device {
  position: relative;
  min-height: 360px;
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 18px;
  justify-items: center;
  padding: 22px;
  background:
    linear-gradient(145deg, rgba(255,255,255,0.18), transparent 28%),
    linear-gradient(180deg, #30343a, #171a1f);
  border: 1px solid #0e1013;
  border-radius: 22px;
  box-shadow: inset 0 0 0 2px rgba(255,255,255,0.05), inset 0 -18px 34px rgba(0,0,0,0.4), 0 18px 38px rgba(23,21,20,0.24);
  overflow: hidden;
}
.device-top {
  width: 100%;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: rgba(255,255,255,0.72);
  font-size: 0.7rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
.beat-lights {
  width: 100%;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 7px;
}
.beat-lights span {
  height: 12px;
  border-radius: 999px;
  background: #0d0f12;
  box-shadow: inset 0 1px 2px rgba(0,0,0,0.7);
}
.beat-lights span.enabled {
  background: #2a352c;
}
.beat-lights span.active {
  background: #80e186;
  box-shadow: 0 0 14px rgba(128,225,134,0.8);
}
.lcd-screen {
  width: 100%;
  min-height: 146px;
  display: grid;
  align-content: center;
  gap: 4px;
  justify-items: center;
  border: 3px solid #0c0e10;
  border-radius: 12px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.18), transparent 34%),
    #b9c6a4;
  color: #172016;
  box-shadow: inset 0 0 18px rgba(0,0,0,0.28);
}
.lcd-screen span {
  color: rgba(23,32,22,0.7);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}
.lcd-label {
  justify-self: start;
  margin-left: 18px;
}
.speaker-grill {
  width: 70%;
  display: grid;
  gap: 8px;
}
.speaker-grill span {
  height: 5px;
  border-radius: 999px;
  background: #0d0f12;
  box-shadow: inset 0 1px 1px rgba(255,255,255,0.06);
}
.tempo-stepper {
  display: grid;
  gap: 12px;
}
.tempo-button { width: 56px; height: 56px; border: 1px solid var(--line); border-radius: 50%; background: white; cursor: pointer; font-size: 1.8rem; }
.bpm-readout { display: grid; place-items: center; color: #172016; font-family: "Courier New", ui-monospace, monospace; font-size: clamp(4.2rem, 10vw, 6.2rem); font-weight: 900; line-height: 0.9; }
.tempo-presets {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
}
.tempo-presets button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: white;
  cursor: pointer;
  font-weight: 900;
}
.tempo-presets button.active {
  background: var(--red);
  border-color: var(--red);
  color: white;
}
.control-row, .planner-controls, .chord-controls { display: grid; grid-template-columns: minmax(110px, 0.35fr) 1fr; gap: 14px; align-items: center; }
.control-row span, .planner-controls span, .chord-controls span, .contact-form span { color: var(--muted); font-size: 0.88rem; font-weight: 800; }
input, select, textarea { width: 100%; border: 1px solid #cfc5ba; border-radius: var(--radius); background: white; color: var(--ink); padding: 12px; }
input[type="range"] { accent-color: var(--red); }
.planner-controls, .chord-controls { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.planner-controls label, .chord-controls label, .contact-form label { display: grid; gap: 8px; }
.practice-plan { display: grid; gap: 10px; margin: 0; padding-left: 22px; }
.practice-plan li { padding: 10px 0; color: #3a332e; }

.chord-card { display: grid; grid-template-columns: minmax(140px, 0.42fr) minmax(240px, 1fr); gap: 22px; align-items: center; }
.chord-name { margin: 0; font-size: clamp(2.4rem, 8vw, 5.6rem); font-weight: 900; line-height: 0.95; }
.chord-fingering { margin: 14px 0 0; color: var(--muted); font-weight: 800; }
.chord-diagram { position: relative; width: min(100%, 440px); aspect-ratio: 1.22; border: 1px solid var(--line); border-radius: var(--radius); background: white; overflow: hidden; }
.string-line, .fret-line { position: absolute; background: #2c2927; }
.string-line { top: 14%; bottom: 10%; width: 2px; }
.fret-line { left: 10%; right: 10%; height: 2px; }
.nut-line { height: 6px; }
.finger-dot { position: absolute; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--red); color: white; font-size: 0.78rem; font-weight: 900; transform: translate(-50%, -50%); }
.open-marker, .mute-marker { position: absolute; top: 4%; transform: translateX(-50%); color: #2c2927; font-weight: 900; }

.trainer-mode {
  display: inline-grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  justify-self: start;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #e7ded2;
  padding: 4px;
}
.trainer-mode button {
  min-height: 38px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #413832;
  cursor: pointer;
  font-weight: 900;
}
.trainer-mode button.active { background: white; color: var(--ink); box-shadow: 0 1px 6px rgba(23, 21, 20, 0.12); }
.trainer-visual {
  display: grid;
  gap: 12px;
  border-radius: var(--radius);
}
.trainer-visual p {
  margin: 0;
  color: var(--muted);
  font-weight: 900;
  text-align: center;
}
.fretboard-picture {
  position: relative;
  aspect-ratio: 1776 / 420;
  border: 1px solid #211817;
  border-radius: var(--radius);
  overflow: hidden;
  background: url("assets/fretboard-six-string.png") center / 100% 100% no-repeat;
  box-shadow: inset 0 0 18px rgba(0, 0, 0, 0.28);
}
.fretboard-marker {
  position: absolute;
  left: var(--marker-x, 11%);
  top: var(--marker-y, 20%);
  z-index: 5;
  width: 24px;
  height: 24px;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--red);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.36);
  transform: translate(-50%, -50%);
}
.triad-marker {
  position: absolute;
  left: var(--marker-x);
  top: var(--marker-y);
  z-index: 5;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--teal);
  color: white;
  font-size: 0.65rem;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
}
.triad-marker.root { background: var(--red); }
.triad-notes {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.triad-notes span {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 10px;
  color: #3a332e;
  text-align: center;
  font-weight: 900;
}
.finder-marker {
  position: absolute;
  left: var(--marker-x);
  top: var(--marker-y);
  z-index: 5;
  width: 22px;
  height: 22px;
  display: grid;
  place-items: center;
  border: 3px solid white;
  border-radius: 50%;
  background: var(--red);
  color: white;
  font-size: 0.62rem;
  font-weight: 900;
  box-shadow: 0 6px 14px rgba(0, 0, 0, 0.34);
  transform: translate(-50%, -50%);
}
.finder-marker.root { background: var(--red); }
.finder-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fffdf9;
  padding: 14px;
}
.finder-summary span {
  display: block;
  color: var(--muted);
  font-size: 0.84rem;
  font-weight: 900;
}
.finder-summary strong {
  display: block;
  margin-top: 4px;
  font-size: 1.2rem;
}
.finder-results {
  display: grid;
  gap: 10px;
}
.finder-results p {
  margin: 0;
  color: var(--muted);
}
.finder-result {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: 14px;
}
.finder-result strong { font-size: 1.15rem; }
.finder-result span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}
.trainer-prompt { min-height: 154px; display: grid; place-items: center; border-radius: var(--radius); background: var(--ink); color: white; text-align: center; }
.trainer-prompt span, .trainer-prompt strong { display: block; }
.trainer-prompt strong { font-size: clamp(2.8rem, 8vw, 5.4rem); line-height: 1; }
.note-choices { display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px; }
.note-choices button { min-height: 48px; border: 1px solid var(--line); border-radius: var(--radius); background: white; cursor: pointer; font-weight: 900; }
.note-choices button.correct { background: var(--teal); color: white; }
.note-choices button.incorrect { background: var(--red); color: white; }

.reviews-section { background: #ede8e1; }
.reviews-grid figure { margin: 0; }
.reviews-grid blockquote { margin: 0 0 20px; }
.reviews-grid figcaption { font-weight: 900; }
.about-section { display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(260px, 1fr); gap: clamp(30px, 6vw, 88px); align-items: start; }
.about-portrait-section { grid-template-columns: minmax(260px, 0.72fr) minmax(320px, 1.1fr); align-items: center; }
.about-photo { margin: 0; }
.about-photo img {
  width: 100%;
  aspect-ratio: 1617 / 973;
  object-fit: cover;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.about-portrait-section .about-copy { grid-column: 1 / -1; max-width: 850px; }
.about-copy { font-size: 1.08rem; }
.contact-band { display: grid; grid-template-columns: minmax(260px, 0.9fr) minmax(280px, 520px); gap: clamp(28px, 6vw, 74px); padding: clamp(56px, 8vw, 96px) clamp(18px, 4vw, 52px); background: #203d3a; color: white; }
.contact-band.standalone { min-height: calc(100vh - 148px); align-items: center; }
.contact-band p { color: rgba(255,255,255,0.78); }
.contact-form { display: grid; gap: 14px; }
.contact-form span { color: rgba(255,255,255,0.76); }
.site-footer { min-height: 78px; display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 20px clamp(18px, 4vw, 52px); background: var(--ink); color: white; }

.auth-page {
  min-height: calc(100vh - 78px);
  display: grid;
  align-items: center;
  padding: clamp(96px, 12vw, 140px) clamp(18px, 4vw, 52px) clamp(42px, 7vw, 74px);
  background: #f0ebe4;
}
.auth-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(300px, 440px);
  gap: clamp(28px, 6vw, 82px);
  align-items: center;
}
.auth-card {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: white;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: var(--shadow);
}
.auth-card label {
  display: grid;
  gap: 8px;
}
.auth-card label span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 800;
}
.form-status {
  min-height: 24px;
  margin: 0;
  color: var(--muted);
  font-weight: 800;
}
.portal-app {
  min-height: calc(100vh - 78px);
  padding: clamp(96px, 12vw, 130px) clamp(18px, 4vw, 52px) clamp(42px, 7vw, 74px);
  background: #f0ebe4;
}
.portal-loading {
  display: grid;
  gap: 14px;
}
.portal-dashboard {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1.7fr) minmax(240px, 0.8fr);
  gap: 16px;
  align-items: start;
}
.portal-lessons {
  display: grid;
  gap: 16px;
}

@media (max-width: 880px) {
  .menu-toggle { width: 44px; height: 44px; display: grid; place-content: center; gap: 5px; border: 1px solid var(--line); border-radius: 50%; background: white; }
  .menu-toggle span { width: 18px; height: 2px; display: block; background: var(--ink); }
  .site-nav { position: absolute; top: calc(100% + 1px); left: 0; right: 0; display: none; grid-template-columns: 1fr; gap: 0; padding: 14px 22px 22px; background: var(--paper); border-bottom: 1px solid var(--line); }
  .site-nav.open { display: grid; }
  .nav-cta { width: max-content; margin-top: 8px; }
  section, main { scroll-margin-top: 74px; }
  html { scroll-padding-top: 74px; }
  .tools-section { padding-top: 104px; }
  .hero { min-height: min(700px, 84vh); align-items: center; padding: 116px 22px 82px; }
  .hero-bg { object-position: 62% center; }
  .hero-shade { background: linear-gradient(0deg, rgba(12,10,8,0.9) 0%, rgba(12,10,8,0.66) 48%, rgba(12,10,8,0.14) 100%), linear-gradient(90deg, rgba(12,10,8,0.38), rgba(12,10,8,0)); }
  .quick-strip, .lesson-grid, .reviews-grid, .about-section, .contact-band, .tools-layout, .chord-card, .portal-layout, .portal-teaser, .auth-layout, .portal-dashboard { grid-template-columns: 1fr; }
  .about-portrait-section .about-copy { grid-column: auto; }
  .tool-tabs { grid-template-columns: repeat(2, 1fr); }
  .portal-toolbar { align-items: flex-start; flex-direction: column; }
}

@media (max-width: 560px) {
  .brand span { max-width: 136px; line-height: 1.05; }
  h1 { font-size: clamp(3.1rem, 17vw, 4.7rem); }
  .site-header { padding-block: 10px; }
  .hero { min-height: auto; padding: 108px 18px 78px; }
  .section { padding-block: 58px; }
  .tool-tabs, .planner-controls, .chord-controls, .control-row { grid-template-columns: 1fr; }
  .metronome-stage { grid-template-columns: 1fr; }
  .metronome-device { min-height: 320px; }
  .tempo-stepper { grid-template-columns: repeat(2, 1fr); }
  .tempo-button { width: 100%; border-radius: var(--radius); }
  .tempo-presets { grid-template-columns: repeat(3, 1fr); }
  .trainer-mode { width: 100%; grid-template-columns: 1fr; border-radius: var(--radius); }
  .trainer-mode button { border-radius: calc(var(--radius) - 2px); }
  .fretboard-marker { width: 20px; height: 20px; border-width: 2px; }
  .triad-marker { width: 19px; height: 19px; border-width: 2px; }
  .triad-notes { grid-template-columns: 1fr; }
  .finder-marker { width: 19px; height: 19px; border-width: 2px; }
  .finder-summary, .finder-result { align-items: stretch; grid-template-columns: 1fr; flex-direction: column; }
  .note-choices { grid-template-columns: repeat(3, 1fr); }
  .site-footer { align-items: flex-start; flex-direction: column; }
}
