/* =====================================================
   08 — PREMIUM LAYER (always last)
   Apple-calibre motion + typography, refined company
   carousel, and a distinct identity per page:
     Home       — cinematic flagship (deep ink, aurora)
     Network    — broadcast studio (bright, bold, kinetic)
     Membership — private club (light, editorial spacing)
   ===================================================== */

/* ============ MOTION TOKENS ============ */
:root {
  --ease-out-expo: cubic-bezier(.16, 1, .3, 1);
  --ease-smooth:   cubic-bezier(.4, 0, .2, 1);
  --radius:        20px;
  --club-ink:      #17121F;

  /* System type — Helvetica-first, identical on every OS, no FOUT.
     --font-mono is retired to the same stack: former mono labels
     become small bold caps (see label voice below). */
  --font-system:  -apple-system, BlinkMacSystemFont, 'Helvetica Neue', Helvetica, 'Segoe UI', Arial, sans-serif;
  --font-display: var(--font-system);
  --font-body:    var(--font-system);
  --font-mono:    var(--font-system);
}

/* Label voice: classes that used Space Mono need weight to hold up in caps */
.kicker,
.stats__label,
.footer__column h4,
.tier__section-label,
.level-card__number,
.level-card__challenges-label,
.assessment-form label,
.members__billing-note,
.members__note,
.ladder__axis,
.ladder__caption,
.episode-card__author,
.youtube-card__meta,
.spotify-list__track-meta,
.testimonial__author-role,
.footer__bottom p {
  font-weight: 600;
}

/* Kickers hold several inline-flex children (text + .lite spans); on
   narrow screens let them wrap as words instead of squeezing into columns */
.kicker {
  flex-wrap: wrap;
  row-gap:   2px;
}

/* Centered kickers: mirror the leading dash with a trailing one so the
   label text sits truly centered (the lone ::before dash skews it left) */
.kicker--centered::after {
  content:    "";
  width:      26px;
  height:     1px;
  background: currentColor;
  opacity:    .6;
}

/* ============ CONTRAST — AA PASS ============ */
.kicker {
  color: #a49fb5;
}

/* Purple highlights: bold and purple at rest; the scroll reveal fades an
   underline in. The line is always present structurally, at transparent
   color, so toggling .is-active transitions text-decoration-color instead
   of the line snapping in instantly (text-decoration-line itself can't be
   animated). */
.lite,
#page-network .lite {
  color:                     #a78bfa;
  font-weight:               700;
  text-decoration-line:      underline;
  text-decoration-color:     transparent;
  text-underline-offset:     3px;
  text-decoration-thickness: 1.5px;
  transition:                text-decoration-color .6s ease;
}

.lite.is-active,
#page-network .lite.is-active,
.section--light .lite.is-active {
  text-decoration-color: currentColor;
}

/* Stat counters (Subscribers/Episodes/Countries/Levels) also carry .lite for
   their purple color, but shouldn't pick up the reveal underline. Needs the
   #page-network prefix to out-specificity the #page-network .lite.is-active
   rule above (an ID selector beats three plain classes regardless of order). */
.stats__count.lite.is-active,
#page-network .stats__count.lite.is-active {
  text-decoration-line: none;
}

.section--light .kicker {
  color: #6f6a7d;
}

/* Darker purple on light/white surfaces so the highlight stays readable */
.section--light .lite,
.section--light .lite.is-active,
#inside .benefit__face--back .lite,
#inside .benefit__face--back .lite.is-active {
  color: #6D28D9;
}

.stats__label,
#page-network .stats__label {
  color: rgba(255, 255, 255, .72) !important;
}

/* ============ GLOBAL SMOOTHNESS ============ */

/* Softer, longer reveal with expo ease — the "Apple drift" */
.reveal {
  transform: translateY(26px);
  transition:
    opacity   .9s var(--ease-out-expo),
    transform .9s var(--ease-out-expo);
  transition-delay: var(--rd, 0s);
}

/* Tilt cards (card-tilt.js drives inline transforms): the slow reveal
   transition above must not smother the pointer tilt — the second panel
   was worst hit because its reveal stagger (--rd) delayed every tilt frame */
