/* nuworq.com: one page, no build, no third-party anything. Light and dark follow the system.
   It wears the app's tokens (#17): tokens.css is the app's own, vendored by `npm run tokens`, and every color, size,
   space, radius, shadow and rule here comes from it. Its color map says what each color means; it means the same here.
   The few values the app has no need of are a page's display sizes, below. Nothing moves and nothing is decorative:
   no smooth scrolling, animation, gradients, glows or blur (test/tokens.test.js). */
:root {
  --max: 980px;
  /* Display: a page's headline, its section heads and its large figures. The app's largest size is 20px (--fs-6). */
  --fs-d1: clamp(32px, 7vw, 52px);
  --fs-d2: clamp(24px, 4.5vw, 32px);
  --fs-d3: clamp(var(--fs-6), 3vw, 24px);
  /* The logo's tile, as in the app's rail and the favicon: the mark in --brand-ink on --brand. */
  --logo: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 32 32'%3E%3Crect width='32' height='32' rx='8' fill='%23d4e034'/%3E%3Cg fill='none' stroke='%2314161a' stroke-width='3.6' stroke-linecap='round'%3E%3Ccircle cx='15' cy='14.5' r='5.5'/%3E%3Cpath d='M20.5 9.5V23.5q0 2 2 2h1'/%3E%3C/g%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--ink); font: var(--fw-4) var(--fs-5)/1.5 var(--font); -webkit-text-size-adjust: 100%; -webkit-font-smoothing: antialiased; }
@media (prefers-color-scheme: dark) { body { -moz-osx-font-smoothing: grayscale; } }
h1, h2, h3 { font-weight: 600; }
p { margin: var(--sp-4) 0; }
/* One link style, the app's (#190): ink with a quiet underline that turns ink on hover. */
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: var(--sp-h); }
a:hover { text-decoration-color: var(--ink); }
a:active { color: var(--muted); text-decoration-color: var(--muted); }
:where(a, button, summary, label, input):focus-visible { outline: 2px solid var(--agents); outline-offset: 2px; }
.top, main, footer { max-width: var(--max); margin: 0 auto; padding: 0 var(--sp-5); }
.top { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4); padding-top: var(--sp-4); padding-bottom: var(--sp-4); flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: var(--sp-2); font-weight: 650; font-size: var(--fs-5); letter-spacing: -0.01em; color: var(--ink); text-decoration: none; }
.brand::before { content: ""; width: 24px; height: 24px; background: var(--logo); }
nav { display: flex; gap: var(--sp-4); flex-wrap: wrap; font-size: var(--fs-4); }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav .signin { color: var(--ink); }
.signin { font-size: var(--fs-4); font-weight: 600; text-decoration: none; }

/* Depth (#11): the landing page reads at 30s, 5m or 30m, like the app. Layers add up, so switching keeps your place:
   .from5m and .from30m show from that depth on, and .only30s/.only5m give way to fuller copy deeper down.
   Without :has(), the switch hides and the whole page shows. */
