
:root {
  --yellow: #ffcc00;
  --yellow-deep: #e8b900;
  --black: #111111;
  --charcoal: #242424;
  --ink: #30302d;
  --paper: #ffffff;
  --soft: #f5f5f2;
  --soft-2: #ecece7;
  --line: #d9d9d3;
  --muted: #66665f;
  --success: #166534;
  --success-soft: #eaf6ee;
  --warning: #8a5200;
  --warning-soft: #fff5dc;
  --danger: #9f2525;
  --danger-soft: #fdecec;
  --info: #174a73;
  --info-soft: #ebf4fb;
  --shadow-sm: 0 8px 22px rgba(0,0,0,.08);
  --shadow: 0 18px 46px rgba(0,0,0,.14);
  --radius-sm: 4px;
  --radius: 10px;
  --content: 1500px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 104px; }
body {
  margin: 0;
  color: var(--charcoal);
  background: var(--paper);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.5;
  overflow-x: hidden;
}
body:has(dialog[open]) { overflow: hidden; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
button { color: inherit; }
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid var(--yellow);
  outline-offset: 3px;
}
.skip-link {
  position: fixed;
  z-index: 999;
  top: 8px;
  left: 8px;
  padding: 10px 14px;
  background: var(--yellow);
  color: var(--black);
  font-weight: 800;
  transform: translateY(-150%);
}
.skip-link:focus { transform: none; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  min-height: 78px;
  display: grid;
  grid-template-columns: minmax(250px, auto) 1fr auto;
  align-items: center;
  gap: 28px;
  padding: 13px max(24px, calc((100vw - var(--content)) / 2));
  color: white;
  background: rgba(17,17,17,.98);
  border-bottom: 6px solid var(--yellow);
  box-shadow: 0 5px 18px rgba(0,0,0,.16);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: white;
  text-decoration: none;
  font-weight: 800;
  letter-spacing: .055em;
  line-height: 1.1;
}
.brand-mark {
  width: 31px;
  height: 39px;
  border: 4px solid var(--yellow);
  flex: 0 0 auto;
}
.brand-copy { font-size: .82rem; }
.brand-copy small {
  display: block;
  margin-top: 4px;
  color: #c8c8c2;
  font-size: .55rem;
  letter-spacing: .17em;
}
.primary-nav {
  display: flex;
  justify-content: center;
  gap: clamp(14px, 2.2vw, 34px);
}
.primary-nav a {
  color: #e7e7e2;
  text-decoration: none;
  font-size: .88rem;
  font-weight: 700;
}
.primary-nav a:hover { color: var(--yellow); }
.header-actions { display: flex; align-items: center; gap: 14px; }
.client {
  max-width: 180px;
  font-size: .75rem;
  font-weight: 800;
  letter-spacing: .12em;
  text-align: right;
}

