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

/* Pills */
.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; }
.pill .dot-sm { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.pill.is-amber { background: var(--amber-soft); color: var(--amber); border-color: rgba(217,119,6,0.25); }
.pill.is-red { background: var(--red-soft); color: var(--red); border-color: rgba(201,74,62,0.25); }
.pill.is-green { background: var(--green-soft); color: var(--green); border-color: rgba(47,122,77,0.2); }
.pill.is-blue { background: var(--blue-soft); color: var(--blue); border-color: rgba(59,94,165,0.25); }
.pill.is-gray { background: var(--gray-soft); color: var(--muted); }
.pill.is-gold { background: var(--accent-soft); color: var(--accent-hover); border-color: rgba(176,141,87,0.4); }

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

/* Inbox header */
.ix-head { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 16px 24px 14px; border-bottom: 1px solid var(--line); }
.ix-head .ttl { font-size: 16px; font-weight: 600; color: var(--ink); }
.ix-head .ttl .sep { color: var(--muted-2); margin: 0 8px; }
.ix-head .ttl .stat { color: var(--muted); font-weight: 400; }
.ix-head .filters { margin-left: auto; display: inline-flex; gap: 6px; flex-wrap: wrap; }
.ix-chip { font-size: 14px; padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--muted); background: var(--paper); }
.ix-chip.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }

/* Three-pane layout */
.ix-panes { display: grid; grid-template-columns: 28% 44% 28%; min-height: 720px; }
.ix-pane { padding: 0; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-width: 0; }
.ix-pane:last-child { border-right: 0; }

/* LEFT pane */
.lx-card { padding: 14px 16px; border-bottom: 1px solid var(--line-2); cursor: pointer; position: relative; min-height: 88px; display: flex; flex-direction: column; gap: 4px; }
.lx-card:last-child { border-bottom: 0; }
.lx-card.is-selected { background: var(--accent-soft-2); }
.lx-card.is-selected::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.lx-top { display: flex; align-items: center; gap: 8px; }
.lx-top .sev { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.lx-top .sev.is-red { background: var(--red); }
.lx-top .sev.is-amber { background: var(--amber); }
.lx-top .sev.is-blue { background: var(--blue); }
.lx-top .id { font-family: var(--ff-mono); font-size: 13.5px; font-weight: 500; color: var(--muted-2); font-feature-settings: 'tnum'; }
.lx-ttl { font-size: 15.5px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.lx-ctx { font-size: 14px; color: var(--muted); line-height: 1.4; }
.lx-bot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 2px; font-size: 13.5px; }
.lx-bot .var { font-family: var(--ff-mono); color: var(--ink); font-weight: 600; font-feature-settings: 'tnum'; }
.lx-bot .age { color: var(--muted-2); font-family: var(--ff-mono); font-feature-settings: 'tnum'; }

/* MIDDLE pane */
.mx-head { padding: 18px 22px 14px; border-bottom: 1px solid var(--line); }
.mx-id-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.mx-id { font-family: var(--ff-mono); font-size: 16px; font-weight: 500; color: var(--muted-2); font-feature-settings: 'tnum'; }
.mx-h { font-size: 19px; font-weight: 700; color: var(--ink); }
.mx-pill-hi { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.06em; padding: 3px 9px; background: var(--red-soft); color: var(--red); border-radius: 999px; border: 1px solid rgba(201,74,62,0.25); }
.mx-sub { margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.mx-sub .mono { color: var(--ink); font-weight: 500; }

.kv { padding: 4px 22px; }
.kv-row { display: grid; grid-template-columns: 160px 1fr; gap: 14px; padding: 11px 0; border-bottom: 1px dashed var(--line-2); font-size: 15px; align-items: baseline; }
.kv-row:last-child { border-bottom: 0; }
.kv-row .k { font-size: 13px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--muted-2); }
.kv-row .v { color: var(--ink); line-height: 1.45; }
.kv-row .v .em { color: var(--red); font-weight: 600; }
.kv-row .v .mono { font-family: var(--ff-mono); font-feature-settings: 'tnum'; }
.kv-row .v .sub { color: var(--muted); font-size: 14px; display: block; margin-top: 2px; }

.mx-sec-head { padding: 16px 22px 8px; font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); border-top: 1px solid var(--line); margin-top: 6px; }
.tl-row { display: grid; grid-template-columns: 70px 1fr 80px; gap: 14px; padding: 10px 22px; border-bottom: 1px dashed var(--line-2); font-size: 14.5px; align-items: baseline; }
.tl-row:last-child { border-bottom: 0; }
.tl-row .t { font-family: var(--ff-mono); font-feature-settings: 'tnum'; color: var(--ink); font-weight: 500; }
.tl-row .e { color: var(--ink); }
.tl-row .a { font-family: var(--ff-mono); font-feature-settings: 'tnum'; color: var(--muted-2); text-align: right; font-size: 13.5px; }

