.tab-shell {
  min-width: 0;
}

.tab-list {
  display: flex;
  width: fit-content;
  max-width: 100%;
  margin: 0 auto 28px;
  padding: 5px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-panel);
  scrollbar-width: thin;
}

.tab-list [role="tab"] {
  min-height: 42px;
  padding: 8px 18px;
  flex: 0 0 auto;
  border: 0;
  border-radius: var(--radius-small);
  color: var(--color-muted);
  background: transparent;
  font-weight: 700;
  white-space: nowrap;
}

.tab-list [role="tab"][aria-selected="true"],
.tab-list [role="tab"].is-active {
  color: var(--color-white);
  background: var(--color-accent);
  box-shadow: var(--shadow-button);
}

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

.toc-tabs {
  position: sticky;
  z-index: 35;
  top: 10px;
  display: flex;
  max-width: 100%;
  margin-bottom: 36px;
  padding: 6px;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-bg);
  box-shadow: var(--shadow-panel);
  scrollbar-width: thin;
  white-space: nowrap;
}

.toc-tabs a {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 8px 14px;
  flex: 0 0 auto;
  border-right: 1px solid var(--color-border);
  color: var(--color-muted);
  font-size: 13px;
  font-weight: 650;
  text-decoration: none;
}

.toc-tabs a:last-child {
  border-right: 0;
}

.toc-tabs a.is-current,
.toc-tabs a[aria-current="true"] {
  color: var(--color-white);
  background: var(--color-accent);
}

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

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

.faq-item summary {
  position: relative;
  padding: 20px 44px 20px 0;
  cursor: pointer;
  color: var(--color-accent-dark);
  font-size: 17px;
  font-weight: 720;
  list-style: none;
}

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

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

.faq-item[open] summary::after {
  content: "−";
  color: var(--color-white);
  background: var(--color-accent);
}

.faq-answer {
  max-width: 52rem;
  padding: 0 44px 22px 0;
  color: var(--color-muted);
}

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

.plan-card {
  position: relative;
  display: flex;
  min-width: 0;
  padding: 28px;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-top: 5px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-bg);
  box-shadow: 0 8px 0 var(--color-accent-soft);
}

.plan-card.is-featured,
.plan-card.is-current {
  border-color: var(--color-accent);
  border-top-color: var(--color-error);
  background: var(--color-water);
  box-shadow: var(--shadow-panel);
  transform: translateY(-8px);
}

.plan-ribbon {
  position: absolute;
  top: 14px;
  right: -5px;
  padding: 5px 12px;
  border: 1px solid var(--color-accent-dark);
  color: var(--color-white);
  background: var(--color-error);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

.plan-name {
  margin-bottom: 8px;
  color: var(--color-accent-dark);
  font-family: var(--font-display);
  font-size: 27px;
  font-weight: 700;
}

.plan-price {
  display: flex;
  align-items: baseline;
  margin: 12px 0 20px;
  color: var(--color-accent-dark);
  gap: 5px;
}

.plan-price strong {
  font-family: var(--font-mono);
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1;
}

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

.plan-features {
  margin-bottom: 26px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 20px;
  color: var(--color-muted);
  font-size: 14px;
}

.plan-features li::before {
  position: absolute;
  top: 0.28em;
  left: 0;
  color: var(--color-success);
  content: "✓";
  font-weight: 800;
}

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

.server-table-wrap {
  max-width: 100%;
  overflow-x: auto;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-bg);
  -webkit-overflow-scrolling: touch;
}

.server-table {
  width: 100%;
  min-width: 720px;
  border-collapse: collapse;
}

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

.server-table th {
  color: var(--color-accent-dark);
  background: var(--color-panel);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.05em;
}

.server-table .region-row th {
  border-top: 3px solid var(--color-accent);
  color: var(--color-white);
  background: var(--color-accent);
  font-family: var(--font-body);
  font-size: 13px;
}

.server-table tr:last-child td {
  border-bottom: 0;
}

.server-country {
  display: flex;
  align-items: center;
  gap: 9px;
  font-weight: 700;
}

.server-country > span:first-child {
  flex: 0 0 auto;
}

.route-type,
.stream-status {
  display: inline-flex;
  max-width: 100%;
  padding: 4px 8px;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  color: var(--color-accent);
  background: var(--color-water);
  font-size: 11px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

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

.platform-card {
  display: flex;
  min-width: 0;
  min-height: 220px;
  padding: 22px;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background:
    linear-gradient(180deg, var(--color-water-soft), transparent 55%),
    var(--color-bg);
}

.platform-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 30px;
  flex: 0 0 auto;
  place-items: center;
  border: 1px solid var(--color-accent);
  border-radius: var(--radius-small);
  color: var(--color-accent);
  background: var(--color-water);
}

