/* Funnel journey: the interactive hero and four steps on the homepage.
   All classes are prefixed fj- so nothing here touches the rest of the site. */
.fj { position: relative; background: var(--dark); color: var(--white); overflow: hidden; padding-bottom: 40px; }
.fj-links { position: relative; z-index: 2; margin-top: 18px; font-size: 0.875rem; color: rgba(255,255,255,0.5); }
.fj-links a { color: rgba(255,255,255,0.85); text-decoration: underline; text-underline-offset: 3px; }
.fj-links a:hover { color: var(--orange-light); }
#fj-stage { position: fixed; inset: 0; width: 100vw; height: 100vh; display: block; z-index: 1; pointer-events: none; }

.fj-step {
  position: relative;
  min-height: 66vh; max-width: var(--max-width); margin: 0 auto; padding: 32px 24px;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(40px, 6vw, 110px); align-items: center;
}
.fj-step.fj-flip { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); }
/* same side gutters as the navigation, so text lines up under the logo */
@media (min-width: 768px) { .fj-step { padding-left: 32px; padding-right: 32px; } }
@media (min-width: 1024px) { .fj-step { padding-left: 40px; padding-right: 40px; } }
.fj-step.fj-hero { min-height: 100vh; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); padding-top: calc(var(--nav-height) + 24px); padding-bottom: 72px; }
.fj-step.fj-flip .fj-copy { order: 2; }
.fj-step.fj-flip .fj-frame { order: 1; }

.fj-copy { position: relative; z-index: 2; opacity: 0; transform: translateY(22px); transition: opacity 0.7s ease, transform 0.7s ease; }
.fj-step.fj-seen .fj-copy { opacity: 1; transform: none; }
.fj-eyebrow { font-family: var(--font-body); line-height: 1.5; font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--orange); margin-bottom: 14px; }
.fj-copy .fj-headline, .fj-copy h2 { font-family: var(--font-heading); font-weight: 800; color: var(--white); letter-spacing: -0.02em; line-height: 1.1; margin-bottom: 16px; }
.fj-copy .fj-headline { font-size: clamp(2.25rem, min(4.4vw, 8.4vh), 4.5rem); }
.fj-copy .fj-headline span { color: var(--orange); }
.fj-copy h2 { font-size: clamp(1.75rem, min(3.2vw, 6.4vh), 3rem); }
.fj-copy p { color: rgba(255,255,255,0.7); font-size: clamp(1.0625rem, 1.25vw, 1.3125rem); line-height: 1.65; margin-bottom: 26px; max-width: 30em; }
.fj-copy .fj-hint { font-size: 0.8125rem; color: rgba(255,255,255,0.45); margin: 16px 0 0; }
.fj-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.fj-plug { display: inline-flex; align-items: center; gap: 10px; padding: 12px 22px; border-radius: var(--radius-pill); background: var(--orange); color: var(--white); font-weight: 600; font-size: 0.9375rem; cursor: pointer; border: none; transition: var(--transition); }
.fj-plug:hover { background: var(--orange-light); transform: translateY(-1px); }
.fj-plug[disabled] { background: rgba(61, 220, 151, 0.16); color: #7df0bd; cursor: default; transform: none; }

/* The frame each funnel slice sits in */
.fj-frame { position: relative; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); background: rgba(255,255,255,0.025); padding: 14px; }
.fj-frame-stage { position: relative; height: min(46vh, 480px); }
.fj-hero .fj-frame { border: none; background: none; padding: 0; }
.fj-hero .fj-frame-stage { height: min(74vh, 760px); }
.fj-hero .fj-frame-cap { display: none; }

