/* Fast Player — fastplayer.co design system (2026-10 redesign: cinematic dark).
 * Shared by the homepage, the web portal (Add Playlist / Manage) and Support/Terms/Privacy.
 * Palette follows the app: graphite black, white type, one green accent (the icon's bar). */

:root {
    --bg: #07080a;
    --bg-raised: #0d0f12;
    --surface: rgba(255, 255, 255, 0.045);
    --surface-strong: rgba(255, 255, 255, 0.075);
    --line: rgba(255, 255, 255, 0.09);
    --line-strong: rgba(255, 255, 255, 0.16);
    --text: #f2f4f3;
    --muted: #a6aca9;
    --faint: #6b716f;
    --accent: #36e27e;
    --accent-soft: rgba(54, 226, 126, 0.14);
    --accent-ink: #03130a;
    --danger: #ff5d5d;
    --warn: #ffc857;
    --radius-s: 12px;
    --radius: 20px;
    --radius-l: 28px;
    --shadow: 0 30px 80px -20px rgba(0, 0, 0, 0.7);
    --max: 1180px;
    --gutter: clamp(16px, 4vw, 32px);
    --font: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text", "Inter", "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    --mono: "SF Mono", ui-monospace, Menlo, Consolas, monospace;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--font);
    font-size: 16px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
::selection { background: var(--accent); color: var(--accent-ink); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.hidden { display: none !important; }

/* ── Type ─────────────────────────────────────────────────────────────────── */
.eyebrow {
    display: inline-flex; align-items: center; gap: 8px;
    font-size: 12.5px; font-weight: 700; letter-spacing: 0.14em; text-transform: uppercase;
    color: var(--muted);
}
.eyebrow::before { content: ""; width: 18px; height: 2px; border-radius: 2px; background: var(--accent); }
.display {
    font-size: clamp(42px, 7vw, 84px); line-height: 0.98; letter-spacing: -0.035em; font-weight: 800; margin: 0;
}
.h2 { font-size: clamp(32px, 4.6vw, 56px); line-height: 1.04; letter-spacing: -0.03em; font-weight: 800; margin: 0; }
.h3 { font-size: clamp(21px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -0.015em; font-weight: 700; margin: 0; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--muted); line-height: 1.55; margin: 0; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.accent { color: var(--accent); }
.grad-text {
    background: linear-gradient(100deg, #ffffff 10%, #bfeedd 45%, var(--accent) 95%);
    -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Buttons ──────────────────────────────────────────────────────────────── */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 10px;
    height: 52px; padding: 0 24px; border-radius: 999px; border: 1px solid transparent;
    font-weight: 650; font-size: 16px; letter-spacing: -0.01em; cursor: pointer;
    transition: transform .18s ease, background .18s ease, border-color .18s ease, color .18s ease;
    white-space: nowrap;
}
.btn:active { transform: scale(0.98); }
.btn-primary { background: #fff; color: #050607; }
.btn-primary:hover { background: #e9ecea; }
.btn-accent { background: var(--accent); color: var(--accent-ink); }
.btn-accent:hover { background: #5beb97; }
.btn-ghost { background: var(--surface); border-color: var(--line-strong); color: var(--text); }
.btn-ghost:hover { background: var(--surface-strong); }
.btn-sm { height: 40px; padding: 0 18px; font-size: 14.5px; }
.btn[disabled], .btn.is-disabled { opacity: .45; pointer-events: none; }
.btn .arrow { transition: transform .18s ease; }
.btn:hover .arrow { transform: translateX(3px); }

/* App Store badge (inline SVG Apple mark, our own text) */
.store-badge {
    display: inline-flex; align-items: center; gap: 12px; height: 56px; padding: 0 22px 0 18px;
    border-radius: 16px; background: #fff; color: #000; transition: transform .18s ease, background .18s ease;
}
.store-badge:hover { background: #e9ecea; }
.store-badge:active { transform: scale(0.98); }
.store-badge svg { width: 26px; height: 26px; }
.store-badge small { display: block; font-size: 11px; font-weight: 600; letter-spacing: .02em; line-height: 1; }
.store-badge strong { display: block; font-size: 20px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; }

/* ── Pills / chips ────────────────────────────────────────────────────────── */
.pill {
    display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--text);
}
.pill .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent); }
.chip {
    display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px;
    background: var(--surface); border: 1px solid var(--line); font-size: 13px; color: var(--muted); font-weight: 550;
}

/* ── Header ───────────────────────────────────────────────────────────────── */
.site-header {
    position: sticky; top: 0; z-index: 50;
    background: rgba(7, 8, 10, 0.62);
    -webkit-backdrop-filter: saturate(160%) blur(18px); backdrop-filter: saturate(160%) blur(18px);
    border-bottom: 1px solid transparent; transition: border-color .2s ease, background .2s ease;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(7, 8, 10, 0.82); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 20px; }
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 750; font-size: 18px; letter-spacing: -0.02em; white-space: nowrap; flex: none; }
.brand img { width: 34px; height: 34px; border-radius: 9px; box-shadow: 0 0 0 1px var(--line); }
.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a { padding: 8px 14px; border-radius: 999px; color: var(--muted); font-size: 15px; font-weight: 550; white-space: nowrap; transition: color .15s ease, background .15s ease; }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--text); background: var(--surface); }
.nav-actions { display: flex; align-items: center; gap: 10px; flex: none; }
.nav-actions .btn { white-space: nowrap; }
/* Smaller laptop windows: tighter links so all eight fit on one line (the ☰ menu takes over below 1024 px). */
@media (max-width: 1240px) { .nav { gap: 12px; } .nav-links { gap: 0; } .nav-links a { padding: 8px 10px; font-size: 14px; } }
.nav-toggle {
    display: none; width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line);
    background: var(--surface); cursor: pointer; align-items: center; justify-content: center;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
    display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); position: relative; transition: transform .2s ease, opacity .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
