:root {
  --bg: #FFFBF2;
  --bg-alt: #FFF3DC;
  --surface: #FFFFFF;
  --ink: #3A3228;
  --ink-soft: #6B6153;
  --ink-faint: #9B9080;
  --border: #F0E4CC;

  /* puzzle piece palette */
  --puzzle-blue: #2F80ED;
  --puzzle-red: #FF6B5E;
  --puzzle-yellow: #FFC53D;
  --puzzle-green: #2DBE8F;

  --blue-tint: #E8F1FE;
  --red-tint: #FFEBE8;
  --yellow-tint: #FFF6DE;
  --green-tint: #E3FAF2;

  --radius-lg: 24px;
  --radius-md: 18px;
  --radius-sm: 12px;
  --shadow-card: 0 3px 14px rgba(58, 50, 40, 0.08);
  --shadow-float: 0 14px 34px rgba(58, 50, 40, 0.16);
  --header-h: 46px;
  --max-w: 640px;
  font-size: 16px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Baloo 2', 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

#app {
  min-height: 100vh;
  padding-top: var(--header-h);
}

/* ---------- Sticky header ---------- */

.sticky-header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  height: var(--header-h);
  background: linear-gradient(90deg, var(--puzzle-blue), var(--puzzle-green) 35%, var(--puzzle-yellow) 68%, var(--puzzle-red));
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 100;
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  padding: 0 16px;
  text-align: center;
  line-height: 1.3;
  text-shadow: 0 1px 2px rgba(0,0,0,0.15);
}

.sticky-header .check-icon {
  display: inline-flex;
  margin-right: 6px;
  flex-shrink: 0;
  font-size: 1rem;
}

/* ---------- puzzle divider ---------- */

.puzzle-divider {
  display: flex;
  gap: 8px;
  justify-content: center;
  margin: 22px 0;
}
.puzzle-divider span {
  width: 13px;
  height: 13px;
  border-radius: 4px;
  display: inline-block;
  transform: rotate(45deg);
}
.puzzle-divider span:nth-child(1) { background: var(--puzzle-blue); }
.puzzle-divider span:nth-child(2) { background: var(--puzzle-red); }
.puzzle-divider span:nth-child(3) { background: var(--puzzle-yellow); }
.puzzle-divider span:nth-child(4) { background: var(--puzzle-green); }

/* ---------- Layout shell ---------- */

.screen {
  width: 100%;
  min-height: calc(100vh - var(--header-h));
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 28px 20px 100px;
  animation: fadeIn 0.45s ease;
}

.screen-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  width: 100%;
}

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

/* ---------- Progress bar ---------- */

.progress-wrap {
  position: sticky;
  top: var(--header-h);
  z-index: 95;
  background: var(--bg);
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 14px 20px 12px;
  box-shadow: 0 8px 12px -8px rgba(58, 50, 40, 0.1);
}

.progress-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-soft);
  margin-bottom: 8px;
  display: flex;
  justify-content: space-between;
}

.progress-track {
  height: 8px;
  background: var(--border);
  border-radius: 99px;
  overflow: hidden;
}

.progress-fill {
  height: 100%;
  background: linear-gradient(90deg, var(--puzzle-blue), var(--puzzle-green), var(--puzzle-yellow));
  border-radius: 99px;
  transition: width 0.4s ease;
}

/* ---------- Hero ---------- */

.hero-eyebrow {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--puzzle-blue);
  letter-spacing: 0.03em;
  margin-bottom: 14px;
}

.hero-headline {
  font-size: clamp(1.7rem, 5.5vw, 2.4rem);
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: -0.01em;
  margin: 0 0 16px;
}

.hero-sub {
  font-size: 1.08rem;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 28px;
}

.hero-disclaimer {
  font-size: 0.86rem;
  color: var(--ink-faint);
  margin-top: 14px;
  text-align: center;
  font-weight: 600;
}

/* ---------- Buttons ---------- */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 18px 24px;
  border-radius: 99px;
  font-size: 1.05rem;
  font-weight: 800;
  letter-spacing: 0.01em;
  border: none;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
  text-decoration: none;
}

