/* ============================================================
   abaHQ.net — Design System (app.css)
   Primary: Rose #DB2777 | Accent: Deep Rose #9D174D
   Fonts: Bricolage Grotesque (headings) + Source Serif 4 (body)
   ============================================================ */

/* -----------------------------------------------------------
   CSS Custom Properties
   ----------------------------------------------------------- */
:root {
    /* Brand Colors */
    --brand: #DB2777;
    --brand-light: #FDF2F8;
    --brand-lighter: #FFF5F9;
    --brand-dark: #9D174D;
    --brand-darker: #831843;

    /* Accent */
    --accent: #F59E0B;
    --accent-light: #FEF3C7;

    /* Neutrals */
    --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;

    /* Semantic */
    --success: #059669;
    --success-light: #D1FAE5;
    --warning: #D97706;
    --warning-light: #FEF3C7;
    --danger: #DC2626;
    --danger-light: #FEE2E2;
    --info: #2563EB;
    --info-light: #DBEAFE;

    /* Typography */
    --font-heading: 'Bricolage Grotesque', sans-serif;
    --font-body: 'Source Serif 4', Georgia, serif;
    --font-mono: 'JetBrains Mono', monospace;

    /* Spacing */
    --space-xs: 4px;
    --space-sm: 8px;
    --space-md: 16px;
    --space-lg: 24px;
    --space-xl: 32px;
    --space-2xl: 48px;
    --space-3xl: 64px;
    --space-4xl: 96px;

    /* Borders */
    --radius-sm: 6px;
    --radius-md: 10px;
    --radius-lg: 16px;
    --radius-xl: 24px;
    --radius-full: 9999px;

    /* Shadows */
    --shadow-sm: 0 1px 2px rgba(0,0,0,0.05);
    --shadow-md: 0 4px 6px -1px rgba(0,0,0,0.07), 0 2px 4px -2px rgba(0,0,0,0.05);
    --shadow-lg: 0 10px 15px -3px rgba(0,0,0,0.08), 0 4px 6px -4px rgba(0,0,0,0.04);
    --shadow-xl: 0 20px 25px -5px rgba(0,0,0,0.1), 0 8px 10px -6px rgba(0,0,0,0.05);
    --shadow-brand: 0 4px 14px rgba(219,39,119,0.25);

    /* Layout */
    --container-max: 1200px;
    --container-narrow: 800px;
    --header-height: 72px;
}

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

html {
    scroll-behavior: smooth;
    -webkit-text-size-adjust: 100%;
}

body {
    font-family: var(--font-body);
    font-size: 17px;
    line-height: 1.7;
    color: var(--gray-800);
    background: var(--gray-50);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); text-decoration: none; transition: color 0.2s; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.2;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

h1 { font-size: clamp(2rem, 5vw, 3.25rem); }
h2 { font-size: clamp(1.5rem, 4vw, 2.25rem); }
h3 { font-size: clamp(1.25rem, 3vw, 1.625rem); }
h4 { font-size: 1.25rem; }
h5 { font-size: 1.1rem; }

p { margin-bottom: 1rem; }
p:last-child { margin-bottom: 0; }

/* -----------------------------------------------------------
   Layout
   ----------------------------------------------------------- */
.container {
    max-width: var(--container-max);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.container-narrow {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: 0 var(--space-lg);
}

.section {
    padding: var(--space-4xl) 0;
}

.section-sm {
    padding: var(--space-2xl) 0;
}

/* -----------------------------------------------------------
   Header / Navigation
   ----------------------------------------------------------- */
.site-header {
    position: sticky;
    top: 0;
    z-index: 100;
    background: rgba(255,255,255,0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid var(--gray-200);
    height: var(--header-height);
    display: flex;
    align-items: center;
}

.site-header .container {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
}

.site-logo {
    display: flex;
    align-items: center;
    gap: 2px;
    text-decoration: none;
    font-size: 1.625rem;
    font-weight: 900;
    letter-spacing: -0.5px;
}

.site-logo .logo-aba { color: var(--gray-800); }
.site-logo .logo-hq { color: var(--brand); }

.site-nav {
    display: flex;
    align-items: center;
    gap: var(--space-xl);
}

.site-nav a {
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 500;
    color: var(--gray-600);
    transition: color 0.2s;
}

.site-nav a:hover,
.site-nav a.active {
    color: var(--brand);
}

.nav-cta {
    display: inline-flex;
    align-items: center;
    padding: 10px 22px;
    background: var(--brand);
    color: #fff !important;
    border-radius: var(--radius-full);
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s;
}

.nav-cta:hover {
    background: var(--brand-dark);
    color: #fff !important;
    transform: translateY(-1px);
    box-shadow: var(--shadow-brand);
}

/* Mobile nav toggle */
.nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: var(--space-sm);
}

.nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--gray-700);
    margin: 5px 0;
    transition: 0.3s;
}

