/* Margin Ruler v10_p0 — platform-aware ecommerce margin diagnostics
 * Reference-data visual register: light surface, IBM Plex family with
 * strong fallbacks, single accent, monospace for all numerical values.
 * No bundled font payload, no third-party CDN — system fallbacks only.
 */
:root{
  /* ─── color tokens ─── */
  --surface:#ffffff;
  --page:#f8fafc;
  --ink:#0f172a;
  --ink-strong:#020617;
  --muted:#475569;
  --faint:#64748b;
  --line:#d9e2ec;
  --line-soft:#e8eef5;
  --line-strong:#cbd5e1;
  --accent:#1d4ed8;
  --accent-soft:#eff6ff;
  --good:#166534;
  --warn:#92400e;
  --bad:#991b1b;
  --bg-panel:#fbfdff;
  --bg-strong:#f1f5f9;
  --bg-code:#f8fafc;

  /* ─── typography (no bundled fonts, no CDN; system fallbacks only) ─── */
  --sans: "IBM Plex Sans", Inter, "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
  --serif: "IBM Plex Serif", Georgia, "Iowan Old Style", "Times New Roman", serif;
  --mono: "IBM Plex Mono", "Roboto Mono", "JetBrains Mono", "SFMono-Regular", Consolas, "Liberation Mono", "Courier New", monospace;

  /* ─── radii ─── */
  --r-sm:3px;
  --r-md:8px;
  --r-lg:12px;
}

