@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: normal;
    font-display: swap;
    font-weight: 400;
    src: url('/assets/fonts/atkinson-hyperlegible/atkinson-hyperlegible-latin-400-normal.woff2') format('woff2');
}

@font-face {
    font-family: 'Atkinson Hyperlegible';
    font-style: normal;
    font-display: swap;
    font-weight: 700;
    src: url('/assets/fonts/atkinson-hyperlegible/atkinson-hyperlegible-latin-700-normal.woff2') format('woff2');
}

:root {
    --primary: #243447;
    --primary-content: #FFF8EF;
    --accent: #E0B84F;
    --accent-content: #1F1705;
    --accent-hover: #CAA13A;
    --accent-strong: #7F5F00;
    --neutral: #2F3A49;
    --neutral-content: #FFF8EF;
    --base-100: #FFFCF7;
    --base-200: #F7F0E4;
    --base-300: #DED3C3;
    --base-content: #22303C;
    --heading: #243447;
    --text-muted: rgba(34, 48, 60, 0.72);
    --border: rgba(34, 48, 60, 0.12);
    --focus-ring: #7F5F00;
    --nav-bg: var(--primary);
    --nav-text: var(--primary-content);
    --nav-text-muted: rgba(255, 248, 239, 0.84);
    --nav-hover: rgba(255, 248, 239, 0.12);
    --nav-border: rgba(255, 248, 239, 0.16);
    --banner-overlay: rgba(36, 52, 71, 0.74);
    --shadow: 0 20px 25px -5px rgba(17, 24, 39, 0.1), 0 8px 10px -6px rgba(17, 24, 39, 0.08);
    --shadow-sm: 0 10px 18px -10px rgba(17, 24, 39, 0.35);
    --font: 'Atkinson Hyperlegible', Arial, sans-serif;
    --max-width: 1120px;
    --radius: 16px;
}

html[data-theme='dark'] {
    --primary: #E0B84F;
    --primary-content: #1F1705;
    --accent: #FFD36B;
    --accent-content: #221600;
    --accent-hover: #E0B84F;
    --accent-strong: #FFD36B;
    --neutral: #101720;
    --neutral-content: #F7F1E6;
    --base-100: #17212B;
    --base-200: #1F2A38;
    --base-300: #324153;
    --base-content: #F7F1E6;
    --heading: #F7F1E6;
    --text-muted: rgba(247, 241, 230, 0.72);
    --border: rgba(247, 241, 230, 0.14);
    --focus-ring: #FFD36B;
    --nav-bg: var(--neutral);
    --nav-text: var(--neutral-content);
    --nav-text-muted: rgba(247, 241, 230, 0.82);
    --nav-hover: rgba(247, 241, 230, 0.08);
    --nav-border: rgba(247, 241, 230, 0.16);
    --banner-overlay: rgba(16, 23, 32, 0.74);
    --shadow: 0 22px 36px -18px rgba(4, 7, 10, 0.65), 0 10px 18px -12px rgba(4, 7, 10, 0.45);
    --shadow-sm: 0 12px 22px -14px rgba(4, 7, 10, 0.55);
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
    scroll-behavior: smooth;
    background: var(--base-100);
}

body {
    font-family: var(--font);
    color: var(--base-content);
    background: var(--base-100);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    touch-action: manipulation;
    transition: background-color 0.25s ease, color 0.25s ease;
    overflow-x: clip;
}

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

.skip-link {
    position: absolute; top: -100%; left: 1rem; z-index: 200;
    padding: 0.5rem 1rem; background: var(--base-100); color: var(--base-content);
    border-radius: 0 0 8px 8px; font-size: 0.875rem; font-weight: 700;
}
.skip-link:focus { top: 0; }

:focus-visible {
    outline: 3px solid var(--focus-ring);
    outline-offset: 2px;
}