.btn-primary {
  background: var(--puzzle-blue);
  color: #fff;
  box-shadow: 0 6px 18px rgba(47, 128, 237, 0.35);
}
.btn-primary:hover { background: #2569C9; transform: translateY(-2px) scale(1.01); }
.btn-primary:active { transform: translateY(0) scale(1); }

.btn-gold {
  background: var(--puzzle-yellow);
  color: #4A3700;
  box-shadow: 0 6px 18px rgba(255, 197, 61, 0.45);
}
.btn-gold:hover { background: #F0B41F; transform: translateY(-2px) scale(1.01); }

.btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
  transform: none;
}

/* ---------- Question card ---------- */

.q-title {
  font-size: clamp(1.3rem, 4.2vw, 1.65rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 8px;
}

.q-title.large {
  font-size: clamp(1.55rem, 5.8vw, 2.05rem);
  text-align: center;
}

.q-subtitle {
  font-size: 1.02rem;
  color: var(--ink-soft);
  margin: 0 0 22px;
  font-weight: 600;
}

.q-options {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin-bottom: 24px;
}

.q-option {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  text-align: left;
  background: var(--surface);
  border: 2px solid var(--border);
  border-left-width: 6px;
  border-radius: var(--radius-md);
  padding: 16px 18px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--ink);
  cursor: pointer;
  transition: border-color 0.15s ease, background 0.15s ease, transform 0.1s ease;
}

.q-option:nth-child(4n+1) { border-left-color: var(--puzzle-blue); }
.q-option:nth-child(4n+2) { border-left-color: var(--puzzle-red); }
.q-option:nth-child(4n+3) { border-left-color: var(--puzzle-yellow); }
.q-option:nth-child(4n+4) { border-left-color: var(--puzzle-green); }

.q-option:hover {
  background: var(--yellow-tint);
  transform: translateX(2px);
}

.q-option:active { transform: scale(0.99); }

.q-option.selected {
  background: var(--blue-tint);
  border-color: var(--puzzle-blue);
  box-shadow: inset 0 0 0 1.5px var(--puzzle-blue);
}

.q-option .opt-icon {
  font-size: 1.5rem;
  flex-shrink: 0;
}

.q-option .opt-check {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 2px solid var(--border);
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.q-option.selected .opt-check {
  background: var(--puzzle-blue);
  border-color: var(--puzzle-blue);
  color: #fff;
  font-size: 0.75rem;
}

/* card-style grid for q10 */
.q-options.card-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}
@media (max-width: 480px) {
  .q-options.card-grid { grid-template-columns: 1fr; }
}
.q-options.card-grid .q-option {
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-height: 112px;
  justify-content: center;
  border-left-width: 2px;
  border-top-width: 6px;
}
.q-options.card-grid .opt-icon { font-size: 2rem; }

/* compact 2-column grid for long checklists (e.g. Q5) */
.q-options.compact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
@media (max-width: 320px) {
  .q-options.compact-grid { grid-template-columns: 1fr; }
}
.q-options.compact-grid .q-option {
  padding: 10px 8px;
  font-size: 0.78rem;
  line-height: 1.25;
  gap: 6px;
  border-left-width: 4px;
  min-height: 52px;
}
.q-options.compact-grid .opt-icon { font-size: 1.15rem; }
.q-options.compact-grid .opt-check { width: 18px; height: 18px; font-size: 0.65rem; }

/* ---------- Insight box ---------- */

.insight-box {
  background: var(--yellow-tint);
  border: 2px dashed var(--puzzle-yellow);
  border-radius: var(--radius-sm);
  padding: 16px 18px;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink-soft);
  line-height: 1.55;
  margin-bottom: 22px;
  animation: fadeIn 0.4s ease;
}

/* ---------- Area tags (after Q5) ---------- */

.area-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 18px 0 24px;
}
.area-chip {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.9rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
}
.area-chip.active {
  border-color: var(--puzzle-green);
  background: var(--green-tint);
  color: #0E7C5A;
}
.area-chip.inactive { opacity: 0.4; }

/* ---------- Processing screen ---------- */

.processing-screen {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  min-height: calc(100vh - var(--header-h));
  padding: 20px;
}

.spinner {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 4px solid var(--border);
  border-top-color: var(--puzzle-blue);
  border-right-color: var(--puzzle-red);
  animation: spin 0.9s linear infinite;
  margin-bottom: 28px;
}
@keyframes spin { to { transform: rotate(360deg); } }

.processing-line {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--ink-soft);
  min-height: 1.6em;
  transition: opacity 0.3s ease;
}

/* ---------- Result screen ---------- */

