/* The King's Ear: retheme by editing the :root tokens below. */
/* Fonts: Source Serif 4 (headings) and Source Sans 3 (text), self-hosted, SIL Open Font License. */
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Serif 4"; src: url("fonts/source-serif-4-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-400-normal.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-600-normal.woff2") format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Source Sans 3"; src: url("fonts/source-sans-3-latin-700-normal.woff2") format("woff2"); font-weight: 700; font-display: swap; }

:root {
  /* Trust and maturity palette: deep navy, warm ivory, antique gold for small details only. */
  --bg: #faf8f3;
  --text: #1b2430;
  --muted: #5a6472;
  --line: #e4e0d6;
  --card: #ffffff;
  --accent: #1e3a5f;
  --accent-text: #ffffff;
  --gold: #a8863b;
  --radius: 8px;
  --measure: 64ch;
  --font: "Source Sans 3", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --serif: "Source Serif 4", Georgia, "Times New Roman", serif;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 18px/1.6 var(--font);
}
a { color: var(--accent); text-underline-offset: 3px; }
.wrap { max-width: 720px; margin: 0 auto; padding: 0 20px; }

/* header */
.site-header { padding: 18px 0; border-bottom: 2px solid var(--gold); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; }
.wordmark { font: 700 21px/1 var(--serif); color: var(--text); text-decoration: none; letter-spacing: .01em; }
.hdr-phone { font-weight: 700; text-decoration: none; white-space: nowrap; }
.phone { margin: 10px 0 0; font-size: 16px; }

/* hero */
.hero { padding: 28px 0 32px; }
.eyebrow { margin: 0 0 12px; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
h1 { font: 600 31px/1.18 var(--serif); letter-spacing: -.005em; margin: 0 0 16px; }
h2 { font: 600 26px/1.25 var(--serif); margin: 0 0 14px; }
h3 { font: 700 19px/1.3 var(--font); margin: 28px 0 8px; }
.subhead { font-size: 19px; line-height: 1.5; margin: 0 0 22px; max-width: var(--measure); }
.btn {
  display: block; width: 100%; text-align: center; background: var(--accent); color: var(--accent-text);
  font: 700 18px/1.2 var(--font); padding: 18px 22px; border-radius: var(--radius);
  text-decoration: none; border: 0; cursor: pointer;
}
.btn:hover, .btn:focus-visible { filter: brightness(1.12); }
.under { margin: 12px 0 0; font-size: 16px; color: var(--muted); }
.quote { margin: 18px 0 0; padding-left: 14px; border-left: 3px solid var(--gold); font-size: 16px; }
.quote p { margin: 0 0 6px; font-style: italic; }
.quote cite { font-style: normal; color: var(--muted); font-size: 15px; }
.proof { margin: 26px 0 0; padding-left: 14px; border-left: 3px solid var(--line); font-size: 16px; color: var(--muted); }

/* sections */
section { padding: 34px 0; border-top: 1px solid var(--line); }
section p, section li { max-width: var(--measure); }
section ul, section ol { padding-left: 22px; }
section li { margin-bottom: 10px; }
.lead-in { margin: 22px 0 6px; font-weight: 700; }

/* two doors */
.doors { display: grid; gap: 14px; grid-template-columns: 1fr; margin-top: 4px; }
.door {
  display: flex; flex-direction: column; background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px; text-decoration: none; color: var(--text);
}
.door:hover, .door:focus-visible { border-color: var(--accent); }
.door b { font: 600 21px/1.25 var(--serif); margin-bottom: 8px; }
.door span { flex: 1; }
.door em { font-style: normal; font-weight: 700; color: var(--accent); margin-top: 14px; }

/* steps */
.steps { list-style: none; padding: 0; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-left: 48px; margin-bottom: 16px; }
.steps li::before {
  content: counter(step); position: absolute; left: 0; top: 0; width: 34px; height: 34px; border-radius: 50%;
  background: var(--accent); color: var(--accent-text); font: 700 16px/34px var(--font); text-align: center;
}

/* not-for-you */
.notfor { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; margin-top: 4px; }
.notfor h2 { font-size: 22px; }
.notfor ul { margin-bottom: 0; }

/* closing */
.closing { text-align: left; }

/* faq */
details { border-top: 1px solid var(--line); padding: 14px 0; max-width: var(--measure); }
details:last-of-type { border-bottom: 1px solid var(--line); }
summary { cursor: pointer; font-weight: 700; }
details p { margin: 10px 0 0; }

/* form */
form { margin-top: 8px; }
.field { margin-bottom: 20px; }
label, legend { display: block; font-weight: 700; margin-bottom: 6px; padding: 0; }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; padding: 12px 14px; border: 1px solid #bdb6a8; border-radius: var(--radius); background: #fff; color: var(--text);
}
textarea { min-height: 96px; resize: vertical; }
input:focus-visible, textarea:focus-visible, .btn:focus-visible, a:focus-visible, summary:focus-visible { outline: 3px solid #8aa4c4; outline-offset: 2px; }
fieldset { border: 0; padding: 0; margin: 0 0 20px; }
.radio { display: flex; align-items: center; gap: 10px; margin: 6px 0; font-weight: 400; }
.radio input { width: 20px; height: 20px; }
.note { margin-top: 14px; padding: 12px 14px; background: #fff4d6; border: 1px solid #e6cf8a; border-radius: var(--radius); font-size: 15px; }
.confirm { background: var(--card); border: 1px solid var(--accent); border-radius: var(--radius); padding: 22px; }
[hidden] { display: none !important; }

/* sample proposal */
.sample h2 { font-size: 22px; margin-top: 30px; }
.sample-note { font-style: italic; color: var(--muted); }

/* variant swap (Home headline) */
html[data-variant="a"] .v-b, html[data-variant="b"] .v-a { display: none; }

/* footer */
.site-footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 15px; color: var(--muted); }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 18px; margin-bottom: 12px; }
.site-footer a { color: var(--muted); }

