/* ============================================================
   The African Health Sentinel — Stylesheet
   EvolveChain Healthcare Ltd
   ============================================================ */

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

:root {
    --teal: #2A9D8F;
    --teal-dark: #228176;
    --navy: #264653;
    --gold: #E9C46A;
    --body-text: #333333;
    --light-bg: #F0F7F6;
    --white: #FFFFFF;
    --grey-100: #F7F7F7;
    --grey-200: #E5E5E5;
    --grey-400: #999999;
    --grey-600: #666666;
    --radius: 8px;
    --shadow: 0 2px 8px rgba(0,0,0,0.08);
    --max-width: 880px;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
    color: var(--body-text);
    background: var(--white);
    line-height: 1.65;
    font-size: 16px;
}

a { color: var(--teal); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* --- Header --- */
.site-header {
    background: var(--navy);
    padding: 24px 0;
    text-align: center;
}

.site-header .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
}

.logo-link { display: inline-block; }

.header-logo {
    height: 60px;
    width: auto;
    background: var(--white);
    border-radius: 8px;
    padding: 6px 12px;
}

.site-title {
    color: var(--white);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}

.site-tagline {
    color: var(--teal);
    font-size: 0.9rem;
    margin-top: 2px;
}

/* --- Nav --- */
.site-nav {
    background: var(--grey-100);
    border-bottom: 1px solid var(--grey-200);
    padding: 10px 0;
}

.site-nav .container {
    display: flex;
    gap: 24px;
    justify-content: center;
}

.site-nav a {
    color: var(--navy);
    font-size: 0.9rem;
    font-weight: 500;
}

.site-nav a:hover { color: var(--teal); text-decoration: none; }

/* --- Main Content --- */
main { padding: 40px 0 60px; }

/* --- Buttons --- */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: var(--radius);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: background 0.2s, transform 0.1s;
}

.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }

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

.btn-secondary {
    background: var(--white);
    color: var(--teal);
    border: 2px solid var(--teal);
}
.btn-secondary:hover { background: var(--light-bg); }

/* --- Hero (Landing) --- */
.hero {
    text-align: center;
    padding: 40px 0 48px;
    border-bottom: 1px solid var(--grey-200);
    margin-bottom: 48px;
}

.hero h2 {
    font-size: 2rem;
    color: var(--navy);
    margin-bottom: 16px;
}

.hero p {
    font-size: 1.1rem;
    color: var(--grey-600);
    max-width: 640px;
    margin: 0 auto 28px;
}

.hero-cta { display: flex; gap: 16px; justify-content: center; flex-wrap: wrap; }

/* --- Features Grid --- */
.how-it-works { margin-bottom: 48px; }
.how-it-works h2 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 32px;
    font-size: 1.5rem;
}

.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
    gap: 24px;
}

.feature-card {
    background: var(--light-bg);
    padding: 28px 24px;
    border-radius: var(--radius);
    text-align: center;
}

.feature-icon { font-size: 2rem; margin-bottom: 12px; }
.feature-card h3 { color: var(--navy); margin-bottom: 8px; font-size: 1.1rem; }
.feature-card p { color: var(--grey-600); font-size: 0.95rem; }

/* --- Highlights --- */
.sample-highlights {
    margin-bottom: 48px;
    padding: 32px 0;
    border-top: 1px solid var(--grey-200);
    border-bottom: 1px solid var(--grey-200);
}

.sample-highlights h2 {
    color: var(--navy);
    margin-bottom: 4px;
    font-size: 1.5rem;
}

.highlights-date {
    color: var(--teal);
    font-size: 0.95rem;
    margin-bottom: 20px;
}

.highlights-list { display: flex; flex-direction: column; gap: 16px; }

.highlight-item {
    padding: 16px 20px;
    border-left: 4px solid var(--teal);
    background: var(--grey-100);
    border-radius: 0 var(--radius) var(--radius) 0;
}

.highlight-headline {
    font-weight: 600;
    color: var(--navy);
    line-height: 1.45;
}

.highlight-source {
    font-size: 0.85rem;
    color: var(--grey-400);
    font-style: italic;
    margin-top: 4px;
}

.highlights-cta { text-align: center; margin-top: 28px; }

/* --- Pricing --- */
.pricing-preview, .pricing-section { margin-bottom: 48px; }

.pricing-preview h2, .pricing-section h2 {
    text-align: center;
    color: var(--navy);
    margin-bottom: 32px;
    font-size: 1.5rem;
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    background: var(--white);
    border: 2px solid var(--grey-200);
    border-radius: var(--radius);
    padding: 32px 28px;
    text-align: center;
    position: relative;
}

.pricing-card.featured {
    border-color: var(--teal);
    box-shadow: var(--shadow);
}

.featured-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--teal);
    color: var(--white);
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 16px;
    border-radius: 20px;
}

.pricing-card h3 { color: var(--navy); font-size: 1.3rem; margin-bottom: 8px; }

.price {
    font-size: 2.2rem;
    font-weight: 700;
    color: var(--navy);
    margin-bottom: 4px;
}
.price span { font-size: 1rem; font-weight: 400; color: var(--grey-600); }

.price-detail { font-size: 0.85rem; color: var(--grey-400); margin-bottom: 20px; }

