/* RXsaver.ai - Prescription Savings Platform */

:root {
    --primary: #0ea5e9;
    --primary-dark: #0284c7;
    --secondary: #06b6d4;
    --accent: #f59e0b;
    --bg: #ffffff;
    --bg-gray: #f8fafc;
    --text: #1e293b;
    --text-light: #64748b;
    --border: #e2e8f0;
    --success: #10b981;
    --warning: #f59e0b;
}

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

body {
    font-family: 'Inter', -apple-system, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.6;
}

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

/* Header */
.header {
    background: white;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.logo-ai {
    color: var(--text-light);
    font-weight: 400;
}

.nav {
    display: flex;
    gap: 2rem;
}

.nav a {
    color: var(--text);
    text-decoration: none;
    font-weight: 500;
    transition: color 0.2s;
}

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

/* Hero */
.hero {
    background: linear-gradient(135deg, #0ea5e9 0%, #06b6d4 100%);
    padding: 5rem 0;
    color: white;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}

.hero h1 {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 1rem;
    line-height: 1.2;
}

.hero-subtitle {
    font-size: 1.25rem;
    opacity: 0.95;
    margin-bottom: 3rem;
}

/* Search */
.search-container {
    margin-bottom: 2rem;
}

.search-box {
    background: white;
    border-radius: 12px;
    padding: 0.75rem 1.5rem;
    display: flex;
    align-items: center;
    gap: 1rem;
    box-shadow: 0 20px 60px rgba(0,0,0,0.15);
}

.search-icon {
    color: var(--text-light);
    flex-shrink: 0;
}

#drug-search {
    flex: 1;
    border: none;
    font-size: 1.125rem;
    padding: 0.75rem 0;
    outline: none;
    color: var(--text);
}

#drug-search::placeholder {
    color: var(--text-light);
}

.search-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.875rem 2rem;
    border-radius: 8px;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.search-btn:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.search-hint {
    text-align: center;
    margin-top: 1rem;
    opacity: 0.9;
    font-size: 0.9375rem;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    flex-wrap: wrap;
}

.badge {
    background: rgba(255,255,255,0.2);
    padding: 0.5rem 1.25rem;
    border-radius: 50px;
    font-weight: 500;
    backdrop-filter: blur(10px);
}

/* Sections */
.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text);
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    font-size: 1.125rem;
    margin-bottom: 3rem;
}

/* Featured Savings Section */
.featured-section {
    padding: 4rem 0;
    background: white;
}

.featured-header {
    text-align: center;
    margin-bottom: 3rem;
}

.featured-title {
    font-size: 2.25rem;
    font-weight: 800;
    margin-bottom: 0.5rem;
    color: var(--text);
}

.featured-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
}

.featured-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.featured-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.08);
    transition: all 0.3s;
    border: 2px solid transparent;
}

.featured-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.15);
}

.featured-card.high-demand {
    border-color: #ef4444;
}

.featured-card.generic-savings {
    border-color: #10b981;
}

.featured-card.specialty {
    border-color: #f59e0b;
}

.card-badge {
    padding: 0.75rem 1.5rem;
    font-size: 0.8125rem;
    font-weight: 700;
    text-align: center;
    letter-spacing: 1px;
}

.high-demand .card-badge {
    background: linear-gradient(135deg, #ef4444, #dc2626);
    color: white;
}

.generic-savings .card-badge {
    background: linear-gradient(135deg, #10b981, #059669);
    color: white;
}

.specialty .card-badge {
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: white;
}

.card-content {
    padding: 1.5rem;
}

.card-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1.25rem;
    color: var(--text);
    text-align: center;
}

.featured-meds {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.med-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: 10px;
    cursor: pointer;
    transition: all 0.2s;
}

.med-row:hover {
    background: #e0f2fe;
    transform: translateX(4px);
}

.med-details {
    display: flex;
    flex-direction: column;
    gap: 0.25rem;
}

.med-name-feat {
    font-size: 1rem;
    font-weight: 600;
    color: var(--text);
}

.med-dose {
    font-size: 0.8125rem;
    color: var(--text-light);
}

.med-price-feat {
    display: flex;
    align-items: baseline;
    gap: 0.375rem;
}

.from-text {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
}

.price-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--primary);
}

/* How It Works */
.how-it-works {
    padding: 5rem 0;
    background: var(--bg-gray);
}

.steps-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.step-card {
    background: white;
    padding: 2.5rem;
    border-radius: 16px;
    text-align: center;
    box-shadow: 0 4px 6px rgba(0,0,0,0.05);
    transition: transform 0.3s;
}

.step-card:hover {
    transform: translateY(-4px);
}

.step-number {
    width: 60px;
    height: 60px;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
    font-size: 2rem;
    font-weight: 800;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
}

.step-card h3 {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
}

