:root {
  --ink: #17153b;
  --ink-2: #2a2760;
  --indigo: #5b4cdb;
  --indigo-deep: #4536c4;
  --indigo-soft: #eceaff;
  --amber: #f5b841;
  --paper: #fbfaf7;
  --tint: #f3f1fb;
  --text: #22213a;
  --muted: #5d5b78;
  --line: #e2e0ee;
  --radius: 16px;
  --serif: "Newsreader", Georgia, serif;
  --sans: "Plus Jakarta Sans", system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font: 400 17px/1.65 var(--sans);
  -webkit-font-smoothing: antialiased;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; line-height: 1.15; }
h1, h2 { font-family: var(--serif); font-weight: 500; letter-spacing: -0.01em; }
h3 { font-size: 1.05rem; font-weight: 700; }
p { margin: 0; }

.wrap { width: min(1120px, 100% - 32px); margin-inline: auto; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 14px; border-radius: 8px; z-index: 100; }
.skip:focus { left: 8px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center;
  min-height: 48px; padding: 0 22px;
  border: 1.5px solid var(--indigo); border-radius: 999px;
  background: var(--indigo); color: #fff;
  font: 600 0.98rem/1 var(--sans); text-decoration: none; cursor: pointer;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { background: var(--indigo-deep); border-color: var(--indigo-deep); }
.btn:focus-visible, a:focus-visible, summary:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid var(--amber); outline-offset: 2px; }
.btn-ghost { background: transparent; color: var(--indigo); }
.btn-ghost:hover { background: var(--indigo-soft); color: var(--indigo-deep); }
.btn-small { min-height: 40px; padding: 0 16px; font-size: .9rem; }
.btn-wide { width: 100%; }

.eyebrow { font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--indigo); margin-bottom: 14px; }

/* Navigation */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(251, 250, 247, .92); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; }
.brand img { height: 58px; width: auto; margin-left: -10px; }
.nav nav { margin-left: auto; }
.nav-links { display: flex; gap: 26px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 500; font-size: .95rem; color: var(--muted); }
.nav-links a:hover { color: var(--ink); }

/* Hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1200px 500px at 85% 0%, var(--indigo-soft), transparent 70%); }
.hero-inner { display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.hero h1 { font-size: clamp(2.3rem, 4.6vw, 3.6rem); color: var(--ink); }
.lede { margin-top: 20px; font-size: 1.12rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }

.lesson { margin: 0; background: var(--ink); color: #fff; border-radius: 20px; padding: 14px 14px 16px; box-shadow: 0 30px 60px -30px rgba(23, 21, 59, .55); }
.lesson-bar { display: flex; align-items: center; gap: 6px; padding: 2px 4px 12px; }
.dot { width: 9px; height: 9px; border-radius: 50%; background: #3d3a78; }
.lesson-title { margin-left: 10px; font-size: .78rem; color: #b9b6e6; }
.lesson-cam { display: grid; grid-template-columns: 1.6fr 1fr; gap: 10px; }
.cam-tile { position: relative; border-radius: 12px; overflow: hidden; background: var(--ink-2); aspect-ratio: 4 / 3; }
.cam-tile svg { width: 100%; height: 100%; fill: #4a4690; }
.cam-student svg { fill: #3f3c80; }
.cam-tile span { position: absolute; left: 8px; bottom: 8px; font-size: .72rem; background: rgba(0, 0, 0, .35); padding: 2px 8px; border-radius: 6px; }
.lesson-chord { display: flex; align-items: baseline; gap: 10px; margin: 14px 4px 8px; font-size: .85rem; color: #b9b6e6; }
.lesson-chord strong { font: 600 1.4rem/1 var(--serif); color: #fff; }
.chord-step { font-family: var(--serif); font-style: italic; color: var(--amber); }
.keys { width: 100%; height: auto; border-radius: 8px; background: #0e0d26; padding: 6px; }
.keys .w { fill: #fff; stroke: #0e0d26; stroke-width: 1; transition: fill .25s; }
.keys .b { fill: #1c1a44; transition: fill .25s; }
.keys .on.w { fill: var(--amber); }
.keys .on.b { fill: #d99a1f; }
.lesson figcaption { margin: 10px 4px 0; font-size: .78rem; color: #b9b6e6; }

.proof { list-style: none; margin: 56px 0 0; padding: 24px 0 0; border-top: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.proof strong { display: block; font: 600 1.45rem/1.2 var(--serif); color: var(--ink); }
.proof span { font-size: .9rem; color: var(--muted); }

/* Sections */
.section { padding: 96px 0; }
.section-tint { background: var(--tint); }
.section-dark { background: var(--ink); color: #e9e8f7; }
.section-dark h2 { color: #fff; }
.section-dark .eyebrow { color: var(--amber); }
.section-dark .section-lede { color: #c3c1e4; }
.section h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); color: var(--ink); max-width: 20em; }
.section-dark h2 { color: #fff; }
.section-lede { margin-top: 16px; color: var(--muted); max-width: 40em; font-size: 1.05rem; }
.split { display: grid; grid-template-columns: 1fr 1.15fr; gap: 64px; align-items: start; }

.grid { display: grid; gap: 20px; margin-top: 44px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card-num { display: block; font: 600 .85rem/1 var(--sans); color: var(--indigo); margin-bottom: 18px; letter-spacing: .08em; }
.card p { margin-top: 10px; color: var(--muted); font-size: .97rem; }

.programs { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 20px; margin-top: 44px; }
.program { background: #fff; border-radius: var(--radius); padding: 26px; border: 1px solid var(--line); }
.program p { color: var(--muted); font-size: .95rem; margin-top: 10px; }
.program-main { grid-row: span 2; background: var(--indigo); border-color: var(--indigo); color: #fff; display: flex; flex-direction: column; justify-content: flex-end; min-height: 280px; }
.program-main h3 { font: 500 2rem/1.1 var(--serif); }
.program-main p { color: #e1defc; font-size: 1.02rem; max-width: 28em; }
.tag { display: inline-block; align-self: flex-start; margin: 0 0 14px !important; padding: 4px 10px; border-radius: 999px; font-size: .75rem !important; font-weight: 700; background: rgba(255, 255, 255, .18); color: #fff !important; }
.tag-new { background: #fff3d6; color: #7a5300 !important; }

.benefits { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.benefits li { padding: 22px 0; border-top: 1px solid var(--line); }
.benefits li:first-child { border-top: 0; padding-top: 4px; }
.benefits p { margin-top: 6px; color: var(--muted); }

.teacher-card { background: var(--ink-2); border-radius: 20px; padding: 40px; text-align: center; }
.teacher-card img { margin: 0 auto 22px; width: 96px; height: 96px; }
.teacher-name { font: 500 1.8rem/1.2 var(--serif); color: #fff; }
.teacher-role { margin-top: 6px; color: #b9b6e6; font-size: .95rem; }
.creds { list-style: none; padding: 0; margin: 28px 0 0; display: grid; gap: 12px; }
.creds li { position: relative; padding-left: 28px; }
.creds li::before { content: ""; position: absolute; left: 0; top: .55em; width: 14px; height: 8px; border-radius: 2px; background: var(--amber); }

.countries { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.countries li { padding: 10px 18px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 600; font-size: .95rem; }

.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 360px)); gap: 20px; margin-top: 44px; }
.plan { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 32px; display: flex; flex-direction: column; }
.plan-featured { border: 2px solid var(--indigo); }
.price { margin: 18px 0 10px; font: 600 2.6rem/1 var(--serif); color: var(--ink); }
.price span { font-size: 1.2rem; margin-right: 4px; vertical-align: .9em; }
.price small { font: 500 .95rem var(--sans); color: var(--muted); margin-left: 4px; }
.plan-note { color: var(--muted); font-size: .95rem; margin-bottom: 24px; flex: 1; }
.fine { margin: 32px 0 0; padding-left: 20px; color: var(--muted); font-size: .93rem; max-width: 46em; display: grid; gap: 6px; }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 44px 0 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step); position: absolute; top: 0; left: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--indigo-soft); color: var(--indigo); font: 600 1.1rem/40px var(--serif); text-align: center; }
.steps p { margin-top: 8px; color: var(--muted); font-size: .95rem; }

.trial-note { margin-top: 18px; color: var(--amber); font-weight: 600; }
.trial-form { background: #fff; color: var(--text); border-radius: 20px; padding: 30px; display: grid; gap: 16px; }
.trial-form label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
.trial-form input, .trial-form select { width: 100%; min-height: 48px; padding: 10px 14px; border: 1.5px solid var(--line); border-radius: 12px; font: 400 1rem var(--sans); color: var(--text); background: var(--paper); }
.trial-form input:focus, .trial-form select:focus { border-color: var(--indigo); background-color: #fff; box-shadow: 0 0 0 4px var(--indigo-soft); outline: none; }
.trial-form select {
  appearance: none; -webkit-appearance: none; cursor: pointer;
  padding-right: 48px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1.5l5 5 5-5' fill='none' stroke='%235b4cdb' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 18px center; background-size: 12px 8px;
  transition: border-color .2s, box-shadow .2s, background-color .2s;
}
.trial-form select:hover { border-color: #c9c4f2; background-color: #fff; }
.trial-form select:invalid { color: var(--muted); }
.trial-form select option { color: var(--text); }
.trial-form [aria-invalid="true"] { border-color: #c2410c; }
.form-error { color: #c2410c; font-size: .9rem; font-weight: 600; }

.faq-wrap > * { max-width: 800px; }
details { border-top: 1px solid var(--line); }
details:last-of-type { border-bottom: 1px solid var(--line); }
details:first-of-type { margin-top: 36px; }
summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; position: relative; font-weight: 600; }
summary::-webkit-details-marker { display: none; }
summary::after { content: "+"; position: absolute; right: 4px; top: 50%; transform: translateY(-50%); font-size: 1.5rem; color: var(--indigo); font-weight: 400; }
details[open] summary::after { content: "−"; }
details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

.cta { background: var(--indigo); color: #fff; padding: 72px 0; text-align: center; }
.cta h2 { font-size: clamp(1.9rem, 3.4vw, 2.6rem); }
.cta p { margin: 12px 0 28px; color: #e1defc; }
.cta .btn { background: #fff; color: var(--indigo); border-color: #fff; }
.cta .btn:hover { background: var(--indigo-soft); }

.footer { background: var(--ink); color: #b9b6e6; padding: 40px 0 48px; font-size: .92rem; }
.footer-inner { display: grid; gap: 10px; }
.footer img { height: 64px; width: auto; margin-left: -12px; }
.footer a { color: #fff; }
.footer .small { font-size: .82rem; margin-top: 10px; }

@media (max-width: 960px) {
  .hero-inner, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .programs { grid-template-columns: repeat(2, 1fr); }
  .program-main { grid-row: auto; grid-column: span 2; min-height: 220px; }
  .proof { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .nav-links { display: none; }
  .nav nav { margin-left: auto; }
}

@media (max-width: 600px) {
  body { font-size: 16px; }
  .hero { padding: 40px 0 40px; }
  .section { padding: 64px 0; }
  .grid-3, .programs, .steps, .plans { grid-template-columns: 1fr; }
  .program-main { grid-column: auto; }
  .proof { gap: 18px; margin-top: 40px; }
  .brand img { height: 50px; }
  .btn-small { padding: 0 12px; }
  .teacher-card { padding: 28px; }
  .trial-form { padding: 22px; }
}

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