/* ==========================================================================
   Apex Markets — custom styles (extends Bootstrap 5)
   1. Tokens          5. About              9. Getting started (steps)
   2. Base + nav      6. Features          10. FAQ
   3. Hero            7. Platform video    11. Footer
   4. Buttons         8. Accounts (plans)  12. Page loader
                                           13. Utilities + motion
   ========================================================================== */

/* ---------- 1. Tokens ---------------------------------------------------- */
:root {
  --bg:         #000000;   /* pure black */
  --bg-alt:     #080808;   /* off black  */
  --surface:    #0d0d0d;
  --surface-2:  #141414;
  --line:       rgba(255, 255, 255, .09);
  --line-soft:  rgba(255, 255, 255, .05);

  --txt:        #ededed;
  --txt-muted:  #9a9a9a;

  --green:      #19f2a0;
  --green-deep: #00c47c;
  --green-dim:  rgba(25, 242, 160, .12);
  --red:        #ff5d6e;

  --ring:   0 0 0 1px rgba(25, 242, 160, .35), 0 0 34px rgba(25, 242, 160, .16);

  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 22px;

  --nav-h: 76px;
}

/* ---------- 2. Base + navigation ---------------------------------------- */
body {
  background: var(--bg);
  color: var(--txt);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 1rem;
  line-height: 1.65;
  overflow-x: hidden;
}

h1, h2, h3, h4, h5, .plan-price {
  font-family: 'Sora', 'Inter', system-ui, sans-serif;
  letter-spacing: -.02em;
}

a { text-decoration: none; }

