:root {
  --bg: #FBF6F1;
  --surface: #FFFFFF;
  --ink: #2A1E2B;
  --muted: #6E6170;
  --line: #EDE3DA;
  --accent: #C93F63;
  --accent-ink: #FFFFFF;
  --plum: #4A2350;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(42, 30, 43, .05), 0 8px 24px rgba(42, 30, 43, .06);
  --style: #C93F63;
  --style-soft: #FBE7EC;
  --serif: "Fraunces", Georgia, "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font: 16px/1.55 var(--sans);
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { font-family: var(--serif); line-height: 1.15; margin: 0; letter-spacing: -.01em; }
p { margin: 0 0 .8em; }
button { font: inherit; color: inherit; }

.app { max-width: 560px; margin: 0 auto; padding: 0 16px 32px; min-height: 100svh; display: flex; flex-direction: column; }

.screen { display: none; flex: 1; }
.screen.is-active { display: block; animation: rise .35s ease both; }
@keyframes rise { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent); margin-bottom: 10px; }
.micro { font-size: 13px; color: var(--muted); margin: 10px 0 0; }
.center { text-align: center; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 12px 20px; border-radius: 999px; border: 0;
  font-weight: 600; text-decoration: none; cursor: pointer;
  transition: transform .12s ease, box-shadow .2s ease, background .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: scale(.98); }
