/* Landing page: everything below the mascot hero.
   Shares the hero's language - Helvetica Now, neutral studio surfaces, black/white
   pills, generous whitespace - and sits on a rounded "sheet" that overlaps the hero's
   bottom edge. Scoped under .landing / .lp-*; loaded only by main/landing.html. */

.landing {
  --lp-bg: #f7f7f8;
  --lp-surface: #fff;
  --lp-ink: #0b0b0c;
  --lp-muted: #5f5f68;      /* 6:1 on --lp-bg: body-safe */
  --lp-soft: #85858e;       /* large display text only (3:1+) */
  --lp-line: rgba(11, 11, 12, .09);
  --lp-accent: #067647;
  --lp-stage: radial-gradient(120% 90% at 70% 40%, #f4f4f5 0%, #e7e7e9 100%);
  --lp-shadow: 0 1px 2px rgba(11, 11, 12, .04), 0 24px 48px -28px rgba(11, 11, 12, .22);
  --lp-ease: cubic-bezier(.2, .7, .2, 1);
  background: var(--lp-bg);
  color: var(--lp-ink);
}

/* --------------------------------------------------------------- structure */
.lp-sheet {
  position: relative; z-index: 2; margin-top: -32px;
  background: var(--lp-bg); border-radius: 32px 32px 0 0;
  box-shadow: 0 -1px 0 var(--lp-line), 0 -28px 56px -36px rgba(11, 11, 12, .28);
}
.lp-wrap { max-width: 1240px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 640px) { .lp-wrap { padding: 0 32px; } }
@media (min-width: 1024px) { .lp-wrap { padding: 0 40px; } }
.lp-section { padding: clamp(56px, 8vw, 120px) 0; }
.lp-sheet > .lp-section:first-child { padding-top: clamp(64px, 9vw, 128px); }

.lp a:not(.mf-pill) { color: inherit; }
.lp a:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; border-radius: 4px; }

/* -------------------------------------------------------------- typography */
.lp h1, .lp h2, .lp h3 { font-family: var(--mf-font-heading); font-weight: 400; color: var(--lp-ink); }
.lp-display { font-size: clamp(2.5rem, 6.2vw, 5rem); line-height: 1.02; letter-spacing: -.035em; margin: 0 0 24px; text-wrap: balance; }
.lp-h2 { font-size: clamp(2rem, 4.4vw, 3.5rem); line-height: 1.06; letter-spacing: -.03em; margin: 0 0 20px; text-wrap: balance; }
.lp-muted { color: var(--lp-soft); }
.lp-lede { font-size: clamp(1.05rem, 1.5vw, 1.25rem); line-height: 1.55; color: var(--lp-muted); max-width: 52ch; margin: 0; }
.lp-kicker {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px;
  font-size: .8125rem; letter-spacing: .02em; color: var(--lp-muted);
}
.lp-kicker::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--lp-accent); flex: none; }
.lp-head { max-width: 720px; margin-bottom: clamp(32px, 5vw, 56px); }

/* -------------------------------------------------------------- scroll reveal */
.lp-reveal-on [data-reveal] {
  opacity: 0; transform: translateY(20px);
  transition: opacity .6s var(--lp-ease), transform .6s var(--lp-ease);
  transition-delay: calc(var(--i, 0) * 70ms);
}
.lp-reveal-on [data-reveal].is-in { opacity: 1; transform: none; }

/* ------------------------------------------------------------------- intro */
.lp-intro-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 5vw, 64px); align-items: center; }
.lp-intro-grid > *, .lp-feature > * { min-width: 0; }
@media (min-width: 960px) { .lp-intro-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); } }

.lp-card {
  background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 24px;
  padding: clamp(18px, 2.4vw, 28px); box-shadow: var(--lp-shadow);
}
.lp-mock .mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.lp-mock .sym { font-family: var(--font-mono); font-weight: 600; font-size: .875rem; }
.lp-mock .indicator-readout { margin-top: 0; }
.lp-mock .indicator-readout .ind { background: var(--lp-bg); border-color: var(--lp-line); border-radius: 16px; min-width: 0; flex: 1 1 120px; }
.lp-mock .table-wrap { margin-top: 16px; border-radius: 16px; border-color: var(--lp-line); }
.lp-mock .signal-row { display: flex; align-items: center; gap: 10px; margin-top: 16px; }

