/* Shared feature page visuals */

/* Light section surface (waves + .fp-section-light stay in sync) */
:root {
  --fp-section-light-bg: #f5f7fb;
}

/* ==========================================================================
   Luminary — clean parallax background (alternative to cosmos).
   A static composition of three atmospheric glow zones on deep navy,
   with a barely-there dot grid for tactile depth. No animation.
   Parallax comes from position:fixed on ::before — page content scrolls
   over the pinned background, creating natural depth without iOS jank.
   ========================================================================== */

main.fp-luminary-main {
  position: relative;
  isolation: isolate;
  overflow-x: clip;
  overflow-y: clip;
  /* Base navy on the element itself — immune to Turbo navigation timing gaps.
     Transparent sections (like the CTA's .gloss-overlay) always see this color
     even before ::before is fully painted on a freshly-swapped page. */
  background: linear-gradient(158deg, #0f2040 0%, #132855 52%, #173060 100%);
}

main.fp-luminary-main::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  /* Glow overlays only — base navy lives on the element itself */
  background:
    /* Top-left bloom — Bootstrap primary blue */
    radial-gradient(
      ellipse 110% 90% at 8% 12%,
      rgba(13, 110, 253, 0.22) 0%,
      rgba(13, 110, 253, 0.14) 30%,
      rgba(13, 110, 253, 0.05) 65%,
      transparent 85%
    ),
    /* Right-center blue halo */
    radial-gradient(
        ellipse 100% 85% at 92% 42%,
        rgba(59, 130, 246, 0.2) 0%,
        rgba(59, 130, 246, 0.12) 32%,
        rgba(59, 130, 246, 0.04) 65%,
        transparent 82%
      ),
    /* Lower-center deeper blue — grounds the composition */
    radial-gradient(
        ellipse 120% 70% at 46% 100%,
        rgba(30, 64, 175, 0.22) 0%,
        rgba(30, 64, 175, 0.13) 35%,
        rgba(30, 64, 175, 0.04) 65%,
        transparent 82%
      );
}

/* Dot grid rendered by luminary-grid Stimulus controller (canvas) */

/* ==========================================================================
   Dark section — secondary sections background (sits on fp-luminary-main bg)
   Light section — card surface
   ========================================================================== */

.fp-section-light {
  background: var(--fp-section-light-bg);
}


/* ==========================================================================
   Small glass card (lightweight, for benefit / feature grids on dark bg)
   ========================================================================== */

.fp-card-glass-sm {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  transition: all 0.2s ease;
}

.fp-card-glass-sm:hover {
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(13, 110, 253, 0.4) !important;
  transform: translateY(1%) scale(1.02);
  transition: all 0.2s ease !important;
}

/* Pricing cards — override generic glass hover to match fp-pricing-pro lift */
#pricing .fp-card-glass-sm:hover {
  transform: translateY(-1%) scale(0.94);
  transition: all 0.2s ease !important;
}

/* ==========================================================================
   Light card variant (for use on fp-section-light backgrounds)
   ========================================================================== */

.fp-card-light {
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.07) !important;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06) !important;
  transition: all 0.2s ease;
}

