/**
 * Superpower pages — Alison design (1440 artboard: 160px gutters).
 * Used by /product/superpowers/* — does not restyle global header/footer.
 */
:root {
  --sp-ink: #343740;
  --sp-ink-soft: #4b4f5d;
  --sp-muted: #c8ccd4;
  --sp-text: #5b5751;
  --sp-mint: #a2ffc8;
  --sp-mint-deep: #20321f;
  --sp-mint-band: #dafde5;
  --sp-stat: #323b70;
  --sp-stat-rule: #5f8fd4;
  --sp-gray: #eaebf0;
  --sp-card: #3d414c;
  --sp-white: #ffffff;
  --sp-section: 88px;
}

.sp-page {
  font-family: Montserrat, 'Public Sans', system-ui, sans-serif;
  color: var(--sp-ink);
  background: var(--sp-white);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

.sp-page h1,
.sp-page h2,
.sp-page h3 {
  font-family: Montserrat, 'Public Sans', sans-serif;
}

/* Design gutters: 160px at desktop (1440 artboard) */
.sp-inner {
  width: 100%;
  max-width: 1440px;
  margin-inline: auto;
  padding-left: 24px;
  padding-right: 24px;
  box-sizing: border-box;
}

@media (min-width: 768px) {
  .sp-inner {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (min-width: 1024px) {
  .sp-inner {
    padding-left: 80px;
    padding-right: 80px;
  }
}

@media (min-width: 1280px) {
  .sp-inner {
    padding-left: 160px;
    padding-right: 160px;
  }
}

/* —— Hero —— */
.sp-hero {
  position: relative;
  overflow: hidden;
  background: var(--sp-ink);
  color: var(--sp-white);
}

.sp-hero__photo {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: 42% 55%;
  filter: grayscale(1) contrast(1.14) brightness(0.88);
}

.sp-hero__wash {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    rgba(52, 55, 64, 0.97) 0%,
    rgba(52, 55, 64, 0.9) 38%,
    rgba(52, 55, 64, 0.72) 68%,
    rgba(52, 55, 64, 0.55) 100%
  );
}

.sp-hero__inner {
  position: relative;
  padding-top: 96px;
  padding-bottom: 96px;
}

@media (max-width: 767px) {
  .sp-hero__inner {
    padding-top: 64px;
    padding-bottom: 56px;
  }
}

.sp-hero__content {
  max-width: 36rem;
  display: flex;
  flex-direction: column;
}

.sp-accent-bar {
  display: block;
  width: 40px;
  height: 4px;
  border-radius: 2px;
  background: var(--sp-mint);
  margin-bottom: 16px;
}

.sp-eyebrow {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--sp-mint);
}

.sp-hero__title {
  margin: 0 0 14px;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 44px);
  line-height: 1.1;
  color: var(--sp-white);
  text-wrap: balance;
}

.sp-hero__title em {
  font-style: italic;
  font-weight: 700;
  color: var(--sp-mint);
  text-shadow: 0 0 28px rgba(162, 255, 200, 0.45);
  white-space: nowrap;
}

.sp-hero__lede {
  margin: 0 0 22px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--sp-muted);
  max-width: 34rem;
}

.sp-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* —— Problem —— */
.sp-problem {
  background: var(--sp-white);
  padding: var(--sp-section) 0;
}

@media (max-width: 767px) {
  .sp-problem {
    padding: 56px 0;
  }
}

.sp-problem__grid {
  display: grid;
  gap: 2rem;
  align-items: end;
}

@media (min-width: 900px) {
  .sp-problem__grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
    gap: 64px;
  }
}

.sp-kicker {
  margin: 0 0 10px;
  font-weight: 600;
  font-size: 14px;
  line-height: 1.4;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--sp-text);
}

/* Mint eyebrows on dark bands (hero already uses .sp-eyebrow). */
.sp-changes .sp-kicker,
.sp-hero .sp-kicker {
  color: var(--sp-mint);
}

.sp-title {
  margin: 0 0 14px;
  font-weight: 600;
  font-size: clamp(1.85rem, 3.2vw, 40px);
  line-height: 1.12;
  color: var(--sp-ink);
  text-wrap: balance;
}

