/* Vault Leads kiosk - design per approved mockup (design/kiosk-mockup.html) */
:root {
  --ground: #070B14;
  --panel: #111A2E;
  --panel-2: #0C1322;
  --line: rgba(63, 198, 255, 0.14);
  --blue: #009FDB;
  --glow: #3FC6FF;
  --green: #2CE08B;
  --red: #FF4557;
  --amber: #FFB020;
  --text: #EEF4FF;
  --muted: #8DA0C0;
  --faint: #4E5E7E;
  --radius: 22px;
  --disp: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
* { margin: 0; padding: 0; box-sizing: border-box; }
html, body { height: 100%; }
body {
  background: var(--ground);
  color: var(--text);
  font-family: var(--disp);
  overflow: hidden;
  -webkit-tap-highlight-color: transparent;
  user-select: none;
  -webkit-user-select: none;
}
input { user-select: text; -webkit-user-select: text; }

/* ================= shared type ================= */
.eyebrow {
  font-size: 13px; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: var(--glow);
}
.display {
  font-weight: 900; font-style: italic; letter-spacing: -0.02em;
  text-transform: uppercase; line-height: 0.95; text-wrap: balance;
}
.hint { color: var(--muted); font-size: 16px; line-height: 1.5; }

/* ================= screen shell ================= */
.screen {
  position: absolute; inset: 0;
  display: flex; flex-direction: column; align-items: center;
  padding: max(4vh, 24px) 24px;
  opacity: 0; visibility: hidden; transform: translateX(60px);
  transition: opacity .35s ease, transform .35s ease, visibility 0s linear .35s;
}
.screen.active {
  opacity: 1; visibility: visible; transform: translateX(0);
  transition: opacity .35s ease, transform .35s ease;
}
.screen.exit-back { transform: translateX(-60px); }

/* ================= attract ================= */
#speedlines { position: absolute; inset: 0; width: 100%; height: 100%; }
.attract-inner {
  position: relative; z-index: 2; height: 100%; width: 100%;
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; gap: 4vh; text-align: center; cursor: pointer;
}
.brand-lockup { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.brand-name {
  font-weight: 800; font-size: clamp(20px, 2.6vw, 28px);
  letter-spacing: 0.28em; text-transform: uppercase;
}
.brand-chip {
  display: inline-flex; align-items: center; gap: 10px;
  border: 1px solid var(--line); border-radius: 999px;
  padding: 8px 18px; font-size: 13px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted);
  background: rgba(17, 26, 46, 0.6);
}
.brand-chip .globe {
  width: 18px; height: 18px; border-radius: 50%;
  background:
    radial-gradient(circle at 35% 35%, rgba(255,255,255,.85) 0 12%, transparent 13%),
    repeating-linear-gradient(180deg, transparent 0 2px, rgba(255,255,255,.35) 2px 3px),
    radial-gradient(circle, var(--glow), var(--blue) 70%);
}
.attract-title { font-size: clamp(56px, 11vw, 150px); }
.attract-title .line2 { color: var(--glow); }
.attract-sub { font-size: clamp(17px, 2vw, 22px); color: var(--muted); max-width: 34ch; }
.tap-cue { margin-top: 2vh; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.tap-cue .pulse {
  width: 74px; height: 74px; border-radius: 50%;
  border: 2px solid var(--glow);
  display: grid; place-items: center;
  animation: pulse 1.8s ease-out infinite;
}
.tap-cue .pulse::after { content: ""; width: 26px; height: 26px; border-radius: 50%; background: var(--glow); }
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(63,198,255,.45); }
  70% { box-shadow: 0 0 0 34px rgba(63,198,255,0); }
  100% { box-shadow: 0 0 0 0 rgba(63,198,255,0); }
}
.tap-cue span { font-size: 15px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; }
.attract-footer {
  position: absolute; bottom: 3vh; left: 0; right: 0; z-index: 2;
  text-align: center; font-size: 13px; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--faint);
}

/* ================= start-light gantry ================= */
.gantry {
  display: flex; gap: 14px; padding: 14px 22px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 999px; margin-bottom: 4vh;
}
.gantry .light {
  width: 22px; height: 22px; border-radius: 50%;
  background: #1A2338; border: 1px solid #253152;
  transition: background .3s, box-shadow .3s;
}
.gantry .light.on { background: var(--red); box-shadow: 0 0 14px rgba(255,69,87,.55); }
.gantry.go .light { background: var(--green); box-shadow: 0 0 16px rgba(44,224,139,.6); }

