/* calmdev, the public landing. Direction "A calm first screen" (15 Nov.; it replaces "The sentence is the layout"): the
   headline is plain text over the promise and the form, the loop is the next section; one action, the waitlist. Tokens, composition and
   their reasons: site/public/direction.md. Dark by default; ?theme=light (assets/theme.js sets html[data-theme]).
   Every animation and transition lives in the one block « Motion » at the end, inside
   prefers-reduced-motion: no-preference, and moves transform and opacity only (test/site-public.test.mjs).
   The identity is the app's (docs/design-system/README.md, 16 Nov.): every colour, size, space, radius and curve is a
   token of ../tokens.css, the copy scripts/tokens.mjs writes from public/app.css; the build ships that file beside
   this one (scripts/site-public.mjs). One face, the system's own, nothing fetched. No value of its own below but the
   page's two measures. */
@import "tokens.css";
:root {
  --band: calc(var(--space-16) * 2.5);     /* 160: between two sections (96 on a phone) */
  --band-in: calc(var(--space-12) * 2);    /* 96: inside a field, above a page's title */
  --m: clamp(20px, 3.4vw, 48px);           /* the page margin, the same on both sides */
  --gutter: clamp(16px, 2vw, 32px);        /* the grid gutter */
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; background: var(--ground); scroll-padding-top: var(--space-6); }
body { margin: 0; background: var(--ground); color: var(--text); font: 400 var(--fs-reading)/1.5 var(--font); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: clip; }
img, video, canvas, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3 { margin: 0; font-weight: 600; text-wrap: balance; }
h1, h2 { font-weight: 500; letter-spacing: -0.02em; line-height: 1.1; }
h2 { font-size: var(--fs-display); }
h3 { font-size: var(--fs-lead); line-height: 1.4; }
.ico { display: inline-block; flex: none; width: var(--icon); height: var(--icon); vertical-align: -3px; } /* an icon of the shared set (assets/icons.svg), in the ink of its label */
p, figure, ol, ul { margin: 0; }
.wrap { width: 100%; max-width: 1600px; margin-inline: auto; padding-inline: var(--m); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 2px; }
::selection { background: var(--accent); color: var(--accent-ink); }

/* A text link: its line is a filled bar that grows from the left on hover and focus. */
.top nav a, .foot-links a, .wl-note a, .leave-page a, .legal-page a { position: relative; text-decoration: none; }
.top nav a::after, .foot-links a::after, .wl-note a::after, .leave-page a::after, .legal-page a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -3px; height: 2px; background: currentColor; transform: scaleX(0); transform-origin: 0 50%; }
.wl-note a::after, .legal-page a::after, .leave-page a::after { transform: scaleX(1); opacity: 0.45; }
.top nav a:hover::after, .top nav a:focus-visible::after, .foot-links a:hover::after, .foot-links a:focus-visible::after { transform: scaleX(1); }
.wl-note a:hover::after, .legal-page a:hover::after, .leave-page a:hover::after { opacity: 1; }

/* The one button: flat, the one radius, 56px. Its hover is a lighter plate under the label. */
.go { position: relative; display: inline-flex; align-items: center; justify-content: center; min-height: var(--touch); padding: 0 var(--space-5); border: 0; border-radius: var(--radius-control); overflow: hidden;
  background: var(--primary); color: var(--primary-ink); font: 500 var(--fs-reading)/1 var(--font); text-decoration: none; white-space: nowrap; cursor: pointer; }
.go:hover { opacity: 0.9; }
.go:active { transform: translateY(1px); }
.go:focus-visible { outline-offset: 3px; }

/* Top: the wordmark left, three plain links right, no bar. */
.top { display: flex; justify-content: space-between; align-items: center; padding-top: var(--space-6); padding-bottom: var(--space-4); }
.word { display: block; padding: 6px 0; }
.word svg { height: 22px; width: auto; }
.b-ink { stroke: var(--text); } .b-acc { stroke: var(--accent); } .b-acc-f { fill: var(--accent); } .b-ink-f { fill: var(--text); }
.top nav { display: flex; gap: var(--space-10); }
.top nav a { font: 500 var(--fs-body)/1 var(--font); padding: 10px 0; }

/* The hero (calm, 15 Nov.): the sentence, the promise and the form in one centred column, air all round, nothing
   else on the first screen and nothing that moves there once it has risen. The loop is the next section. */
.hero { display: grid; justify-items: center; padding-top: var(--band-in); text-align: center; }
.hero h1 { font-size: var(--fs-hero); line-height: 1.02; }
.h-l { display: block; }
.h-i { display: block; white-space: nowrap; }
.lede { margin-top: var(--space-6); font-size: var(--fs-lead); line-height: 1.4; max-width: 46ch; text-wrap: pretty; }
.hero .wl { margin-top: var(--space-10); width: min(100%, 560px); text-align: left; }
.hero .wl-note { text-align: center; }
/* What calmdev gives back, a section of its own after the loop (the first screen holds the sentence, the promise, the
   form and its note, nothing else: decision of 15 Nov.): three plain columns across the page, a name and one line
   each. No card, no icon: the names carry it. */
.back { padding-top: var(--band); }
.gives { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--space-10) var(--gutter); margin: var(--space-16) 0 0; }
.gives dt { font-size: var(--fs-lead); font-weight: 600; line-height: 1.4; }
.gives dd { margin: var(--space-2) 0 0; max-width: 38ch; }

