/* ============================================================
   ReactLive — UI Kit
   Hand-rolled CSS distilled from index.html / agents.html.
   No Tailwind; safe to drop into any page alongside
   <link rel="stylesheet" href="web-reactlive.css">.
   ============================================================ */

/* ---------- Tokens ---------- */
:root {
  /* Surfaces */
  --bg:           #ffffff;
  --bg-2:         #fafaf9;
  --bg-3:         #f4f3f0;

  /* Ink */
  --ink:          #0a0a0a;
  --ink-2:        #18181b;
  --muted:        #71717a;
  --muted-2:      #a1a1aa;

  /* Lines */
  --line:         #e7e5e4;
  --line-strong:  #d4d4d8;

  /* Accents */
  --signal:       #ff4a1c;
  --signal-soft:  #fff1ec;
  --mint:         #059669;
  --mint-soft:    #ecfdf5;
  --live:         #ef4444;

  /* Radii */
  --r-sm:  6px;
  --r-md:  10px;
  --r-lg:  14px;
  --r-xl:  20px;
  --r-pill: 999px;

  /* Shadows */
  --shadow-sm:
    0 1px 2px rgba(10,10,10,.04),
    0 4px 12px rgba(10,10,10,.04),
    0 16px 40px -12px rgba(10,10,10,.08);
  --shadow-lg:
    0 1px 2px rgba(10,10,10,.04),
    0 8px 24px rgba(10,10,10,.06),
    0 32px 64px -16px rgba(10,10,10,.12);

  /* Type */
  --font-display: 'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-body:    'Geist', ui-sans-serif, system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;

  /* Container */
  --container: 1400px;
}

/* ---------- Reset (light) ---------- */
*, *::before, *::after { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-feature-settings: "ss01", "ss03", "cv11";
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  letter-spacing: -0.011em;
  line-height: 1.5;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
hr { border: 0; border-top: 1px solid var(--line); margin: 0; }
::selection { background: var(--signal); color: #fff; }

/* ---------- Layout helpers ---------- */
.rl-container {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) { .rl-container { padding: 0 40px; } }

.rl-row     { display: flex; align-items: center; gap: 12px; }
.rl-row.between { justify-content: space-between; }
.rl-stack   { display: flex; flex-direction: column; gap: 12px; }

/* ---------- Typography ---------- */
.font-display {
  font-family: var(--font-display);
  letter-spacing: -0.04em;
}
.font-mono {
  font-family: var(--font-mono);
  font-feature-settings: "zero";
}

.rl-h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.75rem, 7vw, 6rem);
  line-height: 0.92;
  letter-spacing: -0.04em;
  margin: 0;
}
.rl-h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2rem, 4vw, 3rem);
  line-height: 1;
  letter-spacing: -0.03em;
  margin: 0;
}
.rl-h3 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0;
}
.rl-lead {
  font-size: 1.25rem;
  line-height: 1.4;
  color: var(--ink-2);
  font-weight: 500;
}
.rl-muted { color: var(--muted); }
.rl-signal { color: var(--signal); }

/* Eyebrow / kicker */
.rl-kicker {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}

/* Hover underline (animated) */
.rl-under-hover {
  background-image: linear-gradient(var(--ink), var(--ink));
  background-size: 0 1px;
  background-repeat: no-repeat;
  background-position: 0 100%;
  transition: background-size .4s ease;
}
.rl-under-hover:hover { background-size: 100% 1px; }

/* ---------- Hairlines ---------- */
.rl-hairline        { border: 1px solid var(--line); }
.rl-hairline-strong { border: 1px solid var(--line-strong); }
.rl-divider         { height: 1px; width: 100%; background: var(--line); }

/* ---------- Shadows ---------- */
.rl-card-shadow    { box-shadow: var(--shadow-sm); }
.rl-card-shadow-lg { box-shadow: var(--shadow-lg); }

/* ---------- Buttons ---------- */
.rl-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: var(--r-pill);
  font-size: 14px;
  font-weight: 500;
  line-height: 1;
  border: 1px solid transparent;
  transition: transform .2s ease, background .2s ease, border-color .2s ease, color .2s ease;
  white-space: nowrap;
}
.rl-btn--primary {
  background: var(--ink);
  color: var(--bg);
}
.rl-btn--primary:hover {
  background: #27272a;
  transform: translateY(-1px);
}
.rl-btn--secondary {
  background: var(--bg);
  color: var(--ink);
  border-color: var(--line-strong);
}
.rl-btn--secondary:hover {
  background: var(--bg-2);
  border-color: var(--ink);
}
.rl-btn--ghost {
  background: transparent;
  color: var(--ink-2);
}
.rl-btn--ghost:hover { background: var(--bg-2); }
.rl-btn--lg { padding: 14px 26px; font-size: 15px; }
.rl-btn--sm { padding: 6px 14px; font-size: 13px; }
.rl-btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }

