/* ============================================
   Choretastic Website - Styles
   Theme: Candy Quest (matching V2 app design)
   Font: Nunito
   ============================================ */

/* ============================================
   CSS Variables
   ============================================ */
:root {
    /* Core Palette */
    --background: #FFF8F0;
    --surface: #FFFFFF;
    --surface-tinted: rgba(255, 183, 77, 0.1);

    /* Primary (Logo Orange) */
    --primary: #FF6300;
    --primary-light: #FFD4BA;
    --primary-lighter: #FFF0E2;
    --primary-dark: #E85A00;

    /* Text */
    --text-primary: #1A2332;
    --text-secondary: #546E7A;
    --text-on-primary: #FFFFFF;
    --text-disabled: #B0BEC5;

    /* Border */
    --border: #E0E0E0;

    /* Accent Colors */
    --sky-blue: #4EA8DE;
    --mint-green: #52B788;
    --purple: #9D4EDD;
    --teal: #3FA7D6;
    --sunset-pink: #FFAFCC;

    /* Semantic */
    --success: #52B788;
    --success-light: #C8E6C9;
    --warning: #FFB74D;
    --warning-light: #FFE0B2;
    --error: #E57373;
    --error-light: #FFCDD2;

    /* Shadows (Blue-grey based) */
    --shadow-sm: 0 2px 8px rgba(55, 71, 79, 0.08);
    --shadow-md: 0 4px 16px rgba(55, 71, 79, 0.12);
    --shadow-lg: 0 8px 32px rgba(55, 71, 79, 0.16);

    /* Spacing */
    --spacing-xs: 4px;
    --spacing-sm: 8px;
    --spacing-md: 16px;
    --spacing-lg: 24px;
    --spacing-xl: 32px;
    --spacing-2xl: 48px;
    --spacing-3xl: 64px;

    /* Border Radius */
    --radius-sm: 8px;
    --radius-md: 12px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Transitions */
    --transition-fast: 150ms ease;
    --transition-normal: 250ms ease;
    --transition-slow: 350ms ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 16px;
    line-height: 1.5;
    color: var(--text-primary);
    background-color: var(--background);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: inherit;
    text-decoration: none;
}

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

ul, ol {
    list-style: none;
}

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

h1 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: clamp(2.5rem, 5vw, 4rem);
}
h2 {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: clamp(1.75rem, 3.5vw, 2.5rem);
}
h3 { font-size: 1.5rem; }
h4 { font-size: 1.25rem; }

p {
    color: var(--text-secondary);
}

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    font-family: inherit;
    font-size: 1rem;
    font-weight: 600;
    border: 2px solid transparent;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    text-decoration: none;
}

.btn-sm {
    padding: var(--spacing-xs) var(--spacing-md);
    font-size: 0.875rem;
}

.btn-lg {
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1.125rem;
}

.btn-primary {
    background: linear-gradient(135deg, #C74E00, #A84000);
    color: var(--text-on-primary);
    border-color: transparent;
    box-shadow: 0 2px 8px rgba(168, 64, 0, 0.3);
}

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

.btn-outline {
    background: transparent;
    color: var(--primary);
    border-color: var(--primary);
}

.btn-outline:hover {
    background: var(--primary-lighter);
}

.btn-block {
    width: 100%;
}

/* ============================================
   Navigation
   ============================================ */
.navbar {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 248, 240, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid var(--border);
    transition: all var(--transition-normal);
}

.navbar .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 70px;
}

.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 var(--spacing-md);
}

@media (min-width: 768px) {
    .container {
        padding: 0 var(--spacing-lg);
    }
}

.logo {
    display: flex;
    align-items: center;
    gap: 2px;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary);
}

.logo-img {
    flex-shrink: 0;
}

.nav-links {
    display: none;
    align-items: center;
    gap: var(--spacing-xl);
}

.nav-links a {
    font-weight: 500;
    color: var(--text-secondary);
    transition: color var(--transition-fast);
}

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

.nav-links a.btn-primary {
    color: var(--text-on-primary);
}

.nav-links a.btn-primary:hover {
    color: var(--text-on-primary);
}

@media (min-width: 768px) {
    .nav-links {
        display: flex;
    }
}

.mobile-menu-btn {
    display: flex;
    flex-direction: column;
    gap: 5px;
    padding: var(--spacing-sm);
    background: none;
    border: none;
    cursor: pointer;
}

.mobile-menu-btn span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--text-primary);
    border-radius: 2px;
    transition: all var(--transition-fast);
}

@media (min-width: 768px) {
    .mobile-menu-btn {
        display: none;
    }
}

/* Mobile Menu */
.mobile-menu {
    position: fixed;
    top: 70px;
    left: 0;
    right: 0;
    background: var(--surface);
    padding: var(--spacing-lg);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    box-shadow: var(--shadow-lg);
    transform: translateY(-100%);
    opacity: 0;
    visibility: hidden;
    transition: all var(--transition-normal);
    z-index: 999;
}

