/* ---------- Design tokens ---------- */
:root {
  --bg: #faf9f6;
  --surface: #ffffff;
  --text: #171717;
  --muted: #5f5d58;
  --border: #dfdfdc;
  --accent: #b5541b;
  --accent-dark: #8f4315;

  --font-sans: "IBM Plex Sans", "Inter", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas, monospace;

  --content-width: 1120px;

  --radius-sm: 8px;
  --radius-md: 14px;

  --space-1: 8px;
  --space-2: 16px;
  --space-3: 24px;
  --space-4: 32px;
  --space-5: 48px;
  --space-6: 64px;
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
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;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3, p, figure { margin: 0; }
a { color: inherit; }

.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;
}

.skip-link {
  position: absolute;
  left: 0; top: -100%;
  background: var(--text);
  color: var(--bg);
  padding: var(--space-1) var(--space-2);
  z-index: 100;
  border-radius: 0 0 var(--radius-sm) 0;
}
.skip-link:focus { top: 0; }

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

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* ---------- Layout helpers ---------- */
.wrap {
  max-width: var(--content-width);
  margin: 0 auto;
  padding: 0 var(--space-3);
}

/* ---------- Header ---------- */
.site-header {
  border-bottom: 1px solid var(--border);
}
.header-row {
  display: flex; align-items: center;
  height: 64px;
}
.brand {
  display: flex; align-items: center; gap: var(--space-1);
  font-weight: 700; font-size: 1.05rem;
  text-decoration: none;
}
.brand-mark {
  width: 18px; height: 18px;
  border-radius: 4px;
  background: var(--accent);
  display: inline-block;
  position: relative;
}
.brand-mark::after {
  content: "";
  position: absolute; inset: 4px;
  border: 1.5px solid var(--bg);
  border-radius: 2px;
}

/* ---------- Buttons & inputs ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.95rem;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  padding: 12px 20px;
  cursor: pointer;
  text-decoration: none;
  transition: background-color 120ms ease, transform 120ms ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: #fff;
}
.btn-primary:hover { background: var(--accent-dark); }
.btn-primary:active { transform: translateY(1px); }

.input {
  font-family: var(--font-sans);
  font-size: 1rem;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--surface);
  color: var(--text);
  width: 100%;
}
.input:focus { border-color: var(--accent); }

/* ---------- Hero ---------- */
.hero { padding: var(--space-6) 0; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: var(--space-6);
  align-items: center;
}
.eyebrow {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent-dark);
  margin-bottom: var(--space-2);
}
.hero h1 {
  font-size: clamp(2rem, 1.5rem + 2.2vw, 3.2rem);
  line-height: 1.1;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.hero-lede {
  margin-top: var(--space-3);
  font-size: 1.15rem;
  color: var(--muted);
  max-width: 52ch;
}
.signup-form { margin-top: var(--space-4); max-width: 480px; }
.signup-row { display: flex; gap: var(--space-2); }
.signup-row .input { flex: 1; }
.form-note { font-size: 0.85rem; color: var(--muted); margin-top: var(--space-2); }
.form-status {
  font-size: 0.9rem;
  min-height: 1.2em;
}
.form-status[data-state="success"],
.form-status[data-state="error"] {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: var(--space-2);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-size: 0.95rem;
  animation: status-in 200ms ease-out;
}
.form-status[data-state="success"]::before,
.form-status[data-state="error"]::before {
  flex-shrink: 0;
  font-weight: 700;
}
.form-status[data-state="success"] {
  color: #1f5b2e;
  background: #e6f4ea;
  border: 1px solid #b7dcc0;
}
.form-status[data-state="success"]::before { content: "✓"; }
.form-status[data-state="error"] {
  color: #8f2426;
  background: #fbe9e9;
  border: 1px solid #f0c2c2;
}
.form-status[data-state="error"]::before { content: "!"; }

@keyframes status-in {
  from { opacity: 0; transform: translateY(-4px); }
  to { opacity: 1; transform: translateY(0); }
}
.hp-field {
  position: absolute;
  left: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.hero-visual {
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2);
}
.hero-visual img {
  max-height: 640px;
  width: auto;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 45px -18px rgba(23, 23, 23, 0.35);
}
.visual-caption {
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}

/* ---------- Quick spec strip ---------- */
.spec-strip {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  background: var(--surface);
  padding: var(--space-4) 0 var(--space-3);
}
.spec-strip-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--space-3);
}
.spec-chip { text-align: center; }
.spec-value {
  display: block;
  font-family: var(--font-mono);
  font-size: 1.4rem;
  font-weight: 500;
  line-height: 1.2;
  color: var(--text);
}
.spec-label {
  display: block;
  font-size: 0.85rem;
  color: var(--muted);
  margin-top: 4px;
}
.spec-strip-note {
  text-align: center;
  font-size: 0.8rem;
  color: var(--muted);
  font-style: italic;
  margin-top: var(--space-3);
}

