/* ==========================================================================
   Kapoot Web — stylesheet
   Mirrors colour tokens from src/kapoot_app/lib/config/theme.dart so the web
   matches the app 1:1. Mobile-first, no external font loading, no JS deps.
   ========================================================================== */

:root {
    /* Brand colours (from Flutter AppTheme) */
    --color-primary: #1976D2;
    --color-primary-dark: #0D47A1;
    --color-primary-light: #42A5F5;
    --color-water: #1976D2;
    --color-electricity: #E53935;

    /* Status colours */
    --color-status-active: #E53935;
    --color-status-upcoming: #F57C00;
    --color-status-resolved: #43A047;

    /* Neutral scale */
    --color-bg: #f7f9fc;
    --color-surface: #ffffff;
    --color-surface-alt: #eef2f8;
    --color-border: #d8e0ec;
    --color-text: #1a1f2e;
    --color-text-muted: #5b6478;
    --color-text-inverse: #ffffff;

    /* Type scale */
    --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    --font-size-xs: 0.8rem;
    --font-size-sm: 0.9rem;
    --font-size-base: 1rem;
    --font-size-md: 1.1rem;
    --font-size-lg: 1.35rem;
    --font-size-xl: 1.75rem;
    --font-size-xxl: 2.5rem;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2.5rem;
    --space-xxl: 4rem;

    /* Radii */
    --radius-sm: 6px;
    --radius-md: 12px;
    --radius-lg: 20px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(16, 24, 40, 0.04), 0 1px 3px rgba(16, 24, 40, 0.08);
    --shadow-md: 0 4px 12px rgba(16, 24, 40, 0.08);
    --shadow-lg: 0 12px 32px rgba(16, 24, 40, 0.12);

    /* Layout */
    --container-max: 1120px;
    --header-height: 68px;
}

@media (prefers-color-scheme: dark) {
    :root {
        --color-bg: #0f1522;
        --color-surface: #18202f;
        --color-surface-alt: #1f2839;
        --color-border: #2a3447;
        --color-text: #f3f5fa;
        --color-text-muted: #9aa3b8;
        --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3), 0 1px 3px rgba(0, 0, 0, 0.4);
        --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.35);
        --shadow-lg: 0 12px 32px rgba(0, 0, 0, 0.45);
    }
}

/* --- Reset / base --------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
* { margin: 0; }
html { scroll-behavior: smooth; text-size-adjust: 100%; }
body {
    font-family: var(--font-sans);
    font-size: var(--font-size-base);
    line-height: 1.55;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--color-primary); text-decoration: none; }
a:hover { text-decoration: underline; }
button { font: inherit; cursor: pointer; }

.container { max-width: var(--container-max); margin: 0 auto; padding: 0 var(--space-md); }
@media (min-width: 720px) { .container { padding: 0 var(--space-lg); } }

.visually-hidden {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.6rem 1.2rem; border-radius: var(--radius-md);
    background: var(--color-primary); color: var(--color-text-inverse);
    font-weight: 600; border: none; text-decoration: none;
    transition: background 0.15s ease, transform 0.1s ease;
}
.btn:hover { background: var(--color-primary-dark); text-decoration: none; }
.btn:active { transform: translateY(1px); }

.page { min-height: 100dvh; display: flex; flex-direction: column; }
main { flex: 1; }

/* --- Header --------------------------------------------------------------- */
.site-header {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-border);
    position: sticky; top: 0; z-index: 10;
}
.header-inner {
    display: flex; align-items: center; justify-content: space-between;
    height: var(--header-height); gap: var(--space-md);
}
.brand { display: flex; align-items: center; }
.brand img { height: 28px; width: auto; }
.header-nav {
    display: flex; align-items: center; gap: var(--space-md);
    flex-wrap: wrap; justify-content: flex-end;
}

.city-picker { min-width: 150px; }
.city-select {
    width: 100%; padding: 0.45rem 0.75rem; padding-right: 2rem;
    background: var(--color-surface-alt);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md); color: var(--color-text);
    font-size: var(--font-size-sm); cursor: pointer;
    -webkit-appearance: none; appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%235b6478' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 0.75rem center;
}
.city-select:focus { outline: 2px solid var(--color-primary); outline-offset: 2px; }

