/* Bears With Apps — Toca-style playful system */

:root {
  --paper: #FFFFFF;
  --ink: #141414;
  --ink-soft: #5b5b5b;
  --panel: #0C2E2C;

  --honey: #FFC94A;
  --teal: #00B3B3;
  --sky: #4DA7F0;
  --leaf: #57B85C;
  --berry: #F58EB4;
  --tangerine: #F57F2C;

  --honey-t: #FFF4D9;
  --teal-t: #DFF6F6;
  --sky-t: #E3F1FD;
  --leaf-t: #E5F5E6;
  --berry-t: #FDEAF2;
  --tangerine-t: #FDEBDD;

  --r-pill: 999px;
  --r-card: 28px;
  --r-img: 24px;

  --container: 1180px;
  --gutter: 24px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: 'Nunito', system-ui, sans-serif;
  font-size: 17px;
  line-height: 1.6;
}

h1, h2, h3, h4, nav, button, .pill, .btn {
  font-family: 'Fredoka', system-ui, sans-serif;
}

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

a { color: inherit; }

a:focus-visible,
button:focus-visible {
  outline: 3px solid var(--teal);
  outline-offset: 2px;
  border-radius: 6px;
}

.container {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

.section {
  padding: clamp(4rem, 8vw, 7rem) 0;
}

.kicker {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 0.85rem;
  color: var(--teal);
  margin: 0 0 8px;
}

.section-title {
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 16px;
}

.section-title--small { font-size: clamp(1.6rem, 3vw, 2.2rem); }

.body-copy { color: var(--ink-soft); }

/* Buttons / pills */
.pill,
.btn,
.hero__badges a,
.app-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background: var(--ink);
  color: #fff;
  border-radius: var(--r-pill);
  padding: 14px 26px;
  min-height: 44px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 200ms ease, transform 200ms ease;
}

.pill:hover,
.btn:hover,
.app-links a:hover {
  background: var(--teal);
  color: var(--ink);
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #fff;
  border-bottom: 1px solid #EFEFEA;
}

.site-header__row {
  max-width: var(--container);
  margin: 0 auto;
  padding: 14px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

.site-header__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--ink);
}

.site-header__brand img { width: 72px; height: 48px; object-fit: contain; }

.site-header__wordmark { white-space: nowrap; }

@media (max-width: 640px) {
  .site-header__row { padding: 10px 16px; gap: 12px; }
  .site-header__brand img { width: 54px; height: 36px; }
  .site-header__wordmark { font-size: 1rem; }
  .header-cta { padding: 10px 16px; font-size: 0.9rem; margin-left: 0; }
}

.site-header__wordmark {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.15rem;
}

.site-nav {
  display: flex;
  align-items: center;
  gap: 28px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
}

.site-nav a { text-decoration: none; color: var(--ink); }
.site-nav a:hover { color: var(--teal); }

.header-cta { margin-left: 8px; }

/* Hero */
.hero {
  padding: 0;
  background: var(--paper);
}

/* Pinned scrolly runway: one segment per non-first slide. The rotation
   script measures live heights, so tuning this height alone retunes the
   scroll pacing. */
.hero__runway {
  position: relative;
  height: 260vh; /* ~65vh of scroll per slide */
}

.hero__pin {
  position: sticky;
  top: var(--header-h, 78px);
  padding: clamp(16px, 3vh, 32px) 0;
}

.hero__stage {
  width: 100%;
  height: clamp(420px, 56vh, 640px);
  border-radius: var(--r-card);
  overflow: hidden;
  position: relative;
  background: var(--ink);
}

/* .hero__bg and .hero__fg MUST share identical geometry so the foreground
   cutout lands pixel-perfect over the background it was cut from. */
.hero__bg,
.hero__fg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center bottom;
  opacity: 0;
  /* Base overscan gives the scroll-parallax drift room to move without
     exposing the stage edges. Transforms are scroll-driven from JS: the bg is
     a bear-erased plate and the fg cutout counter-drifts against it (2.5D);
     only opacity crossfades via CSS. */
  transform: scale(1.06);
  transition: opacity 600ms ease;
}

.hero__bg.is-active,
.hero__fg.is-active {
  opacity: 1;
}

.hero__bg { z-index: 1; }
.hero__fg { z-index: 4; pointer-events: none; transform: scale(1.09); }