.panels .panel {
  transition:
    transform    .22s cubic-bezier(.2, .7, .2, 1),
    box-shadow   .25s ease,
    border-color .25s ease,
    opacity      .9s  var(--ease-out-expo);
  transition-delay: 0s;
}

/* Level card: two-phase crossfade (membership.js toggles .is-leaving,
   swaps content, then replays .is-switching) */
.level-card {
  transition:
    opacity   .19s var(--ease-smooth),
    transform .19s var(--ease-smooth),
    filter    .19s var(--ease-smooth);
}

.level-card.is-leaving {
  opacity:   0;
  transform: translateY(-8px);
  filter:    blur(4px);
}

.level-card.is-switching {
  animation: levelCardRise .65s var(--ease-out-expo);
}

@keyframes levelCardRise {
  from { opacity: 0; transform: translateY(16px); filter: blur(6px); }
  to   { opacity: 1; transform: none; filter: none; }
}

/* Page switches rise gently instead of hard-cutting */
.page.is-active {
  animation: pageRise .55s var(--ease-out-expo);
}

@keyframes pageRise {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: none; }
}

/* Glassier sticky header */
header.is-scrolled {
  background:              rgba(9, 7, 16, .58);
  backdrop-filter:         blur(22px) saturate(1.7);
  -webkit-backdrop-filter: blur(22px) saturate(1.7);
}

/* Nav links get a sliding underline */
.nav__links a {
  position: relative;
}

.nav__links a::after {
  content:          "";
  position:         absolute;
  left:             0;
  bottom:           -6px;
  height:           1.5px;
  width:            100%;
  background:       var(--gold);
  transform:        scaleX(0);
  transform-origin: left;
  transition:       transform .4s var(--ease-out-expo);
}

.nav__links a:hover::after {
  transform: scaleX(1);
}

/* Calmer buttons — lift, don't balloon */
.btn.btn--gold:hover,
.btn.btn--ghost:hover {
  transform: translateY(-2px);
}

.btn.btn--gold:active,
.btn.btn--ghost:active {
  transform: translateY(0);
}

/* Softer display weight globally; each page re-asserts its own voice below */
h2, h3 {
  font-weight: 700;
}

/* Form focus: soft branded ring instead of a bare border swap */
.assessment-form input,
.assessment-form select,
.assessment-form textarea {
  transition: border-color .25s ease, box-shadow .25s ease;
}

.assessment-form input:focus,
.assessment-form select:focus,
.assessment-form textarea:focus {
  border-color: var(--gold);
  box-shadow:   0 0 0 4px rgba(139, 92, 246, .16);
}

/* Quiet, rounded scrollbar */
::-webkit-scrollbar {
  width: 12px;
}

::-webkit-scrollbar-thumb {
  background:      rgba(255, 255, 255, .16);
  border-radius:   999px;
  border:          3px solid transparent;
  background-clip: padding-box;
}

::-webkit-scrollbar-track {
  background: transparent;
}

/* ============ COMPANY CAROUSEL — refined logo strip ============ */
/* tighter top of the band + less gap under the label = less dead space above
   the logos (07 sets the shorthand padding; we trim only the top here) */
.credibility-band {
  padding-top: clamp(28px, 3.5vw, 48px);
}

.credibility-band .credibility__label {
  font-size:      .72rem;
  letter-spacing: .3em;
  color:          rgba(255, 255, 255, .62);
  margin-bottom:  26px;
}