.lang-group { display: flex; gap: 0.25rem; }
.lang-btn {
    padding: 0.3rem 0.6rem; border-radius: var(--radius-sm);
    font-size: var(--font-size-xs); font-weight: 600;
    color: var(--color-text-muted); text-decoration: none;
}
.lang-btn.active { color: var(--color-primary); background: var(--color-surface-alt); }
.lang-btn:hover { text-decoration: none; color: var(--color-primary); }

/* --- Hero ----------------------------------------------------------------- */
/* Blazor's FocusOnNavigate moves keyboard focus to the h1 after navigation.
   Hide the outline for mouse/form-submit users, keep it visible for keyboard users. */
h1:focus { outline: none; }
h1:focus-visible {
    outline: 2px solid rgba(255, 255, 255, 0.6);
    outline-offset: 6px;
    border-radius: 4px;
}

.hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-inverse);
    padding: var(--space-xl) 0 var(--space-xl);
}
.hero-inner { text-align: left; }
.hero-title {
    font-size: var(--font-size-xxl); font-weight: 800;
    line-height: 1.1; letter-spacing: -0.01em;
    margin-bottom: var(--space-md);
    max-width: 720px;
}
.hero-subtitle {
    font-size: var(--font-size-md); opacity: 0.9;
    max-width: 640px; margin-bottom: var(--space-lg);
}
.hero-city-buttons { display: flex; flex-wrap: wrap; gap: var(--space-sm); margin-top: var(--space-md); }
.btn-city {
    padding: 0.55rem 1.1rem; border-radius: var(--radius-md);
    background: #fff; color: var(--color-primary-dark);
    font-size: var(--font-size-sm); font-weight: 700;
    text-decoration: none;
    box-shadow: var(--shadow-md);
    transition: transform 0.12s ease, box-shadow 0.15s ease;
}
.btn-city:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-lg);
    text-decoration: none;
}

.city-hero {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-inverse);
    padding: var(--space-xl) 0;
}
.city-hero-inner {
    display: grid;
    gap: var(--space-lg);
    grid-template-columns: 1fr;
    align-items: end;
}
@media (min-width: 800px) {
    .city-hero-inner {
        grid-template-columns: 1fr auto;
        align-items: end;
    }
}
.city-hero-titleblock { min-width: 0; }
.city-hero h1 {
    font-size: var(--font-size-xxl); font-weight: 800;
    line-height: 1.1; margin-bottom: var(--space-sm);
}
.city-hero .subtitle { opacity: 0.9; font-size: var(--font-size-md); }

.street-filter {
    display: flex;
    flex-direction: column;
    gap: var(--space-xs);
    min-width: 300px;
}
/* Input always sits on the blue hero — hardcode colours so it's legible in
   both light and dark system themes. */
.street-filter-input {
    padding: 0.7rem 1rem;
    border-radius: var(--radius-md);
    border: 1px solid rgba(255, 255, 255, 0.35);
    background: #ffffff;
    color: #1a1f2e;
    font-size: var(--font-size-base);
    font-family: inherit;
    outline: none;
    box-shadow: var(--shadow-md);
    transition: box-shadow 0.15s ease, transform 0.12s ease;
    -webkit-appearance: none;
    appearance: none;
    -webkit-text-fill-color: #1a1f2e; /* Safari sometimes overrides color on form fields */
    caret-color: var(--color-primary-dark);
}
.street-filter-input::placeholder {
    color: #7a869a;
    opacity: 1;
}
.street-filter-input:focus {
    box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.35), var(--shadow-lg);
    transform: translateY(-1px);
}
.street-filter-hint {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.85);
    padding-left: var(--space-xs);
    line-height: 1.5;
}
.street-filter-empty {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.95);
    padding-left: var(--space-sm);
    font-weight: 600;
}

