.badge,
.chip,
.tag {
  display: inline-flex;
  min-height: 26px;
  max-width: 100%;
  align-items: center;
  gap: 7px;
  overflow: hidden;
  padding: 4px 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-accent,
.tag-accent {
  color: var(--color-accent);
}

.badge-dot::before {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
  content: "";
}

.tab-shell {
  max-width: 100%;
}

.tab-list {
  display: flex;
  max-width: 100%;
  align-items: center;
  gap: 4px;
  overflow-x: auto;
  padding: 5px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.tab-list [role="tab"] {
  display: inline-flex;
  min-height: 40px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  padding: 8px 16px;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-muted);
  font-weight: 650;
  cursor: pointer;
}

.tab-list [role="tab"][aria-selected="true"],
.tab-list [role="tab"].is-active {
  background: var(--color-panel-raised);
  color: var(--color-text);
}

.tab-panel {
  padding-top: 24px;
}

.tab-panel[hidden] {
  display: none;
}

.toc-tabs {
  position: sticky;
  top: 12px;
  z-index: 20;
  display: flex;
  max-width: 100%;
  gap: 5px;
  overflow-x: auto;
  margin-bottom: 48px;
  padding: 7px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-near);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.toc-tabs a {
  display: inline-flex;
  min-height: 38px;
  flex: 0 0 auto;
  align-items: center;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 13px;
  white-space: nowrap;
}

.toc-tabs a:hover,
.toc-tabs a.is-current,
.toc-tabs a[aria-current="location"] {
  background: var(--color-panel-raised);
  color: var(--color-accent);
}

body:has(.toc-tabs) section[id] {
  scroll-margin-top: var(--toc-offset);
}

.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  position: relative;
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 16px 42px 16px 0;
  color: var(--color-text);
  font-weight: 700;
  cursor: pointer;
  list-style: none;
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  position: absolute;
  right: 4px;
  width: 24px;
  height: 24px;
  color: var(--color-accent);
  content: "+";
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 24px;
  text-align: center;
}

.faq-item[open] summary::after {
  content: "−";
}

.faq-answer {
  max-width: 780px;
  padding: 0 42px 20px 0;
}

.faq-answer p:last-child {
  margin-bottom: 0;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.plan-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  transform-style: preserve-3d;
}

.plan-card.is-featured {
  border-color: var(--color-accent-dark);
  background: var(--color-panel-raised);
  box-shadow: 0 0 30px var(--color-accent-soft);
}

.plan-ribbon {
  position: absolute;
  top: 15px;
  right: 15px;
  display: inline-flex;
  min-height: 25px;
  align-items: center;
  padding: 4px 9px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 11px;
  font-weight: 800;
}

.plan-name {
  margin-bottom: 9px;
  font-size: 20px;
}

.plan-cycle {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.plan-price {
  margin: 24px 0 4px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
}

.plan-price small {
  color: var(--color-muted);
  font-size: 14px;
  font-weight: 500;
}

.plan-traffic {
  margin-bottom: 20px;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

.plan-list {
  margin: 0 0 26px;
  list-style: none;
}

.plan-list li {
  position: relative;
  padding: 8px 0 8px 20px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 14px;
}

.plan-list li::before {
  position: absolute;
  top: 11px;
  left: 0;
  color: var(--color-accent);
  content: "✓";
}

.plan-card .btn {
  width: 100%;
  margin-top: auto;
}

.table-scroll {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  -webkit-overflow-scrolling: touch;
}

.data-table,
.location-table,
.compare-table {
  width: 100%;
  min-width: 680px;
  background: var(--color-panel);
}

.data-table th,
.data-table td,
.location-table th,
.location-table td,
.compare-table th,
.compare-table td {
  padding: 14px 16px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: top;
}

.data-table tr:last-child td,
.location-table tr:last-child td,
.compare-table tr:last-child td {
  border-bottom: 0;
}

.data-table th,
.location-table th,
.compare-table th {
  background: var(--color-panel-raised);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
}

.data-table td:first-child,
.location-table td:first-child,
.compare-table td:first-child {
  color: var(--color-text);
  font-weight: 650;
}

.data-table td,
.location-table td,
.compare-table td {
  color: var(--color-muted);
  font-size: 14px;
}

.prose > .data-table {
  display: block;
  max-width: 100%;
  min-width: 0;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.region-group + .region-group {
  margin-top: 32px;
}

.region-title {
  margin-bottom: 12px;
  font-family: var(--font-mono);
  font-size: 13px;
}

.platform-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 12px;
}

.platform-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.platform-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-raised);
  color: var(--color-text);
}

