/* ==========================================================================
   Persistly — shared styles
   ========================================================================== */

:root {
  --bg: #0b1120;
  --bg-elevated: #111a2e;
  --panel: #151f38;
  --panel-border: #223052;
  --text: #e7ecfb;
  --text-dim: #9aa7c7;
  --text-faint: #6b7695;
  --primary: #0ea5e9;
  --primary-light: #38bdf8;
  --accent: #14b8a6;
  --accent-light: #4fd8c8;
  --danger: #ef4444;
  --warning: #f59e0b;
  --success: #22c55e;
  --radius: 14px;
  --radius-sm: 8px;
  --shadow: 0 10px 40px rgba(0, 0, 0, 0.35);
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

a { color: inherit; text-decoration: none; }

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

.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 22px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 15px;
  cursor: pointer;
  border: 1px solid transparent;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: scale(0.98); }

.btn-primary {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  box-shadow: 0 6px 20px rgba(14, 165, 233, 0.35);
}
.btn-primary:hover { box-shadow: 0 8px 26px rgba(14, 165, 233, 0.5); }

.btn-accent {
  background: var(--accent);
  color: #06231f;
  box-shadow: 0 6px 20px rgba(20, 184, 166, 0.3);
}
.btn-accent:hover { box-shadow: 0 8px 26px rgba(20, 184, 166, 0.45); }

.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--panel-border);
}
.btn-ghost:hover { border-color: var(--primary-light); color: #fff; }

.btn-block { width: 100%; }
.btn-sm { padding: 8px 14px; font-size: 13px; }
.btn-danger { background: rgba(239, 68, 68, 0.12); color: #fca5a5; border-color: rgba(239, 68, 68, 0.3); }
.btn-danger:hover { background: rgba(239, 68, 68, 0.2); }

/* ---- Nav ---- */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(11, 17, 32, 0.85);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--panel-border);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 19px;
  letter-spacing: -0.02em;
}
.logo-mark {
  width: 22px;
  height: 22px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.logo-mark svg { width: 100%; height: 100%; flex-shrink: 0; }
.nav-links {
  display: flex;
  gap: 32px;
  font-size: 14.5px;
  color: var(--text-dim);
}
.nav-links a:hover { color: #fff; }
.nav-actions { display: flex; gap: 12px; align-items: center; }
.nav-toggle { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-toggle {
    display: block;
    background: none;
    border: 1px solid var(--panel-border);
    color: var(--text);
    border-radius: 8px;
    padding: 8px 10px;
    cursor: pointer;
  }
}

/* ---- Hero ---- */
.hero {
  position: relative;
  padding: 100px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 0%, rgba(14, 165, 233, 0.30), transparent 45%),
    radial-gradient(circle at 85% 20%, rgba(20, 184, 166, 0.25), transparent 40%);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-light);
  background: rgba(20, 184, 166, 0.1);
  border: 1px solid rgba(20, 184, 166, 0.25);
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
}
.hero h1 {
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -0.03em;
  margin: 0 0 20px;
  max-width: 780px;
}
.hero h1 span {
  background: linear-gradient(135deg, var(--primary-light), var(--accent-light));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero p.lead {
  font-size: 18px;
  color: var(--text-dim);
  max-width: 600px;
  margin: 0 0 34px;
}
.hero-actions { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 46px; }
.hero-note { font-size: 13.5px; color: var(--text-faint); margin-top: 14px; }

.stat-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  padding-top: 40px;
  border-top: 1px solid var(--panel-border);
  max-width: 780px;
}
.stat-row .num { font-size: 26px; font-weight: 800; color: #fff; }
.stat-row .label { font-size: 13px; color: var(--text-faint); margin-top: 2px; }

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

/* ---- Sections ---- */
section { padding: 88px 0; }
.section-head { max-width: 640px; margin: 0 auto 52px; text-align: center; }
.section-tag {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 12px;
}
.section-head h2 { font-size: clamp(26px, 3.5vw, 38px); letter-spacing: -0.02em; margin: 0 0 14px; }
.section-head p { color: var(--text-dim); font-size: 16.5px; margin: 0; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 900px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 28px;
}
.feature-card .icon {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgba(14, 165, 233, 0.15);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 18px;
}
.feature-card h3 { font-size: 17.5px; margin: 0 0 8px; }
.feature-card p { font-size: 14.5px; color: var(--text-dim); margin: 0; }

/* ---- How it works ---- */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; counter-reset: step; }
@media (max-width: 900px) { .steps { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }
.step { position: relative; padding-top: 6px; }
.step .step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  margin-bottom: 16px;
}
.step h4 { margin: 0 0 6px; font-size: 15.5px; }
.step p { margin: 0; font-size: 14px; color: var(--text-dim); }

/* ---- Pricing ---- */
.pricing-card { display: flex; flex-direction: column; }
.pricing-card.featured { border-color: var(--primary); box-shadow: 0 0 0 1px var(--primary), var(--shadow); position: relative; }
.pricing-badge {
  position: absolute; top: -13px; left: 28px;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff; font-size: 11.5px; font-weight: 700;
  padding: 4px 12px; border-radius: 999px;
}
.pricing-card .tier { font-size: 15px; font-weight: 700; color: var(--text-dim); margin-bottom: 8px; }
.pricing-card .price { font-size: 36px; font-weight: 800; margin-bottom: 4px; }
.pricing-card .price span { font-size: 14px; font-weight: 500; color: var(--text-faint); }
.pricing-card .desc { font-size: 13.5px; color: var(--text-dim); margin-bottom: 22px; }
.pricing-card ul { list-style: none; padding: 0; margin: 0 0 26px; display: flex; flex-direction: column; gap: 11px; }
.pricing-card li { font-size: 14px; color: var(--text-dim); display: flex; gap: 9px; align-items: flex-start; }
.pricing-card li::before { content: "✓"; color: var(--accent-light); font-weight: 700; }
.pricing-card .btn { margin-top: auto; }

