/* MoneyportHub landing page — tokens, layout, type scale, motion */

:root {
  /* palette — Moneyport purple: logo purple ink on near-white, lilac tints for surfaces */
  --ink: #4f00b8;          /* logo purple: actions, headings, links, icon strokes */
  --ink-hover: #3d008f;
  --mint: #e3d6fa;         /* accent tint: settled/approved states, currency badges */
  --mint-soft: #efe6fb;    /* sparkline fill */
  --wash: #efe6fb;         /* hero panel, light cards, pills, CTA panel */
  --lilac: #d7c4f5;        /* mid-tone benefit card */
  --lilac-light: #e3d6fa;  /* accent benefit card */
  --panel: #dcd8f1;        /* product preview / dashboard panel */
  --paper: #fdfcff;        /* page background, card surfaces */
  --text: #222222;
  --muted: #6e6580;        /* secondary copy, eyebrows, captions */
  --line: #ece8f4;         /* hairlines and card borders */
  --grey-400: #6e6580;     /* footer headings and legal */
  --grey-300: #222222;     /* footer links */

  --font-display: 'Inter Tight', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-body: 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-wordmark: 'Inter Tight', 'Inter', 'Helvetica Neue', Helvetica, Arial, sans-serif;

  /* type scale (ClearBank-derived, measured at 1440px) */
  --text-display: clamp(48px, 7vw, 104px);
  --text-h2: clamp(32px, 3.4vw, 48px);
  --text-h3: clamp(26px, 2.6vw, 36px);
  --text-card: 28px;
  --text-lead: clamp(19px, 1.5vw, 21px);
  --text-eyebrow: 18px;
  --text-nav: 16px;
  --text-button: 18px;
  --text-body: 16px;
  --text-small: 14px;
  --text-legal: 12px;

  --gutter: clamp(36px, 5.6vw, 80px);
  --radius: 20px;          /* cards */
  --radius-lg: 30px;       /* panels */
  --radius-sm: 16px;       /* tiles */
  --radius-pill: 9999px;
  --ease-out: cubic-bezier(0.2, 0.7, 0.2, 1);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  background: var(--paper);
  color: var(--text);
  font-family: var(--font-body);
  font-size: var(--text-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--ink); text-decoration: none; }
a:hover { color: var(--ink-hover); }
h1, h2, h3 { margin: 0; font-family: var(--font-display); font-weight: 400; color: var(--ink); letter-spacing: -0.03em; text-wrap: pretty; }
p { margin: 0; }
svg { display: block; }

.page { width: 100%; min-height: 100vh; padding: 0 var(--gutter); }

/* ---- shared pieces ---- */
.eyebrow { font-family: var(--font-display); font-size: var(--text-eyebrow); line-height: 1.4; color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 4px; background: var(--wash); color: var(--ink); font-size: var(--text-small); letter-spacing: -0.01em; padding: 7px 14px; border-radius: var(--radius-pill); }
.pill--sm { font-size: 12px; padding: 4px 9px; }
.pill--accent { background: var(--paper); box-shadow: inset 0 0 0 1px var(--grey-300); }
.pill--mint, [data-received] { background: var(--mint); }
.button { display: inline-flex; align-items: center; white-space: nowrap; gap: 11px; background: var(--ink); color: var(--paper); font-size: var(--text-button); letter-spacing: -0.025em; line-height: 1.55; padding: 12px 24px; border-radius: var(--radius-pill); transition: background 0.2s ease, color 0.2s ease; }
.button:hover { background: var(--ink-hover); color: var(--paper); }
.button--pill { background: var(--ink); color: var(--paper); padding: 12px 24px; gap: 9px; }
.button--pill:hover { background: var(--ink-hover); color: var(--paper); }
.button--lg { font-size: 20px; padding: 20px 32px; gap: 14px; }
.link-arrow { display: inline-flex; align-items: center; gap: 9px; font-size: var(--text-button); color: var(--ink); }
.figure { font-family: var(--font-display); font-size: 28px; font-weight: 400; letter-spacing: -0.02em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; flex-shrink: 0; }
.muted { color: var(--muted); }
.card { background: var(--paper); border-radius: var(--radius); padding: 28px; display: flex; flex-direction: column; gap: 18px; }

/* ---- brand ---- */
.brand { display: flex; align-items: center; gap: 9px; color: var(--ink); }
.brand__word { font-family: var(--font-wordmark); font-size: 26px; font-weight: 600; color: inherit; letter-spacing: -0.04em; }
.brand--footer .brand__word { font-size: 20px; }

