.product-purchase-page {
  min-height: 100vh;
  background: #f8f9f7;
}

.purchase-site-header {
  max-width: 1320px;
}

.purchase-site-header nav a:focus-visible,
.purchase-site-header>a:focus-visible,
.purchase-footer a:focus-visible {
  outline: 3px solid var(--orange);
  outline-offset: 4px;
}

.purchase-hero {
  width: min(1260px, calc(100% - 48px));
  margin: 36px auto 0;
  padding: clamp(36px, 6vw, 78px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(220px, .6fr);
  gap: 48px;
  align-items: center;
  box-shadow: 0 20px 55px #18312b0d;
}

.purchase-hero h1,
.purchase-section-heading h2,
.purchase-how h2 {
  margin: 0;
  color: #102d29;
  font: 700 clamp(36px, 5vw, 58px)/1.05 "DM Sans", sans-serif;
  letter-spacing: -2px;
}

.purchase-hero>div>p:last-child {
  max-width: 650px;
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.65;
}

.purchase-hero-note {
  padding: 24px;
  border: 1px solid #dce7e1;
  border-radius: 14px;
  background: #f4f8f5;
}

.purchase-hero-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: 18px;
  border-radius: 12px;
  background: var(--teal);
  color: #fff;
  font: 700 26px "Playfair Display", serif;
}

.purchase-hero-note strong,
.purchase-hero-note small {
  display: block;
}

.purchase-hero-note strong {
  color: var(--ink);
  font-size: 16px;
}

.purchase-hero-note small {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.purchase-plans-section {
  width: min(1260px, calc(100% - 48px));
  margin: 78px auto;
  scroll-margin-top: 24px;
}

.purchase-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 30px;
  margin-bottom: 28px;
}

.purchase-section-heading h2,
.purchase-how h2 {
  font-size: clamp(30px, 4vw, 44px);
}

.purchase-section-heading>p {
  max-width: 360px;
  margin: 0;
  color: var(--muted);
  line-height: 1.6;
}

.purchase-product-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}