*{box-sizing:border-box}
html{ -webkit-text-size-adjust:100%; text-size-adjust:100%; }
html,body{height:100%}
body{
  margin:0;
  color:var(--ink);
  background:var(--page);
  font-family:var(--sans);
  font-size:15px;
  line-height:1.5;
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
a{color:var(--accent); text-decoration:underline; text-underline-offset:2px}
a:hover{text-decoration-thickness:2px}

.container{
  max-width:1180px;
  margin:0 auto;
  background:var(--surface);
  min-height:100vh;
  border-left:1px solid var(--line-soft);
  border-right:1px solid var(--line-soft);
}

/* ─── topbar ─── */
.topbar{
  display:grid;
  grid-template-columns: 1fr auto;
  gap:24px;
  align-items:center;
  padding:18px 28px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
}
.brand{ display:flex; gap:14px; align-items:baseline; min-width:0 }
.brand .logo{
  font-family:var(--mono);
  font-size:13px;
  letter-spacing:.04em;
  color:var(--accent);
  font-weight:700;
}
.brandname{
  font-weight:700;
  letter-spacing:-.02em;
  font-size:15px;
}
.sub{
  font-size:13px;
  color:var(--muted);
  margin-top:0;
  white-space:nowrap;
  overflow:hidden;
  text-overflow:ellipsis;
}
.nav{
  display:flex;
  gap:18px;
  font-size:13px;
  white-space:nowrap;
  align-items:center;
}
.nav a{ color:var(--ink); text-decoration:none }
.nav a:hover{ color:var(--accent); text-decoration:underline }

/* legacy .pill kept for surfaces that still emit them; restyled as plain inline links */
.pill{
  font-size:13px;
  color:var(--ink);
  text-decoration:none;
  padding:0;
  background:transparent;
  border:none;
  border-radius:0;
}
.pill:hover{ color:var(--accent); text-decoration:underline }

/* ─── safety strip (utility row beneath topbar) ─── */
.safety-strip{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  padding:10px 28px;
  border-bottom:1px solid var(--line-soft);
  font-size:12px;
  color:var(--muted);
  background:var(--bg-panel);
}
.safety-strip > span::before{
  content:"";
  display:inline-block;
  width:5px;
  height:5px;
  border-radius:50%;
  background:var(--accent);
  margin-right:8px;
  vertical-align:middle;
}

/* ─── hero ─── */
.hero{
  padding:34px 28px 24px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
}
.hero .eyebrow{
  font-size:12px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.08em;
  margin-bottom:12px;
  font-weight:700;
}
.hero h1{
  margin:0;
  font-family:var(--sans);
  font-size:36px;
  line-height:1.08;
  letter-spacing:-.035em;
  max-width:820px;
  color:var(--ink-strong);
  font-weight:750;
}
.hero p{
  max-width:850px;
  margin:14px 0 0;
  color:#334155;
  font-size:17px;
  line-height:1.5;
}
.hero p.note{
  font-size:12px;
  color:var(--muted);
  margin-top:16px;
  max-width:780px;
}
.hero p.note .mono{ font-family:var(--mono); font-size:12px }

/* ─── section ─── */
.section{
  padding:28px;
  border-bottom:1px solid var(--line);
  background:var(--surface);
}
.section-head{
  display:flex;
  justify-content:space-between;
  gap:20px;
  align-items:flex-end;
  margin-bottom:14px;
}
h2{
  font-size:20px;
  letter-spacing:-.02em;
  margin:0;
  color:var(--ink-strong);
  font-family:var(--sans);
  font-weight:600;
}
.section-caption,
.caption{
  margin:4px 0 0;
  color:var(--muted);
  font-size:13px;
  max-width:760px;
  line-height:1.55;
}

/* ─── tables ─── */
table{
  width:100%;
  border-collapse:collapse;
  background:var(--surface);
  font-size:13px;
}
th{
  text-align:left;
  color:var(--muted);
  font-size:11px;
  letter-spacing:.07em;
  text-transform:uppercase;
  font-weight:700;
  border-bottom:1px solid var(--line);
  padding:10px;
  background:var(--bg-panel);
}
td{
  border-bottom:1px solid var(--line-soft);
  padding:11px 10px;
  vertical-align:top;
  color:var(--ink);
}
td.num, th.num{
  text-align:right;
  font-family:var(--mono);
  white-space:nowrap;
}
.mono{ font-family:var(--mono) }
.status-active{ font-family:var(--mono); font-size:12px; color:var(--good) }
.status-planned{ font-family:var(--mono); font-size:12px; color:var(--faint) }
.status-warn{ font-family:var(--mono); font-size:12px; color:var(--warn) }
.status-bad{ font-family:var(--mono); font-size:12px; color:var(--bad) }

/* ─── three-column reference layout (methodology pages) ─── */
.reference-layout{
  display:grid;
  grid-template-columns: 178px minmax(0,1fr) 316px;
  gap:0;
  background:var(--surface);
}
.rail{
  border-right:1px solid var(--line);
  padding:24px 18px;
  background:var(--bg-panel);
}
.rail h4{
  font-size:11px;
  color:var(--muted);
  letter-spacing:.08em;
  text-transform:uppercase;
  margin:0 0 10px;
  font-weight:700;
}
.rail a{
  display:block;
  color:var(--ink);
  font-size:13px;
  margin:8px 0;
  text-decoration:none;
}
.rail a:hover{ color:var(--accent); text-decoration:underline }
.rail a.planned{ color:var(--faint); font-style:italic }
.doc{ padding:24px 28px }
.doc h2{
  font-size:24px;
  font-family:var(--serif);
  margin:0 0 8px;
  color:var(--ink-strong);
  font-weight:600;
  letter-spacing:-.02em;
}
.doc p{
  font-size:14px;
  color:#334155;
  max-width:650px;
  margin:0 0 14px;
}
.doc .formula{
  font-family:var(--mono);
  background:var(--bg-code);
  border:1px solid var(--line);
  padding:14px;
  font-size:12px;
  line-height:1.5;
  overflow:auto;
  margin:14px 0;
  white-space:pre-wrap;
  color:var(--ink);
}
.sticky-panel{
  border-left:1px solid var(--line);
  background:var(--surface);
  padding:24px 18px;
}
.sticky-panel h3{
  font-size:14px;
  font-family:var(--sans);
  margin:0 0 12px;
  color:var(--ink-strong);
  font-weight:600;
}

/* ─── KPI tiles ─── */
.kpi-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  border:1px solid var(--line);
  border-right:0;
  margin:14px 0 18px;
  background:var(--surface);
}
.kpi{
  padding:16px;
  border-right:1px solid var(--line);
  background:var(--surface);
}
.kpi-label{
  font-size:11px;
  color:var(--muted);
  text-transform:uppercase;
  letter-spacing:.07em;
  font-weight:700;
}
.kpi-value{
  font-family:var(--mono);
  font-size:24px;
  margin-top:6px;
  letter-spacing:-.03em;
  color:var(--ink-strong);
}
.kpi-sub{
  font-size:12px;
  color:var(--muted);
  margin-top:4px;
}

