:root {
  --black: #050505;
  --panel: #0d0d10;
  --panel-2: #141419;
  --white: #ffffff;
  --muted: #aaaab5;
  --muted-2: #777782;
  --pink: #ff1fa8;
  --pink-soft: #ff67c4;
  --cyan: #24d8ff;
  --green: #65f2a5;
  --line: rgba(255, 255, 255, 0.11);
  --card-radius: 22px;
  --shadow: 0 30px 90px rgba(0, 0, 0, 0.48);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--black);
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--white);
  background:
    radial-gradient(circle at 12% 18%, rgba(36, 216, 255, 0.07), transparent 28rem),
    radial-gradient(circle at 70% 85%, rgba(255, 31, 168, 0.08), transparent 32rem),
    var(--black);
  font-family: "Assistant", Arial, sans-serif;
  font-size: 17px;
  line-height: 1.5;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible {
  outline: 3px solid rgba(36, 216, 255, 0.85);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  top: 8px;
  right: 8px;
  z-index: 100;
  padding: 10px 16px;
  color: #050505;
  background: white;
  border-radius: 8px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: none;
}

.topbar {
  position: relative;
  z-index: 10;
  height: 82px;
  padding: 12px clamp(20px, 4vw, 64px);
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
  background: rgba(5, 5, 5, 0.82);
  backdrop-filter: blur(16px);
}

.brand {
  display: inline-flex;
  height: 50px;
  align-items: center;
}

.brand img {
  display: block;
  width: auto;
  height: 50px;
  object-fit: contain;
}

.topbar-note {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d7d7dd;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.status-dot,
.online-dot {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  display: inline-block;
  border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 12px rgba(101, 242, 165, 0.88);
}

.page-shell {
  width: min(1440px, 100%);
  min-height: calc(100vh - 82px - 58px);
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 56%) minmax(380px, 44%);
}

