/* ChurnRadar Design System — Zero External CDN, Stripe/Linear-grade Enterprise UI */
:root {
  --bg: #ffffff;
  --bg-subtle: #f8fafc;
  --bg-dark: #0b1120;
  --bg-dark-card: #111a2e;
  --ink: #0f172a;
  --ink-muted: #475569;
  --ink-soft: #64748b;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --brand: #2563eb;
  --brand-hover: #1d4ed8;
  --brand-soft: #eff6ff;
  --accent: #0ea5e9;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --warning: #d97706;
  --warning-soft: #fffbeb;
  --success: #059669;
  --success-soft: #ecfdf5;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, 0.05);
  --shadow-md: 0 8px 24px rgba(15, 23, 42, 0.08);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", "Inter", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}

*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

a:hover {
  text-decoration: underline;
}

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

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

/* Navbar */
.nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}

.nav .container {
  max-width: 1340px;
}

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  gap: 12px;
}

.brand-logo {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 18px;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.brand-logo:hover { text-decoration: none; }

.brand-mark {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: linear-gradient(135deg, #2563eb 0%, #0ea5e9 100%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 900;
  font-size: 14px;
  box-shadow: 0 2px 8px rgba(37, 99, 235, 0.35);
}

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

.nav-links > a,
.nav-dropdown-trigger {
  color: var(--ink-muted);
  font-weight: 500;
  font-size: 13.5px;
  white-space: nowrap;
}

.nav-links > a:hover,
.nav-dropdown-trigger:hover {
  color: var(--ink);
  text-decoration: none;
}

.nav-dropdown {
  position: relative;
}

.nav-dropdown-trigger {
  list-style: none;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 5px 10px;
  border-radius: 8px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  font-weight: 600;
  color: var(--ink);
  user-select: none;
}

.nav-dropdown-trigger::-webkit-details-marker {
  display: none;
}

.nav-dropdown[open] .nav-dropdown-trigger {
  border-color: var(--brand);
  color: var(--brand);
}

.nav-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--brand);
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.nav-caret {
  font-size: 11px;
  color: var(--ink-soft);
}

.nav-dropdown-menu {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  width: 328px;
  max-height: min(76vh, 620px);
  overflow-y: auto;
  padding: 8px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.14);
  display: flex;
  flex-direction: column;
  gap: 2px;
  z-index: 60;
}

.nav-dropdown-menu a {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 10px;
  border-radius: 8px;
  color: var(--ink);
  text-decoration: none;
  white-space: normal;
}

.nav-dropdown-menu a:hover {
  background: var(--bg-subtle);
  text-decoration: none;
}

.nav-dropdown-menu strong {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.25;
}

.nav-dropdown-menu span {
  font-size: 11.5px;
  color: var(--ink-soft);
  line-height: 1.3;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 14px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.btn:hover { text-decoration: none; }

.btn-primary {
  background: var(--brand);
  color: #ffffff;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.25);
}

.btn-primary:hover {
  background: var(--brand-hover);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg-subtle);
}

.btn-dark {
  background: var(--bg-dark);
  color: #ffffff;
}

.btn-dark:hover {
  background: #1e293b;
}

.btn-sm {
  padding: 6px 12px;
  font-size: 13px;
}

.btn-danger-ghost {
  background: transparent;
  color: var(--danger);
  border-color: #fecaca;
}

.btn-danger-ghost:hover {
  background: var(--danger-soft);
}

