/* =====================================================================
   XM × Expert Advisor — Fluid Premium Trading Campaign  ·  V2
   Single-page campaign stylesheet. Mobile-first, vanilla CSS.

   Structure: the page is built from three continuous "stages" rather than
   a stack of boxed sections, so the scroll reads as one campaign:
     stage--top    dark   · hero + benefits story
     stage--light  paper  · promotions + account types
     stage--end    dark   · journey + faq + finale

   Palette note: --xm-red is derived from the XM logo asset shipped with
   this project (assets/xm/images/logos/xm-logo.jpg). --xm-red-deep is a
   darkened shade of that same red, used only for gradients and hover.
   ===================================================================== */

/* ------------------------------------------------------------------
   01 · TOKENS
   ------------------------------------------------------------------ */
:root {
  /* Foundation */
  --bg-void:    #03060C;
  --bg-main:    #070B14;
  --bg-deep:    #05080F;
  --bg-surface: #0E1524;

  /* Light stage */
  --paper:      #F6F7F9;
  --paper-2:    #FFFFFF;
  --ink:        #0D1220;
  --ink-soft:   #4E576B;
  --ink-faint:  #626C82;
  --rule-light: rgba(13, 18, 32, .09);

  /* Dark stage */
  --surface-1: rgba(255, 255, 255, .04);
  --surface-2: rgba(255, 255, 255, .07);
  --surface-3: rgba(255, 255, 255, .11);
  --rule:        rgba(255, 255, 255, .09);
  --rule-strong: rgba(255, 255, 255, .18);

  --text:      #FFFFFF;
  --text-soft: #CFD6E4;
  --text-mute: #8B95A8;

  /* Brand */
  --xm-red:       #FF0000;
  --xm-red-deep:  #B90000;
  --ea-green:     #22D98A;
  --ea-green-deep:#0F9A60;
  --cyan:         #39BFFF;
  --line-green:   #06C755;

  --grad-xm: linear-gradient(135deg, var(--xm-red) 0%, var(--xm-red-deep) 100%);
  --grad-ea: linear-gradient(135deg, var(--ea-green) 0%, var(--ea-green-deep) 100%);

  --glow-xm: 0 18px 44px rgba(255, 0, 0, .3);
  --glow-ea: 0 18px 44px rgba(34, 217, 138, .26);

  --sh-1: 0 10px 30px rgba(2, 4, 10, .4);
  --sh-2: 0 34px 80px rgba(2, 4, 10, .6);
  --sh-paper:   0 14px 40px rgba(13, 18, 32, .07);
  --sh-paper-2: 0 28px 68px rgba(13, 18, 32, .12);

  /* Radius */
  --r-sm: 12px;
  --r-md: 18px;
  --r-lg: 26px;
  --r-xl: 34px;
  --r-2xl: 46px;
  --r-pill: 999px;

  /* Layout — generous, editorial */
  --container: 1200px;
  --gutter: clamp(20px, 5vw, 48px);
  --stage-pad: clamp(76px, 11vw, 152px);
  --block-gap: clamp(56px, 8vw, 110px);

  /* Motion */
  --t-fast: .18s;
  --t: .34s;
  --t-slow: .8s;
  --ease: cubic-bezier(.22, .61, .36, 1);
  --ease-out: cubic-bezier(.16, 1, .3, 1);

  --header-h: 62px;
  --mobilebar-h: 0px;
}

@media (min-width: 1000px) { :root { --header-h: 80px; } }

/* ------------------------------------------------------------------
   02 · BASE
   ------------------------------------------------------------------ */
*, *::before, *::after { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg-main);
  color: var(--text);
  font-family: "IBM Plex Sans Thai", "Manrope", system-ui, -apple-system, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.8;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}
body.is-locked { overflow: hidden; }

img, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
p { margin: 0; }
ul { margin: 0; padding: 0; list-style: none; }

h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.02em; font-weight: 700; }

:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 8px; }

.skip-link {
  position: absolute; left: 12px; top: -80px; z-index: 200;
  background: var(--xm-red); color: #fff;
  padding: 10px 18px; border-radius: var(--r-sm); font-weight: 700;
  transition: top var(--t) var(--ease);
}
.skip-link:focus { top: 12px; }

.container {
  width: 100%; max-width: var(--container);
  margin-inline: auto; padding-inline: var(--gutter);
}
.container--narrow { max-width: 880px; }

/* Keeps Thai phrases from splitting mid-word across a line break. */
.nowrap { white-space: nowrap; }

.sr-only {
  position: absolute; width: 1px; height: 1px;
  padding: 0; margin: -1px; overflow: hidden;
  clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}

/* ------------------------------------------------------------------
   03 · STAGES — the three continuous canvases
   ------------------------------------------------------------------ */
.stage { position: relative; }

.stage--top {
  background:
    radial-gradient(78% 52% at 84% 2%,   rgba(255, 0, 0, .17),  transparent 64%),
    radial-gradient(64% 46% at 4% 40%,   rgba(34, 217, 138, .10), transparent 66%),
    radial-gradient(70% 44% at 62% 92%,  rgba(57, 191, 255, .07), transparent 68%),
    linear-gradient(180deg, #06090F 0%, var(--bg-main) 42%, #080D18 100%);
  padding-bottom: clamp(110px, 14vw, 200px);
  overflow: hidden;
}

/* Light stage lifts over the dark one on a soft curve */
.stage--light {
  position: relative;
  z-index: 2;
  background: var(--paper);
  color: var(--ink);
  border-radius: clamp(32px, 5vw, 68px) clamp(32px, 5vw, 68px) 0 0;
  margin-top: clamp(-96px, -7vw, -48px);
  padding-top: var(--stage-pad);
  padding-bottom: clamp(96px, 13vw, 176px);
}
.stage--light p { color: var(--ink-soft); }

/* Closing dark stage curves back over the light one */
.stage--end {
  position: relative;
  z-index: 3;
  background:
    radial-gradient(66% 40% at 12% 6%,  rgba(255, 0, 0, .12), transparent 66%),
    radial-gradient(70% 48% at 88% 58%, rgba(34, 217, 138, .12), transparent 66%),
    linear-gradient(180deg, #070B14 0%, #05080F 62%, var(--bg-void) 100%);
  border-radius: clamp(32px, 5vw, 68px) clamp(32px, 5vw, 68px) 0 0;
  margin-top: clamp(-96px, -7vw, -48px);
  padding-top: var(--stage-pad);
  overflow: hidden;
}

.block { padding-block: var(--block-gap); position: relative; }
.block--flush-top { padding-top: 0; }

/* ------------------------------------------------------------------
   04 · SHARED TYPE
   ------------------------------------------------------------------ */
.eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: "Manrope", system-ui, sans-serif;
  font-size: .7rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-mute); line-height: 1.4;
}
.eyebrow::before {
  content: ""; width: 24px; height: 2px; border-radius: 2px; flex: none;
  background: var(--grad-xm);
}
.eyebrow--ea::before { background: var(--grad-ea); }
.stage--light .eyebrow { color: var(--ink-faint); }

.h-lead {
  font-size: clamp(1.85rem, 4.8vw, 3.05rem);
  line-height: 1.16;
  letter-spacing: -.028em;
  margin-top: 16px;
}
.h-lead em {
  font-style: normal;
  background: var(--grad-xm);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.h-lead em.ea { background: var(--grad-ea); -webkit-background-clip: text; background-clip: text; }

.lead-copy {
  margin-top: 18px;
  font-size: clamp(.97rem, 2.2vw, 1.08rem);
  color: var(--text-mute);
  max-width: 58ch;
}
.stage--light .lead-copy { color: var(--ink-soft); }
.lead-copy strong, .finale__lead strong {
  color: var(--ea-green); font-weight: 800;
  font-family: "Manrope", sans-serif;
}

.block__head { max-width: 760px; margin-bottom: clamp(40px, 6vw, 72px); }
.block__head--center { margin-inline: auto; text-align: center; }
.block__head--center .eyebrow { justify-content: center; }
.block__head--center .lead-copy { margin-inline: auto; }

/* ------------------------------------------------------------------
   05 · BUTTONS
   ------------------------------------------------------------------ */
.btn {
  position: relative;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 15px 28px; min-height: 52px;
  border: 1px solid transparent; border-radius: var(--r-pill);
  font-weight: 700; font-size: .97rem; line-height: 1.25;
  text-align: center; cursor: pointer; overflow: hidden;
  transition: transform var(--t-fast) var(--ease),
              box-shadow var(--t) var(--ease),
              background-color var(--t) var(--ease),
              border-color var(--t) var(--ease),
              color var(--t) var(--ease);
}
.btn > * { position: relative; z-index: 1; }
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }

/* Light sweep on hover */
.btn::after {
  content: "";
  position: absolute; top: 0; bottom: 0; left: -60%;
  width: 45%;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, .38), transparent);
  transform: skewX(-18deg);
  opacity: 0;
  pointer-events: none;
}
.btn:hover::after { animation: sweep .75s var(--ease-out) forwards; }
@keyframes sweep {
  0%   { left: -60%; opacity: 0; }
  18%  { opacity: 1; }
  100% { left: 115%; opacity: 0; }
}