.hero__scrim {
  position: absolute;
  inset: 0;
  z-index: 2;
  background: linear-gradient(90deg, rgba(0, 0, 0, 0.45), transparent 55%);
  pointer-events: none;
}

.hero__copy {
  position: absolute;
  inset: 0;
  z-index: 3;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  text-align: left;
  gap: 0;
  max-width: 34%;
  padding: 0 0 0 clamp(24px, 5vw, 64px);
  /* No transition here: the headline's transform/opacity are scroll-driven
     (see the Hero rotation script) and must update instantly every frame,
     not animate via CSS. */
}

.hero__copy--top {
  justify-content: flex-start;
  padding-top: clamp(28px, 6vh, 72px);
}

/* Slides whose composition leaves no clear column: headline rides above the
   bears (z 5 > fg z 4) while resting; while entering/exiting it drops back
   to z-index 3 (below the fg bears) so it visibly passes behind them. */
.hero__copy--front { z-index: 5; }

/* Slides whose subject sits closer to center: keep headline lines shorter so
   words tuck behind the bears instead of disappearing behind them. */
.hero__copy--narrow { max-width: 28%; }

.hero__headline {
  font-weight: 700;
  font-size: clamp(2rem, 3.8vw, 3.75rem);
  line-height: 1.05;
  letter-spacing: -0.02em;
  margin: 0 0 24px;
  color: #fff;
  text-shadow: 0 4px 28px rgba(0, 0, 0, 0.35);
}

/* Hero bar: subhead + store links left, app tabs right */
.hero__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(24px, 4vw, 56px);
  flex-wrap: wrap;
  margin-top: 28px;
}

.hero__meta {
  flex: 1 1 420px;
  max-width: 560px;
  transition: opacity 200ms ease;
}

.hero__meta.is-swapping { opacity: 0; }

.hero__subhead {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 52ch;
  margin: 0 0 18px;
  min-height: calc(3 * 1.6 * 1.1rem); /* reserve 3 lines: pin height must not change per slide */
}

.hero__badges {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  margin-bottom: 10px;
}

.hero__badges a img { height: 26px; filter: invert(1) brightness(10); }

.hero__reassurance {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin: 0;
}

/* Hero tabs */
.hero__tabs {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: clamp(14px, 2.5vw, 32px);
}

.hero__tab {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  background: transparent;
  border: none;
  padding: 6px;
  min-width: 44px;
  min-height: 44px;
  cursor: pointer;
}

.hero__tab-icon {
  width: 64px;
  height: 64px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  transition: box-shadow 200ms ease;
}

.hero__tab-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--ink-soft);
  transition: color 200ms ease;
}

.hero__tab.is-active .hero__tab-icon {
  box-shadow: 0 0 0 3px var(--ink);
}

.hero__tab.is-active .hero__tab-name {
  font-weight: 700;
  color: var(--ink);
}

@media (prefers-reduced-motion: reduce) {
  .hero__bg,
  .hero__fg {
    transition: none !important;
  }
}

@media (max-width: 900px) {
  .hero__stage { height: clamp(260px, 36vh, 380px); }
  .hero__pin { padding: clamp(8px, 1.5vh, 16px) 0; }
  .hero__bar { margin-top: 12px; }
  .hero__scrim {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.12) 45%, transparent 70%);
  }
  .hero__copy,
  .hero__copy--top {
    align-items: flex-start;
    justify-content: flex-start;
    padding: clamp(20px, 5vw, 36px) 24px 0;
    max-width: 64%;
  }
  .hero__headline { font-size: clamp(1.6rem, 6.6vw, 2.3rem); }
  .hero__bar { flex-direction: column; align-items: center; gap: 14px; }
  .hero__subhead { min-height: calc(4 * 1.6 * 1rem); } /* slide 0 wraps to 4 lines at 375px */
  .hero__badges { min-height: 96px; } /* two stacked pills; Christmas has only one */
  .hero__meta {
    /* Reset the desktop row layout's flex-basis: in a column bar that basis
       would set the *height* instead of a preferred width, forcing a huge
       gap under the subhead/badges. */
    flex: 0 1 auto;
    max-width: 100%;
    text-align: center;
  }
  .hero__badges { justify-content: center; gap: 10px; margin-bottom: 6px; }
  .hero__badges a { padding: 10px 20px; min-height: 40px; font-size: 0.9rem; }
  .hero__subhead { margin: 0 auto 12px; font-size: 1rem; }
  .hero__reassurance { margin: 0; }
  .hero__tabs { justify-content: center; gap: 10px; flex-wrap: nowrap; }
  .hero__tab-icon { width: 48px; height: 48px; border-radius: 12px; }
  .hero__tab-name { font-size: 0.75rem; }
}

