:root {
  --ink: #18211e;
  --muted: #66706c;
  --paper: #f4f1e9;
  --surface: #fffdf8;
  --green: #123e34;
  --green-2: #1a7659;
  --line: #d9d7cf;
  --gold: #b8843f;
  --radius: 18px;
  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--paper);
  font-family: ui-sans-serif, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 17px;
  line-height: 1.55;
}
img { display: block; max-width: 100%; }
a { color: inherit; }
.shell { width: min(calc(100% - 40px), var(--max)); margin-inline: auto; }

.site-header {
  width: min(calc(100% - 40px), var(--max));
  min-height: 78px;
  margin-inline: auto;
  display: flex;
  align-items: center;
  gap: 34px;
  border-bottom: 1px solid var(--line);
}
.wordmark { display: inline-flex; align-items: center; gap: 10px; font-weight: 750; text-decoration: none; white-space: nowrap; }
.mark { color: var(--green-2); font-size: 8px; letter-spacing: 1px; writing-mode: vertical-rl; line-height: .7; }
nav { margin-left: auto; display: flex; gap: 24px; }
nav a, .site-footer a { color: var(--muted); text-decoration: none; font-size: 15px; }
nav a:hover, .site-footer a:hover { color: var(--ink); }
.small-button, .primary-button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  border-radius: 999px;
  font-weight: 700;
  text-decoration: none;
}
.small-button { padding: 9px 15px; border: 1px solid var(--line); font-size: 14px; white-space: nowrap; }
.primary-button { padding: 13px 20px; color: white; background: var(--green); }
.primary-button:hover { background: #0d3129; }

.hero { min-height: 760px; display: grid; grid-template-columns: .9fr 1.1fr; align-items: center; gap: 70px; padding-block: 70px 90px; overflow: hidden; }
.eyebrow { margin: 0 0 14px; color: var(--green-2); font-size: 13px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
h1, h2, h3 { letter-spacing: -.035em; line-height: 1.08; }
h1 { max-width: 690px; margin: 0; font-family: ui-serif, Georgia, serif; font-size: clamp(48px, 6vw, 78px); font-weight: 600; }
.lede { max-width: 620px; margin: 28px 0; color: #4f5b57; font-size: clamp(19px, 2vw, 23px); }
.hero-actions { display: flex; align-items: center; gap: 22px; }
.text-link { font-weight: 700; text-underline-offset: 4px; }
.beta-note { max-width: 540px; margin-top: 24px; color: var(--muted); font-size: 14px; }
.hero-product { position: relative; min-height: 640px; }
.phone { position: absolute; margin: 0; overflow: hidden; border: 9px solid #171b19; border-radius: 48px; background: #fff; box-shadow: 0 30px 60px rgba(24, 33, 30, .18); }
.phone img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.phone-back { width: 300px; height: 620px; left: 0; top: 0; transform: rotate(-4deg); }
.phone-front { width: 320px; height: 650px; right: 0; top: 65px; transform: rotate(3deg); }

.proof-strip { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border-block: 1px solid var(--line); }
.proof-strip p { margin: 0; padding: 30px max(24px, calc((100vw - var(--max)) / 6)); background: var(--surface); font-size: 15px; }

.section { padding-block: 110px; }
.section-intro { max-width: 660px; margin-bottom: 55px; }
.section-intro.compact { margin-bottom: 30px; }
h2 { margin: 0 0 20px; font-family: ui-serif, Georgia, serif; font-size: clamp(38px, 5vw, 58px); font-weight: 600; }
.section-intro > p:last-child, .feature-copy > p { color: var(--muted); }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.steps article { min-height: 260px; padding: 26px; border-top: 3px solid var(--green); background: var(--surface); }
.step-number { color: var(--green-2); font: 750 13px/1 ui-monospace, monospace; }
.steps h3 { margin: 55px 0 12px; font-size: 25px; }
.steps p { color: var(--muted); font-size: 15px; }

.split { display: grid; grid-template-columns: .75fr 1.25fr; gap: 90px; align-items: center; }
.product-shot { max-width: 390px; height: 680px; overflow: hidden; border: 7px solid #1b211f; border-radius: 44px; background: white; box-shadow: 0 25px 55px rgba(24, 33, 30, .16); }
.product-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.feature-copy dl { margin: 35px 0 0; }
.feature-copy dl div { display: grid; grid-template-columns: 190px 1fr; gap: 30px; padding-block: 22px; border-top: 1px solid var(--line); }
.feature-copy dt { font-weight: 800; }
.feature-copy dd { margin: 0; color: var(--muted); }

.session-section { padding-block: 105px; color: white; background: var(--green); }
.session-grid { display: grid; grid-template-columns: .85fr 1.15fr; gap: 100px; }
.session-section h2 { max-width: 500px; }
.session-section p { color: #d7e6df; }
.session-section .light { color: #92c8b4; }

.tune-book-teaser { border-top: 1px solid var(--line); background: #ece8dc; }
.tune-book-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; align-items: center; }
.lede-small { max-width: 610px; margin: 0 0 30px; color: var(--muted); font-size: 19px; }
.edition-stack { border-top: 1px solid #c9c4b6; }
.edition-stack article { display: grid; grid-template-columns: 42px 1fr; gap: 22px; padding: 25px 0; border-bottom: 1px solid #c9c4b6; }
.edition-stack article > span { color: var(--green-2); font: 750 13px/1.8 ui-monospace, monospace; }
.edition-stack h3 { margin: 0 0 7px; font-size: 23px; }
.edition-stack p { margin: 0; color: var(--muted); font-size: 15px; }

.directory-hero { padding-block: 95px 80px; }
.directory-hero h1 { max-width: 820px; }
.directory-hero .lede { max-width: 780px; }
.library-principles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; margin-top: 48px; border: 1px solid var(--line); background: var(--line); }
.library-principles p { margin: 0; padding: 22px; background: var(--surface); color: var(--muted); font-size: 14px; }
.library-principles strong { display: block; margin-bottom: 5px; color: var(--ink); }
.directory-section { padding-block: 45px 120px; }
.directory-heading { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: end; }
.directory-heading h2 { margin-bottom: 0; }
.directory-heading > p { max-width: 570px; margin: 0 0 6px; color: var(--muted); }
.directory-tools { display: flex; align-items: end; justify-content: space-between; gap: 30px; margin-top: 45px; padding: 22px; border: 1px solid var(--line); background: var(--surface); }
.search-field { display: grid; gap: 7px; min-width: min(390px, 100%); color: var(--muted); font-size: 13px; font-weight: 750; }
.search-field input { min-height: 44px; padding: 9px 12px; border: 1px solid #c7c6bf; border-radius: 8px; color: var(--ink); background: white; font: inherit; font-size: 16px; }
.search-field input:focus { outline: 3px solid rgba(26, 118, 89, .2); border-color: var(--green-2); }
.filter-pills { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.filter-pill, .segmented-control button { min-height: 38px; padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; color: var(--ink); background: white; font: 700 14px/1 ui-sans-serif, sans-serif; cursor: pointer; }
.filter-pill.is-active, .segmented-control button.is-active { color: white; border-color: var(--green); background: var(--green); }
.directory-count { margin: 18px 0; color: var(--muted); font-size: 14px; }
.tune-directory { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.tune-card { min-height: 330px; padding: 25px; display: flex; flex-direction: column; border: 1px solid var(--line); background: var(--surface); }
.tune-card-ready { border-top: 4px solid var(--green-2); padding-top: 22px; }
.tune-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.status-badge { padding: 5px 8px; border-radius: 4px; color: #6b665d; background: #ece9e1; font: 750 11px/1 ui-sans-serif, sans-serif; text-transform: uppercase; letter-spacing: .05em; }
.status-preview { color: #0e503e; background: #dcece5; }
.tune-meter { color: var(--muted); font-size: 12px; }
.tune-card h3 { margin: 40px 0 12px; font: 600 28px/1.1 ui-serif, Georgia, serif; }
.tune-card p { margin: 0; color: var(--muted); font-size: 15px; }
.edition-list { display: flex; flex-wrap: wrap; gap: 6px; margin: 22px 0; padding: 0; list-style: none; }
.edition-list li { padding: 4px 7px; border: 1px solid var(--line); border-radius: 4px; font-size: 12px; }
.card-link { margin-top: auto; font-weight: 750; text-underline-offset: 4px; }
.pending-note { margin-top: auto !important; padding-top: 35px; font-size: 13px !important; font-style: italic; }
.empty-results { padding: 40px; border: 1px solid var(--line); background: var(--surface); color: var(--muted); text-align: center; }
.rights-section { padding-block: 95px; color: white; background: var(--green); }
.rights-grid { display: grid; grid-template-columns: .9fr 1.1fr; gap: 90px; }
.rights-grid p { color: #d7e6df; }
.rights-grid .light { color: #92c8b4; }

.score-intro { padding-block: 70px 45px; }
.score-intro h1 { font-size: clamp(48px, 7vw, 76px); }
.score-intro .lede { margin-bottom: 22px; }
.preview-note { max-width: 850px; padding: 16px 18px; border-left: 3px solid var(--gold); background: #ece8dc; color: #57554f; font-size: 14px; }
.score-jump { display: inline-block; margin-top: 20px; }
.score-toolbar { position: sticky; top: 0; z-index: 5; border-block: 1px solid var(--line); background: rgba(255, 253, 248, .96); backdrop-filter: blur(12px); }
.score-toolbar-inner { min-height: 102px; display: flex; align-items: center; gap: 35px; }
.score-toolbar fieldset { margin: 0; padding: 0; border: 0; }
.score-toolbar legend { margin-bottom: 7px; color: var(--muted); font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.segmented-control { display: flex; gap: 5px; }
.print-button { min-height: 46px; margin-left: auto; padding: 10px 18px; border: 0; border-radius: 8px; color: white; background: var(--green); font: 750 15px/1 ui-sans-serif, sans-serif; cursor: pointer; }
.print-sheet { width: min(calc(100% - 40px), 1040px); margin: 55px auto 100px; padding: 55px; scroll-margin-top: 125px; background: white; box-shadow: 0 18px 48px rgba(24, 33, 30, .1); }
.print-sheet-header { display: grid; grid-template-columns: 1fr auto; gap: 35px; align-items: start; padding-bottom: 24px; border-bottom: 2px solid var(--ink); }
.print-brand { margin: 0 0 10px; color: var(--green-2); font-size: 11px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.print-sheet-header h2 { margin: 0; font-size: 42px; }
.edition-title { margin: 7px 0 0; color: var(--muted); font-size: 18px; }
.print-sheet-header dl { display: grid; grid-template-columns: repeat(2, auto); gap: 12px 28px; margin: 4px 0 0; }
.print-sheet-header dl div { display: grid; gap: 2px; }
.print-sheet-header dt { color: var(--muted); font-size: 10px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; }
.print-sheet-header dd { margin: 0; font-size: 13px; font-weight: 750; }
.edition-note { margin: 25px 0 10px; padding: 14px 16px; background: #f3f0e8; color: #4f5754; font-size: 14px; }
.notation-block { padding-block: 28px; border-bottom: 1px solid var(--line); }
.notation-heading { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.notation-heading h2, .playing-notes h2 { margin: 0; font: 750 20px/1.2 ui-sans-serif, sans-serif; letter-spacing: -.015em; }
.notation-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.score-svg { width: 100%; height: auto; margin-top: 12px; overflow: visible; }
.score-svg .staff-lines path, .score-svg .bar-lines path, .score-svg .quarter path, .score-svg .half path, .score-svg .eighth path { fill: none; stroke: var(--ink); stroke-width: 2; }
.score-svg .quarter ellipse, .score-svg .eighth ellipse { fill: var(--ink); }
.score-svg .half ellipse { fill: white; stroke: var(--ink); stroke-width: 2; }
.score-svg .clef { font: 58px/1 "Times New Roman", serif; }
.score-svg .key-signature { font: 700 22px/1 Georgia, serif; }
.score-svg .time { font: 700 21px/1 Georgia, serif; }
.score-svg .note-labels { font: 700 13px/1 ui-sans-serif, sans-serif; fill: #525c58; }
.score-svg .ornament { font: italic 11px/1 ui-serif, Georgia, serif; fill: var(--green-2); }
.fingering-legend { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; margin: 22px 0; }
.fingering-card { display: grid; grid-template-columns: 28px 1fr; gap: 8px; align-items: center; padding: 13px; border: 1px solid var(--line); }
.fingering-card span { word-spacing: 5px; font-size: 17px; }
.tab-score { display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); }
.tab-score > div { position: relative; min-height: 90px; display: flex; justify-content: center; align-items: center; gap: 13px; padding: 28px 9px 12px; border-right: 1px solid var(--line); }
.tab-score > div:last-child { border-right: 0; }
.tab-score .bar-number { position: absolute; top: 7px; left: 9px; color: var(--muted); font-size: 10px; }
.tab-score b { font-size: 18px; }
.tab-score .busy { gap: 6px; }
.tab-score .busy b { font-size: 14px; }
.tab-score sup { display: block; color: var(--green-2); font-size: 8px; font-weight: 600; }
.playing-notes { padding-block: 28px; }
.playing-notes ul { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 0; list-style-position: inside; }
.playing-notes li { color: #4f5754; font-size: 13px; }
.print-rights { margin-top: 10px; padding-top: 18px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.print-rights p { margin: 5px 0; }
body[data-score-layout="staff"] .fingering-notation,
body[data-score-layout="fingering"] .staff-notation { display: none; }

.faq-list { border-top: 1px solid var(--line); }
details { border-bottom: 1px solid var(--line); }
summary { padding: 24px 40px 24px 0; font-size: 20px; font-weight: 750; cursor: pointer; }
details p { max-width: 780px; margin: -6px 0 26px; color: var(--muted); }
.closing { padding-block: 40px 120px; text-align: center; }
.closing h2 { max-width: 850px; margin-inline: auto; }
.closing .primary-button { margin-top: 12px; }

.site-footer { min-height: 100px; display: flex; align-items: center; justify-content: space-between; gap: 20px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.site-footer div { display: flex; gap: 20px; }
.legal { max-width: 820px; padding-block: 90px 130px; }
.legal h1 { font-size: clamp(42px, 6vw, 64px); }
.legal h2 { margin-top: 55px; font: 700 28px/1.2 ui-sans-serif, sans-serif; }
.legal p { color: #4f5b57; }
.legal .updated { color: var(--muted); font-size: 14px; }

@media (max-width: 900px) {
  nav { display: none; }
  .small-button { margin-left: auto; }
  .hero { grid-template-columns: 1fr; gap: 40px; padding-top: 70px; }
  .hero-product { min-height: 610px; width: min(100%, 570px); margin-inline: auto; }
  .phone-back { width: 270px; height: 560px; }
  .phone-front { width: 286px; height: 590px; }
  .proof-strip, .steps { grid-template-columns: 1fr; }
  .proof-strip p { padding-inline: 24px; }
  .split, .session-grid, .tune-book-grid, .directory-heading, .rights-grid { grid-template-columns: 1fr; gap: 50px; }
  .product-shot { margin-inline: auto; }
  .library-principles, .tune-directory { grid-template-columns: 1fr 1fr; }
  .directory-tools { align-items: stretch; flex-direction: column; }
  .filter-pills { justify-content: flex-start; }
  .score-toolbar-inner { align-items: stretch; flex-wrap: wrap; padding-block: 18px; }
  .print-button { margin-left: 0; }
  .print-sheet { padding: 35px; }
}

@media (max-width: 560px) {
  body { font-size: 16px; }
  .site-header { min-height: 68px; }
  .site-header .small-button { display: none; }
  .hero { min-height: 0; padding-block: 55px 70px; }
  .hero-actions { align-items: flex-start; flex-direction: column; }
  .hero-product { min-height: 470px; }
  .phone { border-width: 6px; border-radius: 35px; }
  .phone-back { width: 205px; height: 430px; }
  .phone-front { width: 215px; height: 450px; top: 35px; }
  .section { padding-block: 80px; }
  .feature-copy dl div { grid-template-columns: 1fr; gap: 8px; }
  .product-shot { height: 580px; }
  .library-principles, .tune-directory { grid-template-columns: 1fr; }
  .directory-hero { padding-top: 65px; }
  .segmented-control { flex-wrap: wrap; }
  .score-toolbar { position: static; }
  .score-toolbar-inner { gap: 20px; }
  .print-sheet { width: 100%; margin-top: 25px; padding: 24px 18px; box-shadow: none; }
  .print-sheet-header { grid-template-columns: 1fr; }
  .fingering-legend, .playing-notes ul { grid-template-columns: 1fr; }
  .tab-score { grid-template-columns: 1fr 1fr; }
  .tab-score > div:nth-child(2) { border-right: 0; }
  .tab-score > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

@media print {
  @page { size: letter portrait; margin: 0.45in; }
  body { color: #111; background: white; font-size: 12pt; }
  .no-print, .score-page > .site-header { display: none !important; }
  .print-sheet { width: auto; margin: 0; padding: 0; box-shadow: none; }
  .print-sheet-header h2 { font-size: 30pt; }
  .edition-note { border: 1px solid #bbb; background: white; }
  .notation-block { break-inside: avoid; }
  .score-svg { max-height: 2.25in; }
  .print-rights { font-size: 7pt; }
  a { text-decoration: none; }
}
