/* MyFundBridge public landing — aligned with client sign-in + portal. */
:root {
  --navy: #0c1826;
  --navy-2: #122033;
  --ink: #15202b;
  --muted: #5c6a76;
  --line: rgba(12, 24, 38, 0.1);
  --paper: #f3f0ea;
  --paper-2: #ebe6dc;
  --card: #ffffff;
  --gold: #c4a35a;
  --gold-deep: #b0893a;
  --gold-pale: #ead7a6;
  --emerald: #1b6b48;
  --amber: #8a6a28;
  --radius: 14px;
  --max: 1120px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
}

html, body {
  margin: 0;
  padding: 0;
}
html.mfb-nav-open,
body.mfb-nav-open {
  overflow: hidden;
  overscroll-behavior: none;
}

body.mfb {
  -webkit-text-size-adjust: 100%;
  font-family: Inter, system-ui, sans-serif;
  color: var(--ink);
  background: var(--paper);
  line-height: 1.55;
  min-height: 100%;
  min-height: 100dvh;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; }

.mfb-wrap {
  width: min(var(--max), calc(100% - 48px));
  margin-inline: auto;
}

.mfb-skip {
  position: absolute;
  left: 12px;
  top: -40px;
  z-index: 80;
  background: var(--gold-pale);
  color: var(--navy);
  padding: 8px 12px;
  font-size: 13px;
  font-weight: 600;
  border-radius: 4px;
}
.mfb-skip:focus { top: 12px; }

.mfb-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 22px;
  border-radius: 2px;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  transition: transform 0.18s var(--ease), box-shadow 0.18s var(--ease), background 0.18s var(--ease), border-color 0.18s var(--ease);
  cursor: pointer;
}
.mfb-btn svg { width: 14px; height: 14px; transition: transform 0.22s var(--ease); }
.mfb-btn:active { transform: translateY(0) scale(0.98); }
.mfb-btn:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}

.mfb-btn-gold {
  background: linear-gradient(180deg, var(--gold-pale), var(--gold));
  color: var(--navy);
  box-shadow: 0 8px 20px rgba(176, 137, 58, 0.22);
}
button.mfb-btn { border: 0; font: inherit; }

.mfb-btn-ghost {
  background: transparent;
  color: #f4efe4;
  border: 1px solid rgba(196, 163, 90, 0.55);
}

.mfb-btn-sm {
  min-height: 40px;
  padding: 0 16px;
  font-size: 11px;
}

.mfb-eyebrow {
  margin: 0 0 12px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--gold);
}
.mfb-eyebrow.is-ink { color: var(--gold-deep); }

h1, h2, h3 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-weight: 600;
  letter-spacing: -0.02em;
  line-height: 1.12;
  color: inherit;
}

