:root {
  --ink: #0F1923;
  --ink-2: #1a2534;
  --muted: #525252;
  --muted-2: #6B7A8A;
  --muted-3: #8a98a8;
  --line: #E5E5E5;
  --line-2: #ECECEC;
  --line-3: #F2F2F2;
  --paper: #FFFFFF;
  --paper-2: #FAFAFA;
  --paper-3: #F5F5F5;
  --accent: #B08D57;
  --accent-hover: #8F6F3E;
  --accent-soft: #F7F1E6;
  --accent-soft-2: #FBF7F0;
  --green: #2F7A4D;
  --green-soft: #E8F5EE;
  --red: #C94A3E;
  --red-soft: #FEF2F2;
  --blue: #3B5EA5;
  --blue-soft: #EEF2F8;
  --amber: #D97706;
  --amber-soft: #FFFBEB;
  --gray-soft: #F0F0F0;
  --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: 1280px;
  --inner-pad: 32px;
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
  --dur-fast: 0.15s;
  --dur-base: 0.3s;
}

/* ───── 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;
  font-feature-settings: 'ss01';
}
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; }
.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; }

/* ───── Type ───── */
.eyebrow {
  font-size: 14px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent);
  font-feature-settings: 'tnum';
}
.lede { font-size: 21px; line-height: 1.55; color: var(--muted); font-weight: 400; }
.h1 { font-size: clamp(40px, 5.2vw, 52px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.05; }
.h2 { font-size: clamp(30px, 3.6vw, 36px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.h2-band { font-size: clamp(32px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.12; }
.body-17 { font-size: 18px; line-height: 1.6; color: var(--muted); }
.mono { font-family: var(--ff-mono); font-feature-settings: 'tnum'; }
.tnum { font-feature-settings: 'tnum'; }

/* ───── Layout shell ───── */
.wrap { max-width: var(--max-w); margin: 0 auto; padding-left: var(--inner-pad); padding-right: var(--inner-pad); }
section { padding: 96px 0; }
section + section { border-top: 1px solid var(--line); }
.bg-2 { background: var(--paper-2); }

/* ───── Buttons ───── */
.btn {
  font-family: inherit; font-size: 16px; font-weight: 500;
  padding: 12px 20px; border: 1px solid transparent;
  cursor: pointer; display: inline-flex; align-items: center; justify-content: center;
  gap: 8px; white-space: nowrap; text-decoration: none;
  transition: background var(--dur-fast), color var(--dur-fast),
              border-color var(--dur-fast), transform var(--dur-fast),
              box-shadow var(--dur-base);
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: 14px 22px; font-size: 17px; font-weight: 600; }
.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.45); }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: var(--accent-hover); }
.btn-accent-dark-on { background: var(--accent); color: var(--ink); }
.btn-accent-dark-on:hover { background: #c39e6a; }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-inv { background: transparent; color: #fff; border-color: rgba(255,255,255,0.35); }
.btn-ghost-inv:hover { border-color: #fff; background: rgba(255,255,255,0.04); }
.btn-red { background: var(--red); color: #fff; }
.btn-red:hover { background: #b03e34; }
.btn-outline-red { background: #fff; color: var(--red); border-color: rgba(201,74,62,0.35); }
.btn-outline-red:hover { border-color: var(--red); }
.btn-sm { padding: 8px 14px; font-size: 15px; font-weight: 500; }
.txt-link {
  color: var(--accent); font-weight: 500; font-size: 17px;
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap var(--dur-fast);
}
.txt-link: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); flex: none; animation: pulse 2s ease-in-out infinite; }
.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; }
.nav-link { font-size: 16.5px; font-weight: 500; color: var(--ink); padding: 8px 4px; }
.nav-link:hover { color: var(--accent); }
.nav-signin { font-size: 16px; padding: 8px 12px; color: var(--ink); }
.nav-signin:hover { color: var(--accent); }
.edma-logo {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink); font-weight: 700; font-size: 22px; letter-spacing: -0.01em;
}
.edma-logo .phoenix { height: 34px; width: auto; display: block; }

/* ───── 1 · HERO ───── */
.s-hero { padding: 96px 0 64px; }
.hero-eyebrow { margin-bottom: 22px; }
.hero-h1 { margin-bottom: 24px; max-width: 920px; }
.hero-lede { max-width: 720px; margin-bottom: 36px; }
.hero-cta { display: inline-flex; gap: 16px; align-items: center; flex-wrap: wrap; }
.hero-cta .txt-link { color: var(--accent); }

/* ───── 2 · CENTERPIECE — product mockup ───── */
.s-centerpiece { padding: 16px 0 96px; }
.centerpiece-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  overflow: hidden;
}
.cp-topnav {
  background: var(--ink);
  display: flex; align-items: center; gap: 24px;
  padding: 12px 24px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
.cp-brand {
  color: #fff; font-weight: 700; font-size: 16px; letter-spacing: -0.01em;
  display: inline-flex; align-items: center; gap: 8px;
}
.cp-brand .dot {
  width: 14px; height: 14px; background: var(--accent);
  display: inline-block;
}
.cp-tabs { display: flex; gap: 22px; }
.cp-tab {
  font-size: 15px; color: rgba(255,255,255,0.55); padding: 4px 0;
  border-bottom: 2px solid transparent;
}
.cp-tab.is-active { color: var(--accent); border-bottom-color: var(--accent); }
.cp-toolbar-spacer { flex: 1; }
.cp-toolbar-right { display: flex; gap: 14px; font-size: 14px; color: rgba(255,255,255,0.6); }
.cp-toolbar-right .mono { color: rgba(255,255,255,0.85); }

.cp-body { display: grid; grid-template-columns: 320px 1fr; min-height: 520px; }
.cp-side {
  background: var(--paper-2);
  border-right: 1px solid var(--line);
  padding: 26px 24px;
}
.cp-side-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted-2);
  margin-bottom: 18px;
}
.cp-rail { position: relative; padding-left: 4px; }
.cp-rail-step {
  display: grid; grid-template-columns: 22px 1fr;
  gap: 12px; align-items: start;
  position: relative;
  padding-bottom: 26px;
}
.cp-rail-step:last-child { padding-bottom: 0; }
.cp-rail-step .dot {
  width: 14px; height: 14px; border-radius: 50%;
  background: #fff; border: 1.5px solid var(--line);
  margin-top: 3px; position: relative; z-index: 1;
}
.cp-rail-step.is-done .dot { background: var(--green); border-color: var(--green); }
.cp-rail-step.is-done .dot::after {
  content: ''; position: absolute; left: 3px; top: 5px;
  width: 6px; height: 3px; border-left: 1.5px solid #fff; border-bottom: 1.5px solid #fff;
  transform: rotate(-45deg);
}
.cp-rail-step.is-current .dot { background: var(--accent); border-color: var(--accent); box-shadow: 0 0 0 4px rgba(176,141,87,0.15); }
.cp-rail-step .connector {
  position: absolute; left: 10px; top: 17px; bottom: 0; width: 1.5px;
  background: var(--line);
}
.cp-rail-step.is-done .connector { background: var(--green); }
.cp-rail-step.is-current .connector { background: linear-gradient(180deg, var(--accent), var(--line) 70%); }
.cp-rail-step:last-child .connector { display: none; }
.cp-rail-label { font-size: 16px; font-weight: 500; color: var(--ink); }
.cp-rail-step.is-future .cp-rail-label { color: var(--muted-2); font-weight: 400; }
.cp-rail-date { font-size: 14px; color: var(--muted-2); margin-top: 2px; font-feature-settings: 'tnum'; font-family: var(--ff-mono); }
.cp-rail-step.is-current .cp-rail-date { color: var(--accent); font-weight: 500; }

