/* ============================================
   28-DAY CHALLENGE LANDING PAGE
   Color System: Cream + Green "Expensive Broke"
   ============================================ */

/* CSS Variables */
:root {
    /* Primary - Cream */
    --cream-light: #FFFDF7;
    --cream-base: #F5F1E6;
    --cream-dark: #E8E2D3;

    /* Accent - Money Green */
    --green-pop: #4ADE80;
    --green-base: #22C55E;
    --green-dark: #15803D;
    --green-muted: #86EFAC;

    /* Text */
    --text-primary: #1A1A1A;
    --text-secondary: #525252;
    --text-muted: #737373;

    /* Effects */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.06);
    --shadow-hover: 0 8px 30px rgba(34, 197, 94, 0.15);
    --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);

    /* Typography */
    --font-display: 'Space Grotesk', sans-serif;
    --font-body: 'Inter', sans-serif;
    --font-mono: 'JetBrains Mono', monospace;

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

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

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

html {
    scroll-behavior: smooth;
}

/* Lenis smooth scroll */
html.lenis, html.lenis body {
    height: auto;
}

.lenis.lenis-smooth {
    scroll-behavior: auto !important;
}

.lenis.lenis-smooth [data-lenis-prevent] {
    overscroll-behavior: contain;
}

.lenis.lenis-stopped {
    overflow: hidden;
}

.lenis.lenis-scrolling iframe {
    pointer-events: none;
}

body {
    font-family: var(--font-body);
    font-size: 16px;
    line-height: 1.6;
    color: var(--text-primary);
    background-color: var(--cream-light);
    -webkit-font-smoothing: antialiased;
}

/* ============================================
   LAYOUT - 3 Column Grid
   ============================================ */

.page-wrapper {
    display: grid;
    grid-template-columns: 180px minmax(320px, 900px) 180px;
    gap: 40px;
    max-width: 1400px;
    margin: 0 auto;
    padding: var(--space-xl);
    min-height: 100vh;
}

/* Ad Columns */
.ad-column {
    position: sticky;
    top: var(--space-xl);
    height: fit-content;
    display: flex;
    flex-direction: column;
    gap: var(--space-lg);
}

/* Main Content */
.main-content {
    display: flex;
    flex-direction: column;
    gap: var(--space-3xl);
}

/* ============================================
   HERO SECTION
   ============================================ */

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

.hero__badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    background: var(--text-primary);
    color: var(--cream-light);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: var(--space-xl);
}

.pulse-dot {
    width: 8px;
    height: 8px;
    background: #EF4444;
    border-radius: 50%;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(1.2); }
}

.hero__headline {
    font-family: var(--font-display);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 700;
    line-height: 1.1;
    margin-bottom: var(--space-lg);
    color: var(--text-primary);
}

.hero__headline .highlight {
    color: var(--green-base);
}

.hero__subheadline {
    font-size: 1.125rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

/* Countdown Timer */
.countdown {
    margin-bottom: var(--space-xl);
}

.countdown__label {
    display: block;
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

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

.countdown__block {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: var(--cream-base);
    padding: var(--space-md) var(--space-lg);
    border-radius: var(--radius-md);
    min-width: 70px;
}

.countdown__number {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1;
}

.countdown__unit {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.countdown__separator {
    font-family: var(--font-mono);
    font-size: 2rem;
    font-weight: 700;
    color: var(--text-muted);
}

/* Countdown Urgency States */
.countdown--warning .countdown__number {
    color: #EAB308;
}

.countdown--critical .countdown__number {
    color: #EF4444;
    animation: pulse 1s infinite;
}

/* Hero CTA */
.hero__cta {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
}

.hero__cta-note {
    font-size: 0.875rem;
    color: var(--text-muted);
}

/* ============================================
   BUTTONS
   ============================================ */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: var(--space-md) var(--space-xl);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: all 0.2s ease;
}

.btn--primary {
    background: var(--green-base);
    color: white;
}

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

.btn--secondary {
    background: var(--cream-base);
    color: var(--text-primary);
    border: 2px solid var(--cream-dark);
}

.btn--secondary:hover {
    border-color: var(--green-base);
    color: var(--green-dark);
}

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

/* ============================================
   STAKES SECTION
   ============================================ */

.stakes {
    background: var(--cream-base);
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
}

.section-label {
    display: block;
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-lg);
}

.stakes__content {
    font-size: 1.125rem;
    line-height: 1.8;
    margin-bottom: var(--space-xl);
}

.stakes__content p {
    margin-bottom: var(--space-md);
}

.stakes__content strong {
    color: var(--green-dark);
}

.budget-pills {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-sm);
}

