/* ===========================================================================
 * components.css — Brimley custom CSS (base + components + utilities)
 *
 * Loaded directly in both dev and prod (via base.html). Plain CSS so it works
 * without the Tailwind CLI build step in dev (CDN). Source of truth for any
 * custom rule that doesn't fit cleanly as a single utility — buttons, cards,
 * nav, prose, input, badge, scrollbar.
 *
 * Don't put `@apply` or `theme()` in here — those need Tailwind processing.
 * Use raw oklch values to match tailwind.config.js tokens.
 * =========================================================================== */

/* ============================================================================
   Brand tokens — light Meta theme (DESIGN.md)
   Single source of truth for the customer-facing palette. Page-level CSS files
   reference these vars; do not re-declare them per-page.
============================================================================ */
:root {
  /* Butler palette — stone neutrals + cream + gold. Mirror tailwind.config.js. */
  --bg:        #fafaf9;  /* surface-50 — page paper */
  --bg-2:      #f5f5f4;  /* surface-100 — subtle tint */
  --bg-3:      #fbf5e3;  /* cream-100 — soft yellow ground (sidebar) */
  --ink:       #0c0a09;  /* surface-950 — deepest ink */
  --muted:     #78716c;  /* surface-500 — secondary */
  --line:      rgba(12, 10, 9, 0.08);
  --line-2:    rgba(12, 10, 9, 0.05);
  --gold:      #b89a64;  /* gold-400 — hairline rules, eyebrows */
  --cream:     #fbf5e3;  /* cream-100 — sidebar ground */

  --fb-blue:       #1877F2;
  --fb-blue-deep:  #0064E0;
  --meta-purple:   #6E5CFF;
  --meta-magenta:  #FF0080;
  --meta-orange:   #FF8B00;
  --meta-yellow:   #FFCD00;

  --apple-cyan:    #5AC8FA;
  --apple-blue:    #0A84FF;
  --apple-purple:  #AF52DE;
  --apple-pink:    #FF2D55;
  --apple-orange:  #FF9500;

  --success: #15994e;
  --warning: #FF8B00;
  --error:   #E0245E;

  --meta-gradient: linear-gradient(45deg, #0064E0 0%, #6E5CFF 22%, #FF0080 60%, #FF8B00 88%);
}

/* -------------------------------------------------------------------------
   Base layer
------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
}

html {
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  scroll-behavior: smooth;
}

body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: "Geist", ui-sans-serif, system-ui, sans-serif;
  line-height: 1.6;
}

[data-theme="dark"] body,
body[data-theme="dark"] {
  background-color: #14110d;
  color: #faf8f3;
}

/* Scrollbar styling */
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb {
  background: oklch(78% 0.007 260);
  border-radius: 3px;
}
[data-theme="dark"] ::-webkit-scrollbar-thumb {
  background: oklch(35% 0.02 260);
}
::-webkit-scrollbar-thumb:hover {
  background: oklch(68% 0.007 260);
}
[data-theme="dark"] ::-webkit-scrollbar-thumb:hover {
  background: oklch(45% 0.02 260);
}

/* -------------------------------------------------------------------------
   Component layer
------------------------------------------------------------------------- */

/* Card — flat tile. Same surface as .feature-card (white, hairline border,
   16px radius) but with no drop shadow. Use when the card sits inside another
   container or you want a quieter visual weight. */
.card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
}

.card-glass {
  background: oklch(100% 0 0 / 0.10);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}
[data-theme="dark"] .card-glass {
  background: oklch(13% 0.01 260 / 0.7);
  border-color: oklch(100% 0 0 / 0.06);
}

/* Input */
.input {
  width: 100%;
  background-color: white;
  border: 1px solid oklch(82% 0.007 260);
  border-radius: 0.5rem;
  padding: 0.5rem 0.875rem;
  font-size: 0.875rem;
  color: oklch(10% 0.02 260);
  transition: border-color 150ms ease, box-shadow 150ms ease;
  outline: none;
}
[data-theme="dark"] .input {
  background-color: oklch(13% 0.01 260);
  border-color: oklch(28% 0.015 260);
  color: oklch(90% 0.01 260);
}

