/* ========================================
   TEXT-BASED ICON SYSTEM (NO EMOJI)
   Replaces emoji with CSS for faster loads
   ======================================== */

.icon::before { font-style: normal; font-weight: 700; }
.icon-email::before { content: "@"; }
.icon-target::before { content: "◎"; }
.icon-bolt::before { content: "⚡"; }
.icon-rocket::before { content: "↗"; }
.icon-link::before { content: "⌘"; }
.icon-money::before { content: "$"; }
.icon-user::before { content: "●"; }
.icon-users::before { content: "●●"; font-size: 0.8em; letter-spacing: -4px; }
.icon-team::before { content: "●●●"; font-size: 0.7em; letter-spacing: -4px; }
.icon-building::before { content: "▣"; }
.icon-enterprise::before { content: "▣▣"; font-size: 0.8em; letter-spacing: -2px; }
.icon-free::before { content: "∅"; }
.icon-dollar::before { content: "$"; }
.icon-gem::before { content: "◆"; }
.icon-grad::before { content: "★"; }
.icon-check::before { content: "✓"; color: #16a34a; }
.icon-cross::before { content: "✗"; color: #dc2626; }
.icon-trophy::before { content: "★"; color: #f59e0b; }
.icon-chart::before { content: "▲"; }

/* ========================================
   THEME CONFIGURATION
   ======================================== */

/* --- MODERN COPPER THEME VARIABLES --- */
:root {
    /* The "Fine Quality" Palette */
    --primary: #b87333; /* Polished Copper */
    --primary-hover: #9a5f2a;
    --secondary: #d97706; /* Amber/Gold for gradients */
    
    --dark: #2c1810; /* Dark Espresso/Mud */
    --text-main: #443630; /* Warm Dark Grey */
    --text-light: #8c7b70; /* Warm Taupe */
    
    --bg-light: #f9f6f3; /* Very light warm clay/sand */
    --gray-100: var(--bg-light);
    --white: #ffffff;
    
    /* Status Colors */
    --success: #2e8b57; /* Sea Green (Patina) */
    --danger: #cb4335; /* Burnt Red */
    
    /* UI Definitions */
    --radius: 16px;
    --shadow-sm: 0 1px 2px 0 rgba(44, 24, 16, 0.05);
    --shadow-lg: 0 10px 15px -3px rgba(184, 115, 51, 0.1), 0 4px 6px -4px rgba(184, 115, 51, 0.1);
    --glass-border: 1px solid rgba(184, 115, 51, 0.1);
}

/* ========================================
   GLOBAL STYLES
   ======================================== */

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--white);
    color: var(--text-main);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    font-size: 1.125rem; /* Increased base font size (approx 18px) */
    zoom: 120%;
}

h1, h2, h3 {
    color: var(--dark);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.2;
}

a {
    text-decoration: none;
    color: var(--primary);
    transition: color 0.2s;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* ========================================
   UTILITY CLASSES
   ======================================== */

.gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* Utility Classes */
.card-panel {
    background: white;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    padding: 24px;
    margin: 20px 0;
}

.bg-gray { background: var(--gray-100); }
.text-center { text-align: center; }
.flex-center { display: flex; align-items: center; gap: 12px; }
.mb-4 { margin-bottom: 16px; }

/* ========================================
   BUTTON STYLES
   ======================================== */

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 16px 32px;
    font-weight: 600;
    border-radius: 50px;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    font-size: 1.1rem; /* Slightly larger text */
    cursor: pointer;
}

.btn-primary {
    background: linear-gradient(135deg, #c9884a 0%, var(--primary) 50%, #a66429 100%);
    color: var(--white);
    box-shadow: 
        0 4px 15px rgba(184, 115, 51, 0.4),
        0 1px 3px rgba(0, 0, 0, 0.12),
        inset 0 1px 0 rgba(255, 255, 255, 0.2);
    border: none;
    position: relative;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.2);
    font-weight: 700;
    letter-spacing: 0.3px;
}

/* Shine sweep effect */
.btn-primary::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 50%;
    height: 100%;
    background: linear-gradient(
        90deg,
        transparent,
        rgba(255, 255, 255, 0.35),
        transparent
    );
    transform: skewX(-25deg);
    animation: btn-shine 3s ease-in-out infinite;
}

@keyframes btn-shine {
    0% {
        left: -100%;
    }
    50%, 100% {
        left: 150%;
    }
}

/* Soft pulsing glow animation */
@keyframes btn-glow {
    0%, 100% {
        box-shadow: 
            0 4px 15px rgba(184, 115, 51, 0.4),
            0 1px 3px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 20px rgba(184, 115, 51, 0.2);
    }
    50% {
        box-shadow: 
            0 4px 15px rgba(184, 115, 51, 0.5),
            0 1px 3px rgba(0, 0, 0, 0.12),
            inset 0 1px 0 rgba(255, 255, 255, 0.2),
            0 0 35px rgba(184, 115, 51, 0.35);
    }
}

.btn-primary {
    animation: btn-glow 3s ease-in-out infinite;
}

.btn-primary:hover {
    background: linear-gradient(135deg, #d4956a 0%, #c97a3a 50%, var(--primary) 100%);
    color: var(--white);
    transform: translateY(-3px) scale(1.06);
    box-shadow: 
        0 12px 35px rgba(184, 115, 51, 0.5),
        0 4px 8px rgba(0, 0, 0, 0.15),
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 0 40px rgba(184, 115, 51, 0.3);
    animation: none;
}

.btn-primary:hover::before {
    animation: none;
    opacity: 0;
}

.btn-primary:active {
    transform: translateY(0) scale(1);
    box-shadow: 0 2px 8px rgba(184, 115, 51, 0.3);
}

.btn-outline {
    background: transparent;
    color: var(--dark);
    border: 1px solid #e7e5e4;
}

.btn-outline:hover {
    border-color: var(--primary);
    color: var(--primary);
    background: var(--bg-light);
    box-shadow: 0 0 20px rgba(184, 115, 51, 0.15);
}

.btn-outline:active {
    transform: translateY(1px);
}


/* ========================================
   HEADER & NAVIGATION
   ======================================== */

header {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(12px);
    padding: 10px 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: var(--glass-border);
}

.nav-flex {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-size: 1.2rem;
    font-weight: 800;
    color: var(--dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-img {
    height: 38px;
    width: 38px;
    max-width: 38px;
    max-height: 38px;
    border-radius: 50%;
    object-fit: cover;
    object-position: center 35%; /* Crop to show just the face area */
    border: 2px solid var(--primary);
    background-color: var(--bg-light);
    box-shadow: var(--shadow-sm);
}

.mobile-menu-toggle {
    display: none; /* Hidden on desktop */
}

nav a {
    color: var(--text-light);
    font-weight: 500;
    margin-left: 32px;
    font-size: 1rem; /* Increased from 0.95rem */
    transition: color 0.2s ease, text-shadow 0.2s ease;
}

nav a:hover {
    color: var(--primary);
    text-shadow: 0 0 8px rgba(184, 115, 51, 0.3);
}

/* Nav Dropdown */
.nav-dropdown {
    position: relative;
    display: inline-block;
    margin-left: 32px;
}

.nav-dropdown-trigger {
    color: var(--text-light);
    font-weight: 500;
    font-size: 1rem;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-left: 0;
}

.nav-dropdown-trigger:hover {
    color: var(--primary);
}

.dropdown-arrow {
    font-size: 0.75rem;
    transition: transform 0.2s;
}

.nav-dropdown:hover .dropdown-arrow {
    transform: rotate(180deg);
}

.nav-dropdown-menu {
    position: absolute;
    top: 100%;
    left: -20px;
    background: white;
    border: 1px solid #e7e5e4;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.12);
    padding: 8px 0;
    min-width: 240px;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: all 0.2s ease;
    z-index: 1000;
}

.nav-dropdown:hover .nav-dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(4px);
}

.nav-dropdown-menu a {
    display: block;
    padding: 12px 20px;
    color: var(--text-main);
    font-size: 0.95rem;
    font-weight: 500;
    margin: 0;
    transition: background 0.15s;
}

.nav-dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
}

/* ========================================
   HERO SECTION - Interactive Particle Background
   ======================================== */

.hero {
    padding: 120px 0 100px;
    text-align: center;
    position: relative;
    overflow: hidden;
    background: #ffffff;
    cursor: default;
}

#hero-canvas {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

/* Ensure content stays above the background */
.hero .container {
    position: relative;
    z-index: 1;
    pointer-events: none;
}

/* Allow clicks on buttons and links inside hero */
.hero .container a,
.hero .container button {
    pointer-events: auto;
}

/* Light theme text for hero */
.hero h1 {
    color: var(--dark);
}

.hero .gradient-text {
    background: linear-gradient(135deg, var(--primary) 0%, #d4956a 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero p {
    color: var(--text-main);
}

.hero .badge {
    background: rgba(184, 115, 51, 0.1);
    border-color: rgba(184, 115, 51, 0.3);
    color: var(--primary);
}

.badge {
    background-color: #fef3c7;
    color: #92400e;
    padding: 6px 16px;
    border-radius: 20px;
    font-size: 0.95rem; /* Increased from 0.85rem */
    font-weight: 600;
    display: inline-block;
    margin-bottom: 24px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    border: 1px solid #fde68a;
}

.hero h1 {
    font-size: 4.5rem; /* Slightly larger headline */
    margin-bottom: 24px;
    max-width: 900px;
    margin-left: auto;
    margin-right: auto;
}

.hero p {
    font-size: 1.35rem; /* Increased from 1.25rem */
    color: var(--text-light);
    max-width: 600px;
    margin: 0 auto 40px auto;
}

.btn-group {
    display: flex;
    gap: 16px;
    justify-content: center;
}

/* ========================================
   AI STACK ADVISOR SECTION
   ======================================== */

.ai-advisor-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #fefdfb 0%, #f9f6f3 50%, #f5f0eb 100%);
    border-top: 1px solid rgba(184, 115, 51, 0.1);
    border-bottom: 1px solid rgba(184, 115, 51, 0.1);
}

.ai-advisor-header {
    text-align: center;
    margin-bottom: 50px;
}

.ai-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    padding: 8px 20px;
    border-radius: 50px;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.25);
}

