/* "Americana Prime" Design System - Optimized for US Trust & Conversion */
/* Palette: Deep Navy (Trust) + Vivid Orange (Action) + Start White (Clean) */

:root {
    /* Base Colors (Trust/Tech) */
    --bg-color: #F5F7FA;
    /* Light Gray for backgrounds */
    --card-bg: #FFFFFF;

    /* Text Colors */
    --text-main: #1C1C1C;
    /* Soft Black */
    --text-muted: #5F6C7B;
    /* Secondary Gray */

    /* Brand Colors */
    --primary-brand: #0A2540;
    /* Deep Navy */
    --primary-gradient: linear-gradient(135deg, #0A2540 0%, #0B1F33 100%);

    /* Conversion Colors (CRITICAL) */
    --accent-color: #FF9900;
    /* Amazon Orange Action */
    --accent-hover: #E68A00;
    --amazon-btn: #FF9900;
    --amazon-btn-text: #000000;
    /* High Contrast */

    /* Conversion Green Alternative (if needed) */
    --conversion-green: #2E7D32;

    /* Badge Colors */
    --badge-gold: #FFC107;
    /* Soft Gold */
    --badge-gold-bg: #FFF8E1;

    --badge-green: #2E7D32;
    --badge-green-bg: #E8F5E9;

    --badge-blue: #0A2540;
    /* Navy for Editor's Pick */
    --badge-blue-bg: #E3F2FD;

    --border-color: #E2E8F0;
    --shadow-soft: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 2px 4px -1px rgba(0, 0, 0, 0.03);
    --shadow-strong: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    background-color: var(--bg-color);
    color: var(--text-main);
    margin: 0;
    padding: 0;
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
}

.container {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* Sticky FOMO Banner */
.sticky-banner {
    background: var(--primary-brand);
    color: #fff;
    text-align: center;
    padding: 0.75rem;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.02em;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
}

/* Navbar */
.navbar {
    background: #fff;
    border-bottom: 1px solid var(--border-color);
    padding: 1rem 0;
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 1.25rem;
}

.logo {
    font-weight: 900;
    font-size: 1.5rem;
    color: var(--primary-brand);
    text-decoration: none;
    letter-spacing: -0.05em;
}

.logo span {
    color: var(--accent-color);
}

.nav-links a {
    color: var(--text-muted);
    text-decoration: none;
    font-weight: 600;
    margin-left: 2rem;
    font-size: 0.95rem;
}

.nav-links a:hover {
    color: var(--primary-brand);
}

/* Hero Section */
.hero {
    text-align: center;
    padding: 3rem 0 1.5rem;
    /* Compressed for "Above the Fold" */
    background: linear-gradient(to bottom, #fff 0%, var(--bg-color) 100%);
}

.badge-viral {
    background-color: #EFF6FF;
    color: #1D4ED8;
    font-size: 0.8rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    padding: 0.5rem 1rem;
    border-radius: 99px;
    margin-bottom: 1.5rem;
    display: inline-block;
    border: 1px solid #DBEAFE;
}

.hero h1 {
    font-size: 2.75rem;
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: 1.25rem;
    letter-spacing: -0.03em;
    color: var(--text-main);
}

.hero p {
    color: var(--text-muted);
    font-size: 1.25rem;
    max-width: 650px;
    margin: 0 auto;
}

/* Trust Bar */
.trust-bar {
    background-color: #F8FAFC;
    padding: 0.8rem 0;
    font-size: 0.85rem;
    font-weight: 600;
    color: #475569;
    text-align: center;
    border-bottom: 1px solid #E2E8F0;
    letter-spacing: 0.02em;
}

/* Product Cards - Mobile Optimized */
.product-feed {
    display: grid;
    grid-template-columns: 1fr;
    gap: 2.5rem;
    margin-bottom: 5rem;
}

.product-card {
    background: var(--card-bg);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--border-color);
    position: relative;
    display: flex;
    flex-direction: column;
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-strong);
    border-color: #CBD5E1;
}

.image-wrapper {
    position: relative;
    height: 320px;
    background: #F1F5F9;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.product-card:hover .image-wrapper img {
    transform: scale(1.05);
}

/* New Badges - Enhanced Visibility */
.badge {
    display: inline-block;
    background-color: #0A2540;
    color: #fff;
    padding: 0.5rem 1rem;
    border-radius: 4px;
    font-weight: 700;
    font-size: 0.85rem;
    margin-bottom: 1.25rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.fomo-section {
    background-color: #FEF2F2;
    /* Soft red bg for urgency */
    border: 2px dashed #EF4444;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    margin: 4rem 0;
}

.fomo-section h2 {
    color: #B91C1C;
    margin-bottom: 0.5rem;
}

.badge-solid {
    position: absolute;
    top: 1rem;
    left: 1rem;
    padding: 0.6rem 1.2rem;
    /* Larger padding */
    border-radius: 6px;
    /* Sharper corners for authority */
    font-size: 0.8rem;
    font-weight: 900;
    /* Bolder */
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.25);
    /* Stronger shadow */
    z-index: 10;
    border: 2px solid white;
    /* White border for pop */
}

.badge-overall {
    background: var(--badge-gold);
    color: #000;
    border: 1px solid #FFD54F;
}

.badge-value {
    background: var(--badge-green);
    color: #fff;
    border: 1px solid #4CAF50;
}

.badge-editor {
    background: var(--primary-brand);
    /* Navy for Authority */
    color: #fff;
    border: 1px solid #1C1C1C;
}

.content {
    padding: 2rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

h2 {
    font-size: 1.75rem;
    font-weight: 800;
    margin: 0 0 0.5rem 0;
    line-height: 1.2;
}

.rating {
    display: inline-flex;
    align-items: center;
    background: #FFFBEB;
    padding: 0.25rem 0.75rem;
    border-radius: 6px;
    color: #B45309;
    font-weight: 700;
    font-size: 0.9rem;
    margin-bottom: 1.25rem;
    align-self: flex-start;
}

.description {
    color: var(--text-muted);
    font-size: 1.05rem;
    margin-bottom: 1.5rem;
}

.benefits {
    list-style: none;
    padding: 1rem;
    margin: 0 0 2rem 0;
    background: #F8FAFC;
    border-radius: 12px;
}

.benefits li {
    margin-bottom: 0.75rem;
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--text-main);
    display: flex;
    align-items: center;
}

.benefits li:last-child {
    margin-bottom: 0;
}

.benefits li::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 20px;
    height: 20px;
    background: #DCFCE7;
    color: #166534;
    border-radius: 50%;
    margin-right: 0.75rem;
    font-size: 0.75rem;
    font-weight: 900;
}

