:root {
  --fg: #16181d;
  --muted: #5f6571;
  --bg: #ffffff;
  --line: #e3e5e8;
  --code-bg: #f5f6f7;
  --accent: #1f5fd6;
  --error: #b42318;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --fg: #e6e8eb;
    --muted: #9aa0aa;
    --bg: #111317;
    --line: #2a2e35;
    --code-bg: #1a1d22;
    --accent: #7aa7ff;
    --error: #ff8a80;
  }
}

* { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--fg);
  font: 16px/1.6 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

.wrap { max-width: 44rem; margin: 0 auto; padding: 0 1.25rem; }

header { padding-top: 1.5rem; }
.brand { font-family: var(--mono); font-weight: 600; color: var(--fg); text-decoration: none; }

main > section, main > figure, main > article { margin: 3rem 0; }

h1 { font-size: 1.9rem; line-height: 1.25; margin: 0 0 1rem; letter-spacing: -0.01em; }
h2 { font-size: 1.15rem; margin: 0 0 0.75rem; }
.prose h2 { margin-top: 2rem; }

a { color: var(--accent); }
.muted { color: var(--muted); }
.small { font-size: 0.875rem; }

code { font-family: var(--mono); font-size: 0.9em; }

.terminal pre {
  margin: 0;
  padding: 1rem 1.25rem;
  overflow-x: auto;
  background: var(--code-bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  font-size: 0.85rem;
  line-height: 1.7;
}
.terminal figcaption { margin-top: 0.5rem; font-size: 0.875rem; color: var(--muted); }

.features dt { font-weight: 600; margin-top: 1.25rem; }
.features dd { margin: 0.25rem 0 0; color: var(--muted); }

form { display: grid; gap: 0.4rem; max-width: 26rem; }
label { font-size: 0.95rem; margin-top: 0.6rem; }
input, select, button { font: inherit; }
input, select {
  width: 100%;
  padding: 0.5rem 0.65rem;
  color: var(--fg);
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
}
input:focus, select:focus, button:focus-visible { outline: 2px solid var(--accent); outline-offset: 1px; }
button {
  margin-top: 1rem;
  justify-self: start;
  padding: 0.55rem 1.1rem;
  color: var(--bg);
  background: var(--fg);
  border: 0;
  border-radius: 6px;
  cursor: pointer;
}
button:disabled { opacity: 0.6; cursor: wait; }
.cf-turnstile { margin-top: 0.75rem; }
.error { color: var(--error); margin: 0.5rem 0 0; }

/* Honeypot: hidden from people, visible to naive bots. */
.hp { position: absolute; left: -10000px; width: 1px; height: 1px; overflow: hidden; }

.pricing { width: 100%; border-collapse: collapse; }
.pricing th, .pricing td { text-align: left; vertical-align: top; padding: 0.9rem 0.75rem 0.9rem 0; border-top: 1px solid var(--line); }
.pricing th { width: 11rem; }
.pricing .price { display: block; font-weight: 400; font-size: 0.875rem; color: var(--muted); }
.pricing td:last-child { white-space: nowrap; text-align: right; padding-right: 0; }

footer { margin: 4rem auto 2rem; font-size: 0.875rem; color: var(--muted); }
footer a { color: var(--muted); }

@media (max-width: 36rem) {
  h1 { font-size: 1.6rem; }
  .pricing tr { display: grid; }
  .pricing th, .pricing td { border: 0; padding: 0.25rem 0; text-align: left; }
  .pricing tr { border-top: 1px solid var(--line); padding: 0.75rem 0; }
  .pricing td:last-child { text-align: left; }
}