/* Single-column problem titles stay one line on desktop (e.g. Secondary transfer) */
@media (min-width: 900px) {
  .sp-problem__grid:not(:has(.sp-stat-card)) .sp-title,
  .sp-changes .sp-title {
    white-space: nowrap;
    text-wrap: wrap;
  }
}

.sp-body {
  margin: 0;
  font-size: 17px;
  line-height: 1.55;
  color: var(--sp-text);
  max-width: 38rem;
}

.sp-stat-card {
  border: none;
  border-radius: 0;
  padding: 0 0 6px;
  background: transparent;
  max-width: 30rem;
  box-sizing: border-box;
}

@media (min-width: 900px) {
  .sp-stat-card {
    border-left: 1px solid #cfd1d6;
    padding-left: 18px;
    margin-top: 0;
  }
}

.sp-stat-card__value {
  margin: 0 0 6px;
  font-weight: 700;
  font-size: clamp(1.85rem, 3vw, 36px);
  line-height: 1.15;
  color: var(--sp-ink);
}

.sp-stat-card__note {
  margin: 0;
  font-weight: 600;
  font-size: 15px;
  line-height: 1.45;
  color: var(--sp-ink);
}

/* —— Changes / benefits (dark) —— */
.sp-changes {
  background: var(--sp-ink);
  color: var(--sp-white);
  padding: var(--sp-section) 0;
}

@media (max-width: 767px) {
  .sp-changes {
    padding: 56px 0;
  }
}

.sp-changes .sp-title {
  color: var(--sp-white);
  margin-bottom: 36px;
}

.sp-changes__grid {
  display: grid;
  gap: 20px;
}

@media (min-width: 800px) {
  .sp-changes__grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.sp-change {
  padding: 22px 20px 24px;
  border: none;
  border-radius: 10px;
  background: var(--sp-card);
  box-sizing: border-box;
}

.sp-change__title {
  margin: 0 0 8px;
  font-weight: 600;
  font-size: 18px;
  line-height: 1.25;
  color: var(--sp-white);
}

.sp-change__text {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #c2c6cf;
}

/* —— How it works —— */
.sp-how {
  background: var(--sp-gray);
  padding: var(--sp-section) 0;
}

@media (max-width: 767px) {
  .sp-how {
    padding: 56px 0;
  }
}

.sp-how__intro {
  max-width: 40rem;
  margin-bottom: 0;
}

.sp-how__top {
  display: grid;
  gap: 2rem;
  align-items: center;
}

@media (min-width: 900px) {
  .sp-how__top {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr);
    gap: 64px;
  }

  .sp-how__top .sp-how__intro {
    max-width: none;
  }
}

.sp-how__figure {
  margin: 0;
}

.sp-how__figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 10px;
  border: 1px solid #e2ded7;
  background: var(--sp-white);
}

/* Zip graphics already include the rounded card chrome — don't double-frame. */
.sp-how__figure--graphic {
  max-width: 1120px;
}

.sp-how__figure--graphic img {
  border: 0;
  border-radius: 0;
  background: transparent;
}

@media (min-width: 1024px) {
  .sp-how--wide-graphic .sp-inner {
    padding-right: 40px;
  }

  .sp-how--wide-graphic .sp-how__top {
    grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
    gap: 40px;
    align-items: center;
  }

  .sp-how--wide-graphic .sp-how__intro {
    max-width: none;
  }

  .sp-how--wide-graphic .sp-how__figure--graphic {
    max-width: none;
    width: 100%;
  }
}

@media (min-width: 1280px) {
  .sp-how--wide-graphic .sp-inner {
    padding-right: 48px;
  }

  .sp-how--wide-graphic .sp-how__top {
    grid-template-columns: 31.5rem minmax(0, 1fr);
  }
}

.sp-how .sp-inner {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

/* —— Get started —— */
.sp-start {
  background: var(--sp-white);
  padding: var(--sp-section) 0;
}

@media (max-width: 767px) {
  .sp-start {
    padding: 56px 0;
  }
}

.sp-start__grid {
  display: grid;
  gap: 2rem;
}

@media (min-width: 900px) {
  .sp-start__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 64px;
    align-items: start;
  }

  .sp-checklist {
    padding-top: 34px;
  }
}

