:root {
    --navy: #0f172a;
    --navy-light: #1e293b;
    --blue: #3b82f6;
    --blue-hover: #2563eb;
    --green: #16a34a;
    --green-light: #dcfce7;
    --red: #dc2626;
    --red-light: #fee2e2;
    --yellow: #f59e0b;
    --yellow-light: #fef3c7;
    --gray-50: #f8fafc;
    --gray-100: #f1f5f9;
    --gray-200: #e2e8f0;
    --gray-300: #cbd5e1;
    --gray-400: #94a3b8;
    --gray-500: #64748b;
    --gray-700: #334155;
    --gray-900: #0f172a;
    --white: #ffffff;
    --radius: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.1), 0 1px 2px rgba(0,0,0,0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.1), 0 4px 6px -4px rgba(0,0,0,0.1);
}

/* -- Dark mode overrides -- */
[data-theme="dark"] {
    --gray-50: #0f172a;
    --gray-100: #1e293b;
    --gray-200: #334155;
    --gray-300: #475569;
    --gray-400: #94a3b8;
    --gray-500: #94a3b8;
    --gray-700: #cbd5e1;
    --gray-900: #f1f5f9;
    --white: #1e293b;
    --shadow: 0 1px 3px rgba(0,0,0,0.3), 0 1px 2px rgba(0,0,0,0.2);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.3), 0 4px 6px -4px rgba(0,0,0,0.2);
    --green-light: #064e3b;
    --red-light: #450a0a;
    --yellow-light: #451a03;
}

[data-theme="dark"] body {
    background: #0f172a;
}
[data-theme="dark"] .main-content {
    background: #0f172a;
}

[data-theme="dark"] .form-group input,
[data-theme="dark"] .form-group textarea,
[data-theme="dark"] .form-group select {
    background: #0f172a;
    color: #f1f5f9;
}

[data-theme="dark"] .line-items-table input {
    background: #0f172a;
    color: #f1f5f9;
}

[data-theme="dark"] .auth-card {
    background: #1e293b;
    color: #f1f5f9;
}

[data-theme="dark"] .modal {
    background: #1e293b;
    color: #f1f5f9;
}

