/* ============================================================================
   Research Lunch Club — Components
   Nav, buttons, cards, forms, footer, layout blocks, decorative shapes.

   Breakpoints (CONVENTION). CSS custom properties can't live inside @media
   conditions and there's no preprocessor here, so these are fixed numbers used
   consistently. Snap NEW breakpoints to this ladder — don't invent new ones:
       xl 1024  |  lg 900  |  md 768  |  sm 600  |  xs 460
   A few legacy values predate the ladder (e.g. the 880/881 nav pair, 820, 920)
   and are deliberately left as-is — re-flowing them risks our mobile-majority
   traffic. Reconcile opportunistically, not in a big-bang pass.
   ========================================================================== */

/* ---- Decorative confetti shapes ------------------------------------------ */
.shape-field { position: relative; overflow: clip; }
.shape-field > .container,
.shape-field > * { position: relative; z-index: var(--z-content); }
.shape {
  position: absolute;
  left: var(--x, auto); top: var(--y, auto);
  right: var(--xr, auto); bottom: var(--yb, auto);
  width: var(--size, 72px); height: var(--h, var(--size, 72px));
  transform: rotate(var(--rot, 0deg));
  color: var(--rlc-orange);
  pointer-events: none; z-index: var(--z-base);
  overflow: visible;
}
/* shapes keep their natural proportions inside the box */
.shape > use, .shape svg { width: 100%; height: 100%; }
/* Full-width sections are wider than the 1200px content column, so a shape at
   e.g. --xr:5% drifts into the empty side gutter on large screens and looks
   stranded. Add the gutter back (0 until the viewport exceeds --container) so
   these shapes hug the content edge at every width. Panel/hero shape-fields are
   already content-width, so they're untouched. */
.section.shape-field > .shape[style*="--x:"]  { left:  calc(var(--x)  + max(0px, (100% - var(--container)) / 2)); }
.section.shape-field > .shape[style*="--xr"]  { right: calc(var(--xr) + max(0px, (100% - var(--container)) / 2)); }
/* Mobile is 80-90% of our traffic — keep the shapes, but scaled back and softened so they
   read as background texture behind the text rather than clutter (panel overflow is clipped,
   so no horizontal scroll; shapes sit at z-index 0, content at z-index 1). */
@media (max-width: 760px) { .shape--hide-sm { transform: rotate(var(--rot, 0deg)) scale(.5);  opacity: .4; } }
@media (max-width: 420px) { .shape--hide-sm { transform: rotate(var(--rot, 0deg)) scale(.42); opacity: .35; } }

/* Placement presets — collapse the most-repeated inline shape coordinates into a
   class. These cover the CTA band's faint white corner shapes (sh-9 top-left,
   sh-7 bottom-right), which recur near-identically on most pages. The `color` and
   the <use> sprite still vary per instance, so they stay inline; an inline style=""
   still overrides these for genuine one-offs. Snap new corner shapes to these. */
.shape--cta-tl { --x: 8%;  --y: 16%; --size: 80px; --h: 74px; }
.shape--cta-br { --xr: 8%; --yb: 14%; --size: 80px; --h: 72px; }

/* ---- Navigation (floating white pill) ------------------------------------ */
.nav { position: sticky; top: 16px; z-index: var(--z-nav); padding-inline: var(--gutter); }
.nav__inner {
  max-width: var(--container); margin-inline: auto;
  display: flex; align-items: center; gap: var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  padding: 10px 12px 10px 22px;
  box-shadow: var(--shadow-soft);
}
.nav__logo { display: inline-flex; align-items: center; }
.nav__logo img { height: 26px; width: auto; }
.nav__links { display: flex; align-items: center; gap: 4px; margin-left: var(--space-4); }
.nav__link {
  color: var(--text); font-weight: var(--fw-semibold); font-size: var(--fs-small);
  padding: 8px 14px; border-radius: var(--r-pill); text-decoration: none;
  transition: background var(--dur) var(--ease), color var(--dur) var(--ease);
}
.nav__link:hover { background: var(--neutral-04); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--color-primary); background: var(--primary-a08); }
.nav__spacer { margin-left: auto; }
.nav__actions { display: flex; align-items: center; gap: 8px; margin-left: auto; } /* Log in + Join us pinned right */
.nav__toggle { display: none; }
/* mobile-only persistent Join CTA — hidden on desktop where nav__actions already shows it.
   Selector is scoped to .nav so it outranks the later, equal-specificity .btn rule. */
