/* ============================================================
   FrontRace marketing site — Direction A "dark aurora"
   Tokens mirror the product app (client/src/theme.ts brand palette,
   client/src/liquid-glass/base.css glass surfaces + aurora).
   ============================================================ */

:root {
  color-scheme: dark;

  /* ground */
  --bg: #04050a;
  --bg-mid: #06091a;

  /* brand */
  --teal: #6ae7d0;
  --teal-deep: #46d9c2;
  --mint: #5ee0c1;
  --purple: #845cf3;
  --purple-light: #a584f6;
  --purple-pale: #b89bf8;
  --indigo: #8f9df0;
  --amber: #ffc46b;
  --rose: #ff6b81;

  /* ink on dark */
  --ink: rgba(255, 255, 255, 0.96);
  --ink-2: rgba(255, 255, 255, 0.72);
  --ink-3: rgba(255, 255, 255, 0.60);
  --ink-4: rgba(255, 255, 255, 0.55);

  /* glass */
  --glass-bg: rgba(255, 255, 255, 0.04);
  --glass-bg-2: rgba(255, 255, 255, 0.07);
  --glass-bg-3: rgba(255, 255, 255, 0.12);
  --stroke: rgba(255, 255, 255, 0.07);
  --stroke-strong: rgba(255, 255, 255, 0.18);

  /* type */
  --font-display: 'Bricolage Grotesque', 'Avenir Next', 'Helvetica Neue', Arial, sans-serif;
  --font-body: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
  --font-serif: ui-serif, Georgia, 'Times New Roman', serif;

  /* layout */
  --wrap: 1120px;
  --gutter: 40px;
  --radius-lg: 18px;
  --radius-md: 12px;
  --radius-sm: 10px;
  --section-gap: 104px;
}

/* ---------- reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.5;
  color: var(--ink);
  background-color: var(--bg);
  background-image:
    radial-gradient(1000px 620px at 8% -2%, rgba(120, 90, 255, 0.30), transparent 65%),
    radial-gradient(900px 560px at 96% 0%, rgba(60, 150, 255, 0.24), transparent 62%),
    radial-gradient(760px 520px at 70% 22%, rgba(120, 90, 255, 0.10), transparent 60%),
    radial-gradient(900px 620px at 0% 55%, rgba(95, 230, 200, 0.08), transparent 60%),
    radial-gradient(820px 560px at 100% 78%, rgba(255, 110, 170, 0.09), transparent 60%),
    radial-gradient(900px 560px at 50% 102%, rgba(95, 230, 200, 0.12), transparent 62%),
    linear-gradient(180deg, var(--bg) 0%, var(--bg-mid) 60%, #04050b 100%);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--teal); text-decoration: none; transition: color 0.15s ease; }
a:hover { color: var(--purple-light); }
h1, h2, h3, p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; border-radius: 4px; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

/* ---------- primitives ---------- */
.wrap { max-width: var(--wrap); margin: 0 auto; padding-left: var(--gutter); padding-right: var(--gutter); }

