/* Extracted from faq.html inline <style> block 1 */
#trl-desktop-cta,#trl-mobile-cta{visibility:hidden}


/* Extracted from faq.html inline <style> block 2 */
html,
      body {
        background-color: #030712;
      }

      /* Generic fade-up animation used across the page */
      .fade-up {
        opacity: 0;
        transform: translateY(16px);
        transition: opacity 0.6s ease, transform 0.6s ease;
      }

      .fade-up.visible {
        opacity: 1;
        transform: translateY(0);
      }

      .hover-raise {
        transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease,
          background-color 0.25s ease;
      }

      .hover-raise:hover {
        transform: translateY(-4px);
      }

      .faq-item {
        transition: transform 0.25s ease;
      }

      .faq-toggle {
        transition: transform 0.25s ease, background-color 0.25s ease, border-color 0.25s ease;
      }

      .faq-toggle:hover {
        transform: translateY(-2px);
      }

      .faq-chevron {
        transition: transform 0.3s ease;
      }

      .faq-item.open .faq-chevron {
        transform: rotate(180deg);
      }

      .faq-content {
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(4px);
        transition: max-height 0.3s ease, opacity 0.3s ease, transform 0.3s ease;
      }

      .faq-item.open .faq-content {
        max-height: 400px;
        opacity: 1;
        transform: translateY(0);
      }

      /* Button helper */
      .btn-primary-gradient {
        @apply bg-gradient-to-r from-blue-500 to-cyan-500 hover:from-blue-400 hover:to-cyan-400 text-white border-0 shadow-lg rounded-xl;
      }
        /* ---- Imported header/footer + hero background from  ---- */

    html {
      scroll-behavior: smooth;
    }

    body {
      background-color: #030712;
      color: #e5e7eb;
      font-family: system-ui, -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", sans-serif;
    }
    /* Sticky header background & scrolled state */
    #site-header {
      background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.90));
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
      border-bottom: 1px solid rgba(30,64,175,0.45);
    }

    #site-header.header-scrolled {
      background: radial-gradient(circle at top, rgba(15,23,42,0.98), rgba(15,23,42,0.96));
      box-shadow: 0 18px 45px rgba(15,23,42,0.95);
      border-bottom-color: rgba(37,99,235,0.7);
    }


    /* Generic scroll animations */
    .js-animate {
      opacity: 0;
      transform: translateY(30px);
      transition: opacity 0.8s ease, transform 0.8s ease;
    }

    .js-animate[data-animate="left"] {
      transform: translateX(-40px);
    }

    .js-animate[data-animate="right"] {
      transform: translateX(40px);
    }

    .js-animate.animate-visible {
      opacity: 1;
      transform: translateX(0) translateY(0);
    }

    /* Hero orbs */
    .hero-orb {
      position: absolute;
      border-radius: 9999px;
    }

    .hero-orb-1 {
      top: -10rem;
      left: -10rem;
      width: 600px;
      height: 600px;
      background: radial-gradient(circle, rgba(59,130,246,0.15) 0%, transparent 70%);
      animation: hero-orb-1 15s ease-in-out infinite;
    }

    .hero-orb-2 {
      top: 25%;
      right: -5rem;
      width: 500px;
      height: 500px;
      background: radial-gradient(circle, rgba(139,92,246,0.12) 0%, transparent 70%);
      animation: hero-orb-2 12s ease-in-out infinite;
    }

    .hero-orb-3 {
      bottom: -10rem;
      left: 33%;
      width: 700px;
      height: 700px;
      background: radial-gradient(circle, rgba(6,182,212,0.1) 0%, transparent 70%);
      animation: hero-orb-3 18s ease-in-out infinite;
    }

    @keyframes hero-orb-1 {
      0% { transform: translate(0,0) scale(1); }
      50% { transform: translate(50px,30px) scale(1.2); }
      100% { transform: translate(0,0) scale(1); }
    }

    @keyframes hero-orb-2 {
      0% { transform: translate(0,0) scale(1.2); }
      50% { transform: translate(-30px,50px) scale(1); }
      100% { transform: translate(0,0) scale(1.2); }
    }

    @keyframes hero-orb-3 {
      0% { transform: translate(0,0) scale(1); }
      50% { transform: translate(-40px,0) scale(1.3); }
      100% { transform: translate(0,0) scale(1); }
    }

    /* Hero glowing lines */
    .hero-lines svg {
      width: 100%;
      height: 100%;
    }

    .hero-line {
      stroke-width: 1;
      fill: none;
      stroke-dasharray: 2000;
      stroke-dashoffset: 2000;
      animation: draw-line 2s ease-in-out forwards;
    }

    .hero-line.second {
      animation-delay: 0.3s;
    }

    @keyframes draw-line {
      to { stroke-dashoffset: 0; }
    }

    /* Feature cards details expansion */
    .feature-card .feature-details {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height 0.35s ease, opacity 0.35s ease;
    }

    .feature-card.active .feature-details {
      max-height: 360px;
      opacity: 1;
    }

    .feature-card {
      position: relative;
    }


    .feature-card.active {
      transform: translateY(-4px);
    }

    .feature-card.active[data-color="blue"] {
      box-shadow: 0 0 0 1px rgba(59,130,246,0.8), 0 0 40px rgba(59,130,246,0.7);
    }

    .feature-card.active[data-color="cyan"] {
      box-shadow: 0 0 0 1px rgba(34,211,238,0.8), 0 0 40px rgba(34,211,238,0.7);
    }

    .feature-card.active[data-color="purple"] {
      box-shadow: 0 0 0 1px rgba(168,85,247,0.8), 0 0 40px rgba(168,85,247,0.7);
    }

    .feature-card.active[data-color="indigo"] {
      box-shadow: 0 0 0 1px rgba(79,70,229,0.8), 0 0 40px rgba(79,70,229,0.7);
    }

    .feature-card.active[data-color="pink"] {
      box-shadow: 0 0 0 1px rgba(236,72,153,0.8), 0 0 40px rgba(236,72,153,0.7);
    }

    .feature-card.active[data-color="rose"] {
      box-shadow: 0 0 0 1px rgba(244,63,94,0.8), 0 0 40px rgba(244,63,94,0.7);
    }
    
    .feature-card.active[data-color="emerald"] {
      box-shadow: 0 0 0 1px rgba(16,185,129,0.85), 0 0 40px rgba(16,185,129,0.75);
    }

    /* FAQ accordion */
    .faq-item .faq-content {
      max-height: 0;
      opacity: 0;
      overflow: hidden;
      transition: max-height 0.3s ease, opacity 0.3s ease;
    }

    .faq-item.open .faq-content {
      max-height: 400px;
      opacity: 1;
    }

    /* Progress bar animation */
    .js-progress {
      width: 0%;
    }

    .js-progress.animate-progress {
      animation: load-progress 5s linear infinite;
    }

    @keyframes load-progress {
      from { width: 0%; }
      to { width: 100%; }
    }


    /* Generic floating animations for background orbs */
    .float-slow {
      animation: float-slow 18s ease-in-out infinite;
    }

    .float-slower {
      animation: float-slower 26s ease-in-out infinite;
    }

    @keyframes float-slow {
      0% { transform: translate3d(0, 0, 0); }
      50% { transform: translate3d(0, -10px, 0); }
      100% { transform: translate3d(0, 0, 0); }
    }

    @keyframes float-slower {
      0% { transform: translate3d(0, 0, 0); }
      50% { transform: translate3d(10px, 10px, 0); }
      100% { transform: translate3d(0, 0, 0); }
    }

    /* Subtle moving grid for lower sections */
    .lower-grid {
      animation: grid-move 40s linear infinite;
    }

    @keyframes grid-move {
      0% {
        background-position: 0 0, 0 0;
      }
      50% {
        background-position: 40px 40px, -40px 40px;
      }
      100% {
        background-position: 0 0, 0 0;
      }
    }
    /* Markets ambient orbs */
    .markets-orb-1 {
      position: absolute;
      top: 0;
      left: 25%;
      width: 24rem;
      height: 24rem;
      border-radius: 9999px;
      background-color: rgba(59,130,246,0.07);
      filter: blur(100px);
      animation: float-orb-1 20s ease-in-out infinite;
    }

    .markets-orb-2 {
      position: absolute;
      bottom: 0;
      right: 25%;
      width: 24rem;
      height: 24rem;
      border-radius: 9999px;
      background-color: rgba(147,51,234,0.06);
      filter: blur(100px);
      animation: float-orb-2 25s ease-in-out infinite;
    }

    @keyframes float-orb-1 {
      0% { transform: translate(0,0); }
      50% { transform: translate(100px,-50px); }
      100% { transform: translate(0,0); }
    }

    @keyframes float-orb-2 {
      0% { transform: translate(0,0); }
      50% { transform: translate(-100px,50px); }
      100% { transform: translate(0,0); }
    }

    /* Large glowing orb in Features */
    .features-orb {
      position: absolute;
      top: 50%;
      left: 50%;
      width: 1000px;
      height: 1000px;
      border-radius: 9999px;
      transform: translate(-50%, -50%);
      background: radial-gradient(circle at center, rgba(59,130,246,0.35), rgba(139,92,246,0.05));
      filter: blur(40px);
      opacity: 0.03;
      animation: features-orb 10s ease-in-out infinite;
    }

    @keyframes features-orb {
      0% { transform: translate(-50%, -50%) scale(1); opacity: 0.03; }
      50% { transform: translate(-50%, -50%) scale(1.1); opacity: 0.06; }
      100% { transform: translate(-50%, -50%) scale(1); opacity: 0.03; }
    }

    /* How it works glowing orb */
    .how-orb {
      position: absolute;
      top: 50%;
      left: 0;
      width: 600px;
      height: 600px;
      transform: translate(-50%, -50%);
      border-radius: 9999px;
      background-color: rgba(59,130,246,0.4);
      filter: blur(96px);
      opacity: 0.03;
      animation: how-orb 8s ease-in-out infinite;
    }

    @keyframes how-orb {
      0%,100% { opacity: 0.03; }
      50% { opacity: 0.06; }
    }

    /* Subtle hover transitions for buttons */
    .btn-primary {
      transition: transform 0.2s ease, box-shadow 0.2s ease, background-position 0.2s ease;
    }

    .btn-primary:hover {
      transform: translateY(-1px);
      box-shadow: 0 20px 45px rgba(59,130,246,0.45);
    }

    .btn-outline {
      transition: background-color 0.2s ease, border-color 0.2s ease, transform 0.2s ease;
    }

    .btn-outline:hover {
      transform: translateY(-1px);
    }

    .shadow-soft-blue {
      box-shadow: 0 25px 60px rgba(59,130,246,0.35);
    }

    /* Footer social hover */
    .social-btn {
      transition: transform 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, color 0.2s ease;
    }

    .social-btn:hover {
      transform: translateY(-1px) scale(1.05);
    }
  
    /* === PATCH: underline + hover details + pricing glow === */
    .underline-hero {
      transform-origin: center;
      animation: underline-wipe 12s cubic-bezier(0.22, 1, 0.36, 1) infinite;
    }
    @keyframes underline-wipe {
      0% { transform: scaleX(0); opacity: 0; }
      10% { transform: scaleX(1); opacity: 1; }
      90% { transform: scaleX(1); opacity: 1; }
      100% { transform: scaleX(0); opacity: 0; }
    }
    /* Hover to reveal feature bullets */
    .feature-card:hover .feature-details {
      max-height: 360px;
      opacity: 1;
    }
    .feature-card.active:hover { transform: translateY(-6px) scale(1.03); }
    .feature-card[data-color="blue"]:hover {
      box-shadow: 0 0 0 1px rgba(59,130,246,0.8), 0 0 40px rgba(59,130,246,0.7);
    }
    .feature-card[data-color="cyan"]:hover {
      box-shadow: 0 0 0 1px rgba(34,211,238,0.8), 0 0 40px rgba(34,211,238,0.7);
    }
    .feature-card[data-color="purple"]:hover {
      box-shadow: 0 0 0 1px rgba(168,85,247,0.8), 0 0 40px rgba(168,85,247,0.7);
    }
    .feature-card[data-color="indigo"]:hover {
      box-shadow: 0 0 0 1px rgba(79,70,229,0.8), 0 0 40px rgba(79,70,229,0.7);
    }
    .feature-card[data-color="pink"]:hover {
      box-shadow: 0 0 0 1px rgba(236,72,153,0.8), 0 0 40px rgba(236,72,153,0.7);
    }
    .feature-card[data-color="rose"]:hover {
      box-shadow: 0 0 0 1px rgba(244,63,94,0.8), 0 0 40px rgba(244,63,94,0.7);
    }
    .feature-card[data-color="emerald"]:hover {
      box-shadow: 0 0 0 1px rgba(16,185,129,0.85), 0 0 40px rgba(16,185,129,0.75);
    }
    /* Pricing "Pro" glow pulse */
    .glow-pulse { animation: glowPulse 4.5s ease-in-out infinite; }
    @keyframes glowPulse {
      0% { opacity: .25; filter: blur(16px) saturate(1); }
      50% { opacity: .6; filter: blur(24px) saturate(1.25); }
      100% { opacity: .25; filter: blur(16px) saturate(1); }
    }

    /* Pricing toggle + yearly highlight */
    #billing-toggle {
      transform-origin: center;
      background: radial-gradient(circle at top, rgba(15,23,42,1), rgba(15,23,42,0.96));
      box-shadow: 0 14px 35px rgba(15,23,42,0.9);
      transition: box-shadow 0.25s ease, transform 0.25s ease, background 0.25s ease, border-color 0.25s ease;
      position: relative;
      overflow: hidden;
    }
    #billing-toggle::before {
      content: "";
      position: absolute;
      inset: 2px;
      border-radius: 9999px;
      background: radial-gradient(circle at left, rgba(59,130,246,0.25), transparent 60%);
      opacity: 0.9;
      transform: translateX(0);
      transition: transform 0.3s ease, opacity 0.3s ease, background 0.3s ease;
      pointer-events: none;
    }
    #billing-toggle .billing-label-month,
    #billing-toggle .billing-label-year {
      position: relative;
      z-index: 1;
      transition: color 0.25s ease, transform 0.25s ease, opacity 0.25s ease;
    }
    #billing-toggle.is-yearly {
      background-image: linear-gradient(to right, rgba(37,99,235,0.9), rgba(56,189,248,0.95));
      border-color: rgba(191,219,254,0.95);
      box-shadow: 0 20px 55px rgba(37,99,235,0.65);
      color: #eff6ff;
      transform: translateY(-1px);
    }
    #billing-toggle.is-yearly::before {
      background: radial-gradient(circle at right, rgba(16,185,129,0.35), transparent 60%);
      transform: translateX(4px);
    }
    #billing-toggle.is-yearly .billing-label-month {
      opacity: 0.7;
      transform: translateX(-2px);
    }
    #billing-toggle.is-yearly .billing-label-year {
      text-transform: uppercase;
      letter-spacing: 0.08em;
      transform: translateX(2px);
    }

    .price-change {
      animation: priceChange 0.35s ease-out;
    }
    @keyframes priceChange {
      0% { transform: scale(0.9); opacity: 0; }
      60% { transform: scale(1.06); opacity: 1; }
      100% { transform: scale(1); opacity: 1; }
    }

    .pricing-card.pricing-yearly {
      box-shadow: 0 30px 80px rgba(59,130,246,0.4);
      border-color: rgba(59,130,246,0.95);
      transform: translateY(-6px) scale(1.02);
      background-image: radial-gradient(circle at top, rgba(59,130,246,0.18), transparent 55%);
      animation: pricingYearlyGlow 0.6s ease-out;
    }
    @keyframes pricingYearlyGlow {
      0% {
        box-shadow: 0 0 0 rgba(59,130,246,0);
        transform: translateY(-2px) scale(1);
      }
      60% {
        box-shadow: 0 35px 95px rgba(59,130,246,0.5);
        transform: translateY(-7px) scale(1.03);
      }
      100% {
        box-shadow: 0 30px 80px rgba(59,130,246,0.4);
        transform: translateY(-6px) scale(1.02);
      }
    }

    #pricing.pricing-yearly-mode {
      animation: pricingModeFlash 0.5s ease-out;
    }
    @keyframes pricingModeFlash {
      0% {
        box-shadow: 0 0 0 rgba(59,130,246,0);
      }
      40% {
        box-shadow: 0 0 80px rgba(59,130,246,0.35);
      }
      100% {
        box-shadow: 0 0 0 rgba(59,130,246,0);
      }
    }


    /* Pricing plan glows: blue for Pro, purple for Prop */
    .pricing-glow {
      position: absolute;
      inset: -0.75rem;
      border-radius: 1.75rem;
      filter: blur(28px);
      opacity: 0;
      transition: opacity 0.35s ease, transform 0.35s ease;
      pointer-events: none;
    }
    .pricing-glow-pro {
      background: radial-gradient(circle at top, rgba(59,130,246,0.55), transparent 65%);
    }
    .pricing-glow-prop {
      background: radial-gradient(circle at top, rgba(147,51,234,0.55), transparent 65%);
    }
    /* Monthly: only Prop glows (purple). Yearly: Pro (blue) and Prop (purple) */
    #pricing .pricing-glow-prop {
      opacity: 0.55;
    }
    #pricing.pricing-yearly-mode .pricing-glow-pro {
      opacity: 0.55;
    }

    /* Disable extra Prop hover overlay in yearly mode */
    #pricing.pricing-yearly-mode .prop-hover-overlay {
      opacity: 0 !important;
    }

    /* Yearly mode specific glows per plan */
    #pricing .pricing-card.pricing-yearly.pro-yearly {
      box-shadow: 0 30px 80px rgba(59,130,246,0.55);
      border-color: rgba(59,130,246,0.98);
      transform: translateY(-6px) scale(1.02);
      background-image: radial-gradient(circle at top, rgba(59,130,246,0.24), transparent 55%);
      animation: pricingYearlyGlowBlue 0.6s ease-out;
    }
    #pricing .pricing-card.pricing-yearly.prop-yearly {
      box-shadow: 0 30px 80px rgba(147,51,234,0.55);
      border-color: rgba(147,51,234,0.98);
      transform: translateY(-6px) scale(1.02);
      background-image: radial-gradient(circle at top, rgba(147,51,234,0.24), transparent 55%);
      animation: pricingYearlyGlowPurple 0.6s ease-out;
    }
    @keyframes pricingYearlyGlowBlue {
      0% {
        box-shadow: 0 0 0 rgba(59,130,246,0);
        transform: translateY(-2px) scale(1);
      }
      60% {
        box-shadow: 0 35px 95px rgba(59,130,246,0.55);
        transform: translateY(-7px) scale(1.03);
      }
      100% {
        box-shadow: 0 30px 80px rgba(59,130,246,0.5);
        transform: translateY(-6px) scale(1.02);
      }
    }
    @keyframes pricingYearlyGlowPurple {
      0% {
        box-shadow: 0 0 0 rgba(147,51,234,0);
        transform: translateY(-2px) scale(1);
      }
      60% {
        box-shadow: 0 35px 95px rgba(147,51,234,0.55);
        transform: translateY(-7px) scale(1.03);
      }
      100% {
        box-shadow: 0 30px 80px rgba(147,51,234,0.5);
        transform: translateY(-6px) scale(1.02);
      }
    }

    /* Hover pop-up for yearly Pro & Prop */
    #pricing .pricing-card.pricing-yearly.pro-yearly:hover {
      transform: translateY(-10px) scale(1.04);
      box-shadow: 0 40px 110px rgba(59,130,246,0.65);
    }
    #pricing .pricing-card.pricing-yearly.prop-yearly:hover {
      transform: translateY(-10px) scale(1.04);
    }
