.tabs {
  min-width: 0;
}

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

.tab-button {
  min-height: 38px;
  padding: 0 15px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-sm);
  background: transparent;
  color: var(--color-text-muted);
  font-size: 13px;
}

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

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

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

.toc-tabs {
  max-width: 100%;
  position: sticky;
  top: 10px;
  z-index: 40;
  margin-bottom: 36px;
  padding: 6px;
  display: flex;
  gap: 4px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-deep);
  box-shadow: var(--shadow-raised);
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
}

.toc-tabs a {
  min-height: 38px;
  padding: 0 13px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
  font-size: 12px;
  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-text);
}

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

.faq-item {
  min-width: 0;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
}

.faq-item summary {
  min-height: 62px;
  padding: 17px 48px 17px 18px;
  position: relative;
  display: flex;
  align-items: center;
  color: var(--color-text);
  font-weight: 550;
  list-style: none;
}

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

.faq-item summary::after {
  content: "+";
  width: 24px;
  height: 24px;
  position: absolute;
  right: 16px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-accent);
  font-family: var(--font-mono);
  line-height: 1;
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: rotate(45deg);
}

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

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

.price-card {
  min-width: 0;
  padding: 26px;
  position: relative;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
}

.price-card.is-current,
.price-card.is-featured {
  border-color: var(--color-accent-dark);
  background: var(--color-panel-raised);
  box-shadow: var(--shadow-raised);
}

.value-ribbon {
  min-height: 26px;
  padding: 4px 10px;
  position: absolute;
  top: 14px;
  right: 14px;
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--color-accent-dark);
  border-radius: var(--radius-pill);
  background: var(--color-panel-deep);
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 10px;
}

.price-card h3 {
  padding-right: 72px;
  font-size: 24px;
}

.price-value {
  margin: 25px 0 4px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 54px);
  font-weight: 400;
  line-height: 1;
  letter-spacing: -0.02em;
}

.price-value small {
  color: var(--color-text-muted);
  font-size: 14px;
  letter-spacing: 0;
}

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

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

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

.price-features li::before {
  content: "";
  width: 6px;
  height: 6px;
  position: absolute;
  top: 0.66em;
  left: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
}

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

.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;
  background: var(--color-panel);
  color: var(--color-text-muted);
  font-size: 13px;
}

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

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

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