/* Button on dark surfaces */
.rl-dark .rl-btn--primary {
  background: var(--bg);
  color: var(--ink);
}
.rl-dark .rl-btn--primary:hover { background: #f4f4f5; }
.rl-dark .rl-btn--secondary {
  background: transparent;
  color: var(--bg);
  border-color: rgba(255,255,255,.18);
}
.rl-dark .rl-btn--secondary:hover { border-color: var(--bg); background: rgba(255,255,255,.05); }

/* ---------- Badges, pills, tags ---------- */
.rl-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  font-size: 12px;
  color: var(--ink-2);
  box-shadow: var(--shadow-sm);
  transition: border-color .2s ease;
}
.rl-pill:hover { border-color: var(--ink); }

.rl-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.04em;
  background: var(--bg-2);
  color: var(--ink-2);
  border: 1px solid var(--line);
}
.rl-tag--signal { background: var(--signal-soft); color: var(--signal); border-color: transparent; }
.rl-tag--mint   { background: var(--mint-soft);   color: var(--mint);   border-color: transparent; }
.rl-tag--ink    { background: var(--ink);         color: var(--bg);     border-color: transparent; }

.rl-tag .rl-dot {
  width: 6px; height: 6px; border-radius: var(--r-pill); background: currentColor;
}

/* Live pulsing dot */
.rl-dot-live {
  width: 8px; height: 8px;
  border-radius: var(--r-pill);
  background: var(--live);
  box-shadow: 0 0 0 0 rgba(239,68,68,.45);
  animation: rl-pulse 1.6s ease-out infinite;
  flex: none;
}
@keyframes rl-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(239,68,68,.45); }
  70%  { box-shadow: 0 0 0 10px rgba(239,68,68,0); }
  100% { box-shadow: 0 0 0 0 rgba(239,68,68,0); }
}

/* ---------- Cards ---------- */
.rl-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
}
.rl-card--lifted {
  border-color: var(--line-strong);
  box-shadow: var(--shadow-sm);
}
.rl-card--feature {
  background: var(--bg-2);
  border-color: var(--line);
}
.rl-card--ink {
  background: var(--ink);
  color: var(--bg);
  border-color: rgba(255,255,255,.08);
}
.rl-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.125rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.rl-card__body { color: var(--muted); font-size: 14px; line-height: 1.55; }

/* "Browser" / event card — the hero pattern */
.rl-browser {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}
.rl-browser__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 20px;
  border-bottom: 1px solid var(--line);
  background: var(--bg-2);
}
.rl-browser__dots { display: flex; gap: 6px; }
.rl-browser__dots span {
  width: 10px; height: 10px; border-radius: var(--r-pill); background: #e4e4e7;
}
.rl-browser__url {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.rl-browser__meta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}

/* ---------- Inputs ---------- */
.rl-input {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  color: var(--ink);
  font-size: 14px;
  font-family: inherit;
  transition: border-color .2s ease, background .2s ease;
}
.rl-input::placeholder { color: var(--muted-2); }
.rl-input:focus {
  outline: none;
  border-color: var(--ink);
}
.rl-input--dark {
  background: rgba(255,255,255,.05);
  border-color: rgba(255,255,255,.15);
  color: var(--bg);
}
.rl-input--dark::placeholder { color: rgba(255,255,255,.4); }
.rl-input--dark:focus { background: rgba(255,255,255,.1); border-color: var(--bg); }

.rl-field {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 6px 6px 6px 18px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 1px solid var(--line-strong);
  transition: border-color .2s ease;
}
.rl-field:focus-within { border-color: var(--ink); }
.rl-field input {
  flex: 1;
  border: 0;
  background: transparent;
  outline: none;
  font-size: 14px;
  color: var(--ink);
  padding: 6px 0;
  min-width: 0;
}
.rl-field input::placeholder { color: var(--muted-2); }

/* ---------- Navigation ---------- */
.rl-nav {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
          backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.rl-nav__inner {
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) { .rl-nav__inner { padding: 0 40px; } }
.rl-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.025em;
}
.rl-nav__links {
  display: none;
  gap: 32px;
  font-size: 14px;
  color: rgba(24,24,27,.8);
}
@media (min-width: 768px) { .rl-nav__links { display: flex; align-items: center; } }

/* ---------- Accordion / FAQ ---------- */
.rl-accordion {
  border-top: 1px solid var(--line);
}
.rl-accordion details {
  border-bottom: 1px solid var(--line);
}
.rl-accordion summary {
  list-style: none;
  cursor: pointer;
  padding: 22px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: 17px;
  letter-spacing: -0.015em;
}
.rl-accordion summary::-webkit-details-marker { display: none; }
.rl-accordion .rl-chev {
  width: 14px; height: 14px;
  position: relative;
  transition: transform .3s ease;
  color: var(--muted);
  flex: none;
}
.rl-accordion .rl-chev::before,
.rl-accordion .rl-chev::after {
  content: ""; position: absolute; background: currentColor;
  top: 50%; left: 50%; transform: translate(-50%,-50%);
}
.rl-accordion .rl-chev::before { width: 14px; height: 1.5px; }
.rl-accordion .rl-chev::after  { width: 1.5px; height: 14px; }
.rl-accordion details[open] .rl-chev { transform: rotate(45deg); }
.rl-accordion .rl-accordion__body {
  padding: 0 0 22px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  max-width: 60ch;
}

