/* Tokens from the RGBI Brand Design System (Branding/rgbi-design-system.html). */
:root {
  --marine-900: #0e2b2d;
  --marine-700: #1e5a5d;
  --marine-500: #369094;
  --marine-300: #7fbcbf;
  --marine-100: #d6eaea;
  --marine-50: #eff7f7;
  --teal-pop: #12b5b0;
  --teal-deep: #0e8f8b;
  --teal-wash: #d8f1f0;
  --gold-700: #8a6d1a;
  --gold-500: #d3b038;
  --gold-200: #eddfa9;
  --ink: #122729;
  --slate: #43585a;
  --mist: #c9d6d6;
  --paper: #f7fafa;
  --white: #ffffff;

  --font-display: Poppins, ui-sans-serif, system-ui, sans-serif;
  --font-body: Roboto, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--paper);
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, p { margin: 0; }

.page {
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 32px 16px 96px;
}

#app { width: 100%; display: flex; justify-content: center; }

.card {
  width: 100%;
  max-width: 672px;
  background: var(--white);
  border: 1px solid var(--marine-100);
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(14, 43, 45, 0.06);
}
.card.wide { max-width: 768px; }

.card-header { padding: 32px 32px 24px; display: flex; flex-direction: column; gap: 8px; }
.card-body { padding: 0 32px 32px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 480px) {
  .card-header { padding: 24px 16px 16px; }
  .card-body { padding: 0 16px 24px; }
}
.center { text-align: center; align-items: center; }

.eyebrow {
  font-family: var(--font-display);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--gold-700);
}

.title {
  font-family: var(--font-display);
  font-size: 36px;
  line-height: 1.15;
  font-weight: 700;
  color: var(--marine-900);
}
.title.md { font-size: 28px; }
.title.sm { font-size: 22px; font-weight: 600; line-height: 1.3; }
@media (max-width: 480px) {
  .title { font-size: 30px; }
  .title.md { font-size: 24px; }
  .title.sm { font-size: 20px; }
}

/* Gold stays out of the quiz screens, so this bar is teal. */
.gold-bar { width: 64px; height: 4px; border-radius: 2px; background: var(--teal-pop); margin-top: 8px; }

.lede { font-size: 18px; line-height: 1.55; color: var(--slate); margin-top: 8px; max-width: 56ch; }

.pillars { display: grid; grid-template-columns: 1fr; gap: 16px; text-align: center; }
@media (min-width: 640px) { .pillars { grid-template-columns: repeat(3, 1fr); } }
.pillar { padding: 24px 16px; border-radius: 8px; background: var(--teal-wash); border: 1px solid var(--teal-wash); }
.pillar h3 { font-family: var(--font-display); font-size: 16px; font-weight: 600; color: var(--marine-900); }
.pillar p { font-size: 14px; color: var(--slate); }
.pillar .icon { width: 32px; height: 32px; margin: 0 auto 8px; display: block; color: var(--marine-900); }

.icon { width: 16px; height: 16px; flex-shrink: 0; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: 100%;
  min-height: 48px;
  padding: 0 32px;
  border: 0;
  border-radius: 8px;
  background: var(--marine-900);
  color: var(--white);
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.15s;
}
.btn:hover { background: var(--teal-deep); }
.btn:focus-visible { outline: 2px solid var(--teal-pop); outline-offset: 2px; }
.btn:disabled { background: var(--mist); color: var(--slate); cursor: not-allowed; }
.btn .arrow { font-family: var(--font-body); font-weight: 400; }
.btn.outline {
  background: transparent;
  color: var(--marine-900);
  border: 1px solid var(--marine-100);
}
.btn.outline:hover { background: var(--teal-wash); }

.progress-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 8px;
}
.progress-meta .eyebrow { color: var(--marine-700); display: flex; align-items: center; gap: 8px; }
.progress-meta .eyebrow .icon { width: 18px; height: 18px; }
.progress-meta .pct { font-size: 14px; font-weight: 500; color: var(--slate); white-space: nowrap; }
.progress { height: 8px; background: var(--marine-100); border-radius: 999px; margin-bottom: 16px; }
.progress-bar { height: 8px; background: var(--teal-pop); border-radius: 999px; transition: width 0.3s ease-out; }

