/* Trading Risk Lab home page CSS moved from inline <style> blocks and style attributes. */

#trl-desktop-cta,#trl-mobile-cta{visibility:hidden}

html,
    body {
      background-color: #030712;
    }

    /* Hero background glows (approximate Framer Motion animations) */
    .hero-glow-1,
    .hero-glow-2,
    .hero-glow-3 {
      pointer-events: none;
    }

    .hero-glow-1 {
      animation: glowFloat1 20s ease-in-out infinite;
    }

    .hero-glow-2 {
      animation: glowFloat2 15s ease-in-out infinite;
    }

    .hero-glow-3 {
      animation: glowFloat3 12s ease-in-out infinite;
    }

    @keyframes glowFloat1 {
      0% { transform: translateX(0) scale(1); }
      50% { transform: translateX(30px) scale(1.15); }
      100% { transform: translateX(0) scale(1); }
    }

    @keyframes glowFloat2 {
      0% { transform: translateY(0) scale(1); }
      50% { transform: translateY(-20px) scale(1.10); }
      100% { transform: translateY(0) scale(1); }
    }

    @keyframes glowFloat3 {
      0% { transform: translate(0, 0) scale(1); }
      33% { transform: translate(-20px, 20px) scale(1.20); }
      66% { transform: translate(0, 0) scale(1.05); }
      100% { transform: translate(0, 0) scale(1); }
    }

    /* Simple fade-up animation to mimic Framer Motion initial/animate */
    .fade-up {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

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

    .fade {
      opacity: 0;
      transition: opacity 0.6s ease-out;
    }

    .fade.in-view {
      opacity: 1;
    }

    /* Plan hover lift (similar to whileHover y: -8) */
    .plan-card {
      transition: transform 0.25s ease-out, box-shadow 0.25s ease-out;
    }

    .plan-card:hover {
      transform: translateY(-8px);
    }

    /* Popular plan animated gradient border approximation */
    .popular-glow {
      background-size: 200% 200%;
      animation: popularGlow 4s linear infinite;
    }

    @keyframes popularGlow {
      0% { background-position: 0% 50%; }
      50% { background-position: 100% 50%; }
      100% { background-position: 0% 50%; }
    }

    /* Table row hover */
    .feature-row {
      transition: background-color 0.2s ease-out, opacity 0.4s ease-out;
      opacity: 0;
    }

    .feature-row.in-view {
      opacity: 1;
    }

    /* Card hover subtle rise for FAQ and billing cards */
    .hover-raise {
      transition: transform 0.2s ease-out, background-color 0.2s ease-out, border-color 0.2s ease-out;
    }

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

    /* ---- Imported from  header/footer styles ---- */

    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);
    }


    /* TRL PATCH: lift the hero calculator visual without relying on Tailwind arbitrary utilities.
       The compiled /tailwind.css does not include classes like lg:-mt-30 or lg:top-[-96px],
       so this stable custom class is used instead. */
    @media (min-width: 1024px) {
      .trl-hero-calculator-lift {
        position: relative;
        top: -80px;
      }
    }

    @media (min-width: 1280px) {
      .trl-hero-calculator-lift {
        top: -96px;
      }
    }

    @media (min-width: 1536px) {
      .trl-hero-calculator-lift {
        top: -112px;
      }
    }

    /* TRL PATCH: keep hero CTA/tool links above decorative desktop layers and fully clickable. */
    #hero .hero-copy {
      position: relative;
      z-index: 30;
    }

    #hero .hero-actions,
    #hero .popular-tools-row {
      position: relative;
      z-index: 40;
    }

    #hero .hero-actions a,
    #hero .popular-tool-link {
      position: relative;
      z-index: 41;
      pointer-events: auto;
    }

    #hero .trl-hero-calculator-lift {
      z-index: 10;
    }

    #hero .trl-hero-calculator-lift .hero-visual-decor {
      pointer-events: none;
    }

    /* 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 {
      position: relative;
      display: inline-flex;
      align-items: center;
      width: clamp(240px, 52vw, 360px);
      padding: 4px;
      border-radius: 9999px;
      border: 1px solid rgba(59,130,246,0.55);
      background: rgba(15,23,42,0.92);
      box-shadow: 0 14px 35px rgba(15,23,42,0.9);
      overflow: hidden;
      transform-origin: center;
      transition: box-shadow 0.25s ease, transform 0.25s ease, border-color 0.25s ease, background 0.25s ease;
      -webkit-tap-highlight-color: transparent;
    }

    /* Sliding "thumb" */
    #billing-toggle::after {
      content: "";
      position: absolute;
      top: 4px;
      bottom: 4px;
      left: 4px;
      width: calc(50% - 4px);
      border-radius: 9999px;
      background: linear-gradient(to right, rgba(37,99,235,0.95), rgba(56,189,248,0.95));
      box-shadow: 0 10px 28px rgba(37,99,235,0.35), inset 0 0 0 1px rgba(191,219,254,0.35);
      transition: transform 0.28s cubic-bezier(0.22, 1, 0.36, 1), background 0.28s ease, box-shadow 0.28s ease;
      z-index: 0;
    }

    /* Labels */
    #billing-toggle .billing-label-month,
    #billing-toggle .billing-label-year {
      flex: 1 1 0;
      text-align: center;
      position: relative;
      z-index: 1;
      font-weight: 700;
      letter-spacing: 0.02em;
      transition: color 0.2s ease, opacity 0.2s ease, transform 0.2s ease;
      user-select: none;
    }

    /* Hide the divider span inside the toggle (keeps markup unchanged) */
    #billing-toggle > span.w-px {
      display: none;
    }

    /* Monthly selected (default) */
    #billing-toggle .billing-label-month {
      color: #ffffff;
    }
    #billing-toggle .billing-label-year {
      color: rgba(226,232,240,0.75);
    }

    /* Yearly selected */
    #billing-toggle.is-yearly {
      /* Keep the switch blue in both states (only the thumb position changes) */
      border-color: rgba(59,130,246,0.65);
      box-shadow: 0 18px 50px rgba(59,130,246,0.14), 0 16px 45px rgba(15,23,42,0.9);
      transform: translateY(-1px);
    }
    #billing-toggle.is-yearly::after {
      transform: translateX(100%);
      /* Blue thumb in both states for consistent UI */
      background: linear-gradient(to right, rgba(37,99,235,0.95), rgba(56,189,248,0.95));
      box-shadow: 0 10px 28px rgba(37,99,235,0.35), inset 0 0 0 1px rgba(191,219,254,0.35);
    }
    #billing-toggle.is-yearly .billing-label-month {
      color: rgba(226,232,240,0.75);
    }
    #billing-toggle.is-yearly .billing-label-year {
      color: #ffffff;
    }


    .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);
      }
    }

    
    /* Yearly mode: hide monthly-only plans (Flex) + hide Free (yearly removes it) from cards + comparison table */
    #pricing.pricing-yearly-mode .flex-plan-wrapper { display: none !important; }
    #pricing.pricing-yearly-mode .flex-table-col { display: none !important; }
    #pricing.pricing-yearly-mode .free-plan-wrapper { display: none !important; }
    #pricing.pricing-yearly-mode .free-table-col { display: none !important; }

    /* Yearly mode: reflow pricing cards to 3 columns on md+ (Core, Pro, Ultimate) */
    @media (min-width: 768px) {
      #pricing.pricing-yearly-mode .pricing-cards-grid {
        grid-template-columns: repeat(3, minmax(0, 340px));
        justify-content: center;
        gap: 2rem;
      }
    }
