/* Landing page styles.
   Previously a 370-line inline <style> in landing.html; extracted so the
   browser can cache it and so the page matches the others. */

*, *::before, *::after { box-sizing: border-box; }

body {
    margin: 0;
    font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
    color: var(--nb-ink);
    overflow-x: hidden;
    opacity: 0;
    transition: opacity .3s ease;
}

/* ── Hero ── */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    background: linear-gradient(135deg, #89CFF0 0%, #A7E8BD 30%, #F9E4B7 60%, #F0B5A0 100%);
    background-size: 400% 400%;
    animation: heroGradient 20s ease infinite;
    overflow: hidden;
}
@keyframes heroGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

/* Floating music notes */
.hero::before, .hero::after {
    position: absolute;
    font-size: 8rem;
    opacity: .06;
    pointer-events: none;
}
.hero::before { content: '\266B'; top: 10%; left: 8%; animation: float 6s ease-in-out infinite; }
.hero::after  { content: '\266A'; bottom: 12%; right: 10%; animation: float 8s ease-in-out infinite reverse; }
@keyframes float {
    0%, 100% { transform: translateY(0) rotate(0deg); }
    50% { transform: translateY(-30px) rotate(8deg); }
}

.hero-content { position: relative; padding: 2rem; max-width: 800px; }

.hero-logo-wrap {
    display: inline-block;
    margin-bottom: 1.5rem;
    width: min(80vw, 420px);
    aspect-ratio: 2033 / 514;
    background: linear-gradient(135deg, #0984e3, #6c5ce7, #e17055, #00b894);
    background-size: 300% 300%;
    animation: logoGradient 8s ease infinite;
    opacity: 0;
    transition: opacity .3s ease;
    /* mask is set dynamically by JS after removing white background */
}
@keyframes logoGradient {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-tagline {
    font-size: clamp(1.1rem, 2.5vw, 1.5rem);
    font-weight: 600;
    color: rgba(0,0,0,.6);
    margin-bottom: 2.5rem;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; }

.btn-hero {
    padding: .85rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    font-size: 1.05rem;
    text-decoration: none;
    transition: var(--nb-lift);
    display: inline-flex;
    align-items: center;
    gap: .5rem;
}
.btn-hero:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,.15); }
.btn-hero-primary { background: var(--nb-primary); color: #fff; }
.btn-hero-primary:hover { background: var(--nb-primary-pressed); color: #fff; }
.btn-hero-outline { background: rgba(255,255,255,.7); color: var(--nb-primary); border: 2px solid var(--nb-primary); }
.btn-hero-outline:hover { background: #fff; color: var(--nb-primary); }

/* ── Language selector ── */
.lang-selector {
    position: absolute;
    top: 1.2rem;
    right: 1.5rem;
    z-index: 10;
}
.lang-selector select {
    padding: .4rem .8rem;
    border-radius: 50px;
    border: 2px solid rgba(255,255,255,.5);
    background: rgba(255,255,255,.7);
    font-weight: 600;
    font-size: .85rem;
    color: var(--nb-ink);
    cursor: pointer;
    outline: none;
    backdrop-filter: blur(4px);
}
.lang-selector select:hover { border-color: rgba(255,255,255,.8); background: rgba(255,255,255,.85); }

/* ── Sections ── */
section { padding: 5rem 1.5rem; }

/* ── Section backgrounds ──────────────────────────────────────────────────
   Each section takes one colour from the hero gradient (sky, mint, sand,
   peach) as a faint tint, and each one starts on the colour the one above
   it ends on, so the page reads as one surface shading through the hero's
   palette rather than as stripes. Glows and patterns sit in ::before,
   behind the content, and never reach full colour: the cards on top stay
   the brightest thing in every section. */
section { position: relative; isolation: isolate; overflow: hidden; }
section::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: -1;
    pointer-events: none;
}
section > * { position: relative; }

/* Features: out of the hero into white. It opens on a wash of the hero's
   sand so there is no seam where the hero ends, then a breath of sky. */
#features { background: linear-gradient(180deg, #f8ecd0 0%, #fff 9rem, #f2f8fc 100%); }
#features::before {
    background: radial-gradient(40rem 22rem at 8% 0%, rgba(137, 207, 240, .22), transparent 70%);
}

/* Exercises: sky into mint, glows at both ends of the grid. */
#exercises { background: linear-gradient(180deg, #f2f8fc 0%, #effaf3 100%); }
#exercises::before {
    background:
        radial-gradient(34rem 20rem at 100% 20%, rgba(167, 232, 189, .30), transparent 70%),
        radial-gradient(28rem 18rem at 0% 90%, rgba(137, 207, 240, .18), transparent 70%);
}

