/* Benefits Decoder — visual system
   Palette: navy ink #12263f · blue #2563ac · canvas #f2f6fb · card #fff
            action green #0e8a63 (the button color the owner picked) · amber warns
   Type:    Bricolage Grotesque (display) · Public Sans (body) · Spline Sans Mono (money)
   Signature: dollar figures set in mono and "highlighted" — the decoder ran a
   marker over the line in your paperwork that matters. */

:root {
  --ink: #12263f;
  --muted: #55677d;
  --navy: #0f2f52;
  --blue: #2563ac;
  --blue-soft: #e3edf8;
  --accent: #0e8a63;
  --accent-deep: #0b6b4d;
  --accent-soft: #e2f3ec;
  --warn: #9a5200;
  --warn-soft: #fdf3e2;
  --line: #d9e4f0;
  --card: #ffffff;
  --bg: #f2f6fb;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(18, 38, 63, .05), 0 8px 24px -12px rgba(18, 38, 63, .18);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: "Public Sans", "Segoe UI", system-ui, sans-serif;
  line-height: 1.6;
  font-size: 16px;
}

/* ---------- top bar ---------- */
.topbar {
  background: var(--navy);
  color: #fff;
}
.topbar-inner {
  max-width: 880px; margin: 0 auto; padding: 8px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
}
.wordmark { display: flex; align-items: center; }
.wordmark img { height: 56px; display: block; }
.topbar-note { font-size: 12.5px; color: #b9cbe0; }
@media (max-width: 560px) { .topbar-note { display: none; } }

/* ---------- step rail ---------- */
.steps {
  list-style: none; display: flex; gap: 26px;
  max-width: 880px; margin: 0 auto; padding: 18px 20px 0;
  font-size: 13px; font-weight: 600; color: #8ba1b9;
}
.steps li { display: flex; align-items: center; gap: 8px; }
.steps li::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: #c6d5e6; transition: background .2s;
}
.steps li.active { color: var(--navy); }
.steps li.active::before { background: var(--accent); box-shadow: 0 0 0 4px var(--accent-soft); }
.steps li.done { color: var(--muted); }
.steps li.done::before { background: var(--accent); }

/* ---------- layout ---------- */
.wrap { max-width: 880px; margin: 0 auto; padding: 28px 20px 72px; }

h1 {
  font-family: "Bricolage Grotesque", "Public Sans", sans-serif;
  font-weight: 700; font-size: clamp(26px, 4.5vw, 34px);
  letter-spacing: -.015em; line-height: 1.15; margin: 10px 0 6px;
}
.sub { color: var(--muted); margin: 0 0 26px; font-size: 16px; max-width: 56ch; }

h2 {
  font-size: 12.5px; letter-spacing: .14em; text-transform: uppercase;
  color: var(--blue); font-weight: 700; margin: 40px 0 14px;
  display: flex; align-items: center; gap: 10px;
}
h2::before { content: ""; width: 22px; height: 2px; background: var(--blue); border-radius: 2px; }

.card {
  background: var(--card); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 26px; margin-bottom: 16px;
  box-shadow: var(--shadow);
}

