/* The front page of epicquest.bio (templates/funnel/front.html): the /flashy page's own WebGL nanopore look
   (static/eqb/front.css) with the membership funnel's kit around it — the top nav, the live daily call, the $599
   lifetime membership card and the kit's join sheet. This file is only the glue: it maps the funnel tokens onto the
   flashy page's own variables (so the kit's offer card, sheet, footer and the flashy page's hero, card and story all
   read as one fluorescence scene on void black), lays the page's grid out, and adds the two sections the flashy page
   never had (the live call and the membership drive). The heavy styling — the hero headline, the sign-up card, the
   story, the member card — is eqb/front.css and kit.css, unchanged. Tokens are set by html[data-variant="front"]
   below; the scene behind everything is eqb/pore.js on #scene. */

/* ------------------------------------------------ the signed-in player's character sheet strip
   The sheet uses the /me page's own look (static/eqb/eqb.css): paper card, ink borders, Big Shoulders display
   type. eqb.css sets those tokens on :root, which would fight the front page's dark scene, so we re-declare them
   scoped to this strip and give the strip the paper context the sheet styles expect. */
.eqbf-player {
  --ink: #12110e; --ink-2: #2a2620;
  --paper: #eee6d3; --paper-2: #e3d8c0; --paper-3: #f6f1e4;
  --felt: #2e9a83; --felt-deep: #1d6b5a; --mug: #b3332b; --pink: #d93a7e; --dim: #6f6757;
  --rule: rgba(18, 17, 14, .82); --hair: rgba(18, 17, 14, .18);
  --display: "Big Shoulders", "Arial Narrow", Impact, sans-serif;
  --serif: "Newsreader", Georgia, "Times New Roman", serif;
  --fell: "IM Fell", "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, Menlo, Consolas, monospace;
  max-width: 860px; margin: clamp(14px, 3vh, 26px) auto 0; padding: 0 var(--gut, 20px);
  color: var(--ink); font: 400 18px/1.55 var(--serif);
}
.eqbf-player .sheet { margin-top: 0; }
.eqbf-player a { color: inherit; }
.eqbf-player a:hover { color: var(--felt-deep); }

