/* WillCheck — product design system (structure adapted from FirstHire; separate brand) */
:root {
  --bg: #f3efe6;
  --bg-alt: #e9e3d6;
  --surface: #fffdf8;
  --surface-2: #f6f1e6;
  --ink: #1a2228;
  --ink-soft: #3d4a52;
  --muted: #5c6a72;
  --line: #ddd4c4;
  --line-strong: #cfc4b0;
  --navy: #1a2d3a;
  --navy-2: #243b4a;
  --navy-3: #2e4a5c;
  --gold: #8a6420;
  --gold-deep: #6e4e16;
  --gold-soft: #f3ead6;
  --sage: #2f5a48;
  --sage-deep: #24463a;
  --sage-soft: #e6efe9;
  --warn: #8a4b12;
  --warn-bg: #f8eedf;
  --danger: #8b2e2e;
  --white: #ffffff;
  --header-h: 4.25rem;
  --radius: 1.1rem;
  --radius-sm: 0.7rem;
  --shadow: 0 1px 2px rgba(26, 45, 58, 0.05), 0 10px 30px rgba(26, 45, 58, 0.07);
  --shadow-lg: 0 2px 8px rgba(26, 45, 58, 0.06), 0 24px 48px rgba(26, 45, 58, 0.1);
  --font: "Source Sans 3", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --serif: Fraunces, "Iowan Old Style", "Palatino Linotype", Palatino, Georgia, serif;
  --max: 72rem;
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: auto; scroll-padding-top: calc(var(--header-h) + 0.75rem); }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 1.0625rem;
  -webkit-font-smoothing: antialiased;
}
img, svg { max-width: 100%; display: block; }
a { color: var(--sage-deep); text-underline-offset: 0.12em; }
a:hover { color: var(--sage); }
:focus-visible { outline: 3px solid #c4a56a; outline-offset: 2px; }
.skip {
  position: absolute;
  left: -999px; top: 0;
  background: var(--navy); color: #fff;
  padding: 0.55rem 1rem; z-index: 200;
}
.skip:focus { left: 0.6rem; top: 0.6rem; }
.wrap { width: min(100% - 2rem, var(--max)); margin-inline: auto; }
.wrap-narrow { width: min(100% - 2rem, 46rem); margin-inline: auto; }

/* Header */
.site-header {
  position: sticky; top: 0; z-index: 80;
  height: var(--header-h);
  display: flex; align-items: center;
  background: rgba(255, 253, 248, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header-inner {
  display: flex; align-items: center; justify-content: space-between;
  gap: 1rem; width: min(100% - 2rem, var(--max)); margin-inline: auto;
}
.brand {
  display: flex; align-items: center; gap: 0.65rem;
  text-decoration: none; color: var(--navy); font-weight: 700;
  letter-spacing: -0.02em; font-size: 1.2rem;
}
.brand svg { width: 2rem; height: 2rem; flex-shrink: 0; }
.nav { display: flex; align-items: center; gap: 0.15rem 1.15rem; }
.nav a {
  color: var(--ink-soft); text-decoration: none; font-weight: 600; font-size: 0.95rem;
  padding: 0.25rem 0;
}
.nav a:hover, .nav a[aria-current="page"] { color: var(--navy); }
.nav .btn { margin-left: 0.35rem; }
.menu-toggle {
  display: none;
  background: none; border: 1px solid var(--line-strong);
  border-radius: 0.55rem; width: 2.6rem; height: 2.6rem;
  padding: 0; cursor: pointer; color: var(--navy);
}
.menu-toggle svg { width: 1.35rem; height: 1.35rem; margin: auto; }
.disclosure-bar {
  background: var(--gold-soft);
  border-bottom: 1px solid #e6d9b8;
  font-size: 0.84rem; color: var(--warn);
  padding: 0.5rem 0;
}
.disclosure-bar p { margin: 0; }
.disclosure-bar a { color: var(--gold-deep); }

@media (max-width: 860px) {
  .disclosure-bar { font-size: 0.78rem; line-height: 1.45; padding: 0.4rem 0; }
  .menu-toggle { display: inline-flex; align-items: center; justify-content: center; }
  .nav {
    display: none;
    position: absolute; left: 0; right: 0;
    top: var(--header-h);
    background: var(--surface);
    border-bottom: 1px solid var(--line);
    box-shadow: var(--shadow);
    flex-direction: column; align-items: stretch;
    padding: 0.6rem 1.1rem 1.15rem; gap: 0;
  }
  .nav.is-open { display: flex; }
  .nav a { padding: 0.7rem 0.4rem; }
  .nav .btn { margin: 0.5rem 0 0.25rem; width: 100%; }
}

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.45rem;
  background: var(--gold); color: #fff; border: 0;
  border-radius: 999px; padding: 0.72rem 1.25rem;
  font: 650 0.98rem/1 var(--font); cursor: pointer;
  text-decoration: none; box-shadow: 0 1px 0 rgba(0,0,0,0.08);
}
.btn:hover { background: var(--gold-deep); color: #fff; }
.btn-navy { background: var(--navy); }
.btn-navy:hover { background: var(--navy-2); color: #fff; }
.btn-ghost {
  background: transparent; color: var(--navy);
  border: 1px solid var(--navy); box-shadow: none;
}
.btn-ghost:hover { background: #e8eef1; color: var(--navy); }
.btn-sm { padding: 0.5rem 0.9rem; font-size: 0.88rem; }
.btn-row { display: flex; flex-wrap: wrap; gap: 0.6rem; margin-top: 1.1rem; }

/* Typography */
.kicker {
  text-transform: uppercase; letter-spacing: 0.1em;
  font-size: 0.74rem; font-weight: 700; color: var(--gold); margin: 0 0 0.55rem;
}
h1, h2, h3, .serif { font-family: var(--serif); font-weight: 650; letter-spacing: -0.025em; color: var(--navy); }
h1 { font-size: clamp(2.05rem, 5vw, 3.2rem); line-height: 1.08; margin: 0 0 0.85rem; }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; margin: 0 0 0.7rem; }
h3 { font-size: 1.2rem; margin: 1.35rem 0 0.45rem; }
.lede { font-size: 1.2rem; color: var(--ink-soft); max-width: 40rem; margin: 0 0 0.4rem; line-height: 1.5; }

/* Hero */
.hero {
  position: relative;
  padding: 3.1rem 0 2.4rem;
  background:
    radial-gradient(900px 420px at 90% -10%, rgba(138, 100, 32, 0.14), transparent 60%),
    radial-gradient(700px 380px at -10% 80%, rgba(47, 90, 72, 0.1), transparent 55%),
    var(--bg);
  overflow: hidden;
}
.hero::after {
  content: "";
  position: absolute; inset: 0;
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 48px 48px;
  opacity: 0.28;
  pointer-events: none;
  mask-image: linear-gradient(to bottom, #000 30%, transparent 95%);
}
.hero-grid {
  position: relative; z-index: 1;
  display: grid; gap: 2rem;
  align-items: center;
}
@media (min-width: 900px) {
  .hero-grid { grid-template-columns: 1.2fr 0.8fr; }
}
.hero-card {
  background: var(--navy);
  color: #e8eef1;
  border-radius: 1.35rem;
  padding: 1.4rem 1.45rem 1.5rem;
  box-shadow: var(--shadow-lg);
}
.hero-card h2 { color: #fff; font-size: 1.15rem; margin: 0 0 0.85rem; font-family: var(--font); letter-spacing: 0; font-weight: 650; }
.hero-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }
.hero-stat { background: rgba(255,255,255,0.06); border-radius: 0.85rem; padding: 0.85rem; }
.hero-stat .lbl { font-size: 0.72rem; text-transform: uppercase; letter-spacing: 0.06em; color: #b7c8d0; font-weight: 700; }
.hero-stat .val { font-family: var(--serif); font-size: 1.45rem; color: #fff; line-height: 1.2; margin-top: 0.15rem; }
.hero-stat .sub { font-size: 0.8rem; color: #c9d5db; }
.hero-card .fine { margin: 0.9rem 0 0; font-size: 0.8rem; color: #b7c8d0; }

.trust-strip { display: grid; gap: 0.75rem; margin-top: 2rem; }
@media (min-width: 720px) { .trust-strip { grid-template-columns: repeat(3, 1fr); } }
.trust-item {
  display: flex; align-items: flex-start; gap: 0.7rem;
  background: rgba(255,253,248,0.7);
  border: 1px solid var(--line);
  border-radius: 1rem; padding: 0.85rem 0.95rem;
}
.trust-item svg { width: 1.5rem; height: 1.5rem; flex-shrink: 0; color: var(--gold); margin-top: 0.1rem; }
.trust-item strong { display: block; color: var(--navy); font-size: 0.95rem; }
.trust-item span { display: block; color: var(--muted); font-size: 0.85rem; }

.section { padding: 3.25rem 0; }
.section-alt { background: var(--bg-alt); }
.section-navy { background: var(--navy); color: #dce5ea; }
.section-navy h2, .section-navy h3 { color: #fff; }
.section-navy a { color: #f0d2c2; }
.section-head { max-width: 40rem; margin-bottom: 1.6rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 1.35rem;
}

label { display: block; font-size: 0.82rem; font-weight: 700; color: var(--navy); margin-bottom: 0.28rem; }
.hint { display: block; font-size: 0.78rem; font-weight: 400; color: var(--muted); margin-top: 0.22rem; }
input[type="text"], input[type="number"], input[type="email"], select, textarea {
  width: 100%; border: 1px solid var(--line-strong); border-radius: 0.6rem;
  padding: 0.58rem 0.72rem; background: #fff; font: inherit; color: inherit;
}

.callout, .ok-note, .todo-note {
  padding: 0.8rem 0.95rem; border-radius: 0 0.7rem 0.7rem 0;
  font-size: 0.92rem; margin: 0.85rem 0;
}
.callout { background: var(--warn-bg); border-left: 3px solid var(--gold); }
.ok-note { background: var(--sage-soft); border-left: 3px solid var(--sage); }
.todo-note { background: #f3e8e8; border-left: 3px solid var(--danger); color: #6b2a2a; }
.muted { color: var(--muted); }
.small { font-size: 0.9rem; }

.steps { display: grid; gap: 1rem; }
@media (min-width: 800px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.3rem 1.25rem; box-shadow: var(--shadow);
}
.step-num-lg {
  font-family: var(--serif);
  font-size: 1.85rem;
  line-height: 1;
  color: var(--gold);
  font-weight: 650;
  letter-spacing: -0.04em;
  margin-bottom: 0.85rem;
}
.step h3 { margin: 0 0 0.4rem; }
.step p { margin: 0; color: var(--ink-soft); }

.cards-3 { display: grid; gap: 1rem; }
@media (min-width: 720px) { .cards-3 { grid-template-columns: repeat(3, 1fr); } }
.guide-card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 1.15rem 1.2rem; box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.4rem; text-decoration: none; color: inherit;
}
a.guide-card:hover { border-color: var(--navy); }
.guide-card h3 { margin: 0; }
.guide-card p { margin-top: auto; }

.faq { display: grid; gap: 0.55rem; max-width: 46rem; }
.faq details {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 0.9rem; padding: 0.15rem 0.2rem;
}
.faq summary {
  cursor: pointer; font-weight: 700; color: var(--navy);
  padding: 0.8rem 1rem; list-style: none;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
}
.faq summary::-webkit-details-marker, .faq summary::marker { display: none; content: ""; }
.faq summary::after {
  content: "";
  width: 0.5rem; height: 0.5rem;
  border-right: 2px solid var(--navy);
  border-bottom: 2px solid var(--navy);
  transform: rotate(45deg);
  flex-shrink: 0;
  margin: 0 0.15rem 0.2rem 0;
}
.faq details[open] summary::after {
  transform: rotate(225deg);
  margin-bottom: 0;
}
.faq details p, .faq details ul { margin: 0 1rem 1rem; color: var(--ink-soft); }

.site-footer {
  background: var(--navy); color: #d5dee3;
  padding: 2.6rem 0 2rem; font-size: 0.92rem;
}
.site-footer a { color: #f0d2c2; }
.footer-grid { display: grid; gap: 1.4rem; }
@media (min-width: 760px) {
  .footer-grid { grid-template-columns: 1.6fr 1fr 1fr; }
}
.site-footer h2 { color: #fff; font-size: 0.95rem; margin: 0 0 0.5rem; font-family: var(--font); letter-spacing: 0; font-weight: 700; }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin: 0.28rem 0; }
.site-footer .brand { color: #fff; margin-bottom: 0.5rem; }
.legal { margin-top: 1.6rem; padding-top: 1.1rem; border-top: 1px solid #385563; color: #b7c3c9; font-size: 0.82rem; }

.prose { max-width: 46rem; }
.prose p, .prose ul, .prose ol { margin: 0 0 1rem; }
.prose ul, .prose ol { padding-left: 1.2rem; }
.prose li { margin: 0.25rem 0; }
.prose h2 { margin-top: 2rem; }
.sources { font-size: 0.92rem; }
.sources li { margin: 0.45rem 0; }
.crumb { font-size: 0.88rem; color: var(--muted); margin: 0 0 1rem; }
.crumb a { color: var(--ink-soft); text-decoration: none; }
.crumb a:hover { text-decoration: underline; }

.page-404 { text-align: center; padding: 4.5rem 0 5rem; }
.page-404 .lede { margin-inline: auto; }

/* Quiz */
.quiz-shell {
  max-width: 42rem;
  margin-inline: auto;
}
.quiz-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  box-shadow: var(--shadow-lg);
  padding: 1.5rem 1.45rem 1.55rem;
}
.quiz-progress {
  display: flex; align-items: center; gap: 0.75rem;
  margin-bottom: 1.15rem;
}
.quiz-progress-bar {
  flex: 1; height: 0.5rem; background: #e5dfd4; border-radius: 99px; overflow: hidden;
}
.quiz-progress-bar > span {
  display: block; height: 100%; width: 0; background: var(--gold);
}
.quiz-progress-label { font-size: 0.8rem; font-weight: 700; color: var(--muted); white-space: nowrap; }
.quiz-question h2 {
  font-size: clamp(1.25rem, 2.6vw, 1.6rem);
  margin: 0 0 0.45rem;
}
.choices { display: grid; gap: 0.55rem; margin-top: 1rem; }
.choice {
  display: block; width: 100%; text-align: left;
  padding: 0.85rem 1rem;
  border: 1px solid var(--line-strong);
  border-radius: 0.75rem;
  background: #fff;
  color: var(--ink);
  font: 600 1rem/1.4 var(--font);
  cursor: pointer;
}
.choice:hover { border-color: var(--navy); }
.choice.is-selected, .choice[aria-pressed="true"] {
  border-color: var(--navy);
  background: var(--gold-soft);
  box-shadow: inset 0 0 0 1px var(--navy);
}
.quiz-extra { margin-top: 1rem; }
.quiz-nav {
  display: flex; flex-wrap: wrap; gap: 0.6rem;
  margin-top: 1.25rem;
  justify-content: space-between;
}
.quiz-error { color: var(--danger); font-size: 0.9rem; margin: 0.7rem 0 0; }

.result-banner {
  border-radius: 0.9rem;
  padding: 1rem 1.05rem;
  margin: 0 0 1rem;
}
.result-banner.will { background: var(--sage-soft); }
.result-banner.trust { background: var(--gold-soft); }
.result-banner.attorney { background: var(--warn-bg); }
.result-banner .kicker { margin-bottom: 0.35rem; }
.result-banner h2 { margin: 0 0 0.4rem; font-size: 1.55rem; }
.result-reasons { margin: 0 0 1rem; padding-left: 1.15rem; }
.result-reasons li { margin: 0.35rem 0; color: var(--ink-soft); }

.cta-box {
  border: 1px solid #e2d3b0;
  background: linear-gradient(180deg, #fffaf0 0%, #f7edd8 100%);
  border-radius: 1rem;
  padding: 1.15rem 1.15rem 1.2rem;
  margin-top: 1.15rem;
}
.cta-box .cta-kicker {
  display: flex; align-items: center; gap: 0.45rem;
  font-size: 0.74rem; font-weight: 700; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--gold-deep); margin: 0 0 0.35rem;
}
.cta-box p { margin: 0 0 0.75rem; }
.cta-box .fine, .cta-note { font-size: 0.82rem; color: var(--muted); margin: 0.7rem 0 0; }

/* Affiliate visibility */
[data-aff],
[data-aff-group] { display: none !important; }
[data-aff-fallback] { display: block; }
span[data-aff-fallback] { display: inline; }
body.aff-offers-on span[data-aff-group] { display: inline !important; }
body.aff-offers-on p[data-aff-group],
body.aff-offers-on div[data-aff-group] { display: block !important; }
body.aff-offers-on .cta-row[data-aff-group],
body.aff-offers-on .btn-row[data-aff-group] { display: flex !important; }
body.aff-offers-on a[data-aff] { display: inline !important; }
body.aff-offers-on a.btn[data-aff] { display: inline-flex !important; }
body.aff-offers-on [data-aff-fallback] { display: none !important; }

[data-contact-email] { display: none !important; }
[data-contact-fallback] { display: block; }
body.contact-email-on [data-contact-email] { display: block !important; }
body.contact-email-on a[data-contact-email] { display: inline-flex !important; }
body.contact-email-on [data-contact-fallback] { display: none !important; }

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; }
}