/* ---------- money is the signature ---------- */
.money {
  font-family: "Spline Sans Mono", ui-monospace, monospace;
  font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: -.01em;
}
mark.hl-money {
  font-family: "Spline Sans Mono", ui-monospace, monospace; font-weight: 600;
  background: linear-gradient(transparent 40%, #b9ecd4 40%);
  color: inherit; padding: 0 3px; border-radius: 3px;
}

/* ---------- The Answer: verdict panel ---------- */
.verdict {
  background: var(--navy); color: #eaf2fb; border: none;
  font-size: 19px; line-height: 1.75; padding: 28px 30px;
  font-family: "Bricolage Grotesque", "Public Sans", sans-serif; font-weight: 600;
}
/* on navy, money is a clean chip instead of a highlighter swipe */
.verdict mark.hl-money {
  background: rgba(78, 216, 162, .16);
  color: #8df0c6;
  padding: 2px 9px; border-radius: 7px;
  font-size: .92em; white-space: nowrap;
}

/* ---------- action list ---------- */
ul.actions { list-style: none; padding: 0; margin: 0; }
ul.actions li {
  padding: 11px 0 11px 38px; position: relative;
  border-bottom: 1px solid var(--line); font-size: 15.5px;
}
ul.actions li:last-child { border-bottom: none; }
ul.actions li::before {
  content: ""; position: absolute; left: 2px; top: 13px;
  width: 20px; height: 20px; border-radius: 6px;
  border: 2px solid var(--accent); background: var(--accent-soft);
}

/* ---------- comparison table ---------- */
table { border-collapse: collapse; width: 100%; font-size: 15px; }
th, td { text-align: right; padding: 12px 14px; border-bottom: 1px solid var(--line); }
th:first-child, td:first-child { text-align: left; font-weight: 600; }
td { font-family: "Spline Sans Mono", ui-monospace, monospace; font-variant-numeric: tabular-nums; }
td:first-child { font-family: "Public Sans", sans-serif; }
th {
  color: var(--muted); font-weight: 700; font-size: 11.5px;
  text-transform: uppercase; letter-spacing: .09em;
}
td.hl, th.hl { background: var(--blue-soft); }
tr.winner td { background: var(--accent-soft); }
tr.winner td:first-child { border-left: 3px solid var(--accent); }
tr.winner td:first-child::after {
  content: " ◂ your best fit"; color: var(--accent-deep);
  font-size: 12px; font-weight: 700; font-family: "Public Sans", sans-serif;
}

.teach { font-style: italic; color: var(--muted); margin: 14px 2px 0; font-size: 15px; }
.note {
  background: var(--warn-soft); border-left: 3px solid var(--warn);
  padding: 11px 15px; border-radius: 8px; margin-top: 12px; font-size: 14px;
}

.flag h3 { margin: 0 0 4px; font-size: 16.5px; font-weight: 700; }
.flag p { margin: 0; font-size: 15px; }
.rule-one { font-weight: 700; font-size: 16px; }
.fine { color: var(--muted); font-size: 13.5px; }
.fine li { margin-bottom: 6px; }
.disclaimer { border-top: 1px solid var(--line); margin-top: 44px; padding-top: 18px; }
.badge {
  display: inline-block; background: var(--blue-soft); color: var(--blue);
  border-radius: 100px; padding: 4px 13px; font-size: 12px; font-weight: 700;
  letter-spacing: .07em; text-transform: uppercase; margin-bottom: 12px;
}

/* ---------- intake choices ---------- */
.choices { display: flex; flex-wrap: wrap; gap: 10px; margin: 8px 0 2px; }
.choice {
  border: 1.5px solid var(--line); background: var(--card); border-radius: 12px;
  padding: 12px 18px; cursor: pointer; font-size: 15.5px; font-weight: 600;
  font-family: "Public Sans", sans-serif; color: var(--ink); text-align: left;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.choice:hover { transform: translateY(-1px); border-color: var(--blue); box-shadow: var(--shadow); }
.choice small {
  display: block; color: var(--muted); font-size: 12.5px; font-weight: 400;
  max-width: 270px; margin-top: 2px;
}
.choice.selected {
  border-color: var(--accent); background: var(--accent-soft);
  box-shadow: 0 0 0 3px rgba(14, 138, 99, .12);
}
.choice.selected::after { content: " ✓"; color: var(--accent-deep); font-weight: 700; }

.q { margin-bottom: 26px; }
.q .prompt { font-weight: 700; margin-bottom: 6px; font-size: 16px; }

/* ---------- forms ---------- */
.field { margin: 12px 0; }
.field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 4px; }
.field .hint { font-weight: 400; color: var(--muted); }
.field input, .field select {
  width: 100%; max-width: 360px; padding: 10px 12px;
  border: 1.5px solid var(--line); border-radius: 9px; font-size: 15px;
  font-family: "Public Sans", sans-serif; background: #fff; color: var(--ink);
  transition: border-color .12s ease, box-shadow .12s ease;
}
.field input:focus, .field select:focus {
  outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-soft);
}
.grid2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 6px 26px; }

.btn {
  background: var(--accent); color: #fff; border: none; border-radius: 11px;
  padding: 14px 26px; font-size: 16px; font-weight: 700;
  font-family: "Public Sans", sans-serif; cursor: pointer;
  box-shadow: 0 2px 6px -1px rgba(14, 138, 99, .4);
  transition: transform .12s ease, background .12s ease, box-shadow .12s ease;
}
.btn:hover { background: var(--accent-deep); transform: translateY(-1px); box-shadow: 0 6px 14px -4px rgba(14, 138, 99, .5); }
.btn.secondary { background: #fff; color: var(--accent-deep); border: 1.5px solid var(--accent); box-shadow: none; }
.btn.secondary:hover { background: var(--accent-soft); }
.btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }

.plan-form { border-left: 3px solid var(--blue); }
.checklist label { display: block; font-weight: 400; font-size: 15px; padding: 5px 0; }
.hidden { display: none; }
.error { color: #a3222d; font-size: 14px; margin-top: 8px; font-weight: 600; }

/* ---------- motion & access ---------- */
:focus-visible { outline: 2px solid var(--blue); outline-offset: 2px; border-radius: 4px; }

@keyframes rise { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.wrap > section > .card, .wrap > .card { animation: rise .35s ease both; }
.wrap > section > .card:nth-child(2) { animation-delay: .05s; }
.wrap > section > .card:nth-child(3) { animation-delay: .1s; }

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