:root {
  --green-dark:  #2d5a27;
  --green-mid:   #4a8c3f;
  --green-light: #e8f5e4;
  --green-acc:   #6ab04c;
  --gray-50:     #f7f8f6;
  --gray-100:    #eef0ec;
  --gray-200:    #dde1da;
  --gray-400:    #9ba89a;
  --gray-600:    #5c6b5a;
  --gray-800:    #2c3b2a;
  --white:       #ffffff;
  --radius:      12px;
  --shadow:      0 4px 24px rgba(45,90,39,.13);
}
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

body {
  font-family: 'Segoe UI', system-ui, -apple-system, sans-serif;
  background: var(--gray-50);
  color: var(--gray-800);
  min-height: 100vh;
}

/* ── Test mode banner ── */
#test-banner {
  background: #b45309;
  color: #fff;
  text-align: center;
  padding: 7px 16px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 1px;
  text-transform: uppercase;
}

/* ── Top bar ── */
#topbar {
  background: var(--green-dark);
  color: var(--white);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
#topbar .brand  { font-size: 13px; letter-spacing: 1px; text-transform: uppercase; opacity: .75; }
#topbar .title  { font-size: 15px; font-weight: 700; }

/* ── Progress dots ── */
#dots {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 18px 0 0;
}
.dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--gray-200);
  transition: background .3s, transform .3s;
}
.dot.active   { background: var(--green-mid); transform: scale(1.3); }
.dot.complete { background: var(--green-acc); }

/* ── Main layout ── */
#content {
  display: flex;
  justify-content: center;
  padding: 28px 20px 100px;
}
.card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%;
  max-width: 740px;
  overflow: hidden;
  animation: fadeUp .28s ease;
}
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

.card-stripe {
  background: var(--green-dark);
  color: var(--white);
  padding: 28px 36px;
}
.card-stripe .eyebrow {
  font-size: 11px; text-transform: uppercase;
  letter-spacing: 1.5px; opacity: .7; margin-bottom: 8px;
}
.card-stripe h1 { font-size: 26px; font-weight: 800; line-height: 1.3; }
.card-stripe p  { font-size: 14px; opacity: .85; margin-top: 8px; line-height: 1.5; }

.card-body { padding: 36px; }

/* ── Info blocks ── */
.block { margin-bottom: 28px; }
.block:last-child { margin-bottom: 0; }
.block h2 {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--green-mid); margin-bottom: 10px;
}
.block p {
  font-size: 15px; color: var(--gray-600); line-height: 1.75;
}
.block p + p { margin-top: 10px; }

/* ── Commissioned box ── */
.commissioned-box {
  background: var(--green-light);
  border: 1.5px solid #a7d39b;
  border-radius: var(--radius);
  padding: 22px 26px;
  margin-bottom: 28px;
  display: flex;
  gap: 18px;
  align-items: flex-start;
}
.commissioned-box .icon {
  font-size: 32px;
  flex-shrink: 0;
  line-height: 1;
}
.commissioned-box h3 {
  font-size: 15px; font-weight: 700;
  color: var(--green-dark); margin-bottom: 6px;
}
.commissioned-box p {
  font-size: 14px; color: var(--gray-600); line-height: 1.65;
}

/* ── What to expect pills ── */
.expect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 32px;
}
@media (max-width: 560px) { .expect-grid { grid-template-columns: 1fr; } }
.expect-item {
  background: var(--gray-50);
  border: 1px solid var(--gray-200);
  border-radius: 10px;
  padding: 16px;
  text-align: center;
}
.expect-item .ei-num {
  font-size: 26px; font-weight: 900;
  color: var(--green-dark); line-height: 1;
}
.expect-item .ei-label {
  font-size: 12px; color: var(--gray-600);
  margin-top: 4px; line-height: 1.4;
}

/* ── John Kiel attribution note ── */
.jk-note {
  border-top: 1px solid var(--gray-200);
  padding-top: 18px;
  margin-top: 8px;
}
.jk-note p {
  font-size: 13px;
  color: var(--gray-400);
  line-height: 1.6;
}

