/* ═══════════════════════════════════════════════════════
    simpleSoundbank — Product Page Stylesheet
    ═══════════════════════════════════════════════════════ */

/* ── Design tokens ── */
:root {
    --font-title:   "Inter", -apple-system, "Segoe UI", Roboto, sans-serif;
    --font-body:    "Inter Tight", -apple-system, "Segoe UI", Roboto, sans-serif;

    --bg:           #0c0c0e;
    --surface:      #141416;
    --surface-2:    #1b1b1f;
    --surface-3:    #222228;
    --border:       rgba(255, 255, 255, 0.055);
    --border-hover: rgba(255, 255, 255, 0.10);
    --border-accent:rgba(200, 165, 80, 0.18);

    --text:         #e4e0d9;
    --text-secondary: #b0aa9f;
    --text-muted:   #7d786f;
    --text-dim:     #504d46;

    --gold:         #c9a04e;
    --gold-light:   #ddb966;
    --gold-subtle:  rgba(200, 165, 80, 0.07);
    --gold-glow:    rgba(200, 165, 80, 0.10);

    --green:        #5cb86a;
    --red-muted:    #c87a6e;

    --radius-sm:    6px;
    --radius-md:    12px;
    --radius-lg:    16px;
    --radius-xl:    22px;
    --radius-pill:  999px;

    --shadow-sm:    0 1px 2px rgba(0,0,0,0.3);
    --shadow-card:  0 1px 3px rgba(0,0,0,0.2), 0 0 0 1px var(--border);
    --shadow-card-hover:  0 4px 16px rgba(0,0,0,0.3), 0 0 0 1px var(--border-hover);

    --max-w:        1080px;
    --ease:         cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --ease-out:     cubic-bezier(0.16, 1, 0.3, 1);
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

html {
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

body {
    font-family: var(--font-body);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    overflow-x: hidden;
    font-size: 15px;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-title);
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; height: auto; }
ul { list-style: none; }

/* ── Subtle texture — reduced from previous heavy noise ── */
body::before {
    content: "";
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.018;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
    background-size: 200px;
}

/* ── Layout ── */
.header-inner,
.hero,
.features,
.pricing,
.download-inner,
.purchase-note,
.footer-inner {
    width: min(calc(100% - 2rem), var(--max-w));
    margin: 0 auto;
}

/* ═══════════════════════
   Header
   ═══════════════════════ */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    padding: 0 0;
    background: rgba(12, 12, 14, 0.85);
    backdrop-filter: blur(20px) saturate(1.5);
    -webkit-backdrop-filter: blur(20px) saturate(1.5);
    border-bottom: 1px solid var(--border);
    transition: box-shadow 300ms var(--ease);
}

.site-header.is-scrolled {
    box-shadow: 0 1px 12px rgba(0,0,0,0.25);
}

.header-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 52px;
}

.brand-mark {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-family: var(--font-title);
    font-size: 0.95rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    color: var(--text);
    white-space: nowrap;
}

.brand-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 6px;
    background: linear-gradient(135deg, var(--gold), var(--gold-light));
    color: #1a130a;
    font-size: 0.75rem;
    font-weight: 800;
}

.site-nav {
    display: flex;
    align-items: center;
    gap: 0.15rem;
}

.site-nav a {
    padding: 0.35rem 0.7rem;
    border-radius: var(--radius-pill);
    color: var(--text-muted);
    font-size: 0.82rem;
    font-weight: 500;
    transition: color 180ms var(--ease), background 180ms var(--ease);
}

.site-nav a:hover,
.site-nav a:focus-visible {
    color: var(--text);
    background: rgba(255,255,255,0.04);
}

.nav-cta {
    background: var(--gold-subtle) !important;
    color: var(--gold) !important;
    border: 1px solid var(--border-accent);
    font-weight: 600 !important;
}
.nav-cta:hover {
    background: rgba(200,165,80,0.12) !important;
}

/* ═══════════════════════
   Hero
   ═══════════════════════ */
.hero {
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2.5rem;
    align-items: center;
    padding: 4.5rem 0 3.5rem;
}

