/* Base styles */
:root {
    --accent: #673DE6;
    --accent-hover: #5025D1;
    --accent-soft: #8C71FF;
    --navy: #2f1c6a;
    --navy-light: #3b2580;
    --promo: #d6ff5f;
    --bg-soft: #f4f5f9;

    --bg-darker: #06060C;
    --text-primary: #FFFFFF;
    --text-secondary: #D1D5DB;
    --border-color: #2E2E46;
    --gradient-start: #120E2A;
    --gradient-end: #261B52;
}

body {
    font-family: 'Inter', sans-serif;
}

.dark body {
    background-color: var(--bg-dark);
    color: var(--text-primary);
}

/* Custom utilities */
.text-accent {
    color: var(--accent);
}

.bg-accent {
    background-color: var(--accent);
}

.hover\:bg-accent-hover:hover {
    background-color: var(--accent-hover);
}

/* Card shadow utilities */
.shadow-card {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
.shadow-soft {
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
}
@media (max-width: 767px) {
    .shadow-card,
    .shadow-soft {
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    }
}

/* =============================================
   MOBILE OPTIMIZATIONS (max-width: 767px)
   Only affects screens below Tailwind md breakpoint.
   Desktop layout remains completely untouched.
   ============================================= */
@media (max-width: 767px) {

    /* --- Global touch & text --- */
    html {
        -webkit-text-size-adjust: 100%;
        -webkit-tap-highlight-color: rgba(0, 0, 0, 0);
        scroll-padding-top: 140px;
        scroll-behavior: smooth;
        overflow-x: hidden;
    }

    body {
        overflow-x: hidden;
        -webkit-overflow-scrolling: touch;
        letter-spacing: -0.01em;
        max-width: 100%;
        font-size: 16px;
        /* Base size for readability */
    }

    /* --- Typography Scaling --- */
    h1:not([class*="text-["]) {
        font-size: 2.5rem !important;
        line-height: 1.15 !important;
        letter-spacing: -0.03em !important;
    }

    h2:not([class*="text-["]) {
        font-size: 1.75rem !important;
        line-height: 1.25 !important;
        letter-spacing: -0.02em !important;
    }

    h3:not([class*="text-["]) {
        font-size: 1.25rem !important;
        line-height: 1.35 !important;
    }

    p:not([class*="text-"]) {
        line-height: 1.6 !important;
        color: #4b5563;
    }

    /* --- Container & Spacing --- */
    .container {
        padding-left: 24px;
        /* More breathing room */
        padding-right: 24px;
    }

    section:not([class*="py-"]) {
        padding-top: 3rem;
        padding-bottom: 3rem;
    }

    /* --- Smooth transitions for all interactive elements --- */
    a,
    button {
        -webkit-tap-highlight-color: transparent;
        touch-action: manipulation;
        transition: transform 0.15s ease, opacity 0.15s ease, background-color 0.2s ease;
    }

    /* Ensure CTA buttons have proper touch targets */
    a[href*="hostinger"],
    a[href^="#"],
    .plan-tab,
    button[onclick] {
        min-height: 44px;
    }

    /* Active state feedback */
    .active\:scale-95:active {
        transform: scale(0.96);
    }

    /* --- Cards & Visuals --- */
    .plan-panel .rounded-2xl,
    section > .container .rounded-2xl {
        border-radius: 24px !important;
        /* Softer corners on cards only */
    }



    /* --- Prose overrides --- */
    .prose {
        font-size: 1rem;
    }

    /* --- Form Elements --- */
    input,
    select,
    textarea {
        font-size: 16px !important;
        /* No zoom */
        padding: 14px 16px !important;
        border-radius: 16px !important;
        height: auto !important;
    }

    /* --- Carousel specific --- */
    .plans-carousel-container {
        margin-right: -24px;
        /* Bleed to edge */
        padding-right: 24px;
        /* Compensate */
    }

    .swiper {
        padding-right: 24px !important;
        /* Peek effect */
    }

}

/* --- Mobile Menu (Up to 1023px to match lg:hidden) --- */
@media (max-width: 1023px) {
    #mobile-menu {
        position: fixed !important;
        top: 0 !important;
        left: 0 !important;
        right: 0 !important;
        bottom: 0 !important;
        width: 100% !important;
        height: 100% !important;
        z-index: 99999 !important;
        background-color: #ffffff !important;
        opacity: 1 !important;
        transform: translateX(100%);
        transition: transform 0.3s ease-out;
        display: flex;
        flex-direction: column;
        align-items: center;
        justify-content: center;
    }

    #mobile-menu.active {
        transform: translateX(0) !important;
    }
}

/* === Scroll Reveal Animations === */
[data-reveal] {
    opacity: 0;
    transform: translateY(24px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}
[data-reveal].revealed {
    opacity: 1;
    transform: translateY(0);
}
[data-reveal="left"] {
    transform: translateX(-24px);
}
[data-reveal="left"].revealed {
    transform: translateX(0);
}
[data-reveal="right"] {
    transform: translateX(24px);
}
[data-reveal="right"].revealed {
    transform: translateX(0);
}
[data-reveal="scale"] {
    transform: scale(0.95);
}
[data-reveal="scale"].revealed {
    transform: scale(1);
}
/* Staggered delays for cards */
[data-reveal-delay="1"] { transition-delay: 0.08s; }
[data-reveal-delay="2"] { transition-delay: 0.16s; }
[data-reveal-delay="3"] { transition-delay: 0.24s; }
[data-reveal-delay="4"] { transition-delay: 0.32s; }

/* === Tab scroll on mobile === */
@media (max-width: 767px) {
    .plan-tabs-wrap {
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
        scrollbar-width: none;
        -ms-overflow-style: none;
    }
    .plan-tabs-wrap::-webkit-scrollbar {
        display: none;
    }
}

/* === Scrollbar-hide utility === */
.scrollbar-hide {
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.scrollbar-hide::-webkit-scrollbar {
    display: none;
}

/* === CRO: Fade in up animation === */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: translateY(0); }
}
.animate-fade-in-up {
    animation: fadeInUp 0.5s ease-out both;
}

/* === FAQ details/summary === */
details summary::-webkit-details-marker { display: none; }
details summary { list-style: none; }
details[open] summary { border-bottom: 1px solid #f3f4f6; }

/* === CRO: Comparison table highlight column === */
.bg-accent\/5 { background-color: rgba(103, 61, 230, 0.05); }