.pricing-hero {
  position: relative;
  overflow-x: clip;
  border-bottom: 1px solid var(--color-border);
  padding-top: clamp(68px, 9vw, 108px);
  padding-bottom: clamp(54px, 7vw, 86px);
  text-align: center;
}

.pricing-hero::before {
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(0deg, var(--color-grid) 0 1px, transparent 1px 32px),
    repeating-linear-gradient(90deg, var(--color-grid) 0 1px, transparent 1px 32px);
  content: "";
  mask-image: radial-gradient(ellipse at center, var(--color-text) 0, transparent 72%);
  pointer-events: none;
}

.pricing-hero-inner {
  position: relative;
  z-index: 1;
}

.pricing-hero h1 {
  max-width: 850px;
  margin: 17px auto 18px;
}

.pricing-hero .lead {
  max-width: 780px;
  margin-inline: auto;
}

.pricing-hero-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 28px;
}

.pricing-facts {
  display: flex;
  max-width: 980px;
  align-items: stretch;
  justify-content: center;
  margin: 34px auto 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--color-panel) 88%, transparent);
  box-shadow: 0 20px 42px -34px var(--shadow-card);
}

.pricing-facts span {
  display: flex;
  min-width: 0;
  flex: 1;
  flex-direction: column;
  justify-content: center;
  padding: 16px 18px;
  color: var(--color-text-muted);
  font-size: 12px;
}

.pricing-facts span + span {
  border-left: 1px solid var(--color-border);
}

.pricing-facts strong {
  color: var(--color-text);
  font-family: var(--font-display);
  font-size: 15px;
}

.billing-switch-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 36px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  padding: clamp(24px, 4vw, 38px);
  box-shadow: 0 18px 42px -34px var(--shadow-card);
}

.billing-switch-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3.5vw, 40px);
}

.billing-switch-panel p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.billing-mode-controls {
  display: flex;
  gap: 7px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel-raised);
  padding: 7px;
}

.billing-mode-controls button {
  min-width: max-content;
  min-height: 44px;
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  padding-inline: 20px;
  color: var(--color-accent);
  font-weight: 750;
  box-shadow: 0 8px 18px -16px var(--shadow-card);
  transition: background-color 160ms ease, color 160ms ease, transform 160ms ease;
}

.billing-mode-controls button:hover {
  background: var(--color-accent);
  color: var(--color-white);
  transform: translateY(-1px);
}

.plan-summary,
.plan-note {
  color: var(--color-text-muted);
  font-size: 14px;
}

.plan-summary {
  min-height: 7.2em;
  margin-top: 10px;
}

.plan-note {
  margin: 0 0 22px;
  padding-top: 15px;
  border-top: 1px solid var(--color-border);
}

.monthly-rule {
  margin-top: 24px;
  margin-bottom: 0;
}

.traffic-section,
.comparison-section,
.refund-section {
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
  background: var(--color-panel-raised);
  padding-top: var(--section-space);
  padding-bottom: var(--section-space);
}

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

.traffic-card {
  display: flex;
  min-width: 0;
  flex-direction: column;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  padding: 27px;
  box-shadow: 0 18px 38px -34px var(--shadow-card);
  transform-style: preserve-3d;
}

.traffic-card-emphasis {
  border-color: var(--color-accent);
  background: linear-gradient(180deg, var(--color-accent-soft), var(--color-panel));
}

.traffic-card-head {
  display: flex;
  min-width: 0;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.traffic-card-head h3 {
  margin-bottom: 0;
  font-size: 20px;
}

.traffic-price {
  margin: 22px 0 15px;
  font-family: var(--font-display);
  font-size: 42px;
  font-weight: 900;
  letter-spacing: -0.03em;
  line-height: 1;
}

.traffic-card p,
.traffic-card li {
  color: var(--color-text-muted);
  font-size: 14px;
}

.traffic-card ul {
  display: grid;
  gap: 8px;
  margin: 2px 0 24px;
  padding: 0;
  list-style: none;
}

.traffic-card li {
  position: relative;
  padding-left: 23px;
}

.traffic-card li::before {
  position: absolute;
  left: 0;
  color: var(--color-success);
  content: "✓";
  font-weight: 900;
}

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

.included-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.72fr) minmax(0, 1.28fr);
  align-items: start;
  gap: clamp(38px, 7vw, 84px);
}

.included-copy {
  position: sticky;
  top: calc(var(--header-height) + 32px);
}

