/* Mobile-First Design & Global Reset */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box; /* Cleaned this up! */
}

:root {
    --primary-blue: #0066ff;   /* Brighter, more "tech" blue */
    --patto-orange: #ff7c01;
    --patto-green: #048944;
    --light-bg: #f5f7f9;       /* Slightly cooler grey */
    --border-color: #e2e8f0;
    --text-dark: #0f172a;      /* Deep navy instead of black */
    --text-muted: #64748b;
    --card-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
}

body {
    /* Using Inter or system-ui for that clean Mac look */
    font-family: 'Inter', system-ui, -apple-system, sans-serif;
    -webkit-font-smoothing: antialiased;
    background-color: #ffffff;
}

/* --- Layout & Alignment (The Gap Killer) --- */
main {
    display: block;
    overflow: hidden; 
    width: 100%;
    margin: 0;
}

/* Keep the Hero wide, but the content inside centered */
.hero, .domain-hero {
    width: 100%;
    margin-top: 0 !important;
    padding: 60px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

/* Standardization for interior containers */
.container {
    max-width: 1200px;
    margin: 0 auto;
}

/* --- Pricing Section (Combined & Cleaned) --- */
.pricing-header {
    text-align: center;
    padding: 60px 20px;
    background-color: var(--light-bg);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 25px;
    max-width: 1200px;
    margin: -50px auto 50px; 
    padding: 0 20px;
}

.pricing-card {
    background: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(10px); /* Glass effect */
    border: 1px solid rgba(224, 224, 224, 0.5);
    box-shadow: 0 4px 6px rgba(0,0,0,0.02);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
}

.pricing-card ul li {
    font-size: 0.85rem; /* Slightly smaller text to fit the narrower box */
    white-space: nowrap; /* Prevents text from wrapping to a second line */
}

.pricing-card:hover {
    transform: translateY(-15px) scale(1.02) !important;
    box-shadow: 0 30px 60px rgba(0,0,0,0.12) !important;
}

.pricing-card:hover .heart-beat {
    animation: heart-throb 0.6s infinite; /* Heart races when hovered! */
}

.pricing-card:hover .plan-select-btn[style*="background: rgb(0, 255, 148)"] .cursor {
    color: #000;
}

.pricing-card.recommended {
    border: 2px solid var(--patto-orange);
    transform: scale(1.05);
    z-index: 10;
}

.price {
    font-size: 2.8rem;
    font-weight: 700;
    color: var(--primary-blue);
    margin: 15px 0;
}

.price-value {
    transition: opacity 0.2s ease-in-out;
}
.price-updating {
    opacity: 0;
}

.features-list {
    list-style: none;
    padding: 20px 0;
    text-align: left;
}

.features-list li {
    padding: 10px 0;
    border-bottom: 1px dashed var(--border-color);
    color: var(--text-muted);
}

/* --- Cart & Buttons --- */
.cart-button {
    background-color: var(--patto-orange);
    color: white !important;
    padding: 8px 20px !important;
    border-radius: 50px;
    font-weight: 700;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.cart-button.has-items {
    background-color: var(--patto-green);
    animation: pulse-green 2s infinite;
}

@keyframes pulse-green {
    0% { box-shadow: 0 0 0 0 rgba(4, 137, 68, 0.4); }
    70% { box-shadow: 0 0 0 10px rgba(4, 137, 68, 0); }
    100% { box-shadow: 0 0 0 0 rgba(4, 137, 68, 0); }
}

/* --- Responsive Media Queries --- */
@media (max-width: 768px) {
    .pricing-grid { margin-top: 20px; }
    .hero h1 { font-size: 1.8rem; }
    .cart-button { margin-top: 10px; justify-content: center; }
}

/* --- Modern Tight FAQ --- */
.faq-section {
    padding-top: 80px;
    padding-bottom: 80px;
}

.faq-container {
    background: transparent; /* Removed the heavy white box background */
    max-width: 800px; /* Tighter width for better readability on iMac */
    margin: 0 auto;
}

.faq-item {
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 0; /* Tightened up */
    transition: background 0.3s ease;
}

.faq-item:hover {
    background-color: rgba(245, 247, 249, 0.5); /* Subtle Mac-style hover */
}

.faq-question {
    width: 100%;
    padding: 24px 10px; /* Tighter side padding */
    background: none;
    border: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-size: 1.05rem;
    font-weight: 600;
    color: var(--text-dark);
    cursor: pointer;
    text-align: left;
    font-family: 'Inter', sans-serif;
}

.faq-icon {
    font-size: 1.2rem;
    color: var(--text-muted);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), color 0.3s;
    font-weight: 300;
}

/* When active: Rotate icon and change color */
.faq-item.active .faq-icon {
    transform: rotate(45deg);
    color: var(--patto-orange);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: 0fr; /* Closed state */
    transition: grid-template-rows 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.faq-item.active .faq-answer {
    max-height: 500px; /* Large enough for any answer */
    opacity: 1;
}

.faq-answer-content {
    padding: 0 10px 30px 10px;
    line-height: 1.7;
    color: var(--text-muted);
    font-size: 0.95rem;
    overflow: hidden;
    min-height: 0; 
}


/* Safari-specific Search Input Clean-up */
input[type="text"] {
    -webkit-appearance: none;
    appearance: none;
}

#faqSearch:focus {
    border-color: #440872;
    box-shadow: 0 0 0 4px rgba(68, 8, 114, 0.1);
}



/* --- Help Center Search Bar --- */
.search-wrapper {
    position: relative;
    max-width: 600px;
    margin: 0 auto 40px;
}

.search-icon {
    position: absolute;
    left: 20px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--text-muted);
    font-size: 1.1rem;
}