.nav .nav__cta-sticky { display: none; }

/* mobile nav */
@media (max-width: 880px) {
  .nav__links, .nav__actions { display: none; }
  .nav__inner { gap: 12px; } /* tighten so logo + Join CTA + hamburger fit small screens */
  /* persistent Join CTA sits to the LEFT of the hamburger, both pinned right.
     margin-left:auto on the CTA absorbs the free space, so the toggle drops its own. */
  .nav .nav__cta-sticky {
    display: inline-flex; margin-left: auto;
    padding: 9px 18px; font-size: var(--fs-small); height: 42px;
  }
  .nav__toggle {
    display: inline-flex; align-items: center; justify-content: center;
    width: 42px; height: 42px; border-radius: var(--r-pill);
    background: var(--neutral-04);
  }
  .nav__toggle span, .nav__toggle span::before, .nav__toggle span::after {
    content: ""; display: block; width: 18px; height: 2px; background: var(--text);
    border-radius: 2px; position: relative; transition: transform var(--dur) var(--ease), opacity var(--dur);
  }
  .nav__toggle span::before { position: absolute; top: -6px; }
  .nav__toggle span::after  { position: absolute; top: 6px; }
  .nav.is-open .nav__toggle span { background: transparent; }
  .nav.is-open .nav__toggle span::before { transform: translateY(6px) rotate(45deg); }
  .nav.is-open .nav__toggle span::after  { transform: translateY(-6px) rotate(-45deg); }

  .nav__menu {
    display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 8px);
    background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-xl);
    box-shadow: var(--shadow-lg); padding: 12px; flex-direction: column; gap: 4px;
  }
  .nav.is-open .nav__menu { display: flex; }
  /* full nav (all section links) shown stacked inside the mobile sheet */
  .nav__menu .nav__links { display: flex; flex-direction: column; align-items: stretch; gap: 4px; margin-left: 0; }
  /* full-width tap targets: each link fills the sheet so a tap anywhere on the row navigates */
  .nav__menu .nav__link { display: block; font-size: var(--fs-body); padding: 14px 16px; text-align: center; }
  .nav__menu .nav__actions {
    display: flex; flex-direction: column; gap: 8px; margin: 8px 0 0;
    padding-top: 12px; border-top: 1px solid var(--border);
  }
  .nav__menu .btn { width: 100%; }
}
@media (min-width: 881px) { .nav__menu { display: contents; } }

/* ---- Buttons -------------------------------------------------------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: var(--fw-bold); font-size: var(--fs-small); line-height: 1;
  letter-spacing: var(--tracking);
  padding: 12px 20px; border-radius: var(--r-pill); border: 1.5px solid transparent;
  text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: transform var(--dur) var(--ease), background var(--dur) var(--ease),
              box-shadow var(--dur) var(--ease), border-color var(--dur) var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn .arrow { transition: transform var(--dur) var(--ease); }
.btn:hover .arrow { transform: translateX(3px); }

.btn--primary { background: var(--color-primary); color: var(--on-primary); }
.btn--primary:hover { background: var(--color-primary-hover); box-shadow: 0 12px 24px rgba(49,76,205,.24); }

/* DEPRECATED for CTAs: white-on-orange is 2.97:1 (fails WCAG AA). Orange is an
   accent only — use --primary on light surfaces and --on-primary on the blue
   band. Kept only for non-text decorative use. */
