/* Whitelabel Review - B2B capability spec-sheet
   Fonts: Archivo (display) + Libre Franklin (body)
   Theme: light, corporate graphite/steel, single teal accent */

:root {
  --ink:        oklch(0.22 0.012 235);
  --graphite:   oklch(0.34 0.013 235);
  --steel-700:  oklch(0.46 0.012 235);
  --steel-500:  oklch(0.58 0.011 235);
  --steel-300:  oklch(0.74 0.008 235);
  --line:       oklch(0.90 0.006 235);
  --line-soft:  oklch(0.94 0.005 235);
  --panel:      oklch(0.975 0.004 235);
  --panel-2:    oklch(0.955 0.005 235);
  --surface:    oklch(0.995 0.002 235);

  --accent:      oklch(0.55 0.10 195);
  --accent-deep: oklch(0.46 0.09 195);
  --accent-wash: oklch(0.955 0.028 195);
  --accent-line: oklch(0.86 0.045 195);

  --no:   oklch(0.68 0.006 235);

  --maxw: 1160px;
  --radius: 4px;
  --radius-lg: 8px;
  --shadow: 0 1px 2px oklch(0.4 0.02 235 / 0.06), 0 8px 26px oklch(0.4 0.02 235 / 0.06);

  --ff-display: "Archivo", system-ui, sans-serif;
  --ff-body: "Libre Franklin", system-ui, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  font-family: var(--ff-body);
  font-size: 16px;
  line-height: 1.62;
  color: var(--graphite);
  background: var(--surface);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

h1, h2, h3, h4 {
  font-family: var(--ff-display);
  color: var(--ink);
  margin: 0;
  letter-spacing: -0.012em;
  line-height: 1.14;
}

a { color: var(--accent-deep); text-decoration: none; }
a:hover { text-decoration: underline; }

.wrap { max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

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

.skip {
  position: absolute; left: 12px; top: -48px; z-index: 20;
  background: var(--ink); color: #fff; padding: 10px 16px;
  border-radius: var(--radius); font-weight: 600; font-size: 14px;
  transition: top .18s ease;
}
.skip:focus { top: 12px; text-decoration: none; }

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 2px;
}

.dot {
  display: inline-block; width: 4px; height: 4px; border-radius: 50%;
  background: var(--steel-300); vertical-align: middle; margin: 0 4px;
}

/* ---------- Masthead ---------- */
.masthead {
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  position: sticky; top: 0; z-index: 10;
}
.masthead__row {
  display: flex; align-items: center; justify-content: space-between;
  gap: 16px; min-height: 68px;
}
.brand { display: inline-flex; align-items: center; gap: 12px; }
.brand:hover { text-decoration: none; }
.brand__mark {
  font-family: var(--ff-display); font-weight: 800; font-size: 15px;
  letter-spacing: 0.02em; color: #fff; background: var(--ink);
  width: 38px; height: 38px; border-radius: var(--radius);
  display: grid; place-items: center;
  box-shadow: inset 0 0 0 1px oklch(0.55 0.10 195 / 0.35);
}
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--ff-display); font-weight: 700; font-size: 16px; color: var(--ink); letter-spacing: -0.01em; }
.brand__sub { font-size: 11.5px; color: var(--steel-500); letter-spacing: 0.01em; }
.masthead__meta { margin: 0; font-size: 13px; color: var(--steel-500); font-weight: 500; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--ff-body); font-weight: 600; font-size: 14.5px;
  padding: 12px 22px; border-radius: var(--radius);
  border: 1px solid transparent; cursor: pointer;
  transition: transform .12s ease, background .16s ease, border-color .16s ease;
  white-space: nowrap;
}
.btn:hover { text-decoration: none; }
.btn:active { transform: translateY(1px); }
.btn--primary { background: var(--accent-deep); color: #fff; }
.btn--primary:hover { background: oklch(0.42 0.09 195); }
.btn--ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--steel-300); background: var(--panel); }

