/* ============================================
   QURAN PROGRESS — Main Stylesheet
   Modern, clean, mobile-first design
   ============================================ */

/* --- CSS Custom Properties --- */
:root {
    /* Brand colors */
    --color-primary: #1d84c6;
    --color-primary-dark: #166ba3;
    --color-primary-light: #3a9bd6;
    --color-accent: #3db8a2;
    --color-accent-light: #5ecdb5;

    /* App blue (from screenshots) */
    --color-app-blue: #1b3a5c;
    --color-app-blue-light: #2d5f8a;

    /* Neutrals */
    --color-bg: #fafbfc;
    --color-bg-alt: #f0f4f8;
    --color-bg-dark: #0f172a;
    --color-text: #1e293b;
    --color-text-light: #64748b;
    --color-text-lighter: #94a3b8;
    --color-white: #ffffff;
    --color-border: #e2e8f0;

    /* Status */
    --color-success: #10b981;
    --color-warning: #f59e0b;

    /* Typography */
    --font-body:
        'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --font-arabic: 'Amiri', 'Traditional Arabic', serif;

    /* Spacing */
    --space-xs: 0.25rem;
    --space-sm: 0.5rem;
    --space-md: 1rem;
    --space-lg: 1.5rem;
    --space-xl: 2rem;
    --space-2xl: 3rem;
    --space-3xl: 4rem;
    --space-4xl: 6rem;

    /* Layout */
    --max-width: 1200px;
    --max-width-narrow: 800px;

    /* Borders */
    --radius-sm: 0.375rem;
    --radius-md: 0.75rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow-md:
        0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -2px rgba(0, 0, 0, 0.05);
    --shadow-lg:
        0 10px 25px -3px rgba(0, 0, 0, 0.08),
        0 4px 10px -4px rgba(0, 0, 0, 0.04);
    --shadow-xl:
        0 20px 50px -5px rgba(0, 0, 0, 0.1), 0 8px 20px -6px rgba(0, 0, 0, 0.05);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 250ms ease;
    --transition-slow: 400ms ease;
}

/* --- Dark Mode --- */
html[data-theme='dark'] {
    --color-bg: #0f1419;
    --color-bg-alt: #1a2027;
    --color-bg-dark: #0a0e12;
    --color-text: #e4e8ec;
    --color-text-light: #9ba8b5;
    --color-text-lighter: #6b7a8a;
    --color-white: #1a2027;
    --color-border: #2a3440;

    --color-primary: #3a9bd6;
    --color-primary-dark: #1d84c6;
    --color-primary-light: #5bb0e0;

    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.2);
    --shadow-md:
        0 4px 6px -1px rgba(0, 0, 0, 0.3), 0 2px 4px -2px rgba(0, 0, 0, 0.2);
    --shadow-lg:
        0 10px 25px -3px rgba(0, 0, 0, 0.3), 0 4px 10px -4px rgba(0, 0, 0, 0.2);
    --shadow-xl:
        0 20px 50px -5px rgba(0, 0, 0, 0.4), 0 8px 20px -6px rgba(0, 0, 0, 0.3);
}

html[data-theme='dark'] .nav {
    background: rgba(15, 20, 25, 0.9);
    border-bottom-color: var(--color-border);
}

html[data-theme='dark'] .nav__logo .logo-light {
    display: none;
}

html[data-theme='dark'] .nav__logo .logo-dark {
    display: block;
}

.nav__logo .logo-dark {
    display: none;
}

.footer__brand .logo-light {
    display: none;
}

html[data-theme='dark'] .nav__burger span {
    background: var(--color-text);
}

html[data-theme='dark'] .nav__lang-dropdown {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
}

html[data-theme='dark'] .nav__lang-dropdown a:hover {
    background: var(--color-bg);
}

@media (max-width: 768px) {
    html[data-theme='dark'] .nav__links {
        background: var(--color-bg-alt);
        border-bottom-color: var(--color-border);
    }
}

html[data-theme='dark'] .feature-card {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
}

html[data-theme='dark'] .feature-card:hover {
    box-shadow: var(--shadow-lg);
}

