.tab-shell {
  display: grid;
  gap: 1.5rem;
}

.tab-list {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  padding: 0.35rem;
  overflow-x: auto;
  border-radius: var(--radius-pill);
  background: var(--color-panel-strong);
  -webkit-overflow-scrolling: touch;
}

.tab-list [role="tab"] {
  min-height: 42px;
  padding: 0.55rem 1.1rem;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: transparent;
  color: var(--color-muted);
  font-weight: 700;
  white-space: nowrap;
}

.tab-list [role="tab"][aria-selected="true"],
.tab-list [role="tab"].is-active {
  background: var(--color-canvas);
  box-shadow: var(--shadow-card);
  color: var(--color-brand-deep);
}

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

.toc-tabs {
  position: sticky;
  z-index: 40;
  top: var(--toc-offset);
  display: flex;
  width: 100%;
  max-width: 100%;
  gap: 0.4rem;
  padding: 0.4rem;
  overflow-x: auto;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-pill);
  background: var(--color-canvas);
  box-shadow: var(--shadow-card);
  overscroll-behavior-inline: contain;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.toc-tabs a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  padding: 0.45rem 0.95rem;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  color: var(--color-muted);
  font-size: 0.85rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

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

.toc-sticky-host {
  position: sticky;
  z-index: 39;
}

.faq-list {
  display: grid;
  gap: 0.75rem;
}

.faq-item {
  border-radius: var(--radius-medium);
  background: var(--color-panel);
}

.faq-item summary {
  position: relative;
  display: flex;
  min-height: 64px;
  align-items: center;
  padding: 1rem 3.25rem 1rem 1.25rem;
  color: var(--color-brand-deep);
  font-weight: 750;
  list-style: none;
}

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

.faq-item summary::after {
  position: absolute;
  right: 1.3rem;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: var(--radius-pill);
  background: var(--color-canvas);
  color: var(--color-brand);
  content: "+";
  font-family: var(--font-mono);
  line-height: 1.45rem;
  text-align: center;
  transition: transform var(--motion-fast) ease;
}

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

.faq-answer {
  padding: 0 1.25rem 1.25rem;
  color: var(--color-muted);
}

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

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

.plan-card {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 1.7rem;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-large);
  background: var(--color-canvas);
  flex-direction: column;
}

.plan-card.is-current,
.plan-card.is-featured {
  border-color: var(--color-brand);
  box-shadow: var(--shadow-float);
}

.plan-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  display: inline-flex;
  max-width: calc(100% - 2rem);
  min-height: 28px;
  align-items: center;
  padding: 0.2rem 0.75rem;
  overflow: hidden;
  border-radius: var(--radius-pill);
  background: var(--color-pulse);
  color: var(--color-white);
  font-size: 0.72rem;
  font-weight: 800;
}

.plan-name {
  margin-bottom: 0.5rem;
  padding-right: 5rem;
  color: var(--color-brand-deep);
  font-size: 1.15rem;
  font-weight: 800;
}

.plan-price {
  display: flex;
  margin-block: 1rem;
  align-items: baseline;
  gap: 0.3rem;
  color: var(--color-brand);
}

.plan-price strong {
  font-family: var(--font-display);
  font-size: clamp(2.3rem, 5vw, 3.4rem);
  line-height: 1;
}

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

.plan-features {
  margin-bottom: 1.4rem;
  padding: 0;
  color: var(--color-muted);
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 1.35rem;
}

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

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

.table-scroll,
.location-table-wrap,
.compare-table-wrap {
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  border-radius: var(--radius-medium);
  -webkit-overflow-scrolling: touch;
}

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

.data-table th,
.data-table td,
.location-table th,
.location-table td,
.compare-table th,
.compare-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: middle;
}

.data-table thead th,
.location-table thead th,
.compare-table thead th {
  background: var(--color-brand-deep);
  color: var(--color-white);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.04em;
}

.data-table tbody th,
.location-table tbody th,
.compare-table tbody th {
  color: var(--color-brand-deep);
  font-weight: 750;
}

.data-table tbody tr:nth-child(even),
.location-table tbody tr:nth-child(even),
.compare-table tbody tr:nth-child(even) {
  background: var(--color-panel);
}

.data-table tbody tr:hover,
.location-table tbody tr:hover,
.compare-table tbody tr:hover {
  background: var(--color-stage-start);
}

.table-group td {
  background: var(--color-panel-strong);
  color: var(--color-brand-deep);
  font-weight: 800;
}