.ai-advisor-header h2 {
    font-size: 2.4rem;
    margin-bottom: 12px;
    color: var(--dark);
}

.ai-advisor-header p {
    color: var(--text-light);
    font-size: 1.1rem;
    max-width: 600px;
    margin: 0 auto;
    line-height: 1.6;
}

.ai-advisor-form {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 850px;
    margin: 0 auto;
    position: relative;
    overflow: hidden;
}

.ai-advisor-form::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 50%, #f59e0b 100%);
}

.ai-form-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 28px;
}

@media (max-width: 768px) {
    .ai-form-grid {
        grid-template-columns: 1fr;
    }
    
    .ai-advisor-header h2 {
        font-size: 2rem;
    }
    
    .ai-advisor-form {
        padding: 28px;
        margin: 0 16px;
    }
}

.ai-form-group {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ai-form-group label {
    font-weight: 600;
    color: var(--dark);
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-form-group label::before {
    content: '';
    width: 4px;
    height: 4px;
    background: var(--primary);
    border-radius: 50%;
}

.ai-form-group select,
.ai-form-group input[type="text"] {
    padding: 16px 18px;
    border-radius: 14px;
    border: 2px solid #e7e5e4;
    font-size: 1rem;
    color: var(--dark);
    background: white;
    transition: all 0.3s ease;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
}

.ai-form-group select:hover,
.ai-form-group input[type="text"]:hover {
    border-color: #d6d3d1;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
}

.ai-form-group select:focus,
.ai-form-group input[type="text"]:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 4px rgba(184, 115, 51, 0.1), 0 4px 12px rgba(184, 115, 51, 0.1);
}

.ai-checkbox-group {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
}

@media (max-width: 600px) {
    .ai-checkbox-group {
        grid-template-columns: repeat(2, 1fr);
    }
}

.ai-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 10px 12px;
    background: #fafaf9;
    border-radius: 8px;
    font-size: 0.85rem;
    cursor: pointer;
    transition: all 0.2s ease;
    border: 1px solid #e7e5e4;
    font-weight: 500;
}

.ai-checkbox:hover {
    background: #f5f5f4;
    border-color: #d6d3d1;
}

.ai-checkbox:has(input:checked) {
    background: rgba(184, 115, 51, 0.1);
    border-color: var(--primary);
    color: var(--primary);
}

.ai-checkbox input {
    accent-color: var(--primary);
    width: 18px;
    height: 18px;
}

.ai-submit-btn {
    width: 100%;
    margin-top: 36px;
    padding: 20px 36px;
    font-size: 1.2rem;
    border-radius: 14px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    border: none;
    color: white;
    font-weight: 700;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 8px 30px rgba(184, 115, 51, 0.35);
    position: relative;
    overflow: hidden;
}

.ai-submit-btn::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    transition: left 0.5s ease;
}

.ai-submit-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 40px rgba(184, 115, 51, 0.45);
}

.ai-submit-btn:hover::before {
    left: 100%;
}

.ai-submit-btn:active {
    transform: translateY(0);
}

.ai-btn-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
}

.ai-spinner {
    width: 22px;
    height: 22px;
    border: 3px solid rgba(255, 255, 255, 0.3);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* AI Results */
.ai-results {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(20px);
    border-radius: 24px;
    padding: 48px;
    box-shadow: 
        0 25px 80px rgba(0, 0, 0, 0.3),
        0 0 0 1px rgba(255, 255, 255, 0.1),
        inset 0 1px 0 rgba(255, 255, 255, 0.8);
    max-width: 850px;
    margin: 0 auto;
    animation: fadeInUp 0.6s cubic-bezier(0.16, 1, 0.3, 1);
    position: relative;
    overflow: hidden;
}

/* Streaming preview (during true streaming) */
.ai-stream-title {
    margin: 0;
}

.ai-stream-progress {
    display: flex;
    align-items: center;
    gap: 12px;
    margin-top: 10px;
}

.ai-stream-progress-track {
    position: relative;
    height: 10px;
    flex: 1;
    background: var(--bg-light);
    border-radius: 999px;
    overflow: hidden;
    border: 1px solid rgba(184, 115, 51, 0.14);
}

.ai-stream-progress-bar {
    position: absolute;
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    transform-origin: left center;
    background: linear-gradient(90deg, var(--primary) 0%, var(--secondary) 100%);
    border-radius: 999px;
}

.ai-stream-progress-label {
    font-weight: 700;
    color: var(--text-light);
    font-size: 0.95rem;
    min-width: 3ch;
    text-align: right;
}

.ai-progress-complete .ai-stream-progress {
    opacity: 0.75;
}

.ai-stream-preview {
    margin-top: 10px;
    padding: 12px 14px;
    border-radius: 12px;
    background: var(--white);
    border: 1px solid rgba(184, 115, 51, 0.18);
    color: var(--text-light);
    white-space: pre-wrap;
    word-break: break-word;
    font-family: inherit;
    font-size: 0.95rem;
    line-height: 1.5;
    max-height: 220px;
    overflow: auto;
}

.ai-stream-preview.ai-typing::after {
    content: "▍";
    display: inline-block;
    margin-left: 2px;
    animation: ai-caret-blink 1s steps(1, end) infinite;
}

@keyframes ai-caret-blink {
    0%, 49% { opacity: 1; }
    50%, 100% { opacity: 0; }
}

@media (prefers-reduced-motion: reduce) {
    .ai-stream-preview.ai-typing::after {
        animation: none;
        opacity: 1;
    }
}

/* Smooth transition between streaming preview and final output */
.ai-swap {
    transition: opacity 260ms cubic-bezier(0.16, 1, 0.3, 1), transform 260ms cubic-bezier(0.16, 1, 0.3, 1);
    will-change: opacity, transform;
}

.ai-swap.ai-swap-exiting {
    opacity: 0;
    transform: translateY(-8px);
}

.ai-swap.ai-swap-enter {
    opacity: 0;
    transform: translateY(12px);
}

@media (prefers-reduced-motion: reduce) {
    .ai-swap {
        transition: none;
    }
}

.ai-results::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #10b981 0%, #34d399 50%, #6ee7b7 100%);
}

@keyframes slideUpCta {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .ai-cta-full { display: none !important; }
    .ai-cta-short { display: inline !important; }
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.ai-results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 32px;
    padding-bottom: 24px;
    border-bottom: 2px solid #f0f0f0;
}

