/* ============ Estuniva — design tokens ============ */
:root {
  --ink: #1E1B4B;        /* índigo profundo */
  --ink-2: #312E81;
  --paper: #FFFBF2;      /* papel quente */
  --card: #FFFFFF;
  --line: #ECE6D6;
  --muted: #6B6880;
  --hl: #FFE14D;         /* marca-texto */
  --hl-soft: #FFF3A8;
  --coral: #FF6B57;
  --mint: #22C493;
  --amber: #FFB020;
  --pix: #00B39B;
  --violet: #7C5CFF;
  --radius: 20px;
  --shadow: 0 1px 0 rgba(30,27,75,.06), 0 12px 32px -12px rgba(30,27,75,.22);
  --font-d: "Bricolage Grotesque", system-ui, sans-serif;
  --font-b: "Inter", system-ui, -apple-system, Segoe UI, Roboto, sans-serif;
  --ease: cubic-bezier(.2,.8,.2,1);
  --spring: cubic-bezier(.34,1.56,.64,1);
  color-scheme: light;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font: 16px/1.5 var(--font-b);
  -webkit-font-smoothing: antialiased;
  background-image:
    radial-gradient(900px 500px at 110% -10%, rgba(124,92,255,.14), transparent 60%),
    radial-gradient(700px 400px at -20% 10%, rgba(255,225,77,.25), transparent 60%);
  background-attachment: fixed;
  min-height: 100dvh;
}
#app { max-width: 560px; margin: 0 auto; padding: 0 16px 48px; }
h1, h2, h3 { font-family: var(--font-d); letter-spacing: -.02em; line-height: 1.08; margin: 0; }
a { color: var(--ink-2); }
b { font-weight: 700; }
.nowrap { white-space: nowrap; }
.center { text-align: center; }

/* ============ Topbar ============ */
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 9px 16px; background: var(--ink); color: #fff;
  font-size: 13px; font-weight: 600; letter-spacing: .01em;
}
.topbar.closed { background: var(--coral); }
.pulse-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--hl); box-shadow: 0 0 0 0 rgba(255,225,77,.7); animation: pulse 1.6s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(255,225,77,0); } 100% { box-shadow: 0 0 0 0 rgba(255,225,77,0); } }

/* ============ Screens ============ */
.screen { display: none; }
.screen.is-active { display: block; animation: screenIn .5s var(--ease) both; }
@keyframes screenIn { from { opacity: 0; transform: translateY(14px); } }

/* ============ Hero ============ */
.hero { padding: 22px 0 8px; }
.brand { font-family: var(--font-d); font-weight: 800; font-size: 18px; display: flex; align-items: center; gap: 8px; margin-bottom: 18px; }
.brand-mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 10px; background: var(--ink); color: var(--hl); font-size: 18px; transform: rotate(-8deg); animation: wiggle 4s 1s infinite; }
@keyframes wiggle { 0%,90%,100% { transform: rotate(-8deg); } 93% { transform: rotate(8deg); } 96% { transform: rotate(-14deg); } }

h1 { font-size: clamp(32px, 9vw, 44px); font-weight: 800; }
.hl { position: relative; white-space: nowrap; z-index: 0; }
.hl::before {
  content: ""; position: absolute; z-index: -1; left: -4px; right: -4px; bottom: .06em; height: .5em;
  background: var(--hl); border-radius: 6px 3px 8px 4px; transform-origin: left center;
  transform: scaleX(0) skewX(-6deg); animation: marker .7s .35s var(--ease) forwards;
}
@keyframes marker { to { transform: scaleX(1) skewX(-6deg); } }
.sub { color: #44415e; font-size: 16.5px; margin: 14px 0 18px; }
.sub b { color: var(--ink); }

.steps { list-style: none; padding: 0; margin: 0 0 22px; display: flex; gap: 8px; flex-wrap: wrap; }
.steps li { display: flex; align-items: center; gap: 6px; font-size: 13px; font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px 6px 6px; animation: pop .45s var(--spring) both; }
.steps li:nth-child(2) { animation-delay: .08s; } .steps li:nth-child(3) { animation-delay: .16s; }
.steps li span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ink); color: var(--hl); font-size: 12px; }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(6px); } }