/* Badges & Pills */
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  background: var(--brand-soft);
  color: var(--brand);
  border: 1px solid #bfdbfe;
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.badge-critical { background: #fee2e2; color: #b91c1c; }
.badge-high, .badge-elevated { background: #ffedd5; color: #c2410c; }
.badge-medium, .badge-moderate { background: #fef3c7; color: #b45309; }
.badge-low, .badge-stable, .badge-ok { background: #d1fae5; color: #047857; }
.badge-muted { background: #f1f5f9; color: #475569; }

/* Hero */
.hero {
  padding: 72px 0 60px;
  background:
    radial-gradient(circle at 18% 0%, rgba(37, 99, 235, 0.08) 0%, transparent 45%),
    radial-gradient(circle at 82% 10%, rgba(14, 165, 233, 0.08) 0%, transparent 42%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid var(--border);
}

.hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr);
  gap: 44px;
  align-items: center;
}

.hero h1 {
  font-size: clamp(32px, 4.4vw, 50px);
  line-height: 1.1;
  letter-spacing: -0.03em;
  margin: 16px 0 18px;
  color: var(--ink);
}

.hero-sub {
  font-size: 17px;
  color: var(--ink-muted);
  margin: 0 0 26px;
  max-width: 580px;
}

/* Autopsy Search Box */
.autopsy-box {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  box-shadow: var(--shadow-md);
}

.autopsy-form {
  display: flex;
  gap: 10px;
}

.autopsy-input {
  flex: 1;
  min-width: 0;
  padding: 12px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 15px;
  color: var(--ink);
  outline: none;
}

.autopsy-input:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.quick-chips {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 12px;
  font-size: 12.5px;
  color: var(--ink-soft);
}

.chip {
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink-muted);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}

.chip:hover {
  border-color: var(--brand);
  color: var(--brand);
  background: var(--brand-soft);
}

.quota-line {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px dashed var(--border);
  font-size: 12.5px;
  color: var(--ink-soft);
}

.status-banner {
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  display: none;
}

.status-banner.show { display: block; }
.status-banner.loading { background: var(--brand-soft); color: #1e40af; border: 1px solid #bfdbfe; }
.status-banner.error { background: var(--danger-soft); color: #991b1b; border: 1px solid #fecaca; }

/* Hero preview card */
.hero-preview {
  background: var(--bg-dark);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 24px;
  border: 1px solid #1e293b;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
}

.preview-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 14px;
  border-bottom: 1px solid #1e293b;
  margin-bottom: 16px;
}

.preview-score {
  font-size: 30px;
  font-weight: 800;
  color: #f87171;
  line-height: 1;
}

.preview-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 0;
  font-size: 13px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.12);
}

.preview-quote {
  margin-top: 14px;
  padding: 12px;
  border-radius: var(--radius-sm);
  background: rgba(37, 99, 235, 0.14);
  border-left: 3px solid #38bdf8;
  font-size: 12.5px;
  color: #e2e8f0;
}

/* Sections */
.section {
  padding: 64px 0;
}

.section-subtle {
  background: var(--bg-subtle);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}

.section-head {
  max-width: 700px;
  margin-bottom: 36px;
}

.section-head h2 {
  font-size: 28px;
  letter-spacing: -0.025em;
  margin: 0 0 10px;
}

.section-head p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 16px;
}

/* Cards & Grids */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

.grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

.card {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.card h3 {
  margin: 0 0 8px;
  font-size: 17px;
  letter-spacing: -0.015em;
}

.card p {
  margin: 0;
  color: var(--ink-muted);
  font-size: 14px;
}

/* Pricing */
.pricing-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
}

.pricing-card.featured {
  border: 2px solid var(--brand);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.14);
}

.price-num {
  font-size: 38px;
  font-weight: 800;
  letter-spacing: -0.03em;
  margin: 12px 0 4px;
}

.price-num span {
  font-size: 15px;
  font-weight: 500;
  color: var(--ink-soft);
}

.feature-list {
  list-style: none;
  padding: 0;
  margin: 18px 0 24px;
}

.feature-list li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-muted);
  display: flex;
  gap: 8px;
}

.feature-list li::before {
  content: "✓";
  color: var(--success);
  font-weight: 800;
}

.alt-neutral-list {
  list-style: none;
  padding: 0;
  margin: 0;
}

.alt-neutral-list li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--ink-muted);
  display: flex;
  gap: 8px;
}

.alt-neutral-list li::before {
  content: "•";
  color: #64748b;
  font-weight: 800;
}

/* Comparison table */
.table-wrap {
  width: 100%;
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: #fff;
}

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

th, td {
  padding: 13px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}

th {
  background: var(--bg-subtle);
  font-weight: 700;
  color: var(--ink);
  font-size: 13px;
}

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

/* Report Page */
.report-hero {
  background: var(--bg-dark);
  color: #f8fafc;
  padding: 44px 0 40px;
}

.report-hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.report-hero h1 {
  font-size: clamp(26px, 3.6vw, 38px);
  margin: 10px 0 10px;
  letter-spacing: -0.025em;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 26px;
}

.kpi-card {
  background: var(--bg-dark-card);
  border: 1px solid #1e293b;
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.kpi-label {
  font-size: 12px;
  color: #94a3b8;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 600;
}

.kpi-val {
  font-size: 26px;
  font-weight: 800;
  margin-top: 4px;
  color: #ffffff;
}

.cluster-bar-bg {
  width: 100%;
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
  margin: 10px 0 12px;
}

.cluster-bar-fill {
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #ef4444, #f97316);
}

.quote-box {
  background: var(--bg-subtle);
  border-left: 3px solid var(--border-strong);
  padding: 10px 12px;
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 8px;
  word-break: break-word;
}

.battlecard-panel {
  background: linear-gradient(180deg, #0b1120 0%, #111a2e 100%);
  color: #f8fafc;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid #1e293b;
}

.battlecard-panel h2, .battlecard-panel h3 {
  color: #ffffff;
}

.script-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(148, 163, 184, 0.2);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-top: 10px;
  font-size: 13.5px;
  color: #e2e8f0;
}

.cta-banner {
  background: linear-gradient(135deg, #1d4ed8 0%, #0f172a 100%);
  color: #ffffff;
  border-radius: var(--radius-lg);
  padding: 34px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}

/* SEO Cards */
.seo-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  transition: transform 0.15s ease, border-color 0.15s ease;
}

.seo-card:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  text-decoration: none;
}