.rg-row-hover {
  transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
  cursor: default;
}
.rg-row-hover:hover {
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.fp-card-light:hover {
  border-color: rgba(13, 110, 253, 0.25) !important;
  box-shadow:
    0 6px 24px rgba(13, 110, 253, 0.1),
    0 2px 8px rgba(0, 0, 0, 0.06) !important;
  transform: translateY(-3px);
  transition: all 0.2s ease !important;
}

/* Dark card variant (for use on dark/gradient backgrounds) */
.fp-card-dark {
  transition: all 0.2s ease;
}

/* ==========================================================================
   Testimonial tabs (homepage social proof section)
   Card-style triggers instead of Bootstrap's default underline tabs.
   Palette matches .fp-card-light above.
   ========================================================================== */

.fp-testimonials .nav-tabs {
  border-bottom: 0;
}

.fp-testimonials .nav-tabs .nav-link {
  background: transparent;
  border: 1px solid rgba(0, 0, 0, 0.07);
  color: #6c757d;
  text-align: left;
  transition: all 0.2s ease;
}

.fp-testimonials .nav-tabs .nav-link:hover {
  border-color: rgba(13, 110, 253, 0.25);
}

.fp-testimonials .nav-tabs .nav-link.active {
  background: #ffffff;
  border-color: rgba(0, 0, 0, 0.07);
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  color: #0d1117;
}

/* Quote pane typography — this Bootstrap build has no fs-* utilities, so size
   explicitly (same approach as the landing-page testimonials). */
.fp-testimonials .tab-content h4 {
  font-size: clamp(1.5rem, 2.4vw, 2rem);
}

.fp-testimonials .tab-content p {
  font-size: clamp(1.15rem, 1.6vw, 1.35rem);
}

.fp-card-dark:hover {
  border-color: rgba(255, 255, 255, 0.5) !important;
  box-shadow:
    0 6px 24px rgba(0, 0, 0, 0.3),
    0 2px 8px rgba(255, 255, 255, 0.05) !important;
  transform: translateY(-3px);
  background-color: rgba(255, 255, 255, 0.18) !important;
  transition: all 0.2s ease !important;
}

/* ==========================================================================
   Icon circles for dark backgrounds
   ========================================================================== */

.fp-icon-circle {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fp-icon-circle i,
.fp-icon-circle-light i {
  line-height: 1;
  display: block;
}

/* ==========================================================================
   Feature highlight visual placeholder (dark bg, for the icon display area)
   ========================================================================== */

.fp-highlight-visual {
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.18);
}

/* ==========================================================================
   Spacing utilities (py-lg-6 missing from Bootstrap defaults)
   ========================================================================== */

@media (min-width: 992px) {
  .py-lg-6 {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }
}

/* ==========================================================================
   Gloss overlay — white glass tint matching fp-card-glass-sm, with a subtle
   top-edge sheen baked into the gradient (no ::before, avoids conflicts with
   sections that have their own pseudo-elements like fp-cta-aurora).
   ========================================================================== */

.gloss-overlay {
  position: relative;
  background: linear-gradient(
    180deg,
    rgba(13, 110, 253, 0.05) 0%,
    rgba(13, 110, 253, 0.03) 30%,
    rgba(13, 110, 253, 0.03) 100%
  );
  border-top: 1px solid rgba(13, 110, 253, 0.12);
  border-bottom: 1px solid rgba(13, 110, 253, 0.06);
}

/* ==========================================================================
   Sticky header — applies when marketing CSS is bundled (public pages only).

   NOTE: backdrop-filter intentionally omitted — it creates a new containing
   block for fixed-position children, which breaks the mobile offcanvas drawer.
   ========================================================================== */

header.header.navbar {
  position: sticky;
  top: 0;
  z-index: 1030;
  background-color: rgba(8, 20, 40, 0.96) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

/* On large screens the offcanvas becomes inline — its bg-dark child would
   otherwise show a different shade from the header background. */
@media (min-width: 992px) {
  header.header.navbar .offcanvas-body {
    background-color: transparent !important;
  }
}

/* ==========================================================================
   Pricing card variants for dark pages
   ========================================================================== */

.fp-pricing-popular {
  background: rgba(13, 110, 253, 0.12);
  border: 1px solid rgba(13, 110, 253, 0.45) !important;
  box-shadow:
    0 0 40px rgba(13, 110, 253, 0.18),
    0 8px 32px rgba(0, 0, 0, 0.4);
  transition: all 0.2s ease;
}

.fp-pricing-popular:hover {
  background: rgba(13, 110, 253, 0.18) !important;
  border-color: rgba(13, 110, 253, 0.65) !important;
  box-shadow:
    0 0 52px rgba(13, 110, 253, 0.28),
    0 12px 36px rgba(0, 0, 0, 0.45);
  transform: translateY(-3px);
  transition: all 0.2s ease !important;
}

.fp-pricing-pro {
  background: linear-gradient(135deg, #000000 0%, #1a1a1a 50%, #2d2416 100%);
  border: 1px solid rgba(255, 193, 7, 0.45) !important;
  box-shadow:
    0 0 40px rgba(255, 193, 7, 0.18),
    0 8px 32px rgba(0, 0, 0, 0.5);
  transition: all 0.2s ease;
}

.fp-pricing-pro:hover {
  background: linear-gradient(
    135deg,
    #0d0b00 0%,
    #1f1a00 50%,
    #2d2416 100%
  ) !important;
  border-color: rgba(255, 193, 7, 0.85) !important;
  box-shadow:
    0 0 0 4px rgba(255, 193, 7, 0.12),
    0 0 40px 8px rgba(255, 193, 7, 0.35),
    0 12px 40px rgba(0, 0, 0, 0.6);
  transform: translateY(-1%) scale(0.94);
  transition: all 0.2s ease !important;
}

@media (min-width: 992px) {
  .fp-card-md-small {
    transform: scale(0.94);
  }
}

/* ==========================================================================
   Home hero — light-to-dark gradient with offset image stack.
   ========================================================================== */

.fp-hero-home {
  position: relative;
  z-index: 2;
  /* Devices may extend past the inner container */
  overflow: visible;
  /* Overall hero band height — cosmos shows through; wave sits on the bottom edge */
  min-height: 700px;
}

/* Above .fp-wave-overlay (z-index: 2) so copy + device mockups sit over the curved divider */
.fp-hero-home-inner {
  position: relative;
  z-index: 3;
}

/* Mobile: pad enough to keep content above the wave overlay (wave is 34px tall on mobile) */
@media (max-width: 991.98px) {
  .fp-hero-home-inner {
    padding-bottom: 3rem;
  }
}

/* Content row min-height: desktop aligns copy + device stack; mobile uses natural height */
@media (min-width: 992px) {
  .fp-hero-home-row {
    min-height: 560px;
  }
}

/* below lg: height follows content */
@media (max-width: 991.98px) {
  .fp-hero-home {
    min-height: 0;
  }
}

.fp-hero-home::after,
.fp-hero-bloom::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: 0.032;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='250' height='250'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.8' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='250' height='250' filter='url(%23n)'/%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 250px 250px;
}

/* Home hero — device stack (iPad behind, iPhone in front on lg+) */
.fp-hero-device-col {
  overflow: visible;
}


.fp-hero-device-stack {
  position: relative;
  min-height: 300px;
  padding: 8px 0 28px;
}

/* Hero "Calculate Savings" button — frosted glass to match the section vibe,
   white text so it stays easy to read, with a periodic shimmer sweep that
   draws a little attention to the calculator without being distracting. */
.fp-hero-calc-btn {
  position: relative;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 0.5rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 4px 20px rgba(0, 0, 0, 0.25);
  transition: background 0.25s ease, border-color 0.25s ease, transform 0.25s ease, box-shadow 0.25s ease;
}

.fp-hero-calc-btn {
  --bs-btn-active-color: #fff;
  --bs-btn-hover-color: #fff;
}

.fp-hero-calc-btn:hover,
.fp-hero-calc-btn:focus,
.fp-hero-calc-btn:focus-visible,
.fp-hero-calc-btn:active {
  color: #fff !important;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.2), rgba(255, 255, 255, 0.08));
  border-color: rgba(255, 255, 255, 0.45);
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.22), 0 6px 24px rgba(13, 110, 253, 0.25);
}

/* Diagonal light sweep — glints across once, then rests, on a slow loop */
.fp-hero-calc-btn::after {
  content: "";
  position: absolute;
  top: 0;
  left: -150%;
  width: 60%;
  height: 100%;
  pointer-events: none;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.35), transparent);
  transform: skewX(-20deg);
  animation: fp-hero-calc-shimmer 5s ease-in-out infinite;
}

@keyframes fp-hero-calc-shimmer {
  0%   { left: -150%; }
  55%  { left: 150%; }
  100% { left: 150%; }
}

@media (prefers-reduced-motion: reduce) {
  .fp-hero-calc-btn::after {
    animation: none;
  }
}


@media (min-width: 992px) {
  .fp-hero-device-col {
    /* Let mockups extend past the column / container gutter */
    padding-right: 0;
  }

  .fp-hero-device-stack {
    position: relative;
    min-height: 520px;
    padding: 32px 0 56px;
    /* Widen and offset so art can bleed without staying inside the col box */
    width: calc(100% + min(18vw, 10rem));
    max-width: none;
    margin-left: min(-3rem, -4vw);
    margin-right: min(-4rem, -6vw);
  }
}

/* iPad: back layer, desktop only — left-aligned so the full UI stays readable */
.fp-hero-device-ipad {
  position: absolute;
  left: 0;
  top: 50%;
  width: 86%;
  max-width: 560px;
  z-index: 3;
  object-fit: contain;
  object-position: left center;
  transform: translateY(-50%);
}

@media (min-width: 992px) {
  .fp-hero-device-ipad {
    left: -10%;
    width: 125%;
    max-width: 860px;
    transform: translateY(-48%);
  }
}

/* iPhone: front layer — mobile: centered, stacked under copy */
.fp-hero-device-iphone {
  position: relative;
  z-index: 4;
  display: block;
  width: 100%;
  max-width: 320px;
  margin-left: auto;
  margin-right: auto;
  object-fit: contain;
}

/* Part of the handset sits below the wave; #features gets padding to clear it */
@media (max-width: 991.98px) {
  .fp-hero-device-iphone {
    /* Slightly smaller than desktop cap; stack is width: fit-content so the col hugs the bitmap */
    max-width: min(304px, 82vw);
    width: auto;
    height: auto;
    margin-left: 0;
    margin-right: 0;
    /*
      No transform or negative margin-top here — those caused the image to overlap the
      CTA buttons above. Instead, negative margin-bottom on .fp-hero-device-stack bleeds
      the bottom of the phone into the features section below, which already has extra
      padding-top to clear it.
    */
  }
}

@media (min-width: 992px) {
  /* iPhone: larger, anchored bottom-right with offset past the stack edge */
  .fp-hero-device-iphone {
    position: absolute;
    right: -22%;
    bottom: 5%;
    left: auto;
    top: auto;
    width: 42%;
    max-width: 320px;
    margin: 0;
    object-position: right bottom;
  }
}

