:root {
  --bg: #05060c;
  --bg-2: #0c0f1d;
  --panel: rgba(14, 17, 31, 0.82);
  --panel-strong: rgba(21, 25, 44, 0.92);
  --panel-soft: rgba(255, 255, 255, 0.055);
  --panel-border: rgba(255, 255, 255, 0.14);
  --panel-border-strong: rgba(217, 180, 95, 0.32);
  --text: #fbf8ff;
  --muted: #c8c1da;
  --muted-soft: #9d94b5;
  --violet: #8d62ff;
  --violet-deep: #5c38c7;
  --gold: #d9b45f;
  --gold-soft: #f1d58a;
  --danger: #ff8f9a;
  --success: #78e6b8;
  --shadow: 0 34px 90px rgba(0, 0, 0, 0.58);
  --glow-violet: 0 0 42px rgba(141, 98, 255, 0.24);
  --glow-gold: 0 0 34px rgba(217, 180, 95, 0.16);
  --radius: 22px;
  --radius-sm: 12px;
  --transition: 190ms ease;
  color-scheme: dark;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  background: var(--bg);
}

body {
  margin: 0;
  min-width: 320px;
  min-height: 100vh;
  overflow-x: hidden;
  font-family:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  background:
    radial-gradient(ellipse at 20% 0%, rgba(141, 98, 255, 0.22), transparent 42%),
    radial-gradient(ellipse at 82% 18%, rgba(217, 180, 95, 0.14), transparent 36%),
    linear-gradient(145deg, #05060c 0%, #090b16 42%, #12131f 100%);
  color: var(--text);
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.8), transparent 72%);
}

button,
input {
  font: inherit;
}

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

.app-shell {
  width: min(100%, 1040px);
  min-height: 100vh;
  margin: 0 auto;
  padding: clamp(18px, 4vw, 48px);
  display: grid;
  place-items: center;
}

.confirmation-card {
  position: relative;
  width: min(100%, 820px);
  padding: clamp(22px, 4.8vw, 44px);
  overflow: hidden;
  border: 1px solid var(--panel-border);
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.09), rgba(255, 255, 255, 0.035)),
    var(--panel);
  box-shadow: var(--shadow), var(--glow-violet), var(--glow-gold);
  backdrop-filter: blur(22px);
  animation: cardIn 560ms cubic-bezier(0.2, 0.7, 0.2, 1) both;
}

.confirmation-card::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  border-radius: inherit;
  background:
    linear-gradient(110deg, rgba(255, 255, 255, 0.18), transparent 26%),
    linear-gradient(180deg, rgba(217, 180, 95, 0.08), transparent 32%);
  opacity: 0.75;
}

.confirmation-card > * {
  position: relative;
  z-index: 1;
}

.brand-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 26px;
}

.brand-lockup {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 14px;
  min-width: 0;
}

.brand-logo {
  display: block;
  width: clamp(168px, 28vw, 236px);
  height: auto;
  max-width: 100%;
  flex: 0 1 auto;
  object-fit: contain;
  filter: drop-shadow(0 10px 22px rgba(0, 0, 0, 0.34));
}

.brand-submark {
  padding: 5px 10px;
  border: 1px solid rgba(217, 180, 95, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.045);
  color: var(--muted-soft);
  font-size: 0.82rem;
  white-space: nowrap;
}

.trust-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 7px 11px;
  border: 1px solid rgba(217, 180, 95, 0.3);
  border-radius: 999px;
  background: rgba(217, 180, 95, 0.09);
  color: var(--gold-soft);
  font-size: 0.78rem;
  font-weight: 800;
  white-space: nowrap;
}

.progress-wrap {
  margin: 0 0 32px;
}

.progress-text {
  margin-bottom: 12px;
  color: var(--muted);
  font-size: 0.92rem;
  font-weight: 700;
}

.step-dots {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.step-dot {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 34px;
  padding: 0 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.055);
  color: var(--muted-soft);
  font-size: 0.82rem;
  font-weight: 900;
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.step-dot.active,
.step-dot.complete {
  border-color: rgba(217, 180, 95, 0.42);
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(141, 98, 255, 0.12);
}

.step-dot.active {
  background: linear-gradient(135deg, rgba(141, 98, 255, 0.56), rgba(217, 180, 95, 0.38));
  transform: translateY(-1px);
}

.step-dot.complete {
  background: rgba(217, 180, 95, 0.14);
}

.progress-track {
  height: 9px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill {
  width: 33.33%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--violet), var(--gold));
  box-shadow: 0 0 24px rgba(141, 98, 255, 0.35);
  transition: width 320ms cubic-bezier(0.2, 0.8, 0.2, 1);
}

.step {
  display: none;
}

.step.active {
  display: block;
  animation: stepIn 330ms cubic-bezier(0.2, 0.75, 0.2, 1) both;
}

.step-header {
  margin-bottom: 28px;
}

