.hero-preview {
  min-height: 758px;
  overflow-x: clip;
}

.hero-layout {
  display: grid;
  min-height: 758px;
  grid-template-columns: 1.12fr 0.88fr;
  gap: 56px;
  align-items: center;
  padding-top: 6px;
}

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

.hero-copy .eyebrow {
  margin-bottom: 22px;
}

.hero-description {
  max-width: 31em;
  margin-bottom: 0;
  color: var(--color-muted);
  font-size: 16px;
  line-height: 1.85;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-top: 30px;
}

.hero-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin-top: 24px;
}

.hero-trust li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: 13px;
}

.trust-check {
  width: 12px;
  height: 12px;
  flex: none;
  fill: none;
  stroke: var(--color-accent);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.cable-scene {
  position: relative;
  min-width: 0;
}

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

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

.mountain-facet {
  fill: var(--color-panel-strong);
}

.mountain-line {
  fill: none;
  stroke: var(--color-text);
  stroke-linejoin: round;
  stroke-width: 1;
}

.scene-ground {
  stroke: var(--color-border);
  stroke-linecap: round;
  stroke-width: 1.5;
}

.scene-cable {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.5;
}

.scene-pylon {
  fill: none;
  stroke: var(--color-text);
  stroke-linecap: round;
  stroke-width: 2;
}

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

.gondola-wheel {
  fill: var(--color-bg);
  stroke: var(--color-accent);
  stroke-width: 1.5;
}

.gondola-body {
  fill: var(--color-accent);
}

.gondola-window {
  fill: var(--color-bg);
}

.scene-fence {
  fill: none;
  opacity: 0.55;
  stroke: var(--color-muted);
  stroke-linecap: round;
  stroke-width: 1.5;
}

.scene-dash {
  fill: none;
  opacity: 0.4;
  stroke: var(--color-muted);
  stroke-dasharray: 2 7;
  stroke-linecap: round;
  stroke-width: 1.5;
}

.gondola-moving {
  animation: cable-glide 18s ease-in-out infinite;
}

@keyframes cable-glide {
  0%,
  100% {
    transform: translateX(0);
  }

  30% {
    transform: translateX(-26px);
  }

  70% {
    transform: translateX(26px);
  }
}

.route-board {
  position: absolute;
  top: 44px;
  right: 4px;
  z-index: 2;
  width: 178px;
  border: var(--line-thin) solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
}

.route-board::after {
  position: absolute;
  top: 100%;
  left: 50%;
  width: 2px;
  height: 36px;
  background: var(--color-border);
  content: '';
}

.route-board-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 12px;
  color: var(--color-muted);
  font-size: 11px;
  letter-spacing: 0.06em;
}

.route-board-head .mono {
  color: var(--color-accent);
}

.route-board-list li {
  display: flex;
  align-items: center;
  gap: 9px;
  border-top: var(--line-thin) solid var(--color-border);
  padding: 7px 12px;
}

.route-board-name {
  flex: 1;
  font-size: 13px;
}

.route-code {
  color: var(--color-muted);
  font-size: 11px;
}

.flag-icon {
  width: 24px;
  height: 16px;
  flex: none;
  overflow: hidden;
  border: var(--line-thin) solid var(--color-border);
  border-radius: var(--radius-xs);
}

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

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

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

.platform-inline {
  position: absolute;
  right: 0;
  bottom: 10px;
  left: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
}

.platform-inline li {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-muted);
  font-size: 12px;
}

.platform-inline svg {
  width: 17px;
  height: 17px;
  flex: none;
  color: var(--color-muted);
}

.section-marker {
  display: flex;
  align-items: center;
  gap: 16px;
}

.section-number {
  display: inline-flex;
  width: 34px;
  height: 34px;
  flex: none;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-xs);
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-mono);
  font-size: 13px;
}

.tabs {
  max-width: 100%;
}

