/* =================================================================
   AI Readiness Snapshot — chim.ai design system
   Aligned with .claude/chim-web-styleguide.md
   ================================================================= */

:root {
  /* Backgrounds */
  --bg-deep:    #05060b;
  --bg-blue:    #264059;
  --bg-purple:  #593154;
  --bg-blue-2:  #23354c;

  /* Accents */
  --accent-blue: #68a3df;
  --accent-pink: #ff93e4;

  /* Text */
  --text-bright:  #f5f7ff;
  --text-heading: #e6ebff;
  --text-muted:   rgba(198, 210, 255, 0.9);
  --text-faint:   rgba(243, 246, 255, 0.7);
  --text-subtle:  rgba(198, 210, 255, 0.55);

  /* Gradients */
  --grad-brand:      linear-gradient(45deg,  #68a3df 30%, #ff93e4 70%);
  --grad-brand-soft: linear-gradient(160deg, #68a3df 30%, #ff93e4 70%);
  --grad-bg:         linear-gradient(180deg, #593154 0%,  #23354c 100%);

  /* Glass */
  --glass-fill:   linear-gradient(135deg, rgba(14, 18, 30, 0.72), rgba(6, 10, 18, 0.72));
  --glass-border: 1px solid rgba(198, 210, 255, 0.08);
  --glass-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  --border-subtle: rgba(198, 210, 255, 0.10);
  --border-hover:  rgba(198, 210, 255, 0.20);

  /* Radius */
  --r-sm: 12px;
  --r-md: 20px;
  --r-lg: 28px;
  --r-pill: 999px;

  /* Type & motion */
  --font: 'Livvic', system-ui, -apple-system, sans-serif;
  --ease: cubic-bezier(0.2, 0.7, 0.2, 1);

  /* Layout */
  --header-height: 52px;

  /* Legacy aliases (kept for any inline references) */
  --bg-black: #05060b;
  --blue-accent: var(--accent-blue);
  --pink-accent: var(--accent-pink);
  --gradient: var(--grad-brand);
  --shadow-panel: var(--glass-shadow);
  --radius: var(--r-md);
  --radius-sm: var(--r-sm);
  --radius-xs: 8px;
}

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

html, body {
  min-height: 100%;
  background: var(--grad-bg);
  background-attachment: fixed;
  color: var(--text-bright);
  font-family: var(--font);
  font-weight: 300;
  font-size: 15px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

/* Atmospheric overlay — twin radial blooms, fixed, always behind content */
body::before {
  content: '';
  position: fixed; inset: 0;
  pointer-events: none;
  z-index: 0;
  background:
    radial-gradient(700px 500px at 85% 10%, rgba(104, 163, 223, 0.12), transparent 60%),
    radial-gradient(600px 400px at 10% 90%, rgba(255, 147, 228, 0.08), transparent 60%);
}

/* ===== Header ===== */
.assess-header {
  position: fixed; top: 0; left: 0;
  width: 100%;
  height: var(--header-height);
  background: rgba(8, 9, 14, 0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  padding: 0 24px;
  z-index: 1000;
  border-bottom: 1px solid rgba(198, 210, 255, 0.04);
}
.header-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

/* ===== Progress bar ===== */
.progress-bar {
  position: fixed;
  top: var(--header-height);
  left: 0;
  width: 100%;
  height: 2px;
  background: rgba(255, 255, 255, 0.06);
  z-index: 999;
  transition: opacity 0.3s var(--ease);
}
.progress-fill {
  height: 100%;
  background: var(--grad-brand);
  width: 0%;
  transition: width 0.6s var(--ease);
  border-radius: 0 2px 2px 0;
  box-shadow: 0 0 12px rgba(255, 147, 228, 0.4);
}

/* ===== Layout ===== */
#snapshot-app,
#confirmed-app {
  position: relative;
  z-index: 1;
  padding-top: calc(var(--header-height) + 56px);
  padding-bottom: 96px;
  padding-left: 24px;
  padding-right: 24px;
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
}

.screen { animation: screenIn 0.5s var(--ease) both; }
.screen-out { animation: screenOut 0.3s ease-in both; }
@keyframes screenIn {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
@keyframes screenOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(-16px); }
}

/* ===== Section heading pattern (eyebrow + accent bar + title + subtitle) ===== */
.section-head {
  margin-bottom: 32px;
  position: relative;
}
.eyebrow {
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-pink);
  font-weight: 500;
  margin-bottom: 14px;
}
.step-indicator {
  position: absolute;
  top: 0;
  right: 0;
  font-size: 11px;
  line-height: 1.6;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  font-weight: 500;
  color: var(--text-faint);
}
.accent-bar {
  height: 2px;
  width: 60px;
  background: var(--grad-brand);
  border-radius: 2px;
  margin-bottom: 18px;
}

.screen-title {
  font-size: clamp(1.9rem, 4.5vw, 2.4rem);
  font-weight: 300;
  color: var(--text-heading);
  margin-bottom: 12px;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.screen-title.gradient {
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.screen-subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 32px;
  line-height: 1.55;
  max-width: 60ch;
}

/* ===== Glass panel ===== */
.panel {
  background: var(--glass-fill);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: var(--r-md);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  padding: 28px;
  margin-bottom: 24px;
}

/* ===== Hero (welcome screen) ===== */
.welcome-screen {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
}
.hero {
  position: relative;
  padding: 64px 40px 56px;
  border-radius: var(--r-lg);
  background: var(--glass-fill);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  text-align: center;
  overflow: hidden;
  width: 100%;
}
.hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 147, 228, .22), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(104, 163, 223, .18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.hero .eyebrow {
  position: relative; z-index: 1;
  color: var(--text-faint);
  letter-spacing: 0.2em;
  margin-bottom: 24px;
}
.hero-title {
  font-size: clamp(2.6rem, 7vw, 4.2rem);
  font-weight: 200;
  line-height: 1.15;
  letter-spacing: -0.03em;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  position: relative; z-index: 1;
  margin: 0 auto;
  max-width: 18ch;
  padding-bottom: 0.08em;
}
.hero-desc {
  margin: 24px auto 0;
  max-width: 52ch;
  color: var(--text-muted);
  font-size: 1.05rem;
  font-weight: 300;
  line-height: 1.55;
  position: relative; z-index: 1;
}
.hero-meta {
  margin-top: 24px;
  font-size: 11px;
  color: var(--text-faint);
  letter-spacing: 0.14em;
  text-transform: uppercase;
  font-weight: 500;
  position: relative; z-index: 1;
}
.hero-cta {
  margin-top: 36px;
  position: relative; z-index: 1;
}

/* ===== Form inputs ===== */
.form-group { margin-bottom: 20px; }
.form-group label {
  display: block;
  font-weight: 500;
  font-size: 0.7rem;
  color: var(--text-faint);
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 10px;
}
.form-input {
  width: 100%;
  padding: 14px 18px;
  background: rgba(245, 247, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  color: var(--text-bright);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease);
}
.form-input:focus {
  border-color: var(--accent-blue);
  background: rgba(245, 247, 255, 0.07);
}
.form-input::placeholder { color: var(--text-subtle); }

textarea.form-input { resize: vertical; min-height: 100px; }

.form-select {
  width: 100%;
  padding: 14px 18px;
  background: rgba(14, 18, 30, 0.6);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  color: var(--text-bright);
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 300;
  appearance: none;
  cursor: pointer;
  transition: border-color 0.2s var(--ease);
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23ff93e4' d='M6 8L0 0h12z'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 18px center;
}
.form-select:focus { outline: none; border-color: var(--accent-blue); }
.form-select option { background: #0a0b10; color: var(--text-bright); }

/* ===== Big text area ===== */
.big-textarea {
  width: 100%;
  padding: 22px;
  background: rgba(245, 247, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  color: var(--text-bright);
  font-family: var(--font);
  font-size: 1.1rem;
  font-weight: 300;
  line-height: 1.6;
  outline: none;
  resize: none;
  min-height: 160px;
  transition: border-color 0.3s var(--ease);
}
.big-textarea:focus { border-color: var(--accent-pink); }
.big-textarea::placeholder { color: var(--text-subtle); }

/* ===== Micro feedback ===== */
.micro-feedback {
  margin-top: 20px;
  padding: 16px 20px;
  background: rgba(255, 147, 228, 0.06);
  border: 1px solid rgba(255, 147, 228, 0.18);
  border-left: 2px solid var(--accent-pink);
  border-radius: var(--r-sm);
  color: var(--text-bright);
  font-size: 0.95rem;
  font-weight: 300;
  line-height: 1.55;
  animation: feedbackIn 0.45s var(--ease) both;
}
@keyframes feedbackIn {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border: none;
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-weight: 500;
  font-size: 0.92rem;
  letter-spacing: 0.04em;
  cursor: pointer;
  transition: all 0.2s var(--ease);
  text-decoration: none;
}

.btn-primary {
  background: var(--text-bright);
  color: var(--bg-deep);
}
.btn-primary:hover {
  background: var(--accent-pink);
  color: var(--bg-deep);
}
.btn-primary:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  background: rgba(245, 247, 255, 0.6);
}

.btn-gradient {
  background: var(--grad-brand);
  color: var(--bg-deep);
  font-weight: 600;
}
.btn-gradient:hover {
  filter: brightness(1.1);
  box-shadow: 0 8px 24px rgba(255, 147, 228, 0.25);
}
.btn-gradient:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  filter: none;
  box-shadow: none;
}

.btn-ghost {
  background: rgba(245, 247, 255, 0.06);
  color: var(--text-bright);
  border: 1px solid rgba(198, 210, 255, 0.15);
}
.btn-ghost:hover {
  background: rgba(245, 247, 255, 0.12);
  border-color: var(--accent-pink);
}

.btn-secondary {
  background: rgba(245, 247, 255, 0.06);
  color: var(--text-bright);
  border: 1px solid var(--border-subtle);
}
.btn-secondary:hover { background: rgba(245, 247, 255, 0.12); }

.btn-next {
  width: 100%;
  margin-top: 28px;
  padding: 15px;
  font-size: 1rem;
}

/* ===== Checkbox ===== */
.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  cursor: pointer;
  margin-top: 12px;
}
.checkbox-row input[type="checkbox"] {
  width: 18px; height: 18px;
  margin-top: 3px;
  accent-color: var(--accent-pink);
  flex-shrink: 0;
}
.checkbox-row span {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
}

/* ===== Size chips ===== */
.size-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}
.size-chips .chip {
  padding: 9px 18px;
  border-radius: var(--r-pill);
  border: 1px solid var(--border-subtle);
  background: rgba(245, 247, 255, 0.04);
  color: var(--text-muted);
  font-family: var(--font);
  font-size: 0.92rem;
  font-weight: 400;
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.size-chips .chip:hover {
  border-color: var(--border-hover);
  color: var(--text-bright);
}
.size-chips .chip.selected {
  background: rgba(104, 163, 223, 0.14);
  border-color: var(--accent-blue);
  color: var(--text-bright);
}

/* ===== Self-assessment slider ===== */
.self-slider-container { margin-top: 8px; }
.self-slider-track {
  width: 100%;
  -webkit-appearance: none;
  appearance: none;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, rgba(104, 163, 223, 0.3), rgba(255, 147, 228, 0.3));
  outline: none;
  cursor: pointer;
}
.self-slider-track::-webkit-slider-thumb {
  -webkit-appearance: none;
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-pink);
  cursor: pointer;
  box-shadow: 0 2px 10px rgba(255, 147, 228, 0.35);
  transition: transform 0.15s var(--ease);
}
.self-slider-track::-webkit-slider-thumb:hover { transform: scale(1.1); }
.self-slider-track::-moz-range-thumb {
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--accent-pink);
  cursor: pointer;
  border: none;
  box-shadow: 0 2px 10px rgba(255, 147, 228, 0.35);
}
.self-slider-label {
  text-align: center;
  margin-top: 24px;
}
.self-slider-value {
  font-size: 3.4rem;
  font-weight: 200;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1;
  letter-spacing: -0.03em;
}
.self-slider-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-top: 8px;
  font-weight: 300;
}

