:root {
  color-scheme: light;
  --bg: #fbfbfa;
  --surface: #ffffff;
  --surface-soft: #f3f5f1;
  --text: #111827;
  --muted: #647067;
  --line: #e0e4df;
  --accent: #f95643;
  --accent-dark: #dc3d2b;
  --green: #2f8a50;
  --gold: #a87818;
  --shadow: 0 18px 50px rgba(17, 24, 39, 0.08);
  --radius: 8px;
  --max: 1180px;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    linear-gradient(90deg, rgba(17, 24, 39, 0.035) 1px, transparent 1px) 0 0 / 42px 42px,
    var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

button {
  cursor: pointer;
  touch-action: manipulation;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.58;
  transform: none !important;
}

.site-header,
.site-footer,
main > section {
  width: min(var(--max), calc(100% - 32px));
  margin-inline: auto;
}

.site-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 22px;
  font-weight: 800;
  letter-spacing: 0;
}

.brand span span {
  color: var(--accent);
}

.brand-mark {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  color: var(--accent);
}

.brand-mark svg {
  width: 28px;
  height: 28px;
}

.top-nav,
.site-footer nav {
  display: flex;
  align-items: center;
  gap: 24px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 650;
}

.top-nav a:hover,
.site-footer a:hover {
  color: var(--accent);
}

.hero,
.seo-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(280px, 0.75fr);
  gap: 28px;
  align-items: center;
  padding: 54px 0 28px;
}

.hero-copy h1,
.seo-hero h1,
.practice-page-head h1 {
  max-width: 720px;
  margin: 0;
  font-size: clamp(44px, 7vw, 84px);
  line-height: 0.95;
  letter-spacing: 0;
}

.seo-hero h1 {
  font-size: clamp(40px, 5.6vw, 70px);
}

.practice-page-head h1 {
  font-size: clamp(34px, 4vw, 56px);
}

.hero-copy h1::after {
  content: "";
  display: block;
  width: 112px;
  height: 7px;
  margin-top: 18px;
  background: var(--accent);
  border-radius: 999px;
}

.hero-copy p,
.seo-hero p,
.practice-page-head p,
.answer-section p,
.practice-explainer > div > p,
.progress-section p,
.section-heading p,
.article-section p,
.faq-section p {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.6;
}

.hero-copy p {
  max-width: 690px;
  margin: 22px 0;
}

.eyebrow {
  display: inline-flex;
  margin-bottom: 14px;
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
}

.hero-actions,
.inline-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.button {
  min-height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 18px;
  font-size: 15px;
  font-weight: 750;
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease,
    color 160ms ease;
}

.button:hover {
  transform: translateY(-1px);
  border-color: #c8d0c7;
}

.button:active {
  transform: translateY(1px) scale(0.99);
}

.button.primary {
  color: #fff;
  border-color: var(--accent);
  background: var(--accent);
}

.button.primary:hover {
  background: var(--accent-dark);
}

.button.quiet {
  background: transparent;
}

.button.danger {
  color: var(--accent-dark);
}

.button.small {
  min-height: 38px;
  padding: 0 14px;
  font-size: 14px;
}

.button.wide {
  width: 100%;
}

.choice-panel,
.quick-links,
.setup-panel,
.practice-panel,
.completion-panel,
.progress-demo {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}

.quick-links {
  display: grid;
  gap: 10px;
  padding: 20px;
}

.quick-links p {
  margin: 0 0 6px;
  color: var(--muted);
  font-weight: 750;
}

.quick-links a {
  display: block;
  padding: 12px;
  border-radius: var(--radius);
  background: var(--surface-soft);
  font-weight: 750;
}

.choice-panel {
  padding: 20px;
}

.choice-panel-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.choice-panel-head span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.choice-panel-head strong {
  font-size: 24px;
}

.choice-list {
  display: grid;
  gap: 10px;
}

.choice-card {
  display: grid;
  gap: 4px;
  min-height: 78px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    background 160ms ease;
}

.choice-card:hover {
  transform: translateY(-1px);
  border-color: #c8d0c7;
  background: #fff;
}

.choice-card span,
.choice-card small {
  color: var(--muted);
  font-weight: 750;
}

.choice-card strong {
  font-size: 24px;
  line-height: 1.05;
}

.custom-choice {
  border-color: #cde7d2;
  background: #eff8f1;
}

