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

.tab-list [role="tab"] {
  min-height: 40px;
  flex: 0 0 auto;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  padding: 8px 17px;
  background: transparent;
  color: var(--color-text-muted);
  font-weight: 650;
}

.tab-list [role="tab"][aria-selected="true"],
.tab-list [role="tab"].active {
  border-color: var(--color-accent);
  background: var(--color-canvas);
  color: var(--color-text);
  box-shadow: var(--shadow-cell);
}

[role="tabpanel"][hidden] {
  display: none;
}

.toc-tabs {
  position: sticky;
  top: 0;
  z-index: 45;
  display: flex;
  max-width: 100%;
  gap: 5px;
  overflow-x: auto;
  border-block: 1px solid var(--color-border);
  padding: 8px var(--gutter);
  background: var(--color-canvas);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

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

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

body:has(.toc-tabs) section[id] {
  scroll-margin-top: calc(var(--toc-height) + 18px);
}

.faq-list {
  display: grid;
  gap: 10px;
}

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
}

.faq-item summary {
  position: relative;
  min-height: 58px;
  padding: 16px 52px 16px 18px;
  list-style: none;
  font-weight: 750;
}

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

.faq-item summary::after {
  content: "+";
  position: absolute;
  top: 50%;
  right: 18px;
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 20px;
  transform: translateY(-50%);
}

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

.faq-answer {
  padding: 0 18px 18px;
  color: var(--color-text-muted);
}

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

.plan-card {
  position: relative;
  min-width: 0;
  padding: 27px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  box-shadow: var(--shadow-cell);
}

.plan-card.is-featured,
.plan-card.is-current {
  border: 1.5px solid var(--color-accent);
  box-shadow: var(--shadow-soft);
}

.plan-ribbon {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  max-width: calc(100% - 32px);
  padding: 4px 9px;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .06em;
}

.plan-name {
  margin-bottom: 18px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .1em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 4px;
  margin-bottom: 5px;
  font-family: var(--font-display);
}

.plan-price strong {
  font-size: 42px;
  line-height: 1;
}

.plan-price span {
  color: var(--color-text-muted);
}

.plan-note {
  min-height: 25px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.plan-features {
  display: grid;
  gap: 10px;
  margin: 24px 0;
  padding: 20px 0 0;
  border-top: 1px solid var(--color-border);
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 20px;
  color: var(--color-text-muted);
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--color-success);
  font-weight: 800;
}

.plan-card .button {
  width: 100%;
}

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

.data-table,
.network-table,
.compare-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
  background: var(--color-canvas);
}

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

.data-table th,
.network-table th,
.compare-table th {
  background: var(--color-panel);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: .04em;
}

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

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

.network-group td {
  background: var(--color-panel-strong);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: .1em;
}

.table-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text);
  white-space: nowrap;
}

.table-status::before {
  content: "";
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-success);
}

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

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

.platform-card {
  display: flex;
  min-width: 0;
  min-height: 172px;
  align-items: flex-start;
  flex-direction: column;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  box-shadow: var(--shadow-cell);
}

.platform-icon {
  display: grid;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  place-items: center;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  color: var(--color-text);
}

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

.platform-name {
  margin-bottom: 16px;
  font-weight: 800;
}

.platform-card .button {
  width: 100%;
  margin-top: auto;
}

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

.article-card {
  display: flex;
  min-width: 0;
  min-height: 248px;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  box-shadow: var(--shadow-cell);
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}

.article-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-soft);
}

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

.article-card h3 {
  font-size: 21px;
}

.article-card p {
  color: var(--color-text-muted);
}

.article-link {
  margin-top: auto;
  padding-top: 16px;
  color: var(--color-accent-dark);
  font-weight: 750;
}

.callout {
  position: relative;
  margin-block: 24px;
  padding: 20px 22px 20px 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  color: var(--color-text-muted);
}

.callout::before {
  content: "";
  position: absolute;
  top: 14px;
  bottom: 14px;
  left: 10px;
  width: 3px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.callout strong {
  color: var(--color-text);
}

.article-promo {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  margin-top: 56px;
  padding: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.article-promo-brand {
  margin-bottom: 6px;
  font-family: var(--font-display);
  font-size: 18px;
  font-weight: 900;
}

.article-promo p {
  color: var(--color-text-muted);
}

.hero-preview {
  position: relative;
  overflow-x: clip;
  padding-top: 46px;
  padding-bottom: 54px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 780px;
}

.hero-copy h1 {
  margin-top: 18px;
}

.hero-actions,
.cta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
}

.hero-description {
  max-width: 790px;
  margin-bottom: 16px;
  color: var(--color-text-muted);
  font-size: 16.5px;
}

.hero-description strong {
  color: var(--color-text);
}

.trust-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.trust-item svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--color-success);
}

.receiver-wrap {
  margin-top: 34px;
}