/* ===== Energy cards (pick-two) ===== */
.energy-cards-wrap { margin: 24px 0; }
.energy-cards {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.energy-card {
  position: relative;
  padding: 22px 20px;
  border-radius: var(--r-sm);
  border: 1px solid var(--border-subtle);
  background: var(--glass-fill);
  cursor: pointer;
  transition: border-color 0.25s var(--ease),
              background 0.25s var(--ease),
              box-shadow 0.25s var(--ease),
              transform 0.25s var(--ease);
  text-align: left;
}
.energy-card h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.energy-card p {
  font-size: 0.85rem;
  color: var(--text-subtle);
  line-height: 1.45;
  font-weight: 300;
}
.energy-card:hover {
  border-color: rgba(255, 147, 228, 0.3);
  transform: translateY(-2px);
}
.energy-card.picked {
  background: rgba(104, 163, 223, 0.12);
  border-color: var(--accent-blue);
  box-shadow: 0 0 24px rgba(104, 163, 223, 0.14);
}
.energy-card.picked::after {
  content: '';
  position: absolute;
  top: 14px; right: 14px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--accent-pink);
  box-shadow: 0 0 8px rgba(255, 147, 228, 0.45);
}
.energy-card.faded {
  opacity: 0.4;
  pointer-events: none;
}