#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%);
    }
    .pricing-glow-ultimate {
      background: radial-gradient(circle at center, rgba(245,158,11,0.42), transparent 72%);
    }
    /* Monthly: Flex (purple) + Ultimate (ember) glows should appear ONLY on hover */
    #pricing .pricing-glow-prop,
    #pricing .pricing-glow-ultimate {
      opacity: 0;
      transform: scale(1);
      filter: saturate(1.1);
    }
    #pricing .group:hover .pricing-glow-prop,
    #pricing .group:hover .pricing-glow-ultimate {
      opacity: 0.9;
      transform: scale(1.04);
      filter: saturate(1.25);
    }

    /* Yearly mode: show plan glows ONLY on hover (no always-on glow) */
    #pricing.pricing-yearly-mode .pricing-glow-pro,
    #pricing.pricing-yearly-mode .pricing-glow-ultimate {
      opacity: 0 !important;
      transform: scale(1);
    }
    #pricing.pricing-yearly-mode .group:hover .pricing-glow-pro,
    #pricing.pricing-yearly-mode .group:hover .pricing-glow-ultimate {
      opacity: 0.9 !important;
      transform: scale(1.04);
    }

    /* Ultimate monthly border fix + hover glow */
    #pricing .pricing-card.ultimate-yearly {
      border-color: rgba(245,158,11,0.85);
      box-shadow: 0 18px 50px rgba(245,158,11,0.08);
    }
    #pricing .pricing-card.ultimate-yearly:hover {
      border-color: rgba(245,158,11,0.98);
      box-shadow: 0 40px 110px rgba(245,158,11,0.30);
    }

    /* 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(16,185,129,0.45);
      border-color: rgba(16,185,129,0.95);
      transform: translateY(-6px) scale(1.02);
      background-image: radial-gradient(circle at top, rgba(16,185,129,0.20), 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;
    }
    #pricing .pricing-card.pricing-yearly.ultimate-yearly {
      box-shadow: 0 30px 80px rgba(245,158,11,0.36) !important;
      border-color: rgba(245,158,11,0.98) !important;
      transform: translateY(-6px) scale(1.02);
      background-image: radial-gradient(circle at top, rgba(245,158,11,0.22), transparent 55%);
      animation: pricingYearlyGlowEmber 0.6s ease-out;
    }
    @keyframes pricingYearlyGlowBlue {
      0% {
        box-shadow: 0 0 0 rgba(16,185,129,0);
        transform: translateY(-2px) scale(1);
      }
      60% {
        box-shadow: 0 35px 95px rgba(16,185,129,0.55);
        transform: translateY(-7px) scale(1.03);
      }
      100% {
        box-shadow: 0 30px 80px rgba(16,185,129,0.5);
        transform: translateY(-6px) scale(1.02);
      }
    }

    @keyframes pricingYearlyGlowEmber {
      0% {
        box-shadow: 0 0 0 rgba(245,158,11,0);
        transform: translateY(-2px) scale(1);
      }
      60% {
        box-shadow: 0 35px 95px rgba(245,158,11,0.42);
        transform: translateY(-7px) scale(1.03);
      }
      100% {
        box-shadow: 0 30px 80px rgba(245,158,11,0.36);
        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(16,185,129,0.6);
    }
    #pricing .pricing-card.pricing-yearly.prop-yearly:hover {
      transform: translateY(-10px) scale(1.04);
    }
    #pricing .pricing-card.pricing-yearly.ultimate-yearly:hover {
      transform: translateY(-10px) scale(1.04);
      box-shadow: 0 40px 110px rgba(245,158,11,0.42);
    }
    /* Hover pop-up for yearly Core (fix: ensure it enlarges on hover, not the opposite) */
    #pricing .pricing-card.pricing-yearly.core-yearly:hover {
      transform: translateY(-10px) scale(1.04);
      box-shadow: 0 40px 110px rgba(59,130,246,0.5);
    }