/* Console & Slack Preview */
.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.field label {
  display: block;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 5px;
}

.field input, .field select {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-size: 14px;
}

.slack-preview {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-left: 4px solid #2563eb;
  border-radius: 8px;
  padding: 16px 18px;
  font-size: 14px;
}

.slack-header {
  font-weight: 800;
  font-size: 15px;
  margin-bottom: 8px;
  color: #0f172a;
}

.slack-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 10px 0;
  padding: 10px;
  background: var(--bg-subtle);
  border-radius: 6px;
}

.code-pre {
  background: #0f172a;
  color: #e2e8f0;
  padding: 14px;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  overflow-x: auto;
  max-height: 360px;
}

.empty-chart {
  padding: 24px;
  background: var(--bg-subtle);
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius-sm);
  color: var(--ink-muted);
  text-align: center;
}

/* Compare & Battlecard Export */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

.action-row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.compare-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.compare-brand {
  font-size: 20px;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: var(--ink);
}

.vs-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 9px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.06em;
  border: 1px solid #bfdbfe;
}

.compare-mini-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.compare-mini-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 10px 12px;
}

.switch-card {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-md);
  padding: 20px;
}

.faq-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.faq-item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

/* Battlecard Generator Tool */
.tool-tabs {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 24px;
}

.tool-tab {
  background: rgba(255, 255, 255, 0.08);
  color: #cbd5e1;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: var(--radius-sm);
  padding: 10px 18px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
}

.tool-tab:hover {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.tool-tab.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
  box-shadow: 0 4px 14px rgba(37, 99, 235, 0.35);
}

.preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  text-align: left;
  cursor: pointer;
  transition: all 0.15s ease;
  color: var(--ink);
  font-family: var(--font-sans);
}

.preset-btn:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.preset-btn strong {
  font-size: 14px;
  line-height: 1.35;
}

.preset-sub {
  font-size: 12px;
  color: var(--ink-soft);
}

.battlecard-header-bar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
  padding: 20px 24px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  margin-bottom: 24px;
}

.tool-section-block {
  margin-bottom: 24px;
}

.tool-section-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.tool-section-title h3 {
  margin: 0;
  font-size: 18px;
}