.quiz-stage {
  padding: clamp(32px, 6vh, 72px) clamp(24px, 6vw, 92px);
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.quiz-app {
  width: min(680px, 100%);
}

.visual-panel {
  position: relative;
  min-height: 680px;
  overflow: hidden;
  border-right: 1px solid var(--line);
  background: #09090b;
}

.visual-image,
.visual-overlay {
  position: absolute;
  inset: 0;
}

.visual-image {
  background-image: url("../public/assets/brand/hermes-hero.webp");
  background-size: cover;
  background-position: 54% center;
  opacity: 0.55;
  filter: saturate(0.72) contrast(1.12);
  transform: scale(1.02);
}

.visual-overlay {
  background:
    linear-gradient(90deg, rgba(5, 5, 5, 0.22), rgba(5, 5, 5, 0.78) 80%),
    linear-gradient(0deg, #050505 0%, transparent 36%, rgba(5, 5, 5, 0.28) 100%);
}

.visual-panel::before {
  content: "";
  position: absolute;
  z-index: 2;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(to bottom, black, transparent 82%);
}

.visual-content {
  position: relative;
  z-index: 3;
  min-height: 100%;
  padding: clamp(48px, 7vw, 96px) clamp(32px, 5vw, 72px) 42px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}

.visual-kicker {
  margin: 0 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--pink-soft);
  direction: ltr;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.visual-kicker span {
  width: 36px;
  height: 1px;
  background: var(--pink);
  box-shadow: 0 0 8px var(--pink);
}

.visual-content h2 {
  max-width: 510px;
  margin: 0 0 32px;
  font-size: clamp(42px, 4.5vw, 72px);
  line-height: 0.98;
  letter-spacing: -0.045em;
}

.visual-content h2 em {
  color: var(--pink-soft);
  font-style: normal;
  text-shadow: 0 0 28px rgba(255, 31, 168, 0.35);
}

.agent-preview {
  width: min(470px, 100%);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  background: rgba(9, 9, 12, 0.77);
  box-shadow: 0 18px 45px rgba(0, 0, 0, 0.38);
  backdrop-filter: blur(14px);
}

.agent-preview-top {
  display: grid;
  grid-template-columns: 46px 1fr 8px;
  gap: 12px;
  align-items: center;
}

.agent-avatar {
  width: 46px;
  height: 46px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 31, 168, 0.6);
  border-radius: 12px;
  color: white;
  background: linear-gradient(145deg, rgba(255, 31, 168, 0.34), rgba(36, 216, 255, 0.12));
  font-weight: 800;
  box-shadow: inset 0 0 20px rgba(255, 31, 168, 0.1), 0 0 18px rgba(255, 31, 168, 0.12);
}

.agent-preview-top span {
  display: block;
  color: var(--muted-2);
  font-size: 12px;
}

.agent-preview-top strong {
  display: block;
  margin-top: 2px;
  font-size: 16px;
}

.preview-flow {
  margin-top: 17px;
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-top: 1px solid var(--line);
  color: #c8c8d0;
  font-size: 12px;
}

.preview-flow b {
  color: var(--pink-soft);
  font-weight: 400;
}

.privacy-note {
  width: min(470px, 100%);
  margin-top: 26px;
  display: flex;
  gap: 10px;
  align-items: center;
  color: #a9a9b3;
  font-size: 13px;
}

.privacy-note svg {
  width: 22px;
  flex: 0 0 auto;
  fill: var(--cyan);
}

.privacy-note strong {
  color: #dedee4;
}

.screen {
  animation: screen-in 0.42s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes screen-in {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--pink-soft);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.12em;
}

.hero-screen {
  max-width: 640px;
  padding-top: clamp(10px, 4vh, 38px);
}

.hero-screen h1 {
  margin: 0;
  font-size: clamp(44px, 5.2vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.055em;
}

.hero-screen h1 span {
  display: block;
  margin-top: 7px;
  color: transparent;
  background: linear-gradient(90deg, var(--pink-soft), var(--pink), #ff8bd0);
  background-clip: text;
  -webkit-background-clip: text;
}

.hero-copy {
  max-width: 590px;
  margin: 24px 0 0;
  color: #c0c0c9;
  font-size: clamp(18px, 1.7vw, 22px);
  line-height: 1.55;
}

.promise-row {
  margin: 30px 0;
  padding: 18px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  border-block: 1px solid var(--line);
}

.promise-row div {
  min-width: 0;
  padding: 0 15px;
  border-left: 1px solid var(--line);
}

.promise-row div:first-child {
  padding-right: 0;
}

.promise-row div:last-child {
  padding-left: 0;
  border-left: 0;
}

.promise-row strong,
.promise-row span {
  display: block;
}

.promise-row strong {
  font-size: 18px;
}

.promise-row span {
  margin-top: 2px;
  color: var(--muted-2);
  font-size: 12px;
}

.primary-button,
.secondary-button,
.answer-card,
.text-button {
  border: 0;
  cursor: pointer;
}

.primary-button,
.secondary-button {
  min-height: 58px;
  padding: 14px 24px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  border-radius: 10px;
  text-decoration: none;
  font-size: 18px;
  font-weight: 800;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.primary-button {
  color: white;
  background: linear-gradient(135deg, #ff198f, #ff3fbb);
  box-shadow: 0 0 20px rgba(255, 31, 168, 0.48), 0 14px 36px rgba(255, 31, 168, 0.16);
}

.primary-button:hover {
  transform: translateY(-2px);
  box-shadow: 0 0 28px rgba(255, 31, 168, 0.64), 0 16px 42px rgba(255, 31, 168, 0.24);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  background: rgba(255, 255, 255, 0.04);
}

.secondary-button:hover {
  border-color: rgba(255, 31, 168, 0.72);
  background: rgba(255, 31, 168, 0.07);
}

.button-arrow {
  display: inline-block;
  font-size: 21px;
  transition: transform 0.2s ease;
}

.primary-button:hover .button-arrow {
  transform: translateX(-3px);
}

.hero-footnote {
  margin: 15px 0 0;
  color: var(--muted-2);
  font-size: 13px;
}

.progress-wrap {
  margin-bottom: 34px;
}

.progress-meta {
  margin-bottom: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  color: var(--muted-2);
  font-size: 13px;
  font-weight: 700;
}

.progress-track {
  height: 4px;
  overflow: hidden;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.09);
}

.progress-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--pink), var(--cyan));
  box-shadow: 0 0 13px rgba(255, 31, 168, 0.58);
  transition: width 0.4s ease;
}

.question-screen h1,
.lead-screen h1,
.insight-screen h1 {
  max-width: 620px;
  margin: 0;
  font-size: clamp(31px, 3.7vw, 48px);
  line-height: 1.08;
  letter-spacing: -0.035em;
}

.question-helper,
.lead-helper,
.insight-copy {
  max-width: 570px;
  margin: 13px 0 0;
  color: var(--muted);
  font-size: 17px;
}

.answer-list {
  margin-top: 28px;
  display: grid;
  gap: 11px;
}

.answer-card {
  position: relative;
  min-height: 68px;
  width: 100%;
  padding: 13px 16px 13px 48px;
  display: grid;
  grid-template-columns: 42px 1fr;
  gap: 13px;
  align-items: center;
  text-align: right;
  border: 1px solid var(--line);
  border-radius: 12px;
  color: white;
  background: rgba(255, 255, 255, 0.025);
  transition: border-color 0.18s ease, background 0.18s ease, transform 0.18s ease;
}

.answer-card::after {
  content: "←";
  position: absolute;
  left: 17px;
  top: 50%;
  color: var(--muted-2);
  font-size: 18px;
  transform: translateY(-50%);
  transition: color 0.18s ease, transform 0.18s ease;
}

.answer-card:hover,
.answer-card.selected {
  border-color: rgba(255, 31, 168, 0.72);
  background: rgba(255, 31, 168, 0.075);
  transform: translateX(-3px);
}

.answer-card:hover::after,
.answer-card.selected::after {
  color: var(--pink-soft);
  transform: translate(-3px, -50%);
}

.answer-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: #e9e9ed;
  background: rgba(255, 255, 255, 0.04);
  font-size: 17px;
  font-weight: 800;
}

