/* BAOVE — Execution Gap Assessment. Dark theme, mobile-first, no frameworks. */

:root {
  --bg: #0A0A0A;
  --accent: #5B21B6;
  --text: #EDEDED;
  --muted: #9A9A9A;
  --border: #262626;
  --surface: #131313;
}

* {
  box-sizing: border-box;
}

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

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

.wrap {
  max-width: 720px;
  margin: 0 auto;
  padding: 0 20px;
}

section {
  padding: 48px 0;
  border-bottom: 1px solid var(--border);
}

h1, h2, h3 {
  line-height: 1.2;
  margin: 0 0 16px;
}

h1 {
  font-size: 2rem;
}

h2 {
  font-size: 1.4rem;
  color: var(--text);
}

p {
  margin: 0 0 16px;
  color: var(--text);
}

.sub {
  color: var(--muted);
  font-size: 1.05rem;
}

a {
  color: var(--accent);
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  padding: 14px 24px;
  border-radius: 8px;
  border: none;
  cursor: pointer;
  font-size: 1rem;
  text-align: center;
}

.btn:hover {
  opacity: 0.9;
}

.btn-secondary {
  display: inline-block;
  background: transparent;
  color: var(--accent);
  border: 1px solid var(--accent);
  text-decoration: none;
  font-weight: 600;
  padding: 12px 22px;
  border-radius: 8px;
  font-size: 1rem;
  text-align: center;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  counter-reset: step;
}

.steps li {
  counter-increment: step;
  padding: 12px 0 12px 40px;
  position: relative;
  border-bottom: 1px solid var(--border);
}

.steps li:last-child {
  border-bottom: none;
}

.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 10px;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
  font-size: 0.85rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.counter-box, .proof-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
}

.counter-box strong {
  color: var(--accent);
}

/* ---- form ---- */

fieldset {
  border: none;
  padding: 0;
  margin: 0 0 28px;
}

legend {
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0;
}

.field {
  margin-bottom: 28px;
}

.field label.field-label {
  display: block;
  font-weight: 600;
  margin-bottom: 10px;
}

.required-mark {
  color: var(--accent);
}

input[type="text"],
textarea {
  width: 100%;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--text);
  padding: 12px;
  border-radius: 8px;
  font-size: 1rem;
  font-family: inherit;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

.option-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.option-list label {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 12px;
  cursor: pointer;
}

.option-list input {
  accent-color: var(--accent);
  width: 18px;
  height: 18px;
  flex-shrink: 0;
}

/* honeypot: visually hidden but present, not display:none */
.hp-field {
  position: absolute;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  height: 1px;
  width: 1px;
  overflow: hidden;
  white-space: nowrap;
}

.error-msg {
  color: #f87171;
  font-size: 0.9rem;
  margin-top: 8px;
  display: none;
}

.error-msg.show {
  display: block;
}

/* ---- result screen ---- */

#result {
  display: none;
}

.score-big {
  font-size: 3rem;
  font-weight: 800;
  color: var(--accent);
  margin-bottom: 4px;
}

.leak-list {
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
}

.leak-list li {
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
}

.deal-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin: 20px 0;
  white-space: pre-line;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 20px;
}

.fine-print {
  color: var(--muted);
  font-size: 0.85rem;
  margin-top: 16px;
}

footer {
  padding: 32px 0 60px;
  color: var(--muted);
  font-size: 0.9rem;
}

footer a {
  color: var(--muted);
  text-decoration: underline;
}

footer .legal-links {
  margin-bottom: 10px;
}

.submit-error {
  color: #f87171;
  font-size: 0.9rem;
  margin-top: 10px;
  display: none;
}

.submit-error.show {
  display: block;
}
