/* =====================================================
   ISLAMIC PRAYER APP - LANDING PAGE STYLES
   A premium, scroll-animated landing page
   ===================================================== */

/* ===================
   CSS CUSTOM PROPERTIES / DESIGN TOKENS
   =================== */
:root {
    /* Raw Color Tokens - Light */
    --color-cream: #FDF8F4;
    --color-cream-dark: #F5EDE5;
    --color-primary-light: #a7885e;
    --color-primary-dark: #D0A98A;
    /* Muted Gold for Dark Mode */
    --color-brown: #C4A57B;
    --color-brown-light: #D4C5A1;
    --color-charcoal: #2D3436;
    --color-charcoal-light: #636E72;
    --color-amber: #E67E22;
    --color-green: #27AE60;
    --color-white: #FFFFFF;
    --color-black: #0B0B15;

    /* Raw Color Tokens - Dark (from App) */
    --color-dark-bg: #12100E;
    --color-dark-card: #1E1B18;
    --color-dark-text: #F2EDE9;
    --color-dark-text-muted: rgba(242, 237, 233, 0.7);
    --color-dark-accent-secondary: #2A241F;

    /* Semantic Variables (Default: Light) */
    --bg-page: var(--color-cream);
    --bg-card: var(--color-white);
    --bg-nav: rgba(253, 248, 244, 0.9);
    --bg-nav-scrolled: rgba(253, 248, 244, 0.98);
    --bg-footer: #F5EDE5;

    --text-main: var(--color-charcoal);
    --text-muted: var(--color-charcoal-light);
    --text-inverse: var(--color-white);

    --color-primary: var(--color-primary-light);
    --color-accent: var(--color-brown);

    --border-color: rgba(167, 136, 94, 0.2);
    --border-color-focus: var(--color-primary);

    /* Button Colors */
    --btn-primary-bg: var(--color-charcoal);
    --btn-primary-text: var(--color-white);
    --btn-secondary-border: var(--color-charcoal);
    --btn-secondary-text: var(--color-charcoal);

    --bg-inverse-section: var(--color-charcoal);

    /* Gradients */
    --gradient-hero: linear-gradient(180deg, var(--bg-page) 0%, var(--bg-page) 100%);
    /* Simplified for theme switch */
    --gradient-primary: linear-gradient(135deg, var(--color-brown) 0%, var(--color-primary) 100%);
    --gradient-card: linear-gradient(145deg, rgba(255, 255, 255, 0.9) 0%, rgba(255, 255, 255, 0.6) 100%);
    --gradient-showcase: linear-gradient(180deg, var(--color-cream) 0%, #F5EDE5 50%, var(--color-cream) 100%);
    --gradient-text: linear-gradient(135deg, var(--color-primary) 0%, var(--color-brown) 100%);

    /* Typography */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-arabic: 'Amiri', 'Traditional Arabic', serif;
    --font-brand: 'Playfair Display', serif;

    /* Font Sizes
       Display sizes (2xl and up) are fluid: they scale with the viewport
       between a mobile floor and a desktop ceiling, so the page no longer needs
       a stack of font-size overrides in each breakpoint. Body sizes stay fixed
       — fluid body text hurts readability and breaks user zoom expectations. */
    --text-xs: 0.75rem;
    --text-sm: 0.875rem;
    --text-base: 1rem;
    --text-lg: 1.125rem;
    --text-xl: clamp(1.125rem, 1.05rem + 0.35vw, 1.3rem);
    --text-2xl: clamp(1.35rem, 1.2rem + 0.7vw, 1.6rem);
    --text-3xl: clamp(1.6rem, 1.35rem + 1.1vw, 2rem);
    --text-4xl: clamp(1.95rem, 1.5rem + 2vw, 2.75rem);
    --text-5xl: clamp(2.3rem, 1.6rem + 3.1vw, 3.5rem);
    --text-6xl: clamp(2.75rem, 1.7rem + 4.6vw, 4.5rem);
    --text-7xl: clamp(3.1rem, 1.8rem + 5.8vw, 5.5rem);

    /* Spacing */
    --space-1: 0.25rem;
    --space-2: 0.5rem;
    --space-3: 0.75rem;
    --space-4: 1rem;
    --space-5: 1.25rem;
    --space-6: 1.5rem;
    --space-8: 2rem;
    --space-10: 2.5rem;
    --space-12: 3rem;
    --space-16: 4rem;
    --space-20: 5rem;
    --space-24: 6rem;

    /* Border Radius */
    --radius-sm: 0.375rem;
    --radius-md: 0.5rem;
    --radius-lg: 1rem;
    --radius-xl: 1.5rem;
    --radius-2xl: 2rem;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    --shadow-2xl: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    --shadow-glow: 0 0 40px rgba(196, 165, 123, 0.3);
    --shadow-card: 0 10px 30px -5px rgba(196, 165, 123, 0.05);
    --shadow-card-hover: 0 20px 40px -5px rgba(196, 165, 123, 0.15);

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-base: 300ms ease;
    --transition-slow: 500ms ease;

    /* Z-index */
    --z-nav: 1000;
    --z-modal: 1100;
}

[data-theme="dark"] {
    --bg-page: var(--color-dark-bg);
    --bg-card: var(--color-dark-card);
    --bg-nav: rgba(18, 16, 14, 0.9);
    --bg-nav-scrolled: rgba(18, 16, 14, 0.98);
    --bg-footer: #1A1816;

    --text-main: var(--color-dark-text);
    --text-muted: var(--color-dark-text-muted);
    --text-inverse: var(--color-dark-text);

    --color-primary: var(--color-primary-dark);
    --color-accent: var(--color-primary-dark);

    --border-color: rgba(208, 169, 138, 0.15);

    --gradient-primary: linear-gradient(135deg, var(--color-primary-dark) 0%, #B08968 100%);
    --gradient-card: linear-gradient(145deg, rgba(30, 27, 24, 0.9) 0%, rgba(30, 27, 24, 0.6) 100%);
    --gradient-showcase: linear-gradient(180deg, var(--color-dark-bg) 0%, var(--color-dark-card) 50%, var(--color-dark-bg) 100%);
    --gradient-text: linear-gradient(135deg, #F2EDE9 0%, #D0A98A 100%);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.3);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.4), 0 2px 4px -1px rgba(0, 0, 0, 0.2);
    --shadow-card: 0 10px 30px -5px rgba(0, 0, 0, 0.3);
    --shadow-card-hover: 0 20px 40px -5px rgba(0, 0, 0, 0.4);

    --btn-primary-bg: var(--color-primary);
    --btn-primary-text: #12100E;
    --btn-secondary-border: var(--color-dark-text);
    --btn-secondary-border: var(--color-dark-text);
    --btn-secondary-text: var(--color-dark-text);

    --bg-inverse-section: var(--color-dark-card);
}

/* ===================
   RESET & BASE STYLES
   =================== */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    /* Fluid root size: every rem-based token (type + spacing) scales with the
       viewport, so the layout keeps the same proportions from 1024px laptops
       up to 1440px+ desktops instead of only ever being tuned for one width. */
    font-size: 16px;
    font-size: clamp(14px, 8px + 0.55vw, 16px);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* Short viewports (720p laptops, browsers with lots of chrome) get an extra
   step down, since vertical room — not width — is what runs out there.
   Width-guarded: without it this also fires on every phone, where the issue is
   horizontal room, and drops --text-xs to under 10px. */
@media (max-height: 820px) and (min-width: 769px) {
    html {
        font-size: clamp(13px, 7px + 0.5vw, 15px);
    }
}

body {
    font-family: var(--font-primary);
    background-color: var(--bg-page);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

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

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

button {
    font-family: inherit;
    cursor: pointer;
    border: none;
    background: none;
}

ul,
ol {
    list-style: none;
}

/* ===================
   TYPOGRAPHY
   =================== */
h1,
h2,
h3,
h4,
h5,
h6 {
    font-weight: 700;
    line-height: 1.2;
    color: var(--text-main);
}

/* Display tier: h1/h2 carry the brand serif. Inter stays on h3-h6, eyebrows,
   UI and body, so the serif reads as a deliberate voice rather than as the
   page's default face. Serifs need tighter tracking and leading at size. */
h1,
h2 {
    font-family: var(--font-brand);
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.08;
}

h1 {
    font-size: var(--text-5xl);
}

h2 {
    font-size: var(--text-4xl);
}

h3 {
    font-size: var(--text-3xl);
}

h4 {
    font-size: var(--text-2xl);
}

h5 {
    font-size: var(--text-xl);
}

h6 {
    font-size: var(--text-lg);
}

p {
    color: var(--text-muted);
    font-size: var(--text-lg);
}

.text-gradient {
    /* Use solid color first for fallback */
    color: var(--color-brown);
    background: linear-gradient(135deg, var(--color-brown) 0%, #b6a191 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===================
   LAYOUT UTILITIES
   =================== */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

/* Two rhythm tiers instead of one uniform --space-24 everywhere. Sections whose
   content already carries its own height (a phone mockup, a full-bleed band)
   use .section-flow so the page doesn't accumulate dead vertical space. */
.section {
    padding: clamp(4rem, 2.5rem + 5vw, 7rem) 0;
}

.section-flow {
    padding: clamp(2.5rem, 1.5rem + 3.5vw, 4.5rem) 0;
}

.section-tight-top {
    padding-top: var(--space-8);
}

.section-header {
    text-align: center;
    margin-bottom: clamp(2.5rem, 1.5rem + 3vw, 4rem);
}

/* Standard label above a section heading. Inter, not the display serif — the
   contrast between small caps sans and large serif is what gives each section
   a defined entry point. */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    font-family: var(--font-primary);
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
}

.eyebrow::before {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.section-header .eyebrow::after {
    content: "";
    width: 22px;
    height: 1px;
    background: currentColor;
    opacity: 0.6;
}

.section-header h2 {
    margin-bottom: var(--space-4);
}

.section-header p {
    max-width: 600px;
    margin: 0 auto;
}

/* ===================
   GLOBAL MOBILE TYPOGRAPHY
   =================== */
@media (max-width: 768px) {
    h2 {
        font-size: var(--text-3xl);
    }

    h3 {
        font-size: var(--text-2xl);
    }

    p {
        font-size: var(--text-base);
    }

    .section {
        padding: var(--space-16) 0;
    }

    .section-header {
        margin-bottom: var(--space-10);
    }

    .showcase-content h2 {
        font-size: var(--text-2xl);
    }

    .showcase-content p {
        font-size: var(--text-base);
    }

    .faq-question {
        font-size: var(--text-base);
        padding: var(--space-4);
    }

    .faq-answer-content {
        padding: 0 var(--space-4) var(--space-4);
        font-size: var(--text-sm);
    }
}

/* ===================
   ANIMATIONS
   =================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

@keyframes float {

    0%,
    100% {
        transform: translateY(0);
    }

    50% {
        transform: translateY(-10px);
    }
}

@keyframes pulse {

    0%,
    100% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.05);
    }
}

@keyframes shimmer {
    0% {
        background-position: -200% 0;
    }

    100% {
        background-position: 200% 0;
    }
}

/* Kept short and low-travel on purpose: the observer fires slightly before an
   element reaches the viewport, so a long fade would leave whole screens
   reading as blank while the visitor scrolls at normal speed. */
.fade-in-up {
    opacity: 0;
    transform: translateY(10px);
    transition: opacity 0.32s ease-out, transform 0.32s ease-out;
}

.fade-in-up.visible {
    opacity: 1;
    transform: translateY(0);
}

.stagger-1 {
    transition-delay: 0.06s;
}

.stagger-2 {
    transition-delay: 0.12s;
}

.stagger-3 {
    transition-delay: 0.18s;
}

.stagger-4 {
    transition-delay: 0.24s;
}

/* ===================
   NAVIGATION
   =================== */
/* ===================
   NAVIGATION (Floating Pill Design)
   =================== */
.nav {
    position: fixed;
    top: 50px;
    left: 50%;
    transform: translateX(-50%);
    width: 90%;
    max-width: 950px;
    z-index: var(--z-nav);
    padding: 16px 32px;
    background: var(--bg-nav);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 100px;
    border: 1px solid var(--border-color);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    transition: all var(--transition-base);
}

/* Once content is passing beneath it the pill has to read as opaque chrome —
   at 0.9 alpha headings were still legible straight through it. */
.nav.scrolled {
    top: 10px;
    padding: 10px 32px;
    background: var(--bg-nav-scrolled);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.22);
}

.nav-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    text-decoration: none;
}

.brand-text {
    font-family: var(--font-brand);
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-main);
    letter-spacing: -0.02em;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: var(--space-6);
}

.nav-links {
    display: flex;
    gap: var(--space-6);
}

.nav-link {
    font-size: var(--text-sm);
    font-weight: 500;
    color: var(--text-muted);
    transition: color var(--transition-fast);
}

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

.nav-cta {
    padding: 10px 20px;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    font-weight: 600;
    font-size: var(--text-xs);
    border-radius: var(--radius-full);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
}

.nav-cta:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    padding: var(--space-2);
}

.nav-toggle span {
    width: 20px;
    height: 2px;
    background: var(--text-main);
    transition: all var(--transition-fast);
}

/* Mobile Nav */
@media (max-width: 768px) {
    .nav {
        top: 16px;
        width: calc(100% - 32px);
        max-width: none;
        padding: 12px 20px;
    }

    .nav-toggle {
        display: flex;
    }

    .nav-menu {
        position: fixed;
        top: 80px;
        left: 50%;
        transform: translateX(-50%) scale(0.95);
        width: 90%;
        opacity: 0;
        pointer-events: none;
        background: var(--bg-nav);
        backdrop-filter: blur(20px);
        -webkit-backdrop-filter: blur(20px);
        flex-direction: column;
        align-items: center;
        padding: var(--space-8);
        gap: var(--space-6);
        transition: all var(--transition-base);
        border-radius: var(--radius-2xl);
        box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.2);
        border: none;
    }

    [data-theme="dark"] .nav-menu {
        box-shadow: 0 30px 60px -15px rgba(0, 0, 0, 0.6);
        background: rgba(18, 16, 14, 0.85);
    }

    .nav-menu.active {
        opacity: 1;
        pointer-events: all;
        transform: translateX(-50%) scale(1);
    }

    .nav-links {
        flex-direction: column;
        gap: var(--space-6);
        text-align: center;
    }

    .nav-link {
        font-size: var(--text-lg);
    }

    .nav-cta {
        padding: 12px 30px;
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }
}

/* ===================
   HERO SECTION
   =================== */
/* The nav is a floating pill at top:50px, ~72px tall, so its bottom edge sits
   at ~122px. Hero content must clear that on every viewport height. */
.hero {
    --nav-clearance: clamp(130px, 110px + 3vh, 160px);
    min-height: 100vh;
    min-height: 100svh;
    padding-top: var(--nav-clearance);
    padding-bottom: var(--space-8);
    background: var(--gradient-hero);
    position: relative;
    overflow: hidden;
}

.hero-container {
    position: relative;
    z-index: 1;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
    min-height: calc(100vh - var(--nav-clearance));
    min-height: calc(100svh - var(--nav-clearance));
}

/* Page Hero (Compact style for sub-pages) — see TIMELINE STYLES section, which
   is where .page-hero is actually defined. */

.hero-content {
    padding: var(--space-8) 0;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-4);
    background: rgba(196, 165, 123, 0.15);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 500;
    color: #A07F4A;
    margin-bottom: var(--space-6);
}

