/* ============================================================================
 * PDF2Sheet — Dark Mode Static Stylesheet
 * Warm Obsidian + Subtle Spreadsheet Emerald • Zero External Requests
 * ============================================================================ */

:root {
  --bg-canvas: #0b0f14;
  --bg-elevated: #11161d;
  --bg-card: #161c24;
  --bg-card-alt: #19202a;
  --bg-code: #0e131a;

  --border-faint: rgba(255, 255, 255, 0.05);
  --border-subtle: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.16);
  --border-strong: rgba(255, 255, 255, 0.22);

  --text-primary: #f1f5f9;
  --text-body: #cbd5e1;
  --text-muted: #94a3b8;
  --text-dim: #64748b;

  --emerald-400: #34d399;
  --emerald-500: #10b981;
  --emerald-600: #059669;
  --emerald-tint: rgba(16, 185, 129, 0.10);
  --emerald-tint-strong: rgba(16, 185, 129, 0.16);
  --emerald-border: rgba(52, 211, 153, 0.28);

  --amber-text: #fbbf24;
  --amber-tint: rgba(245, 158, 11, 0.10);
  --amber-border: rgba(251, 191, 36, 0.22);

  --rose-text: #fda4af;
  --rose-tint: rgba(244, 63, 94, 0.10);
  --rose-border: rgba(253, 164, 175, 0.22);

  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 16px;
  --radius-pill: 999px;

  --shadow-panel: 0 20px 44px -16px rgba(0, 0, 0, 0.65);
  --shadow-card: 0 8px 24px -12px rgba(0, 0, 0, 0.45);

  --font-sans: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, "Liberation Mono", monospace;
}

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

html {
  scroll-behavior: smooth;
  color-scheme: dark;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text-body);
  background-color: var(--bg-canvas);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

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

a {
  color: var(--emerald-400);
  text-decoration: none;
  transition: color 0.15s ease, border-color 0.15s ease, background-color 0.15s ease;
}

a:hover {
  color: #6ee7b7;
}

code,
kbd,
.mono {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

.tabular {
  font-variant-numeric: tabular-nums;
}

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

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

/* ============================================================================
 * Minimal Top Promo Strip
 * ============================================================================ */
.promo-topbar {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  color: var(--text-muted);
  font-size: 13px;
  padding: 8px 16px;
}

.promo-topbar[hidden] {
  display: none !important;
}

.promo-topbar-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 8px 10px;
}

.promo-tag-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-500);
  display: inline-block;
}

.promo-topbar strong {
  color: var(--text-primary);
  font-weight: 600;
}

.promo-pill {
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-400);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 12px;
  padding: 1px 8px;
  border-radius: var(--radius-xs);
  letter-spacing: 0.04em;
}

.promo-copy-btn {
  appearance: none;
  border: 1px solid var(--border-subtle);
  background: var(--bg-card);
  color: var(--text-primary);
  font-family: var(--font-sans);
  font-size: 12px;
  font-weight: 500;
  padding: 2px 10px;
  border-radius: var(--radius-pill);
  cursor: pointer;
  transition: border-color 0.15s ease, background-color 0.15s ease;
}

.promo-copy-btn:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-alt);
}

/* ============================================================================
 * Sticky Header
 * ============================================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 15, 20, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--border-subtle);
}

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

.brand-link {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 16px;
  letter-spacing: -0.015em;
}

.brand-link:hover {
  color: var(--text-primary);
}

.brand-logo {
  width: 30px;
  height: 30px;
  border-radius: 7px;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.brand-divider {
  color: var(--text-dim);
  font-weight: 400;
  margin: 0 2px;
}

.brand-sub {
  font-size: 12.5px;
  font-weight: 500;
  color: var(--text-muted);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 22px;
}

.site-nav a {
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 500;
}

.site-nav a:hover,
.site-nav a[aria-current="page"] {
  color: var(--text-primary);
}

.header-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--emerald-500);
  color: #06281e !important;
  font-size: 13px;
  font-weight: 650;
  padding: 7px 14px;
  border-radius: var(--radius-sm);
  transition: background-color 0.15s ease;
}

.header-cta:hover {
  background: var(--emerald-400);
  color: #06281e !important;
}

/* ============================================================================
 * Asymmetric 2-Column Split Hero
 * ============================================================================ */
