:root {
  --navy-950: #07101f;
  --navy-900: #0b1628;
  --navy-800: #13233d;
  --slate-900: #0f172a;
  --slate-800: #1e293b;
  --slate-700: #334155;
  --slate-600: #475569;
  --slate-500: #64748b;
  --slate-400: #94a3b8;
  --slate-300: #cbd5e1;
  --slate-200: #e2e8f0;
  --slate-100: #f1f5f9;
  --slate-50: #f8fafc;

  --emerald-700: #047857;
  --emerald-600: #059669;
  --emerald-500: #10b981;
  --emerald-400: #34d399;
  --emerald-200: #a7f3d0;
  --emerald-100: #d1fae5;
  --emerald-50: #ecfdf5;

  --amber-700: #b45309;
  --amber-600: #d97706;
  --amber-500: #f59e0b;
  --amber-400: #fbbf24;
  --amber-200: #fde68a;
  --amber-100: #fef3c7;
  --amber-50: #fffbeb;

  --red-700: #b91c1c;
  --red-600: #dc2626;
  --red-200: #fecaca;
  --red-100: #fee2e2;
  --red-50: #fef2f2;

  --blue-700: #0369a1;
  --blue-100: #e0f2fe;
  --blue-50: #f0f9ff;

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --shadow-sm: 0 1px 2px rgba(11, 22, 40, 0.06);
  --shadow-md: 0 6px 18px rgba(11, 22, 40, 0.08);
  --shadow-lg: 0 16px 36px rgba(11, 22, 40, 0.14);
  --font-sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

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

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--slate-900);
  background: var(--slate-50);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

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

a:hover {
  text-decoration: underline;
}

.num, .money, td.num, th.num {
  font-variant-numeric: tabular-nums;
  font-feature-settings: "tnum" 1;
}

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

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

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(11, 22, 40, 0.96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(16, 185, 129, 0.24);
  color: #fff;
}

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

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: #fff;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  text-decoration: none;
}

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

.brand-accent {
  color: var(--emerald-400);
}

.brand-tag {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--emerald-200);
  background: rgba(16, 185, 129, 0.14);
  border: 1px solid rgba(16, 185, 129, 0.35);
  padding: 2px 7px;
  border-radius: 999px;
}

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

.nav-links a {
  color: var(--slate-300);
  font-size: 0.88rem;
  font-weight: 500;
}

.nav-links a:hover {
  color: #fff;
  text-decoration: none;
}

.header-mobile-cta,
.btn.header-mobile-cta {
  display: none;
}

.mobile-nav {
  display: none;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 9px 15px;
  font-family: inherit;
  font-size: 0.86rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.15s ease;
  white-space: nowrap;
  text-decoration: none;
}

.btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.btn-emerald {
  background: var(--emerald-500);
  color: var(--navy-950);
  border-color: var(--emerald-500);
  box-shadow: 0 2px 8px rgba(16, 185, 129, 0.28);
}

.btn-emerald:hover:not(:disabled) {
  background: var(--emerald-400);
  border-color: var(--emerald-400);
  text-decoration: none;
}

.btn-amber {
  background: var(--amber-500);
  color: var(--navy-950);
  border-color: var(--amber-500);
  box-shadow: 0 2px 8px rgba(245, 158, 11, 0.24);
}

.btn-amber:hover:not(:disabled) {
  background: var(--amber-400);
  border-color: var(--amber-400);
  text-decoration: none;
}

.btn-navy {
  background: var(--navy-900);
  color: #fff;
  border-color: var(--navy-800);
}

.btn-navy:hover:not(:disabled) {
  background: var(--navy-800);
  text-decoration: none;
}

.btn-outline {
  background: #fff;
  color: var(--slate-800);
  border-color: var(--slate-300);
}

.btn-outline:hover:not(:disabled) {
  background: var(--slate-100);
  border-color: var(--slate-400);
  text-decoration: none;
}

.btn-ghost-dark {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.18);
}

