/* =========================================================
   Airdrie Piano Studio — styles
   Palette pulled from the logo
   ========================================================= */
:root {
  --cream: #FBF6F1;
  --ivory: #FFFDFB;
  --blush: #F4E1D9;
  --blush-deep: #E9C6B8;
  --cocoa: #6B4A3B;
  --cocoa-dark: #4A3228;
  --cocoa-ink: #3A2820;
  --gold: #B8915F;
  --gold-light: #DCC29A;
  --text: #4A3A33;
  --muted: #7E6A60;

  --serif: "Cormorant Garamond", Georgia, serif;
  --script: "Pinyon Script", "Brush Script MT", cursive;
  --sans: "Jost", system-ui, -apple-system, "Segoe UI", sans-serif;

  --radius: 18px;
  --shadow: 0 18px 40px -18px rgba(74, 50, 40, .35);
  --shadow-soft: 0 8px 24px -12px rgba(74, 50, 40, .25);
  --max: 1160px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--cocoa); }
h1, h2, h3 { font-family: var(--serif); color: var(--cocoa-dark); line-height: 1.12; margin: 0 0 .5em; font-weight: 600; }
h1 { font-size: clamp(2.5rem, 5.4vw, 4.2rem); letter-spacing: -.01em; }
h1 em { font-style: italic; color: var(--gold); font-weight: 500; }
h2 { font-size: clamp(2rem, 3.8vw, 3rem); }
h3 { font-size: 1.6rem; }
p { margin: 0 0 1em; }
kbd { font-family: var(--sans); font-size: .85em; background: var(--ivory); border: 1px solid var(--blush-deep); border-bottom-width: 2px; border-radius: 6px; padding: 0 .4em; }