.route-type,
.stream-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0.2rem 0.65rem;
  border-radius: var(--radius-pill);
  background: var(--color-panel-strong);
  color: var(--color-brand-deep);
  font-size: 0.75rem;
  font-weight: 750;
  white-space: nowrap;
}

.stream-status.is-supported {
  background: var(--color-stage-start);
  color: var(--color-success);
}

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

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

.platform-card {
  display: flex;
  min-width: 0;
  min-height: 190px;
  padding: 1.25rem;
  border-radius: var(--radius-large);
  background: var(--color-panel);
  align-items: flex-start;
  flex-direction: column;
}

.platform-icon {
  display: grid;
  width: 46px;
  height: 46px;
  margin-bottom: 1rem;
  border-radius: var(--radius-medium);
  background: var(--color-canvas);
  color: var(--color-brand);
  place-items: center;
}

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

.platform-name {
  margin-bottom: 0.25rem;
  color: var(--color-brand-deep);
  font-weight: 800;
}

.platform-card p {
  color: var(--color-muted);
  font-size: 0.82rem;
}

.platform-card .btn {
  width: 100%;
  min-height: 40px;
  margin-top: auto;
  padding-inline: 0.8rem;
  font-size: 0.8rem;
}

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

.article-card {
  display: flex;
  min-width: 0;
  min-height: 280px;
  padding: 1.5rem;
  border-radius: var(--radius-large);
  background: var(--color-panel);
  color: var(--color-ink);
  flex-direction: column;
  text-decoration: none;
  transition: transform var(--motion-fast) var(--ease-standard), box-shadow var(--motion-fast) ease;
}

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

.article-meta {
  display: flex;
  margin-bottom: 1.25rem;
  align-items: center;
  flex-wrap: wrap;
  gap: 0.55rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.72rem;
}

.article-card h3 {
  font-size: 1.35rem;
}

.article-card p {
  color: var(--color-muted);
  font-size: 0.9rem;
}

.article-more {
  margin-top: auto;
  color: var(--color-brand);
  font-weight: 750;
}

.callout {
  position: relative;
  margin-block: 1.5rem;
  padding: 1.2rem 1.3rem 1.2rem 3.3rem;
  border-radius: var(--radius-medium);
  background: var(--color-stage-start);
  color: var(--color-brand-deep);
}

.callout::before {
  position: absolute;
  top: 1.2rem;
  left: 1.15rem;
  display: grid;
  width: 1.45rem;
  height: 1.45rem;
  border-radius: var(--radius-pill);
  background: var(--color-brand);
  color: var(--color-white);
  content: "i";
  font-family: var(--font-mono);
  font-size: 0.8rem;
  font-weight: 800;
  place-items: center;
}

.callout-warning {
  background: var(--color-panel-strong);
  color: var(--color-ink);
}

.callout-warning::before {
  background: var(--color-warning);
  content: "!";
}

.callout-success::before {
  background: var(--color-success);
  content: "✓";
}

.end-promo {
  position: relative;
  display: grid;
  margin-block: 3rem;
  padding: clamp(1.5rem, 4vw, 3rem);
  overflow: hidden;
  border-radius: var(--radius-large);
  background: var(--gradient-promo);
  color: var(--color-white);
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 2rem;
}

.end-promo::after {
  position: absolute;
  top: -60px;
  right: 18%;
  width: 180px;
  height: 180px;
  border: 1px solid var(--color-brand-bright);
  border-radius: var(--radius-pill);
  content: "";
}

.end-promo-copy,
.end-promo-actions {
  position: relative;
  z-index: 1;
}

.end-promo h2,
.end-promo h3 {
  margin-bottom: 0.5rem;
  color: var(--color-white);
}

.end-promo p {
  margin-bottom: 0;
  color: var(--color-stage-end);
}

.end-promo .btn-primary {
  background: var(--color-white);
  box-shadow: none;
  color: var(--color-brand-deep);
}

.end-promo .btn-primary:hover {
  background: var(--color-panel);
  color: var(--color-brand-deep);
}

.hero {
  padding-top: 30px;
  overflow-x: clip;
  text-align: center;
}

.hero .badge {
  margin-inline: auto;
}

.hero h1 {
  margin: 18px 0 20px;
  color: var(--color-brand);
  font-size: 60px;
  line-height: 1.08;
}

.hero-copy {
  max-width: 660px;
  margin: 0 auto 14px;
  color: var(--color-muted);
  font-size: 15px;
  line-height: 1.7;
}