body:has(#d30s:checked) :is(.from5m, .from30m, .only5m),
body:has(#d5m:checked) :is(.from30m, .only30s),
body:has(#d30m:checked) :is(.only30s, .only5m) { display: none; }
@supports not selector(:has(a)) { .depth, .reading, .only30s, .only5m { display: none; } }
.sticky { position: sticky; top: 0; z-index: 2; max-width: none; flex-wrap: nowrap; padding: var(--sp-3) max(var(--sp-5), calc((100% - var(--max)) / 2 + var(--sp-5))); background: var(--bg); border-bottom: var(--rule) solid var(--line); }
/* The switch is the app's segmented control (.seg): on --sunken, the chosen depth raised on --panel. */
.depth { position: relative; display: flex; margin-left: auto; padding: var(--sp-h); gap: var(--sp-h); background: var(--sunken); border-radius: var(--r-m); }
/* Its name sits beside it, outside the control, as the app's .seg-label does. */
.depth > span { position: absolute; right: 100%; align-self: center; margin-right: var(--sp-2); font-size: var(--fs-1); font-weight: var(--fw-1); color: var(--muted); }
.depth input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.depth label { padding: var(--sp-1) var(--sp-3); border-radius: var(--r-m); font-size: var(--fs-2); line-height: var(--lh-2); color: var(--muted); cursor: pointer; white-space: nowrap; }
.depth label:hover { color: var(--ink); background: color-mix(in srgb, var(--panel) 50%, transparent); }
.depth label:active { color: var(--ink); background: var(--line); }
.depth input:checked + label { background: var(--panel); color: var(--ink); box-shadow: var(--e-1); font-weight: 550; cursor: default; }
.depth input:focus-visible + label { outline: 2px solid var(--agents); outline-offset: 2px; }
@media (max-width: 420px) { .depth > span { display: none; } }
.reading { margin: var(--sp-7) 0 0; padding: var(--sp-3) var(--sp-4); max-width: 40em; background: var(--panel); border: var(--rule) solid var(--line); border-left: var(--accent) solid var(--line-strong); border-radius: var(--r-m); color: var(--muted); font-size: var(--fs-4); }
.reading b { color: var(--ink); font-weight: 600; }
.reading label { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: var(--sp-h); cursor: pointer; }
.reading label:hover { text-decoration-color: var(--ink); }
body:has(#d30s:checked) .reading [for=d30s], body:has(#d5m:checked) .reading [for=d5m], body:has(#d30m:checked) .reading [for=d30m] { text-decoration: none; cursor: default; }
body:has(#d30s:checked) main > section { padding: var(--sp-10) 0; }
.steps .more { margin: var(--sp-2) 0 0; color: var(--muted); font-size: var(--fs-4); }
.sub { margin: var(--sp-10) 0 var(--sp-2); font-size: var(--fs-6); }
code { font-family: var(--mono); font-size: 0.88em; background: var(--sunken); border-radius: var(--r-s); padding: var(--sp-h) var(--sp-1); }

/* Bars: drawn as SVG, since the policy allows no inline styles. A bar's rects are colored by meaning. */
.bar { display: block; width: 100%; height: 6px; border-radius: var(--r-s); background: var(--line); overflow: hidden; }
.bar rect { fill: var(--muted); }
.bar .ok { fill: var(--ok); } .bar .agents { fill: var(--agents); } .bar .queue { fill: var(--queue); } .bar .you { fill: var(--you); } .bar .bad { fill: var(--bad); }
.big { margin: 0; max-width: 30em; font-size: var(--fs-d3); line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.levels { list-style: none; padding: 0; margin: var(--sp-7) 0; display: grid; gap: var(--sp-4); max-width: 46em; }
.levels li { display: grid; grid-template-columns: 3.2em 1fr; gap: var(--sp-2) var(--sp-3); align-items: center; }
.levels b { grid-row: span 2; align-self: start; font-size: var(--fs-6); line-height: var(--lh-6); font-variant-numeric: tabular-nums; }
.levels span { color: var(--muted); font-size: var(--fs-4); }

/* A sample of the app, the morning after a night of agent work, drawn as the app draws it: its pulse in the
   person's tint, and a card for each thing that needs you, with the --you stripe. */
.app { margin: var(--sp-7) 0 var(--sp-4); padding: var(--sp-4); max-width: 40em; background: var(--bg); border: var(--rule) solid var(--line-strong); border-radius: var(--r-m); font-size: var(--fs-4); line-height: var(--lh-4); }
.app p { margin: 0; }
.app-pulse { background: var(--you-tint); border: var(--rule) solid var(--you-line); border-radius: var(--r-m); padding: var(--sp-4) var(--sp-5); box-shadow: var(--e-1); }
.app-kicker { display: flex; align-items: center; gap: var(--sp-2); color: var(--you); font-size: var(--fs-2); font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; }
.app-kind { color: var(--you); font-size: var(--fs-1); font-weight: 650; letter-spacing: 0.05em; text-transform: uppercase; }
.app-kicker::before { content: ""; width: 8px; height: 8px; border-radius: var(--r-full); background: currentColor; }
.app .app-line { margin: var(--sp-2) 0 var(--sp-3); font-size: var(--fs-6); font-weight: 550; line-height: 1.35; letter-spacing: -0.015em; }
.app-card { margin-top: var(--sp-3); padding: var(--sp-4); background: var(--panel); border: var(--rule) solid var(--line); border-left: var(--accent) solid var(--you); border-radius: var(--r-m); box-shadow: var(--e-1); }
.app .app-q { margin: var(--sp-1) 0 var(--sp-3); font-size: var(--fs-5); font-weight: 600; line-height: var(--lh-5); }
.app .app-why { margin: calc(-1 * var(--sp-1)) 0 var(--sp-3); color: var(--muted); }
.app-btns { display: flex; flex-wrap: wrap; gap: var(--sp-2); }
.app-btns span { padding: var(--sp-2) var(--sp-3); border: var(--rule) solid var(--line-strong); border-radius: var(--r-m); background: var(--panel); font-size: var(--fs-3); font-weight: 520; }
.app-btns span:first-child { background: var(--ink); border-color: var(--ink); color: var(--bg); }
.app figcaption { margin-top: var(--sp-3); color: var(--muted); font-size: var(--fs-3); }

/* 30 minutes: the lifecycle swapped, one item's story, our own record */
.swap { list-style: none; padding: 0; margin: var(--sp-4) 0 0; max-width: 52em; }
.swap li { display: grid; grid-template-columns: minmax(9em, 14em) 1fr; gap: var(--sp-h) var(--sp-5); padding: var(--sp-3) 0; border-top: var(--rule) solid var(--line); }
.swap s { grid-row: span 2; color: var(--muted); }
.swap i { grid-column: 2; color: var(--muted); font-size: var(--fs-4); }
@media (max-width: 600px) { .swap li { grid-template-columns: 1fr; } .swap s { grid-row: auto; } .swap i { grid-column: auto; } }
.story { list-style: none; padding: 0; margin: var(--sp-6) 0 var(--sp-2); max-width: 46em; }
.story li { display: grid; grid-template-columns: 3em 1fr; gap: var(--sp-3); }
.story time { color: var(--muted); font-size: var(--fs-3); line-height: 1.85; font-variant-numeric: tabular-nums; text-align: right; }
.story li > span { position: relative; padding: 0 0 var(--sp-4) var(--sp-5); border-left: var(--rule) solid var(--line-strong); }
.story li:last-child > span { border-left-color: transparent; }
.story li > span::before { content: ""; position: absolute; left: -5.5px; top: 6px; width: 10px; height: 10px; border-radius: var(--r-full); background: var(--agents); outline: var(--accent) solid var(--bg); }
.story .mine > span::before { background: var(--you); }
.story .back > span::before { background: var(--bad); }
.story .ok > span::before { background: var(--ok); }
.who { font-weight: 650; }
/* The provider's mark beside an agent's name: 7px, as in the app. */
.who::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: var(--sp-1); vertical-align: 2px; border-radius: var(--sp-h); background: var(--queue); }
.who.you { color: var(--you); } .who.you::before { background: var(--you); }
.p-anthropic::before { background: var(--p-anthropic); } .p-openai::before { background: var(--p-openai); } .p-open::before { background: var(--p-open); }
.tally { max-width: 40em; font-size: var(--fs-5); }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 40%), 1fr)); gap: var(--sp-3); margin: var(--sp-6) 0 0; }
.stats > div { padding: var(--sp-3) var(--sp-4); background: var(--panel); border: var(--rule) solid var(--line); border-radius: var(--r-m); box-shadow: var(--e-1); }
.stats b { display: block; font-size: var(--fs-d3); font-weight: 600; line-height: 1.2; letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: var(--fs-3); }
.stats .bar { margin-top: var(--sp-3); }

section { padding: var(--sp-12) 0; border-top: var(--rule) solid var(--line); }
.hero { border-top: 0; padding: var(--sp-15) 0 var(--sp-12); }
/* A section's label, in the app's caps. */
.eyebrow { margin: 0 0 var(--sp-2); color: var(--muted); font-weight: 650; font-size: var(--fs-3); letter-spacing: 0.06em; text-transform: uppercase; }
h1 { margin: 0; font-size: var(--fs-d1); line-height: 1.08; letter-spacing: -0.03em; max-width: 18ch; }
h2 { margin: 0 0 var(--sp-5); font-size: var(--fs-d2); line-height: 1.2; letter-spacing: -0.02em; }
h3 { margin: 0 0 var(--sp-2); font-size: var(--fs-5); line-height: var(--lh-5); }
.lead { font-size: clamp(var(--fs-5), 2.6vw, var(--fs-6)); color: var(--muted); max-width: 40em; margin: var(--sp-5) 0 0; }
/* nuworq built itself: 429 items landed, so the stripe is --ok's, "finished: landed". */
.built { max-width: 40em; margin: var(--sp-5) 0 0; padding: var(--sp-h) 0 var(--sp-h) var(--sp-4); border-left: var(--accent) solid var(--ok); }
.built .asof { color: var(--muted); font-size: var(--fs-3); white-space: nowrap; }
.cta { margin: var(--sp-7) 0 var(--sp-3); display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-4) var(--sp-6); }
.cta .guide { font-weight: 600; }
/* The one main action on a page: the app's primary button (.btn.primary), in ink, a size up for a page. Hover firms
   it up, pressed sinks it, disabled greys it out; nothing eases in. */
