/* nuworq.com: one page, no build, no third-party anything. Light and dark follow the system. */
:root {
  color-scheme: light dark;
  /* Hi-vis (nuworq #318): graphite ink, cool grey paper, a citron accent. Citron is 1.45:1 on white, so in the light
     theme it is only ever a fill with ink on it; links, the eyebrow and focus are ink (--link, --focus). */
  --bg: #f2f3f5; --panel: #ffffff; --text: #14161a; --muted: #585d67; --line: #dcdfe4;
  --accent: #d4e034; --accent-text: #14161a; --link: #14161a; --focus: #14161a; --tag: #e6e8ec; --tint: #eef3b3; --tint-text: #14161a; --error: #b3261e;
  --max: 980px;
  /* The app's state colors (its color map), meaning the same here: the person's move, agents on it, waiting for an
     agent, finished, failed. Provider marks sit beside an agent's name. */
  --you: #b84b0c; --agents: #3b5bdb; --queue: #8b9099; --ok: #2a7549; --bad: #c01048;
  --p-anthropic: #bb6655; --p-openai: #669999; --p-open: #9933bb;
}
@media (prefers-color-scheme: dark) {
  /* On graphite, citron reads as text: links, the eyebrow and focus. */
  :root { --bg: #14161a; --panel: #1e2126; --text: #eceef1; --muted: #a0a5ae; --line: #2e3238; --accent: #d4e034; --accent-text: #14161a; --link: #d4e034; --focus: #d4e034; --tag: #262a30; --tint: #31351a; --tint-text: #d4e034; --error: #f2b8b5;
    --you: #f08a4b; --agents: #8ea2ff; --queue: #7d838c; --ok: #5fbf85; --bad: #ff6b93; --p-anthropic: #d98877; --p-openai: #7fbcbc; --p-open: #c27ee0; }
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 17px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; -webkit-text-size-adjust: 100%; }
a { color: var(--link); }
.top, main, footer { max-width: var(--max); margin: 0 auto; padding: 0 20px; }
.top { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-top: 18px; padding-bottom: 18px; flex-wrap: wrap; }
.brand { font-weight: 750; font-size: 20px; letter-spacing: -0.02em; color: var(--text); text-decoration: none; }
nav { display: flex; gap: 18px; flex-wrap: wrap; font-size: 15px; }
nav a { color: var(--muted); text-decoration: none; }
nav a:hover, nav .signin { color: var(--link); }

/* 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: 10px max(20px, calc((100% - var(--max)) / 2 + 20px)); background: color-mix(in srgb, var(--bg) 90%, transparent); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.sticky .signin { font-size: 15px; font-weight: 600; text-decoration: none; }
.depth { position: relative; display: flex; align-items: center; margin-left: auto; padding: 3px; background: var(--tag); border-radius: 10px; font-size: 14px; }
.depth > span { color: var(--muted); padding: 0 8px 0 7px; }
.depth input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; }
.depth label { padding: 5px 11px; border-radius: 8px; font-weight: 650; color: var(--muted); cursor: pointer; }
.depth input:checked + label { background: var(--panel); color: var(--text); box-shadow: 0 1px 3px rgb(0 0 0 / 0.15); }
.depth input:focus-visible + label { outline: 3px solid var(--focus); outline-offset: 1px; }
@media (max-width: 420px) { .depth > span { display: none; } }
.reading { margin: 28px 0 0; padding: 12px 16px; max-width: 40em; background: var(--panel); border-left: 3px solid var(--accent); border-radius: 0 10px 10px 0; color: var(--muted); font-size: 16px; }
.reading b { color: var(--text); }
.reading label { color: var(--link); text-decoration: underline; cursor: pointer; }
body:has(#d30s:checked) .reading [for=d30s], body:has(#d5m:checked) .reading [for=d5m], body:has(#d30m:checked) .reading [for=d30m] { color: var(--text); text-decoration: none; cursor: default; }
body:has(#d30s:checked) main > section { padding: 36px 0; }
.steps .more { margin: 6px 0 0; color: var(--muted); font-size: 16px; }
.sub { margin: 36px 0 6px; font-size: 20px; }
code { font: 0.88em ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--tag); border-radius: 5px; padding: 1px 5px; }

/* 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: 3px; background: var(--line); overflow: hidden; }
.bar rect { fill: var(--accent); }
.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); } .bar .outside { fill: var(--text); }
.big { margin: 0; max-width: 30em; font-size: clamp(20px, 3.2vw, 26px); line-height: 1.35; font-weight: 600; letter-spacing: -0.01em; }
.levels { list-style: none; padding: 0; margin: 28px 0; display: grid; gap: 16px; max-width: 46em; }
.levels li { display: grid; grid-template-columns: 3.2em 1fr; gap: 6px 14px; align-items: center; }
.levels b { grid-row: span 2; align-self: start; font-size: 20px; line-height: 1.2; }
.levels span { color: var(--muted); font-size: 16px; }

/* A sample of the app (light only, like the app), the morning after a night of agent work. */
.app { color-scheme: light; --ok: #2a7549; --agents: #3b5bdb; --you: #b84b0c; --line: #e4e1d9; margin: 28px 0 16px; padding: 14px; max-width: 40em; background: #f6f5f1; color: #1c1c1a; border: 1px solid var(--line); border-radius: 14px; font-size: 15px; line-height: 1.45; }
.app p { margin: 0; }
.app-pulse { background: #fdf0e6; border: 1px solid #f2c9a8; border-radius: 10px; padding: 14px; }
.app-kicker, .app-kind { color: var(--you); font-size: 12px; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.app-kicker::before { content: ""; display: inline-block; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; background: currentColor; }
.app .app-line { margin: 6px 0 10px; font-size: 18px; font-weight: 650; line-height: 1.3; }
.app-card { margin-top: 10px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-left: 3px solid var(--you); border-radius: 10px; }
.app .app-q { margin: 4px 0 10px; font-weight: 600; }
.app .app-why { margin: -4px 0 10px; color: #64625d; }
.app-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.app-btns span { padding: 5px 11px; border: 1px solid #d3d0c6; border-radius: 8px; background: #fff; font-size: 14px; font-weight: 600; }
.app-btns span:first-child { background: #1c1c1a; border-color: #1c1c1a; color: #fff; }
.app figcaption { margin-top: 10px; color: #64625d; font-size: 13px; }

/* 30 minutes: the lifecycle swapped, one item's story, our own record */
.swap { list-style: none; padding: 0; margin: 14px 0 0; max-width: 52em; }
.swap li { display: grid; grid-template-columns: minmax(9em, 14em) 1fr; gap: 2px 18px; padding: 12px 0; border-top: 1px solid var(--line); }
.swap s { grid-row: span 2; color: var(--muted); }
.swap i { grid-column: 2; color: var(--muted); font-size: 15px; }
@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: 24px 0 8px; max-width: 46em; }
.story li { display: grid; grid-template-columns: 3em 1fr; gap: 10px; }
.story time { padding-top: 1px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; text-align: right; }
.story li > span { position: relative; padding: 0 0 16px 20px; border-left: 2px solid var(--line); }
.story li:last-child > span { border-left-color: transparent; }
.story li > span::before { content: ""; position: absolute; left: -7px; top: 7px; width: 12px; height: 12px; border-radius: 50%; background: var(--agents); box-shadow: 0 0 0 3px 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; }
.who::before { content: ""; display: inline-block; width: 7px; height: 7px; margin-right: 5px; vertical-align: 2px; border-radius: 2px; 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: 18px; }
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(140px, 40%), 1fr)); gap: 10px; margin: 24px 0 0; }
.stats > div { padding: 12px 14px; background: var(--panel); border: 1px solid var(--line); border-radius: 12px; }
.stats b { display: block; font-size: clamp(22px, 5vw, 28px); line-height: 1.2; letter-spacing: -0.02em; }
.stats span { color: var(--muted); font-size: 15px; }
.stats .bar { margin-top: 10px; }
.split { height: 14px; border-radius: 4px; margin-top: 8px; }
.legend { list-style: none; padding: 0; margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 18px; color: var(--muted); font-size: 14px; }
.legend i { display: inline-block; width: 10px; height: 10px; margin-right: 6px; border-radius: 2px; vertical-align: -1px; }
.legend .agents { background: var(--agents); } .legend .queue { background: var(--queue); } .legend .you { background: var(--you); } .legend .outside { background: var(--text); }

section { padding: 48px 0; border-top: 1px solid var(--line); }
.hero { border-top: 0; padding: 56px 0 48px; }
.eyebrow { margin: 0 0 8px; color: var(--link); font-weight: 650; font-size: 14px; letter-spacing: 0.06em; text-transform: uppercase; }
h1 { margin: 0; font-size: clamp(32px, 7vw, 54px); line-height: 1.08; letter-spacing: -0.03em; max-width: 18ch; }
h2 { margin: 0 0 18px; font-size: clamp(24px, 4.5vw, 32px); line-height: 1.2; letter-spacing: -0.02em; }
h3 { margin: 0 0 6px; font-size: 18px; }
.lead { font-size: clamp(18px, 2.6vw, 21px); color: var(--muted); max-width: 40em; margin: 18px 0 0; }
.cta { margin: 28px 0 10px; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 22px; }
.cta .guide { color: var(--link); font-weight: 600; text-underline-offset: 3px; }
.button { display: inline-block; background: var(--accent); color: var(--accent-text); text-decoration: none; font-weight: 650; padding: 13px 22px; border-radius: 10px; }
.button:hover { filter: brightness(1.08); }
button.button { border: 0; font: inherit; font-weight: 650; cursor: pointer; }
button.button:disabled { opacity: 0.6; cursor: progress; }
.button:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
.fine { color: var(--muted); font-size: 15px; margin: 6px 0; }
.tag { display: inline-block; vertical-align: middle; font-size: 12px; font-weight: 650; color: var(--tint-text); background: var(--tint); border-radius: 999px; padding: 1px 9px; letter-spacing: 0.02em; }

.steps { padding-left: 1.3em; margin: 0 0 16px; }
.steps li { margin: 0 0 12px; max-width: 46em; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.grid > div, .plan { background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 18px; }
.grid p { margin: 0; color: var(--muted); font-size: 16px; }

.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin: 18px 0 8px; }
.price { font-size: 30px; font-weight: 750; margin: 4px 0 10px; letter-spacing: -0.02em; }
.price span { font-size: 15px; font-weight: 500; color: var(--muted); }
.plan ul { margin: 0; padding-left: 1.1em; color: var(--muted); font-size: 16px; }

details { border-bottom: 1px solid var(--line); padding: 12px 0; }
summary { cursor: pointer; font-weight: 600; }
details p { color: var(--muted); margin: 8px 0 0; max-width: 46em; }
/* The early-access form */
.ask { display: grid; gap: 16px; max-width: 34em; margin: 28px 0 8px; }
.ask label { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.ask .optional { color: var(--muted); font-weight: 400; }
.ask input, .ask textarea { font: inherit; font-weight: 400; color: var(--text); background: var(--panel); border: 1px solid var(--line); border-radius: 10px; padding: 11px 13px; width: 100%; }
.ask textarea { resize: vertical; min-height: 6em; }
.ask input:focus-visible, .ask textarea:focus-visible, button.button:focus-visible { outline: 3px solid var(--focus); outline-offset: 2px; }
.ask .cta { margin: 4px 0 0; }
.said-error { color: var(--error); }

.closing { text-align: center; }
.closing .cta { justify-content: center; }
.closing h2 { margin-bottom: 0; }
footer { display: flex; justify-content: space-between; padding-top: 24px; padding-bottom: 40px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
footer .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* Terms and privacy */
.legal { padding-top: 32px; padding-bottom: 48px; }
.legal h1 { max-width: none; font-size: clamp(30px, 6vw, 42px); }
.legal h2 { margin: 32px 0 8px; font-size: 22px; }
.legal p, .legal ul { max-width: 46em; }
.legal li { margin: 0 0 8px; }