/* ── Process timeline ── */
.timeline {
  display: flex; flex-direction: column; gap: 0;
  margin-top: 12px;
}
.tl-item {
  display: grid;
  grid-template-columns: 90px 1fr;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--gray-200);
  align-items: start;
}
.tl-item:last-child { border-bottom: none; }
.tl-date {
  font-size: 12px; font-weight: 800; color: var(--green-mid);
  text-transform: uppercase; letter-spacing: .5px; padding-top: 2px;
}
.tl-desc {
  font-size: 14px; color: var(--gray-600); line-height: 1.55;
}

/* ── Employee selection ── */
.employee-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}
@media (max-width: 520px) { .employee-grid { grid-template-columns: 1fr; } }

.emp-card {
  border: 2.5px solid var(--gray-200);
  border-radius: var(--radius);
  padding: 22px 20px;
  cursor: pointer;
  transition: border-color .18s, box-shadow .18s, transform .12s;
  background: var(--white);
  text-align: left;
  width: 100%;
}
.emp-card:hover {
  border-color: var(--green-acc);
  box-shadow: 0 4px 16px rgba(74,140,63,.18);
  transform: translateY(-2px);
}
.emp-card.selected {
  border-color: var(--green-mid);
  background: var(--green-light);
}
.emp-card .emp-avatar {
  width: 48px; height: 48px;
  background: var(--green-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 20px; font-weight: 800; color: var(--white);
  margin-bottom: 14px;
}
.emp-card .emp-name {
  font-size: 17px; font-weight: 800;
  color: var(--gray-800); margin-bottom: 4px;
}
.emp-card .emp-title {
  font-size: 12px; color: var(--gray-600); line-height: 1.4;
}
.emp-card .emp-check {
  margin-top: 14px;
  font-size: 12px; font-weight: 700;
  color: var(--green-mid);
  opacity: 0;
  transition: opacity .15s;
}
.emp-card.selected .emp-check { opacity: 1; }

.emp-card.completed {
  border-color: var(--green-mid);
  background: var(--green-light);
  cursor: default;
}
.emp-card.completed:hover {
  transform: none;
  box-shadow: none;
  border-color: var(--green-mid);
}
.emp-card.completed .emp-avatar {
  background: var(--green-mid);
}
.emp-card .emp-submitted {
  margin-top: 14px;
  font-size: 13px; font-weight: 700;
  color: var(--green-mid);
}
.emp-card .emp-submitted-check {
  display: inline-block;
  width: 18px; height: 18px; line-height: 18px;
  background: var(--green-mid);
  color: white;
  border-radius: 50%;
  text-align: center;
  font-size: 11px;
  margin-right: 5px;
}

.select-note {
  font-size: 13px; color: var(--gray-400);
  text-align: center; margin-top: 12px;
}

/* ── Job description page ── */
.jd-employee-header {
  display: flex; align-items: center; gap: 16px;
  margin-bottom: 24px;
}
.jd-avatar {
  width: 56px; height: 56px;
  background: var(--green-dark);
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; font-weight: 800; color: var(--white);
  flex-shrink: 0;
}
.jd-employee-header div h2 { font-size: 20px; font-weight: 800; }
.jd-employee-header div p  { font-size: 13px; color: var(--gray-600); margin-top: 3px; }

.jd-section { margin-bottom: 26px; }
.jd-section h3 {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: 1px;
  color: var(--green-mid); margin-bottom: 10px;
  padding-bottom: 6px;
  border-bottom: 2px solid var(--green-light);
}
.jd-section p {
  font-size: 14px; color: var(--gray-600); line-height: 1.7;
}
.jd-list {
  list-style: none;
  display: flex; flex-direction: column; gap: 7px;
}
.jd-list li {
  display: flex; align-items: flex-start; gap: 10px;
  font-size: 14px; color: var(--gray-600); line-height: 1.55;
}
.jd-list li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-acc);
  flex-shrink: 0;
  margin-top: 8px;
}

