.tabs-shell {
  display: grid;
  grid-template-columns: minmax(210px, .72fr) minmax(0, 1.8fr);
  gap: 18px;
}

[role="tablist"],
.tab-list {
  display: grid;
  align-content: start;
  gap: 8px;
}

[role="tab"],
.tab-button {
  display: flex;
  width: 100%;
  min-height: 48px;
  align-items: center;
  gap: 12px;
  padding: 10px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  background: var(--color-panel-deep);
  font-weight: 750;
  text-align: left;
}

[role="tab"] .tab-index {
  flex: none;
  color: inherit;
  font-family: var(--font-mono);
  font-size: 11px;
}

[role="tab"][aria-selected="true"],
.tab-button.is-active {
  border-color: var(--color-ink);
  color: var(--color-lavender-light);
  background: var(--color-ink);
}

[role="tabpanel"] {
  min-width: 0;
}

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

.tab-detail {
  min-height: 310px;
  padding: 26px;
  color: var(--color-lavender);
  background: var(--color-ink);
}

.tab-detail h3 {
  color: var(--color-lavender-light);
}

.tab-detail-parameter {
  padding-top: 14px;
  border-top: 1px solid var(--color-ink-rule);
  color: var(--color-lavender-mid);
  font-family: var(--font-mono);
  font-size: 12px;
}

.mobile-feature-list {
  display: none;
}

.mobile-feature-list details {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-panel);
}

.mobile-feature-list summary {
  min-height: 48px;
  padding: 13px 15px;
  font-weight: 800;
  cursor: pointer;
}

.mobile-feature-list details > div {
  padding: 0 15px 15px;
  color: var(--color-muted);
}

.toc-tabs {
  position: sticky;
  top: calc(var(--header-height) + 8px);
  z-index: 20;
  display: flex;
  max-width: 100%;
  gap: 7px;
  margin-bottom: 34px;
  padding: 8px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.toc-tabs a {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  flex: none;
  padding: 6px 11px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

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

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-md);
  background: var(--color-panel);
}

.faq-item summary {
  position: relative;
  min-height: 52px;
  padding: 15px 48px 15px 17px;
  font-weight: 800;
  cursor: pointer;
  list-style: none;
}

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

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

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

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

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

.plan-card {
  position: relative;
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 25px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
}

.plan-card.is-featured {
  border-color: var(--color-ink);
  background: var(--color-white);
  box-shadow: var(--shadow-panel);
}

.plan-ribbon {
  position: absolute;
  top: 0;
  right: 18px;
  padding: 5px 10px;
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  color: var(--color-white);
  background: var(--color-accent);
  font-size: 11px;
  font-weight: 850;
}

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

.plan-price {
  margin: 10px 0 14px;
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 39px;
  font-weight: 900;
  line-height: 1;
}

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

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

.plan-features li::before {
  margin-right: 8px;
  color: var(--color-success);
  content: "✓";
  font-weight: 900;
}

.plan-card .btn {
  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-md);
  background: var(--color-panel);
  -webkit-overflow-scrolling: touch;
}

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

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

.data-table th,
.server-table th,
.compare-table th {
  color: var(--color-text);
  background: var(--color-panel-deep);
  font-size: 12px;
  font-weight: 850;
  letter-spacing: .02em;
}

.data-table td,
.server-table td,
.compare-table td {
  color: var(--color-muted);
  font-size: 14px;
}

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

.server-group {
  color: var(--color-text);
  font-weight: 850;
}

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

.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: 12px;
}

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

.platform-icon {
  display: grid;
  width: 40px;
  height: 40px;
  margin-bottom: 14px;
  place-items: center;
  border-radius: var(--radius-sm);
  color: var(--color-lavender-light);
  background: var(--color-ink);
}

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

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

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

.platform-card .btn {
  min-height: 38px;
  margin-top: auto;
  padding-inline: 13px;
  font-size: 13px;
}

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

.article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 21px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  box-shadow: var(--shadow-card);
}

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

.article-card h3 {
  margin-bottom: 10px;
  font-size: 19px;
}

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

.article-card > a:last-child {
  margin-top: auto;
  color: var(--color-text);
  font-size: 13px;
  font-weight: 800;
}

.callout {
  position: relative;
  margin: 24px 0;
  padding: 18px 20px 18px 24px;
  border: 1px solid var(--color-border);
  border-left: 4px solid var(--color-accent);
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  background: var(--color-panel);
}

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

.promo-block {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  margin-top: 54px;
  padding: 28px;
  overflow: hidden;
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius-lg);
  color: var(--color-lavender);
  background: var(--color-ink);
  box-shadow: var(--shadow-panel);
}

.promo-brand {
  color: var(--color-lavender-light);
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 900;
}

.promo-block p {
  margin: 5px 0 0;
  color: var(--color-lavender);
}

.float-cta {
  position: fixed;
  right: 28px;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  z-index: 80;
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 0 18px;
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius-pill);
  color: var(--color-lavender-light);
  background: var(--color-ink);
  box-shadow: var(--shadow-panel);
  font-size: 14px;
  font-weight: 800;
}

