/* Intro Card */
.intro-card {
  max-width: 620px;
  margin: var(--sp-8) auto;
  padding: 0 var(--sp-4);
}

.intro-hero {
  background-color: var(--pool);
  background-image:
    linear-gradient(var(--tile-color-dark) 1px, transparent 1px),
    linear-gradient(90deg, var(--tile-color-dark) 1px, transparent 1px);
  background-size: var(--tile-size-hero) var(--tile-size-hero);
  border-radius: var(--r-lg);
  padding: 32px;
  color: var(--white);
  text-align: center;
  margin-bottom: var(--sp-5);
}

.intro-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.6;
  margin-bottom: var(--sp-3);
}

.intro-title {
  font-family: 'Fraunces', serif;
  font-size: 26px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.25;
  margin-bottom: var(--sp-4);
  color: var(--white);
}

.intro-body {
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.85;
  max-width: 480px;
  margin: 0 auto;
}

.intro-stats {
  display: flex;
  justify-content: center;
  gap: var(--sp-8);
  padding: var(--sp-5) 0;
  margin-bottom: var(--sp-5);
  border-bottom: 1px solid var(--border);
}

.intro-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-1);
}

.stat-value {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--stone);
}

.stat-label {
  font-size: 12px;
  color: var(--text-3);
}

.intro-cta {
  display: block;
  width: 100%;
  max-width: 280px;
  margin: 0 auto;
  padding: 14px 28px;
  font-size: 15px;
}

/* Questionnaire Container */
.questionnaire {
  max-width: 620px;
  margin: 0 auto;
  padding: var(--sp-6) var(--sp-4) var(--sp-12);
}

/* Question States */

/* Answered Question (Compact Row) */
.question-answered {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: 0;
}

.question-answered .droplet-icon {
  flex-shrink: 0;
}

.question-answered .droplet-icon svg {
  width: 18px;
  height: 18px;
}

.answer-content {
  flex: 1;
  min-width: 0;
}

.answer-phase {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: var(--text-3);
  margin-bottom: 2px;
}

.answer-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
}

.answer-value {
  color: var(--pool);
  margin-left: var(--sp-2);
}

.btn-edit {
  background: none;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  padding: 6px 12px;
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-edit:hover {
  border-color: var(--pool);
  color: var(--pool);
}

/* Active Question (Expanded Card with Amber Border) */
.question-active {
  background: var(--surface);
  border: 1px solid var(--border);
  border-top: 3px solid var(--sun);
  border-radius: var(--r);
  padding: var(--sp-5);
  margin-bottom: 0;
}

.question-active .q-phase {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #8A5800;
  background: #FEF3DA;
  padding: 2px 9px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: var(--sp-2);
}

.question-active .q-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--stone);
  margin-bottom: var(--sp-2);
}

.question-active .q-subtitle {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: var(--sp-5);
}

/* Editing Question (Expanded Card with Teal Border + Glow) */
.question-editing {
  background: var(--surface);
  border: 1.5px solid var(--pool);
  border-radius: var(--r);
  padding: var(--sp-5);
  margin-bottom: 0;
  box-shadow: 0 0 0 4px rgba(11, 123, 138, 0.15);
}

.question-editing .q-phase {
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.08em;
  color: #8A5800;
  background: #FEF3DA;
  padding: 2px 9px;
  border-radius: 20px;
  display: inline-block;
  margin-bottom: var(--sp-2);
}

.question-editing .q-title {
  font-family: 'Fraunces', serif;
  font-size: 20px;
  font-weight: 400;
  color: var(--stone);
  margin-bottom: var(--sp-2);
}

.question-editing .q-subtitle {
  font-size: 13px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: var(--sp-5);
}

