/* ==================================================================
   SkillLab unmoderated usability test — shell + prototype
   Brand tokens from the SkillLab Design System.
   ================================================================== */

@import url('https://fonts.googleapis.com/css2?family=Noto+Sans:ital,wght@0,400;0,500;0,600;0,700;0,800&display=swap');

:root {
  --sl-primary-100: #EBF1FE;
  --sl-primary-200: #C4D4FD;
  --sl-primary-300: #9DB8FB;
  --sl-primary-400: #628DF8;
  --sl-primary-500: #2A64F6;
  --sl-primary-600: #0943D7;
  --sl-navy-900: #03194E;
  --sl-navy-950: #06102A;
  --sl-n100: #FBFBFC;
  --sl-n300: #EFF2F3;
  --sl-n400: #E5E9EC;
  --sl-n500: #DBE0E4;
  --sl-n600: #6B7881;
  --sl-n700: #4A5B67;
  --sl-n800: #36424A;
  --sl-n900: #242D35;
  --sl-green: #07B282;
  --sl-red: #B20707;
  --sl-purple: #9348FF;

  --radius: 14px;
  --shadow: 0 1px 2px rgba(3, 25, 78, .06), 0 8px 24px rgba(3, 25, 78, .08);
}

* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }

html, body {
  margin: 0;
  padding: 0;
  font-family: 'Noto Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--sl-n300);
  color: var(--sl-navy-900);
  -webkit-font-smoothing: antialiased;
}

/* ---------- Study shell ------------------------------------------ */

.shell {
  max-width: 680px;
  margin: 0 auto;
  padding: 32px 20px 80px;
  transition: max-width .2s ease;
}
.shell.wide { max-width: 1180px; }

.card {
  background: #fff;
  border-radius: 18px;
  padding: 32px;
  box-shadow: var(--shadow);
}

@media (max-width: 560px) {
  .shell { padding: 16px 12px 60px; }
  .card { padding: 22px 18px; border-radius: 14px; }
}

.brandbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  font-weight: 700;
  color: var(--sl-navy-900);
  letter-spacing: -.01em;
}

.brandbar .dot {
  width: 22px; height: 22px; border-radius: 7px;
  background: var(--sl-primary-500);
  display: grid; place-items: center;
  color: #fff; font-size: 12px; font-weight: 800;
}

.brandbar .tag {
  margin-left: auto;
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
  color: var(--sl-n600);
  background: var(--sl-n300);
  padding: 4px 9px;
  border-radius: 100px;
}

h1 { font-size: 27px; line-height: 1.22; margin: 0 0 12px; letter-spacing: -.02em; }
h2 { font-size: 20px; line-height: 1.3;  margin: 0 0 10px; letter-spacing: -.01em; }
p  { font-size: 15px; line-height: 1.6; color: var(--sl-n700); margin: 0 0 14px; }
p.lead { font-size: 16.5px; color: var(--sl-n800); }

.muted { color: var(--sl-n600); font-size: 13.5px; line-height: 1.55; }

.btn {
  appearance: none;
  border: 0;
  border-radius: 100px;
  padding: 14px 28px;
  font: inherit;
  font-weight: 700;
  font-size: 15.5px;
  background: var(--sl-primary-500);
  color: #fff;
  cursor: pointer;
  transition: background .15s ease, transform .08s ease;
}
.btn:hover { background: var(--sl-primary-600); }
.btn:active { transform: translateY(1px); }
.btn:disabled { background: var(--sl-n500); color: var(--sl-n600); cursor: not-allowed; }
.btn.ghost { background: transparent; color: var(--sl-n700); border: 1.5px solid var(--sl-n500); }
.btn.ghost:hover { background: var(--sl-n300); }
.btn.block { display: block; width: 100%; }

.actions { display: flex; gap: 10px; align-items: center; margin-top: 22px; flex-wrap: wrap; }

/* ---------- Progress --------------------------------------------- */

.progress { display: flex; gap: 5px; margin-bottom: 22px; }
.progress i {
  flex: 1; height: 4px; border-radius: 100px;
  background: var(--sl-n400);
}
.progress i.on { background: var(--sl-primary-500); }

/* ---------- Form ------------------------------------------------- */

.q { margin-bottom: 28px; padding-bottom: 4px; }
.q:last-of-type { margin-bottom: 8px; }

.q .label {
  display: block;
  font-size: 15.5px;
  font-weight: 600;
  line-height: 1.45;
  color: var(--sl-navy-900);
  margin-bottom: 4px;
}
.q .hint { font-size: 13px; color: var(--sl-n600); margin-bottom: 12px; }
.q .opt-label { font-weight: 400; }