.btn--accent { background: var(--color-accent); color: #fff; }
.btn--accent:hover { background: var(--color-accent-hover); box-shadow: 0 12px 24px rgba(244,108,66,.26); }

/* Primary CTA placed on the blue band: white fill, blue label (6.89:1, AA). */
.btn--on-primary { background: #fff; color: var(--color-primary); }
.btn--on-primary:hover { background: var(--neutral-04); box-shadow: 0 12px 24px rgba(26,26,26,.18); }

.btn--dark { background: var(--black); color: #fff; }
.btn--dark:hover { background: #000; }

.btn--ghost { background: var(--surface); color: var(--text); border-color: var(--border-strong); }
.btn--ghost:hover { background: var(--neutral-04); }

.btn--lg { font-size: var(--fs-body); padding: 15px 26px; }
.btn--block { width: 100%; }

/* ---- Sections, panels, headers ------------------------------------------- */
.panel {
  background: var(--surface);
  border-radius: var(--r-2xl);
  padding: clamp(28px, 5vw, 64px);
}
.panel--cream { background: var(--neutral-04); }

.section-head { max-width: 62ch; margin-inline: auto; text-align: center; margin-bottom: clamp(28px, 5vw, 48px); }
.section-head .lead { margin-top: var(--space-3); }
.section-head--left { text-align: left; margin-inline: 0; }

/* ---- Hero ----------------------------------------------------------------- */
.hero { padding-top: var(--space-6); padding-bottom: var(--space-4); }
.hero__panel {
  position: relative; overflow: clip;
  background: var(--neutral-04);
  border-radius: var(--r-2xl);
  padding: clamp(28px, 6vw, 104px) var(--gutter);
  text-align: center;
}
.hero__inner { position: relative; z-index: var(--z-content); max-width: 56ch; margin-inline: auto; }
.hero h1 { font-size: var(--fs-display); line-height: var(--lh-tight); }
.hero .lead { margin-top: var(--space-4); font-size: var(--fs-lead); color: var(--text); font-weight: var(--fw-regular); }
.hero__cta { margin-top: var(--space-6); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.hero__note { margin-top: var(--space-4); font-size: var(--fs-small); color: var(--text-muted); }
/* Mobile: tighten the gap between the hero and the proof section so its
   "Real lunches, real researchers" eyebrow peeks above the fold — a deliberate
   cue to scroll into the UGC. Outer gaps only; the panel keeps its inner balance. */
@media (max-width: 600px) {
  .hero:has(+ #proof) { padding-bottom: var(--space-2); }
  #proof { padding-top: var(--space-5); }
}

/* Form hero: the embed IS the page (e.g. /join) — kept above the fold on every device */
.hero__panel--form { padding: clamp(20px, 3.5vw, 48px) var(--gutter); }
.join-form { position: relative; z-index: var(--z-content); max-width: 560px; margin-inline: auto; }
.join-form .card { background: var(--surface); }
.join-form iframe { display: block; width: 100%; }
.join-form .hero__note { text-align: center; }

/* Inline "Follow us" social row (confirmation pages: welcome, thank-you) */
.follow-us { margin-top: var(--space-6); }
.follow-us__label { font-weight: var(--fw-bold); margin-bottom: 12px; }
.follow-us__links { display: flex; gap: 12px; justify-content: center; }
.follow-us__links a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-pill);
  background: var(--text); color: #fff;
  transition: transform .15s ease, background .15s ease;
}
.follow-us__links a:hover { background: var(--color-primary); transform: translateY(-2px); }
.follow-us__links svg { width: 18px; height: 18px; fill: currentColor; }

/* Compact USP list (mobile-first confirmation pages) — icon + one line each */
.usp-list { list-style: none; padding: 0; margin: 0 auto; max-width: 30rem; display: grid; gap: 12px; text-align: left; }
.usp-list li { display: flex; gap: 12px; align-items: center; font-weight: var(--fw-medium); }
.usp-list .usp-ic {
  flex: none; width: 42px; height: 42px; border-radius: var(--r-pill);
  display: grid; place-items: center; font-size: 19px;
  background: var(--primary-a10); color: var(--color-primary);
}
.usp-list .usp-ic--accent { background: var(--accent-a12); color: var(--color-accent); }
.usp-list .usp-ic--lav    { background: var(--lav-a18); color: var(--rlc-lavender-ink); }

/* ---- Cards ---------------------------------------------------------------- */
.card {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--space-5);
}
.card--pad-lg { padding: var(--space-6); }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 860px) { .feature-grid { grid-template-columns: 1fr; } }
/* 4-up variant (e.g. membership perks) — collapses 4 → 2 → 1. */
.feature-grid--4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1024px) { .feature-grid--4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px)  { .feature-grid--4 { grid-template-columns: 1fr; } }
.feature__icon {
  width: 56px; height: 56px; border-radius: var(--r-pill);
  display: grid; place-items: center; font-size: 26px; margin-bottom: var(--space-4);
  background: var(--primary-a10); color: var(--color-primary);
}
.feature__icon--accent  { background: var(--accent-a12); color: var(--color-accent); }
.feature__icon--lav     { background: var(--lav-a18); color: var(--rlc-lavender-ink); }
.feature h3 { margin-bottom: var(--space-2); }
.feature p { color: var(--text-muted); }

/* ---- Numbered steps ------------------------------------------------------- */
.steps { display: grid; gap: var(--space-4); counter-reset: step; }
.step {
  display: grid; grid-template-columns: 48px 1fr; gap: var(--space-4); align-items: start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: var(--space-5);
}
.step__num {
  counter-increment: step; width: 44px; height: 44px; border-radius: var(--r-pill);
  background: var(--color-primary); color: #fff; font-weight: var(--fw-black);
  display: grid; place-items: center; font-size: 1.1rem;
}
.step:nth-child(even) .step__num { background: var(--color-accent); }
.step__num::before { content: counter(step); }
.step h3 { font-size: var(--fs-h3); margin-bottom: 4px; }
.step p { color: var(--text-muted); }

/* ---- Blog cards ----------------------------------------------------------- */
.blog-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: var(--space-5); }
@media (max-width: 920px) { .blog-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .blog-grid { grid-template-columns: 1fr; } }
.blog-card {
  display: flex; flex-direction: column; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-lg); overflow: hidden;
  text-decoration: none; color: var(--text);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.blog-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); text-decoration: none; }
