/* Self-hosted Inter 4.001 (latin subset, SIL OFL 1.1 - see fonts/OFL-LICENSE). */
/* Metric-matched fallback (CLS): Inter's average character width is 978 vs
   Arial's 913 at the same UPM, so size-adjust 107.12% keeps line breaks
   identical while the variable font downloads - the hero headline/subtitle
   cannot re-wrap on swap. Overrides are derived from Inter 4.001's own
   metrics: ascent 1984, descent 494, UPM 2048, line gap 0. */
@font-face {
    font-family: 'Inter Fallback';
    src: local('Arial'), local('Helvetica'), local('Liberation Sans');
    size-adjust: 107.12%;
    ascent-override: 90.44%;
    descent-override: 22.52%;
    line-gap-override: 0%;
}
@font-face {font-family: 'Inter';font-style: normal;font-weight: 100 900;font-display: swap;src: url('fonts/inter-roman.var.woff2') format('woff2');unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;} :root {--ic-blue: #4f46e5;--ic-blue-dark: #4338ca;--ic-indigo: #6366f1;--ic-red: #e11d48;--ic-green: #16a34a;--ic-green-soft: #dcfce7;--ic-yellow: #ca8a04;--ic-yellow-soft: #fef3c7;--ic-gray-900: #0f172a;--ic-gray-800: #1e293b;--ic-gray-700: #334155;--ic-gray-600: #475569;--ic-gray-500: #64748b;--ic-gray-300: #cbd5e1;--ic-gray-200: #e2e8f0;--ic-gray-100: #f1f5f9;--ic-gray-50: #f8fafc;--ic-white: #ffffff;--ic-font: 'Inter', 'Inter Fallback', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;--ic-body-bg: #f8fafc;--ic-card-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05), 0 10px 15px -3px rgba(0, 0, 0, 0.05);--ic-radius: 12px;--ic-radius-lg: 16px;--ic-navbar-h: 60px;--ic-navbar-bg: #ffffff;--ic-navbar-border: #e2e8f0;--ic-text: #1e293b;--ic-muted: #5f6b7e;--ic-heading: #0f172a;--ic-card-bg: #ffffff;--ic-card-border: #e2e8f0;--ic-table-head-bg: #f1f5f9;--ic-table-head-color: #475569;--ic-table-border: #f1f5f9;--ic-table-hover: #f8fafc;--ic-kpi-border: #e2e8f0;--ic-kpi-danger-bg: #fef2f2;--ic-kpi-success-bg: #f0fdf4;--ic-kpi-warning-bg: #fefce8;--ic-surface-page: #f8fafc;--ic-surface-card: #ffffff;--ic-surface-inset: #f1f5f9;--ic-border-subtle: #e2e8f0;--ic-control-border: #748096;--ic-divider: #f1f5f9;--ic-radius-card: 16px;--ic-radius-control: 12px;--ic-shadow-rest: 0 1px 2px rgba(15, 23, 42, 0.06), 0 1px 3px rgba(15, 23, 42, 0.04);--ic-shadow-hover: 0 8px 24px -8px rgba(15, 23, 42, 0.18);--ic-focus: var(--ic-blue);} [data-bs-theme="dark"] {--ic-body-bg: #0f172a;--ic-text: #e2e8f0;--ic-muted: #94a3b8;--ic-heading: #f1f5f9;--ic-navbar-bg: #1e293b;--ic-navbar-border: #334155;--ic-card-bg: #1e293b;--ic-card-border: #334155;--ic-table-head-bg: #1e293b;--ic-table-head-color: #cbd5e1;--ic-table-border: #334155;--ic-table-hover: rgba(255, 255, 255, 0.05);--ic-kpi-border: #334155;--ic-kpi-danger-bg: rgba(225, 29, 72, 0.14);--ic-kpi-success-bg: rgba(22, 163, 74, 0.14);--ic-kpi-warning-bg: rgba(202, 138, 4, 0.16);--ic-surface-page: #0f172a;--ic-surface-card: #1e293b;--ic-surface-inset: #172033;--ic-border-subtle: #334155;--ic-control-border: #94a3b8;--ic-divider: #1e293b;--ic-shadow-rest: 0 1px 2px rgba(0, 0, 0, 0.35);--ic-shadow-hover: 0 8px 24px -8px rgba(0, 0, 0, 0.55);--ic-focus: #6ea8fe;} body {font-family: var(--ic-font);background-color: var(--ic-body-bg);color: var(--ic-text);line-height: 1.5;-webkit-font-smoothing: antialiased;} a {text-decoration: none;color: var(--ic-blue);} :focus-visible {outline: 2px solid var(--ic-focus);outline-offset: 2px;} .visually-hidden-focusable:focus {position: fixed;top: 0.5rem;left: 0.5rem;z-index: 1100;padding: 0.5rem 1rem;border-radius: var(--ic-radius-control);background-color: var(--ic-surface-card);color: var(--ic-text);box-shadow: var(--ic-shadow-hover);font-weight: 600;} [data-bs-theme="dark"] a:not(.btn):not(.btn-ghost):not(.promo-banner__cta) {color: #6ea8fe;} h1, h2, h3, h4, h5, h6 {margin-top: 0;font-weight: 700;color: var(--ic-heading);line-height: 1.2;} .navbar {background-color: var(--ic-navbar-bg);border-bottom: 1px solid var(--ic-navbar-border);height: var(--ic-navbar-h);box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);} .brand-logo {font-weight: 800;color: var(--ic-blue);font-size: 1.5rem;} .brand-logo span {color: var(--ic-heading);} .navbar-brand {color: inherit;text-decoration: none;} .card {border-color: var(--ic-border-subtle);border-radius: var(--ic-radius-card);box-shadow: var(--ic-shadow-rest);} .card-header-custom {background: linear-gradient(135deg, var(--ic-blue) 0%, var(--ic-indigo) 100%);color: var(--ic-white);font-weight: 600;font-size: 1.05rem;border-radius: var(--ic-radius-lg) var(--ic-radius-lg) 0 0;padding: 1.1rem 1.5rem;} .kpi-card {border-radius: var(--ic-radius);border: 1px solid var(--ic-kpi-border);transition: transform 0.15s ease, box-shadow 0.15s ease;} .kpi-card:hover {transform: translateY(-2px);box-shadow: var(--ic-card-shadow);} .kpi-icon {width: 52px;height: 52px;display: flex;align-items: center;justify-content: center;border-radius: 50%;font-size: 1.4rem;flex-shrink: 0;} .kpi-card.kpi-danger {background-color: var(--ic-kpi-danger-bg);} .kpi-card.kpi-danger .kpi-icon {background-color: rgba(225, 29, 72, 0.12);color: var(--ic-red);} .kpi-card.kpi-success {background-color: var(--ic-kpi-success-bg);} .kpi-card.kpi-success .kpi-icon {background-color: rgba(22, 163, 74, 0.12);color: var(--ic-green);} .kpi-card.kpi-warning {background-color: var(--ic-kpi-warning-bg);} .kpi-card.kpi-warning .kpi-icon {background-color: rgba(202, 138, 4, 0.15);color: var(--ic-yellow);} .kpi-label {color: var(--ic-muted);font-size: 0.8rem;font-weight: 600;text-transform: uppercase;letter-spacing: 0.03em;} .kpi-value {font-weight: 800;margin: 0.35rem 0 0;font-size: 1.5rem;} .table thead th {background-color: var(--ic-table-head-bg);color: var(--ic-table-head-color);font-weight: 600;text-transform: uppercase;font-size: 0.75rem;border: none;padding: 1rem;} .table tbody td {vertical-align: middle;padding: 1rem;color: var(--ic-text);border-bottom: 1px solid var(--ic-table-border);} .table-hover tbody tr:hover {background-color: var(--ic-table-hover);} .badge {font-weight: 600;padding: 0.5em 0.8em;border-radius: 999px;font-size: 0.82rem;} .badge-paid, .badge-sub-active, .badge-sub-trialing {background-color: var(--bs-success-bg-subtle);color: var(--bs-success-text-emphasis);border: 1px solid var(--bs-success-border-subtle);} .badge-unpaid {background-color: var(--bs-warning-bg-subtle);color: var(--bs-warning-text-emphasis);border: 1px solid var(--bs-warning-border-subtle);} .badge-overdue, .badge-danger {background-color: var(--bs-danger-bg-subtle);color: var(--bs-danger-text-emphasis);border: 1px solid var(--bs-danger-border-subtle);} .badge-written-off, .badge-waiver, .badge-free, .badge-sub-canceled {background-color: var(--bs-secondary-bg-subtle);color: var(--bs-secondary-text-emphasis);border: 1px solid var(--bs-secondary-border-subtle);} .badge-refunded, .badge-sub-refunded, .badge-link, .badge-promise {background-color: var(--bs-info-bg-subtle);color: var(--bs-info-text-emphasis);border: 1px solid var(--bs-info-border-subtle);} .badge-stage, .badge-schedule, .badge-event {background-color: var(--bs-primary-bg-subtle);color: var(--bs-primary-text-emphasis);border: 1px solid var(--bs-primary-border-subtle);} .btn {border-radius: 6px;} .btn-primary {--bs-btn-bg: var(--ic-blue);--bs-btn-border-color: var(--ic-blue);--bs-btn-color: #ffffff;--bs-btn-hover-bg: var(--ic-blue-dark);--bs-btn-hover-border-color: var(--ic-blue-dark);--bs-btn-hover-color: #ffffff;--bs-btn-active-bg: var(--ic-blue-dark);--bs-btn-active-border-color: var(--ic-blue-dark);--bs-btn-active-color: #ffffff;--bs-btn-disabled-bg: var(--ic-blue);--bs-btn-disabled-border-color: var(--ic-blue);--bs-btn-disabled-color: #ffffff;background-color: var(--bs-btn-bg);border-color: var(--bs-btn-border-color);transition: transform 0.2s ease, opacity 0.2s ease;will-change: transform;} .btn-primary:hover {background-color: var(--bs-btn-hover-bg);border-color: var(--bs-btn-hover-border-color);transform: translateY(-1px);box-shadow: 0 4px 12px rgba(79, 70, 229, 0.35);} .auth-divider {display: flex;align-items: center;gap: 0.75rem;} .auth-divider::before, .auth-divider::after {content: '';flex: 1 1 auto;height: 1px;background-color: var(--ic-card-border);} .auth-divider-text {flex: 0 0 auto;color: var(--ic-muted);font-size: 0.8rem;font-weight: 600;} .btn-google {display: inline-flex;align-items: center;justify-content: center;gap: 0.5rem;width: 100%;min-height: 44px;padding: 0.5rem 1rem;background-color: var(--ic-white);border: 1px solid var(--ic-control-border);border-radius: var(--ic-radius-control);color: var(--ic-gray-900);font-weight: 600;font-size: 0.95rem;text-decoration: none;transition: background-color 0.15s ease, border-color 0.15s ease, transform 0.1s ease;} .btn-google:hover {background-color: var(--ic-gray-100);border-color: var(--ic-control-border);color: var(--ic-gray-900);transform: translateY(-1px);} .btn-google svg {flex-shrink: 0;} [data-bs-theme="dark"] .btn-google {background-color: var(--ic-surface-inset);color: var(--ic-text);} [data-bs-theme="dark"] .btn-google:hover {background-color: var(--ic-card-border);color: var(--ic-text);} .btn-outline-success:hover {background-color: var(--ic-green);border-color: var(--ic-green);color: #fff;transform: translateY(-1px);} .btn-outline-danger:hover {background-color: var(--ic-red);border-color: var(--ic-red);color: #fff;transform: translateY(-1px);} .btn-pay {background-color: var(--ic-green);border-color: var(--ic-green);color: white;font-weight: 600;transition: transform 0.2s ease, opacity 0.2s ease;will-change: transform;min-height: 44px;} .btn-pay:hover {background-color: #059669;color: white;transform: translateY(-1px);box-shadow: 0 4px 12px rgba(22, 163, 74, 0.35);} .form-control, .form-select {border-radius: 6px;min-height: 44px;} .form-control:focus, .form-select:focus, .form-check-input:focus {border-color: var(--ic-blue);box-shadow: none;} .form-control:focus-visible, .form-select:focus-visible, textarea:focus-visible, input[type="checkbox"]:focus-visible, .form-check-input:focus-visible, .nav-pills .nav-link.active:focus-visible, .nav-tabs .nav-link.active:focus-visible {outline: 2px solid var(--ic-focus);outline-offset: 2px;} .form-control-sm {border-radius: 6px;} .max-w-xs {max-width: 660px;} .max-w-sm {max-width: 700px;} .max-w-md {max-width: 780px;} .max-w-lg {max-width: 1000px;} .max-w-xl {max-width: 1200px;} .max-w-2xl {max-width: 1340px;} .max-w-3xl {max-width: 1520px;} .max-w-7xl {max-width: 1400px;} .text-muted {color: var(--ic-muted);} .nav-tabs {border-bottom: 1px solid var(--ic-gray-200);} .nav-tabs .nav-link {border: none;font-weight: 600;color: var(--ic-gray-500);border-radius: 8px;padding: 0.5rem 1rem;background: transparent;} .nav-tabs .nav-link:hover {background-color: var(--ic-gray-100);color: var(--ic-gray-800);} .nav-tabs .nav-link.active {background-color: var(--ic-blue);color: #fff;box-shadow: 0 1px 3px rgba(79, 70, 229, 0.3);} [data-bs-theme="dark"] .nav-tabs {border-bottom: 1px solid var(--ic-gray-700);} [data-bs-theme="dark"] .nav-tabs .nav-link {color: #cbd5e1;background: transparent;} [data-bs-theme="dark"] .nav-tabs .nav-link:hover {background-color: var(--ic-gray-700);color: #e2e8f0;} [data-bs-theme="dark"] .nav-tabs .nav-link.active {background-color: #4f46e5;color: #fff;} .tl {position: relative;} .tl::before {content: '';position: absolute;left: 4px;top: 9px;bottom: 9px;width: 2px;background-color: #e2e8f0;} [data-bs-theme="dark"] .tl::before {background-color: #334155;} .tl-item {position: relative;padding-left: 1.5rem;margin-bottom: 0.9rem;} .tl-item:last-child {margin-bottom: 0;} .tl-dot {position: absolute;left: 0;top: 0.3rem;width: 10px;height: 10px;border-radius: 50%;background-color: #cbd5e1;box-shadow: 0 0 0 3px var(--bs-body-bg, #fff);} [data-bs-theme="dark"] .tl-dot {background-color: #64748b;} .tl-dot.tl-reminder_sent {background-color: #6366f1;} .tl-dot.tl-note_saved {background-color: #0ea5e9;} .tl-dot.tl-promised_date {background-color: #d97706;} .tl-dot.tl-status_changed {background-color: #16a34a;} .tl-dot.tl-invoice_created {background-color: #0f766e;} .tl-dot.tl-payment_received {background-color: #15803d;} .tl-dot.tl-receipt_sent {background-color: #7c3aed;} .tl-dot.tl-payment_refunded {background-color: #c2410c;} .tl-meta {font-size: 0.72rem;line-height: 1.2;color: #6c757d;} [data-bs-theme="dark"] .tl-meta {color: #94a3b8;} [data-bs-theme="dark"] .text-dark {color: var(--ic-heading) !important;} [data-bs-theme="dark"] .bg-light {background-color: var(--bs-tertiary-bg) !important;} [data-bs-theme="dark"] .bg-white {background-color: var(--bs-body-bg) !important;color: var(--ic-text);} .bulk-bar {position: sticky;bottom: 1rem;z-index: 1020;display: flex;flex-wrap: wrap;align-items: center;justify-content: space-between;gap: 0.75rem;margin: 1rem;padding: 0.75rem 1rem;border-radius: 12px;background-color: var(--bs-body-bg);border: 1px solid var(--bs-border-color);box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.15);} [data-bs-theme="dark"] .bulk-bar {box-shadow: 0 0.5rem 1.5rem rgba(0, 0, 0, 0.55);} .bulk-bar #bulkCount {font-size: 0.9rem;} .dashboard-preview {transition: filter 0.25s ease;} [data-bs-theme="dark"] .dashboard-preview {filter: invert(1) hue-rotate(180deg);} @media (prefers-reduced-motion: reduce) {.dashboard-preview {transition: none;}} .dash-mobile-nav {--bs-offcanvas-width: min(320px, 85vw);background-color: var(--ic-card-bg);border-left: 1px solid var(--ic-card-border);} .offcanvas-start.dash-mobile-nav {border-left: 0;border-right: 1px solid var(--ic-card-border);} [data-bs-theme="dark"] .dash-mobile-nav .btn-outline-secondary {color: var(--ic-gray-200);} .dash-drawer-link {display: inline-flex;align-items: center;min-height: 44px;padding: 0.5rem 0.75rem;border-radius: 8px;font-size: 1rem;} .dash-drawer-link:hover {background-color: var(--ic-gray-100);} [data-bs-theme="dark"] .dash-drawer-link:hover {background-color: var(--ic-gray-800);} .dash-drawer-divider {border-color: var(--ic-card-border);opacity: 1;margin: 0.5rem 0;} .dash-drawer-theme [data-theme-toggle] {width: 100%;min-height: 44px;} .btn, .nav-link, .navbar-toggler, .btn-close, .page-link, .dropdown-item {min-height: 44px;min-width: 44px;} .navbar-toggler {display: inline-flex;align-items: center;justify-content: center;border-color: var(--ic-control-border);} .nav-pills .nav-link {display: inline-flex;align-items: center;} @media (max-width: 767.98px) {.btn-sm, .btn-ghost {min-height: 44px;} .form-control, .form-control-sm, .form-select, .form-select-sm {min-height: 48px;font-size: 16px;} .form-check {min-height: 44px;padding-top: 0.5rem;padding-bottom: 0.5rem;}} .marketing-nav {height: auto;min-height: var(--ic-navbar-h);padding: 0;background-color: var(--ic-navbar-bg);background-color: color-mix(in srgb, var(--ic-navbar-bg) 85%, transparent);-webkit-backdrop-filter: blur(12px);backdrop-filter: blur(12px);border-bottom: 1px solid var(--ic-border-subtle);box-shadow: none;} .marketing-nav > .container {min-height: var(--ic-navbar-h);} .marketing-nav .navbar-brand img {height: 32px;width: auto;} @media (max-width: 379.98px) {.marketing-nav .navbar-brand img {height: 28px;}} .landing-nav-link {color: var(--ic-muted);font-weight: 600;text-decoration: none;transition: color 0.2s ease;} .landing-nav-link:hover {color: var(--ic-blue);} .btn-ghost {color: var(--ic-blue);border: 1px solid var(--ic-control-border);border-radius: 8px;font-weight: 600;padding: 0.6rem 1.5rem;text-decoration: none;background: var(--ic-card-bg);transition: transform 0.2s ease, opacity 0.2s ease;will-change: transform;} .btn-ghost:hover {background: var(--ic-body-bg);border-color: var(--ic-control-border);color: var(--ic-blue-dark);} [data-bs-theme="dark"] .btn-ghost {color: #a5b4fc;} [data-bs-theme="dark"] .btn-ghost:hover {color: #c7d2fe;} .landing-cta, .btn-light, .btn-outline-light {transition: transform 0.2s ease, opacity 0.2s ease;will-change: transform;} .landing-cta:hover, .btn-light:hover, .btn-outline-light:hover {transform: translateY(-1px);} .landing-cta:active, .btn-light:active, .btn-outline-light:active {transform: translateY(0);} @media (prefers-reduced-motion: reduce) {*, *::before, *::after {animation-duration: 0.01ms !important;animation-iteration-count: 1 !important;transition-duration: 0.01ms !important;scroll-behavior: auto !important;}} .marketing-page {max-width: 1140px;padding-block: 3.5rem 1rem;} .marketing-page h1 {color: var(--ic-heading);font-size: clamp(2rem, 5vw + 1rem, 3rem);font-weight: 800;letter-spacing: -0.02em;line-height: 1.15;margin-bottom: 0.75rem;} .marketing-page h2 {color: var(--ic-heading);font-size: 1.35rem;font-weight: 700;letter-spacing: -0.01em;} .marketing-page .marketing-intro {color: var(--ic-muted);font-size: 1.1rem;max-width: 700px;margin-bottom: 2rem;} .marketing-card {background-color: var(--ic-card-bg);border: 1px solid var(--ic-card-border);border-radius: var(--ic-radius-lg);box-shadow: var(--ic-card-shadow);color: var(--ic-text);height: 100%;} .marketing-card .card-body {padding: 1.75rem;} .marketing-card h2, .marketing-card h3 {color: var(--ic-heading);} .marketing-card p, .marketing-card .card-text {color: var(--ic-muted);} .marketing-card .card-title {font-weight: 700;} .marketing-icon {align-items: center;border-radius: var(--ic-radius);display: inline-flex;height: 48px;justify-content: center;margin-bottom: 1rem;width: 48px;} .price-card {background: var(--ic-body-bg);border: 2px solid var(--ic-card-border);border-radius: 20px;padding: 2.75rem;text-align: center;height: 100%;} .price-card.popular {border-color: var(--ic-blue);box-shadow: var(--ic-card-shadow);position: relative;} .popular-badge {position: absolute;top: -12px;left: 50%;transform: translateX(-50%);background: var(--ic-blue);color: var(--ic-white);padding: 4px 12px;border-radius: 20px;font-size: 0.75rem;font-weight: 700;text-transform: uppercase;letter-spacing: 0.05em;white-space: nowrap;} .price-card h2, .price-card h3 {color: var(--ic-heading);font-weight: 700;font-size: 1.35rem;} .price-card .tier-note {color: var(--ic-muted);} .price-amount {color: var(--ic-heading);font-size: 2.75rem;font-weight: 800;letter-spacing: -2px;margin: 1.25rem 0;} .price-amount span {font-size: 0.95rem;color: var(--ic-muted);font-weight: 500;letter-spacing: normal;} .price-features {color: var(--ic-muted);} .price-features .lead-item {color: var(--ic-heading);font-weight: 600;} @media (max-width: 768px) {.marketing-page {padding-top: 2rem;} .price-card {padding: 1.75rem;}} .auth-page {background-color: var(--ic-body-bg);} .auth-nav {height: auto;min-height: var(--ic-navbar-h);} .auth-nav .navbar-brand img {height: 32px;width: auto;} .auth-nav .navbar-toggler {padding: 0.35rem 0.5rem;} @media (min-width: 768px) {.auth-nav .btn-sm {min-height: 34px;border-radius: 8px;}} [data-bs-theme="dark"] .auth-nav .btn-outline-secondary {color: var(--ic-text);} .auth-shell {min-height: calc(100vh - var(--ic-navbar-h));} .auth-card {width: 100%;max-width: 440px;background-color: var(--ic-card-bg);border: 1px solid var(--ic-card-border);border-radius: var(--ic-radius-lg);box-shadow: var(--ic-card-shadow);} .auth-card .form-label {color: var(--ic-text);font-weight: 600;} .auth-card .form-control {background-color: var(--ic-surface-page);border: 1px solid var(--ic-control-border);border-radius: var(--ic-radius-control);color: var(--ic-text);min-height: 48px;} .auth-card .form-control:focus {background-color: var(--ic-surface-card);border-color: var(--ic-blue);box-shadow: 0 0 0 3px color-mix(in srgb, var(--ic-focus) 22%, transparent);color: var(--ic-text);} .auth-card .btn-primary {font-weight: 600;} .ic-2fa {--ic-2fa-card-bg: #111827;--ic-2fa-card-border: #1e293b;--ic-2fa-input-bg: #1e293b;--ic-2fa-text: #f8fafc;--ic-2fa-muted: #cbd5e1;--ic-2fa-accent: #93c5fd;--ic-2fa-blue: #2563eb;--ic-2fa-blue-hover: #1d4ed8;--ic-2fa-focus: #2563eb;--ic-2fa-danger: #fca5a5;--ic-2fa-box-border: #748096;} .ic-2fa.auth-card {background-color: var(--ic-2fa-card-bg);border: 1px solid var(--ic-2fa-card-border);border-radius: var(--ic-radius-lg);color: var(--ic-2fa-text);} .ic-2fa .text-body {color: var(--ic-2fa-text) !important;} .ic-2fa .text-muted, .ic-2fa .form-text {color: var(--ic-2fa-muted) !important;} .ic-2fa .form-label {color: var(--ic-2fa-text);} .ic-2fa a {color: var(--ic-2fa-accent);} .ic-2fa-otp {display: grid;grid-template-columns: repeat(6, minmax(0, 1fr));gap: clamp(0.25rem, 1.2vw, 0.5rem);} .ic-2fa .otp-box {width: 100%;min-width: 0;height: clamp(44px, 12vw, 56px);padding: 0;background-color: var(--ic-2fa-input-bg);border: 1px solid var(--ic-2fa-box-border);border-radius: var(--ic-radius-control);color: var(--ic-2fa-text);font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;font-size: clamp(1.25rem, 5vw, 1.5rem);font-weight: 600;line-height: 1;text-align: center;caret-color: var(--ic-2fa-accent);transition: border-color 120ms ease, box-shadow 120ms ease;} .ic-2fa .otp-box:hover {border-color: var(--ic-2fa-accent);} .ic-2fa .otp-box:focus-visible {outline: none;border-color: var(--ic-2fa-focus);box-shadow: 0 0 0 2px var(--ic-2fa-card-bg), 0 0 0 4px var(--ic-2fa-focus);} .ic-2fa .form-control {min-height: 52px;background-color: var(--ic-2fa-input-bg);border: 1px solid var(--ic-2fa-box-border);border-radius: var(--ic-radius-control);color: var(--ic-2fa-text);} .ic-2fa .form-control::placeholder {color: #94a3b8;} .ic-2fa .form-control:focus {background-color: var(--ic-2fa-input-bg);border-color: var(--ic-2fa-focus);box-shadow: 0 0 0 2px var(--ic-2fa-card-bg), 0 0 0 4px var(--ic-2fa-focus);color: var(--ic-2fa-text);} .ic-2fa .btn-primary {min-height: 50px;background-color: var(--ic-2fa-blue);border-color: var(--ic-2fa-blue);border-radius: 999px;color: #ffffff;font-weight: 600;} .ic-2fa .btn-primary:hover, .ic-2fa .btn-primary:focus {background-color: var(--ic-2fa-blue-hover);border-color: var(--ic-2fa-blue-hover);color: #ffffff;} .ic-2fa .btn-primary:focus-visible {outline: none;box-shadow: 0 0 0 2px var(--ic-2fa-card-bg), 0 0 0 4px var(--ic-2fa-focus);} .ic-2fa .btn-primary:disabled {background-color: var(--ic-2fa-blue);border-color: var(--ic-2fa-blue);color: #ffffff;opacity: 0.65;} .ic-2fa .ic-2fa-toggle {display: inline-block;min-height: 44px;margin-top: 0.5rem;padding: 0.4rem 0.4rem;border: 0;border-radius: 6px;background-color: transparent;color: var(--ic-2fa-accent);font-weight: 600;text-decoration: underline;text-underline-offset: 3px;} .ic-2fa .ic-2fa-toggle:hover {color: #bfdbfe;} .ic-2fa .ic-2fa-toggle:focus-visible {outline: 2px solid var(--ic-2fa-focus);outline-offset: 2px;} .ic-2fa .ic-2fa-error {margin-bottom: 0.75rem;color: var(--ic-2fa-danger);font-size: 0.875rem;} @media (prefers-reduced-motion: reduce) {.ic-2fa .otp-box {transition: none;}}
/* Promotional banner critical layout (INVA-350). The banner is the first
   element in <body> on home/dashboard, so its box model must be available at
   first paint; only the seasonal colour skins are deferred to
   static/css/promotions.css. Every box-model rule for the banner, its actions
   and the seasonal toggle lives HERE: promotions.css loads after paint, so a
   size rule moved there would resize the banner and shift the navbar/hero
   (mobile CLS 0.21). Keep that sheet paint-only. */
.promo-banner{--promo-bg:#0f172a;--promo-fg:#f8fafc;--promo-border:#334155;--promo-tag-bg:#1e293b;--promo-tag-fg:#dbeafe;--promo-tag-border:#334155;--promo-dismiss-filter:invert(1) grayscale(100%) brightness(200%);--promo-accent:#60a5fa;--promo-cta-bg:#2563eb;--promo-cta-fg:#ffffff;--promo-cta-border:#2563eb;--promo-cta-hover-bg:#1d4ed8;--promo-cta-hover-fg:#ffffff}
.promo-banner.alert{margin-bottom:0;padding:0;border:0;border-bottom:1px solid color-mix(in srgb, var(--promo-border) 65%, transparent);border-radius:0;background-color:var(--promo-bg);color:var(--promo-fg);box-shadow:none}
.promo-banner__inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:0.5rem 0.75rem;padding-top:0.625rem;padding-bottom:0.625rem;text-align:center}
.promo-banner__tag{flex:0 0 auto;display:inline-flex;align-items:center;padding:0.25rem 0.625rem;border:1px solid var(--promo-tag-border);border-radius:999px;background-color:var(--promo-tag-bg);color:var(--promo-tag-fg);font-size:0.6875rem;font-weight:700;letter-spacing:0.08em;line-height:1.2;text-transform:uppercase;white-space:nowrap}
.promo-banner__message{flex:1 1 14rem;min-width:0;font-size:0.875rem;font-weight:600;line-height:1.4;overflow-wrap:anywhere}
.promo-banner__cta{flex:0 0 auto;display:inline-flex;align-items:center;justify-content:center;min-height:44px;padding:0.45rem 1.1rem;border:1px solid var(--promo-cta-border);border-radius:999px;background-color:var(--promo-cta-bg);color:var(--promo-cta-fg);font-size:0.8125rem;font-weight:700;line-height:1.2;text-decoration:none}
.promo-banner__cta:hover,.promo-banner__cta:focus{background-color:var(--promo-cta-hover-bg);color:var(--promo-cta-hover-fg);border-color:var(--promo-cta-hover-bg);text-decoration:none}
.promo-banner__dismiss{flex:0 0 auto;min-width:44px;min-height:44px;margin-left:auto;border-radius:999px;filter:var(--promo-dismiss-filter,invert(1) grayscale(100%) brightness(200%));opacity:0.85}
.promo-banner__dismiss:hover,.promo-banner__dismiss:focus{opacity:1;background-color:rgba(255,255,255,0.14)}
.promo-banner :focus-visible{outline:2px solid var(--promo-accent);outline-offset:2px}
/* Seasonal toggle geometry is critical too: it sits in the banner action row
   and in the navbar, so its box must not gain 44px sizing after first paint.
   The toggle reuses the pill's verified pairing instead of carrying its own
   foreground: a dedicated --promo-toggle-fg drifted away from the fill it sat
   on (new_year dark rendered #fde68a on #fbbf24, 1.34:1). One surface token,
   one ink token, both already measured. Outside a promo banner the --promo-*
   tokens are absent and the neutral surfaces take over. */
.event-theme-toggle{display:inline-flex;align-items:center;justify-content:center;gap:.4rem;min-height:44px;min-width:44px;padding:.45rem .75rem;border:1px solid var(--promo-tag-border,var(--ic-control-border));border-radius:999px;background-color:var(--promo-tag-bg,var(--ic-surface-inset));color:var(--promo-tag-fg,var(--ic-text));font-family:var(--ic-font);font-size:.8125rem;font-weight:600;line-height:1.2;text-align:center;white-space:nowrap;cursor:pointer;transition:filter .15s ease}
.event-theme-toggle:hover{filter:brightness(1.06)}
.event-theme-toggle:focus-visible{outline:2px solid var(--ic-focus);outline-offset:2px}
/* The "off" state inverts to the banner's own surface so the two states are
   distinguishable by fill as well as by the dashed border. --promo-fg is
   9:1+ against every skin's background. */
.event-theme-toggle[aria-pressed=false]{background-color:transparent;border-style:dashed;color:var(--promo-fg,var(--ic-text))}
/* One seasonal toggle on screen at a time. The banner already carries the
   control, so the navbar/drawer copies - which are `--secondary` - are hidden
   only while a banner is actually on screen. `data-promo-live` is maintained by
   the banner script below: it is set on <html> at parse time and cleared when
   the visitor dismisses the banner, at which point the navbar copy becomes the
   single visible control. Nothing is removed from the DOM, so the head script's
   document-level click binding and its aria sync keep working for both. */
[data-promo-live] .event-theme-toggle--secondary{display:none}
.promo-banner.promo-banner--preview.alert{border:1px solid var(--promo-border);border-radius:var(--ic-radius-control,12px);overflow:hidden}
.promo-banner--preview .promo-banner__inner{justify-content:flex-start;padding:.875rem 1rem;text-align:left}
.promo-banner--preview .promo-banner__cta{pointer-events:none}
@media (max-width:575.98px){.promo-banner--preview .promo-banner__inner{padding:.875rem 1rem}}
/* Single mobile banner layout at first paint: tag + dismiss on the first row,
   the message on its own row, then the CTA/s seasonal toggle split the last
   row evenly. This used to live in the deferred promotions.css, so the banner
   grew taller once that sheet arrived and shoved the navbar/hero down. */
@media (max-width:767.98px){
    .promo-banner__inner{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;text-align:center}
    .promo-banner__inner .promo-banner__tag{order:1}
    .promo-banner__inner .promo-banner__dismiss{order:2;flex:0 0 44px;box-sizing:border-box;width:44px;height:44px;min-width:44px;min-height:44px;margin-left:auto}
    .promo-banner__inner .promo-banner__message{order:3;flex:1 1 100%;text-align:center}
    .promo-banner__inner .promo-banner__cta,
    .promo-banner__inner .event-theme-toggle{flex:1 1 0;width:auto;min-width:0;min-height:44px;padding:.45rem .75rem;justify-content:center;text-align:center;white-space:nowrap}
    .promo-banner__inner .promo-banner__cta{order:4}
    .promo-banner__inner .event-theme-toggle{order:5}
}
@media (max-width:575.98px){
    .promo-banner__inner{padding:0.75rem 1rem}
    .promo-banner__tag{max-width:100%;white-space:normal}
}

/* Touch layouts: every nav link, drawer row and ghost button is at least
   44x44px (WCAG 2.5.5). Plain .btn/.nav-link already get 44px globally above;
   these are the surfaces that could still collapse to text height. */
@media (max-width:991.98px){
    .landing-nav-link{display:inline-flex;align-items:center;min-height:44px;padding:0.25rem}
    .marketing-nav .navbar-brand,.auth-nav .navbar-brand,.navbar .navbar-brand,.auth-card .navbar-brand{display:inline-flex;align-items:center;min-height:44px}
    .marketing-nav .btn-ghost,.auth-nav .btn-ghost,.offcanvas .btn-ghost{min-height:44px}
    .dash-drawer-link{width:100%}
}

/* Dismissible flash banners: Bootstrap anchors the close button to the top
   edge with 1.25rem/1rem padding, so a one-line alert renders its glyph well
   below the text baseline. Centre the 44x44px (WCAG 2.5.5) tap target on the
   alert's midline instead, and keep the banner's right padding so the button
   never overlaps the message. */
.alert-dismissible {
    padding-right: 3rem;
}
.alert-dismissible .btn-close {
    top: 50%;
    right: 0;
    transform: translateY(-50%);
    box-sizing: border-box;
    width: 44px;
    height: 44px;
    padding: 0;
    background-position: center;
}

/* The banner sits directly above the navbar, so the nav's hairline is the last
   neutral edge before the hero. Softening it keeps the three surfaces reading
   as one stack; the seasonal sheet tints the same edge with the live accent
   while an event is on. */
.marketing-nav {
    border-bottom-color: color-mix(in srgb, var(--ic-border-subtle) 55%, transparent);
}

/* Marketing navbar rhythm. The container gap replaces the gap-3 utility so the
   320px floor can tighten it without an !important override. */
.marketing-nav > .container { gap: 1rem; }
.marketing-nav .btn-primary { padding-inline: 1rem; }
@media (max-width:379.98px){
    .marketing-nav > .container { gap: 0.5rem; }
    .marketing-nav .navbar-brand img { height: 24px; }
    .marketing-nav .btn-primary { padding-inline: 0.65rem; }
}

/* Theme-aware wordmark. logo.svg carries the white wordmark for dark
   surfaces; anything rendered on a light surface (navbar, drawer, settings
   header, footer, public invoice) swaps in the dark-slate/indigo
   logo_light.svg. The swap is global so standalone brand marks outside a
   .navbar/.offcanvas shell cannot keep the white wordmark on white. Printing
   is always on white paper, so it gets the dark wordmark too. */
[data-bs-theme="light"] img[src$="img/logo.svg"]:not(.logo-on-dark) {
    content: url('/static/img/logo_light.svg');
}
@media print {
    img[src$="img/logo.svg"] {
        content: url('/static/img/logo_light.svg');
    }
}

/* The event mark is inline SVG (templates/_event_icons.html), so it needs no
   visibility gate: it renders in the pill and inherits the pill's ink. The old
   .promo-banner__event-icon <img> rules went with the per-preset SVG files. */
.promo-banner__countdown { gap: 0.375rem; }

/* Admin console tables size to their rows. The wrappers only ever need a
   horizontal scroll, so the vertical axis stays visible: row menus and native
   tooltips must never be clipped, and there is no height cap that would need a
   vertical scrollbar. */
.table-responsive.admin-table-scroll {
    overflow-x: auto;
    overflow-y: visible;
}

/* The sweep run ledger has seven columns, so it uses fixed widths to fit the
   card on desktop. Below 992px the timestamp keeps its reading width and the
   wrapper takes over with a horizontal swipe. */
.admin-sweep-table {
    table-layout: fixed;
    width: 100%;
}
.admin-sweep-table thead th {
    white-space: nowrap;
}
@media (max-width: 991.98px) {
    .admin-sweep-table {
        min-width: 960px;
    }
}

/* Invoices & Recoveries header (business dashboard). Every <th> centres on
   one baseline: the select-all box and the sortable labels use the same
   inline-flex row, so a control can never drift above or below its text.
   The shared font metrics + nowrap keep all nine labels on a single line. */
#invoicesTable thead th {
    vertical-align: middle;
    line-height: 1.2;
    padding-top: 0.6rem;
    padding-bottom: 0.6rem;
    font-size: 0.75rem;
    letter-spacing: 0.05em;
    white-space: nowrap;
}
#invoicesTable thead th .dash-th-check,
#invoicesTable thead th .dash-sort-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    line-height: 1.2;
}
#invoicesTable thead th .dash-th-check {
    min-height: 24px;
}
#invoicesTable thead th .dash-th-check .form-check-input {
    margin-top: 0;
    flex: 0 0 auto;
}