.mobile-menu.active {
    transform: translateY(0);
    opacity: 1;
    visibility: visible;
}

.mobile-menu a {
    padding: var(--spacing-md);
    font-weight: 500;
    color: var(--text-primary);
    border-radius: var(--radius-md);
}

.mobile-menu a:hover {
    background: var(--primary-lighter);
}

/* ============================================
   Hero Section
   ============================================ */
.hero {
    position: relative;
    padding: 120px 0 140px;
    background: linear-gradient(180deg, var(--background) 0%, #FFF0E2 100%);
    overflow: hidden;
}

.hero .container {
    display: grid;
    gap: var(--spacing-3xl);
    align-items: center;
}

@media (min-width: 992px) {
    .hero .container {
        grid-template-columns: 1fr 1fr;
    }
}

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

@media (min-width: 992px) {
    .hero-content {
        text-align: left;
    }
}

.hero h1 {
    margin-bottom: var(--spacing-lg);
}

.hero h1 .highlight {
    color: var(--primary-dark);
    position: relative;
    display: inline;
}

.hero h1 .highlight::after {
    display: none;
}

.hero-subtitle {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-xl);
    max-width: 500px;
}

@media (min-width: 992px) {
    .hero-subtitle {
        margin-left: 0;
        margin-right: auto;
    }
}

.hero-cta {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-md);
    justify-content: center;
    margin-bottom: var(--spacing-lg);
}

@media (min-width: 992px) {
    .hero-cta {
        justify-content: flex-start;
    }
}

/* Hero Badge */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-lg);
    background: linear-gradient(135deg, var(--primary-lighter), var(--sunset-pink));
    border-radius: var(--radius-full);
    font-weight: 600;
    color: var(--primary-dark);
    font-size: 0.9rem;
    margin-bottom: var(--spacing-lg);
}

.hero-badge svg {
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .hero-badge {
        margin-left: 0;
    }
}

/* Phone Mockup */
.hero-image {
    display: flex;
    justify-content: center;
}

.phone-frame {
    position: relative;
    width: 280px;
    background: #1a1a1a;
    border-radius: 44px;
    padding: 12px;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(255,255,255,0.1) inset;
}

.phone-frame-notch {
    position: absolute;
    top: 12px;
    left: 50%;
    transform: translateX(-50%);
    width: 100px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 18px 18px;
    z-index: 2;
}

.phone-frame-screen {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 32px;
    overflow: hidden;
}

.phone-mockup {
    position: relative;
    width: 280px;
    height: 560px;
    background: #1a1a1a;
    border-radius: 40px;
    padding: 10px;
    box-shadow:
        0 8px 32px rgba(55, 71, 79, 0.25),
        0 2px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.1);
    animation: float 4s ease-in-out infinite;
}

.phone-notch {
    position: absolute;
    top: 10px;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 28px;
    background: #1a1a1a;
    border-radius: 0 0 18px 18px;
    z-index: 10;
}

.phone-screen {
    width: 100%;
    height: 100%;
    background: var(--background);
    border-radius: 32px;
    overflow: hidden;
}

.app-preview {
    height: 100%;
    display: flex;
    flex-direction: column;
}

.app-statusbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 24px 4px;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-primary);
}

.statusbar-icons {
    display: flex;
    align-items: center;
    gap: 4px;
}

.app-nav-title {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--text-primary);
    padding: 8px 20px 2px;
}

.app-welcome {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--primary);
    padding: 0 20px 8px;
}

/* ============================================
   Diamond Tessellation Grid
   ============================================ */
.diamond-grid {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 0 4px;
    gap: 3px;
}

.diamond-row {
    display: flex;
    justify-content: center;
    gap: 3px;
}

/* Each diamond tile: rotated square */
.diamond-tile {
    --tile-size: 64px;
    width: var(--tile-size);
    height: var(--tile-size);
    background: var(--tile-bg);
    border-radius: 8px;
    transform: rotate(45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.3);
    transition: transform 0.2s ease;
}

/* Inner glow border matching app */
.diamond-tile::before {
    content: '';
    position: absolute;
    inset: 1px;
    border-radius: 7px;
    border: 1.5px solid rgba(255, 255, 255, 0.25);
    pointer-events: none;
}

.tile-inner {
    transform: rotate(-45deg);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
}

.tile-icon {
    width: 20px;
    height: 20px;
}

.tile-label {
    font-size: 0.5rem;
    font-weight: 700;
    color: white;
    text-transform: uppercase;
    letter-spacing: 0.02em;
    white-space: nowrap;
}

/* Offset rows (2 tiles) shift down to tessellate */
.diamond-row.row-2 {
    margin-top: -14px;
    margin-bottom: -14px;
}

.diamond-row.row-3 {
    /* middle row sits flush */
}

/* 3-tile row needs smaller tiles or we adjust sizing */
.diamond-row.row-3 .diamond-tile {
    --tile-size: 62px;
}