.fp-hero-bloom {
  position: relative; /* needed for ::after noise texture */
}

/* ==========================================================================
   Home hero — real photo with directional dark overlay.
   background-image set via inline style in template (requires asset_path helper).
   ========================================================================== */

.fp-hero-photo {
  background-color: #060f22; /* fallback while image loads */
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* ==========================================================================
   Glossy CTA — frosted-glass panel with shimmer border lines.
   ========================================================================== */

/* Inner content container for CTA aurora sections */
.fp-cta-inner {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 660px;
  margin: 0 auto;
}

/* ==========================================================================
   Light icon circle — tonal primary surface for use on white backgrounds
   ========================================================================== */

.fp-icon-circle-light {
  background: rgba(13, 110, 253, 0.08);
  border: 1px solid rgba(13, 110, 253, 0.12);
}



/* ==========================================================================
   Hero wave — bottom curve from hero into the first light section only.
   Mid-page transitions are flat. Path fill uses --fp-wave-to (light surface).
   ========================================================================== */

.fp-wave {
  --fp-wave-from: transparent;
  --fp-wave-to: var(--fp-section-light-bg);
  display: block;
  line-height: 0;
  overflow: hidden;
  margin-top: -1px; /* prevent hairline sub-pixel gap */
  background: var(--fp-wave-from);
}

.fp-wave svg {
  display: block;
  width: 100%;
  height: 60px;
}

.fp-wave path {
  fill: var(--fp-wave-to);
}

/* Attach a wave directly to a hero so it inherits the hero bg naturally. */
.fp-wave-overlay {
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  z-index: 2;
  margin-top: 0;
  background: transparent;
  pointer-events: none;
}

.fp-wave-overlay svg {
  height: 110px;
}

@media (max-width: 767.98px) {
  .fp-wave svg {
    height: 28px;
  }

  .fp-wave-overlay svg {
    height: 34px;
  }
}

/* ==========================================================================
   Light-section social proof logo strip
   ========================================================================== */

.fp-logo-strip-light .fp-card-glass-sm {
  background: #f4f7ff !important;
  border: 1px solid rgba(13, 110, 253, 0.08) !important;
}

.fp-logo-strip-light .fp-card-glass-sm:hover {
  border-color: rgba(13, 110, 253, 0.2) !important;
  background: #edf2ff !important;
}

/* Dark card: strip uses !important light styles — raise specificity so Bootstrap bg-dark applies */
.fp-logo-strip-light .fp-card-glass-sm.bg-dark {
  background-color: var(--bs-dark) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
}

.fp-logo-strip-light .fp-card-glass-sm.bg-dark:hover {
  background-color: var(--bs-gray-900) !important;
  border-color: rgba(255, 255, 255, 0.2) !important;
}

/* ==========================================================================
   Star Ratings Booster — hero + flow diagram
   ========================================================================== */

/* Split hero background: full blue, white clipped to left with angled edge */
.srb-hero-section {
  background: #ffffff;
}

@media (max-width: 991.98px) {
  .srb-copy-col {
    border-bottom: 1px solid rgba(13, 110, 253, 0.15);
    padding-bottom: 2.5rem;
  }
}

@media (min-width: 992px) {
  /* Full section is blue; white pseudo-element covers the left with a diagonal cut */
  .srb-hero-section {
    background: #e2eeff;
  }

  .srb-hero-section::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    bottom: 0;
    width: calc(50vw - 120px);
    background: #ffffff;
    z-index: 0;
  }
}

/* Hero badge pill */
.srb-hero-badge {
  background: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  border: 1px solid rgba(13, 110, 253, 0.25);
  border-radius: 50px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.4em 1em;
}

/* Flow node cards (top two) — blue tint matching branch pill style */
.srb-flow-node-primary {
  background: #ffffff;
  border: 1.5px solid #bfdbfe;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
}

.srb-flow-node-icon {
  color: #1d4ed8;
}

.srb-flow-node-text {
  color: #1e3a8a;
}

.srb-flow-node-subtext {
  color: #3b82f6;
}

/* Arrow icons between cards */
.srb-flow-arrow-icon {
  color: #0d1117;
  font-size: 1.4rem;
}

.srb-branch-row {
  gap: 0;
}

.srb-branch-label {
  flex: 1;
}

/* Secondary palette for recovery path (1-4 stars) */
.srb-branch-low {
  background: #fef0ec;
  border: 1.5px solid #f9bba8;
}

/* Emerald palette for success path (5 stars) */
.srb-branch-high {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
}

.srb-outcome-card {
  flex: 1;
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.srb-outcome-low {
  background: #fef0ec;
  border: 1.5px solid #f9bba8;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.srb-outcome-high {
  background: #ecfdf5;
  border: 1.5px solid #6ee7b7;
  box-shadow: 0 8px 32px rgba(16, 185, 129, 0.08);
}

/* Icon circles inside outcome cards */
.srb-icon-circle {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.srb-icon-circle-low {
  background: rgba(233, 81, 41, 0.12);
}
.srb-icon-circle-high {
  background: rgba(16, 185, 129, 0.12);
}
.srb-icon-circle-blue {
  background: rgba(13, 110, 253, 0.12);
}

/* Review platform logos */
.srb-review-logo {
  width: 44px;
  height: 44px;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
  transition: transform 0.2s ease;
}
.srb-review-logo:hover {
  transform: scale(1.12);
}

@keyframes srb-fade-up {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.srb-animate {
  animation: srb-fade-up 0.8s ease both;
}

/* ==========================================================================
   Feature page hero — single screenshot offset layout (SEO page)
   ========================================================================== */

.fp-hero-seo-col {
  overflow: visible;
}

.fp-hero-seo-frame {
  position: relative;
  padding: 1.5rem 0;
}

.fp-hero-seo-screenshot {
  display: block;
  width: 100%;
  max-width: 520px;
  margin: 0 auto;
}

@media (max-width: 991.98px) {
  .fp-hero-seo-col {
    padding-top: 1.5rem;
    padding-bottom: 0;
    align-self: flex-end;
    width: 100%;
  }

  .fp-hero-seo-frame {
    padding: 1rem 0 0;
  }
}

@media (min-width: 992px) {
  .fp-hero-seo-col {
    padding-right: 0;
  }

  .fp-hero-seo-frame {
    min-height: 480px;
    width: calc(100% + min(16vw, 9rem));
    max-width: none;
    margin-left: min(-2rem, -3vw);
    margin-right: min(-4rem, -6vw);
  }

  .fp-hero-seo-screenshot {
    position: absolute;
    top: 50%;
    left: 0;
    width: 100%;
    max-width: none;
    margin: 0;
    transform: translateY(-40%);
  }
}

/* ── Bento grid ──────────────────────────────────────────────────── */
.rg-bento {
  display: grid;
  grid-template-columns: repeat(12, 1fr);
  gap: 20px;
}
.rg-tile--lead {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  border-radius: 14px !important;
}
/* Lead tile with full-width CTA row: match vertical rhythm to side padding (no extra row gap). */
.rg-tile--lead.rg-tile--lead--footer-cta {
  column-gap: 40px;
  row-gap: 0;
}
.rg-tile--half {
  grid-column: span 6;
  display: grid;
  grid-template-rows: 600px auto;
  gap: 0;
  border-radius: 14px !important;
}
.rg-tile--wide {
  grid-column: span 12;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 40px;
  align-items: center;
  border-radius: 14px !important;
}
.rg-tile--dark {
  background: #0d1117 !important;
  border-color: #0d1117 !important;
}
.rg-tile--dark .rg-stage-grid {
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.12) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.12) 1px, transparent 1px);
  mask-image:
    linear-gradient(to right, transparent, black 8%, black 92%, transparent),
    linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent, black 8%, black 92%, transparent),
    linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
  -webkit-mask-composite: source-in;
}
.rg-tile--dark .rg-stage-glow {
  opacity: 0.55;
  background: radial-gradient(
    ellipse 80% 70% at 50% 40%,
    var(--glow, rgba(110, 160, 255, 0.3)),
    transparent 70%
  );
}