.breadcrumb,
.trust-list {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.breadcrumb {
  grid-column: 1 / -1;
  color: var(--muted);
  font-weight: 700;
  font-size: 14px;
}

.trust-list {
  padding: 0;
  margin: 22px 0 0;
  list-style: none;
}

.trust-list li {
  padding: 9px 12px;
  color: var(--green);
  background: #edf7ef;
  border: 1px solid #cde7d2;
  border-radius: var(--radius);
  font-size: 14px;
  font-weight: 750;
}

.tool-shell {
  padding: 18px 0 44px;
}

.practice-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px 24px;
  align-items: end;
  padding: 18px 0 20px;
}

.practice-page-head .trust-list {
  justify-content: flex-end;
  margin: 0;
}

.tool-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 360px;
  gap: 20px;
  align-items: start;
}

.setup-panel,
.practice-panel,
.completion-panel {
  padding: 24px;
}

.section-heading h2,
.answer-section h2,
.practice-explainer h2,
.progress-section h2,
.article-section h2,
.faq-section h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.05;
  letter-spacing: 0;
}

.section-heading.compact h2 {
  font-size: 28px;
}

.settings-panel .section-heading h2 {
  font-size: 26px;
}

.section-heading p {
  margin: 8px 0 0;
  font-size: 16px;
}

.continue-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
  padding: 14px;
  background: #eff8f1;
  border: 1px solid #cce9d2;
  border-radius: var(--radius);
}

.continue-card span,
.progression-card span,
.tempo-card span,
.tempo-route-label,
.select-field span,
.field-label,
.motion-head span,
.next-strip span,
.practice-meter span,
.progress-demo span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.continue-card strong,
.progression-card strong,
.tempo-card strong,
.progress-demo strong {
  display: block;
  margin-top: 5px;
  font-size: 18px;
}

.continue-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.chord-picker {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  margin: 18px 0;
}

.chord-chip {
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  touch-action: manipulation;
}

.chord-chip.selected {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #fff2ef;
  box-shadow: inset 0 -3px 0 rgba(249, 86, 67, 0.24);
}

.field-label {
  margin-bottom: 8px;
}

.custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.custom-row input,
.select-field select {
  width: 100%;
  min-height: 46px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
}

.progression-card {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.tempo-card {
  display: grid;
  gap: 14px;
  margin: 0 0 16px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.practice-tempo {
  margin: 14px 0;
  padding: 12px;
  background: var(--surface-soft);
}

.tempo-card-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.tempo-card-head strong {
  margin-top: 0;
}

.tempo-route {
  display: grid;
  gap: 8px;
}

.tempo-route-label {
  display: block;
}

.tempo-presets {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.tempo-preset {
  min-height: 58px;
  display: grid;
  align-content: center;
  gap: 2px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-soft);
  color: var(--text);
  padding: 9px 10px;
  text-align: left;
}

.practice-tempo .tempo-preset {
  min-height: 50px;
}

.tempo-preset strong {
  margin-top: 0;
}

.tempo-preset.selected {
  border-color: var(--accent);
  color: var(--accent-dark);
  background: #fff2ef;
  box-shadow: inset 0 -3px 0 rgba(249, 86, 67, 0.22);
}

.tempo-custom-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.tempo-custom-details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.tempo-custom-details summary {
  cursor: pointer;
  color: var(--muted);
  font-size: 13px;
  font-weight: 850;
}

.tempo-custom-details .tempo-custom-row {
  margin-top: 8px;
}

.tempo-custom-row input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--text);
  padding: 0 12px;
  font-weight: 800;
}

.select-field {
  display: grid;
  gap: 8px;
}

.settings-panel {
  position: sticky;
  top: 14px;
}

.settings-details {
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.settings-details summary {
  cursor: pointer;
  font-size: 16px;
  font-weight: 850;
}

.settings-details .chord-picker {
  margin-top: 14px;
}

.step-status {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 12px;
  padding: 8px 12px;
  border-radius: 999px;
  color: var(--accent-dark);
  background: #fff2ef;
  border: 1px solid #ffd2ca;
  font-size: 13px;
  font-weight: 850;
}

.practice-stage {
  display: block;
  margin: 20px 0;
}

.motion-card {
  position: relative;
  overflow: hidden;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px rgba(47, 138, 80, 0);
  transition:
    border-color 180ms ease,
    box-shadow 180ms ease,
    transform 180ms ease;
}

.motion-card.is-moving {
  border-color: #b7dec0;
  box-shadow: inset 0 0 0 1px rgba(47, 138, 80, 0.18);
  transform: translateY(-1px);
}

.motion-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 12px;
}

.motion-head strong {
  font-size: clamp(56px, 9vw, 76px);
  line-height: 0.9;
  letter-spacing: 0;
}