.talk-track-item {
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.talk-track-item:first-of-type {
  padding-top: 0;
}

.talk-track-item:last-of-type {
  border-bottom: none;
  padding-bottom: 0;
}

.objection-card {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  margin-bottom: 12px;
}

.objection-card:last-child {
  margin-bottom: 0;
}

.objection-q {
  font-weight: 700;
  font-size: 14px;
  color: var(--danger);
  margin-bottom: 6px;
}

.objection-a {
  margin: 0 0 8px;
  font-size: 14px;
  color: var(--ink);
}

.objection-proof {
  font-size: 12.5px;
  color: var(--ink-muted);
}

.email-subject {
  padding: 10px 14px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 14px;
  margin-bottom: 10px;
}

.email-body {
  margin: 0;
  padding: 16px;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono);
  font-size: 13px;
  line-height: 1.65;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

@media print {
  @page {
    margin: 12mm;
  }
  .nav, .footer, .no-print {
    display: none !important;
  }
  body {
    background: #ffffff !important;
    color: #0f172a !important;
    font-size: 11.5pt;
  }
  .container {
    max-width: 100% !important;
    padding: 0 !important;
  }
  .section {
    padding: 8px 0 !important;
  }
  .sample-print-header {
    display: block !important;
  }
  .card, .battlecard-header-bar, .sample-block, .sample-cluster-item, .sample-hook-card, .sample-kpi-card {
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .sample-kpi-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .table-wrap {
    overflow: visible !important;
    border: 1px solid #cbd5e1 !important;
  }
  table {
    width: 100% !important;
    table-layout: fixed;
    font-size: 9.5pt;
  }
  th, td {
    padding: 6px 8px !important;
    word-break: break-word;
  }
  .grid-2 {
    grid-template-columns: 1fr !important;
    gap: 12px !important;
  }
  .email-body {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1px solid #cbd5e1 !important;
  }
  #competitive-battlecard-builder {
    padding: 0 !important;
  }
  .cbb-workspace {
    display: block !important;
  }
  .cbb-editor-col,
  .cbb-export-bar {
    display: none !important;
  }
  .cbb-sheet {
    border: 1px solid #cbd5e1 !important;
    padding: 16px 18px !important;
    box-shadow: none !important;
    margin: 0 !important;
  }
  .cbb-guardrail-banner {
    background: #f8fafc !important;
    color: #0f172a !important;
    border: 1.5px solid #334155 !important;
    padding: 8px 10px !important;
    margin-bottom: 12px !important;
  }
  .cbb-sheet-head {
    padding-bottom: 10px !important;
    margin-bottom: 12px !important;
  }
  .cbb-sheet-title {
    font-size: 17pt !important;
  }
  .cbb-sheet-block {
    margin-bottom: 10px !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .cbb-pain-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .cbb-pain-card,
  .cbb-obj-row {
    break-inside: avoid;
    page-break-inside: avoid;
    padding: 7px 9px !important;
  }
  .cbb-bottom-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
  }
}

/* Start Monitoring / Instant Invoice & Checkout Modal */
.plan-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1000;
  background: rgba(15, 23, 42, 0.62);
  backdrop-filter: blur(4px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.plan-modal-backdrop[hidden],
.plan-modal-header[hidden],
.plan-modal-tabs[hidden],
.plan-modal-form[hidden],
.plan-modal-receipt[hidden],
.plan-modal-error[hidden] {
  display: none !important;
}

.plan-modal .btn {
  white-space: normal;
  text-align: center;
  line-height: 1.35;
}

.plan-modal {
  position: relative;
  width: 100%;
  max-width: 480px;
  max-height: 92vh;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: 0 24px 60px rgba(15, 23, 42, 0.28);
  padding: 26px 26px 22px;
  color: var(--ink);
}

.plan-modal-close {
  position: absolute;
  top: 14px;
  right: 14px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink-muted);
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.plan-modal-close:hover {
  background: #e2e8f0;
  color: var(--ink);
}

.plan-modal-header {
  padding-right: 28px;
  margin-bottom: 16px;
}

.plan-modal-header h3 {
  margin: 8px 0 6px;
  font-size: 20px;
  line-height: 1.25;
  letter-spacing: -0.02em;
}

.plan-modal-header p {
  margin: 0;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.5;
}

.plan-modal-tabs {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 16px;
}

.plan-tab {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-family: var(--font-sans);
  transition: all 0.15s ease;
}

.plan-tab strong {
  font-size: 13.5px;
}

.plan-tab span {
  font-size: 11.5px;
  color: var(--ink-soft);
}

.plan-tab:hover {
  border-color: var(--brand);
}

.plan-tab.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.plan-tab.active strong {
  color: var(--brand);
}

.plan-modal-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.plan-modal-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.plan-modal-field label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.plan-modal-error {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 13px;
  line-height: 1.45;
}

.plan-modal-footnote {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
  text-align: center;
  line-height: 1.5;
}

.plan-modal-receipt {
  text-align: center;
  padding-top: 4px;
}

.plan-receipt-check {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 22px;
  font-weight: 800;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
}

.plan-modal-receipt h4 {
  margin: 0 0 8px;
  font-size: 19px;
  color: var(--ink);
}

.plan-modal-receipt > p {
  margin: 0 0 14px;
  font-size: 13.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.plan-receipt-meta {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 16px;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
}

.plan-receipt-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.plan-receipt-meta span {
  color: var(--ink-soft);
}

.plan-receipt-meta strong {
  color: var(--ink);
  text-align: right;
  word-break: break-word;
}

.plan-receipt-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* Competitor Churn ROI Calculator (V1.8) */
.roi-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.15fr);
  gap: 24px;
  align-items: start;
}

.roi-grid > * {
  min-width: 0;
  max-width: 100%;
}

.roi-grid select,
.roi-grid input[type="text"],
.roi-grid input[type="email"] {
  max-width: 100%;
  min-width: 0;
}

.roi-preset-btn.active,
.scrc-preset-btn.active,
.seg-preset-btn.active,
.nrr-preset-btn.active,
.outreach-preset-btn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.roi-comp-snapshot {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  margin-bottom: 18px;
}

.roi-control {
  margin-bottom: 16px;
}

.roi-control-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.roi-control-head label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.roi-num-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  padding: 4px 10px;
  font-size: 13px;
  color: var(--ink-soft);
  font-weight: 600;
}

.roi-num-wrap input {
  width: 82px;
  border: none;
  background: transparent;
  color: var(--ink);
  font-weight: 700;
  font-size: 14px;
  text-align: right;
  font-family: var(--font-sans);
  outline: none;
}

.roi-slider {
  width: 100%;
  accent-color: var(--brand);
  cursor: pointer;
  margin: 2px 0;
}

.roi-range-scale {
  display: flex;
  justify-content: space-between;
  font-size: 11px;
  color: var(--ink-soft);
  margin-top: 2px;
}