.opts { display: flex; flex-direction: column; gap: 8px; }

.opt {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 12px 14px;
  border: 1.5px solid var(--sl-n400);
  border-radius: 11px;
  cursor: pointer;
  font-size: 14.5px;
  line-height: 1.4;
  transition: border-color .12s, background .12s;
}
.opt:hover { border-color: var(--sl-primary-300); background: var(--sl-primary-100); }
.opt input { accent-color: var(--sl-primary-500); width: 17px; height: 17px; flex: none; margin: 0; }
.opt.sel { border-color: var(--sl-primary-500); background: var(--sl-primary-100); }

/* Scale */
.scale { display: flex; gap: 6px; }
.scale button {
  flex: 1;
  min-width: 0;
  padding: 13px 2px;
  border: 1.5px solid var(--sl-n400);
  background: #fff;
  border-radius: 10px;
  font: inherit;
  font-weight: 600;
  font-size: 14.5px;
  color: var(--sl-n700);
  cursor: pointer;
  transition: all .12s;
}
.scale button:hover { border-color: var(--sl-primary-300); }
.scale button.sel {
  background: var(--sl-primary-500);
  border-color: var(--sl-primary-500);
  color: #fff;
}
.scale-ends {
  display: flex; justify-content: space-between;
  font-size: 12px; color: var(--sl-n600); margin-top: 7px; gap: 12px;
}
.scale-ends span:last-child { text-align: right; }

textarea, select, input[type=text] {
  width: 100%;
  font: inherit;
  font-size: 14.5px;
  padding: 12px 14px;
  border: 1.5px solid var(--sl-n400);
  border-radius: 11px;
  background: #fff;
  color: var(--sl-navy-900);
  resize: vertical;
}
textarea:focus, select:focus, input:focus {
  outline: none;
  border-color: var(--sl-primary-500);
  box-shadow: 0 0 0 3px var(--sl-primary-100);
}
textarea { min-height: 86px; line-height: 1.5; }

.err { color: var(--sl-red); font-size: 13.5px; font-weight: 600; margin-top: 12px; }

.callout {
  background: var(--sl-primary-100);
  border-left: 3px solid var(--sl-primary-500);
  border-radius: 0 11px 11px 0;
  padding: 16px 18px;
  margin: 18px 0;
}
.callout .task-label {
  font-size: 11px; font-weight: 800; text-transform: uppercase;
  letter-spacing: .08em; color: var(--sl-primary-600); margin-bottom: 6px;
}
.callout p { margin: 0; color: var(--sl-navy-900); font-size: 16px; font-weight: 500; line-height: 1.5; }

ul.plain { margin: 0 0 16px; padding-left: 20px; }
ul.plain li { font-size: 15px; line-height: 1.65; color: var(--sl-n700); margin-bottom: 6px; }

/* ==================================================================
   TASK RUNNER — phone frame + prototype
   ================================================================== */

#screen-task { display: none; }
body.in-task { background: var(--sl-navy-950); }
body.in-task .shell { display: none; }

.runner {
  position: fixed; inset: 0;
  display: none;
  flex-direction: column;
  background: var(--sl-navy-950);
}
body.in-task .runner { display: flex; }

.runner-bar {
  flex: none;
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 18px;
  background: rgba(255,255,255,.06);
  border-bottom: 1px solid rgba(255,255,255,.1);
  color: #fff;
}
.runner-bar .task-text {
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  flex: 1;
  min-width: 0;
}
.runner-bar .task-text em {
  display: block;
  font-style: normal;
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: .09em;
  text-transform: uppercase;
  color: var(--sl-primary-300);
  margin-bottom: 3px;
}
.runner-meta { display: flex; align-items: center; gap: 12px; flex: none; }

