/* ═══════════════════════════════════════════════════════════
   FLUBB SUBPAGE — Shared styles for all inner pages
   ═══════════════════════════════════════════════════════════ */

/* ── Page hero ───────────────────────────────────────────── */
.subpage-hero {
  padding: clamp(100px, 14vw, 160px) var(--f-side-pad) clamp(60px, 8vw, 100px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.subpage-hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 60% 70% at 50% 0%, rgba(116,68,242,0.08) 0%, transparent 70%);
  pointer-events: none;
}

.subpage-hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--f-xs);
  font-weight: var(--f-weight-demi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--f-purple);
  margin-bottom: 20px;
}

.subpage-hero__eyebrow::before,
.subpage-hero__eyebrow::after {
  content: '';
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--f-purple);
  opacity: 0.5;
}

.subpage-hero__title {
  font-size: var(--f-h1);
  font-weight: var(--f-weight-bold);
  color: var(--f-text-heading);
  max-width: 820px;
  margin: 0 auto 24px;
  line-height: 1.1;
}

.subpage-hero__title em {
  font-style: italic;
  color: var(--f-purple);
}

.subpage-hero__sub {
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  color: var(--f-text-body);
  max-width: 560px;
  margin: 0 auto 40px;
  line-height: 1.7;
}

.subpage-hero__actions {
  display: flex;
  gap: 20px;
  justify-content: center;
  align-items: center;
  flex-wrap: wrap;
}

.subpage-hero__text-link {
  font-family: var(--f-font);
  font-size: var(--f-small);
  font-weight: var(--f-weight-demi);
  color: var(--f-text-muted);
  text-decoration: none;
  transition: color var(--f-duration) var(--f-ease);
}
.subpage-hero__text-link:hover {
  color: var(--f-purple);
}

/* ── Hero disclaimer ─────────────────────────────────────── */
.subpage-hero__disclaimer {
  font-size: 10.5px;
  color: var(--f-text-muted);
  opacity: 0.55;
  max-width: 500px;
  margin-top: 20px;
  line-height: 1.55;
}
.subpage-hero--split .subpage-hero__disclaimer {
  text-align: left;
}
@media (max-width: 960px) {
  .subpage-hero--split .subpage-hero__disclaimer {
    text-align: center;
    margin-left: auto;
    margin-right: auto;
  }
}

/* ── Hero split variant (text left + photo right) ───────── */
.subpage-hero--split {
  text-align: left;
  padding-top: clamp(80px, 10vw, 120px);
  padding-bottom: clamp(40px, 6vw, 80px);
}

.subpage-hero--split .subpage-hero__inner {
  max-width: var(--f-container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(40px, 6vw, 80px);
  align-items: center;
}

.subpage-hero--split .subpage-hero__text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.subpage-hero--split .subpage-hero__eyebrow {
  margin-bottom: 16px;
}

.subpage-hero--split .subpage-hero__title {
  margin: 0 0 20px;
  max-width: none;
  text-align: left;
}

.subpage-hero--split .subpage-hero__sub {
  margin: 0 0 36px;
  max-width: 480px;
  text-align: left;
}

.subpage-hero--split .subpage-hero__actions {
  justify-content: flex-start;
}

.subpage-hero__photo {
  position: relative;
  border-radius: 24px;
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(30, 22, 48, 0.14), 0 4px 16px rgba(30, 22, 48, 0.08);
  aspect-ratio: 4 / 5;
}

.subpage-hero__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
}

/* Decorative blob behind photo */
.subpage-hero__photo::before {
  content: '';
  position: absolute;
  inset: -12px;
  border-radius: 32px;
  background: radial-gradient(ellipse at 60% 40%, rgba(116,68,242,0.12) 0%, transparent 70%);
  z-index: -1;
  pointer-events: none;
}

@media (max-width: 960px) {
  .subpage-hero--split {
    text-align: center;
  }
  .subpage-hero--split .subpage-hero__inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .subpage-hero--split .subpage-hero__text {
    align-items: center;
    order: 1;
  }
  .subpage-hero--split .subpage-hero__photo {
    order: 2;
    max-width: 420px;
    margin: 0 auto;
    aspect-ratio: 16 / 9;
  }
  .subpage-hero--split .subpage-hero__title,
  .subpage-hero--split .subpage-hero__sub {
    text-align: center;
  }
  .subpage-hero--split .subpage-hero__actions {
    justify-content: center;
  }
}

@media (max-width: 600px) {
  .subpage-hero__photo {
    border-radius: 16px;
  }
}

/* ── Section wrapper ─────────────────────────────────────── */
.subpage-section {
  padding: var(--f-section-pad) var(--f-side-pad);
  max-width: var(--f-container);
  margin: 0 auto;
}

