/* style.css — Disctopia Cinematic Design System */

/* ========================================
   FONT FACES
   ======================================== */
@font-face {
  font-family: 'Avenir';
  src: url('./assets/fonts/avenir-black.ttf') format('truetype');
  font-weight: 900;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: 'Avenir';
  src: url('./assets/fonts/avenir-book.ttf') format('truetype');
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

/* ========================================
   DESIGN TOKENS
   ======================================== */
:root {
  /* Type Scale */
  --text-xs:   clamp(0.75rem,  0.7rem  + 0.25vw, 0.875rem);
  --text-sm:   clamp(0.875rem, 0.8rem  + 0.35vw, 1rem);
  --text-base: clamp(1rem,     0.95rem + 0.25vw, 1.125rem);
  --text-lg:   clamp(1.125rem, 1rem    + 0.75vw, 1.5rem);
  --text-xl:   clamp(1.5rem,   1.2rem  + 1.25vw, 2.25rem);
  --text-2xl:  clamp(2rem,     1.2rem  + 2.5vw,  3.5rem);
  --text-3xl:  clamp(2.5rem,   1rem    + 4vw,    5rem);
  --text-hero: clamp(3rem,     0.5rem  + 7vw,    8rem);

  /* Spacing */
  --space-1:  0.25rem;
  --space-2:  0.5rem;
  --space-3:  0.75rem;
  --space-4:  1rem;
  --space-5:  1.25rem;
  --space-6:  1.5rem;
  --space-8:  2rem;
  --space-10: 2.5rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-20: 5rem;
  --space-24: 6rem;
  --space-32: 8rem;

  /* Cinematic Dark Theme */
  --color-bg:           #000000;
  --color-surface:      #0a0a0a;
  --color-surface-2:    #111111;
  --color-surface-3:    #1a1a1a;
  --color-border:       #1a1a1a;
  --color-border-light: #2a2a2a;
  --color-text:         #ffffff;
  --color-text-muted:   #888888;
  --color-text-faint:   #555555;
  --color-accent:       #A2CF64;
  --color-accent-2:     #1479AC;
  --gradient:           linear-gradient(135deg, #A2CF64, #1479AC);
  --gradient-hover:     linear-gradient(135deg, #8dba50, #0f6898);
  --color-error:        #f14336;
  --color-warning:      #fdc943;

  /* Radius */
  --radius-sm: 4px;
  --radius-md: 8px;
  --radius-lg: 12px;
  --radius-xl: 16px;
  --radius-full: 9999px;

  /* Transitions */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --transition: 180ms cubic-bezier(0.16, 1, 0.3, 1);

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(0,0,0,0.3);
  --shadow-md: 0 4px 12px rgba(0,0,0,0.4);
  --shadow-lg: 0 12px 32px rgba(0,0,0,0.5);

  /* Content widths */
  --content-narrow: 640px;
  --content-default: 960px;
  --content-wide: 1200px;
  --content-max: 1400px;

  /* Fonts — Avenir Black for headings, Avenir Book for body */
  --font-display: 'Avenir', 'Nunito Sans', 'Helvetica Neue', sans-serif;
  --font-body: 'Avenir', 'Inter', 'Helvetica Neue', sans-serif;
  --font-heading-weight: 900;
  --font-body-weight: 400;
}


/* ========================================
   LAYOUT
   ======================================== */
.container {
  width: 100%;
  max-width: var(--content-wide);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

.container--narrow { max-width: var(--content-narrow); }
.container--default { max-width: var(--content-default); }
.container--wide { max-width: var(--content-max); }

.section {
  padding-block: clamp(var(--space-10), 5vw, var(--space-16));
}

.section--tight {
  padding-block: clamp(var(--space-6), 3vw, var(--space-10));
}


/* ========================================
   TYPOGRAPHY
   ======================================== */
.text-hero {
  font-family: var(--font-display);
  font-size: var(--text-hero);
  font-weight: 900;
  line-height: 1.05;
  letter-spacing: -0.02em;
}

.text-3xl {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.015em;
}

.text-2xl {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  line-height: 1.1;
  letter-spacing: -0.01em;
}

.text-xl {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  line-height: 1.2;
}

.text-lg {
  font-size: var(--text-lg);
  font-weight: 600;
  line-height: 1.3;
}

.text-base { font-size: var(--text-base); }
.text-sm { font-size: var(--text-sm); }
.text-xs { font-size: var(--text-xs); }

.text-muted { color: var(--color-text-muted); }
.text-faint { color: var(--color-text-faint); }
.text-gradient {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.uppercase { text-transform: uppercase; letter-spacing: 0.08em; }

.section-label {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}


/* ========================================
   BUTTONS
   ======================================== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  padding: 14px 32px;
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  border-radius: var(--radius-full);
  text-decoration: none;
  white-space: nowrap;
  cursor: pointer;
  border: none;
}

.btn--primary {
  background: var(--gradient);
  color: #fff;
}
.btn--primary:hover {
  background: var(--gradient-hover);
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(162, 207, 100, 0.3);
}

.btn--ghost {
  background: transparent;
  color: #fff;
  border: 1.5px solid rgba(255,255,255,0.25);
}
.btn--ghost:hover {
  border-color: #fff;
  background: rgba(255,255,255,0.05);
}

.btn--white {
  background: #fff;
  color: #000;
}
.btn--white:hover {
  background: #f0f0f0;
  transform: translateY(-1px);
}

.btn--sm {
  padding: 10px 24px;
  font-size: var(--text-xs);
}

.btn--lg {
  padding: 18px 40px;
  font-size: var(--text-base);
}

.btn-group {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-4);
  align-items: center;
}


/* ========================================
   NAVIGATION — Transparent on hero, dark on scroll
   ======================================== */
.nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 200;
  padding: var(--space-5) 0;
  background: transparent;
  opacity: 0;
  transform: translateY(-20px);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease, background 0.3s ease;
}

.nav.nav--visible {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.nav.scrolled {
  padding: var(--space-3) 0;
  border-bottom-color: rgba(255,255,255,0.06);
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
}

.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--content-max);
  margin: 0 auto;
  padding-inline: var(--space-6);
}

.nav__logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
  color: #fff;
}

.nav__logo img {
  height: 24px;
  width: auto;
  border-radius: 4px;
}

.nav__logo-full {
  height: auto;
  max-width: 160px;
  border-radius: 0;
  object-fit: contain;
}

.nav__logo-text {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 800;
  letter-spacing: 0.25em;
  text-transform: uppercase;
  background: linear-gradient(135deg, #A2CF64, #1479AC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.nav__links {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  list-style: none;
}

.nav__link {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
  position: relative;
}
.nav__link:hover,
.nav__link.active {
  color: #fff;
}

.nav__link--dropdown {
  display: flex;
  align-items: center;
  gap: 4px;
  cursor: pointer;
  /* Phase 6 SEO: dropdown triggers became <button> for crawlable-anchors. Reset button defaults so they look identical to the prior <a>. */
  background: none;
  border: 0;
  padding: 0;
  font-family: inherit;
  font-size: inherit;
  font-weight: inherit;
  color: inherit;
}
.nav__link--dropdown:focus-visible {
  outline: 2px solid rgba(255,255,255,0.5);
  outline-offset: 2px;
  border-radius: 2px;
}
.nav__link--dropdown::after {
  content: '';
  width: 0;
  height: 0;
  border-left: 4px solid transparent;
  border-right: 4px solid transparent;
  border-top: 4px solid currentColor;
  transition: transform 0.2s;
}

/* Mega Menu */
li.relative {
  display: inline-flex;
  align-items: center;
  position: relative;
  padding-bottom: 20px;
  margin-bottom: -20px;
}

/* ========================================
   HERO TOP BAR — Logo + Login/Signup on hero
   ======================================== */
.hero-topbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px clamp(24px, 4vw, 48px);
  pointer-events: none;
  transition: opacity 0.4s ease;
}

.hero-topbar > * {
  pointer-events: auto;
}

.hero-topbar.hidden {
  opacity: 0;
  pointer-events: none;
}

.hero-topbar.hidden > * {
  pointer-events: none;
}

.hero-topbar__logo {
  display: flex;
  align-items: center;
  text-decoration: none;
}

.hero-topbar__logo img {
  height: auto;
  max-width: 160px;
}

.hero-topbar__ctas {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hero-topbar__login {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 400;
  color: #fff;
  text-decoration: none;
  padding: 8px 20px;
  border-radius: 999px;
  transition: opacity 0.2s;
}

.hero-topbar__login:hover {
  opacity: 0.8;
}

.hero-topbar__signup {
  font-family: var(--font-display);
  font-size: 14px;
  font-weight: 900;
  color: #fff;
  text-decoration: none;
  padding: 8px 24px;
  border-radius: 999px;
  background: var(--gradient);
  transition: opacity 0.2s;
}

.hero-topbar__signup:hover {
  opacity: 0.9;
}

@media (max-width: 768px) {
  .hero-topbar__logo img {
    max-width: 120px;
  }
  .hero-topbar__signup {
    font-size: 12px;
    padding: 6px 16px;
  }
}

/* Mega Menu — Apple-style full-width blur overlay */
.mega-menu-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  z-index: 150;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease;
  pointer-events: none;
}

.mega-menu-backdrop.active {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}

.mega-menu {
  position: absolute;
  top: calc(100% + 4px);
  left: 50%;
  transform: translateX(-50%) translateY(6px);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: 16px;
  /* Tighter padding — was 32/40/36, content felt floating in white space. */
  padding: 20px 32px 22px;
  min-width: 560px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.18), 0 0 0 1px rgba(0,0,0,0.03);
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
  z-index: 300;
  pointer-events: none;
}

.mega-menu__arrow { display: none; }

/* Show on hover / click */
li.relative:hover > .mega-menu,
li.relative:focus-within > .mega-menu,
li.relative.dropdown-open > .mega-menu,
.mega-menu:hover {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
  pointer-events: auto;
}

li.relative:hover > .nav__link--dropdown::after,
li.relative.dropdown-open > .nav__link--dropdown::after {
  transform: rotate(180deg);
}

/* Section within mega menu */
.mega-menu__section {
  padding: 0;
}

.mega-menu__section-title {
  font-family: var(--font-display);
  font-size: 11px;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #888;
  margin-bottom: 8px; /* was 14px */
}

.mega-menu__divider {
  height: 1px;
  background: rgba(0, 0, 0, 0.06);
  margin: 12px 0; /* was 20px — too much vertical air */
}

/* Multi-column layout — clean text links, no icons */
.mega-menu__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 32px; /* was 8px row gap */
}

