:root {
  --bg: #FAF6F1;
  --card: #FFFFFF;
  --text: #2E2A26;
  --text-soft: #6B6259;
  --primary: #6B8F71;
  --primary-dark: #52704A;
  --secondary: #9B7BAE;
  --danger: #C0524A;
  --border: #EDE3D8;
  --shadow: 0 2px 12px rgba(46, 42, 38, 0.08);
  --radius: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--text);
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: 'Poppins', 'Nunito', sans-serif;
  font-weight: 700;
  line-height: 1.3;
  margin: 0 0 8px 0;
}

p { line-height: 1.55; margin: 0 0 12px 0; }

#progress-wrap {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--bg);
  padding: 14px 20px 8px;
}

#progress-bar-track {
  width: 100%;
  max-width: 480px;
  margin: 0 auto;
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

#progress-bar-fill {
  height: 100%;
  background: var(--secondary);
  border-radius: 99px;
  transition: width 0.4s ease;
  width: 0%;
}

#app {
  max-width: 480px;
  margin: 0 auto;
  padding: 12px 20px 40px;
  min-height: 60vh;
}

.screen {
  animation: fadeIn 0.35s ease;
}

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

/* Intro */
.intro-badge {
  display: inline-block;
  background: rgba(123,92,140,0.15);
  color: var(--secondary);
  font-weight: 700;
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 99px;
  margin-bottom: 16px;
}

.intro h1 { font-size: 26px; margin-top: 4px; }
.intro .sub { color: var(--text-soft); font-size: 16px; margin-bottom: 24px; }

.intro-eli {
  display: flex;
  align-items: center;
  gap: 12px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 12px;
  margin-bottom: 24px;
}
.intro-eli img { width: 52px; height: 52px; border-radius: 50%; object-fit: cover; }
.intro-eli .name { font-weight: 700; font-size: 14px; }
.intro-eli .role { color: var(--text-soft); font-size: 13px; }

/* Question */
.q-text { font-size: 21px; margin-top: 6px; }
.q-sub { color: var(--text-soft); font-style: italic; font-size: 14px; margin-bottom: 18px; }

.options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 16px;
}

.option-btn {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  background: var(--card);
  border: 2px solid var(--border);
  border-radius: var(--radius);
  padding: 14px 16px;
  font-size: 16px;
  font-family: inherit;
  font-weight: 600;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.15s ease, transform 0.1s ease, background 0.15s ease;
}
.option-btn:hover { border-color: var(--secondary); background: #f7f2f9; }
.option-btn:active { transform: scale(0.98); }
.option-btn .emoji { font-size: 22px; flex-shrink: 0; }
.option-btn.selected { border-color: var(--secondary); background: #f3ecf6; }

.option-img-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
  align-items: stretch;
}
.option-img-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
}
.option-img-card .label-row {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
}

.options-grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 16px;
}

/* Yes/No wide buttons */
.options-yesno {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-top: 20px;
}
.options-yesno .option-btn { justify-content: center; text-align: center; padding: 16px; }

/* Insertion */
.insertion {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
}
.insertion h2 { font-size: 20px; color: var(--primary-dark); }
.insertion .sub { color: var(--text-soft); font-size: 14px; margin-bottom: 14px; }
.insertion .body-text { font-size: 15px; white-space: pre-line; }
.insertion .data-badge {
  display: inline-block;
  background: rgba(107,143,113,0.1);
  color: var(--primary);
  font-weight: 700;
  font-size: 13px;
  padding: 8px 14px;
  border-radius: 10px;
  margin: 12px 0;
}

.btn-continue {
  display: block;
  width: 100%;
  background: var(--primary);
  color: #fff;
  border: none;
  border-radius: var(--radius);
  padding: 16px;
  font-size: 17px;
  font-weight: 700;
  font-family: inherit;
  cursor: pointer;
  margin-top: 18px;
  transition: background 0.15s ease;
}
.btn-continue:hover { background: var(--primary-dark); }