/* ---------- Pricing card ---------- */
.rl-pricing {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) { .rl-pricing { grid-template-columns: repeat(3, 1fr); } }

.rl-price {
  background: var(--bg);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
}
.rl-price--featured {
  background: var(--ink);
  color: var(--bg);
  border-color: var(--ink);
}
.rl-price__name {
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.rl-price--featured .rl-price__name { color: var(--muted-2); }
.rl-price__amount {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.75rem;
  letter-spacing: -0.03em;
  line-height: 1;
  margin: 16px 0 4px;
}
.rl-price__per { color: var(--muted); font-size: 13px; }
.rl-price--featured .rl-price__per { color: var(--muted-2); }
.rl-price__list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
}
.rl-price__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  color: var(--ink-2);
}
.rl-price--featured .rl-price__list li { color: rgba(255,255,255,.85); }
.rl-price__list li::before {
  content: "";
  width: 16px; height: 16px;
  border-radius: var(--r-pill);
  background: var(--mint-soft);
  flex: none;
  margin-top: 2px;
  background-image:
    linear-gradient(45deg, transparent 38%, var(--mint) 38% 44%, transparent 44%),
    linear-gradient(-45deg, transparent 50%, var(--mint) 50% 60%, transparent 60%);
  background-size: 100% 100%;
  background-position: 3px 5px, 0 0;
  background-repeat: no-repeat;
}

/* ---------- Confidence meter ---------- */
.rl-meter {
  height: 3px;
  background: var(--bg-3);
  border-radius: 2px;
  overflow: hidden;
}
.rl-meter > span {
  display: block;
  height: 100%;
  background: var(--mint);
  width: 94%;
  animation: rl-fill 1.6s ease forwards;
}
@keyframes rl-fill { from { width: 0; } to { width: var(--rl-meter, 94%); } }

/* ---------- Waveform ---------- */
.rl-wave {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  height: 24px;
}
.rl-wave .rl-bar {
  display: inline-block;
  width: 3px;
  background: var(--signal);
  border-radius: 2px;
  animation: rl-wave 1.1s ease-in-out infinite;
}
.rl-wave .rl-bar:nth-child(2) { animation-delay: .1s; }
.rl-wave .rl-bar:nth-child(3) { animation-delay: .2s; }
.rl-wave .rl-bar:nth-child(4) { animation-delay: .3s; }
.rl-wave .rl-bar:nth-child(5) { animation-delay: .4s; }
.rl-wave .rl-bar:nth-child(6) { animation-delay: .5s; }
.rl-wave .rl-bar:nth-child(7) { animation-delay: .6s; }
@keyframes rl-wave {
  0%, 100% { height: 6px; }
  50%      { height: 22px; }
}

/* Type-in caret */
.rl-caret::after {
  content: "▊";
  margin-left: 2px;
  color: var(--signal);
  animation: rl-blink 1s steps(2) infinite;
}
@keyframes rl-blink { 50% { opacity: 0; } }

/* ---------- Marquee ---------- */
.rl-marquee {
  display: flex;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
  border-block: 1px solid var(--line);
  background: var(--bg-2);
  padding: 18px 0;
}
.rl-marquee__track {
  display: flex;
  gap: 3rem;
  flex-shrink: 0;
  min-width: 100%;
  align-items: center;
  font-family: var(--font-display);
  font-size: clamp(1.25rem, 2.5vw, 1.875rem);
  color: var(--muted);
  animation: rl-scroll 48s linear infinite;
}
@keyframes rl-scroll { to { transform: translateX(-100%); } }