.hero {
  padding: 64px 0 72px;
  border-bottom: 1px solid var(--border-subtle);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 500;
  color: var(--emerald-400);
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 20px;
}

.eyebrow-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--emerald-400);
}

.hero-copy h1 {
  margin: 0 0 18px;
  font-size: clamp(32px, 4vw, 46px);
  line-height: 1.13;
  letter-spacing: -0.03em;
  font-weight: 750;
  color: var(--text-primary);
}

.hero-lead {
  margin: 0 0 28px;
  font-size: 16.5px;
  line-height: 1.6;
  color: var(--text-muted);
  max-width: 490px;
}

.cta-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 18px;
}

.btn-store {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 11px 16px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-store-primary {
  background: var(--emerald-500);
  color: #052e22;
  border: 1px solid transparent;
}

.btn-store-primary:hover {
  background: var(--emerald-400);
  color: #052e22;
}

.btn-store-secondary {
  background: var(--bg-card);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-store-secondary:hover {
  background: var(--bg-card-alt);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.store-badge {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: var(--radius-pill);
}

.btn-store-primary .store-badge {
  background: rgba(5, 46, 34, 0.16);
  color: #052e22;
}

.btn-store-secondary .store-badge {
  background: rgba(255, 255, 255, 0.06);
  color: var(--text-muted);
  border: 1px solid var(--border-subtle);
}

.hero-trust-note {
  margin: 0;
  font-size: 13px;
  color: var(--text-dim);
}

.hero-trust-note span {
  color: var(--text-muted);
}

/* ============================================================================
 * Interactive Chrome Side Panel Mockup (Hero Right Column)
 * ============================================================================ */
.browser-frame {
  background: var(--bg-elevated);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-panel);
  overflow: hidden;
}

.browser-chrome {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border-subtle);
}

.window-dots {
  display: inline-flex;
  gap: 6px;
}

.window-dots i {
  display: block;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
}

.browser-url {
  flex: 1;
  max-width: 280px;
  background: var(--bg-canvas);
  border: 1px solid var(--border-faint);
  border-radius: var(--radius-xs);
  padding: 3px 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  color: var(--text-muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.browser-local-pill {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--emerald-400);
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  white-space: nowrap;
}

.browser-workspace {
  display: grid;
  grid-template-columns: 36% 64%;
  min-height: 360px;
}

/* Left Miniature PDF Viewer Pane */
.pdf-viewer-pane {
  background: #0d1218;
  border-right: 1px solid var(--border-subtle);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.pdf-pane-label {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-dim);
}

.pdf-paper {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: 8px;
  padding: 11px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  line-height: 1.5;
  color: var(--text-muted);
}

.pdf-paper-head {
  display: flex;
  justify-content: space-between;
  color: var(--text-primary);
  font-weight: 600;
  padding-bottom: 6px;
  margin-bottom: 7px;
  border-bottom: 1px solid var(--border-subtle);
}

.pdf-raw-line {
  display: flex;
  justify-content: space-between;
  gap: 6px;
  padding: 2px 0;
}

.pdf-raw-wrap {
  color: var(--amber-text);
  padding-left: 8px;
  font-size: 10px;
}

.pdf-raw-neg {
  color: var(--amber-text);
}

.pdf-page-break {
  margin: 7px 0;
  padding: 3px 6px;
  background: var(--rose-tint);
  border: 1px dashed var(--rose-border);
  border-radius: 4px;
  color: var(--rose-text);
  font-size: 9.5px;
}

/* Right Side Panel Extension Pane */
.sidepanel-pane {
  background: var(--bg-card);
  display: flex;
  flex-direction: column;
}

.sp-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 10px 12px;
  border-bottom: 1px solid var(--border-subtle);
  background: var(--bg-card-alt);
}

.sp-seg-group {
  display: inline-flex;
  background: var(--bg-canvas);
  border: 1px solid var(--border-subtle);
  border-radius: 7px;
  padding: 2px;
}

.sp-seg-btn {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 11.5px;
  font-weight: 600;
  padding: 4px 9px;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.12s ease, color 0.12s ease;
}

.sp-seg-btn:hover {
  color: var(--text-primary);
}

.sp-seg-btn.is-active {
  background: var(--bg-card-alt);
  color: var(--text-primary);
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.4);
}

