/*
  Limelight marketing site - shared design system
  ------------------------------------------------
  Tokens, typography, nav, footer, common section patterns,
  feature visuals and responsive rules used across every page.

  Per-page additions (hero compositions, page-only animations, special visuals)
  live in an inline <style> block on each page.

  Canonical nav + footer markup (copy-paste into each page <body>):

    <nav class="topbar">
      <div class="inner">
        <a href="/" class="wordmark"><img src="/assets/app-icon.png" alt="" /><span>Limelight</span></a>
        <div class="links">
          <a href="/features/" class="underline-slide">Features</a>
          <a href="/who-its-for/" class="underline-slide">Who it's for</a>
          <a href="/pricing/" class="underline-slide">Pricing</a>
          <a href="/about/" class="underline-slide">About</a>
          <a href="/support/" class="underline-slide">Support</a>
        </div>
      </div>
    </nav>

    <footer class="foot">
      <div class="inner">
        <div class="wordmark"><img src="/assets/app-icon.png" alt="" /><span>Limelight</span></div>
        <nav>
          <a href="/safeguarding/">Safeguarding</a>
          <a href="/spotlight/">Spotlight</a>
          <a href="/support/">Support</a>
          <a href="/privacy/">Privacy</a>
          <a href="/terms/">Terms</a>
          <a href="/contact/">Contact</a>
        </nav>
        <span class="copy">&copy; Limelight Labs <span data-year></span></span>
      </div>
    </footer>
*/

:root {
  --ink: #15121c;
  --ink-soft: #4a3f5c;
  --muted: #6b5f7a;
  --canvas: #faf7fd;
  --paper: #ffffff;
  --purple: #7C4FA4;
  --purple-deep: #4a2a6b;
  --lilac: #eadbf5;
  --lime: #8ED946;
  --ticket-cream: #f4ead8;

  --display: 'Fraunces', 'Georgia', serif;
  --body: 'Geist', -apple-system, BlinkMacSystemFont, sans-serif;
  --rounded: ui-rounded, 'SF Pro Rounded', 'Nunito', system-ui, -apple-system, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
  font-family: var(--body);
  background: var(--canvas);
  color: var(--ink);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  font-feature-settings: "ss01", "cv01";
  overflow-x: hidden;
}

/* Grain overlay for printed-paper feel */
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 1;
  opacity: 0.035;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='180' height='180' viewBox='0 0 180 180'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
  mix-blend-mode: multiply;
}

a {
  color: var(--purple);
  text-decoration: none;
  position: relative;
  transition: color 0.2s ease;
}

a.underline-slide::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: -2px;
  width: 100%;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.35s cubic-bezier(0.2, 0.8, 0.2, 1);
}
a.underline-slide:hover::after { transform: scaleX(1); }

/* Running marks - ACT I, ACT II etc */
.act-mark {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 14px;
  letter-spacing: 0.12em;
  color: var(--purple);
  text-transform: uppercase;
  display: inline-flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 24px;
}
.act-mark::before,
.act-mark::after {
  content: '';
  flex: 0 0 28px;
  height: 1px;
  background: var(--purple);
  opacity: 0.5;
}
.act-mark.solo::after { display: none; }

/* -------- Navigation -------- */
nav.topbar {
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  background: rgba(250, 247, 253, 0.7);
  border-bottom: 1px solid var(--lilac);
}
nav.topbar .inner {
  max-width: 1180px;
  margin: 0 auto;
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.wordmark {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 20px;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.wordmark img {
  width: 28px;
  height: 28px;
  border-radius: 7px;
}
/* Topbar wordmark matches the in-app login screen (SF Pro Rounded Bold) */
nav.topbar .wordmark {
  font-family: var(--rounded);
  font-weight: 700;
  letter-spacing: -0.005em;
}
nav.topbar .links {
  display: inline-flex;
  gap: 28px;
  font-size: 14px;
  font-weight: 500;
}
nav.topbar .links a {
  color: var(--ink-soft);
}
nav.topbar .links a:hover { color: var(--purple); }
nav.topbar .links a[aria-current="page"] {
  color: var(--purple);
}

/* -------- Reusable hero scaffolding (page-specific layouts add their own) -------- */
.kicker {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 16px;
  color: var(--purple);
  letter-spacing: 0.04em;
  margin-bottom: 24px;
}

.display-1 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 30, 'WONK' 0;
  font-size: clamp(44px, 6.4vw, 96px);
  line-height: 0.98;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.display-1 em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  color: var(--purple);
}

.display-2 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.display-2 em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  color: var(--purple);
}