@media (max-width: 768px) {
    .nav-toggle { display: block; }

    .site-nav {
        display: none;
        position: absolute;
        top: var(--header-height);
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        padding: var(--space-lg);
        gap: var(--space-md);
        border-bottom: 1px solid var(--gray-200);
        box-shadow: var(--shadow-lg);
    }

    .site-nav.open { display: flex; }
}

/* -----------------------------------------------------------
   Buttons
   ----------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 14px 28px;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 600;
    border: none;
    border-radius: var(--radius-md);
    cursor: pointer;
    transition: all 0.2s;
    text-decoration: none;
    line-height: 1;
}

.btn-primary {
    background: var(--brand);
    color: #fff;
}

.btn-primary:hover {
    background: var(--brand-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-brand);
}

.btn-secondary {
    background: var(--gray-100);
    color: var(--gray-800);
    border: 1px solid var(--gray-200);
}

.btn-secondary:hover {
    background: var(--gray-200);
    color: var(--gray-900);
}

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

.btn-outline:hover {
    background: var(--brand);
    color: #fff;
}

.btn-accent {
    background: var(--accent);
    color: var(--gray-900);
}

.btn-accent:hover {
    background: #E8920A;
    transform: translateY(-1px);
}

.btn-sm {
    padding: 8px 16px;
    font-size: 0.875rem;
}

.btn-lg {
    padding: 18px 36px;
    font-size: 1.125rem;
}

.btn-block {
    display: flex;
    width: 100%;
}

.btn-ghost {
    background: transparent;
    color: var(--gray-600);
    padding: 8px 12px;
}

.btn-ghost:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.btn-danger {
    background: var(--danger);
    color: #fff;
}

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

/* -----------------------------------------------------------
   Cards
   ----------------------------------------------------------- */
.card {
    background: #fff;
    border-radius: var(--radius-lg);
    border: 1px solid var(--gray-200);
    padding: var(--space-xl);
    transition: all 0.2s;
}

.card-hover:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--gray-300);
}

.card-brand {
    border-top: 3px solid var(--brand);
}

/* -----------------------------------------------------------
   Flash Messages
   ----------------------------------------------------------- */
.flash-messages {
    position: fixed;
    top: calc(var(--header-height) + 12px);
    right: 16px;
    z-index: 200;
    display: flex;
    flex-direction: column;
    gap: var(--space-sm);
    max-width: 420px;
}

.flash {
    display: flex;
    align-items: center;
    gap: var(--space-md);
    padding: 14px 20px;
    border-radius: var(--radius-md);
    font-size: 0.9375rem;
    box-shadow: var(--shadow-lg);
    animation: flashIn 0.3s ease-out;
}

.flash-success {
    background: var(--success-light);
    color: #065F46;
    border: 1px solid #A7F3D0;
}

.flash-error {
    background: var(--danger-light);
    color: #991B1B;
    border: 1px solid #FECACA;
}

.flash-warning {
    background: var(--warning-light);
    color: #92400E;
    border: 1px solid #FDE68A;
}

.flash-info {
    background: var(--info-light);
    color: #1E40AF;
    border: 1px solid #93C5FD;
}

.flash-close {
    background: none;
    border: none;
    font-size: 1.25rem;
    cursor: pointer;
    opacity: 0.6;
    margin-left: auto;
    padding: 0 4px;
}

.flash-close:hover { opacity: 1; }

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

/* -----------------------------------------------------------
   Forms
   ----------------------------------------------------------- */
.form-group {
    margin-bottom: var(--space-lg);
}

.form-group label {
    display: block;
    font-family: var(--font-heading);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--gray-700);
    margin-bottom: var(--space-sm);
}