/* ---------- Backgrounds (decorative) ---------- */
.rl-grid-paper {
  background-image:
    linear-gradient(var(--line) 1px, transparent 1px),
    linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  background-position: center;
}
.rl-grid-fade {
  -webkit-mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
          mask-image: radial-gradient(ellipse at center, #000 20%, transparent 70%);
}
.rl-dot-pattern {
  background-image: radial-gradient(var(--line-strong) 1px, transparent 1px);
  background-size: 20px 20px;
}

/* ---------- Dark section ---------- */
.rl-dark {
  background: var(--ink);
  color: var(--bg);
}
.rl-dark .rl-kicker  { color: var(--muted-2); }
.rl-dark .rl-muted   { color: rgba(255,255,255,.6); }
.rl-dark .rl-card    { background: rgba(255,255,255,.04); border-color: rgba(255,255,255,.08); color: var(--bg); }
.rl-dark hr          { border-top-color: rgba(255,255,255,.1); }

/* ---------- Avatar ---------- */
.rl-avatar {
  width: 28px; height: 28px;
  border-radius: var(--r-pill);
  background: linear-gradient(135deg, #fbbf24, #f59e0b);
  color: #fff;
  font-size: 10px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

/* ---------- Brand mark ---------- */
.rl-mark { width: 22px; height: 22px; flex: none; }

/* ---------- Reveal animation utility ---------- */
.rl-reveal {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity .9s ease, transform .9s ease;
}
.rl-reveal.in { opacity: 1; transform: none; }

/* ============================================================
   Site structure & section components
   Footer, CTAs, stats, section headers — the chrome that
   ties the marketing pages together.
   ============================================================ */

/* ---------- Section header ---------- */
.rl-section {
  padding: 96px 0;
}
.rl-section--soft  { background: var(--bg-2); border-block: 1px solid var(--line); }
.rl-section--white { background: var(--bg); }
.rl-section--ink   { background: var(--ink); color: var(--bg); }
.rl-section--tight { padding: 64px 0; }

.rl-section-head {
  max-width: 720px;
  margin: 0 auto 48px;
}
.rl-section-head--center { text-align: center; }
.rl-section-head--split {
  max-width: var(--container);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (min-width: 768px) {
  .rl-section-head--split { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 24px; }
  .rl-section-head--split > p { max-width: 24rem; }
}
.rl-section-head .rl-kicker { display: block; margin-bottom: 18px; }
.rl-section-head h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 4.5rem);
  line-height: 0.95;
  letter-spacing: -0.035em;
  margin: 0;
}
.rl-section-head > p {
  margin: 24px 0 0;
  font-size: 1.125rem;
  color: var(--muted);
  line-height: 1.55;
}

/* ---------- Stats strip ---------- */
.rl-stats {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 32px;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 768px) { .rl-stats { grid-template-columns: repeat(4, 1fr); gap: 40px; padding: 0 40px; } }
.rl-stat__num {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.5rem, 5vw, 3.75rem);
  line-height: 1;
  letter-spacing: -0.025em;
  color: var(--ink);
}
.rl-stat__num .rl-suffix { color: var(--muted-2); }
.rl-stat__label {
  margin-top: 12px;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.5;
  max-width: 22ch;
}

/* Compact stat tile (panel-style, used in product surfaces) */
.rl-stat-tile {
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 12px 14px;
}
.rl-stat-tile__num {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 20px;
  line-height: 1;
  color: var(--ink);
}
.rl-stat-tile__num--signal { color: var(--signal); }
.rl-stat-tile__num--mint   { color: var(--mint); }
.rl-stat-tile__label {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-top: 6px;
}

/* ---------- Numbered card (problem cards 01–04) ---------- */
.rl-num-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  transition: border-color .2s ease, box-shadow .2s ease;
  display: flex;
  flex-direction: column;
}
.rl-num-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.rl-num-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 32px;
}
.rl-num-card__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--signal);
  letter-spacing: -0.02em;
}
.rl-num-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  line-height: 1.25;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.rl-num-card__body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* ---------- Capability / use-case card (icon tile + arrow link) ---------- */
.rl-cap-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rl-cap-card:hover { border-color: var(--ink); box-shadow: var(--shadow-sm); }
.rl-cap-card.is-live:hover { border-color: var(--signal); }
.rl-cap-card__head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 40px;
}
.rl-icon-tile {
  width: 40px; height: 40px;
  border-radius: var(--r-md);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--signal-soft);
  color: var(--signal);
  flex: none;
}
.rl-icon-tile--lg {
  width: 48px; height: 48px;
  border-radius: var(--r-lg);
}
.rl-icon-tile--ink {
  background: var(--ink);
  color: var(--bg);
}
.rl-icon-tile--ghost {
  background: rgba(255,255,255,.1);
  color: var(--signal);
}
.rl-cap-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  line-height: 1.2;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
.rl-cap-card__body {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}
.rl-cap-card__link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--signal);
  transition: gap .2s ease;
}
.rl-cap-card:hover .rl-cap-card__link { gap: 10px; }

/* Live-demo pill (signal background) */
.rl-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--signal);
  color: #fff;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.rl-live-pill::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: #fff;
  animation: rl-pulse 1.6s ease-out infinite;
}

/* ---------- Pillar card (icon-tile + heading + body) ---------- */
.rl-pillar {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
}
.rl-pillar .rl-icon-tile { margin-bottom: 24px; }
.rl-pillar__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}
.rl-pillar__body {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
}

