:root {
  --ink: #0F1923;
  --ink-2: #1a2534;
  --muted: #525252;
  --muted-2: #737373;
  --muted-3: #a3a3a3;
  --line: #e5e5e5;
  --line-2: #f0f0f0;
  --line-3: #f7f7f7;
  --paper: #ffffff;
  --paper-2: #fafafa;
  --paper-3: #f5f5f5;
  --accent: #B08D57;
  --accent-hover: #8F6F3E;
  --accent-soft: #F7F1E6;
  --accent-soft-2: #FBF7F0;
  --green: #2f7a4d;
  --green-soft: #f0f7f3;
  --green-on-dark: #3FA86A;
  --red: #c94a3e;
  --red-soft: #fbe9e7;
  --red-on-dark: #E36458;
  --amber: #c98f3e;
  --amber-soft: #fbf2e7;
  --amber-on-dark: #E0A65A;
  --blue: #3b5ea5;
  --blue-soft: #eef2f8;
  --blue-on-dark: #6F8DD0;
  --finance: #2D5A66;
  --finance-soft: #EEF4F5;
  --ff-body: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --ff-mono: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --max-w: 1440px;
  --inner-pad: 32px;
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --dur-fast: 0.15s;
  --dur-base: 0.3s;
  --dur-slow: 0.7s;
}

/* Reset + base */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-body); color: var(--ink); background: var(--paper);
  line-height: 1.5; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
a { color: inherit; text-decoration: none; }
button { font-family: inherit; border: 0; background: none; padding: 0; cursor: pointer; }
img, svg { display: block; max-width: 100%; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, h5, h6 { margin: 0; line-height: 1.1; font-weight: 600; }
p { margin: 0; }
.body-prose a, .day-prose a, .faq-a a, .deeper-text p a { color: var(--accent); border-bottom: 1px solid rgba(176,141,87,0.35); transition: border-color var(--dur-fast); }
.body-prose a:hover, .day-prose a:hover, .faq-a a:hover, .deeper-text p a:hover { border-bottom-color: var(--accent); }
.visually-hidden { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--inner-pad); padding-right: var(--inner-pad); }
main > section, main > div > section { padding: 96px var(--inner-pad); border-bottom: 1px solid var(--line); }
main > section.section-tight, main > div > section.section-tight   { padding: 80px var(--inner-pad); }
.bg-paper-2{ background: var(--paper-2); }
.bg-ink    { background: var(--ink); color: #fff; }

/* Type */
.display { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.heading { font-weight: 600; letter-spacing: -0.01em; }
.eyebrow { font-size: 15px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); }
.h-display { font-size: clamp(48px, 5.2vw, 76px); font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; }
.h-section { font-size: clamp(40px, 4.2vw, 60px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.08; }
.h-section-sm { font-size: clamp(36px, 3.8vw, 52px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.1; }
.h-section-xs { font-size: clamp(32px, 3.4vw, 44px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.12; }
.h-card { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.h-sub { font-size: 20px; font-weight: 600; letter-spacing: -0.01em; }
.mono { font-family: var(--ff-mono); font-feature-settings: 'tnum'; }
.num { font-variant-numeric: tabular-nums; }

/* Buttons */
.btn {
  font-family: inherit; font-size: 16px; font-weight: 500;
  padding: 13px 22px; border: 1px solid transparent; border-radius: 0;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; white-space: nowrap; text-decoration: none;
  transition: background var(--dur-fast) var(--ease-smooth),
              color var(--dur-fast) var(--ease-smooth),
              border-color var(--dur-fast) var(--ease-smooth),
              transform var(--dur-fast) var(--ease-smooth),
              box-shadow var(--dur-base) var(--ease-smooth);
}
.btn:hover  { transform: translateY(-1px); }
.btn:active { transform: translateY(0); transition-duration: 0s; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); box-shadow: 0 10px 28px -10px rgba(176, 141, 87, 0.55); }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); box-shadow: 0 10px 28px -10px rgba(15, 25, 35, 0.5); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); background: var(--paper-2); }
.btn-ghost-inv { background: transparent; color: #fff; border-color: rgba(255,255,255,0.25); }
.btn-ghost-inv:hover { border-color: rgba(255,255,255,0.6); background: rgba(255,255,255,0.04); }
.btn-lg { padding: 16px 26px; font-size: 17px; font-weight: 600; }
.link-arrow {
  font-size: 16px; font-weight: 500; color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--dur-fast) var(--ease-smooth); text-decoration: none;
}
.link-arrow:hover { gap: 10px; }

/* ============== HEADER ============== */
.site-header { position: sticky; top: 0; z-index: 100; background: var(--paper); border-bottom: 1px solid var(--line); }
.pulse-dot {
  width: 6px; height: 6px; border-radius: 50%; background: var(--accent);
  animation: pulse 2s ease-in-out infinite; flex: none;
}
.site-nav { background: var(--paper); }
.site-nav-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 14px var(--inner-pad);
  display: flex; align-items: center; justify-content: space-between;
}
.site-nav-left { display: flex; align-items: center; gap: 44px; }
.site-nav-right { display: flex; align-items: center; gap: 10px; }
.nav-list { display: flex; align-items: center; gap: 22px; list-style: none; padding: 0; margin: 0; }
.nav-link {
  font-size: 16.5px; font-weight: 500; color: var(--ink);
  padding: 8px 4px; transition: color var(--dur-fast); text-decoration: none;
}
.nav-link:hover { color: var(--accent); }
.nav-signin { font-size: 16px; padding: 8px 12px; color: var(--ink); text-decoration: none; }
.nav-signin:hover { color: var(--accent); }
.nav-cta { padding: 10px 18px; }
.nav-hamburger {
  display: none;
  width: 36px; height: 36px;
  flex-direction: column; justify-content: center; align-items: center;
  gap: 5px; padding: 0; background: none; border: 0; cursor: pointer;
}
.nav-hamburger span {
  display: block; width: 20px; height: 2px;
  background: var(--ink); transition: transform var(--dur-base), opacity var(--dur-base);
}
.edma-logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 700; font-size: 22px; letter-spacing: -0.01em;
  text-decoration: none;
}
.edma-logo .phoenix { height: 34px; width: auto; display: block; max-width: 100%; }
.edma-wordmark { font-family: var(--ff-body); }

/* ============== HERO (1) ============== */
.s-hero { text-align: center; }
.s-hero-inner { max-width: 920px; margin: 0 auto; }
.s-hero .eyebrow { display: inline-block; margin-bottom: 28px; }
.s-hero h1 { margin-bottom: 24px; }
.s-hero .lede { max-width: 820px; margin: 0 auto 36px; }
.cta-row { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ============== CENTERPIECE (2) — JOURNAL-ENTRY STREAM ============== */
.s-centerpiece { padding-top: 0; padding-bottom: 96px; border-bottom: 1px solid var(--line); }
.je-frame {
  max-width: var(--max-w); margin: 0 auto;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(15,25,35,0.04), 0 8px 24px rgba(15,25,35,0.04);
}
.je-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 24px; border-bottom: 1px solid rgba(255,255,255,0.08);
  flex-wrap: wrap; gap: 12px;
  background: var(--ink);
  color: var(--paper);
}
.je-head-l { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.je-head-l .ttl {
  font-family: var(--ff-mono); font-size: 11.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: rgba(255,255,255,0.55);
  font-weight: 600;
}
.je-head-l .order-id {
  font-family: var(--ff-mono); font-size: 14px;
  color: var(--paper); font-weight: 500;
}
.je-live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--ff-mono); font-size: 12px;
  color: #5fd49a;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.je-live .dot {
  width: 7px; height: 7px; border-radius: 50%; background: #5fd49a;
  box-shadow: 0 0 0 0 rgba(95,212,154,0.6);
  animation: pulseDot 2s infinite;
}
@keyframes pulseDot {
  0% { box-shadow: 0 0 0 0 rgba(95,212,154,0.5); }
  70% { box-shadow: 0 0 0 8px rgba(95,212,154,0); }
  100% { box-shadow: 0 0 0 0 rgba(95,212,154,0); }
}

/* Centerpiece — Operations → Ledger row-pair stream */
.je-stream {
  background: var(--paper);
}
.je-stream-head {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-family: var(--ff-mono); font-size: 10.5px;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 700;
}
.je-stream-head-l, .je-stream-head-r {
  padding: 11px 24px;
}
.je-stream-head-l {
  border-right: 1px solid var(--line);
}
.je-stream-head-l .je-arrow {
  color: var(--muted-3); font-weight: 500; margin-left: 10px;
  letter-spacing: 0.04em; text-transform: none;
}
.je-stream-head-r {
  display: flex; justify-content: space-between;
  background: rgba(45, 90, 102, 0.025);
}
.je-stream-head-r .je-stream-head-amt {
  color: var(--muted-3);
}

/* Each pair = one operation + one journal entry, aligned in same row */
.je-pair {
  display: grid;
  grid-template-columns: 1fr 1.25fr;
  align-items: stretch;
  border-bottom: 1px solid var(--line-2);
  position: relative;
}
.je-pair:last-child { border-bottom: 0; }
.je-pair .je-row.left {
  padding: 18px 24px;
  border-right: 1px solid var(--line);
  position: relative;
}
.je-pair .je-row.right {
  padding: 18px 24px;
  background: rgba(45, 90, 102, 0.025);
}

/* Connector arrow on the divider line — visible on desktop */
.je-pair .je-row.left::after {
  content: '→'; position: absolute;
  right: -12px; top: 50%; transform: translateY(-50%);
  width: 24px; height: 24px;
  background: var(--finance); color: var(--paper);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
  box-shadow: 0 0 0 4px var(--paper);
  z-index: 1;
  font-family: 'Inter', sans-serif;
}

.je-row {
  display: grid;
  gap: 12px;
  align-items: flex-start;
  font-size: 14px;
}
.je-row.left {
  grid-template-columns: 28px 64px 1fr;
}
.je-row.right {
  grid-template-columns: 78px 1fr;
}

.je-row .num {
  font-family: var(--ff-mono); font-size: 12px;
  color: var(--muted-3); padding-top: 3px;
  font-weight: 600;
}
.je-row .time {
  font-family: var(--ff-mono); font-size: 12px;
  color: var(--muted); padding-top: 3px;
  letter-spacing: 0.01em;
}
.je-row .desc {
  color: var(--ink); line-height: 1.5;
  font-size: 14.5px;
  font-weight: 500;
}
.je-row .desc .ev-tag {
  display: inline-block;
  font-family: var(--ff-mono); font-size: 10.5px; font-weight: 700;
  padding: 2px 7px; margin-right: 8px;
  letter-spacing: 0.06em;
  border: 1px solid;
  vertical-align: middle;
  border-radius: 2px;
}
.je-row .ev-order {
  font-family: var(--ff-mono); font-size: 12px;
  color: var(--muted-2);
  display: block; margin-top: 4px;
  font-weight: 400;
}