.form-group input[type="text"],
.form-group input[type="email"],
.form-group input[type="password"],
.form-group input[type="number"],
.form-group input[type="url"],
.form-group input[type="date"],
.form-group input[type="datetime-local"],
.form-group select,
.form-group textarea {
    width: 100%;
    padding: 12px 16px;
    font-family: var(--font-body);
    font-size: 1rem;
    color: var(--gray-800);
    background: #fff;
    border: 1.5px solid var(--gray-300);
    border-radius: var(--radius-md);
    transition: border-color 0.2s, box-shadow 0.2s;
}

.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
    outline: none;
    border-color: var(--brand);
    box-shadow: 0 0 0 3px rgba(219,39,119,0.12);
}

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

.form-group .help-text {
    font-size: 0.8125rem;
    color: var(--gray-500);
    margin-top: var(--space-xs);
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--space-lg);
}

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

.form-check {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.form-check input[type="checkbox"] {
    width: 18px;
    height: 18px;
    accent-color: var(--brand);
}

/* -----------------------------------------------------------
   Tables
   ----------------------------------------------------------- */
.table-wrap {
    overflow-x: auto;
    border-radius: var(--radius-md);
    border: 1px solid var(--gray-200);
}

table {
    width: 100%;
    border-collapse: collapse;
}

table th {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    color: var(--gray-500);
    background: var(--gray-50);
    padding: 12px 16px;
    text-align: left;
    border-bottom: 1px solid var(--gray-200);
}

table td {
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-100);
    font-size: 0.9375rem;
}

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

table tbody tr:last-child td {
    border-bottom: none;
}

/* -----------------------------------------------------------
   Badges / Pills
   ----------------------------------------------------------- */
.badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 12px;
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: var(--radius-full);
    line-height: 1.4;
}

