:root {
  --bg: #f7f5f0;
  --surface: #ffffff;
  --border: #e5e1d8;
  --border-strong: #d6d1c4;
  --ink: #201e1a;
  --ink-soft: #74706a;
  --ink-faint: #a29c92;

  --accent: #c2410c;
  --accent-hover: #a3350a;
  --accent-soft: #fbe7dd;

  --success: #15803d;
  --success-soft: #dcfce7;

  --danger: #b91c1c;
  --danger-soft: #fee2e2;

  --radius: 10px;
  --radius-sm: 6px;
  --shadow-sm: 0 1px 2px rgba(32, 30, 26, 0.06);

  --font-display: "Fraunces", Georgia, serif;
  --font-body: "Inter", system-ui, sans-serif;
  --font-mono: "IBM Plex Mono", ui-monospace, monospace;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
}

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

a {
  color: inherit;
}

:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
  border-radius: 4px;
}

.shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

/* ---- nav ---- */

.topbar {
  border-bottom: 1px solid var(--border);
}

.topbar__inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 1.1rem 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.wordmark {
  font-family: var(--font-display);
  font-style: italic;
  font-weight: 600;
  font-size: 1.15rem;
  text-decoration: none;
  color: var(--ink);
}

.topbar__inner .btn {
  padding: 0.5rem 0.9rem;
  font-size: 0.85rem;
}

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

.hero {
  padding: 4.5rem 0 3rem;
}

.eyebrow {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 0.3rem 0.65rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
}

.hero h1 {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: clamp(2.1rem, 5vw, 3rem);
  line-height: 1.15;
  letter-spacing: -0.015em;
  margin: 0 0 1.1rem;
  max-width: 14ch;
}

.hero p {
  font-size: 1.1rem;
  color: var(--ink-soft);
  max-width: 46ch;
  margin: 0 0 1.75rem;
}

/* ---- buttons ---- */

.btn {
  display: inline-block;
  font: inherit;
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.7rem 1.3rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 120ms ease;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--accent-hover);
}

.btn-primary:disabled {
  background: var(--ink-faint);
  cursor: default;
}

.btn-secondary {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--border-strong);
}

.btn-secondary:hover {
  background: var(--bg);
}

/* ---- demo card (signature element) ---- */

.demo-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  margin-bottom: 0.75rem;
}

.demo-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.8rem 1.1rem;
  border-bottom: 1px solid var(--border);
}

.demo-row:last-child {
  border-bottom: none;
}

.demo-email {
  font-family: var(--font-mono);
  font-size: 0.87rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4em;
  padding: 0.25rem 0.6rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 500;
  flex-shrink: 0;
}

.pill::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}

.pill--ok {
  background: var(--success-soft);
  color: var(--success);
}

.pill--ok::before {
  background: var(--success);
}

.pill--suppressed {
  background: var(--danger-soft);
  color: var(--danger);
}

.pill--suppressed::before {
  background: var(--danger);
}

.demo-caption {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 0 0 3.5rem;
}

/* ---- feature blocks ---- */

.features {
  padding: 1rem 0 3.5rem;
  border-top: 1px solid var(--border);
}

.feature {
  padding: 1.75rem 0;
  border-bottom: 1px solid var(--border);
}

.feature:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.feature h3 {
  font-family: var(--font-display);
  font-size: 1.2rem;
  font-weight: 600;
  margin: 0 0 0.5rem;
}

.feature p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 52ch;
}

/* ---- beta note ---- */

.beta {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.75rem;
  margin-bottom: 3.5rem;
}

.beta h2 {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-weight: 600;
  margin: 0 0 0.6rem;
}

.beta p {
  color: var(--ink-soft);
  margin: 0;
  max-width: 56ch;
}

/* ---- contact form ---- */

.contact {
  padding-bottom: 5rem;
}

.contact h2 {
  font-family: var(--font-display);
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0 0 0.4rem;
}

.contact > p {
  color: var(--ink-soft);
  margin: 0 0 1.75rem;
}

.field {
  margin-bottom: 1.1rem;
}

.field label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-soft);
  margin-bottom: 0.35rem;
}

.field input,
.field textarea {
  width: 100%;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-sm);
  font: inherit;
  font-size: 0.95rem;
  background: var(--surface);
  color: var(--ink);
}

.field textarea {
  min-height: 130px;
  resize: vertical;
}

.field input:focus-visible,
.field textarea:focus-visible {
  border-color: var(--accent);
}

.honeypot {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.form-status {
  margin-top: 1rem;
  font-size: 0.9rem;
}

.form-status[data-state="success"] {
  color: var(--success);
}

.form-status[data-state="error"] {
  color: var(--danger);
}

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

.footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0;
}

.footer p {
  font-size: 0.82rem;
  color: var(--ink-faint);
  margin: 0;
}

@media (prefers-reduced-motion: reduce) {
  .btn {
    transition: none;
  }
}