.hero h1 {
    font-size: clamp(2.2rem, 4.5vw, 3.4rem);
    font-weight: 800;
    line-height: 1.08;
    letter-spacing: -0.035em;
    color: #fff;
}

.hero-text {
    margin-top: 1rem;
    max-width: 28rem;
    font-size: 0.98rem;
    color: var(--text-secondary);
    line-height: 1.65;
}

.hero-text strong {
    color: var(--text);
    font-weight: 600;
}

.hero-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: 1.5rem;
}

.hero-note {
    margin-top: 0.85rem;
    font-size: 0.77rem;
    color: var(--text-dim);
    letter-spacing: 0.03em;
}

/* ── Hero visual ── */
.hero-visual {
    position: relative;
    margin: 0;
}

.visual-glow {
    position: absolute;
    inset: -20%;
    border-radius: 50%;
    background: radial-gradient(circle, var(--gold-glow) 0%, transparent 65%);
    filter: blur(50px);
    z-index: 0;
    opacity: 0.6;
    animation: breathe 8s ease-in-out infinite;
}

@keyframes breathe {
    0%, 100% { opacity: 0.4; transform: scale(1); }
    50% { opacity: 0.6; transform: scale(1.03); }
}

.hero-visual img {
    position: relative;
    z-index: 1;
    border-radius: var(--radius-md);
    box-shadow:
        0 2px 30px rgba(0,0,0,0.45),
        0 0 0 1px rgba(255,255,255,0.04);
    transition: transform 400ms var(--ease-out), box-shadow 400ms var(--ease-out);
}

.hero-visual:hover img {
    transform: translateY(-2px);
    box-shadow:
        0 8px 40px rgba(0,0,0,0.5),
        0 0 0 1px rgba(255,255,255,0.06);
}

/* ═══════════════════════
   Buttons
   ═══════════════════════ */
.button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    height: 40px;
    padding: 0 1.2rem;
    border: 1px solid transparent;
    border-radius: var(--radius-pill);
    font-family: inherit;
    font-size: 0.84rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 200ms var(--ease);
    white-space: nowrap;
    text-decoration: none;
}

.btn-icon {
    width: 14px;
    height: 14px;
    flex-shrink: 0;
}

.button-primary {
    background: linear-gradient(180deg, var(--gold-light) 0%, var(--gold) 100%);
    color: #1a130a;
    border-color: rgba(220, 190, 100, 0.25);
    box-shadow: 0 1px 8px rgba(200,165,80,0.15);
}

.button-primary:hover {
    box-shadow: 0 2px 14px rgba(200,165,80,0.25);
    transform: translateY(-1px);
    filter: brightness(1.05);
}

.button-primary:active {
    transform: translateY(0);
    filter: brightness(0.97);
}

.button-ghost {
    background: rgba(255,255,255,0.035);
    color: var(--text);
    border-color: var(--border);
}

.button-ghost:hover {
    background: rgba(255,255,255,0.06);
    border-color: var(--border-hover);
}

.button-ghost:active {
    background: rgba(255,255,255,0.04);
}

/* ═══════════════════════
   Section headers
   ═══════════════════════ */
.section-header {
    text-align: center;
    margin-bottom: 2.5rem;
}

.section-label {
    display: inline-block;
    color: var(--gold);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    margin-bottom: 0.6rem;
}

.section-header h2 {
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.025em;
    color: #fff;
}

/* ═══════════════════════
   Features
   ═══════════════════════ */
.features {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.75rem;
}

.feature-card {
    padding: 1.35rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--border);
    background: var(--surface);
    transition: border-color 250ms var(--ease), box-shadow 250ms var(--ease);
}

.feature-card:hover {
    border-color: var(--border-hover);
    box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}

.feature-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    border-radius: var(--radius-sm);
    background: var(--gold-subtle);
    border: 1px solid var(--border-accent);
    margin-bottom: 0.85rem;
}

.feature-icon svg {
    width: 17px;
    height: 17px;
    color: var(--gold);
}

.feature-card h3 {
    font-size: 0.92rem;
    font-weight: 650;
    margin-bottom: 0.3rem;
    color: var(--text);
    letter-spacing: -0.01em;
}

.feature-card p {
    font-size: 0.84rem;
    color: var(--text-muted);
    line-height: 1.55;
}