.input::placeholder {
  color: oklch(55% 0.01 260);
}
[data-theme="dark"] .input::placeholder {
  color: oklch(50% 0.01 260);
}

.input:focus {
  border-color: oklch(55% 0.20 275);
  box-shadow: 0 0 0 3px oklch(55% 0.20 275 / 0.15);
}

.textarea {
  resize: vertical;
  min-height: 5rem;
}

/* Persona card states */
.persona-card-streaming {
  border-color: oklch(55% 0.20 275) !important;
  box-shadow: 0 0 20px -5px oklch(55% 0.20 275 / 0.25);
}

.persona-card-complete {
  border-color: oklch(65% 0.18 145) !important;
}

.persona-card-error {
  border-color: oklch(62% 0.22 25) !important;
}

/* Typing cursor */
.cursor-blink::after {
  content: "▋";
  animation: blink 1s step-start infinite;
  color: oklch(65% 0.15 275);
  font-size: 0.9em;
}

@keyframes blink {
  0%, 100% { opacity: 1; }
  50% { opacity: 0; }
}

/* Skeleton loader */
.skeleton {
  background: linear-gradient(
    90deg,
    oklch(90% 0.005 260) 25%,
    oklch(85% 0.005 260) 50%,
    oklch(90% 0.005 260) 75%
  );
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
  border-radius: 0.25rem;
}
[data-theme="dark"] .skeleton {
  background: linear-gradient(
    90deg,
    oklch(20% 0.01 260) 25%,
    oklch(24% 0.01 260) 50%,
    oklch(20% 0.01 260) 75%
  );
  background-size: 200% 100%;
}