.mega-menu__item {
  display: block;
  padding: 4px 0; /* was 6px */
  text-decoration: none;
  transition: color 0.15s ease;
}

.mega-menu__item:hover .mega-menu__item-title {
  color: #000;
}

.mega-menu__icon { display: none; }

.mega-menu__item-title {
  font-family: var(--font-display);
  font-size: 15px;
  font-weight: 900;
  color: #1a1a1a;
  line-height: 1.3; /* was 1.8 — way too loose for nav items */
  transition: color 0.15s ease;
}

.mega-menu__item:hover .mega-menu__item-title {
  color: var(--color-accent);
}

.mega-menu__item-desc {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 400;
  color: #999;
  line-height: 1.35;
  margin-top: 1px;
}

/* First section gets larger links — but tighter than before */
.mega-menu__section:first-child .mega-menu__item-title {
  font-size: clamp(17px, 1.6vw, 22px); /* was 20-28px — smaller for tighter feel */
  font-weight: 900;
  line-height: 1.25; /* was 1.4 */
}

.mega-menu__section:first-child .mega-menu__grid {
  flex-direction: column;
}

/* Mobile: hide mega menu, use mobile-menu instead */
@media (max-width: 1024px) {
  .mega-menu { display: none; }
  .mega-menu-backdrop { display: none; }
}

.nav__ctas {
  display: flex;
  align-items: center;
  gap: var(--space-3);
}

.nav__login {
  font-size: var(--text-sm);
  font-weight: 500;
  color: rgba(255,255,255,0.7);
  text-decoration: none;
}
.nav__login:hover { color: #fff; }

/* Mobile menu */
.nav__hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  padding: 8px;
  cursor: pointer;
}
.nav__hamburger span {
  width: 22px;
  height: 2px;
  background: #fff;
  transition: transform 0.3s, opacity 0.3s;
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: #000;
  z-index: 99;
  padding: 100px var(--space-6) var(--space-8);
  overflow-y: auto;
  flex-direction: column;
  gap: 0;
}

.mobile-menu.active { display: flex; }

.mobile-menu > a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 700;
  color: #fff;
  text-decoration: none;
  padding: var(--space-3) 0;
  border-bottom: 1px solid var(--color-border);
}

.mobile-menu__group-title {
  font-size: var(--text-xs);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--color-accent);
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

.mobile-menu__sub a {
  display: block;
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 500;
  color: var(--color-text-muted);
  text-decoration: none;
  padding: var(--space-2) 0;
  border-bottom: 1px solid var(--color-border);
}

@media (max-width: 1024px) {
  .nav__links, .nav__ctas { display: none; }
  .nav__hamburger { display: flex; }
}


/* ========================================
   HERO CAROUSEL — Framer-style cinematic panels
   Sticky hero: content scrolls up over it.
   ======================================== */
/* Scroll driver — its tall height creates the vertical scroll budget
   for the carousel animation. Scroll budget = trigger height − 100vh.
   At 150vh, the carousel traverses in ~half a viewport of scroll
   (≈540px on 1080p). One firm trackpad/mouse-wheel swipe covers it. */
.hero-scroll-trigger {
  position: relative;
  height: 150vh;
}

.hero-carousel {
  position: sticky;
  top: 0;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  background: #000;
  z-index: 1;
  will-change: filter;
  transition: filter 0.1s linear;
}

/* Track — flex row of 6 panels totaling 2460px (6 × 410). JS applies
   transform: translateX(...) per scroll frame to slide the row left as
   the user progresses through the .hero-scroll-trigger parent. The
   z-index lifts the track above the backdrop CTA layer below. */
.hero-carousel__track {
  display: flex;
  height: 100%;
  width: 2460px;
  position: relative;
  z-index: 2;
  will-change: transform;
}

/* Backdrop CTA — full-viewport layer behind the track (z-index 0).
   At scroll=0 the track of panels covers the entire viewport, hiding
   this layer. As progress→1 the track slides left and exposes the
   backdrop. The CTA buttons get pointer-events:auto so they're
   clickable once the track is out of the way. */
.hero-carousel__backdrop {
  position: absolute;
  inset: 0;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}

.hero-carousel__backdrop-bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.hero-carousel__backdrop-bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
}

.hero-carousel__backdrop-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 820px;
  padding: 0 24px;
  pointer-events: auto;
  color: #fff;
}

.hero-carousel__backdrop-content .section-label {
  margin-bottom: var(--space-3);
}

.hero-carousel__backdrop-content .cinematic-banner__title {
  font-size: clamp(3rem, 6vw, 5rem);
  line-height: 1.05;
  margin-bottom: var(--space-4);
  color: #fff;
}

.hero-carousel__backdrop-content .cinematic-banner__text {
  font-size: clamp(1rem, 1.4vw, 1.25rem);
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.85);
  margin-bottom: var(--space-6);
}

.hero-carousel__backdrop-content .btn-group {
  pointer-events: auto;
}

/* Each panel — fixed 410px slot (matches Framer hero-carousel template).
   The image inside is positioned absolutely with its own width + left
   offset (per --img-w / --img-x inline vars on the <img>). 6 panels ×
   410 = 2460px total track width. JS animates the track translation
   horizontally as the user scrolls vertically through the
   .hero-scroll-trigger parent. */
.hero-carousel__panel {
  position: relative;
  flex: 0 0 410px;
  height: 100%;
  overflow: hidden;
  cursor: pointer;
}



/* Per-panel image — Framer hero-carousel exact pattern.
   Each <img> sets --img-w (px width) and --img-x (px left offset)
   inline. The left offsets follow Framer's pattern of
   `-panel_index × panel_width`, so all images stack at viewport x=0
   at scroll=0 (each panel's slot reveals a different slice of its
   image via overflow:hidden).

   Per-panel reference values (Framer's):
     panel 0: --img-w: 725px;  --img-x: -1px;
     panel 1: --img-w: 1441px; --img-x: -410px;
     panel 2: --img-w: 1727px; --img-x: -820px;
     panel 3: --img-w: 1920px; --img-x: -1230px;
     panel 4: --img-w: 1920px; --img-x: -1640px;
     panel 5: --img-w: 1920px; --img-x: -2050px;

   On scroll, JS applies the SAME translateX(+X) to every image
   while the track translates translateX(-X). Net: images stay
   fixed in viewport while the track of slots slides left over them,
   revealing different slices. By progress 1 the track is past the
   left edge of the viewport (carousel empty, next section visible). */
.hero-carousel__panel-img {
  position: absolute;
  top: 0;
  /* Override base.css `img { max-width: 100%; height: auto }` — we
     need pixel widths wider than the panel slot for the scroll-driven
     reveal to work via overflow clipping. */
  max-width: none;
  max-height: none;
  height: 100%;
  width: var(--img-w, 1920px);
  left: var(--img-x, 0);
  object-fit: cover;
  object-position: center;
  pointer-events: none;
  user-select: none;
  will-change: transform;
}

/* Subtle darkening on hover — dims the whole panel so text is readable */
.hero-carousel__panel::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, rgba(0,0,0,0.25) 50%, rgba(0,0,0,0.15) 100%);
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-carousel__panel:hover::after {
  opacity: 1;
}

/* Hover scale — JS owns the transform on .hero-carousel__panel-img for
   scroll-driven parallax, so the hover effect lives on the slot's
   ::after gradient (line 743) and label fade (below). The image itself
   stays in its scroll-driven position to avoid jitter. */

/* Vertical rotated label — hidden by default, shown on hover.
   Sizing matches the Framer hero-carousel template: 36px main
   title (muted gray) + 18px artist line (white) stacked.
   Both font-weight 600, no uppercase, no extra letter-spacing. */
.hero-carousel__panel-label {
  position: absolute;
  bottom: 40px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 3; /* above .panel::before dim overlay */
  font-family: var(--font-body);
  font-size: 36px;
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(146, 152, 156, 0.95);
  white-space: nowrap;
  /* sideways-lr = text reads bottom→top, head tilts RIGHT (book-spine
     convention, matches Framer's hero-carousel template). Earlier
     `vertical-rl` made the text read top→bottom which read backwards. */
  writing-mode: sideways-lr;
  opacity: 0;
  transition: opacity 0.4s ease;
}

.hero-carousel__panel:hover .hero-carousel__panel-label {
  opacity: 1;
}

.hero-carousel__panel-label small {
  display: block;
  font-size: 18px;
  font-weight: 600;
  letter-spacing: 0;
  margin-bottom: 8px;
  color: #fff;
  opacity: 1;
}

/* ========================================
   HERO CAROUSEL — Expanded (overlay) state
   ======================================== */
/* When expanded, hero must be above everything */
.hero-carousel.expanded {
  z-index: 9999;
  position: fixed;
  inset: 0;
  height: 100vh;
}

.hero-carousel.expanded .hero-carousel__panel {
  flex: 0 0 0;
  overflow: hidden;
  cursor: default;
  pointer-events: none;
}

.hero-carousel.expanded .hero-carousel__panel.active {
  flex: 1 0 100%;
  pointer-events: auto;
}

.hero-carousel.expanded .hero-carousel__panel-label {
  opacity: 0;
}

/* Dark overlay on active expanded panel */
.hero-carousel.expanded .hero-carousel__panel.active::before {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,0.65);
  z-index: 3;
  pointer-events: none;
}

/* When expanded, override the per-panel --img-w / --img-x positioning
   so the active panel's image fills the full viewport via object-fit
   cover. JS also resets transform via collapsePanel save/restore. */
