/* 
 * AlgePrime Landing Page Styles v2
 * Font Sizes: Desktop & Mobile as per specification
 * Optimized for: GTmetrix A+, LCP < 1.2s, 100% Mobile Responsive
 */

/* CSS Variables */
:root {
    --primary: #0f4c75;
    --primary-dark: #1b262c;
    --primary-light: #3282b8;
    --accent: #bbe1fa;
    --gold: #ffd700;
    --white: #ffffff;
    --light: #f8f9fa;
    --gray: #6c757d;
    --dark: #212529;
    --text: #1a1a1a;
    --text-light: #4a5568;
    --gradient: linear-gradient(135deg, #0f4c75 0%, #3282b8 50%, #0f4c75 100%);
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.05);
    --shadow: 0 4px 15px rgba(0,0,0,0.1);
    --shadow-lg: 0 10px 40px rgba(0,0,0,0.15);
    --radius: 12px;
    --radius-lg: 20px;
    --transition: all 0.3s ease;
    --font-display: 'Playfair Display', Georgia, serif;
    --font-body: 'DM Sans', -apple-system, BlinkMacSystemFont, sans-serif;
    
    /* Font Sizes - Desktop */
    --base-font: 18px;
    --hero-title: 46px;
    --hero-subtitle: 22px;
    --benefits-list: 19px;
    --section-title: 40px;
    --problem-cards: 20px;
    --solution-benefits: 19px;
    --doctor-cards: 17px;
    --testimonials: 17px;
    --faq-question: 19px;
    --faq-answer: 18px;
    --exit-popup-title: 30px;
}

/* Reset & Base */
*, *::before, *::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: var(--base-font);
    line-height: 1.7;
    color: var(--text);
    background: var(--white);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul, ol {
    list-style: none;
}

p {
    color: var(--text);
    margin-bottom: 1rem;
}

/* Container */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-display);
    font-weight: 700;
    line-height: 1.2;
    color: var(--dark);
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 14px 32px;
    font-family: var(--font-body);
    font-size: 16px;
    font-weight: 600;
    border-radius: var(--radius);
    border: none;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    gap: 8px;
}

.btn-primary {
    background: var(--gradient);
    color: var(--white);
    box-shadow: 0 4px 15px rgba(15, 76, 117, 0.3);
}

.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(15, 76, 117, 0.4);
}

.btn-secondary {
    background: var(--white);
    color: var(--primary);
    border: 2px solid var(--primary);
}

.btn-secondary:hover {
    background: var(--primary);
    color: var(--white);
}

.btn-lg {
    padding: 18px 40px;
    font-size: 18px;
}

.btn-xl {
    padding: 22px 50px;
    font-size: 20px;
}

.btn-block {
    width: 100%;
}

/* Header */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    transition: var(--transition);
}

.header.scrolled {
    box-shadow: var(--shadow);
}

.header-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    height: 80px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-dark);
}

.logo img {
    width: 40px;
    height: 40px;
    border-radius: 8px;
}

.nav {
    display: flex;
    align-items: center;
    gap: 40px;
}

.nav-link {
    font-weight: 500;
    color: var(--text);
    font-size: 16px;
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--primary);
    transition: var(--transition);
}

.nav-link:hover::after {
    width: 100%;
}

.header-cta {
    padding: 12px 24px;
}

.mobile-menu-btn {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 5px;
}

.mobile-menu-btn span {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--dark);
    border-radius: 3px;
    transition: var(--transition);
}

.mobile-menu-btn.active span:nth-child(1) {
    transform: rotate(45deg) translate(5px, 5px);
}

.mobile-menu-btn.active span:nth-child(2) {
    opacity: 0;
}

.mobile-menu-btn.active span:nth-child(3) {
    transform: rotate(-45deg) translate(7px, -6px);
}

/* Hero Section */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    padding: 120px 0 80px;
    background: linear-gradient(180deg, #f8fbff 0%, #e8f4fd 100%);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 80%, rgba(50, 130, 184, 0.1) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(15, 76, 117, 0.1) 0%, transparent 50%);
    pointer-events: none;
}

