/* =================================================================
   Montage AI · Waitlist LP · trimmed shared tokens & primitives
   ================================================================= */

@import url('https://fonts.googleapis.com/css2?family=Geist:wght@300;400;500;600;700&family=Geist+Mono:wght@400;500&family=Instrument+Serif:ital@0;1&display=swap');

*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

:root {
  --bg:            #ffffff;
  --paper:         #fafaf9;
  --surface:       #f4f3ef;
  --surface-2:     #ecebe4;
  --ink:           #0a0a0a;
  --ink-2:         #525252;
  --ink-3:         #8a8a85;
  --ink-4:         #b8b7b0;
  --hairline:      rgba(10, 10, 10, 0.08);
  --hairline-2:    rgba(10, 10, 10, 0.14);
  --hairline-3:    rgba(10, 10, 10, 0.22);
  --accent:        #4a6b0f;
  --accent-bright: #c8f157;
  --accent-soft:   #e8f5c4;
  --danger:        #b23a1a;
  --ok:            #2f7d3a;

  --font-sans:  'Geist', -apple-system, BlinkMacSystemFont, ui-sans-serif, system-ui, sans-serif;
  --font-serif: 'Instrument Serif', ui-serif, Georgia, serif;
  --font-mono:  'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shadow-sm: 0 1px 0 rgba(10,10,10,.04), 0 1px 2px rgba(10,10,10,.03);
  --shadow-md: 0 4px 12px rgba(10,10,10,.06), 0 1px 2px rgba(10,10,10,.04);
  --shadow-lg: 0 20px 40px -12px rgba(10,10,10,.12), 0 4px 16px rgba(10,10,10,.06);

  --radius-sm: 6px;
  --radius:    10px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

body {
  font-family: var(--font-sans);
  background: var(--bg);
  color: var(--ink);
  font-size: 15px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.005em;
}

.serif   { font-family: var(--font-serif); font-style: italic; letter-spacing: -0.01em; }
.mono    { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0; }

h1, h2, h3, h4 { margin: 0; font-weight: 500; letter-spacing: -0.02em; }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: none; padding: 0; }

.frame { max-width: 1200px; margin: 0 auto; padding: 0 32px; }

/* ---------- top nav ---------- */
.topnav {
  position: sticky; top: 0; z-index: 40;
  backdrop-filter: saturate(140%) blur(12px);
  -webkit-backdrop-filter: saturate(140%) blur(12px);
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid var(--hairline);
}
.topnav-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 18px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--ink);
}
.brand img { width: 30px; height: 30px; border-radius: 6px; display: block; }
.brand-wordmark { height: 22px; width: auto; display: block; color: var(--ink); }
.brand-tag {
  color: var(--ink-3);
  font-family: var(--font-mono); font-size: 12px;
  padding-left: 10px; margin-left: 4px;
  border-left: 1px solid var(--hairline-2);
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-size: 13.5px; font-weight: 500;
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--hairline-2);
  background: #fff; color: var(--ink);
  transition: background 120ms, border-color 120ms, transform 120ms;
  white-space: nowrap;
}
.btn:hover { background: var(--paper); border-color: var(--hairline-3); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--ink); color: #fff; border-color: var(--ink); }
.btn-primary:hover { background: #1a1a1a; }
.btn-accent {
  background: var(--accent-bright); color: var(--ink);
  border-color: transparent; font-weight: 600;
}
.btn-accent:hover { background: #d4ff6a; }
.btn-lg { font-size: 15px; padding: 13px 24px; }
.btn kbd {
  font-family: var(--font-mono); font-size: 10.5px;
  padding: 2px 6px; border-radius: 4px;
  background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.18);
  color: rgba(255,255,255,.75); margin-left: 4px;
}

/* ---------- chips ---------- */
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 10px;
  border: 1px solid var(--hairline-2); border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-2); background: var(--paper);
}
.chip .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 3px 8px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.08em; text-transform: uppercase;
  border: 1px solid var(--hairline-2); background: var(--paper);
  border-radius: 4px; color: var(--ink-2);
}
.badge-lime { background: var(--accent-bright); border-color: transparent; color: var(--ink); }