/* ═══════════════════════
   Pricing
   ═══════════════════════ */
.pricing {
    padding: 4rem 0;
    border-top: 1px solid var(--border);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    max-width: 640px;
    margin: 0 auto;
}

.price-card {
    position: relative;
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--surface);
    display: flex;
    flex-direction: column;
}

.price-card-highlight {
    border-color: var(--border-accent);
    background: linear-gradient(180deg, rgba(28,25,18,1) 0%, var(--surface) 100%);
}

.price-tier {
    font-size: 0.66rem;
    font-weight: 700;
    letter-spacing: 0.14em;
    text-transform: uppercase;
    color: var(--text-muted);
    margin-bottom: 0.35rem;
}

.price-card-highlight .price-tier {
    color: var(--gold);
}

.price-amount {
    font-size: 2.6rem;
    font-weight: 800;
    letter-spacing: -0.04em;
    line-height: 1;
    color: #fff;
    margin-bottom: 0.4rem;
}

.price-cents {
    font-size: 1.3rem;
    font-weight: 700;
    vertical-align: super;
    margin-left: -0.12rem;
}

.price-desc {
    color: var(--text-muted);
    font-size: 0.84rem;
    margin-bottom: 1.2rem;
    line-height: 1.5;
}

.price-features {
    flex: 1;
    margin-bottom: 1.25rem;
}

.price-features li {
    position: relative;
    padding: 0.3rem 0 0.3rem 1.3rem;
    font-size: 0.84rem;
    color: var(--text-muted);
}

.price-features li::before {
    content: "✓";
    position: absolute;
    left: 0;
    color: var(--green);
    font-weight: 700;
    font-size: 0.8rem;
}

.feature-limited::before {
    content: "—" !important;
    color: var(--text-dim) !important;
}

.feature-plus {
    color: var(--text) !important;
    font-weight: 500;
}

.price-btn {
    width: 100%;
    justify-content: center;
}

.price-tag {
    display: block;
    text-align: center;
    margin-top: 0.6rem;
    font-size: 0.72rem;
    color: var(--text-dim);
    font-weight: 500;
    letter-spacing: 0.03em;
}

/* ═══════════════════════
   Download
   ═══════════════════════ */
.download {
    padding: 3.5rem 0;
    border-top: 1px solid var(--border);
}

.download-inner {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-xl);
    border: 1px solid var(--border);
    background: var(--surface);
}

.download-inner h2 {
    font-size: clamp(1.4rem, 2.5vw, 1.8rem);
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #fff;
    margin-bottom: 0.5rem;
}

.download-inner p {
    color: var(--text-muted);
    font-size: 0.92rem;
    max-width: 26rem;
    margin: 0 auto 1.3rem;
    line-height: 1.55;
}

.download-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    justify-content: center;
}

/* ═══════════════════════
   Purchase note
   ═══════════════════════ */
.purchase-note {
    padding: 1rem 0 3.5rem;
    text-align: center;
}

.purchase-note p {
    color: var(--text-dim);
    font-size: 0.82rem;
}

.purchase-note a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(200, 165, 80, 0.3);
}

.purchase-note a:hover {
    color: var(--gold-light);
    text-decoration-color: var(--gold);
}

/* ═══════════════════════
   Footer
   ═══════════════════════ */
.site-footer {
    border-top: 1px solid var(--border);
    padding: 1.2rem 0;
}

.footer-inner {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.site-footer p {
    color: var(--text-dim);
    font-size: 0.78rem;
}

.site-footer a {
    color: var(--text-muted);
    font-size: 0.78rem;
    transition: color 180ms;
}

.site-footer a:hover {
    color: var(--gold);
}

/* ── Footer links group ── */
.footer-links {
    display: flex;
    gap: 1rem;
}

.footer-links a {
    color: var(--text-muted);
    font-size: 0.78rem;
    transition: color 180ms;
}

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

/* ═══════════════════════
   Legal pages
   ═══════════════════════ */
.legal-page {
    padding: 3rem 0 4.5rem;
}

.legal-inner {
    width: min(calc(100% - 2rem), 680px);
    margin: 0 auto;
}

.legal-header {
    margin-bottom: 2.5rem;
    padding-bottom: 1.75rem;
    border-bottom: 1px solid var(--border);
}

.legal-header h1 {
    font-size: clamp(1.8rem, 3.5vw, 2.4rem);
    font-weight: 700;
    line-height: 1.12;
    letter-spacing: -0.025em;
    color: #fff;
    margin-top: 0.4rem;
}

.legal-updated {
    margin-top: 0.65rem;
    font-size: 0.8rem;
    color: var(--text-dim);
}

.legal-body section {
    margin-bottom: 2rem;
}

.legal-body h2 {
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    margin-bottom: 0.6rem;
    letter-spacing: -0.01em;
}

.legal-body h3 {
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--text);
    margin-top: 1rem;
    margin-bottom: 0.4rem;
}