/* The waitlist form, the page's one action: a field and a button on one plate; in the same place, the thanks. Under
   it one line for what the service answers (announced), then what the address is for. */
.wl { display: grid; gap: 10px; min-width: 0; }
.wl-slot { display: grid; }
.wl-bar, .wl-ok { grid-area: 1 / 1; min-width: 0; }
.wl-bar { position: relative; display: flex; gap: 6px; padding: 6px; border-radius: var(--radius-card); background: var(--raised); }
.wl-bar::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 0; height: 2px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.wl-bar:focus-within::after { transform: scaleX(1); }
.wl-in { flex: 1; min-width: 0; height: var(--touch); padding: 0 var(--space-3); border: 0; border-radius: var(--radius-control); background: transparent; color: var(--text);
  font: 400 var(--fs-reading)/1 var(--font); -webkit-appearance: none; appearance: none; }
.wl-in::placeholder { color: var(--muted); opacity: 0.8; }
.wl-in:focus-visible { outline: 2px solid var(--accent); outline-offset: 0; }
.wl-in:-webkit-autofill { -webkit-text-fill-color: var(--text); box-shadow: 0 0 0 100px var(--raised) inset; } /* taste-skill-ignore: the browser's autofill tint, repainted in the field's own tone */
.wl-go { flex: none; min-width: 11.2em; }
.wl-go-t, .wl-dots { position: relative; }
.wl-dots { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; gap: 6px; opacity: 0; }
.wl-dots i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.wl-ok { display: flex; align-items: center; gap: 14px; padding: 6px 18px; min-height: 56px; border-radius: var(--radius-card); background: var(--raised); line-height: 1.4; }
.wl:not([data-state="ok"]) .wl-ok:not(:target) { display: none; } /* a state, not an entrance: absent until it is true */
.wl-ok:focus { outline: none; }
.wl-check { flex: none; width: 28px; height: 28px; }
.wl-check circle { fill: var(--positive); } .wl-check path { stroke: var(--raised); }
.wl-hp { position: absolute; left: -10000px; width: 0; height: 0; overflow: hidden; } /* a robot fills it, a person never sees it */
.wl-say, .wl-back { min-height: 1.5em; font-size: var(--fs-body); line-height: 1.5; }
.wl-say:not(:empty)::before, .wl-back::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 10px; border-radius: 50%; background: var(--negative); }
.wl-say.sr { position: static; width: auto; height: auto; } /* after a success: still announced, unseen, its line kept */
.wl-slot { order: 0; } .wl-note { order: 1; } .wl-say, .wl-back { order: 2; } /* the answer's line is kept under the note, so saying it moves nothing */
.wl-back { display: none; }
.wl-note { font-size: var(--fs-body); line-height: 1.5; color: var(--muted); }
.wl-note a { color: var(--text); white-space: nowrap; }
/* states (assets/site.js sets data-state on every form of the page) */
.wl[data-state="busy"] .wl-go-t { opacity: 0; }
.wl[data-state="busy"] .wl-dots { opacity: 1; }
.wl[data-state="busy"] .wl-go { cursor: progress; }
.wl[data-state="ok"] .wl-bar { opacity: 0; visibility: hidden; }
/* without script the service sends the visitor back with #joined or #join-<error>: the address shows the state */
.wl-slot:has(.wl-ok:target) .wl-bar { opacity: 0; visibility: hidden; }
.wl-back:target { display: block; }

/* The loop, its own section under the first screen: a heading, the stage (the loop of the real app on a plate one
   tone up), and under it the caption of the moment, one at a time. */
.show { padding-top: var(--band); }
.show h2 { max-width: 16ch; }
.stage { margin-top: var(--space-16); }
.stage-plate { padding: clamp(6px, 0.9vw, 14px); border-radius: var(--radius-sheet); background: var(--surface); transform-origin: 50% 0; }
.stage-view { position: relative; overflow: hidden; border-radius: var(--radius-card); }

/* The app, redrawn in the page: every picture of calmdev here is markup, not a screenshot, so it stays sharp at any
   size and can move. One small kit (.ui): the app's own dark tones whatever the page's theme, its labels, its two
   kinds of button. These are pictures: nothing in them takes the focus nor a click. */
.ui { --u-bg: var(--ground); --u-panel: var(--surface); --u-up: var(--raised); --u-ink: var(--text); --u-mute: var(--muted); --u-teal: var(--accent); --u-wait: var(--pill-wait-ink); --u-bad: var(--pill-negative-ink);
  background: var(--u-bg); color: var(--u-ink); font: 400 var(--fs-body)/20px var(--font); letter-spacing: 0; text-align: left; cursor: default; }
