/* fck-grokbot-usage: one white page, black ink, one font (Host Grotesk, the free twin of the X VF face). The only colour: the app's real bot avatars and its own screenshots. */
@font-face { font-family: 'Host Grotesk'; src: url('fonts/host-grotesk-400.woff2') format('woff2'); font-weight: 300 449; font-display: swap; }
@font-face { font-family: 'Host Grotesk'; src: url('fonts/host-grotesk-500.woff2') format('woff2'); font-weight: 450 529; font-display: swap; }
@font-face { font-family: 'Host Grotesk'; src: url('fonts/host-grotesk-560.woff2') format('woff2'); font-weight: 530 579; font-display: swap; }
@font-face { font-family: 'Host Grotesk'; src: url('fonts/host-grotesk-600.woff2') format('woff2'); font-weight: 580 800; font-display: swap; }
:root { --f: 'Host Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif; --paper: #fff; --ink: #000; --body: #2b2b2b; --mut: #555; --edge: #8c8c8c; --soft: #f3f3f1; --dim: #d9d9d6; --out: cubic-bezier(.23, 1, .32, 1); --drawer: cubic-bezier(.32, .72, 0, 1); --r: 13px; --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace; }
.tray, .toast { --paper: #000; --ink: #fff; --body: #e6e6e6; --mut: #ababab; --edge: #6e6e6e; --soft: #141414; --dim: #333; }
* { box-sizing: border-box; margin: 0; -webkit-tap-highlight-color: transparent; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body { font: 400 17px/1.5 var(--f); font-variant-numeric: lining-nums; color: var(--ink); background: var(--paper); -webkit-font-smoothing: antialiased; overflow-x: clip; }
h1, h2, h3, h4 { font-family: var(--f); font-weight: 560; letter-spacing: -.035em; text-wrap: balance; }
ul, ol { list-style: none; padding: 0; } a { color: inherit; text-underline-offset: 4px; text-decoration-thickness: 1px; }
button, input { font: inherit; color: inherit; } button { background: none; border: 0; cursor: pointer; touch-action: manipulation; -webkit-user-select: none; user-select: none; padding: 0; }
:focus-visible { outline: 2px solid currentColor; outline-offset: 3px; }
q { quotes: '“' '”' '‘' '’'; }
img { max-width: 100%; height: auto; display: block; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; z-index: 60; background: #fff; padding: 12px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.in { width: min(1120px, 100% - 40px); margin: 0 auto; }
.mut { color: var(--mut); } .small { font-size: 15px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 18px; border-radius: var(--r); font-weight: 500; text-decoration: none; white-space: nowrap; transition: transform .14s var(--out), background-color .15s, color .15s, box-shadow .15s; }
.btn:active { transform: scale(.97); } .btn.sm { min-height: 44px; padding: 0 14px; font-size: 15.5px; }
.btn.solid { background: var(--ink); color: var(--paper); } .btn.white { background: #fff; color: #000; } .btn.line { background: var(--soft); } .btn.dline { background: #232323; color: #fff; } .btn.ghost { color: var(--mut); }
.btn[data-done] { background: var(--ink); color: var(--paper); box-shadow: none; } .btn.white[data-done] { background: #fff; color: #000; }
@media (hover: hover) and (pointer: fine) { .btn.line:hover, .btn.dline:hover { background: var(--ink); color: var(--paper); box-shadow: none; } .btn.solid:hover, .btn.white:hover { opacity: .86; } .btn.ghost:hover { color: var(--ink); } }
.lnk { min-height: 44px; text-decoration: underline; text-underline-offset: 4px; }

/* the 12 original GrokBot avatars from SpaceXSI's artwork, unchanged: one sprite, picked by --a */
.bot { --z: 28px; --a: 0; display: inline-block; flex: none; width: var(--z); height: var(--z); background-image: url('img/avatars.webp'); background-repeat: no-repeat; background-size: calc(var(--z) * 12) var(--z); background-position: calc(var(--a) * var(--z) * -1) 0; }
.bot.blink { animation: bop .5s var(--out) 1; }
@keyframes bop { 40% { transform: translateY(-3px) scale(1.08); } }
.bot.big { --z: 40px; }

/* ---------- hero ---------- */
.hero { padding-bottom: 56px; }
.hgrid { display: flex; flex-direction: column; }
.top { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 6px 0; }
.brand { min-height: 44px; display: flex; align-items: center; font-weight: 560; text-decoration: none; }
.nav { display: flex; gap: 4px; margin-right: -8px; } .quiet { color: var(--mut); text-decoration: none; min-height: 44px; display: flex; align-items: center; padding: 0 8px; }
@media (hover: hover) and (pointer: fine) { .quiet:hover { color: var(--ink); } }
@media (max-width: 480px) { .hide-s { display: none; } }
.copy { display: contents; }
.hook { order: 1; margin-top: 18px; font-size: 17px; color: var(--mut); max-width: 34ch; }
h1 { order: 2; font-size: clamp(32px, 8.6vw, 56px); line-height: 1.04; margin-top: 10px; max-width: 18ch; }
.sub { order: 3; margin-top: 14px; font-size: 19px; color: var(--body); max-width: 30ch; }
.cta { order: 4; display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.stage { order: 3; margin: 26px 0 0; }
.author { order: 7; margin-top: 18px; color: var(--mut); font-size: 15.5px; max-width: 46ch; }
/* on a phone the ring sits right under the headline; the sentence, the buttons and the docs line follow it */
@media (max-width: 899px) {
  .stage[data-variant='meter'] { order: 5; margin-top: 28px; }
  .hgrid:has(.stage[data-variant='ring']) .sub { order: 4; margin-top: 22px; } .hgrid:has(.stage[data-variant='ring']) .cta { order: 5; }
  .stage[data-variant='ring'], .stage[data-variant='ring'] .ringw { display: contents; } .stage .ringbox { order: 3; margin-top: 22px; } .stage .seg { order: 3; } .stage .rq { order: 6; text-align: left; margin: 26px 0 0; }
}
@media (min-width: 900px) {
  .hgrid { display: grid; grid-template-columns: 1.2fr 1fr; column-gap: 56px; align-items: center; min-height: min(92svh, 860px); grid-template-rows: auto 1fr; }
  .top { grid-column: 1 / -1; padding: 14px 0; align-self: start; }
  .copy { display: block; grid-column: 1; padding-bottom: 32px; }
  .hook { font-size: 18px; } h1 { font-size: clamp(46px, 4.6vw, 66px); } .sub { font-size: 21px; } .author { margin-top: 40px; }
  .stage { grid-column: 2; margin: 0; padding-bottom: 24px; }
}

/* the day ring: one dot per run, a marker walks round the clock */
.ringw { max-width: 460px; margin: 0 auto; }
.ringbox { position: relative; width: min(100%, 268px); margin: 0 auto; aspect-ratio: 1; }
@media (min-width: 900px) { .ringbox { width: min(100%, 400px); } }
.ring { display: block; width: 100%; height: 100%; overflow: visible; }
.ring .tk { fill: var(--dim); transition: fill .2s; } .ring .tk.on { fill: var(--ink); }
.ring .face { fill: none; stroke: var(--soft); stroke-width: 1; }
.ring .hr { font: 400 12.5px var(--f); fill: var(--mut); text-anchor: middle; dominant-baseline: middle; }
.ring .sun { fill: var(--paper); stroke: var(--ink); stroke-width: 2; }
.rc { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; text-align: center; pointer-events: none; }
.rc .bot { margin-bottom: 6px; }
.rn { font: 560 clamp(54px, 16vw, 88px)/0.9 var(--f); letter-spacing: -.04em; font-variant-numeric: tabular-nums lining-nums; }
.rp { font-size: 16px; } .rw { font-size: 14.5px; color: var(--mut); }
.seg { display: flex; gap: 2px; padding: 3px; border-radius: 14px; background: var(--soft); margin: 18px auto 0; max-width: 440px; width: 100%; }
.sg { flex: 1 1 0; min-width: 0; min-height: 40px; border-radius: 11px; font-size: 14.5px; white-space: nowrap; color: var(--body); transition: background-color .15s, color .15s; }
.sg[aria-pressed='true'] { background: var(--ink); color: var(--paper); }
@media (hover: hover) and (pointer: fine) { .sg[aria-pressed='false']:hover { background: var(--dim); } }
@media (max-width: 370px) { .sg { font-size: 13px; } }
.rq { text-align: center; color: var(--mut); font-size: 15px; margin: 14px auto 0; max-width: 42ch; } .rq q { color: var(--ink); }
.who { color: var(--mut); }

/* the alternative hero: the app's own usage screen, drawn in the page's type */
.meterw { max-width: 460px; margin: 0 auto; }
.app { background: var(--soft); border-radius: 22px; padding: 20px; }
.app-t { font-weight: 560; } .app-h { font: 560 clamp(24px, 6.4vw, 32px)/1.1 var(--f); letter-spacing: -.03em; margin-top: 10px; min-height: 2.2em; }
.app-p { font-weight: 430; font-variant-numeric: tabular-nums lining-nums; }
.app-bar { height: 10px; border-radius: 6px; background: var(--dim); margin-top: 14px; overflow: hidden; } .app-bar i { display: block; height: 100%; width: 100%; background: var(--ink); border-radius: 6px; transform-origin: left; transform: scaleX(0); }
.app.full .app-bar i { background: #E72E3B; }
.app-s { color: var(--mut); font-size: 14.5px; margin-top: 8px; font-variant-numeric: tabular-nums lining-nums; }
.app-by { margin-top: 18px; display: grid; gap: 12px; }
.app-by li { display: grid; grid-template-columns: auto 8.5em 1fr; gap: 10px; align-items: center; } .app-by .bot { --z: 24px; }
.bn { font-size: 15px; line-height: 1.15; } .bn small { display: block; color: var(--mut); font-size: 13px; }
.bb { height: 8px; border-radius: 5px; background: var(--dim); overflow: hidden; } .bb i { display: block; height: 100%; width: 100%; background: var(--ink); transform-origin: left; transform: scaleX(0); }
.cap { color: var(--mut); font-size: 14px; text-align: center; margin-top: 10px; }

/* ---------- bands and sections ---------- */
.band { padding: 88px 0; }
.sec { padding: 88px 0; }
h2 { font-size: clamp(32px, 4.6vw, 54px); line-height: 1.02; }
.lede { color: var(--body); font-size: 18px; margin-top: 12px; max-width: 60ch; }
.h3 { font-size: clamp(23px, 2.6vw, 30px); margin-top: 88px; }
.three { display: grid; gap: 14px; margin-top: 30px; } .three li { display: flex; gap: 14px; align-items: baseline; font-size: 19px; }
.n3 { font: 560 30px/1 var(--f); min-width: 24px; }
.jump { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.ask { margin-top: 44px; background: var(--soft); border-radius: 22px; padding: 22px; } .ask > p { color: var(--body); }
.pr { font: 16px/1.5 var(--f); white-space: pre-wrap; overflow-wrap: anywhere; background: var(--soft); border-radius: 12px; padding: 12px 14px; margin-top: 10px; }
.ask .pr { background: #fff; }
.dacts { display: flex; flex-wrap: wrap; gap: 8px 12px; align-items: center; margin-top: 12px; } .dacts .mut { font-size: 15px; }
@media (min-width: 760px) { .three { grid-template-columns: repeat(3, 1fr); gap: 28px; } }

.eat { margin-top: 32px; display: grid; gap: 34px; }
.eat li { display: grid; grid-template-columns: 40px 1fr; gap: 10px; }
.rk { font: 560 32px/1 var(--f); }
.eat h3 { font-size: 23px; line-height: 1.15; } .eq { margin-top: 6px; color: var(--body); } .eq .who { font-size: 15px; }
.fix { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; font-size: 15px; color: var(--mut); align-items: center; }
.fix a { display: inline-flex; align-items: center; min-height: 40px; padding: 0 12px; border-radius: 10px; background: var(--soft); color: var(--ink); text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .fix a:hover { background: var(--ink); color: var(--paper); } }
@media (min-width: 900px) { .eat { grid-template-columns: 1fr 1fr; gap: 40px 56px; } .eat li { grid-template-columns: 52px 1fr; } }

/* ---------- the 40 ways ---------- */
#ways { padding: 88px 0 24px; }
.ask-q { font: 560 23px/1.2 var(--f); margin-top: 36px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 12px; }
.chip { flex: none; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r); background: var(--soft); white-space: nowrap; transition: background-color .12s, color .12s; }
.chip i { font-style: normal; opacity: .6; margin-left: 6px; font-size: 14.5px; font-variant-numeric: tabular-nums; }
.chip[aria-pressed='true'] { background: var(--ink); color: var(--paper); box-shadow: none; }
@media (hover: hover) and (pointer: fine) { .chip[aria-pressed='false']:hover { background: var(--dim); } }
.moref { margin-top: 14px; } .moref summary { cursor: pointer; min-height: 44px; display: inline-flex; align-items: center; color: var(--mut); font-size: 16px; list-style: none; text-decoration: underline; text-underline-offset: 4px; } .moref summary::-webkit-details-marker { display: none; }
.srcs .chip { min-height: 42px; font-size: 15px; }
.bar { display: grid; grid-template-columns: 1fr auto; gap: 14px; align-items: center; padding: 12px 0; }
.search { position: relative; display: block; } .search svg { position: absolute; left: 13px; top: 15px; width: 18px; color: var(--mut); pointer-events: none; }
.search input { width: 100%; height: 48px; border: 0; border-radius: var(--r); padding: 0 12px 0 40px; font-size: 16px; background: var(--soft); -webkit-appearance: none; appearance: none; }
.search input:focus { outline: none; box-shadow: inset 0 0 0 2px var(--ink); }
.progress { font-size: 15px; color: var(--mut); white-space: nowrap; font-variant-numeric: tabular-nums; } .progress b { color: var(--ink); font-weight: 560; }
.empty { padding: 40px 0; font-size: 18px; }

.chap { margin-top: 40px; } .chap[hidden] { display: none; }
.cband { padding: 56px 0 6px; }
.cb { display: grid; gap: 22px; align-items: center; }
.ct h3 { font-size: clamp(30px, 4.2vw, 48px); line-height: 1.02; } .ct p { color: var(--body); font-size: 17px; margin-top: 10px; max-width: 34ch; }
.cf img { border-radius: 14px; width: 100%; } .cf figcaption { color: var(--mut); font-size: 13.5px; margin-top: 8px; }
@media (min-width: 900px) { .cband { padding: 88px 0 10px; } .cband.has-fig .cb { grid-template-columns: 1fr 1.35fr; gap: 48px; } }

.ms { display: grid; gap: 6px; padding: 22px 0 8px; }
.m { position: relative; isolation: isolate; overflow: hidden; border-radius: 18px; scroll-margin-top: 84px; transition: color .25s; }
.m[hidden] { display: none; }
.mrow { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; padding: 16px 0 14px; align-items: start; }
.mrow > .bot { margin-top: 2px; }
.mt { min-width: 0; }
.mt h4 { font-size: 23px; line-height: 1.16; letter-spacing: -.02em; }
.open { text-align: left; display: block; width: 100%; padding: 0; min-height: 28px; }
.open::after { content: ''; display: inline-block; width: 8px; height: 8px; margin-left: 9px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-4px) rotate(45deg); transition: transform .25s var(--out); opacity: .5; }
.m.open-d .open::after { transform: translateY(0) rotate(-135deg); }
.what { color: var(--body); margin-top: 6px; font-size: 17px; max-width: 62ch; }
.tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.tag, .dn { font-size: 13px; line-height: 1; padding: 6px 8px; border-radius: 7px; background: var(--soft); color: #222; }
.tag.t-mine { background: #000; color: #fff; }
.dn { display: none; background: #000; color: #fff; } .m.done .dn { display: inline-block; }
.m.done .mt h4 { text-decoration: line-through; text-decoration-thickness: 1px; }
.acts { grid-column: 1 / -1; display: flex; gap: 8px; margin-top: 10px; align-items: center; }
.acts .btn { flex: 1; }
.noprompt { color: var(--mut); font-size: 15px; padding: 4px 0; }
.pick { flex: none; width: 50px; height: 44px; display: grid; place-items: center; border-radius: 12px; background: var(--soft); color: var(--ink); transition: transform .14s var(--out), background-color .2s, color .2s; }
.pick:active { transform: scale(.92); }
.pick svg { width: 20px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.pick path { transition: opacity .12s, stroke-dashoffset .26s var(--out); stroke-dasharray: 32; } .p2 { stroke-dashoffset: 32; }
@media (hover: hover) and (pointer: fine) { .pick:hover { background: var(--ink); color: var(--paper); box-shadow: none; } }
/* opened: the way sits on a tone; picked: it fills with ink from the + */
.m.open-d { background: var(--soft); } .m.open-d .mrow, .m.on .mrow { padding-left: 16px; padding-right: 16px; }
.m.open-d .tag, .m.open-d .btn.line, .m.open-d .pick { background: #fff; }
.mw { padding: 2px 0 12px; } #ways:not(.filtering) .chap:not(.all) .m.later { display: none; } #ways.filtering .mw { display: none; }
.m::before { content: ''; position: absolute; z-index: -1; left: var(--px, 100%); top: var(--py, 0); width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; background: #000; transform: scale(0); transition: transform .5s var(--out); }
.m.on::before { transform: scale(var(--k, 260)); }
.m.on { color: #fff; } .m.on .what, .m.on .who, .m.on .c1 > p { color: #d6d6d6; } .m.on .tag { background: #1d1d1d; color: #d6d6d6; } .m.on .tag.t-mine { background: #fff; color: #000; }
.m.on .btn.line { background: #1f1f1f; color: #fff; } .m.on .pick { background: #fff; color: #000; } .m.on .p1 { opacity: 0; } .m.on .p2 { stroke-dashoffset: 0; }
.m.on .pr { background: #1a1a1a; } .m.on .btn.solid { background: #fff; color: #000; } .m.on .cav, .m.on .test { background: #1a1a1a; } .m.on .mut, .m.on .pn, .m.on .pnote, .m.on .det h5, .m.on .snote, .m.on .sc-h .say { color: #bdbdbd; }
.m.cur { box-shadow: 0 0 0 2px var(--ink); }
@media (min-width: 760px) {
  .mrow { grid-template-columns: auto 1fr auto; gap: 0 18px; padding: 20px 0; align-items: center; }
  .acts { grid-column: auto; margin-top: 0; } .acts .btn { flex: none; }
  .mt h4 { font-size: 24px; }
}

/* the open part */
.det { padding: 0 16px 22px; }
.det[hidden] { display: none; }
.det h5 { font: 600 14px/1.2 var(--f); letter-spacing: .01em; color: #111; margin-top: 20px; }
.cols { display: grid; gap: 4px 36px; }
.steps { counter-reset: s; display: grid; gap: 6px; margin-top: 8px; } .steps li { counter-increment: s; display: grid; grid-template-columns: 22px 1fr; } .steps li::before { content: counter(s); font-family: var(--f); color: var(--mut); }
.c1 > p { margin-top: 6px; color: var(--body); }
.cav, .test { margin-top: 14px; font-size: 16px; padding: 12px 14px; border-radius: 12px; background: #fff; }
.test b { font-weight: 560; }
.proof { display: grid; gap: 14px; margin-top: 8px; } .proof li { display: grid; gap: 2px; } .proof .who { font-size: 15px; } .proof a { color: inherit; }
.pn, .pnote { font-size: 15px; color: var(--mut); } .pnote { margin-top: 8px; }
.more { margin-top: 12px; } .more a { display: inline-flex; min-height: 44px; align-items: center; }
.m .pr { background: #fff; }
.m.on .det h5 { color: #bdbdbd; }
@media (min-width: 900px) { .det { padding: 0 24px 26px 62px; } .cols { grid-template-columns: 1fr 1.15fr; } }

/* scenes: the costly way against the fixed way, one mark per paid step */
.demo { margin-top: 4px; padding: 6px 0 4px; }
.sc-row + .sc-row { margin-top: 16px; }
.sc-h { display: flex; align-items: center; gap: 8px; font-size: 16px; line-height: 1.2; } .sc-h .bot { --z: 22px; } .sc-h .say { margin-left: auto; font-size: 15px; color: var(--mut); white-space: nowrap; font-variant-numeric: tabular-nums; }
.sc-u { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 8px; min-height: 12px; align-items: center; }
.u { flex: none; background-color: var(--dim); transition: background-color .18s, opacity .3s; }
.u.on { background-color: var(--ink); }
.u-dot { width: 8px; height: 8px; border-radius: 50%; }
.u-msg { width: 18px; height: 12px; border-radius: 6px 6px 6px 2px; }
.u-page { width: 14px; height: 18px; border-radius: 3px; }
.u-img { width: 20px; height: 20px; border-radius: 5px; } .u-img.gone { opacity: .25; }
.u-x { width: 12px; height: 12px; background: none; position: relative; } .u-x::before, .u-x::after { content: ''; position: absolute; left: 5px; top: -1px; width: 2px; height: 14px; background: var(--dim); transform: rotate(45deg); border-radius: 1px; } .u-x::after { transform: rotate(-45deg); } .u-x.on::before, .u-x.on::after { background: var(--ink); }
.u-ctx { height: 8px; border-radius: 4px; flex-basis: 100%; background: var(--dim); position: relative; overflow: hidden; }
.u-ctx > i { position: absolute; inset: 0; background: var(--ink); transform: scaleX(0); transform-origin: left; transition: transform .35s var(--out); } .u-ctx.on > i { transform: scaleX(1); }
.u-ctx > b { position: absolute; inset: 0; right: auto; background: repeating-linear-gradient(135deg, var(--dim) 0 3px, #fff 3px 6px); z-index: 1; }
.sc-u.ctx { flex-direction: column; align-items: stretch; gap: 5px; }
.u.u-bot { --z: 22px; background-color: transparent !important; filter: grayscale(1); opacity: .3; transition: filter .2s, opacity .2s; } .u.u-bot.on { filter: none; opacity: 1; }
.snote { color: var(--mut); font-size: 14px; margin-top: 12px; }
.sc-bars { display: grid; gap: 10px; } .sc-bars li { display: grid; grid-template-columns: auto 7.5em 1fr; gap: 10px; align-items: center; font-size: 15px; } .sc-bars .bot { --z: 22px; }
.sc-bars .bb i { transition: transform .9s var(--out); } .sc-bars li:first-child .bb i { animation: hot 1.6s ease-in-out infinite; }
@keyframes hot { 50% { opacity: .55; } }
.gauge { height: 12px; border-radius: 6px; background: var(--dim); position: relative; margin-top: 34px; }
.gauge > i { position: absolute; inset: 0; background: var(--ink); border-radius: 6px; transform-origin: left; transform: scaleX(0); }
.gauge .flag { position: absolute; left: 75%; bottom: 18px; transform: translateX(-50%); display: flex; align-items: center; gap: 6px; font-size: 14px; white-space: nowrap; opacity: 0; transition: opacity .3s; } .gauge .flag.on { opacity: 1; }
@media (max-width: 480px) { .gauge .flag { transform: translateX(-70%); } }
.gauge .mk { position: absolute; left: 75%; top: -4px; bottom: -4px; width: 2px; background: var(--mut); }
.gdays { display: flex; justify-content: space-between; color: var(--mut); font-size: 13px; margin-top: 6px; }
.m.on .u { background-color: #333; } .m.on .u.on, .m.on .u-ctx > i { background-color: #fff; } .m.on .u-x::before, .m.on .u-x::after { background: #444; } .m.on .u-x.on::before, .m.on .u-x.on::after { background: #fff; }
.demo .ringw { max-width: 400px; } .demo .ringbox { width: min(100%, 280px); } .demo .rn { font-size: 60px; }

/* ---------- bots, myths, numbers, posts ---------- */
.bhead { display: grid; gap: 28px; align-items: end; }
.tf { max-width: 300px; } .tf img { border-radius: 16px; } .tf figcaption { color: var(--mut); font-size: 13.5px; margin-top: 8px; }
@media (min-width: 900px) { .bhead { grid-template-columns: 1fr 300px; gap: 56px; } }
.tps { display: grid; gap: 10px; margin-top: 36px; }
.tp { background: var(--soft); border-radius: 18px; padding: 18px; display: flex; flex-direction: column; } .tp.later { display: none; } .tps.all .tp.later { display: flex; }
.tb { font-size: 14px; color: var(--mut); } .tp h3 { font-size: 22px; margin-top: 4px; } .by { color: var(--mut); font-size: 15px; } .tl { margin-top: 8px; color: var(--body); flex: 1; }
.tp .btn { margin-top: 14px; align-self: flex-start; background: #fff; }
.tp:first-child .tb, .tp:nth-child(2) .tb { display: inline-block; align-self: flex-start; background: var(--ink); color: var(--paper); padding: 5px 8px; border-radius: 7px; font-size: 13px; }
.tmore { margin-top: 18px; } .band .small { margin-top: 18px; }
@media (min-width: 700px) { .tps { grid-template-columns: 1fr 1fr; } } @media (min-width: 1040px) { .tps { grid-template-columns: repeat(3, 1fr); } }
@media (hover: hover) and (pointer: fine) { .tp .btn:hover { background: var(--ink); color: var(--paper); } }

.myths { display: grid; gap: 30px; margin-top: 32px; }
.myths li { display: grid; gap: 6px; }
.my { font: 560 22px/1.2 var(--f); letter-spacing: -.02em; text-decoration: line-through; text-decoration-thickness: 1.5px; } .tr { color: var(--body); }
@media (min-width: 900px) { .myths { grid-template-columns: 1fr 1fr; gap: 36px 56px; } }

.facts { margin-top: 32px; display: grid; gap: 10px; }
.fr dd, .tr, .eq, .disc, .c1 > p, .lede { max-width: 68ch; }
.fr { display: grid; gap: 4px; padding: 18px 20px; border-radius: 16px; background: var(--soft); } .fr dt { font-weight: 560; } .fr dd { margin: 0; color: var(--body); }
.src { color: var(--mut); font-size: 15px; }
@media (min-width: 900px) { .fr { grid-template-columns: 220px 1fr; gap: 24px; } }
.boosts { display: grid; gap: 10px; margin-top: 18px; } .boosts li { display: grid; grid-template-columns: 72px 1fr; gap: 12px; color: var(--body); } .bd { font-family: var(--f); color: var(--ink); }

.posts { display: grid; gap: 8px; margin-top: 28px; }
.posts a { display: block; padding: 16px 18px; border-radius: 16px; background: var(--soft); text-decoration: none; }
.pt { display: block; font-size: 18px; line-height: 1.3; } .pm { display: block; color: var(--mut); font-size: 15px; margin-top: 4px; }
@media (hover: hover) and (pointer: fine) { .posts a:hover { background: var(--dim); } }
@media (min-width: 900px) { .posts { grid-template-columns: 1fr 1fr; } }
.follow { margin-top: 32px; }

.foot { padding-bottom: 120px; } .srclist { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; margin-top: 14px; font-size: 16px; } .srclist a { display: flex; min-height: 44px; align-items: center; }
@media (min-width: 900px) { .srclist { grid-template-columns: repeat(4, 1fr); } }
.foot .mut { margin-top: 12px; font-size: 16px; } .disc { margin-top: 40px; color: var(--mut); font-size: 15px; max-width: 70ch; }

/* ---------- tray and toast ---------- */
.tray { position: fixed; z-index: 20; left: 50%; bottom: calc(12px + env(safe-area-inset-bottom)); width: min(560px, 100vw - 20px); transform: translate(-50%, 160%); display: flex; align-items: center; gap: 4px; padding: 8px 8px 8px 16px; border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 14px 44px rgba(0, 0, 0, .35); transition: transform .32s var(--drawer); }
.picks .tray { transform: translate(-50%, 0); } .tray p { flex: 1; white-space: nowrap; min-width: 0; } .tray .n { font: 560 22px var(--f); margin-right: 4px; font-variant-numeric: tabular-nums; } .tin { color: var(--mut); }
@media (max-width: 400px) { .tin { display: none; } .tray { padding-left: 12px; } }
.toast { position: fixed; z-index: 40; left: 50%; top: 14px; transform: translate(-50%, -90px); background: var(--paper); color: var(--ink); padding: 12px 16px; border-radius: var(--r); font-weight: 500; box-shadow: 0 10px 30px rgba(0, 0, 0, .3); transition: transform .25s var(--drawer); max-width: calc(100vw - 24px); } .toast.on { transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .m::before, .tray, .toast, .u-ctx > i { transition: none; } .bot.blink { animation: none; } .sc-bars li:first-child .bb i { animation: none; } }

/* round 2 of the jury: source tags only on an opened way; a big count fills chapter bands that have no picture */
.m:not(.open-d) .tags .tag { display: none; } .m:not(.open-d) .tags:not(:has(.dn)) { margin: 0; }
.m:not(.open-d):not(.done) .tags { display: none; }
.cbig { display: none; }
@media (min-width: 900px) { .cband:not(.has-fig) .cb { grid-template-columns: 1fr auto; } .cbig { display: flex; align-items: baseline; gap: 12px; font: 560 clamp(96px, 11vw, 150px)/.85 var(--f); letter-spacing: -.05em; } .cbig span { font: 400 20px var(--f); letter-spacing: 0; color: var(--mut); } }

/* entrances: the parts of each section rise in once as they reach the screen (headings stay put) */
.rv { opacity: .2; transform: translateY(18px); } .rv.seen { opacity: 1; transform: none; transition: opacity .55s var(--out) var(--d, 0ms), transform .65s var(--out) var(--d, 0ms); }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; } }

/* ---------- GrokBot colour: flat vector bots (the app's own look), section colours, three looks to choose from ---------- */
.barw { position: sticky; top: 0; z-index: 10; background: var(--paper); margin-top: 6px; }
.fb { --bz: 40px; display: inline-block; width: var(--bz); height: var(--bz); flex: none; }
.fb svg { display: block; width: 100%; height: 100%; overflow: visible; }
.fb .ey { transform-box: fill-box; transform-origin: center; animation: eyes 6s infinite; }
@keyframes eyes { 0%, 93%, 100% { transform: scaleY(1); } 96.5% { transform: scaleY(.12); } }
.fb.big { --bz: 52px; }
.sh { display: flex; align-items: center; gap: 16px; }
.ct .bot { display: block; margin-bottom: 16px; } .sh .bot, .ct .bot { --z: 52px; }
.parade { display: none; }
.chip[aria-pressed='true'][style] { background: var(--cc); color: #000; }
.app-by .bb i { background: var(--c); }
@media (prefers-reduced-motion: reduce) { .fb .ey { animation: none; } }

/* look 1, Coats: every section opens on a plate in its own GrokBot colour, with a white bot on it */
[data-look='coats'] .sh, [data-look='coats'] .cband .cb { background: var(--cc); color: #000; border-radius: 32px; padding: 26px 28px; }
[data-look='coats'] .sh { gap: 20px; } [data-look='coats'] .sh .bot { --z: 64px; }
[data-look='coats'] .cband .cb { padding: 32px 28px; } [data-look='coats'] .ct p, [data-look='coats'] .cf figcaption, [data-look='coats'] .cbig span { color: #111; }
[data-look='coats'] .cf img { border-radius: 18px; }
[data-look='coats'] .hl { background: #FFD400; border-radius: .18em; padding: 0 .12em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
[data-look='coats'] .bhead { align-items: start; }
@media (min-width: 900px) { [data-look='coats'] .sh { padding: 34px 40px; } [data-look='coats'] .cband .cb { padding: 40px; } [data-look='coats'] .sh .bot { --z: 84px; } }

/* look 2, Canvas: the app's own warm canvas, every section a white pane on it */
[data-look='canvas'] body, [data-look='canvas'] .barw { background: #F2F0EE; }
[data-look='canvas'] .band, [data-look='canvas'] .sec:not(.foot) { padding: 10px 0; }
[data-look='canvas'] .band > .in, [data-look='canvas'] .sec:not(.foot) > .in, [data-look='canvas'] #ways > .wtop, [data-look='canvas'] .chap { background: #fff; border-radius: 32px; padding: 44px 22px; }
[data-look='canvas'] #ways { padding: 10px 0 24px; } [data-look='canvas'] .chap { width: min(1120px, 100% - 40px); margin: 10px auto 0; padding: 0 0 18px; }
[data-look='canvas'] .chap .in { width: auto; margin: 0 22px; } [data-look='canvas'] .cband { padding-top: 40px; }
[data-look='canvas'] .barw .in { background: #F2F0EE; }
[data-look='canvas'] .app { background: #fff; } [data-look='canvas'] .hl { color: #2A92FE; }
[data-look='canvas'] .foot { padding-top: 48px; }
@media (min-width: 900px) { [data-look='canvas'] .band > .in, [data-look='canvas'] .sec:not(.foot) > .in, [data-look='canvas'] #ways > .wtop { padding: 64px 56px; } [data-look='canvas'] .chap .in { margin: 0 56px; } }

/* look 3, Parade: a white page; between sections a row of GrokBot bots, words marked in colour */
[data-look='parade'] .parade { display: flex; justify-content: space-between; width: min(1120px, 100% - 40px); margin: 72px auto 0; }
[data-look='parade'] .parade .bot { --z: clamp(24px, 6vw, 56px); }
[data-look='parade'] .parade.go .bot { animation: hop .7s var(--out) both; } [data-look='parade'] .parade.go .bot:nth-child(2n) { animation-delay: .06s; } [data-look='parade'] .parade.go .bot:nth-child(3n) { animation-delay: .12s; }
@keyframes hop { from { transform: translateY(14px) scale(.85); opacity: .2; } to { transform: none; opacity: 1; } }
[data-look='parade'] .hl { text-decoration: underline; text-decoration-color: #FFD400; text-decoration-thickness: .3em; text-underline-offset: -.02em; text-decoration-skip-ink: none; }
[data-look='parade'] .band, [data-look='parade'] .sec:not(.foot) { padding-top: 48px; } [data-look='parade'] #ways { padding-top: 48px; }
[data-look='parade'] .ct .bot { --z: 72px; }
@media (max-width: 480px) { [data-look='parade'] .parade .bot:nth-child(n+9) { display: none; } }
@media (prefers-reduced-motion: reduce) { [data-look='parade'] .parade.go .bot { animation: none; } }
/* fixes from the slop check of the three looks */
@media (max-width: 480px) { [data-look='coats'] .sh h2 { font-size: 27px; } [data-look='coats'] .sh .bot { --z: 52px; } [data-look='coats'] .sh { padding: 22px 20px; gap: 14px; } }
[data-look='canvas'] .ct .bot { --z: 72px; }
@media (max-width: 899px) {
  [data-look='canvas'] .band > .in, [data-look='canvas'] .sec:not(.foot) > .in, [data-look='canvas'] #ways > .wtop { width: calc(100% - 16px); padding: 36px 12px; }
  [data-look='canvas'] .chap { width: calc(100% - 16px); } [data-look='canvas'] .chap .in { margin: 0 12px; }
}

/* white words on every plate: the plates use the app's darker avatar colours so white stays readable */
[data-look='coats'] .sh, [data-look='coats'] .cband .cb, [data-look='coats'] .cbig { color: #fff; }
[data-look='coats'] .ct p, [data-look='coats'] .cf figcaption, [data-look='coats'] .cbig span { color: rgba(255, 255, 255, .9); }
.chip[aria-pressed='true'][style] { color: #fff; }
#start .lede { margin-top: 16px; } #eats .dacts { margin-top: 20px; }

#eats .dacts .btn { white-space: normal; text-align: center; }

/* the original black GrokBot, half out of the bottom-left corner; its own eyes follow the pointer (gbu.js) */
.gb { --gs: clamp(195px, 28.6vw, 416px); clip-path: circle(49.6% at 50% 50%); position: fixed; z-index: 6; width: var(--gs); height: var(--gs); left: calc(var(--gs) * -0.4); bottom: calc(var(--gs) * -0.42); pointer-events: none; }
.gb img { position: absolute; display: block; max-width: none; }
.gb-b { inset: 0; width: 100%; height: 100%; }
.gb-e { height: auto; transform-origin: 50% 50%; will-change: transform; }
@media print { .gb { display: none; } }
@media (max-width: 600px) { .gb { --gs: 151px; left: calc(var(--gs) * -0.42); bottom: calc(var(--gs) * -0.5); } }

/* the headline: "unlimited", with a small red handwritten "almost" under it (Yarik's joke, honest on a second look) */
@font-face { font-family: 'Caveat almost'; src: url('fonts/caveat-almost.woff2') format('woff2'); font-weight: 500; font-display: block; }
.hero h1 { margin-bottom: .3em; } @media (min-width: 900px) { .hero h1 { margin-bottom: .5em; } }
.unl { position: relative; display: inline-block; white-space: nowrap; }
.almost { position: absolute; right: 2%; top: 100%; margin-top: .02em; font: 500 .4em/1 'Caveat almost', 'Segoe Print', 'Bradley Hand', cursive; letter-spacing: .01em; color: #E72E3B; transform: rotate(-5deg); transform-origin: right top; pointer-events: none; }