/* ---------- Kicker / section heads ---------- */
.kicker {
  font-family: var(--ff-display); font-weight: 600; font-size: 12px;
  text-transform: uppercase; letter-spacing: 0.14em; color: var(--accent-deep);
  margin: 0 0 16px;
}
.section-h { font-size: clamp(22px, 3vw, 30px); font-weight: 700; }
.section-head { max-width: 760px; margin-bottom: 32px; }
.section-intro { color: var(--steel-700); font-size: 16px; margin: 14px 0 0; max-width: 68ch; }

/* ---------- Hero ---------- */
.hero { padding: 68px 0 56px; border-bottom: 1px solid var(--line);
  background: linear-gradient(180deg, var(--panel) 0%, var(--surface) 100%); }
.hero__grid {
  display: grid; grid-template-columns: 1.55fr 1fr; gap: 48px; align-items: start;
}
.hero__lead h1 {
  font-size: clamp(30px, 4.6vw, 50px); font-weight: 800; letter-spacing: -0.02em;
  max-width: 16ch;
}
.hero__lede { font-size: 17px; color: var(--steel-700); margin: 22px 0 28px; max-width: 60ch; }
.hero__cta { display: flex; gap: 12px; flex-wrap: wrap; }

.specbox {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 24px; box-shadow: var(--shadow);
  border-top: 3px solid var(--accent);
}
.specbox__h {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--steel-500); font-weight: 600; margin-bottom: 6px;
}
.specbox__list { margin: 6px 0 16px; display: grid; }
.specbox__list div {
  display: flex; align-items: baseline; justify-content: space-between;
  gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--line-soft);
}
.specbox__list div:last-child { border-bottom: 0; }
.specbox__list dt { font-size: 14px; color: var(--steel-700); }
.specbox__list dd {
  margin: 0; font-family: var(--ff-display); font-weight: 700; font-size: 20px; color: var(--ink);
}
.specbox__list dd span { font-size: 13px; color: var(--steel-500); font-weight: 600; }
.specbox__note { font-size: 12.5px; color: var(--steel-500); margin: 0; line-height: 1.5; }

/* ---------- Capability matrix (signature) ---------- */
.matrix { padding: 64px 0; }

.matrix__legend {
  display: flex; flex-wrap: wrap; gap: 10px 24px; margin: 0 0 20px;
  font-size: 13px; color: var(--steel-500);
}
.matrix__legend > span { display: inline-flex; align-items: center; gap: 8px; }

.mark {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--ff-display); font-weight: 600; font-size: 13.5px;
  white-space: nowrap;
}
.mark__sym {
  display: inline-grid; place-items: center; width: 18px; height: 18px;
  border-radius: 50%; font-size: 12px; line-height: 1; font-weight: 700;
}
.mark--yes { color: var(--accent-deep); }
.mark--yes .mark__sym { background: var(--accent-wash); color: var(--accent-deep); box-shadow: inset 0 0 0 1px var(--accent-line); }
.mark--part { color: var(--steel-700); }
.mark--part .mark__sym { background: var(--panel-2); color: var(--steel-700); box-shadow: inset 0 0 0 1px var(--line); }
.mark--no { color: var(--no); }
.mark--no .mark__sym { background: var(--surface); color: var(--steel-500); box-shadow: inset 0 0 0 1px var(--line); }

.matrix__scroll {
  overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius-lg);
  background: var(--surface); box-shadow: var(--shadow);
}
.matrix__scroll:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.grid { border-collapse: collapse; width: 100%; min-width: 900px; }

.grid th, .grid td {
  padding: 16px 16px; text-align: left; vertical-align: top;
  border-bottom: 1px solid var(--line-soft);
}
.grid thead th {
  background: var(--panel); border-bottom: 1px solid var(--line);
  vertical-align: bottom; position: sticky; top: 0; z-index: 2;
}
.grid__rowhead, .grid tbody th, .grid tfoot th {
  position: sticky; left: 0; z-index: 1;
  background: var(--surface);
  min-width: 210px; max-width: 240px;
}
.grid thead .grid__rowhead { z-index: 3; background: var(--panel); }