.budget-pill {
    display: inline-flex;
    align-items: center;
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    font-weight: 500;
}

.budget-pill--spent {
    background: #FEE2E2;
    color: #991B1B;
}

.budget-pill--left {
    background: #DCFCE7;
    color: #166534;
}

.budget-pill--ads {
    background: #FEF3C7;
    color: #92400E;
}

/* ============================================
   APPS SECTION
   ============================================ */

.apps__header {
    text-align: center;
    margin-bottom: var(--space-lg);
}

.section-title {
    font-family: var(--font-display);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.section-subtitle {
    color: var(--text-secondary);
}

.apps__score {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: var(--space-md);
    padding: var(--space-md);
    background: var(--cream-base);
    border-radius: var(--radius-md);
    font-family: var(--font-mono);
    font-size: 0.875rem;
    margin-bottom: var(--space-xl);
}

.apps__divider {
    color: var(--text-muted);
}

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

/* App Cards */
.app-card {
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: var(--space-xl);
    background: var(--cream-base);
    border-radius: var(--radius-lg);
    text-align: center;
    transition: all 0.3s ease;
}

.app-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-hover);
}

.app-card__number {
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.app-card__name {
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.app-card__status {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-bottom: var(--space-md);
}

.app-card__btn {
    background: transparent;
    border: 2px solid var(--green-base);
    color: var(--green-base);
    padding: var(--space-sm) var(--space-md);
    border-radius: var(--radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

.app-card__btn:hover {
    background: var(--green-base);
    color: white;
}

/* App Card States */
.app-card--locked {
    border: 2px dashed var(--cream-dark);
}

.app-card--locked .app-card__name {
    color: var(--text-muted);
}

.app-card--locked::before {
    content: "🔒";
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.app-card--building {
    border: 2px dashed var(--green-base);
    animation: building-pulse 2s infinite;
}

@keyframes building-pulse {
    0%, 100% { border-color: var(--green-base); }
    50% { border-color: var(--green-muted); }
}

.app-card--building::before {
    content: "🔧";
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.app-card--live {
    border: 2px solid var(--green-base);
    box-shadow: var(--shadow-hover);
}

.app-card--live::before {
    content: "✅";
    font-size: 2rem;
    margin-bottom: var(--space-sm);
}

.app-card__earned {
    font-family: var(--font-mono);
    font-size: 1rem;
    color: var(--green-dark);
    font-weight: 600;
}

/* ============================================
   EMAIL CAPTURE SECTION
   ============================================ */

.email-capture {
    padding: var(--space-3xl) 0;
}

.email-capture__box {
    background: var(--green-base);
    color: white;
    padding: var(--space-2xl);
    border-radius: var(--radius-xl);
    text-align: center;
}

.email-capture__headline {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
}

.email-capture__subtext {
    opacity: 0.9;
    margin-bottom: var(--space-xl);
}

.email-capture__form {
    display: flex;
    gap: var(--space-sm);
    max-width: 450px;
    margin: 0 auto var(--space-md);
}

.email-capture__input {
    flex: 1;
    padding: var(--space-md);
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
}

.email-capture__input:focus {
    outline: 3px solid var(--green-pop);
    outline-offset: 2px;
}

.email-capture__form .btn--primary {
    background: var(--text-primary);
}

.email-capture__form .btn--primary:hover {
    background: #333;
}

.email-capture__counter {
    font-size: 0.875rem;
    opacity: 0.8;
}

/* ============================================
   SOCIAL PROOF SECTION
   ============================================ */

.social-proof {
    text-align: center;
    padding: var(--space-xl) 0;
}

.social-proof__headline {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.social-proof__text {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: var(--space-lg);
    flex-wrap: wrap;
}

.social-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-sm);
    padding: var(--space-md);
    background: var(--cream-base);
    border-radius: var(--radius-md);
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s ease;
    min-width: 100px;
}

.social-link:hover {
    background: var(--cream-dark);
    transform: translateY(-2px);
}

.social-link__icon {
    width: 24px;
    height: 24px;
}

/* ============================================
   SUPPORT SECTION
   ============================================ */

.support {
    text-align: center;
    padding: var(--space-xl);
    background: var(--cream-base);
    border-radius: var(--radius-xl);
}

.support__headline {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.support__text {
    color: var(--text-secondary);
    margin-bottom: var(--space-lg);
}

/* ============================================
   FOUNDER CTA SECTION
   ============================================ */

.founder-cta {
    text-align: center;
    padding: var(--space-lg);
    border: 2px dashed var(--green-muted);
    border-radius: var(--radius-lg);
    color: var(--text-secondary);
}

.founder-cta strong {
    color: var(--green-dark);
}

/* ============================================
   SPONSOR SLOTS
   ============================================ */

.sponsor-slot {
    display: flex;
    flex-direction: column;
    padding: var(--space-md);
    background: transparent;
    border-radius: var(--radius-md);
    text-align: center;
    border: 1px dashed var(--text-muted);
    transition: all 0.2s ease;
    opacity: 0.5;
}

.sponsor-slot:hover {
    opacity: 0.8;
    border-color: var(--text-secondary);
}

.sponsor-slot__label {
    font-size: 0.625rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.sponsor-slot__content {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-bottom: var(--space-md);
}

.sponsor-slot__cta-text {
    font-size: 0.75rem;
    color: var(--text-muted);
    margin-bottom: var(--space-xs);
}

.sponsor-slot__price {
    display: none;
}

.sponsor-slot__btn {
    display: block;
    padding: var(--space-sm);
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 500;
    border: 1px dashed var(--text-muted);
    transition: all 0.2s ease;
}

.sponsor-slot__btn:hover {
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

.sponsor-slot__note {
    font-size: 0.625rem;
    color: var(--text-muted);
    margin-top: var(--space-sm);
}

/* Claimed Slot - Active sponsor */
.sponsor-slot--claimed {
    background: var(--cream-base);
    border: 2px solid var(--green-base);
    border-style: solid;
    opacity: 1;
}

.sponsor-slot--claimed:hover {
    opacity: 1;
    box-shadow: var(--shadow-hover);
}

.sponsor-slot--claimed .sponsor-slot__badge {
    background: var(--green-base);
    color: white;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    margin-bottom: var(--space-sm);
}

.sponsor-slot--claimed .sponsor-slot__btn {
    background: var(--green-base);
    color: white;
    border: none;
}

.sponsor-slot--claimed .sponsor-slot__btn:hover {
    background: var(--green-dark);
}

/* Affiliate Slot - Tool I use */
.sponsor-slot--affiliate {
    background: var(--cream-base);
    border: 1px solid var(--cream-dark);
    border-style: solid;
    opacity: 0.8;
}

.sponsor-slot--affiliate:hover {
    opacity: 1;
}

.sponsor-slot--affiliate .sponsor-slot__badge {
    display: inline-block;
    background: #FEF3C7;
    color: #92400E;
    padding: var(--space-xs) var(--space-sm);
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 700;
    margin-bottom: var(--space-sm);
}

.sponsor-slot--affiliate .sponsor-slot__btn {
    background: var(--cream-dark);
    color: var(--text-primary);
    border: none;
}

.sponsor-slot--affiliate .sponsor-slot__btn:hover {
    background: var(--green-muted);
}

.sponsor-slot__name {
    font-weight: 700;
    font-size: 0.875rem;
    margin-bottom: var(--space-xs);
    color: var(--text-primary);
}

.sponsor-slot__testimonial {
    font-size: 0.75rem;
    color: var(--text-muted);
    font-style: italic;
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
    text-align: center;
    padding: var(--space-xl) 0;
    border-top: 1px solid var(--cream-dark);
}

.footer__main {
    color: var(--text-muted);
    font-size: 0.875rem;
    margin-bottom: var(--space-sm);
}

.footer__easter {
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.6;
}

.footer__link {
    color: var(--green-base);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.footer__link:hover {
    color: var(--green-dark);
    text-decoration: underline;
}

/* ============================================
   MOBILE STICKY CTA
   ============================================ */

.mobile-sticky-cta {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    padding: var(--space-md);
    background: var(--cream-light);
    border-top: 1px solid var(--cream-dark);
    justify-content: space-between;
    align-items: center;
    z-index: 100;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
}

.mobile-sticky-cta span {
    font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

/* Tablet */
@media (max-width: 1200px) {
    .page-wrapper {
        grid-template-columns: 1fr;
        max-width: 700px;
    }

    .ad-column {
        display: none;
    }

    .apps__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Mobile */
@media (max-width: 768px) {
    .page-wrapper {
        padding: var(--space-md);
        gap: var(--space-xl);
    }

    .hero__headline {
        font-size: 1.75rem;
    }

    .countdown__timer {
        flex-wrap: wrap;
    }

    .countdown__block {
        min-width: 60px;
        padding: var(--space-sm) var(--space-md);
    }

    .countdown__number {
        font-size: 1.5rem;
    }

    .apps__grid {
        grid-template-columns: 1fr;
    }

    .apps__score {
        flex-direction: column;
        gap: var(--space-sm);
    }

    .apps__divider {
        display: none;
    }

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

    .social-links {
        gap: var(--space-md);
    }

    .social-link {
        min-width: 80px;
    }

    .budget-pills {
        flex-direction: column;
    }

    .mobile-sticky-cta {
        display: flex;
    }

    .main-content {
        padding-bottom: 80px;
    }

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

    .email-capture__box {
        padding: var(--space-lg);
    }
}

/* Small Mobile */
@media (max-width: 480px) {
    .hero__headline {
        font-size: 1.5rem;
    }

    .section-title {
        font-size: 1.5rem;
    }

    .countdown__separator {
        display: none;
    }

    .countdown__timer {
        gap: var(--space-xs);
    }
}

/* ============================================
   DARK MODE
   ============================================ */

[data-theme="dark"] {
    --cream-light: #0F0F0F;
    --cream-base: #1A1A1A;
    --cream-dark: #2A2A2A;

    --text-primary: #F5F5F5;
    --text-secondary: #A3A3A3;
    --text-muted: #737373;

    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.3);
    --shadow-hover: 0 8px 30px rgba(34, 197, 94, 0.2);
}

[data-theme="dark"] .hero__badge {
    background: var(--cream-dark);
    color: var(--text-primary);
}

[data-theme="dark"] .budget-pill--spent {
    background: #3B1515;
    color: #FCA5A5;
}

[data-theme="dark"] .budget-pill--left {
    background: #14532D;
    color: #86EFAC;
}

[data-theme="dark"] .budget-pill--ads {
    background: #422006;
    color: #FCD34D;
}

[data-theme="dark"] .sponsor-slot--affiliate .sponsor-slot__badge {
    background: #422006;
    color: #FCD34D;
}

[data-theme="dark"] .mobile-sticky-cta {
    background: var(--cream-base);
    border-color: var(--cream-dark);
}

[data-theme="dark"] .popup {
    background: var(--cream-base);
}

[data-theme="dark"] .popup__input {
    background: var(--cream-dark);
    color: var(--text-primary);
    border: 1px solid var(--cream-dark);
}

/* ============================================
   THEME TOGGLE
   ============================================ */

.theme-toggle {
    position: fixed;
    top: var(--space-lg);
    right: var(--space-lg);
    z-index: 1000;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--cream-base);
    border: 2px solid var(--cream-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.theme-toggle:hover {
    border-color: var(--green-base);
    transform: scale(1.05);
}

.theme-toggle__icon {
    width: 20px;
    height: 20px;
    color: var(--text-primary);
}

.theme-toggle__icon--moon {
    display: none;
}

[data-theme="dark"] .theme-toggle__icon--sun {
    display: none;
}

[data-theme="dark"] .theme-toggle__icon--moon {
    display: block;
}

/* ============================================
   FLOATING COFFEE BUTTON
   ============================================ */

.floating-coffee {
    position: fixed;
    bottom: var(--space-xl);
    right: var(--space-xl);
    z-index: 100;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: var(--green-base);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: var(--shadow-hover);
    transition: all 0.3s ease;
    animation: float 3s ease-in-out infinite;
}

.floating-coffee:hover {
    background: var(--green-dark);
    transform: scale(1.1);
}

.floating-coffee__icon {
    font-size: 1.5rem;
}

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

@media (max-width: 768px) {
    .floating-coffee {
        bottom: 90px;
        right: var(--space-md);
        width: 48px;
        height: 48px;
    }

    .floating-coffee__icon {
        font-size: 1.25rem;
    }
}

/* ============================================
   POPUPS
   ============================================ */

.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.6);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    padding: var(--space-md);
}

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

.popup {
    background: var(--cream-light);
    border-radius: var(--radius-xl);
    max-width: 450px;
    width: 100%;
    position: relative;
    transform: scale(0.9) translateY(20px);
    transition: all 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
}

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

.popup__close {
    position: absolute;
    top: var(--space-md);
    right: var(--space-md);
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--cream-base);
    border: none;
    cursor: pointer;
    font-size: 1.25rem;
    color: var(--text-muted);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
}

.popup__close:hover {
    background: var(--cream-dark);
    color: var(--text-primary);
}

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

.popup__emoji {
    font-size: 3rem;
    display: block;
    margin-bottom: var(--space-md);
}

.popup__headline {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: var(--space-md);
    color: var(--text-primary);
}

.popup__subtext {
    color: var(--text-secondary);
    margin-bottom: var(--space-xl);
}

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

.popup__input {
    padding: var(--space-md);
    border: 2px solid var(--cream-dark);
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-family: var(--font-body);
    text-align: center;
    transition: all 0.2s ease;
}

.popup__input:focus {
    outline: none;
    border-color: var(--green-base);
}

.popup__note {
    font-size: 0.875rem;
    color: var(--text-muted);
    margin-top: var(--space-md);
    display: block;
}

.popup--coffee .popup__content {
    background: linear-gradient(135deg, var(--cream-light), var(--cream-base));
    border-radius: var(--radius-xl);
}

/* ============================================
   COUNTDOWN APP NAME
   ============================================ */

.countdown__app-name {
    display: block;
    font-family: var(--font-display);
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--green-base);
    margin-bottom: var(--space-md);
}

/* ============================================
   SPONSOR CARDS - FLIP ANIMATION
   ============================================ */

.sponsor-card {
    perspective: 1000px;
    height: 160px;
}

.sponsor-card__flipper {
    position: relative;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
    transform-style: preserve-3d;
    animation: flipCard 20s infinite;
}

@keyframes flipCard {
    0%, 45% {
        transform: rotateY(0deg);
    }
    50%, 95% {
        transform: rotateY(180deg);
    }
    100% {
        transform: rotateY(360deg);
    }
}

.sponsor-card__face {
    position: absolute;
    width: 100%;
    height: 100%;
    backface-visibility: hidden;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: var(--space-md);
    background: transparent;
    border: 1px dashed var(--text-muted);
    border-radius: var(--radius-md);
    opacity: 0.5;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.sponsor-card__face:hover {
    opacity: 0.8;
    border-color: var(--text-secondary);
}

.sponsor-card__face--back {
    transform: rotateY(180deg);
}

.sponsor-card__icon {
    width: 32px;
    height: 32px;
    color: var(--text-muted);
    margin-bottom: var(--space-sm);
}

.sponsor-card__text {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    margin-bottom: var(--space-sm);
}

.sponsor-card__btn {
    display: inline-block;
    padding: var(--space-xs) var(--space-sm);
    background: transparent;
    color: var(--text-muted);
    text-decoration: none;
    border-radius: var(--radius-sm);
    font-size: 0.625rem;
    font-weight: 500;
    border: 1px dashed var(--text-muted);
    transition: all 0.2s ease;
}

.sponsor-card__btn:hover {
    color: var(--text-secondary);
    border-color: var(--text-secondary);
}

/* Fixed Sponsor Cards (no flip) */
.sponsor-card--fixed {
    perspective: none;
}

.sponsor-card--fixed .sponsor-card__content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
    padding: var(--space-md);
    background: transparent;
    border: 1px dashed var(--text-muted);
    border-radius: var(--radius-md);
    opacity: 0.5;
    transition: opacity 0.2s ease, border-color 0.2s ease;
}

.sponsor-card--fixed .sponsor-card__content:hover {
    opacity: 0.8;
    border-color: var(--text-secondary);
}

/* Claimed Sponsor Cards */
.sponsor-card--claimed .sponsor-card__content,
.sponsor-card--claimed .sponsor-card__face {
    background: var(--cream-base);
    border: 2px solid var(--green-base);
    border-style: solid;
    opacity: 1;
}

.sponsor-card--claimed .sponsor-card__content:hover,
.sponsor-card--claimed .sponsor-card__face:hover {
    opacity: 1;
    box-shadow: var(--shadow-hover);
}

.sponsor-card__logo {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: var(--space-xs);
}

.sponsor-card__tagline {
    font-size: 0.75rem;
    color: var(--text-secondary);
    margin-bottom: var(--space-sm);
}

.sponsor-card--claimed .sponsor-card__btn {
    background: var(--green-base);
    color: white;
    border: none;
    padding: var(--space-sm) var(--space-md);
}

.sponsor-card--claimed .sponsor-card__btn:hover {
    background: var(--green-dark);
}

/* ============================================
   MOBILE SPONSOR TICKER (Marc Lou style)
   ============================================ */

.sponsor-ticker {
    display: none;
    position: fixed;
    left: 0;
    right: 0;
    background: var(--cream-base);
    padding: var(--space-xs) 0;
    z-index: 99;
    overflow: hidden;
}

.sponsor-ticker--top {
    top: 0;
    border-bottom: 1px solid var(--cream-dark);
}

.sponsor-ticker--bottom {
    bottom: 60px;
    border-top: 1px solid var(--cream-dark);
}

/* Fixed pinned spot */
.sponsor-ticker__pinned {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    display: flex;
    align-items: center;
    padding: 0 var(--space-md);
    background: var(--green-base);
    color: white;
    font-size: 0.7rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    z-index: 2;
    box-shadow: 2px 0 8px rgba(0,0,0,0.1);
}

.sponsor-ticker__pinned--right {
    left: auto;
    right: 0;
    box-shadow: -2px 0 8px rgba(0,0,0,0.1);
}

/* Scrolling container */
.sponsor-ticker__scroll {
    overflow: hidden;
    padding-left: 80px;
}

.sponsor-ticker--bottom .sponsor-ticker__scroll {
    padding-left: 0;
    padding-right: 80px;
}

.sponsor-ticker__track {
    display: flex;
    gap: var(--space-xl);
    animation: tickerScroll 15s linear infinite;
    width: max-content;
}

.sponsor-ticker__track--reverse {
    animation: tickerScrollReverse 15s linear infinite;
}

@keyframes tickerScroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

@keyframes tickerScrollReverse {
    0% {
        transform: translateX(-50%);
    }
    100% {
        transform: translateX(0);
    }
}

.sponsor-ticker__item {
    display: flex;
    align-items: center;
    padding: var(--space-xs) var(--space-md);
    white-space: nowrap;
    font-size: 0.75rem;
    color: var(--text-muted);
    opacity: 0.5;
}

/* Show ticker on mobile/tablet, hide ad columns */
@media (max-width: 1200px) {
    .sponsor-ticker {
        display: block;
    }

    body {
        padding-top: 32px;
    }
}

@media (max-width: 768px) {
    .sponsor-ticker--bottom {
        bottom: 60px;
    }

    .main-content {
        padding-bottom: 120px;
    }

    .theme-toggle {
        top: 40px;
    }
}