/* Demo card */
.demo-card {
  position: relative; background: var(--card); border-radius: var(--radius); padding: 16px; box-shadow: var(--shadow);
  border: 1px solid var(--line); transform: rotate(-1.2deg); animation: float 6s ease-in-out infinite, pop .6s .25s var(--spring) both;
  margin-bottom: 22px;
}
@keyframes float { 50% { transform: rotate(-1.2deg) translateY(-6px); } }
.demo-tag { position: absolute; top: -10px; right: 14px; background: var(--violet); color: #fff; font-size: 10px; font-weight: 800; letter-spacing: .12em; padding: 4px 8px; border-radius: 6px; }
.demo-score { display: flex; gap: 16px; align-items: center; }
.ring {
  --p: .7; flex: none; width: 108px; height: 108px; border-radius: 50%;
  background: conic-gradient(var(--violet) calc(var(--p) * 360deg), #EEEAF9 0);
  display: grid; place-items: center; position: relative; text-align: center;
}
.ring::after { content: ""; position: absolute; inset: 10px; border-radius: 50%; background: #fff; }
.ring > div { position: relative; z-index: 1; text-align: center; line-height: 1.1; }
.ring b { display: block; font-family: var(--font-d); font-size: 19px; }
.ring small { display: block; font-size: 10px; color: var(--muted); margin-top: 2px; }
.demo-bars { list-style: none; padding: 0; margin: 0; flex: 1; display: grid; gap: 7px; }
.demo-bars li { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; color: var(--muted); }
.demo-bars i { font-style: normal; width: 20px; }
.demo-bars span { flex: 1; height: 8px; background: #F1EEE4; border-radius: 9px; position: relative; overflow: hidden; }
.demo-bars span::after { content: ""; position: absolute; inset: 0; width: calc(var(--w) * 100%); background: var(--mint); border-radius: 9px; transform-origin: left; animation: grow 1s .6s var(--ease) both; }
.demo-bars span.warn::after { background: var(--amber); }
.demo-bars span.bad::after { background: var(--coral); }
@keyframes grow { from { transform: scaleX(0); } }
.demo-quote { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--line); }
.demo-quote small { color: var(--muted); font-size: 11px; font-weight: 600; text-transform: uppercase; letter-spacing: .08em; }
.demo-quote p { margin: 4px 0 6px; font-family: "Caveat", cursive; font-size: 21px; line-height: 1.2; }
mark { background: linear-gradient(transparent 55%, var(--hl) 55%); color: inherit; padding: 0 2px; }
.demo-fix { font-size: 13px; color: #44415e; }
.demo-fix b { background: var(--coral); color: #fff; border-radius: 5px; padding: 1px 6px; font-size: 11px; }

/* ============ Cards / Form ============ */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; box-shadow: var(--shadow); }
.composer { scroll-margin-top: 60px; }
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #F4F1E8; border-radius: 14px; padding: 4px; margin-bottom: 14px; }
.tab { appearance: none; border: 0; background: transparent; padding: 10px; border-radius: 11px; font: 600 14px var(--font-b); color: var(--muted); cursor: pointer; transition: all .25s var(--ease); }
.tab.is-on { background: #fff; color: var(--ink); box-shadow: 0 2px 8px rgba(30,27,75,.1); }
.mode { display: none; } .mode.is-on { display: block; animation: screenIn .35s var(--ease); }

.field { display: block; margin-bottom: 12px; }
.field > span { display: block; font-size: 13px; font-weight: 700; margin-bottom: 6px; }
.field em { font-style: normal; font-weight: 500; color: var(--muted); }
input[type=text], input[type=email], textarea {
  width: 100%; font: 16px/1.5 var(--font-b); color: var(--ink); background: #FDFCF8;
  border: 1.5px solid var(--line); border-radius: 14px; padding: 12px 14px; outline: none;
  transition: border-color .2s, box-shadow .2s, background .2s;
}
textarea { resize: vertical; min-height: 200px;
  background-image: repeating-linear-gradient(transparent 0 23px, #EFEADC 23px 24px); background-attachment: local; line-height: 24px; padding-top: 12px;
}
input:focus, textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(124,92,255,.15); background: #fff; }
.meter { height: 6px; background: #F1EEE4; border-radius: 9px; overflow: hidden; margin-top: -4px; }
.meter-bar { height: 100%; width: 0; background: var(--coral); border-radius: 9px; transition: width .3s var(--ease), background .3s; }
.meter-bar.mid { background: var(--amber); } .meter-bar.ok { background: var(--mint); }
.meter-label { display: flex; justify-content: space-between; font-size: 12px; color: var(--muted); margin: 6px 2px 12px; }

.drop { display: block; border: 2px dashed #D9D2BE; border-radius: 16px; background: #FDFCF8; padding: 26px 16px; text-align: center; cursor: pointer; margin-bottom: 12px; transition: border-color .2s, background .2s; }
.drop:hover { border-color: var(--violet); background: #fff; }
.drop-icon { font-size: 34px; animation: bob 2.4s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-5px) rotate(-4deg); } }
.drop b { display: block; margin-top: 6px; } .drop small { color: var(--muted); }
.drop img { max-width: 100%; max-height: 320px; border-radius: 10px; display: block; margin: 0 auto; }

.check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; margin: 6px 0 14px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--violet); flex: none; margin-top: 1px; }

/* ============ Buttons ============ */
.btn { appearance: none; border: 0; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: 700 16px var(--font-b); border-radius: 16px; padding: 14px 18px; transition: transform .15s var(--ease), box-shadow .2s, filter .2s; -webkit-tap-highlight-color: transparent; }
.btn:active { transform: scale(.97); }
.btn:disabled { filter: grayscale(.4) opacity(.7); cursor: not-allowed; }
.btn-xl { width: 100%; padding: 17px 20px; font-size: 17px; }
.btn svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; transition: transform .25s var(--ease); }
.btn:hover svg { transform: translateX(4px); }
.btn-primary { background: var(--ink); color: #fff; box-shadow: 0 6px 0 #0E0C2E, 0 14px 24px -8px rgba(30,27,75,.5); position: relative; overflow: hidden; }
.btn-primary:active { box-shadow: 0 2px 0 #0E0C2E; transform: translateY(4px); }
.btn-primary::after { content: ""; position: absolute; inset: 0; background: linear-gradient(110deg, transparent 30%, rgba(255,255,255,.25) 50%, transparent 70%); transform: translateX(-100%); animation: shine 3.2s 1.5s infinite; }
@keyframes shine { 30%,100% { transform: translateX(100%); } }
.btn-pix { background: var(--pix); color: #fff; box-shadow: 0 6px 0 #00806F, 0 14px 24px -8px rgba(0,179,155,.6); }
.btn-pix:active { box-shadow: 0 2px 0 #00806F; transform: translateY(4px); }
.btn-copy { background: var(--hl); color: var(--ink); box-shadow: 0 5px 0 #D9B500; }
.btn-copy.copied { background: var(--mint); color: #fff; box-shadow: 0 5px 0 #169A72; }
.btn-ghost { background: transparent; border: 1.5px dashed var(--violet); color: var(--violet); width: 100%; margin-top: 10px; }
.btn.loading span::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 10px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; vertical-align: -2px; }

.micro { font-size: 12.5px; color: var(--muted); margin: 10px 0 0; text-align: center; }
.form-error { color: #C2311E; font-size: 14px; font-weight: 600; text-align: center; margin: 10px 0 0; min-height: 1px; }
.form-error:empty { display: none; }
.shake { animation: shake .4s; }
@keyframes shake { 20%,60% { transform: translateX(-6px); } 40%,80% { transform: translateX(6px); } }

/* ============ Blocks ============ */
.block { margin-top: 48px; }
.block h2 { font-size: 24px; line-height: 1.15; margin-bottom: 16px; }
.grid-feat { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.feat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 3px; transition: transform .25s var(--ease); }
.feat:hover { transform: translateY(-3px) rotate(-.5deg); }
.feat span { font-size: 24px; } .feat b { font-size: 14.5px; } .feat small { color: var(--muted); font-size: 12.5px; line-height: 1.35; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding: 12px 14px 12px 44px; background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: 14.5px; }
.ticks li::before { content: "✓"; position: absolute; left: 12px; top: 12px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; font-size: 13px; font-weight: 800; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 0 14px; margin-bottom: 8px; }
.faq summary { cursor: pointer; padding: 14px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; }
.faq summary::after { content: "+"; font-size: 20px; line-height: 1; transition: transform .25s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { margin: 0 0 14px; color: #44415e; font-size: 14.5px; }
.avisos { margin-top: 34px; font-size: 12.5px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 18px; }
.avisos p { margin: 0 0 10px; } .copy { text-align: center; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease), transform .6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }

/* ============ Loading ============ */
.loading { padding: 48px 0 24px; text-align: center; }
.paper { position: relative; width: 150px; height: 190px; margin: 0 auto 26px; background: #fff; border-radius: 12px; box-shadow: var(--shadow); border: 1px solid var(--line); overflow: hidden; animation: float 3s ease-in-out infinite; }
.paper-lines { padding: 26px 18px; display: grid; gap: 12px; }
.paper-lines i { display: block; height: 6px; border-radius: 4px; background: #EEE9DA; transform-origin: left; animation: write 2.4s var(--ease) infinite; }
.paper-lines i:nth-child(2n) { width: 82%; } .paper-lines i:nth-child(3n) { width: 64%; }
.paper-lines i:nth-child(1) { animation-delay: 0s; } .paper-lines i:nth-child(2) { animation-delay: .15s; } .paper-lines i:nth-child(3) { animation-delay: .3s; } .paper-lines i:nth-child(4) { animation-delay: .45s; }
.paper-lines i:nth-child(5) { animation-delay: .6s; } .paper-lines i:nth-child(6) { animation-delay: .75s; } .paper-lines i:nth-child(7) { animation-delay: .9s; } .paper-lines i:nth-child(8) { animation-delay: 1.05s; }
@keyframes write { 0% { transform: scaleX(0); background: var(--hl); } 40% { transform: scaleX(1); background: var(--hl-soft); } 100% { transform: scaleX(1); background: #EEE9DA; } }
.scan { position: absolute; left: 0; right: 0; height: 40px; top: -40px; background: linear-gradient(transparent, rgba(124,92,255,.22), transparent); animation: scan 2s linear infinite; }
@keyframes scan { to { top: 100%; } }
.pen { position: absolute; right: 14px; bottom: 16px; font-size: 26px; color: var(--violet); animation: pen 1.2s ease-in-out infinite; }
@keyframes pen { 50% { transform: translate(-8px, -4px) rotate(-10deg); } }
.loading h2 { font-size: 26px; margin-bottom: 18px; }
.load-steps { list-style: none; padding: 0; margin: 0 auto; max-width: 340px; text-align: left; display: grid; gap: 8px; }
.load-steps li { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: #A7A3B8; transition: color .3s; }
.load-steps li::before { content: ""; flex: none; width: 20px; height: 20px; border-radius: 50%; border: 2px solid #DAD5C6; transition: all .3s var(--spring); }
.load-steps li.doing { color: var(--ink); font-weight: 600; }
.load-steps li.doing::before { border-color: var(--violet); border-right-color: transparent; animation: spin .8s linear infinite; }
.load-steps li.done { color: var(--ink); }
.load-steps li.done::before { content: "✓"; display: grid; place-items: center; background: var(--mint); border-color: var(--mint); color: #fff; font-size: 12px; font-weight: 800; animation: pop .35s var(--spring); }
@keyframes spin { to { transform: rotate(360deg); } }
.tip { margin: 26px auto 0; max-width: 360px; font-size: 13.5px; color: var(--muted); background: #fff; border: 1px dashed var(--line); border-radius: 14px; padding: 12px 14px; min-height: 48px; transition: opacity .3s; }

/* ============ Result ============ */
.result-head { display: flex; align-items: center; gap: 12px; padding: 18px 0 14px; }
.back { appearance: none; border: 1px solid var(--line); background: #fff; width: 40px; height: 40px; border-radius: 12px; font-size: 18px; cursor: pointer; flex: none; }
.result-head small { color: var(--violet); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.result-head h2 { font-size: 24px; }
.score-card { display: grid; gap: 16px; }
.score-ring { --p: 0; position: relative; width: 168px; height: 168px; margin: 4px auto 0; border-radius: 50%;
  background: conic-gradient(var(--violet) calc(var(--p) * 360deg), #EEEAF9 0); transition: --p 1.4s var(--ease); display: grid; place-items: center; }
@property --p { syntax: "<number>"; inherits: true; initial-value: 0; }
.score-ring::after { content: ""; position: absolute; inset: 14px; background: #fff; border-radius: 50%; }
.score-inner { position: relative; z-index: 1; text-align: center; }
.score-inner b { display: block; font-family: var(--font-d); font-size: 34px; letter-spacing: -.03em; }
.score-inner small { color: var(--muted); font-size: 12px; }
.score-ring.blurred .score-inner b { filter: blur(7px); user-select: none; }
.lock-badge { position: absolute; z-index: 2; right: 6px; top: 6px; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); display: grid; place-items: center; font-size: 18px; box-shadow: var(--shadow); animation: jiggle 2.6s infinite; }
@keyframes jiggle { 0%,85%,100% { transform: rotate(0); } 88% { transform: rotate(-12deg); } 92% { transform: rotate(10deg); } 96% { transform: rotate(-6deg); } }
.comp-list { display: grid; gap: 8px; }
.comp { display: grid; grid-template-columns: 36px 1fr auto; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px; background: #FBFAF6; border: 1px solid var(--line); opacity: 0; transform: translateX(-12px); animation: slideIn .45s var(--ease) forwards; }
@keyframes slideIn { to { opacity: 1; transform: none; } }
.comp .c-num { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--mint); }
.comp.atencao .c-num { background: var(--amber); } .comp.critico .c-num { background: var(--coral); }
.comp .c-title { font-size: 13.5px; font-weight: 600; line-height: 1.3; }
.comp .c-sub { display: block; font-size: 12px; color: var(--muted); font-weight: 500; }
.comp .c-note { font-family: var(--font-d); font-weight: 800; font-size: 18px; }
.comp .c-note.blur { filter: blur(5px); user-select: none; }
.comp .c-bar { grid-column: 2 / 4; height: 6px; background: #EEE9DA; border-radius: 6px; overflow: hidden; }
.comp .c-bar i { display: block; height: 100%; width: 0; background: var(--mint); border-radius: 6px; transition: width 1.2s var(--ease); }
.comp.atencao .c-bar i { background: var(--amber); } .comp.critico .c-bar i { background: var(--coral); }
.legend { display: flex; justify-content: center; gap: 12px; align-items: center; font-size: 12px; color: var(--muted); margin: 0; }
.dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: -6px; }
.dot.ok { background: var(--mint); } .dot.warn { background: var(--amber); } .dot.bad { background: var(--coral); }

.highlight { margin-top: 14px; background: linear-gradient(180deg, #FFFDF0, #fff); border-color: #F3E7A8; }
.kicker { font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-2); }
.hl-comp { display: inline-block; margin: 8px 0 4px; font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--coral); color: #fff; }
blockquote { margin: 10px 0; padding: 12px 14px; background: #fff; border-left: 4px solid var(--hl); border-radius: 0 12px 12px 0; font-family: "Caveat", cursive; font-size: 22px; line-height: 1.25; }
blockquote mark { animation: none; }
.highlight p { margin: 0 0 10px; font-size: 15px; }
.fix { background: #E9FBF4; border: 1px solid #BDEFDC; color: #0E5E46; border-radius: 12px; padding: 10px 12px; font-size: 14.5px; }

.locked { position: relative; margin-top: 14px; }
.locked-content { filter: blur(4px); opacity: .7; pointer-events: none; user-select: none; display: grid; gap: 10px; }
.ghost p { margin: 6px 0 0; color: #B9B4C6; letter-spacing: -1px; }
.paywall { position: relative; margin-top: -170px; z-index: 2; border: 2px solid var(--ink); box-shadow: 0 20px 50px -16px rgba(30,27,75,.45); animation: pop .5s .3s var(--spring) both; }
.pw-count { display: inline-block; font-size: 12px; font-weight: 800; color: var(--coral); background: #FFEDEA; border-radius: 999px; padding: 4px 10px; margin-bottom: 8px; }
.pw-count:empty { display: none; }
.paywall h3 { font-size: 22px; margin-bottom: 10px; }
.pw-list { list-style: none; padding: 0; margin: 0 0 14px; display: grid; gap: 6px; font-size: 14.5px; }
.pw-list li::before { content: "✓"; color: var(--mint); font-weight: 800; margin-right: 8px; }
.pw-price { display: flex; align-items: baseline; gap: 10px; margin-bottom: 14px; }
.pw-price > b { font-family: var(--font-d); font-size: 34px; white-space: nowrap; }
.pw-price small { display: flex; flex-direction: column; }
.pw-price small { color: var(--muted); font-size: 12.5px; }
.disclaimer { margin-top: 18px; }

/* ============ Full report ============ */
.unlocked-banner { margin-top: 14px; text-align: center; background: var(--mint); color: #fff; border-radius: 16px; padding: 12px; font-weight: 700; animation: pop .5s var(--spring); }
.rep-section { margin-top: 14px; }
.rep-section h3 { font-size: 20px; margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.prio { display: grid; grid-template-columns: 40px 1fr; gap: 12px; padding: 14px; border-radius: 16px; background: #fff; border: 1px solid var(--line); margin-bottom: 8px; }
.prio .medal { width: 40px; height: 40px; border-radius: 12px; background: var(--hl); display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; font-size: 18px; }
.prio b { display: block; margin-bottom: 2px; }
.prio p { margin: 0; font-size: 14px; color: #44415e; }
.prio .como { margin-top: 6px; font-size: 14px; color: #0E5E46; }
.acc { background: #fff; border: 1px solid var(--line); border-radius: 16px; margin-bottom: 8px; overflow: hidden; }
.acc summary { list-style: none; cursor: pointer; padding: 12px 14px; display: grid; grid-template-columns: 36px 1fr auto; gap: 10px; align-items: center; }
.acc summary .c-num { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 800; font-size: 13px; color: #fff; background: var(--mint); }
.acc.atencao summary .c-num { background: var(--amber); } .acc.critico summary .c-num { background: var(--coral); }
.acc summary .t { font-weight: 600; font-size: 14.5px; line-height: 1.3; }
.acc summary .n { font-family: var(--font-d); font-weight: 800; }
.acc .body { padding: 0 14px 14px; font-size: 14.5px; }
.acc .body > p { margin: 0 0 10px; color: #44415e; }
.err { border-top: 1px dashed var(--line); padding-top: 10px; margin-top: 10px; }
.err blockquote { font-size: 19px; margin: 0 0 6px; }
.err .p { margin: 0 0 6px; }
.tips { display: grid; gap: 8px; }
.tipcard { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.tipcard b { display: block; margin-bottom: 4px; }
.tipcard p { margin: 0; font-size: 14px; color: #44415e; }
.plan { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.plan li { display: grid; grid-template-columns: 28px 1fr; gap: 10px; align-items: start; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px; cursor: pointer; transition: background .2s, opacity .2s; }
.plan li .box { width: 26px; height: 26px; border-radius: 8px; border: 2px solid #D5CFBE; display: grid; place-items: center; transition: all .25s var(--spring); }
.plan li.done { background: #F2FCF8; }
.plan li.done .box { background: var(--mint); border-color: var(--mint); transform: scale(1.08); }
.plan li.done .box::after { content: "✓"; color: #fff; font-weight: 800; font-size: 14px; }
.plan li.done .txt { text-decoration: line-through; opacity: .6; }
.plan .min { font-size: 12px; font-weight: 800; color: var(--violet); display: block; }
.final-note { margin-top: 14px; text-align: center; font-family: "Caveat", cursive; font-size: 26px; line-height: 1.2; color: var(--ink-2); }
.share-row { display: flex; gap: 8px; margin-top: 12px; }
.share-row .btn { flex: 1; font-size: 14px; padding: 12px; background: #fff; border: 1.5px solid var(--line); color: var(--ink); }

/* ============ Pix sheet ============ */
.sheet-backdrop { position: fixed; inset: 0; background: rgba(20,18,50,.5); backdrop-filter: blur(3px); z-index: 40; animation: fadeIn .25s; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet { position: fixed; z-index: 41; left: 0; right: 0; bottom: 0; max-width: 560px; margin: 0 auto; background: #fff; border-radius: 26px 26px 0 0; padding: 12px 20px calc(22px + env(safe-area-inset-bottom)); box-shadow: 0 -20px 60px -20px rgba(0,0,0,.35); animation: sheetUp .45s var(--spring); max-height: 92dvh; overflow: auto; }
@keyframes sheetUp { from { transform: translateY(100%); } }
.sheet-grip { width: 44px; height: 5px; border-radius: 5px; background: #E2DDCF; margin: 0 auto 14px; }
.sheet h3 { font-size: 24px; text-align: center; }
.sheet-sub { text-align: center; color: #44415e; margin: 6px 0 16px; font-size: 14.5px; }
.qr-wrap { margin: 12px 0; text-align: center; }
.qr-wrap summary { cursor: pointer; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.qr-wrap img { width: 220px; height: 220px; margin: 12px auto 0; display: block; image-rendering: pixelated; border-radius: 12px; border: 1px solid var(--line); }
.waiting { display: flex; align-items: center; justify-content: center; gap: 10px; margin: 16px 0 4px; font-weight: 600; font-size: 14.5px; }
.spinner { width: 18px; height: 18px; border: 2.5px solid var(--pix); border-right-color: transparent; border-radius: 50%; animation: spin .8s linear infinite; }
.waiting.paid .spinner { animation: none; border-color: var(--mint); background: var(--mint); }
.sheet-close { position: absolute; top: 12px; right: 14px; width: 34px; height: 34px; border-radius: 50%; border: 0; background: #F4F1E8; cursor: pointer; font-size: 14px; }

/* ============ Toast & confetti ============ */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, calc(100% + 60px)); opacity: 0; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 14px; font-weight: 600; font-size: 14px; z-index: 60; transition: transform .4s var(--spring); box-shadow: var(--shadow); max-width: calc(100% - 32px); text-align: center; }
.toast.show { transform: translate(-50%, 0); opacity: 1; }
.toast { transition: transform .4s var(--spring), opacity .25s; }
#confetti { position: fixed; inset: 0; pointer-events: none; z-index: 70; width: 100%; height: 100%; }

@media (min-width: 720px) {
  #app { padding-top: 12px; }
  .hero { padding-top: 40px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}

/* ============ Prévia sem nota / créditos ============ */
.comp.locked .c-num { background: #CFC9DB; }
.comp.locked .c-sub { color: var(--violet); }
.strengths { margin-top: 14px; background: linear-gradient(180deg, #F0FCF7, #fff); border-color: #C9F0DF; }
.strengths ul { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 8px; }
.strengths li { position: relative; padding-left: 30px; font-size: 15px; }
.strengths li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; background: var(--mint); color: #fff; display: grid; place-items: center; font-size: 12px; font-weight: 800; }
.pack-tag { display: inline-block; margin: 0 0 6px 8px; font-size: 11px; font-weight: 800; letter-spacing: .1em; color: var(--ink); background: var(--hl); border-radius: 6px; padding: 3px 8px; }
.wallet-banner { margin: 0 0 12px; padding: 12px 14px; border-radius: 16px; background: var(--ink); color: #fff; font-size: 14.5px; text-align: center; animation: pop .5s var(--spring); }
.wallet-banner b { color: var(--hl); }
.comp.locked { padding: 8px 12px; }
.comp.locked .c-bar { display: none; }
#strengthsCard + #highlightCard { margin-bottom: 14px; }
/* Conta / login */
.account { display: flex; align-items: center; gap: 10px; margin: 0 0 12px; padding: 10px 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; }
.account .avatar { width: 36px; height: 36px; border-radius: 50%; flex: none; object-fit: cover; }
.acc-id { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.acc-id b { font-size: 14.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.acc-id small { font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.account form { margin: 0; }
.btn-sm { width: auto; margin: 0; padding: 7px 12px; font-size: 13.5px; border-radius: 10px; }
.login-card { text-align: center; padding: 26px 20px; }
.login-card h3 { font: 800 22px/1.15 var(--font-d); margin: 6px 0 8px; color: var(--ink); }
.login-card > p { color: #44415e; margin: 0 0 18px; font-size: 15px; }
.login-icon { font-size: 34px; }
.btn-google { background: #fff; color: #1f1f1f; border: 1.5px solid #DADCE0; box-shadow: 0 4px 0 #DADCE0; }
.btn-google:active { box-shadow: 0 1px 0 #DADCE0; transform: translateY(3px); }
.btn-google svg { width: 22px; height: 22px; stroke: none; }
.btn-google:hover svg { transform: none; }
.btn-google.btn-ghost { opacity: .6; margin-top: 12px; }
.inapp-warn { text-align: left; background: var(--hl-soft); border: 1.5px solid var(--hl); border-radius: 14px; padding: 14px; margin: 0 0 14px; }
.inapp-warn b { display: block; font-size: 15px; margin-bottom: 4px; }
.inapp-warn p { margin: 0 0 10px; font-size: 14px; color: #44415e; }
.my-reports { margin-top: 12px; }
.my-reports ul { list-style: none; margin: 8px 0 0; padding: 0; }
.my-reports li + li { border-top: 1px solid var(--line); }
.my-reports a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 2px; color: var(--ink); text-decoration: none; font-size: 14.5px; }
.my-reports a span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.my-reports a small { color: var(--muted); flex: none; }
.my-reports a:hover span { text-decoration: underline; }

/* ============ Desktop (PC) ============ */
.side-head { display: none; }
@media (min-width: 1000px) {
  #app { max-width: 1180px; padding: 0 40px 64px; }

  .brand { font-size: 20px; }
  h1 { font-size: 60px; }
  .sub { font-size: 19px; max-width: 580px; }
  .demo-card { padding: 22px; }
  .demo-quote p { font-size: 24px; }
  .composer { padding: 22px; box-shadow: 0 1px 0 rgba(30,27,75,.06), 0 30px 60px -24px rgba(30,27,75,.35); }
  .composer textarea { min-height: 260px; }
  .block { margin-top: 88px; }
  .block h2 { font-size: 32px; margin-bottom: 22px; }
  .grid-feat { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .feat { padding: 18px; }
  .faq { max-width: 760px; }
  .avisos { margin-top: 56px; display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
  .avisos .copy { grid-column: 1 / -1; }

  /* Resultado: placar fixo à esquerda, conteúdo à direita */
  #screen-result.is-active {
    display: grid; grid-template-columns: 400px minmax(0, 1fr); column-gap: 32px; align-items: start; padding-top: 12px;
  }
  #screen-result > * { grid-column: 2; }
  #screen-result > .result-head { grid-column: 1 / -1; padding: 28px 0 18px; }
  .result-head h2 { font-size: 32px; }
  #screen-result > #scoreCard { grid-column: 1; grid-row: 2 / span 30; position: sticky; top: 64px; }
  #screen-result > .highlight, #screen-result > .strengths, #screen-result > .locked { margin-top: 0; margin-bottom: 16px; }
  .paywall { margin-top: -200px; padding: 26px; }
  .paywall h3 { font-size: 26px; }
  .rep-section:first-child { margin-top: 0; }
  #fullReport .tips { grid-template-columns: 1fr 1fr; }
  .disclaimer { text-align: left; }

  /* Loading mais espaçoso */
  .loading { padding-top: 80px; }

  /* Pix: janela central em vez de gaveta */
  .sheet {
    left: 50%; right: auto; top: 50%; bottom: auto; width: 440px; border-radius: 24px;
    transform: translate(-50%, -50%); padding: 22px 26px 26px; animation: modalIn .35s var(--spring);
  }
  .sheet-grip { display: none; }
  @keyframes modalIn { from { opacity: 0; transform: translate(-50%, -46%) scale(.96); } }
  .qr-wrap[open] img, .qr-wrap img { width: 240px; height: 240px; }

  .toast { bottom: 32px; }
}
@media (min-width: 1000px) and (hover: hover) {
  .demo-card:hover { transform: rotate(0) scale(1.01); transition: transform .4s var(--ease); }
}

/* ============ Landing page (LP) ============ */
.lp-nav { display: flex; align-items: center; justify-content: space-between; padding: 16px 0 6px; }
.lp-nav .brand { margin: 0; }
.btn-nav { padding: 9px 14px; font-size: 14px; border-radius: 12px; background: #fff; color: var(--ink); border: 1.5px solid var(--ink); text-decoration: none; }
.btn-nav:hover { background: var(--ink); color: #fff; }
a.btn { text-decoration: none; }
.lp-hero { padding: 18px 0 8px; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; color: var(--ink-2); background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 5px 12px; margin-bottom: 14px; animation: pop .45s var(--spring) both; }
.cta-row { margin: 18px 0 10px; }
.cta-row .micro { text-align: left; }
.lp-hero-visual { margin-top: 22px; }
.live-stat { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: 6px 12px; margin: 4px 0 0; }
.live-stat .pulse-dot { background: var(--mint); box-shadow: 0 0 0 0 rgba(34,196,147,.6); }

.topbar .tick { font-variant-numeric: tabular-nums; color: var(--hl); }

/* Selos de confiança */
.trust { list-style: none; padding: 0; margin: 28px 0 0; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.trust li { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; line-height: 1.35; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 12px; }
.trust span { font-size: 18px; line-height: 1; }

/* Como funciona */
.how-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; counter-reset: s; }
.how-steps li { display: grid; grid-template-columns: 40px 1fr; column-gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.how-steps span { grid-row: span 2; width: 40px; height: 40px; border-radius: 12px; background: var(--hl); display: grid; place-items: center; font-family: var(--font-d); font-weight: 800; font-size: 18px; }
.how-steps small { color: var(--muted); font-size: 13.5px; }

/* Oferta: argumento + preço */
.offer-sub { margin: -6px 0 14px; color: #44415e; font-size: 15px; }
.offer .price-card { margin-top: 24px; }
.ticks li b { color: var(--ink); }
.per-unit { display: block; color: var(--pix); font-size: 14px; font-weight: 700; margin-bottom: 2px; }
.price-card .micro { margin: 12px 0 0; }
.price-card .pw-price { flex-direction: column; align-items: flex-start; gap: 4px; }
.price-card .pw-price > b { font-size: 40px; line-height: 1; }
.final-cta .micro { color: #CFCBF5; margin: 12px 0 0; }

/* Preço */
.price-card { position: relative; background: #fff; border: 2px solid var(--ink); border-radius: 24px; padding: 22px 18px; box-shadow: 0 20px 50px -20px rgba(30,27,75,.4); }
.price-card .pack-tag { margin: 0 0 8px; }
.price-card h2 { margin-bottom: 8px; }

/* CTA final */
.final-cta { margin-top: 40px; text-align: center; background: linear-gradient(135deg, var(--violet), var(--ink)); color: #fff; border-radius: 24px; padding: 28px 18px; }
.final-cta h2 { font-size: 26px; margin-bottom: 16px; }

/* Barra fixa no celular */
.sticky-cta { position: fixed; z-index: 35; left: 0; right: 0; bottom: 0; padding: 10px 16px calc(10px + env(safe-area-inset-bottom)); background: rgba(255,251,242,.92); backdrop-filter: blur(8px); border-top: 1px solid var(--line); animation: sheetUp .35s var(--spring); }
.sticky-cta .btn { width: 100%; padding: 14px; }

/* Tela do produto */
.app-head { display: flex; align-items: center; gap: 12px; padding: 18px 0 14px; }
.app-head small { color: var(--violet); font-weight: 700; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; }
.app-head h2 { font-size: 26px; }
a.back { display: grid; place-items: center; text-decoration: none; color: var(--ink); }
.avisos-app { margin-top: 24px; }

@media (min-width: 1000px) {
  .lp-nav { padding-top: 24px; }
  .lp-hero { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 48px; align-items: center; padding-top: 36px; }
  .lp-hero-visual { margin-top: 0; }
  .cta-row .btn-xl { width: auto; padding: 18px 28px; }
  .trust { grid-template-columns: repeat(4, 1fr); gap: 12px; }
  .trust li { font-size: 14px; padding: 14px; }
  .how-steps { grid-template-columns: repeat(3, 1fr); gap: 14px; }
  .trust { margin-top: 56px; }
  .offer { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 480px); gap: 56px; align-items: center; }
  .offer .why h2 { font-size: 36px; }
  .offer-sub { font-size: 17px; }
  .ticks { gap: 12px; }
  .ticks li { font-size: 16px; padding: 16px 18px 16px 52px; }
  .ticks li::before { left: 16px; top: 16px; }
  .price-card { padding: 32px; }
  .offer .price-card { margin-top: 0; }
  .final-cta { margin-top: 88px; }
  .final-cta { padding: 44px; }
  .final-cta h2 { font-size: 34px; }
  .final-cta .btn { width: auto; padding: 18px 32px; }
  .faq { margin-left: auto; margin-right: auto; }
  .faq h2 { text-align: center; }
  .sticky-cta { display: none; }
  /* Produto centralizado */
  #screen-app { max-width: 640px; margin: 0 auto; }
  .app-head { padding-top: 32px; }
}
.trust li p { margin: 0; }

/* ============ Rodapé e páginas legais ============ */
.lp-footer { margin-top: 48px; padding: 24px 0 8px; border-top: 1px solid var(--line); text-align: center; color: var(--muted); font-size: 13px; }
.lp-footer .brand { justify-content: center; margin-bottom: 8px; color: var(--ink); }
.lp-footer p { margin: 0 0 8px; }
.legal-links a { color: var(--ink-2); }
.doc { max-width: 760px; margin: 0 auto; padding: 0 16px 64px; }
.doc-nav { display: flex; align-items: center; justify-content: space-between; padding: 18px 0 10px; }
.doc-nav .brand { margin: 0; color: var(--ink); text-decoration: none; }
.doc h1 { font-size: 34px; line-height: 1.1; margin: 24px 0 6px; }
.doc-meta { color: var(--muted); font-size: 14px; margin: 0 0 20px; }
.doc h2 { font-size: 20px; margin: 32px 0 10px; }
.doc p, .doc li { font-size: 15.5px; line-height: 1.6; color: #2D2A4A; }
.doc ul { padding-left: 20px; margin: 0 0 12px; }
.doc li { margin-bottom: 6px; }
.doc a { color: var(--violet); }
.doc-links { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); }
@media (min-width: 1000px) { .doc h1 { font-size: 44px; } .lp-footer { margin-top: 72px; } }

/* Compra direta (prévia grátis já usada) */
.buy-card { margin-bottom: 12px; text-align: center; border: 2px solid var(--ink); }
.buy-card h3 { font: 800 21px/1.2 var(--font-d); margin: 6px 0 8px; color: var(--ink); }
.buy-card p { color: #44415e; font-size: 14.5px; margin: 0 0 14px; }
.buy-card .pack-tag { margin: 0; }