::selection { background: var(--green); color: #04140d; }

html { scroll-behavior: smooth; scroll-padding-top: var(--nav-h); }

.site-nav {
  /* Bootstrap's .navbar-expand-xl .nav-link rule outranks ours at xl, so the
     link spacing has to be set through its own variable. */
  --bs-navbar-nav-link-padding-x: 1rem;
  height: var(--nav-h);
  background: rgba(0, 0, 0, .9);
  border-bottom: 1px solid transparent;
  transition: background .3s ease, border-color .3s ease, height .3s ease;
}
/* A backdrop-filter makes .site-nav a containing block for its fixed children,
   which pins the slide-in menu inside the bar instead of the viewport. So the
   blur is kept for xl and up, where that menu is static markup in the navbar. */
@media (min-width: 1200px) {
  .site-nav {
    background: rgba(0, 0, 0, .72);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
  }
}
.site-nav.scrolled {
  background: rgba(0, 0, 0, .94);
  border-bottom-color: var(--line);
  box-shadow: 0 10px 40px rgba(0, 0, 0, .45);
}

.brand-logo  { height: 45px; width: auto; transition: height .3s ease; }
.site-nav.scrolled .brand-logo { height:40px; }

.site-nav .nav-link {
  color: var(--txt-muted);
  font-size: .95rem;
  font-weight: 500;
  padding: .5rem 1rem;
  position: relative;
  transition: color .2s ease;
}
.site-nav .nav-link:hover,
.site-nav .nav-link.active { color: #fff; }
.site-nav .nav-link::after {
  content: "";
  position: absolute;
  left: 1rem; right: 1rem; bottom: .25rem;
  height: 2px;
  background: var(--green);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform .25s ease;
}
.site-nav .nav-link.active::after { transform: scaleX(1); }

.navbar-toggler {
  border-color: var(--line);
  padding: .35rem .55rem;
}
.navbar-toggler:focus { box-shadow: var(--ring); }

/* Below xl the menu slides in from the right instead of dropping down. */
@media (max-width: 1199.98px) {
  .site-nav { height: auto; }
  .site-nav .offcanvas {
    width: min(320px, 85vw);
    background: var(--surface);
    border-left: 1px solid var(--line);
  }
  .site-nav .offcanvas-header { border-bottom: 1px solid var(--line); }
  .offcanvas-title {
    font-family: 'Sora', sans-serif;
    font-size: .78rem;
    font-weight: 600;
    letter-spacing: .16em;
    text-transform: uppercase;
    color: var(--txt-muted);
  }
  .site-nav .nav-link { padding: .7rem 0; }
  .site-nav .nav-link::after { display: none; }
  .nav-cta { flex-direction: column; margin-top: .75rem; }
  .nav-cta .btn { width: 100%; }
}
/* At xl the body has to fill the bar for the ms-auto on the list to bite. */
@media (min-width: 1200px) {
  .site-nav .offcanvas-body { flex-grow: 1; }
}

.site-nav .nav-link, .site-nav .btn { white-space: nowrap; }

/* ---------- 3. Hero ------------------------------------------------------ */
.hero {
  position: relative;
  padding: calc(var(--nav-h) + 4rem) 0 4.5rem;
  overflow: hidden;
  background: var(--bg);
}
/* banner-bg.png reads as a watermark: held far back, and masked so it fades
   out at the left edge behind the copy and at the bottom into the next section. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: url("../img/banner-bg.png") right center / cover no-repeat;
  opacity: .27;
  -webkit-mask-image:
    linear-gradient(90deg, transparent 4%, #000 46%),
    linear-gradient(180deg, #000 70%, transparent 100%);
  mask-image:
    linear-gradient(90deg, transparent 4%, #000 46%),
    linear-gradient(180deg, #000 70%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-composite: intersect;
  pointer-events: none;
}

.glow {
  position: absolute;
  border-radius: 50%;
  filter: blur(90px);
  pointer-events: none;
}
.glow-a { width: 420px; height: 420px; background: rgba(25, 242, 160, .11); top: -80px; right: -60px; }
.glow-b { width: 360px; height: 360px; background: rgba(255, 255, 255, .04);  bottom: -120px; left: -80px; }

.pill {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  font-size: .8rem;
  font-weight: 500;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(25, 242, 160, .25);
  border-radius: 999px;
  padding: .4rem .9rem;
}

.hero-title {
  font-size: clamp(2.2rem, 5.2vw, 3.8rem);
  font-weight: 700;
  line-height: 1.08;
  margin-bottom: 1.25rem;
}
.text-grad {
  background: linear-gradient(100deg, var(--green) 0%, #7fffd0 42%, #f2f2f2 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.hero-sub {
  color: var(--txt-muted);
  font-size: 1.08rem;
  max-width: 40rem;
  margin-bottom: 2rem;
}

/* Banner art */
.banner-art {
  position: relative;
  display: flex;
  justify-content: center;
}
/* A bloom behind the cut-out so it sits in the page instead of on top of it. */
.banner-art::before {
  content: "";
  position: absolute;
  top: 50%; left: 50%;
  translate: -50% -50%;
  width: min(420px, 88%);
  height: 72%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(25, 242, 160, .18), transparent 68%);
  filter: blur(46px);
  pointer-events: none;
}
/* Capped by height so a tall artwork cannot stretch the banner. */
.banner-img {
  position: relative;
  width: auto;
  max-width: 100%;
  height: auto;
  max-height: 500px;
  filter: drop-shadow(0 26px 58px rgba(0, 0, 0, .6));
  animation: bannerFloat 7s ease-in-out infinite;
}
@keyframes bannerFloat {
  50% { transform: translateY(-12px); }
}

/* ---------- 4. Buttons --------------------------------------------------- */
.btn {
  border-radius: 999px;
  font-weight: 600;
  padding: .65rem 1.5rem;
  transition: transform .2s ease, box-shadow .2s ease, background .2s ease, color .2s ease;
}
.btn:focus-visible { box-shadow: var(--ring); outline: none; }

.btn-apex {
  background: linear-gradient(120deg, var(--green), var(--green-deep));
  color: #04140d;
  border: none;
  box-shadow: 0 10px 30px rgba(25, 242, 160, .22);
}
.btn-apex:hover {
  color: #04140d;
  transform: translateY(-2px);
  box-shadow: 0 16px 40px rgba(25, 242, 160, .34);
}

.btn-ghost {
  color: var(--txt);
  background: rgba(255, 255, 255, .04);
  border: 1px solid var(--line);
}
.btn-ghost:hover {
  color: #fff;
  border-color: rgba(25, 242, 160, .5);
  background: rgba(25, 242, 160, .08);
  transform: translateY(-2px);
}

.hero .btn-lg { font-size: .95rem; padding: .7rem 1.5rem; }

/* ---------- Sections ----------------------------------------------------- */
.section { padding: 6rem 0; position: relative; }
.section-alt { background: var(--bg-alt); border-block: 1px solid var(--line-soft); }
.section-head { max-width: 46rem; margin: 0 auto 3rem; }

.eyebrow {
  display: inline-block;
  font-size: .75rem;
  font-weight: 600;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--green);
  margin-bottom: .75rem;
}
.section-title {
  font-size: clamp(1.75rem, 3.6vw, 2.6rem);
  font-weight: 700;
  margin-bottom: 1rem;
}
.section-sub {
  color: var(--txt-muted);
  font-size: 1.03rem;
  max-width: 42rem;
  margin-inline: auto;
  margin-bottom: 0;
}

