/*
 * Mobile-first: every base rule below targets a phone-width
 * viewport. The @media blocks at the bottom only ADD layout
 * for wider screens (tablet, then desktop) — nothing is
 * written desktop-first and shrunk down.
 */
:root {
    --primary: #1464D2;
    --primary-dark: #0B3B82;
    --primary-light: #5B93E0;
    --primary-bg: #EAF4FF;
    --ph-red: #CE1126;
    --ph-gold: #FCD116;
    --bg: #FFFCF5;
    --surface: #FFFFFF;
    --border: #CFE3F7;
    --text-primary: #17345F;
    --text-secondary: #6B7280;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    font-family: 'Figtree', ui-sans-serif, system-ui, sans-serif;
    background: var(--bg);
    color: var(--text-primary);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.wrap {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ── Header ──────────────────────────────────────────────── */
header.site {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 20px;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 36px; height: 36px; border-radius: 10px; }
.brand span {
    font-weight: 800;
    font-size: 1.15rem;
    color: var(--primary-dark);
}
.nav-cta {
    background: var(--primary);
    color: #fff;
    padding: 10px 16px;
    min-height: 46px;
    display: inline-flex;
    align-items: center;
    border-radius: 999px;
    font-weight: 700;
    font-size: 0.85rem;
    white-space: nowrap;
}

/* ── Hero ────────────────────────────────────────────────── */
.hero {
    padding: 28px 0 10px;
    text-align: center;
}
.hero-flags { font-size: 1.4rem; margin-bottom: 14px; letter-spacing: 2px; }
.hero h1 {
    font-size: 2rem;
    line-height: 1.15;
    font-weight: 800;
    color: var(--text-primary);
}
.hero h1 em {
    font-style: normal;
    color: var(--primary);
}
.hero p.lede {
    margin-top: 14px;
    font-size: 1.05rem;
    color: var(--text-secondary);
    max-width: 540px;
    margin-left: auto;
    margin-right: auto;
}
.cta-row {
    margin-top: 26px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: stretch;
}
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 15px 24px;
    border-radius: 14px;
    font-weight: 700;
    font-size: 1rem;
}
.btn-primary {
    background: var(--primary);
    color: #fff;
    box-shadow: 0 10px 24px rgba(20, 100, 210, 0.28);
}
.btn-secondary {
    background: var(--surface);
    color: var(--primary-dark);
    border: 1.5px solid var(--border);
}
.btn small { display: block; font-weight: 500; opacity: .85; font-size: .72rem; }

.hero-shot {
    margin: 32px auto 0;
    max-width: 320px;
}
.hero-shot img {
    border-radius: 28px;
    border: 8px solid var(--surface);
    box-shadow: 0 24px 48px rgba(11, 59, 130, 0.18);
}

/* ── Dialect strip ───────────────────────────────────────── */
.dialects {
    padding: 40px 0 10px;
    text-align: center;
}
.dialects h2 { font-size: 1.3rem; font-weight: 800; }
.dialects p { color: var(--text-secondary); margin-top: 6px; font-size: .95rem; }
.dialect-grid {
    margin-top: 20px;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}
.dialect-pill {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 14px;
    padding: 14px 10px;
    font-weight: 700;
    font-size: .9rem;
    color: var(--primary-dark);
}
.dialect-pill .flag { font-size: 1.1rem; display: block; margin-bottom: 4px; }

/* ── Features ────────────────────────────────────────────── */
.features { padding: 48px 0 10px; }
.features h2 {
    text-align: center;
    font-size: 1.3rem;
    font-weight: 800;
    margin-bottom: 24px;
}
.feature-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.feature-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 18px;
    padding: 20px;
}
.feature-card .icon { font-size: 1.6rem; margin-bottom: 10px; }
.feature-card h3 { font-size: 1.05rem; font-weight: 700; }
.feature-card p { margin-top: 6px; font-size: .9rem; color: var(--text-secondary); }

.feature-shot {
    margin-top: 36px;
    text-align: center;
}
.feature-shot img {
    max-width: 300px;
    margin: 0 auto;
    border-radius: 24px;
    border: 6px solid var(--surface);
    box-shadow: 0 18px 36px rgba(11, 59, 130, 0.14);
}

/* ── Final CTA ───────────────────────────────────────────── */
.final-cta {
    margin: 56px 20px 0;
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 24px;
    padding: 36px 24px;
    text-align: center;
    color: #fff;
}
.final-cta h2 { font-size: 1.4rem; font-weight: 800; }
.final-cta p { margin-top: 10px; opacity: .9; font-size: .95rem; }
.final-cta .btn-primary {
    margin-top: 22px;
    background: #fff;
    color: var(--primary-dark);
    width: 100%;
}

footer.site {
    text-align: center;
    padding: 32px 20px 40px;
    color: var(--text-secondary);
    font-size: .875rem;
}