.ai-results-header h3 {
    font-size: 1.6rem;
    margin: 0;
    background: linear-gradient(135deg, var(--dark) 0%, #44403c 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.ai-reset-btn {
    background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
    border: 2px solid #e7e5e4;
    padding: 12px 24px;
    border-radius: 12px;
    font-weight: 600;
    color: var(--text-light);
    cursor: pointer;
    transition: all 0.25s ease;
}

.ai-reset-btn:hover {
    background: linear-gradient(135deg, #f5f5f4 0%, #e7e5e4 100%);
    color: var(--dark);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.ai-stack-item {
    display: flex;
    align-items: flex-start;
    gap: 18px;
    padding: 24px;
    background: linear-gradient(135deg, #fafaf9 0%, #f5f5f4 100%);
    border-radius: 16px;
    margin-bottom: 16px;
    text-decoration: none;
    color: inherit;
    transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    border: 2px solid transparent;
    position: relative;
    overflow: hidden;
}

.ai-stack-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 4px;
    height: 100%;
    background: linear-gradient(180deg, var(--primary) 0%, var(--secondary) 100%);
    opacity: 0;
    transition: opacity 0.3s ease;
}

.ai-stack-link {
    cursor: pointer;
}

.ai-stack-link:hover {
    background: linear-gradient(135deg, #fff 0%, #fafaf9 100%);
    border-color: var(--primary);
    transform: translateX(6px);
    box-shadow: 0 8px 30px rgba(184, 115, 51, 0.15);
}

.ai-stack-link:hover::after {
    opacity: 1;
}

.ai-stack-link:hover .ai-stack-arrow {
    opacity: 1;
    transform: translateX(6px);
}

.ai-stack-link:active {
    transform: translateX(4px) scale(0.99);
}

.ai-stack-arrow {
    opacity: 0;
    transition: all 0.3s ease;
    margin-left: 8px;
    font-weight: 700;
    color: var(--primary);
}

.ai-stack-icon {
    width: 56px;
    height: 56px;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    flex-shrink: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 16px rgba(184, 115, 51, 0.3);
}

.ai-stack-info {
    flex: 1;
}

.ai-stack-info h4 {
    font-size: 1.15rem;
    margin-bottom: 6px;
    display: flex;
    align-items: center;
    gap: 12px;
    color: var(--dark);
}

.ai-stack-info h4 span {
    font-size: 0.8rem;
    color: white;
    font-weight: 600;
    background: linear-gradient(135deg, #a3a3a3 0%, #737373 100%);
    padding: 3px 10px;
    border-radius: 6px;
}

.ai-stack-info p {
    color: var(--text-light);
    font-size: 0.95rem;
    margin: 0;
    line-height: 1.5;
}

.ai-stack-price {
    font-weight: 800;
    color: var(--primary);
    font-size: 1.1rem;
    white-space: nowrap;
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    padding: 8px 14px;
    border-radius: 10px;
}

.ai-total-cost {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 24px;
    background: linear-gradient(135deg, #0f3460 0%, #1a1a2e 100%);
    border-radius: 16px;
    margin-top: 24px;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
}

.ai-total-cost span:first-child {
    font-weight: 600;
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.1rem;
}

.ai-total-cost span:last-child {
    font-size: 1.8rem;
    font-weight: 800;
    color: #34d399;
    text-shadow: 0 2px 10px rgba(52, 211, 153, 0.3);
}

/* --- Shared section base --- */
.ai-benefits,
.ai-integration-tips,
.ai-workflow,
.ai-alternative {
    margin-top: 24px;
    padding: 24px 28px;
    border-radius: 14px;
}

.ai-benefits h4,
.ai-integration-tips h4,
.ai-workflow h4,
.ai-alternative h4 {
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    margin: 0 0 16px 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.ai-benefits h4::before,
.ai-integration-tips h4::before,
.ai-workflow h4::before,
.ai-alternative h4::before {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 26px;
    height: 26px;
    border-radius: 7px;
    font-size: 0.8rem;
    flex-shrink: 0;
}

/* --- Key Benefits --- */
.ai-benefits {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
}

.ai-benefits h4 {
    color: #166534;
}

.ai-benefits h4::before {
    content: '✓';
    background: #dcfce7;
    color: #16a34a;
    font-weight: 800;
}

.ai-benefits ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.ai-benefits li {
    position: relative;
    padding: 10px 14px 10px 34px;
    color: #15803d;
    font-size: 0.9rem;
    line-height: 1.55;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
}

.ai-benefits li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 15px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #22c55e;
}

/* --- How They Work Together --- */
.ai-integration-tips {
    background: #fffbeb;
    border: 1px solid #fde68a;
}

.ai-integration-tips h4 {
    color: #92400e;
}

.ai-integration-tips h4::before {
    content: '⟷';
    background: #fef3c7;
    color: #d97706;
    font-weight: 800;
}

.ai-integration-tips p {
    color: #78350f;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

.ai-integration-tips ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: grid;
    gap: 8px;
}

.ai-integration-tips li {
    position: relative;
    padding: 10px 14px 10px 34px;
    color: #78350f;
    font-size: 0.9rem;
    line-height: 1.55;
    background: rgba(255,255,255,0.55);
    border-radius: 8px;
}

.ai-integration-tips li::before {
    content: '';
    position: absolute;
    left: 14px;
    top: 15px;
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: #f59e0b;
}

/* --- How It Works --- */
.ai-workflow {
    background: #f0f9ff;
    border: 1px solid #bae6fd;
}

.ai-workflow h4 {
    color: #0c4a6e;
}

.ai-workflow h4::before {
    content: '▶';
    background: #e0f2fe;
    color: #0284c7;
    font-size: 0.65rem;
}

.ai-workflow ol {
    list-style: none;
    padding: 0;
    margin: 0;
    counter-reset: wf-step;
    display: grid;
    gap: 8px;
}

.ai-workflow li {
    position: relative;
    padding: 10px 14px 10px 34px;
    color: #0c4a6e;
    font-size: 0.9rem;
    line-height: 1.55;
    counter-increment: wf-step;
    background: rgba(255,255,255,0.7);
    border-radius: 8px;
}

.ai-workflow li::before {
    content: counter(wf-step);
    position: absolute;
    left: 10px;
    top: 50%;
    transform: translateY(-50%);
    width: 20px;
    height: 20px;
    border-radius: 50%;
    background: #0ea5e9;
    color: #fff;
    font-size: 0.7rem;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ai-workflow p {
    color: #0c4a6e;
    font-size: 0.9rem;
    line-height: 1.65;
    margin: 0;
}

/* --- Budget Alternative --- */
.ai-alternative {
    background: #faf5ff;
    border: 1px solid #e9d5ff;
}

.ai-alternative h4 {
    color: #6b21a8;
}

.ai-alternative h4::before {
    content: '$';
    background: #f3e8ff;
    color: #9333ea;
    font-weight: 800;
}

.ai-alternative p {
    color: #581c87;
    font-size: 0.9rem;
    margin: 0 0 6px 0;
    line-height: 1.6;
}

.ai-alternative p:last-child {
    margin-bottom: 0;
}

.ai-alternative p strong {
    color: #4c1d95;
}

.ai-error {
    text-align: center;
    padding: 50px 30px;
    background: linear-gradient(135deg, #fef2f2 0%, #fee2e2 100%);
    border-radius: 16px;
    border: 2px solid #fecaca;
}

.ai-error p {
    margin-bottom: 20px;
    color: #991b1b;
}

.ai-error p:first-child {
    font-size: 1.3rem;
    font-weight: 600;
}

/* ========================================
   AI LANDING PAGE - Google Ads Version
   ======================================== */

.ai-lp-step {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 0.8rem;
    background: #e5e7eb;
    color: #9ca3af;
    transition: all 0.3s ease;
}

.ai-lp-step.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.3);
}

.ai-lp-step.completed {
    background: #10b981;
    color: white;
}

.ai-lp-panel {
    display: none;
}

.ai-lp-panel.active {
    display: block;
    animation: fadeInUp 0.4s ease;
}

@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.ai-lp-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

@media (max-width: 600px) {
    .ai-lp-options {
        grid-template-columns: 1fr;
    }
}

.ai-lp-option {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 14px;
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.25s ease;
    text-align: left;
    font-size: 0.9rem;
    font-weight: 500;
    color: var(--dark);
}

.ai-lp-option:hover {
    background: #fff;
    border-color: var(--primary);
    transform: translateY(-1px);
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.15);
}

.ai-lp-option.selected {
    background: linear-gradient(135deg, rgba(184, 115, 51, 0.1) 0%, rgba(217, 119, 6, 0.1) 100%);
    border-color: var(--primary);
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.2);
}

.ai-lp-icon {
    font-size: 1.2rem;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: white;
    border-radius: 8px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.06);
    flex-shrink: 0;
}

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

.trust-section {
    padding: 60px 0;
    background-color: var(--bg-light);
    text-align: center;
    border-top: 1px solid rgba(0,0,0,0.03);
    border-bottom: 1px solid rgba(0,0,0,0.03);
}

.trust-label {
    font-size: 1rem; /* Increased from 0.875rem */
    color: var(--text-light);
    margin-bottom: 24px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.quote-card {
    background: var(--white);
    max-width: 800px;
    margin: 0 auto;
    padding: 30px;
    border-radius: var(--radius);
    font-size: 1.2rem; /* Increased from 1.1rem */
    color: var(--dark);
    box-shadow: var(--shadow-sm);
    border: var(--glass-border);
    position: relative;
}

/* ========================================
   REVIEW/FEATURED PRODUCT SECTION
   ======================================== */

.review-section {
    padding: 100px 0;
    background-color: var(--white);
}

.review-card {
    background-color: var(--white);
    border-radius: 24px;
    padding: 0;
    box-shadow: var(--shadow-lg);
    display: flex;
    overflow: hidden;
    border: 1px solid rgba(184, 115, 51, 0.15);
}

.card-content {
    padding: 60px;
    flex: 1;
}

.card-image {
    flex: 1;
    background: linear-gradient(135deg, #fdfbf7 0%, #e7e5e4 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    border-left: 1px solid rgba(0,0,0,0.05);
}

.ingot-stack {
    font-size: 6rem;
    filter: drop-shadow(0 10px 10px rgba(0,0,0,0.1));
    line-height: 1;
}

.rating {
    color: var(--primary); 
    font-size: 1.3rem; /* Increased */
    margin-bottom: 15px;
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.pros-list {
    list-style: none;
    margin: 30px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}

.pros-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-main);
    font-weight: 500;
    font-size: 1.1rem; /* Increased */
}

.check-icon {
    width: 24px; /* Larger icon */
    height: 24px;
    background-color: #d1fae5;
    color: var(--success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.85rem;
}


/* ========================================
   INVENTORY / PRODUCT GRID SECTION
   ======================================== */

.inventory-section {
    padding: 80px 0;
    background-color: #fdfbf7;
    border-top: 1px solid rgba(0,0,0,0.03);
}

.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 50px auto;
}

.filter-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 50px;
    flex-wrap: wrap;
}

.filter-btn {
    background: #f9fafb;
    border: 2px solid #e5e7eb;
    padding: 9px 16px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    color: var(--dark);
    transition: all 0.25s ease;
}

.filter-btn:hover {
    background: #fff;
    border-color: var(--primary);
    color: var(--primary);
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.15);
    transform: translateY(-1px);
}

.filter-btn:active {
    transform: translateY(0);
    transition: transform 0.1s ease;
}

.filter-btn.active {
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-color: transparent;
    box-shadow: 0 4px 15px rgba(184, 115, 51, 0.35);
}

/* AI Filter Button - Special Styling */
.filter-btn-ai {
    background: linear-gradient(135deg, #8b5cf6 0%, #6366f1 50%, #8b5cf6 100%);
    background-size: 200% 200%;
    color: white;
    border-color: transparent;
    position: relative;
    overflow: hidden;
    animation: ai-gradient-shift 3s ease infinite;
}

.filter-btn-ai::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent, rgba(255,255,255,0.1), transparent);
    transform: rotate(45deg);
    animation: ai-shimmer 2s ease-in-out infinite;
}

@keyframes ai-gradient-shift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

@keyframes ai-shimmer {
    0% { transform: translateX(-100%) rotate(45deg); }
    100% { transform: translateX(100%) rotate(45deg); }
}

.filter-btn-ai:hover {
    border-color: transparent;
    color: white;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.5);
    transform: translateY(-2px);
}

