/* ==========================================================================
   BotCheatSheet color + hero + referral refresh (2026-11-19)
   Loaded AFTER /styles.css on every page. Remove the <link> to roll back.
   Brand card colors only: Ink #0B1020 · Paper #F6F5F1 · Slate #3E4559 ·
   Violet #6D4AFF · Deep Violet #5232E0 · Lavender #A794FF · Lime #C6FF3D (sparingly)
   No frog mascot.
   ========================================================================== */
:root{--grad-v:linear-gradient(135deg,#5232E0 0%,#6D4AFF 55%,#A794FF 100%);--grad-line:linear-gradient(90deg,#5232E0,#6D4AFF 40%,#A794FF 75%,#C6FF3D)}

/* ---------- header ---------- */
header.hdr{border-bottom:0}
header.hdr::after{content:"";position:absolute;left:0;right:0;bottom:0;height:3px;background:var(--grad-line)}
.links .btn-ref,.btn.btn-ref{background:var(--lime);color:var(--ink);box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 8px 24px -10px rgba(198,255,61,.55)}
.btn.btn-ref:hover{background:#D4FF6B;color:var(--ink);box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 14px 30px -10px rgba(198,255,61,.7)}
.links a.btn-ref:hover{color:var(--ink)}
.btn-ref:focus-visible,.ref-band a:focus-visible,.ref-mini a:focus-visible{outline:3px solid var(--lav);outline-offset:3px}
@media(min-width:901px) and (max-width:1180px){.hdr .links{gap:18px}}

/* ---------- home hero banner ---------- */
.hero-banner{background:radial-gradient(120% 90% at 85% 10%,rgba(109,74,255,.45),transparent 55%),radial-gradient(80% 70% at 0% 100%,rgba(82,50,224,.35),transparent 60%),var(--ink)}
.hb-bg{position:absolute;inset:0;z-index:-1;pointer-events:none;overflow:hidden}
.hb-bg i{position:absolute;display:block}
.hb-slab{right:-6%;top:8%;width:46%;height:78%;border-radius:48px;background:var(--grad-v);transform:rotate(-8deg);opacity:.9;box-shadow:0 60px 120px -40px rgba(109,74,255,.8)}
.hb-ring{right:30%;top:-200px;width:340px;height:340px;border-radius:50%;box-shadow:inset 0 0 0 26px rgba(167,148,255,.18)}
.hb-dot{border-radius:50%;background:var(--lime)}
.hb-dot.d1{width:18px;height:18px;right:44%;bottom:18%}
.hb-dot.d2{width:10px;height:10px;right:6%;top:6%}
.hb-bar{left:0;bottom:0;height:6px;width:100%;background:var(--grad-line)}
.hero-banner .hero{padding:88px 0 80px}
@media(min-width:901px){.hero-banner .hero{grid-template-columns:1.2fr .8fr;gap:48px}}
.crew-home + .ref-section{background:#EFEBFD}
.everyday-home{padding-top:72px}
.hero-banner .hero h1 em{background:linear-gradient(100deg,#fff 0%,var(--lav) 55%,#C9BEFF 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.hb-tag{font:500 15px/1 'JetBrains Mono',monospace;letter-spacing:.06em;color:#C9CDDB;margin:22px 0 0}
.hb-tag b{color:var(--lime);font-weight:500}
.hero-banner .sub{margin:22px 0 30px}
.hero-banner .hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.hero-banner .hero-actions .btn{padding:15px 19px;font-size:15.5px}
.hb-fine{font-size:14px;color:#B4BACD;margin:14px 0 0;max-width:520px;line-height:1.5}
.hero-banner .yt-start{margin:22px 0 0}
.hero-banner .stage{z-index:1}
.hero-banner .sheet.front{background:linear-gradient(180deg,rgba(255,255,255,.08),rgba(255,255,255,.02)),#141A36;box-shadow:inset 0 0 0 1px rgba(255,255,255,.14),0 50px 90px -30px rgba(11,16,32,.9)}
.hb-mark{position:absolute;width:112px;height:112px;left:-34px;top:20px;transform:rotate(-10deg);filter:drop-shadow(0 18px 30px rgba(11,16,32,.55));z-index:3}
.hb-sticker{position:absolute;right:-8px;bottom:36px;z-index:3;font:600 14px/1 'JetBrains Mono',monospace;letter-spacing:.04em;color:var(--ink);background:var(--lime);padding:11px 14px;border-radius:12px;transform:rotate(5deg);box-shadow:0 14px 30px -10px rgba(11,16,32,.6)}
/* marquee becomes a color band */
.hero-banner .strip{background:var(--grad-v);border:0;mask-image:none;-webkit-mask-image:none}
.hero-banner .track{color:#fff;font-size:14px}
.hero-banner .track span::after{background:var(--lime)}

/* ---------- inner page heroes ---------- */
.page-hero{position:relative}
.dark .page-hero h1{background:linear-gradient(100deg,#fff 0%,#fff 55%,var(--lav) 100%);-webkit-background-clip:text;background-clip:text;color:transparent;padding-bottom:.06em}
.dark .page-hero h1::after{content:"";display:block;width:120px;height:6px;border-radius:6px;margin-top:22px;background:var(--grad-line)}
.dark .page-hero .sub a,.dark .page-hero p a:not(.btn){color:#fff;text-decoration:underline;text-underline-offset:3px}
.page-hero .hero-actions{display:flex;flex-wrap:wrap;gap:12px}
.page-hero .ref-hero{margin-top:20px}
main > .dark.grain:first-child .mesh .a{background:radial-gradient(closest-side,rgba(109,74,255,.7),transparent)}
main > .dark.grain:first-child .mesh .b{background:radial-gradient(closest-side,rgba(167,148,255,.35),transparent)}
main > .dark.grain:first-child{border-bottom:6px solid transparent;border-image:var(--grad-line) 1}

/* ---------- section color ---------- */
.kicker::before{width:26px;height:3px;border-radius:3px;background:var(--grad-line)}
.crew-home{background:linear-gradient(180deg,var(--paper) 0%,#EFEBFD 100%)}
.everyday-home{background:linear-gradient(180deg,#EFEBFD 0%,var(--paper) 60%)}
.crew-card,.everyday-card,.card:not(.feat),.sheet-card{position:relative;overflow:hidden}
.crew-card::before,.everyday-card::before,.sheet-card::before{content:"";position:absolute;left:0;top:0;right:0;height:5px;background:var(--grad-v)}
.everyday-card:nth-child(3n+2)::before{background:linear-gradient(90deg,#A794FF,#6D4AFF)}
.everyday-card:nth-child(3n)::before{background:linear-gradient(90deg,#6D4AFF,#C6FF3D)}
.crew-card .bot-label,.everyday-card .bot-label{display:inline-block;background:#EEEAFE;padding:6px 9px;border-radius:99px}
.picture-week{background:linear-gradient(180deg,#EEEAFE,#F7F5FF)}
#how .step{background:linear-gradient(160deg,rgba(109,74,255,.28),rgba(255,255,255,.02) 60%);box-shadow:inset 0 0 0 1px rgba(167,148,255,.25)}
#how .step .n{display:inline-block;background:var(--lime);color:var(--ink);padding:7px 10px;border-radius:99px}
.btn.copy{background:#EEEAFE}
section:not(.dark) .prose a,.note a{color:var(--violetD)}

/* readability fix: prompts on light cards were light-gray on light-gray */
pre[style*="#f4f5f8"],.crew-prompt pre{color:var(--ink)}

/* ---------- referral components ---------- */
.referral-soft,.ref-band{position:relative;overflow:hidden;display:flex;flex-wrap:wrap;align-items:center;gap:10px 16px;margin:32px 0 0!important;padding:22px 24px!important;border-radius:18px!important;background:var(--grad-v)!important;box-shadow:0 24px 48px -28px rgba(82,50,224,.9)!important;color:#fff!important;font-size:17px!important;font-weight:500;line-height:1.45}
.referral-soft::after{content:"";position:absolute;right:-30px;top:-40px;width:140px;height:140px;border-radius:50%;box-shadow:inset 0 0 0 18px rgba(255,255,255,.14);pointer-events:none}
.referral-soft a,.ref-band a{display:inline-flex;align-items:center;gap:6px;background:var(--lime)!important;color:var(--ink)!important;font-weight:700!important;text-decoration:none!important;padding:10px 16px;border-radius:11px;white-space:nowrap;box-shadow:0 8px 20px -8px rgba(11,16,32,.5)}
.referral-soft a:hover{background:#D4FF6B!important}
.ref-section{padding:8px 0 64px}
.ref-mini{margin:12px 0 0;font-size:15px;color:var(--slate)}
.ref-mini a{color:var(--violetD)!important;font-weight:700;text-decoration:underline;text-underline-offset:3px}
.dark .ref-mini{color:#C3C8D8}.dark .ref-mini a{color:var(--lime)!important}

/* footer referral row */
footer.dark{border-top:0;position:relative}
footer.dark::before{content:"";position:absolute;left:0;right:0;top:0;height:4px;background:var(--grad-line)}
.ref-foot{display:flex;flex-wrap:wrap;align-items:center;justify-content:space-between;gap:16px 24px;margin:0 0 36px;padding:24px 26px;border-radius:18px;background:linear-gradient(135deg,rgba(82,50,224,.55),rgba(109,74,255,.25));box-shadow:inset 0 0 0 1px rgba(167,148,255,.3)}
.ref-foot p{font:700 clamp(19px,2.2vw,24px)/1.25 'Bricolage Grotesque',sans-serif;color:#fff;letter-spacing:-.02em;margin:0}
.ref-foot .ref-foot-links{display:flex;flex-wrap:wrap;gap:10px}

/* ---------- mobile ---------- */
@media(max-width:900px){
  nav .links .btn.sm{align-self:stretch;justify-content:center;padding:13px 16px;font-size:15px;margin-top:10px}
  .hb-slab{right:-30%;top:auto;bottom:-6%;width:90%;height:38%;border-radius:36px}
  .hb-ring{right:-120px;top:-120px;width:260px;height:260px}
  .hero-banner .hero{padding:44px 0 48px;gap:28px}
  .hero-banner .hero-actions .btn{width:100%;justify-content:center}
  .hb-mark{width:76px;height:76px;left:-8px;top:-30px}
  .hb-sticker{right:6px;bottom:-14px;font-size:13px}
}
@media(max-width:600px){
  body{font-size:16.5px}
  .wrap{padding:0 18px}
  /* hero preview card: one card, no overlapping stack */
  .hero-banner .stage{height:auto;margin-top:8px;perspective:none}
  .hero-banner .sheet.back1,.hero-banner .sheet.back2{display:none}
  .hero-banner .sheet.front{position:relative;width:100%;top:0;left:0}
  .hero-banner .hero h1{font-size:clamp(40px,11.5vw,50px)}
  .hb-tag{font-size:14px}
  /* tiny labels -> readable */
  .pill,.kicker,.bot-label,.cat,.tag,.bar,.ok,.chip,.track,.step .n,.picture-week::before,.gb1-plan,.everyday-card .fill-in{font-size:13px!important}
  .meta,.note,.fine,.legal,.learn-row,.hb-fine{font-size:14px}
  pre{font-size:13.5px}
  .row{flex-wrap:wrap}
  /* section rhythm */
  section{padding:72px 0}
  .ref-section{padding:4px 0 48px}
  .head{margin-bottom:32px;gap:16px}
  .head h2{font-size:clamp(30px,8.6vw,40px)}
  .prose h2{font-size:26px;margin:36px 0 12px}
  .page-hero h1{font-size:clamp(36px,10.5vw,46px)}
  .dark .page-hero h1::after{width:88px;margin-top:16px}
  .page-hero .hero-actions .btn{width:100%;justify-content:center}
  /* everyday helpers: swipe row instead of a 15-card wall */
  .everyday-grid{display:flex;overflow-x:auto;scroll-snap-type:x mandatory;gap:14px;margin:0 -18px;padding:6px 18px 18px;-webkit-overflow-scrolling:touch;scrollbar-width:thin}
  .everyday-card{flex:0 0 84%;scroll-snap-align:start}
  /* referral boxes stack cleanly */
  .referral-soft,.ref-band{padding:20px!important;font-size:16px!important}
  .referral-soft a,.ref-band a{width:100%;justify-content:center;padding:13px 16px}
  .ref-foot{padding:20px}
  .ref-foot .ref-foot-links,.ref-foot .btn{width:100%;justify-content:center}
  /* footer tap targets */
  footer .links{gap:6px 18px}
  footer .links a,.learn-row a,.legal a{display:inline-block;padding:6px 0}
  footer img{height:34px}
  /* filter chips & tags wrap without crowding */
  .filter-bar{gap:8px}
  .filter-chip{padding:10px 14px;font-size:14px}
}
/* cheat sheet prompts: solid ink box so the light mono text reads clearly (was gray-on-gray) */
main section:not(.dark) .prose pre:not([style]){background:var(--ink2);color:#D9DCEA}
main section:not(.dark) .prose pre:not([style]) + p{margin-top:10px}

/* ---------- hero mascots (decorative inline SVG) ---------- */
.bcs-bots{position:absolute;pointer-events:none;z-index:4}
.bcs-bot{position:absolute;display:block;height:auto;overflow:visible;animation:bcs-bob 4.2s ease-in-out infinite}
.bcs-bot.bot-check{filter:drop-shadow(0 0 16px rgba(198,255,61,.55)) drop-shadow(0 12px 18px rgba(11,16,32,.55))}
.bcs-bot.bot-wave{animation-delay:-1.4s;filter:drop-shadow(0 0 16px rgba(255,107,87,.55)) drop-shadow(0 12px 18px rgba(11,16,32,.55))}
.bcs-bot.bot-spark{animation-delay:-2.8s;filter:drop-shadow(0 0 16px rgba(79,195,255,.55)) drop-shadow(0 12px 18px rgba(11,16,32,.55))}
.bcs-bot .bb-eyes{transform-box:fill-box;transform-origin:center;animation:bcs-blink 4.6s ease-in-out infinite}
.bcs-bot.bot-wave .bb-eyes{animation-delay:-1.7s}
.bcs-bot.bot-spark .bb-eyes{animation-delay:-3.1s}
.bcs-bot .bb-spark{transform-box:fill-box;transform-origin:center;animation:bcs-twinkle 2.6s ease-in-out infinite}
@keyframes bcs-bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-9px)}}
@keyframes bcs-twinkle{0%,100%{transform:scale(1) rotate(0)}50%{transform:scale(1.18) rotate(18deg)}}
@keyframes bcs-blink{0%,92%,100%{transform:scaleY(1)}96%{transform:scaleY(.15)}}
@media (prefers-reduced-motion:reduce){.bcs-bot,.bcs-bot *{animation:none!important}}

/* home hero: mascots around the preview card (desktop) */
.hero-banner .hero{position:relative}
.hb-bots{right:0;top:0;width:44%;height:100%}
.hb-bots .bot-wave{width:150px;right:-10px;top:30px}
.hb-bots .bot-check{width:150px;left:-56px;bottom:30px}
.hb-bots .bot-spark{width:132px;right:-74px;top:50%}
/* Grok Bot 1.0 hero: three mascots beside the headline (desktop) */
.gb1 .page-hero{position:relative}
.gb1-bots{right:0;top:70px;width:430px;height:260px}
.gb1-bots .bot-check{width:150px;left:0;top:90px}
.gb1-bots .bot-wave{width:160px;left:140px;top:0}
.gb1-bots .bot-spark{width:140px;right:0;top:100px}
@media(max-width:1100px){.gb1-bots{position:static;display:flex;justify-content:flex-end;gap:10px;width:auto;height:auto;margin:0 0 4px}.gb1-bots .bcs-bot{position:relative;left:auto;right:auto;top:auto;width:84px}}
@media(max-width:900px){
  .hb-bots{width:auto;height:auto;right:0;top:10px;display:flex;gap:8px}
  .hb-bots .bcs-bot{position:relative;display:block;right:auto;left:auto;top:auto;bottom:auto;width:80px}
  .hero-banner .hero{padding-top:112px}
  .gb1-bots{margin-top:10px}
  .gb1-bots .bcs-bot{width:80px}
}
@media(min-width:1101px){.gb1 .page-hero h1{max-width:640px}}

/* trial CTA already in live styles.css — sit cleanly in the new hero */
.hero-banner .trial-cta{margin:8px 0 20px}
.hero-banner .trial-cta .btn-trial{box-shadow:inset 0 1px 0 rgba(255,255,255,.5),0 10px 24px -10px rgba(198,255,61,.7)}

/* section-end + compact card CTAs */
.ref-section-end{margin:28px 0 0}
.ref-section-end .btn.btn-ref{background:var(--lime);color:var(--ink)}
.ref-card{margin:14px 0 0}
a.btn-ref-mini{display:inline-flex;align-items:center;gap:4px;background:var(--lime);color:var(--ink);font:700 14px/1.2 'Bricolage Grotesque',sans-serif;padding:8px 12px;border-radius:10px;text-decoration:none;box-shadow:0 6px 16px -8px rgba(11,16,32,.45)}
a.btn-ref-mini:hover{background:#D4FF6B;color:var(--ink)}
.grab-actions .btn-ref{margin-left:6px}
a.bcs-bots-hit{pointer-events:auto;cursor:pointer}
a.bcs-bots-hit:focus-visible{outline:3px solid var(--lav);outline-offset:6px;border-radius:24px}

/* sticky bar: phones only. Wording matches the live footer learn-row. */
.ref-sticky{display:none}
@media(max-width:700px){
  .ref-sticky{display:block;position:fixed;left:0;right:0;bottom:0;z-index:80;box-sizing:border-box;width:100%;padding:10px 12px calc(10px + env(safe-area-inset-bottom,0px));background:linear-gradient(180deg,rgba(11,16,32,0),rgba(11,16,32,.94) 28%,#0B1020)}
  .ref-sticky .btn{display:flex;width:100%;max-width:100%;justify-content:center;box-sizing:border-box;padding:14px 16px;white-space:nowrap}
  body{padding-bottom:88px}
}
@media(max-width:390px){
  .ref-sticky .btn{font-size:15px;padding:13px 12px;white-space:normal;text-align:center}
}