.hero-badge svg {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

.hero-title {
    font-size: var(--text-6xl);
    margin-bottom: var(--space-6);
    line-height: 1.1;
}

.hero-title span {
    display: block;
}

.hero-subtitle {
    font-size: var(--text-xl);
    color: var(--text-muted);
    margin-bottom: var(--space-8);
    max-width: 500px;
}

.hero-actions {
    display: flex;
    gap: var(--space-4);
    margin-bottom: var(--space-4);
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-2);
    padding: var(--space-4) var(--space-8);
    font-weight: 600;
    font-size: var(--text-base);
    border-radius: var(--radius-full);
    transition: all var(--transition-fast);
}

.btn-icon-left {
    gap: var(--space-3);
}

.btn-primary {
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
}

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

.btn-primary svg {
    width: 20px;
    height: 20px;
}

.btn-secondary {
    background: transparent;
    color: var(--text-main);
    border: 2px solid var(--text-main);
}

.btn-secondary:hover {
    background: var(--btn-secondary-border);
    color: var(--bg-page);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.hero-rating-text {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

.hero-visual {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-image-container {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-1);
}

.phone-mockup {
    position: relative;
    width: 350px;
    max-width: 100%;
    margin: 0 auto;
    animation: float 6s ease-in-out infinite;
    display: grid;
    grid-template-areas: "screen";
    z-index: 1;
}

.hero-app-screen {
    grid-area: screen;
    width: 100%;
    height: auto;
    object-fit: contain;
    opacity: 0;
    transition: opacity var(--transition-slow);
    pointer-events: none;
}

.hero-app-screen.active {
    opacity: 1;
    pointer-events: auto;
    z-index: 2;
}

.hero-image-switcher {
    display: flex;
    gap: var(--space-4);
    background: var(--bg-card);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.switcher-dot {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all var(--transition-base);
    padding: 3px;
    border: 2px solid transparent;
}

.switcher-dot .dot-inner {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.1);
}

.switcher-dot.dark .dot-inner {
    background: #2D3436;
}

.switcher-dot.light .dot-inner {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.switcher-dot.active {
    border-color: var(--color-primary);
    transform: scale(1.15);
    box-shadow: 0 0 10px rgba(167, 136, 94, 0.3);
}

.switcher-dot:hover:not(.active) {
    transform: scale(1.1);
    border-color: rgba(167, 136, 94, 0.3);
}

/* ===================
   GEOMETRIC MOTIF
   =================== */
/* Two overlapping squares, one rotated 45deg — the eight-point khatam star that
   runs through Islamic tilework. Defined once as a tiling background and reused
   behind the hero and the CTA band. Kept under 6% alpha and never placed behind
   body copy: it should register as texture, not as decoration competing with
   the text. */
.motif-layer {
    position: absolute;
    inset: 0;
    pointer-events: none;
    z-index: 0;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%23C4A57B' stroke-width='1'%3E%3Crect x='20' y='20' width='40' height='40'/%3E%3Crect x='20' y='20' width='40' height='40' transform='rotate(45 40 40)'/%3E%3C/g%3E%3C/svg%3E");
    background-size: 80px 80px;
    opacity: 0.05;
    /* Fade the texture out before it reaches the text column. */
    -webkit-mask-image: radial-gradient(ellipse at 72% 45%, #000 0%, transparent 68%);
    mask-image: radial-gradient(ellipse at 72% 45%, #000 0%, transparent 68%);
}

[data-theme="dark"] .motif-layer {
    opacity: 0.055;
}

/* On narrow screens the text column occupies the full width, so the motif would
   sit directly behind body copy — the one place it must never be. */
@media (max-width: 768px) {
    .hero .motif-layer {
        display: none;
    }

    .cta .motif-layer {
        opacity: 0.08;
    }
}

/* Charcoal strokes here — the gold motif is invisible on the gold band. */
.cta .motif-layer {
    opacity: 0.09;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='80' height='80' viewBox='0 0 80 80'%3E%3Cg fill='none' stroke='%232D3436' stroke-width='1'%3E%3Crect x='20' y='20' width='40' height='40'/%3E%3Crect x='20' y='20' width='40' height='40' transform='rotate(45 40 40)'/%3E%3C/g%3E%3C/svg%3E");
    -webkit-mask-image: radial-gradient(ellipse at 50% 50%, transparent 20%, #000 78%);
    mask-image: radial-gradient(ellipse at 50% 50%, transparent 20%, #000 78%);
}

.hero-glow {
    position: absolute;
    width: 500px;
    height: 500px;
    background: radial-gradient(circle, rgba(196, 165, 123, 0.3) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 0;
    animation: pulse 4s ease-in-out infinite;
}

/* Hero Responsive */
@media (max-width: 1024px) {
    .hero-title {
        font-size: var(--text-5xl);
    }

    .phone-mockup {
        width: 480px;
    }
}

@media (max-width: 768px) {
    /* Centering only for Home Page Hero. The nav pill is fixed, so the hero
       still needs enough top padding to clear it — at 0 the first heading line
       rendered underneath the pill. */
    .hero:not(.page-hero) {
        padding-top: 96px;
    }

    .hero:not(.page-hero) .hero-container {
        display: flex;
        flex-direction: column;
        text-align: center;
        gap: 0;
    }

    /* Not a full viewport: the phone mockup sits below this block, and a 100vh
       text column would push it entirely off the first screen. */
    .hero:not(.page-hero) .hero-content {
        order: 1;
        display: flex;
        flex-direction: column;
        justify-content: center;
        align-items: center;
        padding: var(--space-8) var(--space-4);
    }

    /* Standard look for sub-pages */
    .page-hero .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
        gap: var(--space-8);
    }

    .page-hero .hero-content {
        padding-top: var(--space-6);
    }

    .hero-visual {
        order: 2;
    }

    .hero-title {
        font-size: var(--text-4xl);
        letter-spacing: 0.02em;
        line-height: 1.25;
    }

    .hero-subtitle {
        margin: 0 auto var(--space-8);
        font-size: var(--text-base);
        padding: 0 var(--space-4);
    }

    .hero-actions {
        justify-content: center;
        flex-wrap: wrap;
    }

    .phone-mockup {
        width: 240px;
    }

    .hero-glow {
        width: 300px;
        height: 300px;
    }
}

/* ===================
   FEATURES SECTION
   =================== */
.features {
    background: var(--bg-page);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-8);
}

.feature-card {
    background: var(--bg-card);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-card);
    transition: all var(--transition-base);
    border: 1px solid rgba(196, 165, 123, 0.1);
}

.feature-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-card-hover);
    border-color: rgba(196, 165, 123, 0.3);
}

.feature-icon {
    width: 60px;
    height: 60px;
    background: rgba(196, 165, 123, 0.1);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary);
    margin-bottom: var(--space-6);
    transition: all var(--transition-base);
}

.feature-icon svg {
    width: 28px;
    height: 28px;
    stroke-width: 1.5;
}

.feature-card:hover .feature-icon {
    background: var(--color-primary);
    color: var(--btn-primary-text);
    transform: scale(1.1) rotate(5deg);
}

.feature-card h3 {
    font-size: var(--text-xl);
    margin-bottom: var(--space-3);
}

.feature-card p {
    font-size: var(--text-base);
    color: var(--text-muted);
}

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

@media (max-width: 640px) {
    .features-grid {
        display: flex;
        overflow-x: auto;
        scroll-snap-type: x mandatory;
        gap: var(--space-4);
        padding: var(--space-4) 0 var(--space-8);
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none; /* Hide scrollbar for Firefox */
    }

    .features-grid::-webkit-scrollbar {
        display: none; /* Hide scrollbar for Chrome, Safari and Opera */
    }

    .feature-card {
        flex: 0 0 85vw;
        scroll-snap-align: center;
        margin-bottom: 0;
    }
}

/* ===================
   APP SHOWCASE SECTION
   =================== */
.showcase {
    background: var(--gradient-showcase);
    overflow: hidden;
    padding: var(--space-16) 0;
}

.showcase-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: center;
}

.showcase-container.reverse {
    direction: rtl;
}

.showcase-container.reverse > * {
    direction: ltr;
}

.showcase-content h2 {
    font-size: var(--text-4xl);
    margin-bottom: var(--space-6);
    line-height: 1.2;
}

.showcase-content p {
    font-size: var(--text-lg);
    color: var(--text-muted);
    margin-bottom: var(--space-8);
    max-width: 540px;
}

.showcase-features {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.showcase-feature {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    font-weight: 500;
}

.showcase-feature-icon {
    width: 28px;
    height: 28px;
    background: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-charcoal);
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(196, 165, 123, 0.35);
}

.showcase-feature-icon svg {
    width: 14px;
    height: 14px;
}

/* Showcase Badge */
.showcase-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: rgba(167, 136, 94, 0.12);
    color: var(--color-accent);
    border: 1px solid rgba(167, 136, 94, 0.25);
    border-radius: var(--radius-full);
    padding: 4px 12px;
    font-size: var(--text-xs);
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    margin-bottom: var(--space-4);
}