.platform-icon svg {
  width: 22px;
  height: 22px;
}

.platform-card h3 {
  margin-bottom: 5px;
  font-size: 17px;
}

.platform-card p {
  margin-bottom: 18px;
  font-size: 12px;
}

.platform-card .btn {
  width: 100%;
  margin-top: auto;
  padding-inline: 10px;
  font-size: 12px;
}

.article-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  margin-bottom: 18px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.article-card h3 {
  margin-bottom: 12px;
  font-size: 20px;
}

.article-card p {
  margin-bottom: 24px;
  font-size: 14px;
}

.article-card .text-link {
  margin-top: auto;
}

.callout {
  padding: 20px 22px;
  border-left: 3px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-panel);
}

.callout strong {
  display: block;
  margin-bottom: 5px;
  color: var(--color-text);
}

.callout p:last-child {
  margin-bottom: 0;
}

.promo-block {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  box-shadow: var(--shadow-near);
}

.promo-logo {
  width: 54px;
  height: 54px;
  padding: 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel-raised);
}

.promo-block h2 {
  margin-bottom: 4px;
  font-size: 24px;
}

.promo-block p {
  margin-bottom: 0;
}

.feature-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.88fr);
  align-items: center;
  gap: 72px;
}

.feature-pair.is-reversed .feature-visual {
  order: -1;
}

.feature-list {
  border-top: 1px solid var(--color-border);
}

.feature-item {
  padding: 24px 0;
  border-bottom: 1px solid var(--color-border);
}

.feature-item h3 {
  margin-bottom: 7px;
  font-size: 21px;
}

.feature-item p {
  margin-bottom: 0;
  max-width: 38em;
}

.feature-visual {
  aspect-ratio: 1;
  display: grid;
  place-items: center;
  padding: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  box-shadow: var(--shadow-far);
  transform-style: preserve-3d;
}

.feature-well {
  display: grid;
  width: min(72%, 280px);
  aspect-ratio: 1;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(180deg, var(--color-highlight), transparent 60%), var(--color-panel-raised);
}

.feature-well img {
  width: 42%;
  height: 42%;
}

.feature-topology {
  width: 100%;
  height: auto;
}

.feature-topology .edge {
  stroke: var(--color-border);
  stroke-width: 1.2;
}

.feature-topology .active-edge {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2.2;
  filter: drop-shadow(0 0 5px var(--color-accent-glow));
}

.feature-topology circle {
  fill: var(--color-node);
}

.feature-topology circle.active {
  fill: var(--color-accent);
}

.feature-topology text {
  fill: var(--color-muted);
  font-family: var(--font-body);
  font-size: 10px;
}

.hero-preview {
  position: relative;
  max-width: 100%;
  overflow-x: clip;
  padding-top: 56px;
  padding-bottom: 96px;
  background: linear-gradient(180deg, var(--color-bg-top), var(--color-bg) 52%);
}

.hero-preview-inner {
  position: relative;
}

.hero-preview-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 460px;
  align-items: end;
  gap: 64px;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-title {
  margin: 18px 0 0;
  font-weight: 800;
}

.hero-title .brand-title {
  letter-spacing: -0.02em;
}

.hero-lede {
  max-width: 30em;
  margin: 22px 0 0;
  color: var(--color-muted);
  font-size: 20px;
  line-height: 1.6;
}

.hero-lede strong {
  color: var(--color-text);
  font-weight: 600;
}

.hero-actions {
  margin-top: 30px;
}

.hero-spec {
  position: relative;
  z-index: 2;
}

.spec-row {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 15px 0;
  border-top: 1px solid var(--color-border);
}

.spec-row:last-child {
  border-bottom: 1px solid var(--color-border);
}