.sp-seg-btn[data-hero-mode="cleaned"].is-active {
  background: var(--emerald-tint-strong);
  color: var(--emerald-400);
}

.sp-formula-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 7px 12px;
  background: var(--bg-code);
  border-bottom: 1px solid var(--border-faint);
  font-family: var(--font-mono);
  font-size: 11.5px;
}

.sp-fx-tag {
  color: var(--text-dim);
  font-style: italic;
  margin-right: 6px;
}

.sp-grid-wrap {
  flex: 1;
  overflow-x: auto;
}

.sp-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 11.5px;
  font-variant-numeric: tabular-nums;
}

.sp-table th,
.sp-table td {
  padding: 7px 10px;
  border-bottom: 1px solid var(--border-faint);
  text-align: left;
}

.sp-table th {
  font-family: var(--font-mono);
  font-size: 10.5px;
  font-weight: 600;
  color: var(--text-dim);
  background: rgba(255, 255, 255, 0.02);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sp-table th.num,
.sp-table td.num {
  text-align: right;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.sp-table td.date-col {
  font-family: var(--font-mono);
  color: var(--text-muted);
  white-space: nowrap;
}

.sp-table tr.sp-row-warn td {
  background: var(--amber-tint);
  color: var(--amber-text);
}

.sp-table tr.sp-row-err td {
  background: var(--rose-tint);
  color: var(--rose-text);
  text-decoration: line-through;
}

.sp-table tr.sp-row-sum-ok td {
  background: var(--emerald-tint);
  color: var(--emerald-400);
  font-weight: 700;
  border-top: 1px solid var(--emerald-border);
}

.sp-table tr.sp-row-sum-err td {
  background: var(--rose-tint);
  color: var(--rose-text);
  font-weight: 700;
  border-top: 1px solid var(--rose-border);
}

.val-pos {
  color: var(--text-primary);
}

.val-neg {
  color: var(--amber-text);
}

.val-bad {
  color: var(--rose-text);
}

.sp-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 9px 12px;
  border-top: 1px solid var(--border-subtle);
  background: var(--bg-elevated);
  font-size: 11px;
  color: var(--text-muted);
}

.sp-export-pills {
  display: inline-flex;
  gap: 5px;
}

.sp-export-pill {
  font-family: var(--font-mono);
  font-size: 10.5px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
}

/* ============================================================================
 * Section Headers (Left-Aligned, Clean, Non-Generic)
 * ============================================================================ */
.section {
  padding: 80px 0;
  border-bottom: 1px solid var(--border-subtle);
}

.section-elevated {
  background: var(--bg-elevated);
}

.section-head-split {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 36px;
}

.section-head-left {
  max-width: 620px;
}

.section-kicker {
  display: block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  color: var(--emerald-400);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 8px;
}

.section-head-left h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3.2vw, 34px);
  line-height: 1.2;
  letter-spacing: -0.025em;
  font-weight: 750;
  color: var(--text-primary);
}

.section-head-left p {
  margin: 0;
  font-size: 15.5px;
  color: var(--text-muted);
}

/* ============================================================================
 * Asymmetric 12-Column Bento Grid (7/5 and 5/7)
 * ============================================================================ */
.bento-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 18px;
}

.bento-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 26px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 20px;
  transition: border-color 0.15s ease;
}

.bento-card:hover {
  border-color: var(--border-hover);
}

.bento-span-7 {
  grid-column: span 7;
}

.bento-span-5 {
  grid-column: span 5;
}