.showcase-badge::before {
    content: '';
    width: 6px;
    height: 6px;
    background: var(--color-accent);
    border-radius: 50%;
    animation: badge-pulse 2s ease-in-out infinite;
    flex-shrink: 0;
}

@keyframes badge-pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.4; transform: scale(0.6); }
}

.showcase-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    position: relative;
}

/* Simplified Phone Container (Frames are baked into images) */
.showcase-phone {
    width: 320px;
    position: relative;
    z-index: 2;
    transition: transform var(--transition-slow);
    aspect-ratio: 1 / 2.05;
}

/* In the hero the phone is inside a viewport-height box, so it must be sized
   by the height available (nav clearance + room for the switcher pill below),
   not by a fixed width. Without this it is 656px tall on every screen and
   overflows into the nav on ~720p displays. */
@media (min-width: 769px) {
    .hero .showcase-phone {
        width: min(320px, calc((100vh - var(--nav-clearance) - 90px) / 2.05));
        width: min(320px, calc((100svh - var(--nav-clearance) - 90px) / 2.05));
    }
}



.showcase-phone img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3));
}

.showcase-phone img.active {
    opacity: 1;
    z-index: 1;
}

.showcase-glow {
    position: absolute;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(167, 136, 94, 0.2) 0%, transparent 70%);
    border-radius: 50%;
    z-index: 1;
    pointer-events: none;
}

