:root {
  --navy: #071a2b;
  --navy-2: #0f2c44;
  --gold: #c6a15b;
  --gold-light: #ead9b7;
  --cream: #f7f4ee;
  --paper: #ffffff;
  --ink: #132331;
  --muted: #61707c;
  --line: #dfe5e8;
  --success: #1e6651;
  --danger: #9b352f;
  --shadow: 0 18px 50px rgba(7, 26, 43, 0.12);
  --radius: 20px;
  --max: 1180px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  overflow-x: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}
button, input, textarea { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
a { color: inherit; }
.hidden { display: none !important; }

.skip-link {
  position: fixed;
  left: 16px;
  top: -100px;
  z-index: 999;
  background: white;
  color: var(--navy);
  padding: 12px 16px;
  border-radius: 8px;
}
.skip-link:focus { top: 16px; }

.site-header {
  max-width: var(--max);
  margin: 0 auto;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.brand { display: flex; align-items: center; gap: 12px; text-decoration: none; }
.brand-mark {
  width: 44px; height: 44px; border-radius: 12px;
  display: grid; place-items: center;
  color: var(--navy); background: var(--gold);
  font-weight: 900; font-size: 24px;
}
.brand strong { display: block; letter-spacing: .14em; }
.brand small { display: block; color: var(--muted); font-size: 11px; }
.header-badge {
  border: 1px solid rgba(7, 26, 43, .15);
  padding: 7px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}

main { min-height: 70vh; }
.hero {
  max-width: var(--max);
  margin: 18px auto 72px;
  padding: 44px 28px;
  display: grid;
  grid-template-columns: 1.22fr .78fr;
  gap: 42px;
  align-items: center;
}
.eyebrow {
  margin: 0 0 12px;
  color: #85682f;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .16em;
}
h1, h2, h3 { line-height: 1.12; color: var(--navy); }
h1 { max-width: 760px; margin: 0; font-size: clamp(42px, 6vw, 76px); letter-spacing: -.045em; }
h2 { margin: 0 0 14px; font-size: clamp(28px, 3.6vw, 44px); letter-spacing: -.025em; }
h3 { margin: 0 0 10px; font-size: 23px; }
.hero-text { max-width: 700px; font-size: 20px; color: #41515d; }
.trust-strip { display: flex; flex-wrap: wrap; gap: 9px; margin: 24px 0; }
.trust-strip span {
  background: white;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 12px;
  color: var(--success);
  font-size: 13px;
  font-weight: 750;
}
.button {
  border: 0;
  border-radius: 12px;
  min-height: 50px;
  padding: 13px 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  cursor: pointer;
  font-weight: 850;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
}
.button:hover { transform: translateY(-1px); }
.button:focus-visible { outline: 3px solid var(--gold-light); outline-offset: 3px; }
.button-primary { background: var(--navy); color: white; box-shadow: 0 10px 24px rgba(7, 26, 43, .16); }
.button-primary:hover { background: var(--navy-2); }
.button-secondary { background: white; color: var(--navy); border: 1px solid var(--line); }
.microcopy { color: var(--muted); font-size: 13px; }

.hero-card {
  background: var(--navy);
  color: white;
  border-radius: 28px;
  padding: 34px;
  box-shadow: var(--shadow);
  position: relative;
  overflow: hidden;
}
.hero-card::after {
  content: "";
  position: absolute;
  width: 180px; height: 180px; border-radius: 50%;
  right: -70px; top: -70px;
  border: 30px solid rgba(198, 161, 91, .14);
}
.hero-card h2 { color: white; font-size: 32px; }
.card-kicker { color: var(--gold); font-size: 11px; font-weight: 900; letter-spacing: .16em; }
.feature-list { list-style: none; padding: 0; margin: 28px 0; }
.feature-list li { display: flex; gap: 13px; padding: 15px 0; border-top: 1px solid rgba(255,255,255,.12); }
.feature-list span { color: var(--gold); font-weight: 900; }
.safe-note { margin: 0; color: #cbd5dc; font-size: 13px; }

.tool-shell, .results, .explain-section {
  max-width: var(--max);
  margin: 0 auto 70px;
  padding: 0 28px;
}
.tool-shell {
  background: white;
  border-radius: 28px;
  padding: 40px;
  box-shadow: var(--shadow);
}
.tool-heading { display: flex; gap: 30px; justify-content: space-between; align-items: end; }
.tool-heading h2 { margin-bottom: 0; }
.privacy-inline { margin: 0; color: var(--success); font-size: 13px; font-weight: 800; }
.progress-wrap { margin: 34px 0 40px; }
.progress-meta { display: flex; justify-content: space-between; font-size: 12px; font-weight: 800; color: var(--muted); margin-bottom: 8px; }
.progress-track { width: 100%; height: 9px; border-radius: 999px; background: #edf0f2; overflow: hidden; }
.progress-bar { height: 100%; width: 12.5%; background: var(--gold); border-radius: inherit; transition: width .25s ease; }
fieldset { border: 0; padding: 0; margin: 0; }
legend { font-size: clamp(26px, 3vw, 38px); color: var(--navy); font-weight: 850; line-height: 1.2; letter-spacing: -.025em; }
.question-help { color: var(--muted); margin: 10px 0 24px; }
.option-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
.option-grid.two-column { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.option-card { position: relative; display: block; cursor: pointer; }
.option-card input { position: absolute; opacity: 0; pointer-events: none; }
.option-card span {
  min-height: 110px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 6px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  transition: border .15s ease, background .15s ease, transform .15s ease, box-shadow .15s ease;
}
.option-card strong { color: var(--navy); font-size: 17px; }
.option-card small { color: var(--muted); }
.option-card:hover span { border-color: #b7c1c7; transform: translateY(-1px); }
.option-card input:focus-visible + span { outline: 3px solid var(--gold-light); outline-offset: 2px; }
.option-card input:checked + span { border-color: var(--gold); background: #fffaf0; box-shadow: inset 0 0 0 1px var(--gold); }
.text-field { display: grid; gap: 8px; margin-top: 24px; max-width: 600px; font-weight: 800; }
.text-field input { padding: 15px 16px; border: 1px solid var(--line); border-radius: 12px; outline: none; }
.text-field input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-light); }
.consent-check { display: flex; gap: 12px; align-items: flex-start; margin-top: 24px; max-width: 760px; color: #344651; }
.consent-check input { width: 20px; height: 20px; accent-color: var(--navy); margin-top: 2px; }
.form-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 36px; }
.form-actions .button-primary { margin-left: auto; }
.form-error { margin-top: 20px; color: var(--danger); font-weight: 750; }

.result-hero { display: flex; justify-content: space-between; align-items: end; gap: 30px; margin-bottom: 26px; }
.result-hero h2 { font-size: clamp(36px, 5vw, 58px); }
.result-hero p { max-width: 760px; color: var(--muted); }
.result-actions { display: flex; gap: 10px; flex-shrink: 0; }
.boundary-box {
  background: #fffaf0;
  border: 1px solid #e9d5a8;
  border-left: 5px solid var(--gold);
  padding: 18px 20px;
  border-radius: 12px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 5px 10px;
  margin-bottom: 20px;
}
.result-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.result-card, .source-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px;
  box-shadow: 0 8px 25px rgba(7, 26, 43, .05);
  margin-bottom: 20px;
}
.result-card > p, .source-card > p { color: var(--muted); }
.full-width { grid-column: 1 / -1; }
.section-number { color: var(--gold); font-weight: 950; letter-spacing: .14em; font-size: 12px; margin-bottom: 15px; }
.checklist { display: grid; gap: 9px; margin-top: 20px; }
.check-item { display: flex; gap: 10px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #edf0f2; }
.check-item input { margin-top: 4px; width: 18px; height: 18px; accent-color: var(--navy); flex: 0 0 auto; }
.check-item span { color: #31424e; }
.question-groups { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 16px; margin-top: 20px; }
.question-group { border: 1px solid var(--line); border-radius: 14px; padding: 20px; }
.question-group h4 { margin: 0 0 12px; color: var(--navy); font-size: 16px; }
.question-group ol { margin: 0; padding-left: 22px; }
.question-group li { margin: 9px 0; color: #3c4d58; }
.table-scroll { overflow-x: auto; margin-top: 20px; }
table { width: 100%; border-collapse: collapse; min-width: 790px; }
th, td { border: 1px solid var(--line); padding: 12px; text-align: left; vertical-align: top; }
th { background: var(--navy); color: white; font-size: 13px; }
td:first-child { width: 31%; font-weight: 750; color: var(--navy); background: #f9faf9; }
td input { width: 100%; border: 0; border-bottom: 1px solid #bfc8ce; padding: 7px 2px; outline: none; background: transparent; }
td input:focus { border-bottom-color: var(--gold); }
.table-note { font-size: 12px; }
.timeline-output { position: relative; margin-top: 22px; }
.timeline-step { display: grid; grid-template-columns: 120px 1fr; gap: 22px; padding: 0 0 26px; }
.timeline-label { font-size: 12px; color: #85682f; font-weight: 900; letter-spacing: .08em; }
.timeline-content { border-left: 2px solid var(--gold-light); padding-left: 22px; }
.timeline-content h4 { margin: 0 0 8px; color: var(--navy); }
.timeline-content ul { margin: 0; padding-left: 19px; }
.timeline-content li { margin: 7px 0; }
.source-card { background: #eef3f5; }
.source-links { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0; }
.source-links a { background: white; border: 1px solid var(--line); border-radius: 9px; padding: 10px 12px; font-weight: 800; color: var(--navy); text-decoration: none; }
.source-card small { color: var(--muted); }
.cta-card { background: var(--navy); color: white; border-radius: 24px; padding: 36px; margin: 30px 0; }
.cta-card h2 { color: white; }
.cta-card p:not(.eyebrow) { color: #cfd9df; max-width: 700px; }
.cta-card .button-primary { background: var(--gold); color: var(--navy); }
.report-footer { color: var(--muted); font-size: 11px; border-top: 1px solid var(--line); padding-top: 18px; }

.explain-section { padding-top: 30px; }
.explain-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.explain-grid article { background: white; padding: 24px; border-radius: 16px; border: 1px solid var(--line); }
.explain-grid strong { color: var(--navy); font-size: 19px; }
.explain-grid p { color: var(--muted); }
.site-footer { max-width: var(--max); margin: 0 auto; padding: 26px 28px 40px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 20px; color: var(--muted); font-size: 12px; }

@media (max-width: 850px) {
  .hero { grid-template-columns: 1fr; padding-top: 20px; }
  .hero-card { max-width: 620px; }
  .tool-heading, .result-hero { align-items: flex-start; flex-direction: column; }
  .result-actions { width: 100%; }
  .result-actions .button { flex: 1; }
  .result-grid, .question-groups, .explain-grid { grid-template-columns: 1fr; }
}

@media (max-width: 600px) {
  .site-header { padding: 18px; }
  .header-badge { display: none; }
  .hero, .tool-shell, .results, .explain-section { padding-left: 18px; padding-right: 18px; }
  .hero { margin-bottom: 45px; }
  .tool-shell { margin-left: 12px; margin-right: 12px; padding: 25px 18px; border-radius: 20px; }
  h1 { font-size: clamp(38px, 11vw, 44px); }
  .hero-text { font-size: 17px; }
  .option-grid, .option-grid.two-column { grid-template-columns: 1fr; }
  .option-card span { min-height: 92px; }
  .form-actions { position: sticky; bottom: 0; background: white; margin-left: -18px; margin-right: -18px; padding: 16px 18px 4px; }
  .form-actions .button { flex: 1; }
  .result-actions { flex-direction: column; }
  .boundary-box { grid-template-columns: 1fr; }
  .result-card, .source-card { padding: 22px 18px; }
  .timeline-step { grid-template-columns: 1fr; gap: 5px; }
  .site-footer { flex-direction: column; padding-left: 18px; padding-right: 18px; }
}

@media print {
  @page { size: A4; margin: 13mm; }
  body { background: white; font-size: 10pt; }
  .no-print, .site-header, #intro, #tool, .explain-section { display: none !important; }
  .results { display: block !important; max-width: none; margin: 0; padding: 0; }
  .result-hero { margin-bottom: 12px; }
  .result-hero h2 { font-size: 24pt; }
  .result-card, .source-card { box-shadow: none; break-inside: avoid; padding: 16px; margin-bottom: 10px; }
  .result-grid { gap: 10px; }
  .question-groups { gap: 8px; }
  .question-group { break-inside: avoid; padding: 12px; }
  table { min-width: 0; font-size: 8pt; }
  th, td { padding: 6px; }
  td input { border: 0; }
  .check-item { padding: 4px 0; }
  .timeline-step { padding-bottom: 12px; }
  .report-footer { font-size: 7.5pt; }
}


/* Search and trust foundation — July 2026 */
.tool-header-nav { display:flex; gap:16px; align-items:center; margin-left:auto; margin-right:16px; }
.tool-header-nav a { font-size:13px; font-weight:750; text-decoration:none; color:var(--navy); }
.tool-header-nav a:hover { text-decoration:underline; text-underline-offset:3px; }
.noscript-message { max-width:var(--max); margin:0 auto 20px; padding:14px 28px; color:var(--danger); }
.seo-content { background:#fff; border-top:1px solid var(--line); padding:72px 28px; }
.seo-content-inner { max-width:var(--max); margin:0 auto; }
.seo-content-inner > p, .seo-content-inner > ul, .seo-content-inner > ol { max-width:880px; }
.seo-content h2 { margin-top:52px; }
.seo-card-grid { display:grid; grid-template-columns:repeat(3,minmax(0,1fr)); gap:18px; margin:26px 0; }
.seo-card-grid article { border:1px solid var(--line); border-radius:16px; padding:22px; background:var(--cream); }
.seo-card-grid h3 { font-size:20px; }
.seo-columns { display:grid; grid-template-columns:1fr 1fr; gap:44px; max-width:960px; }
.seo-columns h3 { margin-top:28px; font-size:20px; }
.seo-question-list { columns:2; column-gap:48px; padding-left:22px; }
.seo-question-list li { break-inside:avoid; margin-bottom:12px; }
.text-resource-link { color:#73571f; font-weight:800; text-underline-offset:4px; }
.review-box { margin-top:52px; padding:28px; border-radius:18px; background:var(--navy); color:#e7edf2; }
.review-box h2 { color:#fff; margin-top:0; }
.review-box a { color:var(--gold-light); }
.footer-links { display:flex; flex-wrap:wrap; gap:10px 20px; justify-content:center; }
.footer-links a { font-size:13px; }
@media(max-width:760px){.tool-header-nav{display:none}.seo-card-grid,.seo-columns{grid-template-columns:1fr}.seo-question-list{columns:1}.seo-content{padding:52px 20px}}


/* Deployment-safe layout guards */
img, svg { max-width: 100%; height: auto; }
.site-header, .hero, .tool-shell, .results, .explain-section, .seo-content-inner, .site-footer { width: 100%; }
@media (max-width: 420px) {
  .hero { padding-top: 14px; }
  .hero-card { padding: 26px 22px; border-radius: 22px; }
  .brand small { max-width: 125px; line-height: 1.2; }
  .trust-strip { gap: 7px; }
  .trust-strip span { font-size: 12px; }
  .seo-content h2 { margin-top: 40px; }
}


/* REWS image logo integration — logo-only update */
.brand-logo-link { display:inline-flex; align-items:center; line-height:0; flex:0 0 auto; }
.brand-logo { display:block; width:auto; object-fit:contain; }
.brand-logo-light { height:58px; max-width:181px; }
.footer-logo-link { display:inline-flex; align-items:center; line-height:0; text-decoration:none; }
.footer-logo { display:block; width:auto; height:48px; object-fit:contain; margin-right:8px; }
@media (max-width: 720px) {
  .brand-logo-light { height:46px; max-width:150px; }
  .footer-logo { height:42px; }
}