.lede {
  font-size: 20px;
  line-height: 1.55;
  color: var(--ink-soft);
}

/* -------- Store badges row -------- */
.store-row {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}
.store-row a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 54px;
  cursor: pointer;
  user-select: none;
  transition: opacity 0.2s ease;
}
.store-row a:hover { opacity: 0.82; }
.store-row img {
  display: block;
  height: 54px;
  width: auto;
  user-select: none;
  -webkit-user-drag: none;
}
.store-row a::after { display: none; }

/* -------- Page-load animation utility -------- */
@keyframes rise {
  from { opacity: 0; transform: translateY(18px); }
  to   { opacity: 1; transform: translateY(0); }
}
.rise { animation: rise 0.9s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.rise-1 { animation-delay: 0.05s; }
.rise-2 { animation-delay: 0.12s; }
.rise-3 { animation-delay: 0.22s; }
.rise-4 { animation-delay: 0.32s; }

@keyframes float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}

/* -------- Divider -------- */
.section-divider {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 32px;
}
.section-divider .rule {
  height: 1px;
  background: var(--lilac);
}

/* -------- Act band (sections) -------- */
section.act {
  max-width: 1180px;
  margin: 0 auto;
  padding: 104px 32px;
}

section.act h2 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-size: clamp(34px, 4.5vw, 56px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 720px;
  margin-bottom: 20px;
}
section.act h2 em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  color: var(--purple);
}

section.act .intro {
  font-size: 19px;
  color: var(--ink-soft);
  max-width: 620px;
  line-height: 1.55;
}

/* Drop cap on opening paragraph */
section.act .intro--drop::first-letter,
.drop-cap::first-letter {
  font-family: var(--display);
  font-weight: 500;
  font-size: 72px;
  line-height: 0.85;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--purple);
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}

/* Alternating feature blocks */
.features {
  margin-top: 72px;
  display: flex;
  flex-direction: column;
  gap: 88px;
}
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.feature-row.reverse .feature-text { order: 2; }
.feature-row .feature-num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-size: 13px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
  display: block;
  margin-bottom: 14px;
}
.feature-row h3 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 96, 'SOFT' 40;
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.015em;
  margin-bottom: 18px;
  color: var(--ink);
}
.feature-row h3 em {
  font-style: italic;
  color: var(--purple);
  font-weight: 400;
}
.feature-row p {
  color: var(--ink-soft);
  font-size: 17px;
  line-height: 1.65;
  max-width: 480px;
}
.feature-row p + p { margin-top: 14px; }