/* ─── footer ─── */
.footer{
  margin:0;
  padding:18px 28px;
  color:var(--muted);
  font-size:12px;
  border-top:1px solid var(--line);
  background:var(--surface);
  line-height:1.6;
}
.footer a{ color:var(--muted); text-decoration:underline }
.footer a:hover{ color:var(--accent) }

/* ──────────────────────────────────────────────────────────────────────
 * Widget surface (calculator iframe content). Class names below are
 * used by widgetHtml() and inline-handler scripts; they remain stable.
 * Visual register restyled to match v10 light/reference look.
 * ──────────────────────────────────────────────────────────────────── */
body.widget{
  background:var(--surface);
  color:var(--ink);
}
body.widget .container{
  max-width:none;
  border:none;
  padding:16px;
  background:var(--surface);
  min-height:auto;
}
body.widget .topbar{
  padding:8px 0 18px;
  margin-bottom:16px;
  border-bottom:1px solid var(--line);
}
body.widget .brand{ align-items:flex-start; gap:12px }
body.widget .brand .logo{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  min-width:32px;
  height:28px;
  padding:0 7px;
  border:1px solid #bfdbfe;
  border-radius:8px;
  background:var(--accent-soft);
  color:var(--accent);
}
body.widget .brandname{
  font-size:11px;
  color:var(--accent);
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
}
body.widget h1{
  margin:3px 0 0;
  font-family:var(--sans);
  font-size:24px;
  line-height:1.15;
  letter-spacing:-.03em;
  font-weight:750;
  color:var(--ink-strong);
}
.grid{ display:grid; gap:14px; grid-template-columns:repeat(12, 1fr) }
.card{
  grid-column:span 12;
  padding:24px;
  border:1px solid var(--line-soft);
  background:var(--surface);
  border-radius:var(--r-lg);
}
.card-inner{ padding:0 }
.kicker{
  color:var(--muted);
  font-weight:700;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-size:11px;
}
.list{
  display:grid;
  grid-template-columns:1fr;
  gap:0;
  padding:0;
  margin:10px 0 0;
  list-style:none;
  border:1px solid var(--line);
  background:var(--surface);
}
.item{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:10px;
  padding:11px 14px;
  border-bottom:1px solid var(--line-soft);
  text-decoration:none;
  color:var(--ink);
}
.item:last-child{ border-bottom:0 }
.item:hover{ background:var(--accent-soft) }
.item .t{ font-size:14px; font-weight:600 }
.item .m{ font-size:12px; color:var(--faint); font-family:var(--mono) }
.kbd{
  font-family:var(--mono);
  font-size:12px;
  padding:3px 8px;
  border-radius:var(--r-sm);
  border:1px solid var(--line);
  background:var(--bg-strong);
  color:var(--muted);
}

/* form fields */
.formgrid{
  display:grid;
  gap:10px;
  grid-template-columns:repeat(12,1fr);
  margin-top:10px;
}
.f{ grid-column:span 6 }
.f span{
  display:block;
  margin:0 0 6px;
  font-size:12px;
  color:var(--muted);
  font-weight:600;
}
.f input, .f select{
  width:100%;
  padding:9px 10px;
  border-radius:var(--r-sm);
  border:1px solid var(--line);
  background:var(--surface);
  color:var(--ink);
  font-family:var(--mono);
  font-size:13px;
  outline:none;
}
.f input:focus, .f select:focus{
  border-color:var(--accent);
  box-shadow:0 0 0 2px var(--accent-soft);
}
.f input.is-empty, .f select.is-empty{
  border-color:var(--bad);
  box-shadow:0 0 0 2px rgba(153,27,27,0.08);
}
.f .hint{ font-size:12px; color:var(--faint); margin-top:6px }
.f .err{ font-size:12px; color:var(--bad); margin-top:6px; display:none }
.f[data-error="1"] .err{ display:block }