.display { font-family: var(--font-display); }
.mono { font-family: var(--font-mono); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 12px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--ink-4);
}
.eyebrow--teal { color: var(--teal); }
.eyebrow--teal-deep { color: var(--teal-deep); }
.eyebrow--indigo { color: var(--indigo); }
.eyebrow--purple { color: var(--purple-light); }
.eyebrow--sm { font-size: 11px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-weight: 600; font-size: 15px; line-height: 1;
  padding: 14px 24px; border-radius: var(--radius-md);
  border: 1px solid transparent;
  transition: background 0.15s ease, color 0.15s ease, transform 0.15s ease, box-shadow 0.15s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn--primary {
  background: var(--purple); color: #fff;
  box-shadow: 0 8px 22px rgba(132, 92, 243, 0.40);
}
.btn--primary:hover { background: var(--purple-light); color: #fff; box-shadow: 0 10px 26px rgba(132, 92, 243, 0.5); }
.btn--ghost {
  background: var(--glass-bg-2); color: var(--ink);
  border-color: var(--stroke-strong);
}
.btn--ghost:hover { background: var(--glass-bg-3); color: #fff; }
.btn--sm { padding: 10px 18px; font-size: 14px; }
.btn--xs { padding: 8px 16px; font-size: 13px; }
.btn--quiet { background: transparent; border-color: var(--stroke); color: var(--ink-3); }

.glass {
  background: var(--glass-bg);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-lg);
}
.glass-2 {
  background: var(--glass-bg-2);
  border: 1px solid var(--stroke);
  border-radius: var(--radius-md);
}

.chip {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.02em; line-height: 1.4;
  padding: 3px 10px; border-radius: 999px;
  border: 1px solid var(--stroke); background: rgba(255, 255, 255, 0.06);
  color: var(--ink-3); white-space: nowrap;
}
.chip--mint   { color: var(--mint);   border-color: rgba(94, 224, 193, 0.30); }
.chip--purple { color: var(--purple-light); border-color: rgba(165, 132, 246, 0.35); }
.chip--purple-fill { color: var(--purple-pale); background: rgba(132, 92, 243, 0.18); border-color: rgba(132, 92, 243, 0.40); }
.chip--amber  { color: var(--amber);  border-color: rgba(255, 196, 107, 0.35); }
.chip--rose   { color: var(--rose);   border-color: rgba(255, 107, 129, 0.35); }

.icon-tile {
  width: 34px; height: 34px; flex-shrink: 0;
  border-radius: var(--radius-sm);
  background: var(--glass-bg-2); border: 1px solid var(--stroke);
  display: flex; align-items: center; justify-content: center;
}
.icon-tile--lg { width: 40px; height: 40px; }
.icon-tile--teal { color: var(--teal); }
.icon-tile--purple { color: var(--purple-light); }

.h2 {
  margin-top: 14px;
  font-family: var(--font-display);
  font-size: clamp(28px, 3.2vw, 34px);
  font-weight: 650; letter-spacing: -0.015em; line-height: 1.15;
  color: var(--ink);
  text-wrap: balance;
}
.lead {
  margin-top: 18px;
  font-size: 16px; line-height: 1.65; color: var(--ink-2);
  text-wrap: pretty;
}

.meta { font-size: 12.5px; color: var(--ink-3); }
.meta--soft { color: var(--ink-2); }
.spacer { flex: 1; }
.text-sm { font-size: 13.5px; line-height: 1.55; color: var(--ink-2); }
.text-strong { font-size: 15px; font-weight: 600; color: var(--ink); }

/* ---------- logo ---------- */
.logo { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo__mark { width: 26px; height: 26px; color: var(--teal); flex-shrink: 0; }
.logo__word { font-family: var(--font-display); font-size: 18px; font-weight: 650; letter-spacing: -0.01em; }
.logo--sm .logo__mark { width: 22px; height: 22px; }
.logo--sm .logo__word { font-size: 16px; }

/* ---------- header / nav ---------- */
.site-header { position: relative; z-index: 20; }
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 24px;
}
.nav__links { display: flex; align-items: center; gap: 30px; }
.nav__actions { display: flex; align-items: center; gap: 12px; }
.navlink { color: var(--ink-2); font-size: 14.5px; font-weight: 500; }
.navlink:hover { color: var(--ink); }
.navlink--mobile { display: none; }
.navlink--active { color: var(--ink); }

.nav__toggle {
  display: none;
  width: 42px; height: 42px; border-radius: var(--radius-sm);
  border: 1px solid var(--stroke-strong); background: var(--glass-bg-2);
  flex-direction: column; align-items: center; justify-content: center;
}
.nav__toggle span {
  display: block; width: 18px; height: 2px; background: var(--ink); border-radius: 2px;
  position: relative; transition: transform 0.2s ease, opacity 0.2s ease;
}
.nav__toggle span + span { margin-top: 5px; }
.nav__toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav__toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- hero ---------- */
.hero {
  padding-top: 76px;
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.hero__title {
  margin-top: 22px;
  max-width: 840px;
  font-family: var(--font-display);
  font-size: clamp(38px, 5.2vw, 62px);
  font-weight: 700; letter-spacing: -0.025em; line-height: 1.05;
  text-wrap: balance;
}
.hero__title .grad {
  background: linear-gradient(100deg, var(--teal), var(--purple-light));
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: var(--teal);
}
.hero__lead {
  margin-top: 26px; max-width: 640px;
  font-size: clamp(17px, 1.6vw, 19px); line-height: 1.6; color: var(--ink-2);
  text-wrap: pretty;
}
.hero__cta { margin-top: 34px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.hero__note {
  margin-top: 16px;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-4);
}

/* ---------- hero product mock ---------- */
.hero-mock { margin-top: 60px; }
.hero-mock__frame {
  padding: 18px;
  display: grid; grid-template-columns: minmax(0, 1fr) 356px; gap: 18px;
  box-shadow: 0 24px 50px rgba(0, 0, 0, 0.35);
}
.feed { padding: 6px 18px 10px; display: flex; flex-direction: column; min-width: 0; }
.feed__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 0; gap: 12px; }
.feed__title { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; }
.live-dot {
  width: 7px; height: 7px; border-radius: 999px; background: var(--mint);
  box-shadow: 0 0 8px rgba(94, 224, 193, 0.8);
  animation: pulse 2.4s ease-in-out infinite;
}
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 6px rgba(94, 224, 193, 0.6); }
  50% { box-shadow: 0 0 12px rgba(94, 224, 193, 1); }
}
.live-label { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); letter-spacing: 0.06em; }
.feed__row {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 0; border-top: 1px solid var(--stroke);
}
/* live feed: rows arrive at the top (js/main.js), oldest slides off the bottom */
.feed__row--enter { animation: feed-in 0.55s cubic-bezier(0.2, 0.8, 0.2, 1) both; }
.feed__row--leave { animation: feed-out 0.35s ease-in both; }
@keyframes feed-in {
  from { opacity: 0; transform: translateY(-10px); max-height: 0; padding-top: 0; padding-bottom: 0; }
  to   { opacity: 1; transform: none; max-height: 160px; padding-top: 12px; padding-bottom: 12px; }
}
@keyframes feed-out {
  from { opacity: 1; max-height: 160px; padding-top: 12px; padding-bottom: 12px; }
  to   { opacity: 0; max-height: 0; padding-top: 0; padding-bottom: 0; border-top-color: transparent; }
}
.feed__row--enter, .feed__row--leave { overflow: hidden; }
.chip--pending { color: var(--amber); border-color: rgba(255, 196, 107, 0.35); }
.chip--pending::after {
  content: ''; width: 5px; height: 5px; border-radius: 999px; background: currentColor;
  animation: pulse-dot 1s ease-in-out infinite;
}
@keyframes pulse-dot { 0%, 100% { opacity: 0.3; } 50% { opacity: 1; } }
.feed__body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.feed__name { font-size: 14px; font-weight: 600; color: var(--ink); }
.feed__time { font-family: var(--font-mono); font-size: 11px; color: var(--ink-4); white-space: nowrap; }

