:root { --account-bg:#ad2137; --account-hover:#881426; --account-ink:#fff; --account-radius:12px; --account-shadow:0 5px 13px #84192a32; --account-shadow-hover:0 8px 20px #84192a4d; --landing-base:#fffaf7; --landing-tint:#f7efea; --landing-panel:#fffdfb; --landing-border:#e7d9d3; --hero-ground:#0b1628; --hero-highlight:#ffc2ca; --hero-gradient:linear-gradient(90deg,#0b1628cc 1%,#0b1628e8 33%,#0b16283c 65%,#0b162800); --hero-mobile-position:left top; --hero-form-radius:18px 18px 28px 28px; --section-radius:15px; --register-art:url("../images/home-trading-desk.webp"); --register-overlay:#0b1628b8; }

/* Home page layout and shared account button. */
.account-action {
  --action-gap: .55rem;
  gap: var(--action-gap);
  white-space: nowrap;
  border-radius: var(--account-radius);
  color: var(--account-ink);
  background: var(--account-bg);
  border: 1px solid var(--account-bg);
  box-shadow: var(--account-shadow);
  transition: background-color .18s ease, border-color .18s ease, box-shadow .18s ease;
}
.account-action:hover {
  background: var(--account-hover);
  border-color: var(--account-hover);
  color: var(--account-ink);
  box-shadow: var(--account-shadow-hover);
  text-decoration: none;
}
.account-action__arrow { flex: none; transition: transform .18s ease; }
.account-action:hover .account-action__arrow { transform: translateX(3px); }
.account-action:focus-visible, .landing-action:focus-visible { outline: 3px solid var(--account-bg); outline-offset: 4px; }

.landing { background: var(--landing-base); }
.landing-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: var(--hero-ground);
  color: #f6f8fb;
  padding: clamp(2.5rem, 4.4vw, 4.75rem) 0;
}
.landing-hero__image { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.landing-hero__image img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: var(--hero-position, right center); }
.landing-hero__image::after {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--hero-gradient), linear-gradient(0deg, var(--hero-ground), transparent 24%);
}
.landing-hero__layout {
  display: grid;
  grid-template: "headline form" auto "details form" 1fr / minmax(0, 1.2fr) minmax(350px, .85fr);
  gap: clamp(1rem, 2.5vw, 2rem) clamp(2rem, 8vw, 8rem);
  align-items: start;
}
.landing-hero__headline { grid-area: headline; padding-top: clamp(0rem, 2vw, 1.7rem); }
.landing-hero__eyebrow { width: fit-content; margin: 0 0 1.15rem; color: var(--hero-highlight); font-size: .8rem; font-weight: 700; letter-spacing: .11em; text-transform: uppercase; }
.landing-hero h1 { margin: 0; color: #fff; font-size: clamp(2.5rem, 4.6vw, 5rem); line-height: 1.04; letter-spacing: -.043em; max-width: 15ch; text-wrap: balance; }
.landing-hero h1 em { color: var(--hero-highlight); font-style: normal; }
.landing-hero__details { grid-area: details; max-width: 55ch; }
.landing-hero__summary { color: #e3edf9; font-size: clamp(1rem, 1.4vw, 1.17rem); margin: 0 0 1.3rem; }
.landing-hero__office { display: flex; flex-wrap: wrap; gap: .5rem .8rem; align-items: center; color: #f1f6fb; font-weight: 600; font-size: .9rem; }
.landing-hero__office svg { flex: none; }
.landing-hero__office .offices__flags { display: inline-flex; gap: .35rem; }
.landing-hero__links { display: flex; gap: .5rem 1.2rem; flex-wrap: wrap; margin-top: 1.25rem; }
.landing-hero__links a { color: #edf5ff; text-decoration: underline; text-decoration-color: var(--hero-highlight); text-underline-offset: .26em; }
.landing-hero__links a:hover { color: var(--hero-highlight); }
.landing-hero__form {
  grid-area: form;
  align-self: center;
  justify-self: end;
  min-width: 0;
  width: min(100%, 470px);
  padding: clamp(1rem, 2.65vw, 2rem);
  position: relative;
  color: var(--text);
  background: var(--landing-panel);
  border: 1px solid var(--landing-border);
  border-radius: var(--hero-form-radius);
  border-top: 4px solid var(--account-bg);
  box-shadow: 0 22px 65px #0007;
}
.landing-hero__form h2, .landing-hero__form .form-block__heading { margin: 0 0 .85rem; font-size: clamp(1.27rem, 2.1vw, 1.75rem); line-height: 1.15; text-wrap: balance; }
.landing-hero__form .form-block { max-width: none; margin: 0; }
.landing-hero__form .form-block--hero { padding: 0; border: 0; box-shadow: none; background: transparent; }
.landing-hero__form .form-callout { margin-bottom: 0; }
.landing-hero__form .form-card__note, .landing-hero__form .hero__call { margin-top: .9rem; padding-top: .75rem; border-top: 1px solid var(--landing-border); }
.landing-hero #registration-form { scroll-margin-top: calc(var(--header-h, 70px) + 1.5rem); }

.landing .landing-section { padding-block: clamp(3rem, 6vw, 6.5rem); border-block: 0; }
.landing .landing-section h2 { text-wrap: balance; }
.landing .landing-exchanges { padding-block: clamp(1.55rem, 3vw, 2.65rem); background: var(--landing-panel); border-bottom: 1px solid var(--landing-border); }
.landing-exchanges .exchanges__inner { padding: 0; flex-wrap: wrap; }
.landing-exchanges .exchanges__chips { grid-template-columns: repeat(3, minmax(86px, 132px)); justify-content: center; }
.landing .landing-steps { background: var(--landing-tint); }
.landing-steps .section-head h2 { color: var(--text); }
.landing-steps .section-head p { color: var(--text-muted, var(--muted)); }
.landing-steps .section-head .eyebrow { color: var(--accent); }
.landing-steps__action { margin-top: clamp(1.2rem, 3vw, 2.1rem); }
.landing-action { display: inline-flex; min-height: 46px; align-items: center; gap: .65rem; padding: .55rem 1.1rem; font-weight: 700; border-radius: var(--account-radius); color: var(--account-ink); background: var(--account-bg); }
.landing-action:hover { color: var(--account-ink); background: var(--account-hover); text-decoration: none; }
.landing .landing-benefits { background: var(--landing-base); }
.landing .landing-security { background: var(--landing-tint); }
.landing .landing-calc { background: var(--landing-base); border-top: 1px solid var(--landing-border); }
.landing-calc .calc-card, .landing-calc .calc-grid > :last-child { min-width: 0; }
.landing .landing-compare { background: var(--landing-tint); }
.landing-compare .table-wrap { border-radius: var(--section-radius); box-shadow: var(--shadow-sm); }
.landing .landing-reviews { background: var(--landing-base); }
.landing-reviews .reviews { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; columns: auto; gap: clamp(.9rem, 2vw, 1.5rem); }
.landing-reviews .reviews > * { min-width: 0; margin: 0; border-radius: var(--section-radius); }
.landing .landing-company { background: var(--landing-tint); }
.landing .landing-register {
  background: linear-gradient(110deg, var(--hero-ground) 8%, var(--register-overlay) 55%, var(--hero-ground)),
              var(--hero-ground) var(--register-art) right center / cover no-repeat;
  color: #e7f0fa;
}
.landing-register h2 { color: #fff; }
.landing-register .lead, .landing-register .landing-register__copy p { color: #e7f0fa; }
.landing-register .ill { display: none; }
.landing-register .form-block { color: var(--text); }
.landing-register__layout { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(2rem, 7vw, 7rem); }
.landing-register__form { min-width: 0; }
.landing-register__form .form-block { margin: 0; }
.landing .landing-faq { background: var(--landing-base); }
.landing--maple .landing-steps { border-top: 5px solid #a9283b; }

@media (max-width: 900px) {
  .landing-hero__layout { column-gap: 1.75rem; }
  .landing-hero h1 { font-size: clamp(2.25rem, 5vw, 3.5rem); }
  .landing-reviews .reviews { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .landing-hero { padding: 2.5rem 0 2.8rem; }
  .landing-hero__layout { grid-template: "headline" "form" "details" / minmax(0, 1fr); gap: 1.65rem; }
  .landing-hero__headline { padding: 0; }
  .landing-hero__eyebrow { margin-bottom: .8rem; }
  .landing-hero h1 { font-size: clamp(2rem, 7vw, 3.1rem); }
  .landing-hero__image { bottom: auto; height: clamp(420px, 108vw, 650px); }
  .landing-hero__image img { object-position: var(--hero-mobile-position, right top); }
  .landing-hero__image::after { background: linear-gradient(180deg, #06121bb0, #06121b66 47%, var(--hero-ground)); }
  .landing-hero__form, .landing-hero__details { justify-self: start; }
  .landing-register__layout { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
}
@media (max-width: 580px) {
  .landing-reviews .reviews { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  .account-action, .account-action__arrow { transition: none; }
}
@media (max-width: 767px) {
  .site-header .account-action:not(.btn--block) { display: inline-flex; padding: .45rem .65rem; min-height: 40px; font-size: .78rem; }
  .site-header .account-action:not(.btn--block) .account-action__arrow { width: 13px; height: 13px; }
  .site-header .nav-toggle { flex: none; }
  .header-bar__inner, .header-inner, .site-header__inner { gap: 8px; }
  .site-header__actions { margin-inline-start: auto; }
}
@media (max-width: 380px) {
  #site-header .header-bar__inner {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto 36px;
    gap: 6px !important;
    padding-inline: 12px !important;
  }
  #site-header .header-cta { margin-inline-start: 0; }
  .site-header .account-action:not(.btn--block) { padding-inline: .5rem; }
  .site-header .account-action:not(.btn--block) .account-action__arrow { display: none; }
  .site-header .brand { min-width: 0; }
  .site-header .brand .logo { width: 116px; max-width: 100%; }
  .site-header .nav-toggle { width: 36px; min-height: 40px; padding-inline: 0; }
  .header-bar__inner, .header-inner, .site-header__inner, .header-actions, .site-header__actions { gap: 6px; }
}


@media (min-width: 1000px) {
  .landing-hero__image img { transform: translateX(-12%); mask-image: linear-gradient(90deg, #000 86%, transparent); }
}

.landing-section :is(.section-head,.section__head) { max-width: 66ch; }
.landing-section :is(.section-head,.section__head) h2 { margin-bottom: .5em; }

.landing--maple .landing-hero { --hero-highlight: #ffd1d5; }
.landing--maple .landing-hero h1 { max-width: 17ch; font-size: clamp(2.3rem, 4.45vw, 4.75rem); }
.landing--maple .landing-hero__details { max-width: 61ch; }
.maple-hero__checklist {
  list-style: none; padding: .6rem .9rem; margin: 0 0 .95rem;
  border: 1px solid #ffc2ca55; border-left: 3px solid #ffc2ca; border-radius: 0 12px 12px 0; background: #101929e8;
}
.maple-hero__checklist li {
  display: flex; align-items: center; gap: .55rem; margin: 0; padding-block: .4rem;
  color: #f4eef1; font-size: .94rem;
}
.maple-hero__checklist li + li { border-top: 1px solid #fff1; }
.maple-hero__checklist .icon { flex: none; color: #ffc2ca; }
.landing--maple .landing-hero__office { padding: .6rem .8rem; background: #122136df; width: fit-content; border-radius: 8px; }
.landing--maple .landing-hero__links { margin-top: .9rem; }
.landing--maple .landing-hero__form {
  border-radius: 14px 30px 14px 14px; border-top-width: 6px; background: #fffbf8;
  box-shadow: 0 25px 60px #0812209e, 0 0 0 5px #fff2;
}
.maple-registration__eyebrow { margin: 0 0 .6rem; color: #8e2537; font-size: .79rem; font-weight: 750; letter-spacing: .09em; text-transform: uppercase; }
.landing--maple .landing-hero__form .form-callout { border: 1px solid #efd2d7; background: #f9e9eb; }

.landing--maple .landing-section .section-head { margin-bottom: clamp(1.2rem, 3vw, 2.25rem); }
.landing--maple .landing-section .section-head h2 { text-wrap: initial; }
.landing--maple .landing-exchanges { background: #fffbf7; }
.maple-exchange-layout {
  display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(1.25rem, 4.8vw, 4rem); align-items: center;
}
.landing--maple .maple-exchange-layout .section-head { margin: 0; }
.maple-exchange-layout .exchanges {
  grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .55rem; padding: .65rem;
  background: #f0e4de; border-radius: 15px; border: 1px solid #ead8cf;
}
.maple-exchange-layout .chip { height: clamp(48px, 5.5vw, 65px); border-radius: 8px; padding-inline: .6rem; }
.maple-exchange-layout .chip img { height: clamp(15px, 2vw, 25px); object-fit: contain; }

.landing--maple .landing-steps {
  background: linear-gradient(90deg, #141c2ff2, #141c2fbf 59%, #141c2f70),
              #141c2f url("../images/home-trading-desk.webp") right center / cover no-repeat;
}
.maple-steps-layout {
  display: grid; grid-template-columns: minmax(0, .88fr) minmax(0, 1.12fr);
  gap: clamp(1.5rem, 5vw, 5rem); align-items: center;
}
.landing--maple .maple-steps-layout .section-head { margin: 0; }
.maple-steps-layout .section-head h2 { color: #fff; }
.maple-steps-layout .section-head p { color: #e6ebf9; }
.maple-steps-layout .section-head .eyebrow { color: #ffc2ca; }
.maple-steps-layout .landing-action { background: #ffccd3; color: #5b1b27; }
.maple-steps-layout .landing-action:hover { background: #ffe0e5; }
.maple-steps-layout .steps { grid-template-columns: minmax(0, 1fr); gap: .6rem; width: 100%; }
.maple-steps-layout .steps::before { display: none; }
.maple-steps-layout .steps > li { padding: .85rem 1rem .85rem 3.5rem; border: 1px solid #e5dad9; border-radius: 10px; background: #fffaf7; }
.maple-steps-layout .steps > li::before { left: .85rem; top: .9rem; width: 1.95rem; height: 1.95rem; box-shadow: none; }
.maple-steps-layout .steps h3 { margin-bottom: .25rem; }

.landing--maple .landing-benefits { background: #faf3ed; }
.maple-benefits-layout .bento { gap: .75rem; }
.maple-benefits-layout .bento > .card { border-radius: 12px; box-shadow: none; }
.maple-benefits-layout .card--ink {
  position: relative; overflow: hidden; isolation: isolate; min-height: clamp(260px, 35vw, 390px); justify-content: end;
  background: linear-gradient(0deg, #201724 5%, #201724e0 50%, #20172412),
    #201724 url("../images/home-strategy-lab.webp") 77% center / cover no-repeat;
}
.maple-benefits-layout .bento__ill { display: none; }
.maple-benefits-layout .card--ink .card-head h3, .maple-benefits-layout .card--ink p { color: #fff2f4; }

.landing--maple .landing-security {
  background: linear-gradient(90deg, #132132 4%, #132132df 41%, #13213299),
              #132132 url("../images/home-canadian-network.webp") right center / cover no-repeat;
}
.maple-security-layout {
  display: grid; grid-template-columns: minmax(0, .84fr) minmax(0, 1.16fr);
  align-items: center; gap: clamp(1.25rem, 4vw, 3.5rem);
}
.maple-security-layout .section-head h2 { color: #fff; }
.maple-security-layout .section-head p { color: #e6edf9; }
.maple-security-layout .btn--secondary { border-color: #efd3d9; color: #5a1927; background: #fff0f1; }
.maple-security-layout .btn--secondary:hover { background: #ffe1e6; }
.maple-security-layout .grid--five { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .55rem; }
.maple-security-layout .grid--five > .card { grid-column: auto; border-radius: 9px; padding: clamp(.85rem, 1.5vw, 1.3rem); }
.maple-security-layout .grid--five > .card:last-child { grid-column: 1 / -1; }

.landing--maple .landing-calc { background: #fff9f3; }
.maple-calc-layout { align-items: center; }
.maple-calc-layout .calc-side { border-left: 3px solid #a9243b; padding-left: clamp(.8rem, 2vw, 1.7rem); }
.maple-calc-layout .calc-wrap { padding: clamp(.85rem, 2.5vw, 1.75rem); border-radius: 16px; box-shadow: 0 12px 38px #4a221615; }
.maple-calc-layout .calc-note { padding-top: .75rem; border-top: 1px solid var(--landing-border); }

.landing--maple .landing-compare { background: #f1e5dc; }
.maple-compare-layout .table-wrap { border: 1px solid #dfcdc1; }
.maple-compare-layout th { background: #fff8f3; }
.maple-compare-layout th:nth-child(2) { background: #8e2435; color: #fff; }
.maple-compare-layout td:nth-child(2) { background: #fbebeb; }
.maple-compare-layout .table-note { text-align: left; }

.landing--maple .landing-reviews { background: #fffaf7; }
.maple-review-layout .reviews > .review {
  display: flex; flex-direction: column; padding: clamp(1rem, 1.8vw, 1.45rem);
  border: 1px solid #eeded6; border-top: 3px solid #ac3346; border-radius: 12px; box-shadow: 0 8px 20px #52281812;
}
.maple-review-layout .review__stats { margin-top: auto; }

.landing--maple .landing-company { background: #f8eee7; }
.maple-company-layout { align-items: stretch; gap: clamp(1.4rem, 4vw, 3.7rem); }
.maple-office__visual {
  min-height: 310px; border-radius: 14px 30px 14px 14px;
  background: linear-gradient(0deg, #10182740, transparent 50%),
              #132132 url("../images/home-canadian-landscape.webp") 77% center / cover no-repeat;
}
.maple-company-layout .office-card { border-inline-start: 3px solid #a9243b; }
.maple-company-layout .link-cards { gap: .45rem; }

.landing--maple .landing-register {
  background: linear-gradient(90deg, #251626ee, #251626d6 53%, #2516268c),
              #251626 url("../images/home-trading-desk.webp") right center / cover no-repeat;
}
.maple-register-layout { align-items: center; }
.maple-register-layout .eyebrow { color: #ffc2ca; }
.maple-register-layout ul { padding-left: 1.3rem; }
.maple-register-layout li { padding-block: .25rem; }
.maple-register__form { background: #fffaf7; border: 1px solid #f1d9d7; border-top: 5px solid #a9243b; border-radius: 15px; padding: clamp(1rem, 3vw, 1.8rem); }
.maple-register__form .form-block { padding: 0; background: none; box-shadow: none; border: 0; }
.maple-register__form .form-callout { margin-bottom: 0; }

.landing--maple .landing-faq { background: #fffaf7; }
.maple-faq-layout { align-items: start; gap: clamp(1.4rem, 5vw, 4rem); }
.maple-faq-layout > :first-child { border-top: 4px solid #a9243b; border-radius: 9px; padding: clamp(1rem, 3vw, 2rem); background: #f7e9e2; }
.maple-faq-layout .faq__item { border-radius: 9px; }

@media (max-width: 767px) {
  .landing--maple .landing-hero h1 { font-size: clamp(2rem, 7vw, 3.1rem); }
  .maple-exchange-layout, .maple-steps-layout, .maple-security-layout { grid-template-columns: minmax(0, 1fr); }
  .maple-office__visual { min-height: 200px; }
}
@media (max-width: 440px) {
  .maple-exchange-layout .exchanges { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .maple-security-layout .grid--five { grid-template-columns: minmax(0, 1fr); }
}
