/* =====================================================================
   Mercado no Lápis — Landing page
   Paleta da marca (mesma do painel): verde-floresta + lima.
   ===================================================================== */
:root {
  --ink: #0B130F;
  --ink-soft: #3D4A43;
  --muted: #66766D;
  --paper: #F6F7F2;
  --paper-2: #EDEFE6;
  --white: #FFFFFF;
  --forest-900: #051C12;
  --forest-800: #072F1F;
  --forest-700: #1A3E30;
  --lime: #B4F105;
  --lime-soft: #EAF8C4;
  --up: #DC2626;
  --up-bg: #FEF2F2;
  --down: #15803D;
  --down-bg: #F0FDF4;
  --line: #E1E5DC;
  --radius: 20px;
  --shadow: 0 24px 60px -24px rgba(5, 28, 18, .28);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
.wrap { width: min(1180px, 100% - 40px); margin-inline: auto; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 14px; border-radius: 8px; }

h1, h2, h3 { letter-spacing: -0.035em; line-height: 1.08; margin: 0; font-weight: 800; }
h1 { font-size: clamp(2.4rem, 4.6vw, 3.7rem); }
h2 { font-size: clamp(1.9rem, 3.6vw, 2.9rem); }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; line-height: 1.25; }
p { margin: 0; }
.lead { font-size: clamp(1.05rem, 1.4vw, 1.2rem); color: var(--ink-soft); }
.num { font-variant-numeric: tabular-nums; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 10px; font-size: .78rem; font-weight: 700;
  letter-spacing: .12em; text-transform: uppercase; color: var(--forest-700); margin-bottom: 18px;
}
.eyebrow::before { content: ""; width: 28px; height: 2px; background: currentColor; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px; font: inherit; font-weight: 700;
  font-size: .98rem; padding: 15px 24px; border-radius: 14px; border: 1.5px solid transparent; text-decoration: none;
  cursor: pointer; transition: transform .15s ease, background .2s ease, border-color .2s ease; white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-dark { background: var(--forest-800); color: var(--white); }
.btn-dark:hover { background: var(--forest-700); }
.btn-lime { background: var(--lime); color: var(--forest-900); }
.btn-lime:hover { background: #C4F83A; }
.btn-ghost { border-color: rgba(11, 19, 15, .18); color: var(--ink); background: transparent; }
.btn-ghost:hover { border-color: var(--ink); }
.btn-ghost-light { border-color: rgba(255, 255, 255, .28); color: var(--white); }
.btn-ghost-light:hover { border-color: var(--white); }
.btn-sm { padding: 10px 16px; font-size: .9rem; border-radius: 12px; }
.btn:focus-visible, a:focus-visible, summary:focus-visible, button:focus-visible { outline: 3px solid var(--lime); outline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50; background: rgba(246, 247, 242, .86);
  backdrop-filter: saturate(160%) blur(12px); -webkit-backdrop-filter: saturate(160%) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s;
}
.site-header.scrolled { border-bottom-color: var(--line); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.15rem; letter-spacing: -0.02em; text-decoration: none; }
.brand img { width: 34px; height: 34px; border-radius: 10px; }
.nav-links { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-weight: 600; font-size: .94rem; color: var(--ink-soft); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-login { text-decoration: none; font-weight: 700; font-size: .94rem; padding: 10px 12px; }
.nav-toggle { display: none; background: none; border: 0; font-size: 1.6rem; padding: 6px; line-height: 1; }

@media (max-width: 920px) {
  .nav-links, .nav-login { display: none; }
  .nav-toggle { display: inline-flex; }
  .nav.open + .mobile-menu { display: block; }
}
.mobile-menu { display: none; border-top: 1px solid var(--line); padding: 12px 0 20px; }
.mobile-menu a { display: block; padding: 12px 0; font-weight: 600; text-decoration: none; border-bottom: 1px solid var(--line); }
.mobile-menu .btn { width: 100%; margin-top: 16px; }

/* ---------- Hero ---------- */
.hero { padding: 56px 0 72px; }
.hero-grid { display: grid; grid-template-columns: 1.02fr 1fr; gap: 56px; align-items: center; }
.hero h1 .hl { position: relative; white-space: nowrap; }
.hero h1 .hl::after {
  content: ""; position: absolute; left: -2px; right: -4px; bottom: .06em; height: .32em; background: var(--lime);
  z-index: -1; border-radius: 4px;
}
.hero h1 { position: relative; z-index: 0; }
.hero .lead { margin: 22px 0 32px; max-width: 34em; }
.hero-ctas { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-note { margin-top: 18px; font-size: .86rem; color: var(--muted); display: flex; flex-wrap: wrap; gap: 6px 18px; }
.hero-note span { display: inline-flex; align-items: center; gap: 6px; }
.hero-note svg { color: var(--down); }

.hero-visual { position: relative; padding: 0 0 40px 40px; }
.hero-photo { border-radius: 28px; overflow: hidden; aspect-ratio: 4 / 4.4; background: var(--paper-2); box-shadow: var(--shadow); }
.hero-photo img { width: 100%; height: 100%; object-fit: cover; }

.mock {
  background: var(--white); border-radius: 18px; box-shadow: var(--shadow); padding: 18px;
  font-size: .86rem; border: 1px solid rgba(11, 19, 15, .05);
}
.mock-receipt { position: absolute; left: 0; bottom: 0; width: min(330px, 82%); }
.mock-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.mock-head strong { font-size: .92rem; }
.mock-head small { color: var(--muted); font-size: .76rem; }
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 999px; font-weight: 700; font-size: .74rem; white-space: nowrap; }
.pill.up { background: var(--up-bg); color: var(--up); }
.pill.down { background: var(--down-bg); color: var(--down); }
.pill.neutral { background: var(--paper-2); color: var(--ink-soft); }
.mock-row { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 9px 0; border-top: 1px dashed var(--line); }
.mock-row .n { font-weight: 600; line-height: 1.25; }
.mock-row .s { color: var(--muted); font-size: .76rem; }
.mock-scan {
  position: absolute; right: -6px; top: 26px; display: flex; align-items: center; gap: 10px;
  background: var(--forest-800); color: var(--white); padding: 12px 16px; border-radius: 14px; box-shadow: var(--shadow); font-size: .84rem;
}
.mock-scan .ic { width: 30px; height: 30px; border-radius: 9px; background: var(--lime); color: var(--forest-900); display: grid; place-items: center; }
.mock-scan small { display: block; color: rgba(255, 255, 255, .65); font-size: .74rem; }

/* ---------- Faixa de fatos ---------- */
.facts { border-block: 1px solid var(--line); background: var(--white); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { padding: 30px 26px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact b { display: block; font-size: clamp(1.7rem, 2.6vw, 2.2rem); font-weight: 800; letter-spacing: -0.03em; line-height: 1.1; }
.fact span { color: var(--muted); font-size: .92rem; }

/* ---------- Seções ---------- */
.section { padding: 104px 0; }
.section-head { max-width: 720px; margin-bottom: 56px; }
.section-head p { margin-top: 18px; }

/* Problema */
.problem { background: var(--forest-900); color: var(--white); }
.problem .eyebrow { color: var(--lime); }
.problem .lead { color: rgba(255, 255, 255, .72); }
.problem-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.problem-list { list-style: none; padding: 0; margin: 36px 0 0; counter-reset: p; }
.problem-list li { counter-increment: p; display: grid; grid-template-columns: 56px 1fr; padding: 22px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
.problem-list li::before { content: "0" counter(p); font-weight: 800; color: var(--lime); font-size: .95rem; padding-top: 2px; }
.problem-list b { display: block; font-size: 1.08rem; margin-bottom: 4px; }
.problem-list span { color: rgba(255, 255, 255, .68); font-size: .96rem; }
.problem-photo { border-radius: 26px; overflow: hidden; aspect-ratio: 4 / 5; }
.problem-photo img { width: 100%; height: 100%; object-fit: cover; filter: saturate(.9); }

/* Como funciona */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; list-style: none; padding: 0; margin: 0; }
.step { background: var(--white); border-radius: 24px; overflow: hidden; border: 1px solid var(--line); display: flex; flex-direction: column; }
.step-img { aspect-ratio: 16 / 11; overflow: hidden; position: relative; background: var(--paper-2); }
.step-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s ease; }
.step:hover .step-img img { transform: scale(1.04); }
.step-num {
  position: absolute; left: 16px; top: 16px; width: 44px; height: 44px; border-radius: 13px; background: var(--lime);
  color: var(--forest-900); font-weight: 800; display: grid; place-items: center; font-size: 1.05rem;
}
.step-body { padding: 24px 26px 28px; }
.step-body p { color: var(--ink-soft); margin-top: 10px; font-size: .97rem; }

/* Blocos de solução */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; padding: 56px 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature.flip .feature-visual { order: -1; }
.feature-tag { font-weight: 800; color: var(--forest-700); font-size: .9rem; margin-bottom: 14px; display: block; }
.feature h3 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); letter-spacing: -0.035em; line-height: 1.12; }
.feature p.lead { margin: 18px 0 22px; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.checks li::before {
  content: ""; flex: 0 0 22px; height: 22px; margin-top: 2px; border-radius: 7px; background: var(--lime-soft)
  url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4 8.5l2.5 2.5L12 5.5' stroke='%23072F1F' stroke-width='2' fill='none' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 14px no-repeat;
}
.feature-visual { background: var(--paper-2); border-radius: 28px; padding: 36px; position: relative; }
.feature-visual .mock { box-shadow: 0 18px 40px -22px rgba(5, 28, 18, .35); }

.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; margin-top: 14px; }
.bars div { flex: 1; background: #9DB8AA; border-radius: 4px 4px 0 0; }
.bars div.cur { background: var(--forest-800); }
.bars-x { display: flex; gap: 8px; margin-top: 6px; }
.bars-x span { flex: 1; text-align: center; font-size: .66rem; color: var(--muted); }

.legend { display: flex; gap: 16px; flex-wrap: wrap; font-size: .78rem; color: var(--ink-soft); margin-top: 10px; }
.legend i { display: inline-block; width: 14px; height: 3px; border-radius: 2px; margin-right: 6px; vertical-align: middle; }

/* Por que */
.why { background: var(--white); border-block: 1px solid var(--line); }
.why-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; border-top: 1px solid var(--line); }
.why-item { padding: 34px 32px 34px 0; border-bottom: 1px solid var(--line); }
.why-item:nth-child(3n+2), .why-item:nth-child(3n+3) { padding-left: 32px; border-left: 1px solid var(--line); }
.why-item .ic { width: 44px; height: 44px; border-radius: 13px; background: var(--lime-soft); color: var(--forest-800); display: grid; place-items: center; margin-bottom: 18px; }
.why-item p { color: var(--ink-soft); margin-top: 8px; font-size: .97rem; }

/* FAQ */
.faq-grid { display: grid; grid-template-columns: .8fr 1.2fr; gap: 64px; align-items: start; }
.faq details { border-top: 1px solid var(--line); }
.faq details:last-child { border-bottom: 1px solid var(--line); }
.faq summary {
  list-style: none; cursor: pointer; padding: 24px 44px 24px 0; font-weight: 700; font-size: 1.06rem; position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; position: absolute; right: 6px; top: 50%; width: 14px; height: 14px; margin-top: -9px;
  border-right: 2px solid var(--ink); border-bottom: 2px solid var(--ink); transform: rotate(45deg); transition: transform .2s;
}
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq details p { padding: 0 44px 26px 0; color: var(--ink-soft); }

/* CTA final */
.final { padding: 0 0 104px; }
.final-box {
  background: var(--forest-800); color: var(--white); border-radius: 32px; padding: clamp(40px, 6vw, 80px);
  display: grid; grid-template-columns: 1.4fr 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden;
}
.final-box h2 { max-width: 15em; }
.final-box p { color: rgba(255, 255, 255, .72); margin-top: 16px; }
.final-actions { display: flex; flex-direction: column; gap: 12px; align-items: stretch; position: relative; z-index: 1; }
.final-actions small { color: rgba(255, 255, 255, .6); text-align: center; font-size: .84rem; }
.final-shape { position: absolute; right: -60px; top: -60px; width: 260px; opacity: .1; }

/* Rodapé */
.site-footer { background: var(--forest-900); color: rgba(255, 255, 255, .7); padding: 64px 0 32px; font-size: .93rem; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr; gap: 40px; }
.site-footer .brand { color: var(--white); }
.site-footer h4 { color: var(--white); font-size: .85rem; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 14px; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.site-footer a { text-decoration: none; }
.site-footer a:hover { color: var(--lime); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .12); margin-top: 48px; padding-top: 24px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .82rem; }

/* Revelação suave ao rolar (respeita prefers-reduced-motion) */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* ---------- Responsivo ---------- */
@media (max-width: 1020px) {
  .hero-grid, .problem-grid, .feature, .faq-grid, .final-box { grid-template-columns: 1fr; }
  .feature.flip .feature-visual { order: 0; }
  .hero-visual { max-width: 560px; }
  .steps { grid-template-columns: 1fr; max-width: 560px; }
  .why-grid { grid-template-columns: 1fr 1fr; }
  .why-item:nth-child(n) { padding: 30px 24px 30px 0; border-left: 0; }
  .why-item:nth-child(2n) { padding-left: 24px; border-left: 1px solid var(--line); }
  .problem-photo { aspect-ratio: 16 / 10; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > :first-child { grid-column: 1 / -1; }
}
@media (max-width: 480px) {
  .nav-cta > .btn { display: none; } /* CTA continua no menu e no hero */
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .wrap { width: calc(100% - 32px); }
  .hero { padding: 28px 0 56px; }
  .hero-visual { padding: 0 0 56px 0; }
  .mock-receipt { left: 12px; right: 12px; width: auto; }
  .mock-scan { right: 10px; top: 14px; }
  .hero h1 .hl { white-space: normal; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 22px 16px; border-left: 0; border-top: 1px solid var(--line); }
  .fact:nth-child(-n+2) { border-top: 0; }
  .fact:nth-child(odd) { padding-left: 0; }
  .fact:nth-child(even) { border-left: 1px solid var(--line); }
  .section { padding: 72px 0; }
  .feature { gap: 32px; padding: 40px 0; }
  .feature-visual { padding: 20px; border-radius: 22px; }
  .why-grid { grid-template-columns: 1fr; }
  .why-item:nth-child(n) { padding: 26px 0; border-left: 0; }
  .hero-ctas .btn, .final-actions .btn { width: 100%; }
}
