/* The one-page beta sign-up (2026-11-10) and the pages that share its chrome:
   legal pages, 404, and the Worker's sign-up and confirm pages.
   Copy: docs/design/website/beta-page/COPY.md. Loads after site.css. */
.vh{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.b-nav .nav-in{justify-content:space-between}
.b-nav .lockup{height:26px;width:auto}

/* hero */
.b-hero{position:relative;overflow:hidden;border-bottom:1px solid var(--line)}
.b-hero .dotbg{position:absolute;inset:0;z-index:0}
.b-hero-in{position:relative;z-index:2;display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(40px,5vw,64px);padding-top:clamp(48px,6vw,96px);padding-bottom:clamp(48px,6vw,88px)}
.b-hero-demo{max-width:720px}
.b-hero h1{font-size:clamp(36px,calc(22px + 2.8vw),64px);line-height:1.03;letter-spacing:-.04em;margin:24px 0 24px;max-width:860px}
.b-hero h1 .h1-2{display:block;color:var(--brand)}
.b-hero .sub{max-width:640px}
.b-hero .ctas{margin-top:32px}
@media (min-width:1100px){.b-hero-in{grid-template-columns:minmax(0,1fr) minmax(0,600px);column-gap:clamp(40px,4vw,72px);align-items:start}.b-hero h1{font-size:clamp(40px,calc(16px + 2.4vw),56px)}}

/* how it works and data, full width */
.b-more{display:grid;grid-template-columns:minmax(0,1fr);gap:clamp(56px,6vw,88px);padding-top:clamp(64px,7vw,112px)}
.b-more h2{font-size:clamp(30px,calc(18px + 2vw),48px);line-height:1.1;letter-spacing:-.03em;margin-bottom:8px}
/* the hero demo (assets/demo.js): a carousel of sample answers, not an input.
   2026-11-20: a visitor took the old prompt box for a live chat, so the box is
   gone; the question pops in whole, the answer builds in, and bars under the
   window flip between the sample questions. */
.b-ex .chat{padding-bottom:6px}
.is-demo .msg.user.pop{animation:b-pop .35s cubic-bezier(.2,.9,.3,1.2) both}
@keyframes b-pop{from{opacity:0;transform:translateY(8px) scale(.96)}to{opacity:1;transform:none}}
/* one bar per answer across the window's width, its topic under it; the
   current bar fills while its answer holds (Mike picked this over pills, dots
   and arrows, 2026-11-20) */
.b-ex-nav{display:none;gap:10px;margin-top:16px}
.is-demo .b-ex-nav{display:flex}
.b-ex-nav button{position:relative;flex:1;text-align:left;font:inherit;font-size:13px;line-height:1.3;background:none;border:0;border-top:3px solid #E4E2E8;padding:10px 0 0;cursor:pointer;color:var(--muted)}
.b-ex-nav button:hover{color:var(--brand)}
.b-ex-nav button[aria-pressed=true]{color:var(--brand);font-weight:600}
.b-ex-nav button:focus-visible{outline:2px solid var(--brand);outline-offset:3px}
.b-ex-nav button::after{content:"";position:absolute;left:0;right:0;top:-3px;height:3px;background:var(--brand);transform-origin:left;transform:scaleX(0)}
.b-ex-nav button.run::after{animation:b-hold var(--hold,10s) linear forwards}
.b-ex.hold .b-ex-nav button.run::after{animation-play-state:paused}
@keyframes b-hold{from{transform:scaleX(0)}to{transform:scaleX(1)}}

/* demo steps: space is reserved from the start, so nothing jumps */
.b-probe{position:absolute;visibility:hidden;left:-9999px;top:0}
.is-demo .b-step{opacity:0;transform:translateY(6px);transition:opacity .45s ease,transform .45s ease}
.is-demo .b-step.in{opacity:1;transform:none}
.is-demo .chat-body{transition:opacity .4s ease}
.is-demo .chat-body.b-out{opacity:0}
/* how it works: three open columns, divided by thin rules */
.b-steps{display:grid;grid-template-columns:minmax(0,1fr);margin-top:24px}
.b-steps li{padding:28px 0;border-top:1px solid var(--line)}
.b-steps li:last-child{border-bottom:1px solid var(--line)}
@media (min-width:900px){
  .b-steps{grid-template-columns:repeat(3,minmax(0,1fr))}
  .b-steps li,.b-steps li:last-child{border:0;padding:8px clamp(24px,3vw,48px)}
  .b-steps li:not(:first-child){border-left:1px solid var(--line)}
  .b-steps li:first-child{padding-left:0}
}
.b-steps h3{font-size:clamp(20px,calc(14px + 1vw),30px);line-height:1.1;letter-spacing:-.025em;color:var(--brand)}
.b-steps p{font-size:17px;line-height:1.55;color:#2A2A2A;margin-top:12px;max-width:380px}
/* data: six scope claims (Mike, 2026-11-20: no counts). Chip, a short
   headline in the step-heading style, one line. One column on phones, two
   from 560px (2x3), three from 900px (3x2); every cell is filled, so the
   1px gap over the line colour draws single rules; balanced wrapping keeps a headline from
   leaving one word on its own line. */
.b-stats{display:grid;grid-template-columns:minmax(0,1fr);gap:1px;margin-top:24px;background:var(--line);border:1px solid var(--line)}
@media (min-width:560px){.b-stats{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (min-width:900px){.b-stats{grid-template-columns:repeat(3,minmax(0,1fr))}}
.b-stats li{background:#fff;padding:clamp(20px,2.4vw,32px) clamp(18px,2vw,28px)}
.b-chip{display:grid;place-items:center;width:36px;height:36px;border-radius:8px;background:var(--accent);color:#fff}
.b-icon{width:20px;height:20px}
.b-head{font-size:clamp(20px,calc(14px + .9vw),27px);line-height:1.15;letter-spacing:-.025em;color:var(--brand);margin-top:18px;text-wrap:balance}
.b-line{font-size:15px;line-height:1.45;color:#2A2A2A;margin-top:10px;text-wrap:pretty}
.b-stats .nw{white-space:nowrap}
.b-who p{max-width:720px;font-size:clamp(18px,1.45vw,21px);line-height:1.6;color:#2A2A2A}
.b-who p+p{margin-top:20px}
.b-who h2+p{margin-top:16px}

/* worked example */
.b-ex .msg.bot h3{font-size:12px;font-family:var(--mono);font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--brand);margin:4px 0 10px}
.b-ex .msg.bot ul{display:flex;flex-direction:column;gap:10px}
.b-ex .msg.bot ul+h3{margin-top:18px}
.b-ex .msg.bot li{padding-left:16px;position:relative;font-size:15.5px;line-height:1.5}
.b-ex .msg.bot li::before{content:"";position:absolute;left:0;top:.62em;width:6px;height:6px;background:var(--accent)}
.b-ex .msg.bot sup{white-space:nowrap}
.b-ex .msg.bot sup a{color:var(--brand)}
.b-ex .msg.bot .ctx{margin-top:18px;padding-top:14px;border-top:1px solid #ECEDEF;font-size:15px;line-height:1.5;color:#2A2A2A}
.b-ex .nw{white-space:nowrap}
.b-ex .b-srcs{padding-top:14px;border-top:1px solid #ECEDEF}
.b-ex .b-srcs summary{cursor:pointer;font-size:13px;color:var(--muted);list-style:none}
.b-ex .b-srcs summary::-webkit-details-marker{display:none}
.b-ex .b-srcs summary::after{content:" +";color:var(--brand)}
.b-ex .b-srcs[open] summary::after{content:" \2212"}
.b-ex .b-srcs .srcs{margin-top:12px}
.b-ex .src-h{font-family:var(--mono);font-size:12px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--brand);padding-top:16px;border-top:1px solid #ECEDEF}
.b-ex .srcs{font-size:13.5px;line-height:1.45;gap:7px}
.b-ex .srcs li{display:grid;grid-template-columns:22px minmax(0,1fr);align-items:baseline}
.b-ex .srcs li::before{margin-right:0}
.b-ex .srcs a{color:var(--brand);text-decoration:underline;text-underline-offset:2px;overflow-wrap:anywhere}
.b-ex .asof-s{color:var(--muted)}
/* compact demo window: the whole window fits a 1280x800 laptop screen */
.b-ex .chat-bar{min-height:40px;padding:6px 16px}
.b-ex .chat-body{padding:14px 20px 10px;gap:10px;font-size:14px;line-height:1.4}
.b-ex .msg.user{padding:7px 12px;font-size:14px;line-height:1.38}
.b-ex .msg.bot h3{font-size:11px;margin:0 0 6px}
.b-ex .msg.bot ul{gap:4px}
.b-ex .msg.bot ul+h3{margin-top:10px}
.b-ex .msg.bot li{padding-left:14px;font-size:14px;line-height:1.4}
.b-ex .msg.bot .ctx{margin-top:10px;padding-top:8px;font-size:13.5px;line-height:1.4}
.b-ex .b-srcs{padding-top:8px}

/* invitation and form */
.b-join{padding-top:clamp(72px,8vw,128px);padding-bottom:clamp(72px,8vw,128px)}
.b-card{max-width:600px;margin:0 auto;background:#fff;border:1px solid var(--line);box-shadow:var(--shadow)}
.b-card-in{padding:clamp(26px,4vw,48px) clamp(22px,4vw,48px)}
.b-card h2{font-size:clamp(26px,calc(16px + 1.4vw),36px);line-height:1.15;letter-spacing:-.025em}
.b-invite{font-size:17px;line-height:1.5;color:#2A2A2A;margin-top:10px}
.b-join .subscribe{max-width:600px;margin-top:32px;grid-template-columns:minmax(0,1fr);grid-template-areas:"label" "email" "ts" "button" "spam" "terms" "note"}
.b-join .subscribe label{grid-area:label}
.b-join .subscribe input[type=email]{grid-area:email}
.b-join .subscribe .cf-turnstile{grid-area:ts}
.b-join .subscribe .cf-turnstile:empty{display:none}
.b-join .subscribe button{grid-area:button}
.b-join .subscribe .spam{grid-area:spam;font-size:15px;color:#2A2A2A;margin:0}
.b-join .subscribe .terms{grid-area:terms;font-size:14px;color:var(--muted);margin:0}
.b-join .subscribe noscript{grid-area:note}
.b-join .subscribe .note{font-size:14px;color:var(--muted);margin:0}
@media (min-width:640px){
  .b-join .subscribe{grid-template-columns:minmax(0,1fr) auto;grid-template-areas:"label label" "email button" "ts ts" "spam spam" "terms terms" "note note";column-gap:0}
  .b-join .subscribe button{justify-self:stretch}
}
.b-who .b-me{color:var(--brand);text-decoration:underline;text-underline-offset:3px}

/* legal pages, 404 and the Worker's pages */
.b-doc{padding-top:clamp(40px,5vw,72px);padding-bottom:clamp(64px,7vw,112px);min-height:50vh}
.b-doc .prose{max-width:720px}
.b-doc .prose h1{font-size:clamp(32px,calc(20px + 2vw),48px);line-height:1.08;letter-spacing:-.035em;margin-bottom:24px}
.b-doc .prose h2{font-size:22px;letter-spacing:-.02em;margin:36px 0 12px}
.b-doc .prose h3{font-size:18px;margin:24px 0 8px}
.b-doc .prose p,.b-doc .prose li{font-size:16.5px;line-height:1.65;color:#2A2A2A}
.b-doc .prose p+p{margin-top:14px}
.b-doc .prose ul,.b-doc .prose ol{margin:12px 0 12px 22px}
.b-doc .prose ul{list-style:disc}.b-doc .prose ol{list-style:decimal}
.b-doc .prose li+li{margin-top:6px}
.b-doc .prose a{color:var(--brand);text-decoration:underline;text-underline-offset:2px}
.b-doc .prose blockquote{border-left:3px solid var(--accent);background:var(--panel);padding:12px 16px;margin:0 0 20px}
.b-doc .prose code{font-family:var(--mono);font-size:.9em;background:var(--panel);padding:1px 4px}
.b-doc .prose form{margin-top:20px}
.b-doc .prose button{height:52px;padding:0 24px;font:inherit;font-weight:500;color:#fff;background:var(--brand);border:0;cursor:pointer}
.b-doc .prose button:hover{background:var(--brand-deep)}
.b-doc .back{margin-top:28px}
.foot a{color:inherit}.foot a:hover{color:#fff}

/* the hero demo: fuller lines on wide screens, a compact line on phones (same facts) */
.b-ex .b-s{display:none}
@media (max-width:560px){
  .b-ex .b-l{display:none}
  .b-ex .b-s{display:inline}
  .b-ex .chat-body{gap:8px}
  .b-ex .msg.user{font-size:13.5px}
  .b-ex .msg.bot li,.b-ex .msg.bot .ctx{font-size:13.5px;line-height:1.38}
    .b-ex .chat-bar{padding:8px 16px}
  .b-ex .chat-body{padding:16px 16px 12px}
  .b-ex .msg.user{max-width:92%}
}
body:has(.b-doc){min-height:100vh;display:flex;flex-direction:column}
body:has(.b-doc) .b-doc{flex:1}

/* depth (2026-11-11): one light source above and to the left, so every shadow
   falls down and right at x:y = 1:2; layered low-opacity shadows whose offset
   and blur double each layer; tinted toward the brand purple rather than grey;
   the demo window sits higher than the sign-up card. No border, only a faint
   ring so the white panels keep an edge on a white page. */
.b-hero,.b-join{--sh:270deg 18% 32%}
.b-ex .chat{box-shadow:0 0 0 1px hsl(var(--sh) / .07),
  .5px 1px 1px hsl(var(--sh) / .06),1px 2px 2px hsl(var(--sh) / .06),
  2px 4px 4px hsl(var(--sh) / .06),4px 8px 8px hsl(var(--sh) / .06),
  8px 16px 16px hsl(var(--sh) / .06),16px 32px 32px hsl(var(--sh) / .06)}
.b-card{border:0;box-shadow:0 0 0 1px hsl(var(--sh) / .07),
  .5px 1px 1px hsl(var(--sh) / .07),1px 2px 2px hsl(var(--sh) / .07),
  2px 4px 4px hsl(var(--sh) / .07),4px 8px 8px hsl(var(--sh) / .07)}
.b-hero .dotgrid{background-image:radial-gradient(#E6E4E9 1px,transparent 1.25px)}
.b-ex .msg.bot h3 .b-of{color:var(--muted);font-weight:500}

/* Setup commands on /connect/ wrap on a phone instead of widening the page (onco-intel-3trqx). */
.b-doc pre{max-width:100%;overflow-x:auto;white-space:pre-wrap;overflow-wrap:anywhere}

/* "How does Torralo build its data?" (staging, 2026-11-19): one wide line-art
   workshop scene, drawn by homepage/workshop/make_scene.py, then six steps.
   On a phone the scene is wider than the screen, so it pans slowly and can be
   dragged (see the phone block below). */
.b-build-lede,.b-data-lede{font-size:clamp(17px,1.3vw,19px);line-height:1.55;color:#2A2A2A;max-width:640px;margin-top:4px}
.tw-scene{margin-top:28px;overflow:hidden;border-radius:22px;background:#FFF3DC;box-shadow:inset 0 0 0 1px var(--line)}
.tw-pan{width:100%}
.tw-svg{display:block;width:100%;height:auto}
.tw-svg *{transform-box:view-box}
.tw-svg .tw-j{transform-origin:0 0;animation:tw-rot var(--d,1.6s) ease-in-out infinite alternate}
@keyframes tw-rot{from{transform:rotate(var(--a0))}to{transform:rotate(var(--a1))}}
.tw-svg .tw-bob{animation:tw-bob 1.8s ease-in-out infinite alternate}
@keyframes tw-bob{from{transform:translateY(0)}to{transform:translateY(-4px)}}
.tw-svg .tw-glow{animation:tw-flick .5s steps(2) infinite}
@keyframes tw-flick{50%{opacity:.35}}
.tw-svg .tw-ant,.tw-svg .tw-blink{animation:tw-blink 1.2s steps(1) infinite}
@keyframes tw-blink{50%{fill:#FFD84D}}
.tw-svg .tw-twinkle{transform-box:fill-box;transform-origin:center;animation:tw-twinkle 2.6s ease-in-out infinite alternate}
.tw-svg .tw-twinkle:nth-of-type(2n){animation-delay:-1.3s}
@keyframes tw-twinkle{from{transform:scale(.7) rotate(0)}to{transform:scale(1.15) rotate(20deg)}}
.tw-svg .tw-gear{animation:tw-spin 3s linear infinite}
.tw-svg .tw-gear-r{animation:tw-spin 2s linear infinite reverse}
@keyframes tw-spin{to{transform:rotate(360deg)}}
.tw-svg .tw-type{animation:tw-type 2.4s steps(6) infinite}
@keyframes tw-type{from{transform:translate(0,0)}to{transform:translate(0,-30px)}}
.tw-svg .tw-pour{transform-origin:640px 702px;animation:tw-pour 3.2s ease-in-out infinite}
@keyframes tw-pour{0%,25%{transform:rotate(0)}50%,75%{transform:rotate(28deg)}100%{transform:rotate(0)}}
.tw-svg .tw-beam{animation:tw-beam 1s ease-in-out infinite alternate}
@keyframes tw-beam{from{opacity:.15}to{opacity:.5}}
.tw-off .tw-svg *{animation-play-state:paused!important}
.tw-steps{display:grid;grid-template-columns:minmax(0,1fr);margin-top:28px}
.tw-steps li{padding:18px 0;border-top:1px solid var(--line)}
.tw-steps li:last-child{border-bottom:1px solid var(--line)}
.tw-steps h3{font-size:clamp(18px,calc(13px + .7vw),24px);line-height:1.1;letter-spacing:-.025em;color:var(--brand)}
.tw-steps p{font-size:15.5px;line-height:1.5;color:#2A2A2A;margin-top:8px;max-width:420px}
@media (min-width:640px){.tw-steps{grid-template-columns:repeat(2,minmax(0,1fr));column-gap:32px}.tw-steps li:nth-last-child(2){border-bottom:1px solid var(--line)}}
@media (min-width:1000px){
  .tw-steps{grid-template-columns:repeat(6,minmax(0,1fr));column-gap:0}
  .tw-steps li,.tw-steps li:last-child,.tw-steps li:nth-last-child(2){border:0;padding:4px clamp(12px,1.4vw,22px)}
  .tw-steps li:not(:first-child){border-left:1px solid var(--line)}
  .tw-steps li:first-child{padding-left:0}
}
/* phone and small tablet: the scene keeps a readable height; workshop.js pans it
   slowly and a finger can drag it (native horizontal scrolling, scrollbar hidden) */
@media (max-width:899px){
  .tw-scene{overflow-x:auto;overflow-y:hidden;scrollbar-width:none;overscroll-behavior-x:contain;-webkit-overflow-scrolling:touch}
  .tw-scene::-webkit-scrollbar{display:none}
  .tw-pan{width:max(100%,900px)}
}
.tw-belt{animation:tw-belt .28s linear infinite}
@keyframes tw-belt{to{stroke-dashoffset:-16}}
.tw-mbelt{animation:tw-mbelt .21s linear infinite}
@keyframes tw-mbelt{to{stroke-dashoffset:40}}
@media (prefers-reduced-motion:reduce){
  .tw-svg *{animation:none!important}
}