.subpage-section--wide {
  max-width: 1200px;
}

.subpage-section--tinted {
  background: #ffffff;
  max-width: 100%;
  padding: var(--f-section-pad) var(--f-side-pad);
}

.subpage-section--tinted .subpage-section__inner {
  max-width: var(--f-container);
  margin: 0 auto;
}

.subpage-section--dark {
  background: var(--f-bg-dark);
  max-width: 100%;
  padding: var(--f-section-pad) var(--f-side-pad);
  color: var(--f-text-on-dark);
}

.subpage-section--dark .subpage-section__inner {
  max-width: var(--f-container);
  margin: 0 auto;
}

/* ── Section heading ─────────────────────────────────────── */
.subpage-section__eyebrow {
  font-size: var(--f-xs);
  font-weight: var(--f-weight-demi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--f-purple);
  margin-bottom: 12px;
}

.subpage-section__title {
  font-size: var(--f-h2);
  font-weight: var(--f-weight-bold);
  color: var(--f-text-heading);
  line-height: 1.15;
  margin-bottom: 16px;
}

.subpage-section--dark .subpage-section__title {
  color: var(--f-white);
}

.subpage-section__body {
  font-size: 1.05rem;
  color: var(--f-text-body);
  line-height: 1.75;
  max-width: 580px;
}

.subpage-section--dark .subpage-section__body {
  color: rgba(255,255,255,0.7);
}

/* ── Feature grid ────────────────────────────────────────── */
.subpage-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.subpage-grid--2col { grid-template-columns: repeat(2, 1fr); }
.subpage-grid--3col { grid-template-columns: repeat(3, 1fr); }

/* ── Feature card ────────────────────────────────────────── */
.sp-card {
  background: var(--f-bg-card);
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius-md);
  padding: 32px;
  transition: transform var(--f-duration) var(--f-ease),
              box-shadow var(--f-duration) var(--f-ease),
              border-color var(--f-duration) ease;
}

.sp-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--f-shadow-md);
  border-color: var(--f-border-strong);
}

.sp-card__icon {
  display: flex;
  align-items: center;
  margin-bottom: 20px;
  flex-shrink: 0;
}

.sp-card__icon img,
.sp-card__icon svg {
  width: 64px; height: 64px;
  object-fit: contain;
}

.sp-card__title {
  font-size: 1.1rem;
  font-weight: var(--f-weight-demi);
  color: var(--f-text-heading);
  margin-bottom: 10px;
}

.sp-card__body {
  font-size: var(--f-small);
  color: var(--f-text-body);
  line-height: 1.7;
}

/* ── Split section (text + visual) ──────────────────────── */
.subpage-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
  padding: var(--f-section-pad) var(--f-side-pad);
  max-width: 1200px;
  margin: 0 auto;
}

.subpage-split--reverse .subpage-split__visual { order: -1; }

.subpage-split__visual {
  border-radius: var(--f-radius-lg);
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--f-bg-soft);
}

.subpage-split__visual img {
  width: 100%; height: 100%;
  object-fit: cover;
}

.subpage-split__text { display: flex; flex-direction: column; gap: 16px; }

/* ── Stat row ────────────────────────────────────────────── */
.subpage-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 52px;
  border-radius: var(--f-radius-lg);
  border: 1px solid var(--f-border);
  overflow: hidden;
  background: #fff;
  box-shadow: 0 2px 16px rgba(100,80,200,0.06);
}

.subpage-stat {
  padding: 44px 32px 40px;
  background: #fff;
  position: relative;
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.subpage-stat + .subpage-stat {
  border-left: 1px solid var(--f-border);
}
.subpage-stat--accent {
  background: linear-gradient(180deg, rgba(123,108,246,0.04), rgba(123,108,246,0));
}

.subpage-stat__icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(123,108,246,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
  color: var(--f-purple);
}
.subpage-stat__icon svg { width: 22px; height: 22px; }

.subpage-stat__eyebrow {
  font-size: var(--f-xs);
  font-weight: var(--f-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--f-text-muted);
  margin-bottom: 12px;
}

.subpage-stat__number {
  font-size: clamp(2.6rem, 4.6vw, 3.6rem);
  font-weight: var(--f-weight-bold);
  color: var(--f-purple);
  line-height: 1;
  letter-spacing: -0.02em;
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 10px;
  margin-bottom: 14px;
}
.subpage-stat__unit {
  font-size: clamp(0.95rem, 1.1vw, 1.05rem);
  font-weight: var(--f-weight-semi, 600);
  color: var(--f-ink, #1e1630);
  letter-spacing: 0;
  text-transform: lowercase;
  opacity: 0.85;
}

.subpage-stat__label {
  font-size: var(--f-small);
  color: var(--f-text-body);
  line-height: 1.55;
  max-width: 260px;
}
.subpage-stat__source {
  margin-top: 10px;
  font-size: 0.7rem;
  letter-spacing: 0.04em;
  color: var(--f-text-muted);
  opacity: 0.75;
}

/* ── Checklist ───────────────────────────────────────────── */
.subpage-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 24px;
}

.subpage-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  font-size: 1rem;
  color: var(--f-text-body);
  line-height: 1.6;
}