/* ---------- section rhythm ---------- */
.section { padding: 96px 0; border-top: 1px solid var(--hairline); }
.section:first-of-type { border-top: 0; }
/* All navigable sections get scroll-margin so scrollIntoView clears the sticky topnav (~68px) */
.hero, .trust-strip, .section { scroll-margin-top: 84px; }
.section-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 32px; margin-bottom: 48px;
}
.section-head h2 {
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 500; line-height: 1.05;
  letter-spacing: -0.03em; max-width: 640px;
}
.section-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.14em;
}

/* ---------- subtle grid backdrop ---------- */
.grid-bg {
  position: absolute; inset: 0;
  background-image:
    linear-gradient(to right, var(--hairline) 1px, transparent 1px),
    linear-gradient(to bottom, var(--hairline) 1px, transparent 1px);
  background-size: 80px 80px;
  mask-image: radial-gradient(ellipse at top, #000 30%, transparent 80%);
  -webkit-mask-image: radial-gradient(ellipse at top, #000 30%, transparent 80%);
  pointer-events: none; z-index: 0;
}

/* ---------- reveal ---------- */
[data-reveal] { opacity: 0; transform: translateY(12px); transition: opacity 600ms ease, transform 600ms ease; }
[data-reveal].in { opacity: 1; transform: none; }

/* ---------- hero ---------- */
.hero { position: relative; padding: 88px 0 120px; overflow: hidden; }
.hero-inner { position: relative; z-index: 1; max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 12px;
  border: 1px solid var(--hairline-2);
  background: var(--paper);
  border-radius: 999px;
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-2);
  margin-bottom: 28px;
}
.hero-eyebrow .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.hero h1 {
  font-size: clamp(44px, 6.8vw, 84px);
  line-height: 0.98;
  letter-spacing: -0.035em;
  font-weight: 400;
  max-width: 920px;
}
.hero h1 .serif { font-weight: 400; color: var(--accent); }
.hero p.lede {
  margin-top: 28px;
  max-width: 620px;
  font-size: 18px;
  line-height: 1.5;
  color: var(--ink-2);
  letter-spacing: -0.005em;
}
.hero-cta { margin-top: 40px; display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
/* .hero-meta styles defined below (3-item row) */

/* ---------- agent panel ---------- */
.agent-panel {
  margin-top: 72px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  display: grid;
  grid-template-columns: 380px 1fr;
  min-height: 460px;
}
.agent-panel .head {
  grid-column: 1 / -1;
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid var(--hairline);
  background: var(--paper);
}
.agent-panel .head .traffic { display: flex; gap: 6px; }
.agent-panel .head .traffic span { width: 10px; height: 10px; border-radius: 50%; background: var(--hairline-3); }
.agent-panel .head .traffic span:nth-child(1) { background: #ff5f57; }
.agent-panel .head .traffic span:nth-child(2) { background: #febc2e; }
.agent-panel .head .traffic span:nth-child(3) { background: #28c840; }
.agent-panel .head .addr {
  font-family: var(--font-mono); font-size: 11.5px; color: var(--ink-2);
  padding: 4px 10px; background: #fff; border: 1px solid var(--hairline); border-radius: 6px;
}
.agent-panel .chat {
  border-right: 1px solid var(--hairline);
  padding: 20px;
  display: flex; flex-direction: column; gap: 14px;
  overflow: hidden;
}
.msg { max-width: 92%; font-size: 13.5px; line-height: 1.5; }
.msg .role {
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3); margin-bottom: 6px;
}
.msg.user { align-self: flex-end; background: var(--surface); padding: 10px 12px; border-radius: 12px 12px 2px 12px; }
.msg.agent .body { color: var(--ink); }
.msg.agent .body ul { margin: 8px 0 0 0; padding-left: 18px; color: var(--ink-2); font-size: 13px; }
.msg.agent .body ul li { margin: 4px 0; }
.chat-input {
  margin-top: auto;
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  border: 1px solid var(--hairline-2); border-radius: 12px; background: #fff;
}
.chat-input .placeholder { flex: 1; font-size: 13px; color: var(--ink-3); }
.chat-input .send {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--ink); color: #fff;
  display: inline-flex; align-items: center; justify-content: center; font-size: 12px;
}

.agent-panel .preview { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.preview-canvas {
  background: linear-gradient(135deg, #1a1a1a 0%, #2a2a2a 60%, #0f1a08 100%);
  border-radius: 14px;
  aspect-ratio: 16 / 9;
  position: relative; overflow: hidden;
  display: flex; align-items: center; justify-content: center;
}
.preview-canvas::before {
  content:''; position: absolute; inset: 0;
  background: radial-gradient(circle at 30% 30%, rgba(200,241,87,.16), transparent 60%);
}
.preview-canvas .frame-title {
  position: absolute; top: 12px; left: 14px;
  color: rgba(255,255,255,.7);
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.12em; text-transform: uppercase;
}
.preview-canvas .tc {
  position: absolute; bottom: 12px; right: 14px;
  color: rgba(255,255,255,.7);
  font-family: var(--font-mono); font-size: 11px;
}
.preview-canvas .play {
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(255,255,255,.14); backdrop-filter: blur(8px);
  display: flex; align-items: center; justify-content: center;
  color: #fff; border: 1px solid rgba(255,255,255,.28);
}
.preview-canvas .play::after {
  content:''; margin-left: 2px; width: 0; height: 0;
  border: 9px solid transparent; border-left: 14px solid #fff;
}

.tracks { display: grid; grid-template-columns: 60px 1fr; gap: 6px 12px; align-items: center; }
.tracks .lbl { font-family: var(--font-mono); font-size: 10.5px; color: var(--ink-3); text-align: right; }
.track { position: relative; height: 22px; background: var(--paper); border-radius: 4px; overflow: hidden; }
.track .clip { position: absolute; top: 3px; bottom: 3px; border-radius: 3px; }
.clip.v1 { left: 2%; width: 32%; background: linear-gradient(90deg, #c8f157, #a3d129); }
.clip.v1b { left: 36%; width: 24%; background: linear-gradient(90deg, #6b8f2e, #4a6b0f); }
.clip.v1c { left: 62%; width: 36%; background: linear-gradient(90deg, #c8f157, #a3d129); }
.clip.v2 { left: 8%; width: 88%; background: repeating-linear-gradient(45deg, var(--surface-2), var(--surface-2) 4px, var(--surface) 4px, var(--surface) 8px); border: 1px solid var(--hairline-2); }
.clip.a1 { left: 0; width: 100%; background: linear-gradient(90deg, var(--ink) 0%, #333 50%, var(--ink) 100%); opacity: .88; }
.clip.sub { left: 12%; width: 22%; background: var(--ink); }
.clip.sub2 { left: 42%; width: 30%; background: var(--ink); }
.clip.sub3 { left: 76%; width: 20%; background: var(--ink); }

.progress-row {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 12px;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 8px;
}
.progress-row .lbl { font-family: var(--font-mono); font-size: 11px; color: var(--ink-2); }
.progress-bar { flex: 1; height: 4px; background: var(--surface-2); border-radius: 2px; overflow: hidden; }
.progress-bar .fill { height: 100%; width: 68%; background: var(--accent-bright); animation: pb 2.6s ease-in-out infinite alternate; }
@keyframes pb { from { width: 40%; } to { width: 82%; } }
.progress-row .pct {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink); font-weight: 500;
  min-width: 40px; text-align: right;
}

/* ---------- thesis ---------- */
.thesis-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); overflow: hidden;
}
.thesis-cell { padding: 40px; }
.thesis-cell:first-child { border-right: 1px solid var(--hairline); background: var(--paper); }
.thesis-cell .kicker {
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3); margin-bottom: 20px;
}
.thesis-cell h3 { font-size: 26px; font-weight: 400; letter-spacing: -0.02em; margin-bottom: 12px; }
.thesis-cell .strike {
  text-decoration: line-through;
  text-decoration-color: var(--danger);
  text-decoration-thickness: 2px;
  color: var(--ink-3);
}
.thesis-cell ul {
  list-style: none; padding: 0; margin: 20px 0 0;
  display: flex; flex-direction: column; gap: 10px;
  font-size: 14px; color: var(--ink-2);
}
.thesis-cell ul li { display: flex; gap: 10px; }
.thesis-cell ul li::before { content: '—'; color: var(--ink-4); font-family: var(--font-mono); }
.thesis-cell.new ul li::before { content: '+'; color: var(--accent); }

/* ---------- flow steps ---------- */
.flow-steps {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 0;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg); overflow: hidden;
}
.step { padding: 32px; border-right: 1px solid var(--hairline); background: #fff; position: relative; }
.step:last-child { border-right: 0; }
.step .step-num {
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3); letter-spacing: 0.14em; margin-bottom: 20px;
}
.step h4 { font-size: 17px; font-weight: 500; letter-spacing: -0.01em; margin-bottom: 10px; }
.step p { font-size: 13px; color: var(--ink-2); line-height: 1.55; margin-bottom: 20px; }
.step .code {
  font-family: var(--font-mono); font-size: 11.5px;
  background: var(--paper); border: 1px solid var(--hairline);
  border-radius: 6px; padding: 8px 10px; color: var(--ink-2);
}
.step .code .prompt { color: var(--ink-3); margin-right: 6px; }

/* ---------- waitlist ---------- */
.waitlist {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 64px; align-items: center;
}
.waitlist h2 {
  font-size: clamp(32px, 4vw, 48px);
  font-weight: 400; line-height: 1.05;
  letter-spacing: -0.03em;
}
.waitlist h2 .serif { color: var(--accent); }
.waitlist p { margin-top: 20px; color: var(--ink-2); font-size: 15px; max-width: 460px; }
.waitlist-form {
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--shadow-md);
}
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 14px; }
.field label {
  font-family: var(--font-mono); font-size: 10.5px;
  text-transform: uppercase; letter-spacing: 0.12em;
  color: var(--ink-3);
}
.field input, .field select {
  padding: 10px 12px;
  border: 1px solid var(--hairline-2); border-radius: 8px; background: #fff;
  font-size: 14px; color: var(--ink); outline: none;
  transition: border 120ms, box-shadow 120ms;
}
.field input:focus, .field select:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 3px rgba(10,10,10,.06);
}
.stats-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 20px;
  padding-top: 20px; border-top: 1px solid var(--hairline);
}
.stat .n {
  font-family: var(--font-serif); font-style: italic;
  font-size: 28px; letter-spacing: -0.02em;
  color: var(--ink);
}
.stat .l {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-3); letter-spacing: 0.08em;
  text-transform: uppercase; margin-top: 2px;
}

/* ---------- faq ---------- */
.faq { display: grid; grid-template-columns: 260px 1fr; gap: 48px; }
.faq h2 { font-size: 32px; font-weight: 400; letter-spacing: -0.02em; }
.faq .list { display: flex; flex-direction: column; }
.faq details { border-top: 1px solid var(--hairline); padding: 22px 0; }
.faq details:last-child { border-bottom: 1px solid var(--hairline); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between;
  cursor: pointer; list-style: none;
  font-size: 16px; font-weight: 500; letter-spacing: -0.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: '+'; font-family: var(--font-mono); font-size: 20px;
  color: var(--ink-3); transition: transform 200ms;
}
.faq details[open] summary::after { content: '×'; }
.faq details p { margin-top: 12px; color: var(--ink-2); font-size: 14px; line-height: 1.6; max-width: 640px; }

/* ---------- dark trust strip (replaces trusted-by row; also acts as dark divider between paper regions) ---------- */
.trust-strip {
  background: #0a0a0a;
  color: #fafaf9;
  padding: 28px 0;
  position: relative;
  overflow: hidden;
}
.trust-strip::before {
  content: '';
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse at 10% 50%, rgba(200,241,87,.06), transparent 55%),
    radial-gradient(ellipse at 90% 50%, rgba(200,241,87,.04), transparent 55%);
  pointer-events: none;
}
.trust-strip-inner {
  max-width: 1200px; margin: 0 auto;
  padding: 0 32px;
  display: flex; align-items: center; gap: 40px;
  position: relative; z-index: 1;
}
.trust-strip .kicker {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: rgba(250,250,249,.5);
  white-space: nowrap;
  display: flex; align-items: center; gap: 10px;
  flex-shrink: 0;
}
.trust-strip .kicker::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(200,241,87,.18);
}

/* ---------- marquee: overflow-hidden viewport + duplicated flex track scrolling left ---------- */
.trust-marquee {
  flex: 1;
  overflow: hidden;
  position: relative;
  min-width: 0;
  /* fade both edges so content eases in/out cleanly */
  mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
  -webkit-mask-image: linear-gradient(to right, transparent, #000 8%, #000 92%, transparent);
}
.trust-track {
  display: flex;
  align-items: center;
  gap: 40px;
  width: max-content;
  /* 2× set width → translateX(-50%) brings us back to the duplicate set = seamless loop */
  animation: marquee 40s linear infinite;
}
.trust-strip:hover .trust-track { animation-play-state: paused; }
@keyframes marquee {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.trust-track .mark {
  font-family: var(--font-mono); font-size: 12.5px;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(250,250,249,.78);
  white-space: nowrap;
  transition: color 200ms;
}
.trust-track:hover .mark:hover { color: #fafaf9; }
.trust-track .divider-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: rgba(250,250,249,.22);
  flex-shrink: 0;
}

@media (prefers-reduced-motion: reduce) {
  .trust-track { animation: none; }
}

/* ---------- footer (restored, columns pattern but trimmed to socials) ---------- */
.footer {
  border-top: 1px solid var(--hairline);
  padding: 56px 0 24px;
  background: var(--bg);
}
.footer-inner {
  max-width: 1200px; margin: 0 auto; padding: 0 32px;
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 48px;
  align-items: start;
}
.footer-brand { display: flex; flex-direction: column; gap: 16px; max-width: 380px; }
.footer-brand .brand { gap: 10px; }
.footer-brand .brand img { width: 26px; height: 26px; border-radius: 5px; }
.footer-brand .brand-wordmark { height: 18px; }
.footer-brand p {
  color: var(--ink-2); font-size: 13.5px; line-height: 1.6;
  max-width: 340px;
}
.footer-col h4 {
  font-family: var(--font-mono);
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  color: var(--ink-3);
  font-weight: 400;
  margin-bottom: 16px;
}
.footer-col ul {
  list-style: none; padding: 0; margin: 0;
  display: flex; flex-direction: column; gap: 12px;
}
.footer-col ul li a {
  display: inline-flex; align-items: center; gap: 8px;
  color: var(--ink-2); font-size: 13.5px;
  transition: color 120ms;
}
.footer-col ul li a:hover { color: var(--ink); }
.footer-col ul li a svg { width: 15px; height: 15px; flex-shrink: 0; }
.footer-meta {
  max-width: 1200px; margin: 40px auto 0;
  padding: 20px 32px 0;
  border-top: 1px solid var(--hairline);
  font-family: var(--font-mono); font-size: 11px;
  color: var(--ink-3);
  display: flex; justify-content: space-between; align-items: center;
  gap: 24px; flex-wrap: wrap;
}
.footer-meta .status {
  display: inline-flex; align-items: center; gap: 8px;
}
.footer-meta .status::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--ok);
  box-shadow: 0 0 0 3px rgba(47,125,58,.18);
}

/* ---------- side prev/next nav (small black floating pill, right edge) ---------- */
.side-nav {
  position: fixed;
  right: 20px;
  top: 50%;
  transform: translateY(-50%);
  z-index: 60;
  display: flex; flex-direction: column;
  gap: 0;
  padding: 6px;
  background: #0a0a0a;
  border-radius: 999px;
  box-shadow: 0 12px 32px -8px rgba(10,10,10,.35), 0 2px 6px rgba(10,10,10,.18);
  border: 1px solid rgba(255,255,255,.08);
}
.side-nav button {
  width: 32px; height: 32px;
  border-radius: 50%;
  display: inline-flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,.78);
  transition: background 140ms, color 140ms;
  cursor: pointer;
}
.side-nav button:hover:not(:disabled) {
  background: rgba(255,255,255,.09);
  color: #fff;
}
.side-nav button:disabled { opacity: 0.28; cursor: default; }
.side-nav button svg { width: 14px; height: 14px; }
.side-nav .count {
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: rgba(255,255,255,.5);
  padding: 4px 0;
  text-align: center;
  border-top: 1px solid rgba(255,255,255,.08);
  border-bottom: 1px solid rgba(255,255,255,.08);
  margin: 2px 4px;
  min-width: 24px;
}