.bento-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.bento-copy p {
  margin: 0;
  font-size: 14.5px;
  color: var(--text-muted);
  line-height: 1.6;
}

/* Mini UI Artifacts inside Bento Cards */
.mini-ui {
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  padding: 14px;
  font-family: var(--font-mono);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.merge-row-raw {
  padding: 6px 10px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-faint);
  color: var(--text-muted);
  margin-bottom: 5px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.merge-row-orphan {
  padding: 5px 10px 5px 22px;
  border-radius: 6px;
  background: var(--amber-tint);
  border: 1px dashed var(--amber-border);
  color: var(--amber-text);
  margin-bottom: 5px;
  font-size: 11.5px;
}

.merge-row-dup {
  padding: 5px 10px;
  border-radius: 6px;
  background: var(--rose-tint);
  border: 1px dashed var(--rose-border);
  color: var(--rose-text);
  text-decoration: line-through;
  font-size: 11px;
  margin-bottom: 10px;
}

.merge-row-clean {
  padding: 8px 10px;
  border-radius: 6px;
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  color: var(--text-primary);
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.merge-row-clean .amt {
  color: var(--emerald-400);
  font-weight: 700;
}

.norm-list {
  display: grid;
  gap: 7px;
}

.norm-item {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 6px 9px;
  background: rgba(255, 255, 255, 0.02);
  border: 1px solid var(--border-faint);
  border-radius: 6px;
}

.norm-raw {
  color: var(--rose-text);
}

.norm-arrow {
  color: var(--text-dim);
}

.norm-clean {
  text-align: right;
  color: var(--emerald-400);
  font-weight: 600;
}

.devtools-kv {
  display: grid;
  gap: 8px;
}

.devtools-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-bottom: 7px;
  border-bottom: 1px solid var(--border-faint);
}

.devtools-row:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.devtools-key {
  color: var(--text-muted);
}

.devtools-val-ok {
  color: var(--emerald-400);
  font-weight: 700;
}

.perm-inline-list {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 5px;
}

.perm-chip {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 7px;
  border-radius: 5px;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-body);
}

.export-bar-mock {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 12px;
}

.export-btn-mock {
  padding: 6px 11px;
  border-radius: 6px;
  font-size: 11.5px;
  font-weight: 600;
  background: var(--bg-card-alt);
  border: 1px solid var(--border-subtle);
  color: var(--text-primary);
}

.export-btn-mock.is-primary {
  background: var(--emerald-tint-strong);
  border-color: var(--emerald-border);
  color: var(--emerald-400);
}

.safety-checks {
  display: grid;
  gap: 6px;
  font-size: 11.5px;
  color: var(--text-muted);
}

.safety-checks div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 5px 8px;
  background: rgba(255, 255, 255, 0.02);
  border-radius: 5px;
}

.safety-checks strong {
  color: var(--emerald-400);
  font-weight: 600;
}

/* ============================================================================
 * Interactive Before / After Data Workbench (#before-after)
 * ============================================================================ */
.demo-tabs {
  display: inline-flex;
  background: var(--bg-card);
  padding: 3px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border-subtle);
}

.demo-tab {
  appearance: none;
  border: none;
  background: transparent;
  color: var(--text-muted);
  font-family: var(--font-sans);
  font-size: 13px;
  font-weight: 600;
  padding: 6px 13px;
  border-radius: 7px;
  cursor: pointer;
  transition: background-color 0.15s ease, color 0.15s ease;
}

.demo-tab:hover {
  color: var(--text-primary);
}

.demo-tab.is-active {
  background: var(--bg-card-alt);
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.before-after-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  align-items: stretch;
}

.before-after-grid.is-single-view {
  grid-template-columns: 1fr;
  max-width: 820px;
}

.demo-panel.is-hidden-view {
  display: none;
}

.workbench-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  box-shadow: var(--shadow-card);
}

.workbench-card-clean {
  border-color: var(--emerald-border);
}

.workbench-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 13px 16px;
  background: var(--bg-card-alt);
  border-bottom: 1px solid var(--border-subtle);
  font-size: 13px;
  font-weight: 650;
  color: var(--text-primary);
}

