.tabs {
  min-width: 0;
}

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

.tab-list [role="tab"] {
  min-height: 40px;
  flex: 0 0 auto;
  padding: 0 16px;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}

.tab-list [role="tab"][aria-selected="true"] {
  background: var(--color-panel);
  color: var(--color-accent-dark);
  box-shadow: var(--shadow-float);
}

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

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

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

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

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

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

.faq-item {
  overflow: clip;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-float);
}

.faq-item summary {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 17px 20px;
  color: var(--color-text);
  cursor: pointer;
  font-weight: 680;
  list-style: none;
}

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

.faq-item summary::after {
  width: 25px;
  height: 25px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  margin-left: auto;
  border-radius: var(--radius-pill);
  background: var(--color-panel-tint);
  color: var(--color-accent-dark);
  content: "+";
  font-family: var(--font-mono);
  font-size: 16px;
}

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

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

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

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

.plan-card {
  position: relative;
  min-width: 0;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-float);
}

.plan-card.is-featured,
.plan-card[aria-current="true"] {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, var(--color-panel-tint), var(--color-panel));
  box-shadow: var(--shadow-card);
}

.plan-ribbon {
  max-width: 100%;
  align-self: flex-end;
  margin-bottom: 12px;
  padding: 5px 9px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-size: 11px;
  font-weight: 720;
}

.plan-name {
  margin: 0 0 18px;
  color: var(--color-text);
  font-size: 18px;
  font-weight: 720;
}

.plan-price {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 8px;
}

.plan-price strong {
  font-family: var(--font-mono);
  font-size: 36px;
  letter-spacing: -0.04em;
}

.plan-price span {
  color: var(--color-text-muted);
  font-size: 13px;
}

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

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

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

.plan-features li::before {
  position: absolute;
  top: 0.24em;
  left: 0;
  width: 15px;
  height: 15px;
  display: grid;
  place-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  content: "✓";
  font-size: 10px;
  font-weight: 800;
}

.plan-card .button {
  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);
  background: var(--color-panel);
  -webkit-overflow-scrolling: touch;
}

.data-table,
.route-table,
.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  color: var(--color-text-muted);
  font-size: 14px;
}

.route-table {
  min-width: 760px;
}

.comparison-table {
  min-width: 820px;
}

.data-table th,
.data-table td,
.route-table th,
.route-table td,
.comparison-table th,
.comparison-table td {
  padding: 15px 17px;
  border-bottom: 1px solid var(--color-border);
  text-align: left;
  vertical-align: middle;
}

.data-table thead th,
.route-table thead th,
.comparison-table thead th {
  background: var(--color-panel-tint);
  color: var(--color-text);
  font-size: 12px;
  font-weight: 720;
  letter-spacing: 0.035em;
}

.data-table tbody th,
.route-table tbody th,
.comparison-table tbody th {
  color: var(--color-text);
  font-weight: 680;
}

.data-table tr:last-child td,
.data-table tr:last-child th,
.route-table tr:last-child td,
.route-table tr:last-child th,
.comparison-table tr:last-child td,
.comparison-table tr:last-child th {
  border-bottom: 0;
}

.route-group td {
  background: var(--color-panel-soft);
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.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 {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-float);
  transition:
    transform var(--transition-fast),
    box-shadow var(--transition-fast);
}

.platform-card:hover {
  box-shadow: var(--shadow-card);
  transform: translateY(-3px);
}

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

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

.platform-name {
  margin-bottom: 5px;
  color: var(--color-text);
  font-weight: 700;
}

.platform-meta {
  margin-bottom: 18px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.platform-card .button {
  width: 100%;
  margin-top: auto;
  padding-inline: 12px;
}

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

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

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

.article-card-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 9px;
  margin-bottom: 16px;
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 11px;
}

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

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

.article-card-link {
  margin-top: auto;
  color: var(--color-accent-dark);
  font-size: 14px;
  font-weight: 680;
}

.callout {
  position: relative;
  margin: 26px 0;
  padding: 20px 22px 20px 26px;
  overflow-x: clip;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-tint);
  color: var(--color-text-muted);
}

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

.callout strong:first-child {
  display: block;
  margin-bottom: 5px;
}

.promo-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 28px;
  margin-top: 56px;
  padding: 30px;
  overflow-x: clip;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background:
    radial-gradient(circle at 92% 10%, var(--color-accent-soft), transparent 34%),
    var(--color-panel);
  box-shadow: var(--shadow-card);
}

.promo-brand {
  margin-bottom: 7px;
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 700;
}

