:root {
  --bg: #f6f8f7;
  --surface: #ffffff;
  --text: #17211e;
  --muted: #52625d;
  --line: #dbe3e0;
  --accent: #2a5a4b;
  --accent-text: #ffffff;
  --accent-soft: #e3efea;
  --error: #a3322a;
  --radius: 12px;
  --max: 680px;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0d1714;
    --surface: #14211d;
    --text: #e6eeeb;
    --muted: #9fb2ab;
    --line: #26372f;
    --accent: #7fb3a0;
    --accent-text: #0d1714;
    --accent-soft: #1b2d27;
    --error: #f08a80;
    color-scheme: dark;
  }
}

:root[data-theme="dark"] {
  --bg: #0d1714;
  --surface: #14211d;
  --text: #e6eeeb;
  --muted: #9fb2ab;
  --line: #26372f;
  --accent: #7fb3a0;
  --accent-text: #0d1714;
  --accent-soft: #1b2d27;
  --error: #f08a80;
  color-scheme: dark;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 17px/1.55 -apple-system, BlinkMacSystemFont, "SF Pro Text", "Helvetica Neue", Arial, sans-serif;
}

a { color: var(--accent); }

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 16px;
}

header.hero {
  padding: 64px 0 24px;
  text-align: center;
}

.hero img {
  width: 112px;
  height: 112px;
  display: block;
  margin: 0 auto 20px;
}

h1 {
  font-size: 2.4rem;
  line-height: 1.1;
  letter-spacing: -0.02em;
  margin: 0 0 12px;
}

.lede {
  font-size: 1.2rem;
  color: var(--muted);
  margin: 0 auto;
  max-width: 34em;
}

.status {
  display: inline-block;
  margin-top: 20px;
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.9rem;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 24px;
  margin: 28px 0;
}

.card h2 { margin-top: 0; }

h2 {
  font-size: 1.35rem;
  letter-spacing: -0.01em;
  margin: 48px 0 12px;
}

form .row {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

label { display: block; font-weight: 600; margin-bottom: 6px; }

.optional { font-weight: 400; color: var(--muted); }

input[type="email"], select {
  font: inherit;
  color: var(--text);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  min-width: 0;
}

input[type="email"] { flex: 1 1 240px; }

select { width: 100%; }

.field { margin-top: 16px; }

button {
  font: inherit;
  font-weight: 600;
  background: var(--accent);
  color: var(--accent-text);
  border: 0;
  border-radius: 8px;
  padding: 10px 18px;
  cursor: pointer;
}

button[disabled] { opacity: 0.6; cursor: progress; }

input:focus-visible, select:focus-visible, button:focus-visible, a:focus-visible {
  outline: 3px solid var(--accent);
  outline-offset: 2px;
}

.fine {
  font-size: 0.9rem;
  color: var(--muted);
  margin: 14px 0 0;
}

.msg { margin: 14px 0 0; font-weight: 600; }
.msg.error { color: var(--error); }

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

ul.features {
  list-style: none;
  padding: 0;
  margin: 0;
}

ul.features li {
  padding: 12px 0;
  border-top: 1px solid var(--line);
}

ul.features li:first-child { border-top: 0; }

ul.features strong { display: block; }

ul.features span { color: var(--muted); }

.note p:last-child { margin-bottom: 0; }

footer {
  margin: 64px 0 40px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
  color: var(--muted);
}

footer a { color: var(--muted); }

.page h1 { font-size: 2rem; margin-top: 48px; }

.back { display: inline-block; margin-top: 32px; }

@media (max-width: 480px) {
  header.hero { padding-top: 40px; }
  h1 { font-size: 2rem; }
  .card { padding: 18px; }
  form .row button { width: 100%; }
}

/* Cloudflare Turnstile widget on the signup form */
/* Turnstile shows its box only when it needs the visitor to act. */
.cf-turnstile.is-shown { margin-top: 16px; }

/* Headings focused from script to announce a result */
h1[tabindex="-1"]:focus { outline: none; }

/* ---------- Home page: window hero, verification diagram, close-ups ---------- */

:root {
  --w-edge: #cfd4d8;
  --w-field: #ffffff;
  --shade: rgba(20, 40, 32, 0.16);
  --wide: 1120px;
  --mono: ui-monospace, "SF Mono", Menlo, monospace;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --w-edge: #3a3f44;
    --w-field: #2a2e32;
    --shade: rgba(0, 0, 0, 0.45);
  }
}

