:root {
  --ink: #1c1916;
  --paper: #f4f0ea;
  --card: #fffdf8;
  --line: #e2d6c4;
  --gold: #8a6a2f;
  --navy: #1b2a38;
  --warn: #8a2b2b;
  --hint: #fff6d8;
  --pad: max(16px, env(safe-area-inset-left));
  --sans: "Segoe UI", system-ui, -apple-system, "Helvetica Neue", Arial, sans-serif;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-text-size-adjust: 100%;
}
h1, h2, h3 {
  font-weight: 650;
  letter-spacing: -0.02em;
}
.top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px max(16px, env(safe-area-inset-right)) 14px var(--pad);
  border-bottom: 1px solid var(--line);
  background: var(--navy);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand {
  color: #e8d7a8;
  text-decoration: none;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  font-size: 13px;
  font-weight: 700;
  flex-shrink: 0;
}
nav { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 6px 14px; }
nav a { color: #d7dde6; text-decoration: none; font-size: 13px; padding: 6px 0; }
main { padding: 20px var(--pad) 72px; max-width: 1100px; margin: 0 auto; }
.hero-quiz { padding: 8px 0 12px; }
.hero-quiz h1, .card h1 { font-size: clamp(26px, 7vw, 40px); line-height: 1.15; margin: 8px 0 12px; }
.lede { font-size: 18px; line-height: 1.45; max-width: 38rem; margin: 0 0 18px; }
.lede-tight { font-size: 16px; line-height: 1.45; max-width: 40rem; margin: 0 0 18px; }
.eyebrow { letter-spacing: 0.12em; text-transform: uppercase; font-size: 12px; color: var(--gold); margin: 0 0 8px; font-weight: 600; }
.fine, footer { color: #6b6256; font-size: 13px; }
.center { text-align: center; }
.grid3 { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 16px 0; }
.grid3 article, .card, .split > div, .price, .hero-quiz .quiz {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
}
.card { margin: 16px 0; }
.form-card h2 { font-size: 18px; margin: 28px 0 10px; }
.quiz, .cols, .form-stack { display: grid; gap: 16px; }
.cols { grid-template-columns: 1fr; }
.form-stack { max-width: 40rem; }
.field { display: grid; gap: 8px; }
.field label, label { display: flex; flex-direction: column; gap: 6px; font-size: 15px; font-weight: 600; }
.field label { gap: 0; }
.req {
  display: inline-block;
  margin-left: 6px;
  color: var(--gold);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  vertical-align: middle;
}
.hint {
  margin: 0;
  padding: 8px 10px;
  background: var(--hint);
  border-left: 3px solid var(--gold);
  border-radius: 0 8px 8px 0;
  font-size: 13px;
  font-weight: 400;
  line-height: 1.4;
  color: #4a4032;
}
.field-error {
  margin: 0;
  color: var(--warn);
  font-size: 14px;
  font-weight: 700;
}
.error-banner {
  background: #fde8e8;
  border: 1px solid #e2a0a0;
  color: var(--warn);
  padding: 14px 16px;
  border-radius: 10px;
  margin: 0 0 18px;
}
.error-banner:focus { outline: 2px solid var(--warn); }
.error-banner ul { margin: 8px 0 0; padding-left: 18px; }
.error-banner a { color: var(--warn); }
.steps {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
  padding: 0;
  margin: 0 0 20px;
}
.steps li {
  background: #eef2f6;
  color: var(--navy);
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 12px;
  font-weight: 700;
}
.extra {
  background: #f8f4ec;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 4px 14px 10px;
  margin: 8px 0 16px;
  max-width: 40rem;
}
.extra summary {
  min-height: 48px;
  display: flex;
  align-items: center;
  cursor: pointer;
  font-weight: 650;
}
.is-hidden { display: none !important; }
input, select, textarea {
  font: 16px/1.3 var(--sans);
  padding: 12px;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  width: 100%;
  max-width: 100%;
}
input:focus, select:focus, textarea:focus {
  outline: 2px solid var(--navy);
  outline-offset: 1px;
  border-color: var(--navy);
}
.field.is-bad input, .field.is-bad select, .field.is-bad textarea {
  border-color: var(--warn);
  box-shadow: 0 0 0 3px rgba(138, 43, 43, 0.12);
}
.check { flex-direction: row; align-items: center; min-height: 48px; font-weight: 500; max-width: 40rem; }
.check input { width: auto; min-height: 22px; }
button, .btn {
  display: inline-block;
  background: var(--navy);
  color: #fff;
  border: 0;
  padding: 14px 16px;
  min-height: 48px;
  border-radius: 8px;
  text-decoration: none;
  cursor: pointer;
  font: 16px/1.3 var(--sans);
  font-weight: 650;
  text-align: center;
  width: 100%;
}
button.gold, .btn.gold { background: var(--gold); }
.wide { width: 100%; }
.split { display: grid; grid-template-columns: 1fr; gap: 12px; margin: 28px 0; }
.warn, .banner { background: #f8ece0; border: 1px solid var(--line); padding: 12px; border-radius: 8px; }
.warn { color: var(--warn); }
.pdf { width: 100%; height: 70vh; min-height: 280px; border: 1px solid var(--line); border-radius: 8px; }
.actions { display: flex; flex-direction: column; gap: 10px; margin: 12px 0 16px; }
.inline { display: flex; flex-direction: column; gap: 8px; width: 100%; }
.faq { margin: 28px 0; }
.faq details { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 4px 14px; margin: 8px 0; }
.faq summary { min-height: 48px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.why h2, .faq h2, .split h2 { font-size: 22px; line-height: 1.25; }
footer { padding: 20px var(--pad) calc(28px + env(safe-area-inset-bottom)); }
@media (min-width: 800px) {
  main { padding: 36px 8vw 64px; }
  .grid3 { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .split, .cols { grid-template-columns: 1.4fr 1fr; }
  .cols { grid-template-columns: 1fr 1fr; }
  button, .btn { width: auto; }
  .wide { width: 100%; }
  .actions { flex-direction: row; flex-wrap: wrap; align-items: center; }
  .inline { flex-direction: row; width: auto; }
  nav a { margin-left: 18px; }
}