.feature-row .feature-more {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 15px;
  color: var(--purple);
}
.feature-row .feature-more::after {
  content: '\2192';
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.feature-row .feature-more:hover::after { transform: translateX(4px); }

.feature-row ul.feature-bullets {
  margin-top: 18px;
  padding-left: 0;
  list-style: none;
  max-width: 480px;
}
.feature-row ul.feature-bullets li {
  position: relative;
  padding: 6px 0 6px 22px;
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
  border-bottom: 1px dotted var(--lilac);
}
.feature-row ul.feature-bullets li:last-child { border-bottom: 0; }
.feature-row ul.feature-bullets li::before {
  content: '\2022';
  position: absolute;
  left: 4px;
  top: 6px;
  color: var(--purple);
  font-weight: 700;
}

/* Feature illustrations: typographic/abstract, no stock-art */
.feature-visual {
  position: relative;
  aspect-ratio: 4 / 3;
  border: 1px solid var(--lilac);
  border-radius: 20px;
  overflow: hidden;
  background: var(--paper);
}

.visual-rehearsals .grid-days {
  position: absolute;
  inset: 28px;
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  grid-template-rows: auto 1fr;
  gap: 6px 4px;
  font-family: var(--display);
  font-weight: 500;
}
.visual-rehearsals .grid-days .day {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--lilac);
}
.visual-rehearsals .grid-days .slot {
  border-radius: 6px;
  font-size: 10px;
  padding: 6px 4px;
  line-height: 1.2;
  font-family: var(--body);
  font-weight: 500;
}
.visual-rehearsals .slot.purple { background: var(--purple); color: #fff; }
.visual-rehearsals .slot.soft   { background: var(--lilac); color: var(--purple-deep); }
.visual-rehearsals .slot.ink    { background: var(--ink); color: var(--canvas); }

.visual-scripts .script-page {
  position: absolute;
  top: 24px;
  left: 32px;
  right: 80px;
  bottom: 20px;
  background: var(--canvas);
  border-radius: 8px 8px 16px 16px;
  border: 1px solid var(--lilac);
  box-shadow: 0 12px 30px -16px rgba(124,79,164,0.25);
  padding: 22px 24px;
  font-family: var(--display);
  font-weight: 500;
  transform: rotate(-1.5deg);
  overflow: hidden;
}
.visual-scripts .script-page .scene {
  font-size: 11px;
  letter-spacing: 0.2em;
  color: var(--purple);
  text-transform: uppercase;
  margin-bottom: 10px;
}
.visual-scripts .script-page .line {
  font-size: 11px;
  color: var(--ink);
  line-height: 1.55;
  margin-bottom: 4px;
}
.visual-scripts .script-page .line .name {
  font-style: italic;
  color: var(--purple-deep);
  font-weight: 500;
  margin-right: 6px;
}
.visual-scripts .page-2 {
  position: absolute;
  top: 40px;
  left: 60px;
  right: 48px;
  bottom: 38px;
  background: var(--paper);
  border-radius: 8px;
  border: 1px solid var(--lilac);
  transform: rotate(2deg);
  z-index: -1;
}

.visual-tracks .player {
  position: absolute;
  inset: 32px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 20px;
}
.visual-tracks .track {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: 12px;
  border: 1px solid var(--lilac);
  background: var(--canvas);
}
.visual-tracks .track.playing {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
}
.visual-tracks .track .num {
  font-family: var(--display);
  font-style: italic;
  font-size: 12px;
  opacity: 0.7;
  width: 20px;
}
.visual-tracks .track .title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 14px;
  flex: 1;
}
.visual-tracks .track .dur {
  font-family: var(--body);
  font-size: 11px;
  opacity: 0.7;
}
.visual-tracks .bars {
  display: inline-flex;
  gap: 2px;
  align-items: end;
  height: 14px;
  width: 18px;
}
.visual-tracks .bars span {
  width: 2px;
  background: currentColor;
  border-radius: 1px;
  animation: barDance 1.3s infinite ease-in-out;
}
.visual-tracks .bars span:nth-child(1) { height: 30%; animation-delay: 0s; }
.visual-tracks .bars span:nth-child(2) { height: 70%; animation-delay: 0.12s; }
.visual-tracks .bars span:nth-child(3) { height: 45%; animation-delay: 0.24s; }
.visual-tracks .bars span:nth-child(4) { height: 90%; animation-delay: 0.36s; }
.visual-tracks .bars span:nth-child(5) { height: 55%; animation-delay: 0.48s; }

@keyframes barDance {
  0%, 100% { transform: scaleY(1); }
  50%      { transform: scaleY(0.4); }
}

.visual-chat .messages {
  position: absolute;
  inset: 32px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  gap: 10px;
}
.visual-chat .bubble {
  max-width: 78%;
  padding: 10px 14px;
  border-radius: 16px;
  font-size: 13px;
  line-height: 1.45;
  background: var(--lilac);
  color: var(--ink);
  align-self: flex-start;
  font-family: var(--body);
}
.visual-chat .bubble.me {
  background: var(--purple);
  color: #fff;
  align-self: flex-end;
}
.visual-chat .bubble .who {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 11px;
  letter-spacing: 0.04em;
  margin-bottom: 2px;
  color: var(--purple);
}
.visual-chat .bubble.me .who { color: rgba(255,255,255,0.7); }