.mx-aff { margin: 16px 22px 22px; padding: 14px 16px; border: 1px solid var(--line); background: var(--paper-2); }
.mx-aff .ah { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.mx-aff .ah .id { font-family: var(--ff-mono); font-weight: 500; color: var(--muted-2); }
.mx-aff .ah .pill { font-size: 12.5px; font-weight: 700; padding: 2px 8px; background: var(--blue-soft); color: var(--blue); border-radius: 999px; }
.mx-aff .l { font-size: 14px; color: var(--muted); margin-top: 6px; line-height: 1.5; }
.mx-aff .l .mono { font-family: var(--ff-mono); font-feature-settings: 'tnum'; color: var(--ink); }

/* RIGHT pane */
.rx-head { padding: 18px 18px 8px; }
.rx-h { font-size: 16px; font-weight: 600; color: var(--ink); }
.rx-sub { font-size: 14px; color: var(--muted); margin-top: 4px; }
.rx-blocks { padding: 10px 18px 18px; display: flex; flex-direction: column; gap: 14px; }
.rx-block { padding: 14px 14px; border: 1px solid var(--line); background: var(--paper); position: relative; }
.rx-block.is-rec { background: var(--accent-soft-2); }
.rx-block.is-rec::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.rx-block .rec-tag { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-hover); margin-bottom: 8px; }
.rx-btn { width: 100%; font-family: inherit; font-size: 15px; font-weight: 600; padding: 10px 12px; border: 1px solid transparent; cursor: pointer; }
.rx-btn.is-primary { background: var(--accent); color: #fff; border-color: var(--accent); }
.rx-btn.is-primary:hover { background: var(--accent-hover); }
.rx-btn.is-danger { background: transparent; color: var(--red); border-color: var(--red); }
.rx-btn.is-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.rx-impact { margin-top: 10px; font-size: 14px; color: var(--ink); line-height: 1.5; }
.rx-impact .lab { color: var(--muted-2); font-weight: 600; font-size: 12.5px; letter-spacing: 0.08em; text-transform: uppercase; display: block; margin-bottom: 4px; }
.rx-impact .mono { font-family: var(--ff-mono); font-feature-settings: 'tnum'; color: var(--ink); }
.rx-meta { margin-top: 8px; font-size: 13.5px; color: var(--muted); line-height: 1.45; font-style: italic; }
.rx-foot { margin-top: 10px; padding: 12px 18px 18px; font-size: 13.5px; color: var(--muted); line-height: 1.5; border-top: 1px solid var(--line); background: var(--paper-2); }

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

/* TAXONOMY */
.tx-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.tx-card { border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; min-height: 280px; }
.tx-bar { height: 4px; background: var(--accent); }
.tx-body { padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.tx-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; }
.tx-ttl { font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.3; }
.tx-body-text { font-size: 15.5px; line-height: 1.55; color: var(--muted); flex: 1; }
.tx-ex { font-size: 14px; line-height: 1.5; color: var(--ink); padding: 10px 12px; background: var(--paper-2); border-left: 2px solid var(--accent); font-family: var(--ff-mono); font-feature-settings: 'tnum'; }

/* DETECTION */
.s-detect { background: var(--paper-2); }
.det-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 28px; }
.det-card { border: 1px solid var(--line); background: var(--paper); display: flex; flex-direction: column; min-height: 240px; }
.det-bar { height: 4px; background: var(--accent); }
.det-body { padding: 22px 22px 20px; flex: 1; display: flex; flex-direction: column; gap: 12px; }
.det-pill { display: inline-flex; align-self: flex-start; align-items: center; gap: 6px; font-size: 13px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-hover); background: var(--accent-soft); padding: 4px 10px; border-radius: 999px; }
.det-pill .lo { font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); }
.det-ttl { font-size: 17px; font-weight: 700; color: var(--ink); line-height: 1.35; }
.det-body-text { font-size: 15.5px; line-height: 1.55; color: var(--muted); flex: 1; }
.det-stat { font-size: 14px; color: var(--ink); padding: 10px 12px; background: var(--paper-2); border-top: 1px solid var(--line-2); margin: 6px -22px -20px; padding: 12px 22px; }
.det-stat .mono { font-family: var(--ff-mono); font-feature-settings: 'tnum'; font-weight: 600; }
.det-foot { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 760px; }