.btn-ghost-dark:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.16);
}

.btn-danger-soft {
  background: var(--red-50);
  color: var(--red-700);
  border-color: var(--red-200);
}

.btn-danger-soft:hover:not(:disabled) {
  background: var(--red-100);
}

.btn-sm {
  padding: 6px 11px;
  font-size: 0.8rem;
}

.btn-xs {
  padding: 4px 9px;
  font-size: 0.75rem;
}

/* Hero Section */
.hero-section {
  background: radial-gradient(circle at 80% 10%, rgba(16, 185, 129, 0.16), transparent 44%),
              linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 58%, #102542 100%);
  color: #fff;
  padding: 28px 0 30px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
}

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

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--emerald-400);
  margin-bottom: 8px;
}

.hero-copy h1 {
  margin: 0 0 10px;
  font-size: clamp(1.55rem, 2.5vw, 2.2rem);
  line-height: 1.18;
  letter-spacing: -0.025em;
  font-weight: 800;
}

.hero-sub {
  margin: 0 0 14px;
  color: var(--slate-300);
  font-size: 0.94rem;
  max-width: 68ch;
}

.trust-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  font-size: 0.79rem;
  color: var(--slate-200);
  font-weight: 500;
}

.trust-strip span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-400);
  display: inline-block;
}

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

.hero-kpi {
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: var(--radius-md);
  padding: 12px 13px;
}

.hero-kpi-label {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
  font-weight: 700;
  margin-bottom: 4px;
}

.hero-kpi-val {
  font-size: 1.25rem;
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

.hero-kpi-val.emerald {
  color: var(--emerald-400);
}

.hero-kpi-val.amber {
  color: var(--amber-400);
}

.hero-kpi-sub {
  font-size: 0.69rem;
  color: var(--slate-400);
  margin-top: 3px;
}

/* Studio Shell */
.studio-section {
  padding: 20px 0 42px;
}

.studio-shell {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  overflow: hidden;
}

/* Top Property Toolbar */
.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--navy-900);
  color: #fff;
  padding: 11px 16px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.project-switcher-group,
.preset-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.toolbar-label {
  font-size: 0.73rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-400);
}

.project-select {
  background: var(--navy-800);
  color: #fff;
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: var(--radius-sm);
  padding: 5px 10px;
  font-size: 0.82rem;
  font-weight: 600;
  min-width: 220px;
}

.preset-chip {
  background: rgba(16, 185, 129, 0.14);
  color: var(--emerald-200);
  border: 1px solid rgba(16, 185, 129, 0.34);
  border-radius: 999px;
  padding: 5px 11px;
  font-size: 0.76rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.14s ease;
}

.preset-chip:hover {
  background: rgba(16, 185, 129, 0.25);
  color: #fff;
}

/* Main Tabs Bar */
.tabs-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 11px 16px;
  background: var(--slate-100);
  border-bottom: 1px solid var(--slate-200);
}

.main-tabs {
  display: inline-flex;
  gap: 6px;
  background: var(--slate-200);
  padding: 4px;
  border-radius: var(--radius-md);
}

.main-tab-btn {
  border: none;
  background: transparent;
  color: var(--slate-700);
  font-family: inherit;
  font-size: 0.84rem;
  font-weight: 700;
  padding: 8px 14px;
  border-radius: 7px;
  cursor: pointer;
  transition: all 0.15s ease;
}

.main-tab-btn.active {
  background: #fff;
  color: var(--navy-900);
  box-shadow: var(--shadow-sm);
}

.tab-panel {
  display: none;
}

.tab-panel.active {
  display: block;
}

.quota-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--slate-700);
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: 999px;
  padding: 5px 11px;
}

.quota-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--emerald-500);
}

/* Split Studio Layout */
.studio-split {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, 0.88fr);
  align-items: start;
}

