/* programmable.page landing, in the Programmable suite look (programmable-ui SPEC.md, programmable.info's landing):
   Geist + Geist Mono, cool greys, white panels on --page, near-black for the one main action, brand green only on
   the wordmark and progress, status as a dot and a word. Flat: one border, no shadow, except things that float (the
   gallery modal, the pointer). No gradients, glows, orbs, dot grids or dashed boxes. Light only, like the suite.
   No inline styles (the CSP forbids them). */
@font-face { font-family: "Geist"; src: url("/landing/geist.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("/landing/mono.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  /* Suite tokens (programmable-ui tokens.css) */
  --page: #f1f2f4; --surface: #fff; --sunken: #f7f8f9; --ink: #121417; --ink-strong: #121417; --body: #454a52; --muted: #5f646b; --faint: #8b9098;
  --line: #dde0e4; --line-soft: #e8eaed; --input: #c3c8cf; --primary: #121417; --primary-hover: #2a2e35; --hover: rgba(18, 20, 23, .04); --chip: rgba(18, 20, 23, .06);
  --brand: #047857; --success: #2d7a59; --success-bg: #e6f4ee; --waiting: #b45309; --waiting-bg: #fef3e2; --waiting-text: #92400e; --outreach: #3b5bdb;
  /* Wells inside a panel (title bars, the URL bar, tallies) */
  --paper: var(--sunken);
  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --mono: "Geist Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  --ease: cubic-bezier(.2, .7, .2, 1);
  /* Only things that float get a shadow. */
  --float: 0 8px 24px -12px rgba(18, 20, 23, .25);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; -webkit-text-size-adjust: 100%; }
body.lp { margin: 0; background: var(--surface); color: var(--ink); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
img, svg { display: block; }
svg[hidden] { display: none; }
.ic { flex: none; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 99; }
.skip:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; border-radius: 6px; }
.wrap { width: min(1152px, 100% - 32px); margin: 0 auto; }
.narrow { width: min(760px, 100% - 32px); }
h1, h2, h3 { margin: 0; color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
h3 { font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
p { margin: 0; }
.section-title { font-size: clamp(26px, 2.6vw, 30px); line-height: 1.2; font-weight: 600; letter-spacing: -.02em; color: var(--ink); max-width: 28ch; }
.lead { font-size: 17px; line-height: 1.65; color: var(--body); max-width: 60ch; }
.body { font-size: 16px; line-height: 1.7; color: var(--body); max-width: 56ch; }
.muted { color: var(--muted); }
.mono { font-family: var(--mono); font-variant-ligatures: none; }
.center { text-align: center; }
.center .section-title, .center .lead, .center .body { margin-left: auto; margin-right: auto; }

/* ---------- components ---------- */
.eyebrow { display: inline-flex; align-items: center; margin: 0; font-size: 13px; font-weight: 500; color: var(--muted); }
.eyebrow .ic { display: none; }
.hero .eyebrow { height: 26px; padding: 0 10px; border: 1px solid var(--line); border-radius: 6px; background: var(--surface); font-size: 12px; color: var(--body); }
.gradient-text { color: inherit; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; white-space: nowrap; height: 36px; border-radius: 8px; border: 1px solid transparent; padding: 0 14px; font: 500 14px/1 var(--sans); text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.btn-lg { height: 44px; padding: 0 20px; font-size: 15px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 14px; }
.btn-primary { color: #fff; background: var(--primary); }
.btn-primary:hover { background: var(--primary-hover); }
.btn-outline { background: var(--surface); border-color: var(--input); color: var(--ink); }
.btn-outline:hover { background: var(--sunken); }
.btn-ghost { color: var(--body); }
.btn-ghost:hover { background: var(--hover); color: var(--ink); }
.card { border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.chip-icon { display: inline-flex; align-items: center; flex: none; color: var(--body); }
.orb { display: none; }

.dot-grid { background: var(--sunken); }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 20px; }
.checks li { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; color: var(--body); }
.checks .ic { color: var(--muted); }
.proof { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.proof span { display: inline-flex; align-items: center; gap: 6px; height: 26px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 500; color: var(--body); }
.proof .ic { color: var(--muted); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 8px; border-radius: 6px; font-size: 12px; font-weight: 500; background: var(--chip); color: var(--body); }
.pill.brand { background: var(--chip); color: var(--ink); }
.pill.amber { background: var(--waiting-bg); color: var(--waiting-text); }
.tag-mono { font: 500 12px var(--mono); color: var(--body); }

/* ---------- header ---------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; background: rgba(255, 255, 255, .92); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line-soft); }
.nav.is-scrolled, .nav.is-open { background: rgba(255, 255, 255, .97); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 56px; }
.logo { display: inline-flex; align-items: center; color: var(--ink); text-decoration: none; }
.logo svg { height: 22px; width: auto; }
.wm-a, .wm-b, .wm-c { transition: transform .3s ease-out; transform-box: fill-box; }
.wm-a, .wm-c { transform-origin: left; }
.logo:hover .wm-a { transform: scaleX(1.08); } .logo:hover .wm-b { transform: translateX(-4px); } .logo:hover .wm-c { transform: scaleX(1.6); }
/* The wordmark and the product pill ("programmable PAGE"): a near-black tint, green stays on the mark. */
.pg-lockup { display: inline-flex; align-items: center; gap: 8px; }
.pg-pill { display: inline-block; border: 1px solid rgba(18, 20, 23, .2); background: rgba(18, 20, 23, .1); color: var(--ink); border-radius: 6px; padding: 2px 6px; font: 600 12px/1 var(--sans); text-transform: uppercase; letter-spacing: .025em; }
.nav-links { display: flex; gap: 4px; margin-left: 16px; }
.nav-links a { white-space: nowrap; padding: 6px 10px; border-radius: 6px; font-size: 14px; color: var(--body); text-decoration: none; transition: background .15s, color .15s; }
.nav-links a:hover { background: var(--hover); color: var(--ink); }
.nav-cta { margin-left: auto; flex-shrink: 0; display: flex; align-items: center; gap: 8px; }
.nav-burger { display: none; border: 0; background: none; padding: 8px; border-radius: 6px; color: var(--body); cursor: pointer; }
.nav-burger .close, .nav.is-open .nav-burger .open { display: none; }
.nav.is-open .nav-burger .close { display: block; }
.nav-menu { display: none; flex-direction: column; gap: 4px; padding: 12px 0 8px; }
.nav.is-open .nav-menu { display: flex; }
.nav-menu a { padding: 10px 12px; border-radius: 6px; font-size: 15px; color: var(--body); text-decoration: none; }
.nav-menu a:hover { background: var(--hover); color: var(--ink); }

/* ---------- sections ---------- */
section { position: relative; }
.sec { padding: 88px 0; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.tint { background: var(--page); }

.story { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, .78fr) minmax(0, 1.22fr); gap: 40px; align-items: center; }
.story.flip { grid-template-columns: minmax(0, 1.22fr) minmax(0, .78fr); }
.story.flip > :first-child { order: 2; }
.story > * { min-width: 0; }
.story-head .section-title { margin: 16px 0 14px; }
.sec-head { display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; max-width: 780px; margin: 0 auto 44px; }
.sec-head .section-title { max-width: none; }
.sec-head .lead { max-width: 62ch; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 120px 0 64px; background: var(--page); border-bottom: 1px solid var(--line-soft); }

.hero-in { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.12fr); gap: 48px; align-items: center; }
.hero-in > * { min-width: 0; }
h1 { margin: 20px 0 20px; font-size: clamp(34px, 4vw, 48px); line-height: 1.1; font-weight: 600; letter-spacing: -.03em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.hero-actions.center { justify-content: center; }
.hero .checks { margin-top: 28px; }
.rise { animation: rise .7s var(--ease) both; }
.rise-2 { animation-delay: .05s; } .rise-3 { animation-delay: .1s; } .rise-4 { animation-delay: .15s; } .rise-5 { animation-delay: .2s; }
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

/* channels strip */
.chan { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(7, 1fr); border-radius: 12px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; position: relative; z-index: 1; }
.chan li { display: flex; flex-direction: column; gap: 6px; padding: 18px 16px; border-left: 1px solid var(--line-soft); }
.chan li:first-child { border-left: 0; }
.chan .ic { color: var(--body); }
.chan b { font-size: 14px; color: var(--ink); }
.chan span { font-size: 13px; color: var(--muted); line-height: 1.4; }

/* ---------- scene frame: a window, a title bar, a clock ---------- */
.frame { position: relative; overflow: hidden; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); }
.frame-bar { display: flex; align-items: center; gap: 12px; height: 44px; padding: 0 14px; border-bottom: 1px solid var(--line-soft); background: var(--surface); }
.lights { display: inline-flex; gap: 6px; }
.lights i { width: 10px; height: 10px; border-radius: 50%; background: var(--line); }

.frame-title { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.frame-title .ic { color: var(--muted); }
.frame-status { margin-left: auto; display: none; align-items: center; gap: 6px; font-size: 13px; color: var(--body); }
.frame-status.is-run { display: inline-flex; }
.frame-status.is-run::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 1.6s ease-in-out infinite; }
.frame-status.is-done { display: inline-flex; }
.frame-status.is-done::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); }
@keyframes pulse { 50% { opacity: .35; } }
.frame-replay { display: inline-grid; place-items: center; width: 28px; height: 28px; border: 0; border-radius: 6px; background: none; color: var(--muted); cursor: pointer; }
.frame-replay:hover { background: var(--hover); color: var(--ink); }
.frame-status + .frame-replay { margin-left: 0; }
/* A looping scene's Pause (landing.js) sits just before Replay, and takes over Replay's place at the right. */
.frame-bar > .frame-pause:not(.frame-status ~ .frame-pause) { margin-left: auto; }
.frame-pause + .frame-replay { margin-left: 0 !important; }
.frame-bar > .frame-replay:last-child:not(.frame-status ~ .frame-replay) { margin-left: auto; }
.frame-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 16px; border-top: 1px solid var(--line-soft); background: var(--surface); font-size: 12px; color: var(--muted); }
.frame-foot b { font: 600 12px var(--mono); color: var(--ink); font-variant-numeric: tabular-nums; }
.frame-split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); }
.frame-split > * { min-width: 0; }
.stage { display: flex; align-items: center; justify-content: center; padding: 22px; min-height: 420px; }
.stage-label { display: block; margin-bottom: 10px; font-size: 12px; font-weight: 500; color: var(--muted); }
.behind { padding: 18px 18px 18px 0; display: flex; flex-direction: column; gap: 10px; justify-content: center; }
.frame-split .behind { padding-left: 0; }