.blog-card__media { aspect-ratio: 16/10; background: var(--rlc-blue); object-fit: cover; }
.blog-card__body { padding: var(--space-5); display: flex; flex-direction: column; gap: 8px; }
.blog-card__date { font-size: var(--fs-small); color: var(--text-muted); }
.blog-card__title { font-size: var(--fs-h3); line-height: var(--lh-snug); }
.blog-card__excerpt { color: var(--text-muted); font-size: var(--fs-small); }

/* ---- FAQ accordion -------------------------------------------------------- */
.accordion { max-width: 820px; margin-inline: auto; background: var(--surface);
  border: 1px solid var(--border); border-radius: var(--r-xl); overflow: hidden; }
.faq-item + .faq-item { border-top: 1px solid var(--border); }
.faq-q {
  width: 100%; display: flex; align-items: center; gap: var(--space-4); text-align: left;
  padding: var(--space-5); font-weight: var(--fw-bold); font-size: var(--fs-body); color: var(--text);
}
.faq-q__icon { margin-left: auto; color: var(--color-primary); font-size: 1.4rem; font-weight: var(--fw-black);
  transition: transform var(--dur) var(--ease); line-height: 1; }
.faq-item.is-open .faq-q__icon { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows var(--dur) var(--ease); }
.faq-item.is-open .faq-a { grid-template-rows: 1fr; }
.faq-a__inner { overflow: hidden; }
.faq-a p { padding: 0 var(--space-5) var(--space-5); color: var(--text-muted); }

/* ---- Forms ---------------------------------------------------------------- */
.form { max-width: 460px; }
.field { margin-bottom: var(--space-4); }
.label { display: block; font-weight: var(--fw-bold); font-size: var(--fs-small); margin-bottom: 6px; }
.hint { display: block; font-size: var(--fs-small); color: var(--text-muted); margin-bottom: 8px; }
.input, .select {
  width: 100%; background: var(--surface); border: 1.5px solid var(--border);
  border-radius: var(--r-md); padding: 13px 15px; font-size: var(--fs-body); color: var(--text);
}
.input::placeholder { color: var(--text-faint); }
.input:focus, .select:focus { outline: none; border-color: var(--color-primary); box-shadow: var(--ring); }
.field--error .input { border-color: var(--color-danger); border-width: 2px; }
.error-text { color: var(--color-danger); font-size: var(--fs-small); margin-top: 6px; }

/* ---- Social proof (faces) ------------------------------------------------- */
.social-proof { display: inline-flex; align-items: center; gap: var(--space-4); flex-wrap: wrap; }
.social-proof--center { justify-content: center; }
.faces { display: flex; }
.faces .face {
  width: 44px; height: 44px; border-radius: var(--r-pill);
  border: 3px solid var(--canvas); object-fit: cover; margin-left: -12px;
  background: var(--rlc-sky); box-shadow: var(--shadow-soft);
}
.faces .face:first-child { margin-left: 0; }
/* on white surfaces, ring should be white so faces read as overlapping */
.panel .faces .face, .card .faces .face, .cta-band .faces .face { border-color: var(--surface); }
.cta-band .faces .face { border-color: rgba(255,255,255,.9); }
.social-proof__text { font-size: var(--fs-small); color: var(--text-muted); line-height: 1.3; text-align: left; }
.social-proof__text strong { display: block; color: var(--text); font-size: var(--fs-body); }
/* single-line count-up: tight tracking, gap pulled in so faces + text read as one unit */
.social-proof:has(.social-proof__text--solo) { gap: var(--space-3); }
.social-proof__text--solo { color: var(--text); font-size: var(--fs-body); font-weight: 700; letter-spacing: -0.01em; white-space: nowrap; }
/* proportional figures keep the number tight; inline-block + right align reserves
   width so the 0→target count-up doesn't reflow the words beside it */