/* --- Inline email signup (city hero) -------------------------------------- */
.inline-email-signup { margin-top: var(--space-lg); }
.inline-email-label {
    font-size: var(--font-size-sm);
    color: rgba(255, 255, 255, 0.9);
    font-weight: 600;
    margin: 0 0 var(--space-sm);
}
.inline-email-form {
    display: flex;
    flex-direction: column;
    gap: 0;
    max-width: 420px;
}
.inline-email-row {
    display: flex;
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}
.inline-email-input {
    flex: 1;
    padding: 0.65rem 1rem;
    border: none;
    background: #fff;
    color: #1a1f2e;
    font-size: var(--font-size-base);
    font-family: inherit;
    outline: none;
    -webkit-appearance: none;
    appearance: none;
    -webkit-text-fill-color: #1a1f2e;
    caret-color: var(--color-primary-dark);
    min-width: 0;
    border-radius: 0;
}
.inline-email-input::placeholder { color: #7a869a; opacity: 1; }
.inline-email-input:focus { box-shadow: inset 0 0 0 2px var(--color-primary-light); }
.inline-email-submit {
    padding: 0.65rem 1.4rem;
    background: var(--color-primary-dark);
    color: #fff;
    border: none;
    border-radius: 0;
    font-size: var(--font-size-sm);
    font-weight: 700;
    font-family: inherit;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.15s ease;
}
.inline-email-submit:hover:not(:disabled) { background: #092e6b; }
.inline-email-submit:disabled { opacity: 0.7; cursor: not-allowed; }
.inline-email-spinner {
    display: inline-block;
    width: 16px; height: 16px;
    border: 2px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: inline-email-spin 0.6s linear infinite;
}
@keyframes inline-email-spin { to { transform: rotate(360deg); } }
.inline-email-hint {
    font-size: var(--font-size-xs);
    color: rgba(255, 255, 255, 0.7);
    margin: var(--space-xs) 0 0;
}
.inline-email-error {
    font-size: var(--font-size-xs);
    color: #ffcdd2;
    font-weight: 600;
    margin: var(--space-xs) 0 0;
}
.inline-email-success {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    color: rgba(255, 255, 255, 0.95);
    font-size: var(--font-size-sm);
    font-weight: 600;
}
.inline-email-check {
    display: inline-flex;
    align-items: center; justify-content: center;
    width: 24px; height: 24px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    font-size: 14px;
}

/* --- Disruptions section -------------------------------------------------- */
.disruptions-section { padding: var(--space-xl) 0; }
.section-header {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: var(--space-lg); gap: var(--space-md);
}
.section-header h2 {
    font-size: var(--font-size-xl); font-weight: 700;
    letter-spacing: -0.01em;
}
.section-link {
    font-size: var(--font-size-sm); font-weight: 600; color: var(--color-primary);
}

.disruption-grid {
    display: grid; gap: var(--space-md);
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .disruption-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .disruption-grid { grid-template-columns: repeat(3, 1fr); }
}

.disruption-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
    transition: transform 0.12s ease, box-shadow 0.15s ease, border-color 0.15s ease;
    border-left: 4px solid var(--color-primary);
}
.disruption-card.type-electricity { border-left-color: var(--color-electricity); }
.disruption-card.type-water { border-left-color: var(--color-water); }
.disruption-card:hover {
    box-shadow: var(--shadow-md);
    border-color: var(--color-primary);
}

/* Expanded state — use :has() to let the card span the full grid row */
.disruption-card:has(details[open]) {
    grid-column: 1 / -1;
    box-shadow: var(--shadow-lg);
    border-color: var(--color-primary);
}

.disruption-details { width: 100%; }
.disruption-details > summary::-webkit-details-marker { display: none; }
.disruption-details > summary { list-style: none; }

.disruption-summary {
    display: grid;
    grid-template-columns: auto 1fr auto auto;
    align-items: center; gap: var(--space-sm);
    padding: var(--space-md);
    cursor: pointer;
    user-select: none;
}
.disruption-summary:hover { background: var(--color-surface-alt); }

@media (max-width: 480px) {
    .disruption-summary {
        grid-template-columns: auto 1fr auto;
        grid-template-rows: auto auto;
    }
    .disruption-card-titleblock { grid-column: 2 / -1; }
    .status-pill {
        grid-column: 2;
        grid-row: 2;
        justify-self: start;
    }
    .disruption-chevron { grid-row: 1; grid-column: 3; }
    .disruption-icon { grid-row: 1 / 3; align-self: start; padding-top: 2px; }
}

.disruption-icon { font-size: 1.5rem; line-height: 1; }
.disruption-card-titleblock { min-width: 0; }
.disruption-card-title {
    font-size: var(--font-size-md); font-weight: 700;
    line-height: 1.3; margin: 0;
    display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
    overflow: hidden;
}
.disruption-card:has(details[open]) .disruption-card-title {
    -webkit-line-clamp: unset; overflow: visible;
}
.disruption-card-meta {
    font-size: var(--font-size-xs); color: var(--color-text-muted);
    margin-top: var(--space-xs);
}
.disruption-type { font-weight: 600; }
.disruption-when, .disruption-street-inline {
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-top: var(--space-xs);
}
.disruption-street-inline {
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
}
.disruption-chevron {
    color: var(--color-text-muted);
    transition: transform 0.15s ease;
    font-size: 1rem;
}
details[open] .disruption-chevron { transform: rotate(180deg); }

/* Expanded body ------------------------------------------------------------- */
.disruption-body {
    padding: 0 var(--space-md) var(--space-md);
    border-top: 1px solid var(--color-border);
    margin-top: var(--space-sm);
    padding-top: var(--space-md);
}
.disruption-description {
    font-size: var(--font-size-base);
    line-height: 1.65;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}
.disruption-description p { margin-bottom: var(--space-sm); }

.disruption-body .disruption-streets {
    margin-top: var(--space-md);
    margin-bottom: var(--space-md);
}
.disruption-body .disruption-streets h4 {
    font-size: var(--font-size-sm);
    font-weight: 700;
    color: var(--color-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-sm);
}
.disruption-body .disruption-streets ul {
    list-style: none; padding: 0;
    display: grid; gap: var(--space-xs);
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .disruption-body .disruption-streets ul { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .disruption-body .disruption-streets ul { grid-template-columns: repeat(3, 1fr); }
}
.disruption-body .disruption-streets li {
    padding: 0.35rem 0.65rem;
    background: var(--color-surface-alt);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
}

.disruption-footer {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--color-border);
    padding-top: var(--space-md);
    margin-top: var(--space-md);
}
.disruption-source, .disruption-permalink {
    font-size: var(--font-size-sm);
    font-weight: 600;
}
.disruption-permalink { color: var(--color-text-muted); }
.disruption-permalink:hover { color: var(--color-primary); text-decoration: none; }

.status-pill {
    display: inline-block; padding: 0.2rem 0.6rem;
    border-radius: 999px; font-size: var(--font-size-xs);
    font-weight: 700; text-transform: uppercase;
    letter-spacing: 0.03em; white-space: nowrap;
}
.status-active { background: rgba(229, 57, 53, 0.12); color: var(--color-status-active); }
.status-upcoming { background: rgba(245, 124, 0, 0.12); color: var(--color-status-upcoming); }
.status-resolved { background: rgba(67, 160, 71, 0.12); color: var(--color-status-resolved); }

.disruption-type-badge {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    border-radius: 999px;
    font-size: var(--font-size-xs);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}
.disruption-type-badge.type-electricity { background: rgba(229, 57, 53, 0.12); color: var(--color-electricity); }
.disruption-type-badge.type-water { background: rgba(25, 118, 210, 0.12); color: var(--color-water); }

/* --- Empty state ---------------------------------------------------------- */
.empty-state {
    text-align: center; padding: var(--space-xl) var(--space-md);
    background: var(--color-surface); border-radius: var(--radius-md);
    border: 1px dashed var(--color-border);
}
.empty-state p { margin-bottom: var(--space-sm); }
.empty-hint { color: var(--color-text-muted); font-size: var(--font-size-sm); margin-bottom: var(--space-md); }

.city-buttons { display: flex; flex-wrap: wrap; justify-content: center; gap: var(--space-sm); margin-top: var(--space-md); }
.btn-city-outline {
    padding: 0.5rem 1rem; border-radius: var(--radius-md);
    border: 2px solid var(--color-primary); background: transparent;
    color: var(--color-primary); font-size: var(--font-size-sm); font-weight: 600;
    text-decoration: none;
    transition: background 0.15s ease, color 0.15s ease;
}
.btn-city-outline:hover {
    background: var(--color-primary); color: var(--color-text-inverse);
    text-decoration: none;
}

/* --- Detail page ---------------------------------------------------------- */
.detail-section { padding: var(--space-xl) 0; }
.back-link {
    display: inline-block; margin-bottom: var(--space-lg);
    font-size: var(--font-size-sm); font-weight: 600;
    color: var(--color-text-muted);
}
.back-link:hover { color: var(--color-primary); text-decoration: none; }

.detail-header { margin-bottom: var(--space-lg); }
.detail-header-meta {
    display: flex; gap: var(--space-sm); flex-wrap: wrap;
    margin-bottom: var(--space-md);
}
.detail-header h1 {
    font-size: var(--font-size-xxl); font-weight: 800;
    line-height: 1.15; letter-spacing: -0.01em;
    margin-bottom: var(--space-md);
}
.detail-when {
    font-size: var(--font-size-md);
    color: var(--color-text-muted);
}
.detail-when strong { color: var(--color-text); }

.detail-description {
    font-size: var(--font-size-md);
    line-height: 1.7;
    margin-bottom: var(--space-xl);
    max-width: 760px;
}
.detail-description p { margin-bottom: var(--space-md); }

.detail-streets {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    margin-bottom: var(--space-xl);
}
.detail-streets h2 {
    font-size: var(--font-size-md);
    margin-bottom: var(--space-md);
}
.detail-streets ul {
    list-style: none; padding: 0;
    display: grid; gap: var(--space-xs);
    grid-template-columns: 1fr;
}
@media (min-width: 640px) {
    .detail-streets ul { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
    .detail-streets ul { grid-template-columns: repeat(3, 1fr); }
}
.detail-streets li {
    padding: 0.4rem 0.6rem;
    background: var(--color-surface-alt);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
}

.detail-source {
    margin-top: var(--space-md);
    font-size: var(--font-size-sm);
}

/* --- Marketing ------------------------------------------------------------ */
.marketing { padding: var(--space-xl) 0; }
.marketing-hero { background: var(--color-surface); }
.marketing-hero-inner {
    display: grid; gap: var(--space-xl);
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 800px) {
    .marketing-hero-inner { grid-template-columns: 2fr 1fr; }
}
.marketing-copy h2 {
    font-size: var(--font-size-xl); font-weight: 800;
    margin-bottom: var(--space-md);
}
.marketing-copy p {
    font-size: var(--font-size-md);
    color: var(--color-text-muted);
    max-width: 640px;
}
.marketing-visual { text-align: center; }
.marketing-visual img { display: inline-block; }

.marketing-features { background: var(--color-bg); }
.features-grid {
    display: grid; gap: var(--space-md);
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .features-grid { grid-template-columns: repeat(3, 1fr); }
}
.feature-card {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    padding: var(--space-lg);
    box-shadow: var(--shadow-sm);
}
.feature-icon { font-size: 2rem; margin-bottom: var(--space-sm); }
.feature-card h3 {
    font-size: var(--font-size-md); font-weight: 700;
    margin-bottom: var(--space-sm);
}
.feature-card p { color: var(--color-text-muted); font-size: var(--font-size-sm); }

.marketing-how { background: var(--color-surface); }
.section-title {
    font-size: var(--font-size-xl); font-weight: 800;
    text-align: center; margin-bottom: var(--space-xl);
}
.steps {
    list-style: none; padding: 0;
    display: grid; gap: var(--space-md);
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .steps { grid-template-columns: repeat(3, 1fr); }
}
.step {
    padding: var(--space-lg);
    background: var(--color-surface-alt);
    border-radius: var(--radius-md);
    position: relative;
}
.step-number {
    display: inline-flex; align-items: center; justify-content: center;
    width: 2rem; height: 2rem; border-radius: 50%;
    background: var(--color-primary); color: var(--color-text-inverse);
    font-weight: 800; margin-bottom: var(--space-sm);
}
.step h3 {
    font-size: var(--font-size-md); font-weight: 700;
    margin-bottom: var(--space-sm);
}
.step p { color: var(--color-text-muted); font-size: var(--font-size-sm); }

.marketing-cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-text-inverse);
}
.marketing-cta.compact { padding: var(--space-lg) 0; background: transparent; color: inherit; }
.cta-inner {
    display: grid; gap: var(--space-lg);
    grid-template-columns: 1fr;
    align-items: center;
}
@media (min-width: 720px) {
    .marketing-cta:not(.compact) .cta-inner { grid-template-columns: 1fr auto; }
}
.cta-copy h2 { font-size: var(--font-size-xl); margin-bottom: var(--space-sm); }
.cta-copy p { opacity: 0.9; }