html[data-theme='dark'] .feature-card__icon {
    background: rgba(58, 155, 214, 0.12);
}

html[data-theme='dark'] .hero__phone-frame {
    box-shadow: var(--shadow-xl);
}

html[data-theme='dark'] .showcase__screen {
    box-shadow: var(--shadow-lg);
}

html[data-theme='dark'] .faq__question {
    color: var(--color-text);
}

html[data-theme='dark'] .mobile-cta {
    background: var(--color-bg-alt);
    border-top-color: var(--color-border);
}

html[data-theme='dark'] .footer {
    background: #0a0e12;
}

html[data-theme='dark'] h1,
html[data-theme='dark'] h2,
html[data-theme='dark'] h3,
html[data-theme='dark'] h4 {
    color: var(--color-text);
}

html[data-theme='dark'] .blog-card {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
}

html[data-theme='dark'] .blog-post__content blockquote {
    background: var(--color-bg-alt);
}

html[data-theme='dark'] .blog-post__cta {
    background: var(--color-bg-alt);
}

/* Also respect system preference as default */
@media (prefers-color-scheme: dark) {
    :root:not([data-theme='light']) {
        --color-bg: #0f1419;
        --color-bg-alt: #1a2027;
        --color-bg-dark: #0a0e12;
        --color-text: #e4e8ec;
        --color-text-light: #9ba8b5;
        --color-text-lighter: #6b7a8a;
        --color-white: #1a2027;
        --color-border: #2a3440;
        --color-primary: #3a9bd6;
        --color-primary-dark: #1d84c6;
        --color-primary-light: #5bb0e0;
    }
}

/* --- Dark mode toggle --- */
.nav__theme-toggle {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.375rem;
    border-radius: var(--radius-sm);
    color: var(--color-text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    transition:
        color var(--transition-fast),
        background var(--transition-fast);
}

.nav__theme-toggle:hover {
    color: var(--color-text);
    background: var(--color-bg-alt);
}

.nav__theme-toggle .icon-moon,
.nav__theme-toggle .icon-sun {
    width: 18px;
    height: 18px;
}

.nav__theme-toggle .icon-sun {
    display: none;
}

[data-theme='dark'] .nav__theme-toggle .icon-moon {
    display: none;
}

[data-theme='dark'] .nav__theme-toggle .icon-sun {
    display: block;
}

/* --- Reset & Base --- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.6;
    color: var(--color-text);
    background-color: var(--color-bg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

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

a {
    color: var(--color-primary);
    text-decoration: none;
    transition: color var(--transition-fast);
}

a:hover {
    color: var(--color-primary-dark);
}

/* --- Utility --- */
.container {
    width: 100%;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container--narrow {
    max-width: var(--max-width-narrow);
}

.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

.text-center {
    text-align: center;
}

/* --- Typography --- */
h1,
h2,
h3,
h4 {
    line-height: 1.2;
    font-weight: 700;
    color: var(--color-text);
}

h1 {
    font-size: clamp(2rem, 5vw, 3.25rem);
    letter-spacing: -0.02em;
}

h2 {
    font-size: clamp(1.5rem, 3.5vw, 2.25rem);
    letter-spacing: -0.015em;
}

h3 {
    font-size: clamp(1.125rem, 2.5vw, 1.5rem);
}

.section-label {
    display: inline-block;
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--color-primary);
    margin-bottom: var(--space-sm);
}

.section-description {
    font-size: 1.125rem;
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
}

/* --- Navigation --- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(250, 251, 252, 0.85);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--color-border);
    transition: background var(--transition-base);
}

.nav__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 64px;
}

.nav__logo {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.nav__logo img {
    height: 36px;
    width: auto;
}

.nav__links {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
    list-style: none;
}

.nav__links a {
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--color-text-light);
    transition: color var(--transition-fast);
}

.nav__links a:hover {
    color: var(--color-text);
}

.nav__cta {
    display: inline-flex;
    align-items: center;
    gap: var(--space-xs);
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--color-white) !important;
    background: var(--color-primary);
    border-radius: var(--radius-full);
    transition:
        background var(--transition-fast),
        transform var(--transition-fast);
}

.nav__cta:hover {
    background: var(--color-primary-dark);
    color: var(--color-white) !important;
    transform: translateY(-1px);
}

/* Language switcher */
.nav__lang {
    position: relative;
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--color-text-light);
    cursor: pointer;
}

