/**
 * Sponsors Page Styles (4-tier launch)
 *
 * @package WPFolks
 * @since 1.10.0
 */

.sponsors-page {
  -webkit-font-smoothing: antialiased;
}

/* Shared section-head pattern. */
.sp-section-head {
  max-width: 680px;
  margin: 0 auto 48px;
  text-align: center;
}
.sp-section-head h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 40px;
  line-height: 1.15;
  color: var(--color-text, #1e1e1e);
  margin: 0 0 12px;
}
.sp-section-head p {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: var(--color-text-secondary, #50575e);
  margin: 0;
}

/* ─── SECTION 1 — Hero ────────────────────────────────────────── */
.sp-hero {
  background: #ffffff;
  padding: 88px 0 72px;
  text-align: center;
}
.sp-hero h1 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 56px;
  line-height: 1.1;
  color: #1e1e1e;
  max-width: 820px;
  margin: 0 auto 24px;
}
.sp-hero__sub {
  font-family: 'Figtree', sans-serif;
  font-size: 18px;
  line-height: 1.6;
  color: #50575e;
  max-width: 680px;
  margin: 0 auto 32px;
}
.sp-hero__pills {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px;
}
.sp-pill {
  display: inline-flex;
  align-items: center;
  background: #eef1fd;
  color: #2145e6;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  padding: 10px 20px;
  border-radius: 9999px;
  /* nowrap on desktop keeps each pill on one line for that "chip"
     look. On phones, the longer pills (e.g. "30% of every
     sponsorship goes to the Community Fund") are wider than the
     viewport, so we allow wrapping there. max-width clamps each
     pill to the available row width regardless of breakpoint. */
  white-space: nowrap;
  max-width: 100%;
  text-align: center;
}
@media (max-width: 640px) {
  .sp-pill {
    white-space: normal;
    line-height: 1.4;
  }
}

/* ─── SECTION 2 — Mission (dark) ──────────────────────────────── */
.sp-mission {
  background: #101517;
  color: #ffffff;
  padding: 88px 0;
}
.sp-mission h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 40px;
  line-height: 1.15;
  color: #ffffff;
  text-align: center;
  max-width: 820px;
  margin: 0 auto 56px;
}
.sp-mission__grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
  max-width: 1100px;
  margin: 0 auto;
}
.sp-mission__col { text-align: left; }
.sp-mission__icon {
  color: #2145e6;
  margin-bottom: 18px;
  display: inline-flex;
}
.sp-mission__col h3 {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 22px;
  color: #ffffff;
  margin: 0 0 10px;
}
.sp-mission__col p {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: #c3c4c7;
  margin: 0;
}