/* ================= form steps ================= */
.step-wrap {
  width: min(720px, 100%); display: flex; flex-direction: column;
  align-items: center; text-align: center; gap: 3vh; margin-top: 2vh;
}
.step-q { font-size: clamp(34px, 5vw, 56px); }
.big-input {
  width: 100%; background: var(--panel); color: var(--text);
  border: 2px solid var(--line); border-radius: var(--radius);
  font-size: clamp(26px, 3.4vw, 38px); font-weight: 600;
  padding: 22px 28px; text-align: center; outline: none;
  font-family: var(--disp);
  transition: border-color .2s, box-shadow .2s;
}
.big-input:focus { border-color: var(--glow); box-shadow: 0 0 0 4px rgba(63,198,255,.15); }
.big-input::placeholder { color: var(--faint); font-weight: 400; }
.big-input.invalid { border-color: var(--red); box-shadow: 0 0 0 4px rgba(255,69,87,.15); }
.field-error { color: var(--red); font-size: 15px; font-weight: 600; min-height: 20px; }

.btn {
  font-family: var(--disp); border: none; cursor: pointer;
  border-radius: 999px; font-weight: 800; letter-spacing: 0.08em;
  text-transform: uppercase;
  transition: transform .12s, box-shadow .2s, background .2s;
}
.btn:active { transform: scale(.97); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--glow));
  color: #04121C; font-size: 20px; padding: 20px 64px;
  box-shadow: 0 8px 30px rgba(0,159,219,.35);
}
.btn-ghost {
  background: transparent; color: var(--muted); font-size: 15px;
  padding: 14px 28px; border: 1px solid var(--line);
}
.back-btn {
  position: absolute; top: max(3vh, 20px); left: 24px;
  background: var(--panel); border: 1px solid var(--line); color: var(--muted);
  width: 56px; height: 56px; border-radius: 50%; font-size: 24px;
  cursor: pointer; display: grid; place-items: center;
}

/* ================= choice cards ================= */
.choice-row { display: flex; gap: 24px; width: min(900px, 100%); margin-top: 2vh; }
.choice-card {
  flex: 1; background: var(--panel); border: 2px solid var(--line);
  border-radius: var(--radius); padding: 40px 30px; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 18px;
  text-align: center; transition: border-color .2s, transform .15s, box-shadow .2s;
}
.choice-card:active { transform: scale(.98); }
.choice-card .ico { font-size: 54px; line-height: 1; }
.choice-card h3 {
  font-size: 26px; font-weight: 900; font-style: italic;
  text-transform: uppercase; letter-spacing: -0.01em;
}
.choice-card p { color: var(--muted); font-size: 16px; line-height: 1.5; max-width: 28ch; }
.choice-card .tag {
  margin-top: auto; font-size: 13px; font-weight: 800; letter-spacing: 0.16em;
  text-transform: uppercase; padding: 8px 18px; border-radius: 999px;
}
.choice-card.play { border-color: rgba(44,224,139,.4); }
.choice-card.play .tag { background: rgba(44,224,139,.15); color: var(--green); }
.choice-card.contact .tag { background: rgba(63,198,255,.12); color: var(--glow); }

/* ================= referral ================= */
.ref-list { width: min(720px, 100%); display: flex; flex-direction: column; gap: 14px; }
.ref-row { display: flex; gap: 12px; }
.ref-row input {
  flex: 1; background: var(--panel); color: var(--text);
  border: 2px solid var(--line); border-radius: 16px;
  font-size: 19px; padding: 16px 20px; outline: none; font-family: var(--disp);
}
.ref-row input:focus { border-color: var(--glow); }
.add-ref {
  align-self: center; background: transparent; border: 2px dashed var(--line);
  color: var(--glow); font-size: 16px; font-weight: 700;
  border-radius: 999px; padding: 12px 28px; cursor: pointer; font-family: var(--disp);
}
.step-actions { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; justify-content: center; }