.badge-brand { background: var(--brand-light); color: var(--brand-dark); }
.badge-success { background: var(--success-light); color: #065F46; }
.badge-warning { background: var(--warning-light); color: #92400E; }
.badge-danger { background: var(--danger-light); color: #991B1B; }
.badge-info { background: var(--info-light); color: #1E40AF; }
.badge-gray { background: var(--gray-100); color: var(--gray-600); }

/* -----------------------------------------------------------
   Progress Bar
   ----------------------------------------------------------- */
.progress-wrap {
    margin-bottom: var(--space-lg);
}

.progress-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--space-sm);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-700);
}

.progress-bar {
    height: 10px;
    background: var(--gray-200);
    border-radius: var(--radius-full);
    overflow: hidden;
}

.progress-fill {
    height: 100%;
    background: linear-gradient(90deg, var(--brand), var(--brand-dark));
    border-radius: var(--radius-full);
    transition: width 0.5s ease;
}

/* -----------------------------------------------------------
   Checklist
   ----------------------------------------------------------- */
.checklist-item {
    display: flex;
    align-items: flex-start;
    gap: var(--space-md);
    padding: 14px 0;
    border-bottom: 1px solid var(--gray-100);
    cursor: pointer;
    transition: background 0.15s;
}

.checklist-item:hover {
    background: var(--gray-50);
    margin: 0 -16px;
    padding-left: 16px;
    padding-right: 16px;
    border-radius: var(--radius-sm);
}

.checklist-item:last-child { border-bottom: none; }

.checklist-checkbox {
    flex-shrink: 0;
    width: 22px;
    height: 22px;
    border: 2px solid var(--gray-300);
    border-radius: var(--radius-sm);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s;
    margin-top: 2px;
}

.checklist-item.done .checklist-checkbox {
    background: var(--brand);
    border-color: var(--brand);
}

.checklist-item.done .checklist-checkbox::after {
    content: '✓';
    color: #fff;
    font-size: 13px;
    font-weight: 700;
}

.checklist-item.done .checklist-title {
    text-decoration: line-through;
    color: var(--gray-400);
}

.checklist-title {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.9375rem;
    color: var(--gray-800);
}

.checklist-desc {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 2px;
}

.checklist-action {
    font-size: 0.8125rem;
    color: var(--brand);
    margin-top: 4px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.checklist-action:hover { text-decoration: underline; }

/* -----------------------------------------------------------
   Accordion (Progressive Disclosure)
   ----------------------------------------------------------- */
.accordion-section {
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    margin-bottom: var(--space-md);
    overflow: hidden;
    background: #fff;
}

.accordion-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    cursor: pointer;
    background: var(--gray-50);
    border-bottom: 1px solid transparent;
    transition: all 0.2s;
}

.accordion-header:hover {
    background: var(--gray-100);
}

.accordion-header h3 {
    font-size: 1rem;
    font-weight: 600;
    margin: 0;
}

.accordion-header .category-badge {
    font-size: 0.75rem;
    padding: 3px 10px;
    border-radius: var(--radius-full);
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.04em;
}

.accordion-chevron {
    transition: transform 0.3s;
    color: var(--gray-400);
    font-size: 1.25rem;
}

.accordion-section.open .accordion-chevron {
    transform: rotate(180deg);
}

.accordion-section.open .accordion-header {
    border-bottom-color: var(--gray-200);
}

.accordion-body {
    display: none;
    padding: 20px;
}

.accordion-section.open .accordion-body {
    display: block;
}

/* Category colors for accordion badges */
.cat-licensing { background: #DBEAFE; color: #1E40AF; }
.cat-insurance { background: #FEF3C7; color: #92400E; }
.cat-medicaid { background: #D1FAE5; color: #065F46; }
.cat-staffing { background: #FDF2F8; color: var(--brand-dark); }
.cat-facility { background: #E0E7FF; color: #3730A3; }
.cat-billing { background: #FEE2E2; color: #991B1B; }
.cat-timeline { background: #F3F4F6; color: var(--gray-700); }

/* -----------------------------------------------------------
   TOC Sidebar (Desktop)
   ----------------------------------------------------------- */
.content-layout {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: var(--space-2xl);
}

.toc-sidebar {
    position: sticky;
    top: 90px;
    align-self: start;
    max-height: calc(100vh - 120px);
    overflow-y: auto;
}

.toc-sidebar h4 {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-400);
    margin-bottom: var(--space-md);
}

.toc-sidebar a {
    display: block;
    padding: 6px 12px;
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 500;
    color: var(--gray-500);
    border-left: 2px solid transparent;
    transition: all 0.2s;
    margin-bottom: 2px;
}

.toc-sidebar a:hover {
    color: var(--brand);
    background: var(--brand-light);
    border-left-color: var(--brand);
}

.toc-sidebar a.active {
    color: var(--brand-dark);
    background: var(--brand-light);
    border-left-color: var(--brand);
    font-weight: 600;
}

@media (max-width: 768px) {
    .content-layout {
        grid-template-columns: 1fr;
    }
    .toc-sidebar { display: none; }
}

/* -----------------------------------------------------------
   Pricing Cards
   ----------------------------------------------------------- */
.pricing-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    align-items: start;
}

@media (max-width: 900px) {
    .pricing-grid { grid-template-columns: 1fr; max-width: 440px; margin: 0 auto; }
}

.pricing-card {
    background: #fff;
    border: 2px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-xl);
    text-align: center;
    position: relative;
    transition: all 0.3s;
}

.pricing-card:hover {
    box-shadow: var(--shadow-xl);
    transform: translateY(-4px);
}

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

.pricing-card.featured::before {
    content: 'MOST POPULAR';
    position: absolute;
    top: -14px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--brand);
    color: #fff;
    padding: 4px 16px;
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.08em;
}

.pricing-tier {
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand);
    margin-bottom: var(--space-sm);
}

.pricing-price {
    font-family: var(--font-heading);
    font-size: 3rem;
    font-weight: 800;
    color: var(--gray-900);
    margin-bottom: var(--space-xs);
    letter-spacing: -0.03em;
}

.pricing-price .currency { font-size: 1.5rem; vertical-align: top; }
.pricing-price .period { font-size: 1rem; color: var(--gray-500); font-weight: 400; }

.pricing-desc {
    font-size: 0.9375rem;
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
}

.pricing-features {
    list-style: none;
    text-align: left;
    margin-bottom: var(--space-xl);
}

.pricing-features li {
    padding: 8px 0;
    font-size: 0.9375rem;
    color: var(--gray-700);
    display: flex;
    align-items: flex-start;
    gap: var(--space-sm);
}

.pricing-features li::before {
    content: '✓';
    color: var(--brand);
    font-weight: 700;
    flex-shrink: 0;
    margin-top: 1px;
}

/* -----------------------------------------------------------
   State Pills Grid
   ----------------------------------------------------------- */
.state-pills {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: var(--space-sm);
}

.state-pill {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-sm);
    padding: 10px 16px;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--gray-600);
    transition: all 0.2s;
    text-decoration: none;
}

.state-pill.available {
    border-color: var(--brand);
    color: var(--brand-dark);
    background: var(--brand-lighter);
}

.state-pill.available:hover {
    background: var(--brand);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: var(--shadow-brand);
}

.state-pill.coming-soon {
    color: var(--gray-400);
    cursor: default;
}

.state-pill .abbr {
    font-weight: 800;
    font-size: 0.75rem;
    opacity: 0.6;
}

/* -----------------------------------------------------------
   Contact Directory Cards
   ----------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-md);
}

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

.contact-card {
    padding: 14px;
    background: var(--gray-50);
    border-radius: var(--radius-md);
    border-top: 3px solid var(--brand);
    font-size: 0.9375rem;
}

.contact-card.agency { border-top-color: var(--info); }
.contact-card.broker { border-top-color: var(--brand); }
.contact-card.federal { border-top-color: var(--success); }
.contact-card.insurance { border-top-color: var(--accent); }

.contact-card h4 {
    font-size: 0.9375rem;
    margin-bottom: var(--space-xs);
}

.contact-card p {
    font-size: 0.8125rem;
    color: var(--gray-600);
    margin-bottom: 2px;
}

/* -----------------------------------------------------------
   Footer
   ----------------------------------------------------------- */
.site-footer {
    background: var(--gray-900);
    color: var(--gray-400);
    padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: var(--space-2xl);
    margin-bottom: var(--space-2xl);
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr 1fr;
        gap: var(--space-xl);
    }
}

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