.jd-begin-wrap {
  background: var(--green-light);
  border: 1.5px solid #a7d39b;
  border-radius: var(--radius);
  padding: 20px 24px;
  margin-top: 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.jd-begin-wrap p {
  font-size: 14px; color: var(--gray-600); line-height: 1.5;
}
.jd-begin-wrap p strong { color: var(--green-dark); }

/* ── Nav footer ── */
#nav-footer {
  position: fixed; bottom: 0; left: 0; right: 0;
  background: var(--white); border-top: 1px solid var(--gray-200);
  padding: 14px 28px;
  display: flex; align-items: center; justify-content: space-between;
  gap: 12px;
  box-shadow: 0 -4px 16px rgba(0,0,0,.06);
  z-index: 200;
}
.btn {
  padding: 11px 28px; border-radius: 8px;
  font-size: 14px; font-weight: 700;
  cursor: pointer; border: none;
  transition: all .15s; letter-spacing: .3px;
}
.btn-back {
  background: var(--gray-100); color: var(--gray-600);
  border: 1.5px solid var(--gray-200);
}
.btn-back:hover   { background: var(--gray-200); }
.btn-back:disabled { opacity: .3; cursor: not-allowed; }
.btn-next {
  background: var(--green-dark); color: var(--white);
}
.btn-next:hover   { background: var(--green-mid); }
.btn-next:disabled { opacity: .35; cursor: not-allowed; }
.btn-begin {
  background: var(--green-mid); color: var(--white);
  padding: 12px 32px; font-size: 15px;
}
.btn-begin:hover { background: var(--green-dark); }

.nav-spacer { flex: 1; }

/* ── Login overlay ── */
#login-overlay {
  position: fixed; inset: 0;
  background: url('https://images.squarespace-cdn.com/content/v1/5ef4dfaaeae6c42201078f56/1604875922107-DVSJHTD6KG665F0DJ8LK/IMG_2641%2B2.jpg?format=2500w') center/cover no-repeat;
  display: flex; align-items: center; justify-content: center;
  z-index: 999;
  padding: 20px;
  transition: opacity .3s ease;
}
.login-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  width: 100%; max-width: 400px;
  overflow: hidden;
  animation: fadeUp .28s ease;
}
.login-header {
  background: var(--green-dark);
  color: var(--white);
  padding: 32px 36px 24px;
  text-align: center;
}
.login-header .login-logo {
  font-size: 40px; line-height: 1; margin-bottom: 12px;
}
.login-header h1 {
  font-size: 16px; font-weight: 800; margin-bottom: 6px;
}
.login-header p {
  font-size: 13px; opacity: .8; line-height: 1.5;
}
.login-test-note {
  background: #b45309;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .8px;
  text-transform: uppercase;
  text-align: center;
  padding: 8px 16px;
}
.login-body { padding: 32px 36px; }
.login-field { margin-bottom: 18px; }
.login-field label {
  display: block;
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
  color: var(--gray-600); margin-bottom: 7px;
}
.login-field input {
  width: 100%;
  padding: 11px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  font-size: 15px;
  color: var(--gray-800);
  background: var(--white);
  transition: border-color .15s, box-shadow .15s;
  outline: none;
}
.login-field input:focus {
  border-color: var(--green-mid);
  box-shadow: 0 0 0 3px rgba(74,140,63,.15);
}
.login-error {
  color: #c0392b;
  font-size: 13px; font-weight: 600;
  margin-bottom: 10px; min-height: 18px;
  text-align: center;
}
.btn-login {
  width: 100%;
  padding: 13px;
  background: var(--green-dark); color: var(--white);
  border: none; border-radius: 8px;
  font-size: 15px; font-weight: 700;
  cursor: pointer;
  transition: background .15s;
}
.btn-login:hover { background: var(--green-mid); }
.login-note {
  font-size: 12px; color: var(--gray-400);
  text-align: center; margin-top: 16px; line-height: 1.5;
}

