/* ===========================================================================
   Mente Singular — design system (fiel ao funil original)
   =========================================================================== */
:root {
  --cta: #FECF4E;          /* amarelo do botão */
  --cta-text: #5C432A;
  --accent: #019CA1;       /* teal */
  --ink: #333333;
  --muted: #6B7280;
  --line: #E7E7E7;
  --bg: #FFFFFF;
  --soft: #F6F7F8;
  --radius: 14px;
  --maxw: 460px;
}
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; padding: 0; }
body {
  font-family: "Rubik", system-ui, -apple-system, sans-serif;
  color: var(--ink);
  background: #EDEFF1;
  line-height: 1.5;
}
#app { min-height: 100dvh; display: flex; justify-content: center; }
.screen {
  width: 100%; max-width: var(--maxw); background: var(--bg);
  min-height: 100dvh; display: flex; flex-direction: column;
}

/* ------------------------------- topbar -------------------------------- */
.topbar {
  display: flex; align-items: center; gap: 8px;
  padding: 14px 16px 6px; position: sticky; top: 0; background: var(--bg); z-index: 5;
}
.back {
  border: none; background: var(--soft); width: 34px; height: 34px; border-radius: 50%;
  font-size: 22px; line-height: 1; color: var(--ink); cursor: pointer;
}
.back.hidden { visibility: hidden; }
.brand { flex: 1; text-align: center; font-weight: 700; color: var(--accent); letter-spacing: .2px; }
.brand-logo-img { height: 28px; width: auto; vertical-align: middle; }
.spacer { width: 34px; }
.progress { height: 6px; background: var(--line); margin: 6px 16px 0; border-radius: 99px; overflow: hidden; }
.progress-fill { height: 100%; background: var(--accent); border-radius: 99px; transition: width .3s ease; }

/* -------------------------------- body --------------------------------- */
.body { flex: 1; padding: 18px 22px 36px; display: flex; flex-direction: column; }
h1 { font-size: 23px; font-weight: 700; margin: 14px 0 6px; line-height: 1.25; }
h2 { font-size: 19px; font-weight: 600; margin: 18px 0 8px; }
.sub { color: var(--ink); opacity: .85; margin: 0 0 14px; }
.hint, .privacy { color: var(--muted); font-size: 13px; }
.hint { margin: -4px 0 12px; }