.roi-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.roi-kpi-box {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-md);
  padding: 16px;
}

.roi-kpi-primary {
  border-color: rgba(59, 130, 246, 0.55);
  background: rgba(37, 99, 235, 0.14);
}

.scrc-kpi-danger {
  border-color: rgba(248, 113, 113, 0.45);
  background: rgba(220, 38, 38, 0.14);
}

.roi-kpi-big {
  font-size: clamp(24px, 2.8vw, 32px);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin-top: 4px;
  line-height: 1.15;
  word-break: break-word;
}

.roi-kpi-val {
  font-size: clamp(20px, 2.2vw, 24px);
  font-weight: 800;
  letter-spacing: -0.02em;
  color: #f8fafc;
  margin-top: 4px;
  line-height: 1.2;
  word-break: break-word;
}

.roi-kpi-sub {
  font-size: 12px;
  color: #cbd5e1;
  margin-top: 5px;
  line-height: 1.4;
}

.roi-row-selected {
  background: var(--brand-soft);
}

/* Vertical Playbooks Displacement Windows (V1.9) */
.window-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.window-grid-2 {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.window-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.window-block {
  padding: 10px 12px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
}

.window-block p {
  margin: 0;
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--ink-muted);
}

.window-label {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand);
  margin-bottom: 4px;
}

/* B2B Competitor Switch Email Generator & Spam Linter (V2.2) */
.seg-field-block {
  margin-bottom: 16px;
}

.seg-field-block input.autopsy-input,
.seg-field-block select.autopsy-input {
  width: 100%;
}

.seg-field-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
  margin-bottom: 6px;
}

.seg-textarea {
  width: 100%;
  resize: vertical;
  font-family: var(--font-sans);
  line-height: 1.55;
}

.seg-chip-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 8px;
}

.seg-pill-btn {
  padding: 5px 10px;
  font-size: 12px;
  font-weight: 600;
  border-radius: 999px;
  border: 1px solid var(--border-strong);
  background: var(--bg-subtle);
  color: var(--ink-muted);
  cursor: pointer;
  font-family: var(--font-sans);
  transition: all 0.15s ease;
}

.seg-pill-btn:hover {
  border-color: var(--brand);
  color: var(--brand);
}

.seg-pill-btn.active {
  background: var(--brand);
  border-color: var(--brand);
  color: #ffffff;
}

.seg-role-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.seg-summary-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.seg-lint-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.seg-hits-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seg-hit-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  padding: 8px 10px;
  background: var(--danger-soft);
  border: 1px solid #fecaca;
  border-radius: var(--radius-sm);
  font-size: 12.5px;
  color: var(--ink);
  line-height: 1.45;
}