.tab-list {
  display: inline-flex;
  max-width: 100%;
  gap: 4px;
  overflow-x: auto;
  border: var(--line-thin) solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 5px;
  background: var(--color-panel-strong);
  -webkit-overflow-scrolling: touch;
}

.tab-list [role='tab'] {
  min-height: 42px;
  flex: none;
  border-radius: var(--radius-xs);
  padding: 8px 18px;
  background: var(--color-transparent);
  color: var(--color-muted);
  cursor: pointer;
}

.tab-list [role='tab'][aria-selected='true'] {
  background: var(--color-bg);
  color: var(--color-text);
}

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

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

.toc-tabs {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  max-width: 100%;
  gap: 6px;
  overflow-x: auto;
  border-block: var(--line-thin) solid var(--color-border);
  padding: 8px;
  background: var(--color-bg);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.toc-tabs a {
  display: inline-flex;
  min-height: 40px;
  flex: none;
  align-items: center;
  border: var(--line-thin) solid var(--color-border);
  border-radius: var(--radius-pill);
  padding: 7px 14px;
  color: var(--color-muted);
  font-size: 13px;
}

.toc-tabs a.is-current,
.toc-tabs a[aria-current='location'] {
  border-color: var(--color-accent);
  background: var(--color-accent);
  color: var(--color-on-accent);
}

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

.faq-item {
  border: var(--line-thin) solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

.faq-item summary {
  position: relative;
  min-height: 58px;
  padding: 16px 54px 16px 18px;
  font-weight: 650;
  cursor: pointer;
  list-style: none;
}

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

.faq-item summary::after {
  position: absolute;
  top: 50%;
  right: 20px;
  color: var(--color-accent);
  content: '+';
  font-family: var(--font-mono);
  transform: translateY(-50%);
}

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

.faq-answer {
  border-top: var(--line-thin) solid var(--color-border);
  padding: 16px 18px 4px;
  color: var(--color-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;
  border: var(--line-thin) solid var(--color-border);
  border-radius: var(--radius-md);
  padding: 28px;
  background: var(--color-bg);
}

.plan-card.is-current {
  border-color: var(--color-accent);
  outline: var(--line-thin) solid var(--color-accent);
}

.plan-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  border-radius: var(--radius-xs);
  padding: 4px 8px;
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-size: 11px;
  font-weight: 700;
}

.plan-name {
  padding-right: 64px;
  font-size: 18px;
  font-weight: 700;
}

.plan-price {
  margin-block: 18px;
  font-family: var(--font-display);
  font-size: 38px;
  line-height: 1.1;
}

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

.plan-features {
  display: grid;
  gap: 9px;
  margin-bottom: 24px;
  padding-left: 20px;
  color: var(--color-muted);
}

.plan-features li {
  min-width: 0;
  overflow-wrap: anywhere;
}

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

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

.data-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
  background: var(--color-bg);
}

.data-table th,
.data-table td {
  border-bottom: var(--line-thin) solid var(--color-border);
  padding: 14px 16px;
  text-align: left;
  vertical-align: top;
}

.data-table th {
  background: var(--color-panel-strong);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 700;
}

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

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

.data-table tbody tr:hover {
  background: var(--color-panel-strong);
}

.route-region-row th {
  background: var(--color-accent);
  color: var(--color-on-accent);
  font-family: var(--font-mono);
  letter-spacing: 0.04em;
}

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

.platform-card {
  display: flex;
  min-width: 0;
  align-items: center;
  flex-direction: column;
  border: var(--line-thin) solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 24px 14px;
  background: var(--color-bg);
  text-align: center;
}

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

.platform-symbol {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  margin-bottom: 14px;
  border-radius: var(--radius-sm);
  background: var(--color-panel-strong);
  color: var(--color-accent);
}

.platform-symbol svg {
  width: 25px;
  height: 25px;
}

.platform-card h3 {
  margin-bottom: 14px;
  font-size: 16px;
}

.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: var(--line-thin) solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  background: var(--color-bg);
}