/* Showcase Switcher */
.showcase-switcher {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-3);
    background: var(--bg-card);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

@media (max-width: 768px) {
    .feature-card {
        border: none;
        box-shadow: 0 15px 30px -10px rgba(196, 165, 123, 0.15);
        border-radius: var(--radius-2xl);
    }

    [data-theme="dark"] .feature-card {
        box-shadow: 0 15px 30px -10px rgba(0, 0, 0, 0.4);
    }

    .showcase {
        padding: var(--space-12) 0;
    }

    .showcase-container,
    .showcase-container.reverse {
        grid-template-columns: 1fr;
        direction: ltr;
        text-align: center;
        gap: var(--space-12);
    }

    .showcase-content p {
        margin-left: auto;
        margin-right: auto;
    }

    .showcase-features {
        align-items: center;
    }

    .showcase-phone {
        width: 240px;
        margin: 0 auto;
    }

    .showcase-glow {
        width: 300px;
        height: 300px;
    }
}

/* ===================
   IMPACT / STATS SECTION
   =================== */
.impact {
    background: var(--bg-inverse-section);
    color: white;
    text-align: center;
}

.impact h2 {
    color: white;
    margin-bottom: var(--space-4);
}

.impact .section-header p {
    color: rgba(255, 255, 255, 0.7);
}

/* One commitment strip, divided by hairlines, rather than three floating cards
   — two of the three say the same word, so boxing them separately drew
   attention to the repetition instead of reading as a single statement. */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0;
    margin-top: clamp(2.5rem, 1.5rem + 3vw, 4rem);
    border-top: 1px solid rgba(255, 255, 255, 0.12);
    border-bottom: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item {
    padding: clamp(2rem, 1.5rem + 1.5vw, 3rem) var(--space-6);
    border-left: 1px solid rgba(255, 255, 255, 0.12);
}

.stat-item:first-child {
    border-left: none;
}

.stat-number {
    font-family: var(--font-brand);
    font-size: var(--text-5xl);
    font-weight: 700;
    letter-spacing: -0.02em;
    line-height: 1;
    background: linear-gradient(135deg, var(--color-primary) 0%, #D4C5A1 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    margin-bottom: var(--space-2);
}

.stat-label {
    font-size: var(--text-sm);
    letter-spacing: 0.04em;
    color: rgba(255, 255, 255, 0.72);
    max-width: 22ch;
    margin: var(--space-3) auto 0;
}

@media (max-width: 768px) {
    /* One per row on mobile: at two columns the third item stranded itself and
       the hairline grid broke down. */
    .stats-grid {
        grid-template-columns: 1fr;
    }

    .stat-item {
        padding: var(--space-6) var(--space-4);
        border-left: none;
        border-top: 1px solid rgba(255, 255, 255, 0.12);
    }

    .stat-item:first-child {
        border-top: none;
    }

    .stat-number {
        font-size: var(--text-2xl);
    }

    .stat-label {
        font-size: var(--text-xs);
    }
}

/* ===================
   TESTIMONIALS SECTION
   =================== */
.testimonials {
    background: var(--bg-page);
    overflow: hidden;
}

.testimonials-track {
    display: flex;
    gap: var(--space-6);
    animation: scroll 30s linear infinite;
    width: max-content;
}

.testimonials-track:hover {
    animation-play-state: paused;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(-50%);
    }
}

.testimonial-card {
    width: 350px;
    flex-shrink: 0;
    background: var(--bg-card);
    padding: var(--space-8);
    border-radius: var(--radius-2xl);
    box-shadow: var(--shadow-md);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.testimonial-stars {
    display: flex;
    gap: 2px;
    color: var(--color-amber);
    margin-bottom: var(--space-4);
    font-size: var(--text-sm);
}

.testimonial-text {
    font-size: var(--text-base);
    color: var(--text-main);
    margin-bottom: var(--space-6);
    line-height: 1.7;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.testimonial-avatar {
    width: 48px;
    height: 48px;
    background: var(--gradient-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-weight: 600;
    font-size: var(--text-lg);
}

.testimonial-info h3 {
    font-size: var(--text-base);
    font-weight: 600;
    margin-bottom: 2px;
}

.testimonial-info p {
    font-size: var(--text-sm);
    color: var(--text-muted);
}

/* ===================
   FAQ SECTION
   =================== */
.faq {
    background: var(--bg-page);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    margin-bottom: var(--space-4);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    border: 1px solid rgba(0, 0, 0, 0.05);
}

.faq-question {
    width: 100%;
    padding: var(--space-6);
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: var(--text-lg);
    font-weight: 600;
    color: var(--text-main);
    text-align: left;
    transition: background var(--transition-fast);
}

.faq-question:hover {
    background: rgba(0, 0, 0, 0.02);
}

.faq-icon {
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    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-base);
}

/* Generous cap: the longest support.html answers exceed 500px once they wrap at
   phone widths, and anything over the cap is silently clipped. */
.faq-item.active .faq-answer {
    max-height: 1200px;
}

.faq-answer-content {
    padding: 0 var(--space-6) var(--space-6);
    color: var(--text-muted);
    line-height: 1.7;
}

/* ===================
   CTA SECTION
   =================== */
/* The CTA band sits on the light gold gradient in both themes, so its text is
   locked to charcoal rather than following --text-main. White on #C4A57B is
   ~1.9:1 and fails AA. */
.cta {
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-dark) 100%);
    color: var(--color-charcoal);
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Keep the copy above the motif layer. */
.cta .container {
    position: relative;
    z-index: 1;
}

.cta h2 {
    color: var(--color-charcoal);
    margin-bottom: var(--space-4);
}

.cta p {
    color: var(--color-charcoal);
    opacity: 0.85;
    max-width: 600px;
    margin: 0 auto var(--space-8);
}

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

/* .btn-white / .btn-outline-white are only used inside .cta, so they pair with
   the charcoal-on-gold band above rather than with the page theme. */
.btn-white {
    background: var(--color-charcoal);
    color: var(--color-cream);
}

.btn-white:hover {
    transform: scale(1.05);
    box-shadow: var(--shadow-xl);
}

.btn-outline-white {
    background: transparent;
    color: var(--color-charcoal);
    border: 2px solid var(--color-charcoal);
}

.btn-outline-white:hover {
    background: var(--color-charcoal);
    color: var(--color-cream);
}

/* ===================
   FOOTER
   =================== */
.footer {
    background: var(--bg-inverse-section);
    color: white;
    padding: var(--space-16) 0 var(--space-8);
}

@media (max-width: 768px) {
    .footer {
        padding: var(--space-10) 0 var(--space-6);
    }
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-12);
    margin-bottom: var(--space-12);
}

/* The footer is dark in BOTH themes, so the wordmark can't inherit --text-main
   (charcoal in light theme = invisible here). Pin it to the light token. */
.footer-brand .brand-text {
    color: var(--color-cream);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--space-4);
    max-width: 300px;
}

.footer-column h3 {
    color: white;
    font-size: var(--text-sm);
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: var(--space-6);
}

/* The footer "Join Waitlist" entry is a <button> (it opens the modal) but must
   read as a peer of the links beside it. */
.footer-link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    text-align: left;
    cursor: pointer;
    color: inherit;
}

.footer-links {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.footer-link {
    color: rgba(255, 255, 255, 0.7);
    font-size: var(--text-sm);
    transition: color var(--transition-fast);
}

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

.footer-social {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-6);
}