/* 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);
    }
    /* Global subtle grid background */
    .section-grid { position: relative; }
    .section-grid::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -1;
      opacity: 0.22;
      pointer-events: none;
      background-image:
        linear-gradient(rgba(30,64,175,0.45) 1px, transparent 1px),
        linear-gradient(90deg, rgba(30,64,175,0.45) 1px, transparent 1px);
      background-size: 80px 80px;
      mask-image: linear-gradient(to bottom, transparent 0%, transparent 18%, black 35%, black 100%);
    }

    .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;
    }





    /* Subtle hero internal links */
    .popular-tools-row {
      display: flex;
      flex-wrap: wrap;
      align-items: center;
      gap: 0.55rem;
      margin-top: -0.5rem;
      margin-bottom: 2rem;
      max-width: 44rem;
    }

    .popular-tools-label {
      color: rgba(148,163,184,0.92);
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.09em;
      text-transform: uppercase;
      margin-right: 0.15rem;
    }

    .popular-tool-link {
      display: inline-flex;
      align-items: center;
      gap: 0.35rem;
      padding: 0.42rem 0.68rem;
      border-radius: 9999px;
      border: 1px solid rgba(51,65,85,0.76);
      background: rgba(15,23,42,0.42);
      color: rgba(203,213,225,0.96);
      font-size: 0.82rem;
      font-weight: 650;
      line-height: 1;
      transition: color 0.2s ease, border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
    }

    .popular-tool-link:hover {
      transform: translateY(-1px);
      color: #fff;
      border-color: rgba(56,189,248,0.72);
      background: rgba(15,23,42,0.74);
      box-shadow: 0 12px 30px rgba(59,130,246,0.16);
    }

    /* Homepage FAQ styled like product pages, opened by default */
    .trl-faq-panel {
      position: relative;
      border: 1px solid rgba(30,64,175,0.32);
      background:
        radial-gradient(circle at 8% 0%, rgba(59,130,246,0.14), transparent 32%),
        radial-gradient(circle at 92% 12%, rgba(6,182,212,0.09), transparent 36%),
        linear-gradient(180deg, rgba(15,23,42,0.74), rgba(2,6,23,0.72));
      box-shadow: 0 24px 80px rgba(2,6,23,0.65), inset 0 1px 0 rgba(255,255,255,0.035);
    }

    .trl-faq-item {
      border: 1px solid rgba(51,65,85,0.72);
      background: linear-gradient(180deg, rgba(15,23,42,0.76), rgba(15,23,42,0.58));
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.035);
      transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
    }

    .trl-faq-item:hover {
      border-color: rgba(56,189,248,0.48);
      background: rgba(15,23,42,0.84);
      box-shadow: 0 16px 42px rgba(15,23,42,0.34), inset 0 1px 0 rgba(255,255,255,0.045);
    }

    .trl-faq-item .faq-trigger {
      width: 100%;
      text-align: left;
    }

    .trl-faq-icon {
      transition: transform 0.25s ease, color 0.25s ease;
    }

    .trl-faq-item.open .trl-faq-icon {
      transform: rotate(180deg);
      color: #67e8f9;
    }

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



    /* FAQ accents use the same blue/cyan family as the TRL logo. */
    .trl-faq-panel {
      border-color: rgba(14, 165, 233, 0.54);
      box-shadow: 0 24px 80px rgba(2,6,23,0.65), 0 0 0 1px rgba(14,165,233,0.16), inset 0 1px 0 rgba(255,255,255,0.04);
    }

    .trl-faq-item {
      border-color: rgba(14, 165, 233, 0.34);
    }

    .trl-faq-item:hover,
    .trl-faq-item:focus-within {
      border-color: rgba(34, 211, 238, 0.72);
      box-shadow: 0 16px 42px rgba(14,165,233,0.16), inset 0 1px 0 rgba(255,255,255,0.05);
    }

    .trl-faq-item .faq-trigger > span > span:first-child {
      border-color: rgba(14, 165, 233, 0.82) !important;
      background: rgba(14, 165, 233, 0.14) !important;
      color: #e0f2fe !important;
      box-shadow: 0 0 18px rgba(14, 165, 233, 0.18);
    }

    .prefooter-cta {
      background:
        radial-gradient(circle at 34% 0%, rgba(59,130,246,0.16), transparent 38%),
        radial-gradient(circle at 72% 22%, rgba(124,58,237,0.11), transparent 42%),
        #030712;
    }

    .prefooter-cta-card {
      border: 1px solid rgba(51,65,85,0.62);
      background:
        radial-gradient(circle at 50% 0%, rgba(14,165,233,0.12), transparent 45%),
        linear-gradient(180deg, rgba(15,23,42,0.66), rgba(2,6,23,0.38));
      box-shadow: 0 24px 90px rgba(2,6,23,0.54), inset 0 1px 0 rgba(255,255,255,0.04);
    }

    .prefooter-kicker {
      display: inline-flex;
      align-items: center;
      gap: 0.45rem;
      padding: 0.45rem 0.75rem;
      border-radius: 9999px;
      border: 1px solid rgba(56,189,248,0.22);
      background: rgba(15,23,42,0.62);
      color: rgba(186,230,253,0.94);
      font-size: 0.78rem;
      font-weight: 700;
      letter-spacing: 0.08em;
      text-transform: uppercase;
    }

    /* 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;
    }

/* --- 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; }


/* Converted from inline style="..." attributes. */

