@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-400.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Newsreader";
  src: url("/assets/fonts/newsreader-600.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --bg: #f3ecdf;
  --bg-deep: #e6d9c8;
  --paper: #faf6ef;
  --ink: #1c1612;
  --muted: #4a403a;
  --line: #d4c8b8;
  --navy: #10233f;
  --clay: #6f2c22;
  --pine: #1b4336;
  --sans: "Avenir Next", "Segoe UI", system-ui, sans-serif;
  --serif: "Newsreader", "Iowan Old Style", Palatino, "Palatino Linotype", Georgia, serif;
  --shell: min(1120px, calc(100% - 2rem));
  --header: 4.25rem;
}

*,
*::before,
*::after { box-sizing: border-box; }

[hidden] { display: none !important; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 5.5rem;
  color-scheme: light;
  background: var(--bg);
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }
}

body {
  margin: 0;
  background: linear-gradient(180deg, #f7f1e6 0%, var(--bg) 18rem);
  color: var(--ink);
  font-family: var(--serif);
  font-size: 1.125rem;
  line-height: 1.65;
  text-rendering: optimizeLegibility;
}

img { max-width: 100%; height: auto; }

h1, h2, h3,
input,
select,
textarea,
button,
.choice,
fieldset {
  scroll-margin-top: 5.5rem;
}

h1, h2, h3 {
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

h1 { font-size: clamp(2.6rem, 1.5rem + 3.4vw, 4.6rem); margin: 0 0 0.6rem; }
h2 { font-size: clamp(1.7rem, 1.3rem + 1vw, 2.15rem); margin: 0 0 0.75rem; }
h3 { font-size: 1.25rem; margin: 0 0 0.4rem; letter-spacing: -0.02em; }

p { margin: 0 0 1rem; text-wrap: pretty; }

a {
  color: var(--navy);
  text-underline-offset: 0.18em;
}

a:hover { text-decoration-thickness: 2px; }

:focus:not(:focus-visible) { outline: none; }

:focus-visible {
  outline: 3px solid var(--navy);
  outline-offset: 3px;
}

.skip {
  position: absolute;
  left: 0.75rem;
  top: 0.75rem;
  transform: translateY(-150%);
  background: var(--paper);
  color: var(--ink);
  padding: 0.6rem 0.9rem;
  z-index: 40;
  font-family: var(--sans);
}

.skip:focus { transform: none; }

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}

.sans,
button,
input,
select,
textarea,
.nav,
.kicker,
.hint,
.preview-status,
.site-footer,
.btn,
label,
.choice,
.step-label,
.field-error,
.summary,
.status,
.preview,
.meter-wrap {
  font-family: var(--sans);
}

.shell { width: var(--shell); margin-inline: auto; }
.shell-narrow { width: min(44rem, calc(100% - 2rem)); }

.mast {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(243, 236, 223, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

@media (prefers-reduced-transparency: reduce) {
  .mast { background: var(--bg); backdrop-filter: none; }
}

.mast-inner {
  width: var(--shell);
  margin-inline: auto;
  min-height: var(--header);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  position: relative;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  letter-spacing: -0.03em;
  font-size: 1.2rem;
  font-family: var(--serif);
}

.brand img {
  width: 48px;
  height: 48px;
  border-radius: 10px;
  display: block;
}

.nav-button {
  font-family: var(--sans);
  min-height: 48px;
  min-width: 48px;
  padding: 0.4rem 0.9rem;
  border: 1px solid var(--ink);
  background: transparent;
  border-radius: 999px;
  font-size: 1rem;
  color: var(--ink);
}

.brand { min-width: 0; }

.brand-text { font-size: 1.15rem; }

@media (max-width: 380px) {
  .brand-text { font-size: 1rem; }
  .brand img { width: 40px; height: 40px; }
}

.nav {
  display: flex;
  align-items: center;
  gap: 1.25rem;
}

.nav a {
  color: var(--ink);
  text-decoration: none;
  font-size: 1rem;
  padding: 0.35rem 0;
  border-bottom: 2px solid transparent;
}

.nav a[aria-current="page"] { border-bottom-color: var(--navy); }

.nav a:hover { border-bottom-color: var(--ink); }

@media (max-width: 760px) {
  .js .nav-button { display: inline-flex; }
  .js .nav {
    display: none;
    position: absolute;
    top: 100%;
    left: -1rem;
    right: -1rem;
    width: auto;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 0.25rem 1rem 0.75rem;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    z-index: 30;
  }
  .js .nav.is-open { display: flex; }
  .js .nav a {
    min-height: 48px;
    display: flex;
    align-items: center;
  }
}

@media (min-width: 761px) {
  .nav-button { display: none !important; }
}

main { padding-bottom: 4rem; }

.preview-status {
  margin: 1rem 0 0;
  color: var(--muted);
  font-size: 0.85rem;
}

.hero { padding: 2.5rem 0 1rem; }

.kicker {
  margin: 0 0 0.8rem;
  color: var(--navy);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.lede {
  font-size: clamp(1.25rem, 1.1rem + 0.5vw, 1.5rem);
  max-width: 38rem;
  margin-bottom: 1.25rem;
}

.byline { color: var(--muted); max-width: 40rem; }

.actions { display: flex; flex-wrap: wrap; gap: 0.75rem; margin: 1.5rem 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  border: 2px solid var(--ink);
  background: transparent;
  color: var(--ink);
  text-decoration: none;
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.2;
  cursor: pointer;
}

.btn-primary {
  background: var(--navy);
  border-color: var(--navy);
  color: #faf6ef;
}

.btn-primary:hover { background: #0b1a30; }

.btn-secondary:hover { background: var(--bg-deep); }

@media (max-width: 640px) {
  .actions .btn,
  .form-actions .btn,
  .end-actions .btn { width: 100%; }
}

.band { padding: 1.5rem 0 0.5rem; }

.prose { max-width: 68ch; }

.prose h2 { margin-top: 2.2rem; }

.prose ul,
.prose ol { margin: 0 0 1rem; padding-left: 1.25rem; }

.prose li { margin: 0.35rem 0; }

.check-index {
  list-style: none;
  margin: 1rem 0 0;
  padding: 0;
  border-top: 1px solid var(--line);
}

.check-index a {
  display: grid;
  grid-template-columns: 4.25rem 1fr;
  gap: 0.5rem 1rem;
  padding: 1.15rem 0;
  border-bottom: 1px solid var(--line);
  color: inherit;
  text-decoration: none;
  align-items: baseline;
}

.check-index a:hover .index-title { text-decoration: underline; }

.num {
  font-family: var(--serif);
  font-size: 1.8rem;
  letter-spacing: -0.04em;
  color: var(--navy);
}

.index-title {
  font-family: var(--serif);
  font-size: 1.45rem;
  font-weight: 600;
  letter-spacing: -0.03em;
  display: block;
  margin-bottom: 0.2rem;
}

.index-copy { margin: 0; color: var(--muted); font-family: var(--sans); font-size: 1rem; }

.split { display: grid; gap: 1.5rem; }

@media (min-width: 900px) {
  .split { grid-template-columns: 1fr 1fr; gap: 3rem; align-items: start; }
}

.panel {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem 1.25rem 0.5rem;
}

.limits { list-style: none; margin: 0; padding: 0; }
.limits li { margin: 0 0 0.9rem; }

.faq h3 { margin-top: 1.25rem; }

.secondary {
  margin-top: 2rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
  color: var(--muted);
}

.page-head { padding: 2.2rem 0 0.5rem; }

.check-context,
.check-block,
.summary,
.inquiry-card {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 1.25rem;
  margin: 1rem 0;
}

.check-block:target { outline: 2px solid var(--navy); outline-offset: 4px; }

.context-grid,
.field-grid { display: grid; gap: 0.9rem; }

@media (min-width: 720px) {
  .context-grid.two,
  .field-grid.two { grid-template-columns: 1fr 1fr; }
}

fieldset {
  border: 0;
  padding: 0;
  margin: 0 0 1rem;
  min-width: 0;
}

fieldset legend {
  font-family: var(--sans);
  font-weight: 600;
  padding: 0;
  margin-bottom: 0.35rem;
}

label.lbl,
.choice,
legend {
  font-family: var(--sans);
}

.lbl {
  display: block;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.hint { color: var(--muted); font-size: 0.95rem; margin: 0.2rem 0 0; }

input[type="text"],
input[type="email"],
input[type="number"],
input[type="date"],
select,
textarea {
  width: 100%;
  min-height: 48px;
  padding: 0.65rem 0.75rem;
  border: 1px solid #8a7d6e;
  border-radius: 8px;
  background: #fffdf9;
  color: var(--ink);
  font: 1rem var(--sans);
}

textarea { min-height: 7rem; resize: vertical; }

.check-row {
  border: 0;
  border-top: 1px solid var(--line);
  margin: 0;
  padding: 1rem 0 0.25rem;
}

.check-row legend { margin-bottom: 0; font-size: 1.05rem; }

.check-row legend {
  font-size: 1.05rem;
  font-weight: 600;
  padding: 0;
}

.choices {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.65rem;
}

@media (max-width: 420px) {
  .choices { grid-template-columns: 1fr; }
}

.choice {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  min-height: 48px;
  padding: 0.4rem 0.7rem;
  border: 1px solid #8a7d6e;
  border-radius: 8px;
  background: #fffdf9;
  cursor: pointer;
}

.choice:has(input:checked) {
  background: var(--navy);
  border-color: var(--navy);
  color: #faf6ef;
}

.choice input { width: 1.05rem; height: 1.05rem; accent-color: var(--navy); }

.choice:has(input:checked) input { accent-color: #faf6ef; }

.note-field { margin-top: 0.75rem; }

.summary ul { margin: 0.5rem 0 0; padding-left: 1.2rem; }

.save-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: center;
  justify-content: space-between;
}

.text-button {
  background: none;
  border: 0;
  padding: 0.5rem 0;
  min-height: 48px;
  color: var(--navy);
  text-decoration: underline;
  text-underline-offset: 0.18em;
  font: 1rem var(--sans);
  cursor: pointer;
}

.step-label { margin: 0 0 0.4rem; font-weight: 600; }

.meter {
  height: 8px;
  background: var(--line);
  border-radius: 99px;
  overflow: hidden;
  margin-bottom: 1.25rem;
}

.meter::before {
  content: "";
  display: block;
  height: 100%;
  width: 14%;
  background: var(--navy);
}

.meter[data-step="1"]::before { width: 14%; }
.meter[data-step="2"]::before { width: 28%; }
.meter[data-step="3"]::before { width: 43%; }
.meter[data-step="4"]::before { width: 57%; }
.meter[data-step="5"]::before { width: 71%; }
.meter[data-step="6"]::before { width: 86%; }
.meter[data-step="7"]::before { width: 100%; }

.step h2 { font-size: clamp(1.6rem, 1.2rem + 1vw, 2rem); }

.option-list { display: grid; gap: 0.5rem; margin: 0.75rem 0; }

.option-list .choice { width: 100%; }

.field { margin: 0 0 1rem; }

.field-error,
#form-error {
  color: var(--clay);
  font-weight: 600;
  margin: 0 0 0.75rem;
}

.status {
  border-left: 4px solid var(--ink);
  background: var(--bg);
  padding: 0.9rem 1rem;
  margin: 0 0 1rem;
}

.status-qualified { border-left-color: var(--pine); }
.status-not-ready { border-left-color: var(--clay); }
.status-review-only { border-left-color: var(--navy); }

.preview {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 1rem;
  font-size: 0.95rem;
  line-height: 1.5;
  margin: 0 0 1rem;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: flex-start;
  margin-top: 0.5rem;
}

.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}

.check-consent {
  display: flex;
  gap: 0.7rem;
  align-items: flex-start;
  font-family: var(--sans);
  font-size: 0.98rem;
}

.check-consent input { width: 1.2rem; height: 1.2rem; margin-top: 0.2rem; accent-color: var(--navy); }

.site-footer {
  border-top: 1px solid var(--line);
  padding: 2rem 0 3rem;
  color: var(--muted);
  font-size: 0.98rem;
}

.footer-inner { width: var(--shell); margin-inline: auto; }

.footer-brand {
  display: flex;
  gap: 0.8rem;
  align-items: center;
  color: var(--ink);
  margin-bottom: 0.5rem;
}

.footer-brand img { width: 48px; height: 48px; border-radius: 10px; }
.footer-brand p { margin: 0; }

.footer-nav,
.socials { display: flex; flex-wrap: wrap; gap: 0.4rem 1rem; margin: 0.8rem 0; }

.disclaimer { font-size: 0.95rem; max-width: 70ch; }

@media (forced-colors: active) {
  .btn,
  .choice,
  .panel,
  .check-block,
  .inquiry-card { border: 1px solid ButtonText; }
}

@media print {
  .mast, .nav-button, .actions, .form-actions, .text-button, .preview-status { display: none !important; }
  body { background: white; }
  a[href^="http"]::after { content: " (" attr(href) ")"; font-size: 0.85em; }
}


/* Funnel bands */
.can-cant {
  display: grid;
  gap: 1rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) {
  .can-cant { grid-template-columns: 1fr 1fr; }
}
.can-cant .panel {
  margin: 0;
}
.can-cant ul {
  margin: 0.5rem 0 0;
  padding-left: 1.2rem;
}
.can-cant li { margin: 0.35rem 0; }
.share-line {
  font-size: 0.95rem;
  color: var(--muted);
}
.thanks-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1rem;
}
.cta-strip {
  margin-top: 1rem;
  padding: 1rem 1.1rem;
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 0.75rem;
}
.cta-strip .actions { margin-top: 0.75rem; }
.steps-plain {
  list-style: decimal;
  padding-left: 1.25rem;
  margin: 0.75rem 0 0;
}
.steps-plain li { margin: 0.55rem 0; }