.editor-pane {
  padding: 18px;
  border-right: 1px solid var(--slate-200);
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.preview-pane {
  padding: 18px;
  background: var(--slate-100);
  display: flex;
  flex-direction: column;
  gap: 14px;
}

/* Cards & Forms */
.card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 14px;
  box-shadow: var(--shadow-sm);
}

.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 11px;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--slate-100);
}

.card-title {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 800;
  color: var(--navy-900);
  display: flex;
  align-items: center;
  gap: 7px;
}

.card-sub {
  font-size: 0.76rem;
  color: var(--slate-500);
}

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

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

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

.field-group {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.field-label {
  font-size: 0.72rem;
  font-weight: 700;
  color: var(--slate-600);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.field-input,
.field-select,
.field-textarea {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 7px 9px;
  font-family: inherit;
  font-size: 0.83rem;
  color: var(--slate-900);
  background: #fff;
}

.field-textarea {
  min-height: 170px;
  resize: vertical;
  font-family: var(--font-mono);
  font-size: 0.77rem;
  line-height: 1.48;
}

.field-input:focus,
.field-select:focus,
.field-textarea:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.16);
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--slate-700);
  cursor: pointer;
}

/* Pool Summary Strip */
.pool-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.pool-pill {
  background: var(--slate-50);
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 8px 10px;
}

.pool-pill.controllable {
  border-left: 3px solid var(--blue-700);
}

.pool-pill.non-controllable {
  border-left: 3px solid var(--amber-600);
}

.pool-pill.excluded {
  border-left: 3px solid var(--red-600);
}

.pool-pill.grossup {
  border-left: 3px solid var(--emerald-600);
}

.pool-pill-label {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-500);
}

.pool-pill-val {
  font-size: 0.94rem;
  font-weight: 800;
  color: var(--navy-900);
}

/* Editable Tables */
.table-scroll {
  width: 100%;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.edit-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.78rem;
}

.edit-table th {
  background: var(--slate-100);
  color: var(--slate-700);
  font-size: 0.68rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  padding: 7px 6px;
  border-bottom: 1px solid var(--slate-300);
  text-align: left;
  white-space: nowrap;
}

.edit-table th.num,
.edit-table td.num {
  text-align: right;
}

.edit-table td {
  padding: 5px 4px;
  border-bottom: 1px solid var(--slate-200);
  vertical-align: middle;
}

.edit-table tr.row-excluded {
  background: var(--red-50);
}

.edit-table tr.row-selected {
  background: var(--emerald-50);
}

.cell-input,
.cell-select {
  width: 100%;
  border: 1px solid var(--slate-300);
  border-radius: 4px;
  padding: 4px 6px;
  font-family: inherit;
  font-size: 0.77rem;
  color: var(--slate-900);
  background: #fff;
}

.cell-input.num {
  text-align: right;
  font-variant-numeric: tabular-nums;
  min-width: 78px;
}

.cell-input.code {
  width: 58px;
  font-family: var(--font-mono);
}

.cell-input.desc {
  min-width: 150px;
}

.cell-select {
  min-width: 118px;
}

.cell-input:focus,
.cell-select:focus {
  outline: none;
  border-color: var(--emerald-500);
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.16);
}

.icon-del-btn {
  border: none;
  background: transparent;
  color: var(--slate-400);
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  padding: 4px 6px;
  border-radius: 4px;
}

.icon-del-btn:hover {
  color: var(--red-600);
  background: var(--red-50);
}

.badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.69rem;
  font-weight: 700;
  white-space: nowrap;
}

.badge-emerald {
  background: var(--emerald-100);
  color: var(--emerald-700);
}

.badge-amber {
  background: var(--amber-100);
  color: var(--amber-700);
}

.badge-red {
  background: var(--red-100);
  color: var(--red-700);
}

.badge-blue {
  background: var(--blue-100);
  color: var(--blue-700);
}

.badge-slate {
  background: var(--slate-200);
  color: var(--slate-700);
}

