/* ==========================================================================
   Mobile Space Adventures — enlist + captain polish layer
   Loaded ONLY on /enlist/ and /captain/, after site.css + space-theme.css,
   so it lifts those two pages out of near-black without touching the rest of
   the site. Honors the brand system (navy / orange / cream; Barlow Condensed /
   Barlow / JetBrains Mono). The result page's commission is styled here as an
   ivory security document; that section only matches on /captain/.
   ========================================================================== */

:root {
  --navy:   #0a1728;
  --navy-2: #10243d;
  --navy-3: #17324f;
  --line:   rgba(245,239,227,0.20);
  --edge-hi: rgba(255,255,255,0.08);
  /* ivory commission ink palette */
  --paper-1: #f8f2e4;
  --paper-2: #ece1c9;
  --ink:     #10203a;
  --ink-dim: #5c6675;
  --seal:    #b4530a;
  --hair:    rgba(16,32,58,0.30);
}
[hidden] { display: none !important; }

body {
  background:
    radial-gradient(1200px 720px at 50% -8%, rgba(58,110,165,0.30), transparent 60%),
    linear-gradient(180deg, #0f2340 0%, var(--navy) 46%, #050d18 100%);
  background-repeat: no-repeat;
}
.nebula::before { opacity: 0.9;  filter: blur(64px); }
.nebula::after  { opacity: 0.75; filter: blur(64px);
  background: radial-gradient(circle at 60% 60%, rgba(247,147,30,0.18), transparent 60%); }

h1, h2, .bc-certtitle, .bc-arch { text-wrap: balance; }
.beats { max-width: 452px; }
.tag { color: #ffb04a; text-shadow: 0 0 22px rgba(247,147,30,0.4); }
.site-header { background: rgba(12,26,44,0.72); border-bottom-color: rgba(247,147,30,0.20); }

.card, .hc, .bc-gate, .bc-commission, .bc-crewblock, .bc-choice {
  background:
    linear-gradient(180deg, var(--edge-hi), transparent 42%),
    linear-gradient(180deg, var(--navy-3), #0e2138);
  border: 1px solid var(--line);
  box-shadow: 0 1px 0 var(--edge-hi) inset, 0 12px 30px rgba(4,9,15,0.35);
}
.btn-primary {
  background: linear-gradient(180deg, #ffb24a, var(--orange));
  box-shadow: 0 10px 30px rgba(247,147,30,0.45), 0 1px 0 rgba(255,255,255,0.4) inset;
  border-color: var(--orange);
}
.btn-primary:hover {
  background: linear-gradient(180deg, #ffc061, var(--orange-dark));
  box-shadow: 0 12px 38px rgba(247,147,30,0.6), 0 1px 0 rgba(255,255,255,0.45) inset;
}

/* ------------------------------- enlist ---------------------------------- */
.hero#channel .wrap {
  max-width: 760px; padding: 40px 34px 34px;
  border: 1px solid var(--line); border-radius: 20px;
  background:
    radial-gradient(600px 240px at 50% 0%, rgba(247,147,30,0.12), transparent 70%),
    linear-gradient(180deg, rgba(23,50,79,0.55), rgba(10,23,40,0.35));
  box-shadow: 0 1px 0 var(--edge-hi) inset, 0 30px 80px rgba(4,9,15,0.5);
  backdrop-filter: blur(3px);
}
.hero#channel h1 { text-shadow: 0 0 40px rgba(247,147,30,0.16); }
.hero#channel h1 span { text-shadow: 0 0 40px rgba(247,147,30,0.45); }
.route {
  display: inline-flex; align-items: center; flex-wrap: wrap; justify-content: center;
  gap: 2px; padding: 9px 16px; margin-top: 22px;
  border: 1px solid var(--line); border-radius: 999px; background: rgba(10,23,40,0.6);
}
.route b { color: #ffb04a; }
.route .arw { color: rgba(247,147,30,0.7); }
/* The pulse is a STAT, not a control. It inherits .route, and a lone bordered
   pill with no arrows in it reads as a button — a tester tried to click it
   (08/24/2026: "there are items that look like buttons I should be able to
   click on... like '11 commissions filed this cycle'"). The route rail keeps
   the pill: its arrows say sequence, so nobody mistakes it for an action. */
#vex-pulse {
  display: block; border: 0; background: none; border-radius: 0;
  padding: 0; color: var(--cream-dim);
}

/* ---- enlist on phones: the character is the main event ------------------ */
/* Same argument as the captain page's phone block, tuned to this hero.
   Three moves: (1) the console becomes a TRUE card — inset from the screen
   edge with its padding cut, because a border flush with the viewport reads
   as a rendering artifact and 34px side padding starves the portrait of the
   one resource a phone has; (2) the route pill becomes the same compact
   three-column rail the Bridge Check runs, one design language across both
   character pages; (3) the paperwork re-orders under the rail — consent
   shelf first, escape hatches last — instead of a wall of three competing
   paragraphs with the consent line buried at the bottom. Copy untouched. */
@media (max-width: 640px) {
  .hero#channel { padding-top: 14px; padding-bottom: 30px; }
  .hero#channel .wrap {
    margin-inline: 12px; padding: 22px 14px 22px; border-radius: 18px;
    display: flex; flex-direction: column;
  }
  .hero#channel .tag { order: 1; font-size: 11px; letter-spacing: 0.1em; }
  .hero#channel h1 { order: 2; }
  .hero#channel .beats { order: 3; margin: 10px auto 16px; line-height: 1.55; }
  .hero#channel #vex-app { order: 4; }
  /* One order for the pair (never visible together; DOM breaks the tie) —
     kept as a selector LIST because a test greps for the booking id followed
     by an opening brace, which must only ever appear in transmission.css. */
  .hero#channel #vex-booking, .hero#channel #vex-capped { order: 5; width: 100%; }
  .hero#channel .route { order: 6; }
  .hero#channel .bc-book { order: 7; margin-top: 16px; }
  .hero#channel #vex-pulse { order: 8; margin-top: 12px; }
  .hero#channel .wrap > p.small.muted:not(.skip) { order: 9; }
  .hero#channel .skip { order: 10; }

  .hero#channel #vex-app > p, .hero#channel #vex-app p.small { font-size: 11px; letter-spacing: 0.06em; }

  /* The rail. Grid over the pill: arrows leave, hairline dividers arrive.
     Cells stay stretched so the dividers span full height; content centers
     inside. width:100% because the pill's auto side margins would otherwise
     shrink-wrap the grid and collapse the 1fr columns. */
  .hero#channel .route-steps {
    display: grid; grid-template-columns: repeat(3, 1fr); gap: 0;
    /* stretch, not the pill's align-items:center — a centered cell shrinks
       to its own line count and its divider stops short of the rail edges */
    align-items: stretch;
    width: 100%; margin-top: 20px; padding: 0; border-radius: 10px;
    background: rgba(13,27,46,0.55);
  }
  .route-steps .arw { display: none; }
  .route-steps .rs {
    display: grid; place-content: center; padding: 11px 6px;
    border-left: 1px solid var(--line); font-size: 10.5px; line-height: 1.5;
  }
  .route-steps .rs:first-child { border-left: 0; }

  /* The paperwork: one quiet block. The consent paragraph gets the shelf. */
  .hero#channel .wrap > p.small.muted { font-size: 12.5px; line-height: 1.55; }
  .hero#channel .wrap > p.small.muted:not(.skip) {
    border-top: 1px solid var(--line); padding-top: 14px;
  }
  .hero#channel .skip { margin-top: 12px; }
}

/* ------------------------------- captain --------------------------------- */
.bc-frame {
  background:
    radial-gradient(700px 300px at 50% -6%, rgba(247,147,30,0.10), transparent 65%),
    linear-gradient(180deg, var(--navy-2) 0%, #0b1c31 42%);
  border-color: rgba(247,147,30,0.16);
  box-shadow: 0 1px 0 var(--edge-hi) inset, 0 40px 90px rgba(4,9,15,0.6);
  scroll-margin-top: 84px;
}
.bc-choice { color: var(--cream); }
.bc-choice:hover, .bc-choice:focus-visible {
  border-color: var(--orange);
  box-shadow: 0 1px 0 var(--edge-hi) inset, 0 10px 26px rgba(247,147,30,0.18);
  transform: translateX(3px);
}
.bc-key { color: #ffb04a; }
.bc-pip.done { box-shadow: 0 0 10px rgba(247,147,30,0.6); }
.bc-ring .arc { filter: drop-shadow(0 0 4px rgba(247,147,30,0.55)); }
.bc-scenetitle { text-shadow: 0 0 24px rgba(247,147,30,0.3); }
.bc-av { border-color: rgba(247,147,30,0.4); box-shadow: 0 0 18px rgba(247,147,30,0.18); }

/* -------- the commission: an ivory security document on the console ------ */
/* Structure first: these base rules make the certificate render on ANY page
   that loads this stylesheet (the archetype share pages carry none of the
   captain page's inline quiz styles). Values mirror captain/index.html's
   inline block so the two sources cannot disagree visually. */
.bc-resulttag { font-family: var(--font-mono); font-size: 11px; text-transform: uppercase; margin-bottom: 12px; }
.bc-certtitle { font-family: var(--font-head); font-weight: 700; font-size: clamp(24px, 5.6vw, 38px); text-transform: uppercase; line-height: 1.05; margin: 6px 0 2px; }
.bc-certsub { font-size: 14px; margin: 0 0 16px; }
.bc-certrows { margin: 0 0 16px; }
.bc-certrow { display: flex; gap: 14px; padding: 9px 0; font-size: 15px; }
.bc-certrow .ck { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.18em; text-transform: uppercase; flex: 0 0 110px; padding-top: 3px; }
.bc-certrow .cv { min-width: 0; }
.bc-certrow .bc-tiles { margin: 0; }
.bc-tiles { display: flex; gap: 10px; flex-wrap: wrap; }
.bc-tile { font-family: var(--font-mono); font-size: 12px; text-transform: uppercase; border-radius: 6px; padding: 9px 13px; }
.bc-certbody { font-size: 16.5px; line-height: 1.6; margin: 0 0 6px; padding-right: 88px; }
.bc-blend { font-family: var(--font-mono); font-size: 12px; margin-bottom: 0; padding-right: 88px; }
.bc-cert .bc-stamp { top: 16px; right: 18px; font-family: var(--font-mono); font-weight: 500; font-size: 13px; letter-spacing: 3px; border-radius: 4px; padding: 6px 12px; }
.bc-cert .bc-seal { display: flex; align-items: center; justify-content: center; border-radius: 50%; pointer-events: none; }
.bc-cert .bc-seal:before { content: ""; position: absolute; border: 1px dashed rgba(16,32,58,0.4); border-radius: 50%; }
.bc-cert .bc-seal span { font-family: var(--font-mono); letter-spacing: 0.3em; padding-left: 0.3em; }
@media (max-width: 560px) {
  .bc-certrow { flex-direction: column; gap: 2px; }
  .bc-certrow .ck { flex-basis: auto; }
  .bc-certbody, .bc-blend { padding-right: 0; }
}
.bc-cert {
  position: relative; /* anchors the stamp, seal, and security frame on pages with no inline cert styles */
  color: var(--ink);
  border: 1px solid #d8caa7; border-radius: 6px;
  padding: 30px 34px 30px; margin: 4px 0 22px;
  background:
    repeating-linear-gradient(45deg,  rgba(16,32,58,0.035) 0 1px, transparent 1px 7px),
    repeating-linear-gradient(-45deg, rgba(16,32,58,0.03)  0 1px, transparent 1px 9px),
    radial-gradient(130% 100% at 50% 0%, #fbf6ec 0%, var(--paper-1) 40%, var(--paper-2) 100%);
  box-shadow:
    0 2px 0 rgba(255,255,255,0.7) inset,
    0 0 0 1px rgba(16,32,58,0.35),
    0 34px 74px rgba(2,7,14,0.7);
  overflow: hidden; isolation: isolate;
}
.bc-cert::before {
  content: ""; position: absolute; inset: 9px; z-index: 0; pointer-events: none;
  border: 1px solid var(--hair); border-radius: 3px;
  box-shadow: 0 0 0 4px var(--paper-1), 0 0 0 5px rgba(180,83,10,0.30);
}
.bc-cert::after { content: none; }
.bc-cert > * { position: relative; z-index: 1; }

.bc-resulttag { color: var(--seal); letter-spacing: 0.22em; padding-right: 120px; }
.bc-control {
  font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em;
  color: var(--ink-dim); margin: 4px 0 14px; padding-bottom: 12px; padding-right: 120px;
  border-bottom: 1px solid var(--hair);
}
.bc-control b { color: var(--seal); letter-spacing: 0.12em; }

.bc-certtitle { color: var(--ink); text-shadow: none; letter-spacing: 2px; }
.bc-certtitle span { color: var(--seal); }
.bc-certsub { color: var(--ink-dim); }
.bc-certrows { border-top: 1px solid var(--hair); }
.bc-certrow { border-bottom: 1px solid var(--hair); }
.bc-certrow .ck { color: var(--seal); }
.bc-certrow .cv { color: var(--ink); }
.bc-tile {
  border: 1px solid rgba(16,32,58,0.45); color: var(--ink);
  background: rgba(16,32,58,0.04); letter-spacing: 1px;
}
.bc-certbody { color: var(--ink); }
.bc-blend { color: var(--ink-dim); }

.bc-cert .bc-stamp {
  position: absolute; z-index: 3;
  color: #b23c14; border-color: #b23c14; opacity: 0.82;
  transform: rotate(7deg); mix-blend-mode: multiply; box-shadow: none;
}
.bc-cert .bc-seal {
  position: absolute; z-index: 0;
  left: 50%; right: auto; top: 52%; bottom: auto;
  width: 260px; height: 260px; opacity: 0.07;
  transform: translate(-50%, -50%) rotate(-9deg);
  border: 3px solid var(--ink);
}
.bc-cert .bc-seal:before { border-color: var(--ink); inset: 10px; }
.bc-cert .bc-seal span { color: var(--ink); font-size: 34px; letter-spacing: 0.3em; }

.bc-authrow {
  display: flex; justify-content: space-between; align-items: flex-end; gap: 20px;
  margin: 22px 0 0; padding-right: 96px;
}
.bc-sig { display: flex; flex-direction: column; min-width: 220px; }
.bc-sigink {
  font-family: "Great Vibes", cursive; font-size: 46px; line-height: 0.8;
  color: #16305a; padding: 0 8px 2px; transform: rotate(-3deg);
}
.bc-sig .bc-sigcap {
  border-top: 1px solid var(--ink); padding-top: 6px; margin-top: 2px;
  font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--ink-dim);
}
.bc-holo {
  flex: 0 0 auto; width: 62px; height: 62px; border-radius: 10px;
  display: flex; align-items: center; justify-content: center; position: relative;
  border: 1px solid rgba(16,32,58,0.35);
  background: conic-gradient(from 0deg, #ffd1a8, #a8e6ff, #d8b7ff, #b7ffd8, #fff0a8, #ffd1a8);
  box-shadow: 0 2px 6px rgba(2,7,14,0.3), 0 1px 0 rgba(255,255,255,0.6) inset;
  opacity: 0.9;
}
.bc-holo span {
  font-family: var(--font-mono); font-weight: 700; font-size: 12px; letter-spacing: 0.14em;
  color: rgba(16,32,58,0.72); mix-blend-mode: overlay;
}
.bc-micro {
  margin: 16px 0 0; font-family: var(--font-mono); font-size: 5.2px;
  letter-spacing: 0.18em; color: rgba(16,32,58,0.42);
  white-space: nowrap; overflow: hidden; text-transform: uppercase;
}
.bc-mrz {
  margin: 10px -34px -30px; padding: 14px 34px 16px;
  border-top: 1px dashed rgba(16,32,58,0.4);
  background: repeating-linear-gradient(90deg, rgba(16,32,58,0.02) 0 2px, transparent 2px 4px), #efe6d2;
  font-family: var(--font-mono); font-size: 13px; line-height: 1.5;
  letter-spacing: 0.16em; color: #1a2c48; word-break: break-all;
}
.bc-mrz span { display: block; }

@media (max-width: 560px) {
  .bc-authrow { padding-right: 0; flex-direction: column; align-items: flex-start; gap: 14px; }
  .bc-mrz { font-size: 11px; }
  .bc-cert .bc-seal { width: 200px; height: 200px; }
  .bc-resulttag, .bc-control { padding-right: 0; }
}
@media print {
  .bc-cert, .bc-crewblock { color: #10203a !important; background: #fff !important; }
  .bc-mrz { background: #f0eada !important; }
}

/* The stamping moment: when the live reveal paints the commission, it lands
   like a stamp — a settle and a warm flash of the seal — then holds still.
   The global reduced-motion kill switch in site.css disables the animation. */
.bc-cert { scroll-margin: 90px; }
.bc-cert.stamped { animation: bc-stamp-in 0.7s cubic-bezier(0.2, 1.3, 0.4, 1) both; }
@keyframes bc-stamp-in {
  0%   { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(247,147,30,0.55), 0 34px 74px rgba(2,7,14,0.7); }
  60%  { transform: scale(0.995); }
  100% { transform: scale(1); box-shadow: 0 2px 0 rgba(255,255,255,0.7) inset, 0 0 0 1px rgba(16,32,58,0.35), 0 34px 74px rgba(2,7,14,0.7); }
}

/* -------- simplify after the reveal: one clear next step ----------------- */
.bc-pivot {
  background: none; border: 0; border-left: 2px solid rgba(247,147,30,0.6);
  border-radius: 0; padding: 2px 0 2px 18px; margin: 22px 0 20px; box-shadow: none;
}
.bc-pivot p { color: var(--cream-dim); font-size: 1.04rem; }
.bc-commission { padding: 16px 18px; }
.bc-commission > .bc-fineline { display: none; }
.bc-ctas { align-items: center; gap: 10px 20px; margin-top: 14px; }
/* ONE EXIT. This is a lead-generation page, so every control standing beside
   the booking button is a way to not book (user testing, 08/24/2026: "the
   intent of a funnel is to keep people moving towards the desired outcome").
   The flight plan and the sample report went first; SHARE THE CHAIR and RUN
   IT AGAIN join them here rather than leaving the markup, because both stay
   wired -- #bc-sharebtn still carries the crew-manifest handler its JS binds
   unconditionally, and the emailed commission still carries a share link of
   its own. They belong to the mini-demo variant, which is a different job
   than this page has. */
.bc-ctas a[href="/flightplan/"],
.bc-ctas a[data-msa-href="report"],
.bc-ctas #bc-sharebtn,
.bc-ctas a[href="/captain/"] { display: none; }
/* ...except on the mini demo, where sharing IS the job. /captain/?mode=demo
   sets .bc-demo on the root (see the head of the captain page script). Only
   the two sharing controls come back: the flight plan and the sample report
   are other funnels, not ways to show someone the experience. */
.bc-demo .bc-ctas #bc-sharebtn,
.bc-demo .bc-ctas a[href^="/captain/"] { display: inline-block; }
.bc-ctas .btn-ghost {
  border: 0; background: none; box-shadow: none;
  padding: 6px 0; font-family: var(--font-mono); font-size: 0.82rem;
  letter-spacing: 0.08em; text-transform: uppercase; color: var(--cream-dim);
  text-decoration: none;
}
.bc-ctas .btn-ghost:hover, .bc-ctas .btn-ghost:focus-visible {
  color: var(--orange); transform: none; text-decoration: underline; text-underline-offset: 3px;
}
#bc-log { display: none !important; }
.bc-student { display: none; }
