:root {
  --bg: #f8fafc;
  --surface: #ffffff;
  --surface-alt: #f1f5f9;
  --navy: #0b1220;
  --navy-soft: #13203a;
  --navy-border: #1e293b;
  --text: #0f172a;
  --text-muted: #475569;
  --text-light: #94a3b8;
  --border: #e2e8f0;
  --border-strong: #cbd5e1;
  --primary: #1d4ed8;
  --primary-hover: #1e40af;
  --primary-soft: #eff6ff;
  --emerald: #059669;
  --emerald-bright: #10b981;
  --emerald-soft: #ecfdf5;
  --amber: #b45309;
  --amber-soft: #fffbeb;
  --danger: #dc2626;
  --danger-soft: #fef2f2;
  --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);
  --shadow-lg: 0 20px 50px rgba(11, 18, 32, 0.18);
  --font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-serif: Georgia, Cambria, "Times New Roman", Times, serif;
  --font-mono: "Cascadia Code", Consolas, "SFMono-Regular", Menlo, Monaco, monospace;
}

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

html { scroll-behavior: smooth; }

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

a { color: var(--primary); text-decoration: none; }
a:hover { text-decoration: underline; }

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

/* Security Proof Top Bar */
.trust-bar {
  background: var(--navy);
  color: #cbd5e1;
  font-size: 13px;
  border-bottom: 1px solid var(--navy-border);
}
.trust-bar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
}
.net-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: #a7f3d0;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 3px 10px;
  border-radius: 999px;
}
.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emerald-bright);
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: pulse 2s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.65); }
  70% { box-shadow: 0 0 0 7px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}
.trust-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}
.license-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  border: 1px solid #334155;
  background: #1e293b;
  color: #e2e8f0;
  cursor: pointer;
}
.license-pill.is-pro {
  background: rgba(16, 185, 129, 0.16);
  border-color: rgba(16, 185, 129, 0.5);
  color: #6ee7b7;
}

