/* ==========================================================================
   CUSTOM AGENTS QUIZ — STYLES
   ==========================================================================
   Palette: white + black + neutral grays + Zendesk chartreuse for badges.
   --zd-chartreuse  #D4F064  Zendesk signature pill-badge accent
   --accent         #0A0A0A  Near-black (buttons, borders, selections)
   ========================================================================== */

/* --------------------------------------------------------------------------
   RESET & BASE
   -------------------------------------------------------------------------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* All color accent roles now map to near-black */
  --green-deep:    #0A0A0A;
  --green-mid:     #222222;
  --green-bright:  #0A0A0A;
  --green-light:   #F3F3F3;
  --offwhite:      #FFFFFF;
  --warm-gray:     #E5E5E5;
  --black:         #0A0A0A;
  --gray-dark:     #444444;
  --gray-mid:      #888888;
  --gray-light:    #C8C8C8;
  --white:         #FFFFFF;
  --danger:        #C0392B;

  /* Orb gradient colours — used for card glow effects */
  --orb-purple: rgba(185, 155, 255, 1);
  --orb-blue:   rgba(115, 175, 252, 1);
  --orb-cyan:   rgba(90,  210, 205, 1);

  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif;

  --radius-sm:  6px;
  --radius-md:  10px;
  --radius-lg:  18px;
  --radius-pill: 100px;

  --shadow-card: 0 1px 3px rgba(0,0,0,0.06), 0 0 0 1px rgba(0,0,0,0.06);
  --shadow-card-hover: 0 4px 16px rgba(0,0,0,0.10), 0 0 0 1.5px #0A0A0A;

  --transition-fast: 150ms ease;
  --transition-med:  250ms ease;
  --transition-slow: 400ms ease;

  --max-width: 680px;
}

html {
  font-size: 16px;
  scroll-behavior: smooth;
}

body {
  font-family: var(--font-sans);
  background-color: var(--offwhite);
  color: var(--black);
  min-height: 100vh;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Focus styles — keyboard accessibility */
:focus-visible {
  outline: 2px solid var(--black);
  outline-offset: 3px;
  border-radius: var(--radius-sm);
}

/* --------------------------------------------------------------------------
   APP SHELL
   -------------------------------------------------------------------------- */
.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* --------------------------------------------------------------------------
   SCREENS — transitions
   -------------------------------------------------------------------------- */
.screen {
  display: none;
  min-height: 100vh;
  flex-direction: column;
  animation: fadeSlideIn var(--transition-med) ease both;
}

.screen.active,
.screen:not([hidden]) {
  display: flex;
}

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

.screen__inner {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 32px 24px 48px;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.screen__inner--narrow {
  max-width: 520px;
}

/* --------------------------------------------------------------------------
   BRAND / HEADER
   -------------------------------------------------------------------------- */
.brand-header {
  padding: 0 0 40px;
}

.brand-wordmark {
  font-size: 1.25rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--black);
  text-decoration: none;
}

.brand-wordmark--small {
  font-size: 1rem;
}

.brand-logo {
  height: 28px;
  width: auto;
  display: block;
  filter: brightness(0);
}

.brand-logo--small {
  height: 22px;
}

.quiz-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding-bottom: 32px;
  flex-wrap: wrap;
}

.quiz-header--result {
  padding-bottom: 24px;
}

/* --------------------------------------------------------------------------
   PROGRESS BAR
   -------------------------------------------------------------------------- */
.progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
  max-width: 320px;
  margin-left: auto;
}

.progress-track {
  flex: 1;
  height: 6px;
  background: var(--warm-gray);
  border-radius: var(--radius-pill);
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: var(--green-bright);
  border-radius: var(--radius-pill);
  transition: width var(--transition-med);
}