/* Safeguarded / audit-log visual */
.visual-safeguard {
  background: var(--paper);
}
.visual-safeguard .audit {
  position: absolute;
  inset: 26px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.visual-safeguard .audit-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--lilac);
}
.visual-safeguard .audit-title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 13px;
  color: var(--ink);
  letter-spacing: 0.02em;
}
.visual-safeguard .audit-title em {
  font-style: italic;
  color: var(--purple);
}
.visual-safeguard .audit-period {
  font-family: var(--display);
  font-style: italic;
  font-size: 11px;
  color: var(--muted);
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.visual-safeguard .channels {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 2px;
}
.visual-safeguard .channel {
  font-family: var(--body);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.04em;
  padding: 3px 8px;
  border-radius: 999px;
  background: transparent;
  color: var(--muted);
  border: 1px solid var(--lilac);
  text-decoration: line-through;
  text-decoration-color: var(--muted);
  text-decoration-thickness: 1px;
}
.visual-safeguard .channel.kept {
  background: var(--purple);
  color: #fff;
  border-color: var(--purple);
  text-decoration: none;
}
.visual-safeguard .row {
  display: grid;
  grid-template-columns: 44px 96px 1fr;
  align-items: baseline;
  gap: 10px;
  font-size: 11px;
  line-height: 1.4;
}
.visual-safeguard .row .t {
  font-family: var(--body);
  font-variant-numeric: tabular-nums;
  color: var(--muted);
  font-weight: 500;
}
.visual-safeguard .row .w {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--purple-deep);
}
.visual-safeguard .row .m {
  color: var(--ink);
}
.visual-safeguard .stamp {
  position: absolute;
  right: 22px;
  bottom: 20px;
  padding: 6px 12px 7px;
  border: 1.5px solid var(--purple);
  border-radius: 8px;
  transform: rotate(-6deg);
  background: rgba(255,255,255,0.7);
  text-align: center;
  line-height: 1.05;
}
.visual-safeguard .stamp .s1 {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
}
.visual-safeguard .stamp .s2 {
  display: block;
  font-family: var(--display);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.06em;
  color: var(--purple-deep);
  text-transform: uppercase;
}

/* -------- Who it's for / audience list -------- */
.audience-band {
  background: var(--paper);
  border-top: 1px solid var(--lilac);
  border-bottom: 1px solid var(--lilac);
}
.audience-band .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 104px 32px;
}
.audience-list {
  margin-top: 56px;
  display: flex;
  flex-direction: column;
  max-width: 860px;
}
.audience-item {
  display: flex;
  align-items: baseline;
  padding: 22px 0;
  border-bottom: 1px dotted var(--lilac);
  gap: 18px;
  font-size: 22px;
  font-family: var(--display);
  font-weight: 400;
  letter-spacing: -0.005em;
  color: var(--ink);
}
.audience-item:last-child { border-bottom: 0; }
.audience-item .no {
  font-style: italic;
  color: var(--purple);
  font-weight: 500;
  font-size: 14px;
  min-width: 42px;
  letter-spacing: 0.08em;
}
.audience-item .name { flex: 1; }
.audience-item a.name {
  color: var(--ink);
  transition: color 0.2s ease;
}
.audience-item a.name:hover { color: var(--purple); }
.audience-item .leaders {
  flex: 1;
  border-bottom: 1px dotted var(--muted);
  margin: 0 4px 6px;
  height: 0;
  opacity: 0.4;
}
.audience-item .role {
  font-family: var(--body);
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

/* -------- Press quotes / testimonials -------- */
.press-band {
  background: var(--paper);
  border-top: 1px solid var(--lilac);
  border-bottom: 1px solid var(--lilac);
}
.press-band .wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 96px 32px;
}
.press-band h2 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-size: clamp(30px, 3.6vw, 44px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  color: var(--ink);
  max-width: 640px;
  margin-bottom: 16px;
}
.press-band h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--purple);
}
.press-band .sub {
  color: var(--ink-soft);
  font-size: 17px;
  max-width: 560px;
  margin-bottom: 48px;
}

.press-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.press-card {
  background: var(--canvas);
  border: 1px solid var(--lilac);
  border-radius: 18px;
  padding: 28px 26px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
}
.press-card .stars {
  font-family: var(--display);
  font-style: italic;
  color: var(--purple);
  font-size: 14px;
  letter-spacing: 0.2em;
}
.press-card blockquote {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 96, 'SOFT' 40;
  font-size: 19px;
  line-height: 1.35;
  color: var(--ink);
  letter-spacing: -0.005em;
  position: relative;
  padding-left: 0;
}
.press-card blockquote::before {
  content: '\201C';
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 56px;
  line-height: 0.6;
  color: var(--purple);
  margin-bottom: 4px;
}
.press-card .attribution {
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px dotted var(--lilac);
  font-size: 13px;
  line-height: 1.4;
  color: var(--ink-soft);
}
.press-card .attribution .who {
  display: block;
  font-family: var(--body);
  font-weight: 600;
  color: var(--ink);
  font-size: 14px;
  margin-bottom: 2px;
}
.press-card .attribution .where {
  font-family: var(--display);
  font-style: italic;
  color: var(--muted);
}