.diamond-row.row-3 .tile-icon {
    width: 18px;
    height: 18px;
}

.diamond-row.row-3 .tile-label {
    font-size: 0.45rem;
}

/* Hero Wave */
.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
}

.hero-wave svg {
    display: block;
    width: 100%;
    height: auto;
}

/* ============================================
   Section Styles
   ============================================ */
section {
    padding: var(--spacing-3xl) 0;
}

.section-header {
    text-align: center;
    max-width: 600px;
    margin: 0 auto var(--spacing-2xl);
}

.section-header h2 {
    margin-bottom: var(--spacing-md);
}

.section-header p {
    font-size: 1.125rem;
}

/* ============================================
   Features Section
   ============================================ */
.features {
    background: var(--surface);
}

.features-grid {
    display: grid;
    gap: var(--spacing-lg);
}

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

@media (min-width: 992px) {
    .features-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.feature-card {
    padding: var(--spacing-xl);
    background: var(--background);
    border-radius: var(--radius-lg);
    transition: all var(--transition-normal);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary-light);
}

.feature-card {
    border: 1px solid transparent;
}

.feature-icon {
    width: 56px;
    height: 56px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-md);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.feature-card h3 {
    margin-bottom: var(--spacing-sm);
}

/* ============================================
   How It Works Section
   ============================================ */
.how-it-works {
    background: var(--background);
}

.steps {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xl);
    max-width: 800px;
    margin: 0 auto;
}

.step {
    display: grid;
    gap: var(--spacing-lg);
    align-items: center;
    padding: var(--spacing-xl);
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

@media (min-width: 768px) {
    .step {
        grid-template-columns: auto 1fr auto;
    }
}

.step-number {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-on-primary);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    border-radius: 50%;
}