.progress-label {
  font-size: 0.8125rem;
  font-weight: 500;
  color: var(--gray-mid);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   INTRO SCREEN
   -------------------------------------------------------------------------- */
.screen--intro {
  background: var(--white);
  color: var(--black);
}

.screen--intro .screen__inner {
  justify-content: center;
  min-height: 100vh;
  padding-top: 40px;
  padding-bottom: 56px;
}

.screen--intro .brand-header {
  padding-bottom: 40px;
}

.screen--intro .btn--primary {
  align-self: center;
}

.screen--intro .brand-wordmark {
  color: var(--black);
}

.intro-content {
  max-width: 540px;
  padding-top: 40px;
  text-align: center;
  align-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.intro-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 14px;
}

.intro-title {
  font-size: clamp(1.875rem, 5vw, 2.75rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -0.03em;
  color: var(--black);
  margin-bottom: 18px;
}

.intro-subhead {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-dark);
  margin-bottom: 10px;
  max-width: 460px;
}

.intro-body {
  font-size: 0.9375rem;
  color: var(--gray-mid);
  margin-bottom: 36px;
}

.intro-meta {
  margin-top: 16px;
  font-size: 0.8125rem;
  color: var(--gray-light);
}

/* --------------------------------------------------------------------------
   ORB SCENE — Multi-blob floating animation
   Pure CSS. Several soft color blobs drift independently inside a soft
   circular mask, creating the fluid, OpenAI-voice-style organic effect.
   -------------------------------------------------------------------------- */
.intro-orb-scene {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  position: relative;
  height: 280px;
}

/* Large atmospheric bloom — extends beyond the orb boundary */
.orb-bloom-outer {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 420px;
  height: 420px;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  pointer-events: none;
  background: radial-gradient(circle,
    rgba(160, 130, 255, 0.10) 0%,
    rgba(100, 165, 250, 0.07) 30%,
    rgba(100, 210, 195, 0.05) 55%,
    rgba(175, 235, 110, 0.04) 70%,
    transparent 82%
  );
  filter: blur(28px);
  animation: outerBloomBreath 9s ease-in-out infinite;
}

/* Circular container — soft-edge mask: circle is clearly defined, edges just feather */
.orb-container {
  position: relative;
  z-index: 1;
  width: 240px;
  height: 240px;
  flex-shrink: 0;
  /* Base fill so no white gaps show between blobs */
  background: rgba(145, 172, 250, 0.25);
  border-radius: 50%;
  /* Solid circle until ~68%, then a narrow soft fade — keeps the circle shape */
  -webkit-mask-image: radial-gradient(circle at 50% 50%,
    black 62%, rgba(0,0,0,0.9) 70%, rgba(0,0,0,0.35) 80%, transparent 88%
  );
  mask-image: radial-gradient(circle at 50% 50%,
    black 62%, rgba(0,0,0,0.9) 70%, rgba(0,0,0,0.35) 80%, transparent 88%
  );
}

/* Shared blob base */
.orb-blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(22px);
}

/* Violet/purple — upper right */
.orb-blob--violet {
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(185, 155, 255, 0.95), transparent 65%);
  top: -30px;
  right: -25px;
  animation: blob1 5s ease-in-out infinite;
}

/* Blue — center */
.orb-blob--blue {
  width: 220px;
  height: 220px;
  background: radial-gradient(circle, rgba(115, 175, 252, 0.9), transparent 65%);
  top: 10px;
  left: -5px;
  animation: blob2 6.5s ease-in-out infinite;
}

/* Cyan/teal — lower left */
.orb-blob--cyan {
  width: 185px;
  height: 185px;
  background: radial-gradient(circle, rgba(90, 210, 205, 0.85), transparent 65%);
  bottom: 5px;
  left: -10px;
  animation: blob3 8s ease-in-out infinite;
}

/* Lime/yellow-green — bottom */
.orb-blob--lime {
  width: 165px;
  height: 165px;
  background: radial-gradient(circle, rgba(185, 238, 130, 0.8), transparent 65%);
  bottom: -20px;
  left: 30px;
  animation: blob4 4.5s ease-in-out infinite;
}

/* Independent blob drift paths — different speeds so they never sync */
@keyframes blob1 {
  0%, 100% { transform: translate(0, 0)     scale(1); }
  25%       { transform: translate(-14px, 9px)  scale(1.07); }
  50%       { transform: translate(-6px, 17px)  scale(0.94); }
  75%       { transform: translate(9px, 11px)   scale(1.04); }
}
@keyframes blob2 {
  0%, 100% { transform: translate(0, 0)     scale(1); }
  30%       { transform: translate(11px, -9px)  scale(1.06); }
  60%       { transform: translate(16px, 7px)   scale(0.96); }
  80%       { transform: translate(-4px, -11px) scale(1.03); }
}
@keyframes blob3 {
  0%, 100% { transform: translate(0, 0)     scale(1); }
  20%       { transform: translate(18px, -7px)  scale(1.09); }
  55%       { transform: translate(4px, -14px)  scale(0.93); }
  80%       { transform: translate(-9px, 4px)   scale(1.04); }
}
@keyframes blob4 {
  0%, 100% { transform: translate(0, 0)     scale(1); }
  35%       { transform: translate(13px, -11px) scale(1.08); }
  65%       { transform: translate(-7px, -17px) scale(0.95); }
}