/* Awaiting-second: subtle pink "breath" on the unpicked options */
.energy-cards.awaiting-second .energy-card:not(.picked) {
  animation: cardBreath 2.4s ease-in-out infinite;
}
@keyframes cardBreath {
  0%, 100% {
    border-color: var(--border-subtle);
    box-shadow: 0 0 0 rgba(255, 147, 228, 0);
  }
  50% {
    border-color: rgba(255, 147, 228, 0.42);
    box-shadow: 0 0 24px rgba(255, 147, 228, 0.14);
  }
}

/* Slot indicator: two dots, fill as user picks */
.energy-slots {
  display: flex;
  justify-content: center;
  gap: 14px;
  margin-top: 22px;
}
.slot-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1.5px solid rgba(198, 210, 255, 0.3);
  background: transparent;
  transition: all 0.3s var(--ease);
}
.slot-dot.filled {
  background: var(--accent-pink);
  border-color: transparent;
  box-shadow: 0 0 8px rgba(255, 147, 228, 0.4);
}
.slot-dot.pending {
  animation: slotPulse 1.6s ease-in-out infinite;
}
@keyframes slotPulse {
  0%, 100% {
    border-color: rgba(255, 147, 228, 0.4);
    box-shadow: 0 0 0 rgba(255, 147, 228, 0);
    transform: scale(1);
  }
  50% {
    border-color: var(--accent-pink);
    box-shadow: 0 0 14px rgba(255, 147, 228, 0.5);
    transform: scale(1.15);
  }
}