.ui p, .ui pre { margin: 0; }
.ui code { font: 400 var(--fs-small)/18px var(--mono); } /* taste-skill-ignore: commands, branches and diffs are code */
.ui kbd { font: 500 var(--fs-meta)/1 var(--font); }
.ui .ico { width: 12px; height: 12px; vertical-align: -1px; } /* 12 in a pill */
.ui-btn .ico { width: var(--icon); height: var(--icon); }
.ui-title { font-weight: 600; font-size: var(--fs-section); line-height: 22px; }
.ui-title span { margin-left: 0.7em; color: var(--u-mute); font-weight: 400; font-size: var(--fs-small); }
.ui-btn { display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2); min-height: var(--control-height); padding: 0 var(--space-3); border: 1px solid var(--control); border-radius: var(--radius-control); background: var(--surface); color: var(--u-ink); font-weight: 500; white-space: nowrap; }
.ui-btn-on { background: var(--primary); color: var(--primary-ink); border-color: transparent; }
.ui-key { display: inline-grid; place-items: center; min-width: 20px; height: 20px; border-radius: var(--radius-chip); background: var(--raised); color: var(--muted); }
.ui-btn-on .ui-key { background: var(--surface); color: var(--text); }
/* a pill: the app's own (22 high, 13/500, the status pairs), a status led by its icon at 12 */
.ui-chip, .nd-you { display: inline-flex; align-items: center; gap: var(--space-1); height: 22px; padding: 0 var(--space-2); border-radius: var(--radius-pill); font-size: var(--fs-small); font-weight: 500; white-space: nowrap; }
.ui-chip { background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); }
.ui-bad { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.ui-warn, .nd-you { background: var(--pill-wait-bg); color: var(--pill-wait-ink); }
.ui-ok { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.nd-id { display: inline-grid; place-items: center; min-width: 36px; height: 28px; padding: 0 var(--space-1); border-radius: var(--radius-control); background: var(--u-up); color: var(--u-ink); font: 500 var(--fs-small)/1 var(--mono); } /* taste-skill-ignore: a session's letters, in mono as in the app */
/* a session's card: its letters, its name, what it does now, its progress along the bottom edge */
.nd { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 0.3em 0.75em; align-items: center; padding: 0.95em 1em 1.15em; border-radius: var(--radius-card); background: var(--u-panel); overflow: hidden; min-width: 0; }
.nd-t { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-say { grid-column: 2; color: var(--u-mute); font-size: var(--fs-small); min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nd-you { grid-column: 2; justify-self: start; }
.nd-bar { position: absolute; left: 0; right: 0; bottom: 0; height: 3px; background: var(--u-up); }
.nd-bar i { display: block; height: 100%; background: var(--u-teal); transform-origin: 0 50%; transform: scaleX(0.45); }
.nd-ring { position: absolute; inset: 0; border: 1.5px solid var(--u-wait); border-radius: inherit; opacity: 0; pointer-events: none; }
.nd-todo { opacity: 0.6; }
/* a session at work wears the app's teal edge */
.fl .nd:not(.nd-todo)::before, .nd-run::before { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--u-teal); border-radius: inherit; opacity: 0.5; pointer-events: none; }
/* texts that take turns in one place: all stacked, one shown (the loop's beat; b0 at rest) */
.sw { display: grid; }
.sw > * { grid-area: 1 / 1; opacity: 0; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.stage:not([data-beat]) .sw > .b0, .stage[data-beat="0"] .sw > .b0, .stage[data-beat="1"] .sw > .b1, .stage[data-beat="2"] .sw > .b2, .stage[data-beat="3"] .sw > .b3, .stage[data-beat="4"] .sw > .b4 { opacity: 1; }
/* the Flow of the stage: a plan, three sessions side by side, one more after them; over it, the request at the wall */
.fl { display: grid; gap: 0.8em; padding: clamp(16px, 2.2vw, 34px); }
.fl-head { display: flex; align-items: baseline; gap: var(--space-4); font-size: var(--fs-section); line-height: 22px; font-weight: 600; }
.fl-name { white-space: nowrap; }
.fl-count { min-width: 0; font-size: var(--fs-small); font-weight: 500; color: var(--u-teal); }
.fl-count .ico { margin-right: var(--space-1); }
.fl-lane { margin-top: 0.3em; color: var(--u-mute); font-size: var(--fs-small); }
.fl-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0.8em; }
.fl .nd { grid-template-rows: auto auto 1.7em; }
.fl .nd-you, .fl-veil, .rq { opacity: 0; }
.fl .nd-api .nd-bar i { transform: scaleX(0.35); } .fl .nd-ui .nd-bar i { transform: scaleX(0.55); } .fl .nd-inv .nd-bar i { transform: scaleX(0.5); }
.stage[data-beat="1"] .nd-api .nd-bar i, .stage[data-beat="2"] .nd-api .nd-bar i, .stage[data-beat="3"] .nd-api .nd-bar i { transform: scaleX(0.6); }
.stage[data-beat="4"] .nd-api .nd-bar i { transform: scaleX(0.7); }
.stage[data-beat="1"] .nd-ui .nd-bar i { transform: scaleX(0.75); }
.stage[data-beat="2"] .nd-ui .nd-bar i, .stage[data-beat="3"] .nd-ui .nd-bar i, .stage[data-beat="4"] .nd-ui .nd-bar i { transform: none; }
.stage[data-beat="1"] .nd-inv .nd-bar i { transform: scaleX(0.65); } .stage[data-beat="2"] .nd-inv .nd-bar i { transform: scaleX(0.8); }
.stage[data-beat="3"] .nd-inv .nd-bar i { transform: scaleX(0.9); } .stage[data-beat="4"] .nd-inv .nd-bar i { transform: none; }
.stage[data-beat="2"] .nd-ui :is(.nd-you, .nd-ring), .stage[data-beat="3"] .nd-ui :is(.nd-you, .nd-ring), .stage[data-beat="4"] .nd-ui :is(.nd-you, .nd-ring), .stage[data-beat="3"] .nd-inv :is(.nd-you, .nd-ring) { opacity: 1; }
.fl-veil { position: absolute; inset: 0; background: var(--veil); pointer-events: none; }
.stage[data-beat="3"] .fl-veil { opacity: 1; }
.rq { position: absolute; left: 50%; top: 50%; display: grid; gap: 0.65em; width: min(35em, 92%); padding: var(--card-pad); border-radius: var(--radius-card); background: var(--u-panel); box-shadow: var(--shadow-float); transform: translate(-50%, -44%) scale(0.96); } /* taste-skill-ignore: the request is a dialog, the one thing that floats */
.stage[data-beat="3"] .rq { opacity: 1; transform: translate(-50%, -50%); }
.rq-head { color: var(--u-mute); font-size: var(--fs-small); }
.rq-head b { margin-right: 0.5em; color: var(--u-ink); }
.rq-head span { margin-left: 0.7em; }
.rq-row { display: grid; grid-template-columns: 4.2em minmax(0, 1fr); gap: 1em; }
.rq-row > span:first-child { color: var(--u-mute); font-size: var(--fs-small); }
.rq-cmd { padding: 0.8em 1em; border-radius: var(--radius-control); background: var(--u-bg); overflow: hidden; white-space: nowrap; }
.rq-acts { position: relative; display: grid; grid-template-columns: 1fr 1fr; gap: 0.6em; margin-top: 0.2em; }
.rq-acts .ui-btn { min-height: 36px; }
.rq-cur { position: absolute; left: 24%; top: 52%; width: 1.7em; height: 1.7em; fill: var(--text); stroke: var(--ground); opacity: 0; transform: translate(15em, 5em); }
.stage[data-beat="3"] .rq-cur { opacity: 1; transform: none; }
/* the three walls, as three lines of For you */
.w3, .pl, .fw, .fy, .rv { display: grid; gap: 0.65em; padding: clamp(14px, 1.8vw, 28px); border-radius: var(--radius-card); }
.w3-row, .fy-li, .fw-li { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.5em 1em; align-items: center; padding: 1em 1.1em; border-radius: var(--radius-card); background: var(--u-panel); overflow: hidden; }
.w3-row code { grid-column: 1 / -1; color: var(--u-mute); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.w3-row p { color: var(--u-mute); }
.w3-row p b, .fy-li p b, .fw-li p b { color: var(--u-ink); font-weight: 600; }
.w3-row p b { margin-right: 0.3em; }
.w3-acts { display: flex; gap: 0.5em; }
/* the plan: what you said, then the sessions it became */
.pl { gap: 1em; }
.pl-you { justify-self: end; max-width: 27em; padding: 0.8em 1.1em; border-radius: var(--radius-card); background: var(--u-up); }
.pl-you span { display: block; color: var(--u-mute); font-size: var(--fs-small); }
.pl-card { display: grid; gap: 0.5em; padding: 1.2em; border-radius: var(--radius-card); background: var(--u-panel); }
.pl-li { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 5em; gap: 0.8em; align-items: center; padding: 0.55em 0.7em; border-radius: var(--radius-control); background: var(--u-bg); }
.pl-b { height: 4px; border-radius: 2px; overflow: hidden; background: var(--u-up); }
.pl-b i { display: block; height: 100%; background: var(--u-mute); transform-origin: 0 50%; transform: scaleX(0.7); }
.pl-li:nth-of-type(4) .pl-b i { transform: scaleX(0.5); } .pl-li:nth-of-type(5) .pl-b i { transform: scaleX(0.6); } .pl-li:nth-of-type(7) .pl-b i { transform: scaleX(0.25); }
.pl-foot { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.8em 1em; margin-top: 0.6em; color: var(--u-mute); font-size: var(--fs-small); }
/* the Flow as a list, For you, the Review */
.fw-li, .fy-li { grid-template-columns: auto minmax(0, 1fr) auto; gap: 0.9em; }
.fw-li p b, .fy-li p b { display: block; }
.fw-li code, .fw-proof, .fy-li p { color: var(--u-mute); font-size: var(--fs-small); }
.fw-li.nd-wait { box-shadow: none; }
.nd-wait::after { content: ""; position: absolute; inset: 0; border: 1.5px solid var(--u-wait); border-radius: inherit; pointer-events: none; }
.nd-wait .nd-bar i { background: var(--u-wait); transform: none; }
.fy-li .ui-btn { min-width: 6.6em; }
.rv { grid-template-columns: minmax(0, 15em) minmax(0, 1fr); gap: 1em; }
.rv-side { display: grid; gap: 0.35em; align-content: start; }
.rv-f { display: flex; justify-content: space-between; align-items: center; gap: 0.6em; padding: 0.55em 0.7em; border-radius: var(--radius-control); }
.rv-f:first-of-type { margin-top: 0.5em; }
.rv-on { background: var(--u-panel); }
.rv-sign { margin-top: 0.7em; padding: 0.85em 0.95em; border-radius: var(--radius-card); background: var(--pill-wait-bg); font-size: var(--fs-small); }
.rv-sign b { display: block; color: var(--u-wait); }
.rv-main { display: grid; gap: 0.8em; min-width: 0; align-content: start; }
.rv-diff { padding: 0.9em 0; border-radius: var(--radius-card); background: var(--u-panel); overflow: hidden; }
.rv-diff code { display: grid; }
.rv-diff span { padding: 0.2em 1.1em; white-space: pre; }
.rv-c { color: var(--u-mute); } .rv-a { background: var(--pill-positive-bg); color: var(--pill-positive-ink); } .rv-d { background: var(--pill-negative-bg); color: var(--pill-negative-ink); }
.rv-gate { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 0.8em; }
.beats { list-style: none; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: var(--space-4) var(--gutter); margin-top: var(--space-6); padding: 0; }
.beat { position: relative; padding-top: 18px; }
.beat-bar { position: absolute; top: 0; left: 0; right: 0; height: 4px; border-radius: 2px; overflow: hidden; background: var(--raised); }
.beat-bar i { display: block; height: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.beat-t { display: block; max-width: 30ch; text-wrap: pretty; }
/* while the loop plays (loop.js sets data-live): no bars, only the sentence of the moment, at the lede's size */
.stage[data-live] .beats { grid-template-columns: minmax(0, 1fr); min-height: calc(var(--fs-lead) * 1.3); }
.stage[data-live] .beat { padding-top: 0; }
.stage[data-live] .beat:not(.on), .stage[data-live] .beat-bar { display: none; }
.stage[data-live] .beat-t { max-width: none; font-size: var(--fs-lead); line-height: 1.4; }

/* The load: what the developer carries, and what calmdev takes off. The words at the left; at the right a ledger,
   each row the weight in the muted tone and its answer in the ink. No card, no icon. */
.load { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: var(--band); align-items: start; }
.load-say { grid-column: 1 / 6; display: grid; gap: var(--space-6); }
.load-say p { max-width: 40ch; }
.ledger { grid-column: 6 / -1; display: grid; gap: var(--space-10); margin: 0; }
.ledger > div { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); column-gap: var(--gutter); align-items: baseline; }
.ledger dt { color: var(--muted); max-width: 24ch; }
.ledger dd { margin: 0; max-width: 40ch; }
.ledger dd b { display: block; margin-bottom: var(--space-1); font-size: var(--fs-lead); font-weight: 600; line-height: 1.4; }

/* The walls, on the page's own ground. They open on the worry, a statement across eight columns with its answer
   beside it; then the three walls at the left, each behind its bar, and For you at the right. */
.walls { margin-top: var(--band); }
.walls-why { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-6); align-items: end; }
.statement { grid-column: 1 / 9; font-size: var(--fs-kpi); line-height: 1.25; letter-spacing: -0.01em; font-weight: 500; max-width: 34ch; text-wrap: pretty; }
.walls-why .aside { grid-column: 9 / -1; max-width: 36ch; }
.walls-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); padding-top: var(--band-in); align-items: center; }
.walls-say { grid-column: 1 / 7; display: grid; gap: var(--space-6); }
.walls-say > p { max-width: 46ch; }
.wall-list { list-style: none; margin: var(--space-4) 0; padding: 0; display: grid; gap: var(--space-6); }
.wall-list li { position: relative; padding-left: 26px; }
.wall-list li::before { content: ""; position: absolute; left: 0; top: 4px; bottom: 4px; width: 6px; border-radius: 3px; background: var(--accent); transform-origin: 50% 0; }
.wall-list p { margin-top: 6px; max-width: 44ch; }
.walls .note { color: var(--muted); max-width: 46ch; }
.walls-shot { grid-column: 7 / -1; }
.shot figcaption { margin-top: var(--space-4); font-size: var(--fs-body); color: var(--muted); }

/* A day: the bar of the day across the page, each segment as wide as its share of the day; under it the screen and
   the facts of the chosen segment. Without script the four follow one another and the segments are links to them. */
.day { padding-top: var(--band); }
.day-say { margin-top: var(--space-6); max-width: 52ch; }
.bar { display: flex; gap: 6px; margin-top: var(--space-16); }
/* a segment: its block of colour, as wide as its share of the day, and under it the sentence of that moment, so the
   four read at rest; the long one is the lightest thing on the page */
.seg { display: flex; flex-direction: column; gap: 14px; min-width: 12%; color: var(--text); text-decoration: none; }
.seg-box { position: relative; display: flex; flex-direction: column; justify-content: space-between; height: clamp(132px, 21vh, 200px); padding: 18px 20px; border-radius: var(--radius-card); overflow: hidden; isolation: isolate; transform-origin: 50% 100%; }
.seg-k { position: relative; font-size: var(--fs-lead); font-weight: 600; line-height: 1.2; }
.seg-w { position: relative; font-size: var(--fs-body); font-weight: 600; }
.seg-c { position: relative; padding: 12px 12px 0 2px; font-weight: 500; line-height: 1.4; text-wrap: pretty; }
.seg-c::before { content: ""; position: absolute; left: 2px; top: 0; width: 32px; height: 4px; border-radius: 2px; background: var(--accent); transform: scaleX(0); transform-origin: 0 50%; }
.seg-fill { position: absolute; inset: 0; z-index: -1; background: currentColor; opacity: 0.14; transform: scaleX(0); transform-origin: 0 50%; }
.seg:focus-visible { outline-offset: 5px; }
.bar .seg-plan { flex: 2 1 0; } .bar .seg-flow { flex: 6.5 1 0; } .bar .seg-you { flex: 1 1 0; } .bar .seg-sign { flex: 3 1 0; }
/* the four moments wear the app's own status pairs: to do, at work, waits for you, finished */
.seg-plan .seg-box, .stg-k.seg-plan { background: var(--pill-neutral-bg); color: var(--pill-neutral-ink); }
.seg-flow .seg-box, .stg-k.seg-flow { background: var(--pill-running-bg); color: var(--pill-running-ink); }
.seg-you .seg-box, .stg-k.seg-you { background: var(--pill-wait-bg); color: var(--pill-wait-ink); }
.seg-sign .seg-box, .stg-k.seg-sign { background: var(--pill-positive-bg); color: var(--pill-positive-ink); }
.stg { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); align-items: start; padding-top: var(--space-16); }
.stg-say { grid-column: 1 / 5; display: grid; gap: var(--space-4); padding-top: var(--space-2); }
.stg-say p { max-width: 38ch; }
.stg-k { display: none; }
.stg .shot { grid-column: 5 / -1; }
/* with script, on a wide screen: one segment chosen at a time, the four screens in the same place */
.tabs .stages { display: grid; }
.tabs .stg { grid-area: 1 / 1; padding-top: var(--space-10); }
.tabs .stg:not(.on) { opacity: 0; visibility: hidden; pointer-events: none; }
/* the four screens share one frame: each fills the height of the tallest, its content set in the middle */
.tabs .stg { align-items: stretch; }
.tabs .stg .shot { display: grid; grid-template-rows: minmax(0, 1fr) auto; }
.tabs .stg .shot > .ui { align-content: center; }
.tabs .stg-say { align-content: start; }
.tabs .seg { cursor: pointer; }
.tabs .seg.on .seg-c::before { transform: none; }

