:root{
  --bg:#f5f5f7;
  --bg2:#fbfbfd;
  --surface:rgba(255,255,255,0.72);
  --surface-strong:rgba(255,255,255,0.88);
  --text:#111827;
  --text-soft:#4b5563;
  --text-faint:#6b7280;
  --line:rgba(17,24,39,0.08);
  --line-strong:rgba(17,24,39,0.14);
  --blue:#2563eb;
  --blue-soft:rgba(37,99,235,0.10);
  --danger:#c62828;
  --warning:#c77d00;
  --success:#15803d;
  --success-soft:rgba(21,128,61,0.10);
  --danger-soft:rgba(198,40,40,0.10);
  --shadow-lg:0 30px 80px rgba(17,24,39,0.08);
  --shadow-md:0 16px 36px rgba(17,24,39,0.08);
  --shadow-sm:0 8px 20px rgba(17,24,39,0.05);
  --max:1380px;
}

*{box-sizing:border-box}
html,body{margin:0;padding:0}
body{
  font-family:"Inter",system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;
  color:var(--text);
  background:
    radial-gradient(circle at top left, rgba(37,99,235,0.06), transparent 26%),
    radial-gradient(circle at top right, rgba(139,92,246,0.05), transparent 24%),
    linear-gradient(180deg, var(--bg2) 0%, var(--bg) 100%);
  -webkit-font-smoothing:antialiased;
  text-rendering:optimizeLegibility;
}
button,input,select,textarea{font:inherit}
img{display:block;max-width:100%}
code{
  background:rgba(17,24,39,0.06);
  padding:2px 8px;
  border-radius:10px;
}

.pageShell{
  position:relative;
  max-width:var(--max);
  margin:0 auto;
  padding:28px 24px 20px;
  min-height:100vh;
  overflow:hidden;
}

.ambient{
  position:absolute;
  border-radius:999px;
  filter:blur(70px);
  pointer-events:none;
  opacity:.55;
}
.ambientA{
  width:240px;height:240px;
  background:rgba(96,165,250,0.14);
  top:-60px;right:12%;
}
.ambientB{
  width:220px;height:220px;
  background:rgba(139,92,246,0.10);
  bottom:80px;left:-40px;
}

.siteHeader{
  position:relative;
  z-index:2;
  display:flex;
  align-items:flex-start;
  justify-content:space-between;
  gap:24px;
  flex-wrap:wrap;
  margin-bottom:24px;
}

.brandRow{
  display:flex;
  align-items:flex-start;
  gap:24px;
  min-width:0;
  flex:1 1 760px;
}

.logoWrap{
  flex:0 0 auto;
  margin-top:-10px;
  transform:translateY(2px);
}

.brandLogo{
  width:150px;
  height:150px;
  object-fit:cover;
  object-position:center;
  border-radius:999px;
  box-shadow:
    0 18px 36px rgba(17,24,39,0.16),
    0 0 0 8px rgba(255,255,255,0.52);
  border:1px solid rgba(255,255,255,0.82);
  background:#fff;
}

.brandCopy h1{
  margin:0;
  font-size:clamp(2.2rem, 4vw, 4rem);
  line-height:.96;
  letter-spacing:-.06em;
  font-weight:800;
  max-width:900px;
}

.brandSub{
  margin:14px 0 0;
  max-width:760px;
  font-size:1.05rem;
  line-height:1.6;
  color:var(--text-soft);
  font-weight:500;
}

.mainShell{
  position:relative;
  z-index:2;
  display:grid;
  gap:18px;
}

.mainShell.landingMode{
  grid-template-columns:1fr;
}

.mainShell.examMode{
  grid-template-columns:minmax(0,1fr) 340px;
  align-items:start;
}

.heroPanel,
.questionShell,
.resultsShell,
.sidePanel,
.infoStrip,
.hubShell{
  background:var(--surface);
  backdrop-filter:blur(16px);
  -webkit-backdrop-filter:blur(16px);
  border:1px solid rgba(255,255,255,0.76);
  box-shadow:var(--shadow-lg);
}

.heroPanel,
.hubShell{
  border-radius:34px;
  padding:22px;
}

.heroPanel{
  display:grid;
  grid-template-columns:minmax(0,1fr) 240px;
  gap:18px;
}

.heroIntro{
  padding:18px 16px 12px;
}

.heroKicker{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:var(--blue-soft);
  color:var(--blue);
  font-size:13px;
  font-weight:800;
  margin-bottom:14px;
}