/* Options List */
.options-list {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.option-btn {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.option-btn:hover {
  border-color: var(--teal-border);
  background: var(--pool-light);
}

.option-btn.selected {
  border-color: var(--pool);
  background: var(--pool-light);
}

.option-radio {
  width: 18px;
  height: 18px;
  border: 2px solid var(--border-2);
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: border-color 0.2s ease;
}

.option-btn:hover .option-radio {
  border-color: var(--pool);
}

.option-btn.selected .option-radio {
  border-color: var(--pool);
}

.option-radio-fill {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: var(--pool);
  opacity: 0;
  transition: opacity 0.2s ease;
}

.option-btn.selected .option-radio-fill {
  opacity: 1;
}

.option-content {
  flex: 1;
  min-width: 0;
}

.option-label {
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  margin-bottom: 2px;
}

.option-desc {
  font-size: 12px;
  color: var(--text-3);
  line-height: 1.5;
}

/* State Dropdown */
.state-dropdown {
  width: 100%;
  padding: var(--sp-3) var(--sp-4);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%234A4842' stroke-width='2'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
}

.state-dropdown:focus {
  outline: none;
  border-color: var(--pool);
}

/* Cancel Button */
.btn-cancel {
  display: inline-flex;
  align-items: center;
  gap: var(--sp-2);
  margin-top: var(--sp-4);
  padding: 8px 14px;
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  font-size: 12px;
  font-weight: 500;
  color: var(--text-2);
  cursor: pointer;
  transition: border-color 0.2s ease, color 0.2s ease;
}

.btn-cancel:hover {
  border-color: var(--border-2);
  color: var(--text);
}

/* Droplet Connector */
.droplet-connector {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: var(--sp-3) 0;
}

.droplet-connector svg {
  width: 10px;
  height: 12px;
  flex-shrink: 0;
}

/* Teal Droplet Icon (for answered questions) */
.droplet-icon svg {
  fill: var(--pool);
}

/* Progress Indicator in Nav */
.nav-progress-text {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  white-space: nowrap;
}

.nav-progress-bar {
  width: 80px;
  height: 6px;
  background: var(--border);
  border-radius: var(--r-pill);
  overflow: hidden;
}

.nav-progress-fill {
  height: 100%;
  background: var(--pool);
  border-radius: var(--r-pill);
  transition: width 0.3s cubic-bezier(.4,0,.2,1);
  width: 0%;
}

/* Responsive */
@media (max-width: 640px) {
  .intro-hero {
    padding: 24px 20px;
  }
  
  .intro-title {
    font-size: 22px;
  }
  
  .intro-stats {
    gap: var(--sp-4);
    flex-wrap: wrap;
  }
  
  .questionnaire {
    padding: var(--sp-4) var(--sp-3) var(--sp-8);
  }
  
  .question-active,
  .question-editing {
    padding: var(--sp-4);
  }
  
  .option-btn {
    padding: var(--sp-3);
  }
}

/* =====================
   CHECKLIST STYLES
   ===================== */

/* Wave Divider */
.checklist-divider {
  position: relative;
  text-align: center;
  margin: var(--sp-8) 0;
  padding: var(--sp-6) 0;
}

.wave-svg {
  width: 100%;
  height: 40px;
}

.wave-svg svg {
  width: 100%;
  height: 100%;
}

.divider-label {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  background: var(--bg);
  padding: var(--sp-2) var(--sp-4);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-3);
}

/* Updated Banner */
.updated-banner {
  background: var(--pool);
  color: var(--white);
  text-align: center;
  padding: var(--sp-3) var(--sp-4);
  font-size: 13px;
  font-weight: 600;
  border-radius: var(--r-sm);
  margin-bottom: var(--sp-4);
  transition: opacity 0.4s ease;
}

.updated-banner.fade-out {
  opacity: 0;
}

/* Result Hero */
/* Unified result block: wraps hero + AI CTA + callout + phase cards */
.result-block {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  overflow: hidden;
  margin-bottom: var(--sp-5);
}

/* Inside .result-block the hero drops its own radius and bottom margin
   (wrapper handles rounded corners via overflow:hidden). */
.result-block .result-hero {
  border-radius: 0;
  margin-bottom: 0;
}

/* Callout + top CTA inside the wrapper get the spec'd 16px top/bottom,
   18px left/right margins so they sit inside with breathing room. */
.result-block .ai-top-cta {
  margin: 16px 18px;
  width: auto;
}

.result-block .callout-card {
  margin: 16px 18px;
}

/* When the CTA is present, collapse its bottom margin so it hugs the callout. */
.result-block .ai-top-cta + .callout-card {
  margin-top: 0;
}

/* Phase cards inside the wrapper: no individual border/radius,
   just a top divider between them. */
.result-block .phase-card {
  border: none;
  border-top: 1px solid var(--border);
  border-radius: 0;
  margin-bottom: 0;
}

.result-hero {
  background-color: var(--pool-dark);
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  border-radius: var(--r-lg);
  padding: var(--sp-6);
  color: var(--white);
  text-align: center;
  margin-bottom: var(--sp-5);
}

.result-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.5;
  margin-bottom: var(--sp-3);
}