.wb-badge-err {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--rose-tint);
  border: 1px solid var(--rose-border);
  color: var(--rose-text);
}

.wb-badge-ok {
  font-family: var(--font-mono);
  font-size: 11px;
  padding: 2px 8px;
  border-radius: var(--radius-pill);
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  color: var(--emerald-400);
}

.formula-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  background: var(--bg-code);
  border-bottom: 1px solid var(--border-faint);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--text-muted);
}

.formula-fx {
  color: var(--text-dim);
  font-style: italic;
  padding-right: 8px;
  border-right: 1px solid var(--border-subtle);
}

.table-scroll {
  overflow-x: auto;
  flex: 1;
}

.sheet-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
}

.sheet-table th,
.sheet-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border-faint);
  border-right: 1px solid var(--border-faint);
  text-align: left;
  vertical-align: top;
}

.sheet-table th:last-child,
.sheet-table td:last-child {
  border-right: none;
}

.sheet-table th {
  background: rgba(255, 255, 255, 0.02);
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.sheet-table td.num,
.sheet-table th.num {
  text-align: right;
  font-family: var(--font-mono);
  white-space: nowrap;
}

.row-ghost td {
  background: var(--amber-tint);
  color: var(--amber-text);
  font-style: italic;
}

.row-dup-header td {
  background: var(--rose-tint);
  color: var(--rose-text);
  font-size: 11.5px;
  text-decoration: line-through;
}

.cell-bad {
  color: var(--rose-text);
}

.cell-neg {
  color: var(--amber-text);
}

.cell-clean {
  color: var(--emerald-400);
}

.row-sum-bad td {
  background: var(--rose-tint);
  font-weight: 700;
  color: var(--rose-text);
  border-top: 1px solid var(--rose-border);
}

.row-sum-good td {
  background: var(--emerald-tint);
  font-weight: 700;
  color: var(--emerald-400);
  border-top: 1px solid var(--emerald-border);
}

.workbench-footer {
  padding: 11px 16px;
  background: var(--bg-elevated);
  border-top: 1px solid var(--border-subtle);
  font-size: 12px;
  color: var(--text-muted);
}

/* ============================================================================
 * Transparent Pricing (#pricing)
 * ============================================================================ */
.pricing-promo-inline {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  padding: 7px 12px;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-sm);
  font-size: 13px;
  color: var(--text-muted);
}

.pricing-promo-inline[hidden] {
  display: none !important;
}

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

.price-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 24px 22px;
  display: flex;
  flex-direction: column;
  transition: border-color 0.15s ease;
}

.price-card:hover {
  border-color: var(--border-hover);
}

.price-card.is-featured {
  background: var(--bg-card-alt);
  border-color: var(--emerald-500);
}

.price-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 10px;
}

.price-tier-name {
  margin: 0;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--text-primary);
}

.best-value-tag {
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 600;
  color: var(--emerald-400);
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  padding: 2px 8px;
  border-radius: var(--radius-pill);
}

.price-amount-row {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 4px;
}

.price-amount {
  font-size: 34px;
  font-weight: 750;
  letter-spacing: -0.03em;
  color: var(--text-primary);
  font-variant-numeric: tabular-nums;
  line-height: 1.1;
}

.price-period {
  font-size: 13px;
  color: var(--text-dim);
}

.price-allowance {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--emerald-400);
  margin: 0 0 14px;
}

.price-desc {
  font-size: 13.5px;
  color: var(--text-muted);
  margin: 0 0 18px;
  line-height: 1.55;
}

.price-features {
  list-style: none;
  padding: 0;
  margin: 0 0 22px;
  flex: 1;
  border-top: 1px solid var(--border-faint);
  padding-top: 14px;
}

.price-features li {
  position: relative;
  padding-left: 18px;
  margin-bottom: 9px;
  font-size: 13px;
  color: var(--text-body);
}

.price-features li::before {
  content: "–";
  position: absolute;
  left: 0;
  top: 0;
  color: var(--emerald-400);
  font-family: var(--font-mono);
}

