.hero-preview {
  position: relative;
  overflow-x: clip;
  padding-top: 36px;
  text-align: center;
}

.hero-preview::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(var(--color-grid) 1px, var(--color-transparent) 1px),
    linear-gradient(90deg, var(--color-grid) 1px, var(--color-transparent) 1px);
  background-size: 54px 54px;
  content: "";
  opacity: 0.32;
  pointer-events: none;
}

.hero-preview::after {
  position: absolute;
  top: 22%;
  left: 50%;
  width: min(820px, 88vw);
  height: 390px;
  border-radius: var(--radius-pill);
  background: radial-gradient(ellipse, var(--color-accent-mist), var(--color-transparent) 70%);
  content: "";
  pointer-events: none;
  transform: translateX(-50%);
}

.hero-preview > .wrap {
  position: relative;
  z-index: 1;
}

.hero-preview .badge {
  margin-bottom: 18px;
}

.hero-preview .hero-title {
  margin-inline: auto;
}

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

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

.hero-chips {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
  margin-bottom: 8px;
}

.canal-visual {
  position: relative;
  margin-top: 14px;
  overflow-x: clip;
  background: radial-gradient(58% 90% at 50% 62%, var(--color-accent-mist), var(--color-transparent) 72%);
}

.canal-visual svg {
  width: 100%;
  height: auto;
}

.canal-line {
  fill: none;
  stroke: var(--color-line-strong);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.4;
}

.canal-line-soft {
  fill: none;
  stroke: var(--color-line-soft);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.1;
}

.canal-rib {
  fill: none;
  opacity: 0.58;
  stroke: var(--color-line-soft);
  stroke-width: 0.9;
}

.canal-water-low {
  fill: var(--color-accent-water);
}

.canal-water-mid {
  fill: var(--color-accent-water-soft);
}

.canal-water-deep {
  fill: var(--color-accent-water-deep);
}

.canal-surface {
  fill: none;
  opacity: 0.88;
  stroke: var(--color-accent);
  stroke-linecap: round;
  stroke-width: 1.6;
}

.canal-wave {
  fill: none;
  opacity: 0.38;
  stroke: var(--color-accent);
  stroke-linecap: round;
  stroke-width: 1.2;
}

.canal-panel-fill {
  fill: var(--color-panel);
}

.canal-raised-fill {
  fill: var(--color-panel-raised);
}

.canal-note {
  fill: var(--color-text-muted);
  font-family: var(--font-mono);
}

.canal-text {
  fill: var(--color-text);
  font-family: var(--font-body);
}

.canal-lamp {
  fill: var(--color-accent);
}

.canal-lamp-halo {
  fill: var(--color-accent);
  opacity: 0.22;
}

.canal-sign {
  fill: var(--color-panel);
  stroke: var(--color-border);
  stroke-width: 1;
}

.canal-edge {
  fill: none;
  stroke: var(--color-edge-highlight);
  stroke-width: 1;
}

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

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

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

.flag-border {
  fill: none;
  stroke: var(--color-border);
  stroke-width: 1;
}

.hero-facts {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
  box-shadow: inset 0 1px 0 var(--color-edge-highlight);
}

.hero-facts-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.hero-fact {
  display: flex;
  min-width: 0;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  padding: 19px 12px;
}

.hero-fact + .hero-fact {
  border-left: 1px solid var(--color-border);
}

.hero-fact b {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 21px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.hero-fact span {
  color: var(--color-text-muted);
  font-size: 12px;
}

.platform-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 30px;
  padding: 18px 0 24px;
}

.platform-mark {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  gap: 8px;
  color: var(--color-text-muted);
  font-size: 13px;
  transition: color var(--transition-fast);
}

.platform-mark:hover {
  color: var(--color-accent);
}

.platform-mark svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.destination-chip-row {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}

.destination-chip {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
  gap: 9px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  padding: 7px 11px;
  color: var(--color-text-muted);
  font-size: 13px;
}

.destination-chip svg {
  width: 28px;
  height: 18px;
  flex-shrink: 0;
  overflow: hidden;
  border-radius: var(--radius-xs);
}

.tab-shell {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: 8px;
  box-shadow: inset 0 1px 0 var(--color-edge-highlight);
}

.tab-list {
  display: flex;
  max-width: 100%;
  gap: 5px;
  overflow-x: auto;
  scrollbar-width: thin;
}

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