.heroIntro h2{
  margin:0;
  font-size:clamp(2rem, 3vw, 3rem);
  line-height:1.02;
  letter-spacing:-.05em;
  font-weight:800;
  max-width:760px;
}

.heroIntro p{
  margin:18px 0 0;
  color:var(--text-soft);
  font-size:1.08rem;
  line-height:1.7;
  max-width:760px;
}

.heroMeta{
  display:grid;
  gap:12px;
}

.metaCard{
  padding:18px;
  border-radius:24px;
  background:var(--surface-strong);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}
.metaLabel{
  display:block;
  font-size:12px;
  font-weight:800;
  letter-spacing:.12em;
  text-transform:uppercase;
  color:var(--text-faint);
  margin-bottom:8px;
}
.metaValue{
  display:block;
  font-size:2rem;
  font-weight:800;
  letter-spacing:-.05em;
}

.hubHeader{
  display:flex;
  justify-content:space-between;
  gap:16px;
  align-items:flex-start;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.hubTitle{
  margin:0;
  font-size:2.1rem;
  letter-spacing:-.04em;
}

.hubSub{
  margin:10px 0 0;
  color:var(--text-soft);
  line-height:1.7;
  max-width:760px;
}

.tabsRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:20px;
}

.tabBtn{
  border:none;
  cursor:pointer;
  padding:12px 18px;
  border-radius:999px;
  background:rgba(255,255,255,0.75);
  color:var(--text-soft);
  font-weight:700;
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}