/* Trust badges + generic hover glow */
    .trust-badge {
      position: relative;
      flex: 0 0 auto;
      min-width: 170px;
      transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease, background-color 0.25s ease;
      will-change: transform, box-shadow;
      transform-origin: center;
    }
    .trust-badge.animate-visible {
      /* keep scroll fade-in from .js-animate, but no extra color animation */
      animation: none;
    }
    .trust-badges-viewport {
      overflow: hidden;
      mask-image: linear-gradient(to right, transparent, black 10%, black 90%, transparent);
    }
    .trust-badge-marquee {
      display: flex;
      align-items: stretch;
      gap: 1rem;
      width: max-content;
      will-change: transform;
      animation: trustBadgeMarquee 38s linear infinite;
    }
    @keyframes trustBadgeMarquee {
      0% { transform: translateX(0); }
      100% { transform: translateX(-50%); }
    }
@keyframes badgeIdle {
      0%, 100% {
        background-color: rgba(15,23,42,0.92);
        border-color: rgba(15,23,42,0.85);
      }
      50% {
        background-color: rgba(15,23,42,0.98);
        border-color: rgba(51,65,85,0.8);
      }
    }
    @keyframes badgeIntro {
      0% {
        opacity: 0;
        transform: translateY(12px) scale(0.96);
      }
      60% {
        opacity: 1;
        transform: translateY(-2px) scale(1.02);
      }
      100% {
        opacity: 1;
        transform: translateY(0) scale(1);
      }
    }
    .hover-glow {
      transition: box-shadow 0.25s ease, transform 0.25s ease;
    }
    .hover-glow:hover {
      box-shadow: 0 20px 50px rgba(59,130,246,0.35);
      transform: translateY(-3px);
    }
    .faq-trigger-glow {
      transition: box-shadow 0.25s ease, transform 0.25s ease, background-color 0.25s ease;
    }
    .faq-trigger-glow:hover {
      transform: translateY(-1px);
      background-color: transparent;
      box-shadow: none;
      border-radius: 0.75rem;
    }



    
    /* Page transition overlay */
    .page-transition-overlay {
      position: fixed;
      inset: 0;
      background-color: #030712;
      opacity: 0;
      pointer-events: none;
      transition: opacity 170ms cubic-bezier(0.22, 1, 0.36, 1);
      z-index: 9999;
    }

    .page-transition-overlay.is-active {
      opacity: 1;
      pointer-events: auto;
    }