.social-icon {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: rgba(255, 255, 255, 0.7);
    transition: all var(--transition-fast);
}

.social-icon:hover {
    background: var(--color-primary);
    color: white;
}

.footer-bottom {
    padding-top: var(--space-8);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: var(--space-4);
}

.footer-copyright {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

.footer-legal {
    display: flex;
    gap: var(--space-6);
}

.footer-legal a {
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-sm);
}

.footer-legal a:hover {
    color: var(--color-primary);
}

.footer-lang {
    display: flex;
    gap: var(--space-1);
    align-items: center;
}

.lang-btn {
    background: none;
    border: 1px solid rgba(255, 255, 255, 0.15);
    color: rgba(255, 255, 255, 0.5);
    font-size: var(--text-xs);
    font-weight: 600;
    font-family: var(--font-primary);
    padding: 4px 8px;
    border-radius: var(--radius-sm);
    cursor: pointer;
    letter-spacing: 0.05em;
    transition: color 0.2s, border-color 0.2s, background 0.2s;
}

.lang-btn:hover {
    color: white;
    border-color: rgba(255, 255, 255, 0.4);
}

.lang-btn.active {
    color: var(--color-primary);
    border-color: var(--color-primary);
    background: rgba(196, 165, 123, 0.1);
}

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

@media (max-width: 640px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        text-align: left;
        gap: var(--space-8) var(--space-4);
    }

    .footer-brand {
        grid-column: 1 / -1;
        text-align: center;
        margin-bottom: var(--space-4);
    }

    .footer-brand .logo {
        height: 32px;
        width: auto;
    }

    .footer-brand p {
        margin: var(--space-2) auto 0;
        font-size: var(--text-sm);
        opacity: 0.8;
    }

    .footer-column h3 {
        margin-bottom: var(--space-3);
        font-size: var(--text-xs);
    }

    .footer-links {
        gap: var(--space-2);
    }

    .footer-link {
        font-size: 13px;
    }

    .footer-social {
        grid-column: 1 / -1;
        justify-content: center;
        margin-top: var(--space-4);
    }

    .footer-bottom {
        flex-direction: column;
        text-align: center;
        padding-top: var(--space-6);
        gap: var(--space-6);
    }

    .footer-legal {
        justify-content: center;
        width: 100%;
        gap: var(--space-4);
    }
}

/* ===================
   UTILITY CLASSES
   =================== */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

.mobile-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    z-index: calc(var(--z-nav) - 1);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-base);
}

.mobile-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ===================
   TIMELINE STYLES (Features Page)
   =================== */
/* Compact hero shared by every sub-page. The top padding only has to clear the
   floating nav pill; a flat 180px is a third of a phone screen of dead space. */
.page-hero {
    min-height: auto;
    padding-top: clamp(124px, 96px + 5vw, 180px);
    padding-bottom: var(--space-12);
}

.page-hero .hero-container {
    min-height: auto;
    display: block;
    text-align: center;
}

.timeline-section {
    position: relative;
    padding: var(--space-20) 0;
}

/* Vertical Line */
.timeline-section::before {
    content: '';
    position: absolute;
    top: 0;
    bottom: 0;
    left: 50%;
    width: 2px;
    background: linear-gradient(180deg,
            rgba(196, 165, 123, 0) 0%,
            rgba(196, 165, 123, 0.3) 15%,
            rgba(196, 165, 123, 0.3) 85%,
            rgba(196, 165, 123, 0) 100%);
    transform: translateX(-50%);
}

.timeline-item {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-16);
    align-items: center;
    margin-bottom: var(--space-24);
    position: relative;
}

.timeline-item:last-child {
    margin-bottom: 0;
}

/* Timeline Dot */
.timeline-item::after {
    content: '';
    position: absolute;
    left: 50%;
    top: 50%;
    width: 16px;
    height: 16px;
    background: var(--color-primary);
    border: 4px solid var(--color-cream);
    box-shadow: 0 0 0 1px rgba(196, 165, 123, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
}

.timeline-content {
    padding: var(--space-8);
}

.timeline-content h2 {
    margin-bottom: var(--space-4);
    color: var(--color-primary-dark);
}

.timeline-time {
    display: inline-block;
    padding: var(--space-2) var(--space-4);
    background: var(--bg-card);
    border: 1px solid rgba(196, 165, 123, 0.2);
    border-radius: var(--radius-full);
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-primary);
    margin-bottom: var(--space-4);
    box-shadow: var(--shadow-sm);
}

.timeline-visual {
    display: flex;
    justify-content: center;
}

.timeline-card {
    background: var(--bg-card);
    padding: var(--space-6);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-card);
    width: 100%;
    max-width: 400px;
    aspect-ratio: 4/3;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid rgba(196, 165, 123, 0.1);
}

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

.ui-icon {
    font-size: var(--text-5xl);
    margin-bottom: var(--space-2);
}

.ui-text {
    font-weight: 600;
    color: var(--text-muted);
}

/* ===================
   APP SCREEN MOCKUPS (Timeline Cards)
   =================== */
.app-screen {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
    min-height: 264px;
}

.app-screen-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: var(--space-3);
    border-bottom: 1px solid var(--border-color);
}

.app-screen-prayer-label {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary);
}

.app-screen-clock {
    font-size: var(--text-xs);
    color: var(--text-muted);
    font-weight: 500;
    font-variant-numeric: tabular-nums;
}

.app-screen-arabic {
    font-family: var(--font-arabic);
    font-size: var(--text-4xl);
    color: var(--color-primary);
    text-align: center;
    line-height: 1.1;
}

.app-countdown {
    text-align: center;
    padding: var(--space-3) var(--space-4);
    background: rgba(167, 136, 94, 0.07);
    border-radius: var(--radius-lg);
}

.app-countdown-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.app-countdown-time {
    font-size: var(--text-2xl);
    font-weight: 700;
    color: var(--text-main);
    margin-top: 2px;
    font-variant-numeric: tabular-nums;
}

.app-wisdom {
    padding: var(--space-3);
    background: rgba(167, 136, 94, 0.05);
    border-radius: var(--radius-lg);
    border-left: 2px solid var(--color-primary);
}

.app-wisdom-text {
    font-size: var(--text-xs);
    color: var(--text-muted);
    line-height: 1.6;
    font-style: italic;
}

.app-prayer-list {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.app-prayer-row {
    display: flex;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-2) var(--space-3);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
    font-weight: 500;
}

.app-prayer-row.is-done {
    color: var(--text-muted);
    background: rgba(167, 136, 94, 0.06);
}

.app-prayer-row.is-active {
    background: rgba(167, 136, 94, 0.14);
    color: var(--color-primary);
    font-weight: 600;
}

.app-prayer-row.is-next {
    color: var(--text-muted);
    opacity: 0.55;
}

.app-prayer-icon {
    width: 14px;
    text-align: center;
    font-size: 10px;
}

.app-dhikr {
    text-align: center;
    padding: var(--space-2) 0;
}

.app-dhikr-count {
    font-size: 3.2rem;
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.app-dhikr-name {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 2px;
    letter-spacing: 0.05em;
}

.app-dhikr-dots {
    display: flex;
    gap: 5px;
    justify-content: center;
    flex-wrap: wrap;
    margin-top: var(--space-3);
    padding: 0 var(--space-2);
}

.app-dhikr-dot {
    width: 9px;
    height: 9px;
    border-radius: 50%;
    background: rgba(167, 136, 94, 0.18);
}

.app-dhikr-dot.on {
    background: var(--color-primary);
}

.app-hijri {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    padding: var(--space-3) var(--space-4);
    background: rgba(167, 136, 94, 0.07);
    border-radius: var(--radius-lg);
}

.app-hijri-num {
    font-size: var(--text-4xl);
    font-weight: 700;
    color: var(--color-primary);
    line-height: 1;
}

.app-hijri-month {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--text-main);
}

.app-hijri-year {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: 2px;
}

/* width + gap, not space-between alone: the row shrinks to its content inside
   the mockup's column, which collapses the gap and runs the label straight into
   the status ("CompleteToday's fast"). */
.app-fast-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-3);
    width: 100%;
    padding: var(--space-2) var(--space-3);
    background: rgba(167, 136, 94, 0.06);
    border-radius: var(--radius-md);
    font-size: var(--text-xs);
}

.app-fast-label {
    color: var(--text-muted);
}

