
.payment-section {
  min-height: 100svh;
  position: relative;
  isolation: isolate;
  display: grid;
  padding: 108px clamp(44px, 5.4vw, 88px) 72px;
  overflow: hidden;
  background: #020604;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: clamp(32px, 6vw, 96px);
  align-items: start;
}

.payment-backdrop {
  position: absolute;
  z-index: -3;
  inset: -5% 0;
  overflow: hidden;
}

.payment-backdrop img {
  width: 100%;
  height: 110%;
  display: block;
  object-fit: cover;
  object-position: center;
}

.payment-overlay {
  position: absolute;
  z-index: -2;
  inset: 0;
  background: linear-gradient(90deg, rgba(1, 6, 3, 0.16), rgba(1, 7, 3, 0.5) 53%, rgba(1, 6, 3, 0.78)), linear-gradient(180deg, rgba(2, 7, 3, 0.18), rgba(1, 5, 2, 0.64));
}

.purchase-story {
  position: relative;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 0;
  padding-top: 24px;
  display: block;
}

.payment-pen {
  position: absolute;
  transform-origin: center;
  left: auto;
  top: -10px;
  right: -32px;
  width: 40%;
  transform: rotate(-14deg);
  opacity: .85;
  filter: none;
}

.payment-pen img {
  width: 100%;
  height: auto;
  display: block;
}

.purchase-copy, .plan-selector, .plan-status {
  width: auto;
  margin-left: 0;
  position: relative;
  z-index: 1;
}

.payment-eyebrow {
  display: flex;
  align-items: center;
  gap: 15px;
  color: rgba(245, 240, 230, 0.76);
  font-size: 0.63rem;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
}

.payment-eyebrow i {
  width: 42px;
  height: 1px;
  background: rgba(245, 240, 230, 0.48);
}

.purchase-copy h2 {
  margin: 18px 0 17px;
  font-family: "Instrument Serif", Georgia, serif;
  font-weight: 400;
  letter-spacing: -0.037em;
  line-height: 0.89;
  font-size: clamp(46px, 4.1vw, 72px);
}

.purchase-copy h2 em {
  color: #cbf695;
  font-weight: 400;
}

.purchase-copy > p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.plan-selector {
  display: grid;
  gap: 12px;
  margin-top: 28px;
}

.plan-option {
  width: 100%;
  position: relative;
  display: grid;
  color: var(--ivory);
  text-align: left;
  border: 1px solid rgba(213, 230, 203, 0.22);
  cursor: pointer;
  transition: border-color 220ms ease, background 220ms ease, box-shadow 220ms ease, transform 220ms ease;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 12px;
  padding: 22px;
  border-color: var(--line);
  border-radius: 12px;
  background: rgb(9 18 8 / 85%);
  backdrop-filter: none;
}

.plan-option:hover {
  border-color: rgba(163, 232, 103, 0.55);
  transform: none;
}

.plan-option.is-selected {
  border-color: #96c567;
  background: linear-gradient(110deg, #192914, #0b160a);
  box-shadow: none;
}

.plan-radio {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(240, 239, 230, 0.5);
  border-radius: 50%;
}

.plan-radio i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: transparent;
}

.plan-option.is-selected .plan-radio {
  border-color: #a9ef60;
}

.plan-option.is-selected .plan-radio i {
  background: #a9ef60;
  box-shadow: 0 0 10px rgba(169, 239, 96, 0.74);
}

