:root {
  --ink: #0F1923; --ink-2: #1a2534;
  --muted: #525252; --muted-2: #7A7A78;
  --line: #E5E2DC; --line-2: #ECE9E2; --line-3: #F2EFE8;
  --paper: #FFFFFF; --paper-2: #FAFAF7; --paper-3: #F5F2ED;
  --accent: #B08D57; --accent-hover: #8F6F3E;
  --accent-soft: #F7F1E6; --accent-soft-2: #FBF7F0;
  --finance: #2D5A66;
  --amber: #B45309; --amber-soft: #FFFBEB;
  --green: #2F7A4D; --green-soft: #E8F5EE;
  --red: #C94A3E; --red-soft: #FBE9E7;
  --ff-body: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --max-w: 1280px; --inner-pad: 24px;
  --dur-fast: 0.15s; --dur-base: 0.3s;
}

*, *::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; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; font-feature-settings: 'tnum'; }
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; }

.eyebrow { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--accent); }
.lede { font-size: 18px; line-height: 1.6; color: var(--muted); font-weight: 400; }
.h-section-sm { font-size: clamp(28px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.1; }
.h-display { font-size: clamp(40px, 5.2vw, 60px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.04; }
.h2-band { font-size: clamp(30px, 3.4vw, 40px); font-weight: 500; letter-spacing: -0.01em; line-height: 1.12; }
.tnum { font-feature-settings: 'tnum'; }

.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; border-radius: 0; 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); }
.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 (lifted from canonical) */
.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-link.is-active { 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; }