.receiver {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.receiver-head {
  display: flex;
  min-width: 0;
  height: 42px;
  align-items: center;
  gap: 18px;
  padding-inline: 22px;
  border-bottom: 1px solid var(--color-border);
}

.receiver-onair,
.receiver-model,
.receiver-meta {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: .1em;
}

.receiver-onair {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 800;
}

.receiver-model,
.receiver-meta {
  color: var(--color-text-muted);
}

.receiver-meta {
  margin-left: auto;
}

.receiver-body {
  display: flex;
  align-items: stretch;
}

.receiver-dial {
  display: grid;
  width: 322px;
  flex: 0 0 auto;
  place-items: center;
  padding: 22px 26px;
  border-right: 1px solid var(--color-border);
}

.receiver-dial svg {
  width: 228px;
  height: 228px;
}

.receiver-channels {
  display: grid;
  min-width: 0;
  flex: 1;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: center;
  gap: 12px;
  padding: 26px 28px;
}

.channel-cell {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 12px;
  padding: 13px 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  box-shadow: var(--shadow-cell);
}

.channel-cell.current {
  border-color: var(--color-accent);
}

.channel-number,
.channel-tag {
  flex: 0 0 auto;
  font-family: var(--font-mono);
}

.channel-number {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 800;
}

.current .channel-number,
.current .channel-tag {
  color: var(--color-accent-dark);
}

.channel-flag {
  width: 28px;
  height: 20px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 3px;
}

.channel-name {
  min-width: 0;
  font-weight: 700;
}

.channel-tag {
  margin-left: auto;
  color: var(--color-text-muted);
  font-size: 10px;
  letter-spacing: .08em;
}

.platform-strip,
.flag-strip {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding-top: 17px;
}

.platform-strip-item,
.flag-strip-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text-muted);
  font-size: 12.5px;
  white-space: nowrap;
}

.platform-strip-item svg {
  width: 17px;
  height: 17px;
  flex: 0 0 auto;
}

.flag-strip {
  flex-wrap: wrap;
  gap: 10px 22px;
  padding-top: 13px;
}

.flag-strip-item svg {
  width: 24px;
  height: 17px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: 3px;
}

.preview-main {
  overflow-x: clip;
}

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

.preview-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.preview-heading h2 {
  margin-bottom: 0;
}

.preview-heading p {
  max-width: 460px;
  margin-bottom: 0;
  color: var(--color-text-muted);
}

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

.swatch {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
}

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

.swatch-color.canvas { background: var(--color-canvas); }
.swatch-color.panel { background: var(--color-panel); }
.swatch-color.panel-strong { background: var(--color-panel-strong); }
.swatch-color.accent { background: var(--color-accent); }
.swatch-color.accent-dark { background: var(--color-accent-dark); }
.swatch-color.text { background: var(--color-text); }
.swatch-color.muted { background: var(--color-text-muted); }
.swatch-color.success { background: var(--color-success); }
.swatch-color.warning { background: var(--color-warning); }
.swatch-color.error { background: var(--color-error); }

.swatch-info {
  padding: 12px;
}

.swatch-info strong,
.swatch-info code {
  display: block;
}

.swatch-info code {
  margin-top: 3px;
  color: var(--color-text-muted);
  font-size: 11px;
}

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

.type-sample {
  padding-bottom: 24px;
  border-bottom: 1px solid var(--color-border);
}

.type-sample:last-child {
  border-bottom: 0;
}

.type-display {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 62px);
  font-weight: 900;
  line-height: 1.08;
}

.type-body {
  max-width: 700px;
  color: var(--color-text-muted);
  font-size: 17px;
}

.type-mono {
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: .08em;
}

.button-showcase,
.badge-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

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

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

@media (max-width: 980px) {
  .pricing-grid,
  .blog-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .receiver-dial {
    width: 270px;
  }

  .receiver-channels {
    padding: 20px;
  }

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

@media (max-width: 768px) {
  .receiver-body {
    display: block;
  }

  .receiver-dial {
    width: 100%;
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .receiver-meta {
    display: none;
  }

  .platform-strip {
    flex-wrap: wrap;
    gap: 12px 22px;
  }

  .preview-heading {
    align-items: flex-start;
    flex-direction: column;
  }

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

@media (max-width: 640px) {
  .pricing-grid,
  .blog-grid,
  .platform-grid {
    grid-template-columns: 1fr;
  }

  .receiver-head {
    gap: 9px;
    padding-inline: 14px;
  }

  .receiver-model {
    font-size: 9px;
  }

  .receiver-channels {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .channel-cell {
    padding: 12px;
  }

  .hero-actions .button,
  .cta-row .button,
  .cta-row .btn-primary,
  .cta-row .btn-secondary {
    width: 100%;
  }

  .trust-row {
    align-items: flex-start;
    flex-direction: column;
    gap: 8px;
  }

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

  .toc-tabs {
    padding-inline: var(--gutter);
  }
}