/* Campaign Brain Public Website - Marketing Styles */
/* Based on Campaign Brain Style Guide v1.0 */

/* ============================================================================
   CSS Variables - Design Tokens
   ============================================================================ */
:root {
    /* Primary Brand Colors */
    --color-navy-primary: #1E3A5F;
    --color-navy-dark: #152942;
    --color-red-primary: #8B2332;
    --color-red-light: #A63446;

    /* Neutral Colors */
    --color-bg-page: #F8FAFC;
    --color-bg-card: #FFFFFF;
    --color-border: #E2E8F0;
    --color-border-hover: #CBD5E1;
    --color-text-primary: #334155;
    --color-text-secondary: #64748B;
    --color-text-muted: #94A3B8;

    /* Semantic Colors */
    --color-success: #059669;
    --color-success-bg: #ECFDF5;
    --color-success-border: #A7F3D0;
    --color-warning: #D97706;
    --color-warning-bg: #FFFBEB;
    --color-warning-border: #FDE68A;
    --color-error: #DC2626;
    --color-error-bg: #FEF2F2;
    --color-error-border: #FECACA;
    --color-info: #0284C7;
    --color-info-bg: #F0F9FF;
    --color-info-border: #BAE6FD;

    /* Typography */
    --font-display: 'Libre Baskerville', Georgia, serif;
    --font-body: 'Source Sans 3', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;

    /* Legacy aliases */
    --primary: var(--color-navy-primary);
    --secondary: var(--color-red-primary);
    --text: var(--color-text-primary);
    --text-light: var(--color-text-secondary);
    --text-dark: var(--color-navy-primary);
    --bg: #ffffff;
    --bg-light: var(--color-bg-page);
    --bg-dark: var(--color-navy-dark);
    --border: var(--color-border);
    --success: var(--color-success);
    --warning: var(--color-warning);
    --error: var(--color-error);

    /* Spacing */
    --space-1: 4px;
    --space-2: 8px;
    --space-3: 12px;
    --space-4: 16px;
    --space-5: 20px;
    --space-6: 24px;
    --space-8: 32px;

    /* Border Radius */
    --radius-sm: 4px;
    --radius-md: 6px;
    --radius-lg: 8px;
    --radius-full: 9999px;
    --radius: 8px;
    --radius-xl: 12px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.07);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

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

html {
    font-size: 16px;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-primary);
    background: var(--color-bg-page);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

a {
    color: var(--color-navy-primary);
    text-decoration: none;
    transition: color 0.2s;
}

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

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

ul, ol {
    list-style: none;
}

/* ============================================================================
   Typography - Libre Baskerville (headings), Source Sans 3 (body)
   ============================================================================ */
h1, h2, .page-title, .section-title, .hero-title {
    font-family: var(--font-display);
    font-weight: 700;
    color: var(--color-navy-primary);
    line-height: 1.25;
}

h3 {
    font-family: var(--font-body);
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--color-text-primary);
}

h4, h5, h6 {
    font-family: var(--font-body);
    color: var(--color-text-primary);
    font-weight: 600;
    line-height: 1.3;
}

h1, .page-title { font-size: 2rem; }
h2, .section-title { font-size: 1.5rem; }
h3 { font-size: 1.125rem; }
h4 { font-size: 1rem; }

@media (max-width: 768px) {
    h1, .page-title { font-size: 1.5rem; }
    h2, .section-title { font-size: 1.25rem; }
    h3 { font-size: 1rem; }
}

/* ============================================================================
   Layout
   ============================================================================ */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.main-content {
    min-height: calc(100vh - 160px);
}

/* ============================================================================
   Header
   ============================================================================ */
.header {
    background: var(--color-navy-primary);
    color: white;
    position: sticky;
    top: 0;
    z-index: 100;
    box-shadow: var(--shadow-md);
}

.header a {
    color: rgba(255, 255, 255, 0.9);
    transition: color 0.2s;
}

.header a:hover {
    color: white;
}

.nav-link {
    font-weight: 500;
    padding: 0.5rem 0;
    border-bottom: 2px solid transparent;
    transition: all 0.2s;
}

.nav-link:hover {
    color: white;
    border-bottom-color: var(--color-red-primary);
}

/* Top Navigation - cbtenant style */
.header {
    height: 64px;
}