/* ---------- 5. About ----------------------------------------------------- */
/* Labelled prose rather than another card grid — the sections below this one
   already carry the page's cards. */
.about-section { border-top: 1px solid var(--line-soft); }
.about-section .section-title { font-size: clamp(1.6rem, 2.7vw, 2.15rem); }
.about-section .section-sub { font-size: .98rem; margin-bottom: 1.75rem; }

.about-note {
  display: grid;
  gap: .5rem;
  padding: 1.5rem 0;
  border-top: 1px solid var(--line);
}
.about-note:last-child { border-bottom: 1px solid var(--line); }
.about-note p {
  color: var(--txt-muted);
  font-size: .97rem;
  margin: 0;
}
.about-label {
  font-size: .74rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--green);
}

@media (min-width: 576px) {
  .about-note {
    grid-template-columns: 9rem 1fr;
    gap: 1.5rem;
  }
  .about-label { padding-top: .15rem; }
}

/* ---------- 6. Features -------------------------------------------------- */
.feature {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.75rem;
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}
.feature:hover {
  transform: translateY(-4px);
  border-color: rgba(25, 242, 160, .35);
  box-shadow: 0 20px 50px rgba(0, 0, 0, .4);
}
.feature-ico {
  width: 48px; height: 48px;
  display: grid;
  place-items: center;
  border-radius: 14px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 1.3rem;
  margin-bottom: 1.1rem;
}
.feature h3 { font-size: 1.1rem; font-weight: 600; margin-bottom: .6rem; }
.feature p  { color: var(--txt-muted); font-size: .94rem; margin-bottom: 0; }

.mini {
  display: flex;
  gap: .85rem;
  align-items: flex-start;
  background: rgba(255, 255, 255, .03);
  border: 1px solid var(--line-soft);
  border-radius: var(--r-sm);
  padding: .9rem 1rem;
  height: 100%;
}
.mini i { color: var(--green); font-size: 1.15rem; margin-top: .1rem; }
.mini strong { display: block; font-size: .92rem; font-weight: 600; }
.mini span   { color: var(--txt-muted); font-size: .82rem; }

/* ---------- 7. Platform video -------------------------------------------- */
.platform-video {
 
  overflow: hidden;

 
}
.platform-video video {
  display: block;
  width: 100%;
  height: auto;
  aspect-ratio: 1300 / 800;
  object-fit: cover;
}

/* ---------- 8. Accounts (plans) ------------------------------------------ */
.plan {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 2rem 1.75rem;
  position: relative;
  transition: transform .25s ease, border-color .25s ease;
}
.plan:hover { transform: translateY(-4px); border-color: rgba(25, 242, 160, .3); }
.plan-featured {
  border-color: rgba(25, 242, 160, .45);
  background: linear-gradient(175deg, rgba(25, 242, 160, .08), var(--surface) 55%);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .45);
}
.plan-flag {
  position: absolute;
  top: -12px; left: 50%;
  transform: translateX(-50%);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #04140d;
  background: linear-gradient(120deg, var(--green), var(--green-deep));
  border-radius: 999px;
  padding: .25rem .85rem;
  white-space: nowrap;
}
.plan-name  { font-size: 1.2rem; font-weight: 700; margin-bottom: .35rem; }
.plan-desc  { color: var(--txt-muted); font-size: .9rem; min-height: 2.6rem; }
.plan-price {
  font-size: 2rem;
  font-weight: 700;
  color: #fff;
  margin: .5rem 0 1.25rem;
}
.plan-price span { font-size: .85rem; font-weight: 400; color: var(--txt-muted); font-family: 'Inter', sans-serif; }
.plan-list { margin-bottom: 1.75rem; }
.plan-list li {
  display: flex;
  gap: .6rem;
  align-items: flex-start;
  color: var(--txt-muted);
  font-size: .92rem;
  padding: .35rem 0;
}
.plan-list i { color: var(--green); margin-top: .2rem; }

