:root {
  --navy: #0e3b57;
  --navy-dark: #0a2c42;
  --accent: #e2561b;
  --accent-dark: #c04512;
  --bg: #ececec;
  --panel: #d8dfe2;
  --ink: #1b1b1b;
  --green: #1f7a3d;
  --red: #a63d40;
}

* { box-sizing: border-box; }

html, body { margin: 0; min-height: 100%; }

body {
  font-family: Roboto, "Segoe UI", Helvetica, Arial, sans-serif;
  background: var(--bg);
  color: var(--ink);
  line-height: 1.45;
}

h1, h2 { color: var(--navy); font-weight: 500; margin: 0; }

/* ---------- Intro and code screens ---------- */

.stage { display: flex; justify-content: center; padding: 56px 16px; }

.card {
  background: #fff;
  width: 100%;
  max-width: 780px;
  border-left: 6px solid var(--accent);
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
}

.card-body { padding: 32px 30px 28px; }

.card h1 {
  font-size: 34px;
  padding-bottom: 8px;
  border-bottom: 1px solid #333;
  margin-bottom: 16px;
}

.card p { margin: 0 0 12px; font-size: 15px; }

.info-box {
  background: #eaeaea;
  padding: 18px 20px;
  margin: 18px 0;
}

.info-box h2 { font-size: 22px; margin-bottom: 8px; }

.info-box ul { margin: 8px 0 0; padding-left: 20px; font-size: 15px; }

.code-box {
  background: #2f2f2f;
  color: #fff;
  font-size: 22px;
  padding: 12px 22px;
  margin: 14px auto 6px;
  display: table;
  letter-spacing: 0.02em;
}

.code-box strong { font-weight: 500; letter-spacing: 0.06em; }

.note-box {
  border-left: 4px solid var(--navy);
  background: #f4f7f8;
  padding: 12px 16px;
  margin: 14px 0;
  font-size: 15px;
}

