/* inno9.com/module/paywall — minimal docs-site style.
   Plain CSS, mobile-first, system fonts, dark mode via prefers-color-scheme. */

:root {
  --bg: #ffffff;
  --fg: #1f2328;
  --muted: #59636e;
  --border: #d8dee4;
  --accent: #0969da;
  --accent-contrast: #ffffff;
  --code-bg: #f6f8fa;
  --placeholder-bg: #f6f8fa;
  --btn-secondary-bg: #f6f8fa;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0d1117;
    --fg: #e6edf3;
    --muted: #9198a1;
    --border: #3d444d;
    --accent: #4493f8;
    --accent-contrast: #0d1117;
    --code-bg: #151b23;
    --placeholder-bg: #151b23;
    --btn-secondary-bg: #151b23;
  }
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica,
    Arial, sans-serif, "Apple Color Emoji", "Segoe UI Emoji";
  font-size: 16px;
  line-height: 1.65;
  color: var(--fg);
  background: var(--bg);
  -webkit-text-size-adjust: 100%;
}

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

code {
  font-family: ui-monospace, SFMono-Regular, "SF Mono", Menlo, Consolas,
    "Liberation Mono", monospace;
  font-size: 0.875em;
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 0.1em 0.35em;
}

pre {
  background: var(--code-bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
  overflow-x: auto;
  line-height: 1.5;
}

pre code {
  background: none;
  border: 0;
  padding: 0;
  font-size: 0.85em;
}

/* Header */
.site-header {
  border-bottom: 1px solid var(--border);
}

.header-row {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1.25rem;
  padding-top: 1rem;
  padding-bottom: 1rem;
}

.brand {
  font-weight: 700;
  color: var(--fg);
  text-decoration: none;
}

.brand-sub { color: var(--muted); font-weight: 400; }

.site-nav a {
  color: var(--muted);
  text-decoration: none;
  margin-left: 1rem;
  font-size: 0.95em;
}

.site-nav a:hover { color: var(--accent); }

/* Sections */
main { padding: 2.5rem 1.25rem 3rem; }

section { margin-bottom: 3rem; }

h1 {
  font-size: 1.9rem;
  line-height: 1.25;
  margin: 0 0 1rem;
}

h2 {
  font-size: 1.4rem;
  margin: 0 0 1rem;
  padding-top: 0.25rem;
}

h3 { font-size: 1.1rem; margin: 1.75rem 0 0.75rem; }

.subhead {
  font-size: 1.1rem;
  color: var(--muted);
  max-width: 40rem;
  margin: 0 0 1.5rem;
}

/* Buttons */
.cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin: 0 0 1.75rem;
}

.btn {
  display: inline-block;
  padding: 0.6rem 1.1rem;
  border-radius: 8px;
  border: 1px solid transparent;
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
}

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

.btn-primary:hover { filter: brightness(1.08); }

.btn-secondary {
  background: var(--btn-secondary-bg);
  color: var(--fg);
  border-color: var(--border);
}

/* Hero demo GIF placeholder: 16:9-ish, centered, subtle border. */
.demo-gif {
  margin: 0;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0;
  overflow: hidden;
  background: var(--placeholder-bg);
}

.demo-gif img {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: contain;
}

.demo-gif figcaption {
  padding: 0.5rem 1rem;
  border-top: 1px solid var(--border);
  color: var(--muted);
  font-size: 0.85rem;
  text-align: center;
}

/* Table */
.table-wrap { overflow-x: auto; }

table {
  border-collapse: collapse;
  width: 100%;
  min-width: 34rem; /* scrolls horizontally on narrow screens */
}

th, td {
  text-align: left;
  vertical-align: top;
  border: 1px solid var(--border);
  padding: 0.6rem 0.75rem;
}

th { background: var(--code-bg); }

td:first-child { white-space: nowrap; }

/* Misc */
blockquote {
  margin: 1.25rem 0;
  padding: 0.25rem 1rem;
  border-left: 3px solid var(--accent);
  background: var(--placeholder-bg);
  border-radius: 0 6px 6px 0;
}

.price-line { font-size: 1.2rem; }

.muted { color: var(--muted); }
.small { font-size: 0.85rem; }

/* FAQ */
details {
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 0;
}

details summary {
  cursor: pointer;
  font-weight: 600;
}

details p { margin: 0.5rem 0 0; }

/* Footer */
.site-footer {
  border-top: 1px solid var(--border);
  padding: 1.5rem 0 2.5rem;
  color: var(--muted);
}

.site-footer .trust { margin-top: 0; }

/* Terminal-style block — the verify receipt (added 2026-09-03) */
pre.terminal {
  background: #0d1117;
  border: 1px solid #3d444d;
  color: #e6edf3;
}

pre.terminal code { color: inherit; }

.verify-pass { color: #3fb950; font-weight: 600; }

/* Agent facts table (added 2026-09-03) */
table.agent-facts { min-width: 22rem; }

table.agent-facts th[scope="row"] { white-space: nowrap; }