.app-fast-status {
    font-weight: 600;
    color: var(--color-primary);
}

.app-streak-label {
    font-size: var(--text-xs);
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin-bottom: var(--space-2);
}

.app-streak-days {
    display: flex;
    gap: 4px;
}

.app-streak-day {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.app-streak-bar {
    width: 100%;
    height: 28px;
    border-radius: var(--radius-sm);
    background: rgba(167, 136, 94, 0.12);
}

.app-streak-day.filled .app-streak-bar {
    background: var(--color-primary);
}

.app-streak-day.today .app-streak-bar {
    background: var(--color-primary);
    outline: 2px solid var(--color-primary);
    outline-offset: 2px;
}

.app-streak-day-label {
    font-size: 9px;
    color: var(--text-muted);
    font-weight: 500;
}

.app-streak-day.filled .app-streak-day-label,
.app-streak-day.today .app-streak-day-label {
    color: var(--color-primary);
}

.app-quran {
    padding: var(--space-3);
    background: rgba(167, 136, 94, 0.05);
    border-radius: var(--radius-lg);
    border-right: 2px solid var(--color-primary);
    text-align: right;
}

.app-quran-arabic {
    font-family: var(--font-arabic);
    font-size: var(--text-lg);
    color: var(--color-primary);
    line-height: 1.7;
}

.app-quran-ref {
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin-top: var(--space-1);
}

/* ===================
   HERO DAY ARC
   =================== */
.hero-day-arc {
    margin-top: var(--space-12);
    width: 100%;
    max-width: 1000px;
    margin-left: auto;
    margin-right: auto;
}

.hero-day-arc svg {
    display: block;
    width: 100%;
    height: auto;
    aspect-ratio: 2 / 1;
}

/* Timeline Arabic label */
.timeline-arabic {
    font-family: var(--font-arabic);
    font-size: 1.1em;
    margin-right: var(--space-2);
    vertical-align: middle;
}

.feature-list {
    margin-top: var(--space-6);
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: var(--space-3);
    margin-bottom: var(--space-3);
    color: var(--text-main);
    font-weight: 500;
}

.feature-list li svg {
    color: var(--color-primary);
}

/* Reverse Layout */
.timeline-item.reverse {
    direction: rtl;
}

.timeline-item.reverse .timeline-content {
    text-align: left;
    direction: ltr;
}

/* Text alignment for normal items */
.timeline-item:not(.reverse) .timeline-content {
    text-align: right;
}

.timeline-item:not(.reverse) .feature-list li {
    flex-direction: row-reverse;
}

/* Responsive Timeline */
@media (max-width: 768px) {
    .timeline-section::before {
        left: 20px;
    }

    .timeline-item {
        grid-template-columns: 1fr;
        gap: var(--space-8);
        padding-left: 50px;
    }

    .timeline-item::after {
        left: 20px;
        top: 20px;
        /* Align with top instead of center */
        transform: translate(-50%, 0);
    }

    .timeline-item.reverse {
        direction: ltr;
    }

    .timeline-content {
        padding: 0;
        text-align: left !important;
    }

    .timeline-item:not(.reverse) .feature-list li {
        flex-direction: row;
    }

    .timeline-visual {
        order: 2;
        /* Visual below content on mobile */
    }
}

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

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

.bg-light {
    background-color: var(--bg-footer);
}

/* ===================
   STORY / PULL-QUOTE
   =================== */
/* This is the most brand-carrying copy on the page and it was previously a
   plain centered text block. Set as a pull-quote: display serif lead, a rule
   marking the opening, generous measure. */
.story {
    background-color: var(--bg-footer);
}

.story-inner {
    max-width: 720px;
    margin: 0 auto;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-5);
}

.story-inner h2 {
    margin-bottom: var(--space-2);
}

/* Regular weight, not the 700 the headings use — a bold serif at quote length
   reads as shouting rather than as a considered statement. */
.story-lead {
    font-family: var(--font-brand);
    font-weight: 400;
    font-size: var(--text-2xl);
    line-height: 1.5;
    color: var(--text-main);
    position: relative;
    padding-top: var(--space-6);
}

.story-lead::before {
    content: "";
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 48px;
    height: 2px;
    background: var(--color-primary);
    opacity: 0.7;
}

.story-inner > p:not(.story-lead) {
    max-width: 58ch;
    color: var(--text-muted);
}

.story-inner .btn {
    margin-top: var(--space-4);
    display: inline-flex;
}

/* ===================
   THEME TOGGLE
   =================== */
.theme-toggle {
    background: transparent;
    border: none;
    color: var(--text-main);
    padding: var(--space-2);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-fast);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-right: 0;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: var(--space-3);
}

.theme-toggle:hover {
    background: rgba(0, 0, 0, 0.05);
    transform: rotate(15deg);
}

[data-theme="dark"] .theme-toggle:hover {
    background: rgba(255, 255, 255, 0.1);
}

.theme-toggle svg {
    width: 22px;
    height: 22px;
}

/* ===================
   PREMIUM SECTION
   =================== */

.premium-section {
    background: var(--color-charcoal);
    color: var(--color-dark-text);
}

.premium-inner {
    display: flex;
    flex-direction: column;
    gap: var(--space-10);
}

.premium-header {
    text-align: center;
    max-width: 640px;
    margin: 0 auto;
}

.premium-header h2 {
    color: var(--color-dark-text);
}

.premium-header p {
    color: var(--color-dark-text-muted);
}

.premium-label {
    display: inline-block;
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    background: rgba(208, 169, 138, 0.15);
    border: 1px solid rgba(208, 169, 138, 0.3);
    border-radius: var(--radius-full);
    padding: 6px 16px;
    margin-bottom: var(--space-4);
}

.premium-layout {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-8);
    align-items: start;
}

/* Features list */
.premium-features-list {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.premium-feature-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-4);
}

.premium-feature-icon {
    width: 38px;
    height: 38px;
    border-radius: var(--radius-md);
    background: rgba(208, 169, 138, 0.12);
    border: 1px solid rgba(208, 169, 138, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-primary-dark);
    flex-shrink: 0;
}

.premium-feature-text {
    display: flex;
    flex-direction: column;
    gap: 3px;
    padding-top: 4px;
}

.premium-feature-text strong {
    font-size: var(--text-sm);
    font-weight: 600;
    color: var(--color-dark-text);
}

.premium-feature-text span {
    font-size: var(--text-xs);
    color: var(--color-dark-text-muted);
    line-height: 1.5;
}

/* Pricing card */
.premium-pricing-card {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(208, 169, 138, 0.2);
    border-radius: var(--radius-xl);
    padding: var(--space-6);
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    position: sticky;
    top: 100px;
}

.pricing-options {
    display: flex;
    flex-direction: column;
    gap: var(--space-3);
}

.pricing-option {
    border-radius: var(--radius-lg);
    padding: var(--space-5) var(--space-5);
    position: relative;
}

.pricing-annual {
    background: rgba(208, 169, 138, 0.12);
    border: 1.5px solid rgba(208, 169, 138, 0.5);
}

.pricing-monthly {
    background: rgba(255, 255, 255, 0.04);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.pricing-best-value {
    display: inline-block;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-2);
}

.pricing-amount {
    font-size: 2rem;
    font-weight: 700;
    color: var(--color-dark-text);
    line-height: 1;
}

.pricing-amount span {
    font-size: var(--text-sm);
    font-weight: 400;
    color: var(--color-dark-text-muted);
}

.pricing-period {
    font-size: var(--text-xs);
    color: var(--color-dark-text-muted);
    margin-top: var(--space-1);
}

.pricing-cta {
    width: 100%;
    text-align: center;
    justify-content: center;
    background: var(--color-primary-dark);
    color: var(--color-charcoal);
    border-color: var(--color-primary-dark);
}

.pricing-cta:hover {
    background: var(--color-brown-light);
    border-color: var(--color-brown-light);
}

.pricing-fine-print {
    font-size: var(--text-xs);
    color: var(--color-dark-text-muted);
    text-align: center;
    margin: 0;
}

.pricing-mission-note {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    padding-top: var(--space-4);
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    color: var(--color-dark-text-muted);
}

.pricing-mission-note svg {
    flex-shrink: 0;
    margin-top: 2px;
    color: var(--color-primary-dark);
}

.pricing-mission-note p {
    font-size: var(--text-xs);
    line-height: 1.6;
    margin: 0;
}

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

    .premium-pricing-card {
        position: static;
    }
}