/* event tag colors */
.ev-tag.t-order { color: var(--accent); border-color: rgba(176,141,87,0.4); background: var(--accent-soft); }
.ev-tag.t-lc    { color: #1f4048; border-color: rgba(45,90,102,0.3); background: var(--finance-soft); }
.ev-tag.t-po    { color: #475569; border-color: #CBD5E1; background: #F1F5F9; }
.ev-tag.t-cash  { color: #166534; border-color: rgba(22,101,52,0.3); background: #DCFCE7; }
.ev-tag.t-gr    { color: #92400E; border-color: rgba(146,64,14,0.3); background: #FEF3C7; }
.ev-tag.t-inv   { color: #1E40AF; border-color: rgba(30,64,175,0.3); background: #DBEAFE; }
.ev-tag.t-frt   { color: var(--muted); border-color: var(--line); background: var(--paper-3); }
.ev-tag.t-cust  { color: var(--accent); border-color: rgba(176,141,87,0.4); background: var(--accent-soft); }

.je-row.right .je-id {
  font-family: var(--ff-mono); font-size: 12.5px;
  color: var(--finance); font-weight: 700;
  padding-top: 3px;
  letter-spacing: 0.02em;
}
.je-row.right .je-detail {
  font-size: 13.5px; line-height: 1.55; color: var(--ink);
}
.je-row.right .je-detail .lab {
  display: inline-block;
  color: var(--muted-3); font-family: var(--ff-mono); font-size: 10.5px;
  font-weight: 700; letter-spacing: 0.06em;
  margin-right: 6px;
  width: 18px;
}
.je-row.right .je-detail .dr,
.je-row.right .je-detail .cr {
  color: var(--ink);
  font-weight: 400;
}
.je-row.right .je-detail .amt {
  font-family: var(--ff-mono); font-weight: 700;
  color: var(--ink); font-size: 14.5px;
  display: block; margin-top: 4px;
  letter-spacing: 0.01em;
}
.je-row.right .je-detail .meta {
  font-family: var(--ff-mono); font-size: 11.5px;
  color: var(--muted-2); display: block;
  margin-top: 6px; font-weight: 400;
  letter-spacing: 0.01em;
}

/* P&L footer */
.je-pnl {
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--line);
  background: var(--paper-2);
}
.je-pnl-cell {
  padding: 16px 22px;
  border-right: 1px solid var(--line);
}
.je-pnl-cell:last-child { border-right: 0; }
.je-pnl-cell .lab {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); margin-bottom: 4px;
  font-weight: 700;
}
.je-pnl-cell .val {
  font-size: 22px; font-weight: 600; color: var(--ink);
  font-family: 'Inter', sans-serif;
  letter-spacing: -0.01em;
  font-variant-numeric: tabular-nums;
}
.je-pnl-cell .val.is-good {
  color: var(--green);
}
.je-pnl-cell .val .pct {
  font-size: 13px; font-weight: 500; color: var(--muted);
  margin-left: 6px;
}

.centerpiece-cap {
  max-width: 880px; margin: 18px auto 0;
  text-align: center; font-size: 13.5px;
  color: var(--muted); line-height: 1.55;
  padding: 0 24px;
}
.centerpiece-cap .mono {
  font-family: var(--ff-mono); color: var(--ink); font-weight: 500;
}

/* ============== PROBLEM (3) ============== */
.s-problem-grid {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.4fr; gap: 80px; align-items: start;
}
.s-problem h2 { margin-bottom: 0; }
.s-problem .lede { font-size: 17px; }
.s-problem .lede + .lede { margin-top: 18px; }
.s-problem .body-prose p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.s-problem .body-prose p + p { margin-top: 18px; }
.s-problem .body-prose strong { color: var(--ink); font-weight: 600; }

/* ============== WHAT IT DOES (4) ============== */
.s-what-head { max-width: var(--max-w); margin: 0 auto 64px; }
.s-what-head h2 { margin-bottom: 0; }
.cap {
  max-width: var(--max-w); margin: 0 auto;
  display: grid; grid-template-columns: 1fr 1.2fr; gap: 80px;
  padding: 64px 0; border-top: 1px solid var(--line);
  align-items: center;
}
.cap:first-of-type { border-top: 0; padding-top: 0; }
.cap.cap-flip { grid-template-columns: 1.2fr 1fr; }
.cap.cap-flip .cap-text { order: 2; }
.cap.cap-flip .cap-mock { order: 1; }
.cap-text h3 { margin-bottom: 18px; }
.cap-text p { font-size: 17px; line-height: 1.7; color: var(--muted); }
.cap-text p strong { color: var(--ink); font-weight: 600; }
.cap-text .eyebrow { display: inline-block; margin-bottom: 16px; }
.cap-mock-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.14em;
  text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 12px;
}
.cap-mock {
  background: var(--paper-2); border: 1px solid var(--line-2);
  padding: 20px;
  min-width: 0; overflow: hidden;
}
.cap-text { min-width: 0; }
.fin-screen { min-width: 0; }

/* ============== 4.1 — LIVE MARGIN PER ORDER ============== */
/* ============== 4.1 — PROFITABILITY · BY ORDER ============== */
.fin-screen {
  background: var(--paper); border: 1px solid var(--line-2);
  padding: 20px 22px;
}

/* Sub-tab strip (mirrors platform's page-tabs) */
.fin-tabs {
  display: flex; gap: 16px; flex-wrap: nowrap; overflow-x: auto;
  border-bottom: 1px solid var(--line-2);
  padding-bottom: 11px; margin-bottom: 18px;
  /* hide scrollbar on tabs row */
  scrollbar-width: none;
}
.fin-tabs::-webkit-scrollbar { display: none; }
.fin-tab {
  font-size: 13px; font-weight: 500; color: var(--muted);
  padding: 2px 0;
  border-bottom: 2px solid transparent;
  white-space: nowrap; flex: 0 0 auto;
}
.fin-tab-on { color: var(--accent); border-bottom-color: var(--accent); }

/* View pills */
.fin-pills {
  display: inline-flex; gap: 0; flex-wrap: wrap;
  border: 1px solid var(--line-2);
  margin-bottom: 16px;
}
.fin-pill {
  font-size: 13.5px; padding: 7px 14px;
  color: var(--muted);
  border-right: 1px solid var(--line-2);
}
.fin-pill:last-child { border-right: 0; }
.fin-pill-on { background: var(--ink); color: #fff; }

/* 4-KPI strip */
.fin-kpis {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px;
  margin-bottom: 16px;
}
.fin-kpi {
  background: var(--paper-2); border: 1px solid var(--line-2);
  padding: 12px 14px;
}
.fin-kpi .val {
  font-family: var(--ff-mono); font-size: 22px; font-weight: 600;
  color: var(--ink); font-variant-numeric: tabular-nums;
  line-height: 1.1; margin-bottom: 4px;
}
.fin-kpi .val.is-good { color: var(--green); }
.fin-kpi .val.is-mid { color: var(--accent); }
.fin-kpi .val.is-bad { color: var(--red); }
.fin-kpi .lab {
  font-family: var(--ff-mono); font-size: 11.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2);
}

/* Search + filter bar */
.fin-filterbar {
  display: flex; gap: 10px; align-items: center;
  margin-bottom: 14px;
}
.fin-search {
  flex: 1; padding: 8px 12px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-size: 13.5px; color: var(--muted);
  display: inline-flex; align-items: center; gap: 8px;
}
.fin-search .ico { color: var(--muted-2); }
.fin-filter {
  padding: 8px 14px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-size: 13.5px; color: var(--ink); min-width: 180px;
  display: inline-flex; align-items: center; justify-content: space-between; gap: 8px;
}
.fin-filter .caret { color: var(--muted-2); }

/* Table */
.prof-table-wrap {
  background: var(--paper); border: 1px solid var(--line-2);
  margin-bottom: 16px; overflow-x: auto;
}
.prof-table {
  width: 100%; border-collapse: collapse;
  font-size: 14px;
  font-variant-numeric: tabular-nums;
}
.prof-table thead th {
  font-family: var(--ff-mono); font-size: 11.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2);
  text-align: left; padding: 10px 14px;
  border-bottom: 1px solid var(--line-2);
  background: var(--paper-2);
}
.prof-table thead th.tr { text-align: right; }
.prof-table tbody td {
  padding: 11px 14px; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.prof-table tbody tr:last-child td { border-bottom: 0; }
.prof-table .prof-id {
  font-family: var(--ff-mono); font-size: 13px;
  color: var(--accent); font-weight: 600;
  white-space: nowrap;
}
.prof-table .amt { text-align: right; font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }
.prof-table .margin {
  text-align: right; font-family: var(--ff-mono); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.prof-table .margin.is-good { color: var(--green); }
.prof-table .margin.is-mid { color: var(--accent); }
.prof-table .margin.is-bad { color: var(--red); }

/* Status badges */
.prof-badge {
  display: inline-block; font-family: var(--ff-mono); font-size: 10.5px;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  padding: 3px 8px;
}
.prof-badge.is-green { color: var(--green); background: var(--green-soft); }
.prof-badge.is-amber { color: var(--accent); background: var(--accent-soft); }
.prof-badge.is-red { color: var(--red); background: var(--red-soft); }

/* Margin alerts */
.prof-alerts {
  background: var(--paper); border: 1px solid var(--line-2);
}
.prof-alerts-head {
  display: flex; justify-content: space-between; align-items: center;
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-2);
  padding: 10px 14px; border-bottom: 1px solid var(--line-2);
  background: var(--paper-2);
}
.prof-alerts-count {
  font-family: var(--ff-mono); font-size: 11.5px; font-weight: 700;
  background: var(--red-soft); color: var(--red);
  padding: 2px 8px;
}
.prof-alert {
  display: flex; justify-content: space-between; align-items: center;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line-2);
  border-left: 3px solid transparent;
}
.prof-alert:last-child { border-bottom: 0; }
.prof-alert.is-critical { border-left-color: var(--red); background: rgba(201,74,62,0.04); }
.prof-alert.is-warn { border-left-color: var(--accent); background: rgba(176,141,87,0.04); }
.prof-alert-body .ttl { font-size: 14px; font-weight: 600; color: var(--ink); margin-bottom: 2px; }
.prof-alert-body .sub { font-size: 13px; color: var(--muted); }
.prof-alert-body .sub .is-bad { color: var(--red); }
.prof-alert-body .sub .is-mid { color: var(--accent); }
.prof-alert-link {
  font-family: var(--ff-mono); font-size: 12.5px; font-weight: 600;
  color: var(--accent); white-space: nowrap;
}

/* ============== 4.2 — MULTI-CURRENCY LEDGER ============== */
.fx-table-wrap { background: var(--paper); border: 1px solid var(--line-2); }
.fx-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap; gap: 10px;
}
.fx-head .ttl { font-size: 15px; font-weight: 600; color: var(--ink); }
.fx-head .sub { font-family: var(--ff-mono); font-size: 13px; color: var(--muted-2); }

.fx-table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.fx-table th, .fx-table td {
  text-align: right; padding: 10px 14px; vertical-align: middle;
  border-bottom: 1px solid var(--line-2);
}
.fx-table th:first-child, .fx-table td:first-child { text-align: left; }
.fx-table thead th {
  background: var(--paper-3);
  font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600;
}
.fx-table .pos-name { color: var(--ink); }
.fx-table .pos-name .meta {
  font-family: var(--ff-mono); font-size: 12.5px; color: var(--muted-2); display: block;
}
.fx-table .ccy { font-family: var(--ff-mono); font-size: 13px; color: var(--muted); }
.fx-table .amt { font-family: var(--ff-mono); color: var(--ink); }
.fx-table .rate { font-family: var(--ff-mono); color: var(--muted); }
.fx-table .delta { font-family: var(--ff-mono); font-weight: 500; }
.fx-table .delta.is-up { color: var(--green); }
.fx-table .delta.is-down { color: var(--red); }
.fx-table tr.is-total { background: var(--finance-soft); }
.fx-table tr.is-total td { border-bottom: 0; font-weight: 600; }
.fx-table tr.is-total .pos-name { color: var(--finance); font-weight: 600; }

.fx-foot {
  padding: 12px 18px; background: var(--paper-3);
  border-top: 1px solid var(--line-2);
  font-family: var(--ff-mono); font-size: 13px; color: var(--muted-2);
}

/* ============== 4.3 — 3-WAY MATCH ============== */
.tw-frame { background: var(--paper); border: 1px solid var(--line-2); }
.tw-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap; gap: 10px;
}
.tw-head .ttl { font-family: var(--ff-mono); font-size: 14.5px; color: var(--ink); }
.tw-head .sub { font-size: 14px; color: var(--muted); }
.tw-pill {
  font-family: var(--ff-mono); font-size: 12.5px;
  padding: 4px 10px; letter-spacing: 0.06em;
  color: var(--green); border: 1px solid rgba(47,122,77,0.4); background: var(--green-soft);
}

.tw-rows { padding: 6px 0; }
.tw-row {
  display: grid; grid-template-columns: 130px 1fr auto;
  gap: 12px; align-items: center;
  padding: 12px 18px; border-bottom: 1px solid var(--line-2);
}
.tw-row:last-child { border-bottom: 0; }
.tw-row .doc-id { font-family: var(--ff-mono); font-size: 13.5px; color: var(--ink); font-weight: 500; }
.tw-row .doc-id .meta { font-family: var(--ff-mono); font-size: 12px; color: var(--muted-2); display: block; margin-top: 2px; }
.tw-row .fields {
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 14px;
}
.tw-row .field { display: flex; flex-direction: column; gap: 2px; }
.tw-row .field .lab {
  font-family: var(--ff-mono); font-size: 11.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2);
}
.tw-row .field .val { font-family: var(--ff-mono); font-size: 14px; color: var(--ink); }
.tw-check { color: var(--green); font-family: var(--ff-mono); font-size: 16px; }

.tw-foot {
  padding: 12px 18px; background: var(--paper-3);
  border-top: 1px solid var(--line-2);
  font-family: var(--ff-mono); font-size: 13px; color: var(--muted-2);
  display: flex; gap: 16px; flex-wrap: wrap;
}
.tw-foot .stat strong { color: var(--ink); font-weight: 600; }

/* ============== 4.4 — AR AGING + DUNNING ============== */
.ar-frame { background: var(--paper); border: 1px solid var(--line-2); padding: 18px 22px; }
.ar-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding-bottom: 12px; margin-bottom: 14px; border-bottom: 1px solid var(--line-2);
  flex-wrap: wrap; gap: 8px;
}
.ar-head .ttl { font-size: 15px; font-weight: 600; color: var(--ink); }
.ar-head .total { font-family: var(--ff-mono); font-size: 16px; color: var(--ink); }
.ar-head .total .lab { color: var(--muted-2); font-size: 13px; margin-right: 6px; }
.ar-head .meta { font-family: var(--ff-mono); font-size: 13px; color: var(--muted-2); }