.result-title {
  font-family: 'Fraunces', serif;
  font-size: 24px;
  font-style: italic;
  font-weight: 400;
  line-height: 1.3;
  margin-bottom: var(--sp-3);
  color: var(--white);
}

.result-subtitle {
  font-size: 14px;
  opacity: 0.7;
  margin-bottom: var(--sp-5);
}

.result-stats {
  display: flex;
  justify-content: center;
  gap: var(--sp-8);
  padding-top: var(--sp-4);
  border-top: 1px solid rgba(255,255,255,0.15);
}

.result-stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
}

.result-stat .stat-value {
  font-family: 'Fraunces', serif;
  font-size: 22px;
  font-weight: 400;
  color: var(--white);
}

.result-stat .stat-label {
  font-size: 11px;
  opacity: 0.6;
  color: var(--white);
}

/* Callout Card */
.callout-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-left: 3px solid var(--pool);
  border-radius: var(--r);
  padding: var(--sp-4) var(--sp-5);
  margin-bottom: var(--sp-5);
}

.callout-header {
  font-size: 12px;
  font-weight: 600;
  color: var(--pool-deep);
  margin-bottom: var(--sp-3);
}

.callout-body {
  display: flex;
  flex-direction: column;
  gap: var(--sp-3);
}

.callout-item {
  display: flex;
  align-items: flex-start;
  gap: var(--sp-3);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

.callout-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--pool);
  margin-top: 6px;
  flex-shrink: 0;
}

/* Phase Cards */
.phase-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  margin-bottom: var(--sp-4);
  overflow: hidden;
}

.phase-header {
  display: flex;
  align-items: center;
  gap: var(--sp-3);
  width: 100%;
  padding: var(--sp-4) var(--sp-5);
  background: var(--surface);
  border: none;
  cursor: pointer;
  text-align: left;
  transition: background-color 0.2s ease;
}

.phase-header:hover {
  background: var(--surface-2);
}

.phase-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.phase-dot.phase-1 { background: var(--phase-1); }
.phase-dot.phase-2 { background: var(--phase-2); }
.phase-dot.phase-3 { background: var(--phase-3); }
.phase-dot.phase-4 { background: var(--phase-4); }

.phase-title {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.phase-count {
  font-size: 12px;
  color: var(--text-3);
}

.phase-chevron {
  color: var(--text-3);
  transition: transform 0.2s ease;
}

.phase-card.open .phase-chevron {
  transform: rotate(180deg);
}

.phase-body {
  display: none;
  padding: 0 var(--sp-5) var(--sp-4);
  border-top: 1px solid var(--border);
}

.phase-card.open .phase-body {
  display: block;
}

/* Step Rows */
.step-row {
  display: flex;
  gap: var(--sp-3);
  padding: var(--sp-4) 0;
  border-bottom: 1px solid var(--border);
}

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

.step-num {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--surface-2);
  font-size: 12px;
  font-weight: 600;
  color: var(--text-2);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.step-content {
  flex: 1;
  min-width: 0;
}

.step-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-1);
}

.step-url {
  font-size: 12px;
  color: var(--pool);
  text-decoration: none;
  display: block;
  margin-bottom: var(--sp-2);
}

.step-url:hover {
  text-decoration: underline;
}

.step-url-group {
  margin-bottom: var(--sp-2);
}

.step-url-group .step-url {
  display: inline;
  margin-bottom: 0;
}

.step-url-sep {
  color: var(--text-3);
  font-size: 12px;
}