/* ---------- hero-meta row (3 items, wrapped in pill for legibility over grid) ---------- */
.hero-meta {
  margin-top: 40px;
  display: inline-flex; align-items: center; gap: 20px;
  padding: 12px 22px;
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: saturate(140%) blur(8px);
  -webkit-backdrop-filter: saturate(140%) blur(8px);
  border: 1px solid var(--hairline);
  border-radius: 999px;
  box-shadow: var(--shadow-sm);
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--ink-2);
  flex-wrap: wrap;
}
.hero-meta .m-item {
  display: inline-flex; align-items: center; gap: 8px;
  white-space: nowrap;
  color: var(--ink);
}
.hero-meta .m-item.pulse::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(200,241,87,.3);
}
.hero-meta .m-item .glyph {
  font-family: var(--font-mono); color: var(--ink-3);
}
.hero-meta .sep {
  width: 1px; height: 14px; background: var(--hairline-2);
}

/* ---------- rewards card (waitlist wave ladder + referral) ---------- */
.rewards-card {
  margin-top: 28px;
  border: 1px solid var(--hairline);
  border-radius: var(--radius-lg);
  background: #fff;
  overflow: hidden;
  transition: box-shadow 240ms, border-color 240ms;
  max-width: 460px;
  outline: none;
}
.rewards-card:hover,
.rewards-card:focus-visible {
  box-shadow: var(--shadow-md);
  border-color: var(--hairline-2);
}
.rewards-head { padding: 20px; display: flex; flex-direction: column; gap: 14px; }
.rewards-head .eyebrow-row {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.rewards-head .live {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--ink-3);
}
.rewards-head .live::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent-bright);
  box-shadow: 0 0 0 3px rgba(200,241,87,.3);
}
.rewards-head .expand-hint {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-3);
  transition: color 200ms;
}
.rewards-card:hover .expand-hint,
.rewards-card:focus-visible .expand-hint { color: var(--ink); }
.rewards-current { display: flex; flex-direction: column; gap: 6px; }
.rewards-current .pos {
  font-family: var(--font-mono); font-size: 12px;
  color: var(--ink-2);
  display: inline-flex; align-items: center; gap: 8px;
}
.rewards-current .pos b { color: var(--ink); font-weight: 500; }
.wave-badge {
  background: var(--accent-soft);
  border: 1px solid rgba(74, 107, 15, 0.22);
  padding: 3px 10px; border-radius: 999px;
  font-family: var(--font-mono); font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--accent);
}
.rewards-current .benefit {
  font-family: var(--font-serif); font-style: italic;
  font-size: 32px; letter-spacing: -0.02em;
  color: var(--accent);
  line-height: 1.1;
}

