/* FlashOtter website: one stylesheet for every page. Brand colours match the app
   (navy #0E2238 = the app chrome and splash, gold #D9A75C, teal #4ECCA3). */
@font-face {
    font-family: 'Fredoka';
    src: url('fredoka-latin.woff2') format('woff2');
    font-weight: 300 700;
    font-display: swap;
}

:root {
    --bg: #f7f4ee;
    --surface: #ffffff;
    --text: #1b2433;
    --muted: #5b6575;
    --navy: #0e2238;
    --gold: #d9a75c;
    --teal: #1f7a72;
    --line: rgba(14, 34, 56, 0.12);
}

@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        --bg: #04101c;
        --surface: #0e2238;
        --text: #e8edf3;
        --muted: #9aa6b8;
        --teal: #4ecca3;
        --line: rgba(255, 255, 255, 0.12);
    }
}

:root[data-theme="dark"] {
    --bg: #04101c;
    --surface: #0e2238;
    --text: #e8edf3;
    --muted: #9aa6b8;
    --teal: #4ecca3;
    --line: rgba(255, 255, 255, 0.12);
}

* { box-sizing: border-box; }

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

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

.wrap { max-width: 980px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { background: var(--navy); color: #fff; }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding-top: 12px; padding-bottom: 12px; }
.brand { display: flex; align-items: center; gap: 10px; color: #fff; text-decoration: none; font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.4rem; }
.brand img { width: 40px; height: 40px; }
.site-nav { display: flex; flex-wrap: wrap; gap: 14px; }
.site-nav a { color: #dfe7f1; text-decoration: none; font-size: 0.95rem; }
.site-nav a:hover { color: var(--gold); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--navy) 0%, #16365a 100%); color: #fff; padding: 48px 0 56px; }
.hero .wrap { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.hero h1 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: clamp(2rem, 6vw, 3rem); line-height: 1.15; margin: 0 0 14px; }
.hero h1 span { color: var(--gold); }
.hero p { color: #d4deea; font-size: 1.1rem; margin: 0 0 22px; }
.hero-art { text-align: center; }
.hero-art img { width: min(260px, 70%); filter: drop-shadow(0 12px 24px rgba(0, 0, 0, 0.35)); }

.store-badge { display: inline-flex; align-items: center; gap: 10px; padding: 12px 20px; border-radius: 12px; background: var(--gold); color: var(--navy); font-weight: 700; text-decoration: none; }
.store-badge small { display: block; font-weight: 500; font-size: 0.75rem; }
.soon { opacity: 0.95; cursor: default; }

/* Sections */
section.block { padding: 48px 0; }
section.block h2 { font-family: 'Fredoka', sans-serif; font-weight: 600; font-size: 1.8rem; margin: 0 0 8px; }
.lead { color: var(--muted); margin: 0 0 24px; }

.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.card h3 { font-family: 'Fredoka', sans-serif; font-weight: 600; margin: 0 0 6px; font-size: 1.2rem; }
.card p { margin: 0; color: var(--muted); font-size: 0.97rem; }

.games { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.game { display: grid; grid-template-columns: 120px 1fr; gap: 16px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.game img { width: 120px; height: 120px; object-fit: cover; border-radius: 12px; }
.game img.contain { object-fit: contain; }
.game h3 { font-family: 'Fredoka', sans-serif; font-weight: 600; margin: 0 0 4px; }
.game p { margin: 0; color: var(--muted); font-size: 0.95rem; }

.levels { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.levels span { padding: 6px 12px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-weight: 600; }

.promise { background: var(--surface); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.promise ul { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px 24px; }
.promise li::before { content: "✓ "; color: var(--teal); font-weight: 700; }

/* Text pages (privacy, delete account, support) */
.page { max-width: 720px; margin: 0 auto; padding: 36px 16px 64px; }
.page h1 { font-family: 'Fredoka', sans-serif; font-weight: 600; color: var(--text); font-size: 2rem; margin: 0 0 12px; }
.page h3 { margin: 28px 0 8px; }
.page em { color: var(--muted); }
.note { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--gold); border-radius: 10px; padding: 14px 16px; margin: 18px 0; }
details { background: var(--surface); border: 1px solid var(--line); border-radius: 10px; padding: 12px 16px; margin: 10px 0; }
summary { cursor: pointer; font-weight: 600; }

/* Footer */
.site-footer { background: var(--navy); color: #b8c4d4; padding: 28px 0; font-size: 0.92rem; }
.site-footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }
.site-footer a { color: #dfe7f1; margin-right: 14px; }

@media (max-width: 760px) {
    .hero .wrap { grid-template-columns: 1fr; text-align: center; }
    .hero-art { order: -1; }
    .hero-art img { width: 160px; }
    .cards { grid-template-columns: 1fr; }
    .games { grid-template-columns: 1fr; }
    .game { grid-template-columns: 88px 1fr; }
    .game img { width: 88px; height: 88px; }
    .promise ul { grid-template-columns: 1fr; }
    .site-nav { gap: 10px; }
}
