/* Light theme, dark text - landing quiz */

:root {
  --bg: #f7f8fa;
  --card: #ffffff;
  --text: #1a1a2e;
  --muted: #5a5a72;
  --accent: #1d4ed8;
  --accent-hover: #1e40af;
  --border: #e3e5ea;
  --error: #b91c1c;
  --high: #b91c1c;
  --medium: #b45309;
  --low: #15803d;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: system-ui, -apple-system, "Segoe UI", sans-serif;
  background: var(--bg);
  background-image:
    radial-gradient(900px 500px at 15% -5%, #eef2ff 0%, rgba(238, 242, 255, 0) 60%),
    radial-gradient(900px 500px at 100% 0%, #e7f0fb 0%, rgba(231, 240, 251, 0) 55%);
  background-attachment: fixed;
  color: var(--text);
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 24px;
}

.brand { font-weight: 700; }

.lang-btn {
  background: none;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 4px 12px;
  cursor: pointer;
  color: var(--muted);
}

.lang-btn.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
}

.container {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 24px 16px 48px;
}

.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.06);
  margin-bottom: 24px;
}

h1 { font-size: 1.9rem; line-height: 1.25; margin-top: 0; }
h2 { font-size: 1.25rem; line-height: 1.4; margin-top: 0; }
p { line-height: 1.55; color: var(--muted); }

.hidden { display: none !important; }

/* Intro card: a touch more presence than the inner steps. */
#intro { text-align: center; padding: 44px 32px; }
#intro .subtitle { font-size: 1.05rem; max-width: 30rem; margin: 12px auto 24px; }
#intro .primary { padding: 14px 34px; font-size: 17px; }

/* Trust badges - the "decoration" that fits a compliance product. */
.trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 10px 18px;
  margin-top: 26px;
  padding-top: 22px;
  border-top: 1px solid var(--border);
}

.trust span {
  font-size: 13px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.progress-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  letter-spacing: 0.03em;
  margin-bottom: 8px;
}

button.primary {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 8px;
  padding: 12px 28px;
  font-size: 16px;
  cursor: pointer;
}

button.primary:hover { background: var(--accent-hover); }

button.secondary {
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 10px 20px;
  cursor: pointer;
  color: var(--muted);
}

.progress {
  height: 6px;
  background: var(--border);
  border-radius: 3px;
  margin-bottom: 24px;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  width: 0;
  background: var(--accent);
  transition: width 0.25s ease;
}

.option {
  display: block;
  width: 100%;
  text-align: left;
  background: none;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 12px 16px;
  margin-bottom: 10px;
  font-size: 15px;
  cursor: pointer;
  color: var(--text);
}

.option:hover { border-color: var(--accent); }

.nav { margin-top: 8px; }

form label {
  display: block;
  margin-bottom: 16px;
  font-size: 14px;
  font-weight: 600;
}

form input[type="text"],
form input[type="email"] {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  background: #fff;
  color: var(--text);
}

/* Honeypot: visually removed but present in the DOM for bots. */
.hp {
  position: absolute;
  left: -9999px;
  top: -9999px;
  opacity: 0;
  height: 0;
  overflow: hidden;
}

label.checkbox {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  font-weight: 400;
  font-size: 13px;
  color: var(--muted);
}

label.checkbox input { margin-top: 3px; }

.privacy-note { font-size: 13px; }
.privacy-note a, .footer a { color: var(--accent); }

.error { color: var(--error); font-size: 14px; }

.score-wrap {
  display: flex;
  align-items: baseline;
  gap: 16px;
  margin: 16px 0;
}

.score { font-size: 3rem; font-weight: 700; }

.level {
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.level.high { color: var(--high); }
.level.medium { color: var(--medium); }
.level.low { color: var(--low); }

.email-note { font-size: 14px; }

.footer {
  display: flex;
  justify-content: space-between;
  padding: 16px 24px;
  font-size: 13px;
  color: var(--muted);
  border-top: 1px solid var(--border);
}
