/* Same palette as the app (src/HeadsUp.App.Shared/wwwroot/app.css). The site is dark only, like the app. */
:root {
    color-scheme: dark;
    --bg: #000;
    --surface: #111113;
    --surface-2: #1c1c1e;
    --line: #2c2c2e;
    --text: #fff;
    --muted: #8e8e93;
    --red: #f5453a;
    --gold: #ffd60a;
    --gutter: 16px;
    --max: 1080px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", Roboto, "Segoe UI", sans-serif;
    font-size: 17px;
    line-height: 1.55;
    -webkit-font-smoothing: antialiased;
}

a { color: var(--gold); }
img { max-width: 100%; height: auto; display: block; }

h1, h2, h3 { margin: 0; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
h2 { font-size: clamp(26px, 4vw, 36px); }
h3 { font-size: 19px; }

.wrap { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }

/* ---------- Top bar ---------- */

.top-bar {
    position: sticky; top: 0; z-index: 10;
    background: rgba(0, 0, 0, .82);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--line);
}
.top-bar .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; height: 60px; }
.brand { display: flex; align-items: center; gap: 10px; color: var(--text); text-decoration: none; font-weight: 700; font-size: 19px; }
.brand img { width: 34px; height: 34px; border-radius: 9px; }
.brand .up { color: var(--red); }
.top-nav { display: flex; gap: 22px; }
.top-nav a { color: var(--muted); text-decoration: none; font-size: 15px; }
.top-nav a:hover { color: var(--text); }
.top-nav .cta { color: var(--bg); background: var(--text); padding: 7px 16px; border-radius: 999px; font-weight: 600; }
.top-nav .cta:hover { color: var(--bg); background: #ddd; }

@media (max-width: 640px) {
    .top-nav a:not(.cta) { display: none; }
}

/* ---------- Hero ---------- */

.banner { width: 100%; aspect-ratio: 3258 / 724; object-fit: cover; }

.hero .wrap {
    display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px; align-items: center;
    padding-block: 40px 72px;
}
.hero h1 { font-size: clamp(38px, 6.5vw, 64px); }
.hero h1 .accent { color: var(--gold); }
.hero-sub { color: #c7c7cc; font-size: 19px; margin: 18px 0 28px; max-width: 34em; }
.hero-note { color: var(--muted); font-size: 14px; margin-top: 18px; }
.hero-phone { justify-self: center; width: min(320px, 80vw); }

@media (max-width: 820px) {
    .hero .wrap { grid-template-columns: 1fr; gap: 40px; padding-block: 28px 56px; text-align: center; }
    .hero-sub { margin-inline: auto; }
    .hero .store-badges { justify-content: center; }
}

/* ---------- Phone frame ---------- */

.phone {
    border: 1px solid #3a3a3c;
    border-radius: 36px;
    padding: 8px;
    background: #0a0a0a;
    box-shadow: 0 30px 80px rgba(245, 69, 58, .14), 0 10px 30px rgba(0, 0, 0, .6);
}
.phone img { border-radius: 28px; width: 100%; }

/* ---------- Store badges ---------- */

.store-badges { display: flex; flex-wrap: wrap; gap: 12px; }
.store-badge {
    display: inline-flex; align-items: center; gap: 10px;
    min-width: 178px; padding: 9px 18px 9px 14px;
    border: 1px solid #5a5a5e; border-radius: 12px;
    background: #000; color: var(--text); text-decoration: none;
    transition: border-color .15s, background .15s;
}
.store-badge:hover { border-color: var(--text); background: #0d0d0d; }
.store-badge svg { width: 28px; height: 28px; flex: none; fill: currentColor; }
.store-badge-text { display: flex; flex-direction: column; text-align: left; line-height: 1.15; }
.store-badge-eyebrow { font-size: 11px; color: #c7c7cc; }
.store-badge-title { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }

/* ---------- Sections ---------- */

section.block { padding-block: 72px; border-top: 1px solid var(--line); }
.section-head { max-width: 40em; margin-bottom: 36px; }
.section-head p { color: var(--muted); margin: 12px 0 0; }

.screens {
    display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.screens figure { margin: 0; }
.screens figcaption { color: var(--muted); font-size: 15px; text-align: center; margin-top: 14px; }

@media (max-width: 900px) {
    .screens {
        grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: min(62vw, 260px);
        overflow-x: auto; scroll-snap-type: x mandatory; padding-bottom: 12px;
        margin-inline: calc(-1 * var(--gutter)); padding-inline: var(--gutter);
    }
    .screens figure { scroll-snap-align: center; }
}

.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature {
    background: var(--surface); border: 1px solid var(--line); border-radius: 22px;
    padding: 24px;
}
.feature p { color: #aeaeb2; margin: 10px 0 0; font-size: 16px; }
.feature-icon {
    width: 44px; height: 44px; border-radius: 12px; margin-bottom: 16px;
    display: grid; place-items: center;
    background: var(--surface-2); color: var(--gold);
}
.feature-icon svg { width: 24px; height: 24px; }

@media (max-width: 900px) { .features { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .features { grid-template-columns: 1fr; } }

.play-money {
    display: grid; grid-template-columns: auto 1fr; gap: 24px; align-items: start;
    background: linear-gradient(180deg, #17150a, var(--surface));
    border: 1px solid #3b3410; border-radius: 26px; padding: 32px;
}
.play-money .chip {
    width: 64px; height: 64px; border-radius: 50%;
    background: radial-gradient(circle, var(--gold) 0 46%, #b38f00 47% 100%);
    box-shadow: 0 0 30px rgba(255, 214, 10, .25);
}
.play-money p { color: #c7c7cc; margin: 12px 0 0; }
.play-money .fine { color: var(--muted); font-size: 14px; }

@media (max-width: 600px) {
    .play-money { grid-template-columns: 1fr; padding: 24px; }
}

.get-app { text-align: center; }
.get-app .section-head { margin-inline: auto; }
.get-app .store-badges { justify-content: center; }
.get-app .app-icon { width: 96px; height: 96px; border-radius: 22px; margin: 0 auto 24px; }

.contact p { color: #c7c7cc; }

/* ---------- Footer ---------- */

.site-footer { border-top: 1px solid var(--line); padding-block: 32px 48px; color: var(--muted); font-size: 14px; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; }
.site-footer p { margin: 0; }
.site-footer nav { display: flex; gap: 20px; }
.site-footer a { color: var(--muted); }
.site-footer a:hover { color: var(--text); }

/* ---------- Privacy page ---------- */

.doc { padding-block: 48px 72px; max-width: 760px; }
.doc h1 { font-size: clamp(32px, 5vw, 44px); }
.doc .updated { color: var(--muted); margin: 10px 0 32px; }
.doc h2 { font-size: 23px; margin: 40px 0 12px; }
.doc p, .doc li { color: #d1d1d6; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: 8px; }
.doc table { width: 100%; border-collapse: collapse; font-size: 15px; margin-top: 8px; }
.doc th, .doc td { text-align: left; vertical-align: top; padding: 10px 12px; border-bottom: 1px solid var(--line); }
.doc th { color: var(--muted); font-weight: 600; }
.doc td { color: #d1d1d6; }

@media (max-width: 600px) {
    .doc table, .doc tbody, .doc tr, .doc td { display: block; }
    .doc thead { display: none; }
    .doc tr { border-bottom: 1px solid var(--line); padding: 8px 0; }
    .doc td { border: 0; padding: 4px 0; }
    .doc td:first-child { color: var(--text); font-weight: 600; }
}