/* Learn: mint into sand, warmed from one corner. */
#learn { background: linear-gradient(180deg, #effaf3 0%, #fdf7ea 100%); }
#learn::before {
    background: radial-gradient(30rem 20rem at 90% 100%, rgba(249, 228, 183, .45), transparent 70%);
}

/* Classes: sand into a calm blue, with a dotted grid like a seating plan. */
#classes { background: linear-gradient(180deg, #fdf7ea 0%, #edf5fa 100%); }
#classes::before {
    background-image: radial-gradient(rgba(26, 110, 138, .12) 1.2px, transparent 1.4px);
    background-size: 22px 22px;
    mask-image: radial-gradient(ellipse 70% 60% at 50% 55%, #000 30%, transparent 75%);
}

/* How it works: back to white, so the three steps read as a pause. */
#how { background: linear-gradient(180deg, #edf5fa 0%, #fff 100%); }

/* Platforms: white warming into peach, the hero's last colour. */
#platforms { background: linear-gradient(180deg, #fff 0%, #fdf1ea 100%); }
#platforms::before {
    background: radial-gradient(36rem 20rem at 50% 100%, rgba(240, 181, 160, .28), transparent 70%);
}

/* On the way: peach cooling to a quiet grey before the dark footer — the
   future, deliberately in the least colour on the page. */
#soon { background: linear-gradient(180deg, #fdf1ea 0%, #f2f4f6 100%); }

.section-title {
    text-align: center;
    font-size: clamp(1.6rem, 4vw, 2.2rem);
    font-weight: 800;
    margin-bottom: .5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--nb-ink-muted);
    font-size: 1.1rem;
    margin-bottom: 3rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

/* ── Feature cards ── */
.feature-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2rem 1.5rem;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
    height: 100%;
    transition: var(--nb-lift);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.feature-icon {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    margin: 0 auto 1.2rem;
    color: #fff;
}
.feature-card h3 { font-size: 1.2rem; font-weight: 700; margin-bottom: .5rem; }
.feature-card p { color: var(--nb-ink-muted); font-size: .95rem; margin: 0; }