.filter-btn-ai.active {
    background: linear-gradient(135deg, #7c3aed 0%, #4f46e5 100%);
    border-color: transparent;
    box-shadow: 0 4px 20px rgba(139, 92, 246, 0.6);
}

/* Sidebar filter layout */
.inventory-layout {
    display: grid;
    grid-template-columns: 280px 1fr;
    gap: 24px;
    align-items: start;
}

.filter-panel {
    background: white;
    border: 1px solid #e7e5e4;
    border-radius: 16px;
    padding: 20px;
    box-shadow: var(--shadow-sm);
    position: sticky;
    top: 100px;
    max-height: 75vh;
    overflow-y: auto;
}

.filter-panel-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e7e5e4;
}

.filter-panel-header h4 {
    margin: 0;
    font-size: 1rem;
    color: var(--dark);
}

.filter-clear-all {
    background: none;
    border: none;
    color: var(--primary);
    font-size: 0.82rem;
    font-weight: 600;
    cursor: pointer;
    padding: 4px 10px;
    border-radius: 6px;
    transition: all 0.2s ease;
}

.filter-clear-all:hover {
    background: rgba(184, 115, 51, 0.08);
    color: var(--secondary);
}

.filter-group-label {
    flex-basis: 100%;
    font-weight: 700;
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.6px;
    padding-bottom: 2px;
}

.filter-panel .filter-group {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px;
    padding-bottom: 14px;
    margin-bottom: 14px;
    border-bottom: 1px solid #f0eeec;
}

.filter-panel .filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-panel .filter-group span {
    font-size: 0.95rem;
}

.filter-panel .filter-btn {
    width: auto;
    min-width: auto;
    justify-content: center;
    text-align: center;
}

.inventory-content {
    background: transparent;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.control-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

/* Control Stack - Container for filters and sorting */
.control-stack {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    flex-wrap: wrap;
    margin-bottom: 20px;
    padding: 16px;
    background: #fff8ed;
    border: 1px solid #f3e8d2;
    border-radius: 16px;
}

.filter-group {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.filter-group span {
    margin-right: 2px;
}

.filter-btn {
    padding: 10px 18px;
    font-size: 0.95rem; /* Slightly tighter so more chips fit comfortably */
}

/* Sort/Show Controls */
.sort-control {
    font-size: 0.9rem !important;
}

.sort-control select {
    font-size: 0.9rem !important;
    padding: 8px 12px !important;
    height: auto !important;
    min-height: unset !important;
}

.product-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); /* Slightly wider cards */
    gap: 32px;
}

.product-card {
    background: white;
    border-radius: 20px;
    padding: 30px;
    border: 1px solid rgba(0,0,0,0.05);
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
    display: flex;
    flex-direction: column;
    position: relative;
    cursor: pointer;
}

.product-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(184, 115, 51, 0.15), 0 0 0 1px rgba(184, 115, 51, 0.2);
    border-color: rgba(184, 115, 51, 0.3);
}

