.shop-body {
  background:
    radial-gradient(900px 380px at 50% -80px, rgba(15, 118, 110, 0.16), transparent 70%),
    #f6f3ef;
}

.shop-page { width: 100%; }
.shop-hero { max-width: 36rem; margin: 0 auto 2rem; text-align: center; }
.shop-hero-tight { margin-bottom: 1.2rem; }
.shop-hero h1 {
  margin: 0.25rem 0 0.5rem;
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  color: #1a2e2b;
}
.shop-hero p { margin: 0; color: var(--muted); }
.shop-kicker {
  margin: 0;
  color: var(--brand);
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 0.72rem;
}
.shop-steps {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.7rem;
  margin-bottom: 1.35rem;
  font-size: 0.88rem;
  font-weight: 800;
  color: var(--muted);
}
.shop-steps a,
.shop-steps .is-here {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  text-decoration: none;
}
.shop-steps a { color: var(--brand); }
.shop-steps .is-here { color: #1a2e2b; }
.shop-steps span span,
.shop-steps a span {
  width: 1.45rem;
  height: 1.45rem;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  font-size: 0.75rem;
  background: #d1fae5;
  color: #0f766e;
}
.shop-steps .is-here span {
  background: #0f766e;
  color: #fff;
}
.shop-steps i {
  width: 2.2rem;
  height: 2px;
  background: #c5ddd8;
  display: block;
}
.shop-notice {
  max-width: 40rem;
  margin: 0 auto 1.2rem;
  background: #ecfdf5;
  color: #047857;
  padding: 0.85rem 1rem;
  border-radius: 12px;
  font-weight: 700;
  text-align: center;
}

.shop-page .plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.1rem;
  align-items: stretch;
}
.shop-page .plan-card {
  position: relative;
  width: 100%;
  background: #fff;
  border-radius: 18px;
  padding: 1.45rem 1.3rem 1.25rem;
  border: 1px solid rgba(15, 118, 110, 0.12);
  box-shadow: 0 10px 30px rgba(26, 46, 43, 0.06);
  display: flex;
  flex-direction: column;
  align-items: stretch;
  text-align: left;
  cursor: pointer;
  font: inherit;
  color: inherit;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
.shop-page .plan-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px rgba(26, 46, 43, 0.1);
  border-color: rgba(15, 118, 110, 0.35);
}
.shop-page .plan-card.is-popular {
  border-color: #0f766e;
  background: linear-gradient(#fff, #f0fdfa);
}
.shop-page .plan-badge {
  position: absolute;
  top: -0.7rem;
  left: 50%;
  right: auto;
  transform: translateX(-50%);
  background: var(--brand);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
}
.shop-page .plan-cadence { margin: 0.2rem 0 0; }
.shop-page .plan-card h2 { margin: 0.2rem 0 0; font-size: 1.2rem; color: #1a2e2b; }
.shop-page .plan-price { margin: 0.45rem 0 0.15rem; font-size: 2.35rem; letter-spacing: -0.03em; color: #1a2e2b; }
.shop-page .plan-card ul { margin: 0 0 1.15rem; padding: 0; list-style: none; color: #3d4f4c; flex: 1; }
.shop-page .plan-card li {
  position: relative;
  padding: 0.32rem 0 0.32rem 1.35rem;
  font-size: 0.92rem;
}
.shop-page .plan-card li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.62rem;
  width: 0.55rem;
  height: 0.55rem;
  border-radius: 50%;
  background: #99f6e4;
  box-shadow: inset 0 0 0 3px #0f766e;
}
.plan-select {
  display: inline-flex;
  justify-content: center;
  width: 100%;
  padding: 0.7rem;
  border-radius: 999px;
  background: #0f766e;
  color: #fff;
  font-weight: 800;
}
.shop-page .plan-card:hover .plan-select { background: #115e59; }

.plan-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 1.2rem;
}
.plan-modal[hidden] { display: none; }
.plan-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 32, 30, 0.45);
  backdrop-filter: blur(6px);
}
.plan-modal-card {
  position: relative;
  z-index: 1;
  width: min(26rem, 100%);
  background: #fff;
  border-radius: 22px;
  padding: 2rem 1.7rem 1.7rem;
  text-align: center;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.22);
  animation: modalIn 0.22s ease;
}
@keyframes modalIn {
  from { transform: translateY(12px) scale(0.96); opacity: 0; }
  to { transform: none; opacity: 1; }
}
.plan-modal-x {
  position: absolute;
  top: 0.7rem;
  right: 0.8rem;
  border: 0;
  background: none;
  font-size: 1.5rem;
  line-height: 1;
  color: #888;
  cursor: pointer;
}
.plan-modal-card h2 { margin: 0.35rem 0 0.2rem; font-size: 1.45rem; color: #1a2e2b; }
.plan-modal-price { margin: 0; font-size: 2rem; font-weight: 800; color: var(--brand); }
.plan-modal-blurb { margin: 0.4rem 0 1.3rem; color: var(--muted); }
.btn-pay {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 0.95rem 1.2rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, #149187, #0f766e);
  color: #fff;
  text-decoration: none;
  font: 800 1.02rem var(--font);
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(15, 118, 110, 0.28);
}
.btn-pay:hover { background: #115e59; color: #fff; }
.btn-pay.wide { margin-top: 0.4rem; }
body.modal-open { overflow: hidden; }

.checkout-page { max-width: 980px; margin: 0 auto; }
.pay-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(17.5rem, 0.85fr);
  gap: 1.4rem;
  align-items: start;
}
.pay-card, .pay-summary {
  background: #fff;
  border-radius: 24px;
  padding: 1.6rem 1.5rem 1.7rem;
  border: 1px solid rgba(15, 118, 110, 0.1);
  box-shadow: 0 18px 50px rgba(26, 46, 43, 0.08);
}
.pay-summary {
  position: sticky;
  top: 84px;
  background: linear-gradient(#fff 0 8.5rem, #f8fffd 8.5rem);
}
.pay-summary h2 { margin: 0.3rem 0 0.35rem; font-size: 1.35rem; color: #1a2e2b; }
.pay-summary-blurb { margin: 0 0 1rem; color: var(--muted); font-size: 0.92rem; }
.pay-features {
  list-style: none;
  margin: 0 0 1rem;
  padding: 0;
}
.pay-features li {
  position: relative;
  padding: 0.28rem 0 0.28rem 1.3rem;
  font-size: 0.9rem;
  color: #3d4f4c;
}
.pay-features li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.55rem;
  width: 0.52rem;
  height: 0.52rem;
  border-radius: 50%;
  background: #99f6e4;
  box-shadow: inset 0 0 0 3px #0f766e;
}
.pay-lines { list-style: none; margin: 0; padding: 0; }
.pay-lines li {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.7rem 0;
  border-top: 1px solid #e5efed;
  font-weight: 700;
  color: #334441;
}
.pay-lines .pay-due {
  font-size: 1.12rem;
  color: #1a2e2b;
}
.pay-lines .pay-due strong { color: #0f766e; font-size: 1.25rem; }
.pay-change {
  display: inline-flex;
  margin-top: 1rem;
  font-weight: 800;
  color: var(--brand);
  text-decoration: none;
}
.pay-lock {
  margin: 1.1rem 0 0;
  padding-top: 0.9rem;
  border-top: 1px dashed #d7e7e4;
  color: var(--muted);
  font-size: 0.8rem;
  line-height: 1.45;
}
.pay-form { display: grid; gap: 1rem; }
.pay-block {
  margin: 0;
  padding: 1rem 1rem 1.05rem;
  border: 1px solid #e6efed;
  border-radius: 16px;
  background: #fbfdfc;
  display: grid;
  gap: 0.75rem;
}
.pay-block legend {
  padding: 0 0.35rem;
  font-size: 0.72rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 800;
  color: #0f766e;
}
.pay-form label { display: grid; gap: 0.35rem; font-weight: 700; font-size: 0.88rem; color: #334441; }
.pay-form input {
  background: #fff;
  border: 1px solid #d7e4e1;
  border-radius: 12px;
  padding: 0.82rem 0.9rem;
  font: 0.95rem var(--font);
  color: var(--text);
}
.pay-form input:focus {
  outline: none;
  border-color: var(--brand);
  box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.12);
}
.pay-card-number {
  position: relative;
  display: block;
}
.pay-card-number input { width: 100%; padding-right: 6.1rem; }
.pay-brands {
  position: absolute;
  right: 0.55rem;
  top: 50%;
  transform: translateY(-50%);
  display: flex;
  align-items: center;
  gap: 0.28rem;
  pointer-events: none;
}
.pay-brand {
  display: grid;
  place-items: center;
  height: 1.5rem;
  padding: 0 0.28rem;
  border-radius: 4px;
  border: 1px solid #e5e7eb;
  background: #fff;
  opacity: 0.32;
  transition: opacity 0.16s ease, transform 0.16s ease;
}
.pay-card-number.is-visa .pay-brand.is-visa,
.pay-card-number.is-mastercard .pay-brand.is-mastercard {
  opacity: 1;
  transform: scale(1.06);
}
.pay-card-number.is-visa .pay-brand.is-mastercard,
.pay-card-number.is-mastercard .pay-brand.is-visa {
  opacity: 0.14;
}
.pay-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.pay-card-face {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.15rem 0.8rem;
  align-items: center;
  padding: 1.05rem 1.1rem;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f766e, #134e4a);
  color: #ecfdf5;
  margin-bottom: 0.2rem;
}
.pay-chip {
  width: 2rem;
  height: 1.45rem;
  border-radius: 5px;
  background: linear-gradient(180deg, #fde68a, #f59e0b);
  grid-row: 1 / 3;
}
.pay-card-brand { font-weight: 800; letter-spacing: 0.08em; font-size: 0.78rem; text-transform: uppercase; }
.pay-card-face p { margin: 0; grid-column: 2; font-weight: 800; letter-spacing: 0.12em; }
.pay-card-face small { grid-column: 2; opacity: 0.75; }
.pay-fine { margin: 0.55rem 0 0; color: var(--muted); font-size: 0.82rem; text-align: center; }

@media (max-width: 960px) {
  .shop-page .plan-grid,
  .pay-layout,
  .pay-row { grid-template-columns: 1fr; }
  .pay-summary { position: static; order: -1; }
}
