/* The home (src/day.js, D-125). The art is the canvas behind everything
   (day-world.js); this file lays the words and the staged product scenes over
   it. The four faces come from the page's own <style> (shared.js FONT_CSS). */
:root {
  --blue: #2563EB; --blue-hi: #5B8DEF; --ink: #0A1022; --ink-2: #3A4460; --ink-3: #6B7385;
  --paper: #FFFFFF; --paper-2: #F3F6FC; --rule: rgba(10, 16, 34, .10);
  --app: #080B14; --app-2: #0E1320; --app-3: #151B2C; --app-line: rgba(148, 163, 184, .16); --app-text: #F4F6FA; --app-soft: #A9B1C2; --app-dim: #6B7385;
  --amber: #F59E0B; --amber-hi: #FDE68A; --ok: #34D399; --night: #05070D;
  --sans: "Geist", "Geist Fallback", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", "Geist Mono Fallback", ui-monospace, "SF Mono", Menlo, monospace;
  --pad: clamp(20px, 5.4vw, 96px); --px: 3px;
}
* { box-sizing: border-box; }
html { background: var(--night); scrollbar-width: none; -webkit-text-size-adjust: 100%; overflow-x: clip; }
html::-webkit-scrollbar { display: none; }
body { margin: 0; color: var(--paper); font: 400 17px/1.5 var(--sans); -webkit-font-smoothing: antialiased; overflow-x: clip; }
a { color: inherit; }
button { font: inherit; color: inherit; }
/* the sky is as tall as the screen ever gets (a phone with its bars away); the ground is placed by the screen at its shortest */
#sky { position: fixed; left: 0; top: 0; width: 100%; height: 100vh; height: 100lvh; z-index: 0; overflow: hidden; }
#world { display: block; image-rendering: pixelated; image-rendering: crisp-edges; }
#svh { position: fixed; left: 0; top: 0; width: 1px; height: 100vh; height: 100svh; visibility: hidden; pointer-events: none; }
/* grain: a still sheet of noise over the art, as on a print */
#grain { position: fixed; inset: 0; z-index: 1; pointer-events: none; opacity: .07; mix-blend-mode: overlay; background-size: 192px 192px; }
main, .nav, .foot { position: relative; z-index: 2; }
main { overflow-x: clip; }

/* ---- nav */
.nav { position: fixed; inset: 0 0 auto 0; z-index: 20; display: flex; align-items: center; gap: 22px; padding: 18px var(--pad); }
.nav .logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.nav .logo svg { height: 19px; width: auto; display: block; }
.nav .logo svg path { fill: currentColor; }
.chip { font: 500 11px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 5px 7px; border-radius: 5px; background: rgba(255, 255, 255, .16); }
.nav .right { margin-left: auto; display: flex; align-items: center; gap: 14px; }
.lang { display: inline-flex; padding: 3px; border-radius: 9px; background: rgba(5, 7, 13, .34); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.lang a { padding: 6px 9px; border-radius: 6px; font: 500 12px/1 var(--mono); letter-spacing: .08em; text-decoration: none; opacity: .72; }
.lang a[aria-current] { background: var(--paper); color: var(--ink); opacity: 1; }
.btn { display: inline-flex; align-items: center; gap: 10px; border: 0; cursor: pointer; text-decoration: none; white-space: nowrap; font: 600 16px/1 var(--sans); padding: 17px 22px; border-radius: 12px; background: var(--paper); color: var(--ink); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 12px 30px -12px rgba(4, 12, 40, .55); transition: transform .18s ease, box-shadow .18s ease; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgba(255, 255, 255, .5) inset, 0 18px 34px -12px rgba(4, 12, 40, .6); }
.btn svg { width: 16px; height: 16px; transition: transform .18s ease; }
.btn:hover svg { transform: translateX(3px); }
.btn.sm { padding: 11px 15px; font-size: 14px; border-radius: 10px; }
.btn.ghost { background: var(--ink); color: var(--paper); box-shadow: 0 0 0 1.5px rgba(255, 255, 255, .55) inset, 0 12px 30px -12px rgba(4, 12, 40, .55); }
:focus-visible { outline: 3px solid var(--paper); outline-offset: 3px; border-radius: 6px; }

/* ---- type */
.display { margin: 0; font-weight: 300; letter-spacing: -.045em; line-height: .98; font-size: clamp(46px, min(6.8vw, 10vh), 100px); text-wrap: balance; }
.display, .h2, .lead { text-shadow: 0 1px 0 rgba(8, 30, 110, .18), 0 6px 34px rgba(8, 30, 110, .34); }
.h2 { margin: 0; font-weight: 300; letter-spacing: -.04em; line-height: 1.02; font-size: clamp(36px, min(4.7vw, 7.6vh), 70px); text-wrap: balance; }
.ln { display: block; }
.lead { margin: 0; font-size: clamp(17px, 1.42vw, 21px); line-height: 1.48; max-width: 34em; color: rgba(255, 255, 255, .92); text-wrap: pretty; }
.lit .w { display: inline-block; white-space: nowrap; }
.lit .c { opacity: 0; }
.lit .c.on { opacity: 1; }
.lit .c.cur { position: relative; }
.lit .c.cur::after { content: ""; position: absolute; left: 100%; bottom: .13em; margin-left: .08em; width: .3em; height: .68em; background: currentColor; opacity: .92; }
.hour { display: inline-flex; align-items: center; gap: 10px; align-self: flex-start; margin: 0; padding: 4px 11px 4px 4px; border-radius: 9px; background: rgba(10, 16, 34, .78); font: 500 12.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .94); }
.hour b { font-weight: 600; padding: 6px 8px; border-radius: 6px; background: rgba(255, 255, 255, .16); letter-spacing: .1em; }
.promise { margin: 0; display: flex; flex-wrap: wrap; gap: 6px; font: 400 12.5px/1.3 var(--mono); letter-spacing: .01em; color: rgba(255, 255, 255, .96); }
.promise span { padding: 7px 10px; border-radius: 8px; background: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset; }

