@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Merriweather:ital,wght@0,300;0,400;0,700;1,300&display=swap');

:root {
    --bg-body: #ffffff;
    --bg-gray: #f3f4f6;
    --bg-dark: #1e3a8a;
    /* Deep Trust Blue */

    --primary: #1e3a8a;
    --primary-light: #3b82f6;
    --accent: #0d9488;
    /* Teal */
    --accent-hover: #0f766e;

    --text-main: #1f2937;
    --text-muted: #4b5563;
    --text-white: #ffffff;

    --border: #e5e7eb;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);

    --radius-sm: 6px;
    --radius-md: 12px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-body);
    color: var(--text-main);
    font-family: 'Plus Jakarta Sans', sans-serif;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    color: var(--primary);
    line-height: 1.25;
}

h1 {
    font-family: 'Merriweather', serif;
    font-weight: 900;
}

h2 {
    font-family: 'Merriweather', serif;
    font-weight: 700;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color 0.2s;
}

ul {
    list-style: none;
}

.container {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Header & Nav */
.header-top {
    border-bottom: 1px solid var(--border);
    padding: 12px 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}

.navbar {
    background: white;
    padding: 20px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: var(--shadow-sm);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.5rem;
    font-family: 'Merriweather', serif;
    font-weight: 900;
    color: var(--primary);
    display: flex;
    align-items: center;
    gap: 8px;
}

.logo-icon {
    color: var(--accent);
}

.nav-menu {
    display: flex;
    gap: 32px;
    align-items: center;
}

.nav-link {
    font-weight: 600;
    color: var(--text-main);
    font-size: 1rem;
}

.nav-link:hover {
    color: var(--accent);
}

.start-btn {
    background: var(--accent);
    color: white;
    padding: 10px 24px;
    border-radius: 99px;
    font-weight: 700;
    transition: background 0.2s;
}

.start-btn:hover {
    background: var(--accent-hover);
}

/* Expert Call Button (Replaces inline styles) */
.expert-call-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 1.1rem;
    background: var(--primary);
}

.expert-call-btn:hover {
    background: var(--primary-light);
}

@media (max-width: 768px) {
    .expert-call-btn {
        display: flex !important;
        /* Force show even if .start-btn is hidden */
        font-size: 0.9rem;
        padding: 8px 16px;
    }

    .expert-call-btn .hide-on-mobile {
        display: none;
    }
}

/* Quick Access Bar */
.quick-access-bar {
    background: var(--bg-gray);
    border-bottom: 1px solid var(--border);
    padding: 20px 0;
}

