:root {
  --ink: #0F1923; --ink-2: #1a2534;
  --muted: #525252; --muted-2: #6B7A8A; --muted-3: #8a98a8;
  --line: #E5E5E5; --line-2: #ECECEC; --line-3: #F0F0F0;
  --paper: #FFFFFF; --paper-2: #FAFAFA; --paper-3: #F5F5F5;
  --accent: #B08D57; --accent-2: #D4B285; --accent-hover: #8F6F3E;
  --accent-soft: #F7F1E6; --accent-soft-2: #FBF7F0;
  --green: #2F7A4D; --green-soft: #E8F5EE;
  --red: #C94A3E; --red-soft: #FBE9E7;
  --blue: #3B5EA5; --blue-soft: #E8F1FB;
  --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;
  --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; }
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: 600; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.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; }
.mono { font-family: var(--ff-mono); font-feature-settings: 'tnum'; }
.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); }

/* 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-sm { padding: 7px 12px; font-size: 14.5px; font-weight: 500; }
.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 */
.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; }

/* HERO */
.s-hero { padding: 96px 0 64px; }
.s-hero .eyebrow { display: inline-block; margin-bottom: 22px; }
.s-hero h1 { margin-bottom: 24px; max-width: 940px; }
.s-hero .lede { max-width: 720px; margin-bottom: 36px; }
.hero-cta { display: inline-flex; gap: 16px; align-items: center; flex-wrap: wrap; }

/* CENTERPIECE — frame */
.s-centerpiece { padding: 16px 0 96px; }
.cp-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; 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); }

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

/* 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: 32px; font-weight: 700; letter-spacing: -0.02em; line-height: 1.18; }
.problem-body { font-size: 18px; line-height: 1.6; color: var(--muted); }
.problem-body em { color: var(--ink); font-style: normal; font-weight: 500; }

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

/* FAQ */
.s-faq .head { margin-bottom: 40px; }

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

/* ============= AUDIT TRAIL — page-specific ============= */

