/* Landing page — light, brutalist, monospace.
   Demo UI lives in /demo.html and keeps its own dark style.css. */

:root {
  --bg: #fafaf7;
  --panel: #ffffff;
  --ink: #0b0d10;
  --ink-soft: #2a2f37;
  --muted: #6b7280;
  --border: #0b0d10;
  --border-soft: #e5e5e0;
  --accent: #0a8f7c; /* teal */
  --accent-soft: #d6f5ee;
  --warn: #b07b00;
  --code-bg: #f3f3ee;
  --max: 1080px;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  background: var(--bg);
  color: var(--ink);
  font: 15px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
}

a { color: var(--accent); text-decoration: none; }
a:hover { text-decoration: underline; }

code { font: inherit; background: var(--code-bg); padding: 1px 5px; border-radius: 3px; }
pre {
  background: var(--code-bg);
  border: 1px solid var(--border-soft);
  padding: 12px 14px;
  border-radius: 4px;
  font: 13px/1.5 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre-wrap;
  word-break: break-word;
  overflow-x: auto;
  margin: 8px 0 0;
}

strong { color: var(--ink); }
.muted { color: var(--muted); }

/* --- header / footer --- */
header.site, footer.site {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 18px 28px;
  border-bottom: 1px solid var(--border);
  max-width: var(--max);
  margin: 0 auto;
}
footer.site {
  border-bottom: 0;
  border-top: 1px solid var(--border);
  margin-top: 80px;
  font-size: 13px;
}

header.site .brand strong { font-size: 15px; letter-spacing: -0.01em; }
header.site .brand .muted { font-size: 13px; margin-left: 8px; }
header.site nav {
  display: flex;
  gap: 22px;
  font-size: 13px;
}
header.site nav a { color: var(--ink-soft); }
header.site nav a:hover { color: var(--accent); text-decoration: none; }
header.site nav a.attest {
  color: var(--muted);
  border: 1px solid var(--border-soft);
  padding: 3px 8px;
  border-radius: 3px;
}
header.site nav a.attest.tee { color: var(--accent); border-color: var(--accent); }
header.site nav a.attest.local { color: var(--warn); border-color: var(--warn); }

/* --- main layout --- */
main {
  max-width: var(--max);
  margin: 0 auto;
  padding: 56px 28px 24px;
}

section { margin-bottom: 72px; }
section h2 {
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
  margin: 0 0 16px;
  font-weight: 600;
}
.section-lead { margin: 0 0 24px; max-width: 720px; font-size: 14px; }

/* --- hero --- */
.hero h1 {
  font-size: clamp(34px, 5vw, 52px);
  line-height: 1.05;
  letter-spacing: -0.02em;
  font-weight: 700;
  margin: 0 0 20px;
  max-width: 820px;
}
.hero .lead {
  font-size: 17px;
  line-height: 1.55;
  max-width: 720px;
  margin: 0 0 28px;
  color: var(--ink-soft);
}
.hero .lead strong { color: var(--ink); font-weight: 600; }

.cta-row { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.cta {
  display: inline-block;
  padding: 11px 18px;
  border: 1px solid var(--border);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
}
.cta.primary { background: var(--ink); color: var(--bg); }
.cta.primary:hover { background: var(--accent); border-color: var(--accent); text-decoration: none; color: var(--bg); }
.cta.ghost { background: transparent; color: var(--ink); }
.cta.ghost:hover { background: var(--ink); color: var(--bg); text-decoration: none; }

.footnote { font-size: 13px; color: var(--muted); margin: 8px 0 0; max-width: 720px; }
.footnote a { color: var(--muted); border-bottom: 1px dotted var(--muted); }
.footnote a:hover { color: var(--accent); border-color: var(--accent); text-decoration: none; }

/* --- stats --- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 72px;
}
.stat {
  padding: 22px 20px;
  border-right: 1px solid var(--border);
  background: var(--panel);
}
.stat:last-child { border-right: 0; }
.stat strong {
  display: block;
  font-size: 26px;
  letter-spacing: -0.02em;
  margin-bottom: 4px;
}
.stat span { color: var(--muted); font-size: 12px; }

@media (max-width: 760px) {
  .stats { grid-template-columns: repeat(2, 1fr); }
  .stat:nth-child(2) { border-right: 0; }
  .stat:nth-child(1), .stat:nth-child(2) { border-bottom: 1px solid var(--border); }
}

/* --- examples (collapsibles) --- */
.examples details {
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  margin-bottom: 10px;
  background: var(--panel);
  overflow: hidden;
}
.examples details[open] { border-color: var(--border); }
.examples summary {
  cursor: pointer;
  padding: 14px 18px;
  font-weight: 600;
  font-size: 14px;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.examples summary::-webkit-details-marker { display: none; }
.examples summary::after { content: "+"; color: var(--muted); font-weight: 400; }
.examples details[open] summary::after { content: "−"; }
.examples details pre { margin: 0 18px 18px; }

/* --- setup cards --- */
.setup-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.card {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 20px;
  position: relative;
}
.card .step {
  position: absolute;
  top: -10px;
  left: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 0 8px;
  font-size: 12px;
  color: var(--muted);
  border-radius: 3px;
}
.card h3 {
  margin: 0 0 12px;
  font-size: 15px;
  letter-spacing: -0.01em;
}
.card p { margin: 12px 0 0; font-size: 13px; color: var(--ink-soft); }
.card code { font-size: 12px; }

@media (max-width: 760px) { .setup-grid { grid-template-columns: 1fr; } }

/* --- endpoints --- */
.endpoint {
  border: 1px solid var(--border-soft);
  border-radius: 4px;
  padding: 16px 18px;
  margin-bottom: 10px;
  background: var(--panel);
}
.endpoint-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
  flex-wrap: wrap;
}
.endpoint-head code {
  background: transparent;
  padding: 0;
  font-weight: 600;
  font-size: 14px;
  color: var(--ink);
}
.endpoint-head .price {
  font-size: 12px;
  color: var(--accent);
  background: var(--accent-soft);
  padding: 2px 8px;
  border-radius: 3px;
  white-space: nowrap;
}
.endpoint-head .price.free { color: var(--muted); background: var(--code-bg); }
.endpoint p { margin: 0; font-size: 13px; color: var(--ink-soft); }

/* --- trust --- */
.trust ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}
.trust li {
  background: var(--panel);
  border: 1px solid var(--border-soft);
  padding: 16px 18px;
  border-radius: 4px;
  font-size: 13px;
  color: var(--ink-soft);
  line-height: 1.55;
}
.trust li strong { display: block; margin-bottom: 4px; color: var(--ink); }

@media (max-width: 760px) { .trust ul { grid-template-columns: 1fr; } }

/* --- responsive header --- */
@media (max-width: 640px) {
  header.site { flex-direction: column; align-items: flex-start; gap: 12px; padding: 16px 20px; }
  header.site nav { flex-wrap: wrap; gap: 14px; }
  main { padding: 36px 20px 20px; }
}
