/* Página de vendas do Receitas MEI — mesmo modelo da Lojinha, em verde. Mobile first */
:root {
  --brand: #146c43;
  --brand-dark: #0c4a2d;
  --brand-soft: #e3f3ea;
  --ink: #18231d;
  --muted: #5f6b64;
  --bg: #f8fbf9;
  --alt: #eef5f1;
  --line: #dbe7e0;
  --ok: #1b7f4b;
  --no: #c62828;
  --gold: #e8b931;
  --radius: 20px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 17px/1.55 system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
img { max-width: 100%; height: auto; display: block; }
h1, h2, h3 { line-height: 1.15; margin: 0 0 .6em; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 7.5vw, 3.4rem); font-weight: 900; }
h2 { font-size: clamp(1.7rem, 5.5vw, 2.5rem); font-weight: 900; }
h3 { font-size: 1.3rem; font-weight: 800; }
p { margin: 0 0 .8em; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 720px; }
.center { text-align: center; }
.small { font-size: .92rem; color: var(--muted); }
.hl { color: var(--brand); }

.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 800; color: var(--brand); margin-bottom: .6rem; }
.sec { padding: 64px 0; }
.sec.alt { background: var(--alt); }

/* ---------- botões ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; text-align: center;
  min-height: 58px; padding: 14px 28px; border-radius: 16px;
  background: linear-gradient(180deg, #1a8152, var(--brand-dark)); color: #fff;
  font-weight: 800; font-size: 1.12rem; text-decoration: none;
  box-shadow: 0 10px 24px rgba(12, 74, 45, .3); transition: transform .1s;
}
.cta:active { transform: scale(.98); }
.cta.big { width: 100%; min-height: 64px; font-size: 1.2rem; }
.cta-note { font-size: .88rem; color: var(--muted); margin-top: .7rem; }

/* ---------- topo ---------- */
.hero {
  background: radial-gradient(120% 80% at 80% 0%, #1f8a57 0%, var(--brand) 45%, var(--brand-dark) 100%);
  color: #fff; padding: calc(env(safe-area-inset-top, 0px) + 24px) 0 56px;
}
.hero .hl { color: #bff0d3; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 1.3rem; margin-bottom: 28px; }
.brand img { border-radius: 10px; box-shadow: 0 4px 12px rgba(0, 0, 0, .2); }
.hero .eyebrow { text-transform: uppercase; letter-spacing: .14em; font-size: .78rem; font-weight: 700; opacity: .85; }
.hero .lead { font-size: 1.12rem; opacity: .95; max-width: 640px; }
.hero-grid { display: grid; gap: 32px; margin-top: 28px; align-items: center; }
.hero .ticks li::before { background: #fff; color: var(--brand); }
.hero .cta { background: #fff; color: var(--brand-dark); width: 100%; }
.hero .cta-note { color: #fff; opacity: .8; text-align: center; }

.phone {
  margin: 0 auto; width: min(300px, 78vw); border-radius: 38px; padding: 10px;
  background: #13201a; box-shadow: 0 30px 60px rgba(5, 30, 18, .35), inset 0 0 0 2px #2b3d33;
}
.phone img { border-radius: 30px; aspect-ratio: 1 / 2; object-fit: cover; object-position: top; width: 100%; }
.phone.sm { width: min(260px, 70vw); }

.ticks { list-style: none; padding: 0; margin: 0 0 24px; display: grid; gap: 12px; }
.ticks li { position: relative; padding-left: 36px; font-weight: 600; }
.ticks li::before {
  content: "✓"; position: absolute; left: 0; top: 1px; width: 24px; height: 24px; border-radius: 50%;
  display: grid; place-items: center; font-size: .8rem; font-weight: 900; background: var(--brand); color: #fff;
}

/* ---------- dores ---------- */
.pains { display: grid; gap: 12px; margin: 24px 0; }
.pains p { margin: 0; padding: 16px 18px; background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--brand); border-radius: 14px; }
.punch { font-size: 1.25rem; color: var(--brand); }
.punch strong { color: var(--ink); }

/* ---------- passos ---------- */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 24px 0; display: grid; gap: 14px; }
.steps li { counter-increment: s; position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px 20px 20px 74px; }
.steps li::before {
  content: counter(s); position: absolute; left: 20px; top: 20px; width: 38px; height: 38px; border-radius: 50%;
  display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: 900; font-size: 1.1rem;
}
.steps strong { display: block; font-size: 1.12rem; }
.steps span { color: var(--muted); }
.note { background: var(--brand-soft); padding: 16px 18px; border-radius: 14px; }

/* ---------- funcionalidades ---------- */
.feature { display: grid; gap: 24px; align-items: center; margin: 48px 0; }
.feature h3 { font-size: 1.5rem; }
.paper { margin: 0 auto; width: min(340px, 86vw); border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 20px 40px rgba(5, 30, 18, .18); border: 1px solid var(--line); }
.catalog-img { margin: 0 auto; width: min(320px, 80vw); border-radius: 18px; overflow: hidden; box-shadow: 0 20px 40px rgba(5, 30, 18, .18); transform: rotate(-2deg); }
.more-title { margin-top: 56px; }
.grid-list { list-style: none; padding: 0; margin: 20px 0; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.grid-list li { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; font-weight: 700; font-size: .98rem; }
.grid-list b { display: block; font-size: 1.5rem; margin-bottom: 4px; }
.grid-list small { display: block; font-weight: 400; color: var(--muted); font-size: .85rem; }
.included { background: #fff8e1; border: 1px solid #f3df9e; padding: 16px 18px; border-radius: 14px; }

/* ---------- comparativo ---------- */
.table-wrap { overflow-x: auto; margin: 24px -8px 0; }
.compare { width: 100%; table-layout: fixed; border-collapse: separate; border-spacing: 0; background: #fff; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); font-size: .95rem; }
.compare th, .compare td { padding: 12px 4px; text-align: center; border-bottom: 1px solid var(--line); font-size: .8rem; overflow-wrap: anywhere; hyphens: auto; }
.compare tbody th { width: 30%; padding-left: 10px; }
.compare tbody th { text-align: left; font-weight: 700; }
.compare tr:last-child > * { border-bottom: 0; }
.compare thead th { font-size: .74rem; color: var(--muted); }
.compare .us { background: var(--brand-soft); color: var(--brand); font-weight: 800; }
.compare thead .us { color: var(--brand); font-size: .85rem; }
.compare .yes { color: var(--ok); font-weight: 900; font-size: 1.1rem; }
.compare .no { color: var(--no); font-weight: 900; font-size: 1.1rem; }
.compare td { color: var(--muted); }

/* ---------- para quem ---------- */
.fit { list-style: none; padding: 0; margin: 16px 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.fit li { padding: 16px 18px 16px 54px; position: relative; border-bottom: 1px solid var(--line); }
.fit li:last-child { border-bottom: 0; }
.fit li::before { position: absolute; left: 18px; top: 16px; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-weight: 900; font-size: .8rem; }
.fit.yes li::before { content: "✓"; background: #e6f4ec; color: var(--ok); }
.fit.no li { color: var(--muted); }
.fit.no li::before { content: "✗"; background: #fde8e8; color: var(--no); }
.fit-title { font-weight: 800; margin-top: 28px; }

/* ---------- depoimentos ---------- */
.testimonials { display: grid; gap: 16px; margin-top: 24px; }
.testimonial { margin: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
.testimonial img { border-radius: 12px; margin-bottom: 12px; }
.testimonial blockquote { margin: 0 0 10px; font-size: 1.05rem; }
.testimonial figcaption { color: var(--muted); font-size: .9rem; }

/* ---------- oferta ---------- */
.offer { background: linear-gradient(180deg, var(--bg), var(--brand-soft)); }
.price-card { background: #fff; border: 2px solid var(--brand); border-radius: 26px; padding: 28px 22px; box-shadow: 0 24px 50px rgba(12, 74, 45, .15); }
.price { text-align: center; margin: 8px 0 22px; display: flex; flex-direction: column; align-items: center; gap: 6px; }
.price small { text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); font-size: .78rem; }
.price strong { font-size: 4.4rem; font-weight: 900; color: var(--brand); line-height: 1; }
.price .cur { font-size: 1.6rem; vertical-align: super; margin-right: 4px; }
.installments { color: var(--muted); font-size: .95rem; }
.badge { background: #e6f4ec; color: var(--ok); font-weight: 800; padding: 6px 16px; border-radius: 999px; font-size: .95rem; }
.price-card .cta-note { text-align: center; }
.guarantee { display: flex; gap: 18px; align-items: center; margin-top: 28px; background: #fff; border: 1px dashed var(--gold); border-radius: var(--radius); padding: 18px; }
.guarantee p { margin: 0; }
.seal {
  flex: none; width: 84px; height: 84px; border-radius: 50%; display: grid; place-content: center; text-align: center;
  background: radial-gradient(circle, #fbe7a5, var(--gold)); color: #5b4300; font-weight: 900; font-size: 2rem; line-height: 1;
  box-shadow: 0 0 0 5px #fff8e1, 0 0 0 7px var(--gold);
}
.seal small { font-size: .75rem; text-transform: uppercase; letter-spacing: .08em; }

/* ---------- FAQ ---------- */
.faq { display: grid; gap: 10px; margin-top: 20px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 0 18px; }
.faq summary { cursor: pointer; list-style: none; font-weight: 800; padding: 18px 28px 18px 0; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 14px; font-size: 1.5rem; color: var(--brand); font-weight: 400; }
.faq details[open] summary::after { content: "–"; }
.faq details p { color: var(--muted); padding-bottom: 6px; }

/* ---------- final e rodapé ---------- */
.final h2 { font-size: clamp(1.6rem, 5vw, 2.3rem); }
.final .cta { margin-top: 12px; }
.footer { background: #13201a; color: #bfd0c6; padding: 36px 0 120px; font-size: .92rem; }
.footer .links { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.footer a { color: #fff; }

.sticky-cta {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between; gap: 14px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom, 0px));
  background: rgba(255, 250, 248, .96); backdrop-filter: blur(8px); border-top: 1px solid var(--line);
  transform: translateY(110%); transition: transform .25s;
}
.sticky-cta.show { transform: none; }
.sticky-cta strong { display: block; color: var(--brand); font-size: 1.35rem; line-height: 1; }
.sticky-cta small { color: var(--muted); font-weight: 700; font-size: .78rem; }
.sticky-cta .cta { flex: 1; max-width: 380px; min-height: 52px; }

@media (min-width: 820px) {
  .sec { padding: 96px 0; }
  .hero { padding-bottom: 80px; }
  .hero-grid { grid-template-columns: auto 1fr; gap: 64px; }
  .hero-grid .phone { order: 2; }
  .hero .cta { width: auto; }
  .hero .cta-note { text-align: left; }
  .pains { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .feature { grid-template-columns: 300px 1fr; gap: 56px; }
  .feature.rev > figure { order: 2; }
  .feature.rev { grid-template-columns: 1fr 300px; }
  .grid-list { grid-template-columns: repeat(4, 1fr); }
  .testimonials { grid-template-columns: repeat(3, 1fr); }
  .table-wrap { margin: 24px 0 0; }
  .sticky-cta { justify-content: center; gap: 32px; }
  .compare th, .compare td { font-size: .95rem; padding: 14px 12px; }
  .compare thead th { font-size: .85rem; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  * { transition: none !important; }
}
