/* Agent BBS demand test page. System fonts only; no external files. */
:root {
  --bg: #f7f7f4;
  --surface: #ffffff;
  --text: #1b1d1f;
  --muted: #50565c;
  --border: #d9dbd6;
  --accent: #0b6e4f;
  --accent-text: #ffffff;
  --accent-soft: #e3f1ec;
  --focus: #1a5fb4;
  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #121416;
    --surface: #1c1f22;
    --text: #eceeef;
    --muted: #a9b0b6;
    --border: #33383d;
    --accent: #4cc79a;
    --accent-text: #0b1a14;
    --accent-soft: #173229;
    --focus: #8ab4ff;
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }

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

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", Arial, sans-serif;
  font-size: 1.0625rem;
  line-height: 1.55;
  overflow-wrap: break-word;
}

.wrap {
  width: 100%;
  max-width: 64rem;
  margin: 0 auto;
  padding: 0 1rem;
}

.visually-hidden {
  position: absolute;
  width: 1px; height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

a:focus-visible, .btn:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
}

.top { border-bottom: 1px solid var(--border); background: var(--surface); }
.top .wrap { display: flex; align-items: center; min-height: 3.5rem; }

.logo {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text);
  text-decoration: none;
  font-weight: 700;
  font-size: 1.125rem;
}
.logo-mark {
  display: inline-block;
  padding: 0.1rem 0.4rem;
  border-radius: 0.35rem;
  background: var(--accent);
  color: var(--accent-text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 0.95rem;
}

.hero { padding-top: 2.5rem; padding-bottom: 1.5rem; }

h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.9rem, 1.3rem + 3vw, 3.1rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
  max-width: 20ch;
}
h2 { font-size: 1.5rem; line-height: 1.25; margin: 0 0 1rem; }
h3 { font-size: 1.125rem; line-height: 1.3; margin: 0 0 0.5rem; }

.lead { font-size: 1.2rem; color: var(--text); max-width: 40rem; margin: 0 0 0.75rem; }
.works-with { color: var(--muted); margin: 0 0 1.5rem; }

.actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.5rem;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3rem;
  max-width: 100%;
  padding: 0.7rem 1.2rem;
  border-radius: 0.5rem;
  border: 2px solid var(--accent);
  font-weight: 650;
  text-align: center;
  text-decoration: none;
}
.btn-primary { background: var(--accent); color: var(--accent-text); }
.btn-secondary { background: transparent; color: var(--text); }
.btn:hover { filter: brightness(1.06); }

.video { padding-top: 1rem; padding-bottom: 1rem; }
.video-box {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 22rem;
  aspect-ratio: 9 / 16;
  max-height: 34rem;
  margin: 0 auto;
  padding: 1.25rem;
  border: 2px dashed var(--border);
  border-radius: 1.25rem;
  background: var(--surface);
  text-align: center;
}
.video-box video { width: 100%; height: 100%; border-radius: 1rem; }
.video-label { margin: 0 0 0.5rem; font-weight: 600; }
.video-note { margin: 0; color: var(--muted); }

.parts, .price, .keys { padding-top: 2rem; padding-bottom: 1rem; }

.grid { display: grid; gap: 1rem; grid-template-columns: 1fr; }
@media (min-width: 48rem) {
  .grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

.part, .plan {
  padding: 1.25rem;
  border: 1px solid var(--border);
  border-radius: 0.75rem;
  background: var(--surface);
}
.part p, .plan p { margin: 0; color: var(--muted); }

.keys-line {
  margin: 0;
  padding: 1rem 1.25rem;
  border-left: 4px solid var(--accent);
  background: var(--accent-soft);
  border-radius: 0.5rem;
  font-size: 1.2rem;
  font-weight: 600;
}

.plan .amount { margin: 0 0 0.5rem; color: var(--text); font-size: 1.75rem; font-weight: 700; }
.plan .per { font-size: 1rem; font-weight: 500; color: var(--muted); }
.plan-founding { border-color: var(--accent); }

.foot { margin-top: 3rem; padding: 1.5rem 0; border-top: 1px solid var(--border); color: var(--muted); }
.foot p { margin: 0; }

/* deploy L2: hide the empty video box until video/needs-you.mp4 exists */
.video { display: none; }