/* Media (news) — pinned scrolly on desktop, stacked cards on mobile.
   Runway height is 100vh + 1 * MEDIA_SEGMENT_VH (70vh) per item beyond the
   first, so it scales if MEDIA_DATA in the Media rotation script grows. */
.media__runway {
  position: relative;
  height: 170vh; /* 100vh + 1 * 70vh (MEDIA_SEGMENT_VH) */
}

.media__pin {
  position: sticky;
  top: var(--header-h, 78px);
  padding: clamp(24px, 5vh, 56px) 0;
}

.media__grid {
  display: grid;
  grid-template-columns: minmax(240px, 340px) 1fr;
  gap: clamp(24px, 4vw, 56px);
  align-items: center;
}

.media__chips {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.media__chip {
  display: flex;
  align-items: center;
  gap: 16px;
  width: 100%;
  background: transparent;
  border: none;
  padding: 8px;
  min-height: 44px;
  border-radius: 16px;
  cursor: pointer;
  text-align: left;
  opacity: 0.55;
  transition: opacity 200ms ease;
}

.media__chip.is-active { opacity: 1; }

.media__chip-badge {
  flex-shrink: 0;
  width: 156px;
  background: #fff;
  border: 2px solid #EFEFEA;
  border-radius: 16px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 0 0 0 transparent;
  transition: box-shadow 200ms ease;
}

/* Station logos keep their natural aspect ratio — height capped, width auto,
   never forced into a square (the squash Andrew flagged on the b3 page). */
.media__chip-badge img {
  height: 44px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}

.media__chip.is-active .media__chip-badge { box-shadow: 0 0 0 3px var(--ink); }

.media__chip-text { display: flex; flex-direction: column; }

.media__chip-station {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--ink);
}

.media__chip.is-active .media__chip-station { font-weight: 700; }

.media__chip-sub {
  font-family: 'Nunito', sans-serif;
  font-size: 0.9rem;
  color: var(--ink-soft);
}

.media__quote {
  font-family: 'Nunito', sans-serif;
  font-style: italic;
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 4px 8px 12px;
  max-width: 40ch;
}

.media__story-link {
  font-family: 'Fredoka', sans-serif;
  font-style: normal;
  font-weight: 600;
  color: #067E7E;
  text-decoration: none;
  white-space: nowrap;
}

.media__story-link:hover { text-decoration: underline; }

.media__card {
  background: #fff;
  border: 2px solid #EFEFEA;
  border-radius: var(--r-card);
  padding: 20px;
  transition: opacity 180ms ease;
}

.media__card.is-fading { opacity: 0; }

.media__card iframe,
.media__item-video iframe {
  width: 100%;
  aspect-ratio: 16 / 9;
  border: none;
  border-radius: 16px;
  display: block;
}

.media__card h3,
.media__item-video h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.25rem;
  margin: 16px 0 0;
}

/* Per-item iframes exist for the mobile stacked layout only — hidden (and
   left unsrc'd, see the Media rotation script) on desktop so the shared
   swap-card is the only embed ever loaded there. */
.media__item-video { display: none; }

@media (prefers-reduced-motion: reduce) {
  .media__card { transition: none !important; }
}

@media (max-width: 900px) {
  .media__runway { height: auto; }
  .media__pin { position: static; top: auto; padding: 0; }
  .media__grid { grid-template-columns: 1fr; gap: 24px; }
  .media__chips { gap: 24px; }
  .media__video-wrap { display: none; }

  .media__item {
    border-radius: var(--r-card);
    padding: 20px;
  }
  .media__item:nth-child(odd) { background: var(--honey-t); }
  .media__item:nth-child(even) { background: var(--sky-t); }

  .media__chip { opacity: 1; padding: 0; cursor: default; }
  .media__chip-badge { box-shadow: none !important; }
  .media__chip-station { font-weight: 700; }

  .media__item-video { display: block; margin-top: 16px; }
}

/* Stat band */
.stat-band {
  padding: clamp(2.5rem, 5vw, 4rem) 0;
}

.stat-band__row {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
  justify-content: center;
}