.hero-carousel.expanded .hero-carousel__panel.active .hero-carousel__panel-img {
  width: 100% !important;
  left: 0 !important;
  transform: none !important;
  object-fit: cover;
  object-position: center;
}


/* Overlay content container */
.hero-carousel__overlay {
  position: absolute;
  inset: 0;
  z-index: 10;
  display: none;
  opacity: 0;
  transition: opacity 0.4s 0.3s;
  padding: clamp(80px, 12vh, 140px) clamp(24px, 5vw, 80px) clamp(40px, 6vh, 80px);
}

.hero-carousel.expanded .hero-carousel__panel.active .hero-carousel__overlay {
  display: flex;
  align-items: center;
  gap: clamp(32px, 5vw, 80px);
  z-index: 250;
}

.hero-carousel.expanded.overlay-visible .hero-carousel__panel.active .hero-carousel__overlay {
  opacity: 1;
}

/* Left side: credits */
.hero-carousel__overlay-credits {
  flex: 1;
  max-width: 500px;
}

.hero-carousel__overlay-cover {
  display: block;
  width: clamp(96px, 8vw, 132px);
  height: clamp(96px, 8vw, 132px);
  object-fit: cover;
  border-radius: 14px;
  margin-bottom: var(--space-4);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.45);
}
.hero-carousel__overlay-cover[hidden] {
  display: none;
}

.hero-carousel__overlay-tag {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-4);
}

.hero-carousel__overlay-title {
  font-family: var(--font-display);
  font-size: clamp(2rem, 4vw, 3.5rem);
  font-weight: 900;
  line-height: 1.1;
  color: #fff;
  margin-bottom: var(--space-4);
}

.hero-carousel__overlay-desc {
  font-size: var(--text-base);
  color: rgba(255,255,255,0.7);
  line-height: 1.6;
  margin-bottom: var(--space-8);
  max-width: 420px;
}

.hero-carousel__overlay-meta {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
}

.hero-carousel__overlay-meta-row {
  display: flex;
  gap: var(--space-3);
  font-size: 12px;
  letter-spacing: 0.08em;
}

.hero-carousel__overlay-meta-label {
  text-transform: uppercase;
  color: rgba(255,255,255,0.4);
  font-weight: 500;
  min-width: 90px;
}

.hero-carousel__overlay-meta-value {
  color: rgba(255,255,255,0.8);
  font-weight: 600;
}

/* Right side: video placeholder / embed iframe.
   Sized to dominate the right half of the modal so embedded podcast
   videos read inline with the credits column instead of as a small
   thumbnail. The iframe child stretches to fill via .hero-carousel__overlay-iframe below. */
.hero-carousel__overlay-video {
  flex: 1.3;
  max-width: clamp(560px, 60vw, 820px);
  aspect-ratio: 16/9;
  background: rgba(255,255,255,0.06);
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.3s;
  overflow: hidden;
}
.hero-carousel__overlay-video:has(> .hero-carousel__overlay-iframe) {
  background: transparent;
  border: 0;
  cursor: default;
}

.hero-carousel__overlay-video:hover {
  background: rgba(255,255,255,0.1);
}

.hero-carousel__overlay-video-play {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.3);
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.3s, transform 0.3s;
}

.hero-carousel__overlay-video:hover .hero-carousel__overlay-video-play {
  background: rgba(255,255,255,0.25);
  transform: scale(1.08);
}

.hero-carousel__overlay-video-play svg {
  width: 28px;
  height: 28px;
  fill: #fff;
  margin-left: 3px;
}

/* Close button */
.hero-carousel__close {
  position: absolute;
  top: clamp(24px, 4vh, 48px);
  right: clamp(24px, 4vw, 60px);
  z-index: 20;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 28px;
  transition: background 0.3s, transform 0.3s;
  -webkit-tap-highlight-color: transparent;
}

.hero-carousel__close:hover {
  background: rgba(255,255,255,0.18);
  transform: scale(1.06);
}

.hero-carousel.expanded .hero-carousel__close {
  display: flex;
  z-index: 10001;
}

/* Hide nav when hero is expanded so close button is clickable */
.hero-carousel.expanded ~ .nav,
body:has(.hero-carousel.expanded) .nav {
  pointer-events: none;
  opacity: 0;
}

/* Mobile carousel — vertical stack like Framer mobile.
   The scroll-trigger wrapper collapses to natural height so the page
   scroll isn't bloated by the desktop driver. */
@media (max-width: 768px) {
  .hero-scroll-trigger {
    height: auto !important;
  }

  /* Backdrop CTA on mobile — render as a static section after the
     carousel stack instead of hidden behind the track. */
  .hero-carousel__backdrop {
    position: relative;
    inset: auto;
    height: auto;
    min-height: 60vh;
    padding: 64px 24px;
  }
  .hero-carousel__backdrop-bg {
    z-index: 0;
  }

  .hero-carousel {
    height: auto !important;
    min-height: 100vh;
    position: relative !important;
  }

  .hero-carousel__track {
    flex-direction: column;
    width: 100% !important;
    transform: none !important;
    cursor: default;
  }

  .hero-carousel__panel {
    flex: none;
    width: 100%;
    height: 55vw;
    min-height: 200px;
  }

  /* On mobile, images stack and fill their panels normally — override
     the desktop --img-w / --img-x absolute positioning and the
     scroll-driven transforms so each panel just shows its image. */
  .hero-carousel__panel-img {
    width: 100% !important;
    left: 0 !important;
    transform: none !important;
    object-fit: cover;
    object-position: center;
  }

  /* Always show labels on mobile with horizontal text */
  .hero-carousel__panel-label {
    writing-mode: horizontal-tb;
    text-orientation: initial;
    bottom: 16px;
    left: auto;
    right: 16px;
    transform: none;
    text-align: right;
    opacity: 1 !important;
    font-size: 12px;
  }

  .hero-carousel__panel::after {
    opacity: 1 !important;
    background: linear-gradient(to top, rgba(0,0,0,0.5) 0%, transparent 50%);
  }

  /* Expanded state on mobile — full-screen scrollable sheet */
  .hero-carousel.expanded {
    position: fixed !important;
    inset: 0 !important;
    height: 100vh !important;
    min-height: 100vh !important;
    z-index: 9999 !important;
    background: #000;
    overflow: hidden;
  }

  .hero-carousel.expanded .hero-carousel__track {
    flex-direction: column;
    height: 100%;
    width: 100% !important;
    transform: none !important;
  }

  /* Hide non-active panels */
  .hero-carousel.expanded .hero-carousel__panel:not(.active) {
    display: none;
  }

  .hero-carousel.expanded .hero-carousel__panel.active {
    height: 100%;
    width: 100%;
  }

  /* Overlay becomes a full-screen vertical scrollable sheet */
  .hero-carousel.expanded .hero-carousel__panel.active .hero-carousel__overlay {
    position: fixed;
    inset: 0;
    flex-direction: column;
    align-items: flex-start;
    padding: 80px 24px 40px;
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
    gap: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
  }

  /* Hide hero topbar when expanded */
  .hero-carousel.expanded ~ .hero-topbar,
  body:has(.hero-carousel.expanded) .hero-topbar {
    opacity: 0;
    pointer-events: none;
  }

  /* Title at top */
  .hero-carousel.expanded .hero-carousel__overlay-content {
    flex: none;
    margin-bottom: 24px;
  }

  .hero-carousel.expanded .hero-carousel__overlay-title {
    font-size: clamp(1.3rem, 5vw, 2rem);
  }

  .hero-carousel.expanded .hero-carousel__overlay-desc {
    font-size: 14px;
  }

  /* Video below title */
  .hero-carousel.expanded .hero-carousel__overlay-video {
    max-width: 100%;
    width: 100%;
    flex: none;
    margin-bottom: 28px;
  }

  /* Credits stacked vertically below video */
  .hero-carousel.expanded .hero-carousel__overlay-credits {
    max-width: 100%;
    width: 100%;
    flex: none;
  }

  .hero-carousel.expanded .hero-carousel__overlay-meta {
    margin-bottom: 0;
  }

  .hero-carousel.expanded .hero-carousel__overlay-meta-row {
    padding: 12px 0;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    flex-direction: column;
    gap: 2px;
  }

  .hero-carousel.expanded .hero-carousel__overlay-meta-label {
    min-width: 0;
  }

  .hero-carousel.expanded .btn {
    width: 100%;
    text-align: center;
  }

  /* Close button */
  .hero-carousel.expanded .hero-carousel__close {
    top: 16px;
    right: 16px;
    width: 44px;
    height: 44px;
    font-size: 22px;
  }

  /* CTA button */
  .hero-carousel.expanded .btn {
    margin-top: 28px;
    margin-bottom: 32px;
  }
}

/* Touch swipe indicator */
.hero-carousel__swipe-hint {
  display: none;
  position: absolute;
  bottom: 16px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 5;
  font-size: 11px;
  color: rgba(255,255,255,0.4);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

@media (max-width: 768px) {
  .hero-carousel__swipe-hint {
    display: none;
  }
}


/* ========================================
   PAGE HERO (Interior pages)
   ======================================== */
.page-hero {
  position: relative;
  min-height: 60vh;
  display: flex;
  align-items: safe center;
  justify-content: center;
  text-align: center;
  padding: 140px var(--space-6) var(--space-16);
  overflow: hidden;
}

.page-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}
.page-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Heavier overlay at the vertical center where the centered title sits,
     so bright background photos can't wash out white text. */
  background: linear-gradient(to bottom,
    rgba(0,0,0,0.55) 0%,
    rgba(0,0,0,0.88) 50%,
    rgba(0,0,0,0.92) 100%);
}

.page-hero__content {
  position: relative;
  z-index: 1;
  max-width: 800px;
  text-align: center;
}

.page-hero__content .btn-group {
  justify-content: center;
}

.page-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-6);
  color: #ffffff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.65);
}

.page-hero__subtitle {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.85);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-inline: auto;
  text-shadow: 0 1px 12px rgba(0,0,0,0.55);
}