.footer-brand .site-logo {
    font-size: 1.5rem;
    margin-bottom: var(--space-md);
}

.footer-brand .site-logo .logo-aba { color: #fff; }

.footer-brand p {
    font-size: 0.875rem;
    line-height: 1.6;
    color: var(--gray-500);
}

.footer-col h4 {
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: var(--gray-300);
    margin-bottom: var(--space-md);
}

.footer-col a {
    display: block;
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-bottom: var(--space-sm);
    transition: color 0.2s;
}

.footer-col a:hover { color: var(--brand); }

.footer-bottom {
    padding-top: var(--space-xl);
    border-top: 1px solid var(--gray-800);
    font-size: 0.8125rem;
    text-align: center;
    color: var(--gray-600);
}

/* -----------------------------------------------------------
   Hero Section
   ----------------------------------------------------------- */
.hero {
    position: relative;
    padding: var(--space-4xl) 0;
    background: linear-gradient(135deg, var(--brand-lighter) 0%, #FFF5F9 25%, #fff 60%, var(--brand-light) 100%);
    overflow: hidden;
}

.hero::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -20%;
    width: 600px;
    height: 600px;
    background: radial-gradient(circle, rgba(219,39,119,0.06) 0%, transparent 70%);
    border-radius: 50%;
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 720px;
}

.hero-badge {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 6px 16px;
    background: var(--brand-light);
    color: var(--brand-dark);
    border-radius: var(--radius-full);
    font-family: var(--font-heading);
    font-size: 0.8125rem;
    font-weight: 600;
    margin-bottom: var(--space-lg);
}

.hero h1 {
    margin-bottom: var(--space-lg);
}

.hero h1 .highlight {
    color: var(--brand);
}

.hero p {
    font-size: 1.1875rem;
    color: var(--gray-600);
    margin-bottom: var(--space-xl);
    max-width: 600px;
}

.hero-actions {
    display: flex;
    gap: var(--space-md);
    flex-wrap: wrap;
}

.hero-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
    margin-top: var(--space-3xl);
    padding-top: var(--space-2xl);
    border-top: 1px solid var(--gray-200);
}

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

.hero-stat-value {
    font-family: var(--font-heading);
    font-size: 2rem;
    font-weight: 800;
    color: var(--gray-900);
    letter-spacing: -0.02em;
}

.hero-stat-label {
    font-size: 0.875rem;
    color: var(--gray-500);
    margin-top: 2px;
}

/* -----------------------------------------------------------
   Features Section
   ----------------------------------------------------------- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

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

.feature-card {
    text-align: center;
    padding: var(--space-xl);
}

.feature-icon {
    width: 56px;
    height: 56px;
    background: var(--brand-light);
    border-radius: var(--radius-lg);
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-md);
    font-size: 1.5rem;
}

.feature-card h3 {
    font-size: 1.125rem;
    margin-bottom: var(--space-sm);
}

.feature-card p {
    font-size: 0.9375rem;
    color: var(--gray-600);
}

/* -----------------------------------------------------------
   Dashboard Layout
   ----------------------------------------------------------- */
