:root {
  --bg: #050a18;
  --panel: rgba(10, 16, 34, .78);
  --panel2: rgba(13, 20, 42, .92);
  --line: rgba(148, 163, 184, .18);
  --text: #f8fafc;
  --muted: #9aa8bf;
  --navy: #122844;
  --pink: #ee0cdb;
  --green: #84e722;
  --blue: #2564ff;
  --cyan: #26b0ff;
  --orange: #ff8a00;
  --yellow: #fcd005;
  --red: #ff2d29;
  --shadow: 0 22px 70px rgba(0, 0, 0, .35);
  --radius-xl: 32px;
  --radius-lg: 24px;
  --radius-md: 18px;
  --font-ui: "Roboto", Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  --font-display: "Roboto Condensed", "Roboto", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 80% 0%, rgba(238, 12, 219, .20), transparent 36%),
    radial-gradient(circle at 0% 40%, rgba(37, 100, 255, .18), transparent 28%),
    linear-gradient(180deg, #030712 0%, #050a18 42%, #070317 100%);
  color: var(--text);
  font-family: var(--font-ui);
}

button, input { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .45; }

.app-shell {
  width: min(1840px, calc(100% - 24px));
  margin: 0 auto;
  padding: 12px 0 48px;
}

.topbar {
  position: sticky;
  top: 10px;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  min-height: 70px;
  padding: 10px 14px 10px 18px;
  border: 1px solid rgba(255,255,255,.08);
  border-radius: 26px;
  background: rgba(2, 6, 23, .78);
  backdrop-filter: blur(22px);
  box-shadow: 0 16px 50px rgba(0,0,0,.24);
}

.brand-button {
  border: 0;
  padding: 0;
  background: transparent;
  display: flex;
  align-items: center;
}
.brand-button img { height: 44px; width: auto; display: block; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}
.nav-actions button {
  min-height: 42px;
  padding: 0 15px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(15, 23, 42, .78);
  color: #dbeafe;
  font-weight: 900;
  font-size: 13px;
  transition: transform .2s ease, background .2s ease, border-color .2s ease;
}
.nav-actions button:hover {
  transform: translateY(-1px);
  border-color: rgba(132,231,34,.42);
  background: rgba(37,100,255,.18);
}

.hero-image-card {
  margin-top: 16px;
  overflow: hidden;
  border-radius: 34px;
  border: 1px solid rgba(37, 100, 255, .30);
  background: #020617;
  box-shadow: var(--shadow);
  height: 400px;
}
.hero-image-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.name-strip {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 430px);
  gap: 20px;
  align-items: center;
  margin-top: 18px;
  padding: 22px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(37,100,255,.14), rgba(238,12,219,.10)), rgba(10,16,34,.72);
  box-shadow: 0 16px 44px rgba(0,0,0,.18);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid rgba(132,231,34,.28);
  background: rgba(132,231,34,.10);
  color: #d9ff86;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .09em;
}
.name-strip h2 {
  margin: 10px 0 0;
  font-family: var(--font-display);
  font-size: clamp(30px, 4vw, 54px);
  line-height: .95;
  letter-spacing: -.02em;
}
.name-input-wrap {
  display: block;
  padding: 10px;
  border-radius: 22px;
  background: rgba(2,6,23,.58);
  border: 1px solid rgba(148,163,184,.16);
}
.name-input-wrap span {
  display: block;
  padding: 0 12px 8px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.name-input-wrap input {
  width: 100%;
  min-height: 58px;
  border: 1px solid rgba(255,255,255,.10);
  border-radius: 17px;
  background: rgba(15,23,42,.86);
  color: var(--text);
  outline: none;
  padding: 0 16px;
  font-size: 20px;
  font-weight: 900;
}
.name-input-wrap input:focus { border-color: rgba(38,176,255,.60); box-shadow: 0 0 0 4px rgba(38,176,255,.12); }

.choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-top: 18px;
}
.test-choice-card {
  position: relative;
  overflow: hidden;
  min-height: 360px;
  display: flex;
  flex-direction: column;
  padding: 28px;
  border-radius: 34px;
  border: 1px solid var(--accent-border);
  background:
    radial-gradient(circle at 82% 12%, var(--accent-soft), transparent 34%),
    linear-gradient(135deg, rgba(15,23,42,.82), rgba(2,6,23,.76));
  box-shadow: var(--shadow);
}
.test-choice-card::before {
  content: "";
  position: absolute;
  inset: auto -70px -120px auto;
  width: 360px;
  height: 360px;
  border-radius: 50%;
  background: var(--accent);
  opacity: .13;
  filter: blur(4px);
}
.choice-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 24px;
}
.choice-top img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  border-radius: 20px;
}
.choice-top span {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.08);
  color: #dbeafe;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: .07em;
}
.test-choice-card h2 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(54px, 7vw, 92px);
  line-height: .88;
  letter-spacing: -.035em;
  color: var(--accent);
}
.test-choice-card p {
  max-width: 820px;
  margin: 22px 0 auto;
  color: #d8deed;
  font-size: clamp(18px, 1.45vw, 22px);
  font-weight: 700;
  line-height: 1.45;
}
.mini-progress, .multi-progress, .section-progress {
  height: 12px;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.06);
}
.mini-progress { margin: 22px 0 18px; height: 14px; }
.mini-progress span, .multi-progress span, .section-progress span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--cyan), var(--green), var(--yellow), var(--orange), var(--pink));
}
.choice-actions { display: flex; gap: 12px; flex-wrap: wrap; }