/* The close and the footer, one plate a step above the ground: the invitation and the form again, then the small
   print. No field of colour: the accent stays on the button. */
.end { margin-top: var(--band); background: var(--surface); }
.end-in { display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); row-gap: var(--space-16); padding-top: var(--band-in); padding-bottom: var(--space-10); align-items: end; }
.end-say { grid-column: 1 / 7; display: grid; gap: var(--space-6); }
.end-say p { font-size: var(--fs-lead); line-height: 1.4; max-width: 40ch; }
.end .wl { grid-column: 7 / -1; }
.foot { grid-column: 1 / -1; display: grid; grid-template-columns: 1fr auto 1fr; gap: var(--space-6); align-items: baseline; padding-top: var(--space-16); font-size: var(--fs-body); }
.foot-links { display: flex; gap: var(--space-6); font-weight: 500; }
.foot-links a { display: inline-block; padding: 6px 0; }
.legal { justify-self: end; text-align: right; }

/* Legal notice, and the one page the waitlist service draws (its leave link). */
.legal-page { padding-top: var(--band-in); padding-bottom: var(--band-in); display: grid; grid-template-columns: repeat(12, minmax(0, 1fr)); column-gap: var(--gutter); }
.legal-page h1 { grid-column: 1 / 7; font-size: var(--fs-display); }
.legal-page .lede { grid-column: 1 / 6; margin-top: var(--space-6); font-size: var(--fs-reading); line-height: 1.5; }
.legal-page dl { grid-column: 7 / -1; grid-row: 1 / span 2; margin: 0; }
.legal-page dt { font-weight: 600; margin-top: var(--space-6); scroll-margin-top: var(--space-6); }
.legal-page dt:first-child { margin-top: 0; }
.legal-page dd { margin: 6px 0 0; max-width: 62ch; }
.legal-page dd + dd { margin-top: var(--space-4); }
.legal-page dt:target { color: var(--accent); }
.legal-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: var(--space-4) var(--space-6); padding-bottom: var(--space-10); font-size: var(--fs-body); color: var(--muted); }
.legal-foot .foot-links a { color: var(--text); }
.word-t { font: 600 var(--fs-lead)/1 var(--font); text-decoration: none; }
.leave-page { min-height: 100svh; display: grid; align-content: center; justify-items: start; gap: var(--space-6); padding-block: var(--band-in); }
.leave-page h1 { font-size: var(--fs-display); }
.leave-page p { max-width: 44ch; }

