/* sudock — landing page styles
   Dark-first, one accent (brand green #34d399), deliberate monospace use.
   Sans: IBM Plex Sans. Mono: JetBrains Mono. No gradients, no card grids. */

:root {
  --bg: #0a0a0a;
  --bg-raised: #111214;
  --border: #2a2b2d;
  --border-soft: #1c1d1f;
  --text: #e7e7e7;
  --text-dim: #9a9a9a;
  --text-faint: #6b6b6b;
  --accent: #34d399;
  --accent-dim: rgba(52, 211, 153, 0.14);
  --amber: #e0a858;
  --font-sans: "IBM Plex Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, "Fira Code", SFMono-Regular, Menlo, Consolas, monospace;
  --max: 1120px;
}

@media (prefers-color-scheme: light) {
  :root:not([data-theme="dark"]) {
    --bg: #f6f5f2;
    --bg-raised: #ffffff;
    --border: #ddd9d1;
    --border-soft: #e7e4dc;
    --text: #17181a;
    --text-dim: #4b4c4e;
    --text-faint: #7a7b7d;
    --accent: #0f9d6c;
    --accent-dim: rgba(15, 157, 108, 0.12);
  }
}

* { box-sizing: border-box; }

/* Hard floor for every image on the page. The hero capture is a 2400px-wide
   PNG, so if its component rule ever goes missing — a renamed class, a stale
   cached stylesheet — it renders at intrinsic width and forces the whole
   document to scroll sideways. That happened on 2026-08-30 to anyone holding a
   4-hour-cached copy of the previous sheet, which styled `.hero-shot img`
   while the new markup had become `.hero__shot`. This rule makes the failure
   mode impossible rather than merely fixed. */
img { max-width: 100%; height: auto; }

html { color-scheme: dark; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

.skip-link {
  position: absolute;
  left: -999px;
  top: 0;
  background: var(--accent);
  color: #06120d;
  padding: 0.6em 1em;
  z-index: 100;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}
.skip-link:focus { left: 1rem; top: 1rem; }

a { color: var(--accent); text-decoration-color: var(--accent-dim); text-underline-offset: 3px; }
a:hover { text-decoration-thickness: 2px; }

code {
  font-family: var(--font-mono);
  font-size: 0.92em;
  background: var(--bg-raised);
  border: 1px solid var(--border-soft);
  border-radius: 3px;
  padding: 0.08em 0.4em;
}

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.wrap--prose { max-width: 720px; }

/* ---------- header ---------- */

.site-header {
  border-bottom: 1px solid var(--border-soft);
  position: sticky;
  top: 0;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  backdrop-filter: blur(6px);
  z-index: 10;
}
.site-header__row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  height: 60px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
}
.brand__word {
  font-family: var(--font-mono);
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.02em;
}
.site-header__meta {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.tag {
  font-family: var(--font-mono);
  font-size: 0.72rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.22em 0.5em;
  white-space: nowrap;
  display: none;
}
.tag--wip {
  color: var(--amber);
  border-color: color-mix(in srgb, var(--amber) 40%, var(--border));
  display: inline-block;
}
@media (min-width: 720px) {
  .tag { display: inline-block; }
}

.btn {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: 4px;
  padding: 0.55em 0.9em;
  border: 1px solid transparent;
  display: inline-block;
  white-space: nowrap;
}
.btn--ghost {
  color: var(--text);
  border-color: var(--border);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); }
.btn--primary {
  background: var(--accent);
  color: #06120d;
}
.btn--primary:hover { background: color-mix(in srgb, var(--accent) 85%, white); }

/* ---------- hero ---------- */

.hero {
  position: relative;
  border-bottom: 1px solid var(--border-soft);
  padding: 3.5rem 0 3rem;
}
/* The grid backdrop lives on a pseudo-element so its fade-out mask applies to
   the grid only. Masking .hero itself also faded the hero content — which was
   invisible while the hero was short, and ate the screenshot caption once the
   section grew. */
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(var(--border-soft) 1px, transparent 1px),
    linear-gradient(90deg, var(--border-soft) 1px, transparent 1px);
  background-size: 42px 42px;
  background-position: center -1px;
  -webkit-mask-image: linear-gradient(to bottom, black, black 45%, transparent 85%);
  mask-image: linear-gradient(to bottom, black, black 45%, transparent 85%);
}
.hero > .wrap { position: relative; }
/* The hero screenshot is the argument for the whole page, so give it more room
   than the standard text measure. */
@media (min-width: 1200px) {
  .hero > .wrap { max-width: 1400px; }
}

.hero__lede { max-width: 62ch; }

.prompt-line {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  margin: 0 0 1rem;
}
.prompt-line::before { content: ""; }