.answer-copy strong,
.answer-copy span {
  display: block;
}

.answer-copy strong {
  font-size: 16px;
  line-height: 1.22;
}

.answer-copy span {
  margin-top: 3px;
  color: var(--muted-2);
  font-size: 13px;
  line-height: 1.25;
}

.screen-footer {
  min-height: 32px;
  margin-top: 22px;
}

.text-button {
  padding: 4px 0;
  color: var(--muted-2);
  background: transparent;
  font-size: 14px;
}

.text-button:hover {
  color: white;
}

.insight-card {
  margin: 26px 0;
  padding: 24px;
  border: 1px solid rgba(36, 216, 255, 0.25);
  border-radius: 16px;
  background:
    linear-gradient(135deg, rgba(36, 216, 255, 0.08), transparent 52%),
    rgba(255, 255, 255, 0.025);
}

.insight-signal {
  display: flex;
  gap: 16px;
  align-items: center;
}

.signal-ring {
  position: relative;
  width: 56px;
  height: 56px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid var(--cyan);
  border-radius: 50%;
  color: var(--cyan);
  font-size: 24px;
  box-shadow: 0 0 24px rgba(36, 216, 255, 0.17);
}

.signal-ring::after {
  content: "";
  position: absolute;
  inset: 6px;
  border: 1px solid rgba(36, 216, 255, 0.24);
  border-radius: 50%;
}

.insight-signal span,
.insight-signal strong {
  display: block;
}

.insight-signal span {
  color: var(--muted-2);
  font-size: 13px;
}

.insight-signal strong {
  margin-top: 2px;
  color: white;
  font-size: 19px;
}

.insight-bullets {
  margin: 20px 0 0;
  padding: 18px 0 0;
  display: grid;
  gap: 9px;
  border-top: 1px solid var(--line);
}

.insight-bullets div {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  color: #c5c5ce;
  font-size: 14px;
}

.insight-bullets b {
  color: var(--green);
}

.lead-card {
  margin-top: 26px;
  padding: clamp(22px, 4vw, 30px);
  border: 1px solid var(--line);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.025);
  box-shadow: var(--shadow);
}

.result-preview-line {
  margin-bottom: 22px;
  padding-bottom: 18px;
  display: flex;
  gap: 12px;
  align-items: center;
  border-bottom: 1px solid var(--line);
}

