/* ===========================================================
   trading.css — Avail Trading page sections
   -----------------------------------------------------------
   Merged from the avail-deposits build (github.com/rochelle-alfonso/
   avail-deposits), which was authored as a standalone folder carrying its own
   copy of the site's chrome. Everything the site already supplies was dropped
   rather than copied, so the two cannot drift apart:

     @font-face                       -> variables.css has both Delight faces
     reset                            -> base.css
     .btn/.btn-primary/.btn-secondary -> common.css (verified identical)
     .btn-light                       -> common.css (verified identical)
     .nav-* / dropdowns / .mobile-menu / body.menu-open -> nav.css
     .site-footer*                    -> footer.css
     .tabs / .tab / .flow* / .configurator* / .container -> css/flow.css
     the chain marquee                -> common.css .chains (site colour sprite)
     --content-inset / --gutter remaps -> variables.css + common.css own these;
                                          the site's 80/40/20 scale governs

   What is left is this page's own sections: hero, stats, features, metrics,
   configure, CTA and FAQ. Every selector is namespaced under .page-trading, so
   nothing here can reach another page.

   Load order: AFTER variables.css, base.css, nav.css, footer.css, common.css
   and flow.css — this file overrides the last two.

   Two deliberate deviations from the upstream stylesheet:
   1. --page is pinned to the site's 1440px cap instead of the upstream
      clamp(1355px, 100vw - 20px, 1760px). Every inner width upstream is a
      fraction of --page, so at 1440 both agree and the composition is
      unchanged; above 1440 the page stays inside the site rails instead of
      growing to 1760px.
   2. Headings fold onto the site's type scale (Delight 500 / 36px) rather than
      the upstream's 51px display h2.
   =========================================================== */

