/* ProstaDefend Premium Styles - Defense Theme */
:root {
    /* New Color Palette: Crimson & Slate */
    --primary-dark: #450a0a;  /* Deep Red/Maroon */
    --primary-blue: #7f1d1d;  /* Crimson Red (Main Brand Color) */
    --accent-blue: #991b1b;   /* Bright Red Accent */
    --light-blue: #fef2f2;    /* Very Light Red/Pink Background */
    --sky-blue: #f8fafc;      /* Slate/Grey Background */
    --cta-orange: #d97706;    /* Gold/Amber (Good contrast on Red) */
    --cta-hover: #b45309;     /* Darker Gold */
    --success-green: #15803d; /* Checkmarks (keep green for positive affirmation) */
    --gold: #fbbf24;          /* Stars/Badges */
    --white: #ffffff;
    --red: #dc2626;
    --text-gray: #4b5563;
    
    /* Formatting Variables */
    --shadow: 0 4px 20px rgba(127, 29, 29, 0.08); /* Red-tinted shadow */
    --shadow-lg: 0 10px 40px rgba(127, 29, 29, 0.12);
    --radius: 12px;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
    font-family: 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 18px;
    line-height: 1.6;
    color: #1f2937;
    background: #fff;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 20px; }

/* Announcement Bar */
.announcement-bar {
    background: var(--primary-dark);
    color: #fff;
    padding: 10px 0;
    text-align: center;
    font-size: 14px;
    font-weight: 500;
}
.announcement-bar a { color: var(--gold); text-decoration: underline; }

/* Header */
.header {
    background: #fff;
    padding: 15px 0;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
}
.header-content { display: flex; justify-content: space-between; align-items: center; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 24px; color: var(--primary-blue); }
.logo-icon svg { width: 32px; height: 32px; fill: var(--primary-blue); }
.header-nav { display: flex; gap: 25px; }
.header-nav a { text-decoration: none; color: var(--primary-dark); font-weight: 600; font-size: 16px; transition: color 0.3s; }
.header-nav a:hover { color: var(--cta-orange); }
.header-cta-btn {
    background: var(--cta-orange);
    color: #fff;
    padding: 12px 25px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 700;
    font-size: 14px;
    transition: background 0.3s;
}
.header-cta-btn:hover { background: var(--cta-hover); }

/* Hero */
.hero { background: linear-gradient(180deg, var(--light-blue) 0%, #fff 100%); padding: 60px 0; }
.hero-content { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: center; }
.hero-badge {
    background: var(--light-blue);
    color: var(--primary-blue);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
    display: inline-block;
    margin-bottom: 20px;
    border: 1px solid var(--accent-blue);
}
.hero h1 { font-size: 46px; line-height: 1.1; color: var(--primary-dark); margin-bottom: 20px; font-weight: 900; }
.hero h1 span { color: var(--cta-orange); }
.hero-subtitle { font-size: 19px; color: var(--text-gray); margin-bottom: 30px; }
.hero-benefits { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 35px; }
.hero-benefit { display: flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; }
.hero-benefit svg { width: 20px; height: 20px; fill: var(--primary-blue); } /* Changed checkmarks to Blue/Red for this theme */
.hero-cta-group { display: flex; flex-direction: column; gap: 15px; align-items: flex-start; }
.cta-button {
    background: linear-gradient(to right, var(--cta-orange), var(--cta-hover));
    color: white;
    padding: 20px 40px;
    border-radius: 8px;
    font-size: 20px;
    font-weight: 700;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 10px 25px rgba(217, 119, 6, 0.4);
    transition: transform 0.2s;
}
.cta-button:hover { transform: translateY(-3px); }
.cta-button svg { width: 24px; height: 24px; fill: white; }
.hero-guarantee { display: flex; gap: 10px; align-items: center; font-size: 14px; font-weight: 600; color: var(--text-gray); }
.hero-guarantee svg { width: 20px; height: 20px; fill: var(--primary-blue); }
.hero-image { position: relative; text-align: center; }
.hero-image img { max-width: 100%; border-radius: 20px; box-shadow: var(--shadow-lg); }
.hero-floating-badge {
    position: absolute;
    bottom: 30px;
    right: -20px;
    background: white;
    padding: 15px;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    text-align: center;
}
.badge-number { font-size: 24px; font-weight: 800; color: var(--primary-dark); display: block; }
.badge-stars { color: var(--gold); }
.badge-text { font-size: 12px; color: var(--text-gray); }

/* Social Proof */
.social-proof { background: var(--primary-dark); padding: 40px 0; color: white; }
.proof-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; text-align: center; }
.stat-number { display: block; font-size: 32px; font-weight: 800; color: var(--gold); }
.stat-label { font-size: 14px; text-transform: uppercase; letter-spacing: 1px; opacity: 0.8; }

/* Section Standard Styles */
.section-header { text-align: center; max-width: 700px; margin: 0 auto 50px; }
.section-tag { color: var(--accent-blue); font-weight: 800; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; display: block; margin-bottom: 10px; }
.section-header h2 { font-size: 36px; color: var(--primary-dark); margin-bottom: 15px; }

/* About / Video Section */
.video-section { padding: 80px 0; }
.about-content { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.about-feature { display: flex; gap: 20px; margin-bottom: 30px; }
.feature-icon { width: 50px; height: 50px; background: var(--light-blue); border-radius: 50%; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.feature-icon svg { width: 24px; height: 24px; fill: var(--primary-blue); }
.feature-content h3 { font-size: 20px; margin-bottom: 8px; color: var(--primary-dark); }
.about-image img { width: 100%; border-radius: 20px; }

/* Ingredients */
.ingredients { background: var(--primary-dark); padding: 80px 0; color: white; }
.ingredients .section-header h2 { color: white; }
.ingredients .section-header p { color: #d1d5db; }
.ingredients-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; margin-bottom: 50px; }
.ingredient-card { background: rgba(255,255,255,0.05); padding: 30px; border-radius: 12px; border: 1px solid rgba(255,255,255,0.1); }
.ingredient-icon { font-size: 40px; margin-bottom: 15px; }
.ingredient-card h3 { color: var(--gold); margin-bottom: 10px; font-size: 20px; }
.ingredients-cta { text-align: center; }

/* Problem/Solution */
.problem-solution { padding: 80px 0; background: var(--sky-blue); }
.ps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; }
.problem-side { background: white; padding: 40px; border-radius: 20px; border: 2px solid #fee2e2; }
.solution-side { background: white; padding: 40px; border-radius: 20px; border: 2px solid #e2e8f0; }
.section-tag.red { color: var(--red); }
.section-tag.green { color: var(--primary-blue); } /* Changed to primary blue/red for theme consistency */
.problem-list li, .solution-list li { list-style: none; display: flex; gap: 15px; padding: 10px 0; font-size: 16px; border-bottom: 1px solid #f3f4f6; }
.problem-list svg { fill: var(--red); width: 24px; height: 24px; flex-shrink: 0; }
.solution-list svg { fill: var(--primary-blue); width: 24px; height: 24px; flex-shrink: 0; }

/* Pricing */
.pricing { padding: 80px 0; background: white; }
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; align-items: end; }
.pricing-card { background: white; border: 1px solid #e5e7eb; border-radius: 20px; padding: 30px; text-align: center; transition: all 0.3s; }
.pricing-card.popular { border: 2px solid var(--cta-orange); background: #fff7ed; transform: scale(1.05); z-index: 10; box-shadow: 0 20px 40px rgba(0,0,0,0.1); }
.popular-badge { background: var(--cta-orange); color: white; display: inline-block; padding: 5px 15px; border-radius: 20px; font-size: 12px; font-weight: 700; margin-bottom: 15px; }
.price .amount { font-size: 48px; font-weight: 800; color: var(--primary-dark); }
.price .original { text-decoration: line-through; color: var(--text-gray); }
.savings-tag { background: var(--red); color: white; font-weight: 700; font-size: 14px; padding: 5px 10px; border-radius: 4px; display: inline-block; margin: 10px 0; }
.pricing-features { text-align: left; margin: 20px 0; }
.pricing-features li { list-style: none; padding: 8px 0; display: flex; gap: 10px; font-size: 15px; }
.pricing-features svg { width: 18px; height: 18px; fill: var(--primary-blue); }

/* Guarantee */
.guarantee-section { background: var(--light-blue); padding: 60px 0; border-top: 1px solid #e5e7eb; }
.guarantee-content { display: flex; align-items: center; gap: 40px; }
.guarantee-badge { background: white; width: 120px; height: 120px; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; box-shadow: var(--shadow); flex-shrink: 0; border: 4px solid var(--primary-blue); color: var(--primary-blue); font-weight: 800; }
.guarantee-badge svg { width: 30px; height: 30px; fill: var(--primary-blue); }

/* FAQ - FIXED SVG SIZE */
.faq-item {
    border: 1px solid #e5e7eb;
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}
.faq-question {
    width: 100%;
    text-align: left;
    padding: 20px;
    background: white;
    border: none;
    font-size: 18px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.faq-question svg {
    width: 24px;
    height: 24px;
    fill: var(--primary-blue);
    transition: transform 0.3s ease;
    flex-shrink: 0;
}
.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}
.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
    background: #f9fafb;
}
.faq-item.active .faq-answer {
    max-height: 300px;
}
.faq-answer p {
    padding: 20px;
    margin: 0;
}

/* Footer */
.footer { background: #111827; color: #9ca3af; padding: 60px 0 20px; }
.footer-brand .logo-text { color: white; font-size: 24px; font-weight: 800; margin-bottom: 15px; }
.footer-links a { color: #9ca3af; text-decoration: none; margin-bottom: 10px; display: block; }
.footer-bottom { margin-top: 50px; border-top: 1px solid #374151; padding-top: 20px; text-align: center; font-size: 14px; }

/* Sales Notification Popup */
.purchase-popup {
    position: fixed;
    bottom: 25px;
    left: 25px;
    background: #fff;
    padding: 18px 22px;
    border-radius: 12px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.15);
    display: flex;
    align-items: center;
    gap: 15px;
    z-index: 9999;
    transform: translateX(-150%);
    transition: transform 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    max-width: 320px;
    border-left: 5px solid var(--primary-blue);
}
.purchase-popup.show { transform: translateX(0); }
.popup-icon {
    width: 45px;
    height: 45px;
    min-width: 45px;
    background: var(--light-blue);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.popup-icon svg { width: 24px; height: 24px; fill: var(--primary-blue); }
.popup-content p { font-size: 14px; color: #1f2937; margin: 0; line-height: 1.4; }
.popup-content span { font-size: 12px; color: #6b7280; }

/* Exit Intent Overlay */
.exit-popup-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(4px);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}
.exit-popup-overlay.show { opacity: 1; visibility: visible; }

/* Exit Intent Modal */
.exit-popup {
    background: #fff;
    padding: 40px;
    border-radius: 20px;
    text-align: center;
    max-width: 500px;
    width: 90%;
    position: relative;
    transform: scale(0.9);
    transition: transform 0.3s ease;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    border-top: 6px solid var(--cta-orange);
}
.exit-popup-overlay.show .exit-popup { transform: scale(1); }

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 32px;
    color: var(--text-gray);
    cursor: pointer;
    line-height: 1;
}
.exit-popup-close:hover { color: var(--red); }

.exit-popup h3 {
    font-size: 28px;
    font-weight: 800;
    color: var(--primary-dark);
    margin-bottom: 10px;
}
.exit-popup p {
    font-size: 16px;
    color: var(--text-gray);
    margin-bottom: 25px;
}
.exit-popup img {
    max-width: 100%;
    height: auto;
    margin-bottom: 25px;
    border-radius: 8px;
    box-shadow: 0 4px 6px rgba(0,0,0,0.1);
}
.exit-note {
    font-size: 13px;
    color: var(--red);
    font-weight: 600;
    margin-top: 15px;
}

/* Mobile */
@media (max-width: 768px) {
    .hero-content, .about-content, .ps-grid, .pricing-grid, .ingredients-grid, .proof-stats, .guarantee-content { grid-template-columns: 1fr; }
    .header-nav { display: none; }
    .guarantee-content { flex-direction: column; text-align: center; }
    .pricing-card.popular { transform: scale(1); }
    .hero h1 { font-size: 32px; }
    .proof-stats { grid-template-columns: repeat(2, 1fr); }
}