/* ================= thanks ================= */
.thanks-flash {
  position: absolute; inset: 0; background: var(--green);
  opacity: 0; pointer-events: none; z-index: 1;
}
.screen.active .thanks-flash { animation: flash .9s ease-out; }
@keyframes flash { 0% { opacity: .85; } 100% { opacity: 0; } }
.thanks-inner {
  position: relative; z-index: 2; display: flex; flex-direction: column;
  align-items: center; gap: 3vh; text-align: center; margin-top: 4vh;
}
.entry-count {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: var(--panel); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 60px;
}
.entry-count .num {
  font-size: 96px; font-weight: 900; font-style: italic; line-height: 1;
  color: var(--green); font-variant-numeric: tabular-nums;
}
.entry-count .lbl { font-size: 14px; letter-spacing: 0.24em; text-transform: uppercase; color: var(--muted); }
.bonus-note { max-width: 46ch; color: var(--muted); font-size: 17px; line-height: 1.6; }
.bonus-note strong { color: var(--glow); font-weight: 700; }
.reset-ring {
  display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 14px;
  letter-spacing: 0.14em; text-transform: uppercase; margin-top: 2vh;
}
.checker {
  width: 100%; height: 26px; margin-top: 1vh;
  background: repeating-conic-gradient(#EEF4FF 0% 25%, #070B14 0% 50%) 0 0 / 26px 26px;
  opacity: .18; border-radius: 4px;
}

/* ================= overlays: rep pin & handoff ================= */
.overlay {
  position: fixed; inset: 0; z-index: 40; background: rgba(4, 7, 14, 0.88);
  backdrop-filter: blur(8px); display: none;
  align-items: center; justify-content: center; padding: 24px;
}
.overlay.open { display: flex; }
.sheet {
  width: min(680px, 100%); background: var(--panel);
  border: 1px solid var(--line); border-radius: 28px; padding: 36px;
  display: flex; flex-direction: column; gap: 22px; max-height: 88vh; overflow-y: auto;
}
.sheet h2 { font-size: 26px; font-weight: 900; font-style: italic; text-transform: uppercase; }
.rep-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 14px; }
.rep-card {
  background: var(--panel-2); border: 2px solid var(--line); border-radius: 18px;
  padding: 22px 16px; text-align: center; cursor: pointer; font-family: var(--disp);
  color: var(--text); transition: border-color .2s;
}
.rep-card .avatar {
  width: 52px; height: 52px; border-radius: 50%; margin: 0 auto 10px;
  background: linear-gradient(135deg, var(--blue), var(--glow));
  display: grid; place-items: center; font-weight: 900; font-size: 20px; color: #04121C;
}
.rep-card .nm { font-weight: 700; font-size: 17px; }
.rep-card .em { font-size: 12px; color: var(--muted); margin-top: 4px; word-break: break-all; }
.rep-card.selected { border-color: var(--green); }
.rep-badge {
  position: fixed; bottom: 18px; left: 18px; z-index: 30;
  display: flex; align-items: center; gap: 10px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 999px; padding: 10px 18px 10px 12px; cursor: pointer;
}
.rep-badge .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); }
.rep-badge .dot.pending { background: var(--amber); }
.rep-badge span { font-size: 13px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--muted); }

.handoff-fields { display: flex; flex-direction: column; gap: 12px; }
.copy-field {
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  background: var(--panel-2); border: 1px solid var(--line);
  border-radius: 16px; padding: 16px 20px;
}
.copy-field .k { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); }
.copy-field .v { font-size: 19px; font-weight: 600; user-select: text; -webkit-user-select: text; }
.copy-btn {
  background: rgba(63,198,255,.12); color: var(--glow); border: none;
  font-family: var(--disp); font-weight: 700; font-size: 14px;
  padding: 10px 20px; border-radius: 999px; cursor: pointer; white-space: nowrap;
}
.copy-btn.copied { background: rgba(44,224,139,.16); color: var(--green); }
.sheet .note { font-size: 14px; color: var(--muted); line-height: 1.5; }
.sync-status { font-size: 13px; color: var(--faint); letter-spacing: 0.08em; text-transform: uppercase; }

@media (prefers-reduced-motion: reduce) {
  .screen, .btn, .choice-card { transition: none; }
  .tap-cue .pulse { animation: none; }
  .screen.active .thanks-flash { animation: none; }
}
@media (max-width: 700px) {
  .choice-row { flex-direction: column; }
}