/* ── Feature Hero Variants ────────────────────────────────────────── */
.rg-hero-bloom--gift {
  background: linear-gradient(165deg, #e8eef8 0%, #e2eaf5 48%, #dee6f2 100%) !important;
}

.rg-hero-container--gift {
  padding-bottom: 2.75rem;
}

@media (min-width: 768px) {
  .rg-hero-container--gift {
    padding-bottom: 7.5rem;
  }
}

.rg-hero-bloom--seo {
  background: linear-gradient(165deg, #e6eff9 0%, #dce9f6 48%, #d6e5f4 100%) !important;
}

.rg-hero-container--seo {
  padding-bottom: 2.75rem;
}

@media (min-width: 768px) {
  .rg-hero-container--seo {
    padding-bottom: 7.5rem;
  }
}

.rg-tile--hero-clean {
  grid-column: span 12;
  display: grid !important;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: flex-start;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

@media (min-width: 981px) {
  .rg-tile--hero-clean {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) !important;
    gap: 60px !important;
    align-items: center !important;
  }
  .rg-tile--hero-clean--reversed {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) !important;
  }
  .rg-tile--hero-clean--reversed > *:first-child { order: 2; }
  .rg-tile--hero-clean--reversed > *:last-child  { order: 1; }
  .rg-tile--hero-clean--canvas-first {
    grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr) !important;
  }
}

.rg-tile--hero-clean--canvas-first {
  gap: 24px;
}

.rg-tile-canvas--primary-blue {
  border-radius: 14px !important;
  overflow: hidden !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

.rg-stage--primary-blue {
  background: #bfdbfe !important; /* Opaque Blue 200 */
  --glow: #3b82f6; /* Blue 500/600 */
}

/* Ensure children components (grid/glow) adopt dark colors on the light blue background */
.rg-tile-canvas--primary-blue .rg-stage-grid {
  background-image:
    linear-gradient(to right, rgba(13, 17, 23, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 17, 23, 0.09) 1px, transparent 1px) !important;
  mask-image:
    linear-gradient(to right, transparent, black 8%, black 92%, transparent),
    linear-gradient(to bottom, transparent, black 8%, black 92%, transparent) !important;
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent, black 8%, black 92%, transparent),
    linear-gradient(to bottom, transparent, black 8%, black 92%, transparent) !important;
  -webkit-mask-composite: source-in;
}

.rg-tile-canvas--primary-blue .rg-stage-glow {
  opacity: 0.7 !important;
  background: radial-gradient(
    ellipse 80% 70% at 50% 40%,
    var(--glow),
    transparent 70%
  ) !important;
}

.rg-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  line-height: 1;
  text-transform: uppercase;
  letter-spacing: 0.16em;
  font-weight: 600;
  color: #2f6fed;
  margin-bottom: 0;
}
.rg-eyebrow::before {
  content: "";
  flex-shrink: 0;
  width: 6px;
  height: 6px;
  margin-bottom: 1px;
  border-radius: 50%;
  background: currentColor;
  animation: rg-eyebrow-pulse 2.4s ease-in-out infinite;
}
@keyframes rg-eyebrow-pulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.4; }
}
.rg-eyebrow--refund {
  color: #ea580c;
}
.rg-eyebrow--invoice {
  color: #e11d48;
}
.rg-eyebrow--overrides {
  color: #2563eb;
}
.rg-eyebrow--green {
  color: #16a34a;
}
.rg-eyebrow--blue-light {
  color: #6ea0ff;
}

/* ── Image stage ─────────────────────────────────────────────────── */
.rg-stage {
  position: relative;
  overflow: hidden;
  border-radius: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  isolation: isolate;
  background: var(--stage, #eef2ff);
  min-height: 280px;
}
.rg-tile--half .rg-stage {
  min-height: unset;
  height: 100%;
}

.rg-tile--hero-clean .rg-stage {
  min-height: unset;
}
.rg-stage-grid {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(to right, rgba(13, 17, 23, 0.09) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(13, 17, 23, 0.09) 1px, transparent 1px);
  background-size: 24px 24px;
  mask-image:
    linear-gradient(to right, transparent, black 8%, black 92%, transparent),
    linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
  mask-composite: intersect;
  -webkit-mask-image:
    linear-gradient(to right, transparent, black 8%, black 92%, transparent),
    linear-gradient(to bottom, transparent, black 8%, black 92%, transparent);
  -webkit-mask-composite: source-in;
  z-index: 0;
}
.rg-stage-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    ellipse 70% 60% at 50% 30%,
    var(--glow, #c7d2fe),
    transparent 70%
  );
  opacity: 0.7;
  z-index: 0;
}
.rg-stage img {
  position: relative;
  z-index: 1;
  max-width: 100%;
  max-height: 100%;
  height: auto;
  width: auto;
  border-radius: 8px;
  filter: drop-shadow(0 18px 30px rgba(13, 17, 23, 0.18))
    drop-shadow(0 4px 10px rgba(13, 17, 23, 0.08));
  transition:
    transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
    filter 0.35s ease;
  will-change: transform;
}
.rg-stage:hover img {
  transform: perspective(900px) rotateY(-5deg) rotateX(3deg) scale(1.02);
  filter: drop-shadow(0 22px 34px rgba(13, 17, 23, 0.22))
    drop-shadow(0 5px 12px rgba(13, 17, 23, 0.1));
}

/* ==========================================================================
   Feature-page hero — screenshot absolutely positioned, left bleed + wave overlap
   ========================================================================== */

/* Mobile: static, centered below the text/buttons */
.fp-hero-feat-img-abs {
  display: block;
  text-align: center;
  line-height: 0;
}

/* Desktop: absolutely positioned, right bleed + wave overlap */
@media (min-width: 992px) {
  .fp-hero-feat-img-abs {
    position: absolute;
    padding: 0;
    text-align: left;
    /* Below ~1736px: bleed 6vw past the right edge for a lively crop.
       Above ~1736px: track the container so the image stays ~20px from the
       text column rather than drifting further right as the viewport grows. */
    right: max(-6vw, calc(50% - 972px));
    /* Vertically: from ~8% of section height down to 55px past section bottom
       (wave overlay is 110px tall — this lands roughly mid-wave) */
    top: 6%;
    bottom: -55px;
    /* Wide enough to fill the right ~55% of the viewport; capped so it never walks into the text column on ultra-wide screens */
    width: 62vw;
    max-width: 1050px;
    /* Higher than fp-hero-home-inner (z-index: 3) so the full image receives pointer events */
    z-index: 4;
    pointer-events: auto;
  }
}

