/* ============================================
   ChartCoder - Stylesheet
   Design tokens from SmartCoding.ai
   ============================================ */

/* CSS Variables */
:root {
    --primary-dark: #0a0a23;
    --primary: #12123d;
    --primary-light: #1a1a5c;
    --accent: #4f6df5;
    --accent-light: #7b93f7;
    --accent-glow: rgba(79, 109, 245, 0.3);
    --success: #10b981;
    --warning: #f59e0b;
    --danger: #ef4444;
    --white: #ffffff;
    --gray-50: #f9fafb;
    --gray-100: #f3f4f6;
    --gray-200: #e5e7eb;
    --gray-300: #d1d5db;
    --gray-400: #9ca3af;
    --gray-500: #6b7280;
    --gray-600: #4b5563;
    --gray-700: #374151;
    --gray-800: #1f2937;
    --gray-900: #111827;

    --font-main: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --font-display: 'Plus Jakarta Sans', var(--font-main);

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px -1px rgba(0, 0, 0, 0.1);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -2px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -4px rgba(0, 0, 0, 0.1);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);

    --radius-sm: 0.375rem;
    --radius: 0.5rem;
    --radius-lg: 0.75rem;
    --radius-xl: 1rem;
    --radius-2xl: 1.5rem;

    --transition: all 0.3s ease;
    --transition-fast: all 0.15s ease;
}

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

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

body {
    font-family: var(--font-main);
    line-height: 1.6;
    color: var(--gray-700);
    background: var(--white);
    overflow-x: hidden;
}

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

a {
    color: var(--accent);
    text-decoration: none;
    transition: var(--transition-fast);
}
a:hover { color: var(--accent-light); }

ul, ol { list-style: none; }

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

h1 { font-size: clamp(2.5rem, 5vw, 3.75rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: clamp(1.25rem, 2vw, 1.5rem); }

p { margin-bottom: 1rem; }
.lead { font-size: 1.25rem; color: var(--gray-600); line-height: 1.7; }

/* Container */
.container { width: 100%; max-width: 1280px; margin: 0 auto; padding: 0 1.5rem; }
.container-sm { max-width: 720px; }

/* Section */
.section { padding: 1rem 0 2rem; }
.section-gray { background: var(--gray-50); }
.section-dark { background: var(--primary-dark); color: var(--white); }
.section-dark h1, .section-dark h2, .section-dark h3, .section-dark h4 { color: var(--white); }
.section-dark p, .section-dark .lead { color: var(--gray-300); }

.section-header { text-align: center; max-width: 800px; margin: 0 auto 4rem; }
.section-header h2 { margin-bottom: 1rem; }
.section-label {
    display: inline-block; font-size: 0.875rem; font-weight: 600;
    color: var(--accent); text-transform: uppercase; letter-spacing: 0.1em; margin-bottom: 0.75rem;
}

/* Utilities */
.text-center { text-align: center; }
.text-muted { color: var(--gray-500); }
.mt-3 { margin-top: 1.5rem; }
.mt-4 { margin-top: 2rem; }
.mt-5 { margin-top: 3rem; }

/* ============================================
   Buttons
   ============================================ */
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
    padding: 0.875rem 1.75rem; font-family: var(--font-main); font-size: 1rem; font-weight: 600;
    border-radius: var(--radius-lg); border: 2px solid transparent; cursor: pointer;
    transition: var(--transition); text-decoration: none; white-space: nowrap;
}
.btn i { font-size: 1.1em; }
.btn-primary { background: var(--accent); color: var(--white); border-color: var(--accent); }
.btn-primary:hover { background: var(--accent-light); border-color: var(--accent-light); color: var(--white); transform: translateY(-2px); box-shadow: 0 10px 30px var(--accent-glow); }
.btn-cta { background: var(--warning); color: var(--primary-dark); border-color: var(--warning); font-weight: 700; }
.btn-cta:hover { background: #fbbf24; border-color: #fbbf24; color: var(--primary-dark); transform: translateY(-2px); }
.btn-secondary { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.3); }
.btn-secondary:hover { background: var(--white); color: var(--primary-dark); border-color: var(--white); }
.btn-outline { background: transparent; color: var(--accent); border-color: var(--accent); }
.btn-outline:hover { background: var(--accent); color: var(--white); }
.btn-warning { background: var(--warning); color: var(--primary-dark); border-color: var(--warning); }
.btn-danger-outline { background: transparent; color: var(--danger); border-color: var(--danger); }
.btn-danger-outline:hover { background: var(--danger); color: var(--white); }
.btn-lg { padding: 1rem 2rem; font-size: 1.125rem; }
.btn-sm { padding: 0.625rem 1.25rem; font-size: 0.875rem; }
.btn-group { display: flex; flex-wrap: wrap; gap: 1rem; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; transform: none !important; }
.btn-icon { background: none; border: none; cursor: pointer; padding: 0.5rem; color: var(--gray-400); transition: var(--transition-fast); font-size: 1rem; }
.btn-icon:hover { color: var(--accent); }
.btn-icon.favorited { color: var(--warning); }
.btn-icon.danger:hover { color: var(--danger); }