.result-tier-badge {
  display: inline-block;
  background: var(--green-tint);
  color: #0E7C5A;
  font-weight: 800;
  font-size: 0.92rem;
  padding: 9px 18px;
  border-radius: 99px;
  margin-bottom: 18px;
}

.result-title {
  font-size: clamp(1.5rem, 5.2vw, 1.95rem);
  font-weight: 800;
  line-height: 1.3;
  margin: 0 0 14px;
}

.result-desc {
  font-size: 1.03rem;
  color: var(--ink-soft);
  line-height: 1.6;
  margin-bottom: 26px;
  font-weight: 600;
}

.areas-label {
  font-size: 0.85rem;
  font-weight: 800;
  color: var(--ink-faint);
  letter-spacing: 0.03em;
  text-transform: uppercase;
  margin-bottom: 12px;
}

.personalization-box {
  background: var(--blue-tint);
  border: 2px solid var(--puzzle-blue);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
  line-height: 1.6;
  margin: 22px 0;
}

.result-disclaimer {
  font-size: 0.88rem;
  color: var(--ink-faint);
  line-height: 1.55;
  border-top: 2px dashed var(--border);
  padding-top: 18px;
  margin-top: 8px;
}

/* ---------- Turning point (full emotional screens) ---------- */

.turning-screen {
  min-height: calc(100vh - var(--header-h));
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 40px 24px;
  background: linear-gradient(160deg, #1F3B57, #164A40);
  color: #FAFDFB;
}

.turning-line {
  font-size: clamp(1.35rem, 5.2vw, 2rem);
  font-weight: 700;
  line-height: 1.4;
  max-width: 560px;
  margin: 0 auto 10px;
  opacity: 0;
  animation: lineIn 0.6s ease forwards;
}

.turning-line.big {
  font-size: clamp(1.9rem, 7.5vw, 2.9rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--puzzle-yellow);
}

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

/* ---------- Method presentation ---------- */

.method-title {
  font-size: clamp(1.35rem, 4.8vw, 1.75rem);
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
  margin-bottom: 30px;
}

.method-steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.method-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 18px;
  background: var(--surface);
  border-radius: var(--radius-md);
  border: 2px solid var(--border);
  margin-bottom: 4px;
}

.method-step:nth-of-type(1) { border-left: 6px solid var(--puzzle-blue); }
.method-step:nth-of-type(2) { border-left: 6px solid var(--puzzle-yellow); }
.method-step:nth-of-type(3) { border-left: 6px solid var(--puzzle-red); }

.method-step-key {
  flex-shrink: 0;
  width: 108px;
  font-weight: 800;
  color: var(--ink);
  font-size: 0.98rem;
  letter-spacing: 0.01em;
}

.method-step-text {
  color: var(--ink-soft);
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.55;
}

.method-arrow {
  text-align: center;
  color: var(--puzzle-green);
  font-size: 1.3rem;
  margin: 2px 0;
  font-weight: 800;
}

/* ---------- Sales page sections ---------- */

.sales-section {
  padding: 52px 20px;
}
.sales-section.alt { background: var(--bg-alt); }
.sales-section.dark { background: linear-gradient(160deg, #1F3B57, #164A40); color: #FAFDFB; }

.sales-inner {
  max-width: 760px;
  margin: 0 auto;
}

.sales-eyebrow {
  font-size: 1.1rem;
  color: var(--ink-soft);
  font-weight: 700;
  text-align: center;
  line-height: 1.6;
  margin-bottom: 10px;
}

.sales-title {
  font-size: clamp(1.55rem, 5.2vw, 2.15rem);
  font-weight: 800;
  text-align: center;
  line-height: 1.3;
  margin: 0 0 16px;
}

.sales-text {
  font-size: 1.03rem;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.65;
  text-align: center;
  max-width: 560px;
  margin: 0 auto 36px;
}

.dark .sales-text, .dark .sales-title { color: #FAFDFB; }
.dark .emotional-box.sales-title,
.dark .emotional-box .sales-title,
.dark .emotional-box .sales-text { color: var(--ink); }

.tool-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 36px;
}
@media (max-width: 520px) {
  .tool-grid { grid-template-columns: 1fr; }
}

.tool-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 22px;
  box-shadow: var(--shadow-card);
}
.tool-card:nth-child(1) { border-top: 6px solid var(--puzzle-blue); }
.tool-card:nth-child(2) { border-top: 6px solid var(--puzzle-red); }
.tool-card:nth-child(3) { border-top: 6px solid var(--puzzle-yellow); }
.tool-card:nth-child(4) { border-top: 6px solid var(--puzzle-green); }

.tool-number {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--ink-faint);
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.tool-title {
  font-size: 1.1rem;
  font-weight: 800;
  margin-bottom: 6px;
}

.tool-text {
  font-size: 0.9rem;
  color: var(--ink-soft);
  font-weight: 600;
  line-height: 1.5;
}

.complementary-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: center;
}
.complementary-chip {
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: 99px;
  padding: 9px 16px;
  font-size: 0.87rem;
  font-weight: 700;
  color: var(--ink-soft);
}

