:root {
  --pricing-copy-max: 720px;
  --pricing-table-min: 980px;
  --pricing-icon-size: 48px;
  --pricing-ticket-width: 470px;
}

.pricing-intro {
  overflow-x: clip;
}

.pricing-intro-panel {
  position: relative;
  display: grid;
  min-height: 520px;
  grid-template-columns: minmax(0, 1.15fr) minmax(340px, 0.85fr);
  align-items: center;
  gap: 40px;
  padding: clamp(30px, 6vw, 72px);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  box-shadow: var(--shadow-panel);
}

.pricing-intro-panel::before {
  position: absolute;
  inset: 0;
  pointer-events: none;
  content: "";
  background-image:
    linear-gradient(var(--color-border) 1px, transparent 1px),
    linear-gradient(90deg, var(--color-border) 1px, transparent 1px);
  background-size: 64px 64px;
  opacity: 0.18;
}

.pricing-intro-copy {
  position: relative;
  z-index: 2;
  min-width: 0;
  max-width: var(--pricing-copy-max);
}

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

.pricing-intro-copy h1 {
  max-width: 10em;
}

.pricing-intro-lead {
  max-width: 43em;
  margin-bottom: 28px;
  color: var(--color-muted);
  font-size: 18px;
}

.pricing-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  margin: 24px 0 0;
  padding: 20px 0 0;
  border-top: 1px dashed var(--color-border);
  color: var(--color-muted);
  font-size: 13px;
  list-style: none;
}

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

.pricing-route-note {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.pricing-route-note svg {
  width: 100%;
  max-width: var(--pricing-ticket-width);
  margin-inline: auto;
  overflow: visible;
}

.pricing-contour,
.pricing-route,
.pricing-ticket-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.pricing-contour {
  stroke: var(--color-border);
  stroke-width: 2;
  stroke-dasharray: 6 9;
}

.pricing-route {
  stroke: var(--color-accent);
  stroke-width: 3;
}

.pricing-route-node {
  fill: var(--color-panel);
  stroke: var(--color-accent);
  stroke-width: 3;
}

.pricing-ticket {
  fill: var(--color-panel-alt);
  stroke: var(--color-border);
  stroke-width: 2;
  filter: drop-shadow(0 18px 20px var(--color-shadow-light));
}

.pricing-ticket-line {
  stroke: var(--color-muted);
  stroke-width: 3;
  opacity: 0.55;
}

.pricing-ticket-mark {
  fill: var(--color-accent);
}

.pricing-route-caption {
  position: absolute;
  right: 8%;
  bottom: 10%;
  display: inline-flex;
  min-height: 32px;
  align-items: center;
  padding: 5px 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-pill);
  background: var(--color-panel);
  box-shadow: var(--shadow-chip);
  color: var(--color-muted);
  font-family: var(--font-mono);
  font-size: 12px;
}

.pricing-section-heading {
  display: grid;
  grid-template-columns: minmax(280px, 0.8fr) minmax(0, 1.2fr);
  align-items: end;
  gap: 32px;
  margin-bottom: 36px;
}

.pricing-section-heading h2 {
  margin-bottom: 0;
}

.pricing-section-heading .eyebrow {
  margin-bottom: 18px;
}

.pricing-section-heading > p {
  max-width: 48em;
  margin: 0;
  color: var(--color-muted);
}

.pricing-tabs > .tab-list {
  margin-bottom: 8px;
}

.plan-explainer {
  margin: 24px 0 0;
  color: var(--color-muted);
  font-size: 14px;
}

.pricing-included {
  background: var(--color-panel-alt);
}

.included-ledger {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  box-shadow: var(--shadow-panel);
}

.included-index {
  display: grid;
  min-width: 0;
  grid-template-columns: var(--pricing-icon-size) minmax(0, 1fr);
  gap: 20px;
  padding: clamp(24px, 4vw, 38px);
  border-bottom: 1px solid var(--color-border);
}

.included-index:nth-child(odd) {
  border-right: 1px solid var(--color-border);
}