/* ========================================
   CARDS & GRID
   ======================================== */
.card-grid {
  display: grid;
  gap: var(--space-6);
}
.card-grid--2 { grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); }
.card-grid--3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.card-grid--4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }

.card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.card__icon {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: var(--space-4);
  font-size: 16px;
  font-weight: 900;
  font-family: var(--font-display);
  color: var(--color-accent);
}

.card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-3);
}

.card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}

/* Feature card with image */
.feature-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.feature-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-2px);
}
.feature-card__img {
  width: 100%;
  height: 200px;
  object-fit: cover;
}
.feature-card__body {
  padding: var(--space-6);
}
.feature-card__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.feature-card__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-4);
}


/* ========================================
   SPLIT SECTION (Image + Text)
   ======================================== */
.split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-12);
  align-items: center;
}
.split--reverse { direction: rtl; }
.split--reverse > * { direction: ltr; }

.split__image {
  /* Rounded corners — Patrick's call (2026-05-04 reversal). */
  border-radius: 15px;
  overflow: hidden;
  aspect-ratio: 4/3;
  background: var(--color-surface);
}
.split__image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Ads-page step screenshots: render the FULL platform UI screenshot inside
   the column at natural aspect, with no card chrome behind it. The shared
   .split__image container's 4/3 aspect-ratio + cover-fit was clipping the
   left ~17% of these 16:9 source PNGs (chopping the DISCTOPIA lockup down
   to "CTOPIA"). The .split__image surface background was also leaving a
   visible card edge around the natural-aspect image. Drop both. */
.split__image--ad {
  aspect-ratio: auto;
  background: transparent;
  overflow: visible;
  border-radius: 0;
}
.split__image--ad > img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
  margin: 0 auto;
  border-radius: 15px;
}

@media (max-width: 768px) {
  .split, .split--reverse {
    grid-template-columns: 1fr;
    gap: var(--space-8);
    direction: ltr;
  }
}


/* ========================================
   PRICING TABLE
   ======================================== */
.pricing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: var(--space-6);
}

.pricing-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: flex;
  flex-direction: column;
  position: relative;
  transition: border-color 0.3s, transform 0.3s;
}
.pricing-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-4px);
}

.pricing-card--featured {
  border-color: transparent;
  background: linear-gradient(var(--color-surface), var(--color-surface)) padding-box,
              var(--gradient) border-box;
  border: 2px solid transparent;
}
.pricing-card--featured::before {
  content: 'Popular';
  position: absolute;
  top: -12px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--gradient);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  padding: 4px 16px;
  border-radius: var(--radius-full);
}

.pricing-card__name {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.pricing-card__price {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
}
.pricing-card__price span {
  font-size: var(--text-sm);
  font-weight: 400;
  color: var(--color-text-muted);
}

.pricing-card__desc {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
  padding-bottom: var(--space-6);
  border-bottom: 1px solid var(--color-border);
}

.pricing-card__features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  margin-bottom: var(--space-8);
  flex-grow: 1;
}
.pricing-card__features li {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  padding-left: 24px;
  position: relative;
}
.pricing-card__features li::before {
  content: '✓';
  position: absolute;
  left: 0;
  color: var(--color-accent);
  font-weight: 700;
}

/* Lifetime Access — full-width sold-out card, sits below the 4-card grid */
.pricing-lifetime {
  margin-top: var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: var(--space-8);
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 2fr auto;
  gap: var(--space-8);
  align-items: center;
}
.pricing-lifetime__head {
  display: flex;
  flex-direction: column;
}
.pricing-lifetime__head .pricing-card__desc {
  margin: var(--space-3) 0 0;
  padding: 0;
  border-bottom: none;
}
.pricing-lifetime__price-note {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.pricing-lifetime__features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  flex-direction: row;
  gap: var(--space-3) var(--space-6);
  margin-bottom: 0;
  flex-grow: 0;
}
.pricing-lifetime__soldout {
  display: inline-block;
  padding: 14px 32px;
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--color-border);
  color: var(--color-text-muted);
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  font-size: var(--text-sm);
  cursor: not-allowed;
  white-space: nowrap;
}
@media (max-width: 768px) {
  .pricing-lifetime {
    grid-template-columns: 1fr;
    gap: var(--space-6);
  }
}


/* ========================================
   TESTIMONIALS
   ======================================== */
.testimonial-carousel {
  position: relative;
  overflow: hidden;
}
.testimonial-track {
  display: flex;
  gap: var(--space-6);
  transition: transform 0.5s var(--ease);
}
.testimonial-card {
  flex: 0 0 calc(33.333% - var(--space-4));
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}
.testimonial-card__stars {
  color: var(--color-warning);
  margin-bottom: var(--space-4);
  font-size: 18px;
}
.testimonial-card__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  font-style: italic;
  margin-bottom: var(--space-4);
  line-height: 1.6;
}
.testimonial-card__author {
  font-size: var(--text-sm);
  font-weight: 600;
  color: #fff;
}

@media (max-width: 768px) {
  .testimonial-card {
    flex: 0 0 calc(100% - var(--space-4));
  }
}


/* ========================================
   FAQ ACCORDION
   ======================================== */
.faq-item {
  border-bottom: 1px solid var(--color-border);
}
.faq-item__question {
  width: 100%;
  text-align: left;
  padding: var(--space-5) 0;
  font-size: var(--text-base);
  font-weight: 600;
  color: #fff;
  display: flex;
  justify-content: space-between;
  align-items: center;
  cursor: pointer;
  background: none;
  border: none;
}
.faq-item__question::after {
  content: '+';
  font-size: 24px;
  color: var(--color-text-muted);
  transition: transform 0.3s;
}
.faq-item.active .faq-item__question::after {
  transform: rotate(45deg);
}
.faq-item__answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.4s var(--ease), padding 0.4s;
}
.faq-item.active .faq-item__answer {
  max-height: 500px;
  padding-bottom: var(--space-5);
}
.faq-item__answer p {
  color: var(--color-text-muted);
  font-size: var(--text-sm);
  line-height: 1.7;
}


/* ========================================
   CONTACT FORM
   ======================================== */
.form-group {
  margin-bottom: var(--space-5);
}
.form-group label {
  display: block;
  font-size: var(--text-sm);
  font-weight: 600;
  margin-bottom: var(--space-2);
}
.form-group input,
.form-group select,
.form-group textarea {
  width: 100%;
  padding: 14px 16px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  color: #fff;
  font-size: var(--text-base);
}
.form-group input:focus,
.form-group select:focus,
.form-group textarea:focus {
  border-color: var(--color-accent);
  outline: none;
}
.form-group textarea {
  min-height: 120px;
  resize: vertical;
}


/* ========================================
   FOOTER
   ======================================== */
.footer {
  background: var(--color-surface);
  border-top: 1px solid var(--color-border);
  padding: var(--space-10) 0 var(--space-6);
}

.footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(5, 1fr);
  gap: var(--space-8);
  margin-bottom: var(--space-12);
}

.footer__brand {
  display: flex;
  flex-direction: column;
  gap: var(--space-4);
}
.footer__brand-logo {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  text-decoration: none;
}
.footer__brand-logo img { height: 28px; }
.footer__brand-text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  max-width: 250px;
  line-height: 1.6;
}

.footer__col-title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  color: #fff;
  margin-bottom: var(--space-3);
}

.footer__links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: var(--space-1);
}
.footer__links a {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  text-decoration: none;
}
.footer__links a:hover { color: #fff; }

.footer__social {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.footer__social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--color-text-muted);
  text-decoration: none;
  font-size: 16px;
}
.footer__social a:hover {
  border-color: var(--color-accent);
  color: var(--color-accent);
}

.footer__bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: var(--space-6);
  border-top: 1px solid var(--color-border);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.footer__bottom a {
  color: var(--color-text-faint);
  text-decoration: none;
}
.footer__bottom a:hover { color: var(--color-text-muted); }

.footer__app-badges {
  display: flex;
  gap: var(--space-3);
  margin-top: var(--space-4);
}
.footer__app-badges img {
  height: 36px;
  border-radius: var(--radius-md);
}

@media (max-width: 768px) {
  .footer__grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer__brand {
    grid-column: 1 / -1;
  }
  .footer__bottom {
    flex-direction: column;
    gap: var(--space-3);
    text-align: center;
  }
}


/* ========================================
   STATS / NUMBERS
   ======================================== */
.stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: var(--space-8);
  text-align: center;
}
.stat__number {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.stat__label {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-top: var(--space-2);
}


/* ========================================
   CTA BANNER
   ======================================== */
.cta-banner {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-10), 5vw, var(--space-16));
  text-align: center;
}
.cta-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 800;
  margin-bottom: var(--space-4);
}
.cta-banner__text {
  font-size: var(--text-base);
  color: var(--color-text-muted);
  margin-bottom: var(--space-8);
  max-width: 600px;
  margin-inline: auto;
}


/* ========================================
   FEATURE LIST
   ======================================== */
.feature-list {
  display: grid;
  gap: var(--space-6);
}
.feature-list__item {
  display: flex;
  gap: var(--space-5);
  align-items: flex-start;
}
.feature-list__icon {
  display: none;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: var(--radius-md);
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: var(--color-accent);
}
.feature-list__content h4 {
  font-family: var(--font-display);
  font-weight: 700;
  margin-bottom: var(--space-1);
}
.feature-list__content p {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
}


/* ========================================
   INSIGHTS HERO
   ======================================== */
.insights-hero {
  padding: calc(var(--space-32) + 60px) 0 var(--space-12);
  text-align: center;
  background: var(--color-bg);
}
.insights-hero__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.insights-hero__subtitle {
  font-size: var(--text-lg);
  color: var(--color-text-muted);
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Insights Search */
.insights-search-wrap {
  position: relative;
  max-width: 420px;
  margin: 0 auto var(--space-6);
}
.insights-search {
  width: 100%;
  padding: 12px 16px 12px 44px;
  border: 1px solid rgba(255,255,255,0.12);
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  color: var(--color-text);
  font-family: var(--font-body);
  font-size: var(--text-base);
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.insights-search::placeholder { color: var(--color-text-muted); opacity: 0.6; }
.insights-search:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px rgba(0,210,200,0.15);
}
.insights-search__icon {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--color-text-muted);
  pointer-events: none;
}