.animated-diagram {
  display: grid;
  justify-items: center;
  gap: 10px;
  padding: 8px 0 10px;
  min-height: 310px;
}

.diagram-labels {
  position: relative;
  width: min(300px, 88%);
  height: 20px;
  color: var(--muted);
  font-size: 20px;
  font-weight: 850;
}

.diagram-labels span {
  position: absolute;
  top: 0;
  width: 24px;
  text-align: center;
  transform: translateX(-50%);
}

.diagram-board {
  position: relative;
  width: min(300px, 88%);
  aspect-ratio: 1.08;
}

.fretboard-surface,
.finger-layer {
  position: absolute;
  inset: 0;
}

.fretboard-surface {
  border-top: 6px solid var(--text);
  background-image:
    linear-gradient(to right, var(--text) 0 2px, transparent 2px),
    linear-gradient(to bottom, var(--text) 0 2px, transparent 2px);
  background-size:
    20% 100%,
    100% 25%;
  background-position:
    0 0,
    0 0;
  opacity: 0.82;
}

.finger-layer {
  z-index: 2;
  pointer-events: none;
}

.finger-dot {
  position: absolute;
  z-index: 3;
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  background: var(--text);
  color: #fff;
  font-size: 14px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 8px 18px rgba(17, 24, 39, 0.22);
  transform: translate(-50%, -50%) scale(1);
  transition:
    left 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    top 420ms cubic-bezier(0.2, 0.8, 0.2, 1),
    opacity 180ms ease,
    transform 420ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: left, top, opacity, transform;
}

.motion-card.is-moving .finger-dot {
  transform: translate(-50%, -50%) scale(1.08);
}

.finger-dot.hidden {
  pointer-events: none;
  transform: translate(-50%, -50%) scale(0.74);
}

.animated-caption {
  min-height: 20px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 850;
}

.next-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--surface-soft);
}

.next-strip strong {
  font-size: 26px;
  line-height: 1;
}

.chord-diagram {
  width: min(148px, 100%);
  height: auto;
  margin-top: 6px;
}

.fretboard line {
  stroke: #111827;
  stroke-width: 1.4;
}

.fretboard .nut {
  stroke-width: 4;
}

.string-label,
.diagram-caption {
  fill: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.finger circle {
  fill: #111827;
}

.finger text {
  fill: #fff;
  font-size: 11px;
  font-weight: 800;
}

.cue-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  background: var(--surface-soft);
  border-radius: var(--radius);
}

.cue-row span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.cue-row strong {
  display: block;
  margin-top: 4px;
  font-size: 17px;
}

.beat-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin: 14px 0 0;
  padding: 12px 14px;
  border: 1px solid #cde7d2;
  border-radius: var(--radius);
  background: #eff8f1;
}

.beat-row span {
  color: var(--green);
  font-size: 14px;
  font-weight: 850;
}

.beat-row small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.beat-dots {
  display: flex;
  align-items: center;
  gap: 8px;
}

.beat-dots i {
  display: block;
  width: 13px;
  height: 13px;
  border-radius: 999px;
  background: #c9d8ca;
  transform: scale(1);
  transition:
    background 120ms ease,
    transform 120ms ease;
}

.beat-dots i.active {
  background: var(--green);
  transform: scale(1.22);
}

.beat-dots i.accent {
  background: var(--accent);
}

.practice-meter {
  display: grid;
  gap: 10px;
  margin: 20px 0;
}

.practice-meter > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 20px;
}

.meter-track {
  height: 11px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9ede8;
}

.meter-track div {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--green);
  transition: width 180ms ease;
}

.completion-panel {
  margin-top: 20px;
}

.completion-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.completion-summary h2 {
  margin: 0;
  font-size: 34px;
}

.completion-summary p {
  margin: 6px 0 0;
  color: var(--muted);
}

.week-stat {
  padding: 12px 14px;
  color: var(--green);
  background: #eff8f1;
  border: 1px solid #cce9d2;
  border-radius: var(--radius);
  font-weight: 850;
}

.share-layout {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(0, 1fr);
  gap: 22px;
  align-items: start;
}