/* ---- nav ---- */
.nav { height: 84px; display: flex; align-items: center; justify-content: space-between; gap: 21px; }
.nav__links { display: flex; align-items: center; gap: 28px; }
.nav__links a { font-size: var(--text-nav); color: var(--text); padding: 9px 16px; border-radius: var(--radius-pill); transition: background 0.2s ease; }
.nav__links a:hover { color: var(--ink); background: var(--wash); }
.nav__actions { display: flex; align-items: center; gap: 21px; }
.nav__login { font-size: var(--text-nav); color: var(--text); }
.nav__burger { display: none; width: 44px; height: 44px; align-items: center; justify-content: center; background: none; border: 0; border-radius: var(--radius-pill); color: var(--ink); cursor: pointer; }

/* ---- nav: drop-down menu (About) ----
 * The trigger sits in the link row; the panel is positioned against .page so it
 * spans the full width beneath the header. Opens on hover, focus or click. */
.page { position: relative; }
.nav__item { display: flex; align-items: center; }
.nav__menu-btn { position: relative; display: inline-flex; align-items: center; gap: 7px; font: inherit; font-size: var(--text-nav); color: var(--text); background: none; border: 0; padding: 9px 16px; border-radius: var(--radius-pill); cursor: pointer; transition: background 0.2s ease, color 0.2s ease; }
.nav__menu-btn svg { transition: transform 0.25s var(--ease-out); }
.nav__menu-btn::after { content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 24px; }   /* hover bridge across the gap to the panel */
.nav__item:hover .nav__menu-btn, .nav__item.is-open .nav__menu-btn { color: var(--ink); background: var(--wash); }
.nav__item:hover .nav__menu-btn svg, .nav__item.is-open .nav__menu-btn svg { transform: rotate(180deg); }
.nav__menu { position: absolute; left: 0; right: 0; top: 84px; z-index: 20; background: var(--paper); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); box-shadow: 0 28px 48px -24px rgba(79, 0, 184, 0.14); padding: 35px var(--gutter) 42px; opacity: 0; visibility: hidden; transform: translateY(-8px); transition: opacity 0.25s var(--ease-out), transform 0.25s var(--ease-out), visibility 0s linear 0.25s; }
.nav__item:hover .nav__menu, .nav__item.is-open .nav__menu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.nav__menu-inner { display: flex; }
.nav__menu-col { display: flex; flex-direction: column; gap: 2px; min-width: 240px; padding-right: 49px; }
.nav__menu-col + .nav__menu-col { border-left: 1px solid var(--line); padding-left: 49px; }
.nav__menu-k { font-size: 12px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.nav__links .nav__menu-col a { padding: 7px 0; border-radius: 0; font-size: 16px; color: var(--text); }
.nav__links .nav__menu-col a:hover { background: none; color: var(--ink); }

/* ---- hero ---- */
.hero { margin-top: 21px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 21px; }
.hero__copy { background: var(--wash); border: 1px solid transparent; border-radius: var(--radius-lg); padding: 56px 49px; display: flex; flex-direction: column; justify-content: space-between; gap: 42px; }
.hero__copy-top { display: flex; flex-direction: column; gap: 28px; }
.hero h1 { font-size: var(--text-display); line-height: 0.9; letter-spacing: -0.045em; }
.hero__lead { font-family: var(--font-display); font-size: var(--text-lead); line-height: 1.3; color: var(--muted); max-width: none; }
.hero__copy-bottom { display: flex; flex-direction: column; gap: 21px; }
.hero__actions { display: flex; align-items: center; gap: 21px; flex-wrap: wrap; }
.legal { font-size: var(--text-legal); line-height: 1.5; color: var(--muted); }

.product { background: var(--panel); border-radius: var(--radius-lg); padding: 42px; display: flex; flex-direction: column; gap: 14px; }
.product__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.card__head { display: flex; align-items: center; justify-content: space-between; gap: 14px; }
.swap-slot { display: grid; justify-items: end; align-items: center; }
.swap-slot > * { grid-area: 1 / 1; }
.updated { font-size: var(--text-small); color: var(--muted); }
.accounts { display: flex; flex-direction: column; gap: 11px; }
.account { display: flex; align-items: center; justify-content: space-between; gap: 14px; padding-bottom: 11px; border-bottom: 1px solid var(--line); }
.account:last-child { padding-bottom: 0; border-bottom: 0; }
.account__id { display: flex; align-items: center; gap: 11px; min-width: 0; }
.badge { width: 32px; height: 32px; border-radius: var(--radius-pill); background: var(--mint); display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 700; letter-spacing: 0.02em; color: var(--ink); flex-shrink: 0; }
.account__name { display: flex; flex-direction: column; }
.account__name small { font-size: 12px; color: var(--muted); }
.stack-4 { display: flex; flex-direction: column; gap: 4px; }
.stack-9 { display: flex; flex-direction: column; gap: 9px; }
.small { font-size: 12px; color: var(--muted); }
.step { display: flex; align-items: center; gap: 9px; font-size: var(--text-small); }
.dot { width: 8px; height: 8px; border-radius: 999px; background: var(--ink); flex-shrink: 0; }
.dot--open { background: transparent; border: 1px solid var(--ink); }
.spark { position: relative; }
.spark svg { width: 100%; height: 44px; }
.spark__cursor { position: absolute; top: 0; bottom: 0; left: 0; border-left: 1px dashed var(--ink); }

/* ---- proof marquee ---- */
.proof { padding: 70px 0 49px; display: flex; flex-direction: column; align-items: center; gap: 28px; }
.marquee { width: 100%; overflow: hidden; -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.marquee__track { display: flex; align-items: center; gap: 99px; width: max-content; padding-right: 99px; animation: mp-marquee 26s linear infinite; }
.marquee__track span { font-family: var(--font-display); font-size: 18px; letter-spacing: -0.01em; color: var(--muted); white-space: nowrap; }
@keyframes mp-marquee { from { transform: translate3d(0, 0, 0); } to { transform: translate3d(-50%, 0, 0); } }

/* ---- benefits ---- */
.benefits { padding-top: 49px; display: flex; flex-direction: column; gap: 42px; }
.section-head { display: flex; flex-direction: column; gap: 14px; max-width: 720px; }
h2 { font-size: var(--text-h2); line-height: 1.07; letter-spacing: -0.03em; }
.benefits__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 21px; }
.benefit { border-radius: var(--radius-lg); padding: 42px; display: flex; flex-direction: column; gap: 21px; }
.benefit h3 { font-size: var(--text-card); line-height: 1.2; letter-spacing: -0.02em; }
.benefit svg { color: var(--ink); }
.benefit p { line-height: 1.5; }
.benefit--grey { background: var(--wash); }
.benefit--grey + .benefit--grey { background: var(--lilac-light); }
.benefit--dark { background: var(--lilac); color: var(--text); }
.benefit--dark h3 { color: var(--ink); }
.benefit--dark p { color: var(--text); }
.benefit--dark svg { color: var(--ink); }

/* ---- platform ---- */
.platform { padding-top: 99px; display: grid; grid-template-columns: 380px minmax(0, 1fr); gap: 42px; align-items: start; }
.platform__copy { display: flex; flex-direction: column; gap: 21px; padding-top: 42px; }
.checklist { display: flex; flex-direction: column; gap: 11px; padding-top: 7px; color: var(--ink); }
.checklist div { display: flex; align-items: center; gap: 11px; }
.platform__frame { background: var(--panel); border-radius: var(--radius-lg); padding: 42px; }
.dash { background: var(--paper); border-radius: var(--radius); padding: 28px; display: grid; grid-template-columns: 160px minmax(0, 1fr); gap: 28px; }
.dash__side { display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); padding-right: 21px; }
.dash__side span { font-size: var(--text-small); padding: 9px 14px; border-radius: var(--radius-pill); }
.dash__side .is-active { background: var(--wash); color: var(--ink); }
.dash__main { display: flex; flex-direction: column; gap: 21px; min-width: 0; }
.dash__top { display: flex; align-items: flex-end; justify-content: space-between; gap: 14px; }
.dash__total { font-family: var(--font-display); font-size: 44px; line-height: 1.05; font-weight: 400; letter-spacing: -0.03em; color: var(--ink); }
.dash__tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 11px; }
.tile { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 18px 21px; display: flex; flex-direction: column; gap: 4px; color: var(--ink); }
.tile span:first-child { font-size: 12px; color: var(--muted); } .tile span:last-child { font-family: var(--font-display); font-size: 20px; letter-spacing: -0.02em; white-space: nowrap; }
.table { display: flex; flex-direction: column; }
.table__row { display: grid; grid-template-columns: 1.8fr 1fr 1fr 1.3fr; gap: 11px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: center; font-size: var(--text-small); }
.table__row:last-child { border-bottom: 0; }
.table__row--head { padding: 0 0 9px; }
.table__row--head span { font-size: 12px; color: var(--muted); }
.table__row .amount { text-align: right; white-space: nowrap; }
.table__row .pill { justify-self: start; }
.swap { display: inline-grid; }
.swap > span { grid-area: 1 / 1; white-space: nowrap; }