.fp-hero-feat-img {
  display: inline-block;
  max-width: 100%;
  height: auto;
  border-radius: 10px;
  filter: drop-shadow(0 24px 48px rgba(13, 17, 23, 0.36))
    drop-shadow(0 6px 16px rgba(13, 17, 23, 0.18));
}

@media (min-width: 992px) {
  .fp-hero-feat-img {
    display: block;
    width: 100%;
    max-width: 1056px;
  }
}


@media (max-width: 980px) {
  .rg-bento {
    grid-template-columns: 1fr;
  }
  .rg-tile--lead,
  .rg-tile--half,
  .rg-tile--wide {
    grid-column: 1 / -1;
  }
  .rg-tile--lead,
  .rg-tile--wide {
    grid-template-columns: 1fr;
  }
  .rg-tile--half {
    grid-template-rows: auto auto;
  }
  .rg-tile--half .rg-stage {
    min-height: 260px;
    height: auto;
  }
}

/* ==========================================================================
   Comparison Section — Side-by-Side Competitor Comparison
   ========================================================================== */

.comparison {
  background-color: rgba(8, 20, 40, 0.96) !important;
  color: #fff;
}

.comparison .section-title {
  color: #fff;
}

/* Boolean cell icons (rendered as premium modern badges) */
.comparison__yes {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: rgba(40, 200, 64, 0.12);
  color: #28c840;
  font-size: 1.15rem;
  border: 1px solid rgba(40, 200, 64, 0.35);
}

.comparison__no {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.35);
  font-size: 1.15rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.comparison__partial {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.85rem;
  height: 1.85rem;
  border-radius: 50%;
  background: rgba(254, 188, 46, 0.12);
  color: #febc2e;
  font-size: 1.15rem;
  border: 1px solid rgba(254, 188, 46, 0.35);
}

