/* ─── Funnel Styles ─── */

/* Override global vars to match legacy funnel design */
body.funnel-page {
  min-height: 100vh;
  --border: rgba(232,160,176,0.15);
  --border-light: rgba(232,160,176,0.28);
}
body.funnel-page::after {
  opacity: 0.02;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 60px 24px;
  position: relative;
}

/* Funnel orbs (fixed position) */
.funnel-orb {
  position: fixed; border-radius: 50%;
  filter: blur(90px); pointer-events: none; z-index: 0;
}
.funnel-orb-1 { width: 600px; height: 600px; background: radial-gradient(ellipse, rgba(192,96,122,0.14) 0%, transparent 70%); top: -150px; left: -200px; }
.funnel-orb-2 { width: 500px; height: 500px; background: radial-gradient(ellipse, rgba(232,160,176,0.1) 0%, transparent 70%); bottom: -100px; right: -100px; }

/* Logo */
.logo {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700;
  color: var(--cream); margin-bottom: 48px;
  position: relative; z-index: 1;
  text-align: center;
}
.logo span { color: var(--rose); }

/* Progress */
.progress-wrap {
  width: 100%; max-width: 480px;
  margin-bottom: 40px;
  position: relative; z-index: 1;
}
.progress-steps {
  display: flex; gap: 8px; align-items: center;
  margin-bottom: 10px;
}
.progress-step {
  flex: 1; height: 3px; border-radius: 2px;
  background: rgba(232,160,176,0.15);
  transition: background 0.4s ease;
}
.progress-step.active { background: var(--rose); }
.progress-step.done { background: var(--rose-deep); }
.progress-label {
  font-size: 11px; color: var(--muted);
  letter-spacing: 0.1em; text-align: right;
}

/* Cards */
.funnel-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: 52px 48px;
  width: 100%; max-width: 480px;
  position: relative; z-index: 1;
  animation: cardIn 0.5s ease both;
}
@keyframes cardIn {
  from { opacity: 0; transform: translateY(20px) scale(0.98); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.card-crown { font-size: 32px; margin-bottom: 20px; display: block; text-align: center; }
.card-title {
  font-family: 'Playfair Display', serif;
  font-size: 32px; font-weight: 700;
  color: var(--cream); line-height: 1.15;
  margin-bottom: 10px; text-align: center;
}
.card-title em { font-style: italic; color: var(--rose); }
.card-sub {
  font-size: 14px; color: var(--muted); line-height: 1.7;
  text-align: center; margin-bottom: 36px;
}

/* Form elements */
.field { margin-bottom: 16px; }
.field label {
  display: block; font-size: 11px; font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--muted); margin-bottom: 8px;
}
.field input {
  width: 100%;
  background: rgba(232,160,176,0.05);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 18px;
  font-family: 'Outfit', sans-serif;
  font-size: 15px; color: var(--cream);
  outline: none; transition: all 0.2s;
}
.field input:focus {
  border-color: var(--rose);
  box-shadow: 0 0 0 4px rgba(232,160,176,0.08);
  background: rgba(232,160,176,0.08);
}
.field input::placeholder { color: var(--muted); }
.field input.error { border-color: #e07070; box-shadow: 0 0 0 4px rgba(224,112,112,0.08); }

/* Funnel buttons (override global for full-width) */
.funnel-card .btn-main {
  width: 100%;
  padding: 18px;
  font-size: 15px;
  margin-top: 8px;
  border-radius: 100px;
}
.btn-ghost {
  width: 100%; background: transparent;
  color: var(--muted); border: 1px solid var(--border);
  border-radius: 100px; padding: 14px;
  font-family: 'Outfit', sans-serif;
  font-size: 13px; font-weight: 400;
  cursor: pointer; transition: all 0.2s; margin-top: 10px;
}
.btn-ghost:hover { border-color: var(--rose); color: var(--rose); }

/* Upload zone */
.upload-zone {
  border: 2px dashed var(--border);
  border-radius: 16px;
  padding: 40px 24px;
  text-align: center;
  cursor: pointer;
  transition: all 0.3s;
  background: rgba(232,160,176,0.02);
  position: relative;
  margin-bottom: 16px;
}
.upload-zone:hover, .upload-zone.drag-over {
  border-color: var(--rose);
  background: rgba(232,160,176,0.06);
}
.upload-zone input[type="file"] {
  position: absolute; inset: 0;
  opacity: 0; cursor: pointer; width: 100%; height: 100%;
}
.upload-icon { font-size: 36px; margin-bottom: 12px; display: block; }
.upload-title { font-size: 15px; font-weight: 600; color: var(--cream); margin-bottom: 6px; }
.upload-hint { font-size: 12px; color: var(--muted); line-height: 1.6; }
.upload-preview {
  display: none; position: relative;
}
.upload-preview img {
  width: 100%; border-radius: 12px;
  border: 1px solid var(--border); max-height: 200px; object-fit: cover;
}
.upload-preview .remove-btn {
  position: absolute; top: 8px; right: 8px;
  background: rgba(8,6,8,0.8); border: 1px solid var(--border);
  border-radius: 50%; width: 28px; height: 28px;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; font-size: 14px; color: var(--rose);
  transition: background 0.2s;
}
.upload-preview .remove-btn:hover { background: rgba(192,96,122,0.3); }
.upload-filename {
  font-size: 12px; color: var(--rose); margin-top: 10px;
  display: flex; align-items: center; gap: 6px; justify-content: center;
}

/* Loading */
.loading-wrap {
  text-align: center; padding: 20px 0;
}
.spinner {
  width: 48px; height: 48px; border-radius: 50%;
  border: 3px solid rgba(232,160,176,0.15);
  border-top-color: var(--rose);
  animation: spin 0.8s linear infinite;
  margin: 0 auto 20px;
}
@keyframes spin { to { transform: rotate(360deg); } }
.loading-title {
  font-family: 'Playfair Display', serif;
  font-size: 22px; font-weight: 700; color: var(--cream); margin-bottom: 8px;
}
.loading-steps { list-style: none; display: flex; flex-direction: column; gap: 8px; margin-top: 20px; }
.loading-step {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px; color: var(--muted);
  padding: 10px 16px; border-radius: 10px;
  background: rgba(232,160,176,0.04);
  transition: all 0.3s;
}
.loading-step.active { color: var(--text); background: rgba(232,160,176,0.08); border: 1px solid var(--border); }
.loading-step.done { color: var(--green); }
.loading-step .step-icon { font-size: 16px; width: 20px; text-align: center; }

/* Results */
.results-card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 24px;
  width: 100%; max-width: 600px;
  overflow: hidden;
  position: relative; z-index: 1;
  animation: cardIn 0.5s ease both;
}
.results-header {
  padding: 40px 44px 32px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
}
.results-header::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 0%, rgba(232,160,176,0.08) 0%, transparent 70%);
}
.results-header > * { position: relative; z-index: 1; }
.results-label {
  font-size: 10px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  color: var(--rose); margin-bottom: 8px;
}
.results-income {
  font-family: 'Playfair Display', serif;
  font-size: 52px; font-weight: 900; color: var(--cream); line-height: 1;
  margin-bottom: 4px;
}
.results-income span { color: var(--rose); font-size: 32px; }
.results-period { font-size: 13px; color: var(--muted); margin-bottom: 20px; }
.months-row {
  display: flex; gap: 10px; justify-content: center; flex-wrap: wrap;
}
.month-chip {
  background: rgba(232,160,176,0.08);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 6px 14px;
  font-size: 12px; color: var(--text);
}
.month-chip strong { color: var(--rose); margin-left: 4px; }