.nav__lang-current {
    display: flex;
    align-items: center;
    gap: 0.25rem;
    padding: 0.25rem 0.5rem;
    border-radius: var(--radius-sm);
    transition: background var(--transition-fast);
}

.nav__lang-current:hover {
    background: var(--color-bg-alt);
}

.nav__lang-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    right: 0;
    min-width: 140px;
    padding-top: 0.4rem;
    background: transparent;
}

.nav__lang-dropdown a {
    display: block;
    padding: 0.5rem 1rem;
    font-size: 0.875rem;
    color: var(--color-text);
    background: var(--color-white);
    transition: background var(--transition-fast);
    border-left: 1px solid var(--color-border);
    border-right: 1px solid var(--color-border);
}

.nav__lang-dropdown a:first-child {
    border-top: 1px solid var(--color-border);
    border-radius: var(--radius-md) var(--radius-md) 0 0;
    box-shadow: 0 -2px 6px rgba(0, 0, 0, 0.04);
}

.nav__lang-dropdown a:last-child {
    border-bottom: 1px solid var(--color-border);
    border-radius: 0 0 var(--radius-md) var(--radius-md);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.06);
}

.nav__lang:hover .nav__lang-dropdown,
.nav__lang-dropdown.open {
    display: block;
}

.nav__lang-dropdown a:hover {
    background: var(--color-bg-alt);
}

/* Mobile menu */
.nav__burger {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav__burger span {
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-text);
    margin: 5px 0;
    transition:
        transform var(--transition-base),
        opacity var(--transition-base);
}

@media (max-width: 768px) {
    .nav__burger {
        display: block;
    }

    .nav__links {
        display: none;
        position: absolute;
        top: 64px;
        left: 0;
        right: 0;
        flex-direction: column;
        background: var(--color-white);
        border-bottom: 1px solid var(--color-border);
        padding: var(--space-lg);
        gap: var(--space-lg);
        box-shadow: var(--shadow-lg);
    }

    .nav__links.active {
        display: flex;
    }

    .nav__lang-dropdown {
        position: static;
        box-shadow: none;
        border: none;
        margin-top: var(--space-sm);
    }
}

/* --- Hero --- */
.hero {
    padding: calc(64px + var(--space-xl)) 0 var(--space-xl);
    overflow: hidden;
}

/* Centered hero variant (like resubs.app) */
.hero--centered .hero__content {
    max-width: 48rem;
    margin: 0 auto;
}

.hero--centered .hero__subtitle {
    max-width: 42rem;
    margin-left: auto;
    margin-right: auto;
}

.hero--centered .hero__ctas {
    justify-content: center;
}

.hero--centered .hero__badge {
    margin-left: auto;
    margin-right: auto;
}

.hero__screenshots {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    gap: 0;
    margin-top: var(--space-3xl);
    position: relative;
    padding: 0 var(--space-xl);
}

.hero__screenshot {
    border-radius: 1.75rem;
    box-shadow: var(--shadow-lg);
}

.hero__screenshot:first-child {
    transform: rotate(-6deg) translateY(80px);
    margin-right: calc(-1 * var(--space-xl));
    z-index: 0;
}

.hero__screenshot:last-child {
    transform: rotate(6deg) translateY(80px);
    margin-left: calc(-1 * var(--space-xl));
    z-index: 0;
}

.hero__screenshot--main {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
    z-index: 1;
    position: relative;
}

@media (max-width: 768px) {
    .hero__screenshot:first-child,
    .hero__screenshot:last-child {
        display: none;
    }

    .hero__screenshot--main {
        transform: none;
        width: 220px;
        height: auto;
        border-radius: 1.5rem;
    }
}