.header > div:first-child {
    height: 100%;
}

/* Logo styling - make logo white on dark backgrounds */
.logo-white {
    filter: brightness(0) invert(1) !important;
}

.header .logo-white,
.footer .logo-white {
    filter: brightness(0) invert(1) !important;
}

/* Mobile Menu Button */
.mobile-menu-btn {
    background: transparent;
    border: none;
    color: white;
    padding: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu-btn:hover {
    color: rgba(255, 255, 255, 0.8);
}

/* Mobile Menu Dropdown */
.mobile-menu {
    background: var(--color-navy-primary);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.mobile-nav-link {
    display: block;
    padding: 0.75rem 1rem;
    color: rgba(255, 255, 255, 0.9);
    font-weight: 500;
    text-decoration: none;
    border-radius: var(--radius-sm);
    transition: background-color 0.15s;
}

.mobile-nav-link:hover {
    background: rgba(255, 255, 255, 0.1);
    color: white;
}

/* ============================================================================
   Buttons
   ============================================================================ */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.625rem 1.25rem;
    font-family: var(--font-body);
    font-size: 0.875rem;
    font-weight: 600;
    border-radius: var(--radius-md);
    border: none;
    cursor: pointer;
    transition: all 0.15s ease;
    text-decoration: none;
}

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

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

.btn-secondary {
    background: var(--color-bg-card);
    color: var(--color-navy-primary);
    border: 1px solid var(--color-border);
}

.btn-secondary:hover {
    background: var(--color-bg-page);
    border-color: var(--color-border-hover);
}

.btn-accent, .btn-cta {
    background: var(--color-red-primary);
    color: white;
}

.btn-accent:hover, .btn-cta:hover {
    background: var(--color-red-light);
    color: white;
}

.btn-danger {
    background: var(--color-error);
    color: white;
}

.btn-danger:hover {
    background: #B91C1C;
    color: white;
}

.btn-outline {
    background: transparent;
    border: 2px solid var(--color-border);
    color: var(--color-text-primary);
}

.btn-outline:hover {
    border-color: var(--color-navy-primary);
    color: var(--color-navy-primary);
}

.btn-lg {
    padding: 1rem 2rem;
    font-size: 1rem;
}

.btn-block {
    width: 100%;
}

.btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

/* ============================================================================
   Hero Section
   ============================================================================ */
.hero {
    background: linear-gradient(135deg, var(--color-navy-primary) 0%, var(--color-navy-dark) 100%);
    color: white;
    padding: 6rem 0;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Subtle pattern overlay */
.hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 25% 25%, rgba(255,255,255,0.03) 0%, transparent 50%),
                      radial-gradient(circle at 75% 75%, rgba(255,255,255,0.03) 0%, transparent 50%);
    pointer-events: none;
}

.hero-content {
    max-width: 800px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.hero-title {
    font-size: 3.25rem;
    margin-bottom: 1.5rem;
    color: white;
    line-height: 1.2;
    text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.hero-subtitle {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2.5rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.6;
}

.hero-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero badge for social proof */
.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: rgba(255,255,255,0.1);
    padding: 0.5rem 1rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    margin-bottom: 1.5rem;
    backdrop-filter: blur(4px);
}

.hero-badge-icon {
    width: 16px;
    height: 16px;
    color: var(--color-red-light);
}

@media (max-width: 768px) {
    .hero {
        padding: 4rem 0;
    }
    .hero-title {
        font-size: 2.25rem;
    }
    .hero-subtitle {
        font-size: 1.1rem;
    }
}

/* ============================================================================
   Sections
   ============================================================================ */
.section-title {
    text-align: center;
    margin-bottom: 1rem;
}

.section-subtitle {
    text-align: center;
    color: var(--text-light);
    margin-bottom: 2.5rem;
}

/* Pain Points Section */
.pain-section {
    padding: 5rem 0;
    background: linear-gradient(180deg, #F8FAFC 0%, #EDF2F7 100%);
}

.pain-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.pain-card {
    background: white;
    border-radius: var(--radius-lg);
    padding: 2rem;
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.07), 0 2px 4px -1px rgba(0, 0, 0, 0.04);
    display: flex;
    gap: 1.5rem;
    align-items: flex-start;
    border: 1px solid rgba(0,0,0,0.04);
    transition: transform 0.2s, box-shadow 0.2s;
}

.pain-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.08), 0 4px 6px -2px rgba(0, 0, 0, 0.04);
}