/* Extracted from faq.html inline <style> block 3 */
/* --- TRL PATCH: prevent BFCache snapshot content flash on mobile Back (hide restored snapshot) */
  html.trl-bfcache-hide body { opacity: 0 !important; }
  html.trl-bfcache-hide .page-transition-overlay { opacity: 1 !important; pointer-events: auto !important; }


/* Extracted from faq.html inline style attributes */
.trl-inline-style-bd82ac7b {background: radial-gradient(circle, rgba(59,130,246,0.08) 0%, transparent 70%); animation: hero-orb-2 15s ease-in-out infinite;}
.trl-inline-style-87f0083f {background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%); animation: hero-orb-1 12s ease-in-out infinite;}


/* === TRL FAQ homepage accessibility settings patch === */
/* Trading Journal-style mobile side menu auth area */
#mobile-menu .trl-mobile-panel {
  background: rgb(15 23 42);
  border-color: rgb(30 41 59);
}

#mobile-menu #trl-mobile-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

#mobile-menu #trl-mobile-cta > a {
  width: 100%;
}

#mobile-menu .trl-mobile-settings {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* === WCAG 2.2 AA accessibility patch === */
.trl-sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

.trl-skip-link {
  position: fixed;
  top: 0.75rem;
  left: 0.75rem;
  z-index: 100000;
  width: 1px;
  height: 1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
  border-radius: 0.75rem;
  background: #020617;
  color: #ffffff !important;
  font-weight: 800;
}