.quick-links {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

.quick-link-item {
    background: white;
    border: 1px solid var(--border);
    padding: 12px 24px;
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
    color: var(--text-muted);
    transition: all 0.2s;
}

.quick-link-item:hover {
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
    box-shadow: var(--shadow-sm);
}

/* Hero */
.hero {
    background: linear-gradient(rgba(30, 58, 138, 0.9), rgba(15, 23, 42, 0.95)), url('images/hero-bg.png');
    background-size: cover;
    background-position: center;
    color: white;
    padding: 120px 0 140px;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.hero h1 {
    font-size: 3.5rem;
    margin-bottom: 24px;
    color: white;
    max-width: 800px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.25rem;
    color: #cbd5e1;
    max-width: 600px;
    margin: 0 auto 48px;
}

.hero-btn {
    background: var(--accent);
    color: white;
    padding: 16px 48px;
    font-size: 1.1rem;
    font-weight: 700;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-md);
}

.hero-btn:hover {
    background: var(--accent-hover);
}

/* Section Styles */
.section {
    padding: 80px 0;
}

.section-header {
    text-align: center;
    margin-bottom: 60px;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 16px;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto;
}

/* Editorial Grid */
.editorial-grid {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 40px;
}

.featured-article {
    background: white;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.article-img {
    height: 400px;
    background: #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-muted);
    font-size: 3rem;
}

.article-content {
    padding: 40px;
}

.article-tag {
    text-transform: uppercase;
    color: var(--accent);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    margin-bottom: 12px;
    display: block;
}

.article-title {
    font-size: 2rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.article-excerpt {
    color: var(--text-muted);
    margin-bottom: 24px;
    font-size: 1.1rem;
}

.read-more {
    color: var(--primary);
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 6px;
}

/* Sidebar List */
.sidebar-list {
    background: var(--bg-gray);
    padding: 30px;
    border-radius: var(--radius-md);
}

.sidebar-title {
    font-size: 1.25rem;
    margin-bottom: 20px;
    padding-bottom: 10px;
    border-bottom: 2px solid var(--border);
}

.sidebar-item {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.sidebar-item:last-child {
    border: none;
}

.sidebar-link {
    font-weight: 600;
    font-size: 1.05rem;
    display: block;
    margin-bottom: 6px;
}

.sidebar-meta {
    font-size: 0.85rem;
    color: var(--text-muted);
}

/* Comparison Table (Light) */
.table-container {
    overflow-x: auto;
    border: 1px solid var(--border);
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
}

th {
    background: var(--bg-gray);
    padding: 16px 24px;
    text-align: left;
    font-weight: 700;
    color: var(--text-muted);
    text-transform: uppercase;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
}

td {
    padding: 20px 24px;
    border-bottom: 1px solid var(--border);
    color: var(--text-main);
}

tr:last-child td {
    border: none;
}

.rank-circle {
    width: 32px;
    height: 32px;
    background: var(--primary);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.score-pill {
    background: #ecfdf5;
    color: #047857;
    padding: 4px 12px;
    border-radius: 99px;
    font-weight: 700;
    font-size: 0.9rem;
}

.btn-table {
    background: var(--accent);
    color: white;
    padding: 8px 16px;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.9rem;
}

.btn-table:hover {
    background: var(--accent-hover);
}

/* Footer */
footer {
    background: var(--primary);
    color: white;
    padding: 80px 0 40px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 40px;
    margin-bottom: 60px;
}

.footer-col h4 {
    color: white;
    margin-bottom: 24px;
    font-family: 'Merriweather', serif;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col a {
    color: #bfdbfe;
    font-size: 0.95rem;
}

.footer-col a:hover {
    color: white;
    text-decoration: underline;
}

@media (max-width: 900px) {
    .editorial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

/* ... Existing Modal Styles ... */

/* Homepage Revamp Styles */

/* Hero Enhancements */
.hero {
    background: linear-gradient(135deg, #1e293b 0%, #0f172a 100%);
    position: relative;
    padding: 100px 0 80px;
    overflow: hidden;
}

.hero .container {
    position: relative;
    z-index: 10;
}

.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%233b82f6' fill-opacity='0.05'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.last-updated-badge {
    display: inline-block;
    background: rgba(255, 255, 255, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.2);
    color: #94a3b8;
    padding: 6px 16px;
    border-radius: 50px;
    font-size: 0.85rem;
    margin-bottom: 24px;
    backdrop-filter: blur(4px);
}

.trust-bar {
    background: #0f172a;
    padding: 24px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.trust-text {
    text-align: center;
    color: #64748b;
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 16px;
    font-weight: 600;
}

.trust-logos {
    display: flex;
    justify-content: center;
    gap: 40px;
    flex-wrap: wrap;
    opacity: 0.5;
}

.trust-logo-text {
    color: #cbd5e1;
    font-weight: 700;
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Quick Picks Grid */
.quick-picks-section {
    padding: 80px 0;
    background: white;
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-title {
    font-size: 2.25rem;
    color: var(--primary);
    margin-bottom: 16px;
    font-weight: 800;
}

.section-sub {
    font-size: 1.1rem;
    color: var(--text-muted);
}

.quick-picks-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.pick-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
}

.pick-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
    border-color: var(--primary-light);
}

.pick-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--accent);
    color: white;
    padding: 6px 20px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px rgba(255, 68, 68, 0.3);
}

.pick-badge.value {
    background: #10b981;
    box-shadow: 0 4px 6px rgba(16, 185, 129, 0.3);
}

.pick-badge.speed {
    background: #8b5cf6;
    box-shadow: 0 4px 6px rgba(139, 92, 246, 0.3);
}

.pick-img-container {
    height: 140px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 24px;
}

.pick-img {
    max-height: 100%;
    width: auto;
    filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.1));
}

.pick-title {
    text-align: center;
    font-size: 1.25rem;
    margin-bottom: 16px;
    color: var(--text-main);
}

.pick-score {
    text-align: center;
    margin-bottom: 24px;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

.pick-btn {
    margin-top: auto;
    background: var(--primary);
    color: white;
    text-align: center;
    padding: 14px;
    border-radius: 8px;
    font-weight: 700;
    transition: all 0.2s;
}

.pick-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    color: white;
}

/* Methodology Section */
.methodology-section {
    background: linear-gradient(to bottom, #f8fafc, white);
    padding: 80px 0;
}

.method-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-top: 50px;
}

.method-card {
    text-align: center;
    padding: 24px;
}

.method-icon {
    width: 64px;
    height: 64px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    color: var(--primary);
    margin: 0 auto 20px;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    border: 1px solid var(--border);
}

.method-title {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 12px;
}

.method-desc {
    font-size: 0.95rem;
    color: var(--text-muted);
    line-height: 1.6;
}

/* FAQ Accordion */
.faq-section {
    padding: 80px 0;
    background: white;
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    border: 1px solid var(--border);
    border-radius: 8px;
    margin-bottom: 16px;
    overflow: hidden;
}

.faq-header {
    padding: 20px 24px;
    background: white;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 700;
    color: var(--text-main);
    transition: background 0.2s;
}

.faq-header:hover {
    background: #f8fafc;
}

.faq-icon {
    transition: transform 0.3s;
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-content {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    background: #f8fafc;
}

.faq-body {
    padding: 24px;
    color: var(--text-muted);
    line-height: 1.6;
    border-top: 1px solid var(--border);
}

.faq-item.active .faq-content {
    max-height: 500px;
    /* Approximate max height */
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.6);
    backdrop-filter: blur(8px);
    z-index: 2000;
    display: none;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-container {
    background: white;
    width: 90%;
    max-width: 950px;
    max-height: 85vh;
    border-radius: 24px;
    box-shadow:
        0 20px 25px -5px rgba(0, 0, 0, 0.1),
        0 10px 10px -5px rgba(0, 0, 0, 0.04),
        0 0 0 1px rgba(0, 0, 0, 0.05);
    /* Subtle border */
    overflow: hidden;
    /* Hide overflow for header rounding */
    display: flex;
    flex-direction: column;
    transform: scale(0.95) translateY(10px);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.modal-overlay.active .modal-container {
    transform: scale(1) translateY(0);
}

.modal-header {
    padding: 24px 32px;
    border-bottom: 1px solid var(--border);
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: white;
    z-index: 10;
}

.modal-header h3 {
    margin: 0;
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.close-modal {
    background: var(--bg-gray);
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    cursor: pointer;
    color: var(--text-muted);
    transition: all 0.2s;
}

.close-modal:hover {
    background: #fee2e2;
    color: #ef4444;
    transform: rotate(90deg);
}

.modal-body {
    padding: 32px;
    overflow-y: auto;
}

/* Product Selector */
.product-selector-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 20px;
    margin-top: 10px;
}

.selector-item {
    border: 2px solid var(--border);
    border-radius: 16px;
    padding: 20px 16px;
    text-align: center;
    cursor: pointer;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    background: white;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100%;
}

.selector-item:hover {
    border-color: var(--primary-light);
    transform: translateY(-4px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.05);
}

.selector-item.selected {
    border-color: var(--primary);
    background: #eff6ff;
    box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.1);
}

.selector-item img {
    height: 50px;
    width: auto;
    object-fit: contain;
    margin-bottom: 16px;
    filter: grayscale(100%);
    opacity: 0.8;
    transition: all 0.3s;
}

.selector-item:hover img,
.selector-item.selected img {
    filter: grayscale(0%);
    opacity: 1;
    transform: scale(1.1);
}

.selector-item h4 {
    font-size: 0.85rem;
    margin: 0;
    color: var(--text-main);
    font-weight: 600;
    line-height: 1.4;
}

.selector-check {
    position: absolute;
    top: -10px;
    right: -10px;
    background: var(--primary);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    opacity: 0;
    transform: scale(0.5);
    transition: all 0.3s;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

.selector-item.selected .selector-check {
    opacity: 1;
    transform: scale(1);
    top: -8px;
    right: -8px;
}

#compareBtn {
    background: var(--text-main);
    /* Default disabled state styling handled by logic */
    transition: all 0.3s;
}

#compareBtn:not(:disabled) {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%);
    box-shadow: 0 4px 12px rgba(37, 99, 235, 0.3);
    width: 100%;
    max-width: 300px;
}

#compareBtn:not(:disabled):hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Comparison Table Refined */
.comparison-table {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 0 0 1px var(--border);
}

.comparison-table th {
    background: #f8fafc;
    color: var(--text-muted);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 1px;
    border: none;
    border-bottom: 1px solid var(--border);
    border-right: 1px solid var(--border);
}

.comparison-table td {
    border: none;
    border-bottom: 1px solid #f1f5f9;
    border-right: 1px solid #f1f5f9;
    vertical-align: middle;
}

.comparison-table tr:last-child td {
    border-bottom: none;
}

.comparison-table tr:hover td {
    background: #fdfdfd;
}

.score-pill {
    background: #ecfdf5;
    color: #059669;
    border: 1px solid #a7f3d0;
}

/* Get Deal Button in Modal */
.modal-deal-btn {
    display: inline-block;
    background: #10b981;
    color: white;
    padding: 10px 20px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 0.9rem;
    box-shadow: 0 4px 6px -1px rgba(16, 185, 129, 0.2);
    border: none;
    cursor: pointer;
    width: 100%;
    transition: all 0.2s;
}

.modal-deal-btn:hover {
    background: #059669;
    transform: translateY(-1px);
    box-shadow: 0 6px 10px -1px rgba(16, 185, 129, 0.3);
}

@media (max-width: 600px) {

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 0.85rem;
    }

    .selector-item img {
        height: 32px;
    }
}

/* Exit Intent Popup (Full Page, Multi-Step) */
.exit-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: white;
    /* Changed to white as content covers it */
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.exit-popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.exit-popup-content {
    background: white;
    width: 100vw;
    height: 100vh;
    max-width: none;
    /* Full width */
    max-height: none;
    /* Full height */
    border-radius: 0;
    /* No rounded corners */
    display: flex;
    overflow: hidden;
    box-shadow: none;
    transform: none;
    /* Remove slide effect for full screen */
    transition: opacity 0.3s ease;
}

.exit-popup-overlay.active .exit-popup-content {
    transform: none;
}

/* Left Side - Blue */
.exit-popup-left {
    flex: 1;
    width: 50%;
    background: #0056D2;
    color: white;
    padding: 60px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    position: relative;
    background-image: radial-gradient(circle at top left, #3b82f6 0%, #1e3a8a 100%);
}

.exit-hand-icon {
    font-size: 3rem;
    margin-bottom: 20px;
    animation: wave 2s infinite;
}

@keyframes wave {

    0%,
    100% {
        transform: rotate(0deg);
    }

    10%,
    30% {
        transform: rotate(14deg);
    }

    20%,
    40% {
        transform: rotate(-8deg);
    }

    50% {
        transform: rotate(10deg);
    }

    60% {
        transform: rotate(-5deg);
    }

    70% {
        transform: rotate(0deg);
    }
}

.exit-popup-left h2 {
    color: white;
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    font-family: 'Plus Jakarta Sans', sans-serif;
}

.exit-popup-left p {
    font-size: 1.2rem;
    opacity: 0.9;
    margin-bottom: 30px;
    line-height: 1.5;
}

.exit-link {
    color: rgba(255, 255, 255, 0.6);
    font-size: 0.9rem;
    text-decoration: underline;
    cursor: pointer;
    margin-top: auto;
    transition: color 0.2s;
    text-align: left;
}

.exit-link:hover {
    color: white;
}

/* Right Side - Dark */
.exit-popup-right {
    flex: 1;
    background: #0f172a;
    color: white;
    padding: 40px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    position: relative;
    min-height: 500px;
}

.step-container {
    width: 100%;
    animation: fadeIn 0.4s ease;
}

.hidden-step {
    display: none;
}

/* 5-Step Flow Specifics */
.step-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    width: 100%;
    margin-bottom: 20px;
}

.grid-btn {
    background: white;
    border: 2px solid white;
    /* Default state */
    padding: 14px;
    border-radius: var(--radius-sm);
    font-weight: 700;
    font-size: 0.95rem;
    cursor: pointer;
    text-align: center;
    transition: all 0.2s;
    color: var(--text-main);
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
}

.grid-btn.selected {
    border-color: #fbbf24;
    background: #fffbeb;
    color: #b45309;
}

.grid-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.popup-row-btns {
    display: flex;
    gap: 15px;
    width: 100%;
    margin-bottom: 20px;
}

.popup-row-btns .device-btn {
    margin-bottom: 0;
    flex: 1;
    text-align: center;
    justify-content: center;
}

.btn-yellow {
    background: #fbbf24;
    /* Amber-400 */
    color: #78350f;
    /* Amber-900 */
    font-weight: 800;
    font-size: 1.2rem;
    padding: 16px 48px;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    width: 100%;
    margin-top: 10px;
    transition: background 0.2s;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-yellow:hover {
    background: #f59e0b;
    /* Amber-500 */
}

.exit-label {
    display: block;
    text-align: left;
    font-weight: 700;
    color: #94a3b8;
    /* Slate-400 */
    margin-bottom: 8px;
    font-size: 0.9rem;
    margin-top: 10px;
}

.large-input {
    font-size: 1.5rem !important;
    padding: 16px 48px 16px 16px !important;
    /* Extra padding right for icon */
    font-weight: 600;
    color: var(--text-main);
    width: 100%;
}

.input-wrapper {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.validation-icon {
    position: absolute;
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
    color: #10b981;
    /* Green-500 */
    font-size: 1.5rem;
    opacity: 0;
    transition: opacity 0.2s;
    pointer-events: none;
}

.validation-icon.valid {
    opacity: 1;
}

.btn-yellow:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    background: #cbd5e1;
    /* Slate-300 */
    color: #64748b;
}

.exit-question {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    text-align: center;
    color: #fbbf24;
}

.device-btn {
    background: white;
    color: #0f172a;
    width: 100%;
    padding: 16px;
    border-radius: var(--radius-sm);
    border: none;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 700;
    cursor: pointer;
    transition: transform 0.2s, background 0.2s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.device-btn:hover {
    transform: translateY(-2px);
    background: #f8fafc;
}

.device-btn i {
    font-size: 1.3rem;
    color: #0f172a;
}

/* Form inputs for exit popup */
.exit-form-group {
    margin-bottom: 15px;
    width: 100%;
}

.exit-form-group input {
    width: 100%;
    padding: 14px;
    border: 1px solid #ddd;
    border-radius: var(--radius-sm);
    font-size: 1rem;
}

.exit-submit-btn {
    background: #ef4444;
    color: white;
    width: 100%;
    padding: 16px;
    font-size: 1.2rem;
    font-weight: 800;
    border: none;
    border-radius: var(--radius-sm);
    cursor: pointer;
    text-transform: uppercase;
    margin-top: 10px;
}

.exit-submit-btn:hover {
    background: #dc2626;
}

/* Process Grid (Moved to Global) */
.process-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.process-step {
    padding: 50px 0;
}

/* Modern Trust Badges */
.hero-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 50px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    padding-top: 30px;
}

.trust-item {
    background: rgba(255, 255, 255, 0.05);
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 15px;
    transition: all 0.2s;
}

.trust-item:hover {
    background: rgba(255, 255, 255, 0.1);
    transform: translateY(-2px);
    border-color: rgba(255, 255, 255, 0.3);
}

@media (max-width: 900px) {
    .editorial-grid {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 600px) {
    .footer-grid {
        grid-template-columns: 1fr;
    }

    .comparison-table th,
    .comparison-table td {
        padding: 10px;
        font-size: 0.9rem;
    }

    .selector-item img {
        height: 40px;
    }
}

/* --- Mobile Navigation & Responsive Fixes --- */
.menu-toggle {
    display: none;
    font-size: 1.5rem;
    cursor: pointer;
    color: var(--text-main);
}

@media (max-width: 768px) {

    /* Navbar Changes */
    .menu-toggle {
        display: block;
    }

    .nav-menu {
        position: fixed;
        top: 70px;
        /* Below navbar */
        left: -100%;
        width: 100%;
        height: calc(100vh - 70px);
        background: white;
        flex-direction: column;
        align-items: flex-start;
        padding: 20px;
        transition: left 0.3s ease;
        box-shadow: var(--shadow-md);
        gap: 20px;
    }

    .nav-menu.active {
        left: 0;
    }

    /* Reduce Logo Size */
    .logo {
        font-size: 1.1rem;
    }

    .logo-icon {
        font-size: 1.2rem;
    }

    /* Prevent wrapping on call button */
    .expert-call-btn {
        white-space: nowrap;
    }

    .nav-link {
        width: 100%;
        font-size: 1.2rem;
        padding: 10px 0;
        border-bottom: 1px solid #f1f5f9;
        display: block;
    }

    .start-btn {
        display: none;
        /* Hide Compare button in header on mobile if needed, or move to menu */
    }

    /* Add a compare link inside menu via JS or just accept it's hidden in header */

    /* Hero Section */
    .hero {
        padding: 80px 0 100px;
    }

    .hero h1 {
        font-size: 2.2rem;
        padding: 0 10px;
    }

    .hero p {
        font-size: 1.1rem;
        padding: 0 20px;
    }

    .hero-btn {
        width: 90%;
        padding: 16px;
    }

    .hero-btn {
        width: 90%;
        padding: 16px;
    }

    /* Modern Trust Badges Mobile */
    .hero-trust-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }

    .feature-list li::before {
        content: '\f00c';
        font-family: 'Font Awesome 6 Free';
        font-weight: 900;
        position: absolute;
        left: 0;
        color: #10b981;
    }



    /* Section Padding */
    .section {
        padding: 50px 0;
    }

    .section-title {
        font-size: 2rem;
    }

    /* Quick Access Bar */
    .quick-links {
        gap: 10px;
    }

    .quick-link-item {
        flex: 1 1 45%;
        justify-content: center;
        font-size: 0.9rem;
        padding: 10px;
    }

    /* Editorial Grid */
    .editorial-grid {
        grid-template-columns: 1fr;
    }

    .article-img {
        height: 250px;
    }

    .article-content {
        padding: 20px;
    }

    .article-title {
        font-size: 1.5rem;
    }

    /* Mobile Table - Convert to Card Layout */
    .table-container {
        border: none;
        box-shadow: none;
        overflow: visible;
    }

    /* Hide table on mobile, show cards instead */
    table {
        display: none;
    }

    /* Mobile Card Styles */
    .table-container::before {
        content: '';
        display: block;
    }

    /* Create cards from table rows using CSS */
    tbody tr {
        display: flex;
        flex-direction: column;
        background: white;
        border: 1px solid var(--border);
        border-radius: 12px;
        margin-bottom: 20px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    /* Show table as block and style rows as cards */
    #comparison table {
        display: block;
        min-width: auto;
    }

    #comparison thead {
        display: none;
    }

    #comparison tbody {
        display: block;
    }

    #comparison tbody tr {
        display: block;
        background: white;
        border: 1px solid var(--border);
        border-radius: 12px;
        margin-bottom: 16px;
        padding: 20px;
        box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    }

    #comparison tbody td {
        display: block;
        padding: 10px 0;
        border: none;
        text-align: left;
    }

    /* First cell - Product info */
    #comparison tbody td:first-child {
        margin-bottom: 12px;
        padding-bottom: 16px;
        border-bottom: 1px solid var(--border);
    }

    #comparison tbody td:first-child div {
        display: flex !important;
        align-items: center !important;
        gap: 12px !important;
    }

    /* Score */
    #comparison tbody td:nth-child(2)::before {
        content: 'Score: ';
        font-weight: 600;
        color: var(--text-muted);
        margin-right: 8px;
    }

    #comparison tbody td:nth-child(2) {
        display: flex;
        align-items: center;
        padding: 8px 0;
    }

    /* Best For */
    #comparison tbody td:nth-child(3)::before {
        content: 'Best For: ';
        font-weight: 600;
        color: var(--text-muted);
        margin-right: 8px;
    }

    #comparison tbody td:nth-child(3) {
        padding: 8px 0;
    }

    /* Price */
    #comparison tbody td:nth-child(4)::before {
        content: 'Price: ';
        font-weight: 600;
        color: var(--text-muted);
        margin-right: 8px;
    }

    #comparison tbody td:nth-child(4) {
        padding: 8px 0;
        font-size: 1.1rem;
        color: var(--primary);
    }

    /* Action button */
    #comparison tbody td:nth-child(5) {
        padding-top: 16px;
        margin-top: 8px;
        border-top: 1px solid var(--border);
    }

    #comparison tbody td:nth-child(5) a {
        display: block;
        width: 100%;
        text-align: center;
    }

    /* Rank circle adjustments */
    .rank-circle {
        width: 32px;
        height: 32px;
        font-size: 1rem;
        flex-shrink: 0;
    }

    /* Logo size */
    #comparison tbody td img {
        width: 45px !important;
        height: auto;
    }

    /* Product name */
    #comparison tbody td:first-child span {
        font-size: 1.1rem !important;
        font-weight: 700 !important;
    }
}

