:root {
  --ink: #17202a;
  --muted: #5c6b7a;
  --paper: #eef1f4;
  --panel: #fbfcfd;
  --line: #d5dde4;
  --line-strong: #b7c3ce;
  --header: #101820;
  --header-2: #1a2633;
  --brass: #8d6733;
  --brass-bright: #d7b27a;
  --steel: #1e4f86;
  --ok: #176b45;
  --ok-bg: #e5f4ec;
  --no: #6d5a4a;
  --no-bg: #f3eee8;
  --warn: #8a4b12;
  --warn-bg: #fbf1e4;
  --shadow: 0 24px 60px rgba(16, 24, 32, 0.28);
  --sans: "IBM Plex Sans", "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", Consolas, monospace;
  --header-h: 72px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
}
h1, h2, h3, p { margin: 0; }
a { color: var(--steel); }
button, input { font: inherit; }
:focus-visible {
  outline: 2px solid var(--steel);
  outline-offset: 2px;
}

.skip {
  position: absolute;
  left: 12px;
  top: -40px;
  background: white;
  padding: 8px 12px;
  z-index: 20;
}
.skip:focus { top: 12px; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  background: var(--header);
  color: #e7edf2;
  border-bottom: 3px solid var(--brass-bright);
}
.topbar-inner {
  max-width: 1180px;
  margin: 0 auto;
  min-height: var(--header-h);
  padding: 12px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}