/* Alternate step number colors */
.step:nth-child(2) .step-number { background: linear-gradient(135deg, var(--sky-blue), #0096C7); }
.step:nth-child(3) .step-number { background: linear-gradient(135deg, var(--mint-green), #40916C); }
.step:nth-child(4) .step-number { background: linear-gradient(135deg, var(--purple), #7209B7); }

.step-content h3 {
    margin-bottom: var(--spacing-xs);
}

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

.mini-card {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-md) var(--spacing-lg);
    background: var(--primary-lighter);
    border-radius: var(--radius-md);
    font-weight: 500;
}

.mini-card.submitted {
    background: var(--warning-light);
}

.mini-card.approved {
    background: var(--success-light);
    color: var(--success);
}

.mini-icon {
    font-size: 1.25rem;
}

.mini-reward {
    font-weight: 700;
    color: var(--success);
}

.time-display {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--spacing-md) var(--spacing-xl);
    background: linear-gradient(135deg, var(--primary-lighter), var(--primary-light));
    border-radius: var(--radius-md);
}

.time-big {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.time-small {
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   Why Section (Value Props)
   ============================================ */
.why-section {
    background: linear-gradient(135deg, #1A2744 0%, #2D3436 100%);
    position: relative;
    overflow: hidden;
}

.why-section .section-header h2 {
    color: white;
}

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

.why-grid {
    display: grid;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .why-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

.why-card {
    text-align: center;
    padding: var(--spacing-xl);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: var(--radius-xl);
    transition: all var(--transition-normal);
}

.why-card:hover {
    transform: translateY(-4px);
    background: rgba(255, 255, 255, 0.12);
}

.why-icon-wrap {
    width: 64px;
    height: 64px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--spacing-md);
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
}

.why-card h3 {
    margin-bottom: var(--spacing-sm);
    color: white;
}

.why-card p {
    font-size: 1rem;
    line-height: 1.6;
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Pricing Section
   ============================================ */
.pricing {
    background: var(--background);
}

.pricing-cards {
    display: grid;
    gap: var(--spacing-lg);
    max-width: 800px;
    margin: 0 auto;
}

@media (min-width: 768px) {
    .pricing-cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

.pricing-card {
    position: relative;
    padding: var(--spacing-xl);
    background: var(--surface);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
    border: 2px solid var(--primary);
    box-shadow: var(--shadow-lg);
    background: #FFF5EB;
    transform: scale(1.03);
}

@media (max-width: 767px) {
    .pricing-card.featured {
        transform: none;
    }
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: var(--spacing-xs) var(--spacing-md);
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
}

.pricing-header {
    text-align: center;
    padding-bottom: var(--spacing-lg);
    border-bottom: 1px solid var(--border);
    margin-bottom: var(--spacing-lg);
}

.pricing-header h3 {
    margin-bottom: var(--spacing-sm);
}

.price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: var(--spacing-xs);
}

.price-amount {
    font-size: 2.5rem;
    font-weight: 700;
    color: var(--primary);
}

.price-period {
    color: var(--text-secondary);
}

.pricing-features {
    margin-bottom: var(--spacing-xl);
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    color: var(--text-primary);
}

.pricing-features li::before {
    content: '\2713';
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-light);
    color: var(--success);
    border-radius: 50%;
    font-size: 0.75rem;
    font-weight: 700;
    flex-shrink: 0;
}

/* ============================================
   Download Section
   ============================================ */
.download {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
    color: white;
    text-align: center;
    padding-top: var(--spacing-2xl);
}

.download h2 {
    color: white;
    margin-bottom: var(--spacing-md);
}

.download p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
    margin-bottom: var(--spacing-xl);
}

.download-buttons {
    display: flex;
    justify-content: center;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.download-note {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.875rem;
}

/* App Store Badge Link */
.app-store-badge-link {
    display: inline-block;
    transition: transform var(--transition-fast);
}

.app-store-badge-link:hover {
    transform: translateY(-2px);
}

.app-store-badge-link img {
    height: 54px;
    width: auto;
}

/* ============================================
   Footer
   ============================================ */
.footer {
    background: var(--text-primary);
    color: white;
    padding: var(--spacing-3xl) 0 var(--spacing-xl);
}

.footer-grid {
    display: grid;
    gap: var(--spacing-xl);
    margin-bottom: var(--spacing-2xl);
}

@media (min-width: 768px) {
    .footer-grid {
        grid-template-columns: 2fr 1fr 1fr 1fr;
    }
}

.footer-brand .logo {
    color: white;
    margin-bottom: var(--spacing-md);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
}

.footer-links .footer-heading,
.footer-links h4 {
    color: white;
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
}

.footer-links a {
    display: block;
    padding: var(--spacing-xs) 0;
    color: rgba(255, 255, 255, 0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    align-items: center;
    padding-top: var(--spacing-xl);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

@media (min-width: 768px) {
    .footer-bottom {
        flex-direction: row;
        justify-content: space-between;
    }
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.5);
    font-size: 0.875rem;
}

/* ============================================
   Notify Form (Email Signup)
   ============================================ */
.notify-form {
    text-align: center;
}

.notify-text {
    color: rgba(255, 255, 255, 0.7);
    margin-top: var(--spacing-md);
    font-size: 0.875rem;
}

.email-signup {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    max-width: 440px;
    margin: 0 auto;
}

.email-signup input[type="email"] {
    flex: 1;
    min-width: 200px;
    padding: var(--spacing-md) var(--spacing-lg);
    border: none;
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-family: inherit;
}

.email-signup input[type="email"]:focus {
    outline: 2px solid var(--primary-light);
    outline-offset: 2px;
}

.email-signup .btn {
    white-space: nowrap;
}

.email-signup .cf-turnstile {
    width: 100%;
    display: flex;
    justify-content: center;
}

.email-signup.success input[type="email"] {
    background: var(--success-light);
    color: var(--success);
}

/* Notify Me button (white text on translucent white bg) */
.btn-notify {
    background: rgba(255, 255, 255, 0.2);
    color: #FFFFFF;
    border: 2px solid rgba(255, 255, 255, 0.5);
    padding: var(--spacing-md) var(--spacing-xl);
    font-size: 1rem;
    font-weight: 700;
    border-radius: var(--radius-full);
    cursor: pointer;
    transition: all var(--transition-normal);
    font-family: inherit;
    white-space: nowrap;
}

.btn-notify:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: translateY(-2px);
}

/* Subscription success / error messages */
.subscribe-msg {
    max-width: 440px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    border-radius: var(--radius-md);
    background: rgba(255, 255, 255, 0.15);
    text-align: center;
}

.subscribe-msg p {
    margin: 0;
    color: #FFFFFF;
    font-weight: 600;
}

.subscribe-msg--error {
    background: rgba(229, 115, 115, 0.2);
}

.subscribe-msg--error p {
    color: #FFCDD2;
}

/* ============================================
   Hero Background Shapes
   ============================================ */
.hero {
    position: relative;
}

.hero-bg-shapes {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.shape {
    position: absolute;
    border-radius: 50%;
    opacity: 0.06;
}

.shape-1 {
    width: 400px;
    height: 400px;
    background: var(--primary);
    top: -100px;
    right: -100px;
}

.shape-2 {
    width: 250px;
    height: 250px;
    background: var(--sky-blue);
    bottom: 40px;
    left: -60px;
}

.shape-3 {
    width: 180px;
    height: 180px;
    background: var(--mint-green);
    top: 50%;
    left: 30%;
}

/* ============================================
   Pain Point Section
   ============================================ */
.pain-point {
    text-align: center;
    padding: var(--spacing-2xl) 0;
    background: var(--surface);
}

.pain-lead {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary);
    margin-bottom: var(--spacing-lg);
}

.pain-items {
    max-width: 500px;
    margin: 0 auto var(--spacing-lg);
}

.pain-items p {
    font-size: 1.1rem;
    font-style: italic;
    color: var(--text-secondary);
    margin-bottom: var(--spacing-sm);
}

.pain-solution {
    font-size: 1.15rem;
    color: var(--text-primary);
    max-width: 540px;
    margin: 0 auto;
}

.pain-solution strong {
    color: var(--primary);
}

/* ============================================
   Step Connector
   ============================================ */
.step-connector {
    display: flex;
    justify-content: center;
    padding: 0;
    line-height: 0;
}

/* ============================================
   Download Section Wave
   ============================================ */
.download {
    position: relative;
    padding-top: 0;
}

.download-wave {
    position: relative;
    margin-top: -1px;
    line-height: 0;
}

.download-wave svg {
    display: block;
    width: 100%;
}

/* ============================================
   Pricing Section Tint
   ============================================ */
.pricing {
    background: #F0F8FF;
}

/* ============================================
   Hero Trust Badges
   ============================================ */
.hero-trust {
    display: flex;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    justify-content: center;
    margin-top: var(--spacing-md);
}

@media (min-width: 992px) {
    .hero-trust {
        justify-content: flex-start;
    }
}

.trust-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--spacing-xs);
    padding: var(--spacing-xs) var(--spacing-md);
    background: var(--surface);
    border-radius: var(--radius-full);
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-secondary);
    box-shadow: var(--shadow-sm);
}

/* ============================================
   Pricing Note & Monthly Price
   ============================================ */
.price-monthly {
    font-size: 0.875rem;
    color: var(--text-secondary);
    margin-top: var(--spacing-xs);
}

.pricing-note {
    text-align: center;
    margin-top: var(--spacing-xl);
    font-size: 0.875rem;
    color: var(--text-secondary);
}

/* ============================================
   Coming Soon Badge (Download Section)
   ============================================ */
.app-store-coming-soon {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-xs);
}

.coming-soon-label {
    font-size: 0.75rem;
    font-weight: 600;
    color: rgba(255, 255, 255, 0.7);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

/* ============================================
   Footer Developer Line
   ============================================ */
.footer-developer {
    margin-top: var(--spacing-sm);
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.5) !important;
}

.footer-developer strong {
    color: rgba(255, 255, 255, 0.7);
}

/* ============================================
   Scroll Progress Bar
   ============================================ */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    width: 0%;
    background: linear-gradient(90deg, var(--primary), #FFB74D);
    z-index: 10000;
    transition: width 0.05s linear;
}

/* ============================================
   Animated Gradient Background (Hero)
   ============================================ */
.hero-gradient-bg {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg,
        rgba(255, 99, 0, 0.05) 0%,
        rgba(78, 168, 222, 0.05) 25%,
        rgba(82, 183, 136, 0.05) 50%,
        rgba(157, 78, 221, 0.04) 75%,
        rgba(255, 99, 0, 0.05) 100%);
    background-size: 400% 400%;
    animation: gradientShift 12s ease infinite;
    pointer-events: none;
}

@keyframes gradientShift {
    0% { background-position: 0% 50%; }
    25% { background-position: 100% 50%; }
    50% { background-position: 100% 0%; }
    75% { background-position: 0% 100%; }
    100% { background-position: 0% 50%; }
}

/* ============================================
   Hero Particles
   ============================================ */
.hero-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.hero-particle {
    position: absolute;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    opacity: 0;
    animation: particleFloat linear infinite;
}

@keyframes particleFloat {
    0% {
        opacity: 0;
        transform: translateY(0) scale(0.5);
    }
    15% {
        opacity: 0.6;
    }
    85% {
        opacity: 0.4;
    }
    100% {
        opacity: 0;
        transform: translateY(-120px) scale(1);
    }
}

/* ============================================
   Hero Badge Pulse
   ============================================ */
.hero-badge {
    animation: badgePulse 2.5s ease-in-out infinite;
}

@keyframes badgePulse {
    0%, 100% { box-shadow: 0 0 0 0 rgba(255, 99, 0, 0.2); }
    50% { box-shadow: 0 0 0 10px rgba(255, 99, 0, 0); }
}

/* ============================================
   Phone Mockup Float Animation
   ============================================ */
.phone-frame {
    animation: float 4s ease-in-out infinite;
}

/* ============================================
   Text Gradient on Section Headings
   ============================================ */
.section-header h2 {
    background: linear-gradient(135deg, var(--text-primary) 0%, var(--primary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.why-section .section-header h2 {
    background: linear-gradient(135deg, #ffffff 0%, #FFB74D 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ============================================
   Section Header Scroll Reveal
   ============================================ */
.section-header {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

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

/* ============================================
   Feature Card Hover Enhancements
   ============================================ */
.feature-icon {
    transition: all var(--transition-normal);
}

.feature-card:hover .feature-icon {
    transform: scale(1.12);
    box-shadow: 0 4px 20px rgba(255, 99, 0, 0.35);
}

/* Feature card shimmer on hover */
.feature-card {
    position: relative;
    overflow: hidden;
}

.feature-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.4),
        transparent
    );
    transition: none;
    pointer-events: none;
}

.feature-card:hover::before {
    animation: shimmerSweep 0.6s ease forwards;
}

@keyframes shimmerSweep {
    0% { left: -100%; }
    100% { left: 150%; }
}

/* ============================================
   How It Works - Step Slide-In Animations
   ============================================ */
.step {
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.step.slide-from-left {
    opacity: 0;
    transform: translateX(-60px);
}

.step.slide-from-right {
    opacity: 0;
    transform: translateX(60px);
}

.step.slide-from-left.animate-in,
.step.slide-from-right.animate-in {
    opacity: 1;
    transform: translateX(0);
    animation: none;
}

/* Step Connector Draw Animation */
.step-connector svg line {
    stroke-dasharray: 32;
    stroke-dashoffset: 32;
    transition: stroke-dashoffset 0.8s ease;
}

.step-connector.connector-visible svg line {
    stroke-dashoffset: 0;
}

/* Step Number Count-Up (visual pop) */
.step-number {
    transition: transform 0.3s ease;
}

.step-number.count-pop {
    animation: countPop 0.5s ease;
}

@keyframes countPop {
    0% { transform: scale(0.3); opacity: 0; }
    60% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(1); opacity: 1; }
}

/* ============================================
   Why Section - Parallax & Border Glow
   ============================================ */
.why-section {
    background-attachment: fixed;
}

.why-card {
    transition: all var(--transition-normal), border-color 0.4s ease, box-shadow 0.4s ease;
}

.why-card:hover {
    border-color: rgba(255, 99, 0, 0.5);
    box-shadow: 0 0 20px rgba(255, 99, 0, 0.15), 0 0 40px rgba(255, 99, 0, 0.05);
}

/* ============================================
   Pricing - Best Value Badge Float
   ============================================ */
.pricing-badge {
    animation: badgeBreath 2.5s ease-in-out infinite;
}

@keyframes badgeBreath {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(-3px); }
}

/* Featured Pricing Card Shine */
.pricing-card.featured {
    position: relative;
    overflow: hidden;
}

.pricing-card.featured::after {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 60%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.2),
        transparent
    );
    animation: pricingShine 4s ease-in-out infinite;
    pointer-events: none;
}

@keyframes pricingShine {
    0%, 80%, 100% { left: -100%; }
    40% { left: 150%; }
}

/* ============================================
   Email Subscribe - Checkmark Draw Animation
   ============================================ */
.checkmark-svg {
    display: block;
    margin: 0 auto var(--spacing-md);
}

.checkmark-circle {
    stroke-dasharray: 150;
    stroke-dashoffset: 150;
    animation: checkCircleDraw 0.5s ease forwards;
}

.checkmark-check {
    stroke-dasharray: 48;
    stroke-dashoffset: 48;
    animation: checkDraw 0.35s ease 0.4s forwards;
}

@keyframes checkCircleDraw {
    to { stroke-dashoffset: 0; }
}

@keyframes checkDraw {
    to { stroke-dashoffset: 0; }
}

/* Submit Button Loading Spinner */
.btn-notify.is-loading {
    position: relative;
    color: transparent;
    pointer-events: none;
}

.btn-notify.is-loading::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2.5px solid rgba(255,255,255,0.3);
    border-top-color: #fff;
    border-radius: 50%;
    animation: btnSpin 0.6s linear infinite;
}

@keyframes btnSpin {
    to { transform: rotate(360deg); }
}

/* ============================================
   Animations
   ============================================ */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.hero-content,
.hero-image {
    animation: fadeInUp 0.6s ease forwards;
}

.hero-image {
    animation-delay: 0.2s;
}

@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-10px); }
}