/* transformation pairs */
.transform-pair {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 14px;
  background: var(--surface);
  border: 2px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-card);
}
@media (max-width: 560px) {
  .transform-pair { grid-template-columns: 1fr; text-align: left; }
  .transform-arrow { transform: rotate(90deg); justify-self: start; }
}
.transform-before, .transform-after { font-size: 0.93rem; font-weight: 700; line-height: 1.5; }
.transform-before { color: var(--ink-faint); }
.transform-before::before { content: "ANTES"; display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; color: var(--puzzle-red); margin-bottom: 6px; }
.transform-after { color: #0E7C5A; }
.transform-after::before { content: "DEPOIS"; display: block; font-size: 0.7rem; font-weight: 800; letter-spacing: 0.06em; color: var(--puzzle-green); margin-bottom: 6px; }
.transform-arrow { color: var(--puzzle-yellow); font-size: 1.3rem; }

/* objection / emotional */
.objection-box, .emotional-box {
  background: var(--surface);
  border-radius: var(--radius-lg);
  padding: 32px 26px;
  box-shadow: var(--shadow-card);
  max-width: 640px;
  margin: 0 auto;
  border: 2px solid var(--border);
}

/* offer */
.offer-card {
  background: var(--surface);
  border: 3px solid var(--puzzle-blue);
  border-radius: var(--radius-lg);
  padding: 30px 24px;
  box-shadow: var(--shadow-float);
  max-width: 480px;
  margin: 0 auto;
}

.offer-includes {
  list-style: none;
  padding: 0;
  margin: 20px 0 26px;
}
.offer-includes li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.98rem;
  font-weight: 700;
  color: var(--ink);
}

.price-row {
  text-align: center;
  margin: 20px 0 24px;
}
.price-original {
  font-size: 1.05rem;
  color: var(--ink-faint);
  text-decoration: line-through;
  margin-bottom: 2px;
  font-weight: 700;
}
.price-offer {
  font-size: 1.9rem;
  font-weight: 800;
  color: var(--puzzle-green);
}
.price-offer .price-currency { font-size: 1.05rem; vertical-align: top; margin-right: 2px; }
.price-cash {
  font-size: 0.92rem;
  font-weight: 700;
  color: var(--ink-faint);
  margin-top: 4px;
}

/* bonus */
.bonus-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 480px;
  margin: 24px auto 0;
}
.bonus-item {
  background: var(--surface);
  border: 2px solid var(--puzzle-yellow);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink);
}

/* guarantee */
.guarantee-box {
  max-width: 480px;
  margin: 0 auto;
  text-align: center;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-soft);
  background: var(--green-tint);
  border-radius: var(--radius-md);
  padding: 20px;
}

/* testimonials */
.testimonial-grid {
  display: grid;
  gap: 14px;
}
.testimonial-card {
  background: var(--surface);
  border: 2px solid var(--border);
  border-left: 6px solid var(--puzzle-green);
  border-radius: var(--radius-md);
  padding: 18px 20px;
  font-size: 0.92rem;
  color: var(--ink-soft);
  font-style: italic;
  font-weight: 600;
  box-shadow: var(--shadow-card);
}

/* legal */
.legal-notice {
  font-size: 0.8rem;
  color: var(--ink-faint);
  line-height: 1.6;
  text-align: center;
  max-width: 560px;
  margin: 0 auto;
  padding: 24px 20px 10px;
  font-weight: 600;
}

/* sticky CTA (sales page, mobile) */
.sticky-cta {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background: var(--surface);
  border-top: 2px solid var(--border);
  padding: 12px 16px;
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
  z-index: 90;
  box-shadow: 0 -4px 16px rgba(0,0,0,0.08);
}
.sticky-cta .btn { max-width: var(--max-w); margin: 0 auto; }

footer.final-cta-space { height: 90px; }

::selection { background: var(--yellow-tint); }