.pips { display: flex; gap: 5px; }
.pips i {
  width: 9px; height: 9px; border-radius: 50%;
  background: rgba(255,255,255,.25);
  transition: background .2s;
}
.pips i.used { background: #FF7A7A; }

.timer {
  font-variant-numeric: tabular-nums;
  font-size: 13px; font-weight: 700;
  color: rgba(255,255,255,.65);
  min-width: 42px; text-align: right;
}
.giveup {
  appearance: none; border: 1px solid rgba(255,255,255,.28);
  background: transparent; color: rgba(255,255,255,.85);
  font: inherit; font-size: 12.5px; font-weight: 600;
  padding: 7px 13px; border-radius: 100px; cursor: pointer;
  white-space: nowrap;
}
.giveup:hover { background: rgba(255,255,255,.1); }

@media (max-width: 620px) {
  .runner-bar { flex-wrap: wrap; padding: 10px 12px; gap: 8px 10px; }
  .runner-bar .task-text { flex-basis: 100%; }
  .runner-meta { margin-left: auto; }
}

.stage {
  flex: 1;
  position: relative;
  overflow: hidden;
  display: grid;
  place-items: center;
  padding: 18px;
}
@media (max-width: 620px) { .stage { padding: 0; } }

/* Phone frame */
.phone {
  width: 393px;
  height: 100%;
  max-height: 852px;
  background: #fff;
  border-radius: 34px;
  overflow: hidden;
  position: relative;
  box-shadow: 0 0 0 9px #1b2230, 0 0 0 10px #39414f, 0 26px 60px rgba(0,0,0,.55);
}
@media (max-width: 620px) {
  .phone { width: 100%; height: 100%; max-height: none; border-radius: 0; box-shadow: none; }
}

.phone-scroll {
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  background: var(--sl-n300);
  padding-bottom: 78px;
}

/* ---------- Prototype: the Explore jobs screen -------------------- */

.p-top { background: var(--sl-n300); padding: 14px 16px 22px; }

.p-planrow { display: flex; align-items: center; gap: 12px; }

.p-plan {
  flex: 1;
  background: var(--sl-primary-100);
  border: 1px solid #DCE6FE;
  border-radius: 13px;
  padding: 11px 13px 13px;
}
.p-plan .r { display: flex; align-items: center; gap: 8px; }
.p-plan .r b { font-size: 15px; font-weight: 700; color: var(--sl-navy-900); }
.p-plan .r .chev { margin-left: auto; color: var(--sl-primary-500); font-size: 16px; }
.p-plan .bar {
  height: 7px; border-radius: 100px; margin-top: 9px;
  background: #D3DDFB; overflow: hidden;
}
.p-plan .bar i { display: block; height: 100%; width: 88%; background: #5B2AE0; border-radius: 100px; }

.p-avatar {
  width: 44px; height: 44px; border-radius: 50%; flex: none;
  background: radial-gradient(circle at 62% 38%, #FF7A3D, #FFB03A 55%, #F2A93B);
  border: 2px solid #fff;
  box-shadow: 0 1px 4px rgba(3,25,78,.18);
}

.p-h1 { font-size: 28px; font-weight: 800; letter-spacing: -.025em; margin: 18px 0 14px; color: var(--sl-navy-900); }

.p-search {
  display: flex; align-items: center;
  background: #fff; border: 1px solid var(--sl-n500);
  border-radius: 11px; padding: 14px 15px;
}
.p-search span { color: var(--sl-n600); font-size: 15.5px; flex: 1; }
.p-search svg { color: var(--sl-primary-500); flex: none; }

.p-chip {
  display: inline-flex; align-items: center; gap: 6px;
  margin-top: 13px;
  background: #fff; border: 1.5px solid var(--sl-primary-400);
  border-radius: 11px; padding: 10px 15px;
  font-size: 15px; font-weight: 700; color: var(--sl-navy-900);
}
.p-chip svg { color: var(--sl-primary-500); }

/* Recommended section */
.p-rec { background: var(--sl-primary-500); padding: 24px 0 26px; color: #fff; }
.p-rec-head { display: flex; align-items: flex-start; gap: 12px; padding: 0 16px; }
.p-rec-head h3 { font-size: 24px; font-weight: 800; letter-spacing: -.02em; margin: 0; flex: 1; line-height: 1.15; }
.p-viewall {
  display: flex; align-items: center; gap: 4px;
  font-size: 14.5px; font-weight: 700; color: #fff; white-space: nowrap; margin-top: 4px;
}
.p-rec-sub { padding: 0 16px; margin: 9px 0 0; font-size: 15px; line-height: 1.4; color: rgba(255,255,255,.93); }

/* The control under test */
.p-seg {
  display: flex;
  margin: 17px 16px 0;
  background: #1B4CD8;
  border-radius: 12px;
  padding: 5px;
  gap: 4px;
}
.p-seg button {
  flex: 1;
  appearance: none; border: 0; background: transparent;
  font: inherit; font-size: 16px; font-weight: 500;
  color: rgba(255,255,255,.92);
  padding: 13px 8px;
  border-radius: 9px;
  cursor: pointer;
  transition: background .18s ease, font-weight .1s;
}
.p-seg button[aria-selected="true"] {
  background: #4A7CF8;
  font-weight: 800;
  color: #fff;
}

/* Reveal highlight after a failed task */
@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(255,255,255,.85); }
  50%      { box-shadow: 0 0 0 11px rgba(255,255,255,0); }
}
.p-seg { scroll-margin-top: 18px; }
.p-seg.reveal { animation: pulse 1.15s ease-out 3; border-radius: 12px; }

/* Cards carousel */
.p-cards {
  display: flex; gap: 12px;
  overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 17px 16px 0;
  scrollbar-width: none;
}
.p-cards::-webkit-scrollbar { display: none; }

.p-card {
  flex: 0 0 88%;
  scroll-snap-align: center;
  background: #fff;
  border-radius: 14px;
  padding: 17px;
  color: var(--sl-navy-900);
}
.p-card .toprow { display: flex; align-items: flex-start; gap: 10px; }
.p-badge {
  background: var(--sl-n300); border-radius: 8px;
  padding: 7px 11px; font-size: 14px; font-weight: 500; color: var(--sl-n800);
}
.p-badge b { color: var(--sl-primary-500); font-weight: 700; }
.p-save {
  margin-left: auto; flex: none;
  width: 38px; height: 30px; border-radius: 8px;
  background: var(--sl-green);
  display: grid; place-items: center;
}
.p-card h4 { font-size: 21px; font-weight: 800; letter-spacing: -.02em; margin: 13px 0 8px; }
.p-card .org { font-size: 15.5px; color: var(--sl-n700); line-height: 1.45; margin: 0; }
.p-card .meta { display: flex; align-items: center; gap: 7px; margin-top: 9px; font-size: 15px; color: var(--sl-navy-900); }
.p-card .meta svg { color: var(--sl-primary-500); flex: none; }
.p-card .posted { font-size: 14px; color: var(--sl-n600); margin: 12px 0 0; }

.p-dots { display: flex; justify-content: center; gap: 7px; margin-top: 18px; }
.p-dots i { width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,.45); }
.p-dots i.on { background: #fff; }

/* Below the fold */
.p-below { background: #fff; padding: 26px 16px 20px; }
.p-below h3 { font-size: 23px; font-weight: 800; letter-spacing: -.02em; margin: 0 0 20px; }
.p-below .row { display: flex; align-items: center; gap: 12px; }
.p-below .row b { font-size: 18px; font-weight: 800; flex: 1; letter-spacing: -.01em; }
.p-shuffle {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1.5px solid var(--sl-n600); border-radius: 100px;
  padding: 11px 18px; font-size: 15px; font-weight: 700; color: var(--sl-primary-500);
}
.p-fieldcard {
  margin-top: 16px; border-radius: 13px; padding: 17px 16px;
  background: linear-gradient(97deg, #1FA8C4, #4A6FE8 48%, #9348FF);
  color: #fff; display: flex; align-items: center; gap: 10px;
  font-size: 18px; font-weight: 500;
}
.p-fieldcard b { font-weight: 800; }
.p-fieldcard .arrow { margin-left: auto; font-size: 20px; }

/* Bottom nav */
.p-nav {
  position: absolute; left: 0; right: 0; bottom: 0;
  background: #fff;
  border-top: 1px solid var(--sl-n400);
  display: flex;
  padding: 9px 0 max(10px, env(safe-area-inset-bottom));
}
.p-nav button {
  flex: 1; appearance: none; border: 0; background: transparent;
  font: inherit; cursor: pointer;
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  color: var(--sl-navy-900); font-size: 13.5px; font-weight: 500;
  padding: 3px 0;
}
.p-nav button.on { color: var(--sl-primary-500); font-weight: 600; }
.p-nav button.on .ind { display: block; }
.p-nav .ind { display: none; width: 26px; height: 3.5px; border-radius: 100px; background: var(--sl-primary-500); margin-top: 1px; }

/* Wrong-click feedback */
.nudge {
  position: absolute; left: 50%; bottom: 96px;
  transform: translateX(-50%) translateY(10px);
  background: rgba(3,25,78,.94);
  color: #fff; font-size: 13.5px; font-weight: 600;
  padding: 11px 18px; border-radius: 100px;
  opacity: 0; pointer-events: none;
  transition: opacity .2s ease, transform .2s ease;
  white-space: nowrap; max-width: 92%;
  z-index: 40;
}
.nudge.show { opacity: 1; transform: translateX(-50%) translateY(0); }

/* Success / fail overlay */
.overlay {
  position: absolute; inset: 0;
  background: rgba(3,25,78,.55);
  backdrop-filter: blur(3px);
  display: none; place-items: center;
  padding: 26px; z-index: 50;
}
.overlay.show { display: grid; }
/* Reveal step: sit at the bottom so the highlighted control stays visible. */
.overlay.at-bottom {
  align-items: end;
  background: none;
  backdrop-filter: none;
  padding: 0 14px calc(78px + env(safe-area-inset-bottom));
  pointer-events: none;
}
.overlay.at-bottom .overlay-box {
  max-width: none; padding: 15px 16px; text-align: left;
  pointer-events: auto;
  box-shadow: 0 6px 28px rgba(3, 25, 78, .35);
  display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 14px;
}
.overlay.at-bottom .overlay-box .icon { display: none; }
.overlay.at-bottom .overlay-box h4 { font-size: 15px; margin: 0 0 2px; }
.overlay.at-bottom .overlay-box p { font-size: 12.5px; margin: 0; }
.overlay.at-bottom .overlay-box .btn { width: auto; padding: 11px 20px; font-size: 14px; grid-row: 1 / 3; grid-column: 2; }
.overlay-box {
  background: #fff; border-radius: 18px; padding: 28px 24px;
  text-align: center; max-width: 320px; width: 100%;
}
.overlay-box .icon {
  width: 52px; height: 52px; border-radius: 50%;
  display: grid; place-items: center; margin: 0 auto 14px;
  font-size: 25px; color: #fff;
}
.overlay-box .icon.ok { background: var(--sl-green); }
.overlay-box .icon.no { background: var(--sl-n600); }
.overlay-box h4 { font-size: 19px; margin: 0 0 8px; letter-spacing: -.01em; }
.overlay-box p { font-size: 14.5px; margin: 0 0 18px; }

/* ---------- Done screen ------------------------------------------ */
.done-icon {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--sl-green); color: #fff;
  display: grid; place-items: center; font-size: 30px; margin-bottom: 20px;
}
.sendstate { font-size: 13.5px; color: var(--sl-n600); margin-top: 20px; }
.sendstate.bad { color: var(--sl-red); font-weight: 600; }


/* ==================================================================
   Review panel — the screen sitting beside the questions
   ================================================================== */

.layout { display: grid; grid-template-columns: minmax(0, 1fr) 430px; gap: 34px; align-items: start; }
.col-form { min-width: 0; }

.col-phone { position: sticky; top: 28px; }
.phone-toggle { display: none; }
.phone-slot { display: flex; justify-content: center; }
.phone-note {
  text-align: center; font-size: 12.5px; color: var(--sl-n600);
  margin: 14px 0 0; line-height: 1.5;
}

/* a still of the real screen, parked next to the form */
.screenshot {
  display: block;
  width: auto;
  height: auto;
  max-width: 393px;
  /* keep the whole screen visible inside the sticky column, whatever the
     window height — a taller-than-viewport sticky element hides its own foot */
  max-height: calc(100vh - 150px);
  border-radius: 20px;
  background: var(--sl-n300);
  box-shadow: 0 0 0 7px #E2E6EA, 0 0 0 8px #CBD2D8, 0 14px 34px rgba(3, 25, 78, .16);
}

@media (max-width: 1080px) {
  .layout { grid-template-columns: minmax(0, 1fr) 360px; gap: 24px; }
  .screenshot { max-width: 330px; }
}

/* Stacked: the screen collapses behind a button so the form stays first */
@media (max-width: 900px) {
  .shell.wide { max-width: 680px; }
  .layout { display: block; }
  .col-phone {
    position: static;
    margin-top: 26px;
    border-top: 1px solid var(--sl-n400);
    padding-top: 22px;
  }
  .phone-toggle {
    display: block; width: 100%;
    appearance: none; font: inherit; font-size: 14.5px; font-weight: 700;
    color: var(--sl-primary-500); background: var(--sl-primary-100);
    border: 1.5px solid #D6E1FD; border-radius: 11px;
    padding: 13px 16px; cursor: pointer;
  }
  .phone-toggle:hover { background: #E1EAFE; }
  .phone-slot, .phone-note { display: none; }
  .col-phone.open .phone-slot { display: flex; margin-top: 16px; }
  .col-phone.open .phone-note { display: block; }
}

@media (max-width: 900px) {
  /* stacked, so nothing is sticky and the image can take its full height */
  .screenshot { max-width: 100%; max-height: none; margin: 0 auto; }
}

/* ==================================================================
   Confetti
   ================================================================== */

.confetti {
  position: absolute; inset: 0;
  pointer-events: none;
  z-index: 60;
}