.dashboard-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    min-height: calc(100vh - var(--header-height));
}

.dashboard-sidebar {
    background: #fff;
    border-right: 1px solid var(--gray-200);
    padding: var(--space-xl);
}

.dashboard-sidebar a {
    display: flex;
    align-items: center;
    gap: var(--space-sm);
    padding: 10px 14px;
    font-family: var(--font-heading);
    font-size: 0.875rem;
    font-weight: 500;
    color: var(--gray-600);
    border-radius: var(--radius-md);
    margin-bottom: 2px;
    transition: all 0.15s;
}

.dashboard-sidebar a:hover {
    background: var(--gray-100);
    color: var(--gray-900);
}

.dashboard-sidebar a.active {
    background: var(--brand-light);
    color: var(--brand-dark);
    font-weight: 600;
}

.dashboard-main {
    padding: var(--space-2xl);
    max-width: 960px;
}

@media (max-width: 768px) {
    .dashboard-layout { grid-template-columns: 1fr; }
    .dashboard-sidebar {
        border-right: none;
        border-bottom: 1px solid var(--gray-200);
        padding: var(--space-md);
        display: flex;
        gap: var(--space-sm);
        overflow-x: auto;
    }
    .dashboard-sidebar a { white-space: nowrap; }
}

/* -----------------------------------------------------------
   Blog Cards
   ----------------------------------------------------------- */
.blog-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: var(--space-xl);
}

@media (max-width: 900px) {
    .blog-grid { grid-template-columns: repeat(2, 1fr); }
}

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

.blog-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all 0.2s;
    text-decoration: none;
    color: inherit;
}

.blog-card:hover {
    box-shadow: var(--shadow-lg);
    transform: translateY(-2px);
    border-color: var(--gray-300);
    color: inherit;
}