.pain-icon-wrapper {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    background: linear-gradient(135deg, var(--color-red-primary) 0%, var(--color-red-light) 100%);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 6px rgba(139, 35, 50, 0.2);
}

.pain-icon {
    width: 28px;
    height: 28px;
    color: white;
}

.pain-quote {
    font-style: italic;
    color: var(--color-text-secondary);
    margin-bottom: 0.75rem;
    font-size: 1.05rem;
}

.pain-solution {
    font-weight: 600;
    color: var(--color-navy-primary);
    font-size: 1rem;
}

/* Feature Section */
.features-section {
    padding: 5rem 0;
    background: white;
}

.feature-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    margin-top: 3rem;
}

.feature-card {
    text-align: center;
    padding: 2.5rem 2rem;
    border-radius: var(--radius-lg);
    transition: transform 0.2s, box-shadow 0.2s;
    background: var(--color-bg-page);
    border: 1px solid var(--color-border);
}

.feature-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.08), 0 10px 10px -5px rgba(0, 0, 0, 0.02);
    border-color: transparent;
}

.feature-icon-wrapper {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, var(--color-navy-primary) 0%, var(--color-navy-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1.5rem;
    box-shadow: 0 8px 16px rgba(30, 58, 95, 0.2);
}

.feature-icon {
    width: 32px;
    height: 32px;
    color: white;
}

.feature-title {
    margin-bottom: 0.75rem;
    color: var(--color-navy-primary);
    font-size: 1.25rem;
}

.feature-desc {
    color: var(--color-text-secondary);
    line-height: 1.6;
}

/* District Section */
.district-section {
    padding: 5rem 0;
    background: var(--bg-light);
    text-align: center;
}

.district-form {
    max-width: 400px;
    margin: 0 auto 1.5rem;
}

.district-form-inner {
    display: flex;
    gap: 0.75rem;
}

.district-input {
    flex: 1;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    text-transform: lowercase;
}

.district-input:focus {
    outline: none;
    border-color: var(--primary);
}

.district-example {
    color: var(--text-light);
    font-size: 0.9rem;
}

/* CTA Section */
.cta-section {
    padding: 5rem 0;
    background: linear-gradient(135deg, var(--color-red-primary) 0%, #6B1A27 100%);
    color: white;
    text-align: center;
    position: relative;
    overflow: hidden;
}

.cta-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-image: radial-gradient(circle at 20% 80%, rgba(255,255,255,0.05) 0%, transparent 40%),
                      radial-gradient(circle at 80% 20%, rgba(255,255,255,0.05) 0%, transparent 40%);
    pointer-events: none;
}

.cta-content {
    position: relative;
    z-index: 1;
}

.cta-title {
    color: white;
    margin-bottom: 0.75rem;
    font-size: 2rem;
}

.cta-subtitle {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 2rem;
    font-size: 1.25rem;
}

.cta-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* ============================================================================
   Footer
   ============================================================================ */
.footer {
    background: var(--bg-dark);
    color: white;
    padding: 4rem 0 2rem;
}

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

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: 2rem;
    }
    .footer-brand {
        grid-column: 1 / -1;
    }
}

.footer-heading {
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 1rem;
    color: rgba(255, 255, 255, 0.7);
}

.footer-column {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.footer-link {
    color: rgba(255, 255, 255, 0.8);
    font-size: 0.9rem;
}

.footer-link:hover {
    color: var(--color-red-light);
}

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

/* ============================================================================
   Page Header
   ============================================================================ */
.page-header {
    background: linear-gradient(135deg, var(--color-navy-primary) 0%, var(--color-navy-dark) 100%);
    color: white;
    padding: 4rem 0;
    text-align: center;
}

.page-title {
    color: white;
    margin-bottom: 0.75rem;
}

.page-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 1.125rem;
}

/* ============================================================================
   Pricing
   ============================================================================ */
.pricing-section {
    padding: 3rem 0 5rem;
    background: linear-gradient(180deg, white 0%, #F8FAFC 100%);
}

.pricing-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    padding: 3rem 0;
    max-width: 1000px;
    margin: 0 auto;
}