/* TRIAGE */
.s-triage { }
.tg-card { border: 1px solid var(--line); background: var(--paper); }
.tg-head { display: flex; justify-content: space-between; align-items: center; padding: 16px 22px; border-bottom: 1px solid var(--line); flex-wrap: wrap; gap: 12px; }
.tg-head .ttl { font-size: 16px; font-weight: 600; color: var(--ink); }
.tg-head .ttl .id { font-family: var(--ff-mono); font-weight: 500; color: var(--muted-2); }
.tg-pill { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 700; padding: 4px 11px; background: var(--red-soft); color: var(--red); border: 1px solid rgba(201,74,62,0.25); border-radius: 999px; }
.tg-pill .mono { font-family: var(--ff-mono); font-weight: 500; }
.tg-grid { display: grid; grid-template-columns: 1fr 1fr 1fr 1.3fr; }
.tg-col { padding: 22px 22px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; }
.tg-col:last-child { border-right: 0; }
.tg-col.is-output { background: var(--accent-soft-2); position: relative; }
.tg-col.is-output::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.tg-lab { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); }
.tg-num { font-family: var(--ff-mono); font-size: 32px; font-weight: 700; color: var(--ink); line-height: 1.05; font-feature-settings: 'tnum'; }
.tg-col.is-output .tg-num { color: var(--accent-hover); font-size: 40px; }
.tg-sub { font-size: 14.5px; color: var(--muted); line-height: 1.45; }
.tg-bar { height: 6px; background: var(--paper-2); border: 1px solid var(--line-2); position: relative; margin-top: 4px; }
.tg-bar .fill { position: absolute; left: 0; top: 0; bottom: 0; background: var(--red); }
.tg-bar.is-amber .fill { background: var(--amber); }
.tg-list { font-size: 14px; color: var(--ink); line-height: 1.55; font-family: var(--ff-mono); font-feature-settings: 'tnum'; }
.tg-list span { display: block; }
.tg-out-h { font-size: 17px; font-weight: 700; color: var(--ink); }
.tg-out-body { font-size: 14.5px; line-height: 1.55; color: var(--ink); }
.tg-out-body strong { font-weight: 600; }
.tg-foot { padding: 14px 22px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 14.5px; color: var(--muted); line-height: 1.5; }

