@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600&family=Merriweather:wght@400;700;900&display=swap');

:root {
    --gov-blue: #002868;
    --gov-blue-light: #004B8D;
    --gov-red: #BF0A30;
    --gov-red-hover: #D32F2F;
    --bg-light: #F8F9FA;
    --text-dark: #212529;
    --text-muted: #6C757D;
    --white: #FFFFFF;
    --success: #28a745;
}

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

h1, h2, h3, h4, .ticker-label, nav a {
    font-family: 'Merriweather', serif;
}

header {
    background: linear-gradient(135deg, var(--gov-blue) 0%, #001f52 100%);
    color: var(--white);
    padding: 1.5rem 0;
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
    border-bottom: 4px solid var(--gov-red);
    position: relative;
    overflow: hidden;
}

/* Subtle pattern for header */
header::before {
    content: "";
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-image: radial-gradient(circle at 50% 50%, rgba(255,255,255,0.05) 1px, transparent 1px);
    background-size: 20px 20px;
    opacity: 0.5;
}

.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 20px;
    position: relative;
    z-index: 2;
}

nav ul {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 30px;
    flex-wrap: wrap;
}

nav a {
    color: var(--white);
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    padding-bottom: 3px;
    border-bottom: 2px solid transparent;
    transition: all 0.3s ease;
    letter-spacing: 0.5px;
}

nav a:hover {
    border-bottom-color: var(--gov-red);
    color: #e0e0e0;
}

main {
    max-width: 900px;
    margin: 3rem auto;
    padding: 3rem;
    background: var(--white);
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    border-radius: 8px;
    border-top: 5px solid var(--gov-blue);
}

