/* ============================================================
   FundingBot.ai — Global Design System
   Single source of truth. No duplicates. No conflicts.
   2026-04-11 — full architecture rebuild
   ============================================================ */

/* ── CSS VARIABLES ─────────────────────────────────────────── */
:root {
  --primary:       #6366f1;
  --primary-dark:  #4f46e5;
  --accent:        #8b5cf6;
  --bg:            #f0f2f8;
  --card-bg:       #ffffff;
  --card-border:   #e5e7eb;
  --text:          #111827;
  --text-muted:    #6b7280;
  --sidebar-w:     240px;
  --topbar-h:      58px;
  --radius-card:   14px;
  --radius-btn:    9px;
  --shadow-card:   0 1px 4px rgba(0,0,0,.07), 0 4px 16px rgba(0,0,0,.04);
  --shadow-hover:  0 6px 24px rgba(99,102,241,.18), 0 2px 8px rgba(0,0,0,.06);
}

/* ── RESET / BASE ───────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { font-family: 'Inter', system-ui, -apple-system, sans-serif; -webkit-font-smoothing: antialiased; }
body { background: var(--bg); color: var(--text); font-family: 'Inter', system-ui, -apple-system, sans-serif; min-height: 100vh; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button { font-family: inherit; }

/* ── SCROLLBAR ──────────────────────────────────────────────── */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: rgba(99,102,241,.22); border-radius: 99px; }
::-webkit-scrollbar-thumb:hover { background: rgba(99,102,241,.4); }
::selection { background: rgba(99,102,241,.18); color: #111827; }

/* ── FOCUS RING ─────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }

/* ============================================================
   APP SHELL — SIDEBAR + CONTENT LAYOUT
   ============================================================ */

/* Sidebar always occupies the left; .sb-content fills the rest */
body.sb-layout { overflow-x: hidden; }

/* Hide topbar on desktop when logged-in */
@media (min-width: 901px) {
  body.sb-layout .cw-topbar { display: none !important; }
  body.sb-layout .sb-content { margin-left: var(--sidebar-w); }
}

/* Mobile: force topbar fixed so iOS sticky bug (overflow-x:hidden breaks position:sticky)
   doesn't cause the nav bar to scroll away on long pages like snapshot */
@media (max-width: 900px) {
  body.sb-layout .cw-topbar {
    position: fixed !important;
    top: 0; left: 0; right: 0;
  }
  body.sb-layout .sb-content {
    padding-top: var(--topbar-h);
  }
}

.sb-content { min-height: 100vh; display: flex; flex-direction: column; }

/* ── PREMIUM DARK SIDEBAR ───────────────────────────────────── */
#sideMenu {
  position: fixed;
  top: 0; left: 0;
  width: var(--sidebar-w);
  height: 100dvh;
  background: linear-gradient(180deg, #0d1225 0%, #101729 60%, #0d1220 100%);
  border-right: 1px solid rgba(99,102,241,.18);
  box-shadow: 3px 0 32px rgba(0,0,0,.45);
  z-index: 200;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(99,102,241,.25) transparent;
  /* Mobile: hidden by default */
  transform: translateX(-100%);
  transition: transform .28s cubic-bezier(.4,0,.2,1);
}
#sideMenu.open { transform: translateX(0); box-shadow: 4px 0 40px rgba(0,0,0,.55); }

/* Always visible on desktop for logged-in */
@media (min-width: 901px) {
  body.sb-layout #sideMenu { transform: translateX(0) !important; }
  .sm-close { display: none !important; }
}

/* Mobile overlay backdrop */
#sideMenuBackdrop {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,.55);
  z-index: 199;
  backdrop-filter: blur(2px); -webkit-backdrop-filter: blur(2px);
}
#sideMenuBackdrop.open { display: block; }

