/* ============================================================
   /solutions/importers-distributors  ·  page-scoped styles
   Design tokens inherited from homepage + product.css conventions.
   DM Sans only. Light theme, warm palette.
   ============================================================ */

:root {
  --ink: #0F1923;
  --ink-2: #1a2534;
  --muted: #525252;
  --muted-2: #6B7A8A;
  --muted-3: #8a98a8;
  --line: #E5E5E5;
  --line-2: #ECECEC;
  --line-3: #F2F2F2;
  --paper: #FFFFFF;
  --paper-2: #FAFAFA;
  --paper-3: #F5F5F5;
  --accent: #B08D57;
  --accent-hover: #8F6F3E;
  --accent-soft: #F7F1E6;
  --accent-soft-2: #FBF7F0;
  --green: #2F7A4D;
  --green-soft: #E8F5EE;
  --red: #C94A3E;
  --red-soft: #FEF2F2;
  --blue: #3B5EA5;
  --blue-soft: #EEF2F8;
  --amber: #D97706;
  --amber-soft: #FFFBEB;
  --finance: #2D5A66;
  --finance-soft: #EEF4F5;
  --ff-body: 'DM Sans', system-ui, -apple-system, Segoe UI, sans-serif;
  --ff-mono: 'DM Sans', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --max-w: 1280px;
  --inner-pad: 32px;
  --ease-smooth: cubic-bezier(0.2, 0.8, 0.2, 1);
}

/* ───── Reset ───── */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--ff-body); color: var(--ink); background: var(--paper);
  line-height: 1.5; text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale;
}
img, svg { display: block; max-width: 100%; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; line-height: 1.1; font-weight: 600; }
p { margin: 0; }

/* ───── Typography ───── */
.display   { font-weight: 600; letter-spacing: -0.03em; line-height: 1.05; color: var(--ink); }
.heading   { font-weight: 600; letter-spacing: -0.01em; line-height: 1.2; color: var(--ink); }
.eyebrow   { font-size: 15px; font-weight: 500; letter-spacing: 0.1em; text-transform: uppercase; color: var(--accent); }
.lede      { font-size: 18px; line-height: 1.6; color: var(--muted); }
.mono      { font-family: var(--ff-mono); font-feature-settings: 'tnum'; }
.h-display   { font-size: clamp(48px, 5.2vw, 76px); }
.h-section   { font-size: clamp(40px, 4.2vw, 60px); }
.h-section-sm{ font-size: clamp(36px, 3.8vw, 52px); }
.h-card      { font-size: 22px; }

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

/* ───── Section heads ───── */
.head { max-width: 920px; margin: 0 auto 64px; text-align: left; }
.head--narrow { max-width: 760px; }
.head .eyebrow { margin-bottom: 14px; }
.head .heading { margin-bottom: 24px; }