.button { display: inline-block; background: var(--ink); color: var(--bg); border: var(--rule) solid var(--ink); text-decoration: none; font-size: var(--fs-5); font-weight: 600; line-height: var(--lh-5); padding: var(--sp-3) var(--sp-5); border-radius: var(--r-m); white-space: nowrap; }
.button:hover { background: color-mix(in srgb, var(--ink) 84%, var(--panel)); }
.button:active { background: color-mix(in srgb, var(--ink) 70%, var(--panel)); color: var(--bg); transform: translateY(1px); }
button.button { font-family: inherit; cursor: pointer; }
button.button:disabled { opacity: 0.45; cursor: progress; transform: none; background: var(--ink); }
.fine { color: var(--muted); font-size: var(--fs-4); margin: var(--sp-2) 0; }

/* #15: the app at work, right under the pitch. A desktop and a phone side by side; on a phone the phone comes first. */
.shots { display: grid; grid-template-columns: 1fr 200px; gap: var(--sp-3) var(--sp-5); align-items: start; border-top: 0; padding-top: 0; }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border: var(--rule) solid var(--line); border-radius: var(--r-m); box-shadow: var(--e-1); }
.shot figcaption { margin-top: var(--sp-2); color: var(--muted); font-size: var(--fs-3); }
@media (max-width: 640px) {
  .shots { grid-template-columns: 1fr; }
  .shot.phone { order: -1; max-width: 240px; }
}
/* A label beside a heading or a line, as the app's .tag: small caps on --sunken. */
.tag { display: inline-block; vertical-align: middle; font-size: var(--fs-1); font-weight: 600; line-height: var(--lh-1); color: var(--muted); background: var(--sunken); border-radius: var(--r-s); padding: var(--sp-h) var(--sp-2); letter-spacing: 0.04em; text-transform: uppercase; }