/* Single large pull-quote (used inline on long pages) */
.pull-quote {
  max-width: 880px;
  margin: 48px auto;
  padding: 36px 40px;
  border-left: 3px solid var(--purple);
  background: var(--paper);
  border-radius: 0 20px 20px 0;
}
.pull-quote blockquote {
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 80, 'WONK' 1;
  font-size: clamp(22px, 2.4vw, 30px);
  line-height: 1.3;
  color: var(--ink);
  letter-spacing: -0.01em;
  margin-bottom: 18px;
}
.pull-quote blockquote em {
  color: var(--purple);
}
.pull-quote .attribution {
  font-size: 14px;
  color: var(--ink-soft);
  font-family: var(--body);
}
.pull-quote .attribution .who {
  font-weight: 600;
  color: var(--ink);
}
.pull-quote .attribution .where {
  font-family: var(--display);
  font-style: italic;
  color: var(--muted);
  margin-left: 8px;
}

@media (max-width: 880px) {
  .press-grid { grid-template-columns: 1fr; }
  .press-band .wrap { padding: 72px 24px; }
  .pull-quote { margin: 36px 0; padding: 28px 24px; border-radius: 0 16px 16px 0; }
}

/* -------- Audience sub-page template -------- */
.aud-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 88px 32px 56px;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px;
  align-items: center;
}
.aud-hero h1 {
  max-width: 720px;
  margin-bottom: 24px;
}
.aud-hero .lede {
  max-width: 560px;
  margin-bottom: 28px;
}
.aud-hero .ctas {
  display: inline-flex;
  gap: 12px;
  flex-wrap: wrap;
}
.aud-hero .btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 22px;
  border-radius: 999px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 15px;
  letter-spacing: 0.01em;
  transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease;
}
.aud-hero .btn::after { display: none; }
.aud-hero .btn.primary {
  background: var(--ink);
  color: var(--canvas);
}
.aud-hero .btn.primary:hover { background: var(--purple); transform: translateY(-1px); }
.aud-hero .btn.ghost {
  background: transparent;
  color: var(--ink);
  border: 1px solid var(--lilac);
}
.aud-hero .btn.ghost:hover { border-color: var(--purple); color: var(--purple); }

.aud-hero-art {
  position: relative;
  aspect-ratio: 1;
  max-width: 380px;
  justify-self: center;
  border-radius: 24px;
  background: linear-gradient(140deg, var(--lilac) 0%, var(--canvas) 100%);
  border: 1px solid var(--lilac);
  padding: 28px;
  overflow: hidden;
}
.aud-hero-art .marquee {
  position: absolute;
  inset: 24px;
  border: 1.5px solid var(--purple);
  border-radius: 16px;
  padding: 24px 20px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: var(--paper);
}
.aud-hero-art .marquee .top {
  font-family: var(--display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.2em;
  color: var(--purple);
  text-transform: uppercase;
}
.aud-hero-art .marquee .title {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 80, 'WONK' 1;
  font-style: italic;
  font-size: clamp(34px, 4vw, 48px);
  line-height: 1.04;
  color: var(--ink);
  letter-spacing: -0.02em;
}
.aud-hero-art .marquee .title em { color: var(--purple); }
.aud-hero-art .marquee .foot {
  font-family: var(--display);
  font-size: 12px;
  letter-spacing: 0.12em;
  color: var(--muted);
  text-transform: uppercase;
  border-top: 1px dotted var(--lilac);
  padding-top: 12px;
}
.aud-hero-art .marquee .foot em {
  font-style: italic;
  color: var(--purple);
}

/* "What they use it for" - 3 use-case cards */
.use-cases {
  max-width: 1180px;
  margin: 0 auto;
  padding: 64px 32px;
}
.use-cases h2 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  max-width: 720px;
}
.use-cases h2 em { font-style: italic; font-weight: 400; color: var(--purple); }