.hero__inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-3xl);
    align-items: center;
}

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 0.375rem 1rem;
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--color-primary-dark);
    background: rgba(45, 110, 181, 0.08);
    border: 1px solid rgba(45, 110, 181, 0.15);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.hero__title {
    margin-bottom: var(--space-lg);
}

.hero__title em {
    font-style: normal;
    color: var(--color-primary);
}

.hero__subtitle {
    font-size: 1.1875rem;
    color: var(--color-text-light);
    margin-bottom: var(--space-2xl);
    max-width: 520px;
}

.hero__ctas {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.store-badge {
    display: inline-block;
    transition:
        transform var(--transition-fast),
        box-shadow var(--transition-fast);
    border-radius: var(--radius-md);
}

.store-badge:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.store-badge img {
    height: 52px;
    width: auto;
    border-radius: var(--radius-md);
    object-fit: contain;
}

/* Google Play badge has extra padding baked in — compensate */
.store-badge img[alt*='Google Play'] {
    height: 64px;
    margin: -6px 0;
}

.hero__stats {
    display: flex;
    gap: var(--space-xl);
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid var(--color-border);
}

.hero--centered .hero__stats {
    justify-content: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-2xl);
}

.hero__stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-text);
}

.hero__stat-label {
    font-size: 0.8125rem;
    color: var(--color-text-light);
}

/* Hero phone mockup */
.hero__visual {
    display: flex;
    justify-content: center;
    position: relative;
}

.hero__phone {
    position: relative;
    width: 280px;
}

.hero__phone-frame {
    width: 100%;
    border-radius: 2.5rem;
    box-shadow: var(--shadow-xl);
}

.hero__phone--back {
    position: absolute;
    right: -60px;
    top: 40px;
    width: 240px;
    opacity: 0.7;
    transform: rotate(5deg);
}

.hero__phone--back .hero__phone-frame {
    border-radius: 2rem;
}

@media (max-width: 968px) {
    .hero__inner {
        grid-template-columns: 1fr;
        text-align: center;
    }

    .hero__subtitle {
        margin-left: auto;
        margin-right: auto;
    }

    .hero__ctas {
        justify-content: center;
    }

    .hero__stats {
        justify-content: center;
    }

    .hero__visual {
        order: -1;
    }

    .hero__phone {
        width: 220px;
    }

    .hero__phone--back {
        display: none;
    }
}

/* --- Section: Stats Banner --- */
.stats-banner {
    background: linear-gradient(
        135deg,
        var(--color-app-blue) 0%,
        var(--color-app-blue-light) 100%
    );
    padding: var(--space-3xl) 0;
    color: var(--color-white);
}

.stats-banner__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-xl);
    text-align: center;
}

.stats-banner__item {
    padding: var(--space-lg);
}

.stats-banner__number {
    font-size: clamp(2rem, 4vw, 3rem);
    font-weight: 800;
    line-height: 1;
    margin-bottom: var(--space-sm);
}

.stats-banner__number--accent {
    color: var(--color-accent-light);
}

.stats-banner__label {
    font-size: 0.9375rem;
    opacity: 0.85;
}

@media (max-width: 768px) {
    .stats-banner__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .stats-banner__grid {
        grid-template-columns: 1fr;
    }
}

/* --- Section: Features --- */
.features {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-alt);
}

.features__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.feature-card {
    padding: var(--space-2xl);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition:
        box-shadow var(--transition-base),
        transform var(--transition-base);
}

.feature-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
}

.feature-card__icon {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    background: rgba(45, 110, 181, 0.08);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-lg);
    font-size: 1.5rem;
}

.feature-card__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.feature-card__text {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.6;
}

@media (max-width: 640px) {
    .features__grid {
        grid-template-columns: 1fr;
    }
}

/* --- Section: How It Works --- */
.how-it-works {
    padding: var(--space-4xl) 0;
}

.steps {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-2xl);
    margin-top: var(--space-3xl);
}

.step {
    text-align: center;
    padding: var(--space-xl);
}

.step__number {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 48px;
    height: 48px;
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    background: rgba(45, 110, 181, 0.08);
    border-radius: var(--radius-full);
    margin-bottom: var(--space-lg);
}