.step-note {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
}

.step-guide-link {
  display: block;
  margin-top: var(--sp-2);
  font-size: 12px;
  font-weight: 500;
  color: var(--pool);
  text-decoration: none;
}

.step-guide-link:hover {
  color: var(--pool-mid);
  text-decoration: underline;
}

.checklist-disclosure {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-3);
  text-align: center;
  margin-top: var(--sp-5);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.checklist-disclosure a {
  color: var(--pool);
  text-decoration: none;
}

.checklist-disclosure a:hover {
  text-decoration: underline;
}

.step-tags {
  display: flex;
  gap: var(--sp-2);
  margin-top: var(--sp-2);
}

.step-tag {
  font-size: 10px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--r-pill);
}

.t-priority {
  background: var(--sun-light);
  color: var(--sun-deep);
}

.t-urgent {
  background: var(--urgent-bg);
  color: var(--urgent-text);
}

.t-added {
  background: var(--pool-light);
  color: var(--pool-deep);
}

/* =====================
   SHARED VIEW
   ===================== */

.shared-banner {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--sp-5);
  margin-bottom: var(--sp-5);
}

.shared-header {
  font-family: 'Fraunces', serif;
  font-size: 18px;
  font-weight: 400;
  color: var(--stone);
  margin-bottom: var(--sp-4);
}

.shared-answers-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
  margin-bottom: var(--sp-4);
  padding-bottom: var(--sp-4);
  border-bottom: 1px solid var(--border);
}

.shared-answer {
  padding: var(--sp-2) 0;
}

.shared-q-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 2px;
}

.shared-q-value {
  font-size: 13px;
  font-weight: 500;
  color: var(--text);
}

.shared-disclosure {
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-2);
  margin-bottom: var(--sp-4);
}

.shared-cta {
  width: 100%;
}

/* =====================
   EXPORT PANEL
   ===================== */

.export-panel {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: var(--sp-5);
  margin-top: var(--sp-6);
}

.export-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--sp-4);
}

.export-header-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--text);
}

.export-header-count {
  font-size: 11px;
  font-weight: 500;
  color: var(--text-3);
}

/* Continue-with-AI: featured row above the 2x2 grid */
.export-feature {
  margin-bottom: var(--sp-3);
}

.export-feature-btn {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px;
  width: 100%;
  border: 1px solid #F0DDA8;
  background: linear-gradient(135deg, #FEF3DA 0%, #FFF8E8 100%);
  border-radius: var(--r-sm);
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  transition: background 0.15s, border-color 0.15s;
}

.export-feature-btn:hover {
  background: linear-gradient(135deg, #FCE9C2 0%, #FEF3DA 100%);
  border-color: #E5CC8E;
}

.export-feature-icon {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  background: var(--sun);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.export-feature-text {
  flex: 1;
}

.export-feature-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--sun-deep);
  margin-bottom: 2px;
}

.export-feature-sub {
  font-size: 11px;
  color: var(--text-2);
  line-height: 1.5;
}

.export-feature-arrow {
  color: var(--sun-deep);
  flex-shrink: 0;
}

/* Top-of-result AI CTA (slim banner between hero and callout) */
.ai-top-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 18px;
  margin-top: var(--sp-4);
  background: linear-gradient(135deg, #FEF3DA 0%, #FFF8E8 100%);
  border: 1px solid #F0DDA8;
  border-radius: var(--r);
  cursor: pointer;
  text-align: left;
  font-family: 'DM Sans', sans-serif;
  width: 100%;
  transition: background 0.15s, border-color 0.15s;
}

.ai-top-cta:hover {
  background: linear-gradient(135deg, #FCE9C2 0%, #FEF3DA 100%);
  border-color: #E5CC8E;
}

.ai-top-cta-icon {
  width: 28px;
  height: 28px;
  border-radius: 6px;
  background: var(--sun);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.ai-top-cta-text {
  flex: 1;
  font-size: 12px;
  color: var(--sun-deep);
  line-height: 1.45;
}

.ai-top-cta-text strong {
  font-weight: 600;
  color: var(--sun-deep);
}

.ai-top-cta-arrow {
  color: var(--sun-deep);
  flex-shrink: 0;
}

/* AI modal */
.ai-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(28, 58, 42, 0.55);
  display: none;
  align-items: flex-start;
  justify-content: center;
  padding: 40px 16px;
  z-index: 100;
  overflow-y: auto;
}

.ai-modal-overlay.show {
  display: flex;
}

.ai-modal {
  background: var(--surface);
  border-radius: var(--r-lg);
  max-width: 680px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.2);
  overflow: hidden;
  animation: aiModalSlideUp 0.25s ease-out;
}

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

.ai-modal-hero {
  background-color: var(--pool-deep);
  background-image:
    linear-gradient(rgba(255,255,255,0.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.06) 1px, transparent 1px);
  background-size: 18px 18px;
  padding: 24px 28px;
  color: #fff;
  position: relative;
}

.ai-modal-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  opacity: 0.5;
  margin-bottom: 8px;
}

