:root {
  --pink: #e0357a;
  --pink-light: #fde7f1;
  --ink: #1a1a1a;
  --gray: #6b6b6b;
  --border: #e5e5e5;
  --green: #1f9d55;
  --amber: #d99a1b;
  --red: #d8453a;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: "Poppins", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  color: var(--ink);
  background: #fdf3f8;
}

.app {
  max-width: 640px;
  margin: 0 auto;
  padding: 48px 24px 96px;
  min-height: 100vh;
}

.form-card {
  background: #fff;
  border-radius: 18px;
  padding: 28px 26px;
  box-shadow: 0 4px 24px rgba(224, 53, 122, 0.08);
}

.step { animation: fadein 0.25s ease; }
@keyframes fadein { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }

.eyebrow {
  color: var(--pink);
  font-weight: 600;
  font-size: 13px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin: 0 0 8px;
}

.step-header { display: flex; align-items: center; gap: 12px; margin-bottom: 6px; }
.step-circle {
  flex-shrink: 0;
  width: 28px; height: 28px;
  border-radius: 50%;
  background: var(--pink);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex; align-items: center; justify-content: center;
}
.step-label { font-weight: 600; font-size: 14px; color: var(--gray); }

.label-row { display: flex; align-items: center; gap: 6px; }
.info-btn {
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--border);
  color: var(--gray);
  font-size: 11px;
  font-weight: 700;
  font-style: italic;
  padding: 0;
  display: inline-flex; align-items: center; justify-content: center;
  position: relative;
  cursor: help;
}
.info-btn:hover { background: var(--pink-light); color: var(--pink); }
.info-tooltip {
  visibility: hidden;
  opacity: 0;
  position: absolute;
  bottom: calc(100% + 8px);
  left: 50%;
  transform: translateX(-50%);
  background: var(--ink);
  color: #fff;
  font-size: 12.5px;
  font-weight: 400;
  font-style: normal;
  line-height: 1.4;
  padding: 10px 12px;
  border-radius: 8px;
  width: 220px;
  z-index: 5;
  transition: opacity 0.15s ease;
}
.info-btn:hover .info-tooltip, .info-btn:focus .info-tooltip { visibility: visible; opacity: 1; }

h1 {
  font-family: "Anton", "Poppins", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 34px;
  line-height: 1.15;
  margin: 0 0 14px;
  color: var(--pink);
}
h2 { font-size: 22px; line-height: 1.3; margin: 0 0 12px; }
p.lead { color: var(--gray); font-size: 16px; line-height: 1.6; margin: 0 0 28px; }

.callout {
  background: var(--pink-light);
  border: 1px solid #f6c9de;
  border-radius: 10px;
  padding: 16px 18px;
  font-size: 15px;
  line-height: 1.6;
  margin-top: 18px;
  margin-bottom: 24px;
}

label { display: block; font-weight: 600; font-size: 14px; margin: 18px 0 6px; }

input[type="text"], input[type="email"], textarea {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  font-size: 15px;
  font-family: inherit;
  resize: vertical;
}
input:focus, textarea:focus { outline: none; border-color: var(--pink); }

.btn-row { display: flex; gap: 12px; margin-top: 28px; }

button, a.btn-primary, a.btn-secondary {
  font-family: inherit;
  font-size: 15px;
  font-weight: 600;
  border-radius: 8px;
  padding: 13px 22px;
  cursor: pointer;
  border: none;
  display: inline-block;
  text-decoration: none;
  text-align: center;
}

