:root {
    --bg-color: #f9fafb;
    --text-color: #111827; /* Darker text for max contrast */
    --text-color-muted: #374151;
    --accent-color: #D1352B; /* Darkened red for better contrast with white text */
    --accent-color-dark: #B91C1C; /* Darkened hover state */
    --card-bg: #ffffff;
    --card-border: #e5e7eb;
    --header-bg: #ffffff;
    --footer-bg: #121212;
    --footer-text: #e5e7eb;
    --link-hover-bg: #fef2f2;
    --section-bg-alt: #f9fafb;
    --semrush-color: #B94900; /* Darkened for AA contrast */
    --mangools-color: #157A66;
}
html, body {
    font-family: 'Inter', sans-serif;
    scroll-behavior: smooth;
}
body {
    background-color: var(--bg-color);
    color: var(--text-color);
    margin: 0;
    line-height: 1.6;
    font-size: 16px; /* Increased from 10px for better readability */
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    padding-top: 4rem; /* UPDATE: Increased to 4rem to match h-16 header height on mobile */
}
#main-header {
    position: fixed; /* Mobile-first: Fixed header */
    top: 0;
    left: 0;
    right: 0;
}
main {
    flex-grow: 1;
}

/* --- CLS Prevention for Client-Side Header Injection --- */
#index-header-placeholder,
#contact-header-placeholder {
    height: 0; /* Mobile: Header is fixed, space reserved by body padding-top */
    width: 100%;
}

@media (min-width: 640px) {
    body {
        padding-top: 0;
    }
    #main-header {
        position: sticky;
    }
    
    /* Desktop: Header is sticky (in flow), so placeholder must reserve exact space */
    #index-header-placeholder,
    #contact-header-placeholder {
        height: 4rem; /* Matches Tailwind h-16 (64px) */
        display: block;
    }
}

/* --- Hero Section --- */
.hero-section {
    text-align: center;
    padding: 1.5rem 1rem; /* Reduced padding */
    /* background-color: #fdfdff; */ /* Replaced with gradient */
    background: linear-gradient(180deg, #ffffff 0%, #fef2f2 100%); /* NEW light gradient */
    border-bottom: 1px solid var(--card-border);
}
.hero-icons {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-bottom: 0.75rem; /* Reduced margin */
}
.hero-icon-bg {
    background-color: #f3f4f6;
    border-radius: 9999px;
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hero-section h1 {
    font-size: 1.3rem; /* Reduced font size */
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-color);
    margin: 0;
}
.page-header-section h1 {
    font-size: 0.85rem; /* UPDATED: Significantly reduced from 1.0rem */
    font-weight: 800;
    line-height: 1.2;
    color: var(--text-color);
    margin: 0;
}
.hero-subtitle {
    font-size: 0.85rem; /* Slightly reduced font size */
    color: var(--text-color-muted);
    max-width: 600px;
    margin: 0.5rem auto 0 auto; /* Reduced margin */
}
.hero-meta {
    margin-top: 0.75rem; /* Reduced margin */
    font-size: 0.7rem;
    color: #6b7280;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.5rem;
    align-items: center;
}
/* End Hero Section */

.page-header-section {
    text-align: center;
    padding: 1rem; /* UNIFIED PADDING - Squeezed */
}


/* Reading Progress Bar Styles */
#progress-bar-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 4px;
    z-index: 1000;
}
#progress-bar {
    height: 100%;
    background-color: var(--accent-color);
    width: 0%;
    transition: width 0.1s linear;
}

/* The container is just for centering and providing a max-width boundary. */
.container {
    width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 1rem; /* Add some padding for smaller screens */
    box-sizing: border-box;
}

/* Updated logo slogan for higher contrast */
.header-logo-slogan {
    color: var(--text-color) !important;
    font-weight: 600;
}
.comparison-table th, .comparison-table td {
    font-size: 0.7rem;
    padding: 0.5rem;
}
.comparison-table tbody tr {
    transition: background-color: 0.2s ease-in-out;
}
.comparison-table tbody tr:hover {
    background-color: var(--link-hover-bg);
}
.comparison-table tbody tr td:nth-child(2) { /* Target the feature name column */
    font-weight: 600;
    font-size: calc(0.7rem + 1px); 
    color: var(--text-color);
}
.cta-button {
    display: block;
    padding: 0.375rem 0.875rem;
    border-radius: 0.375rem;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.875rem;
    transition: all 0.2s;
    width: 100%;
    text-align: center;
    margin-bottom: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1); 
}
.cta-button:last-child {
    margin-bottom: 0;
}