/* ROUTING */
.s-route { background: var(--paper-2); }
.rt-card { border: 1px solid var(--line); background: var(--paper); }
.rt-head { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.rt-head .ttl { font-size: 16px; font-weight: 600; color: var(--ink); }
.rt-head .sub { font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.rt-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.rt-table th, .rt-table td { padding: 14px 22px; text-align: left; border-bottom: 1px solid var(--line-2); }
.rt-table 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); }
.rt-table tbody td { color: var(--ink); }
.rt-table tbody td.sev { font-weight: 600; }
.rt-table tbody td.sev .sd { display: inline-block; width: 8px; height: 8px; border-radius: 50%; vertical-align: middle; margin-right: 8px; }
.rt-table tbody td.sev .sd.is-red { background: var(--red); }
.rt-table tbody td.sev .sd.is-amber { background: var(--amber); }
.rt-table tbody td.sev .sd.is-blue { background: var(--blue); }
.rt-table tbody td.sev .sd.is-gray { background: var(--muted-3); }
.rt-table tbody tr:last-child td { border-bottom: 0; }
.rt-table tbody td.muted { color: var(--muted); }
.rt-quiet { padding: 18px 22px; border-top: 1px solid var(--line); background: var(--paper-2); }
.rt-quiet .qh { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.rt-q-row { display: grid; grid-template-columns: 220px 1fr; gap: 12px; padding: 6px 0; font-size: 14.5px; }
.rt-q-row .who { color: var(--ink); font-weight: 500; }
.rt-q-row .pref { color: var(--muted); }
.rt-foot { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 760px; margin-top: 28px; }

/* WORKFLOW */
.wf-card { border: 1px solid var(--line); background: var(--paper); }
.wf-head { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.wf-head .ttl { font-size: 16px; font-weight: 600; color: var(--ink); }
.wf-head .sub { font-size: 14.5px; color: var(--muted); margin-top: 3px; }
.wf-flow { padding: 36px 22px 28px; display: flex; align-items: stretch; gap: 12px; overflow-x: auto; }
.wf-step { flex: 1; min-width: 140px; max-width: 180px; border: 1px solid var(--line); padding: 14px 14px; background: var(--paper); display: flex; flex-direction: column; gap: 6px; min-height: 100px; }
.wf-step.is-emph { background: var(--accent-soft-2); border-color: var(--accent); position: relative; }
.wf-step .num { font-size: 12px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); }
.wf-step .nm { font-size: 15.5px; font-weight: 700; color: var(--ink); line-height: 1.25; }
.wf-step .sub { font-size: 13.5px; color: var(--muted); line-height: 1.4; }
.wf-arrow { display: flex; align-items: center; color: var(--muted-3); font-size: 17px; flex: 0 0 auto; }
.wf-cols { display: grid; grid-template-columns: 1fr 1fr; padding: 0 22px 22px; gap: 32px; }
.wf-col h4 { font-size: 14px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); margin-bottom: 14px; }
.wf-col ul { display: flex; flex-direction: column; gap: 8px; }
.wf-col li { font-size: 15px; color: var(--muted); line-height: 1.5; padding-left: 18px; position: relative; }
.wf-col li::before { content: ""; position: absolute; left: 0; top: 9px; width: 8px; height: 1px; background: var(--accent); }
.wf-foot { padding: 16px 22px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 15px; color: var(--muted); line-height: 1.55; }

/* LIFECYCLE timeline */
.s-life { background: var(--paper-2); }
.life-card { border: 1px solid var(--line); background: var(--paper); }
.life-head { padding: 16px 22px; border-bottom: 1px solid var(--line); }
.life-head .ttl { font-size: 16px; font-weight: 600; color: var(--ink); }
.life-svg-wrap { padding: 36px 22px 30px; }
.life-svg { width: 100%; height: auto; max-width: 1100px; margin: 0 auto; display: block; }
.life-cols { display: grid; grid-template-columns: 1fr 1fr 1fr; border-top: 1px solid var(--line); }
.life-col { padding: 22px 24px; border-right: 1px solid var(--line); }
.life-col:last-child { border-right: 0; }
.life-col .h { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 10px; }
.life-col .num { font-family: var(--ff-mono); font-size: 22px; font-weight: 700; color: var(--ink); line-height: 1.1; font-feature-settings: 'tnum'; }
.life-col .body { font-size: 14.5px; color: var(--muted); margin-top: 8px; line-height: 1.5; }
.life-col .body strong { color: var(--ink); font-weight: 600; }