/* --- Desktop table ------------------------------------------------------ */
.comparison__table {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  padding: 1.5rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.comparison__grid {
  width: 100%;
  table-layout: fixed;
  border-collapse: separate;
  border-spacing: 0;
}

.comparison__grid th,
.comparison__grid td {
  padding: 1.25rem 1.75rem;
  text-align: center;
  vertical-align: middle;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  transition: background-color 0.2s ease;
}

.comparison__grid thead th {
  font-weight: 600;
  font-size: 1.1rem;
  color: rgba(255, 255, 255, 0.55);
  border-bottom: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 1rem;
  padding-bottom: 1.5rem;
}

.comparison__grid tbody tr:hover td:not(.comparison__cell--us),
.comparison__grid tbody tr:hover th:not(.comparison__rowhead) {
  background: rgba(255, 255, 255, 0.02);
}

.comparison__grid tbody tr:last-child th,
.comparison__grid tbody tr:last-child td {
  border-bottom: none;
}

.comparison__rowhead {
  text-align: left !important;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  width: 32%;
}

.comparison__rowhead-note {
  display: block;
  font-weight: 400;
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  margin-top: 2px;
  font-style: italic;
}

.comparison__col {
  width: 17%;
}

/* The highlighted "Us" column — a brand-tinted panel running down the table */
.comparison__col--us {
  color: #fff !important;
  font-weight: 700 !important;
}

.comparison__cell--us,
.comparison__grid thead .comparison__col--us {
  background: rgba(13, 110, 253, 0.12) !important;
  color: #fff;
  font-weight: 700;
}

.comparison__grid thead .comparison__col--us {
  border-top-left-radius: 0.5rem;
  border-top-right-radius: 0.5rem;
  box-shadow: inset 1px 1px 0 rgba(13, 110, 253, 0.5),
              inset -1px 0 0 rgba(13, 110, 253, 0.5);
  border-bottom: 1px solid rgba(13, 110, 253, 0.2) !important;
}

.comparison__grid tbody tr:last-child .comparison__cell--us {
  border-bottom-left-radius: 0.5rem;
  border-bottom-right-radius: 0.5rem;
}

.comparison__cell--us {
  border-bottom-color: rgba(13, 110, 253, 0.2) !important;
  box-shadow: inset 1px 0 0 rgba(13, 110, 253, 0.5),
              inset -1px 0 0 rgba(13, 110, 253, 0.5);
}

.comparison__grid tbody tr:last-child .comparison__cell--us {
  box-shadow: inset 1px 0 0 rgba(13, 110, 253, 0.5),
              inset -1px 0 0 rgba(13, 110, 253, 0.5),
              inset 0 -1px 0 rgba(13, 110, 253, 0.5);
}

/* --- Mobile stacked cards ----------------------------------------------- */
.comparison__stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.comparison__card {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.5rem;
  padding: 1.25rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.comparison__card-feature {
  font-weight: 600;
  font-size: 1.05rem;
  margin-bottom: 0.75rem;
}

.comparison__card-rows {
  margin: 0;
}

.comparison__card-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.comparison__card-row dt {
  font-weight: 400;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  margin-bottom: 0;
}

.comparison__card-row dd {
  margin: 0;
  font-weight: 600;
}

.comparison__card-row--us dt {
  color: #fff;
  font-weight: 600;
}

.comparison__card-row--us dd {
  color: #fff;
  font-weight: 600;
}

/* --- Economics table: emphasize the dollar figures ---------------------- */
.comparison__table--economics .comparison__cell {
  font-size: 1.15rem;
  font-weight: 600;
}

/* Info icon on economics column headers — popover reveals the fee math */
.comparison__col-info {
  margin-left: 0.4rem;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.45);
  vertical-align: middle;
  transition: color 0.2s ease;
}

.comparison__col-info:hover,
.comparison__col-info:focus {
  color: rgba(255, 255, 255, 0.85);
}

/* Inline fee-math note under each platform name in the mobile economics cards */
.comparison__card-note {
  display: block;
  margin-top: 0.15rem;
  font-size: 0.78rem;
  font-weight: 400;
  line-height: 1.25;
  color: rgba(255, 255, 255, 0.5);
}

/* ==========================================================================
   Comparison auto-rotating tabs (see auto_tabs_controller.js)
   ========================================================================== */

/* Tab nav — full-width underline-style tab bar */
.comparison-tabs__nav {
  display: flex;
  gap: 0;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

.comparison-tabs__tab {
  position: relative;
  overflow: hidden;
  flex: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1rem;
  border: none;
  border-radius: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.45);
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  cursor: pointer;
  transition: color 0.25s ease, background-color 0.25s ease;
}

.comparison-tabs__tab:hover {
  color: rgba(255, 255, 255, 0.85);
  background: rgba(255, 255, 255, 0.04);
}

.comparison-tabs__tab:focus-visible {
  outline: 2px solid rgba(13, 110, 253, 0.7);
  outline-offset: -2px;
}

.comparison-tabs__tab.is-active {
  color: #fff;
}

/* Progress bar doubles as the active underline indicator */
.comparison-tabs__progress {
  position: absolute;
  left: 0;
  bottom: 0;
  height: 3px;
  width: 0;
  background: linear-gradient(90deg, #0d6efd, #5b9dff);
  border-radius: 0;
}

.comparison-tabs__tab.is-active .comparison-tabs__progress {
  animation: comparison-progress var(--auto-tabs-interval, 8s) linear forwards;
}

.comparison-rotator.is-paused .comparison-tabs__tab.is-active .comparison-tabs__progress {
  animation-play-state: paused;
}

/* Once the user clicks a tab, show a solid underline on the active tab */
.comparison-rotator.is-stopped .comparison-tabs__tab.is-active .comparison-tabs__progress {
  animation: none;
  width: 100%;
}

.comparison-rotator.is-stopped .comparison-tabs__tab:not(.is-active) .comparison-tabs__progress {
  animation: none;
  width: 0;
}

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

/* Panels — only the active one is visible; container height eases between
   the differently sized tables. */
.comparison-tabs__panels {
  position: relative;
  transition: height 0.45s ease;
}

.comparison-tabs__panel {
  position: absolute;
  inset: 0 0 auto 0;
  width: 100%;
  opacity: 0;
  transform: scale(0.98);
  pointer-events: none;
  transition: opacity 0.4s ease, transform 0.4s ease;
}

.comparison-tabs__panel.is-active {
  position: relative;
  opacity: 1;
  transform: scale(1);
  pointer-events: auto;
}

@media (prefers-reduced-motion: reduce) {
  .comparison-tabs__panels { transition: none; }
  .comparison-tabs__panel {
    transform: none;
    transition: none;
  }
  .comparison-tabs__tab.is-active .comparison-tabs__progress {
    animation: none;
  }
}

/* "Your Savings" results tab — hidden until the inline calculator runs */
.comparison-tabs__tab.is-hidden {
  display: none;
}

.comparison-tabs__panel--savings {
  padding: 0.25rem 0 0.5rem;
}

/* Loader / results sub-views inside the savings panel toggle via .is-active.
   Capped + centered so the cost cards don't stretch to the full table width. */
.fee-calc-savings__loader,
.fee-calc-savings__results {
  display: none;
  max-width: 640px;
  margin: 0 auto;
}

.fee-calc-savings__loader.is-active,
.fee-calc-savings__results.is-active {
  display: block;
}

/* The reused modal loader is sized for a full modal; shrink it inline so the
   panel grows convincingly from loader to results. */
.comparison-tabs__panel--savings .fee-calc-modal__loader {
  min-height: 240px;
}

/* ==========================================================================
   Gem divider — glowing line + rotated diamond gem.
   Reused on both the dark comparison section and between light sections.
   ========================================================================== */

.gem-divider {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0.25rem 0;
}

.gem-divider::before {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  height: 1px;
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(13, 110, 253, 0.15) 15%,
    rgba(13, 110, 253, 0.55) 40%,
    rgba(59, 130, 246, 0.75) 50%,
    rgba(13, 110, 253, 0.55) 60%,
    rgba(13, 110, 253, 0.15) 85%,
    transparent 100%
  );
}

.gem-divider__gem {
  position: relative;
  z-index: 1;
  width: 12px;
  height: 12px;
  background: linear-gradient(135deg, #5b9dff 0%, #0d6efd 100%);
  border-radius: 2px;
  transform: rotate(45deg);
  box-shadow:
    0 0 0 4px rgba(13, 110, 253, 0.1),
    0 0 18px rgba(13, 110, 253, 0.65),
    0 0 36px rgba(13, 110, 253, 0.2);
}

/* ==========================================================================
   Homepage Features Compact Grid
   ========================================================================== */

.features-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

@media (min-width: 768px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 992px) {
  .features-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

@media (min-width: 1200px) {
  .features-grid {
    grid-template-columns: repeat(5, 1fr);
  }
}

.fp-feature-card-compact {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.02);
  transition: all 0.25s ease-in-out;
}

.fp-feature-card-compact:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 24px rgba(13, 110, 253, 0.06);
  border-color: rgba(13, 110, 253, 0.25) !important;
}

a.fp-feature-card-compact--linked {
  color: inherit;
}

a.fp-feature-card-compact--linked:hover {
  color: inherit;
}

.fp-feature-card-compact:not(.fp-feature-card-compact--linked) {
  cursor: default;
}

.fp-feature-card-compact__cta {
  align-self: flex-start;
}

@media (max-width: 767.98px) {
  .features-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
  }

  .fp-feature-card-compact--linked .fp-feature-card-compact__body {
    text-align: left;
    align-items: flex-start;
    justify-content: flex-start;
  }

  .fp-feature-card-compact--linked .fp-feature-card-compact__header {
    justify-content: flex-start;
    margin-bottom: 0.25rem !important;
    gap: 0.4rem;
  }

  .fp-feature-card-compact--linked .fp-feature-card-compact__title {
    font-size: 0.8125rem;
    text-align: left;
    line-height: 1.25;
  }

  .fp-feature-card-compact--linked .fp-icon-circle-light-compact {
    width: 2rem;
    height: 2rem;
    font-size: 0.9rem;
  }

  .fp-feature-card-compact--linked .fp-feature-card-compact__cta {
    align-self: center;
    margin-top: 0 !important;
    font-size: 0.7rem;
    line-height: 1.2;
  }

  .fp-feature-card-compact--linked:hover {
    transform: none;
  }
}

@media (min-width: 768px) {
  .fp-feature-card-compact__body {
    text-align: left;
  }
}

.fp-icon-circle-light-compact {
  width: 40px;
  height: 40px;
  background: rgba(13, 110, 253, 0.06);
  font-size: 1.15rem;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* ==========================================================================
   Fee Calculator Inline Form — under comparison tables
   ========================================================================== */

.fee-calc-inline {
  max-width: 720px;
  margin: 0 auto 1.5rem;
  padding: 1.75rem 2rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 0.75rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.03));
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 1.5rem 4rem rgba(0, 0, 0, 0.3),
              inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.fee-calc-inline__form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  align-items: stretch;
}

.fee-calc-inline__field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  flex: 1;
  min-width: 0;
}

.fee-calc-inline__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.85);
  white-space: nowrap;
}

.fee-calc-inline__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.fee-calc-inline__input-prefix {
  position: absolute;
  left: 0.85rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  pointer-events: none;
  font-size: 0.95rem;
}

.fee-calc-inline__input {
  width: 100%;
  padding: 0.7rem 0.85rem;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.5rem;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -moz-appearance: textfield;
}

.fee-calc-inline__input::-webkit-inner-spin-button,
.fee-calc-inline__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fee-calc-inline__input--currency {
  padding-left: 1.75rem;
}

.fee-calc-inline__input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}

.fee-calc-inline__input:focus {
  border-color: rgba(13, 110, 253, 0.6);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

.fee-calc-inline__revenue {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.2rem;
  padding: 0.65rem 1rem;
  background: rgba(13, 110, 253, 0.12);
  border: 1px solid rgba(13, 110, 253, 0.5);
  border-radius: 0.5rem;
  white-space: nowrap;
}

.fee-calc-inline__revenue-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #fff;
}