.blog-card-image {
    height: 180px;
    background: var(--brand-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.5rem;
    color: var(--brand);
}

.blog-card-body {
    padding: var(--space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.blog-card-meta {
    font-family: var(--font-heading);
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--gray-400);
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin-bottom: var(--space-sm);
    display: flex;
    align-items: center;
    gap: var(--space-sm);
}

.blog-card-title {
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 700;
    color: var(--gray-900);
    margin-bottom: var(--space-sm);
    line-height: 1.3;
}

.blog-card-excerpt {
    font-size: 0.875rem;
    color: var(--gray-600);
    flex: 1;
}

.blog-card-footer {
    padding-top: var(--space-md);
    margin-top: auto;
    font-size: 0.8125rem;
    color: var(--brand);
    font-weight: 600;
    font-family: var(--font-heading);
}

/* -----------------------------------------------------------
   Blog Post (Single)
   ----------------------------------------------------------- */
.blog-post-header {
    padding: var(--space-3xl) 0 var(--space-2xl);
    background: var(--brand-lighter);
    text-align: center;
}

.blog-post-header .badge { margin-bottom: var(--space-md); }
.blog-post-header h1 { margin-bottom: var(--space-md); max-width: 800px; margin-left: auto; margin-right: auto; }
.blog-post-header .post-meta { color: var(--gray-500); font-size: 0.9375rem; }

.blog-post-content {
    max-width: var(--container-narrow);
    margin: 0 auto;
    padding: var(--space-2xl) var(--space-lg);
}

.blog-post-content h2 {
    margin-top: var(--space-2xl);
    margin-bottom: var(--space-md);
    padding-top: var(--space-lg);
    border-top: 1px solid var(--gray-200);
}

.blog-post-content h3 {
    margin-top: var(--space-xl);
    margin-bottom: var(--space-md);
}

.blog-post-content ul, .blog-post-content ol {
    margin-bottom: 1rem;
    padding-left: 1.5rem;
}

.blog-post-content li { margin-bottom: 0.5rem; }

.blog-post-content blockquote {
    border-left: 3px solid var(--brand);
    padding: var(--space-md) var(--space-lg);
    background: var(--brand-lighter);
    margin: var(--space-lg) 0;
    border-radius: 0 var(--radius-md) var(--radius-md) 0;
    font-style: italic;
    color: var(--gray-700);
}

/* -----------------------------------------------------------
   CTA Box (Blog Posts)
   ----------------------------------------------------------- */
.cta-box {
    background: linear-gradient(135deg, var(--brand-lighter), var(--brand-light));
    border: 2px solid var(--brand);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    text-align: center;
    margin: var(--space-2xl) 0;
}

.cta-box h3 {
    color: var(--brand-dark);
    margin-bottom: var(--space-md);
}

.cta-box p {
    color: var(--gray-700);
    margin-bottom: var(--space-lg);
}

/* -----------------------------------------------------------
   Glossary Tooltips
   ----------------------------------------------------------- */
.glossary-tooltip {
    border-bottom: 1.5px dotted var(--accent);
    cursor: help;
    position: relative;
    transition: border-color 0.2s;
}

.glossary-tooltip:hover {
    border-bottom-color: var(--brand);
}

.glossary-tooltip-popup {
    position: absolute;
    bottom: calc(100% + 8px);
    left: 50%;
    transform: translateX(-50%);
    background: var(--gray-900);
    color: #fff;
    padding: 10px 14px;
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 0.8125rem;
    line-height: 1.5;
    max-width: 300px;
    min-width: 200px;
    z-index: 50;
    pointer-events: none;
    box-shadow: var(--shadow-xl);
}

.glossary-tooltip-popup::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border: 6px solid transparent;
    border-top-color: var(--gray-900);
}

/* -----------------------------------------------------------
   FAQ Accordion
   ----------------------------------------------------------- */
.faq-item {
    border-bottom: 1px solid var(--gray-200);
}

.faq-question {
    display: flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: var(--space-lg) 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    font-family: var(--font-heading);
    font-size: 1.0625rem;
    font-weight: 600;
    color: var(--gray-800);
    transition: color 0.2s;
}

.faq-question:hover { color: var(--brand); }

.faq-answer {
    display: none;
    padding: 0 0 var(--space-lg);
    font-size: 0.9375rem;
    color: var(--gray-600);
    line-height: 1.7;
}

.faq-item.open .faq-answer { display: block; }
.faq-item.open .faq-question .chevron { transform: rotate(180deg); }

/* -----------------------------------------------------------
   Auth Pages
   ----------------------------------------------------------- */
.auth-container {
    max-width: 440px;
    margin: var(--space-3xl) auto;
    padding: 0 var(--space-lg);
}

.auth-card {
    background: #fff;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-xl);
    padding: var(--space-2xl);
    box-shadow: var(--shadow-md);
}

.auth-card h1 {
    font-size: 1.75rem;
    text-align: center;
    margin-bottom: var(--space-xs);
}

.auth-card .auth-subtitle {
    text-align: center;
    color: var(--gray-500);
    margin-bottom: var(--space-xl);
    font-size: 0.9375rem;
}

.auth-divider {
    display: flex;
    align-items: center;
    margin: var(--space-lg) 0;
    color: var(--gray-400);
    font-size: 0.8125rem;
}

.auth-divider::before,
.auth-divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: var(--gray-200);
}

.auth-divider span { padding: 0 var(--space-md); }

.auth-footer {
    text-align: center;
    margin-top: var(--space-lg);
    font-size: 0.875rem;
    color: var(--gray-500);
}

/* -----------------------------------------------------------
   Scroll Reveal Animation
   ----------------------------------------------------------- */
.reveal {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

/* -----------------------------------------------------------
   Utility Classes
   ----------------------------------------------------------- */
.text-center { text-align: center; }
.text-right { text-align: right; }
.text-brand { color: var(--brand); }
.text-muted { color: var(--gray-500); }
.text-sm { font-size: 0.875rem; }
.text-xs { font-size: 0.75rem; }
.text-lg { font-size: 1.125rem; }
.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--space-md); }
.mt-2 { margin-top: var(--space-xl); }
.mt-3 { margin-top: var(--space-2xl); }
.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--space-md); }
.mb-2 { margin-bottom: var(--space-xl); }
.mb-3 { margin-bottom: var(--space-2xl); }
.pt-0 { padding-top: 0; }
.pb-0 { padding-bottom: 0; }
.flex { display: flex; }
.flex-center { display: flex; align-items: center; justify-content: center; }
.flex-between { display: flex; align-items: center; justify-content: space-between; }
.gap-sm { gap: var(--space-sm); }
.gap-md { gap: var(--space-md); }
.gap-lg { gap: var(--space-lg); }
.hidden { display: none; }
.sr-only {
    position: absolute; width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