.hero {
  position: relative;
  isolation: isolate;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: clamp(36px, 6vw, 90px);
  align-items: center;
  min-height: 640px;
  padding: 86px max(24px, calc((100vw - var(--content)) / 2)) 76px;
  overflow: hidden;
  background:
    linear-gradient(120deg, rgba(255,255,255,.98) 0 59%, rgba(242,242,238,.96) 59% 88%, rgba(255,204,0,.95) 88% 90%, rgba(242,242,238,.96) 90%),
    var(--soft);
}
.hero::after {
  content: "";
  position: absolute;
  z-index: -1;
  width: 470px;
  height: 470px;
  right: -120px;
  bottom: -250px;
  border: 1px solid rgba(0,0,0,.16);
  transform: rotate(18deg);
}
.kicker, .eyebrow {
  color: var(--black);
  font-size: .72rem;
  letter-spacing: .16em;
  font-weight: 900;
  text-transform: uppercase;
}
.hero h1 {
  max-width: 960px;
  margin: 10px 0 22px;
  color: var(--black);
  font-size: clamp(3.2rem, 6vw, 6.8rem);
  line-height: .91;
  letter-spacing: -.06em;
}
.hero-copy > p:not(.hero-note) {
  max-width: 820px;
  margin: 0;
  font-size: clamp(1.06rem, 1.6vw, 1.3rem);
  line-height: 1.6;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 30px;
}
.hero-note {
  max-width: 720px;
  margin: 18px 0 0;
  color: var(--muted);
  font-size: .83rem;
}
.hero-panel {
  padding: clamp(26px, 4vw, 44px);
  color: white;
  background: var(--black);
  border-top: 8px solid var(--yellow);
  box-shadow: var(--shadow);
}
.hero-panel .eyebrow { color: var(--yellow); }
.outcome-list {
  list-style: none;
  margin: 24px 0 0;
  padding: 0;
  counter-reset: outcome;
}
.outcome-list li {
  display: grid;
  grid-template-columns: 38px 1fr;
  column-gap: 14px;
  padding: 18px 0;
  border-top: 1px solid rgba(255,255,255,.18);
}
.outcome-list li::before {
  counter-increment: outcome;
  content: "0" counter(outcome);
  color: var(--yellow);
  font-size: .78rem;
  font-weight: 900;
  letter-spacing: .08em;
}
.outcome-list strong { grid-column: 2; display: block; font-size: 1.05rem; }
.outcome-list span { grid-column: 2; display: block; margin-top: 3px; color: #c9c9c4; font-size: .88rem; }

.button {
  min-height: 43px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 16px;
  border: 1px solid transparent;
  border-radius: 0;
  text-decoration: none;
  font-weight: 850;
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease;
}
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: not-allowed; opacity: .5; transform: none; }
.button-large { min-height: 54px; padding: 14px 21px; }
.button-compact { min-height: 36px; padding: 7px 11px; font-size: .8rem; }
.button-primary { color: white; background: var(--black); border-color: var(--black); }
.button-primary:hover { background: #2f2f2f; }
.button-secondary { color: var(--black); background: white; border-color: var(--black); }
.button-secondary:hover { background: var(--soft); }
.button-yellow { color: var(--black); background: var(--yellow); border-color: var(--yellow); }
.button-yellow:hover { background: #ffda47; }
.button-light { color: var(--black); background: white; border-color: white; }
.button-ghost-light { color: white; background: transparent; border-color: rgba(255,255,255,.45); }
.button-ghost-light:hover { border-color: white; background: rgba(255,255,255,.08); }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  max-width: var(--content);
  margin: -34px auto 0;
  position: relative;
  z-index: 2;
  background: var(--line);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
}
.trust-strip > div {
  min-height: 110px;
  padding: 22px 24px;
  background: white;
  border-top: 5px solid transparent;
}
.trust-strip > div:first-child { border-top-color: var(--yellow); }
.trust-strip strong {
  display: block;
  color: var(--black);
  font-size: 1.55rem;
  line-height: 1.1;
}
.trust-strip span { display: block; margin-top: 7px; color: var(--muted); font-size: .84rem; }

.section {
  max-width: var(--content);
  margin: 0 auto;
  padding: 92px 24px;
}
.section-heading {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .55fr);
  gap: 40px;
  align-items: end;
  margin-bottom: 34px;
}
.section-heading h2, .recommendation-header h2, .evidence-section h2 {
  margin: 8px 0 0;
  color: var(--black);
  font-size: clamp(2.1rem, 3.8vw, 4.4rem);
  line-height: .98;
  letter-spacing: -.045em;
}
.section-heading > p {
  max-width: 520px;
  margin: 0;
  color: var(--muted);
  font-size: 1rem;
  line-height: 1.65;
}
.process-section { padding-top: 110px; }
.process-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-top: 1px solid var(--black);
}
.process-grid article {
  min-height: 230px;
  padding: 30px 28px;
  border-right: 1px solid var(--line);
}
.process-grid article:last-child { border-right: 0; }
.step-number {
  display: inline-block;
  color: var(--warning);
  font-size: .76rem;
  font-weight: 900;
  letter-spacing: .12em;
}
.process-grid h3 { margin: 35px 0 8px; font-size: 1.28rem; }
.process-grid p { margin: 0; color: var(--muted); }