/* ===== NAV (matches app navbar) ===== */
.navbar {
    background: var(--nav-bg);
    color: var(--nav-text);
    box-shadow: 0 4px 6px -1px rgba(0,0,0,0.1);
    position: sticky; top: 0; z-index: 100;
    border-bottom: 1px solid var(--nav-border);
    transition: background-color 0.25s ease, color 0.25s ease, border-color 0.25s ease;
}
.navbar-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1rem;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navbar-brand {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--nav-text);
}
.navbar-links { display: flex; align-items: center; gap: 0.5rem; }
.navbar-links a {
    padding: 0.5rem 0.75rem;
    border-radius: 8px;
    font-size: 0.875rem;
    color: var(--nav-text-muted);
    transition: background-color 0.2s, color 0.2s;
}
.navbar-links a:hover { background: var(--nav-hover); color: var(--nav-text); }
.navbar-links a.btn-accent,
.navbar-links a.btn-accent:hover {
    color: var(--accent-content);
}
.navbar-toggle {
    display: none;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 8px;
    background: transparent;
    color: var(--nav-text);
    cursor: pointer;
    transition: background-color 0.2s ease;
}
.navbar-toggle:hover { background: var(--nav-hover); }
.navbar-toggle svg { width: 1.5rem; height: 1.5rem; display: block; }
.navbar-toggle .icon-close { display: none; }
.navbar-toggle[aria-expanded="true"] .icon-burger { display: none; }
.navbar-toggle[aria-expanded="true"] .icon-close { display: block; }
.theme-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    border-radius: 999px;
    background: transparent;
    color: var(--nav-text);
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, transform 0.15s ease;
}
.theme-toggle:hover { background: var(--nav-hover); }
.theme-toggle:active { transform: translateY(1px); }
.theme-toggle svg { width: 1.1rem; height: 1.1rem; display: block; }
.theme-toggle .icon-sun { display: none; }
html[data-theme='dark'] .theme-toggle .icon-sun { display: block; }
html[data-theme='dark'] .theme-toggle .icon-moon { display: none; }

/* ===== BUTTONS (matches app btn system) ===== */
.btn {
    display: inline-flex; align-items: center; justify-content: center;
    padding: 0.75rem 1.5rem;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.875rem;
    font-family: var(--font);
    transition: transform 0.15s, background-color 0.2s, box-shadow 0.2s;
    cursor: pointer;
    border: none;
    text-decoration: none;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
    background: var(--primary);
    color: var(--primary-content);
}
.btn-primary:hover { box-shadow: var(--shadow-sm); }
.btn-accent {
    background: var(--accent);
    color: var(--accent-content);
}
.btn-accent:hover { background: var(--accent-hover); box-shadow: var(--shadow-sm); }
.btn-ghost {
    background: transparent;
    color: var(--base-content);
    border: 2px solid var(--base-300);
}
.btn-ghost:hover {
    border-color: var(--primary);
    background: var(--base-200);
}
.btn-lg { padding: 1rem 2rem; font-size: 1rem; border-radius: 10px; }
.btn-white {
    background: var(--base-100);
    color: var(--primary);
}
.btn-white:hover { box-shadow: var(--shadow-sm); }

/* ===== CARDS (matches app card system) ===== */
.card {
    background: var(--base-100);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    overflow: hidden;
    border: 1px solid var(--border);
    transition: background-color 0.25s ease, border-color 0.25s ease, box-shadow 0.25s ease;
}

/* ===== HERO ===== */
.hero {
    background: var(--base-200);
    padding: 5rem 2rem 4rem;
    text-align: center;
}
.hero-inner {
    max-width: 720px;
    margin: 0 auto;
}
.hero-badge {
    display: inline-flex; align-items: center; gap: 0.5rem;
    padding: 0.375rem 1rem;
    background: var(--base-100);
    border: 1px solid var(--border);
    border-radius: 100px;
    font-size: 0.8125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 1.5rem;
}
.hero h1 {
    font-size: clamp(2.25rem, 5vw, 3.25rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.02em;
    margin-bottom: 1.25rem;
    text-wrap: balance;
    color: var(--heading);
}
.hero h1 .highlight { color: var(--accent-strong); }
.hero-sub {
    font-size: 1.125rem;
    color: var(--text-muted);
    max-width: 540px;
    margin: 0 auto 2rem;
    line-height: 1.7;
}
.hero-cta {
    display: flex; gap: 0.75rem;
    justify-content: center; flex-wrap: wrap;
    margin-bottom: 1rem;
}
.hero-price {
    font-size: 0.875rem;
    color: var(--text-muted);
}
.hero-screenshot {
    max-width: var(--max-width);
    margin: 3rem auto 0;
}
.hero-screenshot .card { border-radius: 12px; }
.hero-slideshow {
    position: relative;
    width: 100%;
    height: 0;
    padding-top: 45.86%; /* 587 / 1280 * 100 */
    background: linear-gradient(180deg, var(--base-200), var(--base-100));
}
.hero-slideshow img {
    position: absolute; inset: 0;
    width: 100%; height: 100%;
    object-fit: cover;
    object-position: center top;
    opacity: 0;
    transition: opacity 0.8s ease;
}
.hero-slideshow img.active { opacity: 1; }
.slideshow-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.25rem;
    margin-top: 1rem;
}
.slideshow-dots { display: flex; justify-content: center; }
.slideshow-dot,
.slideshow-toggle {
    display: grid;
    place-items: center;
    width: 32px; height: 32px;
    padding: 0; border: 0;
    border-radius: 999px;
    background: transparent;
    cursor: pointer;
}
.slideshow-dot::before {
    content: '';
    width: 8px; height: 8px;
    border-radius: inherit;
    background: var(--border);
    transition: background-color 0.2s ease, transform 0.15s ease, width 0.2s ease;
}
.slideshow-dot:hover::before { transform: scale(1.2); }
.slideshow-dot[aria-current='true']::before {
    background: var(--primary);
    width: 22px;
}
.slideshow-toggle {
    color: var(--text-muted);
    transition: color 0.2s ease, background-color 0.2s ease;
}
.slideshow-toggle:hover {
    color: var(--primary);
    background: var(--border);
}
.slideshow-toggle svg { width: 14px; height: 14px; }
.slideshow-toggle .icon-play { display: none; }
.slideshow-toggle[aria-pressed='true'] .icon-pause { display: none; }
.slideshow-toggle[aria-pressed='true'] .icon-play { display: block; }