.trl-skip-link:focus,
.trl-skip-link:focus-visible {
  width: auto;
  height: auto;
  padding: 0.75rem 1rem;
  overflow: visible;
  clip: auto;
  clip-path: none;
  border: 2px solid #67e8f9;
  box-shadow: 0 18px 45px rgba(6, 182, 212, 0.35);
  outline: 3px solid #facc15;
  outline-offset: 3px;
}

/* User-triggered and OS-triggered reduced motion. */
html.trl-motion-paused *,
html.trl-motion-paused *::before,
html.trl-motion-paused *::after {
  animation-play-state: paused !important;
  scroll-behavior: auto !important;
}

html.trl-motion-paused .js-progress,
html.trl-motion-paused .trust-badge-marquee,
html.trl-motion-paused .hero-line,
html.trl-motion-paused .underline-hero,
html.trl-motion-paused .hero-orb,
html.trl-motion-paused .markets-orb-1,
html.trl-motion-paused .markets-orb-2,
html.trl-motion-paused .features-orb,
html.trl-motion-paused .how-orb {
  animation: none !important;
  transform: none !important;
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto !important;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
    scroll-behavior: auto !important;
  }

  .js-animate,
  .fade,
  .fade-up,
  .feature-row {
    opacity: 1 !important;
    transform: none !important;
    transition: none !important;
  }

  .trust-badge-marquee,
  .hero-line,
  .underline-hero,
  .hero-orb,
  .markets-orb-1,
  .markets-orb-2,
  .features-orb,
  .how-orb,
  .js-progress {
    animation: none !important;
    transform: none !important;
  }
}

