/* ============================================================
   AZPC Nucleus Widget — Cinematic Edition
   Poppi-style hero, glass panel, ambient motion, AZPC brand
   ============================================================ */

:root {
  /* Brand palette (pulled from live site) */
  --azpc-navy: #193f81;
  --azpc-navy-deep: #0a1027;
  --azpc-navy-dark: #102f68;
  --azpc-navy-mid: #1a4390;
  --azpc-purple: #b048d1;
  --azpc-purple-dark: #702f84;
  --azpc-blue: #3c83ff;
  --azpc-gold: #ffd341;
  --azpc-gold-light: #ffefbc;

  /* Brand gradients */
  --gradient-cta: linear-gradient(#ffefbc, #ffd341);
  --gradient-cta-hover: linear-gradient(135deg, #3c83ff, #b048d1);
  --gradient-accent: linear-gradient(90deg, #b048d1, #3c83ff);
  --gradient-glow: linear-gradient(135deg, #b048d1 0%, #3c83ff 50%, #ffd341 100%);

  /* Neutrals */
  --ink-900: #060707;
  --ink-700: #313131;
  --ink-500: #646565;
  --ink-300: #cbd5e1;
  --ink-100: #e8e7e7;
  --ink-50: #f7f8fb;
  --white: #ffffff;

  --success: #10B981;
  --error: #DC2626;
  --border: #e2e6ee;

  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html, body {
  height: 100%;
  overflow-x: hidden;
}

body {
  font-family: 'Helvetica Neue', Helvetica, Arial, sans-serif;
  background: var(--azpc-navy-deep);
  color: var(--ink-900);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  min-height: 100svh;
  position: relative;
}

h1, h2, h3, .brand-name, .step-title, .results-title, .tier-name, .hero-headline {
  font-family: 'Raleway', 'Helvetica Neue', sans-serif;
  font-weight: 800;
  letter-spacing: -0.01em;
}

/* ============================================================
   HERO STAGE — full viewport, fixed, behind everything
   ============================================================ */
.hero-stage {
  position: fixed;
  inset: 0;
  overflow: hidden;
  z-index: 0;
  background: var(--azpc-navy-deep);
}

.hero-scene {
  position: absolute;
  inset: -5%;
  background-size: cover;
  background-position: center;
  opacity: 0;
  transition: opacity 2s ease-in-out;
  will-change: opacity, transform;
}

.hero-scene.active {
  opacity: 0.85;
  animation: kenburns 24s ease-in-out infinite alternate;
}

@keyframes kenburns {
  0%   { transform: scale(1.08) translate(-1%, -0.5%); }
  100% { transform: scale(1.18) translate(1.5%, 0.8%); }
}

/* Purple-blue aurora sweeps */
.aurora {
  position: absolute;
  border-radius: 50%;
  filter: blur(80px);
  opacity: 0.35;
  pointer-events: none;
  will-change: transform;
}

.aurora-1 {
  width: 60vw;
  height: 60vw;
  background: radial-gradient(circle, #b048d1 0%, transparent 60%);
  top: -20vw;
  left: -10vw;
  animation: aurora-drift-1 22s ease-in-out infinite;
}

.aurora-2 {
  width: 70vw;
  height: 70vw;
  background: radial-gradient(circle, #3c83ff 0%, transparent 60%);
  bottom: -25vw;
  right: -15vw;
  animation: aurora-drift-2 28s ease-in-out infinite;
}

@keyframes aurora-drift-1 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  33%      { transform: translate(15vw, 10vh) scale(1.15); opacity: 0.5; }
  66%      { transform: translate(-5vw, 20vh) scale(0.9); opacity: 0.25; }
}

@keyframes aurora-drift-2 {
  0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.35; }
  33%      { transform: translate(-10vw, -15vh) scale(1.2); opacity: 0.45; }
  66%      { transform: translate(10vw, -5vh) scale(0.85); opacity: 0.3; }
}

/* Dark vignette for legibility (lighter, keep photos vivid) */
.hero-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse at center, transparent 0%, rgba(10, 16, 39, 0.25) 55%, rgba(10, 16, 39, 0.7) 100%),
    linear-gradient(180deg, rgba(10, 16, 39, 0.35) 0%, rgba(10, 16, 39, 0) 45%, rgba(10, 16, 39, 0.55) 100%);
  pointer-events: none;
}

/* Animated soundwave swoosh */
.hero-swoosh {
  position: absolute;
  bottom: 8%;
  left: 0;
  width: 100%;
  height: 200px;
  opacity: 0.4;
  pointer-events: none;
}

.swoosh-path {
  stroke-dasharray: 3000;
  stroke-dashoffset: 3000;
  animation: swoosh-draw 6s ease-out infinite alternate;
}

.swoosh-path-2 {
  animation-duration: 8s;
  animation-delay: 1s;
}

@keyframes swoosh-draw {
  0%   { stroke-dashoffset: 3000; opacity: 0; }
  20%  { opacity: 1; }
  100% { stroke-dashoffset: 0; opacity: 0.7; }
}

/* Floating particles */
.particles {
  position: absolute;
  inset: 0;
  pointer-events: none;
  overflow: hidden;
}

.particle {
  position: absolute;
  bottom: -20px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--azpc-gold);
  opacity: 0;
  box-shadow: 0 0 8px rgba(255, 211, 65, 0.6);
  animation: particle-rise linear infinite;
}

.particle.purple {
  background: var(--azpc-purple);
  box-shadow: 0 0 10px rgba(176, 72, 209, 0.7);
}

.particle.blue {
  background: var(--azpc-blue);
  box-shadow: 0 0 10px rgba(60, 131, 255, 0.7);
}

@keyframes particle-rise {
  0%   { transform: translateY(0) translateX(0); opacity: 0; }
  10%  { opacity: 0.8; }
  90%  { opacity: 0.6; }
  100% { transform: translateY(-110vh) translateX(var(--drift, 20px)); opacity: 0; }
}

/* ============================================================
   STAGE WRAP — content on top of hero
   ============================================================ */
.stage-wrap {
  position: relative;
  z-index: 10;
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 16px;
  gap: 24px;
}

/* Hero headline copy above widget (desktop) */
.hero-copy {
  text-align: center;
  color: white;
  max-width: 720px;
  animation: fade-up 0.9s ease-out 0.2s both;
}

.hero-eyebrow {
  display: inline-block;
  padding: 6px 14px;
  border: 1px solid rgba(255, 211, 65, 0.4);
  background: rgba(255, 211, 65, 0.1);
  border-radius: 999px;
  font-family: 'Raleway', sans-serif;
  font-size: 11px;
  font-weight: 700;
  color: var(--azpc-gold);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 16px;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}

.hero-headline {
  font-size: clamp(28px, 5vw, 52px);
  font-weight: 900;
  line-height: 1.05;
  color: white;
  text-shadow: 0 4px 24px rgba(0, 0, 0, 0.5);
  margin-bottom: 14px;
}

.hero-headline-accent {
  background: linear-gradient(90deg, #ffd341, #ffefbc);
  -webkit-background-clip: text;
  background-clip: text;
  -webkit-text-fill-color: transparent;
  color: transparent;
}

.hero-sub {
  font-size: clamp(14px, 1.4vw, 17px);
  color: rgba(255, 255, 255, 0.85);
  max-width: 520px;
  margin: 0 auto;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.4);
}

@keyframes fade-up {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   WIDGET — glass-morphism floating panel
   ============================================================ */
.widget-container {
  position: relative;
  width: 100%;
  max-width: 580px;
  min-height: 560px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  animation: widget-in 0.9s cubic-bezier(0.16, 1, 0.3, 1) 0.4s both;

  /* Solid card with frosted edge (readable, not transparent) */
  background: #ffffff;
  backdrop-filter: blur(20px) saturate(1.4);
  -webkit-backdrop-filter: blur(20px) saturate(1.4);

  /* Layered shadows for depth */
  box-shadow:
    0 30px 80px rgba(10, 16, 39, 0.5),
    0 12px 40px rgba(176, 72, 209, 0.15),
    0 0 0 1px rgba(255, 255, 255, 0.1);
}

@keyframes widget-in {
  from { opacity: 0; transform: translateY(30px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Animated gradient border glow */
.widget-glow {
  position: absolute;
  inset: -2px;
  border-radius: var(--radius-lg);
  padding: 2px;
  background: var(--gradient-glow);
  background-size: 300% 300%;
  -webkit-mask:
    linear-gradient(#000 0 0) content-box,
    linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
          mask-composite: exclude;
  animation: border-shift 8s linear infinite;
  opacity: 0.6;
  pointer-events: none;
  z-index: 1;
}

@keyframes border-shift {
  0%   { background-position: 0% 50%; }
  50%  { background-position: 100% 50%; }
  100% { background-position: 0% 50%; }
}

/* ============================================================
   Header
   ============================================================ */
.widget-header {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border);
  background: #ffffff;
}

.brand-logo {
  height: 34px;
  width: auto;
  display: block;
}

.header-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: rgba(16, 185, 129, 0.1);
  border: 1px solid rgba(16, 185, 129, 0.3);
  border-radius: 999px;
  font-size: 10px;
  font-weight: 700;
  color: #059669;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-family: 'Raleway', sans-serif;
}

.live-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7);
  animation: live-pulse 2s infinite;
}

@keyframes live-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0.7); }
  70%  { box-shadow: 0 0 0 8px rgba(16, 185, 129, 0); }
  100% { box-shadow: 0 0 0 0 rgba(16, 185, 129, 0); }
}