/* ---- FAQ ---- */
.faq-item { border-bottom: 1px solid var(--panel-border); padding: 20px 0; }
.faq-item summary { cursor: pointer; font-weight: 600; font-size: 15.5px; list-style: none; display: flex; justify-content: space-between; align-items: center; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after { content: "+"; font-size: 20px; color: var(--text-faint); }
.faq-item[open] summary::after { content: "–"; }
.faq-item p { color: var(--text-dim); font-size: 14.5px; margin: 14px 0 0; }

/* ---- CTA band ---- */
.cta-band {
  background: linear-gradient(135deg, rgba(79,70,229,0.18), rgba(20,184,166,0.14));
  border: 1px solid var(--panel-border);
  border-radius: 22px;
  padding: 56px;
  text-align: center;
}
.cta-band h2 { font-size: clamp(24px, 3vw, 32px); margin: 0 0 12px; }
.cta-band p { color: var(--text-dim); margin: 0 0 28px; }

/* ---- Footer ---- */
footer { border-top: 1px solid var(--panel-border); padding: 46px 0; }
.footer-inner { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; }
.footer-links { display: flex; gap: 24px; font-size: 13.5px; color: var(--text-faint); }
.footer-links a:hover { color: var(--text); }

/* ---- Auth pages ---- */
.auth-shell {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background:
    radial-gradient(circle at 20% 10%, rgba(14, 165, 233, 0.26), transparent 45%),
    radial-gradient(circle at 80% 90%, rgba(20, 184, 166, 0.22), transparent 40%),
    var(--bg);
}
.auth-card {
  width: 100%;
  max-width: 420px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 38px 34px;
  box-shadow: var(--shadow);
}
.auth-card .logo { justify-content: center; margin-bottom: 22px; }
.auth-card h1 { font-size: 22px; text-align: center; margin: 0 0 6px; }
.auth-card .sub { text-align: center; color: var(--text-dim); font-size: 14px; margin: 0 0 28px; }
.field { margin-bottom: 16px; }
.field label { display: block; font-size: 13px; font-weight: 600; color: var(--text-dim); margin-bottom: 7px; }
.field input, .field select, .field textarea {
  width: 100%;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--font);
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--primary-light);
}
.field select:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.plan-select { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 4px; }
.plan-option {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: var(--bg-elevated);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.plan-option:hover { border-color: var(--primary); }
.plan-option input { position: absolute; top: 12px; right: 12px; accent-color: var(--primary); }
.plan-option:has(input:checked) { border-color: var(--primary); background: rgba(14, 165, 233, 0.12); }
.plan-option-name { font-size: 13px; font-weight: 600; color: var(--text-dim); }
.plan-option-price { font-size: 19px; font-weight: 700; }
.plan-option-price span { font-size: 12px; font-weight: 500; color: var(--text-dim); }
.plan-select-note { font-size: 12.5px; color: var(--text-dim); margin: 8px 0 0; }
.plan-select-note a { color: var(--primary); }

.beneficiary-section {
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 16px 16px 4px;
  margin: 20px 0;
  background: var(--bg-elevated);
}
.beneficiary-header {
  font-size: 12.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--accent-light);
  margin-bottom: 14px;
}

/* ---- Log Policy wizard progress bar ---- */
.wizard-progress {
  display: flex;
  align-items: flex-start;
  margin-bottom: 30px;
}
.wizard-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}
.wizard-step-circle {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--panel);
  border: 2px solid var(--panel-border);
  color: var(--text-faint);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 14px;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}
.wizard-step-label {
  font-size: 12.5px;
  color: var(--text-faint);
  font-weight: 600;
  white-space: nowrap;
  transition: color 0.2s ease;
}
.wizard-step.active .wizard-step-circle {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-color: transparent;
  color: #fff;
}
.wizard-step.active .wizard-step-label { color: #fff; }
.wizard-step.completed .wizard-step-circle {
  background: var(--accent);
  border-color: transparent;
  color: #06231f;
}
.wizard-step.completed .wizard-step-label { color: var(--accent-light); }
.wizard-line {
  flex: 1;
  height: 2px;
  background: var(--panel-border);
  margin: 16px 10px 0;
  transition: background 0.2s ease;
}
.wizard-line.completed { background: var(--accent); }

@media (max-width: 620px) {
  .wizard-step-label { display: none; }
}

/* ---- Review & Submit summary ---- */
.review-summary { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 28px; }
@media (max-width: 620px) { .review-summary { grid-template-columns: 1fr; } }
.review-section-title {
  grid-column: 1 / -1;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--accent-light);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin: 14px 0 -4px;
  padding-top: 14px;
  border-top: 1px solid var(--panel-border);
}
.review-section-title:first-child { margin-top: 0; padding-top: 0; border-top: none; }
.review-item .label {
  font-size: 11.5px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-faint);
  font-weight: 700;
  margin-bottom: 3px;
}
.review-item .value { font-size: 14.5px; color: var(--text); font-weight: 500; }
.review-item .value.empty { color: var(--text-faint); font-weight: 400; font-style: italic; }