/* Insights Filter Tabs */
.insights-filters {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-3);
  justify-content: center;
}

/* Insights Loading Spinner */
.insights-loader {
  display: flex;
  justify-content: center;
  align-items: center;
  padding: var(--space-16) 0;
}
.insights-loader.hidden { display: none; }
.insights-spinner {
  width: 40px;
  height: 40px;
  border: 3px solid rgba(255,255,255,0.1);
  border-top-color: var(--color-accent);
  border-radius: 50%;
  animation: insightsSpin 0.7s linear infinite;
}
@keyframes insightsSpin {
  to { transform: rotate(360deg); }
}

/* Inline spinner for buttons during async actions (wizard submit, etc.) */
.btn-spinner {
  display: inline-block;
  width: 14px;
  height: 14px;
  margin-right: 8px;
  vertical-align: -2px;
  border: 2px solid rgba(255,255,255,0.35);
  border-top-color: #fff;
  border-radius: 50%;
  animation: insightsSpin 0.7s linear infinite;
}

/* ========================================
   BLOG TAG BADGES
   ======================================== */
.blog-tag {
  display: inline-block;
  font-size: 0.7rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 3px 10px;
  border-radius: 100px;
  background: rgba(255,255,255,0.08);
  color: var(--color-text-muted);
}
.blog-tag--creators { background: rgba(0,200,150,0.15); color: #00c896; }
.blog-tag--podcasting { background: rgba(100,140,255,0.15); color: #648cff; }
.blog-tag--music { background: rgba(200,100,255,0.15); color: #c864ff; }
.blog-tag--film { background: rgba(255,170,60,0.15); color: #ffaa3c; }
.blog-tag--enterprise { background: rgba(60,180,255,0.15); color: #3cb4ff; }
.blog-tag--product { background: rgba(255,100,100,0.15); color: #ff6464; }
.blog-tag--podcasts { background: rgba(100,140,255,0.15); color: #648cff; }
.blog-tag--creator-economy { background: rgba(0,200,150,0.15); color: #00c896; }

/* ========================================
   FEATURED ARTICLE (large card)
   ======================================== */
.featured-article {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.featured-article:hover {
  border-color: var(--color-border-light);
  transform: translateY(-4px);
  box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}
.featured-article__img {
  position: relative;
  overflow: hidden;
  min-height: 320px;
}
.featured-article__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.6s ease;
}
.featured-article:hover .featured-article__img img {
  transform: scale(1.03);
}
.featured-article__body {
  padding: var(--space-10);
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.featured-article__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-4);
}
.featured-article__read {
  color: var(--color-text-faint);
}
.featured-article__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  line-height: 1.2;
  margin-bottom: var(--space-4);
  letter-spacing: -0.01em;
}
.featured-article__excerpt {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.7;
  margin-bottom: var(--space-6);
}
.featured-article__link {
  font-size: var(--text-sm);
  font-weight: 700;
  background: var(--gradient-primary);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

@media (max-width: 768px) {
  .featured-article {
    grid-template-columns: 1fr;
  }
  .featured-article__img {
    min-height: 220px;
  }
  .featured-article__body {
    padding: var(--space-6);
  }
}

/* ========================================
   INSIGHTS / BLOG GRID
   ======================================== */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}
@media (max-width: 1024px) {
  .blog-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .blog-grid {
    grid-template-columns: 1fr;
  }
}

.blog-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: border-color 0.3s, transform 0.3s, box-shadow 0.3s;
}
.blog-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-4px);
  box-shadow: 0 12px 40px rgba(0,0,0,0.3);
}
.blog-card__img {
  width: 100%;
  height: 200px;
  background: var(--color-surface-2);
  overflow: hidden;
}
.blog-card__img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.blog-card:hover .blog-card__img img {
  transform: scale(1.05);
}
.blog-card__body {
  padding: var(--space-5);
}
.blog-card__meta {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-bottom: var(--space-3);
}
.blog-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: var(--space-2);
}
.blog-card__excerpt {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  line-height: 1.6;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ========================================
   ARTICLE DETAIL VIEW
   ======================================== */
.article-view {
  padding-top: var(--space-24);
  padding-bottom: var(--space-16);
}
.article-view__back {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  font-size: var(--text-sm);
  font-weight: 700;
  color: var(--color-text-muted);
  text-decoration: none;
  margin-bottom: var(--space-8);
  transition: color 0.2s;
  cursor: pointer;
}
.article-view__back:hover {
  color: var(--color-text);
}
.article-view__header {
  max-width: 650px;
  margin: 0 auto var(--space-8);
}
.article-view__meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: var(--space-3);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
  margin-bottom: var(--space-5);
}
.article-view__title {
  font-family: var(--font-display);
  font-size: var(--text-2xl);
  font-weight: 900;
  line-height: 1.15;
  letter-spacing: -0.02em;
  margin-bottom: var(--space-4);
}
.article-view__hero-img {
  width: 100%;
  max-width: 600px;
  margin: 0 auto var(--space-10);
  border-radius: var(--radius-lg);
  overflow: hidden;
}
.article-view__hero-img img {
  width: 100%;
  height: auto;
  display: block;
  aspect-ratio: 16/9;
  object-fit: cover;
}

/* Article body — prose typography */
.article-view__body {
  max-width: 650px;
  margin: 0 auto;
  font-size: var(--text-base);
  line-height: 1.8;
  color: var(--color-text-muted);
}
.article-view__body p {
  margin-bottom: 1.5em;
}
.article-view__body h2 {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  color: var(--color-text);
  margin-top: 2.5em;
  margin-bottom: 0.8em;
  line-height: 1.25;
}
.article-view__body h3 {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  color: var(--color-text);
  margin-top: 2em;
  margin-bottom: 0.6em;
  line-height: 1.3;
}
.article-view__body blockquote {
  border-left: 3px solid;
  border-image: var(--gradient-primary) 1;
  margin: 2em 0;
  padding: var(--space-4) var(--space-6);
  font-style: italic;
  color: var(--color-text);
  background: rgba(255,255,255,0.03);
  border-radius: 0 var(--radius-md) var(--radius-md) 0;
}
.article-view__body ul,
.article-view__body ol {
  margin: 1.5em 0;
  padding-left: 1.5em;
}
.article-view__body li {
  margin-bottom: 0.5em;
}
.article-view__body strong {
  color: var(--color-text);
  font-weight: 700;
}
.article-view__body em {
  color: var(--color-text-muted);
}
.article-view__body a {
  color: var(--color-accent);
  text-decoration: underline;
  text-underline-offset: 0.15em;
  transition: color 0.15s ease;
}
.article-view__body a:hover {
  color: var(--color-accent-2);
}
/* Reset any inline-styled descendants (e.g. legacy WordPress <span>
   wrappers in article body HTML) so they don't override the link color. */
.article-view__body a *,
.article-view__body a > * {
  color: inherit;
  background: none;
  -webkit-text-fill-color: inherit;
}

/* Share bar (top + bottom of article) */
.article-share-bar {
  max-width: 650px;
  margin: var(--space-6) auto;
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-4) 0;
  border-top: 1px solid var(--color-border);
  border-bottom: 1px solid var(--color-border);
}
.article-engagement {
  display: flex;
  align-items: center;
  gap: var(--space-4);
  margin-left: auto;
}
.engagement-item {
  display: inline-flex;
  align-items: center;
  gap: var(--space-1);
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.engagement-item svg {
  opacity: 0.6;
}

/* Article views in meta */
.article-view__views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.article-view__views svg {
  opacity: 0.6;
}

/* Featured article views */
.featured-article__views {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.featured-article__views svg {
  opacity: 0.6;
}
.share-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--color-border);
  background: var(--color-surface);
  color: var(--color-text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
  text-decoration: none;
}
.share-btn:hover {
  border-color: var(--color-border-light);
  color: var(--color-text);
  background: var(--color-surface-2);
}
.share-btn svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* Article CTA Banner */
.article-cta-banner {
  max-width: 650px;
  margin: var(--space-12) auto;
}
.article-cta-banner__inner {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-10) var(--space-8);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.article-cta-banner__inner::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: var(--gradient-primary);
}
.article-cta-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 900;
  margin-bottom: var(--space-3);
  color: #fff;
}
.article-cta-banner__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  margin-bottom: var(--space-6);
}

/* Article Comments Section */
.article-comments {
  max-width: 650px;
  margin: var(--space-12) auto;
  padding-top: var(--space-8);
  border-top: 1px solid var(--color-border);
}
.article-comments__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-6);
}
.article-comments__empty {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-8) var(--space-6);
  text-align: center;
}
.article-comments__empty p {
  color: var(--color-text-faint);
  font-size: var(--text-sm);
}

/* Article body inline CTA */
.article-cta-inline {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  padding: var(--space-6);
  margin: 2em 0;
}
.article-cta-inline p {
  margin-bottom: 0 !important;
  color: var(--color-text-muted);
}

/* Article body dividers */
.article-divider {
  border: none;
  border-top: 1px solid var(--color-border);
  margin: 2.5em 0;
  opacity: 0.5;
}

/* Blog card read time */
.blog-card__read {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}

/* View More button */
.blog-grid__more {
  display: flex;
  justify-content: center;
  margin-top: var(--space-10);
}
.blog-view-more {
  min-width: 200px;
}

/* Related articles */
.article-view__related {
  margin-top: var(--space-16);
  padding-top: var(--space-12);
  border-top: 1px solid var(--color-border);
}
.article-view__related-title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 900;
  margin-bottom: var(--space-8);
  text-align: center;
}
.article-view__related-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
  max-width: 960px;
  margin: 0 auto;
}
@media (max-width: 768px) {
  .article-view__related-grid {
    grid-template-columns: 1fr;
  }
  .article-share-bar {
    flex-wrap: wrap;
  }
  .article-engagement {
    margin-left: 0;
    margin-top: var(--space-2);
  }
}


