:root {
    --bg: #0A0A0A;
    --surface: #151515;
    --border: rgba(255, 255, 255, 0.08);
    --text: #ffffff;
    --text-muted: rgba(255, 255, 255, 0.6);
    --primary: #dc2626;
    --primary-hover: #b91c1c;
}

* { box-sizing: border-box; }

html, body {
    margin: 0;
    padding: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    min-height: 100vh;
    -webkit-font-smoothing: antialiased;
}

/* Default: normal top-aligned document flow (landing + legal pages). */
body {
    line-height: 1.5;
}

/* Opt-in centered layout for the simple deep-link / 404 pages. */
.center-screen {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    padding: 24px;
    text-align: center;
}

.logo {
    font-size: 28px;
    font-weight: 800;
    margin-bottom: 8px;
}

.center-screen h1 {
    font-size: 22px;
    font-weight: 700;
    margin: 24px 0 12px;
    max-width: 400px;
}

.center-screen p {
    color: var(--text-muted);
    max-width: 400px;
    margin: 0 0 32px;
    font-size: 16px;
}

/* ---- Store buttons (shared) ---- */
.store-buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    justify-content: center;
}

.store-buttons a {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 12px;
    color: var(--text);
    text-decoration: none;
    font-weight: 600;
    transition: background 0.15s, border-color 0.15s;
}

.store-buttons a:hover {
    background: var(--primary);
    border-color: var(--primary);
}

.hidden { display: none !important; }

/* ===== Top bar / nav ===== */
.topbar {
    border-bottom: 1px solid var(--border);
}

.nav {
    max-width: 1080px;
    margin: 0 auto;
    padding: 16px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
}

.nav-logo img {
    height: 28px;
    width: auto;
    display: block;
}

.nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    padding: 8px 4px;
    transition: color 0.15s;
}

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

/* ===== Accessibility: visible focus ring ===== */
.store-buttons a:focus-visible,
.nav-links a:focus-visible,
.nav-logo:focus-visible,
.doc a:focus-visible,
.page-header a:focus-visible,
.site-footer a:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
    border-radius: 4px;
}

/* ===== Hero ===== */
.hero {
    max-width: 760px;
    margin: 0 auto;
    padding: 56px 24px 48px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
}

.hero-logo img {
    height: 44px;
    width: auto;
    margin-bottom: 16px;
}

.hero h1 {
    font-size: 38px;
    font-weight: 800;
    margin: 8px 0 0;
    line-height: 1.1;
}

.hero-sub {
    color: var(--text-muted);
    font-size: 18px;
    max-width: 520px;
    margin: 16px 0 24px;
    line-height: 1.5;
}

.hero .store-buttons {
    margin-bottom: 40px;
}

.hero-shot {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1320 / 2868;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.5);
    display: block;
}

/* ===== Features ===== */
.features {
    max-width: 1080px;
    margin: 0 auto;
    padding: 24px 24px 16px;
    display: flex;
    flex-direction: column;
    gap: 72px;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 28px;
    text-align: center;
}

.feature-shot {
    width: 100%;
    max-width: 300px;
    aspect-ratio: 1320 / 2868;
    border-radius: 24px;
    border: 1px solid var(--border);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.45);
    display: block;
}

.feature-text {
    max-width: 480px;
}

.feature-text h2 {
    font-size: 26px;
    font-weight: 800;
    margin: 0 0 12px;
}

.feature-text p {
    color: var(--text-muted);
    font-size: 17px;
    line-height: 1.6;
    margin: 0;
}

/* ===== CTA band ===== */
.cta-band {
    background: var(--surface);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
    margin-top: 72px;
    padding: 56px 24px;
    text-align: center;
}

.cta-band h2 {
    font-size: 28px;
    font-weight: 800;
    margin: 0 0 24px;
}

.cta-band .store-buttons {
    justify-content: center;
}

/* ===== Footer ===== */
.site-footer {
    color: var(--text-muted);
    text-align: center;
    font-size: 14px;
    padding: 40px 24px;
    line-height: 1.8;
}

.site-footer .footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 16px;
    margin-top: 8px;
}

.site-footer a {
    color: var(--text-muted);
    text-decoration: none;
    transition: color 0.15s;
}

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

/* ===== Page header (legal / support pages) ===== */
.page-header {
    border-bottom: 1px solid var(--border);
}

.page-header .inner {
    max-width: 720px;
    margin: 0 auto;
    padding: 16px 24px;
}

.page-header img {
    height: 28px;
    width: auto;
    display: block;
}

/* ===== Document (legal / support) ===== */
.doc {
    max-width: 720px;
    margin: 0 auto;
    padding: 40px 24px 56px;
    line-height: 1.7;
    text-align: left;
}

.doc h1 {
    font-size: 32px;
    font-weight: 800;
    margin: 0 0 8px;
}

.doc h2 {
    font-size: 22px;
    font-weight: 700;
    margin: 36px 0 12px;
}

.doc h3 {
    font-size: 18px;
    font-weight: 700;
    margin: 24px 0 8px;
}

.doc p {
    color: var(--text-muted);
    margin: 0 0 16px;
}

.doc ul {
    color: var(--text-muted);
    margin: 0 0 16px;
    padding-left: 22px;
}

.doc li {
    margin: 0 0 8px;
}

.doc a {
    color: #f87171;
    text-decoration: none;
}

.doc a:hover {
    text-decoration: underline;
}

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

/* ===== Desktop ===== */
@media (min-width: 768px) {
    .hero h1 {
        font-size: 52px;
    }

    .hero-shot {
        max-width: 320px;
    }

    .features {
        gap: 96px;
        padding: 48px 24px 24px;
    }

    .feature {
        flex-direction: row;
        text-align: left;
        gap: 56px;
    }

    .feature.reverse {
        flex-direction: row-reverse;
    }

    .feature-shot {
        max-width: 300px;
        flex-shrink: 0;
    }

    .feature-text {
        flex: 1;
    }

    .feature-text h2 {
        font-size: 30px;
    }
}