[data-theme="dark"] .pill-draft { background: #334155; color: #94a3b8; }
[data-theme="dark"] .pill-sent { background: rgba(59,130,246,0.15); color: #60a5fa; }
[data-theme="dark"] .pill-paid { background: #064e3b; color: #4ade80; }
[data-theme="dark"] .pill-overdue { background: #450a0a; color: #f87171; }

[data-theme="dark"] .mock-invoice {
    background: #1e293b;
}

[data-theme="dark"] .blog-card,
[data-theme="dark"] .pricing-card {
    background: #1e293b;
}

[data-theme="dark"] .blog-cta {
    background: #0f172a;
}

/* Sidebar — distinct from main content in dark mode */
[data-theme="dark"] .sidebar {
    background: #111827;
    border-right: 1px solid #1e293b;
}
[data-theme="dark"] .sidebar nav a {
    color: #9ca3af;
}
[data-theme="dark"] .sidebar nav a:hover {
    color: #f9fafb;
    background: rgba(59,130,246,0.1);
}
[data-theme="dark"] .sidebar nav a.active {
    color: #ffffff;
    background: rgba(59,130,246,0.15);
    border-right: 3px solid #3b82f6;
}
[data-theme="dark"] .sidebar-logo { color: #f9fafb; }
[data-theme="dark"] .sidebar-footer { border-top-color: #1e293b; }
[data-theme="dark"] .sidebar-footer .user-name { color: #f9fafb; }
[data-theme="dark"] .sidebar-footer a,
[data-theme="dark"] .sidebar-footer .theme-toggle { color: #9ca3af; }
[data-theme="dark"] .sidebar-footer .theme-toggle-label { color: #9ca3af; }

/* Buttons — keep white text on colored buttons */
[data-theme="dark"] .btn-primary,
[data-theme="dark"] .btn-green,
[data-theme="dark"] .btn-danger {
    color: #ffffff;
}
[data-theme="dark"] .btn-outline {
    background: #1e293b;
    color: #cbd5e1;
    border-color: #334155;
}
[data-theme="dark"] .btn-outline:hover {
    background: #334155;
    border-color: #475569;
}

/* Tables */
[data-theme="dark"] .table-wrap {
    background: #1e293b;
    border-color: #334155;
}
[data-theme="dark"] thead th {
    background: #0f172a;
    color: #94a3b8;
    border-bottom-color: #334155;
}
[data-theme="dark"] tbody td {
    color: #e2e8f0;
    border-bottom-color: #1e293b;
}
[data-theme="dark"] tbody tr:hover {
    background: rgba(255,255,255,0.03);
}

/* Cards & stat cards */
[data-theme="dark"] .card,
[data-theme="dark"] .stat-card {
    background: #1e293b;
    border-color: #334155;
    color: #e2e8f0;
}

/* Selects outside .form-group (e.g. status filter) */
[data-theme="dark"] select {
    background: #0f172a;
    color: #f1f5f9;
    border-color: #334155;
}

/* Page header text */
[data-theme="dark"] .page-header h2,
[data-theme="dark"] .page-header h3,
[data-theme="dark"] h2, [data-theme="dark"] h3 {
    color: #f1f5f9;
}

/* Empty state */
[data-theme="dark"] .empty-state {
    color: #94a3b8;
}
[data-theme="dark"] .empty-state h3 {
    color: #cbd5e1;
}

/* Line items table */
[data-theme="dark"] .line-items-table {
    border-color: #334155;
}
[data-theme="dark"] .line-items-table th {
    background: #0f172a;
    color: #94a3b8;
}
[data-theme="dark"] .line-items-table td {
    border-bottom-color: #1e293b;
    color: #e2e8f0;
}

/* Invoice detail view */
[data-theme="dark"] .invoice-detail {
    background: #1e293b;
    color: #e2e8f0;
}

/* Scrollbar */
[data-theme="dark"] ::-webkit-scrollbar-track { background: #0f172a; }
[data-theme="dark"] ::-webkit-scrollbar-thumb { background: #334155; }

/* Dark mode toggle button */
.theme-toggle {
    display: flex;
    align-items: center;
    gap: 8px;
    background: none;
    border: none;
    color: var(--gray-400);
    cursor: pointer;
    font-size: 12px;
    font-family: inherit;
    padding: 6px 0;
    transition: color 0.15s;
}

.theme-toggle:hover {
    color: var(--white);
}

.theme-toggle-icon {
    font-size: 16px;
    line-height: 1;
}

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

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: var(--gray-50);
    color: var(--gray-900);
    line-height: 1.5;
}

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

/* -- Layout -- */
.app-shell { display: flex; min-height: 100vh; }

.sidebar {
    width: 220px;
    background: var(--navy);
    color: var(--white);
    padding: 20px 0;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    display: flex;
    flex-direction: column;
    z-index: 100;
}

.sidebar-logo {
    padding: 0 20px 20px;
    font-size: 22px;
    font-weight: 700;
    letter-spacing: -0.5px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-bottom: 10px;
}

.sidebar-logo span { color: var(--blue); }

.sidebar nav { flex: 1; }

.sidebar nav a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 20px;
    color: var(--gray-400);
    font-size: 14px;
    font-weight: 500;
    transition: all 0.15s;
}

.sidebar nav a:hover,
.sidebar nav a.active {
    color: var(--white);
    background: rgba(255,255,255,0.08);
}

.sidebar nav a.active { border-right: 3px solid var(--blue); }

.sidebar-footer {
    padding: 15px 20px;
    border-top: 1px solid rgba(255,255,255,0.1);
    font-size: 12px;
    color: var(--gray-400);
}

.sidebar-footer .user-name { color: var(--white); font-weight: 600; }

.main-content {
    flex: 1;
    margin-left: 220px;
    padding: 30px;
    max-width: 1100px;
}

/* -- Auth pages (no sidebar) -- */
.auth-container {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--navy);
}

.auth-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 40px;
    width: 100%;
    max-width: 400px;
    box-shadow: var(--shadow-lg);
}

.auth-card h1 {
    font-size: 24px;
    margin-bottom: 6px;
}

.auth-card .subtitle {
    color: var(--gray-500);
    margin-bottom: 24px;
    font-size: 14px;
}

.auth-card .toggle {
    text-align: center;
    margin-top: 16px;
    font-size: 13px;
    color: var(--gray-500);
}

/* -- Forms -- */
.form-group { margin-bottom: 16px; }

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: 4px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid var(--gray-200);
    border-radius: 6px;
    font-size: 14px;
    font-family: inherit;
    transition: border-color 0.15s;
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(59,130,246,0.15);
}

.form-group textarea { resize: vertical; min-height: 70px; }

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
}

/* -- Revenue Chart -- */
.revenue-chart {
    display: flex;
    align-items: flex-end;
    gap: 6px;
    height: 220px;
    padding-top: 24px;
}

.revenue-bar-col {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: 100%;
    min-width: 0;
}

.revenue-bar-amount {
    font-size: 10px;
    font-weight: 600;
    color: var(--gray-500);
    margin-bottom: 4px;
    white-space: nowrap;
    min-height: 14px;
}

.revenue-bar-track {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
}

.revenue-bar {
    width: 70%;
    max-width: 48px;
    background: var(--blue);
    border-radius: 4px 4px 0 0;
    transition: background 0.2s, height 0.4s ease;
    min-height: 2px;
}

.revenue-bar:hover {
    background: var(--blue-hover);
}

.revenue-bar-label {
    font-size: 10px;
    color: var(--gray-500);
    margin-top: 6px;
    white-space: nowrap;
}

/* -- Top Clients -- */
.top-client-row {
    padding: 10px 0;
    border-bottom: 1px solid var(--gray-100);
}

.top-client-row:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.top-client-info {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 4px;
}

.top-client-rank {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--gray-100);
    color: var(--gray-500);
    font-size: 11px;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.top-client-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--gray-900);
}

.top-client-meta {
    font-size: 11px;
    color: var(--gray-400);
}

.top-client-total {
    font-size: 13px;
    font-weight: 700;
    color: var(--blue);
    text-align: right;
    margin-bottom: 4px;
}

.top-client-bar-track {
    height: 6px;
    background: var(--gray-100);
    border-radius: 3px;
    overflow: hidden;
}

.top-client-bar {
    height: 100%;
    background: var(--blue);
    border-radius: 3px;
    transition: width 0.4s ease;
}

/* -- Buttons -- */
.btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.15s;
    font-family: inherit;
}

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

.btn-green { background: var(--green); color: var(--white); }
.btn-green:hover { background: #15803d; }

.btn-outline {
    background: var(--white);
    color: var(--gray-700);
    border: 1px solid var(--gray-200);
}
.btn-outline:hover { background: var(--gray-50); border-color: var(--gray-300); }

.btn-danger { background: var(--red); color: var(--white); }
.btn-danger:hover { background: #b91c1c; }

.btn-sm { padding: 5px 10px; font-size: 12px; }

.btn-block { width: 100%; justify-content: center; }

.btn-group { display: flex; gap: 8px; }

/* -- Cards -- */
.page-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.page-header h2 { font-size: 22px; font-weight: 700; }

.card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 20px;
    margin-bottom: 16px;
    box-shadow: var(--shadow);
}

/* -- Stats -- */
.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.stat-card {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    padding: 16px;
    box-shadow: var(--shadow);
}

.stat-card .stat-label {
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stat-card .stat-value {
    font-size: 24px;
    font-weight: 700;
    margin-top: 4px;
}

.stat-card .stat-value { color: var(--gray-900); }
.stat-card.green { border-left: 3px solid var(--green); }
.stat-card.blue { border-left: 3px solid var(--blue); }
.stat-card.red { border-left: 3px solid var(--red); }
.stat-card.yellow { border-left: 3px solid var(--yellow); }

/* -- Table -- */
.table-wrap {
    background: var(--white);
    border-radius: var(--radius);
    border: 1px solid var(--gray-200);
    overflow: hidden;
    box-shadow: var(--shadow);
}

table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

thead th {
    background: var(--gray-50);
    padding: 10px 14px;
    text-align: left;
    font-weight: 600;
    font-size: 12px;
    text-transform: uppercase;
    color: var(--gray-500);
    letter-spacing: 0.5px;
    border-bottom: 1px solid var(--gray-200);
}

tbody td {
    padding: 10px 14px;
    border-bottom: 1px solid var(--gray-100);
}

tbody tr:hover { background: var(--gray-50); }
tbody tr { cursor: pointer; }

/* -- Status pills -- */
.pill {
    display: inline-block;
    padding: 2px 10px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pill-draft { background: var(--gray-100); color: var(--gray-500); }
.pill-sent { background: #dbeafe; color: var(--blue); }
.pill-paid { background: var(--green-light); color: var(--green); }
.pill-overdue { background: var(--red-light); color: var(--red); }

/* -- Line items editor -- */
.line-items-table { width: 100%; border-collapse: collapse; margin-top: 8px; }

.line-items-table th {
    text-align: left;
    padding: 6px 8px;
    font-size: 12px;
    font-weight: 600;
    color: var(--gray-500);
    border-bottom: 1px solid var(--gray-200);
}

.line-items-table td { padding: 4px 8px; }

.line-items-table input {
    width: 100%;
    padding: 6px 8px;
    border: 1px solid var(--gray-200);
    border-radius: 4px;
    font-size: 13px;
    font-family: inherit;
}

.line-items-table .col-desc { width: 50%; }
.line-items-table .col-qty { width: 12%; }
.line-items-table .col-rate { width: 15%; }
.line-items-table .col-amount { width: 15%; text-align: right; font-weight: 600; }
.line-items-table .col-action { width: 8%; text-align: center; }

.remove-row {
    background: none;
    border: none;
    color: var(--red);
    cursor: pointer;
    font-size: 18px;
    padding: 2px 6px;
}

.remove-row:hover { color: #991b1b; }

/* -- Totals -- */
.invoice-totals {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    margin-top: 12px;
    gap: 4px;
}

.invoice-totals .total-row {
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.invoice-totals .total-row.grand {
    font-size: 18px;
    font-weight: 700;
    color: var(--green);
    margin-top: 4px;
    padding-top: 8px;
    border-top: 2px solid var(--gray-200);
}

/* -- Modal -- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 200;
}

.modal {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px;
    width: 100%;
    max-width: 480px;
    box-shadow: var(--shadow-lg);
}

.modal h3 { margin-bottom: 16px; }

/* -- Toast -- */
.toast {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background: var(--navy);
    color: var(--white);
    padding: 12px 20px;
    border-radius: 6px;
    font-size: 14px;
    z-index: 300;
    animation: slideUp 0.3s ease;
}

.toast.success { background: var(--green); }
.toast.error { background: var(--red); }

@keyframes slideUp {
    from { transform: translateY(20px); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}

/* -- Batch action bar -- */
.batch-bar { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--navy); color: white; padding: 12px 24px; border-radius: 12px; display: flex; align-items: center; gap: 12px; box-shadow: 0 8px 32px rgba(0,0,0,0.3); z-index: 100; font-size: 14px; }
.batch-bar .batch-count { font-weight: 600; margin-right: 8px; }
.batch-bar button { background: rgba(255,255,255,0.15); border: none; color: white; padding: 6px 14px; border-radius: 6px; cursor: pointer; font-size: 13px; }
.batch-bar button:hover { background: rgba(255,255,255,0.25); }
.batch-bar .batch-delete { color: #f87171; }
.batch-bar .batch-delete:hover { background: rgba(248,113,113,0.2); }

/* -- Empty state -- */
.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: var(--gray-400);
}

.empty-state h3 { color: var(--gray-500); margin-bottom: 8px; }

/* =============================================
   LANDING PAGE
   ============================================= */

.landing { overflow-x: hidden; padding: 0 40px; }
@media (max-width: 768px) { .landing { padding: 0 16px; } }

/* Nav */
.landing-nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
}

.landing-nav-inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 12px 24px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.landing-logo {
    font-size: 24px;
    font-weight: 800;
    color: var(--white);
    letter-spacing: -0.5px;
}

.landing-logo span { color: var(--blue); }

.landing-nav-links {
    display: flex;
    align-items: center;
    gap: 20px;
}

.landing-nav-links a {
    color: var(--gray-300);
    font-size: 14px;
    font-weight: 500;
}

.landing-nav-links a:hover { color: var(--white); }

/* Hero */
.hero {
    background: var(--navy);
    padding: 120px 24px 80px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 60px;
    max-width: 1100px;
    margin: 0 auto;
    min-height: 90vh;
}

.hero-content { max-width: 560px; }

.hero-badge {
    display: inline-block;
    background: linear-gradient(135deg, rgba(59,130,246,0.15), rgba(124,58,237,0.15));
    border: 1px solid rgba(99,102,241,0.3);
    color: var(--blue);
    padding: 6px 16px;
    border-radius: 99px;
    font-size: 13px;
    font-weight: 600;
    margin-bottom: 20px;
}

.hero h1 {
    font-size: 48px;
    font-weight: 800;
    color: var(--white);
    line-height: 1.15;
    letter-spacing: -1px;
    margin-bottom: 20px;
}

.gradient-text {
    background: linear-gradient(135deg, #3b82f6, #7c3aed, #ec4899);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.hero-sub {
    font-size: 18px;
    color: var(--gray-400);
    line-height: 1.6;
    margin-bottom: 32px;
}

.hero-cta {
    display: flex;
    gap: 12px;
    margin-bottom: 40px;
}

.btn-lg { padding: 12px 24px; font-size: 15px; }

.hero-proof {
    display: flex;
    gap: 20px;
    align-items: center;
}

.hero-stat {
    color: var(--gray-400);
    font-size: 14px;
}

.hero-stat strong { color: var(--white); }

.hero-divider {
    width: 1px;
    height: 20px;
    background: rgba(255,255,255,0.15);
}

/* Mock invoice visual */
.hero-visual { flex-shrink: 0; }

.mock-invoice {
    width: 260px;
    background: var(--white);
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 25px 50px rgba(0,0,0,0.3), 0 0 0 1px rgba(255,255,255,0.1);
    transform: perspective(600px) rotateY(-5deg) rotateX(2deg);
}

.mock-header {
    height: 32px;
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    border-radius: 6px;
    margin-bottom: 20px;
}

.mock-row {
    height: 10px;
    background: var(--gray-100);
    border-radius: 4px;
    margin-bottom: 10px;
}

.mock-row.short { width: 65%; }

.mock-total {
    height: 28px;
    background: linear-gradient(135deg, #10b981, #059669);
    border-radius: 6px;
    margin-top: 20px;
}

/* Sections */
.section-inner {
    max-width: 1000px;
    margin: 0 auto;
    padding: 0 24px;
}

.section-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2px;
    color: var(--blue);
    margin-bottom: 12px;
}

.features-section,
.compare-section,
.pricing-section {
    padding: 80px 0;
}

.features-section { background: var(--white); }
.compare-section { background: var(--gray-50); }
.pricing-section { background: var(--white); }

.features-section h2,
.compare-section h2,
.pricing-section h2 {
    font-size: 32px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 40px;
    letter-spacing: -0.5px;
}

/* Features grid */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.feature-card {
    padding: 24px;
    border-radius: 12px;
    border: 1px solid var(--gray-200);
    transition: all 0.2s;
}

.feature-card:hover {
    border-color: var(--blue);
    box-shadow: 0 4px 12px rgba(59,130,246,0.1);
    transform: translateY(-2px);
}

.feature-icon {
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    margin-bottom: 14px;
    color: white;
}

.feature-card h3 {
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--gray-900);
}

.feature-card p {
    font-size: 14px;
    color: var(--gray-500);
    line-height: 1.5;
}

/* Compare table */
.compare-table-wrap { overflow-x: auto; }

.compare-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 14px;
}

.compare-table th,
.compare-table td {
    padding: 12px 20px;
    text-align: center;
    border-bottom: 1px solid var(--gray-200);
}

.compare-table th:first-child,
.compare-table td:first-child {
    text-align: left;
    font-weight: 500;
}

.compare-table .highlight {
    background: rgba(59,130,246,0.06);
    color: var(--blue);
    font-weight: 700;
}

.compare-table thead th.highlight {
    background: var(--blue);
    color: var(--white);
    border-radius: 8px 8px 0 0;
}

.price-row td { font-size: 16px; }

/* Pricing */
.pricing-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 24px;
    max-width: 700px;
    margin: 0 auto;
}

.pricing-card {
    border: 1px solid var(--gray-200);
    border-radius: 16px;
    padding: 32px;
    position: relative;
    background: var(--white);
}

.pricing-card.featured {
    border: 2px solid var(--blue);
    box-shadow: 0 8px 30px rgba(59,130,246,0.15);
}

.pricing-badge {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    color: white;
    padding: 4px 16px;
    border-radius: 99px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1px;
}

.pricing-tier {
    font-size: 18px;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: 8px;
}

.pricing-price {
    font-size: 48px;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: 24px;
    letter-spacing: -1px;
}

.pricing-price span {
    font-size: 16px;
    font-weight: 500;
    color: var(--gray-400);
}

.pricing-features {
    list-style: none;
    margin-bottom: 24px;
}

.pricing-features li {
    padding: 6px 0;
    font-size: 14px;
    color: var(--gray-700);
}

.pricing-features li.muted { color: var(--gray-400); }

.pricing-note {
    text-align: center;
    font-size: 12px;
    color: var(--gray-400);
    margin-top: 12px;
}

/* CTA */
.cta-section {
    background: linear-gradient(135deg, #3b82f6, #7c3aed);
    padding: 80px 24px;
}

.cta-section h2 {
    font-size: 36px;
    font-weight: 800;
    color: var(--white);
    margin-bottom: 12px;
}

/* Footer */
.landing-footer {
    background: var(--navy);
    padding: 20px 0;
    border-top: 1px solid rgba(255,255,255,0.08);
}

/* -- Responsive -- */
@media (max-width: 768px) {
    .sidebar { display: none; }
    .main-content { margin-left: 0; padding: 16px; }
    .form-row { grid-template-columns: 1fr; }
    .stats-grid { grid-template-columns: 1fr 1fr; }

    .hero { flex-direction: column; padding-top: 100px; gap: 40px; min-height: auto; }
    .hero h1 { font-size: 32px; }
    .hero-visual { display: none; }
    .hero-cta { flex-direction: column; }
    .hero-proof { flex-wrap: wrap; }
    .features-grid { grid-template-columns: 1fr; }
    .pricing-grid { grid-template-columns: 1fr; }
    .landing-nav-links a:not(.btn) { display: none; }
    .revenue-chart { height: 160px; }
    .revenue-bar-amount { font-size: 8px; }
}

/* ── Blog ── */
.blog-container { max-width: 800px; margin: 0 auto; padding: 40px 24px; }
.blog-header { margin-bottom: 40px; }
.blog-header h1 { font-size: 32px; font-weight: 800; color: var(--gray-900); margin-bottom: 8px; }
.blog-header p { color: var(--gray-500); font-size: 16px; }
.blog-grid { display: flex; flex-direction: column; gap: 20px; }
.blog-card { display: block; padding: 24px; border: 1px solid var(--gray-200); border-radius: var(--radius); background: var(--white); text-decoration: none; transition: border-color 0.15s, box-shadow 0.15s; }
.blog-card:hover { border-color: var(--blue); box-shadow: 0 2px 12px rgba(59,130,246,0.08); }
.blog-card-date { font-size: 13px; color: var(--gray-400); margin-bottom: 8px; }
.blog-card h2 { font-size: 18px; font-weight: 700; color: var(--gray-900); margin-bottom: 8px; line-height: 1.4; }
.blog-card p { font-size: 14px; color: var(--gray-500); line-height: 1.6; margin-bottom: 12px; }
.blog-read-more { font-size: 13px; font-weight: 600; color: var(--blue); }
.blog-article { }
.blog-back { font-size: 14px; color: var(--blue); font-weight: 500; text-decoration: none; display: inline-block; margin-bottom: 16px; }
.blog-back:hover { text-decoration: underline; }
.blog-article-date { font-size: 13px; color: var(--gray-400); margin-bottom: 8px; }
.blog-article h1 { font-size: 28px; font-weight: 800; color: var(--gray-900); line-height: 1.3; margin-bottom: 24px; }
.blog-content { font-size: 16px; line-height: 1.8; color: var(--gray-700); }
.blog-content h2 { font-size: 22px; font-weight: 700; color: var(--gray-900); margin: 32px 0 12px; }
.blog-content h3 { font-size: 18px; font-weight: 600; color: var(--gray-900); margin: 24px 0 8px; }
.blog-content p { margin-bottom: 16px; }
.blog-content ul, .blog-content ol { margin: 0 0 16px 24px; }
.blog-content li { margin-bottom: 6px; line-height: 1.7; }
.blog-content a { color: var(--blue); text-decoration: underline; }
.blog-content code { background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.blog-cta { margin: 40px 0; padding: 32px; background: var(--gray-50); border: 1px solid var(--gray-200); border-radius: var(--radius); text-align: center; }
.blog-cta h3 { font-size: 20px; font-weight: 700; margin-bottom: 8px; color: var(--gray-900); }
.blog-cta p { color: var(--gray-500); margin-bottom: 16px; font-size: 15px; }
.blog-loading { text-align: center; padding: 60px 0; color: var(--gray-400); }

/* Blog landing page styles */
.blog-lp { max-width: 720px; margin: 0 auto; padding: 0 40px; }
.blog-lp-article { font-size: 17px; line-height: 1.9; color: var(--gray-700); padding: 48px 0; }
.blog-lp-article h1 { font-size: 36px; font-weight: 800; color: var(--gray-900); line-height: 1.3; margin-bottom: 12px; letter-spacing: -0.5px; }
.blog-lp-article .blog-lp-date { font-size: 13px; color: var(--gray-400); margin-bottom: 40px; }
.blog-lp-article h2 { font-size: 24px; font-weight: 700; color: var(--gray-900); margin: 48px 0 16px; }
.blog-lp-article h3 { font-size: 20px; font-weight: 600; color: var(--gray-900); margin: 40px 0 12px; }
.blog-lp-article p { margin-bottom: 24px; }
.blog-lp-article ul, .blog-lp-article ol { margin: 0 0 24px 24px; }
.blog-lp-article li { margin-bottom: 10px; line-height: 1.8; }
.blog-lp-article a { color: var(--blue); text-decoration: underline; }
.blog-lp-article a.btn { color: var(--white); text-decoration: none; }
.blog-lp-article code { background: var(--gray-100); padding: 2px 6px; border-radius: 4px; font-size: 14px; }
.blog-lp-article .blog-cta { margin: 56px 0 40px; padding: 40px; background: var(--gray-50); border-radius: 12px; text-align: center; border: 1px solid var(--gray-200); }
.blog-lp-article .blog-cta h3 { margin: 0 0 8px !important; font-size: 22px !important; }
.blog-lp-article .blog-cta p { margin-bottom: 20px !important; color: var(--gray-500); font-size: 15px; }
