/* Checkout page — matches the studio paper palette and type rhythm. */
* { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  min-height: 100vh;
  background: #c4b490;
  color: #1a1a1a;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

.pay-shell {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding: 2.5rem 1.5rem 4rem;
}

.pay-top {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}

.pay-mark {
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  color: inherit;
}
.pay-mark img.mark { height: 56px; width: auto; }
.pay-mark img.word { height: 17px; width: auto; margin-left: -2px; margin-top: 2px; }

.pay-kicker {
  display: block;
  margin-top: 1.25rem;
  color: #8a5a22;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.pay-top h1 {
  margin-top: 0.35rem;
  font-family: "Playfair Display", Georgia, serif;
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 400;
  font-style: italic;
  line-height: 1.08;
}

.pay-lede {
  max-width: 36ch;
  margin-bottom: 1.5rem;
  color: #3a342c;
  font-size: 1rem;
  line-height: 1.6;
}

.pay-email-wrap {
  flex: 1 1 16rem;
  max-width: 22rem;
}
.pay-email-wrap label {
  display: block;
  margin-bottom: 0.45rem;
  color: #8a5a22;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}
.pay-email-wrap input {
  width: 100%;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(26, 26, 26, 0.18);
  border-radius: 999px;
  background: rgba(255, 248, 235, 0.55);
  color: #1a1a1a;
  font: inherit;
  outline: none;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.pay-email-wrap input:focus {
  border-color: #8a5a22;
  box-shadow: 0 0 0 3px rgba(138, 90, 34, 0.15);
}

.pay-banner {
  margin-bottom: 2rem;
  padding: 0.9rem 1.1rem;
  border-radius: 12px;
  font-size: 0.92rem;
  line-height: 1.5;
}
.pay-banner.warn {
  background: rgba(120, 70, 20, 0.12);
  border: 1px solid rgba(120, 70, 20, 0.22);
  color: #5a3d18;
}
.pay-banner.err {
  background: rgba(120, 30, 30, 0.1);
  border: 1px solid rgba(120, 30, 30, 0.2);
  color: #5a2020;
}

.pay-section { margin-bottom: 2.75rem; }

.pay-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.1rem;
  padding-bottom: 0.65rem;
  border-bottom: 1px solid rgba(26, 26, 26, 0.12);
}
.pay-section-head h2 {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: #8a5a22;
}
.pay-section-head span {
  color: #6a6156;
  font-size: 0.82rem;
}

.pay-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(17rem, 1fr));
  gap: 1rem;
}

.pay-card {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  padding: 1.25rem 1.25rem 1.1rem;
  border: 1px solid rgba(26, 26, 26, 0.12);
  border-radius: 16px;
  background: rgba(255, 248, 235, 0.42);
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
}
.pay-card:hover {
  transform: translateY(-2px);
  border-color: rgba(26, 26, 26, 0.22);
  box-shadow: 0 14px 36px rgba(26, 26, 26, 0.08);
}
.pay-card.is-selected {
  border-color: #1a1a1a;
  background: rgba(255, 252, 245, 0.88);
  box-shadow: 0 16px 40px rgba(26, 26, 26, 0.1);
}
.pay-card:focus-visible {
  outline: 2px solid #8a5a22;
  outline-offset: 3px;
}

.pay-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}
.pay-card h3 {
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.35;
}
.pay-card .price {
  font-family: "Playfair Display", Georgia, serif;
  font-size: 1.35rem;
  white-space: nowrap;
}
.pay-card p {
  flex: 1;
  color: #3a342c;
  font-size: 0.88rem;
  line-height: 1.55;
}
.pay-card .badge {
  align-self: flex-start;
  padding: 0.2rem 0.55rem;
  border-radius: 999px;
  background: rgba(26, 26, 26, 0.08);
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.pay-card .badge.sub { background: rgba(138, 90, 34, 0.14); color: #6a4518; }

.pay-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 2rem;
  padding-top: 1.5rem;
  border-top: 1px solid rgba(26, 26, 26, 0.12);
}
.pay-foot p {
  max-width: 42ch;
  color: #6a6156;
  font-size: 0.86rem;
  line-height: 1.55;
}
.pay-foot a { color: #8a5a22; }

.pay-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0 1.75rem;
  border: none;
  border-radius: 999px;
  background: #1a1a1a;
  color: #e6cd98;
  font: inherit;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease, opacity 0.2s ease;
}
.pay-btn:hover:not(:disabled) {
  background: #e6cd98;
  color: #1a1a1a;
}
.pay-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}
.pay-btn.is-loading::after {
  content: "";
  width: 1rem;
  height: 1rem;
  border: 2px solid currentColor;
  border-right-color: transparent;
  border-radius: 50%;
  animation: pay-spin 0.65s linear infinite;
}
@keyframes pay-spin { to { transform: rotate(360deg); } }

.pay-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem 1.25rem;
  margin-top: 1.25rem;
  color: #6a6156;
  font-size: 0.78rem;
  letter-spacing: 0.04em;
}
.pay-trust span::before {
  content: "✓ ";
  color: #8a5a22;
  font-weight: 700;
}

@media (max-width: 640px) {
  .pay-shell { padding-top: 1.75rem; }
  .pay-top { margin-bottom: 2rem; }
  .pay-foot { flex-direction: column; align-items: stretch; }
  .pay-btn { width: 100%; }
}