.mini-agent-icon {
  width: 46px;
  height: 46px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 12px;
  color: white;
  background: linear-gradient(135deg, var(--pink), #a21aef);
  box-shadow: 0 0 18px rgba(255, 31, 168, 0.28);
  font-weight: 800;
}

.result-preview-line span,
.result-preview-line strong {
  display: block;
}

.result-preview-line span {
  color: var(--muted-2);
  font-size: 12px;
}

.result-preview-line strong {
  margin-top: 2px;
  font-size: 17px;
}

.field-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.form-field {
  display: grid;
  gap: 7px;
}

.form-field.full {
  grid-column: 1 / -1;
}

.form-field label {
  color: #d4d4da;
  font-size: 14px;
  font-weight: 700;
}

.optional {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 500;
}

.form-field input {
  width: 100%;
  min-height: 52px;
  padding: 11px 13px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 9px;
  color: white;
  background: #0a0a0d;
  direction: rtl;
}

.form-field input::placeholder {
  color: #5e5e68;
}

.form-field input:hover {
  border-color: rgba(255, 255, 255, 0.26);
}

.consent-row {
  margin: 16px 0 18px;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--muted-2);
  font-size: 12px;
  line-height: 1.35;
}

.consent-row input {
  width: 17px;
  height: 17px;
  margin: 1px 0 0;
  flex: 0 0 auto;
  accent-color: var(--pink);
}

.consent-row a {
  color: #cfcfd5;
}

.lead-card .primary-button {
  width: 100%;
}

.form-error {
  min-height: 20px;
  margin: 10px 0 0;
  color: #ff8a9f;
  font-size: 13px;
  font-weight: 600;
}

.loading-screen {
  min-height: 460px;
  display: grid;
  place-items: center;
  text-align: center;
}

.loader-orbit {
  position: relative;
  width: 92px;
  height: 92px;
  margin: 0 auto 25px;
  border: 1px solid rgba(255, 31, 168, 0.2);
  border-radius: 50%;
}

.loader-orbit::before,
.loader-orbit::after {
  content: "";
  position: absolute;
  border-radius: 50%;
}

.loader-orbit::before {
  inset: 13px;
  border: 1px solid rgba(36, 216, 255, 0.28);
}

.loader-orbit::after {
  width: 13px;
  height: 13px;
  top: -6px;
  left: calc(50% - 6px);
  background: var(--pink);
  box-shadow: 0 0 18px var(--pink);
  transform-origin: 6px 52px;
  animation: orbit 1s linear infinite;
}

@keyframes orbit {
  to { transform: rotate(360deg); }
}

.loading-screen h1 {
  margin: 0;
  font-size: 32px;
}

.loading-step {
  min-height: 25px;
  margin-top: 8px;
  color: var(--muted);
}

.redirect-link {
  display: inline-block;
  margin-top: 14px;
  color: var(--pink-soft);
  font-size: 14px;
  font-weight: 700;
}

body.result-mode .page-shell {
  display: block;
}

body.result-mode .visual-panel {
  display: none;
}

body.result-mode .quiz-stage {
  width: min(1120px, 100%);
  margin: 0 auto;
  padding-block: 46px 72px;
}

body.result-mode .quiz-app {
  width: 100%;
}

.result-header {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 34px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}

.result-header h1 {
  margin: 0;
  font-size: clamp(42px, 6vw, 76px);
  line-height: 0.98;
  letter-spacing: -0.05em;
}

.result-header h1 span {
  display: block;
  margin-top: 8px;
  color: var(--pink-soft);
}

.result-code {
  padding: 10px 13px;
  border: 1px solid rgba(36, 216, 255, 0.28);
  border-radius: 8px;
  color: var(--cyan);
  background: rgba(36, 216, 255, 0.05);
  direction: ltr;
  font-family: Consolas, monospace;
  font-size: 12px;
  white-space: nowrap;
}

.result-lead {
  max-width: 760px;
  margin: 26px 0 0;
  color: #c5c5cc;
  font-size: 20px;
}

.metric-grid {
  margin: 30px 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}

.metric-card {
  min-height: 120px;
  padding: 19px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.025);
}

.metric-card span,
.metric-card strong,
.metric-card small {
  display: block;
}