/* ============================================
   Mobile Optimizations
   ============================================ */
@media (max-width: 767px) {
    /* Full-width CTAs with generous tap targets */
    .hero-cta {
        flex-direction: column;
        align-items: stretch;
    }

    .hero-cta .btn {
        min-height: 48px;
        justify-content: center;
    }

    /* Smaller phone mockup on mobile */
    .phone-mockup {
        width: 220px;
        height: 440px;
        border-radius: 32px;
    }

    .phone-notch {
        width: 90px;
        height: 22px;
        border-radius: 0 0 14px 14px;
    }

    .phone-screen {
        border-radius: 24px;
    }

    .diamond-tile {
        --tile-size: 52px !important;
    }

    /* Larger mini-cards in steps */
    .mini-card {
        padding: var(--spacing-md) var(--spacing-lg);
        font-size: 0.95rem;
    }

    /* Annual card first on mobile */
    .pricing-cards {
        display: flex;
        flex-direction: column;
    }

    .pricing-card.featured {
        order: -1;
    }

    .pricing-card .btn {
        min-height: 48px;
    }

    /* Full-width download button */
    .download .btn-notify {
        width: 100%;
        min-height: 48px;
    }

    .email-signup {
        flex-direction: column;
    }

    .email-signup input[type="email"] {
        min-height: 48px;
    }

    /* Disable parallax on mobile (iOS doesn't support background-attachment: fixed) */
    .why-section {
        background-attachment: scroll;
    }

    /* Disable step slide-in on mobile (use simpler fade) */
    .step.slide-from-left,
    .step.slide-from-right {
        transform: translateY(20px);
    }

    .step.slide-from-left.animate-in,
    .step.slide-from-right.animate-in {
        transform: translateY(0);
    }

    /* Pain point section tighter */
    .pain-point {
        padding: var(--spacing-xl) 0;
    }
}