.brand-mark {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid var(--brass-bright);
  color: var(--brass-bright);
  font-family: var(--mono);
  font-size: 13px;
  letter-spacing: 0.04em;
}
.brand-text { display: flex; flex-direction: column; gap: 1px; }
.brand-kicker {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #9aabba;
}
.brand-name { font-weight: 600; letter-spacing: -0.01em; line-height: 1.25; }
.topbar-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 12px 18px; }
.topbar-meta {
  display: flex;
  gap: 14px;
  margin: 0;
  color: #9aabba;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.site-link {
  color: var(--brass-bright);
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
.site-link:hover { text-decoration: underline; }

.shell {
  max-width: 1180px;
  margin: 0 auto;
  padding: 28px 24px 64px;
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 36px;
  align-items: start;
}
main, .overview, .block, .panel, .compare-wrap, .table-scroll { min-width: 0; }

.rail {
  position: sticky;
  top: calc(var(--header-h) + 18px);
  display: flex;
  flex-direction: column;
  gap: 18px;
}
.rail-label {
  margin: 0;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.rail nav { display: flex; flex-direction: column; gap: 4px; }
.rail nav a {
  color: var(--ink);
  text-decoration: none;
  padding: 7px 0 7px 10px;
  border-left: 2px solid var(--line);
  font-size: 14px;
}
.rail nav a:hover,
.rail nav a.active {
  border-left-color: var(--brass);
  color: var(--brass);
}
.filter { display: flex; flex-direction: column; gap: 6px; }
.filter span {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.filter input,
.fields input {
  width: 100%;
  border: 1px solid var(--line-strong);
  background: white;
  color: var(--ink);
  padding: 8px 10px;
  border-radius: 0;
}
.filter input:focus,
.fields input:focus { border-color: var(--steel); outline: none; }

.overview { padding-bottom: 12px; }
.eyebrow {
  margin: 0 0 6px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}
h1 {
  font-size: clamp(32px, 4vw, 44px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  font-weight: 600;
  max-width: 18em;
}
.lede {
  margin-top: 14px;
  max-width: 62ch;
  color: var(--muted);
  font-size: 18px;
}

.tier-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}
.tier-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 180px;
  padding: 18px 18px 16px;
  text-decoration: none;
  color: inherit;
  background: var(--panel);
  border: 1px solid var(--line);
}
.tier-card:hover { border-color: var(--ink); }
.tier-index {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.tier-card h2 { font-size: 22px; letter-spacing: -0.02em; }
.tier-card p { color: var(--muted); }
.tier-count {
  margin-top: auto;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.tier-connect { border-top: 3px solid var(--steel); }
.tier-full { border-top: 3px solid var(--brass-bright); background: #101820; color: #f3f6f8; }
.tier-full p,
.tier-full .tier-index { color: #b7c5d1; }
.tier-full:hover { border-color: var(--brass-bright); }
.tier-community { border-top: 3px solid #1f6b5a; }
.tier-nps { border-top: 3px solid #3d5a80; }
.tier-tips { border-top: 3px solid #8d4e2a; }

.compare-wrap { margin-top: 22px; overflow-x: auto; }
.compare { min-width: 1100px; }
.compare, .matrix {
  width: 100%;
  border-collapse: collapse;
  background: var(--panel);
  border: 1px solid var(--line);
}
.compare caption {
  caption-side: top;
  text-align: left;
  padding: 0 0 8px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--brass);
}
.compare th, .compare td, .matrix th, .matrix td {
  text-align: left;
  padding: 11px 14px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
  overflow-wrap: anywhere;
}
.compare thead th, .matrix thead th {
  background: #f4f7f9;
  font-size: 12px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.compare tbody th { font-weight: 500; }
.footnote, .action-note, .empty-note {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 13px;
}
.flag {
  display: inline-block;
  padding: 2px 7px;
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.flag-yes { background: var(--ok-bg); color: var(--ok); }
.flag-no { background: var(--no-bg); color: var(--no); }
.flag-optional { background: var(--warn-bg); color: var(--warn); }

.block { margin-top: 42px; scroll-margin-top: 92px; }
.overview, .panel, .setup-banner { scroll-margin-top: 92px; }
.block-head { max-width: 68ch; margin-bottom: 16px; }
.block-head h2, .panel-head h3, .setup-banner h3, .distribute h3 {
  font-size: 28px;
  letter-spacing: -0.02em;
  font-weight: 600;
}
.block-head p:last-child, .panel-head p, .setup-banner p, .distribute header p {
  margin-top: 6px;
  color: var(--muted);
}

.spec, .service-list, .platform-list { list-style: none; margin: 0; padding: 0; }
.spec {
  border-top: 1px solid var(--line-strong);
  background: var(--panel);
}
.spec li {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 16px 14px;
  border-bottom: 1px solid var(--line);
}
.spec-id {
  font-family: var(--mono);
  color: var(--muted);
  padding-top: 2px;
}
.spec h3 { font-size: 17px; letter-spacing: -0.01em; }
.spec p, .service-list p { margin-top: 4px; color: var(--muted); }
.ent {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ok);
  background: var(--ok-bg);
  padding: 4px 8px;
}
.ent-optional { color: var(--warn); background: var(--warn-bg); }
.spec .feature-list {
  list-style: disc;
  margin: 10px 0 8px;
  padding-left: 18px;
}
.spec .feature-list li {
  display: list-item;
  padding: 2px 0;
  border: 0;
}
.action-row { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }

.training {
  margin-top: 18px;
  border: 1px solid var(--line);
  background: var(--panel);
}
.training h3 {
  margin: 0;
  padding: 14px 14px 4px;
  font-size: 16px;
  letter-spacing: -0.01em;
}
.training ul { list-style: none; margin: 8px 0 0; padding: 0; }
.training li { border-top: 1px solid var(--line); }
.training a {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 16px;
  padding: 11px 14px;
  color: var(--ink);
  text-decoration: none;
  font-weight: 500;
}
.training a:hover { color: var(--steel); }
.training-name { min-width: 0; }
.training-note {
  margin: 0;
  padding: 0 14px 4px;
  color: var(--muted);
  font-size: 14px;
}
.training a .video-label {
  flex: none;
  font-family: var(--mono);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}

.panel {
  margin-top: 18px;
  background: var(--panel);
  border: 1px solid var(--line);
  padding: 16px;
}
.panel-head { margin-bottom: 12px; }
.panel-head h3 { font-size: 20px; }
.table-scroll { overflow-x: auto; }
.matrix td:last-child, .matrix th:last-child { width: 150px; }
.matrix tbody tr:last-child td { border-bottom: 0; }
.star { color: var(--brass); font-weight: 600; }
sup.tm {
  font-family: var(--sans);
  font-size: 0.55em;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 0;
  margin-left: 0.08em;
  vertical-align: super;
}

.platform-list {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.platform-list li, .service-list li {
  border: 1px solid var(--line);
  padding: 12px 12px;
  background: #fff;
}
.platform-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: baseline;
}
.platform-list strong, .service-list h3 { font-size: 15px; font-weight: 600; }
.included {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--ok);
}

.setup-banner {
  margin-top: 18px;
  padding: 18px;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: center;
  background: var(--header);
  color: #f3f6f8;
}
.setup-banner p { color: #b7c5d1; }
.setup-banner .eyebrow { color: var(--brass-bright); }

.btn {
  appearance: none;
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  line-height: 1.2;
}
.btn-solid { background: var(--steel); color: white; }
.btn-solid:hover { background: #173f6b; }
.btn-brass { background: var(--brass-bright); color: #1a140c; font-weight: 600; }
.btn-brass:hover { background: #e3c48f; }
.btn-app {
  background: #fff;
  color: #101820;
  font-weight: 700;
  letter-spacing: 0.03em;
}
.btn-app:hover { background: #f4f7f9; }
.btn-app span { text-transform: uppercase; }

.app-banner {
  margin-top: 22px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 16px 18px;
  text-decoration: none;
  color: #f3f6f8;
  background: #101820;
  border-top: 3px solid var(--brass-bright);
}
.app-banner:hover { color: #fff; }
.app-banner-copy { min-width: 0; }
.app-banner strong {
  display: block;
  margin-top: 2px;
  font-size: 20px;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.app-banner .eyebrow { color: var(--brass-bright); }
.app-banner-go {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--brass-bright);
  white-space: nowrap;
}
.btn-line { background: white; color: var(--ink); border-color: var(--line-strong); }
.btn-line:hover { border-color: var(--ink); }
.btn-small { padding: 6px 10px; font-size: 13px; }
.icon-btn {
  appearance: none;
  background: transparent;
  border: 1px solid #c5d0da;
  color: var(--ink);
  padding: 6px 10px;
  cursor: pointer;
}

.colophon {
  border-top: 1px solid var(--line);
  padding: 22px 24px 32px;
  max-width: 1180px;
  margin: 0 auto;
  color: var(--muted);
  font-size: 13px;
}
.colophon p + p { margin-top: 4px; }

dialog {
  width: min(920px, calc(100vw - 28px));
  max-height: min(880px, calc(100vh - 28px));
  padding: 0;
  border: 1px solid #243140;
  background: #f7f8fa;
  color: var(--ink);
  box-shadow: var(--shadow);
}
dialog::backdrop { background: rgba(16, 24, 32, 0.62); }
.dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 16px 18px;
  background: white;
  border-bottom: 1px solid var(--line);
}
.dialog-head h2 { font-size: 24px; letter-spacing: -0.02em; }
.dialog-body { padding: 18px; display: flex; flex-direction: column; gap: 18px; }
.notice, .callout {
  padding: 12px 14px;
  border: 1px solid var(--line);
  background: white;
}
.notice { border-left: 3px solid var(--brass); }
.notice p, .callout p { margin-top: 6px; color: var(--muted); }
.steps {
  counter-reset: step;
  margin: 14px 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.steps > li {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  column-gap: 10px;
  row-gap: 4px;
  counter-increment: step;
}
.steps > li::before {
  content: counter(step);
  grid-column: 1;
  grid-row: 1 / -1;
  font-family: var(--mono);
  color: var(--brass);
  padding-top: 2px;
}
.steps > li > * { grid-column: 2; min-width: 0; }
.steps h3, .callout h3 { font-size: 16px; }
.steps p, .video-line { color: var(--ink); }
.steps ul { margin: 8px 0 0; padding-left: 18px; color: var(--muted); }
.steps ul li { display: list-item; margin: 4px 0; }
.steps code {
  font-family: var(--mono);
  font-size: 0.92em;
  background: var(--warn-bg);
  padding: 1px 5px;
}
.video-line { margin: 0 0 12px; }
.distribute {
  padding: 16px;
  background: white;
  border: 1px solid var(--line);
}
.fields { display: grid; grid-template-columns: minmax(0, 480px); gap: 12px; margin-top: 14px; }
.fields label, .copy-label span {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
}
.warn {
  margin: 10px 0 0;
  padding: 8px 10px;
  background: var(--warn-bg);
  color: var(--warn);
  font-size: 14px;
}
.warn[hidden] { display: none; }
.copy-block { margin-top: 14px; }
.copy-label { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 6px; }
.copy-value {
  margin: 0;
  padding: 12px;
  background: #101820;
  color: #e6edf3;
  font-family: var(--mono);
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
}
.email-preview {
  max-height: 360px;
  overflow: auto;
  padding: 16px 18px;
  background: #fff;
  color: #222;
  border: 1px solid var(--line-strong);
  font-family: Calibri, "Segoe UI", sans-serif;
  font-size: 15px;
  line-height: 1.5;
}
.email-preview p { margin: 0 0 14px; }
.email-preview ul { margin: 0 0 14px 1.25em; padding: 0; }
.email-preview li { margin: 0 0 8px; }
.email-preview a { color: #1d4e89; }
.copy-status { min-height: 1.2em; margin: 10px 0 0; color: var(--ok); font-size: 14px; }
[hidden] { display: none !important; }

@media (max-width: 860px) {
  .shell { grid-template-columns: 1fr; padding: 18px 16px 48px; }
  .rail { position: static; }
  .rail nav { flex-direction: row; flex-wrap: wrap; gap: 8px 14px; }
  .rail nav a { border-left: 0; border-bottom: 2px solid transparent; padding: 4px 0; }
  .topbar-meta { display: none; }
  .topbar-inner { align-items: flex-start; flex-wrap: wrap; }
  .brand { min-width: 0; flex: 1; }
  .tier-grid, .platform-list { grid-template-columns: 1fr; }
  .site-link { font-size: 11px; }
  .setup-banner, .app-banner { flex-direction: column; align-items: flex-start; }
  .spec li { grid-template-columns: 36px minmax(0, 1fr); }
  .ent { grid-column: 2; justify-self: start; }
  h1 { max-width: none; }
  .topbar-inner { padding: 12px 16px; }
  .btn { white-space: nowrap; }
}

@media (max-width: 640px) {
  .topbar-inner { flex-direction: column; align-items: stretch; }
  .topbar-actions { width: 100%; }
  .brand-name { font-size: 16px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}