/* ========================================
   SCROLL ANIMATIONS
   ======================================== */
[data-animate] {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
[data-animate].visible {
  opacity: 1;
  transform: translateY(0);
}

@media (prefers-reduced-motion: reduce) {
  [data-animate] {
    opacity: 1;
    transform: none;
  }
}


/* ========================================
   PAGE VISIBILITY (SPA routing)
   ======================================== */
.page {
  display: none;
}
.page.active {
  display: block;
}


/* ========================================
   HOMEPAGE SECTIONS — Cinematic streaming aesthetic
   Content below hero scrolls OVER the sticky hero
   ======================================== */
.cinematic-banner,
.hero-carousel ~ .section,
.hero-carousel ~ .cinematic-banner {
  position: relative;
  z-index: 2;
  background: var(--color-bg);
}

#page-home > .section,
#page-home > .cinematic-banner {
  position: relative;
  z-index: 2;
}

/* Stream Create Earn banner section */
.cinematic-banner {
  position: relative;
  padding: clamp(80px, 12vw, 160px) 0;
  overflow: hidden;
}

.cinematic-banner__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  z-index: 0;
}

.cinematic-banner__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom, rgba(0,0,0,0.7), rgba(0,0,0,0.85));
}

.cinematic-banner__content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
  padding-inline: var(--space-6);
}

.cinematic-banner__title {
  font-family: var(--font-display);
  font-size: var(--text-3xl);
  font-weight: 900;
  line-height: 1.1;
  margin-bottom: var(--space-4);
}

.cinematic-banner__text {
  font-size: var(--text-lg);
  color: rgba(255,255,255,0.7);
  margin-bottom: var(--space-8);
  line-height: 1.6;
}

/* Featured content grid — streaming service style */
.content-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: var(--space-4);
}

.content-card {
  position: relative;
  border-radius: var(--radius-md);
  overflow: hidden;
  background: var(--color-surface);
  cursor: pointer;
  transition: transform 0.3s, box-shadow 0.3s;
}

.content-card:hover {
  transform: scale(1.03);
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
}

.content-card__thumb {
  width: 100%;
  aspect-ratio: 1/1;
  background: var(--color-surface-2);
  background-size: cover;
  background-position: center;
}

.content-card__info {
  padding: var(--space-3) var(--space-4);
}

.content-card__title {
  font-family: var(--font-display);
  font-size: var(--text-sm);
  font-weight: 700;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.content-card__creator {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
}

/* Creator showcase horizontal scroll */
.creator-scroll {
  display: flex;
  gap: var(--space-5);
  overflow-x: auto;
  padding-bottom: var(--space-4);
  scrollbar-width: none;
  -ms-overflow-style: none;
  /* Soften the right-edge clip so partially-visible cards don't show a
     hard half-rounded corner against the page background — fades the
     last card into a scroll affordance instead. */
  -webkit-mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 60px), transparent 100%);
          mask-image: linear-gradient(to right, #000 0, #000 calc(100% - 60px), transparent 100%);
}

.creator-scroll::-webkit-scrollbar {
  display: none;
}

.creator-scroll__card {
  flex: 0 0 280px;
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  height: 360px;
  cursor: pointer;
}

.creator-scroll__card-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transition: transform 0.5s;
}

.creator-scroll__card:hover .creator-scroll__card-img {
  transform: scale(1.06);
}

.creator-scroll__card::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent 60%);
  z-index: 1;
}

.creator-scroll__card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-6);
  z-index: 2;
}

.creator-scroll__card-label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--color-accent);
  margin-bottom: var(--space-2);
}

.creator-scroll__card-title {
  font-family: var(--font-display);
  font-size: var(--text-xl);
  font-weight: 800;
  color: #fff;
  line-height: 1.2;
}

/* Platform features minimal grid */
.platform-features {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

@media (max-width: 768px) {
  .platform-features {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .platform-features {
    grid-template-columns: repeat(2, 1fr);
  }
}

.platform-feature {
  text-align: center;
  padding: var(--space-8) var(--space-4);
}

.platform-feature__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  margin: 0 auto var(--space-4);
  border-radius: var(--radius-full);
  background: linear-gradient(135deg, rgba(162, 207, 100, 0.15), rgba(20, 121, 172, 0.15));
  border: 1px solid rgba(162, 207, 100, 0.3);
  color: var(--color-accent);
  transition: transform 0.3s var(--ease), border-color 0.3s var(--ease), background 0.3s var(--ease);
}

.platform-feature__icon svg {
  width: 28px;
  height: 28px;
}

.platform-feature:hover .platform-feature__icon {
  transform: translateY(-2px);
  border-color: var(--color-accent);
  background: linear-gradient(135deg, rgba(162, 207, 100, 0.25), rgba(20, 121, 172, 0.25));
}

.platform-feature__title {
  font-family: var(--font-display);
  font-size: var(--text-lg);
  font-weight: 700;
  margin-bottom: var(--space-2);
}

.platform-feature__text {
  font-size: var(--text-sm);
  color: var(--color-text-muted);
  line-height: 1.6;
  max-width: 280px;
  margin-inline: auto;
}


/* ========================================
   MISC UTILITIES
   ======================================== */
.text-center { text-align: center; }
.mx-auto { margin-inline: auto; }
.mt-4 { margin-top: var(--space-4); }
.mt-6 { margin-top: var(--space-6); }
.mt-8 { margin-top: var(--space-8); }
.mb-4 { margin-bottom: var(--space-4); }
.mb-6 { margin-bottom: var(--space-6); }
.mb-8 { margin-bottom: var(--space-8); }
.mb-12 { margin-bottom: var(--space-12); }
.gap-4 { gap: var(--space-4); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.items-center { align-items: center; }
.justify-center { justify-content: center; }
.w-full { width: 100%; }
.max-w-narrow { max-width: var(--content-narrow); }
.max-w-default { max-width: var(--content-default); }
.hidden { display: none; }
.relative { position: relative; }
.overflow-hidden { overflow: hidden; }

/* Divider */
.divider {
  width: 100%;
  height: 1px;
  background: var(--color-border);
}

/* Gradient line */
.gradient-line {
  width: 60px;
  height: 3px;
  background: var(--gradient);
  border-radius: 2px;
  margin-bottom: var(--space-6);
}

.gradient-line--center {
  margin-inline: auto;
}

/* Icon circles */
.icon-circle {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: var(--color-accent);
  flex-shrink: 0;
}

/* RSS logos grid */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-6);
  align-items: center;
  justify-content: center;
  opacity: 0.5;
}
.logo-strip img {
  height: 28px;
  filter: brightness(0) invert(1);
}

/* Enterprise tier badge */
.tier-badge {
  display: inline-block;
  padding: 4px 12px;
  background: var(--gradient);
  color: #fff;
  font-size: var(--text-xs);
  font-weight: 700;
  border-radius: var(--radius-full);
  margin-bottom: var(--space-4);
}

/* Events card */
.event-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  transition: border-color 0.3s, transform 0.3s;
}
.event-card:hover {
  border-color: var(--color-border-light);
  transform: translateY(-2px);
}
.event-card__img {
  width: 100%;
  height: 200px;
  background: var(--color-surface-3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: var(--text-xl);
}
.event-card__body {
  padding: var(--space-5);
}
.event-card__title {
  font-family: var(--font-display);
  font-size: var(--text-base);
  font-weight: 700;
  margin-bottom: var(--space-2);
}
.event-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-faint);
}
.event-card__status {
  display: inline-block;
  font-size: var(--text-xs);
  font-weight: 600;
  padding: 2px 10px;
  border-radius: var(--radius-full);
  margin-top: var(--space-3);
}
.event-card__status--closed {
  background: rgba(241,67,54,0.15);
  color: #f14336;
}
.event-card__status--open {
  background: rgba(162,207,100,0.15);
  color: var(--color-accent);
}

/* Job listing */
.job-card {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: var(--space-5) var(--space-6);
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  text-decoration: none;
  color: inherit;
  transition: border-color 0.3s;
}
.job-card:hover {
  border-color: var(--color-accent);
}
.job-card__title {
  font-family: var(--font-display);
  font-weight: 700;
}
.job-card__meta {
  font-size: var(--text-xs);
  color: var(--color-text-muted);
  margin-top: var(--space-1);
}
.job-card__arrow {
  font-size: 20px;
  color: var(--color-text-muted);
}

/* Scroll to top */
.scroll-top-btn {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  color: #fff;
  font-size: 18px;
  z-index: 50;
  transition: background 0.3s, transform 0.3s;
}
.scroll-top-btn:hover {
  background: var(--color-surface-3);
  transform: translateY(-2px);
}
/* ========================================
   LANDING PAGES — Patreon-Style Immersive Scroll
   ======================================== */

/* --- Hero: Full Viewport with Parallax --- */
.lp-hero {
  position: relative;
  width: 100%;
  height: 100vh;
  min-height: 600px;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: var(--space-16) clamp(2rem, 5vw, 6rem);
}

.lp-hero__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.lp-hero__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  /* Stronger gradient so titles stay readable over bright brand photos
     (orange-lit studios, daylit kitchens, etc.). */
  background: linear-gradient(
    to top,
    rgba(0, 0, 0, 0.92) 0%,
    rgba(0, 0, 0, 0.65) 35%,
    rgba(0, 0, 0, 0.30) 100%
  );
  z-index: 1;
}

.lp-hero__content {
  position: relative;
  z-index: 2;
  max-width: 1400px;
  width: 100%;
  margin: 0 auto;
  padding-bottom: clamp(3rem, 6vh, 6rem);
}

.lp-hero__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3.5rem, 8vw, 8rem);
  line-height: 0.95;
  color: #ffffff;
  letter-spacing: -0.03em;
  margin: 0 0 var(--space-6) 0;
  /* Text shadow guarantees contrast even on the brightest brand photos. */
  text-shadow: 0 2px 28px rgba(0,0,0,0.7);
}

