:root {
  --radius: 14px;
  --font-display: "Fraunces", Georgia, serif;
  --font-body: "DM Sans", system-ui, -apple-system, sans-serif;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 700; line-height: 1.15; margin: 0 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(2.6rem, 6vw, 4.25rem); }
h2 { font-size: clamp(1.8rem, 3.6vw, 2.6rem); max-width: 22ch; }
h3 { font-size: 1.3rem; font-weight: 500; }
p { margin: 0 0 1em; }

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

.eyebrow {
  font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase;
  color: var(--accent); margin-bottom: .75rem;
}
.section { padding: 88px 0; }
@media (max-width: 719px) { .section { padding: 64px 0; } .hero { padding: 48px 0 64px; } }
.section-sky { background: var(--band-english); }
.section-warm { background: var(--band-warm); }
.section-lead { color: var(--muted); max-width: 60ch; font-size: 1.125rem; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: .55rem;
  padding: .85rem 1.35rem; border-radius: 999px;
  font-weight: 700; text-decoration: none; border: 2px solid transparent;
  transition: transform .15s ease, background-color .15s ease, border-color .15s ease;
}
.btn:hover { transform: translateY(-1px); }
.btn:focus-visible, .lang-toggle button:focus-visible, summary:focus-visible { outline: 3px solid var(--english); outline-offset: 3px; }
.btn-primary { background: var(--primary); color: var(--on-primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-ghost { border-color: currentColor; color: var(--accent); }
.btn-light { background: var(--cta-btn); color: var(--cta-btn-text); }
.btn-soon { border-color: currentColor; color: var(--accent); opacity: .7; cursor: default; }
.btn-soon:hover { transform: none; }
.btn-sm { padding: .5rem 1rem; font-size: .9rem; white-space: nowrap; }
.icon { width: 20px; height: 20px; fill: currentColor; flex: none; }


/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header-inner { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand { display: flex; align-items: center; gap: .5rem; text-decoration: none; font-family: var(--font-display); font-weight: 700; font-size: 1.2rem; white-space: nowrap; }
.brand-mark { flex-shrink: 0; width: 26px; height: 26px; fill: none; stroke: var(--accent); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.nav { display: none; gap: 22px; margin-left: auto; }
.nav a { text-decoration: none; font-weight: 500; color: var(--muted); white-space: nowrap; }
.nav a:hover { color: var(--text); }
.header-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
@media (min-width: 1120px) {
  .nav { display: flex; }
  .header-actions { margin-left: 8px; }
}
@media (max-width: 480px) { .header-actions .btn-sm { display: none; } }
@media (max-width: 380px) { .brand { font-size: 1.05rem; } }

.lang-toggle { display: flex; border: 1.5px solid var(--line); border-radius: 999px; padding: 3px; }
.lang-toggle button {
  font: inherit; font-size: .8rem; font-weight: 700; letter-spacing: .05em;
  border: 0; background: transparent; color: var(--muted);
  padding: .3rem .7rem; border-radius: 999px; cursor: pointer;
}
.lang-toggle button[aria-pressed="true"] { background: var(--text); color: var(--bg); }

/* ---------- Hero ---------- */
.hero {
  padding: 72px 0 96px;
  background:
    radial-gradient(ellipse 80% 60% at 85% 0%, var(--glow), transparent 70%),
    var(--bg);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
@media (min-width: 900px) { .hero-grid { grid-template-columns: 1.15fr 1fr; } }
.hero h1 em { font-style: italic; color: var(--accent); font-weight: 500; }
.lead { font-size: 1.2rem; color: var(--muted); max-width: 52ch; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 8px; list-style: none; padding: 0; margin: 0; }
.hero-facts li {
  font-size: .9rem; font-weight: 500; padding: .35rem .8rem; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line);
}

/* Example lesson card */
.lesson-card {
  margin: 0; background: var(--surface); border-radius: 20px; padding: 20px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  transform: rotate(1.2deg);
}
.lesson-card-head {
  display: flex; justify-content: space-between; align-items: center;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.dot-row { display: flex; gap: 5px; }
.dot-row i { width: 9px; height: 9px; border-radius: 50%; background: var(--dot-1); }
.dot-row i:nth-child(2) { background: var(--dot-2); }
.dot-row i:nth-child(3) { background: var(--dot-3); }
.lesson-half { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 16px; border-radius: 12px; }
.lesson-half + .lesson-half { margin-top: 10px; }
.lesson-english { background: var(--tint-english); }
.lesson-music { background: var(--tint-music); }
.half-time { font-family: var(--font-display); font-weight: 700; font-size: 1.05rem; margin: 0; }
.lesson-english .half-time { color: var(--english-text); }
.lesson-music .half-time { color: var(--accent); }
.half-title { font-weight: 700; margin: 0 0 .25rem; }
.half-body { margin: 0; font-size: .95rem; color: var(--muted); }
.half-body strong { color: var(--text); }
.chords { display: flex; gap: 8px; margin-top: 14px; }
.chords span {
  flex: 1; text-align: center; padding: .45rem 0; border-radius: 8px;
  border: 1.5px dashed var(--line); font-family: var(--font-display); font-weight: 700;
}

/* ---------- Instrument cards ---------- */
.cards { display: grid; gap: 20px; margin-top: 40px; }
@media (min-width: 760px) { .cards { grid-template-columns: repeat(3, 1fr); } }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; display: flex; flex-direction: column;
}
.card p { color: var(--muted); }
.card-icon {
  width: 60px; height: 60px; border-radius: 16px; display: grid; place-items: center;
  background: var(--tint-music); margin-bottom: 18px;
}
.card-icon svg { width: 36px; height: 36px; fill: none; stroke: var(--accent); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.card-icon svg .fill { fill: var(--accent); stroke: none; }
.card-english {
  margin: auto 0 0; padding-top: 16px; border-top: 1px solid var(--line);
  font-size: .92rem;
}
.card-english span:first-child { display: block; font-weight: 700; color: var(--english-text); margin-bottom: 2px; }


/* ---------- Timeline ---------- */
.timeline { margin: 36px 0 44px; }
.timeline-bar { display: flex; border-radius: 12px; overflow: hidden; min-height: 64px; box-shadow: var(--shadow); }
.seg { flex: 1; display: flex; align-items: center; padding: 0 20px; font-weight: 700; }
.seg-english { background: var(--english); color: var(--on-english); }
.seg-music { background: var(--music); color: var(--on-music); }
.timeline-scale { display: flex; justify-content: space-between; font-size: .85rem; color: var(--muted); margin-top: 8px; font-variant-numeric: tabular-nums; }
@media (max-width: 520px) {
  .timeline-bar { flex-direction: column; }
  .seg { min-height: 56px; }
  .timeline-scale { display: none; }
}
.two-col { display: grid; gap: 32px; }
@media (min-width: 760px) { .two-col { grid-template-columns: 1fr 1fr; gap: 48px; } }
.two-col p { color: var(--muted); }
.note {
  margin-top: 28px; padding: 16px 20px; border-radius: 12px;
  background: var(--surface); border-left: 4px solid var(--english); max-width: 70ch;
}

/* ---------- Who ---------- */
.who-list { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 28px; }
@media (min-width: 760px) { .who-list { grid-template-columns: repeat(3, 1fr); } }
.who-list li { border-top: 3px solid var(--rule); padding-top: 18px; }
.who-list p { color: var(--muted); margin: 0; }

/* ---------- Practice (AceVoz) ---------- */
.practice-grid { display: grid; gap: 48px; align-items: center; }
@media (min-width: 900px) { .practice-grid { grid-template-columns: 1.3fr 1fr; gap: 64px; } }
.practice-list { list-style: none; padding: 0; margin: 28px 0 32px; display: grid; gap: 20px; }
@media (min-width: 600px) { .practice-list { grid-template-columns: 1fr 1fr; } }
.practice-list h3 { font-size: 1.1rem; margin-bottom: .2em; }
.practice-list p { color: var(--muted); margin: 0; font-size: .98rem; }
.app-card {
  margin: 0; background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 22px; box-shadow: var(--shadow); transform: rotate(-1deg);
}
.app-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted);
  margin-bottom: 14px;
}
.app-logo { font-family: var(--font-display); font-size: 1.15rem; letter-spacing: 0; text-transform: none; color: var(--accent); }
.app-tasks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.app-tasks li { display: flex; gap: 12px; align-items: flex-start; padding: 12px; border-radius: 12px; background: var(--tint-english); }
.app-tasks strong { display: block; font-size: .95rem; }
.app-tasks small { color: var(--muted); font-size: .85rem; }
.task-check { flex: none; width: 20px; height: 20px; margin-top: 2px; border-radius: 6px; border: 2px solid var(--english); }
.app-tasks li.done { background: var(--tint-music); }
.app-tasks li.done .task-check { background: var(--music); border-color: var(--music); }
.app-tasks li.done strong { text-decoration: line-through; text-decoration-color: var(--muted); }
.app-progress { margin-top: 16px; }
.app-progress-label { display: flex; justify-content: space-between; font-size: .85rem; font-weight: 700; margin-bottom: 6px; font-variant-numeric: tabular-nums; }
.app-progress-bar { height: 8px; border-radius: 999px; background: var(--line); overflow: hidden; }
.app-progress-bar i { display: block; height: 100%; background: var(--primary); border-radius: inherit; }

/* ---------- Cambridge ---------- */
.cambridge-grid { display: grid; gap: 48px; align-items: start; }
@media (min-width: 900px) { .cambridge-grid { grid-template-columns: 1.4fr 1fr; gap: 64px; } }
.cam-list { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 22px; }
.cam-list li { padding-left: 20px; border-left: 3px solid var(--english); }
.cam-list h3 { margin-bottom: .25em; }
.cam-list p { color: var(--muted); margin: 0; }
.exam-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px;
  padding: 28px; box-shadow: var(--shadow);
}
.exam-card-title { font-size: .8rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.exam-levels { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; }
.exam-levels li {
  display: flex; align-items: center; gap: 14px; font-weight: 700;
  padding: 10px 12px; border-radius: 12px; background: var(--tint-english);
}
.level {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px;
  background: var(--english); color: var(--on-english); font-family: var(--font-display);
}
.exam-price { margin: 0 0 .25rem; }
.exam-note { color: var(--muted); font-size: .95rem; }
.exam-card .btn { width: 100%; justify-content: center; }

/* ---------- About ---------- */
.about-grid { display: grid; gap: 40px; align-items: center; }
@media (min-width: 820px) { .about-grid { grid-template-columns: 340px 1fr; gap: 64px; } }
.about-photo {
  width: 100%; max-width: 340px; height: auto; aspect-ratio: 4 / 5; object-fit: cover;
  border-radius: 200px 200px var(--radius) var(--radius);
  box-shadow: var(--shadow);
}
.creds { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 10px; }
.creds li { position: relative; padding-left: 28px; }
.creds li::before {
  content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 14px; border-radius: 50%;
  background: var(--tint-english); box-shadow: inset 0 0 0 3px var(--english);
}

/* ---------- Prices ---------- */
.price-grid { display: grid; gap: 20px; margin-top: 36px; }
@media (min-width: 720px) { .price-grid { grid-template-columns: 1.2fr 1fr; } }
.price-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.price-card p { color: var(--muted); }
.price-featured { border: 2px solid var(--accent); box-shadow: var(--shadow); }
.price-tag { font-weight: 700; color: var(--text) !important; margin-bottom: .25rem; }
.price { margin: 0 0 .75rem; }
.amount { font-family: var(--font-display); font-size: 3rem; font-weight: 700; color: var(--text); font-variant-numeric: tabular-nums; }
.per { color: var(--muted); }
.trial {
  display: inline-block; margin: .25rem 0 0; font-weight: 700; font-size: .9rem;
  padding: .3rem .75rem; border-radius: 999px; background: var(--tint-music); color: var(--text) !important;
}
.where { display: flex; gap: 16px; margin-top: 40px; align-items: flex-start; max-width: 70ch; }
.where p { color: var(--muted); margin: 0; }
.icon-lg { width: 32px; height: 32px; flex: none; fill: none; stroke: var(--accent); stroke-width: 2; margin-top: 2px; }

/* ---------- Steps ---------- */
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; gap: 20px; counter-reset: none; }
@media (min-width: 760px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.steps li { background: var(--surface); border-radius: var(--radius); padding: 26px; }
.steps p { color: var(--muted); margin: 0; }
.step-num {
  display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  background: var(--english); color: var(--on-english); font-family: var(--font-display); font-weight: 700; margin-bottom: 14px;
}

/* ---------- FAQ ---------- */
details { border-bottom: 1px solid var(--line); }
details:first-of-type { border-top: 1px solid var(--line); margin-top: 28px; }
summary {
  list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative;
  font-weight: 700; font-size: 1.1rem;
}
summary::-webkit-details-marker { display: none; }
summary::after {
  content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%);
  font-size: 1.5rem; font-weight: 400; color: var(--accent); transition: transform .2s ease;
}
details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
details p { color: var(--muted); padding-bottom: 20px; margin: 0; max-width: 65ch; }

/* ---------- CTA band & footer ---------- */
.cta-band { background: var(--cta-bg); color: var(--cta-text); padding: 88px 0; text-align: center; }
.cta-inner { display: flex; flex-direction: column; align-items: center; }
.cta-band h2 { max-width: 20ch; }
.cta-band p { opacity: .85; font-size: 1.125rem; }
.cta-band .btn { margin-top: 8px; }

.site-footer { padding: 28px 0; border-top: 1px solid var(--line); font-size: .9rem; color: var(--muted); }
.footer-inner { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; }
.footer-inner p { margin: 0; }

/* ---------- Palette preview (remove before launch) ---------- */
.palette-switcher[hidden] { display: none; }
.palette-switcher {
  position: fixed; left: 16px; bottom: 16px; z-index: 20;
  display: flex; flex-direction: column; gap: 4px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 14px;
  padding: 10px; box-shadow: var(--shadow); font-size: .85rem;
}
.palette-switcher-label { margin: 0 0 2px 6px; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.palette-switcher button {
  display: flex; align-items: center; gap: 10px; font: inherit; font-weight: 500; color: var(--text);
  background: transparent; border: 1.5px solid transparent; border-radius: 10px; padding: 6px 8px; cursor: pointer; text-align: left;
}
.palette-switcher button:hover { background: var(--band-english); }
.palette-switcher button[aria-pressed="true"] { border-color: var(--text); }
.palette-switcher button:focus-visible { outline: 3px solid var(--english); outline-offset: 2px; }
.swatches { display: flex; }
@media (max-width: 520px) {
  .palette-switcher { left: 8px; bottom: 8px; padding: 6px; font-size: 0; }
  .palette-switcher-label { display: none; }
}
.swatches i { width: 14px; height: 14px; border-radius: 50%; margin-right: -4px; box-shadow: 0 0 0 1.5px var(--surface); }

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