/* Progress bar */
.progress-bar-container {
  position: relative;
  z-index: 2;
  height: 3px;
  background: rgba(232, 231, 231, 0.6);
  width: 100%;
  overflow: hidden;
}

.progress-bar {
  height: 100%;
  background: var(--gradient-accent);
  width: 0%;
  transition: width 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 0 10px rgba(176, 72, 209, 0.5);
}

/* ============================================================
   Main content
   ============================================================ */
.widget-main {
  position: relative;
  z-index: 2;
  flex: 1;
  overflow-y: auto;
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  background: #ffffff;
}

.step {
  display: flex;
  flex-direction: column;
  animation: step-in 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

@keyframes step-in {
  from { opacity: 0; transform: translateX(12px); }
  to   { opacity: 1; transform: translateX(0); }
}

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

.step-eyebrow {
  display: inline-block;
  font-size: 10px;
  font-weight: 800;
  color: var(--azpc-purple);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 8px;
  font-family: 'Raleway', sans-serif;
  padding: 3px 10px;
  background: rgba(176, 72, 209, 0.08);
  border-radius: 999px;
}

.step-title {
  font-size: 22px;
  font-weight: 800;
  color: var(--azpc-navy);
  line-height: 1.2;
  margin-bottom: 6px;
}

.step-subtitle {
  font-size: 14px;
  color: var(--ink-500);
  line-height: 1.5;
}

/* ============================================================
   Text inputs
   ============================================================ */
.field-group {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

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

.field-label {
  font-size: 12px;
  font-weight: 700;
  color: var(--ink-700);
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.field-label .required-mark {
  color: var(--azpc-purple);
  margin-left: 3px;
}

.field-input {
  padding: 13px 15px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 15px;
  font-family: inherit;
  color: var(--ink-900);
  background: white;
  transition: all 0.15s;
  width: 100%;
}

.field-input:focus {
  outline: none;
  border-color: var(--azpc-blue);
  box-shadow: 0 0 0 4px rgba(60, 131, 255, 0.12);
}

.field-input.invalid {
  border-color: var(--error);
  box-shadow: 0 0 0 3px rgba(220, 38, 38, 0.1);
}

.field-error {
  font-size: 12px;
  color: var(--error);
  font-weight: 600;
  margin-top: 2px;
  display: none;
}

.field-error.show { display: block; }

.field-input::placeholder { color: #94a3b8; }

/* ============================================================
   Choice cards
   ============================================================ */
.choice-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.choice-card {
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  background: white;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
  font-family: inherit;
  color: var(--ink-900);
  width: 100%;
  position: relative;
  overflow: hidden;
}

.choice-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(176, 72, 209, 0.05), rgba(60, 131, 255, 0.05));
  opacity: 0;
  transition: opacity 0.2s;
  pointer-events: none;
}

.choice-card:hover {
  border-color: var(--azpc-blue);
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(60, 131, 255, 0.15);
}

.choice-card:hover::before { opacity: 1; }

.choice-card.selected {
  border-color: var(--azpc-purple);
  background: white;
  box-shadow:
    0 0 0 3px rgba(176, 72, 209, 0.12),
    0 8px 20px rgba(176, 72, 209, 0.18);
  transform: translateY(-1px);
}

.choice-card.selected::before {
  opacity: 1;
  background: linear-gradient(135deg, rgba(176, 72, 209, 0.08), rgba(60, 131, 255, 0.05));
}

.choice-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
  margin-top: 2px;
  position: relative;
  z-index: 1;
}

/* SVG variant — used for product-line illustrations */
.choice-icon-svg {
  width: 56px;
  height: 56px;
  padding: 8px;
  background: linear-gradient(135deg, rgba(25, 63, 129, 0.08), rgba(60, 131, 255, 0.05));
  border-radius: 12px;
  color: var(--navy, #193f81);
  transition: color 200ms ease, background 200ms ease, transform 200ms ease;
  display: flex;
  align-items: center;
  justify-content: center;
}
.choice-icon-svg svg { width: 100%; height: 100%; }

.choice-card:hover .choice-icon-svg {
  color: var(--purple, #b048d1);
  background: linear-gradient(135deg, rgba(176, 72, 209, 0.12), rgba(60, 131, 255, 0.08));
  transform: scale(1.04);
}
.choice-card.selected .choice-icon-svg {
  color: var(--purple-dark, #702f84);
  background: linear-gradient(135deg, rgba(255, 211, 65, 0.20), rgba(176, 72, 209, 0.10));
}

@media (max-width: 480px) {
  .choice-icon-svg { width: 44px; height: 44px; padding: 6px; }
}

.choice-content { flex: 1; min-width: 0; position: relative; z-index: 1; }

.choice-label {
  font-weight: 700;
  font-size: 15px;
  color: var(--ink-900);
  margin-bottom: 2px;
  font-family: 'Raleway', sans-serif;
}

.choice-desc {
  font-size: 13px;
  color: var(--ink-500);
  line-height: 1.4;
}

.choice-radio {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  border: 2px solid var(--ink-300);
  flex-shrink: 0;
  margin-top: 2px;
  transition: all 0.2s;
  position: relative;
  z-index: 1;
}

.choice-card.selected .choice-radio {
  border-color: var(--azpc-purple);
  background: var(--gradient-accent);
}

.choice-card.selected .choice-radio::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
}

/* ============================================================
   Recap
   ============================================================ */
.recap-card {
  background: linear-gradient(135deg, rgba(176, 72, 209, 0.04), rgba(60, 131, 255, 0.04));
  border-radius: var(--radius-md);
  padding: 20px;
  margin-bottom: 20px;
  border: 1px solid var(--border);
}

.recap-title {
  font-size: 11px;
  font-weight: 800;
  color: var(--azpc-purple);
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 14px;
  font-family: 'Raleway', sans-serif;
}

.recap-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-bottom: 1px solid rgba(226, 230, 238, 0.6);
  font-size: 14px;
}

.recap-row:last-child { border-bottom: none; }

.recap-label { color: var(--ink-500); flex-shrink: 0; }

.recap-value {
  color: var(--ink-900);
  font-weight: 700;
  text-align: right;
  font-family: 'Raleway', sans-serif;
}

/* ============================================================
   Footer / navigation
   ============================================================ */
.widget-footer {
  position: relative;
  z-index: 2;
  padding: 16px 24px;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #ffffff;
}

.btn {
  padding: 13px 24px;
  border-radius: var(--radius-sm);
  font-size: 14px;
  font-weight: 800;
  cursor: pointer;
  border: none;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  font-family: 'Raleway', sans-serif;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.btn:disabled { opacity: 0.35; cursor: not-allowed; }

.btn-primary {
  background: var(--gradient-cta);
  color: var(--azpc-navy);
  flex: 1;
  max-width: 260px;
  margin-left: auto;
  box-shadow:
    0 2px 6px rgba(25, 63, 129, 0.14),
    0 0 20px rgba(255, 211, 65, 0.3);
  position: relative;
  overflow: hidden;
}

.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--gradient-cta-hover);
  opacity: 0;
  transition: opacity 0.3s;
}

.btn-primary:hover:not(:disabled) {
  color: white;
  transform: translateY(-2px);
  box-shadow:
    0 8px 24px rgba(176, 72, 209, 0.35),
    0 0 30px rgba(60, 131, 255, 0.3);
}

.btn-primary:hover:not(:disabled)::before { opacity: 1; }

.btn-primary .btn-label,
.btn-primary .btn-arrow {
  position: relative;
  z-index: 1;
}

.btn-primary .btn-arrow {
  transition: transform 0.2s;
}

.btn-primary:hover:not(:disabled) .btn-arrow {
  transform: translateX(3px);
}

/* Gold pulse on enabled primary (subtle) */
.btn-primary:not(:disabled) {
  animation: cta-pulse 3s ease-in-out infinite;
}

@keyframes cta-pulse {
  0%, 100% { box-shadow: 0 2px 6px rgba(25, 63, 129, 0.14), 0 0 20px rgba(255, 211, 65, 0.3); }
  50%      { box-shadow: 0 2px 6px rgba(25, 63, 129, 0.14), 0 0 30px rgba(255, 211, 65, 0.55); }
}

.btn-back {
  background: white;
  color: var(--ink-700);
  border: 1.5px solid var(--border);
}

.btn-back:hover {
  background: var(--ink-50);
  border-color: var(--ink-300);
}

/* ============================================================
   Trust bar
   ============================================================ */
.trust-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  justify-content: center;
  align-items: center;
  color: rgba(255, 255, 255, 0.85);
  font-size: 12px;
  font-weight: 600;
  font-family: 'Raleway', sans-serif;
  letter-spacing: 0.04em;
  text-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
  animation: fade-up 0.9s ease-out 0.6s both;
}