.bg-dictation { background: linear-gradient(135deg, #0984e3, #74b9ff); }
.bg-editor    { background: linear-gradient(135deg, #00b894, #55efc4); }
.bg-library   { background: linear-gradient(135deg, #e17055, #fab1a0); }
.bg-midi      { background: linear-gradient(135deg, #6c5ce7, #a29bfe); }
.bg-intervals { background: linear-gradient(135deg, #d63384, #f8a5c2); }

/* ── Platform cards ── */
.platform-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
    height: 100%;
    transition: var(--nb-lift);
}
.platform-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.platform-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
    color: var(--nb-primary);
}
.platform-card h3 { font-size: 1.3rem; font-weight: 700; margin-bottom: .5rem; }
.platform-card p { color: var(--nb-ink-muted); font-size: .95rem; margin-bottom: 1.5rem; }
.btn-platform {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .6rem 1.8rem;
    border-radius: 50px;
    font-weight: 600;
    text-decoration: none;
    background: var(--nb-primary);
    color: #fff;
    transition: background .2s, transform .2s;
}
.btn-platform:hover { background: var(--nb-primary-pressed); color: #fff; transform: translateY(-1px); }

/* ── How it works ── */
.step-number {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background: var(--nb-primary);
    color: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin: 0 auto 1rem;
}

/* ── Footer ── */
.landing-footer {
    background: var(--nb-ink);
    color: rgba(255,255,255,.7);
    text-align: center;
    padding: 2.5rem 1rem;
    font-size: .9rem;
}
.landing-footer a { color: #74b9ff; text-decoration: none; }
.landing-footer a:hover { color: #fff; }

/* ── Pricing cards ── */
.pricing-card {
    background: #fff;
    border-radius: 1rem;
    padding: 2.5rem 2rem;
    text-align: center;
    box-shadow: 0 2px 20px rgba(0,0,0,.06);
    height: 100%;
    transition: var(--nb-lift);
    position: relative;
}
.pricing-card:hover { transform: translateY(-4px); box-shadow: 0 8px 30px rgba(0,0,0,.1); }
.pricing-card-free { background: linear-gradient(135deg, #f5e6d3 0%, #e8d5c0 30%, #f0dcc8 60%, #f7ead8 100%); }
.pricing-card-pro  { background: linear-gradient(135deg, #e8e8e8 0%, #d4d4d4 30%, #e0e0e0 60%, #f0f0f0 100%); }
.pricing-card-school { background: linear-gradient(135deg, #fdf6e3 0%, #f5e6b8 30%, #fceec4 60%, #fef8e8 100%); }
.pricing-card-conservatory { background: linear-gradient(135deg, #e8eef5 0%, #d0dcea 30%, #dce5f0 60%, #eaf0f7 100%); }
.pricing-featured {
    border: 2px solid var(--nb-primary);
    transform: scale(1.05);
    box-shadow: 0 4px 30px rgba(26,110,138,.15);
}
.pricing-featured:hover { transform: scale(1.05) translateY(-4px); }
.pricing-popular {
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--nb-primary);
    color: #fff;
    font-size: .75rem;
    font-weight: 700;
    padding: .3rem 1.2rem;
    border-radius: 50px;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.pricing-badge {
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: .5rem;
    color: var(--nb-ink);
}
.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: .15rem;
    margin-bottom: .25rem;
}
.pricing-amount {
    font-size: 2.8rem;
    font-weight: 800;
    color: var(--nb-primary);
    line-height: 1;
}
.pricing-currency {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--nb-primary);
}
.pricing-period {
    font-size: .9rem;
    color: var(--nb-ink-muted);
    margin-bottom: 1.5rem;
}
.pricing-features {
    list-style: none;
    padding: 0;
    margin: 0 0 2rem;
    text-align: left;
}
.pricing-features li {
    padding: .45rem 0;
    font-size: .95rem;
    color: var(--nb-ink);
    border-bottom: 1px solid #f0f0f0;
}
.pricing-features li:last-child { border-bottom: none; }
.pricing-features i {
    color: #00b894;
    margin-right: .5rem;
    font-size: .85rem;
}
.btn-pricing {
    display: inline-block;
    padding: .7rem 2rem;
    border-radius: 50px;
    font-weight: 700;
    text-decoration: none;
    border: 2px solid var(--nb-primary);
    color: var(--nb-primary);
    background: #fff;
    transition: all .2s;
}
.btn-pricing:hover { background: #f0f8fb; color: var(--nb-primary); transform: translateY(-1px); }
.btn-pricing-featured {
    background: var(--nb-primary);
    color: #fff;
    border-color: var(--nb-primary);
}
.btn-pricing-featured:hover { background: var(--nb-primary-pressed); color: #fff; border-color: var(--nb-primary-pressed); }

/* ── Billing toggle ── */
.billing-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .75rem;
    margin-bottom: 2.5rem;
}
.billing-toggle span {
    font-size: .95rem;
    font-weight: 600;
    color: var(--nb-ink-muted);
    transition: color .2s;
}
.billing-toggle span.active { color: var(--nb-ink); }
.billing-toggle .toggle-track {
    position: relative;
    width: 52px;
    height: 28px;
    background: #b2bec3;
    border-radius: 50px;
    cursor: pointer;
    transition: background .2s;
}
.billing-toggle .toggle-track.yearly { background: var(--nb-primary); }
.billing-toggle .toggle-track::after {
    content: '';
    position: absolute;
    top: 3px;
    left: 3px;
    width: 22px;
    height: 22px;
    background: #fff;
    border-radius: 50%;
    transition: transform .2s;
}
.billing-toggle .toggle-track.yearly::after { transform: translateX(24px); }
.billing-save {
    font-size: .75rem;
    font-weight: 700;
    color: #00b894;
    background: #e8f8f5;
    padding: .15rem .6rem;
    border-radius: 50px;
}

/* ── Responsive ── */
@media (max-width: 576px) {
    .hero-cta { flex-direction: column; align-items: center; }
    .btn-hero { width: 100%; max-width: 280px; justify-content: center; }
}

/* A platform that is built but not published. Reads as a state, not a button:
   no pointer, no hover lift, and aria-disabled so it is not announced as an
   action a reader can take. */
.btn-platform.is-pending {
    background: transparent;
    color: var(--nb-ink-muted);
    border: 1px dashed var(--nb-border-faint);
    cursor: default;
}
.btn-platform.is-pending:hover {
    transform: none;
    box-shadow: none;
}

/* ── On the way ───────────────────────────────────────────────────────────
   The same treatment as the Coming soon notices in Platforms: a dashed edge
   and no fill, so the card reads as a state rather than as something to press.
   Quieter than the real feature cards on purpose — ten things above this
   section work today, and a page heavy with future reads as one that is not
   ready. */
.feature-card.is-soon {
    background: transparent;
    border: 1px dashed var(--nb-border-faint);
    box-shadow: none;
}
.feature-card.is-soon:hover {
    transform: none;
    box-shadow: none;
}

/* No gradient fill: the coloured discs belong to what is built. */
.feature-icon-soon {
    background: var(--nb-surface);
    color: var(--nb-ink-muted);
}

/* ── Hero section links ── */
.hero-links { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin-top: 2rem; }
.hero-links a {
    padding: .35rem .9rem;
    border-radius: 2rem;
    corner-shape: squircle;
    background: rgba(255,255,255,.55);
    color: var(--nb-ink);
    font-size: .9rem;
    font-weight: 600;
    text-decoration: none;
    transition: background .2s ease, color .2s ease;
}
.hero-links a:hover, .hero-links a:focus-visible { background: #fff; color: var(--nb-primary); }

/* ── Exercise families ──
   One card per skill, listing every exercise in it as a link. Left-aligned:
   it is a list to scan, not a slogan. */
.family-card { text-align: left; }
.family-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.1rem; }
.family-head .feature-icon { margin: 0; flex-shrink: 0; }
.family-head h3 { margin: 0; }
.family-count { margin: 0; font-size: .85rem; color: var(--nb-ink-muted); }
.family-list { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .45rem; }
.family-chip {
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    padding: .35rem .75rem;
    border-radius: 2rem;
    background: var(--nb-surface);
    border: 1px solid var(--nb-border-faint);
    color: var(--nb-ink);
    font-size: .88rem;
    text-decoration: none;
    transition: border-color .15s ease, color .15s ease, background .15s ease;
}
.family-chip:hover, .family-chip:focus-visible { border-color: var(--nb-primary); color: var(--nb-primary); background: #fff; }
.family-chip-icon { color: var(--nb-primary); font-size: .8rem; display: inline-flex; }
.family-chip-icon .svg-icon { width: 1em; height: 1em; }

/* ── Theory topics ──
   The first topic — how to take a dictation — spans two columns: it is the
   page the rest of the section builds towards. */
.topic-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.topic-card { display: block; text-decoration: none; color: inherit; text-align: left; }
.topic-card.is-lead { background: linear-gradient(135deg, rgba(5,150,105,.08), #fff 70%); }
.topic-icon {
    width: 3rem; height: 3rem; border-radius: .9rem;
    display: grid; place-items: center;
    font-size: 1.3rem; color: #fff;
    margin-bottom: 1rem;
    background: var(--topic-colour, var(--nb-primary));
}
.topic-card.card-method { --topic-colour: #059669; }
.topic-card.card-chords { --topic-colour: #8b5cf6; }
.topic-card.card-degrees { --topic-colour: #0891b2; }
.topic-card.card-circle { --topic-colour: #e67e22; }
.topic-card.card-keys { --topic-colour: #db2777; }
.topic-card.card-accent { --topic-colour: #b45309; }
.topic-card.card-intervals-guide { --topic-colour: #4f46e5; }
.topic-card.card-scales { --topic-colour: #65a30d; }
.topic-card.card-roadmap { --topic-colour: #be123c; }
.topic-icon .svg-icon { width: 1em; height: 1em; }

/* ── Classes ── */
.classes-card { text-align: left; }
.classes-head { display: flex; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.classes-head .feature-icon { margin: 0; flex-shrink: 0; }
.classes-head h3 { margin: 0; }
.classes-list { list-style: none; margin: 0; padding: 0; display: grid; gap: .65rem; }
.classes-list li { display: flex; gap: .6rem; align-items: baseline; color: var(--nb-ink-muted); line-height: 1.45; }
.classes-list i { color: #00b894; flex-shrink: 0; }

@media (max-width: 767.98px) {
    .topic-grid { grid-template-columns: 1fr; }
}
@media (min-width: 768px) and (max-width: 991.98px) {
    .topic-grid { grid-template-columns: repeat(2, 1fr); }
}
.family-head .feature-icon, .classes-head .feature-icon { width: 56px; height: 56px; font-size: 1.3rem; }