/* ------------------------------------------------ the one set of tokens: the flashy page's own names */
html[data-variant="front"] {
  /* eqb/front.css reads these; we set them to the fluorescence scene it already expects */
  --void: #04060c;
  --bone: #eef1f8;
  --soft: rgba(226, 232, 246, .86);
  --dim: rgba(205, 214, 236, .62);
  --faint: rgba(190, 205, 255, .13);
  --line: rgba(190, 205, 255, .16);
  --cy: #5ef0ff;
  --vi: #a98bff;
  --mg: #ff4fb0;
  --am: #ffb84d;
  --gold: #ffd89a;
  --sans: "Archivo", system-ui, sans-serif;
  --serif: "Newsreader", Georgia, serif;
  --mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --gut: clamp(16px, 4vw, 32px);
  --spectrum: #5ef0ff, #a98bff, #ff4fb0, #ffb84d, #5ef0ff;
  /* the kit reads these */
  --bg: var(--void);
  --bg-2: #070b16;
  --fg: var(--bone);
  --accent: var(--cy);
  --accent-ink: #03141a;
  --card: rgba(12, 17, 32, .72);
  --card-solid: #0c1120;
  --radius: 18px;
  --display: var(--sans);
  --body: var(--sans);
  --focus: var(--cy);
  --tint: rgba(94, 240, 255, .1);
  --shadow: 0 60px 120px -50px rgba(0, 0, 0, .95);
  --mc-bg: linear-gradient(135deg, #123a4a 0%, #1f6f66 55%, #0a1f2c 100%);
  --mc-ink: #eafffb;
  --mark-bg: rgba(94, 240, 255, .2);
  --mark-ink: var(--cy);
  color-scheme: dark;
}
@property --eqbf-spin { syntax: "<angle>"; inherits: false; initial-value: 0deg; }

/* ------------------------------------------------ the field: the WebGL scene canvas + grain (eqb/front.css styles
   #scene and .grain as fixed layers; here we only keep the kit's own scope canvas out of the way, since the flashy
   page's scene is the real field) */
.eqbf-scope, .eqb-lab-grid, .eqbf-grain { display: none; }

/* the molecule cursor (eqb/front.css hides the pointer over the page so your cursor can be a molecule) gives the
   pointer back over the parts that came from the funnel: the nav, the live call, the membership card and the footer */
html.molcursor .eqbf-nav, html.molcursor .eqbf-nav *,
html.molcursor .eqbf-meet, html.molcursor .eqbf-meet *,
html.molcursor .eqbf-offer-wrap, html.molcursor .eqbf-offer-wrap *,
html.molcursor .foot, html.molcursor .foot * { cursor: auto; }
html.molcursor .eqbf-nav a, html.molcursor .eqbf-meet a, html.molcursor .eqbf-offer-wrap a,
html.molcursor .eqbf-offer-wrap button, html.molcursor .foot a { cursor: pointer; }

/* the headline: pore.js draws "Join the Epic Quest" as a WebGL point-lattice overlay and eqb/front.css blanks the
   DOM text the moment the html tag carries .gl (.gl .head .l { color: transparent }). The html tag here always
   carries .js (set on the tag by templates/funnel/front.html), so eqb/front.css's :not(.js) branch never fires and
   in .gl mode the lattice is the only headline. This rule is only the no-WebGL fallback: when pore.js's fail() puts
   .no-gl on the html tag, the plain text reads again, exactly as eqb/front.css intends. */
html[data-variant="front"].no-gl .head .l { color: var(--bone); }
html[data-variant="front"].no-gl .head .l + .l {
  background: linear-gradient(90deg, var(--spectrum));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ------------------------------------------------ the standard top nav (the funnel's shared _nav.html) */
.eqbf-nav {
  display: flex; align-items: center; gap: clamp(1rem, 3vw, 1.8rem);
  padding: max(10px, env(safe-area-inset-top)) 0 .7rem;
  border-bottom: 1px solid var(--line);
}
/* the nav lines up with the page's content column: the same gutter and the same 1360px cap as eqb/front.css .page
   (it used to run flush to the window's edges, so on a phone the Join button touched the glass) */
.eqbf-front > .eqbf-nav { max-width: 1360px; margin: 0 auto; padding-left: var(--gut); padding-right: var(--gut); }
.eqbf-nav .eqbf-mark { display: inline-flex; align-items: center; text-decoration: none; }
.eqbf-nav .eqbf-mark img { display: block; height: 2.6rem; width: auto; }
.eqbf-nav-links { display: flex; gap: clamp(0.9rem, 2.4vw, 1.6rem); margin-left: auto; }
.eqbf-nav-links a {
  color: var(--dim); text-decoration: none; font-size: .92rem;
  border-bottom: 1px solid transparent; padding-bottom: 2px; transition: color .15s, border-color .15s;
}
.eqbf-nav-links a:hover { color: var(--bone); border-color: var(--cy); }
.eqbf-nav-cta { display: flex; align-items: center; gap: 0.9rem; }
.eqbf-nav-signin {
  font: 700 .92rem var(--sans); color: var(--bone); text-decoration: none;
  border: 1px solid rgba(94, 240, 255, .45); border-radius: 999px; padding: .6rem 1.3rem;
  background: rgba(94, 240, 255, .08);
  transition: border-color .15s, background .15s, color .15s;
}
.eqbf-nav-signin:hover { border-color: var(--cy); background: rgba(94, 240, 255, .16); color: #fff; }
.eqbf-nav-join {
  font: 700 .92rem var(--sans); cursor: pointer;
  background: var(--cy);
  color: #041018; border: 0; border-radius: 999px; padding: .6rem 1.3rem;
  transition: transform .12s, background .12s;
}
.eqbf-nav-join:hover { background: #9ff7ff; transform: translateY(-1px); }
/* the signed-in player's name, shown beside "Sign out" (templates/funnel/_nav.html, 2026-12-01) */
.eqbf-nav-who {
  max-width: 14em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  font: 500 .84rem var(--mono); letter-spacing: .03em; color: var(--soft);
}
.eqbf-nav-who::before {
  content: ""; display: inline-block; width: 7px; height: 7px; margin-right: .5rem; vertical-align: 1px;
  border-radius: 50%; background: #6dff9e; box-shadow: 0 0 8px #6dff9e;
}
@media (max-width: 600px) { .eqbf-nav-who { display: none; } }
/* phones: the account link and the Join button (which kit.js may relabel "Memberships open soon") stay on one line
   each, at the right */
@media (max-width: 480px) {
  .eqbf-nav { gap: .6rem; }
  .eqbf-nav .eqbf-mark img { height: 2.1rem; }
  .eqbf-nav-cta { gap: .5rem; margin-left: auto; }
  .eqbf-nav-signin, .eqbf-nav-join { padding: .5rem .8rem; font-size: .8rem; white-space: nowrap; }
}

/* ------------------------------------------------ the page grid: the flashy page's own two-column layout, with the
   live call and the membership card added as rows. eqb/front.css gives .page its max-width and grid; we extend the
   areas here so the new sections fall into place. */
.eqbf-front { position: relative; z-index: 2; }
/* the meet button opens the hero, so the hero's usual big top padding only makes dead air under the nav */
.eqbf-front .hero { padding-top: clamp(6px, 1.2vh, 12px); }
.eqbf-front .hero .eqbf-meet { margin-bottom: clamp(1.1rem, 3vh, 2rem); }
.eqbf-front .page { grid-template-areas: "hero" "dream" "card" "long"; }
.eqbf-front .story-dream { grid-area: dream; }
.eqbf-front .story-long { grid-area: long; }
@media (min-width: 1000px) {
  .eqbf-front .page { grid-template-areas: "hero card" "dream card" "long card"; }
}

/* the lede sits between the pore stage and the caption, and reads larger there */
.eqbf-front .lede { margin-bottom: clamp(18px, 3vh, 30px); font-size: clamp(29px, 3.8vw, 50px); }

/* the caption's first sentence stands out from the rest */
.eqbf-front .caption .cant-solve {
  color: var(--bone); font-weight: 700; font-size: 1.22em;
  text-shadow: 0 0 16px rgba(94, 240, 255, .5);
}

/* the dream sentence is the one line on the page that gets the gold marker */
.eqbf-front .dream-mark {
  color: var(--gold); background: linear-gradient(transparent 60%, rgba(255, 184, 77, .28) 60%);
  font-weight: 600;
}

/* the closing links, on their own until the copy around them is written */
.eqbf-front .story-long { display: flex; flex-wrap: wrap; gap: 10px 26px; padding-top: 10px; }
.eqbf-front .story-long a {
  font: 500 13px/1 var(--mono); letter-spacing: .06em; color: var(--soft);
  text-decoration-color: var(--faint); text-underline-offset: 4px;
}
.eqbf-front .story-long a:hover { color: #fff; text-decoration-color: var(--cy); }

/* the membership offer: its own box under the sign-up card since 2026-12-01 (it used to sit inside the sign-up form).
   The right-hand column is about 470px wide, too narrow for the kit's two-column offer grid (the list beside a 240px
   member card), which wrapped the list a word or two a line. Here the offer always stacks in one column: headline,
   member card, list, buttons. display: block turns the kit's grid off, so its grid-column rules no longer apply,
   except inside .eqbf-offer-top, where the member card is reset to the one column. */
.eqbf-front .card-member { margin-top: clamp(22px, 3vh, 32px); }
.eqbf-front .card-member .eqbf-drive { margin-bottom: .9rem; }
.eqbf-front .card-member .eqbf-offer { display: block; padding: clamp(1.25rem, 2.4vw, 1.75rem); }
.eqbf-front .card-member .eqbf-offer-top { display: grid; gap: 16px; }
.eqbf-front .card-member .eqbf-offer-top > .eqbf-mcard { grid-column: auto; grid-row: auto; max-width: 280px; }
.eqbf-front .card-member .eqbf-offer-title { font-size: clamp(1.6rem, 2.6vw, 2.1rem); font-stretch: 82%; }
.eqbf-front .card-member .eqbf-items li { line-height: 1.45; }

/* eqb/front.css pins the sign-up column (position: sticky) on wide screens. With the membership box under it, the
   column is taller than the screen, and a pinned column that tall hides its own lower part, so here it scrolls with
   the page. */
@media (min-width: 1000px) {
  .eqbf-front .card-wrap { position: static; }
}

/* the molecule cursor gives the pointer back over the membership box too (eqb/front.css only frees .card) */
html.molcursor .card-member, html.molcursor .card-member * { cursor: auto; }
html.molcursor .card-member a, html.molcursor .card-member button { cursor: pointer; }

/* the sign-up card's small print: a little larger and brighter, so it reads on the dark glass */
.eqbf-front .card .field > span, .eqbf-front .card .field legend > span { font-size: 11.5px; color: var(--soft); }
.eqbf-front .card .how { font-size: 13.5px; }
.eqbf-front .card .fine { font-size: 13px; color: var(--soft); }

/* eqb/front.css gives .story a min-height of 88vh and flex-centers it (it was the flashy page's only story block,
   a full-viewport act on its own). Here the stories share the column with the hero, the live call and the offer,
   so they take their natural height and simply stack. */
.eqbf-front .story { min-height: 0; display: block; }

/* eqb/front.css sets .page's padding to its own bottom value; the funnel frame wants a little more air at the foot */
.eqbf-front main.page { padding-bottom: clamp(40px, 8vh, 80px); }

/* ------------------------------------------------ the live call */
/* the admin-only checkbox that shows or hides the live button for everyone; only renders for admins */
.eqbf-meet-admin {
  display: inline-flex; align-items: center; gap: .5rem;
  margin: 0 0 clamp(1.1rem, 3vh, 2rem) 4px;
  font: 600 .78rem var(--mono); letter-spacing: .06em; text-transform: uppercase;
  color: var(--soft); cursor: pointer; user-select: none;
}
.eqbf-meet-admin input { accent-color: var(--cy); width: 1rem; height: 1rem; cursor: pointer; }
.eqbf-meet {
  position: relative; isolation: isolate; overflow: hidden;
  display: flex; align-items: center; gap: clamp(1.2rem, 3vw, 2.2rem);
  border: 1px solid rgba(94, 240, 255, .3); border-radius: var(--radius);
  background: linear-gradient(90deg, rgba(13, 20, 36, .92), rgba(9, 14, 26, .92) 50%, rgba(13, 20, 36, .92));
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  padding: clamp(1.1rem, 2.6vw, 1.6rem) clamp(1.2rem, 3vw, 1.8rem);
  margin: 0;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), var(--shadow);
  transition: border-color .3s, box-shadow .3s;
}
.eqbf-meet-bar {
  position: absolute; inset: 0 auto 0 0; width: 6px;
  background: linear-gradient(to bottom, var(--cy), var(--vi));
}
.eqbf-meet.is-live {
  border-color: rgba(94, 240, 255, .6);
  animation: eqbf-meet-glow 2.4s ease-in-out infinite;
}
@keyframes eqbf-meet-glow {
  0%, 100% { box-shadow: 0 0 0 1px rgba(94, 240, 255, .28), 0 0 44px rgba(94, 240, 255, .12), var(--shadow); }
  50% { box-shadow: 0 0 0 1px rgba(94, 240, 255, .5), 0 0 70px rgba(94, 240, 255, .24), var(--shadow); }
}
.eqbf-meet-btn {
  flex: 1 1 auto;
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  text-decoration: none; text-align: center;
  background: var(--cy); color: #04101a; font: 900 1.05rem/1.25 var(--sans); border-radius: 14px; padding: 1rem 1.5rem;
  box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .6), 0 0 34px -8px rgba(94, 240, 255, .55);
  transition: transform .12s, background .12s;
}
.eqbf-meet-btn:hover { background: #9ff7ff; transform: translateY(-1px); }
.eqbf-meet-btn svg { width: 1.25rem; height: 1.25rem; color: #059669; flex: none; }
.eqbf-meet-btn.is-live { animation: eqbf-btn-throb 1.8s ease-in-out infinite; }
@keyframes eqbf-btn-throb { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.02); } }

/* ------------------------------------------------ the membership drive line + the offer card (restyle only; the
   kit's own grid lays the card out) */
.eqbf-drive {
  display: flex; align-items: center; gap: .9rem; text-align: center;
  font: 500 .82rem/1.4 var(--mono); letter-spacing: .14em; text-transform: uppercase;
  color: rgba(255, 216, 154, .9);
  margin: 0 0 1.1rem;
}
.eqbf-drive b { color: var(--gold); font-weight: 700; }
.eqbf-drive-rule { flex: 1; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(255, 184, 77, .4), transparent); }

.eqbf-front .eqbf-offer {
  position: relative; isolation: isolate;
  background: linear-gradient(165deg, rgba(22, 28, 48, .78), rgba(7, 9, 18, .86)), var(--card-solid);
  border: 1px solid var(--line); border-radius: var(--radius);
  -webkit-backdrop-filter: blur(16px) saturate(150%); backdrop-filter: blur(16px) saturate(150%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .08), var(--shadow);
}
.eqbf-front .eqbf-offer::before {
  content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.2px; pointer-events: none;
  background: conic-gradient(from var(--eqbf-spin), var(--spectrum));
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); mask-composite: exclude;
  opacity: .5; animation: eqbf-spin 9s linear infinite;
}
@keyframes eqbf-spin { to { --eqbf-spin: 360deg; } }
.eqbf-front .eqbf-offer-title {
  font-family: var(--sans); font-weight: 900; font-stretch: 76%;
  font-size: clamp(2.1rem, 4.4vw, 3rem); line-height: .94; text-transform: uppercase; letter-spacing: .005em;
  margin: 0;
}
/* the price inside the headline takes the fluorescence, so it reads as the one number on the page that matters */
.eqbf-front .eqbf-offer-title .eqbf-price {
  background: linear-gradient(92deg, var(--spectrum));
  -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
  filter: drop-shadow(0 0 20px rgba(255, 79, 176, .3));
}
@media (min-width: 680px) {
  .eqbf-front .eqbf-offer { padding: clamp(1.7rem, 3.4vw, 2.5rem); }
}
.eqbf-front .eqbf-items { margin-top: clamp(1.2rem, 2.6vw, 1.8rem); }
.eqbf-front .eqbf-items li { padding-left: .2rem; color: var(--soft); }
.eqbf-front .eqbf-items li::marker { color: var(--cy); }
.eqbf-front .eqbf-mcard { box-shadow: 0 16px 40px rgba(0, 0, 0, .55), inset 0 0 0 1px rgba(94, 240, 255, .18); }
.eqbf-front .eqbf-mcard-org { letter-spacing: .14em; }
.eqbf-front .eqbf-mcard-name { font-size: 1.5rem; }
/* the action row: the pay button is the foil, the free path stays quiet beside it */
.eqbf-front .eqbf-actions { margin-top: clamp(1.2rem, 2.6vw, 1.7rem); }
.eqbf-front .eqbf-actions .eqbf-btn {
  padding: 1.05rem 1.7rem; border: 0; border-radius: 14px;
  background: linear-gradient(110deg, #dffbff 0%, #ffffff 22%, #f1e6ff 40%, #ffe3f3 56%, #fff1d9 74%, #e1fbff 100%);
  background-size: 220% 100%; animation: eqbf-foil 7s ease-in-out infinite alternate;
  color: #04101a; font-weight: 900;
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, .7), 0 14px 44px -14px rgba(94, 240, 255, .6);
}
.eqbf-front .eqbf-actions .eqbf-btn:hover {
  filter: none; transform: translateY(-2px);
  box-shadow: inset 0 0 0 1px #fff, 0 20px 56px -14px rgba(94, 240, 255, .8), 0 24px 70px -22px rgba(255, 79, 176, .6);
}
.eqbf-front .eqbf-actions .eqbf-btn.is-closed {
  background: transparent; color: var(--bone); border: 1px dashed var(--line); box-shadow: none; animation: none;
}
@keyframes eqbf-foil { to { background-position: 100% 0; } }

/* ------------------------------------------------ the closing story's links read as part of the scene */
.eqbf-front .story-long { grid-area: long; }

/* ------------------------------------------------ the footer: the flashy page's own .foot, plus the motion toggle */
.eqbf-motion-row { margin-top: 6px; }
.eqbf-motion {
  font: 500 12px/1 var(--mono); color: var(--dim); cursor: pointer;
  background: none; border: 1px solid var(--faint); border-radius: 999px; padding: 8px 14px;
}
.eqbf-motion:hover { color: var(--bone); border-color: rgba(94, 240, 255, .4); }

/* ------------------------------------------------ small screens */
@media (max-width: 999px) {
  .eqbf-meet { flex-direction: column; align-items: stretch; }
  .eqbf-meet-btn { width: 100%; }
  .eqbf-nav-links { display: none; }  /* the body links carry the same three places on a phone */
}

@media (prefers-reduced-motion: reduce) {
  .eqbf-meet.is-live, .eqbf-meet-btn.is-live,
  .eqbf-front .eqbf-offer::before, .eqbf-front .eqbf-actions .eqbf-btn { animation: none; }
  .eqbf-meet-btn, .eqbf-nav-join { transition: none; }
}