.promo-block h2,
.promo-block h3 {
  margin-bottom: 8px;
  font-size: clamp(24px, 3vw, 34px);
}

.promo-block p {
  max-width: 650px;
  margin-bottom: 0;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin: 26px 0;
}

.stat-card {
  padding: 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
}

.stat-num {
  display: block;
  color: var(--accent-dark);
  font-family: var(--font-mono);
  font-size: 22px;
  font-weight: 720;
}

.stat-label {
  color: var(--color-text-muted);
  font-size: 12px;
}

.check-list {
  display: grid;
  gap: 9px;
  padding-left: 0;
  list-style: none;
}

.verdict {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
  background: var(--color-panel-tint);
  color: var(--color-text-muted);
}

.hero-preview {
  position: relative;
  min-height: 720px;
  padding-top: 32px;
  padding-bottom: 48px;
  overflow-x: clip;
}

.hero-preview::before {
  position: absolute;
  top: 20px;
  right: -140px;
  width: 680px;
  height: 680px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, var(--color-panel-tint), transparent 68%);
  content: "";
  pointer-events: none;
}

.hero-bento {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 0.98fr);
  gap: 28px;
}

.hero-main {
  min-height: 620px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 42px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
}

.hero-main .button-row {
  margin-top: 28px;
}

.hero-main .lead {
  margin-top: 23px;
}

.trust-row,
.platform-line,
.flag-line {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
}

.trust-row {
  margin-top: 22px;
}

.platform-line {
  margin-top: 18px;
}

.platform-chip,
.flag-chip {
  max-width: 100%;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  padding: 0 9px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel-soft);
  color: var(--color-text-muted);
  font-size: 11px;
  font-weight: 580;
}

.platform-chip svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  color: var(--color-accent-dark);
}

.hero-side {
  min-height: 620px;
  display: grid;
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 14px;
}

.monitor-board {
  position: relative;
  min-height: 498px;
  padding: 20px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: linear-gradient(145deg, var(--color-panel), var(--color-panel-soft));
  box-shadow: var(--shadow-card);
}

.monitor-board::before {
  position: absolute;
  top: -90px;
  right: -70px;
  width: 280px;
  height: 280px;
  border-radius: var(--radius-pill);
  background: radial-gradient(circle, var(--color-accent-soft), transparent 68%);
  content: "";
}

.monitor-board::after {
  position: absolute;
  inset: 12px;
  border: 1px dashed var(--color-border-strong);
  border-radius: var(--radius-lg);
  content: "";
  pointer-events: none;
}

.monitor-topbar {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 34px;
}

.monitor-heading {
  display: flex;
  align-items: center;
  gap: 9px;
  font-size: 13px;
  font-weight: 690;
}

.signal-mark {
  height: 16px;
  display: inline-flex;
  align-items: flex-end;
  gap: 3px;
}