h1 {
  font-size: clamp(1.9rem, 4vw, 2.7rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  margin: 0 0 1rem;
  max-width: 18ch;
}

.lead {
  font-size: 1.1rem;
  color: var(--text);
  max-width: 54ch;
  margin: 0 0 1rem;
}

.body-copy {
  color: var(--text-dim);
  max-width: 58ch;
  margin: 0 0 1.75rem;
}

.hero__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}
.hero__cta-note {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
}

/* ---------- hero screenshot (the two-device capture) ---------- */

.hero__shot {
  margin: 2.75rem 0 0;
}
.hero__shot img {
  display: block;
  width: 100%;
  height: auto;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-raised);
  box-shadow: 0 30px 70px -35px rgba(0, 0, 0, 0.75);
}
.hero__shot figcaption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  line-height: 1.5;
  color: var(--text-faint);
  margin-top: 0.85rem;
  max-width: 70ch;
}

/* ---------- sections ---------- */

.section { padding: 3rem 0; }
.section--raised { background: var(--bg-raised); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }

.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin: 0 0 0.6rem;
}

h2 {
  font-size: clamp(1.4rem, 2.6vw, 1.9rem);
  line-height: 1.25;
  margin: 0 0 1.25rem;
  max-width: 32ch;
}

.section p { color: var(--text-dim); max-width: 68ch; }
.section .wrap--prose p { color: var(--text-dim); }
.section .wrap--prose p:first-of-type { color: var(--text); }

.attribution {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-faint);
  margin-top: 1.5rem;
}

/* ---------- capability list ---------- */

.cap-list { margin: 0; }
.cap-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.3rem;
  padding: 1.1rem 0;
  border-top: 1px solid var(--border-soft);
}
.cap-row:last-child { border-bottom: 1px solid var(--border-soft); }
@media (min-width: 760px) {
  .cap-row { grid-template-columns: 300px 1fr; gap: 1.5rem; align-items: baseline; }
}
.cap-row dt { margin: 0; }
.cap-row dt code {
  background: transparent;
  border: none;
  padding: 0;
  font-size: 0.95rem;
  color: var(--text);
  font-weight: 600;
}
.cap-row dd { margin: 0; color: var(--text-dim); max-width: 62ch; }
.cap-row--wip dd { color: var(--text-dim); }

/* ---------- status list ---------- */

.status-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.status-list li {
  color: var(--text-dim);
  padding-left: 1.1rem;
  position: relative;
}
.status-list li::before {
  content: "›";
  position: absolute;
  left: 0;
  color: var(--accent);
  font-family: var(--font-mono);
}
.status-list strong { color: var(--text); font-weight: 600; }

/* ---------- footer ---------- */

.site-footer { padding: 2rem 0 3rem; }
.site-footer__row {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
  justify-content: space-between;
  border-top: 1px solid var(--border-soft);
  padding-top: 1.5rem;
}
.site-footer__brand {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text-dim);
}
.site-footer__brand .muted { color: var(--text-faint); }
.site-footer__links {
  display: flex;
  gap: 1.2rem;
  font-family: var(--font-mono);
  font-size: 0.85rem;
}

/* ---------- waitlist form ---------- */

.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* honeypot — off-screen, not display:none (some bots skip hidden fields) */
.wl-hp {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.waitlist-form {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.6rem;
}

.waitlist-form__input {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.55em 0.75em;
  min-width: 0;
  flex: 1 1 220px;
}
.waitlist-form__input::placeholder { color: var(--text-faint); }
.waitlist-form__input:focus {
  outline: none;
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-dim);
}
.waitlist-form__input:invalid:not(:placeholder-shown) { border-color: var(--amber); }

.waitlist-form__btn { flex: none; cursor: pointer; }
.waitlist-form__btn:disabled { opacity: 0.6; cursor: default; }

.waitlist-form__status {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  margin: 0;
  flex-basis: 100%;
}
.waitlist-form__status:empty { display: none; }
.waitlist-form__status--ok { color: var(--accent); }
.waitlist-form__status--err { color: #e07858; }

/* hero: full-width row, status wraps under it */
.hero__cta { align-items: flex-start; }
.hero__cta .waitlist-form { flex: 1 1 100%; max-width: 30rem; }

/* compact variant: header + footer, status floats as a small popover so it
   doesn't reflow the surrounding row */
.waitlist-form--compact { position: relative; flex-wrap: nowrap; }
.waitlist-form--compact .waitlist-form__input { flex: none; width: 9.5rem; }
.waitlist-form--compact .waitlist-form__status {
  position: absolute;
  top: calc(100% + 0.4rem);
  right: 0;
  flex-basis: auto;
  max-width: 16rem;
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.4em 0.6em;
  white-space: normal;
  z-index: 20;
}
@media (max-width: 480px) {
  .waitlist-form--compact .waitlist-form__input { width: 7rem; }
}

/* ---------- motion ---------- */

@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; }
}


