/* ═══════════════════════════════════════════════════════════════════════════
   AI Readiness Assessment — site-wide styles
   Layered on top of base.css. Use --color-* variables defined there.
   Adds: font-serif (Instrument Serif), font-mono (Geist Mono), gradient,
   CTAs (sticky/mid/end), quiz modal, email gate, result page.
   ═══════════════════════════════════════════════════════════════════════════ */
:root {
  --font-serif: 'Instrument Serif', 'Iowan Old Style', Georgia, serif;
  --font-display: 'Instrument Sans', -apple-system, BlinkMacSystemFont, 'SF Pro Display', sans-serif;
  --font-mono: 'Geist Mono', ui-monospace, 'SF Mono', Menlo, monospace;
  --color-surface: rgba(255, 255, 255, 0.04);
  --color-surface-hover: rgba(255, 255, 255, 0.07);
  --color-border: rgba(255, 255, 255, 0.08);
  --color-border-strong: rgba(255, 255, 255, 0.16);
  --color-success: #30d158;
  --gradient-flashy: linear-gradient(120deg, #2997ff 0%, #bf5af2 50%, #ff375f 100%);
  --ease-spring: cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ═══════════ keyframes (shared) ═══════════ */
@keyframes ar-gradient-drift {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}
@keyframes ar-halo-pulse {
  0%, 100% { opacity: 0.45; transform: scale(1); }
  50%      { opacity: 0.85; transform: scale(1.05); }
}
@keyframes ar-sparkle-wiggle {
  0%, 88%, 100%  { transform: rotate(0) scale(1); }
  90%            { transform: rotate(-18deg) scale(1.15); }
  93%            { transform: rotate(20deg) scale(1.18); }
  96%            { transform: rotate(-12deg) scale(1.1); }
  99%            { transform: rotate(0) scale(1); }
}
@keyframes ar-sticky-enter {
  from { transform: translateY(120%) scale(0.92); opacity: 0; }
  to   { transform: translateY(0) scale(1); opacity: 1; }
}
@keyframes ar-modal-rise {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
@keyframes ar-q-enter {
  from { opacity: 0; transform: translateX(20px); }
  to   { opacity: 1; transform: translateX(0); }
}
@keyframes ar-option-bounce {
  0%   { transform: scale(1); }
  40%  { transform: scale(1.025); }
  100% { transform: scale(1); }
}
@keyframes ar-encourage-pop {
  0%   { opacity: 0; transform: translate(-50%, 0) scale(0.85); }
  20%  { opacity: 1; transform: translate(-50%, -10px) scale(1.05); }
  35%  { transform: translate(-50%, -10px) scale(1); }
  85%  { opacity: 1; transform: translate(-50%, -10px) scale(1); }
  100% { opacity: 0; transform: translate(-50%, -20px) scale(0.95); }
}
@keyframes ar-shimmer-slide {
  0%   { transform: translateX(-100%); }
  100% { transform: translateX(100%); }
}
@keyframes ar-fade-up {
  from { opacity: 0; transform: translateY(15px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes ar-sparkle-drift {
  0%, 100% { transform: translate(0, 0) rotate(0); }
  25%      { transform: translate(20px, -15px) rotate(45deg); }
  50%      { transform: translate(-10px, 10px) rotate(-30deg); }
  75%      { transform: translate(15px, -5px) rotate(60deg); }
}

/* ═══════════ base CTA atom ═══════════ */
.ar-cta-btn {
  position: relative; display: inline-flex; align-items: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px;
  font-size: 15px; font-weight: 600; letter-spacing: -0.01em;
  color: #fff !important; isolation: isolate;
  background: var(--gradient-flashy);
  background-size: 200% 200%;
  animation: ar-gradient-drift 8s ease-in-out infinite;
  border: none; cursor: pointer; text-decoration: none;
  transition: transform 0.4s var(--ease-out-expo), box-shadow 0.4s var(--ease-out-expo);
  box-shadow:
    0 1px 0 rgba(255,255,255,0.15) inset,
    0 0 0 1px rgba(255,255,255,0.08),
    0 8px 24px rgba(41,151,255,0.25);
  font-family: inherit;
}
.ar-cta-btn::before {
  content: ''; position: absolute; inset: -8px; z-index: -1;
  border-radius: 18px;
  background: var(--gradient-flashy);
  background-size: 200% 200%;
  animation: ar-gradient-drift 8s ease-in-out infinite, ar-halo-pulse 2.5s ease-in-out infinite;
  filter: blur(18px); opacity: 0.55;
}
.ar-cta-btn::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(180deg, rgba(255,255,255,0.18) 0%, rgba(255,255,255,0) 50%);
  pointer-events: none;
}
.ar-cta-btn:hover {
  transform: translateY(-2px); color: #fff !important;
  box-shadow:
    0 1px 0 rgba(255,255,255,0.2) inset,
    0 0 0 1px rgba(255,255,255,0.12),
    0 14px 40px rgba(191,90,242,0.4);
}
.ar-cta-btn:active { transform: translateY(-1px); transition-duration: 0.1s; }
.ar-cta-btn .ar-sparkle {
  display: inline-block; transform-origin: 50% 50%;
  animation: ar-sparkle-wiggle 6s ease-in-out infinite;
}

/* ═══════════ sticky bottom-right ═══════════ */
.ar-sticky {
  position: fixed; bottom: 24px; right: 24px; z-index: 50;
  display: flex; align-items: center; gap: 14px;
  padding: 12px 16px 12px 14px;
  background: rgba(10, 10, 12, 0.85);
  backdrop-filter: blur(24px) saturate(150%);
  -webkit-backdrop-filter: blur(24px) saturate(150%);
  border: 1px solid var(--color-border-strong);
  border-radius: 16px;
  max-width: 360px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  animation: ar-sticky-enter 0.8s var(--ease-out-expo) 1.2s backwards;
  transition: transform 0.5s var(--ease-out-expo), opacity 0.4s ease;
}
.ar-sticky.dismissed { transform: translateX(120%) scale(0.92); opacity: 0; pointer-events: none; }
.ar-sticky-orb {
  flex-shrink: 0; width: 38px; height: 38px; border-radius: 12px;
  display: grid; place-items: center; font-size: 18px;
  background: var(--gradient-flashy);
  background-size: 200% 200%;
  animation: ar-gradient-drift 8s ease-in-out infinite;
  box-shadow: 0 8px 20px rgba(41,151,255,0.4);
  position: relative; isolation: isolate;
}
.ar-sticky-orb::before {
  content: ''; position: absolute; inset: -6px; z-index: -1;
  border-radius: 16px; background: inherit; filter: blur(12px);
  opacity: 0.5; animation: ar-halo-pulse 2.5s ease-in-out infinite;
}
.ar-sticky-text { flex: 1; min-width: 0; }
.ar-sticky-title { font-size: 13.5px; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 2px; color: var(--color-text); }
.ar-sticky-sub { font-size: 12px; color: var(--color-text-secondary); }
.ar-sticky-go {
  flex-shrink: 0; padding: 7px 12px;
  background: rgba(255,255,255,0.08);
  border: 1px solid var(--color-border-strong);
  border-radius: 8px;
  font-size: 12.5px; font-weight: 500;
  color: var(--color-text); cursor: pointer; font-family: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
}
.ar-sticky-go:hover { background: rgba(255,255,255,0.14); transform: translateX(2px); }
.ar-sticky-close {
  position: absolute; top: -6px; right: -6px;
  width: 22px; height: 22px; border-radius: 50%;
  background: rgba(20,20,22,0.95);
  border: 1px solid var(--color-border-strong);
  display: grid; place-items: center;
  font-size: 11px; color: var(--color-text-secondary); cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.ar-sticky-close:hover { background: rgba(40,40,44,1); color: var(--color-text); transform: scale(1.12); }

/* ═══════════ mid-article inline ═══════════ */
.ar-mid {
  position: relative; margin: 56px 0;
  padding: 32px;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(255,55,95,0.18) 0%, transparent 50%),
    radial-gradient(circle at bottom left, rgba(41,151,255,0.18) 0%, transparent 50%),
    rgba(10, 10, 12, 0.8);
  border: 1px solid var(--color-border-strong);
  overflow: hidden;
}
.ar-mid::before {
  content: ''; position: absolute; top: 0; left: 0; right: 0; height: 2px;
  background: var(--gradient-flashy);
  background-size: 200% 200%;
  animation: ar-gradient-drift 8s ease-in-out infinite;
}
.ar-mid-tag {
  display: inline-block; font-size: 11px; text-transform: uppercase;
  letter-spacing: 0.14em; font-weight: 600;
  color: transparent; background: var(--gradient-flashy);
  background-size: 200% 200%;
  animation: ar-gradient-drift 8s ease-in-out infinite;
  -webkit-background-clip: text; background-clip: text;
  margin-bottom: 12px;
}
.ar-mid-title {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: 28px; line-height: 1.15; letter-spacing: -0.015em;
  margin-bottom: 8px; color: var(--color-text);
}
.ar-mid-sub { font-size: 15px; color: var(--color-text-secondary); margin-bottom: 20px; }
.ar-mid-row { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.ar-mid-row .ar-cta-btn { padding: 12px 20px; font-size: 14.5px; }
.ar-mid-time { font-size: 12.5px; color: var(--color-text-tertiary); display: inline-flex; align-items: center; gap: 6px; }
.ar-mid-time::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 8px rgba(48,209,88,0.6); }

/* ═══════════ end-of-article block ═══════════ */
.ar-end {
  position: relative; margin: 80px 0 40px;
  padding: 56px 40px;
  border-radius: 24px;
  background:
    radial-gradient(ellipse at top, rgba(191,90,242,0.22) 0%, transparent 60%),
    radial-gradient(ellipse at bottom, rgba(41,151,255,0.18) 0%, transparent 55%),
    rgba(10, 10, 12, 0.9);
  border: 1px solid var(--color-border-strong);
  text-align: center; overflow: hidden;
}
.ar-end::before {
  content: ''; position: absolute; inset: -1px; border-radius: inherit;
  padding: 1px; pointer-events: none;
  background: var(--gradient-flashy);
  background-size: 200% 200%;
  animation: ar-gradient-drift 8s ease-in-out infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0.5;
}
.ar-end-tag {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 12px; text-transform: uppercase; letter-spacing: 0.14em; font-weight: 600;
  color: var(--color-text-secondary);
  padding: 6px 12px; border-radius: 999px;
  background: rgba(255,255,255,0.04); border: 1px solid var(--color-border);
  margin-bottom: 20px;
}
.ar-end-tag-dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--gradient-flashy); background-size: 200% 200%;
  animation: ar-gradient-drift 8s ease-in-out infinite;
}
.ar-end-title {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(36px, 4.5vw, 48px); line-height: 1.05; letter-spacing: -0.02em;
  margin-bottom: 14px; color: var(--color-text);
}
.ar-end-title .ar-gradient-word {
  background: var(--gradient-flashy); background-size: 200% 200%;
  animation: ar-gradient-drift 8s ease-in-out infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.ar-end-sub {
  font-size: 17px; color: var(--color-text-secondary);
  max-width: 520px; margin: 0 auto 32px; line-height: 1.55;
}
.ar-end-row { display: inline-flex; flex-direction: column; align-items: center; gap: 14px; }
.ar-end-row .ar-cta-btn { padding: 16px 30px; font-size: 16px; }
.ar-end-meta { display: flex; gap: 18px; font-size: 12.5px; color: var(--color-text-tertiary); flex-wrap: wrap; justify-content: center; }
.ar-end-meta-item { display: inline-flex; align-items: center; gap: 6px; }
.ar-end-meta-item svg { width: 13px; height: 13px; opacity: 0.7; }

/* ═══════════ quiz modal ═══════════ */
.ar-overlay {
  position: fixed; inset: 0; z-index: 9000;
  display: none; align-items: flex-end; justify-content: center;
  background: rgba(0, 0, 0, 0.72);
  backdrop-filter: blur(16px) saturate(120%);
  -webkit-backdrop-filter: blur(16px) saturate(120%);
  opacity: 0; transition: opacity 0.3s ease;
}
.ar-overlay.open { display: flex; opacity: 1; }
.ar-overlay.open .ar-modal { animation: ar-modal-rise 0.55s var(--ease-out-expo) forwards; }
.ar-modal {
  position: relative;
  width: 100%; max-width: 620px; max-height: 92vh;
  display: flex; flex-direction: column;
  background: linear-gradient(180deg, #0a0a0c 0%, #050507 100%);
  border: 1px solid var(--color-border-strong);
  border-radius: 28px 28px 0 0;
  transform: translateY(100%);
  box-shadow: 0 -40px 100px rgba(0,0,0,0.7);
  overflow: hidden;
}
@media (min-width: 768px) {
  .ar-overlay { align-items: center; padding: 24px; }
  .ar-modal { border-radius: 24px; max-height: 88vh; }
}
.ar-sparkles { position: absolute; inset: 0; overflow: hidden; pointer-events: none; z-index: 0; opacity: 0.6; }
.ar-sparkles span { position: absolute; font-size: 14px; animation: ar-sparkle-drift 18s linear infinite; filter: drop-shadow(0 0 4px rgba(255,255,255,0.2)); }
.ar-sparkles span:nth-child(1) { left: 8%;  top: 14%; animation-delay: 0s;    opacity: 0.4; }
.ar-sparkles span:nth-child(2) { left: 88%; top: 22%; animation-delay: -6s;   opacity: 0.3; font-size: 10px; }
.ar-sparkles span:nth-child(3) { left: 16%; top: 78%; animation-delay: -12s;  opacity: 0.35; font-size: 12px; }
.ar-sparkles span:nth-child(4) { left: 78%; top: 68%; animation-delay: -3s;   opacity: 0.4; }
.ar-sparkles span:nth-child(5) { left: 50%; top: 8%;  animation-delay: -9s;   opacity: 0.25; font-size: 9px; }

.ar-header {
  position: relative; z-index: 2;
  padding: 18px 22px 14px;
  border-bottom: 1px solid var(--color-border);
  display: flex; align-items: center; gap: 16px;
}
.ar-progress { flex: 1; }
.ar-progress-bar { height: 3px; border-radius: 999px; background: rgba(255,255,255,0.06); overflow: hidden; margin-bottom: 10px; }
.ar-progress-fill { height: 100%; width: 9%; border-radius: inherit;
  background: var(--gradient-flashy); background-size: 200% 200%;
  animation: ar-gradient-drift 8s ease-in-out infinite;
  transition: width 0.5s var(--ease-out-expo);
  box-shadow: 0 0 12px rgba(191,90,242,0.5);
}
.ar-progress-row { display: flex; align-items: center; justify-content: space-between; }
.ar-progress-dots { display: flex; gap: 6px; font-size: 13px; }
.ar-progress-dots span { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: rgba(255,255,255,0.16); transition: background 0.3s ease, transform 0.3s var(--ease-spring); }
.ar-progress-dots span.active { background: #fff; transform: scale(1.2); }
.ar-progress-dots span.done { background: var(--color-accent-purple); }
.ar-step-label { font-family: var(--font-mono); font-size: 11.5px; font-weight: 500; color: var(--color-text-tertiary); letter-spacing: 0.04em; }
.ar-close {
  flex-shrink: 0; width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.04);
  border: 1px solid var(--color-border);
  display: grid; place-items: center;
  color: var(--color-text-secondary); font-size: 16px; cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease, transform 0.2s ease;
}
.ar-close:hover { background: rgba(255,255,255,0.08); color: var(--color-text); transform: rotate(90deg); }

.ar-body { position: relative; z-index: 2; flex: 1; overflow-y: auto; padding: 28px 28px 8px; scroll-behavior: smooth; }

.ar-question { display: none; animation: ar-q-enter 0.4s var(--ease-out-expo) forwards; }
.ar-question.active { display: block; }
.ar-eyebrow {
  font-family: var(--font-mono); font-size: 11.5px;
  text-transform: uppercase; letter-spacing: 0.14em;
  color: transparent; background: var(--gradient-flashy);
  background-size: 200% 200%; animation: ar-gradient-drift 8s ease-in-out infinite;
  -webkit-background-clip: text; background-clip: text;
  margin-bottom: 12px; font-weight: 500;
}
.ar-q-headline {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(24px, 3.5vw, 30px);
  line-height: 1.2; letter-spacing: -0.022em;
  margin-bottom: 8px; color: var(--color-text);
  text-wrap: balance;
}
.ar-q-help { font-size: 14px; color: var(--color-text-tertiary); margin-bottom: 24px; }

.ar-options { display: flex; flex-direction: column; gap: 10px; }
.ar-option {
  position: relative; display: flex; align-items: center; gap: 14px;
  padding: 16px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  cursor: pointer; font-family: inherit;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.25s var(--ease-spring);
  text-align: left; color: var(--color-text);
}
.ar-option:hover { background: var(--color-surface-hover); border-color: var(--color-border-strong); }
.ar-option-marker {
  flex-shrink: 0; width: 22px; height: 22px;
  border-radius: 50%; border: 1.5px solid rgba(255,255,255,0.25);
  display: grid; place-items: center;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ar-option[data-question-type="multi"] .ar-option-marker { border-radius: 6px; }
.ar-option-marker svg { width: 12px; height: 12px; opacity: 0; transition: opacity 0.15s ease; }
.ar-option-label { flex: 1; font-size: 15px; line-height: 1.4; }
.ar-option.selected {
  background: rgba(48,209,88,0.06);
  border-color: rgba(48,209,88,0.4);
  animation: ar-option-bounce 0.4s var(--ease-spring);
}
.ar-option.selected .ar-option-marker { background: var(--color-success); border-color: var(--color-success); }
.ar-option.selected .ar-option-marker svg { opacity: 1; }

.ar-option-other-input {
  flex: 1; padding: 8px 12px;
  background: rgba(0,0,0,0.3);
  border: 1px solid var(--color-border);
  border-radius: 8px;
  font-size: 14px; outline: none; color: var(--color-text);
  font-family: inherit;
  transition: border-color 0.2s ease;
  display: none;
}
.ar-option-other-input:focus { border-color: rgba(255,255,255,0.3); }
.ar-option.selected[data-other="true"] .ar-option-other-input { display: block; }

.ar-textarea {
  width: 100%; min-height: 110px;
  padding: 18px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  font-size: 16px; line-height: 1.5; color: var(--color-text);
  resize: vertical; outline: none; font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ar-textarea:focus { border-color: rgba(255,255,255,0.25); background: var(--color-surface-hover); }
.ar-text-meta { display: flex; justify-content: space-between; font-size: 12px; color: var(--color-text-tertiary); margin-top: 8px; font-family: var(--font-mono); }
.ar-textinput {
  width: 100%; padding: 16px 20px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 14px;
  font-size: 16px; outline: none; color: var(--color-text); font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ar-textinput:focus { border-color: rgba(255,255,255,0.25); background: var(--color-surface-hover); }

.ar-encouragement {
  position: fixed; left: 50%; top: 32%; transform: translate(-50%, -10px);
  z-index: 9100; padding: 14px 22px;
  background: linear-gradient(180deg, #1a1a1e 0%, #0a0a0c 100%);
  border: 1px solid var(--color-border-strong);
  border-radius: 999px;
  font-size: 14px; font-weight: 500; letter-spacing: -0.01em;
  color: var(--color-text);
  box-shadow: 0 20px 60px rgba(0,0,0,0.6);
  opacity: 0; pointer-events: none;
}
.ar-encouragement.show { animation: ar-encourage-pop 1.6s ease forwards; }

.ar-footer {
  position: relative; z-index: 2;
  padding: 16px 28px 22px;
  display: flex; justify-content: space-between; align-items: center;
  background: linear-gradient(180deg, transparent 0%, #050507 30%);
  border-top: 1px solid var(--color-border);
}
.ar-prev {
  padding: 11px 18px; font-size: 14px; color: var(--color-text-secondary);
  border: 1px solid var(--color-border); border-radius: 10px;
  background: var(--color-surface); cursor: pointer; font-family: inherit;
  transition: background 0.2s ease, color 0.2s ease;
}
.ar-prev:hover { background: var(--color-surface-hover); color: var(--color-text); }
.ar-prev:disabled { opacity: 0.4; cursor: not-allowed; }
.ar-next {
  position: relative; padding: 13px 24px;
  font-size: 14.5px; font-weight: 600; color: #fff; isolation: isolate;
  border: none; border-radius: 11px; cursor: pointer; font-family: inherit;
  background: var(--gradient-flashy); background-size: 200% 200%;
  animation: ar-gradient-drift 8s ease-in-out infinite;
  transition: transform 0.3s var(--ease-out-expo), opacity 0.3s ease;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 6px 20px rgba(41,151,255,0.3);
}
.ar-next:hover { transform: translateY(-1px); }
.ar-next:disabled { background: rgba(255,255,255,0.06); animation: none; color: var(--color-text-muted); cursor: not-allowed; box-shadow: none; }

/* ═══════════ email gate ═══════════ */
.ar-gate { display: none; text-align: center; padding: 8px 4px; animation: ar-q-enter 0.4s var(--ease-out-expo) forwards; }
.ar-gate.active { display: block; }
.ar-gate-icon {
  display: inline-grid; place-items: center;
  width: 56px; height: 56px; border-radius: 16px;
  background: var(--gradient-flashy); background-size: 200% 200%;
  animation: ar-gradient-drift 8s ease-in-out infinite;
  margin-bottom: 18px; font-size: 26px;
  position: relative; isolation: isolate;
  box-shadow: 0 12px 32px rgba(191,90,242,0.4);
}
.ar-gate-icon::before {
  content: ''; position: absolute; inset: -10px; z-index: -1;
  border-radius: 26px;
  background: var(--gradient-flashy); background-size: 200% 200%;
  animation: ar-gradient-drift 8s ease-in-out infinite, ar-halo-pulse 2.5s ease-in-out infinite;
  filter: blur(20px); opacity: 0.6;
}
.ar-gate-headline {
  font-family: var(--font-serif); font-style: italic; font-weight: 400;
  font-size: clamp(26px, 4vw, 32px); line-height: 1.15;
  letter-spacing: -0.015em; margin-bottom: 12px; color: var(--color-text);
}
.ar-gate-sub { font-size: 15px; color: var(--color-text-secondary); max-width: 460px; margin: 0 auto 28px; line-height: 1.55; }
.ar-gate-form { display: flex; flex-direction: column; gap: 12px; max-width: 440px; margin: 0 auto; }
.ar-gate-form input {
  padding: 14px 18px;
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: 12px;
  font-size: 15px; outline: none; color: var(--color-text); font-family: inherit;
  transition: border-color 0.2s ease, background 0.2s ease;
}
.ar-gate-form input:focus { border-color: rgba(255,255,255,0.25); background: var(--color-surface-hover); }
.ar-gate-form .ar-extra-field { max-height: 0; overflow: hidden; opacity: 0; transition: max-height 0.4s var(--ease-out-expo), opacity 0.3s ease; }
.ar-gate-form .ar-extra-field.show { max-height: 120px; opacity: 1; }
.ar-extra-label { display: block; font-size: 13px; color: var(--color-text-secondary); margin-bottom: 6px; text-align: left; }
.ar-honeypot { position: absolute; left: -9999px; top: -9999px; width: 1px; height: 1px; }
.ar-gate-submit {
  margin-top: 8px; padding: 16px 24px;
  font-size: 15px; font-weight: 600; color: #fff;
  border: none; border-radius: 12px; cursor: pointer; font-family: inherit;
  background: var(--gradient-flashy); background-size: 200% 200%;
  animation: ar-gradient-drift 8s ease-in-out infinite;
  box-shadow: 0 1px 0 rgba(255,255,255,0.15) inset, 0 8px 24px rgba(191,90,242,0.35);
  transition: transform 0.3s var(--ease-out-expo);
}
.ar-gate-submit:hover { transform: translateY(-2px); }
.ar-gate-submit:disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.ar-gate-fineprint { font-size: 12px; color: var(--color-text-tertiary); margin-top: 14px; }

/* ═══════════ result page ═══════════ */
.ar-result-overlay {
  position: fixed; inset: 0; z-index: 9050;
  display: none; align-items: center; justify-content: center;
  padding: 24px;
  background: radial-gradient(ellipse at center, rgba(20,20,28,0.85) 0%, rgba(0,0,0,0.95) 80%);
  backdrop-filter: blur(20px) saturate(140%);
  -webkit-backdrop-filter: blur(20px) saturate(140%);
  opacity: 0; transition: opacity 0.4s ease;
}
.ar-result-overlay.open { display: flex; opacity: 1; }
.ar-result-card {
  position: relative;
  width: 100%; max-width: 600px; max-height: 92vh; overflow-y: auto;
  padding: 48px 36px 40px;
  background: linear-gradient(180deg, #0a0a0c 0%, #050507 100%);
  border: 1px solid var(--color-border-strong);
  border-radius: 28px;
  text-align: center;
  box-shadow: 0 40px 100px rgba(0,0,0,0.7);
  transform: scale(0.95) translateY(20px); opacity: 0;
  transition: transform 0.6s var(--ease-out-expo), opacity 0.5s ease;
}
.ar-result-overlay.open .ar-result-card { transform: scale(1) translateY(0); opacity: 1; }
.ar-result-card::before {
  content: ''; position: absolute; inset: -1px;
  border-radius: inherit; pointer-events: none;
  background: var(--gradient-flashy); background-size: 200% 200%;
  animation: ar-gradient-drift 8s ease-in-out infinite;
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  padding: 1px; opacity: 0.6;
}
.ar-result-calc { display: flex; flex-direction: column; align-items: center; gap: 18px; padding: 60px 0; }
.ar-shimmer-bar { width: 120px; height: 4px; border-radius: 999px; overflow: hidden; background: rgba(255,255,255,0.05); position: relative; }
.ar-shimmer-bar::before { content: ''; position: absolute; inset: 0; background: var(--gradient-flashy); background-size: 200% 200%; animation: ar-shimmer-slide 1.4s ease-in-out infinite; }
.ar-result-calc-text { font-family: var(--font-mono); font-size: 12px; letter-spacing: 0.14em; text-transform: uppercase; color: var(--color-text-secondary); }
.ar-result-revealed { display: none; }
.ar-result-revealed.show { display: block; animation: ar-fade-up 0.7s var(--ease-out-expo); }
.ar-result-eyebrow { font-family: var(--font-mono); font-size: 11.5px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-text-tertiary); margin-bottom: 18px; }
.ar-score-block { position: relative; isolation: isolate; display: inline-block; padding: 4px 0; margin-bottom: 4px; }
.ar-score-block::before {
  content: ''; position: absolute; inset: -40px; z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(191,90,242,0.5) 0%, rgba(41,151,255,0.3) 40%, transparent 70%);
  filter: blur(40px); animation: ar-halo-pulse 3s ease-in-out infinite;
}
.ar-score-num {
  font-family: var(--font-mono); font-weight: 500;
  font-size: clamp(96px, 14vw, 128px); line-height: 1; letter-spacing: -0.04em;
  background: var(--gradient-flashy); background-size: 200% 200%;
  animation: ar-gradient-drift 8s ease-in-out infinite;
  -webkit-background-clip: text; background-clip: text; color: transparent;
  font-variant-numeric: tabular-nums;
}
.ar-score-suffix { font-family: var(--font-mono); font-size: 24px; font-weight: 400; color: var(--color-text-tertiary); margin-left: 6px; letter-spacing: -0.02em; }
.ar-arch {
  margin: 28px auto 0; max-width: 460px;
  padding: 24px 26px; border-radius: 18px;
  background: rgba(10,10,12,0.7);
  border: 1px solid var(--color-border-strong);
  text-align: left; position: relative; overflow: hidden;
}
.ar-arch::before { content: ''; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--gradient-flashy); background-size: 200% 200%; animation: ar-gradient-drift 8s ease-in-out infinite; }
.ar-arch-row { display: flex; align-items: center; gap: 14px; margin-bottom: 14px; }
.ar-arch-emoji { font-size: 36px; line-height: 1; filter: drop-shadow(0 6px 16px rgba(191,90,242,0.4)); }
.ar-arch-meta { flex: 1; }
.ar-arch-label { font-family: var(--font-mono); font-size: 10.5px; text-transform: uppercase; letter-spacing: 0.16em; color: var(--color-text-tertiary); margin-bottom: 2px; }
.ar-arch-name { font-family: var(--font-serif); font-style: italic; font-weight: 400; font-size: 26px; line-height: 1.1; letter-spacing: -0.015em; color: var(--color-text); }
.ar-arch-desc { font-size: 14.5px; line-height: 1.55; color: rgba(245,245,247,0.78); }
.ar-result-email-strip {
  margin: 24px auto 0; max-width: 460px;
  padding: 12px 18px; border-radius: 12px;
  background: rgba(48,209,88,0.06);
  border: 1px solid rgba(48,209,88,0.2);
  font-size: 13.5px; color: rgba(245,245,247,0.85);
  display: inline-flex; align-items: center; gap: 10px;
}
.ar-result-email-strip-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-success); box-shadow: 0 0 10px rgba(48,209,88,0.6); flex-shrink: 0; }
.ar-result-ctas { margin-top: 32px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.ar-result-ctas .ar-cta-btn { padding: 16px 28px; font-size: 16px; }
.ar-result-secondary {
  font-size: 13.5px; color: var(--color-text-secondary);
  border-bottom: 1px dashed var(--color-border-strong);
  padding-bottom: 2px; cursor: pointer;
  background: none; border-top: none; border-left: none; border-right: none;
  font-family: inherit;
  transition: color 0.2s ease, border-color 0.2s ease;
}
.ar-result-secondary:hover { color: var(--color-text); border-bottom-color: rgba(255,255,255,0.4); }
.ar-result-close {
  position: absolute; top: 18px; right: 18px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.05);
  border: 1px solid var(--color-border);
  display: grid; place-items: center;
  font-size: 16px; color: var(--color-text-secondary); cursor: pointer;
  font-family: inherit;
  transition: background 0.2s ease, transform 0.2s ease;
  z-index: 5;
}
.ar-result-close:hover { background: rgba(255,255,255,0.1); transform: rotate(90deg); }

/* ═══════════ hide scrollbars on modal + result + body ═══════════ */
.ar-body, .ar-modal, .ar-result-card, .ar-result-overlay, .ar-overlay {
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.ar-body::-webkit-scrollbar,
.ar-modal::-webkit-scrollbar,
.ar-result-card::-webkit-scrollbar,
.ar-result-overlay::-webkit-scrollbar,
.ar-overlay::-webkit-scrollbar { width: 0; height: 0; display: none; }

/* When result overlay is open, lock body scroll the same as quiz overlay */
body.ar-locked { overflow: hidden; }

/* ═══════════ Next-press burst particles ═══════════ */
.ar-burst {
  position: fixed; border-radius: 50%; pointer-events: none;
  z-index: 9200;
  transform: translate(-50%, -50%);
  animation: ar-burst-fly 0.65s cubic-bezier(0.16, 1, 0.3, 1) forwards;
  box-shadow: 0 0 8px currentColor, 0 0 14px rgba(255,255,255,0.18);
  will-change: transform, opacity;
}
@keyframes ar-burst-fly {
  0% {
    transform: translate(-50%, -50%) scale(0) rotate(0);
    opacity: 1;
  }
  18% {
    transform: translate(calc(-50% + var(--dx, 0) * 0.32), calc(-50% + var(--dy, 0) * 0.32)) scale(1.2) rotate(calc(var(--rot, 0) * 0.3));
    opacity: 1;
  }
  100% {
    transform: translate(calc(-50% + var(--dx, 0)), calc(-50% + var(--dy, 0) + 12px)) scale(0.35) rotate(var(--rot, 0));
    opacity: 0;
  }
}

/* ═══════════ responsive ═══════════ */
@media (max-width: 600px) {
  .ar-mid { padding: 24px 22px; }
  .ar-end { padding: 36px 22px; }
  .ar-sticky { left: 14px; right: 14px; bottom: 14px; max-width: none; padding: 10px 12px; }
  .ar-sticky-text { font-size: 12.5px; }
  .ar-body { padding: 22px 20px 8px; }
  .ar-footer { padding: 14px 20px 18px; }
  .ar-result-card { padding: 36px 22px 30px; }
}
