/* ============================================================
   weGAS Intelligence - LANDING: anatomy of a broker
   ============================================================ */

#launch-root { position: fixed; inset: 0; z-index: 200; }

.launch {
  position: absolute; inset: 0;
  background: var(--canvas);
  color: var(--ink);
  display: flex; flex-direction: column;
  overflow-y: auto; overflow-x: hidden;
  opacity: 1; transition: opacity .5s ease;
}
.launch.hidden { opacity: 0; pointer-events: none; }

.launch::before {
  content: ""; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background-image:
    linear-gradient(rgba(10,10,10,0.028) 1px, transparent 1px),
    linear-gradient(90deg, rgba(10,10,10,0.028) 1px, transparent 1px);
  background-size: 76px 76px;
  -webkit-mask-image: radial-gradient(135% 85% at 50% 12%, #000 26%, transparent 82%);
          mask-image: radial-gradient(135% 85% at 50% 12%, #000 26%, transparent 82%);
}
.launch > * { position: relative; z-index: 1; }

/* ---- nav ---- */
.launch-nav { display: flex; align-items: center; gap: 28px; padding: 22px 44px; flex: 0 0 auto; }
.launch-logo { display: block; width: 120px; height: 26px; background: url('wegas-logo.png') left center / contain no-repeat; }
.launch-nav .nav-right { margin-left: auto; display: flex; align-items: center; gap: 22px; }
.launch-nav .meta {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-45);
  display: inline-flex; align-items: center; gap: 9px;
}
.launch-nav .live-dot { width: 7px; height: 7px; border-radius: 50%; background: var(--lime); box-shadow: 0 0 0 3px rgba(123,255,95,0.28); }
.launch-enter {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink); background: transparent; border: 1.5px solid var(--line-light); cursor: pointer;
  padding: 10px 16px; border-radius: 999px; display: inline-flex; align-items: center; gap: 8px;
  transition: background .16s, color .16s, border-color .16s;
}
.launch-enter:hover { background: var(--ink); color: var(--canvas); border-color: var(--ink); }
.launch-enter svg { width: 13px; height: 13px; }

/* ---- header ---- */
.launch-head { text-align: center; padding: 8px 24px 0; flex: 0 0 auto; }
.launch-eyebrow {
  font-family: var(--mono); font-size: 11.5px; font-weight: 600;
  letter-spacing: 0.32em; text-transform: uppercase; color: var(--magenta);
}
.launch-head h1 {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(32px, 4.2vw, 54px); line-height: 0.98;
  letter-spacing: -0.04em; text-transform: lowercase; margin-top: 10px;
}
.launch-head h1 .mag { color: var(--magenta); }
.launch-head .lede {
  font-family: var(--mono); font-size: 13px; line-height: 1.55;
  color: var(--ink-70); max-width: 62ch; margin: 12px auto 0;
}

/* ============================================================
   FLOW LANE  - stats row above, proportional funnel below
   ============================================================ */
.flow-lane { max-width: 1180px; width: 100%; margin: 22px auto 0; padding: 0 44px; flex: 0 0 auto; }

.flow-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 0; }
.stat {
  text-align: center; padding: 0 12px;
  display: flex; flex-direction: column; align-items: center;
  opacity: 0; transform: translateY(12px);
  transition: opacity .55s ease, transform .55s ease;
}
.launch.play .stat.in { opacity: 1; transform: none; }
.stat .st-name {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase; color: var(--ink-45);
}
.stat .st-name .num { color: var(--magenta); margin-right: 7px; opacity: .8; }
.stat .st-count {
  font-family: var(--display); font-weight: 800;
  font-size: clamp(48px, 5.8vw, 82px); line-height: 1; letter-spacing: -0.045em;
  margin-top: 8px; font-variant-numeric: tabular-nums;
}
.stat .st-count.hi { color: var(--magenta); }
.stat .st-conv {
  font-family: var(--mono); font-size: 11px; font-weight: 500;
  color: var(--ink-45); margin-top: 9px; letter-spacing: 0.01em; min-height: 2.6em;
}
.stat .st-conv b { color: var(--ink); font-weight: 700; }

/* funnel controls - baseline vs weGAS toggle */
.fnl-controls {
  position: relative;
  display: flex; align-items: center; justify-content: center; gap: 18px;
  margin-top: 16px; flex-wrap: wrap;
}
.fnl-toggle {
  position: relative; display: inline-flex; padding: 4px; gap: 4px;
  border-radius: 999px; border: 1px solid var(--line-light); background: rgba(255,255,255,0.7);
}
.fnl-toggle button {
  position: relative; z-index: 1; flex: 1 1 0; min-width: 132px; justify-content: center;
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--ink-45); background: transparent; border: none; cursor: pointer;
  padding: 9px 20px; border-radius: 999px; white-space: nowrap;
  display: inline-flex; align-items: center; gap: 7px;
  transition: color .25s, background .25s;
}
.fnl-toggle button.on { color: var(--canvas); background: var(--ink); }
.fnl-toggle button svg { width: 12px; height: 12px; }
.fnl-delta {
  font-family: var(--mono); font-size: 11.5px; font-weight: 700;
  letter-spacing: 0.02em; color: var(--lime);
  display: inline-flex; align-items: center; gap: 8px;
  padding: 8px 14px; border-radius: 999px;
  background: #0E0E0E;
  opacity: 0; transform: translateX(-8px);
  transition: opacity .4s ease, transform .4s ease;
  pointer-events: none;
}
.launch.is-wegas .fnl-delta { opacity: 1; transform: none; }