.share-canvas {
  width: 100%;
  height: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.share-actions {
  display: grid;
  gap: 10px;
}

.share-actions h3 {
  margin: 0;
  font-size: 24px;
}

.share-actions p {
  margin: 0 0 6px;
  color: var(--muted);
  line-height: 1.5;
}

.support-text {
  min-height: 22px;
  color: var(--green);
  font-size: 14px;
  font-weight: 750;
}

.answer-section {
  max-width: 860px;
  padding: 42px 0 22px;
}

.answer-section h2 {
  margin-bottom: 12px;
}

.answer-section p {
  margin: 0;
}

.practice-explainer,
.progress-section {
  display: grid;
  grid-template-columns: 0.8fr 1.2fr;
  gap: 28px;
  align-items: start;
  padding: 48px 0;
}

.step-list {
  display: grid;
  gap: 14px;
}

.step-list article {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.step-list article span {
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border-radius: 50%;
  background: #fff2ef;
  color: var(--accent);
}

.step-list article:nth-child(2) span {
  background: #eff8f1;
  color: var(--green);
}

.step-list article:nth-child(3) span {
  background: #fff7df;
  color: var(--gold);
}

.step-list article span {
  grid-row: 1 / span 2;
}

.step-list h3,
.step-list p {
  grid-column: 2;
}

.step-list svg {
  width: 30px;
  height: 30px;
}

.step-list h3 {
  margin: 0 0 6px;
  font-size: 22px;
}

.step-list p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.progress-section {
  align-items: center;
}

.progress-demo {
  padding: 26px;
}

.progress-demo strong {
  font-size: 28px;
}

.progress-demo p {
  margin: 10px 0 0;
}

.link-section,
.article-section,
.faq-section {
  padding: 44px 0;
}

.practice-links {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 18px;
}

.practice-links a {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
}

.practice-links a:hover {
  border-color: #c8d0c7;
  transform: translateY(-1px);
}

.practice-links span,
.practice-links small {
  color: var(--muted);
  font-weight: 750;
}

.practice-links strong {
  font-size: 18px;
}

.article-section {
  max-width: 780px;
}

.updated-note {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
}

.article-section ol,
.article-section ul {
  color: var(--muted);
  font-size: 18px;
  line-height: 1.7;
}

.faq-section {
  max-width: 860px;
}

.faq-section details {
  border-top: 1px solid var(--line);
  padding: 18px 0;
}

.faq-section details:last-child {
  border-bottom: 1px solid var(--line);
}

.faq-section summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 850;
}

.site-footer {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 38px 0 52px;
  border-top: 1px solid var(--line);
}

.site-footer p {
  margin: 8px 0 0;
  color: var(--muted);
}

.site-footer nav {
  flex-wrap: wrap;
  justify-content: flex-end;
}

[hidden] {
  display: none !important;
}

@media (max-width: 880px) {
  .top-nav {
    display: none;
  }

  .hero,
  .seo-hero,
  .practice-page-head,
  .tool-grid,
  .practice-explainer,
  .progress-section,
  .share-layout {
    grid-template-columns: 1fr;
  }

  .hero,
  .seo-hero {
    padding-top: 34px;
  }

  .settings-panel {
    position: static;
  }

  .practice-links {
    grid-template-columns: 1fr 1fr;
  }
}

@media (max-width: 620px) {
  .site-header,
  .site-footer,
  main > section {
    width: min(100% - 24px, var(--max));
  }

  .hero-copy h1,
  .seo-hero h1,
  .practice-page-head h1 {
    font-size: 48px;
  }

  .practice-page-head {
    gap: 8px;
    padding: 6px 0 10px;
  }

  .practice-page-head h1 {
    font-size: 32px;
    line-height: 1;
  }

  .practice-page-head .trust-list {
    display: none;
  }

  .hero-copy p,
  .seo-hero p,
  .practice-page-head p {
    font-size: 16px;
  }

  .practice-page-head p {
    margin: 6px 0 0;
  }

  .setup-panel,
  .practice-panel,
  .completion-panel {
    padding: 14px;
  }

  .practice-panel .step-status {
    margin-bottom: 8px;
    padding: 6px 10px;
  }

  .practice-panel .section-heading.compact h2 {
    font-size: 24px;
  }

  .practice-panel .section-heading p {
    margin-top: 6px;
    line-height: 1.45;
  }

  .practice-tempo {
    margin: 12px 0;
    gap: 10px;
  }

  .cue-row {
    padding: 12px;
  }

  .chord-picker {
    grid-template-columns: repeat(4, 1fr);
    gap: 8px;
  }

  .chord-chip {
    min-height: 48px;
    font-size: 16px;
  }

  .practice-stage,
  .completion-summary,
  .site-footer {
    grid-template-columns: 1fr;
  }

  .practice-stage {
    gap: 8px;
  }

  .cue-row {
    grid-template-columns: 1fr;
  }

  .practice-links {
    grid-template-columns: 1fr;
  }

  .site-footer {
    display: grid;
  }

  .site-footer nav {
    justify-content: flex-start;
  }
}