.plan-details {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.plan-name {
  font-weight: 500;
  font-size: 15px;
}

.plan-subtitle {
  margin-top: 5px;
  color: #b5c0a8;
  font-size: 12px;
}

.plan-price {
  margin-top: 12px;
  color: rgba(241, 239, 231, 0.66);
  font-size: 12px;
}

.plan-price strong {
  margin-right: 4px;
  color: var(--ivory);
  font-weight: 500;
  letter-spacing: -0.04em;
  font-size: 34px;
}

.plan-benefits {
  margin-top: 14px;
  padding-top: 12px;
  display: grid;
  border-top: 1px solid rgba(239, 237, 228, 0.13);
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}

.plan-benefits span {
  display: flex;
  align-items: center;
  gap: 8px;
}

.plan-benefits svg {
  color: #a9ef60;
  flex-shrink: 0;
}

.plan-badge {
  position: absolute;
  right: 13px;
  color: #091006;
  border-radius: 99px;
  font-weight: 700;
  top: -10px;
  padding: 5px 12px;
  background: #d0eab1;
  font-size: 10px;
  letter-spacing: 0;
  text-transform: none;
  box-shadow: none;
}

.plan-option-single {
  min-height: 88px;
  align-items: start;
}

.plan-option-single .plan-price {
  margin-top: 4px;
  margin: 0;
  white-space: nowrap;
}

.plan-status {
  line-height: 1.5;
  color: #b1bba5;
  font-size: 11px;
  margin-top: 16px;
}

.payment-form-wrap {
  min-width: 0;
  align-self: center;
}

.checkout-panel {
  color: var(--ivory);
  border: 1px solid rgba(139, 210, 89, 0.38);
  padding: 28px;
  border-color: #455738;
  border-radius: 16px;
  background: rgb(10 18 10 / 93%);
  backdrop-filter: none;
  box-shadow: 0 24px 70px rgb(0 0 0 / 18%);
}

.checkout-intro {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
}

.prototype-pill {
  display: inline-block;
  font-weight: 700;
  text-transform: uppercase;
  font-size: 10px;
  color: #d0eab1;
  margin-bottom: 10px;
  letter-spacing: .12em;
}

.checkout-intro h3, .order-summary h3 {
  margin: 0;
  font-family: "Instrument Serif", Georgia, serif;
  font-size: 1.85rem;
  font-weight: 400;
  line-height: 1;
}

.checkout-intro p {
  margin: 7px 0 0;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.checkout-step {
  letter-spacing: 0.15em;
  color: #a2b092;
  font-size: 10px;
  white-space: nowrap;
}

.checkout-grid, .card-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 0;
  gap: 12px;
}

.checkout-field-wide {
  grid-column: 1 / -1;
}

.checkout-panel label {
  display: grid;
  gap: 7px;
  font-size: 12px;
  color: var(--muted);
}

.checkout-panel input, .checkout-panel select {
  width: 100%;
  min-width: 0;
  padding: 0 14px;
  color: rgba(248, 245, 237, 0.92);
  border: 1px solid rgba(229, 231, 220, 0.18);
  border-radius: 8px;
  outline: none;
  font: inherit;
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  height: 46px;
  border-color: #45503c;
  background: #172014;
  font-size: 14px;
}

.checkout-panel input::placeholder {
  color: #a1ab96;
}

.checkout-panel input:focus, .checkout-panel select:focus {
  border-color: #9cdd65;
  background: rgba(198, 214, 192, 0.11);
  box-shadow: 0 0 0 3px rgba(156, 221, 101, 0.12);
}

.checkout-panel select {
  appearance: auto;
  color-scheme: dark;
}

.checkout-divider {
  height: 1px;
  margin: 18px 0;
  background: var(--line);
}

.payment-methods {
  min-width: 0;
  margin: 0;
  padding: 0;
  border: 0;
}

.payment-methods legend {
  padding: 0;
  font-family: "Instrument Serif", Georgia, serif;
  margin-bottom: 12px;
  font-size: 26px;
}

.method-selector {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.method-selector button {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: rgba(245, 242, 234, 0.76);
  border: 1px solid rgba(234, 235, 225, 0.17);
  border-radius: 9px;
  background: rgba(208, 214, 207, 0.07);
  cursor: pointer;
  transition: border-color 180ms ease, color 180ms ease, background 180ms ease, box-shadow 180ms ease;
  min-height: 46px;
  font-size: 14px;
}

.method-selector button.is-selected {
  color: #f8f5ed;
  border-color: #a2e66c;
  background: rgba(69, 126, 47, 0.16);
  box-shadow: inset 0 0 20px rgba(126, 224, 76, 0.05);
}

.apple-pay-mark {
  width: 18px;
  height: 21px;
  fill: currentColor;
}

.card-number-control {
  position: relative;
  display: block;
}

.card-number-control input {
  padding-right: 114px;
}

.card-brand-logos {
  position: absolute;
  top: 50%;
  right: 12px;
  display: flex;
  align-items: center;
  gap: 9px;
  transform: translateY(-50%);
}

.visa-mark {
  color: #f7f7f4;
  font-size: 0.62rem;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.05em;
}

.mastercard-mark {
  width: 30px;
  height: 18px;
  position: relative;
  display: block;
}

.mastercard-mark i {
  width: 18px;
  height: 18px;
  position: absolute;
  top: 0;
  border-radius: 50%;
}

.mastercard-mark i:first-child {
  left: 0;
  background: #ef3d32;
}

.mastercard-mark i:last-child {
  right: 0;
  background: #f4a21a;
  mix-blend-mode: screen;
}

.wallet-placeholder {
  min-height: 100px;
  margin-top: 15px;
  padding: 20px;
  display: flex;
  align-items: center;
  gap: 14px;
  color: rgba(244, 241, 232, 0.62);
  border: 1px solid rgba(235, 236, 226, 0.12);
  border-radius: 10px;
  background: rgba(206, 213, 205, 0.055);
  font-size: 0.7rem;
  line-height: 1.45;
}

.wallet-placeholder .apple-pay-mark {
  width: 24px;
  height: 28px;
  flex: 0 0 auto;
}

.order-summary h3 {
  font-size: 1.55rem;
}

.order-summary dl {
  margin: 15px 0 0;
  display: grid;
  gap: 9px;
}

.order-summary dl div {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  color: rgba(244, 242, 234, 0.7);
  font-size: 13px;
}

.order-summary dd {
  margin: 0;
  color: rgba(248, 245, 238, 0.92);
}

.order-summary dl div:last-child {
  margin-top: 4px;
  padding-top: 12px;
  color: rgba(248, 245, 238, 0.92);
  border-top: 1px solid rgba(238, 238, 228, 0.14);
  font-weight: 600;
}

.order-summary dl div:last-child dd {
  font-size: 1.05rem;
}

.order-caption {
  margin: 8px 0 0;
  color: #adbaa0;
  font-size: 11px;
}

.checkout-submit {
  width: 100%;
  margin-top: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  color: #091006;
  border: 0;
  border-radius: 999px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
  font-size: 13px;
  min-height: 52px;
  background: var(--lime);
  box-shadow: none;
}

.checkout-submit:hover {
  transform: translateY(-2px);
  filter: brightness(1.04);
  box-shadow: 0 14px 34px rgba(128, 220, 66, 0.24);
}

.checkout-submit span {
  font-size: 1.2rem;
}

.prototype-confirmation {
  margin: 13px 0 0;
  padding: 10px 12px;
  color: #c9f49d;
  border: 1px solid rgba(163, 230, 105, 0.3);
  border-radius: 8px;
  background: rgba(102, 176, 63, 0.08);
  font-size: 0.62rem;
  line-height: 1.45;
  text-align: center;
}

.checkout-legal {
  margin: 15px 0 0;
  line-height: 1.55;
  color: #a7b49a;
  font-size: 10px;
  text-align: left;
}

.checkout-legal a {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #b5e986;
  text-decoration: underline;
  text-decoration-color: rgba(181, 233, 134, 0.35);
  text-underline-offset: 3px;
}