@media (max-width: 500px) {
  .energy-cards { grid-template-columns: 1fr; }
}

/* ===== Chip cloud (toolkit) ===== */
.chip-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 8px;
}
.chip-cloud .chip {
  padding: 9px 16px;
  background: rgba(245, 247, 255, 0.04);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-pill);
  font-family: var(--font);
  font-size: 0.88rem;
  font-weight: 400;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s var(--ease);
  user-select: none;
}
.chip-cloud .chip:hover {
  background: rgba(245, 247, 255, 0.08);
  border-color: var(--border-hover);
  color: var(--text-bright);
}
.chip-cloud .chip.selected {
  background: rgba(104, 163, 223, 0.14);
  border-color: var(--accent-blue);
  color: var(--text-bright);
}
.chip-cloud .chip.selected::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--grad-brand);
  margin-right: 8px;
  vertical-align: middle;
  box-shadow: 0 0 6px rgba(255, 147, 228, 0.6);
}

/* ===== Loading screen — luminous pulsing dot ===== */
.loading-container {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  min-height: 60vh;
  text-align: center;
}
.loading-spinner {
  width: 16px;
  height: 16px;
  border-radius: 50%;
  border: none;
  background: var(--grad-brand);
  box-shadow: 0 0 30px rgba(255, 147, 228, 0.6);
  margin: 0 auto 36px;
  animation: loadingPulse 1.6s ease-in-out infinite;
}
@keyframes loadingPulse {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
    box-shadow: 0 0 30px rgba(255, 147, 228, 0.6);
  }
  50% {
    transform: scale(1.55);
    opacity: 0.7;
    box-shadow: 0 0 60px rgba(255, 147, 228, 0.9);
  }
}
.loading-text {
  font-size: 1.05rem;
  color: var(--text-muted);
  font-weight: 300;
  opacity: 0;
  transition: opacity 0.6s var(--ease);
  margin: 8px 0;
}
.loading-text.visible { opacity: 1; }
.loading-text.done    { opacity: 0.3; }