.hero-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
    position: relative;
    z-index: 1;
}

.hero-content {
    animation: fadeInUp 0.8s ease forwards;
}

.hero-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(15, 76, 117, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 30px;
    margin-bottom: 24px;
}

.hero-title {
    font-size: var(--hero-title);
    margin-bottom: 24px;
    color: var(--primary-dark);
}

.gradient-text {
    background: var(--gradient);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-subtitle {
    font-size: var(--hero-subtitle);
    color: var(--text);
    margin-bottom: 24px;
    max-width: 560px;
}

.hero-benefits {
    margin-bottom: 32px;
}

.hero-benefits li {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: var(--benefits-list);
    color: var(--text);
    padding: 8px 0;
}

.hero-benefits svg {
    color: var(--primary);
    flex-shrink: 0;
}

.hero-cta {
    display: flex;
    gap: 16px;
    margin-bottom: 48px;
    flex-wrap: wrap;
}

.hero-stats {
    display: flex;
    gap: 40px;
}

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

.stat-number {
    display: block;
    font-family: var(--font-display);
    font-size: 32px;
    font-weight: 700;
    color: var(--primary);
}

.stat-label {
    font-size: 14px;
    color: var(--gray);
}

.hero-image {
    display: flex;
    justify-content: center;
    align-items: center;
    animation: fadeInRight 0.8s ease forwards;
}

.hero-image-wrapper {
    position: relative;
}

.hero-image-wrapper img {
    width: 100%;
    max-width: 450px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

.hero-image-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 120%;
    height: 120%;
    background: radial-gradient(circle, rgba(50, 130, 184, 0.2) 0%, transparent 70%);
    z-index: -1;
}

.hero-wave {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    overflow: hidden;
    line-height: 0;
}

.hero-wave svg {
    width: 100%;
    height: 80px;
    fill: var(--white);
}

/* Section Styles */
.section-header {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 60px;
}

.section-badge {
    display: inline-block;
    padding: 8px 20px;
    background: rgba(15, 76, 117, 0.1);
    color: var(--primary);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    border-radius: 30px;
    margin-bottom: 16px;
}

.section-title {
    font-size: var(--section-title);
    margin-bottom: 16px;
    color: var(--primary-dark);
}

.section-subtitle {
    font-size: 18px;
    color: var(--text-light);
}

/* What is AlgePrime Section */
.what-is-section {
    padding: 100px 0;
    background: var(--white);
}

.what-is-content {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 60px;
    align-items: center;
}

.what-is-text p {
    font-size: var(--base-font);
    color: var(--text);
    margin-bottom: 20px;
    text-align: justify;
}

.what-is-image img {
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
}

/* Problems Section */
.problems-section {
    padding: 100px 0;
    background: var(--light);
}

.problems-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.problem-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    border-top: 4px solid #e74c3c;
}

.problem-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.problem-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.problem-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.problem-card h3 {
    font-size: var(--problem-cards);
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.problem-card p {
    font-size: 16px;
    color: var(--text-light);
}

/* Solution Section */
.solution-section {
    padding: 100px 0;
    background: var(--white);
}

.solution-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.solution-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
    border-top: 4px solid var(--primary);
}

.solution-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.solution-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow);
}

.solution-icon {
    width: 70px;
    height: 70px;
    margin: 0 auto 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient);
    border-radius: 50%;
    color: var(--white);
}

.solution-card h3 {
    font-size: var(--problem-cards);
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.solution-card p {
    font-size: var(--solution-benefits);
    color: var(--text);
}

/* How It Works Section */
.how-it-works-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f4c75 0%, #1b262c 100%);
    color: var(--white);
}

.how-it-works-section .section-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.how-it-works-section .section-title {
    color: var(--white);
}

.how-it-works-section .section-subtitle {
    color: rgba(255, 255, 255, 0.8);
}

.steps-container {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 40px;
}