.platform-icon svg {
  width: 26px;
  height: 26px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.7;
}

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

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

.platform-card .button {
  width: 100%;
  min-width: 0;
  min-height: 40px;
  margin-top: auto;
  padding-inline: 12px;
  font-size: 12px;
}

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

.article-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 290px;
  padding: 26px;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-bg);
  box-shadow: 0 8px 0 var(--color-accent-soft);
}

.article-card::before {
  width: 42px;
  height: 4px;
  margin-bottom: 26px;
  content: "";
  background: var(--color-error);
}

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

.article-card h3 {
  font-family: var(--font-display);
  font-size: 22px;
  line-height: 1.35;
}

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

.article-card > a:last-child {
  margin-top: auto;
  font-weight: 750;
  text-decoration: none;
}

.callout {
  position: relative;
  margin: 28px 0;
  padding: 22px 24px 22px 62px;
  border: 1px solid var(--color-border);
  border-left: 5px solid var(--color-success);
  border-radius: var(--radius-small);
  color: var(--color-accent-dark);
  background: var(--color-water);
}

.callout::before {
  position: absolute;
  top: 20px;
  left: 22px;
  color: var(--color-success);
  content: "※";
  font-family: var(--font-display);
  font-size: 24px;
}

.callout-warn {
  border-left-color: var(--color-warn);
  background: var(--color-panel);
}

.callout-warn::before {
  color: var(--color-warn);
}

.promo-block {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  margin-top: 54px;
  padding: clamp(26px, 5vw, 46px);
  overflow: hidden;
  border: 1px solid var(--color-accent-dark);
  border-radius: var(--radius-small);
  color: var(--color-water);
  background:
    linear-gradient(115deg, var(--color-accent-dark), var(--color-accent));
  box-shadow: var(--shadow-panel);
  gap: 28px;
}

.promo-block::after {
  position: absolute;
  right: 24%;
  bottom: -72px;
  width: 150px;
  height: 150px;
  border: 1px dashed var(--color-water-strong);
  border-radius: var(--radius-pill);
  content: "";
}

.promo-block h2,
.promo-block h3,
.promo-block strong {
  color: var(--color-white);
}

.promo-block p {
  max-width: 42rem;
  margin-bottom: 0;
  color: var(--color-border);
}

.promo-block .button {
  position: relative;
  z-index: 1;
  border-color: var(--color-white);
  color: var(--color-accent-dark);
  background: var(--color-white);
}

.float-cta {
  position: fixed;
  z-index: 55;
  right: 24px;
  bottom: 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 104px;
  min-height: 44px;
  padding: 10px 18px;
  border: 1px solid var(--color-accent-dark);
  border-radius: var(--radius-small);
  color: var(--color-white);
  background: var(--color-accent-dark);
  box-shadow: var(--shadow-float);
  font-size: 13px;
  font-weight: 750;
  text-decoration: none;
}

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

.float-cta::after {
  margin-left: 9px;
  content: "↗";
  font-family: var(--font-mono);
  font-size: 12px;
}

.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 28px 0;
  gap: 12px;
}

.stat-card {
  padding: 20px;
  border: 1px solid var(--color-border);
  border-top: 4px solid var(--color-accent);
  background: var(--color-panel);
}

.stat-num {
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 24px;
  font-weight: 800;
}

.stat-label {
  color: var(--color-muted);
  font-size: 12px;
}

.check-list {
  padding: 20px 22px 20px 44px;
  border: 1px solid var(--color-border);
  background: var(--color-panel);
}

.verdict {
  margin: 24px 0;
  padding: 18px 20px;
  border-left: 5px solid var(--color-accent);
  background: var(--color-water);
}

.preview-hero {
  position: relative;
  height: 818px;
  overflow: hidden;
  isolation: isolate;
  background:
    linear-gradient(90deg, transparent 0, transparent 49.94%, var(--color-accent-line) 50%, transparent 50.06%, transparent 100%),
    linear-gradient(180deg, var(--color-bg) 0%, var(--color-bg) 62%, var(--color-panel) 100%);
}

.preview-hero::before {
  position: absolute;
  z-index: -3;
  top: -8px;
  left: 50%;
  width: 660px;
  height: 760px;
  content: "";
  transform: translateX(-50%);
  opacity: 0.84;
  background: linear-gradient(180deg, var(--color-paper-faint) 0%, var(--color-water-soft) 28%, var(--color-water-strong) 72%, transparent 100%);
  clip-path: polygon(29% 0, 71% 0, 91% 100%, 9% 100%);
  animation: mist-breathe 8s ease-in-out infinite alternate;
}

