/* ScoreMIX landing page. Brand: E:\Projects\mix-suite\MIX_SUITE.md, as the
   app applies it (IMPLEMENTATION_NOTES.md "Visual identity"): navy ink on
   paper, navy header, Fraunces headings, Inter body, JetBrains Mono for
   music, gold only as a rare signal, chord red only on the sheet. */

/* Fonts, self-hosted (no requests to Google). Latin + latin-ext for Romanian. */
@font-face { font-family: 'Fraunces'; font-weight: 600; font-display: swap; src: url(/fonts/fraunces-600-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-weight: 600; font-display: swap; src: url(/fonts/fraunces-600-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Fraunces'; font-weight: 700; font-display: swap; src: url(/fonts/fraunces-700-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Fraunces'; font-weight: 700; font-display: swap; src: url(/fonts/fraunces-700-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Inter'; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Inter'; font-weight: 400 800; font-display: swap; src: url(/fonts/inter-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500 700; font-display: swap; src: url(/fonts/jetbrainsmono-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'JetBrains Mono'; font-weight: 500 700; font-display: swap; src: url(/fonts/jetbrainsmono-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: 'Montserrat'; font-weight: 900; font-display: swap; src: url(/fonts/montserrat-latin.woff2) format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Montserrat'; font-weight: 900; font-display: swap; src: url(/fonts/montserrat-latin-ext.woff2) format('woff2'); unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }

:root {
  /* Suite (brand/tokens.css) */
  --mix-navy: #002147;
  --mix-navy-rgb: 0, 33, 71;
  --mix-gold: #f5a623;
  --mix-gold-rgb: 245, 166, 35;
  --mix-gold-on-light: #c98a14;
  --mix-paper: #faf9f6;
  --mix-cream: #fdfcfa;
  --sm-radius-sm: 8px;
  --sm-radius-md: 12px;
  --sm-radius-lg: 16px;
  --sm-radius-xl: 20px;
  --sm-radius-pill: 999px;

  /* ScoreMIX surfaces (app.scss) */
  --bg: var(--mix-paper);
  --bg-alt: #f3f1ea;
  --surface: #ffffff;
  --line: #e6e2d8;
  --ink: #1f2a37;
  --ink-2: #3b4654;
  --muted: #6b6558;
  --navy-shade: #001a38;
  --navy-tint: #3a5a80;
  --chord: #d32f2f;

  --font-head: 'Fraunces', Georgia, serif;
  --font-body: 'Inter', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', ui-monospace, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: var(--mix-navy); text-underline-offset: 2px; }
h1, h2, h3 { font-family: var(--font-head); line-height: 1.15; margin: 0 0 0.6em; color: var(--mix-navy); }
h1 { font-size: clamp(2.4rem, 6vw, 3.8rem); font-weight: 700; letter-spacing: -0.015em; }
h2 { font-size: clamp(1.6rem, 3.4vw, 2.2rem); font-weight: 700; letter-spacing: -0.01em; }
h3 { font-size: 1.3rem; font-weight: 600; }
p { margin: 0 0 1em; }
.muted { color: var(--muted); }
.center { text-align: center; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--mix-navy); color: #fff; padding: 8px 12px; border-radius: var(--sm-radius-sm); z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--mix-gold-on-light); outline-offset: 3px; }

.wrap { width: 100%; max-width: 1120px; margin: 0 auto; padding: 0 16px; }
@media (min-width: 700px) { .wrap { padding: 0 32px; } }
.narrow { max-width: 760px; }

/* Header: navy, as in the app */
.topbar { background: var(--mix-navy); position: sticky; top: 0; z-index: 5; }
.topbar-inner { height: 64px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.wordmark { position: relative; display: inline-flex; align-items: baseline; padding-bottom: 10px; line-height: 1; }
.wm-score { font-family: var(--font-head); font-weight: 700; font-size: 23px; letter-spacing: -0.01em; color: var(--mix-cream); }
/* MIX sits slightly smaller than the serif so the two optically match. */
.wm-mix { font-family: 'Montserrat', sans-serif; font-weight: 900; font-size: 20px; letter-spacing: 0.02em; color: var(--mix-gold); }
.mix-staff-lines { position: absolute; left: 0; right: 0; bottom: 0; display: flex; flex-direction: column; gap: 3px; }
.mix-staff-lines::before, .mix-staff-lines::after { content: ''; display: block; }
.mix-staff-lines::before { height: 2px; background: linear-gradient(90deg, transparent 0%, var(--mix-gold) 20%, var(--mix-gold) 80%, transparent 100%); }
.mix-staff-lines::after { height: 1px; background: linear-gradient(90deg, transparent 0%, rgba(var(--mix-gold-rgb), 0.5) 25%, rgba(var(--mix-gold-rgb), 0.5) 75%, transparent 100%); }

/* Buttons and form */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--sm-radius-md);
  background: var(--mix-navy); color: #fff;
  font: 700 16px/1 var(--font-body); text-decoration: none; cursor: pointer;
  transition: transform 0.15s ease, background 0.15s ease;
}
.btn:hover { background: var(--navy-shade); }
.btn:active { transform: translateY(1px); }
.btn-small { min-height: 44px; padding: 0 16px; font-size: 15px; }
.btn-light { background: var(--mix-cream); color: var(--mix-navy); }
.btn-light:hover { background: #fff; }
.notify { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; max-width: 520px; }
.notify input[type="email"] {
  flex: 1 1 240px; min-height: 52px; padding: 0 16px;
  background: var(--surface); color: var(--ink);
  border: 1px solid #cfc9bb; border-radius: var(--sm-radius-md);
  font: 400 16px var(--font-body);
}
.notify input[type="email"]::placeholder { color: #8d8778; }
.notify input[type="email"]:focus { border-color: var(--mix-navy); outline: none; box-shadow: 0 0 0 3px rgba(var(--mix-navy-rgb), 0.15); }
.consent { flex-basis: 100%; display: flex; gap: 10px; align-items: flex-start; font-size: 14px; line-height: 1.5; color: var(--muted); cursor: pointer; text-align: left; }
.consent input { flex-shrink: 0; width: 18px; height: 18px; margin: 1px 0 0; accent-color: var(--mix-navy); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { flex-basis: 100%; margin: 0; font-size: 15px; font-weight: 600; color: var(--ink); }
.form-msg:empty { display: none; }
.notify.sent > :not(.form-msg) { display: none; }
.notify.sent .form-msg { padding: 18px 20px; border: 1px solid var(--mix-navy); border-radius: var(--sm-radius-md); background: var(--surface); font-size: 16px; font-weight: 400; line-height: 1.55; color: var(--ink-2); text-align: left; }
.notify.sent .form-msg strong { display: block; margin-bottom: 4px; font: 700 20px var(--font-head); color: var(--mix-navy); }
.notify-center { margin-left: auto; margin-right: auto; justify-content: center; }
.offer { margin: 24px 0 0; max-width: 520px; font-size: 15px; line-height: 1.55; color: var(--ink-2); }
.offer strong { color: var(--mix-navy); }
.offer + .notify { margin-top: 14px; }
.cta .offer { margin-left: auto; margin-right: auto; }

/* Hero: ruled paper, the suite's staff lines in ScoreMIX's colors */
.hero {
  padding: 56px 0 72px;
  background:
    radial-gradient(ellipse 55% 70% at 85% 35%, rgba(var(--mix-gold-rgb), 0.10), transparent 70%),
    repeating-linear-gradient(180deg, transparent 0 28px, rgba(var(--mix-navy-rgb), 0.045) 28px 29px),
    var(--bg);
}
.hero-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 960px) { .hero-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr); } .hero { padding: 88px 0 104px; } }
.eyebrow, .mono-eyebrow { font-family: var(--font-mono); font-weight: 500; text-transform: uppercase; letter-spacing: 3px; font-size: 12px; color: var(--mix-gold-on-light); margin: 0 0 16px; }
@media (max-width: 520px) { .hero .eyebrow { letter-spacing: 1.5px; font-size: 11px; } }
.lead { font-size: 1.2rem; color: var(--ink-2); max-width: 34em; }

/* Lead sheet mock */
.mock {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--sm-radius-xl); padding: 20px; box-shadow: 0 24px 60px rgba(var(--mix-navy-rgb), 0.12);
}
.mock-bar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.mock-bar .mono-eyebrow { margin: 0; }
.keys { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: var(--sm-radius-md); background: var(--bg); }
.keys button {
  min-width: 52px; min-height: 44px; padding: 4px 14px; border: 0; border-radius: var(--sm-radius-sm);
  background: transparent; color: var(--ink-2); cursor: pointer;
  font: 700 17px/1.1 var(--font-mono); display: inline-flex; flex-direction: column; align-items: center; justify-content: center;
}
.keys button small { font: 500 10px var(--font-body); letter-spacing: 0.04em; color: var(--muted); }
.keys button[aria-pressed="true"] { background: var(--mix-navy); color: #fff; }
.keys button[aria-pressed="true"] small { color: rgba(255, 255, 255, 0.75); }
.sheet { padding: 18px 6px 4px; font-family: var(--font-mono); }
.sheet-title { margin: 0; font: 700 1.5rem/1.2 var(--font-head); color: var(--ink); }
.sheet-meta { margin: 4px 0 18px; font-size: 13px; color: var(--muted); }
.sheet-label { display: inline-block; margin: 0 0 4px; padding: 1px 6px; border: 1px solid var(--ink); border-radius: 4px; font-size: 13px; font-weight: 700; }
/* The intro's notation, drawn once per key by tools/make-intro.mjs */
.snippet-box { margin: 2px 0 14px; }
.snippet { display: block; width: 100%; max-width: 420px; height: auto; }
.snippet[hidden] { display: none; }
/* A lyric line with its chords above: each <i> marks the syllable a chord
   sits on, and draws the chord from data-t. */
.ln { margin: 0; padding-top: 1.35em; font-size: clamp(13px, 1.9vw, 16px); line-height: 1.5; color: var(--ink); white-space: nowrap; }
.ln i { position: relative; font-style: normal; }
.ln i::before { content: attr(data-t); position: absolute; left: 0; bottom: 1.25em; font-weight: 700; color: var(--chord); white-space: nowrap; }
@media (max-width: 420px) { .ln { font-size: 12px; } .mock { padding: 16px 12px; } }

/* Sections */
.section { padding: 72px 0; }
.section-alt { background: var(--bg-alt); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section p { color: var(--ink-2); }
.emph { font-size: 1.15rem; color: var(--mix-navy) !important; font-weight: 600; }

/* Features */
.features { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 760px) { .features { grid-template-columns: 1fr 1fr; } }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--sm-radius-xl); padding: 24px; display: grid; gap: 12px; align-content: start; }
.feature h3 { margin: 6px 0 0; }
.feature p { margin: 0; }
.feature-visual { background: var(--bg); border: 1px solid var(--line); border-radius: 14px; padding: 18px; min-height: 150px; display: flex; flex-direction: column; justify-content: center; gap: 12px; }
.pills { display: flex; gap: 8px; flex-wrap: wrap; }
.pills span { min-width: 48px; height: 44px; padding: 0 12px; display: inline-flex; align-items: center; justify-content: center; border-radius: var(--sm-radius-md); border: 1px solid #cfc9bb; background: var(--surface); font: 700 17px var(--font-mono); color: var(--ink-2); }
.pills .on { background: var(--mix-navy); border-color: var(--mix-navy); color: #fff; }
@media (max-width: 520px) { .pills { gap: 6px; } .pills span { min-width: 40px; padding: 0 8px; } }
.capo { margin: 0; font: 500 14px var(--font-mono); color: var(--muted) !important; }
.capo b { color: var(--chord); }
/* A4 page sketch: grey lyric bars under red chord marks */
.a4 { width: 112px; aspect-ratio: 210 / 297; margin: 0 auto; background: var(--surface); border: 1px solid #d9d4c7; border-radius: 3px; padding: 10px 10px; display: flex; flex-direction: column; gap: 3px; box-shadow: 0 6px 16px rgba(var(--mix-navy-rgb), 0.08); }
.a4 i, .tablet-page i { display: block; height: 4px; border-radius: 2px; }
.a4-title { width: 60%; height: 7px !important; background: var(--ink); margin-bottom: 6px; }
.a4-label { width: 22%; background: none; border: 1px solid var(--ink); height: 6px !important; margin-top: 4px; }
.a4-chords { width: 70%; background: repeating-linear-gradient(90deg, var(--chord) 0 6px, transparent 6px 20px); }
.a4-line { width: 92%; background: #c9c3b5; margin-bottom: 3px; }
.a4-line.short { width: 64%; }
.set { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; counter-reset: set; }
.set li { counter-increment: set; display: grid; grid-template-columns: 1.6em 1fr auto; gap: 0 10px; align-items: baseline; padding: 8px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--sm-radius-sm); font-size: 15px; }
.set li::before { content: counter(set); font: 600 13px var(--font-mono); color: var(--muted); }
.set span { font-weight: 600; color: var(--ink); }
.set b { font: 700 15px var(--font-mono); color: var(--mix-navy); }
.set em { grid-column: 2 / -1; font-size: 13px; color: var(--muted); }
.tablet { width: 190px; margin: 0 auto; padding: 10px; border-radius: 14px; background: #1b1f27; }
.tablet-page { position: relative; height: 104px; padding: 12px; border-radius: 6px; background: #10141b; display: flex; flex-direction: column; gap: 4px; }
.tablet-page .a4-chords { background: repeating-linear-gradient(90deg, #ff7a6e 0 8px, transparent 8px 24px); }
.tablet-page .a4-line { background: #5c6472; }
.tablet-count { position: absolute; right: 8px; bottom: 6px; font: 500 10px var(--font-mono); color: #8a93a3; }
.pedal { margin: 0; text-align: center; font: 500 13px var(--font-mono); color: var(--muted) !important; }
.pedal span { color: var(--mix-navy); }

/* Lists with check marks */
.checks { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.checks li { position: relative; padding-left: 36px; color: var(--ink-2); font-size: 1.08rem; }
.checks li strong { color: var(--ink); }
.checks li::before {
  content: ''; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 999px;
  background: rgba(0, 33, 71, 0.08) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23002147' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center / 14px no-repeat;
}

/* Prices */
.plans { display: grid; gap: 16px; max-width: 760px; margin: 32px auto 20px; }
@media (min-width: 700px) { .plans { grid-template-columns: 1fr 1fr; } }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: var(--sm-radius-xl); padding: 26px; }
.plan h3 { margin: 0 0 8px; font-size: 1.15rem; }
.plan p:last-child { margin-bottom: 0; }
.plan-pro { border: 2px solid var(--mix-navy); }
.price { margin: 0 0 4px; font: 700 2.4rem/1.1 var(--font-head); color: var(--mix-navy) !important; }
.price span { font: 500 1rem var(--font-body); color: var(--muted); }
.price-alt { margin: 0 0 14px; font-weight: 600; color: var(--ink) !important; }
.save { margin-left: 6px; padding: 2px 8px; border-radius: var(--sm-radius-pill); background: rgba(var(--mix-gold-rgb), 0.18); color: #8a5d00; font-size: 13px; font-weight: 600; }
.plan:not(.plan-pro) .price { margin-bottom: 14px; }

/* FAQ */
.faq { display: grid; gap: 10px; margin-top: 24px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: var(--sm-radius-lg); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 52px 18px 20px; font-weight: 600; position: relative; min-height: 44px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font: 500 22px var(--font-mono); color: var(--mix-navy); }
.faq details[open] summary::after { content: '−'; }
.faq details p { margin: 0; padding: 0 20px 18px; }

/* Final CTA */
.cta { background: radial-gradient(ellipse 50% 80% at 50% 100%, rgba(var(--mix-gold-rgb), 0.12), transparent 70%), var(--bg); border-top: 1px solid var(--line); }

/* Footer */
.footer { background: var(--mix-navy); padding: 28px 0; font-size: 14px; color: rgba(255, 255, 255, 0.75); }
.footer-inner { display: flex; flex-wrap: wrap; gap: 12px 24px; justify-content: space-between; }
.footer a { color: rgba(255, 255, 255, 0.75); }
.footer a:hover { color: #fff; }
.footer-links { display: flex; flex-wrap: wrap; gap: 12px 24px; }

/* Simple pages (privacy, terms) */
.page { padding: 64px 0 88px; min-height: calc(100vh - 64px - 86px); }
.page h1 { font-size: clamp(2rem, 5vw, 2.8rem); }
.page h2 { font-size: 1.3rem; margin-top: 2em; }
.page p, .page li { color: var(--ink-2); }
.page ul { padding-left: 1.2em; }
.page li { margin-bottom: 0.4em; }
.page .updated { font-size: 14px; color: var(--muted); }
.confirmed { text-align: center; }
.confirmed img { margin: 0 auto 24px; }
.page strong { color: var(--ink); }
/* Facts still to fill in; none may be left when the page goes live. */
mark.todo { background: #ffe9a8; color: var(--ink); padding: 0 4px; border-radius: 4px; }

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