.product-card:active {
    transform: translateY(-2px) scale(0.98);
    box-shadow: 0 8px 20px rgba(184, 115, 51, 0.2), 0 0 0 2px rgba(184, 115, 51, 0.4);
    border-color: var(--primary);
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.product-header {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    margin-bottom: 20px;
}

.product-icon-wrap {
    display: flex;
    align-items: center;
    gap: 15px;
}

.product-icon {
    width: 60px; /* Larger */
    height: 60px;
    background: #fdfbf7;
    border-radius: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    border: 1px solid #e7e5e4;
    flex-shrink: 0;
}

.product-title h3 {
    font-size: 1.3rem; /* Increased */
    margin-bottom: 4px;
    color: var(--dark);
}

.product-cat {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.rating-mini {
    font-size: 1rem; /* Increased from 0.9rem */
    color: var(--primary);
    font-weight: 700;
    background: #fff8ed;
    padding: 4px 10px;
    border-radius: 8px;
    display: inline-block;
}

.product-desc {
    color: var(--text-main);
    font-size: 1rem; /* Increased from 0.95rem */
    margin-bottom: 25px;
    flex-grow: 1;
    line-height: 1.6;
}

.card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 20px;
    border-top: 1px solid #f5f5f4;
    gap: 12px;
    flex-wrap: wrap;
}

/* Visit Site button on product cards */
.card-footer .btn-primary {
    animation: subtlePulse 3s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { box-shadow: 0 2px 8px rgba(184, 115, 51, 0.25); }
    50% { box-shadow: 0 4px 16px rgba(184, 115, 51, 0.45); }
}

.price-tag {
    font-weight: 700;
    color: var(--dark);
    font-size: 1.1rem; /* Increased from 0.95rem */
}

.price-sub {
    font-weight: 400;
    font-size: 0.85rem;
    color: var(--text-light);
}

.btn-link {
    color: var(--primary);
    font-weight: 600;
    font-size: 1rem; /* Increased */
    display: flex;
    align-items: center;
    gap: 6px;
    transition: gap 0.2s, color 0.2s, text-shadow 0.2s;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.btn-link:hover {
    text-shadow: 0 0 12px rgba(184, 115, 51, 0.5);
}

.product-card:hover .btn-link {
    gap: 10px;
}

/* ========================================
   MODAL & OVERLAY STYLES
   ======================================== */

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(44, 24, 16, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1000;
    display: none; 
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.modal-overlay.open {
    display: flex;
    opacity: 1;
}

.modal-card {
    background: var(--white);
    width: 90%;
    max-width: 650px; 
    border-radius: 24px;
    padding: 40px;
    position: relative;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(20px);
    transition: transform 0.3s ease;
    border: 1px solid rgba(184, 115, 51, 0.1);
    max-height: 90vh; 
    overflow-y: auto; 
}

.modal-overlay.open .modal-card {
    transform: translateY(0);
}

.close-modal {
    position: absolute;
    top: 20px;
    right: 20px;
    background: #f5f5f4;
    border: none;
    width: 40px; /* Larger touch target */
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    color: var(--text-light);
    transition: all 0.2s;
}

.close-modal:hover {
    background: var(--danger);
    color: white;
}

.modal-header-content {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
}

.modal-icon {
    font-size: 3.5rem; /* Larger icon */
    background: #fdfbf7;
    width: 90px;
    height: 90px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 20px;
    border: 1px solid #e7e5e4;
}

.table-container {
    border: 1px solid #e7e5e4;
    border-radius: var(--radius);
    overflow: hidden;
    background: white;
    box-shadow: var(--shadow-sm);
}

table {
    width: 100%;
    border-collapse: collapse;
}

th {
    background-color: #f5f5f4;
    color: var(--text-light);
    text-transform: uppercase;
    font-size: 0.85rem; /* Increased from 0.75rem */
    letter-spacing: 0.05em;
    padding: 24px;
    text-align: left;
    border-bottom: 1px solid #e7e5e4;
}

td {
    padding: 24px;
    border-bottom: 1px solid #e7e5e4;
    color: var(--text-main);
    font-size: 1.05rem; /* Increased */
}

tr:last-child td {
    border-bottom: none;
}

.status-badge {
    display: inline-flex;
    align-items: center;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 0.95rem; /* Increased */
    font-weight: 600;
}

.badge-bad {
    background-color: #fef2f2;
    color: var(--danger);
    border: 1px solid #fecaca;
}

.badge-good {
    background-color: #ecfdf5;
    color: var(--success);
    border: 1px solid #a7f3d0;
}

/* ========================================
   LEGAL & CONTENT PAGES
   ======================================== */

.legal-content {
    padding: 80px 0;
    background: var(--white);
    min-height: 60vh;
}

.legal-content h1 {
    font-size: 3rem;
    margin-bottom: 20px;
}

.legal-content h2 {
    font-size: 1.5rem;
    margin-top: 40px;
    margin-bottom: 15px;
    color: var(--primary);
}

.legal-content p {
    margin-bottom: 15px;
    color: var(--text-main);
    font-size: 1.05rem;
}

.legal-content ul {
    margin-bottom: 20px;
    padding-left: 20px;
}

.legal-content li {
    margin-bottom: 10px;
    color: var(--text-main);
}

/* ========================================
   VIEW SYSTEM / PAGE ROUTING
   ======================================== */

.view-section {
    display: none;
    animation: fadeIn 0.4s ease;
}

.view-section.active {
    display: block;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(10px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ========================================
   REVIEW DETAIL PAGE
   ======================================== */

.review-hero {
    background: var(--dark);
    color: white;
    padding: 80px 0 60px;
    text-align: center;
    position: relative;
}

.review-hero h1 {
    color: white;
    font-size: 3rem;
    margin-bottom: 10px;
}

.review-breadcrumbs {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin-bottom: 20px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.review-breadcrumbs a {
    color: rgba(255,255,255,0.8);
    border-bottom: 1px solid rgba(255,255,255,0.3);
}

.review-content-wrapper {
    max-width: 900px;
    margin: 0 auto 60px;
    background: white;
    border-radius: 20px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
    padding: 50px;
    position: relative;
    z-index: 10;
}

.review-section-title {
    font-size: 1.5rem;
    color: var(--dark);
    margin: 40px 0 20px;
    border-bottom: 2px solid var(--bg-light);
    padding-bottom: 10px;
    scroll-margin-top: 80px;
}

.score-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    margin: 30px 0;
    background: var(--bg-light);
    padding: 20px;
    border-radius: 12px;
}

.score-item {
    text-align: center;
}

.score-val {
    font-size: 2rem;
    font-weight: 800;
    color: var(--primary);
}

.score-label {
    font-size: 0.85rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Review-mode override for the sticky AI button */
#stickyAIButton.review-mode a {
    background: var(--dark);
    gap: 14px;
    padding: 14px 22px;
}

#stickyAIButton.review-mode .sticky-review-price {
    font-weight: 700;
    font-size: 1rem;
    white-space: nowrap;
}

#stickyAIButton.review-mode .sticky-review-meta {
    font-size: 0.7rem;
    opacity: 0.7;
    white-space: nowrap;
}

@media (max-width: 768px) {
    #stickyAIButton.review-mode a {
        padding: 14px 18px;
        border-radius: 50px;
    }
    #stickyAIButton.review-mode .sticky-review-info {
        display: none;
    }
}

/* ========================================
   SCREENSHOT CAROUSEL
   ======================================== */

.screenshot-carousel {
    margin-bottom: 40px;
}

.carousel-container {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 400px;
}

.carousel-container img {
    max-height: 500px;
    object-fit: contain;
    background: #f9fafb;
    aspect-ratio: 16 / 10;
}

.screenshot-fallback {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 220px;
    padding: 40px 20px;
    background: #f9f6f3;
    border-radius: 12px;
    border: 1px solid #e7e5e4;
    width: 100%;
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: 1px solid #e7e5e4;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: var(--dark);
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    z-index: 10;
}

.carousel-btn:hover {
    background: white;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.carousel-btn-prev {
    left: 16px;
}

.carousel-btn-next {
    right: 16px;
}

.carousel-indicators {
    display: flex;
    gap: 8px;
    justify-content: center;
    margin-top: 16px;
}

.carousel-dot {
    width: 10px;
    height: 10px;
    border-radius: 50%;
    background: #d1d5db;
    cursor: pointer;
    transition: all 0.2s;
    border: none;
    padding: 0;
}

.carousel-dot.active {
    background: var(--primary);
    width: 28px;
    border-radius: 5px;
}

/* ========================================
   TABLE SECTION / COMPARISONS
   ======================================== */

.table-section {
    padding: 100px 0;
    background-color: var(--white);
}

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

footer {
    background-color: var(--white);
    border-top: 1px solid #e7e5e4;
    color: var(--text-light);
    padding: 80px 0;
    font-size: 1rem; /* Increased base footer size */
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 40px;
}

footer h4 {
    color: var(--dark);
    margin-bottom: 20px;
    font-size: 1.1rem; /* Increased */
}

footer ul {
    list-style: none;
}

footer li {
    margin-bottom: 12px;
}

footer a {
    color: var(--text-light);
}

footer a:hover {
    color: var(--primary);
}

/* ========================================
   LANDING PAGE STYLES (Consolidated from inline)
   ======================================== */

.lp-container {
    padding: 60px 24px;
    max-width: 900px;
}

.lp-breadcrumbs {
    margin-bottom: 20px;
    font-size: 0.9rem;
    color: var(--text-light);
}

.lp-breadcrumbs a {
    color: var(--primary);
}

.lp-quick-answer {
    padding: 24px;
    border-radius: 16px;
    margin-bottom: 40px;
    border-left: 4px solid var(--primary);
}

.lp-quick-answer.funnels {
    background: linear-gradient(135deg, #fef3c7 0%, #fde68a 100%);
}

.lp-quick-answer.email {
    background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
    border-color: #3b82f6;
}

.lp-quick-answer.crm {
    background: linear-gradient(135deg, #fce7f3 0%, #fbcfe8 100%);
    border-color: #ec4899;
}

.lp-quick-answer.automation {
    background: linear-gradient(135deg, #d1fae5 0%, #a7f3d0 100%);
    border-color: #10b981;
}

.lp-comparison-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.lp-comparison-table thead tr {
    background: var(--dark);
    color: white;
}

.lp-comparison-table th,
.lp-comparison-table td {
    padding: 16px;
}

.lp-comparison-table th {
    text-align: left;
}

.lp-comparison-table td {
    text-align: center;
}

.lp-comparison-table tbody tr {
    border-bottom: 1px solid #e5e7eb;
}

.lp-comparison-table tbody tr:first-child {
    background: #f0fdf4;
}

.lp-cta-box {
    color: white;
    padding: 40px;
    border-radius: 16px;
    text-align: center;
    margin-bottom: 40px;
}

/* ========================================
   RESPONSIVE / MOBILE
   ======================================== */

@media (max-width: 768px) {
    body {
        zoom: 100%;
    }
    
    
    .hero h1 { font-size: 2.5rem; }
    
    /* Mobile navigation - stacked vertical menu */
    .nav-flex {
        flex-wrap: wrap;
        position: relative;
    }
    
    .mobile-menu-toggle {
        display: flex;
        flex-direction: column;
        gap: 4px;
        background: none;
        border: none;
        cursor: pointer;
        padding: 8px;
        margin-left: auto;
    }
    
    .mobile-menu-toggle span {
        display: block;
        width: 24px;
        height: 2px;
        background: var(--dark);
        transition: all 0.3s;
    }
    
    .mobile-menu-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }
    
    .mobile-menu-toggle.active span:nth-child(2) {
        opacity: 0;
    }
    
    .mobile-menu-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    .nav-flex nav {
        display: none;
        width: 100%;
        flex-direction: column;
        gap: 0;
        margin-top: 16px;
    }
    
    .nav-flex nav.active {
        display: flex;
    }
    
    .nav-flex nav a {
        padding: 12px 0;
        border-bottom: 1px solid #e7e5e4;
        text-align: left;
    }
    
    .nav-flex nav a:last-child {
        border-bottom: none;
    }
    
    /* Mobile dropdown styles */
    .nav-dropdown {
        margin-left: 0;
        width: 100%;
    }
    
    .nav-dropdown-trigger {
        display: block;
        padding: 12px 0;
        border-bottom: 1px solid #e7e5e4;
        width: 100%;
    }
    
    .nav-dropdown-menu {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border: none;
        border-radius: 0;
        padding: 0;
        display: none;
        background: var(--bg-light);
    }
    
    .nav-dropdown:hover .nav-dropdown-menu,
    .nav-dropdown.open .nav-dropdown-menu {
        display: block;
    }
    
    .nav-dropdown-menu a {
        padding: 12px 20px;
        border-bottom: 1px solid #e7e5e4;
        font-size: 0.9rem;
    }
    
    .review-card { flex-direction: column; }
    .card-image { padding: 40px; }
    .pros-list { grid-template-columns: 1fr; }
    
    .footer-grid { grid-template-columns: 1fr; gap: 30px; }
    
    table, thead, tbody, th, td, tr { display: block; }
    thead tr { position: absolute; top: -9999px; left: -9999px; }
    td { position: relative; padding-left: 50%; text-align: right; }
    td:before { position: absolute; left: 15px; width: 45%; white-space: nowrap; font-weight: bold; text-align: left; content: attr(data-label); color: var(--text-light); }
    
    /* Mobile comparison bar adjustments */
    .comparison-bar {
        padding: 12px 16px;
        max-height: 30vh;
        overflow-y: auto;
    }
    
    .comparison-chip {
        font-size: 0.8rem;
        padding: 4px 8px;
    }
    
    .inventory-layout {
        grid-template-columns: 1fr;
    }

    .filter-panel {
        position: static;
        padding: 16px;
    }

    .filter-panel .filter-group {
        flex-wrap: wrap;
        gap: 6px;
        overflow: visible;
    }

    .filter-group-label {
        font-size: 0.7rem;
    }

    .filter-group span {
        flex: 0 0 auto;
        font-size: 0.9rem;
        color: var(--text-light);
    }

    .filter-btn {
        flex: 0 0 auto;
        min-width: auto;
        padding: 8px 12px;
        font-size: 0.85rem;
        white-space: nowrap;
    }

    .control-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

/* ========================================
   COMPARISON BAR - STICKY FOOTER
   ======================================== */

.comparison-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    padding: 16px 24px;
    box-shadow: 0 -4px 20px rgba(44, 24, 16, 0.15);
    z-index: 1000;
    color: white;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.comparison-bar strong {
    color: white;
}

.comparison-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(255, 255, 255, 0.2);
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 0.9rem;
    color: white;
    font-weight: 600;
}

.comparison-chip button {
    background: none;
    border: none;
    color: white;
    cursor: pointer;
    font-size: 1.1rem;
    padding: 0;
    margin: 0;
    line-height: 1;
    opacity: 0.8;
    transition: opacity 0.2s;
}

.comparison-chip button:hover {
    opacity: 1;
}

/* Back to Top Button */
#backToTop:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(184, 115, 51, 0.4);
}

/* ========================================
   STAT CARDS - TRUST SECTION
   ======================================== */

.stat-card {
    transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1), 
                box-shadow 0.3s cubic-bezier(0.4, 0, 0.2, 1),
                border-color 0.3s ease;
}

.stat-card:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 40px rgba(184, 115, 51, 0.15), 
                0 0 0 1px rgba(184, 115, 51, 0.2);
    border-color: rgba(184, 115, 51, 0.3) !important;
}

.stat-card:active {
    transform: translateY(-4px) scale(1.01);
}

/* ========================================
   RELATED TOOLS CARDS ("You Might Also Like")
   ======================================== */

.related-tool-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.related-tool-card {
    display: flex;
    flex-direction: column;
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 16px;
    height: 100%;
    cursor: pointer;
    text-decoration: none;
    color: inherit;
    transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
}

.related-tool-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(184, 115, 51, 0.12);
    border-color: var(--primary);
}

