/* Tickblaze B2B site - shared stylesheet for all supporting pages. Mirrors index.html visual DNA. */
:root {
  --tb-blue: #3655ff;
  --tb-neon: #2e63fe;
  --tb-indigo: #4438e8;
  --tb-violet: #120e35;
  --tb-glow: #7487ff;
  --bg: #020b05;
  --bg-elev: #0a0a18;
  --bg-card: rgba(255,255,255,0.03);
  --bg-card-solid: #0e0e22;
  --border: rgba(255,255,255,0.08);
  --border-bright: rgba(116,135,255,0.35);
  --text: #ffffff;
  --text-dim: #a4a7ae;
  --text-muted: #717680;
  --radius: 8px;
  --radius-lg: 8px;
  --maxw: 1280px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --ease-soft: cubic-bezier(0.22, 1, 0.36, 1);
}
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scrollbar-gutter: stable; }
/* Site-wide background = Tickblaze Web (logged-in) auth recipe.
   Solid black base + body::before blur-circle (matches .tb-bg-layer on home).
   8-bit color depth bands a CSS gradient; a blurred solid avoids that. */
body { font-family: 'Inter', 'Helvetica Neue', Arial, sans-serif; background: #0A0A0A; color: var(--text); line-height: 1.55; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body::before { content: ''; position: fixed; inset: 0; background: radial-gradient(ellipse 80% 85% at 50% 105%, #1f3a8a 0%, rgba(31,58,138,0.55) 32%, rgba(31,58,138,0.18) 60%, transparent 85%), radial-gradient(ellipse 115% 75% at 50% 105%, rgba(80,40,140,0.28) 0%, rgba(80,40,140,0.10) 50%, transparent 80%); filter: blur(40px); opacity: 1; z-index: 0; pointer-events: none; will-change: filter; }
/* Mobile-only: lock horizontal scroll and disable double-tap zoom. */
@media (max-width: 900px) {
  html { overflow-x: clip; max-width: 100%; touch-action: manipulation; -webkit-text-size-adjust: 100%; }
  body { overflow-x: clip; max-width: 100vw; touch-action: manipulation; }
  img, video, iframe, svg { max-width: 100%; }
}
/* White-nav variant (universal). Toggle by setting class="nav-light" on <body>.
   Scoped to nav.site-nav specifically so secondary <nav> elements (breadcrumbs, etc.) stay dark. */
body.nav-light nav.site-nav { background: rgba(255,255,255,0.94); border-bottom: 1px solid rgba(15,17,38,0.08); box-shadow: 0 1px 0 rgba(15,17,38,0.04), 0 8px 24px rgba(15,17,38,0.06); }
body.nav-light .nav-logo img { filter: drop-shadow(0 2px 6px rgba(15,17,38,0.35)) drop-shadow(0 0 1px rgba(15,17,38,0.5)); }
body.nav-light .nav-links a,
body.nav-light .nav-dd-btn { color: #000000; }
body.nav-light .nav-links a:hover,
body.nav-light .nav-links a.active,
body.nav-light .nav-dd:hover .nav-dd-btn,
body.nav-light .nav-dd-btn:hover { color: #000000; }
body.nav-light .nav-dd-menu { background: rgba(255,255,255,0.98); border: 1px solid rgba(15,17,38,0.08); box-shadow: 0 24px 60px rgba(15,17,38,0.12); }
body.nav-light .nav-dd-menu a { color: #000000; }
body.nav-light .nav-dd-menu a:hover { background: rgba(54,85,255,0.08); color: #000000; }
body.nav-light nav.site-nav .btn-ghost { color: #2a2c3a; background: rgba(15,17,38,0.04); border-color: rgba(15,17,38,0.14); }
body.nav-light nav.site-nav .btn-ghost:hover { background: rgba(15,17,38,0.07); border-color: rgba(15,17,38,0.22); color: #0f1126; }
body.nav-light .nav-cart { color: #2a2c3a; background: rgba(15,17,38,0.04); border-color: rgba(15,17,38,0.14); }
body.nav-light .nav-cart:hover { background: rgba(15,17,38,0.07); border-color: rgba(15,17,38,0.22); color: #0f1126; }
body.nav-light .nav-hamburger { color: #0f1126; background: rgba(15,17,38,0.04); border-color: rgba(15,17,38,0.14); }
body.nav-light .nav-hamburger:hover { background: rgba(15,17,38,0.07); border-color: rgba(15,17,38,0.22); }
body.nav-light.tb-mobile-open .nav-hamburger { color: #0f1126; background: rgba(54,85,255,0.10); border-color: rgba(54,85,255,0.45); }
body.nav-light .nav-hamburger svg { stroke: #0f1126; }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { font-family: inherit; cursor: pointer; border: none; background: none; color: inherit; }
h1, h2, h3 { text-wrap: balance; }

/* ---------------------------------------------------------------------------
   S2 - GLOBAL TITLE SCALE (site-wide normalization, 2026-05-05)
   ONE consistent type ramp for every section/subsection title across the site.
   Sean: section titles vary too much (Pillars too small, Trader Solutions
   too big and wraps to 3 lines). Lock the ramp here.
   - h1 / hero title:        clamp(36px, 5vw, 56px)
   - h2 / section title:     clamp(28px, 3.5vw, 44px)
   - h3 / subsection title:  clamp(20px, 2vw, 28px)
   Apply via .tb-h1/.tb-h2/.tb-h3 utility classes on new markup. Existing
   class definitions (.section-title, .pc-stagger-content h3, etc.) are
   normalized below to match this scale.
   --------------------------------------------------------------------------- */
.tb-h1, .tb-title-h1 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.6px; text-transform: uppercase; text-wrap: balance; }
.tb-h2, .tb-title-h2 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.08; letter-spacing: -0.4px; text-transform: uppercase; text-wrap: balance; }
.tb-h3, .tb-title-h3 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: clamp(20px, 2vw, 28px); line-height: 1.15; letter-spacing: -0.2px; text-transform: uppercase; text-wrap: balance; }

/* G1 - Tickblaze Web auth background (animated blob mixer).
   Replaces the legacy .orb-field system to match webtrader.tickblaze.com/auth exactly.
   Layer 1 (radial gradient) lives on body above. Layer 2 is below.
   The legacy .orb-field markup is still present in some HTML files for backwards
   compat but we hide it here so only the new mixer renders. */
.orb-field { display: none !important; }

/* G1 Layer 2 - three blurred color-cycling blobs anchored to viewport bottom.
   HTML is injected once per page by banner.js (see #tbBgBlobs). */
.bg-blobs {
  position: fixed;
  bottom: -40px;
  left: 0;
  width: 100%;
  height: 25vh;
  z-index: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
  /* No overflow:hidden - it would clip the blur halo and create a sharp top edge. */
}
.bg-blobs > div {
  width: 33.333%;
  height: 100%;
  filter: blur(128px);
  will-change: opacity, background-color;
}
.bg-mixer-1 { animation: bg-mixer-1 3s ease-in-out infinite alternate; }
.bg-mixer-2 { animation: bg-mixer-2 4s ease-in-out infinite alternate; }
.bg-mixer-3 { animation: bg-mixer-3 5s ease-in-out infinite alternate; }
@keyframes bg-mixer-1 {
  0%   { opacity: 0.10; background-color: #a855f7; } /* purple-500 */
  100% { opacity: 0.15; background-color: #06b6d4; } /* cyan-500 */
}
@keyframes bg-mixer-2 {
  0%   { opacity: 0.10; background-color: #06b6d4; } /* cyan-500 */
  100% { opacity: 0.15; background-color: #3b82f6; } /* blue-500 */
}
@keyframes bg-mixer-3 {
  0%   { opacity: 0.10; background-color: #3b82f6; } /* blue-500 */
  100% { opacity: 0.15; background-color: #a855f7; } /* purple-500 */
}

/* Nav */
nav.site-nav { position: fixed; top: 0; left: 0; right: 0; height: 72px; z-index: 200; background: rgba(2,11,5,0.72); backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px); border-bottom: 1px solid var(--border); display: flex; align-items: center; }
.nav-inner { max-width: var(--maxw); margin: 0 auto; width: 100%; padding: 0 28px; display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; column-gap: 24px; }
.nav-logo { display: flex; align-items: center; height: 72px; }
.nav-logo img { height: 48px; width: auto; display: block; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.nav-links { display: flex; align-items: center; gap: 32px; }
.nav-links > a, .nav-links > .nav-dd { display: inline-flex; align-items: center; height: 24px; line-height: 1; }
.nav-links a { font-size: 14px; font-weight: 500; color: var(--text-dim); transition: color 0.2s var(--ease); }
.nav-links a:hover, .nav-links a.active { color: var(--text); }
.nav-dd { position: relative; }
.nav-dd-btn { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; font-weight: 500; color: var(--text-dim); cursor: pointer; transition: color 0.2s; line-height: 1; height: 24px; }
.nav-dd-btn:hover { color: var(--text); }
.nav-dd-menu { position: absolute; top: calc(100% + 14px); left: -16px; min-width: 220px; padding: 10px; background: rgba(14,14,34,0.96); border: 1px solid var(--border-bright); border-radius: 14px; backdrop-filter: blur(16px); box-shadow: 0 24px 60px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transform: translateY(-6px); transition: all 0.25s var(--ease); z-index: 101; display: flex; flex-direction: column; gap: 2px; }
.nav-dd:hover .nav-dd-menu, .nav-dd:focus-within .nav-dd-menu { opacity: 1; visibility: visible; transform: translateY(0); }
/* When any nav-dd is being hovered, force-close every other nav-dd's menu
   (prevents two dropdowns being open at once when one still holds focus-within). */
.nav-links:has(.nav-dd:hover) .nav-dd:not(:hover) .nav-dd-menu { opacity: 0; visibility: hidden; transform: translateY(-6px); }
.nav-dd-menu a { padding: 10px 14px; border-radius: 8px; font-size: 14px; color: var(--text); transition: background 0.15s; white-space: nowrap; }
.nav-dd-menu a:hover { background: rgba(116,135,255,0.1); color: #b8c3ff; }
.nav-cta { display: flex; align-items: center; gap: 10px; justify-content: flex-end; }
.nav-cart { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.06); color: var(--text); transition: all 0.2s var(--ease); }
.nav-cart:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); color: var(--text); transform: translateY(-1px); }
.nav-cart svg { display: block; }
.nav-cart-count { position: absolute; top: -6px; right: -6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: linear-gradient(135deg, #3655ff, #4438e8); color: #fff; font-size: 10px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; box-shadow: 0 4px 10px rgba(54,85,255,0.35); }
.nav-cart-count[hidden] { display: none; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 11px 22px; border-radius: 8px; font-weight: 600; font-size: 14px; letter-spacing: 0.1px; transition: all 0.2s var(--ease); white-space: nowrap; cursor: pointer; border: 1px solid transparent; }
.btn-ghost { color: var(--text); background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.22); }
.btn-ghost:hover { background: rgba(255,255,255,0.1); border-color: rgba(255,255,255,0.4); }
.btn-primary { color: #fff; background: linear-gradient(135deg, #3655ff 0%, #4438e8 100%); box-shadow: 0 8px 24px rgba(54,85,255,0.32); }
.btn-primary:hover { box-shadow: 0 12px 32px rgba(54,85,255,0.45); transform: translateY(-1px); }
.btn-lg { padding: 14px 28px; font-size: 15px; }
@media (max-width: 980px) {
  .nav-links { display: none; }
  .nav-inner { padding: 0 16px; }
  .btn-ghost.nav-demo { display: none; }
  /* Fix: with nav-links hidden, grid auto-placement drops nav-cta into col 2.
     Explicitly pin it to col 3 so it stays on the right. */
  .nav-cta { grid-column: 3; }
}
/* Calendly popup must float above the promo banner (z-index 10000). */
.calendly-overlay { z-index: 10001 !important; }
@media (max-width: 640px) {
  nav.site-nav { height: 64px; }
  .nav-logo { height: 64px; }
  .nav-logo img { height: 34px; }
  .nav-inner { padding: 0 12px; gap: 8px; }
  .nav-cta { gap: 6px; }
  .nav-cart { width: 36px; height: 36px; border-radius: 9px; }
  .nav-cart svg { width: 16px; height: 16px; }
  .nav-cart-count { min-width: 16px; height: 16px; font-size: 9px; top: -5px; right: -5px; }
  .btn-primary.nav-download,
  .btn-primary.nav-webtrader-mobile { padding: 9px 12px; font-size: 12px; letter-spacing: 0; gap: 6px; }
  .btn-primary.nav-webtrader-mobile svg { width: 12px; height: 12px; }
}
@media (max-width: 400px) {
  .nav-logo img { height: 30px; }
  .nav-inner { padding: 0 10px; gap: 6px; }
  .nav-cart { width: 34px; height: 34px; }
  .btn-primary.nav-download,
  .btn-primary.nav-webtrader-mobile { padding: 8px 10px; font-size: 11px; }
}

/* Common wrappers */
section { position: relative; z-index: 1; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 28px; }
.section-pad { padding: 120px 0; }
.section-head { text-align: center; max-width: 840px; margin: 0 auto 72px; }
.section-head .eyebrow { margin-bottom: 20px; }
.section-head .section-sub { margin: 18px auto 0; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid rgba(116,135,255,0.3); border-radius: 6px; background: rgba(116,135,255,0.08); font-family: 'Roboto', sans-serif; font-size: 12px; letter-spacing: 1.4px; text-transform: uppercase; color: #b8c3ff; }
.eyebrow .pulse { width: 7px; height: 7px; background: #7487ff; border-radius: 50%; position: relative; }
.eyebrow .pulse::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: #7487ff; opacity: 0.4; animation: pulseRadiate 2s ease-out infinite; }
@keyframes pulseRadiate { 0% { transform: scale(0.5); opacity: 0.6; } 100% { transform: scale(2.2); opacity: 0; } }
/* S2: section title normalized to global H2 scale clamp(28px, 3.5vw, 44px). */
.section-title { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: clamp(28px, 3.5vw, 44px); line-height: 1.08; letter-spacing: -0.4px; text-transform: uppercase; }
.section-sub { color: var(--text-dim); font-size: clamp(15px, 1.3vw, 18px); max-width: 720px; margin-top: 14px; line-height: 1.6; }
.grad-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: #ffffff; }

/* Page hero shared */
.page-hero { padding: 96px 0 72px; text-align: center; position: relative; }
/* S2: page hero h1 normalized to global H1 scale clamp(36px, 5vw, 56px). */
.page-hero h1 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: clamp(36px, 5vw, 56px); line-height: 1.05; letter-spacing: -0.6px; text-transform: uppercase; margin-top: 22px; padding-bottom: 0.08em; }
.page-hero p { color: var(--text-dim); font-size: clamp(15px, 1.4vw, 19px); max-width: 760px; margin: 18px auto 0; line-height: 1.65; }
.page-hero .hero-cta { display: inline-flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; justify-content: center; }

/* Fade-up */
.fade-up { opacity: 0; transform: translateY(24px); transition: opacity 0.8s var(--ease-soft), transform 0.8s var(--ease-soft); }
.fade-up.visible { opacity: 1; transform: translateY(0); }

/* Card system */
.glass-card { padding: 28px 24px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius); backdrop-filter: blur(8px); transition: all 0.3s var(--ease); }
.glass-card:hover { border-color: var(--border-bright); transform: translateY(-3px); }
.glass-card h3, .glass-card h4 { font-family: 'Inter', sans-serif; font-weight: 700; font-size: 17px; margin-bottom: 10px; letter-spacing: -0.1px; }
.glass-card p { color: var(--text-dim); font-size: 14px; line-height: 1.55; }

/* ---------------------------------------------------------------------------
   S2 - Cross-page title overrides
   These selectors are written with extra specificity (body + parent class +
   target) so they beat the per-page inline <style> rules without requiring
   edits to those HTML files. Sean's exact fix (PC4 in 09-FINAL-EDITS-FROM-CALL):
   "'Trader Solutions' here, this to me is like too big and it's on three lines,
   this one needs to be fixed."
   --------------------------------------------------------------------------- */
/* Prop CRM staggered section subtitles (e.g. "Trader Solutions") - was
   clamp(40px, 5.2vw, 62px) inline, wrapped to 3 lines. Normalize to H2 scale. */
body .pc-stagger .pc-stagger-content h3 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.08; letter-spacing: -0.4px; }
/* Prop CRM big centered section header .pc-h2 - was clamp(32px, 4.2vw, 56px)
   inline. Pull inside the H2 ramp so every prop-crm section title matches. */
body section .pc-h2 { font-size: clamp(28px, 3.5vw, 44px); line-height: 1.08; letter-spacing: -0.4px; }

/* Legal prose pages (Terms, Privacy, Disclaimers, Data, Market Data Notice, etc.) */
.legal-hero { padding: 120px 0 40px; text-align: center; position: relative; z-index: 2; }
.legal-hero .eyebrow { display: inline-flex; align-items: center; gap: 10px; font-family: 'Roboto', sans-serif; font-size: 11px; letter-spacing: 1.8px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; }
.legal-hero .eyebrow::before, .legal-hero .eyebrow::after { content: ''; width: 24px; height: 1px; background: linear-gradient(90deg, transparent, #7487ff); }
.legal-hero .eyebrow::after { background: linear-gradient(-90deg, transparent, #7487ff); }
.legal-hero h1 { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: clamp(40px, 6vw, 66px); line-height: 1.04; letter-spacing: -1px; text-transform: uppercase; }
.legal-hero h1 .grad-text { background: none; -webkit-background-clip: initial; background-clip: initial; color: #ffffff; }
.legal-hero p.lede { color: var(--text-dim); font-size: 16px; line-height: 1.7; max-width: 720px; margin: 18px auto 0; }
.legal-body { padding: 40px 0 120px; position: relative; z-index: 2; }
.legal-prose { max-width: 880px; margin: 0 auto; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 56px 56px 48px; backdrop-filter: blur(10px); }
.legal-prose h1 { font-family: 'Oswald', sans-serif; font-weight: 700; font-size: 32px; text-transform: uppercase; letter-spacing: -0.3px; margin-bottom: 28px; color: #fff; }
.legal-prose h2 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 24px; text-transform: uppercase; letter-spacing: -0.2px; margin: 42px 0 16px; color: #fff; }
.legal-prose h3 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 19px; text-transform: uppercase; letter-spacing: 0.2px; margin: 34px 0 14px; color: #e8ecff; }
.legal-prose h4 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 16px; text-transform: uppercase; letter-spacing: 0.3px; margin: 28px 0 12px; color: #c5b4ff; }
.legal-prose h5, .legal-prose h6 { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 15px; text-transform: uppercase; letter-spacing: 0.4px; margin: 24px 0 10px; color: #c5b4ff; }
.legal-prose p { color: var(--text-dim); font-size: 15px; line-height: 1.78; margin-bottom: 14px; }
.legal-prose p:last-child { margin-bottom: 0; }
.legal-prose strong, .legal-prose b { color: #e8ecff; font-weight: 600; }
.legal-prose em, .legal-prose i { color: #d4dcff; }
.legal-prose a { color: #c5b4ff; text-decoration: underline; text-decoration-color: rgba(138,96,255,0.35); text-underline-offset: 3px; transition: color 0.2s; }
.legal-prose a:hover { color: #fff; text-decoration-color: #8a60ff; }
.legal-prose ul, .legal-prose ol { color: var(--text-dim); font-size: 15px; line-height: 1.78; margin: 10px 0 18px 18px; padding-left: 6px; }
.legal-prose ul ul, .legal-prose ol ol, .legal-prose ul ol, .legal-prose ol ul { margin: 6px 0 8px 14px; }
.legal-prose li { margin-bottom: 8px; }
.legal-prose li::marker { color: #7487ff; }
.legal-prose hr { border: 0; border-top: 1px solid var(--border); margin: 36px 0; }
.legal-prose blockquote { border-left: 3px solid #7487ff; padding: 10px 20px; color: var(--text-dim); font-style: italic; margin: 18px 0; background: rgba(116,135,255,0.04); }
@media (max-width: 720px) { .legal-prose { padding: 36px 26px 32px; } .legal-prose h1 { font-size: 26px; } .legal-prose h2 { font-size: 21px; } .legal-prose h3 { font-size: 17px; } .legal-prose p, .legal-prose ul, .legal-prose ol { font-size: 14.5px; } }

/* CME FAQ accordion (re-uses .faq-item styling but scoped to legal page) */
.cme-faq-accordion { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }
.cme-faq-accordion .faq-item { background: rgba(255,255,255,0.02); border: 1px solid var(--border); border-radius: 12px; overflow: hidden; transition: border-color 0.2s var(--ease); }
.cme-faq-accordion .faq-item:hover { border-color: rgba(138,96,255,0.25); }
.cme-faq-accordion .faq-item.open { border-color: var(--border-bright); background: rgba(138,96,255,0.04); }
.cme-faq-accordion .faq-q { width: 100%; padding: 18px 22px; display: flex; align-items: center; justify-content: space-between; gap: 18px; text-align: left; font-family: inherit; font-size: 15px; font-weight: 600; color: var(--text); background: none; border: none; cursor: pointer; }
.cme-faq-accordion .faq-q:hover { color: #c5b4ff; }
.cme-faq-accordion .faq-ico { flex-shrink: 0; width: 28px; height: 28px; border-radius: 7px; border: 1px solid var(--border); display: flex; align-items: center; justify-content: center; transition: all 0.3s var(--ease-soft); background: rgba(255,255,255,0.02); }
.cme-faq-accordion .faq-ico svg { width: 13px; height: 13px; stroke: var(--text-dim); }
.cme-faq-accordion .faq-item.open .faq-ico { background: linear-gradient(135deg, rgba(61,32,251,0.3), rgba(109,0,231,0.15)); border-color: var(--border-bright); transform: rotate(45deg); }
.cme-faq-accordion .faq-item.open .faq-ico svg { stroke: #fff; }
.cme-faq-accordion .faq-a { max-height: 0; overflow: hidden; transition: max-height 0.4s var(--ease-soft); }
.cme-faq-accordion .faq-item.open .faq-a { max-height: 1600px; }
.cme-faq-accordion .faq-a-inner { padding: 0 22px 20px; color: var(--text-dim); font-size: 14.5px; line-height: 1.72; }
.cme-faq-accordion .faq-a-inner p { margin-bottom: 10px; }
.cme-faq-accordion .faq-a-inner ul, .cme-faq-accordion .faq-a-inner ol { margin: 8px 0 12px 18px; }
.cme-faq-accordion .faq-a-inner li { margin-bottom: 6px; }
.cme-faq-accordion .faq-a-inner a { color: #c5b4ff; }

/* Footer */
footer.site-footer { padding: 80px 0 72px; border-top: 1px solid var(--border); background: var(--bg-elev); position: relative; z-index: 2; }
.footer-grid { display: grid; grid-template-columns: 1.4fr repeat(4, 1fr); gap: 36px; margin-bottom: 24px; }
.footer-brand img { height: 56px; width: auto; margin: -8px 0 4px -4px; filter: drop-shadow(0 2px 8px rgba(0,0,0,0.4)); }
.footer-brand p { color: var(--text-dim); font-size: 14px; line-height: 1.6; max-width: 320px; }
.footer-col h5 { font-family: 'Roboto', sans-serif; font-size: 11px; letter-spacing: 1.6px; text-transform: uppercase; color: var(--text-muted); margin-bottom: 18px; font-weight: 500; }
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-col a { color: var(--text-dim); font-size: 14px; transition: color 0.2s; }
.footer-col a:hover { color: var(--text); }
.footer-brand .footer-socials { margin-top: 16px; justify-content: flex-start; }
.footer-legal-grid { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 40px; padding-top: 40px; margin-bottom: 40px; }
/* Column alignment: Terms left (default), Market Data centered, Contact Us right. */
.footer-legal-grid > :nth-child(2) { text-align: center; }
.footer-legal-grid > :nth-child(2) ul { align-items: center; }
.footer-legal-grid > :nth-child(3) { text-align: right; }
.footer-legal-grid > :nth-child(3) ul { align-items: flex-end; }
.footer-legal-grid .contact-block p { color: var(--text-dim); font-size: 14px; line-height: 1.7; margin-bottom: 14px; }
.footer-legal-grid .contact-block p:last-child { margin-bottom: 0; }
.footer-legal-grid .contact-block a { color: var(--text-dim); transition: color 0.2s; }
.footer-legal-grid .contact-block a:hover { color: var(--text); }
.footer-legal-grid .contact-block strong { color: var(--text); font-weight: 500; display: block; margin-bottom: 2px; font-size: 13px; }
.footer-bottom { padding-top: 32px; padding-bottom: 24px; border-top: 1px solid var(--border); display: flex; flex-direction: column; gap: 24px; align-items: center; text-align: center; }
.footer-socials { display: flex; gap: 20px; justify-content: center; }
.footer-socials a { width: 36px; height: 36px; border: 1px solid var(--border); border-radius: 50%; display: flex; align-items: center; justify-content: center; color: var(--text-dim); transition: all 0.2s; }
.footer-socials a:hover { color: var(--text); border-color: var(--border-bright); background: rgba(116,135,255,0.1); }
.footer-socials svg { width: 16px; height: 16px; fill: currentColor; }
.footer-copy { font-size: 12px; color: var(--text-muted); font-family: 'Roboto'; letter-spacing: 0.3px; }

/* Trustpilot strip (shared, used in footer on every page + on homepage final CTA) */
.trustpilot-strip { padding: 20px 32px; background: var(--bg-card); border: 1px solid var(--border); border-radius: var(--radius-lg); backdrop-filter: blur(8px); display: inline-flex; gap: 22px; align-items: center; justify-content: center; flex-wrap: wrap; text-decoration: none; color: inherit; transition: border-color 0.2s, background 0.2s; }
.trustpilot-strip:hover { border-color: rgba(0,182,122,0.45); background: linear-gradient(180deg, rgba(0,182,122,0.05), rgba(255,255,255,0.03)); }
.trustpilot-footer { margin: 0 auto; }
.trust-star-group { display: flex; gap: 3px; }
.trust-star { width: 20px; height: 20px; background: #00b67a; display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.trust-star.half { background: #1a1a1a; }
.trust-star.half::before { content: ''; position: absolute; inset: 0; width: 50%; background: #00b67a; pointer-events: none; }
.trust-star.half svg { position: relative; z-index: 1; }
.trust-star.empty { background: #dcdce0; }
.trust-star.empty svg { fill: #fff; }
.trust-star svg { width: 13px; height: 13px; fill: #fff; }
.trust-rating { display: flex; flex-direction: column; align-items: flex-start; }
.trust-rating strong { font-family: 'Oswald', sans-serif; font-weight: 600; font-size: 20px; letter-spacing: 0.5px; color: #fff; line-height: 1; }
.trust-rating span { font-size: 10px; color: var(--text-muted); font-family: 'Roboto'; text-transform: uppercase; letter-spacing: 1.2px; margin-top: 4px; }
.trust-logo { height: 22px; width: auto; display: block; }

/* Compact Trustpilot for footer brand column: logo + stars only, no rating text */
.trustpilot-brand { display: inline-flex; align-items: center; gap: 14px; margin-top: 20px; padding: 10px 16px; background: var(--bg-card); border: 1px solid var(--border); border-radius: 8px; text-decoration: none; color: inherit; transition: border-color 0.2s, background 0.2s; }
.trustpilot-brand:hover { border-color: rgba(0,182,122,0.45); background: linear-gradient(180deg, rgba(0,182,122,0.05), rgba(255,255,255,0.03)); }
.trustpilot-brand .trust-logo { height: 18px; width: auto; margin: 0; filter: none; }
.trustpilot-brand .trust-star-group { gap: 3px; }
.trustpilot-brand .trust-star { width: 18px; height: 18px; border-radius: 2px; }
.trustpilot-brand .trust-star svg { width: 12px; height: 12px; }

@media (max-width: 1180px) {
  .footer-grid { grid-template-columns: 1fr 1fr 1fr 1fr; gap: 32px 28px; }
  .footer-brand { grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; text-align: center; padding-bottom: 32px; margin-bottom: 4px; border-bottom: 1px solid var(--border); }
  .footer-brand img { margin: 0 0 8px 0; }
  .footer-brand p { max-width: 560px; margin: 0 auto; }
  .footer-brand .trustpilot-brand { margin-top: 18px; }
  .footer-brand .footer-socials { justify-content: center; }
  .footer-legal-grid { grid-template-columns: 1fr 1fr; gap: 32px; }
}
@media (max-width: 760px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-legal-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
}
@media (max-width: 520px) {
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px 20px; }
  .footer-brand { padding-bottom: 24px; }
  .footer-legal-grid { grid-template-columns: 1fr; gap: 28px; padding-top: 32px; }
}

/* Motion safe */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
  .orb { animation: none !important; }
  .bg-blobs > div { animation: none !important; }
}

/* Calendly popup close (X) - reparented inside .calendly-popup by site.js so
   it floats just above the popup's top-right corner instead of the viewport
   corner. Override Calendly's default fixed positioning + styling. */
.calendly-overlay .calendly-popup { position: relative !important; overflow: visible !important; }
.calendly-overlay .calendly-popup .calendly-popup-close {
  position: absolute !important;
  top: -44px !important;
  right: -4px !important;
  left: auto !important;
  bottom: auto !important;
  width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  margin: 0 !important;
  background: rgba(14,14,34,0.92) url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23e8e9f0' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'><line x1='18' y1='6' x2='6' y2='18'/><line x1='6' y1='6' x2='18' y2='18'/></svg>") center / 14px 14px no-repeat !important;
  border: 1px solid rgba(255,255,255,0.22) !important;
  border-radius: 50% !important;
  box-shadow: 0 8px 24px rgba(0,0,0,0.5) !important;
  cursor: pointer !important;
  transition: border-color 0.2s ease, background-color 0.2s ease, transform 0.2s ease !important;
}
.calendly-overlay .calendly-popup .calendly-popup-close:hover {
  border-color: #7487ff !important;
  background-color: rgba(54,85,255,0.25) !important;
  transform: scale(1.05) !important;
}
/* Mobile: Calendly's default popup sizing clips on small screens (iframe taller than viewport, close button escapes off the top). Pin to the viewport with safe-area padding so the whole scheduler is usable without horizontal or vertical cutoff. */
@media (max-width: 760px) {
  .calendly-overlay { padding: 0 !important; }
  .calendly-overlay .calendly-popup {
    position: fixed !important;
    top: max(12px, env(safe-area-inset-top)) !important;
    left: 8px !important;
    right: 8px !important;
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    width: auto !important;
    height: auto !important;
    max-width: none !important;
    max-height: none !important;
    margin: 0 !important;
    border-radius: 10px !important;
    overflow: hidden !important;
  }
  .calendly-overlay .calendly-popup .calendly-popup-content {
    height: 100% !important;
    width: 100% !important;
  }
  .calendly-overlay .calendly-popup iframe {
    width: 100% !important;
    height: 100% !important;
    border-radius: 10px !important;
  }
  /* Move close button INSIDE the popup's top-right corner so it doesn't clip above the viewport on phones. */
  .calendly-overlay .calendly-popup .calendly-popup-close {
    top: 10px !important;
    right: 10px !important;
    width: 38px !important;
    height: 38px !important;
    z-index: 10 !important;
    background-color: rgba(14,14,34,0.92) !important;
    background-size: 16px 16px !important;
  }
}