h1 {
    color: var(--gov-blue);
    border-bottom: 3px solid var(--gov-red);
    padding-bottom: 15px;
    margin-top: 0;
    font-size: 2.5rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

h2 {
    color: var(--gov-blue);
    margin-top: 3rem;
    font-size: 1.8rem;
    border-left: 6px solid var(--gov-red);
    padding-left: 15px;
    font-weight: 700;
}

h3 {
    color: var(--text-dark);
    font-size: 1.4rem;
    margin-top: 2rem;
    font-weight: 700;
}

p, li {
    margin-bottom: 1.2rem;
    font-size: 1.05rem;
}

a {
    color: var(--gov-blue);
    font-weight: 600;
    text-decoration: none;
    border-bottom: 1px solid rgba(0, 40, 104, 0.3);
    transition: all 0.2s;
}

a:hover {
    border-bottom: 2px solid var(--gov-blue);
    color: var(--gov-blue-light);
}

.btn {
    display: inline-block;
    background: linear-gradient(180deg, var(--gov-red) 0%, #a60026 100%);
    color: var(--white);
    padding: 14px 35px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 700;
    text-align: center;
    transition: all 0.3s ease;
    border: none;
    box-shadow: 0 4px 6px rgba(191, 10, 48, 0.3);
    text-transform: uppercase;
    font-family: 'Inter', sans-serif;
    letter-spacing: 0.5px;
    min-height: 44px; /* Mobile-First Law */
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.btn:hover {
    background: linear-gradient(180deg, #d32f2f 0%, #bf0a30 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(191, 10, 48, 0.4);
    color: white;
    border-bottom: none;
}

.alert-box {
    background-color: #e3f2fd;
    border-left: 6px solid var(--gov-blue);
    padding: 25px;
    margin: 30px 0;
    border-radius: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
}

/* AdSense Armor (Strict CLS Prevention) */
.ad-container-leaderboard {
    min-height: 90px;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 40px 0;
    background-color: #f1f3f5;
    border: 1px dashed #ced4da;
    border-radius: 4px;
}

/* --- Phase 2 Components --- */

.status-ticker {
    background: var(--gov-red);
    color: var(--white);
    padding: 12px 0;
    font-size: 0.85rem;
    text-align: center;
    position: relative;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.status-ticker .container {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.status-item.urgent {
    background-color: #fff;
    color: var(--gov-red);
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 800;
    box-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.passport-wizard {
    background: #f8f9fa;
    border: 2px solid var(--gov-blue);
    padding: 40px;
    border-radius: 8px;
    text-align: center;
    box-shadow: 0 8px 25px rgba(0,0,0,0.08);
    margin: 40px 0;
}

.btn-wizard {
    width: 100%;
    padding: 16px;
    font-size: 1.1rem;
    background: var(--gov-blue);
    color: white;
    border: none;
    cursor: pointer;
    transition: all 0.2s;
    font-weight: 600;
    border-radius: 4px;
    margin-bottom: 10px;
    min-height: 44px;
}

.btn-wizard:hover {
    background: var(--gov-blue-light);
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0, 40, 104, 0.2);
}

/* --- Phase 3: Comparison Table & Trust Badges --- */

.courier-comparison-widget {
    margin: 40px 0;
}

.comparison-wrapper {
    background: white;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.comparison-wrapper h3 {
    background: #f1f3f5;
    margin: 0;
    padding: 15px 20px;
    text-align: center;
    border-bottom: 1px solid #e0e0e0;
    color: var(--text-dark);
}

.comparison-table {
    display: flex;
    flex-direction: column;
}

.table-header {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.5fr 1.5fr;
    padding: 15px 20px;
    background: #f8f9fa;
    font-weight: 700;
    font-family: 'Merriweather', serif;
    border-bottom: 2px solid #e0e0e0;
    font-size: 0.9rem;
}

.table-row {
    display: grid;
    grid-template-columns: 2fr 1.5fr 1fr 1.5fr 1.5fr;
    padding: 20px;
    align-items: center;
    border-bottom: 1px solid #f0f0f0;
}

.table-row:last-child {
    border-bottom: none;
}

.highlight-row {
    background-color: #fff8f8;
    border: 2px solid var(--gov-red);
    position: relative;
    z-index: 1;
    margin: -1px 0; /* Overlap borders */
}

.cell-service { font-size: 1.1rem; }
.cell-cost { font-weight: 600; color: var(--text-muted); }
.cell-reliability { color: var(--success); font-weight: 600; }

.btn-rush {
    background: var(--success);
    color: white;
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    border-bottom: none;
    min-height: 44px;
}

.btn-rush:hover {
    background: #218838;
    color: white;
    border-bottom: none;
}

.btn-outline {
    background: transparent;
    border: 1px solid #ced4da;
    color: var(--text-muted);
    padding: 8px 15px;
    font-size: 0.9rem;
    border-radius: 4px;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
}

.disclaimer {
    font-size: 0.8rem;
    color: #999;
    padding: 10px 20px;
    margin: 0;
    background: #fdfdfd;
    border-top: 1px solid #f0f0f0;
}

/* Trust Badges */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid #e0e0e0;
}

.badge {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
}

.badge svg {
    width: 24px;
    height: 24px;
    fill: var(--gov-blue);
}

/* Hero Update */
.hero-section {
    text-align: center;
    padding: 20px 0;
    margin-bottom: 40px;
}

.hero-sub {
    font-size: 1.2rem;
    color: var(--text-muted);
    max-width: 700px;
    margin: 0 auto 30px;
}

/* Sovereign Revenue Modules */
.revenue-module {
    background: #eef2f6;
    border: 1px solid #ced4da;
    padding: 20px;
    margin: 30px 0;
    border-radius: 8px;
    text-align: center;
}

.transparency-module {
    background: #f8f9fa;
    border-top: 1px solid #e0e0e0;
    padding: 20px;
    margin-top: 30px;
    font-size: 0.85rem;
    color: #666;
}

.kicker {
    font-family: 'Merriweather', serif;
    font-weight: 900;
    text-transform: uppercase;
    color: var(--gov-blue);
    margin-bottom: 10px;
    letter-spacing: 0.5px;
}

.notice {
    margin-bottom: 15px;
    font-style: italic;
}

.notice-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}

@media (max-width: 768px) {
    .table-header { display: none; }

    .table-row {
        grid-template-columns: 1fr;
        gap: 10px;
        text-align: center;
        padding: 25px 15px;
        border-bottom: 5px solid #f0f0f0;
    }

    .cell-service { font-size: 1.2rem; margin-bottom: 5px; }

    .btn-rush, .btn-outline {
        display: flex;
        width: 100%;
        text-align: center;
        margin-top: 10px;
    }

    .trust-badges {
        flex-direction: column;
        gap: 15px;
        align-items: center;
    }
}