/* ---- FAQ ---- */
.faq { padding-top: 99px; display: flex; flex-direction: column; gap: 42px; }
.faq__list { display: flex; flex-direction: column; }
.faq__item { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 42px; padding: 35px 0; border-bottom: 1px solid var(--line); }
.faq__item:first-child { padding-top: 0; } .faq__item:last-child { border-bottom: 0; padding-bottom: 0; }
.faq__item h3 { font-size: var(--text-h3); line-height: 1.15; }
.faq__item p { line-height: 1.5; padding-top: 11px; }

/* ---- CTA ---- */
.cta { padding-top: 99px; }
.cta__panel { background: var(--wash); border-radius: var(--radius-lg); padding: 76px 70px; display: flex; align-items: center; justify-content: space-between; gap: 42px; }
.cta__copy { display: flex; flex-direction: column; gap: 18px; max-width: 640px; }
.cta__copy p:last-child { line-height: 1.5; }

/* ---- footer ---- */
.footer { margin: 99px calc(-1 * var(--gutter)) 0; padding: 56px var(--gutter) 66px; background: var(--paper); border-top: 1px solid var(--line); color: var(--text); display: flex; flex-direction: column; gap: 35px; }
.footer .brand { color: var(--ink); }
.footer .eyebrow { font-size: var(--text-body); color: var(--grey-400); }
.footer__top { display: flex; justify-content: space-between; align-items: flex-start; gap: 42px; }
.footer__brand { display: flex; flex-direction: column; gap: 21px; max-width: 560px; flex: 1 1 0; }
.footer__cols { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 70px; margin-right: clamp(24px, 4vw, 56px); }
.footer__col { display: flex; flex-direction: column; gap: 11px; }
.footer__col a { color: var(--grey-300); }
.footer__col a:hover { color: var(--ink); }
.footer .legal { line-height: 1.6; color: var(--grey-400); }