.btn-plan {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  font-size: 13.5px;
  font-weight: 650;
  text-align: center;
  transition: background-color 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-plan-primary {
  background: var(--emerald-500);
  color: #052e22;
}

.btn-plan-primary:hover {
  background: var(--emerald-400);
  color: #052e22;
}

.btn-plan-outline {
  background: transparent;
  color: var(--text-primary);
  border: 1px solid var(--border-subtle);
}

.btn-plan-outline:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--border-hover);
  color: var(--text-primary);
}

.pricing-footnote {
  margin: 22px 0 0;
  font-size: 13px;
  color: var(--text-dim);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 10px;
}

/* ============================================================================
 * Split FAQ Layout (#faq)
 * ============================================================================ */
.faq-split {
  display: grid;
  grid-template-columns: minmax(0, 4fr) minmax(0, 8fr);
  gap: 40px;
  align-items: start;
}

.faq-intro h2 {
  margin: 0 0 10px;
  font-size: clamp(24px, 3vw, 30px);
  letter-spacing: -0.02em;
  color: var(--text-primary);
}

.faq-intro p {
  margin: 0 0 16px;
  font-size: 14.5px;
  color: var(--text-muted);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-md);
  transition: border-color 0.15s ease;
}

.faq-item:hover {
  border-color: var(--border-hover);
}

.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 16px 20px;
  font-weight: 600;
  font-size: 15px;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 17px;
  color: var(--text-muted);
  line-height: 1;
  flex-shrink: 0;
}

.faq-item[open] summary::after {
  content: "−";
  color: var(--emerald-400);
}

.faq-answer {
  padding: 0 20px 18px;
  color: var(--text-muted);
  font-size: 14.5px;
  line-height: 1.65;
  border-top: 1px solid var(--border-faint);
  padding-top: 14px;
}

.faq-answer p {
  margin: 0 0 10px;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.faq-answer strong {
  color: var(--text-primary);
}

/* ============================================================================
 * Legal Pages (`/privacy` & `/terms`) — Dark Theme Synced
 * ============================================================================ */
.legal-hero {
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border-subtle);
  padding: 48px 0 36px;
}

.legal-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(28px, 3.8vw, 38px);
  font-weight: 750;
  letter-spacing: -0.025em;
  color: var(--text-primary);
}

.legal-meta {
  font-family: var(--font-mono);
  font-size: 12.5px;
  color: var(--text-muted);
  margin: 0;
}

.legal-content {
  padding: 40px 0 76px;
}

.legal-callout {
  background: var(--emerald-tint);
  border: 1px solid var(--emerald-border);
  border-radius: var(--radius-md);
  padding: 18px 22px;
  margin-bottom: 28px;
}

.legal-callout h2 {
  margin: 0 0 6px;
  font-size: 15.5px;
  font-weight: 700;
  color: var(--emerald-400);
}

.legal-callout p {
  margin: 0;
  font-size: 14px;
  color: var(--text-body);
  line-height: 1.65;
}

.legal-card {
  background: var(--bg-card);
  border: 1px solid var(--border-subtle);
  border-radius: var(--radius-lg);
  padding: 36px;
}

.legal-card h2 {
  margin: 32px 0 12px;
  padding-top: 24px;
  border-top: 1px solid var(--border-subtle);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--text-primary);
}

.legal-card h2:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.legal-card h3 {
  margin: 18px 0 8px;
  font-size: 15.5px;
  font-weight: 650;
  color: var(--text-primary);
}

.legal-card p,
.legal-card li {
  color: var(--text-body);
  font-size: 14.5px;
  line-height: 1.72;
}

.legal-card strong {
  color: var(--text-primary);
}

.legal-card code {
  background: var(--bg-code);
  border: 1px solid var(--border-subtle);
  color: var(--emerald-400);
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12.5px;
}

.legal-card ul {
  padding-left: 20px;
  margin: 10px 0 16px;
}

.legal-card li {
  margin-bottom: 8px;
}