.cta-semrush {
    background-color: var(--semrush-color);
    color: white !important;
}
.cta-semrush:hover { background-color: #A34000; } 
.cta-mangools {
    background-color: var(--mangools-color);
    color: white !important;
}
.cta-mangools:hover { background-color: #126b56; } 
.quiz-option { 
    cursor: pointer; 
    transition: all 0.2s ease-in-out;
    background-color: #ffffff; /* Make options stand out */
    border: 1px solid #d1d5db; /* Add a visible border */
    width: 100%; /* Ensure buttons fill the grid cell */
    font-family: inherit; /* Inherit font from body */
    font-size: inherit; /* Inherit font size */
    color: inherit; /* Inherit text color */
}
.quiz-option:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.quiz-option.selected {
    background-color: var(--link-hover-bg);
    border-color: var(--accent-color);
    font-weight: 600;
}
.recommendation-card {
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    padding: 1.5rem;
    background-color: #fff;
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.star-rating { 
    color: #f59e0b; 
    white-space: nowrap;
}

/* Accessibility: Add a clear focus indicator for keyboard navigation */
a:focus-visible, button:focus-visible, details > summary:focus-visible {
    outline: 2px solid var(--accent-color);
    outline-offset: 2px;
    box-shadow: 0 0 0 4px rgba(227, 64, 55, 0.3);
    border-radius: 2px;
}

.legal-content {
    max-width: 1000px;
    margin: 1rem auto;
    /* background-color: var(--card-bg); */ /* Replaced with gradient */
    background: linear-gradient(180deg, #fdfdfd 0%, #f9f9f9 100%); /* NEW subtle gradient */
    padding: 0;
    border-radius: 0.5rem;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    border: 1px solid var(--card-border);
    overflow: hidden;
}
.legal-content a:not(.cta-button) {
    color: var(--accent-color);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid #fde2e1;
    transition: all 0.3s ease;
}
.legal-content a:not(.cta-button):hover {
    color: var(--accent-color-dark) !important; 
    background-color: var(--link-hover-bg) !important;
}

.headline-underline {
    display: inline-block;
    border-bottom: 4px solid var(--accent-color);
    padding-bottom: 0.25rem;
    line-height: 1.3;
}

.legal-content .section-wrapper, .legal-content .toc-box {
    margin-left: 1rem; /* Mobile-first margin */
    margin-right: 1rem; /* Mobile-first margin */
    padding: 1rem; /* Mobile-first padding */
}
.legal-content h2 {
    font-size: 0.9rem; /* Reduced font size */
    font-weight: 700;
    color: var(--text-color);
    margin-top: 0; /* Reduced margin */
    margin-bottom: 0.5rem; /* Reduced margin */
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 0.35rem; /* Reduced padding */
    text-align: center; /* Center the heading text */
}
.legal-content h3 {
    font-size: 0.8rem; /* Slightly reduced */
    font-weight: 700;
    color: var(--text-color);
    margin-top: 1rem; /* Reduced margin */
    margin-bottom: 0.4rem; /* Reduced margin */
}
.legal-content p:not(.hero-subtitle), .legal-content ul, .legal-content ol {
    color: var(--text-color-muted);
    margin-bottom: 0.75rem; /* Reduced margin */
    line-height: 1.55; /* Slightly reduced line height */
    font-size: 0.78rem; /* Slightly reduced */
}
.legal-content ul:not(.icon-list):not(.action-plan-list):not(.toc-list), .legal-content ol {
    padding-left: 1.1rem; /* Slightly reduced padding */
}
.section-wrapper {
    background-color: #ffffff;
    border-radius: 0.75rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    margin-bottom: 0.75rem; /* Reduced margin */
    /* border-left: 4px solid var(--mangools-color); */ /* REPLACED */
    border: 2px solid var(--mangools-color); /* NEW - Border on all sides */
    padding: 1.25rem; /* Unified padding */
    /* padding-left: 1.5rem; */ /* REMOVED */
}
/* NEW: Hero Image Section Styles */
#hero-image-section {
    padding: 0; /* Remove padding so image fills the card */
    overflow: hidden; /* ensure image respects border radius */
    display: flex;
    align-items: center;
    justify-content: center;
    /* UPDATE: Mobile First - Auto height ensures full image visibility (no text cropping) */
    height: auto;
    min-height: 100px; /* Prevent collapse while loading */
}

#hero-image-section img {
    width: 100%;
    /* UPDATE: Maintain aspect ratio on mobile so text stays visible */
    height: auto;
    display: block;
}

/* Desktop Styles: Enforce fixed height constraint on larger screens */
@media (min-width: 640px) {
    #hero-image-section {
        height: 170px; /* Fixed max height as requested */
    }
    
    #hero-image-section img {
        height: 100%;
        object-fit: cover; /* Ensures image fills area without distortion */
        object-position: center;
    }
}