.ai-modal-title {
  font-family: 'Fraunces', serif;
  font-style: italic;
  font-weight: 400;
  font-size: 22px;
  letter-spacing: -0.3px;
  line-height: 1.25;
  margin-bottom: 6px;
}

.ai-modal-sub {
  font-size: 12px;
  opacity: 0.75;
  line-height: 1.5;
}

.ai-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.15s;
}

.ai-modal-close:hover {
  background: rgba(255, 255, 255, 0.22);
}

.ai-modal-body {
  padding: 20px 28px;
}

.ai-modal-section {
  margin-bottom: 20px;
}

.ai-modal-section-head {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  color: var(--text-3);
  margin-bottom: 10px;
}

.ai-steps-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ai-step-item {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.ai-step-num {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--pool-light);
  color: var(--pool-deep);
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  margin-top: 1px;
}

.ai-step-text {
  font-size: 13px;
  color: var(--text-2);
  line-height: 1.55;
}

.ai-step-text strong {
  color: var(--text);
  font-weight: 600;
}

.ai-brief-preview {
  background: var(--surface-2);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 16px 18px;
  font-family: 'DM Mono', ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 11px;
  line-height: 1.65;
  color: var(--text-2);
  max-height: 280px;
  overflow-y: auto;
  white-space: pre-wrap;
}

.ai-brief-preview::-webkit-scrollbar {
  width: 8px;
}

.ai-brief-preview::-webkit-scrollbar-track {
  background: transparent;
}

.ai-brief-preview::-webkit-scrollbar-thumb {
  background: var(--border-2);
  border-radius: 4px;
}

.ai-modal-footer {
  padding: 16px 28px;
  border-top: 1px solid var(--border);
  background: var(--surface-2);
  display: flex;
  gap: 10px;
  align-items: center;
}

.ai-btn-copy {
  flex: 1;
  background: var(--sun);
  color: #fff;
  border: none;
  border-radius: var(--r);
  padding: 12px 18px;
  font-size: 13px;
  font-weight: 600;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: background 0.15s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.ai-btn-copy:hover {
  background: var(--sun-hover);
}

.ai-btn-copy.success {
  background: var(--pool);
}

.ai-btn-secondary {
  background: transparent;
  color: var(--text-3);
  border: 1px solid var(--border);
  border-radius: var(--r);
  padding: 12px 16px;
  font-size: 13px;
  font-weight: 500;
  font-family: 'DM Sans', sans-serif;
  cursor: pointer;
  transition: all 0.15s;
}

.ai-btn-secondary:hover {
  color: var(--text);
  border-color: var(--border-2);
}

/* Toast */
.ai-toast {
  position: fixed;
  bottom: 24px;
  left: 50%;
  transform: translateX(-50%) translateY(100px);
  background: var(--stone);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r);
  font-size: 13px;
  font-weight: 500;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
  display: none;
  align-items: center;
  gap: 10px;
  z-index: 200;
  transition: transform 0.25s ease-out;
}

.ai-toast.show {
  display: flex;
  transform: translateX(-50%) translateY(0);
}

.ai-toast svg {
  stroke: #fff;
}