/* ============================================
   Header
   ============================================ */
.header {
    position: sticky; top: 0; z-index: 1000;
    background: rgba(10, 10, 35, 0.97); backdrop-filter: blur(10px);
    box-shadow: var(--shadow-lg);
}
.header-inner { display: flex; align-items: center; justify-content: space-between; padding: 0.75rem 0; }
.logo { display: flex; align-items: center; text-decoration: none; }
.logo-img { height: 72px; width: auto; }
.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav-links { display: flex; align-items: center; gap: 0.25rem; }
.nav-link { padding: 0.5rem 0.75rem; color: rgba(255,255,255,0.8); font-weight: 500; border-radius: var(--radius); transition: var(--transition-fast); text-decoration: none; font-size: 0.95rem; }
.nav-link:hover, .nav-link.active { color: var(--white); background: rgba(255,255,255,0.1); }
.nav-cta { display: flex; align-items: center; gap: 0.75rem; }
.mobile-toggle { display: none; flex-direction: column; gap: 5px; padding: 0.5rem; background: none; border: none; cursor: pointer; }
.mobile-toggle span { display: block; width: 24px; height: 2px; background: var(--white); border-radius: 2px; transition: var(--transition); }

@media (max-width: 768px) {
    .mobile-toggle { display: flex; }
    .nav { position: fixed; top: 0; right: -100%; width: 280px; height: 100vh; background: var(--primary-dark); flex-direction: column; align-items: flex-start; padding: 5rem 1.5rem 2rem; gap: 1rem; transition: var(--transition); box-shadow: var(--shadow-xl); }
    .nav.open { right: 0; }
    .nav-links { flex-direction: column; align-items: flex-start; width: 100%; }
    .nav-link { width: 100%; padding: 0.75rem 1rem; }
    .nav-cta { flex-direction: column; width: 100%; }
    .nav-cta .btn { width: 100%; }
}

/* ============================================
   Page Headers
   ============================================ */
.page-header-sm {
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%);
    padding: 1.75rem 0 1.5rem; text-align: center;
}
.page-header-sm h1 { color: var(--white); margin-bottom: 0.5rem; font-size: clamp(1.5rem, 3vw, 2rem); }
.page-header-sm .lead { color: var(--gray-300); max-width: 600px; margin: 0 auto; font-size: 1rem; }

/* ============================================
   Hero
   ============================================ */
.hero {
    position: relative; min-height: 80vh; display: flex; align-items: center;
    background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
    overflow: hidden;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.hero-shape { position: absolute; border-radius: 50%; background: var(--accent); opacity: 0.1; filter: blur(60px); }
.hero-shape-1 { width: 600px; height: 600px; top: -200px; right: -100px; }
.hero-shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; background: var(--accent-light); }
.hero-content { position: relative; z-index: 1; max-width: 800px; margin: 0 auto; }
.hero-content h1 { color: var(--white); margin-bottom: 1.5rem; }
.hero-content .lead { color: var(--gray-300); margin-bottom: 2rem; }

/* ============================================
   How It Works
   ============================================ */
.process-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; position: relative; }
.process-steps.three-col::before { content: ''; position: absolute; top: 40px; left: 15%; right: 15%; height: 2px; background: var(--gray-200); }
.process-step { text-align: center; position: relative; z-index: 1; }
.step-number { width: 80px; height: 80px; display: flex; align-items: center; justify-content: center; background: var(--white); border: 3px solid var(--accent); border-radius: 50%; margin: 0 auto 1.5rem; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent); transition: var(--transition); }
.process-step:hover .step-number { background: var(--accent); color: var(--white); }
.process-step h4 { margin-bottom: 0.5rem; }
.process-step p { color: var(--gray-600); font-size: 0.9375rem; }