.trl-inline-style-2d90dde1 {
  background-image:
              linear-gradient(rgba(59, 130, 246, 0.3) 1px, transparent 1px),
              linear-gradient(90deg, rgba(59, 130, 246, 0.3) 1px, transparent 1px);
            background-size: 60px 60px;
}

.trl-inline-style-0d385578 {
  background-image:
              linear-gradient(rgba(129, 140, 248, 0.25) 1px, transparent 1px),
              linear-gradient(90deg, rgba(129, 140, 248, 0.25) 1px, transparent 1px);
            background-size: 90px 90px;
}

.trl-inline-style-3c9d3bb9 {
  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-4d98e686 {
  background: radial-gradient(circle, rgba(139,92,246,0.08) 0%, transparent 70%); animation: hero-orb-1 12s ease-in-out infinite;
}

.trl-inline-style-03fd2675 {
  background-color: rgba(245,158,11,0.38);
}


/* 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;
}

.trl-motion-toggle {
  --trl-logo-blue: #0ea5e9;
  position: absolute;
  left: 1rem;
  top: 5.1rem;
  z-index: 30;
  width: 2.75rem;
  height: 2.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  border-radius: 0.95rem;
  border: 1.5px solid var(--trl-logo-blue);
  background: #0f172a;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1;
  box-shadow: none;
  transition: none;
}

.trl-motion-toggle:hover,
.trl-motion-toggle:active {
  transform: none;
  border-color: var(--trl-logo-blue);
  background: #0f172a;
  box-shadow: none;
}

.trl-motion-toggle-icon {
  display: block;
  transform: translateY(-0.02rem);
}

@media (max-width: 640px) {
  .trl-motion-toggle {
    top: 4.75rem;
    left: 0.75rem;
    width: 2.5rem;
    height: 2.5rem;
    border-radius: 0.85rem;
    font-size: 0.92rem;
  }
}

.trl-motion-toggle:focus-visible,
a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
[tabindex]:not([tabindex="-1"]):focus-visible,
.feature-card[role="link"]:focus-visible {
  outline: 3px solid #67e8f9 !important;
  outline-offset: 4px !important;
  box-shadow: 0 0 0 6px rgba(8, 47, 73, 0.85), 0 0 28px rgba(34, 211, 238, 0.45) !important;
}

.trl-motion-toggle:focus-visible {
  outline: 2px solid #0ea5e9 !important;
  outline-offset: 3px !important;
  box-shadow: none !important;
}

#main-content:focus-visible {
  outline: 3px solid #67e8f9;
  outline-offset: -3px;
}

/* Hover-revealed content must also be available to keyboard users. */
.feature-card:focus-within .feature-details,
.feature-card[role="link"]:focus .feature-details,
.feature-card[role="link"]:focus-visible .feature-details {
  max-height: 360px;
  opacity: 1;
}

.feature-card[role="link"] {
  -webkit-tap-highlight-color: rgba(34, 211, 238, 0.22);
}

/* Improve contrast for small supporting copy used throughout the dark UI. */
.text-slate-500,
[class*="text-slate-500"] {
  color: #94a3b8 !important;
}
.text-slate-400,
[class*="text-slate-400"] {
  color: #cbd5e1 !important;
}
.border-slate-800,
[class*="border-slate-800"] {
  border-color: rgba(71, 85, 105, 0.92) !important;
}

#billing-toggle[role="switch"] {
  min-height: 44px;
}