.metric-card span {
  color: var(--muted-2);
  font-size: 12px;
  font-weight: 700;
}

.metric-card strong {
  margin-top: 7px;
  color: white;
  font-size: 28px;
  line-height: 1;
}

.metric-card:first-child strong {
  color: var(--green);
}

.metric-card small {
  margin-top: 7px;
  color: var(--muted-2);
  font-size: 11px;
}

.result-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: 14px;
}

.result-card {
  padding: clamp(22px, 3vw, 30px);
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--panel);
}

.result-card.highlight {
  border-color: rgba(255, 31, 168, 0.35);
  background:
    linear-gradient(145deg, rgba(255, 31, 168, 0.075), transparent 60%),
    var(--panel);
}

.result-card.wide {
  grid-column: 1 / -1;
}

.card-label {
  margin: 0 0 8px;
  color: var(--pink-soft);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.result-card h2 {
  margin: 0 0 17px;
  font-size: 25px;
  line-height: 1.15;
}

.task-box {
  padding: 17px;
  border-right: 3px solid var(--pink);
  border-radius: 8px 0 0 8px;
  color: #e4e4e9;
  background: rgba(255, 255, 255, 0.035);
  font-size: 16px;
}

.clean-list,
.workflow-list,
.tool-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.clean-list {
  display: grid;
  gap: 11px;
}

.clean-list li {
  display: flex;
  gap: 10px;
  color: #c9c9d0;
}

.clean-list li::before {
  content: "✓";
  color: var(--green);
  font-weight: 800;
}

.workflow-list {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  counter-reset: workflow;
}

.workflow-list li {
  position: relative;
  min-height: 118px;
  padding: 41px 13px 13px;
  border: 1px solid var(--line);
  border-radius: 11px;
  color: #c5c5cd;
  background: rgba(255, 255, 255, 0.025);
  font-size: 13px;
  counter-increment: workflow;
}

.workflow-list li::before {
  content: "0" counter(workflow);
  position: absolute;
  top: 12px;
  right: 13px;
  color: var(--pink-soft);
  font-family: Consolas, monospace;
  font-size: 12px;
}

.tool-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.tool-list li {
  padding: 8px 12px;
  border: 1px solid rgba(36, 216, 255, 0.2);
  border-radius: 100px;
  color: #d5d5dc;
  background: rgba(36, 216, 255, 0.045);
  font-size: 13px;
}

.boundary-box {
  margin-top: 18px;
  padding: 14px 16px;
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 10px;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.2);
  font-size: 14px;
}

.boundary-box strong {
  color: white;
}

.course-bridge {
  position: relative;
  margin-top: 30px;
  padding: clamp(28px, 5vw, 50px);
  overflow: hidden;
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 32px;
  align-items: center;
  border: 1px solid rgba(255, 31, 168, 0.4);
  border-radius: 18px;
  background:
    radial-gradient(circle at 12% 100%, rgba(36, 216, 255, 0.11), transparent 18rem),
    linear-gradient(135deg, rgba(255, 31, 168, 0.13), rgba(10, 10, 13, 0.92) 58%);
  box-shadow: 0 20px 70px rgba(255, 31, 168, 0.1);
}

.course-bridge::after {
  content: "H";
  position: absolute;
  left: 4%;
  top: -65%;
  color: rgba(255, 255, 255, 0.025);
  font-size: 360px;
  font-weight: 800;
  line-height: 1;
  pointer-events: none;
}

.course-bridge-copy {
  position: relative;
  z-index: 2;
}

.course-bridge h2 {
  max-width: 680px;
  margin: 0;
  font-size: clamp(28px, 3.5vw, 42px);
  line-height: 1.08;
}

.course-bridge p:not(.card-label) {
  max-width: 700px;
  margin: 14px 0 0;
  color: #bcbcc5;
}

.course-bridge .primary-button {
  position: relative;
  z-index: 2;
  min-width: 260px;
}