/* Preview Toolbar & Paper Sheets */
.preview-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.preview-actions {
  display: flex;
  align-items: center;
  gap: 7px;
  flex-wrap: wrap;
}

.paper-sheet {
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: 6px;
  box-shadow: 0 4px 16px rgba(11, 22, 40, 0.1);
  padding: 24px 26px;
  color: #0f172a;
  font-size: 0.78rem;
  line-height: 1.44;
}

.doc-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  border-bottom: 2.5px solid var(--navy-900);
  padding-bottom: 10px;
  margin-bottom: 12px;
}

.doc-title {
  margin: 0;
  font-size: 1.02rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  color: var(--navy-900);
}

.doc-subtitle {
  font-size: 0.73rem;
  color: var(--slate-600);
  font-weight: 600;
  margin-top: 2px;
}

.doc-badge-box {
  text-align: right;
  background: var(--slate-100);
  border: 1px solid var(--slate-300);
  padding: 6px 10px;
  border-radius: 4px;
  font-size: 0.72rem;
  white-space: nowrap;
}

.doc-meta-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  border: 1px solid var(--slate-300);
  padding: 9px 11px;
  margin-bottom: 14px;
  background: var(--slate-50);
}

.doc-meta-cell strong {
  display: block;
  font-size: 0.63rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--slate-500);
  margin-bottom: 2px;
}

.doc-meta-cell span {
  font-size: 0.76rem;
  font-weight: 600;
  color: var(--navy-900);
}

.doc-section-heading {
  margin: 14px 0 6px;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--navy-900);
  border-bottom: 1px solid var(--slate-300);
  padding-bottom: 4px;
}

.statement-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.72rem;
  margin-bottom: 10px;
}

.statement-table th {
  background: var(--navy-900);
  color: #fff;
  padding: 5px 6px;
  font-size: 0.64rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: left;
  border: 1px solid var(--navy-800);
}

.statement-table th.num,
.statement-table td.num {
  text-align: right;
}

.statement-table td {
  padding: 5px 6px;
  border: 1px solid var(--slate-200);
}

.statement-table tbody tr:nth-child(even) {
  background: var(--slate-50);
}

.statement-table tr.row-total td {
  background: var(--slate-100);
  font-weight: 800;
  border-top: 1.5px solid var(--navy-900);
}

.statement-table tr.row-due td {
  background: var(--amber-100);
  font-weight: 900;
  font-size: 0.82rem;
  border-top: 2px solid var(--navy-900);
  border-bottom: 2px solid var(--navy-900);
}

.statement-table tr.row-credit td {
  background: var(--emerald-100);
  font-weight: 900;
  font-size: 0.82rem;
  color: var(--emerald-700);
  border-top: 2px solid var(--emerald-700);
  border-bottom: 2px solid var(--emerald-700);
}

.legal-footnote {
  margin-top: 10px;
  font-size: 0.67rem;
  color: var(--slate-500);
  border-top: 1px dashed var(--slate-300);
  padding-top: 6px;
}

/* Tab 2: Tenant Overcharge Auditor */
.auditor-wrap {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.auditor-banner {
  background: linear-gradient(135deg, #0b1628 0%, #152b4a 100%);
  color: #fff;
  border-radius: var(--radius-md);
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

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

.dropzone {
  border: 1.5px dashed var(--slate-300);
  border-radius: var(--radius-sm);
  background: var(--slate-50);
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
  transition: all 0.14s ease;
}

.dropzone.dragover {
  border-color: var(--emerald-500);
  background: var(--emerald-50);
}

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

.audit-kpi-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 12px 14px;
  box-shadow: var(--shadow-sm);
}

.audit-kpi-card.overcharge {
  background: var(--red-50);
  border-color: var(--red-200);
}

.audit-kpi-card.deadline {
  background: var(--amber-50);
  border-color: var(--amber-200);
}

.audit-kpi-label {
  font-size: 0.69rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--slate-600);
}

.audit-kpi-num {
  font-size: 1.35rem;
  font-weight: 900;
  color: var(--navy-900);
  margin-top: 3px;
}

.audit-kpi-card.overcharge .audit-kpi-num {
  color: var(--red-700);
}

.finding-card {
  border: 1px solid var(--slate-200);
  border-left: 4px solid var(--red-600);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  background: #fff;
  margin-bottom: 10px;
}

.finding-card.sev-medium {
  border-left-color: var(--amber-500);
}

.finding-card.sev-low {
  border-left-color: var(--blue-700);
}

.finding-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.finding-amounts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  font-size: 0.78rem;
  margin: 6px 0;
  padding: 6px 10px;
  background: var(--slate-50);
  border-radius: 5px;
}