/* Header */
.mfb-top {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(12, 24, 38, 0.88);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid transparent;
  padding-top: env(safe-area-inset-top);
  transition: border-color 0.25s var(--ease), background 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.mfb-top.is-stuck {
  background: rgba(12, 24, 38, 0.96);
  border-bottom-color: rgba(234, 215, 166, 0.12);
  box-shadow: 0 10px 28px rgba(0, 0, 0, 0.18);
}
.mfb-top-inner {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  min-height: 68px;
}
.mfb-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: #f4efe4;
  min-width: 0;
  transition: opacity 0.22s var(--ease);
}
.mfb-mark {
  width: 32px;
  height: 24px;
  color: var(--gold-pale);
  flex: 0 0 auto;
  transition: transform 0.35s var(--ease);
}
.mfb-word { display: flex; flex-direction: column; line-height: 1.05; }
.mfb-word-main {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
}
.mfb-word-sub {
  font-size: 10px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: rgba(244, 239, 228, 0.55);
  font-weight: 500;
}
.mfb-nav {
  display: flex;
  justify-content: center;
  gap: 28px;
}
.mfb-nav a {
  position: relative;
  color: rgba(244, 239, 228, 0.78);
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  transition: color 0.2s var(--ease);
}
.mfb-nav a::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -6px;
  height: 1px;
  background: var(--gold-pale);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.22s var(--ease);
}
.mfb-nav a:focus-visible { color: #fff; }
.mfb-nav a:focus-visible::after { transform: scaleX(1); }
.mfb-top-actions { display: flex; gap: 10px; align-items: center; }
.mfb-nav-extra { display: none; }
.mfb-nav-mask {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 35;
  border: 0;
  padding: 0;
  margin: 0;
  background: rgba(5, 11, 20, 0.58);
  cursor: pointer;
}
.mfb-nav-mask[hidden] { display: none !important; }
body.mfb-nav-open { overflow: hidden; }
body.mfb-nav-open .mfb-nav-mask {
  display: block !important;
}
.mfb-menu {
  display: none;
  width: 44px;
  height: 44px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  touch-action: manipulation;
  flex: 0 0 auto;
}
.mfb-menu span {
  display: block;
  width: 18px;
  height: 1.5px;
  margin: 6px auto;
  background: #f4efe4;
  transition: transform 0.2s var(--ease);
}
.mfb-top.is-open .mfb-menu span:first-child { transform: translateY(3.75px) rotate(45deg); }
.mfb-top.is-open .mfb-menu span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Hero */
.mfb-hero {
  position: relative;
  background:
    radial-gradient(900px 420px at 88% 12%, rgba(196, 163, 90, 0.12), transparent 55%),
    radial-gradient(700px 380px at 8% 80%, rgba(27, 107, 72, 0.12), transparent 50%),
    linear-gradient(180deg, var(--navy) 0%, var(--navy-2) 100%);
  color: #f4efe4;
  padding: 28px 0 72px;
  overflow: hidden;
}
.mfb-hero::before {
  content: "";
  position: absolute;
  inset: -20% 40% 40% -10%;
  background: radial-gradient(closest-side, rgba(196, 163, 90, 0.1), transparent 72%);
  pointer-events: none;
  z-index: 0;
  animation: mfb-glow 16s var(--ease) infinite alternate;
}
.mfb-hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  gap: 40px;
  align-items: center;
}
.mfb-hero h1 {
  margin: 0 0 18px;
  font-size: clamp(34px, 4.4vw, 56px);
  max-width: 15ch;
  color: #f7f2e8;
}
.mfb-lead {
  margin: 0 0 28px;
  max-width: 42ch;
  color: rgba(244, 239, 228, 0.78);
  font-size: 16.5px;
}
.mfb-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 18px;
}
.mfb-text-link {
  display: inline-flex;
  align-items: center;
  min-height: 48px;
  color: var(--gold-pale);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  text-decoration: none;
  transition: color 0.22s var(--ease), transform 0.22s var(--ease);
}
.mfb-text-link:focus-visible {
  color: #fff;
  transform: translateX(2px);
  outline: 2px solid var(--gold);
  outline-offset: 3px;
}
.mfb-hero-note {
  margin: 18px 0 0;
  font-size: 13px;
  color: rgba(244, 239, 228, 0.5);
  max-width: 42ch;
}