.subpage-checklist li::before {
  content: '';
  width: 20px; height: 20px;
  border-radius: 50%;
  background: var(--f-purple);
  flex-shrink: 0;
  margin-top: 2px;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M5 10l3.5 3.5L15 7' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-size: cover;
}

/* ── CTA banner ──────────────────────────────────────────── */
.subpage-cta-banner {
  background: linear-gradient(135deg, #7444F2 0%, #5830D4 100%);
  border-radius: var(--f-radius-lg);
  padding: clamp(48px, 6vw, 72px) clamp(32px, 5vw, 64px);
  text-align: center;
  margin: 0 var(--f-side-pad) clamp(48px, 8vw, 80px);
}

.subpage-cta-banner__title {
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: var(--f-weight-bold);
  color: #fff;
  margin-bottom: 16px;
}

.subpage-cta-banner__body {
  font-size: 1.05rem;
  color: rgba(255,255,255,0.8);
  margin-bottom: 32px;
  max-width: 500px;
  margin-left: auto;
  margin-right: auto;
}

.subpage-cta-banner .btn-white {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #fff;
  color: var(--f-purple);
  padding: 14px 32px;
  border-radius: var(--f-radius-pill);
  font-weight: var(--f-weight-demi);
  font-size: 0.95rem;
  text-decoration: none;
  transition: transform 0.2s var(--f-ease), box-shadow 0.2s ease;
}

.subpage-cta-banner .btn-white:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(0,0,0,0.2);
}

/* ── FAQ ─────────────────────────────────────────────────── */
.sp-faq { max-width: 720px; margin: 48px auto 0; }

.sp-faq-item {
  border-bottom: 1px solid var(--f-border);
  padding: 20px 0;
}

.sp-faq-question {
  width: 100%;
  background: none;
  border: none;
  text-align: left;
  font-family: var(--f-font);
  font-size: 1rem;
  font-weight: var(--f-weight-demi);
  color: var(--f-text-heading);
  cursor: pointer;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 0;
}

.sp-faq-question::after {
  content: '+';
  font-size: 1.4rem;
  color: var(--f-purple);
  flex-shrink: 0;
  transition: transform 0.3s var(--f-ease);
}

.sp-faq-item.open .sp-faq-question::after { transform: rotate(45deg); }

.sp-faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--f-ease), padding 0.3s ease;
  font-size: var(--f-small);
  color: var(--f-text-body);
  line-height: 1.75;
}

.sp-faq-item.open .sp-faq-answer {
  max-height: 300px;
  padding-top: 12px;
}

/* ── Pricing cards ───────────────────────────────────────── */
.sp-pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.sp-pricing-card {
  background: var(--f-bg-card);
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius-md);
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  transition: transform var(--f-duration) var(--f-ease), box-shadow var(--f-duration) ease;
}

.sp-pricing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--f-shadow-md);
}

.sp-pricing-card--featured {
  border-color: var(--f-purple);
  background: linear-gradient(160deg, #f5f3ff 0%, #fff 60%);
  box-shadow: var(--f-shadow-md);
}

.sp-pricing-card__badge {
  font-size: var(--f-xs);
  font-weight: var(--f-weight-demi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--f-purple);
  margin-bottom: 4px;
}

.sp-pricing-card__name {
  font-size: 1.3rem;
  font-weight: var(--f-weight-bold);
  color: var(--f-text-heading);
}

.sp-pricing-card__price {
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: var(--f-weight-bold);
  color: var(--f-purple);
  margin: 8px 0;
}

.sp-pricing-card__price span {
  font-size: var(--f-small);
  font-weight: var(--f-weight-regular);
  color: var(--f-text-muted);
}

.sp-pricing-card__desc {
  font-size: var(--f-small);
  color: var(--f-text-body);
  line-height: 1.6;
  margin-bottom: 8px;
}

.sp-pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 16px 0;
  flex: 1;
}

.sp-pricing-card__features li {
  font-size: var(--f-small);
  color: var(--f-text-body);
  padding-left: 24px;
  position: relative;
}

.sp-pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--f-purple);
  font-weight: var(--f-weight-bold);
}