.use-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.use-card {
  padding: 28px 26px;
  background: var(--paper);
  border: 1px solid var(--lilac);
  border-radius: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.use-card .num {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  font-size: 12px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--purple);
}
.use-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 96, 'SOFT' 40;
  font-size: 22px;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--ink);
}
.use-card h3 em { font-style: italic; color: var(--purple); font-weight: 400; }
.use-card p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.55;
}

/* "Why it works for them" - 4 pain/answer pairs */
.why-band {
  background: var(--paper);
  border-top: 1px solid var(--lilac);
  border-bottom: 1px solid var(--lilac);
}
.why-band .wrap {
  max-width: 1080px;
  margin: 0 auto;
  padding: 88px 32px;
}
.why-band h2 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 36px;
  max-width: 720px;
}
.why-band h2 em { font-style: italic; font-weight: 400; color: var(--purple); }

.why-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px 48px;
}
.why-item {
  border-top: 1px solid var(--lilac);
  padding-top: 20px;
}
.why-item .pain {
  font-family: var(--display);
  font-style: italic;
  font-size: 14px;
  color: var(--muted);
  letter-spacing: 0.02em;
  margin-bottom: 8px;
}
.why-item .pain::before { content: '"'; color: var(--purple); margin-right: 2px; }
.why-item .pain::after { content: '"'; color: var(--purple); margin-left: 2px; }
.why-item h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 21px;
  line-height: 1.25;
  letter-spacing: -0.01em;
  color: var(--ink);
  margin-bottom: 8px;
}
.why-item h3 em { font-style: italic; color: var(--purple); font-weight: 400; }
.why-item p {
  color: var(--ink-soft);
  font-size: 15px;
  line-height: 1.6;
}

/* Cross-links to sibling audience pages */
.cross-links {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 32px 0;
}
.cross-links h2 {
  font-family: var(--display);
  font-weight: 500;
  font-style: italic;
  font-size: 22px;
  color: var(--ink-soft);
  margin-bottom: 22px;
  letter-spacing: -0.005em;
}
.cross-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.cross-link {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 18px 22px;
  border: 1px solid var(--lilac);
  border-radius: 14px;
  font-family: var(--display);
  font-weight: 500;
  font-size: 16px;
  color: var(--ink);
  background: var(--paper);
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.cross-link::after {
  content: '\2192';
  color: var(--purple);
  font-size: 18px;
  transition: transform 0.25s cubic-bezier(0.2, 0.8, 0.2, 1);
}
.cross-link:hover {
  border-color: var(--purple);
  transform: translateY(-2px);
}
.cross-link:hover::after { transform: translateX(4px); }

@media (max-width: 980px) {
  .aud-hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 64px 24px 40px;
  }
  .aud-hero-art { max-width: 280px; order: -1; }
  .use-grid { grid-template-columns: 1fr; }
  .why-grid { grid-template-columns: 1fr; gap: 24px; }
  .cross-grid { grid-template-columns: 1fr; }
  .why-band .wrap { padding: 64px 24px; }
}

/* -------- Doc pages (Privacy, Terms) -------- */
.doc-hero {
  max-width: 1180px;
  margin: 0 auto;
  padding: 80px 32px 36px;
}
.doc-hero h1 {
  max-width: 880px;
  margin-bottom: 18px;
}
.doc-hero .meta {
  font-family: var(--display);
  font-style: italic;
  color: var(--muted);
  font-size: 14px;
  letter-spacing: 0.04em;
}

.doc-layout {
  max-width: 1180px;
  margin: 0 auto;
  padding: 24px 32px 96px;
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 64px;
  align-items: flex-start;
}