.preview-hero::after {
  position: absolute;
  z-index: -2;
  inset: 0;
  content: "";
  opacity: 0.46;
  background-image:
    linear-gradient(var(--color-accent-line) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-accent-line) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: linear-gradient(180deg, transparent 0%, transparent 15%, var(--color-text) 44%, transparent 89%);
}

@keyframes mist-breathe {
  from {
    transform: translateX(-50%) scaleX(0.96);
    opacity: 0.7;
  }

  to {
    transform: translateX(-50%) scaleX(1.04);
    opacity: 0.9;
  }
}

.hero-topline {
  position: absolute;
  z-index: 8;
  top: 40px;
  left: 50%;
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 13px;
  transform: translateX(-50%);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  color: var(--color-accent);
  background: var(--color-paper-soft);
  box-shadow: 0 5px 16px var(--color-accent-shadow);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  gap: 9px;
  white-space: nowrap;
}

.hero-topline::before {
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: var(--radius-pill);
  content: "";
  background: var(--color-success);
  box-shadow: 0 0 0 4px var(--color-accent-soft);
}

.preview-hero-title {
  position: absolute;
  z-index: 1;
  top: 116px;
  left: 50%;
  display: grid;
  grid-template-columns: 1fr 384px 1fr;
  align-items: center;
  width: min(1220px, calc(100% - 100px));
  max-width: none;
  margin: 0;
  transform: translateX(-50%);
  color: var(--color-accent-dark);
  font-family: var(--font-display);
  font-size: 70px;
  font-weight: 650;
  line-height: 1.1;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.preview-title-brand {
  justify-self: end;
  background: linear-gradient(90deg, var(--color-accent-dark), var(--color-success));
  background-clip: text;
  color: transparent;
}

.preview-title-value {
  grid-column: 3;
  justify-self: start;
  color: var(--color-accent);
}

.hero-device {
  position: absolute;
  z-index: 3;
  top: 40px;
  left: 50%;
  width: 420px;
  height: 670px;
  transform: translateX(-50%);
  pointer-events: none;
  filter: drop-shadow(0 22px 18px var(--color-accent-shadow));
}

.bottle-outline {
  fill: var(--color-white-soft);
  stroke: var(--color-accent);
  stroke-width: 2;
}

.bottle-inner-line {
  fill: none;
  stroke: var(--color-white-line);
  stroke-width: 6;
  stroke-linecap: round;
}

.bottle-ridge {
  fill: var(--color-panel);
  stroke: var(--color-accent);
  stroke-width: 1.7;
}

.water-stop-a {
  stop-color: var(--color-water);
}

.water-stop-b {
  stop-color: var(--color-water-strong);
}

.water-body {
  fill: url("#water-fill");
  stroke: var(--color-accent-line);
}

.water-surface,
.stream-line {
  fill: none;
  stroke: var(--color-white);
  stroke-linecap: round;
}

.water-surface {
  stroke-width: 3;
}

.stream-line {
  stroke-width: 8;
}

.stream-core {
  fill: none;
  stroke: var(--color-success);
  stroke-width: 1.4;
  stroke-dasharray: 4 8;
}

.source-line {
  fill: none;
  stroke: var(--color-accent);
  stroke-width: 1.2;
  stroke-dasharray: 4 5;
}

.source-node {
  fill: var(--color-bg);
  stroke: var(--color-accent);
  stroke-width: 2;
}

.source-core {
  fill: var(--color-success);
}

.svg-chip {
  fill: var(--color-paper-soft);
  stroke: var(--color-border);
}

.svg-chip-text {
  fill: var(--color-accent-dark);
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 700;
}

.svg-small-text {
  fill: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 9px;
}

.label-panel {
  fill: var(--color-error);
  stroke: var(--color-accent-dark);
  stroke-width: 1.5;
}

.label-brand,
.label-copy {
  fill: var(--color-white);
}

.label-brand {
  font-family: var(--font-display);
  font-size: 31px;
  font-weight: 700;
}

.label-copy {
  font-family: var(--font-body);
  font-size: 11px;
  font-weight: 650;
}

.cap-text {
  fill: var(--color-accent);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.hero-actions {
  position: absolute;
  z-index: 10;
  top: 236px;
  left: 50%;
  display: flex;
  transform: translateX(-50%);
  gap: 10px;
}

.hero-description {
  position: absolute;
  z-index: 9;
  top: 300px;
  left: 50%;
  width: 840px;
  margin: 0;
  transform: translateX(-50%);
  color: var(--color-muted);
  font-size: 14px;
  line-height: 1.75;
  text-align: center;
  text-shadow: 0 1px 0 var(--color-bg), 0 0 12px var(--color-bg);
}

.side-note {
  position: absolute;
  z-index: 7;
  display: grid;
  min-width: 176px;
  padding: 12px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  color: var(--color-muted);
  background: var(--color-paper-soft);
  box-shadow: 0 9px 22px var(--color-accent-shadow);
  gap: 5px;
}

.side-note::after {
  position: absolute;
  top: 50%;
  width: 66px;
  border-top: 1px dashed var(--color-accent);
  content: "";
}

.side-note-left {
  top: 407px;
  left: calc(50% - 434px);
}

.side-note-left::after {
  right: -67px;
}

.side-note-right {
  top: 345px;
  right: calc(50% - 434px);
}

.side-note-right::after {
  left: -67px;
}

.note-kicker {
  color: var(--color-success);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.11em;
}

.note-value {
  color: var(--color-accent-dark);
  font-size: 13px;
  font-weight: 720;
}

.note-detail {
  font-size: 11px;
}

.platform-strip {
  position: absolute;
  z-index: 7;
  top: 538px;
  left: calc(50% - 476px);
  display: flex;
  padding: 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  background: var(--color-paper-soft);
  box-shadow: 0 9px 22px var(--color-accent-shadow);
  gap: 7px;
}

.platform-strip::after {
  position: absolute;
  top: 50%;
  right: -73px;
  width: 72px;
  border-top: 1px dashed var(--color-accent);
  content: "";
}

.platform-strip span {
  padding: 6px 8px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-small);
  color: var(--color-accent);
  background: var(--color-bg);
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 700;
}

.refund-stamp {
  position: absolute;
  z-index: 11;
  top: 493px;
  left: calc(50% + 188px);
  display: grid;
  width: 108px;
  height: 108px;
  place-items: center;
  transform: rotate(8deg);
  border: 2px solid var(--color-error);
  border-radius: var(--radius-pill);
  color: var(--color-error);
  background: var(--color-red-soft);
  box-shadow:
    inset 0 0 0 5px var(--color-bg),
    inset 0 0 0 6px var(--color-error),
    var(--shadow-panel);
  text-align: center;
}

.refund-stamp span {
  display: block;
  max-width: 76px;
  font-family: var(--font-display);
  font-size: 19px;
  font-weight: 750;
  line-height: 1.05;
}

.refund-stamp small {
  display: block;
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 8px;
  font-weight: 800;
}

.hero-trust {
  position: absolute;
  z-index: 12;
  right: 0;
  bottom: 45px;
  left: 0;
}

.preview-section-heading {
  display: grid;
  grid-template-columns: minmax(180px, 0.6fr) minmax(0, 1.4fr);
  align-items: end;
  margin-bottom: 36px;
  gap: 30px;
}

.preview-section-heading p {
  margin-bottom: 0;
  color: var(--color-muted);
}

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

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

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

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

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

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

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

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

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

.swatch code {
  display: block;
  padding: 11px;
  border: 0;
  background: transparent;
  font-size: 10px;
}

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

  .plan-card.is-featured,
  .plan-card.is-current {
    transform: none;
  }

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

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

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

  .preview-hero-title {
    top: 105px;
    display: block;
    width: calc(100% - 32px);
    font-size: 40px;
    text-align: center;
    white-space: normal;
  }

  .preview-title-value {
    display: block;
    margin-top: 4px;
  }

  .hero-device {
    top: 132px;
    width: 320px;
    height: auto;
  }

  .hero-actions {
    top: 252px;
  }

  .hero-description {
    top: 310px;
    width: calc(100% - 42px);
    font-size: 13px;
  }

  .side-note,
  .platform-strip,
  .refund-stamp {
    display: none;
  }

  .hero-trust {
    bottom: 52px;
    padding-inline: 20px;
  }

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

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

  .promo-block::after {
    display: none;
  }

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

@media (max-width: 640px) {
  .toc-tabs {
    top: 6px;
    margin-inline: calc(var(--gutter) * -1);
    border-inline: 0;
  }

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

  .platform-card {
    min-height: 190px;
  }

  .faq-item summary {
    padding-right: 40px;
    font-size: 16px;
  }

  .faq-answer {
    padding-right: 0;
  }

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

  .callout {
    padding: 52px 18px 18px;
  }

  .float-cta {
    right: 14px;
    bottom: 14px;
  }

  .hero-actions {
    width: calc(100% - 32px);
  }

  .hero-actions .button {
    min-width: 0;
    padding-inline: 14px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .preview-hero::before {
    animation: none;
  }
}