.included-index:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.included-mark {
  display: inline-flex;
  width: var(--pricing-icon-size);
  height: var(--pricing-icon-size);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
}

.included-mark svg {
  width: 28px;
  height: 28px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.8;
}

.included-index h3 {
  margin-bottom: 8px;
  font-size: 21px;
}

.included-index p {
  margin-bottom: 0;
  color: var(--color-muted);
}

.compare-table {
  min-width: var(--pricing-table-min);
}

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

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

.comparison-notes p {
  color: var(--color-muted);
}

.payment-section {
  background: var(--color-panel-alt);
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  align-items: start;
  gap: clamp(30px, 6vw, 76px);
}

.payment-copy .eyebrow {
  margin-bottom: 18px;
}

.payment-copy p {
  max-width: 50em;
  color: var(--color-muted);
}

.payment-ledger {
  position: sticky;
  top: calc(var(--header-height) + 22px);
}

.payment-ledger h3 {
  margin-bottom: 22px;
}

.payment-methods {
  display: grid;
  gap: 12px;
  margin: 0 0 28px;
  padding: 0;
  list-style: none;
}

.payment-methods li {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel-alt);
}

.payment-methods li > div {
  display: grid;
  min-width: 0;
}

.payment-methods span:not(.payment-symbol) {
  color: var(--color-muted);
  font-size: 12px;
}

.payment-symbol {
  display: inline-flex;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  background: var(--color-accent-soft);
  color: var(--color-accent-dark);
  font-weight: 680;
}

.payment-ledger .btn-primary {
  width: 100%;
}

.refund-panel {
  display: grid;
  grid-template-columns: minmax(140px, 0.28fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(28px, 6vw, 70px);
  padding: clamp(30px, 6vw, 68px);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-panel);
  box-shadow: var(--shadow-panel);
}

.refund-tag {
  display: flex;
  align-items: center;
  justify-content: center;
}

.refund-tag svg {
  width: min(180px, 100%);
  fill: var(--color-panel-alt);
  stroke: var(--color-accent-dark);
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  transform: rotate(-3deg);
}

.refund-copy .badge {
  margin-bottom: 18px;
}

.refund-copy h2 {
  font-size: clamp(32px, 4vw, 46px);
}

.refund-copy p {
  max-width: 52em;
  color: var(--color-muted);
}

.faq-narrow {
  max-width: calc(var(--reading-max) + 240px);
}

.faq-actions {
  display: flex;
  justify-content: center;
  margin-top: 28px;
}

@media (max-width: 980px) {
  .pricing-intro-panel {
    min-height: auto;
    grid-template-columns: minmax(0, 1fr);
  }

  .pricing-route-note {
    max-width: 620px;
    margin-inline: auto;
  }

  .pricing-section-heading,
  .payment-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .payment-ledger {
    position: static;
  }
}

@media (max-width: 768px) {
  .pricing-intro-panel {
    padding: 28px;
  }

  .pricing-intro-copy h1 {
    max-width: none;
  }

  .pricing-intro-lead {
    font-size: 16px;
  }

  .pricing-route-note {
    display: none;
  }

  .pricing-section-heading {
    gap: 14px;
    margin-bottom: 28px;
  }

  .included-ledger,
  .comparison-notes {
    grid-template-columns: minmax(0, 1fr);
  }

  .included-index,
  .included-index:nth-child(odd),
  .included-index:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

  .included-index:last-child {
    border-bottom: 0;
  }

  .refund-panel {
    grid-template-columns: minmax(0, 1fr);
  }

  .refund-tag {
    justify-content: flex-start;
  }

  .refund-tag svg {
    width: 110px;
  }
}

@media (max-width: 480px) {
  .pricing-intro-panel {
    padding: 24px 20px;
  }

  .pricing-trust {
    display: grid;
  }

  .included-index {
    grid-template-columns: minmax(0, 1fr);
  }

  .refund-panel {
    padding: 24px 20px;
  }

  .refund-copy .button-row {
    display: grid;
  }

  .refund-copy .button-row > a {
    width: 100%;
  }
}