/* SaaS NRR & GRR Valuation Calculator (V2.3) */
.nrr-legend-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.nrr-legend-pill {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  text-align: center;
  font-size: 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.nrr-legend-pill strong {
  font-size: 13px;
}

.nrr-tier-warn {
  background: var(--danger-soft);
  border-color: #fecaca;
  color: #b91c1c;
}

.nrr-tier-healthy {
  background: var(--brand-soft);
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.nrr-tier-top {
  background: var(--success-soft);
  border-color: #a7f3d0;
  color: #047857;
}

.nrr-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 4px;
  vertical-align: middle;
}

.nrr-dot-curr {
  background: #64748b;
}

.nrr-dot-imp {
  background: #10b981;
}

.nrr-bars-wrap {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nrr-bar-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.nrr-bar-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
}

.nrr-bar-track {
  width: 100%;
  height: 10px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 999px;
  overflow: hidden;
}

.nrr-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.nrr-bar-curr {
  background: linear-gradient(90deg, #64748b 0%, #94a3b8 100%);
}

.nrr-bar-imp {
  background: linear-gradient(90deg, #059669 0%, #34d399 100%);
}

/* SaaS CAC Payback & LTV:CAC Calculator (V2.4) */
.cac-mode-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.cac-mode-row label {
  font-size: 13.5px;
  font-weight: 600;
  color: var(--ink);
}

.cac-mode-toggle {
  display: inline-flex;
  padding: 2px;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: 8px;
  gap: 2px;
}

.cac-mode-btn {
  border: none;
  background: transparent;
  color: var(--ink-muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 6px;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
}

.cac-mode-btn.active {
  background: var(--brand);
  color: #ffffff;
}

.cac-bar-mid {
  background: linear-gradient(90deg, #2563eb 0%, #38bdf8 100%);
}

.cac-sens-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cac-sens-card {
  padding: 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
}

.cac-sens-highlight {
  border-color: #10b981;
  background: #f0fdf4;
  box-shadow: 0 0 0 1px rgba(16, 185, 129, 0.22);
}

.cac-sc-meta {
  margin-top: auto;
  padding-top: 8px;
  border-top: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 12px;
}

.cac-sc-meta > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 6px;
}

.cac-sc-meta span {
  color: var(--ink-soft);
}

/* V2.5 Monthly <-> Annual Churn Converter & Cohort Survival Curve */
.conv-bridge {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px 12px;
  margin: 4px 0 0;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 11.5px;
  color: #1e40af;
}

.conv-bridge-pill {
  font-weight: 700;
  white-space: nowrap;
}

.conv-bridge code {
  font-size: 11px;
  background: transparent;
  color: #1d4ed8;
  font-weight: 600;
}

.conv-trap-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  background: #fffbeb;
  border: 1px solid #fde68a;
}

.conv-bench-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.conv-bench-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.conv-bench-row.active {
  border-color: var(--brand);
  background: #eff6ff;
}

.conv-svg-wrap {
  padding: 10px 8px 6px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #ffffff;
}

.conv-legend {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-muted);
}

.conv-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-right: 5px;
  vertical-align: -1px;
}

.conv-dot-curr { background: #2563eb; }
.conv-dot-imp { background: #10b981; }

/* V2.6 Sanitized Printable Sample Weekly Digest (/sample-report) */
.sample-print-header {
  display: none;
}

.sample-disclaimer {
  padding: 14px 18px;
  border-radius: var(--radius);
  background: #fffbeb;
  border: 1px solid #f59e0b;
}

.sample-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.sample-kpi-card {
  padding: 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  border-top: 3px solid var(--brand);
}

.sample-kpi-danger { border-top-color: var(--danger); }
.sample-kpi-warn { border-top-color: #d97706; }
.sample-kpi-ok { border-top-color: var(--success); }

.sample-kpi-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-soft);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sample-kpi-value {
  font-size: 28px;
  font-weight: 900;
  color: var(--ink);
  letter-spacing: -0.025em;
  margin: 4px 0 4px;
  line-height: 1.1;
}

.sample-kpi-sub {
  font-size: 12px;
  color: var(--ink-muted);
  line-height: 1.45;
}

.sample-cluster-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.sample-cluster-item {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.sample-bar-critical {
  background: linear-gradient(90deg, #dc2626 0%, #f97316 100%);
}

.sample-bar-high {
  background: linear-gradient(90deg, #ea580c 0%, #f59e0b 100%);
}

.sample-quote {
  margin: 0;
  padding: 8px 12px;
  border-left: 3px solid var(--brand);
  background: #ffffff;
  border-radius: 0 6px 6px 0;
  font-size: 12.5px;
  color: var(--ink-muted);
  line-height: 1.55;
}

.sample-hook-card {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
}

.sample-slack-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border);
  border-left: 4px solid #2563eb;
}

/* Footer */
.footer {
  padding: 40px 0;
  border-top: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink-soft);
  font-size: 13.5px;
}

.footer-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 16px;
}

.footer-network {
  margin-top: 6px;
  font-size: 12.5px;
  color: var(--ink-soft);
  line-height: 1.75;
  max-width: 780px;
}

.footer-network a {
  white-space: nowrap;
}

/* Report unindexed rival pill & Free Tools Hub (/tools) */
.alt-status-pill {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: var(--ink-muted);
  background: #f1f5f9;
  border: 1px solid var(--border);
  white-space: nowrap;
}

.nav-dropdown-menu a.nav-dropdown-all {
  background: #eff6ff;
  border-bottom: 1px solid #dbeafe;
  margin-bottom: 4px;
}

.nav-dropdown-menu a.nav-dropdown-all strong {
  color: var(--brand);
}

.tools-hub-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
}

@media (min-width: 861px) {
  .tools-hub-grid > .tool-hub-card:first-child:nth-last-child(odd) {
    grid-column: 1 / -1;
  }
}

.tool-hub-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.tool-hub-bullets {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 5px;
  font-size: 13px;
  color: var(--ink);
  line-height: 1.5;
}

.tool-hub-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

/* Scenario Playbooks: Human-Reviewed Compliance & Outreach Draft Cards */
.pb-compliance-badge {
  display: inline-flex;
  align-items: center;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 700;
  color: #991b1b;
  background: #fef2f2;
  border: 1px solid #fecaca;
}

.pb-template-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.pb-template-grid-3 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.pb-template-card {
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
}

.pb-template-pre {
  margin: 0;
  padding: 12px;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 12.5px;
  line-height: 1.55;
  color: var(--ink);
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
}

/* V2.9 Outreach ROI & Cold CAC Comparator Cost Breakdown */
.outreach-cost-breakdown {
  margin-top: 14px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.outreach-cost-item {
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.outreach-cost-item span {
  font-size: 11.5px;
  color: var(--ink-soft);
}

.outreach-cost-item strong {
  font-size: 13px;
  color: var(--ink);
}

/* SaaS Outreach Spam Trigger & Reply-Rate Checker (V3.1) */
.osc-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.osc-preset-btn {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #fff;
  cursor: pointer;
  color: var(--ink);
  transition: border-color 0.15s ease, background 0.15s ease, box-shadow 0.15s ease;
}

.osc-preset-btn:hover {
  border-color: #93c5fd;
  background: #f8fafc;
}

.osc-preset-btn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.12);
}

.osc-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 20px;
  align-items: start;
}