.spec-key {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.platform-line,
.flag-line,
.trust-line {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 18px;
  margin: 0;
  list-style: none;
}

.platform-line li,
.flag-line li,
.trust-line li {
  display: inline-flex;
  min-width: 0;
  align-items: center;
  gap: 7px;
  color: var(--color-text);
  font-size: 13px;
}

.platform-line svg {
  width: 17px;
  height: 17px;
  color: var(--color-muted);
}

.flag-line svg {
  width: 20px;
  height: 14px;
  overflow: hidden;
  border-radius: var(--radius-xs);
}

.flag-line svg.flag-square {
  width: 14px;
  height: 14px;
}

.trust-line {
  gap: 6px 0;
}

.trust-line li + li::before {
  margin: 0 10px;
  color: var(--color-dim);
  content: "·";
}

.hero-device {
  position: relative;
  margin-top: 60px;
}

.hero-device::before {
  position: absolute;
  z-index: 0;
  inset: -14% -8% -22% 34%;
  background: radial-gradient(closest-side, var(--color-neutral-halo), transparent 72%);
  content: "";
  pointer-events: none;
}

.client-window {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr) 380px;
  height: 600px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-near), var(--shadow-far);
}

.client-pane {
  display: flex;
  min-width: 0;
  flex-direction: column;
}

.client-side {
  border-right: 1px solid var(--color-border);
  background: var(--color-side);
}

.client-doc {
  border-right: 1px solid var(--color-border);
  background: var(--color-panel);
}

.client-graph {
  background: var(--color-graph);
}

.window-bar {
  display: flex;
  height: 44px;
  flex: 0 0 auto;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-side);
}

.client-doc .window-bar,
.client-graph .window-bar {
  gap: 0;
  padding: 0 10px 0 0;
}

.window-lights {
  display: inline-flex;
  gap: 7px;
  margin-right: 6px;
}

.window-lights i {
  width: 11px;
  height: 11px;
  border-radius: var(--radius-pill);
}

.window-lights .red {
  background: var(--color-error);
}

.window-lights .yellow {
  background: var(--color-warning);
}

.window-lights .green {
  background: var(--color-success);
}

.window-tool {
  display: inline-flex;
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
}

.window-tool.push {
  margin-left: auto;
}

.window-tool svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.window-tab {
  display: inline-flex;
  height: 44px;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  border-right: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 13px;
  white-space: nowrap;
}

.window-tab.is-on {
  margin-bottom: -1px;
  border-bottom: 1px solid var(--color-panel);
  background: var(--color-panel);
  color: var(--color-text);
  font-weight: 500;
}

.client-graph .window-tab.is-on {
  border-bottom-color: var(--color-graph);
  background: var(--color-graph);
}

.window-tab-add {
  padding-inline: 12px;
  color: var(--color-dim);
}

.side-identity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 14px 10px;
}

.logo-well {
  display: inline-flex;
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 8px;
  background: linear-gradient(180deg, var(--color-highlight), transparent 60%), var(--color-panel-raised);
}

.logo-well img {
  width: 16px;
  height: 16px;
}