/* ===================
   INDEPENDENCE SECTION (Mission page)
   =================== */

.independence-section {
    background: var(--color-charcoal);
    color: var(--color-dark-text);
}

.independence-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-12);
    align-items: start;
}

.independence-statement h2 {
    color: var(--color-dark-text);
    margin-bottom: var(--space-5);
}

.independence-statement p {
    color: var(--color-dark-text-muted);
    line-height: 1.8;
    margin-bottom: var(--space-4);
}

.independence-statement p:last-child {
    margin-bottom: 0;
}

.independence-statement em {
    color: var(--color-primary-dark);
    font-style: normal;
    font-weight: 500;
}

.independence-pillars {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: 1px solid rgba(208, 169, 138, 0.2);
    border-radius: var(--radius-xl);
    overflow: hidden;
    position: sticky;
    top: 100px;
}

.independence-pillar {
    padding: var(--space-5) var(--space-6);
    border-bottom: 1px solid rgba(208, 169, 138, 0.12);
}

.independence-pillar:last-child {
    border-bottom: none;
}

.pillar-label {
    font-size: var(--text-xs);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-bottom: var(--space-1);
}

.pillar-value {
    font-size: var(--text-base);
    font-weight: 500;
    color: var(--color-dark-text);
    line-height: 1.4;
}

@media (max-width: 768px) {
    .independence-inner {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .independence-pillars {
        position: static;
    }
}

@media (max-width: 768px) {
    .theme-toggle {
        margin-right: 0;
        margin-bottom: 0;
    }
}/* ===================
   HERO PHONE CLUSTER
   =================== */
.hero-phones {
    position: relative;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    width: 100%;
    padding: 0 60px;
}

.hero-phone-main {
    position: relative;
    z-index: 3;
    flex-shrink: 0;
}

.hero-phone-flanker {
    position: absolute;
    width: 230px;
    z-index: 2;
    pointer-events: none;
    bottom: 0;
}

.hero-phone-flanker.left-flanker {
    right: calc(50% + 110px);
    opacity: 0.55;
    transform: rotate(-4deg) translateY(6%);
}

.hero-phone-flanker.right-flanker {
    left: calc(50% + 110px);
    opacity: 0.55;
    transform: rotate(4deg) translateY(6%);
}

.hero-phone-flanker img {
    width: 100%;
    height: auto;
    display: block;
    filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
}

@media (max-width: 900px) {
    .hero-phone-flanker {
        display: none;
    }
    .hero-phones {
        padding: 0;
    }
}

/* ===================
   SECTION CAROUSEL
   =================== */
.showcase-carousel-wrapper {
    display: grid;
}

.showcase-carousel-slide {
    grid-area: 1 / 1;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.6s ease;
}

.showcase-carousel-slide.active {
    opacity: 1;
    pointer-events: all;
}

.section-carousel-nav {
    display: flex;
    justify-content: center;
    gap: var(--space-2);
    margin-top: var(--space-10);
}

/* ===================
   CAROUSEL
   =================== */
.carousel-slide-img {
    width: 100%;
    height: auto;
    display: block;
    opacity: 0;
    transition: opacity 0.5s ease;
    position: absolute;
    top: 0;
    left: 0;
    filter: drop-shadow(0 15px 35px rgba(0, 0, 0, 0.3));
}

.carousel-slide-img.active {
    opacity: 1;
    z-index: 1;
}

.carousel-dots {
    position: absolute;
    bottom: -20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: var(--space-2);
    align-items: center;
    background: var(--bg-card);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-full);
    border: 1px solid var(--border-color);
    box-shadow: var(--shadow-md);
    z-index: 10;
}

.carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: var(--radius-full);
    background: var(--border-color);
    border: none;
    cursor: pointer;
    padding: 0;
    transition: all var(--transition-base);
}

.carousel-dot.active {
    width: 22px;
    background: var(--color-primary);
    border-radius: 4px;
}

/* ===================
   MOBILE ENHANCEMENTS & PREMIUM UI
   =================== */

/* App Store Style Buttons */
.btn-app-store {
    display: inline-flex;
    align-items: center;
    background: var(--btn-primary-bg);
    color: var(--btn-primary-text);
    padding: 10px 24px;
    border-radius: var(--radius-full);
    text-decoration: none;
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    gap: 12px;
    border: none;
}

.btn-app-store.outline {
    background: transparent;
    border: 2px solid var(--text-main);
    color: var(--text-main);
}

.apple-icon {
    width: 28px;
    height: 28px;
}

.app-store-text {
    display: flex;
    flex-direction: column;
    text-align: left;
    line-height: 1.1;
}

.app-store-text .small {
    font-size: 10px;
    font-weight: 400;
}

.app-store-text .large {
    font-size: 18px;
    font-weight: 600;
}

.btn-app-store:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

/* Face Pile (Social Proof) */
.face-pile {
    display: flex;
    align-items: center;
    margin-bottom: var(--space-2);
}

.avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 2px solid var(--bg-page);
    background-size: cover;
    background-position: center;
    margin-left: -10px;
}

.avatar:first-child {
    margin-left: 0;
}



.hero-rating-sub {
    margin-top: var(--space-1);
}

@media (max-width: 768px) {
    .hero-visual {
        opacity: 0;
        transform: translateY(40px);
        will-change: opacity, transform;
    }
}

/* Mobile Sticky Footer Banner */
.mobile-sticky-banner {
    position: fixed;
    bottom: 20px;
    left: 16px;
    right: 16px;
    background: rgba(var(--bg-card-rgb, 255, 255, 255), 0.85);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border: 1px solid var(--border-color);
    border-radius: 20px;
    padding: 12px 20px;
    display: none; /* Desktop hidden */
    align-items: center;
    justify-content: space-between;
    /* Must stay below --z-modal (1100), or it paints over the waitlist dialog. */
    z-index: 1050;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
    transition: opacity 0.4s cubic-bezier(0.4, 0, 0.2, 1), transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.mobile-sticky-banner.is-hidden {
    opacity: 0;
    pointer-events: none;
    transform: translateY(20px);
}

[data-theme="dark"] .mobile-sticky-banner {
    background: rgba(30, 27, 24, 0.85);
}

@media (max-width: 768px) {
    .mobile-sticky-banner {
        display: flex;
        bottom: 12px;
        left: 12px;
        right: 12px;
        padding: 8px 16px;
        border-radius: 16px;
    }

    /* Reserve room so the fixed banner never covers the end of the page.
       .banner-dismissed is set on <body> once the visitor closes it. */
    body:not(.banner-dismissed) {
        padding-bottom: 84px;
    }

    .sticky-banner-icon {
        width: 32px;
        height: 32px;
        border-radius: 8px;
    }

    .sticky-banner-text strong {
        font-size: 13px;
    }

    .sticky-banner-text span {
        font-size: 10px;
    }

    .btn-sticky-download {
        padding: 6px 16px;
        font-size: 13px;
    }
}

/* Dismiss control. The banner is fixed over the page, so without a way to close
   it the bottom ~60px of every mobile screen is permanently occluded. */
.sticky-banner-dismiss {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    margin-left: 8px;
    flex-shrink: 0;
    border: none;
    background: transparent;
    color: var(--text-muted);
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: color var(--transition-fast), background var(--transition-fast);
}

.sticky-banner-dismiss:hover {
    color: var(--text-main);
    background: var(--border-color);
}

.sticky-banner-content {
    display: flex;
    align-items: center;
    gap: 12px;
}

.sticky-banner-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.sticky-banner-text {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.sticky-banner-text strong {
    font-size: 14px;
    color: var(--text-main);
}

.sticky-banner-text span {
    font-size: 11px;
    color: var(--text-muted);
}

.btn-sticky-download {
    background: var(--color-primary);
    color: white;
    padding: 8px 20px;
    border-radius: 100px;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
    transition: transform 0.2s ease;
}

.btn-sticky-download:active {
    transform: scale(0.95);
}

/* =====================================================
   WAITLIST MODAL
   ===================================================== */

.waitlist-modal {
    position: fixed;
    inset: 0;
    z-index: var(--z-modal);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-4);
}

.waitlist-modal[hidden] {
    display: none;
}

.waitlist-modal-backdrop {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.waitlist-modal-content {
    position: relative;
    background: var(--bg-card);
    border-radius: var(--radius-xl);
    padding: var(--space-8);
    max-width: 420px;
    width: 100%;
    box-shadow: var(--shadow-2xl);
    transform: translateY(24px);
    opacity: 0;
    transition: transform 0.22s ease, opacity 0.22s ease;
}

.waitlist-modal-content.open {
    transform: translateY(0);
    opacity: 1;
}

.waitlist-modal-close {
    position: absolute;
    top: var(--space-4);
    right: var(--space-4);
    background: none;
    border: none;
    font-size: 1.375rem;
    line-height: 1;
    color: var(--text-muted);
    cursor: pointer;
    padding: var(--space-1) var(--space-2);
    border-radius: var(--radius-sm);
    transition: color var(--transition-fast), background var(--transition-fast);
}

.waitlist-modal-close:hover {
    color: var(--text-main);
    background: var(--border-color);
}

.waitlist-icon {
    width: 56px;
    height: 56px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    color: white;
}

.waitlist-form-state h2,
.waitlist-success-state h2 {
    font-size: var(--text-2xl);
    font-weight: 700;
    text-align: center;
    margin-bottom: var(--space-2);
    color: var(--text-main);
}

.waitlist-form-state > p,
.waitlist-success-state > p:not(.waitlist-position):not(.waitlist-privacy-note):not(.waitlist-error) {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: var(--space-6);
    font-size: var(--text-sm);
    line-height: 1.6;
}

#waitlist-form {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
    margin-top: var(--space-3);
}

#waitlist-email {
    width: 100%;
    padding: 0.875rem 1.125rem;
    border: 1.5px solid var(--border-color);
    border-radius: var(--radius-full);
    background: var(--bg-page);
    color: var(--text-main);
    font-family: var(--font-primary);
    /* Fixed 16px, not a token: iOS Safari auto-zooms the page on focus for any
       input under 16px, and --text-base resolves below that on phones. */
    font-size: 16px;
    transition: border-color var(--transition-fast);
    box-sizing: border-box;
}