/* Settings profile form (Business Details). Every label row is locked to the
   same fixed height, so the input beneath it starts on one baseline whether the
   label is a bare "Trading Name *" or carries an "(optional)" badge and a help
   popover. The badge stays grouped with the label text; the help trigger sits
   at the row's trailing edge. */
.form-label-aligned {
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 0.35rem;
}
.form-label-aligned .form-label {
    display: inline-flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.25rem;
    margin-bottom: 0;
}
/* The trigger's inherited button padding and 1.5 line-height stretched this
   label row ~14px taller than a plain-text one, staggering its input below the
   neighbouring column. Strip both and fix the box so the icon centres inside
   the 2rem row. */
.form-label-aligned .help-pop.p-0 {
    padding: 0 !important;
    line-height: 1 !important;
    height: 1.25rem;
    width: 1.25rem;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Helper notes share one line-height and top margin in every column, so a
   longer note under one field never staggers the control beside it. */
.form-text-aligned {
    margin-top: 0.25rem;
    margin-bottom: 0;
    line-height: 1.4;
}

/* Global Recovery waitlist preview. The dashed, muted CTA keeps the planned
   tier visually subordinate to the live Pro trial button, while the border and
   label ride theme tokens so light, dark and seasonal surfaces stay legible. */
.price-card .btn-waitlist,
.price-card .btn-waitlist:disabled {
    border: 1px dashed var(--ic-control-border);
    background: transparent;
    color: var(--ic-muted);
    opacity: 1;
}

/* Marketing plan cards. Three live tiers read as a ladder — Starter, Pro
   Automation, Agency / Bookkeeper — and the unlaunched Global Debt Recovery
   tier is a full-width dashed roadmap strip, so it never competes as a fourth
   purchase. Both marketing surfaces share these rules; the page-local blocks
   only carry hero/nav overrides. */
.price-features li {
    position: relative;
    padding-left: 1.35rem;
}
.price-features li::before {
    content: "\2713";
    position: absolute;
    left: 0;
    top: 0;
    color: var(--ic-blue);
    font-weight: 800;
    line-height: 1.45;
}
[data-bs-theme="dark"] .price-features li::before { color: #a5b4fc; }
.price-features .lead-item { color: var(--ic-heading); font-weight: 600; }

/* Agency is the premium live tier: it outranks the free Starter card through
   an indigo rule and a soft solid tint, while the Pro card keeps the only
   "Most popular" badge and its solid conversion CTA. A flat tint (not a
   gradient) keeps the text background resolvable for contrast audits.
   The doubled class beats each page's own single-class .price-card override
   regardless of load order. */
.price-card.price-card--agency {
    position: relative;
    border-color: rgba(79, 70, 229, 0.45);
    background: #f3f2fd;
}
[data-bs-theme="dark"] .price-card.price-card--agency {
    border-color: rgba(165, 180, 252, 0.42);
    background: #293358;
}

/* The premium tag floats over the top edge like "Most popular", so every
   live card's heading and price share one baseline. */
.price-card__tag {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    padding: 4px 12px;
    border: 1px solid rgba(79, 70, 229, 0.45);
    border-radius: 20px;
    background: #f3f2fd;
    color: #4338ca;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.4;
    white-space: nowrap;
}
[data-bs-theme="dark"] .price-card__tag {
    border-color: rgba(165, 180, 252, 0.5);
    background: #293358;
    color: #c7d2fe;
}

.price-card.price-card--roadmap {
    padding: 2rem;
    border-width: 1px;
    border-style: dashed;
    border-color: var(--ic-control-border);
    background: var(--ic-body-bg);
    text-align: left;
}
.price-card--roadmap .price-features {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.4rem 1.5rem;
}
.price-card--roadmap .price-features li::before { color: var(--ic-muted); }

@media (min-width: 768px) {
    .price-card--roadmap .price-features {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .price-card.price-card--roadmap { padding: 2.25rem 2.5rem; }
    .price-card--roadmap .price-roadmap-action {
        flex: 0 0 17rem;
        text-align: center;
    }
}

/* Superadmin console shell (accounts, triage inbox, subscriptions, account
   360). The header is deliberately two static tiers: the brand and account
   controls sit on one row, while the destinations live in their own
   horizontally scrollable strip. Nothing is fixed or absolutely positioned,
   so tabs can never overlap breadcrumbs or page headings. */
.admin-shell-header {
    margin-bottom: 1rem;
    border-bottom: 1px solid var(--ic-navbar-border);
    background-color: var(--ic-navbar-bg);
}
.admin-shell-topbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.75rem 1rem;
}
.admin-shell-brand {
    min-height: 44px;
}
.admin-shell-actions {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    gap: 0.5rem;
}
.admin-shell-nav {
    border-top: 1px solid var(--ic-navbar-border);
}
.admin-shell-nav__inner {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0.5rem 1rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.admin-shell-nav__inner::-webkit-scrollbar {
    display: none;
}
.admin-shell-nav__inner > .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Tier-1 utility bar: brand + console badge left, Back to App / theme / sign
   out right. Every control keeps the 44px WCAG 2.5.5 touch target. The global
   .navbar rule pins a 60px height; the admin bar must grow when its two rows
   wrap on narrow screens instead of overlapping the tab strip below. */
.admin-utility-bar {
    height: auto;
    min-height: var(--ic-navbar-h);
}
.admin-utility-bar .navbar-brand,
.admin-utility-bar .btn {
    min-height: 44px;
}
.admin-utility-bar .btn {
    min-width: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}
.admin-brand-group {
    min-width: 0;
}

/* Tier-2 destination pills: a soft active highlight instead of a saturated
   primary button. Phones wrap the pills onto two rows so the active
   destination is never scrolled out of view; tablets and up switch to one
   swipeable row. */
.admin-shell-tabs {
    min-width: 0;
}
.admin-shell-tabs .admin-pills {
    flex-wrap: wrap;
    gap: 0.25rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.admin-pills::-webkit-scrollbar {
    display: none;
}
.admin-pills .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    padding: 0.5rem 0.9rem;
    border-radius: 999px;
    color: var(--ic-muted);
    font-weight: 500;
    transition: background-color 0.15s ease, color 0.15s ease;
}
@media (min-width: 768px) {
    .admin-shell-tabs .admin-pills {
        flex-wrap: nowrap;
        overflow-x: auto;
        -webkit-overflow-scrolling: touch;
    }
}
.admin-pills .nav-link:hover,
.admin-pills .nav-link:focus-visible {
    background-color: var(--ic-surface-inset);
    color: var(--ic-heading);
}
.admin-pills .nav-link.active {
    background-color: var(--ic-surface-inset);
    color: var(--ic-heading);
    box-shadow: inset 0 0 0 1px var(--ic-card-border);
}
/* The generic dark-theme link colour outranks the soft active pill, which put
   #6ea8fe on the saturated indigo fill (2.6:1). Keep the active surface and
   AA ink in both themes. */
.admin-shell-tabs .admin-pills a.nav-link.active,
[data-bs-theme="dark"] .admin-shell-tabs .admin-pills a.nav-link.active {
    background-color: var(--ic-surface-inset);
    color: var(--ic-heading);
    box-shadow: inset 0 0 0 1px var(--ic-card-border);
}

/* Dashboard user profile menu: the avatar trigger replaces the old row of
   nav buttons; the menu follows the card surface tokens in both themes. */
.dash-user-trigger {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    min-height: 44px;
    max-width: 14rem;
}
.dash-user-name {
    max-width: 8rem;
}
.dash-user-caret {
    font-size: 0.7rem;
    line-height: 1;
}
.dash-avatar {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    background-color: var(--ic-blue);
    color: #fff;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.02em;
}
.dash-user-menu__header {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1rem;
    min-width: 0;
}
.dash-user-identity {
    min-width: 0;
}
.dash-user-menu .dropdown-menu {
    min-width: 16rem;
    padding: 0.35rem 0;
    background-color: var(--ic-card-bg);
    border: 1px solid var(--ic-card-border);
    border-radius: var(--ic-radius-control);
    box-shadow: var(--ic-shadow-hover);
}
.dash-user-menu .dropdown-item {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 0.5rem 1rem;
    color: var(--ic-text);
}
.dash-user-menu .dropdown-item:hover,
.dash-user-menu .dropdown-item:focus-visible {
    background-color: var(--ic-surface-inset);
    color: var(--ic-heading);
}
.dash-user-menu .dropdown-item.text-danger {
    color: var(--bs-danger-text-emphasis);
}
.dash-user-menu .dropdown-item.text-danger:hover,
.dash-user-menu .dropdown-item.text-danger:focus-visible {
    color: var(--bs-danger-text-emphasis);
    background-color: var(--bs-danger-bg-subtle);
}
.dash-user-menu .dropdown-divider {
    border-color: var(--ic-card-border);
}

/* Breadcrumbs and page headings share one rhythm across the console. The
   flex-wrap title row lets the waitlist pill flow inline when there is room
   and drop below the title on ultra-small screens without truncation. */
.admin-breadcrumb {
    margin-top: 1rem;
    margin-bottom: 0.25rem;
}
.admin-breadcrumb a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}
.admin-page-heading {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem;
    min-width: 0;
}
.admin-page-heading > h1 {
    min-width: 0;
    overflow-wrap: anywhere;
}
.admin-waitlist-badge {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
}
@media (max-width: 991.98px) {
    .admin-breadcrumb a {
        min-height: 44px;
    }
    .admin-waitlist-badge {
        min-height: 44px;
        padding: 0.5rem 0.9rem;
    }
}

/* Search + filter toolbar. On mobile the input keeps `flex: 1; min-width: 0`
   so the Search button stays on the same row, while the filter pills become a
   single swipeable strip underneath. */
.admin-console-toolbar {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
}
.admin-search-form {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    min-width: 0;
}
.admin-search-input {
    flex: 1;
    min-width: 0;
}
.admin-filter-pills {
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    gap: 0.5rem;
    width: 100%;
    padding-bottom: 0.125rem;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    -ms-overflow-style: none;
}
.admin-filter-pills::-webkit-scrollbar {
    display: none;
}
.admin-filter-pills > .btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* KPI cards stay a 2x2 grid below 768px: the Bootstrap column already halves
   the row, and h-100 + a fixed body padding keeps both cards on each row the
   same height. */
.admin-kpi-card {
    height: 100%;
}
.admin-kpi-card .card-body {
    padding: 1rem;
}

/* Admin console cards & nested surfaces: Bootstrap's .card re-declares
   --bs-card-bg: var(--bs-body-bg), which makes cards blend into #0f172a in
   dark mode. Pin admin cards to --ic-card-bg with a crisp --ic-card-border
   (leaving semantic tinted cards untouched), and keep nested table headers
   and inset wells on --ic-surface-inset for clear visual hierarchy. */
body.admin-page .card:not([class*="bg-"]):not([class*="text-bg-"]):not(.kpi-danger):not(.kpi-success):not(.kpi-warning) {
    --bs-card-bg: var(--ic-card-bg);
    --bs-card-border-color: var(--ic-card-border);
    background-color: var(--ic-card-bg);
    border: 1px solid var(--ic-card-border);
}
body.admin-page .card .table {
    --bs-table-bg: transparent;
    --bs-table-hover-bg: var(--ic-table-hover);
    --bs-table-border-color: var(--ic-table-border);
}
[data-bs-theme="dark"] body.admin-page .card .table thead th {
    background-color: var(--ic-surface-inset);
}
[data-bs-theme="dark"] body.admin-page .card .bg-body-tertiary,
[data-bs-theme="dark"] body.admin-page .modal-content .bg-body-tertiary {
    background-color: var(--ic-surface-inset) !important;
    border-color: var(--ic-card-border) !important;
}

/* Every wide console table sits in a width-capped scroll frame. The frame owns
   the rounded corners and the mobile edge fade; the inner table-responsive
   wrapper owns the horizontal swipe so the page itself never blows out. */
.admin-table-frame {
    position: relative;
    width: 100%;
    border-radius: 0.5rem;
}
.admin-table-frame .table-responsive {
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: 0.5rem;
}

@media (min-width: 768px) {
    .admin-console-toolbar {
        flex-wrap: nowrap;
    }
    .admin-search-form {
        flex: 1 1 22rem;
        width: auto;
    }
    .admin-search-input {
        max-width: 24rem;
    }
    .admin-filter-pills {
        flex: 0 0 auto;
        width: auto;
    }
}

@media (max-width: 767.98px) {
    .admin-shell-topbar {
        padding: 0.625rem 0.75rem;
    }
    .admin-shell-nav__inner {
        padding: 0.5rem 0.75rem;
    }
    .admin-shell-nav__inner > .btn {
        padding: 0.375rem 0.75rem;
        font-size: 0.75rem;
        line-height: 1.25;
    }
    .admin-kpi-card .card-body {
        padding: 0.875rem;
    }
    /* Phones stack the search field above its buttons so neither is squeezed
       into an unusable width. */
    .admin-search-form {
        flex-wrap: wrap;
    }
    .admin-search-input {
        flex: 1 1 100%;
    }
    .admin-search-form > .btn {
        flex: 1 1 auto;
        min-height: 44px;
    }
    /* Breadcrumb destinations and the waitlist export pill are links, so they
       keep the same 44px touch target as every console button. */
    .admin-breadcrumb .breadcrumb-item > a {
        display: inline-flex;
        align-items: center;
        min-height: 44px;
    }
    .admin-waitlist-badge {
        min-height: 44px;
        padding: 0.5rem 0.9rem;
    }
    .admin-table-frame::after {
        content: "";
        position: absolute;
        top: 0;
        right: 0;
        bottom: 0;
        width: 1.25rem;
        border-radius: 0 0.5rem 0.5rem 0;
        pointer-events: none;
        background: linear-gradient(to right, rgba(255, 255, 255, 0), var(--ic-card-bg));
    }
}

@media (max-width: 379.98px) {
    .admin-waitlist-badge {
        flex-basis: 100%;
        max-width: max-content;
    }
}

/* ---------------------------------------------------------------------------
   WCAG AA component contrast + focus polish
   ---------------------------------------------------------------------------
   Bootstrap's default component colours bypass the brand palette and several
   of them fail AA (notably secondary outline buttons, primary links, success
   text and muted helper copy in dark mode). These overrides keep the existing
   visual language while using the theme tokens that already meet AA.

   - secondary text/helper copy: --ic-muted (light #5f6b7e, dark #94a3b8)
   - outline buttons: brand indigo/emerald with accessible dark variants
   - links/headings: brand indigo rather than Bootstrap #0d6efd
   - nav pills: brand indigo active surface and AA-safe inactive labels
   - every .btn gets a 3px focus-visible ring (may not be suppressed by
     .shadow-sm, which uses !important on box-shadow).
   --------------------------------------------------------------------------- */
/* Bootstrap keeps its own surface ladder (#fff / #212529 / #343a40 / #dee2e6)
   beside the brand one (--ic-*). Anything that emits a Bootstrap component
   therefore painted a second, unrelated palette inside the brand page: cards
   came out Bootstrap-#212529 on a #0f172a page, `border-secondary-subtle`
   measured 1.87:1, and `text-secondary` badges collapsed to 3.83:1. One bridge
   re-points the component tokens at the brand ladder so a card, a modal, an
   input and a muted badge all sit on the surface the page actually uses. */
:root {
    --bs-body-bg: var(--ic-body-bg);
    --bs-body-color: var(--ic-text);
    --bs-emphasis-color: var(--ic-heading);
    --bs-heading-color: var(--ic-heading);
    --bs-secondary-color: var(--ic-muted);
    --bs-secondary-bg: var(--ic-surface-inset);
    --bs-tertiary-bg: var(--ic-surface-inset);
    --bs-border-color: var(--ic-card-border);
    --bs-border-color-translucent: color-mix(in srgb, var(--ic-card-border) 90%, transparent);
    --bs-card-bg: var(--ic-card-bg);
    --bs-card-border-color: var(--ic-card-border);
    --bs-card-cap-bg: var(--ic-table-head-bg);
    --bs-modal-bg: var(--ic-card-bg);
    --bs-modal-border-color: var(--ic-card-border);
    --bs-offcanvas-bg: var(--ic-card-bg);
    --bs-dropdown-bg: var(--ic-card-bg);
    --bs-dropdown-border-color: var(--ic-card-border);
    --bs-list-group-bg: var(--ic-card-bg);
    /* Control boundaries. The subtle border is the slug every `border
       border-secondary-subtle` input in Settings uses, so it has to clear the
       3:1 non-text threshold (#41464b measured 1.87:1 on the card). */
    --bs-secondary-border-subtle: var(--ic-control-border);
    --bs-border-subtle: var(--ic-card-border);
    /* Status ink. #dc3545 measures 3.94:1 on the dark page and 4.33:1 on the
       light one; both are below AA for the required-asterisk and error copy. */
    --bs-danger-text-emphasis: #b91c1c;
    --bs-secondary-bg-subtle: var(--ic-surface-inset);
    --bs-secondary-text-emphasis: var(--ic-muted);
}

[data-bs-theme="dark"] {
    --bs-secondary-color: var(--ic-muted);
    --bs-danger-text-emphasis: #fca5a5;
    --bs-secondary-text-emphasis: #cbd5e1;
}

/* `text-secondary` and `text-danger` are rgb-variable utilities that ignore
   --bs-secondary-color / --bs-danger-text-emphasis, so the two slugs are pinned
   directly against the brand muted ink (#5f6b7e light: 5.16:1, #94a3b8 dark:
   6.96:1) and an AA red per mode. */
.text-secondary {
    color: var(--ic-muted) !important;
}

.text-danger {
    color: #b91c1c !important;
}

[data-bs-theme="dark"] .text-danger {
    color: #fca5a5 !important;
}

.btn-outline-secondary {
    --bs-btn-color: #475569;
    --bs-btn-border-color: #748096;
    --bs-btn-hover-color: #0f172a;
    --bs-btn-hover-bg: #f1f5f9;
    --bs-btn-hover-border-color: #64748b;
    --bs-btn-active-color: #0f172a;
    --bs-btn-active-bg: #e2e8f0;
    --bs-btn-active-border-color: #64748b;
    --bs-btn-disabled-color: #64748b;
    --bs-btn-disabled-border-color: #cbd5e1;
}

[data-bs-theme="dark"] .btn-outline-secondary {
    --bs-btn-color: #cbd5e1;
    --bs-btn-border-color: #94a3b8;
    --bs-btn-hover-color: #f8fafc;
    --bs-btn-hover-bg: #334155;
    --bs-btn-hover-border-color: #cbd5e1;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #475569;
    --bs-btn-active-border-color: #cbd5e1;
    --bs-btn-disabled-color: #94a3b8;
    --bs-btn-disabled-border-color: #475569;
}

.btn-outline-primary {
    --bs-btn-color: var(--ic-blue);
    --bs-btn-border-color: var(--ic-blue);
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--ic-blue);
    --bs-btn-hover-border-color: var(--ic-blue);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--ic-blue-dark);
    --bs-btn-active-border-color: var(--ic-blue-dark);
}

