/* Sponsor page */

.sponsor-hero {
  background: linear-gradient(180deg, oklch(0.22 0.06 310) 0%, oklch(0.32 0.1 305) 100%);
  color: #fff;
  padding: 56px 0 72px;
  position: relative; overflow: hidden;
}
.sponsor-hero::before {
  content: ""; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 25% 25%, oklch(0.55 0.2 305 / 0.25), transparent 55%),
    radial-gradient(ellipse at 78% 80%, oklch(0.7 0.15 305 / 0.18), transparent 55%);
  pointer-events: none;
}

/* ---------- How It Works + Start Sponsoring ---------- */
.sponsor-start {
  background: var(--lav-50);
  padding: 84px 0;
  position: relative;
  overflow: hidden;
}
.sp-start-grid {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 72px;
  align-items: stretch;
}
@media (max-width: 900px) {
  .sp-start-grid { grid-template-columns: 1fr; gap: 48px; }
}

/* Left column */
.sp-start-copy { display: flex; flex-direction: column; gap: 24px; }
.sp-rule {
  border-left: 3px solid var(--purple-500);
  padding: 4px 0 4px 22px;
}
.sp-body {
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-2);
  margin: 0 0 14px;
}
.sp-body:last-child { margin-bottom: 0; }
.sp-body strong { color: var(--ink); font-weight: 600; }

.sp-quote {
  background: var(--purple-soft);
  border-radius: 16px;
  padding: 24px 28px;
  margin: 0;
  font-family: var(--font-display);
  font-weight: 600;
  font-style: italic;
  font-size: 18px;
  line-height: 1.45;
  color: var(--purple-700);
  text-align: center;
}

.sp-cta-wide {
  width: 100%;
  justify-content: center;
  padding: 18px 24px;
  font-size: 14px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-weight: 600;
}

/* Right column of the rebalanced "Become a Sponsor Angel" section — the founder
   quote, vertically centered so it counterweights the copy column. */
.sp-start-aside { display: flex; align-items: center; }
.sp-start-aside .sp-quote { margin: 0; width: 100%; }

/* Right column — form card */
.sp-form-card {
  background: #fff;
  border-radius: 24px;
  padding: 40px 40px 36px;
  border: 1px solid var(--line-light);
  box-shadow: 0 10px 40px -20px rgba(80, 30, 120, 0.18);
}
.sp-form-title {
  font-size: clamp(32px, 3.6vw, 44px);
  margin: 0 0 28px;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.sp-form {
  display: flex; flex-direction: column; gap: 18px;
}
.sp-form-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
@media (max-width: 480px) { .sp-form-row { grid-template-columns: 1fr; } }
.sp-form .req { color: var(--purple-600); }
.sp-form-submit {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  margin-top: 6px;
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 600;
}

/* ---------- Pick a dog grid (unchanged) ---------- */
.sponsor-picker {
  background: #fff;
  color: var(--ink);
  padding: 72px 0;
  position: relative;
}
.pick-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  margin-top: 28px;
}
@media (max-width: 900px) { .pick-grid { grid-template-columns: repeat(2, 1fr); } }
/* Keep dogs 2-up on phones — one-per-row made each portrait photo huge. */
@media (max-width: 480px) { .pick-grid { gap: 12px; margin-top: 20px; } }

.pick-card {
  background: #fff;
  border-radius: 16px;
  overflow: hidden;
  border: 2px solid var(--line-light);
  transition: border-color .2s, transform .2s, box-shadow .2s;
  cursor: pointer;
  text-align: left; padding: 0;
}
.pick-card:hover { transform: translateY(-3px); border-color: var(--purple-300, var(--purple-400)); }
.pick-card.sel { border-color: var(--purple-500); box-shadow: 0 0 0 4px var(--purple-soft); }
.pick-card .img {
  aspect-ratio: 4/5; overflow: hidden; background: var(--lav-200);
}
.pick-card .body { padding: 14px 16px 18px; }
.pick-card .name {
  font-family: var(--font-display); font-size: 18px; font-weight: 600;
  color: var(--ink); margin: 0 0 2px;
}
.pick-card .meta {
  font-family: var(--font-ui); font-size: 11px;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--purple-600); font-weight: 600;
}

/* ---------- Dark tiers section (merged impact + tiers) ---------- */
.sp-tier-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-top: 48px;
}
@media (max-width: 900px) { .sp-tier-grid { grid-template-columns: 1fr; } }

.sp-tier {
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--line-dark);
  border-radius: 22px;
  padding: 32px 28px 28px;
  color: #fff;
  text-align: left;
  cursor: pointer;
  position: relative;
  display: flex;
  flex-direction: column;
  transition: transform .25s ease, border-color .25s ease, background .25s ease, box-shadow .25s ease;
  font-family: inherit;
}
.sp-tier:hover {
  transform: translateY(-4px);
  border-color: var(--purple-400);
  background: rgba(255,255,255,0.06);
  box-shadow: 0 20px 50px -20px rgba(140, 80, 200, 0.35);
}
.sp-tier.featured {
  background: linear-gradient(180deg, oklch(0.3 0.1 305) 0%, oklch(0.24 0.08 305) 100%);
  border-color: var(--purple-500);
  box-shadow: 0 0 0 1px var(--purple-500), 0 20px 50px -20px rgba(140, 80, 200, 0.5);
}
.sp-tier.featured:hover {
  box-shadow: 0 0 0 1px var(--purple-400), 0 24px 60px -20px rgba(140, 80, 200, 0.6);
}