.options { display: grid; gap: 8px; border: 0; margin: 0; padding: 0; }
.option {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--marine-100);
  border-radius: 8px;
  cursor: pointer;
  transition: background-color 0.15s, border-color 0.15s;
}
.option:hover { background: var(--paper); border-color: var(--marine-300); }
.option:has(input:checked) { background: var(--teal-wash); border-color: var(--teal-pop); }
.option input {
  appearance: none;
  width: 18px;
  height: 18px;
  margin: 3px 0 0;
  border: 2px solid var(--marine-300);
  border-radius: 50%;
  flex-shrink: 0;
  display: grid;
  place-content: center;
}
.option input:checked { border-color: var(--marine-900); }
.option input::before {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--marine-900);
  transform: scale(0);
  transition: transform 0.1s;
}
.option input:checked::before { transform: scale(1); }
.option input:focus-visible { outline: 2px solid var(--teal-pop); outline-offset: 2px; }
.option-label { display: block; font-family: var(--font-display); font-size: 15px; font-weight: 600; color: var(--marine-900); }
.option-desc { display: block; font-size: 14px; color: var(--slate); margin-top: 2px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field label { font-family: var(--font-display); font-size: 14px; font-weight: 600; color: var(--marine-900); }
.field input {
  height: 56px;
  padding: 12px 16px;
  font: inherit;
  font-size: 18px;
  color: var(--ink);
  border: 1px solid var(--mist);
  border-radius: 8px;
}
.field input::placeholder { color: var(--slate); opacity: 0.6; }
.field input:focus { outline: 2px solid var(--teal-pop); outline-offset: 1px; border-color: var(--teal-pop); }
.fineprint { font-size: 14px; color: var(--slate); text-align: center; }
form { display: flex; flex-direction: column; gap: 16px; }

.badge {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  margin-bottom: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--teal-pop);
  color: var(--marine-900);
}
.badge .icon { width: 32px; height: 32px; }

.panel { padding: 24px; background: var(--white); border: 1px solid var(--marine-100); border-radius: 8px; }

/* Score bars: Marine 500, with Teal Pop for the bottleneck. */
.scores { display: grid; gap: 24px; }
.score-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.score-name { font-family: var(--font-display); font-weight: 600; color: var(--marine-900); }
.score-pct { font-family: var(--font-body); font-size: 20px; font-weight: 700; color: var(--marine-700); }
.score-note { font-size: 14px; color: var(--slate); margin-top: 2px; }
.score-track { height: 10px; background: var(--marine-50); border-radius: 999px; margin-top: 8px; overflow: hidden; }
.score-fill { height: 100%; min-width: 10px; background: var(--marine-500); border-radius: 999px; }
.score.is-bottleneck .score-fill { background: var(--teal-pop); }
.score.is-bottleneck .score-pct { color: var(--ink); }

.panel h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--marine-900); }
.panel p { font-size: 16px; line-height: 1.6; color: var(--slate); }
.panel p + h4 { margin-top: 24px; }
.panel p.strong { color: var(--ink); }

.cta {
  padding: 24px;
  text-align: center;
  border: 1px solid var(--marine-100);
  border-radius: 8px;
  background: var(--marine-50);
}
.cta h4 { font-family: var(--font-display); font-size: 18px; font-weight: 600; margin-bottom: 8px; color: var(--marine-900); }
.cta p { font-size: 16px; color: var(--slate); margin-bottom: 8px; }
.cta .sent { font-size: 14px; color: var(--marine-700); font-weight: 500; overflow-wrap: anywhere; }

.footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 12px 16px;
  background: rgba(247, 250, 250, 0.9);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  border-top: 1px solid var(--marine-100);
}
.footer a {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--slate);
  font-size: 14px;
  font-weight: 500;
  text-decoration: none;
  transition: color 0.15s;
}
.footer a:hover { color: var(--marine-700); }
.footer img { width: 28px; height: 28px; }