/* === Global accessibility settings control === */
.trl-a11y-settings-button {
  width: 2.5rem;
  height: 2.5rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 0;
  margin-left: 0.75rem;
  border: 0;
  border-radius: 0.75rem;
  background: transparent;
  color: #ffffff;
  box-shadow: none;
  box-sizing: border-box;
  overflow: visible;
  transition: background-color 160ms ease, color 160ms ease;
}

.trl-a11y-settings-button:hover,
.trl-a11y-settings-button:active {
  background: rgba(255, 255, 255, 0.05);
  border-color: transparent;
  color: #ffffff;
  transform: none;
  box-shadow: none;
}


#trl-desktop-cta.trl-a11y-nav-host {
  position: relative;
}

@media (min-width: 1024px) {
  #trl-desktop-cta.trl-a11y-nav-host .trl-a11y-settings-button {
    position: absolute;
    right: calc(100% + 0.5rem);
    left: auto;
    top: 50%;
    margin-left: 0;
    transform: translateY(-50%);
  }

  #trl-desktop-cta.trl-a11y-nav-host .trl-a11y-settings-button:hover,
  #trl-desktop-cta.trl-a11y-nav-host .trl-a11y-settings-button:active {
    transform: translateY(-50%);
  }
}

@media (max-width: 1023px) {
  .trl-a11y-settings-button {
    margin-left: auto;
    margin-right: 0.25rem;
    position: relative;
    z-index: 55;
  }
}