/* Tablet: the grids fold to one column, each section keeps its order. */
@media (max-width: 960px) {
  .seg { min-width: 15%; }
  .seg-box { padding: 16px 12px; }
  .walls-why, .walls-in, .stg, .end-in, .load { grid-template-columns: minmax(0, 1fr); }
  .load-say, .ledger { grid-column: 1; }
  .ledger { margin-top: var(--space-16); }
  .statement, .walls-why .aside, .walls-say, .walls-shot, .stg-say, .stg .shot, .end-say, .end .wl { grid-column: 1; }
  .walls-shot { margin-top: var(--space-16); }
  .stg { row-gap: var(--space-6); }
  .beats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .end-in { row-gap: var(--space-10); }
  .legal-page { grid-template-columns: minmax(0, 1fr); }
  .legal-page h1, .legal-page .lede, .legal-page dl { grid-column: 1; grid-row: auto; }
  .legal-page dl { margin-top: var(--space-16); }
}
/* Phone: its own composition. The window drops between the two halves of the sentence; the bar of the day stands
   up, each segment above its own screen; 104 between sections. */
@media (max-width: 760px) {
  :root { --band: calc(var(--space-12) * 2); --band-in: var(--space-16); }
  h2, .legal-page h1, .leave-page h1 { font-size: var(--fs-kpi); }
  .top nav { gap: var(--space-6); }
  .top nav a:not(:last-child) { display: none; }
  .hero { padding-top: var(--space-10); justify-items: start; text-align: left; } /* on a phone the column sits at the left, the sentence at the poster size */
  .hero h1 { font-size: var(--fs-kpi); line-height: 1.1; }
  .hero .wl { margin-top: var(--space-10); }
  .hero .wl-note { text-align: left; }
  .gives { grid-template-columns: minmax(0, 1fr); gap: var(--space-6); margin-top: var(--space-10); }
  .gives dd { max-width: none; }
  .fl-row { grid-template-columns: minmax(0, 1fr); gap: 0.6em; }
  .fl .nd { grid-template-rows: auto auto; padding-bottom: 1em; }
  .fl .nd-you { position: absolute; right: 0.9em; top: 0.9em; }
  .fl .nd-todo { display: none; } .fl-row + .fl-lane { display: none; }
  .rv { grid-template-columns: minmax(0, 1fr); }
  .pl-li { grid-template-columns: auto minmax(0, 1fr) auto; } .pl-b { display: none; }
  .w3-row, .fy-li { grid-template-columns: minmax(0, 1fr); } .fy-li .nd-id { justify-self: start; } .fy-li .ui-btn { justify-self: start; }
  .fw-li { grid-template-columns: auto minmax(0, 1fr); } .fw-proof { grid-column: 2; }
  .lede { margin-top: var(--space-4); font-size: var(--fs-reading); line-height: 1.5; }
  .stage[data-live] .beats { min-height: 3.1em; }
  .stage[data-live] .beat-t { font-size: var(--fs-reading); line-height: 1.5; }
  .wl-bar { flex-direction: column; }
  .wl-in { flex: none; }
  .wl-go { width: 100%; }
  .wl-ok { min-height: 130px; }
  .stage { margin-top: var(--space-10); }
  .beats { grid-template-columns: minmax(0, 1fr); gap: var(--space-4); }
  .beat-t { max-width: none; }
  .bar { display: none; }
  .ledger > div { grid-template-columns: minmax(0, 1fr); row-gap: var(--space-2); }
  .ledger dt { max-width: none; }
  .stages { margin-top: var(--space-10); display: grid; gap: var(--space-16); }
  .stg { padding-top: 0; }
  .stg-k { display: flex; align-items: flex-start; padding: 16px 18px; border-radius: var(--radius-card); font-size: var(--fs-lead); font-weight: 600; line-height: 1.2; }
  .stg-k.seg-plan { min-height: 84px; } .stg-k.seg-flow { min-height: 188px; } .stg-k.seg-you { min-height: 72px; } .stg-k.seg-sign { min-height: 116px; }
  .foot { grid-template-columns: minmax(0, 1fr); gap: var(--space-2); padding-top: var(--space-10); }
  .foot-links { flex-wrap: wrap; }
  .legal { justify-self: start; text-align: left; }
}