.tier-card {
    background: white;
    border: 2px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 2rem;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s, box-shadow 0.2s;
}

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

.tier-highlighted {
    border-color: var(--color-red-primary);
    box-shadow: 0 20px 40px rgba(139, 35, 50, 0.15);
    position: relative;
    transform: scale(1.02);
}

.tier-highlighted:hover {
    transform: scale(1.02) translateY(-4px);
}

.tier-highlighted::before {
    content: 'Most Popular';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, var(--color-red-primary) 0%, var(--color-red-light) 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.375rem 1.25rem;
    border-radius: 999px;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    box-shadow: 0 4px 6px rgba(139, 35, 50, 0.2);
}

.tier-header {
    text-align: center;
    padding-bottom: 1.5rem;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 1.5rem;
}

.tier-name {
    font-size: 1.25rem;
    margin-bottom: 0.5rem;
    color: var(--color-navy-primary);
}

.tier-price {
    font-size: 3rem;
    font-weight: 700;
    color: var(--color-navy-dark);
}

.tier-period {
    color: var(--text-light);
    font-size: 1rem;
}

.tier-features {
    flex: 1;
    margin-bottom: 1.5rem;
}

.tier-feature {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text);
}

.check-icon {
    width: 18px;
    height: 18px;
    color: var(--success);
    flex-shrink: 0;
}

.pricing-note {
    text-align: center;
    color: var(--text-light);
    font-size: 0.9rem;
}

/* ============================================================================
   FAQ
   ============================================================================ */
.faq-section {
    padding: 4rem 0;
    background: var(--bg-light);
}

.faq-grid {
    display: grid;
    gap: 1.5rem;
    max-width: 800px;
    margin: 2rem auto 0;
}

.faq-item {
    background: white;
    padding: 1.5rem;
    border-radius: var(--radius);
    box-shadow: var(--shadow-sm);
}

.faq-question {
    font-size: 1rem;
    margin-bottom: 0.5rem;
}

.faq-answer {
    color: var(--text-light);
}

/* ============================================================================
   Demo Page
   ============================================================================ */
.demo-section {
    padding: 4rem 0;
}

.demo-container {
    max-width: 800px;
}

.video-placeholder {
    background: var(--bg-light);
    border: 2px dashed var(--border);
    border-radius: var(--radius-lg);
    aspect-ratio: 16/9;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 2rem;
}

.video-placeholder-inner {
    text-align: center;
}

.play-icon {
    width: 64px;
    height: 64px;
    color: var(--text-light);
    margin-bottom: 1rem;
}

.video-placeholder-text {
    color: var(--text-light);
}

.demo-features {
    margin: 1.5rem 0;
}

.demo-features li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
}

.demo-cta {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

/* ============================================================================
   Signup Flow
   ============================================================================ */
.signup-section {
    padding: 4rem 0;
    background: var(--bg-light);
    min-height: calc(100vh - 200px);
}

.signup-container {
    max-width: 480px;
}

.signup-progress {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 3rem;
}

.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
}

.step-number {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background: var(--border);
    color: var(--text-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 0.875rem;
}

.step-number.active {
    background: var(--primary);
    color: white;
}

.step-label {
    font-size: 0.75rem;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.step-label.active {
    color: var(--primary);
    font-weight: 600;
}

.signup-form {
    background: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.signup-title {
    text-align: center;
    margin-bottom: 2rem;
}

.form-group {
    margin-bottom: 1.5rem;
}

.form-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--text-dark);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group select {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 2px solid var(--border);
    border-radius: var(--radius);
    background: white;
    transition: border-color 0.2s;
}

.form-group input:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--primary);
}

.form-help {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-top: 0.5rem;
}

.radio-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
}

.radio-label {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-weight: 400;
    cursor: pointer;
}

.signup-login-link {
    text-align: center;
    margin-top: 1.5rem;
    color: var(--text-light);
    font-size: 0.9rem;
}

.signup-success {
    background: white;
    padding: 3rem 2.5rem;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    text-align: center;
}

.success-icon-wrapper {
    margin-bottom: 1.5rem;
}

.success-icon {
    width: 64px;
    height: 64px;
    color: var(--success);
}