/* Testimonial carousel placeholder */
.carousel {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  padding: 16px 4px;
  margin: 8px 0;
  scroll-snap-type: x mandatory;
}
.carousel::-webkit-scrollbar { height: 4px; }
.carousel-card {
  flex: 0 0 auto;
  width: 78%;
  max-width: 260px;
  scroll-snap-align: center;
  background: #fdfaf7;
  border: 1.5px dashed var(--border);
  border-radius: var(--radius);
  padding: 16px;
  text-align: center;
  margin: 0 auto;
}
.carousel-card .ph-icon {
  width: 100%;
  aspect-ratio: 1/1;
  border-radius: 12px;
  background: linear-gradient(135deg, #f0ebe3, #e8e0d3);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 34px;
  margin-bottom: 10px;
  color: #c9bfae;
}
.carousel-card .ph-label { font-size: 13px; color: var(--text-soft); font-weight: 700; }
.carousel-card .ph-name { font-size: 12px; color: #b0a695; margin-top: 4px; }
.carousel-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.carousel-dots span { width: 6px; height: 6px; border-radius: 50%; background: var(--border); }

/* Pseudo processing */
.processing {
  text-align: center;
  padding: 40px 10px;
}
.processing .spinner {
  width: 44px; height: 44px;
  border: 4px solid var(--border);
  border-top-color: var(--secondary);
  border-radius: 50%;
  margin: 0 auto 24px;
  animation: spin 0.9s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.processing .line {
  font-size: 15px;
  color: var(--text-soft);
  margin-bottom: 10px;
  opacity: 0;
  animation: lineIn 0.5s ease forwards;
}
.processing .line.check { color: var(--secondary); font-weight: 700; }
@keyframes lineIn { to { opacity: 1; } }

/* Loading page with progress */
.loading-page { text-align: center; padding: 50px 10px; }
.loading-page .pct { font-size: 40px; font-weight: 800; color: var(--primary); margin-bottom: 6px; }
.loading-page .loading-track {
  width: 100%; height: 10px; background: var(--border); border-radius: 99px; overflow: hidden; margin: 16px 0 20px;
}
.loading-page .loading-fill {
  height: 100%; background: linear-gradient(90deg, var(--secondary), var(--primary)); width: 0%; transition: width 0.15s linear;
}
.loading-page .desc { color: var(--text-soft); font-size: 15px; }

/* Capture form */
.capture h2 { font-size: 22px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.field input {
  width: 100%;
  padding: 14px;
  border: 2px solid var(--border);
  border-radius: 12px;
  font-size: 16px;
  font-family: inherit;
  background: var(--card);
}
.field input:focus { outline: none; border-color: var(--secondary); }
.field-error { color: var(--danger); font-size: 13px; margin-top: 4px; display: none; }

/* Pitch */
.pitch-block { margin-bottom: 28px; }
.pitch-name { color: var(--primary); }

.ab-table { width: 100%; border-collapse: separate; border-spacing: 0 8px; }
.ab-row { display: flex; gap: 8px; margin-bottom: 8px; }
.ab-col {
  flex: 1;
  border-radius: 12px;
  padding: 12px;
  font-size: 13.5px;
  font-weight: 600;
}
.ab-before { background: rgba(192,82,74,0.08); color: #8f3c36; }
.ab-after { background: rgba(107,143,113,0.12); color: #3f5c44; }
.ab-header { font-size: 12px; text-transform: uppercase; letter-spacing: 0.04em; font-weight: 800; margin-bottom: 6px; opacity: 0.75; }

.authority-card {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 16px;
}
.authority-card img { width: 76px; height: 96px; object-fit: cover; border-radius: 10px; flex-shrink: 0; }
.authority-card p { font-size: 14.5px; margin: 0; }

.receives-list { list-style: none; padding: 0; margin: 12px 0; }
.receives-list li {
  display: flex; align-items: flex-start; gap: 10px;
  background: var(--card); border: 1px solid var(--border);
  border-radius: 12px; padding: 12px 14px; margin-bottom: 8px; font-weight: 600; font-size: 14.5px;
}
.receives-list .ic { font-size: 20px; }

.price-box {
  background: var(--card);
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  padding: 20px;
  text-align: center;
}
.price-box .old { text-decoration: line-through; color: var(--text-soft); font-size: 17px; }
.price-box .new { font-size: 38px; font-weight: 800; color: var(--primary); margin: 4px 0; }
.price-box .timer { font-weight: 700; color: var(--danger); font-size: 14px; margin-top: 8px; }
.price-box .coupon {
  display: inline-block; margin-top: 10px; background: #fdf1ea; color: var(--primary-dark);
  font-family: monospace; font-weight: 700; padding: 6px 12px; border-radius: 8px; font-size: 13px;
}

.guarantee-box {
  background: #f3ecf6;
  border-radius: var(--radius);
  padding: 18px;
  text-align: center;
  border: 1px solid rgba(123,92,140,0.3);
}
.guarantee-box .ic { font-size: 30px; margin-bottom: 6px; }

.sticky-cta {
  position: fixed;
  bottom: 0; left: 0; right: 0;
  background: linear-gradient(to top, var(--bg) 60%, rgba(250,246,241,0));
  padding: 14px 20px 18px;
  z-index: 60;
}
.sticky-cta-btn {
  display: block; max-width: 480px; margin: 0 auto;
  background: var(--primary); color: #fff; text-align: center;
  padding: 17px; border-radius: 14px; font-weight: 800; font-size: 17px;
  text-decoration: none; box-shadow: 0 4px 16px rgba(107,143,113,0.35);
}
.pitch-spacer-bottom { height: 90px; }

.disclaimer { font-size: 11.5px; color: #a89f92; margin-top: 6px; }

@media (min-width: 520px) {
  #app { padding: 20px 24px 40px; }
}