/* ───── Buttons + links ───── */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  border-radius: 0; padding: 10px 20px; font-size: 17px; font-weight: 500;
  transition: background 0.15s, color 0.15s, border 0.15s;
  cursor: pointer; text-decoration: none; line-height: 1;
}
.btn-lg { padding: 14px 28px; font-size: 17px; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { background: var(--ink-2); }
.btn-accent-dark-on { background: var(--accent); color: #fff; }
.btn-accent-dark-on:hover { background: var(--accent-hover); }
.btn-ghost-inv { color: #fff; border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost-inv:hover { background: rgba(255,255,255,0.08); }
.txt-link { color: var(--accent); font-weight: 500; }
.txt-link:hover { color: var(--accent-hover); }

/* ============================================================
   1 · HERO
   ============================================================ */
.s-hero { padding-top: 120px; padding-bottom: 64px; text-align: center; }
.hero-eyebrow { margin-bottom: 24px; }
.hero-h1 { max-width: 860px; margin: 0 auto 28px; }
.hero-lede { max-width: 760px; margin: 0 auto 36px; }
.hero-cta { display: flex; justify-content: center; align-items: center; gap: 24px; flex-wrap: wrap; }

/* ============================================================
   2 · CENTERPIECE — multi-supplier importer cockpit
   ============================================================ */
.s-centerpiece { padding-top: 32px; padding-bottom: 96px; }
.centerpiece-frame {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0,0,0,0.04);
}
.cp-topnav {
  display: flex; align-items: center; gap: 24px;
  padding: 14px 20px; border-bottom: 1px solid var(--line);
  background: var(--paper-2);
  font-size: 15px;
}
.cp-brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.cp-brand .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }
.cp-tabs { display: flex; gap: 18px; }
.cp-tab { color: var(--muted); padding: 4px 0; }
.cp-tab.is-active { color: var(--ink); border-bottom: 2px solid var(--accent); padding-bottom: 2px; }
.cp-toolbar-spacer { flex: 1; }
.cp-toolbar-right { display: flex; align-items: center; gap: 16px; color: var(--muted); }
.cp-avatar {
  width: 28px; height: 28px; border-radius: 50%; background: var(--accent-soft);
  color: var(--accent); display: inline-flex; align-items: center; justify-content: center;
  font-size: 13px; font-weight: 600;
}
.cp-body { padding: 28px; }
.cp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; margin-bottom: 24px; flex-wrap: wrap; }
.cp-eyebrow { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); margin-bottom: 8px; }
.cp-title { font-size: 22px; font-weight: 600; letter-spacing: -0.01em; }
.cp-pill-group { display: flex; gap: 6px; padding: 4px; background: var(--paper-3); border-radius: 0; }
.cp-pill { padding: 6px 14px; font-size: 15px; color: var(--muted); border-radius: 0; }
.cp-pill.is-on { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,0.05); }
.cp-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 16px; grid-auto-flow: dense; }
.cp-card {
  background: var(--paper); border: 1px solid var(--line); padding: 20px;
}
.cp-card--xl { grid-column: span 2; grid-row: span 2; }
.cp-card--wide { grid-column: span 3; }
.cp-card-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 14px; }
.cp-card-eyebrow { font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted-2); font-weight: 500; }
.cp-card-meta { font-size: 13px; color: var(--muted-2); }
.cp-stat { font-size: 32px; font-weight: 600; letter-spacing: -0.02em; line-height: 1; margin-bottom: 6px; font-feature-settings: 'tnum'; }
.cp-stat-meta { font-size: 15px; color: var(--muted); }
.cp-delta { font-weight: 500; font-feature-settings: 'tnum'; }
.cp-delta--up { color: var(--green); }
.cp-delta--dn { color: var(--red); }
.cp-spark { width: 100%; margin-top: 14px; }
.cp-bar-group { margin-top: 14px; }
.cp-bar { display: block; height: 6px; background: var(--line-3); border-radius: 0; overflow: hidden; }
.cp-bar > span { display: block; height: 100%; background: var(--finance); border-radius: 0; }
.cp-bar-meta { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted-2); margin-top: 6px; font-feature-settings: 'tnum'; }

/* exception list */
.cp-exc-list { display: flex; flex-direction: column; gap: 12px; }
.cp-exc {
  display: grid; grid-template-columns: auto 1fr auto; gap: 14px; align-items: start;
  padding: 14px; border: 1px solid var(--line-2); border-radius: 0;
  background: var(--paper-2);
}
.cp-exc-sev {
  font-size: 12px; font-weight: 600; padding: 4px 8px; border-radius: 0;
  letter-spacing: 0.06em; line-height: 1; align-self: center;
}
.cp-exc-sev--high { background: var(--red-soft); color: var(--red); }
.cp-exc-sev--med  { background: var(--amber-soft); color: var(--amber); }
.cp-exc-sev--low  { background: var(--blue-soft); color: var(--blue); }
.cp-exc-title { font-size: 16px; font-weight: 500; line-height: 1.35; margin-bottom: 4px; }
.cp-exc-meta { font-size: 14px; color: var(--muted); line-height: 1.4; }
.cp-exc-action {
  font-size: 14px; color: var(--accent); font-weight: 500;
  align-self: center; padding: 4px 8px; white-space: nowrap;
}
.cp-exc-action:hover { color: var(--accent-hover); }

/* portfolio map (SVG-based) */
.cp-card--map { padding: 20px; }
.cp-map { width: 100%; height: auto; display: block; margin-top: 12px; }

/* ============================================================
   3 · PROBLEM
   ============================================================ */
.problem-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.problem-card {
  border-top: 2px solid var(--ink);
  padding-top: 24px;
}
.problem-num {
  font-size: 15px; color: var(--accent); font-weight: 500; margin-bottom: 16px; letter-spacing: 0.06em;
}
.problem-card .heading { font-size: 22px; margin-bottom: 14px; line-height: 1.25; }
.problem-card p { font-size: 17px; line-height: 1.6; color: var(--muted); }

/* ============================================================
   4 · WORKSPACE — supplier table
   ============================================================ */