/* ---------- CTA banner (horizontal dark inline CTA) ---------- */
.rl-cta-banner {
  background: var(--ink);
  color: var(--bg);
  border-radius: var(--r-xl);
  padding: 32px;
  display: flex;
  flex-direction: column;
  gap: 24px;
  align-items: flex-start;
}
@media (min-width: 768px) {
  .rl-cta-banner { flex-direction: row; align-items: center; justify-content: space-between; padding: 40px; }
}
.rl-cta-banner__left {
  display: flex;
  align-items: flex-start;
  gap: 24px;
}
@media (min-width: 768px) { .rl-cta-banner__left { align-items: center; } }
.rl-cta-banner__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  letter-spacing: -0.02em;
  margin: 0 0 8px;
}
@media (min-width: 768px) { .rl-cta-banner__title { font-size: 1.5rem; } }
.rl-cta-banner__body {
  margin: 0;
  font-size: 14px;
  color: rgba(255,255,255,.7);
  line-height: 1.6;
  max-width: 56ch;
}
.rl-cta-banner .rl-kicker { color: rgba(255,255,255,.5); margin-bottom: 6px; }

/* On-dark inline button (white pill on ink) */
.rl-btn--invert {
  background: var(--bg);
  color: var(--ink);
}
.rl-btn--invert:hover { background: var(--bg-2); }

/* ---------- Hero / waitlist CTA section (dark with dot pattern + signal glow) ---------- */
.rl-cta-hero {
  position: relative;
  background: var(--ink);
  color: var(--bg);
  overflow: hidden;
  padding: 120px 0;
  text-align: center;
}
.rl-cta-hero::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(rgba(255,255,255,.18) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.08;
  pointer-events: none;
}
.rl-cta-hero::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: 0;
  height: 400px;
  background: linear-gradient(to top, rgba(255,74,28,.2), transparent);
  pointer-events: none;
}
.rl-cta-hero__inner {
  position: relative;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
}
@media (min-width: 1024px) { .rl-cta-hero__inner { padding: 0 40px; } }
.rl-cta-hero h2 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(3rem, 7vw, 6rem);
  line-height: 0.9;
  letter-spacing: -0.04em;
  margin: 0;
  max-width: 18ch;
  margin-inline: auto;
}
.rl-cta-hero p {
  font-size: 1.25rem;
  color: rgba(255,255,255,.6);
  max-width: 36rem;
  margin: 32px auto 0;
}
.rl-cta-hero__form {
  margin: 40px auto 0;
  max-width: 28rem;
  display: flex;
  gap: 8px;
}
.rl-cta-hero__fineprint {
  margin-top: 24px;
  font-family: var(--font-mono);
  font-size: 12px;
  color: rgba(255,255,255,.4);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

/* ---------- "How it works" / step row (alternating media + text) ---------- */
.rl-step {
  display: grid;
  gap: 40px;
  align-items: center;
  margin-bottom: 96px;
}
.rl-step:last-child { margin-bottom: 0; }
@media (min-width: 1024px) {
  .rl-step { grid-template-columns: 5fr 7fr; gap: 64px; }
  .rl-step--reverse > :first-child { order: 2; }
  .rl-step--reverse > :last-child  { order: 1; }
}
.rl-step__num {
  display: inline-flex;
  align-items: baseline;
  gap: 12px;
  margin-bottom: 20px;
}
.rl-step__num strong {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 3.75rem;
  line-height: 1;
  color: var(--signal);
  letter-spacing: -0.02em;
}
.rl-step__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(1.875rem, 3vw, 2.25rem);
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0 0 20px;
}
.rl-step__body {
  font-size: 17px;
  color: var(--muted);
  line-height: 1.6;
  margin: 0;
}
.rl-step__metrics {
  display: flex;
  gap: 24px;
  margin-top: 32px;
}
.rl-step__metric strong {
  display: block;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
}
.rl-step__metric span {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  color: var(--muted);
}

/* ---------- Inline code chip ---------- */
.rl-code {
  font-family: var(--font-mono);
  font-size: 0.95em;
  background: var(--bg-3);
  color: var(--ink-2);
  padding: 2px 8px;
  border-radius: var(--r-sm);
}
.rl-code--bordered {
  background: var(--bg);
  border: 1px solid var(--line);
}
.rl-dark .rl-code {
  background: rgba(255,255,255,.06);
  color: var(--bg);
}

/* ---------- Arrow link ---------- */
.rl-arrow-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 500;
  color: var(--signal);
  transition: gap .2s ease;
}
.rl-arrow-link:hover { gap: 10px; }

/* ============================================================
   Agents page components
   ============================================================ */