.recommendation-section {
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--content)) / 2));
  color: white;
  background: var(--black);
}
.recommendation-section .eyebrow { color: var(--yellow); }
.recommendation-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 30px;
  align-items: end;
}
.recommendation-header h2 { color: white; max-width: 950px; }
.recommendation-header p { max-width: 900px; color: #c7c7c2; }
.recommendation-actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 9px; }
.recommendation-section .button-secondary {
  color: white;
  background: transparent;
  border-color: rgba(255,255,255,.55);
}
.recommendation-section .button-primary {
  color: var(--black);
  background: var(--yellow);
  border-color: var(--yellow);
}
.recommendation-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  margin-top: 34px;
}
.recommendation-card {
  display: flex;
  flex-direction: column;
  min-width: 0;
  color: var(--charcoal);
  background: white;
  border-top: 8px solid var(--yellow);
  box-shadow: 0 14px 34px rgba(0,0,0,.28);
}
.recommendation-card__head {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px 20px 16px;
}
.recommendation-card__cover {
  height: 118px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: var(--soft);
  border: 1px solid var(--line);
}
.recommendation-card__cover img { width: 100%; height: 100%; object-fit: contain; }
.match-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 5px 8px;
  color: var(--success);
  background: var(--success-soft);
  font-size: .72rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .06em;
}
.match-label.medium { color: var(--warning); background: var(--warning-soft); }
.match-label.validate { color: var(--danger); background: var(--danger-soft); }
.recommendation-card h3 { margin: 8px 0 3px; font-size: 1.45rem; line-height: 1.08; }
.recommendation-card__segment { color: var(--muted); font-size: .82rem; }
.recommendation-card__body { padding: 0 20px 20px; }
.recommendation-card__body h4 {
  margin: 18px 0 7px;
  color: var(--black);
  font-size: .76rem;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.reason-list, .caution-list { margin: 0; padding-left: 18px; font-size: .9rem; }
.reason-list li + li, .caution-list li + li { margin-top: 5px; }
.caution-box { margin-top: 15px; padding: 12px 14px; background: var(--warning-soft); border-left: 4px solid var(--yellow-deep); }
.recommendation-card__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: auto;
  padding: 0 20px 20px;
}
.recommendation-card__actions .button { flex: 1 1 130px; }
.recommendation-disclaimer {
  display: flex;
  gap: 10px;
  margin-top: 24px;
  padding: 16px 18px;
  color: #d8d8d4;
  background: rgba(255,255,255,.07);
  border-left: 4px solid var(--yellow);
  font-size: .86rem;
}
.recommendation-disclaimer strong { color: white; white-space: nowrap; }

.catalog-section { padding-top: 104px; }
.catalog-heading { margin-bottom: 26px; }
.result-count { color: var(--muted); font-weight: 800; text-align: right; }
.catalog-toolbar {
  position: sticky;
  top: 83px;
  z-index: 20;
  display: grid;
  grid-template-columns: minmax(260px, .8fr) minmax(450px, 1.2fr);
  gap: 22px;
  align-items: end;
  margin-bottom: 28px;
  padding: 16px;
  background: rgba(255,255,255,.97);
  border: 1px solid var(--line);
  box-shadow: 0 10px 28px rgba(0,0,0,.07);
  backdrop-filter: blur(10px);
}
.search-field label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: .75rem;
  font-weight: 800;
}
.search-control { position: relative; }
.search-control input {
  width: 100%;
  height: 44px;
  padding: 10px 42px 10px 12px;
  border: 1px solid #9c9c95;
  border-radius: 0;
  background: white;
}
.search-control button {
  position: absolute;
  right: 4px;
  top: 4px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 1.4rem;
  cursor: pointer;
}
.filter-group { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 7px; }
.filter-button {
  min-height: 42px;
  padding: 9px 13px;
  border: 1px solid var(--black);
  background: white;
  font-weight: 850;
  cursor: pointer;
}
.filter-button:hover, .filter-button.is-active { color: white; background: var(--black); }
.active-context {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  padding: 13px 16px;
  background: var(--info-soft);
  border-left: 4px solid var(--info);
  font-size: .88rem;
}
.active-context button { border: 0; background: transparent; color: var(--info); font-weight: 850; text-decoration: underline; cursor: pointer; }