/* ===== SOCIAL PROOF ===== */
.social-proof {
    background: var(--base-200);
    padding: 0 2rem 4rem;
    text-align: center;
}
.proof-strip {
    max-width: 820px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
}
.proof-item {
    padding: 1rem;
    border: 1px solid var(--border);
    border-radius: 12px;
    background: var(--base-100);
}
.proof-item strong {
    display: block;
    color: var(--heading);
    font-size: 0.9375rem;
    margin-bottom: 0.25rem;
}
.proof-item span { font-size: 0.8125rem; color: var(--text-muted); }

/* ===== FEATURES ===== */
.features {
    padding: 5rem 2rem;
    background: var(--base-100);
}
.features-inner { max-width: var(--max-width); margin: 0 auto; }
.section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--accent-strong);
    margin-bottom: 0.5rem;
}
.section-title {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700;
    line-height: 1.2;
    margin-bottom: 1rem;
    text-wrap: balance;
    color: var(--heading);
}
.section-desc {
    font-size: 1.0625rem;
    color: var(--text-muted);
    max-width: 560px;
    line-height: 1.7;
}
.features-header { text-align: center; margin-bottom: 3.5rem; }
.features-header .section-desc { margin: 0 auto; }
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
}
.feature-card {
    background: var(--base-200);
    border-radius: var(--radius);
    padding: 2rem 1.5rem;
    text-align: center;
    border: 1px solid var(--border);
}
.feature-icon {
    width: 52px; height: 52px;
    margin: 0 auto 1.25rem;
    display: flex; align-items: center; justify-content: center;
    background: var(--accent);
    border-radius: 12px;
}
.feature-icon svg { width: 26px; height: 26px; color: var(--accent-content); }
.feature-card h3 {
    font-size: 1.0625rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--heading);
}
.feature-card p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.6; }

/* ===== HOW IT WORKS ===== */
.how-it-works {
    padding: 5rem 2rem;
    background: var(--base-200);
    border-top: 1px solid var(--border);
    border-bottom: 1px solid var(--border);
}
.how-inner { max-width: var(--max-width); margin: 0 auto; }
.how-header { text-align: center; margin-bottom: 3.5rem; }
.how-header .section-desc { margin: 0 auto; }
.steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}
.step { text-align: center; }
.step-number {
    width: 44px; height: 44px;
    border-radius: 12px;
    background: var(--primary);
    color: var(--primary-content);
    display: flex; align-items: center; justify-content: center;
    font-weight: 700; font-size: 1rem;
    margin: 0 auto 1rem;
}
.step h3 {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
    color: var(--heading);
}
.step p { font-size: 0.875rem; color: var(--text-muted); line-height: 1.6; }