.fee-calc-inline__revenue-value {
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
}

.fee-calc-inline__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.5rem;
  border: 1px solid rgba(13, 110, 253, 0.35);
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.12);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  animation: fee-calc-trigger-glow 3s ease-in-out infinite;
}

.fee-calc-inline__btn:hover:not(:disabled) {
  background: rgba(13, 110, 253, 0.22);
  border-color: rgba(13, 110, 253, 0.6);
  box-shadow: 0 0 24px rgba(13, 110, 253, 0.25), 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
  animation: none;
}

.fee-calc-inline__btn:disabled {
  opacity: 0.65;
  cursor: not-allowed;
  animation: none;
}

.fee-calc-inline__revenue {
  flex-direction: row;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.7rem 1.1rem;
}

.fee-calc-inline__btn {
  width: 100%;
  padding: 0.85rem 1.5rem;
}

@media (min-width: 768px) {
  /* Desktop: the three inputs share one row, then the revenue readout and
     the Calculate button stack full-width beneath them. */
  .fee-calc-inline__form {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem 0.85rem;
  }

  .fee-calc-inline__revenue,
  .fee-calc-inline__btn {
    grid-column: 1 / -1;
  }
}

/* ==========================================================================
   Fee Calculator Modal — Custom savings calculator (dark glassmorphism)
   ========================================================================== */

/* ── Trigger button ──────────────────────────────────────────────────── */

.fee-calc-trigger {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.85rem 2rem;
  border: 1px solid rgba(13, 110, 253, 0.35);
  border-radius: 999px;
  background: rgba(13, 110, 253, 0.08);
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: all 0.3s ease;
  letter-spacing: 0.01em;
  animation: fee-calc-trigger-glow 3s ease-in-out infinite;
}

.fee-calc-trigger:hover {
  background: rgba(13, 110, 253, 0.18);
  border-color: rgba(13, 110, 253, 0.6);
  box-shadow: 0 0 24px rgba(13, 110, 253, 0.25), 0 4px 16px rgba(0, 0, 0, 0.3);
  transform: translateY(-1px);
  animation: none;
}

.fee-calc-trigger:active {
  transform: translateY(0);
}

.fee-calc-trigger i:last-child {
  transition: transform 0.2s ease;
}

.fee-calc-trigger:hover i:last-child {
  transform: translateX(3px);
}

@keyframes fee-calc-trigger-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(13, 110, 253, 0); }
  50%      { box-shadow: 0 0 20px rgba(13, 110, 253, 0.2); }
}

/* ── Modal overlay ───────────────────────────────────────────────────── */

.fee-calc-modal {
  position: fixed;
  inset: 0;
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.3s ease, visibility 0s 0.3s;
}

.fee-calc-modal.is-open {
  opacity: 1;
  visibility: visible;
  transition: opacity 0.3s ease, visibility 0s 0s;
}

.fee-calc-modal__backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

/* ── Panel ────────────────────────────────────────────────────────────── */

.fee-calc-modal__panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 620px;
  max-height: 90vh;
  overflow-y: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
  background: linear-gradient(160deg, rgba(22, 30, 52, 0.96), rgba(10, 15, 28, 0.97));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 1.25rem;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 24px 80px rgba(0, 0, 0, 0.5),
              0 0 60px rgba(13, 110, 253, 0.08),
              inset 0 1px 0 rgba(255, 255, 255, 0.12);
  transform: scale(0.92);
  transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

.fee-calc-modal.is-open .fee-calc-modal__panel {
  transform: scale(1);
}

.fee-calc-modal__panel::-webkit-scrollbar {
  display: none;
}

/* ── Close button ─────────────────────────────────────────────────────── */

.fee-calc-modal__close {
  position: absolute;
  top: 1.25rem;
  right: 1.25rem;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.1rem;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fee-calc-modal__close:hover {
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
  border-color: rgba(255, 255, 255, 0.2);
}

/* ── Views (state containers) ─────────────────────────────────────────── */

.fee-calc-modal__view {
  display: none;
  padding: 2.5rem;
}

.fee-calc-modal__view.is-active {
  display: block;
  animation: fee-calc-fade-in 0.35s ease both;
}

@keyframes fee-calc-fade-in {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* ── Header ───────────────────────────────────────────────────────────── */

.fee-calc-modal__header {
  text-align: center;
  margin-bottom: 1.25rem;
}

.fee-calc-modal__title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #fff;
  margin-bottom: 1.25rem;
}

.fee-calc-modal__subtitle {
  font-size: 0.95rem;
  color: rgba(255, 255, 255, 0.5);
  max-width: 480px;
  margin: 0 auto;
  line-height: 1.5;
}

/* ── Input form ───────────────────────────────────────────────────────── */

.fee-calc-modal__form {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  margin-top: 1.75rem;
}

.fee-calc-modal__field {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.fee-calc-modal__label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.7);
  letter-spacing: 0.02em;
}

.fee-calc-modal__input-wrap {
  position: relative;
  display: flex;
  align-items: center;
}

.fee-calc-modal__input-prefix {
  position: absolute;
  left: 1rem;
  color: rgba(255, 255, 255, 0.35);
  font-weight: 600;
  pointer-events: none;
  font-size: 1rem;
}

.fee-calc-modal__input {
  width: 100%;
  padding: 0.85rem 1rem;
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.625rem;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 500;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
  outline: none;
  -moz-appearance: textfield;
}

.fee-calc-modal__input::-webkit-inner-spin-button,
.fee-calc-modal__input::-webkit-outer-spin-button {
  -webkit-appearance: none;
  margin: 0;
}

.fee-calc-modal__input--currency {
  padding-left: 2rem;
}

.fee-calc-modal__input::placeholder {
  color: rgba(255, 255, 255, 0.25);
  font-weight: 400;
}

.fee-calc-modal__input:focus {
  border-color: rgba(13, 110, 253, 0.6);
  box-shadow: 0 0 0 3px rgba(13, 110, 253, 0.15);
}

/* Revenue live counter */

.fee-calc-modal__revenue {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  margin-top: 0.5rem;
  background: rgba(13, 110, 253, 0.06);
  border: 1px solid rgba(13, 110, 253, 0.15);
  border-radius: 0.625rem;
}

.fee-calc-modal__revenue-label {
  font-size: 0.85rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.6);
}

.fee-calc-modal__revenue-value {
  font-size: 1.3rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

/* Calculate button */

.fee-calc-modal__btn-primary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 100%;
  padding: 1rem;
  margin-top: 0.5rem;
  border: none;
  border-radius: 0.625rem;
  background: #0d6efd;
  color: #fff;
  font-size: 1.05rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
}

.fee-calc-modal__btn-primary:hover:not(:disabled) {
  background: #0b5ed7;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.35);
  transform: translateY(-1px);
}

.fee-calc-modal__btn-primary:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

/* ── Loader ────────────────────────────────────────────────────────────── */

.fee-calc-modal__loader {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 545px;
  gap: 2rem;
  padding: 2rem 0;
}

