:root {
  --bg: #e8eaee;
  --card: #ffffff;
  --ink: #0b1f3a;
  --muted: #5a6578;
  --line: #d5dae3;
  --navy: #0b1f3a;
  --red: #c41e3a;
  --red-dark: #9a1830;
  --gold: #c9a227;
  --cream: #f5ecd7;
  --green: #2f8f4e;
  --shadow: 0 4px 18px rgba(11, 31, 58, 0.08), 0 1px 3px rgba(11, 31, 58, 0.06);
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--ink); overflow-x: hidden; }
body {
  font: 16px/1.45 Outfit, "Segoe UI", system-ui, sans-serif;
  padding: 0 12px 32px;
}

/* —— Site header (navy + gold rule + flag) —— */
.site-head {
  position: sticky;
  top: 0;
  z-index: 30;
  margin: 0 -12px 16px;
  padding: 14px 16px 12px;
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  box-shadow: 0 2px 10px rgba(11, 31, 58, 0.25);
}
.site-head::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--gold), var(--cream), var(--gold));
}
.site-flag {
  width: 28px;
  height: 20px;
  flex-shrink: 0;
  border-radius: 2px;
  overflow: hidden;
  box-shadow: 0 0 0 1px rgba(255,255,255,0.2);
}
.site-flag svg { display: block; width: 100%; height: 100%; }
.site-title {
  margin: 0;
  font-size: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #fff;
}