/* HERO */
.tc-hero { padding: 96px 0 56px; text-align: center; }
.tc-hero .eyebrow { display: inline-block; margin-bottom: 22px; }
.tc-hero h1 { margin-bottom: 24px; max-width: 860px; margin-left: auto; margin-right: auto; }
.tc-hero .lede { max-width: 720px; margin: 0 auto 36px; font-size: 20px; }
.tc-hero-cta { display: flex; justify-content: center; gap: 16px; align-items: center; flex-wrap: wrap; }
.tc-hero-meta { margin-top: 56px; display: flex; gap: 56px; flex-wrap: wrap; padding-top: 28px; border-top: 1px solid var(--line); }
.tc-hero-meta .item { display: flex; flex-direction: column; gap: 4px; }
.tc-hero-meta .lab { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.tc-hero-meta .val { font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.tc-hero-meta .sub { font-size: 15px; color: var(--muted); }

/* CENTERPIECE — multi-leg deal cockpit */
.tc-cp { padding: 0 0 96px; }
.tc-cp-frame { background: var(--paper); border: 1px solid var(--line); box-shadow: 0 1px 3px rgba(0,0,0,0.04); overflow: hidden; }

/* product chrome */
.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; 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 .v { color: rgba(255,255,255,0.85); }

/* KPI strip */
.tc-kpis { display: grid; grid-template-columns: repeat(4, 1fr) minmax(160px, 220px); border-bottom: 1px solid var(--line); }
.tc-kpi { padding: 18px 22px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 4px; }
.tc-kpi:last-child { border-right: 0; padding: 14px 22px; justify-content: center; }
.tc-kpi .lab { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.tc-kpi .val { font-size: 22px; font-weight: 500; color: var(--ink); letter-spacing: -0.01em; }
.tc-kpi .val .sub { font-size: 14px; color: var(--muted); font-weight: 400; margin-left: 4px; }
.tc-kpi .v-delta { font-size: 14px; color: var(--green); font-weight: 500; }
.tc-kpi .v-delta.is-neg { color: var(--red); }
.tc-spark { padding: 10px 14px; }
.tc-spark .sl { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 4px; }

/* deal headbar */
.tc-dealhead { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.tc-dealhead .ref { font-size: 16px; font-weight: 600; color: var(--ink); }
.tc-dealhead .ref .sep { color: var(--muted-2); margin: 0 8px; font-weight: 400; }
.tc-dealhead .ref .commodity { color: var(--muted); font-weight: 400; }
.tc-pill { font-size: 13.5px; font-weight: 600; padding: 4px 10px; border-radius: 0; display: inline-flex; align-items: center; gap: 6px; }
.tc-pill .dot { width: 6px; height: 6px; border-radius: 50%; }
.tc-pill.is-active { background: var(--green-soft); color: var(--green); }
.tc-pill.is-active .dot { background: var(--green); }
.tc-pill.is-finance { background: rgba(45,90,102,0.08); color: var(--finance); border: 1px solid rgba(45,90,102,0.18); }
.tc-pill.is-finance .dot { background: var(--finance); }
.tc-dealhead .actions { margin-left: auto; display: inline-flex; gap: 10px; align-items: center; }
.tc-dealhead .lk { font-size: 15px; color: var(--accent); font-weight: 500; }

/* deal grid: buy / trader / sell */
.tc-legs { display: grid; grid-template-columns: 1fr 1fr 1fr; }
.tc-leg { padding: 22px 24px; border-right: 1px solid var(--line); position: relative; }
.tc-leg:last-child { border-right: 0; }
.tc-leg .leg-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.tc-leg.is-trader { background: var(--paper-2); }
.tc-leg .leg-flag { font-size: 14px; color: var(--muted); margin-top: 2px; }
.tc-leg .cp-name { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 8px; }
.tc-leg .cp-loc { font-size: 14.5px; color: var(--muted); margin-top: 2px; }

.cp-card { margin-top: 14px; border: 1px solid var(--line); border-radius: 0; padding: 12px 14px; background: var(--paper); }
.cp-card.is-trader { background: var(--paper); border-color: var(--accent); }
.cp-card .row { display: grid; grid-template-columns: 1fr auto; gap: 10px; padding: 5px 0; font-size: 15px; align-items: baseline; border-bottom: 1px dashed var(--line-2); }
.cp-card .row:last-child { border-bottom: 0; }
.cp-card .k { color: var(--muted); }
.cp-card .v { color: var(--ink); font-weight: 500; }
.cp-card .v.is-pos { color: var(--green); }
.cp-card .v.is-warn { color: var(--amber); }
.cp-card .v.is-neg { color: var(--red); }
.cp-card .v .sub { color: var(--muted-2); font-weight: 400; margin-left: 4px; font-size: 14px; }

.risk-bar { display: flex; gap: 3px; margin-top: 4px; }
.risk-bar .seg { width: 10px; height: 5px; background: var(--line); border-radius: 0; }
.risk-bar .seg.on { background: var(--amber); }
.risk-bar.is-low .seg.on { background: var(--green); }
.risk-bar.is-hi .seg.on { background: var(--red); }

.perf-row { display: flex; gap: 3px; margin-top: 6px; }
.perf-row .pip { width: 10px; height: 14px; border-radius: 0; background: var(--green); }
.perf-row .pip.is-amber { background: var(--amber); }
.perf-row .pip.is-red { background: var(--red); }
.perf-row .pip.is-pending { background: var(--line); }

/* trader middle column visual */
.tc-trader-vis { margin-top: 8px; }
.tc-margin-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 8px; }
.tc-margin-3 .cell { border: 1px solid var(--line); border-radius: 0; padding: 10px 10px; }
.tc-margin-3 .ccy { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); }
.tc-margin-3 .amt { font-size: 17px; font-weight: 600; color: var(--ink); margin-top: 2px; letter-spacing: -0.01em; }
.tc-margin-3 .pp { font-size: 14px; color: var(--muted); margin-top: 1px; }
.tc-margin-3 .cell.is-base { border-color: var(--accent); background: var(--accent-soft-2); }

.tc-flow { padding: 8px 0 4px; display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.tc-flow .arr { flex: 1; height: 1px; background: var(--line); position: relative; }
.tc-flow .arr::after { content: ""; position: absolute; right: -1px; top: -3px; width: 0; height: 0; border-left: 6px solid var(--muted-2); border-top: 3px solid transparent; border-bottom: 3px solid transparent; }
.tc-flow .arr.is-rev::after { right: auto; left: -1px; transform: rotate(180deg); }
.tc-flow .leg-tag { font-size: 13px; font-weight: 600; color: var(--ink); border: 1px solid var(--line); border-radius: 0; padding: 3px 8px; }

/* doc chain bar at bottom of cockpit */
.tc-cp-bar { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--paper-2); display: grid; grid-template-columns: 130px 1fr 200px; gap: 16px; align-items: center; }
.tc-cp-bar .lab { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.tc-doc-row { display: flex; gap: 6px; flex-wrap: wrap; }
.tc-doc { font-size: 13px; font-weight: 600; padding: 4px 8px; border-radius: 0; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-feature-settings: 'tnum'; }
.tc-doc.is-done { background: var(--green); color: #fff; border-color: var(--green); }
.tc-doc.is-pending { background: #fff; border-color: var(--amber); color: var(--amber); }
.tc-doc.is-late { background: var(--red-soft); border-color: var(--red); color: var(--red); }
.tc-cp-bar .progress { font-size: 15px; color: var(--ink); font-weight: 500; text-align: right; }
.tc-cp-bar .progress .sub { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; margin-top: 2px; }

/* Section heads */
.head { max-width: 760px; margin-bottom: 48px; }
.head .h-section-sm { margin: 16px 0 18px; }
.head p { font-size: 18px; line-height: 1.6; color: var(--muted); }

/* PROBLEM — 3 cards */
.tc-prob-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tc-prob { border: 1px solid var(--line); background: var(--paper); padding: 24px 24px 22px; display: flex; flex-direction: column; gap: 12px; }
.tc-prob .pn { font-size: 14px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.tc-prob h3 { font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.tc-prob p { font-size: 16px; line-height: 1.6; color: var(--muted); }

/* WORKSPACE — buy + sell as siblings */
.tc-ws-frame { border: 1px solid var(--line); background: var(--paper); }
.tc-ws-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.tc-ws-head .ttl { font-size: 16px; font-weight: 600; color: var(--ink); }
.tc-ws-head .ref { font-size: 15px; color: var(--muted); }
.tc-ws-tabs { display: flex; gap: 0; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.tc-ws-tab { padding: 12px 22px; font-size: 15px; font-weight: 500; color: var(--muted); border-right: 1px solid var(--line-2); cursor: default; }
.tc-ws-tab.is-active { background: var(--paper); color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 10px; }

.tc-ws-cols { display: grid; grid-template-columns: 1fr 1fr; }
.tc-ws-col { padding: 22px 22px; border-right: 1px solid var(--line); }
.tc-ws-col:last-child { border-right: 0; }
.tc-ws-col .leg-h { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.tc-ws-col .leg-h .b { font-size: 13px; font-weight: 700; color: var(--accent); letter-spacing: 0.08em; }
.tc-ws-col .leg-h .t { font-size: 18px; font-weight: 600; color: var(--ink); }
.ws-block { padding: 14px 0; border-top: 1px solid var(--line-2); }
.ws-block:first-of-type { border-top: 0; padding-top: 0; }
.ws-block-h { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 10px; }
.ws-row { display: grid; grid-template-columns: 1fr auto; gap: 12px; align-items: baseline; padding: 5px 0; font-size: 15px; }
.ws-row .k { color: var(--muted); }
.ws-row .v { color: var(--ink); font-weight: 500; }
.ws-row .v.is-finance { color: var(--finance); }

/* PER-LEG ECONOMICS */
.tc-econ-frame { border: 1px solid var(--line); background: var(--paper); }
.tc-econ-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 12px; }
.tc-econ-head .ttl { font-size: 16px; font-weight: 600; color: var(--ink); }
.tc-econ-head .switch { display: inline-flex; gap: 0; }
.tc-econ-head .sw { font-size: 14px; font-weight: 500; padding: 6px 12px; border: 1px solid var(--line); color: var(--muted); border-right: 0; background: var(--paper); }
.tc-econ-head .sw:first-child { border-radius: 0; padding-left: 14px; }
.tc-econ-head .sw:last-child { border-radius: 0; padding-right: 14px; border-right: 1px solid var(--line); }
.tc-econ-head .sw.is-on { background: var(--ink); color: #fff; border-color: var(--ink); }

.tc-econ-grid { display: grid; grid-template-columns: 1fr 320px; }
.tc-econ-left { padding: 22px 24px; border-right: 1px solid var(--line); }
.tc-econ-right { padding: 22px 24px; }

.tc-econ-line { display: grid; grid-template-columns: 1fr 130px 90px; gap: 14px; align-items: center; padding: 11px 0; border-bottom: 1px solid var(--line-2); font-size: 15.5px; }
.tc-econ-line:last-child { border-bottom: 0; }
.tc-econ-line.is-total { border-top: 1px solid var(--line); border-bottom: 0; padding-top: 14px; margin-top: 6px; font-weight: 600; color: var(--ink); font-size: 16.5px; }
.tc-econ-line .lab { color: var(--ink); }
.tc-econ-line .lab .sub { display: block; font-size: 13.5px; color: var(--muted); font-weight: 400; margin-top: 1px; }
.tc-econ-line .v { color: var(--ink); text-align: right; font-weight: 500; }
.tc-econ-line .v.is-neg { color: var(--red); }
.tc-econ-line .v.is-pos { color: var(--green); }
.tc-econ-line .pp { color: var(--muted); text-align: right; font-size: 14.5px; }
.tc-econ-line .bar { grid-column: 1 / -1; height: 4px; background: var(--line); border-radius: 0; margin-top: 6px; overflow: hidden; }
.tc-econ-line .bar .fill { display: block; height: 100%; background: var(--accent); border-radius: 0; }

.tc-econ-side .h { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); margin-bottom: 10px; }
.tc-econ-side .net-card { border: 1px solid var(--accent); background: var(--accent-soft-2); padding: 16px; margin-bottom: 12px; }
.tc-econ-side .net-card .ccy { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); }
.tc-econ-side .net-card .amt { font-size: 26px; font-weight: 600; letter-spacing: -0.01em; color: var(--ink); margin-top: 2px; }
.tc-econ-side .net-card .per { font-size: 14.5px; color: var(--muted); margin-top: 2px; }
.tc-econ-side .alt-row { display: grid; grid-template-columns: 1fr auto; padding: 8px 0; font-size: 15px; border-bottom: 1px dashed var(--line-2); }
.tc-econ-side .alt-row:last-child { border-bottom: 0; }
.tc-econ-side .alt-row .k { color: var(--muted); }
.tc-econ-side .alt-row .v { color: var(--ink); font-weight: 500; }

/* lane compare sub-section */
.tc-lanes { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.tc-lane { padding: 20px 22px; border-right: 1px solid var(--line); }
.tc-lane:last-child { border-right: 0; }
.tc-lane.is-best { background: var(--accent-soft-2); }
.tc-lane .corridor { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.tc-lane .ttx { font-size: 14px; color: var(--muted); margin-top: 2px; }
.tc-lane-rows { margin-top: 12px; }
.tc-lane-rows .r { display: flex; justify-content: space-between; padding: 5px 0; font-size: 15px; border-bottom: 1px dashed var(--line-2); }
.tc-lane-rows .r:last-child { border-bottom: 0; }
.tc-lane-rows .r .k { color: var(--muted); }
.tc-lane-rows .r .v { color: var(--ink); font-weight: 500; }
.tc-lane-rows .r .v.is-warn { color: var(--amber); }
.tc-lane-rows .r .v.is-pos { color: var(--green); }
.tc-lane .pick { display: inline-block; margin-top: 12px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); padding: 4px 10px; background: var(--paper); border-radius: 0; border: 1px solid var(--accent); }

/* DOCUMENT CHAIN */
.tc-dc-frame { border: 1px solid var(--line); background: var(--paper); }
.tc-dc-head { padding: 18px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; align-items: center; }
.tc-dc-head .ttl { font-size: 16px; font-weight: 600; color: var(--ink); }
.tc-dc-head .ttl .sub { font-size: 14.5px; color: var(--muted); margin-left: 6px; font-weight: 400; }

.tc-dc-table { display: grid; grid-template-columns: 250px repeat(11, 1fr) 110px; }
.tc-dc-table > div { border-bottom: 1px solid var(--line-2); padding: 10px 8px; font-size: 14px; display: flex; align-items: center; }
.tc-dc-table > div.first { padding-left: 22px; font-weight: 500; color: var(--ink); font-size: 15px; }
.tc-dc-table > div.last { padding-right: 22px; justify-content: flex-end; }
.tc-dc-th { background: var(--paper-2); font-size: 12.5px !important; font-weight: 700 !important; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2) !important; border-bottom: 1px solid var(--line) !important; justify-content: center; }
.tc-dc-th.first { justify-content: flex-start; padding-left: 22px; }
.tc-dc-th.last { justify-content: flex-end; padding-right: 22px; }
.tc-dc-cell { justify-content: center; }

.dc-cell { width: 26px; height: 26px; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.dc-cell.is-done { background: var(--green); color: #fff; }
.dc-cell.is-pending { background: var(--paper); border: 1px solid var(--amber); color: var(--amber); }
.dc-cell.is-na { background: var(--paper-3); color: var(--muted-2); border: 1px dashed var(--line); }
.dc-cell.is-late { background: var(--red-soft); border: 1px solid var(--red); color: var(--red); }

.tc-dc-row .cp-row { display: flex; flex-direction: column; gap: 2px; }
.tc-dc-row .cp-row .nm { font-size: 15px; color: var(--ink); font-weight: 500; }
.tc-dc-row .cp-row .role { font-size: 13px; color: var(--muted-2); }
.tc-dc-status { font-size: 13.5px; font-weight: 600; padding: 4px 10px; border-radius: 0; white-space: nowrap; }
.tc-dc-status.is-ok { background: var(--green-soft); color: var(--green); }
.tc-dc-status.is-pending { background: #fff; border: 1px solid var(--amber); color: var(--amber); }
.tc-dc-status.is-blocked { background: var(--red-soft); color: var(--red); }

.dc-codes { font-size: 14.5px; color: var(--muted); line-height: 1.7; padding: 16px 22px; border-top: 1px solid var(--line); background: var(--paper-2); }
.dc-codes strong { color: var(--ink); font-weight: 600; }

/* WORKING CAPITAL — 3 cards */
.tc-wc-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tc-wc { border: 1px solid var(--line); background: var(--paper); padding: 0; display: flex; flex-direction: column; }
.tc-wc-bar { height: 3px; background: var(--accent); }
.tc-wc.is-finance .tc-wc-bar { background: var(--finance); }
.tc-wc-body { padding: 22px 22px 0; flex: 1; }
.tc-wc-eyebrow { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent); margin-bottom: 8px; }
.tc-wc.is-finance .tc-wc-eyebrow { color: var(--finance); }
.tc-wc h3 { font-size: 19px; font-weight: 600; color: var(--ink); line-height: 1.3; margin-bottom: 12px; }
.tc-wc p { font-size: 16px; line-height: 1.6; color: var(--muted); }
.tc-wc-foot { padding: 14px 22px; border-top: 1px solid var(--line); margin-top: 22px; background: var(--paper-2); display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.tc-wc-foot .stat { display: flex; flex-direction: column; gap: 1px; }
.tc-wc-foot .lab { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); }
.tc-wc-foot .v { font-size: 16px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }

/* NETWORK / COUNTERPARTY INTELLIGENCE */
.tc-net-h { display: flex; align-items: end; gap: 32px; flex-wrap: wrap; margin-bottom: 32px; }
.tc-net-h .head { margin: 0; flex: 1; min-width: 320px; }
.tc-net-stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 0 32px; min-width: 320px; }
.tc-net-stats .item { padding: 14px 0; border-bottom: 1px solid var(--line); }
.tc-net-stats .item:nth-last-child(-n+2) { border-bottom: 0; }
.tc-net-stats .v { font-size: 26px; font-weight: 600; color: var(--ink); letter-spacing: -0.01em; }
.tc-net-stats .l { font-size: 15px; color: var(--muted); margin-top: 2px; line-height: 1.4; }

.tc-net-canvas { width: 100%; height: 420px; }

.tc-net-legend { display: flex; gap: 28px; flex-wrap: wrap; margin-top: 18px; font-size: 14.5px; color: var(--muted); }
.tc-net-legend .it { display: inline-flex; align-items: center; gap: 8px; }
.tc-net-legend .sw { width: 10px; height: 10px; border-radius: 50%; }

/* CASCADE */
.cascade-frame { padding: 40px 32px; border: 1px solid var(--line); background: var(--paper-2); margin-bottom: 28px; }
.cascade-foot { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 820px; }
.cascade-foot em { font-style: normal; font-weight: 500; color: var(--ink); }
.cascade-grid { display: grid; grid-template-columns: 240px 56px 1fr; gap: 16px; align-items: center; }
.cascade-source { background: var(--amber-soft); border: 1px solid rgba(180,83,9,0.22); border-radius: 0; padding: 20px; }
.src-eyebrow { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--amber); }
.src-title { font-size: 18px; font-weight: 600; color: var(--ink); margin-top: 8px; line-height: 1.3; letter-spacing: -0.01em; }
.src-meta { font-size: 14.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.src-sub { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--amber); margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(180,83,9,0.22); }
.cascade-effects { display: flex; flex-direction: column; gap: 10px; }
.cascade-effect { background: var(--paper); border: 1px solid var(--line); border-radius: 0; padding: 14px 16px; display: flex; align-items: center; gap: 16px; }
.cascade-effect > div:first-child { flex: 1; }
.ef-eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); }
.ef-body { font-size: 15.5px; color: var(--ink); line-height: 1.5; margin-top: 4px; }
.ef-tag { font-size: 13.5px; font-weight: 600; color: var(--ink); background: var(--paper-3); border-radius: 0; padding: 4px 10px; flex: none; white-space: nowrap; }
.ef-tag.is-warn { background: var(--amber-soft); color: var(--amber); }
.ef-tag.is-finance { background: rgba(45,90,102,0.08); color: var(--finance); }

/* COMPARE TABLE */
.compare-head { max-width: 760px; margin-bottom: 48px; }
.compare-head .h-section-sm { margin: 16px 0 0; }
.compare-table { width: 100%; border-collapse: collapse; background: var(--paper); border: 1px solid var(--line); font-size: 16px; }
.compare-table th, .compare-table td { padding: 16px 18px; text-align: left; border-bottom: 1px solid var(--line-2); }
.compare-table thead th { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; 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: 32%; 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); font-style: italic; font-size: 15px; }
.compare-table td.val .check { color: var(--green); font-size: 17px; }
.compare-table td.val .dash { color: var(--muted-2); }
.compare-table .col-edma { background: var(--accent-soft); color: var(--ink) !important; }
.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: 820px; margin-top: 32px; }

/* FAQ */
/* (Static FAQ rules stripped — React FAQ component handles styling via appended accordion block.) */

/* 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; }

/* 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); 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: 600; 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; border-radius: 0; }
.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; border-radius: 0; }
.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: 700; letter-spacing: 0.08em; 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: 1100px) {
  .tc-kpis { grid-template-columns: repeat(2, 1fr); }
  .tc-kpi { border-bottom: 1px solid var(--line-2); }
  .tc-kpi:nth-child(2) { border-right: 0; }
  .tc-kpi:last-child { grid-column: 1 / -1; }
  .tc-legs { grid-template-columns: 1fr; }
  .tc-leg { border-right: 0; border-bottom: 1px solid var(--line); }
  .tc-leg:last-child { border-bottom: 0; }
  .tc-econ-grid { grid-template-columns: 1fr; }
  .tc-econ-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .tc-lanes { grid-template-columns: 1fr; }
  .tc-lane { border-right: 0; border-bottom: 1px solid var(--line); }
  .tc-lane:last-child { border-bottom: 0; }
  .tc-prob-grid { grid-template-columns: 1fr; }
  .tc-wc-grid { grid-template-columns: 1fr; }
  .tc-ws-cols { grid-template-columns: 1fr; }
  .tc-ws-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .tc-ws-col:last-child { border-bottom: 0; }
  .tc-cp-bar { grid-template-columns: 1fr; }
  .tc-cp-bar .progress { text-align: left; }
  .tc-dc-frame .tc-dc-table-wrap { overflow-x: auto; }
  .tc-dc-table { min-width: 1040px; }
}
@media (max-width: 1024px) {
  section { padding: 64px 0; }
  .s-cta-band { padding: 96px 0; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-top-inner { grid-template-columns: 1fr; }
}
@media (max-width: 720px) {
  :root { --inner-pad: 18px; }
  .nav-list { display: none; }
  .nav-signin { display: none; }
  .cp-tabs { display: none; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .compare-table th, .compare-table td { padding: 12px 10px; font-size: 14.5px; }
  .tc-margin-3 { grid-template-columns: 1fr; }
  .cascade-grid { grid-template-columns: 1fr; }
  .cascade-connectors { display: none; }

  /* SECTION PADDING */
  section { padding: 56px 0; }

  /* HERO */
  .tc-hero { padding: 56px 0; }
  .tc-hero-kpi { display: none; }

  /* COCKPIT — hide the wide interactive mock, keep text */
  .tc-cp .cp-frame { display: none; }

  /* MARGIN BREAKDOWN — hide the wide mock, keep heading + text */
  .tc-econ-wrap { display: none; }
  .tc-margin-3 { display: none; }

  /* DOCUMENT CHAIN — hide the wide table, keep heading + text */
  .tc-dc-frame { display: none; }

  /* COUNTERPARTY SVG — hide, keep stats + legend */
  .tc-net-canvas { display: none; }

  /* CASCADE EFFECT — hide the connectors + arrows */
  .cascade-frame { overflow-x: auto; }

  /* WORKING CAPITAL CARDS */
  .tc-wc-grid { grid-template-columns: 1fr !important; }

  /* HEADINGS */
  .h-section-sm { font-size: 28px; }
  .h-section { font-size: 32px; }
  .h-display { font-size: 38px; }

  /* LEGS */
  .tc-legs { grid-template-columns: 1fr; }
  .tc-leg { border-right: 0; border-bottom: 1px solid var(--line); }
  .tc-leg:last-child { border-bottom: 0; }

  /* COUNTERPARTY NET STATS */
  .tc-net-stats { grid-template-columns: 1fr 1fr; }

  /* COMPARE TABLE horizontal scroll */
  .compare-wrap, .compare-table { overflow-x: auto; min-width: 0; }
}

/* ============= 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: 0;
}

.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; }
}