/* ==== motion (all initial hidden states gated on .mp-js so the page is complete without JS) ==== */
.mp-js [data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 0.8s var(--ease-out), transform 0.8s var(--ease-out); }
.mp-js [data-reveal].mp-in { opacity: 1; transform: none; }
.mp-js [data-reveal-group] > [data-reveal]:nth-child(2) { transition-delay: 0.1s; }
.mp-js [data-reveal-group] > [data-reveal]:nth-child(3) { transition-delay: 0.2s; }
.mp-js [data-reveal-group] > [data-reveal]:nth-child(4) { transition-delay: 0.3s; }
.mp-js [data-reveal-group] > [data-reveal]:nth-child(5) { transition-delay: 0.4s; }

.mp-js [data-fx-line] { stroke-dasharray: 1; stroke-dashoffset: 1; }
.mp-js.mp-p1 [data-fx-line] { stroke-dashoffset: 0; transition: stroke-dashoffset 1.4s cubic-bezier(0.4, 0, 0.2, 1); }
.mp-js [data-fx-fill] { opacity: 0; }
.mp-js.mp-p1 [data-fx-fill] { opacity: 1; transition: opacity 0.8s ease 0.7s; }
.mp-js [data-fx-cursor] { opacity: 0; left: 0; }
.mp-js.mp-p1 [data-fx-cursor] { opacity: 1; left: 100%; transition: left 1.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.3s ease; }
.mp-js.mp-p1.mp-p1-done [data-fx-cursor] { opacity: 0; }
.mp-js [data-step] { opacity: 0.35; transition: opacity 0.5s ease; }
.mp-js [data-step] .dot { transition: background 0.5s ease; }
.mp-js.mp-p2 [data-step="1"], .mp-js.mp-p3 [data-step="2"], .mp-js.mp-p4 [data-step="3"] { opacity: 1; }
.mp-js.mp-p4 [data-step="3"] .dot { background: var(--ink); }
.mp-js.mp-p4 [data-step="3"] .muted { color: var(--text); transition: color 0.5s ease; }
.mp-js [data-received] { opacity: 0; transform: translateY(4px) scale(0.92); transition: opacity 0.45s var(--ease-out), transform 0.45s var(--ease-out); }
.mp-js.mp-p5 [data-received] { opacity: 1; transform: none; }
.mp-js [data-received-out] { transition: opacity 0.3s ease; }
.mp-js.mp-p5 [data-received-out] { opacity: 0; }
.mp-js [data-swap] > span { transition: opacity 0.5s ease; }
.mp-js [data-swap] > [data-swap-b] { opacity: 0; }
.mp-js.mp-p6 [data-swap] { background: var(--mint); box-shadow: none; transition: background 0.5s ease, box-shadow 0.5s ease; }
.mp-js.mp-p6 [data-swap] > [data-swap-a] { opacity: 0; }
.mp-js.mp-p6 [data-swap] > [data-swap-b] { opacity: 1; }
.mp-reset, .mp-reset * { transition: none !important; }