.tab-list [role="tab"]:hover {
  color: var(--color-text);
}

.tab-list [role="tab"][aria-selected="true"],
.tab-list [role="tab"].is-active {
  border-color: var(--color-border);
  background: var(--color-panel-raised);
  box-shadow: inset 0 1px 0 var(--color-edge-highlight);
  color: var(--color-text);
}

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

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

.toc-tabs {
  position: sticky;
  top: 12px;
  z-index: 40;
  display: flex;
  max-width: 100%;
  gap: 6px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  box-shadow: var(--shadow-panel), inset 0 1px 0 var(--color-edge-highlight);
  padding: 7px;
  scrollbar-width: thin;
  white-space: nowrap;
}

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

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

.toc-tabs a.is-current::before,
.toc-tabs a[aria-current="true"]::before {
  width: 6px;
  height: 6px;
  margin-right: 8px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  content: "";
}

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

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

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  box-shadow: inset 0 1px 0 var(--color-edge-highlight);
}

.faq-item summary {
  position: relative;
  min-height: 54px;
  padding: 16px 52px 16px 18px;
  color: var(--color-text);
  font-weight: 650;
  list-style: none;
}

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

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 19px;
  width: 10px;
  height: 10px;
  border-right: 1px solid var(--color-text-muted);
  border-bottom: 1px solid var(--color-text-muted);
  content: "";
  transform: translateY(-70%) rotate(45deg);
  transition: transform var(--transition-fast);
}

.faq-item[open] summary::after {
  transform: translateY(-25%) rotate(225deg);
}

.faq-answer {
  border-top: 1px solid var(--color-border);
  padding: 16px 18px 19px;
}

.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;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: 28px;
  box-shadow: inset 0 1px 0 var(--color-edge-highlight);
}

.plan-card.is-featured {
  border-color: var(--color-accent);
  background: var(--color-panel-raised);
  box-shadow: 0 20px 50px var(--color-shadow), inset 0 1px 0 var(--color-button-highlight);
}

.plan-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  padding: 4px 10px;
  color: var(--color-text);
  font-size: 11px;
  font-weight: 700;
}

.plan-name {
  margin-bottom: 16px;
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.08em;
}

.plan-price {
  display: flex;
  align-items: baseline;
  gap: 6px;
  margin-bottom: 18px;
}

.plan-price strong {
  font-family: var(--font-display);
  font-size: 42px;
  letter-spacing: -0.03em;
  line-height: 1;
}

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

.plan-list {
  flex: 1;
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
}

.plan-list li {
  position: relative;
  padding: 8px 0 8px 19px;
  border-bottom: 1px solid var(--color-border);
}

.plan-list li::before {
  position: absolute;
  top: 18px;
  left: 1px;
  width: 6px;
  height: 6px;
  border-radius: var(--radius-pill);
  background: var(--color-success);
  content: "";
}

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

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

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

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

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

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

.network-group-row th {
  background: var(--color-bg);
  color: var(--color-accent);
}

.line-type {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xs);
  padding: 3px 8px;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 11px;
}

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

.platform-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  align-items: flex-start;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: 22px;
  box-shadow: inset 0 1px 0 var(--color-edge-highlight);
}

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

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

.platform-card h3 {
  margin-bottom: 6px;
  font-size: 18px;
}

.platform-card p {
  flex: 1;
  font-size: 13px;
}

.platform-card .btn {
  width: 100%;
  padding-inline: 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;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: 24px;
  box-shadow: inset 0 1px 0 var(--color-edge-highlight);
  transition: border-color var(--transition-fast), transform var(--transition-fast);
}

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

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

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

.article-card p {
  flex: 1;
  font-size: 14px;
}

.article-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  color: var(--color-accent);
  font-weight: 650;
}

.callout {
  position: relative;
  overflow-x: clip;
  border: 1px solid var(--color-border);
  border-left: 3px solid var(--color-accent);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  padding: 20px 22px;
  box-shadow: inset 0 1px 0 var(--color-edge-highlight);
}

.callout strong {
  display: block;
  margin-bottom: 6px;
}

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

.promo-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  overflow-x: clip;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-raised);
  padding: 32px;
  box-shadow: var(--shadow-panel), inset 0 1px 0 var(--color-edge-highlight);
}

