:root {
  --ink: #0E1A25;
  --paper: #FFFFFF;
  --accent: #1EA86E;
  --accent-dark: #0f6e46;
  --panel: #F4F6F5;
  --border: #DCE2E0;
  --max: 760px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  line-height: 1.55;
  font-size: 17px;
}

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

.wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

header.top {
  background: var(--ink);
  color: #fff;
  padding: 14px 0;
}
header.top .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
}
header.top .brand {
  font-weight: 700;
  letter-spacing: 0.01em;
  font-size: 18px;
}
header.top nav a {
  color: #fff;
  text-decoration: none;
  margin-left: 18px;
  font-size: 14px;
  opacity: 0.85;
}
header.top nav a:hover { opacity: 1; }

section {
  padding: 56px 0;
  border-bottom: 1px solid var(--border);
}
section:last-of-type { border-bottom: none; }

h1 {
  font-size: 34px;
  line-height: 1.25;
  margin: 0 0 14px;
}
h2 {
  font-size: 24px;
  margin: 0 0 18px;
  position: relative;
  padding-bottom: 10px;
}
h2::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 48px;
  height: 3px;
  background: var(--accent);
  border-radius: 2px;
}
h3 { font-size: 18px; margin: 0 0 8px; }

.lede {
  font-size: 19px;
  color: #33404b;
}

.tag {
  display: inline-block;
  background: var(--accent);
  color: #04230f;
  font-weight: 700;
  font-size: 13px;
  padding: 3px 10px;
  border-radius: 999px;
  margin-bottom: 10px;
}

.quote {
  border-left: 3px solid var(--accent);
  padding: 4px 0 4px 18px;
  margin: 18px 0;
  font-style: italic;
  color: #29343d;
}
.quote cite {
  display: block;
  font-style: normal;
  font-size: 14px;
  color: #66727a;
  margin-top: 6px;
}

.btn {
  display: inline-block;
  background: var(--accent);
  color: #04230f;
  font-weight: 700;
  text-decoration: none;
  padding: 13px 22px;
  border-radius: 8px;
  border: none;
  font-size: 16px;
  cursor: pointer;
  font-family: inherit;
}
.btn:hover { background: var(--accent-dark); color: #fff; }
.btn.secondary {
  background: transparent;
  color: var(--ink);
  border: 1.5px solid var(--ink);
}
.btn.secondary:hover { background: var(--ink); color: #fff; }
.btn:disabled { opacity: 0.5; cursor: not-allowed; }

.cta-row { margin-top: 22px; display: flex; gap: 12px; flex-wrap: wrap; }
.fine-note { font-size: 13px; color: #66727a; margin-top: 8px; }

ol.steps { padding-left: 20px; }
ol.steps li { margin-bottom: 10px; }
.optional-flag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  background: var(--panel);
  border: 1.5px dashed #8a9a92;
  color: #45564d;
  padding: 2px 8px;
  border-radius: 5px;
  margin-left: 8px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 20px;
  margin-top: 16px;
}

.rivals-note {
  font-size: 15px;
  color: #45564d;
}

/* --- Assessment --- */
#assessment-box {
  background: var(--panel);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 24px;
}
.q-progress {
  font-size: 13px;
  color: #66727a;
  margin-bottom: 6px;
}
.q-text {
  font-size: 19px;
  font-weight: 600;
  margin: 6px 0 16px;
}
.q-options label {
  display: block;
  background: #fff;
  border: 1.5px solid var(--border);
  border-radius: 8px;
  padding: 12px 14px;
  margin-bottom: 10px;
  cursor: pointer;
  font-size: 15px;
}
.q-options label:hover { border-color: var(--accent); }
.q-options input { margin-right: 10px; }
.q-options label.selected {
  border-color: var(--accent);
  background: #eafaf1;
}
.q-nav {
  display: flex;
  justify-content: space-between;
  margin-top: 18px;
  align-items: center;
}
.q-nav .left { display: flex; gap: 10px; }
.q-error {
  color: #a12626;
  font-size: 14px;
  margin-top: 8px;
  display: none;
}
.link-quiet {
  background: none;
  border: none;
  color: #66727a;
  font-size: 13px;
  cursor: pointer;
  text-decoration: underline;
  font-family: inherit;
}

/* --- Result --- */
#result-box { display: none; }
.result-level {
  font-size: 26px;
  font-weight: 700;
  margin-bottom: 4px;
}
.result-scores {
  display: flex;
  gap: 18px;
  flex-wrap: wrap;
  margin: 16px 0 6px;
}
.dim-score {
  font-size: 14px;
  border-left: 3px solid var(--border);
  padding-left: 8px;
}
.dim-score b { display: block; font-size: 18px; }

.rings-wrap { display: flex; justify-content: center; margin: 18px 0; }
.rings-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: -6px;
  margin-bottom: 8px;
  font-size: 12.5px;
  color: #45564d;
}
.legend-item { display: inline-flex; align-items: center; gap: 6px; }
.legend-swatch {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

.issues-list { margin: 16px 0; padding-left: 18px; }
.issues-list li { margin-bottom: 10px; }
.issues-list blockquote {
  margin: 4px 0 0;
  padding-left: 10px;
  border-left: 2px solid var(--border);
  color: #45564d;
  font-style: italic;
  font-size: 14px;
}

.focus-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px;
  margin: 16px 0;
}

.standing-line {
  font-size: 13px;
  color: #66727a;
  border-top: 1px dashed var(--border);
  padding-top: 12px;
  margin-top: 18px;
}

/* --- Capture form --- */
#capture-box {
  margin-top: 22px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}
.field { margin-bottom: 12px; }
.field label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 4px; }
.field input[type=text], .field input[type=email] {
  width: 100%;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: 7px;
  font-size: 15px;
  font-family: inherit;
}
.field.consent { display: flex; align-items: flex-start; gap: 8px; }
.field.consent input { margin-top: 4px; }
.field.consent label { font-weight: 400; font-size: 13px; }
.status-line { font-size: 14px; margin-top: 10px; min-height: 18px; }
.status-line.error { color: #a12626; }
.status-line.ok { color: var(--accent-dark); }

footer {
  padding: 30px 0 50px;
  font-size: 13px;
  color: #66727a;
}
footer a { color: #66727a; }

@media (max-width: 480px) {
  h1 { font-size: 27px; }
  section { padding: 40px 0; }
  body { font-size: 16px; }
}