.rail { display: flex; flex-direction: column; gap: 18px; min-width: 0; }
.rail__card { padding: 18px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.rail__card .chip { align-self: flex-start; }
.rail__link { font-size: 13px; font-weight: 600; color: var(--teal); }

.hero-mock__caption {
  margin-top: 16px; text-align: center;
  font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.06em;
  color: var(--ink-4);
}

/* ---------- integrations ---------- */
.integrations {
  margin-top: 72px;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
}
.integrations__list {
  display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 14px 34px;
}
.integrations__list li {
  display: inline-flex; align-items: center; gap: 9px;
  font-size: 15px; font-weight: 600; color: var(--ink-3);
}
.integrations__list img { width: 26px; height: 26px; border-radius: 6px; flex-shrink: 0; }

/* ---------- the loop (five steps, one glance) ---------- */
.loop { margin-top: 88px; }
.loop__steps {
  margin: 0; padding: 0; list-style: none;
  display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0;
  border: 1px solid var(--stroke); border-radius: var(--radius-lg);
  background: var(--glass-bg);
  overflow: hidden;
}
.loop__step {
  position: relative; padding: 22px 22px 24px;
  display: flex; flex-direction: column; gap: 8px;
  border-left: 1px solid var(--stroke);
}
.loop__step:first-child { border-left: 0; }
.loop__step::after {
  content: '→'; position: absolute; right: -7px; top: 22px;
  font-family: var(--font-mono); font-size: 13px; color: var(--ink-4);
  z-index: 1;
}
.loop__step:last-child::after { content: none; }
.loop__n { font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.16em; color: var(--teal); }
.loop__name { font-family: var(--font-display); font-size: 17px; font-weight: 650; letter-spacing: -0.01em; color: var(--ink); }
.loop__desc { font-size: 13px; line-height: 1.5; color: var(--ink-3); }

/* ---------- beats ---------- */
.beat {
  padding-top: var(--section-gap);
  display: grid; gap: 72px; align-items: center;
}
.beat--text-left  { grid-template-columns: 460px minmax(0, 1fr); }
.beat--text-right { grid-template-columns: minmax(0, 1fr) 460px; }
.beat__copy { display: flex; flex-direction: column; }
.beat__copy .lead + .lead { margin-top: 14px; }
.beat__mock { min-width: 0; }

/* record card (beat 1) */
.record { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.record__head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.avatar {
  width: 42px; height: 42px; border-radius: var(--radius-md);
  background: linear-gradient(135deg, rgba(106, 231, 208, 0.25), rgba(132, 92, 243, 0.25));
  border: 1px solid var(--stroke-strong);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 15px;
}
.record__name { font-size: 17px; font-weight: 650; }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--stroke); overflow-x: auto; }
.tabs span { font-size: 13.5px; color: var(--ink-3); padding-bottom: 8px; white-space: nowrap; }
.tabs .is-active { font-weight: 600; color: var(--purple-light); border-bottom: 2px solid var(--purple); }
.timeline { display: flex; flex-direction: column; gap: 10px; }
.timeline li { display: flex; align-items: center; gap: 10px; }
.dot { width: 8px; height: 8px; border-radius: 999px; flex-shrink: 0; }
.dot--teal { background: var(--teal); }
.dot--purple { background: var(--purple-light); }
.research { padding: 14px 16px; display: flex; flex-direction: column; gap: 6px; }
.cite { color: var(--teal); }