.related-tool-card:active {
    transform: translateY(-1px) scale(0.98);
    box-shadow: 0 4px 12px rgba(184, 115, 51, 0.15), 0 0 0 2px rgba(184, 115, 51, 0.3);
    border-color: var(--primary);
    transition: transform 0.1s ease, box-shadow 0.1s ease, border-color 0.1s ease;
}

.related-tool-cta {
    margin-top: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    transition: gap 0.2s ease;
}

/* ========================================
   STICKY AI RECOMMENDATION BUTTON
   ======================================== */

#stickyAIButton {
    position: fixed;
    bottom: 100px;
    right: 24px;
    z-index: 998;
    display: flex;
    visibility: hidden;
    opacity: 0;
    transform: translateY(20px) scale(0.9);
    transition: opacity 0.4s cubic-bezier(0.16, 1, 0.3, 1), transform 0.4s cubic-bezier(0.16, 1, 0.3, 1), visibility 0.4s;
    pointer-events: none;
}

#stickyAIButton.visible {
    visibility: visible;
    opacity: 1;
    transform: translateY(0) scale(1);
    pointer-events: auto;
}

#stickyAIButton a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 16px 24px;
    background: linear-gradient(135deg, var(--primary) 0%, var(--secondary) 100%);
    color: white;
    border-radius: 50px;
    font-weight: 700;
    font-size: 0.95rem;
    text-decoration: none;
    box-shadow: 
        0 8px 30px rgba(184, 115, 51, 0.4),
        0 4px 12px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    position: relative;
    overflow: hidden;
}

#stickyAIButton a::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
    animation: sticky-btn-shine 3s ease-in-out infinite;
}

@keyframes sticky-btn-shine {
    0% { left: -100%; }
    50%, 100% { left: 100%; }
}

#stickyAIButton a:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 
        0 12px 40px rgba(184, 115, 51, 0.5),
        0 6px 16px rgba(0, 0, 0, 0.15);
}

#stickyAIButton a:active {
    transform: translateY(-1px) scale(1.02);
}

#stickyAIButton .sticky-ai-icon {
    font-size: 1.2rem;
    animation: sticky-ai-pulse 2s ease-in-out infinite;
}

@keyframes sticky-ai-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* Hide on mobile when comparison bar is showing */
.comparison-bar ~ #stickyAIButton {
    bottom: 100px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    #stickyAIButton {
        bottom: 16px;
        right: 16px;
    }
    
    #stickyAIButton a {
        padding: 14px 20px;
        font-size: 0.9rem;
    }
    
    #stickyAIButton .sticky-ai-text {
        display: none;
    }
    
    #stickyAIButton a {
        padding: 16px;
        border-radius: 50%;
    }
    
    #stickyAIButton .sticky-ai-icon {
        font-size: 1.4rem;
    }
}

/* Hide when viewing AI advisor section or AI landing page */
#view-lp-ai-builder.active ~ #stickyAIButton,
.ai-advisor-section:hover ~ #stickyAIButton {
    opacity: 0.3;
}

/* ========================================
   UTILITY OVERRIDES (placed last on purpose)
   ======================================== */

.m-0 { margin: 0; }
.mx-8 { margin: 0 8px; }
.mt-40 { margin-top: 40px; }
.mt-12 { margin-top: 12px; }
.mt-8 { margin-top: 8px; }
.mt-4px { margin-top: 4px; }
.mb-20 { margin-bottom: 20px; }
.mb-16 { margin-bottom: 16px; }
.mb-12 { margin-bottom: 12px; }
.mb-4px { margin-bottom: 4px; }

.lh-18 { line-height: 1.8; }
.lh-17 { line-height: 1.7; }

.font-600 { font-weight: 600; }

.text-light-666 { font-size: 0.9rem; color: #666; }
.text-xs-light { font-size: 0.75rem; color: var(--text-light); }
.text-primary-strong { font-size: 1.4rem; font-weight: 800; color: var(--primary); }
.text-primary-link { color: var(--primary); font-weight: 600; font-size: 0.9rem; }

.flex-gap-16 { display: flex; align-items: center; gap: 16px; }
.flex-gap-12-wrap { display: flex; gap: 12px; flex-wrap: wrap; }
.flex-1-min-250 { flex: 1; min-width: 250px; }

.card-row {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 16px;
}

.icon-circle-dark {
    background: var(--dark);
    color: white;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
}

.link-card {
    text-decoration: none;
    color: inherit;
    padding: 16px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    transition: all 0.2s;
}

.p-12-24 { padding: 12px 24px; }

.no-underline { text-decoration: none; }
.link-inherit { color: inherit; text-decoration: none; }

.panel-soft {
    margin-bottom: 16px;
    padding: 20px;
    background: #f9fafb;
    border-radius: 12px;
}

.fw-600-pointer { font-weight: 600; cursor: pointer; }

.text-dark { color: var(--dark); }
.text-primary-600 { color: var(--primary); font-weight: 600; }

.list-loose { line-height: 2; margin-bottom: 24px; padding-left: 24px; }

.mt-32 { margin-top: 32px; }

.ai-video-toggle {
    padding: 8px 16px;
    margin: -4px 0 12px 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--primary);
    cursor: pointer;
    user-select: none;
    transition: color 0.2s;
}