/* Header */
.site-header {
  background: var(--surface);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 64px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
  font-weight: 800;
  font-size: 20px;
  letter-spacing: -0.02em;
}
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
}
.brand-sub {
  font-size: 10.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald);
  display: block;
  line-height: 1.1;
  white-space: nowrap;
}
.site-nav {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 13.5px;
  font-weight: 500;
}
.site-nav a { color: var(--text-muted); white-space: nowrap; }
.site-nav a:hover, .site-nav a.active { color: var(--navy); text-decoration: none; }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all 0.15s ease;
  text-decoration: none !important;
  line-height: 1.2;
}
.btn:disabled { opacity: 0.55; cursor: not-allowed; }
.btn-primary { background: var(--primary); color: #ffffff; }
.btn-primary:hover:not(:disabled) { background: var(--primary-hover); }
.btn-navy { background: var(--navy); color: #ffffff; }
.btn-navy:hover:not(:disabled) { background: #1e293b; }
.btn-emerald { background: var(--emerald); color: #ffffff; }
.btn-emerald:hover:not(:disabled) { background: #047857; }
.btn-outline { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn-outline:hover:not(:disabled) { background: var(--surface-alt); border-color: #94a3b8; }
.btn-danger { background: var(--danger); color: #ffffff; }
.btn-danger:hover:not(:disabled) { background: #b91c1c; }
.btn-sm { font-size: 12.5px; padding: 6px 11px; }
.btn-lg { font-size: 15.5px; padding: 12px 22px; }

/* Hero */
.hero {
  background: linear-gradient(180deg, #0b1220 0%, #111b2e 100%);
  color: #f8fafc;
  padding: 40px 0 34px;
  border-bottom: 1px solid var(--navy-border);
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.35fr 0.65fr;
  gap: 28px;
  align-items: center;
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: #93c5fd;
  margin-bottom: 10px;
}
.hero h1 {
  margin: 0 0 12px;
  font-family: var(--font-serif);
  font-size: clamp(28px, 3.6vw, 42px);
  line-height: 1.15;
  letter-spacing: -0.02em;
  color: #ffffff;
}
.hero p.lead {
  margin: 0 0 18px;
  font-size: 16.5px;
  color: #cbd5e1;
  max-width: 680px;
}
.hero-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.badge-dark {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
  font-weight: 500;
  color: #e2e8f0;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.22);
  padding: 5px 11px;
  border-radius: 999px;
}
.hero-proof-card {
  background: rgba(15, 23, 42, 0.72);
  border: 1px solid rgba(59, 130, 246, 0.35);
  border-radius: var(--radius-md);
  padding: 18px;
  font-size: 13px;
}
.hero-proof-card h3 {
  margin: 0 0 10px;
  font-size: 14px;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.proof-row {
  display: flex;
  justify-content: space-between;
  padding: 6px 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  color: #cbd5e1;
}
.proof-row:last-child { border-bottom: none; }
.proof-val { font-family: var(--font-mono); color: #6ee7b7; font-weight: 600; }

/* Workbench Shell */
.workbench-section {
  padding: 28px 0 48px;
}
.workbench-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.wb-tabs {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  background: var(--surface-alt);
  border-bottom: 1px solid var(--border);
}
.wb-tab {
  appearance: none;
  border: none;
  background: transparent;
  padding: 16px 14px;
  text-align: left;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  border-right: 1px solid var(--border);
  transition: background 0.15s ease;
}
.wb-tab:last-child { border-right: none; }
.wb-tab:hover { background: #e2e8f066; }
.wb-tab.active {
  background: var(--surface);
  border-bottom-color: var(--primary);
}
.wb-tab-title {
  display: block;
  font-size: 14.5px;
  font-weight: 700;
  color: var(--navy);
}
.wb-tab-sub {
  display: block;
  font-size: 12px;
  color: var(--text-muted);
  margin-top: 2px;
}
.wb-panel { display: none; padding: 24px; }
.wb-panel.active { display: block; }

.wb-layout {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 24px;
  align-items: start;
}
.wb-layout-redact {
  display: grid;
  grid-template-columns: 330px 1fr;
  gap: 22px;
  align-items: start;
}

/* Dropzone */
.dropzone {
  border: 2px dashed var(--border-strong);
  border-radius: var(--radius-md);
  background: #f8fafc;
  padding: 26px 20px;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease;
}
.dropzone:hover, .dropzone.dragover {
  border-color: var(--primary);
  background: var(--primary-soft);
}
.dropzone input[type="file"] { display: none; }
.dropzone-title { font-weight: 700; font-size: 15px; color: var(--navy); margin-bottom: 4px; }
.dropzone-sub { font-size: 12.5px; color: var(--text-muted); }
.dropzone-actions {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

/* Forms & Controls */
.control-box {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 18px;
}
.control-box h3 {
  margin: 0 0 14px;
  font-size: 15px;
  color: var(--navy);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
.form-field { display: flex; flex-direction: column; gap: 4px; margin-bottom: 10px; }
.form-field.full { grid-column: 1 / -1; }
.form-field label {
  font-size: 12.5px;
  font-weight: 600;
  color: var(--text);
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.form-field input[type="text"],
.form-field input[type="number"],
.form-field select,
.form-field textarea {
  width: 100%;
  padding: 8px 10px;
  font-family: inherit;
  font-size: 13.5px;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: var(--surface);
  color: var(--text);
}
.form-field input:focus, .form-field select:focus, .form-field textarea:focus {
  outline: 2px solid rgba(29, 78, 216, 0.2);
  border-color: var(--primary);
}
.check-row {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text);
  margin: 8px 0;
  cursor: pointer;
}
.pro-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--amber-soft);
  color: var(--amber);
  border: 1px solid #fcd34d;
}
.free-tag {
  display: inline-block;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--emerald-soft);
  color: var(--emerald);
  border: 1px solid #a7f3d0;
}

/* File Queue Table */
.file-list {
  margin-top: 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  overflow: hidden;
  background: var(--surface);
}
.file-item {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border);
  font-size: 13px;
}
.file-item:last-child { border-bottom: none; }
.file-meta { font-size: 12px; color: var(--text-muted); font-family: var(--font-mono); }
.file-actions { display: flex; gap: 4px; }
.icon-btn {
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 5px;
  padding: 3px 7px;
  cursor: pointer;
  font-size: 12px;
  color: var(--text);
}
.icon-btn:hover { background: var(--surface-alt); }
.icon-btn.danger:hover { background: var(--danger-soft); color: var(--danger); border-color: #fecaca; }

/* Live Bates Preview Strip */
.preview-strip {
  margin-top: 14px;
  background: var(--navy);
  color: #e2e8f0;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}
.preview-stamp {
  font-family: var(--font-mono);
  font-size: 14px;
  font-weight: 700;
  background: #ffffff;
  color: #0b1220;
  padding: 4px 10px;
  border-radius: 4px;
}

/* Redaction Canvas Workspace */
.canvas-stage {
  background: #1e293b;
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 520px;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.canvas-toolbar {
  width: 100%;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: #e2e8f0;
  font-size: 13px;
}
.canvas-wrap {
  position: relative;
  display: inline-block;
  box-shadow: 0 12px 32px rgba(0, 0, 0, 0.45);
  background: #ffffff;
  max-width: 100%;
  overflow: auto;
  cursor: crosshair;
  user-select: none;
}
.canvas-wrap canvas { display: block; max-width: 100%; height: auto; }
.redact-overlay {
  position: absolute;
  inset: 0;
  pointer-events: none;
}
.redact-box {
  position: absolute;
  background: rgba(15, 23, 42, 0.88);
  border: 2px solid #ef4444;
  pointer-events: auto;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  font-family: var(--font-mono);
  font-size: 8.5px;
  font-weight: 700;
  line-height: 1;
  padding: 0 3px;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  text-align: center;
}
.redact-box:hover {
  border-color: #fbbf24;
  background: rgba(220, 38, 38, 0.82);
}
.redact-box.draft {
  background: rgba(239, 68, 68, 0.25);
  border: 2px dashed #ef4444;
}

/* Status / Alerts / Forensic Output */
.status-box {
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
}
.status-box.success { background: var(--emerald-soft); border-color: #6ee7b7; color: #065f46; }
.status-box.warn { background: var(--amber-soft); border-color: #fcd34d; color: #92400e; }
.status-box.error { background: var(--danger-soft); border-color: #fca5a5; color: #991b1b; }

.forensic-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  margin-top: 12px;
}
.forensic-table th, .forensic-table td {
  text-align: left;
  padding: 8px 10px;
  border-bottom: 1px solid var(--border);
}
.forensic-table th {
  background: var(--surface-alt);
  font-weight: 700;
  color: var(--navy);
}
.risk-high { color: var(--danger); font-weight: 700; }
.risk-med { color: var(--amber); font-weight: 700; }
.risk-low { color: var(--emerald); font-weight: 700; }

/* Content & SEO Sections */
.section { padding: 48px 0; }
.section-alt { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section-head { max-width: 760px; margin-bottom: 28px; }
.section-head h2 {
  margin: 0 0 8px;
  font-family: var(--font-serif);
  font-size: clamp(24px, 3vw, 32px);
  color: var(--navy);
}
.section-head p { margin: 0; color: var(--text-muted); font-size: 15.5px; }

.card-grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
}
.card-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.card {
  background: var(--surface);
  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; color: var(--navy); }
.card p { margin: 0; font-size: 14px; color: var(--text-muted); }

/* Pricing */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  align-items: stretch;
}
.price-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.price-card.featured {
  border: 2px solid var(--primary);
  box-shadow: var(--shadow-md);
  position: relative;
}
.price-amount {
  font-family: var(--font-serif);
  font-size: 40px;
  font-weight: 700;
  color: var(--navy);
  margin: 12px 0 6px;
  line-height: 1;
}
.price-amount span { font-family: var(--font-sans); font-size: 14px; font-weight: 500; color: var(--text-muted); }
.check-list {
  list-style: none;
  padding: 0;
  margin: 16px 0 22px;
}
.check-list li {
  padding: 6px 0;
  font-size: 14px;
  color: var(--text);
  display: flex;
  gap: 8px;
}
.check-list li::before { content: "✓"; color: var(--emerald); font-weight: 800; }

/* Comparison Table & Data Tables */
.data-table-wrap { overflow-x: auto; border: 1px solid var(--border); border-radius: var(--radius-md); background: var(--surface); }
.data-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.data-table th, .data-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: left; }
.data-table th { background: var(--navy); color: #ffffff; font-weight: 600; }
.data-table tr:last-child td { border-bottom: none; }

/* Directory Links Grid (Internal Linking for SEO) */
.link-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.link-chip {
  display: block;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 500;
  color: var(--navy);
}
.link-chip:hover {
  border-color: var(--primary);
  background: var(--primary-soft);
  text-decoration: none;
}

/* FAQ */
.faq-list { display: grid; gap: 12px; }
.faq-item {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 16px 20px;
}
.faq-item summary {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
  cursor: pointer;
}
.faq-item p { margin: 10px 0 0; font-size: 14.5px; color: var(--text-muted); }

/* Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(11, 18, 32, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 16px;
}
.modal-backdrop.open { display: flex; }
.modal-card {
  background: var(--surface);
  border-radius: var(--radius-lg);
  max-width: 640px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  box-shadow: var(--shadow-lg);
  padding: 26px;
  position: relative;
}
.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  border: 1px solid var(--border);
  background: var(--surface-alt);
  width: 32px;
  height: 32px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 16px;
}
.modal-plans {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 18px 0;
}
.mini-plan {
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  padding: 16px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.mini-plan.highlight {
  border: 2px solid var(--primary);
  background: var(--primary-soft);
}

/* Breadcrumbs */
.breadcrumbs {
  font-size: 13px;
  color: #94a3b8;
  margin-bottom: 12px;
}
.breadcrumbs a { color: #cbd5e1; }

/* Footer */
.site-footer {
  background: var(--navy);
  color: #94a3b8;
  padding: 44px 0 28px;
  font-size: 13.5px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 28px;
  margin-bottom: 28px;
}
.site-footer h4 { color: #ffffff; margin: 0 0 12px; font-size: 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { color: #94a3b8; }
.site-footer a:hover { color: #ffffff; }
.footer-bottom {
  border-top: 1px solid var(--navy-border);
  padding-top: 18px;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
  font-size: 12.5px;
}

/* Responsive */
@media (max-width: 960px) {
  .hero-grid, .wb-layout, .wb-layout-redact, .pricing-grid, .card-grid-3, .footer-grid {
    grid-template-columns: 1fr;
  }
  .wb-tabs { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 600px) {
  .wb-tabs, .form-grid, .modal-plans, .card-grid-2 { grid-template-columns: 1fr; }
  .site-nav { gap: 10px; font-size: 13px; }
}