/* brighten weGAS annotations when in weGAS mode */
.launch.is-wegas .anno-cell span {
  color: #fff; background: var(--magenta); border-color: var(--magenta);
}

/* funnel band */
.funnel-band { position: relative; margin-top: 10px; }
.funnel-band svg { display: block; width: 100%; height: 128px; overflow: visible; }

/* weGAS annotation pills - sit on the leak points */
.funnel-annos {
  display: grid; grid-template-columns: repeat(5, 1fr); gap: 0;
  margin-top: 6px;
}
.anno-cell { display: flex; justify-content: center; padding: 0 6px; }
.anno-cell span {
  font-family: var(--mono); font-size: 10px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase; color: var(--magenta);
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 11px; border-radius: 999px;
  border: 1.5px solid rgba(238,62,201,0.35); background: rgba(238,62,201,0.05);
  opacity: 0; transform: translateY(-5px); transition: opacity .5s ease, transform .5s ease;
}
.launch.play .funnel-annos.in .anno-cell span { opacity: 1; transform: none; }
.anno-cell span svg { width: 10px; height: 10px; }

.st-tags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.st-tags span {
  font-family: var(--mono); font-size: 9px; font-weight: 700;
  letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-70);
  padding: 4px 8px; border-radius: 999px; border: 1px solid var(--line-light);
}

/* ============================================================
   OUTCOME ROW - the book + the cycle
   ============================================================ */
.flow-outcome {
  max-width: 1180px; width: 100%; margin: 18px auto 0; padding: 0 44px;
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 22px; flex: 0 0 auto;
}
.oc-card {
  border: 1px solid var(--line-light); border-radius: var(--r-md);
  padding: 18px 22px; background: #fff;
  box-shadow: 0 1px 0 rgba(10,10,10,0.02);
  opacity: 0; transform: translateY(12px); transition: opacity .6s ease .05s, transform .6s ease .05s;
}
.launch.play .flow-outcome.in .oc-card { opacity: 1; transform: none; }
.oc-label {
  font-family: var(--mono); font-size: 10.5px; font-weight: 700;
  letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-45);
  margin-bottom: 16px; display: flex; align-items: center; gap: 8px;
}
.oc-label b { color: var(--ink); }
.book-cap {
  font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--ink-70);
  margin: -8px 0 14px;
}