.trust-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.trust-icon {
  color: var(--azpc-gold);
  font-weight: 900;
}

/* ============================================================
   Loader
   ============================================================ */
.loader-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 40px 20px;
  gap: 22px;
  min-height: 340px;
  text-align: center;
}

.loader-orbit {
  width: 80px;
  height: 80px;
  position: relative;
}

.loader-orbit::before,
.loader-orbit::after {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}

.loader-orbit::before {
  border-top-color: var(--azpc-purple);
  border-right-color: var(--azpc-purple);
  animation: orbit 1s linear infinite;
}

.loader-orbit::after {
  inset: 12px;
  border-bottom-color: var(--azpc-blue);
  border-left-color: var(--azpc-blue);
  animation: orbit 1.4s linear infinite reverse;
}

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

.loader-status {
  font-size: 14px;
  color: var(--ink-500);
  min-height: 20px;
  transition: opacity 0.3s;
}

.loader-title {
  font-size: 20px;
  font-weight: 800;
  color: var(--azpc-navy);
  font-family: 'Raleway', sans-serif;
}

/* ============================================================
   Results — Good/Better/Best
   ============================================================ */
.results-container {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.results-header {
  text-align: center;
  margin-bottom: 8px;
  animation: fade-up 0.6s ease-out;
}

.results-title {
  font-size: 24px;
  font-weight: 800;
  color: var(--azpc-navy);
  margin-bottom: 6px;
  font-family: 'Raleway', sans-serif;
}

.results-subtitle {
  font-size: 14px;
  color: var(--ink-500);
}

.tier-card {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-md);
  padding: 20px;
  background: white;
  position: relative;
  transition: transform 0.2s, box-shadow 0.2s;
  animation: tier-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) both;
}