:root[data-theme="dark"] {
  --w-edge: #3a3f44;
  --w-field: #2a2e32;
  --shade: rgba(0, 0, 0, 0.45);
}

.wrap.wide { max-width: var(--wide); }

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding: 24px 0 8px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
  font-size: 1.1rem;
  letter-spacing: -0.01em;
}

.topbar .status { margin-top: 0; }

.home h1 {
  font-size: 2.6rem;
  line-height: 1.06;
  letter-spacing: -0.025em;
  text-wrap: balance;
}

.home h2 { text-wrap: balance; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
  padding: 40px 0 24px;
}

.hero-copy { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

.hero .lede { margin: 0; max-width: none; font-size: 1.1rem; }

.hero .card { margin: 8px 0 0; }

.hero .card h2 { font-size: 1.1rem; }

.shot { margin: 0; min-width: 0; }

.shot figcaption,
.crops-note {
  margin-top: 12px;
  font-size: 0.85rem;
  color: var(--muted);
}

/* Verification diagram */
.verify, .closeups { padding-top: 24px; }

.section-lede { max-width: 42em; color: var(--muted); margin: 0 0 20px; }

.flow {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 22px;
  display: grid;
  grid-template-columns: 170px minmax(0, 1fr);
  gap: 22px;
  font-size: 0.85rem;
}

.src {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.src code, .lane code { font-family: var(--mono); font-size: 0.78rem; }
.src-note { font-size: 0.78rem; color: var(--muted); line-height: 1.35; }

.sd {
  width: 44px;
  height: 54px;
  border-radius: 5px 12px 5px 5px;
  background: var(--accent);
  position: relative;
}

.sd::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 6px;
  height: 10px;
  background: repeating-linear-gradient(90deg, var(--accent-text) 0 3px, transparent 3px 6px);
  opacity: 0.6;
}

.hashpill {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 0.75rem;
  background: var(--accent-soft);
  border-radius: 6px;
  padding: 3px 7px;
}

.lanes { display: flex; flex-direction: column; justify-content: center; gap: 8px; min-width: 0; }

.lane {
  display: grid;
  grid-template-columns: 110px repeat(4, minmax(0, 1fr));
  gap: 6px;
  align-items: center;
}

.dest { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

.stp {
  border: 1px solid var(--accent);
  border-radius: 7px;
  padding: 6px 8px;
  background: var(--accent-soft);
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* assets/diagram.js adds .armed on load and .play once the diagram is in view. */
.flow.armed .stp { border-color: var(--line); background: var(--bg); color: var(--muted); }
.flow.play .stp { animation: lit 3s 1 both; }

.stp.end { font-weight: 600; }

.flow.play .lane:nth-child(1) .stp:nth-child(3) { animation-delay: 0.6s; }
.flow.play .lane:nth-child(1) .stp:nth-child(4) { animation-delay: 1.2s; }
.flow.play .lane:nth-child(1) .stp:nth-child(5) { animation-delay: 1.8s; }
.flow.play .lane:nth-child(2) .stp:nth-child(2) { animation-delay: 0.3s; }
.flow.play .lane:nth-child(2) .stp:nth-child(3) { animation-delay: 0.9s; }
.flow.play .lane:nth-child(2) .stp:nth-child(4) { animation-delay: 1.5s; }
.flow.play .lane:nth-child(2) .stp:nth-child(5) { animation-delay: 2.1s; }
.flow.play .lane:nth-child(3) .stp:nth-child(2) { animation-delay: 0.6s; }
.flow.play .lane:nth-child(3) .stp:nth-child(3) { animation-delay: 1.2s; }
.flow.play .lane:nth-child(3) .stp:nth-child(4) { animation-delay: 1.8s; }
.flow.play .lane:nth-child(3) .stp:nth-child(5) { animation-delay: 2.4s; }
.flow.play .lane:nth-child(4) .stp:nth-child(2) { animation-delay: 0.9s; }
.flow.play .lane:nth-child(4) .stp:nth-child(3) { animation-delay: 1.5s; }
.flow.play .lane:nth-child(4) .stp:nth-child(4) { animation-delay: 2.1s; }
.flow.play .lane:nth-child(4) .stp:nth-child(5) { animation-delay: 2.7s; }

/* Plays once and ends with every step lit (WCAG 2.2.2: nothing loops). */
@keyframes lit {
  0%, 60% { border-color: var(--line); background: var(--bg); color: var(--muted); }
  100% { border-color: var(--accent); background: var(--accent-soft); color: var(--text); }
}

@media (prefers-reduced-motion: reduce) {
  .flow .stp { animation: none; }
}

.flow-note { margin: 14px 0 0; color: var(--muted); }

/* Feature close-ups */
.crops {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.crop {
  margin: 0;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-width: 0;
}

.crop figcaption { display: flex; flex-direction: column; gap: 4px; }
.crop figcaption span { color: var(--muted); font-size: 0.95rem; }

.closeups .features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin-top: 24px;
}

.closeups .features li:nth-child(2) { border-top: 0; }

/* Founder note and What's planned, stacked in the one column, as on phones */
.pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
}

.pair p { margin: 0; max-width: 38em; }
.pair p + p { margin-top: 12px; }

@media (max-width: 900px) {
  .hero { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-top: 24px; }
  .crops { grid-template-columns: minmax(0, 1fr); }
}

@media (max-width: 600px) {
  .home h1 { font-size: 2rem; }
  .flow { grid-template-columns: minmax(0, 1fr); padding: 16px; }
  .src { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .src-note { flex-basis: 100%; }
  .lane { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .lane .dest { grid-column: 1 / -1; }
  .stp { font-size: 0.72rem; padding: 5px 6px; white-space: normal; line-height: 1.25; }
  .closeups .features { grid-template-columns: minmax(0, 1fr); }
  .closeups .features li:nth-child(2) { border-top: 1px solid var(--line); }
}

/* ---------- Command center page: screenshots, steps, culling close-ups ---------- */

.vh {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

/* Four steps */
.steps-sec { padding-top: 16px; }

.steps {
  list-style: none;
  counter-reset: step;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.steps li::before {
  content: counter(step);
  font-weight: 700;
  font-size: 0.85rem;
  color: var(--accent);
}

.steps span { color: var(--muted); font-size: 0.95rem; }

.steps-note { margin: 14px 0 0; color: var(--muted); font-size: 0.9rem; }

/* Lists of features in each section */
.verify .features, .closeups .features, .after .features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
  margin-top: 24px;
}

.verify .features li:nth-child(2),
.after .features li:nth-child(2) { border-top: 0; }

.after, .files { padding-top: 24px; }

.after .features { margin-top: 0; }

.files .section-lede { margin-bottom: 0; }

/* Keys named in the culling captions */
kbd {
  font-family: var(--mono);
  font-size: 0.85em;
  border: 1px solid var(--w-edge);
  border-bottom-width: 2px;
  border-radius: 4px;
  padding: 0 4px;
  background: var(--w-field);
}

@media (max-width: 900px) {
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 600px) {
  .steps { grid-template-columns: minmax(0, 1fr); }
  .verify .features, .closeups .features, .after .features { grid-template-columns: minmax(0, 1fr); }
  .verify .features li:nth-child(2),
  .closeups .features li:nth-child(2),
  .after .features li:nth-child(2) { border-top: 1px solid var(--line); }
}

/* Coming next: features that are not built yet, each labelled */
.coming { padding-top: 24px; }

.coming .features {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  column-gap: 32px;
}

.coming .features li:nth-child(2) { border-top: 0; }

.coming .tag {
  display: inline-block;
  margin-left: 6px;
  padding: 1px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--text);
  font-size: 0.75rem;
  font-style: normal;
  font-weight: 600;
  vertical-align: 2px;
}

.coming-note { margin: 14px 0 0; color: var(--muted); }

@media (max-width: 600px) {
  .coming .features { grid-template-columns: minmax(0, 1fr); }
  .coming .features li:nth-child(2) { border-top: 1px solid var(--line); }
}

/* Screenshots of the app, light and dark */
.shot img { display: block; width: 100%; height: auto; }
.win-shot { filter: drop-shadow(0 18px 28px var(--shade)) drop-shadow(0 1px 3px var(--shade)); }
.crop img, .strip-shot img { border: 1px solid var(--line); border-radius: 8px; }
.crop picture img { display: block; width: 100%; height: auto; }
.strip-shot { margin-top: 20px; }
.sheet-shot { max-width: 480px; margin: 28px auto 0; }

@media (max-width: 600px) {
  .strip-shot picture { display: block; overflow-x: auto; }
  .strip-shot img { width: 680px; max-width: none; }
}
