:root {
    color-scheme: light dark;
    --background: #f7f9fc;
    --surface: #ffffff;
    --surface-muted: #eef1f8;
    --text: #14161c;
    --text-secondary: #5b6170;
    --border: rgba(20, 22, 28, 0.08);
    --accent: #2748bf;
    --accent-contrast: #ffffff;
    --violet: #7538f5;
    --violet-soft: #b894ff;
    --stem-vocals: #8a57ff;
    --stem-drums: #e8913a;
    --stem-bass: #2fa36b;
    --stem-other: #2b8fd6;
    --radius: 20px;
    --content-width: 1040px;
    --prose-width: 720px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --background: #171717;
        --surface: #212121;
        --surface-muted: #2a2a2c;
        --text: #f2f2f5;
        --text-secondary: #a1a1aa;
        --border: rgba(255, 255, 255, 0.09);
        --accent: #5e7bea;
        --accent-contrast: #ffffff;
        --violet: #a47bff;
        --violet-soft: #c8adff;
        --stem-vocals: #a47bff;
        --stem-drums: #f0a35a;
        --stem-bass: #4cc28a;
        --stem-other: #55aef0;
    }
}

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

html {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
}

body {
    margin: 0;
    background: var(--background);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    font-size: 17px;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

main {
    flex: 1;
}

a {
    color: var(--accent);
    text-decoration: none;
}

a:hover {
    text-decoration: underline;
}

img,
svg {
    display: block;
    max-width: 100%;
}

.container {
    width: 100%;
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 20px;
}

/* Header */

.site-header {
    position: sticky;
    top: 0;
    z-index: 10;
    background: color-mix(in srgb, var(--background) 82%, transparent);
    -webkit-backdrop-filter: saturate(180%) blur(20px);
    backdrop-filter: saturate(180%) blur(20px);
    border-bottom: 1px solid var(--border);
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 60px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text);
    font-weight: 600;
    font-size: 18px;
}

.brand:hover {
    text-decoration: none;
}

.brand img {
    width: 30px;
    height: 30px;
}

.site-nav {
    display: flex;
    gap: 24px;
    font-size: 15px;
}

.site-nav a {
    color: var(--text-secondary);
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
    color: var(--text);
    text-decoration: none;
}

/* Buttons */

.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 13px 24px;
    border-radius: 999px;
    background: var(--accent);
    color: var(--accent-contrast);
    font-weight: 600;
    font-size: 16px;
    transition: opacity 0.15s ease;
}

.button:hover {
    text-decoration: none;
    opacity: 0.88;
}

.button svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

/* Hero */

.hero {
    padding: 88px 0 56px;
    text-align: center;
}

.hero-icon {
    width: 112px;
    height: 112px;
    margin: 0 auto 28px;
    filter: drop-shadow(0 12px 28px rgba(117, 56, 245, 0.28));
}

.hero h1 {
    margin: 0 auto;
    max-width: 14ch;
    font-size: clamp(40px, 7vw, 64px);
    line-height: 1.05;
    letter-spacing: -0.03em;
    font-weight: 700;
}

.hero .lede {
    margin: 20px auto 32px;
    max-width: 34em;
    color: var(--text-secondary);
    font-size: clamp(18px, 2.4vw, 21px);
}

.hero .fineprint {
    margin: 14px 0 0;
    color: var(--text-secondary);
    font-size: 14px;
}

/* Stem illustration */

.stems {
    margin: 56px auto 0;
    max-width: 760px;
    padding: 28px;
    border-radius: 28px;
    background: var(--surface);
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px -32px rgba(39, 72, 191, 0.35);
    text-align: left;
}

.stem-row {
    display: grid;
    grid-template-columns: 76px 1fr;
    align-items: center;
    gap: 16px;
}

.stem-row + .stem-row {
    margin-top: 14px;
}

.stem-row.mix {
    padding-bottom: 20px;
    margin-bottom: 20px;
    border-bottom: 1px solid var(--border);
}

.stem-label {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-secondary);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.stem-wave {
    height: 36px;
    width: 100%;
}

.stem-wave.mix {
    color: var(--text-secondary);
}

.stem-wave.vocals {
    color: var(--stem-vocals);
}

.stem-wave.drums {
    color: var(--stem-drums);
}

.stem-wave.bass {
    color: var(--stem-bass);
}

.stem-wave.other {
    color: var(--stem-other);
}

/* Sections */

.section {
    padding: 72px 0;
}

.section-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto 44px;
}

.section-header h2 {
    margin: 0;
    font-size: clamp(30px, 4.5vw, 40px);
    line-height: 1.15;
    letter-spacing: -0.02em;
}

.section-header p {
    margin: 14px 0 0;
    color: var(--text-secondary);
    font-size: 18px;
}

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
}

.card {
    padding: 28px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
}

.card h3 {
    margin: 16px 0 8px;
    font-size: 19px;
    letter-spacing: -0.01em;
}

.card p {
    margin: 0;
    color: var(--text-secondary);
    font-size: 16px;
}