/* ---------- header CTA ---------- */

.header-cta { display: none; }
@media (min-width: 760px) {
  .header-cta { display: inline-flex; }
}

/* ---------- hero wedge line ---------- */

.body-copy--wedge {
  color: var(--text-dim);
  border-left: 2px solid var(--accent);
  padding-left: 0.9rem;
}
.body-copy--wedge a {
  color: var(--accent);
  text-decoration: none;
  border-bottom: 1px solid transparent;
  white-space: nowrap;
}
.body-copy--wedge a:hover { border-bottom-color: var(--accent); }

/* ---------- creed band ---------- */

.creed-section { padding: 2.5rem 0; }

.creed {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg-raised);
  padding: 1.75rem 1.75rem 1.5rem;
  display: grid;
  gap: 0.85rem;
}
@media (min-width: 860px) {
  .creed { grid-template-columns: minmax(0, 20rem) 1fr; gap: 2.25rem; align-items: start; }
}
.creed__line {
  font-family: var(--font-mono);
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.4;
}
.creed__body {
  margin: 0;
  color: var(--text-dim);
  max-width: 68ch;
}

/* ---------- the ask ---------- */

.section__standfirst {
  font-size: 1.05rem;
  color: var(--text) !important;
  max-width: 66ch;
  margin: 0 0 2rem;
}

.ask-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
@media (min-width: 760px) {
  .ask-grid { grid-template-columns: 1fr 1fr; gap: 2.5rem; }
}

.ask-col {
  border-top: 1px solid var(--border);
  padding-top: 1.1rem;
}
.ask-col p { margin: 0 0 0.85rem; }
.ask-col__label { margin: 0 0 0.9rem !important; }
.ask-col__label code {
  font-family: var(--font-mono);
  font-size: 0.85rem;
  color: var(--accent);
  background: var(--accent-dim);
  border-radius: 4px;
  padding: 0.2rem 0.5rem;
}
.ask-col__fine {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  line-height: 1.6;
  color: var(--text-faint) !important;
  margin-bottom: 0 !important;
}

/* ---------- rich form ---------- */

.form-rich {
  border: 1px solid var(--border);
  border-radius: 10px;
  background: var(--bg);
  padding: 1.5rem;
  max-width: 52rem;
}

.form-rich__row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  margin-bottom: 1.15rem;
}
@media (min-width: 640px) {
  .form-rich__row { grid-template-columns: 1fr 1fr; gap: 1.25rem; }
}

.field { display: flex; flex-direction: column; gap: 0.4rem; min-width: 0; }
.field--grow { flex: 1 1 auto; }
.field__label {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--text-dim);
  padding: 0;
}
.field__opt { color: var(--text-faint); }
/* .waitlist-form__input carries `flex: 1 1 220px` for the inline compact
   forms, where the flex axis is horizontal. Inside .field the axis is
   vertical, so that same rule stretches the box to the full grid-row height —
   pin it back to its content height. */
.field .waitlist-form__input { width: 100%; flex: 0 0 auto; }

.intent {
  border: 0;
  margin: 0 0 1.25rem;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
}
.intent legend { float: left; width: 100%; margin-bottom: 0.55rem; }

.intent__chip {
  position: relative;
  display: inline-flex;
}
.intent__chip input {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
}
.intent__chip span {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--text-dim);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 0.4rem 0.85rem;
  transition: border-color 0.12s ease, color 0.12s ease, background 0.12s ease;
}
.intent__chip input:hover + span { border-color: var(--text-faint); color: var(--text); }
.intent__chip input:checked + span {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--accent-dim);
}
.intent__chip input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

.form-rich__submit {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.9rem;
}
.form-rich__fine {
  font-family: var(--font-mono);
  font-size: 0.75rem;
  line-height: 1.6;
  color: var(--text-faint);
  margin: 1.1rem 0 0;
  max-width: 60ch;
}

/* ---------- lately (proof of life) ---------- */

.lately {
  list-style: none;
  margin: 1.5rem 0 0;
  padding: 0;
}
.lately li {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.15rem 1.25rem;
  padding: 0.9rem 0;
  border-top: 1px solid var(--border-soft);
}
.lately li:last-child { border-bottom: 1px solid var(--border-soft); }
@media (min-width: 620px) {
  .lately li { grid-template-columns: 5.5rem 1fr; gap: 0 1.25rem; }
}
.lately__date {
  font-family: var(--font-mono);
  font-size: 0.78rem;
  color: var(--accent);
  padding-top: 0.15rem;
  white-space: nowrap;
}
.lately__what { color: var(--text-dim); }
