:root {
  --navy: #132a35;
  --navy-2: #1c4050;
  --cream: #f7f2e8;
  --paper: #fffdf8;
  --ink: #17232a;
  --muted: #516168;
  --line: #cbd4d6;
  --orange: #b84828;
  --teal: #146b71;
  --green: #24633e;
  --red: #982f2f;
  --gold: #8a6100;
  --focus: #005fcc;
  --shadow: 0 18px 46px rgba(19, 42, 53, 0.12);
}

* { box-sizing: border-box; }
html { color-scheme: light; }
body {
  margin: 0;
  font-family: "Segoe UI", Arial, sans-serif;
  color: var(--ink);
  background:
    radial-gradient(circle at 8% 0%, rgba(184, 72, 40, 0.12), transparent 25rem),
    linear-gradient(180deg, #fbf8f1, var(--cream));
}
button, input, select, textarea { font: inherit; }
button, input, select, textarea, a { outline-offset: 3px; }
:focus-visible { outline: 3px solid var(--focus); }
.skip-link {
  position: fixed;
  z-index: 20;
  left: 1rem;
  top: -5rem;
  padding: .75rem 1rem;
  background: #fff;
  color: #000;
  border: 2px solid #000;
}
.skip-link:focus { top: 1rem; }
.shell { max-width: 1180px; margin: 0 auto; padding: 1.25rem 1rem 3rem; }
.topbar { display: flex; justify-content: space-between; gap: 1rem; align-items: center; }
.return {
  color: var(--navy);
  font-weight: 700;
  text-decoration-thickness: 2px;
  text-underline-offset: 3px;
}
.privacy { color: var(--muted); font-size: .86rem; margin: 0; text-align: right; }
.hero {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(16rem, .7fr);
  gap: 1.5rem;
  padding: 2.5rem 0 1.75rem;
  align-items: end;
}
.eyebrow, .kicker {
  margin: 0 0 .5rem;
  color: var(--orange);
  text-transform: uppercase;
  letter-spacing: .11em;
  font-weight: 800;
  font-size: .76rem;
}
h1, h2, h3 { color: var(--navy); }
h1 { font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1; letter-spacing: -.035em; margin: 0; }
.lede { color: var(--muted); font-size: 1.04rem; line-height: 1.65; margin: 0; }
.workflow {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: .75rem;
  margin-bottom: 1rem;
}
.step {
  padding: .8rem 1rem;
  background: rgba(255,255,255,.68);
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  font-weight: 700;
  text-align: center;
}
.step strong { color: var(--orange); margin-right: .35rem; }
.grid {
  display: grid;
  grid-template-columns: minmax(18rem, .85fr) minmax(0, 1.15fr);
  gap: 1rem;
  align-items: start;
}
.panel {
  background: rgba(255, 253, 248, .94);
  border: 1px solid var(--line);
  border-radius: 1.25rem;
  padding: 1.15rem;
  box-shadow: var(--shadow);
  min-width: 0;
}
.stack { min-width: 0; }
.panel + .panel, .stack > * + * { margin-top: 1rem; }
.panel h2, .panel h3 { margin: 0 0 .5rem; }
.panel-copy { color: var(--muted); line-height: 1.55; margin: 0 0 1rem; }
fieldset { border: 0; margin: 0; padding: 0; min-width: 0; }
legend { color: var(--navy); font-weight: 800; margin-bottom: .65rem; }
.fields { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: .8rem; }
.fields.three { grid-template-columns: repeat(3, minmax(0,1fr)); }
label { display: grid; gap: .35rem; color: var(--navy); font-weight: 700; }
label small, .hint { color: var(--muted); font-weight: 400; line-height: 1.4; }
input, select, textarea {
  width: 100%;
  min-height: 2.75rem;
  border: 1px solid #8e9ca0;
  border-radius: .65rem;
  padding: .55rem .7rem;
  color: var(--ink);
  background: #fff;
}
textarea { min-height: 6rem; resize: vertical; }
.button-row { display: flex; flex-wrap: wrap; gap: .65rem; margin-top: 1rem; }
button, .button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 2px solid transparent;
  border-radius: 999px;
  padding: .65rem 1rem;
  min-height: 2.75rem;
  font-weight: 800;
  cursor: pointer;
  color: #fff;
  background: var(--navy-2);
  text-decoration: none;
}
button.secondary, .button.secondary { background: #fff; color: var(--navy); border-color: var(--navy); }
button:hover, .button:hover { filter: brightness(.94); }
button:disabled { opacity: .55; cursor: not-allowed; }
.choice-list { display: grid; gap: .55rem; }
.choice {
  grid-template-columns: auto 1fr;
  align-items: start;
  padding: .7rem;
  border: 1px solid var(--line);
  border-radius: .7rem;
  background: #fff;
  font-weight: 600;
}
.choice input { width: 1.1rem; min-height: 1.1rem; margin-top: .15rem; }
.result {
  border-left: .4rem solid var(--teal);
  background: #edf7f6;
  padding: 1rem;
  border-radius: .7rem;
}
.result.error { border-color: var(--red); background: #fff0f0; }
.result.warning { border-color: var(--gold); background: #fff8df; }
.result.success { border-color: var(--green); background: #edf8f0; }
.result h3 { margin: 0 0 .35rem; }
.result p { margin: .35rem 0; line-height: 1.55; }
.metric-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: .7rem; }
.metric {
  border: 1px solid var(--line);
  border-radius: .8rem;
  padding: .8rem;
  background: #fff;
}
.metric span { display: block; color: var(--muted); font-size: .8rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.metric strong { display: block; margin-top: .25rem; color: var(--navy); font-size: 1.15rem; overflow-wrap: break-word; }
.fields.three input { font-size: .86rem; padding-inline: .55rem; }
.meter { height: 1rem; border-radius: 999px; overflow: hidden; background: #dce5e6; margin: .75rem 0; }
.meter span { display: block; height: 100%; background: var(--teal); }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; min-width: 34rem; }
th, td { text-align: right; padding: .65rem; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; }
th { color: var(--navy); background: #edf2f2; }
.prompt {
  padding: 1rem;
  border: 1px dashed var(--orange);
  border-radius: .8rem;
  background: #fff8f2;
  line-height: 1.55;
}
.prompt strong { color: var(--orange); }
.callout {
  border-radius: .8rem;
  padding: 1rem;
  background: #f0f3ea;
  border: 1px solid #b8c5ae;
  line-height: 1.55;
}
.scenario { font-size: 1.05rem; line-height: 1.65; }
.tag {
  display: inline-block;
  padding: .25rem .55rem;
  border-radius: 999px;
  background: #e8efef;
  color: var(--navy);
  font-size: .8rem;
  font-weight: 800;
}
.hidden { display: none !important; }
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
.footer {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1rem;
  border-top: 1px solid var(--line);
  margin-top: 1.5rem;
  padding-top: 1rem;
  color: var(--muted);
  font-size: .9rem;
  line-height: 1.5;
}
.footer p { margin: 0; }
@media (max-width: 800px) {
  .hero, .grid { grid-template-columns: 1fr; }
  .hero { padding-top: 1.5rem; }
  .workflow { grid-template-columns: 1fr; }
  .fields, .fields.three, .metric-grid { grid-template-columns: 1fr; }
  .privacy { text-align: left; }
  .topbar, .footer { grid-template-columns: 1fr; display: grid; }
}
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; } }
@media print {
  body { background: #fff; }
  .topbar, .button-row, .workflow, .no-print { display: none !important; }
  .shell { max-width: none; padding: 0; }
  .panel { box-shadow: none; break-inside: avoid; }
  .grid { display: block; }
  .grid > * + * { margin-top: 1rem; }
}