.store-badges {
    display: flex; gap: var(--space-md);
    flex-wrap: wrap; justify-content: center;
}
.store-badge {
    display: inline-block;
    transition: transform 0.15s ease;
}
.store-badge:hover { transform: translateY(-2px); }
.store-badge-img { height: 44px; width: auto; display: block; }
/* Google's official PNG has built-in padding; compensate so badges look equal */
.store-badge:has(img[src*="google-play"]) { margin: -10px 0; }
.store-badge:has(img[src*="google-play"]) .store-badge-img { height: 64px; }

.marketing-faq { background: var(--color-bg); }
.faq-list { max-width: 760px; margin: 0 auto; }
.faq-item {
    background: var(--color-surface);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-sm);
    padding: 0 var(--space-md);
    overflow: hidden;
}
.faq-item summary {
    cursor: pointer; padding: var(--space-md) 0;
    font-weight: 700; font-size: var(--font-size-md);
    list-style: none;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
    content: "+"; float: right; color: var(--color-text-muted);
    transition: transform 0.15s ease;
}
.faq-item[open] summary::after { content: "−"; }
.faq-item p { padding-bottom: var(--space-md); color: var(--color-text-muted); }

/* --- Legal pages ---------------------------------------------------------- */
.legal-page { padding: var(--space-xl) 0; }
.legal-container { max-width: 760px; }
.legal-page h1 { font-size: var(--font-size-xxl); margin-bottom: var(--space-sm); }
.legal-page .subtitle { color: var(--color-text-muted); font-size: var(--font-size-sm); margin-bottom: var(--space-xl); }
.legal-page h2 { font-size: var(--font-size-lg); margin: var(--space-xl) 0 var(--space-md); }
.legal-page h3 { font-size: var(--font-size-md); margin: var(--space-lg) 0 var(--space-sm); }
.legal-page p, .legal-page li { margin-bottom: var(--space-sm); font-size: var(--font-size-base); }
.legal-page ul { padding-left: var(--space-lg); margin-bottom: var(--space-md); }
.legal-page code {
    background: var(--color-surface-alt);
    padding: 0.1rem 0.35rem;
    border-radius: var(--radius-sm);
    font-size: 0.9em;
}