.step-header.compact {
  margin-bottom: 22px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  margin: 0 0 12px;
  color: var(--gold-soft);
  font-size: 0.8rem;
  font-weight: 850;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1,
h2 {
  margin-bottom: 14px;
  color: var(--text);
  line-height: 1.04;
}

h1 {
  max-width: 11ch;
  font-size: clamp(2.25rem, 7vw, 4.5rem);
}

h2 {
  font-size: clamp(1.7rem, 5vw, 2.65rem);
}

h3 {
  margin-bottom: 10px;
  color: var(--text);
  font-size: 1.12rem;
}

p {
  color: var(--muted);
  line-height: 1.65;
}

.step-header p:last-child {
  max-width: 660px;
}

.field-group {
  margin-bottom: 20px;
  padding: 0;
  border: 0;
}

label,
legend {
  display: block;
  margin-bottom: 9px;
  color: var(--text);
  font-weight: 780;
}

input[type="text"],
input[type="email"] {
  width: 100%;
  min-height: 52px;
  padding: 13px 15px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: var(--radius-sm);
  outline: none;
  background: rgba(5, 7, 14, 0.48);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    border-color var(--transition),
    box-shadow var(--transition),
    background var(--transition),
    transform var(--transition);
}

input[type="text"]:hover,
input[type="email"]:hover {
  border-color: rgba(217, 180, 95, 0.28);
  background: rgba(255, 255, 255, 0.07);
}

input[type="text"]:focus,
input[type="email"]:focus {
  border-color: rgba(217, 180, 95, 0.7);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 0 0 4px rgba(217, 180, 95, 0.13);
}

.radio-stack {
  display: grid;
  gap: 10px;
}

.choice {
  position: relative;
  display: grid;
  grid-template-columns: 20px 1fr;
  gap: 12px;
  align-items: start;
  min-height: 52px;
  margin: 0;
  padding: 14px 15px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.052);
  color: var(--muted);
  cursor: pointer;
  transition:
    border-color var(--transition),
    background var(--transition),
    color var(--transition),
    transform var(--transition),
    box-shadow var(--transition);
}

.choice::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background: linear-gradient(110deg, rgba(255, 255, 255, 0.08), transparent 38%);
  opacity: 0;
  transition: opacity var(--transition);
}

.choice:hover,
.choice:focus-within {
  border-color: rgba(217, 180, 95, 0.52);
  background: rgba(255, 255, 255, 0.075);
  color: var(--text);
  transform: translateY(-1px);
}

.choice:has(input:checked) {
  border-color: rgba(217, 180, 95, 0.7);
  background: linear-gradient(135deg, rgba(141, 98, 255, 0.18), rgba(217, 180, 95, 0.11));
  color: var(--text);
  box-shadow: 0 0 0 3px rgba(141, 98, 255, 0.1), 0 12px 26px rgba(0, 0, 0, 0.18);
}

.choice:has(input:checked)::after {
  opacity: 1;
}

.choice.choice-pulse {
  animation: choicePulse 230ms ease both;
}

.choice input {
  position: relative;
  z-index: 1;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--violet);
}

.choice span {
  position: relative;
  z-index: 1;
  line-height: 1.4;
}

.quiz-list {
  display: grid;
  gap: 18px;
}

.question-block {
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.035);
}

.question-title {
  margin-bottom: 14px;
  color: var(--text);
  font-weight: 830;
  line-height: 1.45;
}

.error-message {
  min-height: 1.35em;
  margin: 8px 0 0;
  color: var(--danger);
  font-size: 0.92rem;
  font-weight: 700;
}

.error-message:not(:empty) {
  animation: errorIn 190ms ease both;
}

.quiz-error {
  margin-top: 16px;
}

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

.primary-button,
.secondary-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 13px 19px;
  border-radius: var(--radius-sm);
  font-weight: 850;
  text-align: center;
  text-decoration: none;
  cursor: pointer;
  transition:
    transform var(--transition),
    box-shadow var(--transition),
    border-color var(--transition),
    background var(--transition),
    opacity var(--transition);
}

.primary-button {
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    linear-gradient(135deg, rgba(217, 180, 95, 0.96), rgba(141, 98, 255, 0.96) 44%, rgba(92, 56, 199, 0.96)),
    var(--violet);
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(92, 56, 199, 0.32);
}

.secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.17);
  background: rgba(255, 255, 255, 0.065);
  color: var(--text);
}

.primary-button:hover,
.secondary-button:hover {
  transform: translateY(-2px);
}

.primary-button:hover {
  box-shadow: 0 20px 42px rgba(92, 56, 199, 0.42);
}

.secondary-button:hover {
  border-color: rgba(217, 180, 95, 0.36);
  background: rgba(255, 255, 255, 0.09);
}

.primary-button:active,
.secondary-button:active {
  transform: translateY(0);
}

.primary-button:disabled,
.primary-button.is-disabled {
  opacity: 0.48;
  filter: saturate(0.65);
  pointer-events: none;
  cursor: not-allowed;
}

.summary-panel,
.next-step {
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: var(--radius-sm);
  background: rgba(255, 255, 255, 0.052);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.summary-panel {
  padding: clamp(18px, 3vw, 24px);
}

.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin: 0 0 20px;
}