@media (max-width: 600px) {
  .ai-modal {
    margin: 0;
    border-radius: var(--r-lg) var(--r-lg) 0 0;
  }
  .ai-modal-overlay {
    padding: 0;
    align-items: flex-end;
  }
}

/* Export grid unchanged below */
.export-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: var(--sp-3);
}

.export-btn {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: var(--sp-2);
  padding: var(--sp-4);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
  cursor: pointer;
  transition: border-color 0.2s ease, background-color 0.2s ease;
}

.export-btn:hover {
  border-color: var(--pool);
  background: var(--pool-light);
}

.export-btn svg {
  color: var(--text-2);
}

.export-btn:hover svg {
  color: var(--pool);
}

.export-btn span {
  font-size: 12px;
  font-weight: 500;
  color: var(--text);
}

.email-input-row {
  display: flex;
  gap: var(--sp-3);
  margin-top: var(--sp-4);
  padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}

.email-input {
  flex: 1;
  padding: var(--sp-3) var(--sp-4);
  font-size: 14px;
  font-family: 'DM Sans', sans-serif;
  border: 1px solid var(--border);
  border-radius: var(--r-sm);
}

.email-input:focus {
  outline: none;
  border-color: var(--pool);
}

.email-send-btn {
  padding: var(--sp-3) var(--sp-5);
}

/* =====================
   PRINT STYLES
   ===================== */

@media print {
  /* Hide non-essential elements */
  .nav,
  .intro-card,
  .questionnaire > .container > .question-answered,
  .questionnaire > .container > .question-active,
  .questionnaire > .container > .question-editing,
  .questionnaire > .container > .droplet-connector,
  .export-panel,
  .shared-cta,
  .btn-edit,
  .checklist-divider {
    display: none !important;
  }
  
  /* Reset page layout */
  body {
    background: white !important;
    background-image: none !important;
  }
  
  .questionnaire {
    padding: 0 !important;
    max-width: 100% !important;
  }
  
  .checklist-result {
    padding: 0 !important;
  }
  
  /* Force colors on result hero */
  .result-hero {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
    background-color: var(--stone) !important;
    color: var(--white) !important;
    margin: 0 0 20px 0 !important;
  }
  
  .result-hero * {
    color: var(--white) !important;
  }
  
  /* Expand all phases */
  .phase-card {
    break-inside: avoid;
    margin-bottom: 16px !important;
  }
  
  .phase-body {
    display: block !important;
  }
  
  .phase-chevron {
    display: none !important;
  }
  
  .phase-header {
    cursor: default !important;
  }
  
  /* Step styling for print */
  .step-row {
    break-inside: avoid;
  }
  
  .step-url {
    color: var(--pool) !important;
  }
  
  /* Tags */
  .step-tag {
    -webkit-print-color-adjust: exact !important;
    print-color-adjust: exact !important;
  }
  
  .t-priority {
    background: var(--sun-light) !important;
    color: var(--sun-deep) !important;
  }
  
  .t-urgent {
    background: var(--urgent-bg) !important;
    color: var(--urgent-text) !important;
  }
  
  .t-added {
    background: var(--added-bg) !important;
    color: var(--added-text) !important;
  }
  
  /* Print footer */
  .checklist-result::after {
    content: "Generated at planningapool.com: independent research, no paid placements";
    display: block;
    margin-top: 24px;
    padding-top: 16px;
    border-top: 1px solid var(--border);
    font-size: 11px;
    color: var(--text-3);
    text-align: center;
  }
}

/* Checklist Responsive */
@media (max-width: 640px) {
  .result-hero {
    padding: var(--sp-5);
  }
  
  .result-title {
    font-size: 20px;
  }
  
  .result-stats {
    gap: var(--sp-4);
  }
  
  .phase-header {
    padding: var(--sp-3) var(--sp-4);
  }
  
  .phase-body {
    padding: 0 var(--sp-4) var(--sp-3);
  }
  
  .step-row {
    padding: var(--sp-3) 0;
  }
  
  .shared-answers-grid {
    grid-template-columns: 1fr;
  }
  
  .export-grid {
    grid-template-columns: 1fr;
  }
}