.step-card {
    display: flex;
    gap: 24px;
    padding: 30px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border-radius: var(--radius-lg);
    transition: var(--transition);
    opacity: 0;
    transform: translateX(-30px);
    border: 1px solid rgba(255, 255, 255, 0.1);
}

.step-card.animate {
    opacity: 1;
    transform: translateX(0);
}

.step-card:nth-child(even) {
    transform: translateX(30px);
}

.step-card:nth-child(even).animate {
    transform: translateX(0);
}

.step-card:hover {
    background: rgba(255, 255, 255, 0.15);
}

.step-number {
    flex-shrink: 0;
    width: 60px;
    height: 60px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--white);
    color: var(--primary);
    font-family: var(--font-display);
    font-size: 24px;
    font-weight: 700;
    border-radius: 50%;
}

.step-card h3 {
    font-size: var(--problem-cards);
    margin-bottom: 10px;
    color: var(--white);
}

.step-card p {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0;
}

/* Experts Section */
.experts-section {
    padding: 100px 0;
    background: var(--light);
}

.experts-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.expert-card {
    background: var(--white);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.expert-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.expert-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.expert-icon {
    font-size: 48px;
    margin-bottom: 20px;
}

.expert-card h4 {
    font-size: var(--doctor-cards);
    margin-bottom: 12px;
    color: var(--primary-dark);
}

.expert-card p {
    font-size: var(--doctor-cards);
    color: var(--text-light);
    margin-bottom: 0;
}

/* Testimonials Section */
.testimonials-section {
    padding: 100px 0;
    background: var(--white);
}

.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
}

.testimonial-card {
    background: var(--light);
    padding: 40px 30px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    transition: var(--transition);
    opacity: 0;
    transform: translateY(30px);
}

.testimonial-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.testimonial-rating {
    color: var(--gold);
    font-size: 20px;
    margin-bottom: 16px;
    letter-spacing: 2px;
}

.testimonial-text {
    font-size: var(--testimonials);
    color: var(--text);
    font-style: italic;
    margin-bottom: 24px;
    line-height: 1.8;
}

.testimonial-author {
    display: flex;
    align-items: center;
    gap: 16px;
}

.testimonial-author img {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    object-fit: cover;
}

.author-info h4 {
    font-size: 18px;
    margin-bottom: 4px;
    color: var(--primary-dark);
}

.author-info span {
    font-size: 14px;
    color: var(--gray);
}

/* Pricing Section */
.pricing-section {
    padding: 100px 0;
    background: var(--light);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    align-items: flex-start;
}

.pricing-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    padding: 40px 30px;
    box-shadow: var(--shadow);
    border: 2px solid transparent;
    transition: var(--transition);
    position: relative;
    opacity: 0;
    transform: translateY(30px);
}

.pricing-card.animate {
    opacity: 1;
    transform: translateY(0);
}

.pricing-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
    border-color: var(--primary);
    transform: scale(1.05);
}

.pricing-card.featured:hover {
    transform: scale(1.05) translateY(-10px);
}

.pricing-card.featured.animate {
    transform: scale(1.05);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--gradient);
    color: var(--white);
    padding: 6px 20px;
    font-size: 12px;
    font-weight: 700;
    border-radius: 20px;
    white-space: nowrap;
}

.pricing-header {
    text-align: center;
    padding-bottom: 24px;
    border-bottom: 1px solid #eee;
    margin-bottom: 24px;
}

.pricing-name {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.pricing-episodes {
    font-size: 14px;
    color: var(--gray);
    margin-bottom: 16px;
}

.pricing-price {
    display: flex;
    align-items: baseline;
    justify-content: center;
    gap: 4px;
}

.price-amount {
    font-family: var(--font-display);
    font-size: 42px;
    font-weight: 700;
    color: var(--primary);
}

.price-period {
    font-size: 16px;
    color: var(--gray);
}

.pricing-subtitle {
    font-size: 14px;
    color: var(--gray);
    margin-top: 8px;
}

.pricing-features {
    margin-bottom: 30px;
}

.pricing-features li {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 0;
    font-size: 15px;
    color: var(--text);
    border-bottom: 1px solid #f5f5f5;
}

.pricing-features li:last-child {
    border-bottom: none;
}

.pricing-features svg {
    color: var(--primary);
    flex-shrink: 0;
}

/* Guarantee Section */
.guarantee-section {
    padding: 80px 0;
    background: var(--white);
}

.guarantee-box {
    display: flex;
    gap: 40px;
    align-items: center;
    background: var(--light);
    padding: 50px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow);
    border-left: 5px solid var(--primary);
}