.signup-subdomain {
    background: var(--bg-light);
    padding: 0.75rem 1rem;
    border-radius: var(--radius);
    margin: 1.5rem 0;
    font-family: monospace;
}

.signup-info {
    color: var(--text-light);
    margin-bottom: 2rem;
}

/* ============================================================================
   District Page
   ============================================================================ */
.district-content {
    padding: 3rem 0;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

@media (max-width: 640px) {
    .stats-grid {
        grid-template-columns: 1fr;
    }
}

.stat-card {
    background: var(--bg-light);
    border-radius: var(--radius);
    padding: 1.5rem;
    text-align: center;
}

.stat-label {
    font-size: 0.875rem;
    color: var(--text-light);
    margin-bottom: 0.5rem;
}

.stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-dark);
}

.district-section-title {
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--border);
}

.district-overview {
    margin-bottom: 3rem;
}

.district-overview-text {
    color: var(--text);
    line-height: 1.8;
}

.district-cta-box {
    background: var(--primary);
    color: white;
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
}

.district-cta-title {
    color: white;
    margin-bottom: 1.5rem;
}

.district-cta-list {
    display: inline-block;
    text-align: left;
    margin-bottom: 2rem;
}

.district-cta-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: rgba(255, 255, 255, 0.9);
}

.district-cta-list .check-icon {
    color: var(--color-red-light);
}

.district-cta-note {
    margin-top: 1rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.7);
}

/* District Page - Stats Section */
.stats-section {
    padding: 3rem 0;
    background: linear-gradient(180deg, var(--color-navy-dark) 0%, var(--color-navy-primary) 100%);
    margin-top: -2rem;
    position: relative;
    z-index: 2;
}

.stats-grid-v2 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
}

@media (max-width: 768px) {
    .stats-grid-v2 {
        grid-template-columns: 1fr;
    }
}

.stat-card-v2 {
    background: white;
    padding: 1.75rem 1.5rem;
    border-radius: var(--radius-lg);
    text-align: center;
    border: none;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
}

.stat-card-v2:hover {
    transform: translateY(-2px);
}

.stat-icon-wrapper {
    width: 52px;
    height: 48px;
    background: var(--color-navy-primary);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 1rem;
}

.stat-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.stat-card-v2 .stat-label {
    font-size: 0.875rem;
    color: var(--color-text-secondary);
    margin-bottom: 0.25rem;
}

.stat-card-v2 .stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--color-navy-primary);
}

/* District Page - Overview Section */
.overview-section {
    padding: 4rem 0;
    background: white;
}

.overview-card {
    background: var(--color-bg-page);
    padding: 2.5rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    max-width: 800px;
    margin: 0 auto;
}

.overview-text {
    font-size: 1.1rem;
    line-height: 1.8;
    color: var(--color-text-primary);
}

.overview-subsection-title {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
    color: var(--color-navy-primary);
    font-size: 1.125rem;
}

/* Partisan Lean Indicator */
.partisan-lean-indicator {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-top: 1.5rem;
    padding: 1rem;
    background: white;
    border-radius: var(--radius);
}

.partisan-bar {
    flex: 1;
    height: 8px;
    background: linear-gradient(90deg, #2563EB 0%, #9CA3AF 50%, #DC2626 100%);
    border-radius: 4px;
    position: relative;
}

.partisan-marker {
    position: absolute;
    top: 50%;
    transform: translate(-50%, -50%);
    width: 16px;
    height: 16px;
    background: white;
    border: 3px solid var(--color-navy-dark);
    border-radius: 50%;
    box-shadow: 0 2px 4px rgba(0,0,0,0.2);
}

.partisan-label {
    font-weight: 600;
    font-size: 0.875rem;
    min-width: 60px;
}

.partisan-label-dem {
    color: #2563EB;
}

.partisan-label-rep {
    color: #DC2626;
}

.overview-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-primary);
}

.overview-subsection-title {
    font-size: 1rem;
    font-weight: 600;
    color: var(--color-text-primary);
    margin: 1.5rem 0 0.75rem;
}

.overview-counties {
    margin-top: 1.5rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--color-border);
}