@media (max-width: 768px) {
    .process-steps { grid-template-columns: 1fr; }
    .process-steps.three-col::before { display: none; }
}

/* ============================================
   Forms
   ============================================ */
.form-group { margin-bottom: 1.5rem; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem; }
.form-label { display: block; font-weight: 500; margin-bottom: 0.5rem; color: var(--gray-700); }
.form-input, .form-select, .form-textarea {
    width: 100%; padding: 0.875rem 1rem; font-family: var(--font-main); font-size: 1rem;
    border: 1px solid var(--gray-300); border-radius: var(--radius-lg); transition: var(--transition-fast);
    background: var(--white);
}
.form-input:focus, .form-select:focus, .form-textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-glow); }
.form-textarea { min-height: 150px; resize: vertical; }
.form-submit { width: 100%; }
.form-check { display: flex; align-items: center; gap: 0.5rem; cursor: pointer; }
.form-check input[type="checkbox"] { width: 18px; height: 18px; accent-color: var(--accent); }
.form-check-group { margin-bottom: 1rem; }

.textarea-footer { display: flex; justify-content: space-between; align-items: center; margin-top: 0.5rem; }
.char-counter { font-size: 0.875rem; color: var(--gray-500); }

.validation-summary:empty, .validation-summary:not(:has(li)) { display: none; }
.validation-summary { background: #fef2f2; border: 1px solid #fecaca; border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin-bottom: 1.5rem; color: var(--danger); }
.validation-summary ul { padding-left: 1rem; }
.validation-summary li { list-style: disc; margin-bottom: 0.25rem; }
.field-validation { font-size: 0.875rem; color: var(--danger); margin-top: 0.25rem; display: block; }

@media (max-width: 576px) {
    .form-row { grid-template-columns: 1fr; }
}

/* ============================================
   Auth Forms
   ============================================ */
.auth-form-card {
    background: var(--white); padding: 2.5rem; border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg); max-width: 560px; margin: 0 auto;
}
.auth-alt { text-align: center; margin-top: 1.5rem; color: var(--gray-600); }

/* ============================================
   Profile
   ============================================ */
.profile-stats { display: flex; gap: 2rem; margin-bottom: 2rem; padding-bottom: 2rem; border-bottom: 1px solid var(--gray-200); }
.profile-stat { text-align: center; flex: 1; }
.profile-stat-value { display: block; font-family: var(--font-display); font-size: 1.5rem; font-weight: 700; color: var(--accent); }
.profile-stat-label { font-size: 0.875rem; color: var(--gray-500); }

/* ============================================
   Analyze Page
   ============================================ */
.analyze-layout { position: relative; }
.analyze-textarea { min-height: 250px; font-family: 'Courier New', monospace; font-size: 0.9375rem; line-height: 1.7; }

/* Usage Meter */
.usage-meter { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1rem 1.25rem; margin-bottom: 2rem; }
.usage-meter-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; font-weight: 500; color: var(--gray-700); }
.usage-meter-bar { height: 8px; background: var(--gray-200); border-radius: 4px; overflow: hidden; }
.usage-meter-fill { height: 100%; background: var(--accent); border-radius: 4px; transition: width 0.5s ease; }
.usage-meter-text { font-size: 0.875rem; color: var(--gray-500); margin-top: 0.5rem; }
.usage-meter-compact { display: flex; align-items: center; gap: 0.5rem; padding: 0.75rem 1rem; margin-bottom: 2rem; font-size: 0.9rem; }
.usage-tier-badge { font-size: 0.75rem; font-weight: 600; padding: 0.25rem 0.75rem; border-radius: 999px; text-transform: uppercase; }
.usage-tier-badge.free { background: var(--gray-200); color: var(--gray-700); }
.usage-tier-badge.pro { background: var(--accent); color: var(--white); }
.usage-tier-badge.unlimited { background: var(--warning); color: var(--primary-dark); }