.guarantee-icon {
    flex-shrink: 0;
    color: var(--primary);
}

.guarantee-content h3 {
    font-size: 24px;
    color: var(--primary-dark);
    margin-bottom: 8px;
}

.guarantee-content h4 {
    font-size: 32px;
    color: var(--primary);
    margin-bottom: 16px;
}

.guarantee-content p {
    font-size: var(--base-font);
    color: var(--text);
    margin-bottom: 0;
}

/* FAQ Section */
.faq-section {
    padding: 100px 0;
    background: var(--light);
}

.faq-container {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background: var(--white);
    border-radius: var(--radius);
    margin-bottom: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 24px 30px;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-body);
    font-size: var(--faq-question);
    font-weight: 600;
    color: var(--primary-dark);
    transition: var(--transition);
}

.faq-question:hover {
    background: rgba(15, 76, 117, 0.05);
}

.faq-question svg {
    flex-shrink: 0;
    color: var(--primary);
    transition: var(--transition);
}

.faq-item.active .faq-question svg {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.faq-item.active .faq-answer {
    max-height: 500px;
}

.faq-answer p {
    padding: 0 30px 24px;
    font-size: var(--faq-answer);
    color: var(--text);
    line-height: 1.8;
}

/* Final CTA Section */
.final-cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, #0f4c75 0%, #3282b8 100%);
    text-align: center;
}

.final-cta-content {
    max-width: 800px;
    margin: 0 auto;
}

.final-cta-section .section-badge {
    background: rgba(255, 255, 255, 0.2);
    color: var(--white);
}

.final-cta-section .section-title {
    color: var(--white);
}

.final-cta-text {
    font-size: 18px;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

.final-cta-images {
    display: flex;
    justify-content: center;
    align-items: flex-end;
    gap: 15px;
    margin-bottom: 40px;
    flex-wrap: wrap;
}

.final-cta-images img {
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    transition: var(--transition);
}

.final-cta-images img:hover {
    transform: translateY(-10px);
}

.final-cta-images .center-bottle {
    transform: scale(1.1);
}

.final-cta-images .center-bottle:hover {
    transform: scale(1.1) translateY(-10px);
}

.final-cta-contact {
    margin-top: 30px;
    font-size: 16px;
    color: rgba(255, 255, 255, 0.8);
}

.final-cta-contact a {
    color: var(--white);
    text-decoration: underline;
}

/* Footer */
.footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 60px 0 30px;
}

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

.footer-brand .logo {
    margin-bottom: 20px;
}

.footer-brand .logo span {
    color: var(--white);
}

.footer-brand p {
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
}

.footer-links h4 {
    font-size: 18px;
    color: var(--white);
    margin-bottom: 20px;
}

.footer-links a,
.footer-links p {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    font-size: 15px;
    margin-bottom: 12px;
    transition: var(--transition);
}

.footer-links a:hover {
    color: var(--white);
}

.footer-bottom {
    padding-top: 30px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
}

.footer-bottom p {
    color: rgba(255, 255, 255, 0.6);
    font-size: 14px;
    margin-bottom: 10px;
}

.footer-disclaimer {
    font-size: 12px !important;
}

/* Mobile Order Button */
.mobile-order-btn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 20px;
    z-index: 999;
    background: var(--gradient);
    color: var(--white);
    padding: 16px 24px;
    border-radius: 50px;
    font-weight: 700;
    font-size: 16px;
    box-shadow: 0 4px 20px rgba(15, 76, 117, 0.4);
    animation: pulse 2s infinite;
    gap: 8px;
    align-items: center;
}