.letter-box {
  background: #fff;
  border: 1px solid var(--slate-300);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  white-space: pre-wrap;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 0.85rem;
  line-height: 1.55;
  color: #0f172a;
}

/* Collapsible BYOK Details */
.byok-details {
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-sm);
  padding: 8px 12px;
  background: var(--slate-50);
  font-size: 0.8rem;
}

.byok-details summary {
  cursor: pointer;
  font-weight: 700;
  color: var(--slate-700);
}

/* Status Banners & Toast */
.status-banner {
  display: none;
  border-radius: var(--radius-sm);
  padding: 9px 12px;
  font-size: 0.82rem;
  font-weight: 500;
  margin-top: 8px;
}

.status-banner.show {
  display: block;
}

.status-banner.info {
  background: var(--blue-50);
  color: var(--blue-700);
  border: 1px solid #bae6fd;
}

.status-banner.success {
  background: var(--emerald-50);
  color: var(--emerald-700);
  border: 1px solid var(--emerald-200);
}

.status-banner.error {
  background: var(--red-50);
  color: var(--red-700);
  border: 1px solid var(--red-200);
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  background: var(--navy-900);
  color: #fff;
  border: 1px solid rgba(16, 185, 129, 0.45);
  border-radius: var(--radius-md);
  padding: 10px 15px;
  font-size: 0.84rem;
  font-weight: 600;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition: all 0.2s ease;
  max-width: 380px;
}

.toast.show {
  opacity: 1;
  transform: translateY(0);
}

/* Content Sections (Features, Pricing, Guides, FAQ) */
.content-section {
  padding: 50px 0;
  border-top: 1px solid var(--slate-200);
}

.content-section.alt {
  background: #fff;
}

.section-header {
  text-align: center;
  max-width: 740px;
  margin: 0 auto 30px;
}

.section-header h2 {
  margin: 0 0 8px;
  font-size: clamp(1.4rem, 2.2vw, 1.9rem);
  font-weight: 800;
  color: var(--navy-900);
  letter-spacing: -0.02em;
}

.section-header p {
  margin: 0;
  color: var(--slate-600);
  font-size: 0.95rem;
}

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

.feature-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.feature-card h3 {
  margin: 0 0 6px;
  font-size: 0.98rem;
  color: var(--navy-900);
}

.feature-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--slate-600);
}

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

.pricing-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 22px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow-sm);
}

.pricing-card.featured {
  border: 2px solid var(--emerald-500);
  box-shadow: var(--shadow-md);
  position: relative;
}

.pricing-pill {
  display: inline-block;
  align-self: flex-start;
  font-size: 0.7rem;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  padding: 3px 9px;
  border-radius: 999px;
  background: var(--emerald-100);
  color: var(--emerald-700);
}

.pricing-price {
  font-size: 2rem;
  font-weight: 900;
  color: var(--navy-900);
  line-height: 1.1;
}

.pricing-price span {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--slate-500);
}

.pricing-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.85rem;
  color: var(--slate-700);
  flex: 1;
}

.pricing-list li::before {
  content: "✓ ";
  color: var(--emerald-600);
  font-weight: 800;
}

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

.faq-item {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 16px 18px;
}

.faq-item h3 {
  margin: 0 0 6px;
  font-size: 0.94rem;
  color: var(--navy-900);
}