.mfb-hero-art { position: relative; }
.mfb-stage {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px;
  grid-template-rows: auto 1fr;
  gap: 12px 16px;
  align-items: stretch;
  min-height: 0;
  padding: 0;
}
.mfb-connect { grid-column: 1 / -1; }
.mfb-preview {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
}
.mfb-side {
  grid-column: 2;
  grid-row: 2;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 12px;
  min-width: 0;
}
.mfb-connect {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 0;
  color: var(--gold-pale);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.mfb-connect-arc {
  flex: 1;
  height: 28px;
  color: rgba(196, 163, 90, 0.7);
}
.mfb-connect-node {
  padding: 6px 10px;
  border: 1px solid rgba(196, 163, 90, 0.35);
  border-radius: 999px;
  white-space: nowrap;
}
.mfb-connect-node.is-portal { background: rgba(196, 163, 90, 0.1); }

.mfb-preview {
  background: #fff;
  color: var(--ink);
  border-radius: var(--radius);
  box-shadow:
    0 30px 60px rgba(0, 0, 0, 0.28),
    0 0 0 1px rgba(234, 215, 166, 0.14);
  overflow: hidden;
  pointer-events: none;
  user-select: none;
}
.mfb-preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 12px 16px;
  background: var(--navy);
  color: #f4efe4;
}
.mfb-preview-brand {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 16px;
}
.mfb-preview-chip {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-pale);
  border: 1px solid rgba(196, 163, 90, 0.4);
  padding: 4px 8px;
  border-radius: 999px;
}
.mfb-preview-body { padding: 18px 18px 20px; background: #fff; }
.mfb-preview-kicker {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--muted);
}
.mfb-preview-title {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 26px;
  margin: 4px 0 16px;
}
.mfb-metrics {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.mfb-metric {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  min-height: 88px;
  justify-content: center;
}
.mfb-metric span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
}
.mfb-metric strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  margin: 4px 0 0;
}
.mfb-metric em {
  font-style: normal;
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--amber);
  margin-top: 2px;
}
.mfb-metric.is-line strong,
.mfb-metric.is-avail strong { color: var(--emerald); }
.mfb-pills {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.mfb-pills span {
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-weight: 600;
  color: var(--navy);
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
}

.mfb-float {
  position: relative;
  background: #fff;
  color: var(--ink);
  border-radius: 12px;
  padding: 12px 14px;
  box-shadow: 0 16px 32px rgba(12, 24, 38, 0.16);
  border: 1px solid rgba(12, 24, 38, 0.08);
  width: auto;
  pointer-events: none;
}
.mfb-float-kicker {
  display: block;
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 4px;
}
.mfb-float strong { display: block; font-size: 13.5px; font-weight: 600; }
.mfb-float em { display: block; font-style: normal; font-size: 12px; color: var(--muted); margin-top: 2px; }
.mfb-float-doc,
.mfb-float-act { right: auto; top: auto; left: auto; bottom: auto; }

.mfb-caption {
  margin: 12px 0 0;
  font-size: 12px;
  color: rgba(244, 239, 228, 0.45);
}

/* Sections */
.mfb-section { padding: 88px 0; scroll-margin-top: 84px; }
.mfb-section-head { max-width: 38rem; margin-bottom: 40px; }
.mfb-section-head h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.4vw, 42px);
  color: var(--navy);
}
.mfb-section-head p { margin: 0; color: var(--muted); font-size: 16px; }

.mfb-benefits { background: var(--paper); }
.mfb-benefit-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px 28px;
}
.mfb-benefit-list li {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 16px;
  padding: 22px 0;
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0;
  box-shadow: none;
  transition: transform 0.28s var(--ease);
}
.mfb-benefit-list h3 {
  margin: 0 0 6px;
  font-size: 22px;
  color: var(--navy);
}
.mfb-benefit-list p { margin: 0; color: var(--muted); font-size: 14.5px; }
.mfb-ico {
  width: 44px;
  height: 44px;
  border-radius: 10px;
  background: var(--navy);
  color: var(--gold-pale);
  display: grid;
  place-items: center;
  transition: transform 0.28s var(--ease);
}
.mfb-ico svg { width: 22px; height: 22px; }

.mfb-how { background: #fff; border-block: 1px solid var(--line); }
.mfb-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
  counter-reset: none;
  position: relative;
}
.mfb-steps::before {
  content: "";
  position: absolute;
  top: 22px;
  left: 8%;
  right: 8%;
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--gold), transparent);
}
.mfb-step-num {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--gold-pale);
  display: grid;
  place-items: center;
  font-family: Inter, system-ui, sans-serif;
  font-size: 15px;
  font-weight: 600;
  font-variant-numeric: lining-nums;
  position: relative;
  z-index: 1;
  margin-bottom: 16px;
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease);
}
.mfb-steps h3 { margin: 0 0 8px; font-size: 22px; color: var(--navy); }
.mfb-steps p { margin: 0; color: var(--muted); font-size: 14.5px; }

.mfb-path {
  list-style: none;
  margin: 0 0 40px;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 0;
  max-width: 760px;
}
.mfb-path li {
  text-align: center;
  padding: 12px 18px;
  border: 1px solid var(--line);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  background: #fff;
  transition: border-color 0.22s var(--ease), transform 0.22s var(--ease);
}
.mfb-path li:not(:last-child)::after {
  content: "";
  display: inline-block;
  width: 28px;
  height: 1px;
  margin: 0 10px 0 18px;
  background: var(--gold);
  vertical-align: middle;
}

.mfb-soon {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  padding: 4px 10px;
  border: 1px solid rgba(176, 137, 58, 0.4);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--gold-deep);
}

.mfb-flow {
  list-style: none;
  margin: 0;
  padding: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(12, 24, 38, 0.08);
  pointer-events: none;
}
.mfb-flow li {
  display: grid;
  gap: 4px;
  padding: 18px 20px;
  border-bottom: 1px solid var(--line);
}
.mfb-flow li:last-child { border-bottom: 0; }
.mfb-flow span {
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--muted);
  font-weight: 600;
}
.mfb-flow strong {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy);
}
.mfb-flow em {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}
.mfb-flow li.is-soon span { color: var(--gold-deep); }