/* ── Webinar card ────────────────────────────────────────── */
.sp-webinar-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.sp-webinar-card {
  background: var(--f-bg-card);
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius-md);
  overflow: hidden;
  transition: transform var(--f-duration) var(--f-ease), box-shadow var(--f-duration) ease;
}

.sp-webinar-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--f-shadow-md);
}

.sp-webinar-card__thumb {
  width: 100%; height: 180px;
  background: linear-gradient(135deg, #EDE8FF 0%, #C4AEFF 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}

.sp-webinar-card__thumb--upcoming {
  background: linear-gradient(135deg, #f5f3ff 0%, #e0daff 100%);
}

.sp-webinar-card__date-badge {
  position: absolute;
  top: 16px; left: 16px;
  background: var(--f-purple);
  color: #fff;
  font-size: var(--f-xs);
  font-weight: var(--f-weight-demi);
  padding: 4px 12px;
  border-radius: var(--f-radius-pill);
}

.sp-webinar-card__play {
  width: 52px; height: 52px;
  border-radius: 50%;
  background: rgba(255,255,255,0.9);
  display: flex; align-items: center; justify-content: center;
}

.sp-webinar-card__play svg { color: var(--f-purple); }

.sp-webinar-card__body { padding: 24px; }

.sp-webinar-card__tag {
  font-size: var(--f-xs);
  font-weight: var(--f-weight-demi);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--f-purple);
  margin-bottom: 8px;
}

.sp-webinar-card__title {
  font-size: 1rem;
  font-weight: var(--f-weight-demi);
  color: var(--f-text-heading);
  margin-bottom: 8px;
  line-height: 1.4;
}

.sp-webinar-card__meta {
  font-size: var(--f-xs);
  color: var(--f-text-muted);
  margin-bottom: 16px;
}

/* ── Outline button ──────────────────────────────────────── */
.btn-outline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: transparent;
  color: var(--f-purple);
  border: 1.5px solid var(--f-purple);
  padding: 13px 28px;
  border-radius: var(--f-radius-pill);
  font-family: var(--f-font);
  font-weight: var(--f-weight-demi);
  font-size: 0.95rem;
  text-decoration: none;
  transition: background var(--f-duration) var(--f-ease), color var(--f-duration) ease;
}

.btn-outline:hover {
  background: var(--f-purple);
  color: #fff;
}

/* ── Resource / article cards ───────────────────────────── */
.res-tabs {
  display: flex;
  gap: 8px;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 48px;
}

.res-tab {
  padding: 8px 20px;
  border-radius: var(--f-radius-pill);
  font-size: var(--f-small);
  font-weight: var(--f-weight-demi);
  border: 1.5px solid var(--f-border);
  background: transparent;
  color: var(--f-text-muted);
  cursor: pointer;
  font-family: var(--f-font);
  transition: all 0.2s ease;
}

.res-tab.active,
.res-tab:hover {
  background: var(--f-purple);
  color: #fff;
  border-color: var(--f-purple);
}

/* Featured article — full width */
.res-featured {
  background: linear-gradient(135deg, #f5f3ff 0%, #ede8ff 100%);
  border: 1px solid rgba(116,68,242,0.18);
  border-radius: var(--f-radius-lg);
  padding: 40px 48px;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 40px;
  align-items: center;
  margin-bottom: 40px;
  transition: box-shadow var(--f-duration) ease;
}

.res-featured:hover { box-shadow: var(--f-shadow-md); }

.res-featured__eyebrow {
  font-size: var(--f-xs);
  font-weight: var(--f-weight-demi);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--f-purple);
  margin-bottom: 12px;
}

.res-featured__title {
  font-size: clamp(1.3rem, 2.2vw, 1.8rem);
  font-weight: var(--f-weight-bold);
  color: var(--f-text-heading);
  line-height: 1.2;
  margin-bottom: 12px;
}

.res-featured__body {
  font-size: var(--f-small);
  color: var(--f-text-body);
  line-height: 1.7;
  max-width: 560px;
  margin-bottom: 20px;
}

.res-featured__meta {
  font-size: var(--f-xs);
  color: var(--f-text-muted);
  display: flex;
  align-items: center;
  gap: 16px;
}

.res-featured__badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--f-purple);
  color: #fff;
  font-size: 11px;
  font-weight: var(--f-weight-bold);
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: var(--f-radius-pill);
  white-space: nowrap;
  align-self: flex-start;
}

/* Article card grid */
.res-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
}

.res-card {
  background: var(--f-bg-card);
  border: 1px solid var(--f-border);
  border-radius: var(--f-radius-md);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform var(--f-duration) var(--f-ease),
              box-shadow var(--f-duration) ease,
              border-color var(--f-duration) ease;
}

.res-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--f-shadow-md);
  border-color: var(--f-border-strong);
}

.res-card__thumb {
  width: 100%;
  height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  overflow: hidden;
}