.tier-card:nth-child(1) { animation-delay: 0.1s; }
.tier-card:nth-child(2) { animation-delay: 0.2s; }
.tier-card:nth-child(3) { animation-delay: 0.3s; }

@keyframes tier-in {
  from { opacity: 0; transform: translateY(16px); }
  to   { opacity: 1; transform: translateY(0); }
}

.tier-card.best {
  border: 2px solid transparent;
  background:
    linear-gradient(white, white) padding-box,
    var(--gradient-glow) border-box;
  background-size: 100% 100%, 300% 300%;
  animation: tier-in 0.5s cubic-bezier(0.16, 1, 0.3, 1) 0.1s both,
             border-shift 6s linear infinite 0.6s;
  box-shadow:
    0 12px 32px rgba(176, 72, 209, 0.18),
    0 0 40px rgba(255, 211, 65, 0.12);
  transform: scale(1.02);
}

.tier-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(25, 63, 129, 0.15);
}

.tier-card.best:hover {
  transform: scale(1.02) translateY(-3px);
}

.tier-badge {
  display: inline-block;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0.14em;
  margin-bottom: 12px;
  font-family: 'Raleway', sans-serif;
}

.tier-badge.best {
  background: var(--gradient-accent);
  color: white;
  box-shadow: 0 2px 8px rgba(176, 72, 209, 0.3);
}
.tier-badge.better { background: var(--azpc-navy); color: white; }
.tier-badge.good   { background: var(--ink-500); color: white; }