/* book (beat 2) */
.book { padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.book__lenses { display: flex; gap: 8px; flex-wrap: wrap; }
.deal { padding: 16px 18px; display: flex; flex-direction: column; gap: 8px; }
.deal__head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.deal__next { font-size: 13px; font-weight: 600; color: var(--purple-light); }

/* intelligence (beat 3) */
.beat--center {
  padding-top: var(--section-gap);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.beat--center .h2, .beat--center .lead { max-width: 620px; }
.features {
  margin-top: 44px;
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px;
}
.feature { padding: 24px; display: flex; flex-direction: column; gap: 12px; text-align: left; }
.feature h3 { font-size: 16.5px; font-weight: 650; }
.features__note { margin-top: 22px; text-align: center; font-size: 14px; color: var(--ink-3); }

/* page chips (product page: app pages covered by a beat) */
.pagechips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.pagechip {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 7px 14px; border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12); background: rgba(255, 255, 255, 0.05);
}
.pagechip__tag {
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.08em;
  text-transform: uppercase; color: rgba(255, 255, 255, 0.45);
}

/* 3-column feature grid (product page intelligence section) */
.features--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); margin-top: 36px; }

/* simple centered CTA (product page) */
.cta-simple {
  padding-top: 88px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
}

/* hygiene (beat 4) */
.hygiene { display: flex; flex-direction: column; gap: 16px; }
.hygiene__card { padding: 20px 22px; display: flex; flex-direction: column; gap: 10px; }
.hygiene__row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hygiene__sep { color: var(--ink-4); }
.hygiene__actions { display: flex; gap: 10px; flex-wrap: wrap; }