.trl-a11y-pause-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.22rem;
  width: 1rem;
  height: 1rem;
}

.trl-a11y-pause-icon span {
  display: block;
  width: 0.22rem;
  height: 0.88rem;
  border-radius: 999px;
  background: #ffffff;
}

.trl-a11y-settings-button:focus-visible {
  outline: 2px solid #67e8f9 !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

.trl-a11y-settings-panel {
  position: fixed;
  top: 5.75rem;
  right: max(1rem, calc((100vw - 80rem) / 2 + 1rem));
  z-index: 2500;
  width: min(24rem, calc(100vw - 2rem));
  color: #ffffff;
}

.trl-a11y-settings-panel[hidden] {
  display: none !important;
}

.trl-a11y-panel-inner {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 1.25rem;
  background: rgba(2, 6, 23, 0.92);
  backdrop-filter: blur(14px);
  box-shadow: 0 22px 80px rgba(0, 0, 0, 0.55);
  padding: 1rem;
}

.trl-a11y-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
}

.trl-a11y-panel-header h2 {
  margin: 0;
  font-size: 1rem;
  line-height: 1.25;
  font-weight: 900;
  letter-spacing: -0.01em;
  color: #ffffff;
}

.trl-a11y-panel-close {
  width: 2.5rem;
  height: 2.5rem;
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 0;
  line-height: 1;
  font-weight: 800;
  text-align: center;
}