/* ---------- Features teaser ---------- */
.features-teaser { padding: var(--space-5) 0 var(--space-6); }
.features-teaser-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--space-3);
}
.feature-item {
  padding: var(--space-2) var(--space-3) var(--space-3);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--surface);
}
.feature-item h3 {
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.3;
}
.feature-item p {
  margin-top: 6px;
  font-size: 0.9rem;
  color: var(--muted);
}

/* ---------- Development status ---------- */
.status-section {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding: var(--space-6) 0;
}
.status-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  grid-template-areas:
    "copy list"
    "figure list";
  gap: var(--space-3) var(--space-5);
  align-items: start;
}
.status-copy { grid-area: copy; }
.status-grid h2 {
  font-size: clamp(1.5rem, 1.2rem + 1vw, 1.9rem);
  font-weight: 700;
  letter-spacing: -0.01em;
}
.status-lede {
  margin-top: var(--space-2);
  color: var(--muted);
  max-width: 46ch;
}
.status-figures {
  grid-area: figure;
  display: flex;
  flex-direction: column;
  gap: var(--space-3);
  max-width: 440px;
}
.status-figure img {
  width: 100%;
  border-radius: var(--radius-md);
  border: 1px solid var(--border);
}
.status-figure figcaption {
  margin-top: var(--space-1);
  font-family: var(--font-mono);
  font-size: 0.8rem;
  color: var(--muted);
}
.progress-list {
  grid-area: list;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: var(--space-3);
  display: flex;
  flex-direction: column;
  gap: var(--space-2);
  font-family: var(--font-mono);
  font-size: 0.92rem;
}
.progress-list li { display: flex; align-items: center; gap: var(--space-2); color: var(--muted); }
.progress-list .done { color: var(--text); }
.progress-list .active { color: var(--accent-dark); font-weight: 600; }
.progress-mark { width: 1.2em; text-align: center; flex-shrink: 0; }

/* ---------- Footer ---------- */
.site-footer { border-top: 1px solid var(--border); padding: var(--space-5) 0; }
.footer-grid { display: flex; flex-direction: column; align-items: flex-start; gap: var(--space-2); }
.footer-brand { font-weight: 700; }
.footer-company { color: var(--muted); font-size: 0.9rem; }
.footer-copyright { color: var(--muted); font-size: 0.85rem; }
.footer-copyright-block { text-align: left; }
.footer-tagline { color: var(--muted); font-size: 0.8rem; margin-top: 0.15em; }
.footer-disclaimer {
  margin-top: var(--space-3);
  padding-top: var(--space-3);
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--muted);
  max-width: var(--content-width);
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: 2; }
  .hero-copy { order: 1; }
  .spec-strip-grid { grid-template-columns: repeat(2, 1fr); }
  .features-teaser-grid { grid-template-columns: 1fr; }
  .status-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "copy"
      "list"
      "figure";
  }
  .status-figures { max-width: none; }
}

@media (max-width: 640px) {
  .header-row { height: 56px; }
  .signup-row { flex-direction: column; }
  .hero { padding: var(--space-4) 0; }
  .hero-visual img { max-height: 420px; }
  .status-figures { max-width: 320px; }
}