.container { width: min(100% - 2.5rem, var(--max)); margin-inline: auto; }
.container--narrow { max-width: 820px; }
.section { padding: clamp(4.5rem, 9vw, 7.5rem) 0; position: relative; }
.section--blush { background: var(--blush); }
.section--cocoa { background: var(--cocoa-dark); color: #F3E6DD; }
.section--cocoa h2, .section--cocoa h3 { color: var(--ivory); }
.section__head { text-align: center; max-width: 680px; margin: 0 auto 3rem; }
.section__head p:last-child { color: var(--muted); }
.section--cocoa .section__head p:last-child { color: #D9C6BA; }

.eyebrow {
  font-family: var(--sans); text-transform: uppercase; letter-spacing: .28em;
  font-size: .78rem; font-weight: 500; color: var(--gold); margin-bottom: 1rem;
  display: inline-flex; align-items: center; gap: .8rem;
}
.eyebrow::before, .eyebrow::after { content: ""; width: 28px; height: 1px; background: currentColor; opacity: .7; }
.hero .eyebrow::before { display: none; }
.eyebrow--light { color: var(--gold-light); }
.script { font-family: var(--script); font-size: 2.6rem; line-height: 1; color: var(--gold); margin: 0 0 .3rem; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 34em; }
.placeholder { background: rgba(184, 145, 95, .18); outline: 1px dashed var(--gold); border-radius: 4px; padding: 0 .25em; }

.skip-link { position: absolute; left: -999px; top: 0; background: var(--cocoa); color: #fff; padding: .6rem 1rem; z-index: 100; }
.skip-link:focus { left: 1rem; top: 1rem; }

/* ---------- Buttons ---------- */
.btn {
  --bg: var(--cocoa);
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  font-family: var(--sans); font-weight: 500; font-size: 1rem; letter-spacing: .02em;
  background: var(--bg); color: var(--ivory); border: 1.5px solid var(--bg);
  padding: .95rem 1.7rem; border-radius: 999px; text-decoration: none; cursor: pointer;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s;
  box-shadow: var(--shadow-soft);
}
.btn:hover { transform: translateY(-2px); box-shadow: var(--shadow); background: var(--cocoa-dark); border-color: var(--cocoa-dark); }
.btn:focus-visible, .option:focus-visible, .chip:focus-visible, .key:focus-visible { outline: 3px solid var(--gold); outline-offset: 3px; }
.btn--ghost { background: transparent; color: var(--cocoa); box-shadow: none; border-color: var(--blush-deep); }
.btn--ghost:hover { background: var(--ivory); color: var(--cocoa-dark); border-color: var(--gold); }
.btn--small { padding: .6rem 1.15rem; font-size: .92rem; }
.btn--light { --bg: var(--gold); color: var(--cocoa-ink); }
.btn--light:hover { background: var(--gold-light); border-color: var(--gold-light); color: var(--cocoa-ink); }
.btn--block { width: 100%; }
.link { color: var(--gold); font-weight: 500; text-decoration: none; }
.link:hover { text-decoration: underline; }

/* ---------- Nav ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: rgba(251, 246, 241, .86); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .3s, box-shadow .3s;
}
.nav.is-scrolled { border-color: var(--blush); box-shadow: 0 6px 20px -16px rgba(74,50,40,.5); }
.nav__inner { width: min(100% - 2.5rem, var(--max)); margin: 0 auto; display: flex; align-items: center; justify-content: space-between; height: 74px; }
.brand { display: flex; align-items: center; gap: .7rem; text-decoration: none; }
.brand__text { display: flex; flex-direction: column; line-height: 1; }
.brand__script { font-family: var(--script); font-size: 1.75rem; color: var(--cocoa); }
.brand__caps { font-family: var(--serif); font-weight: 600; letter-spacing: .32em; font-size: .68rem; color: var(--gold); margin-top: .1rem; }
.nav__links { display: flex; align-items: center; gap: 1.6rem; }
.nav__links a:not(.btn) { text-decoration: none; color: var(--text); font-size: .95rem; position: relative; }
.nav__links a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -4px; height: 1.5px; background: var(--gold); transform: scaleX(0); transition: transform .25s; }
.nav__links a:not(.btn):hover::after { transform: scaleX(1); }
.nav__toggle { display: none; background: none; border: 0; width: 44px; height: 44px; cursor: pointer; padding: 10px; }
.nav__toggle span { display: block; height: 2px; background: var(--cocoa); margin: 5px 0; border-radius: 2px; transition: transform .3s, opacity .3s; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(3rem, 7vw, 6rem) 0 clamp(3.5rem, 7vw, 6rem); background: radial-gradient(ellipse at 85% 30%, var(--blush) 0%, transparent 55%), var(--cream); }
.hero__grid { display: grid; grid-template-columns: 1.15fr .85fr; gap: 3rem; align-items: center; position: relative; z-index: 1; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .9rem; margin: 2rem 0 1.6rem; }
.hero__logo { background: #fff; border-radius: 32px; padding: clamp(1rem, 3vw, 2rem); box-shadow: var(--shadow); border: 1px solid var(--blush); }
.hero__logo img { width: 100%; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-10px); } }
.hero__notes { position: absolute; inset: 0; pointer-events: none; }
.float-note { position: absolute; color: var(--gold); opacity: 0; font-size: 1.4rem; animation: drift linear forwards; }
@keyframes drift {
  0% { opacity: 0; transform: translateY(0) rotate(0); }
  15% { opacity: .55; }
  100% { opacity: 0; transform: translateY(-260px) rotate(25deg); }
}
.spots-pill { display: inline-flex; align-items: center; gap: .6rem; font-size: .92rem; color: var(--cocoa); background: var(--ivory); border: 1px solid var(--blush-deep); padding: .45rem 1rem; border-radius: 999px; text-decoration: none; }
.spots-pill__dot { width: 9px; height: 9px; border-radius: 50%; background: #7DAA7A; box-shadow: 0 0 0 0 rgba(125,170,122,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 9px rgba(125,170,122,0); } 100% { box-shadow: 0 0 0 0 rgba(125,170,122,0); } }

/* ---------- Stats ---------- */
.stats { background: var(--ivory); border-block: 1px solid var(--blush); padding: 2.4rem 0; }
.stats__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; text-align: center; }
.stat__num { display: block; font-family: var(--serif); font-weight: 600; font-size: clamp(2.1rem, 4vw, 3rem); color: var(--cocoa); line-height: 1.1; }
.stat__label { font-size: .88rem; letter-spacing: .06em; color: var(--muted); text-transform: uppercase; }

/* ---------- Piano ---------- */
.piano-card { background: var(--ivory); border-radius: 26px; padding: clamp(1.2rem, 3vw, 2rem); box-shadow: var(--shadow); border: 1px solid var(--blush); }
.piano-card__bar { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; align-items: center; margin-bottom: 1.2rem; }
.song-picker, .piano-card__actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { font-family: var(--sans); font-size: .9rem; border: 1px solid var(--blush-deep); background: transparent; color: var(--cocoa); padding: .45rem .95rem; border-radius: 999px; cursor: pointer; transition: all .2s; }
.chip:hover { border-color: var(--gold); }
.chip.is-active { background: var(--blush); border-color: var(--gold); color: var(--cocoa-dark); }
.piano-status { display: grid; grid-template-columns: auto 1fr; align-items: center; gap: .3rem 1rem; margin-bottom: 1rem; min-height: 3.6rem; }
.piano-status__note { font-family: var(--serif); font-size: 2.4rem; font-weight: 600; color: var(--gold); min-width: 2.6ch; text-align: center; grid-row: span 2; }
.piano-status__msg { color: var(--muted); }
.progress { height: 6px; border-radius: 6px; background: var(--blush); overflow: hidden; }
.progress__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-light), var(--gold)); transition: width .3s ease; }