.hero-copy strong {
  color: var(--color-brand-deep);
}

.hero-actions {
  display: flex;
  margin-bottom: 18px;
  justify-content: center;
  gap: 14px;
}

.hero-trust {
  display: flex;
  margin: 0 0 24px;
  padding: 0;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 26px;
  color: var(--color-muted);
  font-size: 13px;
  list-style: none;
}

.hero-trust li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hero-trust svg {
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
  fill: none;
  stroke: var(--color-success);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.9;
}

.iris-stage {
  position: relative;
  height: 344px;
  overflow: hidden;
  border-radius: var(--radius-large);
  background: var(--gradient-stage);
}

.iris-device {
  position: absolute;
  top: -14px;
  left: 50%;
  width: 308px;
  height: 308px;
  transform: translateX(-50%);
}

.iris-ring {
  fill: none;
  stroke: var(--color-brand);
  stroke-width: 2;
  opacity: 0.28;
}

.iris-core {
  fill: none;
  stroke: var(--color-brand-bright);
  stroke-width: 1.4;
  opacity: 0.35;
}

.iris-blade-heavy {
  fill: none;
  stroke: var(--color-brand);
  stroke-linecap: round;
  stroke-width: 7;
  opacity: 0.92;
}

.iris-blade-light {
  fill: none;
  stroke: var(--color-brand);
  stroke-linecap: round;
  stroke-width: 2.6;
  opacity: 0.42;
}

.iris-scan {
  animation: iris-scan 26s linear infinite;
  fill: none;
  stroke: var(--color-pulse);
  stroke-dasharray: 15 85;
  stroke-linecap: round;
  stroke-width: 3.2;
  transform-box: fill-box;
  transform-origin: center;
}

@keyframes iris-scan {
  to {
    transform: rotate(360deg);
  }
}

.pass-card {
  position: absolute;
  top: 38px;
  right: 104px;
  display: flex;
  height: 46px;
  padding-inline: 20px;
  border-radius: var(--radius-pill);
  background: var(--color-canvas);
  box-shadow: var(--shadow-float);
  align-items: center;
  gap: 10px;
}

.pass-card-dot {
  position: relative;
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-pulse);
}

.pass-card-dot::after {
  position: absolute;
  inset: -4px;
  border: 1.5px solid var(--color-pulse);
  border-radius: var(--radius-pill);
  animation: pass-ping 2.4s ease-out infinite;
  content: "";
  opacity: 0.5;
}

@keyframes pass-ping {
  from {
    opacity: 0.7;
    transform: scale(0.5);
  }

  to {
    opacity: 0;
    transform: scale(1.35);
  }
}

.pass-card-text {
  color: var(--color-brand-deep);
  font-size: 13px;
  font-weight: 750;
}

.pass-card-code {
  padding-left: 10px;
  border-left: 1px solid var(--color-line);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: 0.06em;
}

.region-strip {
  position: absolute;
  right: 20px;
  bottom: 16px;
  left: 20px;
  display: flex;
  height: 58px;
  padding-inline: 24px;
  border-radius: 22px;
  background: var(--color-canvas);
  box-shadow: var(--shadow-card);
  align-items: center;
  gap: 10px;
}

.region-label {
  padding-right: 14px;
  flex: 0 0 auto;
  border-right: 1px solid var(--color-line);
  color: var(--color-brand-deep);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.region-list {
  display: flex;
  flex: 1;
  align-items: center;
  justify-content: space-around;
}

.region-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.region-item svg {
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 5px;
  box-shadow: 0 0 0 1px var(--color-line);
}

.region-name {
  color: var(--color-ink);
  font-size: 13px;
  font-weight: 650;
}

.region-code {
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

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

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

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

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

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

.hero-platforms {
  display: flex;
  padding: 24px 0 18px;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 18px 44px;
}

.hero-platform {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  color: var(--color-brand);
}

.hero-platform svg {
  width: 21px;
  height: 21px;
  flex: 0 0 auto;
}

.hero-platform span {
  color: var(--color-brand-deep);
  font-size: 13.5px;
  font-weight: 650;
}

.process-layout {
  display: grid;
  grid-template-columns: minmax(180px, 0.32fr) minmax(0, 1fr);
  gap: 2rem;
}

.process-index {
  position: sticky;
  top: calc(var(--header-height) + 2rem);
  display: grid;
  align-self: start;
  gap: 0.4rem;
}

.process-index a {
  display: flex;
  min-height: 46px;
  padding: 0.65rem 0.8rem;
  border-radius: var(--radius-pill);
  align-items: center;
  gap: 0.65rem;
  color: var(--color-muted);
  font-weight: 750;
  text-decoration: none;
}

.process-index a.is-active {
  background: var(--color-panel);
  color: var(--color-brand-deep);
}

.process-index a.is-active::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  background: var(--color-pulse);
  content: "";
}

.process-cards {
  display: grid;
  gap: 1.25rem;
}

.process-card {
  min-height: 360px;
  padding: clamp(1.5rem, 4vw, 3rem);
  border-radius: var(--radius-large);
  background: var(--color-canvas);
  box-shadow: var(--shadow-card);
}

.process-card-icon {
  width: 52px;
  height: 52px;
  margin-bottom: 2rem;
  color: var(--color-brand);
}

.process-footnote {
  margin-top: 2rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.74rem;
  letter-spacing: 0.04em;
}

.token-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.9rem;
}