.credibility__marquee {
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image:         linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

/* Slower drift reads as more expensive */
.credibility__track {
  animation-duration: 80s;
}

.credibility__brand {
  height:        112px;
  width:         232px;
  margin-right:  18px;
  padding:       18px 26px;
  border-radius: 18px;
  background:    #fff;
  box-shadow:
    inset 0 0 0 1px rgba(0, 0, 0, .05),
    0 14px 34px -22px rgba(0, 0, 0, .65);
  transition:
    transform  .5s var(--ease-out-expo),
    box-shadow .5s ease;
}

/* Full colour at rest; a gentle scale on hover */
.credibility__brand img {
  filter:     none;
  opacity:    1;
  transition:
    filter    .45s ease,
    opacity   .45s ease,
    transform .5s var(--ease-out-expo);
}

/* keep the enlarged chips proportional on small screens (07 shrinks them to
   76×158; scale that up to sit under the new desktop size) */
@media (max-width: 560px) {
  .credibility__brand {
    height:  96px;
    width:   196px;
    padding: 14px 20px;
  }
}

@media (hover: hover) and (pointer: fine) {
  .credibility__brand:hover {
    transform:  translateY(-4px);
    box-shadow:
      inset 0 0 0 1px rgba(0, 0, 0, .05),
      0 22px 44px -20px rgba(0, 0, 0, .7);
  }

  .credibility__brand:hover img {
    filter:    none;
    opacity:   1;
    transform: scale(1.05);
  }
}

/* ============ HOME — cinematic flagship ============ */

/* Aurora glow that breathes slowly behind the hero */
.hero--landing::before {
  animation: auroraBreathe 11s ease-in-out infinite alternate;
}

@keyframes auroraBreathe {
  from { opacity: .75; filter: none; }
  to   { opacity: 1;   filter: brightness(1.3) saturate(1.15); }
}

/* "What it is" — a little breathing room above the intro paragraph */
#what .mission__grid p {
  margin-top: 18px;
}

/* Panels: subtle glass sheen */
.panel {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, .045), rgba(255, 255, 255, .012) 55%),
    var(--surface);
  border-radius: 20px;
}

/* ============ NETWORK — broadcast studio ============ */
#page-network h2 {
  font-weight: 800;
}

/* Gradient-ink stat numbers */
#page-network .stats__count span {
  background:              linear-gradient(115deg, #C4B5FD 10%, #8B5CF6 90%);
  -webkit-background-clip: text;
  background-clip:         text;
  -webkit-text-fill-color: transparent;
  color:                   transparent;
}

/* Softer media cards */
.youtube-card,
.episode-card__flip-front,
.episode-card__flip-back,
.spotify-list {
  border-radius: 18px;
}

.youtube-card:hover {
  box-shadow: 0 30px 70px -38px rgba(0, 0, 0, .8);
}

/* ============ MEMBERSHIP — private club ============ */

/* Crosslink: small question above, the free-network statement is the header */
.crosslink__question {
  font-size:      clamp(1rem, 1.6vw, 1.15rem);
  font-weight:    400;
  color:          var(--gold);
  margin-bottom:  -8px;
}

#page-membership .kicker {
  letter-spacing: .26em;
}

/* --- "Inside the club": plain black backdrop, white flip cards --- */
#inside {
  background: #050308;
}

/* Smaller cards: tighter grid, fixed height for the 3D flip */
#inside .benefits--four {
  max-width: 880px;
  margin:    0 auto;
}

#inside .benefit--flip {
  background:  transparent;
  border:      none;
  box-shadow:  none;
  padding:     0;
  height:      230px;
  perspective: 1200px;
  cursor:      default;
  outline:     none;
}

#inside .benefit__flip-inner {
  position:        relative;
  width:           100%;
  height:          100%;
  transform-style: preserve-3d;
  transition:      transform .7s var(--ease-out-expo);
}

#inside .benefit--flip:hover .benefit__flip-inner,
#inside .benefit--flip:focus-visible .benefit__flip-inner {
  transform: rotateY(180deg);
}

#inside .benefit__face {
  position:                    absolute;
  inset:                       0;
  backface-visibility:         hidden;
  -webkit-backface-visibility: hidden;
  display:         flex;
  flex-direction:  column;
  align-items:     center;
  justify-content: center;
  gap:             10px;
  text-align:      center;
  padding:         22px 24px;
  border-radius:   var(--radius);
  background:      #fff;
  border:          1px solid rgba(23, 18, 35, .1);
  box-shadow:      0 30px 70px -45px rgba(0, 0, 0, .9);
}

#inside .benefit__face--back {
  transform: rotateY(180deg);
}

#inside .benefit__face h3 {
  color:     var(--club-ink);
  font-size: 1.25rem;
  margin:    0;
}

#inside .benefit__face--back p {
  color:       #3d3849;
  font-size:   .88rem;
  line-height: 1.6;
  margin:      0;
}