.nav-toggle.is-open span { background: transparent; }
.nav-toggle.is-open span::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle.is-open span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1023px) {
    .nav-toggle { display: inline-flex; }
    .nav-links {
        position: absolute; top: 68px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px;
        padding: 10px var(--gutter) 18px; background: #07080a; border-bottom: 1px solid var(--line); box-shadow: 0 24px 40px -12px rgba(0,0,0,.8);
        display: none;
    }
    .nav-links.nav-open { display: flex; }
    .nav-links a { padding: 13px 14px; font-size: 17px; white-space: normal; }
    .nav-actions .btn-download-label { display: none; }
}

/* ── Sections ─────────────────────────────────────────────────────────────── */
.section { padding: clamp(64px, 8vw, 104px) 0; position: relative; }
.section-tight { padding: clamp(56px, 7vw, 90px) 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(40px, 6vw, 64px); text-align: center; display: grid; gap: 16px; justify-items: center; }
.section-head.left { margin-left: 0; text-align: left; justify-items: start; }
.divider { height: 1px; background: linear-gradient(90deg, transparent, var(--line-strong), transparent); border: 0; margin: 0; }

/* ── Cards ────────────────────────────────────────────────────────────────── */
.card {
    background: linear-gradient(180deg, rgba(255,255,255,0.055), rgba(255,255,255,0.025));
    border: 1px solid var(--line); border-radius: var(--radius-l); padding: clamp(22px, 2.6vw, 32px);
    position: relative; overflow: hidden;
}
.card h3 { margin: 0 0 8px; font-size: 20px; letter-spacing: -0.015em; }
.card p { margin: 0; color: var(--muted); }
.icon-tile {
    width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center;
    background: var(--surface-strong); border: 1px solid var(--line); margin-bottom: 18px; color: var(--text);
}
.icon-tile svg { width: 22px; height: 22px; }
.icon-tile.accent { background: var(--accent-soft); border-color: rgba(54,226,126,.28); color: var(--accent); }