.book-bar { display: flex; gap: 3px; height: 46px; border-radius: 9px; overflow: hidden; }
.book-bar .seg {
  display: flex; align-items: center; gap: 8px; padding: 0 14px;
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  transition: flex-basis 1.1s cubic-bezier(.4,0,.2,1); flex-grow: 0; flex-shrink: 0; overflow: hidden; white-space: nowrap;
}
.book-bar .seg .pct { font-family: var(--display); font-size: 17px; }
.book-bar .seg.a { background: var(--teal); color: #06292A; flex-basis: 50%; }
.book-bar .seg.b { background: var(--ink); color: #fff; flex-basis: 50%; justify-content: flex-end; }
.launch.play .flow-outcome.in .book-bar .seg.a { flex-basis: var(--a-basis, 40%); }
.launch.play .flow-outcome.in .book-bar .seg.b { flex-basis: var(--b-basis, 60%); }
.book-legend { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; margin-top: 18px; }
.book-legend .bl-t {
  font-family: var(--mono); font-size: 11px; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase; display: flex; align-items: center; gap: 8px; }
.book-legend .bl-t .sw { width: 10px; height: 10px; border-radius: 3px; }
.book-legend .bl-t em { font-style: normal; color: var(--ink-45); font-weight: 600; }
.book-legend .a .sw { background: var(--teal); }
.book-legend .b .sw { background: var(--ink); }
.book-legend .bl-d { font-family: var(--mono); font-size: 11px; line-height: 1.55; color: var(--ink-70); margin-top: 7px; }

.cyc-flow { display: flex; align-items: stretch; gap: 8px; }
.cyc-step {
  flex: 1; display: flex; flex-direction: column; gap: 3px;
  padding: 13px 12px; border: 1px solid var(--line-light); border-radius: 10px; text-align: left;
}
.cyc-step b {
  font-family: var(--mono); font-size: 11px; font-weight: 700;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink);
}
.cyc-step span { font-family: var(--mono); font-size: 10.5px; line-height: 1.35; color: var(--ink-45); }
.cyc-step.hi { border-color: rgba(238,62,201,0.4); background: rgba(238,62,201,0.06); }
.cyc-step.hi b { color: var(--magenta); }
.cyc-arr { display: flex; align-items: center; color: var(--ink-45); flex: 0 0 auto; }
.cyc-arr svg { width: 15px; height: 15px; }
.cyc-note {
  display: flex; align-items: center; gap: 9px; margin-top: 15px;
  font-family: var(--mono); font-size: 11.5px; line-height: 1.5; color: var(--ink-70);
}
.cyc-note svg { width: 15px; height: 15px; flex: 0 0 auto; }

/* ---- CTA ---- */
.launch-cta { text-align: center; padding: 22px 24px 4px; flex: 0 0 auto; }
.launch-cta .go {
  font-family: var(--mono); font-size: 13px; font-weight: 700;
  letter-spacing: 0.05em; text-transform: uppercase;
  color: var(--canvas); background: var(--ink); border: none; cursor: pointer;
  padding: 16px 28px; border-radius: 999px; display: inline-flex; align-items: center; gap: 10px;
  transition: filter .15s, transform .15s; box-shadow: 0 18px 44px -20px rgba(10,10,10,0.6);
}
.launch-cta .go:hover { filter: brightness(1.18); }
.launch-cta .go:active { transform: scale(.98); }
.launch-cta .go svg { width: 16px; height: 16px; }
.launch-cta .sub { font-family: var(--mono); font-size: 11.5px; color: var(--ink-45); margin-top: 13px; }

/* ---- marquee ---- */
.launch-marquee {
  margin-top: auto; border-top: 1px solid var(--line-light);
  padding: 18px 0 20px; overflow: hidden; flex: 0 0 auto;
  background: rgba(10,10,10,0.02);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.launch-marquee .strip-label {
  text-align: center; font-family: var(--mono); font-size: 10px; font-weight: 600;
  letter-spacing: 0.28em; text-transform: uppercase; color: var(--ink-45); margin-bottom: 14px; }
.mq-track { display: flex; align-items: center; gap: 12px; width: max-content; animation: mq 52s linear infinite; }
.mq-track span {
  font-family: var(--mono); font-weight: 600; font-size: 12.5px; letter-spacing: 0.02em;
  color: var(--ink-70); white-space: nowrap;
  display: inline-flex; align-items: center; gap: 9px;
  padding: 9px 16px; border-radius: 999px;
  border: 1px solid var(--line-light); background: rgba(255,255,255,0.6);
  transition: color .16s, border-color .16s, background .16s;
}
.mq-track span .dot {
  width: 8px; height: 8px; border-radius: 50%; flex: 0 0 auto;
  background: var(--brand, var(--ink-45));
}
.mq-track span:hover {
  color: var(--ink);
  border-color: color-mix(in oklab, var(--brand, #000) 55%, var(--line-light));
  background: color-mix(in oklab, var(--brand, #fff) 8%, #fff);
}
@keyframes mq { from { transform: translateX(0); } to { transform: translateX(-50%); } }

@media (prefers-reduced-motion: reduce) {
  .mq-track { animation: none; }
  .stat, .oc-card, .anno-cell span { opacity: 1 !important; transform: none !important; }
}

/* ============================================================
   MOBILE
   ============================================================ */
@media (max-width: 860px) {
  .launch-nav { padding: 16px 22px; gap: 14px; }
  .launch-nav .meta { display: none; }
  .flow-lane { padding: 0 22px; }
  .flow-outcome { padding: 0 22px; grid-template-columns: 1fr; margin-top: 22px; }
  .launch-head { padding-top: 4px; }
}

@media (max-width: 760px) {
  .flow-stats { grid-template-columns: repeat(2, 1fr); gap: 22px 10px; }
  /* the wide proportional funnel does not read when squished - the story
     carries through the animated stat counts, the toggle and the delta pill */
  .funnel-band, .funnel-annos { display: none; }
  .fnl-controls { margin-top: 8px; }
  .book-legend { grid-template-columns: 1fr; gap: 14px; }
  .launch-head .lede { font-size: 12.5px; }
}

@media (max-width: 480px) {
  .launch-nav { padding: 14px 16px; }
  .launch-logo { width: 104px; }
  .launch-enter { padding: 9px 12px; font-size: 10.5px; gap: 6px; }
  .flow-lane, .flow-outcome { padding: 0 16px; }
  .stat { padding: 0 6px; }
  .stat .st-count { font-size: clamp(38px, 13vw, 54px); }
  .stat .st-conv { min-height: 0; font-size: 10.5px; }
  .fnl-toggle button { min-width: 0; padding: 9px 14px; }
  .oc-card { padding: 16px 16px; }
  .cyc-step { padding: 11px 10px; }
  .cyc-step span { font-size: 10px; }
  .launch-cta { padding: 20px 16px 4px; }
  .launch-cta .go { padding: 15px 22px; font-size: 12px; }
}