/* ─── SECTION 3 — Fund callout (60/40) ────────────────────────── */
.sp-fundcallout {
  background: #f6f7f7;
  padding: 88px 0;
}
.sp-fundcallout__grid {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: 64px;
  align-items: start;
}
.sp-fundcallout__copy h2 {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 40px;
  line-height: 1.15;
  color: #1e1e1e;
  margin: 0 0 24px;
}
.sp-fundcallout__copy p {
  font-family: 'Figtree', sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: #50575e;
  margin: 0 0 16px;
}
.sp-fundcallout__link { margin-top: 20px !important; }
.sp-fundcallout__link a {
  color: #2145e6;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  text-decoration: none;
  border-bottom: 1px solid transparent;
  transition: border-color 0.15s;
}
.sp-fundcallout__link a:hover { border-bottom-color: #2145e6; }

.sp-fundcallout__stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}
.sp-statcard {
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 24px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.sp-statcard__num {
  display: block;
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 48px;
  line-height: 1;
  color: #2145e6;
  margin-bottom: 8px;
}
.sp-statcard__label {
  display: block;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8c8f94;
}
.sp-fundcallout__statnote {
  grid-column: 1 / -1;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  color: #8c8f94;
  font-style: italic;
  margin: 8px 0 0;
}

/* ─── SECTION 4 — Tiers grid ──────────────────────────────────── */
.sp-tiers {
  background: #ffffff;
  padding: 88px 0;
}
.sp-tier-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  align-items: stretch;
}
.sp-tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 36px 24px 28px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  text-align: left;
}
.sp-tier--highlight {
  border: 2px solid #2145e6;
  box-shadow: 0 4px 12px rgba(33,69,230,0.15);
}
.sp-tier__badge {
  position: absolute;
  top: -14px;
  left: 24px;
  display: inline-flex;
  align-items: center;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: 9999px;
  white-space: nowrap;
}
.sp-tier__badge--primary { background: #2145e6; color: #ffffff; }
.sp-tier__badge--dark    { background: #101517; color: #ffffff; }
.sp-tier__badge--neutral { background: #f6f7f7; color: #50575e; border: 1px solid #dcdcde; }

.sp-tier__price {
  display: flex;
  align-items: baseline;
  gap: 8px;
  margin: 4px 0 0;
}
.sp-tier__duoprice {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 4px;
}
.sp-tier__duoprice > div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.sp-tier__amount {
  font-family: 'Fraunces', serif;
  font-weight: 300;
  font-size: 48px;
  line-height: 1;
  color: #1e1e1e;
}
.sp-tier__duoprice .sp-tier__amount { font-size: 36px; }
.sp-tier__amount--accent { color: #2145e6; }
.sp-tier__period {
  font-family: 'Figtree', sans-serif;
  font-weight: 400;
  font-size: 14px;
  color: #8c8f94;
}
.sp-tier__locked {
  margin: 6px 0 0;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 13px;
  color: #2145e6;
}
.sp-tier__subline {
  margin: 6px 0 0;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  color: #50575e;
}

.sp-tier__section-label {
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8c8f94;
  margin: 22px 0 10px;
  padding-top: 16px;
  border-top: 1px solid #dcdcde;
}
.sp-tier > .sp-tier__section-label:first-of-type,
.sp-tier__section-label:first-of-type {
  border-top: 0;
  padding-top: 0;
}
.sp-tier__list {
  list-style: none;
  padding: 0;
  margin: 0;
}
.sp-tier__list li {
  position: relative;
  padding: 4px 0 4px 24px;
  font-family: 'Figtree', sans-serif;
  font-size: 14.5px;
  line-height: 1.5;
  color: #1e1e1e;
}
.sp-tier__list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 16px;
  height: 16px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2300a32a' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/contain no-repeat;
}

.sp-tier__feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 8px 0 6px;
}
.sp-tier__feature-pills span {
  display: inline-flex;
  align-items: center;
  background: #eef1fd;
  color: #2145e6;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 12px;
  padding: 5px 12px;
  border-radius: 9999px;
}
.sp-tier__micronote {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: #50575e;
  margin: 2px 0 0;
}
.sp-tier__note {
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  font-style: italic;
  color: #8c8f94;
  border-top: 1px solid #dcdcde;
  padding-top: 12px;
  margin: 18px 0 0;
}
.sp-tier__cta {
  width: 100%;
  margin-top: 20px;
  text-align: center;
}
.sp-tier .btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 6px;
  padding: 11px 22px;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 14.5px;
  text-decoration: none;
  transition: background 0.15s, border-color 0.15s, color 0.15s;
}
.btn--dark {
  background: #101517;
  color: #ffffff;
  border: 1px solid #101517;
}
.btn--dark:hover { background: #1d2327; color: #ffffff; }
.btn--ghost {
  background: #f6f7f7;
  color: #1e1e1e;
  border: 1px solid #dcdcde;
}
.btn--ghost:hover { background: #eef1fd; border-color: #2145e6; color: #2145e6; }

.sp-tiers__footnote {
  text-align: center;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  color: #8c8f94;
  border-top: 1px solid #dcdcde;
  padding-top: 24px;
  margin-top: 48px;
}

/* ─── SECTION 5 — Comparison Table ────────────────────────────── */
.sp-compare {
  background: #f6f7f7;
  padding: 88px 0;
}
.sp-compare__scroll {
  overflow-x: auto;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}
.sp-compare__table {
  width: 100%;
  min-width: 640px;
  border-collapse: collapse;
  background: #ffffff;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
}
.sp-compare__table thead th {
  background: #2145e6;
  color: #ffffff;
  font-weight: 500;
  padding: 14px 20px;
  text-align: left;
}
.sp-compare__table tbody th {
  font-weight: 500;
  color: #1e1e1e;
  padding: 14px 20px;
  text-align: left;
}
.sp-compare__table tbody td {
  padding: 14px 20px;
  color: #1e1e1e;
}
.sp-compare__table tbody tr:nth-child(even) { background: #f6f7f7; }
.sp-yes { color: #00a32a; font-size: 15px; }
.sp-no  { color: #d63638; font-size: 15px; }

/* ─── SECTION 7 — Interest Form ───────────────────────────────── */
.sp-interest {
  background: #ffffff;
  padding: 88px 0;
  scroll-margin-top: 80px;
}
.sp-interest__banner {
  max-width: 640px;
  margin: 0 auto 24px;
  padding: 14px 18px;
  border-radius: 6px;
  font-family: 'Figtree', sans-serif;
  font-size: 14px;
  line-height: 1.5;
  display: flex;
  gap: 8px 12px;
  flex-wrap: wrap;
}
.sp-interest__banner strong { font-weight: 600; }
.sp-interest__banner--ok  { background: #e9f6ee; border: 1px solid #b7e0c1; color: #1e6b37; }
.sp-interest__banner--err { background: #fdecec; border: 1px solid #f1b5b5; color: #8a2a2a; }

.sp-interest__form {
  max-width: 640px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  padding: 48px;
  box-shadow: 0 4px 16px rgba(0,0,0,0.06);
}
.sp-interest__row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}
.sp-interest__form label {
  display: block;
  font-family: 'Figtree', sans-serif;
  font-weight: 500;
  font-size: 13.5px;
  color: #1e1e1e;
  margin-bottom: 16px;
}
/* Respect the `hidden` attribute — the JS toggles it on the feature
 * dropdown when tier != "feature", and without this rule the generic
 * label { display:block } above would win and keep it visible. */
.sp-interest__form [hidden] { display: none !important; }
.sp-interest__form label span { display: block; margin-bottom: 6px; }
.sp-interest__form label em { color: #2145e6; font-style: normal; }
.sp-interest__form input,
.sp-interest__form select,
.sp-interest__form textarea {
  width: 100%;
  padding: 11px 14px;
  font-family: 'Figtree', sans-serif;
  font-size: 15px;
  font-weight: 400;
  color: #1e1e1e;
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 6px;
  box-sizing: border-box;
  transition: border-color 0.15s, box-shadow 0.15s;
}
.sp-interest__form input:focus,
.sp-interest__form select:focus,
.sp-interest__form textarea:focus {
  border-color: #2145e6;
  box-shadow: 0 0 0 3px rgba(33,69,230,0.15);
  outline: none;
}
.sp-interest__form textarea { resize: vertical; min-height: 96px; }
.sp-interest__submit { width: 100%; margin-top: 4px; }
.sp-interest__note {
  margin: 12px 0 0;
  text-align: center;
  font-family: 'Figtree', sans-serif;
  font-size: 13px;
  color: #8c8f94;
}

/* ─── SECTION 8 — Current Sponsors ────────────────────────────── */
.sp-current {
  background: #ffffff;
  padding: 88px 0;
}
.sp-current__grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 20px;
  max-width: 1000px;
  margin: 0 auto;
}
.sp-current__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 28px 20px;
  background: #ffffff;
  border: 1px solid #dcdcde;
  border-radius: 10px;
  box-shadow: 0 1px 4px rgba(0,0,0,0.08);
  color: inherit;
  text-decoration: none;
  min-height: 140px;
  transition: border-color 0.15s, transform 0.15s;
}
a.sp-current__card:hover {
  border-color: #2145e6;
  transform: translateY(-2px);
}
.sp-current__card img {
  max-width: 160px;
  max-height: 56px;
  object-fit: contain;
}
.sp-current__name {
  font-family: 'Fraunces', serif;
  font-weight: 500;
  font-size: 18px;
  color: #1e1e1e;
}
.sp-current__tier {
  display: inline-flex;
  align-items: center;
  font-family: 'Figtree', sans-serif;
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  padding: 4px 10px;
  border-radius: 9999px;
  background: #eef1fd;
  color: #2145e6;
}
.sp-current__tier--feature { background: #101517; color: #ffffff; }
.sp-current__tier--founding { background: #fff4d6; color: #7a5200; }

.sp-current__ghosts {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}
.sp-current__ghost {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 40px 20px;
  border: 2px dashed #dcdcde;
  background: #f6f7f7;
  border-radius: 10px;
  text-align: center;
}
.sp-current__ghost span {
  font-family: 'Fraunces', serif;
  font-weight: 400;
  font-size: 18px;
  color: #50575e;
}
.sp-current__ghost small {
  font-family: 'Figtree', sans-serif;
  font-size: 12px;
  color: #8c8f94;
}

/* ─── Responsive ──────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .sp-tier-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .sp-hero { padding: 64px 0 48px; }
  .sp-hero h1 { font-size: 42px; }
  .sp-hero__sub { font-size: 16px; }
  .sp-section-head h2 { font-size: 32px; }
  .sp-mission { padding: 64px 0; }
  .sp-mission h2 { font-size: 32px; }
  .sp-mission__grid { grid-template-columns: 1fr; gap: 32px; }
  .sp-fundcallout { padding: 64px 0; }
  .sp-fundcallout__grid { grid-template-columns: 1fr; gap: 32px; }
  .sp-tiers, .sp-compare, .sp-interest, .sp-current { padding: 64px 0; }
  .sp-current__ghosts { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .sp-hero h1 { font-size: 34px; }
  .sp-tier-grid { grid-template-columns: 1fr; }
  .sp-tier { padding: 32px 20px 24px; }
  .sp-statcard__num { font-size: 38px; }
  .sp-interest__form { padding: 28px 20px; }
  .sp-interest__row { grid-template-columns: 1fr; gap: 0; }
}