.stat-chip {
  border-radius: var(--r-pill);
  padding: 20px 36px;
  text-align: center;
  flex: 1 1 220px;
  max-width: 360px;
}

.stat-chip--honey { background: var(--honey-t); }
.stat-chip--teal { background: var(--teal-t); }
.stat-chip--berry { background: var(--berry-t); }

.stat-chip__figure {
  font-weight: 700;
  font-size: clamp(2.5rem, 5vw, 4rem);
  line-height: 1;
}

.stat-chip__label {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 6px;
}

/* App-world cards */
.worlds-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
  margin-top: 32px;
}

.world-card {
  border-radius: var(--r-card);
  padding: clamp(1.75rem, 4vw, 3rem);
}

.world-card--honey { background: var(--honey-t); }
.world-card--sky { background: var(--sky-t); }

.world-card img {
  height: auto; /* the height attribute otherwise defeats aspect-ratio */
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-img);
  margin-bottom: 24px;
}

.world-card:nth-child(1) img { transform: rotate(-2deg); }
.world-card:nth-child(2) img { transform: rotate(2deg); }

.world-card h3 {
  font-weight: 700;
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  margin: 0 0 12px;
}

.world-card p { color: var(--ink-soft); margin: 0 0 20px; }

@media (max-width: 800px) {
  .worlds-grid { grid-template-columns: 1fr; }
}

/* About */
.section-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
}

.about-photo {
  max-width: 100%;
  width: 100%;
  height: auto;
  border-radius: var(--r-img);
  object-fit: cover;
}

@media (prefers-reduced-motion: no-preference) {
  .about-photo { transform: rotate(2deg); }
}

.about-caption {
  color: var(--ink-soft);
  font-size: 0.9rem;
  margin-top: 12px;
}

.text-link {
  color: var(--teal);
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  text-decoration: none;
}

@media (max-width: 800px) {
  .section-grid { grid-template-columns: 1fr; }
}

/* App directory */
.apps-section { background: var(--leaf-t); }

.apps-header {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  max-width: var(--container);
  margin: 0 auto 32px;
  padding: 0 var(--gutter);
}

.apps-header__intro {
  color: var(--ink-soft);
  max-width: 40ch;
}

.app-list {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  background: none;
}

.app-group-header {
  grid-column: 1 / -1;
  margin: 24px 0 4px;
}

.app-group-header:first-child { margin-top: 0; }

.app-group-header h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(2rem, 4vw, 3rem);
  margin: 0 0 6px;
}

.app-group-header p {
  color: var(--ink-soft);
  margin: 0;
}

.app-item {
  background: #fff;
  border: none;
  border-radius: var(--r-card);
  padding: 22px;
  display: flex;
  flex-direction: column;
  transition: transform 200ms ease, box-shadow 200ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .app-item:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 18px 30px rgba(20, 20, 20, 0.12);
  }
}

.app-container {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
}

.app-icon {
  width: 64px;
  height: 64px;
  border-radius: 18px;
  object-fit: cover;
}

.app-name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.app-item h3 {
  font-family: 'Nunito', sans-serif;
  font-weight: 800;
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink-soft);
  margin: 0 0 8px;
}

.app-item p {
  color: var(--ink-soft);
  margin: 0 0 16px;
  display: -webkit-box;
  -webkit-line-clamp: 4;
  -webkit-box-orient: vertical;
  overflow: hidden;
  flex-grow: 1;
}

.app-links {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: auto;
}

.app-links a {
  width: 100%;
  min-height: 44px;
  font-size: 0.85rem;
  padding: 10px 18px;
  white-space: nowrap;
}

.scroll-indicator {
  grid-column: 1 / -1;
  justify-self: center;
  margin-top: 16px;
  background: var(--teal-t);
  color: var(--ink);
  border-radius: var(--r-pill);
  padding: 10px 24px;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.9rem;
}

/* Values */
.values-layout {
  display: flex;
  align-items: flex-start;
  gap: clamp(24px, 3vw, 40px);
  margin-top: 32px;
}

