/* MFH Fullservice: cyan, petrol and lime. Firvello retains its own identity. */
:root, :root .launch-beta {
  --mfh-blue: #009fe3;
  --mfh-teal: #18bca8;
  --mfh-lime: #a8df36;
  --paper: #f2f6f8;
  --surface: #ffffff;
  --ink: #102a39;
  --muted: #526b79;
  --line: #d2dfe6;
  --green: #006e9e;
  --accent: #a8df36;
  --soft: #e7f1f6;
  --action-ink: #02070b;
  --firvello-wordmark: #172d24;
  --firvello-footer: #637269;
  --firvello-dot: #265b45;
}
:root[data-theme=dark], :root[data-theme=dark] .launch-beta {
  --paper: #050d13;
  --surface: #0c1b26;
  --ink: #edf5f7;
  --muted: #a4bcc9;
  --line: #294653;
  --green: #60cef9;
  --soft: #102634;
  --firvello-wordmark: #f2f5ee;
  --firvello-footer: #b0bdb2;
  --firvello-dot: #8be2b7;
}

/* Logo assets are unchanged. Wordmarks and their dots do not inherit MFH's
   new action colors, including the wordmark inside the product preview. */
.launch-beta .brand { color: var(--firvello-wordmark); }
.launch-beta .brand-dot { color: var(--firvello-dot); }
.launch-beta .footer .brand { color: var(--firvello-footer); }
.launch-beta .preview-wordmark { color: #f0f5eb; }
.launch-beta .preview-wordmark>span { color: #85dfb4; }

.launch-beta .header, .legal-page .header { position: relative; }
.launch-beta .header::after, .legal-page .header::after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: linear-gradient(90deg, var(--mfh-blue), var(--mfh-teal) 62%, var(--mfh-lime));
}
.launch-beta .beta-label>span { background: var(--mfh-teal); }
.launch-beta .signature-rule { background: var(--mfh-teal); }
.launch-beta :is(.desktop-nav a,.login-link,.text-link):hover { color: var(--green); }
.launch-beta .button.primary {
  background: var(--mfh-blue);
  color: var(--action-ink);
  border-color: #007ba9;
}
.launch-beta .button.primary:hover { background: #26b2ee; filter: none; }
.launch-beta :is(a,button,input,summary,[tabindex]):focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 5px;
}
.launch-beta .preview-tabs button:focus-visible { outline-offset: -4px; }
.launch-beta ::selection { background: var(--mfh-lime); color: #02070b; }

.launch-beta .product-preview {
  --preview-paper: #0c1b26;
  --preview-soft: #102634;
  --preview-line: #294653;
  --preview-ink: #edf5f7;
  --preview-muted: #a4bcc9;
  --preview-accent: #60cef9;
  --preview-highlight: #0d3547;
}
.launch-beta .preview-window { box-shadow: 0 20px 50px -25px #02070b55; }
.launch-beta .chart-bars>span:last-child {
  background: var(--mfh-lime);
  border-top-color: var(--mfh-lime);
}

.launch-beta .beta-section { background: #0c2432; color: #edf5f7; }
.launch-beta .beta-section .eyebrow { color: var(--mfh-lime); }
.launch-beta .beta-invitation h2 span { color: #60cef9; }
.launch-beta .beta-invitation>p:not(.eyebrow) { color: #c9dce5; }
.launch-beta .beta-invitation>p.beta-description,
.launch-beta .beta-invitation>p.mail-note { color: #a4bcc9; }
.launch-beta .beta-section .beta-mail { background: var(--mfh-lime); color: #02070b; border-color: var(--mfh-lime); }
.launch-beta .beta-section .beta-mail:hover { background: #b9ed55; filter: none; }
.launch-beta .beta-section :is(a,button):focus-visible { outline-color: var(--mfh-lime); }
.launch-beta .beta-steps li { border-color: #355361; }
.launch-beta .beta-steps li>span { color: #60cef9; }
.launch-beta .beta-steps p { color: #bdd2dd; }
.launch-beta .contact-address:hover { color: #60cef9; }
.launch-beta .newsletter-status[data-state=success] { color: var(--green); }
@media(max-width:900px) {
  .launch-beta .beta-steps li:first-child { border-top-color: #355361; }
}
@media(prefers-reduced-motion:reduce) {
  .launch-beta :is(a,button,input) { transition: none; }
}

/* Legal pages share the MFH palette while keeping their original Firvello
   wordmarks. Legal text and reading layout are independent of the campaign. */
.legal-page { --firvello-wordmark: #173026; --firvello-footer: #64726a; }
:root[data-theme=dark] .legal-page { --firvello-wordmark: #f3f5ed; --firvello-footer: #a1afa4; }
.legal-page .brand { color: var(--firvello-wordmark); }
.legal-page .footer .brand { color: var(--firvello-footer); }
.legal-page .legal-main h1 { color: var(--green); }
.legal-page :is(a,button,input):focus-visible { outline-color: var(--green); }
.legal-page ::selection { background: var(--mfh-lime); color: #02070b; }
@media(max-width:650px) {
  .legal-page .header { gap: 12px; }
  .legal-page .header .brand { font-size: 23px; gap: 7px; }
  .legal-page .header nav { margin-left: auto; }
  .legal-page .header nav a { display: inline-flex; align-items: center; min-height: 44px; white-space: nowrap; font-size: 11px; }
  .legal-page .theme-button { flex-shrink: 0; width: 44px; height: 44px; }
  .legal-page .legal-main { overflow-wrap: anywhere; }
  .legal-page .legal-main h1 { font-size: clamp(26px,8vw,36px); letter-spacing: -1px; }
}

/* Original uploaded icon; wordmark colors stay independent of the bitmap. */
.brand img { object-fit: contain; flex-shrink: 0; background: transparent; }
.launch-beta .preview-wordmark img { display: inline-block; width: 18px; height: 18px; vertical-align: -3px; margin-right: 6px; object-fit: contain; }
.launch-beta .footer .brand img, .legal-page .footer .brand img { width: 24px; height: 24px; }