.sp-tier-badge {
  position: absolute; top: -12px; left: 50%;
  transform: translateX(-50%);
  background: var(--purple-500); color: #fff;
  font-family: var(--font-mono); font-size: 10px;
  letter-spacing: 0.16em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 999px; font-weight: 600;
  white-space: nowrap;
}

.sp-tier-top { margin-bottom: 22px; }
.sp-tier-price {
  display: flex; align-items: baseline; gap: 4px;
  margin-bottom: 10px;
}
.sp-tier-price .amt {
  font-family: var(--font-display);
  font-size: 56px;
  font-weight: 700;
  letter-spacing: -0.025em;
  line-height: 1;
  color: var(--purple-400);
}
.sp-tier.featured .sp-tier-price .amt { color: #fff; }
.sp-tier-price .per {
  font-family: var(--font-ui);
  font-size: 14px;
  font-weight: 500;
  color: var(--on-dark-3);
}

.sp-tier-headline {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 600;
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.25;
}
.sp-tier-desc {
  margin: 0;
  color: var(--on-dark-2);
  font-size: 14px;
  line-height: 1.55;
}

.sp-tier-divider {
  height: 1px;
  background: var(--line-dark);
  margin: 0 0 22px;
}
.sp-tier.featured .sp-tier-divider { background: rgba(255,255,255,0.12); }

.sp-tier-includes {
  list-style: none; padding: 0; margin: 0 0 28px;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px;
  flex: 1;
}
.sp-tier-includes li {
  position: relative; padding-left: 22px;
  color: var(--on-dark-2);
  line-height: 1.5;
}
.sp-tier-includes li::before {
  content: "✦"; position: absolute; left: 0; top: 1px;
  color: var(--purple-400);
  font-size: 12px;
}

.sp-tier-btn {
  width: 100%;
  justify-content: center;
  padding: 14px 20px;
  font-size: 13px;
  letter-spacing: 0.04em;
  font-weight: 600;
}
.sp-tier:not(.featured) .sp-tier-btn {
  background: rgba(255,255,255,0.08);
  color: #fff;
  border: 1px solid var(--line-dark);
}
.sp-tier:not(.featured):hover .sp-tier-btn {
  background: var(--purple-500);
  border-color: var(--purple-500);
}

/* ---------- Sponsor-pick confirmation (appears below the dog grid) ----------
   Inline panel that surfaces once a survivor is selected. Holds the primary
   one-tap Zeffy link at the featured tier amount, plus an option to choose a
   different amount (scrolls to tiers). Dismissible via the × button. */
.sp-pick-confirm {
  position: relative;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 22px;
  margin: 28px auto 0;
  max-width: 760px;
  padding: 18px 22px 18px 18px;
  background: var(--purple-soft);
  border: 1.5px solid var(--purple-300, var(--purple-400));
  border-radius: 18px;
  box-shadow: 0 8px 28px -16px rgba(120, 60, 200, 0.35);
  animation: spPcIn .35s cubic-bezier(.2,.7,.2,1.05) both;
}
@keyframes spPcIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.sp-pc-left {
  display: flex; align-items: center; gap: 14px;
  min-width: 0;
}
.sp-pc-check {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--purple-500); color: #fff;
  font-size: 18px; font-weight: 700;
  flex-shrink: 0;
}
.sp-pc-eyebrow {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--purple-700);
  font-weight: 600;
  margin-bottom: 2px;
}
.sp-pc-name {
  font-family: var(--font-display);
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  letter-spacing: -0.01em;
  line-height: 1.1;
}
.sp-pc-actions {
  display: flex; align-items: center; gap: 14px;
  justify-self: end;
  flex-wrap: wrap;
}
.sp-pc-primary {
  padding: 12px 20px;
  font-size: 13px;
  letter-spacing: 0.02em;
  font-weight: 600;
  white-space: nowrap;
}
.sp-pc-secondary {
  background: transparent;
  border: 0;
  color: var(--purple-700);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  border-bottom: 1px solid transparent;
  transition: border-color .2s ease, color .2s ease;
}
.sp-pc-secondary:hover {
  color: var(--purple-800, var(--purple-700));
  border-bottom-color: var(--purple-500);
}
.sp-pc-clear {
  position: absolute; top: 8px; right: 10px;
  width: 24px; height: 24px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 0;
  color: var(--ink-3);
  font-size: 18px; line-height: 1;
  cursor: pointer; border-radius: 50%;
  transition: background .2s ease, color .2s ease;
}
.sp-pc-clear:hover { background: rgba(120, 60, 200, 0.12); color: var(--ink); }