.supplier-table-frame {
  border: 1px solid var(--line); overflow: hidden;
  background: var(--paper);
}
.st-head, .st-row {
  display: grid;
  grid-template-columns: 2fr 1.2fr 1fr 1.2fr 1.4fr;
  align-items: center;
  padding: 16px 20px;
}
.st-head {
  background: var(--paper-2);
  border-bottom: 1px solid var(--line);
  font-size: 13px; letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 500;
}
.st-row {
  border-top: 1px solid var(--line-2);
  font-size: 16px;
}
.st-row:first-child { border-top: 0; }
.st-cell { padding-right: 16px; }
.st-cell--name { display: flex; flex-direction: column; gap: 2px; }
.st-name { font-weight: 500; }
.st-meta { font-size: 14px; color: var(--muted); }
.st-var { display: inline-block; padding: 2px 6px; border-radius: 0; font-size: 13px; margin-left: 4px; font-feature-settings: 'tnum'; }
.st-var--low { background: var(--green-soft); color: var(--green); }
.st-var--med { background: var(--amber-soft); color: var(--amber); }
.st-var--high { background: var(--red-soft); color: var(--red); }
.st-bar { display: inline-block; height: 6px; width: 100px; background: var(--line-3); border-radius: 0; overflow: hidden; vertical-align: middle; margin-right: 8px; }
.st-bar > span { display: block; height: 100%; border-radius: 0; }
.st-bar-val { font-size: 14px; color: var(--muted); }
.st-cell--rating { display: flex; flex-direction: column; gap: 2px; }
.st-stars { color: var(--accent); letter-spacing: 0.05em; font-size: 15px; }
.st-cell--rating .mono { font-size: 13px; color: var(--muted); }

/* ============================================================
   5 · ECONOMICS — margin breakdown + supplier compare
   ============================================================ */
.econ-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.econ-card {
  background: var(--paper); border: 1px solid var(--line); padding: 28px;
}
.econ-card-eyebrow {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--muted-2); font-weight: 500; margin-bottom: 8px;
}
.econ-card .heading { margin-bottom: 6px; }
.econ-card-meta { font-size: 15px; color: var(--muted); margin-bottom: 22px; }
.econ-stack { display: flex; flex-direction: column; gap: 10px; }
.econ-line {
  display: grid; grid-template-columns: 110px 1fr 180px;
  gap: 14px; align-items: center; font-size: 15px;
}
.econ-line-label { color: var(--ink); }
.econ-line-bar { height: 18px; background: var(--line-3); border-radius: 0; overflow: hidden; }
.econ-line-bar > span { display: block; height: 100%; border-radius: 0; }
.econ-line-val { text-align: right; color: var(--ink); font-feature-settings: 'tnum'; }
.econ-line--margin { border-top: 1px solid var(--line); padding-top: 12px; margin-top: 6px; font-weight: 500; }
.state {
  display: inline-block; font-size: 12px; padding: 2px 6px; border-radius: 0;
  margin-left: 6px; letter-spacing: 0.04em; font-weight: 500; text-transform: uppercase;
}
.state--actual { background: var(--green-soft); color: var(--green); }
.state--est { background: var(--amber-soft); color: var(--amber); }
.compare-rows { display: flex; flex-direction: column; gap: 10px; }
.compare-row { display: grid; grid-template-columns: 180px 1fr 180px; gap: 14px; align-items: center; font-size: 15px; }
.compare-supplier { color: var(--ink); font-weight: 500; font-size: 15px; }
.compare-bar { height: 18px; background: var(--line-3); border-radius: 0; overflow: hidden; }
.compare-bar > span { display: block; height: 100%; border-radius: 0; }
.compare-val { text-align: right; color: var(--ink); font-feature-settings: 'tnum'; }
.compare-row--bench { padding-top: 10px; border-top: 1px solid var(--line); margin-top: 6px; }
.compare-row--bench .compare-supplier { color: var(--muted); font-style: italic; }
.econ-takeaway {
  margin-top: 18px; padding: 14px 16px; border-left: 2px solid var(--accent);
  background: var(--accent-soft-2); border-radius: 0;
  font-size: 16px; color: var(--ink); line-height: 1.5;
}

/* ============================================================
   6 · DOCUMENT CHAIN
   ============================================================ */
