/*
 * /bypass/f5 — "The outlier".
 *
 * Chrome owned by _shared/chrome.css. Palette: teal #7ADAE6 = inside the human
 * cluster (allowed), red #F0524B = outlier (flagged, semantic), purple #7C4FE8
 * = band. One purple band (Acts 3-4), one teal closer. Distinct architecture:
 * a mouse-interactive scatter/outlier hero. is-on-* scoped to the topbar;
 * closer CTA fixed contrast.
 */
@import "../../_ds/fonts.css";
@import "../../_ds/theme.css";
@import "../../_shared/chrome.css";
@import "../../_shared/components.css";
@import "../../_shared/audience-switcher.css";

.f5-main { position: relative; z-index: 1; }
[data-reveal] { opacity: 0; transform: translateY(18px); transition: opacity 720ms cubic-bezier(0.22,1,0.36,1), transform 720ms cubic-bezier(0.22,1,0.36,1); }
[data-reveal].is-revealed { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { [data-reveal] { opacity: 1; transform: none; } }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 1 — the outlier. Sticky; H1 left, an interactive scatter field right.
   ═══════════════════════════════════════════════════════════════════════ */
.f5-hero { position: relative; min-height: 130vh; }
.f5-hero-stage { position: sticky; top: 0; min-height: 100vh; display: grid; grid-template-columns: 1fr 0.95fr; align-items: center; gap: clamp(32px, 6vw, 96px); padding: 100px clamp(20px, 5vw, 80px) clamp(48px, 8vh, 96px); max-width: 1520px; margin-inline: auto; }

.f5-hero-copy { max-width: 600px; }
.f5-hero-copy .eyebrow { margin-bottom: 16px; }
.f5-hero-h1 { font-family: var(--font-display); font-weight: 500; font-size: var(--display-xlarge); line-height: var(--leading-display-xlarge, 1.02); letter-spacing: var(--tracking-dense, -0.024em); color: var(--text-primary); margin: 0; text-wrap: balance; }
.f5-hero-h1 .l2 { display: block; }
.f5-hero-sub { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: var(--text-secondary); margin: 20px 0 0; max-width: 46ch; }
.f5-hero-cta { margin-top: 26px; display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.f5-hero-cta .link-cta { align-self: center; transform: translateY(3px); }

/* The scatter field */
.f5-field { position: relative; justify-self: end; width: min(460px, 100%); aspect-ratio: 1.08; border: 1px solid var(--border-subtle); border-radius: var(--radius-lg, 14px); overflow: hidden; }
.f5-field-label { position: absolute; top: 14px; left: 16px; font-family: var(--font-code); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--text-quaternary); z-index: 2; }
.f5-boundary { position: absolute; left: 62%; top: 52%; width: 42%; aspect-ratio: 1; height: auto; transform: translate(-50%, -50%); border-radius: 50%; border: 1px dashed color-mix(in srgb, var(--text-primary) 16%, transparent); transition: border-color 300ms ease; }
.is-in .f5-boundary { border-color: color-mix(in srgb, #7ADAE6 45%, transparent); }
.f5-cluster { position: absolute; inset: 0; }
.f5-pt { position: absolute; border-radius: 50%; background: color-mix(in srgb, var(--text-primary) 30%, transparent); transform: translate(-50%, -50%); }
.f5-you { position: absolute; left: 12%; top: 20%; width: 15px; height: 15px; border-radius: 50%; transform: translate(-50%, -50%); background: #F0524B; box-shadow: 0 0 0 5px color-mix(in srgb, #F0524B 22%, transparent); transition: background 260ms ease, box-shadow 260ms ease; z-index: 3; }
.is-in .f5-you { background: #7ADAE6; box-shadow: 0 0 0 5px color-mix(in srgb, #7ADAE6 26%, transparent); }
.f5-verdict { position: absolute; bottom: 14px; left: 16px; right: 16px; font-family: var(--font-code); font-size: 12.5px; letter-spacing: 0.04em; color: #F0524B; transition: color 260ms ease; z-index: 2; }
.is-in .f5-verdict { color: #7ADAE6; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 2 — it looks for all of them. Centered editorial; a strip of the signal
   families F5 weighs at once.
   ═══════════════════════════════════════════════════════════════════════ */
.f5-scale { padding: clamp(120px, 16vh, 200px) clamp(20px, 5vw, 80px); max-width: 1000px; margin: 0 auto; text-align: center; }
.f5-scale-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--display-medium); line-height: 1.08; letter-spacing: -0.02em; color: var(--text-primary); margin: 12px 0 0; text-wrap: balance; }
.f5-scale-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.55; color: var(--text-secondary); margin: 18px auto 0; max-width: 54ch; }
.f5-families { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 12px; margin: clamp(40px, 5vh, 60px) auto 0; max-width: 720px; }
.f5-family { font-family: var(--font-code); font-size: 12.5px; letter-spacing: 0.02em; color: var(--text-tertiary); border: 1px solid var(--border-subtle); border-radius: 999px; padding: 9px 16px; }
.f5-scale-note { font-family: var(--font-code); font-size: 12px; letter-spacing: 0.05em; color: var(--text-quaternary); margin: clamp(32px, 4vh, 48px) 0 0; }

/* ═══════════════════════════════════════════════════════════════════════
   ACTS 3-4 — one call lands inside. SOLID purple band, bloom from the top.
   ═══════════════════════════════════════════════════════════════════════ */
.f5-band { position: relative; background: #7C4FE8; color: #fff; --rise: 0; clip-path: circle(calc(var(--rise) * 150%) at 50% 0%); will-change: clip-path; }
.f5-band-inner { max-width: 1000px; margin: 0 auto; padding: clamp(120px, 18vh, 220px) clamp(20px, 5vw, 80px); text-align: center; }
.f5-band-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--display-large); line-height: 1.04; letter-spacing: -0.024em; color: #fff; margin: 14px auto 0; text-wrap: balance; max-width: 18ch; }
.f5-band-lead { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: rgba(255,255,255,0.9); margin: 20px auto 0; max-width: 48ch; }
.f5-run-call { display: inline-flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; margin: clamp(40px, 5vh, 64px) auto 0; font-family: var(--font-code); font-size: var(--mkt-body-sm); color: rgba(255,255,255,0.9); border-top: 1px solid rgba(255,255,255,0.3); border-bottom: 1px solid rgba(255,255,255,0.3); padding: 18px 6px; }
.f5-run-call .c-cmd { color: #fff; font-weight: 700; }
.f5-run-call .c-arrow { color: rgba(255,255,255,0.6); }
.f5-run-call .c-ok { color: #1D1612; background: #7ADAE6; padding: 3px 10px; border-radius: 6px; white-space: nowrap; }

/* ═══════════════════════════════════════════════════════════════════════
   ACT 5 — closer. SOLID teal. Fixed contrasting CTA.
   ═══════════════════════════════════════════════════════════════════════ */
.f5-closer { position: relative; background: #7ADAE6; color: #0B1416; padding: clamp(120px, 20vh, 240px) clamp(20px, 5vw, 80px) clamp(80px, 12vh, 140px); }
.f5-closer-inner { max-width: 900px; margin: 0 auto; text-align: center; }
.f5-closer-h2 { font-family: var(--font-display); font-weight: 500; font-size: var(--display-large); line-height: 1.04; letter-spacing: -0.024em; color: #0B1416; margin: 0; text-wrap: balance; }
.f5-closer-sub { font-family: var(--font-base); font-size: var(--mkt-body); line-height: 1.5; color: #103a40; margin: 22px auto 0; max-width: 52ch; }
.f5-closer-cta { margin-top: 36px; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.f5-closer-tagline { font-family: var(--font-base); font-size: 14px; color: #14494f; }

/* Topbar adaptation (scoped to topbar) + fixed closer CTA. */
/* Closer CTA: fixed purple-on-teal, never scroll-dependent. */

@media (min-width: 1920px) { .f5-band-inner { max-width: 1120px; } }

/* ═══════════════════════════════════════════════════════════════════════
   Mobile / reduced-motion (<=900px).
   ═══════════════════════════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .f5-hero { min-height: auto; }
  .f5-hero-stage { position: static; min-height: 0; display: block; padding: 120px 20px 64px; }
  .f5-field { width: 100%; max-width: 420px; margin: 40px auto 0; justify-self: auto; }
  .f5-band { clip-path: none !important; }
}