.promo-block::after {
  position: absolute;
  right: 120px;
  bottom: -90px;
  width: 250px;
  height: 180px;
  border-radius: var(--radius-pill);
  background: var(--color-accent-mist);
  content: "";
  pointer-events: none;
}

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

.promo-copy h2,
.promo-copy h3 {
  margin-bottom: 8px;
}

.float-cta {
  position: fixed;
  right: 28px;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  gap: 8px;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  box-shadow: 0 12px 30px var(--color-accent-glow), inset 0 1px 0 var(--color-button-highlight);
  padding: 11px 21px;
  color: var(--color-text);
  font-size: 14px;
  font-weight: 650;
}

.float-cta:hover {
  background: var(--color-accent-dark);
}

.float-cta svg {
  width: 16px;
  height: 16px;
  flex-shrink: 0;
}

body:has(.float-cta)::after {
  display: block;
  height: calc(88px + env(safe-area-inset-bottom, 0px));
  content: "";
}

.ticker {
  max-width: 100%;
  overflow: hidden;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel);
}

.ticker-track {
  display: flex;
  width: max-content;
  will-change: transform;
}

.ticker-set {
  display: flex;
  flex: none;
  align-items: center;
  gap: 28px;
  padding: 14px;
}

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.ticker-item::before {
  width: 6px;
  height: 6px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  content: "";
}

.motion-decor {
  pointer-events: none;
  will-change: transform;
}

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

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

.preview-title {
  margin-bottom: 14px;
}

.preview-lead {
  max-width: 720px;
  margin-bottom: 38px;
}

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

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

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

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

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

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

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

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

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

.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);
}

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

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

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

.swatch-label {
  padding: 10px;
}

.swatch-label strong,
.swatch-label code {
  display: block;
  font-size: 11px;
}

.swatch-label code {
  margin-top: 4px;
  color: var(--color-text-muted);
}

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

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

.type-display {
  font-family: var(--font-display);
  font-size: clamp(36px, 5vw, 60px);
  font-weight: 800;
  line-height: 1.1;
}

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

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

.static-footer-preview {
  border-top: 1px solid var(--color-border);
  background: var(--color-panel);
}

.feature-sheet {
  display: grid;
  grid-template-columns: minmax(190px, 0.6fr) minmax(0, 1.4fr);
  gap: 48px;
}

.gate-index {
  position: sticky;
  top: 24px;
  align-self: start;
  border-left: 1px solid var(--color-border);
}

.gate-index-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--color-border);
  padding: 17px 14px;
}

.gate-index-item.is-active {
  border-left: 2px solid var(--color-accent);
  background: var(--color-panel);
}

.gate-index-item b {
  color: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 12px;
}

.gate-index-item span {
  color: var(--color-text);
  font-weight: 650;
}

.gate-detail-list {
  display: grid;
  gap: 22px;
}

.gate-detail-card {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  padding: 27px;
  box-shadow: inset 0 1px 0 var(--color-edge-highlight);
}

.gate-detail-card:nth-child(even) {
  margin-left: 38px;
}

@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));
  }

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

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

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

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

  .hero-fact:nth-child(3) {
    border-top: 1px solid var(--color-border);
    border-left: 0;
  }

  .hero-fact:nth-child(4) {
    border-top: 1px solid var(--color-border);
  }

  .platform-strip {
    gap: 18px;
  }

  .feature-sheet {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .gate-index {
    position: static;
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    border-left: 0;
  }

  .gate-index-item {
    min-width: 164px;
    flex: 0 0 auto;
  }

  .gate-detail-card:nth-child(even) {
    margin-left: 0;
  }

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

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

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

  .hero-fact {
    align-items: center;
    flex-direction: column;
    gap: 2px;
  }

  .hero-fact b {
    font-size: 18px;
  }

  .canal-visual svg {
    min-width: 680px;
    transform: translateX(-19%);
  }

  .canal-visual {
    min-height: 230px;
  }

  .platform-mark {
    font-size: 12px;
  }

  .promo-block {
    padding: 24px 20px;
  }

  .float-cta {
    right: 16px;
    bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 768px) {
  .ticker {
    overflow: visible;
  }

  .ticker-track {
    width: 100%;
    transform: none !important;
  }

  .ticker-set {
    width: 100%;
    flex-wrap: wrap;
    justify-content: center;
  }

  .ticker-set + .ticker-set {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .motion-decor,
  .ticker-track {
    transform: none;
  }
}