/* MERI design tokens — Merit America brand, ported from the prototype's CSS
   (Jordan's CloudPage build; see docs/PROTOTYPE-SPEC.md).

   Brand: Inter type; Merit Navy #001846 primary (buttons are navy with white
   text, 50px pill radius); Merit Mint #2dd7b9 accent; badges are a color tint
   with navy text.

   Deliberate accessibility deviations from the prototype (its own audit
   flagged these): secondary text uses an accessible navy (#44557d) instead of
   #8697ac (2.9:1), and focus rings are navy instead of mint (1.7:1). Mint as
   small-text color uses --mint-deep. */

@font-face {
  font-family: "Inter";
  src: url("/assets/InterVariable-884c49a1.woff2") format("woff2-variations");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy: #001846;
  --navy-mid: #1a2f59;
  --ink-soft: #44557d;
  --mint: #2dd7b9;
  --mint-deep: #0d8672;
  --mint-tint: #d9f8f1;
  --yellow: #fdd750;
  --sky: #f0f9ff;
  --off: #f9fafb;
  --line: #dbe2ee;
  --white: #ffffff;
  --error: #a4262c;
  --tag-purple: #dfcff4;
  --tag-orange: #ffe4b5;
  --tag-green: #91f0df;
  --tag-blue: #dbeafe;
  --radius: 12px;
  --radius-pill: 50px;
  --ease: cubic-bezier(.25, .8, .25, 1);
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--navy);
  background: var(--off);
  line-height: 1.5;
}

.page { max-width: 720px; margin: 0 auto; padding: 2rem 1rem 4rem; }
body.embedded .page { padding-top: 1rem; }

h1 { font-size: 2rem; line-height: 1.15; font-weight: 800; letter-spacing: -0.01em; margin: 0.25rem 0 0.75rem; }
h2 { font-size: 1.4rem; line-height: 1.2; font-weight: 700; letter-spacing: -0.01em; margin: 0 0 0.5rem; }

/* Chrome */
.topbar { background: var(--white); border-bottom: 1px solid var(--line); }
.topbar-inner { max-width: 720px; margin: 0 auto; padding: 0.75rem 1rem; display: flex; align-items: center; justify-content: space-between; }
.topbar-brand { display: flex; align-items: center; gap: 0.5rem; text-decoration: none; color: var(--navy); font-weight: 800; letter-spacing: 0.02em; }
.beta-pill { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; background: var(--mint); color: var(--navy); padding: 0.1rem 0.5rem; border-radius: var(--radius-pill); }
.topbar-org { color: var(--ink-soft); font-size: 0.9rem; }
.sitefooter { max-width: 720px; margin: 0 auto; padding: 1.5rem 1rem 3rem; color: var(--ink-soft); font-size: 0.85rem; }

/* Landing */
.hero { text-align: center; padding: 3rem 0 2rem; }
.hero .accent { color: var(--mint-deep); }
.hero-sub { max-width: 46ch; margin: 0 auto 1.5rem; color: var(--ink-soft); }

.eyebrow { text-transform: uppercase; letter-spacing: 0.08em; font-size: 0.75rem; font-weight: 700; color: var(--mint-deep); margin: 0; }
.microcopy { color: var(--ink-soft); font-size: 0.85rem; margin-top: 0.75rem; }
.footnote { color: var(--ink-soft); font-size: 0.8rem; }
.step-sub { color: var(--ink-soft); margin-top: 0; }

/* Buttons — navy pills with white text, per brand */
.btn { display: inline-block; border: none; border-radius: var(--radius-pill); padding: 0.8rem 2.2rem; font-family: inherit; font-size: 1rem; font-weight: 600; cursor: pointer; text-decoration: none; transition: background 0.15s var(--ease); }
.btn-primary { background: var(--navy); color: var(--white); }
.btn-primary:hover { background: var(--navy-mid); }
.btn-primary:focus-visible { outline: 3px solid var(--navy); outline-offset: 3px; }
.btn-lg { padding: 0.95rem 2.6rem; font-size: 1.1rem; }

