/* Ernesto — landing page. Mobile-first, só tema escuro. */
:root {
  --bg: #000;
  --bg-2: #070707;
  --surface: #101312;
  --surface-2: #171b19;
  --line: #232926;
  --green: #1ef45a;
  --green-dim: #0f9c3a;
  --green-glow: rgba(30, 244, 90, .14);
  --yellow: #f5c542;
  --red: #ff5a5a;
  --text: #fff;
  --text-soft: #b8c0bb;
  --text-mute: #8a938e;
  --radius: 18px;
  --radius-sm: 12px;
  --wrap: 1160px;
  --header-h: 64px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 12px); -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--text-soft);
  font-family: var(--font); font-size: 16px; line-height: 1.6;
  -webkit-font-smoothing: antialiased; overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3, h4 { color: var(--text); line-height: 1.12; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.05rem, 7.4vw, 3.9rem); letter-spacing: -.035em; }
h2 { font-size: clamp(1.7rem, 5.2vw, 2.75rem); letter-spacing: -.03em; }
h3 { font-size: 1.2rem; }
p { margin: 0 0 1em; }
:focus-visible { outline: 3px solid var(--green); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 100; background: var(--green); color: #000; padding: 10px 16px; border-radius: 10px; font-weight: 700; }
.skip:focus { top: 12px; }
.wrap { width: 100%; max-width: var(--wrap); margin: 0 auto; padding: 0 20px; }
.dot { display: inline-block; width: .2em; height: .2em; background: var(--green); margin-left: .06em; vertical-align: baseline; }
.green { color: var(--green); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5em;
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid transparent;
  font: inherit; font-weight: 700; font-size: 1rem; text-decoration: none; cursor: pointer;
  transition: transform .15s ease, background .15s ease, box-shadow .15s ease, border-color .15s ease;
  white-space: nowrap;
}
.btn-primary { background: var(--green); color: #000; box-shadow: 0 6px 24px -8px rgba(30,244,90,.55); }
.btn-primary:hover { background: #4bff7c; transform: translateY(-1px); }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--text-mute); }
.btn-sm { min-height: 44px; padding: 0 16px; font-size: .95rem; }
.btn-block { width: 100%; }
.btn[aria-disabled="true"] { background: var(--surface-2); color: var(--text-mute); box-shadow: none; cursor: not-allowed; border-color: var(--line); }

/* ---------- Header ---------- */
.header {
  position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h);
  background: rgba(0,0,0,.72); backdrop-filter: saturate(140%) blur(14px); -webkit-backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.header.scrolled { border-bottom-color: var(--line); }
.header .wrap { height: 100%; display: flex; align-items: center; gap: 12px; }
.brand { display: inline-flex; align-items: center; min-height: 44px; }
.brand img { width: 116px; height: auto; }
.nav { display: none; }
.header-actions { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.header-actions .btn-ghost { display: none; }
.menu-btn {
  width: 44px; height: 44px; display: inline-grid; place-items: center; border-radius: 12px;
  background: transparent; border: 1px solid var(--line); color: var(--text); cursor: pointer;
}
.menu-btn svg { width: 20px; height: 20px; }
.mobile-menu {
  position: fixed; top: var(--header-h); left: 0; right: 0; z-index: 49;
  background: rgba(0,0,0,.96); border-bottom: 1px solid var(--line);
  padding: 8px 20px 20px; display: none;
}
.mobile-menu.open { display: block; }
.mobile-menu a { display: flex; align-items: center; min-height: 48px; color: var(--text); text-decoration: none; font-weight: 600; border-bottom: 1px solid var(--line); }
.mobile-menu a:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .nav { display: flex; gap: 4px; margin-left: 28px; }
  .nav a { color: var(--text-soft); text-decoration: none; font-weight: 600; font-size: .95rem; padding: 10px 12px; border-radius: 10px; }
  .nav a:hover { color: var(--text); }
  .header-actions .btn-ghost { display: inline-flex; }
  .menu-btn, .mobile-menu { display: none !important; }
}

/* ---------- Seções ---------- */
section { position: relative; }
.section { padding: 72px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid #111513; border-bottom: 1px solid #111513; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; font-size: .8rem; font-weight: 700; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green); margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 8px; height: 8px; background: var(--green); }
.section-head { max-width: 720px; margin: 0 auto 40px; text-align: center; }
.section-head p { font-size: 1.08rem; }
@media (min-width: 900px) { .section { padding: 112px 0; } .section-head { margin-bottom: 56px; } }

/* ---------- Hero ---------- */
.hero { padding: calc(var(--header-h) + 28px) 0 40px; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -30% auto auto; width: 720px; height: 720px; pointer-events: none;
  background: radial-gradient(closest-side, rgba(30,244,90,.16), transparent 70%);
}
.hero-grid { display: grid; gap: 36px; align-items: center; position: relative; }
.badge {
  display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px 7px 10px; border-radius: 999px;
  background: var(--surface); border: 1px solid var(--line); color: var(--text); font-size: .85rem; font-weight: 600; margin-bottom: 18px;
}
.badge svg { width: 18px; height: 18px; color: #2aabee; }
.hero h1 { margin-bottom: 16px; }
.hero .lead { font-size: 1.06rem; max-width: 560px; margin-bottom: 24px; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 14px; }
.micro { font-size: .86rem; color: var(--text-mute); display: flex; flex-wrap: wrap; gap: 4px 14px; margin: 0; }
.micro span { display: inline-block; }
.micro span::before { content: ""; display: inline-block; width: 5px; height: 5px; background: var(--green); margin-right: 7px; vertical-align: middle; }
.hero-visual { position: relative; display: flex; justify-content: center; }
.hero-char { display: none; }
@media (max-width: 899px) {
  .hero .lead { font-size: 1rem; }
  .hero-ctas .btn { flex: 1 1 auto; }
}
@media (min-width: 900px) {
  .hero { padding: calc(var(--header-h) + 64px) 0 80px; }
  .hero-grid { grid-template-columns: 1.08fr .92fr; gap: 48px; }
  .hero .lead { font-size: 1.15rem; }
  .hero-visual { justify-content: flex-end; }
  .hero-char { display: block; position: absolute; width: 150px; left: 0; bottom: 24px; z-index: 2; border-radius: 16px; }
}

/* ---------- Celular + chat ---------- */
.phone {
  width: 100%; max-width: 340px; border-radius: 38px; padding: 10px;
  background: linear-gradient(160deg, #1d2320, #0b0d0c); border: 1px solid #2a312d;
  box-shadow: 0 30px 80px -30px rgba(30,244,90,.35), 0 0 0 1px rgba(255,255,255,.03) inset;
  position: relative; z-index: 1;
}
.phone-screen { border-radius: 30px; overflow: hidden; background: #0e1621; }
.tg-top { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #17212b; }
.tg-top img { width: 36px; height: 36px; border-radius: 50%; background: #000; object-fit: cover; }
.tg-top strong { display: block; color: #fff; font-size: .92rem; line-height: 1.2; }
.tg-top small { color: #6c9fd1; font-size: .75rem; }
.chat {
  height: 410px; padding: 14px 12px; display: flex; flex-direction: column; justify-content: flex-end; gap: 8px; overflow: hidden;
  background: #0e1621 radial-gradient(circle at 20% 10%, rgba(30,244,90,.05), transparent 40%);
}
.msg {
  max-width: 86%; padding: 8px 11px 6px; border-radius: 14px; font-size: .84rem; line-height: 1.45; color: #e9eef2;
  position: relative; word-wrap: break-word;
}
.msg.in { background: #182533; align-self: flex-start; border-bottom-left-radius: 4px; }
.msg.out { background: #2b5278; align-self: flex-end; border-bottom-right-radius: 4px; }
.msg b { color: #fff; }
.msg i { color: #c6d2dc; }
.msg .time { display: block; text-align: right; font-size: .66rem; color: #8aa0b4; margin-top: 2px; }
.msg.hidden { display: none; }
.msg.pop { animation: pop .35s ease both; }
.typing { display: inline-flex; gap: 4px; padding: 12px 14px; }
.typing span { width: 7px; height: 7px; border-radius: 50%; background: #8aa0b4; animation: blink 1.2s infinite both; }
.typing span:nth-child(2) { animation-delay: .2s; }
.typing span:nth-child(3) { animation-delay: .4s; }
.voice { display: flex; align-items: center; gap: 8px; }
.voice .play { width: 30px; height: 30px; border-radius: 50%; background: #fff; display: grid; place-items: center; flex: none; }
.voice .play::after { content: ""; border-left: 9px solid #2b5278; border-top: 6px solid transparent; border-bottom: 6px solid transparent; margin-left: 3px; }
.voice .wave { display: flex; gap: 2px; align-items: center; height: 22px; }
.voice .wave i { width: 3px; background: #a7c4e0; border-radius: 2px; }
.tg-input { display: flex; align-items: center; gap: 8px; padding: 10px 12px; background: #17212b; color: #6d7f8f; font-size: .82rem; }
.tg-input span { flex: 1; }
.tg-input svg { width: 20px; height: 20px; color: #6c9fd1; }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ---------- Faixa de confiança ---------- */
.trust { border-top: 1px solid #111513; border-bottom: 1px solid #111513; background: var(--bg-2); }
.trust ul { list-style: none; margin: 0; padding: 18px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.trust li { display: flex; align-items: center; gap: 10px; color: var(--text); font-weight: 600; font-size: .9rem; line-height: 1.3; }
.ico { width: 38px; height: 38px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--surface-2); color: var(--green); border: 1px solid var(--line); }
.ico svg { width: 20px; height: 20px; }
@media (min-width: 900px) { .trust ul { grid-template-columns: repeat(4, 1fr); padding: 26px 0; } .trust li { font-size: .98rem; } }

/* ---------- Problema ---------- */
.pains { display: grid; gap: 14px; margin-bottom: 36px; }
.pain { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; display: flex; gap: 14px; align-items: flex-start; }
.pain .x { width: 30px; height: 30px; flex: none; border-radius: 9px; display: grid; place-items: center; background: rgba(255,90,90,.1); color: var(--red); font-weight: 800; }
.pain p { margin: 0; color: var(--text); font-weight: 600; font-size: 1.04rem; line-height: 1.45; }
.turn { text-align: center; max-width: 760px; margin: 0 auto; font-size: clamp(1.25rem, 3.6vw, 1.75rem); color: var(--text); font-weight: 700; line-height: 1.35; letter-spacing: -.02em; }
.turn .green { display: block; }
@media (min-width: 900px) { .pains { grid-template-columns: repeat(3, 1fr); gap: 20px; } .pain { flex-direction: column; padding: 28px; } }

/* ---------- Como funciona ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; counter-reset: s; }
.step { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; position: relative; }
.step .num { width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: var(--green); color: #000; font-weight: 800; font-size: 1.1rem; margin-bottom: 14px; }
.step h3 { margin-bottom: 6px; }
.step p { margin: 0; }
.step code { font-family: inherit; color: var(--green); background: rgba(30,244,90,.08); padding: 1px 6px; border-radius: 6px; }
.steps-cta { text-align: center; margin-top: 32px; }
@media (min-width: 700px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1000px) { .steps { grid-template-columns: repeat(4, 1fr); gap: 20px; } }

/* ---------- Recursos ---------- */
.features { display: grid; gap: 72px; }
.feature { display: grid; gap: 28px; align-items: center; }
.feature-text h3 { font-size: clamp(1.5rem, 4.4vw, 2.1rem); letter-spacing: -.025em; margin-bottom: 12px; }
.feature-text p { font-size: 1.06rem; }
.plan-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 14px; }
.tag { font-size: .74rem; font-weight: 700; padding: 4px 10px; border-radius: 999px; border: 1px solid var(--line); color: var(--text-soft); background: var(--surface); letter-spacing: .02em; }
.tag.on { border-color: rgba(30,244,90,.45); color: var(--green); background: rgba(30,244,90,.07); }
.tag.note { border-style: dashed; }
.feature-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.feature-list li { display: flex; gap: 10px; align-items: flex-start; color: var(--text-soft); }
.feature-list li::before { content: ""; width: 8px; height: 8px; background: var(--green); flex: none; margin-top: .62em; }
.mock { background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 18px; position: relative; overflow: hidden; }
.mock::before { content: ""; position: absolute; inset: auto -40% -60% auto; width: 300px; height: 300px; background: radial-gradient(closest-side, var(--green-glow), transparent); pointer-events: none; }
.mock .chat-mini { display: flex; flex-direction: column; gap: 8px; background: #0e1621; border-radius: 16px; padding: 14px; position: relative; }
@media (min-width: 900px) {
  .features { gap: 120px; }
  .feature { grid-template-columns: 1fr 1fr; gap: 64px; }
  .feature:nth-child(even) .feature-text { order: 2; }
  .mock { padding: 26px; }
}

/* Mini barras por categoria */
.cat-row { display: grid; grid-template-columns: auto 1fr auto; gap: 4px 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid var(--line); position: relative; }
.cat-row:last-child { border-bottom: 0; }
.cat-row .name { color: var(--text); font-weight: 700; font-size: .95rem; }
.cat-row .val { color: var(--text); font-weight: 700; font-size: .9rem; text-align: right; }
.cat-row .sub { grid-column: 1 / -1; display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-mute); }
.bar { grid-column: 1 / -1; height: 8px; border-radius: 99px; background: #222826; overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 99px; background: var(--green); width: var(--w, 50%); transform-origin: left; }
.bar i.warn { background: var(--yellow); }
.bar i.over { background: var(--red); }
.reveal.in .bar i { animation: grow 1s ease both; }
@keyframes grow { from { transform: scaleX(0); } to { transform: scaleX(1); } }
.mock-title { display: flex; justify-content: space-between; align-items: center; color: var(--text); font-weight: 700; margin-bottom: 6px; position: relative; }
.mock-title small { color: var(--text-mute); font-weight: 600; }

/* Mini painel */
.dash { position: relative; display: grid; gap: 10px; }
.dash-top { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.kpi { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px; }
.kpi small { display: block; color: var(--text-mute); font-size: .74rem; font-weight: 600; }
.kpi strong { color: var(--text); font-size: 1.2rem; letter-spacing: -.02em; }
.kpi strong.green { color: var(--green); }
.chart { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 12px 12px 8px; }
.chart small { color: var(--text-mute); font-size: .74rem; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 92px; margin-top: 8px; }
.bars i { flex: 1; background: linear-gradient(180deg, var(--green), var(--green-dim)); border-radius: 5px 5px 2px 2px; height: var(--h); opacity: .9; }
.bars i.today { background: var(--text); }
.bars-x { display: flex; gap: 6px; margin-top: 4px; }
.bars-x span { flex: 1; text-align: center; font-size: .66rem; color: var(--text-mute); }
.dash .cats { background: var(--surface-2); border: 1px solid var(--line); border-radius: 14px; padding: 2px 12px; }
.dash .cat-row { padding: 9px 0; }
.dash .cat-row .name, .dash .cat-row .val { font-size: .84rem; }

/* Cofrinho */
.goal { background: var(--surface-2); border: 1px solid var(--line); border-radius: 16px; padding: 14px; position: relative; margin-bottom: 10px; }
.goal:last-child { margin-bottom: 0; }
.goal-head { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.goal-head .emo { font-size: 1.4rem; width: 42px; height: 42px; display: grid; place-items: center; background: #0b0d0c; border-radius: 12px; }
.goal-head strong { color: var(--text); display: block; line-height: 1.2; }
.goal-head small { color: var(--text-mute); font-size: .78rem; }
.goal-head .pct { margin-left: auto; color: var(--green); font-weight: 800; }
.goal .bar { height: 10px; }
.goal-meta { display: flex; justify-content: space-between; font-size: .78rem; color: var(--text-mute); margin-top: 8px; }

/* ---------- Conheça o Ernesto ---------- */
.meet { display: grid; gap: 32px; align-items: center; }
.meet-img { max-width: 300px; margin: 0 auto; border-radius: 24px; }
.quotes { display: grid; gap: 10px; margin-top: 22px; }
.quote { background: #182533; color: #e9eef2; border-radius: 16px 16px 16px 4px; padding: 12px 16px; font-weight: 600; max-width: 420px; }
.quote:nth-child(2) { margin-left: 24px; }
.quote:nth-child(3) { margin-left: 48px; }
@media (min-width: 900px) { .meet { grid-template-columns: .8fr 1.2fr; gap: 64px; } .meet-img { max-width: 380px; } }

/* ---------- Por que Telegram ---------- */
.why { display: grid; gap: 14px; }
.why-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.why-card .ico { margin-bottom: 14px; }
.why-card h3 { margin-bottom: 6px; }
.why-card p { margin: 0; }
@media (min-width: 900px) { .why { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* ---------- Quem criou ---------- */
.story { display: grid; gap: 24px; align-items: center; background: var(--surface); border: 1px solid var(--line); border-radius: 26px; padding: 28px; }
.story img { width: 120px; border-radius: 20px; }
.story p { font-size: 1.08rem; color: var(--text-soft); }
.story p:last-child { margin-bottom: 0; }
@media (min-width: 900px) { .story { grid-template-columns: auto 1fr; gap: 40px; padding: 44px; } .story img { width: 170px; } }

/* ---------- Depoimentos ---------- */
.testimonials { display: grid; gap: 16px; }
.testimonial { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; margin: 0; }
.testimonial blockquote { margin: 0 0 16px; color: var(--text); font-size: 1.02rem; }
.testimonial figcaption { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--text-soft); }
.testimonial figcaption img { width: 40px; height: 40px; border-radius: 50%; object-fit: cover; }
@media (min-width: 900px) { .testimonials { grid-template-columns: repeat(3, 1fr); } }

/* ---------- Planos ---------- */
.plans { display: grid; gap: 18px; align-items: stretch; }
.plan { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; padding: 26px 22px; display: flex; flex-direction: column; position: relative; }
.plan h3 { font-size: 1.3rem; margin-bottom: 4px; }
.plan .for { color: var(--text-mute); font-size: .92rem; margin-bottom: 18px; }
.price { display: flex; align-items: baseline; gap: 4px; color: var(--text); margin-bottom: 4px; }
.price .cur { font-size: 1.1rem; font-weight: 700; }
.price .amount { font-size: 2.8rem; font-weight: 800; letter-spacing: -.04em; line-height: 1; }
.price .per { color: var(--text-mute); font-weight: 600; }
.plan .people { font-size: .9rem; font-weight: 700; color: var(--green); margin-bottom: 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 22px; display: grid; gap: 10px; flex: 1; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; line-height: 1.4; color: var(--text-soft); }
.plan li svg { width: 18px; height: 18px; flex: none; margin-top: 1px; color: var(--green); }
.plan li.inherit { color: var(--text); font-weight: 700; }
.plan .note { text-align: center; font-size: .8rem; color: var(--text-mute); margin: 10px 0 0; }
.plan.featured { border: 2px solid var(--green); background: linear-gradient(180deg, rgba(30,244,90,.07), var(--surface) 40%); box-shadow: 0 20px 60px -30px rgba(30,244,90,.45); }
.ribbon { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--green); color: #000; font-weight: 800; font-size: .76rem; padding: 5px 12px; border-radius: 999px; letter-spacing: .03em; white-space: nowrap; }
.plans-foot { text-align: center; margin-top: 26px; color: var(--text-mute); font-size: .92rem; display: flex; justify-content: center; align-items: center; gap: 8px; flex-wrap: wrap; }
.plans-foot svg { width: 16px; height: 16px; color: var(--green); }
@media (max-width: 899px) {
  .plan.featured { order: -1; }
}
@media (min-width: 900px) {
  .plans { grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: center; }
  .plan { min-height: 640px; }
  .plan.featured { min-height: 690px; padding: 32px 26px; }
}

/* Tabela comparativa */
.compare { margin-top: 40px; border: 1px solid var(--line); border-radius: 20px; background: var(--surface); overflow: hidden; }
.compare summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 20px; min-height: 56px; color: var(--text); font-weight: 700; }
.compare summary::-webkit-details-marker { display: none; }
.compare summary .chev { width: 20px; height: 20px; transition: transform .2s; color: var(--green); flex: none; }
.compare[open] summary .chev { transform: rotate(180deg); }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
.compare table { width: 100%; border-collapse: collapse; min-width: 560px; font-size: .9rem; }
.compare th, .compare td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; color: var(--text-soft); }
.compare thead th { color: var(--text); font-weight: 800; background: var(--surface-2); position: sticky; top: 0; }
.compare thead th small { display: block; color: var(--text-mute); font-weight: 600; }
.compare thead th.hl { color: var(--green); }
.compare td .y { color: var(--green); font-weight: 800; }
.compare td .n { color: #4b544f; }
.compare td.hl { background: rgba(30,244,90,.04); }
.compare tbody tr:last-child td { border-bottom: 0; }

/* ---------- FAQ ---------- */
.faq { max-width: 800px; margin: 0 auto; display: grid; gap: 10px; }
.faq-item { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; }
.faq-item h3 { margin: 0; font-size: 1rem; }
.faq-q {
  width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 16px; text-align: left;
  background: none; border: 0; color: var(--text); font: inherit; font-weight: 700; font-size: 1.02rem; padding: 18px 20px; min-height: 56px; cursor: pointer; border-radius: 16px;
}
.faq-q .plus { width: 26px; height: 26px; border-radius: 8px; flex: none; position: relative; background: var(--surface-2); }
.faq-q .plus::before, .faq-q .plus::after { content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px; background: var(--green); transform: translate(-50%, -50%); transition: transform .2s; }
.faq-q .plus::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq-q[aria-expanded="true"] .plus::after { transform: translate(-50%, -50%) rotate(0); }
.faq-a { padding: 0 20px 18px; }
.faq-a p { margin: 0; }
.faq-a[hidden] { display: none; }

/* ---------- CTA final ---------- */
.final { text-align: center; overflow: hidden; }
.final::before { content: ""; position: absolute; left: 50%; top: 40%; width: 900px; height: 600px; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(30,244,90,.18), transparent 70%); pointer-events: none; }
.final .wrap { position: relative; }
.final img { width: 150px; margin: 0 auto 24px; border-radius: 20px; }
.final h2 { max-width: 700px; margin: 0 auto 26px; font-size: clamp(1.9rem, 6vw, 3.2rem); }

/* ---------- Rodapé ---------- */
.footer { border-top: 1px solid var(--line); padding: 44px 0 110px; font-size: .9rem; color: var(--text-mute); }
.footer-grid { display: grid; gap: 22px; }
.footer img { width: 120px; }
.footer nav { display: flex; flex-wrap: wrap; gap: 4px 18px; }
.footer nav a { color: var(--text-soft); text-decoration: none; min-height: 44px; display: inline-flex; align-items: center; }
.footer nav a:hover { color: var(--text); text-decoration: underline; }
.footer .legal { font-size: .82rem; }
.footer p { margin: 0 0 6px; }
@media (min-width: 900px) { .footer { padding-bottom: 44px; } .footer-grid { grid-template-columns: auto 1fr; gap: 40px; align-items: start; } }

/* ---------- Elementos flutuantes ---------- */
.sticky-cta {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 40; padding: 10px; border-radius: 20px;
  background: rgba(16,19,18,.94); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border: 1px solid var(--line);
  display: flex; align-items: center; gap: 12px; transform: translateY(140%); transition: transform .3s ease; visibility: hidden;
}
.sticky-cta.show { transform: none; visibility: visible; }
.sticky-cta .txt { flex: 1; font-size: .82rem; line-height: 1.3; color: var(--text-soft); padding-left: 6px; }
.sticky-cta .txt strong { color: var(--text); display: block; font-size: .92rem; }
@media (min-width: 900px) { .sticky-cta { display: none; } }
.wa-float {
  position: fixed; right: 16px; bottom: 16px; z-index: 41; width: 52px; height: 52px; border-radius: 50%;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--green); display: grid; place-items: center;
  box-shadow: 0 8px 24px rgba(0,0,0,.5); transition: bottom .3s ease;
}
.wa-float svg { width: 26px; height: 26px; }
.wa-float[hidden] { display: none; }
body.sticky-on .wa-float { bottom: 92px; }
@media (min-width: 900px) { body.sticky-on .wa-float { bottom: 16px; } }

/* Cookies */
.cookie {
  position: fixed; left: 12px; right: 12px; bottom: 12px; z-index: 60; max-width: 520px; margin: 0 auto;
  background: var(--surface-2); border: 1px solid var(--line); border-radius: 18px; padding: 16px; box-shadow: 0 16px 40px rgba(0,0,0,.6);
  font-size: .88rem;
}
.cookie p { margin: 0 0 12px; }
.cookie .row { display: flex; gap: 8px; }
.cookie .row .btn { flex: 1; }
.cookie[hidden] { display: none; }

/* ---------- Páginas internas ---------- */
.page { padding: calc(var(--header-h) + 40px) 0 72px; }
.page .wrap { max-width: 820px; }
.doc h1 { font-size: clamp(1.9rem, 5vw, 2.6rem); }
.doc h2 { font-size: 1.35rem; margin-top: 2em; letter-spacing: -.015em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc strong { color: var(--text); }
.warn-box { background: rgba(245,197,66,.08); border: 1px solid rgba(245,197,66,.4); color: #f6dc8f; border-radius: 14px; padding: 14px 16px; margin-bottom: 28px; font-weight: 600; }
.ph { background: rgba(245,197,66,.14); color: #f6dc8f; padding: 0 5px; border-radius: 5px; font-weight: 600; }
.center-page { min-height: 100vh; display: grid; place-items: center; text-align: center; padding: calc(var(--header-h) + 24px) 20px 48px; }
.center-page .box { max-width: 560px; }
.center-page img.char { width: 160px; margin: 0 auto 20px; border-radius: 20px; }
.thanks-steps { list-style: none; padding: 0; margin: 24px 0 28px; display: grid; gap: 12px; text-align: left; }
.thanks-steps li { display: flex; gap: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 16px; }
.thanks-steps .num { width: 34px; height: 34px; border-radius: 10px; flex: none; display: grid; place-items: center; background: var(--green); color: #000; font-weight: 800; }
.thanks-steps strong { color: var(--text); display: block; }

/* ---------- Animações ao rolar ---------- */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.js .reveal.in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Hero no celular: promessa, chat e CTA na primeira tela ---------- */
@media (max-width: 899px) {
  .hero { padding: calc(var(--header-h) + 16px) 0 28px; }
  .hero-grid { gap: 0; }
  .hero-copy { display: contents; }
  .badge { order: 1; justify-self: start; margin-bottom: 12px; padding: 5px 12px 5px 8px; font-size: .8rem; }
  .hero h1 { order: 2; font-size: clamp(1.8rem, 7.6vw, 2.4rem); margin-bottom: 10px; }
  .hero .lead { order: 3; font-size: .95rem; line-height: 1.5; margin-bottom: 14px; }
  .hero-visual { order: 4; margin-bottom: 14px; }
  .hero-ctas { order: 5; flex-wrap: nowrap; gap: 8px; margin-bottom: 10px; }
  .hero-ctas .btn { padding: 0 12px; font-size: .95rem; flex: 1 1 0; }
  .micro { order: 6; font-size: .8rem; }
  .phone { max-width: 100%; border-radius: 24px; padding: 6px; }
  .phone-screen { border-radius: 19px; }
  .tg-top { padding: 8px 12px; }
  .tg-top img { width: 30px; height: 30px; }
  .chat { height: 236px; padding: 10px; gap: 6px; }
  .msg { font-size: .78rem; line-height: 1.4; }
  .tg-input { display: none; }
}
@media (max-width: 899px) and (max-height: 700px) {
  .hero .lead { display: none; }
}