.perm-table {
  width: 100%;
  border-collapse: collapse;
  margin: 16px 0 20px;
  font-size: 14px;
}

.perm-table th,
.perm-table td {
  border: 1px solid var(--border-subtle);
  padding: 12px 14px;
  text-align: left;
  vertical-align: top;
}

.perm-table th {
  background: var(--bg-card-alt);
  color: var(--text-primary);
  font-weight: 650;
  font-size: 13px;
}

.perm-badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 600;
  background: var(--emerald-tint);
  color: var(--emerald-400);
  border: 1px solid var(--emerald-border);
  padding: 2px 8px;
  border-radius: 5px;
}

/* ============================================================================
 * Minimal Footer
 * ============================================================================ */
.site-footer {
  background: var(--bg-canvas);
  padding: 48px 0 36px;
  font-size: 13.5px;
  color: var(--text-muted);
}

.footer-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 28px;
  border-bottom: 1px solid var(--border-subtle);
}

.footer-brand {
  max-width: 360px;
}

.footer-brand-row {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--text-primary);
  font-weight: 700;
  font-size: 15.5px;
  margin-bottom: 10px;
}

.footer-brand p {
  margin: 0;
  color: var(--text-dim);
  font-size: 13px;
  line-height: 1.6;
}

.footer-links-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 48px;
}

.footer-col h3 {
  margin: 0 0 10px;
  font-family: var(--font-mono);
  font-size: 11.5px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-primary);
}

.footer-col ul {
  list-style: none;
  padding: 0;
  margin: 0;
}

.footer-col li {
  margin-bottom: 7px;
}

.footer-col a {
  color: var(--text-muted);
  font-size: 13.5px;
}

.footer-col a:hover {
  color: var(--text-primary);
}

.footer-bottom {
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: var(--text-dim);
  font-size: 12.5px;
}

/* ============================================================================
 * Toast Notification
 * ============================================================================ */
.site-toast {
  position: fixed;
  bottom: 22px;
  right: 22px;
  z-index: 100;
  max-width: 360px;
  background: var(--bg-card-alt);
  color: var(--text-primary);
  border: 1px solid var(--border-hover);
  border-left: 3px solid var(--emerald-500);
  padding: 12px 15px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  line-height: 1.45;
  box-shadow: var(--shadow-panel);
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.site-toast.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============================================================================
 * Responsive Breakpoints
 * ============================================================================ */
@media (max-width: 1040px) {
  .hero-split {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-lead {
    max-width: 640px;
  }

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

@media (max-width: 860px) {
  .bento-span-7,
  .bento-span-5 {
    grid-column: span 12;
  }

  .before-after-grid,
  .faq-split {
    grid-template-columns: 1fr;
  }

  .browser-workspace {
    grid-template-columns: 1fr;
  }

  .pdf-viewer-pane {
    border-right: none;
    border-bottom: 1px solid var(--border-subtle);
  }
}

@media (max-width: 640px) {
  .container,
  .container-narrow {
    padding: 0 18px;
  }

  .header-inner {
    flex-wrap: wrap;
    padding: 10px 0;
  }

  .brand-sub,
  .brand-divider {
    display: none;
  }

  .site-nav {
    order: 3;
    width: 100%;
    justify-content: space-between;
    padding-top: 8px;
    border-top: 1px solid var(--border-faint);
    gap: 10px;
    overflow-x: auto;
  }

  .hero {
    padding: 40px 0 48px;
  }

  .section {
    padding: 56px 0;
  }

  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .btn-store {
    width: 100%;
    justify-content: center;
  }

  .legal-card {
    padding: 22px 18px;
  }

  .perm-table,
  .perm-table thead,
  .perm-table tbody,
  .perm-table tr,
  .perm-table th,
  .perm-table td {
    display: block;
  }

  .perm-table thead {
    display: none;
  }

  .perm-table tr {
    margin-bottom: 12px;
    border: 1px solid var(--border-subtle);
    border-radius: 8px;
    overflow: hidden;
  }

  .perm-table td {
    border: none;
    border-bottom: 1px solid var(--border-faint);
  }
}
