/* Convincefy demo pages — WARM consumer theme.
   Mirrors saas-prototype/assets/quiz.js addPrelanderTheme() + money-block renderers.
   These are illustrative example pages produced by the builder, not live AI output. */

:root {
  --paper: #FCFBF9;
  --paper-2: #FAF7F1;
  --ink: #211E1A;
  --ink-2: #3F3A33;
  --ink-3: #5C574E;
  --muted: #8A8478;
  --line: #ECE7DE;
  --green: #2E7D6B;
  --green-soft: #E6F1ED;
  --star: #F5A623;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  background: var(--paper);
  color: var(--ink-2);
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  -webkit-font-smoothing: antialiased;
  line-height: 1.6;
}
img { max-width: 100%; display: block; }
.main { max-width: 720px; margin: 0 auto; width: 100%; }

/* accent themes per niche (applied on <body class="theme-x">) */
.theme-menopause { --green: #B4577D; --green-soft: #FBEBF1; --paper-2: #FCF3F6; }
.theme-glp1      { --green: #2E7D6B; --green-soft: #E6F1ED; }
.theme-testo     { --green: #2F6FB0; --green-soft: #E8F0F8; --paper-2: #F3F7FC; }
.theme-gut       { --green: #C1683A; --green-soft: #FBEEE6; --paper-2: #FCF4EE; }
.theme-joint     { --green: #3E7A55; --green-soft: #E9F2EC; --paper-2: #F2F8F3; }

/* top ribbon (native/editorial framing) */
.ribbon {
  background: var(--ink); color: #F4EFE6; text-align: center;
  font-size: 12px; letter-spacing: .04em; padding: 8px 16px;
}
.ad-tag {
  max-width: 720px; margin: 0 auto; padding: 10px 24px 0;
  color: var(--muted); font-size: 11px; letter-spacing: .08em; text-transform: uppercase;
}

/* editorial masthead */
.masthead {
  border-bottom: 1px solid var(--line); padding: 14px 24px; text-align: center;
}
.masthead .brand { font-weight: 800; color: var(--ink); letter-spacing: -.01em; font-size: 18px; }
.masthead .brand .dot { color: var(--green); }
.masthead .byline { color: var(--muted); font-size: 12px; margin-top: 4px; }

/* hero */
.hero { padding: 40px 24px 24px; text-align: center; }
.hero .kicker { color: var(--green); font-weight: 700; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; }
.hero h1 { font-size: clamp(27px, 5vw, 40px); font-weight: 800; line-height: 1.15; letter-spacing: -.02em; color: var(--ink); margin: 12px 0 0; }
.hero .sub { font-size: 17px; line-height: 1.6; color: var(--ink-3); max-width: 560px; margin: 14px auto 22px; }

/* sections */
.section { padding: 26px 24px; }
.section h2 { font-size: 22px; font-weight: 700; color: var(--ink); text-align: center; margin: 0 auto 18px; line-height: 1.25; max-width: 600px; }
.prose { font-size: 16px; line-height: 1.7; color: var(--ink-2); max-width: 600px; margin: 0 auto; }
.prose p { margin: 0 0 16px; }
.lead { font-size: 18px; color: var(--ink); font-weight: 500; }

/* numbered reasons (listicle) */
.reason { max-width: 600px; margin: 0 auto 22px; padding: 0; }
.reason .n { display: inline-flex; align-items: center; justify-content: center; width: 30px; height: 30px; border-radius: 50%; background: var(--green); color: #fff; font-weight: 800; font-size: 15px; margin-right: 10px; vertical-align: middle; }
.reason h3 { display: inline; font-size: 19px; font-weight: 700; color: var(--ink); }
.reason p { margin: 12px 0 0; color: var(--ink-2); font-size: 16px; line-height: 1.65; }

/* checkmark bullets */
.bullets { max-width: 560px; margin: 0 auto; padding: 0; list-style: none; }
.bullets li { font-size: 16px; color: var(--ink-2); line-height: 1.5; margin-bottom: 14px; padding-left: 30px; position: relative; }
.bullets li::before { content: '✓'; position: absolute; left: 0; top: 0; color: var(--green); font-weight: 800; }

/* product mockup (CSS/SVG, no external assets) */
.pack { display: flex; justify-content: center; padding: 8px 0 4px; }
.figcap { color: var(--muted); font-size: 13px; text-align: center; margin-top: 8px; }

/* ingredients grid */
.ingredients { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; max-width: 600px; margin: 0 auto; }
.ingredient { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 16px; text-align: center; }
.ingredient .ico { width: 44px; height: 44px; margin: 0 auto 10px; border-radius: 12px; background: var(--green-soft); display: flex; align-items: center; justify-content: center; }
.ingredient h4 { margin: 0 0 4px; font-size: 15px; color: var(--ink); }
.ingredient p { margin: 0; font-size: 13px; color: var(--ink-3); line-height: 1.5; }

/* comparison table */
.compare { max-width: 600px; margin: 0 auto; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; background: #fff; }
.compare .row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; }
.compare .row + .row { border-top: 1px solid var(--line); }
.compare .cell { padding: 13px 12px; font-size: 14px; }
.compare .head { background: var(--paper-2); font-weight: 700; color: var(--ink); text-align: center; }
.compare .head.us { background: var(--green); color: #fff; }
.compare .feat { color: var(--ink-2); }
.compare .us-col { text-align: center; color: var(--green); font-weight: 700; }
.compare .them-col { text-align: center; color: var(--muted); }

/* testimonials */
.tst { background: var(--paper-2); border-radius: 16px; padding: 22px 24px; margin: 0 auto 12px; max-width: 560px; text-align: center; }
.tst .stars { color: var(--star); letter-spacing: 2px; font-size: 15px; }
.tst .txt { font-style: italic; color: #3A352E; font-size: 16px; line-height: 1.6; margin: 8px 0 10px; }
.tst .who { color: var(--muted); font-size: 13px; display: flex; align-items: center; gap: 8px; justify-content: center; }
.tst .av { width: 34px; height: 34px; border-radius: 50%; background: var(--green-soft); color: var(--green); font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 13px; }

/* offer box */
.offer { text-align: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: 18px; padding: 28px 26px; max-width: 480px; margin: 0 auto; }
.offer .tag { display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 13px; padding: 5px 13px; border-radius: 20px; margin-bottom: 14px; }
.offer .price { font-size: 40px; font-weight: 800; color: var(--ink); line-height: 1; }
.offer .was { color: var(--muted); text-decoration: line-through; font-size: 17px; margin-left: 8px; font-weight: 600; }
.offer .per { color: var(--ink-3); font-size: 14px; margin-top: 6px; }

/* price stack / plans */
.plans { display: grid; gap: 12px; max-width: 560px; margin: 0 auto; }
.plan { position: relative; background: #fff; border: 2px solid var(--line); border-radius: 16px; padding: 18px 18px 18px 16px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; }
.plan.best { border-color: var(--green); }
.plan .badge { position: absolute; top: -11px; left: 16px; background: var(--green); color: #fff; font-size: 11px; font-weight: 700; padding: 3px 10px; border-radius: 20px; letter-spacing: .03em; }
.plan .qty { text-align: center; }
.plan .qty .b { font-size: 22px; font-weight: 800; color: var(--ink); }
.plan .qty .s { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.plan .mid .t { font-weight: 700; color: var(--ink); font-size: 15px; }
.plan .mid .d { color: var(--ink-3); font-size: 13px; }
.plan .pr { text-align: right; }
.plan .pr .now { font-size: 20px; font-weight: 800; color: var(--ink); }
.plan .pr .ea { font-size: 12px; color: var(--muted); }

/* CTA button */
.cta-wrap { text-align: center; padding: 8px 24px 30px; }
.btn {
  display: inline-block; background: var(--green); color: #fff; font-weight: 700; font-size: 17px;
  padding: 16px 34px; border: none; border-radius: 40px; box-shadow: 0 8px 20px rgba(0,0,0,.12);
  cursor: pointer; text-decoration: none; transition: transform .12s ease, filter .15s ease;
}
.btn:hover { filter: brightness(1.05); }
.btn:active { transform: scale(.98); }
.reassure { color: var(--muted); font-size: 13px; margin-top: 12px; }
.guarantee { max-width: 520px; margin: 22px auto 0; text-align: center; background: #fff; border: 1px dashed var(--green); border-radius: 14px; padding: 18px; }
.guarantee .g-t { font-weight: 700; color: var(--ink); }
.guarantee .g-d { color: var(--ink-3); font-size: 14px; margin-top: 4px; }

/* FAQ */
.faq { max-width: 600px; margin: 0 auto; }
.faq details { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; padding: 2px 18px; background: #fff; }
.faq summary { font-weight: 600; color: var(--ink); padding: 15px 0; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--green); font-weight: 700; }
.faq details[open] summary::after { content: '\2013'; }
.faq .a { color: var(--ink-3); font-size: 15px; line-height: 1.6; padding-bottom: 15px; }

/* footer */
.foot { color: var(--muted); font-size: 12px; text-align: center; padding: 30px 24px 48px; border-top: 1px solid var(--line); margin-top: 20px; line-height: 1.6; }
.foot a { color: var(--muted); }

/* quiz (glp1) */
.quiz-stage { max-width: 560px; margin: 0 auto; padding: 8px 0; }
.quiz-progress { height: 6px; background: var(--line); border-radius: 4px; overflow: hidden; margin-bottom: 22px; }
.quiz-progress > i { display: block; height: 100%; background: var(--green); width: 20%; transition: width .35s ease; }
.quiz-q { font-size: 22px; font-weight: 800; color: var(--ink); text-align: center; margin: 0 0 6px; line-height: 1.25; }
.quiz-help { text-align: center; color: var(--ink-3); font-size: 14px; margin: 0 0 20px; }
.quiz-opts { display: grid; gap: 12px; }
.quiz-opt { background: #fff; border: 2px solid var(--line); border-radius: 14px; padding: 16px 18px; font-size: 16px; font-weight: 600; color: var(--ink-2); text-align: left; cursor: pointer; transition: border-color .15s ease, background .15s ease; }
.quiz-opt:hover { border-color: var(--green); background: var(--green-soft); }
.quiz-step { display: none; }
.quiz-step.active { display: block; animation: fade .3s ease; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.result-badge { display: inline-block; background: var(--green-soft); color: var(--green); font-weight: 700; font-size: 13px; padding: 6px 14px; border-radius: 20px; }

@media (max-width: 560px) {
  .ingredients { grid-template-columns: 1fr; }
  .compare .cell { padding: 11px 8px; font-size: 13px; }
}