/* ===== Result sections (sequential reveal) ===== */
.result-section {
  margin-bottom: 56px;
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.result-section.visible {
  opacity: 1;
  transform: translateY(0);
}
.result-section-title {
  position: relative;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-pink);
  font-weight: 500;
  padding-bottom: 14px;
  margin-bottom: 18px;
}
.result-section-title::after {
  content: '';
  position: absolute;
  bottom: 0; left: 0;
  width: 60px; height: 2px;
  background: var(--grad-brand);
  border-radius: 2px;
}

/* ===== Result hero (stage badge) ===== */
.result-hero {
  position: relative;
  padding: 56px 32px;
  border-radius: var(--r-lg);
  background: var(--glass-fill);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  text-align: center;
  overflow: hidden;
}
.result-hero::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 500px; height: 500px;
  background: radial-gradient(circle, rgba(255, 147, 228, .18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.result-hero::after {
  content: '';
  position: absolute;
  bottom: -40%; left: -10%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(104, 163, 223, .18), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.result-hero .eyebrow {
  position: relative; z-index: 1;
  color: var(--text-faint);
  letter-spacing: 0.2em;
  margin-bottom: 18px;
}
.welcome-title {
  position: relative; z-index: 1;
  font-size: clamp(1.4rem, 3vw, 1.75rem);
  font-weight: 300;
  color: var(--text-heading);
  letter-spacing: -0.015em;
  line-height: 1.3;
  margin: 0 auto 32px;
  max-width: 28ch;
}
.stage-prelude {
  margin-bottom: 12px !important;
  color: var(--accent-pink) !important;
}
.stage-badge { position: relative; z-index: 1; }
.stage-number {
  font-size: clamp(3.4rem, 9vw, 5rem);
  font-weight: 200;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  line-height: 1.18;
  padding-bottom: 0.05em;
  letter-spacing: -0.03em;
}
.stage-label {
  font-size: 1.4rem;
  font-weight: 400;
  color: var(--text-heading);
  margin-top: 10px;
  letter-spacing: -0.01em;
}
.stage-explanation {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 1.6;
  max-width: 56ch;
  margin: 18px auto 0;
  font-weight: 300;
  position: relative; z-index: 1;
}

/* ===== Stage progress ===== */
.stage-progress {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  margin: 32px auto 28px;
  max-width: 480px;
  position: relative;
  z-index: 1;
}
.stage-progress-segment {
  display: flex;
  flex-direction: column;
  align-items: center;
  position: relative;
  flex: 1 1 0;
}
.stage-dot {
  width: 12px; height: 12px;
  border-radius: 50%;
  border: 2px solid rgba(198, 210, 255, 0.2);
  background: transparent;
  position: relative;
  z-index: 1;
  transition: all 0.3s var(--ease);
}
.stage-dot.completed {
  background: var(--accent-blue);
  border-color: var(--accent-blue);
}
.stage-dot.active {
  width: 18px; height: 18px;
  margin-top: -3px;
  background: var(--accent-pink);
  border-color: transparent;
  box-shadow: 0 0 12px rgba(255, 147, 228, 0.45);
}
.stage-dot-label {
  font-size: 0.62rem;
  letter-spacing: 0.06em;
  color: var(--text-subtle);
  margin-top: 8px;
  white-space: nowrap;
  font-weight: 500;
  text-transform: uppercase;
}
.stage-dot-label.active { color: var(--accent-pink); }
.stage-line {
  position: absolute;
  top: 7px;
  left: calc(50% + 9px);
  right: calc(-50% + 9px);
  height: 2px;
  background: rgba(198, 210, 255, 0.12);
}
.stage-line.completed { background: var(--accent-blue); }

@media (max-width: 420px) {
  .stage-progress { max-width: 100%; }
  .stage-dot-label { font-size: 0.55rem; }
}

/* ===== Energy gap (Now → With AI) ===== */
.energy-gap {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 16px;
  align-items: stretch;
}
.energy-gap-col {
  text-align: center;
  padding: 22px 18px;
  border-radius: var(--r-sm);
  background: rgba(245, 247, 255, 0.03);
  border: 1px solid var(--border-subtle);
}
.energy-gap-col h4 {
  font-size: 11px;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: var(--accent-pink);
  margin-bottom: 14px;
}
.energy-gap-item {
  padding: 10px 14px;
  border-radius: var(--r-sm);
  background: rgba(14, 18, 30, 0.5);
  border: 1px solid var(--border-subtle);
  margin-bottom: 8px;
  font-size: 0.9rem;
  color: var(--text-bright);
  font-weight: 400;
}
.energy-gap-item:last-child { margin-bottom: 0; }
.energy-gap-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  background: var(--grad-brand);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  font-weight: 300;
}
.energy-gap-text {
  margin-top: 18px;
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  font-weight: 300;
}
@media (max-width: 500px) {
  .energy-gap { grid-template-columns: 1fr; }
  .energy-gap-arrow { transform: rotate(90deg); padding: 8px 0; }
}

/* ===== Blocker cards ===== */
.blocker-card {
  position: relative;
  padding: 24px 26px;
  border-radius: var(--r-sm);
  background: var(--glass-fill);
  border: var(--glass-border);
  margin-bottom: 14px;
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.blocker-card:hover {
  border-color: rgba(255, 147, 228, 0.25);
  transform: translateY(-2px);
}
.blocker-kicker {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-pink);
  font-weight: 500;
  margin-bottom: 8px;
}
.blocker-card h4 {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.blocker-card .blocker-why {
  font-size: 0.92rem;
  color: var(--text-muted);
  margin-bottom: 14px;
  font-weight: 300;
  line-height: 1.55;
}
.blocker-card .blocker-action {
  font-size: 0.92rem;
  color: var(--accent-blue);
  font-weight: 400;
  padding-top: 14px;
  border-top: 1px solid rgba(104, 163, 223, 0.15);
  line-height: 1.55;
}
.blocker-card .blocker-action::before {
  content: "→ ";
  color: var(--accent-pink);
  font-weight: 500;
}

/* ===== Prompt block ===== */
.prompt-block {
  position: relative;
  background: rgba(6, 10, 18, 0.7);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
  padding: 22px;
  padding-top: 52px;
  font-family: ui-monospace, "SF Mono", Menlo, monospace;
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.7;
  white-space: pre-wrap;
  word-wrap: break-word;
}
.prompt-block-secondary {
  padding-top: 22px;
  margin-top: 12px;
}
.prompt-copy-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  padding: 6px 14px;
  font-size: 0.7rem;
  font-family: var(--font);
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  background: rgba(245, 247, 255, 0.06);
  border: 1px solid rgba(198, 210, 255, 0.15);
  border-radius: var(--r-pill);
  color: var(--text-bright);
  cursor: pointer;
  transition: all 0.2s var(--ease);
}
.prompt-copy-btn:hover {
  background: rgba(245, 247, 255, 0.12);
  border-color: var(--accent-pink);
  color: var(--accent-pink);
}

/* ===== Quick wins ===== */
.quick-win {
  padding: 14px 16px 14px 22px;
  border-left: 2px solid var(--accent-pink);
  margin-bottom: 12px;
  font-size: 0.95rem;
  color: var(--text-bright);
  line-height: 1.55;
  font-weight: 300;
}
.quick-win-number {
  font-weight: 500;
  color: var(--accent-pink);
  margin-right: 6px;
}

/* ===== Tool cards ===== */
.tool-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.tool-card {
  padding: 20px;
  border-radius: var(--r-sm);
  background: var(--glass-fill);
  border: var(--glass-border);
  transition: border-color 0.3s var(--ease), transform 0.3s var(--ease);
}
.tool-card:hover {
  border-color: rgba(255, 147, 228, 0.25);
  transform: translateY(-2px);
}
.tool-card h4 {
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.tool-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
}

/* ===== Benchmark line / time-savings line ===== */
.benchmark-line,
.time-savings-line {
  font-size: 1.1rem;
  font-weight: 300;
  color: var(--text-heading);
  line-height: 1.55;
  letter-spacing: -0.005em;
  padding: 22px 26px;
  background: rgba(245, 247, 255, 0.03);
  border: 1px solid var(--border-subtle);
  border-radius: var(--r-sm);
}

/* ===== 30-day roadmap blocks ===== */
.roadmap-block {
  position: relative;
  padding: 22px 24px;
  border-radius: var(--r-sm);
  background: rgba(245, 247, 255, 0.03);
  border: 1px solid var(--border-subtle);
  margin-bottom: 12px;
}
.roadmap-label {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-pink);
  font-weight: 500;
  margin-bottom: 8px;
}
.roadmap-focus {
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 8px;
  letter-spacing: -0.005em;
}
.roadmap-action {
  font-size: 0.92rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 300;
}

/* ===== Honest line — testimonial pattern with German guillemets ===== */
.honest-line-final {
  position: relative;
  margin-top: 16px;
  padding: 40px 36px;
  text-align: center;
  background: var(--glass-fill);
  border: var(--glass-border);
  border-radius: var(--r-md);
  box-shadow: var(--glass-shadow);
  overflow: hidden;
}
.honest-line-final::before {
  content: '"';
  position: absolute;
  top: 8px;
  right: 24px;
  font-size: 96px;
  color: rgba(255, 147, 228, 0.12);
  line-height: 1;
  font-weight: 300;
}
.honest-line-final q {
  display: block;
  font-size: 1.18rem;
  font-weight: 300;
  color: var(--text-heading);
  line-height: 1.5;
  letter-spacing: -0.005em;
  quotes: "»" "«";
  position: relative;
  z-index: 1;
  max-width: 56ch;
  margin: 0 auto;
}

/* ===== Blurred role-prompt teaser ===== */
.prompt-blur {
  position: relative;
  max-height: 220px;
  overflow: hidden;
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 100%);
          mask-image: linear-gradient(180deg, #000 0%, #000 28%, transparent 100%);
}
.prompt-blur::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 60%;
  background: linear-gradient(180deg, transparent 0%, rgba(6, 10, 18, 0.85) 100%);
  pointer-events: none;
}
.prompt-tease {
  margin-top: 14px;
  padding: 16px 18px;
  text-align: center;
  font-size: 0.92rem;
  color: var(--text-muted);
  font-weight: 300;
  line-height: 1.55;
  border: 1px dashed rgba(255, 147, 228, 0.25);
  border-radius: var(--r-sm);
  background: rgba(255, 147, 228, 0.04);
}
.prompt-tease b {
  color: var(--text-heading);
  font-weight: 500;
}