.step-card p {
    color: var(--text-light);
}

/* Popular Drugs */
.popular-drugs {
    padding: 5rem 0;
}

.drugs-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
}

.drug-card {
    background: white;
    border: 1px solid var(--border);
    border-radius: 12px;
    padding: 1.5rem;
    cursor: pointer;
    transition: all 0.3s;
}

.drug-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 20px rgba(8, 145, 178, 0.1);
}

.drug-name {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--primary);
    margin-bottom: 0.5rem;
}

.drug-generic {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.75rem;
}

.drug-savings {
    background: #f0fdfa;
    color: var(--success);
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9375rem;
}

/* Savings Example */
.savings-example {
    padding: 5rem 0;
    background: var(--bg-gray);
}

.example-card {
    background: white;
    border-radius: 16px;
    padding: 3rem;
    box-shadow: 0 10px 40px rgba(0,0,0,0.08);
}

.example-header h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.example-header p {
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

.price-comparison {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.pharmacy-price {
    background: var(--bg-gray);
    padding: 2rem;
    border-radius: 12px;
    border: 2px solid transparent;
    position: relative;
}

.pharmacy-price.best {
    border-color: var(--success);
    background: linear-gradient(135deg, #f0fdfa, #ecfdf5);
}

.best-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--success);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.75rem;
    font-weight: 700;
}

.pharmacy-name {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.price-info {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-bottom: 1rem;
}

.retail-price {
    color: var(--text-light);
    text-decoration: line-through;
    font-size: 0.9375rem;
}

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

.savings {
    background: white;
    color: var(--success);
    padding: 0.75rem;
    border-radius: 8px;
    text-align: center;
    font-weight: 600;
}

/* Pharmacy Partners */
.pharmacy-partners {
    padding: 5rem 0;
}

.partners-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2rem;
}

.partner-logo {
    background: white;
    border: 1px solid var(--border);
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
    font-weight: 600;
    color: var(--text);
    font-size: 1.125rem;
    text-decoration: none;
    display: block;
    transition: all 0.3s;
}

.partner-logo:hover {
    border-color: var(--primary);
    background: var(--bg-gray);
    transform: translateY(-4px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Features */
.features {
    padding: 5rem 0;
    background: var(--bg-gray);
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.feature-card {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    text-align: center;
}

.feature-icon {
    font-size: 3rem;
    margin-bottom: 1rem;
}

.feature-card h3 {
    font-size: 1.25rem;
    margin-bottom: 0.75rem;
}

.feature-card p {
    color: var(--text-light);
}

/* Newsletter */
.newsletter {
    padding: 4rem 0;
    background: linear-gradient(135deg, var(--primary), var(--accent));
    color: white;
}

.newsletter-content {
    text-align: center;
    max-width: 600px;
    margin: 0 auto;
}

.newsletter h2 {
    font-size: 2rem;
    margin-bottom: 0.5rem;
}

.newsletter p {
    margin-bottom: 2rem;
    opacity: 0.95;
}

.newsletter-form {
    display: flex;
    gap: 1rem;
}

.newsletter-form input {
    flex: 1;
    padding: 1rem 1.5rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
}

.newsletter-form button {
    padding: 1rem 2rem;
    background: white;
    color: var(--primary);
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: transform 0.2s;
}

.newsletter-form button:hover {
    transform: scale(1.05);
}

/* Footer */
.footer {
    background: #1e293b;
    color: white;
    padding: 4rem 0 2rem;
}

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

.footer-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 1rem;
}

.footer-column p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

.footer-column h4 {
    font-size: 1.125rem;
    margin-bottom: 1rem;
}

.footer-column ul {
    list-style: none;
}

.footer-column a {
    color: rgba(255,255,255,0.7);
    text-decoration: none;
    display: block;
    padding: 0.375rem 0;
    transition: color 0.2s;
}

.footer-column a:hover {
    color: white;
}

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

.legal-disclaimers {
    margin-top: 3rem;
    padding: 2rem;
    background: rgba(0,0,0,0.3);
    border-radius: 12px;
    border: 1px solid rgba(255,255,255,0.1);
}

.disclaimer-section {
    margin-bottom: 1.5rem;
    text-align: left;
}

.disclaimer-section h5 {
    font-size: 1rem;
    font-weight: 700;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
    text-align: center;
}

.disclaimer {
    font-size: 0.8125rem;
    line-height: 1.6;
    color: rgba(255,255,255,0.8);
    margin-bottom: 0.75rem;
}

.disclaimer strong {
    color: white;
    font-weight: 600;
}

.legal-links {
    text-align: center;
    margin: 2rem 0 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.legal-links a {
    color: #60a5fa;
    text-decoration: none;
    margin: 0 0.75rem;
    font-size: 0.875rem;
    font-weight: 500;
}

.legal-links a:hover {
    color: #93c5fd;
    text-decoration: underline;
}

.final-disclaimer {
    font-size: 0.75rem;
    font-weight: 700;
    color: #fbbf24;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
    padding: 1rem;
    background: rgba(251, 191, 36, 0.1);
    border-radius: 6px;
    border: 1px solid rgba(251, 191, 36, 0.3);
}

/* Ad Banners */
.ad-banner {
    padding: 3rem 0;
    background: var(--bg-gray);
}

.ad-banner.rx-ad {
    background: linear-gradient(135deg, #eff6ff, #dbeafe);
}

.ad-banner.otc-ad {
    background: linear-gradient(135deg, #f0fdf4, #dcfce7);
}

.banner-ad {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    border: 2px solid var(--border);
}

.prescription-ad {
    border-left: 6px solid #3b82f6;
}

.otc-banner {
    border-left: 6px solid #10b981;
}

.ad-badge {
    display: inline-block;
    background: rgba(0,0,0,0.05);
    color: var(--text-light);
    padding: 0.25rem 0.75rem;
    border-radius: 4px;
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 1rem;
}

.ad-main {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 2rem;
    align-items: center;
}

.ad-title {
    font-size: 2rem;
    font-weight: 800;
    color: var(--text);
    margin-bottom: 0.5rem;
}

.ad-subtitle {
    font-size: 1.125rem;
    color: var(--text-light);
    margin-bottom: 1.5rem;
}

.ad-benefits {
    list-style: none;
    margin-bottom: 1.5rem;
}

.ad-benefits li {
    padding: 0.5rem 0;
    color: var(--text);
    font-size: 1rem;
}

.ad-cta {
    display: inline-block;
    background: var(--primary);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.2s;
}

.ad-cta:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
}

.ad-image {
    font-size: 8rem;
    text-align: center;
    margin-bottom: 1rem;
}

.ad-product-image {
    width: 100%;
    max-width: 300px;
    height: auto;
    border-radius: 12px;
    margin-bottom: 1rem;
    object-fit: cover;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.ad-disclaimer {
    font-size: 0.75rem;
    color: var(--text-light);
    text-align: center;
    font-style: italic;
}

/* Manufacturer Offers */
.manufacturer-offers {
    padding: 5rem 0;
    background: white;
}

.offers-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1.5rem;
    align-items: stretch;
}

.offer-card {
    background: white;
    border: 2px solid var(--border);
    border-radius: 12px;
    padding: 2rem 1.5rem;
    text-align: center;
    transition: all 0.3s;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.offer-card:hover {
    border-color: var(--primary);
    box-shadow: 0 8px 24px rgba(8, 145, 178, 0.15);
    transform: translateY(-4px);
}

.offer-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--primary);
    color: white;
    padding: 0.375rem 1rem;
    border-radius: 50px;
    font-size: 0.6875rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.offer-image {
    width: 100%;
    height: 180px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.25rem;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    flex-shrink: 0;
}

.offer-logo {
    font-size: 1.5rem;
    font-weight: 900;
    color: var(--primary);
    margin-bottom: 1rem;
    padding: 1rem;
    background: var(--bg-gray);
    border-radius: 8px;
    width: 100%;
}

.offer-title {
    font-size: 1.125rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    color: var(--text);
    min-height: 3rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.offer-desc {
    font-size: 0.9375rem;
    color: var(--text-light);
    margin-bottom: 1rem;
    line-height: 1.5;
    min-height: 3rem;
    display: flex;
    align-items: center;
}

.offer-savings {
    background: linear-gradient(135deg, #f0fdfa, #ccfbf1);
    color: var(--success);
    padding: 0.75rem 1rem;
    border-radius: 8px;
    font-weight: 800;
    font-size: 1.25rem;
    margin-bottom: 1.5rem;
    width: 100%;
    margin-top: auto;
}

.offer-btn {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background: var(--primary);
    color: white;
    text-decoration: none;
    border-radius: 8px;
    font-weight: 600;
    transition: all 0.2s;
    margin-bottom: 1rem;
}

.offer-btn:hover {
    background: var(--primary-dark);
}

.offer-fine-print {
    font-size: 0.75rem;
    color: var(--text-light);
    font-style: italic;
    min-height: 2.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Responsive */
@media (max-width: 968px) {
    .featured-grid {
        grid-template-columns: 1fr;
    }

    .steps-grid, .features-grid {
        grid-template-columns: 1fr;
    }

    .drugs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .price-comparison, .partners-grid {
        grid-template-columns: 1fr;
    }

    .offers-grid {
        grid-template-columns: 1fr;
    }

    .ad-main {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }

    .hero h1 {
        font-size: 2rem;
    }

    .nav {
        display: none;
    }
}