[data-bs-theme="dark"] .btn-outline-primary {
    --bs-btn-color: #a5b4fc;
    --bs-btn-border-color: #818cf8;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: var(--ic-blue);
    --bs-btn-hover-border-color: var(--ic-blue);
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: var(--ic-blue-dark);
    --bs-btn-active-border-color: var(--ic-blue-dark);
}

/* Bootstrap's #dc3545 outline label lands at 3.4:1 on the dark card surface.
   The lighter red keeps destructive actions readable without weakening them. */
[data-bs-theme="dark"] .btn-outline-danger {
    --bs-btn-color: #fca5a5;
    --bs-btn-border-color: #f87171;
    --bs-btn-hover-color: #0f172a;
    --bs-btn-hover-bg: #fca5a5;
    --bs-btn-hover-border-color: #fca5a5;
    --bs-btn-active-color: #0f172a;
    --bs-btn-active-bg: #f87171;
    --bs-btn-active-border-color: #f87171;
}

.btn-outline-success {
    --bs-btn-color: #146c43;
    --bs-btn-border-color: #198754;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #198754;
    --bs-btn-hover-border-color: #198754;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #146c43;
    --bs-btn-active-border-color: #146c43;
}

[data-bs-theme="dark"] .btn-outline-success {
    --bs-btn-color: #75d1a3;
    --bs-btn-border-color: #3b8f68;
    --bs-btn-hover-color: #ffffff;
    --bs-btn-hover-bg: #198754;
    --bs-btn-hover-border-color: #3b8f68;
    --bs-btn-active-color: #ffffff;
    --bs-btn-active-bg: #146c43;
    --bs-btn-active-border-color: #3b8f68;
}