.included-copy p {
  color: var(--color-text-muted);
}

.included-list {
  display: grid;
  gap: 12px;
}

.included-list article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: 21px;
}

.included-list h3 {
  margin-bottom: 5px;
  font-size: 18px;
}

.included-list p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.included-mark {
  display: inline-flex;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-success-soft);
  color: var(--color-success);
  font-weight: 900;
}

.comparison-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 22px;
}

.comparison-notes h3 {
  font-size: 20px;
}

.comparison-notes p {
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(300px, 0.88fr);
  align-items: start;
  gap: clamp(38px, 7vw, 82px);
}

.payment-layout > div:first-child > p:not(.eyebrow):not(.lead) {
  color: var(--color-text-muted);
}

.payment-methods {
  display: grid;
  gap: 12px;
}

.payment-methods article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 16px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
  padding: 20px;
}

.payment-methods h3 {
  margin-bottom: 4px;
  font-size: 18px;
}

.payment-methods p {
  margin-bottom: 0;
  color: var(--color-text-muted);
  font-size: 14px;
}

.payment-symbol {
  display: inline-flex;
  width: 43px;
  height: 43px;
  flex: 0 0 43px;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  background: var(--color-accent);
  color: var(--color-white);
  font-family: var(--font-display);
  font-weight: 850;
}

.refund-layout {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: clamp(30px, 6vw, 72px);
  max-width: 980px;
}

.refund-seal {
  display: flex;
  width: clamp(145px, 18vw, 205px);
  aspect-ratio: 1;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-accent-soft);
  box-shadow:
    inset 0 0 0 9px var(--color-panel-raised),
    inset 0 0 0 10px var(--color-border),
    0 26px 48px -34px var(--shadow-card);
  color: var(--color-accent);
}

.refund-seal span {
  font-family: var(--font-display);
  font-size: clamp(48px, 7vw, 76px);
  font-weight: 900;
  letter-spacing: -0.05em;
  line-height: 0.9;
}

.refund-seal small {
  margin-top: 9px;
  color: var(--color-accent-dark);
  font-weight: 800;
}

.refund-layout p:not(.eyebrow):not(.lead) {
  color: var(--color-text-muted);
}

.refund-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 25px;
}

.faq-heading-row {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 34px;
}

.faq-heading-row h2 {
  margin-bottom: 0;
}

.faq-heading-row > a {
  min-height: 44px;
  font-weight: 750;
}

.pricing-endcap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 30px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, var(--color-panel), var(--color-panel-raised));
  padding: clamp(26px, 5vw, 48px);
  box-shadow: 0 22px 48px -38px var(--shadow-card);
}

.pricing-endcap h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 4vw, 42px);
}

.pricing-endcap p:last-child {
  max-width: 720px;
  margin-bottom: 0;
  color: var(--color-text-muted);
}

@media (max-width: 960px) {
  .traffic-grid {
    grid-template-columns: 1fr;
  }

  .plan-summary {
    min-height: 0;
  }

  .included-layout,
  .payment-layout {
    grid-template-columns: 1fr;
  }

  .included-copy {
    position: static;
  }
}

@media (max-width: 768px) {
  .pricing-facts {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-facts span + span {
    border-left: 0;
  }

  .pricing-facts span:nth-child(even) {
    border-left: 1px solid var(--color-border);
  }

  .pricing-facts span:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }

  .billing-switch-panel,
  .pricing-endcap {
    grid-template-columns: 1fr;
  }

  .comparison-notes {
    grid-template-columns: 1fr;
  }

  .refund-layout {
    grid-template-columns: 1fr;
  }

  .refund-seal {
    width: 150px;
  }

  .faq-heading-row {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .pricing-hero {
    padding-top: 54px;
    padding-bottom: 52px;
  }

  .pricing-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

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

  .pricing-facts span:nth-child(even) {
    border-left: 0;
  }

  .pricing-facts span + span,
  .pricing-facts span:nth-child(n + 3) {
    border-top: 1px solid var(--color-border);
  }

  .billing-mode-controls {
    width: 100%;
  }

  .billing-mode-controls button {
    min-width: 0;
    flex: 1;
    padding-inline: 12px;
  }

  .traffic-card {
    padding: 21px;
  }

  .traffic-card-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .included-list article,
  .payment-methods article {
    gap: 12px;
    padding: 18px;
  }

  .refund-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .pricing-endcap .btn {
    width: 100%;
  }
}