/* ===== "More after confirm" footer on Zone-A blocker preview ===== */
.more-after-confirm {
  margin-top: 14px;
  padding: 14px 18px;
  text-align: center;
  font-size: 0.85rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  border: 1px dashed rgba(198, 210, 255, 0.15);
  border-radius: var(--r-sm);
  font-weight: 400;
}

/* ===== Email wall enhancements ===== */
.wall-eyebrow {
  position: relative; z-index: 1;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-pink);
  font-weight: 500;
  margin-bottom: 14px;
}
.wall-kit-cards {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin: 8px 0 28px;
}
.wall-kit-card {
  text-align: left;
  padding: 18px 18px 16px;
  border-radius: var(--r-sm);
  background: rgba(245, 247, 255, 0.04);
  border: 1px solid var(--border-subtle);
}
.wall-kit-num {
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--accent-pink);
  font-weight: 500;
  margin-bottom: 8px;
}
.wall-kit-card h4 {
  font-size: 0.98rem;
  font-weight: 500;
  color: var(--text-heading);
  margin-bottom: 6px;
  letter-spacing: -0.005em;
}
.wall-kit-card p {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  font-weight: 300;
}
.wall-meta {
  margin-top: 14px;
  font-size: 0.78rem;
  color: var(--text-faint);
  letter-spacing: 0.04em;
  position: relative; z-index: 1;
}
@media (max-width: 500px) {
  .wall-kit-cards { grid-template-columns: 1fr; }
}