.link-primary {
    color: var(--ic-blue) !important;
}

[data-bs-theme="dark"] .link-primary {
    color: #a5b4fc !important;
}

.text-primary {
    color: var(--ic-blue) !important;
}

[data-bs-theme="dark"] .text-primary {
    color: #a5b4fc !important;
}

.text-success {
    color: #0f5132 !important;
}

[data-bs-theme="dark"] .text-success {
    color: #75d1a3 !important;
}

.nav-pills .nav-link {
    color: var(--ic-blue);
}

.nav-pills .nav-link:hover,
.nav-pills .nav-link:focus-visible {
    color: var(--ic-blue-dark);
    background-color: var(--ic-gray-100);
}

.nav-pills .nav-link.active {
    color: #ffffff;
    background-color: var(--ic-blue);
}

[data-bs-theme="dark"] .nav-pills .nav-link {
    color: #a5b4fc;
}

[data-bs-theme="dark"] .nav-pills .nav-link:hover,
[data-bs-theme="dark"] .nav-pills .nav-link:focus-visible {
    color: #c7d2fe;
    background-color: var(--ic-gray-800);
}

[data-bs-theme="dark"] .nav-pills .nav-link.active {
    color: #ffffff;
    background-color: var(--ic-blue);
}

.btn:focus-visible {
    outline: 3px solid var(--ic-focus);
    outline-offset: 3px;
}

