:root {
  --bg: #0f1216;
  --bg-elev: #171b21;
  --border: #262c35;
  --text: #e8ebf0;
  --text-dim: #9aa4b2;
  --accent: #5b8cff;
  --radius: 10px;
}

@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f6f8;
    --bg-elev: #ffffff;
    --border: #e2e5ea;
    --text: #1a1d23;
    --text-dim: #5b6472;
  }
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  background: var(--bg);
  color: var(--text);
}

.topbar {
  border-bottom: 1px solid var(--border);
  background: var(--bg-elev);
}
.topbar-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 16px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { font-weight: 700; font-size: 1.05rem; }
.corp-link {
  color: var(--text-dim);
  text-decoration: none;
  font-size: 0.9rem;
}
.corp-link:hover { color: var(--accent); }

.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 40px 20px 60px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.hero { padding: 20px 0 8px; }
.hero h1 { font-size: 2rem; margin: 0 0 10px; }
.lede { color: var(--text-dim); font-size: 1.05rem; margin: 0 0 20px; max-width: 52ch; }

.cta-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}
.btn-primary {
  background: var(--accent);
  color: white;
  border: none;
  border-radius: 999px;
  padding: 12px 24px;
  font-size: 1rem;
  font-weight: 600;
  cursor: pointer;
}
.btn-primary:hover { background: color-mix(in srgb, var(--accent) 85%, black); }
.btn-primary:disabled { cursor: not-allowed; opacity: 0.6; }
.cta-note { color: var(--text-dim); font-size: 0.85rem; }

.followup-callout {
  margin-top: 14px;
  padding: 16px;
  border: 1px solid var(--accent);
  border-radius: var(--radius);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}
.followup-callout p {
  margin: 0 0 12px;
  font-size: 0.92rem;
  color: var(--text);
}
.followup-callout .btn-outline {
  display: inline-block;
  text-decoration: none;
  border: 1px solid var(--accent);
  color: var(--accent);
  background: var(--bg-elev);
  border-radius: 999px;
  padding: 10px 20px;
  font-size: 0.92rem;
  font-weight: 600;
}
.followup-callout .btn-outline:hover {
  background: var(--accent);
  color: white;
}

.card {
  background: var(--bg-elev);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
}
.card h2 { margin-top: 0; font-size: 1.05rem; }
.card p { color: var(--text-dim); line-height: 1.5; }
.card a { color: var(--accent); }

.footer {
  color: var(--text-dim);
  font-size: 0.8rem;
  text-align: center;
  margin-top: 20px;
}
.footer a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px dotted var(--text-dim);
}
.footer a:hover { color: var(--accent); }
.footer .version-line { font-size: 0.72rem; margin-top: 4px; }

.flow-progress {
  color: var(--text-dim);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 6px;
}
.flow-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 14px;
}
.btn-option {
  text-align: left;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  color: var(--text);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s;
}
.btn-option:hover {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 8%, var(--bg));
}
.flow-comment {
  width: 100%;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  font-size: 0.95rem;
  font-family: inherit;
  color: var(--text);
  resize: vertical;
  margin-bottom: 12px;
}
.flow-comment:focus {
  outline: none;
  border-color: var(--accent);
}
.flow-extra {
  margin: 18px 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.flow-extra-label {
  font-size: 0.88rem;
  color: var(--text-dim);
  margin: 0 0 10px;
}
.btn-option-selected {
  border-color: var(--accent);
  background: color-mix(in srgb, var(--accent) 12%, var(--bg));
  color: var(--accent);
  font-weight: 600;
}
.flow-extra input.flow-comment { margin-bottom: 10px; }
.flow-submit-status {
  margin-top: 12px;
  font-size: 0.88rem;
  color: var(--good, #3ecf8e);
}
.flow-submit-status.flow-submit-error { color: var(--bad, #f56464); }
.flow-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 14px;
}
.btn-text {
  display: block;
  background: none;
  border: none;
  color: var(--text-dim);
  font-size: 0.85rem;
  cursor: pointer;
  padding: 0;
}
.btn-text[hidden] { display: none; }
.btn-text:hover { color: var(--accent); }

.flow-summary {
  list-style: none;
  padding: 0;
  margin: 14px 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.flow-summary li {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 12px;
  color: var(--text-dim);
  font-size: 0.92rem;
}
.flow-summary strong { color: var(--text); }

.flow-cta-note {
  color: var(--text-dim);
  font-size: 0.82rem;
  font-style: italic;
  margin: 16px 0;
}

.flow-limit-note {
  color: var(--text-dim);
  font-size: 0.76rem;
  margin: 10px 0 0;
}

/* Honeypot (issue #10): off-screen rather than display:none/visibility:
   hidden, since some bots skip fields hidden that way. Real visitors
   never see or reach it (tabindex="-1" keeps it out of tab order). */
.hp-field {
  position: absolute;
  left: -9999px;
  top: -9999px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

#turnstile-container {
  margin: 4px 0 12px;
}