.counties-list {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.county-tag {
    background: var(--color-bg-page);
    color: var(--color-text-primary);
    padding: 0.25rem 0.75rem;
    border-radius: var(--radius-full);
    font-size: 0.875rem;
    border: 1px solid var(--color-border);
}

/* Hero hint text */
.hero-hint {
    color: rgba(255, 255, 255, 0.7);
    font-size: 0.9rem;
    margin-bottom: 1.5rem;
}

/* ============================================================================
   About Page
   ============================================================================ */
.about-section {
    padding: 4rem 0;
}

.about-block {
    margin-bottom: 3rem;
}

.about-block:last-child {
    margin-bottom: 0;
}

.about-text {
    font-size: 1.125rem;
    line-height: 1.7;
    color: var(--color-text-primary);
    max-width: 700px;
}

/* ============================================================================
   Contact Page
   ============================================================================ */
.contact-section {
    padding: 4rem 0;
}

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

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

.contact-card {
    background: white;
    padding: 2rem;
    border-radius: var(--radius-lg);
    border: 1px solid var(--color-border);
    text-align: center;
}

.contact-title {
    font-size: 1.25rem;
    color: var(--color-navy-primary);
    margin-bottom: 0.5rem;
}

.contact-desc {
    color: var(--color-text-secondary);
    margin-bottom: 1rem;
}

.contact-email {
    font-weight: 600;
    color: var(--color-navy-primary);
}

/* ============================================================================
   Districts Page
   ============================================================================ */
.districts-section {
    padding: 4rem 0;
}

.districts-lookup {
    margin-bottom: 3rem;
    text-align: center;
}

.region-block {
    margin-bottom: 2rem;
}

.region-title {
    font-size: 1.25rem;
    color: var(--color-navy-primary);
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 2px solid var(--color-border);
}

.states-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
}

.state-link {
    display: inline-block;
    padding: 0.5rem 1rem;
    background: var(--color-bg-page);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-md);
    color: var(--color-text-primary);
    font-size: 0.875rem;
    transition: all 0.2s;
}

.state-link:hover {
    background: var(--color-navy-primary);
    border-color: var(--color-navy-primary);
    color: white;
}

/* ============================================================================
   Features Page (Full)
   ============================================================================ */
.feature-section-full {
    padding: 3rem 0;
    border-bottom: 1px solid var(--border);
}

.feature-section-full:nth-child(even) {
    background: var(--bg-light);
}

.feature-section-header {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.section-icon-wrapper {
    width: 48px;
    height: 48px;
    background: var(--primary);
    border-radius: var(--radius);
    display: flex;
    align-items: center;
    justify-content: center;
}

.section-icon {
    width: 24px;
    height: 24px;
    color: white;
}

.feature-section-title {
    font-size: 1.5rem;
    margin: 0;
}

.feature-list {
    margin-left: 4rem;
}

.feature-list li {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 0.5rem 0;
    color: var(--text);
}

.features-cta {
    padding: 4rem 0;
    text-align: center;
}

/* ============================================================================
   Legal Pages
   ============================================================================ */
.legal-section {
    padding: 3rem 0;
}

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

.legal-date {
    color: var(--text-light);
    font-size: 0.9rem;
    margin-bottom: 2rem;
}

.legal-content h2 {
    font-size: 1.25rem;
    margin: 2rem 0 1rem;
}

.legal-content p {
    margin-bottom: 1rem;
    line-height: 1.8;
}

/* ============================================================================
   Error Pages
   ============================================================================ */
.error-section {
    padding: 4rem 0;
    text-align: center;
}

.district-examples {
    text-align: left;
    display: inline-block;
    margin: 1.5rem 0 2rem;
}

.district-examples li {
    padding: 0.5rem 0;
}

.error-cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

/* ============================================================================
   Utilities
   ============================================================================ */
.text-center { text-align: center; }
.text-left { text-align: left; }
.font-bold { font-weight: 700; }
.font-semibold { font-weight: 600; }
.font-medium { font-weight: 500; }
.text-xl { font-size: 1.25rem; }
.text-lg { font-size: 1.125rem; }
.text-sm { font-size: 0.875rem; }
.tracking-tight { letter-spacing: -0.025em; }
.text-gray-400 { color: #9ca3af; }
.mt-2 { margin-top: 0.5rem; }

.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: 0.5rem; }
.gap-6 { gap: 1.5rem; }
.py-4 { padding-top: 1rem; padding-bottom: 1rem; }