.faq-item p {
  margin: 0;
  font-size: 0.85rem;
  color: var(--slate-600);
}

/* Guides & Articles */
.guide-hero {
  background: linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 100%);
  color: #fff;
  padding: 34px 0;
  border-bottom: 1px solid rgba(16, 185, 129, 0.25);
}

.guide-hero h1 {
  margin: 8px 0 10px;
  font-size: clamp(1.5rem, 2.5vw, 2.15rem);
  line-height: 1.2;
}

.guide-hero p {
  margin: 0;
  color: var(--slate-300);
  max-width: 72ch;
}

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

.guide-card {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-md);
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  box-shadow: var(--shadow-sm);
}

.guide-card h3 {
  margin: 0;
  font-size: 1rem;
  color: var(--navy-900);
}

.guide-card p {
  margin: 0;
  font-size: 0.86rem;
  color: var(--slate-600);
  flex: 1;
}

.article-shell {
  background: #fff;
  border: 1px solid var(--slate-200);
  border-radius: var(--radius-lg);
  padding: 30px 34px;
  margin: 26px 0 44px;
  box-shadow: var(--shadow-sm);
}

.article-shell h2 {
  margin: 24px 0 10px;
  font-size: 1.25rem;
  color: var(--navy-900);
}

.article-shell p,
.article-shell li {
  color: var(--slate-700);
  font-size: 0.94rem;
  line-height: 1.65;
}

.callout-box {
  background: var(--emerald-50);
  border: 1px solid var(--emerald-200);
  border-left: 4px solid var(--emerald-600);
  border-radius: var(--radius-sm);
  padding: 13px 15px;
  margin: 16px 0;
  font-size: 0.9rem;
  color: var(--navy-900);
}

/* Footer */
.site-footer {
  background: var(--navy-950);
  color: var(--slate-300);
  padding: 38px 0 24px;
  border-top: 1px solid rgba(148, 163, 184, 0.16);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.1fr 1fr;
  gap: 24px;
  margin-bottom: 24px;
}

.site-footer h4 {
  margin: 0 0 10px;
  color: #fff;
  font-size: 0.88rem;
}

.site-footer ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 7px;
  font-size: 0.83rem;
}

.site-footer a {
  color: var(--slate-300);
}

.site-footer a:hover {
  color: #fff;
}

.footer-bottom {
  border-top: 1px solid rgba(148, 163, 184, 0.16);
  padding-top: 16px;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  font-size: 0.77rem;
  color: var(--slate-400);
}

/* Waitlist Modal */
.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: rgba(7, 16, 31, 0.72);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal-backdrop.open {
  display: flex;
}

.modal-dialog {
  width: 100%;
  max-width: 480px;
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}