/* Call to Action */
.btn-buy {
    background-color: #FF9900;
    color: #000;
    font-weight: bold;
    padding: 1.25rem;
    border-radius: 12px;
    text-decoration: none;
    font-size: 1.1rem;
    text-align: center;
    transition: all 0.2s;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    margin-top: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

.btn-buy:hover {
    background: #F7CA00;
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.btn-buy::after {
    content: "➞";
    margin-left: 0.5rem;
    transition: transform 0.2s;
}

.btn-buy:hover::after {
    transform: translateX(4px);
}

/* Secondary Link (Silo) */
.text-link {
    display: block;
    text-align: center;
    margin-top: 0.5rem;
    color: var(--text-muted);
    font-size: 0.9rem;
    text-decoration: underline;
    text-decoration-color: var(--border-color);
    transition: all 0.2s;
}

.text-link:hover {
    color: var(--primary-brand);
    text-decoration-color: var(--primary-brand);
}

.urgency-sub {
    text-align: center;
    color: #DC2626;
    /* Red-600 */
    font-size: 0.75rem;
    font-weight: 800;
    text-transform: uppercase;
    margin-top: 0.5rem;
    letter-spacing: 0.5px;
    animation: pulse 2s infinite;
}

@keyframes pulse {
    0% {
        opacity: 1;
    }

    50% {
        opacity: 0.7;
    }

    100% {
        opacity: 1;
    }
}

/* Comparison Tables */
.comparison-container {
    margin: 4rem 0;
}

.comparison-header {
    text-align: center;
    margin-bottom: 2rem;
}

.comparison-scroll {
    overflow-x: auto;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-color);
}

.comp-table {
    width: 100%;
    min-width: 800px;
    /* Ensure trigger scroll on mobile */
    border-collapse: collapse;
    background: #fff;
}

.comp-table th {
    background: var(--primary-brand);
    color: white;
    padding: 1.5rem;
    text-align: left;
    font-size: 1.1rem;
}

.comp-table td {
    padding: 1.5rem;
    border-bottom: 1px solid var(--border-color);
    color: var(--text-muted);
    font-size: 1rem;
}

.comp-table tr:last-child td {
    border-bottom: none;
}

.comp-table td:first-child {
    font-weight: 700;
    color: var(--text-main);
    background: #F8FAFC;
    width: 25%;
}

.comp-winner {
    background: #FFFBEB !important;
    /* Highlight the winner column */
}

/* FAQ */
.faq-section {
    max-width: 800px;
    margin: 0 auto 6rem;
}

.accordion {
    background-color: #fff;
    border-radius: 12px;
    margin-bottom: 1rem;
    border: 1px solid var(--border-color);
    overflow: hidden;
}

.accordion-header {
    background: #fff;
    padding: 1.5rem;
    width: 100%;
    text-align: left;
    border: none;
    outline: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 1.1rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.accordion-header::after {
    content: "+";
    font-size: 1.5rem;
    color: var(--accent-color);
}

.accordion-header.active::after {
    content: "-";
}

.panel {
    padding: 0 1.5rem;
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease-out;
    background: #fff;
}

.panel p {
    padding-bottom: 1.5rem;
    color: var(--text-muted);
}

/* Mobile Action Bar */
.mobile-action-bar {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background: #fff;
    padding: 1rem;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    z-index: 9999;
    justify-content: space-between;
    align-items: center;
    box-sizing: border-box;
}

.mobile-action-text {
    font-weight: 700;
    font-size: 0.9rem;
}

.mobile-action-btn {
    background: var(--amazon-btn);
    color: #000;
    padding: 0.75rem 1.5rem;
    border-radius: 99px;
    font-weight: 700;
    text-decoration: none;
    font-size: 0.9rem;
}

/* Footer */
footer {
    text-align: center;
    padding: 4rem 1.5rem;
    background: var(--primary-brand);
    color: #94A3B8;
    margin-top: 4rem;
}

@media (max-width: 768px) {
    .mobile-action-bar {
        display: flex;
    }

    body {
        padding-bottom: 80px;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .container {
        padding: 0 1rem;
    }

    .nav-links {
        display: none;
        /* Simplify nav on mobile for conversion focus */
    }
}

@media (min-width: 768px) {
    .product-feed {
        grid-template-columns: repeat(3, 1fr);
    }

    .hero h1 {
        font-size: 3.5rem;
    }
}