:root {
    /* System hint */
    color-scheme: light;

    /* Typography */
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    line-height: 1.6;

    /* Light theme palette */
    --bg: #f7f7f9;
    --bg-elevated: #fdfdff;
    --surface: #ffffff;
    --surface-soft: #f3f4ff;
    --text: #111827;
    --muted: #6b7280;
    --accent: #6c63ff;
    --accent-soft: #e0e0ff;
    --accent-dark: #4b45c2;
    --border: #e5e7eb;

    /* Layout & depth */
    --radius: 16px;
    --nav-radius: 999px;
    --shadow-soft: 0 18px 45px rgba(15, 23, 42, 0.08);
    --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);

    /* Header / footer */
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-border: rgba(148, 163, 184, 0.4);
    --hero-bg: linear-gradient(135deg, #f9fafb, #eef2ff);
    --footer-bg: #ffffff;
}

/* Dark mode theme */
@media (prefers-color-scheme: dark) {
    :root {
        color-scheme: dark;

        --bg: #050509;
        --bg-elevated: #0b0b14;
        --surface: #101018;
        --surface-soft: #151526;
        --text: #e5e7ff;
        --muted: #9ca3c7;
        --accent: #c4b5ff;
        --accent-soft: rgba(129, 140, 248, 0.15);
        --accent-dark: #a78bfa;
        --border: #27273a;

        --shadow-soft: 0 22px 60px rgba(0, 0, 0, 0.7);
        --shadow: 0 18px 45px rgba(0, 0, 0, 0.65);

        --nav-bg: rgba(10, 10, 20, 0.9);
        --nav-border: rgba(75, 85, 99, 0.7);
        --hero-bg: radial-gradient(circle at top left, #1f2937, #020617);
        --footer-bg: #020617;
    }
}

/* Global reset-ish */
* {
    box-sizing: border-box;
}

body {
    margin: 0;
    background: var(--bg);
    color: var(--text);
    font-size: 16px;
}

/* Media */
img {
    max-width: 100%;
    height: auto;
    display: block;
}

/* Typography */
h1, h2, h3 {
    line-height: 1.25;
}

p {
    margin: 0 0 1rem;
}

ul {
    margin: 0.75rem 0 1rem;
}

/* Links */
a {
    color: var(--accent);
    text-decoration: none;
    transition: color 0.15s ease, opacity 0.15s ease;
}

a:hover,
a:focus-visible {
    text-decoration: underline;
}

/* Layout container */
.container {
    width: min(900px, 100% - 2rem);
    margin: 0 auto;
}

/* Header / nav */
.site-header {
    position: sticky;
    top: 0;
    z-index: 20;
    backdrop-filter: blur(18px);
    -webkit-backdrop-filter: blur(18px);
    background: var(--nav-bg);
    border-bottom: 1px solid var(--nav-border);
}

.nav-wrapper {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    padding: 0.85rem 0;
    gap: 1rem;
}

.brand {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.brand-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);
    overflow: hidden;
}

/* Nav links */
.site-nav {
    display: flex;
    gap: 0.75rem;
    font-weight: 500;
    flex-wrap: wrap;
}

.site-nav a {
    color: var(--text);
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    border: 1px solid transparent;
    background: transparent;
    transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.site-nav a:hover {
    background: var(--accent-soft);
    border-color: var(--border);
}

.site-nav a.active {
    color: #ffffff;
    background: var(--accent);
    border-color: transparent;
    text-decoration: none;
}

/* Hero */
.hero {
    margin-top: 1.5rem;
    padding: 3.5rem 1.5rem;
    background: var(--hero-bg);
    border-radius: 24px;
    box-shadow: var(--shadow-soft);
    text-align: center;
}

.hero .eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.2em;
    font-size: 0.7rem;
    color: var(--muted);
    margin-bottom: 0.75rem;
}

.hero h1 {
    font-size: clamp(2.4rem, 6vw, 3.5rem);
    margin: 0 0 0.5rem;
}

.hero .tagline {
    font-size: 1.1rem;
    color: var(--muted);
    max-width: 32rem;
    margin: 0 auto;
}

.hero .note {
    margin-top: 1rem;
    color: var(--text);
    font-size: 0.95rem;
}

/* Hero actions */
.hero-actions {
    margin: 2rem 0 1.5rem;
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
}