.side-identity-text {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.side-identity-text b {
  font-size: 13px;
}

.side-identity-text span {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.location-tree {
  margin: 0;
  padding: 4px 8px;
  list-style: none;
}

.location-tree li {
  display: flex;
  height: 30px;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 13px;
}

.location-tree .tree-folder {
  color: var(--color-text);
  font-weight: 500;
}

.location-tree .tree-leaf {
  padding-left: 24px;
}

.location-tree .tree-leaf.is-on {
  background: var(--color-panel-raised);
  color: var(--color-text);
  font-weight: 500;
}

.location-tree .tree-leaf.is-on::after {
  width: 6px;
  height: 6px;
  margin-left: auto;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  box-shadow: 0 0 8px var(--color-accent-glow);
  content: "";
}

.tree-type {
  margin-left: auto;
  color: var(--color-dim);
  font-family: var(--font-mono);
  font-size: 10px;
}

.side-status {
  display: flex;
  margin-top: auto;
  flex-direction: column;
  padding: 12px 16px;
  border-top: 1px solid var(--color-border);
}

.side-status b {
  font-size: 12px;
}

.side-status span {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11px;
}

.route-document {
  min-width: 0;
  padding: 26px 28px 28px;
}

.route-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.route-title {
  margin-bottom: 0;
  font-size: 24px;
  font-weight: 800;
}

.connected-pill {
  display: inline-flex;
  height: 28px;
  flex: 0 0 auto;
  align-items: center;
  gap: 7px;
  padding: 0 11px 0 9px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel-raised);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.connected-pill i {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  box-shadow: 0 0 10px var(--color-accent-glow), 0 0 0 3px var(--color-accent-soft);
}

.route-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.route-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.route-meta b {
  color: var(--color-text);
  font-weight: 500;
}

.route-document > p {
  margin: 14px 0 0;
  font-size: 14px;
}

.route-facts {
  display: grid;
  grid-template-columns: 1fr 1fr;
  margin-top: 18px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-side);
}

.route-facts div {
  padding: 12px 14px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.route-facts div:nth-child(2n) {
  border-right: 0;
}

.route-facts div:nth-child(n + 3) {
  border-bottom: 0;
}

.route-facts b {
  display: block;
  font-family: var(--font-mono);
  font-size: 20px;
  line-height: 1.1;
}

.route-facts span {
  display: block;
  margin-top: 4px;
  color: var(--color-muted);
  font-size: 11px;
}

.route-note-title {
  margin-top: 18px;
  font-size: 13px;
}

.graph-canvas {
  position: relative;
  flex: 1;
  min-height: 0;
}

.graph-canvas svg {
  width: 100%;
  height: 100%;
}

.graph-edge {
  stroke: var(--color-border);
  stroke-width: 1;
}

.graph-glow {
  fill: none;
  stroke: var(--color-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-opacity: 0.35;
  stroke-width: 7;
}

.graph-bridge {
  fill: none;
  stroke: var(--color-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
}

.graph-node {
  fill: var(--color-node);
}

.graph-node.active {
  fill: var(--color-accent);
}

.graph-device {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 2;
}

.graph-label {
  fill: var(--color-muted);
  font-family: var(--font-body);
  font-size: 11px;
}

.graph-label.active {
  fill: var(--color-text);
  font-weight: 500;
}

.phone-card {
  position: absolute;
  right: -40px;
  bottom: -48px;
  z-index: 3;
  width: 220px;
  padding: 14px 16px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-phone);
  background: linear-gradient(180deg, var(--color-highlight), transparent 22%), var(--color-phone);
  box-shadow: var(--shadow-phone);
}

.phone-status {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-inline: 4px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.phone-status svg {
  width: 13px;
  height: 9px;
}

.phone-title {
  margin: 20px 0 0;
  font-size: 17px;
  font-weight: 800;
}

.phone-tags {
  display: flex;
  gap: 6px;
  margin-top: 8px;
}

.phone-list-title {
  margin-top: 14px;
  color: var(--color-text);
  font-size: 12px;
  font-weight: 700;
}

.phone-list {
  margin: 6px 0 0;
  list-style: none;
}

.phone-list li {
  display: flex;
  height: 26px;
  align-items: center;
  gap: 9px;
  color: var(--color-text);
  font-size: 13px;
}

.phone-check {
  display: inline-flex;
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  background: var(--color-accent);
  color: var(--color-bg);
  font-size: 10px;
  font-weight: 800;
}

.phone-pay {
  display: flex;
  justify-content: space-between;
  margin-top: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 11px;
}

.phone-pay b {
  color: var(--color-text);
  font-weight: 500;
}

.device-pill {
  position: absolute;
  top: -15px;
  z-index: 4;
  display: inline-flex;
  height: 30px;
  align-items: center;
  gap: 7px;
  padding: 0 12px 0 10px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel-raised);
  box-shadow: var(--shadow-pill);
  color: var(--color-text);
  font-size: 12px;
  white-space: nowrap;
}

.device-pill.left {
  left: 28px;
}

.device-pill.right {
  right: 28px;
}

.device-pill svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: var(--color-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

.preview-section {
  padding-top: 88px;
  padding-bottom: 88px;
  border-top: 1px solid var(--color-border);
}

.preview-section-title {
  margin-bottom: 36px;
}

.preview-section-title h2 {
  margin-bottom: 10px;
}

.preview-section-title p {
  max-width: 720px;
  margin-bottom: 0;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.token-card {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.token-swatch {
  height: 88px;
  border-bottom: 1px solid var(--color-border);
}

.token-swatch.bg {
  background: var(--color-bg);
}

.token-swatch.top {
  background: var(--color-bg-top);
}

.token-swatch.panel {
  background: var(--color-panel);
}

.token-swatch.raised {
  background: var(--color-panel-raised);
}

.token-swatch.border {
  background: var(--color-border);
}

.token-swatch.accent {
  background: var(--color-accent);
}

.token-swatch.text {
  background: var(--color-text);
}

.token-swatch.muted {
  background: var(--color-muted);
}

.token-meta {
  padding: 13px;
}

.token-meta b,
.token-meta code {
  display: block;
}

.token-meta code {
  color: var(--color-muted);
  font-size: 11px;
}

.type-samples {
  display: grid;
  gap: 22px;
}

.type-display {
  margin-bottom: 0;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 800;
}

.type-heading {
  margin-bottom: 0;
  font-size: 36px;
}

.type-body {
  max-width: 42em;
  margin-bottom: 0;
  font-size: 18px;
}

.type-mono {
  margin-bottom: 0;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

.preview-button-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.preview-component-stack {
  display: grid;
  gap: 34px;
}

.preview-footer {
  margin-top: 0;
}

.static-footer-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 42px;
}

.static-footer-grid p {
  max-width: 33em;
}

@media (max-width: 1180px) {
  .hero-preview-top {
    grid-template-columns: minmax(0, 1fr) 400px;
    gap: 40px;
  }

  .client-window {
    grid-template-columns: 220px minmax(0, 1fr) 320px;
  }

  .platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1024px) {
  .hero-preview-top {
    grid-template-columns: 1fr;
    align-items: start;
    gap: 36px;
  }

  .client-window {
    grid-template-columns: 200px minmax(0, 1fr) 280px;
  }

  .pricing-grid,
  .article-grid {
    grid-template-columns: 1fr 1fr;
  }

  .feature-pair {
    gap: 38px;
  }
}

@media (max-width: 768px) {
  .hero-preview {
    padding-top: 40px;
    padding-bottom: 64px;
  }

  .hero-device {
    margin-top: 44px;
  }

  .client-window {
    grid-template-columns: 200px minmax(0, 1fr);
    height: auto;
    min-height: 560px;
  }

  .client-graph {
    display: none;
  }

  .client-doc {
    border-right: 0;
  }

  .route-document {
    padding-bottom: 300px;
  }

  .phone-card {
    right: 16px;
    bottom: 16px;
    width: 200px;
  }

  .device-pill {
    display: none;
  }

  .pricing-grid,
  .article-grid,
  .feature-pair {
    grid-template-columns: 1fr;
  }

  .plan-card.is-featured {
    padding-top: 58px;
  }

  .feature-pair .feature-visual,
  .feature-pair.is-reversed .feature-visual {
    order: -1;
  }

  .platform-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .token-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .promo-block {
    grid-template-columns: auto minmax(0, 1fr);
  }

  .promo-block .btn {
    grid-column: 1 / -1;
    width: 100%;
  }

  .static-footer-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .hero-preview {
    max-width: 100%;
    padding-top: 36px;
    padding-bottom: 56px;
  }

  .hero-title {
    margin-top: 14px;
  }

  .hero-lede {
    font-size: 16px;
  }

  .hero-actions {
    margin-top: 22px;
  }

  .spec-row {
    grid-template-columns: 1fr;
    gap: 10px;
    padding: 12px 0;
  }

  .client-window {
    grid-template-columns: 120px minmax(0, 1fr);
  }

  .side-identity-text span,
  .tree-type,
  .side-status {
    display: none;
  }

  .location-tree .tree-leaf {
    height: auto;
    min-height: 30px;
    padding-block: 6px;
    overflow-wrap: anywhere;
  }

  .route-document {
    padding: 20px 18px 280px;
  }

  .route-title-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 10px;
  }

  .route-title {
    font-size: 20px;
  }

  .route-facts b {
    font-size: 17px;
  }

  .phone-card {
    width: 188px;
  }

  .platform-grid {
    grid-template-columns: 1fr;
  }

  .token-grid {
    grid-template-columns: 1fr 1fr;
  }

  .toc-tabs {
    top: 6px;
  }
}