.mobile-order-btn.show {
    display: flex;
}

.fire-icon {
    font-size: 20px;
}

@keyframes pulse {
    0%, 100% {
        transform: scale(1);
        box-shadow: 0 4px 20px rgba(15, 76, 117, 0.4);
    }
    50% {
        transform: scale(1.05);
        box-shadow: 0 6px 30px rgba(15, 76, 117, 0.6);
    }
}

/* Purchase Popup */
.purchase-popup {
    position: fixed;
    bottom: 100px;
    left: 20px;
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transform: translateX(-100%);
    transition: all 0.4s ease;
}

.purchase-popup.show {
    opacity: 1;
    visibility: visible;
    transform: translateX(0);
}

.popup-content {
    background: var(--white);
    padding: 20px 50px 20px 20px;
    border-radius: var(--radius);
    box-shadow: var(--shadow-lg);
    display: flex;
    align-items: center;
    gap: 15px;
    border-left: 4px solid var(--primary);
    position: relative;
}

.popup-close {
    position: absolute;
    top: 10px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    color: var(--gray);
    cursor: pointer;
    line-height: 1;
}

.popup-icon {
    font-size: 32px;
}

.popup-text {
    font-size: 15px;
    color: var(--text);
    margin-bottom: 4px;
}

.popup-time {
    font-size: 12px;
    color: var(--gray);
}

/* Exit Popup */
.exit-popup {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.exit-popup.show {
    opacity: 1;
    visibility: visible;
}

.exit-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.7);
}

.exit-popup-content {
    position: relative;
    background: var(--white);
    padding: 50px;
    border-radius: var(--radius-lg);
    max-width: 500px;
    text-align: center;
    transform: scale(0.9);
    transition: var(--transition);
}

.exit-popup.show .exit-popup-content {
    transform: scale(1);
}

.exit-popup-close {
    position: absolute;
    top: 15px;
    right: 20px;
    background: none;
    border: none;
    font-size: 30px;
    color: var(--gray);
    cursor: pointer;
}

.exit-popup-title {
    font-size: var(--exit-popup-title);
    color: var(--primary-dark);
    margin-bottom: 20px;
}

.exit-popup-content p {
    font-size: 16px;
    color: var(--text-light);
    margin-bottom: 30px;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}

/* ========================================
   RESPONSIVE STYLES - MOBILE FONT SIZES
   ======================================== */

@media (max-width: 1200px) {
    .pricing-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .pricing-card.featured {
        transform: none;
    }
    
    .pricing-card.featured:hover {
        transform: translateY(-10px);
    }
    
    .problems-grid,
    .solution-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-container {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .hero-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    
    .hero-benefits {
        display: inline-block;
        text-align: left;
    }
    
    .hero-cta {
        justify-content: center;
    }
    
    .hero-stats {
        justify-content: center;
    }
    
    .hero-image {
        order: -1;
    }
    
    .hero-image-wrapper img {
        max-width: 350px;
    }
    
    .what-is-content {
        grid-template-columns: 1fr;
    }
    
    .what-is-image {
        display: none;
    }
    
    .steps-container {
        grid-template-columns: 1fr;
    }
    
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    
    .experts-grid {
        grid-template-columns: 1fr;
    }
    
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
        text-align: center;
    }
}

