/* ==========================================================================
   The Lead Gen Company — guides index
   Loads AFTER leadhq-lab.css and leadhq-guide.css. Used only by
   /guides/index.html. Every selector is new (gi-*, gx-*).

   One card per guide, each with its own small animated figure drawn from the
   guide's subject. Motion rules, same as the other index pages:
   1. Nothing hides unless JS is running (.gi-js is set by an inline script).
   2. Each figure's resting CSS is its finished frame.
   3. Figures run only while their card is on screen (.is-live).

   Adding a guide: copy one <a class="gx-card"> block, change the link, text
   and <svg>, and add that figure's keyframes under its own "gx-<name>" prefix.
   The shared helpers gx-in / gx-pop / gx-grow cover most entrances.
   ========================================================================== */

/* ---- hero -------------------------------------------------------------- */
.gi-hero { padding: 54px 0 76px; position: relative; z-index: 1; }
.gi-hero__grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(36px, 6vw, 80px); align-items: end; }
.gi-hero h1 { font-size: clamp(2.6rem, 1.3rem + 4.2vw, 4.8rem); line-height: .98; letter-spacing: -.04em; margin: 16px 0 24px; }
.gi-hero h1 .ln { display: block; overflow: hidden; padding: .06em 0 .14em; margin: -.06em 0 -.14em; }
.gi-hero h1 .ln > span { display: block; }
.gi-hero__lede { font-size: 1.12rem; line-height: 1.62; color: var(--ink-2); max-width: 50ch; margin: 0 0 28px; }
.gi-facts { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.gi-facts li { font-family: var(--mono); font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2);
  border: 1px solid var(--line-2); border-radius: 999px; padding: 7px 14px; background: rgba(10,16,32,.6); }
.gi-facts li::before { content: ""; display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: var(--lime); margin-right: 9px; vertical-align: 1px; box-shadow: var(--glow-sm); }

.gi-rail { border-top: 1px solid var(--line-2); }
.gi-rail__h { display: flex; justify-content: space-between; font-family: var(--mono); font-size: .7rem; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-3); padding: 14px 0 10px; margin: 0; }
.gi-rail a { display: grid; grid-template-columns: 1fr auto 18px; gap: 12px; align-items: baseline; padding: 13px 0; border-top: 1px solid var(--line); color: var(--ink);
  transition: color .2s var(--ease), padding-left .35s cubic-bezier(.16, 1, .3, 1); }
.gi-rail .t { font-size: 1.06rem; font-weight: 500; letter-spacing: -.015em; }
.gi-rail .k { font-family: var(--mono); font-size: .68rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.gi-rail .a { color: var(--lime); }
.gi-rail a.is-latest { grid-template-columns: 1fr 18px; }
.gi-rail a.is-latest .t { font-size: .98rem; line-height: 1.35; }
.gi-rail a.is-latest .k { display: block; margin-bottom: 5px; color: var(--lime); }
.gi-rail a:focus-visible { outline: 2px solid var(--lime); outline-offset: 2px; border-radius: 4px; }
@media (hover: hover) { .gi-rail a:hover { color: var(--lime); padding-left: 8px; } }

@media (prefers-reduced-motion: no-preference) {
  .gi-hero h1 .ln > span { animation: gi-line .9s cubic-bezier(.16, 1, .3, 1) both; }
  .gi-hero h1 .ln:nth-child(2) > span { animation-delay: .09s; }
  .gi-hero .crumbbox, .gi-hero .hero__eyebrow, .gi-hero__lede, .gi-facts, .gi-rail { animation: gi-rise .7s cubic-bezier(.22, .61, .36, 1) both; }
  .gi-hero__lede { animation-delay: .22s; } .gi-facts { animation-delay: .3s; } .gi-rail { animation-delay: .34s; }
}
@keyframes gi-line { from { transform: translateY(112%); } to { transform: none; } }
@keyframes gi-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }

/* the breadcrumb sits on its own line above the eyebrow */
.gi-hero .crumbbox { display: flex; width: fit-content; }

/* ---- sections + grid --------------------------------------------------- */
.gi-sec { position: relative; z-index: 1; padding: 0 0 84px; scroll-margin-top: 84px; }
.gi-sec__head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; padding: 30px 0 26px; margin-bottom: 34px;
  border-top: 1px solid var(--line-2); border-bottom: 1px solid var(--line); }
.gi-sec__head .label { display: block; margin-bottom: 10px; }
.gi-sec__head h2 { font-size: clamp(1.8rem, 1.2rem + 2vw, 2.7rem); letter-spacing: -.03em; }
.gi-sec__count { font-family: var(--mono); font-size: .72rem; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-3); white-space: nowrap; }
.gx-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; }
@media (max-width: 1040px) { .gx-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 660px) { .gx-grid { grid-template-columns: 1fr; gap: 18px; } }

