/* Modern Mulle. Scope to Mulle documents, including body-portaled controls;
   partner routes keep their independent ThemeProvider and palette. */
@font-face {
  font-family: MulleBrandManrope;
  src: url('/fonts/manrope/latin.woff2') format('woff2');
  font-weight: 200 800;
  font-display: swap;
}
@font-face {
  font-family: MulleUnbounded;
  src: url('/fonts/unbounded/latin.woff2') format('woff2');
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: MulleJetBrainsMono;
  src: url('/fonts/jetbrains-mono/latin.woff2') format('woff2');
  font-weight: 400;
  font-display: swap;
}
html:has(.mulle-ui) {
  --mulle-bg: #070b0c;
  --mulle-bg2: #0b1113;
  --mulle-panel: #0d1416;
  --mulle-panel2: #142022;
  --mulle-elevated: #182326;
  --mulle-line: #263436;
  --mulle-line-strong: #455b5b;
  --mulle-text: #eef4f2;
  --mulle-muted: #a2b2af;
  --mulle-dim: #8d9f9b;
  --mulle-brand: #5cf0d0;
  --mulle-brand-deep: #9ef7e1;
  --mulle-on-brand: #03211a;
  --mulle-senior: #5cf0d0;
  --mulle-junior: #9da6ff;
  --mulle-lavender: #9da6ff;
  --mulle-accent: #5cf0d0;
  --mulle-warning: #f2be72;
  --mulle-warning-bg: #292219;
  --mulle-danger: #ff9998;
  --mulle-danger-soft: #ffb6ae;
  --mulle-success-bg: #102822;
  --mulle-header-bg: #070b0ce8;
  --mulle-shadow: 0 12px 36px #00000018;
  --mulle-glow: radial-gradient(ellipse at 85% 0%, #5cf0d008, transparent 45%);
  --mulle-font: MulleBrandManrope, system-ui, sans-serif;
  --mulle-display: MulleUnbounded, system-ui, sans-serif;
  --mulle-mono: MulleJetBrainsMono, ui-monospace, monospace;
  color-scheme: dark;
  background: var(--mulle-bg);
}
html[data-mulle-theme='light']:has(.mulle-ui) {
  --mulle-bg: #f1f6f4;
  --mulle-bg2: #e8f0ed;
  --mulle-panel: #fbfdfc;
  --mulle-panel2: #e5efeb;
  --mulle-elevated: #ffffff;
  --mulle-line: #ccdbd6;
  --mulle-line-strong: #8da8a1;
  --mulle-text: #122d2a;
  --mulle-muted: #49645e;
  --mulle-dim: #546f68;
  --mulle-brand: #007d69;
  --mulle-brand-deep: #006151;
  --mulle-on-brand: #ffffff;
  --mulle-senior: #007d69;
  --mulle-junior: #5d50c6;
  --mulle-lavender: #5d50c6;
  --mulle-accent: #007d69;
  --mulle-warning: #8a510a;
  --mulle-warning-bg: #fff1dc;
  --mulle-danger: #b03340;
  --mulle-danger-soft: #9b2a35;
  --mulle-success-bg: #dcefe8;
  --mulle-header-bg: #f1f6f4eb;
  --mulle-shadow: 0 12px 36px #173c3210;
  --mulle-glow: radial-gradient(ellipse at 85% 0%, #007d6909, transparent 45%);
  color-scheme: light;
}
/* Aliases let the landing's existing compact theme control share its styling. */
.mulle-ui {
  --ink: var(--mulle-bg);
  --ink2: var(--mulle-panel);
  --line: var(--mulle-line);
  --tx: var(--mulle-text);
  --mut: var(--mulle-muted);
  --accent: var(--mulle-brand);
  --accent-ink: var(--mulle-on-brand);
  --ml-text: var(--mulle-text);
  background: var(--mulle-bg);
  color: var(--mulle-text);
  font-family: var(--mulle-font);
  -webkit-font-smoothing: antialiased;
}
.mulle-ui *,
.mulle-ui *::before,
.mulle-ui *::after {
  box-sizing: border-box;
}
/* Tailwind v4 registers some color properties with inherits:false. Set those
   directly on descendants too; the :has scope never matches a partner page. */
html:has(.mulle-ui),
html:has(.mulle-ui) :where(*) {
  --color-background: var(--mulle-bg);
  --color-foreground: var(--mulle-text);
  --color-muted: var(--mulle-muted);
  --color-border: var(--mulle-line);
  --color-shadow: #00000018;
  --color-white: var(--mulle-panel);
  --color-white-opc80: var(--mulle-header-bg);
  --color-gray-50: var(--mulle-bg2);
  --color-gray-100: var(--mulle-panel2);
  --color-gray-200: var(--mulle-line);
  --color-gray-300: var(--mulle-line-strong);
  --color-gray-400: var(--mulle-dim);
  --color-gray-500: var(--mulle-dim);
  --color-gray-600: var(--mulle-muted);
  --color-gray-700: var(--mulle-muted);
  --color-gray-800: var(--mulle-text);
  --color-gray-900: var(--mulle-text);
  --color-primary: var(--mulle-brand);
  --color-primary-hover: var(--mulle-brand-deep);
  --color-secondary: var(--mulle-text);
  --font-family-sans: var(--mulle-font);
}
html:has(.mulle-ui) body {
  margin: 0;
  color: var(--mulle-text);
  font-family: var(--mulle-font);
}
html:has(.mulle-ui) [data-mulle-overlay] {
  font-family: var(--mulle-font);
}
.mulle-ui [data-mulle-brand] {
  color: var(--mulle-text);
  width: 114px;
}
.mulle-ui .of-main {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 clamp(16px, 4vw, 48px) 88px;
}
.mulle-ui .of-main:focus {
  outline: none;
}
.mulle-page-intro {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  flex-wrap: wrap;
  gap: 24px;
  padding: 52px 0 30px;
}
.mulle-page-intro > div:first-child {
  min-width: 0;
}
.mulle-eyebrow {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: 0 0 16px;
  color: var(--mulle-muted);
  font: 400 10px/1.6 var(--mulle-mono);
  letter-spacing: 0.16em;
  text-transform: uppercase;
}
.mulle-eyebrow::before {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--mulle-brand);
  flex: none;
}
.mulle-page-intro h1,
.mulle-ui .ofp-h1 {
  font: 500 clamp(28px, 3.2vw, 46px)/1.18 var(--mulle-display);
  letter-spacing: -0.055em;
  text-transform: uppercase;
  margin: 0;
  overflow-wrap: anywhere;
}
.mulle-page-intro .mulle-lede {
  max-width: 60ch;
  margin: 16px 0 0;
  font-size: 14px;
  line-height: 1.8;
  color: var(--mulle-muted);
}
.mulle-ui [data-mulle-card] {
  border-radius: 22px;
}
.mulle-ui ::selection {
  background: var(--mulle-brand);
  color: var(--mulle-on-brand);
}
.mulle-ui :is(button, a, summary, input, select):focus-visible {
  outline: none;
  box-shadow:
    0 0 0 2px var(--mulle-bg),
    0 0 0 4px var(--mulle-brand);
}
/* App controls use a calmer version of the landing's easing. No perpetual
   effects behind financial data; only finite entry, hover and disclosure. */
.mulle-ui {
  --mulle-motion-fast: 320ms;
  --mulle-motion-ease: cubic-bezier(0.22, 1, 0.36, 1);
}
@media (max-width: 600px) {
  .mulle-page-intro {
    padding-top: 30px;
    gap: 20px;
  }
  .mulle-page-intro h1 {
    font-size: clamp(26px, 7vw, 34px);
  }
  .mulle-ui .of-main {
    padding-inline: 16px;
  }
}
@media (prefers-reduced-motion: reduce) {
  .mulle-ui {
    --mulle-motion-fast: 0ms;
  }
}

html:has(.mulle-ui) [data-wallet-menu] {
  background: var(--mulle-panel);
  color: var(--mulle-text);
  border: 1px solid var(--mulle-line);
  box-shadow: var(--mulle-shadow);
  font-family: var(--mulle-font);
}
html:has(.mulle-ui) .bg-primary.text-white {
  color: var(--mulle-on-brand) !important;
}