.status { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; }
.status.s-need { color: var(--accent-dark); }
.status.s-mid { color: #8a6a00; }
.status.s-good { color: var(--green); }

.area { font-size: 13px; color: #55646b; margin: 0 0 4px; }

.card.wide { max-width: 900px; }

.card-footer.split { justify-content: space-between; align-items: center; }

.back { color: var(--navy); font-size: 14px; text-decoration: none; font-weight: 500; }
.back:hover { text-decoration: underline; }

.tiles {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 22px;
}

.tile {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 22px 20px;
  min-height: 170px;
  background: #fff;
  border: 1px solid #c4cdd1;
  color: var(--ink);
  text-decoration: none;
}

.tile-code { font-size: 38px; font-weight: 600; color: var(--navy); letter-spacing: 0.02em; }

.tile-name { font-size: 14px; color: #3d4a50; flex: 1; }

.tile-cta { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; }

.tile.active { border-left: 6px solid var(--accent); box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2); }

.tile.active .tile-cta { color: var(--accent-dark); }

.tile.active:hover { box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3); transform: translateY(-1px); }

.tile.active:focus-visible { outline: 3px solid var(--navy); outline-offset: 2px; }

.tile.soon { background: #f2f4f5; cursor: not-allowed; }

.tile.soon .tile-code { color: #8a979d; }

.tile.soon .tile-name { color: #8a979d; }

.tile.soon .tile-cta { color: #8a979d; }

@media (max-width: 760px) {
  .tiles { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 480px) {
  .tiles { grid-template-columns: 1fr; }
  .tile { min-height: 130px; }
}

.focus {
  background: #fff4ee;
  border: 1px solid #f0c7b3;
  padding: 16px 18px;
  margin: 14px 0 6px;
  font-size: 18px;
  color: var(--navy);
}

.card-footer {
  background: var(--panel);
  padding: 14px 20px;
  display: flex;
  justify-content: flex-end;
}

.btn {
  font: inherit;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #fff;
  background: var(--accent);
  border: 0;
  padding: 11px 22px;
  cursor: pointer;
  text-decoration: none;
  display: inline-block;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.35);
}

.btn:hover { background: var(--accent-dark); }

.btn.secondary { background: var(--navy); }
.btn.secondary:hover { background: var(--navy-dark); }

.step { display: flex; gap: 10px; align-items: flex-start; margin: 26px 0 10px; font-size: 17px; }

.step-num {
  background: var(--navy);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  min-width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 3px;
  margin-top: 1px;
}

.pill {
  background: #eaeaea;
  border-radius: 6px;
  padding: 14px 16px;
  margin: 0 0 6px 34px;
  font-size: 16px;
}

.pill strong { color: var(--navy); text-transform: uppercase; font-size: 13px; letter-spacing: 0.03em; margin-right: 6px; }

.code-row { display: flex; gap: 10px; margin: 0 0 8px 34px; flex-wrap: wrap; }

.code-row input {
  font: inherit;
  font-size: 16px;
  padding: 10px 12px;
  border: 1px solid #555;
  width: 320px;
  max-width: 100%;
}

.error {
  margin: 8px 0 0 34px;
  background: var(--red);
  color: #fff;
  padding: 10px 14px;
  font-size: 14px;
  max-width: 440px;
  display: none;
}

.error.show { display: block; }

.disclaimer {
  background: var(--panel);
  border: 1px solid #c4cdd1;
  margin: 28px 0 0;
  padding: 14px 16px;
  font-size: 12px;
  color: #3d4a50;
  text-align: center;
}

/* ---------- Question screen ---------- */

.topbar {
  background: var(--navy);
  color: #fff;
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  min-height: 44px;
  overflow-x: auto;
}

.topbar-left { display: flex; align-items: stretch; }

.brand {
  padding: 0 18px;
  display: flex;
  align-items: center;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
  border-right: 1px solid rgba(255, 255, 255, 0.15);
}

.tab {
  padding: 0 18px;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #b9c9d3;
  white-space: nowrap;
  background: none;
  border: 0;
  font-family: inherit;
}

.tab svg { width: 14px; height: 14px; fill: currentColor; }

.tab.active { background: #fff; color: var(--accent); font-weight: 700; border-bottom: 3px solid var(--accent); }

.tab.done { color: #8fd3a4; }

.tab.locked { opacity: 0.8; cursor: not-allowed; }

.toolbar {
  background: #fff;
  border-bottom: 1px solid var(--accent);
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 8px 16px;
  gap: 12px;
}

.toolbar .hint { font-size: 13px; color: #4a5960; }

.toolbar-right { display: flex; align-items: center; gap: 18px; }

.timer { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.15; }

.timer-label { font-size: 11px; text-transform: uppercase; letter-spacing: 0.05em; color: #55646b; }

.timer-value { font-size: 22px; font-weight: 700; color: var(--navy); font-variant-numeric: tabular-nums; }

.timer.over .timer-label { color: var(--accent-dark); font-weight: 700; }

.timer.over .timer-value { color: var(--accent-dark); }

.toast {
  position: fixed;
  top: 64px;
  left: 50%;
  transform: translateX(-50%);
  background: var(--navy);
  color: #fff;
  padding: 12px 20px;
  font-size: 15px;
  max-width: 92%;
  box-shadow: 0 3px 12px rgba(0, 0, 0, 0.35);
  display: none;
  z-index: 5;
}

.toast.show { display: block; }

.numbers {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 2px 6px;
  padding: 8px 8px 6px;
  font-size: 15px;
}

.num {
  font: inherit;
  font-weight: 600;
  color: var(--navy);
  background: none;
  border: 0;
  min-width: 30px;
  padding: 2px 6px;
  cursor: pointer;
  border-bottom: 3px solid transparent;
  position: relative;
}

.num.answered { border-bottom-color: #9bb3c1; }

.num.current { color: var(--accent); font-size: 22px; border-bottom-color: var(--accent); }

.num.flagged::after {
  content: "";
  position: absolute;
  top: 0;
  right: 0;
  width: 7px;
  height: 7px;
  background: #555;
  border-radius: 50%;
}

.qwrap { max-width: 1060px; margin: 0 auto; padding: 0 12px 40px; }

.qcard {
  background: #fff;
  border-left: 6px solid var(--accent);
  box-shadow: 0 1px 6px rgba(0, 0, 0, 0.25);
  min-height: 520px;
  padding: 14px 24px 40px;
}

.qhead { display: flex; align-items: center; gap: 8px; }

.arrow {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 6px;
  color: var(--navy);
  display: grid;
  place-items: center;
}

.arrow:disabled { color: #b5b5b5; cursor: default; }

.arrow svg { width: 18px; height: 18px; fill: currentColor; }

.qnum { font-size: 30px; font-weight: 700; color: var(--accent); }

.flag-btn {
  background: none;
  border: 0;
  cursor: pointer;
  padding: 4px;
  color: #9a9a9a;
}

.flag-btn svg { width: 20px; height: 20px; fill: currentColor; }

.flag-btn.on { color: var(--navy); }

.flag-label { font-size: 12px; color: #55646b; }

.qtext { font-size: 17px; margin: 34px 7% 26px; }

.choices { margin: 0 7%; }

.choice {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 14px 10px;
  cursor: pointer;
  font-size: 16px;
  border-radius: 4px;
}

.choice:hover { background: #f3f6f7; }

.choice input { margin-top: 4px; accent-color: var(--navy); }

.next-row { display: flex; justify-content: flex-end; margin: 22px 7% 0; }

.next-row[hidden] { display: none; }

.next-row .btn { padding: 13px 28px; font-size: 15px; }

.modal-back {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.45);
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
  z-index: 100000;
}

.modal-back.show { display: flex; }

.modal {
  background: #fff;
  max-width: 460px;
  width: 100%;
  border-left: 6px solid var(--accent);
  padding: 24px;
}

.modal h2 { font-size: 22px; margin-bottom: 10px; }

.modal-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 20px; flex-wrap: wrap; }

/* ---------- Results ---------- */

.score-big { font-size: 56px; font-weight: 500; color: var(--navy); margin: 6px 0; }

.topic-row { margin: 16px 0; }

.topic-top { display: flex; justify-content: space-between; font-size: 15px; margin-bottom: 4px; }

.bar { background: #e3e8ea; height: 14px; border-radius: 7px; overflow: hidden; }

.bar span { display: block; height: 100%; background: var(--green); }

.bar span.low { background: var(--accent); }

.rec {
  border: 1px solid #c4cdd1;
  padding: 14px 16px;
  margin: 12px 0;
  background: #fafbfb;
}

.rec h3 { margin: 0 0 4px; color: var(--navy); font-size: 17px; }

.rec p { margin: 0 0 10px; font-size: 14px; }

.rec-list { margin: 8px 0 14px; padding-left: 20px; font-size: 14px; }

.rec-list li { margin-bottom: 6px; }

.review-item { border-top: 1px solid #ddd; padding: 14px 0; font-size: 15px; }

.review-item .ok { color: var(--green); font-weight: 600; }

.review-item .bad { color: var(--red); font-weight: 600; }

@media (max-width: 640px) {
  .qtext, .choices, .next-row { margin-left: 0; margin-right: 0; }
  .card h1 { font-size: 28px; }
  .toolbar .hint { display: none; }
}

/* Exam options and bundles */
.section-title { margin: 30px 0 4px; font-size: 18px; color: var(--navy); }
.section-sub { margin: 0 0 4px; font-size: 14px; color: #55646b; }
.tile-sub { font-size: 13px; color: #55646b; }
.tile-price { font-size: 26px; font-weight: 600; color: var(--navy); margin-top: 4px; }
.tile.soon .tile-price, .tile.soon .tile-sub { color: #8a979d; }
.tiles.bundles .tile { min-height: 150px; position: relative; }
.tile.best { border-top: 4px solid var(--accent); }
.badge { position: absolute; top: 10px; right: 10px; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; padding: 3px 8px; }
.tile-was { font-size: 13px; color: #8a979d; text-decoration: line-through; margin-left: 8px; font-weight: 400; }
.tile-save { font-size: 13px; font-weight: 700; color: #8a979d; }

/* Terms and section information screen */
.agree-card { max-width: 1400px; width: 100%; }
.warn-row { display: flex; gap: 12px; align-items: flex-start; margin-top: 8px; }
.warn-row p { margin: 0; font-size: 14px; }
.warn-icon { background: #f3c84b; color: #333; font-weight: 800; min-width: 32px; height: 32px; display: grid; place-items: center; border-radius: 3px; font-size: 20px; }
.rule { border: 0; border-top: 1px solid #aeb8bc; margin: 18px 0; }
.agree-cols { display: grid; grid-template-columns: 1fr 1.25fr; gap: 28px; }
.agree-left, .agree-right { max-height: 52vh; overflow-y: auto; padding-right: 10px; }
.agree-right { background: #e6e6e6; padding: 18px 20px; }
.agree-left h2, .agree-right h2 { font-size: 21px; margin-bottom: 14px; }
.agree-card p { font-size: 14px; }
.sq-list { margin: 0 0 14px; padding-left: 4px; list-style: none; }
.sq-list li { position: relative; padding-left: 22px; margin: 0 0 10px; font-size: 14px; }
.sq-list li::before { content: ""; position: absolute; left: 4px; top: 7px; width: 6px; height: 6px; background: var(--navy); }
.breakdown { display: flex; align-items: flex-start; justify-content: center; flex-wrap: wrap; gap: 0; margin: 18px 0 22px; }
.bd-box { width: 104px; background: #f4f6f7; box-shadow: 0 1px 3px rgba(0,0,0,0.3); text-align: center; }
.bd-head { background: var(--navy); color: #fff; font-size: 13px; padding: 5px 0; }
.bd-num { font-size: 26px; font-weight: 500; padding-top: 6px; }
.bd-label { font-size: 10px; text-transform: uppercase; padding: 0 6px 8px; color: #3d4a50; }
.bd-gap { width: 70px; align-self: stretch; display: flex; align-items: flex-end; justify-content: center; font-size: 10px; font-weight: 700; color: #3d4a50; text-align: center; padding-bottom: 2px; }
.fs-bar { position: sticky; top: 0; z-index: 50; background: #f3c84b; color: #222; padding: 8px 16px; font-size: 14px; display: flex; gap: 14px; align-items: center; justify-content: center; }
.fs-bar[hidden], [hidden].stage { display: none; }
.fs-bar button { font: inherit; font-weight: 600; background: var(--navy); color: #fff; border: 0; padding: 6px 14px; cursor: pointer; }
@media (max-width: 760px) {
  .agree-cols { grid-template-columns: 1fr; }
  .agree-left, .agree-right { max-height: none; overflow: visible; }
  .bd-gap { width: 40px; }
}

/* ---------- Simulation sample ---------- */
.topbar-link { color: #fff; font-size: 13px; text-decoration: none; display: flex; align-items: center; padding: 0 16px; white-space: nowrap; }
.topbar-link:hover { text-decoration: underline; }
.sim-banner { background: #fff6d6; border-bottom: 1px solid #e3d08a; padding: 9px 16px; font-size: 14px; text-align: center; }
.simcard { padding-bottom: 24px; }
.exh-box { background: #f6f7f8; border: 1px solid #d3d9dc; padding: 12px 16px; margin: 14px 0 18px; }
.exh-box h2 { font-size: 18px; margin-bottom: 8px; }
.exh-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px 22px; }
.exh-link { font: inherit; font-size: 14px; color: var(--navy); background: none; border: 0; padding: 0; text-decoration: underline; cursor: pointer; }
.exh-link::before { content: "\25A4"; margin-right: 8px; }
.exh-link.open { font-weight: 700; color: var(--accent-dark); }
.sim-body { max-width: 860px; margin: 0 auto; }
.sim-body p, .sim-body li { font-size: 15px; }
.sim-body ul { margin: 0 0 16px; padding-left: 22px; }
.sim-table { width: 100%; border-collapse: collapse; margin: 14px 0 6px; font-size: 14px; }
.sim-table td, .sim-table th { border: 1px solid #b9c2c6; padding: 0; }
.sim-table .letters td { background: #fff; color: #667379; font-style: italic; text-align: center; padding: 3px 0; border-left: 1px solid #b9c2c6; }
.sim-table .titles th { background: #e8e8e8; padding: 10px 8px; font-weight: 700; text-align: center; }
.sim-table .titles th.left { text-align: left; }
.sim-table .rownum { width: 30px; text-align: center; color: #667379; font-style: italic; border-top-color: transparent; border-bottom-color: transparent; border-left-color: transparent; background: #fff; }
.sim-table .letters .rownum, .sim-table .titles .rownum { border-bottom-color: #b9c2c6; }
.label-cell { padding: 10px 10px !important; }
.blank-cell { background: #f1f1f1; }
.cell-wrap { position: relative; }
.cell-input, .cell-select { width: 100%; font: inherit; font-size: 15px; border: 0; background: transparent; padding: 14px 30px 10px 10px; height: 44px; text-align: right; }
.cell-select { text-align: left; appearance: none; -webkit-appearance: none; cursor: pointer; }
.cell-input:focus, .cell-select:focus { outline: 2px solid var(--navy); outline-offset: -2px; background: #fff; }
.badge-num, .badge-list { position: absolute; top: 3px; right: 4px; background: var(--navy); color: #fff; font-size: 8px; font-weight: 700; line-height: 1; padding: 3px 3px; border-radius: 3px; pointer-events: none; }
.badge-list { font-size: 11px; padding: 2px 4px; }
.right { background: #e3f3e8 !important; }
.wrong { background: #f9e1e1 !important; }
.right .cell-input, .right .cell-select, .wrong .cell-input, .wrong .cell-select { background: transparent; }
tr.right td, tr.wrong td { background: inherit; }
.noentry { display: block; border: 1px solid #b9c2c6; padding: 8px 10px; margin-top: 14px; font-size: 14px; cursor: pointer; }
.jtable { margin-top: 0; }
.sim-actions { max-width: 860px; margin: 22px auto 0; display: flex; gap: 12px; flex-wrap: wrap; }
.sim-score { max-width: 860px; margin: 18px auto 0; background: #fbeeee; border-left: 5px solid var(--red); padding: 12px 16px; }
.sim-score.all { background: #e3f3e8; border-left-color: var(--green); }
.sim-score p { margin: 6px 0 0; font-size: 14px; }

.win { position: fixed; width: 460px; height: 340px; min-width: 260px; min-height: 140px; max-width: 96vw; max-height: 90vh; background: #fff; border: 1px solid #54707f; box-shadow: 0 8px 28px rgba(0,0,0,0.35); display: flex; flex-direction: column; resize: both; overflow: hidden; }
.win-bar { background: var(--navy); color: #fff; display: flex; justify-content: space-between; align-items: center; padding: 0 0 0 12px; cursor: move; touch-action: none; user-select: none; min-height: 34px; font-weight: 500; font-size: 14px; }
.win-close { font: inherit; font-size: 22px; line-height: 1; background: none; border: 0; color: #fff; width: 38px; height: 34px; cursor: pointer; }
.win-close:hover { background: rgba(255,255,255,0.18); }
.win-body { padding: 12px 14px; overflow: auto; flex: 1; font-size: 13px; }
.win-body p { margin: 0 0 10px; }
.ex-table { width: 100%; border-collapse: collapse; }
.ex-table th, .ex-table td { padding: 5px 6px; border-bottom: 1px solid #d3d9dc; text-align: left; }
.ex-table .r { text-align: right; }
.ex-table tr.total td { font-weight: 700; border-top: 2px solid #54707f; }
.ex-note { font-size: 12px; color: #55646b; margin-top: 10px; }
@media (max-width: 700px) {
  .win { left: 8px !important; right: 8px; top: 60px !important; width: auto; height: 62vh; resize: none; }
  .win-bar { cursor: default; }
  .cell-input, .cell-select { font-size: 14px; }
  .label-cell { padding: 8px 6px !important; }
}

/* Formatted question text */
.qtext p { margin: 0 0 12px; }
.qtext p:last-child { margin-bottom: 0; }
.qtable { border-collapse: collapse; margin: 6px 0 14px; font-size: 15px; min-width: 280px; }
.qtable th, .qtable td { border: 1px solid #b9c2c6; padding: 7px 12px; text-align: left; }
.qtable th { background: #e8e8e8; font-weight: 700; }
.qtable .n { text-align: right; }
.qimage { margin: 0 7% 22px; }
.qimage img { max-width: 100%; height: auto; border: 1px solid #d3d9dc; }
@media (max-width: 640px) { .qimage { margin-left: 0; margin-right: 0; } }

/* Concepts to review on the results page */
.missed-title { margin: 10px 0 2px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.04em; color: #55646b; }
.missed { margin: 0 0 4px; padding-left: 20px; font-size: 14px; }
.missed li { margin: 0 0 3px; }

/* Grid (balance sheet) task, source badge, invoices */
.qcard { position: relative; }
.src-badge { position: absolute; top: 0; right: 0; background: var(--navy); color: #fff; font-size: 12px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; padding: 6px 12px; z-index: 2; }
.src-note { font-size: 12px; color: #55646b; margin-top: 16px; }
.sim-table.grid td { padding: 0; }
.sim-table.grid .label-cell { padding: 8px 10px !important; }
.sim-table.grid .gridtitle { background: #e8e8e8; text-align: center; font-weight: 600; padding: 10px; }
.sim-table.grid .colhead { background: #e8e8e8; text-align: center; font-weight: 700; padding: 8px 6px !important; }
.sim-table.grid .numcell { text-align: right; padding: 8px 12px; white-space: nowrap; }
.sim-table.grid .bold { font-weight: 700; }
.sim-table.grid td:first-child + td { min-width: 0; }
.ex-table.bordered th, .ex-table.bordered td { border: 1px solid #54707f; }
.ex-table.bordered th { background: #f1f4f5; text-align: center; }
.inv { font-size: 13px; }
.inv-top { display: flex; justify-content: space-between; gap: 16px; margin-bottom: 12px; }
.inv-title { font-size: 26px; font-weight: 800; text-align: right; }
.inv-mid { display: flex; gap: 16px; margin-bottom: 12px; }
.inv-bill { background: #f1f1f1; padding: 8px 10px; flex: 1; }
.inv-stamp { background: #f1f1f1; border: 1px solid #c4cdd1; padding: 8px 10px; flex: 1; font-style: italic; }
.inv-totals { display: flex; justify-content: flex-end; margin: 10px 0; }
.inv-totals table { width: 240px; }
.inv-notes { width: 55%; margin-bottom: 12px; }
@media (max-width: 700px) { .exh-links { grid-template-columns: 1fr; } .src-badge { position: static; display: block; margin: 0 0 8px; } }

.exh-link { justify-self: start; text-align: left; }
.sim-body { overflow-x: auto; }
.sim-table.grid { min-width: 560px; }

.bundle-title { margin: 22px 0 0; font-size: 16px; color: var(--navy); }

.missed .bp { display: block; font-size: 12px; color: #667379; margin-top: 1px; }

/* Landing page */
.hero { display: flex; gap: 28px; align-items: center; padding: 34px 30px; background: #fff7dc; border-bottom: 4px solid #f9c625; }
.hero-logo { width: 120px; height: 120px; flex: none; }
.hero-text h1 { font-size: 34px; line-height: 1.15; }
.hero-sub { margin: 10px 0 18px; font-size: 17px; color: #3d4a50; }
.hero-btn { font-size: 16px; padding: 14px 28px; }
.hero-facts { margin: 12px 0 0; font-size: 13px; color: #55646b; }
.section-title { margin: 30px 0 4px; font-size: 18px; color: var(--navy); }
.how { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 12px; }
.how-step { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; }
.how-step .step-num { flex: none; margin-top: 2px; }
.sample { border: 1px dashed #aeb8bc; background: #fafafa; padding: 14px 18px; margin-top: 12px; max-width: 640px; }
.sample-label { margin: 0 0 6px !important; font-size: 11px !important; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: #667379; }
.about { margin: 38px 0 0; font-size: 14px; color: #3d4a50; }
@media (max-width: 700px) {
  .hero { flex-direction: column; text-align: center; padding: 26px 18px; }
  .hero-text h1 { font-size: 26px; }
  .how { grid-template-columns: 1fr; }
}

/* Minimal landing header */
.hero.mini { padding: 26px 30px; gap: 20px; background: #fff; border-bottom: 3px solid #f9c625; }
.hero.mini .hero-logo { width: 84px; height: 84px; }
.hero.mini .hero-text h1 { font-size: 30px; border: 0; padding: 0; margin: 0; }
.hero.mini .hero-sub { margin: 6px 0 0; font-size: 16px; }
.hero.mini + .card-body { padding-top: 8px; }
@media (max-width: 700px) { .hero.mini { flex-direction: row; text-align: left; padding: 18px; gap: 14px; } .hero.mini .hero-logo { width: 64px; height: 64px; } .hero.mini .hero-text h1 { font-size: 22px; } .hero.mini .hero-sub { font-size: 14px; } }

/* Keep a short question card centered in the window instead of stuck near the top */
.exam-ui { min-height: 100vh; display: flex; flex-direction: column; }
.exam-ui[hidden] { display: none; }
.exam-ui .qwrap { flex: 1; display: flex; width: 100%; max-width: none; padding-bottom: 90px; }
.exam-ui .qcard { margin: auto; width: 100%; max-width: 1036px; min-width: 0; }
.exam-ui.is-task .qcard { margin: 0 auto; }

.bundle-promo { display: block; margin: 28px 0 8px; text-decoration: none; text-align: center; }
.bundle-promo img { display: block; width: 100%; max-width: 420px; height: auto; margin: 0 auto 14px; }

/* Wide logo (includes the brand name) stacked above the title */
.hero.mini { flex-direction: column; text-align: center; gap: 4px; }
.hero.mini .hero-logo { width: 280px; height: auto; max-width: 80%; }
@media (max-width: 700px) { .hero.mini { flex-direction: column; text-align: center; padding: 18px; } .hero.mini .hero-logo { width: 220px; height: auto; } }

/* Legal line */
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 16px; padding: 12px 20px; border-top: 1px solid var(--line, #d9dfe3); font-size: 12px; color: #66757c; }
.legal a { color: #66757c; margin-left: 12px; }
.legal a:first-child { margin-left: 0; }
.sim-legal { max-width: 1100px; margin: 24px auto 0; }
.doc h1 { margin-top: 0; }
.doc h2 { font-size: 17px; margin: 26px 0 6px; color: var(--navy); }
.doc p, .doc li { font-size: 15px; line-height: 1.6; }
.doc .updated { color: #66757c; font-size: 13px; }
