.pricing-page {
  overflow: hidden;
}

.pricing-hero,
.pricing-section {
  padding: 52px 0;
  border-bottom: 1px solid rgba(17, 19, 22, 0.14);
}

.pricing-hero {
  position: relative;
  padding-top: 34px;
}

.pricing-hero::before {
  content: "";
  position: absolute;
  width: 360px;
  height: 360px;
  right: -150px;
  top: -170px;
  border: 1px solid rgba(17, 19, 22, 0.14);
  border-radius: 50%;
  background: var(--teal-soft);
  box-shadow: inset 0 0 0 56px rgba(0, 190, 167, 0.07);
  pointer-events: none;
}

.pricing-hero .container {
  position: relative;
}

.pricing-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(330px, 0.85fr);
  gap: 34px;
  align-items: end;
}

.price-summary {
  padding: 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow);
}

.summary-label {
  display: block;
  margin-bottom: 16px;
  color: var(--muted);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.price-summary dl {
  display: grid;
  gap: 0;
  margin: 0;
}

.price-summary dl div {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 16px;
  padding: 13px 0;
  border-top: 1px solid var(--line);
}

.price-summary dt {
  color: var(--muted);
}

.price-summary dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  text-align: right;
}

.section-soft {
  background: var(--paper-2);
}

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

.pricing-plan {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  padding: 22px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.pricing-plan:hover {
  transform: translate(-2px, -2px);
  box-shadow: 8px 8px 0 rgba(17, 19, 22, 0.16);
}

.pricing-plan.recommended {
  background: var(--ink);
  color: var(--white);
  box-shadow: 7px 7px 0 var(--teal);
}

.pricing-plan.recommended p,
.pricing-plan.recommended li,
.pricing-plan.recommended .plan-meta,
.pricing-plan.recommended .plan-use,
.pricing-plan.recommended .plan-period {
  color: rgba(255, 255, 255, 0.76);
}

.pricing-plan.recommended .button-primary {
  color: var(--ink);
  background: var(--white);
  box-shadow: 6px 6px 0 var(--teal);
}

.recommend-badge {
  position: absolute;
  top: 14px;
  right: 14px;
  padding: 6px 8px;
  border: 1px solid var(--teal-2);
  border-radius: var(--radius);
  color: var(--ink);
  background: var(--teal-2);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.65rem;
  font-weight: 800;
  text-transform: uppercase;
}

.plan-heading {
  display: grid;
  gap: 4px;
  min-height: 52px;
  padding-right: 72px;
}

.pricing-plan:not(.recommended) .plan-heading {
  padding-right: 0;
}

.plan-period,
.plan-use {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.plan-use {
  font-weight: 600;
}

.plan-name {
  margin-top: 20px;
  font-size: 1.12rem;
  font-weight: 800;
}

.plan-price {
  margin-top: 6px;
  font-size: clamp(2.1rem, 4vw, 3.15rem);
  font-weight: 800;
  line-height: 1;
}

.plan-meta {
  margin-top: 9px;
  color: var(--muted);
  font-size: 0.85rem;
  font-weight: 700;
}

.plan-description {
  min-height: 72px;
  margin-top: 18px;
}

.plan-features {
  display: grid;
  gap: 8px;
  margin: 18px 0 22px;
  padding: 0;
  list-style: none;
}

.plan-features li {
  position: relative;
  padding-left: 20px;
  font-size: 0.88rem;
  line-height: 1.45;
}

.plan-features li::before {
  content: "✓";
  position: absolute;
  left: 0;
  color: var(--teal-dark);
  font-weight: 900;
}

.pricing-plan.recommended .plan-features li::before {
  color: var(--teal-2);
}

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

.offers-status,
.pricing-disclaimer {
  max-width: 850px;
  margin: 18px auto 0;
  text-align: center;
}

.offers-status {
  min-height: 28px;
  color: var(--ink-2);
  font-weight: 800;
}

.offers-status[data-state="fallback"] {
  color: #9a4b00;
}

.comparison-wrap {
  overflow-x: auto;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

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

.comparison-wrap th,
.comparison-wrap td {
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}

.comparison-wrap thead th {
  color: var(--muted);
  background: var(--paper);
  font-family: "IBM Plex Mono", monospace;
  font-size: 0.72rem;
  text-transform: uppercase;
}

.comparison-wrap tbody tr:last-child th,
.comparison-wrap tbody tr:last-child td {
  border-bottom: 0;
}

.comparison-wrap tbody th,
.comparison-wrap tbody td:nth-child(2) {
  color: var(--ink);
  font-weight: 800;
}

.comparison-wrap a {
  color: var(--ink);
  font-weight: 800;
  text-decoration: underline;
  text-underline-offset: 4px;
}

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

.included-card {
  padding: 20px;
  border: 1px solid rgba(17, 19, 22, 0.18);
  border-radius: var(--radius);
  background: var(--white);
}

.included-card > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--teal-2);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 800;
}

.included-card p {
  margin-top: 10px;
}

.pricing-section.section-dark {
  color: var(--white);
  background: var(--ink);
}

.section-dark h2,
.section-dark h3,
.section-dark strong {
  color: var(--white);
}

.section-dark .section-tag {
  color: var(--white);
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.2);
}

.purchase-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: purchase-step;
}

.purchase-steps li {
  counter-increment: purchase-step;
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.05);
}

.purchase-steps li::before {
  content: "0" counter(purchase-step);
  display: block;
  margin-bottom: 28px;
  color: var(--teal-2);
  font-family: "IBM Plex Mono", monospace;
  font-weight: 800;
}

.purchase-steps strong,
.purchase-steps span {
  display: block;
}

.purchase-steps span {
  margin-top: 9px;
  color: rgba(255, 255, 255, 0.7);
}

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

.pricing-faq details {
  margin: 0;
  background: var(--white);
}

.pricing-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 24px;
  align-items: center;
  padding: 28px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: var(--teal-soft);
  box-shadow: var(--shadow);
}

.pricing-cta h2 {
  margin-top: 14px;
}

.pricing-cta p {
  margin-top: 10px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1040px) {
  .pricing-cards,
  .included-grid,
  .purchase-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .pricing-hero-grid {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .price-summary {
    max-width: 620px;
  }

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

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

  .pricing-cta .button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .pricing-hero,
  .pricing-section {
    padding: 38px 0;
  }

  .pricing-cards,
  .included-grid,
  .purchase-steps {
    grid-template-columns: 1fr;
  }

  .pricing-plan {
    padding: 20px;
  }

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

  .price-summary dl div {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .price-summary dd {
    text-align: left;
  }
}

@media (prefers-reduced-motion: reduce) {
  .pricing-plan {
    transition: none;
  }
}