/* --- Not found ------------------------------------------------------------ */
.not-found-section {
    padding: var(--space-xxl) 0;
    text-align: center;
}
.not-found-section h1 {
    font-size: 6rem; font-weight: 800;
    color: var(--color-primary);
    line-height: 1;
}
.not-found-section p {
    color: var(--color-text-muted);
    margin: var(--space-md) 0 var(--space-lg);
}

/* --- Footer --------------------------------------------------------------- */
.site-footer {
    background: var(--color-surface);
    border-top: 1px solid var(--color-border);
    padding: var(--space-xl) 0 var(--space-lg);
    margin-top: var(--space-xl);
}
.footer-inner {
    display: grid; gap: var(--space-lg);
    grid-template-columns: 1fr;
}
@media (min-width: 720px) {
    .footer-inner { grid-template-columns: 2fr 2fr 1fr; align-items: start; }
}
.footer-brand img { margin-bottom: var(--space-sm); }
.footer-brand .tagline {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
}
.footer-nav {
    display: flex; gap: var(--space-md);
    flex-wrap: wrap;
}
.footer-nav a {
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-weight: 600;
}
.footer-nav a:hover { color: var(--color-primary); text-decoration: none; }
.footer-meta {
    display: flex; flex-direction: column;
    gap: var(--space-xs);
    color: var(--color-text-muted);
    font-size: var(--font-size-xs);
}