.trl-a11y-panel-close::before {
  content: "×";
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -53%);
  color: #e2e8f0;
  font-size: 1.45rem;
  line-height: 1;
  font-weight: 800;
}

.trl-a11y-panel-copy {
  margin: 0.55rem 0 0.875rem;
  color: rgba(226, 232, 240, 0.85);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.trl-a11y-switch-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.75rem;
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.03);
  cursor: pointer;
}

.trl-a11y-switch-row:hover {
  background: rgba(255, 255, 255, 0.055);
  border-color: rgba(148, 163, 184, 0.22);
}

.trl-a11y-switch-row strong,
.trl-a11y-switch-row small {
  display: block;
}

.trl-a11y-switch-row strong {
  color: #ffffff;
  font-size: 0.875rem;
  line-height: 1.25;
  font-weight: 900;
}

.trl-a11y-switch-row small {
  margin-top: 0.25rem;
  color: rgba(226, 232, 240, 0.75);
  font-size: 0.75rem;
  line-height: 1.35;
}

.trl-a11y-switch-row input[role="switch"] {
  width: 2.875rem;
  height: 1.625rem;
  flex: 0 0 auto;
  accent-color: #38bdf8;
}

.trl-a11y-reset-button {
  margin-top: 0.875rem;
  width: 100%;
  min-height: 2.5rem;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 0.875rem;
  background: rgba(255, 255, 255, 0.06);
  color: #e2e8f0;
  font-size: 0.8125rem;
  font-weight: 900;
}

.trl-a11y-reset-button:hover,
.trl-a11y-panel-close:hover {
  background: rgba(255, 255, 255, 0.10);
}

@media (max-width: 1023px) {
  .trl-a11y-settings-button {
    margin-left: auto;
    margin-right: 0.35rem;
  }

  .trl-a11y-settings-panel {
    top: 4.75rem;
    right: 1rem;
  }
}

/* New global class name, kept alongside trl-motion-paused for older page scripts. */
html.trl-reduced-motion *,
html.trl-reduced-motion *::before,
html.trl-reduced-motion *::after {
  animation-play-state: paused !important;
  scroll-behavior: auto !important;
}