/* ---------- 9. Getting started (steps) ----------------------------------- */
/* Numbered rail: a vertical timeline on phones, a connected row on desktop. */
.steps-section {
  background:
    radial-gradient(70% 90% at 50% 0%, rgba(25, 242, 160, .05), transparent 60%),
    var(--bg);
}

.steps-rail {
  --node: 66px;
  --step-gap: 2rem;
  display: grid;
  gap: 2.25rem;
  margin: 0;
  padding: 0;
}

.step {
  position: relative;
  display: grid;
  grid-template-columns: var(--node) 1fr;
  gap: 1.15rem;
  align-items: start;
}

/* Connector — runs down the rail on phones, across it on desktop. */
.step:not(:last-child)::after {
  content: "";
  position: absolute;
  left: calc(var(--node) / 2 - 1px);
  top: calc(var(--node) + 14px);
  bottom: -1.5rem;
  width: 2px;
  background: linear-gradient(180deg, rgba(25, 242, 160, .5), var(--line));
}

.step-node {
  position: relative;
  width: var(--node);
  height: var(--node);
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 30%, rgba(25, 242, 160, .18), var(--surface-2));
  border: 1px solid rgba(25, 242, 160, .35);
  color: var(--green);
  font-size: 1.4rem;
  transition: transform .25s ease, box-shadow .25s ease, border-color .25s ease;
}
.step:hover .step-node {
  transform: translateY(-3px);
  border-color: rgba(25, 242, 160, .7);
  box-shadow: 0 0 0 6px rgba(25, 242, 160, .07), 0 14px 34px rgba(0, 0, 0, .5);
}

.step-n {
  position: absolute;
  right: -6px; bottom: -6px;
  min-width: 26px;
  padding: .1rem .3rem;
  font-family: 'Sora', sans-serif;
  font-size: .72rem;
  font-weight: 800;
  line-height: 1.5;
  text-align: center;
  color: #04140d;
  background: linear-gradient(120deg, var(--green), var(--green-deep));
  border: 2px solid var(--bg);
  border-radius: 999px;
}

.step-body h3 {
  font-size: 1.12rem;
  font-weight: 600;
  margin: .2rem 0 .45rem;
}
.step-body p {
  color: var(--txt-muted);
  font-size: .94rem;
  margin-bottom: .85rem;
}
.step-meta {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .02em;
  color: var(--green);
  background: var(--green-dim);
  border: 1px solid rgba(25, 242, 160, .22);
  border-radius: 999px;
  padding: .28rem .7rem;
}

.steps-foot {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  margin-top: 3.5rem;
  padding: 1.5rem 1.75rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
}
.steps-foot-txt {
  color: var(--txt-muted);
  font-size: .96rem;
  max-width: 34rem;
  margin: 0;
}
.steps-foot-btns { display: flex; flex-wrap: wrap; gap: .75rem; }

@media (min-width: 768px) {
  .steps-rail {
    grid-template-columns: repeat(3, 1fr);
    gap: var(--step-gap);
  }
  .step {
    display: block;
    text-align: center;
  }
  .step-node { margin: 0 auto 1.25rem; }

  .step:not(:last-child)::after {
    left: calc(50% + var(--node) / 2 + 14px);
    width: calc(100% + var(--step-gap) - var(--node) - 28px);
    top: calc(var(--node) / 2 - 1px);
    bottom: auto;
    height: 2px;
    background: linear-gradient(90deg, rgba(25, 242, 160, .5), var(--line));
  }
}

@media (max-width: 575.98px) {
  .steps-foot { padding: 1.35rem 1.25rem; }
  .steps-foot-btns .btn { flex: 1 1 auto; }
}

