:root {
  color-scheme: light;
  --ink: #211c17;
  --muted: #6b625a;
  --line: #ddd5cd;
  --paper: #f8f4ee;
  --panel: #ffffff;
  --soft: #efe8df;
  --accent: #9a4f22;
  --accent-strong: #713a1b;
  --steel: #2f4f4f;
  --focus: #1d4ed8;
  --shadow: 0 18px 44px rgba(33, 28, 23, 0.14);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); }
a { color: inherit; }
button, input, select, textarea { font: inherit; }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 4px; }

.site-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(248, 244, 238, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(16px);
}

.brand { display: inline-flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  background: var(--accent);
  color: white;
  font-weight: 900;
}
.brand strong, .brand small { display: block; }
.brand small { margin-top: 2px; color: var(--muted); font-size: 0.78rem; }
.nav { display: flex; gap: 8px; align-items: center; }
.nav a { padding: 10px 12px; color: var(--muted); font-size: 0.92rem; text-decoration: none; }
.nav a:hover { color: var(--ink); background: var(--soft); }

.hero {
  position: relative;
  min-height: 700px;
  display: grid;
  align-items: center;
  padding: clamp(32px, 7vw, 92px) clamp(18px, 4vw, 56px);
  overflow: hidden;
  background: #e8dfd5;
}
.hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(90deg, rgba(248, 244, 238, 0.97) 0%, rgba(248, 244, 238, 0.86) 45%, rgba(248, 244, 238, 0.20) 76%);
}
.hero-image { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero-content { position: relative; z-index: 1; width: min(720px, 100%); }
.eyebrow {
  margin: 0 0 12px;
  color: var(--accent-strong);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}
h1, h2, h3, p { overflow-wrap: anywhere; }
h1 { max-width: 12ch; margin: 0; font-size: clamp(3.1rem, 7vw, 6.6rem); line-height: 0.96; letter-spacing: 0; }
h2 { margin: 0; font-size: clamp(2rem, 4vw, 3.5rem); line-height: 1; letter-spacing: 0; }
h3 { margin: 0; font-size: 1.18rem; }
.hero-copy { max-width: 61ch; margin: 24px 0 0; color: #40362f; font-size: 1.16rem; line-height: 1.65; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.button {
  display: inline-flex;
  min-height: 48px;
  align-items: center;
  justify-content: center;
  padding: 13px 18px;
  border: 1px solid var(--accent);
  color: var(--accent-strong);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}
.button.primary { background: var(--accent); color: white; }
.button.secondary { background: rgba(255, 255, 255, 0.72); }
.hero-panel {
  position: absolute;
  right: clamp(18px, 5vw, 70px);
  bottom: clamp(18px, 5vw, 62px);
  z-index: 1;
  width: min(300px, calc(100% - 36px));
  padding: 22px;
  background: rgba(255,255,255,0.90);
  border: 1px solid rgba(221,213,205,0.9);
  box-shadow: var(--shadow);
}
.hero-panel span, .result-label, .desk-note span { color: var(--muted); font-size: 0.82rem; font-weight: 900; text-transform: uppercase; }
.hero-panel strong { display: block; margin-top: 8px; font-size: 3.8rem; line-height: 1; }
.hero-panel p { margin: 8px 0 0; color: var(--muted); line-height: 1.5; }

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
  background: var(--panel);
}
.trust-strip div { min-height: 118px; padding: 24px clamp(18px, 4vw, 56px); border-right: 1px solid var(--line); }
.trust-strip div:last-child { border-right: 0; }
.trust-strip strong, .trust-strip span { display: block; }
.trust-strip span { margin-top: 8px; color: var(--muted); line-height: 1.45; }

section:not(.hero) { padding: clamp(54px, 8vw, 104px) clamp(18px, 4vw, 56px); }
.section-heading { max-width: 790px; margin-bottom: 32px; }
.section-heading p:not(.eyebrow) { margin: 16px 0 0; color: var(--muted); font-size: 1.05rem; line-height: 1.6; }

.estimator-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(330px, 1.1fr);
  gap: 24px;
  align-items: start;
}
.risk-form {
  display: grid;
  gap: 16px;
}
fieldset {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--line);
  background: var(--panel);
}
legend { padding: 0 8px; font-weight: 900; }
label { line-height: 1.45; }
label small {
  display: block;
  margin: 4px 0 0 30px;
  color: var(--muted);
  font-size: 0.88rem;
}
input[type="checkbox"], input[type="radio"] { width: 18px; height: 18px; margin-right: 8px; accent-color: var(--accent); }