/* Sidebar header */
.sm-header {
  padding: 1.2rem 1.1rem .85rem;
  border-bottom: 1px solid rgba(255,255,255,.07);
  display: flex; align-items: center; justify-content: space-between;
  flex-shrink: 0;
}
.sm-logo {
  font-size: 1.05rem; font-weight: 900; color: #e2e8f0;
  letter-spacing: -.02em;
}
.sm-logo span { color: #818cf8; }
.sm-close {
  width: 28px; height: 28px; border-radius: 7px;
  background: rgba(255,255,255,.07); border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  color: #94a3b8; flex-shrink: 0; transition: background .15s, color .15s;
}
.sm-close:hover { background: rgba(255,255,255,.14); color: #e2e8f0; }

/* Sidebar user block */
.sm-user {
  padding: .85rem 1.1rem .6rem;
  border-bottom: 1px solid rgba(255,255,255,.06);
  flex-shrink: 0;
}
.sm-user-email {
  font-size: .82rem; font-weight: 700; color: #cbd5e1;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  margin-bottom: .3rem;
}
.sm-user-tier { display: flex; align-items: center; gap: .4rem; }
.sm-tier-badge {
  padding: .14rem .6rem; border-radius: 999px;
  font-weight: 800; text-transform: uppercase; font-size: .63rem;
  background: rgba(255,255,255,.1); color: #94a3b8;
  border: 1px solid rgba(255,255,255,.12);
}
.sm-tier-pro     { background: rgba(99,102,241,.35); color: #a5b4fc; border-color: rgba(99,102,241,.5); }
.sm-tier-premium { background: rgba(139,92,246,.35); color: #c4b5fd; border-color: rgba(139,92,246,.5); }

/* Sidebar nav */
.sm-nav {
  flex: 0 0 auto;
  display: flex; flex-direction: column;
  overflow-y: visible; padding-bottom: .5rem;
}
.sm-section-label {
  font-size: .63rem; font-weight: 800; color: #475569;
  text-transform: uppercase; letter-spacing: .1em;
  padding: 1rem 1.1rem .35rem;
}
.sm-item {
  display: flex; align-items: center; gap: .65rem;
  padding: .62rem 1.1rem;
  font-size: .88rem; font-weight: 600; color: #94a3b8;
  text-decoration: none;
  border-left: 3px solid transparent;
  transition: background .14s, color .14s, border-color .14s;
  user-select: none;
}
.sm-item svg { flex-shrink: 0; opacity: .7; transition: opacity .14s; }
.sm-item:hover {
  background: rgba(99,102,241,.12);
  color: #c7d2fe;
  border-left-color: rgba(99,102,241,.4);
}
.sm-item:hover svg { opacity: 1; }
.sm-item.active {
  background: rgba(99,102,241,.18);
  color: #a5b4fc;
  border-left-color: #6366f1;
  font-weight: 700;
}
.sm-item.active svg { opacity: 1; }
.sm-lock {
  background: rgba(99,102,241,.2); color: #818cf8;
  font-size: .6rem; font-weight: 800; border-radius: 5px;
  padding: .1rem .45rem; margin-left: auto; flex-shrink: 0;
}

/* Sidebar upgrade banner */
.sm-upgrade {
  display: block; margin: .85rem 1.1rem 0;
  padding: .65rem 0;
  background: linear-gradient(90deg, #6366f1, #8b5cf6);
  color: #fff; font-weight: 800; text-align: center;
  border-radius: 10px; text-decoration: none; font-size: .88rem;
  box-shadow: 0 2px 12px rgba(99,102,241,.35);
  transition: background .15s, box-shadow .15s, transform .15s;
}
.sm-upgrade:hover {
  background: linear-gradient(90deg, #4f46e5, #7c3aed);
  box-shadow: 0 4px 20px rgba(99,102,241,.45);
  transform: translateY(-1px);
}

/* Sidebar footer / sign out */
.sm-footer {
  margin-top: 0; padding: 1rem 1.1rem;
  border-top: 1px solid rgba(255,255,255,.07); flex-shrink: 0;
  position: sticky; bottom: 0;
  background: #0d1220;
}
.sm-logout {
  display: flex; align-items: center; gap: .5rem;
  color: #f87171; font-weight: 700; font-size: .88rem;
  text-decoration: none; padding: .4rem .2rem;
  transition: color .15s;
}
.sm-logout:hover { color: #fca5a5; }

/* ============================================================
   TOPBAR (mobile + logged-out)
   ============================================================ */
.cw-topbar {
  background: #fff;
  border-bottom: 1.5px solid #e5e7eb;
  box-shadow: 0 1px 8px rgba(0,0,0,.06);
  position: sticky; top: 0; z-index: 50;
}
.cw-topbar-inner {
  max-width: 1060px; margin: 0 auto;
  padding: 0 1.25rem;
  display: flex; align-items: center; justify-content: space-between;
  height: var(--topbar-h);
}
.cw-logo { display: flex; align-items: center; gap: .75rem; text-decoration: none; }
.cw-logo img { height: 40px; max-width: 180px; object-fit: contain; transition: transform .2s; }
.cw-logo img:hover { transform: scale(1.03); }
.cw-logo-text { font-size: 1.25rem; font-weight: 900; color: var(--primary); letter-spacing: -.02em; }

/* Topbar right nav (logged-out desktop) */
.nav-links-desktop {
  display: flex; align-items: center; gap: .6rem;
}
@media (max-width: 640px) {
  .nav-links-desktop { display: none; }
}

/* Mobile hamburger */
.nav-mobile-btn {
  background: none; border: none; color: #64748b;
  cursor: pointer; padding: .75rem; border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  min-width: 44px; min-height: 44px;
  transition: background .15s, color .15s;
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}
.nav-mobile-btn:hover { background: #f1f3f9; color: var(--primary); }
.nav-mobile-btn:active { background: #e8ebf7; }
@media (min-width: 641px) {
  body:not(.sb-layout) .nav-mobile-btn { display: none; }
}

/* Tab row */
.cw-tabs { background: #fff; border-bottom: 1.5px solid #e5e7eb; }
.cw-tabs-inner {
  max-width: 960px; margin: 0 auto; padding: 0 1.1rem;
  display: flex; gap: 0; overflow-x: auto; scrollbar-width: none;
}
.cw-tabs-inner::-webkit-scrollbar { display: none; }
.cw-tab {
  font-size: .82rem; font-weight: 600; color: #6b7280;
  padding: .62rem .9rem; white-space: nowrap; text-decoration: none;
  border-bottom: 2.5px solid transparent;
  transition: color .15s, border-color .15s, background .15s;
  border-radius: 6px 6px 0 0;
}
.cw-tab:hover { color: var(--primary); background: rgba(99,102,241,.04); }
.cw-tab.active { color: var(--primary); border-bottom-color: var(--primary); font-weight: 700; }

/* ============================================================
   PAGE CONTENT WRAPPER
   ============================================================ */
.cw-main {
  max-width: 1060px; margin: 0 auto;
  padding: 1.5rem 1.25rem 3.5rem;
  flex: 1 1 auto;
}

/* ============================================================
   CARDS
   ============================================================ */
.cw-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  transition: box-shadow .2s, border-color .2s, transform .18s;
}
.cw-card:not(.no-lift):hover {
  box-shadow: var(--shadow-hover);
  border-color: #c7d2fe;
  transform: translateY(-1px);
}
.dashboard-card {
  background: var(--card-bg);
  border-radius: var(--radius-card);
  border: 1px solid var(--card-border);
  box-shadow: var(--shadow-card);
  padding: 1.4rem 1.2rem;
  display: flex; flex-direction: column;
  transition: box-shadow .18s, border-color .18s, transform .18s;
}
.dashboard-card:hover {
  box-shadow: var(--shadow-hover);
  border-color: #c7d2fe;
  transform: translateY(-1px);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; font-weight: 700; border-radius: var(--radius-btn);
  padding: .55rem 1.3rem; font-size: .88rem;
  display: inline-flex; align-items: center; gap: .4rem;
  text-decoration: none;
  box-shadow: 0 3px 12px rgba(79,70,229,.28);
  border: none; cursor: pointer;
  transition: box-shadow .18s, transform .15s, background .18s;
  white-space: nowrap;
}
.btn-primary:hover { box-shadow: 0 6px 22px rgba(79,70,229,.42); transform: translateY(-1px); background: linear-gradient(135deg, #4338ca, #6d28d9); }
.btn-primary:active { transform: scale(.97); box-shadow: 0 2px 8px rgba(79,70,229,.25); }

.btn-ghost {
  background: #f1f3f9; color: #374151; font-weight: 600;
  border-radius: var(--radius-btn); padding: .5rem 1rem; font-size: .86rem;
  display: inline-flex; align-items: center; gap: .4rem;
  text-decoration: none; border: 1px solid #e5e7eb; cursor: pointer;
  transition: background .15s, color .15s, border-color .15s, box-shadow .15s;
  white-space: nowrap;
}
.btn-ghost:hover { background: #ede9fe; color: var(--primary); border-color: #c7d2fe; box-shadow: 0 2px 8px rgba(99,102,241,.1); }
.btn-ghost.active-nav { background: #ede9fe; color: var(--primary); border-color: #c4b5fd; }
.btn-ghost:active { transform: scale(.97); }

.btn-danger {
  background: #fef2f2; color: #dc2626; font-weight: 700;
  border-radius: var(--radius-btn); padding: .45rem .9rem; font-size: .82rem;
  border: 1px solid #fca5a5; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: .35rem;
  transition: background .15s, border-color .15s;
}
.btn-danger:hover { background: #fee2e2; border-color: #f87171; }

/* ============================================================
   BADGES / PILLS
   ============================================================ */
.tag-good   { background: #dcfce7; color: #166534; }
.tag-warn   { background: #fef9c3; color: #854d0e; }
.tag-bad    { background: #fee2e2; color: #991b1b; }
.tag-purple { background: #ede9fe; color: #5b21b6; }
.tag-good, .tag-warn, .tag-bad, .tag-purple {
  border-radius: 999px; padding: .18rem .7rem;
  font-size: .68rem; font-weight: 700; display: inline-block;
}

/* ============================================================
   FORMS
   ============================================================ */
body { font-family: 'Inter', system-ui, -apple-system, sans-serif; }
label { display: block; font-size: .84rem; font-weight: 600; color: #374151; margin-bottom: .35rem; }
input, select, textarea {
  width: 100%; padding: .6rem .9rem;
  background: #f9fafb; border: 1.5px solid #d1d5db;
  border-radius: 9px; font-size: .93rem; color: #111827;
  outline: none; transition: border .18s, box-shadow .18s, background .18s;
  font-family: 'Inter', system-ui, sans-serif;
}
input:focus, select:focus, textarea:focus {
  border-color: #6366f1; background: #fff;
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
input[type="checkbox"], input[type="radio"] {
  width: auto; accent-color: var(--primary);
}

/* ============================================================
   TABLE
   ============================================================ */
table { width: 100%; border-collapse: collapse; }
th {
  text-align: left; padding: 10px 14px;
  font-size: .7rem; text-transform: uppercase; letter-spacing: .06em;
  color: #9ca3af; border-bottom: 1.5px solid #f0f0f5; font-weight: 700;
}
td {
  padding: 11px 14px; border-bottom: 1px solid #f3f4f6;
  font-size: .88rem; color: #374151; vertical-align: middle;
}
tr:last-child td { border-bottom: none; }
tr:hover td { background: #f7f8ff; }

/* ============================================================
   FLASH MESSAGES (legacy fallback — toasts are primary)
   ============================================================ */
.flash-error {
  background: #fef2f2; border: 1px solid #fca5a5; color: #991b1b;
  border-radius: 10px; padding: .75rem 1rem; margin-bottom: .75rem;
  font-size: .88rem; display: flex; align-items: center; gap: .5rem;
}
.flash-success {
  background: #f0fdf4; border: 1px solid #86efac; color: #166534;
  border-radius: 10px; padding: .75rem 1rem; margin-bottom: .75rem;
  font-size: .88rem; display: flex; align-items: center; gap: .5rem;
}

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast-container {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 99999;
  display: flex;
  flex-direction: column;
  gap: 10px;
  pointer-events: none;
}
.toast {
  pointer-events: all;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 280px;
  max-width: 380px;
  padding: 13px 14px 0;
  border-radius: 14px;
  box-shadow: 0 8px 32px rgba(0,0,0,.18), 0 1px 0 rgba(255,255,255,.06) inset;
  font-size: .84rem;
  font-weight: 600;
  line-height: 1.45;
  overflow: hidden;
  transform: translateX(120%);
  opacity: 0;
  transition: transform .32s cubic-bezier(.34,1.56,.64,1), opacity .22s ease;
  position: relative;
}
.toast.toast-in {
  transform: translateX(0);
  opacity: 1;
}
.toast.toast-out {
  transform: translateX(120%);
  opacity: 0;
  transition: transform .26s ease-in, opacity .2s ease-in;
}
.toast-success {
  background: #0f172a;
  border: 1px solid rgba(16,185,129,.35);
  color: #e2e8f0;
}
.toast-error {
  background: #0f172a;
  border: 1px solid rgba(239,68,68,.35);
  color: #e2e8f0;
}
.toast-icon {
  width: 20px; height: 20px;
  border-radius: 50%;
  display: grid; place-items: center;
  font-size: .75rem;
  flex-shrink: 0;
  margin-top: 1px;
}
.toast-success .toast-icon { background: rgba(16,185,129,.2); color: #34d399; }
.toast-error   .toast-icon { background: rgba(239,68,68,.2);  color: #f87171; }
.toast-body { flex: 1; padding-bottom: 12px; }
.toast-close {
  background: none; border: none; cursor: pointer;
  color: rgba(255,255,255,.35); font-size: 1rem; line-height: 1;
  padding: 0; flex-shrink: 0; margin-top: -1px;
  transition: color .15s;
}
.toast-close:hover { color: rgba(255,255,255,.7); }
.toast-progress-track {
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 3px;
  background: rgba(255,255,255,.07);
}
.toast-progress-bar {
  height: 100%;
  border-radius: 0 0 14px 14px;
  transition: width linear;
}
.toast-success .toast-progress-bar { background: #34d399; }
.toast-error   .toast-progress-bar { background: #f87171; }

/* ============================================================
   PROFILE DROPDOWN
   ============================================================ */
.profile-menu { position: relative; }
.profile-avatar {
  width: 34px; height: 34px; border-radius: 50%;
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: .75rem; font-weight: 800; color: #fff; cursor: pointer;
  border: 2px solid #c4b5fd; transition: border-color .2s, transform .15s;
  user-select: none;
}
.profile-avatar:hover { border-color: #4f46e5; transform: scale(1.05); }
.profile-dropdown {
  display: none; position: absolute; right: 0; top: calc(100% + .5rem);
  min-width: 190px; background: #fff; border: 1.5px solid #e5e7eb;
  border-radius: 12px; box-shadow: 0 12px 32px rgba(0,0,0,.12);
  z-index: 100; overflow: hidden;
}
.profile-menu.open .profile-dropdown { display: block; }
.profile-dropdown-header { padding: .875rem 1rem .65rem; border-bottom: 1px solid #f0f0f5; }
.profile-dropdown a, .profile-dropdown button {
  display: flex; align-items: center; gap: .6rem; width: 100%;
  padding: .6rem 1rem; font-size: .82rem; font-weight: 600;
  color: #374151; background: none; border: none; cursor: pointer;
  text-decoration: none; transition: background .15s; text-align: left;
  font-family: 'Inter', sans-serif;
}
.profile-dropdown a:hover, .profile-dropdown button:hover { background: #f1f3f9; color: var(--primary); }
.profile-dropdown .dd-logout { color: #dc2626; }
.profile-dropdown .dd-logout:hover { background: #fee2e2; color: #991b1b; }
.dd-icon { width: 14px; height: 14px; flex-shrink: 0; }

/* ============================================================
   GLOBAL FOOTER
   ============================================================ */
.site-footer {
  background: #fff; border-top: 1px solid #e5e7eb;
  padding: 1.25rem 1.5rem; text-align: center;
}
.site-footer-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: 1.25rem;
}
.site-footer a, .site-footer span { font-size: .72rem; color: #6b7280; text-decoration: none; }
.site-footer a:hover { color: var(--primary); }

/* ============================================================
   TOAST NOTIFICATIONS
   ============================================================ */
.toast {
  opacity: 0; transform: translateY(20px) scale(.98);
  transition: opacity .25s, transform .25s;
}
.toast.show { opacity: 1; transform: translateY(0) scale(1); }

/* ============================================================
   UTILITY CLASSES (flex / grid helpers Tailwind may not cover)
   ============================================================ */
.flex { display: flex; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.mb-1 { margin-bottom: .25rem; }
.block { display: block; }
.text-center { text-align: center; }
.font-bold { font-weight: 700; }
.text-sm { font-size: .875rem; }
.text-xs { font-size: .75rem; }
.text-gray-400 { color: #9ca3af; }
.text-gray-500 { color: #6b7280; }
.text-indigo-600 { color: #4f46e5; }
.truncate { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.w-full { width: 100%; }
.p-4 { padding: 1rem; }
.rounded-lg { border-radius: .5rem; }
.rounded-full { border-radius: 9999px; }
.border { border: 1px solid #e5e7eb; }
.shadow { box-shadow: 0 1px 3px rgba(0,0,0,.1), 0 1px 2px rgba(0,0,0,.06); }
.hidden { display: none; }

/* ============================================================
   LANDING PAGE STYLES (.lp-*)
   ============================================================ */
.lp-hero {
  background: linear-gradient(135deg, #0f172a 0%, #1e1b4b 100%);
  padding: 0;
  min-height: 560px;
  display: flex; align-items: center; justify-content: center;
}
.lp-inner {
  display: flex; flex-wrap: wrap; gap: 3.5rem;
  max-width: 1200px; margin: 0 auto;
  padding: 3.5rem 2rem 2.5rem; width: 100%;
  align-items: flex-start;
}
.lp-eyebrow {
  font-size: 1rem; font-weight: 700; color: #fbbf24;
  margin-bottom: 1rem; letter-spacing: .03em;
  display: flex; align-items: center; gap: .5rem;
}
.lp-h1 {
  font-size: 2.7rem; font-weight: 900; color: #fff;
  line-height: 1.12; margin-bottom: 1.1rem;
}
.lp-h1 span { color: #a5b4fc; }
.lp-sub { color: #cbd5e1; font-size: 1.1rem; margin-bottom: 1.4rem; max-width: 520px; }
.lp-bullets { margin-bottom: 1.2rem; }
.lp-bullet { display: flex; align-items: center; gap: .65rem; color: #e0e7ef; font-size: 1rem; margin-bottom: .25rem; }
.lp-bullet-dot { color: #34d399; font-size: 1.1rem; font-weight: 900; }
.lp-trust { display: flex; gap: .7rem; color: #a5b4fc; font-size: .93rem; font-weight: 700; }

/* Upload card on landing */
.lp-upload-card {
  background: #fff; border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,.18), 0 2px 12px rgba(99,102,241,.12);
  padding: 2.2rem 2rem; min-width: 340px; max-width: 380px; width: 100%;
  display: flex; flex-direction: column; align-items: stretch;
}
.lp-card-label { color: #6366f1; font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .45rem; }
.lp-card-title { font-size: 1.15rem; font-weight: 900; color: #111827; margin-bottom: 1rem; }
.lp-drop {
  background: #f4f6fb; border: 2px dashed #a5b4fc;
  border-radius: 1rem; padding: 2rem 1.25rem;
  text-align: center; cursor: pointer;
  transition: border-color .2s, background .2s;
  margin-bottom: 1rem;
}
.lp-drop:hover { border-color: #6366f1; background: #ede9fe; }
.lp-drop.selected { border-color: #34d399; background: #f0fdf4; border-style: solid; }
.lp-drop.dragover { border-color: #6366f1; background: #ede9fe; }
.lp-drop-icon { font-size: 2rem; margin-bottom: .4rem; display: block; }
.lp-drop-title { font-size: 1rem; font-weight: 800; color: #4f46e5; margin-bottom: .15rem; }
.lp-drop-sub { font-size: .9rem; color: #64748b; margin-bottom: .65rem; }
.lp-drop-btn {
  display: inline-block;
  background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff;
  font-weight: 700; border-radius: 8px; padding: .42rem 1rem;
  font-size: .93rem; box-shadow: 0 2px 8px rgba(99,102,241,.13);
  transition: background .15s; margin-bottom: .4rem;
}
.lp-drop-btn:hover { background: linear-gradient(135deg,#4f46e5,#6366f1); }
#lpFileName { color: #6366f1; font-size: .88rem; margin-top: .4rem; word-break: break-all; }
.lp-analyze-btn {
  background: linear-gradient(135deg,#6366f1,#8b5cf6); color: #fff;
  font-weight: 800; border-radius: 9px; font-size: 1rem; cursor: pointer;
  box-shadow: 0 3px 12px rgba(99,102,241,.25);
  transition: background .15s, box-shadow .15s, transform .15s;
  border: none;
}
.lp-analyze-btn:hover {
  background: linear-gradient(135deg,#4f46e5,#6366f1);
  box-shadow: 0 5px 20px rgba(99,102,241,.35); transform: translateY(-1px);
}
.lp-bureaus { color: #64748b; font-size: .82rem; margin-top: 1rem; text-align: center; }

/* Stats strip */
.lp-stats { background: #181926; padding: 2rem 0; }
.lp-stats-inner {
  max-width: 900px; margin: 0 auto;
  display: flex; gap: 2.5rem; justify-content: center; align-items: center;
  flex-wrap: wrap; padding: 0 1.5rem;
}
.lp-stat-num { font-size: 2rem; font-weight: 900; color: #a5b4fc; text-align: center; }
.lp-stat-label { color: #94a3b8; font-size: .88rem; font-weight: 700; text-align: center; }

/* How it works */
.lp-hiw { background: #fff; padding: 3.5rem 0 2.5rem; }
.lp-hiw-inner { max-width: 920px; margin: 0 auto; padding: 0 1.5rem; }
.lp-section-eyebrow { color: #6366f1; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .45rem; }
.lp-section-title { font-size: 1.45rem; font-weight: 900; color: #111827; margin-bottom: .6rem; }
.lp-section-sub { color: #6b7280; font-size: 1rem; margin-bottom: 2rem; }
.lp-steps { display: flex; gap: 2rem; justify-content: center; margin-bottom: 1.5rem; }
.lp-step {
  background: #f4f6fb; border-radius: 14px; padding: 1.5rem 1.1rem;
  flex: 1 1 0; min-width: 180px; max-width: 260px;
  display: flex; flex-direction: column; align-items: flex-start;
  position: relative; box-shadow: 0 2px 8px rgba(99,102,241,.07);
}
.lp-step-num { font-size: 1.25rem; font-weight: 900; color: #6366f1; margin-bottom: .45rem; }
.lp-step-title { font-size: 1rem; font-weight: 800; color: #111827; margin-bottom: .25rem; }
.lp-step-text { color: #6b7280; font-size: .93rem; line-height: 1.55; }
.lp-step-arrow { position: absolute; right: 1rem; bottom: 1rem; font-size: 1.4rem; color: #a5b4fc; font-weight: 900; }

/* Choice cards */
.lp-choice { background: #f4f6fb; padding: 3.5rem 0 2.5rem; }
.lp-choice-inner { max-width: 920px; margin: 0 auto; padding: 0 1.5rem; }
.lp-choice-cards { display: flex; gap: 2rem; margin-top: 2rem; flex-wrap: wrap; justify-content: center; }
.lp-choice-card {
  background: #fff; border-radius: 14px; box-shadow: 0 2px 8px rgba(99,102,241,.07);
  padding: 2rem 1.5rem; min-width: 260px; max-width: 340px; width: 100%;
  display: flex; flex-direction: column; align-items: flex-start;
  text-decoration: none; border: 2px solid transparent;
  transition: box-shadow .18s, transform .15s, border-color .18s;
}
.lp-choice-card:hover { box-shadow: 0 8px 32px rgba(99,102,241,.12); transform: translateY(-2px); border-color: #6366f1; }
.lp-cc-icon { font-size: 2rem; margin-bottom: .65rem; }
.lp-cc-label { color: #6366f1; font-size: .78rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; margin-bottom: .25rem; }
.lp-cc-title { font-size: 1.1rem; font-weight: 900; color: #111827; margin-bottom: .3rem; }
.lp-cc-desc { color: #6b7280; font-size: .93rem; margin-bottom: 1rem; line-height: 1.5; }
.lp-cc-cta { color: #6366f1; font-size: .93rem; font-weight: 700; }

/* Sample preview section */
.lp-preview { background: #fff; padding: 3.5rem 0 2.5rem; }
.lp-preview-inner { max-width: 920px; margin: 0 auto; padding: 0 1.5rem; }
.lp-preview-card {
  background: #f4f6fb; border-radius: 18px;
  box-shadow: 0 2px 8px rgba(99,102,241,.07);
  padding: 2rem; margin-bottom: 2rem;
  position: relative; overflow: hidden;
}
.lp-preview-content { margin-bottom: 1.25rem; }
.lp-preview-overlay {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  background: rgba(244,246,251,.88);
  backdrop-filter: blur(4px); -webkit-backdrop-filter: blur(4px);
  padding: 2rem; text-align: center;
  border-radius: 18px;
}
.lp-preview-overlay-title {
  font-size: 1.2rem; font-weight: 900; color: #111827; margin-bottom: .5rem;
}
.lp-preview-overlay-sub {
  font-size: .97rem; color: #6b7280; max-width: 380px; margin-bottom: 1.5rem;
}
.lp-preview-cta {
  background: linear-gradient(135deg, #4f46e5, #7c3aed); color: #fff;
  font-weight: 800; border-radius: 9px; padding: .65rem 1.75rem;
  font-size: 1rem; text-decoration: none;
  box-shadow: 0 3px 14px rgba(79,70,229,.3);
  transition: box-shadow .18s, transform .15s;
  display: inline-block;
}
.lp-preview-cta:hover { box-shadow: 0 6px 22px rgba(79,70,229,.42); transform: translateY(-1px); }

/* LP Footer (inside page, above layout footer) */
.lp-footer { background: #111827; padding: 1.75rem 1.5rem; }
.lp-footer-text { max-width: 900px; margin: 0 auto; color: #94a3b8; font-size: .82rem; text-align: center; }
.lp-footer-text a { color: #818cf8; text-decoration: none; }
.lp-footer-text a:hover { color: #a5b4fc; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .lp-inner { flex-direction: column; align-items: stretch; gap: 2rem; padding: 2.5rem 1.25rem 1.5rem; }
  .lp-upload-card { min-width: 0; max-width: 100%; }
  .lp-steps { flex-direction: column; gap: 1rem; }
  .lp-choice-cards { flex-direction: column; gap: 1.25rem; }
  .lp-step { max-width: 100%; }
}

@media (max-width: 640px) {
  .lp-h1 { font-size: 2rem; }
  .lp-inner { padding: 1.75rem .85rem 1rem; }
  .lp-upload-card { padding: 1.5rem 1rem; }
  .lp-preview-card { padding: 1.25rem .85rem; }
  .cw-main { padding: 1rem .85rem 2.5rem; }
}

@media (max-width: 900px) {
  body.sb-layout .sb-content { margin-left: 0; }
}

/* ============================================================
   AUTH PAGES (login / register)
   ============================================================ */
.auth-outer {
  min-height: calc(100vh - var(--topbar-h));
  display: flex; align-items: center; justify-content: center;
  padding: 2.5rem 1.25rem;
  background: linear-gradient(150deg, #f0f2f8 0%, #e9ecf8 100%);
}
.auth-card {
  background: #fff; border-radius: 18px;
  box-shadow: 0 4px 32px rgba(79,70,229,.10), 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid #e5e7eb;
  padding: 2.5rem 2.25rem;
  width: 100%; max-width: 420px;
}
.auth-logo {
  display: flex; align-items: center; justify-content: center; gap: .5rem;
  margin-bottom: 1.75rem;
}
.auth-logo img { height: 36px; object-fit: contain; }
.auth-logo-text {
  font-size: 1.1rem; font-weight: 900; letter-spacing: -.02em;
  color: #4f46e5; text-align: center; margin-bottom: 1.5rem;
}
.auth-title {
  font-size: 1.55rem; font-weight: 900; color: #111827;
  margin-bottom: .4rem; line-height: 1.2;
}
.auth-sub {
  font-size: .88rem; color: #6b7280; margin-bottom: 1.75rem; line-height: 1.6;
}
.auth-form .form-group { margin-bottom: 1.1rem; }
.auth-form label { font-size: .84rem; font-weight: 700; color: #374151; margin-bottom: .35rem; display: block; }
.auth-form input {
  width: 100%; padding: .65rem .95rem;
  background: #f9fafb; border: 1.5px solid #d1d5db;
  border-radius: 9px; font-size: .95rem; color: #111827;
  outline: none; font-family: 'Inter', system-ui, sans-serif;
  transition: border-color .18s, box-shadow .18s, background .18s;
}
.auth-form input:focus {
  border-color: #6366f1; background: #fff;
  box-shadow: 0 0 0 3px rgba(99,102,241,.12);
}
.auth-submit {
  width: 100%; padding: .8rem;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; font-weight: 800; font-size: .98rem;
  border: none; border-radius: 10px; cursor: pointer;
  box-shadow: 0 3px 12px rgba(79,70,229,.28);
  transition: box-shadow .18s, transform .15s, background .18s;
  font-family: 'Inter', sans-serif; margin-top: .5rem;
}
.auth-submit:hover { box-shadow: 0 6px 22px rgba(79,70,229,.42); transform: translateY(-1px); background: linear-gradient(135deg,#4338ca,#6d28d9); }
.auth-footer-link {
  text-align: center; margin-top: 1.25rem;
  font-size: .88rem; color: #6b7280;
}
.auth-footer-link a { color: #4f46e5; font-weight: 700; text-decoration: none; }
.auth-footer-link a:hover { text-decoration: underline; }

/* ============================================================
   PRICING PAGE
   ============================================================ */
.pricing-hero {
  text-align: center;
  padding: 3.5rem 1rem 2.5rem;
}
.pricing-badge {
  display: inline-block;
  font-size: .72rem; font-weight: 800; text-transform: uppercase;
  letter-spacing: .12em; color: #10b981;
  background: rgba(16,185,129,.1); border: 1px solid rgba(16,185,129,.25);
  border-radius: 999px; padding: .3rem 1rem;
  margin-bottom: 1.1rem;
}
.pricing-trust-bar {
  display: flex; align-items: center; justify-content: center;
  flex-wrap: wrap; gap: .5rem;
  font-size: .78rem; font-weight: 700; color: #6b7280;
  background: #f8fafc; border: 1px solid #e5e7eb;
  border-radius: 999px; padding: .55rem 1.25rem;
  max-width: 700px; margin: 0 auto;
}
.pricing-trust-bar strong { color: #374151; }
.pricing-trust-bar .dot { color: #d1d5db; }

/* Plan toggle */
.plan-toggle-wrap {
  display: flex; align-items: center; justify-content: center;
  gap: .5rem; margin-bottom: 2rem;
  background: #f1f3f9; border-radius: 999px;
  padding: .3rem; max-width: 340px; margin: 0 auto 2rem;
}
.plan-toggle-btn {
  flex: 1; padding: .5rem 1.25rem;
  font-size: .88rem; font-weight: 700; color: #6b7280;
  background: none; border: none; border-radius: 999px;
  cursor: pointer; transition: background .18s, color .18s, box-shadow .18s;
  position: relative; font-family: 'Inter', sans-serif;
}
.plan-toggle-btn.active {
  background: #fff; color: #4f46e5;
  box-shadow: 0 2px 8px rgba(79,70,229,.12);
}
.plan-toggle-tag {
  display: inline-block; font-size: .6rem; font-weight: 800;
  background: linear-gradient(90deg,#6366f1,#8b5cf6); color: #fff;
  border-radius: 4px; padding: .1rem .4rem; margin-left: .35rem;
  vertical-align: middle; letter-spacing: .04em;
}

/* Blocker banner */
.blocker-banner {
  background: linear-gradient(135deg,rgba(79,70,229,.06),rgba(139,92,246,.04));
  border: 1.5px solid rgba(99,102,241,.18);
  border-radius: 14px; padding: 1.25rem 1.5rem;
  margin-bottom: 2rem;
  font-size: .9rem; color: #374151; line-height: 1.65;
}

/* Plan grid */
.plan-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(230px, 1fr));
  gap: 1.25rem; margin-bottom: 2.5rem;
}
.plan-card {
  background: #fff; border-radius: 18px;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.03);
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column;
  position: relative; transition: box-shadow .2s, transform .18s, border-color .2s;
}
.plan-card:hover {
  box-shadow: 0 8px 32px rgba(79,70,229,.12);
  transform: translateY(-2px); border-color: #c7d2fe;
}
.plan-card.popular {
  border-color: #6366f1;
  box-shadow: 0 4px 24px rgba(99,102,241,.18);
}
.popular-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  font-size: .65rem; font-weight: 800; letter-spacing: .08em;
  background: linear-gradient(90deg,#6366f1,#8b5cf6); color: #fff;
  padding: .25rem 1rem; border-radius: 0 0 8px 8px;
}
.plan-tier {
  font-size: .82rem; font-weight: 800; color: #6366f1;
  text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem;
}
.plan-price {
  font-size: 2.4rem; font-weight: 900; color: #111827; line-height: 1;
  margin-bottom: .2rem;
}
.plan-cycle { font-size: .82rem; color: #6b7280; font-weight: 600; margin-bottom: .35rem; }
.plan-onetime { font-size: .78rem; color: #9ca3af; margin-bottom: .6rem; }
.plan-tagline {
  font-size: .85rem; color: #374151; line-height: 1.55;
  margin-bottom: .9rem; flex: 1;
}
.case-note {
  font-size: .75rem; font-weight: 700; color: #6366f1;
  background: rgba(99,102,241,.07); border-radius: 7px;
  padding: .3rem .7rem; margin-bottom: .9rem;
}
.plan-features {
  list-style: none; padding: 0; margin: 0 0 1.25rem;
  display: flex; flex-direction: column; gap: .45rem;
}
.plan-features li {
  font-size: .83rem; color: #374151;
  display: flex; align-items: flex-start; gap: .45rem;
}
.plan-features li.off { color: #9ca3af; }
.plan-features .chk {
  font-size: .75rem; font-weight: 900; flex-shrink: 0;
  margin-top: .05rem;
}
.plan-features li.on .chk { color: #10b981; }
.plan-features li.off .chk { color: #d1d5db; }

/* Plan CTAs */
.plan-cta {
  display: block; text-align: center; padding: .7rem 1rem;
  border-radius: 10px; font-weight: 800; font-size: .9rem;
  text-decoration: none; transition: box-shadow .18s, transform .15s, background .18s;
  margin-top: auto;
}
.plan-cta:hover { transform: translateY(-1px); }
.cta-free    { background: #f1f3f9; color: #4f46e5; border: 1.5px solid #c7d2fe; }
.cta-free:hover { background: #ede9fe; box-shadow: 0 4px 14px rgba(99,102,241,.14); }
.cta-starter { background: rgba(99,102,241,.1); color: #4f46e5; border: 1.5px solid rgba(99,102,241,.25); }
.cta-starter:hover { background: rgba(99,102,241,.18); box-shadow: 0 4px 14px rgba(99,102,241,.18); }
.cta-core    { background: linear-gradient(135deg,#4f46e5,#7c3aed); color: #fff; box-shadow: 0 3px 12px rgba(79,70,229,.3); }
.cta-core:hover { background: linear-gradient(135deg,#4338ca,#6d28d9); box-shadow: 0 6px 20px rgba(79,70,229,.42); }
.cta-premium { background: linear-gradient(135deg,#7c3aed,#6d28d9); color: #fff; box-shadow: 0 3px 12px rgba(124,58,237,.3); }
.cta-premium:hover { background: linear-gradient(135deg,#6d28d9,#5b21b6); box-shadow: 0 6px 20px rgba(124,58,237,.42); }

/* Agency section */
.agency-perks {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
  gap: 1rem; margin-bottom: 2rem;
}
.perk-box {
  background: #fff; border-radius: 12px; border: 1px solid #e5e7eb;
  padding: 1rem; text-align: center;
}
.perk-icon { font-size: 1.5rem; margin-bottom: .35rem; }
.perk-label { font-size: .72rem; font-weight: 700; color: #6b7280; text-transform: uppercase; letter-spacing: .05em; margin-bottom: .15rem; }
.perk-val { font-size: .82rem; font-weight: 800; color: #111827; }

.agency-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1.25rem; margin-bottom: 2.5rem;
}
.agency-card {
  background: #fff; border-radius: 18px;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,.06), 0 4px 16px rgba(0,0,0,.03);
  padding: 1.75rem 1.5rem;
  display: flex; flex-direction: column; position: relative;
  transition: box-shadow .2s, transform .18s, border-color .2s;
}
.agency-card:hover { box-shadow: 0 8px 32px rgba(79,70,229,.12); transform: translateY(-2px); border-color: #c7d2fe; }
.agency-card.featured { border-color: #6366f1; box-shadow: 0 4px 24px rgba(99,102,241,.18); }
.agency-badge {
  position: absolute; top: -1px; left: 50%; transform: translateX(-50%);
  font-size: .65rem; font-weight: 800; letter-spacing: .08em;
  background: linear-gradient(90deg,#6366f1,#8b5cf6); color: #fff;
  padding: .25rem 1rem; border-radius: 0 0 8px 8px;
}
.agency-tier { font-size: .82rem; font-weight: 800; color: #6366f1; text-transform: uppercase; letter-spacing: .06em; margin-bottom: .4rem; }
.agency-price { font-size: 2.4rem; font-weight: 900; color: #111827; line-height: 1; margin-bottom: .2rem; }
.agency-cycle { font-size: .82rem; color: #6b7280; font-weight: 600; margin-bottom: .6rem; }
.agency-tagline { font-size: .85rem; color: #374151; line-height: 1.55; margin-bottom: .9rem; flex: 1; }
.agency-features {
  list-style: none; padding: 0; margin: 0 0 1.25rem;
  display: flex; flex-direction: column; gap: .45rem;
}
.agency-features li { font-size: .83rem; color: #374151; display: flex; align-items: flex-start; gap: .45rem; }
.achk { color: #10b981; font-size: .75rem; font-weight: 900; flex-shrink: 0; margin-top: .05rem; }
.agency-cta {
  display: block; text-align: center; padding: .7rem 1rem;
  border-radius: 10px; font-weight: 800; font-size: .9rem;
  text-decoration: none; transition: box-shadow .18s, transform .15s, background .18s;
  margin-top: auto;
}
.agency-cta:hover { transform: translateY(-1px); }
.cta-agency-s { background: rgba(99,102,241,.1); color: #4f46e5; border: 1.5px solid rgba(99,102,241,.25); }
.cta-agency-s:hover { background: rgba(99,102,241,.18); box-shadow: 0 4px 14px rgba(99,102,241,.18); }
.cta-agency-p { background: linear-gradient(135deg,#4f46e5,#7c3aed); color: #fff; box-shadow: 0 3px 12px rgba(79,70,229,.3); }
.cta-agency-p:hover { background: linear-gradient(135deg,#4338ca,#6d28d9); box-shadow: 0 6px 20px rgba(79,70,229,.42); }
.cta-agency-e { background: #111827; color: #e2e8f0; box-shadow: 0 3px 10px rgba(0,0,0,.18); }
.cta-agency-e:hover { background: #1f2937; box-shadow: 0 5px 18px rgba(0,0,0,.28); }

/* Why section */
.why-section {
  background: #f8fafc; border-radius: 18px;
  border: 1px solid #e5e7eb; padding: 3rem 2rem;
  margin-bottom: 2.5rem; text-align: center;
}
.why-section h2 {
  font-size: 1.55rem; font-weight: 900; color: #111827;
  margin-bottom: .6rem; line-height: 1.25;
}
.why-sub {
  font-size: .95rem; color: #6b7280; max-width: 640px;
  margin: 0 auto 2rem; line-height: 1.7;
}
.compare-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 1.25rem; max-width: 800px; margin: 0 auto 1.5rem;
}
.compare-card {
  border-radius: 14px; padding: 1.5rem;
  text-align: left;
}
.compare-card h3 { font-size: 1rem; font-weight: 800; margin-bottom: .9rem; }
.compare-card ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: .45rem; }
.compare-card ul li { font-size: .875rem; line-height: 1.5; }
.compare-card.traditional {
  background: rgba(239,68,68,.04); border: 1.5px solid rgba(239,68,68,.15);
}
.compare-card.traditional h3 { color: #dc2626; }
.compare-card.traditional ul li::before { content: '✕  '; color: #f87171; font-weight: 900; }
.compare-card.fundingbot {
  background: rgba(16,185,129,.04); border: 1.5px solid rgba(16,185,129,.18);
}
.compare-card.fundingbot h3 { color: #059669; }
.compare-card.fundingbot ul li::before { content: '✓  '; color: #10b981; font-weight: 900; }
.important-note {
  background: rgba(245,158,11,.07); border: 1px solid rgba(245,158,11,.25);
  border-radius: 10px; padding: .9rem 1.25rem;
  font-size: .88rem; color: #92400e; line-height: 1.6;
  max-width: 700px; margin: 0 auto 1.5rem; text-align: left;
}

/* FAQ */
.faq-section {
  max-width: 720px; margin: 0 auto 3rem;
}
.faq-item {
  border-bottom: 1px solid #f0f0f5; padding: .9rem 0;
  cursor: pointer;
}
.faq-item:last-child { border-bottom: none; }
.faq-q {
  font-size: .98rem; font-weight: 700; color: #111827;
  display: flex; align-items: center; justify-content: space-between;
  user-select: none;
}
.faq-q::after { content: '+'; font-size: 1.2rem; color: #9ca3af; transition: transform .2s; }
.faq-item.open .faq-q::after { transform: rotate(45deg); }
.faq-a {
  font-size: .88rem; color: #6b7280; line-height: 1.65;
  padding-top: .6rem; display: none;
}
.faq-item.open .faq-a { display: block; }

@media (max-width: 640px) {
  .plan-grid, .agency-grid { grid-template-columns: 1fr; }
  .compare-grid { grid-template-columns: 1fr; }
  .pricing-hero { padding: 2rem .75rem 1.5rem; }
  .agency-perks { grid-template-columns: repeat(2,1fr); }
}

/* ============================================================
   PROGRESS TRACKER PAGE
   ============================================================ */
.streak-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: linear-gradient(90deg,rgba(251,146,60,.18),rgba(245,158,11,.12));
  color: #c2410c; font-weight: 800; font-size: .82rem;
  border-radius: 999px; padding: .35rem .9rem;
  border: 1px solid rgba(245,158,11,.3);
}
.current-day {
  background: linear-gradient(135deg,#0f172a,#1e1b4b);
  border-radius: 16px; padding: 1.5rem 1.75rem;
  border: 1px solid rgba(99,102,241,.2); margin-bottom: 1.5rem;
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
}
.prog-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.progress-bar {
  background: #e5e7eb; border-radius: 999px; height: 8px; overflow: hidden;
}
.progress-fill {
  height: 100%; border-radius: 999px;
  background: linear-gradient(90deg,#6366f1,#8b5cf6);
  transition: width .8s cubic-bezier(.25,.46,.45,.94);
}
.milestone {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem 1.25rem; border-radius: 12px;
  background: #fff; border: 1px solid #e5e7eb;
  margin-bottom: .75rem;
  transition: border-color .18s, box-shadow .18s;
}
.milestone:hover { border-color: #c7d2fe; box-shadow: 0 4px 16px rgba(99,102,241,.08); }
.milestone.completed { background: #f0fdf4; border-color: #86efac; }
.milestone.current   { background: #eff6ff; border-color: #93c5fd; }
.milestone-day {
  width: 44px; height: 44px; border-radius: 10px;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: .72rem; font-weight: 900; color: #fff; flex-shrink: 0;
  text-align: center; line-height: 1.2;
}
.milestone.completed .milestone-day { background: linear-gradient(135deg,#10b981,#059669); }
.milestone-title { font-size: .92rem; font-weight: 800; color: #111827; margin-bottom: .2rem; }
.milestone-desc  { font-size: .8rem; color: #6b7280; line-height: 1.55; }
.checklist-box { display: flex; flex-direction: column; gap: .5rem; }
.checklist-text {
  display: flex; align-items: flex-start; gap: .65rem;
  font-size: .875rem; color: #374151; line-height: 1.55;
}
.summary-item {
  display: flex; align-items: center; justify-content: space-between;
  padding: .65rem 0; border-bottom: 1px solid #f0f0f5;
  font-size: .88rem;
}
.summary-item:last-child { border-bottom: none; }

/* ============================================================
   FREEZE PAGE
   ============================================================ */
.freeze-info-box {
  background: rgba(245,158,11,.07); border: 1.5px solid rgba(245,158,11,.25);
  border-radius: 14px; padding: 1.25rem 1.5rem; margin-bottom: 1.5rem;
}
.freeze-info-box h3 { font-size: .95rem; font-weight: 800; color: #92400e; margin-bottom: .35rem; }
.freeze-info-box p { font-size: .875rem; color: #78350f; line-height: 1.65; }
.freeze-phone-box {
  background: rgba(16,185,129,.06); border: 1px solid rgba(16,185,129,.22);
  border-radius: 10px; padding: .85rem 1rem; margin-top: .75rem;
  font-size: .82rem; color: #065f46;
}
.freeze-steps-wrap { display: flex; flex-direction: column; gap: .75rem; margin-bottom: 1.5rem; }
.freeze-step {
  background: #fff; border: 1px solid #e5e7eb; border-radius: 14px;
  padding: 1.25rem 1.5rem; position: relative; padding-left: 2rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
}
.freeze-step h3 { font-size: .95rem; font-weight: 800; color: #111827; margin-bottom: .4rem; }
.freeze-step p { font-size: .875rem; color: #374151; line-height: 1.65; }
.timeline-connector {
  position: absolute; left: .85rem; top: 0; bottom: 0;
  width: 2px; background: linear-gradient(180deg,#6366f1 0%,#c7d2fe 100%);
  border-radius: 2px;
}
.freeze-step:last-child .timeline-connector { display: none; }
.freeze-strategy-box {
  background: linear-gradient(135deg,rgba(99,102,241,.06),rgba(139,92,246,.04));
  border: 1.5px solid rgba(99,102,241,.2); border-radius: 14px;
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.freeze-strategy-list {
  list-style: none; padding: 0; display: flex; flex-direction: column; gap: .5rem;
  margin-top: .75rem;
}
.freeze-strategy-list li {
  font-size: .875rem; color: #374151; display: flex; align-items: flex-start;
  gap: .6rem; line-height: 1.55;
}
.freeze-strategy-list li::before { content: '→'; color: #6366f1; font-weight: 900; flex-shrink: 0; }

/* ============================================================
   REFERRAL PAGE
   ============================================================ */
.ref-stat {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-card); padding: 1.25rem 1rem; text-align: center;
}
.ref-stat-num {
  font-size: 2rem; font-weight: 900; color: #4f46e5;
  line-height: 1; margin-bottom: .25rem;
}
.ref-stat-label { font-size: .72rem; color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.ref-card {
  background: #fff; border-radius: 16px; border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-card); padding: 1.75rem 1.5rem; margin-bottom: 1.5rem;
}
.invite-card {
  background: linear-gradient(135deg,rgba(99,102,241,.06),rgba(139,92,246,.04));
  border: 1.5px solid rgba(99,102,241,.2); border-radius: 14px;
  padding: 1.5rem; margin-bottom: 1.5rem;
}
.invite-link-row {
  display: flex; align-items: center; gap: .75rem; flex-wrap: wrap;
}
.invite-link-box {
  flex: 1; padding: .6rem .9rem; background: #f9fafb;
  border: 1.5px solid #d1d5db; border-radius: 9px;
  font-size: .88rem; font-weight: 600; color: #374151;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  min-width: 0;
}
.invite-copy-btn, .copy-btn {
  padding: .55rem 1.1rem; background: #4f46e5; color: #fff;
  border: none; border-radius: 9px; font-weight: 700; font-size: .84rem;
  cursor: pointer; white-space: nowrap; font-family: 'Inter', sans-serif;
  transition: background .15s, transform .12s;
}
.invite-copy-btn:hover, .copy-btn:hover { background: #4338ca; transform: translateY(-1px); }
.referral-table {
  width: 100%; border-collapse: collapse;
}
.referral-table th, .referral-table td {
  padding: .7rem 1rem; text-align: left;
  font-size: .84rem; border-bottom: 1px solid #f0f0f5;
}
.referral-table th { font-size: .7rem; color: #9ca3af; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.qr-section { text-align: center; padding: 1.5rem; }

/* ============================================================
   COMPARE REPORTS PAGE
   ============================================================ */
.comparison-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1.25rem;
  margin-bottom: 1.5rem;
}
.comparison-card {
  background: #fff; border-radius: 16px; border: 1.5px solid #e5e7eb;
  box-shadow: var(--shadow-card); padding: 1.5rem;
}
.compare-file-label {
  display: flex; align-items: center; justify-content: center; flex-direction: column;
  gap: .65rem; padding: 2rem 1.25rem;
  border: 2px dashed rgba(99,102,241,.35); border-radius: 12px;
  cursor: pointer; text-align: center;
  background: rgba(99,102,241,.03); transition: border-color .18s, background .18s;
}
.compare-file-label:hover { border-color: #6366f1; background: rgba(99,102,241,.07); }
.compare-file-input { display: none; }
.metric-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .6rem 0; border-bottom: 1px solid #f0f0f5;
}
.metric-row:last-child { border-bottom: none; }
.metric-label { font-size: .84rem; color: #374151; font-weight: 600; }
.metric-val    { font-size: .84rem; color: #111827; font-weight: 800; }
.metric-diff   { font-size: .78rem; font-weight: 700; margin-left: .5rem; }
.change-positive { color: #059669; }
.change-negative { color: #dc2626; }
.change-neutral  { color: #9ca3af; }
.upload-zone {
  border: 2px dashed rgba(99,102,241,.35); border-radius: 14px;
  padding: 2.5rem 1.5rem; text-align: center; cursor: pointer;
  background: rgba(99,102,241,.04); transition: border-color .18s, background .18s;
}
.upload-zone:hover { border-color: #6366f1; background: rgba(99,102,241,.07); }

/* ============================================================
   AGENCY CRM PAGE
   ============================================================ */
.agency-wrap { max-width: 960px; margin: 0 auto; }
.agency-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem;
}
.agency-stat-row {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
  gap: 1rem; margin-bottom: 1.5rem;
}
.a-stat {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-card); padding: 1.1rem 1rem; text-align: center;
}
.a-stat-num   { font-size: 1.75rem; font-weight: 900; color: #4f46e5; line-height: 1; margin-bottom: .2rem; }
.a-stat-label { font-size: .7rem; color: #6b7280; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.client-table-wrap { overflow-x: auto; border-radius: 12px; border: 1px solid #e5e7eb; }
.client-table-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem; background: #f8fafc; border-bottom: 1px solid #e5e7eb;
  flex-wrap: wrap; gap: .75rem;
}
.client-search {
  padding: .45rem .8rem; background: #fff;
  border: 1.5px solid #d1d5db; border-radius: 8px;
  font-size: .88rem; font-family: 'Inter',sans-serif;
  outline: none; transition: border-color .18s;
  width: 220px;
}
.client-search:focus { border-color: #6366f1; box-shadow: 0 0 0 2px rgba(99,102,241,.1); }
.client-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: .85rem 1.25rem; border-bottom: 1px solid #f3f4f6;
  gap: 1rem; flex-wrap: wrap;
}
.client-row:last-child { border-bottom: none; }
.client-row:hover { background: #f9fafb; }
.badge-active  { background: #dcfce7; color: #166534; font-size: .7rem; font-weight: 800; padding: .2rem .65rem; border-radius: 999px; }
.badge-pending { background: #fef9c3; color: #854d0e; font-size: .7rem; font-weight: 800; padding: .2rem .65rem; border-radius: 999px; }
.badge-chip    { background: #fff; color: #374151; font-size: .7rem; font-weight: 700; padding: .2rem .65rem; border-radius: 999px; border: 1px solid #e5e7eb; }
.view-btn {
  padding: .35rem .85rem; background: rgba(99,102,241,.1); color: #4f46e5;
  border: 1px solid rgba(99,102,241,.25); border-radius: 7px;
  font-size: .78rem; font-weight: 700; text-decoration: none; cursor: pointer;
  font-family: 'Inter',sans-serif; transition: background .15s;
}
.view-btn:hover { background: rgba(99,102,241,.2); }
.empty-state { text-align: center; padding: 3.5rem 1.5rem; }
.empty-state-icon { font-size: 2.5rem; margin-bottom: 1rem; opacity: .6; }
.pipeline-card { background: #fff; border-radius: 14px; border: 1px solid #e5e7eb; padding: 1.25rem; margin-bottom: 1rem; }
.pipeline-row { display: flex; align-items: center; gap: 1rem; margin-bottom: .65rem; }
.pipeline-label { font-size: .78rem; font-weight: 700; color: #6b7280; min-width: 80px; }
.pipeline-bar-bg { flex: 1; background: #f0f0f5; border-radius: 999px; height: 8px; overflow: hidden; }
.pipeline-bar-fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg,#6366f1,#8b5cf6); }
/* pipeline grid */
.pipeline-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 1rem; margin-bottom: 1.5rem; }
.pipeline-stat-card {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  padding: 1.1rem 1.25rem; display: flex; flex-direction: column; gap: .5rem;
}
.pipeline-stat-label { font-size: .68rem; font-weight: 800; color: #6b7280; text-transform: uppercase; letter-spacing: .06em; }
.pipeline-stat-val   { font-size: 1.5rem; font-weight: 900; line-height: 1; }
/* agency tips */
.agency-tips-grid { display: grid; grid-template-columns: 1fr 1fr; gap: .75rem; }
/* agency mobile */
@media(max-width:600px) {
  .agency-stat-row  { grid-template-columns: 1fr 1fr; }
  .pipeline-grid    { grid-template-columns: 1fr; }
  .agency-tips-grid { grid-template-columns: 1fr; }
  .client-search    { width: 100%; }
  .client-table-header { flex-direction: column; align-items: flex-start; }
  .ct th, .ct td    { font-size: .72rem; padding: .5rem .6rem; }
  .invite-card      { padding: 1.25rem 1rem; }
}

/* ============================================================
   SECONDARY BUREAU PAGE
   ============================================================ */
.sb-hero {
  background: linear-gradient(135deg,#0f172a,#1e1b4b);
  border-radius: 16px; padding: 2rem 1.75rem;
  border: 1px solid rgba(99,102,241,.2);
  box-shadow: 0 4px 24px rgba(0,0,0,.18);
  margin-bottom: 1.5rem;
}
.sb-card {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-card); padding: 1.5rem; margin-bottom: 1.25rem;
}
.sb-section-title {
  font-size: 1rem; font-weight: 800; color: #111827; margin-bottom: 1rem;
  display: flex; align-items: center; gap: .5rem;
}
.sb-stat-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(140px,1fr)); gap: 1rem;
}
.sb-stat {
  text-align: center; padding: 1rem;
  background: #f8fafc; border-radius: 10px; border: 1px solid #e5e7eb;
}
.sb-badge {
  display: inline-block; font-size: .7rem; font-weight: 800;
  padding: .25rem .7rem; border-radius: 999px;
  background: rgba(124,58,237,.12); color: #6d28d9;
  border: 1px solid rgba(124,58,237,.2); text-transform: uppercase;
  letter-spacing: .05em;
}
.sb-table { width: 100%; border-collapse: collapse; }
.sb-table th, .sb-table td { padding: .7rem 1rem; font-size: .84rem; text-align: left; border-bottom: 1px solid #f0f0f5; }
.sb-table th { font-size: .7rem; color: #9ca3af; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; background: #f8fafc; }
.sb-freeze-on  { color: #059669; font-weight: 800; font-size: .82rem; }
.sb-freeze-off { color: #9ca3af; font-weight: 600; font-size: .82rem; }
.ring-wrap { display: flex; align-items: center; justify-content: center; position: relative; }
.ring-center { position: absolute; text-align: center; pointer-events: none; }
.bureau-card {
  background: #fff; border-radius: 16px; border: 1.5px solid #e5e7eb;
  box-shadow: var(--shadow-card); padding: 1.5rem; text-align: center;
  transition: box-shadow .18s, border-color .18s; cursor: default;
}
.bureau-card:hover { border-color: #c7d2fe; box-shadow: var(--shadow-hover); }
.score-pill {
  display: inline-block; font-size: .72rem; font-weight: 800;
  padding: .22rem .7rem; border-radius: 999px;
}

/* ============================================================
   WHITE LABEL PAGE
   ============================================================ */
.wl-hero {
  background: linear-gradient(135deg,#0f172a,#1e1b4b);
  border-radius: 18px; padding: 3rem 2rem;
  border: 1px solid rgba(99,102,241,.2);
  box-shadow: 0 8px 40px rgba(0,0,0,.2);
  text-align: center; margin-bottom: 2rem;
}
.wl-feature {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1.25rem; background: #fff; border-radius: 14px;
  border: 1px solid #e5e7eb; box-shadow: var(--shadow-card);
  transition: box-shadow .18s, border-color .18s;
}
.wl-feature:hover { border-color: #c7d2fe; box-shadow: var(--shadow-hover); }
.wl-num {
  width: 36px; height: 36px; border-radius: 9px; flex-shrink: 0;
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  display: flex; align-items: center; justify-content: center;
  font-size: .82rem; font-weight: 900; color: #fff;
}
.wl-step { margin-bottom: 1rem; }
.wl-cta {
  display: inline-flex; align-items: center; gap: .5rem;
  background: linear-gradient(135deg,#4f46e5,#7c3aed); color: #fff;
  font-weight: 800; border-radius: 10px; padding: .8rem 1.75rem;
  font-size: .98rem; text-decoration: none;
  box-shadow: 0 4px 16px rgba(79,70,229,.3);
  transition: box-shadow .18s, transform .15s;
}
.wl-cta:hover { box-shadow: 0 6px 24px rgba(79,70,229,.42); transform: translateY(-1px); }

/* ============================================================
   LETTERS PAGE
   ============================================================ */
.letter-card {
  background: #fff; border-radius: 14px; border: 1px solid #e5e7eb;
  box-shadow: var(--shadow-card); margin-bottom: 1.25rem; overflow: hidden;
}
.letter-header {
  display: flex; align-items: flex-start; justify-content: space-between;
  flex-wrap: wrap; gap: .75rem;
  padding: 1.1rem 1.25rem; background: #f8fafc;
  border-bottom: 1px solid #e5e7eb;
}
.letter-title  { font-size: .95rem; font-weight: 800; color: #111827; margin-bottom: .2rem; }
.letter-target { font-size: .78rem; color: #6b7280; font-weight: 600; }
.letter-body   { padding: 1.25rem 1.5rem; font-size: .88rem; color: #374151; line-height: 1.75; white-space: pre-wrap; font-family: 'Courier New',monospace; }

/* ============================================================
   GENERAL — tier-badge, how-step, arrow, card
   ============================================================ */
.tier-badge {
  display: inline-block; font-size: .68rem; font-weight: 800;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .2rem .65rem; border-radius: 999px;
  background: rgba(99,102,241,.12); color: #4f46e5;
  border: 1px solid rgba(99,102,241,.22);
}
.tier-badge.pro     { background: rgba(99,102,241,.18); color: #4f46e5; border-color: rgba(99,102,241,.35); }
.tier-badge.premium { background: rgba(124,58,237,.18); color: #6d28d9; border-color: rgba(124,58,237,.35); }
.how-step {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: 1rem; background: #f8fafc; border-radius: 12px; border: 1px solid #e5e7eb;
}
.how-num {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg,#6366f1,#8b5cf6);
  display: flex; align-items: center; justify-content: center;
  font-size: .78rem; font-weight: 900; color: #fff;
}
.arrow { color: #9ca3af; font-size: 1.25rem; font-weight: 900; }
/* Generic .card alias for pages not using .cw-card */
.card {
  background: var(--card-bg); border-radius: var(--radius-card);
  border: 1px solid var(--card-border); box-shadow: var(--shadow-card);
  padding: 1.4rem 1.2rem;
  transition: box-shadow .2s, border-color .2s, transform .18s;
}
.card:not(.no-lift):hover { box-shadow: var(--shadow-hover); border-color: #c7d2fe; transform: translateY(-1px); }
/* Shared badge styles */
.badge-earned { background: #dcfce7; color: #166534; font-size: .7rem; font-weight: 800; padding: .2rem .65rem; border-radius: 999px; }
.badge-locked { background: #f1f3f9; color: #9ca3af; font-size: .7rem; font-weight: 600; padding: .2rem .65rem; border-radius: 999px; }
/* Misc small utilities */
.mb-1  { margin-bottom: .25rem; }
.mb-4  { margin-bottom: 1rem; }
.mb-5  { margin-bottom: 1.25rem; }
.mb-6  { margin-bottom: 1.5rem; }
.mt-2  { margin-top: .5rem; }
.mt-4  { margin-top: 1rem; }
.p-5   { padding: 1.25rem; }
.p-6   { padding: 1.5rem; }
.justify-center { justify-content: center; }
.justify-between { justify-content: space-between; }
.flex-wrap { flex-wrap: wrap; }
.font-extrabold { font-weight: 900; }
.font-semibold  { font-weight: 600; }
.space-y-4 > * + * { margin-top: 1rem; }
.max-w-md  { max-width: 28rem; }
.max-w-lg  { max-width: 32rem; }
.mx-auto   { margin-left: auto; margin-right: auto; }
.gap-1 { gap: .25rem; }
.gap-2 { gap: .5rem; }
.gap-3 { gap: .75rem; }
.gap-4 { gap: 1rem; }
.text-white  { color: #fff; }
.text-right  { text-align: right; }
.glass {
  background: #fff; border-radius: 16px;
  box-shadow: 0 4px 32px rgba(79,70,229,.1), 0 1px 4px rgba(0,0,0,.06);
  border: 1px solid #e5e7eb;
}
@media print {
  .no-print { display: none !important; }
}

@media (max-width: 640px) {
  .comparison-grid { grid-template-columns: 1fr; }
  .agency-stat-row  { grid-template-columns: repeat(2,1fr); }
  .sb-stat-grid     { grid-template-columns: repeat(2,1fr); }
  .prog-grid        { grid-template-columns: 1fr; }
}

/* ============================================================
   ANALYSIS PAGE — Core Components
   ============================================================ */
.page-wrap {
  max-width: 820px; margin: 0 auto;
  padding: 0 1.25rem 3.5rem;
}

/* Score gauge */
.gauge-wrap {
  position: relative; display: inline-block;
  width: 210px; height: 210px; margin: 0 auto .5rem;
}
.gauge-center {
  position: absolute; inset: 0;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  pointer-events: none;
}

/* Score label classes */
.s-exceptional { color: #16a34a; }
.s-verygood    { color: #22c55e; }
.s-good        { color: #65a30d; }
.s-fair        { color: #d97706; }
.s-poor        { color: #dc2626; }

/* Bureau tab toggle */
.bureau-tabs {
  display: inline-flex; gap: .35rem;
  background: #f1f3f9; border-radius: 999px; padding: .25rem;
  margin-top: .9rem;
}
.bureau-tab {
  padding: .35rem 1.1rem; border-radius: 999px;
  font-size: .82rem; font-weight: 700; color: #6b7280;
  background: none; border: none; cursor: pointer;
  transition: background .18s, color .18s, box-shadow .18s;
  font-family: 'Inter', sans-serif;
}
.bureau-tab.active {
  background: #fff; color: #4f46e5;
  box-shadow: 0 2px 8px rgba(79,70,229,.14);
}
.bureau-tab:hover:not(.active) { background: rgba(255,255,255,.6); color: #374151; }

/* Accordion sections */
.acc-section {
  background: #fff; border-radius: 16px;
  border: 1.5px solid #e5e7eb;
  box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.03);
  overflow: hidden; transition: border-color .18s;
}
.acc-section:hover { border-color: #c7d2fe; }
.acc-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.3rem; cursor: pointer; user-select: none;
  background: #fff; transition: background .15s;
}
.acc-header:hover { background: #fafbff; }
.acc-header-left { display: flex; align-items: center; gap: .9rem; flex: 1; min-width: 0; }
.acc-icon {
  width: 38px; height: 38px; border-radius: 10px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: 1.15rem;
}
.acc-title    { font-size: .98rem; font-weight: 800; color: #111827; }
.acc-subtitle { font-size: .75rem; color: #6b7280; margin-top: .15rem; }
.acc-chevron  { font-size: .75rem; color: #9ca3af; transition: transform .25s; flex-shrink: 0; }
.acc-section:not(.open) .acc-chevron { transform: rotate(-90deg); }
.acc-body {
  padding: 1.1rem 1.3rem 1.4rem;
  border-top: 1px solid #f0f0f5;
  display: none;
}
.acc-section.open .acc-body { display: block; }

/* Credit factor grid */
.factor-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(160px,1fr));
  gap: .875rem; margin-bottom: .5rem;
}
.factor-card-v2 {
  background: #fff; border-radius: 14px;
  border: 1.5px solid #e5e7eb;
  padding: 1.1rem 1rem;
  display: flex; flex-direction: column; gap: .35rem;
  box-shadow: 0 1px 4px rgba(0,0,0,.04);
  transition: box-shadow .18s, transform .15s;
}
.factor-card-v2:hover { box-shadow: 0 4px 18px rgba(0,0,0,.09); transform: translateY(-1px); }
.factor-icon-circle {
  width: 36px; height: 36px; border-radius: 50%;
  background: #f1f3f9; display: flex; align-items: center; justify-content: center;
  font-size: 1rem; margin-bottom: .1rem;
}
.factor-name  { font-size: .82rem; font-weight: 800; color: #111827; }
.factor-desc-sm { font-size: .73rem; color: #6b7280; line-height: 1.5; }
.factor-stat  {
  font-size: .65rem; font-weight: 800; color: #6366f1;
  text-transform: uppercase; letter-spacing: .06em; margin-top: auto;
}

/* Status pills — factor rating badges */
.status-pill {
  display: inline-block; font-size: .65rem; font-weight: 900;
  text-transform: uppercase; letter-spacing: .06em;
  padding: .22rem .65rem; border-radius: 999px;
  align-self: flex-start;
}
.pill-exceptional    { background: #dcfce7; color: #166534; }
.pill-verygood       { background: #d1fae5; color: #065f46; }
.pill-good           { background: #ecfdf5; color: #047857; }
.pill-balanced       { background: #dbeafe; color: #1e40af; }
.pill-fair           { background: #fef3c7; color: #92400e; }
.pill-needs-attention{ background: #fef9c3; color: #854d0e; }
.pill-thin           { background: #ede9fe; color: #5b21b6; }
.pill-limited        { background: #e0f2fe; color: #075985; }
.pill-needs-repair   { background: #fee2e2; color: #991b1b; }
.pill-critical       { background: #fef2f2; color: #b91c1c; }
.pill-high-drag      { background: #fff1f2; color: #be123c; }

/* Funding readiness bar */
.fr-bar-track { height: 6px; background: #f0f0f5; border-radius: 999px; overflow: hidden; }
.fr-bar-fill  { height: 100%; border-radius: 999px; transition: width .8s cubic-bezier(.25,.46,.45,.94); }

/* Metric strip / box */
.metric-strip {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(180px,1fr));
  gap: .875rem; margin-bottom: .875rem;
}
.metric-box {
  padding: 1.25rem 1.1rem !important;
  display: flex; flex-direction: column;
}

/* Negative item cards */
.neg-card {
  border-left: 4px solid #ef4444 !important;
  border-color: #fecaca;
  background: #fffbfb;
}
.neg-card-warn {
  background: #fff; border-radius: 14px;
  border: 1.5px solid #fde68a;
  box-shadow: 0 1px 4px rgba(0,0,0,.05), 0 4px 16px rgba(0,0,0,.03);
  border-left: 4px solid #f59e0b !important;
}

/* Priority badges */
.priority-hi {
  display: inline-block; font-size: .68rem; font-weight: 800;
  padding: .22rem .7rem; border-radius: 999px;
  background: #fee2e2; color: #991b1b;
  border: 1px solid #fca5a5; white-space: nowrap;
}
.priority-med {
  display: inline-block; font-size: .68rem; font-weight: 800;
  padding: .22rem .7rem; border-radius: 999px;
  background: #fef3c7; color: #92400e;
  border: 1px solid #fde68a; white-space: nowrap;
}

/* Action buttons */
.action-btn {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .45rem 1rem; border-radius: 8px;
  font-size: .78rem; font-weight: 700; cursor: pointer;
  border: none; text-decoration: none; font-family: 'Inter', sans-serif;
  transition: background .15s, box-shadow .15s, transform .12s;
  white-space: nowrap;
}
.action-btn:hover { transform: translateY(-1px); }
.action-btn-primary {
  background: linear-gradient(135deg,#4f46e5,#7c3aed);
  color: #fff; box-shadow: 0 2px 8px rgba(79,70,229,.25);
}
.action-btn-primary:hover { box-shadow: 0 4px 14px rgba(79,70,229,.38); }
.action-btn-outline {
  background: #fff; color: #4f46e5;
  border: 1.5px solid rgba(99,102,241,.35) !important;
}
.action-btn-outline:hover { background: #ede9fe; border-color: #6366f1 !important; }
.action-btn-gray {
  background: #f1f3f9; color: #374151;
  border: 1px solid #e5e7eb !important;
}
.action-btn-gray:hover { background: #e9ecf8; }

/* Instruction list */
.inst-check {
  display: flex; align-items: flex-start; gap: .65rem;
  padding: .5rem 0; font-size: .875rem; color: #374151; line-height: 1.6;
}
.inst-dot {
  width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0;
  margin-top: .3rem;
}

/* Score simulator grid */
.sim-grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(200px,1fr));
  gap: 1rem; margin: 1rem 0;
}

@media (max-width: 640px) {
  .factor-grid  { grid-template-columns: repeat(2,1fr); }
  .metric-strip { grid-template-columns: 1fr; }
  .sim-grid     { grid-template-columns: 1fr; }
  .page-wrap    { padding: 0 .85rem 2.5rem; }
}

/* ============================================================
   LETTERS PAGE — tab panels and remaining classes
   ============================================================ */
.letter-group { margin-bottom: 2.25rem; }
.letter-tabs {
  display: flex; gap: .35rem; flex-wrap: wrap;
  margin-bottom: 1rem;
}
.letter-tab {
  display: inline-flex; align-items: center; gap: .45rem;
  padding: .42rem .95rem; border-radius: 8px;
  font-size: .82rem; font-weight: 700; cursor: pointer;
  background: #f1f3f9; color: #374151; border: 1.5px solid #e5e7eb;
  transition: background .15s, color .15s, border-color .15s;
  user-select: none;
}
.letter-tab.active { background: #ede9fe; color: #4f46e5; border-color: #c4b5fd; }
.letter-tab:hover:not(.active) { background: #e9ecf8; border-color: #c7d2fe; }
.letter-panel { display: none; }
.letter-panel.active { display: block; }
.dot {
  display: inline-block; width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0;
}
.recipient-badge {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .72rem; font-weight: 800; padding: .22rem .7rem;
  border-radius: 999px;
}
.badge-bureau  { background: rgba(99,102,241,.12);  color: #4f46e5; border: 1px solid rgba(99,102,241,.25); }
.badge-creditor{ background: rgba(245,158,11,.12);  color: #92400e; border: 1px solid rgba(245,158,11,.25); }
.letter-disclaimer-footer {
  margin-top: .875rem; padding: .75rem 1rem;
  background: rgba(245,158,11,.07); border: 1px solid rgba(245,158,11,.22);
  border-radius: 8px; font-size: .75rem; color: #374151; line-height: 1.6;
}
.letter-disclaimer-footer a { color: #4f46e5; }
/* More padding utilities */
.p-8 { padding: 2rem; }

/* ============================================================
   ADMIN PAGE — standalone HTML, dark theme
   ============================================================ */
body:has(> h1) {
  /* Scoped only when admin uses bare body */
  background: #0f172a; color: #e2e8f0;
  font-family: 'Inter', system-ui, sans-serif;
  padding: 1.5rem;
  max-width: 1100px; margin: 0 auto;
}
body > h1 {
  font-size: 1.5rem; font-weight: 900; color: #e2e8f0; margin-bottom: .25rem;
}
.sub { font-size: .82rem; color: #6b7280; margin-bottom: 1.5rem; }
.section { margin-bottom: 1.75rem; }
.section h2 { font-size: 1rem; font-weight: 800; color: #cbd5e1; margin-bottom: .75rem; }
.grid {
  display: grid; grid-template-columns: repeat(auto-fill,minmax(190px,1fr));
  gap: 1rem; margin-bottom: 1.75rem;
}
.card.indigo  { background: rgba(99,102,241,.12); border: 1px solid rgba(99,102,241,.25); }
.card.green   { background: rgba(16,185,129,.1);  border: 1px solid rgba(16,185,129,.22); }
.card.yellow  { background: rgba(245,158,11,.1);  border: 1px solid rgba(245,158,11,.22); }
.card.blue    { background: rgba(14,165,233,.1);  border: 1px solid rgba(14,165,233,.22); }
.card.purple  { background: rgba(139,92,246,.1);  border: 1px solid rgba(139,92,246,.22); }
.card.indigo .label  { color: #a5b4fc; }
.card.green .label   { color: #6ee7b7; }
.card.yellow .label  { color: #fcd34d; }
.card.blue .label    { color: #7dd3fc; }
.card.purple .label  { color: #c4b5fd; }
.label   { font-size: .7rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; color: #9ca3af; margin-bottom: .3rem; }
.value   { font-size: 1.75rem; font-weight: 900; color: #f1f5f9; line-height: 1; margin-bottom: .25rem; }
.sub-val { font-size: .7rem; color: #6b7280; }
.tier-bar {
  display: flex; height: 8px; border-radius: 999px; overflow: hidden;
  background: #1e293b; margin-bottom: .65rem;
}
.t-free  { background: #374151; }
.t-pro   { background: #6366f1; }
.t-prem  { background: #8b5cf6; }
.tier-legend {
  display: flex; flex-wrap: wrap; gap: .75rem;
  font-size: .78rem; color: #94a3b8;
}
.tier-dot {
  display: inline-block; width: 8px; height: 8px;
  border-radius: 50%; margin-right: .3rem; vertical-align: middle;
}
.dot-live {
  display: inline-block; width: 7px; height: 7px;
  background: #34d399; border-radius: 50%;
  animation: blink 1.2s ease-in-out infinite;
}
@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: .25; }
}
/* Admin login centering & logo */
body:not(:has(.sb-content)):not(:has(.auth-outer)) > .card:first-child {
  max-width: 400px; margin: 10vh auto;
  padding: 2.5rem 2rem; background: #fff;
  border-radius: 18px; box-shadow: 0 4px 32px rgba(0,0,0,.12);
}
.logo {
  font-size: 1.3rem; font-weight: 900; color: #4f46e5;
  letter-spacing: -.02em; margin-bottom: 1rem;
}

/* ============================================================
   LETTERS JS — tab switching (inline script helper)
   ============================================================ */
/* Delegate tab activation via data-tab-group attribute */
