/* Faceoff website. Colours follow the app icon (navy sky, moon gold) and the
   app's accent (#34489A light / #6479DB dark). System fonts only, so nothing
   shifts when a webfont arrives. */

:root {
    --sky-top: #22307A;
    --sky-bottom: #0F173D;
    --moon: #FFD84A;
    --on-sky: #FFFFFF;
    --on-sky-muted: #C9D3FF;

    --bg: #FFFFFF;
    --text: #1A1D29;
    --text-muted: #5A6072;
    --accent: #34489A;
    --rule: #E3E6EF;

    --rounded: ui-rounded, "SF Pro Rounded", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
    --sans: system-ui, -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

@media (prefers-color-scheme: dark) {
    :root {
        --bg: #0F173D;
        --text: #E8EBF7;
        --text-muted: #A3ABCB;
        --accent: #8FA0F0;
        --rule: #2A3566;
    }
}

* { box-sizing: border-box; }

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

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-family: var(--sans);
    line-height: 1.55;
}

a { color: var(--accent); }

.container {
    width: 100%;
    max-width: 960px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Landing */

.landing {
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    flex-direction: column;
    background: linear-gradient(180deg, var(--sky-top), var(--sky-bottom));
    color: var(--on-sky);
}

.hero {
    flex: 1;
    display: flex;
    align-items: center;
    gap: 56px;
    padding-top: 48px;
    padding-bottom: 48px;
}

.hero-text { flex: 1; min-width: 0; }

.app-icon {
    display: block;
    width: 96px;
    height: 96px;
    border-radius: 22px;
}

.hero h1 {
    margin: 20px 0 4px;
    font-family: var(--rounded);
    font-size: 64px;
    font-weight: 900;
    line-height: 1.05;
    letter-spacing: -0.01em;
}

.tagline {
    margin: 0 0 28px;
    font-family: var(--rounded);
    font-size: 24px;
    font-weight: 600;
    color: var(--on-sky-muted);
}

.how {
    list-style: none;
    margin: 0 0 32px;
    padding: 0;
    font-size: 17px;
}

.how li {
    display: flex;
    gap: 12px;
    margin-bottom: 12px;
}

.how li::before {
    content: "";
    flex: none;
    width: 12px;
    height: 12px;
    margin-top: 7px;
    border-radius: 50%;
    background: var(--moon);
}

.store-badge { display: inline-block; }
.store-badge img { display: block; width: 162px; height: 54px; }

.hero-shot { flex: none; }

.hero-shot img {
    display: block;
    width: 280px;
    height: auto;
    aspect-ratio: 600 / 1304;
    border-radius: 36px;
    box-shadow: 0 24px 60px rgba(0, 0, 0, 0.45), 0 0 0 1px rgba(255, 255, 255, 0.12);
}

/* Gallery: the App Store screenshots. Sizes are fixed (width/height +
   aspect-ratio), so lazy loading never shifts the layout. */

.gallery { padding-bottom: 40px; }

.gallery h2 {
    margin: 0 0 20px;
    font-family: var(--rounded);
    font-size: 28px;
    font-weight: 800;
}

.shots {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 16px;
}

.shots img {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 600 / 1304;
    border-radius: 16px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.35), 0 0 0 1px rgba(255, 255, 255, 0.14);
}

.site-footer {
    padding-top: 20px;
    padding-bottom: 28px;
    font-size: 13px;
    color: var(--on-sky-muted);
}

.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { text-decoration: underline; }
.site-footer .sep { margin: 0 8px; opacity: 0.6; }

@media (max-width: 720px) {
    .hero {
        flex-direction: column;
        align-items: stretch;
        gap: 40px;
        padding-top: 32px;
    }
    .hero-text { flex: none; }
    .hero h1 { font-size: 48px; }
    .tagline { font-size: 20px; }
    .hero-shot img { width: 260px; max-width: 100%; margin: 0 auto; }
    /* Phones: a sideways-scrolling strip that snaps to each screenshot. */
    .shots {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        margin: 0 -16px;
        padding: 0 16px 12px;
        scroll-padding: 0 16px;
    }
    .shots li { flex: none; width: 62%; scroll-snap-align: start; }
}

/* Documents (privacy, 404) */

.doc {
    max-width: 720px;
    padding-top: 32px;
    padding-bottom: 48px;
}

.doc-back { margin: 0 0 24px; font-size: 15px; }
.doc-back a { text-decoration: none; }

.doc h1 {
    margin: 0 0 4px;
    font-family: var(--rounded);
    font-size: 40px;
    font-weight: 800;
    line-height: 1.15;
}

.doc-date { margin: 0 0 28px; color: var(--text-muted); font-size: 15px; }

.doc h2 {
    margin: 36px 0 8px;
    padding-top: 20px;
    border-top: 1px solid var(--rule);
    font-family: var(--rounded);
    font-size: 21px;
    font-weight: 700;
}

.doc ul { padding-left: 22px; }
.doc li { margin-bottom: 8px; }

/* About page: play in the browser next to the store badge. */
.ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 16px; }
.play-link { display: inline-block; background: #6479DB; color: #fff; font-weight: 700; padding: 14px 22px; border-radius: 14px; text-decoration: none; }
.play-link:hover { filter: brightness(1.1); }
