:root {
  --bg: #f4f1ea;
  --card: #fffcf7;
  --ink: #1c2a32;
  --muted: #5c6b73;
  --line: #d9d2c5;
  --accent: #0f5f66;
  --accent-ink: #fff;
  --warn: #8a4b12;
  --block: #8b2430;
  --ok: #1f6b45;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
  background: var(--bg);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", sans-serif;
  overflow-x: hidden;
}

body {
  padding: 16px;
}

.brand {
  width: 100%;
  max-width: 560px;
  margin: 0 auto 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  font-size: 0.8rem;
}

.brand a {
  color: var(--accent);
  text-decoration: none;
}

.wrap {
  width: 100%;
  max-width: 560px;
  margin: 0 auto;
}

h1,
h2,
p {
  margin: 0 0 12px;
}

h1 {
  font-size: 1.6rem;
  line-height: 1.25;
}

.lede {
  color: var(--muted);
  font-size: 1rem;
}

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 20px;
}

.progress {
  color: var(--muted);
  font-size: 0.9rem;
  margin-bottom: 8px;
}

.bar {
  height: 6px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 20px;
}

.bar > span {
  display: block;
  height: 100%;
  background: var(--accent);
}

.stack {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

button,
.btn {
  appearance: none;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  font: inherit;
  text-align: left;
  padding: 14px 16px;
  min-height: 48px;
  border-radius: 12px;
  cursor: pointer;
}

button.primary,
.btn.primary {
  background: var(--accent);
  color: var(--accent-ink);
  border-color: var(--accent);
  text-align: center;
  font-weight: 600;
}

button.ghost {
  background: transparent;
  border-color: transparent;
  color: var(--accent);
  text-align: center;
}

button:focus-visible,
input:focus-visible {
  outline: 3px solid #7db8bd;
  outline-offset: 2px;
}

.level-great_fit h2 { color: var(--ok); }
.level-may_work h2 { color: var(--warn); }
.level-not_recommended h2 { color: var(--block); }

.bullets {
  margin: 0 0 20px;
  padding-left: 1.1rem;
}

.bullets li {
  margin-bottom: 8px;
}

label {
  display: block;
  font-weight: 600;
  margin-bottom: 6px;
}

input[type='email'] {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  font: inherit;
  margin-bottom: 12px;
}

.note,
.error {
  color: var(--muted);
  font-size: 0.95rem;
  margin-bottom: 12px;
}

.error {
  color: var(--block);
}

.hidden {
  display: none;
}

.site-footer {
  width: 100%;
  max-width: 560px;
  margin: 24px auto 8px;
  padding: 16px 0 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 20px;
  border-top: 1px solid var(--line);
  font-size: 0.9rem;
}

.site-footer a {
  color: var(--muted);
  text-decoration: none;
}