/* ─── Section tags ─── */
.section-tag {
  display: inline-block;
  font-size: 10px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 100px;
  margin-bottom: 24px;
}
.loss-tag {
  background: rgba(224,96,96,0.1);
  color: #e06060;
  border: 1px solid rgba(224,96,96,0.2);
}
.velvet-tag {
  background: rgba(232,160,176,0.1);
  color: var(--rose);
  border: 1px solid rgba(232,160,176,0.2);
}
.savings-tag {
  background: rgba(80,200,120,0.08);
  color: var(--green);
  border: 1px solid rgba(80,200,120,0.18);
}

/* ─── Section supporting text ─── */
.section-sub {
  font-size: 13px; color: var(--muted);
  line-height: 1.65; margin: -12px 0 24px;
  max-width: 400px; margin-left: auto; margin-right: auto;
}
.loss-sub { margin-top: -12px; margin-bottom: 24px; }

/* ─── Agency Losses Section ─── */
.losses-section {
  padding: 40px 28px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.loss-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.loss-card {
  background: rgba(224,96,96,0.05);
  border: 1px solid rgba(224,96,96,0.15);
  border-radius: 16px;
  padding: 24px 12px;
  text-align: center;
  transition: transform 0.2s, background 0.2s;
}
.loss-card:hover {
  transform: translateY(-2px);
  background: rgba(224,96,96,0.08);
}
.loss-card-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(224,96,96,0.7);
  margin-bottom: 10px;
}
.loss-card-amount {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 900;
  color: #e06060;
  line-height: 1;
  white-space: nowrap;
}
.loss-card-unit {
  font-size: 13px; font-weight: 400;
  color: rgba(224,96,96,0.5);
  font-family: 'Outfit', sans-serif;
}

/* ─── VelvetChat Price Hero ─── */
.velvet-hero {
  padding: 48px 44px;
  border-bottom: 1px solid var(--border);
  text-align: center;
  position: relative;
  overflow: hidden;
}
.velvet-hero::before {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 50% 50%, rgba(232,160,176,0.06) 0%, transparent 70%);
}
.velvet-hero > * { position: relative; z-index: 1; }
.velvet-hero-amount {
  font-family: 'Playfair Display', serif;
  font-size: 72px; font-weight: 900;
  color: var(--rose);
  line-height: 1;
  margin-bottom: 12px;
}
.velvet-hero-amount small {
  font-size: 22px; color: var(--muted);
  font-family: 'Outfit', sans-serif; font-weight: 300;
}
.velvet-hero-sub {
  font-size: 14px; color: var(--text);
  line-height: 1.6; margin-bottom: 8px;
}
.velvet-hero-note {
  font-size: 12px; font-weight: 400;
  color: var(--muted);
  letter-spacing: 0.02em;
}