#inside .benefit__icon {
  width:         50px;
  height:        50px;
  border-radius: 13px;
  display:       grid;
  place-items:   center;
  background:    #f3f0fb;
  border:        1px solid rgba(109, 40, 217, .18);
}

#inside .benefit__icon svg {
  width:  24px;
  height: 24px;
  stroke: #6D28D9;
  fill:   none;
}

#inside .benefit__number {
  color:   #6D28D9;
  opacity: .55;
}

@media (max-width: 640px) {
  #inside .benefit--flip {
    height: 250px;
  }
}

@media (prefers-reduced-motion: reduce) {
  #inside .benefit__flip-inner {
    transition: none;
  }
}

/* Members hero copy: two lines — one sentence-group per line, at the
   original body-copy size. Widen the header and force each line to nowrap
   so both render on a single line at desktop; on mobile they wrap normally
   instead of overflowing. */
#page-membership #members .section__header {
  max-width: 1100px;
}

/* Members hero uses the shared hero classes now — match home's sizing exactly
   (this ID-specific block previously forced the old image-logo hero smaller). */
#page-membership #members .section__header .hero__lede {
  font-size:   clamp(1.3rem, 2.6vw, 1.75rem);
  line-height: 1.3;
  color:       #1a1626;
}

#page-membership #members .section__header .hero__subtext {
  font-size:   clamp(1.05rem, 2vw, 1.25rem);
  line-height: 1.65;
  color:       #4a4458;
  max-width:   84ch;
}

/* Match the members hero's kicker height to the home/network heroes. */
#page-membership #members {
  padding-top: clamp(44px, 6vw, 82px);
}

/* Trim the gap between the last body line and the stats row. */
#page-membership #members .hero__stats {
  margin-top: 18px;
}

/* --- Tier cards: white cards --- */
.section--light .tier {
  background:   #fff;
  color:        var(--club-ink);
  border-color: rgba(23, 18, 35, .08);
  box-shadow:   0 24px 60px -40px rgba(23, 18, 35, .35);
}

.section--light .tier:hover {
  transform:    translateY(-6px);
  border-color: rgba(23, 18, 35, .14);
  box-shadow:   0 34px 74px -36px rgba(23, 18, 35, .4);
}

.section--light .tier__name,
.section--light .tier__price {
  color: var(--club-ink);
}

.section--light .tier__features li {
  color: #3d3849;
}

.section--light .tier__section-label {
  color: #71697f;
}

.section--light .tier__section-label--top {
  border-top-color: rgba(23, 18, 35, .1);
}

.section--light .tier__revenue-band {
  background:   #f3f0fb;
  border-color: rgba(109, 40, 217, .2);
  color:        #6D28D9;
}

.section--light .tier__monthly-price {
  color: #6D28D9;
}

.section--light .tier .btn--ghost {
  color: var(--club-ink);
}

/* Featured tier inverts to deep ink — the room everyone looks at */
.section--light .tier--popular {
  background:
    linear-gradient(180deg, rgba(139, 92, 246, .22), transparent 46%),
    var(--club-ink);
  color:        #F5F2FC;
  border-color: rgba(139, 92, 246, .55);
  box-shadow:   0 40px 90px -40px rgba(76, 29, 149, .6);
}

.section--light .tier--popular .tier__name,
.section--light .tier--popular .tier__price {
  color: #F5F2FC;
}

.section--light .tier--popular .tier__features li {
  color: #E6E1F2;
}

.section--light .tier--popular .tier__section-label {
  color: #978FB0;
}

.section--light .tier--popular .tier__section-label--top {
  border-top-color: rgba(255, 255, 255, .14);
}

.section--light .tier--popular .tier__revenue-band {
  background:   rgba(139, 92, 246, .16);
  border-color: rgba(139, 92, 246, .4);
  color:        #C4B5FD;
}

.section--light .tier--popular .tier__monthly-price {
  color: #C4B5FD;
}

/* --- Testimonials: white cards --- */
.section--light .testimonial {
  background:   #fff;
  border-color: rgba(23, 18, 35, .08);
  box-shadow:   0 20px 50px -36px rgba(23, 18, 35, .3);
}

.section--light .testimonial p {
  color:       #2a2534;
  font-size:   1.14rem;
  line-height: 1.5;
}

.section--light .testimonial__author-name {
  color: var(--club-ink);
}