/* hero backdrop and extras */
.fj-hero-bg { position: absolute; z-index: 0; inset: 0 -50vw; pointer-events: none; overflow: hidden; }
.fj-hero-bg::before { content: ''; position: absolute; inset: 0; background-image: linear-gradient(rgba(255,255,255,0.035) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.035) 1px, transparent 1px); background-size: 56px 56px; -webkit-mask-image: radial-gradient(ellipse 60% 70% at 62% 50%, #000 20%, transparent 75%); mask-image: radial-gradient(ellipse 60% 70% at 62% 50%, #000 20%, transparent 75%); }
.fj-hero-bg::after { content: ''; position: absolute; width: 60vw; height: 60vw; max-width: 900px; max-height: 900px; left: 58%; top: 50%; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(232,68,31,0.16), rgba(27,77,92,0.12) 45%, transparent 70%); }
.fj-facts { display: flex; gap: clamp(18px, 3vw, 44px); margin-top: clamp(18px, 3.4vh, 38px); padding-top: clamp(14px, 2.6vh, 26px); border-top: 1px solid rgba(255,255,255,0.1); flex-wrap: wrap; }
.fj-facts div b { display: block; font-family: var(--font-heading); font-weight: 800; font-size: clamp(1.375rem, 2vw, 2rem); color: var(--white); font-variant-numeric: tabular-nums; }
.fj-facts div span { font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.5); }
.fj-scroll-cue { position: absolute; z-index: 2; left: 50%; bottom: 26px; transform: translateX(-50%); font-size: 0.75rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); display: flex; flex-direction: column; align-items: center; gap: 8px; }
.fj-scroll-cue::after { content: ''; width: 1px; height: 34px; background: linear-gradient(rgba(255,255,255,0.5), transparent); animation: cue 1.8s ease-in-out infinite; }
@keyframes cue { 0%, 100% { transform: scaleY(0.4); transform-origin: top; opacity: 0.4; } 50% { transform: scaleY(1); transform-origin: top; opacity: 1; } }
.fj-frame-cap { position: relative; z-index: 2; text-align: center; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.4); padding-top: 10px; }