.summary-grid > div {
  min-height: 82px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-sm);
  background: rgba(5, 7, 14, 0.34);
}

dt {
  margin-bottom: 7px;
  color: var(--gold-soft);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--text);
  line-height: 1.35;
}

#summaryId {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(217, 180, 95, 0.36);
  border-radius: 9px;
  background: rgba(217, 180, 95, 0.1);
  color: var(--gold-soft);
  font-weight: 900;
  animation: idGlow 850ms ease 120ms both;
}

#summaryScore {
  color: var(--success);
  font-weight: 850;
}

.confirmation-message,
.save-note,
.small-note {
  margin-bottom: 0;
}

.save-note {
  color: var(--muted);
}

.save-note + .save-note {
  margin-top: 8px;
}

.success-mark {
  display: grid;
  width: 48px;
  height: 48px;
  margin-bottom: 14px;
  place-items: center;
  border: 1px solid rgba(120, 230, 184, 0.38);
  border-radius: 50%;
  background:
    radial-gradient(circle at 35% 30%, rgba(255, 255, 255, 0.28), transparent 30%),
    rgba(120, 230, 184, 0.13);
  box-shadow: 0 0 30px rgba(120, 230, 184, 0.16);
  animation: successPop 420ms cubic-bezier(0.2, 0.85, 0.24, 1.2) both;
}

.success-mark span {
  width: 18px;
  height: 10px;
  border-bottom: 3px solid var(--success);
  border-left: 3px solid var(--success);
  transform: rotate(-45deg) scale(0.85);
  animation: checkIn 360ms ease 160ms both;
}

.copy-status {
  min-height: 1.35em;
  margin: 12px 0 0;
  color: var(--success);
  font-weight: 800;
}

.copy-status:not(:empty) {
  animation: copyIn 300ms ease both;
}

.copy-status.copy-pulse {
  animation: copyIn 300ms ease both, copyPulse 700ms ease;
}

.next-step {
  margin-top: 22px;
  padding: clamp(18px, 3vw, 22px);
  border-color: rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.035);
  box-shadow: none;
  animation: stepIn 360ms ease both;
}

.next-step .link-button {
  margin-top: 6px;
  box-shadow: none;
}

.small-note {
  margin-top: 10px;
  color: var(--gold-soft);
  font-size: 0.9rem;
}

@keyframes cardIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes stepIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes choicePulse {
  0% {
    transform: scale(1);
  }
  50% {
    transform: scale(1.012);
  }
  100% {
    transform: scale(1);
  }
}

@keyframes successPop {
  from {
    opacity: 0;
    transform: translateY(8px) scale(0.82);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@keyframes checkIn {
  from {
    opacity: 0;
    transform: rotate(-45deg) scale(0.45);
  }
  to {
    opacity: 1;
    transform: rotate(-45deg) scale(0.85);
  }
}

@keyframes idGlow {
  0% {
    box-shadow: 0 0 0 rgba(217, 180, 95, 0);
  }
  45% {
    box-shadow: 0 0 24px rgba(217, 180, 95, 0.28);
  }
  100% {
    box-shadow: 0 0 0 rgba(217, 180, 95, 0);
  }
}

@keyframes copyIn {
  from {
    opacity: 0;
    transform: translateY(6px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes copyPulse {
  0%,
  100% {
    text-shadow: 0 0 0 rgba(120, 230, 184, 0);
  }
  45% {
    text-shadow: 0 0 16px rgba(120, 230, 184, 0.42);
  }
}

@keyframes errorIn {
  from {
    opacity: 0;
    transform: translateY(-3px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 640px) {
  .app-shell {
    padding: 16px 10px;
    align-items: start;
  }

  .confirmation-card {
    padding: 20px 14px;
    border-radius: 18px;
  }

  .brand-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .brand-lockup {
    width: 100%;
    align-items: flex-start;
    flex-direction: column;
  }

  .brand-logo {
    width: min(220px, 82vw);
  }

  .brand-submark {
    white-space: normal;
  }

  .trust-badge {
    width: 100%;
    justify-content: center;
    white-space: normal;
  }

  h1 {
    max-width: none;
    font-size: clamp(2rem, 13vw, 3.2rem);
  }

  .step-dots {
    gap: 7px;
  }

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

  .question-block {
    padding: 14px;
  }

  .button-row,
  .primary-button,
  .secondary-button,
  .link-button {
    width: 100%;
  }
}

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

@media print {
  body {
    background: #ffffff;
    color: #111111;
  }

  body::before {
    display: none;
  }

  .app-shell {
    min-height: auto;
    padding: 0;
  }

  .confirmation-card {
    box-shadow: none;
    border: 0;
    background: #ffffff;
    color: #111111;
  }

  .confirmation-card::before,
  .brand-header,
  .progress-wrap,
  .action-buttons,
  .next-step,
  .copy-status {
    display: none !important;
  }

  p,
  dd,
  .choice {
    color: #111111;
  }
}