.rlc-count { font-variant-numeric: proportional-nums; display: inline-block; min-width: 3.4ch; text-align: right; }
/* secondary stat under the count — lighter + smaller so the count stays primary */
.social-proof__sub { display: block; font-size: var(--fs-small); font-weight: var(--fw-regular); color: var(--text-muted); letter-spacing: normal; }
.social-proof__stars { color: var(--rlc-orange); letter-spacing: 2px; font-size: 0.95rem; }
/* Homepage hero only: smaller faces + the count styled as a quiet note (same type
   as the removed hero__note — fs-small, regular, muted) keep the hero short so the
   proof section's eyebrow peeks above the mobile fold as a scroll cue. */
.hero .faces .face { width: 34px; height: 34px; border-width: 2px; margin-left: -10px; }
.hero .social-proof__text--solo {
  font-size: var(--fs-small); font-weight: var(--fw-regular);
  color: var(--text-muted); letter-spacing: normal;
}

/* ---- Pill badge ----------------------------------------------------------- */
.pill-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--rlc-lavender); color: #2c2350; font-weight: var(--fw-bold);
  font-size: var(--fs-small); padding: 7px 14px; border-radius: var(--r-pill);
}
.pill-badge--blue { background: var(--primary-a10); color: var(--color-primary); }

/* ---- Cities: festival lineup --------------------------------------------- */
/* One deep "poster" holds the page above the fold — compact head, the city
   lineup (region → flag → big tappable names), then a CTA. Names link to /join;
   brand stars (sh-6) separate them like a festival bill. Forest ground is calmer
   than the brand blue and lets the multicolour names pop while staying legible. */