/* ─── Savings Section ─── */
.savings-section {
  padding: 40px 28px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.savings-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
}
.savings-card {
  background: rgba(80,200,120,0.04);
  border: 1px solid rgba(80,200,120,0.14);
  border-radius: 16px;
  padding: 24px 12px;
  text-align: center;
  transition: transform 0.2s, background 0.2s;
}
.savings-card:hover {
  transform: translateY(-2px);
  background: rgba(80,200,120,0.08);
}
.savings-card-label {
  font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  color: rgba(80,200,120,0.7);
  margin-bottom: 10px;
}
.savings-card-amount {
  font-family: 'Playfair Display', serif;
  font-size: 26px; font-weight: 900;
  color: var(--green);
  line-height: 1;
  white-space: nowrap;
}
.savings-card-unit {
  font-size: 11px; font-weight: 400;
  color: rgba(80,200,120,0.55);
  font-family: 'Outfit', sans-serif;
}
.savings-annual {
  margin-top: 24px;
  font-size: 18px;
  color: var(--text);
  line-height: 1.5;
  letter-spacing: 0.01em;
}
.savings-annual strong {
  color: var(--green);
  font-weight: 800;
  font-size: 20px;
}
/* Custom pricing state */
.custom-review {
  padding: 36px 44px;
  border-bottom: 1px solid var(--border);
  text-align: center;
}
.custom-review-title {
  font-family: 'Playfair Display', serif;
  font-size: 24px; font-weight: 700; color: var(--cream);
  margin-bottom: 10px;
}
.custom-review-text {
  font-size: 14px; color: var(--muted); line-height: 1.75;
}

.cta-area {
  padding: 36px 44px;
}
.cta-area .btn-main { border-radius: 14px; padding: 20px; font-size: 16px; width: 100%; }
.cta-note { font-size: 11px; color: var(--muted); text-align: center; margin-top: 14px; letter-spacing: 0.04em; }
.cta-note span { color: var(--rose); }

/* Book a Call */
.book-call-section {
  padding: 0 44px 36px;
  text-align: center;
}
.book-call-divider {
  width: 60px; height: 1px;
  background: var(--border-light);
  margin: 0 auto 24px;
}
.book-call-title {
  font-family: 'Playfair Display', serif;
  font-size: 18px; color: var(--cream);
  margin: 0 0 8px;
}
.book-call-sub {
  font-size: 13px; color: var(--muted);
  margin: 0 0 18px;
  line-height: 1.5;
}
.book-call-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}
.btn-book-call {
  display: inline-block;
  padding: 12px 28px;
  border-radius: 12px;
  border: 1px solid var(--border-light);
  background: rgba(232,160,176,0.06);
  color: var(--rose);
  font-size: 14px; font-weight: 500;
  text-decoration: none;
  transition: background 0.2s, border-color 0.2s;
}
.btn-book-call:hover {
  background: rgba(232,160,176,0.12);
  border-color: var(--rose);
}

/* Error */
.error-msg {
  background: rgba(224,112,112,0.08);
  border: 1px solid rgba(224,112,112,0.25);
  border-radius: 12px; padding: 14px 18px;
  font-size: 13px; color: #e08080; margin-bottom: 16px;
  display: none;
}

/* Confidence badge */
.confidence {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 11px; color: var(--muted);
  margin-top: 12px;
}
.conf-dot { width: 7px; height: 7px; border-radius: 50%; }
.conf-dot.high { background: var(--green); }
.conf-dot.medium { background: #f0c060; }
.conf-dot.low { background: #e08080; }

/* Funnel footer */
.funnel-footer {
  margin-top: 32px; text-align: center;
  font-size: 11px; color: var(--muted);
  position: relative; z-index: 1;
  line-height: 1.8;
}
.funnel-footer a { color: var(--rose); text-decoration: none; }

@media (max-width: 540px) {
  .funnel-card { padding: 36px 28px; }
  .results-header { padding: 32px 28px 24px; }
  .losses-section, .savings-section, .velvet-hero, .cta-area, .custom-review { padding: 28px 20px; }
  .book-call-section { padding: 0 20px 28px; }
  .results-income { font-size: 40px; }
  .velvet-hero-amount { font-size: 52px; }
  .section-sub { font-size: 12px; }
  .loss-grid, .savings-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }
  .loss-card, .savings-card {
    display: flex; align-items: center; justify-content: space-between;
    padding: 16px 20px; text-align: left;
  }
  .loss-card-label, .savings-card-label {
    margin-bottom: 0; font-size: 12px;
  }
  .loss-card-amount, .savings-card-amount {
    font-size: 22px;
  }
}