#faqSearch {
    width: 100%;
    padding: 16px 20px 16px 55px;
    border-radius: 50px;
    border: 1px solid var(--border-color);
    background: var(--light-bg);
    font-family: 'Inter', sans-serif;
    font-size: 1rem;
    transition: all 0.3s ease;
    outline: none;
}

#faqSearch:focus {
    background: #fff;
    border-color: var(--primary-blue);
    box-shadow: 0 0 0 4px rgba(0, 102, 255, 0.1);
}

/* --- FAQ Layout Fixes --- */
.faq-container {
    max-width: 850px; /* Tighter than the main container for readability */
    margin: 0 auto;
}

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

.faq-question {
    display: flex;
    width: 100%;
    justify-content: space-between;
    align-items: center;
    padding: 25px 10px;
    border: none;
    background: none;
    cursor: pointer;
    transition: background 0.2s;
}

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

.question-text {
    font-size: 1.1rem;
    font-weight: 600;
    color: var(--text-dark);
    font-family: 'Inter', sans-serif;
}

.faq-icon {
    font-size: 1.5rem;
    color: var(--patto-orange);
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* --- The Safari-Proof Animation --- */
.faq-answer {
    display: grid;
    grid-template-rows: 0fr; /* Safari loves grid transitions more than max-height */
    transition: grid-template-rows 0.3s ease-out, opacity 0.3s ease-out;
    overflow: hidden;
    opacity: 0;
}

.faq-item.active .faq-answer {
    grid-template-rows: 1fr;
    opacity: 1;
}

.faq-answer-content {
    min-height: 0; /* Required for the grid trick */
    padding: 0 10px 30px 10px;
    line-height: 1.6;
    color: var(--text-muted);
}

.faq-item.active .faq-icon {
    transform: rotate(45deg); /* Turns + into x */
}



/* Add this to your <style> section for a cleaner table */
.feature-group tr[onclick] {
    transition: background 0.2s ease;
}

.feature-group tr[onclick]:hover {
    background: #fff0e6 !important; /* Slightly deeper tint on hover */
}

.feature-row td {
    color: #4a5568;
    font-size: 0.95rem;
}

table {
    font-size: 0.9rem;
}
.feature-group td {
    padding: 12px 15px !important; /* Slightly less padding for a tighter look */
}

/* --- Logo Circle Fix --- */
.logo-container {
    border-radius: 50%; /* Helps keep the "hit area" rounded */
    text-decoration: none !important;
    outline: none !important;
    background: transparent !important;
    border: none !important;
}

.logo-container:focus, 
.logo-container:active {
    outline: none !important;
    box-shadow: none !important;
}

/* Ensure the glow is a perfect circle regardless of container height */
.logo-glow {
    border-radius: 50% !important;
    aspect-ratio: 1 / 1;
}

/* --- High-End Mesh Hero --- */
.hero {
    position: relative;
    width: 100%;
    min-height: 85vh;
    padding: 120px 20px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    background-color: #0f172a; /* Your --text-dark variable */
    /* The modern "Aurora" effect */
    background-image: 
        radial-gradient(at 0% 0%, rgba(255, 124, 1, 0.15) 0px, transparent 50%),
        radial-gradient(at 100% 0%, rgba(0, 102, 255, 0.15) 0px, transparent 50%),
        radial-gradient(at 50% 100%, rgba(4, 137, 68, 0.1) 0px, transparent 50%);
    overflow: hidden;
}

/* The "Coder Grid" Overlay */
.hero::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(255,255,255,0.03) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,0.03) 1px, transparent 1px);
    background-size: 40px 40px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
}