#trl-flex-modal[aria-hidden="false"] {
  display: block;
}

#trl-flex-modal input[type="checkbox"] {
  min-width: 24px;
  min-height: 24px;
}

#trl-flex-modal label:focus-within {
  outline: 3px solid #67e8f9;
  outline-offset: 3px;
  border-color: rgba(103, 232, 249, 0.95) !important;
}

/* 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;
  }
}

/* Accessible Products disclosure menu: opened by JS for hover, click and keyboard focus. */
.trl-products-dropdown.is-open .trl-products-menu {
  opacity: 1 !important;
  transform: translateY(0) !important;
  pointer-events: auto !important;
}
.trl-products-dropdown.is-open #trl-products-menu-button i,
#trl-products-menu-button:focus-visible i {
  color: #e2e8f0 !important;
}
.trl-products-menu a:focus-visible {
  outline: 3px solid #67e8f9 !important;
  outline-offset: -2px !important;
  background: rgba(15, 23, 42, 0.95) !important;
}

/* Final rendered contrast guard for small helper/footer/mockup text on dark cards. */
.text-slate-500,
[class~="text-slate-500"] {
  color: #94a3b8 !important;
}
.text-slate-400,
[class~="text-slate-400"] {
  color: #cbd5e1 !important;
}
.bg-slate-800 .text-slate-500,
.bg-slate-800\/30 .text-slate-500,
.bg-slate-800\/50 .text-slate-500,
[class*="bg-slate-800"] [class~="text-slate-500"] {
  color: #cbd5e1 !important;
}


