.badge,
.tag,
.fact-chip {
  display: inline-flex;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  gap: 7px;
  padding: 4px 12px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  font-size: 13px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.badge-mint {
  background: var(--color-mint);
}

.badge-sky {
  background: var(--color-sky);
}

.badge-lilac {
  background: var(--color-lilac);
}

.badge-pink {
  background: var(--color-pink);
}

.badge-butter {
  background: var(--color-butter);
}

.tab-shell {
  max-width: 100%;
}

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

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

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

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

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

.toc-tabs {
  position: sticky;
  z-index: 30;
  top: 8px;
  display: flex;
  max-width: 100%;
  gap: 6px;
  margin-block: 24px;
  padding: 7px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

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

.toc-tabs a.is-current,
.toc-tabs a[aria-current="location"] {
  background: var(--color-butter);
  color: var(--color-text);
  box-shadow: inset 3px 0 var(--color-accent);
}

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

.faq-item {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: 0 1px 2px var(--color-shadow-light);
}

.faq-item summary {
  position: relative;
  display: flex;
  min-height: 58px;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 15px 20px;
  cursor: pointer;
  font-weight: 750;
  list-style: none;
}

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

.faq-item summary::after {
  width: 10px;
  height: 10px;
  flex: 0 0 auto;
  border-right: 2px solid var(--color-text-muted);
  border-bottom: 2px solid var(--color-text-muted);
  content: "";
  transform: rotate(45deg) translateY(-2px);
  transition: transform var(--motion-fast);
}

.faq-item[open] summary::after {
  transform: rotate(225deg) translate(-2px, -2px);
}

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

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

.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-bg);
  box-shadow: var(--shadow-soft);
}

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

.plan-ribbon {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 27px;
  padding: 3px 10px;
  border-radius: var(--radius-pill);
  background: var(--color-butter);
  color: var(--color-accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.plan-name {
  padding-right: 72px;
  font-size: 21px;
  font-weight: 850;
}

.plan-cycle {
  margin-top: 7px;
  color: var(--color-text-muted);
  font-size: 14px;
}

.plan-price {
  margin-top: 22px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

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

.plan-features {
  display: grid;
  gap: 9px;
  margin: 24px 0;
  color: var(--color-text-muted);
}

.plan-features li {
  display: flex;
  gap: 9px;
}

.plan-features li::before {
  flex: 0 0 auto;
  color: var(--color-success);
  content: "✓";
  font-weight: 850;
}

.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-bg);
  -webkit-overflow-scrolling: touch;
}

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

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

.data-table th,
.route-table th,
.compare-table th {
  background: var(--color-panel);
  color: var(--color-text);
  font-size: 13px;
  font-weight: 800;
  white-space: nowrap;
}

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

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

.route-group td {
  background: var(--color-butter);
  color: var(--color-accent-dark);
  font-size: 13px;
  font-weight: 850;
}

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

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

.platform-card {
  display: flex;
  min-width: 0;
  min-height: 190px;
  align-items: center;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  padding: 22px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
  text-align: center;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}

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

.platform-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: var(--radius-sm);
  background: var(--color-panel);
  color: var(--color-text);
}

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

.platform-name {
  font-weight: 800;
}

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

.article-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  padding: 24px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-bg);
  box-shadow: var(--shadow-soft);
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}

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

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

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

.article-card p {
  margin-top: 12px;
  color: var(--color-text-muted);
}

.article-card .article-link {
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  margin-top: auto;
  padding-top: 18px;
  color: var(--color-accent-dark);
  font-weight: 750;
}

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

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

.promo-block {
  position: relative;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 26px;
  align-items: center;
  padding: clamp(26px, 5vw, 48px);
  overflow-x: clip;
  border-radius: var(--radius-lg);
  background: var(--color-text);
  color: var(--color-bg);
  box-shadow: var(--shadow-card);
}

.promo-block p {
  margin-top: 8px;
  color: var(--color-border-strong);
}

.promo-block .btn {
  background: var(--color-accent);
  color: var(--color-text);
}

.float-cta {
  position: fixed;
  z-index: 80;
  right: 28px;
  bottom: calc(28px + env(safe-area-inset-bottom, 0px));
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  gap: 8px;
  padding: 0 24px;
  border-radius: var(--radius-pill);
  background: var(--color-accent);
  color: var(--color-text);
  box-shadow: var(--shadow-card);
  font-size: 15px;
  font-weight: 800;
  transition: transform var(--motion-fast), box-shadow var(--motion-fast);
}

.float-cta:hover {
  transform: translateY(-2px);
}

.float-cta::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-text);
  content: "";
}

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

.hero-preview {
  position: relative;
  display: flex;
  min-height: calc(100svh - var(--header-height));
  align-items: center;
  overflow-x: clip;
  border-bottom: 1px solid var(--color-border);
}

.hero-glow {
  position: absolute;
  top: 42%;
  left: 50%;
  width: 920px;
  height: 920px;
  border-radius: 50%;
  background: radial-gradient(closest-side, var(--color-accent-wash), var(--color-accent-fade) 46%, var(--color-accent-clear) 72%);
  pointer-events: none;
  transform: translate(-50%, -50%);
  animation: hero-breathe 9s ease-in-out infinite alternate;
}

@keyframes hero-breathe {
  from {
    opacity: .85;
    transform: translate(-50%, -50%) scale(1);
  }

  to {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1.06);
  }
}

