:root {
  --ink: #2b2620;
  --ink-muted: #6f665a;
  --accent: #b8622f;
  --accent-dark: #96502d;
  --bg: #faf7f1;
  --bg-alt: #ffffff;
  --bg-header: #f3efe7;
  --border: #e5dfd0;
  --radius: 8px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: -apple-system, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: var(--accent); }
.wrap {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 24px;
}
header.site {
  background: var(--bg-header);
  border-bottom: 1px solid var(--border);
}
header.site .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: 18px;
  padding-bottom: 18px;
  max-width: 900px;
}
header.site .logo {
  font-size: 20px;
  letter-spacing: 0.02em;
  text-decoration: none;
}
header.site .logo .logo-bim { color: var(--ink); font-weight: 700; }
header.site .logo .logo-advisor { color: var(--accent); font-weight: 400; font-style: italic; }
header.site nav a {
  color: var(--ink-muted);
  text-decoration: none;
  margin-left: 22px;
  font-size: 15px;
}
header.site nav a:hover { color: var(--ink); }

.kicker {
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-size: 12px;
  font-weight: 600;
  color: var(--accent);
  margin: 0 0 10px;
}

section.hero {
  background: var(--bg-header);
  padding: 60px 0 68px;
  border-bottom: 1px solid var(--border);
}
section.hero .wrap { max-width: 900px; }
section.hero h1 {
  font-size: 34px;
  line-height: 1.3;
  margin: 0 0 20px;
  font-weight: 700;
  color: var(--ink);
}
section.hero p {
  font-size: 18px;
  color: var(--ink-muted);
  max-width: 620px;
  margin: 0 0 32px;
}
.cta-row { display: flex; gap: 16px; flex-wrap: wrap; }
.btn {
  display: inline-block;
  padding: 13px 24px;
  border-radius: var(--radius);
  text-decoration: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: 1px solid transparent;
}
.btn-accent { background: var(--accent); color: #fff6ec; }
.btn-accent:hover { background: var(--accent-dark); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink-muted); }
.btn-outline:hover { border-color: var(--ink); background: rgba(43,38,32,0.04); }

section.block { padding: 60px 0; border-bottom: 1px solid var(--border); background: var(--bg); }
section.block.alt { background: var(--bg-alt); }
section.block h2 {
  font-size: 26px;
  margin: 0 0 8px;
  color: var(--ink);
}
section.block h3 {
  font-size: 18px;
  margin: 28px 0 8px;
  color: var(--ink);
  font-weight: 600;
}
section.block .lede {
  color: var(--ink-muted);
  font-size: 16px;
  margin: 0 0 32px;
  max-width: 560px;
}
section.block p { max-width: 640px; }

fieldset {
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 0 0 20px;
  background: #ffffff;
}
fieldset legend {
  font-weight: 600;
  font-size: 15.5px;
  margin-bottom: 10px;
  padding: 0;
  color: var(--ink);
}
.opt {
  display: block;
  padding: 8px 10px;
  border-radius: 6px;
  margin-bottom: 4px;
  cursor: pointer;
  font-size: 15px;
  transition: background-color 0.15s;
}
.opt:hover { background: var(--bg-header); }
.opt input { margin-right: 10px; }

.quiz-actions { margin-top: 8px; }
.quiz-error {
  color: #a3341c;
  font-size: 14px;
  margin-top: 10px;
  display: none;
}

.result {
  margin-top: 28px;
  padding: 22px 24px;
  border-left: 4px solid var(--accent);
  border-radius: 0 10px 10px 0;
  background: #ffffff;
  display: none;
}
.result.visible { display: block; }
.result .level {
  font-size: 20px;
  font-weight: 700;
  color: var(--ink);
  margin: 0 0 10px;
}
.gauge {
  height: 8px;
  max-width: 320px;
  background: var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin: 0 0 16px;
}
.gauge-fill {
  height: 100%;
  width: 0%;
  background: var(--accent);
  transition: width 0.5s ease;
}
.result p { margin: 0 0 10px; }
.result ul.tips { margin: 0 0 14px; padding-left: 20px; }
.result ul.tips li { margin-bottom: 6px; }
.result .followup {
  font-size: 14px;
  color: var(--ink-muted);
  margin-top: 16px;
}
.result .disclaimer {
  font-size: 12.5px;
  color: var(--ink-muted);
  margin-top: 8px;
}
.result .share-line {
  font-size: 13px;
  color: var(--ink-muted);
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

section#contact .wrap { text-align: left; }
section#contact p { font-size: 16px; }

.field { margin-bottom: 14px; max-width: 420px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 5px; color: var(--ink); }
.field input[type="text"], .field input[type="email"] {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  font-size: 15px;
  font-family: inherit;
  background: #ffffff;
}
.opt.consent {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  max-width: 500px;
  font-size: 14px;
  border: 1px solid var(--border);
  background: #ffffff;
  padding: 12px 14px;
}
.opt.consent:hover { background: #ffffff; }
.opt.consent input { margin-top: 3px; }

footer {
  padding: 32px 0;
  text-align: center;
  color: var(--ink-muted);
  font-size: 14px;
}
footer a { color: var(--ink-muted); text-decoration: underline; margin: 0 6px; }
footer a:hover { color: var(--accent); }

@media (max-width: 600px) {
  section.hero h1 { font-size: 27px; }
  header.site .wrap { flex-direction: column; align-items: flex-start; gap: 10px; }
  header.site nav a { margin-left: 0; margin-right: 18px; }
}