@keyframes outerBloomBreath {
  0%, 100% { opacity: 0.8; transform: translate(-50%, -50%) scale(1); }
  50%       { opacity: 1;  transform: translate(-50%, -50%) scale(1.1); }
}

/* Respect reduced-motion preference */
@media (prefers-reduced-motion: reduce) {
  .orb-blob,
  .orb-bloom-outer,
  .result-badge { animation: none !important; }
}

/* --------------------------------------------------------------------------
   QUESTION SCREEN
   -------------------------------------------------------------------------- */
.screen--question {
  background: var(--offwhite);
}

.quiz-orb {
  padding: 20px 0 8px;
}

.quiz-orb-container {
  position: relative;
  width: 90px;
  height: 90px;
  border-radius: 50%;
  background: rgba(145, 172, 250, 0.2);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 60%, rgba(0,0,0,0.8) 72%, rgba(0,0,0,0.3) 82%, transparent 90%);
  mask-image: radial-gradient(circle at 50% 50%, black 60%, rgba(0,0,0,0.8) 72%, rgba(0,0,0,0.3) 82%, transparent 90%);
}

.quiz-orb-container .orb-blob {
  filter: blur(10px);
}

.quiz-orb-container .orb-blob--violet { width: 76px; height: 76px; top: -12px; right: -8px; }
.quiz-orb-container .orb-blob--blue   { width: 84px; height: 84px; top: 4px;   left: -4px; }
.quiz-orb-container .orb-blob--cyan   { width: 68px; height: 68px; bottom: 2px; left: -6px; }

.question-body {
  flex: 1;
  padding-bottom: 12px;
}

.question-number {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 10px;
}

.question-text {
  font-size: clamp(1.25rem, 3.5vw, 1.625rem);
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--black);
  margin-bottom: 28px;
  max-width: 560px;
}

/* --------------------------------------------------------------------------
   ANSWER LIST
   -------------------------------------------------------------------------- */
.answer-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.answer-item {
  position: relative;
}

.answer-btn {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  width: 100%;
  background: var(--white);
  border: 1.5px solid var(--warm-gray);
  border-radius: 20px;
  padding: 16px 20px;
  cursor: pointer;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--black);
  text-align: left;
  transition:
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    border-color var(--transition-fast);
  box-shadow:
    0 2px 10px rgba(115, 175, 252, 0.08),
    0 1px 3px rgba(0, 0, 0, 0.05);
}

.answer-btn:hover {
  transform: translateY(-1px);
  border-color: rgba(185, 155, 255, 0.45);
  box-shadow:
    0 4px 20px rgba(185, 155, 255, 0.2),
    0 2px 8px  rgba(115, 175, 252, 0.16);
}

.answer-btn:active {
  transform: translateY(0);
}

/* Gradient border via background-clip trick; light tint fill when selected */
.answer-btn.selected {
  border: 2px solid transparent;
  background-image:
    linear-gradient(var(--white), var(--white)),
    linear-gradient(135deg, #B99BFF 0%, #73AFFC 50%, #5AD2CD 100%);
  background-clip: padding-box, border-box;
  background-origin: border-box;
  animation: cardLightUp 0.5s ease-out forwards;
}

/* Flash of orb glow on selection, settling into a soft ambient glow */
@keyframes cardLightUp {
  0%   { box-shadow: 0 0 0 0 rgba(185, 155, 255, 0); }
  35%  { box-shadow:
           0 0 30px 8px rgba(185, 155, 255, 0.38),
           0 0 56px 14px rgba(115, 175, 252, 0.22); }
  100% { box-shadow:
           0 4px 20px rgba(115, 175, 252, 0.18),
           0 8px 36px rgba(185, 155, 255, 0.10); }
}

.answer-btn.selected .answer-check {
  background: linear-gradient(135deg, #B99BFF 0%, #73AFFC 50%, #5AD2CD 100%);
  border-color: transparent;
  color: var(--white);
}

.answer-check {
  flex-shrink: 0;
  width: 22px;
  height: 22px;
  border: 2px solid var(--gray-light);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.6875rem;
  font-weight: 700;
  color: transparent;
  margin-top: 1px;
  transition:
    background-color var(--transition-fast),
    border-color var(--transition-fast),
    color var(--transition-fast);
}

.answer-text {
  flex: 1;
  line-height: 1.45;
}

/* --------------------------------------------------------------------------
   QUIZ FOOTER (Back / Next)
   -------------------------------------------------------------------------- */
.quiz-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 16px;
  border-top: 1px solid var(--warm-gray);
}

/* --------------------------------------------------------------------------
   RESULT SCREEN
   -------------------------------------------------------------------------- */
.screen--result {
  background: var(--offwhite);
}

.result-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 24px;
}