/* Phase tag (Before / During / After) */
.rl-phase-tag {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.rl-phase-tag .rl-dot {
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: var(--muted-2);
}
.rl-phase-tag.is-before .rl-dot { background: var(--muted-2); }
.rl-phase-tag.is-during .rl-dot { background: var(--signal); }
.rl-phase-tag.is-after  .rl-dot { background: var(--mint); }

/* Phase legend separator */
.rl-phase-legend {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 24px;
  flex-wrap: wrap;
  margin: 32px 0;
}
.rl-phase-legend__sep {
  display: none;
  width: 48px;
  height: 1px;
  background: var(--line-strong);
}
@media (min-width: 640px) { .rl-phase-legend__sep { display: block; } }

/* Phase progress bar (gradient) */
.rl-phase-bar {
  height: 4px;
  border-radius: 2px;
  background: var(--bg-3);
  overflow: hidden;
  position: relative;
}
.rl-phase-bar > span {
  display: block;
  height: 100%;
  width: 100%;
  background: linear-gradient(to right, var(--muted-2), var(--signal), var(--mint));
}

/* Agent card (large numbered card with sections + superpower box) */
.rl-agent-card {
  position: relative;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  padding: 28px;
  display: flex;
  flex-direction: column;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.rl-agent-card:hover {
  border-color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.rl-agent-card__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 8px;
}
.rl-agent-card__num {
  font-family: var(--font-display);
  font-weight: 300;
  font-size: 2.25rem;
  line-height: 1;
  color: var(--signal);
}
.rl-agent-card__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.5rem;
  letter-spacing: -0.02em;
  margin: 24px 0 4px;
}
.rl-agent-card__alias {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
  margin-bottom: 20px;
}
.rl-agent-card__sec { margin-bottom: 20px; }
.rl-agent-card__sec .rl-kicker { display: block; margin-bottom: 8px; }
.rl-agent-card__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13.5px;
  color: var(--ink-2);
  line-height: 1.55;
}
.rl-agent-card__list li {
  display: flex;
  gap: 8px;
}
.rl-agent-card__list li::before {
  content: "→";
  color: var(--signal);
  flex: none;
  font-weight: 500;
}
.rl-agent-card__list strong { font-weight: 500; }
.rl-agent-card__meta {
  margin-top: auto;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 12.5px;
  line-height: 1.55;
}
.rl-agent-card__meta-row .rl-kicker { display: inline; margin-right: 8px; }
.rl-agent-card__meta-row span { color: var(--muted); }
.rl-agent-card__super {
  margin-top: 20px;
  padding: 14px 16px;
  background: var(--signal-soft);
  border-radius: var(--r-md);
}
.rl-agent-card__super .rl-kicker {
  color: var(--signal);
  display: block;
  margin-bottom: 4px;
}
.rl-agent-card__super p {
  margin: 0;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink-2);
  line-height: 1.4;
}

/* Orchestrator badge (the conductor card) */
.rl-orch {
  background: linear-gradient(135deg, var(--bg) 0%, var(--bg-2) 100%);
  border: 1px solid var(--line-strong);
  border-radius: var(--r-xl);
  padding: 32px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
@media (min-width: 768px) { .rl-orch { padding: 40px; } }
.rl-orch::before {
  content: "";
  position: absolute; inset: 0;
  background-image: radial-gradient(var(--line) 1px, transparent 1px);
  background-size: 20px 20px;
  opacity: 0.4;
  pointer-events: none;
}
.rl-orch > * { position: relative; }
.rl-orch__head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 24px;
}
.rl-orch__title-block {
  display: flex;
  align-items: center;
  gap: 16px;
}
.rl-orch__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.875rem;
  line-height: 1.15;
  letter-spacing: -0.025em;
  margin: 0;
}
.rl-orch__aliases {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  text-align: right;
  line-height: 1.6;
}
.rl-orch__chain {
  margin-top: 24px;
  padding-top: 24px;
  border-top: 1px solid var(--line);
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.rl-orch__arrow { color: var(--muted-2); }

/* Mono-style tag pill (used in chains, lists) */
.rl-mtag {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 10.5px;
  letter-spacing: 0.06em;
  color: var(--ink-2);
  background: var(--bg-2);
  border: 1px solid var(--line);
  padding: 2px 8px;
  border-radius: var(--r-pill);
}
.rl-mtag--signal {
  background: var(--signal-soft);
  border-color: #ffd9cc;
  color: var(--signal);
}

/* Level steps (4 progressive dots with on/off) */
.rl-lvl-steps {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.rl-lvl-step {
  width: 7px; height: 7px;
  border-radius: var(--r-pill);
  background: var(--line-strong);
}
.rl-lvl-step.is-on { background: var(--signal); }

/* Levels matrix (4-column grid) */
.rl-matrix {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}
.rl-matrix__row {
  display: grid;
  grid-template-columns: 180px 1fr 1fr 1fr;
  border-bottom: 1px solid var(--line);
}
.rl-matrix__row:last-child { border-bottom: 0; }
@media (min-width: 768px) { .rl-matrix__row { grid-template-columns: 240px 1fr 1fr 1fr; } }
.rl-matrix__row--head {
  background: var(--bg-2);
  border-bottom-color: var(--line-strong);
}
.rl-matrix__cell {
  padding: 24px;
  font-size: 14px;
  color: var(--ink-2);
  line-height: 1.55;
  border-left: 1px solid var(--line);
}
.rl-matrix__cell:first-child { border-left: 0; }
.rl-matrix__row--head .rl-matrix__cell { padding: 18px 24px; }
.rl-matrix__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1.25rem;
  margin: 12px 0 4px;
}
.rl-matrix__sub {
  font-size: 13px;
  color: var(--muted);
}

/* ============================================================
   Product / demo snippets — small selection of widgets pulled
   from the product demo pages (townhall, watch parties, AMA).
   ============================================================ */

/* Topic chip with optional active state and count */
.rl-topic-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-size: 12px;
  color: var(--muted);
  transition: border-color .2s ease, background .2s ease, color .2s ease;
  cursor: pointer;
}
.rl-topic-chip:hover { border-color: var(--ink); color: var(--ink); }
.rl-topic-chip.is-active {
  background: var(--signal-soft);
  border-color: var(--signal);
  color: var(--signal);
  font-weight: 500;
}
.rl-topic-chip__count {
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--muted-2);
}
.rl-topic-chip.is-active .rl-topic-chip__count { color: var(--signal); }