@media (max-width: 375px) {
    .hero h1 {
        font-size: 2rem;
    }

    .trust-badge {
        font-size: 0.7rem;
        padding: 3px var(--spacing-sm);
    }
}

/* ============================================
   Accessibility: Reduced Motion
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
}

/* ============================================
   Focus Indicators (Keyboard Accessibility)
   ============================================ */
a:focus-visible,
button:focus-visible,
input:focus-visible {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* ============================================
   Before/After Comparison Section
   ============================================ */
.before-after {
    background: var(--background);
    padding: var(--spacing-3xl) 0;
}

.comparison-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    max-width: 900px;
    margin: 0 auto;
}

.comparison-card {
    padding: var(--spacing-2xl) var(--spacing-xl);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-md);
}

.comparison-before {
    background: linear-gradient(135deg, #FFF0E2, #FFCDD2);
}

.comparison-after {
    background: linear-gradient(135deg, #E8F5E9, #C8E6C9);
}

.comparison-label {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--spacing-lg);
    text-align: center;
}

.comparison-before .comparison-label {
    color: #C62828;
}

.comparison-after .comparison-label {
    color: #2E7D32;
}

.scene-list {
    list-style: none;
}

.scene-list li {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) 0;
    font-weight: 500;
    font-size: 0.95rem;
    color: var(--text-primary);
}