/* ---------- benefit bands (2026-08-27 copy update) ---------- */
.lead strong { color: var(--ink); font-weight: 600; }
.text-sm strong { color: var(--ink); font-weight: 600; }
.beat__cap {
  margin-top: 26px;
  font-family: var(--font-mono); font-size: 11px; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--ink-4);
}

/* pull quote (between Capture and Work the book) */
.pull {
  padding-top: var(--section-gap);
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 16px;
}
.pull__quote {
  max-width: 760px;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(20px, 2.3vw, 26px); line-height: 1.45; color: var(--ink-2);
  text-wrap: balance;
}
.pull__quote strong { color: var(--ink); font-weight: 600; }
.pull__tail { font-size: 15.5px; font-weight: 600; color: var(--teal); }

/* questions band (before Intelligence) */
.questions {
  padding-top: var(--section-gap);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.questions__q {
  margin-top: 16px; max-width: 720px;
  font-family: var(--font-display);
  font-size: clamp(19px, 2.3vw, 26px); font-weight: 600; letter-spacing: -0.015em; line-height: 1.3;
  color: var(--ink-2);
  text-wrap: balance;
}
.questions__q:first-of-type { margin-top: 26px; }
.questions__a { margin-top: 26px; font-size: 16px; font-weight: 600; color: var(--teal); }

/* CRO band chat mock */
.cro-mock {
  margin-top: 40px; width: 100%; max-width: 660px;
  padding: 20px 22px; text-align: left;
}
.cro-mock__q { font-family: var(--font-mono); font-size: 13px; color: var(--ink-2); }
.cro-mock__q .you { color: var(--purple-light); }
.cro-mock__a {
  margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--stroke);
  font-size: 13.5px; line-height: 1.6; color: var(--ink-2);
}
.cro-mock__cites { margin-top: 10px; display: flex; gap: 8px; flex-wrap: wrap; }

/* ---------- testimonial ---------- */
.testimonial {
  padding-top: 112px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
}
.testimonial__mark { font-family: var(--font-display); font-size: 44px; line-height: 0.5; color: var(--ink-4); }
.testimonial__quote {
  max-width: 720px;
  font-family: var(--font-serif); font-style: italic;
  font-size: clamp(20px, 2.2vw, 25px); line-height: 1.45; color: var(--ink-2);
  text-wrap: balance;
}

/* ---------- FAQ ---------- */
.faq {
  padding-top: var(--section-gap);
  display: flex; flex-direction: column; align-items: center; text-align: center;
}
.faq__list { width: 100%; max-width: 760px; margin-top: 36px; text-align: left; }
.faq__item {
  border-top: 1px solid var(--stroke);
}
.faq__item:last-child { border-bottom: 1px solid var(--stroke); }
.faq__q {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 20px 4px;
  font-family: var(--font-display); font-size: 17.5px; font-weight: 600; letter-spacing: -0.01em;
  color: var(--ink);
}
.faq__q::-webkit-details-marker { display: none; }
.faq__q::after {
  content: '+'; flex-shrink: 0;
  font-family: var(--font-mono); font-size: 18px; color: var(--teal);
  transition: transform 0.2s ease;
}
.faq__item[open] .faq__q::after { transform: rotate(45deg); }
.faq__q:hover { color: var(--teal); }
.faq__a {
  padding: 0 4px 22px; max-width: 680px;
  font-size: 15.5px; line-height: 1.65; color: var(--ink-2);
  text-wrap: pretty;
}