.step__title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: var(--space-sm);
}

.step__text {
    font-size: 0.9375rem;
    color: var(--color-text-light);
}

.step__image {
    width: 200px;
    margin: var(--space-lg) auto 0;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

@media (max-width: 768px) {
    .steps {
        grid-template-columns: 1fr;
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

/* --- Section: Showcase (app screenshots) --- */
.showcase {
    padding: var(--space-4xl) 0;
}

.showcase__screens {
    display: flex;
    justify-content: center;
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    overflow-x: auto;
    padding-bottom: var(--space-lg);
}

.showcase__screen {
    flex-shrink: 0;
    width: 220px;
    border-radius: 1.75rem;
    box-shadow: var(--shadow-lg);
}

@media (max-width: 768px) {
    .showcase__screens {
        gap: var(--space-md);
        justify-content: flex-start;
        padding: 0 var(--space-lg) var(--space-lg);
        -webkit-overflow-scrolling: touch;
        scroll-snap-type: x mandatory;
    }

    .showcase__screen {
        width: 180px;
        scroll-snap-align: center;
    }
}

/* --- Section: Testimonials --- */
.testimonials {
    padding: var(--space-4xl) 0;
    background: var(--color-bg-alt);
}

.testimonials__grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
}

.testimonial-card {
    padding: var(--space-2xl);
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-xl);
    transition: box-shadow var(--transition-base);
}

.testimonial-card:hover {
    box-shadow: var(--shadow-lg);
}

.testimonial-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: var(--space-md);
}

.testimonial-card__name {
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--color-text);
}

.testimonial-card__stars {
    color: #fbbf24;
    font-size: 1rem;
    letter-spacing: 0.1em;
}

.testimonial-card__text {
    font-size: 0.9375rem;
    line-height: 1.7;
    color: var(--color-text-light);
    font-style: italic;
}

@media (max-width: 768px) {
    .testimonials__grid {
        grid-template-columns: 1fr;
    }
}

html[data-theme='dark'] .testimonial-card {
    background: var(--color-bg-alt);
    border-color: var(--color-border);
}

/* --- Section: FAQ --- */
.faq {
    padding: var(--space-4xl) 0;
}

.faq__list {
    max-width: 720px;
    margin: var(--space-3xl) auto 0;
}

.faq__item {
    border-bottom: 1px solid var(--color-border);
}

.faq__question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-lg) 0;
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--color-text);
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    transition: color var(--transition-fast);
}

.faq__question:hover {
    color: var(--color-primary);
}

.faq__icon {
    flex-shrink: 0;
    width: 24px;
    height: 24px;
    margin-left: var(--space-md);
    transition: transform var(--transition-base);
}

.faq__item.active .faq__icon {
    transform: rotate(45deg);
}

.faq__answer {
    max-height: 0;
    overflow: hidden;
    transition:
        max-height var(--transition-slow),
        padding var(--transition-slow);
}

.faq__item.active .faq__answer {
    max-height: 300px;
    padding-bottom: var(--space-lg);
}

.faq__answer p {
    font-size: 0.9375rem;
    color: var(--color-text-light);
    line-height: 1.7;
}

/* --- Section: CTA --- */
.cta-section {
    padding: var(--space-4xl) 0;
    text-align: center;
}

.cta-section__box {
    background: linear-gradient(
        135deg,
        var(--color-app-blue) 0%,
        var(--color-app-blue-light) 100%
    );
    border-radius: var(--radius-xl);
    padding: var(--space-4xl) var(--space-2xl);
    color: var(--color-white);
}

.cta-section__title {
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.cta-section__text {
    font-size: 1.125rem;
    opacity: 0.85;
    margin-bottom: var(--space-2xl);
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
}

.cta-section__stores {
    display: flex;
    justify-content: center;
    gap: var(--space-md);
    flex-wrap: wrap;
}

/* --- Footer --- */
.footer {
    padding: var(--space-3xl) 0 var(--space-xl);
    background: var(--color-bg-dark);
    color: var(--color-text-lighter);
}

.footer__inner {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
}

.footer__brand {
    display: flex;
    flex-direction: column;
    gap: var(--space-md);
}

.footer__brand img {
    height: auto;
    width: 160px;
    object-fit: contain;
}

.footer__brand p {
    font-size: 0.875rem;
    line-height: 1.6;
    max-width: 300px;
}

.footer__column h4 {
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--color-white);
    margin-bottom: var(--space-md);
}