.ar-buckets { display: flex; flex-direction: column; gap: 8px; margin-bottom: 18px; }
.ar-bucket {
  display: grid; grid-template-columns: 180px 90px 1fr 50px;
  gap: 12px; align-items: center;
  font-size: 14px;
}
.ar-bucket .lab {
  font-family: var(--ff-mono); font-size: 12.5px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink);
}
.ar-bucket .amt { font-family: var(--ff-mono); font-size: 14px; color: var(--ink); }
.ar-bucket .bar-track { height: 8px; background: var(--paper-3); position: relative; }
.ar-bucket .bar-fill { height: 100%; background: var(--finance); }
.ar-bucket.b-1 .bar-fill { background: var(--green); }
.ar-bucket.b-2 .bar-fill { background: var(--accent); }
.ar-bucket.b-3 .bar-fill { background: #c98e2e; }
.ar-bucket.b-4 .bar-fill { background: var(--red); }
.ar-bucket .pct {
  font-family: var(--ff-mono); font-size: 13px; color: var(--muted-2); text-align: right;
}

.ar-overdue {
  border-top: 1px solid var(--line-2); padding-top: 14px;
}
.ar-overdue-head {
  font-family: var(--ff-mono); font-size: 12.5px;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 10px;
}
.ar-overdue-list { display: flex; flex-direction: column; gap: 4px; }
.ar-overdue-row {
  display: grid; grid-template-columns: 1.4fr 100px 80px 1.2fr;
  gap: 12px; align-items: center;
  padding: 9px 0; border-bottom: 1px dashed var(--line-2);
  font-size: 14.5px;
}
.ar-overdue-row:last-child { border-bottom: 0; }
.ar-overdue-row .cust { color: var(--ink); }
.ar-overdue-row .cust .lc {
  display: block;
  font-family: var(--ff-mono);
  font-size: 11.5px;
  color: var(--muted-2);
  letter-spacing: 0.02em;
  margin-top: 2px;
}
.ar-overdue-row .amt { font-family: var(--ff-mono); color: var(--ink); }
.ar-overdue-row .days { font-family: var(--ff-mono); font-size: 13.5px; color: var(--red); font-weight: 500; }
.ar-overdue-row .days.is-warn { color: #b88a26; }
.ar-overdue-row .action { font-family: var(--ff-mono); font-size: 12.5px; color: var(--muted); font-style: italic; }

/* ============== HOW IT CONNECTS (5) ============== */
.s-connects-inner { max-width: var(--max-w); margin: 0 auto; }
.s-connects-head { margin-bottom: 56px; max-width: 760px; }
.connects-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 64px; align-items: start; }

/* Connects-table (right column) — From/Posts/Events rows */
.connects-table {
  border-top: 1px solid var(--line-2);
}
.connects-row {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) minmax(180px, 1.4fr);
  gap: 18px;
  padding: 14px 0 14px;
  border-bottom: 1px solid var(--line-2);
}
.connects-row .from,
.connects-row .to {
  display: flex; flex-direction: column;
  min-width: 0;
}
.connects-row .from .lab,
.connects-row .to .lab {
  font-family: var(--ff-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 600;
  margin-bottom: 4px;
}
.connects-row .from .name,
.connects-row .to .name {
  font-size: 14.5px; font-weight: 600; color: var(--ink);
  line-height: 1.35;
}
.connects-row .ev {
  grid-column: 1 / -1;
  font-family: var(--ff-mono); font-size: 12px;
  color: var(--muted); line-height: 1.5;
  padding-top: 2px;
  letter-spacing: 0.01em;
}
.connects-row .ev::before {
  content: '↳ '; color: var(--finance); font-weight: 500; margin-right: 4px;
}
.connect-diagram {
  background: var(--paper-2); border: 1px solid var(--line-2);
  padding: 24px;
  position: relative;
}
.connect-diagram svg { width: 100%; height: auto; }
.connect-table {
  border: 1px solid var(--line);
  font-size: 15px;
  background: var(--paper);
}
.connect-table-row { display: grid; grid-template-columns: 0.9fr 1.4fr 1.3fr; padding: 12px 16px; border-bottom: 1px solid var(--line-2); align-items: start; gap: 12px; }
.connect-table-row:last-child { border-bottom: 0; }
.connect-table-row.is-head { background: var(--paper-2); font-size: 13px; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.connect-section { font-weight: 500; color: var(--ink); }
.connect-section a { color: var(--accent); }
.connect-flow { color: var(--muted); }
.connect-see { color: var(--muted); }

/* ============== DEEPER (6) ============== */
.s-deeper-inner { max-width: var(--max-w); margin: 0 auto; }
.s-deeper-head { margin-bottom: 56px; max-width: 760px; }
.s-deeper-head h2 { margin-bottom: 16px; }
.s-deeper-head .lede { color: var(--muted); font-size: 18px; line-height: 1.6; }

.deeper-block {
  display: grid; grid-template-columns: 1fr 1.1fr;
  gap: 80px; align-items: center;
  padding: 64px 0; border-top: 1px solid var(--line);
}
.deeper-block:first-of-type { border-top: 0; padding-top: 0; }
.deeper-block.is-flip { grid-template-columns: 1.1fr 1fr; }
.deeper-block.is-flip .deeper-text { order: 2; }
.deeper-block.is-flip .deeper-mock { order: 1; }
.deeper-text h3 { margin-bottom: 18px; }
.deeper-text p { color: var(--muted); font-size: 17px; line-height: 1.65; }
.deeper-mock { background: var(--paper-2); border: 1px solid var(--line-2); padding: 22px; }
.deeper-mock-label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 14px; }

/* 6.1 — Audit drill panel */
.je-card {
  background: var(--paper); border: 1px solid var(--line-2);
}
.je-card-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2); flex-wrap: wrap; gap: 8px;
}
.je-card-head .id { font-family: var(--ff-mono); font-size: 15px; color: var(--finance); font-weight: 600; }
.je-card-head .meta { font-family: var(--ff-mono); font-size: 13px; color: var(--muted-2); }
.je-card-meta {
  display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px;
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
  font-size: 14px;
}
.je-card-meta .lab { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 3px; }
.je-card-meta .val { color: var(--ink); }
.je-card-meta .val .mono { font-family: var(--ff-mono); font-size: 13.5px; }
.je-card-meta .val .check { color: var(--green); font-family: var(--ff-mono); margin-right: 4px; }

.je-card-entry {
  padding: 16px 18px; border-bottom: 1px solid var(--line-2);
  background: var(--paper-3);
}
.je-card-entry-line {
  display: grid; grid-template-columns: 60px 1fr auto;
  gap: 12px; padding: 6px 0; font-family: var(--ff-mono); font-size: 14.5px;
}
.je-card-entry-line .side {
  font-weight: 600; color: var(--finance); text-align: center;
}
.je-card-entry-line .acct { color: var(--ink); }
.je-card-entry-line .amt { color: var(--ink); }
.je-card-entry-fx {
  margin-top: 8px; padding-top: 8px; border-top: 1px dashed var(--line);
  font-family: var(--ff-mono); font-size: 13px; color: var(--muted);
}

.je-card-links { padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.je-card-links .row { display: flex; gap: 12px; align-items: baseline; padding: 4px 0; font-size: 14.5px; flex-wrap: wrap; }
.je-card-links .row .lab { font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); min-width: 90px; }
.je-card-links .row .val { color: var(--ink); }
.je-card-links .row .val .mono { font-family: var(--ff-mono); font-size: 13.5px; }
.je-card-links .row .val .link { color: var(--accent); text-decoration: none; }

.je-card-foot {
  display: flex; gap: 10px; padding: 12px 18px;
  background: var(--paper-3);
}
.je-card-foot .btn { padding: 8px 14px; font-size: 14px; }

/* 6.2 — Replacement narrative */
.rep-grid { display: grid; grid-template-columns: 1.6fr auto 1fr; gap: 28px; align-items: stretch; }
.rep-stack-tiles {
  display: grid; grid-template-columns: repeat(4, 1fr);
  gap: 8px;
}
.rep-tile {
  padding: 12px 10px; background: var(--paper); border: 1px solid var(--line);
  text-align: center;
  position: relative;
}
.rep-tile .cat {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px;
}
.rep-tile .name { font-size: 14px; color: var(--ink); font-weight: 500; }
.rep-tile::before {
  content: '×'; position: absolute; top: -6px; right: -6px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--red); color: #fff;
  font-family: var(--ff-mono); font-size: 13px; line-height: 18px;
}

.rep-arrow {
  align-self: center;
  font-family: var(--ff-mono); font-size: 22px; color: var(--muted-3);
}

.rep-edma {
  background: var(--ink); color: #fff; padding: 22px 20px;
  display: flex; flex-direction: column; justify-content: center;
  border: 1px solid var(--ink);
}
.rep-edma .eyebrow { color: var(--accent); margin-bottom: 8px; }
.rep-edma .ttl { font-size: 22px; font-weight: 600; margin-bottom: 8px; line-height: 1.15; }
.rep-edma .sub { font-size: 15px; color: rgba(255,255,255,0.65); line-height: 1.55; }