.cities-fest { padding-top: var(--space-5); padding-bottom: var(--space-6); }
.fest-poster {
  position: relative; overflow: clip;
  background: var(--rlc-forest);
  background-image: radial-gradient(120% 90% at 50% -10%, rgba(177,238,143,.10), transparent 60%);
  color: #fff; border-radius: var(--r-2xl);
  padding: clamp(24px, 3.5vw, 44px) var(--gutter); text-align: center;
}
.fest-poster__head { max-width: 56ch; margin-inline: auto; }
.fest-poster__head h1 { color: #fff; margin: var(--space-2) 0 0; font-size: var(--fs-h2); line-height: var(--lh-head); }
.fest-poster__lead { margin-top: var(--space-2); color: var(--on-primary-muted); font-size: var(--fs-body); }
.fest-poster__lead a { color: var(--rlc-peach); text-decoration: underline; text-underline-offset: 2px; }

/* live-status pill — white pill, with a pulsing green dot (matches the green names) */
.live-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.16); color: #fff;
  font-weight: var(--fw-bold); font-size: var(--fs-small);
  padding: 7px 14px 7px 11px; border-radius: var(--r-pill);
}
.live-badge__dot { position: relative; display: inline-block; width: 12px; height: 12px; flex: none; }
.live-badge__dot i { position: absolute; inset: 1px; border-radius: 50%; background: var(--rlc-green); box-shadow: 0 0 6px rgba(177,238,143,.8); }
.live-badge__dot::before { content: ""; position: absolute; inset: 0; border-radius: 50%; background: var(--rlc-green); animation: livepulse 1.9s var(--ease) infinite; }
@keyframes livepulse { 0% { transform: scale(1); opacity: .55; } 70% { opacity: 0; } 100% { transform: scale(3.4); opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .live-badge__dot::before { animation: none; } }
/* homepage badge: blue dot to match the badge's blue type */
.pill-badge--blue .live-badge__dot i { background: var(--color-primary); box-shadow: 0 0 6px rgba(49,76,205,.55); }
.pill-badge--blue .live-badge__dot::before { background: var(--color-primary); }

.lineup { margin: clamp(16px, 2.5vw, 30px) auto 0; max-width: min(1040px, 100%); display: flex; flex-direction: column; gap: clamp(10px, 1.6vw, 18px); }
.lineup__region { text-align: center; min-width: 0; }
.lineup__label {
  display: block; font-size: var(--fs-label); font-weight: var(--fw-bold);
  letter-spacing: var(--tracking-label); text-transform: uppercase;
  color: var(--rlc-peach); margin-bottom: var(--space-1);
}
.lineup__names {
  display: flex; flex-wrap: wrap; align-items: center; justify-content: center;
  column-gap: .28em; row-gap: .12em; max-width: 100%; margin: 0;
  font-weight: var(--fw-xbold); letter-spacing: var(--tracking-tight);
  line-height: 1.04; font-size: clamp(1.45rem, .85rem + 2.4vw, 2.75rem);
}
.lineup__names a { color: #fff; text-decoration: none; max-width: 100%; overflow-wrap: break-word; transition: color var(--dur) var(--ease); }
/* rotate each city through a 5-colour headliner palette */
.lineup__names a:nth-of-type(5n+1) { color: #fff; }
.lineup__names a:nth-of-type(5n+2) { color: var(--rlc-orange); }
.lineup__names a:nth-of-type(5n+3) { color: var(--rlc-green); }
.lineup__names a:nth-of-type(5n+4) { color: var(--rlc-sky); }
.lineup__names a:nth-of-type(5n+5) { color: var(--rlc-pink); }
.lineup__names a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; text-decoration-thickness: 3px; }
.lineup__names a:focus-visible { outline: none; box-shadow: 0 0 0 3px rgba(255,255,255,.55); border-radius: 6px; }
/* separators alternate chartreuse/lavender so the bill reads multicolour */
.lineup__names .star { display: inline-block; width: .4em; height: .4em; color: var(--rlc-olive); vertical-align: middle; flex: none; pointer-events: none; opacity: .9; }
.lineup__names .star:nth-of-type(even) { color: var(--rlc-lavender); }
.lineup__names .star > use { width: 100%; height: 100%; }
.lineup__names .flag { font-size: .52em; vertical-align: middle; margin-right: .12em; line-height: 1; }

.fest-poster__cta { margin-top: clamp(18px, 2.5vw, 30px); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.fest-poster .btn--ghost { background: transparent; color: #fff; border-color: var(--on-primary-border); }
.fest-poster .btn--ghost:hover { background: var(--on-primary-hover); }

/* soft (peach) CTA band — cities page only; the global .cta-band stays blue.
   Double-class for specificity: this block sits above the global .cta-band rule. */
.cta-band.cta-band--soft { background: var(--rlc-peach); color: var(--text); }
.cta-band.cta-band--soft h2 { color: var(--rlc-forest); }
.cta-band.cta-band--soft .lead { color: rgba(64,59,49,.78); }

/* mobile: tighter bill; drop decorative shapes so nothing sits near the text */
@media (max-width: 600px) {
  .lineup__names { font-size: clamp(1.3rem, 1rem + 4vw, 2rem); column-gap: .22em; row-gap: .04em; }
  .lineup__names a { padding-block: 1px; }
  .lineup { gap: 16px; }
  .fest-poster .shape, .cta-band--soft .shape { display: none; }
}

/* ---- CTA band ------------------------------------------------------------- */
.cta-band { position: relative; overflow: clip; background: var(--color-primary); color: #fff;
  border-radius: var(--r-2xl); padding: clamp(40px, 6vw, 80px) var(--gutter); text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band .lead { color: var(--on-primary-muted); }
.cta-band__cta { margin-top: var(--space-6); display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn--ghost { background: transparent; color: #fff; border-color: var(--on-primary-border); } /* .60 keeps the outline ≥3:1 on blue */
.cta-band .btn--ghost:hover { background: var(--on-primary-hover); }

/* ---- Stats ---------------------------------------------------------------- */
.stats { display: flex; gap: var(--space-7); flex-wrap: wrap; justify-content: center; }
.stat__num { font-size: var(--fs-h1); font-weight: var(--fw-black); color: var(--color-primary); line-height: 1; }
.stat__label { color: var(--text-muted); margin-top: 6px; }

/* ---- Prose (legal + blog post) ------------------------------------------- */
.prose { max-width: var(--container-narrow); margin-inline: auto; }
.prose h2 { font-size: var(--fs-h2); margin: var(--space-7) 0 var(--space-3); }
.prose h3 { margin: var(--space-5) 0 var(--space-2); }
.prose p { margin-bottom: var(--space-4); color: var(--neutral-01); line-height: var(--lh-body); }
.prose ul, .prose ol { margin-bottom: var(--space-4); color: var(--neutral-01); }
.prose li { margin-bottom: 6px; }
.prose a { text-decoration: underline; }

/* ---- Flow stepper (app flow / how it works) ------------------------------ */
.flow { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-4); }
@media (max-width: 820px) { .flow { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 460px) { .flow { grid-template-columns: 1fr; } }
.flow__step { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: var(--space-5); }
.flow__n { display: inline-grid; place-items: center; width: 30px; height: 30px; border-radius: var(--r-pill);
  background: var(--primary-a10); color: var(--color-primary); font-weight: var(--fw-black); font-size: 0.9rem; }
.flow__step h4 { margin: var(--space-3) 0 4px; font-size: var(--fs-h3); }
.flow__step p { color: var(--text-muted); font-size: var(--fs-small); }

/* ---- Two-column media split ---------------------------------------------- */
.media-2 { display: grid; grid-template-columns: 1fr 1fr; gap: var(--space-7); align-items: center; }
@media (max-width: 820px) { .media-2 { grid-template-columns: 1fr; gap: var(--space-5); } }
.media-2__art { border-radius: var(--r-xl); background: var(--neutral-04); padding: var(--space-6); }
.media-2__art img { margin-inline: auto; }

/* ---- Teaser header row (heading left, link right) ------------------------ */
.row-head { display: flex; align-items: end; justify-content: space-between; gap: var(--space-4); margin-bottom: var(--space-6); flex-wrap: wrap; }
.row-head h2 { margin: 0; }

/* ---- App phone showcase --------------------------------------------------- */
.app-phone-wrap { position: relative; display: grid; place-items: center; overflow: clip; }
.app-phone {
  width: 100%; max-width: 272px; position: relative; z-index: var(--z-content);
  filter: drop-shadow(0 30px 54px rgba(26, 26, 26, 0.22));
}

/* ---- UGC social proof (uniform grid) ------------------------------------- */
.ugc-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--space-3); }
.ugc-grid img {
  width: 100%; aspect-ratio: 1 / 1; object-fit: cover;
  border-radius: var(--r-lg); box-shadow: var(--shadow-soft); display: block;
}
@media (max-width: 900px) { .ugc-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 520px) { .ugc-grid { grid-template-columns: repeat(2, 1fr); } }

/* ---- Proof marquee — auto-scrolling photo ribbon + member ticker ---------- */
/* Delightful, motion-led social proof. marquee.js clones each track's children
   once and adds `is-ready`, so translateX(-50%) loops seamlessly. Spacing uses
   per-item margin (not flex gap) so the half-width offset lands exactly on the
   clone — no jump. Without JS, or under reduced-motion, the ribbon degrades to
   a static, manually-scrollable row. Hover/focus pauses the scroll. */
.proof-marquee { position: relative; overflow: hidden; }
.proof-marquee:not(.is-ready) { overflow-x: auto; -webkit-overflow-scrolling: touch; }
/* soft edge fades so cards melt into the page instead of hard-cutting */
.proof-marquee::before, .proof-marquee::after {
  content: ""; position: absolute; top: 0; bottom: 0; width: 9%; max-width: 96px;
  z-index: 2; pointer-events: none;
}
.proof-marquee::before { left: 0; background: linear-gradient(90deg, var(--canvas), transparent); }
.proof-marquee::after  { right: 0; background: linear-gradient(270deg, var(--canvas), transparent); }
.proof-track { display: flex; width: max-content; padding-block: var(--space-2); }
.proof-marquee.is-ready .proof-track { animation: proof-scroll var(--marquee-dur, 60s) linear infinite; }
.proof-track--reverse { animation-direction: reverse; }
.proof-marquee.is-ready:hover .proof-track,
.proof-marquee.is-ready:focus-within .proof-track { animation-play-state: paused; }
@keyframes proof-scroll { to { transform: translateX(-50%); } }

.proof-photo { flex: 0 0 auto; width: 248px; height: 186px; margin-right: var(--space-3);
  object-fit: cover; border-radius: var(--r-lg); box-shadow: var(--shadow-soft); display: block; }
@media (max-width: 560px) { .proof-photo { width: 196px; height: 147px; } }

.proof-chip { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 11px;
  margin-right: var(--space-3); background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-pill); padding: 9px 20px 9px 9px; box-shadow: var(--shadow-soft); white-space: nowrap; }
.proof-chip__dot { width: 34px; height: 34px; border-radius: var(--r-pill); flex: 0 0 auto;
  display: grid; place-items: center; color: #fff; font-weight: var(--fw-black); font-size: .85rem; }
.proof-chip__name { font-weight: var(--fw-bold); color: var(--text); font-size: var(--fs-small); }
.proof-chip__field { color: var(--text-muted); font-size: var(--fs-small); }
/* cycle the avatar dot through brand colours (white initials stay AA on each) */
.proof-track .proof-chip:nth-child(3n+1) .proof-chip__dot { background: var(--rlc-blue); }
.proof-track .proof-chip:nth-child(3n+2) .proof-chip__dot { background: var(--rlc-orange); }
.proof-track .proof-chip:nth-child(3n)   .proof-chip__dot { background: var(--rlc-lavender-ink); }

@media (prefers-reduced-motion: reduce) {
  .proof-marquee.is-ready { overflow-x: auto; }
  .proof-marquee.is-ready .proof-track { animation: none; }
}

/* ---- Footer --------------------------------------------------------------- */
.footer { background: var(--surface); border-top: 1px solid var(--border); margin-top: var(--space-9); }
.footer__top { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: var(--space-6);
  padding-block: var(--space-8) var(--space-7); }
@media (max-width: 820px) { .footer__top { grid-template-columns: 1fr 1fr; gap: var(--space-6); } }
@media (max-width: 520px) { .footer__top { grid-template-columns: 1fr; } }
.footer__brand { text-align: left; }
.footer__brand img { height: 30px; width: auto; margin: 0 0 var(--space-3); display: block; }
.footer__brand p { color: var(--text-muted); font-size: var(--fs-small); max-width: 30ch; }
.footer__col h4 { font-size: var(--fs-label); text-transform: uppercase; letter-spacing: var(--tracking-label);
  color: var(--text-muted); margin-bottom: var(--space-3); }
.footer__col ul { list-style: none; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.footer__col a { color: var(--text); font-weight: var(--fw-medium); font-size: var(--fs-small); }
.footer__col a:hover { color: var(--color-primary); }
.footer__social { display: flex; gap: 10px; margin-top: var(--space-2); }
.footer__social a { width: 36px; height: 36px; border-radius: var(--r-pill); background: var(--black);
  display: grid; place-items: center; }
.footer__social svg { width: 17px; height: 17px; fill: #fff; }
.footer__bottom { display: flex; justify-content: space-between; gap: var(--space-4); flex-wrap: wrap;
  padding-block: var(--space-5); border-top: 1px solid var(--border); color: var(--text-muted); font-size: var(--fs-small); }
.footer__bottom a { color: var(--text-muted); }

/* ---- Scroll reveal ------------------------------------------------------- */
/* The .reveal class is added by reveal.js, so no-JS visitors never see hidden
   content. Elements fade + rise as they scroll into view; reduced-motion off. */
.reveal { opacity: 0; transform: translateY(18px);
  transition: opacity .7s var(--ease), transform .7s var(--ease); }
.reveal.is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* ---- Cookie-consent banner (injected by chrome.js, gates all pixels) ------ */
/* Fixed bottom card. Non-modal (doesn't trap focus or block the page) but sits
   above nav/overlay via --z-modal. Reject + Accept get equal visual weight. */
.consent {
  position: fixed; inset-inline: 0; bottom: 0;
  z-index: var(--z-modal);
  display: flex; justify-content: center;
  padding: var(--space-4) var(--gutter);
  pointer-events: none; /* let clicks through the gutter; re-enabled on the card */
}
.consent__inner {
  pointer-events: auto;
  width: 100%; max-width: 720px;
  display: flex; align-items: center; gap: var(--space-4); flex-wrap: wrap;
  padding: var(--space-4) var(--space-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
}
.consent__text {
  flex: 1 1 320px; margin: 0;
  font-size: 0.9rem; line-height: 1.5; color: var(--text-muted);
}
.consent__text a { color: var(--color-primary); text-decoration: underline; }
.consent__actions { display: flex; gap: var(--space-3); flex-shrink: 0; }
@media (max-width: 560px) {
  .consent__inner { flex-direction: column; align-items: stretch; }
  .consent__actions .btn { flex: 1; }
}