/* behind the scenes: step cards */
.step { display: grid; grid-template-columns: 28px 1fr; gap: 10px; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); opacity: 0; transform: translateY(8px); transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .3s; }
.step.is-on { opacity: 1; transform: none; }
.step.is-live { border-color: var(--input); }
.step-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 6px; background: var(--chip); color: var(--body); }
.step.k-agent .step-ico { background: var(--page); color: var(--ink); }
.step-head { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--ink); }
.step-kind { margin-left: auto; font: 500 12px var(--mono); color: var(--muted); }
.step.k-agent .step-kind { color: var(--ink); }
.step-payload { margin-top: 5px; padding: 6px 8px; border-radius: 8px; background: var(--paper); font: 500 11.5px/1.5 var(--mono); color: var(--body); overflow-wrap: anywhere; }
.step-payload b { color: var(--ink); font-weight: 600; }
.step-payload .k { color: var(--outreach); }
.step-note { margin-top: 3px; font-size: 12px; color: var(--muted); }

/* phone */
.phone { position: relative; width: 300px; max-width: 100%; min-height: 380px; border-radius: 26px; border: 6px solid var(--ink); background: var(--surface); overflow: hidden; display: flex; flex-direction: column; }
.phone.msgs { background: var(--sunken); }
.phone-top { display: flex; align-items: center; gap: 10px; padding: 14px 14px 10px; background: rgba(255, 255, 255, .92); border-bottom: 1px solid var(--line-soft); }
.phone-top strong { display: block; font-size: 13.5px; } .phone-top small { font-size: 11px; color: var(--muted); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; flex: none; }
.bubbles { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; padding: 12px; overflow: hidden; min-height: 0; }
.b { max-width: 88%; padding: 8px 12px; border-radius: 16px; font-size: 13.5px; line-height: 1.4; animation: bubble .35s var(--ease) both; }
.b.is-old { opacity: .55; }
.b.me { align-self: flex-end; background: var(--ink); color: #fff; border-bottom-right-radius: 5px; }
.b.them { align-self: flex-start; background: var(--surface); color: var(--ink); border: 1px solid var(--line); border-bottom-left-radius: 5px; }
.b.typing { display: flex; gap: 4px; padding: 11px 13px; }
.b.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--faint); animation: dots 1.1s ease-in-out infinite; }
.b.typing i:nth-child(2) { animation-delay: .15s; } .b.typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dots { 30% { transform: translateY(-4px); opacity: .5; } }
@keyframes bubble { from { opacity: 0; transform: translateY(8px) scale(.96); } }
.b-ok { display: inline-flex; align-items: center; gap: 6px; color: var(--ink); font-weight: 500; }
.b-ok .ic { color: var(--success); }
.linkcard { display: flex; gap: 10px; align-items: center; margin-top: 8px; padding: 8px 10px; border-radius: 12px; background: var(--sunken); border: 1px solid var(--line-soft); }
.linkcard b { display: block; font-size: 12.5px; } .linkcard small { font-size: 11px; color: var(--muted); }
.lc-ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex: none; background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; }
.compose { display: flex; align-items: center; gap: 8px; margin: 0 10px 12px; padding: 7px 7px 7px 13px; min-height: 38px; border-radius: 19px; background: #fff; border: 1px solid var(--input); font-size: 13.5px; }
.compose-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; direction: rtl; text-align: left; }
.caret { display: inline-block; width: 2px; height: 16px; background: var(--ink); animation: blink 1s steps(1) infinite; flex: none; }
@keyframes blink { 50% { opacity: 0; } }
.send { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; flex: none; transition: transform .2s var(--ease); }
.send.is-go { transform: scale(.85); background: var(--ink); }