.steps { padding-left: 1.3em; margin: 0 0 var(--sp-4); }
.steps li { margin: 0 0 var(--sp-3); max-width: 46em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: var(--sp-4); }
/* Cards, as the app's: --panel, one rule, --r-m, raised by --e-1. */
.grid > div, .plan { background: var(--panel); border: var(--rule) solid var(--line); border-radius: var(--r-m); padding: var(--sp-5); box-shadow: var(--e-1); }
.grid p { margin: 0; color: var(--muted); font-size: var(--fs-4); }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: var(--sp-4); margin: var(--sp-5) 0 var(--sp-2); }
.plan h3 { margin: 0; }
.price { font-size: var(--fs-d2); font-weight: 600; margin: var(--sp-1) 0 var(--sp-3); letter-spacing: -0.02em; font-variant-numeric: tabular-nums; }
.price span { font-size: var(--fs-4); font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: var(--fs-4); }
.plan li { margin: 0 0 var(--sp-1); }

details { border-bottom: var(--rule) solid var(--line); padding: var(--sp-3) 0; }
summary { cursor: pointer; font-weight: 600; }
summary:hover { color: var(--muted); }
details p { color: var(--muted); margin: var(--sp-2) 0 0; max-width: 46em; }
/* The early-access form: the app's fields, labels over them. */
.ask { display: grid; gap: var(--sp-4); max-width: 34em; margin: var(--sp-7) 0 var(--sp-2); }
.ask label { display: grid; gap: var(--sp-2); font-weight: 600; font-size: var(--fs-4); }
.ask .optional { color: var(--muted); font-weight: 400; }
.ask input, .ask textarea { font: var(--fw-4) var(--fs-5)/var(--lh-4) var(--font); color: var(--ink); background: var(--panel); border: var(--rule) solid var(--line-strong); border-radius: var(--r-m); padding: var(--sp-2) var(--sp-3); width: 100%; }
.ask input::placeholder, .ask textarea::placeholder { color: var(--faint); }
.ask input:hover:not(:focus), .ask textarea:hover:not(:focus) { border-color: var(--faint); }
.ask input:focus, .ask textarea:focus { outline: 2px solid color-mix(in srgb, var(--ink) 30%, transparent); outline-offset: 0; border-color: var(--ink); }
.ask textarea { resize: vertical; min-height: 6em; }
.ask .cta { margin: var(--sp-1) 0 0; }
/* Turnstile's slot and the status line take no room until they hold something, so the gaps stay even. */
.ask #check:empty, .ask #said:empty { display: none; }
/* What went wrong, as the app says it: in --bad on its tint, with the hint beside it. */
.said-error { color: var(--bad); background: var(--bad-tint); border-radius: var(--r-m); padding: var(--sp-2) var(--sp-3); }