.btn:focus-visible, .opt:focus-visible, .btn-back:focus-visible, .btn-link:focus-visible { outline: 3px solid var(--plum); outline-offset: 2px; }
.btn-primary { background: var(--accent); color: var(--accent-ink); box-shadow: 0 8px 20px rgba(201, 63, 99, .28); }
.btn-primary:hover { background: #B5355A; }
.btn-lg { width: 100%; min-height: 58px; font-size: 17px; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-ghost { background: transparent; color: var(--ink); border: 1.5px solid var(--line); }
.btn-ghost:hover { border-color: var(--ink); }
.btn-link { background: none; border: 0; color: var(--muted); text-decoration: underline; cursor: pointer; padding: 12px; margin: 8px auto 0; display: block; }

/* ---------- Intro ---------- */
.intro { padding: 48px 0 8px; }
.intro h1 { font-size: clamp(34px, 9vw, 46px); font-weight: 800; margin-bottom: 16px; }
.intro h1 em { font-style: italic; color: var(--accent); }
.lead { font-size: 17px; color: #4B3E4D; margin-bottom: 22px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 26px; }
.chip { font-size: 14px; font-weight: 600; padding: 7px 12px; border-radius: 999px; background: color-mix(in srgb, var(--c) 12%, white); color: color-mix(in srgb, var(--c) 80%, black); }
.intro .micro { text-align: center; }
.how { list-style: none; padding: 0; margin: 30px 0 0; display: grid; gap: 10px; }
.how li { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 14px 16px; font-size: 14.5px; color: #4B3E4D; }

/* ---------- Quiz ---------- */
.quiz-top { display: flex; align-items: center; gap: 12px; padding: 18px 0 8px; position: sticky; top: 0; background: var(--bg); z-index: 2; }
.btn-back { width: 40px; height: 40px; border-radius: 50%; border: 1.5px solid var(--line); background: var(--surface); cursor: pointer; font-size: 18px; flex: none; }
.btn-back:disabled { opacity: .35; cursor: default; }
.progress { flex: 1; height: 8px; background: var(--line); border-radius: 99px; overflow: hidden; }
.progress span { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--accent), #E58A5C); border-radius: inherit; transition: width .35s ease; }
.counter { font-size: 13px; font-weight: 600; color: var(--muted); min-width: 40px; text-align: right; font-variant-numeric: tabular-nums; }
.qcard { padding: 22px 0; }
.qcard.swap { animation: rise .3s ease both; }
.question { font-size: clamp(23px, 6.2vw, 28px); font-weight: 600; margin-bottom: 22px; }
.options { display: grid; gap: 10px; }
.opt {
  text-align: left; width: 100%; padding: 16px 18px; min-height: 58px;
  background: var(--surface); border: 1.5px solid var(--line); border-radius: 16px;
  font-size: 16px; line-height: 1.4; cursor: pointer; box-shadow: var(--shadow);
  transition: border-color .15s ease, background .15s ease, transform .1s ease;
}
.opt:hover { border-color: #D7C6B8; }
.opt:active { transform: scale(.99); }
.opt.is-picked { border-color: var(--accent); background: #FDF0F3; }

/* ---------- Loading ---------- */
.loading { min-height: 70svh; display: grid; place-content: center; text-align: center; gap: 18px; color: var(--muted); font-weight: 500; }
.pulse { font-size: 56px; animation: pulse 1s ease-in-out infinite; }
@keyframes pulse { 50% { transform: scale(1.15); } }

/* ---------- Resultado ---------- */
.result { padding: 24px 0 0; display: grid; gap: 14px; }
.result-hero { text-align: center; padding: 30px 18px 26px; border-radius: 24px; background: var(--style-soft); }
.result-hero .eyebrow { color: var(--style); }
.result-emoji { font-size: 54px; line-height: 1; margin: 6px 0 10px; }
.result-name { font-size: clamp(38px, 11vw, 52px); font-weight: 800; color: var(--style); }
.result-nick { font-family: var(--serif); font-style: italic; font-size: 19px; margin: 6px 0 0; color: #4B3E4D; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-title { font-size: 19px; margin-bottom: 14px; }
.card p:last-child { margin-bottom: 0; }
.bars { display: grid; gap: 10px; }
.bar { display: grid; grid-template-columns: 132px 1fr 40px; align-items: center; gap: 8px; font-size: 14px; white-space: nowrap; font-weight: 600; }
.bar-track { height: 10px; background: var(--line); border-radius: 99px; overflow: hidden; }
.bar-fill { height: 100%; width: 0; border-radius: inherit; transition: width .8s cubic-bezier(.2, .8, .2, 1); }
.bar-pct { text-align: right; font-variant-numeric: tabular-nums; color: var(--muted); }
.traits { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.traits li { padding-left: 30px; position: relative; }
.traits li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 22px; height: 22px; border-radius: 50%; background: var(--style-soft); color: var(--style); font-size: 13px; font-weight: 800; display: grid; place-items: center; }
.card-challenge { border-left: 4px solid var(--style); }

/* ---------- Paywall ---------- */
.paywall { background: var(--plum); color: #fff; border-radius: 24px; padding: 26px 20px 22px; box-shadow: 0 18px 40px rgba(74, 35, 80, .3); }
.paywall .eyebrow { color: #F5B3C4; }
.paywall h3 { font-size: 25px; margin-bottom: 16px; }
.paywall .micro { color: #D8C4DA; }
.locked { position: relative; margin-bottom: 18px; }
.locked-preview { filter: blur(3.5px); opacity: .7; user-select: none; margin: 0; font-size: 15px; }
.lock-fade { position: absolute; inset: 0; background: linear-gradient(transparent, var(--plum)); }
.pw-list { list-style: none; padding: 0; margin: 0 0 20px; display: grid; gap: 10px; font-size: 15px; color: #F1E6F2; }
.pw-list strong { color: #fff; }
.paywall .btn-primary { background: #F25C82; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
.paywall .btn-primary:hover { background: #E04B72; }
.price { font-weight: 800; white-space: nowrap; }
.btn-buy { flex-direction: column; gap: 2px; padding: 12px 18px; min-height: 64px; line-height: 1.25; }
.btn-buy small { font-size: 13px; font-weight: 500; opacity: .92; }

.pw-meta { font-size: 14px; color: #E7D6E9; margin: -6px 0 16px; }
.locked { background: rgba(255, 255, 255, .06); border-radius: 14px; padding: 14px 14px 0; overflow: hidden; }
.locked-label { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #F5B3C4; margin-bottom: 6px; }
.locked-preview { filter: none; opacity: 1; }
.locked-preview .blur { filter: blur(4px); user-select: none; }
.lock-fade { position: relative; inset: auto; margin: -40px -14px 0; padding: 46px 14px 14px; background: linear-gradient(transparent, var(--plum) 70%); text-align: center; font-size: 13px; font-weight: 600; color: #F5B3C4; }
.pw-sub { font-weight: 700; margin: 4px 0 10px; }
ol.pw-list { list-style: decimal; padding-left: 22px; gap: 6px; }
.pw-bonus { font-size: 14.5px; background: rgba(255, 255, 255, .08); padding: 10px 12px; border-radius: 12px; }
.buy { display: grid; gap: 10px; margin: 18px 0 14px; }
.buy label { font-weight: 600; font-size: 14px; }
.buy label span { font-weight: 400; color: #D8C4DA; }
.buy input { width: 100%; min-height: 52px; border-radius: 14px; border: 0; padding: 0 16px; font: inherit; font-size: 16px; color: var(--ink); }
.buy input:focus { outline: 3px solid #F25C82; }
.buy-error { color: #FFC2CF; font-size: 14px; margin: 0; min-height: 0; }
.buy-error:empty { display: none; }
.btn-light { background: #fff; color: var(--plum); }
.btn[disabled] { opacity: .6; cursor: progress; }
.pw-legal { font-size: 13px; color: #E7D6E9; border-top: 1px solid rgba(255, 255, 255, .15); padding-top: 12px; }
.pw-legal p { margin-bottom: 6px; }
.pw-legal strong { color: #fff; }
.btn-link-light { color: #F5B3C4; }

/* ---------- Pix ---------- */
.pix { padding: 18px 0 0; display: grid; gap: 12px; text-align: center; }
.pix h2 { font-size: 24px; }
.pix-back { margin: 0; justify-self: start; padding: 4px 0; }
.pix-qr { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 16px; justify-self: center; box-shadow: var(--shadow); }
.pix-qr img { display: block; width: 240px; height: 240px; image-rendering: pixelated; }
.pix-or { margin: 0; font-size: 14px; color: var(--muted); }
.pix-code { display: grid; grid-template-columns: 1fr auto; gap: 8px; }
.pix-code input { min-width: 0; min-height: 48px; border: 1.5px solid var(--line); border-radius: 12px; padding: 0 12px; font: 13px ui-monospace, monospace; background: var(--surface); color: var(--muted); }
.pix-status { display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-weight: 600; padding: 12px; border-radius: 12px; background: #FFF6E5; color: #7A5200; }
.pix-status .dot { width: 10px; height: 10px; border-radius: 50%; background: currentColor; animation: pulse 1s ease-in-out infinite; }
.pix-status.ok { background: #E6F5EE; color: #17694F; }
.pix-status.bad { background: #FBEAEA; color: #9B2C2C; }

/* ---------- Share ---------- */
.share-row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.share-row .btn-dark { grid-column: 1 / -1; }

/* ---------- Rodapé ---------- */
.foot { margin-top: 36px; padding-top: 20px; border-top: 1px solid var(--line); font-size: 12.5px; color: var(--muted); }
.foot p { margin-bottom: 8px; }

.toast {
  position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0;
  background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px;
  width: max-content; max-width: calc(100% - 32px); pointer-events: none; transition: all .25s ease; z-index: 10;
}
.toast.show { opacity: 1; transform: translate(-50%, 0); }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* ============================================================
   Página do relatório
   ============================================================ */
.report-wrap { max-width: 720px; }
.rep-head { padding: 36px 0 18px; }
.rep-head h1 { font-size: clamp(30px, 8vw, 42px); font-weight: 800; margin-bottom: 10px; }
.tabs { display: flex; gap: 8px; overflow-x: auto; padding: 4px 0 14px; position: sticky; top: 0; background: var(--bg); z-index: 3; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: none; border: 1.5px solid var(--line); background: var(--surface); border-radius: 999px; padding: 9px 14px; font-weight: 600; font-size: 14px; cursor: pointer; }
.tab[aria-selected="true"] { background: var(--tc); border-color: var(--tc); color: #fff; }
.tab .you { font-size: 11px; font-weight: 700; margin-left: 4px; opacity: .85; }
.report { display: none; }
.report.is-active { display: block; animation: rise .3s ease both; }
.rep-hero { border-radius: 24px; padding: 28px 22px; background: var(--rs); margin-bottom: 18px; }
.rep-hero .eyebrow { color: var(--rc); }
.rep-hero h2 { font-size: clamp(32px, 9vw, 44px); color: var(--rc); font-weight: 800; }
.rep-hero p.nick { font-family: var(--serif); font-style: italic; font-size: 19px; margin: 6px 0 0; }
.report section { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; margin-bottom: 14px; box-shadow: var(--shadow); }
.report h3 { font-size: 22px; margin-bottom: 14px; }
.report h4 { font-family: var(--sans); font-size: 16px; margin: 18px 0 6px; }
.report h4:first-of-type { margin-top: 4px; }
.report ul, .report ol { padding-left: 20px; margin: 0 0 .8em; }
.report li { margin-bottom: 6px; }
.report blockquote { margin: 12px 0; padding: 12px 16px; background: var(--rs); border-radius: 12px; font-style: italic; }
.say { display: grid; gap: 8px; margin: 10px 0; }
.say div { padding: 10px 14px; border-radius: 12px; font-size: 15px; }
.say .yes { background: #E6F5EE; }
.say .no { background: #FBEAEA; }
.compat { border-top: 1px solid var(--line); padding-top: 14px; margin-top: 14px; }
.compat:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.compat .tag { display: inline-block; font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; background: var(--rs); color: var(--rc); margin-left: 6px; vertical-align: middle; }
.day { display: grid; grid-template-columns: 56px 1fr; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); }
.day:first-of-type { border-top: 0; }
.day b { font-family: var(--serif); font-size: 15px; color: var(--rc); }
.day p { margin: 0; }
.day p strong { display: block; margin-bottom: 2px; }
.rep-actions { display: flex; gap: 10px; flex-wrap: wrap; margin: 6px 0 18px; }
.rep-actions .btn { min-height: 42px; padding: 8px 16px; font-size: 14px; }
.mix { display: grid; gap: 8px; margin-top: 16px; }

@media print {
  body { background: #fff; }
  .tabs, .rep-actions, .foot, .toast, .no-print { display: none !important; }
  .report section, .rep-hero { box-shadow: none; break-inside: avoid; }
  .report:not(.is-active) { display: none !important; }
  body.print-all .report { display: block !important; break-before: page; }
  body.print-all .rep-head { display: none; }
}