/* ── Forms (portal) ───────────────────────────────────────────────────────── */
.field { display: grid; gap: 8px; margin-bottom: 16px; }
.field label, .label { font-size: 14px; font-weight: 600; color: var(--text); }
.hint { font-size: 13px; color: var(--faint); }
.input, input[type="text"], input[type="url"], input[type="password"], input[type="email"], input[type="number"], input[type="tel"], select, textarea {
    width: 100%; height: 52px; padding: 0 16px; border-radius: 14px; border: 1px solid var(--line-strong);
    background: rgba(255,255,255,0.04); color: var(--text); font: inherit; font-size: 16px; outline: none;
    transition: border-color .15s ease, background .15s ease, box-shadow .15s ease;
}
textarea { height: auto; min-height: 120px; padding: 14px 16px; resize: vertical; }
.input::placeholder, input::placeholder, textarea::placeholder { color: var(--faint); }
.input:focus, input:focus, select:focus, textarea:focus { border-color: var(--accent); background: rgba(255,255,255,0.06); box-shadow: 0 0 0 4px var(--accent-soft); }
.notice {
    display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 14px;
    background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-size: 14.5px;
}
.notice.success { border-color: rgba(54,226,126,.35); background: var(--accent-soft); color: #c9f7dc; }
.notice.error { border-color: rgba(255,93,93,.35); background: rgba(255,93,93,.1); color: #ffd0d0; }
.notice.warn { border-color: rgba(255,200,87,.35); background: rgba(255,200,87,.1); color: #ffe7b3; }

/* ── Prose (Support / Terms / Privacy) ────────────────────────────────────── */
.prose { max-width: 760px; margin: 0 auto; color: #d9dddb; font-size: 17px; line-height: 1.7; }
.prose h1 { font-size: clamp(36px, 5vw, 54px); letter-spacing: -0.03em; line-height: 1.05; margin: 0 0 12px; color: var(--text); }
.prose h2 { font-size: 24px; letter-spacing: -0.015em; margin: 48px 0 12px; color: var(--text); }
.prose h3 { font-size: 19px; margin: 32px 0 8px; color: var(--text); }
.prose p, .prose ul, .prose ol { margin: 0 0 16px; }
.prose ul, .prose ol { padding-left: 22px; }
.prose li { margin: 6px 0; }
.prose a { color: var(--accent); text-decoration: underline; text-decoration-color: rgba(54,226,126,.4); text-underline-offset: 3px; }
.prose strong { color: var(--text); }
.prose hr { border: 0; height: 1px; background: var(--line); margin: 40px 0; }
.prose table { width: 100%; border-collapse: collapse; margin: 0 0 20px; font-size: 15px; }
.prose th, .prose td { text-align: left; padding: 10px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
.prose th { color: var(--text); font-weight: 650; }
.page-hero { padding: clamp(56px, 9vw, 110px) 0 clamp(24px, 4vw, 40px); }

/* ── Footer ───────────────────────────────────────────────────────────────── */
.site-footer { border-top: 1px solid var(--line); padding: 64px 0 40px; background: linear-gradient(180deg, transparent, rgba(255,255,255,0.015)); }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.footer-grid h4 { margin: 0 0 14px; font-size: 13px; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.footer-grid a { display: block; color: var(--muted); padding: 5px 0; font-size: 15px; }
.footer-grid a:hover { color: var(--text); }
.footer-grid a.brand { display: inline-flex; color: var(--text); padding: 0; font-size: 18px; }
.footer-about p { color: var(--muted); font-size: 15px; max-width: 340px; margin: 14px 0 0; }
.footer-legal { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; color: var(--faint); font-size: 13.5px; }
.footer-legal p { margin: 0; max-width: 760px; }
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-about { grid-column: 1 / -1; } }

/* ── Reveal on scroll (app.js adds .revealed) ─────────────────────────────── */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .8s cubic-bezier(.2,.7,.2,1), transform .8s cubic-bezier(.2,.7,.2,1); }
.reveal.revealed { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; } .reveal.d3 { transition-delay: .24s; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; }
}
