/* Video to Mp3 — site styles
   Mobile-first, no JS, no external fonts (system stack only). Color palette
   mirrors the app's lavender/teal accent so the brand feels continuous when a
   user lands here from the App Store listing. */

:root {
    --bg: #0d0a1f;
    --bg-soft: #16122d;
    --surface: rgba(255, 255, 255, 0.04);
    --surface-strong: rgba(255, 255, 255, 0.08);
    --border: rgba(255, 255, 255, 0.08);
    --text: #f5f3ff;
    --text-secondary: rgba(245, 243, 255, 0.7);
    --text-muted: rgba(245, 243, 255, 0.5);
    --lavender: #b39ddb;
    --teal: #80deea;
    --pink: #f48fb1;
    --amber: #ffcc80;
    --gradient: linear-gradient(135deg, #b39ddb 0%, #80deea 100%);
    --radius: 16px;
    --radius-sm: 10px;
    --max-width: 1080px;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    background-color: var(--bg);
    color: var(--text);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
    background-image:
        radial-gradient(circle at 15% 10%, rgba(179, 157, 219, 0.18) 0%, transparent 40%),
        radial-gradient(circle at 85% 60%, rgba(128, 222, 234, 0.14) 0%, transparent 45%);
    background-attachment: fixed;
}

a {
    color: var(--lavender);
    text-decoration: none;
    transition: color 0.15s ease;
}

a:hover {
    color: var(--teal);
}

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

/* ─── Layout ─── */

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

.nav {
    padding: 22px 0;
    border-bottom: 1px solid var(--border);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    background: rgba(13, 10, 31, 0.7);
    position: sticky;
    top: 0;
    z-index: 10;
}

.nav-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.brand {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 700;
    font-size: 17px;
    color: var(--text);
}

.brand-mark {
    width: 32px;
    height: 32px;
    border-radius: 8px;
    background: var(--gradient);
    display: grid;
    place-items: center;
    font-size: 14px;
    color: #1a0e3a;
    font-weight: 800;
}

.nav-links {
    display: flex;
    gap: 22px;
    list-style: none;
    font-size: 15px;
    flex-wrap: wrap;
}

.nav-links a {
    color: var(--text-secondary);
    font-weight: 500;
}

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

main {
    padding: 64px 0 96px;
}

.section + .section {
    margin-top: 80px;
}

footer {
    border-top: 1px solid var(--border);
    padding: 48px 0;
    color: var(--text-muted);
    font-size: 14px;
}

.footer-inner {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    gap: 18px;
}

.footer-links {
    display: flex;
    gap: 22px;
    flex-wrap: wrap;
    list-style: none;
}

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

/* ─── Hero ─── */

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

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 13px;
    font-weight: 500;
    color: var(--text-secondary);
    margin-bottom: 24px;
}

.hero-badge::before {
    content: "";
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: var(--teal);
    box-shadow: 0 0 12px var(--teal);
}

.hero-title {
    font-size: clamp(36px, 6vw, 64px);
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.05;
    margin-bottom: 20px;
    background: linear-gradient(180deg, #ffffff 0%, #c7b8e8 100%);
    -webkit-background-clip: text;
    background-clip: text;
    -webkit-text-fill-color: transparent;
}

.hero-subtitle {
    font-size: clamp(16px, 2vw, 19px);
    color: var(--text-secondary);
    max-width: 620px;
    margin: 0 auto 32px;
}

.hero-actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 14px 26px;
    border-radius: 14px;
    font-weight: 600;
    font-size: 16px;
    border: 1px solid transparent;
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.2s ease;
}

.btn-primary {
    background: var(--gradient);
    color: #1a0e3a;
    box-shadow: 0 18px 38px -10px rgba(179, 157, 219, 0.5);
}

.btn-primary:hover {
    color: #1a0e3a;
    transform: translateY(-2px);
    box-shadow: 0 22px 44px -8px rgba(179, 157, 219, 0.6);
}

.btn-secondary {
    background: var(--surface);
    border-color: var(--border);
    color: var(--text);
}

.btn-secondary:hover {
    background: var(--surface-strong);
    color: var(--text);
}

/* ─── Features ─── */

.section-title {
    font-size: clamp(26px, 4vw, 38px);
    font-weight: 700;
    letter-spacing: -0.01em;
    text-align: center;
    margin-bottom: 16px;
}

.section-lead {
    text-align: center;
    color: var(--text-secondary);
    max-width: 560px;
    margin: 0 auto 48px;
    font-size: 17px;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}

.feature-card {
    padding: 26px 24px;
    border-radius: var(--radius);
    background: var(--surface);
    border: 1px solid var(--border);
    transition: transform 0.18s ease, border-color 0.18s ease, background 0.18s ease;
}

.feature-card:hover {
    transform: translateY(-3px);
    border-color: rgba(179, 157, 219, 0.3);
    background: var(--surface-strong);
}

.feature-icon {
    width: 44px;
    height: 44px;
    border-radius: 12px;
    background: linear-gradient(135deg, rgba(179, 157, 219, 0.25), rgba(128, 222, 234, 0.18));
    display: grid;
    place-items: center;
    margin-bottom: 16px;
    font-size: 22px;
}

.feature-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 6px;
}

.feature-text {
    font-size: 15px;
    color: var(--text-secondary);
    line-height: 1.55;
}

/* ─── Format pill row ─── */

.formats {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    justify-content: center;
}

.format-pill {
    padding: 10px 18px;
    border-radius: 999px;
    background: var(--surface);
    border: 1px solid var(--border);
    font-size: 14px;
    font-weight: 600;
    letter-spacing: 0.04em;
    color: var(--text-secondary);
}

.format-pill.free {
    background: linear-gradient(135deg, rgba(179, 157, 219, 0.25), rgba(128, 222, 234, 0.2));
    color: var(--text);
    border-color: rgba(179, 157, 219, 0.4);
}

/* ─── Doc page (privacy / terms / support) ─── */

.doc {
    max-width: 760px;
    margin: 0 auto;
}

.doc-meta {
    color: var(--text-muted);
    font-size: 14px;
    margin-bottom: 12px;
}

.doc h1 {
    font-size: clamp(30px, 4vw, 44px);
    font-weight: 700;
    letter-spacing: -0.01em;
    margin-bottom: 28px;
}

.doc h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 14px;
    color: var(--text);
}

.doc h3 {
    font-size: 17px;
    font-weight: 700;
    margin: 24px 0 8px;
    color: var(--text);
}

.doc p, .doc ul, .doc ol {
    color: var(--text-secondary);
    font-size: 16px;
    margin-bottom: 14px;
    line-height: 1.7;
}

.doc ul, .doc ol {
    padding-left: 22px;
}

.doc li {
    margin-bottom: 6px;
}

.doc a {
    text-decoration: underline;
    text-underline-offset: 2px;
}

.callout {
    padding: 18px 20px;
    border-radius: var(--radius-sm);
    background: rgba(128, 222, 234, 0.07);
    border: 1px solid rgba(128, 222, 234, 0.2);
    color: var(--text-secondary);
    margin: 18px 0 22px;
    font-size: 15px;
}

/* ─── Responsive trims ─── */

@media (max-width: 600px) {
    main {
        padding: 32px 0 64px;
    }
    .nav-links {
        gap: 14px;
        font-size: 14px;
    }
    .footer-inner {
        flex-direction: column;
    }
    .feature-card {
        padding: 22px 20px;
    }
}