.tier-name {
  font-size: 18px;
  font-weight: 800;
  color: var(--azpc-navy);
  margin-bottom: 8px;
  font-family: 'Raleway', sans-serif;
}

.tier-price {
  font-size: 36px;
  font-weight: 900;
  color: var(--azpc-navy);
  line-height: 1;
  margin-bottom: 4px;
  font-family: 'Raleway', sans-serif;
  letter-spacing: -0.02em;
}

.tier-price-monthly {
  font-size: 13px;
  color: var(--ink-500);
  margin-bottom: 14px;
  font-weight: 600;
}

.tier-specs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.tier-spec {
  padding: 4px 10px;
  background: var(--ink-100);
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-700);
}

.tier-cta {
  width: 100%;
  padding: 13px;
  background: var(--gradient-cta);
  color: var(--azpc-navy);
  border: none;
  border-radius: var(--radius-sm);
  font-weight: 800;
  cursor: pointer;
  font-family: 'Raleway', sans-serif;
  font-size: 13px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  transition: all 0.25s;
  box-shadow: 0 2px 8px rgba(255, 211, 65, 0.4);
  position: relative;
  overflow: hidden;
}

.tier-cta:hover {
  background: var(--gradient-cta-hover);
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(176, 72, 209, 0.35);
}

/* Deal of the Decade badge block on every tier card */
.dotd-block {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 4px;
  padding: 10px 12px;
  background: linear-gradient(135deg, rgba(25, 63, 129, 0.06), rgba(176, 72, 209, 0.08));
  border: 1px solid rgba(176, 72, 209, 0.18);
  border-radius: 10px;
}
.dotd-badge {
  width: 54px;
  height: 54px;
  flex-shrink: 0;
  object-fit: contain;
  filter: drop-shadow(0 2px 4px rgba(25, 63, 129, 0.25));
}
.dotd-copy { flex: 1; min-width: 0; }
.dotd-title {
  font-family: 'Raleway', sans-serif;
  font-weight: 800;
  font-size: 13px;
  color: var(--azpc-navy, #193f81);
  letter-spacing: 0.02em;
  margin-bottom: 2px;
  text-transform: uppercase;
}
.dotd-sub {
  font-size: 12px;
  color: var(--ink-500, #64748B);
  line-height: 1.4;
}
@media (max-width: 480px) {
  .dotd-badge { width: 44px; height: 44px; }
  .dotd-title { font-size: 12px; }
  .dotd-sub { font-size: 11px; }
}

/* ServiceTitan description — collapsed by default, expandable */
.tier-description {
  font-size: 13px;
  color: var(--ink-700, #334155);
  line-height: 1.55;
  margin: 12px 0 4px;
  padding: 12px 14px;
  background: rgba(247, 248, 251, 0.5);
  border-radius: 8px;
  border-left: 3px solid var(--azpc-purple, #b048d1);
  max-height: 4.8em;
  overflow: hidden;
  position: relative;
  transition: max-height 300ms ease;
}
.tier-description::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0; right: 0;
  height: 24px;
  background: linear-gradient(to bottom, transparent, rgba(247, 248, 251, 0.95));
  pointer-events: none;
  transition: opacity 200ms ease;
}
.tier-card.expanded .tier-description {
  max-height: 2000px;
}
.tier-card.expanded .tier-description::after {
  opacity: 0;
}
.tier-description br + br { display: block; content: ''; margin-top: 4px; }
.tier-description p { margin: 0 0 6px; }
.tier-description strong { color: var(--azpc-navy, #193f81); }

.tier-desc-toggle {
  background: transparent;
  border: none;
  color: var(--azpc-blue, #3c83ff);
  font-size: 12px;
  font-weight: 700;
  padding: 4px 0;
  cursor: pointer;
  margin-bottom: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-family: 'Raleway', sans-serif;
}
.tier-desc-toggle:hover { color: var(--azpc-purple, #b048d1); }

.reassure {
  font-size: 12px;
  color: var(--ink-500);
  text-align: center;
  margin-top: 16px;
  padding: 12px;
  background: rgba(247, 248, 251, 0.6);
  border-radius: var(--radius-sm);
  line-height: 1.5;
  border: 1px solid var(--border);
}

.reassure strong { color: var(--azpc-navy); }

/* ============================================================
   Mobile
   ============================================================ */
@media (max-width: 640px) {
  .stage-wrap {
    padding: 20px 12px;
    gap: 20px;
    justify-content: flex-start;
    padding-top: 40px;
  }

  .hero-copy { padding: 0 8px; }

  .hero-headline { font-size: 30px; }
  .hero-sub { font-size: 14px; }
  .hero-eyebrow { font-size: 10px; padding: 5px 12px; }

  .widget-container {
    min-height: auto;
    max-width: 100%;
  }

  .widget-main {
    padding: 22px 18px;
  }

  .widget-header {
    padding: 14px 16px;
  }

  .brand-logo { height: 28px; }

  .step-title { font-size: 20px; }

  .trust-bar {
    font-size: 11px;
    gap: 4px 14px;
  }

  .btn { padding: 12px 18px; font-size: 13px; }
  .btn-primary { max-width: 100%; }

  .hero-swoosh { bottom: 4%; height: 120px; }
}

/* Very tall screens on desktop — center everything */
@media (min-width: 900px) and (min-height: 800px) {
  .stage-wrap {
    padding-top: 48px;
    padding-bottom: 48px;
  }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
  .hero-scene.active,
  .aurora-1, .aurora-2,
  .swoosh-path, .swoosh-path-2,
  .particle,
  .widget-glow,
  .live-dot,
  .btn-primary:not(:disabled),
  .tier-card.best {
    animation: none !important;
  }
}

/* Scrollbar polish */
.widget-main::-webkit-scrollbar { width: 6px; }
.widget-main::-webkit-scrollbar-thumb {
  background: rgba(176, 72, 209, 0.3);
  border-radius: 3px;
}
.widget-main::-webkit-scrollbar-track { background: transparent; }
