/* TrackDyno — shared site styles
   Brand tokens kept in sync with the app's CardTheme.swift. */

:root {
    --bg:            #0A0A0F;
    --bg-elev:       #14141C;
    --bg-elev-2:     #1B1B25;
    --stroke:        rgba(255, 255, 255, 0.06);
    --accent:        #FF6B35;
    --accent-2:      #FFC74D;
    --text:          #FFFFFF;
    --text-sec:      #B7B7C0;
    --text-ter:      #7A7A85;
    --max:           1100px;
    --radius:        18px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: linear-gradient(180deg, var(--bg) 0%, #0E0E15 100%);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "SF Pro Text",
                 system-ui, "Helvetica Neue", Helvetica, Arial, sans-serif;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
    min-height: 100vh;
}

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

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

/* ─── Top nav ──────────────────────────────────────────────────────── */

.nav {
    border-bottom: 1px solid var(--stroke);
    background: rgba(10, 10, 15, 0.85);
    backdrop-filter: saturate(140%) blur(14px);
    -webkit-backdrop-filter: saturate(140%) blur(14px);
    position: sticky; top: 0; z-index: 10;
}
.nav-inner {
    display: flex; align-items: center; justify-content: space-between;
    padding: 18px 0;
}
.nav-brand {
    display: flex; align-items: center; gap: 12px;
    font-weight: 800; letter-spacing: 1px;
    color: var(--text);
}
.nav-brand-dot {
    width: 14px; height: 14px; border-radius: 4px;
    background: var(--accent);
}
.nav-links { display: flex; gap: 28px; }
.nav-links a {
    color: var(--text-sec);
    font-size: 15px;
    font-weight: 500;
}
.nav-links a:hover { color: var(--text); text-decoration: none; }

/* ─── Hero ─────────────────────────────────────────────────────────── */

.hero {
    padding: 90px 0 60px;
}
.hero-eyebrow {
    color: var(--accent);
    font-weight: 700;
    letter-spacing: 4px;
    font-size: 13px;
    text-transform: uppercase;
}
.hero h1 {
    font-size: clamp(44px, 6vw, 84px);
    line-height: 1.05;
    margin: 14px 0 18px;
    font-weight: 800;
    letter-spacing: -1.5px;
}
.hero-sub {
    font-size: clamp(18px, 1.6vw, 22px);
    color: var(--text-sec);
    max-width: 720px;
    line-height: 1.5;
}
.hero-cta {
    margin-top: 36px;
    display: flex; gap: 14px; flex-wrap: wrap;
}

.btn {
    display: inline-flex; align-items: center; gap: 10px;
    padding: 14px 22px;
    border-radius: 999px;
    font-weight: 600;
    font-size: 15px;
    border: 1px solid var(--stroke);
    background: var(--bg-elev);
    color: var(--text);
    transition: transform .12s ease, background .12s ease, border-color .12s ease;
}
.btn:hover { background: var(--bg-elev-2); border-color: rgba(255,255,255,0.12); text-decoration: none; }
.btn-accent {
    background: var(--accent);
    border-color: var(--accent);
    color: white;
}
.btn-accent:hover {
    background: #FF7A48;
    border-color: #FF7A48;
}

/* ─── Section helpers ─────────────────────────────────────────────── */

section { padding: 60px 0; }
section h2 {
    font-size: clamp(28px, 3.2vw, 40px);
    font-weight: 800;
    letter-spacing: -0.8px;
    margin: 0 0 12px;
}
section .lead {
    color: var(--text-sec);
    font-size: 17px;
    max-width: 720px;
    margin-bottom: 36px;
}

/* ─── Feature grid ─────────────────────────────────────────────────── */

.features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 18px;
}
.feature {
    background: var(--bg-elev);
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 26px 24px;
}
.feature-icon {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: rgba(255, 107, 53, 0.14);
    color: var(--accent);
    display: inline-flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 22px;
    margin-bottom: 18px;
}
.feature h3 {
    margin: 0 0 8px;
    font-size: 19px;
    font-weight: 700;
}
.feature p {
    margin: 0;
    color: var(--text-sec);
    font-size: 15px;
    line-height: 1.55;
}

/* ─── How it works ─────────────────────────────────────────────────── */

.how-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 18px;
}
.how-card {
    border: 1px solid var(--stroke);
    border-radius: var(--radius);
    padding: 24px;
    background: linear-gradient(180deg, var(--bg-elev) 0%, rgba(20, 20, 28, 0.6) 100%);
}
.how-card .label {
    font-size: 12px;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--text-ter);
    margin-bottom: 8px;
}
.how-card .h {
    font-weight: 700;
    font-size: 17px;
    margin-bottom: 6px;
}
.how-card p {
    margin: 0; color: var(--text-sec); font-size: 14.5px;
}

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

.doc {
    padding: 60px 0 100px;
}
.doc h1 {
    font-size: clamp(34px, 4vw, 52px);
    font-weight: 800;
    letter-spacing: -1px;
    margin: 0 0 8px;
}
.doc .meta {
    color: var(--text-ter);
    font-size: 14px;
    margin-bottom: 36px;
}
.doc h2 {
    font-size: 22px;
    margin: 36px 0 12px;
    font-weight: 700;
    letter-spacing: -0.3px;
}
.doc h3 {
    font-size: 16px;
    margin: 22px 0 8px;
    color: var(--text);
    font-weight: 700;
}
.doc p, .doc li {
    color: var(--text-sec);
    font-size: 16px;
    line-height: 1.7;
}
.doc ul { padding-left: 22px; }
.doc li { margin: 6px 0; }
.doc .callout {
    border-left: 3px solid var(--accent);
    background: rgba(255, 107, 53, 0.06);
    padding: 16px 20px;
    border-radius: 0 12px 12px 0;
    margin: 22px 0;
    color: var(--text);
    font-size: 15.5px;
}

/* ─── FAQ accordions ───────────────────────────────────────────────── */

details {
    border: 1px solid var(--stroke);
    border-radius: 14px;
    padding: 14px 18px;
    background: var(--bg-elev);
    margin-bottom: 10px;
}
details summary {
    cursor: pointer;
    font-weight: 600;
    list-style: none;
    color: var(--text);
}
details summary::-webkit-details-marker { display: none; }
details summary::after {
    content: "+";
    float: right;
    color: var(--text-ter);
    font-weight: 400;
    transform: translateY(-1px);
    transition: transform .15s ease;
}
details[open] summary::after { content: "−"; }
details p {
    margin: 10px 0 4px;
    color: var(--text-sec);
    font-size: 15px;
}

/* ─── Footer ───────────────────────────────────────────────────────── */

footer {
    border-top: 1px solid var(--stroke);
    padding: 36px 0 60px;
    margin-top: 40px;
    color: var(--text-ter);
    font-size: 14px;
}
.footer-inner {
    display: flex; flex-wrap: wrap; gap: 28px;
    justify-content: space-between; align-items: baseline;
}
.footer-links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-links a { color: var(--text-sec); }
.footer-attribution {
    margin-top: 14px;
    font-size: 12px;
    color: var(--text-ter);
}

/* ─── Mobile ───────────────────────────────────────────────────────── */

@media (max-width: 560px) {
    .nav-links { gap: 18px; }
    .nav-links a { font-size: 14px; }
    .hero { padding: 60px 0 30px; }
    section { padding: 40px 0; }
    .footer-inner { flex-direction: column; gap: 18px; }
}