.values-grid {
  flex: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

@media (max-width: 720px) {
  .values-layout { flex-direction: column; }
  .values-grid { grid-template-columns: 1fr 1fr; }
}

.value-chip {
  border-radius: var(--r-card);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 8px;
  text-align: left;
}

.value-chip strong {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(1.4rem, 3vw, 1.8rem);
}

.value-chip span {
  font-family: 'Nunito', sans-serif;
  font-size: 1rem;
  color: var(--ink-soft);
}

.value-chip--honey { background: var(--honey-t); }
.value-chip--teal { background: var(--teal-t); }
.value-chip--sky { background: var(--sky-t); }
.value-chip--leaf { background: var(--leaf-t); }

.values-photo {
  width: 42%;
  height: auto; /* the height attribute otherwise defeats aspect-ratio */
  min-width: 240px;
  max-width: 480px;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-img);
  margin: 0;
}

@media (max-width: 720px) {
  .values-photo { width: 100%; max-width: none; }
}

/* Partners */
.partners-section { background: var(--teal-t); }

.partners-banner {
  display: flex;
  align-items: center;
  gap: 24px;
  background: #fff;
  border-radius: var(--r-card);
  border: 2px solid #EFEFEA;
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  margin: 32px 0;
}

.partners-banner__image {
  width: 90px;
  height: auto;
  border-radius: 12px;
}

.partners-banner__title {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.2rem;
}

.partners-banner__sub { color: var(--ink-soft); margin: 6px 0; }

.partners-banner__cta {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: var(--teal);
}

.hairline-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
}

.hairline-grid__cell {
  background: #fff;
  border: 2px solid #EFEFEA;
  border-radius: var(--r-card);
  padding: 20px;
  text-decoration: none;
  color: var(--ink);
  transition: transform 200ms ease, box-shadow 200ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .hairline-grid__cell:hover {
    transform: translateY(-6px) rotate(-1deg);
    box-shadow: 0 18px 30px rgba(20, 20, 20, 0.12);
  }
}

.hairline-grid__logo-box img {
  max-height: 60px;
  width: auto;
  margin-bottom: 12px;
}

.hairline-grid__name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
}

.hairline-grid__message,
.hairline-grid__role {
  color: var(--ink-soft);
  font-size: 0.9rem;
}

.hairline-grid__num {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  color: var(--ink-soft);
}

.partners-footer {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 28px;
  flex-wrap: wrap;
}

.partners-footer__note { color: var(--ink-soft); font-size: 0.9rem; }

/* Closing CTA */
.closing-cta {
  background: var(--panel);
  color: #fff;
  padding: clamp(4rem, 8vw, 7rem) var(--gutter);
  position: relative;
  overflow: hidden;
}

.closing-cta__inner {
  max-width: var(--container);
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 40px;
  flex-wrap: wrap;
}

.closing-cta__copy { flex: 1; min-width: 280px; }

.closing-cta h2 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 700;
  font-size: clamp(2.2rem, 5vw, 3.5rem);
  margin: 0 0 16px;
  letter-spacing: -0.02em;
}

.closing-cta p {
  color: #CFE8E6;
  max-width: 46ch;
  margin: 0 0 28px;
}

.closing-cta__badges {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.closing-cta__badges a {
  display: inline-flex;
  border-radius: 12px;
  transition: transform 200ms ease;
}

@media (prefers-reduced-motion: no-preference) {
  .closing-cta__badges a:hover { transform: scale(1.05); }
}

.closing-cta__badges a img { height: 54px; width: auto; border-radius: 12px; }

.closing-cta__image {
  width: 320px;
  max-width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-img);
  transform: rotate(2deg);
}

/* Footer */
.site-footer {
  background: var(--panel);
  color: #CFE8E6;
  padding: clamp(3rem, 6vw, 4rem) var(--gutter) 2rem;
}

.site-footer__top {
  max-width: var(--container);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 32px;
}

.site-footer__brand {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  color: #fff;
}

.site-footer__brand img { width: 150px; height: 100px; object-fit: contain; }

.site-footer__wordmark {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.1rem;
}