.section--light .testimonial__author-role {
  color: #7a7488;
}

/* --- FAQ: roomier, rounder --- */
.faq__item {
  border-radius: 16px;
}

.faq__item button {
  padding: 24px 26px;
}

/* Pin the action buttons to the right edge of the bar (the .nav grid's third
   column is 1fr, so without this they hug the centered page links) */
.nav__actions {
  justify-self: end;
  gap:          10px;
}

/* Three actions in the bar: slimmer pills so they breathe instead of squeezing */
.nav__actions .btn {
  padding:     11px 18px;
  font-size:   14px;
  white-space: nowrap;
}

/* Between the tablet squeeze and the burger breakpoint, the quietest action
   steps out first so the two core buttons keep their padding */
@media (max-width: 1080px) and (min-width: 901px) {
  .nav__actions .nav__guest-btn {
    display: none;
  }
}

/* Nav CTA: the one conversion button gets the strongest weight in the bar */
.nav__actions .btn--gold {
  box-shadow:
    0 10px 30px -10px var(--glow),
    inset 0 1px 0 rgba(255, 255, 255, .3) !important;
}

/* ============ ADVERTISE — PLACEMENT CALLOUTS ============ */
.placements {
  display:               grid;
  grid-template-columns: repeat(3, 1fr);
  gap:                   18px;
  margin-top:            44px;
}

.placement {
  background:    var(--surface);
  border:        1px solid var(--line);
  border-radius: var(--radius);
  overflow:      hidden;
  transition:
    border-color .25s ease,
    transform    .25s ease;
}

.placement:hover {
  transform:    translateY(-4px);
  border-color: var(--line-strong);
}

.placement__visual {
  aspect-ratio: 16/10;
  display:      grid;
  place-items:  center;
  position:     relative;
  background:
    radial-gradient(120% 120% at 70% 20%, rgba(139, 92, 246, .25), transparent 55%),
    linear-gradient(160deg, #1c1233, #0c0918);
  border-bottom: 1px solid var(--line);
}

.placement__visual svg {
  width:  34px;
  height: 34px;
  stroke: var(--gold);
  fill:   none;
}

.placement__visual span {
  position:       absolute;
  bottom:         12px;
  left:           16px;
  font-size:      10px;
  font-weight:    600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color:          rgba(255, 255, 255, .62);
}

.placement h3 {
  font-size: 1.08rem;
  margin:    18px 20px 8px;
}

.placement p {
  font-size: .9rem;
  margin:    0 20px 22px;
}

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

/* ============ TIER ICONS ============ */
.tier__icon {
  width:         44px;
  height:        44px;
  border-radius: 12px;
  display:       grid;
  place-items:   center;
  margin-bottom: 16px;
  background:    rgba(139, 92, 246, .14);
  border:        1px solid rgba(139, 92, 246, .35);
}

.tier__icon svg {
  width:  22px;
  height: 22px;
  stroke: var(--gold);
  fill:   none;
}

.section--light .tier .tier__icon {
  background:   #f3f0fb;
  border-color: rgba(109, 40, 217, .18);
}

.section--light .tier .tier__icon svg {
  stroke: #6D28D9;
}

.section--light .tier--popular .tier__icon {
  background:   rgba(139, 92, 246, .16);
  border-color: rgba(139, 92, 246, .4);
}

.section--light .tier--popular .tier__icon svg {
  stroke: #C4B5FD;
}

/* ============ FORM SUCCESS / ERROR (js/forms.js) ============ */
.assessment-form__success {
  display: none;
}

.assessment-form__success.is-visible {
  display: block;
}

.assessment-form__success.is-error {
  color: #ff9d9d;
}

/* ============ MOBILE NAV FIX ============ */
/* 05-footer-responsive hides .nav__links (0,1,0) but loses to
   .nav > .nav__links { display:flex } in 02-buttons-nav (0,2,0) */
@media (max-width: 900px) {
  .nav > .nav__links {
    display: none;
  }
}

/* ============ REDUCED MOTION ============ */
@media (prefers-reduced-motion: reduce) {
  .hero--landing::before {
    animation: none;
  }

  .nav__links a::after {
    transition: none;
  }
}