.app-store-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.9rem 2.5rem;
    border-radius: 999px;
    border: 1px solid var(--border);
    background: var(--text);
    color: #fff;
    font-weight: 600;
    letter-spacing: 0.03em;
    font-size: 0.9rem;
    box-shadow: var(--shadow);
    cursor: pointer;
    text-decoration: none;
}

.app-store-badge.secondary {
    background: transparent;
    color: var(--text);
    border-color: var(--border);
}

.app-store-badge:hover,
.app-store-badge:focus-visible {
    background: var(--accent-dark);
    border-color: transparent;
    color: #ffffff;
    text-decoration: none;
}

.app-store-badge.secondary:hover,
.app-store-badge.secondary:focus-visible {
    background: var(--accent-soft);
    border-color: var(--border);
    color: var(--text);
}

/* Hero image */
.hero-image {
    margin-top: 2rem;
}

/* Main layout */
main section {
    margin: 3rem 0;
}

/* Card base */
.card,
.hero,
.site-footer {
    background: var(--surface);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 2rem;
}

.card {
    background: var(--surface);
    border-radius: var(--radius);
}

/* Grids */
.features .grid,
.audience .grid {
    display: grid;
    gap: 1.5rem;
}

/* Card headings */
.card h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
}

/* Content cards */
.how-it-works .card,
.audience .card,
.faq .faq-item,
.page-content .card {
    box-shadow: var(--shadow);
    background: var(--surface);
}

/* FAQ spacing */
.faq .faq-item + .faq-item {
    margin-top: 1rem;
}

/* Lists */
.card-list {
    display: grid;
    gap: 1.5rem;
}

.page-content section {
    margin-bottom: 2rem;
}

.page-content ul {
    padding-left: 1.25rem;
}

.hero .availability {
    margin: 0.25rem auto 0.75rem;
    max-width: 40rem;
    color: var(--muted);
    font-size: 0.95rem;
}

/* Footer */
.site-footer {
    margin-top: 4rem;
    border-radius: 0;
    box-shadow: none;
    border-top: 1px solid var(--border);
    background: var(--footer-bg);
    padding: 0;
}

.footer-content {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 2rem 0;
    color: var(--muted);
}

.footer-links {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
}

/* Utility text colors */
.muted {
    color: var(--muted);
}

/* Pricing block (FAQ) – clear typography so prices are unmistakable */
.pricing-block {
    margin-top: 12px;
    margin-bottom: 12px;
    line-height: 1.45;
    max-width: 48ch;
}
.pricing-line {
    margin: 6px 0;
}
.pricing-lead {
    font-weight: 600;
    color: var(--text);
}
.pricing-prices {
    font-weight: 400;
    color: var(--text);
}
.price-strong {
    font-weight: 700;
    color: var(--text);
}
.pricing-note {
    font-weight: 400;
    color: var(--muted);
    opacity: 0.9;
}

/* Responsive layout */
@media (min-width: 720px) {
    .nav-wrapper {
        padding: 1rem 0;
    }

    .hero {
        text-align: left;
        padding: 3.5rem 3rem;
        display: grid;
        grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr);
        gap: 2.5rem;
        align-items: center;
    }

    .hero-image {
        margin-top: 0;
        justify-self: center;
    }

    .features .grid,
    .audience .grid,
    .card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .audience .grid.two-col {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .footer-content {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
    }
}

@media (min-width: 1024px) {
    .features .grid,
    .audience .grid {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }

    .card-list {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Light/Dark app icon switching */
.app-icon {
    width: 40px;
    height: 40px;
    border-radius: 12px;
}

.app-icon--light {
    display: none;
}

/* Dark Mode -> show light icon instead */
@media (prefers-color-scheme: dark) {
    .app-icon--dark {
        display: none;
    }
    .app-icon--light {
        display: inline-block;
    }
}

/* Larger icon styling for hero section */
.hero-app-icon {
    width: 120px;
    height: 120px;
    border-radius: 20px;
    box-shadow: var(--shadow);
    margin: 0 auto;
}

/* FIX: App Store Button Visibility in Dark Mode */
@media (prefers-color-scheme: dark) {
    .app-store-badge {
        background: var(--surface-soft);
        border-color: var(--border);
        color: var(--text);
        box-shadow: var(--shadow);
    }

    .app-store-badge.secondary {
        background: transparent;
        border-color: var(--border);
        color: var(--accent);
    }

    .app-store-badge:hover,
    .app-store-badge:focus-visible {
        background: var(--accent-soft);
        border-color: var(--accent-dark);
        color: var(--accent-dark);
    }
}