@keyframes shimmer {
  0% { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* Nav */
.nav-link {
  padding: 0.375rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.875rem;
  color: oklch(40% 0.01 260);
  transition: color 150ms ease, background-color 150ms ease;
  text-decoration: none;
}
[data-theme="dark"] .nav-link {
  color: oklch(70% 0.01 260);
}

.nav-link:hover {
  color: oklch(10% 0.02 260);
  background-color: oklch(93% 0.006 260);
}
[data-theme="dark"] .nav-link:hover {
  color: oklch(92% 0.01 260);
  background-color: oklch(16% 0.015 260);
}

.nav-link-active {
  color: oklch(10% 0.02 260);
  background-color: oklch(93% 0.006 260);
}
[data-theme="dark"] .nav-link-active {
  color: oklch(92% 0.01 260);
  background-color: oklch(16% 0.015 260);
}

/* Select dropdown chevron */
.select-custom {
  appearance: none;
  -webkit-appearance: none;
  background-repeat: no-repeat;
  padding-right: 2.5rem;
  cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%2364748b'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
  background-position: right 0.75rem center;
  background-size: 1rem;
}

[data-theme="dark"] .select-custom {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23cbd5e1'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M19 9l-7 7-7-7'/%3E%3C/svg%3E");
}

/* Prose / markdown */
.prose {
  color: oklch(25% 0.01 260);
  line-height: 1.7;
}
[data-theme="dark"] .prose {
  color: oklch(82% 0.01 260);
}

.prose p { margin-top: 0.75em; margin-bottom: 0.75em; }
.prose p:first-child { margin-top: 0; }
.prose p:last-child { margin-bottom: 0; }

.prose h1,
.prose h2,
.prose h3,
.prose h4 {
  color: oklch(10% 0.01 260);
  font-weight: 600;
  line-height: 1.3;
  margin-top: 1.4em;
  margin-bottom: 0.5em;
}
[data-theme="dark"] .prose h1,
[data-theme="dark"] .prose h2,
[data-theme="dark"] .prose h3,
[data-theme="dark"] .prose h4 {
  color: oklch(95% 0.01 260);
}

.prose h1 { font-size: 1.25em; }
.prose h2 { font-size: 1.1em; }
.prose h3 { font-size: 1em; }

.prose strong {
  color: oklch(10% 0.01 260);
  font-weight: 600;
}
[data-theme="dark"] .prose strong {
  color: oklch(95% 0.01 260);
}

.prose em { font-style: italic; }

.prose ul { list-style-type: disc; padding-left: 1.5em; margin-top: 0.75em; margin-bottom: 0.75em; }
.prose ol { list-style-type: decimal; padding-left: 1.5em; margin-top: 0.75em; margin-bottom: 0.75em; }
.prose li { margin-top: 0.3em; margin-bottom: 0.3em; }

.prose code {
  font-family: ui-monospace, monospace;
  font-size: 0.875em;
  background: oklch(93% 0.008 275);
  color: oklch(40% 0.15 275);
  padding: 0.15em 0.4em;
  border-radius: 0.25rem;
}
[data-theme="dark"] .prose code {
  background: oklch(18% 0.01 260);
  color: oklch(76% 0.10 275);
}

.prose pre {
  background: oklch(95% 0.005 260);
  border: 1px solid oklch(85% 0.005 260);
  border-radius: 0.5rem;
  padding: 1em;
  overflow-x: auto;
  margin: 1em 0;
}
[data-theme="dark"] .prose pre {
  background: oklch(16% 0.01 260);
  border-color: oklch(24% 0.01 260);
}

.prose pre code {
  background: none;
  padding: 0;
  color: oklch(20% 0.01 260);
  font-size: 0.8125em;
}
[data-theme="dark"] .prose pre code {
  color: oklch(80% 0.01 260);
}

.prose blockquote {
  border-left: 3px solid oklch(40% 0.08 275);
  padding-left: 1em;
  margin: 1em 0;
  color: oklch(45% 0.01 260);
  font-style: italic;
}
[data-theme="dark"] .prose blockquote {
  color: oklch(65% 0.01 260);
}

.prose a {
  color: oklch(47% 0.22 275);
  text-decoration: underline;
}
[data-theme="dark"] .prose a {
  color: oklch(65% 0.15 275);
}

.prose a:hover {
  color: oklch(39% 0.20 275);
}
[data-theme="dark"] .prose a:hover {
  color: oklch(76% 0.10 275);
}

.prose hr {
  border-color: oklch(85% 0.005 260);
  margin: 1.5em 0;
}
[data-theme="dark"] .prose hr {
  border-color: oklch(25% 0.01 260);
}

/* -------------------------------------------------------------------------
   Utility layer
------------------------------------------------------------------------- */
.scrollbar {
  scrollbar-width: thin;
  scrollbar-color: rgb(148 163 184) transparent;
}
.scrollbar::-webkit-scrollbar { width: 6px; height: 6px; }
.scrollbar::-webkit-scrollbar-track { background: transparent; border-radius: 3px; }
.scrollbar::-webkit-scrollbar-thumb { background-color: rgb(148 163 184); border-radius: 3px; }
.scrollbar::-webkit-scrollbar-thumb:hover { background-color: rgb(100 116 139); }
[data-theme="dark"] .scrollbar { scrollbar-color: rgb(71 85 105) transparent; }
[data-theme="dark"] .scrollbar::-webkit-scrollbar-thumb { background-color: rgb(71 85 105); }
[data-theme="dark"] .scrollbar::-webkit-scrollbar-thumb:hover { background-color: rgb(100 116 139); }

/* ============================================================================
   Brand layer — shared across customer-facing pages (home, wizard, studies)
   Pulled out of per-page <style> blocks so we have one definition only.
============================================================================ */

/* Body brand background — opt-in via .brand-body on <body>. The default body
   background (oklch dark-friendly tone above) is kept for admin/wizard surfaces
   that don't opt in. */
.brand-body {
  background-color: var(--bg);
  color: var(--ink);
  font-family: 'Geist', system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
.dot-grid {
  position: fixed; inset: 0;
  background-image: radial-gradient(rgba(5, 5, 5, 0.01) 1px, transparent 0.5px);
  background-size: 5px 5px;
  z-index: 0;
}

.ink   { color: var(--ink); }
.muted { color: var(--muted); }
.hover\:ink:hover { color: var(--ink); }

.display { font-family: 'Fraunces', Georgia, serif; font-weight: 300; }

/* Meta-gradient italic accent text */
.meta-text {
  background: var(--meta-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
  padding-right: 0.06em;
}

/* Meta-gradient as a background fill (counterpart to .meta-text) */
.meta-bg {
  background: var(--meta-gradient);
}

/* Gradient brand tile used in nav and footer */
.tile-meta {
  background: var(--meta-gradient);
  box-shadow: 0 4px 14px -4px rgba(24, 119, 242, 0.5);
}

/* All-caps labels */
.label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.28em;
  font-weight: 600;
  color: var(--muted);
}
.label-loud {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-weight: 700;
}

/* Buttons — Meta primary + soft glass.
   Size scale: sm · default (compact) · lg · xl (hero). */
.btn-primary {
  background: var(--fb-blue);
  color: white;
  border: 1px solid transparent;
  border-radius: 9999px;
  padding: 0.65rem 1.3rem;
  font-weight: 600;
  font-size: 13.5px;
  box-shadow:
    inset 0 1px 0 rgba(255,255,255,0.20),
    0 1px 2px rgba(24, 119, 242, 0.25),
    0 18px 40px -14px rgba(24, 119, 242, 0.55);
  display: inline-flex; align-items: center; gap: 0.45rem;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
  text-decoration: none;
}
.btn-primary:hover {
  transform: translateY(-1px);
  background: var(--fb-blue-deep);
  box-shadow:
    0 1px 2px rgba(24,119,242,0.3),
    0 22px 50px -12px rgba(24,119,242,0.65);
}
.btn-primary-sm   { padding: 0.5rem 1.1rem;   font-size: 13px; }
.btn-primary-lg   { padding: 0.85rem 1.6rem;  font-size: 14px; }
.btn-primary-xl   { padding: 1rem 1.9rem;     font-size: 15px; }

.btn-ghost {
  position: relative;
  background: rgba(255,255,255,0.7);
  border: 1px solid var(--line);
  color: var(--ink);
  border-radius: 9999px;
  padding: 0.65rem 1.3rem;
  font-weight: 500;
  font-size: 13.5px;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  display: inline-flex; align-items: center; gap: 0.45rem;
  text-decoration: none;
  transition: transform 200ms ease, box-shadow 200ms ease, background 200ms ease;
}
.btn-ghost::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--meta-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.btn-ghost:hover {
  transform: translateY(-2px);
  background: rgba(255,255,255,0.95);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 1px 2px rgba(5,5,5,0.04),
    0 18px 36px -16px rgba(255, 0, 128, 0.20),
    0 14px 28px -16px rgba(24, 119, 242, 0.20);
}
.btn-ghost:hover::before { opacity: 0.6; }

/* Feature card — white tile with subtle outline + soft drop */
.feature-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 1px 2px rgba(5,5,5,0.04),
    0 22px 60px -28px rgba(5,5,5,0.18);
}

/* Gradient-border-on-hover modifier — Meta gradient ring fades in on hover.
   Pairs with anything that has a border-radius (.feature-card, .share-tile,
   .pp-card). Implemented via a masked ::before so only the perimeter shows
   the gradient. Lift + drop-shadow accompany. */
.feature-card-hover {
  position: relative;
  transition: transform 200ms ease, box-shadow 200ms ease;
}
.feature-card-hover::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 2px;
  background: var(--meta-gradient);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
          mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  opacity: 0;
  transition: opacity 200ms ease;
  pointer-events: none;
}
.feature-card-hover:hover {
  transform: translateY(-3px);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.6) inset,
    0 1px 2px rgba(5,5,5,0.04),
    0 30px 60px -22px rgba(255, 0, 128, 0.20),
    0 22px 40px -22px rgba(24, 119, 242, 0.20);
}
.feature-card-hover:hover::before { opacity: 0.6; }