.series-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 22px;
}
.series-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: white;
  border: 1px solid var(--line);
  box-shadow: 0 5px 18px rgba(0,0,0,.05);
  transition: transform .18s ease, box-shadow .18s ease;
}
.series-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-sm); }
.series-card.is-recommended { border-top: 6px solid var(--yellow); }
.series-cover {
  height: 250px;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #fbfbfa;
  border-bottom: 1px solid var(--line);
}
.series-cover img { width: 100%; height: 100%; object-fit: contain; }
.series-cover .recommended-flag {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 6px 9px;
  color: var(--black);
  background: var(--yellow);
  font-size: .68rem;
  font-weight: 900;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.series-card__body { display: flex; flex-direction: column; flex: 1; padding: 22px; }
.series-card__topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.segment-label {
  color: var(--muted);
  font-size: .7rem;
  font-weight: 900;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.fit-badge {
  display: inline-flex;
  align-items: center;
  padding: 5px 8px;
  color: var(--success);
  background: var(--success-soft);
  font-size: .7rem;
  font-weight: 850;
}
.fit-badge.pending { color: var(--warning); background: var(--warning-soft); }
.fit-badge.outside { color: var(--danger); background: var(--danger-soft); }
.series-card h3 {
  margin: 12px 0 8px;
  color: var(--black);
  font-size: 1.48rem;
  line-height: 1.08;
  letter-spacing: -.02em;
}
.series-card__description {
  margin: 0;
  color: var(--ink);
  font-size: .91rem;
  line-height: 1.56;
}
.series-glance {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1px;
  margin: 20px 0 0;
  background: var(--line);
  border: 1px solid var(--line);
}
.series-glance > div { padding: 12px; background: var(--soft); }
.series-glance span {
  display: block;
  color: var(--muted);
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .07em;
  text-transform: uppercase;
}
.series-glance strong { display: block; margin-top: 4px; color: var(--black); font-size: .88rem; }
.focus-line {
  margin: 14px 0 0;
  padding-left: 10px;
  border-left: 3px solid var(--yellow);
  color: var(--muted);
  font-size: .82rem;
}
.series-card__actions {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  margin-top: auto;
  padding-top: 22px;
}
.series-card__actions .button { padding-inline: 10px; font-size: .84rem; }
.compare-choice {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 42px;
  padding: 9px 11px;
  background: var(--soft);
  border: 1px solid var(--line);
  font-size: .84rem;
  font-weight: 800;
  cursor: pointer;
}
.compare-choice input { width: 18px; height: 18px; accent-color: var(--black); }
.empty-state {
  margin-top: 24px;
  padding: 50px 24px;
  text-align: center;
  background: var(--soft);
  border: 1px solid var(--line);
}
.empty-state h3 { margin: 0; font-size: 1.6rem; }
.empty-state p { color: var(--muted); }

.adoption-section {
  max-width: none;
  padding-inline: max(24px, calc((100vw - var(--content)) / 2));
  background: var(--soft);
}
.adoption-steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  border-top: 1px solid var(--black);
  border-bottom: 1px solid var(--black);
}
.adoption-steps article { min-height: 205px; padding: 24px 18px; border-right: 1px solid var(--line); }
.adoption-steps article:last-child { border-right: 0; }
.adoption-steps span {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--yellow);
  color: var(--black);
  font-weight: 900;
}
.adoption-steps h3 { margin: 30px 0 7px; font-size: 1.1rem; }
.adoption-steps p { margin: 0; color: var(--muted); font-size: .86rem; }
.role-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  margin-top: 34px;
}
.role-grid article { padding: 22px 18px; background: white; border-top: 4px solid var(--black); }
.role-label { color: var(--warning); font-size: .68rem; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; }
.role-grid h3 { margin: 22px 0 7px; font-size: 1rem; }
.role-grid p { margin: 0; color: var(--muted); font-size: .82rem; }