@media (min-width: 720px) {
  .eyebrow { font-size: 14px; letter-spacing: .08em; }
  .subhead { font-size: 20px; }
  .hero { padding: 64px 0 44px; }
  h1 { font-size: 44px; }
  h2 { font-size: 30px; }
  .btn { display: inline-block; width: auto; padding: 18px 34px; }
  .doors { grid-template-columns: 1fr 1fr; }
  .wrap.wide { max-width: 860px; }
}

.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }

/* lead magnets */
.answers { display: grid; gap: 10px; margin: 14px 0 20px; }
.answer { text-align: left; font: 600 18px/1.35 var(--font); color: var(--text); background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; cursor: pointer; }
.answer:hover, .answer:focus-visible, .answer.picked { border-color: var(--accent); box-shadow: inset 4px 0 0 var(--accent); }
.progress { font-size: 14px; color: var(--muted); margin: 0 0 8px; }
.track { height: 4px; background: var(--line); border-radius: 2px; margin-bottom: 22px; }
.bar { height: 4px; background: var(--gold); border-radius: 2px; width: 0; transition: width .2s; }
.linkbtn { background: none; border: 0; color: var(--accent); font: inherit; cursor: pointer; padding: 6px 0; text-decoration: underline; text-underline-offset: 3px; }
.bridge { margin-top: 30px; padding: 22px; background: var(--card); border: 1px solid var(--line); border-top: 3px solid var(--gold); border-radius: var(--radius); }
.quick { padding: 18px 22px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); margin: 8px 0 10px; }
.quick h2 { font-size: 21px; margin-top: 0; }
ol.check { list-style: none; padding: 0; }
ol.check li { display: flex; gap: 14px; padding: 12px 0; border-bottom: 1px solid var(--line); }
ol.check .box { flex: 0 0 20px; height: 20px; border: 2px solid var(--accent); border-radius: 4px; margin-top: 3px; }
ol.check p { margin: 4px 0 0; font-size: 16px; }
ol.check .gotcha { color: var(--muted); }
main.hero h2 { margin-top: 30px; }
@media print {
  .site-header, .site-footer, .bridge .btn, .print, .under { display: none !important; }
  body { font-size: 12pt; background: #fff; }
  .hero { padding: 0; }
  ol.check li { break-inside: avoid; padding: 6px 0; }
}