/* Loading Overlay */
.loading-overlay {
    display: none; position: fixed; inset: 0; z-index: 9999;
    background: rgba(10, 10, 35, 0.85); backdrop-filter: blur(4px);
    flex-direction: column; align-items: center; justify-content: center; gap: 1.5rem;
}
.loading-overlay.visible { display: flex; }
.loading-spinner {
    width: 48px; height: 48px; border: 4px solid rgba(255,255,255,0.2);
    border-top-color: var(--accent-light); border-radius: 50%;
    animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-text { color: var(--white); font-size: 1.125rem; font-weight: 500; transition: opacity 0.2s ease; }

/* ============================================
   Results
   ============================================ */
.results-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; align-items: start; }
.results-section h2 { font-size: 1.25rem; margin-bottom: 0.5rem; display: flex; align-items: center; gap: 0.5rem; }
.results-hint { font-size: 0.875rem; margin-bottom: 1rem; }
.results-section h2 i { color: var(--accent); }

/* Compact Result Card */
.result-card-compact {
    border: 1px solid var(--gray-200); border-radius: var(--radius-lg);
    margin-bottom: 0.5rem; overflow: hidden; transition: var(--transition);
}
.result-card-compact:hover { border-color: var(--accent); }
.result-card-compact[open] { box-shadow: var(--shadow-md); border-color: var(--accent); }

.result-card-row {
    display: flex; align-items: center; gap: 0.75rem; padding: 0.625rem 1rem;
    cursor: pointer; list-style: none; background: var(--white);
}
.result-card-row::-webkit-details-marker { display: none; }
.result-card-row::marker { display: none; content: ''; }

.code-badge {
    display: inline-flex; align-items: center; padding: 0.25rem 0.625rem;
    font-family: var(--font-display); font-size: 0.875rem; font-weight: 700;
    border-radius: var(--radius); color: var(--white); flex-shrink: 0;
}
.code-badge.icd { background: var(--primary); min-width: 5.5rem; justify-content: center; }
.code-badge.cpt { background: var(--accent); min-width: 5.5rem; justify-content: center; }

.code-description-inline { flex: 1; font-size: 0.9375rem; font-weight: 500; color: var(--gray-700); min-width: 0; }

.confidence-compact { display: flex; align-items: center; gap: 0.375rem; flex-shrink: 0; }
.confidence-dot { width: 8px; height: 8px; border-radius: 50%; }
.confidence-dot.high { background: var(--success); }
.confidence-dot.medium { background: var(--warning); }
.confidence-dot.low { background: var(--danger); }
.confidence-label { font-size: 0.8125rem; font-weight: 600; }
.confidence-label.high { color: var(--success); }
.confidence-label.medium { color: var(--warning); }
.confidence-label.low { color: var(--danger); }

.code-charge-inline { font-size: 0.875rem; font-weight: 600; color: var(--warning); flex-shrink: 0; }

.expand-icon { font-size: 0.75rem; color: var(--gray-400); transition: transform 0.2s ease; flex-shrink: 0; }
.result-card-compact[open] .expand-icon { transform: rotate(180deg); color: var(--accent); }

.result-card-detail { padding: 0.75rem 1rem; background: var(--gray-50); border-top: 1px solid var(--gray-200); }
.code-reasoning-text { font-size: 0.875rem; color: var(--gray-600); line-height: 1.6; margin: 0; }

@media (max-width: 576px) {
    .result-card-row { flex-wrap: wrap; gap: 0.375rem; padding: 0.5rem 0.75rem; }
    .code-description-inline { white-space: normal; order: 10; width: 100%; font-size: 0.875rem; }
    .expand-icon { order: 11; margin-left: auto; }
}

.results-actions { display: flex; flex-wrap: wrap; gap: 1rem; margin-top: 2rem; }

.sample-results { max-width: 640px; margin: 0 auto; }

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

/* ============================================
   Platform CTA
   ============================================ */
.platform-cta {
    margin-top: 3rem; background: linear-gradient(135deg, var(--primary-dark), var(--primary));
    border-radius: var(--radius-xl); padding: 2.5rem; text-align: center;
}
.platform-cta h3 { color: var(--white); margin-bottom: 0.75rem; }
.platform-cta p { color: var(--gray-300); margin-bottom: 1.5rem; max-width: 500px; margin-left: auto; margin-right: auto; }