.float-cta:hover {
  background: var(--color-ink-raised);
}

.float-cta svg {
  width: 14px;
  height: 14px;
  flex: none;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

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

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

.ticker-track {
  display: flex;
  width: max-content;
  align-items: center;
  gap: 28px;
  padding: 12px 0;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
  will-change: transform;
}

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

.ticker-item {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.ticker-item::before {
  width: 6px;
  height: 6px;
  flex: none;
  border-radius: 50%;
  background: var(--color-success);
  content: "";
}

.hero-preview {
  min-height: calc(100svh - var(--header-height) - var(--hero-peek));
  display: flex;
  align-items: center;
  padding-top: 28px;
  padding-bottom: 24px;
}

.hero-preview > .wrap {
  width: 100%;
}

.hero-preview-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.04fr) minmax(0, 1fr);
  align-items: center;
  gap: 64px;
}

.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 620px;
}

.hero-copy h1 {
  margin: 20px 0 26px;
}

.hero-copy h1 span {
  display: block;
}

.hero-copy .lede {
  max-width: 560px;
  margin: 22px 0 0;
}

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

.trust-row li {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px 5px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-text);
  background: var(--color-panel);
  font-size: 12.5px;
  font-weight: 650;
  white-space: nowrap;
}

.trust-row svg {
  width: 13px;
  height: 13px;
  flex: none;
  fill: none;
  stroke: var(--color-success);
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.hero-support {
  display: grid;
  gap: 12px;
  margin-top: 26px;
  padding-top: 18px;
  border-top: 1px solid var(--color-border);
}

.support-row {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.support-label {
  min-width: 52px;
  margin-right: 8px;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 11.5px;
  letter-spacing: .04em;
  white-space: nowrap;
}

.platform-inline,
.flag-inline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  color: var(--color-muted);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.platform-inline:hover,
.flag-inline:hover {
  color: var(--color-text);
  background: var(--color-panel-deep);
}

.platform-inline svg {
  width: 15px;
  height: 15px;
  flex: none;
  fill: currentColor;
}

.flag-inline svg {
  width: 20px;
  height: 14px;
  flex: none;
  overflow: hidden;
  border-radius: 3px;
  box-shadow: 0 0 0 1px var(--color-border);
}

.ec-stage {
  position: relative;
  width: 92%;
  margin-left: 14px;
  padding-top: 6px;
}

.ec-backplate {
  position: absolute;
  top: -8px;
  left: -14px;
  width: 100%;
  height: calc(100% - 6px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel-deep);
}

.ec-halo {
  position: absolute;
  top: -70px;
  right: -90px;
  width: 280px;
  height: 280px;
  border-radius: 50%;
  background: radial-gradient(circle, var(--color-panel-glow) 0%, var(--color-panel-glow-mid) 32%, var(--color-panel-glow-clear) 70%);
  pointer-events: none;
}

.ec-panel {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius-lg);
  color: var(--color-lavender);
  background: var(--color-ink);
  box-shadow: var(--shadow-panel);
}

.ec-chrome {
  display: flex;
  height: 38px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border-bottom: 1px solid var(--color-ink-rule);
  background: var(--color-ink-chip);
}

.ec-dots {
  display: flex;
  gap: 6px;
}

.ec-dots i {
  width: 10px;
  height: 10px;
  flex: none;
  border-radius: 50%;
  background: var(--color-lavender);
}

.ec-dots i:nth-child(2) {
  background: var(--color-lavender-mid);
}

.ec-dots i:nth-child(3) {
  background: var(--color-lavender-dark);
}

.ec-title {
  margin-left: auto;
  color: var(--color-lavender-mid);
  font-family: var(--font-mono);
  font-size: 12px;
  white-space: nowrap;
}

.ec-body {
  position: relative;
}

.ec-plot {
  width: 100%;
  height: auto;
}

.ec-foot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px 12px;
  border-top: 1px solid var(--color-ink-rule);
}

.ec-chip {
  padding: 5px 10px;
  border: 1px solid var(--color-ink-chip-border);
  border-radius: var(--radius-sm);
  color: var(--color-lavender);
  background: var(--color-ink-chip);
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
}

.ec-meta {
  margin-left: auto;
  color: var(--color-lavender-mid);
  font-family: var(--font-mono);
  font-size: 11.5px;
  white-space: nowrap;
}

.ec-grid-line {
  fill: none;
  stroke: var(--color-lavender);
  stroke-opacity: .08;
  stroke-width: 1;
}

.ec-axis {
  stroke: var(--color-lavender);
  stroke-opacity: .16;
  stroke-width: 1;
}

.ec-curve-glow {
  fill: none;
  stroke: var(--color-lavender);
  stroke-width: 9;
  stroke-linecap: round;
  opacity: .26;
  animation: ec-glow 4.5s ease-in-out infinite;
}