.scene-list li svg {
    flex-shrink: 0;
}

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

    .comparison-card {
        padding: var(--spacing-xl) var(--spacing-lg);
    }
}

/* ============================================
   Video/Demo Section
   ============================================ */
.demo-section {
    background: var(--surface);
    padding: var(--spacing-3xl) 0;
}

.demo-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.demo-phone-frame {
    position: relative;
    width: 300px;
    background: #1a1a1a;
    border-radius: 52px;
    padding: 14px;
    box-shadow:
        0 30px 80px rgba(0, 0, 0, 0.25),
        0 0 0 2px #333 inset,
        0 0 0 4px #1a1a1a inset;
}

/* Dynamic Island */
.demo-phone-notch {
    position: absolute;
    top: 22px;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 24px;
    background: #000;
    border-radius: 20px;
    z-index: 2;
}

/* Side buttons */
.demo-phone-frame::before {
    content: '';
    position: absolute;
    right: -3px;
    top: 120px;
    width: 3px;
    height: 44px;
    background: #333;
    border-radius: 0 2px 2px 0;
}
.demo-phone-frame::after {
    content: '';
    position: absolute;
    left: -3px;
    top: 100px;
    width: 3px;
    height: 30px;
    background: #333;
    border-radius: 2px 0 0 2px;
    box-shadow: 0 40px 0 #333, 0 70px 0 #333;
}

.demo-screen {
    position: relative;
    width: 100%;
    aspect-ratio: 9/19.5;
    background: #000;
    border-radius: 40px;
    overflow: hidden;
}

.demo-screen-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.6s ease;
}

.demo-screen-slide.demo-slide-active {
    opacity: 1;
}

.demo-slide-header {
    margin-bottom: var(--spacing-lg);
}

.demo-slide-title {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-primary);
}

.demo-slide-items {
    width: 100%;
}

.demo-item {
    display: flex;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-sm) var(--spacing-md);
    background: var(--surface);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-primary);
}

.demo-item-check {
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--success-light);
    color: var(--success);
    border-radius: 50%;
    font-size: 0.7rem;
    font-weight: 700;
    flex-shrink: 0;
}

.demo-item-check.pending {
    background: var(--warning-light);
    color: var(--warning);
    font-size: 0.5rem;
}

.demo-item-reward {
    margin-left: auto;
    font-weight: 700;
    color: var(--success);
    font-size: 0.8rem;
}

.demo-slide-photo {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-sm);
    padding: var(--spacing-lg);
    background: var(--primary-lighter);
    border-radius: var(--radius-lg);
    margin-bottom: var(--spacing-lg);
}

.demo-slide-photo span {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.demo-slide-actions {
    width: 100%;
}

.demo-btn-approve {
    width: 100%;
    padding: var(--spacing-md);
    background: linear-gradient(135deg, var(--success), #40916C);
    color: white;
    text-align: center;
    border-radius: var(--radius-full);
    font-weight: 700;
    font-size: 0.95rem;
}

.demo-slide-balance {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--spacing-md);
}

.demo-balance-ring {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
}

.demo-balance-text {
    position: absolute;
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary-dark);
}