.doc-toc {
  position: sticky;
  top: 96px;
  padding: 20px 0;
  border-top: 1px solid var(--lilac);
  border-bottom: 1px solid var(--lilac);
}
.doc-toc .toc-mark {
  display: block;
  font-family: var(--display);
  font-style: italic;
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.doc-toc ol {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: section;
}
.doc-toc ol li {
  counter-increment: section;
  padding: 6px 0;
  border-bottom: 1px dotted var(--lilac);
}
.doc-toc ol li:last-child { border-bottom: 0; }
.doc-toc ol li::before {
  content: counter(section) ".";
  font-family: var(--display);
  font-style: italic;
  font-size: 12px;
  color: var(--purple);
  margin-right: 8px;
  font-variant-numeric: tabular-nums;
}
.doc-toc ol li a {
  font-size: 13px;
  color: var(--ink);
  line-height: 1.3;
}
.doc-toc ol li a:hover { color: var(--purple); }

.doc-body {
  max-width: 720px;
  font-size: 16px;
  color: var(--ink-soft);
  line-height: 1.65;
}
.doc-body > section {
  counter-increment: docsection;
  padding: 36px 0;
  border-top: 1px solid var(--lilac);
  scroll-margin-top: 96px;
}
.doc-body { counter-reset: docsection; }
.doc-body > section:first-of-type { border-top: 0; padding-top: 8px; }
.doc-body > section > h2 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-size: clamp(24px, 2.6vw, 32px);
  line-height: 1.12;
  letter-spacing: -0.015em;
  color: var(--ink);
  margin-bottom: 14px;
  position: relative;
}
.doc-body > section > h2::before {
  content: counter(docsection) ".";
  display: inline-block;
  margin-right: 14px;
  font-family: var(--display);
  font-style: italic;
  font-weight: 400;
  color: var(--purple);
  font-variant-numeric: tabular-nums;
}
.doc-body > section > h2 em {
  font-style: italic;
  font-weight: 400;
  color: var(--purple);
}
.doc-body p { margin-bottom: 14px; color: var(--ink); }
.doc-body p:last-child { margin-bottom: 0; }
.doc-body ul {
  margin: 6px 0 18px;
  padding-left: 18px;
  list-style: none;
}
.doc-body ul li {
  position: relative;
  padding: 4px 0 4px 18px;
  color: var(--ink);
}
.doc-body ul li::before {
  content: '\2014';
  position: absolute;
  left: 0;
  color: var(--purple);
  font-weight: 400;
}
.doc-body strong { color: var(--ink); font-weight: 600; }
.doc-body a { color: var(--purple); font-weight: 500; }
.doc-body a:hover { text-decoration: underline; }

.doc-body section:first-of-type p:first-of-type::first-letter {
  font-family: var(--display);
  font-weight: 500;
  font-size: 64px;
  line-height: 0.85;
  float: left;
  margin: 6px 12px 0 0;
  color: var(--purple);
  font-variation-settings: 'opsz' 144, 'SOFT' 50;
}

/* Callout block for legal/safeguarding pages */
.doc-callout {
  margin: 28px 0;
  padding: 18px 22px;
  border-left: 3px solid var(--purple);
  background: var(--paper);
  border-radius: 0 12px 12px 0;
  font-family: var(--body);
  font-size: 15px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.doc-callout strong {
  font-family: var(--display);
  font-style: italic;
  font-weight: 500;
  color: var(--purple);
  letter-spacing: 0.02em;
  text-transform: uppercase;
  font-size: 12px;
  display: block;
  margin-bottom: 6px;
  letter-spacing: 0.08em;
}

@media (max-width: 980px) {
  .doc-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .doc-toc {
    position: static;
    padding: 16px 0;
  }
  .doc-toc ol li { padding: 5px 0; }
}

/* -------- Stage door / FAQ callboard (Support page) -------- */
.callboard {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 32px 80px;
}
.callboard h2 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-size: clamp(28px, 3.4vw, 42px);
  line-height: 1.08;
  letter-spacing: -0.02em;
  margin-bottom: 18px;
}
.callboard h2 em { font-style: italic; font-weight: 400; color: var(--purple); }
.callboard .sub {
  color: var(--ink-soft);
  font-size: 17px;
  margin-bottom: 36px;
  max-width: 580px;
}

.pin-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
}
.pin-card {
  position: relative;
  background: var(--paper);
  border: 1px solid var(--lilac);
  border-radius: 14px;
  padding: 24px 26px 22px;
  font-size: 15px;
  line-height: 1.6;
  color: var(--ink-soft);
  transition: transform 0.3s cubic-bezier(0.2, 0.8, 0.2, 1), box-shadow 0.3s ease;
}
.pin-card:hover {
  transform: translateY(-3px) rotate(-0.4deg);
  box-shadow: 0 14px 30px -16px rgba(124, 79, 164, 0.3);
}
.pin-card::before {
  content: '';
  position: absolute;
  top: -8px;
  left: 50%;
  transform: translateX(-50%);
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 4px 10px -2px rgba(124, 79, 164, 0.5);
}
.pin-card h3 {
  font-family: var(--display);
  font-weight: 500;
  font-size: 19px;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--ink);
  margin-bottom: 10px;
}
.pin-card h3 em { font-style: italic; color: var(--purple); font-weight: 400; }
.pin-card p { margin-bottom: 6px; }
.pin-card p:last-child { margin-bottom: 0; }
.pin-card a { font-weight: 500; }