/* ===== CITY BANNER ===== */
.city-banner {
    position: relative;
    overflow: hidden;
    padding: 6rem 2rem;
    color: var(--nav-text);
    text-align: center;
}
.city-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    z-index: 1;
    background: var(--banner-overlay);
}
.city-banner-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.city-banner-inner { position: relative; z-index: 2; max-width: 640px; margin: 0 auto; }
.city-banner h2 {
    font-size: clamp(1.75rem, 3vw, 2.5rem);
    font-weight: 700; line-height: 1.2;
    margin-bottom: 1rem; text-wrap: balance;
}
.city-banner p {
    font-size: 1.0625rem;
    opacity: 0.9; line-height: 1.7;
    margin-bottom: 2rem;
}
/* ===== FAQ ===== */
.faq {
    padding: 5rem 2rem;
    background: var(--base-100);
}
.faq-inner { max-width: 720px; margin: 0 auto; }
.faq-header { text-align: center; margin-bottom: 3rem; }
details.faq-item {
    border-bottom: 1px solid var(--border);
    padding: 1.25rem 0;
}
details.faq-item:first-of-type { border-top: 1px solid var(--border); }
details.faq-item summary {
    font-weight: 700; font-size: 1rem;
    cursor: pointer;
    display: flex; justify-content: space-between; align-items: center; gap: 1rem;
    list-style: none;
    color: var(--heading);
}
details.faq-item summary::-webkit-details-marker { display: none; }
details.faq-item summary::after {
    content: '+'; font-size: 1.25rem; font-weight: 400;
    color: var(--text-muted); flex-shrink: 0;
}
details.faq-item[open] summary::after { content: '−'; }
details.faq-item .faq-a { padding-top: 0.75rem; }
details.faq-item .faq-a p { font-size: 0.9375rem; color: var(--text-muted); line-height: 1.7; }
details.faq-item .faq-a a { color: var(--accent-strong); text-decoration: underline; font-weight: 600; }
details.faq-item .faq-a a:hover { color: var(--heading); }

/* ===== FINAL CTA ===== */
.final-cta {
    padding: 5rem 2rem;
    background: var(--base-200);
    text-align: center;
    border-top: 1px solid var(--border);
}
.final-cta-inner { max-width: 560px; margin: 0 auto; }
.final-cta h2 {
    font-size: clamp(1.75rem, 3vw, 2.25rem);
    font-weight: 700; line-height: 1.2;
    margin-bottom: 1rem; text-wrap: balance;
    color: var(--heading);
}
.final-cta p {
    color: var(--text-muted); font-size: 1.0625rem;
    line-height: 1.7; margin-bottom: 2rem;
}

/* ===== FOOTER (matches app footer) ===== */
.footer {
    background: var(--base-200);
    border-top: 1px solid var(--border);
    padding: 1.5rem 2rem;
}
.footer-inner {
    max-width: var(--max-width); margin: 0 auto;
    display: flex; justify-content: space-between; align-items: center;
    flex-wrap: wrap; gap: 1rem;
}
.footer p { font-size: 0.8125rem; color: var(--text-muted); }
.footer a { font-weight: 600; }
.footer a:hover { text-decoration: underline; color: var(--primary); }
.footer-links {
    display: flex;
    flex-wrap: wrap;
    justify-content: flex-end;
    gap: 0.75rem;
}

/* ===== REDUCED MOTION ===== */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    html { scroll-behavior: auto; }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1100px) {
    .navbar-toggle { display: inline-flex; }
    .navbar-links {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--nav-bg);
        border-bottom: 1px solid var(--nav-border);
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        padding: 0.75rem 1rem 1rem;
        box-shadow: 0 6px 12px -8px rgba(0,0,0,0.25);
        display: none;
    }
    .navbar-links[data-open="true"] { display: flex; }
    .navbar-links a {
        padding: 0.75rem;
        font-size: 1rem;
    }
    .navbar-links .theme-toggle { align-self: flex-start; }
    .navbar-links a.btn-accent { justify-content: center; margin-top: 0.25rem; }
}
@media (max-width: 768px) {
    .features-grid { grid-template-columns: 1fr; }
    .steps { grid-template-columns: 1fr 1fr; }
    .proof-strip { grid-template-columns: 1fr; }
    .hero { padding: 4rem 1.5rem 3rem; }
    .footer-inner { justify-content: center; text-align: center; }
    .footer-links { justify-content: center; }
}
@media (max-width: 480px) {
    .steps { grid-template-columns: 1fr; }
    .hero-cta { flex-direction: column; align-items: center; }
    .hero-cta .btn { width: 100%; max-width: 320px; }
}