/* Exit Intent Popup (Mobile Fixes) */
@media (max-width: 768px) {
    .exit-popup-content {
        flex-direction: column;
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        overflow-y: auto;
    }

    .exit-popup-left {
        padding: 30px 20px;
        width: 100%;
        min-height: auto;
        flex: none;
        /* Don't grow */
        text-align: center;
    }

    .exit-popup-right {
        padding: 30px 20px;
        width: 100%;
        flex: 1;
        /* Take remaining space but allow scroll */
        min-height: 500px;
        /* Ensure space for form */
    }

    .exit-hand-icon {
        font-size: 2rem;
        margin: 0 auto 15px;
    }

    .exit-popup-left h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .exit-popup-left p {
        font-size: 1rem;
        margin-bottom: 20px;
    }

    .exit-link {
        text-align: center;
        margin-top: 20px;
        display: block;
        padding-bottom: 20px;
        /* Space for scroll */
    }

    .hero h1 {
        font-size: 2.5rem !important;
    }

    .service-card-grid,
    .process-grid {
        grid-template-columns: 1fr !important;
    }

    .process-step::after {
        display: none;
    }

    .step-grid {
        grid-template-columns: 1fr;
    }

    .popup-row-btns {
        flex-direction: column;
        gap: 10px;
    }
}