/* ---------- 10. FAQ ------------------------------------------------------ */
/* Split FAQ: sticky intro on the left, hairline accordion on the right. */
.faq-aside { position: sticky; top: calc(var(--nav-h) + 2rem); }
.faq-aside .section-title { font-size: clamp(1.6rem, 2.7vw, 2.15rem); }
.faq-aside .section-sub { font-size: .98rem; margin-bottom: 2rem; }

.faq-help {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  padding: 1.4rem;
}
.faq-help-ico {
  width: 42px; height: 42px;
  display: grid;
  place-items: center;
  border-radius: 12px;
  background: var(--green-dim);
  color: var(--green);
  font-size: 1.15rem;
  margin-bottom: .9rem;
}
.faq-help-txt strong { display: block; font-size: .98rem; font-weight: 600; }
.faq-help-txt span   { display: block; color: var(--txt-muted); font-size: .86rem; margin-bottom: 1.1rem; }

.faq-accordion .accordion-item {
  background: transparent;
  border: 0;
  border-top: 1px solid var(--line);
  border-radius: 0 !important;
}
.faq-accordion .accordion-item:last-child { border-bottom: 1px solid var(--line); }

.faq-accordion .accordion-button {
  align-items: center;
  gap: 1.5rem;
  background: transparent;
  color: var(--txt);
  font-family: 'Sora', sans-serif;
  font-weight: 600;
  font-size: 1.02rem;
  line-height: 1.4;
  padding: 1.5rem 0;
  box-shadow: none;
  transition: color .2s ease;
}
.faq-accordion .accordion-button:hover { color: var(--green); }
.faq-accordion .accordion-button:not(.collapsed) {
  color: var(--green);
  background: transparent;
  padding-bottom: .9rem;
}
.faq-accordion .accordion-button:focus { box-shadow: none; }
.faq-accordion .accordion-button:focus-visible { outline: none; box-shadow: var(--ring); border-radius: var(--r-sm); }

/* Bootstrap's chevron swapped for a + that becomes a − when open. */
.faq-accordion .accordion-button::after {
  flex: 0 0 auto;
  width: 34px; height: 34px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 50%;
  transform: none;
  background-image:
    linear-gradient(var(--txt-muted), var(--txt-muted)),
    linear-gradient(var(--txt-muted), var(--txt-muted));
  background-size: 12px 1.5px, 1.5px 12px;
  background-position: center, center;
  background-repeat: no-repeat;
  transition: background-size .25s ease, border-color .25s ease, background-color .25s ease;
}
.faq-accordion .accordion-button:hover::after { border-color: rgba(25, 242, 160, .4); }
.faq-accordion .accordion-button:not(.collapsed)::after {
  border-color: rgba(25, 242, 160, .45);
  background-color: var(--green-dim);
  background-image:
    linear-gradient(var(--green), var(--green)),
    linear-gradient(var(--green), var(--green));
  background-size: 12px 1.5px, 1.5px 0;
}

.faq-accordion .accordion-body {
  color: var(--txt-muted);
  font-size: .95rem;
  padding: 0 4rem 1.75rem 0;
  max-width: 44rem;
}

@media (max-width: 991.98px) {
  .faq-aside { position: static; }
  .faq-accordion .accordion-body { padding-right: 2.5rem; }
}

/* ---------- 11. Footer --------------------------------------------------- */
.site-footer {
  background: var(--bg-alt);
  border-top: 1px solid var(--line);
  padding: 4rem 0 2rem;
}
.footer-logo  { height: 46px; width: auto; }
.footer-about {
  color: var(--txt-muted);
  font-size: .95rem;
  max-width: 34rem;
  margin: 0 auto 2.5rem;
}