/* WCAG PATCH: semantic link groups use real lists without changing visual layout. */
.trl-products-menu ul,
#mobile-menu nav ul,
.popular-tools-list,
.direct-tool-links-list {
  list-style: none !important;
  margin: 0 !important;
  padding-left: 0 !important;
}

.popular-tools-list {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}

.direct-tool-links-list {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
}

.popular-tools-list > li,
.direct-tool-links-list > li {
  display: inline-flex;
}

#mobile-menu nav ul.space-y-2 > li + li {
  margin-top: 0.5rem;
}

/* WCAG PATCH: primary navigation is also a semantic list. */
nav[aria-label="Primary navigation"] > ul {
  list-style: none !important;
  margin: 0 !important;
  padding-left: 0 !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 checkout accessibility shell: keeps Paddle inline checkout in a real modal container. */
html.trl-checkout-open,
html.trl-checkout-open body {
  overflow: hidden;
}

.trl-paddle-checkout-shell[hidden] {
  display: none !important;
}

.trl-paddle-checkout-shell {
  position: fixed;
  inset: 0;
  z-index: 100000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.trl-paddle-checkout-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(2, 6, 23, 0.78);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

.trl-paddle-checkout-panel {
  position: relative;
  width: min(100%, 980px);
  max-height: min(860px, calc(100vh - 2rem));
  overflow: auto;
  border-radius: 1.25rem;
  border: 1px solid rgba(51, 65, 85, 0.82);
  background: linear-gradient(180deg, rgba(15, 23, 42, 0.98), rgba(2, 6, 23, 0.98));
  box-shadow: 0 32px 120px rgba(0, 0, 0, 0.62), 0 0 0 1px rgba(59, 130, 246, 0.16);
}

.trl-paddle-checkout-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem 1.125rem;
  border-bottom: 1px solid rgba(51, 65, 85, 0.72);
}

.trl-paddle-checkout-title {
  margin: 0;
  color: #ffffff;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.25;
}

.trl-paddle-checkout-title:focus {
  outline: none;
}

.trl-paddle-checkout-desc {
  margin: 0.25rem 0 0;
  color: rgba(203, 213, 225, 0.86);
  font-size: 0.875rem;
  line-height: 1.45;
}

.trl-paddle-checkout-close {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 9999px;
  border: 1px solid rgba(71, 85, 105, 0.88);
  background: rgba(15, 23, 42, 0.74);
  color: #e5e7eb;
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
}

.trl-paddle-checkout-close:hover {
  background: rgba(30, 41, 59, 0.92);
  color: #ffffff;
}

.trl-paddle-checkout-close:focus-visible {
  outline: 2px solid #67e8f9;
  outline-offset: 2px;
}

.trl-paddle-inline-frame {
  min-height: 620px;
  background: #ffffff;
}

.trl-paddle-inline-frame iframe {
  display: block;
  width: 100% !important;
  min-width: 312px;
  border: 0 !important;
}


/* === TRL pricing responsive clipping fix ===
   Keeps the normal wide-desktop pricing design, but prevents cards, promo pills,
   prices and hover glows from being clipped on narrow/zoomed layouts. */
#pricing,
#pricing * {
  box-sizing: border-box;
}