main {
  max-width: 420px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
main[hidden] { display: none !important; }
.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow);
}
.welcome { padding: 22px 16px 16px; text-align: center; position: relative; }
.voice {
  position: absolute;
  right: 10px;
  bottom: 16px;
  width: 44px;
  height: 44px;
  padding: 8px;
  border: 0;
  border-radius: 50%;
  background: var(--navy);
  color: var(--cream);
  cursor: pointer;
  box-shadow: 0 2px 8px rgba(11, 31, 58, 0.25);
}
.voice svg { width: 100%; height: 100%; display: block; }
.voice.hot .waves { transform-origin: 8px 24px; animation: talk 0.8s ease-in-out infinite; }
.voice.off { opacity: 0.45; }
.voice.off .waves { display: none; }
.holo-box {
  display: none;
  position: fixed;
  right: 10px;
  bottom: 10px;
  width: 168px;
  height: 183px;
  z-index: 200;
  pointer-events: none;
  border: 2px solid #f4f1ea;
  border-radius: 8px;
  overflow: hidden;
  background: #000;
  box-shadow: none;
}
.holo-box.on { display: block; }
.holo-box canvas { display: none; }
.holo-box video {
  display: block !important;
  position: absolute;
  width: 100%;
  height: 100%;
  left: 0;
  top: 0;
  max-width: none;
  object-fit: cover;
  background: #000;
}
.holo-box.fadein { animation: herin 1.8s ease-out forwards; }
.holo-box.out { animation: herout 1.8s ease-in forwards; }
@keyframes herin {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes herout {
  from { opacity: 1; }
  to { opacity: 0; }
}
.holo-box .zap { display: none; }
.holo-box.zap-in canvas,
.holo-box.out canvas { animation: none; }
@keyframes bolt { 50% { opacity: 0.15; } }
@keyframes zapin {
  0%, 14%, 30%, 46%, 64% { opacity: 1; }
  8%, 22%, 38%, 54% { opacity: 0.12; }
  80% { opacity: 0.8; }
  100% { opacity: 0; }
}
@keyframes zapout {
  0% { opacity: 0.2; }
  18% { opacity: 1; }
  32% { opacity: 0.15; }
  50% { opacity: 1; }
  68% { opacity: 0.2; }
  100% { opacity: 0; }
}
@keyframes popin {
  0% { opacity: 0; filter: brightness(4); transform: skewX(-16deg) scale(1.1); }
  10% { opacity: 1; filter: brightness(2.8); transform: skewX(10deg); }
  18% { opacity: 0.04; }
  32% { opacity: 1; filter: brightness(2.3); transform: skewX(-8deg) translateX(-10px); }
  44% { opacity: 0.08; }
  58% { opacity: 1; filter: brightness(1.9); transform: skewX(5deg); }
  70% { opacity: 0.3; }
  84% { opacity: 1; filter: brightness(1.25); transform: none; }
  100% { opacity: 1; filter: none; transform: none; }
}
@keyframes popout {
  0% { opacity: 1; filter: none; transform: none; }
  20% { opacity: 0.15; filter: brightness(2.6); transform: skewX(8deg); }
  40% { opacity: 1; filter: brightness(2); transform: skewX(-6deg) scale(1.04); }
  62% { opacity: 0.2; filter: brightness(3); }
  100% { opacity: 0; filter: brightness(4); transform: skewX(-12deg) scale(0.92); }
}
.holo-box .grid {
  background:
    linear-gradient(rgba(140, 230, 255, 0.16) 1px, transparent 1px),
    linear-gradient(90deg, rgba(140, 230, 255, 0.16) 1px, transparent 1px);
  background-size: 12px 12px;
  mix-blend-mode: screen;
  opacity: 0.45;
}
.holo-box .scan {
  background: repeating-linear-gradient(to bottom, transparent 0 2px, rgba(150, 235, 255, 0.16) 2px 3px);
  mix-blend-mode: screen;
  animation: scan 1.8s linear infinite;
}
@keyframes scan { to { transform: translateY(6px); } }
.holo-box .zap { opacity: 0; }
.holo-box .zap svg {
  width: 100%;
  height: 100%;
  fill: rgba(210, 255, 255, 0.75);
  stroke: #f4ffff;
  stroke-width: 1.4;
  filter: drop-shadow(0 0 8px #9ff);
}
.holo-box .grid,
.holo-box .scan,
.holo-box .zap { position: absolute; inset: 0; pointer-events: none; }
.gate {
  position: absolute;
  inset: 0;
  z-index: 5;
  border-radius: 16px;
  background: rgba(11, 31, 58, 0.72);
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 12px;
}
.gate[hidden] { display: none !important; }
.press {
  margin: 0 0 18px;
  color: #fff;
  font-weight: 700;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 6px;
}
.arrow { width: 54px; height: 20px; color: var(--cream); }
#start {
  width: 76px;
  height: 76px;
  border: 0;
  border-radius: 50%;
  background: var(--red);
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: pointer;
  box-shadow: 0 0 0 6px rgba(196, 30, 58, 0.28);
}
#step0.holding .veil { display: flex; }
@keyframes talk {
  0%, 100% { opacity: 0.35; }
  50% { opacity: 1; }
}
.welcome h1 {
  margin: 0 0 10px;
  font-family: Outfit, "Segoe UI", system-ui, sans-serif;
  font-size: 24px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  color: var(--navy);
  background: transparent;
  border-radius: 0;
  padding: 0;
}
.welcome p { margin: 0 0 8px; color: var(--muted); }
.rules { color: var(--muted); font-size: 13px; }
.needs {
  margin: 12px 0 0;
  padding: 0 54px 0 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  text-align: left;
}
.pay {
  margin: 14px 0 0;
  padding: 10px 54px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
  font-size: 12px;
  line-height: 1.5;
  color: var(--muted);
  text-align: left;
}
.pay li { margin: 0; }
.apps-head {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-align: center;
  color: #fff;
  background: var(--navy);
  border-radius: 8px;
  padding: 8px 10px;
}
.need, .sub {
  margin: 0;
  font-size: 13px;
  color: var(--navy);
  background: #f0f3f8;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
}
.faces {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 8px;
}
.faces.pair { grid-template-columns: 1fr 1fr; }
.app-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.app-name {
  margin: 4px 0 0;
  font-size: 14px;
  font-weight: 700;
  color: var(--navy);
}
.app-name span {
  margin-left: 6px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--muted);
}
.mini {
  min-height: 34px;
  padding: 4px 10px;
  font-size: 13px;
  align-self: flex-start;
}
.face {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 92px;
  border-radius: 14px;
  text-decoration: none;
  color: #fff;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: 0.01em;
}
.face { position: relative; }
.face svg { width: 36px; height: 36px; }
.face.hold {
  pointer-events: none;
  filter: grayscale(1) brightness(0.45);
}
.face.hold::after {
  content: "Open the prior app";
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px;
  border-radius: 14px;
  background: rgba(11, 31, 58, 0.72);
  color: #f4f6f8;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-align: center;
}
.face.gusto { background: #f45d48; }
.face.ios { background: #1c1c1e; border: 1px solid #3a3a3e; }
.face.and { background: #1b3a2a; border: 1px solid #245c40; }
.fine { margin: 0; color: var(--muted); font-size: 12px; text-align: center; }
.ask {
  position: fixed;
  inset: 0;
  z-index: 40;
  background: rgba(11, 31, 58, 0.45);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 18px;
}
.ask[hidden] { display: none !important; }
.ask-card {
  width: min(340px, 100%);
  background: #fff;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--shadow);
}
.ask-card p { margin: 0 0 14px; }
.ask-row { display: flex; gap: 8px; }
.ask-row button {
  flex: 1;
  border-radius: 12px;
  padding: 12px 8px;
  font: inherit;
  font-weight: 650;
}
#askYes { background: var(--red); color: #fff; border: 0; }
#askNo { background: transparent; color: var(--navy); border: 1px solid var(--line); }
.bar {
  width: 100%;
  display: grid;
  grid-template-columns: 32px 1fr 22px;
  gap: 10px;
  align-items: center;
  min-height: 58px;
  padding: 8px 14px;
  background: transparent;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  overflow: visible;
  border-bottom: 3px solid transparent;
}
/* Active (open) step — red accent underline */
.step:has(form:not([hidden])) .bar,
.step:has(.panel:not([hidden])) .bar {
  border-bottom-color: var(--red);
}
.num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
}
.step.done .num {
  background: var(--red);
}
.label {
  font-size: 16px;
  font-weight: 600;
  letter-spacing: -0.02em;
  color: var(--navy);
  background: transparent;
  border-radius: 0;
  padding: 0;
  justify-self: start;
}
.box {
  position: relative;
  width: 18px;
  height: 18px;
  border: 2px solid #9aa3b2;
  border-radius: 5px;
  justify-self: end;
  overflow: visible;
  background: #fff;
}
.step.done .box { background: transparent; border-color: var(--green); }
.step.done .box::after {
  content: "";
  position: absolute;
  left: 5px;
  top: -4px;
  width: 7px;
  height: 14px;
  border-right: 3px solid var(--green);
  border-bottom: 3px solid var(--green);
  transform: rotate(45deg);
  pointer-events: none;
}
.panel, form { padding: 0 14px 14px; display: flex; flex-direction: column; gap: 10px; }
label { display: block; font-size: 12px; color: var(--muted); letter-spacing: 0.04em; font-weight: 600; }
input {
  width: 100%;
  margin-top: 4px;
  padding: 11px 12px;
  font: inherit;
  color: var(--ink);
  background: #f7f8fb;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: inset 0 1px 2px rgba(11, 31, 58, 0.04);
}
input:focus {
  outline: 2px solid rgba(196, 30, 58, 0.35);
  border-color: var(--red);
  background: #fff;
}
input[readonly] { color: var(--muted); background: #eef0f4; }
.go, .done {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 8px 12px;
  background: var(--navy);
  color: #fff;
  text-decoration: none;
  border: 0;
  border-radius: 10px;
  font: inherit;
  font-weight: 650;
  cursor: pointer;
}
.done { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.info { padding: 14px; }
.step.busy .box {
  background: repeating-linear-gradient(-45deg, var(--green) 0 3px, transparent 3px 6px);
  background-size: 12px 12px;
  border-color: var(--green);
  animation: march 0.6s linear infinite;
}
@keyframes march { to { background-position: 12px 0; } }
.receipt {
  border: 1px solid var(--line);
  background: #f7f8fb;
  border-radius: 12px;
  padding: 14px;
  box-shadow: none;
}
.receipt .sent {
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--green);
}
.receipt h2 { margin: 0 0 4px; font-size: 15px; color: var(--navy); }
.receipt p { margin: 0 0 10px; color: var(--muted); font-size: 12px; }
.receipt dl { margin: 0; }
.receipt dt { font-size: 11px; color: var(--muted); letter-spacing: 0.04em; }
.receipt dd { margin: 0 0 8px; color: var(--ink); }
.mark, #fileApp {
  background: #a8adb8;
  color: #fff;
  border: 0;
  cursor: default;
}
.mark.ready, #fileApp.ready {
  background: var(--red);
  color: #fff;
  cursor: pointer;
}
.mark.on {
  background: var(--green);
  color: #fff;
}
.mark:disabled, #fileApp:disabled {
  background: #a8adb8;
  color: #fff;
  opacity: 1;
}
.mark.on:disabled {
  background: var(--green);
  color: #fff;
}
.done.mini {
  min-height: 32px;
  padding: 4px 12px;
  font-size: 12px;
  align-self: flex-start;
}
.step { position: relative; display: flex; flex-direction: column; align-items: stretch; width: 100%; }
.bar, form, .panel { width: 100%; max-width: 100%; }
form[hidden], .panel[hidden] { display: none !important; }
.step.locked { opacity: 1; }
.step.locked .bar { cursor: default; }
.veil {
  display: none;
  position: absolute;
  inset: 0;
  z-index: 3;
  border-radius: 16px;
  align-items: center;
  justify-content: center;
  background: rgba(11, 31, 58, 0.55);
  color: #f4f6f8;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.04em;
}
.step.locked .veil { display: flex; }
.finish, #finish {
  width: 100%;
  min-height: 54px;
  margin-top: 2px;
  border: 0;
  border-radius: 14px;
  background: #a8adb8;
  color: #fff;
  font: inherit;
  font-size: 16px;
  font-weight: 700;
  cursor: default;
}
#finish.ready { background: var(--red); cursor: pointer; box-shadow: 0 4px 14px rgba(196, 30, 58, 0.3); }
.thanks { padding: 28px 18px; text-align: center; max-width: 420px; margin: 18px auto; }
.thanks h2 { margin: 0 0 12px; font-size: 22px; line-height: 1.25; color: var(--navy); }
#finish, .go, .done { font-family: Outfit, sans-serif; letter-spacing: -0.01em; }
.thanks p { margin: 0 0 10px; color: var(--muted); }

/* Background check link as primary red CTA */
a.go {
  background: var(--red);
  color: #fff;
}
a.go:hover { background: var(--red-dark); }
a.go.hold { background: #a8adb8; cursor: default; }

/* Fieldhouse additions */
label select {
  display: block;
  width: 100%;
  margin-top: 6px;
  padding: 12px 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
button.face {
  border: 0;
  font: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}
.ask-sms {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 10px 14px;
  border-radius: 10px;
  background: var(--cream);
  color: var(--navy);
  text-decoration: none;
  font-weight: 600;
}