/* sheet music */
.score { background: #fff; border: 1px solid var(--blush); border-radius: 14px; padding: .3rem .8rem .1rem; margin-bottom: 1rem; overflow-x: auto; }
.score svg { display: block; width: 100%; min-width: 520px; height: auto; max-height: 170px; }
.score__line, .score__bar, .score__ledger { stroke: #8a7469; stroke-width: 1; }
.score__stem { stroke: var(--cocoa-dark); stroke-width: 1.4; }
.score__head, .score__flag { fill: var(--cocoa-dark); }
.score__head--open { fill: #fff; stroke: var(--cocoa-dark); stroke-width: 1.7; }
.score__clef { font-family: "Noto Music", serif; font-size: 58px; fill: var(--cocoa-dark); }
.score__time { font: 700 22px var(--serif); fill: var(--cocoa-dark); text-anchor: middle; }
.score__name { font: 500 11px var(--sans); fill: var(--muted); text-anchor: middle; }
.score__note { transition: opacity .2s; }
.score__note.is-done { opacity: .4; }
.score__note.is-current .score__head, .score__note.is-current .score__flag { fill: var(--gold); }
.score__note.is-current .score__head--open { fill: #fff; stroke: var(--gold); }
.score__note.is-current .score__stem { stroke: var(--gold); }
.score__note.is-current .score__name { fill: var(--gold); font-weight: 700; font-size: 13px; }

.piano-wrap { overflow-x: auto; padding-bottom: .5rem; -webkit-overflow-scrolling: touch; }
.piano {
  --white-w: calc(100% / 15);
  position: relative; display: flex; min-width: 620px; height: 230px;
  background: linear-gradient(var(--cocoa-dark), var(--cocoa-ink)); padding: 14px 14px 18px; border-radius: 16px;
  box-shadow: inset 0 -6px 0 rgba(0,0,0,.25), 0 14px 30px -12px rgba(58,40,32,.6);
  user-select: none; -webkit-user-select: none; touch-action: none;
}
.piano::before { content: ""; position: absolute; left: 14px; right: 14px; top: 14px; height: 6px; background: #9c2f2f; opacity: .55; border-radius: 2px; z-index: 3; }
.key { border: 0; cursor: pointer; position: relative; padding: 0; font-family: var(--sans); -webkit-tap-highlight-color: transparent; }
.key--white {
  flex: 1; background: linear-gradient(#fff 0%, #fbf7f3 80%, #efe6df 100%); border-radius: 0 0 8px 8px; margin: 0 1.5px;
  box-shadow: inset 0 -5px 0 #e4d8cf, 0 2px 2px rgba(0,0,0,.25);
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 2px; padding-bottom: 10px; color: #b9a89e; font-size: .72rem;
  transition: background .08s, box-shadow .08s, transform .08s;
}
.key--black {
  position: absolute; top: 14px; width: calc((100% - 28px) / 15 * .62); height: 58%; z-index: 2;
  background: linear-gradient(#3a2a24, #1d1411); border-radius: 0 0 6px 6px;
  box-shadow: inset 0 -4px 0 #000, 0 3px 4px rgba(0,0,0,.45); transition: background .08s, box-shadow .08s;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end; gap: 5px; padding-bottom: 8px; color: #8a7469; font-size: .62rem;
}
.key--white.is-down { background: linear-gradient(#f9eee6, var(--blush)); box-shadow: inset 0 -2px 0 #e4d8cf, 0 1px 1px rgba(0,0,0,.2); transform: translateY(2px); }
.key--black.is-down { background: linear-gradient(#5b4339, #3a2a24); box-shadow: inset 0 -1px 0 #000; }
.key.is-target::after {
  content: ""; position: absolute; left: 50%; bottom: 52px; width: 18px; height: 18px; margin-left: -9px; border-radius: 50%;
  background: var(--gold); box-shadow: 0 0 0 6px rgba(184,145,95,.3), 0 0 22px 6px rgba(220,194,154,.8); animation: glow 1s ease-in-out infinite;
}
.key--black.is-target::after { bottom: 22px; width: 12px; height: 12px; margin-left: -6px; }
.key.is-target { color: var(--cocoa); font-weight: 600; }
@keyframes glow { 50% { transform: scale(1.18); } }
.key.is-wrong { animation: shake .3s; }
@keyframes shake { 25% { transform: translateX(-3px); } 75% { transform: translateX(3px); } }

.celebrate { position: fixed; inset: 0; background: rgba(58,40,32,.5); display: grid; place-items: center; z-index: 80; padding: 1.5rem; backdrop-filter: blur(4px); }
.celebrate[hidden] { display: none; }
.celebrate__card { background: var(--ivory); border-radius: 26px; padding: 2.5rem; max-width: 480px; text-align: center; box-shadow: var(--shadow); animation: pop .45s cubic-bezier(.2,1.4,.4,1); }
.celebrate__card .hero__cta { justify-content: center; margin-bottom: 0; }
.celebrate__card .script { font-size: 3.4rem; }
@keyframes pop { from { transform: scale(.8); opacity: 0; } }
.confetti { position: fixed; top: -30px; z-index: 90; pointer-events: none; color: var(--gold); font-size: 1.4rem; animation: fall linear forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

/* ---------- Paths ---------- */
.paths { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.4rem; }
.path { background: var(--ivory); border-radius: var(--radius); padding: 2rem 1.6rem; box-shadow: var(--shadow-soft); transition: transform .3s, box-shadow .3s; border: 1px solid transparent; }
.path:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: var(--blush-deep); }
.path__icon { width: 58px; height: 58px; border-radius: 50%; background: var(--blush); display: grid; place-items: center; font-size: 1.6rem; color: var(--gold); margin-bottom: 1.1rem; border: 1px solid var(--blush-deep); }
.path h3 { margin-bottom: .1rem; }
.path__age { font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; color: var(--gold); margin-bottom: .9rem; }
.path p:not(.path__age) { font-size: .98rem; }
.path--feature { background: var(--cocoa-dark); color: #EADBD1; }
.path--feature h3 { color: var(--ivory); }
.path--feature .path__icon { background: rgba(220,194,154,.15); border-color: rgba(220,194,154,.35); }
.path--feature .link { color: var(--gold-light); }

.theory { margin-top: 1.6rem; background: var(--ivory); border-radius: var(--radius); padding: 2rem 2.2rem; box-shadow: var(--shadow-soft); display: grid; grid-template-columns: 1.2fr 1fr; gap: 2rem; align-items: center; border: 1px solid var(--blush-deep); }
.theory h3 { margin-bottom: .4rem; }
.theory__copy p:last-child { margin: 0; }
.theory__list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.theory__list li { background: var(--blush); border-radius: 999px; padding: .6rem 1rem; text-align: center; font-weight: 500; color: var(--cocoa-dark); }
.footer__admin { color: var(--muted); text-decoration: none; }
.footer__admin:hover { color: var(--cocoa); text-decoration: underline; }

/* ---------- Quiz ---------- */
.quiz { background: var(--ivory); border-radius: 26px; padding: clamp(1.6rem, 4vw, 2.8rem); box-shadow: var(--shadow); border: 1px solid var(--blush); position: relative; }
.quiz__progress { height: 4px; background: var(--blush); border-radius: 4px; overflow: hidden; margin-bottom: 2rem; }
.quiz__progress-bar { height: 100%; width: 0; background: var(--gold); transition: width .4s ease; }
.quiz__step { border: 0; margin: 0; padding: 0; display: none; }
.quiz__step.is-active { display: block; animation: fadeUp .4s ease; }
@keyframes fadeUp { from { opacity: 0; transform: translateY(12px); } }
.quiz legend { font-family: var(--serif); font-size: 1.9rem; font-weight: 600; color: var(--cocoa-dark); margin-bottom: 1.4rem; padding: 0; }
.options { display: grid; grid-template-columns: repeat(2, 1fr); gap: .9rem; }
.option {
  font-family: var(--sans); font-size: 1.05rem; font-weight: 500; color: var(--cocoa-dark); text-align: left;
  background: var(--cream); border: 1.5px solid var(--blush); border-radius: 14px; padding: 1.05rem 1.2rem; cursor: pointer;
  display: flex; flex-direction: column; gap: .15rem; transition: all .2s;
}
.option small { font-weight: 400; color: var(--muted); font-size: .88rem; }
.option:hover { border-color: var(--gold); background: #fff; transform: translateY(-2px); }
.option.is-picked { border-color: var(--gold); background: var(--blush); }
.quiz__back { background: none; border: 0; color: var(--muted); font-family: var(--sans); cursor: pointer; margin-top: 1.4rem; font-size: .95rem; padding: 0; }
.quiz__back:hover { color: var(--cocoa); }
.quiz__result { text-align: center; }
.quiz__result h3 { font-size: 2.2rem; }
.quiz__result .hero__cta { justify-content: center; margin-bottom: 0; }
.result-facts { list-style: none; padding: 0; margin: 1.5rem auto 0; display: flex; justify-content: center; gap: 1rem; flex-wrap: wrap; }
.result-facts li { background: var(--cream); border: 1px solid var(--blush); border-radius: 14px; padding: .8rem 1.4rem; display: flex; flex-direction: column; min-width: 150px; }
.result-facts span { font-size: .78rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.result-facts strong { font-family: var(--serif); font-size: 1.6rem; color: var(--cocoa); }

/* ---------- RCM ---------- */
.rcm { max-width: 900px; margin: 0 auto; }
.rcm__label { display: block; text-align: center; font-size: 1.1rem; margin-bottom: 1rem; color: #EADBD1; }
.rcm__label strong { font-family: var(--serif); font-size: 1.5rem; color: var(--gold-light); margin-left: .3rem; }
.rcm__range { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 8px; background: linear-gradient(90deg, var(--gold) var(--fill, 0%), rgba(255,255,255,.15) var(--fill, 0%)); outline: none; cursor: pointer; }
.rcm__range::-webkit-slider-thumb { -webkit-appearance: none; width: 30px; height: 30px; border-radius: 50%; background: var(--ivory); border: 4px solid var(--gold); box-shadow: 0 0 0 6px rgba(184,145,95,.25); cursor: grab; }
.rcm__range::-moz-range-thumb { width: 24px; height: 24px; border-radius: 50%; background: var(--ivory); border: 4px solid var(--gold); cursor: grab; }
.rcm__range:focus-visible { box-shadow: 0 0 0 3px var(--gold-light); }
.rcm__ticks { list-style: none; padding: 0; margin: .7rem 0 2rem; display: flex; justify-content: space-between; font-size: .72rem; color: #B9A397; }
.rcm__ticks li { width: 0; display: flex; justify-content: center; white-space: nowrap; cursor: pointer; }
.rcm__ticks li.is-on { color: var(--gold-light); font-weight: 600; }
.rcm__card { background: rgba(255,255,255,.06); border: 1px solid rgba(220,194,154,.25); border-radius: var(--radius); padding: 2rem; display: grid; grid-template-columns: 1fr auto; gap: 2rem; align-items: center; }
.rcm__stage { text-transform: uppercase; letter-spacing: .2em; font-size: .78rem; color: var(--gold-light); margin-bottom: .4rem; }
.rcm__card p:last-child { margin: 0; color: #DCCBC0; }

/* ---------- About ---------- */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.about__photo { position: relative; }
.about__photo::before { content: ""; position: absolute; inset: 22px -22px -22px 22px; border: 1.5px solid var(--gold-light); border-radius: 220px 220px 24px 24px; }
.photo-placeholder, .about__photo img.teacher { position: relative; aspect-ratio: 4/5; border-radius: 220px 220px 24px 24px; background: linear-gradient(160deg, var(--blush), var(--blush-deep)); display: grid; place-items: center; align-content: center; gap: 1rem; color: var(--cocoa); font-size: .9rem; letter-spacing: .14em; text-transform: uppercase; object-fit: cover; width: 100%; }
.creds { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; }
.creds li { padding-left: 1.6rem; position: relative; font-size: .98rem; }
.creds li::before { content: "\266A"; position: absolute; left: 0; color: var(--gold); }

/* ---------- Quotes ---------- */
.quotes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
.quote { margin: 0; background: var(--ivory); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow-soft); position: relative; }
.quote::before { content: "\201C"; font-family: var(--serif); font-size: 5rem; line-height: 1; color: var(--blush-deep); position: absolute; top: .6rem; right: 1.3rem; }
.quote blockquote { margin: 0 0 1.2rem; font-family: var(--serif); font-size: 1.3rem; line-height: 1.45; color: var(--cocoa-dark); font-style: italic; }
.quote figcaption { font-size: .9rem; color: var(--muted); }

/* ---------- Pricing ---------- */
.founding { display: grid; grid-template-columns: 1.4fr 1fr; gap: 2rem; align-items: center; background: linear-gradient(120deg, var(--blush), #F8EAE3); border: 1px solid var(--blush-deep); border-radius: 24px; padding: 2rem 2.4rem; margin-bottom: 2.2rem; }
.founding__text { margin: 0; font-size: 1.08rem; }
.founding__meter p { margin: .6rem 0 0; font-weight: 500; color: var(--cocoa); text-align: right; }
.meter { height: 14px; background: var(--ivory); border-radius: 14px; overflow: hidden; border: 1px solid var(--blush-deep); }
.meter__bar { height: 100%; width: 0; background: linear-gradient(90deg, var(--gold-light), var(--gold)); border-radius: 14px; transition: width 1.4s cubic-bezier(.2,.8,.2,1); }
.prices { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; align-items: stretch; }
.price { background: var(--ivory); border: 1px solid var(--blush); border-radius: var(--radius); padding: 2.2rem 1.8rem; text-align: center; box-shadow: var(--shadow-soft); position: relative; }
.price--feature { border: 2px solid var(--gold); transform: translateY(-8px); box-shadow: var(--shadow); }
.price__badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--gold); color: #fff; font-size: .75rem; letter-spacing: .14em; text-transform: uppercase; padding: .3rem .9rem; border-radius: 999px; margin: 0; white-space: nowrap; }
.price__for { color: var(--muted); font-size: .92rem; min-height: 2.8em; }
.price__amt { font-family: var(--serif); font-size: 3.2rem; font-weight: 600; color: var(--cocoa); margin: .4rem 0 0; line-height: 1; }
.price__amt small { font-family: var(--sans); font-size: .9rem; color: var(--muted); font-weight: 400; margin-left: .25rem; }
.price__was { color: var(--muted); font-size: .9rem; margin: .5rem 0 0; min-height: 1.4em; }
.price__was s { opacity: .8; }
.fine { text-align: center; color: var(--muted); margin-top: 2rem; }

/* ---------- FAQ ---------- */
.faq details { background: var(--ivory); border-radius: 14px; margin-bottom: .8rem; border: 1px solid var(--blush-deep); overflow: hidden; }
.faq summary { cursor: pointer; padding: 1.15rem 1.4rem; font-family: var(--serif); font-size: 1.35rem; font-weight: 600; color: var(--cocoa-dark); list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-family: var(--sans); font-weight: 300; font-size: 1.6rem; color: var(--gold); transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 1.4rem 1.2rem; margin: 0; color: var(--text); }

/* ---------- Trial form ---------- */
.trial { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.ticks { list-style: none; padding: 0; margin: 1.6rem 0 0; }
.ticks li { padding-left: 1.9rem; position: relative; margin-bottom: .6rem; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--gold-light); font-weight: 600; }
.form { background: var(--ivory); color: var(--text); border-radius: 24px; padding: clamp(1.5rem, 4vw, 2.4rem); box-shadow: 0 30px 60px -25px rgba(0,0,0,.5); }
.form__row { margin-bottom: 1rem; }
.form__row--2 { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.form label { display: block; font-size: .9rem; font-weight: 500; color: var(--cocoa-dark); }
.form .opt { font-weight: 400; color: var(--muted); }
.form input, .form select, .form textarea {
  display: block; width: 100%; margin-top: .35rem; font: inherit; font-weight: 400; font-size: 1rem; color: var(--text);
  background: var(--cream); border: 1.5px solid var(--blush-deep); border-radius: 12px; padding: .8rem .95rem; transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(184,145,95,.18); background: #fff; }
.form .btn--light { margin-top: .4rem; }
.form__status { margin: 1rem 0 0; text-align: center; font-weight: 500; min-height: 1.5em; }
.form__status.is-ok { color: #4f7a4c; }
.form__status.is-err { color: #a2453a; }
.form.is-sent .form__row, .form.is-sent button { display: none; }
.form.is-sent .form__status { font-family: var(--serif); font-size: 1.6rem; color: var(--cocoa); padding: 2rem 0; }
.hidden-field { position: absolute; left: -9999px; }

/* ---------- Footer ---------- */
.footer { background: var(--cream); padding: 3.5rem 0 6rem; text-align: center; border-top: 1px solid var(--blush); }
.footer__logo { width: 260px; margin: 0 auto 1rem; mix-blend-mode: multiply; }
.footer p { margin: .3rem 0; color: var(--muted); }
.footer__small { font-size: .82rem; margin-top: 1rem !important; }
.footer__credit { font-size: .78rem; }
.footer__credit a { color: var(--cocoa); text-decoration: none; font-weight: 500; }
.footer__credit a:hover { text-decoration: underline; }

.sticky-cta { position: fixed; left: 50%; bottom: 1rem; transform: translate(-50%, 150%); background: var(--cocoa); color: var(--ivory); text-decoration: none; padding: .9rem 1.8rem; border-radius: 999px; box-shadow: var(--shadow); z-index: 40; font-weight: 500; transition: transform .35s ease; display: none; }
.sticky-cta.is-visible { transform: translate(-50%, 0); }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .8s ease, transform .8s ease; }
.reveal.is-in { opacity: 1; transform: none; }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1020px) {
  .paths { grid-template-columns: repeat(2, 1fr); }
  .quotes { grid-template-columns: 1fr; max-width: 640px; margin: 0 auto; }
}
@media (max-width: 880px) {
  .nav__toggle { display: block; }
  .nav__links {
    position: absolute; top: 74px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 0;
    background: var(--cream); border-bottom: 1px solid var(--blush); padding: .5rem 1.25rem 1.25rem;
    transform: translateY(-8px); opacity: 0; pointer-events: none; transition: all .25s;
  }
  .nav__links.is-open { transform: none; opacity: 1; pointer-events: auto; }
  .nav__links a:not(.btn) { padding: .8rem 0; border-bottom: 1px solid var(--blush); }
  .nav__links .btn { margin-top: 1rem; }
  .nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

  .hero__grid { grid-template-columns: 1fr; text-align: center; }
  .hero__logo { order: -1; max-width: 360px; margin: 0 auto; }
  .hero .lead { margin-inline: auto; }
  .hero__cta { justify-content: center; }
  .stats__grid { grid-template-columns: repeat(2, 1fr); row-gap: 2rem; }
  .about, .trial, .theory { grid-template-columns: 1fr; }
  .theory { text-align: center; }
  .about__photo { max-width: 340px; margin: 0 auto 1rem; }
  .prices { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .price--feature { transform: none; }
  .founding { grid-template-columns: 1fr; text-align: center; }
  .founding__meter p { text-align: center; }
  .rcm__card { grid-template-columns: 1fr; text-align: center; }
  .rcm__ticks li:nth-child(even) { visibility: hidden; }
  .sticky-cta { display: block; }
}
@media (max-width: 560px) {
  body { font-size: 1rem; }
  .paths, .options, .form__row--2, .creds { grid-template-columns: 1fr; }
  .piano-card__bar { flex-direction: column; align-items: stretch; }
  .song-picker, .piano-card__actions { justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}

/* key labels: note name + computer key */
.key__note { font-family: var(--serif); font-size: 1.05rem; font-weight: 700; color: var(--cocoa); line-height: 1; }
.key__kbd { font-size: .62rem; color: #b9a89e; letter-spacing: .05em; line-height: 1; }
.key--middle .key__note { color: var(--gold); }
.key.is-target .key__note { color: var(--gold); }
.about__photo img.teacher { object-position: center 30%; }
.key__note--black { font-family: var(--sans); font-size: .7rem; font-weight: 500; color: #CDB8AC; line-height: 1; }
.key--black .key__kbd { color: #8a7469; }
.key--black.is-target .key__note { color: var(--gold-light); }
@media (max-width: 560px) { .key__note--black { font-size: .58rem; } }

/* FAQ policy list */
.faq .policy { padding: 0 1.4rem 1.2rem; }
.faq .policy p { padding: 0; margin: 0 0 .8rem; }
.faq .policy ul { margin: 0; padding-left: 1.2rem; display: grid; gap: .55rem; }
.faq .policy li::marker { color: var(--gold); }