/* ---- HERO ---- */
.page-trading .deposit-hero {
  position: relative;
  background: var(--white);
  overflow: hidden;
}
.page-trading .deposit-hero::before {
  content: '';
  position: absolute; inset: 0;
  background-image: url('../assets/trading/hero-bg.webp');
  background-size: cover;
  background-position: right center;
  background-repeat: no-repeat;
  pointer-events: none;
}
.page-trading .deposit-hero > * { position: relative; z-index: 1; }
.page-trading .deposit-hero__inner {
  overflow: hidden;             /* clips the visual at the frame edge, as in Figma */
  display: grid;
  grid-template-columns: minmax(0, 547fr) minmax(0, 685fr);
  align-items: center;
  column-gap: 3.975%;           /* 51px across the 1283px content box */
  max-width: var(--page); margin-inline: auto;
  padding: 0 0 0 var(--page-inset);
  min-height: 573px;
}
.page-trading .deposit-hero__copy { padding-block: 40px; }
.page-trading .deposit-hero__title {
  font-family: var(--display); font-weight: 500;
  font-size: clamp(34px, 4.723vw, 74px);
  line-height: 1.2; letter-spacing: -1.68px;
  text-transform: capitalize; color: var(--black);
}
.page-trading .deposit-hero__lede {
  margin-top: 24px;
  font-size: clamp(17px, 1.48vw, 20px); line-height: 1.6; color: var(--text-lg);
}
.page-trading .deposit-hero__actions { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 56px; }
.page-trading .deposit-hero__actions .btn-primary { width: 152px; }
.page-trading .deposit-hero__visual {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 685 / 593;
  justify-self: end;
  width: 100%;
}
.page-trading .deposit-hero__art {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
}
.page-trading .deposit-hero__rowhint, .page-trading .deposit-hero__radio, .page-trading .deposit-hero__cta, .page-trading .deposit-hero__cursor { position: absolute; pointer-events: none; }
.page-trading .deposit-hero__rowhint {
  left: 14.16%; width: 44.92%; height: 8.55%;
  top: 41.63%;
  border-radius: 1.1cqw;
  background: rgba(45, 105, 235, .07);
  opacity: 0;
  animation: hero-hint-move 8s infinite cubic-bezier(.45, 0, .2, 1),
             hero-hint-fade 8s infinite;
}
.page-trading .deposit-hero__radio {
  left: 15.99%; top: 44.78%;
  width: 1.947cqw; height: 1.947cqw;
  border-radius: 50%;
  background: radial-gradient(circle, #fff 0 26%, #2d69eb 28% 100%);
  box-shadow: 0 0 0 .34cqw rgba(45, 105, 235, .16);
  opacity: 0;
  animation: hero-radio-move 8s infinite cubic-bezier(.45, 0, .2, 1),
             hero-hint-fade 8s infinite;
}
.page-trading .deposit-hero__cta {
  left: 14.16%; top: 78.75%; width: 44.92%; height: 6.47%;
  border-radius: 1.17cqw;
  overflow: hidden;
  background: linear-gradient(100deg, rgba(255, 255, 255, .09), rgba(255, 255, 255, 0) 55%);
}
.page-trading .deposit-hero__cta i {
  position: absolute; inset: -20% auto; left: 0;
  width: 34%;
  background: linear-gradient(90deg,
              rgba(255, 255, 255, 0), rgba(255, 255, 255, .42), rgba(255, 255, 255, 0));
  transform: translateX(-160%) skewX(-18deg);
  animation: hero-cta-sweep 8s infinite linear;
}
.page-trading .deposit-hero__cursor {
  left: 17.2%; top: 46.60%;
  width: 1.55cqw;
  filter: drop-shadow(0 .16cqw .26cqw rgba(16, 26, 51, .3));
  animation: hero-cursor 8s infinite cubic-bezier(.45, 0, .2, 1);
}
@keyframes hero-cursor {
  0%,   19.4% { top: 46.60%; left: 17.2%; }
  25%,  44.4% { top: 55.34%; left: 17.6%; }
  50%,  69.4% { top: 64.22%; left: 17.3%; }
  75%,  94.4% { top: 72.96%; left: 17.5%; }
  100%        { top: 46.60%; left: 17.2%; }
}
@keyframes hero-hint-move {
  0%,   19.4% { top: 41.63%; }
  25%,  44.4% { top: 50.37%; }
  50%,  69.4% { top: 59.25%; }
  75%,  94.4% { top: 67.99%; }
  100%        { top: 41.63%; }
}
@keyframes hero-radio-move {
  0%,   19.4% { top: 44.78%; }
  25%,  44.4% { top: 53.52%; }
  50%,  69.4% { top: 62.40%; }
  75%,  94.4% { top: 71.14%; }
  100%        { top: 44.78%; }
}
@keyframes hero-hint-fade {
  0%,     17%   { opacity: 1; }
  19.4%,  25%   { opacity: 0; }
  27.4%,  42%   { opacity: 1; }
  44.4%,  50%   { opacity: 0; }
  52.4%,  67%   { opacity: 1; }
  69.4%,  75%   { opacity: 0; }
  77.4%,  92%   { opacity: 1; }
  94.4%,  100%  { opacity: 0; }
}
@keyframes hero-cta-sweep {
  0%,   70%  { transform: translateX(-160%) skewX(-18deg); }
  95%, 100%  { transform: translateX(440%)  skewX(-18deg); }
}
@media (prefers-reduced-motion: reduce) {
.page-trading .deposit-hero__rowhint, .page-trading .deposit-hero__radio, .page-trading .deposit-hero__cursor, .page-trading .deposit-hero__cta i { animation: none; }
.page-trading .deposit-hero__cursor, .page-trading .deposit-hero__cta i { display: none; }}

/* ---- STATS ---- */
.page-trading .deposit-stats { background: var(--dark-bg); color: #fff; padding: 96px 0 100px; }
.page-trading .deposit-stats__head { max-width: calc(var(--page) * 0.89225); margin-inline: auto; text-align: center; }
.page-trading .deposit-stats__lede {
  margin-top: 24px;
  font-family: var(--sans); font-size: clamp(17px, 1.48vw, 20px); line-height: 1.6;
  color: var(--dark-text);
}
.page-trading .deposit-stats__grid {
  display: grid; grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 23px; justify-content: center;
  max-width: calc(var(--page) * 0.80664); margin: 64px auto 0;   /* 1093px */
}
.page-trading .deposit-stat {
  position: relative; overflow: hidden;
  background: var(--dark-card); border-radius: var(--r-md);
  min-height: 153px;
  padding: 36px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  text-align: center;
}
.page-trading .deposit-stat::before {
  content: '';
  position: absolute; inset: 0;
  background: url('../assets/trading/stat-noise.webp') center / cover no-repeat;
  opacity: .3; pointer-events: none;
}
.page-trading .deposit-stat > * { position: relative; }
.page-trading .deposit-stat__value { font-family: var(--display); font-weight: 500; font-size: clamp(36px, 3.542vw, 55px); line-height: 1; }
.page-trading .deposit-stat__label {
  font-family: var(--sans); font-size: 16px; line-height: 24px;
  min-height: 48px;
  color: var(--dark-card-text); text-transform: capitalize;
}
.page-trading .deposit-ready {
  display: grid;
  grid-template-columns: minmax(0, 517fr) minmax(0, 656fr);
  gap: 38px; align-items: center;
  max-width: var(--page); margin: 195px auto 0;
  padding-inline: var(--page-inset);
}
.page-trading .deposit-ready__title { font-family: var(--display); font-size: clamp(30px, 3.100vw, 48px); line-height: 1.2; color: #fff; }
.page-trading .deposit-ready__body { margin-top: 18px; font-size: 18px; line-height: 1.3; color: var(--dark-text); }
.page-trading .deposit-ready__body p + p { margin-top: 23.4px; }
.page-trading .diagram {
  position: relative;
  container-type: inline-size;
  aspect-ratio: 656 / 369;
  background: #fff; border-radius: var(--r-md); overflow: hidden;
  width: 100%;
}
.page-trading .diagram > img.diagram__base { width: 100%; height: 100%; object-fit: cover; }
.page-trading .diagram__pin {
  position: absolute; left: 4.573%; width: 2.439%; aspect-ratio: 1;
  object-fit: cover;
}
.page-trading .diagram__pin[data-row="1"] { top: 28.99%; }
.page-trading .diagram__pin[data-row="2"] { top: 41.46%; border: .5px solid var(--frame); border-radius: 50%; }
.page-trading .diagram__pin[data-row="3"] { top: 53.66%; border-radius: 50%; }
.page-trading .diagram__pin[data-row="4"] { top: 66.12%; }

/* ---- FEATURES ---- */
.page-trading .section-light { background: var(--white); padding: 100px 0; }
.page-trading .feature-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 24px;
  max-width: calc(var(--page) * 0.79705); margin: 40px auto 0;   /* 1080px */
}
.page-trading .fcard {
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  overflow: hidden;
  box-shadow: 0 0 6.7px rgba(46, 46, 46, .07);
  display: flex; flex-direction: column;
  transition: box-shadow .2s ease, transform .2s ease;
}
.page-trading .fcard:hover { box-shadow: 0 4px 18px rgba(46, 46, 46, .10); transform: translateY(-2px); }
.page-trading .fcard__art { border-bottom: 1px solid var(--border); background: #fff; }
.page-trading .fcard__art img { width: 100%; height: auto; aspect-ratio: 526 / 185; object-fit: cover; }
.page-trading .fcard__body { padding: 24px 32px 32px; }
.page-trading .fcard__title {
  font-weight: 500; font-size: clamp(20px, 1.8vw, 24.1px); line-height: 32px;
  letter-spacing: -.78px; color: var(--ink-card);
}
.page-trading .fcard__text { margin-top: 14px; font-family: var(--sans); font-size: 16px; line-height: 24px; color: var(--card-body); }

/* ---- METRICS ---- */
.page-trading .metrics { background: var(--white); padding: 100px 0; }
.page-trading .metrics__grid {
  display: flex; flex-wrap: wrap; justify-content: center;
  gap: 13px 14px;
  max-width: calc(var(--page) * 0.88192); margin: 50px auto 0;   /* 1195px */
}
.page-trading .mcard {
  flex: 0 0 calc((100% - 3 * 14px) / 4);   /* four across, three column gaps */
  min-width: 0;
  background: #fff; border: 1px solid var(--border); border-radius: var(--r-md);
  box-shadow: 0 0 6.7px rgba(46, 46, 46, .07);
  padding: 19px 20px 24px;
  min-height: 241px;
  transition: box-shadow .2s ease, transform .2s ease;
}
.page-trading .mcard:hover { box-shadow: 0 4px 18px rgba(46, 46, 46, .10); transform: translateY(-2px); }
.page-trading .mcard__icon {
  width: 60px; height: 60px; border-radius: 10.909px;
  background: var(--icon-tile);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.page-trading .mcard__icon img { width: 32px; height: 32px; }
.page-trading .mcard__icon img[data-flip] { transform: scaleX(-1); }
.page-trading .mcard__title { font-weight: 500; font-size: 24px; line-height: 30px; color: var(--black); }
.page-trading .mcard__text { margin-top: 8px; font-size: 15px; line-height: 21px; color: var(--text-md); }

/* ---- CONFIGURE ---- */
.page-trading .configure { background: var(--dark-bg); padding: 100px 0 0; overflow: hidden; }
.page-trading .configure__head {
  display: flex; align-items: flex-end; justify-content: space-between; gap: 40px;
  width: min(100% - var(--gutter) * 2, calc(var(--page) * 0.89373));   /* 1211px */
  margin-inline: auto;
}
.page-trading .configure__copy { max-width: 722px; }
.page-trading .configure__lede { margin-top: 18px; max-width: 671px; font-size: 18px; line-height: 1.3; color: var(--dark-text); }
.page-trading .configure__actions { display: flex; gap: 20px; flex-shrink: 0; flex-wrap: wrap; }
.page-trading .configure__panel {
  width: min(100% - var(--gutter) * 2, calc(var(--page) * 0.89373));   /* 1211px */
  margin: 40px auto 0;
}
.page-trading .configure__panel img { width: 100%; height: auto; border-radius: var(--r-sm); }

/* ---- CTA ---- */
.page-trading .cta {
  position: relative;
  margin-top: 0;
  aspect-ratio: 1355 / 655;
  min-height: 380px;
  display: grid; place-items: center;
  overflow: hidden;
}
.page-trading .cta__bg {
  position: absolute; left: 0; right: 0; top: 15.1%; bottom: 0;
  width: 100%; height: 92.5%; object-fit: cover;
}
.page-trading .cta__mask {
  position: absolute; left: 0; top: 0; width: 100%; height: 89.2%;
  object-fit: fill;
}
.page-trading .cta__inner {
  position: relative; z-index: 2;
  max-width: calc(var(--page) * 0.52694); padding: 40px 24px;   /* 714px */
  display: flex; flex-direction: column; align-items: center; gap: 40px;
  text-align: center;
}
.page-trading .cta__title { font-family: var(--display); font-size: clamp(28px, 3.542vw, 55px); line-height: 1.05; color: #fff; max-width: 620px; margin-inline: auto; }
.page-trading .cta__text { margin: 12px auto 0; max-width: 529px; font-size: 18px; line-height: 1.4; color: var(--dark-text); }
.page-trading .cta__actions { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.page-trading .cta__actions .btn { text-transform: none; }

/* ---- FAQ ---- */
.page-trading .faq { background: var(--white); padding: 100px 0; }
.page-trading .faq__list { max-width: calc(var(--page) * 0.88192); margin: 40px auto 0; }
.page-trading .faq__item { border-bottom: .909px solid var(--border); }
.page-trading .faq__q {
  width: 100%;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 22px 0; text-align: left;
  font-family: var(--sans); font-weight: 500; font-size: 18px; letter-spacing: -.36px; color: var(--black);
}
.page-trading .faq__icon {
  flex: 0 0 auto;
  font-size: 22px; line-height: 22px; font-weight: 500;
  transition: transform .22s ease;
}
.page-trading .faq__item[data-open="true"] .faq__icon { transform: rotate(45deg); }
.page-trading .faq__a {
  display: grid; grid-template-rows: 0fr;
  transition: grid-template-rows .26s ease;
}
.page-trading .faq__item[data-open="true"] .faq__a { grid-template-rows: 1fr; }
.page-trading .faq__a > div { overflow: hidden; }
.page-trading .faq__a p {
  padding: 0 60px 26px 0;
  max-width: 900px;
  font-size: 16px; line-height: 26px; color: var(--text-md);
}


/* ---- RESPONSIVE ---- */
@media (max-width: 1200px) {
.page-trading .deposit-hero__inner { gap: 32px; }
.page-trading .deposit-stats__grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.page-trading .deposit-ready { gap: 32px; }
.page-trading .mcard { flex-basis: calc((100% - 14px) / 2); }}
@media (max-width: 1000px) {
.page-trading .deposit-hero__inner {
    grid-template-columns: minmax(0, 1fr);
    gap: 40px; padding: 0;
    min-height: 0;
  }
.page-trading .deposit-hero__copy { padding: 8px var(--page-inset) 0; max-width: 620px; }
.page-trading .deposit-hero__actions { margin-top: 36px; }
.page-trading .deposit-hero__visual { justify-self: stretch; width: auto; max-width: none; margin-inline: var(--page-inset); }
.page-trading .deposit-hero__title { letter-spacing: -1px; }
.page-trading .deposit-stats { padding: 72px 0 80px; }
.page-trading .deposit-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 560px; margin-inline: auto; }
.page-trading .deposit-ready { grid-template-columns: minmax(0, 1fr); margin-top: 96px; gap: 32px; }
.page-trading .section-light, .page-trading .metrics, .page-trading .faq { padding: 72px 0; }
.page-trading .configure { padding-top: 72px; }
.page-trading .configure__panel { margin-bottom: 64px; }
.page-trading .feature-grid { grid-template-columns: minmax(0, 1fr); gap: 20px; max-width: 620px; }
.page-trading .configure__head { flex-direction: column; align-items: flex-start; gap: 24px; }
.page-trading .cta { margin-top: 0; padding: 56px 0; }
.page-trading .cta__bg { top: 0; height: 100%; }
.page-trading .cta__mask { display: none; }
.page-trading .cta__inner {
    z-index: 3;
    background: var(--dark-bg);
    padding: 56px 32px;
    border-radius: var(--r-md);
    margin-inline: var(--page-inset);
  }}
@media (max-width: 640px) {
.page-trading .deposit-hero__title { font-size: 34px; line-height: 1.15; }
.page-trading .deposit-ready__title, .page-trading .cta__title { font-size: 28px; line-height: 1.18; }
.page-trading .fcard__title, .page-trading .mcard__title { font-size: 19px; line-height: 1.35; }
.page-trading .deposit-hero__lede, .page-trading .deposit-stats__lede, .page-trading .deposit-ready__body, .page-trading .configure__lede, .page-trading .cta__text, .page-trading .fcard__text { font-size: 16px; line-height: 1.55; }
.page-trading .faq__q { font-size: 16px; line-height: 1.4; }
.page-trading .faq__a p, .page-trading .mcard__text { font-size: 15px; line-height: 1.55; }
.page-trading .deposit-hero__actions, .page-trading .configure__actions, .page-trading .cta__actions { gap: 12px; }
.page-trading .deposit-hero__actions .btn, .page-trading .configure__actions .btn, .page-trading .cta__actions .btn { flex: 1 1 auto; min-width: 0; }
.page-trading .deposit-hero__lede { margin-top: 18px; }
.page-trading .deposit-hero__actions .btn-primary { width: auto; }
.page-trading .deposit-hero__visual { margin-left: var(--page-inset); }
.page-trading .deposit-stats { padding: 56px 0 64px; }
.page-trading .deposit-stats__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; max-width: none; }
.page-trading .deposit-stat { padding: 24px 14px; min-height: 132px; gap: 8px; }
.page-trading .deposit-stat__value { font-size: 32px; }
.page-trading .deposit-stat__label { font-size: 14px; line-height: 20px; min-height: 40px; }
.page-trading .fcard__body { padding: 20px 20px 24px; }
.page-trading .fcard__title { letter-spacing: -.4px; }
.page-trading .metrics__grid { max-width: 420px; }
.page-trading .mcard { flex-basis: 100%; min-height: 0; }
.page-trading .configure__actions { width: 100%; }
.page-trading .cta { aspect-ratio: auto; min-height: 0; padding: 40px 0; }
.page-trading .cta__inner { padding: 48px 24px; gap: 28px; }
.page-trading .faq__q { gap: 16px; padding: 18px 0; }
.page-trading .faq__a p { padding-right: 0; }}
@media (prefers-reduced-motion: reduce) {

  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

/* ---------- On-dark buttons ----------
   .btn-light already exists in common.css (added for the atomic CTA) and is
   used as-is. .btn-ghost does NOT exist anywhere on the site, so the upstream
   definition is carried here — without it the "Docs" and "Talk to Sales"
   buttons render as unstyled text. */
.page-trading .btn-ghost {
  background: var(--dark-bg);
  color: #fff;
  border: 2px solid #fff;
  text-transform: capitalize;
}
.page-trading .btn-light:hover,
.page-trading .btn-ghost:hover { opacity: .88; }
/* these two read as written — no capitalize inherited from .btn-ghost */
.page-trading .cta__actions .btn { text-transform: none; }

/* ---------- Page tokens ----------
   Declared last in the file on purpose: custom properties resolve on the
   element, not in source order, so this block works from here — and putting
   it last keeps the heading overrides below ahead of the per-section rules
   above (equal specificity, so source order decides).
   Names already in variables.css are deliberately NOT repeated: --white,
   --black, --heading, --grey, --border, --nav-link, --btn-dark, --btn-dark-text,
   --display, --sans, --content-inset, --gutter, --section-frame. Only the
   page-local ones live here. */
.page-trading {
  --page: var(--max-width);
  /* The site keeps --content-inset at 72px at every width (it only steps
     --gutter), but the upstream hero inset steps down with the viewport:
     72 -> 48 -> 32 -> 20. Page-local so the site token is untouched. */
  --page-inset: var(--content-inset);

  --ink-card:       #141415;
  --ink-strong:     #151514;
  --text-lg:        #6b6b6a;   /* 20px hero paragraph */
  --text-md:        #565654;   /* 18/15px body */
  --text-muted:     #858585;
  --card-body:      rgba(20, 20, 21, .7);

  --dark-bg:        #121212;
  --dark-card:      #232323;
  --dark-text:      #9c9c9c;
  --dark-card-text: rgba(255, 255, 255, .7);

  --surface-tab:    #f5f5f5;
  --icon-tile:      #f7fbff;
  --frame:          #ebebeb;   /* the .diagram pin hairline */

  --r-sm: 4px;
  --r-md: 8px;
  --r-lg: 12px;
}

/* ---------- Headings ----------
   The upstream page set its own display scale (h2 at 51px Delight 400). Folded
   onto the site's .section-title voice — Delight 500 at 36px — so this page
   reads at the weight of the rest of the site. The two display moments
   (ready-to-trade, closing CTA) follow it down. */
.page-trading .h2,
.page-trading .deposit-ready__title,
.page-trading .cta__title {
  font-family: var(--display);
  font-weight: 500;
  font-size: 36px;
  line-height: 1.4;
  letter-spacing: normal;
}
/* Centring came from the upstream's own .section__title / .section__title--left,
   which are dropped as chrome. The site's .section-title is centred, so these
   follow: centred by default, left where the design sets it left (the FAQ
   heading and the configure head, which sits opposite its button row). */
.page-trading .h2 { text-align: center; }
.page-trading .configure__head .h2,
.page-trading .faq .h2 { text-align: left; }

/* The upstream closing-CTA heading ran at its own display size; brought down
   with the rest of the page's headings, stepping to the site's mobile 28px. */
.page-trading .cta__title { font-size: clamp(28px, 2.6vw, 36px); }
/* the two dark sections carry their headings on --dark-bg */
.page-trading .deposit-stats .h2,
.page-trading .configure .h2,
.page-trading .cta__title { color: #fff; }

/* Page inset steps — declared after the token block above on purpose. Equal
   specificity means source order decides, and the base declaration in
   .page-trading would otherwise win. The upstream hero inset steps 72 -> 48 ->
   32 -> 20 as the viewport narrows; the site's --content-inset does not (it
   stays 72px throughout), so this page carries its own. */
@media (max-width: 1200px) { .page-trading { --page-inset: 48px; } }
@media (max-width: 1000px) { .page-trading { --page-inset: 32px; } }
@media (max-width: 640px)  { .page-trading { --page-inset: 20px; } }

/* ---------- Logo strip (foot of the hero) ----------
   The chain logos are the monochrome lockup from the upstream repo, one SVG per
   chain, drawn in --black. They are NOT the colour sprite on the rest of the
   site (assets/chain-logos-color.svg) — this page's design is monochrome here.

   Spacing sits on the items rather than as a flex gap: the track is two
   identical halves and loops on translateX(-50%), so a gap would put half of one
   at the seam and the loop would visibly jump. */
.page-trading .trust { padding: 40px 0; }
.page-trading .trust__marquee {
  overflow: hidden;
  max-width: 1223px;
  margin-inline: auto;
  -webkit-mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
          mask-image: linear-gradient(to right, transparent, #000 6%, #000 94%, transparent);
}
.page-trading .trust__row {
  display: flex; align-items: center;
  width: max-content;
  animation: trust-scroll 45s linear infinite;
}
.page-trading .trust__marquee:hover .trust__row { animation-play-state: paused; }
@keyframes trust-scroll {
  from { transform: translateX(0); }
  to   { transform: translateX(-50%); }
}
.page-trading .trust__item { flex: 0 0 auto; display: flex; align-items: center; padding-inline: 24px; }
.page-trading .trust__item img { height: 32px; width: auto; display: block; }

@media (prefers-reduced-motion: reduce) {
  .page-trading .trust__row { animation: none; width: auto; flex-wrap: wrap; justify-content: center; }
  .page-trading .trust__item[aria-hidden="true"] { display: none; }
}

/* Tighter band and smaller logos as the page narrows. The strip stays a marquee
   at every width — nine logos never fit a phone, so wrapping would just stack
   three ragged rows. */
@media (max-width: 1000px) {
  .page-trading .trust { padding: 32px 0 40px; }
}
@media (max-width: 640px) {
  .page-trading .trust__item { padding-inline: 16px; }
  .page-trading .trust__item img { height: 26px; }
}

/* ---------- Hero shell ----------
   The .deposit-hero sits inside .landing so the nav, hero and rails are one
   block, as on every other page. That means the site's own hero backdrop has
   to stand down: .landing__bg is absolute inset:0 over the whole landing, so
   its dither art (and the pixel grid over it) would show behind the nav and
   around the hero, which brings its own hero-bg.webp plate.
   The 900px cap is also lifted — the upstream hero is content-sized and grows
   with the viewport, per the design. */
.page-trading .landing__bg { display: none; }
.page-trading .landing { max-height: none; min-height: 0; }
@media (max-width: 460px) {
  .page-trading .landing { height: auto; min-height: 0; }
}

/* ---- Prediction-markets page ----
   prediction-markets.html carries BOTH body classes: page-trading (this
   stylesheet's sections are shared verbatim with that page, as in the source
   repo) and page-prediction-markets (hooks for the page-specific bits below,
   and for the .page-prediction-markets tokens already in common.css). */
.page-prediction-markets .deposit-hero__film {
  position: absolute; inset: 0;
  width: 100%; height: 100%;
  object-fit: cover;
  display: block;
}
/* Same diagram artwork has "Trading app" baked in — mask it with a white plate
   carrying this page's label. Sits inside the dashed orbit arcs (they cross
   this row at 68.1-70.6% and 87.9-90.4%) and stops short of "One destination
   chain" (begins 63.6%). */
.page-prediction-markets .diagram__label {
  position: absolute;
  left: 72.2%; width: 14.4%;
  top: 59.2%; height: 3.9%;
  display: flex; align-items: center; justify-content: center;
  background: #fff;
  font-family: var(--sans);
  font-weight: 700;
  font-size: 1.36cqw;
  line-height: 1;
  letter-spacing: -.01em;
  color: #141723;
  white-space: nowrap;
}