.btn--xm    { background: var(--grad-xm); color: #fff; box-shadow: var(--glow-xm); }
.btn--xm:hover { box-shadow: 0 22px 54px rgba(255, 0, 0, .4); }

.btn--line  { background: var(--line-green); color: #fff; box-shadow: 0 14px 32px rgba(6, 199, 85, .28); }
.btn--line:hover { box-shadow: 0 20px 44px rgba(6, 199, 85, .36); }

.btn--ghost { background: var(--surface-2); border-color: var(--rule-strong); color: #fff; }
.btn--ghost:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, .3); }

.btn--ink   { background: transparent; border-color: rgba(13, 18, 32, .18); color: var(--ink); }
.btn--ink:hover { border-color: rgba(13, 18, 32, .34); background: rgba(13, 18, 32, .04); }

.btn--sm { min-height: 44px; padding: 10px 20px; font-size: .89rem; }
.btn--lg { min-height: 58px; padding: 17px 34px; font-size: 1.02rem; }

.btn__ic {
  display: inline-grid; place-items: center;
  width: 22px; height: 22px; border-radius: 7px;
  background: rgba(255, 255, 255, .22);
  font-family: "Manrope", sans-serif; font-size: .62rem; font-weight: 800;
  flex: none;
}
.btn--ink .btn__ic { background: rgba(13, 18, 32, .08); }
.btn[aria-disabled="true"] { cursor: not-allowed; }

/* ------------------------------------------------------------------
   04b · XM PARTNER CODE
   The code itself is locked to "Expert" and is repeated verbatim in the
   markup and in each copy button's data-copy attribute.
   ------------------------------------------------------------------ */
.codecard {
  position: relative;
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.6vw, 24px);
  flex-wrap: wrap;
  padding: clamp(15px, 2.4vw, 20px) clamp(17px, 2.6vw, 24px);
  border-radius: var(--r-lg);
  background:
    radial-gradient(120% 160% at 6% 0%, rgba(255, 0, 0, .16), transparent 58%),
    linear-gradient(140deg, rgba(24, 31, 46, .96), rgba(11, 16, 26, .97));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 24px 54px rgba(0, 0, 0, .48);
  overflow: hidden;
}
.codecard::before {
  content: "";
  position: absolute; left: 0; top: 12%; bottom: 12%;
  width: 3px; border-radius: 0 3px 3px 0;
  background: linear-gradient(180deg, var(--xm-red), var(--ea-green));
}
.codecard__body { flex: 1 1 auto; min-width: 0; }
.codecard__label {
  font-family: "Manrope", sans-serif;
  font-size: .64rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-mute);
}
.codecard__value {
  margin-top: 4px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.75rem, 5.4vw, 2.35rem);
  font-weight: 900;
  letter-spacing: -.02em;
  line-height: 1.15;
  color: #fff;
  word-break: break-word;
}
.codecard__value::after {
  content: "";
  display: block;
  width: 2.2em; height: 2px; margin-top: 8px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--ea-green), transparent);
}

.codecard__btn {
  flex: none;
  min-width: 11.5ch;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 12px 20px; min-height: 46px;
  border-radius: var(--r-pill);
  border: 1px solid var(--rule-strong);
  background: var(--surface-2);
  color: #fff;
  font-weight: 700; font-size: .9rem; line-height: 1.2;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease),
              color var(--t) var(--ease), transform var(--t-fast) var(--ease);
}
.codecard__btn:hover { background: var(--surface-3); transform: translateY(-2px); }
.codecard__btn.is-copied {
  background: rgba(34, 217, 138, .16);
  border-color: rgba(34, 217, 138, .5);
  color: var(--ea-green);
}

/* Hero placement — the code is the hero's second anchor after the CTA */
.hero .codecard { margin-top: clamp(20px, 3vw, 28px); }
@media (max-width: 460px) {
  .codecard { gap: 12px; }
  .codecard__btn { width: 100%; }
}

/* ------------------------------------------------------------------
   08b · PARTNER PERKS ROW (inside the benefits story)
   ------------------------------------------------------------------ */
.perks {
  margin-top: clamp(38px, 5.5vw, 62px);
  display: grid;
  gap: clamp(20px, 3vw, 26px);
}
@media (min-width: 820px) { .perks { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(22px, 3vw, 40px); } }

.perk { padding-top: 20px; border-top: 1px solid var(--rule); }
.perk__no {
  font-family: "Manrope", sans-serif;
  font-size: .66rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-mute);
}
.perk h4 { margin-top: 10px; font-size: 1.06rem; font-weight: 700; line-height: 1.45; }
.perk h4 code {
  font-family: "Manrope", sans-serif;
  font-weight: 900;
  color: var(--ea-green);
  background: rgba(34, 217, 138, .12);
  border: 1px solid rgba(34, 217, 138, .3);
  border-radius: 8px;
  padding: 1px 9px;
  margin-inline: 2px;
}
.perk p { margin-top: 8px; font-size: .89rem; line-height: 1.8; color: var(--text-mute); max-width: 38ch; }

/* ------------------------------------------------------------------
   05b · TRADINGVIEW TICKER — page top, above the sticky header.
   Full-bleed edge to edge; scrolls away with the page, never sticky.
   Only one on the site.
   ------------------------------------------------------------------ */
.ticker {
  position: relative;
  z-index: 4;
  background: var(--bg-void);
  border-bottom: 1px solid var(--rule);
}
.ticker__inner {
  display: flex;
  align-items: center;
  width: 100%;          /* full width — deliberately not capped to --container */
  height: 72px;         /* the widget's own row height, so nothing is clipped */
}
.ticker .tradingview-widget-container {
  flex: 1 1 auto;
  min-width: 0;
  position: relative;
  height: 72px;
  overflow: hidden;
}
.ticker .tradingview-widget-container__widget {
  position: absolute;
  inset: 0;
}
/* Fade the clipped edge so a half-scrolled item never butts into the credit */
.ticker .tradingview-widget-container::after {
  content: "";
  position: absolute; right: 0; top: 0; bottom: 0; width: 34px;
  background: linear-gradient(90deg, rgba(3, 6, 12, 0), var(--bg-void) 78%);
  pointer-events: none;
}
.ticker__by {
  flex: none;
  padding-inline: 6px clamp(12px, 2.4vw, 22px);
  font-family: "Manrope", sans-serif;
  font-size: .62rem;
  font-weight: 700;
  letter-spacing: .08em;
  color: var(--text-mute);
  white-space: nowrap;
  transition: color var(--t) var(--ease);
}
.ticker__by:hover { color: #fff; }
@media (max-width: 480px) {
  .ticker__by { font-size: .56rem; letter-spacing: .04em; padding-inline: 4px 10px; }
}

/* ------------------------------------------------------------------
   06 · HEADER
   ------------------------------------------------------------------ */
.header {
  position: sticky; top: 0; z-index: 90;
  background: transparent;
  border-bottom: 1px solid transparent;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease),
              backdrop-filter var(--t) var(--ease);
}
.header.is-scrolled {
  background: rgba(6, 9, 16, .82);
  backdrop-filter: blur(16px) saturate(140%);
  -webkit-backdrop-filter: blur(16px) saturate(140%);
  border-bottom-color: var(--rule);
}
.header__bar {
  min-height: var(--header-h);
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}

.lockup { display: inline-flex; align-items: center; gap: 10px; flex: none; min-width: 0; }
.lockup__mark {
  width: 32px; height: 32px; border-radius: 10px; overflow: hidden;
  background: #000; border: 1px solid var(--rule); flex: none;
}
.lockup__mark img { width: 100%; height: 100%; object-fit: cover; }
.lockup__x { font-family: "Manrope", sans-serif; font-weight: 800; font-size: .78rem; color: var(--text-mute); flex: none; }
.lockup__ea { display: inline-flex; align-items: center; gap: 8px; min-width: 0; }
.lockup__ea img { width: 28px; height: 28px; border-radius: 8px; flex: none; }
.lockup__name {
  font-family: "Manrope", sans-serif; font-weight: 800; font-size: .88rem;
  letter-spacing: -.01em; white-space: nowrap; line-height: 1.2;
}
.lockup__name span {
  display: block; font-size: .55rem; letter-spacing: .12em;
  color: var(--text-mute); font-weight: 700;
}
@media (max-width: 520px) { .lockup__name span { display: none; } }
@media (max-width: 420px) {
  .lockup { gap: 7px; }
  .lockup__name { font-size: .76rem; }
  .lockup__mark { width: 28px; height: 28px; }
  .lockup__ea img { width: 25px; height: 25px; }
}