#pricing .pricing-cards-grid,
#pricing .pricing-card,
#pricing .pricing-card > *,
#pricing .pricing-card li,
#pricing .pricing-card span,
#pricing .pricing-card p {
  min-width: 0;
}

#pricing .pricing-card .flex.items-baseline {
  flex-wrap: wrap;
  row-gap: 0.25rem;
}

#pricing .pricing-card > .flex.items-center.gap-3.mb-4 {
  flex-wrap: wrap;
  row-gap: 0.75rem;
}

#pricing .pricing-card ul span {
  overflow-wrap: anywhere;
}

#pricing .trl-promo-pill {
  max-width: 100%;
}

#pricing .trl-promo-pill .trl-promo-text,
#pricing .trl-promo-pill .trl-promo-label,
#pricing .trl-promo-pill .trl-promo-amount {
  min-width: 0;
}

@media (min-width: 1024px) and (max-width: 1279px) {
  #pricing .pricing-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 46rem;
    margin-left: auto;
    margin-right: auto;
    gap: 1.5rem;
  }

  #pricing.pricing-yearly-mode .pricing-cards-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    max-width: 46rem;
    gap: 1.5rem;
  }
}

@media (max-width: 480px) {
  #pricing {
    overflow-x: clip;
  }

  #pricing > .relative.z-10 {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  #pricing .text-center.mb-16 {
    margin-bottom: 2.75rem;
  }

  #pricing .pricing-cards-grid {
    gap: 1.25rem;
  }

  #pricing .pricing-card {
    padding: 1.5rem;
  }

  #pricing .pricing-card .js-price {
    font-size: clamp(2.35rem, 13vw, 3rem);
    line-height: 1.05;
  }

  #pricing .trl-promo-old {
    margin-left: 0.35rem;
  }

  #pricing .pricing-glow,
  #pricing .group > .absolute.-inset-0\.5 {
    inset: -0.25rem;
  }
}

@media (max-width: 360px) {
  #pricing > .relative.z-10 {
    padding-left: 0.875rem;
    padding-right: 0.875rem;
  }

  #pricing .pricing-card {
    padding: 1.25rem;
  }

  #billing-toggle {
    width: min(100%, 17.75rem);
  }
}