.mfb-detail-copy .mfb-eyebrow { margin-bottom: 8px; }

.mfb-detail { background: var(--paper); }
.mfb-detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.mfb-detail-copy h2 {
  margin: 0 0 14px;
  font-size: clamp(30px, 3.4vw, 42px);
  color: var(--navy);
}
.mfb-detail-copy > p { color: var(--muted); margin: 0 0 20px; }
.mfb-detail-points {
  margin: 0;
  padding: 0;
  list-style: none;
}
.mfb-detail-points li {
  position: relative;
  padding: 12px 0 12px 22px;
  border-top: 1px solid var(--line);
  color: var(--ink);
  font-size: 14.5px;
  transition: transform 0.28s var(--ease);
}
.mfb-detail-points li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 20px;
  width: 8px;
  height: 1px;
  background: var(--gold-deep);
}

.mfb-sheet {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: 0 18px 40px rgba(12, 24, 38, 0.08);
  pointer-events: none;
}
.mfb-sheet-row {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 2px 16px;
  padding: 16px 20px;
  border-bottom: 1px solid var(--line);
}
.mfb-sheet-row:last-child { border-bottom: 0; }
.mfb-sheet-row span {
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}
.mfb-sheet-row b {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 24px;
  font-weight: 600;
  font-variant-numeric: lining-nums tabular-nums;
  color: var(--navy);
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}
.mfb-sheet-row b.is-amber { color: var(--amber); }
.mfb-sheet-row i {
  font-style: normal;
  font-size: 13px;
  color: var(--muted);
}
.mfb-detail .mfb-caption { color: var(--muted); }

.mfb-faq { background: #fff; }
.mfb-faq-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1.2fr);
  gap: 48px;
  align-items: start;
}
.mfb-faq details {
  border-bottom: 1px solid var(--line);
  transition: background-color 0.28s var(--ease);
}
.mfb-faq details.is-open {
  background: linear-gradient(90deg, rgba(196, 163, 90, 0.08), transparent 72%);
}
.mfb-faq summary {
  list-style: none;
  cursor: pointer;
  padding: 18px 36px 18px 0;
  font-size: 17px;
  font-weight: 600;
  color: var(--navy);
  position: relative;
  min-height: 44px;
  transition: color 0.22s var(--ease);
}
.mfb-faq summary::-webkit-details-marker { display: none; }
.mfb-faq summary:focus-visible {
  outline: 2px solid var(--gold-deep);
  outline-offset: 3px;
}
.mfb-faq summary::after {
  content: "";
  position: absolute;
  right: 4px;
  top: 50%;
  width: 10px;
  height: 10px;
  border-right: 1.5px solid currentColor;
  border-bottom: 1.5px solid currentColor;
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.35s var(--ease);
}
.mfb-faq details.is-open summary::after,
.mfb-faq details[open] summary::after {
  transform: translateY(-20%) rotate(225deg);
}
.mfb-js .mfb-faq details[open]:not(.is-open) summary::after {
  transform: translateY(-70%) rotate(45deg);
}
.mfb-faq-panel {
  height: 0;
  overflow: hidden;
  opacity: 0;
  transition: height 0.42s var(--ease), opacity 0.28s ease;
}
body:not(.mfb-js) .mfb-faq details[open] .mfb-faq-panel {
  height: auto;
  opacity: 1;
}
.mfb-js .mfb-faq-panel {
  height: 0;
  opacity: 0;
}
.mfb-faq-panel p {
  margin: 0;
  padding: 2px 8px 20px 0;
  color: var(--muted);
  max-width: 52ch;
}
.mfb-faq a { color: var(--navy); font-weight: 600; }