/* placeholder de imagem */
.ph {
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 8px; background: linear-gradient(135deg, #EAF7F7, #FFF7E2);
  border: 1px dashed #CDE3E3; border-radius: var(--radius);
  min-height: 180px; margin: 8px 0 18px; color: var(--accent);
}
.ph-emoji { font-size: 56px; line-height: 1; }
.ph-cap { font-size: 13px; color: var(--muted); }
.hero { width: 100%; border-radius: var(--radius); margin: 8px 0 18px; }

/* --------------------------------- CTA --------------------------------- */
.cta {
  margin-top: auto; border: none; background: var(--cta); color: var(--cta-text);
  font-family: inherit; font-weight: 700; font-size: 17px; padding: 16px;
  border-radius: 99px; cursor: pointer; width: 100%;
  box-shadow: 0 6px 18px rgba(254,207,78,.45); transition: transform .1s ease;
}
.cta:hover { transform: translateY(-1px); }
.cta:disabled { background: #EDEDED; color: #B5B5B5; box-shadow: none; cursor: not-allowed; }
.cta.sticky { position: sticky; bottom: 14px; }

/* ------------------------------ opções --------------------------------- */
.options { display: flex; flex-direction: column; gap: 10px; margin: 10px 0 18px; }
.opt {
  display: flex; align-items: center; gap: 10px; text-align: left;
  border: 1.5px solid var(--line); background: var(--bg); color: var(--ink);
  font-family: inherit; font-size: 16px; padding: 16px 16px; border-radius: var(--radius);
  cursor: pointer; transition: all .15s ease; position: relative;
}
.opt:hover { border-color: var(--accent); }
.opt .chev { margin-left: auto; color: var(--muted); font-size: 20px; }
.opt.multi .check {
  width: 22px; height: 22px; border-radius: 6px; border: 1.5px solid var(--line);
  display: inline-flex; align-items: center; justify-content: center; color: transparent; font-size: 14px; flex: 0 0 auto;
}
.opt.on { border-color: var(--accent); background: #F1FBFB; }
.opt.on .check { background: var(--accent); border-color: var(--accent); color: #fff; }

/* ------------------------------ likert --------------------------------- */
.likert-wrap { display: flex; flex-direction: column; justify-content: center; flex: 1; text-align: center; }
.statement { font-size: 24px; margin-bottom: 34px; }
.likert { display: flex; align-items: center; justify-content: center; gap: 16px; margin-bottom: 14px; }
.dot {
  border-radius: 50%; border: 2px solid var(--accent); background: #fff; cursor: pointer;
  transition: transform .12s ease, background .12s ease;
}
.dot-1, .dot-5 { width: 58px; height: 58px; }
.dot-2, .dot-4 { width: 48px; height: 48px; }
.dot-3 { width: 40px; height: 40px; border-color: var(--muted); }
.dot:hover, .dot.picked { background: var(--accent); transform: scale(1.05); }
.likert-labels { display: flex; justify-content: space-between; color: var(--muted); font-size: 13px; }
.likert-labels span:nth-child(2) { opacity: .7; }

/* ------------------------------ social --------------------------------- */
.social { text-align: center; flex: 1; display: flex; flex-direction: column; }
.big { font-size: 30px; }
.rating { display: flex; flex-direction: column; align-items: center; gap: 2px; margin: 8px 0 18px; }
.stars { color: #F5B301; letter-spacing: 2px; }
.testi-avatar { width: 84px; height: 84px; border-radius: 50%; object-fit: cover; margin: 0 auto 12px; display: block; box-shadow: 0 4px 14px rgba(0,0,0,.12); }
blockquote { background: var(--soft); border-radius: var(--radius); padding: 18px; margin: 0 0 22px; font-style: italic; color: #444; }

/* ------------------------------ canvas --------------------------------- */
.canvas-wrap { position: relative; margin: 8px 0 18px; }
#pad { width: 100%; height: 300px; background: var(--soft); border-radius: var(--radius); border: 1px solid var(--line); touch-action: none; cursor: crosshair; }
.clear { position: absolute; top: 10px; right: 10px; border: none; background: #fff; border-radius: 99px; padding: 6px 12px; font-size: 12px; color: var(--muted); cursor: pointer; box-shadow: 0 1px 4px rgba(0,0,0,.12); }

/* ------------------------------ loader --------------------------------- */
.loader { text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.ring { position: relative; width: 120px; height: 120px; margin-bottom: 8px; }
.ring svg { transform: rotate(-90deg); width: 120px; height: 120px; }
.ring-bg { fill: none; stroke: var(--line); stroke-width: 8; }
.ring-fg { fill: none; stroke: var(--accent); stroke-width: 8; stroke-linecap: round; transition: stroke-dashoffset .1s linear; }
.pct { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 22px; }
.poll { margin-top: 18px; background: var(--soft); border-radius: var(--radius); padding: 16px; width: 100%; }
.poll-opts { display: flex; gap: 10px; justify-content: center; }
.poll-btn { width: auto; padding: 10px 22px; }
.poll.answered { opacity: .5; }

/* ------------------------------ inputs --------------------------------- */
.field {
  width: 100%; border: 1.5px solid var(--line); border-radius: var(--radius);
  padding: 16px; font-family: inherit; font-size: 16px; margin: 10px 0 6px;
}
.field:focus { outline: none; border-color: var(--accent); }
.err { color: #D64545; font-size: 13px; min-height: 18px; margin: 0 0 4px; }
.privacy { margin: 4px 0 14px; }

/* ------------------------------- legal --------------------------------- */
.legal { margin-top: 22px; font-size: 11px; color: #9AA0A6; text-align: center; }
.legal-links { margin: 8px 0; }
.legal a { color: var(--accent); text-decoration: none; }
.copyright { margin-top: 6px; }

/* ------------------------------ paywall -------------------------------- */
.paywall { display: flex; flex-direction: column; padding-top: 6px; }
.pw-title { text-align: center; font-size: 24px; margin: 6px 0; }
.pw-subtitle { text-align: center; font-weight: 600; color: var(--accent); margin: -2px 0 6px; }

/* timer vermelho fixo no topo */
.pw-timer {
  position: sticky; top: 0; z-index: 8;
  background: #FCE4E4; color: #B0341F; text-align: center;
  padding: 12px 16px; font-weight: 600; font-size: 15px;
  border-bottom: 1px solid #F4C7C3;
}
.pw-timer strong { font-family: "Roboto Mono", ui-monospace, monospace; color: #C0392B; font-size: 17px; letter-spacing: 1px; }

/* CTA escuro (estilo "Get full report" original) */
.cta.dark { background: #6E2B3E; color: #fff; box-shadow: 0 6px 18px rgba(110,43,62,.32); }

/* card de resultado com as categorias borradas */
.result-card { background: #fff; border: 1px solid #E7E7E7; border-radius: 12px; padding: 20px; margin: 14px 0 0; }
.result-list { display: flex; flex-direction: column; gap: 18px; }
.rcat-name { font-weight: 700; font-size: 16px; color: #4A4A4A; }
.rcat-status { font-weight: 700; font-size: 16px; margin: 2px 0 4px; }
.rcat-status.red { color: #C0392B; }
.rcat-status.teal { color: var(--accent); }
.rcat-desc { color: var(--muted); font-size: 14px; margin: 0; }

/* 1ª categoria nítida; as demais com a copy desfocada (como no original) */
.rcat.blur { filter: blur(4px); user-select: none; pointer-events: none; }
.rcat.blur:nth-child(n+3) { filter: blur(6px); }
.reveal-cta { margin-top: 16px; }

.plan { border: 1.5px solid #2D9CDB; border-radius: 14px; padding: 0 18px 18px; margin: 18px 0; overflow: hidden; }
.plan-badge { display: block; text-align: center; background: #2D9CDB; color: #fff; font-weight: 600; font-size: 14px; padding: 11px; margin: 0 -18px 14px; }
.plan-title { margin: 4px 0 0; font-size: 17px; }
.benefits { list-style: none; padding: 0; margin: 14px 0; display: flex; flex-direction: column; gap: 10px; }
.benefits li { display: flex; gap: 10px; font-size: 14.5px; align-items: flex-start; }
.benefits li span { flex: 0 0 auto; }
.price { display: flex; align-items: center; gap: 12px; margin: 12px 0 2px; }
.price .old { text-decoration: line-through; color: var(--muted); font-size: 18px; }
.price .now { background: #27AE60; color: #fff; font-size: 30px; font-weight: 700; padding: 4px 14px; border-radius: 10px; }
.inst { color: var(--muted); font-size: 13px; margin: 0 0 4px; }
.plan-note { font-size: 13px; color: var(--muted); margin: 8px 0 14px; }
.pays { display: flex; gap: 8px; justify-content: center; margin-top: 12px; }
.pay { font-size: 12px; color: var(--muted); border: 1px solid var(--line); border-radius: 6px; padding: 4px 10px; }

.science { text-align: center; color: var(--ink); font-weight: 500; font-size: 14px; margin: 12px 0 10px; }

/* logos das publicações */
.brands { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 16px 22px; margin: 0 0 22px; }
.brand-logo { font-family: Georgia, "Times New Roman", serif; font-weight: 700; font-size: 15px; color: #4A4A4A; opacity: .7; white-space: nowrap; }

/* seção "As pessoas confiam na gente" */
.trust-title { text-align: center; margin-top: 6px; }
.trust-card { background: var(--soft); border-radius: 18px; padding: 20px 0; margin: 8px 0 20px; text-align: center; overflow: hidden; }
.trust-count { margin: 0 20px 14px; color: var(--ink); }
.trust-count strong { color: var(--accent); }

/* esteira de e-mails rolando */
.marquee { overflow: hidden; width: 100%; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: inline-flex; gap: 10px; padding: 0 10px; white-space: nowrap; animation: scroll-x 90s linear infinite; will-change: transform; }
.mail { background: #fff; border: 1px solid var(--line); border-radius: 99px; padding: 8px 14px; font-size: 13px; color: #555; }
@keyframes scroll-x { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* selo de garantia */
.seal { display: flex; justify-content: center; margin: 22px 0 16px; }
.seal-ring { width: 110px; height: 110px; border-radius: 50%; background: radial-gradient(circle at 50% 35%, #F6A23B, #E2741B); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; box-shadow: 0 6px 16px rgba(226,116,27,.35); border: 4px dashed rgba(255,255,255,.6); }
.seal-ring span { font-size: 11px; font-weight: 600; letter-spacing: .5px; }
.seal-ring strong { font-size: 16px; font-weight: 800; }
.guarantee-text { margin: 0 20px; font-size: 14px; color: #555; }

.reviews { display: flex; flex-direction: column; gap: 12px; margin: 8px 0 20px; }
.review { border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.review strong { display: block; margin: 6px 0; }
.review p { margin: 0 0 6px; font-size: 14px; color: #444; }
.author { color: var(--muted); font-size: 13px; }

.faq-title { text-align: center; }
.faq { display: flex; flex-direction: column; gap: 8px; margin-bottom: 22px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.faq-q { width: 100%; text-align: left; background: #fff; border: none; padding: 16px; font-family: inherit; font-size: 15px; font-weight: 500; display: flex; justify-content: space-between; align-items: center; cursor: pointer; }
.faq-arrow { transition: transform .2s ease; color: var(--muted); }
.faq-item.open .faq-arrow { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease, padding .25s ease; padding: 0 16px; color: var(--muted); font-size: 14px; }
.faq-item.open .faq-a { max-height: 300px; padding: 0 16px 16px; }

/* ------------------------------- modal --------------------------------- */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.5); display: flex; align-items: flex-end; justify-content: center; z-index: 50; }
.modal[hidden] { display: none; }
.modal-card { background: #fff; width: 100%; max-width: var(--maxw); border-radius: 20px 20px 0 0; padding: 22px; position: relative; max-height: 92dvh; overflow-y: auto; }
.modal-x { position: absolute; top: 12px; right: 14px; border: none; background: none; font-size: 26px; color: var(--muted); cursor: pointer; }
.modal-price { font-size: 26px; font-weight: 700; color: var(--accent); margin: 4px 0 16px; }
.modal-price span { font-size: 14px; color: var(--muted); font-weight: 400; }
.pay-tabs { display: flex; gap: 8px; margin-bottom: 16px; }
.pay-tab { flex: 1; border: 1.5px solid var(--line); background: #fff; padding: 12px; border-radius: var(--radius); font-family: inherit; font-weight: 600; cursor: pointer; }
.pay-tab.on { border-color: var(--accent); background: #F1FBFB; color: var(--accent); }
.pay-panel .row { display: flex; gap: 10px; }
.qr { background: var(--soft); border: 1px dashed var(--line); border-radius: var(--radius); height: 150px; display: flex; align-items: center; justify-content: center; font-size: 18px; color: var(--muted); margin-bottom: 12px; }
.modal-secure { text-align: center; color: var(--muted); font-size: 12px; margin-top: 12px; }

/* ------------------------------ sucesso -------------------------------- */
.success { text-align: center; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; }
.success .ph { width: 100%; }

@media (min-width: 480px) {
  body { padding: 0; }
  .screen { box-shadow: 0 0 40px rgba(0,0,0,.08); }
}