.lp-hero__title span {
  display: block;
  padding-left: clamp(1rem, 4vw, 5rem);
}

.lp-hero__subtitle {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.8vw, 1.35rem);
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.92);
  max-width: 520px;
  margin: 0 0 var(--space-8) 0;
  text-shadow: 0 1px 16px rgba(0,0,0,0.6);
}

.lp-hero__cta {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  background: linear-gradient(135deg, #A2CF64, #1479AC);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-base);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
}

.lp-hero__cta:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(162, 207, 100, 0.25);
}

.lp-hero__scroll-arrow {
  position: absolute;
  bottom: 2rem;
  right: clamp(2rem, 5vw, 6rem);
  z-index: 2;
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid rgba(255, 255, 255, 0.4);
  border-radius: 50%;
  animation: lp-bounce 2s infinite;
  cursor: pointer;
}

.lp-hero__scroll-arrow svg {
  width: 20px;
  height: 20px;
  stroke: rgba(255, 255, 255, 0.7);
  fill: none;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@keyframes lp-bounce {
  0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
  40% { transform: translateY(8px); }
  60% { transform: translateY(4px); }
}

/* --- Content Sections --- */
.lp-section {
  padding: clamp(4rem, 8vh, 8rem) clamp(2rem, 5vw, 6rem);
  position: relative;
}

.lp-section--dark {
  background-color: #000000;
}

.lp-section--dark-alt {
  background-color: #0a0a0a;
}

.lp-section__inner {
  max-width: 1400px;
  margin: 0 auto;
  /* Center the editorial content within the page so prose doesn't sit
     stuck to the left edge of a 1400px container with empty space on
     the right. Heading + body + lists are constrained to ~860px and
     centered as a single readable column. */
}

/* Center the heading + body + lists + FAQs as a single readable column.
   860px is wide enough to feel intentional but narrow enough to keep
   line length scannable (~80 chars). */
.lp-section__inner > .lp-display,
.lp-section__inner > .lp-body,
.lp-section__inner > .lp-features-list,
.lp-section__inner > .lp-faq,
.lp-section__inner > .lp-faq-list,
.lp-section__inner > details.lp-faq {
  max-width: 860px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Display Heading --- */
.lp-display {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(2.5rem, 5.5vw, 5.5rem);
  line-height: 1.05;
  letter-spacing: -0.03em;
  color: #ffffff;
  margin: 0 0 var(--space-6) 0;
}

.lp-body {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: clamp(1rem, 1.4vw, 1.2rem);
  line-height: 1.7;
  color: rgba(255, 255, 255, 0.78);
  /* Removed the 520px constraint — the parent grid now handles width.
     Optimal reading length is enforced via the .lp-section__inner > .lp-body
     max-width: 720px above. */
}

/* --- Feature Image (centered in section) --- */
.lp-feature-img {
  width: 100%;
  max-width: 900px;
  margin: clamp(2.5rem, 4vh, 4rem) auto 0;
  /* Rounded corners — Patrick's call (2026-05-04 reversal). */
  border-radius: 15px;
  overflow: hidden;
}

.lp-feature-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Photo Break: Full-Bleed Parallax --- */
.lp-section--photo {
  position: relative;
  width: 100%;
  min-height: 60vh;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  padding: 0;
}

.lp-section--photo::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.15);
}

/* --- Split Layout --- */
.lp-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(2rem, 5vw, 6rem);
  align-items: center;
}

.lp-split--reverse {
  direction: rtl;
}

.lp-split--reverse > * {
  direction: ltr;
}

.lp-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.lp-split__image {
  /* Rounded corners — Patrick's call (2026-05-04 reversal). */
  border-radius: 15px;
  overflow: hidden;
}

.lp-split__image img {
  width: 100%;
  height: auto;
  display: block;
}

/* --- Final CTA Section --- */
.lp-cta {
  position: relative;
  width: 100%;
  min-height: 80vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: clamp(3rem, 6vh, 6rem) clamp(2rem, 5vw, 6rem);
  overflow: hidden;
}

.lp-cta__bg {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  background-attachment: fixed;
  z-index: 0;
}

.lp-cta__bg::after {
  content: '';
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.65);
  z-index: 1;
}

.lp-cta__card {
  position: relative;
  z-index: 2;
  background: rgba(10, 22, 40, 0.85);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 24px;
  padding: clamp(2.5rem, 4vw, 4rem);
  max-width: 540px;
  width: 100%;
  text-align: center;
}

.lp-cta__heading {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.75rem, 3vw, 2.5rem);
  color: #ffffff;
  margin: 0 0 var(--space-4) 0;
  line-height: 1.15;
}

.lp-cta__text {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.65);
  margin: 0 0 var(--space-8) 0;
  line-height: 1.6;
}

.lp-cta__btn {
  display: inline-block;
  padding: 1rem 2.5rem;
  border-radius: 100px;
  background: linear-gradient(135deg, #A2CF64, #1479AC);
  color: #fff;
  font-family: var(--font-display);
  font-weight: 900;
  font-size: var(--text-base);
  text-decoration: none;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: none;
  cursor: pointer;
  width: 100%;
  max-width: 320px;
}

.lp-cta__btn:hover {
  transform: translateY(-2px) scale(1.03);
  box-shadow: 0 8px 32px rgba(162, 207, 100, 0.25);
}

.lp-cta__login {
  display: block;
  margin-top: var(--space-4);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-sm);
  color: rgba(255, 255, 255, 0.5);
}

.lp-cta__login a {
  color: rgba(255, 255, 255, 0.8);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.lp-cta__login a:hover {
  color: #ffffff;
}

.lp-cta__badges {
  display: flex;
  gap: var(--space-3);
  justify-content: center;
  margin-top: var(--space-6);
}

.lp-cta__badge {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  padding: 0.6rem 1.2rem;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.7);
  font-family: var(--font-body);
  font-size: var(--text-xs);
  text-decoration: none;
  transition: background 0.2s;
}

.lp-cta__badge:hover {
  background: rgba(255, 255, 255, 0.1);
}

.lp-cta__badge svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

/* --- Intro Section with centered text + image below --- */
.lp-intro {
  text-align: center;
}

.lp-intro .lp-display {
  max-width: 800px;
  margin-left: auto;
  margin-right: auto;
}