/* indicator ticker: two identical tracks slide left in a loop; hover pauses it. Reduced motion = a plain wrapped list. */
.lp-marquee {
  --gap: 10px; display: flex; overflow: hidden; margin: clamp(40px, 6vw, 72px) 0 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.lp-marquee:hover .lp-track { animation-play-state: paused; }
.lp-track {
  display: flex; flex: none; min-width: 100%; justify-content: space-around; gap: var(--gap);
  margin: 0; padding: 0 calc(var(--gap) / 2); list-style: none; animation: lp-marquee 46s linear infinite;
}
.lp-track > li { list-style: none; }
@keyframes lp-marquee { to { transform: translateX(-100%); } }

.lp-chip {
  padding: 9px 18px; border-radius: 999px; background: var(--lp-surface);
  border: 1px solid var(--lp-line); font-size: .9375rem; white-space: nowrap;
  transition: background-color .2s ease, color .2s ease, border-color .2s ease;
}
.lp-chip:hover { background: var(--lp-ink); color: #fff; border-color: var(--lp-ink); }

/* -------------------------------------------------------------------- steps: a timeline
   Left: the heading (sticky on desktop) and a live "03 / 05" counter. Right: five steps on a rail. With JS
   (landing-hero.js adds .lp-how-js) each node lights up as the step reaches the middle of the screen and the
   rail fills between them; without JS every step simply shows in its finished state. */
.lp-how { display: grid; gap: 28px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 900px) { .lp-how { gap: 64px; grid-template-columns: minmax(0, .8fr) minmax(0, 1.3fr); align-items: start; } .lp-how-side { position: sticky; top: 120px; } }
.lp-how-side .lp-head { margin-bottom: 20px; }
.lp-how-count { display: none; align-items: baseline; gap: 6px; margin: 0 0 14px; font-size: .9375rem; color: var(--lp-muted); }
.lp-how-count em { font-style: normal; }
.lp-how-count b { font-weight: 500; color: var(--lp-ink); font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .lp-how-count { display: flex; } }

.lp-rail { --gap: 18px; list-style: none; margin: 0; padding: 0 0 0 46px; display: grid; gap: var(--gap); }
.lp-rstep { position: relative; }
.lp-rnode {
  position: absolute; left: -46px; top: 24px; z-index: 1; display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%;
  background: var(--lp-accent); color: #fff; border: 2px solid var(--lp-accent);
  transition: background-color .35s ease, border-color .35s ease, color .35s ease, box-shadow .35s ease;
}
.lp-rstep:not(:last-child)::before, .lp-rstep:not(:last-child)::after {      /* the rail segment down to the next node */
  content: ""; position: absolute; left: -32px; top: 54px; width: 2px; height: calc(100% + var(--gap) - 30px);
}
.lp-rstep::before { background: var(--lp-line); }
.lp-rstep::after { background: var(--lp-accent); transform-origin: top; transition: transform .6s var(--lp-ease); }

.lp-rcard {
  position: relative; display: flex; gap: 22px; align-items: flex-start; padding: clamp(20px, 2.4vw, 28px);
  background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 24px;
  transition: transform .25s var(--lp-ease), box-shadow .25s var(--lp-ease), border-color .25s ease;
}
.lp-rcard:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow); border-color: rgba(11, 11, 12, .18); }
.lp-rnum { flex: none; min-width: 2.4ch; font-family: var(--mf-font-heading); font-size: clamp(2rem, 3.2vw, 2.8rem); line-height: 1; letter-spacing: -.04em; color: var(--lp-ink); transition: color .4s ease; }
.lp-rbody { min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.lp .lp-rbody h3 { margin: 0; font-size: 1.25rem; line-height: 1.2; letter-spacing: -.02em; }
.lp-rbody p { margin: 0; color: var(--lp-muted); font-size: 1rem; line-height: 1.55; max-width: 52ch; }
.lp-rchips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.lp-rchips span { padding: 4px 11px; border-radius: 999px; background: var(--lp-bg); border: 1px solid var(--lp-line); font-size: .8125rem; color: var(--lp-ink); }

/* JS-driven progress states */
.lp-how-js .lp-rnode { background: var(--lp-surface); color: transparent; border-color: #c9c9d0; }
.lp-how-js .lp-rstep.is-on .lp-rnode { background: var(--lp-accent); color: #fff; border-color: var(--lp-accent); box-shadow: 0 0 0 6px rgba(6, 118, 71, .14); }
.lp-how-js .lp-rstep:not(.is-on) .lp-rnum { color: #c6c6cd; }
.lp-how-js .lp-rstep::after { transform: scaleY(0); }
.lp-how-js .lp-rstep.is-done::after { transform: scaleY(1); }
@media (max-width: 520px) { .lp-rcard { flex-direction: column; gap: 10px; } }

/* ----------------------------------------------------------------- features */
.lp-feature { display: grid; grid-template-columns: minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
@media (min-width: 960px) {
  .lp-feature { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .lp-feature.reverse .lp-visual { order: -1; }
}
.lp-visual {
  display: grid; place-items: center; min-height: 360px; border: 1px solid var(--lp-line);
  border-radius: 32px; padding: clamp(20px, 3.4vw, 44px); background: var(--lp-stage);
}
.lp-visual > * { width: 100%; max-width: 440px; }
.lp-visual .cond-group { border-radius: 24px; border-color: var(--lp-line); box-shadow: var(--lp-shadow); }
.lp-visual .cond-group .block { padding: 18px 20px; }
.lp-visual .cond-group .block-body { gap: 18px; }
.lp-visual .stat { border-radius: 16px; border-color: var(--lp-line); background: var(--lp-bg); box-shadow: none; }

.lp-checks { list-style: none; padding: 0; margin: 32px 0 0; display: grid; gap: 20px; }
.lp-checks li { display: flex; gap: 14px; align-items: flex-start; }
.lp-tick { flex: none; width: 24px; height: 24px; margin-top: 1px; border-radius: 50%; background: var(--lp-ink); color: #fff; display: grid; place-items: center; }
.lp-checks strong { display: block; font-weight: 500; font-size: 1rem; margin-bottom: 2px; }
.lp-checks .fine { display: block; color: var(--lp-muted); font-size: .9375rem; line-height: 1.5; }

/* ------------------------------------------------------------------ brokers hub
   One "workflow" node on the left, wired to the three places it can run. Desktop: node - spine - list, with
   little pulses travelling from the node to each broker; below 900px the node simply sits above the list. */
.lp-hub { --g: 14px; display: grid; gap: 18px; grid-template-columns: minmax(0, 1fr); }
.lp-hub-list { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--g); grid-auto-rows: 1fr; position: relative; }
.lp-hub-spine { display: none; }

.lp-hub-core {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; gap: 10px; padding: clamp(22px, 2.6vw, 30px);
  border-radius: 24px; background: var(--lp-ink); color: #fff;
}
.lp-hub-core::before { content: ""; position: absolute; z-index: -1; right: -30%; top: -40%; width: 90%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle, rgba(6, 118, 71, .55), transparent 65%); filter: blur(26px); }
.lp-hub-eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: .8125rem; letter-spacing: .02em; color: rgba(255, 255, 255, .72); }
.lp-hub-eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #3ddc97; box-shadow: 0 0 0 4px rgba(61, 220, 151, .2); }
.lp-hub-core strong { font-family: var(--mf-font-heading); font-weight: 400; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.05; letter-spacing: -.03em; }
.lp-hub-core p { margin: 0; font-size: .9375rem; line-height: 1.45; color: rgba(255, 255, 255, .72); }

.lp-hub-item {
  position: relative; display: flex; align-items: flex-start; gap: 18px; padding: clamp(18px, 2vw, 24px);
  background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 24px;
  transition: transform .25s var(--lp-ease), box-shadow .25s var(--lp-ease), border-color .25s ease;
}
.lp-hub-item:hover { transform: translateY(-3px); box-shadow: var(--lp-shadow); border-color: rgba(11, 11, 12, .18); }
.lp-hub-badge {
  flex: none; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px;
  font-family: var(--mf-font-heading); font-size: 1.25rem; letter-spacing: -.02em; background: #eef0f2; color: #3d3d45;
}
.lp-hub-item.is-live .lp-hub-badge { background: #e7f6ee; color: var(--lp-accent); }
.lp-hub-body { min-width: 0; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.lp-hub-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.lp .lp-hub-top h3 { margin: 0; font-size: 1.25rem; line-height: 1.15; letter-spacing: -.015em; }
.lp-hub-body p { margin: 0; color: var(--lp-muted); font-size: .9375rem; line-height: 1.5; }
.lp-hub-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 2px; }
.lp-hub-chips span { padding: 4px 11px; border-radius: 999px; background: var(--lp-bg); border: 1px solid var(--lp-line); font-size: .8125rem; color: var(--lp-ink); }
.lp-tag { flex: none; font-family: var(--mf-font-body); font-size: .8125rem; letter-spacing: .02em; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--lp-line); color: var(--lp-muted); }
.lp-tag.live { color: var(--lp-accent); border-color: rgba(6, 118, 71, .3); }

@media (min-width: 900px) {
  .lp-hub { gap: 0; grid-template-columns: minmax(200px, 0.62fr) 64px minmax(0, 2fr); align-items: center; }
  .lp-hub-spine { display: block; align-self: center; height: 2px; background: var(--lp-line); position: relative; }
  /* the vertical bar joining every stub, from the first item's centre to the last one's -
     --n (item count, default 3) keeps this correct if brokers are added/removed */
  .lp-hub-list::before { content: ""; position: absolute; left: -32px; top: calc((100% - (var(--n, 3) - 1) * var(--g)) / (var(--n, 3) * 2)); bottom: calc((100% - (var(--n, 3) - 1) * var(--g)) / (var(--n, 3) * 2)); width: 2px; background: var(--lp-line); }
  .lp-hub-spine::after { content: ""; position: absolute; left: 0; top: -3px; width: 8px; height: 8px; border-radius: 50%; background: var(--lp-accent); animation: lp-hub-run 2.6s var(--lp-ease) infinite; }
  .lp-hub-item::before { content: ""; position: absolute; left: -32px; top: 50%; width: 32px; height: 2px; background: var(--lp-line); transition: background-color .25s ease; }
  .lp-hub-item::after { content: ""; position: absolute; left: -32px; top: calc(50% - 3px); width: 8px; height: 8px; border-radius: 50%; background: var(--lp-accent); opacity: 0; animation: lp-hub-run 2.6s var(--lp-ease) infinite; animation-delay: calc(var(--i, 0) * .35s + 1.2s); }
  .lp-hub-item:hover::before { background: var(--lp-accent); }
}
@keyframes lp-hub-run { 0% { transform: translateX(0); opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } 100% { transform: translateX(26px); opacity: 0; } }

.mf-pill-lg { font-size: 16px; padding: .7em 28px; }

/* soft green glow that follows the pointer over cards (set by landing-hero.js; fine pointers only) */
.lp-card { position: relative; }
:is(.lp-rcard, .lp-card)::after {
  content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; opacity: 0; transition: opacity .3s ease;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(6, 118, 71, .11), transparent 62%);
}
:is(.lp-rcard, .lp-card):hover::after { opacity: 1; }

/* ------------------------------------------------------------- disclaimer + footer */
#start { padding-bottom: clamp(16px, 3vw, 32px); }
.lp-foot {
  position: relative; overflow: hidden; isolation: isolate;
  margin-top: clamp(20px, 3vw, 32px); padding: clamp(24px, 3.4vw, 44px) clamp(20px, 3.4vw, 48px) 0;
  background: var(--lp-surface); border: 1px solid var(--lp-line); border-radius: 32px; box-shadow: var(--lp-shadow);
  font-size: .9375rem; color: var(--lp-muted);
}
/* a faint green glow in the corner, behind everything */
.lp-foot::before {
  content: ""; position: absolute; z-index: -1; right: -12%; bottom: -35%; width: 60%; aspect-ratio: 1; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(6, 118, 71, .12), transparent 65%);
}

.lp-risk { display: flex; gap: 14px; align-items: flex-start; padding: 18px 20px; border-radius: 24px; background: var(--lp-bg); border: 1px solid var(--lp-line); }
.lp-risk-icon { flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff4e5; color: #b54708; }
.lp-risk p { margin: 0; font-size: .875rem; line-height: 1.65; color: var(--lp-muted); max-width: 96ch; }
.lp-risk strong { font-weight: 500; color: var(--lp-ink); }

.lp-foot-grid { display: grid; gap: 32px 24px; grid-template-columns: minmax(0, 1fr); padding: clamp(32px, 4.4vw, 56px) 0 clamp(8px, 1.6vw, 20px); }
@media (min-width: 640px) { .lp-foot-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lp-foot-about { grid-column: 1 / -1; } }
@media (min-width: 960px) { .lp-foot-grid { grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); } .lp-foot-about { grid-column: auto; } }
.lp-foot-about { display: flex; flex-direction: column; align-items: flex-start; gap: 16px; }
.lp-foot-about p { margin: 0; max-width: 34ch; line-height: 1.55; }
.lp-foot-about .mf-pill { gap: 10px; margin: 0; }
.lp-foot-brand { font-family: var(--mf-font-heading); font-size: 1.5rem; line-height: 1; color: var(--lp-ink); letter-spacing: -.03em; }
.lp-foot-col h3 { margin: 0 0 14px; font-family: var(--mf-font-body); font-size: .8125rem; letter-spacing: .02em; color: var(--lp-soft); }
.lp-foot-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.lp-foot-col li { list-style: none; }
.lp-foot a:not(.mf-pill) { position: relative; display: inline-block; padding: 5px 0; color: var(--lp-ink); text-decoration: none; word-break: break-word; }
.lp-foot a:not(.mf-pill)::after {                  /* underline that draws in on hover / focus */
  content: ""; position: absolute; left: 0; right: 0; bottom: 3px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left; transition: transform .3s var(--lp-ease);
}
.lp-foot a:not(.mf-pill):hover::after, .lp-foot a:not(.mf-pill):focus-visible::after { transform: scaleX(1); }

/* oversized wordmark that fades out as it reaches the bottom edge */
.lp-foot-mark {
  margin: clamp(8px, 2vw, 24px) 0 0; font-family: var(--mf-font-heading); font-size: clamp(3.4rem, 15.5vw, 13.5rem);
  line-height: .78; letter-spacing: -.06em; white-space: nowrap; text-align: center; user-select: none;
  background: linear-gradient(180deg, #d6d6dc 0%, rgba(214, 214, 220, 0) 92%); -webkit-background-clip: text; background-clip: text; color: transparent;
}

.lp-foot-base {
  display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 24px;
  margin: 0 calc(clamp(20px, 3.4vw, 48px) * -1); padding: 20px clamp(20px, 3.4vw, 48px); font-size: .8125rem;
  border-top: 1px solid var(--lp-line); background: rgba(247, 247, 248, .7);
}
.lp-foot-base a { color: var(--lp-ink); }
.lp-top { display: inline-flex; align-items: center; gap: 6px; }
.lp-top span { transition: transform .25s var(--lp-ease); }
.lp-top:hover span { transform: translateY(-3px); }

@media (prefers-reduced-motion: reduce) {
  .lp-reveal-on [data-reveal] { opacity: 1; transform: none; transition: none; }
  .lp-rcard, .lp-rnode, .lp-rstep::after, .lp-rnum, .lp-hub-item, .lp-chip, .lp-foot a::after, .lp-top span { transition: none; }
  .lp-rcard:hover, .lp-hub-item:hover { transform: none; }
  .lp-hub-spine::after, .lp-hub-item::after { animation: none; }
  .lp-track { animation: none; flex-wrap: wrap; justify-content: flex-start; }
  .lp-track[aria-hidden] { display: none; }
  .lp-marquee { -webkit-mask-image: none; mask-image: none; }
}