/* buttons */
.btn{
  appearance:none;
  border:1px solid var(--accent);
  cursor:pointer;
  padding:9px 14px;
  border-radius:var(--r-sm);
  color:var(--surface);
  font-weight:600;
  font-size:13px;
  background:var(--accent);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-family:var(--sans);
}
.btn:hover{ background:#1e40af; border-color:#1e40af }
.btn.primary{ }
.btn.mini{ padding:7px 10px; font-weight:600; font-size:12px }
.btn.loading{ opacity:.7; pointer-events:none }

/* output box */
.outbox{
  margin-top:12px;
  padding:14px;
  border-radius:var(--r-md);
  border:1px solid var(--line);
  background:var(--bg-panel);
  color:var(--ink);
  font-size:13px;
  line-height:1.55;
}

/* iframe frame container */
.frame{
  width:100%;
  height:520px;
  border:1px solid var(--line);
  border-radius:var(--r-md);
  overflow:hidden;
  background:var(--surface);
}

/* legacy widget wrapper — kept stable */
.widget{
  padding:14px;
  border-radius:var(--r-md);
  border:1px solid var(--line);
  background:var(--surface);
}

/* ──────────────────────────────────────────────────────────────────────
 * Trust strip / proof bar — preserves data-p0 anchor attributes.
 * v10_p5 cut-5.6: compact seller-trust pills with one accent.
 * ──────────────────────────────────────────────────────────────────── */
.trustbar{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  padding:0;
  margin:12px 0 18px;
  font-size:12px;
  color:var(--muted);
  border:0;
  background:transparent;
}
.trustitem{
  font-size:12px;
  color:#334155;
  white-space:nowrap;
  padding:6px 10px;
  background:var(--bg-panel);
  border:1px solid var(--line-soft);
  border-radius:999px;
}
.trustbar .trustitem::before{
  content:"";
  display:inline-block;
  width:auto;
  height:auto;
  border-radius:0;
  background:transparent;
  color:var(--accent);
  font-weight:800;
  margin-right:6px;
  vertical-align:baseline;
}
.range-label{
  font-size:12px;
  color:var(--muted);
  letter-spacing:.02em;
  font-weight:600;
  text-transform:none;
}
.source-badge{
  display:inline-flex;
  align-items:center;
  gap:4px;
  margin:10px 0 0;
  padding:5px 9px;
  border:1px solid var(--line-soft);
  background:var(--bg-panel);
  border-radius:999px;
  color:#334155;
  font-size:12px;
  line-height:1.35;
}
.source-badge span{
  color:var(--muted);
  font-weight:700;
}
.save-action{
  margin-top:14px;
  max-width:360px;
}
.save-action .btn{
  width:100%;
  border-radius:8px;
  padding:11px 14px;
}
.save-copy{
  margin-top:6px;
  color:var(--faint);
  font-size:11px;
  line-height:1.45;
}

/* differentiation proof when rendered as a coverage caption */
.proofbar{
  display:block;
  margin:6px 0 14px;
  padding:0;
  font-size:12px;
  color:var(--muted);
  line-height:1.55;
  background:transparent;
  border:0;
}
.proofbar .trustitem{
  display:inline;
  margin-right:0;
}
.proofbar .trustitem::before{
  content:" · ";
  display:inline;
  width:auto;
  height:auto;
  background:transparent;
  margin:0;
}
.proofbar .trustitem:first-child::before{
  content:"";
}

/* small print / disclosures */
.disclosure{
  width:100%;
  font-size:11px;
  color:var(--muted);
  margin-top:6px;
  max-width:720px;
  line-height:1.55;
}
.ctaguard{
  width:100%;
  font-size:11px;
  color:var(--muted);
  margin-top:6px;
  line-height:1.55;
}
.mini{
  margin-top:14px;
  color:var(--faint);
  font-size:12px;
  line-height:1.55;
}
.note{
  font-size:13px;
  color:#334155;
  line-height:1.55;
}
.note strong{ color:var(--ink-strong) }

/* SEO copy & related links */
.seo-copy{ font-size:14px; color:#334155; line-height:1.55; margin:14px 0 }
.seo-copy p{ margin:0 0 8px }
.urgencybar{
  margin:10px 0 0;
  padding:8px 0;
  font-size:12px;
  color:var(--muted);
  border:0;
  background:transparent;
}

/* badges for tool-page methodology context */
.badges{ display:flex; gap:10px; flex-wrap:wrap; margin-top:14px }
.badge{
  border:1px solid var(--line);
  padding:5px 8px;
  font-size:12px;
  color:var(--muted);
  background:var(--surface);
  border-radius:var(--r-sm);
}

/* accessibility */
:focus{ outline:none }
:focus-visible{
  outline:2px solid var(--accent);
  outline-offset:2px;
  border-radius:var(--r-sm);
}

/* responsive */
@media (max-width:900px){
  .topbar{ grid-template-columns:1fr; gap:10px }
  .nav{ flex-wrap:wrap; gap:14px }
  .hero{ padding:24px 18px 18px }
  .hero h1{ font-size:32px }
  .section{ padding:20px 18px }
  .reference-layout{ grid-template-columns:1fr }
  .rail{ border-right:0; border-bottom:1px solid var(--line) }
  .sticky-panel{ border-left:0; border-top:1px solid var(--line) }
  .doc{ padding:20px 18px }
  .kpi-grid{ grid-template-columns:1fr; border-right:1px solid var(--line) }
  .kpi{ border-right:0; border-bottom:1px solid var(--line) }
  .kpi:last-child{ border-bottom:0 }
  .footer{ padding:14px 18px }
  .safety-strip{ padding:10px 18px }
  table{ font-size:12px }
  td, th{ padding:8px 6px }
  .formgrid{ grid-template-columns:repeat(12,1fr) }
  .f{ grid-column:span 12 }
}

/* print */
@media print{
  body{ background:#fff; color:#000 }
  .topbar, .safety-strip, .urgencybar, .ctaguard, #cta{ display:none !important }
  .card, .outbox{ border:1px solid #ccc !important; background:#fff !important }
  a{ color:#000; text-decoration:none }
  .footer{ border-top:1px solid #ccc }
}

/* ──────────────────────────────────────────────────────────────────────
 * cut-5.8: Tool-hub surface ownership / regional acquisition rail.
 * Keeps the country-city crawl rail live while making the primary user action
 * explicit before acquisition links.
 * ──────────────────────────────────────────────────────────────────── */
.tool-primary-action{
  display:grid;
  grid-template-columns:minmax(0,1fr) auto;
  gap:20px;
  align-items:center;
  margin:18px 0 22px;
  padding:20px;
  border:1px solid var(--line);
  border-radius:var(--r-lg);
  background:var(--surface);
}
.tool-primary-action h2{
  margin:3px 0 6px;
  font-size:22px;
}
.tool-primary-action p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.55;
  max-width:720px;
}
.tool-primary-links{
  display:flex;
  flex-direction:column;
  gap:8px;
  align-items:stretch;
  min-width:210px;
}
.tool-secondary-link{
  display:inline-flex;
  justify-content:center;
  padding:9px 12px;
  border:1px solid var(--line);
  border-radius:var(--r-sm);
  color:var(--muted);
  text-decoration:none;
  font-size:13px;
  font-weight:600;
  background:var(--surface);
}
.tool-secondary-link:hover{ color:var(--accent); border-color:#bfdbfe; background:var(--accent-soft); text-decoration:none }
.regional-rail{
  margin:22px 0 0;
  padding:20px;
  border:1px solid var(--line-soft);
  border-radius:var(--r-lg);
  background:var(--bg-panel);
}
.regional-rail-head{
  max-width:820px;
  margin-bottom:16px;
}
.regional-rail-head h2{
  margin:3px 0 6px;
  font-size:20px;
}
.regional-rail-head p{
  margin:0;
  color:var(--muted);
  font-size:13px;
  line-height:1.6;
}
.regional-country-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:14px;
}
.regional-country{
  padding:14px;
  border:1px solid var(--line-soft);
  border-radius:var(--r-md);
  background:var(--surface);
}
.regional-country h3{
  margin:0 0 8px;
  font-size:13px;
  letter-spacing:.04em;
  text-transform:uppercase;
  color:var(--muted);
}
.hub-city-list{
  display:flex;
  flex-wrap:wrap;
  gap:7px;
  margin:0;
  padding:0;
  list-style:none;
}
.hub-city-list a{
  display:inline-flex;
  padding:5px 8px;
  border:1px solid var(--line-soft);
  border-radius:999px;
  color:#334155;
  text-decoration:none;
  font-size:12px;
  line-height:1.2;
  background:var(--bg-panel);
}
.hub-city-list a:hover{ color:var(--accent); border-color:#bfdbfe; background:var(--accent-soft); text-decoration:none }
@media (max-width:760px){
  .tool-primary-action{ grid-template-columns:1fr; padding:16px }
  .tool-primary-links{ min-width:0 }
  .regional-country-grid{ grid-template-columns:1fr }
}

/* ──────────────────────────────────────────────────────────────────────
 * cut-5.9: Homepage customer-journey reset.
 * The homepage now leads with decision routing and source proof, not dense
 * platform/audit tables. Detailed tables remain on methodology surfaces.
 * ──────────────────────────────────────────────────────────────────── */
.home-flow{ display:grid; gap:28px }
.home-start,
.home-platforms,
.home-audit-summary{ min-width:0 }
.home-diagnostic-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:14px;
}
.home-diagnostic-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  min-height:156px;
  padding:18px;
  border:1px solid var(--line-soft);
  border-radius:var(--r-lg);
  background:var(--surface);
  color:var(--ink);
  text-decoration:none;
}
.home-diagnostic-card:hover{
  border-color:#bfdbfe;
  background:var(--accent-soft);
  text-decoration:none;
}
.home-diagnostic-card strong{
  font-size:18px;
  line-height:1.2;
  letter-spacing:-.02em;
  color:var(--ink-strong);
}
.home-diagnostic-card span:not(.home-card-kicker){
  color:var(--muted);
  font-size:13px;
}
.home-diagnostic-card em{
  margin-top:auto;
  color:var(--faint);
  font-size:12px;
  font-style:normal;
  line-height:1.45;
}
.home-card-kicker{
  color:var(--accent);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
}
.home-proof{
  display:grid;
  grid-template-columns:minmax(0,1fr) 270px;
  gap:20px;
  align-items:stretch;
  padding:22px;
  border:1px solid var(--line-soft);
  border-radius:var(--r-lg);
  background:var(--bg-panel);
}
.home-proof h2{ margin:4px 0 8px; font-size:22px }
.home-proof p{ margin:0 0 14px; color:var(--muted); font-size:14px; line-height:1.6; max-width:760px }
.home-proof-chips{
  display:flex;
  flex-wrap:wrap;
  gap:8px;
  margin:12px 0 16px;
}
.home-proof-chips span{
  display:inline-flex;
  padding:6px 10px;
  border:1px solid var(--line-soft);
  border-radius:999px;
  background:var(--surface);
  color:#334155;
  font-size:12px;
}
.home-source-panel{
  display:flex;
  flex-direction:column;
  justify-content:center;
  padding:18px;
  border:1px solid var(--line-soft);
  border-radius:var(--r-lg);
  background:var(--surface);
}
.home-source-panel span{
  color:var(--muted);
  font-size:11px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
}
.home-source-panel strong{
  margin-top:6px;
  font-family:var(--mono);
  font-size:22px;
  color:var(--ink-strong);
}
.home-source-panel p{
  margin:10px 0 0;
  font-size:12px;
  line-height:1.55;
}
.home-platform-grid{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:12px;
}
.home-platform-card{
  padding:16px;
  border:1px solid var(--line-soft);
  border-radius:var(--r-lg);
  background:var(--surface);
}
.home-platform-card > div,
.home-platform-card footer{
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:12px;
}
.home-platform-card strong{ color:var(--ink-strong); font-size:15px }
.home-platform-card p{ margin:10px 0 12px; color:var(--muted); font-size:13px; line-height:1.55 }
.home-platform-card footer{ color:var(--faint); font-size:12px }
.home-platform-card footer a,
.home-platform-card footer span:not(.mono){ color:var(--muted); font-size:12px }
.home-audit-list{
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:8px 12px;
  list-style:none;
  margin:12px 0 0;
  padding:0;
}
.home-audit-list li{
  display:flex;
  justify-content:space-between;
  gap:12px;
  padding:10px 12px;
  border:1px solid var(--line-soft);
  border-radius:var(--r-md);
  background:var(--surface);
  font-size:13px;
}
.home-audit-list em{
  color:var(--faint);
  font-style:normal;
  font-size:12px;
  text-align:right;
}
@media (max-width:900px){
  .home-diagnostic-grid,
  .home-platform-grid,
  .home-audit-list{ grid-template-columns:1fr }
  .home-proof{ grid-template-columns:1fr; padding:18px }
}

/* ──────────────────────────────────────────────────────────────────────
 * cut-5.11: Homepage final journey cleanup.
 * Prevents the homepage from becoming another audit catalog; keeps it as a
 * decision router plus compact proof surface. Also removes page-wide horizontal
 * scroll from wide proof/reference surfaces.
 * ────────────────────────────────────────────────────────────────────── */
html,body{max-width:100%;overflow-x:hidden}
.container{max-width:1180px;overflow-x:hidden}
.section{overflow-x:clip}
.home-flow{display:grid;gap:22px;overflow-x:hidden}
.home-diagnostic-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
}
.home-diagnostic-card{
  min-height:0;
  padding:16px;
  gap:10px;
  border:1px solid var(--line-soft);
  border-radius:var(--r-lg);
  background:var(--surface);
  color:var(--ink);
  text-decoration:none;
}
.home-diagnostic-card strong{
  font-size:17px;
  line-height:1.22;
}
.home-diagnostic-card em{
  margin:0;
  color:var(--muted);
  font-size:12px;
  line-height:1.4;
}
.home-diagnostic-card span{
  color:var(--accent);
  font-size:12px;
  font-weight:700;
}
.home-card-kicker{display:none}
.home-proof,
.home-platforms,
.home-audit-summary{display:none !important}
.home-proof-strip{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr)) auto;
  gap:12px;
  align-items:stretch;
  padding:16px;
  border:1px solid var(--line-soft);
  border-radius:var(--r-lg);
  background:var(--bg-panel);
}
.home-proof-strip div{
  padding:12px;
  border:1px solid var(--line-soft);
  border-radius:var(--r-md);
  background:var(--surface);
}
.home-proof-strip span{
  display:block;
  color:var(--muted);
  font-size:10px;
  text-transform:uppercase;
  letter-spacing:.08em;
  font-weight:800;
  margin-bottom:4px;
}
.home-proof-strip strong{
  display:block;
  color:var(--ink-strong);
  font-size:14px;
  line-height:1.25;
}
.home-proof-strip p{
  margin:6px 0 0;
  color:var(--muted);
  font-size:12px;
  line-height:1.45;
}
.home-proof-strip .tool-secondary-link{
  align-self:center;
  white-space:nowrap;
}
.diagnostic-choice-surface{padding:0;margin:0}
.diagnostic-choice-grid{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  margin-top:14px;
}
.diagnostic-choice-card{
  display:flex;
  flex-direction:column;
  gap:8px;
  padding:16px;
  border:1px solid var(--line-soft);
  border-radius:var(--r-lg);
  color:var(--ink);
  text-decoration:none;
  background:var(--surface);
}
.diagnostic-choice-card:hover{
  border-color:#bfdbfe;
  background:var(--accent-soft);
  text-decoration:none;
}
.diagnostic-choice-card strong{font-size:16px;line-height:1.25;color:var(--ink-strong)}
.diagnostic-choice-card span{font-size:12px;line-height:1.45;color:var(--muted)}
.diagnostic-choice-card em{font-style:normal;font-size:12px;color:var(--accent);font-weight:700}
@media (max-width:900px){
  .home-diagnostic-grid,
  .home-proof-strip,
  .diagnostic-choice-grid{grid-template-columns:1fr}
  .home-proof-strip .tool-secondary-link{align-self:stretch}
}