.modal-header {
  background: var(--navy-900);
  color: #fff;
  padding: 15px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.modal-header h3 {
  margin: 0;
  font-size: 1rem;
}

.modal-close {
  border: none;
  background: transparent;
  color: var(--slate-300);
  font-size: 1.4rem;
  cursor: pointer;
  line-height: 1;
}

.modal-body {
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Zero-overflow min-width guards on all grid/flex children */
.hero-top > *,
.hero-kpis > *,
.studio-split > *,
.auditor-inputs-grid > *,
.audit-results-grid > *,
.pool-summary-grid > *,
.form-grid-2 > *,
.form-grid-3 > *,
.form-grid-4 > *,
.feature-grid > *,
.pricing-grid > *,
.faq-grid > *,
.guides-grid > *,
.footer-grid > *,
.project-toolbar > *,
.tabs-bar > *,
.card,
.studio-shell {
  min-width: 0;
}

/* Visible Full-Height Temporary PDF Capture Stage (720px, zero scroll-offset clipping) */
.pdf-capture-stage {
  position: absolute;
  top: 0;
  left: 0;
  width: 720px;
  max-width: 720px;
  min-height: 100%;
  background: #ffffff;
  color: #0f172a;
  z-index: 99999;
  pointer-events: none;
  overflow: visible;
  padding: 0;
  margin: 0;
  box-sizing: border-box;
}

.pdf-capture-content {
  width: 720px;
  max-width: 720px;
  margin: 0;
  padding: 0;
  background: #ffffff;
  color: #0f172a;
  font-family: var(--font-sans);
  box-sizing: border-box;
}

.pdf-capture-content .paper-sheet {
  width: 100% !important;
  max-width: 720px !important;
  background: #ffffff !important;
  color: #0f172a !important;
  border: none !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  padding: 6px 4px !important;
  margin: 0 !important;
  box-sizing: border-box !important;
}

.pdf-capture-content .doc-header {
  flex-wrap: nowrap !important;
}

.pdf-capture-content .doc-meta-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
}

.pdf-capture-content .table-scroll {
  overflow: visible !important;
}

.pdf-capture-content table {
  width: 100% !important;
  table-layout: fixed !important;
  border-collapse: collapse !important;
  font-size: 9px !important;
}

.pdf-capture-content th,
.pdf-capture-content td {
  padding: 4px 4px !important;
  line-height: 1.25 !important;
  vertical-align: top !important;
  overflow-wrap: break-word !important;
  word-break: break-word !important;
}

.pdf-capture-content td.num {
  white-space: nowrap !important;
  word-break: normal !important;
}

/* Explicit column % widths summing to 100% for CAM Expense Schedule */
.pdf-capture-content .cam-pdf-expense-table th:nth-child(1),
.pdf-capture-content .cam-pdf-expense-table td:nth-child(1) { width: 12% !important; }
.pdf-capture-content .cam-pdf-expense-table th:nth-child(2),
.pdf-capture-content .cam-pdf-expense-table td:nth-child(2) { width: 38% !important; }
.pdf-capture-content .cam-pdf-expense-table th:nth-child(3),
.pdf-capture-content .cam-pdf-expense-table td:nth-child(3) { width: 17% !important; }
.pdf-capture-content .cam-pdf-expense-table th:nth-child(4),
.pdf-capture-content .cam-pdf-expense-table td:nth-child(4) { width: 16% !important; }
.pdf-capture-content .cam-pdf-expense-table th:nth-child(5),
.pdf-capture-content .cam-pdf-expense-table td:nth-child(5) { width: 17% !important; }

/* Explicit column % widths summing to 100% for CAM Tenant Waterfall */
.pdf-capture-content .cam-pdf-waterfall-table th:nth-child(1),
.pdf-capture-content .cam-pdf-waterfall-table td:nth-child(1) { width: 74% !important; }
.pdf-capture-content .cam-pdf-waterfall-table th:nth-child(2),
.pdf-capture-content .cam-pdf-waterfall-table td:nth-child(2) { width: 26% !important; }

/* Explicit column % widths summing to 100% for Tenant Audit Findings PDF */
.pdf-capture-content .audit-pdf-findings-table th:nth-child(1),
.pdf-capture-content .audit-pdf-findings-table td:nth-child(1) { width: 8% !important; }
.pdf-capture-content .audit-pdf-findings-table th:nth-child(2),
.pdf-capture-content .audit-pdf-findings-table td:nth-child(2) { width: 19% !important; }
.pdf-capture-content .audit-pdf-findings-table th:nth-child(3),
.pdf-capture-content .audit-pdf-findings-table td:nth-child(3) { width: 34% !important; }
.pdf-capture-content .audit-pdf-findings-table th:nth-child(4),
.pdf-capture-content .audit-pdf-findings-table td:nth-child(4) { width: 13% !important; }
.pdf-capture-content .audit-pdf-findings-table th:nth-child(5),
.pdf-capture-content .audit-pdf-findings-table td:nth-child(5) { width: 13% !important; }
.pdf-capture-content .audit-pdf-findings-table th:nth-child(6),
.pdf-capture-content .audit-pdf-findings-table td:nth-child(6) { width: 13% !important; }

/* Responsive Breakpoints */
@media (max-width: 1180px) {
  .studio-split,
  .hero-top {
    grid-template-columns: 1fr;
  }
  .editor-pane {
    border-right: none;
    border-bottom: 1px solid var(--slate-200);
  }
}

@media (max-width: 880px) {
  .auditor-inputs-grid,
  .feature-grid,
  .pricing-grid,
  .faq-grid,
  .guides-grid,
  .footer-grid {
    grid-template-columns: 1fr;
  }
  .audit-results-grid,
  .pool-summary-grid,
  .form-grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .form-grid-3 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .doc-meta-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 768px) {
  .header-inner {
    min-height: 56px;
    padding-top: 6px;
    padding-bottom: 6px;
    gap: 10px;
    flex-wrap: nowrap;
  }
  .brand {
    font-size: 1.05rem;
    gap: 7px;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .brand-tag {
    display: none;
  }
  .nav-links {
    display: none;
  }
  .header-mobile-cta,
  .btn.header-mobile-cta {
    display: inline-flex !important;
    padding: 6px 11px;
    font-size: 0.78rem;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .mobile-nav {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 14px 10px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    border-top: 1px solid rgba(148, 163, 184, 0.14);
    background: rgba(7, 16, 31, 0.92);
  }
  .mobile-nav::-webkit-scrollbar {
    display: none;
  }
  .mobile-nav a {
    flex: 0 0 auto;
    white-space: nowrap;
    font-size: 0.78rem;
    font-weight: 600;
    color: var(--slate-200);
    background: rgba(255, 255, 255, 0.08);
    border: 1px solid rgba(148, 163, 184, 0.22);
    padding: 5px 11px;
    border-radius: 999px;
    text-decoration: none;
  }
  .mobile-nav a:hover,
  .mobile-nav a:active {
    color: #fff;
    border-color: var(--emerald-400);
    background: rgba(16, 185, 129, 0.16);
    text-decoration: none;
  }
}

@media (max-width: 640px) {
  .container,
  .container-narrow {
    padding: 0 14px;
  }
  .hero-section {
    padding: 20px 0 22px;
  }
  .hero-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px;
  }
  .hero-kpi:last-child {
    grid-column: 1 / -1;
  }
  .hero-kpi-val {
    font-size: clamp(1.08rem, 4.4vw, 1.4rem);
    overflow-wrap: anywhere;
  }
  .form-grid-2,
  .form-grid-3,
  .form-grid-4 {
    grid-template-columns: 1fr;
  }
  .project-toolbar,
  .tabs-bar,
  .editor-pane,
  .preview-pane,
  .auditor-wrap {
    padding-left: 12px;
    padding-right: 12px;
  }
  .project-switcher-group,
  .project-select {
    width: 100%;
    min-width: 0;
  }
  .main-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
  }
  .main-tab-btn {
    padding: 8px 6px;
    font-size: 0.76rem;
    text-align: center;
    white-space: normal;
  }
  .paper-sheet {
    padding: 14px 12px;
  }
  .article-shell {
    padding: 20px 16px;
  }
}

.print-page-break {
  page-break-before: always;
  break-before: page;
}

@media print {
  body {
    background: #fff !important;
  }
  .no-print,
  .site-header,
  .hero-section,
  .project-toolbar,
  .tabs-bar,
  .editor-pane,
  .preview-toolbar,
  .content-section,
  .site-footer,
  .modal-backdrop,
  .toast {
    display: none !important;
  }
  .studio-section,
  .container,
  .studio-shell,
  .preview-pane {
    padding: 0 !important;
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    background: #fff !important;
    max-width: 100% !important;
  }
  .studio-split {
    display: block !important;
  }
  .paper-sheet {
    border: none !important;
    box-shadow: none !important;
    padding: 0 !important;
    margin: 0 0 18px 0 !important;
  }
}