@media (max-width: 720px) {
  .sp-pick-confirm {
    grid-template-columns: 1fr;
    gap: 16px;
    padding: 18px 18px 20px;
  }
  .sp-pc-actions { justify-self: stretch; flex-direction: column; align-items: stretch; gap: 10px; }
  .sp-pc-primary { justify-content: center; width: 100%; }
  .sp-pc-secondary { text-align: center; }
}

/* ---------- Sponsor confirm modal ----------
   The "moment" between picking a dog+amount and the Zeffy handoff. Big dog
   photo, amount summary, Zeffy-handoff explanation, one continue CTA. This
   collapses the old WordPress "pay-then-fill-a-form" flow into one moment. */
.modal.sp-confirm {
  max-width: 480px;
  padding: 0;
  overflow: hidden;
  position: relative;
}
.sp-confirm-close {
  position: absolute; top: 12px; right: 14px;
  width: 32px; height: 32px;
  display: inline-flex; align-items: center; justify-content: center;
  background: rgba(255,255,255,0.85); backdrop-filter: blur(4px);
  border: 0; border-radius: 50%;
  font-size: 22px; line-height: 1; color: var(--ink-2);
  cursor: pointer;
  z-index: 2;
  transition: background .2s ease, color .2s ease;
}
.sp-confirm-close:hover { background: #fff; color: var(--ink); }
.sp-confirm-photo {
  position: relative;
  width: 100%; aspect-ratio: 16/9;
  overflow: hidden;
  background: linear-gradient(180deg, var(--lav-100), var(--lav-200));
}
.sp-confirm-photo img {
  width: 100%; height: 100%;
  object-fit: cover;
  object-position: center 30%;
  display: block;
}
.sp-confirm-photo::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0;
  height: 36px;
  background: linear-gradient(180deg, transparent, rgba(255,255,255,0.85));
  pointer-events: none;
}
.sp-confirm-photo-fallback {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 56px;
}
.sp-confirm-body {
  padding: 18px 28px 28px;
  display: flex; flex-direction: column;
  gap: 14px;
}
.sp-confirm-eyebrow {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--purple-700);
  font-weight: 600;
  margin-bottom: -6px;
}
.sp-confirm-title {
  font-size: 32px;
  margin: 0;
  color: var(--ink);
  letter-spacing: -0.02em;
  line-height: 1.05;
}
/* In-modal amount chips — the donor confirms the monthly amount right in the
   pop-up before the Zeffy hand-off. */
.sp-confirm-amounts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-top: 2px;
}
.sp-confirm-chip {
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  padding: 12px 8px;
  background: #fff;
  border: 1.5px solid var(--line-light);
  border-radius: 14px;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .12s ease;
}
.sp-confirm-chip:hover { border-color: var(--purple-300, var(--purple-400)); transform: translateY(-1px); }
.sp-confirm-chip.sel {
  border-color: var(--purple-500);
  background: var(--purple-soft);
  box-shadow: 0 0 0 3px var(--purple-soft);
}
.sp-confirm-chip-amt {
  font-family: var(--font-display);
  font-size: 19px; font-weight: 700; color: var(--ink);
  letter-spacing: -0.01em;
}
.sp-confirm-chip.sel .sp-confirm-chip-amt { color: var(--purple-700); }
.sp-confirm-chip-amt .per {
  font-family: var(--font-ui); font-size: 11px; font-weight: 500;
  color: var(--ink-3); margin-left: 1px;
}
.sp-confirm-chip-note {
  font-family: var(--font-mono); font-size: 9px;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: var(--ink-3); font-weight: 600; text-align: center; line-height: 1.3;
}

.sp-confirm-card {
  background: var(--lav-50);
  border: 1px solid var(--line-light);
  border-radius: 14px;
  padding: 12px 16px;
  margin-top: 4px;
}
.sp-confirm-row {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 8px 0;
}
.sp-confirm-label {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--ink-3);
  font-weight: 600;
}
.sp-confirm-val {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 600;
  color: var(--ink);
}
.sp-confirm-amt {
  font-size: 22px;
  color: var(--purple-700);
  letter-spacing: -0.01em;
}
.sp-confirm-amt .per {
  font-family: var(--font-ui);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-3);
  margin-left: 2px;
}
.sp-confirm-divider {
  height: 1px;
  background: var(--line-light);
}
.sp-confirm-handoff {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.55;
  margin: 4px 0 0;
}
.sp-confirm-cta {
  width: 100%;
  justify-content: center;
  padding: 16px 24px;
  font-size: 14px;
  letter-spacing: 0.04em;
  font-weight: 600;
  margin-top: 4px;
}
.sp-confirm-back {
  background: transparent;
  border: 0;
  color: var(--ink-3);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  font-weight: 600;
  cursor: pointer;
  padding: 4px 0;
  align-self: center;
  transition: color .2s ease;
}
.sp-confirm-back:hover { color: var(--ink); }

@media (max-width: 520px) {
  .modal.sp-confirm { max-width: calc(100% - 24px); }
  .sp-confirm-body { padding: 16px 22px 24px; }
  .sp-confirm-title { font-size: 26px; }
  .sp-confirm-photo { aspect-ratio: 16/10; }
}
