/* --- Moved from <style id=trl-auth-prehide> in risk-disclaimer.html --- */
#trl-desktop-cta,#trl-mobile-cta{visibility:hidden}


/* --- Moved from <style id=inline-style> in risk-disclaimer.html --- */
html, body {
      height: 100%;
    }
    body {
      background-color: #030712;
    }
    /* Simple fade/slide in animations to mimic framer-motion */
    .fade-in-up {
      opacity: 0;
      transform: translateY(20px);
      animation: fadeInUp 0.6s ease-out forwards;
    }
    .fade-in-up.delay-1 { animation-delay: 0.1s; }
    .fade-in-up.delay-2 { animation-delay: 0.2s; }
    .fade-in-up.delay-3 { animation-delay: 0.3s; }
    .fade-in-up.delay-4 { animation-delay: 0.4s; }
    .fade-in-up.delay-5 { animation-delay: 0.5s; }

    @keyframes fadeInUp {
      from {
        opacity: 0;
        transform: translateY(20px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .fade-in-left {
      opacity: 0;
      transform: translateX(-20px);
      animation: fadeInLeft 0.6s ease-out forwards;
      animation-delay: 0.4s;
    }

    @keyframes fadeInLeft {
      from {
        opacity: 0;
        transform: translateX(-20px);
      }
      to {
        opacity: 1;
        transform: translateX(0);
      }
    }

    .fade-in-section {
      opacity: 0;
      transform: translateY(20px);
      transition: opacity 0.6s ease-out, transform 0.6s ease-out;
    }

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

    /* Header background & scrolled state from  */
    #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);
    }

    /* Slight hover nudge for sidebar items to mimic whileHover x:2 */
    .toc-button {
      transition: transform 0.15s ease-out;
    }
    .toc-button:hover {
      transform: translateX(2px);
    }
  
    /* 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: Minimal typography styles (replaces Tailwind Typography plugin for .prose*) --- */
    .prose { color: #cbd5e1; line-height: 1.75; font-size: 1rem; }
    .prose :where(p) { margin-top: 0.75em; margin-bottom: 0.75em; }
    .prose :where(h1,h2,h3,h4) { color: #ffffff; line-height: 1.25; margin-top: 1.25em; margin-bottom: 0.5em; }
    .prose :where(h2) { font-size: 1.25rem; }
    .prose :where(h3) { font-size: 1.125rem; }
    .prose :where(a) { color: #60a5fa; text-decoration: underline; text-underline-offset: 2px; }
    .prose :where(a:hover) { color: #93c5fd; }
    .prose :where(strong) { color: #ffffff; font-weight: 600; }
    .prose :where(code) { color: #e5e7eb; background: rgba(15, 23, 42, 0.6); padding: 0.12em 0.35em; border-radius: 0.35em; }
    .prose :where(pre) { background: rgba(15, 23, 42, 0.7); padding: 1rem; border-radius: 0.75rem; overflow-x: auto; }
    .prose :where(pre code) { background: transparent; padding: 0; }
    .prose :where(ul,ol) { margin-top: 0.75em; margin-bottom: 0.75em; padding-left: 1.25em; }
    .prose :where(li) { margin-top: 0.25em; margin-bottom: 0.25em; }
    .prose :where(hr) { border-color: rgba(148, 163, 184, 0.25); margin: 2em 0; }

    /* Invert variant (kept for compatibility with existing classes) */
    .prose-invert { color: #cbd5e1; }
    .prose-invert :where(a) { color: #60a5fa; }
    .prose-invert :where(a:hover) { color: #93c5fd; }

    /* Slate variant hook (kept for compatibility with existing classes) */
    .prose-slate { color: #cbd5e1; }
    /* Bot-safe email copy link */
    .trl-email-contact {
      display: inline;
      white-space: nowrap;
      vertical-align: baseline;
    }

    .trl-email-copy {
      display: inline;
      border: 0;
      background: transparent;
      color: #60a5fa;
      padding: 0;
      font: inherit;
      font-weight: 500;
      line-height: inherit;
      text-decoration: underline;
      text-underline-offset: 2px;
      cursor: pointer;
      appearance: none;
      -webkit-appearance: none;
      transition: color 0.15s ease;
    }

    .trl-email-copy:hover {
      color: #93c5fd;
    }

    .trl-email-copy:focus-visible {
      outline: 2px solid rgba(96, 165, 250, 0.55);
      outline-offset: 2px;
      border-radius: 0.25rem;
    }

    .trl-email-status {
      position: absolute;
      width: 1px;
      height: 1px;
      padding: 0;
      margin: -1px;
      overflow: hidden;
      clip: rect(0, 0, 0, 0);
      white-space: nowrap;
      border: 0;
    }


/* --- Moved from <style id=inline-style> in risk-disclaimer.html --- */
/* --- 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; }


/* --- Moved from <style id=inline-style> in risk-disclaimer.html --- */
@keyframes heroGlow1 {
          0% { transform: scale(1) translateX(0); }
          50% { transform: scale(1.1) translateX(30px); }
          100% { transform: scale(1) translateX(0); }
        }
        @keyframes heroGlow2 {
          0% { transform: scale(1) translateY(0); }
          50% { transform: scale(1.15) translateY(-20px); }
          100% { transform: scale(1) translateY(0); }
        }


/* --- Moved from inline style="..." attributes in risk-disclaimer.html --- */

.trl-inline-style-529a226d { background: transparent; }

.trl-inline-style-6dd9e40d { background: radial-gradient(circle, rgba(239,68,68,0.08) 0%, transparent 70%); animation: heroGlow1 20s ease-in-out infinite; }

.trl-inline-style-c6565a2a { background: radial-gradient(circle, rgba(249,115,22,0.06) 0%, transparent 70%); animation: heroGlow2 15s ease-in-out infinite; }

.trl-inline-style-1ae94433 { background-image:
            linear-gradient(rgba(239, 68, 68, 0.5) 1px, transparent 1px),
            linear-gradient(90deg, rgba(239, 68, 68, 0.5) 1px, transparent 1px); background-size: 60px 60px; }


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


/* === TRL risk-disclaimer page accessibility/zoom integration === */
.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;
}

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

html.trl-reduced-motion .fade-in-up,
html.trl-reduced-motion .fade-in-left,
html.trl-reduced-motion .fade-in-section,
html.trl-reduced-motion .trl-inline-style-6dd9e40d,
html.trl-reduced-motion .trl-inline-style-c6565a2a,
html.trl-motion-paused .fade-in-up,
html.trl-motion-paused .fade-in-left,
html.trl-motion-paused .fade-in-section,
html.trl-motion-paused .trl-inline-style-6dd9e40d,
html.trl-motion-paused .trl-inline-style-c6565a2a {
  animation: none !important;
  transition: none !important;
  transform: none !important;
  opacity: 1 !important;
}

html.trl-reduced-motion #risk-canvas,
html.trl-motion-paused #risk-canvas {
  opacity: 0.35;
}

#mobile-menu .trl-mobile-panel {
  background: rgb(15 23 42);
  border-color: rgb(30 41 59);
}

@media (max-width: 480px) {
  .prose,
  .prose * {
    overflow-wrap: anywhere;
  }

  h1,
  h2,
  h3,
  p,
  li,
  a,
  span {
    min-width: 0;
  }
}