.grid tbody th, .grid tfoot th {
  font-family: var(--ff-display); font-weight: 600; font-size: 14.5px; color: var(--ink);
  border-right: 1px solid var(--line);
}
.grid tbody th small, .grid__co small, .grid td small {
  display: block; font-family: var(--ff-body); font-weight: 400;
  font-size: 11.5px; color: var(--steel-500); margin-top: 4px; line-height: 1.4;
  letter-spacing: 0;
}
.grid td small { margin-top: 6px; }

.grid__co { min-width: 128px; }
.co { display: flex; flex-direction: column; gap: 8px; }
.co__chip {
  font-family: var(--ff-display); font-weight: 700; font-size: 12px;
  color: var(--graphite); background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--line);
  width: 34px; height: 28px; border-radius: var(--radius);
  display: grid; place-items: center; letter-spacing: 0.02em;
}
.co__chip--lead { color: #fff; background: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.co__name { font-family: var(--ff-display); font-weight: 600; font-size: 13px; color: var(--ink); line-height: 1.2; }
.co__name small {
  display: block; font-family: var(--ff-body); font-weight: 500; font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--steel-500); margin-top: 3px;
}

.grid__co--lead, .grid td.is-lead, .grid tfoot .is-lead {
  background: var(--accent-wash);
}
.grid thead .grid__co--lead { background: oklch(0.93 0.035 195); }

.grid tfoot th, .grid tfoot td { border-bottom: 0; border-top: 2px solid var(--line); background: var(--panel); }
.grid tfoot .is-lead { background: oklch(0.93 0.035 195); }

.score {
  font-family: var(--ff-display); font-weight: 800; font-size: 18px; color: var(--graphite);
}
.score--lead { color: var(--accent-deep); }

/* zebra */
.grid tbody tr:nth-child(even) td { background: var(--panel); }
.grid tbody tr:nth-child(even) th { background: var(--panel); }
.grid tbody tr:nth-child(even) td.is-lead { background: oklch(0.94 0.03 195); }

.matrix__foot { font-size: 12.5px; color: var(--steel-500); margin: 16px 0 0; max-width: 80ch; }

/* ---------- Provider profiles ---------- */
.profiles { padding: 8px 0 64px; }

