.hero-poster {
  position: relative;
  overflow-x: clip;
  border-bottom: 1px solid var(--color-border);
}

.hero-poster::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(var(--color-paper-noise) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-paper-noise) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, transparent, var(--color-ink), transparent);
}

.hero-poster::after {
  position: absolute;
  top: 14%;
  right: 8%;
  width: 36vw;
  max-width: 520px;
  aspect-ratio: 1;
  pointer-events: none;
  border-radius: var(--radius-pill);
  background: var(--color-surface-soft);
  content: "";
  filter: blur(74px);
  opacity: 0.68;
}

.hero-poster-inner {
  position: relative;
  z-index: 1;
  width: 100%;
  padding-top: 54px;
  padding-bottom: 62px;
}

.hero-layout {
  display: grid;
  grid-template-columns: minmax(0, 0.94fr) minmax(480px, 1.06fr);
  gap: 58px;
  align-items: center;
}

.hero-copy {
  position: relative;
  z-index: 2;
}

.hero-kicker {
  display: inline-flex;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  gap: 8px;
  padding: 5px 13px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.07em;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.hero-kicker svg {
  width: 13px;
  height: 13px;
  color: var(--color-accent);
}

.hero-title {
  margin-top: 22px;
  margin-bottom: 0;
  font-size: clamp(52px, 4.7vw, 64px);
}

.hero-title-accent {
  background: linear-gradient(105deg, var(--color-accent), var(--color-accent-deep));
  color: var(--color-accent);
  background-clip: text;
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.hero-actions {
  margin-top: 30px;
}

.hero-description {
  max-width: 540px;
  margin-top: 21px;
  margin-bottom: 0;
  color: var(--color-ink-muted);
  line-height: 1.8;
}

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

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  margin: 20px 0 0;
  padding: 0;
  list-style: none;
}

.hero-trust li {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  font-size: 12px;
}

.hero-trust svg {
  width: 13px;
  height: 13px;
  color: var(--color-success);
}

.platform-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 17px;
  margin-top: 24px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.platform-strip-label {
  color: var(--color-ink-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.09em;
}

.platform-mark {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  gap: 6px;
  color: var(--color-ink-muted);
  font-size: 12px;
  font-weight: 550;
}

.platform-mark svg {
  width: 17px;
  height: 17px;
}

.route-card {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.route-chrome {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 7px;
  padding-inline: 16px;
  border-bottom: 1px solid var(--color-border);
  background: var(--color-surface-soft);
}

.route-chrome-dot {
  width: 9px;
  height: 9px;
  flex-shrink: 0;
  border-radius: var(--radius-pill);
  background: var(--color-ink-muted);
}

.route-chrome-dot:nth-child(2) {
  opacity: 0.55;
}

.route-chrome-dot:nth-child(3) {
  opacity: 0.3;
}

.route-chrome-title,
.route-chrome-state {
  font-family: var(--font-mono);
  font-size: 11px;
}

.route-chrome-title {
  margin-left: 7px;
  color: var(--color-ink-muted);
}

.route-chrome-state {
  margin-left: auto;
  color: var(--color-accent-deep);
}

.route-map {
  display: block;
  width: 100%;
  height: auto;
  min-height: 300px;
}

.route-grid-line {
  stroke: var(--color-border);
  stroke-width: 1;
  opacity: 0.45;
}

.route-alternative {
  fill: none;
  stroke: var(--color-route-muted);
  stroke-width: 1.6;
  stroke-dasharray: 6 7;
  stroke-linecap: round;
}

.route-glow {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 12;
  stroke-linecap: round;
  stroke-linejoin: round;
  opacity: 0.14;
}

.route-selected {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 5;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-device {
  fill: var(--color-surface-soft);
  stroke: var(--color-border);
  stroke-width: 1.5;
}

.route-device-line {
  fill: none;
  stroke: var(--color-ink-muted);
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.route-node {
  fill: var(--color-surface);
  stroke: var(--color-border);
  stroke-width: 1.5;
}

.route-label {
  fill: var(--color-ink-muted);
  font-family: var(--font-body);
  font-size: 11px;
}

.route-alt-label {
  fill: var(--color-route-muted);
  font-family: var(--font-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
}

.route-tag {
  fill: var(--color-accent);
}

.route-tag-text {
  fill: var(--color-surface);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
}

.route-runner-glow {
  fill: var(--color-accent);
  opacity: 0.22;
}

.route-runner-core {
  fill: var(--color-accent);
}

.route-runner-hole {
  fill: var(--color-surface);
}

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

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

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

.route-runner {
  animation: route-runner 7.5s linear infinite;
}

.route-legend {
  display: flex;
  min-height: 42px;
  align-items: center;
  gap: 18px;
  padding-inline: 17px;
  border-top: 1px solid var(--color-border);
  color: var(--color-ink-muted);
  font-size: 12px;
}

.route-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.route-legend-line {
  width: 25px;
  height: 0;
  flex-shrink: 0;
}

.route-legend-line-selected {
  border-top: 4px solid var(--color-accent);
}

.route-legend-line-alternative {
  border-top: 2px dashed var(--color-route-muted);
}

.route-legend-code {
  margin-left: auto;
  color: var(--color-route-muted);
  font-family: var(--font-mono);
  font-size: 10px;
}

@keyframes route-runner {
  0% {
    opacity: 0;
    transform: translate(59px, 174px);
  }
  6% {
    opacity: 1;
  }
  20% {
    transform: translate(150px, 158px);
  }
  40% {
    transform: translate(272px, 188px);
  }
  60% {
    transform: translate(394px, 157px);
  }
  80% {
    transform: translate(516px, 184px);
  }
  94% {
    opacity: 1;
    transform: translate(604px, 174px);
  }
  100% {
    opacity: 0;
    transform: translate(604px, 174px);
  }
}

.region-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.region-chip {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  color: var(--color-ink-muted);
  font-size: 13px;
}

.region-chip svg {
  width: 22px;
  height: 22px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
}

.tabs {
  max-width: 100%;
}

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

.tab-list [role="tab"] {
  min-width: max-content;
  min-height: 42px;
  padding: 8px 18px;
  border: 1px solid transparent;
  border-radius: var(--radius-xs);
  background: transparent;
  color: var(--color-ink-muted);
  font-weight: 700;
}

.tab-list [role="tab"][aria-selected="true"],
.tab-list [role="tab"].is-active {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-accent-deep);
  box-shadow: 0 4px 12px var(--color-shadow);
}

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

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

.toc-tabs {
  position: sticky;
  top: 0;
  z-index: 12;
  display: flex;
  max-width: 100%;
  gap: 4px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
  box-shadow: 0 8px 20px var(--color-shadow);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.toc-tabs a {
  display: inline-flex;
  min-width: max-content;
  min-height: 40px;
  align-items: center;
  padding-inline: 14px;
  border-radius: var(--radius-xs);
  color: var(--color-ink-muted);
  font-size: 13px;
}

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

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

.faq-list {
  border-top: 1px solid var(--color-border);
}

.faq-item {
  border-bottom: 1px solid var(--color-border);
}

.faq-item summary {
  position: relative;
  min-height: 62px;
  padding: 18px 42px 18px 0;
  list-style: none;
  font-weight: 750;
}

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

.faq-item summary::after {
  position: absolute;
  top: 18px;
  right: 4px;
  width: 26px;
  height: 26px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-accent-deep);
  content: "+";
  font-family: var(--font-mono);
  line-height: 24px;
  text-align: center;
  transition: transform var(--transition-fast);
}

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

.faq-answer {
  max-width: 820px;
  padding: 0 42px 20px 0;
  color: var(--color-ink-muted);
}

.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;
  padding: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
}

.plan-card.is-featured {
  border-color: var(--color-accent);
  box-shadow: var(--shadow-card);
}

.plan-ribbon {
  position: absolute;
  top: 13px;
  right: 13px;
}

.plan-name {
  padding-right: 72px;
  font-size: 20px;
}

.plan-cycle {
  color: var(--color-ink-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.plan-price {
  margin: 18px 0 5px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.02em;
}

.plan-price small {
  color: var(--color-ink-muted);
  font-size: 14px;
  font-weight: 550;
}

.plan-features {
  display: grid;
  gap: 9px;
  margin: 22px 0 26px;
  padding: 0;
  color: var(--color-ink-muted);
  list-style: none;
}

.plan-features li::before {
  margin-right: 8px;
  color: var(--color-success);
  content: "✓";
  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-sm);
  background: var(--color-surface);
  -webkit-overflow-scrolling: touch;
}

.data-table,
.route-table,
.comparison-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  font-size: 14px;
}

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

.data-table th,
.route-table th,
.comparison-table th {
  background: var(--color-surface-soft);
  color: var(--color-ink);
  font-weight: 750;
}

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

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

.route-group-row th {
  background: var(--color-ink);
  color: var(--color-surface);
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.prose > .data-table {
  display: block;
  width: 100%;
  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: 12px;
}

.platform-card {
  display: flex;
  min-width: 0;
  min-height: 190px;
  flex-direction: column;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-surface);
}

.platform-icon {
  display: inline-flex;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  border-radius: var(--radius-sm);
  background: var(--color-surface-soft);
  color: var(--color-accent-deep);
}

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

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

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

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

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

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

.article-card:hover {
  border-color: var(--color-accent);
  transform: translateY(-2px);
}

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

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

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

.article-card .text-link {
  margin-top: auto;
  padding-top: 16px;
}

.callout {
  padding: 20px 22px;
  border-left: 4px solid var(--color-accent);
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  background: var(--color-surface-soft);
}

.callout-title {
  display: block;
  margin-bottom: 6px;
  color: var(--color-accent-deep);
  font-weight: 800;
}

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

.article-promo-brand {
  margin-bottom: 7px;
  color: var(--color-accent-deep);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.08em;
}

.article-promo h2 {
  margin-bottom: 8px;
  font-size: clamp(26px, 3vw, 36px);
}

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

.feature-browser {
  display: grid;
  grid-template-columns: minmax(240px, 0.72fr) minmax(0, 1.28fr);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.feature-list {
  display: grid;
  align-content: start;
  border-right: 1px solid var(--color-border);
  background: var(--color-surface-soft);
}

.feature-trigger {
  position: relative;
  min-height: 92px;
  padding: 18px 18px 18px 23px;
  border: 0;
  border-bottom: 1px solid var(--color-border);
  background: transparent;
  color: var(--color-ink-muted);
  text-align: left;
}

.feature-trigger::before {
  position: absolute;
  inset: 12px auto 12px 0;
  width: 3px;
  border-radius: var(--radius-pill);
  background: transparent;
  content: "";
}

.feature-trigger.is-active,
.feature-trigger[aria-selected="true"] {
  background: var(--color-surface);
  color: var(--color-ink);
}

.feature-trigger.is-active::before,
.feature-trigger[aria-selected="true"]::before {
  background: var(--color-accent);
}

.feature-trigger strong,
.feature-trigger span {
  display: block;
}

.feature-trigger span {
  margin-top: 5px;
  font-size: 13px;
}

.feature-detail {
  min-height: 430px;
  padding: 38px;
}

.line-sketch {
  position: relative;
  height: 120px;
  margin-top: 28px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background-image:
    linear-gradient(var(--color-paper-noise) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-paper-noise) 1px, transparent 1px);
  background-size: 24px 24px;
}

.line-sketch::before {
  position: absolute;
  right: 10%;
  bottom: 24%;
  left: 8%;
  height: 4px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  content: "";
  transform: skewY(-5deg);
}

.line-sketch::after {
  position: absolute;
  top: 27%;
  right: 18%;
  width: 16px;
  height: 16px;
  border: 4px solid var(--color-accent);
  border-radius: var(--radius-pill);
  background: var(--color-surface);
  content: "";
}

.preview-section {
  padding-top: 84px;
  padding-bottom: 84px;
}

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

.preview-heading p {
  max-width: 600px;
  color: var(--color-ink-muted);
}

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

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

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

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

.preview-swatch-color.is-canvas {
  background: var(--color-canvas);
}

.preview-swatch-color.is-surface {
  background: var(--color-surface);
}

.preview-swatch-color.is-surface-soft {
  background: var(--color-surface-soft);
}

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

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

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

.preview-swatch-color.is-ink {
  background: var(--color-ink);
}

.preview-swatch-color.is-muted {
  background: var(--color-ink-muted);
}

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

.preview-swatch-color.is-warning {
  background: var(--color-warning);
}

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

.preview-swatch-label {
  display: grid;
  gap: 3px;
  padding: 12px;
  font-size: 12px;
}

.preview-swatch-label code {
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--color-ink-muted);
}

.preview-type-stack {
  display: grid;
  gap: 25px;
  padding: 30px;
}

.preview-display-sample {
  font-family: var(--font-display);
  font-size: clamp(38px, 5vw, 64px);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.02em;
}

.preview-body-sample {
  max-width: 680px;
  color: var(--color-ink-muted);
  font-size: 18px;
}

.preview-mono-sample {
  color: var(--color-accent-deep);
  font-family: var(--font-mono);
  font-size: 13px;
  letter-spacing: 0.05em;
}

.preview-button-grid {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
}

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

@media (max-width: 1080px) {
  .hero-layout {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    max-width: 760px;
  }

  .route-card {
    max-width: 760px;
  }

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

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

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

@media (max-width: 768px) {
  .hero-poster-inner {
    padding-top: 38px;
    padding-bottom: 46px;
  }

  .hero-layout {
    gap: 38px;
  }

  .hero-title {
    font-size: clamp(34px, 10vw, 40px);
  }

  .hero-poster::after {
    display: none;
  }

  .route-map {
    min-height: 0;
  }

  .route-chrome-state,
  .route-alt-label,
  .route-legend-code {
    display: none;
  }

  .platform-grid,
  .pricing-grid,
  .article-grid,
  .preview-grid-two {
    grid-template-columns: 1fr;
  }

  .feature-browser {
    display: block;
    overflow: visible;
  }

  .feature-list {
    border-right: 0;
  }

  .feature-trigger {
    min-height: 76px;
  }

  .feature-detail {
    min-height: 0;
    padding: 26px 20px;
  }

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

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

  .route-runner {
    animation: none;
    transform: translate(394px, 157px);
  }
}

@media (max-width: 520px) {
  .platform-strip {
    gap: 12px;
  }

  .platform-strip-label {
    width: 100%;
  }

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

  .route-legend {
    flex-wrap: wrap;
    padding-block: 9px;
  }

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

  .plan-card {
    padding: 23px;
  }

  .plan-ribbon {
    position: static;
    align-self: flex-start;
    margin-bottom: 12px;
  }

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

@media (prefers-reduced-motion: reduce) {
  .route-runner {
    animation: none;
    opacity: 1;
    transform: translate(394px, 157px);
  }
}