/*
  G-Trading normal content-section standard
  Hero and CTA components intentionally do not use these selectors.
*/
:root {
  --section-eyebrow-teal: #63dadd;
  --section-heading-white: #eef7f4;
  --section-heading-gold: #ead49a;
  --section-number-gold: rgba(196, 161, 91, 0.7);
}

.content-section-heading,
.comparison-direct-heading,
.tool-page-intro {
  position: relative;
}

.content-section-heading > .eyebrow,
.content-section-heading > div > .eyebrow,
.comparison-direct-heading > .eyebrow,
.tool-page-intro > .eyebrow,
.module-story-section > .container > .tool-page-intro > .eyebrow,
.module-story-section .tool-page-intro > .eyebrow {
  margin: 0 0 1.15rem;
  color: var(--section-eyebrow-teal) !important;
  font-size: 0.68rem;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: 0.2em;
  text-transform: uppercase;
}

.content-section-heading > .section-index,
.content-section-heading > div > .section-index {
  display: none !important;
}

.content-section-heading h1,
.content-section-heading h2,
.comparison-direct-heading h1,
.tool-page-intro h2,
.module-copy h2 {
  margin-top: 0;
  max-width: min(100%, 58rem) !important;
  color: var(--section-heading-white) !important;
  font-size: clamp(2.4rem, 5.4vw, 5rem) !important;
  font-weight: 400 !important;
  letter-spacing: -0.045em;
  line-height: 0.98;
}

.content-section-heading h1 em,
.content-section-heading h2 em,
.comparison-direct-heading h1 em,
.tool-page-intro h2 em,
.module-copy h2 em {
  color: var(--section-heading-gold) !important;
  font-style: normal;
  font-weight: 400 !important;
}

/* The product-detail modules are an allowed numbered module list. */
.module-copy > .module-index {
  margin: 0 0 1rem;
  color: var(--section-number-gold) !important;
  font-size: 0.67rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
}

.module-copy > .module-index::first-letter {
  color: var(--section-number-gold);
}

/* A tool label is context, not a running product number. */
.product-plate-top .product-value-label {
  margin: 0;
  color: var(--section-eyebrow-teal) !important;
  font-size: 0.64rem;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* Valid chronological and process markers use a restrained gold. */
.team-timeline-year,
.benchmark-flow-index,
.benchmark-flow-step-index,
.module-flow-step-index,
.included-grid[data-numbered-modules] article > span {
  color: var(--section-number-gold) !important;
}

/* Normal content title blocks always use the same left-to-right hierarchy. */
body[data-page="pricing"] .access-intro,
body[data-page="pricing"] .included-section > .container > header,
body[data-page="pricing"] .pricing-tool-alternative > .container > header,
body[data-page="technology"] .split-heading,
body[data-page="technology"] .document-heading,
body[data-page="team1"] .team-section-heading {
  display: block !important;
  width: 100%;
  max-width: 58rem;
}

body[data-page="technology"] .split-heading.content-section-heading > div,
body[data-page="technology"] .document-heading.content-section-heading > div,
body[data-page="pricing"] .access-intro.content-section-heading > div {
  max-width: min(100%, 58rem) !important;
}

body[data-page="pricing"] .access-intro > .eyebrow,
body[data-page="pricing"] .access-intro > div > .eyebrow,
body[data-page="pricing"] .included-section > .container > header > .eyebrow,
body[data-page="pricing"] .pricing-tool-alternative > .container > header .eyebrow,
body[data-page="technology"] .split-heading > div > .eyebrow,
body[data-page="technology"] .document-heading > div > .eyebrow,
body[data-page="team1"] .team-section-heading > .eyebrow {
  color: var(--section-eyebrow-teal) !important;
  font-weight: 500;
}

body[data-page="pricing"] .access-intro h2,
body[data-page="pricing"] .included-section > .container > header h2,
body[data-page="pricing"] .pricing-tool-alternative > .container > header h2,
body[data-page="technology"] .split-heading h2,
body[data-page="technology"] .document-heading h2,
body[data-page="team1"] .team-section-heading h2 {
  color: var(--section-heading-white) !important;
  font-weight: 400 !important;
  letter-spacing: -0.045em;
}

body[data-page="pricing"] .access-intro h2 em,
body[data-page="pricing"] .included-section > .container > header h2 em,
body[data-page="pricing"] .pricing-tool-alternative > .container > header h2 em,
body[data-page="technology"] .split-heading h2 em,
body[data-page="technology"] .document-heading h2 em,
body[data-page="team1"] .team-section-heading h2 em {
  color: var(--section-heading-gold) !important;
  font-style: normal;
  font-weight: 400 !important;
}

/* Non-sequential card and tool numbering must not surface visually. */
body[data-page="home"] .value-points > article > span,
body[data-page="home"] .product-plate-top .section-index,
body[data-page="technology"] .premium-trust-grid > article > span,
body[data-page="pricing"] .included-grid:not([data-numbered-modules]) > article > span,
body[data-page="features"] .tool-column-index {
  display: none !important;
}

@media (max-width: 760px) {
  .content-section-heading > .eyebrow,
  .content-section-heading > div > .eyebrow,
  .comparison-direct-heading > .eyebrow,
  .tool-page-intro > .eyebrow {
    margin-bottom: 0.85rem;
    font-size: 0.62rem;
  }

  .content-section-heading h1,
  .content-section-heading h2,
  .comparison-direct-heading h1,
  .tool-page-intro h2,
  .module-copy h2 {
    max-width: 100% !important;
    font-size: clamp(2.25rem, 8vw, 3.4rem) !important;
    letter-spacing: -0.04em;
  }
}

@media (max-width: 760px) {
  body[data-page="team1"] .team-section-heading h2 {
    font-size: clamp(1.85rem, 6.45vw, 2.65rem) !important;
  }
}

/* Contextual widths retain the same hierarchy while keeping every normal header to two lines. */
#products .split-heading.content-section-heading > div {
  grid-column: 1 / -1;
  width: 100% !important;
  max-width: min(100%, 58rem) !important;
}