.closing { text-align: center; }
.closing .cta { justify-content: center; }
.closing h2 { margin-bottom: 0; }
/* The footer's rule spans the column, as the sections' do, not the page's side padding. */
footer { display: flex; flex-wrap: wrap; justify-content: space-between; max-width: none; margin: 0 max(var(--sp-5), calc((100% - var(--max)) / 2 + var(--sp-5))); padding: var(--sp-6) 0 var(--sp-10); border-top: var(--rule) solid var(--line); color: var(--muted); font-size: var(--fs-3); }
footer .links { display: flex; gap: var(--sp-4); flex-wrap: wrap; }
footer a { color: var(--muted); }
footer a:hover { color: var(--ink); }
footer .maker { flex: 0 0 100%; margin: var(--sp-4) 0 0; padding-right: max(0px, calc(100% - 46em)); }

/* Terms and privacy */
.legal { padding-top: var(--sp-8); padding-bottom: var(--sp-12); }
.legal h1 { max-width: none; font-size: var(--fs-d2); }
.legal h2 { margin: var(--sp-8) 0 var(--sp-2); font-size: var(--fs-6); }
.legal p, .legal ul { max-width: 46em; }
.legal li { margin: 0 0 var(--sp-2); }
/* Not found: one line and the way back. */
.missing { padding-top: var(--sp-15); padding-bottom: var(--sp-15); }

/* How work moves (/workflow, #25): the cast, a static flow map, then six parts in layers */
.workflow section > p, .workflow section > ul, .workflow section > ol { max-width: 46em; }
.workflow ul li, .workflow .steps li { margin: 0 0 var(--sp-3); }
.cast { list-style: none; padding: 0; margin: var(--sp-6) 0 0; font-size: clamp(var(--fs-5), 2.4vw, var(--fs-6)); }
.cast li { margin: 0 0 var(--sp-2); }
.flow { margin: var(--sp-7) 0 0; padding: var(--sp-4); max-width: 40em; background: var(--panel); border: var(--rule) solid var(--line); border-radius: var(--r-m); box-shadow: var(--e-1); }
.flow-map { display: grid; justify-items: start; gap: var(--sp-1); }
.lane { display: flex; flex-wrap: wrap; align-items: center; gap: var(--sp-2); }
.lane-name { min-width: var(--sp-15); color: var(--muted); font-size: var(--fs-1); font-weight: 650; letter-spacing: 0.06em; text-transform: uppercase; }
.node { padding: var(--sp-1) var(--sp-3); border: var(--rule) solid var(--line); border-left: var(--accent) solid var(--agents); border-radius: var(--r-m); background: var(--bg); font-size: var(--fs-4); font-weight: 600; }
.node.you { border-left-color: var(--you); }
.node.main { border-left-color: var(--ok); }
.flow .arrow { margin: 0; color: var(--muted); font-size: var(--fs-4); }
/* Under the lanes' first node: the lane name's width and the gap after it. */
.flow .down { padding-left: calc(var(--sp-15) + var(--sp-2)); }
.lane.beside { margin-top: var(--sp-3); color: var(--muted); font-size: var(--fs-4); }
@media (max-width: 420px) { .lane { gap: var(--sp-2) var(--sp-1); } .node { padding: var(--sp-1) var(--sp-2); } }
.flow figcaption { margin-top: var(--sp-4); padding-top: var(--sp-3); border-top: var(--rule) solid var(--line); color: var(--muted); font-size: var(--fs-4); }
.levels-text { list-style: none; padding: 0; }