/* ── Tablet and up ───────────────────────────────────────── */
@media (min-width: 640px) {
    .hero h1 { font-size: 2.6rem; }
    .cta-row { flex-direction: row; justify-content: center; }
    .btn { width: auto; }
    .dialect-grid { grid-template-columns: repeat(4, 1fr); }
}

/* ── Desktop and up ──────────────────────────────────────── */
@media (min-width: 1024px) {
    header.site { padding: 24px 20px; }

    .hero {
        display: grid;
        grid-template-columns: 1.1fr 0.9fr;
        align-items: center;
        text-align: left;
        gap: 48px;
        padding: 64px 0;
    }
    .hero-copy { grid-column: 1; }
    .hero-flags { justify-content: flex-start; }
    .hero p.lede { margin-left: 0; }
    .cta-row { justify-content: flex-start; }
    .hero-shot { grid-column: 2; grid-row: 1 / span 2; margin: 0; max-width: 360px; justify-self: end; }

    .feature-list {
        flex-direction: row;
        flex-wrap: wrap;
    }
    .feature-card { flex: 1 1 calc(33.333% - 16px); }

    .final-cta {
        margin: 72px auto 0;
        max-width: 1100px;
        padding: 48px;
        display: flex;
        align-items: center;
        justify-content: space-between;
        text-align: left;
        gap: 24px;
    }
    .final-cta .btn-primary { margin-top: 0; width: auto; }
}

html { scroll-padding-top: 20px; }
:focus-visible { outline: 3px solid #D97706; outline-offset: 4px; }
.skip-link { position: absolute; left: 12px; top: -80px; background: white; padding: 12px; z-index: 20; }
.skip-link:focus { top: 12px; }
header.site { gap: 12px; max-width: 1140px; margin-inline: auto; }
.brand { min-width: 0; }
.btn { min-height: 52px; text-align: center; }
.download-note { font-size: .9rem; color: var(--text-secondary); margin-top: 10px; }
.release-info { font-size: .875rem; color: var(--text-secondary); margin-top: 5px; }
.download-help { display: inline-flex; align-items: center; min-height: 46px; color: var(--primary); text-decoration: underline; text-underline-offset: 3px; }
.hero-shot { max-width: 230px; }
.hero-shot img { width: 100%; height: auto; }
.dialect-pill { overflow-wrap: anywhere; }
.feature-shot { margin-top: 24px; }
.feature-shot summary { cursor: pointer; color: var(--primary-dark); font-weight: 700; min-height: 48px; padding: 12px; }
.feature-shot img { width: min(100%, 270px); height: auto; margin-top: 18px; }
.more-features { margin-top: 16px; }
.more-features > summary { cursor: pointer; min-height: 48px; display: flex; align-items: center; justify-content: center; border: 1px solid var(--border); border-radius: 12px; font-weight: 700; color: var(--primary-dark); }
.more-features[open] > summary { margin-bottom: 16px; }
.help { padding-top: 40px; }
.help h2 { font-size: 1.3rem; margin-bottom: 18px; }
.help details { background: white; border: 1px solid var(--border); border-radius: 14px; margin-bottom: 10px; padding-inline: 16px; }
.help summary { min-height: 52px; padding-block: 14px; cursor: pointer; font-weight: 700; }
.help details p, .help ol { margin-bottom: 16px; color: var(--text-secondary); }
.help li { margin: 0 0 12px 20px; padding-left: 3px; }
.help a { color: var(--primary); text-decoration: underline; }
footer.site nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 4px 20px; margin-bottom: 12px; }
footer.site a { display: inline-flex; align-items: center; min-height: 46px; text-decoration: underline; text-underline-offset: 3px; }
.notice { max-width: 760px; margin: 24px auto; padding: 0 20px 40px; }
.notice h1 { font-size: clamp(1.6rem, 5vw, 2.2rem); margin-bottom: 12px; }
.notice p { margin-bottom: 18px; overflow-wrap: anywhere; }
.notice .muted { color: var(--text-secondary); }
@media (min-width: 640px) { .hero-shot { max-width: 280px; } .cta-row { margin-bottom: 0; } }
@media (min-width: 1024px) { .hero-shot { max-width: 320px; } .more-features .feature-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation: none !important; transition: none !important; } }

.help details p a { display: inline-flex; align-items: center; min-height: 44px; vertical-align: middle; }

header.site { flex-wrap: wrap; }
header.site .brand { flex-shrink: 0; }
.btn { max-width: 100%; }
.information-page { padding-top: 16px; }
.information-page .eyebrow { font-size: .85rem; font-weight: 700; color: var(--primary); }
.information-page h2 { font-size: 1.2rem; margin-bottom: 12px; }
.information-page a:not(.btn), .notice p a { color: var(--primary); text-decoration: underline; text-underline-offset: 3px; overflow-wrap: anywhere; }
.information-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; margin: 24px 0; }
.information-card > :last-child { margin-bottom: 0; }
.information-card .btn { margin-bottom: 18px; }
@media (max-width: 360px) { .information-card { padding: 18px; } }