.legal-body p {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.7;
    margin-bottom: 0.65rem;
}

.legal-body ul {
    margin: 0.4rem 0 0.85rem 0;
    padding: 0;
}

.legal-body li {
    position: relative;
    padding: 0.25rem 0 0.25rem 1.3rem;
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.6;
}

.legal-body li::before {
    content: "•";
    position: absolute;
    left: 0.2rem;
    color: var(--gold);
    font-weight: 700;
}

.legal-body li strong {
    color: var(--text);
    font-weight: 600;
}

.legal-body a {
    color: var(--gold);
    text-decoration: underline;
    text-underline-offset: 2px;
    text-decoration-color: rgba(200, 165, 80, 0.3);
    transition: text-decoration-color 180ms var(--ease);
}

.legal-body a:hover {
    text-decoration-color: var(--gold);
    color: var(--gold-light);
}

.legal-table-wrap {
    overflow-x: auto;
    margin: 0.85rem 0 1rem;
    border-radius: var(--radius-md);
    border: 1px solid var(--border);
}

.legal-body table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
}

.legal-body thead {
    background: var(--surface-2);
}

.legal-body th {
    padding: 0.6rem 0.85rem;
    text-align: left;
    font-weight: 600;
    color: var(--text);
    font-size: 0.76rem;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--border);
}

.legal-body td {
    padding: 0.55rem 0.85rem;
    color: var(--text-secondary);
    border-bottom: 1px solid var(--border);
}

.legal-body tr:last-child td {
    border-bottom: none;
}

/* ═══════════════════════
   Reveal animations
   ═══════════════════════ */
[data-reveal] {
    opacity: 0;
    transform: translateY(14px);
    transition: opacity 500ms var(--ease-out), transform 500ms var(--ease-out);
}

[data-reveal].is-visible {
    opacity: 1;
    transform: translateY(0);
}

[data-reveal]:nth-child(2) { transition-delay: 60ms; }
[data-reveal]:nth-child(3) { transition-delay: 120ms; }
[data-reveal]:nth-child(4) { transition-delay: 180ms; }
[data-reveal]:nth-child(5) { transition-delay: 240ms; }
[data-reveal]:nth-child(6) { transition-delay: 300ms; }

/* ═══════════════════════
   Responsive
   ═══════════════════════ */
@media (max-width: 900px) {
    .hero {
        grid-template-columns: 1fr;
        padding: 2.5rem 0 2rem;
        gap: 2rem;
    }

    .hero h1 { font-size: clamp(2rem, 7vw, 2.8rem); }

    .feature-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .pricing-grid {
        grid-template-columns: 1fr;
        max-width: 360px;
    }

    .download-inner {
        padding: 1.75rem 1.25rem;
    }
}

@media (max-width: 600px) {
    .header-inner {
        flex-direction: column;
        gap: 0.5rem;
        height: auto;
        padding: 0.6rem 0;
    }

    .site-nav {
        flex-wrap: wrap;
        justify-content: center;
    }

    .feature-grid {
        grid-template-columns: 1fr;
    }

    .hero-actions {
        flex-direction: column;
    }

    .hero-actions .button {
        width: 100%;
    }

    .download-actions {
        flex-direction: column;
        align-items: center;
    }

    .download-actions .button {
        width: 100%;
        max-width: 280px;
    }

    .footer-inner {
        flex-direction: column;
        gap: 0.4rem;
        text-align: center;
    }
}