.osc-textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 14px;
  line-height: 1.55;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.osc-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.osc-preview-box {
  padding: 14px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f8fafc;
  word-break: break-word;
}

.osc-spam-mark {
  background: #fee2e2;
  color: #b91c1c;
  border-bottom: 2px solid #ef4444;
  padding: 0 3px;
  border-radius: 3px;
  font-weight: 700;
}

.osc-spam-pill {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  border-radius: 999px;
  background: #fef2f2;
  border: 1px solid #fecaca;
  color: #b91c1c;
  font-size: 12px;
  font-weight: 600;
}

.osc-score-top {
  display: flex;
  align-items: center;
  gap: 18px;
  flex-wrap: wrap;
}

.osc-gauge-wrap {
  flex: 0 0 auto;
}

.osc-ego-bar-wrap {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.osc-ego-track {
  display: flex;
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.osc-dim-row {
  padding: 11px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #fff;
}

.osc-dim-bar-bg {
  width: 100%;
  height: 6px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.osc-dim-bar-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.2s ease;
}

.osc-fill-ok { background: #10b981; }
.osc-fill-warn { background: #f59e0b; }
.osc-fill-danger { background: #ef4444; }

.badge-warn {
  background: #fef3c7;
  color: #92400e;
}

.badge-danger {
  background: #fee2e2;
  color: #b91c1c;
}

.osc-suggestions-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.osc-sug-item {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--brand);
  background: #f8fafc;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.osc-sug-ok { border-left-color: #10b981; background: #ecfdf5; }
.osc-sug-warn { border-left-color: #f59e0b; background: #fffbeb; }
.osc-sug-danger { border-left-color: #ef4444; background: #fef2f2; }

.osc-md-pre {
  margin: 10px 0 0;
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #0f172a;
  color: #e2e8f0;
  font-size: 12px;
  line-height: 1.5;
  overflow-x: auto;
  white-space: pre-wrap;
  word-break: break-word;
}

/* V3.2 1-Page Competitive Battlecard Builder */
.cbb-preset-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.cbb-preset-btn {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-start;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--border);
  background: #f8fafc;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease, box-shadow 0.15s ease;
}

.cbb-preset-btn:hover {
  border-color: #93c5fd;
  background: #eff6ff;
}

.cbb-preset-btn.active {
  border-color: var(--brand);
  background: #eff6ff;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.14);
}

.cbb-preset-btn .badge {
  white-space: nowrap;
  flex-shrink: 0;
}

.cbb-workspace {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.18fr);
  gap: 22px;
  align-items: start;
}

.cbb-preview-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.cbb-export-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 14px 18px;
}

.cbb-field-group {
  display: flex;
  flex-direction: column;
  gap: 5px;
  margin-bottom: 12px;
}

.cbb-field-group label,
.cbb-mini-box label {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
  display: block;
}

.cbb-field-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.cbb-input {
  width: 100%;
  background: #fff;
  font-size: 13.5px;
  padding: 9px 11px;
}

.cbb-textarea {
  width: 100%;
  padding: 9px 11px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
  background: #fff;
  resize: vertical;
}

.cbb-textarea:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.14);
}

.cbb-divider {
  border: none;
  border-top: 1px solid var(--border);
  margin: 14px 0;
}

.cbb-subhead {
  font-size: 14px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
}

.cbb-mini-box {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: #f8fafc;
  margin-bottom: 10px;
}

.cbb-sheet {
  padding: 22px 24px;
  border-color: #cbd5e1;
  background: #fff;
}

.cbb-guardrail-banner {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 13px;
  border-radius: var(--radius-sm);
  border: 1px solid #f59e0b;
  background: #fffbeb;
  color: #92400e;
  font-size: 12px;
  line-height: 1.45;
  margin-bottom: 16px;
}

.cbb-guardrail-banner strong {
  font-size: 11.5px;
  letter-spacing: 0.03em;
  color: #78350f;
}

.cbb-sheet-head {
  padding-bottom: 14px;
  margin-bottom: 16px;
  border-bottom: 2px solid #0f172a;
}

.cbb-sheet-kicker {
  display: block;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: var(--brand);
  margin-bottom: 4px;
}

.cbb-sheet-title {
  margin: 0;
  font-size: 22px;
  line-height: 1.25;
  color: var(--ink);
  word-break: break-word;
}

.cbb-meta-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background: #f8fafc;
  border: 1px solid var(--border);
}

.cbb-meta-strip span {
  display: block;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-soft);
  margin-bottom: 2px;
}