.lp-intro .lp-body {
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* --- Scroll Reveal for LP elements --- */
.lp-section .lp-display,
.lp-section .lp-body,
.lp-section .lp-feature-img,
.lp-split__text,
.lp-split__image,
.lp-cta__card {
  opacity: 0;
  transform: translateY(30px);
  transition: opacity 0.8s ease, transform 0.8s ease;
}

.lp-section .visible .lp-display,
.lp-section .visible .lp-body,
.lp-section .visible .lp-feature-img,
.visible .lp-split__text,
.visible .lp-split__image,
.visible .lp-cta__card,
.lp-section .lp-display.visible,
.lp-section .lp-body.visible,
.lp-section .lp-feature-img.visible,
.lp-split__text.visible,
.lp-split__image.visible,
.lp-cta__card.visible {
  opacity: 1;
  transform: translateY(0);
}

/* Stagger animations for split layouts */
.visible .lp-split__image {
  transition-delay: 0.15s;
}

/* --- Stat/number callout --- */
.lp-stat {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(3rem, 6vw, 6rem);
  line-height: 1;
  background: linear-gradient(135deg, #A2CF64, #1479AC);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  margin: 0 0 var(--space-3) 0;
}

/* --- Inline feature list --- */
.lp-features-list {
  list-style: none;
  padding: 0;
  margin: var(--space-6) 0 0 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.lp-features-list li {
  font-family: var(--font-body);
  font-weight: 400;
  font-size: var(--text-base);
  color: rgba(255, 255, 255, 0.75);
  padding-left: 28px;
  position: relative;
}

.lp-features-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 6px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: linear-gradient(135deg, #A2CF64, #1479AC);
}

/* ========================================
   RESPONSIVE — Mobile
   ======================================== */
@media (max-width: 768px) {
  .lp-hero {
    padding: var(--space-8) var(--space-6);
    min-height: 85vh;
  }

  .lp-hero__bg {
    background-attachment: scroll; /* Fixed BG doesn't work on mobile Safari */
  }

  .lp-hero__title {
    font-size: clamp(2.5rem, 10vw, 4rem);
  }

  .lp-hero__title span {
    padding-left: 0.5rem;
  }

  .lp-hero__scroll-arrow {
    display: none;
  }

  .lp-section {
    padding: clamp(3rem, 6vh, 5rem) var(--space-6);
  }

  .lp-display {
    font-size: clamp(2rem, 8vw, 3rem);
  }

  .lp-split {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }

  .lp-split--reverse {
    direction: ltr;
  }

  .lp-split__image {
    order: -1;
  }

  .lp-section--photo {
    min-height: 40vh;
    background-attachment: scroll;
  }

  .lp-cta {
    min-height: auto;
    padding: clamp(3rem, 6vh, 5rem) var(--space-6);
  }

  .lp-cta__bg {
    background-attachment: scroll;
  }

  .lp-cta__card {
    padding: var(--space-8) var(--space-6);
  }

  .lp-cta__badges {
    flex-direction: column;
    align-items: center;
  }
}

@media (max-width: 480px) {
  .lp-hero__title {
    font-size: clamp(2rem, 10vw, 3rem);
  }

  .lp-hero__subtitle {
    font-size: 0.95rem;
  }
}


/* ========================================
   BENEFIT LIST (Solutions & Experience pages)
   ======================================== */
.benefit-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: var(--space-6);
}

.benefit-list__item {
  display: flex;
  gap: var(--space-4);
  align-items: flex-start;
  font-size: var(--text-base);
  color: var(--color-text-muted);
  line-height: 1.6;
}

.benefit-list__item strong {
  color: var(--color-text);
  font-weight: 700;
}

.benefit-list__check {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(162, 207, 100, 0.12);
  color: var(--color-accent);
  font-size: 14px;
  font-weight: 700;
  margin-top: 2px;
}


/* ========================================
   ENTERPRISE PAGE STYLES
   ======================================== */
.ent-why-grid {
  grid-template-columns: repeat(3, 1fr);
}

.ent-why-card {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ent-why-card .benefit-list__check {
  width: 40px;
  height: 40px;
  font-size: 18px;
}

@media (max-width: 768px) {
  .ent-why-grid {
    grid-template-columns: 1fr;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .ent-why-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ========================================
   EVENT CAROUSEL (Experience page)
   ======================================== */
.event-carousel {
  position: relative;
}

.event-carousel__track {
  display: flex;
  gap: 24px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding: 0 16px;
  -webkit-overflow-scrolling: touch;
}

.event-carousel__track::-webkit-scrollbar {
  display: none;
}

.event-carousel__card {
  flex: 0 0 340px;
  scroll-snap-align: start;
  background: var(--color-surface-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--color-border);
  transition: transform var(--transition), box-shadow var(--transition);
}

.event-carousel__card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}

.event-carousel__card-img {
  width: 100%;
  height: 200px;
  object-fit: cover;
  display: block;
}

.event-carousel__card-body {
  padding: 20px;
}

.event-carousel__arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  border: 1px solid rgba(255,255,255,0.2);
  color: #fff;
  font-size: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 2;
  transition: background var(--transition);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.event-carousel__arrow:hover {
  background: rgba(255,255,255,0.2);
}

.event-carousel__arrow--left {
  left: -16px;
}

.event-carousel__arrow--right {
  right: -16px;
}

.event-status {
  display: inline-block;
  font-size: 11px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(241,67,54,0.15);
  color: #f14336;
}


/* ========================================
   TESTIMONIAL CARDS (Experience page)
   ======================================== */
.testimonial-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: var(--space-6);
}

.testimonial-card {
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-8);
}

.testimonial-card__stars {
  color: #fdc943;
  font-size: 18px;
  letter-spacing: 2px;
  margin-bottom: var(--space-4);
}

.testimonial-card__quote {
  color: var(--color-text-muted);
  font-size: var(--text-base);
  line-height: 1.7;
  margin-bottom: var(--space-6);
  font-style: italic;
}

.testimonial-card__author {
  color: var(--color-text);
  font-weight: 700;
  font-size: var(--text-sm);
}

@media (max-width: 768px) {
  .testimonial-grid {
    grid-template-columns: 1fr;
    gap: var(--space-4);
  }
}


/* ========================================
   SUBSCRIBE FORM (Experience page CTA)
   ======================================== */
.subscribe-form {
  display: flex;
  gap: var(--space-3);
  max-width: 480px;
  margin: 0 auto;
  flex-wrap: wrap;
  justify-content: center;
}

.subscribe-form__input {
  flex: 1;
  min-width: 220px;
  padding: 14px 20px;
  background: var(--color-surface-2);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-full);
  color: #fff;
  font-size: var(--text-sm);
  font-family: var(--font-body);
  outline: none;
  transition: border-color var(--transition);
}

.subscribe-form__input:focus {
  border-color: var(--color-accent);
}

.subscribe-form__input::placeholder {
  color: var(--color-text-faint);
}


/* ========================================
   CONTACT WIZARD
   ======================================== */
.wizard-wrapper {
  max-width: 680px;
  margin: 0 auto;
}

.wizard-header {
  text-align: center;
  margin-bottom: var(--space-6);
}

/* Progress bar */
.wizard-progress {
  margin-bottom: var(--space-8);
}

.wizard-progress__bar {
  height: 4px;
  background: var(--color-border);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.wizard-progress__fill {
  height: 100%;
  background: var(--gradient);
  border-radius: var(--radius-full);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.4, 0, 0.2, 1);
}

.wizard-progress__steps {
  display: flex;
  justify-content: space-between;
  margin-top: var(--space-2);
  font-size: var(--text-xs);
  color: var(--color-muted);
}

.wizard-progress__step-label {
  transition: color 0.3s ease;
}

.wizard-progress__step-label.active {
  color: #fff;
  font-weight: 600;
}

.wizard-progress__step-label.done {
  color: var(--color-accent);
}

/* Card container */
.wizard-card {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  padding: clamp(var(--space-6), 4vw, var(--space-10));
  position: relative;
  overflow: hidden;
  min-height: 320px;
}

/* Steps */
.wizard-step {
  display: none;
  animation: wizardFadeIn 0.35s ease;
}

.wizard-step.active {
  display: block;
}

@keyframes wizardFadeIn {
  from { opacity: 0; transform: translateY(12px); }
  to   { opacity: 1; transform: translateY(0); }
}

.wizard-step__title {
  font-family: var(--font-display);
  font-weight: 900;
  font-size: clamp(1.25rem, 2.5vw, 1.5rem);
  margin-bottom: var(--space-2);
  color: #fff;
}

.wizard-step__desc {
  color: var(--color-muted);
  font-size: var(--text-sm);
  margin-bottom: var(--space-6);
  line-height: 1.5;
}

.wizard-step__alt {
  color: var(--color-muted);
  font-size: var(--text-sm);
  text-align: center;
  margin-top: var(--space-6);
  margin-bottom: var(--space-2);
}

/* Choice buttons */
.wizard-choices {
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
}

.wizard-choice {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--space-1);
  width: 100%;
  padding: var(--space-4) var(--space-5);
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background 0.2s ease, transform 0.15s ease;
  color: #fff;
  font-family: var(--font-body);
}

.wizard-choice:hover {
  border-color: var(--color-accent);
  background: rgba(162, 207, 100, 0.06);
  transform: translateY(-1px);
}

.wizard-choice.selected {
  border-color: var(--color-accent);
  background: rgba(162, 207, 100, 0.1);
}

.wizard-choice__label {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: var(--text-base);
  color: #fff;
}

.wizard-choice__desc {
  font-size: var(--text-sm);
  color: var(--color-muted);
  line-height: 1.45;
}

/* Form grid within wizard */
.wizard-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-4);
  margin-bottom: var(--space-6);
}

/* Checkbox grid for multi-select */
.wizard-checkbox-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-2);
}

.wizard-checkbox {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease;
  font-size: var(--text-sm);
  color: #fff;
  line-height: 1.3;
}

.wizard-checkbox:hover {
  border-color: var(--color-accent);
  background: rgba(162, 207, 100, 0.04);
}

.wizard-checkbox input[type="checkbox"] {
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  width: 20px;
  height: 20px;
  min-width: 20px;
  max-width: 20px;
  min-height: 20px;
  max-height: 20px;
  flex-shrink: 0;
  border: 2px solid var(--color-border);
  border-radius: 4px;
  background: transparent;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease;
  position: relative;
  margin: 0;
  padding: 0;
}

.wizard-checkbox input[type="checkbox"]:checked {
  background: var(--color-accent);
  border-color: var(--color-accent);
}

.wizard-checkbox input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 6px;
  width: 6px;
  height: 10px;
  border: solid #000;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

.wizard-checkbox-grid.has-error .wizard-checkbox {
  border-color: #e74c3c;
}

/* Navigation */
.wizard-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-top: var(--space-6);
  gap: var(--space-3);
}

.wizard-nav .btn--sm {
  padding: 10px 24px;
  font-size: var(--text-sm);
}

/* App redirect panel (support path) */
.wizard-app-redirect {
  margin-bottom: var(--space-4);
}

.wizard-app-redirect__box {
  background: rgba(255,255,255,0.03);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  padding: var(--space-5);
  margin-bottom: var(--space-4);
}

.wizard-app-redirect__instruction {
  color: #fff;
  font-size: var(--text-sm);
  margin-bottom: var(--space-3);
  line-height: 1.5;
}

.wizard-app-redirect__instruction:last-of-type {
  margin-bottom: var(--space-4);
}

.wizard-app-redirect__note {
  color: var(--color-accent);
  font-size: var(--text-xs);
  font-weight: 600;
}

.wizard-app-redirect__apps {
  display: flex;
  gap: var(--space-3);
  flex-wrap: wrap;
}

/* Confirmation */
.wizard-confirm {
  text-align: center;
  padding: var(--space-8) 0;
}

.wizard-confirm__check {
  margin-bottom: var(--space-4);
  display: flex;
  justify-content: center;
}

.wizard-confirm__check svg {
  animation: wizardCheckPop 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes wizardCheckPop {
  from { transform: scale(0); opacity: 0; }
  to   { transform: scale(1); opacity: 1; }
}

/* Validation error state */
.form-group.has-error input,
.form-group.has-error select,
.form-group.has-error textarea {
  border-color: #e74c3c;
}

.form-group .field-error {
  color: #e74c3c;
  font-size: 12px;
  margin-top: 4px;
  display: none;
}

.form-group.has-error .field-error {
  display: block;
}

/* Mobile */
@media (max-width: 768px) {
  .wizard-wrapper {
    max-width: 100%;
  }
  .wizard-form-grid {
    grid-template-columns: 1fr;
  }
  .wizard-form-grid .form-group[style*="grid-column"] {
    grid-column: auto !important;
  }
  .wizard-app-redirect__apps {
    flex-direction: column;
  }
  .wizard-app-redirect__apps .btn {
    width: 100%;
    text-align: center;
  }
  .wizard-checkbox-grid {
    grid-template-columns: 1fr;
  }
}


/* ========================================
   MOBILE: EVENT CAROUSEL
   ======================================== */
@media (max-width: 768px) {
  .event-carousel__card {
    flex: 0 0 calc(100vw - 80px);
  }
  
  .event-carousel__arrow--left {
    left: 4px;
  }
  
  .event-carousel__arrow--right {
    right: 4px;
  }
}

/* Like button interactive state */
.like-btn {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--color-text-muted);
  font-size: inherit;
  transition: color 0.2s, transform 0.2s;
}
.like-btn:hover {
  color: #f14336;
  transform: scale(1.1);
}
.like-btn.liked {
  color: #f14336;
}
.like-btn.liked svg {
  fill: #f14336;
  stroke: #f14336;
}