@media (max-width: 768px) {
    /* MOBILE FONT SIZES AS PER SPECIFICATION */
    :root {
        --base-font: 18px;
        --hero-title: 36px;
        --hero-subtitle: 20px;
        --benefits-list: 18px;
        --section-title: 32px;
        --problem-cards: 18px;
        --solution-benefits: 19px;
        --doctor-cards: 17px;
        --testimonials: 17px;
        --faq-question: 18px;
        --faq-answer: 18px;
        --exit-popup-title: 30px;
    }
    
    /* Hide header on mobile */
    .header {
        display: none;
    }
    
    .hero {
        padding: 40px 0 80px;
        min-height: auto;
    }
    
    .hero-title {
        font-size: var(--hero-title);
    }
    
    .hero-subtitle {
        font-size: var(--hero-subtitle);
    }
    
    .hero-benefits li {
        font-size: var(--benefits-list);
    }
    
    .hero-cta {
        flex-direction: column;
        align-items: center;
    }
    
    .hero-cta .btn {
        width: 100%;
        max-width: 300px;
    }
    
    .hero-stats {
        flex-wrap: wrap;
        gap: 30px;
    }
    
    .hero-image-wrapper img {
        max-width: 280px;
    }
    
    .section-title {
        font-size: var(--section-title);
    }
    
    .problems-grid,
    .solution-grid {
        grid-template-columns: 1fr;
    }
    
    .problem-card h3,
    .solution-card h3 {
        font-size: var(--problem-cards);
    }
    
    .solution-card p {
        font-size: var(--solution-benefits);
    }
    
    .expert-card h4,
    .expert-card p {
        font-size: var(--doctor-cards);
    }
    
    .testimonial-text {
        font-size: var(--testimonials);
    }
    
    .faq-question {
        font-size: var(--faq-question);
        padding: 20px;
    }
    
    .faq-answer p {
        font-size: var(--faq-answer);
        padding: 0 20px 20px;
    }
    
    .exit-popup-title {
        font-size: var(--exit-popup-title);
    }
    
    .pricing-grid {
        grid-template-columns: 1fr;
    }
    
    .guarantee-box {
        flex-direction: column;
        text-align: center;
        padding: 30px;
    }
    
    .guarantee-content h4 {
        font-size: 24px;
    }
    
    .final-cta-images {
        gap: 10px;
    }
    
    .final-cta-images img {
        width: 80px !important;
        height: 80px !important;
    }
    
    .final-cta-images .center-bottle {
        width: 100px !important;
        height: 100px !important;
        transform: none;
    }
    
    .purchase-popup {
        bottom: auto;
        top: 20px;
        left: 10px;
        right: 10px;
    }
    
    .popup-content {
        padding: 15px 40px 15px 15px;
    }
    
    /* Mobile Order Button */
    .mobile-order-btn {
        bottom: 15px;
        right: 15px;
        padding: 14px 20px;
        font-size: 14px;
    }
    
    .step-card {
        flex-direction: column;
        text-align: center;
    }
    
    .step-number {
        margin: 0 auto;
    }
    
    .exit-popup-content {
        margin: 20px;
        padding: 30px;
    }
}

@media (max-width: 480px) {
    body {
        font-size: var(--base-font);
    }
    
    .container {
        padding: 0 15px;
    }
    
    .hero-title {
        font-size: 32px;
    }
    
    .hero-badge,
    .section-badge {
        font-size: 11px;
        padding: 6px 16px;
    }
    
    .btn {
        padding: 12px 24px;
        font-size: 14px;
    }
    
    .btn-lg {
        padding: 14px 28px;
        font-size: 16px;
    }
    
    .btn-xl {
        padding: 16px 32px;
        font-size: 18px;
    }
    
    .problem-card,
    .solution-card {
        padding: 30px 20px;
    }
    
    .pricing-card {
        padding: 30px 20px;
    }
    
    .price-amount {
        font-size: 36px;
    }
    
    .stat-number {
        font-size: 26px;
    }
    
    .final-cta-images img {
        width: 60px !important;
        height: 60px !important;
    }
    
    .final-cta-images .center-bottle {
        width: 80px !important;
        height: 80px !important;
    }
}

/* Print Styles */
@media print {
    .header,
    .mobile-order-btn,
    .purchase-popup,
    .exit-popup,
    .hero-wave {
        display: none !important;
    }
    
    .hero {
        min-height: auto;
        padding: 40px 0;
    }
}

/* Accessibility - Reduced Motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus styles */
a:focus,
button:focus {
    outline: 2px solid var(--primary);
    outline-offset: 2px;
}

/* High contrast mode */
@media (prefers-contrast: high) {
    :root {
        --primary: #004080;
        --text: #000000;
        --text-light: #333333;
    }
}