.cp-main { padding: 26px 32px; }
.cp-main-id-row { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin-bottom: 14px; }
.cp-id { font-family: var(--ff-mono); font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: 0.01em; }
.cp-client {
  font-size: 17px; color: var(--ink);
  display: inline-flex; align-items: center; gap: 6px;
}
.cp-flag {
  display: inline-flex; align-items: center; justify-content: center;
  width: 18px; height: 14px; font-size: 15px;
}
.cp-amount { font-family: var(--ff-mono); font-size: 17px; color: var(--muted); font-weight: 500; }
.cp-pill-row { display: flex; gap: 8px; flex-wrap: wrap; }
.cp-pill {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
  padding: 4px 10px; border-radius: 999px;
  border: 1px solid transparent;
}
.cp-pill.is-amber-fill { background: var(--amber-soft); color: var(--amber); border-color: rgba(217,119,6,0.25); }
.cp-pill.is-amber-out { background: #fff; color: var(--amber); border-color: rgba(217,119,6,0.35); }
.cp-pill .dot-sm { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.cp-card-stack { margin-top: 24px; display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.cp-mini-card {
  border: 1px solid var(--line); padding: 16px; background: var(--paper);
}
.cp-mini-label { font-size: 13px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.cp-kv { display: grid; grid-template-columns: 1fr auto; row-gap: 6px; font-size: 15px; }
.cp-kv .k { color: var(--muted); }
.cp-kv .v { color: var(--ink); font-family: var(--ff-mono); }
.cp-progress {
  margin-top: 12px;
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: var(--muted);
}
.cp-bar { flex: 1; height: 6px; background: var(--line-3); position: relative; }
.cp-bar-fill { position: absolute; inset: 0 auto 0 0; background: var(--accent); width: 62%; }
.cp-progress .pct { font-family: var(--ff-mono); color: var(--ink); font-weight: 500; }

/* ───── 3 · PROBLEM ───── */
.s-problem { background: var(--paper-2); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.problem-h { font-size: 36px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.15; }
.problem-body { font-size: 18px; line-height: 1.6; color: var(--muted); }
.problem-body em { color: var(--ink); font-style: normal; font-weight: 500; }

/* ───── 4 · LIFECYCLE ───── */
.s-lifecycle .head { max-width: 760px; margin-bottom: 56px; }
.s-lifecycle .head .h2 { margin: 16px 0 24px; }
.s-lifecycle .head p { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 720px; }
.sm-frame {
  border: 1px solid var(--line);
  background: var(--paper);
  padding: 56px 48px 40px;
  position: relative;
}
.sm-svg { display: block; width: 100%; height: auto; }
.sm-legend {
  margin-top: 28px;
  display: flex; gap: 24px; flex-wrap: wrap;
  font-size: 14px; color: var(--muted);
  padding-top: 20px; border-top: 1px dashed var(--line);
}
.sm-legend-item { display: inline-flex; align-items: center; gap: 8px; }
.sm-swatch {
  width: 14px; height: 14px; display: inline-block; border: 1px solid;
}
.sm-swatch.is-active { background: var(--accent-soft); border-color: var(--accent); }
.sm-swatch.is-terminal-ok { background: var(--green-soft); border-color: var(--green); }
.sm-swatch.is-terminal-cancel { background: #FBE9E7; border-color: var(--red); }
.sm-swatch.is-terminal-hold { background: var(--gray-soft); border-color: #888; }

/* ───── 5 · APPROVAL GATES ───── */
.s-approvals { background: var(--paper-2); }
.appr-head { max-width: 760px; margin-bottom: 56px; }
.appr-head .h2 { margin: 16px 0 16px; }
.appr-head p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.appr-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.appr-card {
  background: var(--paper); border: 1px solid var(--line);
  padding: 28px 24px 24px;
  display: flex; flex-direction: column;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.appr-card-label {
  font-size: 13px; font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
}
.appr-card-h { font-size: 19px; font-weight: 700; letter-spacing: -0.01em; margin-bottom: 10px; }
.appr-card-body { font-size: 16px; line-height: 1.55; color: var(--muted); margin-bottom: 22px; }

.appr-mock {
  margin-top: auto;
  border: 1px solid var(--line);
  background: var(--paper-2);
}
.appr-mock-head {
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  font-size: 15px; font-weight: 600; color: var(--ink);
  display: flex; align-items: center; gap: 8px;
}
.appr-mock-head .x {
  margin-left: auto; color: var(--muted-2); font-size: 17px; line-height: 1;
}
.appr-mock-body { padding: 16px; font-size: 15px; color: var(--muted); line-height: 1.55; }
.appr-mock-body .strong { color: var(--ink); font-weight: 500; }
.appr-mock-body .row { display: flex; justify-content: space-between; padding: 4px 0; }
.appr-mock-body .row .k { color: var(--muted-2); }
.appr-mock-body .row .v { color: var(--ink); font-family: var(--ff-mono); }
.appr-mock-banner {
  margin: 0 16px; padding: 10px 12px;
  background: var(--amber-soft); border: 1px solid rgba(217,119,6,0.25);
  font-size: 14.5px; color: var(--amber); font-weight: 500;
  display: flex; gap: 8px; align-items: flex-start;
}
.appr-mock-banner .icon { flex: none; }
.appr-mock-foot {
  display: flex; gap: 8px; padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: var(--paper);
}
.appr-mock-foot .btn { flex: 1; }

.appr-mock.is-deposit {
  border-left: 3px solid var(--amber);
}
.appr-deposit-amt {
  font-family: var(--ff-mono); font-size: 24px;
  color: var(--ink); font-weight: 600; padding: 0 16px 4px;
  display: flex; align-items: baseline; gap: 8px;
}
.appr-deposit-amt small { font-size: 15px; color: var(--muted); font-family: var(--ff-body); font-weight: 400; }
.appr-deposit-meta {
  font-size: 14px; color: var(--muted-2);
  padding: 0 16px 14px;
  font-family: var(--ff-mono);
}

/* ───── 6 · EXCEPTIONS ───── */
.s-exceptions .head { max-width: 760px; margin-bottom: 48px; }
.s-exceptions .head .h2 { margin: 16px 0 18px; }
.s-exceptions .head p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.exc-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; align-items: start; }

.exc-mock {
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.exc-mock.is-cancel .exc-mock-head {
  border-top: 3px solid var(--red);
}
.exc-mock-head {
  padding: 18px 20px 16px; border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 10px;
}
.exc-mock-head .h { font-size: 17px; font-weight: 700; color: var(--ink); }
.exc-mock-head .x { margin-left: auto; color: var(--muted-2); font-size: 19px; line-height: 1; }
.exc-mock-body { padding: 18px 20px; }
.exc-field { margin-bottom: 14px; }
.exc-field-label { font-size: 14px; color: var(--muted-2); font-weight: 500; margin-bottom: 6px; }
.exc-input {
  width: 100%; border: 1px solid var(--line); background: var(--paper);
  padding: 9px 12px; font-family: inherit; font-size: 15px; color: var(--ink);
  display: flex; align-items: center; justify-content: space-between;
}
.exc-input.is-textarea { display: block; min-height: 60px; line-height: 1.5; color: var(--ink); }
.exc-input .chev { color: var(--muted-2); font-size: 13px; }
.exc-impact {
  margin-top: 14px;
  padding: 14px 16px; background: var(--red-soft);
  border: 1px solid rgba(201,74,62,0.25); border-left: 3px solid var(--red);
  font-size: 15px; color: var(--ink);
}
.exc-impact-h { font-size: 14px; font-weight: 600; color: var(--red); margin-bottom: 8px; letter-spacing: 0.04em; text-transform: uppercase; }
.exc-impact ul { padding-left: 0; }
.exc-impact li {
  display: grid; grid-template-columns: 14px 1fr;
  gap: 8px; padding: 4px 0;
  color: var(--muted); font-size: 15px; line-height: 1.5;
}
.exc-impact li::before { content: '•'; color: var(--red); font-weight: 700; }
.exc-impact li .strong { color: var(--ink); font-weight: 500; }
.exc-impact li .mono { color: var(--ink); font-family: var(--ff-mono); }
.exc-mock-foot {
  display: flex; gap: 10px; padding: 14px 20px;
  border-top: 1px solid var(--line); background: var(--paper-2);
}

/* On hold */
.exc-hold-banner {
  background: var(--gray-soft); border: 1px solid #d8d8d8; border-left: 3px solid #888;
  padding: 14px 18px; margin-bottom: 18px;
}
.exc-hold-row { display: flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 600; color: var(--ink); }
.exc-hold-row .pulse-grey { width: 8px; height: 8px; border-radius: 50%; background: #888; flex: none; }
.exc-hold-row .since { color: var(--muted); font-weight: 400; font-size: 15px; font-family: var(--ff-mono); margin-left: 4px; }
.exc-hold-reason { font-size: 15px; color: var(--muted); margin-top: 6px; padding-left: 18px; }

.exc-hold-dim {
  opacity: 0.45; pointer-events: none;
  padding: 14px 20px; border-top: 1px dashed var(--line);
}
.exc-hold-dim .mini-rail {
  display: flex; gap: 10px; margin-bottom: 14px;
}
.exc-hold-dim .mini-rail .step {
  flex: 1; height: 4px; background: var(--line);
}
.exc-hold-dim .mini-rail .step.is-done { background: var(--green); }
.exc-hold-dim .mini-rail .step.is-curr { background: var(--accent); }
.exc-hold-dim .mini-card-title { font-size: 15px; font-weight: 600; color: var(--ink); margin-bottom: 6px; }
.exc-hold-dim .mini-card-meta { font-size: 14px; color: var(--muted-2); font-family: var(--ff-mono); }

/* ───── 7 · AUDIT ───── */
.s-audit { background: var(--paper-2); }
.audit-head { max-width: 760px; margin-bottom: 48px; }
.audit-head .h2 { margin: 16px 0 18px; }
.audit-head p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.audit-card {
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.audit-toolbar {
  padding: 16px 24px;
  border-bottom: 1px solid var(--line);
  display: flex; align-items: center; gap: 14px;
  flex-wrap: wrap;
}
.audit-toolbar-id { font-family: var(--ff-mono); font-size: 15px; color: var(--ink); font-weight: 500; }
.audit-toolbar-id .grey { color: var(--muted-2); }
.audit-chips { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.audit-chip {
  font-size: 14px; padding: 5px 12px; border: 1px solid var(--line);
  color: var(--muted); cursor: default; border-radius: 999px;
  background: var(--paper);
}
.audit-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

.audit-list { padding: 4px 0; }
.audit-row {
  display: grid;
  grid-template-columns: 160px 18px 1fr 220px;
  gap: 18px;
  padding: 18px 24px;
  border-bottom: 1px solid var(--line-2);
  align-items: start;
}
.audit-row:last-child { border-bottom: 0; }
.audit-time { font-family: var(--ff-mono); font-size: 15px; color: var(--muted); padding-top: 1px; }
.audit-dot {
  width: 10px; height: 10px; border-radius: 50%;
  margin-top: 5px; justify-self: center;
}
.audit-dot.is-blue { background: var(--blue); }
.audit-dot.is-amber { background: var(--amber); }
.audit-dot.is-green { background: var(--green); }
.audit-dot.is-gray { background: var(--muted-2); }
.audit-text { font-size: 16px; color: var(--ink); line-height: 1.5; }
.audit-text .from-to { font-family: var(--ff-mono); font-size: 15px; color: var(--ink); }
.audit-text .arrow { color: var(--muted-2); }
.audit-sub { font-size: 15px; color: var(--muted); margin-top: 4px; }
.audit-actor { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.audit-actor .name { font-size: 15.5px; color: var(--ink); font-weight: 500; }
.audit-actor .role {
  font-size: 13px; color: var(--muted); padding: 2px 8px;
  background: var(--paper-2); border: 1px solid var(--line);
  border-radius: 999px;
  letter-spacing: 0.02em;
}

/* ───── 8 · RULES ───── */
.s-rules .head { max-width: 760px; margin-bottom: 48px; }
.s-rules .head .h2 { margin: 16px 0 18px; }
.s-rules .head p { font-size: 18px; line-height: 1.6; color: var(--muted); }
.rules-card {
  border: 1px solid var(--line); background: var(--paper);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.rules-head {
  padding: 18px 24px; display: flex; align-items: center; justify-content: space-between;
  border-bottom: 1px solid var(--line);
}
.rules-head .ttl { font-size: 17px; font-weight: 700; color: var(--ink); }
.rules-head .sub { font-size: 15px; color: var(--muted-2); }
.rules-row {
  padding: 18px 24px; display: grid;
  grid-template-columns: 1fr auto;
  gap: 16px; align-items: center;
  border-bottom: 1px solid var(--line-2);
}
.rules-row:last-child { border-bottom: 0; }
.rules-row .desc { font-size: 16px; color: var(--ink); display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.rules-row .desc .arr { color: var(--muted-2); font-family: var(--ff-mono); font-weight: 500; }
.rules-row .desc .when { color: var(--muted); font-weight: 400; }
.rules-row .desc .who { color: var(--ink); font-weight: 500; }
.rules-row .edit { font-size: 15px; color: var(--accent); display: block; margin-top: 4px; }
.rules-row .right { display: flex; align-items: center; gap: 14px; }
.rules-pill-active {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 14px; font-weight: 500;
  background: var(--green-soft); color: var(--green);
  padding: 4px 10px; border-radius: 999px;
}
.rules-pill-active .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); }

/* ───── 9 · COMPARISON ───── */
.s-compare { background: var(--paper-2); }
.compare-head { max-width: 760px; margin-bottom: 48px; }
.compare-head .h2 { margin: 16px 0 0; }
.compare-table {
  width: 100%; border-collapse: collapse;
  background: var(--paper); border: 1px solid var(--line);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  font-size: 16px;
}
.compare-table th, .compare-table td {
  padding: 16px 20px; text-align: left;
  border-bottom: 1px solid var(--line-2);
}
.compare-table thead th {
  font-size: 14px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--muted-2);
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
}
.compare-table tbody tr:last-child td { border-bottom: 0; }
.compare-table th.cap, .compare-table td.cap {
  width: 36%; color: var(--ink); font-weight: 500;
}
.compare-table td.val { color: var(--muted); text-align: center; font-feature-settings: 'tnum'; }
.compare-table td.val .em { color: var(--muted-2); }
.compare-table td.val .check { color: var(--green); font-size: 17px; line-height: 1; }
.compare-table td.val .dash { color: var(--muted-2); }
.compare-table .col-edma { background: var(--accent-soft); color: var(--ink) !important; font-weight: 500; }
.compare-table thead th.col-edma {
  background: var(--accent); color: #fff; border-bottom-color: var(--accent);
}
.compare-table tbody td.col-edma .check { color: var(--accent-hover); }
.compare-table tbody td.col-edma.val { font-weight: 600; color: var(--ink); }
.compare-foot { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 760px; margin-top: 32px; }

/* §10 FAQ — accordion styles appended at end of file (matches /product page treatment) */
.s-faq .head { max-width: 760px; margin-bottom: 40px; }
.s-faq .head .h2 { margin: 16px 0 0; }

/* ───── 11 · CTA BAND ───── */
.s-cta-band {
  background: var(--ink);
  padding: 120px 0;
  text-align: center;
  border-top: 0;
}
.s-cta-band .wrap { max-width: 820px; }
.s-cta-band .h2-band { color: #fff; margin-bottom: 22px; }
.s-cta-band p { color: rgba(255,255,255,0.78); font-size: 19px; line-height: 1.55; margin-bottom: 36px; }
.s-cta-band .cta { display: inline-flex; gap: 12px; flex-wrap: wrap; justify-content: center; }

/* ───── 12 · RELATED ───── */
.s-related { padding: 96px 0; }
.s-related .eyebrow { text-align: center; display: block; margin-bottom: 36px; }
.related-grid {
  max-width: 1024px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.related-card {
  border: 1px solid var(--line); padding: 24px; background: var(--paper);
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
  display: flex; flex-direction: column; gap: 8px;
  transition: border-color var(--dur-fast), transform var(--dur-fast);
}
.related-card:hover { border-color: var(--accent); transform: translateY(-1px); }
.related-card .ttl { font-size: 18px; font-weight: 700; color: var(--ink); }
.related-card .desc { font-size: 16px; color: var(--muted); line-height: 1.5; flex: 1; }
.related-card .more { font-size: 15px; color: var(--accent); font-weight: 500; margin-top: 8px; }
.related-back { text-align: center; margin-top: 32px; }
.related-back a { font-size: 16px; color: var(--muted); display: inline-flex; gap: 6px; }
.related-back a:hover { color: var(--ink); }

/* ───── 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: 1fr 1fr; gap: 48px; align-items: start;
}
.edma-logo--footer { color: #fff; }
.edma-logo--footer .edma-wordmark { color: #fff; }
.footer-brand-tag { color: rgba(255,255,255,0.6); margin-top: 14px; max-width: 360px; font-size: 16px; line-height: 1.5; }
.footer-newsletter-title { font-size: 16px; font-weight: 600; }
.footer-newsletter-sub { font-size: 15px; color: rgba(255,255,255,0.55); margin-top: 4px; }
.footer-newsletter { display: flex; gap: 8px; margin-top: 14px; max-width: 420px; }
.footer-newsletter input {
  flex: 1; background: transparent; border: 1px solid rgba(255,255,255,0.18);
  color: #fff; padding: 10px 12px; font-family: inherit; font-size: 15px;
}
.footer-newsletter input::placeholder { color: rgba(255,255,255,0.35); }
.footer-newsletter button {
  background: var(--accent); color: #fff; padding: 10px 16px; font-size: 15px; font-weight: 500;
  cursor: pointer;
}
.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;
}
.footer-col-title { font-size: 14px; font-weight: 600; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.5); margin-bottom: 14px; }
.footer-link-list li { margin-bottom: 8px; }
.footer-link-list a { font-size: 15.5px; color: rgba(255,255,255,0.78); }
.footer-link-list a:hover { color: var(--accent); }
.footer-legal-inner {
  max-width: var(--max-w); margin: 0 auto; padding: 24px var(--inner-pad);
  border-top: 1px solid rgba(255,255,255,0.08);
  display: flex; justify-content: space-between; gap: 16px; font-size: 14px; color: rgba(255,255,255,0.5);
  flex-wrap: wrap;
}
.footer-legal-inner .links { display: flex; gap: 22px; flex-wrap: wrap; }
.footer-legal-inner .status-ok { color: #6CB388; }

/* ───── Responsive ───── */
@media (max-width: 1024px) {
  .cp-body { grid-template-columns: 280px 1fr; }
  .appr-grid { grid-template-columns: 1fr; max-width: 480px; }
  .exc-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-top-inner { grid-template-columns: 1fr; }
  .problem-grid { gap: 40px; }
  section { padding: 72px 0; }
  .s-cta-band { padding: 96px 0; }
  .audit-row { grid-template-columns: 110px 18px 1fr; }
  .audit-row .audit-actor { grid-column: 3 / 4; justify-content: flex-start; }
}
@media (max-width: 720px) {
  :root { --inner-pad: 20px; }
  .nav-list { display: none; }
  .nav-signin { display: none; }
  .cp-body { grid-template-columns: 1fr; }
  .cp-side { border-right: 0; border-bottom: 1px solid var(--line); }
  .cp-card-stack { grid-template-columns: 1fr; }
  .cp-tabs { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .compare-table { font-size: 14.5px; }
  .compare-table th, .compare-table td { padding: 12px 10px; }
  .audit-row { grid-template-columns: 90px 14px 1fr; gap: 10px; padding: 14px 16px; }
  .audit-toolbar { padding: 12px 16px; }
  .audit-time { font-size: 13.5px; }
  .sm-frame { padding: 24px 16px; overflow-x: auto; }
}

/* ============= FAQ — single-open accordion (matches /product overview) ============= */

/* ============================================================
   13. FAQ
   ============================================================ */
.faq-list {
  max-width: 880px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
}

/* The question is now a real <button> — clickable, full-width,
   with a chevron that rotates on open. */
.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 24px 0;
  background: transparent;
  border: 0;
  text-align: left;
  cursor: pointer;
  font-family: inherit;
  color: var(--ink);
  transition: color var(--dur-base);
}
.faq-q:hover { color: var(--accent); }
.faq-q:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.faq-q-text {
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.4;
}
.faq-q-icon {
  flex: 0 0 auto;
  width: 32px; height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  border: 1px solid var(--line);
  color: var(--muted);
  background: var(--paper);
  transition:
    transform 320ms cubic-bezier(0.2, 0.7, 0.2, 1),
    border-color var(--dur-base),
    color var(--dur-base),
    background var(--dur-base);
}
.faq-q:hover .faq-q-icon {
  border-color: var(--accent);
  color: var(--accent);
}
.faq-item.is-open .faq-q-icon {
  transform: rotate(180deg);
  background: var(--accent-soft);
  border-color: var(--accent);
  color: var(--accent);
}

/* The answer wrapper uses the grid-template-rows 0fr → 1fr trick
   to animate height changes smoothly without needing a known max-height.
   The inner div has overflow:hidden to clip the content while collapsed. */
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows 320ms cubic-bezier(0.2, 0.7, 0.2, 1);
}
.faq-item.is-open .faq-a-wrap {
  grid-template-rows: 1fr;
}
.faq-a-inner {
  overflow: hidden;
  min-height: 0;
}
.faq-a {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.65;
  max-width: 760px;
  padding: 0 0 24px;
  margin: 0;
  /* Subtle fade-in delay so text appears after the height animation starts */
  opacity: 0;
  transform: translateY(-4px);
  transition: opacity 220ms 80ms ease-out, transform 220ms 80ms ease-out;
}
.faq-item.is-open .faq-a {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  .faq-q-icon,
  .faq-a-wrap,
  .faq-a { transition-duration: 0ms; }
}