/* Styles for fade-in animation */
.fade-in-section {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease-out, transform 0.6s ease-out;
}
.fade-in-section.is-visible {
    opacity: 1;
    transform: translateY(0);
}
.icon-list {
    list-style: none;
    padding-left: 0;
}
.icon-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem; /* Reduced margin */
}
.icon-list svg {
    flex-shrink: 0;
    width: 1.1rem; /* Slightly smaller icon */
    height: 1.1rem; /* Slightly smaller icon */
    margin-right: 0.6rem; /* Reduced margin */
    margin-top: 0.1rem;
}
.icon-list li > div {
    flex-grow: 1;
}
.comparison-card {
    border: 1px solid var(--card-border);
    border-radius: 0.5rem;
    padding: 1.25rem; /* Reduced padding */
    background-color: #fff;
    box-shadow: 0 2px 4px rgba(0,0,0,0.04);
    border-top-width: 4px;
    height: 100%;
}
.card-semrush { border-top-color: var(--semrush-color); }
.card-mangools { border-top-color: var(--mangools-color); }

.comparison-card p.font-bold {
    margin-bottom: 0.75rem; /* Reduced margin */
    padding: 0.4rem 0.6rem; /* Reduced padding */
    border-radius: 0.375rem;
    display: inline-block;
    font-weight: 700;
    border: 1px solid;
    font-size: 0.8rem; /* Match H3 size */
}
.card-semrush p.font-bold {
    color: var(--semrush-color);
    background-color: #fff5eb; /* Light orange */
    border-color: #fed7aa; /* Slightly darker orange for border */
}
.card-mangools p.font-bold {
    color: var(--mangools-color);
    background-color: #f0fdf4; /* Light green */
    border-color: #bbf7d0; /* Slightly darker green for border */
}

.essential-tools-list {
    list-style: none;
    padding-left: 0;
}
.essential-tools-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 0.5rem; /* Added margin for consistency */
}
.essential-tools-list svg {
    color: var(--accent-color);
    flex-shrink: 0;
    width: 1.1rem; /* Match icon-list size */
    height: 1.1rem; /* Match icon-list size */
    margin-right: 0.6rem; /* Match icon-list margin */
    margin-top: 0.1rem; /* Consistent alignment */
}
.essential-tools-list strong {
    font-weight: 600;
    color: var(--text-color);
}

.action-plan-list {
    list-style: none;
    padding-left: 0;
    position: relative;
}
.action-plan-list::before {
    content: '';
    position: absolute;
    left: 1rem; /* Adjusted for smaller marker */
    top: 0;
    bottom: 0;
    width: 2px;
    background-color: #e5e7eb;
}
.action-plan-list li {
    display: flex;
    align-items: flex-start;
    margin-bottom: 1rem; /* Reduced margin */
}
.action-plan-list .day-marker {
    flex-shrink: 0;
    width: 2rem; /* Reduced size */
    height: 2rem; /* Reduced size */
    border-radius: 9999px;
    background-color: var(--accent-color);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.65rem; /* Reduced font size */
    line-height: 1;
    z-index: 1;
    text-align: center;
}
.action-plan-list .day-content {
    margin-left: 1rem; /* Reduced margin */
}
.action-plan-list .day-content strong {
    display: flex;
    align-items: center;
    font-weight: 700;
    color: var(--text-color);
}
.action-plan-list .day-content svg {
    width: 1rem;
    height: 1rem;
    margin-right: 0.5rem;
    color: var(--text-color-muted);
}
.workflow-image, .highlight-image {
    width: 100%;
    height: auto;
    border-radius: 0.375rem;
    margin-top: 0.75rem; /* Reduced margin */
    border: 1px solid var(--card-border);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
}
.workflow-image:hover, .highlight-image:hover {
    transform: scale(1.02);
    box-shadow: 0 8px 15px rgba(0,0,0,0.1);
}