.risk-note {
  border: 1px solid var(--line-soft);
  background: rgba(255, 255, 255, .02);
  border-radius: var(--r-md);
  padding: 1.1rem 1.25rem;
  color: var(--txt-muted);
  font-size: .82rem;
  line-height: 1.7;
  margin-top: 1rem;
}
.risk-note strong { color: #ffc45c; }

.footer-bottom {
  border-top: 1px solid var(--line-soft);
  margin-top: 1.75rem;
  padding-top: 1.5rem;
  color: var(--txt-muted);
  font-size: .85rem;
}

/* ---------- 12. Page loader ---------------------------------------------- */
.loader {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 1.75rem;
  background: var(--bg);
}
.loading { overflow: hidden; }

.loader-logo { width: 200px; max-width: 58vw; height: auto; }

.loader-bar {
  width: 200px;
  max-width: 58vw;
  height: 3px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .08);
  overflow: hidden;
}
.loader-fill {
  display: block;
  width: 40%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--green-deep));
  animation: loaderSlide 1.15s ease-in-out infinite;
}
@keyframes loaderSlide {
  from { transform: translateX(-110%); }
  to   { transform: translateX(360%); }
}

.loader.done {
  opacity: 0;
  visibility: hidden;
  transition: opacity .45s ease, visibility .45s;
}

/* A travelling bar is the wrong thing to show someone who asked for less
   motion — leave a static accent line instead. */
@media (prefers-reduced-motion: reduce) {
  .loader-fill { width: 100%; animation: none; }
}

/* ---------- 13. Utilities + motion --------------------------------------- */
.to-top {
  position: fixed;
  right: 20px; bottom: 20px;
  z-index: 1030;
  width: 46px; height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(25, 242, 160, .35);
  border-radius: 50%;
  background: rgba(10, 10, 10, .92);
  color: var(--green);
  opacity: 0;
  visibility: hidden;
  transform: translateY(12px);
  transition: all .25s ease;
}
.to-top.show { opacity: 1; visibility: visible; transform: translateY(0); }
.to-top:hover { background: var(--green); color: #04140d; }

[data-reveal] {
  opacity: 0;
  transform: translateY(26px);
  transition: opacity .7s ease, transform .7s ease;
}
[data-reveal].in { opacity: 1; transform: none; }

@media (max-width: 991.98px) {
  .hero { padding-top: calc(var(--nav-h) + 1.75rem); }
  /* Stacked, the copy runs the full width — drop the left fade. */
  .hero::before {
    -webkit-mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    mask-image: linear-gradient(180deg, #000 70%, transparent 100%);
    opacity: .13;
  }
  /* Stacked, the g-5 gutter leaves too much air above the artwork. */
  .hero .row { --bs-gutter-y: 1.25rem; }
  .banner-img { max-height: 340px; }
  .section { padding: 4.5rem 0; }
}

/* A g-5 row carries a -1.5rem side margin, wider than .container's padding, so
   wherever the container runs flush with the screen the row hangs past the edge.
   That happens below 768px and again at 992-1007px, where the lg container is
   960px wide. Capping the horizontal gutter there makes the page genuinely fit
   the viewport, rather than leaving body's overflow-x to hide the overhang. */
@media (max-width: 767.98px), (min-width: 992px) and (max-width: 1007.98px) {
  .row.g-5 { --bs-gutter-x: 1.5rem; }
}

@media (max-width: 575.98px) {
  :root { --nav-h: 54px; }
  body { font-size: .95rem; line-height: 1.6; }
  .container { padding-inline: 1rem; }

  .brand-logo { height: 32px; }
  .site-nav.scrolled .brand-logo { height: 30px; }

  .section { padding: 3.25rem 0; }
  .section-head { margin-bottom: 2.25rem; }
  .section-title { font-size: clamp(1.45rem, 6.4vw, 1.8rem); }
  .section-sub { font-size: .94rem; }

  .hero { padding: calc(var(--nav-h) + 1.25rem) 0 2.5rem; }
  .hero-title { font-size: clamp(1.85rem, 8.6vw, 2.3rem); }
  .hero-sub { font-size: .96rem; margin-bottom: 1.5rem; }
  .hero .btn-lg { font-size: .9rem; padding: .6rem 1.25rem; }
  .pill { font-size: .72rem; padding: .35rem .75rem; }
  .banner-img { max-height: 280px; }

  .plan { padding: 1.5rem 1.25rem; }
  .footer-bottom { justify-content: center; text-align: center; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  [data-reveal] { opacity: 1; transform: none; transition: none; }
  * { animation-duration: .001ms !important; transition-duration: .001ms !important; }
}