.card-icon {
    width: 40px;
    height: 40px;
    padding: 9px;
    border-radius: 12px;
    background: color-mix(in srgb, var(--violet) 14%, transparent);
    color: var(--violet);
}

.card-icon svg {
    width: 22px;
    height: 22px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.privacy-callout {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 28px;
    align-items: center;
    padding: 40px;
    border-radius: 28px;
    background: linear-gradient(135deg, color-mix(in srgb, var(--violet) 16%, var(--surface)), var(--surface));
    border: 1px solid var(--border);
}

.privacy-callout .card-icon {
    width: 64px;
    height: 64px;
    padding: 16px;
    border-radius: 18px;
}

.privacy-callout .card-icon svg {
    width: 32px;
    height: 32px;
}

.privacy-callout h2 {
    margin: 0 0 8px;
    font-size: clamp(24px, 3.4vw, 30px);
    letter-spacing: -0.02em;
    line-height: 1.2;
}

.privacy-callout p {
    margin: 0;
    color: var(--text-secondary);
}

.plans {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 16px;
    max-width: 820px;
    margin: 0 auto;
}

.plan h3 {
    margin-top: 0;
}

.plan .plan-tag {
    display: inline-block;
    margin-bottom: 12px;
    padding: 3px 10px;
    border-radius: 999px;
    background: var(--surface-muted);
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
}

.plan.pro .plan-tag {
    background: color-mix(in srgb, var(--violet) 16%, transparent);
    color: var(--violet);
}

.plan ul {
    margin: 12px 0 0;
    padding-left: 20px;
    color: var(--text-secondary);
    font-size: 16px;
}

.plan li + li {
    margin-top: 4px;
}

/* Long-form documents */

.document {
    max-width: var(--prose-width);
    margin: 0 auto;
    padding: 64px 20px 88px;
}

.document h1 {
    margin: 0;
    font-size: clamp(34px, 5vw, 44px);
    line-height: 1.1;
    letter-spacing: -0.025em;
}

.document .meta {
    margin: 12px 0 0;
    color: var(--text-secondary);
    font-size: 15px;
}

.document .summary {
    margin: 32px 0 8px;
    padding: 22px 24px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.document .summary p {
    margin: 0;
}

.document .summary ul {
    margin: 10px 0 0;
    padding-left: 20px;
}

.document h2 {
    margin: 44px 0 12px;
    font-size: 23px;
    letter-spacing: -0.015em;
    line-height: 1.3;
}

.document h3 {
    margin: 28px 0 8px;
    font-size: 18px;
}

.document p,
.document li {
    color: var(--text);
}

.document ul {
    padding-left: 22px;
}

.document li + li {
    margin-top: 6px;
}

.faq details {
    border-bottom: 1px solid var(--border);
}

.faq details:first-of-type {
    border-top: 1px solid var(--border);
}

.faq summary {
    cursor: pointer;
    list-style: none;
    padding: 18px 32px 18px 0;
    position: relative;
    font-weight: 600;
}

.faq summary::-webkit-details-marker {
    display: none;
}

.faq summary::after {
    content: "+";
    position: absolute;
    right: 4px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-secondary);
    font-size: 22px;
    font-weight: 400;
}

.faq details[open] summary::after {
    content: "\2212";
}

.faq .answer {
    padding: 0 0 18px;
}

.faq .answer p {
    margin: 0 0 10px;
    color: var(--text-secondary);
}

.faq .answer p:last-child {
    margin-bottom: 0;
}

.contact-card {
    margin: 32px 0 8px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 24px;
    border-radius: 16px;
    background: var(--surface);
    border: 1px solid var(--border);
}

.contact-card p {
    margin: 0;
}

.contact-card .contact-hint {
    color: var(--text-secondary);
    font-size: 15px;
}

/* Footer */

.site-footer {
    border-top: 1px solid var(--border);
    padding: 32px 0;
    color: var(--text-secondary);
    font-size: 14px;
}

.site-footer .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 12px 24px;
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 20px;
}

.footer-mail svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 1.8;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.footer-links a {
    color: var(--text-secondary);
}

.footer-links a:hover {
    color: var(--text);
}

/* Not found */

.not-found {
    text-align: center;
    padding: 120px 20px;
}

.not-found h1 {
    margin: 0 0 12px;
    font-size: 40px;
    letter-spacing: -0.02em;
}

.not-found p {
    margin: 0 0 28px;
    color: var(--text-secondary);
}

@media (max-width: 600px) {
    .hero {
        padding: 56px 0 40px;
    }

    .stems {
        padding: 20px;
    }

    .stem-row {
        grid-template-columns: 58px 1fr;
        gap: 10px;
    }

    .stem-label {
        font-size: 11px;
    }

    .stem-wave path {
        stroke-width: 2;
    }

    .privacy-callout {
        grid-template-columns: 1fr;
        padding: 28px;
        gap: 20px;
    }

    .site-nav {
        gap: 18px;
    }

    .section {
        padding: 56px 0;
    }
}