.purchase-product-card {
  min-width: 0;
  padding: clamp(20px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #fff;
  box-shadow: 0 8px 26px #18312b08;
  display: flex;
  flex-direction: column;
}

.purchase-product-card:nth-child(2) {
  background: #fbfcf7;
}

.purchase-product-card:nth-child(3) {
  background: #fffaf6;
}

.purchase-product-kicker {
  margin: 0 0 12px;
  color: var(--orange);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1.3px;
}

.purchase-product-card h3 {
  margin: 0;
  color: var(--ink);
  font-size: clamp(20px, 2.4vw, 25px);
  letter-spacing: -.7px;
}

.purchase-product-description {
  min-height: 42px;
  margin: 9px 0 20px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.purchase-plan-options {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
  display: grid;
  gap: 9px;
}

.purchase-plan-options legend {
  margin-bottom: 9px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.purchase-plan-option {
  min-height: 58px;
  padding: 10px 12px;
  border: 1px solid #e5e8e3;
  border-radius: 8px;
  background: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  transition: border-color .15s ease, background .15s ease;
}

.purchase-plan-option:has(input:checked) {
  border-color: var(--teal);
  background: #f1f7f3;
}

.purchase-plan-option:has(input:focus-visible) {
  outline: 3px solid #16483f55;
  outline-offset: 2px;
}

.purchase-plan-option input {
  width: 17px;
  height: 17px;
  margin: 0;
  accent-color: var(--teal);
  flex: 0 0 auto;
}

.purchase-plan-label {
  min-width: 0;
  flex: 1;
}

.purchase-plan-label strong,
.purchase-plan-label small {
  display: block;
}

.purchase-plan-label strong {
  font-size: 13px;
}

.purchase-plan-label small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
}

.purchase-plan-price {
  color: var(--teal);
  font-size: 18px;
  white-space: nowrap;
}

.purchase-plan-price span {
  margin-right: 3px;
  font-size: 15px;
}

.purchase-choose-button {
  width: 100%;
  margin-top: 19px;
  border-radius: 7px;
  gap: 9px;
}

.purchase-choose-button:focus-visible {
  outline: 3px solid #16483f66;
  outline-offset: 3px;
}

.purchase-price-note {
  margin: 18px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.purchase-how {
  padding: 66px max(24px, calc((100% - 1260px) / 2));
  background: #16483f;
  color: #fff;
  scroll-margin-top: 24px;
}

.purchase-how .eyebrow {
  color: var(--lime);
}

.purchase-how h2 {
  color: #fff;
}

.purchase-steps {
  margin-top: 30px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.purchase-steps article {
  min-height: 170px;
  padding: 21px;
  border: 1px solid #ffffff35;
  border-radius: 10px;
  background: #ffffff08;
}

.purchase-steps article>span {
  color: var(--lime);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 1px;
}

.purchase-steps h3 {
  margin: 18px 0 7px;
  font-size: 17px;
}

.purchase-steps p {
  margin: 0;
  color: #d5e0db;
  font-size: 13px;
  line-height: 1.6;
}

.purchase-payment-note {
  margin: 23px 0 0;
  color: #d5e0db;
  font-size: 12px;
}

.purchase-footer {
  min-height: 72px;
  padding: 20px max(24px, calc((100% - 1260px) / 2));
  background: #fff;
}

.purchase-footer a {
  color: var(--teal);
  font-weight: 700;
  text-decoration: none;
}

.purchase-checkout-shell {
  width: min(760px, calc(100% - 32px));
  margin: 35px auto 70px;
}

.purchase-checkout-card {
  padding: clamp(22px, 5vw, 42px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 55px #18312b10;
}

.purchase-checkout-card h1 {
  margin: 0;
  color: #102d29;
  font: 700 clamp(30px, 4.2vw, 43px)/1.08 "DM Sans", sans-serif;
  letter-spacing: -1.4px;
}

.purchase-checkout-intro {
  margin: 12px 0 22px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.purchase-step-indicator {
  margin-bottom: 27px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}

.purchase-step-indicator span {
  padding: 9px 8px;
  border-bottom: 2px solid #e5e8e3;
  color: #75817e;
  font-size: 11px;
  font-weight: 700;
}

.purchase-step-indicator span.is-current {
  border-color: var(--teal);
  color: var(--teal);
}

.purchase-selected-plan {
  margin: 0 0 23px;
  padding: 15px 17px;
  border: 1px solid #e1e9e4;
  border-radius: 9px;
  background: #f5f8f5;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 15px;
}

.purchase-selected-plan span,
.purchase-selected-plan small {
  display: block;
}

.purchase-selected-plan span {
  font-size: 13px;
  font-weight: 700;
}

.purchase-selected-plan small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.purchase-selected-plan strong {
  color: var(--teal);
  font-size: 20px;
  white-space: nowrap;
}

.purchase-form {
  display: grid;
  gap: 15px;
}

.purchase-form label {
  color: var(--ink);
  font-size: 12px;
  font-weight: 700;
}

.purchase-form input:not([type=hidden]) {
  display: block;
  width: 100%;
  margin-top: 7px;
  padding: 13px 14px;
  border: 1px solid #d7e0dc;
  border-radius: 7px;
  background: #fff;
  color: var(--ink);
  font: 15px "DM Sans", sans-serif;
}

.purchase-form input:focus {
  border-color: var(--teal);
  outline: 3px solid #16483f22;
}

.purchase-form .button {
  width: 100%;
  margin-top: 4px;
  border-radius: 7px;
}

.purchase-form .button:focus-visible,
.purchase-secondary-button:focus-visible,
.purchase-inline-link:focus-visible {
  outline: 3px solid #16483f66;
  outline-offset: 3px;
}

.purchase-notice {
  margin: 0 0 18px;
  padding: 12px 14px;
  border: 1px solid;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.5;
}

.purchase-notice-error {
  border-color: #f0c8c8;
  background: #fff4f4;
  color: #8b2525;
}

.purchase-notice-success {
  border-color: #cde3d2;
  background: #f0faf2;
  color: #286438;
}

.purchase-form-help {
  margin: -4px 0 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.55;
}

.purchase-otp-input {
  max-width: 260px;
  font-size: 24px !important;
  font-weight: 700 !important;
  letter-spacing: 9px;
  text-align: center;
}

.purchase-form-actions {
  display: grid;
  gap: 10px;
}

.purchase-secondary-button {
  min-height: 44px;
  border: 1px solid #cbd8d1;
  border-radius: 7px;
  background: #fff;
  color: var(--teal);
  font: 700 13px "DM Sans", sans-serif;
  cursor: pointer;
}

.purchase-inline-link {
  display: inline-block;
  margin-top: 18px;
  color: var(--teal);
  font-size: 12px;
  font-weight: 700;
  text-decoration: none;
}

.purchase-billing-list {
  margin: 0;
  border-top: 1px solid var(--line);
}

.purchase-billing-row {
  padding: 14px 0;
  border-bottom: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 18px;
  font-size: 13px;
}

.purchase-billing-row dt {
  color: var(--muted);
}

.purchase-billing-row dd {
  margin: 0;
  color: var(--ink);
  font-weight: 700;
  text-align: right;
}

.purchase-billing-total {
  margin-top: 8px;
  padding: 17px 0;
  color: var(--teal);
  font-size: 16px;
}

.purchase-billing-total dd {
  font-size: 22px;
}

.purchase-payment-disabled {
  margin-top: 22px;
  padding: 15px;
  border: 1px solid #e5e1d8;
  border-radius: 8px;
  background: #faf9f5;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
}

.purchase-missing-checkout {
  padding: 20px 0;
}

@media (max-width: 760px) {
  .purchase-site-header {
    padding: 0 18px;
  }

  .purchase-site-header nav {
    display: none;
  }

  .purchase-hero {
    width: calc(100% - 32px);
    margin-top: 20px;
    padding: 28px;
    grid-template-columns: 1fr;
    gap: 25px;
  }

  .purchase-plans-section {
    width: calc(100% - 32px);
    margin: 55px auto;
  }

  .purchase-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .purchase-product-grid,
  .purchase-steps {
    grid-template-columns: 1fr;
  }

  .purchase-how {
    padding: 52px 24px;
  }

  .purchase-steps article {
    min-height: auto;
  }

  .purchase-footer {
    padding: 20px 24px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .purchase-plan-option {
    transition: none;
  }
}