.primary-button, .secondary-button, .ghost-button, .switch-test-button {
  min-height: 56px;
  padding: 0 21px;
  border-radius: 18px;
  font-weight: 950;
  border: 1px solid rgba(255,255,255,.12);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease, background .2s ease;
}
.primary-button {
  color: #03111f;
  border: 0;
  background: linear-gradient(135deg, #ffffff, var(--accent, #84e722));
  box-shadow: 0 14px 34px rgba(37,100,255,.22);
}
.secondary-button {
  color: #f8fafc;
  background: rgba(15,23,42,.74);
}
.ghost-button {
  color: #dbeafe;
  background: rgba(255,255,255,.04);
}
.switch-test-button {
  width: 100%;
  color: #eaf2ff;
  background: linear-gradient(135deg, rgba(238,12,219,.16), rgba(37,100,255,.16));
}
.primary-button:hover, .secondary-button:hover, .ghost-button:hover, .switch-test-button:hover { transform: translateY(-2px); }

.test-layout {
  display: grid;
  grid-template-columns: 320px minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}
.test-sidebar {
  position: sticky;
  top: 94px;
  align-self: start;
  border-radius: 28px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(2,6,23,.74);
  backdrop-filter: blur(22px);
  box-shadow: 0 18px 52px rgba(0,0,0,.24);
}
.sidebar-head { padding: 8px 8px 14px; }
.mode-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid var(--accent-border);
  background: var(--accent-soft);
  color: #fff;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.sidebar-head h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: 32px;
  line-height: .95;
}
.section-list { display: grid; gap: 9px; }
.section-button {
  position: relative;
  display: grid;
  grid-template-columns: 0 42px 1fr 54px;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-height: 66px;
  padding: 9px 10px;
  border-radius: 18px;
  border: 1px solid var(--item-border);
  background: linear-gradient(135deg, var(--item-soft), rgba(15,23,42,.65));
  color: var(--text);
  text-align: left;
}
.section-button.active {
  grid-template-columns: 14px 42px 1fr 54px;
  background: linear-gradient(135deg, var(--item-soft), rgba(255,255,255,.08));
  box-shadow: inset 0 0 0 1px var(--item-border), 0 10px 26px rgba(0,0,0,.16);
}
.section-arrow {
  display: none;
  color: var(--item-accent);
  font-size: 26px;
  font-weight: 950;
}
.section-button.active .section-arrow { display: block; }
.section-num {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  background: rgba(255,255,255,.06);
  color: var(--item-accent);
  font-weight: 950;
}
.section-copy strong { display: block; font-size: 14px; line-height: 1.15; }
.section-copy small { display: block; color: var(--muted); font-weight: 800; margin-top: 3px; }
.section-micro {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255,255,255,.10);
}
.section-micro span { display: block; height: 100%; background: var(--item-accent); }
.sidebar-progress-card {
  margin: 14px 0;
  padding: 15px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(15,23,42,.70);
}
.progress-label { display: flex; justify-content: space-between; color: #dbeafe; font-weight: 950; margin-bottom: 9px; }
.sidebar-progress-card p { margin: 12px 0 0; color: var(--muted); font-size: 13px; line-height: 1.45; font-weight: 700; }

.quiz-panel {
  min-width: 0;
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(3, 7, 18, .74);
  box-shadow: var(--shadow);
}
.quiz-header {
  padding: 32px;
  background:
    radial-gradient(circle at 90% 0%, var(--section-soft), transparent 32%),
    linear-gradient(135deg, rgba(15,23,42,.92), rgba(2,6,23,.60));
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.quiz-meta { display: flex; gap: 10px; flex-wrap: wrap; }
.quiz-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 0 11px;
  border-radius: 999px;
  background: var(--section-soft);
  border: 1px solid var(--section-border);
  color: #f8fafc;
  font-size: 12px;
  font-weight: 950;
}
.quiz-header h1 {
  margin: 20px 0 12px;
  max-width: 1100px;
  font-family: var(--font-display);
  font-size: clamp(44px, 6.6vw, 92px);
  line-height: .88;
  letter-spacing: -.04em;
}
.quiz-header p {
  max-width: 900px;
  margin: 0 0 20px;
  color: #cbd5e1;
  font-size: 19px;
  line-height: 1.45;
  font-weight: 750;
}
.section-progress span { background: linear-gradient(90deg, var(--section-accent), #fff); }
.question-list { display: grid; gap: 14px; padding: 22px; }
.question-card {
  padding: 22px;
  border-radius: 24px;
  border: 1px solid var(--section-border);
  background: linear-gradient(180deg, rgba(15,23,42,.76), rgba(2,6,23,.82));
}
.question-title-row {
  display: grid;
  grid-template-columns: 44px 1fr;
  gap: 14px;
  align-items: start;
  margin-bottom: 16px;
}
.question-index {
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  border-radius: 15px;
  color: #06101f;
  background: linear-gradient(135deg, #fff, var(--section-accent));
  font-weight: 950;
}
.question-card h3 { margin: 0; color: #fff; font-size: 20px; line-height: 1.32; }
.question-card p { margin: 6px 0 0; color: var(--muted); font-size: 14px; font-weight: 700; }
.option-grid, .rating-grid, .agree-grid {
  display: grid;
  gap: 10px;
}
.option-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.rating-grid { grid-template-columns: repeat(6, minmax(0, 1fr)); }
.agree-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.answer-button {
  min-height: 66px;
  border-radius: 17px;
  padding: 13px 16px;
  border: 1px solid rgba(255,255,255,.10);
  background: rgba(2,6,23,.64);
  color: #e2e8f0;
  font-weight: 900;
  text-align: left;
  transition: transform .18s ease, border-color .18s ease, background .18s ease, color .18s ease;
}
.rating-grid .answer-button { text-align: center; font-size: 20px; }
.answer-button:hover { transform: translateY(-1px); border-color: var(--section-border); }
.answer-button.selected {
  color: #06101f;
  border-color: rgba(255,255,255,.36);
  background: linear-gradient(135deg, #fff, var(--section-accent));
  box-shadow: 0 16px 34px var(--section-soft);
}
.quiz-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 0 22px 24px;
}

.results-page { margin-top: 18px; }
.results-intro {
  padding: 28px;
  border-radius: 32px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(135deg, rgba(37,100,255,.16), rgba(238,12,219,.10)), rgba(2,6,23,.72);
}
.results-intro h1 {
  margin: 12px 0 8px;
  font-family: var(--font-display);
  font-size: clamp(44px, 6vw, 78px);
  line-height: .9;
}
.results-intro p { max-width: 900px; margin: 0; color: #cbd5e1; font-size: 19px; line-height: 1.45; font-weight: 700; }
.results-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; margin-top: 18px; }
.result-card, .missing-result, .combined-prompt {
  overflow: hidden;
  border-radius: 32px;
  border: 1px solid var(--accent-border, rgba(255,255,255,.10));
  background: radial-gradient(circle at 90% 10%, var(--accent-soft, rgba(37,100,255,.16)), transparent 35%), rgba(2,6,23,.78);
  box-shadow: var(--shadow);
}
.missing-result, .combined-prompt { padding: 28px; }
.missing-result h2, .combined-prompt h2 { margin: 0 0 14px; font-family: var(--font-display); font-size: clamp(38px, 5vw, 62px); line-height: .9; }
.missing-result p { color: #cbd5e1; font-size: 18px; font-weight: 700; line-height: 1.45; }
.result-head { padding: 24px 26px 18px; border-bottom: 1px solid rgba(255,255,255,.08); }
.result-type {
  display: inline-flex;
  min-height: 28px;
  padding: 0 11px;
  align-items: center;
  border-radius: 999px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
  letter-spacing: .08em;
}
.result-head h2 {
  margin: 12px 0 0;
  font-family: var(--font-display);
  font-size: clamp(42px, 5.2vw, 76px);
  line-height: .9;
}
.result-body { display: grid; grid-template-columns: 330px 1fr; gap: 20px; padding: 24px; }
.result-graph {
  aspect-ratio: 1;
  border-radius: 50%;
  padding: 14px;
  box-shadow: inset 0 0 0 10px rgba(255,255,255,.06), 0 20px 60px rgba(0,0,0,.35);
}
.result-graph-inner {
  width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; background: #06101f; padding: 26px;
}
.score-ring { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; padding: 18px; }
.score-core { width: 100%; height: 100%; border-radius: 50%; display: grid; place-items: center; align-content: center; background: #020617; border: 1px solid rgba(255,255,255,.08); }
.score-core strong { font-family: var(--font-display); font-size: 78px; line-height: .8; }
.score-core span { color: var(--muted); font-weight: 950; }
.result-copy h3 { margin: 0 0 12px; color: var(--accent); font-family: var(--font-display); font-size: clamp(34px, 4vw, 58px); line-height: .92; }
.result-copy p { color: #dbe2ef; font-size: 17px; line-height: 1.52; font-weight: 700; }
.result-bars { display: grid; gap: 10px; margin-top: 18px; }
.result-bar-row div { display: flex; justify-content: space-between; gap: 12px; color: #e5e7eb; font-size: 13px; font-weight: 900; margin-bottom: 6px; }
.result-bar-row em { display: block; height: 9px; border-radius: 999px; background: rgba(255,255,255,.10); overflow: hidden; }
.result-bar-row i { display: block; height: 100%; border-radius: inherit; }
.result-actions { display: flex; gap: 12px; flex-wrap: wrap; padding: 0 24px 24px; }
.combined-result-wrap { margin-top: 18px; }
.combined-result-wrap .result-card { --accent: #ff8a00; --accent-soft: rgba(255,138,0,.14); --accent-border: rgba(255,138,0,.32); }
.combined-prompt { margin-top: 18px; text-align: center; }
.combined-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

.footer {
  margin-top: 28px;
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
  padding: 20px;
  border-radius: 26px;
  border: 1px solid rgba(255,255,255,.08);
  background: rgba(2,6,23,.72);
}
.footer img { width: 180px; height: auto; }
.footer p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.45; font-weight: 700; }

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(2,6,23,.76);
  backdrop-filter: blur(16px);
}
.modal-card {
  width: min(720px, 100%);
  padding: 28px;
  border-radius: 30px;
  border: 1px solid rgba(255,255,255,.12);
  background: radial-gradient(circle at 100% 0%, rgba(132,231,34,.16), transparent 34%), #071021;
  box-shadow: 0 28px 90px rgba(0,0,0,.44);
}
.modal-card h2 {
  margin: 0 0 14px;
  font-family: var(--font-display);
  font-size: clamp(40px, 6vw, 72px);
  line-height: .9;
}
.modal-body p { color: #dbe2ef; font-size: 19px; line-height: 1.5; font-weight: 750; }
.modal-disclaimer { color: #fffbeb !important; }
.modal-actions { display: flex; justify-content: flex-end; margin-top: 20px; }
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 120;
  max-width: min(720px, calc(100% - 28px));
  transform: translate(-50%, 30px);
  opacity: 0;
  pointer-events: none;
  padding: 14px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(2,6,23,.88);
  color: #fff;
  font-weight: 850;
  box-shadow: 0 20px 60px rgba(0,0,0,.35);
  transition: opacity .22s ease, transform .22s ease;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1220px) {
  .result-body { grid-template-columns: 1fr; }
  .result-graph { width: min(360px, 100%); margin: 0 auto; }
}
@media (max-width: 980px) {
  .app-shell { width: min(100% - 16px, 1840px); }
  .topbar { position: static; flex-direction: column; align-items: stretch; }
  .brand-button { justify-content: center; }
  .brand-button img { height: 38px; }
  .nav-actions { justify-content: center; }
  .hero-image-card { height: 300px; }
  .choice-grid, .results-grid, .name-strip { grid-template-columns: 1fr; }
  .test-layout { grid-template-columns: 1fr; }
  .test-sidebar { position: static; }
  .section-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .hero-image-card { height: 230px; border-radius: 22px; }
  .nav-actions button { flex: 1 1 auto; }
  .test-choice-card, .name-strip, .quiz-header, .results-intro, .missing-result, .combined-prompt { padding: 20px; border-radius: 24px; }
  .test-choice-card h2 { font-size: 54px; }
  .section-list { grid-template-columns: 1fr; }
  .question-list { padding: 14px; }
  .question-card { padding: 16px; border-radius: 20px; }
  .option-grid, .agree-grid { grid-template-columns: 1fr; }
  .rating-grid { grid-template-columns: repeat(3, minmax(0,1fr)); }
  .quiz-actions, .result-actions { flex-direction: column; }
  .quiz-actions button, .result-actions button, .choice-actions button, .combined-actions button { width: 100%; }
  .footer { grid-template-columns: 1fr; text-align: center; }
  .footer img { margin: 0 auto; }
}

/* ===== Revision v5 overrides ===== */
.topbar {
  position: sticky;
  top: 10px;
  z-index: 30;
  justify-content: flex-start;
  gap: 22px;
  min-height: 78px;
  padding: 8px 0 6px;
  border: 0;
  border-radius: 0;
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}
.brand-button { flex: 0 0 auto; }
.brand-button img { height: 54px; width: auto; display: block; }
.nav-actions {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
.nav-actions button {
  min-height: 50px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(27, 39, 73, .86);
  color: #eef4ff;
  font-weight: 900;
  font-size: 15px;
  box-shadow: 0 8px 22px rgba(0,0,0,.18);
}
.nav-actions button:hover {
  border-color: rgba(255,255,255,.24);
  background: rgba(60, 88, 160, .92);
}

.hero-shell {
  display: grid;
  grid-template-columns: minmax(420px, 1fr) minmax(540px, 1.2fr);
  gap: 18px;
  margin-top: 14px;
  align-items: stretch;
}
.hero-copy-panel,
.hero-art-card {
  overflow: hidden;
  min-height: 620px;
  border-radius: 34px;
  border: 1px solid rgba(37, 100, 255, .28);
  box-shadow: var(--shadow);
}
.hero-copy-panel {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: 34px 28px 24px;
  background:
    radial-gradient(circle at 70% 78%, rgba(37,100,255,.22), transparent 24%),
    linear-gradient(180deg, rgba(7,14,34,.88), rgba(4,9,26,.96));
}
.hero-copy-main { max-width: 680px; }
.hero-kicker {
  display: block;
  color: rgba(226,232,240,.72);
  font-size: 24px;
  font-weight: 900;
  margin-bottom: 10px;
}
.hero-copy-main h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(64px, 8vw, 126px);
  line-height: .87;
  letter-spacing: -.05em;
  color: #f3f4f6;
}
.hero-copy-main h1 span {
  display: block;
  color: #ffb000;
  background: linear-gradient(180deg, #ffe45f 0%, #ffb000 50%, #ff8500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-line {
  margin: 0;
  font-weight: 900;
  letter-spacing: -.02em;
}
.hero-line--white { margin-top: 18px; font-size: 27px; color: #f1f5f9; }
.hero-line--orange { margin-top: 4px; font-size: 29px; color: #ffb000; }
.hero-line--green { margin-top: 4px; font-size: 28px; color: #84e722; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 24px;
}
.hero-stat-card {
  padding: 16px 18px 18px;
  border-radius: 22px;
  border: 1px solid rgba(255,255,255,.08);
  background: linear-gradient(180deg, rgba(18,30,60,.92), rgba(10,18,40,.94));
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.02);
}
.hero-stat-card small {
  display: block;
  color: rgba(226,232,240,.58);
  font-size: 12px;
  font-weight: 900;
  margin-bottom: 8px;
}
.hero-stat-card strong {
  display: block;
  color: #fff;
  font-family: var(--font-display);
  font-size: clamp(42px, 4vw, 64px);
  line-height: .9;
  letter-spacing: -.04em;
}
.hero-stat-card span {
  display: block;
  margin-top: 10px;
  font-size: 16px;
  font-weight: 900;
}
.hero-stat-card--blue span { color: #9cc7ff; }
.hero-stat-card--blue strong { color: #eaf2ff; }
.hero-stat-card--violet { background: linear-gradient(180deg, rgba(40,30,82,.88), rgba(17,18,40,.94)); }
.hero-stat-card--violet span { color: #c6b8ff; }
.hero-stat-card--gold { background: linear-gradient(180deg, rgba(72,58,23,.86), rgba(26,19,10,.96)); }
.hero-stat-card--gold span { color: #d9c28c; }
.hero-art-card {
  background: #020617;
}
.hero-art-card img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 68% center;
}

.name-strip {
  gap: 24px;
  padding: 24px 26px;
  background: linear-gradient(135deg, rgba(65,42,118,.34), rgba(15,22,63,.72));
}
.name-input-wrap {
  padding: 12px;
  border-radius: 24px;
  background: rgba(17, 24, 52, .82);
  border: 1px solid rgba(255,255,255,.10);
}
.name-input-wrap span { color: #e2e8f0; }
.name-input-wrap input {
  min-height: 66px;
  border-color: rgba(255,255,255,.16);
  background: rgba(8, 22, 49, .96);
  font-size: 24px;
}

.test-choice-card {
  min-height: 440px;
  padding: 28px;
}
.choice-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}
.choice-head img {
  width: 70px;
  height: 70px;
  object-fit: contain;
  flex: 0 0 auto;
}
.choice-cta {
  min-height: 58px;
  padding: 0 20px;
  font-size: 17px;
  white-space: nowrap;
}
.test-choice-card h2 { margin-top: 10px; }
.test-choice-card p { margin-top: 18px; }

.test-sidebar {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto auto;
  gap: 12px;
  max-height: calc(100vh - 96px);
  padding: 16px;
}
.section-list {
  min-height: 0;
  overflow: auto;
  padding-right: 4px;
}
.section-list::-webkit-scrollbar { width: 8px; }
.section-list::-webkit-scrollbar-thumb { background: rgba(255,255,255,.10); border-radius: 999px; }
.section-button {
  grid-template-columns: 18px 44px minmax(0,1fr);
  grid-template-rows: auto auto;
  gap: 8px 12px;
  min-height: 80px;
  padding: 12px 12px 11px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(20,31,63,.92), rgba(10,16,32,.94));
}
.section-button.active {
  grid-template-columns: 18px 44px minmax(0,1fr);
  background: linear-gradient(135deg, rgba(255,255,255,.06), var(--item-soft));
}
.section-arrow {
  grid-column: 1;
  grid-row: 1 / span 2;
  align-self: center;
  font-size: 34px;
  line-height: 1;
}
.section-num {
  grid-column: 2;
  grid-row: 1;
  width: 44px;
  height: 44px;
}
.section-copy {
  grid-column: 3;
  grid-row: 1;
  min-width: 0;
}
.section-copy strong {
  display: block;
  font-size: 14px;
  line-height: 1.15;
  white-space: normal;
  word-break: break-word;
}
.section-copy small { display: none; }
.section-micro {
  grid-column: 2 / 4;
  grid-row: 2;
  width: 100%;
  height: 10px;
}
.sidebar-progress-card {
  margin: 0;
  padding: 16px;
  position: sticky;
  bottom: 0;
  background: rgba(18,25,50,.94);
}
.switch-test-button {
  width: 100%;
  min-height: 64px;
  font-size: 18px;
  font-weight: 950;
  color: #f8fafc;
  border: 1px solid rgba(255,255,255,.14);
  background: linear-gradient(135deg, var(--switch-soft, rgba(37,100,255,.18)), rgba(17,24,39,.96));
}

.question-card {
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(180deg, rgba(18,28,55,.92), rgba(5,12,28,.96));
}
.question-title-row {
  grid-template-columns: 56px 1fr;
  gap: 16px;
  margin-bottom: 18px;
}
.question-index {
  width: 56px;
  height: 56px;
  border-radius: 18px;
  font-size: 22px;
}
.question-card h3 {
  font-size: 24px;
  line-height: 1.24;
}
.question-card p {
  font-size: 15px;
}
.answer-button {
  position: relative;
  min-height: 76px;
  padding: 15px 56px 15px 18px;
  border: 1px solid rgba(255,255,255,.14);
  background: rgba(13, 22, 44, .96);
  color: #f1f5f9;
}
.answer-button span {
  display: block;
  width: 100%;
}
.answer-button.selected {
  border-color: rgba(255,255,255,.44);
  background: linear-gradient(135deg, #f8ffea, var(--section-accent));
  box-shadow: 0 18px 34px var(--section-soft);
}
.answer-button.selected::after {
  content: '✓';
  position: absolute;
  right: 16px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 56px;
  line-height: 1;
  color: #000;
  font-weight: 900;
}
.rating-grid .answer-button {
  min-height: 72px;
  padding: 14px 14px 14px 14px;
  text-align: center;
}
.rating-grid .answer-button.selected::after {
  right: 10px;
  top: 10px;
  transform: none;
  font-size: 24px;
}
.agree-grid .answer-button,
.option-grid .answer-button { font-size: 18px; }

.footer {
  margin-top: 22px;
  padding: 18px 20px;
  border-radius: 24px;
  background: rgba(2,6,23,.86);
}
.footer img { width: 190px; }

@media (max-width: 1340px) {
  .hero-shell { grid-template-columns: 1fr; }
  .hero-copy-panel, .hero-art-card { min-height: auto; }
  .hero-art-card { min-height: 460px; }
}
@media (max-width: 1180px) {
  .hero-stats { grid-template-columns: 1fr; }
}
@media (max-width: 980px) {
  .topbar { position: static; padding-top: 10px; }
  .brand-button { justify-content: flex-start; }
  .brand-button img { height: 48px; }
  .nav-actions { justify-content: flex-start; }
  .hero-copy-panel { padding: 26px 20px 20px; }
  .hero-kicker { font-size: 20px; }
  .hero-line--white { font-size: 24px; }
  .hero-line--orange, .hero-line--green { font-size: 25px; }
  .hero-art-card { min-height: 340px; }
  .test-sidebar {
    position: static;
    max-height: none;
    grid-template-rows: auto auto auto auto;
  }
  .section-list { overflow: visible; }
}
@media (max-width: 640px) {
  .topbar { gap: 14px; }
  .nav-actions { gap: 8px; }
  .nav-actions button {
    min-height: 46px;
    padding: 0 16px;
    font-size: 14px;
  }
  .hero-copy-panel, .hero-art-card { border-radius: 24px; }
  .hero-art-card { min-height: 260px; }
  .hero-kicker { font-size: 18px; }
  .hero-line--white { font-size: 20px; }
  .hero-line--orange, .hero-line--green { font-size: 21px; }
  .choice-head {
    flex-direction: column;
    align-items: flex-start;
  }
  .choice-cta { width: 100%; }
  .question-title-row { grid-template-columns: 48px 1fr; }
  .question-index { width: 48px; height: 48px; font-size: 18px; }
  .question-card h3 { font-size: 21px; }
  .answer-button.selected::after { font-size: 38px; right: 12px; }
}

/* ===== Revision v6 overrides ===== */
.topbar {
  position: sticky;
  top: 10px;
  z-index: 50;
  justify-content: flex-start;
  gap: 20px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}
.brand-button {
  padding: 0;
  background: transparent;
  border: 0;
}
.brand-button img {
  width: 190px;
  height: auto;
  display: block;
}
.nav-actions {
  justify-content: flex-start;
  gap: 10px;
}
.nav-actions button {
  min-height: 52px;
  padding: 0 22px;
  background: rgba(27, 39, 73, .88);
  border: 1px solid rgba(255,255,255,.14);
}
.nav-actions button:hover {
  background: rgba(53, 80, 150, .94);
}

.hero-banner {
  position: relative;
  margin-top: 14px;
  border-radius: 34px;
  overflow: hidden;
  border: 1px solid rgba(37, 100, 255, .28);
  box-shadow: var(--shadow);
  background: #020617;
}
.hero-banner-image {
  display: block;
  width: 100%;
  height: auto;
}
.hero-overlay {
  position: absolute;
  inset: 0 auto 0 0;
  width: min(44%, 760px);
  padding: 34px 28px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  background: linear-gradient(90deg, rgba(4, 10, 29, .82) 0%, rgba(4, 10, 29, .72) 58%, rgba(4, 10, 29, .18) 88%, transparent 100%);
}
.hero-copy-main h1 {
  margin: 0;
  font-family: var(--font-display);
  font-size: clamp(58px, 5.8vw, 112px);
  line-height: .88;
  letter-spacing: -.05em;
  color: #f8fafc;
}
.hero-line-block {
  display: block;
}
.hero-line-block--accent {
  color: #ffb000;
  background: linear-gradient(180deg, #ffe45f 0%, #ffb000 52%, #ff8500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-kicker {
  display: block;
  color: rgba(226,232,240,.78);
  font-size: 22px;
  font-weight: 900;
  margin-bottom: 8px;
}
.hero-line { margin: 0; font-weight: 900; letter-spacing: -.02em; }
.hero-line--white { margin-top: 16px; color: #f8fafc; font-size: 22px; }
.hero-line--orange { margin-top: 2px; color: #ffb000; font-size: 24px; }
.hero-line--green { margin-top: 2px; color: #84e722; font-size: 24px; }
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 18px;
}
.hero-stat-card {
  min-height: 130px;
  padding: 16px 18px 18px;
  border-radius: 20px;
  border: 1px solid rgba(255,255,255,.08);
  backdrop-filter: blur(6px);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
.hero-stat-card small { display:block; margin-bottom:8px; font-size:12px; font-weight:900; color: rgba(226,232,240,.7); }
.hero-stat-card strong {
  display:block;
  font-family: var(--font-display);
  font-size: clamp(34px, 3vw, 58px);
  line-height: .92;
  letter-spacing: -.04em;
  color: #fff;
}
.hero-stat-card span { display:block; margin-top:8px; font-size: 14px; font-weight:900; }
.hero-stat-card--blue { background: linear-gradient(180deg, rgba(18,48,108,.86), rgba(8,19,46,.94)); }
.hero-stat-card--blue span { color:#9cc7ff; }
.hero-stat-card--violet { background: linear-gradient(180deg, rgba(57,34,120,.86), rgba(18,18,44,.96)); }
.hero-stat-card--violet span { color:#c7b9ff; }
.hero-stat-card--gold { background: linear-gradient(180deg, rgba(102,62,8,.88), rgba(34,21,8,.96)); }
.hero-stat-card--gold span { color:#ffcf75; }

.name-strip {
  background: linear-gradient(135deg, rgba(58, 42, 108, .34), rgba(15, 22, 63, .8));
  gap: 22px;
}
.name-input-wrap {
  padding: 12px;
  background: rgba(18, 28, 58, .82);
  border: 1px solid rgba(255,255,255,.12);
}
.name-input-wrap input {
  min-height: 66px;
  font-size: 28px;
  background: rgba(9, 25, 54, .98);
  border-color: rgba(255,255,255,.18);
}

.choice-grid { align-items: stretch; }
.test-choice-card {
  min-height: 470px;
}
.choice-head {
  align-items: flex-start;
}
.choice-head img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  display: block;
}
.choice-cta {
  min-height: 68px;
  padding: 0 24px;
  font-size: 22px;
  font-weight: 950;
  line-height: 1.12;
  text-align: center;
  white-space: normal;
}
.test-choice-card h2 {
  margin-top: 14px;
  font-size: clamp(72px, 4.8vw, 108px);
  line-height: .88;
}
.mini-progress {
  margin: 20px 0 4px;
  height: 12px;
}
.decorative-bar {
  background: rgba(255,255,255,.12);
  overflow: hidden;
}
.decorative-bar span { width:100% !important; }
.decorative-bar--rainbow span {
  background: linear-gradient(90deg, #26b0ff 0%, #84e722 26%, #ffb000 62%, #ee0cdb 100%);
}
.decorative-bar--blue span {
  background: linear-gradient(90deg, #83d6ff 0%, #4f90ff 38%, #2564ff 72%, #7aa4ff 100%);
}
.decorative-bar--section {
  height: 10px;
}
.decorative-bar--section span {
  background: linear-gradient(90deg, var(--section-accent) 0%, rgba(255,255,255,.88) 22%, rgba(255,255,255,.22) 100%);
}

.section-button {
  background: linear-gradient(135deg, rgba(14,24,50,.94), rgba(7,14,31,.96));
}
.section-button.active {
  border-color: #84e722;
  box-shadow: 0 0 0 1px rgba(132,231,34,.32), 0 0 22px rgba(132,231,34,.22);
  animation: pmeActivePulse 2s ease-in-out infinite;
}
@keyframes pmeActivePulse {
  0%, 100% { border-color: rgba(132,231,34,.58); box-shadow: 0 0 0 1px rgba(132,231,34,.24), 0 0 14px rgba(132,231,34,.16); }
  50% { border-color: rgba(132,231,34,.98); box-shadow: 0 0 0 1px rgba(132,231,34,.72), 0 0 26px rgba(132,231,34,.34); }
}
.section-arrow {
  font-size: 38px;
  font-weight: 900;
}
.section-copy strong {
  font-weight: 700;
}
.switch-test-button {
  background: linear-gradient(135deg, rgba(255,255,255,.96), var(--switch-accent));
  color: #091225;
  font-size: 20px;
  font-weight: 950;
}

.quiz-header {
  background: linear-gradient(135deg, rgba(9,16,38,.96), rgba(6,11,28,.98));
}
.question-card {
  background: linear-gradient(180deg, rgba(6,12,28,.97), rgba(4,9,22,.99));
}
.answer-button {
  background: rgba(18, 32, 63, .88);
  border-color: rgba(255,255,255,.10);
}
.answer-button:not(.selected) span {
  opacity: .70;
}
.answer-button.selected {
  background: linear-gradient(135deg, #f3ffe2, var(--section-accent));
}
.answer-button.selected span {
  font-size: 1.5em;
  opacity: 1;
  font-weight: 950;
}
.rating-grid .answer-button.selected span {
  font-size: 1.25em;
}
.answer-button.selected::after {
  font-size: 48px;
}

@media (max-width: 1180px) {
  .brand-button img { width: 170px; }
  .hero-overlay {
    width: 52%;
    padding: 28px 22px 20px;
  }
  .hero-stats { grid-template-columns: 1fr; max-width: 520px; }
}
@media (max-width: 980px) {
  .topbar { position: static; }
  .brand-button img { width: 150px; }
  .hero-banner { border-radius: 24px; }
  .hero-overlay {
    position: static;
    width: 100%;
    background: linear-gradient(180deg, rgba(4,10,29,.88), rgba(4,10,29,.78));
  }
}
@media (max-width: 640px) {
  .brand-button img { width: 128px; }
  .nav-actions button { min-height: 46px; padding: 0 16px; }
  .hero-kicker { font-size: 18px; }
  .hero-line--white, .hero-line--orange, .hero-line--green { font-size: 18px; }
  .choice-cta { width: 100%; font-size: 18px; }
  .test-choice-card h2 { font-size: 52px; }
  .name-input-wrap input { font-size: 22px; }
}

/* ===== Revision v7 overrides ===== */
.topbar {
  gap: 26px;
  align-items: center;
}
.brand-button {
  flex: 0 0 320px;
  width: 320px;
  max-width: 320px;
  justify-content: flex-start;
}
.brand-button img {
  width: 300px;
  height: auto;
  max-width: 100%;
}
.nav-actions {
  flex: 1 1 auto;
  justify-content: flex-start;
}

/* Fix hero headline colors and remove accidental gradient inheritance */
.hero-copy-main h1 .hero-line-block {
  display: block;
  color: #f3f4f6;
  background: none;
  -webkit-background-clip: border-box;
  background-clip: border-box;
  -webkit-text-fill-color: #f3f4f6;
  text-fill-color: #f3f4f6;
}
.hero-copy-main h1 .hero-line-block--accent {
  color: #ffb000;
  background: linear-gradient(180deg, #ffe45f 0%, #ffb000 52%, #ff8500 100%);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-copy-main h1 {
  font-size: clamp(70px, 6.3vw, 122px);
  line-height: .9;
}
.hero-overlay {
  width: min(46%, 780px);
}

.name-input-wrap {
  background: rgba(24, 40, 82, .9);
  border-color: rgba(255,255,255,.18);
}
.name-input-wrap input {
  min-height: 72px;
  font-size: 32px;
  font-weight: 800;
  background: rgba(7, 25, 58, .98);
  border-color: rgba(255,255,255,.22);
}

.choice-cta {
  min-height: 88px;
  padding: 12px 24px;
  border-radius: 20px;
  white-space: normal;
  line-height: 1.08;
}
.choice-cta .cta-line {
  display: block;
  font-size: 22px;
  font-weight: 950;
}
.choice-cta .cta-line--small {
  font-size: 18px;
}

@media (max-width: 1180px) {
  .brand-button {
    flex-basis: 260px;
    width: 260px;
    max-width: 260px;
  }
  .brand-button img {
    width: 245px;
  }
}
@media (max-width: 980px) {
  .topbar {
    gap: 16px;
    align-items: flex-start;
  }
  .brand-button {
    flex-basis: 220px;
    width: 220px;
    max-width: 220px;
  }
  .brand-button img {
    width: 210px;
  }
  .hero-copy-main h1 {
    font-size: clamp(58px, 11vw, 96px);
  }
  .name-input-wrap input {
    font-size: 26px;
    min-height: 64px;
  }
}
@media (max-width: 640px) {
  .brand-button {
    width: 190px;
    max-width: 190px;
    flex-basis: 190px;
  }
  .brand-button img {
    width: 182px;
  }
  .choice-cta {
    min-height: 76px;
  }
  .choice-cta .cta-line {
    font-size: 18px;
  }
  .choice-cta .cta-line--small {
    font-size: 15px;
  }
}

/* ===== Revision v8 overrides ===== */
.app-shell {
  padding-top: 2px;
}

.topbar {
  top: 0;
  z-index: 80;
  gap: 24px;
  min-height: 72px;
  padding: 10px 18px;
  margin-bottom: 4px;
  border: 0;
  border-radius: 0 0 24px 24px;
  background: rgba(2, 6, 23, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
}
.brand-button {
  flex: 0 0 430px;
  width: 430px;
  max-width: 430px;
}
.brand-button img {
  width: 405px;
  max-width: 100%;
  height: auto;
}
.nav-actions {
  flex: 1 1 auto;
  justify-content: flex-start;
}

.hero-banner {
  margin-top: 2px;
}
.hero-overlay {
  width: min(48%, 840px);
  padding: 30px 28px 22px;
}
.hero-copy-main h1 {
  font-size: clamp(62px, 5.6vw, 116px);
  line-height: .96;
  letter-spacing: -.045em;
}
.hero-copy-main h1 .hero-line-block {
  white-space: nowrap;
}

@media (max-width: 1280px) {
  .brand-button {
    flex-basis: 360px;
    width: 360px;
    max-width: 360px;
  }
  .brand-button img {
    width: 340px;
  }
  .hero-overlay {
    width: min(52%, 760px);
  }
}

@media (max-width: 980px) {
  .app-shell {
    padding-top: 0;
  }
  .topbar {
    position: sticky;
    top: 0;
    gap: 14px;
    padding: 10px 12px;
    border-radius: 0 0 18px 18px;
  }
  .brand-button {
    flex-basis: 250px;
    width: 250px;
    max-width: 250px;
  }
  .brand-button img {
    width: 232px;
  }
  .hero-banner {
    margin-top: 2px;
  }
  .hero-overlay {
    width: 100%;
    padding: 22px 18px 18px;
  }
  .hero-copy-main h1 {
    font-size: clamp(48px, 9.2vw, 84px);
    line-height: .98;
  }
}

@media (max-width: 640px) {
  .brand-button {
    flex-basis: 210px;
    width: 210px;
    max-width: 210px;
  }
  .brand-button img {
    width: 196px;
  }
  .topbar {
    padding: 8px 10px;
  }
}


/* ===== Revision v9: fixed-height top bar with max-height 90px =====
   The menu bar height is locked. The logo gets more horizontal presence
   without forcing the bar to grow vertically. Humanity survives one more CSS incident.
*/
.app-shell {
  padding-top: 0;
}

/* Top bar height is now controlled explicitly */
.topbar {
  position: sticky;
  top: 0;
  z-index: 90;
  height: 90px;
  min-height: 90px;
  max-height: 90px;
  padding: 0 18px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 28px;
  overflow: visible;
  border: 0;
  border-radius: 0 0 22px 22px;
  background: rgba(2, 6, 23, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: none;
}

/* Big logo area, fixed bar height */
.brand-button {
  flex: 0 0 560px;
  width: 560px;
  max-width: 560px;
  height: 90px;
  max-height: 90px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  background: transparent;
  border: 0;
}

/* Logo is large by width, capped by height so it cannot enlarge the bar */
.brand-button img {
  width: 535px;
  height: auto;
  max-height: 82px;
  object-fit: contain;
  display: block;
}

/* Menu items sit after the logo and never make the bar taller */
.nav-actions {
  flex: 1 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
  max-height: 90px;
  overflow: visible;
}

.nav-actions button {
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  padding: 0 22px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
}

/* Pull hero closer to the top bar */
.hero-banner {
  margin-top: 2px;
}

/* Responsive caps */
@media (max-width: 1380px) {
  .brand-button {
    flex-basis: 470px;
    width: 470px;
    max-width: 470px;
  }
  .brand-button img {
    width: 450px;
    max-height: 80px;
  }
}

@media (max-width: 1120px) {
  .topbar {
    height: auto;
    min-height: 90px;
    max-height: none;
    align-items: flex-start;
    padding: 10px 14px;
  }
  .brand-button {
    flex-basis: 360px;
    width: 360px;
    max-width: 360px;
    height: 70px;
  }
  .brand-button img {
    width: 340px;
    max-height: 68px;
  }
  .nav-actions {
    max-height: none;
  }
}

@media (max-width: 720px) {
  .brand-button {
    flex-basis: 260px;
    width: 260px;
    max-width: 260px;
    height: 62px;
  }
  .brand-button img {
    width: 245px;
    max-height: 58px;
  }
  .nav-actions button {
    height: 42px;
    min-height: 42px;
    max-height: 42px;
    padding: 0 16px;
  }
}

/* ===== Revision v10: exact fixed top menu + remove hero ghost text ===== */
.app-shell {
  padding-top: 0;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 100;
  height: 90px;
  min-height: 90px;
  max-height: 90px;
  padding: 0 68px;
  margin: 0 0 8px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 34px;
  overflow: visible;
  border: 0;
  border-radius: 0 0 20px 20px;
  background: rgba(2, 6, 23, .82);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  box-shadow: none;
}

.brand-button {
  flex: 0 0 430px;
  width: 430px;
  max-width: 430px;
  height: 90px;
  max-height: 90px;
  padding: 0;
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  overflow: visible;
  background: transparent;
  border: 0;
}

.brand-button img {
  width: 420px;
  max-width: 420px;
  height: auto;
  max-height: 78px;
  object-fit: contain;
  display: block;
}

.nav-actions {
  flex: 0 1 auto;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: nowrap;
  height: 90px;
  max-height: 90px;
  overflow: visible;
}

.nav-actions button {
  height: 46px;
  min-height: 46px;
  max-height: 46px;
  padding: 0 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 900;
  white-space: nowrap;
}

.hero-banner {
  margin-top: 8px;
}

.hero-overlay {
  width: min(48%, 840px);
  background: linear-gradient(90deg, rgba(3, 9, 27, 1) 0%, rgba(3, 9, 27, .995) 62%, rgba(3, 9, 27, .92) 80%, rgba(3, 9, 27, 0) 100%);
}

.hero-overlay::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 82%;
  background: linear-gradient(90deg, rgba(3, 9, 27, 1) 0%, rgba(3, 9, 27, 1) 78%, rgba(3, 9, 27, 0) 100%);
  z-index: 0;
  pointer-events: none;
}

.hero-copy-main,
.hero-stats {
  position: relative;
  z-index: 1;
}

.hero-copy-main h1 .hero-line-block {
  text-shadow: none;
}

@media (max-width: 1380px) {
  .topbar {
    padding-left: 42px;
    padding-right: 42px;
    gap: 24px;
  }
  .brand-button {
    flex-basis: 360px;
    width: 360px;
    max-width: 360px;
  }
  .brand-button img {
    width: 350px;
    max-width: 350px;
    max-height: 72px;
  }
  .nav-actions button {
    padding: 0 18px;
  }
}

@media (max-width: 1120px) {
  .topbar {
    height: auto;
    min-height: 90px;
    max-height: none;
    flex-wrap: wrap;
    padding: 10px 18px;
  }
  .brand-button {
    flex-basis: 320px;
    width: 320px;
    max-width: 320px;
    height: 70px;
  }
  .brand-button img {
    width: 310px;
    max-height: 68px;
  }
  .nav-actions {
    height: auto;
    max-height: none;
    flex-wrap: wrap;
  }
}

/* ===== Revision v12 overrides ===== */
.hero-stat-card--gold {
  background:
    radial-gradient(circle at 88% 18%, rgba(238, 12, 219, .34), transparent 44%),
    linear-gradient(180deg, rgba(126, 18, 112, .90), rgba(48, 13, 70, .96)) !important;
  border-color: rgba(238, 12, 219, .30) !important;
}
.hero-stat-card--gold span {
  color: #ffb7fb !important;
}
.hero-stat-card--gold small {
  color: rgba(255, 222, 253, .74) !important;
}

.name-input-wrap input {
  font-size: 44px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
  min-height: 86px !important;
}
.name-input-wrap input::placeholder {
  font-size: 44px !important;
  line-height: 1 !important;
  font-weight: 900 !important;
}

.choice-head {
  align-items: flex-start !important;
}
.choice-cta {
  width: 260px !important;
  min-width: 260px !important;
  height: 128px !important;
  min-height: 128px !important;
  max-height: 128px !important;
  padding: 16px 24px !important;
  border-radius: 24px !important;
  line-height: 1.04 !important;
}
.choice-cta .cta-line {
  font-size: 31px !important;
  line-height: 1.02 !important;
  font-weight: 950 !important;
}
.choice-cta .cta-line--small {
  font-size: 25px !important;
  line-height: 1.02 !important;
  font-weight: 950 !important;
}

@media (max-width: 1180px) {
  .choice-cta {
    width: 230px !important;
    min-width: 230px !important;
    height: 112px !important;
    min-height: 112px !important;
    max-height: 112px !important;
  }
  .choice-cta .cta-line { font-size: 27px !important; }
  .choice-cta .cta-line--small { font-size: 22px !important; }
  .name-input-wrap input,
  .name-input-wrap input::placeholder { font-size: 36px !important; }
}

@media (max-width: 640px) {
  .choice-cta {
    width: 100% !important;
    min-width: 0 !important;
    height: 96px !important;
    min-height: 96px !important;
    max-height: 96px !important;
  }
  .choice-cta .cta-line { font-size: 22px !important; }
  .choice-cta .cta-line--small { font-size: 18px !important; }
  .name-input-wrap input,
  .name-input-wrap input::placeholder { font-size: 28px !important; }
}


/* ===== Revision v13 overrides ===== */
.name-input-wrap input {
  font-size: 29px !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  color: #84e722 !important;
  caret-color: #84e722 !important;
  min-height: 70px !important;
}
.name-input-wrap input::placeholder {
  font-size: 29px !important;
  line-height: 1.05 !important;
  font-weight: 900 !important;
  color: #4f8f18 !important;
  opacity: 1 !important;
}

.choice-cta-wrap {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  min-width: 300px !important;
}
.choice-cta-pre {
  display: block !important;
  font-size: 24px !important;
  line-height: 1 !important;
  font-weight: 950 !important;
  color: #84e722 !important;
  text-align: center !important;
  text-shadow: 0 0 18px rgba(132, 231, 34, .24);
}
.choice-cta-wrap--diagnostic .choice-cta-pre {
  color: #67a0ff !important;
  text-shadow: 0 0 18px rgba(37, 100, 255, .26);
}

.choice-cta {
  width: 280px !important;
  min-width: 280px !important;
  height: 78px !important;
  min-height: 78px !important;
  max-height: 78px !important;
  padding: 0 24px !important;
  border-radius: 22px !important;
  font-size: 34px !important;
  line-height: 1.02 !important;
  font-weight: 950 !important;
  white-space: normal !important;
  text-align: center !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.choice-cta-wrap--kafrila .choice-cta {
  color: #06101f !important;
  background: linear-gradient(135deg, #f6ffe8 0%, #84e722 100%) !important;
  box-shadow: 0 18px 44px rgba(132, 231, 34, .28) !important;
}
.choice-cta-wrap--diagnostic .choice-cta {
  color: #06101f !important;
  background: linear-gradient(135deg, #eef4ff 0%, #3d7dff 100%) !important;
  box-shadow: 0 18px 44px rgba(37, 100, 255, .30) !important;
}

@media (max-width: 1180px) {
  .choice-cta-wrap {
    min-width: 250px !important;
  }
  .choice-cta {
    width: 240px !important;
    min-width: 240px !important;
    height: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    font-size: 28px !important;
  }
  .choice-cta-pre {
    font-size: 21px !important;
  }
  .name-input-wrap input,
  .name-input-wrap input::placeholder {
    font-size: 25px !important;
  }
}

@media (max-width: 640px) {
  .choice-cta-wrap {
    width: 100% !important;
    min-width: 0 !important;
    align-items: stretch !important;
  }
  .choice-cta {
    width: 100% !important;
    min-width: 0 !important;
    height: 68px !important;
    min-height: 68px !important;
    max-height: 68px !important;
    font-size: 25px !important;
  }
  .choice-cta-pre {
    font-size: 18px !important;
  }
  .name-input-wrap input,
  .name-input-wrap input::placeholder {
    font-size: 22px !important;
  }
}


/* ===== Revision v14 overrides ===== */
.results-intro .results-intro-note {
  color: #84e722 !important;
}

.results-intro p {
  color: #84e722 !important;
}

.missing-result:first-child p {
  max-width: 900px;
}

/* ===== Revision v16 mobile responsive system ===== */
.mobile-menu-toggle { display: none; }
.hero-media { display: block; width: 100%; }

@media (max-width: 768px) {
  html, body { overflow-x: hidden; }
  body {
    background:
      radial-gradient(circle at 85% 0%, rgba(238, 12, 219, .16), transparent 38%),
      radial-gradient(circle at 0% 28%, rgba(37, 100, 255, .18), transparent 34%),
      linear-gradient(180deg, #020617 0%, #050a18 55%, #070317 100%);
  }
  .app-shell {
    width: min(100% - 18px, 480px) !important;
    padding: 8px 0 28px !important;
  }

  .topbar {
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
    height: 74px !important;
    min-height: 74px !important;
    max-height: none !important;
    padding: 8px 10px !important;
    margin: 0 0 10px !important;
    border-radius: 0 0 22px 22px !important;
    background: rgba(2, 6, 23, .94) !important;
    backdrop-filter: blur(18px) !important;
    -webkit-backdrop-filter: blur(18px) !important;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) 52px !important;
    align-items: center !important;
    gap: 10px !important;
    overflow: visible !important;
  }
  .brand-button {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    height: 58px !important;
    max-height: 58px !important;
    flex: 1 1 auto !important;
    justify-content: flex-start !important;
  }
  .brand-button img {
    width: min(306px, calc(100vw - 92px)) !important;
    max-width: min(306px, calc(100vw - 92px)) !important;
    height: auto !important;
    max-height: 50px !important;
    object-fit: contain !important;
  }
  .mobile-menu-toggle {
    display: inline-flex !important;
    width: 52px !important;
    height: 52px !important;
    border-radius: 16px !important;
    border: 1px solid rgba(255,255,255,.16) !important;
    background: rgba(27,39,73,.92) !important;
    align-items: center !important;
    justify-content: center !important;
    flex-direction: column !important;
    gap: 5px !important;
    padding: 0 !important;
  }
  .mobile-menu-toggle span {
    display: block;
    width: 24px;
    height: 3px;
    border-radius: 99px;
    background: #f8fafc;
  }
  .nav-actions {
    display: none !important;
    position: absolute !important;
    top: calc(100% + 8px) !important;
    left: 0 !important;
    right: 0 !important;
    height: auto !important;
    max-height: none !important;
    padding: 16px !important;
    border-radius: 0 0 28px 28px !important;
    border: 1px solid rgba(255,255,255,.10) !important;
    background: rgba(2, 6, 23, .97) !important;
    box-shadow: 0 22px 60px rgba(0,0,0,.42) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 10px !important;
    z-index: 1001 !important;
  }
  .topbar.menu-open .nav-actions { display: grid !important; }
  .nav-actions button {
    width: 100% !important;
    height: 54px !important;
    min-height: 54px !important;
    max-height: 54px !important;
    padding: 0 14px !important;
    font-size: 16px !important;
    border-radius: 18px !important;
    justify-content: center !important;
  }
  .nav-actions button:nth-child(5) { grid-column: 1 / -1; }

  .hero-banner {
    display: flex !important;
    flex-direction: column !important;
    margin-top: 10px !important;
    border-radius: 24px !important;
    overflow: hidden !important;
  }
  .hero-overlay {
    position: relative !important;
    inset: auto !important;
    order: 1 !important;
    width: 100% !important;
    min-height: auto !important;
    padding: 22px 18px 18px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    background:
      radial-gradient(circle at 82% 20%, rgba(37,100,255,.14), transparent 34%),
      linear-gradient(180deg, rgba(3,9,27,1) 0%, rgba(4,10,29,.94) 100%) !important;
  }
  .hero-overlay::before { display: none !important; }
  .hero-media {
    order: 2 !important;
    display: block !important;
    width: 100% !important;
    background: #020617 !important;
  }
  .hero-banner-image {
    display: block !important;
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    object-fit: contain !important;
    object-position: center center !important;
  }
  .hero-copy-main {
    max-width: none !important;
    width: 100% !important;
  }
  .hero-kicker {
    font-size: 18px !important;
    margin-bottom: 8px !important;
  }
  .hero-copy-main h1 {
    font-size: clamp(48px, 14.2vw, 70px) !important;
    line-height: .92 !important;
    letter-spacing: -.045em !important;
  }
  .hero-copy-main h1 .hero-line-block {
    white-space: normal !important;
  }
  .hero-line--white {
    margin-top: 14px !important;
    font-size: 18px !important;
    line-height: 1.15 !important;
  }
  .hero-line--orange,
  .hero-line--green {
    margin-top: 4px !important;
    font-size: 19px !important;
    line-height: 1.15 !important;
  }
  .hero-stats {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-top: 18px !important;
  }
  .hero-stat-card {
    min-height: 92px !important;
    padding: 10px 8px !important;
    border-radius: 16px !important;
  }
  .hero-stat-card small {
    font-size: 8px !important;
    line-height: 1.1 !important;
    margin-bottom: 5px !important;
  }
  .hero-stat-card strong {
    font-size: clamp(28px, 10vw, 38px) !important;
    line-height: .9 !important;
  }
  .hero-stat-card span {
    font-size: 9px !important;
    line-height: 1.15 !important;
    margin-top: 5px !important;
  }

  .name-strip {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 14px !important;
    padding: 18px !important;
    border-radius: 22px !important;
  }
  .name-strip h2 {
    font-size: clamp(28px, 9.5vw, 44px) !important;
    line-height: .98 !important;
  }
  .name-input-wrap input,
  .name-input-wrap input::placeholder {
    min-height: 58px !important;
    font-size: 22px !important;
  }

  .choice-grid,
  .results-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 14px !important;
  }
  .test-choice-card {
    min-height: 0 !important;
    padding: 22px !important;
    border-radius: 24px !important;
  }
  .choice-head {
    display: grid !important;
    grid-template-columns: 54px 1fr !important;
    align-items: start !important;
    gap: 12px !important;
    margin-bottom: 18px !important;
  }
  .choice-head img {
    width: 54px !important;
    height: 54px !important;
  }
  .choice-cta-wrap {
    width: 100% !important;
    min-width: 0 !important;
    align-items: end !important;
  }
  .choice-cta-pre { font-size: 17px !important; }
  .choice-cta {
    width: min(220px, 100%) !important;
    min-width: 0 !important;
    height: 62px !important;
    min-height: 62px !important;
    max-height: 62px !important;
    font-size: 22px !important;
    border-radius: 18px !important;
  }
  .test-choice-card h2 {
    font-size: clamp(54px, 16vw, 78px) !important;
    line-height: .9 !important;
  }
  .test-choice-card p {
    font-size: 17px !important;
    line-height: 1.38 !important;
  }

  .test-layout {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-top: 12px !important;
  }
  .test-sidebar {
    position: static !important;
    max-height: none !important;
    padding: 14px !important;
    border-radius: 22px !important;
  }
  .sidebar-head h2 {
    font-size: clamp(28px, 9vw, 42px) !important;
  }
  .section-list {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    overflow: visible !important;
  }
  .section-button {
    min-height: 72px !important;
    grid-template-columns: 34px 1fr !important;
    gap: 8px !important;
    padding: 10px !important;
  }
  .section-arrow { display: none !important; }
  .section-num {
    width: 34px !important;
    height: 34px !important;
    font-size: 13px !important;
  }
  .section-copy strong {
    font-size: 12px !important;
    line-height: 1.15 !important;
  }
  .section-micro { grid-column: 1 / -1 !important; }
  .sidebar-progress-card {
    position: static !important;
    padding: 14px !important;
  }
  .switch-test-button {
    min-height: 56px !important;
    font-size: 16px !important;
  }

  .quiz-panel { border-radius: 22px !important; }
  .quiz-header {
    padding: 18px !important;
    border-radius: 22px 22px 0 0 !important;
  }
  .quiz-header h1 {
    font-size: clamp(42px, 12vw, 60px) !important;
    line-height: .92 !important;
  }
  .quiz-header p {
    font-size: 16px !important;
    line-height: 1.35 !important;
  }
  .question-list { padding: 12px !important; }
  .question-card {
    padding: 16px !important;
    border-radius: 18px !important;
  }
  .question-title-row {
    grid-template-columns: 44px 1fr !important;
    gap: 12px !important;
  }
  .question-index {
    width: 44px !important;
    height: 44px !important;
    font-size: 17px !important;
  }
  .question-card h3 {
    font-size: 20px !important;
    line-height: 1.22 !important;
  }
  .option-grid,
  .agree-grid {
    grid-template-columns: 1fr !important;
  }
  .rating-grid {
    grid-template-columns: repeat(3, minmax(0,1fr)) !important;
  }
  .answer-button {
    min-height: 58px !important;
    font-size: 16px !important;
  }
  .quiz-actions,
  .result-actions,
  .combined-actions,
  .modal-actions {
    flex-direction: column !important;
  }
  .quiz-actions button,
  .result-actions button,
  .combined-actions button,
  .modal-actions button {
    width: 100% !important;
  }

  .results-page { margin-top: 12px !important; }
  .results-intro,
  .missing-result,
  .combined-prompt,
  .result-card {
    border-radius: 22px !important;
  }
  .results-intro {
    padding: 20px !important;
  }
  .results-intro h1,
  .missing-result h2,
  .combined-prompt h2 {
    font-size: clamp(36px, 12vw, 56px) !important;
    line-height: .95 !important;
  }
  .results-intro p,
  .missing-result p,
  .combined-prompt p {
    font-size: 16px !important;
    line-height: 1.38 !important;
  }
  .result-body {
    grid-template-columns: 1fr !important;
    padding: 16px !important;
  }
  .result-graph {
    width: min(300px, 100%) !important;
    min-height: 300px !important;
    margin: 0 auto !important;
  }
  .result-copy h3 {
    font-size: clamp(32px, 10vw, 48px) !important;
  }
  .result-copy p { font-size: 16px !important; }

  .footer {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
    text-align: center !important;
    padding: 16px !important;
    border-radius: 20px !important;
  }
  .footer img {
    width: 180px !important;
    margin: 0 auto !important;
  }
  .footer p { font-size: 12px !important; }

  .modal-card {
    width: min(100% - 20px, 520px) !important;
    padding: 22px !important;
    border-radius: 24px !important;
  }
  .modal-card h2 { font-size: clamp(38px, 13vw, 64px) !important; }
  .modal-body p { font-size: 16px !important; }
}

@media (max-width: 430px) {
  .hero-copy-main h1 { font-size: clamp(43px, 13vw, 58px) !important; }
  .hero-stat-card { padding: 9px 6px !important; }
  .hero-stat-card strong { font-size: 30px !important; }
  .hero-stat-card small { font-size: 7.5px !important; }
  .hero-stat-card span { font-size: 8px !important; }
  .section-list { grid-template-columns: 1fr !important; }
}


/* ===== Revision v17: lock desktop fonts on mobile too ===== */
html,
body,
button,
input,
select,
textarea,
label,
p,
span,
small,
strong,
a,
li,
div {
  font-family: var(--font-ui) !important;
}

.hero-copy-main h1,
.hero-copy-main h1 span,
.hero-kicker,
.hero-stat-card strong,
.test-choice-card h2,
.quiz-header h1,
.sidebar-head h2,
.results-intro h1,
.missing-result h2,
.combined-prompt h2,
.result-card h2,
.result-copy h3,
.score-core strong,
.modal-card h2 {
  font-family: var(--font-display) !important;
}

@media (max-width: 768px) {
  html,
  body,
  button,
  input,
  select,
  textarea,
  label,
  p,
  span,
  small,
  strong,
  a,
  li,
  div {
    font-family: var(--font-ui) !important;
  }

  .hero-copy-main h1,
  .hero-copy-main h1 span,
  .hero-kicker,
  .hero-stat-card strong,
  .test-choice-card h2,
  .quiz-header h1,
  .sidebar-head h2,
  .results-intro h1,
  .missing-result h2,
  .combined-prompt h2,
  .result-card h2,
  .result-copy h3,
  .score-core strong,
  .modal-card h2 {
    font-family: var(--font-display) !important;
  }
}

/* ===== Revision v18: Home menu item + Kafrila palette hover states ===== */
.nav-actions button {
  transition: background .18s ease, border-color .18s ease, color .18s ease, box-shadow .18s ease, transform .18s ease !important;
}

.nav-actions button:nth-child(1) { --menu-hover: #26b0ff; --menu-hover-text: #020617; }
.nav-actions button:nth-child(2) { --menu-hover: #84e722; --menu-hover-text: #020617; }
.nav-actions button:nth-child(3) { --menu-hover: #fcd005; --menu-hover-text: #020617; }
.nav-actions button:nth-child(4) { --menu-hover: #ff8a00; --menu-hover-text: #020617; }
.nav-actions button:nth-child(5) { --menu-hover: #ff2d29; --menu-hover-text: #ffffff; }
.nav-actions button:nth-child(6) { --menu-hover: #ee0cdb; --menu-hover-text: #ffffff; }

.nav-actions button:hover,
.nav-actions button:focus-visible {
  background: var(--menu-hover) !important;
  border-color: var(--menu-hover) !important;
  color: var(--menu-hover-text) !important;
  box-shadow: 0 12px 28px color-mix(in srgb, var(--menu-hover) 36%, transparent) !important;
  transform: translateY(-1px) !important;
}

@media (max-width: 768px) {
  .nav-actions button:nth-child(5),
  .nav-actions button:nth-child(6) {
    grid-column: auto !important;
  }
}