#products .split-heading.content-section-heading h2 {
  width: 100% !important;
}

.canvas-story.content-section-heading h2,
body[data-page="technology"] .document-heading.content-section-heading h2,
.tool-page-intro.content-section-heading h2,
.module-copy h2 {
  font-size: clamp(2.2rem, 3.35vw, 3.1rem) !important;
}

body[data-page="team1"] .team-section-heading h2 {
  font-size: clamp(2.4rem, 4.7vw, 4.2rem) !important;
}

@media (max-width: 760px) {
  #products .split-heading.content-section-heading h2,
  body[data-page="pricing"] .included-section > .container > header h2,
  body[data-page="pricing"] .pricing-tool-alternative > .container > header h2 {
    font-size: clamp(1.85rem, 6.35vw, 2.45rem) !important;
  }

  .canvas-story.content-section-heading h2,
  body[data-page="technology"] .document-heading.content-section-heading h2,
  .tool-page-intro.content-section-heading h2,
  .module-copy h2 {
    font-size: clamp(1.8rem, 6vw, 2.3rem) !important;
  }

  body[data-page="team1"] .team-section-heading h2 {
    font-size: clamp(1.72rem, 5.8vw, 2.25rem) !important;
  }
}

/* Reused ambient Lottie: strictly decorative and behind section content. */
.included-section,
.team-founders {
  position: relative;
  isolation: isolate;
}

.included-section {
  overflow: hidden;
}

.included-section > .container,
.team-founders > .container {
  position: relative;
  z-index: 1;
}

.section-ambient-lottie-layer {
  position: absolute;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  opacity: 0.32;
  mask-image: radial-gradient(ellipse at 68% 48%, #000 0%, rgba(0, 0, 0, .86) 39%, transparent 72%);
  -webkit-mask-image: radial-gradient(ellipse at 68% 48%, #000 0%, rgba(0, 0, 0, .86) 39%, transparent 72%);
}

.section-ambient-lottie {
  width: 100%;
  height: 100%;
  opacity: 0;
  transform: scale(1.08);
  transition: opacity 1.1s ease;
}

.section-ambient-lottie.is-ready {
  opacity: 1;
}

.pricing-included-lottie-layer {
  inset: -52% -9% -9% 35%;
}

.team-founders-lottie-layer {
  inset: -44% -10% -1% 33%;
  opacity: 0.28;
}

@media (max-width: 767px), (prefers-reduced-motion: reduce) {
  .section-ambient-lottie-layer {
    display: none;
  }
}