/* ============================================
   History
   ============================================ */
.history-list { display: flex; flex-direction: column; gap: 1rem; }
.history-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); overflow: hidden; transition: var(--transition); }
.history-card:hover { border-color: var(--accent); box-shadow: var(--shadow-md); }
.history-card-header { display: flex; justify-content: space-between; align-items: center; padding: 0.75rem 1.25rem; background: var(--gray-50); border-bottom: 1px solid var(--gray-200); }
.history-date { font-size: 0.875rem; color: var(--gray-500); display: flex; align-items: center; gap: 0.5rem; }
.history-actions { display: flex; gap: 0.25rem; }
.history-card-body { display: block; padding: 1rem 1.25rem; text-decoration: none; color: inherit; }
.history-card-body:hover { color: inherit; }
.history-preview { font-size: 0.9375rem; color: var(--gray-600); margin-bottom: 0.75rem; line-height: 1.5; }
.history-meta { display: flex; gap: 1.5rem; font-size: 0.875rem; }
.history-confidence { display: flex; align-items: center; gap: 0.375rem; }
.history-confidence.high { color: var(--success); }
.history-confidence.medium { color: var(--warning); }
.history-confidence.low { color: var(--danger); }
.history-patient { color: var(--gray-500); display: flex; align-items: center; gap: 0.375rem; }

.detail-meta-bar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1.25rem; }
.detail-meta { display: flex; gap: 1.5rem; font-size: 0.9375rem; color: var(--gray-600); }
.detail-meta i { color: var(--accent); }
.detail-actions-inline { display: flex; align-items: center; gap: 0.5rem; }

@media (max-width: 576px) {
    .detail-meta-bar { flex-direction: column; align-items: flex-start; gap: 0.75rem; }
    .detail-meta { gap: 1rem; font-size: 0.875rem; }
}
.detail-preview { background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius-lg); padding: 1.25rem; margin-bottom: 2rem; }
.detail-preview h3 { font-size: 1rem; margin-bottom: 0.5rem; }
.detail-preview p { color: var(--gray-600); font-size: 0.9375rem; margin: 0; }

/* Empty State */
.empty-state { text-align: center; padding: 4rem 2rem; }
.empty-state i { font-size: 3rem; color: var(--gray-300); margin-bottom: 1rem; }
.empty-state h3 { margin-bottom: 0.75rem; }
.empty-state p { color: var(--gray-500); margin-bottom: 1.5rem; }

/* Pagination */
.pagination { display: flex; justify-content: center; gap: 0.5rem; margin-top: 2rem; }
.pagination-btn { display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: var(--radius); border: 1px solid var(--gray-300); color: var(--gray-700); font-weight: 500; text-decoration: none; transition: var(--transition-fast); }
.pagination-btn:hover { border-color: var(--accent); color: var(--accent); }
.pagination-btn.active { background: var(--accent); color: var(--white); border-color: var(--accent); }

/* ============================================
   Usage Limit / Error Cards
   ============================================ */
.limit-card { background: var(--white); border: 1px solid var(--gray-200); border-radius: var(--radius-xl); padding: 3rem; max-width: 560px; margin: 0 auto; }
.limit-icon { font-size: 3rem; color: var(--warning); margin-bottom: 1.5rem; }
.limit-icon.error { color: var(--danger); }
.limit-card h2 { font-size: 1.5rem; margin-bottom: 1rem; }
.limit-actions { display: flex; flex-wrap: wrap; gap: 1rem; justify-content: center; margin-top: 2rem; }

/* ============================================
   Pricing
   ============================================ */
.pricing-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; max-width: 960px; margin: 0 auto; }
.pricing-card { background: rgba(255,255,255,0.05); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius-xl); padding: 2.5rem 2rem; text-align: center; position: relative; }
.pricing-card.featured { border-color: var(--accent); background: rgba(79,109,245,0.1); }
.pricing-badge { position: absolute; top: -12px; left: 50%; transform: translateX(-50%); background: var(--accent); color: var(--white); font-size: 0.75rem; font-weight: 600; padding: 0.375rem 1rem; border-radius: 999px; text-transform: uppercase; }
.pricing-card h3 { color: var(--white); margin-bottom: 1rem; }
.pricing-price { font-family: var(--font-display); font-size: 2.5rem; font-weight: 700; color: var(--white); margin-bottom: 0.5rem; }
.pricing-price span { font-size: 1rem; font-weight: 400; color: var(--gray-400); }
.pricing-desc { color: var(--gray-400); margin-bottom: 1.5rem; font-size: 0.9375rem; }
.pricing-card ul { margin-bottom: 2rem; }
.pricing-card li { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0; color: var(--gray-300); font-size: 0.9375rem; }
.pricing-card li i { color: var(--success); font-size: 0.875rem; }