.demo-balance-label {
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--text-secondary);
}

.demo-ring-fill {
    transition: stroke-dashoffset 1s ease;
}

.demo-progress-dots {
    display: flex;
    justify-content: center;
    gap: 10px;
    padding: var(--spacing-lg) 0 0;
}

.demo-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #ccc;
    transition: all 0.3s ease;
    cursor: pointer;
}

.demo-dot.active {
    background: var(--primary);
    transform: scale(1.2);
}

/* ============================================
   FAQ Accordion Section
   ============================================ */
.faq-section {
    background: var(--background);
    padding: var(--spacing-3xl) 0;
}

.faq-list {
    max-width: 700px;
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border);
}

.faq-item:first-child {
    border-top: 1px solid var(--border);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-lg) var(--spacing-md);
    background: none;
    border: none;
    cursor: pointer;
    font-family: inherit;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-primary);
    text-align: left;
    gap: var(--spacing-md);
    transition: color var(--transition-fast);
}

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

.faq-chevron {
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.35s ease, padding 0.35s ease;
    padding: 0 var(--spacing-md);
}

.faq-item.open .faq-answer {
    max-height: 300px;
    padding: 0 var(--spacing-md) var(--spacing-lg);
}

.faq-answer p {
    font-size: 1rem;
    line-height: 1.7;
    color: var(--text-secondary);
}

/* ============================================
   Cursor Glow Effect (Hero Only)
   ============================================ */
.cursor-glow {
    position: fixed;
    width: 300px;
    height: 300px;
    border-radius: 50%;
    background: radial-gradient(circle, rgba(255, 99, 0, 0.12) 0%, rgba(255, 99, 0, 0) 70%);
    pointer-events: none;
    z-index: 1;
    transform: translate(-50%, -50%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.cursor-glow.visible {
    opacity: 1;
}

/* ============================================
   3D Card Tilt
   ============================================ */
.feature-card,
.why-card {
    transform-style: preserve-3d;
    perspective: 800px;
}

/* ============================================
   Sticky CTA Bar
   ============================================ */
.sticky-cta-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 900;
    background: var(--surface);
    border-top: 1px solid var(--border);
    box-shadow: 0 -2px 16px rgba(55, 71, 79, 0.1);
    transform: translateY(100%);
    transition: transform 0.4s ease;
}

.sticky-cta-bar.visible {
    transform: translateY(0);
}

.sticky-cta-bar.dismissed {
    transform: translateY(100%) !important;
}

.sticky-cta-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: var(--spacing-md) var(--spacing-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-lg);
}

.sticky-cta-text {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 0.95rem;
}

.sticky-cta-close {
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: var(--spacing-xs);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: color var(--transition-fast);
}

.sticky-cta-close:hover {
    color: var(--text-primary);
}

@media (max-width: 767px) {
    .sticky-cta-text {
        font-size: 0.85rem;
    }

    .sticky-cta-inner {
        gap: var(--spacing-sm);
    }
}

/* ============================================
   Exit Intent Popup
   ============================================ */
.exit-popup-overlay {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    padding: var(--spacing-lg);
}

.exit-popup-overlay.visible {
    opacity: 1;
    visibility: visible;
}

.exit-popup {
    position: relative;
    background: var(--surface);
    border-radius: var(--radius-xl);
    padding: var(--spacing-2xl) var(--spacing-xl);
    max-width: 440px;
    width: 100%;
    text-align: center;
    box-shadow: var(--shadow-lg);
    transform: translateY(20px) scale(0.95);
    transition: transform 0.3s ease;
}

.exit-popup-overlay.visible .exit-popup {
    transform: translateY(0) scale(1);
}

.exit-popup h3,
.exit-popup-title {
    font-family: 'Fredoka', 'Nunito', sans-serif;
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--spacing-md);
    color: var(--text-primary);
}

.exit-popup p {
    font-size: 1rem;
    line-height: 1.6;
    margin-bottom: var(--spacing-xl);
    color: var(--text-secondary);
}

.exit-popup-close {
    position: absolute;
    top: var(--spacing-md);
    right: var(--spacing-md);
    background: none;
    border: none;
    cursor: pointer;
    color: var(--text-secondary);
    padding: var(--spacing-xs);
    transition: color var(--transition-fast);
}

.exit-popup-close:hover {
    color: var(--text-primary);
}

.exit-popup-form {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.exit-popup-form input[type="email"] {
    padding: var(--spacing-md) var(--spacing-lg);
    border: 2px solid var(--border);
    border-radius: var(--radius-full);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast);
}

.exit-popup-form input[type="email"]:focus {
    outline: none;
    border-color: var(--primary);
}

.exit-popup-form .btn {
    padding: var(--spacing-md) var(--spacing-xl);
}

/* Demo slide images */
.demo-slide-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: top;
    display: block;
}