/* Sentiment graph (mini vertical bars) */
.rl-sentiment {
  display: inline-flex;
  align-items: flex-end;
  gap: 2px;
  height: 14px;
}
.rl-sentiment__bar {
  width: 3px;
  background: var(--mint);
  border-radius: 1px;
  transition: height 0.5s ease;
}
.rl-sentiment__bar.is-warn { background: #f59e0b; }
.rl-sentiment__bar.is-bad  { background: var(--live); }

/* Status row (agent online indicator) */
.rl-status-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted);
  padding: 6px 0;
}
.rl-status-row__dot {
  width: 6px; height: 6px;
  border-radius: var(--r-pill);
  background: var(--mint);
  flex: none;
  animation: rl-pulse-soft 2s infinite;
}
.rl-status-row__name { color: var(--ink-2); font-weight: 500; }
.rl-status-row__meta {
  margin-left: auto;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}
@keyframes rl-pulse-soft {
  0%, 100% { opacity: 1; }
  50%      { opacity: 0.45; }
}

/* Event timeline post (used in watch-party feeds) */
.rl-timeline {
  position: relative;
  padding-left: 36px;
}
.rl-timeline::before {
  content: "";
  position: absolute;
  left: 11px; top: 8px; bottom: 8px;
  width: 1px;
  background: var(--line);
}
.rl-timeline__item {
  position: relative;
  padding: 0 0 28px;
}
.rl-timeline__item:last-child { padding-bottom: 0; }
.rl-timeline__marker {
  position: absolute;
  left: -29px;
  top: 6px;
  width: 11px;
  height: 11px;
  border-radius: var(--r-pill);
  background: var(--bg);
  border: 2px solid var(--line-strong);
}
.rl-timeline__item.is-goal .rl-timeline__marker { background: var(--mint); border-color: var(--mint); box-shadow: 0 0 0 4px rgba(5,150,105,.15); }
.rl-timeline__item.is-card .rl-timeline__marker { background: #f59e0b; border-color: #f59e0b; }
.rl-timeline__item.is-highlight .rl-timeline__marker { background: var(--live); border-color: var(--live); }
.rl-timeline__head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.rl-timeline__minute {
  display: inline-flex;
  align-items: center;
  padding: 1px 8px;
  border-radius: var(--r-pill);
  background: var(--bg-2);
  border: 1px solid var(--line);
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
}
.rl-timeline__title {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  margin: 0;
  letter-spacing: -0.01em;
}
.rl-timeline__body {
  font-size: 13.5px;
  color: var(--muted);
  line-height: 1.55;
  margin: 0;
}

/* Typing dots */
.rl-typing-dots {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.rl-typing-dots span {
  width: 5px; height: 5px;
  border-radius: var(--r-pill);
  background: var(--muted-2);
  animation: rl-typing 1s infinite ease-in-out;
}
.rl-typing-dots span:nth-child(2) { animation-delay: 0.15s; }
.rl-typing-dots span:nth-child(3) { animation-delay: 0.3s; }
@keyframes rl-typing {
  0%, 100% { transform: translateY(0); opacity: 0.4; }
  50%      { transform: translateY(-3px); opacity: 1; }
}

/* Scoreboard (watch-party) */
.rl-scoreboard {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 20px 24px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
}
.rl-scoreboard__team {
  display: flex;
  align-items: center;
  gap: 12px;
}
.rl-scoreboard__team.is-away {
  flex-direction: row-reverse;
  text-align: right;
}
.rl-crest {
  width: 36px; height: 36px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 14px;
  flex: none;
  background: linear-gradient(135deg, #1e40af, #1e3a8a);
}
.rl-crest--away { background: linear-gradient(135deg, #b91c1c, #7f1d1d); }
.rl-scoreboard__name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.rl-scoreboard__sub {
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted-2);
}
.rl-scoreboard__score {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 2.5rem;
  letter-spacing: -0.025em;
  line-height: 1;
}
.rl-scoreboard__score-sep { color: var(--muted-2); font-weight: 400; }
.rl-scoreboard__clock {
  margin-top: 6px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--muted);
  justify-content: center;
}

/* ============================================================
   Footer (multi-column + bottom strip)
   ============================================================ */
.rl-footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
}
.rl-footer__cols {
  max-width: var(--container);
  margin: 0 auto;
  padding: 64px 24px;
  display: grid;
  gap: 40px;
  grid-template-columns: 1fr;
}
@media (min-width: 768px) {
  .rl-footer__cols {
    grid-template-columns: 5fr 2fr 2fr 3fr;
    padding: 64px 40px;
  }
}
.rl-footer__brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}
.rl-footer__brand-name {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.025em;
}
.rl-footer__tagline {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.6;
  max-width: 24rem;
  margin: 0;
}
.rl-footer__col .rl-kicker { display: block; margin-bottom: 16px; }
.rl-footer__list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
  font-size: 14px;
  color: var(--ink-2);
}
.rl-footer__list a { color: inherit; }