.footer__column ul {
    list-style: none;
}

.footer__column li {
    margin-bottom: var(--space-sm);
}

.footer__column a {
    font-size: 0.875rem;
    color: var(--color-text-lighter);
    transition: color var(--transition-fast);
}

.footer__column a:hover {
    color: var(--color-white);
}

.footer__bottom {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: var(--space-2xl);
    padding-top: var(--space-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    font-size: 0.8125rem;
}

.footer__social {
    display: flex;
    gap: var(--space-md);
}

.footer__social a {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px;
    height: 36px;
    color: var(--color-text-lighter);
    border-radius: var(--radius-full);
    transition:
        color var(--transition-fast),
        background var(--transition-fast);
}

.footer__social a:hover {
    color: var(--color-white);
    background: rgba(255, 255, 255, 0.08);
}

@media (max-width: 768px) {
    .footer__inner {
        grid-template-columns: 1fr 1fr;
    }

    .footer__brand {
        grid-column: 1 / -1;
    }

    .footer__bottom {
        flex-direction: column;
        gap: var(--space-md);
        text-align: center;
    }
}

/* --- Language suggestion popup --- */
.lang-overlay {
    position: fixed;
    inset: 0;
    z-index: 300;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.lang-overlay.visible {
    opacity: 1;
}

.lang-popup {
    background: var(--color-white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-xl);
    padding: var(--space-2xl);
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.lang-overlay.visible .lang-popup {
    transform: scale(1);
}

.lang-popup__title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--color-text);
    margin-bottom: var(--space-md);
}

.lang-popup__cta {
    display: inline-block;
    padding: var(--space-sm) var(--space-xl);
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    transition: background var(--transition-fast);
}

.lang-popup__cta:hover {
    background: var(--color-primary-dark);
    color: #fff;
}

.lang-popup__dismiss {
    display: block;
    margin: 15px auto;
    background: none;
    border: none;
    color: var(--color-text-light);
    font-size: 0.8125rem;
    cursor: pointer;
    font-family: var(--font-body);
}

.lang-popup__dismiss:hover {
    color: var(--color-text);
}

/* --- Animations (scroll reveal) --- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.6s ease,
        transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* Stagger children */
.reveal-stagger > * {
    opacity: 0;
    transform: translateY(20px);
    transition:
        opacity 0.5s ease,
        transform 0.5s ease;
}

.reveal-stagger.visible > *:nth-child(1) {
    transition-delay: 0ms;
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(2) {
    transition-delay: 100ms;
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(3) {
    transition-delay: 200ms;
    opacity: 1;
    transform: translateY(0);
}
.reveal-stagger.visible > *:nth-child(4) {
    transition-delay: 300ms;
    opacity: 1;
    transform: translateY(0);
}

/* --- Mobile sticky CTA bar --- */
.mobile-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 99;
    background: var(--color-white);
    border-top: 1px solid var(--color-border);
    padding: var(--space-sm) var(--space-lg);
    box-shadow: 0 -2px 10px rgba(0, 0, 0, 0.05);
}

.mobile-cta__inner {
    display: flex;
    gap: var(--space-sm);
    justify-content: center;
}

.mobile-cta .store-badge img {
    height: 42px;
}

.mobile-cta .store-badge img[alt*='Google Play'] {
    height: 56px;
    margin: -7px 0;
}

@media (max-width: 768px) {
    .mobile-cta {
        display: block;
    }

    .is-homepage .mobile-cta {
        display: none;
    }

    /* Add bottom padding to body so footer isn't hidden behind sticky bar */
    body {
        padding-bottom: 59px;
    }

    body.is-homepage {
        padding-bottom: 0;
    }
}