/* Wizard */
.wizard { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.progress { color: var(--ink-soft); font-size: 0.85rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.06em; }
.backlink { margin-top: 1rem; }
.backlink a { color: var(--ink-soft); }

.choice-group { border: none; margin: 0 0 1.25rem; padding: 0; display: grid; gap: 0.6rem; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.choice-group legend { font-weight: 600; margin-bottom: 0.5rem; padding: 0; }
.choice-card { display: block; border: 1.5px solid var(--line); border-radius: var(--radius); padding: 0.9rem 1rem; cursor: pointer; background: var(--white); transition: border-color 0.15s var(--ease), background 0.15s var(--ease); }
.choice-card input { position: absolute; opacity: 0; }
.choice-card:hover { border-color: var(--navy-mid); }
.choice-card:has(input:checked) { border-color: var(--navy); background: var(--sky); }
.choice-card:has(input:focus-visible) { outline: 3px solid var(--navy); outline-offset: 2px; }
.choice-card-wide { grid-column: 1 / -1; }
.choice-title { display: block; font-weight: 600; }
.choice-desc { display: block; color: var(--ink-soft); font-size: 0.88rem; margin-top: 0.15rem; }

.pills { display: flex; flex-wrap: wrap; gap: 0.5rem; }
.pill { display: inline-block; cursor: pointer; }
.pill input { position: absolute; opacity: 0; }
.pill span { display: inline-block; border: 1.5px solid var(--line); border-radius: var(--radius-pill); padding: 0.45rem 1rem; font-size: 0.92rem; background: var(--white); transition: border-color 0.15s var(--ease), background 0.15s var(--ease); }
.pill:hover span { border-color: var(--navy-mid); }
.pill:has(input:checked) span { border-color: var(--navy); background: var(--sky); font-weight: 600; }
.pill:has(input:focus-visible) span { outline: 3px solid var(--navy); outline-offset: 2px; }

.field { margin-bottom: 1.25rem; }
.field label { display: block; font-weight: 600; margin-bottom: 0.35rem; }
.field .hint, .hint { color: var(--ink-soft); font-size: 0.85rem; font-weight: 400; }
.text-input { width: 100%; max-width: 24rem; border: 1.5px solid var(--line); border-radius: 8px; padding: 0.6rem 0.8rem; font-family: inherit; font-size: 1rem; color: var(--navy); }
.text-input:focus-visible { outline: 3px solid var(--navy); outline-offset: 1px; }
.field-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); margin-bottom: 1rem; }

.slider-field input[type="range"] { width: 100%; accent-color: var(--navy); }
.slider-labels { display: flex; justify-content: space-between; color: var(--ink-soft); font-size: 0.85rem; }
.slider-labels output { font-weight: 800; color: var(--navy); font-size: 1.2rem; }

.checkbox-row { display: flex; gap: 0.6rem; align-items: flex-start; margin: 0 0 1.25rem; font-size: 0.9rem; color: var(--ink-soft); }
.checkbox-row input { margin-top: 0.25rem; accent-color: var(--navy); }

.form-errors { border: 1.5px solid var(--error); border-radius: var(--radius); background: #fdf3f4; color: var(--error); padding: 0.75rem 1rem; margin-bottom: 1.25rem; }
.form-errors ul { margin: 0.25rem 0 0; padding-left: 1.25rem; }

.badge { display: inline-block; font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: var(--navy); background: var(--tag-green); border-radius: var(--radius-pill); padding: 0.1rem 0.5rem; margin-top: 0.25rem; }
.match-banner { background: var(--mint-tint); border-radius: var(--radius); padding: 0.6rem 1rem; }
.quiz-offer { color: var(--ink-soft); font-size: 0.9rem; }
.quiz-offer a { color: var(--navy); }

/* Hub */
.hub-header { margin-bottom: 1.5rem; }
.card { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 1.25rem; }
.wage-state { font-weight: 600; }
.gain-chip { background: var(--mint-tint); color: var(--navy); font-weight: 800; border-radius: var(--radius-pill); padding: 0.15rem 0.7rem; margin-left: 0.4rem; }
.stat-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 0.75rem; margin: 1rem 0; }
.stat-row dt { color: var(--ink-soft); font-size: 0.8rem; text-transform: uppercase; letter-spacing: 0.05em; }
.stat-row dd { margin: 0; font-size: 1.25rem; font-weight: 800; }
.minitrack-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 1rem; }
.minitrack-list a { color: var(--navy); }
.hub-gate { text-align: center; padding: 4rem 1rem; }

.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