.cbb-meta-strip strong {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.35;
}

.cbb-sheet-block {
  margin-bottom: 16px;
}

.cbb-block-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  font-weight: 800;
  color: var(--ink);
  margin: 0 0 10px;
}

.cbb-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 22px;
  padding: 0 5px;
  border-radius: 6px;
  background: #0f172a;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}

.cbb-check-list,
.cbb-guarantee-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cbb-check-list li,
.cbb-guarantee-list li {
  position: relative;
  padding-left: 18px;
  font-size: 13px;
  line-height: 1.5;
  color: var(--ink);
}

.cbb-check-list li::before {
  content: "✓";
  position: absolute;
  left: 0;
  top: 0;
  font-weight: 800;
  color: #059669;
}

.cbb-guarantee-list li::before {
  content: "◆";
  position: absolute;
  left: 1px;
  top: 0;
  font-size: 10px;
  color: var(--brand);
}

.cbb-pain-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cbb-pain-card {
  padding: 10px 11px;
  border-radius: var(--radius-sm);
  border: 1px solid #fecaca;
  background: #fef2f2;
}

.cbb-pain-card strong {
  display: block;
  font-size: 12.5px;
  line-height: 1.35;
  color: #991b1b;
  margin-bottom: 4px;
}

.cbb-pain-card p {
  margin: 0;
  font-size: 12px;
  line-height: 1.45;
  color: #475569;
}

.cbb-obj-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.cbb-obj-row {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 12px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
  background: #f8fafc;
}

.cbb-obj-row p {
  margin: 3px 0 0;
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--ink);
}

.cbb-tag-say,
.cbb-tag-counter {
  display: inline-block;
  font-size: 10.5px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 2px 6px;
  border-radius: 4px;
}

.cbb-tag-say {
  background: #fee2e2;
  color: #991b1b;
}

.cbb-tag-counter {
  background: #dcfce7;
  color: #166534;
}

.cbb-bottom-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.cbb-disc-list {
  margin: 0;
  padding-left: 18px;
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 12.5px;
  line-height: 1.48;
  color: var(--ink);
}

.cbb-sheet-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
  padding-top: 10px;
  border-top: 1px dashed #cbd5e1;
  font-size: 11.5px;
  color: var(--ink-soft);
}

/* Responsive */
@media (max-width: 1120px) {
  .nav-links { gap: 12px; }
  .nav-links > a, .nav-dropdown-trigger { font-size: 12.5px; }
}

@media (max-width: 960px) {
  .hero-grid, .grid-3, .grid-4, .kpi-strip, .preset-grid, .window-grid, .seg-summary-strip, .cac-sens-grid, .sample-kpi-grid, .tools-hub-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .hero-grid, .roi-grid, .pb-template-grid, .pb-template-grid-3, .osc-workspace, .osc-preset-grid, .cbb-workspace, .cbb-preset-grid { grid-template-columns: 1fr; }
}

@media (max-width: 680px) {
  .nav-links, .nav-hide-mobile { display: none; }
  .autopsy-form { flex-direction: column; }
  .grid-2, .grid-3, .grid-4, .kpi-strip, .form-grid, .slack-fields, .compare-mini-grid, .preset-grid, .roi-kpi-grid, .window-grid, .window-grid-2, .seg-summary-strip, .seg-lint-metrics, .cac-sens-grid, .sample-kpi-grid, .tools-hub-grid, .outreach-cost-breakdown, .osc-workspace, .osc-preset-grid, .cbb-workspace, .cbb-preset-grid, .cbb-field-row, .cbb-meta-strip, .cbb-pain-grid, .cbb-obj-row, .cbb-bottom-grid {
    grid-template-columns: 1fr;
  }
  .cbb-sheet { padding: 16px 14px; }
  .container { padding: 0 16px; }
  .battlecard-panel { padding: 18px; }
  .battlecard-panel .btn { white-space: normal; text-align: center; }
  .battlecard-header-bar { padding: 16px; }
  .cta-banner { padding: 24px 18px; }
  .tool-tab { width: 100%; text-align: left; }
  .plan-modal { padding: 20px 18px 18px; }
  .plan-modal-tabs { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .plan-tab { padding: 8px 8px; }
  .plan-tab strong { font-size: 13px; }
  .plan-tab span { font-size: 10.5px; }
}