.dc-grid { display: flex; flex-direction: column; gap: 8px; max-width: 1100px; }
.dc-row {
  display: grid; grid-template-columns: 1fr auto auto;
  gap: 28px; align-items: center;
  padding: 14px 18px; background: var(--paper);
  border: 1px solid var(--line-2); border-radius: 0;
}
.dc-row--head {
  background: transparent; border: 0; padding: 0 18px 4px;
}
.dc-col {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 20px;
  font-size: 12px; font-weight: 500; letter-spacing: 0.06em;
  color: var(--muted-2); text-transform: uppercase;
  cursor: help;
}
.dc-codes {
  margin-top: 18px; font-size: 13px; color: var(--muted);
  display: flex; flex-wrap: wrap; gap: 16px 24px; max-width: 900px;
}
.dc-codes strong {
  font-weight: 600; color: var(--ink); margin-right: 4px;
}
.dc-supplier { font-size: 16px; font-weight: 500; }
.dc-cells { display: inline-flex; gap: 4px; }
.dc-cell {
  display: inline-flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: 0;
  font-size: 13px; font-weight: 500; letter-spacing: 0.04em;
}
.dc-cell--ok   { background: var(--green-soft); color: var(--green); }
.dc-cell--pend { background: var(--amber-soft); color: var(--amber); }
.dc-cell--miss { background: var(--paper-3); color: var(--muted-3); }
.dc-status { font-size: 14px; color: var(--muted); white-space: nowrap; min-width: 130px; text-align: right; }
.dc-status--alert { color: var(--red); font-weight: 500; }
.dc-status--early { color: var(--muted-2); }
.dc-legend {
  margin-top: 24px; font-size: 13px; color: var(--muted-2);
  display: flex; gap: 6px; flex-wrap: wrap; align-items: center;
}
.dc-key { display: inline-block; width: 12px; height: 12px; border-radius: 0; vertical-align: middle; margin-right: 4px; margin-left: 8px; }
.dc-key--ok   { background: var(--green-soft); }
.dc-key--pend { background: var(--amber-soft); }
.dc-key--miss { background: var(--paper-3); }

/* ============================================================
   7 · CAPITAL — light bg matching site convention
   ============================================================ */
.capital-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; max-width: 1100px; }
.capital-card {
  padding: 32px;
  background: var(--paper);
  border: 1px solid var(--line);
}
.capital-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; border-radius: 0;
  background: var(--accent-soft); color: var(--accent);
  margin-bottom: 18px;
}
.capital-card .heading { color: var(--ink); margin-bottom: 10px; font-size: 22px; }
.capital-card p { color: var(--muted); font-size: 16px; line-height: 1.6; }

/* ============================================================
   8 · NETWORK — SVG graph (light frame, matches deep-dive diagram chrome)
   ============================================================ */
.net-frame {
  margin-top: 24px;
  overflow-x: auto;
}
.net-svg { width: 100%; min-width: 900px; height: auto; display: block; }

/* ============================================================
   9 · CASCADE — canonical 3-column hybrid (matches shipment-tracking)
   ============================================================ */
.cascade-frame {
  padding: 40px 32px;
  background: var(--paper-2);
  border: 1px solid var(--line);
  max-width: 1100px;
}
.cascade-foot { font-size: 18px; line-height: 1.6; color: var(--muted); max-width: 760px; margin-top: 32px; }
.cascade-grid {
  display: grid;
  grid-template-columns: 240px 56px 1fr;
  gap: 16px;
  align-items: stretch;
}
.cascade-source {
  background: var(--amber-soft);
  border: 1px solid rgba(217,119,6,0.2);
  border-radius: 0;
  padding: 20px;
  align-self: start;
}
.cascade-source .src-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--amber); margin-bottom: 10px;
}
.cascade-source .src-title {
  font-size: 17px; font-weight: 600; color: var(--ink); line-height: 1.3;
  font-feature-settings: 'tnum';
}
.cascade-source .src-meta {
  font-size: 15px; color: var(--muted); margin-top: 6px; line-height: 1.5;
}
.cascade-source .src-sub {
  display: inline-block; font-size: 13px; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--amber); margin-top: 14px;
}
.cascade-connectors { height: 100%; position: relative; }
.cascade-connectors svg { width: 100%; height: 100%; display: block; }

.cascade-effects { display: grid; gap: 10px; }
.cascade-effect {
  background: var(--paper); border: 1px solid var(--line);
  border-radius: 0;
  padding: 16px 20px;
  display: flex; justify-content: space-between; align-items: center;
  gap: 16px;
}
.cascade-effect .ef-eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--accent); margin-bottom: 6px;
}
.cascade-effect .ef-body {
  font-size: 15px; color: var(--muted); line-height: 1.45;
  max-width: 540px;
}
.cascade-effect .ef-tag {
  font-family: var(--ff-mono); font-feature-settings: 'tnum';
  font-size: 14px; color: var(--muted-2); white-space: nowrap;
  padding: 4px 10px; background: var(--paper-3); border-radius: 0;
}