.fee-calc-modal__loader-bars {
  display: flex;
  align-items: flex-end;
  gap: 8px;
  height: 64px;
}

.fee-calc-modal__loader-bar {
  width: 12px;
  border-radius: 4px;
  background: linear-gradient(180deg, #0d6efd, #5b9dff);
  animation: fee-calc-bar-pulse 1s ease-in-out infinite;
}

.fee-calc-modal__loader-bar:nth-child(1) { height: 28px; animation-delay: 0s; }
.fee-calc-modal__loader-bar:nth-child(2) { height: 44px; animation-delay: 0.15s; }
.fee-calc-modal__loader-bar:nth-child(3) { height: 60px; animation-delay: 0.3s; }
.fee-calc-modal__loader-bar:nth-child(4) { height: 36px; animation-delay: 0.45s; }
.fee-calc-modal__loader-bar:nth-child(5) { height: 50px; animation-delay: 0.6s; }

@keyframes fee-calc-bar-pulse {
  0%, 100% { transform: scaleY(0.5); opacity: 0.4; }
  50%      { transform: scaleY(1); opacity: 1; }
}

.fee-calc-modal__loader-text {
  font-size: 1.15rem;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.5);
  letter-spacing: 0.02em;
}

/* ── Results ───────────────────────────────────────────────────────────── */

.fee-calc-modal__results-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.35rem 0.85rem;
  margin-top: 0.5rem;
  background: rgba(13, 110, 253, 0.1);
  border: 1px solid rgba(13, 110, 253, 0.25);
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  color: #5b9dff;
}

.fee-calc-modal__cost-cards {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.fee-calc-modal__cost-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 0.625rem;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0.025));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.1);
  transition: background 0.2s ease;
  animation: fee-calc-card-in 0.4s ease both;
}

.fee-calc-modal__cost-card:nth-child(1) { animation-delay: 0.05s; }
.fee-calc-modal__cost-card:nth-child(2) { animation-delay: 0.15s; }
.fee-calc-modal__cost-card:nth-child(3) { animation-delay: 0.25s; }
.fee-calc-modal__cost-card:nth-child(4) { animation-delay: 0.35s; }

@keyframes fee-calc-card-in {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fee-calc-modal__cost-card:hover {
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.1), rgba(255, 255, 255, 0.04));
}

.fee-calc-modal__cost-card--us {
  background: linear-gradient(160deg, rgba(13, 110, 253, 0.16), rgba(13, 110, 253, 0.08));
  border-color: rgba(13, 110, 253, 0.3);
}

.fee-calc-modal__cost-card--us:hover {
  background: linear-gradient(160deg, rgba(13, 110, 253, 0.2), rgba(13, 110, 253, 0.1));
}

.fee-calc-modal__cost-card-name {
  font-size: 1rem;
  font-weight: 600;
  color: #fff;
}

.fee-calc-modal__cost-card-note {
  display: block;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(255, 255, 255, 0.4);
  margin-top: 1px;
}

.fee-calc-modal__cost-card-right {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.fee-calc-modal__cost-card-amount {
  font-size: 1.25rem;
  font-weight: 700;
  color: #fff;
  font-variant-numeric: tabular-nums;
}

.fee-calc-modal__cost-card--us .fee-calc-modal__cost-card-amount {
  color: #5b9dff;
}

.fee-calc-modal__savings-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  padding: 0.3rem 0.65rem;
  background: rgba(40, 200, 64, 0.1);
  border: 1px solid rgba(40, 200, 64, 0.25);
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  color: #28c840;
  white-space: nowrap;
}

.fee-calc-modal__savings-badge--negative {
  background: rgba(220, 38, 38, 0.1);
  border-color: rgba(220, 38, 38, 0.25);
  color: #ef4444;
}

/* ── Results actions ──────────────────────────────────────────────────── */

.fee-calc-modal__actions {
  display: flex;
  gap: 0.75rem;
  margin-top: 1.75rem;
}

.fee-calc-modal__btn-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1;
  padding: 0.85rem 1rem;
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: 0.625rem;
  background: transparent;
  color: rgba(255, 255, 255, 0.7);
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.fee-calc-modal__btn-secondary:hover {
  border-color: rgba(255, 255, 255, 0.3);
  color: #fff;
  background: rgba(255, 255, 255, 0.05);
}

.fee-calc-modal__btn-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  flex: 1.5;
  padding: 0.85rem 1rem;
  border: none;
  border-radius: 0.625rem;
  background: #0d6efd;
  color: #fff;
  font-size: 0.95rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  text-decoration: none;
  text-align: center;
}

.fee-calc-modal__btn-cta:hover {
  background: #0b5ed7;
  box-shadow: 0 4px 16px rgba(13, 110, 253, 0.35);
  transform: translateY(-1px);
  color: #fff;
}

/* ── Mobile: bottom-sheet pattern ─────────────────────────────────────── */

@media (max-width: 575.98px) {
  .fee-calc-modal {
    align-items: flex-end;
    padding: 0;
  }

  .fee-calc-modal__panel {
    max-width: 100%;
    max-height: 92vh;
    border-radius: 1.25rem 1.25rem 0 0;
    transform: translateY(100%);
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1);
  }

  .fee-calc-modal.is-open .fee-calc-modal__panel {
    transform: translateY(0);
  }

  .fee-calc-modal__view {
    padding: 1.5rem 1.25rem;
  }

  .fee-calc-modal__header {
    margin-bottom: 1rem;
    text-align: center;
  }

  .fee-calc-modal__title {
    font-size: 1.25rem;
    margin-bottom: 1rem;
  }

  .fee-calc-modal__subtitle {
    font-size: 0.88rem;
    padding: 0 0.5rem;
  }

  .fee-calc-modal__results-badge,
  .fee-calc-modal__savings-badge {
    padding: 0 0.75rem;
    font-size: 0.75rem;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
  }

  .fee-calc-modal__results-badge {
    margin-top: 0;
  }

  .fee-calc-modal__cost-cards {
    gap: 0.6rem;
  }

  .fee-calc-modal__cost-card {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    padding: 0.85rem 1rem;
    gap: 0.75rem;
    border-radius: 0.75rem;
  }

  .fee-calc-modal__cost-card-name {
    font-size: 0.95rem;
  }

  .fee-calc-modal__cost-card-note {
    font-size: 0.72rem;
  }

  .fee-calc-modal__cost-card-right {
    width: auto;
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    justify-content: center;
    gap: 0.35rem;
  }

  .fee-calc-modal__cost-card-amount {
    font-size: 1.15rem;
  }

  .fee-calc-modal__actions {
    margin-top: 1.5rem;
    gap: 0.6rem;
  }

  .fee-calc-modal__actions {
    /* Removed flex-direction: column to keep buttons in one row */
  }
}

/* ── Reduced motion ───────────────────────────────────────────────────── */

@media (prefers-reduced-motion: reduce) {
  .fee-calc-modal,
  .fee-calc-modal__panel,
  .fee-calc-modal__view.is-active,
  .fee-calc-modal__cost-card,
  .fee-calc-trigger {
    animation: none !important;
    transition: none !important;
  }
}
