/* ===========================================================
   Child Welfare Wonk — shared site styles
   Desktop-first visual design, scales down via clamp() fluid
   type and a small set of breakpoints for layout stacking.
   =========================================================== */

:root {
  --purple: #A2189E;
  --purple-dark: #7d0f7a;
  --dark: #2A1B3D;
  --dark-2: #1a1027;
  --ink: #17141c;
  --text: #3c3646;
  --muted: #5c5468;
  --muted-2: #a89bbd;
  --muted-3: #cfc7dc;
  --orange: #F79000;
  --yellow: #D6E82E;
  --lav: #A79CF2;
  --pink: #F5457F;
  --olive: #46550F;
  --border: #e6e2ea;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: #ffffff;
  color: var(--ink);
  font-family: Archivo, system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: var(--purple); text-decoration: none; }
a:hover { color: var(--purple-dark); }

h1, h2, h3, p, ul, blockquote, figure { margin: 0; }

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
}
.container--narrow { max-width: 700px; }
.container--narrow2 { max-width: 1000px; }
.container--cta { max-width: 900px; }

.section { padding: clamp(56px, 8vw, 96px) 0; }
.section--tight-top { padding-top: 0; }
.section--center { text-align: center; }
.section--dark-purple { background: var(--purple); color: #ffffff; }

/* ---------- header ----------
   position: fixed (not sticky) + a JS-measured spacer below it.
   Sticky positioning on this header reliably mis-composited on
   scroll in testing (header rendered detached from the top of the
   viewport); fixed + spacer sidesteps that entirely. */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  background: #ffffff;
  border-bottom: 1px solid var(--border);
}
.header-spacer { width: 100%; }
.site-header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px 40px;
  max-width: 1400px;
  margin: 0 auto;
}
.site-header__logo { height: 38px; width: auto; }
.site-nav {
  display: flex;
  align-items: center;
  gap: 26px;
  font-size: 15px;
  font-weight: 600;
}
.site-nav a { color: var(--text); }
.site-nav .btn { color: #ffffff; } /* .site-nav a (0,1,1) was beating .btn--dark (0,1,0), so the button text was only visible on :hover */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  border: 0;
  background: transparent;
  cursor: pointer;
  padding: 0;
}
.nav-toggle span {
  display: block;
  height: 2px;
  background: var(--ink);
  border-radius: 2px;
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 58px;
  padding: 0 34px;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 13px;
  letter-spacing: 0.14em;
  font-weight: 500;
  border: 2px solid transparent;
  cursor: pointer;
  white-space: nowrap;
}
.btn--sm { height: 44px; padding: 0 22px; font-size: 12.5px; }
.btn--dark { background: var(--dark); color: #ffffff; }
.btn--dark:hover { background: var(--dark-2); color: #ffffff; }
.btn--purple { background: var(--purple); color: #ffffff; }
.btn--purple:hover { background: var(--purple-dark); color: #ffffff; }
.btn--outline-yellow { border-color: var(--yellow); color: var(--yellow); background: transparent; }
.btn--outline-yellow:hover { background: var(--yellow); color: var(--text); }
.btn--outline-dark { border-color: var(--dark); color: var(--dark); background: transparent; }
.btn--outline-dark:hover { background: var(--dark); color: #ffffff; }
.btn--lav { background: var(--lav); color: var(--dark); height: 54px; font-family: Archivo, sans-serif; letter-spacing: normal; font-size: 16px; font-weight: 700; }
.btn--lav:hover { background: #8f81ef; color: var(--dark); }
.btn--orange { background: var(--orange); color: var(--dark); height: 54px; font-family: Archivo, sans-serif; letter-spacing: normal; font-size: 16px; font-weight: 700; }
.btn--orange:hover { background: #dd8100; color: var(--dark); }
.btn--block { width: 100%; margin-top: auto; }
.btn--gap { margin-top: 38px; }
.btn-row { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 46px; }
.btn-row--center { justify-content: center; margin-top: 38px; }

/* ---------- hero ---------- */
.hero { background: var(--purple); color: #ffffff; padding: 104px 0 112px; }
.hero__title {
  max-width: 18ch;
  font-size: clamp(40px, 7vw, 92px);
  line-height: 0.98;
  font-weight: 800;
  letter-spacing: -0.02em;
}
.hero__subtitle {
  margin-top: 34px;
  max-width: 38ch;
  font-size: clamp(19px, 2.4vw, 28px);
  line-height: 1.3;
  font-weight: 700;
  font-style: italic;
  color: var(--orange);
}

/* ---------- type helpers ---------- */
.eyebrow {
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.18em;
  margin-bottom: 20px;
}
.eyebrow--yellow { color: var(--yellow); }
.eyebrow--purple { color: var(--purple); }
.eyebrow--center { text-align: center; color: var(--text); margin-bottom: 34px; }

.heading-italic {
  font-size: clamp(28px, 3.6vw, 44px);
  line-height: 1.08;
  font-weight: 800;
  font-style: italic;
  letter-spacing: -0.02em;
}
.heading-italic--xl { font-size: clamp(34px, 5.5vw, 60px); line-height: 1.02; }

.heading-bold {
  font-size: clamp(28px, 3.4vw, 44px);
  font-weight: 800;
  letter-spacing: -0.02em;
  margin-bottom: 34px;
}
.heading-bold--xl { font-size: clamp(34px, 5vw, 64px); line-height: 1; margin-bottom: 0; }
.heading-bold--cta { font-size: clamp(28px, 4vw, 46px); line-height: 1.15; font-weight: 800; letter-spacing: -0.02em; }
.heading-bold--cta .line { display: block; }

.lead { font-size: clamp(17px, 2vw, 20px); line-height: 1.5; color: var(--muted); max-width: 62ch; margin: 24px auto 0; }
.center { text-align: center; }

.accent { color: var(--purple); }
.body-copy { font-size: 19px; line-height: 1.5; color: var(--text); }
.body-copy--orange p, .body-copy--orange li { color: var(--orange); }
.body-copy p, .stack p { margin: 0; }

.stack { display: grid; }
.stack--lg { gap: 22px; padding-top: 8px; }
.stack--md { gap: 20px; margin-top: 34px; max-width: 44ch; font-size: 20px; line-height: 1.45; }

.underline-swipe { position: relative; display: inline-block; }
.underline-swipe::after {
  content: '';
  position: absolute;
  left: -2px; right: -6px; bottom: 0.1em; height: 0.09em;
  background: var(--yellow);
  transform: rotate(-1deg);
}

/* ---------- grids ---------- */
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; }
.grid-2--top { align-items: start; gap: 72px; }
.grid-2--partners { grid-template-columns: 0.85fr 1.15fr; }

.logo-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.logo-grid__cell { height: 120px; padding: 14px; display: flex; align-items: center; justify-content: center; }
.logo-grid__cell img { max-height: 100%; width: auto; object-fit: contain; }

/* ---------- marquee ---------- */
.marquee { border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); padding: 20px 0; overflow: hidden; }
.marquee__track {
  display: flex;
  width: max-content;
  animation: wonk-marquee 34s linear infinite;
  font-size: clamp(16px, 2.6vw, 26px);
  font-weight: 600;
  font-style: italic;
  color: var(--olive);
  white-space: nowrap;
}
.marquee__track span { padding-right: 14px; }
@keyframes wonk-marquee { from { transform: translateX(0); } to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) {
  .marquee__track { animation: none; }
}

/* ---------- accordion ---------- */
.accordion { display: grid; gap: 14px; }
.accordion__item { border-radius: 16px; overflow: hidden; background: var(--dark); color: #ffffff; }
.accordion__bar { height: 8px; background: var(--purple); }
.accordion__toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 22px 26px;
  background: transparent;
  border: 0;
  color: #ffffff;
  font-family: Archivo, sans-serif;
  font-size: clamp(17px, 2vw, 20px);
  font-weight: 700;
  text-align: left;
  cursor: pointer;
}
.accordion__toggle:hover { background: rgba(255,255,255,0.06); }
.accordion__sign { font-size: 24px; font-weight: 400; }
.accordion__body {
  display: none;
  padding: 0 26px 26px;
  font-size: 17px;
  line-height: 1.55;
  color: var(--muted-3);
  max-width: 76ch;
}
.accordion__item.is-open .accordion__body { display: block; }

/* ---------- pricing ---------- */
.pricing-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 24px; }
.price-card {
  background: var(--dark);
  color: #ffffff;
  border-radius: 20px;
  padding: 30px;
  display: flex;
  flex-direction: column;
  gap: 22px;
}
.price-card__head { display: flex; align-items: center; justify-content: space-between; }
.price-card__title { font-size: 22px; font-weight: 700; }
.dot { width: 11px; height: 11px; border-radius: 50%; }
.segmented { display: flex; padding: 5px; border-radius: 999px; background: rgba(255,255,255,0.08); }
.segmented__btn {
  flex: 1;
  height: 42px;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
  font-family: Archivo, sans-serif;
  font-size: 15px;
  font-weight: 700;
  background: transparent;
  color: var(--muted-3);
}
.segmented__btn.is-active { background: var(--lav); color: var(--dark); }
.price-card__price { display: flex; align-items: baseline; gap: 8px; }
.price-card__amount { font-size: clamp(44px, 6vw, 60px); font-weight: 800; line-height: 1; }
.price-card__unit { font-size: 18px; color: var(--muted-3); }
.price-card__note { margin: 8px 0 0; font-size: 15px; color: var(--muted-2); }
.chip { display: inline-block; margin-top: 14px; padding: 6px 12px; border-radius: 999px; font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.12em; font-weight: 500; }
.chip--yellow { background: var(--yellow); color: var(--dark); }
.check-list { list-style: none; padding: 0; display: grid; gap: 10px; font-size: 16px; color: #e4dff0; }
.check-list li { display: flex; gap: 10px; }
.check--lav { color: var(--lav); }
.check--orange { color: var(--orange); }
.stepper { display: flex; align-items: center; justify-content: space-between; padding: 5px; border-radius: 999px; background: rgba(255,255,255,0.08); }
.stepper__btn { width: 44px; height: 42px; border: 0; border-radius: 999px; background: transparent; color: #ffffff; font-size: 20px; cursor: pointer; }
.stepper__btn:hover { background: rgba(255,255,255,0.12); }
.stepper__label { font-size: 16px; font-weight: 700; }

/* ---------- testimonials ---------- */
.quote-card { border: 3px solid; padding: 38px 40px; display: flex; flex-direction: column; gap: 22px; }
.quote-card blockquote { font-size: clamp(18px, 2vw, 21px); line-height: 1.45; color: var(--olive); }
.quote-card figcaption { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.14em; color: var(--olive); text-align: right; margin-top: auto; }

/* ---------- partnership panel ---------- */
.panel-card { background: #ffffff; color: var(--ink); padding: 56px; }
.panel-card__title { font-size: 28px; font-weight: 800; margin-bottom: 6px; }
.panel-card__subtitle { font-size: 16px; color: var(--muted); margin-bottom: 26px; }
.feature-list__row { border-top: 1px solid var(--border); padding: 18px 0; display: grid; gap: 6px; }
.feature-list__row--last { border-bottom: 1px solid var(--border); }
.feature-list__title { font-size: 18px; font-weight: 700; display: block; }
.feature-list__desc { font-size: 16px; color: var(--muted); display: block; }

/* ---------- footer ---------- */
.site-footer { background: var(--dark); color: var(--muted-3); padding: 48px 0; }
.site-footer__inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 40px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.site-footer__logo { height: 44px; width: auto; }
.site-footer__nav { display: flex; flex-wrap: wrap; gap: 24px; font-size: 15px; }
.site-footer__nav a { color: var(--muted-3); }
.site-footer__copy { font-family: 'IBM Plex Mono', monospace; font-size: 12px; letter-spacing: 0.1em; }

/* ---------- generic cards used on Contact / Memberspace ---------- */
.card-grid { display: grid; gap: 24px; align-items: stretch; }
.card-grid--3 { grid-template-columns: repeat(3, 1fr); }
.card {
  border-top: 6px solid;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 32px 34px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.card__eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.16em; color: var(--muted); }
.card__title { font-size: clamp(24px, 2.6vw, 30px); line-height: 1.1; font-weight: 800; }
.card__desc { font-size: 17px; line-height: 1.55; color: var(--muted); }
.card__cta { margin-top: auto; padding-top: 22px; display: flex; }
.card__cta span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 56px;
  border-radius: 999px;
  font-family: 'IBM Plex Mono', monospace;
  font-size: 12.5px;
  letter-spacing: 0.14em;
  font-weight: 500;
}

.dark-tile { background: var(--dark); color: #ffffff; border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; }
.dark-tile__bar { height: 8px; }
.dark-tile__body { padding: 26px 28px 28px; display: grid; gap: 12px; }
.dark-tile__eyebrow { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.16em; }
.dark-tile__title { font-size: clamp(22px, 2.6vw, 26px); line-height: 1.15; font-weight: 800; }
.dark-tile__desc { font-size: 17px; line-height: 1.55; color: var(--muted-3); }

.split-card {
  border-top: 6px solid;
  border-left: 1px solid var(--border);
  border-right: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 32px 34px;
  display: grid;
  gap: 12px;
  align-content: start;
}
.split-card__label { font-family: 'IBM Plex Mono', monospace; font-size: 11.5px; letter-spacing: 0.16em; color: var(--muted); }
.split-card__title { font-size: clamp(26px, 3vw, 32px); line-height: 1.08; font-weight: 800; }
.split-card__desc { font-size: 17px; line-height: 1.55; color: var(--muted); }

.wonkcast-panel {
  background: var(--dark);
  color: #ffffff;
  border-radius: 18px;
  padding: 44px 48px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
.wonkcast-panel iframe { border-radius: 12px; width: 100%; }

.support-card { border: 3px solid var(--yellow); padding: 36px 38px; display: flex; flex-direction: column; gap: 14px; }
.support-card--purple { border: 0; background: var(--purple); color: #ffffff; }
.support-card__title { font-size: 30px; font-weight: 800; }
.support-card__desc { font-size: 18px; line-height: 1.55; color: var(--muted); }
.support-card--purple .support-card__desc { color: var(--orange); }

.simple-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }

.underline-tag { position: relative; display: inline-block; }
.underline-tag::after {
  content: '';
  position: absolute;
  left: -2px; right: -6px; bottom: 0.1em; height: 0.085em;
  background: var(--yellow);
  transform: rotate(-1deg);
}

/* =========================================================
   RESPONSIVE — tablet
   ========================================================= */
@media (max-width: 900px) {
  .container { padding: 0 24px; }
  .site-header__inner { padding: 14px 24px; }

  .grid-2,
  .grid-2--top,
  .pricing-grid,
  .card-grid--3,
  .simple-list,
  .wonkcast-panel {
    grid-template-columns: 1fr;
  }
  .grid-2--top { gap: 40px; }
  .wonkcast-panel { gap: 28px; text-align: left; }

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

/* =========================================================
   RESPONSIVE — mobile: collapsible nav + tighter spacing
   ========================================================= */
@media (max-width: 680px) {
  .container { padding: 0 20px; }
  .site-header__inner { padding: 12px 20px; }
  .site-header__logo { height: 30px; }

  .nav-toggle { display: flex; }
  .site-nav {
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #ffffff;
    border-bottom: 1px solid var(--border);
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px 20px 16px;
    display: none;
  }
  .site-nav.is-open { display: flex; }
  .site-nav a { padding: 12px 0; border-top: 1px solid var(--border); }
  .site-nav a:first-child { border-top: 0; }
  .site-nav .btn { margin-top: 12px; width: 100%; }

  .hero { padding: 64px 0 72px; }
  .btn-row { gap: 10px; }
  .btn { height: 52px; padding: 0 26px; }

  .section { padding: 44px 0; }

  .logo-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .logo-grid__cell { height: 90px; }

  .card-grid--3 { grid-template-columns: 1fr; }

  .site-footer__inner { justify-content: flex-start; }
  .site-footer__nav { gap: 16px; }
}