.tabBtn.active{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.tabPanel{
  display:none;
}

.tabPanel.active{
  display:block;
}

.paperCard,
.attemptCard,
.emptyCard{
  padding:20px;
  border-radius:24px;
  background:rgba(255,255,255,0.82);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}

.paperCardTitle,
.attemptCardTitle{
  margin:0 0 10px;
  font-size:1.35rem;
  letter-spacing:-.03em;
}

.paperCardText,
.attemptCardText,
.emptyText{
  margin:0;
  color:var(--text-soft);
  line-height:1.7;
}

.paperCardMeta,
.attemptCardMeta{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin:14px 0 0;
}

.miniPill{
  display:inline-flex;
  align-items:center;
  padding:8px 12px;
  border-radius:999px;
  background:rgba(255,255,255,0.85);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
  color:var(--text-soft);
  font-size:13px;
  font-weight:700;
}

.hubActions{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:18px;
}

.btn{
  appearance:none;
  border:none;
  cursor:pointer;
  border-radius:999px;
  padding:15px 22px;
  font-size:1rem;
  font-weight:700;
  transition:transform .18s ease, box-shadow .18s ease, opacity .18s ease, background .18s ease;
}
.btn:hover{transform:translateY(-1px)}
.btnPrimary{
  background:linear-gradient(180deg,#3b82f6 0%,#2563eb 100%);
  color:#fff;
  box-shadow:0 14px 30px rgba(37,99,235,0.25);
}
.btnSecondary{
  background:rgba(255,255,255,0.78);
  color:var(--text);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}
.btnDanger{
  background:rgba(255,255,255,0.78);
  color:var(--danger);
  border:1px solid rgba(198,40,40,0.16);
  box-shadow:var(--shadow-sm);
}
.btn[disabled]{opacity:.45;cursor:not-allowed;transform:none!important}

.ctaRow{
  display:flex;
  gap:12px;
  flex-wrap:wrap;
  margin-top:24px;
}

.infoStrip{
  margin-top:18px;
  border-radius:28px;
  padding:16px;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:16px;
}

.infoCard{
  padding:20px;
  border-radius:22px;
  background:rgba(255,255,255,0.78);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}
.infoCard h3{
  margin:0 0 12px;
  font-size:1.35rem;
  letter-spacing:-.03em;
}
.infoCard p{
  margin:0;
  color:var(--text-soft);
  line-height:1.7;
  font-size:1rem;
}

.miniStats{
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:12px;
  height:100%;
}
.miniStats > div{
  display:flex;
  flex-direction:column;
  justify-content:center;
  align-items:flex-start;
}
.miniStatsValue{
  font-size:2rem;
  font-weight:800;
  letter-spacing:-.05em;
}
.miniStatsLabel{
  margin-top:8px;
  color:var(--text-soft);
  font-size:.95rem;
}

.sidePanel{
  border-radius:28px;
  position:sticky;
  top:18px;
  height:calc(100vh - 220px);
  min-height:720px;
  max-height:820px;
  overflow:hidden;
}

.sidePanelInner{
  display:flex;
  flex-direction:column;
  height:100%;
  min-height:0;
  padding:18px;
  overflow:hidden;
}

.sidePanelTop{
  flex:0 0 auto;
}

.sidePanelTimerWrap{
  margin-bottom:16px;
  padding:16px 18px;
  border-radius:22px;
  background:rgba(255,255,255,0.82);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}

.sidePanelTimerLabel{
  font-size:12px;
  letter-spacing:.14em;
  text-transform:uppercase;
  font-weight:800;
  color:var(--text-faint);
  margin-bottom:8px;
}

.sidePanelTimerValue{
  font-size:2rem;
  font-weight:800;
  letter-spacing:-.05em;
  color:var(--danger);
}

.navigatorBlock{
  margin-bottom:14px;
}

.navigatorEyebrow{
  font-size:12px;
  font-weight:800;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:var(--text-faint);
  margin-bottom:6px;
}

.navigatorText{
  margin:0 0 14px;
  color:var(--text-soft);
  font-size:1rem;
  line-height:1.5;
}

.legend{
  display:flex;
  gap:14px;
  flex-wrap:wrap;
  color:var(--text-soft);
  font-size:.94rem;
}
.legend span{
  display:inline-flex;
  align-items:center;
  gap:8px;
}
.legendStack{
  display:grid;
  gap:10px;
}
.legendDot{
  width:10px;
  height:10px;
  border-radius:999px;
  background:#cbd5e1;
  display:inline-block;
}
.legendDot.current{background:#111827}
.legendDot.answered{background:#3b82f6}
.legendDot.flagged{background:var(--warning)}

.sideStats{
  flex:0 0 auto;
  display:grid;
  grid-template-columns:repeat(3,minmax(0,1fr));
  gap:10px;
  margin:16px 0;
}

.sideStatCard{
  padding:14px 12px;
  border-radius:18px;
  background:rgba(255,255,255,0.82);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}
.sideStatValue{
  display:block;
  font-size:1.55rem;
  font-weight:800;
  letter-spacing:-.05em;
}
.sideStatLabel{
  display:block;
  margin-top:6px;
  color:var(--text-soft);
  font-size:.85rem;
}

.qNavEmpty{
  color:var(--text-soft);
  padding:8px 2px 2px;
}

.qNavGrid{
  flex:1 1 auto;
  min-height:0;
  max-height:420px;
  overflow-y:auto;
  overflow-x:hidden;
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:10px;
  padding-right:6px;
  align-content:start;
}

.qNavGrid::-webkit-scrollbar{
  width:8px;
}
.qNavGrid::-webkit-scrollbar-thumb{
  background:rgba(107,114,128,0.22);
  border-radius:999px;
}

.qNavBtn{
  border:none;
  border-radius:16px;
  min-height:48px;
  font-weight:700;
  cursor:pointer;
  background:rgba(255,255,255,0.80);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
  color:var(--text);
  transition:all .18s ease;
}
.qNavBtn:hover{transform:translateY(-1px)}
.qNavBtn.answered{
  background:rgba(59,130,246,0.10);
  color:#1d4ed8;
  border-color:rgba(59,130,246,0.22);
}
.qNavBtn.flagged{
  background:rgba(199,125,0,0.12);
  color:#9a6700;
  border-color:rgba(199,125,0,0.22);
}
.qNavBtn.current{
  background:#111827;
  color:#fff;
  border-color:#111827;
}

.questionShell,
.resultsShell{
  border-radius:30px;
  padding:20px;
}

.examTopRow,
.examBottomRow{
  display:flex;
  justify-content:space-between;
  align-items:center;
  gap:12px;
  flex-wrap:wrap;
}

.examMetaGroup{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
}
.examMetaPill{
  display:inline-flex;
  align-items:center;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.80);
  border:1px solid var(--line);
  color:var(--text-soft);
  font-size:13px;
  font-weight:700;
  box-shadow:var(--shadow-sm);
}

.caseStudyCard{
  margin-bottom:18px;
  padding:18px 20px;
  border-radius:22px;
  background:rgba(37,99,235,0.06);
  border:1px solid rgba(37,99,235,0.14);
  box-shadow:var(--shadow-sm);
}
.caseStudyTitle{
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--blue);
  margin-bottom:10px;
}
.caseStudyBody{
  color:var(--text-soft);
  line-height:1.7;
  font-size:1rem;
}

.progressTrack{
  margin:18px 0 20px;
  height:10px;
  border-radius:999px;
  background:rgba(17,24,39,0.08);
  overflow:hidden;
}
.progressFill{
  height:100%;
  border-radius:999px;
  background:linear-gradient(90deg,#60a5fa 0%,#2563eb 100%);
}

.questionCard,
.resultsCard,
.reviewCard{
  padding:26px;
  border-radius:26px;
  background:rgba(255,255,255,0.82);
  border:1px solid var(--line);
  box-shadow:var(--shadow-md);
}

.questionNumber{
  font-size:12px;
  font-weight:800;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:var(--text-faint);
  margin-bottom:12px;
}

.questionTitle,
.resultsTitle{
  margin:0;
  font-size:clamp(1.55rem,2.2vw,2.15rem);
  line-height:1.2;
  letter-spacing:-.04em;
  font-weight:800;
}

.resultsLead,
.questionLead{
  color:var(--text-soft);
  line-height:1.7;
  margin:12px 0 0;
}

.optionsList{
  display:grid;
  gap:14px;
  margin-top:24px;
}

.optionCard{
  display:grid;
  grid-template-columns:auto auto 1fr;
  align-items:flex-start;
  gap:14px;
  padding:18px;
  border-radius:22px;
  background:rgba(255,255,255,0.84);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
  cursor:pointer;
  transition:all .18s ease;
}
.optionCard:hover{transform:translateY(-1px)}
.optionCard.selected{
  border-color:rgba(37,99,235,0.28);
  background:rgba(37,99,235,0.08);
}
.optionCard.correctChoice{
  border-color:rgba(21,128,61,0.25);
  background:var(--success-soft);
}
.optionCard.wrongChoice{
  border-color:rgba(198,40,40,0.22);
  background:var(--danger-soft);
}
.optionCard input{
  margin-top:4px;
  transform:scale(1.08);
}
.optionLetter{
  width:34px;
  height:34px;
  border-radius:999px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  background:#eef2ff;
  color:#1d4ed8;
  font-weight:800;
  font-size:14px;
}
.optionText{
  color:var(--text);
  font-size:1rem;
  line-height:1.6;
  font-weight:500;
}

.optionBody{
  display:flex;
  flex-direction:column;
  gap:10px;
}

.optionExplainInline{
  margin-top:2px;
  color:var(--text-soft);
  line-height:1.7;
  font-size:.98rem;
}

.optionExplainInline strong{
  color:var(--text);
}

.dropdownGroup,
.matchingGroup{
  display:grid;
  gap:14px;
  margin-top:24px;
}

.dropdownRow,
.matchRow{
  padding:18px;
  border-radius:22px;
  background:rgba(255,255,255,0.84);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}

.dropdownPrompt,
.matchLeft{
  color:var(--text);
  line-height:1.6;
  font-weight:600;
  margin-bottom:12px;
}

.selectInput{
  width:100%;
  border:1px solid var(--line-strong);
  border-radius:14px;
  padding:14px 16px;
  background:#fff;
  color:var(--text);
}

.orderingGroup{
  display:grid;
  gap:10px;
  margin-top:24px;
}

.orderingRow{
  display:flex;
  align-items:center;
  gap:14px;
  padding:14px 18px;
  border-radius:18px;
  background:rgba(255,255,255,0.92);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
  cursor:grab;
  user-select:none;
  transition:transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}

.orderingRow:hover{
  border-color:var(--line-strong);
  box-shadow:var(--shadow-md);
}

.orderingRow:active{
  cursor:grabbing;
}

.orderingRow.isDragging{
  opacity:0.55;
  transform:scale(0.99);
  border-color:var(--blue);
  box-shadow:0 0 0 2px var(--blue-soft), var(--shadow-md);
}

.orderingHandle{
  font-size:18px;
  color:var(--text-faint);
  letter-spacing:-2px;
  flex:0 0 auto;
}

.orderingPosition{
  flex:0 0 auto;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  width:28px;
  height:28px;
  border-radius:999px;
  background:var(--blue-soft);
  color:var(--blue);
  font-weight:700;
  font-size:13px;
}

.orderingText{
  flex:1 1 auto;
  color:var(--text);
  line-height:1.5;
}

.orderingControls{
  display:inline-flex;
  gap:6px;
  flex:0 0 auto;
}

.orderingMove{
  width:30px;
  height:30px;
  border-radius:10px;
  border:1px solid var(--line-strong);
  background:#fff;
  color:var(--text-soft);
  cursor:pointer;
  font-size:11px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
}

.orderingMove:hover:not(:disabled){
  background:var(--blue-soft);
  color:var(--blue);
  border-color:var(--blue-soft);
}

.orderingMove:disabled{
  opacity:0.35;
  cursor:not-allowed;
}

.orderingHint{
  margin-top:10px;
  color:var(--text-faint);
  font-size:13px;
}

.orderingReviewGroup{
  display:grid;
  gap:12px;
  margin-top:24px;
}

.orderingReviewRow{
  display:flex;
  gap:14px;
  padding:16px 18px;
  border-radius:18px;
  background:rgba(255,255,255,0.92);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}

.orderingReviewRow.orderingReviewRight{
  border-color:var(--success);
  background:var(--success-soft);
}

.orderingReviewRow.orderingReviewWrong{
  border-color:var(--danger);
  background:var(--danger-soft);
}

.orderingReviewPos{
  flex:0 0 auto;
  width:30px;
  height:30px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--line-strong);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  font-weight:700;
  color:var(--text);
}

.orderingReviewBody{
  flex:1 1 auto;
}

.orderingReviewItem{
  font-weight:600;
  color:var(--text);
  margin-bottom:8px;
  line-height:1.5;
}

.resultsGrid{
  display:grid;
  grid-template-columns:repeat(4,minmax(0,1fr));
  gap:14px;
  margin-top:22px;
}
.resultMini{
  padding:18px;
  border-radius:20px;
  background:rgba(255,255,255,0.82);
  border:1px solid var(--line);
  box-shadow:var(--shadow-sm);
}
.resultMiniValue{
  display:block;
  font-size:2rem;
  font-weight:800;
  letter-spacing:-.05em;
}
.resultMiniLabel{
  display:block;
  margin-top:8px;
  color:var(--text-soft);
}

.reviewSummaryRow{
  display:flex;
  gap:10px;
  flex-wrap:wrap;
  margin-bottom:18px;
}

.reviewSummaryPill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:10px 14px;
  border-radius:999px;
  background:rgba(255,255,255,0.82);
  border:1px solid var(--line);
  color:var(--text-soft);
  font-size:13px;
  font-weight:700;
  box-shadow:var(--shadow-sm);
}

.reviewTakeaway{
  margin-top:18px;
  padding:18px 20px;
  border-radius:20px;
  background:rgba(255,255,255,0.75);
  border:1px solid var(--line);
  color:var(--text-soft);
  line-height:1.7;
}

.siteFooter{
  display:flex;
  justify-content:center;
  flex-wrap:wrap;
  gap:10px;
  align-items:center;
  color:var(--text-faint);
  font-size:13px;
  font-weight:600;
  margin-top:18px;
  padding:6px 0 0;
}
.footerDot{
  width:4px;
  height:4px;
  border-radius:999px;
  background:rgba(107,114,128,0.45);
}

.hide{
  display:none!important;
}

@media (max-width:1100px){
  .heroPanel{
    grid-template-columns:1fr;
  }
  .heroMeta{
    grid-template-columns:repeat(3,minmax(0,1fr));
  }
  .resultsGrid{
    grid-template-columns:repeat(2,minmax(0,1fr));
  }
}

@media (max-width:980px){
  .mainShell.examMode{
    grid-template-columns:1fr;
  }
  .sidePanel{
    position:relative;
    top:auto;
    height:auto;
    min-height:unset;
    max-height:none;
  }
  .qNavGrid{
    max-height:320px;
    grid-template-columns:repeat(6,minmax(0,1fr));
  }
}

@media (max-width:860px){
  .infoStrip{
    grid-template-columns:1fr;
  }
}

@media (max-width:700px){
  .pageShell{
    padding:18px 14px 18px;
  }
  .brandRow{
    flex-direction:column;
    align-items:flex-start;
  }
  .brandLogo{
    width:120px;
    height:120px;
  }
  .brandCopy h1{
    font-size:2.35rem;
  }
  .brandSub{
    font-size:1rem;
  }
  .heroPanel,
  .hubShell,
  .questionShell,
  .resultsShell{
    padding:16px;
  }
  .heroIntro,
  .questionCard,
  .resultsCard,
  .reviewCard{
    padding:18px;
  }
  .heroMeta{
    grid-template-columns:1fr;
  }
  .miniStats,
  .sideStats{
    grid-template-columns:1fr;
  }
  .qNavGrid{
    grid-template-columns:repeat(4,minmax(0,1fr));
  }
  .optionCard{
    grid-template-columns:auto 1fr;
  }
  .optionCard input{
    grid-column:1;
    grid-row:1;
  }
  .optionLetter{
    grid-column:1;
    grid-row:2;
  }
  .optionBody,
  .optionText{
    grid-column:2;
    grid-row:1 / span 2;
  }
  .resultsGrid{
    grid-template-columns:1fr;
  }
}