/* Define heights for chart containers */
#summary-chart .chart-container {
    position: relative;
    height: 300px; /* Reduced height */
    width:100%
}
#feature-comparison .chart-container {
     position: relative;
     height: 250px; /* Reduced height */
     width:100%
}
#pricing-and-plans .chart-container {
    position: relative;
    height: 280px; /* Reduced height */
    width:100%;
    margin-bottom: 1.5rem; /* Slightly reduced margin */
}
#final-verdict .chart-container {
    position: relative;
    height: 250px; /* Reduced height */
    width:100%;
    margin-top: 1rem; /* Slightly reduced margin */
}

/* Chart Loader Styles */
.chart-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-color: rgba(249, 250, 251, 0.8);
    z-index: 10;
    transition: opacity 0.4s ease-in-out;
    border-radius: 0.75rem;
}

.spinner {
    border: 4px solid #e5e7eb; /* Light grey */
    border-top: 4px solid var(--accent-color); /* Red */
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin-bottom: 1rem;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.chart-loader p {
    font-weight: 500;
    color: var(--text-color-muted);
}

.chart-loader.hidden {
    opacity: 0;
    pointer-events: none;
}

/* Image Popup Styles */
.image-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.85);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 1000;
    padding: 20px;
    box-sizing: border-box;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.image-popup-overlay:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.popup-content {
    max-width: 90%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
    transform: scale(0.95);
    transition: transform 0.3s ease;
}

.image-popup-overlay:not(.hidden) .popup-content {
    transform: scale(1);
}

.close-popup {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 40px;
    font-weight: bold;
    cursor: pointer;
    transition: color 0.2s, transform 0.2s;
    line-height: 1;
}

.close-popup:hover {
    color: #ccc;
    transform: scale(1.1);
}

/* Quick Verdict Box */
.verdict-item {
    background-color: var(--section-bg-alt);
    border-radius: 0.375rem;
    padding: 1rem; /* Consistent padding */
    border: 1px solid #f3f4f6;
}
.verdict-item h3 {
    color: var(--text-color);
    font-size: 0.8rem; /* Reduced size */
    font-weight: 700;
    margin-top: 0;
    margin-bottom: 0.4rem; /* Reduced margin */
}
.verdict-item p {
    color: var(--text-color-muted);
    font-size: 0.78rem; /* Match content size */
    margin-top: 0.25rem;
}

/* Table of Contents Box */
.toc-box {
    background: linear-gradient(135deg, #fef2f2 0%, #fffbeb 100%);
    border: 1px solid #fde2e1;
    border-left: 4px solid var(--accent-color);
    border-radius: 0.5rem;
    padding: 0.75rem 1rem; /* Reduced padding */
    box-shadow: 0 4px 10px rgba(0,0,0,0.03);
    margin-bottom: 0.75rem; /* Match section margin */
}
.toc-box summary {
    list-style: none;
    outline: none;
    font-weight: 700;
    font-size: 0.95rem; /* Reduced size */
    color: var(--text-color);
}
.toc-box summary::-webkit-details-marker {
    display: none;
}
.toc-arrow {
    transition: transform 0.2s ease-in-out;
    color: var(--accent-color);
}
details[open] > summary .toc-arrow {
    transform: rotate(180deg);
}
.toc-list {
    margin-top: 0.75rem; /* Reduced margin */
}
.toc-list li a {
    color: var(--text-color-muted);
    text-decoration: none;
    font-size: 0.8rem; /* Reduced size */
    transition: all 0.2s;
    display: block;
    padding: 0.25rem 0.4rem; /* Reduced padding */
    border-radius: 0.25rem;
}
.toc-list li a:hover {
    color: var(--accent-color);
    background-color: #fff;
    font-weight: 600;
    transform: translateX(4px);
}

/* Quiz Wrapper */
.quiz-wrapper {
    background: linear-gradient(135deg, #fef2f2 0%, #fef3c7 100%);
    border-color: var(--accent-color);
}
.quiz-question .font-bold {
    text-align: center;
}

/* Back to Top Button Styles */
#back-to-top {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--accent-color);
    color: white;
    border: none;
    border-radius: 50%;
    width: 50px;
    height: 50px;
    display: none; /* Hidden by default */
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 4px 8px rgba(0,0,0,0.2);
    z-index: 100;
    transition: opacity 0.3s, transform 0.3s;
    opacity: 0;
    transform: translateY(10px);
}

#back-to-top.show {
    display: flex;
    opacity: 1;
    transform: translateY(0);
}