.result-actions {
  margin-top: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.result-actions .secondary-button {
  min-height: 48px;
  padding: 10px 17px;
  font-size: 14px;
}

.capture-status {
  margin: 15px 0 0;
  color: var(--muted-2);
  font-size: 12px;
}

.site-footer {
  min-height: 58px;
  padding: 15px clamp(20px, 4vw, 64px);
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 20px;
  border-top: 1px solid var(--line);
  color: #696974;
  background: #050505;
  font-size: 12px;
}

.site-footer nav {
  grid-column: 2;
  justify-self: center;
  display: flex;
  gap: 18px;
}

.site-footer a {
  color: inherit;
}

.site-footer a:hover {
  color: white;
}

.noscript-message {
  position: fixed;
  z-index: 99;
  inset: 16px;
  padding: 20px;
  color: #050505;
  background: white;
  border-radius: 10px;
  text-align: center;
}

@media (max-width: 1020px) {
  .page-shell {
    grid-template-columns: minmax(0, 1fr) 350px;
  }

  .quiz-stage {
    padding-inline: 40px;
  }

  .visual-content {
    padding-inline: 30px;
  }

  .visual-content h2 {
    font-size: 48px;
  }
}

@media (max-width: 820px) {
  .topbar {
    height: 68px;
    padding-inline: 18px;
  }

  .brand,
  .brand img {
    height: 43px;
  }

  .page-shell {
    min-height: calc(100vh - 68px);
    display: block;
  }

  .quiz-stage {
    min-height: calc(100vh - 68px - 58px);
    padding: 28px 20px 45px;
  }

  .visual-panel {
    display: none;
  }

  .hero-screen {
    padding-top: 12px;
  }

  .hero-screen h1 {
    font-size: clamp(43px, 12vw, 66px);
  }

  .result-header {
    grid-template-columns: 1fr;
    gap: 18px;
  }

  .result-code {
    width: fit-content;
  }

  .result-grid {
    grid-template-columns: 1fr;
  }

  .result-card.wide {
    grid-column: auto;
  }

  .workflow-list {
    grid-template-columns: 1fr 1fr;
  }

  .workflow-list li:last-child {
    grid-column: 1 / -1;
    min-height: 90px;
  }

  .course-bridge {
    grid-template-columns: 1fr;
  }

  .course-bridge .primary-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  body {
    font-size: 16px;
  }

  .topbar-note {
    font-size: 12px;
  }

  .promise-row {
    margin-block: 24px;
  }

  .promise-row strong {
    font-size: 16px;
  }

  .promise-row div {
    padding-inline: 9px;
  }

  .hero-screen .primary-button {
    width: 100%;
  }

  .question-screen h1,
  .lead-screen h1,
  .insight-screen h1 {
    font-size: 31px;
  }

  .progress-wrap {
    margin-bottom: 27px;
  }

  .answer-card {
    padding-left: 41px;
  }

  .answer-copy span {
    display: none;
  }

  .field-grid,
  .metric-grid {
    grid-template-columns: 1fr;
  }

  .metric-card {
    min-height: 96px;
  }

  .site-footer {
    display: flex;
    flex-direction: column;
    justify-content: center;
    text-align: center;
  }

  .workflow-list {
    grid-template-columns: 1fr;
  }

  .workflow-list li,
  .workflow-list li:last-child {
    min-height: 84px;
    grid-column: auto;
  }

  .result-lead {
    font-size: 18px;
  }

  .course-bridge {
    padding: 26px 20px;
  }
}

@media print {
  @page { margin: 14mm; }

  body {
    color: #111;
    background: white;
  }

  .topbar,
  .site-footer,
  .course-bridge,
  .result-actions,
  .capture-status,
  .visual-panel {
    display: none !important;
  }

  body.result-mode .quiz-stage {
    padding: 0;
  }

  .result-header,
  .result-card,
  .metric-card {
    color: #111;
    border-color: #ddd;
    background: white;
    break-inside: avoid;
    box-shadow: none;
  }

  .result-header h1,
  .metric-card strong,
  .result-card h2,
  .task-box,
  .clean-list li,
  .workflow-list li {
    color: #111;
  }

  .result-lead,
  .metric-card span,
  .metric-card small,
  .boundary-box {
    color: #444;
  }

  .tool-list li,
  .workflow-list li,
  .task-box,
  .boundary-box {
    border-color: #ddd;
    background: #fafafa;
  }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