/* Shared site footer (Phase 2 chrome unification). One definition serves the
   landing page, the content pages rendered by base.html and the standalone
   calculator, so the four public columns cannot drift. */
.site-footer {
    padding: 3.5rem 0 2rem;
    margin-top: 3rem;
    color: var(--ic-muted);
    font-size: 0.9rem;
    border-top: 1px solid var(--ic-card-border);
}

.site-footer .footer-heading {
    color: var(--ic-heading);
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.75rem;
    letter-spacing: 0.06em;
    margin-bottom: 1rem;
}

.site-footer a {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    color: var(--ic-muted);
    text-decoration: none;
}

.site-footer a:hover {
    color: var(--ic-blue);
}

.site-footer .footer-legal-strip {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 0.5rem 0.75rem;
}

/* ICO trust badge: fixed pill geometry in normal flow, so it cannot shift the
   footer when it renders (zero CLS) and wraps cleanly on narrow viewports.
   Used in the public footer and in the app legal strips. */
.footer-ico-badge {
    display: inline-flex;
    align-items: center;
    min-height: 1.75rem;
    padding: 0.15rem 0.65rem;
    border: 1px solid var(--ic-card-border);
    border-radius: 999px;
    color: var(--ic-muted);
    font-size: 0.85rem;
    font-weight: 600;
    line-height: 1.2;
    max-width: 100%;
    overflow-wrap: anywhere;
    white-space: normal;
}

@media (min-width: 576px) {
    .footer-ico-badge {
        white-space: nowrap;
    }
}

/* Phones give the ICO disclosure the full column width and a 44px touch row,
   so the pill can never push the footer past the viewport. The descendant
   selector outranks `.site-footer a` (which pins 24px) without !important. */
@media (max-width: 575.98px) {
    .site-footer .footer-ico-badge {
        display: flex;
        width: 100%;
        min-height: 44px;
        justify-content: center;
        text-align: center;
    }
}

.footer-ico-badge:hover {
    color: var(--ic-blue);
    border-color: var(--ic-blue);
}

.footer-ico-badge:focus-visible {
    outline: 2px solid var(--ic-focus);
    outline-offset: 2px;
}

/* The wordmark link is a target, not decoration: it measured 140x32 on a phone
   because the anchor only wrapped its own inline image. */
.site-footer .footer-brand-link {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* The calculator renders its own compact legal strip instead of the shared
   footer, so it needs the same touch floor rather than inheriting it. */
.calc-page footer a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* App legal strips (dashboard, settings, admin) repeat the footer's privacy,
   terms and ICO links as bare anchors, so they were 21px tall targets on a
   phone while the shared footer had already been lifted to 44px. */
.app-legal-strip a,
footer .footer-ico-badge {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

/* The visible way back out of Settings was a bare text link (21px tall). */
.settings-back-link {
    min-height: 44px;
}

/* Comfortable footer targets on touch. The list gaps stay untouched; only the
   anchor boxes grow, so the footer column rhythm does not change. */
@media (pointer: coarse) {
    .site-footer a,
    .site-footer .footer-ico-badge {
        min-height: 44px;
        min-width: 44px;
        padding-block: 0.5rem;
    }
}

.auth-card .navbar-brand {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
}

.auth-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 44px;
    min-width: 44px;
    padding: 0.5rem 0.25rem;
}

.form-check.min-touch,
.form-check.min-touch .form-check-label {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    cursor: pointer;
}

.auth-nav [data-theme-toggle] {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 44px;
    min-height: 44px;
}

/* Signup reassurance strip (#register). Three facts a B2B buyer needs before
   typing an email address, kept to one hairline-bounded block so the form stays
   the focus. A centred stack rather than a wrapping inline run: the auth card
   is 440px, so a separator would land mid-line as a stray bullet. */
.auth-trust {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.3rem;
    margin: 0;
    padding: 0.6rem 0.75rem;
    list-style: none;
    border: 1px solid var(--ic-card-border);
    border-radius: var(--ic-radius-control);
    background: var(--ic-surface-inset);
    color: var(--ic-muted);
    font-size: 0.78rem;
    line-height: 1.5;
    text-align: center;
}

.auth-trust li {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
}

/* One leading tick per fact. The strip is a stack, not a wrapping inline run,
   so a separator can never land at the start of a line as a stray bullet. */
.auth-trust li::before {
    content: "";
    flex: 0 0 auto;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--ic-green);
}

/* Seasonal CTA boundary. A light-mode seasonal fill can be near-white
   (black_friday platinum) or amber (halloween, new_year), which measures
   under 3:1 against the white card it sits on even though the label ink is
   fine. --event-accent is already the contrast-checked variant of the same
   hue for each mode, so it supplies the control boundary without touching
   the fill or the ink. Dark mode needs it too: spring_boost's #047857 fill is
   only 2.67:1 off the #1e293b card, while its accent is 8.4:1. */
[data-event-theme] .btn-primary {
    border-color: var(--event-accent);
}

/* Form-control boundaries. Bootstrap's default #dee2e6 border measures 1.79:1
   against a seasonal card and 1.24:1 against a white one — a control edge has
   to clear 3:1 to read as a control at all (WCAG 1.4.11). --ic-control-border
   is the slug the rest of the sheet already measures against (3.64:1 light,
   6.34:1 dark), so inputs, selects and textareas adopt it globally instead of
   drifting per page. */
.form-control,
.form-select,
.form-check-input {
    border-color: var(--ic-control-border);
}

/* The seasonal skin swaps --ic-control-border for nothing, so the boundary is
   re-pinned inside a promo page where the fill behind it is the skin's. */
[data-event-theme] .form-control,
[data-event-theme] .form-select,
[data-event-theme] .form-check-input {
    border-color: var(--ic-control-border);
}

/* Contact page (#contact). The response promise sits under the statutory
   disclosure block as a quiet footnote, and every inline card action clears
   the 44px touch floor. */
.contact-response {
    align-items: center;
    display: flex;
    gap: 0.45rem;
    line-height: 1.5;
}

.contact-response svg {
    flex: 0 0 auto;
    opacity: 0.85;
}

.marketing-card .min-touch {
    align-items: center;
    display: inline-flex;
    min-height: 44px;
    padding-inline: 1.1rem;
}

/* ---------------------------------------------------------------------------
   Landing page (templates/index.html)
   ---------------------------------------------------------------------------
   Scoped with an `lp-` prefix so nothing here can collide with the shared app
   chrome. The inline <style> block in index.html keeps only the layout guards
   (CLS reservations, pricing, FAQ); everything below is new surface. */

/* Ambient hero glow. Deliberately NOT .hero-section::before: promotions.css
   already owns that pseudo-element for the seasonal skins. */
.lp-hero-wrap {
    position: relative;
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.08), transparent 70%);
}

[data-bs-theme="dark"] .lp-hero-wrap {
    background: radial-gradient(ellipse at 50% 0%, rgba(99, 102, 241, 0.15), transparent 70%);
}

/* Secondary hero copy keeps the semantic muted token at a standard weight and
   a size above the 0.875rem body floor. */