.data-table th,
.route-table th,
.comparison-table th {
  background: var(--color-panel-raised);
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.data-table td:first-child,
.route-table td:first-child,
.comparison-table td:first-child {
  color: var(--color-text);
  font-weight: 550;
}

.route-group td {
  background: var(--color-panel-deep);
  color: var(--color-accent) !important;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 500 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

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

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

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

.platform-card {
  min-width: 0;
  min-height: 190px;
  padding: 22px 16px;
  display: flex;
  align-items: center;
  flex-direction: column;
  text-align: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
}

.platform-card-icon {
  width: 45px;
  height: 45px;
  margin-bottom: 18px;
  display: grid;
  place-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  background: var(--color-panel-raised);
}

.platform-card-icon svg {
  width: 23px;
  height: 23px;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

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

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

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

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

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

.article-card:hover {
  transform: translateY(-3px);
  border-color: var(--color-text-faint);
}

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

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

.article-card p {
  color: var(--color-text-muted);
  font-size: 14px;
}

.article-card-link {
  margin-top: auto;
  padding-top: 18px;
  color: var(--color-success);
  font-size: 13px;
}

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

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

.promo-block {
  margin-top: 56px;
  padding: clamp(24px, 5vw, 44px);
  position: relative;
  overflow-x: clip;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 26px;
  border: 1px solid var(--color-accent-dark);
  border-radius: var(--radius-lg);
  background: var(--color-panel-raised);
  box-shadow: var(--shadow-raised);
}

.promo-copy strong {
  display: block;
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.promo-copy h2 {
  margin: 9px 0 8px;
  font-size: clamp(27px, 4vw, 42px);
}

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

.float-cta {
  min-height: 42px;
  padding: 0 17px;
  position: fixed;
  right: 22px;
  bottom: 20px;
  z-index: 80;
  display: inline-flex;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--color-success);
  border-radius: var(--radius-pill);
  background: var(--color-success);
  color: var(--color-bg);
  box-shadow: var(--shadow-button);
  font-size: 13px;
  font-weight: 600;
  transition:
    transform var(--transition-fast),
    background-color var(--transition-fast);
}

.float-cta:hover {
  transform: translateY(-2px);
  background: var(--color-text);
}

.float-cta svg {
  width: 15px;
  height: 15px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.8;
  fill: none;
}

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

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

.stat-num {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 24px;
}

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

.check-list {
  margin: 24px 0;
  padding: 0;
  display: grid;
  gap: 10px;
  list-style: none;
}

.check-list li {
  padding: 13px 15px;
  border: 1px solid var(--color-border-soft);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
}

.verdict {
  margin: 26px 0;
  padding: 18px 20px;
  border-left: 3px solid var(--color-success);
  background: var(--color-panel-raised);
  color: var(--color-text-muted);
}

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

.token-label {
  padding: 12px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  overflow-wrap: anywhere;
}

.preview-hero {
  min-height: calc(900px - var(--header-height));
  padding: 24px var(--gutter) 28px;
  position: relative;
  overflow-x: clip;
}

.preview-hero-copy {
  width: min(1120px, 100%);
  margin-inline: auto;
  position: relative;
  z-index: 2;
  text-align: center;
}

.preview-hero .eyebrow {
  margin-bottom: 7px;
}

.preview-hero h1 {
  margin-bottom: 0;
  font-size: clamp(52px, 4.72vw, 68px);
  line-height: 1.1;
}

.title-part {
  display: inline-block;
  opacity: 0;
  transform: translateY(18px);
  animation: title-in 720ms cubic-bezier(0.2, 0.75, 0.25, 1) forwards;
}

.title-part-brand {
  animation-delay: 120ms;
}

.title-part-value {
  margin-left: 0.16em;
  color: var(--color-accent);
  animation-delay: 250ms;
}

.title-part-value::after {
  content: "";
  height: 2px;
  margin-top: 5px;
  display: block;
  background: var(--color-accent-dark);
  transform: scaleX(0);
  transform-origin: left center;
  animation: underline-in 560ms ease-out 680ms forwards;
}

.preview-hero-actions {
  margin-top: 15px;
  display: flex;
  justify-content: center;
  gap: 10px;
}

.preview-hero-description {
  max-width: 800px;
  margin: 12px auto 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.preview-hero-description strong {
  color: var(--color-text);
  font-weight: 550;
}

.trust-strip {
  max-width: 100%;
  margin: 11px auto 0;
  display: flex;
  justify-content: center;
  align-items: center;
  overflow-x: auto;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

.trust-item {
  min-height: 22px;
  padding: 0 13px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  border-right: 1px solid var(--color-border-soft);
  white-space: nowrap;
}

.trust-item:last-child {
  border-right: 0;
}

.trust-item svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  stroke: var(--color-accent);
  stroke-width: 1.6;
  fill: none;
}

.route-device {
  width: min(var(--panel-width), calc(100vw - 76px));
  height: 382px;
  margin: 20px auto 0;
  position: relative;
  z-index: 1;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-panel);
}

.device-chrome {
  height: 42px;
  padding: 0 17px;
  display: flex;
  align-items: center;
  border-bottom: 1px solid var(--color-border-soft);
  background: var(--color-panel-deep);
}

.chrome-lights {
  display: flex;
  align-items: center;
  gap: 6px;
}

.chrome-light {
  width: 7px;
  height: 7px;
  border-radius: var(--radius-pill);
  background: var(--color-border);
}

.chrome-light-active {
  background: var(--color-accent);
}

.device-title {
  margin-left: 14px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.1em;
}

.device-meta {
  margin-left: auto;
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.device-viewport {
  min-width: 1120px;
  height: calc(100% - 42px);
  position: relative;
}

.device-viewport::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--color-border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border-soft) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.18;
}

.wave-stage {
  height: 168px;
  position: relative;
  border-bottom: 1px solid var(--color-border-soft);
}

.wave-caption {
  position: absolute;
  top: 14px;
  left: 18px;
  z-index: 2;
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.09em;
}

.wave-map {
  width: 100%;
  height: 100%;
}

.wave-base {
  stroke: var(--color-border);
  stroke-width: 1;
  stroke-dasharray: 3 8;
  fill: none;
}

.wave-glow {
  stroke: var(--color-accent-dark);
  stroke-width: 8;
  stroke-linecap: round;
  fill: none;
  opacity: 0.1;
}

.wave-line {
  stroke: var(--color-accent);
  stroke-width: 2;
  stroke-linecap: round;
  fill: none;
}

.wave-node-ring {
  fill: var(--color-panel);
  stroke: var(--color-accent-dark);
  stroke-width: 1;
}

.wave-node-core {
  fill: var(--color-accent);
  transform-box: fill-box;
  transform-origin: center;
  animation: node-breathe 2600ms ease-in-out infinite;
}

.city-label {
  fill: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.city-code {
  fill: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: 8px;
}

.traveler {
  width: 7px;
  height: 7px;
  position: absolute;
  left: 0;
  top: 0;
  offset-path: path("M0 92C80 92 70 42 112 42S224 126 336 126 448 42 560 42 672 126 784 126 896 42 1008 42 1080 82 1120 82");
  offset-rotate: 0deg;
  border-radius: var(--radius-pill);
  background: var(--color-text);
  box-shadow: 0 0 12px var(--color-accent);
  animation: travel-wave 7200ms linear infinite;
}

.flag-row,
.platform-row-hero {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}

.flag-row {
  height: 81px;
  border-bottom: 1px solid var(--color-border-soft);
}

.platform-row-hero {
  height: 90px;
  background: var(--color-panel-deep);
}

.route-flag,
.platform-item {
  min-width: 0;
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border-right: 1px solid var(--color-border-soft);
}

.route-flag:last-child,
.platform-item:last-child {
  border-right: 0;
}

.route-flag::before {
  content: "";
  width: 1px;
  height: 12px;
  position: absolute;
  top: 0;
  left: 50%;
  background: var(--color-accent-dark);
}

.flag-content {
  display: flex;
  align-items: center;
  gap: 10px;
}

.flag-badge {
  width: 38px;
  height: 26px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  background: var(--color-panel-raised);
}

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

.flag-text {
  display: flex;
  flex-direction: column;
  gap: 1px;
}

.flag-name {
  color: var(--color-text);
  font-size: 12px;
}

.flag-city {
  color: var(--color-text-faint);
  font-family: var(--font-mono);
  font-size: 8px;
  letter-spacing: 0.08em;
}

.platform-item {
  gap: 9px;
  color: var(--color-text-muted);
}

.platform-item svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
  stroke: currentColor;
  stroke-width: 1.5;
  fill: none;
}

.platform-name {
  font-family: var(--font-mono);
  font-size: 10px;
}

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

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

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

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

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

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

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

.flag-none {
  fill: none;
}

@keyframes title-in {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes underline-in {
  to {
    transform: scaleX(1);
  }
}

@keyframes node-breathe {
  0%,
  100% {
    opacity: 0.62;
    transform: scale(0.82);
  }

  50% {
    opacity: 1;
    transform: scale(1);
  }
}

@keyframes travel-wave {
  0% {
    opacity: 0;
    offset-distance: 0%;
  }

  5% {
    opacity: 1;
  }

  95% {
    opacity: 1;
  }

  100% {
    opacity: 0;
    offset-distance: 100%;
  }
}

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

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

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

  .route-device {
    width: calc(100vw - 36px);
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
  }

  .device-viewport {
    width: 1120px;
  }
}

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

  .price-card {
    padding: 22px;
  }

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

  .promo-block .button {
    width: 100%;
  }

  .float-cta {
    right: 14px;
    bottom: 14px;
  }

  .preview-hero {
    min-height: calc(100vh - var(--header-height));
    padding-top: 24px;
  }

  .preview-hero h1 {
    font-size: 40px;
  }

  .preview-hero-actions {
    flex-direction: column;
  }

  .preview-hero-actions .button {
    width: 100%;
  }

  .route-device {
    width: calc(100vw - 32px);
    margin-top: 18px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .title-part,
  .title-part-value::after,
  .wave-node-core,
  .traveler {
    opacity: 1;
    transform: none;
    animation: none;
  }
}