/* ============================================================
   10 · COMPARE TABLE — canonical HTML <table> (matches audit-trail)
   ============================================================ */
.compare-head { max-width: 920px; margin: 0 auto 48px; }
.compare-head .eyebrow { margin-bottom: 14px; }
.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: 30%; 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 .em { color: var(--ink); font-style: normal; font-weight: 500; }
.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; }

/* ============================================================
   12 · CTA BAND
   ============================================================ */
.s-cta-band {
  background: var(--ink); color: #fff;
  padding: 96px 0;
  text-align: center;
}
.h2-band {
  font-size: clamp(36px, 3.8vw, 52px);
  font-weight: 600; letter-spacing: -0.02em;
  line-height: 1.1; margin-bottom: 18px;
}
.s-cta-band > .wrap > p:not(.cta) {
  max-width: 700px; margin: 0 auto 32px;
  font-size: 17px; line-height: 1.6;
  color: rgba(255,255,255,0.78);
}
.s-cta-band .cta { display: flex; align-items: center; justify-content: center; gap: 16px; flex-wrap: wrap; }

/* ============================================================
   13 · RELATED
   ============================================================ */
.s-related .eyebrow { margin-bottom: 32px; }
.related-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px;
  margin-bottom: 32px;
}
.related-card {
  display: block; padding: 28px; background: var(--paper-2);
  border: 1px solid var(--line);
  transition: border-color 0.15s, transform 0.15s;
  text-decoration: none; color: var(--ink);
}
.related-card:hover { border-color: var(--accent); transform: translateY(-2px); }
.related-card-eyebrow {
  font-size: 13px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--accent); font-weight: 500; margin-bottom: 10px;
}
.related-card .heading { font-size: 21px; margin-bottom: 10px; line-height: 1.3; }
.related-card p { font-size: 16px; line-height: 1.55; color: var(--muted); margin-bottom: 14px; }
.related-card-cta { font-size: 15px; color: var(--accent); font-weight: 500; }
.related-back { font-size: 16px; color: var(--muted); }
.related-back a:hover { color: var(--accent); }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .cp-grid { grid-template-columns: 1fr 1fr; }
  .cp-card--xl { grid-column: span 2; }
  .cp-card--wide { grid-column: span 2; }
  .problem-grid { grid-template-columns: 1fr; }
  .capital-grid { grid-template-columns: 1fr; }
  .econ-grid { grid-template-columns: 1fr; }
  .related-grid { grid-template-columns: 1fr; }
  .cascade-grid { grid-template-columns: 1fr; gap: 16px; }
  .cascade-connectors { display: none; }
}

@media (max-width: 720px) {
  section { padding: 64px 0; }
  .cp-grid { grid-template-columns: 1fr; }
  .cp-card--xl, .cp-card--wide { grid-column: span 1; }
  .st-head { display: none; }
  .st-head, .st-row { grid-template-columns: 1fr; }
  .st-row { gap: 6px; padding: 16px; }
  .st-cell { padding-right: 0; }
  .compare-row, .econ-line { grid-template-columns: 1fr; gap: 6px; }
  .compare-bar, .econ-line-bar { width: 100%; }
  .compare-val, .econ-line-val { text-align: left; }
  .dc-row { grid-template-columns: 1fr; gap: 12px; }
  .dc-cells { flex-wrap: wrap; }
  .dc-status { text-align: left; }
  .compare-table th, .compare-table td { padding: 12px 10px; font-size: 14.5px; }
  .cascade-effect { flex-direction: column; align-items: flex-start; gap: 8px; }

  /* Exception list rows on mobile: body full-width on top,
     severity pill bottom-left, action button bottom-right */
  .cp-exc {
    grid-template-columns: auto 1fr;
    grid-template-areas:
      "body   body"
      "sev    action";
    row-gap: 12px;
    column-gap: 12px;
  }
  .cp-exc .cp-exc-body { grid-area: body; }
  .cp-exc .cp-exc-sev { grid-area: sev; justify-self: start; }
  .cp-exc .cp-exc-action { grid-area: action; justify-self: end; padding-right: 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; }
}