.token-swatch {
  overflow: hidden;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-medium);
  background: var(--color-canvas);
}

.token-color {
  height: 78px;
}

.token-color-canvas { background: var(--color-canvas); }
.token-color-panel { background: var(--color-panel); }
.token-color-panel-strong { background: var(--color-panel-strong); }
.token-color-brand { background: var(--color-brand); }
.token-color-brand-deep { background: var(--color-brand-deep); }
.token-color-ink { background: var(--color-ink); }
.token-color-muted { background: var(--color-muted); }
.token-color-pulse { background: var(--color-pulse); }
.token-color-success { background: var(--color-success); }
.token-color-warning { background: var(--color-warning); }

.token-label {
  display: grid;
  padding: 0.75rem;
  gap: 0.15rem;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 0.7rem;
}

.preview-block {
  padding: clamp(1.25rem, 4vw, 2.5rem);
  border-radius: var(--radius-large);
  background: var(--color-panel);
}

@media (max-width: 1080px) {
  .hero h1 {
    font-size: 40px;
  }

  .pass-card {
    right: 32px;
  }

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

  .region-code {
    display: none;
  }

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

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

  .process-layout {
    grid-template-columns: 1fr;
  }

  .process-index {
    position: static;
    display: flex;
    max-width: 100%;
    overflow-x: auto;
  }

  .process-index a {
    flex: 0 0 auto;
  }

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

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

  .region-strip {
    height: auto;
    padding-block: 12px;
  }

  .region-list {
    justify-content: flex-start;
    overflow-x: auto;
    gap: 1.2rem;
  }

  .region-item {
    flex: 0 0 auto;
  }
}

@media (max-width: 640px) {
  .hero {
    padding-top: 22px;
  }

  .hero h1 {
    font-size: clamp(28px, 9vw, 40px);
  }

  .hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions .btn {
    width: 100%;
  }

  .hero-copy {
    font-size: 14px;
  }

  .hero-trust {
    justify-content: flex-start;
  }

  .iris-stage {
    height: 390px;
  }

  .iris-device {
    top: 18px;
    width: 250px;
    height: 250px;
  }

  .pass-card {
    top: 18px;
    right: 16px;
    left: 16px;
    width: fit-content;
    max-width: calc(100% - 32px);
    height: auto;
    min-height: 42px;
    margin-inline: auto;
    padding-block: 0.5rem;
    flex-wrap: wrap;
    justify-content: center;
  }

  .pass-card-code {
    display: none;
  }

  .region-strip {
    right: 12px;
    bottom: 12px;
    left: 12px;
    align-items: flex-start;
    flex-direction: column;
  }

  .region-label {
    width: 100%;
    padding-right: 0;
    padding-bottom: 7px;
    border-right: 0;
    border-bottom: 1px solid var(--color-line);
  }

  .region-list {
    width: 100%;
    padding-bottom: 2px;
  }

  .region-name {
    font-size: 12px;
  }

  .hero-platforms {
    justify-content: flex-start;
    gap: 14px 20px;
  }

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

  .platform-card {
    min-height: 170px;
  }

  .plan-name {
    padding-right: 0;
  }

  .plan-badge {
    position: static;
    width: fit-content;
    margin-bottom: 0.75rem;
  }

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

@media (prefers-reduced-motion: reduce) {
  .iris-scan,
  .pass-card-dot::after {
    animation: none;
  }

  .article-card:hover {
    transform: none;
  }
}