/* Light pricing variant (for pricing page) */
.pricing-grid.light .pricing-card { background: var(--white); border-color: var(--gray-200); box-shadow: var(--shadow); }
.pricing-grid.light .pricing-card.featured { border-color: var(--accent); box-shadow: var(--shadow-lg); }
.pricing-grid.light .pricing-card h3 { color: var(--gray-900); }
.pricing-grid.light .pricing-price { color: var(--gray-900); }
.pricing-grid.light .pricing-price span { color: var(--gray-500); }
.pricing-grid.light .pricing-desc { color: var(--gray-600); }
.pricing-grid.light .pricing-card li { color: var(--gray-700); }

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

/* ============================================
   CTA Section
   ============================================ */
.cta-section { text-align: center; background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 100%); }
.cta-content h2 { color: var(--white); margin-bottom: 1rem; }
.cta-content p { color: var(--gray-300); font-size: 1.25rem; margin-bottom: 2rem; max-width: 600px; margin-left: auto; margin-right: auto; }

/* ============================================
   Alert
   ============================================ */
/* Legal Content */
.legal-content h2 { font-size: 1.25rem; margin-top: 2rem; margin-bottom: 0.75rem; }
.legal-content h3 { font-size: 1.0625rem; margin-top: 1.5rem; margin-bottom: 0.5rem; }
.legal-content p { margin-bottom: 0.875rem; color: var(--gray-700); line-height: 1.7; }
.legal-content ul { padding-left: 1.25rem; margin-bottom: 1rem; }
.legal-content li { list-style: disc; margin-bottom: 0.375rem; color: var(--gray-700); line-height: 1.6; }
.legal-content h2:first-child { margin-top: 0; }

.alert { padding: 1rem 1.25rem; border-radius: var(--radius-lg); margin-bottom: 1.5rem; display: flex; align-items: center; gap: 0.75rem; }
.alert-success { background: #ecfdf5; border: 1px solid #a7f3d0; color: #065f46; }

/* Callout */
.callout { display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.875rem 1.25rem; border-radius: var(--radius-lg); margin-bottom: 1.25rem; font-size: 0.9375rem; line-height: 1.5; }
.callout i { margin-top: 0.125rem; flex-shrink: 0; }
.callout-warning { background: #fffbeb; border: 1px solid #fde68a; color: #92400e; }
.callout-warning i { color: var(--warning); }
.callout-success { background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; }
.callout-success i { color: #16a34a; }

@media (max-width: 576px) {
    .callout { font-size: 0.8125rem; padding: 0.75rem 1rem; }
    .usage-meter-compact { font-size: 0.8125rem; flex-wrap: wrap; }
}

/* ============================================
   Footer
   ============================================ */
.footer { background: var(--gray-900); color: var(--gray-400); padding-top: 3rem; }
.footer-inner { display: flex; justify-content: space-between; align-items: flex-start; gap: 3rem; padding-bottom: 2rem; border-bottom: 1px solid var(--gray-800); }
.footer-brand { max-width: 300px; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-brand p { font-size: 0.9375rem; line-height: 1.6; }
.footer-brand .logo-img { height: 32px; margin-bottom: 0.75rem; }
.footer-links-group { display: flex; gap: 4rem; }
.footer-column h4 { color: var(--white); font-size: 0.9375rem; margin-bottom: 1rem; }
.footer-column ul li { margin-bottom: 0.5rem; }
.footer-column a { color: var(--gray-400); font-size: 0.9375rem; }
.footer-column a:hover { color: var(--white); }
.footer-bottom { padding: 1.25rem 0; text-align: center; }
.footer-bottom p { font-size: 0.875rem; margin: 0; }

@media (max-width: 768px) {
    .footer-inner { flex-direction: column; }
    .footer-links-group { gap: 2rem; }
}