.rewards-waves {
  max-height: 0; overflow: hidden;
  transition: max-height 320ms ease, border-color 320ms ease;
  border-top: 1px solid transparent;
  background: var(--paper);
}
.rewards-card:hover .rewards-waves,
.rewards-card:focus-within .rewards-waves,
.rewards-card:focus-visible .rewards-waves {
  max-height: 240px;
  border-top-color: var(--hairline);
}
.rewards-waves ul { list-style: none; margin: 0; padding: 6px 0; }
.rewards-waves li {
  display: grid;
  grid-template-columns: 92px 1fr auto;
  gap: 12px; align-items: center;
  padding: 8px 20px;
  font-size: 13px;
  transition: background 160ms;
}
.rewards-waves li .wl-tier {
  font-family: var(--font-mono); font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
}
.rewards-waves li .wl-range { color: var(--ink-3); font-size: 12.5px; }
.rewards-waves li .wl-range em { font-style: normal; color: var(--accent); font-family: var(--font-mono); font-size: 11px; }
.rewards-waves li .wl-perk {
  font-family: var(--font-mono); font-size: 11.5px;
  color: var(--ink);
}
.rewards-waves li.current { background: var(--accent-soft); }
.rewards-waves li.current .wl-tier,
.rewards-waves li.current .wl-perk { color: var(--accent); font-weight: 500; }