.evidence-section {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(420px, 1.2fr);
  gap: 70px;
  align-items: center;
}
.evidence-card { padding: 26px 28px; background: var(--black); color: #d7d7d2; border-left: 8px solid var(--yellow); }
.evidence-card p { margin: 0; }
.evidence-card p + p { margin-top: 13px; }
.evidence-card strong { color: white; }

.site-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 24px 40px;
  align-items: center;
  padding: 42px max(24px, calc((100vw - var(--content)) / 2));
  color: white;
  background: var(--black);
  border-top: 7px solid var(--yellow);
}
.footer-brand { display: flex; align-items: center; gap: 14px; }
.footer-brand strong, .footer-brand span { display: block; }
.footer-brand span:not(.brand-mark) { margin-top: 4px; color: #bdbdb8; font-size: .8rem; }
.footer-links { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 18px; }
.footer-links a, .footer-links button {
  padding: 0;
  border: 0;
  color: white;
  background: transparent;
  font-weight: 800;
  text-decoration: none;
  cursor: pointer;
}
.footer-links a:hover, .footer-links button:hover { color: var(--yellow); }
.footer-note { grid-column: 1 / -1; margin: 0; color: #a9a9a4; font-size: .75rem; }

.compare-bar {
  position: fixed;
  z-index: 70;
  left: 50%;
  bottom: 16px;
  width: min(calc(100% - 32px), 1260px);
  transform: translateX(-50%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px 16px 14px 20px;
  color: white;
  background: var(--black);
  border-top: 5px solid var(--yellow);
  box-shadow: 0 18px 55px rgba(0,0,0,.35);
}
.compare-count { display: block; font-size: .78rem; font-weight: 800; }
.compare-count strong { color: var(--yellow); font-size: 1.2rem; }
.compare-names { display: block; margin-top: 2px; color: #c9c9c4; font-size: .8rem; }
.compare-actions { display: flex; flex-wrap: wrap; gap: 7px; }

.modal {
  width: min(calc(100% - 28px), 880px);
  max-height: calc(100dvh - 28px);
  padding: 0;
  overflow: hidden;
  color: var(--charcoal);
  background: white;
  border: 0;
  box-shadow: 0 24px 80px rgba(0,0,0,.42);
}
.modal::backdrop { background: rgba(0,0,0,.72); backdrop-filter: blur(2px); }
.modal-shell { max-height: calc(100dvh - 28px); display: flex; flex-direction: column; }
.modal-shell-wide { width: 100%; }
.modal-shell-max { width: 100%; }
.detail-dialog { width: min(calc(100% - 28px), 1180px); }
.compare-dialog, .presentation-dialog { width: min(calc(100% - 28px), 1480px); }
.modal-header {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  padding: 23px 26px;
  background: var(--black);
  color: white;
  border-bottom: 6px solid var(--yellow);
}
.modal-header .eyebrow { color: var(--yellow); }
.modal-header h2 { margin: 4px 0 0; color: white; font-size: clamp(1.55rem, 3vw, 2.65rem); line-height: 1.05; letter-spacing: -.03em; }
.icon-button {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  border: 1px solid rgba(255,255,255,.45);
  color: white;
  background: transparent;
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
}
.icon-button:hover { background: rgba(255,255,255,.1); }
.modal-footer {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  padding: 18px 26px;
  background: var(--soft);
  border-top: 1px solid var(--line);
}

.diagnostic-dialog { width: min(calc(100% - 28px), 820px); }
.diagnostic-progress { height: 7px; background: var(--soft-2); }
.diagnostic-progress span { display: block; width: 14.285%; height: 100%; background: var(--yellow); transition: width .2s ease; }
.diagnostic-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 26px 0;
  color: var(--muted);
  font-size: .78rem;
  font-weight: 800;
}
.diagnostic-meta button { border: 0; background: transparent; color: var(--muted); text-decoration: underline; cursor: pointer; }
.diagnostic-content { min-height: 410px; overflow-y: auto; padding: 24px 26px 30px; }
.diagnostic-content h3 { margin: 0; color: var(--black); font-size: clamp(1.5rem, 3vw, 2.25rem); line-height: 1.12; }
.diagnostic-content > p { margin: 10px 0 24px; color: var(--muted); }
.option-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 11px; }
.option-card {
  position: relative;
  min-height: 84px;
  display: flex;
  align-items: center;
  gap: 13px;
  padding: 15px;
  border: 1px solid var(--line);
  background: white;
  cursor: pointer;
}
.option-card:hover { border-color: var(--black); }
.option-card:has(input:checked) { border: 2px solid var(--black); background: var(--warning-soft); }
.option-card input { width: 19px; height: 19px; flex: 0 0 auto; accent-color: var(--black); }
.option-card strong { display: block; color: var(--black); font-size: .95rem; }
.option-card small { display: block; margin-top: 3px; color: var(--muted); font-size: .75rem; }
.form-error { margin: 0; padding: 10px 26px; color: var(--danger); background: var(--danger-soft); font-weight: 800; font-size: .84rem; }
.diagnostic-footer { justify-content: space-between; }

.detail-content, .comparison-content { overflow-y: auto; }
.detail-hero {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 32px;
  padding: 28px;
  background: var(--soft);
  border-bottom: 1px solid var(--line);
}
.detail-cover { height: 285px; display: flex; align-items: center; justify-content: center; background: white; border: 1px solid var(--line); }
.detail-cover img { width: 100%; height: 100%; object-fit: contain; }
.detail-summary h3 { margin: 0; color: var(--black); font-size: 1.55rem; }
.detail-summary > p { max-width: 780px; }
.detail-badges { display: flex; flex-wrap: wrap; gap: 7px; margin: 15px 0; }
.detail-badges span { padding: 7px 9px; background: white; border: 1px solid var(--line); font-size: .78rem; font-weight: 800; }
.detail-summary .decision-box { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-top: 18px; }
.decision-box > div { padding: 14px; background: white; border-left: 4px solid var(--yellow); }
.decision-box strong { display: block; margin-bottom: 5px; color: var(--black); font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; }
.decision-box p { margin: 0; font-size: .88rem; }
.detail-nav {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  overflow-x: auto;
  background: white;
  border-bottom: 1px solid var(--line);
}
.detail-nav button {
  flex: 0 0 auto;
  padding: 14px 17px;
  border: 0;
  border-right: 1px solid var(--line);
  background: white;
  font-size: .82rem;
  font-weight: 850;
  cursor: pointer;
}
.detail-nav button.is-active { color: var(--black); background: var(--yellow); }
.detail-panels { padding: 28px; }
.detail-panel[hidden] { display: none; }
.detail-panel h3 { margin: 0 0 18px; color: var(--black); font-size: 1.5rem; }
.detail-panel h4 { margin: 24px 0 8px; color: var(--black); font-size: .9rem; text-transform: uppercase; letter-spacing: .06em; }
.fact-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.fact-card { padding: 15px; background: var(--soft); border-top: 3px solid var(--black); }
.fact-card span { display: block; color: var(--muted); font-size: .68rem; font-weight: 800; text-transform: uppercase; letter-spacing: .07em; }
.fact-card strong { display: block; margin-top: 6px; color: var(--black); font-size: .9rem; }
.role-panel-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 13px; }
.role-panel-card { padding: 18px; border: 1px solid var(--line); }
.role-panel-card span { color: var(--warning); font-size: .7rem; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; }
.role-panel-card h4 { margin: 9px 0 7px; font-size: 1rem; text-transform: none; letter-spacing: 0; }
.role-panel-card p { margin: 0; color: var(--muted); font-size: .86rem; }
.validation-list { margin: 0; padding: 0; list-style: none; }
.validation-list li { position: relative; padding: 12px 12px 12px 40px; border-bottom: 1px solid var(--line); }
.validation-list li::before { content: "✓"; position: absolute; left: 12px; top: 12px; color: var(--success); font-weight: 900; }
.resource-list { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.resource-list a, .resource-list button {
  min-height: 58px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 15px;
  color: var(--black);
  background: var(--soft);
  border: 1px solid var(--line);
  text-decoration: none;
  text-align: left;
  font-weight: 800;
  cursor: pointer;
}
.resource-list a::after { content: "↗"; }
.resource-list button::after { content: "→"; }
.source-note { padding: 15px; background: var(--info-soft); border-left: 4px solid var(--info); font-size: .85rem; }
.detail-cta-row { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line); }

.comparison-content { padding: 24px 26px 30px; }
.comparison-intro { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 18px; }
.legend-chip { padding: 6px 9px; font-size: .74rem; font-weight: 850; }
.legend-chip.compatible { color: var(--success); background: var(--success-soft); }
.legend-chip.pending { color: var(--warning); background: var(--warning-soft); }
.legend-chip.outside { color: var(--danger); background: var(--danger-soft); }
.scroll-hint { margin: 0 0 8px; color: var(--muted); font-size: .76rem; }
.comparison-wrap { overflow-x: auto; border: 1px solid var(--line); }
.comparison-table { width: 100%; min-width: 900px; border-collapse: separate; border-spacing: 0; }
.comparison-table th, .comparison-table td { min-width: 235px; padding: 14px; vertical-align: top; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); font-size: .83rem; }
.comparison-table thead th { position: sticky; top: 0; z-index: 1; color: white; background: var(--black); text-align: left; }
.comparison-table th:first-child { position: sticky; left: 0; z-index: 2; min-width: 190px; width: 190px; color: var(--black); background: var(--soft); }
.comparison-table thead th:first-child { z-index: 3; color: white; background: var(--black); }
.comparison-table tbody tr:nth-child(even) td { background: #fbfbf9; }
.comparison-table tbody tr.highlight td { background: var(--warning-soft); }
.comparison-table .group-row th { position: static; color: white; background: #3a3a38; text-transform: uppercase; letter-spacing: .08em; font-size: .68rem; }
.comparison-table .group-row td { background: #3a3a38; }
.series-column-name { display: block; font-size: 1rem; }
.series-column-segment { display: block; margin-top: 4px; color: #c7c7c2; font-size: .7rem; }
.comparison-note { margin-top: 16px; padding: 14px 16px; background: var(--info-soft); border-left: 4px solid var(--info); font-size: .8rem; }
.comparison-actions-bottom { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; margin-top: 16px; }

.presentation-layout {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, .55fr);
  overflow: hidden;
}
.presentation-main { min-width: 0; overflow-y: auto; padding: 20px; background: var(--soft); }
.presentation-frame {
  position: relative;
  min-height: 460px;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  background: #e2e2dc;
  border: 1px solid var(--line);
}
.presentation-frame img { width: 100%; max-height: 67vh; object-fit: contain; background: white; }
.presentation-frame.is-zoomed { max-height: 70vh; align-items: flex-start; justify-content: flex-start; overflow: auto; }
.presentation-frame.is-zoomed img { width: auto; max-width: none; max-height: none; object-fit: initial; }
.presentation-frame img.is-loading { opacity: .35; }
.presentation-loading {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-weight: 800;
}
.presentation-loading.error { color: var(--danger); background: var(--danger-soft); }
.edition-switcher { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; margin-top: 10px; }
.edition-switcher span { font-size: .78rem; font-weight: 800; }
.edition-switcher button { padding: 7px 9px; border: 1px solid var(--black); background: white; font-size: .75rem; font-weight: 800; cursor: pointer; }
.edition-switcher button.active { color: white; background: var(--black); }
.presentation-caption { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 12px; }
.presentation-caption strong, .presentation-caption small { display: block; }
.presentation-caption small { color: var(--muted); }
.presentation-dots { display: flex; gap: 6px; }
.presentation-dot { width: 11px; height: 11px; padding: 0; border: 1px solid var(--black); border-radius: 50%; background: white; cursor: pointer; }
.presentation-dot.active { background: var(--black); }
.presentation-controls { display: flex; justify-content: space-between; gap: 8px; margin-top: 12px; }
.presentation-transcript { overflow-y: auto; padding: 28px 24px; border-left: 1px solid var(--line); }
.presentation-transcript h3 { margin: 10px 0 17px; font-size: 1.25rem; }
.presentation-transcript p { color: var(--ink); }
.presentation-transcript dl { margin: 0; }
.presentation-transcript dt { margin-top: 14px; color: var(--black); font-size: .72rem; font-weight: 900; letter-spacing: .07em; text-transform: uppercase; }
.presentation-transcript dd { margin: 4px 0 0; color: var(--muted); }
.micro-note { color: var(--muted); font-size: .76rem; line-height: 1.5; }

.request-form { overflow-y: auto; padding: 24px 26px 0; }
.request-form > label { display: block; margin-bottom: 14px; color: var(--black); font-size: .78rem; font-weight: 850; }
.request-form input, .request-form select, .request-form textarea {
  width: 100%;
  margin-top: 6px;
  padding: 10px 11px;
  border: 1px solid #9d9d97;
  background: white;
}
.request-series { margin: 10px 0 14px; padding: 12px 14px; background: var(--soft); font-size: .84rem; }
.request-form .modal-footer { margin: 18px -26px 0; }

.toast {
  position: fixed;
  z-index: 110;
  left: 50%;
  bottom: 104px;
  width: min(calc(100% - 32px), 560px);
  transform: translateX(-50%);
  padding: 14px 18px;
  color: white;
  background: var(--black);
  border-left: 5px solid var(--yellow);
  box-shadow: var(--shadow);
  text-align: center;
  font-weight: 800;
  font-size: .86rem;
}
.noscript { padding: 16px; color: white; background: var(--danger); text-align: center; }

@media (min-width: 1580px) {
  .series-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 1180px) {
  .site-header { grid-template-columns: auto 1fr; }
  .primary-nav { display: none; }
  .header-actions { justify-self: end; }
  .hero { grid-template-columns: 1fr minmax(290px, .55fr); }
  .series-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .role-grid { grid-template-columns: repeat(3, 1fr); }
  .adoption-steps { grid-template-columns: repeat(3, 1fr); }
  .adoption-steps article:nth-child(3) { border-right: 0; }
  .adoption-steps article:nth-child(n+4) { border-top: 1px solid var(--line); }
  .recommendation-grid { grid-template-columns: 1fr; }
  .recommendation-card { display: grid; grid-template-columns: minmax(320px, .8fr) 1fr auto; align-items: stretch; }
  .recommendation-card__actions { align-content: center; padding-top: 20px; }
}
@media (max-width: 900px) {
  html { scroll-padding-top: 78px; }
  .site-header { min-height: 72px; padding-inline: 18px; }
  .header-actions .button { display: none; }
  .client { font-size: .65rem; }
  .hero { grid-template-columns: 1fr; min-height: auto; padding: 70px 24px 72px; }
  .hero h1 { font-size: clamp(3rem, 12vw, 5.2rem); }
  .hero-panel { max-width: 660px; }
  .trust-strip { grid-template-columns: repeat(2, 1fr); margin: 0; border-inline: 0; }
  .section { padding: 70px 20px; }
  .section-heading, .evidence-section, .recommendation-header { grid-template-columns: 1fr; gap: 20px; }
  .catalog-toolbar { position: static; grid-template-columns: 1fr; }
  .filter-group { justify-content: flex-start; }
  .recommendation-actions { justify-content: flex-start; }
  .recommendation-card { display: flex; }
  .process-grid { grid-template-columns: 1fr; }
  .process-grid article { min-height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .process-grid article:last-child { border-bottom: 0; }
  .detail-hero { grid-template-columns: 160px 1fr; }
  .detail-summary .decision-box { grid-template-columns: 1fr; }
  .presentation-layout { grid-template-columns: 1fr; overflow-y: auto; }
  .presentation-main { overflow: visible; }
  .presentation-transcript { overflow: visible; border-left: 0; border-top: 1px solid var(--line); }
  .presentation-frame { min-height: 300px; }
  .compare-bar { align-items: flex-start; }
  .compare-actions .button-ghost-light { display: none; }
}
@media (max-width: 680px) {
  .site-header { grid-template-columns: 1fr auto; gap: 12px; }
  .brand-mark { width: 26px; height: 33px; border-width: 3px; }
  .brand-copy { font-size: .65rem; }
  .brand-copy small { font-size: .45rem; }
  .client { max-width: 100px; }
  .hero { padding-top: 54px; }
  .hero h1 { font-size: clamp(2.7rem, 15vw, 4rem); }
  .hero-actions { flex-direction: column; align-items: stretch; }
  .trust-strip { grid-template-columns: 1fr 1fr; }
  .trust-strip > div { min-height: 95px; padding: 18px; }
  .section-heading h2, .recommendation-header h2, .evidence-section h2 { font-size: 2.25rem; }
  .series-grid { grid-template-columns: 1fr; }
  .series-cover { height: 230px; }
  .filter-group { display: grid; grid-template-columns: 1fr 1fr; }
  .filter-button:first-child { grid-column: 1 / -1; }
  .role-grid, .adoption-steps { grid-template-columns: 1fr; }
  .adoption-steps article { min-height: auto; border-right: 0; border-top: 1px solid var(--line); }
  .adoption-steps article:first-child { border-top: 0; }
  .recommendation-disclaimer { flex-direction: column; }
  .compare-bar { bottom: 0; width: 100%; padding: 11px 12px; border-top-width: 4px; }
  .compare-names { max-width: 48vw; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .compare-actions .button { min-height: 38px; padding: 8px 11px; }
  #createDossier { display: none; }
  .modal { width: 100%; max-height: 100dvh; height: 100dvh; }
  .modal-shell { max-height: 100dvh; height: 100%; }
  .modal-header { padding: 17px 18px; }
  .modal-header h2 { font-size: 1.55rem; }
  .diagnostic-content { min-height: 0; flex: 1; padding: 20px 18px; }
  .diagnostic-meta { padding-inline: 18px; }
  .option-grid { grid-template-columns: 1fr; }
  .modal-footer { padding: 14px 18px; }
  .detail-hero { grid-template-columns: 1fr; padding: 20px; }
  .detail-cover { height: 240px; }
  .detail-panels { padding: 20px; }
  .fact-grid, .role-panel-grid, .resource-list { grid-template-columns: 1fr; }
  .comparison-content { padding: 18px; }
  .comparison-table th, .comparison-table td { min-width: 220px; }
  .presentation-main, .presentation-transcript { padding: 16px; }
  .presentation-frame { min-height: 220px; }
  .presentation-caption { align-items: flex-start; }
  .request-form { padding: 20px 18px 0; }
  .request-form .modal-footer { margin-inline: -18px; }
  .site-footer { grid-template-columns: 1fr; }
  .footer-links { justify-content: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
}
@media print {
  .site-header, .hero-actions, .catalog-toolbar, .compare-bar, .site-footer, .button, dialog { display: none !important; }
  .hero { min-height: auto; padding: 30px; }
  .section { padding: 30px; }
  .series-card { break-inside: avoid; }
}