.sp-checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  max-width: 34rem;
}

.sp-checklist li {
  position: relative;
  display: block;
  padding-left: 22px;
  font-size: 16px;
  line-height: 1.5;
  color: var(--sp-text);
}

.sp-checklist__dot {
  position: absolute;
  left: 0;
  top: 11px;
  width: 10px;
  height: 2px;
  margin: 0;
  border-radius: 2px;
  background: var(--sp-ink);
  box-shadow: none;
  flex: none;
}

/* —— Stats mint band —— */
.sp-stats {
  background: var(--sp-mint-band);
  padding: 48px 0;
  border-top: 1px solid rgba(32, 50, 31, 0.06);
}

.sp-stats__grid {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 40px 96px;
  text-align: center;
}

.sp-stats__grid > div {
  flex: 0 1 11.5rem;
  min-width: 8.5rem;
}

.sp-stats__value {
  margin: 0 0 8px;
  font-weight: 700;
  font-size: 32px;
  letter-spacing: -0.02em;
  line-height: 1;
  color: var(--sp-stat);
}

.sp-stats__rule {
  display: block;
  width: 28px;
  height: 2px;
  margin: 0 auto 8px;
  background: var(--sp-stat-rule);
  border-radius: 1px;
}

.sp-stats__label {
  margin: 0 auto;
  font-size: 13px;
  font-weight: 500;
  line-height: 1.35;
  color: var(--sp-text);
}

/* —— Mobile 390 artboard —— */
@media (max-width: 767px) {
  .sp-inner {
    padding-left: 24px;
    padding-right: 24px;
  }

  .sp-hero__inner {
    padding-top: 64px;
    padding-bottom: 56px;
  }

  .sp-hero__wash {
    background: linear-gradient(
      180deg,
      rgba(52, 55, 64, 0.72) 0%,
      rgba(52, 55, 64, 0.86) 50%,
      rgba(52, 55, 64, 0.95) 100%
    );
  }

  .sp-hero__title {
    font-size: 30px;
  }

  .sp-hero__title em {
    white-space: normal;
  }

  .sp-hero .sp-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .sp-problem,
  .sp-changes,
  .sp-how,
  .sp-start {
    padding: 56px 0;
  }

  .sp-title {
    font-size: 24px;
    white-space: normal;
  }

  .sp-problem .sp-title,
  .sp-changes .sp-title {
    white-space: normal;
  }

  .sp-problem__grid {
    display: flex;
    flex-direction: column;
    gap: 32px;
    align-items: stretch;
  }

  .sp-stat-card {
    border-left: 1px solid #cfd1d6;
    padding-left: 18px;
    padding-bottom: 0;
    max-width: none;
  }

  .sp-stat-card__value {
    font-size: 28px;
  }

  .sp-changes .sp-title {
    margin-bottom: 32px;
  }

  .sp-changes__grid {
    display: flex;
    flex-direction: column;
    gap: 18px;
  }

  .sp-how .sp-inner {
    gap: 32px;
  }

  .sp-how__top {
    gap: 28px;
  }

  .sp-how__figure {
    display: block;
    order: 2;
  }

  .sp-how__top .sp-how__intro {
    order: 1;
  }

  /* Design mobile: steps, then product shot */
  .sp-how--figure-after .sp-inner {
    display: flex;
    flex-direction: column;
    gap: 32px;
  }

  .sp-how--figure-after .sp-how__top {
    display: contents;
  }

  .sp-how--figure-after .sp-how__intro {
    order: 1;
  }

  .sp-how--figure-after .sp-how__figure {
    order: 2;
  }

  .sp-start__grid {
    display: flex;
    flex-direction: column;
    gap: 24px;
  }

  .sp-checklist {
    padding-top: 0;
  }

  .sp-stats {
    padding: 40px 0;
  }

  .sp-stats__grid {
    flex-direction: column;
    align-items: center;
    gap: 28px;
  }

  .sp-stats__grid > div {
    width: 100%;
    max-width: 16rem;
    flex: none;
    min-width: 0;
  }

  .sp-stats__value {
    font-size: 26px;
  }
}