.entry {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius-lg); padding: 26px;
}
.entry--lead {
  border-top: 3px solid var(--accent); box-shadow: var(--shadow);
  padding: 32px; margin-bottom: 28px;
}
.entry__head { display: flex; align-items: center; gap: 16px; margin-bottom: 18px; }
.entry__chip {
  font-family: var(--ff-display); font-weight: 700; font-size: 15px;
  color: var(--graphite); background: var(--panel);
  box-shadow: inset 0 0 0 1px var(--line);
  width: 46px; height: 46px; border-radius: var(--radius); flex: none;
  display: grid; place-items: center; letter-spacing: 0.02em;
}
.entry__chip--lead { color: #fff; background: var(--ink); box-shadow: inset 0 0 0 1px var(--accent); }
.entry__id { flex: 1 1 auto; min-width: 0; }
.entry__id h3 { font-size: 20px; font-weight: 700; }
.entry--lead .entry__id h3 { font-size: 24px; }
.entry__for { margin: 3px 0 0; font-size: 13.5px; color: var(--steel-500); }
.entry__rank { display: flex; flex-direction: column; align-items: flex-end; gap: 2px; flex: none; }
.entry__pos {
  font-family: var(--ff-display); font-weight: 600; font-size: 11px;
  color: var(--steel-500); letter-spacing: 0.1em;
}
.entry__body { font-size: 15px; color: var(--steel-700); margin: 0 0 18px; }
.entry--lead .entry__body { font-size: 16px; max-width: 78ch; }

.entry__cols { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; margin-bottom: 24px; }
.col h4 {
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--steel-500); font-weight: 600; margin-bottom: 12px;
}
.list { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.list li { position: relative; padding-left: 24px; font-size: 14.5px; color: var(--graphite); line-height: 1.5; }
.list li::before {
  position: absolute; left: 0; top: 0.05em;
  font-family: var(--ff-display); font-weight: 700;
}
.list--yes li::before { content: "\2713"; color: var(--accent-deep); }
.list--note li::before { content: "-"; color: var(--steel-300); }

/* scorecard */
.scorecard { display: grid; gap: 10px; margin: 0 0 22px; }
.scorecard--compact { margin-bottom: 0; }
.metric {
  display: grid; grid-template-columns: 1fr 90px 34px; align-items: center; gap: 14px;
}
.metric > span { font-size: 13px; color: var(--steel-700); }
.metric > i {
  height: 6px; border-radius: 3px; background: var(--line);
  position: relative; overflow: hidden;
}
.metric > i::after {
  content: ""; position: absolute; inset: 0; width: var(--v);
  background: var(--accent); border-radius: 3px;
}
.entry:not(.entry--lead) .metric > i::after { background: var(--steel-500); }
.metric > b { font-family: var(--ff-display); font-weight: 700; font-size: 14px; color: var(--ink); text-align: right; }

.entry-row {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px;
}

/* ---------- Methodology ---------- */
.method { padding: 64px 0; border-top: 1px solid var(--line); background: var(--panel); }
.method__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: start; }
.method__intro p { color: var(--steel-700); margin: 16px 0 0; max-width: 60ch; }
.method__note { font-size: 14px; }
.criteria { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.criteria li {
  display: grid; grid-template-columns: 58px 1fr; grid-template-rows: auto auto;
  column-gap: 16px; align-items: baseline;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 16px 18px;
}
.criteria__w {
  grid-row: 1 / 3; align-self: center;
  font-family: var(--ff-display); font-weight: 800; font-size: 20px; color: var(--accent-deep);
}
.criteria b { font-family: var(--ff-display); font-weight: 700; font-size: 15.5px; color: var(--ink); }
.criteria__d { font-size: 13.5px; color: var(--steel-500); margin-top: 3px; }

/* ---------- FAQ ---------- */
.faq { padding: 64px 0; }
.faq__list { display: grid; gap: 0; max-width: 840px; border-top: 1px solid var(--line); margin-top: 28px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  cursor: pointer; list-style: none; padding: 20px 44px 20px 0; position: relative;
  font-family: var(--ff-display); font-weight: 600; font-size: 17px; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 8px; top: 16px;
  font-family: var(--ff-display); font-weight: 600; font-size: 22px; color: var(--accent-deep);
  transition: transform .18s ease;
}
.faq details[open] summary::after { content: "\2212"; }
.faq details p { margin: 0 0 22px; color: var(--steel-700); font-size: 15px; max-width: 72ch; }

/* ---------- Footer ---------- */
.foot { border-top: 1px solid var(--line); background: var(--panel); padding: 40px 0 48px; }
.foot__disc { font-size: 13px; color: var(--steel-500); margin: 0 0 16px; max-width: 92ch; line-height: 1.6; }
.foot__disc strong { color: var(--graphite); }
.foot__meta { font-size: 12.5px; color: var(--steel-500); margin: 0; }

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero__grid { grid-template-columns: 1fr; gap: 32px; }
  .method__grid { grid-template-columns: 1fr; gap: 32px; }
  .entry__cols { grid-template-columns: 1fr; gap: 20px; }
  .entry-row { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .wrap { padding: 0 18px; }
  .hero { padding: 44px 0 40px; }
  .matrix, .method, .faq { padding: 44px 0; }
  .brand__sub { display: none; }
  .masthead__meta { display: none; }
  .entry-row { gap: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; }
}