.signal-mark i {
  width: 3px;
  display: block;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

.signal-mark i:nth-child(1) {
  height: 6px;
}

.signal-mark i:nth-child(2) {
  height: 13px;
}

.signal-mark i:nth-child(3) {
  height: 9px;
}

.monitor-state {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.route-stack {
  position: relative;
  z-index: 2;
  height: 354px;
  margin-top: 38px;
}

.route-card {
  position: absolute;
  right: 8px;
  left: 8px;
  min-height: 98px;
  display: grid;
  grid-template-columns: 46px 92px minmax(82px, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: 0 16px 34px var(--color-shadow);
}

.route-card:nth-child(1) {
  top: 0;
  right: 2px;
  left: 20px;
  z-index: 3;
  animation: monitor-float-a 5.8s ease-in-out infinite;
}

.route-card:nth-child(2) {
  top: 112px;
  right: 22px;
  left: 0;
  z-index: 2;
  animation: monitor-float-b 6.6s ease-in-out infinite;
}

.route-card:nth-child(3) {
  top: 224px;
  right: 0;
  left: 28px;
  z-index: 1;
  animation: monitor-float-c 6.1s ease-in-out infinite;
}

.flag-badge {
  width: 42px;
  height: 30px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: var(--color-panel);
}

.flag-badge svg {
  width: 100%;
  height: 100%;
}

.flag-base {
  fill: var(--flag-white);
}

.flag-red {
  fill: var(--flag-red);
}

.flag-red-dark {
  fill: var(--flag-red-dark);
}

.flag-blue {
  fill: var(--flag-blue);
}

.flag-blue-dark {
  fill: var(--flag-blue-dark);
}

.flag-black {
  fill: var(--flag-black);
}

.flag-yellow {
  fill: var(--flag-yellow);
}

.flag-stroke {
  fill: none;
  stroke: var(--flag-blue-dark);
  stroke-width: 1.4;
}

.route-name strong {
  display: block;
  margin-bottom: 4px;
  font-size: 13px;
  font-weight: 700;
}

.route-code {
  display: block;
  color: var(--color-text-soft);
  font-family: var(--font-mono);
  font-size: 9px;
}

.wave-window {
  position: relative;
  height: 46px;
  overflow: hidden;
  mask-image: linear-gradient(90deg, transparent, var(--color-text) 13%, var(--color-text) 87%, transparent);
}

.wave-window::before {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(var(--color-grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-grid) 1px, transparent 1px);
  background-size: 12px 12px;
  content: "";
}

.wave-strip {
  position: relative;
  width: 200%;
  height: 46px;
  display: flex;
  animation: wave-travel 4.6s linear infinite;
}

.wave-strip svg {
  width: 50%;
  height: 46px;
  flex: 0 0 50%;
}

.wave-line {
  fill: none;
  stroke: var(--color-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.1;
  vector-effect: non-scaling-stroke;
}

.route-status {
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 9px;
  border: 1px solid var(--color-success-ring);
  border-radius: var(--radius-pill);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-size: 10px;
  font-weight: 690;
  white-space: nowrap;
}

.hero-facts {
  display: grid;
  grid-template-columns: 1fr 0.8fr;
  gap: 12px;
}

.hero-fact {
  padding: 17px 18px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-tint);
}

.hero-fact span {
  display: block;
  color: var(--color-text-soft);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.08em;
}

.hero-fact strong {
  display: block;
  margin-top: 6px;
  font-family: var(--font-mono);
  font-size: 15px;
}

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

.preview-swatch {
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
}

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

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

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

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

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

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

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

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

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

.preview-swatch code {
  display: block;
  padding: 12px;
  border: 0;
  background: transparent;
  font-size: 11px;
}

@keyframes monitor-float-a {
  0%,
  100% {
    transform: translateY(0);
  }

  50% {
    transform: translateY(-5px);
  }
}

@keyframes monitor-float-b {
  0%,
  100% {
    transform: translateY(-2px);
  }

  50% {
    transform: translateY(4px);
  }
}

@keyframes monitor-float-c {
  0%,
  100% {
    transform: translateY(2px);
  }

  50% {
    transform: translateY(-3px);
  }
}

@keyframes wave-travel {
  to {
    transform: translateX(-50%);
  }
}

@media (max-width: 1000px) {
  .platform-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .hero-bento {
    grid-template-columns: 1fr;
  }

  .hero-main,
  .hero-side {
    min-height: auto;
  }
}

@media (max-width: 768px) {
  .pricing-grid {
    grid-template-columns: 1fr;
  }

  .hero-preview {
    min-height: auto;
  }

  .hero-main {
    padding: 26px;
  }

  .monitor-board {
    min-height: 460px;
  }

  .route-stack {
    height: 330px;
  }

  .route-card {
    grid-template-columns: 43px 86px minmax(70px, 1fr);
    min-height: 90px;
  }

  .route-card:nth-child(2) {
    top: 102px;
  }

  .route-card:nth-child(3) {
    top: 204px;
  }

  .route-status {
    display: none;
  }

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

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

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

  .platform-card {
    display: grid;
    grid-template-columns: auto 1fr;
    column-gap: 14px;
  }

  .platform-icon {
    grid-row: 1 / 4;
    margin-bottom: 0;
  }

  .platform-card .button {
    width: fit-content;
  }

  .hero-main {
    padding: 22px;
  }

  .monitor-board {
    min-height: 420px;
    padding: 16px;
  }

  .route-stack {
    height: 298px;
    margin-top: 25px;
  }

  .route-card {
    grid-template-columns: 39px 78px minmax(55px, 1fr);
    gap: 7px;
    min-height: 82px;
    padding-inline: 9px;
  }

  .route-card:nth-child(2) {
    top: 92px;
  }

  .route-card:nth-child(3) {
    top: 184px;
  }

  .flag-badge {
    width: 37px;
    height: 27px;
  }

  .route-code {
    font-size: 8px;
  }

  .hero-facts {
    grid-template-columns: 1fr;
  }

  .toc-tabs {
    border-radius: var(--radius-sm);
  }
}

@media (prefers-reduced-motion: reduce) {
  .route-card,
  .wave-strip {
    animation: none;
  }
}