.ec-curve {
  fill: none;
  stroke: url("#previewCurve");
  stroke-width: 3;
  stroke-linecap: round;
}

.ec-chord {
  fill: none;
  stroke: var(--color-lavender);
  stroke-width: 1;
  stroke-dasharray: 4 4;
  stroke-opacity: .72;
}

.ec-point {
  fill: var(--color-lavender-light);
}

.ec-point-ring {
  fill: none;
  stroke: var(--color-lavender-light);
  stroke-width: 1.5;
  stroke-opacity: .55;
}

.ec-point-negative {
  fill: var(--color-ink);
  stroke: var(--color-lavender);
  stroke-width: 1.5;
}

.ec-label {
  fill: var(--color-lavender);
  font-family: var(--font-mono);
  font-size: 12px;
}

.ec-label-dim {
  fill: var(--color-lavender-mid);
  font-family: var(--font-mono);
  font-size: 11px;
}

.ec-traveler {
  offset-path: path("M81 210C81 196 92 178 118 172C140 167 175 165 205 171.5C232 177 252 186 270 196C278 201 281 205 281 210C281 215 278 219 270 224C252 234 232 243 205 248.5C175 255 140 253 118 248C92 242 81 224 81 210Z");
  offset-rotate: 0deg;
  animation: ec-travel 6s linear infinite;
}

.ec-traveler-halo {
  fill: var(--color-white);
  opacity: .22;
}

.ec-traveler-core {
  fill: var(--color-white);
}

.ec-traveler-static {
  display: none;
}

.facts-band {
  height: 96px;
  border-top: 1px solid var(--color-border);
  background: var(--color-panel);
}

.facts-band .wrap {
  display: flex;
  height: var(--hero-peek);
  align-items: center;
  gap: 36px;
}

.fact {
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  color: var(--color-muted);
  font-size: 13px;
  white-space: nowrap;
}

.fact b {
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 14px;
}

.fact-separator {
  width: 1px;
  height: 14px;
  flex: none;
  background: var(--color-border);
}

.preview-main {
  padding-bottom: 72px;
}

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

.preview-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 26px;
  padding-bottom: 13px;
  border-bottom: 3px solid var(--color-ink);
}

.preview-section-head h2 {
  margin: 0;
  font-size: 34px;
}

.preview-section-head p {
  margin: 0;
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

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

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

.swatch-color {
  height: 74px;
}

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

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

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

.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-ink {
  background: var(--color-ink);
}

.swatch-name {
  padding: 10px;
  color: var(--color-text);
  font-family: var(--font-mono);
  font-size: 11px;
}

.type-specimen {
  display: grid;
  gap: 18px;
  padding: 28px;
}

.type-display {
  margin: 0;
  font-size: clamp(42px, 6vw, 68px);
  font-weight: 900;
  line-height: 1.1;
}

.type-heading {
  margin: 0;
  font-size: 34px;
  font-weight: 850;
}

.type-body {
  max-width: 720px;
  margin: 0;
  color: var(--color-muted);
}

.type-mono {
  margin: 0;
  font-family: var(--font-mono);
  font-size: 13px;
}

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

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

@keyframes ec-travel {
  to {
    offset-distance: 100%;
  }
}

@keyframes ec-glow {
  0%,
  100% {
    opacity: .22;
  }

  50% {
    opacity: .4;
  }
}

@media (max-width: 1100px) {
  .hero-preview-grid {
    gap: 40px;
  }

  .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 {
    min-height: auto;
    padding-top: 24px;
    padding-bottom: 40px;
  }

  .hero-preview-grid {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .hero-copy {
    order: 1;
    max-width: none;
  }

  .ec-stage {
    order: 2;
    width: 100%;
    margin-left: 0;
  }

  .ec-backplate {
    top: -4px;
    left: -8px;
  }

  .ec-halo,
  .ec-foot,
  .ec-plot .ec-label,
  .ec-plot .ec-label-dim {
    display: none;
  }

  .facts-band {
    height: auto;
    padding: 14px 0;
  }

  .facts-band .wrap {
    height: auto;
    flex-wrap: wrap;
    gap: 12px 20px;
  }

  .tabs-shell {
    display: none;
  }

  .mobile-feature-list {
    display: grid;
    gap: 9px;
  }

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

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

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

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

  .preview-section-head {
    align-items: flex-start;
    flex-direction: column;
  }
}

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

  .ticker-track {
    width: 100%;
    flex-wrap: wrap;
    transform: none !important;
    will-change: auto;
  }

  .ticker-group {
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
    flex-wrap: wrap;
    justify-content: center;
    padding-inline: var(--gutter);
  }

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

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

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

  .ec-title {
    max-width: 72%;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .support-row {
    align-items: flex-start;
  }

  .support-label {
    width: 100%;
  }

  .preview-button-grid .btn {
    flex: 1 1 140px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ec-traveler {
    display: none;
  }

  .ec-traveler-static {
    display: block;
  }

  .ec-curve-glow {
    animation: none;
  }

  .ticker-track {
    transform: none;
  }
}