/* General Image Responsive Fix */
img {
    max-width: 100%;
    height: auto;
}

/* Service Popup - Premium UI/UX */
.service-popup {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(15, 23, 42, 0.8);
    /* Darker, richer overlay */
    backdrop-filter: blur(8px);
    /* Stronger blur */
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.service-popup.active {
    display: flex !important;
    opacity: 1;
}

.popup-content {
    background: #ffffff;
    border-radius: 24px;
    /* More rounded */
    width: 90%;
    max-width: 480px;
    position: relative;
    padding: 0;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
    transform: scale(0.95);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1);
    /* Bouncy pop effect */
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.service-popup.active .popup-content {
    transform: scale(1);
}

.popup-header {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 24px 30px;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.popup-header h3 {
    margin: 0;
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: -0.5px;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.close-popup {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    font-size: 1.2rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
}

.close-popup:hover {
    background: rgba(255, 255, 255, 0.4);
    transform: rotate(90deg);
}

.popup-body {
    padding: 30px;
    background: #f8fafc;
    /* Subtle grey bg for body */
}

/* Progress Bar */
.progress-container {
    margin-bottom: 30px;
    position: relative;
    padding: 0 10px;
}

.progress-bar {
    background: #e2e8f0;
    height: 8px;
    border-radius: 4px;
    overflow: hidden;
    box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.05);
}

.progress-fill {
    background: linear-gradient(90deg, var(--primary), var(--neon-blue));
    height: 100%;
    width: 33%;
    transition: width 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 0 10px rgba(59, 130, 246, 0.5);
}

.step-indicator {
    display: flex;
    justify-content: space-between;
    margin-top: 12px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: #94a3b8;
}

.step-active {
    color: var(--primary);
}

/* Form Steps */
.form-step {
    display: none;
    animation: slideUp 0.4s ease forwards;
}

.form-step.active {
    display: block;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(15px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.form-group {
    margin-bottom: 24px;
}

.form-group label {
    display: block;
    margin-bottom: 10px;
    font-weight: 600;
    font-size: 0.95rem;
    color: #334155;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 14px 16px;
    border: 2px solid #e2e8f0;
    /* Thicker border */
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.2s;
    color: #1e293b;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(59, 130, 246, 0.1);
    transform: translateY(-1px);
}

.form-group select {
    cursor: pointer;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'%3E%3C/path%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 20px;
    -webkit-appearance: none;
}

.step-actions {
    display: flex;
    gap: 15px;
    /* Spacing between buttons */
    margin-top: 35px;
}

.btn-secondary {
    background: white;
    color: #64748b;
    border: 2px solid #e2e8f0;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s;
    flex: 1;
}

.btn-secondary:hover {
    background: #f8fafc;
    border-color: #cbd5e1;
    color: #475569;
}

.btn-primary {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border: none;
    padding: 14px 28px;
    border-radius: 12px;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 10px 15px -3px rgba(37, 99, 235, 0.3);
    transition: all 0.2s;
    flex: 2;
    /* Main button larger */
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 20px 25px -5px rgba(37, 99, 235, 0.4);
    filter: brightness(1.1);
}

.success-icon {
    font-size: 4.5rem;
    background: linear-gradient(135deg, #10b981 0%, #059669 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    margin-bottom: 25px;
    display: block;
    animation: popIn 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

@keyframes popIn {
    from {
        transform: scale(0);
    }

    to {
        transform: scale(1);
    }
}