.ai-video-toggle:hover {
    color: var(--primary-dark, #4338ca);
}

.ai-video-container {
    margin: 0 0 16px 0;
    border-radius: 12px;
    overflow: hidden;
}

.ai-video-wrapper {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
    border-radius: 12px;
}

.ai-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: 0;
    border-radius: 12px;
}

.card-article {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid #e5e7eb;
    transition: all 0.3s;
    height: 100%;
}

/* ========================================
   REVIEW PAGE CTA COMPONENTS
   ======================================== */

/* Hero CTA (after score grid) */
.review-hero-cta {
    margin: 0 0 32px 0;
}
.hero-cta-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
    border: 2px solid #f59e0b;
    border-radius: 16px;
    padding: 24px 32px;
    gap: 20px;
    flex-wrap: wrap;
}
.hero-cta-price {
    font-size: 1.6rem;
    font-weight: 800;
    color: var(--dark);
}
.hero-cta-meta {
    font-size: 0.95rem;
    color: var(--text-light);
    margin-top: 4px;
}
.hero-cta-badge {
    display: inline-block;
    background: #059669;
    color: white;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    margin-top: 8px;
}
.hero-cta-right {
    text-align: center;
}
.hero-cta-btn {
    font-size: 1.15rem !important;
    padding: 14px 36px !important;
}
.hero-cta-reassurance {
    font-size: 0.8rem;
    color: var(--text-light);
    margin-top: 8px;
}

/* ========================================
   WIRED-STYLE EDITORIAL HOMEPAGE
   ======================================== */

/* --- Section Label (like "REVIEWS", "TRENDING") --- */
.ed-section-label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    display: inline-block;
    padding-bottom: 6px;
    margin-bottom: 28px;
}

/* --- Featured Hero Block --- */
.hp-hero {
    position: relative;
    margin-bottom: 0;
}
.hp-hero-inner {
    position: relative;
    min-height: 480px;
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}
.hp-hero-bg {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}
.hp-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,10,5,0.92) 0%, rgba(20,10,5,0.5) 50%, rgba(20,10,5,0.15) 100%);
    z-index: 1;
}
.hp-hero-content {
    position: relative;
    z-index: 2;
    padding-bottom: 56px;
    padding-top: 80px;
    max-width: 680px;
}
.hp-hero-badge {
    display: inline-block;
    background: var(--primary);
    color: white;
    font-size: 0.65rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 2px;
    padding: 5px 14px;
    border-radius: 3px;
    margin-bottom: 20px;
}
.hp-hero-title {
    font-size: 2.6rem;
    font-weight: 800;
    line-height: 1.1;
    color: white;
    margin-bottom: 16px;
}
.hp-hero-title a {
    color: inherit;
    text-decoration: none;
}
.hp-hero-title a:hover {
    color: var(--primary);
}
.hp-hero-excerpt {
    font-size: 1.1rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin-bottom: 16px;
}
.hp-hero-meta {
    font-size: 0.8rem;
    color: rgba(255,255,255,0.5);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}
.hp-hero-dot {
    color: var(--primary);
}

/* --- Magazine Mosaic (Top Reviews) --- */
.hp-mosaic {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}
.hp-mosaic-feature {
    position: relative;
    display: block;
    border-radius: 12px;
    overflow: hidden;
    min-height: 380px;
    text-decoration: none;
    color: white;
}
.hp-mosaic-feature img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.hp-mosaic-feature:hover img {
    transform: scale(1.03);
}
.hp-mosaic-feature-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(20,10,5,0.88) 0%, rgba(20,10,5,0.2) 60%);
    z-index: 1;
}
.hp-mosaic-feature-text {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 28px;
    z-index: 2;
}
.hp-mosaic-feature-title {
    font-size: 1.5rem;
    font-weight: 800;
    line-height: 1.2;
    margin: 8px 0;
    color: white;
}
.hp-mosaic-feature-text p {
    font-size: 0.9rem;
    color: rgba(255,255,255,0.7);
    margin: 0;
    line-height: 1.5;
}
.hp-mosaic-tag {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: var(--primary);
}

.hp-mosaic-side {
    display: flex;
    flex-direction: column;
    gap: 20px;
}
.hp-mosaic-side-card {
    position: relative;
    flex: 1;
    border-radius: 12px;
    overflow: hidden;
    text-decoration: none;
    color: white;
    display: flex;
    align-items: flex-end;
}
.hp-mosaic-side-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}
.hp-mosaic-side-card:hover img {
    transform: scale(1.05);
}
.hp-mosaic-side-text {
    position: relative;
    z-index: 2;
    padding: 20px;
    background: linear-gradient(to top, rgba(20,10,5,0.85) 0%, transparent 100%);
    width: 100%;
}
.hp-mosaic-side-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.3;
    margin-top: 6px;
    color: white;
}

/* --- Reviews Bottom Row (compact icon cards) --- */
.hp-reviews-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding-bottom: 56px;
    margin-bottom: 0;
    border-bottom: 1px solid #e5e2de;
}
.hp-review-compact {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px;
    background: white;
    border: 1px solid #e5e2de;
    border-radius: 12px;
    text-decoration: none;
    color: inherit;
    transition: all 0.2s ease;
}
.hp-review-compact:hover {
    border-color: var(--primary);
    box-shadow: 0 4px 20px rgba(184,115,51,0.1);
    transform: translateY(-2px);
}
.hp-review-compact-icon {
    width: 56px;
    height: 56px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
    background: #f9f6f3;
    display: flex;
    align-items: center;
    justify-content: center;
}
.hp-review-compact-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    padding: 4px;
}
.hp-review-compact-text .hp-mosaic-tag {
    display: block;
    margin-bottom: 4px;
}
.hp-review-compact-title {
    font-size: 0.95rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
    margin-bottom: 4px;
    transition: color 0.15s;
}
.hp-review-compact:hover .hp-review-compact-title {
    color: var(--primary);
}
.hp-review-compact-text p {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0;
    line-height: 1.45;
}

/* --- AI Banner (glowing) --- */
.hp-ai-banner {
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    background: linear-gradient(135deg, #1a0f0a 0%, #2c1810 50%, #3d2518 100%);
}
.hp-ai-banner-glow {
    position: absolute;
    top: -50%;
    right: -20%;
    width: 400px;
    height: 400px;
    background: radial-gradient(circle, rgba(184,115,51,0.25) 0%, transparent 70%);
    pointer-events: none;
}
.hp-ai-banner-inner {
    position: relative;
    display: flex;
    align-items: center;
    gap: 24px;
    padding: 36px 40px;
    z-index: 1;
}
.hp-ai-banner-icon {
    font-size: 2.4rem;
    flex-shrink: 0;
}
.hp-ai-banner-text {
    flex: 1;
}
.hp-ai-banner-text h3 {
    color: white;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 4px;
}
.hp-ai-banner-text p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
    margin: 0;
}
.hp-ai-banner-btn {
    white-space: nowrap;
    flex-shrink: 0;
}

/* --- Best-of Grid (colored cards) --- */
.hp-bestof-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 14px;
    padding-bottom: 56px;
    border-bottom: 1px solid #e5e2de;
}
.hp-bestof-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    padding: 24px 14px;
    background: white;
    border: 1.5px solid #e5e2de;
    border-radius: 14px;
    text-decoration: none;
    color: var(--dark);
    text-align: center;
    transition: all 0.2s ease;
}
.hp-bestof-card:hover {
    border-color: var(--accent, var(--primary));
    background: color-mix(in srgb, var(--accent, var(--primary)) 6%, white);
    transform: translateY(-3px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.hp-bestof-emoji {
    font-size: 1.8rem;
    line-height: 1;
}
.hp-bestof-label {
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.3;
    color: var(--dark);
}
.hp-bestof-card:hover .hp-bestof-label {
    color: var(--accent, var(--primary));
}

/* --- Split Editorial (Guides) --- */
.hp-split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    padding-bottom: 56px;
    border-bottom: 1px solid #e5e2de;
}
.hp-split-feature {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
}
.hp-split-feature img {
    width: 100%;
    aspect-ratio: 4/3;
    object-fit: cover;
    border-radius: 12px;
    margin-bottom: 16px;
    transition: transform 0.3s ease;
}
.hp-split-feature:hover img {
    transform: scale(1.02);
}
.hp-split-feature-body .hp-mosaic-tag {
    display: block;
    margin-bottom: 8px;
}
.hp-split-feature-title {
    font-size: 1.6rem;
    font-weight: 800;
    line-height: 1.2;
    color: var(--dark);
    margin-bottom: 10px;
    transition: color 0.15s;
}
.hp-split-feature:hover .hp-split-feature-title {
    color: var(--primary);
}
.hp-split-feature-excerpt {
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-light);
}