.risk-result {
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.risk-result img { display: block; width: 100%; aspect-ratio: 16 / 8; object-fit: cover; }
.risk-result > div { padding: 26px; }
.risk-result h3 { margin-top: 8px; font-size: clamp(1.5rem, 3vw, 2.5rem); }
.risk-result p { color: var(--muted); line-height: 1.65; }
.disclaimer {
  padding: 12px 14px;
  background: #fff7ed;
  border-left: 4px solid var(--accent);
  color: #603713;
  font-weight: 800;
}
.noscript-note {
  border-left: 4px solid var(--accent);
  color: var(--ink);
  font-weight: 800;
  margin-top: 1rem;
  padding: 0.75rem 0 0.75rem 1rem;
}
.result-facts { display: grid; grid-template-columns: repeat(2, 1fr); gap: 14px; margin: 22px 0 0; }
.result-facts div { padding: 16px; background: var(--soft); }
dt { color: var(--muted); font-size: 0.78rem; font-weight: 900; text-transform: uppercase; }
dd { margin: 8px 0 0; font-weight: 900; }

.proof, .intake { background: var(--panel); }
.proof-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}
.proof-grid article {
  min-height: 230px;
  padding: 24px;
  border: 1px solid var(--line);
  background: var(--paper);
}
.number { display: inline-block; margin-bottom: 48px; color: var(--accent); font-weight: 900; }
.proof-grid p { color: var(--muted); line-height: 1.6; }
.checklist {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  max-width: 1000px;
}
.checklist label { padding: 18px; background: var(--panel); border: 1px solid var(--line); font-weight: 800; }

.desk-card {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 18px;
  padding: 24px;
  background: var(--ink);
  color: white;
}
.desk-note, .desk-table { padding: 24px; border: 1px solid rgba(255,255,255,0.18); }
.desk-note span { color: #e8c5a5; }
.desk-note strong { display: block; margin-top: 10px; font-size: clamp(1.5rem, 3vw, 2.7rem); }
.desk-note p { color: #eaded4; line-height: 1.65; }
.desk-table { display: grid; padding: 0; }
.desk-table div {
  display: grid;
  grid-template-columns: 110px 1fr;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid rgba(255,255,255,0.14);
  color: #eaded4;
  line-height: 1.45;
}
.desk-table div:last-child { border-bottom: 0; }
.desk-table strong { color: white; }

.intake-form {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
  max-width: 980px;
}
.intake-form label { display: grid; gap: 8px; color: var(--muted); font-weight: 900; }
.intake-form label:nth-child(3) { grid-column: 1 / -1; }
select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  color: var(--ink);
  padding: 13px 14px;
}
textarea { resize: vertical; }
.field-help { color: #765130; font-size: 0.9rem; font-weight: 800; line-height: 1.45; }
.footer {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  padding: 28px clamp(18px, 4vw, 56px);
  color: var(--muted);
  border-top: 1px solid var(--line);
}

@media (max-width: 860px) {
  .site-header, .footer { align-items: flex-start; flex-direction: column; }
  .nav { width: 100%; justify-content: space-between; }
  .hero { display: block; min-height: 0; }
  .hero::after { background: linear-gradient(180deg, rgba(248,244,238,0.98) 0%, rgba(248,244,238,0.90) 58%, rgba(248,244,238,0.22) 100%); }
  h1 { max-width: 12ch; font-size: clamp(2.75rem, 13vw, 4.4rem); line-height: 1; }
  .hero-panel { position: relative; left: auto; right: auto; bottom: auto; z-index: 1; margin-top: 28px; width: 100%; }
  .trust-strip, .estimator-layout, .proof-grid, .checklist, .desk-card, .desk-table div, .intake-form, .result-facts { grid-template-columns: 1fr; }
  .trust-strip div { border-right: 0; border-bottom: 1px solid var(--line); }
  .trust-strip div:last-child { border-bottom: 0; }
}

@media (max-width: 520px) {
  .nav a { padding-inline: 8px; font-size: 0.86rem; }
  .hero-actions, .button { width: 100%; }
}
