/* Mocker public site: landing, pricing and abuse report pages. */
:root {
  --bg: #ffffff;
  --bg-soft: #f6f7fb;
  --text: #16181d;
  --muted: #5b6070;
  --border: #e3e5ec;
  --accent: #4f46e5;
  --accent-hover: #4338ca;
  --accent-soft: #eef0ff;
  --accent-text: #ffffff;
  --code-bg: #111827;
  --code-text: #e5e7eb;
  --ok: #0f7b4a;
  --ok-soft: #e7f6ee;
  --err: #b42318;
  --err-soft: #fdecea;
  --radius: 10px;
  --shadow: 0 1px 2px rgba(16, 24, 40, 0.06), 0 4px 16px rgba(16, 24, 40, 0.06);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  --mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  color-scheme: light dark;
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0f1117;
    --bg-soft: #161923;
    --text: #e8eaf0;
    --muted: #9aa1b2;
    --border: #2a2f3d;
    --accent: #818cf8;
    --accent-hover: #a5b4fc;
    --accent-soft: #1f2240;
    --accent-text: #0f1117;
    --code-bg: #0a0c11;
    --ok: #4ade80;
    --ok-soft: #10261a;
    --err: #f87171;
    --err-soft: #2a1414;
    --shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 16px/1.6 var(--font);
}
a { color: var(--accent); }
a:hover { color: var(--accent-hover); }
code, pre { font-family: var(--mono); font-size: 0.9em; }
[hidden] { display: none !important; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 16px; }

/* Header */
.site-header { border-bottom: 1px solid var(--border); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 60px; flex-wrap: wrap; }
.brand { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; font-size: 1.15rem; color: var(--text); text-decoration: none; }
.brand img { width: 26px; height: 26px; }
.site-nav { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.site-nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
.site-nav a:hover, .site-nav a[aria-current="page"] { color: var(--text); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  padding: 10px 18px; border-radius: 8px; border: 1px solid var(--border);
  background: var(--bg); color: var(--text); font: inherit; font-weight: 600;
  text-decoration: none; cursor: pointer; line-height: 1.2;
}
.btn:hover { border-color: var(--accent); color: var(--text); }
.btn:disabled { opacity: 0.6; cursor: progress; }
.btn-primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn-primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); color: var(--accent-text); }
.btn-lg { padding: 14px 22px; font-size: 1.05rem; }
.btn-sm { padding: 6px 12px; font-size: 0.875rem; }
.site-nav .btn { color: var(--accent-text); }

/* Hero */
.hero { padding: 64px 0 40px; text-align: center; }
.hero h1 { font-size: clamp(2rem, 5vw, 3.2rem); line-height: 1.15; margin: 0 0 16px; letter-spacing: -0.02em; }
.hero .lead { font-size: 1.15rem; color: var(--muted); max-width: 680px; margin: 0 auto 28px; }
.cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.cta-note { color: var(--muted); font-size: 0.9rem; margin-top: 14px; }
.turnstile-slot { display: flex; justify-content: center; margin-top: 12px; }
.turnstile-slot:empty { display: none; }

/* Instant endpoint result */
.result {
  max-width: 720px; margin: 28px auto 0; text-align: left;
  border: 1px solid var(--border); border-radius: var(--radius); padding: 20px;
  background: var(--bg-soft); box-shadow: var(--shadow);
}
.result h2 { margin: 0 0 12px; font-size: 1.2rem; }
.result p { margin: 8px 0; }
.copy-row { display: flex; gap: 8px; align-items: stretch; margin: 6px 0 14px; }
.copy-row code {
  flex: 1; min-width: 0; overflow-x: auto; white-space: nowrap;
  background: var(--code-bg); color: var(--code-text); padding: 10px 12px; border-radius: 8px;
}
.result .actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }

/* Messages */
.alert { border-radius: 8px; padding: 10px 14px; margin: 16px auto 0; max-width: 720px; text-align: left; }
.alert-error { background: var(--err-soft); color: var(--err); }
.alert-ok { background: var(--ok-soft); color: var(--ok); }

/* Sections */
.section { padding: 48px 0; }
.section-soft { background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.section h2 { font-size: 1.7rem; margin: 0 0 8px; text-align: center; }
.section .sub { color: var(--muted); text-align: center; margin: 0 auto 32px; max-width: 640px; }
.features { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.feature { border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; background: var(--bg); }
.feature h3 { margin: 0 0 6px; font-size: 1.05rem; }
.feature p { margin: 0; color: var(--muted); font-size: 0.95rem; }
pre.code {
  background: var(--code-bg); color: var(--code-text); padding: 16px; border-radius: var(--radius);
  overflow-x: auto; margin: 0 auto; max-width: 720px; line-height: 1.5;
}
.pre-comment { color: #8b93a7; }

/* Pricing */
.page-head { padding: 48px 0 16px; text-align: center; }
.page-head h1 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin: 0 0 10px; }
.page-head p { color: var(--muted); margin: 0 auto; max-width: 640px; }
.highlight { display: inline-block; margin-top: 14px; background: var(--accent-soft); color: var(--text); padding: 6px 12px; border-radius: 999px; font-weight: 600; }
.table-scroll { overflow-x: auto; margin: 24px 0; border: 1px solid var(--border); border-radius: var(--radius); }
.pricing-table { width: 100%; border-collapse: collapse; min-width: 620px; }
.pricing-table th, .pricing-table td { padding: 12px 14px; border-bottom: 1px solid var(--border); text-align: center; }
.pricing-table tbody th { text-align: left; font-weight: 500; color: var(--muted); }
.pricing-table thead th { vertical-align: bottom; }
.pricing-table tr > :first-child { position: sticky; left: 0; background: var(--bg); }
.pricing-table tr:last-child td, .pricing-table tr:last-child th { border-bottom: 0; }
.plan-name { display: block; font-size: 1.05rem; }
.plan-price { display: block; font-size: 1.8rem; font-weight: 700; }
.plan-price small { font-size: 0.85rem; font-weight: 500; color: var(--muted); }
.fine { color: var(--muted); font-size: 0.9rem; text-align: center; }

/* Forms */
.form-card { max-width: 640px; margin: 0 auto 48px; border: 1px solid var(--border); border-radius: var(--radius); padding: 24px; background: var(--bg-soft); }
.field { margin-bottom: 16px; }
.field label { display: block; font-weight: 600; margin-bottom: 6px; }
.field .hint { color: var(--muted); font-size: 0.875rem; margin-top: 4px; }
.field input, .field textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--bg);
  border: 1px solid var(--border); border-radius: 8px; padding: 10px 12px;
}
.field input:focus, .field textarea:focus { outline: 2px solid var(--accent); outline-offset: 1px; }
.field textarea { min-height: 140px; resize: vertical; }
.prose { max-width: 720px; margin: 0 auto; }
.prose h2 { text-align: left; font-size: 1.3rem; margin-top: 32px; }
.prose li { margin-bottom: 6px; }

/* Footer */
.site-footer { border-top: 1px solid var(--border); padding: 28px 0; color: var(--muted); font-size: 0.9rem; }
.site-footer .wrap { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.site-footer nav { display: flex; gap: 18px; flex-wrap: wrap; }
.site-footer a { color: var(--muted); }

@media (max-width: 560px) {
  .hero { padding-top: 40px; }
  .site-nav { gap: 12px; }
  .copy-row { flex-direction: column; }
  .cta-row .btn { width: 100%; }
}