/* Motion. Everything that moves is here, and only when the visitor has not asked for less; the preview copies made
   for screenshots (html[data-still]) stay at rest too. Only transform and opacity change; nothing moves the layout.
   The first screen's entrance needs no script (assets/theme.js only marks html.js before the first paint); the parts
   of the later sections hide only once assets/site.js runs (html.live), so a script that fails hides nothing. */
@media (prefers-reduced-motion: no-preference) {
  html:not([data-still]) { scroll-behavior: smooth; }
  /* controls */
  .go, .wl-go-t, .wl-dots { transition: opacity var(--t-hover) var(--ease-out), transform var(--t-press) var(--ease-out); }
  .top nav a::after, .foot-links a::after, .wl-bar::after { transition: transform 420ms var(--ease-out); }
  .wl-note a::after, .legal-page a::after, .leave-page a::after { transition: opacity 200ms var(--ease-out); }
  .wl[data-state="busy"] .wl-dots i { animation: dot 900ms var(--ease-out) infinite; }
  .wl[data-state="busy"] .wl-dots i:nth-child(2) { animation-delay: 120ms; }
  .wl[data-state="busy"] .wl-dots i:nth-child(3) { animation-delay: 240ms; }
  /* the form's states: the field leaves upward, the thanks rises into its place, its mark lands last */
  .wl-bar { transition: opacity 320ms var(--ease-out), transform 520ms var(--ease-out), visibility 0s; }
  .wl[data-state="ok"] .wl-bar { transform: translateY(-14px); transition: opacity 320ms var(--ease-out), transform 520ms var(--ease-out), visibility 0s 320ms; }
  .wl[data-state="ok"] .wl-ok { animation: rise 700ms var(--ease-out) 120ms both; }
  .wl[data-state="ok"] .wl-check { animation: pop 700ms var(--ease-out) 320ms both; }
  .wl[data-state="error"] .wl-bar { animation: nudge 420ms var(--ease-out); }
  .wl-say:not(:empty) { animation: rise 420ms var(--ease-out) both; }
  /* the first screen: the sentence, the promise and the form rise once, in turn; nothing else moves there */
  .js:not([data-still]) .top { animation: fade 900ms var(--ease-out) both; }
  .js:not([data-still]) .hero h1 { animation: rise 700ms var(--ease-out) both; }
  .js:not([data-still]) .hero .lede { animation: rise 700ms var(--ease-out) 80ms both; }
  .js:not([data-still]) .hero .wl { animation: rise 700ms var(--ease-out) 160ms both; }
  /* the loop, staged (loop.js sets data-beat and .on while it plays): the caption of the moment is lit; in the Flow
     the texts take turns, the progress bars advance, a finished session is ringed; at the wall the veil falls, the
     request rises, the pointer comes to Allow and presses it */
  .stage[data-live] .beat.on .beat-t { animation: fade 500ms var(--ease-out) both; }
  .sw > *, .fl .nd-you, .nd-ring, .fl-veil { transition: opacity 520ms var(--ease-out); }
  .fl .nd-bar i { transition: transform 1600ms var(--ease-out); }
  .rq { transition: opacity 360ms var(--ease-out), transform 700ms var(--ease-out); }
  .stage[data-beat="3"] .rq { transition: opacity 420ms var(--ease-out) 180ms, transform 800ms var(--ease-out) 180ms; }
  .rq-cur { transition: opacity 200ms var(--ease-out); }
  .stage[data-beat="3"] .rq-cur { transition: transform 1100ms var(--ease-out) 900ms, opacity 300ms var(--ease-out) 900ms; }
  .rq-acts .ui-btn { transition: transform 140ms var(--ease-out); }
  .stage[data-press] .rq-acts .ui-btn-on { transform: scale(0.94); }
  /* what runs, runs: a session's bar breathes, the plan's dot pulses */
  .fw .nd-run .nd-bar i { animation: work 5200ms var(--ease-out) infinite alternate; }
  .fw .nd-run:nth-of-type(2) .nd-bar i { animation-delay: -2400ms; }
  .fl-count i { animation: pulse 1400ms var(--ease-out) infinite alternate; }
  /* each part of a later section enters in turn (site.js adds .in), each wall's bar closes behind it */
  .live:not([data-still]) .r { opacity: 0; transform: translateY(26px); transition: opacity 900ms var(--ease-out), transform 900ms var(--ease-out); }
  .live:not([data-still]) .r.in { opacity: 1; transform: none; }
  .live:not([data-still]) .wall-list li::before { transform: scaleY(0); transition: transform 900ms var(--ease-out) 200ms; }
  .live:not([data-still]) .wall-list li.in::before { transform: none; }
  /* the bar of the day: the chosen segment stands up, the screens cross-fade in place */
  .seg-box, .seg-c::before { transition: transform 520ms var(--ease-out); }
  .tabs .seg:hover .seg-box { transform: translateY(-4px); }
  .tabs .seg.on .seg-box { transform: translateY(-10px); }
  .tabs .stg { transition: opacity 520ms var(--ease-out), transform 700ms var(--ease-out), visibility 0s; }
  .tabs .stg:not(.on) { transform: translateY(16px); transition: opacity 260ms var(--ease-out), transform 0s 260ms, visibility 0s 260ms; }
  /* the screen of the chosen segment builds itself, part by part: the plan's sessions, the Flow's lines, the diff */
  .tabs .stg.on :is(.ui, .pl-card, .rv-side, .rv-main, .rv-diff code) > * { animation: rise 640ms var(--ease-out) both; }
  .tabs .stg.on :is(.ui, .pl-card, .rv-side, .rv-main, .rv-diff code) > :nth-child(2) { animation-delay: 70ms; }
  .tabs .stg.on :is(.ui, .pl-card, .rv-side, .rv-main, .rv-diff code) > :nth-child(3) { animation-delay: 140ms; }
  .tabs .stg.on :is(.ui, .pl-card, .rv-side, .rv-main, .rv-diff code) > :nth-child(4) { animation-delay: 210ms; }
  .tabs .stg.on :is(.ui, .pl-card, .rv-side, .rv-main, .rv-diff code) > :nth-child(5) { animation-delay: 280ms; }
  .tabs .stg.on :is(.ui, .pl-card, .rv-side, .rv-main, .rv-diff code) > :nth-child(6) { animation-delay: 350ms; }
  .tabs .stg.on :is(.ui, .pl-card, .rv-side, .rv-main, .rv-diff code) > :nth-child(n + 7) { animation-delay: 420ms; }
  .tabs .stg.on .pl-foot .ui-btn, .tabs .stg.on .rv-gate .ui-btn, .live .w3-row.in .ui-bad { animation: pop 700ms var(--ease-out) 700ms both; }
}
@keyframes fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes pop { from { opacity: 0; transform: scale(0.4) rotate(-20deg); } to { opacity: 1; transform: none; } }
@keyframes nudge { 0%, 100% { transform: none; } 30% { transform: translateX(-7px); } 65% { transform: translateX(5px); } }
@keyframes work { from { transform: scaleX(0.3); } to { transform: scaleX(0.86); } }
@keyframes pulse { from { opacity: 0.35; } to { opacity: 1; } }
@keyframes dot { 0%, 100% { opacity: 0.35; transform: none; } 40% { opacity: 1; transform: translateY(-4px); } }