.lp-hero-trust {
    color: var(--ic-muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

.lp-muted-copy {
    color: var(--ic-muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
}

/* Hero tertiary action (Tip 7): borderless at rest so it never competes with
   the solid primary or the outlined secondary action. The wrapper selectors
   outrank the inline dark-mode .btn-ghost rule in index.html. */
.btn-ghost.lp-hero-ghost {
    border-color: transparent;
    background-color: transparent;
    color: var(--ic-text);
    font-size: 1rem;
    font-weight: 600;
    text-decoration: none;
}

.btn-ghost.lp-hero-ghost:hover,
.btn-ghost.lp-hero-ghost:focus-visible {
    border-color: transparent;
    background-color: var(--ic-surface-inset);
    color: var(--ic-heading);
    text-decoration: none;
}

[data-bs-theme="dark"] .btn-ghost.lp-hero-ghost {
    color: #e2e8f0;
    border-color: transparent;
    background-color: transparent;
}

[data-bs-theme="dark"] .btn-ghost.lp-hero-ghost:hover,
[data-bs-theme="dark"] .btn-ghost.lp-hero-ghost:focus-visible {
    color: #ffffff;
    border-color: transparent;
    background-color: rgba(255, 255, 255, 0.08);
}

.btn-ghost.lp-hero-ghost:focus-visible {
    outline: 3px solid var(--ic-focus);
    outline-offset: 3px;
}

.lp-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
    padding: 0.4rem 0.9rem;
    border: 1px solid #818cf8;
    border-radius: 999px;
    background: #eef2ff;
    color: #3730a3;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.08), 0 0 16px rgba(99, 102, 241, 0.16);
    font-size: 0.76rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.2;
    text-transform: uppercase;
}

.lp-eyebrow::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

[data-bs-theme="dark"] .lp-eyebrow {
    background: rgba(99, 102, 241, 0.14);
    border-color: rgba(165, 180, 252, 0.55);
    color: #e0e7ff;
    box-shadow: 0 0 0 1px rgba(99, 102, 241, 0.18), 0 0 18px rgba(99, 102, 241, 0.35);
}

/* ---- Hero debt-recovery preview card ---- */
.lp-recovery {
    max-width: 460px;
    margin: 0 auto;
    padding: 1.5rem;
    background: var(--ic-card-bg);
    border: 1px solid var(--ic-card-border);
    border-radius: 1.1rem;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 28px 56px -28px rgba(15, 23, 42, 0.4);
    text-align: left;
}

[data-bs-theme="dark"] .lp-recovery {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 28px 56px -28px rgba(0, 0, 0, 0.9);
}

.lp-recovery__head {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.6rem 0.9rem;
    margin-bottom: 1.15rem;
}

.lp-recovery__label {
    display: block;
    margin-bottom: 0.2rem;
    color: var(--ic-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.lp-recovery__debtor {
    margin: 0;
    color: var(--ic-heading);
    font-size: 1.05rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.lp-badge-amber {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    padding: 0.25rem 0.6rem;
    border: 1px solid #fbbf24;
    border-radius: 999px;
    background: #fef3c7;
    color: #92400e;
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
}

.lp-badge-amber::before {
    content: "";
    width: 6px;
    height: 6px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

[data-bs-theme="dark"] .lp-badge-amber {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.45);
    color: #fcd34d;
}

.lp-ledger {
    display: grid;
    gap: 0.75rem;
    margin: 0 0 1.25rem;
}

/* Rows separate by rhythm alone; dashed internal dividers were visual noise
   (Tip 4: use whitespace before borders). */
.lp-ledger__row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
    padding-block: 0.15rem;
}

.lp-ledger dt {
    margin: 0;
    color: var(--ic-muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
}

.lp-ledger dd {
    margin: 0;
    color: var(--ic-heading);
    font-size: 0.9rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lp-chip {
    display: inline-flex;
    align-items: center;
    padding: 0.12rem 0.45rem;
    border: 1px solid rgba(22, 163, 74, 0.35);
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.1);
    color: #166534;
    font-size: 0.78rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
    line-height: 1.35;
}

.lp-chip--interest {
    border-color: rgba(79, 70, 229, 0.3);
    background: rgba(79, 70, 229, 0.1);
    color: var(--ic-blue-dark);
}

[data-bs-theme="dark"] .lp-chip {
    background: rgba(34, 197, 94, 0.16);
    border-color: rgba(74, 222, 128, 0.35);
    color: #86efac;
}

[data-bs-theme="dark"] .lp-chip--interest {
    background: rgba(99, 102, 241, 0.2);
    border-color: rgba(165, 180, 252, 0.4);
    color: #c7d2fe;
}

.lp-recovery__total {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.35rem 1rem;
    padding: 1rem 1.1rem;
    border-radius: 0.85rem;
    background: var(--ic-surface-inset);
    margin-bottom: 1rem;
}

.lp-recovery__total-label {
    color: var(--ic-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.3;
    text-transform: uppercase;
}

.lp-total {
    color: var(--ic-heading);
    font-size: clamp(1.9rem, 4vw, 2.4rem);
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

/* Hero-card CTAs. These used to hard-code `color:#ffffff !important` to beat
   Bootstrap's anchor colour, which is exactly what broke the white-on-white
   button: Black Friday sets `--event-cta-bg` to a near-white platinum and the
   `!important` white label stayed behind. They now read the seasonal ink token,
   so whichever surface the skin picks, the label is the colour that was
   contrast-checked against it (`--event-cta-fg`, >= 12:1 on every preset).
   `!important` is kept only to beat the anchor rule, never to pin a colour. */
.lp-recovery__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0.6rem 1rem;
    color: var(--event-cta-fg, #ffffff) !important;
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.lp-recovery__cta:hover,
.lp-recovery__cta:focus-visible {
    color: var(--event-cta-hover-fg, #ffffff) !important;
}

.lp-recovery__note {
    margin: 0.75rem 0 0;
    color: var(--ic-muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

/* ---- Feature bento ---- */
.lp-bento {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1.5rem;
}

@media (min-width: 768px) {
    .lp-bento {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media (min-width: 992px) {
    .lp-bento {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .lp-bento__wide {
        grid-column: span 2;
    }
}

.lp-bento__card {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 1.05rem;
    height: 100%;
    padding: 1.85rem;
    overflow: hidden;
    border: 1px solid var(--ic-card-border);
    border-radius: 1rem;
    background: var(--ic-card-bg);
    transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease;
}

.lp-bento__card::after {
    content: "";
    position: absolute;
    inset: 0 0 auto;
    height: 1px;
    pointer-events: none;
    background: linear-gradient(90deg, transparent, rgba(99, 102, 241, 0.5), transparent);
    opacity: 0.7;
}

@media (hover: hover) {
    .lp-bento__card:hover {
        transform: translateY(-2px);
        border-color: rgba(99, 102, 241, 0.4);
        box-shadow: 0 24px 44px -28px rgba(15, 23, 42, 0.45);
    }

    [data-bs-theme="dark"] .lp-bento__card:hover {
        box-shadow: 0 24px 44px -28px rgba(0, 0, 0, 0.85);
    }
}

.lp-card-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.65rem;
}

.lp-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    flex: 0 0 42px;
    border: 1px solid rgba(79, 70, 229, 0.22);
    border-radius: 10px;
    background: rgba(79, 70, 229, 0.1);
    color: #4338ca;
}

[data-bs-theme="dark"] .lp-icon {
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(165, 180, 252, 0.26);
    color: #c7d2fe;
}

.lp-pill {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.3rem 0.65rem;
    border: 1px solid rgba(79, 70, 229, 0.28);
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.07);
    color: #4338ca;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.01em;
    line-height: 1.2;
    white-space: nowrap;
}

.lp-pill::before {
    content: "";
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: currentColor;
    flex: 0 0 auto;
}

[data-bs-theme="dark"] .lp-pill {
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(165, 180, 252, 0.32);
    color: #c7d2fe;
}

.lp-bento__title {
    margin: 0;
    color: var(--ic-heading);
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.01em;
}

.lp-bento__body {
    margin: 0;
    color: var(--ic-muted);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.62;
    text-wrap: pretty;
}

/* Three-stage stepper */
.lp-steps {
    position: relative;
    display: grid;
    gap: 0.9rem;
    margin: 0.2rem 0 0;
    padding: 0;
    list-style: none;
}

.lp-steps__item {
    position: relative;
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
}

.lp-steps__item:not(:last-child)::before {
    content: "";
    position: absolute;
    top: 2rem;
    bottom: -0.65rem;
    left: calc(0.925rem - 1px);
    width: 2px;
    background: linear-gradient(180deg, rgba(99, 102, 241, 0.45), rgba(99, 102, 241, 0.12));
}

.lp-steps__node {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 1.85rem;
    height: 1.85rem;
    border: 1px solid rgba(79, 70, 229, 0.35);
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.1);
    color: var(--ic-blue-dark);
    font-size: 0.8rem;
    font-weight: 800;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

[data-bs-theme="dark"] .lp-steps__node {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(165, 180, 252, 0.4);
    color: #c7d2fe;
}

.lp-steps__title {
    display: block;
    margin: 0.2rem 0 0.15rem;
    color: var(--ic-heading);
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.35;
}

.lp-steps__copy {
    display: block;
    color: var(--ic-muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

@media (min-width: 992px) {
    .lp-bento__wide .lp-steps {
        --lp-step-node-size: 1.85rem;
        --lp-step-gap: 1rem;
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: var(--lp-step-gap);
    }

    .lp-bento__wide .lp-steps__item {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.55rem;
    }

    .lp-bento__wide .lp-steps__item:not(:last-child)::before {
        top: calc(var(--lp-step-node-size) / 2 - 1px);
        right: calc(-1 * (var(--lp-step-gap) + var(--lp-step-node-size) / 2));
        bottom: auto;
        left: calc(var(--lp-step-node-size) / 2);
        width: auto;
        height: 2px;
        background: rgba(99, 102, 241, 0.35);
    }

    .lp-bento__wide .lp-steps__node {
        position: relative;
        z-index: 1;
        background-color: var(--ic-card-bg);
        background-image: linear-gradient(rgba(79, 70, 229, 0.1), rgba(79, 70, 229, 0.1));
    }

    [data-bs-theme="dark"] .lp-bento__wide .lp-steps__node {
        background-image: linear-gradient(rgba(99, 102, 241, 0.18), rgba(99, 102, 241, 0.18));
    }

    .lp-bento__wide .lp-steps__title {
        margin-top: 0;
    }
}

/* Statutory fee tiers */
.lp-tiers {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 0.75rem;
    margin-top: auto;
}

.lp-tier {
    padding: 0.85rem 0.6rem;
    border-radius: 0.75rem;
    background: var(--ic-surface-inset);
    text-align: center;
}

.lp-tier__amount {
    display: block;
    color: var(--ic-heading);
    font-size: 1.05rem;
    font-weight: 800;
    font-variant-numeric: tabular-nums;
    line-height: 1.2;
}

.lp-tier__band {
    display: block;
    margin-top: 0.2rem;
    color: var(--ic-muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.35;
}

/* Payment + collaboration chips */
.lp-pay-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 0.6rem;
    margin-top: auto;
}

.lp-pay-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.45rem 0.75rem;
    border-radius: 999px;
    background: var(--ic-surface-inset);
    color: var(--ic-heading);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1.2;
}

.lp-seats {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-top: auto;
}

.lp-seat {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 2rem;
    height: 2rem;
    border: 1px solid #4f46e5;
    border-radius: 50%;
    background: #eef2ff;
    color: #312e81;
    font-size: 0.7rem;
    font-weight: 800;
    line-height: 1;
}

/* Decorative avatar stack (aria-hidden), but the initials are still read by
   sighted users, so the pairing is measured rather than washed: #312e81 on
   #eef2ff is 10.22:1, and the 1px #4f46e5 ring clears 6.29:1 on a white card
   and 5.74:1 on the #f1f5f9 inset. Dark mode swaps the whole chip because a
   6.29:1 indigo ring drops to 2.59:1 on the #172033 inset. */
[data-bs-theme="dark"] .lp-seat {
    border-color: #a5b4fc;
    background: #312e81;
    color: #e0e7ff;
}

.lp-seat--own {
    background: var(--ic-blue);
    border-color: var(--ic-blue);
    color: #ffffff;
}

[data-bs-theme="dark"] .lp-seat--own {
    background: #4f46e5;
    border-color: #a5b4fc;
    color: #ffffff;
}

.lp-seat-label {
    color: var(--ic-muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
}

/* ---- Closing CTA band: one elevated navy surface, uniform border ---- */
.lp-cta-band {
    position: relative;
    overflow: hidden;
    padding: 3.25rem 1.75rem;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 1.5rem;
    background-color: #172033;
    color: var(--ic-white);
    box-shadow: 0 20px 40px -15px rgba(0, 0, 0, 0.5);
}

.lp-cta-band > * {
    position: relative;
    z-index: 1;
}

/* Secondary copy on the navy band uses reduced-opacity white so the surface
   tints the text instead of a flat grey hex (Tip 2). ~9.6:1 on #172033. */
.lp-cta-band__sub {
    max-width: 560px;
    color: rgba(255, 255, 255, 0.75);
    font-size: 1.05rem;
    font-weight: 400;
    line-height: 1.6;
}

.lp-cta-band .btn-light {
    color: #0b1226;
    font-weight: 700;
}

.lp-cta-band .btn-light:hover,
.lp-cta-band .btn-light:focus-visible {
    background: #eef2ff;
    color: #0b1226;
}

@media (max-width: 767.98px) {
    .lp-cta-band {
        padding: 2.5rem 1.25rem;
    }
}

/* ---- Hero statutory teaser ---- */
.lp-hero-stack {
    display: grid;
    gap: 1rem;
    max-width: 460px;
    margin: 0 auto;
}

.lp-teaser {
    padding: 1.25rem 1.35rem 1.35rem;
    border: 1px solid var(--ic-card-border);
    border-radius: 1.1rem;
    background: var(--ic-card-bg);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), 0 20px 44px -30px rgba(15, 23, 42, 0.38);
    text-align: left;
}

[data-bs-theme="dark"] .lp-teaser {
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4), 0 20px 44px -30px rgba(0, 0, 0, 0.85);
}

/* Secondary teaser copy sits on a dark card, so it uses reduced-opacity white
   rather than the flat --ic-muted grey (Tip 2). ~8.3:1 on #1e293b. */
[data-bs-theme="dark"] .lp-teaser .lp-teaser__rate,
[data-bs-theme="dark"] .lp-teaser .lp-teaser__label,
[data-bs-theme="dark"] .lp-teaser .lp-teaser__out-label,
[data-bs-theme="dark"] .lp-teaser .lp-teaser__band,
[data-bs-theme="dark"] .lp-teaser .lp-teaser__note {
    color: rgba(255, 255, 255, 0.72);
}

.lp-teaser__head {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 0.75rem;
    margin-bottom: 0.9rem;
}

.lp-teaser__title {
    margin: 0;
    color: var(--ic-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: -0.01em;
    line-height: 1.3;
}

.lp-teaser__rate {
    color: var(--ic-muted);
    font-size: 0.68rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    white-space: nowrap;
}

.lp-teaser__form {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.75rem;
    margin: 0 0 0.9rem;
}

.lp-teaser__field {
    min-width: 0;
}

.lp-teaser__label {
    display: block;
    margin-bottom: 0.3rem;
    color: var(--ic-muted);
    font-size: 0.7rem;
    font-weight: 700;
    letter-spacing: 0.04em;
    line-height: 1.3;
    text-transform: uppercase;
}

.lp-teaser .form-control {
    min-height: 44px;
    padding: 0.5rem 0.65rem;
    border-color: #8a94a6;
    color: var(--ic-heading);
    font-size: 1rem;
    font-weight: 700;
    font-variant-numeric: tabular-nums;
}

[data-bs-theme="dark"] .lp-teaser .form-control {
    border-color: #64748b;
}

.lp-teaser .form-control:focus {
    border-color: var(--ic-blue);
    box-shadow: 0 0 0 0.2rem rgba(79, 70, 229, 0.18);
}

.lp-teaser .form-control:focus-visible {
    outline: 3px solid var(--ic-focus);
    outline-offset: 2px;
}

.lp-teaser .form-control[aria-invalid="true"] {
    border-color: var(--ic-red);
}

.lp-teaser__out {
    display: grid;
    gap: 0.65rem;
    margin-block: 1rem 0.75rem;
}

.lp-teaser__out .lp-ledger__row {
    align-items: center;
}

.lp-teaser__out-label {
    color: var(--ic-muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.4;
}

.lp-teaser__band {
    margin: 0.6rem 0 0.9rem;
    color: var(--ic-muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Same contract as .lp-recovery__cta: the label follows the seasonal ink token
   instead of a pinned white, so a platinum or amber CTA keeps its dark label. */
.lp-teaser__cta {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 44px;
    padding: 0.55rem 1rem;
    color: var(--event-cta-fg, #ffffff) !important;
    font-size: 0.88rem;
    font-weight: 700;
    letter-spacing: 0.01em;
}

.lp-teaser__cta:hover,
.lp-teaser__cta:focus-visible {
    color: var(--event-cta-hover-fg, #ffffff) !important;
}

.lp-teaser__cta:focus-visible {
    outline: 3px solid var(--ic-focus);
    outline-offset: 3px;
}

.lp-teaser__note {
    margin: 0.7rem 0 0;
    color: var(--ic-muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
    text-align: center;
}

@media (max-width: 419.98px) {
    .lp-teaser__form {
        grid-template-columns: minmax(0, 1fr);
    }
}

/* ---- Interactive escalation stepper ---- */
.lp-steps-badge {
    white-space: normal;
    text-align: start;
}

.lp-steps__btn {
    display: grid;
    grid-template-columns: auto minmax(0, 1fr);
    align-items: start;
    gap: 0.75rem;
    width: 100%;
    min-height: 44px;
    margin: 0;
    padding: 0.1rem 0;
    border: 0;
    border-radius: 0.5rem;
    background: none;
    color: inherit;
    font: inherit;
    text-align: start;
    cursor: pointer;
    -webkit-appearance: none;
    appearance: none;
    -webkit-tap-highlight-color: transparent;
}

.lp-steps__btn:focus-visible {
    outline: 3px solid var(--ic-focus);
    outline-offset: 2px;
}

.lp-steps__node {
    transition: background-color 0.15s ease, border-color 0.15s ease,
        color 0.15s ease, box-shadow 0.15s ease;
}

@media (hover: hover) {
    .lp-steps__btn:hover .lp-steps__node {
        border-color: rgba(79, 70, 229, 0.65);
        background-color: rgba(79, 70, 229, 0.16);
    }

    [data-bs-theme="dark"] .lp-steps__btn:hover .lp-steps__node {
        background-color: rgba(99, 102, 241, 0.26);
    }
}

.lp-steps__btn[aria-pressed="true"] .lp-steps__node {
    border-color: #4f46e5;
    background: #4f46e5;
    background-image: none;
    color: #ffffff;
    box-shadow: 0 0 0 4px rgba(99, 102, 241, 0.18);
}

[data-bs-theme="dark"] .lp-steps__btn[aria-pressed="true"] .lp-steps__node {
    border-color: #c7d2fe;
    background: #818cf8;
    background-image: none;
    color: #0f172a;
    box-shadow: 0 0 0 4px rgba(129, 140, 248, 0.24);
}

@media (min-width: 992px) {
    .lp-bento__wide .lp-steps__btn {
        grid-template-columns: minmax(0, 1fr);
        gap: 0.55rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-bento__card {
        transition: none;
    }

    .lp-bento__card:hover {
        transform: none;
    }

    .lp-steps__node {
        transition: none;
    }
}

/* ---- 4-step statutory recovery walkthrough (#how-it-works) ----------------
   Sits between the hero and the bento. Everything paints from the shared
   --ic-* surface tokens so it follows data-bs-theme and the seasonal
   [data-event-theme] skins without a per-skin rule.

   Zero-CLS contract: the tabs are a fixed-height rail and every panel shares
   one reserved min-height at >= 768px, so switching steps never reflows the
   document or moves the scroll position. Below 768px the rail scrolls
   horizontally (never the page) and the panels size to their own content,
   because a reserved height there would just be dead space. */
.lp-flow {
    padding-block: 4.5rem 1rem;
}

.lp-flow__intro {
    max-width: 720px;
    margin: 0 auto 2.5rem;
    text-align: center;
}

.lp-flow__eyebrow {
    margin: 0 0 0.6rem;
    color: var(--ic-blue-dark);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.09em;
    line-height: 1.4;
    text-transform: uppercase;
}

[data-bs-theme="dark"] .lp-flow__eyebrow {
    color: #a5b4fc;
}

.lp-flow__title {
    margin: 0 0 0.85rem;
    color: var(--ic-heading);
    font-size: clamp(1.6rem, 2.6vw + 0.8rem, 2.35rem);
    font-weight: 800;
    letter-spacing: -0.025em;
    line-height: 1.15;
    text-wrap: balance;
}

.lp-flow__lede {
    margin: 0;
    color: var(--ic-muted);
    font-size: 1rem;
    font-weight: 400;
    line-height: 1.6;
    text-wrap: pretty;
}

.lp-flow__frame {
    padding: 1.25rem;
    border: 1px solid var(--ic-card-border);
    border-radius: 1.1rem;
    background: var(--ic-card-bg);
    box-shadow: var(--ic-shadow-rest);
}

/* ---- Tab rail ----
   One row of four on desktop. Below that it becomes a 2x2 grid: all four
   steps stay visible at once, which is the point of a four-step story, and no
   step is parked behind a horizontal scroll past the first. `overflow-x: auto`
   stays as the safety valve for anything wider than the rail (a long
   translation, a 200% zoom), so the page itself can never scroll sideways. */
.lp-flow__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0.25rem;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    border: 1px solid var(--ic-card-border);
    border-radius: 0.85rem;
    background: var(--ic-surface-inset);
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

@media (min-width: 768px) {
    .lp-flow__tabs {
        grid-template-columns: repeat(4, minmax(0, 1fr));
    }
}

.lp-flow__tab {
    display: inline-flex;
    align-items: center;
    gap: 0.55rem;
    flex: 1 1 0;
    min-width: 0;
    min-height: 48px;
    padding: 0.55rem 0.8rem;
    /* An unselected tab is still a target, so it keeps a real boundary at
       --ic-control-border: 3.64:1 on the light rail, 6.34:1 on the dark one.
       Selection then swaps that boundary for the accent and fills the number
       chip, so the state is carried by border colour plus icon fill, never by
       colour alone. */
    border: 1px solid var(--ic-control-border);
    border-radius: 0.6rem;
    background: transparent;
    color: var(--ic-muted);
    font-family: inherit;
    font-size: 0.875rem;
    font-weight: 600;
    line-height: 1.3;
    text-align: start;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.15s ease, border-color 0.15s ease,
        color 0.15s ease;
}

.lp-flow__tab:hover {
    border-color: var(--ic-blue);
    background: var(--ic-card-bg);
    color: var(--ic-heading);
}

/* Selected: filled card plus a 1px accent border. The border is one of the
   two carriers of the selected state (the other is the ink change), so the
   state never rests on colour alone. */
.lp-flow__tab[aria-selected="true"] {
    border-color: var(--ic-blue);
    background: var(--ic-card-bg);
    color: var(--ic-heading);
    box-shadow: var(--ic-shadow-rest);
}

[data-bs-theme="dark"] .lp-flow__tab[aria-selected="true"] {
    border-color: #a5b4fc;
}

.lp-flow__tab:focus-visible {
    outline: 3px solid var(--ic-focus);
    outline-offset: 2px;
}

.lp-flow__tab-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    border: 1px solid var(--ic-control-border);
    border-radius: 50%;
    background: var(--ic-card-bg);
    color: var(--ic-heading);
    font-size: 0.78rem;
    font-weight: 700;
    line-height: 1;
    font-variant-numeric: tabular-nums;
}

.lp-flow__tab[aria-selected="true"] .lp-flow__tab-num {
    border-color: var(--ic-blue);
    background: var(--ic-blue);
    color: #ffffff;
}

[data-bs-theme="dark"] .lp-flow__tab[aria-selected="true"] .lp-flow__tab-num {
    border-color: #a5b4fc;
    background: #a5b4fc;
    color: #0f172a;
}

.lp-flow__tab-text {
    min-width: 0;
    overflow-wrap: anywhere;
}

/* ---- Panel plumbing ---- */
.lp-flow__panel {
    padding: 1.35rem;
    border: 1px solid var(--ic-card-border);
    border-radius: 0.85rem;
    background: var(--ic-surface-inset);
}

.lp-flow__panel[hidden] {
    display: none;
}

/* Inset panel on the inset track would be flat; the panel takes the card
   surface instead and the outer frame keeps the inset rail. */
.lp-flow__panel {
    background: var(--ic-card-bg);
}

.lp-flow__panel:focus-visible {
    outline: 3px solid var(--ic-focus);
    outline-offset: -3px;
}

/* The zero-CLS reservation, done structurally rather than with a magic
   number. Every panel occupies the same grid cell, so the stage is always as
   tall as the TALLEST step no matter which one is showing - no height changes
   between steps at any width, and no dead space tuned to one breakpoint.

   Inactive panels stay in the grid as `visibility: hidden` boxes: they keep
   their space (which is the whole point of the reservation) while leaving both
   paint and the accessibility tree, and their controls drop out of the tab
   order with them. `display: block !important` is required because Bootstrap
   ships `[hidden] { display: none !important }` as a global reset; without
   that override a hidden panel contributes zero height and the reservation
   collapses. The `hidden` attribute itself is untouched, so the semantic
   selected/unselected state is still carried to assistive tech by
   aria-selected plus hidden. */
@media (min-width: 768px) {
    .lp-flow__stage {
        display: grid;
        grid-template-columns: minmax(0, 1fr);
        align-items: stretch;
    }

    .lp-flow__stage > .lp-flow__panel {
        grid-area: 1 / 1;
        display: flex;
        flex-direction: column;
        /* The shorter steps sit centred inside the reserved cell, so the slack
           reads as balanced padding rather than a hole under the content. */
        justify-content: center;
    }

    .lp-flow__stage > .lp-flow__panel[hidden] {
        display: flex !important;
        visibility: hidden;
    }
}

.lp-flow__panel-head {
    margin: 0 0 1.1rem;
}

.lp-flow__kicker {
    margin: 0 0 0.3rem;
    color: var(--ic-muted);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.4;
    text-transform: uppercase;
}

.lp-flow__kicker code {
    padding: 0.05rem 0.3rem;
    border-radius: 0.3rem;
    background: var(--ic-surface-inset);
    color: inherit;
    font-size: 0.95em;
}

.lp-flow__panel-title {
    margin: 0;
    color: var(--ic-heading);
    font-size: 1.2rem;
    font-weight: 700;
    letter-spacing: -0.015em;
    line-height: 1.3;
    text-wrap: balance;
}

.lp-flow__grid {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 1rem;
}

@media (min-width: 992px) {
    .lp-flow__grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        align-items: start;
    }
}

.lp-flow__stack {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    min-width: 0;
}

/* ---- Document surfaces ---- */
.lp-flow__doc {
    padding: 1.1rem;
    border: 1px solid var(--ic-card-border);
    border-radius: 0.75rem;
    background: var(--ic-card-bg);
}

.lp-flow__doc--accent {
    border-color: #4f46e5;
    background: var(--ic-surface-inset);
}

[data-bs-theme="dark"] .lp-flow__doc--accent {
    border-color: #a5b4fc;
}

.lp-flow__doc-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin: 0 0 0.85rem;
}

.lp-flow__doc-label {
    color: var(--ic-muted);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.07em;
    line-height: 1.3;
    text-transform: uppercase;
}

.lp-flow__sync-note {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    color: var(--ic-muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.3;
    font-variant-numeric: tabular-nums;
}

/* ---- Chips ----
   These are non-text state badges, and their boundary is what makes them
   legible as objects on the panel. The border is therefore a measured colour,
   not an alpha wash: 3.30:1 for #16a34a on the light card, 8.40:1 for #4ade80
   on the dark one. The tinted fill is decorative and stays subtle. */
.lp-flow__chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.15rem 0.5rem;
    border: 1px solid #16a34a;
    border-radius: 999px;
    background: rgba(22, 163, 74, 0.1);
    color: #166534;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.35;
    font-variant-numeric: tabular-nums;
    white-space: nowrap;
}

.lp-flow__chip--interest {
    border-color: #4f46e5;
    background: rgba(79, 70, 229, 0.1);
    color: var(--ic-blue-dark);
}

.lp-flow__chip--secure {
    border-color: var(--ic-control-border);
    background: var(--ic-card-bg);
    color: var(--ic-muted);
}

.lp-flow__chip--mono {
    border-color: var(--ic-control-border);
    background: var(--ic-surface-inset);
    color: var(--ic-text);
    font-size: 0.72rem;
}

[data-bs-theme="dark"] .lp-flow__chip {
    border-color: #4ade80;
    background: rgba(34, 197, 94, 0.16);
    color: #86efac;
}

[data-bs-theme="dark"] .lp-flow__chip--interest {
    border-color: #a5b4fc;
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
}

[data-bs-theme="dark"] .lp-flow__chip--secure,
[data-bs-theme="dark"] .lp-flow__chip--mono {
    border-color: var(--ic-control-border);
    background: var(--ic-surface-inset);
    color: var(--ic-text);
}

/* ---- Sources ---- */
.lp-flow__sources {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    margin: 0 0 1rem;
    padding: 0;
    list-style: none;
}

/* Three across only once each label can hold its own line; below that the
   names break mid-word ("QuickB / ooks Online"), which reads as a defect. */
@media (min-width: 420px) {
    .lp-flow__sources {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lp-flow__source {
    display: flex;
    align-items: center;
    gap: 0.35rem;
    min-width: 0;
    padding: 0.45rem 0.55rem;
    border: 1px solid var(--ic-control-border);
    border-radius: 0.5rem;
    background: var(--ic-surface-inset);
    color: var(--ic-text);
    font-size: 0.78rem;
    font-weight: 600;
    line-height: 1.3;
    overflow-wrap: anywhere;
}

.lp-flow__source i {
    flex: 0 0 auto;
    color: var(--ic-green);
}

[data-bs-theme="dark"] .lp-flow__source i {
    color: #4ade80;
}

/* ---- Ledger ---- */
.lp-flow__ledger {
    display: grid;
    gap: 0.5rem;
    margin: 0;
}

.lp-flow__ledger-row {
    display: flex;
    align-items: baseline;
    justify-content: space-between;
    gap: 1rem;
}

.lp-flow__ledger dt {
    margin: 0;
    color: var(--ic-muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.45;
}

.lp-flow__ledger dd {
    margin: 0;
    color: var(--ic-heading);
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.45;
    font-variant-numeric: tabular-nums;
    text-align: end;
    overflow-wrap: anywhere;
}

.lp-flow__meta-line {
    display: flex;
    align-items: flex-start;
    gap: 0.4rem;
    margin: 0.9rem 0 0;
    color: var(--ic-muted);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

.lp-flow__meta-line i {
    flex: 0 0 auto;
    margin-top: 0.1rem;
}

/* ---- Rate readout ---- */
.lp-flow__rate {
    display: flex;
    flex-wrap: wrap;
    align-items: baseline;
    gap: 0.25rem 0.6rem;
    margin: 0 0 1rem;
    padding: 0.7rem 0.8rem;
    border-radius: 0.5rem;
    background: var(--ic-card-bg);
}

.lp-flow__rate-value {
    color: var(--ic-heading);
    font-size: 1.5rem;
    font-weight: 800;
    letter-spacing: -0.02em;
    line-height: 1.1;
    font-variant-numeric: tabular-nums;
}

.lp-flow__rate-caption {
    flex: 1 1 10rem;
    min-width: 0;
    color: var(--ic-muted);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.45;
}

/* ---- Step 1: why the clock is trustworthy ---- */
.lp-flow__facts {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.75rem;
    margin: 1rem 0 0;
    padding: 0;
    list-style: none;
}

@media (min-width: 640px) {
    .lp-flow__facts {
        grid-template-columns: repeat(3, minmax(0, 1fr));
        gap: 1rem;
    }
}

.lp-flow__fact {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-width: 0;
    padding-top: 0.7rem;
    border-top: 1px solid var(--ic-card-border);
}

.lp-flow__fact-label {
    color: var(--ic-heading);
    font-size: 0.8125rem;
    font-weight: 700;
    line-height: 1.35;
}

.lp-flow__fact-copy {
    color: var(--ic-muted);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
}

/* ---- Step 2: stage radio group ---- */
.lp-flow__subtoggle {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 0.5rem;
    margin: 0 0 1rem;
}

@media (min-width: 640px) {
    .lp-flow__subtoggle {
        grid-template-columns: repeat(3, minmax(0, 1fr));
    }
}

.lp-flow__stage-btn {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
    min-height: 48px;
    padding: 0.55rem 0.7rem;
    border: 1px solid var(--ic-control-border);
    border-radius: 0.55rem;
    background: var(--ic-card-bg);
    color: var(--ic-text);
    font-family: inherit;
    font-size: 0.8125rem;
    font-weight: 600;
    line-height: 1.35;
    text-align: start;
    cursor: pointer;
    touch-action: manipulation;
    -webkit-appearance: none;
    appearance: none;
    transition: background-color 0.15s ease, border-color 0.15s ease,
        color 0.15s ease;
}

.lp-flow__stage-btn:hover {
    border-color: var(--ic-blue);
}

.lp-flow__stage-btn[aria-checked="true"] {
    border-color: var(--ic-blue);
    background: rgba(79, 70, 229, 0.08);
}

[data-bs-theme="dark"] .lp-flow__stage-btn[aria-checked="true"] {
    border-color: #a5b4fc;
    background: rgba(99, 102, 241, 0.2);
}

.lp-flow__stage-btn:focus-visible {
    outline: 3px solid var(--ic-focus);
    outline-offset: 2px;
}

.lp-flow__stage-btn-label {
    color: var(--ic-heading);
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.05em;
    line-height: 1.3;
    text-transform: uppercase;
}

.lp-flow__stage-btn-copy {
    color: var(--ic-muted);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.4;
}

/* ---- Step 2: mail preview ---- */
.lp-flow__stage-view {
    margin: 0 0 1rem;
}

.lp-flow__mail {
    padding: 1rem;
    border: 1px solid var(--ic-card-border);
    border-radius: 0.65rem;
    background: var(--ic-card-bg);
}

.lp-flow__mail[hidden] {
    display: none;
}

.lp-flow__mail-head {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    margin: 0 0 0.85rem;
}

.lp-flow__mail-tag {
    align-self: flex-start;
    padding: 0.2rem 0.5rem;
    border: 1px solid rgba(79, 70, 229, 0.35);
    border-radius: 999px;
    background: rgba(79, 70, 229, 0.08);
    color: var(--ic-blue-dark);
    font-size: 0.72rem;
    font-weight: 700;
    line-height: 1.35;
}

.lp-flow__mail-tag--amber {
    border-color: rgba(180, 83, 9, 0.4);
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
}

.lp-flow__mail-tag--rose {
    border-color: rgba(190, 18, 60, 0.4);
    background: rgba(225, 29, 72, 0.1);
    color: #9f1239;
}

[data-bs-theme="dark"] .lp-flow__mail-tag {
    border-color: rgba(165, 180, 252, 0.4);
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
}

[data-bs-theme="dark"] .lp-flow__mail-tag--amber {
    border-color: rgba(251, 191, 36, 0.4);
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d;
}

[data-bs-theme="dark"] .lp-flow__mail-tag--rose {
    border-color: rgba(251, 113, 133, 0.4);
    background: rgba(244, 63, 94, 0.16);
    color: #fda4af;
}

.lp-flow__mail-meta {
    color: var(--ic-muted);
    font-size: 0.78rem;
    font-weight: 400;
    line-height: 1.45;
    overflow-wrap: anywhere;
}

.lp-flow__mail-alert {
    margin: 0 0 0.75rem;
    padding: 0.6rem 0.7rem;
    border-inline-start: 4px solid currentColor;
    border-radius: 0.35rem;
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

.lp-flow__mail-alert--amber {
    background: rgba(245, 158, 11, 0.12);
    color: #92400e;
}

.lp-flow__mail-alert--rose {
    background: rgba(225, 29, 72, 0.09);
    color: #9f1239;
}

[data-bs-theme="dark"] .lp-flow__mail-alert--amber {
    background: rgba(245, 158, 11, 0.14);
    color: #fcd34d;
}

[data-bs-theme="dark"] .lp-flow__mail-alert--rose {
    background: rgba(244, 63, 94, 0.14);
    color: #fda4af;
}

.lp-flow__mail-greet,
.lp-flow__mail-body,
.lp-flow__mail-sign {
    margin: 0 0 0.7rem;
    color: var(--ic-text);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
}

.lp-flow__mail-sign {
    margin-bottom: 0;
    color: var(--ic-muted);
}

/* ---- Calm notice (dispute pause) ---- */
.lp-flow__notice {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
    padding: 0.85rem 0.9rem;
    border: 1px solid #16a34a;
    border-radius: 0.55rem;
    background: rgba(22, 163, 74, 0.08);
}

.lp-flow__notice i {
    flex: 0 0 auto;
    margin-top: 0.1rem;
    color: #166534;
    font-size: 1rem;
    line-height: 1.4;
}

.lp-flow__notice p {
    margin: 0;
    color: var(--ic-text);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.55;
}

.lp-flow__notice strong {
    color: var(--ic-heading);
    font-weight: 700;
}

[data-bs-theme="dark"] .lp-flow__notice {
    border-color: #4ade80;
    background: rgba(34, 197, 94, 0.12);
}

[data-bs-theme="dark"] .lp-flow__notice i {
    color: #86efac;
}

/* ---- Step 3: payment card ---- */
.lp-flow__pay-total {
    margin: 0 0 1rem;
    color: var(--ic-heading);
    font-size: 2rem;
    font-weight: 800;
    letter-spacing: -0.03em;
    line-height: 1.05;
    font-variant-numeric: tabular-nums;
}

/* A non-interactive rendering of the portal's primary action. It is a
   <p>, not a <button>: it previews the checkout, and a real button here
   would look pressable and do nothing. */
.lp-flow__pay-cta-demo {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    min-height: 44px;
    margin: 1rem 0 0.6rem;
    padding: 0.6rem 1rem;
    border-radius: 0.5rem;
    background: var(--ic-blue);
    color: #ffffff;
    font-size: 0.9rem;
    font-weight: 700;
    line-height: 1.3;
    text-align: center;
    font-variant-numeric: tabular-nums;
}

.lp-flow__wallets {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-flow__wallets li {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    padding: 0.25rem 0.55rem;
    border: 1px solid var(--ic-card-border);
    border-radius: 999px;
    background: var(--ic-surface-inset);
    color: var(--ic-muted);
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 1.35;
}

.lp-flow__mini-title {
    margin: 0 0 0.5rem;
    color: var(--ic-heading);
    font-size: 1rem;
    font-weight: 700;
    line-height: 1.35;
}

.lp-flow__body {
    margin: 0 0 0.9rem;
    color: var(--ic-muted);
    font-size: 0.9375rem;
    font-weight: 400;
    line-height: 1.6;
}

.lp-flow__checks {
    display: grid;
    gap: 0.5rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-flow__checks li {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: var(--ic-text);
    font-size: 0.875rem;
    font-weight: 400;
    line-height: 1.5;
}

.lp-flow__checks i {
    flex: 0 0 auto;
    margin-top: 0.15rem;
    color: var(--ic-green);
}

[data-bs-theme="dark"] .lp-flow__checks i {
    color: #4ade80;
}

/* ---- Step 4: artifacts + pleading ---- */
.lp-flow__artifacts {
    display: grid;
    gap: 0.75rem;
    margin: 0;
    padding: 0;
    list-style: none;
}

.lp-flow__artifact {
    display: flex;
    align-items: flex-start;
    gap: 0.65rem;
}

.lp-flow__artifact-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 34px;
    width: 34px;
    height: 34px;
    border: 1px solid var(--ic-card-border);
    border-radius: 0.45rem;
    background: var(--ic-surface-inset);
    color: var(--ic-blue-dark);
    font-size: 0.95rem;
    line-height: 1;
}

[data-bs-theme="dark"] .lp-flow__artifact-icon {
    color: #c7d2fe;
}

.lp-flow__artifact-text {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    min-width: 0;
}

.lp-flow__artifact-name {
    color: var(--ic-heading);
    font-size: 0.875rem;
    font-weight: 700;
    line-height: 1.4;
}

.lp-flow__artifact-copy {
    color: var(--ic-muted);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
}

/* Pleading text: monospaced so the character/line budget reads as a form
   field the claimant will paste, not as marketing prose. */
.lp-flow__pleading {
    margin: 0 0 0.7rem;
    color: var(--ic-text);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.6;
    overflow-wrap: anywhere;
}

.lp-flow__pleading:last-of-type {
    margin-bottom: 0;
}

/* ---- Conversion + trust strip ---- */
.lp-flow__footer {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 0.85rem;
    margin-top: 1.1rem;
    padding-top: 1.1rem;
    border-top: 1px solid var(--ic-card-border);
}

@media (min-width: 576px) {
    .lp-flow__footer {
        flex-direction: row;
        align-items: center;
        justify-content: space-between;
        gap: 1.25rem;
    }
}

.lp-flow__trust {
    margin: 0;
    color: var(--ic-muted);
    font-size: 0.8125rem;
    font-weight: 400;
    line-height: 1.5;
}

/* The CTA inherits Bootstrap's primary pairing, which promotions.css already
   re-points at --event-cta-bg / --event-cta-fg per season. No colour is pinned
   here: a hard-coded white label is exactly what made Black Friday's
   near-white button unreadable. Only geometry and the focus ring are set. */
.lp-flow__cta {
    min-height: 44px;
    padding-inline: 1.5rem;
    font-weight: 700;
}

@media (max-width: 575.98px) {
    .lp-flow__cta {
        width: 100%;
    }
}

.lp-flow__cta:focus-visible {
    outline: 3px solid var(--ic-focus);
    outline-offset: 3px;
}

@media (max-width: 767.98px) {
    .lp-flow__frame {
        padding: 0.9rem;
    }

    .lp-flow__panel {
        padding: 1rem;
    }
}

@media (prefers-reduced-motion: reduce) {
    .lp-flow__tab,
    .lp-flow__stage-btn {
        transition: none;
    }
}

/* Accounting-sync timeline events (Xero import + statutory charges). */
.tl-dot.tl-xero_imported { background-color: #0891b2; }
.tl-dot.tl-interest_accrued { background-color: #9333ea; }
.tl-dot.tl-xero_paid { background-color: #059669; }
.tl-dot.tl-xero_voided { background-color: #64748b; }

/* Outbound Xero payment write-back: synced is emerald, skipped/failed amber. */
.tl-dot.tl-xero_payment_synced { background-color: #059669; }
.tl-dot.tl-xero_payment_sync_failed,
.tl-dot.tl-xero_payment_sync_skipped { background-color: #d97706; }

/* Inbound Xero conflict on a locally settled invoice (Needs Review). */
.tl-dot.tl-xero_sync_conflict { background-color: #d97706; }

/* Activity timeline: debtor contact updated */
.tl-dot.tl-debtor_updated { background-color: #6366f1; }