.btn-primary { background: var(--pink); color: #fff; }
.btn-primary:hover { background: #c62d6c; }
.btn-primary:disabled { background: #f1b7d2; cursor: not-allowed; }

.btn-secondary { background: #fff; color: var(--ink); border: 1px solid var(--border); }
.btn-secondary:hover { border-color: var(--ink); }

.choice-row { display: flex; gap: 12px; margin-top: 8px; }
.choice-btn {
  flex: 1;
  padding: 16px;
  border: 1.5px solid var(--border);
  border-radius: 10px;
  background: #fff;
  font-weight: 600;
  font-size: 15px;
  text-align: center;
}
.choice-btn:hover { border-color: var(--pink); }
.choice-btn.selected { border-color: var(--pink); background: var(--pink-light); color: var(--pink); }

.error-text { color: var(--red); font-size: 14px; margin-top: 8px; }

.upsell-block { border: 1px solid var(--border); border-radius: 10px; padding: 16px; margin-top: 14px; }
.upsell-block label { margin-top: 0; }

.frozen-bg { pointer-events: none; filter: blur(1.5px); opacity: 0.55; }

.processing-overlay {
  position: fixed;
  inset: 0;
  background: rgba(253, 243, 248, 0.6);
  backdrop-filter: blur(2px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  padding: 24px;
}
.processing-card {
  background: #fff;
  border-radius: 18px;
  padding: 44px 36px;
  text-align: center;
  max-width: 360px;
  box-shadow: 0 16px 56px rgba(0, 0, 0, 0.18);
}

.spinner-wrap { text-align: center; padding: 80px 0; }
.loading-dots { display: flex; justify-content: center; gap: 10px; margin-bottom: 24px; }
.loading-dots span {
  width: 14px; height: 14px;
  border-radius: 50%;
  display: inline-block;
  animation: bounce 1s ease-in-out infinite;
}
.loading-dots span:nth-child(1) { background: #d8453a; animation-delay: 0s; }
.loading-dots span:nth-child(2) { background: #d99a1b; animation-delay: 0.12s; }
.loading-dots span:nth-child(3) { background: var(--pink); animation-delay: 0.24s; }
.loading-dots span:nth-child(4) { background: #4DB8BA; animation-delay: 0.36s; }
.loading-dots span:nth-child(5) { background: #1f9d55; animation-delay: 0.48s; }
@keyframes bounce {
  0%, 100% { transform: translateY(0); opacity: 0.6; }
  50% { transform: translateY(-14px); opacity: 1; }
}
.loading-title { font-size: 18px; font-weight: 700; margin-bottom: 6px; }
.loading-sub { color: var(--gray); font-size: 14px; }

/* Results page */
.score-hero { text-align: center; padding: 12px 0 16px; }
.gauge-svg { width: 220px; max-width: 100%; display: block; margin: 0 auto; }
.score-number { font-size: 48px; font-weight: 800; color: var(--ink); line-height: 1; margin-top: 4px; }
.score-label { color: var(--gray); font-size: 14px; margin-top: 4px; }

.category-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 16px 20px;
  margin-bottom: 12px;
  box-shadow: 0 2px 12px rgba(224, 53, 122, 0.05);
}
.category-card .cat-head { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.category-card h3 { margin: 0; font-size: 16px; }
.cat-score { font-weight: 700; font-size: 14px; color: var(--gray); }
.cat-score.good { color: var(--green); }
.cat-score.mid { color: var(--amber); }
.cat-score.bad { color: var(--red); }

.status-chip {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 999px;
  margin-bottom: 8px;
}
.status-chip.status-strong { background: #e7f6ec; color: var(--green); }
.status-chip.status-warn { background: #fdf3e0; color: var(--amber); }
.status-chip.status-bad { background: #fbeae8; color: var(--red); }

.cat-note { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--ink); }
.cat-note .inline-link { color: var(--pink); font-weight: 600; text-decoration: underline; }
.cat-note .inline-link:hover { color: #c62d6c; }

.gaps-box {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 18px 20px;
  margin: 24px 0;
  box-shadow: 0 2px 12px rgba(224, 53, 122, 0.05);
}
.gaps-box h3 { margin: 0 0 10px; font-size: 16px; }
.gaps-box ul { margin: 0; padding-left: 20px; }
.gaps-box li { margin-bottom: 6px; font-size: 14.5px; line-height: 1.5; }

.cta-block {
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 32px 28px;
  text-align: center;
  margin-top: 28px;
}
.cta-block h2 { color: #fff; }
.cta-block p { color: #d6d6d6; margin: 0 0 22px; }
.cta-block .btn-primary { width: 100%; padding: 16px; font-size: 16px; }

.progress-bar { height: 4px; background: var(--border); border-radius: 999px; margin-bottom: 32px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--pink); transition: width 0.3s ease; }

/* Top scale banner (intro page only) */
.scale-wrapper { margin-bottom: 36px; }
.scale-arrow-wrap { display: flex; flex-direction: column; align-items: flex-end; margin-bottom: 2px; padding-right: 4%; }
.scale-arrow-label { font-size: 13px; font-weight: 700; color: var(--ink); white-space: nowrap; }
.scale-arrow { width: 0; height: 0; border-left: 6px solid transparent; border-right: 6px solid transparent; border-top: 8px solid var(--ink); margin-top: 2px; }
.scale-bar { display: flex; height: 16px; border-radius: 999px; overflow: hidden; }
.scale-bar span { flex: 1; }

/* Formula section (intro page only) */
.formula-section {
  background: var(--ink);
  border-radius: 18px;
  padding: 28px 26px;
  margin-top: 24px;
  color: #fff;
}
.formula-title {
  font-family: "Anton", "Poppins", sans-serif;
  font-weight: 400;
  text-transform: uppercase;
  letter-spacing: 0.5px;
  font-size: 22px;
  color: #fff;
  margin-bottom: 4px;
}
.formula-subtitle { font-size: 14px; color: #d6d6d6; margin-bottom: 18px; }
.formula-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; }
.formula-card { background: #fff; border-radius: 12px; padding: 16px; }
.formula-num {
  width: 26px; height: 26px; border-radius: 50%;
  background: var(--pink); color: #fff; font-weight: 700; font-size: 13px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 10px;
}
.formula-card-title { font-weight: 700; font-size: 14.5px; color: var(--ink); margin-bottom: 4px; }
.formula-card-desc { font-size: 13px; color: var(--gray); line-height: 1.45; }