.hero-preview-inner {
  position: relative;
  z-index: 2;
  width: 100%;
  max-width: 880px;
  margin-inline: auto;
  padding: 56px var(--gutter) 48px;
  text-align: center;
}

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

.hero-preview h1 {
  margin-top: 26px;
  letter-spacing: -.008em;
}

.hero-subtitle {
  max-width: 640px;
  margin: 24px auto 0;
  color: var(--color-text-muted);
  font-size: 17px;
  line-height: 1.75;
}

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

.hero-actions {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 32px;
}

.trust-row,
.platform-row,
.flag-row {
  display: flex;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.trust-row {
  gap: 10px 22px;
  margin-top: 26px;
  color: var(--color-text-muted);
  font-size: 14px;
}

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

.trust-row svg {
  width: 14px;
  height: 14px;
  flex: 0 0 auto;
  color: var(--color-success);
}

.platform-row {
  gap: 8px 28px;
  margin-top: 30px;
  color: var(--color-text-muted);
}

.platform-row li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
}

.platform-row svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
}

.flag-row {
  gap: 10px;
  margin-top: 22px;
}

.flag-row li {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  gap: 8px;
  padding: 4px 13px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  font-size: 13px;
  font-weight: 700;
}

.flag-row svg {
  width: 24px;
  height: 17px;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 3px;
}

.hero-note {
  position: absolute;
  z-index: 1;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 13px 18px;
  border: 1px solid var(--color-ink-border);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-soft);
  animation: note-drift 6.5s ease-in-out infinite alternate;
}

.hero-note-text {
  display: flex;
  flex-direction: column;
  gap: 2px;
  text-align: left;
}

.hero-note-key {
  color: var(--color-text-muted);
  font-size: 12px;
  font-weight: 550;
}

.hero-note-value {
  font-size: 14px;
  font-weight: 800;
  white-space: nowrap;
}

.hero-note-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--color-text);
}

.hero-note svg {
  width: 22px;
  height: 16px;
  flex: 0 0 auto;
}

@keyframes note-drift {
  from {
    transform: rotate(var(--note-tilt)) translateY(0);
  }

  to {
    transform: rotate(var(--note-tilt)) translateY(-8px);
  }
}

.hero-note-1 {
  --note-tilt: -2deg;
  top: 46px;
  left: 54px;
  background: var(--color-mint);
}

.hero-note-1 .hero-note-dot {
  background: var(--color-success);
}

.hero-note-2 {
  --note-tilt: 1.6deg;
  top: 300px;
  left: 30px;
  background: var(--color-sky);
  animation-delay: -2.2s;
}

.hero-note-3 {
  --note-tilt: -1.2deg;
  bottom: 54px;
  left: 76px;
  background: var(--color-lilac);
  animation-delay: -4.1s;
}

.hero-note-3 .hero-note-dot {
  background: var(--color-accent-dark);
}

.hero-note-4 {
  --note-tilt: 2deg;
  top: 60px;
  right: 60px;
  background: var(--color-pink);
  animation-delay: -1.4s;
}

.hero-note-4 .hero-note-dot {
  background: var(--color-error);
}

.hero-note-5 {
  --note-tilt: -1.6deg;
  top: 314px;
  right: 30px;
  background: var(--color-bg);
  animation-delay: -3.3s;
}

.hero-note-6 {
  --note-tilt: 1.2deg;
  right: 82px;
  bottom: 52px;
  background: var(--color-butter);
  animation-delay: -5s;
}

.hero-note-6 .hero-note-dot {
  background: var(--color-accent);
}

.preview-head {
  border-bottom: 1px solid var(--color-border);
  background: var(--color-bg);
}

.preview-nav {
  display: flex;
  height: var(--header-height);
  align-items: center;
  gap: 30px;
}

.preview-nav-list {
  display: flex;
  align-items: center;
  gap: 22px;
  color: var(--color-text-muted);
  font-size: 14px;
  font-weight: 650;
}

.preview-nav-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-left: auto;
}

.preview-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 38px;
}

.preview-section-head p {
  max-width: 560px;
  color: var(--color-text-muted);
}

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

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

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

.swatch-info {
  padding: 13px;
}

.swatch-info strong,
.swatch-info code {
  display: block;
}

.swatch-info code {
  margin-top: 3px;
  color: var(--color-text-muted);
  font-size: 11px;
}

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

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

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

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

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

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

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

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

.type-samples {
  display: grid;
  gap: 18px;
}

.type-sample {
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  gap: 24px;
  align-items: baseline;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--color-border);
}

.type-label {
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.button-demo {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.component-stack {
  display: grid;
  gap: 64px;
}

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

@media (max-width: 1279px) {
  .hero-note {
    display: none;
  }
}

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

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

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

  .preview-nav-list {
    display: none;
  }
}

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

  .hero-preview-inner {
    padding-top: 48px;
    padding-bottom: 56px;
  }

  .hero-glow {
    width: 560px;
    height: 560px;
  }

  .platform-row {
    gap: 12px 18px;
  }

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

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

  .type-sample {
    grid-template-columns: 1fr;
    gap: 6px;
  }
}

@media (max-width: 640px) {
  .platform-grid,
  .swatch-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .hero-actions .btn {
    width: min(100%, 280px);
  }

  .plan-card {
    padding: 22px;
  }

  .preview-nav-tools .language-toggle {
    display: none;
  }
}