/* ---- Address autocomplete ---- */
.address-wrap { position: relative; }
.address-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  background: var(--bg-elevated);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow);
  max-height: 230px;
  overflow-y: auto;
  z-index: 20;
  display: none;
}
.address-suggestions.open { display: block; }
.address-suggestion-item {
  padding: 10px 13px;
  font-size: 13.5px;
  color: var(--text-dim);
  cursor: pointer;
}
.address-suggestion-item:hover { background: var(--panel); color: #fff; }

/* ---- Sectioned form cards (Log Policy) ---- */
.form-section {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 20px;
}
.form-section-head {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  margin-bottom: 22px;
}
.form-section-icon {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: rgba(14, 165, 233, 0.15);
  color: var(--primary-light);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 17px;
  flex-shrink: 0;
}
.form-section-title { font-size: 15.5px; font-weight: 700; color: #fff; }
.form-section-sub { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

.form-subsection {
  border-top: 1px solid var(--panel-border);
  margin-top: 20px;
  padding-top: 18px;
}
.form-subsection-title { font-size: 13.5px; font-weight: 700; color: #fff; }
.form-subsection-sub { font-size: 12.5px; color: var(--text-faint); margin: 2px 0 12px; }
.draft-day-row { display: flex; align-items: center; gap: 12px; }
.draft-day-row select {
  max-width: 120px;
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 14.5px;
  font-family: var(--font);
}
.draft-day-row select:focus { outline: none; border-color: var(--primary-light); }
.draft-day-label { font-size: 14px; color: var(--text-dim); }
.form-error {
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  color: #fca5a5;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
  display: none;
}
.form-success {
  background: rgba(34, 197, 94, 0.1);
  border: 1px solid rgba(34, 197, 94, 0.3);
  color: #86efac;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  margin-bottom: 16px;
  display: none;
}
.auth-switch { text-align: center; font-size: 14px; color: var(--text-dim); margin-top: 22px; }
.auth-switch a { color: var(--accent-light); font-weight: 600; }

/* ---- App shell (CRM dashboard) ---- */
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 250px;
  flex-shrink: 0;
  background: var(--bg-elevated);
  border-right: 1px solid var(--panel-border);
  padding: 18px 16px;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  transition: width 0.2s ease, padding 0.2s ease;
  overflow: hidden;
}

.sidebar-top { display: flex; align-items: center; gap: 10px; margin-bottom: 26px; padding: 0 2px; }
.fold-toggle {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 8px;
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--text-dim);
  font-size: 15px;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s ease, color 0.15s ease;
}
.fold-toggle:hover { background: var(--panel); color: #fff; }
.fold-toggle svg { width: 17px; height: 17px; flex-shrink: 0; }

.sidebar .logo { white-space: nowrap; overflow: hidden; }
.sidebar .logo-text { transition: opacity 0.15s ease; }

.sidebar-nav { display: flex; flex-direction: column; gap: 4px; flex: 1; }
.sidebar-nav a {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
}
.sidebar-nav a:hover { background: var(--panel); color: #fff; }
.sidebar-nav a.active { background: rgba(14, 165, 233, 0.18); color: #fff; }
.nav-icon { flex-shrink: 0; width: 20px; display: flex; align-items: center; justify-content: center; }
.nav-icon svg { width: 18px; height: 18px; }
.nav-label { transition: opacity 0.1s ease; }

.sidebar-foot { border-top: 1px solid var(--panel-border); padding-top: 10px; white-space: nowrap; overflow: hidden; }
.sidebar-settings-link {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 14.5px;
  color: var(--text-dim);
  font-weight: 500;
  white-space: nowrap;
  overflow: hidden;
  margin-bottom: 6px;
}
.sidebar-settings-link:hover { background: var(--panel); color: #fff; }
.sidebar-settings-link.active { background: rgba(14, 165, 233, 0.18); color: #fff; }
.sidebar-user { font-size: 13px; color: var(--text-dim); padding: 4px 12px 10px; }
.sidebar-user strong { display: block; color: var(--text); font-size: 14px; }

/* ---- Folded / collapsed sidebar ---- */
.sidebar.collapsed { width: 76px; padding: 18px 12px; }
.sidebar.collapsed .sidebar-top { justify-content: center; }
.sidebar.collapsed .logo-text,
.sidebar.collapsed .nav-label,
.sidebar.collapsed .sidebar-user,
.sidebar.collapsed .logout-label {
  display: none;
}
.sidebar.collapsed .sidebar-nav a,
.sidebar.collapsed .sidebar-settings-link { justify-content: center; padding: 12px; }
.sidebar.collapsed .logo { justify-content: center; }
.sidebar.collapsed #logoutLink { display: flex; align-items: center; justify-content: center; padding: 10px; }

.main {
  flex: 1;
  padding: 30px 36px 60px;
  min-width: 0;
}
.main-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 26px; flex-wrap: wrap; gap: 14px; }
.main-head h1 { font-size: 24px; margin: 0; }
.main-head p { margin: 4px 0 0; color: var(--text-dim); font-size: 14px; }

.stat-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-bottom: 30px; }
@media (max-width: 1000px) { .stat-cards { grid-template-columns: repeat(2, 1fr); } }
.stat-card { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 20px; }
.stat-card .label { font-size: 12.5px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.stat-card .value { font-size: 28px; font-weight: 800; margin-top: 8px; }
.stat-card .sub { font-size: 12.5px; color: var(--text-faint); margin-top: 4px; }
.stat-card.warn .value { color: var(--warning); }
.stat-card.danger .value { color: #f87171; }

.dash-tile { cursor: pointer; transition: border-color 0.15s ease, transform 0.1s ease; }
.dash-tile:hover { border-color: var(--primary-light); }
.dash-tile:active { transform: scale(0.98); }
.dash-tile:focus-visible { outline: 2px solid var(--primary-light); outline-offset: 2px; }

.hero-stat-card {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border-radius: var(--radius);
  padding: 30px 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: #fff;
  margin-bottom: 20px;
}
.hero-stat-card .label { font-size: 13px; text-transform: uppercase; letter-spacing: 0.06em; font-weight: 700; opacity: 0.85; }
.hero-stat-card .value { font-size: 54px; font-weight: 800; margin-top: 6px; line-height: 1; }
.hero-stat-card .sub { font-size: 13.5px; opacity: 0.85; margin-top: 8px; }
.hero-stat-card .hero-icon { opacity: 0.9; }
.hero-stat-card .hero-icon svg { width: 56px; height: 56px; }

.dash-secondary-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-bottom: 22px; }
.dash-secondary-row .stat-card .value { font-size: 22px; }
@media (max-width: 1000px) { .dash-secondary-row { grid-template-columns: 1fr 1fr; } }

.dash-widgets-row { display: grid; grid-template-columns: 1.1fr 1fr; gap: 18px; margin-bottom: 22px; }
@media (max-width: 900px) { .dash-widgets-row { grid-template-columns: 1fr; } }

.mini-metric-row { display: flex; gap: 24px; }
.mini-metric .label { font-size: 12px; color: var(--text-faint); text-transform: uppercase; letter-spacing: 0.05em; font-weight: 600; }
.mini-metric .value { font-size: 24px; font-weight: 800; margin-top: 6px; }

.status-breakdown-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }

.recent-client-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--panel-border); font-size: 13.5px; }
.recent-client-row:last-child { border-bottom: none; }
.recent-client-row .name { font-weight: 600; }
.recent-client-row .meta { color: var(--text-dim); font-size: 12.5px; }

.filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: rgba(14, 165, 233, 0.12);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-radius: var(--radius-sm);
  padding: 10px 14px;
  margin-bottom: 18px;
  font-size: 13.5px;
  color: var(--text);
}

.field input.field-invalid,
.field select.field-invalid,
.field textarea.field-invalid {
  border-color: #ef4444 !important;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  padding: 24px;
  margin-bottom: 26px;
}
.panel-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 18px; }
.panel-head h2 { font-size: 16.5px; margin: 0; }

table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--text-faint); font-weight: 600; font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; padding: 10px 12px; border-bottom: 1px solid var(--panel-border); }
td { padding: 13px 12px; border-bottom: 1px solid var(--panel-border); color: var(--text); }
tr:last-child td { border-bottom: none; }
.empty-row td { text-align: center; color: var(--text-faint); padding: 34px 12px; }