/* §2 Centerpiece — query interface */
.cp-headbar { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 24px 14px; border-bottom: 1px solid var(--line); }
.cp-headbar .ttl { font-size: 15.5px; font-weight: 600; color: var(--ink); }
.cp-headbar .ttl .mono { font-weight: 500; color: var(--ink); }
.cp-headbar .ttl .sep { color: var(--muted-2); margin: 0 8px; font-weight: 400; }
.cp-headbar .ttl .muted { color: var(--muted); font-weight: 400; }
.cp-headbar .actions { margin-left: auto; display: inline-flex; gap: 12px; align-items: center; }
.cp-headbar .actions .lk { font-size: 14.5px; color: var(--accent); font-weight: 500; }
.cp-headbar .actions .btnx { background: var(--accent); color: #fff; font-size: 14.5px; font-weight: 600; padding: 7px 13px; border-radius: 4px; }

.qf-strip { display: grid; grid-template-columns: 1.05fr 1.2fr 1.2fr 0.85fr 1.4fr; padding: 14px 24px; gap: 0; border-bottom: 1px solid var(--line); background: var(--paper-2); }
.qf-cell { padding: 0 16px; border-right: 1px solid var(--line-2); display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.qf-cell:first-child { padding-left: 0; }
.qf-cell:last-child { border-right: 0; padding-right: 0; }
.qf-cell .lab { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.qf-pill { display: inline-flex; align-items: center; justify-content: space-between; gap: 8px; font-size: 15px; padding: 8px 12px; border: 1px solid transparent; border-radius: 4px; line-height: 1.2; min-height: 36px; }
.qf-pill.is-active { background: var(--accent-soft); border-color: var(--accent); color: var(--ink); font-weight: 500; }
.qf-pill.is-active .caret { color: var(--accent); }
.qf-pill.is-inactive { background: var(--paper); border-color: var(--line); color: var(--muted); }
.qf-pill.is-inactive .caret { color: var(--muted-2); }
.qf-pill .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qf-pill .caret { font-size: 12px; flex: none; }
.qf-pill.is-search { background: var(--paper); border-color: var(--line); color: var(--muted-2); font-style: italic; }

/* result list */
.qr-list { padding: 0; }
.qr-row { display: grid; grid-template-columns: 122px 18px 1fr 152px 168px 168px; gap: 14px; align-items: start; padding: 14px 24px; border-bottom: 1px solid var(--line-2); font-size: 15px; }
.qr-row:last-of-type { border-bottom: 0; }
.qr-row.is-flag { background: var(--amber-soft); }
.qr-time { font-family: var(--ff-mono); font-size: 14px; color: var(--muted); font-feature-settings: 'tnum'; line-height: 1.5; padding-top: 2px; }
.qr-dot { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.qr-dot.is-blue { background: var(--blue); }
.qr-dot.is-amber { background: var(--amber); }
.qr-dot.is-green { background: var(--green); }
.qr-dot.is-red { background: var(--red); }
.qr-event { min-width: 0; }
.qr-event .h { font-size: 15.5px; color: var(--ink); font-weight: 500; line-height: 1.4; }
.qr-event .ctx { font-size: 14px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.qr-rec, .qr-actor, .qr-impact { font-size: 14px; line-height: 1.5; padding-top: 2px; }
.qr-rec { font-family: var(--ff-mono); font-feature-settings: 'tnum'; color: var(--ink); font-weight: 500; }
.qr-actor { color: var(--ink); }
.qr-actor .role { color: var(--muted-2); }
.qr-impact { color: var(--muted); font-family: var(--ff-mono); font-feature-settings: 'tnum'; }
.qr-impact.is-neg { color: var(--red); font-weight: 600; }
.qr-impact.is-pos { color: var(--green); font-weight: 500; }
.qr-impact.is-final { color: var(--ink); font-weight: 600; }
.qr-foot { padding: 14px 24px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 14.5px; color: var(--muted); display: flex; gap: 18px; flex-wrap: wrap; }
.qr-foot .took { color: var(--ink); font-weight: 500; }

/* §4 Query examples */
.qx-card { border: 1px solid var(--line); background: var(--paper); }
.qx-head { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.qx-head .ttl { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.qx-head .sub { font-size: 15px; color: var(--muted); margin-top: 4px; }
.qx-cols { display: grid; grid-template-columns: 1fr 1fr; }
.qx-col { padding: 18px 0; border-right: 1px solid var(--line); }
.qx-col:last-child { border-right: 0; }
.qx-col-h { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); padding: 0 24px 14px; border-bottom: 1px solid var(--line-2); }
.qx-q { padding: 18px 24px; border-bottom: 1px solid var(--line-2); display: grid; grid-template-columns: 1fr; gap: 8px; }
.qx-q:last-child { border-bottom: 0; }
.qx-q .qt { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.qx-q .qf { font-size: 14px; color: var(--muted); line-height: 1.5; }
.qx-q .qf .filter { display: inline-block; background: var(--accent-soft); color: var(--accent-hover); padding: 1px 6px; border-radius: 3px; margin: 1px 2px 1px 0; font-family: var(--ff-mono); font-size: 13px; }
.qx-q .qu { font-size: 14.5px; color: var(--ink); line-height: 1.5; font-style: italic; }
.qx-q .qr-meta { font-size: 13.5px; color: var(--muted-2); display: flex; gap: 10px; align-items: center; padding-top: 2px; }
.qx-q .qr-meta::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); display: inline-block; }
.qx-foot { padding: 14px 24px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* §5 Time travel */
.tt-card { border: 1px solid var(--line); background: var(--paper); }
.tt-head { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.tt-head .ttl { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.tt-scrubber { padding: 32px 28px 22px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr 130px; gap: 24px; align-items: center; }
.tt-track-wrap { position: relative; padding-top: 60px; padding-bottom: 18px; }
.tt-callout { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-family: var(--ff-mono); font-feature-settings: 'tnum'; font-size: 14px; padding: 6px 12px; border-radius: 4px; white-space: nowrap; }
.tt-callout::after { content: ""; position: absolute; bottom: -5px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 8px; height: 8px; background: var(--ink); }
.tt-track { position: relative; height: 4px; background: var(--line); border-radius: 2px; }
.tt-track-fill { position: absolute; left: 0; top: 0; height: 100%; width: 50%; background: var(--accent); border-radius: 2px; }
.tt-mark { position: absolute; top: 50%; transform: translate(-50%, -50%); width: 7px; height: 7px; border-radius: 50%; background: var(--paper); border: 1.5px solid var(--muted-2); }
.tt-mark.is-passed { background: var(--accent); border-color: var(--accent); }
.tt-mark .lbl { position: absolute; top: 14px; left: 50%; transform: translateX(-50%); font-size: 12.5px; color: var(--muted-2); white-space: nowrap; font-family: var(--ff-mono); font-feature-settings: 'tnum'; }
.tt-handle { position: absolute; top: 50%; transform: translate(-50%, -50%) rotate(45deg); width: 18px; height: 18px; background: var(--accent); border: 2px solid var(--paper); box-shadow: 0 0 0 1px var(--accent); }
.tt-recon-btn { background: var(--ink); color: #fff; font-size: 15px; font-weight: 600; padding: 11px 18px; border-radius: 4px; }
.tt-cards { display: grid; grid-template-columns: 1fr 1fr; }
.tt-state { padding: 22px 24px 22px; border-right: 1px solid var(--line); position: relative; }
.tt-state:last-child { border-right: 0; }
.tt-state.is-historical { background: var(--accent-soft-2); }
.tt-state.is-historical::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: var(--accent); }
.tt-state .h { font-family: var(--ff-mono); font-size: 16px; font-weight: 500; color: var(--ink); }
.tt-state .h .lbl { font-family: var(--ff-body); font-weight: 700; color: var(--ink); }
.tt-state .sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.tt-kv { margin-top: 16px; }
.tt-kv .row { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: baseline; padding: 9px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; }
.tt-kv .row:last-child { border-bottom: 0; }
.tt-kv .k { color: var(--muted); }
.tt-kv .v { color: var(--ink); font-family: var(--ff-mono); font-feature-settings: 'tnum'; text-align: right; }
.tt-kv .v.is-neg { color: var(--red); }
.tt-kv .v .delta { color: var(--red); margin-left: 8px; font-weight: 500; }
.tt-foot { padding: 14px 24px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* §6 Completeness matrix */
.cm-card { border: 1px solid var(--line); background: var(--paper); }
.cm-head { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.cm-head .ttl { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.cm-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.cm-table thead th { padding: 12px 14px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted-2); background: var(--paper-2); border-bottom: 1px solid var(--line); text-align: center; }
.cm-table thead th.first { text-align: left; padding-left: 24px; width: 24%; }
.cm-table tbody td { padding: 14px 14px; border-bottom: 1px solid var(--line-2); text-align: center; color: var(--ink); font-family: var(--ff-mono); font-feature-settings: 'tnum'; font-size: 16px; line-height: 1.3; }
.cm-table tbody td.first { text-align: left; padding-left: 24px; font-family: var(--ff-body); color: var(--ink); font-weight: 500; }
.cm-table tbody tr:last-child td { border-bottom: 0; }
.cm-table .ck { color: var(--green); font-weight: 700; }
.cm-table .pt { color: var(--amber); font-weight: 700; font-size: 17px; }
.cm-table .dh { color: var(--muted-2); }
.cm-table tbody td .qual { display: block; font-size: 12.5px; color: var(--muted-2); font-family: var(--ff-body); margin-top: 2px; line-height: 1.3; font-feature-settings: normal; }
.cm-twocol { display: grid; grid-template-columns: 1fr 1fr; padding: 0; border-top: 1px solid var(--line); }
.cm-twocol .col { padding: 22px 24px; border-right: 1px solid var(--line); }
.cm-twocol .col:last-child { border-right: 0; }
.cm-twocol .col-h { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.cm-twocol .col p { font-size: 15px; color: var(--muted); line-height: 1.6; }
.cm-twocol .col p strong { color: var(--ink); font-weight: 500; }

/* §7 Defensibility — 3 cards */
.def-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.def-card { border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; min-height: 280px; }
.def-bar { height: 4px; background: var(--accent); }
.def-body { padding: 22px 22px 0; flex: 1; display: flex; flex-direction: column; }
.def-pill { display: inline-flex; align-self: flex-start; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-hover); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.def-card h3 { font-size: 17px; font-weight: 600; color: var(--ink); margin: 14px 0 12px; line-height: 1.3; }
.def-card .body { font-size: 15.5px; line-height: 1.6; color: var(--muted); flex: 1; }
.def-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 14px; color: var(--muted); font-family: var(--ff-mono); font-feature-settings: 'tnum'; line-height: 1.5; margin-top: 22px; }

/* §8 Dispute transcript */
.dt-card { border: 1px solid var(--line); background: var(--paper); }
.dt-head { padding: 18px 24px; border-bottom: 1px solid var(--line); }
.dt-head .ttl { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.dt-head .sub { font-size: 14.5px; color: var(--muted); margin-top: 4px; }
.dt-thread { padding: 24px 24px; display: flex; flex-direction: column; gap: 16px; background: var(--paper-2); }
.dt-msg { max-width: 540px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 8px; }
.dt-msg.is-client { background: var(--paper); align-self: flex-start; border-bottom-left-radius: 2px; }
.dt-msg.is-op { background: var(--accent-soft-2); border-color: rgba(176,141,87,0.25); align-self: flex-end; border-bottom-right-radius: 2px; }
.dt-msg .who { font-size: 13.5px; color: var(--muted-2); margin-bottom: 6px; line-height: 1.4; }
.dt-msg .who strong { color: var(--ink); font-weight: 600; }
.dt-msg .who .role { color: var(--muted-2); }
.dt-msg .who .ts { color: var(--muted-2); font-family: var(--ff-mono); font-feature-settings: 'tnum'; }
.dt-msg .text { font-size: 16px; color: var(--ink); line-height: 1.55; }
.dt-evidence { margin-top: 12px; padding: 12px 14px; border: 1px solid var(--accent); background: var(--paper); border-radius: 4px; position: relative; padding-left: 16px; }
.dt-evidence::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.dt-evidence .ev-h { font-family: var(--ff-mono); font-size: 14.5px; font-weight: 600; color: var(--ink); font-feature-settings: 'tnum'; }
.dt-evidence .ev-r { font-size: 14px; color: var(--ink); margin-top: 4px; line-height: 1.5; }
.dt-evidence .ev-meta { font-size: 13px; color: var(--accent-hover); font-weight: 500; margin-top: 4px; display: inline-flex; align-items: center; gap: 5px; }
.dt-evidence .ev-meta::before { content: "✓"; font-weight: 700; }
.dt-summary { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.dt-summary .col { padding: 22px 24px; border-right: 1px solid var(--line); }
.dt-summary .col:last-child { border-right: 0; }
.dt-summary .col-h { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 12px; }
.dt-summary .li { font-size: 15px; color: var(--ink); padding: 5px 0; line-height: 1.5; display: flex; align-items: baseline; gap: 8px; }
.dt-summary .li::before { content: "—"; color: var(--accent); flex: none; }
.dt-foot { padding: 16px 24px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 15px; color: var(--muted); line-height: 1.6; }
.dt-foot strong { color: var(--ink); font-weight: 500; }

/* §9 Compliance evidence */
.ce-card { border: 1px solid var(--line); background: var(--paper); }
.ce-head { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.ce-head .ttl { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.ce-head .frame { font-size: 15px; color: var(--ink); border: 1px solid var(--line); padding: 8px 14px; border-radius: 4px; background: var(--paper-2); display: inline-flex; align-items: center; gap: 10px; }
.ce-head .frame .caret { color: var(--muted-2); font-size: 12px; }
.ce-cols { display: grid; grid-template-columns: 0.95fr 1.55fr 1.1fr 0.85fr; }
.ce-col { padding: 22px 24px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.ce-col:last-child { border-right: 0; }
.ce-col .lab { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 6px; }
.ce-col .sel { font-family: var(--ff-mono); font-size: 16px; font-weight: 500; color: var(--ink); font-feature-settings: 'tnum'; line-height: 1.35; }
.ce-col .sub { font-size: 14px; color: var(--muted); line-height: 1.45; }
.ce-checklist { display: flex; flex-direction: column; gap: 4px; }
.ce-check { display: grid; grid-template-columns: 16px 1fr auto; gap: 10px; align-items: baseline; padding: 8px 0; font-size: 15px; border-bottom: 1px dashed var(--line-2); }
.ce-check:last-child { border-bottom: 0; }
.ce-check .ck { color: var(--green); font-weight: 700; }
.ce-check .nm { color: var(--ink); }
.ce-check .ct { font-family: var(--ff-mono); color: var(--muted); font-size: 14px; font-feature-settings: 'tnum'; white-space: nowrap; }
.ce-gen-btn { background: var(--accent); color: #fff; padding: 12px 16px; border-radius: 4px; font-size: 15px; font-weight: 600; text-align: center; cursor: pointer; border: 0; width: 100%; }
.ce-foot { padding: 14px 24px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* §10 Pattern detection */
.pd-card { border: 1px solid var(--line); background: var(--paper); }
.pd-head { padding: 18px 24px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pd-head .ttl { font-size: 16.5px; font-weight: 600; color: var(--ink); }
.pd-head .filters { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pd-chip { font-size: 14px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--paper); }
.pd-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.pd-row { display: grid; grid-template-columns: 14px 1fr 200px; gap: 18px; padding: 18px 24px; border-bottom: 1px solid var(--line-2); }
.pd-row:last-of-type { border-bottom: 0; }
.pd-sev { width: 10px; height: 10px; border-radius: 50%; margin-top: 6px; }
.pd-sev.is-amber { background: var(--amber); }
.pd-sev.is-blue { background: var(--blue); }
.pd-body { min-width: 0; }
.pd-body .ttl { font-size: 16px; font-weight: 600; color: var(--ink); line-height: 1.4; }
.pd-body .ev { font-size: 14.5px; color: var(--muted); margin-top: 5px; line-height: 1.55; }
.pd-rec { margin-top: 8px; padding: 8px 12px; background: var(--accent-soft-2); border-left: 2px solid var(--accent); font-size: 14.5px; color: var(--ink); line-height: 1.5; }
.pd-rec strong { color: var(--accent-hover); font-weight: 600; }
.pd-status { font-size: 14px; line-height: 1.5; padding-top: 2px; text-align: right; }
.pd-status .lab { font-weight: 700; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); display: block; margin-bottom: 3px; }
.pd-status .v { color: var(--ink); }
.pd-status .v.is-pending { color: var(--amber); font-weight: 500; }
.pd-status .v.is-reviewed { color: var(--green); font-weight: 500; }
.pd-status .sub { color: var(--muted); display: block; margin-top: 2px; font-size: 13.5px; }
.pd-foot { padding: 14px 24px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 14.5px; color: var(--muted); line-height: 1.55; }

/* Responsive */
@media (max-width: 1100px) {
  .qf-strip { grid-template-columns: 1fr 1fr; gap: 12px; padding: 14px 24px 18px; }
  .qf-cell { border-right: 0; padding: 0; }
  .qr-row { grid-template-columns: 100px 14px 1fr; gap: 10px; }
  .qr-rec, .qr-actor, .qr-impact { grid-column: 3; padding-top: 0; padding-left: 0; font-size: 13.5px; }
  .qr-rec { color: var(--muted-2); }
  .ce-cols { grid-template-columns: 1fr 1fr; }
  .ce-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .tt-cards { grid-template-columns: 1fr; }
  .tt-state { border-right: 0; border-bottom: 1px solid var(--line); }
  .tt-state:last-child { border-bottom: 0; }
}
@media (max-width: 1024px) {
  section { padding: 72px 0; }
  .s-cta-band { padding: 96px 0; }
  .problem-grid { gap: 40px; }
  .qx-cols { grid-template-columns: 1fr; }
  .qx-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .qx-col:last-child { border-bottom: 0; }
  .def-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; }
  .pd-row { grid-template-columns: 12px 1fr; }
  .pd-status { grid-column: 2; text-align: left; padding-top: 0; }
  .cm-twocol { grid-template-columns: 1fr; }
  .cm-twocol .col { border-right: 0; border-bottom: 1px solid var(--line); }
  .cm-twocol .col:last-child { border-bottom: 0; }
  .tt-scrubber { grid-template-columns: 1fr; }
  .cm-table { font-size: 14px; }
  .cm-table thead th, .cm-table tbody td { padding: 10px 8px; }
}
@media (max-width: 720px) {
  :root { --inner-pad: 20px; }
  .nav-list { display: none; }
  .nav-signin { display: none; }
  .cp-tabs { display: none; }
  .problem-grid { grid-template-columns: 1fr; }
  .compare-table th, .compare-table td { padding: 12px 10px; font-size: 14.5px; }
  .related-grid { grid-template-columns: 1fr; }
  .footer-links { grid-template-columns: 1fr 1fr; }
  .qf-strip { grid-template-columns: 1fr; }
  .dt-summary { grid-template-columns: 1fr; }
  .dt-summary .col { border-right: 0; border-bottom: 1px solid var(--line); }
  .dt-summary .col:last-child { border-bottom: 0; }
  .dt-msg { max-width: 100%; }
  .cp-headbar .actions { width: 100%; margin-left: 0; justify-content: flex-end; }
}

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