/* Subtle 2nd & 4th card tilt for noticeboard feel */
.pin-grid > .pin-card:nth-child(4n+2) { transform: rotate(0.4deg); }
.pin-grid > .pin-card:nth-child(4n+3) { transform: rotate(-0.3deg); }
.pin-grid > .pin-card:hover { transform: translateY(-3px) rotate(-0.4deg); }

@media (max-width: 760px) {
  .pin-grid { grid-template-columns: 1fr; }
  .pin-grid > .pin-card:nth-child(4n+2),
  .pin-grid > .pin-card:nth-child(4n+3) { transform: none; }
}

/* -------- Final CTA -------- */
.curtain {
  padding: 140px 32px 120px;
  text-align: center;
  max-width: 900px;
  margin: 0 auto;
  position: relative;
}
.curtain .lime-mark {
  width: 72px;
  height: 72px;
  border-radius: 20%;
  margin: 0 auto 32px;
  background-image: url('/assets/app-icon.png');
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 48px -20px rgba(124, 79, 164, 0.5);
}
.curtain h2 {
  font-family: var(--display);
  font-weight: 500;
  font-variation-settings: 'opsz' 144, 'SOFT' 40;
  font-size: clamp(40px, 5.5vw, 76px);
  line-height: 1.02;
  letter-spacing: -0.02em;
  margin-bottom: 20px;
}
.curtain h2 em {
  font-style: italic;
  font-weight: 400;
  font-variation-settings: 'opsz' 144, 'SOFT' 100, 'WONK' 1;
  color: var(--purple);
}
.curtain p {
  color: var(--ink-soft);
  font-size: 19px;
  max-width: 520px;
  margin: 0 auto 40px;
  line-height: 1.55;
}
.curtain .store-row {
  justify-content: center;
}

/* -------- Footer -------- */
footer.foot {
  background: var(--ink);
  color: rgba(255, 255, 255, 0.6);
  padding: 56px 32px 44px;
  font-size: 14px;
  position: relative;
  z-index: 2;
}
footer.foot .inner {
  max-width: 1180px;
  margin: 0 auto;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  flex-wrap: wrap;
}
footer.foot .wordmark {
  color: #fff;
}
footer.foot .wordmark img {
  background: #fff;
}
footer.foot nav {
  display: inline-flex;
  gap: 24px;
  flex-wrap: wrap;
  justify-content: center;
}
footer.foot a {
  color: rgba(255, 255, 255, 0.75);
  font-size: 14px;
  font-weight: 500;
}
footer.foot a:hover { color: #fff; }
footer.foot .copy {
  font-family: var(--display);
  font-style: italic;
  font-size: 13px;
  letter-spacing: 0.03em;
}

/* -------- Responsive -------- */
@media (max-width: 880px) {
  section.act { padding: 72px 24px; }
  .feature-row {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .feature-row.reverse .feature-text { order: 0; }
  .audience-band .wrap { padding: 72px 24px; }
  .audience-item { font-size: 17px; padding: 18px 0; gap: 12px; }
  .audience-item .leaders { display: none; }
  .curtain { padding: 96px 24px 80px; }
  nav.topbar .inner { padding: 14px 20px; flex-wrap: wrap; }
  nav.topbar .links { gap: 14px; font-size: 13px; }
  footer.foot .inner { flex-direction: column; text-align: center; }
}

@media (max-width: 540px) {
  nav.topbar .links { width: 100%; justify-content: space-between; gap: 8px; }
  nav.topbar .links a { font-size: 12px; }
}

@media (prefers-reduced-motion: reduce) {
  .visual-tracks .bars span {
    animation: none !important;
  }
  .rise, [class*="rise-"] {
    animation: none !important;
    opacity: 1;
    transform: none;
  }
}