/* ---- the day as a rail: one stop per scene, named by its hour */
.rail { position: fixed; right: 20px; top: 50%; z-index: 15; transform: translateY(-50%); display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.rail button { all: unset; cursor: pointer; display: flex; align-items: center; justify-content: flex-end; gap: 9px; padding: 5px 0; }
.rail button i { width: 6px; height: 6px; background: rgba(255, 255, 255, .5); transition: background .25s, box-shadow .25s, transform .25s; }
.rail button span { font: 500 10.5px/1 var(--mono); letter-spacing: .06em; padding: 4px 6px; border-radius: 5px; background: rgba(5, 7, 13, .4); opacity: 0; transform: translateX(6px); transition: opacity .2s, transform .2s; order: -1; }
.rail button:hover span, .rail button:focus-visible span { opacity: 1; transform: none; }
.rail button.on i { background: var(--paper); transform: scale(1.5); box-shadow: 0 0 0 3px rgba(255, 255, 255, .22); }

/* ---- hero */
.hero { position: relative; min-height: 100svh; padding: clamp(96px, 12.5vh, 124px) var(--pad) 0; display: flex; flex-direction: column; align-items: flex-start; }
/* a breath of sky-blue behind the words, so a passing cloud never takes a letter */
html:not(.ready) .hero::before { opacity: 0; }
.hero::before, .scene .say::before { content: ""; position: absolute; z-index: -1; left: -6%; top: 4%; width: min(74%, 1000px); height: 62%; background: radial-gradient(closest-side, rgb(var(--sky, 37 99 235) / .62), rgb(var(--sky, 37 99 235) / 0)); pointer-events: none; }
.scene .say { position: relative; }
.scene .say::before { left: -12%; top: -16%; width: 112%; height: 132%; }
.hero .hour { padding-right: 14px; }
.hero .hour span { text-transform: none; letter-spacing: 0; font: 500 15.5px/1.35 var(--sans); }
.hero .display { max-width: 9.6em; margin-top: 18px; }
.hero .lead { margin-top: clamp(12px, 2vh, 24px); max-width: 31em; }
.hero .cta { margin-top: clamp(14px, 2.4vh, 28px); display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; }
.hero .promise { margin-top: clamp(8px, 1.3vh, 12px); }
/* the opening's words rise once the world is on (day.js marks the page awake); without scripts they simply stand */
html.js .rise { opacity: 0; transform: translateY(18px); }
html.awake .rise { animation: rise .8s cubic-bezier(.2, .7, .2, 1) forwards; animation-delay: calc(var(--d, 0) * 90ms + 120ms); }
html.js .lit:not(.set) { visibility: hidden; }
@keyframes rise { to { opacity: 1; transform: none; } }
/* the name tags of the roll call follow the mascots (app.js places them) */
.tags { position: fixed; inset: 0; z-index: 1; pointer-events: none; }
.tag { position: absolute; left: 0; top: 0; white-space: nowrap; font: 500 11px/1 var(--mono); letter-spacing: .02em; padding: 5px 7px; border-radius: 6px; color: var(--ink); background: var(--paper); box-shadow: 0 6px 16px -6px rgba(4, 12, 40, .5); opacity: 0; transition: opacity .25s ease; transform-origin: 50% 0; }
.tag::before { content: ""; position: absolute; left: 50%; top: -4px; width: 8px; height: 8px; margin-left: -4px; background: var(--paper); transform: rotate(45deg); border-radius: 1px; }
.tag.on { opacity: 1; }
.tag.up::before { top: auto; bottom: -4px; }
.tag b { font-weight: 600; }
.tag span { color: var(--ink-3); }

/* ---- scenes: a tall section whose stage stays put while its story plays */
.scene { position: relative; }
.scene .stage { will-change: opacity, transform; position: sticky; top: 0; height: 100svh; padding: clamp(92px, 13vh, 132px) var(--pad) 0; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.04fr); gap: clamp(24px, 4vw, 72px); align-items: start; }
.scene .say { display: flex; flex-direction: column; gap: clamp(14px, 2vh, 22px); }
.scene .say .h2 { max-width: 10.4em; }
.scene .say .lead { max-width: 30em; }
/* a scene with nothing beside its words sets them across the top: one or two long lines, the world below */
.scene .stage > .say:only-child { grid-column: 1 / -1; }
.scene .stage > .say:only-child .h2 { max-width: calc(100% - 44px); }
.scene .stage > .say:only-child .lead { max-width: 34em; }
#s5 .say .lead { max-width: 46em; }
.scene .stage > .say:only-child::before { left: -8%; width: 80%; }
/* a scene set on the middle of the sky, the world under it */
/* a scene that leaves half the screen to the world */
.scene .show { position: relative; min-width: 0; }