#waitlist-email:focus {
    border-color: var(--color-primary);
}

#waitlist-email::placeholder {
    color: var(--text-muted);
    opacity: 0.7;
}

#waitlist-submit {
    width: 100%;
    justify-content: center;
}

.waitlist-consent {
    display: flex;
    align-items: flex-start;
    gap: var(--space-3);
    margin-top: var(--space-3);
    font-size: var(--text-xs);
    line-height: 1.5;
    color: var(--text-muted);
    cursor: pointer;
    text-align: left;
}

.waitlist-consent input[type="checkbox"] {
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    margin-top: 0.15em;
    accent-color: var(--color-primary);
    cursor: pointer;
}

.waitlist-privacy-note a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Turnstile renders an iframe of its own size; the wrapper only reserves the
   row so the modal does not jump when the widget finishes loading. */
.waitlist-turnstile {
    display: flex;
    justify-content: center;
    min-height: 0;
}

/* Managed mode usually solves invisibly and renders no iframe — only reserve
   the row when Cloudflare actually shows a challenge. */
.waitlist-turnstile:has(iframe) {
    min-height: 65px;
    margin-top: var(--space-2);
}

.waitlist-position {
    text-align: center;
    font-family: var(--font-brand);
    font-size: var(--text-2xl);
    color: var(--color-primary);
    margin: 0 0 var(--space-2);
}

.waitlist-error {
    text-align: center;
    color: #e74c3c;
    font-size: var(--text-sm);
    min-height: 0;
    margin: 0;
    display: none;
}

.waitlist-error:not(:empty) {
    display: block;
}

.waitlist-privacy-note {
    text-align: center;
    font-size: var(--text-xs);
    color: var(--text-muted);
    margin: var(--space-2) 0 0;
    opacity: 0.8;
}

/* Success state */
.waitlist-success-state {
    text-align: center;
}

.waitlist-success-icon {
    width: 64px;
    height: 64px;
    border-radius: var(--radius-full);
    background: var(--gradient-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
    font-size: 1.75rem;
    color: white;
    font-weight: 700;
}

.waitlist-position {
    font-size: var(--text-xl);
    font-weight: 700;
    color: var(--color-primary);
    text-align: center;
    margin: var(--space-2) 0 var(--space-3);
}

.waitlist-done-btn {
    margin-top: var(--space-5);
    min-width: 120px;
}

@media (max-width: 480px) {
    .waitlist-modal-content {
        padding: var(--space-6);
    }
}

/* ===================================================================
   FOCUS, MOTION & RESPONSIVE TIERS
   Appended last so these rules win over the earlier breakpoint blocks.
   =================================================================== */

/* Skip link — first tabbable element on every page. Sits off-screen until
   focused, then parks itself over the nav pill. */
.skip-link {
    position: absolute;
    top: -100px;
    left: var(--space-6);
    z-index: 2000;
    padding: var(--space-3) var(--space-5);
    background: var(--bg-card);
    color: var(--text-main);
    border: 1px solid var(--border-color);
    border-radius: var(--radius-full);
    box-shadow: var(--shadow-md);
    font-size: var(--text-sm);
    font-weight: 600;
    text-decoration: none;
    transition: top var(--transition-fast);
}

.skip-link:focus {
    top: var(--space-6);
}

/* The stylesheet previously had no focus styling at all, so keyboard users were
   relying on a UA ring that is nearly invisible on several controls. */
:focus-visible {
    outline: 2px solid var(--color-primary);
    outline-offset: 3px;
    border-radius: var(--radius-sm);
}

.carousel-dot:focus-visible,
.switcher-dot:focus-visible,
.social-icon:focus-visible,
.theme-toggle:focus-visible,
.nav-cta:focus-visible,
.lang-btn:focus-visible {
    outline-offset: 4px;
}

#waitlist-email:focus-visible {
    outline-offset: 0;
}

/* Anchor targets must clear the floating nav pill (~122px to its bottom edge),
   otherwise in-page jumps land underneath it. */
html {
    scroll-padding-top: 140px;
}

/* --- Tap targets ------------------------------------------------------
   These controls are deliberately small; the pseudo-element grows only the hit
   area, so nothing changes visually. */
.carousel-dot,
.switcher-dot,
.lang-btn,
.waitlist-modal-close {
    position: relative;
}

.carousel-dot::before,
.switcher-dot::before,
.lang-btn::before,
.waitlist-modal-close::before {
    content: "";
    position: absolute;
    top: 50%;
    left: 50%;
    width: 44px;
    height: 44px;
    transform: translate(-50%, -50%);
}

/* --- Tablet / small-laptop tier ---------------------------------------
   Nothing used to change between 769px and 1023px. Showcase sections already
   collapse at <=1024, but the hero, the premium panel and the decorative
   overlays kept full desktop dimensions in a ~400px column. */
@media (min-width: 769px) and (max-width: 1023px) {

    .hero-container {
        gap: var(--space-6);
    }

    /* Copy plus a pricing card side by side needs more room than this. */
    .premium-layout {
        grid-template-columns: 1fr;
        gap: var(--space-10);
    }

    .hero-glow {
        width: 320px;
        height: 320px;
    }

    .showcase-glow {
        width: 280px;
        height: 280px;
    }

    /* 230px of absolutely-positioned phone in a column that no longer has room
       for it; body{overflow-x:hidden} was the only thing hiding the overflow. */
    .hero-phone-flanker {
        display: none;
    }

    .hero-phones {
        padding: 0 var(--space-4);
    }
}

/* --- Small phones ----------------------------------------------------- */
@media (max-width: 480px) {
    .stats-grid {
        grid-template-columns: 1fr;
        gap: var(--space-3);
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: var(--space-8);
    }

    .testimonial-card {
        width: 280px;
    }

    .timeline-item {
        padding-left: var(--space-8);
    }
}

/* The sticky banner is fixed to the bottom on phones, so the last rows of the
   footer need room to clear it. */
@media (max-width: 768px) {
    .footer-bottom {
        padding-bottom: 72px;
    }
}

/* --- Reduced motion ---------------------------------------------------
   .fade-in-up hides its element until JS reveals it, so this has to restore
   visibility, not just drop the transition. */
@media (prefers-reduced-motion: reduce) {

    html {
        scroll-behavior: auto;
    }

    .fade-in-up,
    .fade-in-up.visible {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .stagger-1,
    .stagger-2,
    .stagger-3,
    .stagger-4 {
        transition-delay: 0s !important;
    }

    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}