.rewards-referral {
  border-top: 1px solid var(--hairline);
  padding: 16px 20px;
  display: flex; flex-direction: column; gap: 14px;
  background: #fff;
}
.rewards-referral .ref-text {
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 12.5px; color: var(--ink-2);
  line-height: 1.55;
}
.rewards-referral b { color: var(--ink); font-weight: 500; }
.rewards-referral .ref-icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; height: 22px; border-radius: 50%;
  background: var(--ink); color: var(--accent-bright);
  font-family: var(--font-mono); font-size: 12px;
  padding-bottom: 2px;   /* optical: nudge the ↗ glyph down inside the circle */
  flex-shrink: 0;
}
.ref-action { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.ref-action .btn { font-size: 12.5px; padding: 8px 14px; }
.ref-action [data-invite-btn] { justify-content: center; width: 100%; }
.ref-action [data-invite-btn]:disabled {
  cursor: not-allowed;
  pointer-events: none;
  opacity: 0.5;
}
.ref-btn-wrap {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
}
.ref-mini {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-3); letter-spacing: 0.02em;
}
.ref-mini[hidden] { display: none; }
.ref-toast {
  display: flex; align-items: center; justify-content: center;
  padding: 8px 14px;
  background: var(--ink); color: #fff;
  border-radius: var(--radius-sm);
  font-family: var(--font-mono); font-size: 12px;
  letter-spacing: 0.01em;
  animation: toastIn 200ms ease-out;
}
.ref-toast[hidden] { display: none; }
@keyframes toastIn {
  from { opacity: 0; transform: translateY(4px); }
  to   { opacity: 1; transform: translateY(0); }
}
/* ---------- perks-row (replaces stats-row inside form) ---------- */
.perks-row {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 12px; margin-top: 20px;
  padding-top: 20px; border-top: 1px solid var(--hairline);
}
.perk { display: flex; flex-direction: column; gap: 2px; }
.perk .perk-n {
  font-family: var(--font-serif); font-style: italic;
  font-size: 26px; letter-spacing: -0.02em;
  color: var(--ink);
  line-height: 1;
}
.perk .perk-l {
  font-family: var(--font-mono); font-size: 10.5px;
  color: var(--ink-3); letter-spacing: 0.08em;
  text-transform: uppercase; margin-top: 4px;
}

/* ---------- responsive ---------- */
@media (max-width: 1000px) {
  .agent-panel { grid-template-columns: 1fr; }
  .agent-panel .chat { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .flow-steps { grid-template-columns: 1fr 1fr; }
  .thesis-grid, .waitlist, .faq { grid-template-columns: 1fr; }
  .thesis-cell:first-child { border-right: 0; border-bottom: 1px solid var(--hairline); }
  .stats-row { grid-template-columns: repeat(3, 1fr); }
  .trust-strip-inner { flex-wrap: wrap; gap: 20px; }
  .trust-marquee { width: 100%; }
  .trust-track { gap: 24px; }
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
}