/* ════════════════════════════════════════════════════════════
   ACCESSIBILITY WIDGET
   ════════════════════════════════════════════════════════════ */

#a11y-widget { position: relative; flex-shrink: 0; }

#a11y-open-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  background: rgba(255,255,255,.15);
  border: 1px solid rgba(255,255,255,.30);
  color: var(--white);
  border-radius: 6px;
  padding: 6px 11px;
  font-size: 12px;
  font-weight: 700;
  cursor: pointer;
  font-family: inherit;
  white-space: nowrap;
  transition: background .15s;
  line-height: 1;
}
#a11y-open-btn:hover         { background: rgba(255,255,255,.25); }
#a11y-open-btn:focus-visible  { outline: 2px solid var(--green-acc); outline-offset: 3px; }

#a11y-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  background: var(--white);
  border: 1.5px solid var(--gray-200);
  border-radius: 12px;
  box-shadow: 0 8px 28px rgba(0,0,0,.14);
  padding: 18px;
  width: 224px;
  z-index: 9999;
}

.a11y-heading {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray-400);
  margin-bottom: 10px;
}

.a11y-size-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 6px;
  margin-bottom: 16px;
}
.a11y-size-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 10px 4px 8px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-600);
  cursor: pointer;
  font-family: inherit;
  font-weight: 800;
  line-height: 1;
  transition: all .12s;
}
.a11y-size-btn:nth-child(1) .a11y-size-letter { font-size: 15px; }
.a11y-size-btn:nth-child(2) .a11y-size-letter { font-size: 19px; }
.a11y-size-btn:nth-child(3) .a11y-size-letter { font-size: 23px; }
.a11y-size-label {
  font-size: 9px;
  font-weight: 600;
  color: var(--gray-400);
  text-transform: uppercase;
  letter-spacing: .3px;
}
.a11y-size-btn:hover       { border-color: var(--green-mid); color: var(--green-mid); }
.a11y-size-btn:hover .a11y-size-label { color: var(--green-mid); }
.a11y-size-btn.active      { border-color: var(--green-mid); background: var(--green-light); color: var(--green-dark); }
.a11y-size-btn.active .a11y-size-label { color: var(--green-mid); }
.a11y-size-btn:focus-visible { outline: 2px solid var(--green-acc); outline-offset: 2px; }

.a11y-hr { border: none; border-top: 1px solid var(--gray-100); margin-bottom: 14px; }

.a11y-contrast-btn {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px 14px;
  border: 1.5px solid var(--gray-200);
  border-radius: 8px;
  background: var(--white);
  color: var(--gray-600);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  font-family: inherit;
  text-align: left;
  transition: all .12s;
}
.a11y-contrast-icon { font-size: 17px; line-height: 1; }
.a11y-contrast-btn:hover  { border-color: var(--green-mid); color: var(--green-mid); }
.a11y-contrast-btn.active { border-color: var(--green-mid); background: var(--green-light); color: var(--green-dark); }
.a11y-contrast-btn:focus-visible { outline: 2px solid var(--green-acc); outline-offset: 2px; }

/* ════════════════════════════════════════════════════════════
   FONT SIZE SCALING
   ════════════════════════════════════════════════════════════ */
body[data-font-size="large"]  .card { zoom: 1.15; }
body[data-font-size="larger"] .card { zoom: 1.30; }

/* ════════════════════════════════════════════════════════════
   HIGH CONTRAST MODE
   ════════════════════════════════════════════════════════════ */
body[data-contrast="high"] {
  --gray-400: #48584a;
  --gray-600: #1e2d20;
  --gray-200: #aab9ab;
  --gray-100: #d2dcd3;
  --green-light: #bad4b6;
}

/* ════════════════════════════════════════════════════════════
   KEYBOARD FOCUS RINGS
   ════════════════════════════════════════════════════════════ */
:focus-visible {
  outline: 3px solid var(--green-acc);
  outline-offset: 2px;
}
.btn:focus-visible {
  outline: 3px solid var(--white);
  outline-offset: -4px;
}