/* ─── Halos ─── */
/* Bright five-orb halo for first-touch outdoor surfaces (home hero, participant
   landing). Element using this class must be position: relative and contain the
   halo as ::before. Variants: .halo-app (in-app, dimmer, ~40vh). */
.halo {
  position: relative;
}
.halo::before {
  content: "";
  position: absolute;
  top: 4%; left: 50%;
  transform: translateX(-50%);
  width: 96vw; max-width: 1400px;
  height: 86vh;
  background:
    radial-gradient(38% 42% at 16% 24%, rgba(90, 200, 250, 0.40) 0%, transparent 70%),
    radial-gradient(34% 38% at 50% 12%, rgba(10, 132, 255, 0.30) 0%, transparent 72%),
    radial-gradient(40% 42% at 84% 28%, rgba(175, 82, 222, 0.36) 0%, transparent 72%),
    radial-gradient(40% 40% at 78% 84%, rgba(255, 45, 85, 0.34) 0%, transparent 72%),
    radial-gradient(38% 40% at 22% 86%, rgba(255, 149, 0, 0.36) 0%, transparent 72%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

.halo-app {
  position: relative;
}
.halo-app::before {
  content: "";
  position: absolute;
  top: -10%; left: 50%;
  transform: translateX(-50%);
  width: 96vw; max-width: 1400px;
  height: 60vh; max-height: 480px;
  background:
    radial-gradient(38% 42% at 16% 24%, rgba(90, 200, 250, 0.28) 0%, transparent 70%),
    radial-gradient(34% 38% at 50% 12%, rgba(10, 132, 255, 0.20) 0%, transparent 72%),
    radial-gradient(40% 42% at 84% 28%, rgba(175, 82, 222, 0.24) 0%, transparent 72%),
    radial-gradient(40% 40% at 78% 84%, rgba(255, 45, 85, 0.22) 0%, transparent 72%),
    radial-gradient(38% 40% at 22% 86%, rgba(255, 149, 0, 0.24) 0%, transparent 72%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

/* ─── Status pills (study lifecycle) ─── */
.status-pill {
  display: inline-flex; align-items: center; gap: 0.4rem;
  padding: 3px 10px;
  border-radius: 9999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  line-height: 1.4;
}
.status-draft     { background: rgba(5, 5, 5, 0.05);     color: var(--muted); }
.status-ready     { background: rgba(24, 119, 242, 0.10); color: var(--fb-blue); }
.status-active    { background: rgba(255, 0, 128, 0.10); color: var(--meta-magenta); }
.status-completed { background: rgba(21, 153, 78, 0.10); color: var(--success); }
.status-progress  { background: rgba(24, 119, 242, 0.10); color: var(--fb-blue); }
.status-live      { background: rgba(255, 0, 128, 0.10); color: var(--meta-magenta); }
.status-done      { background: rgba(0, 165, 80, 0.10);  color: var(--success); }
.status-wait      { background: rgba(5, 5, 5, 0.05);     color: var(--muted); }
.status-error     { background: rgba(224, 36, 94, 0.10); color: var(--error);  }

/* Loud status pill (uppercase, tracked) — used on study detail hero. */
.status-pill-loud {
  display: inline-flex; align-items: center; gap: 0.4rem;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border-radius: 9999px;
  padding: 0.32rem 0.78rem;
  border: 1px solid transparent;
}
.status-pill-loud::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 9999px;
  background: currentColor;
}

/* Brand input — light theme, matches feature-card aesthetic. */
.brand-input {
  width: 100%;
  font: inherit;
  font-size: 14px;
  color: var(--ink);
  background: var(--bg-2);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 0.7rem 0.85rem;
  outline: none;
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease;
}
.brand-input:hover { background: white; }
.brand-input:focus {
  background: white;
  border-color: rgba(24, 119, 242, 0.55);
  box-shadow: 0 0 0 3px rgba(24, 119, 242, 0.18);
}
.brand-input.font-mono {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12.5px;
  line-height: 1.6;
}

/* Soft pulsing dot used inside live pills */
@keyframes ping-soft {
  0%       { transform: scale(1);   opacity: 0.7; }
  80%,100% { transform: scale(2.6); opacity: 0; }
}
.ping {
  position: absolute;
  inset: 0;
  border-radius: 9999px;
  background: var(--fb-blue);
  animation: ping-soft 1.6s cubic-bezier(0,0,0.2,1) infinite;
}
.ping-magenta { background: var(--meta-magenta); }
.ping-orange  { background: var(--meta-orange); }

/* Mono channel tag (web · phone) */
.channel-tag {
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--muted);
}

/* Stat dots used in dashboard cards */
.stat-dot {
  display: inline-flex; align-items: center; gap: 0.3rem;
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 10.5px;
  color: var(--muted);
  letter-spacing: 0.02em;
}
.stat-dot::before {
  content: "";
  width: 4px; height: 4px;
  border-radius: 9999px;
  background: var(--muted);
}
.stat-blue::before    { background: var(--fb-blue); }
.stat-magenta::before { background: var(--meta-magenta); }
.stat-success::before { background: var(--success); }

/* ─── Site nav (sticky, scroll-aware) ─── */
.nav-site {
  position: absolute;
  top: 0; left: 0; right: 0;
  width: 100%;
  z-index: 30;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background 200ms ease, border-color 200ms ease, backdrop-filter 200ms ease;
}
.nav-site.is-scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--line);
}
.nav-link-app {
  color: var(--muted);
  font-size: 13.5px;
  padding: 0.4rem 0.65rem;
  border-radius: 9999px;
  background: transparent;
  border: 1px solid transparent;
  transition: color 150ms ease, background 150ms ease, border-color 150ms ease;
  text-decoration: none;
}
.nav-link-app:hover { color: var(--ink); background: rgba(5,5,5,0.04); }

