/* Funnel module CSS (extracted from landing.html 2026-08-06 lean pass).
 *
 * This was a ~40KB inline <style> re-sent inside every HTML response and
 * invisible to the static-file cache. As a hashed static it is
 * immutable-cached; the HTML shrinks accordingly. Scoped to #gr-funnel /
 * .gr-* so it never collides with the design CSS (original scoping note
 * preserved below).
 */
  /* Scoped to #gr-funnel so it never collides with the design CSS. */
  /* Iter 2: the module is the full focus - fills the first viewport so the
     hero below is pushed down. */
  /* Full first viewport (2026-07-07): 80vh left a ~60px sliver of the hero's
     ThesisAI card peeking bottom-right on load. 100svh = only the centric
     URL-paste module above the fold (svh tracks mobile browser chrome).
     isolation + contain give the loader's animated blur/transform layers a
     self-contained compositing boundary so the example <video>s below stop
     flickering during generation (GPU layer thrash fix). */
  /* Optical centering v2 (2026-07-12 pm, Felix): the top-anchored iteration
     overshot ("I don't need it on top of the screen"). Back to flex-center,
     with a slightly heavier bottom pad so the block sits a touch ABOVE the
     geometric center - where a centered layout reads as centered - keeping
     more air below the URL input than above the headline. The 100svh - 69px
     pin is untouched: header + funnel still fill exactly one viewport and the
     hero's ThesisAI card never peeks on load. Same behavior on mobile (vh). */
  #gr-funnel { position: relative; overflow: hidden; display: flex; align-items: center;
    min-height: calc(100vh - 69px - var(--gr-announce-h, 0px));
    min-height: calc(100svh - 69px - var(--gr-announce-h, 0px));
    isolation: isolate; contain: paint;
    padding: clamp(2rem, 5vh, 3.5rem) 1rem clamp(3rem, 9vh, 5.5rem); }
  .gr-funnel__bg { position: absolute; inset: 0; pointer-events: none; }
  .gr-funnel__bg svg { width: 100%; height: 100%; }
  /* orange focal glow centered behind the URL input (tracks the optically
     centered content, 2026-07-12 pm) */
  .gr-funnel__bg::after { content: ""; position: absolute; left: 50%; top: 44%;
    transform: translate(-50%, -50%); width: min(760px, 92vw); height: 440px; border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(255,90,31,.30), rgba(255,90,31,.07) 45%, transparent 70%);
    filter: blur(10px); }
  .gr-funnel__inner { position: relative; max-width: 780px; width: 100%; margin: 0 auto; text-align: center; }
  .gr-funnel__headline { font-size: clamp(2rem, 5.2vw, 3.2rem); line-height: 1.12; margin: 0 0 .8rem; font-weight: 700; }
  .gr-funnel__pct { color: #FF5A1F; }
  .gr-funnel__sub { font-size: clamp(1rem, 2vw, 1.25rem); opacity: .85; margin: 0 0 2rem; }
  /* Centered stack (2026-08-24, Felix): heading, URL input, Generate, then
     the sample pill - one centered column instead of input+button side by
     side. The input spans the column; the button keeps its own width. */
  .gr-funnel__form { display: flex; flex-direction: column; align-items: center;
    gap: .8rem; max-width: 600px; margin: 0 auto; }
  #gr-funnel-url {
    scroll-margin-top: 100px;
    width: 100%; padding: 1rem 1.1rem; border-radius: 12px;
    border: 1px solid rgba(255,90,31,.35); background: rgba(11,42,61,.72);
    color: inherit; font-size: 1rem;
    /* Centered text (2026-07-11, Felix): the module is centric, so the URL
       placeholder/text reads centered too instead of hugging the left edge. */
    text-align: center;
    box-shadow: 0 0 0 4px rgba(255,90,31,.06), 0 10px 34px rgba(5,28,44,.45);
  }
  #gr-funnel-url:focus { outline: none; border-color: rgba(255,90,31,.85); box-shadow: 0 0 0 4px rgba(255,90,31,.18); }
  #gr-funnel-go { padding-inline: 1.5rem; }
  /* Muted while the URL has not yet parsed as a site (validate-as-you-type). */
  #gr-funnel-go:disabled { opacity: .5; cursor: not-allowed; box-shadow: none; }
  /* ---- generation stage: progress ring + preview (directly below input) ----
     3rem gap (2026-07-11, Felix): more air between the URL input's bottom and
     the top of the teaser frame. */
  /* 1.4rem (2026-08-24, Felix): the sample showcase must open close to the
     sample pill so the visitor never loses track (was 3rem of air). */
  .gr-funnel__stage { margin: 1.4rem auto 0; max-width: 600px; }
  .gr-funnel__stage[hidden] { display: none; }
  .gr-funnel__videowrap { position: relative; width: 270px; max-width: 80vw; margin: 0 auto; aspect-ratio: 9/16; border-radius: 14px; overflow: hidden; background: #000; }
  .gr-funnel__video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .gr-funnel__video[hidden] { display: none; }
  /* The locked sample (2026-09-22a): a stored, pre-blurred, muted 9:16 file
     under a lock glyph, the hook line from the page across it. Fills the
     videowrap like the old player did; the blur is IN the file, never CSS. */
  .gr-funnel__locked { position: absolute; inset: 0; width: 100%; height: 100%; }
  .gr-funnel__locked[hidden] { display: none; }
  .gr-funnel__locked video { width: 100%; height: 100%; object-fit: cover; display: block; }
  .gr-funnel__locked::after { content: ""; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(5,28,44,.05) 0%, rgba(5,28,44,.55) 100%); pointer-events: none; }
  /* 2026-09-22b: the brand tint over the grey montage, and the lock as the
     checkout button (icon + price), large enough for a thumb. */
  .gr-funnel__tint { position: absolute; inset: 0; mix-blend-mode: color; opacity: .6; pointer-events: none; }
  .gr-funnel__tint[hidden] { display: none; }
  .gr-funnel__lock { position: absolute; left: 50%; top: 38%; transform: translate(-50%, -50%);
    z-index: 3; display: flex; flex-direction: column; align-items: center; gap: .55rem;
    padding: 0; border: 0; background: none; cursor: pointer; font: inherit; color: #fff; }
  .gr-funnel__lock-icon { width: 72px; height: 72px; border-radius: 999px;
    background: rgba(5,28,44,.72); border: 1px solid rgba(255,255,255,.45);
    display: flex; align-items: center; justify-content: center; transition: transform .15s ease; }
  .gr-funnel__lock-icon svg { width: 30px; height: 30px; }
  .gr-funnel__lock:hover .gr-funnel__lock-icon, .gr-funnel__lock:focus-visible .gr-funnel__lock-icon { transform: scale(1.06); }
  /* 2026-10-06: the visible label + price, one orange pill under the glyph. */
  .gr-funnel__lock-cta { display: inline-flex; align-items: center; gap: .5rem; white-space: nowrap;
    padding: .55rem 1rem; border-radius: 999px; background: #ff5a1f; color: #1a0e06;
    font-weight: 700; font-size: .95rem; line-height: 1; box-shadow: 0 6px 20px rgba(255,90,31,.35); }
  .gr-funnel__lock-price { padding-left: .5rem; border-left: 1px solid rgba(26,14,6,.35); }
  .gr-funnel__lock:hover .gr-funnel__lock-cta, .gr-funnel__lock:focus-visible .gr-funnel__lock-cta { background: #e8480f; }
  .gr-funnel__lock:disabled { cursor: progress; opacity: .8; }
  .gr-funnel__lock:focus-visible { outline: 2px solid #fff; outline-offset: 6px; border-radius: 12px; }
  .gr-funnel__hook { position: absolute; left: 6%; right: 6%; bottom: 9%; z-index: 2; margin: 0;
    color: #fff; font-weight: 800; font-size: 1.15rem; line-height: 1.2; text-align: center;
    text-shadow: 0 2px 10px rgba(0,0,0,.6); overflow-wrap: anywhere;
    /* 2026-10-06: a long page headline never climbs into the lock. */
    display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
  .gr-funnel__status { min-height: 1.2em; font-size: .9rem; opacity: .8; margin-top: .6rem; }
  .gr-funnel__status:empty { display: none; }
  /* L-5: the human fallback shown only when the preview throttle hits. */
  .gr-funnel__b2b { font-size: .88rem; opacity: .85; margin-top: .3rem; }
  .gr-funnel__b2b[hidden] { display: none; }
  .gr-funnel__b2b a { color: #FF5A1F; font-weight: 600; text-decoration: underline; }

  .gr-funnel__mission-label { font-size: 1rem; font-weight: 600; opacity: .9;
    margin: 0 0 .8rem; text-align: center; }

  /* ---- mobile: single column, nothing cramped or overflowing ---- */
  @media (max-width: 600px) {
    /* the form is a centered column at every width since 2026-08-24 */
    #gr-funnel-go { width: 100%; }
    .gr-funnel__videowrap { width: 220px; }
    /* carousel mobile rules live in gorocket-avatar-carousel.css */
  }

/* The avatars section (2026-09-22, Felix): one button opens the showcase
   in place; it no longer sits under the URL input. */
.gr-avatars__open { text-align: center; margin: 0 0 1.2rem; }
.gr-avatars__open [hidden], .gr-avatars__open button[hidden] { display: none; }

/* Showcase v2 (2026-08-22): the pre-rendered sample ad inside the funnel
   stage. Same 9:16 frame metrics as the videowrap; the chip row wraps
   (up to 42 published avatars). Chip visuals reuse .sc-chip from
   gorocket-landing.css - the classes stayed on purpose. */
.gr-funnel__showcase { margin: 0 auto; max-width: 600px; }
.gr-funnel__showcase-frame { position: relative; width: 270px; max-width: 80vw;
  margin: 0 auto; aspect-ratio: 9 / 16; border-radius: 14px; overflow: hidden;
  background: #000; }
.gr-funnel__showcase-frame video { width: 100%; height: 100%;
  object-fit: cover; display: block; }
/* Tap to pause (2026-08-24, Felix): the whole frame toggles playback; a
   static centered play badge marks the paused state (no motion). */
.gr-funnel__showcase-frame { cursor: pointer; }
.gr-funnel__showcase-frame.is-paused::after { content: "";
  position: absolute; inset: 0; margin: auto; width: 64px; height: 64px;
  border-radius: 50%; background-color: rgba(5, 28, 44, .68);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='%23f2f5fb'%3E%3Cpath d='M8.5 5.5v13l10-6.5z'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: center;
  background-size: 28px; pointer-events: none; }
.gr-funnel__showcase-label { margin: .7rem 0 0; font-size: .85rem;
  color: #9aa6bf; text-align: center; }
.gr-funnel__showcase-label strong { color: #f2f5fb; }
/* 2026-08-30c: the picker is the face carousel; give it breathing room
   under the bridge CTA. Card visuals come from gorocket-avatar-carousel.css. */
.gr-funnel__showcase .gr-avcar { margin-top: 14px; }
/* Bridge (2026-08-29d): the crossing CTA under the player. Filled orange -
   this is the one action we want; static, no motion, no arrows. */
.sc-bridge { display: block; margin: 12px auto 2px; background: #FF5A1F;
  border: 1px solid #FF5A1F; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: .95rem; font-weight: 700; color: #fff;
  padding: 11px 24px; transition: background .18s ease, box-shadow .18s ease; }
.sc-bridge:hover, .sc-bridge:focus-visible { background: #ff7a47;
  box-shadow: 0 0 16px rgba(255, 90, 31, .3); }

/* Gate 2 (2026-08-21, 4e): post-aha focus. Once the visitor's own preview
   is revealed, the generic pitch sections below it (hero, the 40x pitch,
   the example reel, the duplicate final CTA) hide - their ad is the page
   now. Pricing, FAQ, the authority marquee and the footer stay. */
body.gr-funnel-revealed .gr-hide-on-reveal { display: none; }

/* 2026-10-05: the script-by-email form under the locked sample. */
.gr-funnel__script { max-width: 420px; margin: 1rem auto 0; text-align: left; }
.gr-funnel__script[hidden] { display: none; }
.gr-funnel__script-label { display: block; font-size: .95rem; font-weight: 700; margin-bottom: .45rem; }
.gr-funnel__script-row { display: flex; gap: 8px; }
.gr-funnel__script-input { flex: 1 1 auto; min-width: 0; padding: 10px 12px; border-radius: 10px;
  border: 1px solid rgba(255,255,255,.28); background: rgba(255,255,255,.06); color: #fff; font-size: 16px; }
.gr-funnel__script-input::placeholder { color: rgba(255,255,255,.45); }
.gr-funnel__script-btn { flex: 0 0 auto; padding-left: .95rem; padding-right: .95rem; }
.gr-funnel__script-status { font-size: .85rem; min-height: 1.2em; margin: .4rem 0 0; }
.gr-funnel__script-status:empty { display: none; }
.gr-funnel__script-fine { font-size: .75rem; opacity: .6; margin: .35rem 0 0; }
.gr-funnel__script-fine a { color: inherit; text-decoration: underline; }
.gr-funnel__script.is-sent .gr-funnel__script-row { display: none; }
