.pricing-hero {
  padding-top: 72px;
  padding-bottom: 68px;
  border-bottom: 1px solid var(--color-border);
}

.pricing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, .7fr);
  align-items: end;
  gap: 52px;
}

.pricing-hero-copy {
  min-width: 0;
}

.pricing-hero-copy .eyebrow {
  margin-top: 22px;
  margin-bottom: 12px;
}

.pricing-hero-copy h1 {
  max-width: 760px;
}

.pricing-hero-copy .lead {
  max-width: 750px;
}

.pricing-console {
  min-width: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.pricing-console-head {
  display: flex;
  min-height: 42px;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-inline: 18px;
  border-bottom: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .1em;
}

.pricing-console-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-text);
  font-weight: 800;
}

.pricing-console-body {
  padding: 16px;
}

.pricing-console-row {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 14px;
  margin-bottom: 10px;
  padding: 15px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-sm);
  background: var(--color-canvas);
  box-shadow: var(--shadow-cell);
}

.pricing-console-row.is-current {
  border-color: var(--color-accent);
}

.pricing-console-code {
  flex: 0 0 auto;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 800;
}

.pricing-console-row.is-current .pricing-console-code {
  color: var(--color-accent-dark);
}

.pricing-console-row div {
  display: grid;
  min-width: 0;
}

.pricing-console-row strong {
  color: var(--color-text);
}

.pricing-console-row div span {
  color: var(--color-text-muted);
  font-size: 12px;
}

.pricing-console-foot {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px 14px;
  padding: 14px 4px 2px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: .06em;
}

.pricing-console-foot strong {
  min-width: 0;
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: 12px;
  letter-spacing: 0;
  overflow-wrap: anywhere;
}

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

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

.section-heading p:last-child {
  max-width: 500px;
  margin-bottom: 0;
  color: var(--color-text-muted);
}

.plan-selector {
  background: var(--color-canvas);
}

.pricing-panel {
  padding-top: 26px;
}

.billing-explainer {
  display: grid;
  grid-template-columns: minmax(150px, .3fr) minmax(0, 1fr);
  gap: 24px;
  margin-bottom: 22px;
  padding: 20px 22px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-panel);
}

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

.billing-explainer p {
  color: var(--color-text-muted);
}

.plan-description {
  min-height: 132px;
  color: var(--color-text-muted);
  font-size: 13.5px;
}

.included-section,
.payment-section,
.faq-section {
  border-top: 1px solid var(--color-border);
  background: var(--color-panel);
}

.included-browser {
  display: grid;
  grid-template-columns: minmax(150px, .27fr) minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-canvas);
  box-shadow: var(--shadow-soft);
}

.included-index {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--color-border);
  background: var(--color-panel);
}

.included-index-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: var(--color-text-muted);
}

.included-index-item.is-current {
  border-color: var(--color-accent);
  background: var(--color-canvas);
  color: var(--color-text);
}

.included-index-item span {
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
}

.included-index-item strong {
  font-size: 13px;
}

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

.included-details article {
  min-width: 0;
  padding: 27px;
  border-right: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}

.included-details article:nth-child(even) {
  border-right: 0;
}

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

.included-details h3 {
  margin-top: 10px;
}

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

.comparison-section {
  border-top: 1px solid var(--color-border);
}

.compare-table td {
  white-space: nowrap;
}

.payment-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, .75fr);
  gap: 56px;
}

.payment-copy {
  min-width: 0;
}

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

.payment-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 24px;
}

.text-link {
  color: var(--color-accent-dark);
  font-weight: 750;
}

.text-link:hover {
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.payment-channel {
  min-width: 0;
  padding: 20px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-canvas);
  box-shadow: var(--shadow-cell);
}

.payment-channel strong {
  display: block;
  margin-block: 8px 5px;
}

.payment-channel p {
  color: var(--color-text-muted);
  font-size: 13px;
}

.payment-code {
  color: var(--color-accent-dark);
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .1em;
}

.refund-section {
  border-top: 1px solid var(--color-border);
}

.refund-panel {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 42px;
  padding: 38px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.refund-marker {
  display: grid;
  width: 142px;
  height: 142px;
  place-content: center;
  border: 1px solid var(--color-accent);
  border-radius: 50%;
  background: var(--color-canvas);
  text-align: center;
}

.refund-marker span {
  color: var(--color-accent-dark);
  font-family: var(--font-display);
  font-size: 54px;
  font-weight: 900;
  line-height: 1;
}

.refund-marker small {
  margin-top: 7px;
  color: var(--color-text-muted);
  font-family: var(--font-mono);
  font-weight: 800;
  letter-spacing: .16em;
}

.refund-copy h2 {
  margin-bottom: 14px;
}

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

.faq-layout {
  display: grid;
  grid-template-columns: minmax(240px, .62fr) minmax(0, 1.38fr);
  align-items: start;
  gap: 54px;
}

.faq-heading {
  position: sticky;
  top: 28px;
}

.faq-heading p {
  color: var(--color-text-muted);
}

.closing-entry {
  border-top: 1px solid var(--color-border);
}

.closing-entry-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 32px;
  padding: 32px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-panel);
  box-shadow: var(--shadow-soft);
}

.closing-entry-panel h2 {
  margin-bottom: 10px;
  font-size: clamp(28px, 3vw, 40px);
}

.closing-entry-panel p {
  color: var(--color-text-muted);
}

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

  .pricing-console {
    max-width: 680px;
  }

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

  .included-browser {
    grid-template-columns: 1fr;
  }

  .included-index {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    border-right: 0;
    border-bottom: 1px solid var(--color-border);
  }

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

  .faq-heading {
    position: static;
  }
}

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

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

  .billing-explainer {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .included-index {
    display: flex;
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .included-index-item {
    min-width: 118px;
    flex: 0 0 auto;
  }

  .included-details {
    grid-template-columns: 1fr;
  }

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

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

  .refund-panel {
    align-items: start;
    grid-template-columns: 1fr;
  }

  .refund-marker {
    width: 116px;
    height: 116px;
  }

  .refund-marker span {
    font-size: 44px;
  }

  .closing-entry-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .pricing-hero-grid {
    gap: 34px;
  }

  .pricing-console-body {
    padding: 12px;
  }

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

  .section-heading {
    gap: 12px;
  }

  .billing-explainer,
  .included-details article,
  .refund-panel,
  .closing-entry-panel {
    padding: 20px;
  }

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

  .payment-actions .button,
  .closing-entry-panel .button {
    width: 100%;
  }

  .refund-panel {
    gap: 26px;
  }
}