html.trl-reduced-motion .js-progress,
html.trl-reduced-motion .trust-badge-marquee,
html.trl-reduced-motion .hero-line,
html.trl-reduced-motion .underline-hero,
html.trl-reduced-motion .hero-orb,
html.trl-reduced-motion .markets-orb-1,
html.trl-reduced-motion .markets-orb-2,
html.trl-reduced-motion .features-orb,
html.trl-reduced-motion .how-orb {
  animation: none !important;
  transform: none !important;
}


/* === TRL zoom/reflow patch: scrollable overlays at 200%-400% zoom === */
/* Normal desktop/mobile appearance stays unchanged. These rules only help when
   browser zoom or a very small viewport makes overlays taller than the screen. */

@media (max-height: 700px), (max-width: 480px) {
  body.trl-mobile-menu-open,
  body.trl-modal-open {
    overflow: hidden;
  }

  #mobile-menu {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  #mobile-menu .trl-mobile-panel {
    max-height: 100dvh;
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .trl-a11y-settings-panel {
    top: max(0.75rem, env(safe-area-inset-top));
    right: max(0.75rem, env(safe-area-inset-right));
    left: max(0.75rem, env(safe-area-inset-left));
    width: auto;
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  .trl-a11y-panel-inner {
    max-height: calc(100dvh - 1.5rem);
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  #trl-flex-modal {
    overflow-y: auto;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }

  #trl-flex-modal .trl-flex-modal-shell {
    min-height: 100dvh;
    height: auto;
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding-top: max(1rem, env(safe-area-inset-top));
    padding-bottom: max(1rem, env(safe-area-inset-bottom));
  }

  #trl-flex-modal .trl-flex-modal-card {
    margin-top: auto;
    margin-bottom: auto;
    max-height: none;
  }

  #trl-flex-modal .trl-flex-modal-body {
    max-height: none;
    overflow: visible;
  }
}



/* === TRL FAQ accessibility visibility guard ===
   Keeps FAQ text visible when motion is reduced/paused before scroll observers run. */
html.trl-reduced-motion .fade-up,
html.trl-reduced-motion [data-animate="fade-up"],
html.trl-motion-paused .fade-up,
html.trl-motion-paused [data-animate="fade-up"] {
  opacity: 1 !important;
  transform: none !important;
  transition: none !important;
}

html.trl-reduced-motion .hero-line,
html.trl-reduced-motion .hero-orb,
html.trl-motion-paused .hero-line,
html.trl-motion-paused .hero-orb {
  animation: none !important;
  transform: none !important;
}

@media (max-width: 480px) {
  main,
  section,
  footer,
  .max-w-4xl,
  .max-w-5xl,
  .max-w-7xl,
  .faq-item,
  .faq-toggle,
  .faq-content,
  .hover-raise {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .faq-toggle {
    white-space: normal !important;
    overflow-wrap: anywhere;
  }

  .faq-toggle h3,
  .faq-content,
  .faq-content * {
    overflow-wrap: anywhere;
    word-break: normal;
  }
}


/* === TRL FAQ zoom/reflow patch: prevent hero CTA and FAQ sections from overlapping at high zoom === */
@media (max-width: 1023px), (max-height: 700px) {
  .min-h-screen + section.relative.\-mt-28 {
    margin-top: 0 !important;
    padding-top: 2rem !important;
  }
}

/* === TRL FAQ navbar reflow fix ===
   Keep the desktop header container aligned like the homepage when the high-zoom
   reflow media query is active. The global .max-w-7xl reflow rule below is for
   content sections only and must not stretch the fixed navigation bar. */
@media (min-width: 1024px) and (max-height: 700px) {
  #site-header > .max-w-7xl {
    max-width: 96rem !important;
    width: 100% !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 1rem !important;
    padding-right: 1rem !important;
  }
}


/* === TRL FAQ navbar homepage alignment fix ===
   The zoom/reflow patch below intentionally keeps page content flexible at high
   zoom, but it must not override the homepage-sized header container. */
#site-header > .max-w-7xl {
  width: 100%;
  max-width: 80rem !important;
  margin-left: auto !important;
  margin-right: auto !important;
}

#site-header > .max-w-7xl > .flex {
  min-width: 0;
}

@media (max-width: 480px) {
  #site-header > .max-w-7xl {
    max-width: 100% !important;
  }
}