.nav { display: none; }
@media (min-width: 1000px) {
  .nav { display: flex; align-items: center; gap: 2px; }
  .nav a {
    padding: 9px 14px; border-radius: var(--r-pill);
    font-size: .9rem; font-weight: 600; color: var(--text-soft);
    transition: color var(--t-fast) var(--ease), background var(--t-fast) var(--ease);
  }
  .nav a:hover { color: #fff; background: var(--surface-1); }
  .nav a.is-active { color: #fff; background: var(--surface-2); }
}

.header__actions { display: flex; align-items: center; gap: 10px; }
.header__cta { display: none; }
@media (min-width: 1000px) { .header__cta { display: inline-flex; } }

.burger {
  display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: var(--r-sm);
  border: 1px solid var(--rule-strong); background: var(--surface-1); cursor: pointer;
}
@media (min-width: 1000px) { .burger { display: none; } }
.burger span {
  display: block; width: 18px; height: 2px; background: #fff; border-radius: 2px;
  position: relative; transition: background var(--t) var(--ease);
}
.burger span::before, .burger span::after {
  content: ""; position: absolute; left: 0; width: 18px; height: 2px;
  background: #fff; border-radius: 2px;
  transition: transform var(--t) var(--ease), top var(--t) var(--ease);
}
.burger span::before { top: -6px; }
.burger span::after  { top: 6px; }
.burger[aria-expanded="true"] span { background: transparent; }
.burger[aria-expanded="true"] span::before { top: 0; transform: rotate(45deg); }
.burger[aria-expanded="true"] span::after  { top: 0; transform: rotate(-45deg); }

/* Drawer */
.drawer { position: fixed; inset: 0; z-index: 120; visibility: hidden; pointer-events: none; }
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__scrim {
  position: absolute; inset: 0; background: rgba(3, 5, 10, .74);
  opacity: 0; transition: opacity var(--t) var(--ease);
}
.drawer.is-open .drawer__scrim { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%;
  width: min(88vw, 340px);
  background: var(--bg-surface); border-left: 1px solid var(--rule);
  padding: 18px var(--gutter) calc(28px + env(safe-area-inset-bottom));
  display: flex; flex-direction: column; overflow-y: auto;
  transform: translateX(100%);
  transition: transform var(--t) var(--ease);
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.drawer__title {
  font-family: "Manrope", sans-serif; font-size: .66rem; font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase; color: var(--text-mute);
}
.drawer__close {
  width: 42px; height: 42px; border-radius: var(--r-sm);
  border: 1px solid var(--rule-strong); background: var(--surface-1);
  cursor: pointer; font-size: 1.25rem; line-height: 1; flex: none;
}
.drawer__panel nav { display: flex; flex-direction: column; }
.drawer__panel nav a {
  padding: 15px 4px; font-weight: 600; color: var(--text-soft);
  border-bottom: 1px solid var(--rule);
}
.drawer__panel nav a:hover { color: #fff; }
.drawer__actions { margin-top: 24px; display: grid; gap: 10px; }

/* ------------------------------------------------------------------
   07 · HERO
   ------------------------------------------------------------------ */
.hero {
  position: relative;
  padding-top: clamp(20px, 3.2vw, 42px);
  padding-bottom: clamp(24px, 4vw, 40px);
}
.hero__inner { display: grid; gap: clamp(32px, 5vw, 40px); align-items: center; }
@media (min-width: 1000px) {
  .hero__inner { grid-template-columns: minmax(0, 1.14fr) minmax(0, .86fr); gap: clamp(28px, 3.4vw, 48px); }
}

.hero__chip {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 6px 16px 6px 6px; border-radius: var(--r-pill);
  background: var(--surface-1); border: 1px solid var(--rule);
  font-family: "Manrope", sans-serif; font-size: .68rem; font-weight: 800;
  letter-spacing: .14em; text-transform: uppercase; color: var(--text-soft);
}
.hero__chip img { width: 22px; height: 22px; border-radius: 7px; }

.hero h1 {
  margin-top: 20px;
  font-size: clamp(1.86rem, 5.2vw, 2.95rem);
  line-height: 1.16;
  letter-spacing: -.03em;
  text-wrap: balance;
}
.hero h1 em {
  font-style: normal; display: inline-block;
  background: linear-gradient(112deg, #FFFFFF 0%, #FFA8A8 38%, var(--xm-red) 96%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

.hero__sub strong {
  color: var(--ea-green);
  font-weight: 800;
  font-family: "Manrope", sans-serif;
  letter-spacing: .01em;
}
.hero__sub {
  margin-top: 18px;
  font-size: clamp(.97rem, 2.2vw, 1.09rem);
  color: var(--text-soft);
  max-width: 48ch;
}

/* $500 as typography, not a card */
.hero__anchor {
  margin-top: clamp(24px, 3.4vw, 34px);
  padding-left: 18px;
  border-left: 2px solid rgba(34, 217, 138, .5);
  display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 12px;
}
.hero__anchor b {
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.1rem, 6.4vw, 2.9rem);
  font-weight: 900; line-height: 1; letter-spacing: -.04em;
  background: linear-gradient(130deg, #FFFFFF 0%, var(--ea-green) 82%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__anchor span { font-size: clamp(.95rem, 2.2vw, 1.05rem); color: var(--text-soft); font-weight: 600; }
.hero__note {
  margin-top: clamp(18px, 2.6vw, 24px);
  padding-left: 14px;
  border-left: 2px solid var(--rule-strong);
  font-size: .84rem; line-height: 1.75; color: var(--text-mute); max-width: 54ch;
}
.hero__note strong { color: var(--text-soft); font-weight: 700; }

.hero__cta {
  margin-top: clamp(26px, 3.6vw, 34px);
  display: flex; flex-wrap: wrap; gap: 12px;
}
.hero__cta .btn { flex: 1 1 100%; }
@media (min-width: 560px) { .hero__cta .btn { flex: 0 0 auto; } }

.hero__tags { margin-top: 24px; display: flex; flex-wrap: wrap; gap: 7px 8px; }
.hero__tags span {
  padding: 5px 14px; border-radius: var(--r-pill);
  background: var(--surface-1); border: 1px solid var(--rule);
  font-size: .76rem; font-weight: 600; color: var(--text-mute);
}

/* ---- Hero key visual — Premium 3D Trading Ecosystem --------------
   Story the composition tells, left to right / top to bottom:
     XM account card  →  markets (coins · candles · chips)  →  Signal VIP
   The signal path is drawn in that order and shifts red → cyan → mint.
   Nothing here represents real market data.
   ------------------------------------------------------------------ */
.kv {
  --px: 0; --py: 0;
  position: relative;
  width: 100%;
  height: 320px;
  margin-inline: auto;
  max-width: 430px;
  pointer-events: none;
}
@media (min-width: 640px)  { .kv { height: 470px; max-width: 520px; } }
@media (min-width: 1000px) { .kv { height: 540px; max-width: none; } }

.kv__aura {
  position: absolute; inset: -16%;
  background:
    radial-gradient(36% 32% at 72% 26%, rgba(255, 0, 0, .3), transparent 70%),
    radial-gradient(32% 30% at 22% 76%, rgba(34, 217, 138, .24), transparent 72%),
    radial-gradient(26% 24% at 74% 74%, rgba(57, 191, 255, .13), transparent 74%);
  filter: blur(30px);
  translate: calc(var(--px) * 7px) calc(var(--py) * 7px);
}
.js .kv__aura { animation: drift 18s ease-in-out infinite; }
@keyframes drift {
  0%, 100% { transform: scale(1) translate(0, 0); }
  50%      { transform: scale(1.05) translate(-2%, 1.4%); }
}

/* Metallic trajectory ring behind the ecosystem */
.kv__ring {
  position: absolute;
  left: 8%; top: 20%;
  width: 84%; aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, .11);
  border-radius: 50%;
  transform: rotate(-17deg) scaleY(.44);
  translate: calc(var(--px) * 10px) calc(var(--py) * 10px);
}
.js .kv__ring { animation: ringspin 56s linear infinite; }
@keyframes ringspin {
  from { transform: rotate(-17deg) scaleY(.44); }
  to   { transform: rotate(343deg) scaleY(.44); }
}

/* Signal path: XM → markets → Expert Advisor */
.kv__flow {
  position: absolute; inset: 0; width: 100%; height: 100%;
  overflow: visible;
  translate: calc(var(--px) * 5px) calc(var(--py) * 5px);
}
.kv__flow path { fill: none; stroke-width: 1.7; stroke-linecap: round; }
.kv__flow .flow-main { stroke: url(#kvFlow); }
.kv__flow .flow-pulse {
  stroke: rgba(255, 255, 255, .9);
  stroke-width: 2.4;
  stroke-dasharray: 14 420;
  opacity: .78;
}
.js .kv__flow .flow-pulse { animation: pulse 5.5s linear infinite; }
@keyframes pulse { from { stroke-dashoffset: 434; } to { stroke-dashoffset: 0; } }

/* ---- Shared card shell (glass + metal edge, tilted in 3D) -------- */
.kv__card {
  position: absolute;
  display: flex; flex-direction: column;
  border-radius: 20px;
  padding: clamp(13px, 2.4vw, 20px);
  border: 1px solid rgba(255, 255, 255, .13);
  overflow: hidden;
  translate: calc(var(--px) * var(--d, 18px)) calc(var(--py) * var(--d, 18px));
}
/* Specular sheen across the face */
.kv__card::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(122deg, rgba(255, 255, 255, .16) 0%, rgba(255, 255, 255, 0) 32%, rgba(255, 255, 255, 0) 68%, rgba(255, 255, 255, .06) 100%);
  pointer-events: none;
}

/* Main object 1 — XM account card */
.kv__card--xm {
  --d: 18px;
  right: 0; top: 4%;
  width: 63%; max-width: 326px;
  background: linear-gradient(152deg, rgba(32, 37, 52, .97) 0%, rgba(14, 17, 27, .98) 52%, rgba(24, 8, 12, .98) 100%);
  box-shadow:
    0 44px 92px rgba(0, 0, 0, .62),
    0 0 76px rgba(255, 0, 0, .18),
    inset 0 1px 0 rgba(255, 255, 255, .16);
  transform: perspective(1100px) rotateY(-13deg) rotateX(6deg);
}
/* Red edge-light along the top/right rim */
.kv__card--xm::before {
  content: "";
  position: absolute; inset: -1px; border-radius: inherit; padding: 1px;
  background: linear-gradient(148deg, rgba(255, 0, 0, .72), rgba(255, 0, 0, .12) 42%, transparent 66%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  pointer-events: none;
}

/* Main object 2 — Expert Advisor Signal VIP card */
.kv__card--ea {
  --d: 30px;
  left: 0; bottom: 3%;
  width: 54%; max-width: 274px;
  background: linear-gradient(152deg, rgba(16, 52, 41, .97) 0%, rgba(8, 24, 29, .98) 62%, rgba(6, 16, 22, .98) 100%);
  border-color: rgba(34, 217, 138, .34);
  box-shadow:
    0 38px 82px rgba(0, 0, 0, .58),
    0 0 68px rgba(34, 217, 138, .26),
    inset 0 1px 0 rgba(255, 255, 255, .13);
  transform: perspective(1100px) rotateY(11deg) rotateX(-5deg);
}
.js .kv__card--xm { animation: floatA 12s ease-in-out infinite; }
.js .kv__card--ea { animation: floatB 9.5s ease-in-out .8s infinite; }
@keyframes floatA { 0%, 100% { transform: perspective(1100px) rotateY(-13deg) rotateX(6deg) translateY(0); }
                    50%      { transform: perspective(1100px) rotateY(-13deg) rotateX(6deg) translateY(-13px); } }
@keyframes floatB { 0%, 100% { transform: perspective(1100px) rotateY(11deg) rotateX(-5deg) translateY(0); }
                    50%      { transform: perspective(1100px) rotateY(11deg) rotateX(-5deg) translateY(-10px); } }

.kv__card-top {
  position: relative; z-index: 1;
  display: flex; align-items: center; justify-content: space-between; gap: 10px;
  margin-bottom: clamp(12px, 2.2vw, 20px);
}
.kv__brandtile {
  width: clamp(34px, 6.2vw, 46px); aspect-ratio: 1;
  border-radius: 26%;
  overflow: hidden; flex: none;
  background: #000;
  border: 1px solid rgba(255, 255, 255, .18);
  box-shadow: 0 10px 24px rgba(0, 0, 0, .55), 0 0 26px rgba(255, 0, 0, .3);
}
.kv__brandtile img { width: 100%; height: 100%; object-fit: cover; }

.kv__card-tag {
  position: relative; z-index: 1;
  font-family: "Manrope", sans-serif;
  font-size: clamp(.54rem, 1.1vw, .62rem); font-weight: 800;
  letter-spacing: .18em; text-transform: uppercase;
  color: var(--text-mute);
}
.kv__card--ea .kv__card-tag { color: var(--ea-green); }

.kv__card-title {
  position: relative; z-index: 1;
  font-family: "Manrope", sans-serif;
  font-size: clamp(.94rem, 2.1vw, 1.32rem); font-weight: 800;
  letter-spacing: -.02em; line-height: 1.25; color: #fff;
}
.kv__card--ea .kv__card-title { margin-top: 8px; font-size: clamp(1.1rem, 2.6vw, 1.6rem); }
.kv__card-sub {
  position: relative; z-index: 1;
  margin-top: 6px;
  font-size: clamp(.66rem, 1.4vw, .8rem); line-height: 1.5;
  color: var(--text-mute);
}
.kv__card-rule {
  position: relative; z-index: 1;
  margin-top: clamp(12px, 2.2vw, 18px);
  height: 2px; border-radius: 2px;
  background: linear-gradient(90deg, var(--xm-red), rgba(57, 191, 255, .5) 60%, transparent);
}
.kv__card--ea .kv__card-rule { background: linear-gradient(90deg, var(--ea-green), rgba(34, 217, 138, .12) 70%, transparent); }

.kv__dot {
  position: relative; z-index: 1;
  display: inline-flex; align-items: center; gap: 7px;
  margin-top: 10px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(.6rem, 1.3vw, .72rem); font-weight: 700;
  letter-spacing: .06em; color: var(--text-soft);
}
.kv__dot::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%; flex: none;
  background: var(--ea-green); box-shadow: 0 0 10px var(--ea-green);
}
.js .kv__dot::before { animation: blip 2.6s ease-in-out infinite; }
@keyframes blip { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* ---- Asset tokens (polished metal, no values attached) ---------- */
.kv__token {
  position: absolute; border-radius: 50%;
  translate: calc(var(--px) * var(--d, 34px)) calc(var(--py) * var(--d, 34px));
}
.kv__token::after {
  content: "";
  position: absolute; inset: 14%;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, .3);
  opacity: .5;
}
.kv__token--gold {
  --d: 38px;
  left: 4%; top: 17%;
  width: 12.5%; aspect-ratio: 1;
  background:
    radial-gradient(circle at 31% 25%, #FFF8E2 0%, #F6DC93 26%, #D6A63C 62%, #8A6416 88%, #4A3407 100%);
  box-shadow: 0 16px 34px rgba(0, 0, 0, .55), inset -5px -6px 14px rgba(0, 0, 0, .34), 0 0 34px rgba(214, 166, 60, .28);
}
.kv__token--silver {
  --d: 46px;
  left: 27%; top: 47%;
  width: 8.6%; aspect-ratio: 1;
  background:
    radial-gradient(circle at 31% 25%, #FFFFFF 0%, #E6EAF3 28%, #A3ACBE 64%, #5A6376 90%, #333B4C 100%);
  box-shadow: 0 12px 26px rgba(0, 0, 0, .5), inset -4px -5px 12px rgba(0, 0, 0, .32);
}
.js .kv__token--gold   { animation: bobA 10s ease-in-out .4s infinite; }
.js .kv__token--silver { animation: bobB 8s ease-in-out 1.2s infinite; }
@keyframes bobA { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-12px) rotate(6deg); } }
@keyframes bobB { 0%, 100% { transform: translateY(0) rotate(0deg); } 50% { transform: translateY(-9px) rotate(-7deg); } }

/* ---- 3D candlestick cluster (abstract form, not price data) ----- */
.kv__candles {
  --d: 26px;
  position: absolute;
  right: 7%; bottom: 11%;
  display: flex; align-items: flex-end; gap: clamp(7px, 1.4vw, 12px);
  height: 26%;
  translate: calc(var(--px) * var(--d)) calc(var(--py) * var(--d));
}
.kv__candles i {
  position: relative;
  display: block;
  width: clamp(9px, 1.7vw, 15px);
  border-radius: 4px;
  box-shadow: 0 14px 28px rgba(0, 0, 0, .5), inset -2px 0 5px rgba(0, 0, 0, .4), inset 2px 0 4px rgba(255, 255, 255, .18);
}
/* wick */
.kv__candles i::before {
  content: "";
  position: absolute; left: 50%; transform: translateX(-50%);
  width: 2px; border-radius: 2px;
  top: -26%; height: 26%;
  background: inherit; opacity: .7;
}
.kv__candles i:nth-child(1) { height: 46%; background: linear-gradient(180deg, #2FE79A, #0E7A4E); }
.kv__candles i:nth-child(2) { height: 74%; background: linear-gradient(180deg, #FF4646, #8E0000); }
.kv__candles i:nth-child(3) { height: 58%; background: linear-gradient(180deg, #2FE79A, #0E7A4E); }
.kv__candles i:nth-child(4) { height: 100%; background: linear-gradient(180deg, #E8EDF7, #7C879C); }
.js .kv__candles { animation: bobB 11s ease-in-out .7s infinite; }

/* ---- Market chips — instrument labels only, never prices -------- */
.kv__chip {
  --d: 50px;
  position: absolute;
  display: inline-flex; align-items: center; gap: 7px;
  padding: 7px 14px; border-radius: var(--r-pill);
  font-family: "Manrope", sans-serif;
  font-size: clamp(.62rem, 1.3vw, .73rem); font-weight: 800;
  letter-spacing: .05em; white-space: nowrap;
  color: var(--text-soft);
  background: rgba(12, 17, 28, .84);
  border: 1px solid var(--rule-strong);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  box-shadow: var(--sh-1);
  translate: calc(var(--px) * var(--d)) calc(var(--py) * var(--d));
}
.kv__chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; flex: none; }
.kv__chip--gold  { left: 17%; top: 6%;  }
.kv__chip--gold::before  { background: #E8C25C; box-shadow: 0 0 9px #E8C25C; }
.kv__chip--eur   { left: 1%;  top: 51%; }
.kv__chip--eur::before   { background: var(--cyan); box-shadow: 0 0 9px var(--cyan); }
.kv__chip--idx   { right: 22%; top: 54%; }
.kv__chip--idx::before   { background: var(--ea-green); box-shadow: 0 0 9px var(--ea-green); }
.js .kv__chip--gold { animation: bobB 9s ease-in-out .2s infinite; }
.js .kv__chip--eur  { animation: bobA 12s ease-in-out .9s infinite; }
.js .kv__chip--idx  { animation: bobB 10.5s ease-in-out 1.5s infinite; }


/* Floating partner-code card inside the key visual */
.kv__codecard {
  --d: 44px;
  position: absolute;
  right: 4%; top: 40%;
  display: flex; flex-direction: column;
  padding: clamp(10px, 1.8vw, 15px) clamp(13px, 2.2vw, 19px);
  border-radius: 16px;
  background: linear-gradient(146deg, rgba(26, 33, 49, .95), rgba(11, 16, 26, .97));
  border: 1px solid rgba(34, 217, 138, .34);
  box-shadow: 0 24px 52px rgba(0, 0, 0, .55), 0 0 46px rgba(34, 217, 138, .2);
  translate: calc(var(--px) * var(--d)) calc(var(--py) * var(--d));
}
.kv__codecard-label {
  font-family: "Manrope", sans-serif;
  font-size: clamp(.5rem, 1.1vw, .58rem); font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-mute);
}
.kv__codecard-value {
  margin-top: 3px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(.95rem, 2.2vw, 1.35rem); font-weight: 900;
  letter-spacing: -.015em; color: var(--ea-green);
  line-height: 1.2;
}
.js .kv__codecard { animation: bobB 10.5s ease-in-out 1.1s infinite; }
/* Narrow desktops: the XM card grows taller, so drop the code card below it */
@media (min-width: 1000px) and (max-width: 1219px) {
  .kv__codecard { top: 47%; right: 2%; }
}

/* Expert Advisor presenter avatar on the Signal VIP card */
.kv__avatar {
  width: clamp(30px, 5.4vw, 40px); aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; flex: none;
  border: 1px solid rgba(34, 217, 138, .45);
  box-shadow: 0 8px 20px rgba(0, 0, 0, .5), 0 0 22px rgba(34, 217, 138, .32);
  background: #071018;
}
.kv__avatar img { width: 100%; height: 100%; object-fit: cover; }
.kv__card--ea .kv__card-top { margin-bottom: clamp(8px, 1.6vw, 12px); justify-content: flex-start; gap: 10px; }

/* Trim the ecosystem down on small screens — fewer objects, less motion */
@media (max-width: 639px) {
  .kv__candles, .kv__token--silver, .kv__chip--eur { display: none; }
  .kv__chip { font-size: .62rem; padding: 5px 11px; }
  .kv__codecard { right: 2%; top: 49%; }
  .js .kv__token--gold, .js .kv__chip--gold, .js .kv__chip--eur { animation: none; }
}

/* ------------------------------------------------------------------
   08 · BENEFITS STORY  (XM → signal → Expert Advisor → $500)
   ------------------------------------------------------------------ */
.story__grid { display: grid; gap: clamp(30px, 5vw, 22px); align-items: start; }
@media (min-width: 960px) {
  .story__grid { grid-template-columns: minmax(0, 1fr) clamp(120px, 14vw, 210px) minmax(0, 1fr); gap: clamp(20px, 3vw, 44px); }
}

.story__side { position: relative; }
.story__tag {
  display: inline-flex; align-items: center; gap: 9px;
  padding: 5px 15px 5px 5px; border-radius: var(--r-pill);
  background: var(--surface-1); border: 1px solid var(--rule);
  font-family: "Manrope", sans-serif; font-size: .68rem; font-weight: 800;
  letter-spacing: .12em; text-transform: uppercase; color: var(--text-soft);
}
.story__tag img { width: 24px; height: 24px; border-radius: 8px; flex: none; }
.story__side--xm .story__tag { border-color: rgba(255, 0, 0, .28); }
.story__side--ea .story__tag { border-color: rgba(34, 217, 138, .3); }

.story__side h3 { margin-top: 18px; font-size: clamp(1.2rem, 2.8vw, 1.45rem); }
.story__side > p { margin-top: 10px; font-size: .93rem; color: var(--text-mute); max-width: 42ch; }

.story__list { margin-top: 24px; display: grid; gap: 18px; }
.story__list li { padding-top: 18px; border-top: 1px solid var(--rule); }
.story__list li:first-child { padding-top: 0; border-top: 0; }
.story__list b { display: block; font-size: 1rem; font-weight: 700; line-height: 1.5; }
.story__list p { margin-top: 4px; font-size: .88rem; color: var(--text-mute); line-height: 1.75; max-width: 40ch; }
.story__side--xm .story__list b::before,
.story__side--ea .story__list b::before {
  content: ""; display: inline-block;
  width: 7px; height: 7px; border-radius: 50%;
  margin-right: 10px; vertical-align: middle;
}
.story__side--xm .story__list b::before { background: var(--xm-red); box-shadow: 0 0 10px rgba(255, 0, 0, .7); }
.story__side--ea .story__list b::before { background: var(--ea-green); box-shadow: 0 0 10px rgba(34, 217, 138, .7); }

/* The connector between the two sides */
/* Explicit height + absolutely-filled SVG: with a percentage height the
   svg would otherwise fall back to its 160:260 intrinsic ratio and blow
   the block up to ~1100px on a single-column layout. */
.story__link { position: relative; height: 64px; }
.story__link svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.story__link path { fill: none; stroke-width: 1.6; stroke-linecap: round; }
.story__link .link-main { stroke: url(#storyFlow); }
.story__link .link-pulse {
  stroke: #fff; stroke-width: 2.4; opacity: .75;
  stroke-dasharray: 12 300;
}
.js .story__link .link-pulse { animation: pulse 4.5s linear infinite; }
.story__node {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  background: radial-gradient(circle at 34% 28%, rgba(255, 255, 255, .5), transparent 34%), #0C1322;
  border: 1px solid var(--rule-strong);
  box-shadow: 0 14px 34px rgba(0, 0, 0, .55), 0 0 40px rgba(57, 191, 255, .2);
  font-family: "Manrope", sans-serif; font-size: .58rem; font-weight: 800;
  letter-spacing: .1em; color: var(--cyan);
}
@media (min-width: 960px) { .story__link { height: 260px; } }

/* $500 payoff statement */
.payoff {
  margin-top: clamp(56px, 8vw, 104px);
  position: relative;
  display: grid; gap: clamp(18px, 3vw, 30px);
  align-items: center;
}
@media (min-width: 900px) {
  .payoff { grid-template-columns: auto minmax(0, 1fr); gap: clamp(30px, 5vw, 60px); }
}
.payoff__num {
  font-family: "Manrope", sans-serif;
  font-size: clamp(4.4rem, 17vw, 10.5rem);
  font-weight: 900; line-height: .82; letter-spacing: -.055em;
  background: linear-gradient(146deg, #FFFFFF 6%, var(--ea-green) 88%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
  filter: drop-shadow(0 22px 50px rgba(34, 217, 138, .2));
}
.payoff__copy h3 {
  font-size: clamp(1.25rem, 3.2vw, 1.85rem);
  line-height: 1.35;
}
.payoff__copy > p { margin-top: 14px; color: var(--text-soft); font-size: .98rem; max-width: 50ch; }
.payoff__fine {
  margin-top: 18px; padding-left: 16px;
  border-left: 2px solid var(--rule-strong);
  font-size: .85rem; line-height: 1.75; color: var(--text-mute); max-width: 52ch;
}
.payoff__fine strong { color: var(--text-soft); font-weight: 700; }

/* ------------------------------------------------------------------
   09 · PROMOTIONS — bento campaign
   ------------------------------------------------------------------ */
.bento { display: grid; gap: 14px; }
@media (min-width: 900px) {
  .bento {
    grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
    grid-auto-rows: minmax(0, auto);
    gap: 18px;
  }
  .bento__hero { grid-row: span 3; }
}

/* Lead offer — dark, red, the loudest thing on the light stage */
.bento__hero {
  position: relative; overflow: hidden;
  border-radius: var(--r-2xl);
  padding: clamp(30px, 4.4vw, 52px);
  min-height: clamp(300px, 42vw, 460px);
  display: flex; flex-direction: column; justify-content: flex-end;
  background:
    radial-gradient(72% 60% at 84% 8%, rgba(255, 0, 0, .48), transparent 62%),
    linear-gradient(158deg, #1A0509 0%, #2C0308 46%, #0A0D14 100%);
  color: #fff;
  box-shadow: 0 30px 70px rgba(70, 0, 0, .26);
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.bento__hero:hover { transform: translateY(-4px); box-shadow: 0 38px 84px rgba(70, 0, 0, .32); }
.bento__hero::after {
  content: ""; position: absolute;
  width: 260px; height: 260px; border-radius: 50%;
  top: -110px; right: -80px;
  background: rgba(255, 0, 0, .34); filter: blur(74px);
  pointer-events: none;
}
/* Floating coin object inside the lead offer */
.bento__object {
  position: absolute; right: clamp(18px, 4vw, 52px); top: clamp(24px, 5vw, 60px);
  width: clamp(74px, 11vw, 128px); aspect-ratio: 1; border-radius: 50%;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, .82), rgba(255, 255, 255, 0) 34%),
    radial-gradient(circle at 66% 72%, #FF3A3A 0%, #7A0000 68%, #2A0000 100%);
  box-shadow: inset -10px -12px 30px rgba(0, 0, 0, .6), 0 26px 54px rgba(0, 0, 0, .5), 0 0 60px rgba(255, 0, 0, .3);
  pointer-events: none;
}
.js .bento__object { animation: floatA 10s ease-in-out infinite; }

.bento__kicker {
  position: relative;
  font-family: "Manrope", sans-serif; font-size: .66rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: rgba(255, 255, 255, .6);
}
.bento__hero .bento__value {
  position: relative;
  margin-top: 12px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(3.4rem, 11vw, 5.6rem);
  font-weight: 900; line-height: .9; letter-spacing: -.05em;
}
.bento__hero h3 { position: relative; margin-top: 16px; font-size: clamp(1.05rem, 2.4vw, 1.3rem); }
.bento__hero p  { position: relative; margin-top: 10px; font-size: .92rem; color: rgba(255, 255, 255, .74); max-width: 40ch; line-height: 1.75; }
.bento__cond    { position: relative; margin-top: 18px; font-size: .78rem; color: rgba(255, 255, 255, .64); }

/* Supporting offers — light, airy, hairline separated */
.bento__item {
  position: relative;
  border-radius: var(--r-xl);
  padding: clamp(22px, 3vw, 30px) clamp(22px, 3vw, 32px);
  background: var(--paper-2);
  box-shadow: var(--sh-paper);
  display: flex; align-items: center; gap: clamp(16px, 3vw, 28px);
  overflow: hidden;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.bento__item:hover { transform: translateY(-3px); box-shadow: var(--sh-paper-2); }
.bento__item::before {
  content: ""; position: absolute; left: 0; top: 18%; bottom: 18%;
  width: 3px; border-radius: 0 3px 3px 0;
}
.bento__item--a::before { background: var(--cyan); }
.bento__item--b::before { background: var(--ea-green); }
.bento__item--c::before { background: #8B6CFF; }

.bento__item .bento__value {
  font-family: "Manrope", sans-serif;
  font-size: clamp(1.9rem, 4.6vw, 2.5rem);
  font-weight: 900; letter-spacing: -.045em; line-height: 1;
  color: var(--ink); flex: none; min-width: 3.2ch;
}
.bento__item h3 { font-size: .99rem; color: var(--ink); line-height: 1.5; }
.bento__item p  { margin-top: 5px; font-size: .84rem; line-height: 1.7; }
.bento__item .bento__cond { margin-top: 8px; font-size: .75rem; color: var(--ink-faint); }

.fineprint {
  margin-top: clamp(26px, 4vw, 40px);
  font-size: .82rem; line-height: 1.9; color: var(--ink-faint);
  max-width: 92ch;
  padding-left: 16px;
  border-left: 2px solid var(--rule-light);
}

/* ------------------------------------------------------------------
   10 · ACCOUNT TYPES
   ------------------------------------------------------------------ */
.accts { display: grid; gap: 16px; }
@media (min-width: 700px) and (max-width: 979px) { .accts { max-width: 600px; margin-inline: auto; } }
@media (min-width: 980px) { .accts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }

.acct {
  position: relative; overflow: hidden;
  border-radius: var(--r-xl);
  padding: clamp(26px, 3.4vw, 36px);
  background: var(--paper-2);
  box-shadow: var(--sh-paper);
  display: flex; flex-direction: column;
  transition: transform var(--t) var(--ease), box-shadow var(--t) var(--ease);
}
.acct:hover { transform: translateY(-5px); box-shadow: var(--sh-paper-2); }

/* Each account gets its own abstract object rather than an icon set */
.acct__object { position: relative; width: 58px; height: 58px; margin-bottom: 24px; }
.acct__object i, .acct__object b {
  position: absolute; display: block; border-radius: 50%;
}
/* Standard — concentric ring */
.acct--std .acct__object i {
  inset: 0; border-radius: 50%;
  border: 8px solid transparent;
  background: linear-gradient(140deg, var(--cyan), #0E6E9E) border-box;
  -webkit-mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  mask: linear-gradient(#000 0 0) padding-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
}
.acct--std .acct__object b {
  width: 22px; height: 22px; left: 18px; top: 18px;
  background: radial-gradient(circle at 32% 28%, #fff, var(--cyan) 70%);
  box-shadow: 0 6px 16px rgba(57, 191, 255, .5);
}
/* Ultra Low — stacked discs */
.acct--ul .acct__object i {
  left: 0; width: 58px; height: 20px; border-radius: 50%;
  background: linear-gradient(140deg, var(--ea-green), var(--ea-green-deep));
  opacity: .28;
}
.acct--ul .acct__object i:nth-child(1) { top: 4px; }
.acct--ul .acct__object i:nth-child(2) { top: 18px; opacity: .55; }
.acct--ul .acct__object b {
  left: 0; top: 32px; width: 58px; height: 22px; border-radius: 50%;
  background: linear-gradient(140deg, var(--ea-green), var(--ea-green-deep));
  box-shadow: 0 10px 22px rgba(34, 217, 138, .38);
}
/* Shares — orbiting sphere */
.acct--sh .acct__object i {
  inset: 6px; border-radius: 50%;
  background: radial-gradient(circle at 32% 26%, #fff, #B49BFF 42%, #5B3FC4 100%);
  box-shadow: 0 12px 26px rgba(91, 63, 196, .38);
}
.acct--sh .acct__object b {
  inset: -3px 0 auto; height: 58px; border-radius: 50%;
  border: 1.5px solid rgba(91, 63, 196, .45);
  transform: rotate(-24deg) scaleY(.44);
  background: none;
}

.acct__name {
  font-family: "Manrope", sans-serif;
  font-size: 1.28rem; font-weight: 800; letter-spacing: -.02em;
  color: var(--ink);
}
.acct__for { margin-top: 8px; font-size: .89rem; line-height: 1.7; }

.acct__min { margin-top: 26px; padding-top: 22px; border-top: 1px solid var(--rule-light); }
.acct__min small {
  display: block;
  font-family: "Manrope", sans-serif; font-size: .66rem; font-weight: 800;
  letter-spacing: .16em; text-transform: uppercase; color: var(--ink-faint);
}
.acct__min b {
  display: block; margin-top: 6px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2rem, 5vw, 2.4rem);
  font-weight: 900; letter-spacing: -.045em; line-height: 1.1;
  color: var(--ink);
}
.acct__notes { margin-top: 20px; display: grid; gap: 9px; }
.acct__notes li {
  display: flex; gap: 10px; align-items: flex-start;
  font-size: .85rem; line-height: 1.7; color: var(--ink-soft);
}
.acct__notes li::before {
  content: ""; flex: none; width: 5px; height: 5px; border-radius: 50%;
  background: rgba(13, 18, 32, .25); margin-top: 10px;
}

/* ------------------------------------------------------------------
   10b · REBATE RATE BOARD
   Rates are shown per 1 lot, exactly as supplied. No other terms are
   stated anywhere in this block — see the note in the markup.
   ------------------------------------------------------------------ */
.rebate { position: relative; }

/* Asset-token trail that carries the eye from Account Types into the
   rate board across the stage boundary. */
.trail {
  position: absolute;
  left: 0; right: 0; bottom: clamp(12px, 3vw, 44px);
  height: 150px;
  pointer-events: none;
  z-index: 1;
}
.trail i {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 31% 25%, #FFFFFF 0%, #E6EAF3 28%, #A3ACBE 64%, #5A6376 92%);
  box-shadow: 0 12px 26px rgba(13, 18, 32, .28);
  opacity: .9;
}
.trail i:nth-child(1) { width: 26px; height: 26px; left: 11%; top: 10%; }
.trail i:nth-child(2) { width: 15px; height: 15px; left: 29%; top: 52%; opacity: .7; }
.trail i:nth-child(3) { width: 34px; height: 34px; right: 18%; top: 24%;
  background: radial-gradient(circle at 31% 25%, #FFF8E2 0%, #F6DC93 26%, #D6A63C 64%, #8A6416 92%); }
.trail i:nth-child(4) { width: 11px; height: 11px; right: 34%; top: 62%; opacity: .6; }
.js .trail i:nth-child(1) { animation: bobA 11s ease-in-out infinite; }
.js .trail i:nth-child(2) { animation: bobB 9s ease-in-out .6s infinite; }
.js .trail i:nth-child(3) { animation: bobA 13s ease-in-out 1.1s infinite; }
@media (max-width: 700px) { .trail { display: none; } }

/* Two anchor rates — SILVER and GOLD carry the most visual weight */
.rates__anchors { display: grid; gap: 14px; }
@media (min-width: 760px) { .rates__anchors { grid-template-columns: minmax(0, 1.06fr) minmax(0, .94fr); gap: 18px; } }

.rate-anchor {
  position: relative; overflow: hidden;
  display: flex; align-items: center; gap: clamp(18px, 3vw, 30px);
  padding: clamp(24px, 3.6vw, 38px) clamp(22px, 3.4vw, 36px);
  border-radius: var(--r-2xl);
  background: linear-gradient(152deg, rgba(24, 32, 48, .92) 0%, rgba(10, 15, 25, .96) 100%);
  border: 1px solid var(--rule);
  box-shadow: var(--sh-2);
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease);
}
.rate-anchor:hover { transform: translateY(-4px); border-color: var(--rule-strong); }
.rate-anchor::after {
  content: "";
  position: absolute; width: 240px; height: 240px; border-radius: 50%;
  top: -120px; right: -90px; filter: blur(72px); pointer-events: none;
}
.rate-anchor--silver::after { background: rgba(190, 202, 222, .22); }
.rate-anchor--gold::after   { background: rgba(214, 166, 60, .22); }

/* Polished asset token */
.token {
  position: relative; flex: none;
  width: clamp(62px, 9vw, 96px); aspect-ratio: 1;
  border-radius: 50%;
}
.token::after {
  content: ""; position: absolute; inset: 15%;
  border-radius: 50%; border: 1px solid rgba(255, 255, 255, .32); opacity: .55;
}
.token--silver {
  background: radial-gradient(circle at 31% 24%, #FFFFFF 0%, #E9EDF5 26%, #A8B1C3 62%, #5D6678 88%, #333B4C 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5), inset -6px -8px 18px rgba(0, 0, 0, .34), 0 0 44px rgba(190, 202, 222, .18);
}
.token--gold {
  background: radial-gradient(circle at 31% 24%, #FFF8E2 0%, #F7DE97 26%, #D8A93F 62%, #8C6617 88%, #4A3407 100%);
  box-shadow: 0 20px 40px rgba(0, 0, 0, .5), inset -6px -8px 18px rgba(0, 0, 0, .34), 0 0 44px rgba(214, 166, 60, .24);
}
.js .token { animation: bobA 12s ease-in-out infinite; }
.rate-anchor--gold .token { animation-delay: .9s; }

.rate-anchor__body { position: relative; min-width: 0; }
.rate-anchor__sym {
  font-family: "Manrope", sans-serif;
  font-size: clamp(.68rem, 1.5vw, .78rem); font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-mute);
}
.rate-anchor__val {
  margin-top: 6px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(2.15rem, 6.4vw, 3.35rem);
  font-weight: 900; letter-spacing: -.045em; line-height: 1;
  color: #fff;
}
.rate-anchor--silver .rate-anchor__val {
  background: linear-gradient(140deg, #FFFFFF 6%, #AEB8CB 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rate-anchor--gold .rate-anchor__val {
  background: linear-gradient(140deg, #FFF3D2 6%, #D8A93F 90%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.rate-anchor__unit {
  margin-top: 8px;
  font-family: "Manrope", sans-serif;
  font-size: clamp(.72rem, 1.6vw, .84rem); font-weight: 700;
  letter-spacing: .1em; color: var(--text-mute);
}

/* Supporting rate chips */
.rates__chips {
  margin-top: 14px;
  display: grid; gap: 12px;
}
@media (min-width: 700px)  { .rates__chips { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1040px) { .rates__chips { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin-top: 18px; } }

.rate-chip {
  display: flex; align-items: center; gap: 13px;
  padding: 15px 18px;
  border-radius: var(--r-lg);
  background: var(--surface-1);
  border: 1px solid var(--rule);
  transition: transform var(--t) var(--ease), border-color var(--t) var(--ease), background var(--t) var(--ease);
}
.rate-chip:hover { transform: translateY(-3px); border-color: var(--rule-strong); background: var(--surface-2); }
.rate-chip__dot {
  flex: none; width: 30px; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 31% 24%, #FFFFFF 0%, #DDE3EE 30%, #8E97AB 68%, #4A5265 100%);
  box-shadow: inset -3px -4px 8px rgba(0, 0, 0, .3), 0 6px 14px rgba(0, 0, 0, .4);
}
.rate-chip--gold .rate-chip__dot {
  background: radial-gradient(circle at 31% 24%, #FFF8E2 0%, #F1D287 30%, #C79A2E 68%, #6E4E10 100%);
}
.rate-chip__body { min-width: 0; }
.rate-chip__sym {
  font-family: "Manrope", sans-serif;
  font-size: .74rem; font-weight: 800; letter-spacing: .11em;
  text-transform: uppercase; color: var(--text-mute);
  white-space: nowrap;
}
.rate-chip__val {
  margin-top: 2px;
  font-family: "Manrope", sans-serif;
  font-size: 1.16rem; font-weight: 800; letter-spacing: -.025em;
  color: #fff; line-height: 1.25;
}
.rate-chip__val span { font-size: .72rem; font-weight: 700; color: var(--text-mute); letter-spacing: .04em; }

.rates__note {
  margin-top: clamp(24px, 3.6vw, 34px);
  padding-left: 16px;
  border-left: 2px solid var(--rule-strong);
  font-size: .84rem; line-height: 1.85;
  color: var(--text-mute);
  max-width: 74ch;
}

.rebate__cta { margin-top: clamp(30px, 4vw, 42px); display: flex; flex-wrap: wrap; gap: 12px; }
.rebate__cta .btn { flex: 1 1 100%; }
@media (min-width: 620px) { .rebate__cta .btn { flex: 0 0 auto; } }

/* ------------------------------------------------------------------
   11 · JOURNEY — animated signal path
   ------------------------------------------------------------------ */
.journey { position: relative; }

/* Oversized background word — depth without another box */
.journey__ghost {
  position: absolute; left: 50%; top: clamp(-10px, 1vw, 18px);
  transform: translateX(-50%);
  font-family: "Manrope", sans-serif;
  font-size: clamp(5rem, 19vw, 15rem);
  font-weight: 900; letter-spacing: -.06em; line-height: 1;
  color: rgba(255, 255, 255, .022);
  white-space: nowrap; pointer-events: none; user-select: none;
}

.journey__track { position: relative; margin-top: clamp(24px, 4vw, 46px); }

/* Desktop curve */
.journey__curve { display: none; }
@media (min-width: 900px) {
  .journey__curve {
    display: block;
    position: absolute; left: 0; right: 0; top: 0;
    height: 130px; width: 100%;
    overflow: visible; pointer-events: none;
  }
}
.journey__curve path { fill: none; stroke-width: 2; stroke-linecap: round; }
.journey__curve .jr-base { stroke: rgba(255, 255, 255, .1); }
.journey__curve .jr-live {
  stroke: url(#jrFlow);
  stroke-dasharray: var(--len, 1200);
  stroke-dashoffset: var(--len, 1200);
  transition: stroke-dashoffset 1.9s var(--ease-out);
}
.journey.is-drawn .journey__curve .jr-live { stroke-dashoffset: 0; }

.journey__steps { position: relative; display: grid; gap: clamp(34px, 5vw, 40px); }
@media (min-width: 900px) { .journey__steps { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(16px, 2.2vw, 30px); } }

/* Mobile vertical rail */
.journey__steps::before {
  content: "";
  position: absolute; left: 26px; top: 30px; bottom: 40px;
  width: 2px; border-radius: 2px;
  background: rgba(255, 255, 255, .1);
}
.journey__steps::after {
  content: "";
  position: absolute; left: 26px; top: 30px; bottom: 40px;
  width: 2px; border-radius: 2px;
  background: linear-gradient(180deg, var(--xm-red), var(--cyan) 52%, var(--ea-green));
  transform-origin: top;
  transform: scaleY(0);
  transition: transform 1.7s var(--ease-out);
}
.journey.is-drawn .journey__steps::after { transform: scaleY(1); }
@media (min-width: 900px) {
  .journey__steps::before, .journey__steps::after { display: none; }
}

.step { position: relative; padding-left: 68px; }
@media (min-width: 900px) {
  .step { padding-left: 0; padding-top: 104px; text-align: center; }
  .step p { margin-inline: auto; }
}

.step__orb {
  position: absolute; left: 0; top: 0;
  width: 54px; height: 54px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: "Manrope", sans-serif; font-size: .92rem; font-weight: 900;
  background: radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .4), transparent 36%), #0B1220;
  border: 1px solid var(--rule-strong);
  box-shadow: 0 16px 36px rgba(0, 0, 0, .55);
  z-index: 1;
}
@media (min-width: 900px) {
  /* Centred so the signal curve can run straight through the three orbs. */
  .step__orb { top: 30px; left: 50%; transform: translateX(-50%); }
}
.step:nth-child(1) .step__orb { color: var(--xm-red);   border-color: rgba(255, 0, 0, .45);      box-shadow: 0 16px 36px rgba(0,0,0,.55), 0 0 34px rgba(255, 0, 0, .3); }
.step:nth-child(2) .step__orb { color: var(--cyan);     border-color: rgba(57, 191, 255, .42);   box-shadow: 0 16px 36px rgba(0,0,0,.55), 0 0 34px rgba(57, 191, 255, .26); }
.step:nth-child(4) .step__orb { color: var(--ea-green); border-color: rgba(34, 217, 138, .45);   box-shadow: 0 16px 36px rgba(0,0,0,.55), 0 0 34px rgba(34, 217, 138, .28); }
.step:nth-child(3) .step__orb { color: #C6A5FF;         border-color: rgba(198, 165, 255, .45); box-shadow: 0 16px 36px rgba(0,0,0,.55), 0 0 34px rgba(198, 165, 255, .26); }

.step__label {
  font-family: "Manrope", sans-serif; font-size: .66rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase; color: var(--text-mute);
}
.step h3 { margin-top: 10px; font-size: clamp(1.08rem, 2.4vw, 1.28rem); }
.step h3 em { font-style: normal; color: var(--ea-green); font-family: "Manrope", sans-serif; font-weight: 900; }
.step p { margin-top: 10px; font-size: .9rem; line-height: 1.8; color: var(--text-mute); max-width: 36ch; }
.step .codecard { margin-top: 16px; text-align: left; padding: 14px 16px; }
.step .codecard__value { font-size: clamp(1.35rem, 3.4vw, 1.6rem); }
.step .codecard__btn { min-height: 42px; padding: 10px 16px; font-size: .84rem; }
@media (min-width: 900px) { .step .codecard { flex-direction: column; align-items: flex-start; gap: 12px; } .step .codecard__btn { width: 100%; } }

.journey__cta {
  margin-top: clamp(44px, 6vw, 70px);
  display: flex; flex-wrap: wrap; gap: 12px;
}
.journey__cta .btn { flex: 1 1 100%; }
@media (min-width: 620px) { .journey__cta .btn { flex: 0 0 auto; } }

/* ------------------------------------------------------------------
   12 · FAQ — hairlines, no boxes
   ------------------------------------------------------------------ */
.faq { max-width: 840px; margin-inline: auto; }
.faq__item { border-bottom: 1px solid var(--rule); }
.faq__item:first-child { border-top: 1px solid var(--rule); }

.faq__q {
  width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 18px;
  padding: 22px 4px; background: none; border: 0; cursor: pointer; text-align: left;
  font-size: clamp(.97rem, 2.2vw, 1.06rem); font-weight: 700; line-height: 1.6;
  color: var(--text-soft);
  transition: color var(--t) var(--ease);
}
.faq__q:hover, .faq__q[aria-expanded="true"] { color: #fff; }

.faq__q i {
  flex: none; width: 30px; height: 30px; border-radius: 50%;
  display: grid; place-items: center; position: relative;
  border: 1px solid var(--rule-strong);
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease), transform var(--t) var(--ease);
}
.faq__q i::before, .faq__q i::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  transition: transform var(--t) var(--ease);
}
.faq__q i::before { width: 11px; height: 1.8px; }
.faq__q i::after  { width: 1.8px; height: 11px; }
.faq__q[aria-expanded="true"] i {
  background: var(--grad-xm); border-color: transparent; color: #fff;
  transform: rotate(180deg);
}
.faq__q[aria-expanded="true"] i::after { transform: scaleY(0); }

.faq__a {
  display: grid; grid-template-rows: 0fr; visibility: hidden;
  transition: grid-template-rows var(--t) var(--ease), visibility var(--t) var(--ease);
}
.faq__item.is-open .faq__a { grid-template-rows: 1fr; visibility: visible; }
.faq__a > div { overflow: hidden; }
.faq__a p {
  padding: 0 4px 24px; max-width: 68ch;
  font-size: .92rem; line-height: 1.9; color: var(--text-mute);
}
.faq__a a { color: var(--ea-green); text-decoration: underline; text-underline-offset: 3px; }

/* ------------------------------------------------------------------
   13 · FINALE — campaign scene, not a banner
   ------------------------------------------------------------------ */
.finale {
  position: relative;
  padding-top: clamp(80px, 11vw, 150px);
  padding-bottom: clamp(80px, 11vw, 150px);
  text-align: center;
  overflow: hidden;
}
.finale__scene { position: absolute; inset: 0; pointer-events: none; }
.finale__orb {
  position: absolute; border-radius: 50%;
}
.finale__orb--red {
  width: clamp(120px, 20vw, 260px); aspect-ratio: 1;
  left: -6%; top: 12%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .6), transparent 32%),
    radial-gradient(circle at 66% 72%, #FF2C2C 0%, #6A0000 70%, #200000 100%);
  box-shadow: inset -12px -14px 34px rgba(0, 0, 0, .6), 0 0 90px rgba(255, 0, 0, .3);
  opacity: .85;
}
.finale__orb--green {
  width: clamp(84px, 14vw, 180px); aspect-ratio: 1;
  right: -4%; bottom: 14%;
  background:
    radial-gradient(circle at 32% 26%, rgba(255, 255, 255, .65), transparent 32%),
    radial-gradient(circle at 62% 70%, #1BC17E 0%, #0A3C2B 74%, #05221A 100%);
  box-shadow: inset -9px -11px 26px rgba(0, 0, 0, .55), 0 0 76px rgba(34, 217, 138, .3);
  opacity: .85;
}
.js .finale__orb--red   { animation: floatA 13s ease-in-out infinite; }
.js .finale__orb--green { animation: floatB 10s ease-in-out .8s infinite; }

.finale__flow {
  position: absolute; left: 0; right: 0; top: 42%; height: 120px;
  width: 100%; overflow: visible;
}
.finale__flow path { fill: none; stroke-width: 1.4; stroke-linecap: round; }
.finale__flow .fn-main { stroke: url(#fnFlow); opacity: .8; }

.finale__inner { position: relative; }
.finale .eyebrow { justify-content: center; }
.finale h2 {
  margin-top: 18px;
  font-size: clamp(1.75rem, 5.4vw, 3.35rem);
  line-height: 1.15; letter-spacing: -.035em;
  max-width: 26ch; margin-inline: auto;
  text-wrap: balance;
}
.finale h2 em {
  font-style: normal;
  background: linear-gradient(112deg, #FFFFFF 0%, #FFA8A8 42%, var(--xm-red) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.finale__lead {
  margin-top: 20px; color: var(--text-soft);
  font-size: clamp(.95rem, 2.2vw, 1.05rem);
  max-width: 52ch; margin-inline: auto;
}
.finale__cta {
  margin-top: clamp(30px, 4vw, 42px);
  display: flex; flex-wrap: wrap; gap: 12px; justify-content: center;
}
.finale__cta .btn { flex: 1 1 100%; }
@media (min-width: 620px) { .finale__cta .btn { flex: 0 0 auto; } }
.finale__micro { margin-top: 20px; font-size: .8rem; color: var(--text-mute); }
.finale .codecard { max-width: 460px; margin: clamp(24px, 3.4vw, 32px) auto 0; text-align: left; }

/* ------------------------------------------------------------------
   14 · FOOTER
   ------------------------------------------------------------------ */
.footer {
  position: relative; z-index: 3;
  background: var(--bg-void);
  border-top: 1px solid var(--rule);
  padding-top: clamp(38px, 5vw, 56px);
  padding-bottom: calc(26px + var(--mobilebar-h) + env(safe-area-inset-bottom));
}
.footer__top {
  display: grid; gap: 22px;
  padding-bottom: 24px; border-bottom: 1px solid var(--rule);
}
@media (min-width: 860px) {
  .footer__top { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 44px; align-items: start; }
}
.footer__blurb {
  margin-top: 14px; font-size: .86rem; line-height: 1.85;
  color: var(--text-mute); max-width: 44ch;
}
.footer__links { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.footer__links a { font-size: .87rem; color: var(--text-mute); }
.footer__links a:hover { color: #fff; }

.footer__legal { margin-top: 22px; display: grid; gap: 12px; }
.footer__legal p {
  font-size: .81rem; line-height: 1.9; color: var(--text-mute);
  padding-left: 14px; border-left: 2px solid var(--rule);
  max-width: 96ch;
}
.footer__legal strong { color: var(--text-soft); font-weight: 700; }

.footer__bottom {
  margin-top: 22px;
  display: flex; flex-wrap: wrap; gap: 8px 18px;
  justify-content: space-between; align-items: center;
  font-size: .79rem; color: var(--text-mute);
}

/* ------------------------------------------------------------------
   15 · STICKY MOBILE CTA
   ------------------------------------------------------------------ */
.mobilebar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 95;
  display: flex; gap: 8px;
  padding: 10px var(--gutter) calc(10px + env(safe-area-inset-bottom));
  background: rgba(4, 7, 13, .95);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px);
  border-top: 1px solid var(--rule);
  transform: translateY(105%);
  transition: transform var(--t) var(--ease);
}
.mobilebar.is-visible { transform: translateY(0); }
.mobilebar .btn { min-height: 48px; padding-inline: 12px; font-size: .92rem; }
.mobilebar__primary { flex: 7 1 0; min-width: 0; }
.mobilebar__line    { flex: 3 1 0; min-width: 0; }
@media (min-width: 1000px) { .mobilebar { display: none; } }
body.has-mobilebar { --mobilebar-h: 70px; }

/* ------------------------------------------------------------------
   16 · REVEAL
   ------------------------------------------------------------------ */
.js .reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity var(--t-slow) var(--ease-out), transform var(--t-slow) var(--ease-out);
  will-change: opacity, transform;
}
.js .reveal.is-in { opacity: 1; transform: none; will-change: auto; }
.js .reveal[data-delay="1"] { transition-delay: .09s; }
.js .reveal[data-delay="2"] { transition-delay: .18s; }
.js .reveal[data-delay="3"] { transition-delay: .27s; }

/* ------------------------------------------------------------------
   19 · PARTNER-CODE MODAL
   One dialog for the whole page: every "เปิดบัญชี XM" CTA and every
   "ดูวิธีกรอกรหัส" link opens this same instance.
   ------------------------------------------------------------------ */
.modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  visibility: hidden;
  pointer-events: none;
}
.modal.is-open { visibility: visible; pointer-events: auto; }

.modal__scrim {
  position: absolute; inset: 0;
  background: rgba(2, 4, 9, .78);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  opacity: 0;
  transition: opacity var(--t) var(--ease);
}
.modal.is-open .modal__scrim { opacity: 1; }

.modal__panel {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%) scale(.97);
  width: min(100% - 24px, 620px);
  max-height: min(88vh, 900px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  padding: clamp(24px, 4vw, 40px) clamp(20px, 3.4vw, 40px) clamp(22px, 3.4vw, 34px);
  border-radius: var(--r-xl);
  background:
    radial-gradient(90% 60% at 88% 0%, rgba(255, 0, 0, .16), transparent 62%),
    radial-gradient(70% 50% at 4% 100%, rgba(34, 217, 138, .13), transparent 64%),
    linear-gradient(165deg, #121A29 0%, #0A0F1B 58%, #070B14 100%);
  border: 1px solid var(--rule-strong);
  box-shadow: 0 44px 110px rgba(0, 0, 0, .68);
  opacity: 0;
  transition: opacity var(--t) var(--ease), transform var(--t) var(--ease-out);
}
.modal.is-open .modal__panel { opacity: 1; transform: translate(-50%, -50%) scale(1); }

@media (max-width: 560px) {
  .modal__panel {
    width: 100%;
    left: 0; top: auto; bottom: 0;
    transform: translateY(14px);
    max-height: 92vh;
    border-radius: var(--r-xl) var(--r-xl) 0 0;
    padding-bottom: calc(22px + env(safe-area-inset-bottom));
  }
  .modal.is-open .modal__panel { transform: translateY(0); }
}

.modal__close {
  position: absolute;
  top: clamp(12px, 2vw, 18px);
  right: clamp(12px, 2vw, 18px);
  z-index: 2;
  width: 42px; height: 42px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 1px solid var(--rule-strong);
  background: rgba(10, 15, 26, .9);
  color: #fff;
  font-size: 1.1rem; line-height: 1;
  cursor: pointer;
  transition: background var(--t) var(--ease), border-color var(--t) var(--ease);
}
.modal__close:hover { background: var(--surface-3); border-color: rgba(255, 255, 255, .34); }

.modal__eyebrow {
  font-family: "Manrope", sans-serif;
  font-size: .66rem; font-weight: 800;
  letter-spacing: .2em; text-transform: uppercase;
  color: var(--text-mute);
  padding-right: 52px;
}
.modal__panel h2 {
  margin-top: 12px;
  font-size: clamp(1.32rem, 4vw, 1.78rem);
  line-height: 1.3;
  letter-spacing: -.025em;
  padding-right: 44px;
}
.modal__panel h2 em {
  font-style: normal;
  font-family: "Manrope", sans-serif; font-weight: 900;
  color: var(--ea-green);
}
.modal__lead {
  margin-top: 12px;
  font-size: .92rem; line-height: 1.85;
  color: var(--text-soft);
}
.modal .codecard { margin-top: clamp(18px, 2.6vw, 24px); }

/* Numbered how-to list */
.modal__steps {
  margin-top: clamp(20px, 3vw, 28px);
  display: grid; gap: 14px;
  counter-reset: mstep;
}
.modal__steps li {
  position: relative;
  padding-left: 44px;
  font-size: .91rem;
  line-height: 1.8;
  color: var(--text-soft);
}
.modal__steps li::before {
  counter-increment: mstep;
  content: counter(mstep);
  position: absolute; left: 0; top: 1px;
  width: 30px; height: 30px;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--surface-2);
  border: 1px solid var(--rule-strong);
  font-family: "Manrope", sans-serif;
  font-size: .78rem; font-weight: 800;
  color: #fff;
}
.modal__steps b { color: #fff; font-weight: 700; }
.modal__steps q {
  quotes: "“" "”";
  color: #fff;
  font-weight: 700;
  background: rgba(255, 255, 255, .07);
  border: 1px solid var(--rule);
  border-radius: 7px;
  padding: 1px 7px;
  white-space: normal;
}
.modal__steps code {
  font-family: "Manrope", sans-serif;
  font-weight: 900;
  font-size: 1.02em;
  color: var(--ea-green);
  background: rgba(34, 217, 138, .13);
  border: 1px solid rgba(34, 217, 138, .32);
  border-radius: 8px;
  padding: 1px 10px;
  margin-inline: 2px;
}

/* Real XM screenshot guide */
.modal__guide {
  margin: clamp(20px, 3vw, 26px) 0 0;
}
.modal__guide-frame {
  position: relative;
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--rule);
  background: #0C1220;
  line-height: 0;
}
.modal__guide-frame img {
  width: 100%;
  height: auto;
  display: block;
}
.modal__guide figcaption {
  margin-top: 10px;
  font-size: .78rem;
  line-height: 1.7;
  color: var(--text-mute);
}
/* Hidden until the screenshot asset is present (see the img onerror hook) */
.modal__guide[hidden] { display: none; }

.modal__actions {
  margin-top: clamp(22px, 3.2vw, 30px);
  display: flex; flex-wrap: wrap; gap: 10px;
}
.modal__actions .btn { flex: 1 1 100%; }
@media (min-width: 520px) {
  .modal__actions .btn { flex: 1 1 auto; }
}
.modal__fine {
  margin-top: 16px;
  font-size: .78rem; line-height: 1.75;
  color: var(--text-mute);
}

/* Small "how to enter the code" link that sits with a code card */
.codecard__link {
  flex: 1 1 100%;
  order: 3;
  display: inline-flex; align-items: center; gap: 6px;
  padding: 4px 0 0;
  background: none; border: 0;
  font-size: .84rem; font-weight: 700;
  color: var(--cyan);
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
  text-align: left;
}
.codecard__link:hover { color: #fff; }
.codecard__link::after { content: "→"; font-family: "Manrope", sans-serif; }

@media (prefers-reduced-motion: reduce) {
  .modal__panel, .modal__scrim { transition: none !important; }
}

/* ------------------------------------------------------------------
   17 · REDUCED MOTION
   ------------------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: .001ms !important;
    scroll-behavior: auto !important;
  }
  .js .reveal { opacity: 1; transform: none; }
  .journey__curve .jr-live { stroke-dashoffset: 0 !important; }
  .journey__steps::after { transform: scaleY(1) !important; }
  .btn:hover, .bento__hero:hover, .bento__item:hover, .acct:hover,
  .rate-anchor:hover, .rate-chip:hover, .codecard__btn:hover { transform: none; }
  .btn:hover::after { animation: none; }
}