.badge { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.badge-ok { background: rgba(34, 197, 94, 0.14); color: #86efac; }
.badge-warn { background: rgba(245, 158, 11, 0.14); color: #fcd34d; }
.badge-danger { background: rgba(239, 68, 68, 0.14); color: #fca5a5; }
.badge-neutral { background: rgba(148, 163, 184, 0.14); color: #cbd5e1; }

.billing-lock-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  background: rgba(239, 68, 68, 0.12);
  border: 1px solid rgba(239, 68, 68, 0.35);
  color: #fca5a5;
  padding: 12px 18px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  margin-bottom: 18px;
}
.billing-lock-banner .btn { white-space: nowrap; }

.billing-summary { border: 1px solid var(--panel-border); border-radius: var(--radius-sm); padding: 4px 16px; margin-bottom: 20px; background: var(--bg-elevated); }
.billing-summary-row { display: flex; justify-content: space-between; align-items: center; padding: 13px 0; border-bottom: 1px solid var(--panel-border); }
.billing-summary-row:last-child { border-bottom: none; }
.billing-summary-label { color: var(--text-dim); font-size: 13.5px; }
.billing-summary-value { font-weight: 600; font-size: 14px; }

.alert-row { display: flex; align-items: flex-start; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--panel-border); }
.alert-row:last-child { border-bottom: none; }
.alert-icon { width: 34px; height: 34px; border-radius: 9px; display: flex; align-items: center; justify-content: center; font-size: 16px; flex-shrink: 0; }
.alert-row .body { flex: 1; }
.alert-row .title { font-weight: 600; font-size: 14px; }
.alert-row .desc { font-size: 13px; color: var(--text-dim); margin-top: 2px; }

.modal-overlay {
  position: fixed; inset: 0; background: rgba(4, 7, 16, 0.65);
  display: none; align-items: center; justify-content: center; z-index: 100; padding: 20px;
}
.modal-overlay.open { display: flex; }
.modal {
  background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius);
  width: 100%; max-width: 620px; max-height: 88vh; overflow-y: auto; padding: 30px;
}
.modal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 6px; }
.modal-head h2 { margin: 0; font-size: 19px; }
.modal-close { background: none; border: none; color: var(--text-dim); font-size: 22px; cursor: pointer; line-height: 1; }
.modal p.sub { color: var(--text-dim); font-size: 13.5px; margin: 0 0 22px; }

.carrier-row { display: flex; align-items: center; justify-content: space-between; background: var(--bg-elevated); border: 1px solid var(--panel-border); border-radius: var(--radius-sm); padding: 11px 14px; margin-bottom: 10px; }
.carrier-row .name { font-size: 14.5px; font-weight: 500; }

/* ---- Settings sub-navigation ---- */
.settings-subnav { display: flex; gap: 8px; margin-bottom: 20px; }
.settings-subtab {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 999px;
  border: 1px solid var(--panel-border);
  background: var(--panel);
  color: var(--text-dim);
  font-size: 13.5px;
  font-weight: 600;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.settings-subtab:hover { color: #fff; border-color: var(--primary-light); }
.settings-subtab.active {
  background: linear-gradient(135deg, var(--primary), var(--accent));
  color: #fff;
  border-color: transparent;
}

/* ---- Carrier grid (Settings > Contracted Carriers) ---- */
.carrier-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 14px;
}
.carrier-box {
  position: relative;
  background: var(--bg-elevated);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  padding: 16px 34px 16px 14px;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-dim);
  transition: border-color 0.15s ease, color 0.15s ease, background 0.15s ease;
}
.carrier-box.checked {
  border-color: var(--accent);
  background: rgba(20, 184, 166, 0.08);
  color: #fff;
}
.carrier-box .carrier-checkbox {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 18px;
  height: 18px;
  cursor: pointer;
  accent-color: var(--accent);
}
.carrier-box .carrier-remove {
  display: block;
  margin-top: 8px;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-faint);
  cursor: pointer;
  background: none;
  border: none;
  padding: 0;
  font-family: var(--font);
}
.carrier-box .carrier-remove:hover { color: #fca5a5; }

.toggle-row { display: flex; align-items: center; justify-content: space-between; background: var(--bg-elevated); border: 1px solid var(--panel-border); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 16px; }
.toggle-row .t-label { font-size: 14px; font-weight: 600; }
.toggle-row .t-sub { font-size: 12.5px; color: var(--text-faint); margin-top: 2px; }
.switch { position: relative; width: 42px; height: 24px; flex-shrink: 0; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch .slider { position: absolute; inset: 0; background: var(--panel-border); border-radius: 999px; cursor: pointer; transition: 0.2s; }
.switch .slider::before { content: ""; position: absolute; width: 18px; height: 18px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: 0.2s; }
.switch input:checked + .slider { background: var(--accent); }
.switch input:checked + .slider::before { transform: translateX(18px); }

.form-actions { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--panel-border); }

.empty-state { text-align: center; padding: 50px 20px; color: var(--text-faint); }
.empty-state .icon { font-size: 34px; margin-bottom: 10px; }

/* ---- Communication tab ---- */
.comm-shell {
  display: flex;
  height: 70vh;
  min-height: 480px;
  background: var(--panel);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  overflow: hidden;
}

.comm-sidebar {
  width: 280px;
  flex-shrink: 0;
  border-right: 1px solid var(--panel-border);
  display: flex;
  flex-direction: column;
}

.comm-sidebar-head { padding: 14px; border-bottom: 1px solid var(--panel-border); }
.comm-sidebar-head input {
  width: 100%;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 13.5px;
  font-family: var(--font);
  box-sizing: border-box;
}
.comm-sidebar-head input:focus { outline: none; border-color: var(--primary-light); }

.comm-client-list { flex: 1; overflow-y: auto; }
.comm-client-row { padding: 12px 16px; cursor: pointer; border-bottom: 1px solid var(--panel-border); transition: background 0.12s ease; }
.comm-client-row:hover { background: var(--bg-elevated); }
.comm-client-row.active { background: rgba(14, 165, 233, 0.16); border-left: 3px solid var(--primary); }
.comm-client-row .name { font-weight: 600; font-size: 14px; }
.comm-client-row .meta { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }

.comm-thread { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.comm-thread .empty-state { margin: auto; }
.comm-thread-head { padding: 16px 20px; border-bottom: 1px solid var(--panel-border); flex-shrink: 0; }
.comm-thread-name { font-weight: 700; font-size: 15px; }
.comm-thread-phone { font-size: 12.5px; color: var(--text-dim); margin-top: 2px; }

.comm-demo-banner {
  background: rgba(14, 165, 233, 0.12);
  border-bottom: 1px solid var(--panel-border);
  color: var(--text-dim);
  font-size: 12.5px;
  padding: 10px 20px;
  line-height: 1.5;
  flex-shrink: 0;
}

#commThreadWrap { display: flex; flex-direction: column; flex: 1; min-height: 0; }

.comm-messages { flex: 1; overflow-y: auto; padding: 18px 20px; display: flex; flex-direction: column; gap: 12px; }
.comm-bubble-row { display: flex; }
.comm-bubble-row.outbound { justify-content: flex-end; }
.comm-bubble-row.inbound { justify-content: flex-start; }
.comm-bubble { max-width: 70%; padding: 10px 14px; border-radius: 14px; }
.comm-bubble-row.outbound .comm-bubble { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-bottom-right-radius: 4px; }
.comm-bubble-row.inbound .comm-bubble { background: var(--bg-elevated); border: 1px solid var(--panel-border); border-bottom-left-radius: 4px; }
.comm-bubble-body { font-size: 14px; line-height: 1.4; white-space: pre-wrap; }
.comm-bubble-time { font-size: 10.5px; opacity: 0.7; margin-top: 5px; }

.comm-compose { padding: 14px 20px; border-top: 1px solid var(--panel-border); flex-shrink: 0; }
.comm-compose-fields { display: flex; flex-direction: column; gap: 10px; }
.comm-compose-row { display: flex; gap: 10px; }
.comm-compose textarea {
  flex: 1;
  resize: none;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--panel-border);
  background: var(--bg-elevated);
  color: var(--text);
  font-size: 14px;
  font-family: var(--font);
  box-sizing: border-box;
}
.comm-compose textarea:focus { outline: none; border-color: var(--primary-light); }
.comm-compose button { align-self: flex-end; }

.comm-direction-toggle { display: flex; gap: 6px; }
.comm-direction-btn {
  border: 1px solid var(--panel-border);
  background: transparent;
  color: var(--text-dim);
  font-size: 12.5px;
  font-weight: 600;
  padding: 6px 12px;
  border-radius: 999px;
  cursor: pointer;
  font-family: var(--font);
  transition: background 0.15s ease, color 0.15s ease, border-color 0.15s ease;
}
.comm-direction-btn:hover { border-color: var(--primary-light); color: #fff; }
.comm-direction-btn.active { background: var(--primary); border-color: var(--primary); color: #fff; }

.comm-bubble-row.risky .comm-bubble { outline: 2px solid #f87171; }
.comm-bubble-flag { font-size: 11px; font-weight: 700; color: #fca5a5; margin-bottom: 4px; }
.comm-bubble-delivery { font-size: 10.5px; margin-top: 4px; opacity: 0.85; }
.comm-bubble-delivery.ok { color: #86efac; }
.comm-bubble-delivery.error { color: #fca5a5; }

.comm-client-row .opted-out-tag { font-size: 11px; color: #fca5a5; font-weight: 600; }

/* ---- Retention Analytics ---- */
.growth-chart { display: flex; align-items: flex-end; gap: 10px; height: 140px; padding-top: 10px; }
.growth-bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 6px; }
.growth-bar { width: 100%; max-width: 36px; background: linear-gradient(180deg, var(--accent), var(--primary)); border-radius: 4px 4px 0 0; min-height: 3px; }
.growth-bar-count { font-size: 12px; font-weight: 700; color: var(--text); }
.growth-bar-label { font-size: 11px; color: var(--text-faint); }

.risk-feed-item { padding: 12px 0; border-bottom: 1px solid var(--panel-border); }
.risk-feed-item:last-child { border-bottom: none; }
.risk-feed-item .name { font-weight: 600; font-size: 13.5px; }
.risk-feed-item .body { font-size: 13px; color: var(--text-dim); margin-top: 3px; }
.risk-feed-item .time { font-size: 11.5px; color: var(--text-faint); margin-top: 4px; }

.consent-checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  padding: 12px 14px;
  background: var(--bg-elevated);
  border: 1px solid var(--panel-border);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-dim);
  cursor: pointer;
}
.consent-checkbox-row input { margin-top: 2px; accent-color: var(--accent); flex-shrink: 0; }

@media (max-width: 900px) {
  .sidebar { position: fixed; left: -260px; z-index: 90; transition: left 0.2s; }
  .sidebar.open { left: 0; }
  .main { padding: 22px 18px 60px; }
  .stat-cards { grid-template-columns: 1fr 1fr; }
  .comm-shell { flex-direction: column; height: auto; }
  .comm-sidebar { width: 100%; border-right: none; border-bottom: 1px solid var(--panel-border); max-height: 220px; }
}

/* ===== Log Policy redesign: rail progress + refined sections (v5.1) ===== */
.wizard-progress { display: flex; align-items: stretch; margin-bottom: 34px; }
.wizard-step { flex: 1; display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.wizard-step-circle { display: none; }
.wizard-step-top { display: flex; align-items: baseline; gap: 9px; }
.wizard-step-num {
  font-size: 11.5px; font-weight: 800; letter-spacing: 1.5px;
  color: var(--text-faint); transition: color 0.25s ease;
}
.wizard-step .wizard-step-label { font-size: 13px; font-weight: 600; color: var(--text-faint); transition: color 0.25s ease; white-space: nowrap; }
.wizard-step-bar {
  height: 6px; border-radius: 99px; background: var(--panel-border);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.wizard-step.active .wizard-step-bar {
  background: linear-gradient(90deg, var(--primary), var(--accent));
  box-shadow: 0 0 16px rgba(45, 212, 191, 0.35);
}
.wizard-step.active .wizard-step-num { color: var(--accent-light); }
.wizard-step.active .wizard-step-label { color: #fff; }
.wizard-step.completed .wizard-step-bar { background: var(--accent); }
.wizard-step.completed .wizard-step-num,
.wizard-step.completed .wizard-step-label { color: var(--accent-light); }
.wizard-step.completed .wizard-step-num::after { content: " ✓"; }
.wizard-line { flex: 0 0 16px; height: 0; margin: 0; background: transparent !important; }
@media (max-width: 620px) { .wizard-step .wizard-step-label { display: none; } }

.form-section {
  border-radius: 18px;
  position: relative;
  overflow: hidden;
}
.form-section::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 40%;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), var(--accent), transparent);
  opacity: 0.65;
}
.form-section-icon {
  width: 36px; height: 36px;
  border-radius: 11px;
  background: rgba(45, 212, 191, 0.09);
  border: 1px solid rgba(45, 212, 191, 0.28);
  color: var(--accent-light);
  display: flex; align-items: center; justify-content: center;
}
.form-section-icon svg { width: 17px; height: 17px; }

.field input:focus, .field select:focus, .field textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px rgba(45, 212, 191, 0.14);
  outline: none;
}

/* ===== Live policy card (Log Policy) ===== */
.logpolicy-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.policy-preview { position: sticky; top: 18px; }
.policy-card {
  position: relative;
  border-radius: 20px;
  padding: 22px 22px 18px;
  background:
    radial-gradient(circle at 90% -10%, rgba(14,165,233,0.18), transparent 55%),
    radial-gradient(circle at -10% 110%, rgba(45,212,191,0.14), transparent 50%),
    linear-gradient(160deg, #101a30, #0c1424);
  border: 1px solid rgba(45, 212, 191, 0.22);
  box-shadow: 0 18px 50px rgba(0,0,0,0.45);
  overflow: hidden;
}
.policy-card-top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.policy-card-brand { display: flex; align-items: center; gap: 7px; font-size: 10.5px; font-weight: 800; letter-spacing: 1.6px; color: var(--text-dim); }
.policy-card-brand svg { width: 13px; height: 13px; }
.policy-card-status {
  font-size: 10px; font-weight: 800; letter-spacing: 1.2px;
  padding: 4px 9px; border-radius: 99px;
  background: rgba(245, 158, 11, 0.14); color: #fbbf24; border: 1px solid rgba(245,158,11,0.35);
}
.policy-card-status.ready { background: rgba(45,212,191,0.13); color: var(--accent-light); border-color: rgba(45,212,191,0.4); }
.policy-card-name { font-size: 22px; font-weight: 800; letter-spacing: -0.4px; color: #fff; min-height: 28px; }
.policy-card-carrier { font-size: 13px; color: var(--text-dim); margin: 4px 0 20px; min-height: 18px; }
.policy-card-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 18px; margin-bottom: 20px; }
.pp-label { font-size: 10px; font-weight: 700; letter-spacing: 1.3px; color: var(--text-faint); text-transform: uppercase; margin-bottom: 3px; }
.pp-value { font-size: 15px; font-weight: 700; color: var(--text); }
.policy-card-footer { border-top: 1px dashed rgba(255,255,255,0.14); padding-top: 14px; }
.policy-card-number { font-family: "SF Mono", ui-monospace, Menlo, monospace; font-size: 14.5px; letter-spacing: 2.5px; color: var(--accent-light); }
.policy-card-watermark { position: absolute; right: -34px; bottom: -34px; width: 150px; height: 150px; opacity: 0.05; pointer-events: none; }
.policy-preview-hint { text-align: center; font-size: 12px; color: var(--text-faint); margin-top: 12px; }
@media (max-width: 1180px) { .logpolicy-grid { grid-template-columns: 1fr; } .policy-preview { display: none; } }

/* ===== Hero split + animated phone ===== */
.hero-split { display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 40px; align-items: center; }
@media (max-width: 980px) { .hero-split { grid-template-columns: 1fr; } .hero-phone-wrap { display: none; } }
.hero-phone-wrap { display: flex; justify-content: center; }
.hero-phone {
  width: 300px; height: 480px;
  border-radius: 38px;
  background: linear-gradient(170deg, #131c31, #0d1526);
  border: 1px solid rgba(255,255,255,0.14);
  box-shadow: 0 30px 80px rgba(0,0,0,0.55), inset 0 0 0 6px #060a14;
  position: relative;
  padding: 18px 14px 14px;
  display: flex; flex-direction: column;
  transform: rotate(2deg);
}
.hero-phone-notch { position: absolute; top: 9px; left: 50%; transform: translateX(-50%); width: 90px; height: 16px; border-radius: 10px; background: #060a14; }
.hero-phone-head { display: flex; align-items: center; gap: 10px; padding: 16px 8px 12px; border-bottom: 1px solid rgba(255,255,255,0.08); }
.hero-phone-avatar { width: 32px; height: 32px; border-radius: 50%; background: rgba(45,212,191,0.12); border: 1px solid rgba(45,212,191,0.35); display: flex; align-items: center; justify-content: center; }
.hero-phone-avatar svg { width: 15px; height: 15px; }
.hero-phone-name { font-size: 13.5px; font-weight: 700; color: #fff; }
.hero-phone-sub { font-size: 11px; color: var(--text-faint); }
.hero-phone-screen { flex: 1; overflow: hidden; padding: 12px 4px; display: flex; flex-direction: column; gap: 9px; }
.phone-bubble {
  max-width: 85%; padding: 9px 12px; border-radius: 14px;
  font-size: 12.5px; line-height: 1.45;
  animation: bubbleIn 0.35s ease both;
}
.phone-bubble.from-agency { align-self: flex-start; background: #1b2742; color: var(--text); border-bottom-left-radius: 4px; }
.phone-bubble.from-client { align-self: flex-end; background: linear-gradient(135deg, var(--primary), var(--accent)); color: #04121f; font-weight: 600; border-bottom-right-radius: 4px; }
@keyframes bubbleIn { from { opacity: 0; transform: translateY(10px) scale(0.96); } to { opacity: 1; transform: none; } }

/* ===== ROI calculator ===== */
.roi-grid { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 28px; align-items: start; }
@media (max-width: 900px) { .roi-grid { grid-template-columns: 1fr; } }
.roi-controls { background: var(--panel); border: 1px solid var(--panel-border); border-radius: var(--radius); padding: 28px; }
.roi-control { margin-bottom: 26px; }
.roi-control-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 10px; }
.roi-control-head label { font-size: 14px; font-weight: 600; color: var(--text); }
.roi-val { font-size: 17px; font-weight: 800; color: var(--accent-light); }
.roi-control input[type="range"] {
  width: 100%; appearance: none; -webkit-appearance: none; height: 6px; border-radius: 99px;
  background: var(--panel-border); outline: none;
}
.roi-control input[type="range"]::-webkit-slider-thumb {
  -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--accent));
  border: 3px solid #0b1120; cursor: pointer;
  box-shadow: 0 0 12px rgba(45,212,191,0.5);
}
.roi-fineprint { font-size: 11.5px; color: var(--text-faint); line-height: 1.5; margin-top: 4px; }
.roi-results { background: linear-gradient(165deg, #101a30, #0c1424); border: 1px solid rgba(45,212,191,0.22); border-radius: var(--radius); padding: 28px; }
.roi-result { padding: 14px 0; border-bottom: 1px dashed rgba(255,255,255,0.1); }
.roi-result:first-child { padding-top: 0; }
.roi-result-label { font-size: 12.5px; font-weight: 600; color: var(--text-dim); margin-bottom: 4px; }
.roi-result-num { font-size: 30px; font-weight: 800; letter-spacing: -0.5px; color: #fff; }
.roi-result-num span { font-size: 15px; font-weight: 600; color: var(--text-faint); }
.roi-result.danger .roi-result-num { color: #f87171; }
.roi-result.accent .roi-result-num { color: var(--accent-light); }
.roi-verdict { margin-top: 16px; font-size: 14px; color: var(--text-dim); line-height: 1.55; }
.roi-verdict strong { color: var(--accent-light); font-size: 16px; }

/* ===== Animation pass (v9) ===== */
.hero { position: relative; overflow: hidden; }
.hero-orb { position: absolute; border-radius: 50%; filter: blur(70px); opacity: 0.35; pointer-events: none; }
.hero-orb-a { width: 420px; height: 420px; background: #0ea5e9; top: -140px; left: -80px; animation: orbDrift 16s ease-in-out infinite alternate; }
.hero-orb-b { width: 360px; height: 360px; background: #2dd4bf; bottom: -160px; right: -60px; animation: orbDrift 19s ease-in-out infinite alternate-reverse; }
@keyframes orbDrift { from { transform: translate(0,0) scale(1); } to { transform: translate(60px, 40px) scale(1.15); } }

.hero-phone { animation: phoneFloat 6s ease-in-out infinite; }
@keyframes phoneFloat { 0%,100% { transform: rotate(2deg) translateY(0); } 50% { transform: rotate(2.6deg) translateY(-10px); } }

.phone-typing { display: flex; gap: 4px; padding: 12px 14px; width: 54px; }
.phone-typing span { width: 6px; height: 6px; border-radius: 50%; background: var(--text-dim); animation: typingBounce 1s infinite ease-in-out; }
.phone-typing span:nth-child(2) { animation-delay: 0.15s; }
.phone-typing span:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce { 0%,60%,100% { transform: translateY(0); opacity: .45; } 30% { transform: translateY(-4px); opacity: 1; } }

.reveal { opacity: 0; transform: translateY(26px); transition: opacity .6s ease, transform .6s cubic-bezier(.2,.7,.2,1); }
.reveal-in { opacity: 1; transform: none; }

.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 40%;
  left: -60%; transform: skewX(-20deg);
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.35), transparent);
  animation: btnShine 3.6s ease-in-out infinite;
}
@keyframes btnShine { 0%, 55% { left: -60%; } 85%, 100% { left: 130%; } }

.card { transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease; }
.card:hover { transform: translateY(-5px); border-color: rgba(45,212,191,0.4); box-shadow: 0 16px 44px rgba(0,0,0,0.4); }

.logo-mark svg { transition: transform .3s ease; }
.logo:hover .logo-mark svg { transform: rotate(90deg) scale(1.15); }

@media (prefers-reduced-motion: reduce) {
  .hero-orb, .hero-phone, .btn-primary::after, .phone-typing span { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ===== Editorial hero headline ===== */
.hero-headline { display: flex; flex-direction: column; gap: 2px; }
.hl-line { display: block; }
.hl-sans {
  font-family: "Bricolage Grotesque", var(--font);
  font-weight: 800;
  font-size: clamp(40px, 5.2vw, 64px);
  letter-spacing: -2px;
  color: #fff;
  line-height: 1.04;
}
.hl-serif {
  font-family: "Instrument Serif", Georgia, serif;
  font-style: italic;
  font-weight: 400;
  font-size: clamp(44px, 5.8vw, 72px);
  letter-spacing: -1px;
  line-height: 1.08;
  background: linear-gradient(100deg, #38bdf8, #2dd4bf 60%, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  padding-right: 6px;
}
.hl-w { display: inline-block; opacity: 0; transform: translateY(22px) rotate(1.5deg); animation: wordIn .7s cubic-bezier(.2,.75,.25,1) forwards; }
.hl-sans .hl-w:nth-child(1) { animation-delay: .05s; }
.hl-sans .hl-w:nth-child(2) { animation-delay: .16s; }
.hl-sans .hl-w:nth-child(3) { animation-delay: .27s; }
.hl-serif .hl-w:nth-child(1) { animation-delay: .48s; }
.hl-serif .hl-w:nth-child(2) { animation-delay: .58s; }
.hl-serif .hl-w:nth-child(3) { animation-delay: .70s; }
@keyframes wordIn { to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .hl-w { opacity: 1; transform: none; animation: none; } }

/* fix: neutralize the legacy .hero h1 span gradient on the new headline */
.hero-headline .hl-line, .hero-headline .hl-w {
  background: none;
  -webkit-background-clip: initial;
  background-clip: initial;
  -webkit-text-fill-color: currentColor;
  color: inherit;
}
.hl-sans { color: #fff; }
.hl-serif .hl-w {
  background: linear-gradient(100deg, #38bdf8, #2dd4bf 60%, #5eead4);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  -webkit-text-fill-color: transparent;
}

/* pricing badges: anchor on all cards, level with each other */
.pricing-card { position: relative; }