.site-footer__desc { margin-top: 12px; color: #CFE8E6; }

.site-footer h3 {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  color: #fff;
  font-size: 1rem;
  margin: 0 0 14px;
}

.site-footer ul {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.site-footer a {
  color: #CFE8E6;
  text-decoration: none;
}

.site-footer a:hover { color: #fff; }

.site-footer__bottom {
  max-width: var(--container);
  margin: 40px auto 0;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  color: #CFE8E6;
  font-size: 0.85rem;
}

@media (max-width: 800px) {
  .site-footer__top { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 500px) {
  .site-footer__top { grid-template-columns: 1fr; }
  .site-nav { display: none; }
}

/* ---- Shared: outline pill, narrow container, on-dark kicker ---- */
.container--narrow { max-width: 900px; }

.pill--outline {
  background: transparent;
  border: 2px solid rgba(255, 255, 255, 0.55);
  color: #fff;
}
.pill--outline:hover { background: #fff; color: var(--ink); border-color: #fff; }

.kicker--on-dark { color: var(--honey); }

/* ---- Sponsorship page ---- */
.sp-hero {
  position: relative;
  background: var(--panel);
  color: #fff;
  overflow: hidden;
  padding: clamp(64px, 10vw, 108px) 0 clamp(56px, 8vw, 84px);
}
.sp-hero__contours { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0.18; }
.sp-hero__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}
.sp-hero h1 {
  font-size: clamp(2.1rem, 5vw, 3.2rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 10px 0 0;
  max-width: 780px;
}
.sp-hero p {
  margin-top: 20px;
  font-size: 1.1rem;
  line-height: 1.6;
  color: #E7F6F4;
  max-width: 620px;
}
.sp-hero__ctas {
  margin-top: 30px;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
}

.strip-banner {
  background: var(--honey-t);
  padding: clamp(32px, 6vw, 56px) var(--gutter);
}
.strip-banner img {
  max-width: var(--container);
  margin: 0 auto;
  width: 100%;
  height: auto;
  border-radius: var(--r-img);
}

.tiers-grid {
  margin-top: 36px;
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  max-width: var(--container);
  margin-left: auto;
  margin-right: auto;
}
.tier-card {
  background: var(--paper);
  border: 2px solid var(--teal-t);
  border-radius: var(--r-card);
  padding: 30px 28px;
  display: flex;
  flex-direction: column;
}
.tier-card__name {
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 1.5rem;
  color: var(--ink);
  margin: 8px 0 12px;
}
.tier-card__blurb {
  font-size: 0.95rem;
  color: var(--ink-soft);
  margin: 0 0 18px;
}
.tier-card__list {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.tier-card__list li {
  display: flex;
  gap: 10px;
  font-size: 0.92rem;
  color: var(--ink);
}
.tier-card__list li::before {
  content: "—";
  color: var(--teal);
  flex-shrink: 0;
}
.tier-card__price {
  margin-top: auto;
  font-family: 'Fredoka', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--teal);
}

.why-section {
  background: var(--panel);
  color: #fff;
  padding: clamp(56px, 9vw, 96px) var(--gutter);
}
.why-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 48px;
  align-items: center;
  max-width: var(--container);
  margin: 0 auto;
}
.why-grid h2 { color: #fff; }
.why-grid p { color: #E7F6F4; font-size: 1rem; line-height: 1.65; }
.why-photo {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: var(--r-img);
}

.contact-section {
  text-align: center;
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 96px) var(--gutter);
}
.contact-section__ctas {
  margin-top: 28px;
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 16px;
}

/* ---- Privacy policy / prose pages ---- */
.policy-container {
  max-width: 760px;
  margin: 0 auto;
  padding: clamp(56px, 9vw, 72px) var(--gutter) 96px;
}
.policy-container h1 {
  font-size: clamp(2rem, 4.4vw, 2.8rem);
  line-height: 1.12;
  color: var(--ink);
  margin: 0 0 12px;
}
.policy-container .policy-meta {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 40px;
}
.policy-container h2 {
  font-size: 1.5rem;
  color: var(--ink);
  margin: 44px 0 16px;
}
.policy-container p {
  font-size: 1rem;
  line-height: 1.68;
  color: var(--ink-soft);
  margin: 0 0 16px;
}
.policy-container ul {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--ink-soft);
  padding-left: 22px;
}
.policy-container li { margin-bottom: 10px; }
.policy-container a { color: var(--teal); font-weight: 600; }
.policy-container a:hover { text-decoration: underline; }
.policy-table {
  width: 100%;
  border-collapse: collapse;
  margin: 20px 0 28px;
  font-size: 0.88rem;
}
.policy-table th, .policy-table td {
  border: 1px solid var(--teal-t);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  color: var(--ink-soft);
}
.policy-table th { background: var(--teal-t); color: var(--ink); font-family: 'Fredoka', sans-serif; }

/* ---- Condensed footer (used on secondary pages) ---- */
.site-footer--condensed .site-footer__top {
  grid-template-columns: 1fr;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.site-footer--condensed nav {
  display: flex;
  flex-wrap: wrap;
  gap: 20px;
}