/* Animated orb on result screen */
.result-orb {
  margin-bottom: 24px;
}

.result-orb-container {
  position: relative;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: rgba(145, 172, 250, 0.2);
  -webkit-mask-image: radial-gradient(circle at 50% 50%, black 60%, rgba(0,0,0,0.8) 72%, rgba(0,0,0,0.3) 82%, transparent 90%);
  mask-image: radial-gradient(circle at 50% 50%, black 60%, rgba(0,0,0,0.8) 72%, rgba(0,0,0,0.3) 82%, transparent 90%);
}

.result-orb-container .orb-blob        { filter: blur(9px); }
.result-orb-container .orb-blob--violet { width: 60px; height: 60px; top: -10px; right: -6px; }
.result-orb-container .orb-blob--blue   { width: 66px; height: 66px; top: 4px;   left: -4px; }
.result-orb-container .orb-blob--cyan   { width: 54px; height: 54px; bottom: 2px; left: -6px; }

.result-eyebrow {
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  color: var(--gray-mid);
  margin-bottom: 8px;
}

.result-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 18px;
  max-width: 520px;
}

.result-text {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-dark);
  margin-bottom: 36px;
  max-width: 520px;
}

.result-actions {
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: 100%;
  max-width: 420px;
  margin-bottom: 32px;
}

.result-actions--centered {
  align-items: center;
  max-width: 420px;
}

/* --------------------------------------------------------------------------
   EMAIL GATE SCREEN
   -------------------------------------------------------------------------- */
.screen--email-gate {
  background: var(--offwhite);
}

.email-gate-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 24px;
}