/* ---- card -------------------------------------------------------------- */
.gx-card { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; color: var(--ink);
  background: linear-gradient(180deg, rgba(255,255,255,.02), transparent), var(--panel);
  transition: border-color .25s var(--ease), transform .4s cubic-bezier(.16, 1, .3, 1), box-shadow .4s var(--ease); }
.gx-card:hover { color: var(--ink); }
.gx-card:focus-visible { outline: 2px solid var(--lime); outline-offset: 3px; }
.gx-stage { position: relative; margin: 0; border-bottom: 1px solid var(--line);
  background:
    radial-gradient(90% 80% at 50% 0%, rgba(184,255,58,.08), transparent 62%),
    linear-gradient(rgba(150,180,255,.06) 1px, transparent 1px) 0 0 / 22px 22px,
    linear-gradient(90deg, rgba(150,180,255,.06) 1px, transparent 1px) 0 0 / 22px 22px,
    #0c1329; }
.gx-stage svg { display: block; width: 100%; height: auto; }
.gx-top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 10px; }
.gx-no { font-family: var(--mono); font-size: .66rem; letter-spacing: .1em; color: var(--ink-3); }
.gx-body { display: flex; flex-direction: column; flex: 1; padding: 20px 22px 20px; }
.gx-tag { font-family: var(--mono); font-size: .66rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.gx-title { font-size: 1.22rem; line-height: 1.2; letter-spacing: -.02em; margin: 0 0 10px; transition: color .2s var(--ease); }
.gx-desc { font-size: .93rem; line-height: 1.6; color: var(--ink-2); margin: 0 0 18px; flex: 1; }
.gx-meta { display: flex; align-items: center; gap: 14px; font-family: var(--mono); font-size: .7rem; letter-spacing: .02em; color: var(--ink-3);
  border-top: 1px dashed var(--line-2); padding-top: 13px; }
.gx-meta em { font-style: normal; color: var(--ink-2); }
.gx-go { margin-left: auto; color: var(--lime); font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.gx-go i { font-style: normal; transition: transform .35s cubic-bezier(.16, 1, .3, 1); }
@media (hover: hover) {
  .gx-card:hover { border-color: rgba(184,255,58,.55); transform: translateY(-4px); box-shadow: 0 26px 60px -36px rgba(184,255,58,.4), 0 30px 60px -40px rgba(0,0,0,.9); }
  .gx-card:hover .gx-title { color: #fff; }
  .gx-card:hover .gx-go i { transform: translateX(5px); }
}

/* one-shot reveal */
.gi-js .gx-card { opacity: 0; transform: translateY(22px); }
.gi-js .gx-card.is-in { opacity: 1; transform: none;
  transition: opacity .7s cubic-bezier(.22, .61, .36, 1), transform .9s cubic-bezier(.16, 1, .3, 1), border-color .25s var(--ease), box-shadow .4s var(--ease);
  transition-delay: calc(var(--col, 0) * 80ms), calc(var(--col, 0) * 80ms), 0s, 0s; }
@media (hover: hover) { .gi-js .gx-card.is-in:hover { transform: translateY(-4px); transition-delay: 0s; } }

/* ---- closing strip ----------------------------------------------------- */
.gi-close { position: relative; z-index: 1; padding: 0 0 100px; }
.gi-close .ctastrip { margin: 0 0 30px; border: 1px solid var(--line-2); background: radial-gradient(70% 140% at 100% 100%, rgba(184,255,58,.12), transparent 60%), var(--panel); }
.gi-close .byline { margin-top: 0; }

/* ==========================================================================
   FIGURES (viewBox 400 x 200)
   ========================================================================== */
.gx * { transform-box: fill-box; transform-origin: center; }
.gx text { font-family: var(--mono); font-size: 10px; letter-spacing: .1em; fill: var(--ink-3); }
.gx .t-ink { fill: var(--ink); } .gx .t-lime { fill: var(--lime); } .gx .t-amber { fill: var(--amber); }
.gx .t-red { fill: #ff8a80; } .gx .t-dark { fill: #08120a; } .gx .t-b { font-weight: 700; }
.gx .t-big { font-size: 17px; letter-spacing: 0; font-weight: 700; }
.gx .t-word { font-family: var(--sans); font-size: 40px; font-weight: 700; letter-spacing: -.03em; fill: var(--ink); }
.gx-ink { fill: rgba(234,240,251,.84); } .gx-mid { fill: rgba(234,240,251,.4); } .gx-dim { fill: rgba(150,180,255,.16); }
.gx-lime { fill: var(--lime); } .gx-amber { fill: var(--amber); } .gx-red { fill: #ff8a80; } .gx-cyan { fill: var(--cyan); }
.gx-rule { fill: none; stroke: rgba(150,180,255,.22); }
.gx-dash { fill: none; stroke: rgba(150,180,255,.3); stroke-dasharray: 3 4; }
.gx-check { fill: none; stroke: #08120a; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.gi-js .gx-card:not(.is-live) .gx * { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  .gx * { animation: none !important; }
  .gi-js .gx-card { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* shared entrances: delay with --d, all on a 7s loop */
.gx-in   { animation: gx-in 7s cubic-bezier(.16, 1, .3, 1) infinite both; animation-delay: var(--d, 0s); }
.gx-pop  { animation: gx-pop 7s cubic-bezier(.16, 1, .3, 1) infinite both; animation-delay: var(--d, 0s); }
.gx-grow { transform-origin: 0 50%; animation: gx-grow 7s cubic-bezier(.16, 1, .3, 1) infinite both; animation-delay: var(--d, 0s); }
@keyframes gx-in   { 0% { opacity: 0; transform: translate(var(--x, 0), var(--y, 10px)); } 9%, 86% { opacity: 1; transform: none; } 94%, 100% { opacity: 0; transform: none; } }
@keyframes gx-pop  { 0%, 2% { transform: scale(0); } 9% { transform: scale(1.2); } 13%, 86% { transform: none; opacity: 1; } 94%, 100% { transform: none; opacity: 0; } }
@keyframes gx-grow { 0% { transform: scaleX(0); } 13%, 86% { transform: none; opacity: 1; } 94%, 100% { transform: none; opacity: 0; } }

/* 01 ranked list: the top score lights up */
.gx-rank-top { fill: none; stroke: var(--lime); animation: gx-rank-top 7s ease-out infinite both; }
@keyframes gx-rank-top { 0%, 24% { stroke-opacity: 0; } 30% { stroke-opacity: 1; filter: drop-shadow(0 0 6px rgba(184,255,58,.7)); } 50%, 86% { stroke-opacity: .7; filter: none; } 94%, 100% { stroke-opacity: 0; } }

/* 02 funnel: a prospect drops through each stage */
.gx-fn-s { animation: gx-fn-s 6s ease-out infinite both; animation-delay: var(--d, 0s); }
.gx-fn-dot { opacity: 0; animation: gx-fn-dot 6s cubic-bezier(.5, 0, .7, 1) infinite both; }
@keyframes gx-fn-s { 0% { opacity: .35; } 5% { opacity: 1; filter: brightness(1.5); } 22%, 100% { opacity: 1; filter: none; } }
@keyframes gx-fn-dot { 0% { transform: none; opacity: 0; } 4% { opacity: 1; } 52% { transform: translateY(132px); opacity: 1; } 58%, 100% { transform: translateY(132px); opacity: 0; } }

/* 04 appointments: five booked meetings turn into no-shows */
.gx-ap-miss { animation: gx-ap-miss 7s ease-out infinite both; animation-delay: var(--d, 0s); }
@keyframes gx-ap-miss { 0%, 22% { opacity: 1; } 28%, 84% { opacity: 0; } 92%, 100% { opacity: 1; } }
.gx-ap-res { animation: gx-ap-res 7s ease-out infinite both; }
@keyframes gx-ap-res { 0%, 48% { opacity: .25; } 54%, 86% { opacity: 1; } 94%, 100% { opacity: .25; } }

/* 05 telemarketing: the rate hovers under the limit */
.gx-tl-fill { transform-origin: 0 50%; transform: scaleX(.82); animation: gx-tl-fill 2.6s ease-in-out infinite alternate; }
@keyframes gx-tl-fill { from { transform: scaleX(.46); } to { transform: scaleX(.93); } }
.gx-tl-lim { animation: gx-tl-lim 2.6s ease-in-out infinite alternate; }
@keyframes gx-tl-lim { 0%, 70% { opacity: .65; } 100% { opacity: 1; } }

/* 06 data: bought records go dead, the real price appears */
.gx-dt-dead { animation: gx-dt-dead 7s ease-out infinite both; animation-delay: var(--d, 0s); }
@keyframes gx-dt-dead { 0%, 14% { opacity: 1; } 20%, 86% { opacity: 0; } 94%, 100% { opacity: 1; } }
.gx-dt-strike { transform-origin: 0 50%; animation: gx-dt-strike 7s cubic-bezier(.16, 1, .3, 1) infinite both; }
@keyframes gx-dt-strike { 0%, 46% { transform: scaleX(0); } 54%, 86% { transform: none; opacity: 1; } 94%, 100% { transform: none; opacity: 0; } }

/* 07 cold email: sends go out, one reply comes back */
.gx-em-out { opacity: 0; animation: gx-em-out 3.6s linear infinite both; animation-delay: var(--d, 0s); }
.gx-em-back { opacity: 0; animation: gx-em-back 3.6s cubic-bezier(.22, .61, .36, 1) infinite both; animation-delay: 1.5s; }
@keyframes gx-em-out { 0% { transform: none; opacity: 0; } 10% { opacity: 1; } 80% { opacity: 1; } 100% { transform: translateX(124px); opacity: 0; } }
@keyframes gx-em-back { 0% { transform: translateX(124px); opacity: 0; } 12% { opacity: 1; } 60%, 84% { transform: none; opacity: 1; } 100% { transform: none; opacity: 0; } }

/* 08 PPC: spend goes up, the percentage fee goes with it, the flat fee does not */
.gx-pc-knob { animation: gx-pc-knob 3.4s ease-in-out infinite alternate; }
.gx-pc-pct { transform-origin: 0 50%; animation: gx-pc-pct 3.4s ease-in-out infinite alternate; }
@keyframes gx-pc-knob { from { transform: translateX(0); } to { transform: translateX(236px); } }
@keyframes gx-pc-pct { from { transform: scaleX(.26); } to { transform: scaleX(1); } }

/* 09 SEO: the ranking holds, the clicks fall */
.gx-se-rank { fill: none; stroke: var(--lime); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; animation: gx-se-draw 7s cubic-bezier(.22, .61, .36, 1) infinite both; }
.gx-se-click { fill: none; stroke: var(--amber); stroke-width: 2.5; stroke-linecap: round; stroke-dasharray: 100; animation: gx-se-draw 7s cubic-bezier(.22, .61, .36, 1) infinite both; animation-delay: .5s; }
@keyframes gx-se-draw { 0% { stroke-dashoffset: 100; opacity: 1; } 36%, 84% { stroke-dashoffset: 0; opacity: 1; } 94%, 100% { stroke-dashoffset: 0; opacity: 0; } }

/* 10 pay per lead: leads reach the consent gate, most stop there */
.gx-pl-pass { opacity: 0; animation: gx-pl-pass 5s linear infinite both; animation-delay: var(--d, 0s); }
.gx-pl-fail { opacity: 0; animation: gx-pl-fail 5s linear infinite both; animation-delay: var(--d, 0s); }
.gx-pl-x { opacity: 0; animation: gx-pl-x 5s linear infinite both; animation-delay: var(--d, 0s); }
@keyframes gx-pl-pass { 0% { transform: none; opacity: 0; } 5% { opacity: 1; } 55%, 82% { transform: translateX(268px); opacity: 1; } 92%, 100% { transform: translateX(268px); opacity: 0; } }
@keyframes gx-pl-fail { 0% { transform: none; opacity: 0; } 5% { opacity: 1; } 28% { transform: translateX(132px); opacity: 1; } 34%, 100% { transform: translateX(132px); opacity: 0; } }
@keyframes gx-pl-x { 0%, 28% { opacity: 0; transform: scale(.4); } 34%, 80% { opacity: 1; transform: none; } 90%, 100% { opacity: 0; transform: none; } }

/* 11 inbound: the top of the funnel narrows */
.gx-ib-top { transform-origin: 0 50%; transform: scaleX(.5); animation: gx-ib-top 7s cubic-bezier(.65, 0, .35, 1) infinite both; }
@keyframes gx-ib-top { 0%, 40% { transform: none; } 70%, 88% { transform: scaleX(.5); } 100% { transform: none; } }

/* 12 explainer: six meanings light in turn */
.gx-wh-on { opacity: 0; animation: gx-wh-on 6s linear infinite; animation-delay: calc(var(--i) * 1s); }
@keyframes gx-wh-on { 0% { opacity: 0; } 2%, 15% { opacity: 1; } 17%, 100% { opacity: 0; } }

@media (max-width: 980px) { .gi-hero__grid { grid-template-columns: 1fr; gap: 40px; align-items: start; } }
@media (max-width: 560px) { .gi-hero { padding: 34px 0 54px; } .gi-sec { padding-bottom: 60px; } .gi-sec__head { flex-direction: column; align-items: flex-start; gap: 8px; } .gx-body { padding: 18px 18px 18px; } }