.rep-cards { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-top: 22px; }
.rep-card { background: var(--paper); border: 1px solid var(--line-2); padding: 14px 16px; }
.rep-card .lab { font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.rep-card .ttl { font-size: 15.5px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.rep-card .body { font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* Atlas / Marketplace cards inline in deeper */
.atlas-block { background: var(--ink); color: #fff; padding: 36px 32px; border: 1px solid var(--ink); }
.atlas-block .eyebrow { color: var(--accent); }
.atlas-block h3 { color: #fff; margin-bottom: 12px; }
.atlas-block .lede { color: rgba(255,255,255,0.7); margin-bottom: 24px; }
.atlas-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.atlas-card { background: rgba(255,255,255,0.03); border: 1px solid rgba(255,255,255,0.08); padding: 16px 18px; }
.atlas-card .lab { font-family: var(--ff-mono); font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); margin-bottom: 8px; }
.atlas-card .ttl { font-size: 16px; font-weight: 600; color: #fff; margin-bottom: 6px; }
.atlas-card .body { font-size: 14.5px; color: rgba(255,255,255,0.65); line-height: 1.55; }

.atlas-quote {
  margin-top: 24px; padding: 18px 20px;
  border-left: 3px solid var(--accent); background: rgba(176,141,87,0.06);
}
.atlas-quote .q { font-size: 16.5px; line-height: 1.55; color: #fff; margin-bottom: 8px; font-style: italic; }
.atlas-quote .by { font-family: var(--ff-mono); font-size: 13px; color: rgba(255,255,255,0.65); letter-spacing: 0.04em; }

/* Marketplace card */
.mp-card { background: var(--paper); border: 1px solid var(--line); }
.mp-card-head {
  padding: 14px 18px; border-bottom: 1px solid var(--line-2);
  display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 8px;
}
.mp-card-head .id { font-family: var(--ff-mono); font-size: 15px; color: var(--ink); font-weight: 600; }
.mp-card-head .req { font-family: var(--ff-mono); font-size: 13px; color: var(--muted); }
.mp-section { padding: 14px 18px; border-bottom: 1px solid var(--line-2); }
.mp-section:last-of-type { border-bottom: 0; }
.mp-section .lab {
  font-family: var(--ff-mono); font-size: 12px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px;
}
.mp-signals { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; font-size: 14px; }
.mp-signal {
  display: grid; grid-template-columns: 1fr auto; gap: 8px;
  padding: 6px 0; border-bottom: 1px dashed var(--line-2);
}
.mp-signal:last-child, .mp-signal:nth-last-child(2) { border-bottom: 0; }
.mp-signal .lab {
  font-family: var(--ff-body); font-size: 14px;
  text-transform: none; letter-spacing: 0; color: var(--muted); margin: 0;
}
.mp-signal .val {
  font-family: var(--ff-mono); font-size: 13px;
}
.mp-signal .val.is-good { color: var(--green); }
.mp-signal .val.is-mid { color: #b88a26; }

.mp-offer {
  display: grid; grid-template-columns: 1fr auto auto auto;
  gap: 14px; align-items: center;
  padding: 10px 0; border-bottom: 1px dashed var(--line-2);
  font-size: 14.5px;
}
.mp-offer:last-child { border-bottom: 0; }
.mp-offer .name { color: var(--ink); font-weight: 500; }
.mp-offer .apr { font-family: var(--ff-mono); color: var(--ink); }
.mp-offer .terms { font-family: var(--ff-mono); font-size: 12.5px; color: var(--muted-2); }
.mp-offer .fit {
  font-family: var(--ff-mono); font-size: 12.5px; padding: 2px 7px;
  color: var(--green); border: 1px solid rgba(47,122,77,0.4); background: var(--green-soft);
}
.mp-card-foot {
  padding: 14px 18px; background: var(--paper-3); display: flex; gap: 10px; flex-wrap: wrap;
}

/* ============== DAY IN LIFE (7) ============== */
.s-day-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.s-day h2 { margin-bottom: 0; }
.s-day .day-prose p { font-size: 18px; line-height: 1.75; color: var(--muted); }
.s-day .day-prose p + p { margin-top: 20px; }
.s-day .day-prose strong { color: var(--ink); font-weight: 600; }
.s-day .day-prose .mono { color: var(--ink); }

/* ============== COMPARISON (8) ============== */
.s-compare-inner { max-width: var(--max-w); margin: 0 auto; }
.s-compare-head { margin-bottom: 40px; max-width: 800px; }
.cmp-table-wrap { overflow-x: auto; border: 1px solid var(--line); }
.cmp-table { width: 100%; min-width: 880px; border-collapse: collapse; font-size: 15px; }
.cmp-table th, .cmp-table td { padding: 14px 16px; text-align: left; border-bottom: 1px solid var(--line-2); vertical-align: middle; }
.cmp-table thead th { font-size: 13px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); background: var(--paper-2); }
.cmp-table thead th.is-edma { color: var(--accent); border-left: 2px solid var(--accent); background: var(--accent-soft-2); }
.cmp-table tbody td.is-edma { border-left: 2px solid var(--accent); background: var(--accent-soft-2); }
.cmp-table tbody td.cmp-cap { font-weight: 500; color: var(--ink); }
.cmp-yes { color: var(--accent); font-weight: 600; }
.cmp-yes-plain { color: var(--green); font-weight: 500; }
.cmp-partial { color: var(--muted); font-style: italic; font-size: 14px; }
.cmp-no { color: var(--muted-3); }
.cmp-body { margin-top: 28px; max-width: 900px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.cmp-body strong { color: var(--ink); font-weight: 600; }

/* ============== FAQ (9) ============== */
.s-faq-inner { max-width: var(--max-w); margin: 0 auto; display: grid; grid-template-columns: 1fr 1.6fr; gap: 80px; align-items: start; }
.s-faq h2 { margin-bottom: 16px; }
.faq-item { padding: 24px 0; border-bottom: 1px solid var(--line-2); }
.faq-item:first-child { padding-top: 0; }
.faq-item:last-child { border-bottom: 0; }
.faq-q { font-size: 20px; font-weight: 600; color: var(--ink); margin-bottom: 12px; letter-spacing: -0.01em; }
.faq-a { font-size: 17.5px; line-height: 1.7; color: var(--muted); }

/* ============== CTA STRIP (10) ============== */
.s-cta { background: var(--ink); color: #fff; border-bottom: 0; }
.s-cta-inner { max-width: 920px; margin: 0 auto; text-align: center; }
.s-cta h2 { color: #fff; margin-bottom: 18px; }
.s-cta p { color: rgba(255,255,255,0.7); font-size: 18px; line-height: 1.6; margin-bottom: 32px; }
.s-cta .cta-row { justify-content: center; }
.s-cta .link-arrow { color: var(--accent); margin-top: 22px; display: inline-flex; }

/* ============== RELATED (11) ============== */
.s-related-inner { max-width: var(--max-w); margin: 0 auto; }
.s-related h3 { margin-bottom: 32px; font-size: 15px; font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); }
.related-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.related-card {
  background: var(--paper); border: 1px solid var(--line);
  padding: 28px;
  transition: border-color var(--dur-base) var(--ease-smooth), transform var(--dur-base) var(--ease-smooth);
  display: flex; flex-direction: column; gap: 12px;
}
.related-card:hover { border-color: var(--ink); transform: translateY(-2px); }
.related-card-eyebrow { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.related-card-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); }
.related-card-desc { font-size: 16px; color: var(--muted); line-height: 1.55; }
.related-card-link { color: var(--accent); font-size: 15.5px; font-weight: 500; margin-top: auto; padding-top: 8px; }

/* ============== FOOTER ============== */
.site-footer { background: var(--ink); color: #fff; }
.footer-top { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-top-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 48px var(--inner-pad);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 64px; align-items: start;
}
.edma-logo--footer .phoenix { height: 40px; }
.edma-logo--footer .edma-wordmark { font-size: 26px; color: #fff; }
.edma-logo--footer { color: #fff; }
.footer-brand-tag {
  color: rgba(255,255,255,0.55);
  font-size: 16px; line-height: 1.55;
  margin-top: 14px; max-width: 480px;
}
.footer-newsletter-title {
  color: #fff; font-size: 15px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; margin-bottom: 6px;
}
.footer-newsletter-sub {
  color: rgba(255,255,255,0.55); font-size: 15px; margin-bottom: 14px;
}
.footer-newsletter { display: flex; gap: 8px; }
.footer-newsletter input {
  flex: 1; padding: 12px 14px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.12);
  color: #fff; font-family: inherit; font-size: 15px;
  outline: none;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter input:focus { border-color: var(--accent); }
.footer-newsletter button {
  padding: 12px 18px; background: var(--accent); color: #fff;
  font-family: inherit; font-size: 15px; font-weight: 500;
  border: 0; cursor: pointer; transition: background var(--dur-fast);
}
.footer-newsletter button:hover { background: var(--accent-hover); }
.footer-links {
  max-width: var(--max-w); margin: 0 auto;
  padding: 56px var(--inner-pad);
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-col-title {
  font-size: 14px; font-weight: 600; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 16px;
}
.footer-link-list { list-style: none; padding: 0; margin: 0; }
.footer-link-list li { padding: 4px 0; }
.footer-link-list a {
  font-size: 15px; color: rgba(255,255,255,0.65);
  transition: color var(--dur-fast); text-decoration: none;
}
.footer-link-list a:hover { color: #fff; }
.footer-logos { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-logos-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 32px var(--inner-pad);
  display: flex; align-items: center; gap: 32px; flex-wrap: wrap;
}
.footer-logos-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  color: rgba(255,255,255,0.5); text-transform: uppercase;
}
.footer-logos-row { display: flex; gap: 36px; flex-wrap: wrap; flex: 1; list-style: none; padding: 0; margin: 0; }
.footer-logos-row li { font-size: 14px; font-weight: 600; letter-spacing: 0.06em; color: rgba(255,255,255,0.4); }
.footer-region { border-bottom: 1px solid rgba(255,255,255,0.08); }
.footer-region-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 22px var(--inner-pad);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
}
.footer-region-left, .footer-social {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  font-size: 14.5px; color: rgba(255,255,255,0.7);
}
.footer-region-left .label, .footer-social .label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.1em;
  color: rgba(255,255,255,0.4); text-transform: uppercase;
}
.footer-region-left a { color: inherit; text-decoration: none; }
.footer-region-left a:hover { color: #fff; }
.footer-region-divider { color: rgba(255,255,255,0.2); }
.footer-region-left a.is-muted { color: rgba(255,255,255,0.4); }
.footer-social-icon {
  width: 30px; height: 30px;
  border: 1px solid rgba(255,255,255,0.15);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 14px; font-weight: 600;
  transition: all var(--dur-fast); text-decoration: none; color: inherit;
}
.footer-social-icon:hover { border-color: var(--accent); color: var(--accent); }
.footer-legal-inner {
  max-width: var(--max-w); margin: 0 auto;
  padding: 18px var(--inner-pad);
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  font-size: 14px; color: rgba(255,255,255,0.45);
}
.footer-legal-inner .links { display: flex; gap: 18px; flex-wrap: wrap; }
.footer-legal-inner .links a { color: inherit; text-decoration: none; }
.footer-legal-inner .links a:hover { color: #fff; }
.footer-legal-inner .status-ok { color: var(--green-on-dark); }

/* Modifier widths for centerpiece + capability mocks */
.leg-bar-l1 { width: 100%; }
.leg-bar-l2 { width: 92%; }
.leg-bar-l2-extra { left: 92%; right: 0; }
.leg-bar-l3 { width: 100%; }
.cp-fill-vol { width: 42%; }
.cp-fill-wt { width: 24%; }
.carrier-mini-bar.mini-5 { height: 50%; }
.carrier-mini-bar.mini-6 { height: 60%; }
.carrier-mini-bar.mini-7 { height: 70%; }
.carrier-mini-bar.mini-8 { height: 80%; }
.carrier-mini-bar.mini-9 { height: 90%; }
.carrier-mini-bar.mini-10 { height: 100%; }

/* ============== 4.1 — INVOICES ============== */
.inv-table-wrap {
  background: var(--paper); border: 1px solid var(--line-2);
  margin-bottom: 16px; overflow-x: auto;
  min-width: 0; max-width: 100%;
}
.inv-table {
  width: 100%; border-collapse: collapse;
  font-size: 12.5px;
  font-variant-numeric: tabular-nums;
  table-layout: auto;
}
.inv-table thead th {
  font-family: var(--ff-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--muted-2);
  text-align: left; padding: 7px 8px;
  border-bottom: 1px solid var(--line-2);
  background: var(--paper-2);
  white-space: nowrap;
}
.inv-table thead th.tr { text-align: right; }
.inv-table tbody td {
  padding: 8px 8px; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  white-space: nowrap;
}
.inv-table tbody tr:last-child td { border-bottom: 0; }
.inv-table .inv-num {
  font-family: var(--ff-mono); font-size: 11.5px;
  color: var(--accent); font-weight: 600;
}
.inv-table .inv-ord {
  font-family: var(--ff-mono); font-size: 11px; color: var(--muted);
}
.inv-table .dim { color: var(--muted); font-size: 11.5px; }
.inv-table .dim.is-bad-due { color: var(--red); font-weight: 600; }
.inv-table .amt {
  text-align: right; font-family: var(--ff-mono); font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.inv-table .amt.is-zero { color: var(--muted-2); }

.inv-badge {
  display: inline-block; font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  padding: 3px 7px;
}
.inv-badge.is-blue { color: #2563eb; background: rgba(59,130,246,0.10); }
.inv-badge.is-green { color: var(--green); background: var(--green-soft); }
.inv-badge.is-red { color: var(--red); background: var(--red-soft); }
.inv-badge.is-amber { color: var(--accent); background: var(--accent-soft); }

/* Branded templates row */
.inv-templates {
  background: var(--paper-2); border: 1px solid var(--line-2);
  padding: 14px 16px;
}
.inv-templates-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 12px;
}
.inv-templates-head .lab {
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted-2); font-weight: 600;
}
.inv-templates-head .caret {
  font-family: var(--ff-mono); font-size: 12px; color: var(--accent);
}
.inv-tpl-grid {
  display: grid; grid-template-columns: repeat(6, 1fr); gap: 8px;
}
.inv-tpl {
  padding: 12px 12px; display: flex; flex-direction: column;
  gap: 4px; min-height: 70px; justify-content: space-between;
}
.inv-tpl .t-lab {
  font-family: var(--ff-mono); font-size: 9.5px; font-weight: 700;
  letter-spacing: 0.1em; opacity: 0.85;
}
.inv-tpl .t-name {
  font-size: 13px; font-weight: 600;
  display: flex; align-items: center; gap: 6px; flex-wrap: wrap;
}
.inv-tpl .pro {
  font-family: var(--ff-mono); font-size: 9px; font-weight: 700;
  padding: 2px 5px; background: rgba(255,255,255,0.22); color: inherit;
}
.inv-tpl .pro.is-dark { background: #FBBF24; color: #0F172A; }

/* ───── Branded invoice document preview ───── */
.inv-doc-wrap {
  margin-top: 14px;
  min-width: 0; max-width: 100%; width: 100%;
}
.inv-doc-head-bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 8px 14px; background: var(--ink); color: var(--paper);
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.05em;
}
.inv-doc-head-bar .lab { font-weight: 700; text-transform: uppercase; }
.inv-doc-head-bar .caret { color: rgba(255,255,255,0.65); font-weight: 400; text-transform: none; letter-spacing: 0.02em; }

.inv-doc {
  background: #FFFFFF;
  border: 1px solid var(--line-2);
  font-family: 'Inter', system-ui, sans-serif;
  color: #0F172A;
  min-width: 0; max-width: 100%; overflow: hidden;
}

/* Brand header — navy + gold */
.inv-doc-brand {
  display: flex; justify-content: space-between; align-items: stretch;
  background: #1B3A5C; color: #FFFFFF;
  padding: 18px 24px;
}
.inv-doc-brand-left { display: flex; align-items: center; gap: 14px; }
.inv-doc-logo {
  width: 52px; height: 52px;
  background: #B08D57; color: #1B3A5C;
  font-family: var(--ff-mono); font-size: 13px; font-weight: 800;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0.02em;
}
.inv-doc-brand-meta .co {
  font-size: 16px; font-weight: 700; color: #FFFFFF;
  letter-spacing: 0.01em;
}
.inv-doc-brand-meta .sub {
  font-family: var(--ff-mono); font-size: 11px; color: #B08D57;
  margin-top: 2px; letter-spacing: 0.04em;
}
.inv-doc-brand-right { text-align: right; }
.inv-doc-title {
  font-size: 24px; font-weight: 700; color: #B08D57;
  letter-spacing: 0.08em;
}
.inv-doc-num {
  font-family: var(--ff-mono); font-size: 13px; color: #FFFFFF;
  margin-top: 2px;
}

/* Meta block: bill-to / ship-to / dates */
.inv-doc-meta {
  display: grid; grid-template-columns: 1fr 1fr 1fr;
  gap: 22px;
  padding: 18px 24px;
  border-bottom: 1px solid #E2E8F0;
  min-width: 0;
}
.inv-doc-col { min-width: 0; overflow-wrap: anywhere; }
.inv-doc-col .lab {
  font-family: var(--ff-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 6px;
}
.inv-doc-col .val { font-size: 12.5px; color: #0F172A; line-height: 1.45; }
.inv-doc-col .val.w-700 { font-weight: 700; }
.inv-doc-col .val.small { font-family: var(--ff-mono); font-size: 11px; color: #64748B; margin-top: 2px; }

.inv-doc-grid {
  display: grid; grid-template-columns: auto 1fr;
  gap: 4px 12px;
  font-size: 12.5px;
}
.inv-doc-grid .lab {
  font-family: var(--ff-mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.06em; color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 0;
  align-self: center;
}
.inv-doc-grid .val { font-weight: 600; color: #0F172A; }

/* Line items table */
.inv-doc-lines {
  width: 100%; table-layout: fixed;
  border-collapse: collapse;
  font-size: 12.5px;
}
.inv-doc-lines col.col-num   { width: 4%; }
.inv-doc-lines col.col-desc  { width: 44%; }
.inv-doc-lines col.col-hs    { width: 12%; }
.inv-doc-lines col.col-qty   { width: 10%; }
.inv-doc-lines col.col-unit  { width: 13%; }
.inv-doc-lines col.col-total { width: 17%; }
.inv-doc-lines thead th {
  background: #F8FAFC; color: #64748B;
  font-family: var(--ff-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase;
  padding: 9px 12px; text-align: left;
  border-bottom: 1px solid #E2E8F0;
}
.inv-doc-lines thead th.tr { text-align: right; }
.inv-doc-lines thead th.num { width: 30px; }
.inv-doc-lines tbody td {
  padding: 10px 12px; vertical-align: top;
  border-bottom: 1px solid #F1F5F9;
  color: #0F172A;
}
.inv-doc-lines tbody td.num { font-family: var(--ff-mono); color: #64748B; font-weight: 600; }
.inv-doc-lines tbody td.tr { text-align: right; }
.inv-doc-lines tbody td.mono { font-family: var(--ff-mono); font-variant-numeric: tabular-nums; }
.inv-doc-lines tbody td strong { font-weight: 700; }
.inv-doc-lines .ln-sub {
  font-family: var(--ff-mono); font-size: 10.5px; color: #94A3B8;
  margin-top: 3px; letter-spacing: 0.02em;
}

/* Totals + Payment */
.inv-doc-totals {
  display: grid; grid-template-columns: 1.2fr 1fr;
  gap: 32px;
  padding: 18px 24px;
  background: #F8FAFC;
  border-top: 1px solid #E2E8F0;
  min-width: 0;
}
.inv-doc-pay, .inv-doc-sumblock { min-width: 0; }
.inv-doc-pay .lab {
  font-family: var(--ff-mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.08em; color: #94A3B8;
  text-transform: uppercase;
  margin-bottom: 8px;
}
.inv-doc-pay .pay-line {
  display: grid; grid-template-columns: 90px 1fr;
  gap: 12px; font-size: 12.5px;
  padding: 3px 0;
}
.inv-doc-pay .pay-line .lab2 {
  font-family: var(--ff-mono); font-size: 10.5px; color: #64748B;
  text-transform: uppercase; letter-spacing: 0.04em;
}
.inv-doc-pay .pay-line .mono { font-family: var(--ff-mono); }

.inv-doc-sumblock { font-size: 13px; }
.inv-doc-sumblock .row {
  display: flex; justify-content: space-between;
  padding: 5px 0;
}
.inv-doc-sumblock .row .lab { color: #64748B; }
.inv-doc-sumblock .row .amt {
  font-family: var(--ff-mono); font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.inv-doc-sumblock .row.is-total {
  padding-top: 10px; margin-top: 4px;
  border-top: 2px solid #1B3A5C;
  font-size: 16px;
}
.inv-doc-sumblock .row.is-total .lab {
  color: #1B3A5C; font-weight: 700; letter-spacing: 0.04em;
}
.inv-doc-sumblock .row.is-total .amt {
  color: #1B3A5C; font-weight: 800;
}
.inv-doc-sumblock .row.sub {
  font-size: 11.5px;
  font-family: var(--ff-mono);
}
.inv-doc-sumblock .row.sub .lab,
.inv-doc-sumblock .row.sub .amt { color: #94A3B8; font-weight: 400; }

.inv-doc-footer {
  display: flex; justify-content: space-between;
  padding: 9px 24px;
  font-family: var(--ff-mono); font-size: 10.5px; color: #94A3B8;
  border-top: 1px solid #E2E8F0;
  letter-spacing: 0.02em;
}

/* ───── Accounting sub-tabs at-a-glance cards ───── */
.acc-subtabs {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px;
  margin-top: 14px;
}
.acc-st-card {
  background: var(--paper); border: 1px solid var(--line-2);
  padding: 12px 14px;
  display: flex; flex-direction: column;
}
.acc-st-head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 10px; padding-bottom: 8px;
  border-bottom: 1px solid var(--line-2);
}
.acc-st-head .ttl {
  font-size: 12.5px; font-weight: 700; color: var(--ink);
}
.acc-st-state {
  font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 700;
  padding: 2px 6px;
}
.acc-st-state.is-mono { color: var(--muted); background: var(--paper-3); }
.acc-st-state.is-balanced { color: var(--green); background: var(--green-soft); }
.acc-st-state.is-good { color: var(--green); background: var(--green-soft); }

/* COA rows */
.acc-coa-row {
  display: grid; grid-template-columns: 46px 1fr auto;
  gap: 8px;
  padding: 4px 0;
  font-size: 12px;
  align-items: center;
}
.acc-coa-row .code {
  font-family: var(--ff-mono); font-size: 11.5px; font-weight: 600;
  color: var(--accent);
}
.acc-coa-row .nm { color: var(--ink); }
.acc-coa-row .ty {
  font-family: var(--ff-mono); font-size: 9.5px;
  letter-spacing: 0.04em; text-transform: uppercase;
  color: var(--muted-2);
  padding: 2px 5px; background: var(--paper-2);
}

/* Trial Balance mini */
.acc-st-tb { font-size: 12px; }
.tb-row {
  display: flex; justify-content: space-between;
  padding: 5px 0;
}
.tb-row .nm { color: var(--muted); }
.tb-row .amt {
  font-family: var(--ff-mono); font-weight: 700;
  font-variant-numeric: tabular-nums; color: var(--ink);
}
.tb-diff {
  display: flex; justify-content: space-between;
  padding: 8px 0 0;
  margin-top: 4px; border-top: 1px solid var(--line-2);
  font-size: 12px;
}
.tb-diff .nm {
  font-family: var(--ff-mono); font-size: 10.5px;
  letter-spacing: 0.04em; text-transform: uppercase; color: var(--muted-2);
}
.tb-diff .amt.is-zero {
  color: var(--green); font-family: var(--ff-mono); font-weight: 700;
}

/* Periods mini */
.acc-st-pd { font-size: 12px; }
.acc-st-pd .pd-row {
  display: flex; justify-content: space-between; align-items: center;
  padding: 5px 0;
}
.acc-st-pd .pd-row .pd { color: var(--ink); }
.acc-st-pd .pd-row .badge {
  font-family: var(--ff-mono); font-size: 9.5px;
  letter-spacing: 0.04em; text-transform: uppercase; font-weight: 700;
  padding: 2px 6px;
}
.acc-st-pd .badge.is-locked { color: var(--muted); background: var(--paper-3); }
.acc-st-pd .badge.is-closing { color: var(--accent); background: var(--accent-soft); }
.acc-st-pd .badge.is-open { color: var(--green); background: var(--green-soft); }

/* Events mini */
.acc-st-evt { font-size: 11.5px; }
.acc-st-evt .evt-row {
  display: grid; grid-template-columns: 12px 1fr auto;
  gap: 6px; align-items: center;
  padding: 3px 0;
}
.acc-st-evt .ico { font-size: 9px; line-height: 1; color: var(--muted-2); }
.acc-st-evt .ico.is-good { color: var(--green); }
.acc-st-evt .nm {
  font-family: var(--ff-mono); font-size: 11px; color: var(--ink);
}
.acc-st-evt .ct {
  font-family: var(--ff-mono); font-size: 10.5px; color: var(--muted-2);
}

.acc-st-foot {
  margin-top: auto; padding-top: 8px;
  font-family: var(--ff-mono); font-size: 10px; color: var(--muted-2);
  letter-spacing: 0.02em;
  border-top: 1px solid var(--line-2);
  margin-top: 10px;
}

/* ============== 4.2 — CASHFLOW ============== */
.cf-shortfall {
  display: flex; gap: 12px; align-items: flex-start;
  background: var(--red-soft); border: 1px solid rgba(239,68,68,0.30);
  border-left: 3px solid var(--red);
  padding: 11px 14px; margin-bottom: 16px;
  font-size: 13px; color: var(--ink); line-height: 1.5;
}
.cf-shortfall-icon {
  font-size: 16px; color: var(--red);
}
.cf-shortfall strong { color: var(--red); font-weight: 700; }

.cf-grid {
  display: grid; grid-template-columns: 2fr 1fr; gap: 14px;
}
.cf-chart-card {
  background: var(--paper); border: 1px solid var(--line-2);
  padding: 14px 16px;
}
.cf-chart-head {
  display: flex; justify-content: space-between; align-items: baseline;
  margin-bottom: 8px;
}
.cf-chart-head .ttl { font-size: 14px; font-weight: 700; color: var(--ink); }
.cf-chart-head .sub { font-size: 11.5px; color: var(--muted-2); }
.cf-svg {
  width: 100%; height: 220px; display: block;
}

.cf-scen-card {
  background: var(--paper); border: 1px solid var(--line-2);
}
.cf-scen-head {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-bottom: 1px solid var(--line-2);
  background: var(--paper-2);
}
.cf-scen-head .ico { font-size: 14px; }
.cf-scen-head .ttl {
  font-family: var(--ff-mono); font-size: 11.5px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted-2); font-weight: 600;
}
.cf-scen-body { padding: 14px; }
.cf-scen-row { margin-bottom: 14px; }
.cf-scen-row:last-of-type { margin-bottom: 16px; }
.cf-scen-lab {
  display: flex; justify-content: space-between; margin-bottom: 5px;
  font-size: 12.5px;
}
.cf-scen-lab .val {
  font-family: var(--ff-mono); font-weight: 600; color: var(--accent);
}
.cf-scen-lab .val.zero { color: var(--muted-2); font-weight: 500; }
.cf-slider-track {
  height: 4px; background: var(--paper-3); border-radius: 2px;
  position: relative;
}
.cf-slider-fill {
  height: 100%; background: var(--accent); border-radius: 2px;
  position: relative;
}
.cf-slider-fill::after {
  content: ''; position: absolute; right: -6px; top: -4px;
  width: 12px; height: 12px; background: var(--accent);
  border-radius: 50%; border: 2px solid var(--paper);
  box-shadow: 0 0 0 1px var(--accent);
}
.cf-scen-reset {
  display: inline-block; padding: 6px 12px;
  background: transparent; border: 1px solid var(--line-2);
  font-family: var(--ff-mono); font-size: 11.5px; color: var(--muted);
  cursor: pointer;
}

/* Generic finance filter row date pill */
.fin-date {
  padding: 8px 12px;
  border: 1px solid var(--line-2); background: var(--paper);
  font-family: var(--ff-mono); font-size: 12.5px; color: var(--ink);
  white-space: nowrap;
}

/* ============== 4.4 — ACCOUNTING ============== */
.acc-table-wrap {
  background: var(--paper); border: 1px solid var(--line-2);
  margin-bottom: 12px;
  min-width: 0; max-width: 100%;
  overflow-x: auto;
}
.acc-table {
  width: 100%; border-collapse: collapse;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  table-layout: fixed;
}
.acc-table col.col-acc-date   { width: 10%; }
.acc-table col.col-acc-entry  { width: 11%; }
.acc-table col.col-acc-src    { width: 16%; }
.acc-table col.col-acc-memo   { width: 25%; }
.acc-table col.col-acc-debits { width: 11.5%; }
.acc-table col.col-acc-credits{ width: 11.5%; }
.acc-table col.col-acc-status { width: 15%; }
.acc-table thead th {
  font-family: var(--ff-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2);
  text-align: left; padding: 8px 10px;
  border-bottom: 1px solid var(--line-2);
  background: var(--paper-2);
  white-space: nowrap;
}
.acc-table thead th.tr { text-align: right; }
.acc-table tbody td {
  padding: 9px 10px; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
  vertical-align: middle;
}
.acc-row.is-expanded { background: rgba(176,141,87,0.04); }
.acc-row.is-expanded td { border-bottom: 0; }
.acc-table .dim { color: var(--muted); font-size: 12.5px; white-space: nowrap; }
.acc-table .je-num {
  font-family: var(--ff-mono); font-size: 12.5px;
  color: var(--accent); font-weight: 600;
  white-space: nowrap;
}
.acc-table .memo { font-size: 12.5px; color: var(--muted); }
.acc-table .amt {
  text-align: right; font-family: var(--ff-mono); font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.acc-src {
  font-family: var(--ff-mono); font-size: 10.5px;
  padding: 3px 7px; background: var(--paper-3); color: var(--muted);
  text-transform: capitalize;
  white-space: nowrap;
}
.acc-badge {
  display: inline-block; font-family: var(--ff-mono); font-size: 10px;
  letter-spacing: 0.06em; text-transform: uppercase; font-weight: 600;
  padding: 3px 7px;
}
.acc-badge.is-green { color: var(--green); background: var(--green-soft); }
.acc-badge.is-amber { color: var(--accent); background: var(--accent-soft); }

/* Expanded line items panel — DEPRECATED · superseded by .fin-screen-real
   scoped rules at the bottom of this file. Empty so it doesn't override. */
.acc-lines {
  width: 100%; border-collapse: collapse;
  margin: 0; padding: 10px 14px;
}
.acc-lines thead th {
  font-family: var(--ff-mono); font-size: 10px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2);
  text-align: left; padding: 6px 12px;
  border-bottom: 1px solid var(--line-2);
}
.acc-lines thead th.tr { text-align: right; }
.acc-lines tbody td {
  padding: 6px 12px; font-size: 12.5px;
  border-bottom: 0;
}
.acc-lines tbody tr:last-child td { padding-bottom: 12px; }
.acc-lines .acc-code {
  font-family: var(--ff-mono); font-size: 12.5px; color: var(--accent);
  font-weight: 600;
}
.acc-lines .amt {
  text-align: right; font-family: var(--ff-mono); font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.acc-foot {
  font-size: 12px; color: var(--muted);
  padding: 8px 4px; text-align: center;
  font-style: italic;
}

/* ============== 4.5 — STATEMENTS ============== */
.stmt-bar {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 14px; gap: 12px;
}
.stmt-bar .fin-pills { margin-bottom: 0; flex: 0 0 auto; }
.stmt-actions {
  display: flex; gap: 8px; flex: 0 0 auto;
}
.stmt-btn {
  font-family: var(--ff-mono); font-size: 12px; font-weight: 600;
  padding: 7px 13px; background: var(--ink); color: var(--paper);
}
.stmt-btn-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line-2); }

.stmt-paper {
  background: var(--paper); border: 1px solid var(--line-2);
  padding: 28px 32px;
}
.stmt-paper-head {
  text-align: center; padding-bottom: 16px;
  border-bottom: 2px solid var(--ink);
  margin-bottom: 18px;
}
.stmt-company {
  font-size: 18px; font-weight: 700; color: var(--ink);
  margin-bottom: 4px;
}
.stmt-title {
  font-size: 22px; font-weight: 600; color: var(--ink);
  margin-bottom: 4px;
}
.stmt-subtitle {
  font-family: var(--ff-mono); font-size: 12px;
  letter-spacing: 0.04em; color: var(--muted);
  text-transform: uppercase;
}
.stmt-period {
  display: flex; gap: 24px; align-items: center;
  padding-bottom: 14px; border-bottom: 1px solid var(--line-2);
  margin-bottom: 14px; flex-wrap: wrap;
}
.period-cell { display: flex; gap: 8px; align-items: baseline; }
.period-cell .lab {
  font-family: var(--ff-mono); font-size: 11px; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.period-cell .val {
  font-size: 13px; font-weight: 600; color: var(--ink);
  padding: 4px 10px; border: 1px solid var(--line-2);
}
.period-source {
  margin-left: auto;
  font-family: var(--ff-mono); font-size: 11px; color: var(--muted-2);
}

.stmt-table {
  width: 100%; border-collapse: collapse;
  font-size: 13.5px;
  font-variant-numeric: tabular-nums;
}
.stmt-table thead th {
  font-family: var(--ff-mono); font-size: 11px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2);
  text-align: left; padding: 8px 8px;
  border-bottom: 1px solid var(--line-2);
}
.stmt-table thead th.tr { text-align: right; }
.stmt-table tbody td {
  padding: 6px 8px; color: var(--ink);
}
.stmt-table tbody td.amt {
  text-align: right; font-family: var(--ff-mono);
  font-variant-numeric: tabular-nums;
}
.stmt-table tbody td.amt.is-good { color: var(--green); font-weight: 600; }
.stmt-section td {
  font-family: var(--ff-mono); font-size: 11px; letter-spacing: 0.06em;
  text-transform: uppercase; color: var(--muted-2); font-weight: 600;
  padding-top: 14px !important;
}
.stmt-subtotal td {
  font-weight: 700; border-top: 1px solid var(--line-2);
  padding-top: 8px !important;
}
.stmt-margin td {
  font-style: italic; color: var(--muted);
  padding-bottom: 6px !important;
}
.stmt-total td {
  font-weight: 700; border-top: 2px solid var(--ink);
  padding-top: 10px !important; font-size: 14.5px;
}
.stmt-indent { padding-left: 22px !important; }

/* ============== 4.6 — TAX ============== */
.tax-juris {
  display: flex; gap: 20px; align-items: center;
  background: var(--paper); border: 1px solid var(--line-2);
  padding: 12px 16px; margin-bottom: 14px;
}
.tax-juris-left {
  display: flex; gap: 10px; align-items: center;
}
.tax-juris-left .lab {
  font-family: var(--ff-mono); font-size: 11.5px; color: var(--muted-2);
  text-transform: uppercase; letter-spacing: 0.06em;
}
.tax-juris-select {
  padding: 6px 12px; border: 1px solid var(--line-2);
  font-size: 13.5px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
  min-width: 240px;
}
.tax-juris-right { margin-left: auto; text-align: right; }
.tax-auth-name { font-size: 14px; font-weight: 700; color: var(--ink); }
.tax-auth-meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.tax-auth-meta .link { color: var(--accent); font-family: var(--ff-mono); }

.tax-table-wrap {
  background: var(--paper); border: 1px solid var(--line-2);
  margin-bottom: 14px;
}
.tax-table-head {
  display: flex; justify-content: space-between; align-items: baseline;
  padding: 10px 14px; border-bottom: 1px solid var(--line-2);
}
.tax-table-head .ttl { font-size: 14px; font-weight: 700; color: var(--ink); }
.tax-table-head .sub { font-size: 11.5px; color: var(--muted-2); }
.tax-table {
  width: 100%; border-collapse: collapse;
  font-size: 13px;
}
.tax-table thead th {
  font-family: var(--ff-mono); font-size: 10.5px; font-weight: 500;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2);
  text-align: left; padding: 8px 14px;
  border-bottom: 1px solid var(--line-2);
  background: var(--paper-2);
}
.tax-table thead th.tr { text-align: right; }
.tax-table tbody td {
  padding: 9px 14px; color: var(--ink);
  border-bottom: 1px solid var(--line-2);
}
.tax-table tbody tr:last-child td { border-bottom: 0; }
.tax-type-pill {
  font-family: var(--ff-mono); font-size: 10.5px;
  padding: 3px 8px; background: var(--paper-3); color: var(--muted);
  font-weight: 600; letter-spacing: 0.04em;
}
.tax-table .cat { font-weight: 600; text-transform: capitalize; }
.tax-table .rate {
  text-align: right; font-family: var(--ff-mono);
  font-size: 15px; font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.tax-table .desc { font-size: 12.5px; color: var(--muted); }
.tax-table .dim { color: var(--muted-2); font-family: var(--ff-mono); font-size: 12px; }

/* Tax calendar mini */
.tax-cal {
  background: var(--paper); border: 1px solid var(--line-2);
}
.tax-cal-head {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line-2);
  background: var(--paper-2);
}
.tax-cal-head .lab {
  font-family: var(--ff-mono); font-size: 11px;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2);
  font-weight: 600;
}
.tax-cal-head .badge {
  font-family: var(--ff-mono); font-size: 11.5px; font-weight: 700;
  background: var(--accent-soft); color: var(--accent);
  padding: 2px 8px;
}
.tax-cal-rows {}
.tax-cal-row {
  display: grid; grid-template-columns: 80px 1fr auto;
  gap: 14px; align-items: center;
  padding: 10px 14px; border-bottom: 1px solid var(--line-2);
}
.tax-cal-row:last-child { border-bottom: 0; }
.cal-date {
  font-family: var(--ff-mono); font-size: 13px; font-weight: 700;
  color: var(--ink);
}
.cal-form { font-size: 13px; color: var(--ink); }
.cal-status {
  font-family: var(--ff-mono); font-size: 11.5px; color: var(--muted);
}
.cal-status.is-soon { color: var(--accent); font-weight: 600; }

/* ============== RESPONSIVE ============== */
@media (max-width: 1100px) {
  .s-problem-grid, .connects-grid, .cap, .cap.cap-flip,
  .deeper-block, .deeper-block.is-flip,
  .s-day-inner, .s-faq-inner { grid-template-columns: 1fr; gap: 40px; }
  .cap.cap-flip .cap-text, .cap.cap-flip .cap-mock,
  .deeper-block.is-flip .deeper-text, .deeper-block.is-flip .deeper-mock { order: initial; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-top-inner { grid-template-columns: 1fr; gap: 32px; }
  .related-grid { grid-template-columns: 1fr; }
  .lm-grid { grid-template-columns: 1fr; }
  .rep-grid { grid-template-columns: 1fr; gap: 16px; }
  .rep-arrow { transform: rotate(90deg); justify-self: center; }
  .rep-cards { grid-template-columns: repeat(2, 1fr); }
  .atlas-cards { grid-template-columns: 1fr; }
  .mp-signals { grid-template-columns: 1fr; }
}

@media (max-width: 768px) {
  :root { --inner-pad: 20px; }
  main > section, main > div > section { padding: 56px 20px; }
  main > section.section-tight, main > div > section.section-tight { padding: 56px 20px; }
  .s-centerpiece { padding-bottom: 56px; }
  .nav-list, .nav-signin, .nav-link-pricing { display: none; }
  .nav-cta { display: inline-flex; font-size: 14px; padding: 8px 14px; }
  .nav-hamburger { display: flex; }
  .footer-links { grid-template-columns: repeat(2, 1fr); gap: 24px; }
  .footer-top-inner { padding: 32px 20px; }
  .footer-region-inner { padding: 18px 20px; }
  .footer-legal-inner { padding: 16px 20px; }
  .h-display { font-size: 40px; }
  .h-section { font-size: 32px; }
  .h-section-sm { font-size: 28px; }
  .h-section-xs { font-size: 26px; }
  .je-pnl { grid-template-columns: 1fr 1fr; }
  .je-pnl-cell { border-bottom: 1px solid var(--line); }

  /* Centerpiece — card-based pairs, each pair clearly delimited */
  .je-frame { border-radius: 4px; box-shadow: 0 1px 3px rgba(15,25,35,0.06); }
  .je-head { padding: 12px 16px; }
  .je-head-l { gap: 10px; }
  .je-head-l .ttl { font-size: 10px; }
  .je-head-l .order-id { font-size: 12px; }
  .je-live { font-size: 10.5px; }
  .je-stream-head { display: none; }

  .je-stream { padding: 0; }
  .je-pair { grid-template-columns: 1fr; padding: 0; border-bottom: 0;
             margin: 14px 14px 0; border: 1px solid var(--line-2);
             border-radius: 4px; overflow: hidden;
             background: var(--paper); }
  .je-pair:last-child { margin-bottom: 14px; }
  .je-pair .je-row.left {
    padding: 12px 14px 10px;
    border-right: 0;
    background: var(--paper);
    position: relative;
  }
  .je-pair .je-row.right {
    padding: 12px 14px 14px;
    background: rgba(45, 90, 102, 0.04);
    border-top: 1px solid var(--line-2);
    position: relative;
  }
  .je-pair .je-row.right::before {
    content: '↳ POSTED TO LEDGER';
    display: block;
    font-family: var(--ff-mono); font-size: 9px;
    font-weight: 700; letter-spacing: 0.1em;
    color: var(--finance);
    margin-bottom: 8px;
  }
  .je-pair .je-row.left::after { display: none; }
  .je-row.left { grid-template-columns: 22px 56px 1fr; gap: 8px; font-size: 13px; }
  .je-row.left .num { font-size: 11px; }
  .je-row.left .time { font-size: 11px; }
  .je-row.left .desc { font-size: 13px; font-weight: 500; }
  .je-row.left .desc .ev-tag { font-size: 9.5px; padding: 1px 5px; }
  .je-row.left .ev-order { font-size: 11px; margin-top: 3px; }

  .je-row.right { grid-template-columns: 1fr; gap: 4px; font-size: 12.5px; }
  .je-row.right .je-id {
    font-size: 11.5px; font-weight: 700;
    color: var(--finance);
    padding-top: 0;
  }
  .je-row.right .je-detail { font-size: 12.5px; line-height: 1.5; }
  .je-row.right .je-detail .lab { font-size: 9.5px; width: 16px; }
  .je-row.right .je-detail .amt { font-size: 13.5px; margin-top: 6px; }
  .je-row.right .je-detail .meta { font-size: 10.5px; margin-top: 4px; }

  /* P&L footer compact */
  .je-pnl { grid-template-columns: 1fr 1fr; }
  .je-pnl-cell { padding: 14px 16px; border-bottom: 1px solid var(--line); }
  .je-pnl-cell:nth-child(odd) { border-right: 1px solid var(--line); }
  .je-pnl-cell .lab { font-size: 9.5px; }
  .je-pnl-cell .val { font-size: 18px; }
  .je-pnl-cell .val .pct { font-size: 11px; }

  .centerpiece-cap { font-size: 12px; padding: 0 18px; margin-top: 14px; }

  /* Capability mockup — tighter padding, smaller KPI count on mobile */
  .cap-mock { padding: 16px; }
  .fin-screen { padding: 14px 14px; }
  .fin-kpis { grid-template-columns: repeat(2, 1fr) !important; }
  .fin-kpi { padding: 10px 12px; }
  .fin-kpi .val { font-size: 18px; }
  .fin-kpi .lab { font-size: 10.5px; }
  .fin-filterbar { flex-wrap: wrap; }
  .fin-filter, .fin-date { font-size: 11.5px; padding: 6px 10px; }
  .fin-search { font-size: 12px; padding: 6px 10px; min-width: 140px; }

  /* All capability tables: horizontal scroll on mobile */
  .inv-table-wrap, .tax-table-wrap,
  .prof-table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .inv-table, .tax-table, .prof-table { min-width: 600px; font-size: 11.5px; }
  .inv-table thead th, .tax-table thead th { padding: 6px 7px; font-size: 9.5px; }
  .inv-table tbody td, .tax-table tbody td { padding: 7px 7px; }

  /* Accounting JE table — restructure to stacked cards on mobile
     (the 7-col table doesn't fit; each JE becomes a vertical block) */
  .acc-table-wrap { overflow-x: visible; }
  .acc-table {
    min-width: 0; width: 100%; display: block;
    table-layout: auto; font-size: 12px;
  }
  .acc-table colgroup, .acc-table col { display: none; }
  .acc-table thead { display: none; }
  .acc-table tbody { display: block; width: 100%; }
  .acc-table tbody tr.acc-row {
    display: block;
    padding: 14px 14px 12px;
    border-bottom: 1px solid var(--line-2);
    position: relative;
  }
  .acc-table tbody tr.acc-row td {
    padding: 0; border: 0;
    vertical-align: baseline;
    white-space: normal;
  }
  .acc-table .acc-row td:nth-child(1) { /* date */
    display: block;
    font-family: var(--ff-mono); font-size: 10px;
    color: var(--muted-2); margin-bottom: 8px;
    letter-spacing: 0.04em;
  }
  .acc-table .acc-row td:nth-child(2) { /* entry */
    display: inline-block;
    font-family: var(--ff-mono); font-size: 12.5px; font-weight: 700;
    color: var(--finance); margin-right: 12px;
    vertical-align: middle;
  }
  .acc-table .acc-row td:nth-child(3) { /* source badge */
    display: inline-block;
    margin-right: 8px;
    vertical-align: middle;
  }
  .acc-table .acc-row td:nth-child(7) { /* status — top right */
    display: block;
    position: absolute; top: 14px; right: 14px;
  }
  .acc-table .acc-row td:nth-child(4) { /* memo — full-width line below */
    display: block;
    font-size: 11.5px; color: var(--muted);
    margin-top: 8px; line-height: 1.45;
    padding-right: 70px; /* avoid running into status badge above */
  }
  .acc-table .acc-row td:nth-child(5),
  .acc-table .acc-row td:nth-child(6) { /* debits, credits — inline below memo */
    display: inline-block;
    font-family: var(--ff-mono); font-size: 12px; font-weight: 600;
    color: var(--ink); margin-right: 16px; margin-top: 10px;
    text-align: left;
    vertical-align: baseline;
    white-space: nowrap;
  }
  .acc-table .acc-row td:nth-child(5)::before { content: 'DR '; font-weight: 400; color: var(--muted-2); font-size: 9.5px; letter-spacing: 0.06em; margin-right: 2px; }
  .acc-table .acc-row td:nth-child(6)::before { content: 'CR '; font-weight: 400; color: var(--muted-2); font-size: 9.5px; letter-spacing: 0.06em; margin-right: 2px; }
  .acc-table tbody tr.acc-row-expand {
    display: block; padding: 0;
    background: var(--paper-2);
    border-bottom: 1px solid var(--line-2);
  }
  .acc-table tbody tr.acc-row-expand td { display: block; padding: 0; }

  .acc-lines {
    padding: 6px 0; width: 100%;
  }
  .acc-lines colgroup, .acc-lines col { display: none; }
  .acc-lines thead { display: none; }
  .acc-lines tbody { display: block; }
  .acc-lines tbody tr {
    display: flex; align-items: baseline;
    padding: 6px 14px;
    border-bottom: 1px dashed var(--line-2);
    gap: 8px;
  }
  .acc-lines tbody tr:last-child { border-bottom: 0; }
  .acc-lines tbody td {
    display: block; padding: 0; border: 0;
    font-size: 11.5px;
  }
  .acc-lines tbody td:nth-child(1) { /* account code */
    flex: 0 0 38px;
    font-family: var(--ff-mono); font-size: 11px;
    color: var(--accent); font-weight: 600;
  }
  .acc-lines tbody td:nth-child(2) { /* name */
    flex: 1 1 auto; min-width: 0;
    font-size: 11.5px; line-height: 1.35;
  }
  .acc-lines tbody td:nth-child(3) { /* debit */
    flex: 0 0 auto;
    font-family: var(--ff-mono); font-weight: 600;
    font-size: 11.5px; color: var(--ink);
    white-space: nowrap; text-align: right;
  }
  .acc-lines tbody td:nth-child(3):not(:empty)::before {
    content: 'DR ';
    color: var(--muted-2); font-weight: 400;
    font-size: 9px; letter-spacing: 0.06em;
    margin-right: 3px;
  }
  .acc-lines tbody td:nth-child(4) { /* credit */
    flex: 0 0 auto;
    font-family: var(--ff-mono); font-weight: 600;
    font-size: 11.5px; color: var(--ink);
    white-space: nowrap; text-align: right;
  }
  .acc-lines tbody td:nth-child(4):not(:empty)::before {
    content: 'CR ';
    color: var(--muted-2); font-weight: 400;
    font-size: 9px; letter-spacing: 0.06em;
    margin-right: 3px;
  }
  /* Empty amount cells take no horizontal space */
  .acc-lines tbody td:nth-child(3):empty,
  .acc-lines tbody td:nth-child(4):empty {
    flex: 0 0 0; display: none;
  }

  /* Templates grid — 2 wide on tablet */
  .inv-tpl-grid { grid-template-columns: repeat(2, 1fr); gap: 6px; }
  .inv-tpl { min-height: 60px; padding: 10px; }
  .inv-tpl .t-name { font-size: 12px; }
  .inv-tpl .t-lab { font-size: 8.5px; }

  /* Branded invoice document — full stack on mobile */
  .inv-doc-brand { padding: 14px 16px; gap: 12px; flex-wrap: wrap; }
  .inv-doc-logo { width: 42px; height: 42px; font-size: 11px; }
  .inv-doc-brand-meta .co { font-size: 14px; }
  .inv-doc-brand-meta .sub { font-size: 10px; }
  .inv-doc-title { font-size: 20px; }
  .inv-doc-num { font-size: 11.5px; }
  .inv-doc-meta { grid-template-columns: 1fr; padding: 14px 16px; gap: 16px; }
  .inv-doc-grid { grid-template-columns: 90px 1fr; gap: 4px 10px; }
  /* Branded invoice line items — stacked cards on mobile
     (6 cols don't fit at 375px; restructure each row as a block) */
  .inv-doc-lines {
    font-size: 12px; display: block; width: 100%;
  }
  .inv-doc-lines colgroup, .inv-doc-lines col { display: none; }
  .inv-doc-lines thead { display: none; }
  .inv-doc-lines tbody { display: block; }
  .inv-doc-lines tbody tr {
    display: block;
    padding: 12px 14px;
    border-bottom: 1px solid var(--line-2);
    position: relative;
  }
  .inv-doc-lines tbody tr:last-child { border-bottom: 0; }
  .inv-doc-lines tbody td {
    display: block; padding: 0; border: 0;
    text-align: left;
  }
  .inv-doc-lines tbody td:nth-child(1) { /* # */
    display: inline-block;
    width: 22px; vertical-align: top;
    font-family: var(--ff-mono); font-size: 11px;
    color: var(--muted-3); padding-top: 2px;
  }
  .inv-doc-lines tbody td:nth-child(2) { /* Description */
    display: inline-block;
    width: calc(100% - 130px); vertical-align: top;
    font-size: 12.5px; line-height: 1.4;
  }
  .inv-doc-lines tbody td:nth-child(2) strong {
    font-weight: 600; color: var(--ink);
    display: block; font-size: 12.5px;
  }
  .inv-doc-lines tbody td:nth-child(2) .ln-sub {
    font-family: var(--ff-mono); font-size: 10px;
    color: var(--muted-2); margin-top: 3px;
    line-height: 1.4;
  }
  /* Total — top right */
  .inv-doc-lines tbody td:nth-child(6) {
    position: absolute; top: 12px; right: 14px;
    font-family: var(--ff-mono); font-weight: 700;
    font-size: 13px; color: var(--ink);
    white-space: nowrap; text-align: right;
  }
  /* Hide HS / Qty / Unit on mobile — too dense for narrow width, content overlaps */
  .inv-doc-lines tbody td:nth-child(3),
  .inv-doc-lines tbody td:nth-child(4),
  .inv-doc-lines tbody td:nth-child(5) {
    display: none;
  }
  .inv-doc-totals { grid-template-columns: 1fr; padding: 14px 16px; gap: 16px; }
  .inv-doc-pay .pay-line { grid-template-columns: 75px 1fr; gap: 8px; font-size: 11.5px; }
  .inv-doc-sumblock { font-size: 12.5px; }
  .inv-doc-sumblock .row.is-total { font-size: 14.5px; }
  .inv-doc-footer { padding: 8px 16px; font-size: 9px; flex-wrap: wrap; gap: 6px; }

  /* Cashflow — stack chart + scenarios */
  .cf-grid { grid-template-columns: 1fr; gap: 12px; }
  .cf-chart-card, .cf-scen-card { padding: 12px; }
  .cf-svg { height: 200px; }

  /* Accounting depth cards — single column on mobile */
  .acc-subtabs { grid-template-columns: 1fr; gap: 8px; }

  /* Profitability table — make it scrollable */
  .prof-table { font-size: 11.5px; }

  /* Statements P&L — tighter */
  .stmt-paper { padding: 18px 16px; }
  .stmt-paper-head { padding-bottom: 12px; margin-bottom: 14px; }
  .stmt-company { font-size: 15px; }
  .stmt-title { font-size: 18px; }
  .stmt-subtitle { font-size: 10.5px; }
  .stmt-period { gap: 12px; padding-bottom: 12px; margin-bottom: 12px; }
  .period-source { margin-left: 0; width: 100%; font-size: 10px; }
  .period-cell .val { font-size: 12px; padding: 3px 8px; }
  .stmt-table { font-size: 11.5px; min-width: 0; }
  .stmt-table thead th { padding: 6px 4px; font-size: 9.5px; }
  .stmt-table tbody td { padding: 5px 4px; }
  .stmt-total td { font-size: 12.5px; padding-top: 8px !important; }
  .stmt-section td { padding-top: 10px !important; }
  .stmt-bar { flex-wrap: wrap; gap: 8px; }
  .stmt-bar .fin-pills { width: 100%; overflow-x: auto; flex-wrap: nowrap; }
  .stmt-actions { width: 100%; }
  .stmt-btn { font-size: 11px; padding: 6px 10px; }

  /* Tax — stack jurisdiction */
  .tax-juris { flex-direction: column; align-items: flex-start; gap: 10px; padding: 10px 14px; }
  .tax-juris-right { margin-left: 0; text-align: left; }
  .tax-juris-select { min-width: 0; }
  .tax-cal-row { grid-template-columns: 60px 1fr auto; gap: 10px; padding: 8px 12px; }
  .cal-form { font-size: 11.5px; }
  .cal-date { font-size: 11.5px; }
  .cal-status { font-size: 10.5px; }

  /* Connects-table — stack on mobile */
  .connects-row { grid-template-columns: 1fr; gap: 4px; padding: 12px 0; }

  /* Centerpiece header label simplification */
  .mock-label { font-size: 10.5px; letter-spacing: 0.1em; }

  /* Old AR / 3WM rules (may still be used in deeper) */
  .ar-bucket { grid-template-columns: 130px 80px 1fr 40px; }
  .tw-row { grid-template-columns: 1fr; gap: 8px; }
  .tw-row .fields { gap: 12px; }
  .ar-overdue-row { grid-template-columns: 1fr 1fr; row-gap: 4px; }
  .rep-cards { grid-template-columns: 1fr; }
  .rep-stack-tiles { grid-template-columns: repeat(2, 1fr); }
  .je-card-meta { grid-template-columns: 1fr; }

  /* Fix 1 — Live margin pill bar: show only active "By Order", hide rest */
  #cap-profit .fin-pill:not(.fin-pill-on) { display: none; }
  #cap-profit .fin-pill-on::after { content: ' ▾'; }
  #cap-profit .fin-pills {
    display: flex; width: 100%;
    border-bottom: 1px solid var(--line-2);
  }
  #cap-profit .fin-pill-on { flex: 1; justify-content: space-between; }

  /* Fix 2 — Accounting engine pill bar: show only active "Journal Entries" */
  #cap-accounting .fin-pill:not(.fin-pill-on) { display: none; }
  #cap-accounting .fin-pill-on::after { content: ' ▾'; }
  #cap-accounting .fin-pills {
    display: flex; width: 100%;
    border-bottom: 1px solid var(--line-2);
  }
  #cap-accounting .fin-pill-on { flex: 1; justify-content: space-between; }

  /* Fix 3 — Deeper section: stack layout, fix right overflow */
  .deeper-block,
  .deeper-block.is-flip { grid-template-columns: 1fr; gap: 32px; padding: 40px 0; }
  .deeper-block.is-flip .deeper-text { order: 0; }
  .deeper-block.is-flip .deeper-mock { order: 0; }
  .deeper-mock { overflow-x: auto; -webkit-overflow-scrolling: touch; }
  .je-card-entry-line { grid-template-columns: 32px 1fr auto; }

  /* ─── COMPRESSION RULE: Centerpiece is the hero mock (live ops-to-ledger
     stream — the page's headline visual). Capabilities + Deeper + Day-in-life
     mocks compress to text-only on mobile. Each capability/deeper card keeps
     its headline + body; only the heavy mock surface is hidden. ─── */
  .cap-mock { display: none; }
  .deeper-mock { display: none; }
  .s-day-mock, .s-day .fin-screen, .s-day .je-card { display: none; }
}

@media (max-width: 480px) {
  .footer-links { grid-template-columns: 1fr; }
  .je-pnl { grid-template-columns: 1fr; }
  .je-pnl-cell { padding: 14px 18px; }
  .fin-kpis { grid-template-columns: 1fr 1fr !important; }
  .stmt-table thead th:nth-child(3), .stmt-table tbody td:nth-child(3) { display: none; }
  /* on very small screens, hide the comparison column to fit width */
}

/* ═══════════════════════════════════════════════════════════════════════
   PLATFORM-FAITHFUL ACCOUNTING JOURNAL ENTRIES MOCK
   Scoped to .fin-screen-real (the cap-accounting wrapper).
   Targets pixel-faithful match with the live platform's FinanceAccountingPage:
   PageHeader + page-tabs (.ptab) + pill subtabs (.pill) + pd-kpis (3 cards) +
   filter bar (.input fields) + card wrapper + .tbl table with .badge-neutral
   source badges, .badge-green/.badge-amber status, mono accent entry numbers.
   Real platform tokens: --bg #F4F5F7, --surface #FFFFFF, --border #E2E6EB,
   --text #0F1923, --text2 #4A5568, --text3 #6B7A8A, --accent #B08D57,
   --accent-light rgba(176,141,87,.07), --navy #0F1923, --green-bg #ECFDF5,
   --green-t #065F46, --amber-bg #FFFBEB, --amber-t #92400E, --divider #F0F2F5.
   ═══════════════════════════════════════════════════════════════════════ */

/* Outer shell — no padding, surface bg, sharp corners, subtle shadow */
.fin-screen.fin-screen-real {
  background: #FFFFFF;
  border: 1px solid #E2E6EB;
  box-shadow: 0 1px 3px rgba(15,25,35,.05);
  padding: 0;
  overflow: hidden;
}

/* PageHeader — title + subtitle strip at top of mock */
.fin-screen-real .fin-pageheader {
  padding: 22px 28px 18px;
  border-bottom: 1px solid #F0F2F5;
}
.fin-screen-real .fin-pageheader-title {
  font-family: 'DM Sans', sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #0F1923;
  line-height: 1.2;
  margin: 0 0 4px 0;
}
.fin-screen-real .fin-pageheader-sub {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #4A5568;
  margin: 0;
  line-height: 1.5;
}

/* page-tabs strip — underline-on-active, .ptab style */
.fin-screen-real .fin-tabs {
  display: flex;
  gap: 0;
  border-bottom: 1px solid #E2E6EB;
  padding: 0 28px;
  margin: 0;
  overflow-x: auto;
  scrollbar-width: none;
}
.fin-screen-real .fin-tabs::-webkit-scrollbar { display: none; }
.fin-screen-real .fin-tab {
  padding: 10px 18px;
  font-family: 'DM Sans', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #4A5568;
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  display: inline-block;
  cursor: pointer;
  white-space: nowrap;
  flex: 0 0 auto;
  transition: all .12s;
}
.fin-screen-real .fin-tab:hover { color: #0F1923; }
.fin-screen-real .fin-tab-on {
  color: #0F1923;
  border-bottom-color: #B08D57;
  font-weight: 600;
}

/* PageContent body — provides interior padding */
.fin-screen-real .fin-content {
  padding: 20px 28px 28px;
}

/* Sub-tab pills — separate buttons, navy active (.pill / .pill-active) */
.fin-screen-real .fin-pills {
  display: flex;
  gap: 8px;
  margin: 0 0 20px 0;
  border: none;
  flex-wrap: wrap;
}
.fin-screen-real .fin-pill {
  padding: 5px 12px;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid #E2E6EB;
  border-right: 1px solid #E2E6EB;
  background: #FFFFFF;
  color: #4A5568;
  cursor: pointer;
  transition: all .12s;
}
.fin-screen-real .fin-pill:hover {
  border-color: #B08D57;
  color: #0F1923;
}
.fin-screen-real .fin-pill-on {
  background: #0F1923;
  color: #FFFFFF;
  border-color: #0F1923;
}

/* KPI strip — 3 large cards (.pd-kpis / .pd-kpi) */
.fin-screen-real .fin-kpis {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 28px 0;
}
.fin-screen-real .fin-kpi {
  background: #FFFFFF;
  border: 1px solid #E2E6EB;
  padding: 20px 24px;
  box-shadow: 0 1px 3px rgba(15,25,35,.05);
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.fin-screen-real .fin-kpi::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: #B08D57;
}
.fin-screen-real .fin-kpi-val {
  font-family: 'DM Sans', sans-serif;
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: -0.02em;
  color: #0F1923;
  font-feature-settings: 'tnum' on;
  display: block;
  margin: 0;
}
.fin-screen-real .fin-kpi-lbl {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 600;
  color: #6B7A8A;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 8px 0 0 0;
  line-height: 1.3;
}

/* Filter bar — input-styled boxes, 8px 12px padding, 14px font */
.fin-screen-real .fin-filterbar {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 16px 0;
}
.fin-screen-real .fin-input {
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  color: #0F1923;
  background: #FFFFFF;
  border: 1px solid #E2E6EB;
  padding: 8px 12px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  line-height: 1.4;
  min-height: 36px;
  box-sizing: border-box;
}
.fin-screen-real .fin-search {
  flex: 1;
  color: #6B7A8A;
}
.fin-screen-real .fin-search-ico {
  font-size: 13px;
  color: #6B7A8A;
  display: inline-block;
}
.fin-screen-real .fin-search-ph {
  color: #6B7A8A;
}
.fin-screen-real .fin-dropdown {
  width: 200px;
  justify-content: space-between;
  color: #0F1923;
  cursor: pointer;
}
.fin-screen-real .fin-caret {
  color: #6B7A8A;
  font-size: 11px;
}
.fin-screen-real .fin-date {
  width: 150px;
  font-feature-settings: 'tnum' on;
  color: #0F1923;
}
.fin-screen-real .fin-to {
  font-size: 13px;
  color: #6B7A8A;
}

/* Card wrapper around table */
.fin-screen-real .fin-card {
  background: #FFFFFF;
  border: 1px solid #E2E6EB;
  box-shadow: 0 1px 3px rgba(15,25,35,.05);
  overflow: hidden;
}

/* TABLE — .tbl style exactly */
.fin-screen-real .acc-table {
  width: 100%;
  border-collapse: collapse;
  font-family: 'DM Sans', sans-serif;
  font-size: 14px;
  background: #FFFFFF;
  table-layout: auto;
  border: none;
}
.fin-screen-real .acc-table thead th {
  padding: 10px 16px;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 12px;
  font-weight: 700;
  color: #6B7A8A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #F4F5F7;
  border-bottom: 1px solid #E2E6EB;
  white-space: nowrap;
}
.fin-screen-real .acc-table thead th.tr { text-align: right; }
.fin-screen-real .acc-table tbody tr {
  border-bottom: 1px solid #F0F2F5;
  transition: background .1s;
  cursor: pointer;
}
.fin-screen-real .acc-table tbody tr:hover {
  background: rgba(176,141,87,0.07);
}
.fin-screen-real .acc-table tbody tr:last-child {
  border-bottom: none;
}
.fin-screen-real .acc-table tbody td {
  padding: 10px 16px;
  color: #0F1923;
  vertical-align: middle;
  font-size: 14px;
}
.fin-screen-real .acc-table .dim {
  color: #6B7A8A;
  white-space: nowrap;
  font-feature-settings: 'tnum' on;
}

/* Entry number — accent color, mono font, 13px, weight 600 */
.fin-screen-real .acc-table .je-num {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 13px;
  color: #B08D57;
  font-weight: 700;
  white-space: nowrap;
}

/* Memo cell — 12px text2 */
.fin-screen-real .acc-table .memo {
  font-size: 13px;
  color: #4A5568;
  line-height: 1.4;
}

/* Debits / Credits — right aligned, weight 600, tabular numerics */
.fin-screen-real .acc-table .amt {
  text-align: right;
  font-weight: 600;
  font-feature-settings: 'tnum' on;
  white-space: nowrap;
  color: #0F1923;
}

/* Source badge — .badge-neutral style (NOT mono, capitalized text) */
.fin-screen-real .acc-src {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  background: #F4F5F7;
  color: #6B7A8A;
  text-transform: capitalize;
  letter-spacing: 0.03em;
  text-align: center;
  white-space: nowrap;
}

/* Status badges — .badge-green / .badge-amber EXACT */
.fin-screen-real .acc-badge {
  display: inline-block;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 10px;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  text-align: center;
}
.fin-screen-real .acc-badge.is-green {
  background: #ECFDF5;
  color: #065F46;
}
.fin-screen-real .acc-badge.is-amber {
  background: #FFFBEB;
  color: #92400E;
}

/* Expanded row — clicked entry highlights accent-light, expansion shows nested .tbl */
.fin-screen-real .acc-table tbody tr.acc-row.is-expanded {
  background: rgba(176,141,87,0.07);
  border-bottom: 0;
}
.fin-screen-real .acc-table tbody tr.acc-row.is-expanded:hover {
  background: rgba(176,141,87,0.07);
}
.fin-screen-real .acc-table tbody tr.acc-row-expand {
  background: #FAFBFC;
  border-bottom: 1px solid #F0F2F5;
  cursor: default;
}
.fin-screen-real .acc-table tbody tr.acc-row-expand:hover {
  background: #FAFBFC;
}
/* td wrapper for the nested table · 16px padding + 4px accent stripe on the
   left to visually signal this is a drill-down of the parent row above */
.fin-screen-real .acc-table tbody tr.acc-row-expand > td {
  padding: 14px 20px 16px;
  background: #FAFBFC;
  border-top: 0;
  border-bottom: 0;
  box-shadow: inset 3px 0 0 0 #B08D57;
}

/* Inner expansion table — visually nested .tbl, slightly smaller (13px) to feel like a child of the parent row */
.fin-screen-real .acc-lines {
  width: 100%;
  border-collapse: collapse;
  background: #FFFFFF;
  border: 1px solid #E2E6EB;
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  margin: 0;
  table-layout: auto;
}
.fin-screen-real .acc-lines thead th {
  padding: 8px 14px;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: #6B7A8A;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  background: #F4F5F7;
  border-bottom: 1px solid #E2E6EB;
  white-space: nowrap;
}
.fin-screen-real .acc-lines thead th.tr { text-align: right; }
.fin-screen-real .acc-lines tbody tr {
  border-bottom: 1px solid #F0F2F5;
  background: transparent;
  cursor: default;
}
.fin-screen-real .acc-lines tbody tr:last-child { border-bottom: 0; }
.fin-screen-real .acc-lines tbody tr:hover { background: transparent; }
.fin-screen-real .acc-lines tbody td {
  padding: 9px 14px;
  font-size: 13px;
  color: #0F1923;
  vertical-align: middle;
  border: 0;
  white-space: nowrap;
  height: 32px;
}
.fin-screen-real .acc-lines .acc-code {
  font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  font-size: 12.5px;
  color: #B08D57;
  font-weight: 700;
  width: 1%;          /* shrink to content; remaining width goes to other columns */
  white-space: nowrap;
}
.fin-screen-real .acc-lines .amt {
  text-align: right;
  font-weight: 600;
  font-feature-settings: 'tnum' on;
  color: #0F1923;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}
/* Empty amount cells keep their slot even with no content — collapse guard */
.fin-screen-real .acc-lines .amt:empty::after {
  content: '\00a0';      /* non-breaking space */
  display: inline-block;
}

/* Pagination footer — matches real JournalTab pagination */
.fin-screen-real .fin-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  background: #FFFFFF;
  border-top: 1px solid #F0F2F5;
}
.fin-screen-real .fin-pag-count {
  font-size: 12px;
  color: #6B7A8A;
}
.fin-screen-real .fin-pag-nav {
  display: flex;
  align-items: center;
  gap: 4px;
}
.fin-screen-real .fin-pag-cur {
  font-size: 12px;
  color: #6B7A8A;
  padding: 0 10px;
  font-feature-settings: 'tnum' on;
}
.fin-screen-real .fin-pag-btn {
  font-family: 'DM Sans', sans-serif;
  font-size: 13px;
  font-weight: 500;
  color: #4A5568;
  background: #FFFFFF;
  border: 1px solid #E2E6EB;
  padding: 5px 12px;
  cursor: pointer;
  transition: all .12s;
}
.fin-screen-real .fin-pag-btn:hover:not(:disabled) {
  border-color: #B08D57;
  color: #0F1923;
}
.fin-screen-real .fin-pag-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

/* Marketing eyebrow above sub-tab preview cards (outside .fin-screen) */
.fin-other-eyebrow {
  font-family: 'DM Sans', sans-serif;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  color: #6B7A8A;
  text-transform: uppercase;
  margin: 32px 0 14px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .fin-screen-real .fin-pageheader { padding: 16px 18px 14px; }
  .fin-screen-real .fin-pageheader-title { font-size: 20px; }
  .fin-screen-real .fin-tabs { padding: 0 18px; }
  .fin-screen-real .fin-tab { padding: 10px 14px; font-size: 14px; }
  .fin-screen-real .fin-content { padding: 16px 18px 22px; }
  .fin-screen-real .fin-kpis { grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
  .fin-screen-real .fin-kpi { padding: 14px 16px; }
  .fin-screen-real .fin-kpi-val { font-size: 22px; }
  .fin-screen-real .fin-filterbar { flex-wrap: wrap; }
  .fin-screen-real .fin-search { width: 100%; flex: 1 1 100%; }
  .fin-screen-real .fin-dropdown { flex: 1; width: auto; }
  .fin-screen-real .fin-date { flex: 1; width: auto; min-width: 110px; }
  .fin-screen-real .acc-table thead th { padding: 8px 10px; font-size: 11px; }
  .fin-screen-real .acc-table tbody td { padding: 8px 10px; font-size: 13px; }
}

/* Accounting cap needs full mock width for the 7-column journal table.
   Stack vertically: text on top, mock full-width below. */
#cap-accounting {
  grid-template-columns: 1fr;
  gap: 32px;
}
#cap-accounting .cap-text { max-width: 800px; order: 1; }
#cap-accounting .cap-mock { max-width: none; order: 2; padding: 0; background: transparent; border: none; overflow: visible; }
/* cache-bust 1779549529 */