.mfb-firm { background: var(--paper); }
.mfb-firm-panel {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.95fr);
  gap: 40px;
  align-items: start;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 36px 40px;
  box-shadow: 0 18px 40px rgba(12, 24, 38, 0.06);
}
.mfb-firm-copy h2 {
  margin: 0 0 12px;
  font-size: clamp(26px, 3vw, 36px);
  color: var(--navy);
}
.mfb-firm-copy > p { margin: 0 0 14px; color: var(--muted); }
.mfb-firm-graphic {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 8px 0 14px;
  color: var(--gold-deep);
  font-size: 10px;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 600;
}
.mfb-firm-graphic svg {
  flex: 1;
  height: 16px;
  color: var(--gold);
}
.mfb-firm-note { font-size: 13.5px; }
.mfb-firm-form { display: grid; position: relative; }
.mfb-firm-form label {
  font-size: 12px;
  font-weight: 600;
  color: var(--navy);
  margin-bottom: 6px;
}
.mfb-firm-form label span { color: var(--muted); font-weight: 500; }
.mfb-firm-form input,
.mfb-firm-form textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 10px 12px;
  font: inherit;
  color: var(--ink);
  background: var(--paper);
  margin-bottom: 12px;
  transition: border-color 0.2s var(--ease);
}
.mfb-firm-form input:focus,
.mfb-firm-form textarea:focus {
  outline: 2px solid var(--gold-deep);
  outline-offset: 1px;
  border-color: transparent;
}
.mfb-firm-form .mfb-btn { justify-self: start; }
.mfb-firm-form.is-sending .mfb-btn {
  opacity: 0.72;
  pointer-events: none;
}
.mfb-firm-status {
  min-height: 1.35em;
  margin: 10px 0 0;
  font-size: 13.5px;
  color: var(--muted);
}
.mfb-firm-form.is-ok .mfb-firm-status { color: var(--emerald); }
.mfb-firm-form.is-err .mfb-firm-status { color: #8a2f2f; }
.mfb-hp { display: none !important; }

.mfb-final {
  background:
    radial-gradient(700px 280px at 80% 0%, rgba(196, 163, 90, 0.14), transparent 55%),
    var(--navy);
  color: #f4efe4;
  padding: 80px 0;
}
.mfb-final-inner {
  max-width: 40rem;
  margin-inline: auto;
  text-align: center;
}
.mfb-final .mfb-hero-actions { justify-content: center; }
.mfb-final h2 {
  margin: 0 0 12px;
  font-size: clamp(30px, 3.6vw, 44px);
}
.mfb-final p { color: rgba(244, 239, 228, 0.72); margin: 0 0 24px; }

.mfb-foot {
  background: #08111b;
  color: rgba(244, 239, 228, 0.62);
  padding: 36px 0 calc(28px + env(safe-area-inset-bottom));
  font-size: 13px;
}
.mfb-foot-inner { display: grid; gap: 16px; }
.mfb-foot-brand .mfb-word-main { display: block; color: #f4efe4; font-size: 20px; }
.mfb-foot-brand .mfb-word-sub { display: block; margin-top: 2px; }
.mfb-foot-links { display: flex; flex-wrap: wrap; gap: 16px 22px; }
.mfb-foot-links a { color: #f4efe4; text-decoration: none; font-weight: 500; transition: opacity 0.2s var(--ease); }
.mfb-foot-links a:hover,
.mfb-foot-links a:focus-visible { text-decoration: underline; opacity: 0.82; }
.mfb-legal {
  margin: 10px 0 0;
  max-width: none;
  line-height: 1.65;
  font-size: 12px;
  color: rgba(244, 239, 228, 0.52);
  overflow: visible;
  overflow-wrap: anywhere;
  white-space: normal;
}
.mfb-legal b {
  color: #e8d5a3;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-weight: 600;
  letter-spacing: .03em;
}

/* Motion */
.mfb-hero-copy .mfb-eyebrow {
  animation: mfb-in 0.55s var(--ease) both;
}
.mfb-hero-copy h1 {
  animation: mfb-in 0.65s 0.06s var(--ease) both;
}
.mfb-hero-copy .mfb-lead {
  animation: mfb-in 0.65s 0.12s var(--ease) both;
}
.mfb-hero-copy .mfb-hero-actions {
  animation: mfb-in 0.65s 0.18s var(--ease) both;
}
.mfb-connect { animation: mfb-in 0.6s 0.1s var(--ease) both; }
.mfb-preview { animation: mfb-in 0.7s 0.18s var(--ease) both; }
.mfb-reveal {
  opacity: 0;
  transform: translateY(18px);
  animation: mfb-in 0.7s var(--ease) forwards;
}
.mfb-benefit-list li:nth-child(2),
.mfb-steps li:nth-child(2),
.mfb-flow li:nth-child(2) { animation-delay: 0.08s; }
.mfb-benefit-list li:nth-child(3),
.mfb-steps li:nth-child(3),
.mfb-flow li:nth-child(3) { animation-delay: 0.16s; }
.mfb-benefit-list li:nth-child(4) { animation-delay: 0.22s; }
.mfb-benefit-list li:nth-child(5) { animation-delay: 0.28s; }
.mfb-benefit-list li:nth-child(6) { animation-delay: 0.34s; }
.mfb-side { animation: mfb-in 0.7s 0.26s var(--ease) both; }
.mfb-float-doc { animation: mfb-float 5.5s 0.9s var(--ease) infinite; }
.mfb-float-act { animation: mfb-float 6.5s 1.1s var(--ease) infinite; }
.mfb-connect-arc path { stroke-dashoffset: 0; animation: mfb-dash 12s linear infinite; }
.mfb-stage.is-paused .mfb-float-doc,
.mfb-stage.is-paused .mfb-float-act,
.mfb-stage.is-paused .mfb-connect-arc path,
.mfb-hero.is-paused::before {
  animation-play-state: paused;
}

@keyframes mfb-in {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}
@keyframes mfb-float {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-5px); }
}
@keyframes mfb-dash {
  to { stroke-dashoffset: -80; }
}
@keyframes mfb-glow {
  from { transform: translate3d(0, 0, 0) scale(1); opacity: 0.7; }
  to { transform: translate3d(6%, 8%, 0) scale(1.08); opacity: 1; }
}
@keyframes mfb-faq {
  from { opacity: 0; transform: translateY(-6px); }
  to { opacity: 1; transform: none; }
}

.mfb-js .mfb-section .mfb-reveal,
.mfb-js .mfb-final .mfb-reveal {
  animation: none;
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.mfb-js .mfb-section .mfb-reveal.is-in,
.mfb-js .mfb-final .mfb-reveal.is-in {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .mfb-reveal,
  .mfb-float-doc,
  .mfb-float-act,
  .mfb-connect-arc path,
  .mfb-hero::before,
  .mfb-hero-copy .mfb-eyebrow,
  .mfb-hero-copy h1,
  .mfb-hero-copy .mfb-lead,
  .mfb-hero-copy .mfb-hero-actions,
  .mfb-connect,
  .mfb-preview,
  .mfb-faq details p,
  .mfb-faq-panel {
    animation: none !important;
    transition: none !important;
  }
  .mfb-reveal,
  .mfb-js .mfb-section .mfb-reveal,
  .mfb-js .mfb-final .mfb-reveal,
  .mfb-hero-copy .mfb-eyebrow,
  .mfb-hero-copy h1,
  .mfb-hero-copy .mfb-lead,
  .mfb-hero-copy .mfb-hero-actions,
  .mfb-connect,
  .mfb-preview {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }
  .mfb-btn,
  .mfb-text-link { transition: none; }
  .mfb-text-link:hover { transform: none; }
  .mfb-benefit-list li:hover,
  .mfb-benefit-list li:hover .mfb-ico,
  .mfb-steps li:hover .mfb-step-num,
  .mfb-detail-points li:hover,
  .mfb-path li:hover { transform: none; }
}

@media (hover: hover) and (pointer: fine) {
  .mfb-text-link:hover {
    color: #fff;
    transform: translateX(2px);
  }
  .mfb-btn:hover { transform: translateY(-1px); }
  .mfb-btn-gold:hover { box-shadow: 0 10px 24px rgba(176, 137, 58, 0.32); }
  .mfb-btn-ghost:hover { border-color: var(--gold-pale); background: rgba(196, 163, 90, 0.08); }
  .mfb-btn-gold:hover svg,
  .mfb-btn-ghost:hover svg { transform: translateX(3px); }
  .mfb-brand:hover { opacity: 0.88; }
  .mfb-brand:hover .mfb-mark { transform: translateY(-1px); }
  .mfb-nav a:hover { color: #fff; }
  .mfb-nav a:hover::after { transform: scaleX(1); }
  .mfb-faq summary:hover { color: var(--gold-deep); }
  .mfb-benefit-list li:hover { transform: translateX(4px); }
  .mfb-benefit-list li:hover .mfb-ico { transform: translateY(-2px); }
  .mfb-steps li:hover .mfb-step-num {
    transform: translateY(-3px);
    box-shadow: 0 10px 18px rgba(12, 24, 38, 0.16);
  }
  .mfb-detail-points li:hover { transform: translateX(4px); }
  .mfb-path li:hover {
    border-color: rgba(176, 137, 58, 0.55);
    transform: translateY(-1px);
  }
}

@media (max-width: 1100px) {
  .mfb-wrap { width: min(var(--max), calc(100% - 40px)); }
  .mfb-hero-grid,
  .mfb-detail-grid,
  .mfb-faq-grid { gap: 36px; }
  .mfb-stage { grid-template-columns: minmax(0, 1fr) 200px; }
}

@media (max-width: 959px) {
  .mfb-top-inner {
    grid-template-columns: minmax(0, 1fr) auto auto;
    gap: 10px;
  }
  .mfb-investor-btn { display: none; }
  .mfb-nav-extra {
    display: flex;
    margin-top: 8px;
    padding-top: 12px;
    border-top: 1px solid rgba(234, 215, 166, 0.12);
    font-weight: 600;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    font-size: 12px;
    color: var(--gold-pale);
  }
  .mfb-nav {
    position: absolute;
    left: 0;
    right: 0;
    top: 100%;
    z-index: 41;
    display: none;
    flex-direction: column;
    gap: 0;
    background: var(--navy);
    padding: 12px 20px 20px;
    border-bottom: 1px solid rgba(234, 215, 166, 0.12);
    box-shadow: 0 16px 32px rgba(0, 0, 0, 0.28);
  }
  .mfb-top.is-open .mfb-nav { display: flex; }
  .mfb-nav a { padding: 12px 0; min-height: 44px; display: flex; align-items: center; }
  .mfb-nav a::after { display: none; }
  .mfb-menu { display: block; }
  .mfb-top-actions .mfb-btn-sm { min-height: 44px; }
  .mfb-hero-grid,
  .mfb-detail-grid,
  .mfb-faq-grid,
  .mfb-benefit-list,
  .mfb-steps,
  .mfb-firm-panel { grid-template-columns: 1fr; }
  .mfb-firm-panel { padding: 28px 22px; gap: 24px; }
  .mfb-steps::before { display: none; }
  .mfb-path {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    gap: 10px;
    max-width: none;
  }
  .mfb-path li:not(:last-child)::after { display: none; }
  .mfb-hero { padding: 20px 0 48px; }
  .mfb-hero::before { animation: none; }
  .mfb-hero h1 { max-width: none; font-size: clamp(32px, 9vw, 44px); }
  .mfb-hero-art { order: 2; }
  .mfb-float { display: none; }
  .mfb-side { display: none; }
  .mfb-stage {
    display: block;
    min-height: 0;
    padding: 0;
  }
  .mfb-preview { margin-right: 0; margin-bottom: 0; }
  .mfb-section { padding: 64px 0; }
  .mfb-firm-form input,
  .mfb-firm-form textarea { font-size: 16px; min-height: 48px; }
  .mfb-firm-form .mfb-btn { width: 100%; justify-self: stretch; }
  .mfb-hero-actions .mfb-btn { min-height: 48px; }
  .mfb-btn { touch-action: manipulation; }
}

@media (max-width: 700px) {
  .mfb-wrap { width: calc(100% - 32px); }
  .mfb-top-inner {
    min-height: 60px;
  }
  .mfb-word-sub { display: none; }
  .mfb-btn-sm { min-height: 44px; padding: 0 12px; letter-spacing: 0.1em; }
  .mfb-hero-actions .mfb-btn { min-height: 48px; flex: 1 1 auto; }
  .mfb-metrics { gap: 8px; }
  .mfb-metric { min-height: 76px; padding: 10px; }
  .mfb-metric strong { font-size: 20px; }
  .mfb-preview-title { font-size: 22px; }
  .mfb-benefit-list li { grid-template-columns: 40px 1fr; padding: 18px 0; }
  .mfb-final { padding: 56px 0; }
  .mfb-caption { font-size: 11px; }
}

@media (max-width: 430px) {
  .mfb-wrap { width: calc(100% - 28px); }
  .mfb-brand .mfb-word-main { font-size: 18px; }
  .mfb-mark { width: 26px; }
}

@supports (padding: max(0px)) {
  .mfb-hero { padding-bottom: max(48px, env(safe-area-inset-bottom)); }
}