/* ===== Pending state (replaces wall after submit) ===== */
.pending-card {
  position: relative;
  margin-top: 56px;
  padding: 44px 36px;
  border-radius: var(--r-lg);
  background: var(--glass-fill);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  text-align: center;
  overflow: hidden;
}
.pending-card::before {
  content: '';
  position: absolute;
  top: -40%; right: -20%;
  width: 400px; height: 400px;
  background: radial-gradient(circle, rgba(255, 147, 228, .14), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.pending-card-confirmed::before {
  background: radial-gradient(circle, rgba(104, 163, 223, .14), transparent 60%);
}
.pending-icon {
  position: relative; z-index: 1;
  width: 48px; height: 48px;
  margin: 0 auto 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(255, 147, 228, 0.12);
  color: var(--accent-pink);
  font-size: 22px;
}
.pending-card-confirmed .pending-icon {
  background: rgba(104, 163, 223, 0.14);
  color: var(--accent-blue);
}
.pending-card h2 {
  position: relative; z-index: 1;
  font-size: 1.6rem;
  font-weight: 300;
  color: var(--text-heading);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
}
.pending-card p {
  position: relative; z-index: 1;
  font-size: 0.98rem;
  color: var(--text-muted);
  line-height: 1.55;
  font-weight: 300;
  max-width: 50ch;
  margin: 0 auto 20px;
}
.pending-card p b {
  color: var(--text-bright);
  font-weight: 500;
}
.pending-actions {
  position: relative; z-index: 1;
  margin-top: 8px;
  display: flex;
  justify-content: center;
}
.pending-meta {
  position: relative; z-index: 1;
  margin-top: 18px;
  font-size: 0.8rem;
  color: var(--text-faint);
  letter-spacing: 0.03em;
}

/* ===== "Going further" closing card on the confirmed page ===== */
.next-step-card {
  padding: 28px 30px 30px;
  border-radius: var(--r-md);
  background: rgba(245, 247, 255, 0.03);
  border: 1px solid var(--border-subtle);
}
.next-step-card p {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--text-muted);
  font-weight: 300;
  margin-bottom: 22px;
  max-width: 64ch;
}
.next-step-cta {
  display: flex;
  justify-content: flex-start;
}

/* ===== Email gate ===== */
.email-gate {
  position: relative;
  margin-top: 56px;
  padding: 48px 36px;
  border-radius: var(--r-lg);
  background: var(--glass-fill);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: var(--glass-border);
  box-shadow: var(--glass-shadow);
  text-align: center;
  overflow: hidden;
}
.email-gate::before {
  content: '';
  position: absolute;
  top: -40%;
  right: -20%;
  width: 400px;
  height: 400px;
  background: radial-gradient(circle, rgba(255, 147, 228, .15), transparent 60%);
  filter: blur(40px);
  pointer-events: none;
}
.email-gate h2 {
  font-size: 1.7rem;
  font-weight: 300;
  color: var(--text-heading);
  margin-bottom: 10px;
  letter-spacing: -0.02em;
  position: relative;
  z-index: 1;
}
.email-gate .gate-subtitle {
  font-size: 0.98rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  line-height: 1.55;
  font-weight: 300;
  max-width: 50ch;
  margin-left: auto;
  margin-right: auto;
  position: relative;
  z-index: 1;
}
.email-gate .form-group {
  text-align: left;
  margin-bottom: 16px;
  position: relative;
  z-index: 1;
}
.email-gate label {
  display: block;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 8px;
  font-weight: 500;
}
.email-gate .form-input {
  background: rgba(14, 18, 30, 0.6);
}
.email-gate .checkbox-row {
  position: relative;
  z-index: 1;
  text-align: left;
}
.email-gate #gateSubmit {
  margin-top: 20px;
  position: relative;
  z-index: 1;
}
.gate-success {
  padding: 22px 24px;
  background: rgba(0, 200, 120, 0.06);
  border: 1px solid rgba(0, 200, 120, 0.2);
  border-radius: var(--r-sm);
  color: rgba(0, 220, 130, 0.9);
  font-size: 0.95rem;
  line-height: 1.55;
  position: relative;
  z-index: 1;
}

/* ===== Error state ===== */
.error-state {
  text-align: center;
  padding: 80px 24px;
}
.error-state h1 {
  font-size: 1.8rem;
  font-weight: 300;
  color: var(--text-heading);
  margin-bottom: 12px;
  letter-spacing: -0.01em;
}
.error-state p {
  color: var(--text-muted);
  font-weight: 300;
}

/* ===== Responsive ===== */
@media (max-width: 600px) {
  #snapshot-app,
  #confirmed-app {
    padding-left: 16px;
    padding-right: 16px;
    padding-top: calc(var(--header-height) + 32px);
  }
  .panel { padding: 22px 18px; }
  .hero { padding: 48px 24px 40px; }
  .stage-number { font-size: 3rem; }
  .stage-label { font-size: 1.2rem; }
  .self-slider-value { font-size: 2.6rem; }
  .result-hero { padding: 40px 24px; }
  .email-gate { padding: 36px 24px; }
  .blocker-card { padding: 20px 22px; }
  .honest-line-final { padding: 32px 24px; }
  .honest-line-final q { font-size: 1.05rem; }
}