#back-to-top:hover {
    background-color: var(--accent-color-dark);
}

/* Updated footer styles for higher contrast */
footer {
    color: var(--footer-text) !important;
    font-weight: 600;
}

footer a {
    color: var(--footer-text) !important;
}

footer a:hover {
    color: #fff !important;
}
.affiliate-disclaimer {
    font-size: 0.65rem !important;
    line-height: 1.4;
}

/* Explicitly target the footer text for higher contrast */
footer .text-gray-500 {
    font-weight: 600 !important;
}

/* --- Share Section Styles --- */
#share-section {
    padding-top: 0.5rem; /* Reduced padding */
    padding-bottom: 0.5rem; /* Reduced padding */
    background-color: var(--section-bg-alt);
    margin-top: 0.75rem; /* Match section margin */
}

#share-section h2 {
    font-size: 0.9rem; /* Reduced font size */
    margin-bottom: 0.1rem;
}
#share-section p {
    font-size: 0.75rem;
    margin-bottom: 0.5rem;
}

.share-buttons {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 0.5rem;
}

.share-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    text-decoration: none;
    color: white !important;
    transition: all 0.2s ease-in-out;
    width: 32px;
    height: 32px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
    border: none;
}

.share-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(0,0,0,0.15);
}

.share-button svg {
    width: 16px;
    height: 16px;
    margin: 0;
}

.share-button.x { background-color: #000000; }
.share-button.x:hover { background-color: #333333; }

.share-button.facebook { background-color: #1463D3; } /* Darkened for AA contrast */
.share-button.facebook:hover { background-color: #1155B8; }

.share-button.whatsapp { background-color: #25D366; }
.share-button.whatsapp:hover { background-color: #128C7E; }

.share-button.linkedin { background-color: #0077B5; }
.share-button.linkedin:hover { background-color: #005582; }

.share-button.telegram { background-color: #24A1DE; }
.share-button.telegram:hover { background-color: #1E88C0; }

.share-button.threads { background-color: #1a1a1a; }
.share-button.threads:hover { background-color: #3f3f3f; }

.share-button.quora { background-color: #a62100; }
.share-button.quora:hover { background-color: #8c1c00; }

/* --- Squeezed Section Styles --- */
#action-plan,
#faqs,
.final-cta-section {
    padding-top: 0.5rem; /* Reduced padding */
    padding-bottom: 0.5rem; /* Reduced padding */
    padding-left: 0.75rem; /* Reduced padding */
    padding-right: 0.75rem; /* Reduced padding */
}

/* Squeeze FAQ items */
#faqs .faq-item {
    padding-bottom: 0.25rem; /* Tighter spacing */
    margin-bottom: 0.25rem;
}
#faqs .faq-item summary {
    font-size: 0.8rem; /* Reduced font size */
}
#faqs .space-y-4 {
    row-gap: 0.25rem; /* Tighter spacing */
}
#faqs .pt-2 {
    padding-top: 0.25rem; /* Tighter spacing */
    font-size: 0.75rem; /* Reduced font size */
}

/* Squeeze Action plan */
.action-plan-list li {
    margin-bottom: 1rem; /* Reduced from 1.25rem */
}
.action-plan-list .day-content {
    margin-left: 1rem; /* Reduced from 1.5rem */
}

/* Squeeze Quiz */
.final-cta-section h2 {
    font-size: 0.85rem; /* Reduced font size */
}
.final-cta-section p {
    font-size: 0.75rem; /* Reduced font size */
}
#interactive-quiz {
    margin-top: 0.75rem; /* Reduced margin */
    padding: 0.75rem; /* Reduced padding */
}
#interactive-quiz h3 {
    font-size: 1rem; /* Reduced font size */
}
#interactive-quiz p {
    font-size: 0.75rem; /* Reduced font size */
    margin-bottom: 0.5rem;
}
#quiz-container {
    margin-top: 0.75rem; /* Reduced margin */
}
.quiz-question .font-bold {
    font-size: 0.85rem; /* Reduced font size */
    margin-bottom: 0.25rem;
}
.quiz-option {
    padding: 0.4rem; /* Reduced padding */
    font-size: 0.8rem; /* Reduced font size */
}
#quiz-result {
    margin-top: 1rem; /* Reduced from 1.5rem */
}


/* --- Contact Page Specific Styles --- */
#contact-us.section-wrapper,
#privacy-policy.section-wrapper,
#disclaimer.section-wrapper {
    padding: 1rem; /* Squeezed padding */
}

#contact-us > h2 {
    /* UPDATED to match .legal-content h2 */
    font-size: 0.85rem; /* Squeezed */
    font-weight: 700;
    color: var(--text-color);
    margin-top: 0;
    margin-bottom: 0.4rem; /* Squeezed margin */
    border-bottom: 1px solid var(--accent-color);
    padding-bottom: 0.25rem; /* Squeezed padding */
    /* Removed text-align: center as flex handles it now */
}
#contact-us > p {
    margin-top: 0.25rem;
    margin-bottom: 0.75rem; /* Squeezed margin */
    text-align: center; /* ADDED */
    font-size: 0.75rem; /* Squeezed */
}

/* NEW: Squeeze contact buttons */
#contact-us a[href^="mailto:"],
#contact-us a[href*="x.com"] {
    padding-top: 0.375rem;
    padding-bottom: 0.375rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
    font-size: 0.8rem; /* text-sm is 0.875rem */
}
#contact-us a[href^="mailto:"] svg,
#contact-us a[href*="x.com"] svg {
    width: 1rem; /* w-4 */
    height: 1rem; /* h-4 */
    margin-right: 0.25rem; /* mr-1 */
}