.res-card__thumb img.res-card__photo {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.5s cubic-bezier(.23,1,.32,1);
}

.res-card:hover .res-card__photo { transform: scale(1.04); }

.res-card__thumb-icon {
  width: 48px; height: 48px;
  opacity: 0.55;
}

.res-card__thumb--parents {
  background: linear-gradient(135deg, #ede8ff 0%, #c4aeff 100%);
}
.res-card__thumb--teens {
  background: linear-gradient(135deg, #e8f1ff 0%, #b3d0ff 100%);
}
.res-card__thumb--schools {
  background: linear-gradient(135deg, #e0faf6 0%, #9eeee3 100%);
}
.res-card__thumb--story {
  background: linear-gradient(135deg, #fff3e8 0%, #ffd4a8 100%);
}

.res-card__body { padding: 20px 24px 24px; flex: 1; display: flex; flex-direction: column; }

.res-card__audience {
  font-size: 10.5px;
  font-weight: var(--f-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 10px;
}

.res-card__audience--parents { color: #7444F2; }
.res-card__audience--teens   { color: #2d7fff; }
.res-card__audience--schools { color: #0dcfb4; }

.res-card__title {
  font-size: 1rem;
  font-weight: var(--f-weight-demi);
  color: var(--f-text-heading);
  line-height: 1.4;
  margin-bottom: 10px;
}

.res-card__excerpt {
  font-size: var(--f-xs);
  color: var(--f-text-body);
  line-height: 1.65;
  flex: 1;
  margin-bottom: 20px;
}

.res-card__footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.res-card__read-time {
  font-size: var(--f-xs);
  color: var(--f-text-muted);
}

.res-card__link {
  font-size: var(--f-xs);
  font-weight: var(--f-weight-demi);
  color: var(--f-purple);
  text-decoration: none;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.2s ease;
}

.res-card__link:hover { gap: 8px; }

/* ── White paper block ── */
.res-whitepaper {
  background: var(--f-bg-dark);
  border-radius: var(--f-radius-lg);
  padding: 36px 40px;
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 28px;
  align-items: center;
  margin-bottom: 48px;
  transition: box-shadow var(--f-duration) ease;
}

.res-whitepaper:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.18); }

.res-whitepaper__icon {
  width: 56px;
  height: 56px;
  background: rgba(116,68,242,0.2);
  border-radius: var(--f-radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.res-whitepaper__icon svg {
  width: 26px;
  height: 26px;
  color: #c4aeff;
}

.res-whitepaper__label {
  font-size: var(--f-xs);
  font-weight: var(--f-weight-bold);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #c4aeff;
  margin-bottom: 8px;
}

.res-whitepaper__title {
  font-size: 1.15rem;
  font-weight: var(--f-weight-bold);
  color: #fff;
  margin-bottom: 8px;
  line-height: 1.3;
}

.res-whitepaper__body {
  font-size: var(--f-small);
  color: rgba(255,255,255,0.6);
  line-height: 1.65;
  margin-bottom: 12px;
}

.res-whitepaper__meta {
  display: flex;
  gap: 12px;
  font-size: var(--f-xs);
  color: rgba(255,255,255,0.35);
}

.res-whitepaper[data-hidden="true"] { display: none; }

@media (max-width: 720px) {
  .res-whitepaper { grid-template-columns: 1fr; text-align: left; }
  .res-whitepaper .btn-white { justify-self: start; }
}

/* Hidden state for tab filtering */
.res-card[data-hidden="true"],
.res-featured[data-hidden="true"] { display: none; }

@media (max-width: 900px) {
  .res-featured { grid-template-columns: 1fr; }
  .res-featured__badge { justify-self: start; }
  .res-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 560px) {
  .res-featured { padding: 28px 24px; }
  .res-grid { grid-template-columns: 1fr; }
}

/* ── Fade-up utility ─────────────────────────────────────── */
.sp-fade {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--f-ease), transform 0.6s var(--f-ease);
}
.sp-fade.visible { opacity: 1; transform: none; }

/* ── Values strip — horizontal 4-pillar layout ── */
.sp-values-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(116, 68, 242, 0.12);
  border-radius: 20px;
  overflow: hidden;
  background: rgba(255,255,255,0.65);
  backdrop-filter: blur(8px);
}
.sp-value {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 36px 28px;
  border-right: 1px solid rgba(116, 68, 242, 0.1);
}
.sp-value:last-child { border-right: none; }
.sp-value__icon {
  display: flex;
  align-items: center;
  margin-bottom: 16px;
  flex-shrink: 0;
}
.sp-value__icon img { width: 64px; height: 64px; object-fit: contain; }
.sp-value__title {
  font-size: 1rem;
  font-weight: 800;
  color: var(--f-navy);
  letter-spacing: -0.02em;
  margin: 0;
}
.sp-value__body {
  font-size: 0.875rem;
  color: var(--f-text-muted, #8a7e9e);
  line-height: 1.65;
  margin: 0;
}

/* ── Responsive ──────────────────────────────────────────── */
@media (max-width: 900px) {
  .subpage-split { grid-template-columns: 1fr; gap: 40px; }
  .subpage-split--reverse .subpage-split__visual { order: 0; }
  .subpage-grid--2col,
  .subpage-grid--3col { grid-template-columns: 1fr; }
  .sp-values-strip { grid-template-columns: repeat(2, 1fr); }
  .sp-value { border-right: none; border-bottom: 1px solid rgba(116,68,242,0.1); }
  .sp-value:nth-child(odd) { border-right: 1px solid rgba(116,68,242,0.1); }
  .sp-value:last-child { border-bottom: none; }
  .subpage-stats { grid-template-columns: 1fr; }
  .subpage-stat { padding: 32px 28px; }
  .subpage-stat + .subpage-stat { border-left: none; border-top: 1px solid var(--f-border); }
}

/* ═══════════════════════════════════════════════════════════
   ARTICLE PAGES
   ═══════════════════════════════════════════════════════════ */

.article-hero {
  text-align: center;
  padding: clamp(48px, 8vw, 80px) var(--f-side-pad) 40px;
  max-width: 780px;
  margin: 0 auto;
}

.article-hero__tag {
  display: inline-block;
  font-size: 10.5px;
  font-weight: var(--f-weight-bold);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 14px;
  border-radius: var(--f-radius-pill);
  margin-bottom: 20px;
}
.article-hero__tag--parents { background: #ede8ff; color: #7444F2; }
.article-hero__tag--teens   { background: #e8f1ff; color: #2d7fff; }

.article-hero__title {
  font-size: var(--f-h1);
  font-weight: var(--f-weight-bold);
  color: var(--f-text-heading);
  line-height: 1.15;
  margin-bottom: 16px;
}

.article-hero__meta {
  font-size: var(--f-small);
  color: var(--f-text-muted);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}
.article-hero__meta::before {
  content: '';
  display: inline-block;
  width: 4px; height: 4px;
  background: var(--f-purple);
  border-radius: 50%;
  opacity: 0.4;
}

.article-divider {
  width: 48px;
  height: 3px;
  background: var(--f-purple);
  border-radius: 2px;
  margin: 32px auto 0;
  opacity: 0.25;
}

/* ── Prose body ──────────────────────────────────────────── */
.article-body {
  max-width: 700px;
  margin: 0 auto;
  padding: 48px var(--f-side-pad) clamp(60px, 8vw, 100px);
}

.article-body h2 {
  font-size: clamp(1.15rem, 2vw, 1.4rem);
  font-weight: var(--f-weight-bold);
  color: var(--f-text-heading);
  margin-top: 48px;
  margin-bottom: 14px;
  line-height: 1.3;
}

.article-body h3 {
  font-size: 1rem;
  font-weight: var(--f-weight-bold);
  color: var(--f-text-heading);
  margin-top: 28px;
  margin-bottom: 10px;
}

.article-body p {
  font-size: 1.0625rem;
  line-height: 1.85;
  color: var(--f-text-body);
  margin-bottom: 20px;
}

.article-body strong {
  font-weight: var(--f-weight-bold);
  color: var(--f-text-heading);
}

.article-body ul {
  margin: 0 0 24px 0;
  padding-left: 0;
  list-style: none;
}

.article-body ul li {
  position: relative;
  padding-left: 20px;
  margin-bottom: 10px;
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--f-text-body);
}

.article-body ul li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 10px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--f-purple);
  opacity: 0.55;
}

/* ── Callout boxes ───────────────────────────────────────── */
.article-notice {
  background: var(--f-bg-soft);
  border-left: 3px solid var(--f-purple);
  border-radius: 0 var(--f-radius-sm) var(--f-radius-sm) 0;
  padding: 20px 24px;
  margin-bottom: 40px;
}
.article-notice p {
  margin-bottom: 0;
  font-size: var(--f-small);
  color: var(--f-text-muted);
}
.article-notice strong { color: var(--f-purple); }

.article-warning {
  background: #FFF9EE;
  border-left: 3px solid #D4A820;
  border-radius: 0 var(--f-radius-sm) var(--f-radius-sm) 0;
  padding: 20px 24px;
  margin: 40px 0;
}
.article-warning p {
  margin-bottom: 8px;
  font-size: var(--f-small);
  color: #6B5B35;
}
.article-warning p:last-child { margin-bottom: 0; }
.article-warning strong { color: #8B6914; font-weight: var(--f-weight-bold); }

.article-refs {
  background: var(--f-bg-soft);
  border-radius: var(--f-radius-md);
  padding: 28px 32px;
  margin-top: 48px;
}
.article-refs h3 {
  font-size: var(--f-xs);
  font-weight: var(--f-weight-bold);
  color: var(--f-text-muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  margin-top: 0;
  margin-bottom: 14px;
}
.article-refs ul li { font-size: var(--f-small); }
.article-refs ul li a {
  color: var(--f-purple);
  text-decoration: none;
}
.article-refs ul li a:hover { text-decoration: underline; }

/* ── Story variant ───────────────────────────────────────── */
.article-body--story p {
  font-size: 1.125rem;
  line-height: 2;
}

.article-story-pullquote {
  border-left: 3px solid var(--f-purple);
  padding: 4px 24px;
  margin: 32px 0;
}
.article-story-pullquote p {
  font-style: italic;
  color: var(--f-text-heading);
  font-size: 1.1rem;
  opacity: 0.85;
  margin-bottom: 0;
}

/* ── Bottom nav ──────────────────────────────────────────── */
.article-bottom-nav {
  max-width: 700px;
  margin: 0 auto;
  padding: 32px var(--f-side-pad) 60px;
  border-top: 1px solid var(--f-border);
}

.article-bottom-nav__back {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: var(--f-small);
  font-weight: var(--f-weight-demi);
  color: var(--f-text-muted);
  text-decoration: none;
  transition: color var(--f-duration) var(--f-ease);
}
.article-bottom-nav__back:hover { color: var(--f-purple); }

@media (max-width: 600px) {
  .article-hero__title { font-size: clamp(1.6rem, 6vw, 2.4rem); }
  .article-body { padding-top: 32px; }
}


/* ══════════════════════════════════════════════════════════════
   MOBILE SUBPAGE HEROES — photo-first, viewport-fill
   Unified across Teens / Parents / Schools
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 700px) {
  .subpage-hero--split {
    min-height: 100vh !important;
    min-height: 100svh !important;
    padding: 32px 20px 40px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: center !important;
    box-sizing: border-box !important;
  }
  .subpage-hero--split .subpage-hero__inner {
    grid-template-columns: 1fr !important;
    gap: 24px !important;
  }
  /* Photo first — mirrors homepage mascot pattern */
  .subpage-hero--split .subpage-hero__photo {
    order: 1 !important;
    max-width: 320px !important;
    width: 100% !important;
    margin: 0 auto !important;
    aspect-ratio: 4 / 5 !important;
  }
  .subpage-hero--split .subpage-hero__text {
    order: 2 !important;
  }
  .subpage-hero--split .subpage-hero__title {
    font-size: clamp(1.95rem, 7vw, 2.5rem) !important;
    line-height: 1.12 !important;
  }
  .subpage-hero--split .subpage-hero__sub {
    font-size: 0.98rem !important;
    max-width: 360px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }
  .subpage-hero--split .subpage-hero__actions {
    justify-content: center !important;
  }
}
@media (max-width: 380px) {
  .subpage-hero--split .subpage-hero__photo { max-width: 260px !important; }
  .subpage-hero--split .subpage-hero__title { font-size: 1.85rem !important; }
}

/* ══════════════════════════════════════════════════════════════
   MOBILE — Hero CTA pairs stack on tiny screens
   ══════════════════════════════════════════════════════════════ */
@media (max-width: 480px) {
  .subpage-hero__actions {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
  }
  .subpage-hero__actions > * {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
  .subpage-cta-banner {
    padding: 40px 24px;
  }
}

/* ══════════════════════════════════════════════════════════════
   FAQ ACCORDION — display toggle (bypasses transition stall)
   ══════════════════════════════════════════════════════════════ */
.sp-faq-answer {
  display: none !important;
  max-height: none !important;
  overflow: visible !important;
  transition: none !important;
  padding-top: 0 !important;
}
.sp-faq-item.open .sp-faq-answer {
  display: block !important;
  padding-top: 12px !important;
  animation: spFaqFadeIn 0.25s ease-out;
}
@keyframes spFaqFadeIn {
  from { opacity: 0; transform: translateY(-4px); }
  to   { opacity: 1; transform: translateY(0); }
}
.fm-faq-answer {
  display: none !important;
  max-height: none !important;
}
.fm-faq-item.open .fm-faq-answer {
  display: block !important;
  animation: spFaqFadeIn 0.25s ease-out;
}

/* ── Dark section treatment — feature grid + stats + CTA ── */
.teens-dark-wrap {
  background: #010118;
  width: 100%;
  position: relative;
  overflow: visible;
}

/* Glow keyframes — opacity only, no scale/translate to prevent overflow bleed */
@keyframes glow-breathe {
  0%, 100% { opacity: 0.55; }
  50%       { opacity: 1; }
}
@keyframes glow-drift {
  0%, 100% { opacity: 0.35; }
  50%       { opacity: 0.85; }
}

/* Layer 1 — main bottom bloom, slow pulse */
.teens-dark-wrap::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 50% 115%, rgba(116, 68, 242, 0.45) 0%, transparent 68%),
    radial-gradient(ellipse 45% 45% at 80% 10%,  rgba(116, 68, 242, 0.20) 0%, transparent 60%);
  pointer-events: none;
  z-index: 0;
  animation: glow-breathe 6s ease-in-out infinite;
}

/* Layer 2 — offset accent glow, drifts on its own rhythm */
.teens-dark-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 55% 45% at 20% 90%, rgba(160, 100, 255, 0.18) 0%, transparent 65%),
    radial-gradient(ellipse 35% 35% at 72% 55%, rgba(116, 68, 242, 0.13) 0%, transparent 55%);
  pointer-events: none;
  z-index: 0;
  animation: glow-drift 9s ease-in-out infinite;
  animation-delay: -3.5s;
}


.teens-dark-wrap .subpage-section__eyebrow { color: #BEC8F9; }
.teens-dark-wrap .subpage-section__title   { color: #ffffff; }
.teens-dark-wrap .subpage-section__body    { color: rgba(255, 255, 255, 0.82); }

.teens-dark-wrap .sp-card {
  background: rgba(116, 68, 242, 0.07);
  border-color: rgba(116, 68, 242, 0.28);
}
.teens-dark-wrap .sp-card:hover {
  box-shadow: 0 14px 40px rgba(116, 68, 242, 0.25);
  border-color: rgba(116, 68, 242, 0.55);
}
.teens-dark-wrap .sp-card__title  { color: rgba(255, 255, 255, 0.92); }
.teens-dark-wrap .sp-card__body   { color: rgba(255, 255, 255, 0.75); }

.teens-dark-wrap .subpage-stats {
  background: rgba(116, 68, 242, 0.07);
  border-color: rgba(116, 68, 242, 0.28);
  box-shadow: none;
}
.teens-dark-wrap .subpage-stat { background: transparent; }
.teens-dark-wrap .subpage-stat + .subpage-stat { border-color: rgba(116, 68, 242, 0.28); }
.teens-dark-wrap .subpage-stat__eyebrow { color: rgba(255, 255, 255, 0.65); }
.teens-dark-wrap .subpage-stat__number {
  background: linear-gradient(90deg, #BEC8F9 0%, #7444F2 45%, #5830D4 100%);
  -webkit-background-clip: text;
          background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}
.teens-dark-wrap .subpage-stat__label { color: rgba(255, 255, 255, 0.82); }

/* Section inside dark wrap must not impose its own white background */
.teens-dark-wrap .subpage-section--tinted {
  background: transparent !important;
}

/* Missing layer outcome cards on dark */
.teens-dark-wrap .missing-layer__outcome {
  background: rgba(116, 68, 242, 0.07);
  border-color: rgba(116, 68, 242, 0.28);
}
.teens-dark-wrap .missing-layer__outcome-title { color: rgba(255, 255, 255, 0.92); }
.teens-dark-wrap .missing-layer__outcome-body  { color: rgba(255, 255, 255, 0.65); }
.teens-dark-wrap .missing-layer__tag {
  color: #BEC8F9;
  background: rgba(116, 68, 242, 0.15);
  border-color: rgba(116, 68, 242, 0.35);
}

/* Gradient accent text on dark section headings */
.teens-dark-wrap .subpage-section__title em,
.teens-dark-wrap h2 em {
  font-style: italic;
  display: inline;
  padding-right: 0.15em;
  background: linear-gradient(90deg, #BEC8F9 0%, #9080F5 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* Outline button on dark */
.teens-dark-wrap .btn-outline {
  border-color: rgba(116, 68, 242, 0.55);
  color: #BEC8F9;
}
.teens-dark-wrap .btn-outline:hover {
  background: rgba(116, 68, 242, 0.2);
  border-color: rgba(116, 68, 242, 0.8);
  color: #ffffff;
}

/* Note text on dark backgrounds */
.teens-dark-wrap .subpage-section__note {
  color: rgba(255, 255, 255, 0.55) !important;
  opacity: 1 !important;
}
/* SVG icon stroke/fill adapt for dark context */
.teens-dark-wrap .sp-card__icon svg [stroke] { stroke: #BEC8F9; }
.teens-dark-wrap .sp-card__icon svg [fill]:not([fill="none"]) { fill: #BEC8F9; }