/* PATTERNS */
.pt-card { border: 1px solid var(--line); background: var(--paper); }
.pt-head { padding: 16px 22px; border-bottom: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.pt-head .ttl { font-size: 16px; font-weight: 600; color: var(--ink); }
.pt-head .filters { display: inline-flex; gap: 6px; flex-wrap: wrap; }
.pt-row { display: grid; grid-template-columns: 14px 1fr 1.2fr 220px; gap: 18px; align-items: center; padding: 18px 22px; border-bottom: 1px solid var(--line-2); position: relative; }
.pt-row:last-child { border-bottom: 0; }
.pt-row.is-emph { background: var(--accent-soft-2); }
.pt-row.is-emph::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--accent); }
.pt-sev { width: 10px; height: 10px; border-radius: 50%; }
.pt-sev.is-red { background: var(--red); }
.pt-sev.is-amber { background: var(--amber); }
.pt-sev.is-blue { background: var(--blue); }
.pt-mid { min-width: 0; }
.pt-mid .ttl { font-size: 16px; font-weight: 700; color: var(--ink); line-height: 1.3; }
.pt-mid .ev { font-size: 14.5px; color: var(--muted); margin-top: 4px; line-height: 1.5; }
.pt-mid .ev .mono { font-family: var(--ff-mono); font-feature-settings: 'tnum'; }
.pt-rec { font-size: 14.5px; color: var(--ink); line-height: 1.5; padding: 10px 12px; background: var(--accent-soft); border-left: 2px solid var(--accent); }
.pt-rec .lab { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--accent-hover); display: block; margin-bottom: 3px; }
.pt-imp { text-align: right; }
.pt-imp .lab { font-size: 12.5px; font-weight: 700; letter-spacing: 0.08em; color: var(--muted-2); display: block; }
.pt-imp .v { font-family: var(--ff-mono); font-size: 16px; font-weight: 700; color: var(--ink); margin-top: 4px; font-feature-settings: 'tnum'; }
.pt-imp .w { font-size: 13.5px; color: var(--muted); margin-top: 2px; line-height: 1.4; }
.pt-foot { padding: 16px 22px; border-top: 1px solid var(--line); background: var(--paper-2); font-size: 15px; color: var(--muted); line-height: 1.55; }

/* COMPARE (re-using styles) */
.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; }

/* Responsive */
@media (max-width: 1180px) {
  .ix-panes { grid-template-columns: 1fr; }
  .ix-pane { border-right: 0; border-bottom: 1px solid var(--line); }
  .ix-pane:last-child { border-bottom: 0; }
}
@media (max-width: 1024px) {
  section { padding: 72px 0; }
  .s-cta-band { padding: 96px 0; }
  .problem-grid { gap: 40px; }
  .tx-grid { grid-template-columns: 1fr 1fr; }
  .det-grid { grid-template-columns: 1fr; }
  .tg-grid { grid-template-columns: 1fr 1fr; }
  .tg-col { border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
  .tg-col:nth-child(2n) { border-right: 0; }
  .wf-cols { grid-template-columns: 1fr; gap: 20px; }
  .pt-row { grid-template-columns: 14px 1fr; gap: 14px; }
  .pt-row > .pt-rec, .pt-row > .pt-imp { grid-column: 2 / -1; }
  .pt-imp { text-align: left; }
  .life-cols { grid-template-columns: 1fr; }
  .life-col { border-right: 0; border-bottom: 1px solid var(--line); }
  .life-col:last-child { border-bottom: 0; }
  .related-grid { grid-template-columns: 1fr 1fr; }
  .footer-links { grid-template-columns: repeat(3, 1fr); }
  .footer-top-inner { grid-template-columns: 1fr; }
  .rt-q-row { grid-template-columns: 1fr; gap: 2px; }
}
@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; }
  .tx-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; }
  .tg-grid { grid-template-columns: 1fr; }
  .tg-col { border-right: 0 !important; }
  .kv-row { grid-template-columns: 1fr; gap: 4px; }
  .tl-row { grid-template-columns: 60px 1fr; }
  .tl-row .a { display: none; }
}

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