/* NEW: Override border colors for specific h2s on contact page */
#privacy-policy h2,
#disclaimer h2,
#contact-us h2 { /* UPDATE: Added contact-us to this group */
    margin-bottom: 0.4rem; /* Squeezed margin */
    padding-bottom: 0.25rem; /* Squeezed padding */
}

#contact-us h2 {
    border-bottom-color: var(--accent-color); /* Red/Accent */
}

#privacy-policy h2 {
    border-bottom-color: #3b82f6; /* Blue */
}
#disclaimer h2 {
    border-bottom-color: #f59e0b; /* Yellow */
}

/* Squeeze icon lists on contact page */
#privacy-policy .icon-list li,
#disclaimer .icon-list li {
    margin-bottom: 0.4rem; /* Squeezed margin */
}


/* --- Mobile Header Hide on Scroll --- */
#main-header.header-hidden {
    transform: translateY(-100%);
}

/* --- Media Queries for Responsive Design (Mobile-First) --- */

/* Reduce logo size on mobile screens */
@media (max-width: 639px) {
    .header-logo-slogan {
        font-size: 0.6rem; 
    }
    .comparison-table th, .comparison-table td {
        font-size: 0.65rem; /* Smaller font for tables on mobile */
    }
}

/* Tablet Styles */
@media (min-width: 640px) {
    .cta-button {
        display: inline-block;
        width: auto;
        margin-bottom: 0;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    body {
        padding-top: 0;
    }
    #main-header {
        position: sticky;
    }
    .legal-content .section-wrapper, .legal-content .toc-box {
        margin-left: 2rem;
        margin-right: 2rem;
        padding: 1.5rem;
    }

    /* Restore padding for contact page on desktop */
    #contact-us.section-wrapper,
    #privacy-policy.section-wrapper,
    #disclaimer.section-wrapper {
        padding: 1.5rem;
    }
}

/* Desktop Styles */
@media (min-width: 768px) {
    .hero-section h1 { font-size: 1.8rem; } /* Adjusted desktop size */
    .page-header-section h1 { font-size: 1.1rem; } /* UPDATED: Significantly reduced from 1.5rem */
    .hero-subtitle { font-size: 0.95rem; } /* Adjusted desktop size */
    .legal-content h2 { font-size: 1.2rem; } /* Adjusted desktop size */
    .legal-content h3 { font-size: 0.9rem; } /* Adjusted desktop size */
    
    .header-logo-slogan {
        font-size: 0.75rem !important; /* text-sm */
    }
}