/* the customer's page inside a phone */
.page { position: absolute; inset: 0; display: flex; flex-direction: column; padding: 14px 14px 12px; background: var(--surface); transform: translateY(104%); transition: transform .55s var(--ease); border-top: 1px solid var(--line); }
.page.is-up { transform: none; }
.page-bar { display: flex; align-items: center; justify-content: center; gap: 6px; height: 24px; margin-bottom: 10px; border-radius: 8px; background: var(--sunken); font: 11px var(--mono); color: var(--muted); }
.doc-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 2px 0 10px; border-bottom: 1px solid var(--line-soft); }
.doc-brand { display: flex; gap: 9px; align-items: center; min-width: 0; }
.doc-brand strong { display: block; font-size: 13.5px; white-space: nowrap; } .doc-brand small { font-size: 11.5px; color: var(--muted); }
.doc-logo { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 9px; background: var(--ink); color: #fff; font-weight: 600; font-size: 13px; flex: none; }
.doc-to { font-size: 12px; color: var(--body); white-space: nowrap; }
.doc-body { flex: 1; padding: 6px 0 4px; min-height: 0; overflow: hidden; }
.line { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 12.5px; border-bottom: 1px solid var(--line-soft); animation: drop .35s var(--ease) both; }
.line span:last-child { font-variant-numeric: tabular-nums; color: var(--ink); white-space: nowrap; }
.line.opt { align-items: center; } .line.opt label { display: flex; gap: 8px; align-items: center; }
.box { display: inline-grid; place-items: center; width: 16px; height: 16px; border-radius: 5px; border: 1.5px solid var(--input); transition: all .25s var(--ease); flex: none; color: #fff; }
.box svg { opacity: 0; } .box.on { background: var(--ink); border-color: var(--ink); } .box.on svg { opacity: 1; }
.slots { display: flex; gap: 6px; flex-wrap: wrap; padding: 8px 0; }
.slot { padding: 6px 10px; border: 1px solid var(--line); border-radius: 9px; font-size: 12.5px; font-variant-numeric: tabular-nums; transition: all .25s var(--ease); animation: drop .35s var(--ease) both; }
.slot.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.slot.busy { color: var(--muted); background: var(--sunken); text-decoration: line-through; }
.field { display: flex; justify-content: space-between; gap: 10px; padding: 8px 0; font-size: 13px; border-bottom: 1px solid var(--line-soft); animation: drop .35s var(--ease) both; }
.field span:first-child { color: var(--muted); }
@keyframes drop { from { opacity: 0; transform: translateY(-6px); } }
.doc-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line-soft); }
.doc-total span { display: block; color: var(--muted); font-size: 11px; } .doc-total strong { font-size: 19px; letter-spacing: -.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.doc-btn { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 8px; padding: 9px 13px; font: 600 13px var(--sans); color: #fff; background: var(--primary); opacity: .35; transform: scale(.98); transition: opacity .3s, transform .2s var(--ease); white-space: nowrap; }
.doc-btn.is-ready { opacity: 1; transform: none; animation: pop .3s var(--ease); }
.doc-btn.is-press { transform: scale(.95); }
.doc-btn.is-done { background: var(--success-bg); color: var(--success); }
@keyframes pop { from { transform: scale(.94); } }
.stamp { position: absolute; right: 18px; bottom: 70px; padding: 4px 11px; border: 3px solid var(--success); color: var(--success); border-radius: 8px; font: 700 18px var(--sans); letter-spacing: .06em; text-transform: uppercase; background: rgba(255, 255, 255, .9); opacity: 0; transform: rotate(-10deg) scale(1.6); transition: transform .35s cubic-bezier(.3, 1.6, .5, 1), opacity .2s; }
.stamp.is-on { opacity: 1; transform: rotate(-10deg) scale(1); }
.tabs { display: inline-flex; flex-wrap: wrap; justify-content: center; gap: 2px; padding: 3px; border-radius: 8px; border: 1px solid var(--line); background: var(--sunken); }
.tab { border: 0; background: none; height: 28px; padding: 0 10px; border-radius: 6px; font: 500 13px var(--sans); color: var(--body); cursor: pointer; transition: background .15s, color .15s; }
.tab.is-on { background: var(--surface); color: var(--ink); box-shadow: inset 0 0 0 1px var(--line); }
.caption { margin: 14px 0 10px; min-height: 1.6em; font-size: 14px; color: var(--body); text-align: center; transition: opacity .3s; }

/* how it works */
.steps3 { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.steps3 li { position: relative; padding: 24px; }
.steps3 .chip-icon { margin-bottom: 14px; }
.steps3 h3 { margin-bottom: 8px; }
.steps3 p { color: var(--body); font-size: 14px; line-height: 1.65; }
.num { position: absolute; top: 24px; right: 24px; font: 500 12px var(--mono); color: var(--muted); }

/* what pages do */
.facts-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.fact { padding: 22px; }
.fact .chip-icon { margin-bottom: 12px; }
.fact h3 { margin-bottom: 6px; }
.fact p { color: var(--body); font-size: 14px; line-height: 1.65; }

/* gallery */
.g-group { margin-top: 40px; }
.g-group h3 { font-size: 18px; letter-spacing: -.01em; }
.g-group .muted { margin: 4px 0 16px; font-size: 14px; }
.g-grid { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.g-card { display: flex; flex-direction: column; gap: 6px; }
.g-shot { display: block; aspect-ratio: 390 / 560; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--sunken); transition: border-color .15s; }
.g-card:hover .g-shot { border-color: var(--input); }
.g-shot img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.g-blank { display: block; width: 100%; height: 100%; }
.g-more { font-size: 13px; color: var(--muted); }
.g-card strong { margin-top: 4px; font-size: 14px; font-weight: 600; }
.g-say { font: 400 12px/1.5 var(--mono); font-variant-ligatures: none; color: var(--body); }

/* builders */
.code { margin: 0; padding: 20px; border-radius: 12px; background: var(--sunken); color: var(--ink); font: 400 13px/1.6 var(--mono); font-variant-ligatures: none; overflow: auto; }
.code .c { color: var(--muted); } .code .k { color: var(--outreach); } .code .s { color: var(--waiting-text); }
.facts { list-style: none; padding: 0; margin: 22px 0 0; display: grid; gap: 12px; color: var(--body); font-size: 15px; }
.facts li { display: grid; grid-template-columns: 22px 1fr; gap: 10px; align-items: start; }
.facts .ic { color: var(--muted); margin-top: 3px; }
.facts strong { color: var(--ink); }
.facts code { font: 400 13px var(--mono); background: var(--chip); padding: 1px 6px; border-radius: 4px; }

/* pricing */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; max-width: 820px; margin: 0 auto; }
.plan { padding: 28px; display: flex; flex-direction: column; gap: 16px; }
.plan.pro { border-color: var(--input); }
.plan-name { display: flex; align-items: center; justify-content: space-between; }
.plan-name h3 { font-size: 18px; }
.price { font-size: 28px; font-weight: 600; letter-spacing: -.02em; }
.price small { font-size: 14px; font-weight: 400; color: var(--muted); letter-spacing: 0; }
.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; font-size: 14px; color: var(--body); }
.plan li { display: flex; gap: 8px; align-items: center; }
.plan .ic { color: var(--muted); }
.plan .btn .ic { color: inherit; }
.plan .btn { margin-top: auto; }

/* faq */
.faq { background: var(--page); }
.faq details { padding: 16px 20px; border: 1px solid var(--line); border-top: 0; background: var(--surface); }
.faq .section-title + details { margin-top: 28px; border-top: 1px solid var(--line); border-radius: 12px 12px 0 0; }
.faq details:last-child { border-radius: 0 0 12px 12px; }
.faq summary { cursor: pointer; font-weight: 500; font-size: 15px; list-style: none; display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ic { color: var(--muted); transform: rotate(45deg); transition: transform .2s var(--ease); }
.faq details[open] summary .ic { transform: none; }
.faq details p { color: var(--body); margin: 8px 0 0; font-size: 14px; line-height: 1.65; max-width: 62ch; }

/* cta + footer */
.cta { padding: 88px 0; background: var(--surface); text-align: center; }
.cta .section-title { margin: 0 auto 12px; max-width: 26ch; }
.cta p { color: var(--body); margin: 0 auto; font-size: 16px; max-width: 54ch; }
.foot { padding: 40px 0 48px; border-top: 1px solid var(--line-soft); background: var(--page); }
.foot-in { display: grid; grid-template-columns: auto 1fr; gap: 16px 32px; align-items: center; }
.foot nav { display: flex; flex-wrap: wrap; gap: 8px 20px; justify-content: flex-end; font-size: 14px; }
.foot nav a { color: var(--muted); text-decoration: none; } .foot nav a:hover { color: var(--ink); }
.fine { grid-column: 1 / -1; margin: 0; color: var(--muted); font-size: 12px; } .fine a { color: var(--body); }
/* More from Programmable (site/localized.ts suiteFooter), as on the rest of the site: each app's name over its one line. */
.foot nav.suite { grid-column: 1 / -1; display: block; margin: 8px 0 0; padding-top: 24px; border-top: 1px solid var(--line); }
.suite p { margin: 0 0 8px; font-size: 14px; font-weight: 500; color: var(--ink); }
.suite ul { display: grid; gap: 4px 24px; margin: 0; padding: 0; list-style: none; grid-template-columns: repeat(auto-fill, minmax(min(100%, 220px), 1fr)); }
.suite li { margin: 0; }
.foot .suite a { display: block; padding: 4px 0; color: var(--muted); font-size: 13px; line-height: 1.5; text-decoration: none; }
.suite strong { display: block; color: var(--ink); font-size: 14px; font-weight: 500; }
.foot .suite a:hover { color: var(--muted); } .suite a:hover strong { text-decoration: underline; text-decoration-color: var(--ink); text-underline-offset: 3px; }

/* scroll reveal */
.js .reveal { opacity: 0; transform: translateY(16px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 1000px) {
  .hero-in, .story, .story.flip { grid-template-columns: 1fr; gap: 36px; }
  .story.flip > :first-child { order: 0; }
  .nav-links { display: none; }
  .nav-burger { display: inline-grid; }
  .chan { grid-template-columns: repeat(4, 1fr); }
  .chan li:nth-child(5) { border-left: 0; }
  .chan li:nth-child(n + 5) { border-top: 1px solid var(--line-soft); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .frame-split { grid-template-columns: 1fr; }
  .frame-split .behind { padding: 0 18px 18px; }
  .stage { min-height: 0; }
}
@media (max-width: 640px) {
  .hero { padding: 96px 0 48px; }
  .sec, .cta { padding: 64px 0; }
  .steps3, .facts-grid, .plans { grid-template-columns: 1fr; }
  .chan { grid-template-columns: repeat(2, 1fr); }
  .chan li:nth-child(odd) { border-left: 0; }
  .chan li:nth-child(n + 3) { border-top: 1px solid var(--line-soft); }
  .nav-cta .btn-ghost { display: none; }
  .nav-cta .btn-primary { padding: 0 10px; font-size: 13px; }
  .logo svg { height: 18px; }
  .g-grid { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .foot-in { grid-template-columns: 1fr; } .foot nav { justify-content: flex-start; flex-wrap: wrap; }
  .lead { font-size: 16px; }
  .phone { width: 280px; }
  .frame-status { display: none !important; }
  .frame-bar > .frame-replay { margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .js .reveal { opacity: 1; transform: none; }
  .wm-a, .wm-b, .wm-c { transform: none !important; }
}

/* ---------- v3: the studio hero, real pages in a browser frame ---------- */
.wrap.wide { width: min(1240px, 100% - 32px); }
.hero-top { position: relative; z-index: 1; text-align: center; margin-bottom: 36px; }
.hero-top h1 { max-width: 20ch; margin-left: auto; margin-right: auto; }
.hero-top .lead { margin: 0 auto; max-width: 64ch; }
.checks.center { justify-content: center; }
.studio { position: relative; z-index: 1; }
.studio .frame-bar { gap: 14px; }
.track { display: flex; align-items: center; gap: 2px; margin: 0 auto; padding: 0; list-style: none; }
.track li { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background .25s, color .25s; }
.track li i { display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--chip); color: var(--body); font: 500 11px var(--mono); font-style: normal; transition: background .25s, color .25s; }
.track li.is-on { background: var(--chip); color: var(--ink); }
.track li.is-on i { background: var(--ink); color: #fff; }
.track li.is-done { color: var(--body); }
.track li.is-done i { background: var(--success-bg); color: var(--success); }
.studio-body { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 0; }
.studio-left { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-right: 1px solid var(--line-soft); background: var(--surface); }
.studio-right { position: relative; padding: 18px; background: var(--sunken); }
.chat { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; background: var(--sunken); overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line-soft); }
.chat-head strong { display: block; font-size: 13.5px; } .chat-head small { font-size: 11px; color: var(--muted); }
.chat-thread { display: flex; flex-direction: column; gap: 8px; padding: 12px; min-height: 56px; }
.chat .b { max-width: 92%; }
.composer { display: flex; align-items: center; gap: 8px; margin: 0 10px 12px; padding: 6px 6px 6px 12px; min-height: 38px; border-radius: 19px; background: var(--surface); border: 1px solid var(--input); font-size: 14px; transition: opacity .3s; }
.composer.is-sent { opacity: .55; }
.composer .compose-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; direction: rtl; text-align: left; }
.understood { display: flex; gap: 10px; align-items: flex-start; min-height: 0; padding: 0; font-size: 14px; line-height: 1.5; color: var(--ink); }
.understood:empty { display: none; }
.understood .u-ico { display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 6px; background: var(--chip); color: var(--body); margin-top: 1px; }
.understood b { color: var(--ink); font-weight: 600; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .pill { gap: 5px; padding: 4px 9px; }
.chips .pill .ic { color: var(--success); }
.notes { display: flex; flex-direction: column; gap: 8px; }
.note { display: flex; align-items: center; gap: 10px; padding: 9px 11px; border-radius: 8px; background: var(--surface); border: 1px solid var(--line); animation: rise .45s var(--ease) both; }
.note strong { display: block; font-size: 13.5px; } .note small { display: block; color: var(--muted); font-size: 12px; }
.note-ico { display: grid; place-items: center; flex: none; width: 30px; height: 30px; border-radius: 6px; background: var(--chip); color: var(--body); }
.browser { position: relative; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.browser-bar { display: flex; align-items: center; justify-content: center; gap: 6px; height: 30px; border-bottom: 1px solid var(--line-soft); background: var(--sunken); font: 12px var(--mono); font-variant-ligatures: none; color: var(--muted); }
.browser-body { position: relative; min-height: 440px; max-height: 560px; overflow: hidden auto; scrollbar-width: none; }
.browser-body::-webkit-scrollbar { display: none; }
.widget { position: relative; min-height: 440px; opacity: 0; transform: translateY(14px); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.widget.is-up { opacity: 1; transform: none; }
.widget iframe { display: block; width: 100%; border: 0; }
.widget.is-fallback img { display: block; width: 100%; height: auto; }
.widget.is-busy::after { content: ""; position: absolute; left: 0; top: 0; width: 40%; height: 2px; background: var(--brand); animation: sweep 1.2s linear infinite; }
@keyframes sweep { from { transform: translateX(-100%); } to { transform: translateX(250%); } }
.pointer { position: absolute; left: 22px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 12px 8px 10px; border-radius: 999px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; box-shadow: var(--float); opacity: 0; transform: translateY(10px) scale(.96); transition: opacity .3s var(--ease), transform .3s var(--ease); pointer-events: none; }
.pointer .ic { color: #fff; }
.pointer.is-on { opacity: 1; transform: none; }
.pointer.is-tap { transform: scale(.94); }
.pointer.is-tap .ic { animation: tap .45s var(--ease); }
@keyframes tap { 40% { transform: scale(.7); } }
.studio-right .caption { margin: 12px 0 0; }
.studio .frame-foot { padding: 10px 14px; gap: 14px; flex-wrap: wrap; }
.studio .tabs { box-shadow: none; }
.foot-timing { display: inline-flex; align-items: center; gap: 8px; margin-left: auto; }
@media (max-width: 1000px) {
  .studio-body { grid-template-columns: 1fr; }
  .studio-left { border-right: 0; border-bottom: 1px solid var(--line); }
  .track { display: none; }
}
@media (max-width: 640px) {
  .hero-top h1 { max-width: none; }
  .browser-body, .widget { min-height: 360px; }
  .foot-timing { margin-left: 0; }
}

/* ---------- gallery: filter row, cards that open the real page, and the modal ---------- */
.g-filter { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin: -8px 0 4px; }
.g-tab { height: 32px; padding: 0 12px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); color: var(--body); font: 500 13px var(--sans); cursor: pointer; transition: background .15s, color .15s, border-color .15s; }
.g-tab:hover { background: var(--sunken); color: var(--ink); }
.g-tab.is-on { background: var(--chip); border-color: var(--input); color: var(--ink); }
.g-tab:focus-visible, .g-open:focus-visible, .gal-arrow:focus-visible, .gal-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.g-group[hidden] { display: none; }
.g-open { display: flex; flex-direction: column; gap: 6px; width: 100%; margin: 0; padding: 0; border: 0; border-radius: 12px; background: none; font: inherit; color: inherit; text-align: left; cursor: pointer; }
.g-open .g-shot { position: relative; }
.g-try { position: absolute; left: 10px; bottom: 10px; gap: 5px; padding: 3px 9px; background: var(--surface); border: 1px solid var(--line); color: var(--ink); transition: background .15s, color .15s, border-color .15s; }
.g-try .ic { fill: currentColor; }
.g-open:hover .g-try, .g-open:focus-visible .g-try { background: var(--primary); border-color: var(--primary); color: #fff; }
.gal-lock { overflow: hidden; }
.gal-modal { position: fixed; inset: 0; z-index: 60; display: grid; place-items: center; padding: 20px; }
.gal-modal[hidden] { display: none; }
.gal-backdrop { position: absolute; inset: 0; background: rgba(18, 20, 23, .45); animation: gal-fade .25s var(--ease) both; }
@keyframes gal-fade { from { opacity: 0; } }
.gal-panel { position: relative; display: flex; flex-direction: column; width: min(1120px, 100%); max-height: calc(100vh - 40px); border-radius: 12px; border: 1px solid var(--line); background: var(--page); box-shadow: var(--float); overflow: hidden; animation: rise .35s var(--ease) both; }
.gal-head { display: flex; align-items: center; gap: 16px; padding: 14px 18px; border-bottom: 1px solid var(--line); background: var(--surface); }
.gal-title-wrap { flex: 1; min-width: 0; }
.gal-title { margin: 0; font-size: 18px; font-weight: 600; letter-spacing: -.01em; }
.gal-say { margin: 2px 0 0; font: 400 12px/1.5 var(--mono); font-variant-ligatures: none; color: var(--body); }
.gal-ctl { display: flex; align-items: center; gap: 6px; flex: none; }
.gal-arrow, .gal-close { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 8px; border: 1px solid var(--input); background: var(--surface); color: var(--body); cursor: pointer; transition: color .15s, background .15s; }
.gal-arrow:hover, .gal-close:hover { color: var(--ink); background: var(--sunken); }
.gal-arrow.prev .ic { transform: rotate(180deg); }
.gal-count { min-width: 64px; text-align: center; font: 500 12px var(--mono); color: var(--muted); font-variant-numeric: tabular-nums; }
.gal-close { margin-left: 8px; }
.gal-body { display: grid; grid-template-columns: minmax(0, 1.45fr) minmax(240px, .55fr); gap: 20px; padding: 20px; min-height: 0; overflow: auto; }
.gal-browser { height: max-content; } /* max-content: a grid row would otherwise clamp the (overflow: hidden) frame to the panel's height and cut tall pages off */
.gal-view { min-height: 420px; max-height: none; overflow: visible; }
.gal-widget { min-height: 420px; }
.gal-demo { margin-left: 8px; padding: 0 6px; border-radius: 4px; background: var(--chip); color: var(--body); font: 500 12px var(--sans); }
.gal-side { position: sticky; top: 0; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; align-self: start; }
.gal-what { margin: 0; font-size: 14px; line-height: 1.6; color: var(--body); }
.gal-what b { display: block; margin-bottom: 4px; font-size: 13px; font-weight: 500; color: var(--muted); }
.gal-chips .pill { gap: 5px; padding: 4px 10px; font-size: 12px; }
.gal-chips .pill .ic { color: var(--muted); }
.gal-hint { display: flex; gap: 8px; margin: 0; padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--body); font-size: 13px; line-height: 1.5; }
.gal-hint .ic { flex: none; margin-top: 2px; color: var(--muted); }
@media (max-width: 860px) {
  .gal-modal { padding: 10px; }
  .gal-panel { max-height: calc(100vh - 20px); }
  .gal-head { padding: 12px 14px; }
  .gal-body { grid-template-columns: 1fr; gap: 16px; padding: 14px; }
  .gal-side { position: static; }
  .gal-count { display: none; }
  .gal-say { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}

/* ---------- live: a real public page embedded on the landing ---------- */
.live-wrap { max-width: 760px; margin: 0 auto; }
.live-body { min-height: 360px; max-height: none; overflow: visible; }
.live-board { position: relative; min-height: 360px; }
.live-board iframe { display: block; width: 100%; border: 0; }
.live-board.is-off { display: grid; place-items: center; padding: 24px; color: var(--muted); font-size: 14px; text-align: center; }
.live-board.is-off a { color: var(--ink); }
.live-dot { display: inline-flex; align-items: center; gap: 6px; margin-left: 10px; font: 500 12px var(--sans); color: var(--body); }
.live-dot::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--success); animation: pulse 1.6s ease-in-out infinite; }
.live-embed { margin: 14px 0 0; text-align: center; font-size: 14px; color: var(--muted); }
.live-embed code { padding: 2px 6px; border-radius: 4px; background: var(--chip); color: var(--ink); font: 400 13px var(--mono); font-variant-ligatures: none; }
.live-embed a { color: var(--ink); }

/* scene: builders.css */
/* builders: a prompt in Claude Code becomes a published page (left: the terminal, right: the page it made) */
.bd-split { grid-template-columns: minmax(0, 1.08fr) minmax(0, .92fr); }
.bd-term { display: flex; flex-direction: column; gap: 12px; min-height: 420px; padding: 20px 22px; border-radius: 0; box-shadow: none; overflow: hidden; overflow-wrap: anywhere; }
.bd-term > * { transition: opacity .4s var(--ease), transform .4s var(--ease); }
.bd-prompt { color: var(--ink); }
.bd-ps { color: var(--muted); font-weight: 600; }
.bd-caret { height: 14px; margin-left: 2px; vertical-align: -2px; background: var(--ink); }
.bd-caret.is-off { display: none; }
.bd-call, .bd-res { opacity: 0; transform: translateY(6px); }
.bd-call.is-on, .bd-res.is-on { opacity: 1; transform: none; }
.bd-call { padding: 8px 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); color: var(--ink); }
.bd-arg { padding-left: 16px; }
.bd-res { color: var(--muted); }
.bd-arrow { margin-right: 6px; color: var(--muted); font-weight: 600; }
.bd-hi { color: var(--ink); font-weight: 600; }
.bd.is-out .bd-term > *, .bd.is-out .bd-browser { opacity: 0; }

/* the page it made, in a small browser */
.bd-stage { align-items: center; }
.bd-browser { width: 100%; max-width: 320px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; opacity: 0; transform: translateY(14px) scale(.97); transition: opacity .5s var(--ease), transform .5s var(--ease); }
.bd-browser.is-on { opacity: 1; transform: none; }
.bd-url { display: flex; align-items: center; justify-content: center; gap: 6px; height: 28px; margin: 8px; border-radius: 8px; background: var(--sunken); font: 11px var(--mono); color: var(--muted); }
.bd-page { padding: 6px 16px 16px; }
.bd-head { display: flex; align-items: center; gap: 10px; padding-bottom: 12px; border-bottom: 1px solid var(--line-soft); }
.bd-head strong { display: block; font-size: 14.5px; white-space: nowrap; }
.bd-head small { font-size: 11.5px; color: var(--muted); }
.bd-logo { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #0f766e; color: #fff; font-weight: 600; font-size: 15px; flex: none; }
.bd-rows { padding: 4px 0 12px; }
.bd-row { display: flex; justify-content: space-between; gap: 12px; margin: 0 -6px; padding: 9px 6px; border-bottom: 1px solid var(--line-soft); border-radius: 8px; font-size: 13.5px; color: var(--body); opacity: 0; transform: translateY(-6px); transition: opacity .3s var(--ease), transform .3s var(--ease), background .4s; }
.bd-row.is-on { opacity: 1; transform: none; }
.bd-row span:last-child { font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); white-space: nowrap; transition: color .3s; }
.bd-row.is-hot { background: var(--sunken); border-bottom-color: transparent; }
.bd-row.is-hot span:last-child { color: var(--ink); animation: bd-flip .45s var(--ease); }
@keyframes bd-flip { from { opacity: 0; transform: translateY(-8px); } }
.bd-btn { width: 100%; }

/* the kinds a page can run, and the foot */
.bd-kinds { display: flex; flex-wrap: wrap; gap: 6px; padding: 10px 16px; border-top: 1px solid var(--line); background: var(--paper); }
.bd-kinds .pill { opacity: .55; transition: background .3s, color .3s, opacity .3s, transform .3s var(--ease), box-shadow .3s; }
.bd-kinds .pill.is-on { opacity: 1; background: var(--page); color: var(--ink); }
.bd-kinds .pill.is-new { box-shadow: inset 0 0 0 1px var(--input); }
.bd-foot { display: inline-flex; align-items: center; gap: 6px; }
.bd-foot .ic { color: var(--muted); }

@media (max-width: 1000px) {
  .bd-split { grid-template-columns: 1fr; }
  .bd-term { min-height: 0; }
}

/* scene: jobs.css */
/* Jobs scene: a spreadsheet becomes a page per row, each rendered to PDF; then a recipe runs on the owner's own computer. */
.jb-body { display: flex; flex-direction: column; gap: 14px; padding: 16px 18px 18px; }

/* the stage track across the top */
.jb-track { display: flex; align-items: center; gap: 6px; }
.jb-stage { display: inline-flex; align-items: center; gap: 6px; height: 28px; padding: 0 10px; border-radius: 6px; border: 1px solid var(--line); background: var(--surface); font-size: 12px; font-weight: 500; color: var(--muted); white-space: nowrap; transition: color .3s, border-color .3s, background .3s, box-shadow .3s; }
.jb-stage.is-live { color: var(--ink); border-color: var(--input); background: var(--sunken); }
.jb-stage.is-live .ic { color: var(--ink); }
.jb-stage.is-done { color: var(--ink); }
.jb-stage.is-done .ic { color: var(--success); }
.jb-link { flex: 1; min-width: 6px; height: 2px; border-radius: 2px; background: var(--line); transition: background .3s; }
.jb-link.is-done { background: var(--brand); }

/* the sheet and the pages it becomes */
.jb-main { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
.jb-sheet-wrap { border-radius: 8px; border: 1px solid var(--line); background: var(--surface); overflow: hidden; }
.jb-file { display: flex; align-items: center; gap: 6px; padding: 8px 10px; border-bottom: 1px solid var(--line); font: 600 11.5px var(--mono); color: var(--body); }
.jb-file .ic { color: var(--muted); }
.jb-file-meta { margin-left: auto; font-weight: 500; color: var(--muted); }
.jb-sheet { width: 100%; border-collapse: collapse; font-size: 12px; }
.jb-sheet th { padding: 5px 8px; text-align: left; font-size: 12px; font-weight: 500; color: var(--muted); background: var(--paper); border-bottom: 1px solid var(--line); }
.jb-sheet td { padding: 6px 8px; border-bottom: 1px solid var(--line-soft); color: var(--muted); white-space: nowrap; transition: background .25s, color .25s; }
.jb-sheet td:first-child { width: 22px; font: 500 10.5px var(--mono); text-align: center; }
.jb-sheet td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.jb-sheet tr.is-read td { color: var(--body); }
.jb-sheet tr.is-read td:last-child { color: var(--ink); }
.jb-sheet tr.is-live td { background: var(--sunken); color: var(--ink); }
.jb-sheet tr.is-done td:first-child { color: var(--success); font-weight: 600; }
.jb-into { display: flex; align-items: center; gap: 5px; padding: 7px 10px; border-top: 1px solid var(--line); font-size: 11.5px; color: var(--muted); }
.jb-into b { color: var(--ink); }
.jb-out { display: flex; flex-direction: column; gap: 6px; }
.jb-card { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); opacity: 0; transform: translateX(14px); transition: opacity .35s var(--ease), transform .35s var(--ease), border-color .3s; }
.jb-card.is-in { opacity: 1; transform: none; }
.jb-card:nth-child(2) { margin-left: 5px; } .jb-card:nth-child(3) { margin-left: 10px; } .jb-card:nth-child(4) { margin-left: 15px; } .jb-card:nth-child(5) { margin-left: 20px; } .jb-card:nth-child(6) { margin-left: 25px; }
.jb-card.is-pub { border-color: var(--input); }
.jb-card-logo { position: relative; display: grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 7px; background: #0f766e; color: #fff; font-weight: 600; font-size: 11.5px; }
.jb-card-text { flex: 1; min-width: 0; }
.jb-card-text b { display: block; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-card-text small { display: block; font-size: 10.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.jb-tag { flex: none; padding: 2px 6px; border-radius: 4px; background: var(--chip); font: 500 11px var(--mono); color: var(--muted); }
.jb-ok { position: absolute; right: -5px; bottom: -5px; display: grid; place-items: center; width: 15px; height: 15px; border-radius: 50%; border: 2px solid #fff; background: var(--success); color: #fff; opacity: 0; transform: scale(.5); transition: opacity .3s, transform .3s cubic-bezier(.3, 1.6, .5, 1); }
.jb-ok .ic { width: 9px; height: 9px; stroke-width: 3; }
.jb-card.is-ok .jb-ok { opacity: 1; transform: none; }
.jb-pdf { display: none; align-items: center; gap: 3px; flex: none; padding: 1px 6px; border-radius: 4px; background: var(--chip); color: var(--ink); font-size: 12px; font-weight: 500; }
.jb-card.is-pdf .jb-pdf { display: inline-flex; animation: jb-pop .3s cubic-bezier(.3, 1.6, .5, 1) both; }
@keyframes jb-pop { from { opacity: 0; transform: scale(.6); } }

@media (max-width: 640px) {
  .jb-track { flex-wrap: wrap; }
  .jb-link { display: none; }
  .jb-main { grid-template-columns: 1fr; }
  .jb-card:nth-child(n) { margin-left: 0; }
}
.jb-foot b { white-space: nowrap; }

/* scene: week.css */
/* week: five days on one phone. The owner's feed and a running tally on the left, the real page for the day on the right. */
.wk .composer.is-idle { opacity: .45; }
.wk .composer.is-idle .caret { display: none; }

/* Tuesday: the printed card with the real QR code slides in under the chat */
.wk-cardwrap { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .5s var(--ease); }
.wk-cardwrap > div { min-height: 0; overflow: hidden; }
.wk-cardwrap.is-on { grid-template-rows: 1fr; }
.wk-card { display: flex; gap: 12px; align-items: center; margin: 4px 6px 6px; padding: 10px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface); opacity: 0; transform: translateX(-28px) rotate(-1.5deg); transition: transform .5s var(--ease), opacity .4s; }
.wk-cardwrap.is-on .wk-card { opacity: 1; transform: rotate(-1.5deg); }
.qr-code { flex: none; width: 96px; aspect-ratio: 1; border-radius: 6px; overflow: hidden; background: #fff; }
.qr-code svg { width: 100%; height: 100%; }
.wk-card-text { min-width: 0; }
.wk-card-head { display: flex; gap: 8px; align-items: center; }
.wk-card-head strong { display: block; font-size: 13px; line-height: 1.2; white-space: nowrap; }
.wk-card-head small { font-size: 11px; color: var(--muted); }
.wk-logo { background: #b45309; }
.wk-card-text p { display: flex; align-items: center; gap: 5px; margin: 8px 0 2px; font-size: 11.5px; font-weight: 600; color: var(--ink); }
.wk-card-text > small { display: block; font-size: 11px; line-height: 1.4; color: var(--muted); }

/* the running tally */
.wk-tally { margin-top: auto; display: grid; grid-template-columns: repeat(4, 1fr); border-radius: 12px; border: 1px solid var(--line); background: var(--paper); overflow: hidden; }
.wk-tally > div { min-width: 0; padding: 9px 10px; border-left: 1px solid var(--line); }
.wk-tally > div:first-child { border-left: 0; }
.wk-tally small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.wk-tally b { display: block; margin-top: 2px; font-size: 16px; font-weight: 600; letter-spacing: -.01em; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; transition: color .3s; }
.wk-tally b.is-hot { color: var(--success); }

/* the pointer sits over the browser, not inside the part that scrolls */
.wk .browser > .pointer { z-index: 2; }

/* Friday evening: the week's numbers over the page */
.wk-end { position: absolute; inset: 0; z-index: 3; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; padding: 24px; text-align: center; background: rgba(255, 255, 255, .94); backdrop-filter: blur(6px); opacity: 0; visibility: hidden; transition: opacity .5s var(--ease), visibility 0s .5s; }
.wk-end.is-on { opacity: 1; visibility: visible; transition-delay: 0s; }
.wk-end .wk-end-title { margin: 0; color: var(--ink); font-weight: 600; font-size: clamp(20px, 2.2vw, 26px); line-height: 1.2; letter-spacing: -.02em; max-width: 20ch; }
.wk-end ul { list-style: none; margin: 6px 0 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; width: min(100%, 420px); }
.wk-end li { padding: 12px; border-radius: 8px; border: 1px solid var(--line); background: var(--surface); }
.wk-end li b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.03em; color: var(--ink); font-variant-numeric: tabular-nums; }
.wk-end li span { font-size: 12px; font-weight: 500; color: var(--muted); }
.wk-end .muted { font-size: 13.5px; max-width: 38ch; }

/* the claims under the frame */
.wk-facts { position: relative; z-index: 1; grid-template-columns: repeat(4, 1fr); margin-top: 28px; }
.wk-facts .fact p { font-size: 14px; }

@media (max-width: 1000px) {
  .wk-facts { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .wk-facts { grid-template-columns: 1fr; }
  .wk-tally { grid-template-columns: repeat(2, 1fr); }
  .wk-tally > div:nth-child(3) { border-left: 0; }
  .wk-tally > div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .wk-end { padding: 16px; gap: 8px; }
  .wk-end li { padding: 8px; }
  .wk-end li b { font-size: 18px; }
}

/* scene: yours.css */
/* "See a page with your name on it": a website in, a filled template out (routes/site-preview.ts). */
.yo { display: grid; gap: 20px; max-width: 980px; margin: 0 auto; }
.yo-form { display: grid; grid-template-columns: minmax(0, 1fr) 180px auto; gap: 12px; align-items: end; padding: 16px; }
.yo-field { display: grid; gap: 6px; font-size: 13px; font-weight: 500; color: var(--body); }
.yo-field input, .yo-field select { height: 44px; padding: 0 12px; border: 1px solid var(--input); border-radius: 8px; background: var(--surface); color: var(--ink); font: 15px var(--sans); min-width: 0; }
.yo-field input:focus-visible, .yo-field select:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.yo-check { grid-column: 1 / -1; }
.yo-status:empty { display: none; }
.yo-status { grid-column: 1 / -1; margin: 0; font-size: 14px; color: var(--muted); }
.yo-status.is-error { color: var(--waiting-text); }
.yo-result { display: grid; grid-template-columns: minmax(0, 1fr) 260px; gap: 20px; align-items: start; }
.yo-view { max-height: 620px; overflow: auto; }
.yo-side { display: grid; gap: 14px; justify-items: start; }
.yo-what { display: grid; gap: 6px; margin: 0; font-size: 14px; color: var(--body); }
.yo-what b { font-size: 16px; color: var(--ink); }
.yo-small { margin: 0; font-size: 13px; }
@media (max-width: 760px) {
  .yo-form { grid-template-columns: 1fr; }
  .yo-form .btn { width: 100%; }
  .yo-result { grid-template-columns: 1fr; }
}