.fj-count { position: absolute; z-index: 2; left: 50%; top: 50%; transform: translate(-50%, -50%); text-align: center; pointer-events: none; }
.fj-count b { display: block; font-family: var(--font-heading); font-weight: 800; font-size: clamp(2rem, 4vw, 3rem); line-height: 1; color: var(--white); font-variant-numeric: tabular-nums; text-shadow: 0 2px 18px rgba(13,26,30,0.9); transition: color 0.4s ease; }
.fj-count small { display: block; margin-top: 6px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.fj-frame.fj-fixed .fj-count b { color: #7df0bd; }
.fj-lost { position: absolute; z-index: 2; right: 14px; top: 50%; transform: translateY(-50%); text-align: right; font-size: 0.8125rem; font-weight: 600; color: var(--orange-light); transition: color 0.4s ease; pointer-events: none; }
.fj-lost b { display: block; font-family: var(--font-heading); font-size: 1.125rem; font-variant-numeric: tabular-nums; }
.fj-frame.fj-fixed .fj-lost { color: rgba(255,255,255,0.45); }

.fj-tiers { position: absolute; z-index: 2; inset: 0; pointer-events: none; }

/* Result bars */
.fj-bars { position: absolute; z-index: 2; inset: 18px 12% 0; display: flex; align-items: flex-end; justify-content: center; gap: 12%; }
.fj-bar { flex: 1; max-width: 150px; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; text-align: center; }
.fj-bar i { display: block; height: 0; border-radius: 10px 10px 0 0; background: rgba(255,255,255,0.14); transition: height 1.1s cubic-bezier(0.2, 0.8, 0.2, 1); }
.fj-bar.fj-after i { background: #3ddc97; }
.fj-bar b { display: block; font-family: var(--font-heading); font-size: 1.25rem; font-weight: 800; margin-bottom: 8px; font-variant-numeric: tabular-nums; }
.fj-bar.fj-after b { color: #7df0bd; }
.fj-bar small { display: block; padding: 8px 0 2px; font-size: 0.75rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.45); }

@media (max-width: 760px) {
  .fj-step { grid-template-columns: minmax(0, 1fr); gap: 22px; padding: 36px 18px; min-height: auto; }
  .fj-step, .fj-step.fj-flip, .fj-step.fj-hero { grid-template-columns: minmax(0, 1fr); }
  .fj-step.fj-hero { padding-top: calc(var(--nav-height) + 20px); padding-bottom: 40px; min-height: auto; }
  .fj-scroll-cue { display: none; }
  .fj-hero-bg { inset: 0; }
  .fj-step .fj-copy, .fj-step.fj-flip .fj-copy { order: 2; }
  .fj-step .fj-frame, .fj-step.fj-flip .fj-frame { order: 1; }
  .fj-step.fj-hero .fj-copy { order: 1; }
  .fj-step.fj-hero .fj-frame { order: 2; }
  .fj-frame-stage { height: 250px; }
  .fj-hero .fj-frame-stage { height: 320px; }
  .fj-lost { right: 8px; }
}

.fj-no3d #fj-stage { display: none; }
  

/* Tags that sit on the funnel, one per tier */
.fj-tag { position: absolute; left: 70%; transform: translateY(-50%); display: flex; align-items: baseline; gap: 8px; white-space: nowrap; padding: 7px 12px 7px 14px; border-radius: var(--radius-pill); background: rgba(13,26,30,0.78); border: 1px solid rgba(255,255,255,0.14); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.fj-tag::before { content: ''; position: absolute; right: 100%; top: 50%; width: 16px; height: 1px; background: rgba(255,255,255,0.3); }
.fj-tag:nth-child(1) { top: 16%; } .fj-tag:nth-child(2) { top: 38%; } .fj-tag:nth-child(3) { top: 60%; } .fj-tag:nth-child(4) { top: 82%; }
.fj-tag em { font-style: normal; font-size: 0.6875rem; letter-spacing: 0.08em; text-transform: uppercase; color: rgba(255,255,255,0.55); }
.fj-tag b { font-family: var(--font-heading); font-weight: 800; font-size: 1rem; color: var(--white); font-variant-numeric: tabular-nums; transition: color 0.4s ease; }
.fj-tag i { font-style: normal; font-size: 0.75rem; font-weight: 600; color: var(--orange-light); font-variant-numeric: tabular-nums; transition: color 0.4s ease; }
.fj-hero.fj-fixed .fj-tag.fj-leaky b { color: #7df0bd; }
.fj-hero.fj-fixed .fj-tag i { color: rgba(255,255,255,0.4); }

/* The one control: see the same traffic with the leaks fixed */
.fj-facts { align-items: center; }
.fj-switch { display: inline-flex; align-items: center; gap: 12px; padding: 8px 18px 8px 8px; border-radius: var(--radius-pill); border: 1px solid rgba(255,255,255,0.22); background: rgba(255,255,255,0.04); color: var(--white); font-weight: 600; font-size: 0.9375rem; cursor: pointer; transition: var(--transition); }
.fj-switch:hover { border-color: rgba(255,255,255,0.45); }
.fj-switch > span { position: relative; width: 44px; height: 26px; border-radius: 13px; background: rgba(255,255,255,0.18); transition: background 0.3s ease; flex: 0 0 auto; }
.fj-switch > span::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: var(--white); transition: transform 0.3s ease; }
.fj-switch[aria-pressed="true"] > span { background: #3ddc97; }
.fj-switch[aria-pressed="true"] > span::after { transform: translateX(18px); }
.fj-facts div b { transition: color 0.4s ease; }
.fj-hero.fj-fixed .fj-facts div b { color: #7df0bd; }
.fj-copy p.fj-note { margin: 14px 0 0; max-width: none; font-size: 0.75rem; line-height: 1.5; color: rgba(255,255,255,0.4); }
.fj { padding-bottom: 0; }
@media (max-width: 760px) {
  .fj-tag { left: 52%; padding: 5px 9px 5px 10px; gap: 6px; }
  .fj-tag i { display: none; }
  .fj-tag b { font-size: 0.875rem; }
  .fj-tag em { font-size: 0.625rem; }
}

/* Switch and figures sit under the funnel they control */
.fj-hero .fj-frame-stage { height: min(60vh, 600px); }
.fj-panel { position: relative; z-index: 2; justify-content: center; margin-top: 4px; padding: 18px 22px; border: 1px solid rgba(255,255,255,0.1); border-radius: var(--radius-lg); background: rgba(13,26,30,0.6); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.fj-frame .fj-note { position: relative; z-index: 2; margin: 12px 0 0; text-align: center; font-size: 0.75rem; line-height: 1.5; color: rgba(255,255,255,0.4); }
@media (max-width: 760px) {
  .fj-hero .fj-frame-stage { height: 300px; }
  .fj-panel { padding: 14px 14px; gap: 14px 22px; }
}