/* ==== responsive ==== */
@media (max-width: 1100px) {
  .platform { grid-template-columns: 1fr; }
  .platform__copy { padding-top: 0; }
  .benefits__grid { grid-template-columns: 1fr; }
  .cta__panel { flex-direction: column; align-items: flex-start; padding: 56px 42px; }
  .button--lg { padding: 16px 28px; font-size: 18px; }
  .footer__cols { gap: 42px; }
}
@media (max-width: 900px) {
  .nav { height: 70px; }
  .nav__links { display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: 74px; flex-direction: column; align-items: stretch; gap: 4px; background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius); padding: 11px; z-index: 10; }
  .nav.is-open .nav__links { display: flex; }
  .nav__login { display: none; }
  .nav__burger { display: inline-flex; }
  .nav__item { flex-direction: column; align-items: stretch; }
  .nav__menu-btn { width: 100%; justify-content: space-between; }
  .nav__menu-btn::after { display: none; }
  .nav__item:hover .nav__menu-btn { color: var(--text); background: none; }
  .nav__item:hover .nav__menu-btn svg { transform: none; }
  .nav__item.is-open .nav__menu-btn { color: var(--ink); background: var(--wash); }
  .nav__item.is-open .nav__menu-btn svg { transform: rotate(180deg); }
  .nav__menu { position: static; display: none; opacity: 1; visibility: visible; transform: none; border: 0; box-shadow: none; padding: 6px 0 10px 16px; transition: none; }
  .nav__item.is-open .nav__menu { display: block; }
  .nav__menu-inner { flex-direction: column; gap: 14px; }
  .nav__menu-col { min-width: 0; padding: 0; }
  .nav__menu-col + .nav__menu-col { border-left: 0; padding-left: 0; }
  .nav__menu-k { margin-bottom: 4px; }
  .hero { grid-template-columns: 1fr; margin-top: 14px; }
  .hero__copy { padding: 35px 24px; gap: 28px; }
  .product { padding: 21px; gap: 11px; }
  .product__row { gap: 11px; }
  .card { padding: 21px; gap: 14px; }
  .figure { font-size: 28px; }
  .dash { grid-template-columns: 1fr; }
  .dash__side { flex-direction: row; flex-wrap: wrap; border-right: 0; padding-right: 0; border-bottom: 1px solid var(--line); padding-bottom: 14px; }
  .dash__tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .table__row { grid-template-columns: 1.6fr 1fr 1fr; }
  .table__row .rail { display: none; }
  .faq__item { grid-template-columns: 1fr; gap: 11px; padding: 28px 0; }
  .faq__item p { padding-top: 0; }
  .footer__top { flex-direction: column; }
  .footer__cols { grid-template-columns: 1fr; gap: 28px; }
  .benefit { padding: 28px; }
  .platform__frame { padding: 21px; }
  .proof { padding: 49px 0 35px; }
  .benefits, .faq, .cta { padding-top: 70px; }
  .footer { margin-top: 70px; }
}

@media (max-width: 480px) {
  .nav__actions { gap: 9px; }
  .nav .button--pill { font-size: 16px; padding: 10px 18px; }
  .brand__word { font-size: 22px; }
  .product { padding: 14px; }
  .card { padding: 18px; }
  .product__row { grid-template-columns: 1fr; }
  .badge { width: 28px; height: 28px; font-size: 11px; }
  .account__name span { line-height: 1.25; }
  .account { gap: 9px; }
  .account__name small { display: none; }
  .figure { font-size: 20px; white-space: nowrap; }
  .account__id { min-width: 0; }
  .ccy { display: none; }
  .dash__top { flex-wrap: wrap; }
  .dash__total { font-size: 36px; }
  .dash { padding: 18px; }
  .hero__copy { padding: 28px 21px; }
}