/* ---------- closing CTA ---------- */
.cta { padding-top: 96px; }
.cta__card {
  padding: 64px 48px;
  display: flex; flex-direction: column; align-items: center; text-align: center; gap: 18px;
  background:
    linear-gradient(120deg, rgba(132, 92, 243, 0.14), rgba(106, 231, 208, 0.10)),
    var(--glass-bg);
}
.cta__title {
  font-family: var(--font-display);
  font-size: clamp(30px, 3.6vw, 40px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.1;
  max-width: 640px; text-wrap: balance;
}
.cta__lead { max-width: 560px; font-size: 17px; line-height: 1.6; color: var(--ink-2); }
.cta__card .btn { margin-top: 10px; }

/* ---------- footer ---------- */
.site-footer { margin-top: 96px; border-top: 1px solid var(--stroke); }
.footer {
  padding-top: 52px; padding-bottom: 56px;
  display: grid; grid-template-columns: minmax(0, 1fr) 180px 180px 180px; gap: 40px;
}
.footer__brand { display: flex; flex-direction: column; gap: 14px; }
.footer__tagline { font-size: 14px; line-height: 1.6; color: var(--ink-3); max-width: 280px; }
.footer__copy { font-size: 12.5px; color: var(--ink-4); }
.footer__col { display: flex; flex-direction: column; gap: 10px; }
.footlink { display: block; color: var(--ink-3); font-size: 14px; }
.footlink:hover { color: var(--ink); }

/* ---------- long-form pages (privacy, terms) ---------- */
.page-hero { padding-top: 64px; max-width: 800px; }
.page-hero__title {
  margin-top: 16px;
  font-family: var(--font-display);
  font-size: clamp(34px, 4.4vw, 48px); font-weight: 700; letter-spacing: -0.02em; line-height: 1.08;
  text-wrap: balance;
}
.page-hero__meta { margin-top: 18px; font-size: 15px; color: var(--ink-3); }
.legal { max-width: 800px; margin-top: 24px; padding-bottom: 24px; }
.legal h2 {
  margin-top: 48px;
  font-family: var(--font-display);
  font-size: 22px; font-weight: 650; letter-spacing: -0.01em; line-height: 1.25;
  color: var(--ink);
}
.legal h3 { margin-top: 28px; font-size: 16.5px; font-weight: 600; color: var(--ink); }
.legal p { margin-top: 14px; font-size: 16px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.legal ul { margin-top: 12px; padding-left: 24px; list-style: disc; color: var(--ink-2); }
.legal li { margin-top: 8px; font-size: 16px; line-height: 1.65; }
.legal li::marker { color: var(--teal); }
.legal strong { color: var(--ink); font-weight: 600; }
.legal a { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(106, 231, 208, 0.4); }
.legal a:hover { text-decoration-color: currentColor; }
.legal .callout {
  margin-top: 20px; padding: 18px 22px;
  border-left: 2px solid var(--purple);
}
.legal .callout p:first-child { margin-top: 0; }

/* ---------- about page ---------- */
.mission { max-width: 800px; margin-top: 8px; }
.mission p { margin-top: 18px; font-size: 17px; line-height: 1.7; color: var(--ink-2); text-wrap: pretty; }
.mission__close { font-weight: 600; color: var(--ink); }
.team { max-width: 960px; padding-top: 88px; }
.member {
  margin-top: 40px; padding: 28px;
  display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 32px; align-items: start;
  background: var(--glass-bg); border: 1px solid var(--stroke); border-radius: var(--radius-lg);
}
.member__photo {
  width: 100%; height: auto; border-radius: var(--radius-md);
  border: 1px solid var(--stroke-strong);
}
.member__body { display: flex; flex-direction: column; min-width: 0; }
.member__name { font-family: var(--font-display); font-size: 22px; font-weight: 650; letter-spacing: -0.01em; }
.member__role { margin-top: 4px; font-size: 14px; font-weight: 600; color: var(--teal); }
.member__bio { margin-top: 14px; font-size: 15px; line-height: 1.65; color: var(--ink-2); }
.member__behind-label { margin-top: 18px; }
.member__behind { margin-top: 8px; font-size: 14px; line-height: 1.65; color: var(--ink-3); }
@media (max-width: 800px) {
  .member { grid-template-columns: 1fr; gap: 20px; padding: 20px; }
  .member__photo { max-width: 320px; }
}

/* ---------- placeholders (remove class once real content lands) ---------- */
.placeholder { outline: 1px dashed rgba(255, 196, 107, 0.35); outline-offset: 6px; border-radius: 4px; }

/* ---------- reveal on scroll (progressive enhancement) ---------- */
@media (prefers-reduced-motion: no-preference) {
  .reveal { opacity: 0; transform: translateY(18px); transition: opacity 0.6s ease, transform 0.6s ease; }
  .reveal.is-visible { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .live-dot { animation: none; }
  .feed__row--enter, .feed__row--leave, .chip--pending::after { animation: none; }
}

/* ============================================================
   Responsive
   ============================================================ */
@media (max-width: 1024px) {
  .beat--text-left  { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .beat--text-right { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; }
  .features { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer { grid-template-columns: minmax(0, 1fr) 160px 160px 160px; gap: 28px; }
  .loop__step { padding: 18px 16px 20px; }
  .loop__desc { font-size: 12.5px; }
}

@media (max-width: 900px) {
  :root { --section-gap: 84px; }
  .hero-mock__frame { grid-template-columns: 1fr; }
  .rail { flex-direction: row; }
  .beat--text-left, .beat--text-right { grid-template-columns: 1fr; gap: 32px; }
  .beat--text-right .beat__copy { order: -1; }
  .footer { grid-template-columns: 1fr 1fr; }
  .footer__brand { grid-column: 1 / -1; }
}

@media (max-width: 800px) {
  .nav__toggle { display: flex; }
  .nav__links, .nav__actions .navlink { display: none; }
  .nav__actions .btn { display: inline-flex; }
  .nav.is-open .nav__links {
    display: flex; flex-direction: column; align-items: stretch; gap: 0;
    position: absolute; left: var(--gutter); right: var(--gutter); top: 76px;
    padding: 8px; background: #0a0c1a; border: 1px solid var(--stroke-strong);
    border-radius: var(--radius-md); box-shadow: 0 24px 50px rgba(0, 0, 0, 0.5);
  }
  .nav.is-open .nav__links .navlink { display: block; padding: 12px 14px; border-radius: 8px; font-size: 16px; }
  .nav.is-open .nav__links .navlink--mobile { margin-top: 4px; border-top: 1px solid var(--stroke); border-radius: 0 0 8px 8px; }
  .nav.is-open .navlink:hover { background: var(--glass-bg-2); }
}

@media (max-width: 640px) {
  :root { --gutter: 24px; --section-gap: 72px; }
  .hero { padding-top: 48px; }
  .hero-mock { margin-top: 44px; }
  .hero-mock__frame { padding: 12px; }
  .feed { padding: 4px 12px 8px; }
  /* icon + body + time on line one; chip drops to its own line under the text */
  .feed__row { flex-wrap: wrap; }
  .feed__row .icon-tile { order: 1; }
  .feed__row .feed__body { order: 2; flex: 1 1 0; }
  .feed__row .feed__time { order: 3; }
  .feed__row::after { content: ''; order: 4; flex-basis: 100%; height: 0; }
  .feed__row .chip { order: 5; margin-left: 46px; }
  .hero .eyebrow { font-size: 11px; letter-spacing: 0.12em; }
  .rail { flex-direction: column; }
  .features { grid-template-columns: 1fr; }
  .record, .book { padding: 16px; }
  .cro-mock { padding: 16px; }
  .cta__card { padding: 44px 24px; }
  .footer { grid-template-columns: 1fr; gap: 28px; padding-top: 40px; padding-bottom: 40px; }
  .integrations__list { gap: 12px 22px; }
  .loop { margin-top: 64px; }
  .loop__steps { grid-template-columns: 1fr; }
  .loop__step { border-left: 0; border-top: 1px solid var(--stroke); padding: 16px 18px; }
  .loop__step:first-child { border-top: 0; }
  .loop__step::after { content: none; }
  .faq__q { font-size: 16px; }
}