/* ─── Misc ─── */
.chip-magenta {
  background: rgba(255, 0, 128, 0.10);
  color: var(--meta-magenta);
  border: 1px solid rgba(255, 0, 128, 0.25);
}

/* ─── CTA / FOOTER ─────────────────────────────────────────────────── */
.cta-halo::before {
  content: "";
  position: absolute;
  inset: -10% 0;
  background:
    radial-gradient(40% 60% at 20% 50%, rgba(24, 119, 242, 0.20) 0%, transparent 70%),
    radial-gradient(40% 60% at 80% 50%, rgba(255, 0, 128, 0.20) 0%, transparent 70%),
    radial-gradient(50% 50% at 50% 100%, rgba(255, 139, 0, 0.18) 0%, transparent 70%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

footer .col-title {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.22em;
  font-weight: 700;
  color: var(--muted);
}
footer a.foot-link {
  display: block;
  color: var(--muted);
  font-size: 13px;
  padding: 4px 0;
  transition: color 150ms ease;
  font-weight: 300;
}
footer a.foot-link:hover { 
  color: var(--fb-blue); 
}

.border-l-gradient {
  border-left: none;
  background-image: var(--meta-gradient);
  background-size: 4px 100%;
  background-repeat: no-repeat;
  background-position: left;
  padding-left: calc(1.5rem + 4px);
}

/* Variant for cards with different default padding */
.border-l-gradient-sm {
  border-left: none;
  background-image: var(--meta-gradient);
  background-size: 3px 100%;
  background-repeat: no-repeat;
  background-position: left;
  padding-left: calc(1.5rem + 3px);
}

.gold-rule {
  height: 1px; 
  max-width: 100%; 
  margin: 20px auto 20px auto; 
  background: linear-gradient(to right, transparent, #b89a64, transparent);
}