/* Numbered list */
.hp-split-list {
    display: flex;
    flex-direction: column;
}
.hp-list-item {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid #eee;
    text-decoration: none;
    color: inherit;
    transition: transform 0.15s ease;
}
.hp-list-item:first-child {
    padding-top: 0;
}
.hp-list-item:last-child {
    border-bottom: none;
}
.hp-list-item:hover {
    transform: translateX(4px);
}
.hp-list-item:hover .hp-list-title {
    color: var(--primary);
}
.hp-list-num {
    font-size: 2rem;
    font-weight: 900;
    color: #e5e2de;
    line-height: 1;
    flex-shrink: 0;
    min-width: 40px;
}
.hp-list-item:hover .hp-list-num {
    color: var(--primary);
}
.hp-list-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark);
    margin-top: 4px;
    transition: color 0.15s;
}

/* --- More Articles (horizontal image cards) --- */
.hp-articles-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 24px;
    padding-bottom: 56px;
    border-bottom: 1px solid #e5e2de;
}
.hp-article-card {
    text-decoration: none;
    color: inherit;
    border-radius: 12px;
    overflow: hidden;
    background: white;
    border: 1px solid #e5e2de;
    transition: all 0.2s ease;
}
.hp-article-card:hover {
    border-color: var(--primary);
    box-shadow: 0 6px 24px rgba(0,0,0,0.08);
    transform: translateY(-3px);
}
.hp-article-card img {
    width: 100%;
    aspect-ratio: 16/10;
    object-fit: cover;
    display: block;
}
.hp-article-card-body {
    padding: 16px 20px 20px;
}
.hp-article-card-body .hp-mosaic-tag {
    display: block;
    margin-bottom: 6px;
}
.hp-article-card-title {
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
    color: var(--dark);
    transition: color 0.15s;
}
.hp-article-card:hover .hp-article-card-title {
    color: var(--primary);
}

/* --- Responsive --- */
@media (max-width: 1024px) {
    .hp-bestof-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .hp-hero-inner {
        min-height: 380px;
    }
    .hp-hero-title {
        font-size: 2rem;
    }
    .hp-mosaic {
        grid-template-columns: 1fr;
    }
    .hp-mosaic-feature {
        min-height: 280px;
    }
    .hp-reviews-row {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    .hp-split {
        grid-template-columns: 1fr;
        gap: 32px;
    }
    .hp-articles-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
    .hp-ai-banner-inner {
        flex-direction: column;
        text-align: center;
        padding: 28px 24px;
    }
    .hp-bestof-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {
    .hp-hero-inner {
        min-height: 320px;
    }
    .hp-hero-title {
        font-size: 1.6rem;
    }
    .hp-hero-content {
        padding-bottom: 36px;
    }
    .hp-mosaic-feature {
        min-height: 240px;
    }
    .hp-mosaic-feature-title {
        font-size: 1.2rem;
    }
    .hp-bestof-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }
    .hp-bestof-card {
        padding: 16px 10px;
    }
    .hp-bestof-emoji {
        font-size: 1.4rem;
    }
    .hp-split-feature-title {
        font-size: 1.3rem;
    }
    .hp-articles-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }
    .hp-ai-banner-inner {
        gap: 16px;
        padding: 24px 20px;
    }
}

/* ========================================
   RANGE SLIDER — Pricing comparison tool
   ======================================== */

input[type="range"] {
    -webkit-appearance: none;
    appearance: none;
    height: 8px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    outline: none;
    cursor: pointer;
}

input[type="range"]::-webkit-slider-thumb {
    -webkit-appearance: none;
    appearance: none;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(184, 115, 51, 0.3);
    transition: box-shadow 0.2s;
}

input[type="range"]::-webkit-slider-thumb:hover {
    box-shadow: 0 4px 14px rgba(184, 115, 51, 0.45);
}

input[type="range"]::-moz-range-thumb {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: white;
    border: 3px solid var(--primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(184, 115, 51, 0.3);
}

/* Responsive overrides for pricing tool */
@media (max-width: 600px) {
    #pricing-cards-container {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

/* ========================================
   BATTLE CARDS — Head-to-Head Comparisons
   ======================================== */

.vs-matchup-card {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 20px;
    background: #fff;
    border: 1px solid #e7e5e4;
    border-radius: 14px;
    text-decoration: none;
    color: inherit;
    transition: transform 0.2s, box-shadow 0.2s;
}
.vs-matchup-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(44, 24, 16, 0.1);
}
.vs-card-matchup {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    width: 100%;
}
.vs-card-side {
    display: flex;
    align-items: center;
    gap: 8px;
    flex: 1;
    min-width: 0;
}
.vs-card-side:last-of-type {
    justify-content: flex-end;
    text-align: right;
}
.vs-card-side img {
    width: 32px;
    height: 32px;
    object-fit: contain;
    flex-shrink: 0;
}
.vs-card-side span {
    font-weight: 700;
    font-size: 0.95rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.vs-badge {
    font-weight: 800;
    font-size: 0.75rem;
    color: var(--primary);
    flex-shrink: 0;
}
.vs-card-tag {
    background: #f5f5f4;
    color: var(--text-light);
    font-size: 0.7rem;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 6px;
    align-self: flex-start;
}
.vs-hero {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 24px;
    padding: 32px 24px;
    background: var(--bg-light);
    border-radius: 16px;
    margin-bottom: 32px;
    flex-wrap: wrap;
    text-align: center;
}
.vs-hero-product {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    min-width: 120px;
}
.vs-hero-product img {
    width: 56px;
    height: 56px;
    object-fit: contain;
}
.vs-scores {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
    margin-bottom: 32px;
}
.vs-score-card {
    padding: 16px;
    border-radius: 12px;
    border: 1px solid #e7e5e4;
    text-align: center;
}
.vs-score-card.winner {
    border-color: #16a34a;
    background: #f0fdf4;
}
.vs-feature-table {
    width: 100%;
    border-collapse: collapse;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(44, 24, 16, 0.06);
    margin-bottom: 32px;
}
.vs-feature-table th {
    padding: 14px;
    background: var(--primary);
    color: #fff;
    text-align: left;
    font-weight: 700;
}
.vs-feature-table td {
    padding: 12px 14px;
    color: var(--text-main);
}
.vs-feature-table tr:nth-child(even) {
    background: var(--bg-light);
}
.vs-highlights {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 32px;
}
.vs-highlight-col {
    padding: 20px;
    border-radius: 12px;
    background: #fff;
    border: 1px solid #e7e5e4;
}
.vs-highlight-col.side-a {
    border-left: 4px solid #16a34a;
}
.vs-highlight-col.side-b {
    border-left: 4px solid #3b82f6;
}
.vs-highlight-col li {
    padding: 6px 0;
    font-size: 0.95rem;
    list-style: none;
}
.vs-verdict {
    background: #fff8ed;
    border: 2px solid #f3e8d2;
    border-radius: 16px;
    padding: 28px 24px;
    margin-bottom: 32px;
    text-align: center;
}
.vs-verdict blockquote {
    font-size: 1.4rem;
    font-weight: 800;
    color: var(--primary);
    margin: 0 0 12px;
    line-height: 1.3;
}
.vs-ctas {
    display: flex;
    gap: 12px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 32px;
}
@media (max-width: 768px) {
    .vs-scores { grid-template-columns: 1fr; }
    .vs-highlights { grid-template-columns: 1fr; }
    .vs-hero { gap: 16px; padding: 24px 16px; }
}

/* ========================================
   REVIEW PAGE – SIDE-PANEL TABLE OF CONTENTS
   ======================================== */
/* --- Review outer flex layout --- */
.review-outer {
    display: flex;
    gap: 28px;
    align-items: flex-start;
    margin-top: -40px;
    position: relative;
    z-index: 10;
}

/* --- TOC sidebar --- */
.review-toc {
    display: none;
    width: 200px;
    flex-shrink: 0;
    position: sticky;
    top: 90px;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
    background: white;
    border-radius: 14px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    padding: 0 0 8px 0;
}

@media (min-width: 1280px) {
    .review-toc.visible {
        display: block;
    }
    .review-content-wrapper {
        margin-top: 0;
        margin-left: 0;
        margin-right: 0;
        flex: 1;
        min-width: 0;
    }
}

.review-toc-label {
    font-size: 0.7rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--primary);
    padding: 14px 14px 10px 14px;
    border-bottom: 1px solid #f0f0f0;
    margin-bottom: 6px;
}

.review-toc a {
    display: block;
    padding: 7px 14px 7px 12px;
    font-size: 0.78rem;
    color: var(--text-light);
    text-decoration: none;
    border-left: 3px solid transparent;
    transition: color 0.15s, border-color 0.15s, background 0.15s;
    line-height: 1.4;
}

.review-toc a:hover {
    color: var(--dark);
    background: #fafafa;
    border-left-color: #e5e7eb;
}

.review-toc a.active {
    color: var(--primary);
    border-left-color: var(--primary);
    font-weight: 600;
    background: #fff8f0;
}