/* ---- the app, staged: its own dark look, drawn in HTML so it can act */
.face { width: 18px; height: 18px; flex: none; image-rendering: pixelated; image-rendering: crisp-edges; }
code { font-family: var(--mono); font-size: .92em; }
/* s1: the agents of one workspace */
.rows { display: grid; gap: 7px; align-content: start; }
.arow { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 4px 12px; padding: 10px 13px; border-radius: 11px; background: var(--app-2); box-shadow: 0 0 0 1px var(--app-line) inset; opacity: .3; filter: saturate(.3); transition: opacity .4s ease, filter .4s ease; }
.arow .st { visibility: hidden; }
.arow.in { opacity: 1; filter: none; }
.arow.in .st { visibility: visible; }
.arow .face { width: 27px; height: 27px; grid-row: span 2; }
.arow .nm { font-weight: 600; font-size: 14.5px; }
.arow .nm span { margin-left: 8px; font: 400 12px/1 var(--mono); color: var(--app-soft); }
.arow code { grid-column: 2; color: var(--app-dim); font-size: 12px; }
.arow .st { grid-column: 3; grid-row: 1 / span 2; display: flex; flex-direction: column; align-items: flex-end; gap: 7px; font-size: 12.5px; color: var(--app-soft); text-align: right; }
.steps { display: inline-flex; gap: 3px; }
.steps i { width: 15px; height: 5px; border-radius: 2px; background: #252C41; transition: background .3s; }
.steps i.on { background: var(--blue-hi); }
.spin { width: 54px; height: 5px; border-radius: 2px; background: #252C41; overflow: hidden; position: relative; }
.spin::after { content: ""; position: absolute; inset: 0 60% 0 0; border-radius: 2px; background: var(--blue-hi); animation: slide 1.3s ease-in-out infinite alternate; }
@keyframes slide { to { transform: translateX(150%); } }
.vault { display: flex; align-items: center; gap: 10px; margin: 12px 0 0; padding: 12px 2px 0; border-top: 1px solid var(--app-line); color: var(--app-soft); font-size: 13px; opacity: 0; transition: opacity .6s; }
.vault.in { opacity: 1; }
.vault svg { width: 16px; height: 16px; flex: none; color: var(--ok); }
/* s2: a conversation with an Assistant */
.gw { position: relative; display: block; }
.gh { visibility: hidden; }
.ty { position: absolute; left: 0; top: 0; right: 0; }
.typing { display: inline-flex; gap: 4px; padding: 5px 0; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: var(--app-soft); animation: dot 1s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; } .typing i:nth-child(3) { animation-delay: .3s; }
@keyframes dot { 0%, 60%, 100% { opacity: .25; transform: none; } 30% { opacity: 1; transform: translateY(-3px); } }
/* s3: the New agent form */
.off { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; }
.off::before { content: ""; width: 26px; height: 15px; border-radius: 99px; background: #252C41; box-shadow: 8px 0 0 -4px #6B7385 inset; }
.sandbox { color: var(--app-soft); font-size: 12.5px; padding: 4px 9px; border-radius: 6px; box-shadow: 0 0 0 1px var(--app-line) inset; opacity: 0; transform: translateX(-6px); transition: opacity .35s, transform .35s; }
.sandbox.in { opacity: 1; transform: none; }
.tools { display: flex; flex-wrap: wrap; gap: 7px; }
.tool { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px 7px 8px; border-radius: 8px; background: var(--app-2); box-shadow: 0 0 0 1px var(--app-line) inset; font-size: 12.5px; color: var(--app-soft); transition: color .2s, box-shadow .2s, background .2s; }
.tool i { width: 14px; height: 14px; border-radius: 4px; box-shadow: 0 0 0 1.5px #3A4460 inset; display: grid; place-items: center; transition: background .2s, box-shadow .2s; }
.tool i::after { content: ""; width: 7px; height: 4px; border-left: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(-45deg) translate(1px, -1px) scale(0); transition: transform .18s cubic-bezier(.3, 1.6, .5, 1); }
.tool.on { color: var(--app-text); }
.tool.on i { background: var(--blue); box-shadow: none; }
.tool.on i::after { transform: rotate(-45deg) translate(1px, -1px) scale(1); }
.tool.no { color: var(--app-dim); text-decoration: line-through; text-decoration-color: rgba(107, 115, 133, .7); }
.go { border: 0; padding: 11px 16px; border-radius: 9px; background: var(--blue); color: var(--paper); font: 600 13px/1 var(--sans); white-space: nowrap; transition: transform .12s, background .2s; }
.go.press { transform: scale(.95); background: #1D4ED8; }
.go.done { background: #15803D; }
.go.wide { width: 100%; padding: 13px 16px; font-size: 14px; }
.ptr { position: absolute; left: 0; top: 0; z-index: 5; width: 22px; height: 22px; pointer-events: none; opacity: 0; transition: transform .55s cubic-bezier(.3, .8, .25, 1), opacity .25s; }
.ptr.on { opacity: 1; }
.ptr svg { width: 22px; height: 22px; filter: drop-shadow(0 2px 3px rgba(0, 0, 0, .5)); }
/* things that fly between the page and the world: tool chips, letters */
.fx { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.fly { position: absolute; left: 0; top: 0; will-change: transform; }
.fly.chipf { padding: 5px 8px; border-radius: 7px; background: var(--paper); color: var(--ink); font: 600 11px/1 var(--mono); box-shadow: 0 8px 18px -8px rgba(4, 12, 40, .6); }
.fly.letter { width: 30px; height: 22px; border-radius: 3px; background: var(--paper); box-shadow: 0 8px 18px -8px rgba(4, 12, 40, .6); background-image: linear-gradient(35deg, transparent 49%, #9FB2D9 50%, transparent 52%), linear-gradient(-35deg, transparent 49%, #9FB2D9 50%, transparent 52%); }
/* s4: the laptop whose lid closes */
/* the same messages, later, as notes that rise from the Station */
/* s5: the question that waits, on a white card with its agent on top */
.opts { display: grid; gap: 7px; margin-top: 14px; }
.opt { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: 10px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule) inset; font-size: 14px; font-weight: 500; transition: background .2s, box-shadow .2s, color .2s; }
.opt i { width: 20px; height: 20px; flex: none; border-radius: 6px; display: grid; place-items: center; background: var(--paper); box-shadow: 0 0 0 1px var(--rule) inset; font: 600 11px/1 var(--mono); font-style: normal; color: var(--ink-3); }
.opt.pick { background: var(--blue); color: var(--paper); box-shadow: none; }
.opt.pick i { background: rgba(255, 255, 255, .22); color: var(--paper); box-shadow: none; }
@keyframes wait { to { box-shadow: 0 0 0 10px rgba(245, 158, 11, 0); } }
/* s6: the phone, and the review that is ready */
#s6 .show { display: flex; justify-content: flex-end; padding-right: clamp(0px, 4vw, 70px); }
.phone { position: relative; width: 248px; padding: 32px 11px 14px; border-radius: 36px; background: var(--app); color: var(--app-text); box-shadow: 0 0 0 2px #2A3146, 0 0 0 8px #0B0F1A, 0 0 0 9px #3A4460, 0 40px 70px -28px rgba(2, 6, 24, .85); }
.phone .notch { position: absolute; left: 50%; top: 11px; width: 74px; height: 16px; margin-left: -37px; border-radius: 99px; background: #000; }
.phone .pbar { display: flex; justify-content: space-between; align-items: baseline; padding: 6px 6px 12px; font: 600 17px/1 var(--sans); }
.pcard { padding: 13px; border-radius: 14px; background: var(--app-2); box-shadow: 0 0 0 1px var(--app-line) inset; }
.pcard .who { margin: 0; display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.pcard .who span { font: 400 11px/1 var(--mono); color: var(--app-soft); }
.pcard .qt { margin: 10px 0 0; font-size: 14.5px; line-height: 1.34; font-weight: 500; }
.pcard .opts { margin-top: 11px; gap: 6px; }
.pcard .opt { background: var(--app-3); box-shadow: 0 0 0 1px var(--app-line) inset; font-size: 12.5px; padding: 9px 10px; }
.pcard .opt i { background: var(--app); box-shadow: none; color: var(--app-soft); width: 18px; height: 18px; }
.pcard .opt.pick { background: var(--blue); }
.pcard .opt.fade { opacity: .35; }
.pcard .ans { display: flex; gap: 8px; margin: 11px 0 0; padding-top: 11px; border-top: 1px solid var(--app-line); font-size: 12.5px; line-height: 1.4; color: var(--app-soft); opacity: 0; transition: opacity .4s; }
.pcard .ans.in { opacity: 1; }
.pcard .ans::before { content: ""; flex: none; width: 15px; height: 15px; margin-top: 1px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16' fill='none' stroke='%23052E12' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M4.5 8.2l2.3 2.3 4.7-5'/%3E%3C/svg%3E") center/11px no-repeat; }
.pcard .ans b { color: var(--app-text); font-weight: 600; }
.phone { transition: opacity .35s, transform .35s; }
.phone.away { opacity: 0; transform: scale(.94); visibility: hidden; }
.tap { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(255, 255, 255, .28); box-shadow: 0 0 0 2px rgba(255, 255, 255, .6) inset; opacity: 0; transition: transform .6s cubic-bezier(.3, .8, .25, 1), opacity .25s; pointer-events: none; }
.tap.on { opacity: 1; }
.tap.down { background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 2px var(--paper) inset, 0 0 0 10px rgba(255, 255, 255, .16); }
/* s7: the routine, three lines that tick as the day goes round */
/* ---- what the world holds: a bubble over a mascot, a card by the Station, a note by the mailbox.
   app.js moves the outer box to its anchor every frame; the inner one fades and carries the tail. */
#held { position: fixed; inset: 0; z-index: 4; pointer-events: none; overflow: hidden; }
.hg { position: absolute; inset: 0; }
.held { position: absolute; left: 0; top: 0; will-change: transform; }
.bub { position: relative; width: max-content; max-width: min(360px, calc(100vw - 32px)); padding: 12px 14px; border-radius: 14px; background: var(--paper); color: var(--ink); font-size: 14px; line-height: 1.42; text-align: left; box-shadow: 0 20px 40px -18px rgba(2, 6, 24, .7), 0 0 0 1px rgba(10, 16, 34, .06); opacity: 0; transform: translateY(10px) scale(.94); transform-origin: var(--tx, 50%) var(--ty, 100%); transition: opacity .28s ease, transform .42s cubic-bezier(.2, .9, .2, 1); }
.held.in .bub { opacity: 1; transform: none; }
.bub::after { content: ""; position: absolute; width: 14px; height: 14px; border-radius: 3px; background: inherit; transform: rotate(45deg); }
.held[data-tail="b"] .bub::after { left: calc(var(--tx, 50%) - 7px); bottom: -6px; }
.held[data-tail="r"] .bub::after { right: -6px; top: calc(var(--ty, 50%) - 7px); }
.held[data-tail="l"] .bub::after { left: -6px; top: calc(var(--ty, 50%) - 7px); }
.held[data-tail="n"] .bub::after { display: none; }
.bub .by { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; font: 600 11px/1 var(--mono); letter-spacing: .03em; color: var(--ink-3); }
.bub .by .face { width: 20px; height: 20px; }
.bub .by svg { width: 12px; height: 12px; }
.bub .tx b { font-weight: 600; color: var(--blue); }
.bub.you { background: var(--blue); color: var(--paper); }
.bub.you .by { color: rgba(255, 255, 255, .82); }
.bub.you .tx b { color: var(--paper); }
.bub .typing i { background: var(--ink-3); }
/* a card: the same white box, wider, with rows */
.bub.wide { max-width: min(420px, calc(100vw - 32px)); width: min(420px, calc(100vw - 32px)); padding: 16px; }
.bub .head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; font: 600 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); }
.bub .head .n { margin-left: auto; padding: 4px 7px; border-radius: 6px; background: var(--paper-2); color: var(--blue); }
.bub .rows { gap: 6px; }
.bub .arow { padding: 9px 11px; border-radius: 10px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule) inset; gap: 3px 11px; }
.bub .arow .face { width: 24px; height: 24px; }
.bub .arow .nm { font-size: 14px; color: var(--ink); }
.bub .arow .nm span { color: var(--ink-3); }
.bub .arow code { color: var(--ink-3); }
.bub .arow .st { color: var(--ink-2); font-size: 12px; }
.bub .steps i, .bub .spin { background: #D5DCEC; }
.bub .steps i.on, .bub .spin::after { background: var(--blue); }
.bub .vault { margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--rule); color: var(--ink-2); font-size: 12.5px; line-height: 1.4; }
.bub .vault svg { color: #15803D; }
/* the New agent form, on paper */
.bub .frow { display: grid; grid-template-columns: 96px minmax(0, 1fr); align-items: center; gap: 10px; padding: 6px 0; }
.bub .frow > .lbl { font: 500 10.5px/1.3 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); }
.bub .val { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; font-size: 13.5px; font-weight: 500; }
.bub .val code { margin-left: auto; color: var(--ink-3); font-weight: 400; }
.bub .tools { gap: 6px; }
.bub .tool { background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule) inset; color: var(--ink-2); padding: 6px 9px 6px 7px; }
.bub .tool i { box-shadow: 0 0 0 1.5px #B4BED6 inset; background: var(--paper); }
.bub .tool.on { color: var(--ink); }
.bub .tool.on i { background: var(--blue); box-shadow: none; }
.bub .tool.no { color: var(--ink-3); }
.bub .off::before { background: #D5DCEC; box-shadow: 8px 0 0 -4px var(--paper) inset; }
.bub .sandbox { color: var(--ink-2); box-shadow: 0 0 0 1px var(--rule) inset; background: var(--paper-2); }
.bub .foot2 { display: flex; align-items: center; justify-content: space-between; gap: 14px; margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--rule); }
.bub .note { font-size: 12px; line-height: 1.4; color: var(--ink-2); }
/* the question, by the mailbox */
.bub .who { margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font: 500 12px/1 var(--mono); letter-spacing: .04em; color: var(--ink-2); }
.bub .who b { font: 600 15px/1 var(--sans); color: var(--ink); letter-spacing: 0; }
.bub .who .face { width: 22px; height: 22px; }
.bub .who .need { padding: 5px 8px; border-radius: 6px; background: #FEF3C7; color: #92400E; font-weight: 600; }
.bub .qt { margin: 12px 0 0; font-size: 18px; line-height: 1.3; font-weight: 500; letter-spacing: -.01em; }
.bub .qt small { display: block; margin-bottom: 5px; font: 500 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.bub .opts { display: grid; gap: 6px; margin-top: 12px; }
.bub .st2 { display: flex; align-items: center; gap: 9px; margin: 12px 0 0; padding-top: 11px; border-top: 1px solid var(--rule); font-size: 12.5px; color: var(--ink-2); }
.bub .st2 i { width: 8px; height: 8px; flex: none; border-radius: 50%; background: var(--amber); animation: wait 1.8s ease-out infinite; }
/* the review that is ready */
.bub .branch { display: flex; align-items: center; gap: 8px; margin: 0; font-size: 14px; }
.bub .branch svg { width: 16px; height: 16px; color: var(--blue); }
.bub .facts { display: flex; flex-wrap: wrap; gap: 6px; margin: 10px 0 0; font-size: 12px; }
.bub .facts span { padding: 5px 8px; border-radius: 7px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule) inset; color: var(--ink-2); }
.bub .facts .ok { color: #15803D; }
.bub .review { display: flex; align-items: flex-start; gap: 9px; margin: 10px 0 0; padding: 10px 11px; border-radius: 10px; background: var(--paper-2); font-size: 13px; line-height: 1.4; }
.bub .review .face { margin-top: 1px; }
.bub .go { margin-top: 12px; }
.bub .fine { margin: 8px 0 0; font-size: 11.5px; line-height: 1.4; color: var(--ink-3); }
/* a small caption for something in the world */
.bub.cap { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 2px 11px; align-items: center; max-width: min(330px, calc(100vw - 32px)); padding: 11px 13px; }
.bub.cap canvas { grid-row: span 2; width: 36px; height: 36px; border-radius: 8px; background: var(--paper-2); image-rendering: pixelated; image-rendering: crisp-edges; }
/* a caption's name and its note share a line, or the note goes under the name whole (in Portuguese the backup's left its last word alone) */
.bub.cap b { display: flex; flex-wrap: wrap; align-items: baseline; gap: 3px 7px; font-size: 14.5px; font-weight: 600; }
.bub.cap b small { font: 500 11px/1 var(--mono); color: var(--ink-3); white-space: nowrap; }
.bub.cap span { grid-column: 2; font-size: 12.5px; line-height: 1.38; color: var(--ink-2); }
.bub.cap.tick { animation: tick .5s cubic-bezier(.3, 1.6, .5, 1); }
@keyframes tick { 40% { transform: scale(1.06); box-shadow: 0 20px 40px -18px rgba(2, 6, 24, .7), 0 0 0 3px rgba(37, 99, 235, .55); } }
.bub.art { display: grid; grid-template-columns: 54px minmax(0, 1fr); gap: 12px; align-items: center; }
.bub.art .pg { height: 64px; border-radius: 6px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule) inset; padding: 8px 7px; display: flex; align-items: flex-end; gap: 4px; }
.bub.art .pg i { flex: 1; border-radius: 2px 2px 0 0; background: var(--blue); }
.bub.art .pg i:nth-child(1) { height: 92%; } .bub.art .pg i:nth-child(2) { height: 64%; } .bub.art .pg i:nth-child(3) { height: 41%; } .bub.art .pg i:nth-child(4) { height: 26%; background: #9DB8F5; }
.fly.chipf { background: var(--blue); color: var(--paper); font-size: 12px; padding: 6px 9px; }

/* ---- the last screen and the foot */
.end { position: relative; min-height: 100svh; padding: clamp(96px, 13vh, 130px) var(--pad) 0; display: flex; flex-direction: column; align-items: flex-start; }
.end .display { max-width: 11em; font-size: clamp(44px, 6.4vw, 94px); }
.end .lead { margin-top: clamp(16px, 2.4vh, 24px); }
.end .cta { margin-top: clamp(20px, 3vh, 30px); display: flex; flex-wrap: wrap; gap: 12px; }
.end .promise { margin-top: 16px; }
.end .lead { max-width: 30em; }
/* the close's words get the breath of sky the opening's have, and its sub-line a closer shadow under its
   letters: it stood on the pale sunrise */
.end .lead { color: var(--paper); text-shadow: 0 0 1px rgba(8, 30, 110, .7), 0 1px 3px rgba(8, 30, 110, .55), 0 2px 14px rgba(8, 30, 110, .5), 0 6px 34px rgba(8, 30, 110, .4); }
.end::before { content: ""; position: absolute; z-index: -1; left: -6%; top: 3%; width: min(72%, 1000px); height: 48%; background: radial-gradient(closest-side, rgb(var(--sky, 37 99 235) / .62), rgb(var(--sky, 37 99 235) / 0)); pointer-events: none; }
.foot { position: absolute; left: 0; right: 0; bottom: 0; z-index: 3; display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 16px var(--pad); background: rgba(5, 7, 13, .82); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); color: var(--app-soft); font-size: 13.5px; }
main { position: relative; }
.foot svg { height: 15px; width: auto; display: block; color: var(--paper); }
.foot svg path:last-of-type { fill: var(--blue-hi); }

/* ---- the corner button: stop and start all motion */
#motion { position: fixed; right: 18px; bottom: 18px; z-index: 30; border: 0; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; background: var(--paper); color: var(--ink); font: 500 13px/1 var(--sans); box-shadow: 0 10px 26px -10px rgba(4, 12, 40, .6); }
#motion i { width: 9px; height: 9px; border-left: 3px solid var(--ink); border-right: 3px solid var(--ink); }
#motion.paused i { border: 0; width: 0; height: 0; border-left: 9px solid var(--ink); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }

@media (max-width: 899px) {
  :root { --px: 2px; }
  .nav { gap: 10px; padding: 12px 16px; }
  .nav .logo svg { height: 15px; }
  .nav .chip { display: none; }
  .nav .right { gap: 8px; }
  .navcta, .rail { display: none; }
  .hero { padding-top: 84px; }
  .hero .display { font-size: clamp(34px, 10.4vw, 54px); margin-top: 12px; }
  .hero .lead { font-size: 16px; line-height: 1.42; }
  .hero .hour span { font-size: 13.5px; }
  .hour { font-size: 11px; letter-spacing: .08em; align-items: flex-start; }
  .hero .hour span { padding: 3px 0 2px; }
  .scene .hour span { align-self: center; }
  .btn { padding: 15px 18px; font-size: 15px; }
  .promise { font-size: 11px; gap: 5px; }
  .promise span { padding: 6px 8px; }
  .scene .stage { grid-template-columns: minmax(0, 1fr); gap: 14px; padding: 72px 16px 0; align-content: start; }
  .scene .say { gap: 9px; }
  .h2 { font-size: clamp(30px, 8.6vw, 40px); }
  .scene .lead { font-size: 15px; line-height: 1.4; }
  .rows { gap: 5px; }
  .arow { padding: 7px 9px; gap: 2px 9px; border-radius: 9px; }
  .arow .face { width: 22px; height: 22px; }
  .arow .nm { font-size: 13.5px; }
  .arow .nm span { margin-left: 6px; font-size: 10.5px; }
  .arow code { font-size: 10.5px; }
  .arow .st { font-size: 11px; gap: 5px; max-width: 108px; }
  .steps i { width: 11px; height: 4px; }
  .spin { width: 40px; height: 4px; }
  .vault { margin-top: 8px; padding-top: 9px; font-size: 11.5px; line-height: 1.35; gap: 8px; }
  .tool { font-size: 11.5px; padding: 6px 8px 6px 7px; }
  .tools { gap: 5px; }
  .go { padding: 10px 12px; font-size: 12.5px; }
  .opts { gap: 5px; margin-top: 10px; }
  .opt { padding: 8px 10px; font-size: 12.5px; }
  #s6 .show { display: none; } /* a phone is the phone: the question is the card Kepler holds (day.js) */
  .bub { font-size: 12.5px; padding: 9px 11px; border-radius: 12px; max-width: calc(100vw - 32px); }
  .bub.wide { width: calc(100vw - 32px); max-width: none; padding: 12px; }
  .bub .by { margin-bottom: 4px; font-size: 10.5px; }
  .bub .by .face { width: 17px; height: 17px; }
  .bub .arow { padding: 7px 9px; }
  .bub .frow { grid-template-columns: 1fr; gap: 4px; padding: 4px 0; }
  .bub .qt { font-size: 15.5px; margin-top: 9px; }
  .bub .opts { gap: 5px; margin-top: 9px; }
  .bub .st2 { margin-top: 9px; padding-top: 9px; font-size: 11.5px; }
  .bub.cap { max-width: none; width: calc(100vw - 32px); padding: 9px 11px; }
  .bub.cap canvas { width: 30px; height: 30px; }
  .bub.cap b { font-size: 13.5px; }
  .bub.cap span { font-size: 12px; }
  .phone { width: 204px; padding: 26px 8px 10px; border-radius: 28px; }
  .phone .notch { top: 9px; width: 62px; height: 13px; margin-left: -31px; }
  .phone .pbar { font-size: 14.5px; padding: 4px 5px 9px; }
  .pcard { padding: 10px; }
  .pcard { padding: 9px; }
  .pcard .who { font-size: 12.5px; }
  .pcard .qt { font-size: 12px; margin-top: 7px; }
  .pcard .opts { margin-top: 8px; gap: 5px; }
  .pcard .opt { font-size: 10.5px; padding: 6px 7px; gap: 6px; }
  .pcard .ans { margin-top: 8px; padding-top: 8px; }
  .pcard .ans { font-size: 11px; }
  .end { padding-top: 84px; }
  .end::before { left: -12%; top: 5%; width: 124%; height: 42%; }
  .end .cta { margin-top: 18px; gap: 10px; }
  .end .promise { margin-top: 12px; }
  .end { align-items: center; text-align: center; }
  .end .cta { flex-direction: column; align-items: center; }
  .end .promise { justify-content: center; }
  .end .display { font-size: clamp(38px, 10.8vw, 54px); }
  .foot { font-size: 12px; padding: 12px 16px 14px; }
  /* on a phone the stop button joins the header, so the corner stays with the cast */
  #motion { top: 12px; bottom: auto; right: 14px; padding: 10px; border-radius: 9px; background: rgba(5, 7, 13, .34); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); box-shadow: none; }
  #motion span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  #motion i { border-color: var(--paper); }
  #motion.paused i { border-left-color: var(--paper); border-top-color: transparent; border-bottom-color: transparent; }
  .nav { padding-right: 58px; }
}
@media (prefers-reduced-motion: reduce) {
  html.js .rise, html.awake .rise { animation: none; opacity: 1; transform: none; }
  .lit .c { opacity: 1; }
  .ptr, .tap, .arow, .rail button i, .rail button span, .bub, .held .dev { transition: none; }
  .bub.cap.tick, .bub .st2 i { animation: none; }
  .typing i, .spin::after { animation: none; }
}

/* a short phone: the opening drops its first line, so the cast stays in view under the words */
@media (max-width: 899px) and (max-height: 720px) {
  .hero .hour { display: none; }
  .end .promise { display: none; } /* the opening already said it */
}

/* the roll call on a phone: the name on the Station's chin */
.tag.plate::before { display: none; }
.tag.plate { box-shadow: 0 0 0 1px rgba(10, 16, 34, .5); }
/* the five the deck does not list: faces under the rows */
.bub .more { display: flex; gap: 8px; padding: 9px 11px 1px; }
.bub .more .face { width: 22px; height: 22px; opacity: .22; filter: saturate(.2); transition: opacity .4s ease, filter .4s ease; }
.bub .more .face.in { opacity: 1; filter: none; }
/* the opening: what stands under the headline waits until it is typed */
html.dawn .hero .lead.rise { animation-delay: 2s; }
html.dawn .hero .cta.rise { animation-delay: 2.15s; }
html.dawn .hero .promise.rise { animation-delay: 2.3s; }
@media (max-width: 899px) and (max-height: 720px) {
  /* a short phone keeps the coupon and one button, so nothing stands on the Station */
  .hero .promise span:not(:last-child) { display: none; }
  .end .cta .btn.ghost { display: none; }
  .end { padding-top: 78px; }
  .end .lead { font-size: 14px; line-height: 1.45; }
}

/* the real app inside the Station's screen: a capture that resolves out of pixels */
#cap { position: fixed; z-index: 3; margin: 0; transform-origin: 0 0; will-change: transform; border-radius: 12px; background: #0B0E18; box-shadow: 0 0 0 1px rgba(255, 255, 255, .16), 0 30px 80px -20px rgba(0, 0, 0, .7); pointer-events: none; }
#cap[hidden] { display: none; }
#cap canvas, #cap img { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 12px; display: block; }
#cap canvas { image-rendering: pixelated; }
#cap img { opacity: 0; }
#cap.sharp img { opacity: 1; }
#cap.sharp canvas { opacity: 0; }
#cap p { position: absolute; left: 0; top: 100%; margin: 10px 0 0; padding: 5px 9px; border-radius: 7px; background: var(--ink); color: rgba(255, 255, 255, .86); font: 500 11.5px/1 var(--mono); letter-spacing: .04em; white-space: nowrap; }
@media (max-width: 899px) {
  #cap, #cap canvas, #cap img { border-radius: 10px; }
  #cap p { font-size: 10.5px; margin-top: 8px; }
  /* cards that hold on to the cast are narrower than the screen */
  .held .bub { max-width: min(340px, calc(100vw - 28px)); }
}

@media (max-width: 899px) and (max-height: 720px) {
  /* a short phone: tighter cards, so whoever holds one stays in view under it */
  .bub.wide { padding: 10px 11px; }
  .bub .qt { font-size: 14.5px; margin-top: 7px; }
  .bub .opts { gap: 4px; margin-top: 7px; }
  .bub .opts .opt { padding-top: 5px; padding-bottom: 5px; }
  .bub .st2 { margin-top: 7px; padding-top: 7px; }
  .bub .frow { margin-top: 6px; }
  .bub .foot2 { margin-top: 8px; padding-top: 8px; }
  .dev .phone { width: 176px; padding: 22px 7px 8px; } /* the phone stands beside Kepler, between the words and the ground */
  .dev .pcard .qt { font-size: 11.5px; margin-top: 6px; }
  .dev .pcard .opt { padding: 5px 7px; }
}

/* inside the Station's screen the header gets a backdrop: the giant panes behind it would swallow the logo */
.nav::before { content: ""; position: absolute; inset: 0; background: rgba(8, 11, 24, .9); opacity: 0; transition: opacity .3s; z-index: -1; }
html.incap .nav::before { opacity: 1; }

/* the kicker is a word now (no hour): the pill keeps its shape */
.hour > span:only-child { padding-left: 7px; }

/* ---- a phone's cards stand on their holders, one at a time (day.js): a line an agent says on its way in,
   a note on the Station's roof, the question Kepler holds, a caption on the thing it names */
.bub.line { padding: 4px 6px; }
.bub.line .arow { padding: 5px 6px; background: none; box-shadow: none; }
.bub.note { max-width: min(312px, calc(100vw - 48px)); padding: 11px 13px; }
.bub.note .head { margin-bottom: 0; }
.bub.note .vault { margin-top: 9px; padding-top: 9px; }
.bub.cap.pin { width: auto; max-width: min(312px, calc(100vw - 48px)); }
.bub.cap.pin b small { flex-basis: 100%; }
/* the phone Kepler holds up at 07:30: the same mock as a computer shows, moved by the world like a card */
.held .dev { opacity: 0; transform: translateY(10px) scale(.94); transform-origin: 50% 100%; transition: opacity .28s ease, transform .42s cubic-bezier(.2, .9, .2, 1); }
.held.in .dev { opacity: 1; transform: none; }
/* a card leaves faster than it comes, so two never stand over each other */
.held:not(.in) .bub, .held:not(.in) .dev { transition-duration: .16s, .22s; }

/* ---- the site around the day (what the prototype did not have) ---- */
.sr { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: 12px; z-index: 40; padding: 11px 14px; border-radius: 9px; background: var(--paper); color: var(--ink); font: 600 14px/1 var(--sans); text-decoration: none; transform: translateY(-200%); }
.skip:focus { transform: none; }
/* header: the company site and sign-in, as quiet as the language switch */
.nav .nl { padding: 9px 11px; border-radius: 9px; background: rgba(5, 7, 13, .34); backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); font: 500 13px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.nav .nl:hover { background: rgba(5, 7, 13, .6); }
/* the coupon chip opens the account's Plan tab with the code (D-123) */
.promise span a { text-decoration: underline; text-decoration-color: rgba(255, 255, 255, .5); text-underline-offset: 3px; }
.promise span a:hover { text-decoration-color: currentColor; }
/* a scene's staged lines: scripts build the cards from them and assistive technology reads them;
   they are seen only on a page without scripts */
html.js .lines { position: absolute; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.shot { display: none; }
/* past the last screen the footer comes up and the page scrolls on under the header, which takes a ground of
   its own for it (day.js marks the page); the rail steps aside */
html.infoot .nav::before, html.inpage .nav::before { opacity: 1; background: var(--night); }
.rail { transition: opacity .3s; }
html.infoot .rail { opacity: 0; pointer-events: none; }

/* ---- the site's footer, under the last screen: the world rises as it comes up (day.js) */
.site-foot { position: relative; z-index: 3; padding: 44px var(--pad) 78px; background: var(--night); color: var(--app-soft); font-size: 14.5px; line-height: 1.4; }
.sf-cols { display: flex; flex-wrap: wrap; gap: 28px clamp(40px, 7vw, 100px); }
.site-foot h2 { margin: 0 0 8px; font: 500 11.5px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--app-soft); }
.site-foot ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.site-foot a { display: inline-block; padding: 5px 0; color: var(--app-text); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; text-underline-offset: 3px; }
.sf-copy { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 28px; margin: 30px 0 0; padding-top: 14px; border-top: 1px solid var(--app-line); font-size: 13px; }
/* a short computer screen: a lower footer, so the Station and the Assistant stay under the header as it comes up */
@media (min-width: 900px) and (max-height: 860px) {
  .site-foot { padding-top: 26px; padding-bottom: 62px; }
  .sf-copy { margin-top: 14px; padding-top: 10px; }
}

@media (max-width: 899px) {
  .nav .co { display: none; }
  .nav .nl { padding: 8px 9px; font-size: 12.5px; }
  /* the sign-off line leaves the last screen to the cast and opens the footer instead */
  .foot { position: static; background: var(--night); backdrop-filter: none; -webkit-backdrop-filter: none; padding: 26px 16px 0; }
  .site-foot { padding: 24px 16px 26px; }
  .sf-cols { gap: 24px 44px; }
}

/* ---- the sheets (D-126): the plans and the questions. They come in like a scene and are then read like
   a page: the words scroll, the world stays behind them and the cast stands along the foot of the screen
   (day.js). Their cards are the paper the world's cards are made of. */
.sheet { position: relative; min-height: 100svh; padding: clamp(92px, 13vh, 132px) var(--pad) clamp(176px, 25vh, 236px); display: flex; flex-direction: column; gap: clamp(18px, 3vh, 32px); will-change: opacity, transform; }
.sheet .say { position: relative; display: flex; flex-direction: column; gap: clamp(14px, 2vh, 22px); }
.sheet .say::before { content: ""; position: absolute; z-index: -1; left: -8%; top: -16%; width: min(86%, 1000px); height: 132%; background: radial-gradient(closest-side, rgb(var(--sky, 37 99 235) / .62), rgb(var(--sky, 37 99 235) / 0)); pointer-events: none; }
.sheet .say .h2 { max-width: 16em; }
.sheet .say .lead { max-width: 36em; }

.plans .cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-items: start; width: 100%; max-width: 1180px; }
.plan { position: relative; display: flex; flex-direction: column; gap: 9px; padding: 18px 18px 17px; border-radius: 16px; background: var(--paper); color: var(--ink); font-size: 14.5px; line-height: 1.42; box-shadow: 0 20px 40px -18px rgba(2, 6, 24, .7), 0 0 0 1px rgba(10, 16, 34, .06); }
.plan.pro { box-shadow: 0 0 0 2px var(--blue), 0 24px 44px -18px rgba(2, 6, 24, .78); }
.plan h3 { margin: 0; min-height: 21px; display: flex; flex-wrap: wrap; align-items: center; gap: 6px 8px; font: 600 12.5px/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--ink-2); }
.plan .badge { padding: 5px 7px; border-radius: 6px; background: var(--blue); color: var(--paper); font: 600 10.5px/1 var(--mono); letter-spacing: .06em; }
.plan .badge.beta { background: var(--amber-hi); color: #5A3A04; }
.plan .for { margin: 0; color: var(--ink-2); }
.plan .price { margin: 4px 0 0; display: flex; align-items: baseline; gap: 6px; }
.plan .price b { font: 300 46px/1 var(--sans); letter-spacing: -.04em; }
.plan .price span { font: 500 13px/1 var(--mono); color: var(--ink-3); }
.plan .price.soon b, .plan .price.text b { font-size: 28px; line-height: 46px; letter-spacing: -.03em; }
.plan .note { margin: 0; min-height: 1.42em; font-size: 13px; color: var(--ink-3); }
.plan .go { display: block; margin-top: 4px; text-align: center; text-decoration: none; }
.plan .go.ink { background: var(--ink); }
.plan .go.line { background: var(--paper); color: var(--ink); box-shadow: 0 0 0 1.5px var(--ink) inset; }
.plan .go:hover { filter: brightness(1.14); }
.plan .go.line:hover { filter: none; background: var(--paper-2); }
.plan .go:focus-visible, .plan .code a:focus-visible, .fine a:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
.plan .code { margin: 0; font-size: 12.5px; line-height: 1.4; }
.plan .code a { color: var(--blue); text-underline-offset: 3px; }
/* the billing switch, in the card it prices (as on the beta landing: the choice is the page's, kept without scripts) */
.seg { align-self: flex-start; margin: 2px 0 0; padding: 3px; border: 0; display: inline-flex; gap: 2px; border-radius: 9px; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule) inset; }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg label { cursor: pointer; display: inline-flex; align-items: center; gap: 6px; padding: 7px 10px; border-radius: 7px; font: 600 12px/1 var(--sans); color: var(--ink-2); }
.seg label i { font: 600 10px/1 var(--mono); font-style: normal; letter-spacing: .04em; color: var(--blue); }
.seg input:checked + label { background: var(--paper); color: var(--ink); box-shadow: 0 1px 3px rgba(10, 16, 34, .18), 0 0 0 1px var(--rule); }
.seg input:focus-visible + label { outline: 2px solid var(--blue); outline-offset: 2px; }
.plans [data-period] { display: grid; gap: 9px; }
.plans [data-period="month"] { display: none; }
.plans:has(#per-month:checked) [data-period="month"] { display: grid; }
.plans:has(#per-month:checked) [data-period="year"] { display: none; }
/* what a plan holds, ticked the way the tools are at 14:00; what is only planned keeps an empty box */
.ticks { list-style: none; margin: 6px 0 0; padding: 13px 0 0; border-top: 1px solid var(--rule); display: grid; gap: 9px; }
.ticks li { position: relative; padding-left: 25px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 2px; width: 15px; height: 15px; border-radius: 4px; background: var(--blue); }
.ticks li::after { content: ""; position: absolute; left: 4px; top: 6px; width: 7px; height: 4px; border-left: 2px solid var(--paper); border-bottom: 2px solid var(--paper); transform: rotate(-45deg); }
.ticks li.in { padding-left: 0; font: 600 11px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.ticks li.in::before, .ticks li.in::after, .ticks li.no::after { content: none; }
.ticks li.no { color: var(--ink-3); }
.ticks li.no::before { background: none; box-shadow: 0 0 0 1.5px #B8C0D4 inset; }
.ticks em { margin-left: 8px; padding: 3px 6px; border-radius: 5px; background: var(--paper-2); font: 600 10px/1 var(--mono); font-style: normal; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-2); }
.ticks .faces { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 7px; }
.ticks .faces .face { width: 20px; height: 20px; }
.fine { align-self: flex-start; margin: 0; padding: 8px 11px; border-radius: 8px; background: var(--ink); box-shadow: 0 0 0 1px rgba(255, 255, 255, .16) inset; font: 400 12.5px/1.4 var(--mono); color: rgba(255, 255, 255, .96); }
.fine a { color: inherit; text-underline-offset: 3px; }

.faq { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.1fr); gap: clamp(24px, 4vw, 64px); align-items: start; }
/* (a narrower column than a scene's: the title is set smaller so each sentence keeps its line, in Portuguese too) */
.faq .say .h2 { max-width: none; font-size: clamp(34px, min(3.9vw, 7vh), 58px); }
.qa { display: grid; gap: 8px; width: 100%; max-width: 760px; justify-self: end; }
.qa details { border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 16px 34px -18px rgba(2, 6, 24, .7), 0 0 0 1px rgba(10, 16, 34, .06); }
.qa summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 15px 16px; font: 600 15.5px/1.3 var(--sans); }
.qa summary::-webkit-details-marker { display: none; }
/* a plus drawn in two bars; open, it is a minus */
.qa summary::after { content: ""; flex: none; width: 12px; height: 12px; background: linear-gradient(var(--blue) 0 0) center / 12px 3px no-repeat, linear-gradient(var(--blue) 0 0) center / 3px 12px no-repeat; }
.qa details[open] summary::after { background: linear-gradient(var(--blue) 0 0) center / 12px 3px no-repeat; }
.qa summary:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 14px; }
.qa details p { margin: 0; padding: 0 16px 16px; max-width: 62em; font-size: 14.5px; line-height: 1.5; color: var(--ink-2); }

@media (max-width: 899px) {
  .sheet { padding-top: 76px; padding-bottom: 200px; }
  .plans .cards { grid-template-columns: minmax(0, 1fr); }
  .plan .price b { font-size: 40px; }
  .faq { display: flex; }
  .faq .say .h2 { max-width: none; }
  /* on a phone the questions are one sheet of paper: the cast stands behind it, and separate cards let bits of it show between them */
  .qa { justify-self: stretch; gap: 0; overflow: hidden; border-radius: 16px; background: var(--paper); box-shadow: 0 16px 34px -18px rgba(2, 6, 24, .7), 0 0 0 1px rgba(10, 16, 34, .06); }
  .qa details { border-radius: 0; box-shadow: none; background: none; }
  .qa details + details { border-top: 1px solid var(--rule); }
  .qa summary:focus-visible { border-radius: 0; outline-offset: -2px; }
  .qa summary { padding-right: 52px; } /* the plus keeps left of the feedback button, which floats over this edge */
}

/* ---- the feedback note (D-126, D-044): the site's widget (public/feedback.js, skin "day") in this page's
   paper. Its button sits beside the motion button on a computer (--mw: that button's width, day.js) and
   alone in the corner on a phone, where the motion button is in the header. */
.cxfb-day { position: fixed; right: calc(18px + var(--mw, 150px) + 8px); bottom: 18px; z-index: 31; font-family: var(--sans); }
.cxfb-day .cxfb-fab { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border: 0; border-radius: 999px; cursor: pointer; background: var(--paper); color: var(--ink); font: 500 13px/1 var(--sans); box-shadow: 0 10px 26px -10px rgba(4, 12, 40, .6); }
.cxfb-day .cxfb-fab:focus-visible, .cxfb-day button:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; }
/* a letter, in the world's pixels */
.cxfb-day .cxfb-dot { width: 14px; height: 10px; flex: none; image-rendering: pixelated; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 14 10' shape-rendering='crispEdges'%3E%3Crect width='14' height='10' fill='%230A1022'/%3E%3Crect x='1' y='1' width='12' height='8' fill='%23fff'/%3E%3Cpath fill='%232563EB' d='M1 1h2v1H1zM11 1h2v1h-2zM2 2h2v1H2zM10 2h2v1h-2zM3 3h2v1H3zM9 3h2v1H9zM4 4h2v1H4zM8 4h2v1H8zM5 5h4v1H5z'/%3E%3C/svg%3E") center / contain no-repeat; }
.cxfb-day .cxfb-ico { display: none; }
.cxfb-day .cxfb-panel { position: absolute; right: 0; bottom: calc(100% + 12px); width: min(384px, calc(100vw - 32px)); overflow: hidden; border-radius: 16px; background: var(--paper); color: var(--ink); text-align: left; box-shadow: 0 30px 70px -14px rgba(2, 6, 24, .8), 0 0 0 1px rgba(10, 16, 34, .06); transform-origin: 100% 100%; opacity: 0; transform: translateY(10px) scale(.98); pointer-events: none; transition: opacity .2s ease, transform .2s cubic-bezier(.2, .7, .2, 1); }
.cxfb-day .cxfb-panel.cxfb-open { opacity: 1; transform: none; pointer-events: auto; }
.cxfb-day .cxfb-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 10px; padding: 18px 18px 0; }
.cxfb-day .cxfb-head h3 { margin: 0; font: 600 19px/1.2 var(--sans); letter-spacing: -.01em; }
.cxfb-day .cxfb-head p { margin: 5px 0 0; font-size: 13.5px; line-height: 1.42; color: var(--ink-2); }
.cxfb-day .cxfb-x { border: 0; padding: 5px; border-radius: 7px; line-height: 0; cursor: pointer; background: transparent; color: var(--ink-3); }
.cxfb-day .cxfb-x:hover { background: var(--paper-2); color: var(--ink); }
.cxfb-day .cxfb-form { display: grid; gap: 12px; padding: 15px 18px 18px; }
.cxfb-day .cxfb-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.cxfb-day .cxfb-chip { min-height: 32px; padding: 6px 11px; border: 0; border-radius: 8px; cursor: pointer; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule) inset; color: var(--ink-2); font: 500 12.5px/1 var(--sans); }
.cxfb-day .cxfb-chip[aria-pressed="true"] { background: var(--blue); box-shadow: none; color: var(--paper); }
.cxfb-day .cxfb-lbl { margin: 0 0 5px; font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cxfb-day textarea, .cxfb-day input[type="email"] { width: 100%; padding: 10px 12px; border: 0; border-radius: 9px; outline: none; resize: vertical; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule) inset; color: var(--ink); font: 400 14.5px/1.45 var(--sans); }
.cxfb-day textarea { min-height: 88px; }
.cxfb-day textarea:focus, .cxfb-day input[type="email"]:focus { box-shadow: 0 0 0 2px var(--blue) inset; }
.cxfb-day ::placeholder { color: var(--ink-3); }
.cxfb-day .cxfb-hint { margin: 5px 0 0; font-size: 12px; line-height: 1.4; color: var(--ink-3); }
/* (the two chips of what goes with the note, the path and the language, said nothing to a visitor here) */
.cxfb-day .cxfb-form > div:has(.cxfb-ctx) { display: none; }
.cxfb-day .cxfb-ctx { display: flex; flex-wrap: wrap; gap: 6px; }
.cxfb-day .cxfb-ctx span { padding: 4px 7px; border-radius: 6px; background: var(--paper-2); font: 500 10.5px/1 var(--mono); color: var(--ink-3); }
.cxfb-day .cxfb-send { height: 44px; border: 0; border-radius: 9px; cursor: pointer; background: var(--blue); color: var(--paper); font: 600 14px/1 var(--sans); }
.cxfb-day .cxfb-send:hover { background: #1D4ED8; }
.cxfb-day .cxfb-send[disabled] { opacity: .7; cursor: progress; }
.cxfb-day .cxfb-err { margin: 0; font-size: 12.5px; line-height: 1.4; color: #B45309; }
.cxfb-day .cxfb-err:empty, .cxfb-day .cxfb-ts:empty { display: none; }
.cxfb-day .cxfb-foot { display: flex; justify-content: space-between; gap: 10px; padding: 10px 18px; border-top: 1px solid var(--rule); font: 500 10px/1 var(--mono); letter-spacing: .06em; text-transform: uppercase; color: var(--ink-3); }
.cxfb-day .cxfb-done { display: none; padding: 26px 22px 22px; text-align: center; }
.cxfb-day .cxfb-panel.cxfb-sent .cxfb-done { display: block; }
.cxfb-day .cxfb-panel.cxfb-sent .cxfb-form, .cxfb-day .cxfb-panel.cxfb-sent .cxfb-head { display: none; }
.cxfb-day .cxfb-tick { width: 44px; height: 44px; margin: 0 auto 12px; border-radius: 12px; display: grid; place-items: center; background: #15803D; color: var(--paper); }
.cxfb-day .cxfb-done h4 { margin: 0 0 6px; font: 600 17px/1.2 var(--sans); }
.cxfb-day .cxfb-done p { margin: 0 0 12px; font-size: 13.5px; color: var(--ink-2); }
.cxfb-day .cxfb-done .cxfb-ref { font: 600 10.5px/1 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-3); }
.cxfb-day .cxfb-done button { height: 38px; padding: 0 16px; border: 0; border-radius: 9px; cursor: pointer; background: var(--paper-2); box-shadow: 0 0 0 1px var(--rule) inset; color: var(--ink); font: 600 13px/1 var(--sans); }
.cxfb-day .cxfb-hp { position: absolute; left: -9999px; width: 0; height: 0; opacity: 0; }
@media (max-width: 899px) {
  .cxfb-day { right: 12px; bottom: 12px; }
  .cxfb-day .cxfb-fab { width: 44px; height: 44px; padding: 0; justify-content: center; }
  .cxfb-day .cxfb-dot { width: 18px; height: 13px; }
  .cxfb-day .cxfb-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  /* the footer's last row keeps clear of the button */
  .site-foot { padding-bottom: 72px; }
}
@media (prefers-reduced-motion: reduce) { .cxfb-day .cxfb-panel { transition: none; } }

/* ---- without scripts: the same words as a plain page, each scene's lines under it */
html:not(.js) body { background: linear-gradient(#16225C, var(--night) 70vh) var(--night); }
html:not(.js) #sky, html:not(.js) #grain, html:not(.js) #cap, html:not(.js) #held, html:not(.js) .rail, html:not(.js) #motion, html:not(.js) #s6 .show { display: none; }
html:not(.js) .nav { position: absolute; }
html:not(.js) .hero, html:not(.js) .end { min-height: 0; padding-bottom: 56px; }
html:not(.js) .sheet { min-height: 0; padding-top: 56px; padding-bottom: 24px; }
html:not(.js) .faces { display: none; } /* the faces are drawn by the world's script */
html:not(.js) .scene { height: auto !important; }
html:not(.js) .scene .stage { position: static; height: auto; display: block; padding-bottom: 0; }
html:not(.js) .lines { list-style: none; display: grid; gap: 8px; max-width: 46em; margin: 20px var(--pad) 0; padding: 0; }
html:not(.js) .lines li { padding: 11px 14px; border-radius: 12px; background: var(--paper); color: var(--ink); font-size: 14.5px; line-height: 1.42; }
html:not(.js) .shot { display: block; width: calc(100% - 2 * var(--pad)); max-width: 900px; height: auto; margin: 20px var(--pad) 0; border-radius: 12px; }
html:not(.js) .foot { position: static; margin-top: 40px; }