.pricing-card ul {
    list-style: none;
    text-align: left;
    margin-bottom: 24px;
}

.pricing-card li {
    padding: 6px 0;
    font-size: 0.95rem;
    border-bottom: 1px solid var(--grey-100);
}

.pricing-card li.muted { color: var(--grey-400); }

.card-note { font-size: 0.8rem; color: var(--grey-400); margin-top: 10px; }

/* --- Gate Page --- */
.gate-card, .free-card {
    max-width: 520px;
    margin: 40px auto;
    background: var(--light-bg);
    padding: 40px 36px;
    border-radius: var(--radius);
    text-align: center;
    box-shadow: var(--shadow);
}

.gate-card h2, .free-card h2 {
    color: var(--navy);
    margin-bottom: 12px;
    font-size: 1.4rem;
}

.gate-card p, .free-card > p {
    color: var(--grey-600);
    margin-bottom: 20px;
}

.gate-form {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
    margin-bottom: 12px;
}

.gate-form input[type="email"] {
    flex: 1;
    min-width: 220px;
    padding: 12px 16px;
    border: 2px solid var(--grey-200);
    border-radius: var(--radius);
    font-size: 1rem;
    outline: none;
    transition: border-color 0.2s;
}

.gate-form input[type="email"]:focus { border-color: var(--teal); }

.gate-error { color: #c0392b; font-size: 0.9rem; }

.gate-note { font-size: 0.85rem; color: var(--grey-400); margin-top: 16px; }

/* --- Free Tier / Paywall Prompt --- */
.free-card .highlights-list {
    text-align: left;
    margin: 20px 0;
}

.paywall-prompt {
    margin-top: 32px;
    padding-top: 24px;
    border-top: 1px solid var(--grey-200);
}

.paywall-prompt h3 { color: var(--navy); margin-bottom: 8px; }
.paywall-prompt p { color: var(--grey-600); margin-bottom: 16px; }

.trial-note { font-size: 0.85rem; color: var(--grey-400); margin-top: 8px; }

/* --- Archive --- */
.archive-section h2 {
    color: var(--navy);
    margin-bottom: 12px;
    font-size: 1.5rem;
}

.archive-section > p { color: var(--grey-600); margin-bottom: 24px; }

.archive-list { display: flex; flex-direction: column; gap: 8px; }

.archive-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 20px;
    background: var(--grey-100);
    border-radius: var(--radius);
    color: var(--navy);
    font-weight: 500;
    transition: background 0.15s;
}

.archive-item:hover { background: var(--light-bg); text-decoration: none; }

.archive-arrow { color: var(--teal); font-size: 1.2rem; }

.no-content { color: var(--grey-400); font-style: italic; }

/* --- Legal Pages --- */
.legal-page { max-width: 720px; }

.legal-page h2 {
    color: var(--navy);
    margin-bottom: 4px;
    font-size: 1.5rem;
}

.legal-updated {
    color: var(--grey-400);
    font-size: 0.9rem;
    margin-bottom: 32px;
}

.legal-page h3 {
    color: var(--navy);
    margin-top: 28px;
    margin-bottom: 10px;
    font-size: 1.1rem;
}

.legal-page p { margin-bottom: 12px; }

/* --- Subscribe Page --- */
.subscribe-hero {
    text-align: center;
    margin-bottom: 40px;
}

.subscribe-hero h2 { color: var(--navy); font-size: 1.8rem; margin-bottom: 12px; }
.subscribe-hero p { color: var(--grey-600); max-width: 600px; margin: 0 auto; }

.faq { max-width: 640px; margin: 48px auto 0; }
.faq h2 { color: var(--navy); margin-bottom: 24px; font-size: 1.5rem; }

.faq-item { margin-bottom: 24px; }
.faq-item h3 { color: var(--navy); font-size: 1.05rem; margin-bottom: 6px; }
.faq-item p { color: var(--grey-600); }

/* --- Error Page --- */
.error-page {
    text-align: center;
    padding: 60px 0;
}

.error-page h2 { font-size: 3rem; color: var(--navy); margin-bottom: 12px; }
.error-page p { color: var(--grey-600); margin-bottom: 24px; }

/* --- Footer --- */
.site-footer {
    background: var(--navy);
    color: rgba(255,255,255,0.7);
    text-align: center;
    padding: 32px 0;
    margin-top: 40px;
    font-size: 0.85rem;
}

.footer-tagline {
    color: var(--teal);
    font-style: italic;
    margin-bottom: 8px;
}

.footer-copyright { margin-bottom: 4px; }
.footer-address { margin-bottom: 12px; }

.footer-links a {
    color: rgba(255,255,255,0.7);
}
.footer-links a:hover { color: var(--white); }

/* --- Briefing Content (injected via JS) --- */
#briefing-container {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 20px 0;
}

/* --- Responsive --- */
@media (max-width: 600px) {
    .site-title { font-size: 1.25rem; }
    .hero h2 { font-size: 1.5rem; }
    .price { font-size: 1.8rem; }
    .gate-form { flex-direction: column; }
    .gate-form input[type="email"] { min-width: unset; }
    .pricing-grid { grid-template-columns: 1fr; }
    main { padding: 24px 0 40px; }
}