.email-gate-badge {
  width: 52px;
  height: 52px;
  background: linear-gradient(135deg, #B99BFF 0%, #73AFFC 50%, #5AD2CD 100%);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
}

.prototype-label {
  display: inline-flex;
  align-items: center;
  background: var(--warm-gray);
  border: 1px solid #D0D0D0;
  color: var(--gray-dark);
  font-size: 0.6875rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  text-transform: uppercase;
  padding: 4px 11px;
  border-radius: var(--radius-pill);
  margin-bottom: 16px;
}

.email-gate-title {
  font-size: clamp(1.375rem, 3.5vw, 1.875rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  line-height: 1.15;
  color: var(--black);
  margin-bottom: 12px;
}

.email-gate-subtext {
  font-size: 1rem;
  color: var(--gray-dark);
  margin-bottom: 28px;
  max-width: 400px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   FORM
   -------------------------------------------------------------------------- */
.email-gate-form {
  width: 100%;
  display: flex;
  flex-direction: column;
  gap: 18px;
  margin-bottom: 24px;
}

.form-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.form-label {
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--black);
}

.form-label span {
  color: var(--gray-mid);
}

.form-input {
  background: var(--white);
  border: 1.5px solid var(--warm-gray);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-family: var(--font-sans);
  font-size: 0.9375rem;
  color: var(--black);
  transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
  width: 100%;
}

.form-input::placeholder {
  color: var(--gray-light);
}

.form-input:focus {
  outline: none;
  border-color: var(--black);
  box-shadow: 0 0 0 3px rgba(0,0,0,0.07);
}

.form-input.error {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px rgba(192,57,43,0.15);
}

.form-error {
  font-size: 0.8125rem;
  color: var(--danger);
  font-weight: 500;
}

.form-disclaimer {
  font-size: 0.8125rem;
  color: var(--gray-mid);
  text-align: center;
  line-height: 1.5;
}

/* --------------------------------------------------------------------------
   CONFIRMATION SCREEN
   -------------------------------------------------------------------------- */
.screen--confirmation {
  background: var(--offwhite);
}

.confirmation-body {
  flex: 1;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding-bottom: 24px;
}

.confirmation-check {
  width: 56px;
  height: 56px;
  background: var(--black);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--white);
  font-weight: 700;
  margin-bottom: 20px;
}

.confirmation-title {
  font-size: clamp(1.5rem, 4vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.025em;
  color: var(--black);
  margin-bottom: 14px;
}

.confirmation-text {
  font-size: 1.0625rem;
  line-height: 1.65;
  color: var(--gray-dark);
  margin-bottom: 28px;
  max-width: 440px;
}

.confirmation-webinar-note {
  font-size: 0.9375rem;
  color: var(--gray-mid);
  margin-top: 12px;
  margin-bottom: 32px;
  max-width: 380px;
  line-height: 1.6;
}

/* --------------------------------------------------------------------------
   BUTTONS
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9375rem;
  border: none;
  border-radius: var(--radius-pill);
  cursor: pointer;
  padding: 12px 24px;
  text-decoration: none;
  transition:
    background-color var(--transition-fast),
    color var(--transition-fast),
    box-shadow var(--transition-fast),
    transform var(--transition-fast),
    opacity var(--transition-fast);
  white-space: nowrap;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* Primary */
.btn--primary {
  background: var(--black);
  color: var(--white);
  box-shadow: none;
}

.btn--primary:hover {
  background: #000000;
  box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.btn--primary:disabled {
  background: var(--warm-gray);
  color: var(--gray-mid);
  box-shadow: none;
  cursor: not-allowed;
  transform: none;
}

/* Secondary */
.btn--secondary {
  background: var(--white);
  color: var(--black);
  border: 1.5px solid var(--warm-gray);
  box-shadow: none;
}

.btn--secondary:hover {
  border-color: var(--black);
  box-shadow: none;
}

/* Ghost */
.btn--ghost {
  background: transparent;
  color: var(--gray-dark);
  padding: 12px 16px;
}

.btn--ghost:hover {
  color: var(--black);
  background: rgba(0,0,0,0.04);
}

/* Sizes */
.btn--large {
  font-size: 1rem;
  padding: 16px 32px;
}

.btn--small {
  font-size: 0.875rem;
  padding: 8px 16px;
}

.btn--full {
  width: 100%;
}

/* Intro start button — inherits primary (black) */
.screen--intro .btn--primary {
  font-size: 1.0625rem;
}

/* --------------------------------------------------------------------------
   ORB CTA BUTTONS — animated spinning gradient ring (result screen only)
   Uses @property to animate a conic-gradient angle for a rotating border.
   -------------------------------------------------------------------------- */
@property --btn-angle {
  syntax: '<angle>';
  initial-value: 0deg;
  inherits: false;
}

/* Primary: dark fill, spinning gradient ring, breathing glow */
.btn--orb {
  --btn-angle: 0deg;
  background:
    linear-gradient(#0A0A0A, #0A0A0A) padding-box,
    conic-gradient(from var(--btn-angle),
      #B99BFF 0%, #C8B8FF 30%, #5AD2CD 60%, #B99BFF 100%
    ) border-box;
  border: 2px solid transparent;
  color: var(--white);
  animation:
    orbBtnSpin  5s linear     infinite,
    orbBtnGlow  4s ease-in-out infinite;
}

.btn--orb:hover {
  transform: translateY(-2px);
  animation:
    orbBtnSpin  2.5s linear     infinite,
    orbBtnGlowHover 1.5s ease-in-out infinite;
}

@keyframes orbBtnSpin {
  to { --btn-angle: 360deg; }
}

@keyframes orbBtnGlow {
  0%, 100% {
    box-shadow:
      0 0 12px rgba(185, 155, 255, 0.18),
      0 0 28px rgba(185, 155, 255, 0.08);
  }
  50% {
    box-shadow:
      0 0 20px rgba(185, 155, 255, 0.28),
      0 0 44px rgba(185, 155, 255, 0.14);
  }
}

@keyframes orbBtnGlowHover {
  0%, 100% {
    box-shadow:
      0 0 22px rgba(185, 155, 255, 0.36),
      0 0 48px rgba(185, 155, 255, 0.18);
  }
  50% {
    box-shadow:
      0 0 32px rgba(185, 155, 255, 0.48),
      0 0 64px rgba(185, 155, 255, 0.24);
  }
}

/* Secondary: white fill, reversed spin, softer glow */
.btn--orb-outline {
  --btn-angle: 0deg;
  background:
    linear-gradient(var(--white), var(--white)) padding-box,
    conic-gradient(from var(--btn-angle),
      #5AD2CD 0%, #B99BFF 50%, #5AD2CD 100%
    ) border-box;
  border: 1.5px solid transparent;
  color: var(--black);
  animation:
    orbBtnSpinRev  7s linear     infinite,
    orbBtnGlowSoft 5s ease-in-out infinite;
}

.btn--orb-outline:hover {
  transform: translateY(-2px);
  animation:
    orbBtnSpinRev     3.5s linear     infinite,
    orbBtnGlowSoftHvr 1.5s ease-in-out infinite;
}

@keyframes orbBtnSpinRev {
  to { --btn-angle: -360deg; }
}

@keyframes orbBtnGlowSoft {
  0%, 100% {
    box-shadow:
      0 0 8px rgba(185, 155, 255, 0.12),
      0 0 20px rgba(90, 210, 205, 0.08);
  }
  50% {
    box-shadow:
      0 0 14px rgba(185, 155, 255, 0.20),
      0 0 30px rgba(90, 210, 205, 0.12);
  }
}

@keyframes orbBtnGlowSoftHvr {
  0%, 100% {
    box-shadow:
      0 0 18px rgba(185, 155, 255, 0.28),
      0 0 36px rgba(90, 210, 205, 0.16);
  }
  50% {
    box-shadow:
      0 0 28px rgba(185, 155, 255, 0.38),
      0 0 52px rgba(90, 210, 205, 0.22);
  }
}

/* Fallback: no motion — static gradient border, no keyframes */
@media (prefers-reduced-motion: reduce) {
  .btn--orb,
  .btn--orb-outline {
    animation: none !important;
  }
  .btn--orb {
    border-color: rgba(115, 175, 252, 0.6);
    box-shadow: 0 0 0 1px rgba(185, 155, 255, 0.3);
  }
  .btn--orb-outline {
    border-color: rgba(90, 210, 205, 0.5);
  }
}

/* Restart */
.btn--restart {
  background: transparent;
  color: var(--gray-mid);
  font-size: 0.875rem;
  font-weight: 500;
  padding: 8px 0;
  border: none;
  cursor: pointer;
  font-family: var(--font-sans);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color var(--transition-fast);
}

.btn--restart:hover {
  color: var(--black);
  transform: none;
}

.btn-arrow {
  font-size: 1.1em;
}

/* --------------------------------------------------------------------------
   RESULT SCREEN — inline email save
   -------------------------------------------------------------------------- */
.result-save {
  width: 100%;
  max-width: 420px;
  margin-bottom: 24px;
}

.result-save-row {
  display: flex;
  gap: 8px;
  align-items: center;
}

.result-save-input {
  flex: 1;
  border-radius: var(--radius-pill);
  padding: 11px 18px;
}

.result-save-btn {
  flex-shrink: 0;
  padding: 11px 18px;
  border-radius: var(--radius-pill);
}

.result-save-sent {
  font-size: 0.875rem;
  color: var(--orb-cyan);
  margin-top: 8px;
  font-weight: 500;
}

/* --------------------------------------------------------------------------
   RESPONSIVE
   -------------------------------------------------------------------------- */
@media (max-width: 600px) {
  .screen__inner {
    padding: 24px 16px 40px;
  }

  .intro-orb-scene {
    height: 230px;
  }

  .orb-container {
    width: 200px;
    height: 200px;
  }

  .orb-bloom-outer {
    left: 50%;
    width: 320px;
    height: 320px;
  }


  .quiz-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 16px;
  }

  .progress-wrap {
    max-width: 100%;
    width: 100%;
    margin-left: 0;
  }

  .quiz-footer {
    flex-direction: row;
    gap: 8px;
  }

  .btn--large {
    padding: 14px 24px;
  }

  .result-actions,
  .result-actions--centered {
    max-width: 100%;
  }
}

@media (max-width: 400px) {
  .quiz-footer {
    flex-wrap: wrap;
  }

  .btn--ghost {
    order: 2;
  }

  .btn--primary {
    order: 1;
    flex: 1;
  }
}

/* --------------------------------------------------------------------------
   UTILITY
   -------------------------------------------------------------------------- */
[hidden] {
  display: none !important;
}