.article-card:hover {
  border-color: var(--color-accent);
}

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

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

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

.article-link {
  margin-top: auto;
  color: var(--color-accent);
  font-weight: 650;
}

.callout {
  position: relative;
  border: var(--line-thin) solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-xs);
  padding: 20px 22px;
  background: var(--color-panel);
}

.callout strong:first-child {
  color: var(--color-accent);
}

.callout-warning {
  border-left-color: var(--color-warning);
}

.callout-warning strong:first-child {
  color: var(--color-warning);
}

.callout-error {
  border-left-color: var(--color-error);
}

.callout-error strong:first-child {
  color: var(--color-error);
}

.promo-card {
  position: relative;
  overflow-x: clip;
  border-radius: var(--radius-md);
  padding: 42px;
  background: var(--color-accent-dark);
  color: var(--color-on-accent);
}

.promo-card h2,
.promo-card h3,
.promo-card p {
  color: var(--color-on-accent);
}

.promo-card p {
  max-width: 42em;
}

.promo-card .btn-primary {
  border-color: var(--color-on-accent);
  background: var(--color-on-accent);
  color: var(--color-accent-dark);
}

.promo-card .btn-primary:hover {
  border-color: var(--color-panel-strong);
  background: var(--color-panel-strong);
}

.feature-route {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 22px 44px;
}

.feature-route::before {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 50%;
  border-left: var(--line-thin) dashed var(--color-border);
  content: '';
}

.feature-card {
  position: relative;
  border: var(--line-thin) solid var(--color-border);
  border-radius: var(--radius-sm);
  padding: 24px;
  background: var(--color-bg);
}

.feature-card:nth-child(even) {
  margin-top: 42px;
}

.feature-card:hover {
  border-color: var(--color-accent);
}

.feature-card-head {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 18px;
}

.feature-card-head h3 {
  flex: 1;
  margin: 0;
}

.feature-card p {
  margin-bottom: 0;
  color: var(--color-muted);
}

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

.swatch {
  overflow: hidden;
  border: var(--line-thin) solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-bg);
}

.swatch-color {
  height: 74px;
}

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

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

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

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

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

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

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

.swatch-label {
  padding: 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  overflow-wrap: anywhere;
}

.button-showcase,
.badge-showcase {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: center;
}

.preview-footer {
  margin-top: 96px;
}

@media (max-width: 980px) {
  .hero-layout {
    min-height: auto;
    grid-template-columns: 1fr;
    padding-top: 56px;
    padding-bottom: 56px;
  }

  .cable-scene {
    order: 2;
    max-width: 700px;
    margin-inline: auto;
  }

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

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

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

@media (max-width: 768px) {
  .hero-preview,
  .hero-layout {
    min-height: auto;
  }

  .hero-layout {
    gap: 20px;
  }

  .hero-copy {
    order: 1;
  }

  .cable-scene {
    order: 2;
  }

  .route-board {
    top: 22px;
    right: 0;
    width: 154px;
  }

  .route-board-list li {
    padding: 5px 9px;
  }

  .platform-inline {
    position: static;
    flex-wrap: wrap;
    gap: 10px 16px;
    margin-top: -20px;
  }

  .feature-route {
    grid-template-columns: 1fr;
  }

  .feature-route::before {
    left: 16px;
  }

  .feature-card,
  .feature-card:nth-child(even) {
    margin-top: 0;
    margin-left: 32px;
  }
}

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

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

  .route-board {
    position: relative;
    top: auto;
    right: auto;
    width: 100%;
    margin-top: -24px;
  }

  .route-board::after {
    display: none;
  }

  .scene-svg {
    min-width: 510px;
    transform: translateX(-74px);
  }

  .cable-scene {
    overflow-x: clip;
  }

  .promo-card {
    padding: 28px 20px;
  }

  .tab-list {
    display: flex;
  }
}

@media (prefers-reduced-motion: reduce) {
  .gondola-moving {
    animation: none;
  }
}