.rl-footer__bottom {
  border-top: 1px solid var(--line);
}
.rl-footer__bottom-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  font-family: var(--font-mono);
  font-size: 12px;
  color: var(--muted);
}
@media (min-width: 768px) {
  .rl-footer__bottom-inner {
    flex-direction: row;
    padding: 20px 40px;
  }
}

/* ============================================================
   Header (full sticky nav with brand, links, CTA)
   ============================================================ */
.rl-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(255,255,255,.8);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
          backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.rl-header__inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 24px;
  height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
@media (min-width: 1024px) { .rl-header__inner { padding: 0 40px; } }

.rl-header__brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 21px;
  letter-spacing: -0.025em;
  flex: none;
}

.rl-header__nav {
  display: none;
  align-items: center;
  gap: 32px;
  font-size: 14px;
  color: rgba(24,24,27,.8);
  flex: 1;
  justify-content: center;
}
@media (min-width: 768px) { .rl-header__nav { display: flex; } }

.rl-header__cta { display: flex; align-items: center; gap: 12px; flex: none; }

/* Compact "demo" header variant (lighter, single row of links) */
.rl-header--demo .rl-header__inner { height: 52px; }
.rl-header--demo .rl-header__brand { font-size: 18px; }

/* ── Mega-menu navigation ──────────────────────────────────── */
.rl-mega-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: none;
  border: none;
  padding: 0;
  font-size: 14px;
  font-family: inherit;
  color: rgba(24,24,27,.8);
  cursor: pointer;
  line-height: 1;
}
.rl-chev-down {
  transition: transform 0.2s ease;
  flex-shrink: 0;
  color: var(--muted);
}
.rl-mega-btn[aria-expanded="true"] .rl-chev-down {
  transform: rotate(180deg);
}
.rl-mega-panel {
  position: absolute;
  top: 100%;
  left: 0;
  right: 0;
  background: #fff;
  border-bottom: 1px solid var(--line);
  box-shadow: 0 8px 32px rgba(0,0,0,.08);
  z-index: 38;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  transition: max-height 0.28s ease, opacity 0.2s ease;
}
.rl-mega-panel.is-open {
  max-height: 520px;
  opacity: 1;
  pointer-events: auto;
}
.rl-mega-inner {
  max-width: var(--container);
  margin: 0 auto;
  padding: 28px 24px 32px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}
@media (min-width: 768px) {
  .rl-mega-inner { grid-template-columns: 1fr 220px; }
}
@media (min-width: 1024px) {
  .rl-mega-inner { padding: 28px 40px 32px; }
}
.rl-mega-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2px;
}
@media (min-width: 640px) { .rl-mega-grid { grid-template-columns: repeat(3, 1fr); } }
.rl-menu-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 12px;
  border-radius: var(--r-lg);
  text-decoration: none;
  color: var(--ink);
  transition: background 0.12s ease;
}
.rl-menu-item:hover { background: var(--bg-2); }
.rl-menu-icon {
  width: 34px;
  height: 34px;
  flex-shrink: 0;
  border-radius: 8px;
  background: var(--bg-2);
  border: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--ink-2);
  margin-top: 1px;
}
.rl-menu-title {
  font-size: 13.5px;
  font-weight: 500;
  color: var(--ink);
  display: block;
  line-height: 1.3;
}
.rl-menu-desc {
  font-size: 12px;
  color: var(--muted);
  display: block;
  margin-top: 2px;
  line-height: 1.45;
}
.rl-mega-featured {
  border-radius: var(--r-xl);
  background: var(--signal-soft);
  border: 1px solid rgba(255,74,28,.12);
  padding: 20px;
}
.rl-mega-featured__kicker {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--signal);
  margin-bottom: 8px;
}
.rl-mega-featured__title {
  font-size: 15px;
  font-weight: 600;
  font-family: var(--font-display);
  color: var(--ink);
  line-height: 1.3;
  margin-bottom: 6px;
  letter-spacing: -0.02em;
}
.rl-mega-featured__desc {
  font-size: 13px;
  color: var(--ink-2);
  line-height: 1.5;
  margin-bottom: 14px;
}