.hero-badge {
    background: rgba(255, 124, 1, 0.1);
    border: 1px solid rgba(255, 124, 1, 0.3);
    color: var(--patto-orange);
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 20px;
}

.hero h1 {
    font-family: 'Montserrat', sans-serif;
    font-weight: 800;
    font-size: clamp(2.5rem, 6vw, 4.5rem); /* Responsive sizing for Mac & iPhone */
    line-height: 1.1;
    letter-spacing: -2px;
    margin-bottom: 20px;
}

.hero-subtitle {
    color: var(--text-muted);
    font-size: 1.2rem;
    max-width: 650px;
    line-height: 1.6;
    margin-bottom: 40px;
}

.hero-cyber {
    background: #04203d !important;
    color: white !important;
    padding: 120px 0 !important;
    text-align: center !important;
    width: 100vw !important;
    position: relative !important;
    left: 50% !important;
    right: 50% !important;
    margin-left: -50vw !important;
    margin-right: -50vw !important;
    box-sizing: border-box !important;
    overflow: hidden !important;
}

/* The "Cyber Grid" Overlay */
.hero-cyber::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-image: 
        linear-gradient(rgba(4, 175, 174, 0.1) 1px, transparent 1px),
        linear-gradient(90deg, rgba(4, 175, 174, 0.1) 1px, transparent 1px);
    background-size: 50px 50px;
    mask-image: radial-gradient(circle at center, black, transparent 80%);
    -webkit-mask-image: radial-gradient(circle at center, black, transparent 80%);
    pointer-events: none;
}



#backToTop {
    position: fixed;
    bottom: 30px;
    right: 30px;
    display: none; /* Logic shows this as flex */
    
    /* Force Solid Colors */
    background-color: #440872 !important; 
    color: #ffffff !important;
    opacity: 1 !important;
    
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 1000;
    box-shadow: 0 4px 15px rgba(0,0,0,0.3);
    
    /* Layout */
    font-size: 1.2rem;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    
    /* Animation */
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* Hover remains orange as you liked */
#backToTop:hover {
    transform: translateY(-5px) scale(1.1);
    background-color: #ff6b35 !important; 
    box-shadow: 0 8px 25px rgba(255, 107, 53, 0.5);
}


.cursor {
    color: #04afae;
    animation: blink 1s infinite;
    font-weight: 400;
}

@keyframes blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0; }
}

/* The base state of the button */
.btn-deploy {
    background: #ff6b35 !important; 
    color: white !important; 
    padding: 18px 40px !important; 
    border-radius: 8px !important; 
    text-decoration: none !important; 
    font-weight: bold !important; 
    font-size: 1.1rem !important; 
    transition: all 0.3s ease !important;
    display: inline-block !important;
    box-shadow: 0 4px 15px rgba(255, 107, 53, 0.4) !important;
}

.btn-deploy:hover {
    transform: translateY(-3px) !important;
    background: #ff7e4d !important;
    box-shadow: 0 0 20px rgba(255, 107, 53, 0.8), 0 0 40px rgba(255, 107, 53, 0.3) !important;
    color: white;
}

/* Kill the gap between content and footer */
#features + section, 
section:last-of-type {
    margin-bottom: 0 !important;
    padding-bottom: 60px !important; /* Adjust this to control how close the button is to the footer */
}

/* Force the wrapper to have no extra space */
.container, main, body {
    margin-bottom: 0 !important;
}


.cookie-card {
    background: rgba(255, 255, 255, 0.95); /* Slightly less transparent for clarity */
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 20px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.2);
    padding: 24px;
    max-width: 400px; /* Reduced width for better Mac/Mobile fit */
    margin-left: auto;
    display: flex; /* ADD THIS */
    flex-direction: column; /* ADD THIS */
}


