:root {
  --ink: #0f172a;
  --muted: #475569;
  --bg: #ffffff;
  --bg-alt: #f1f5f9;
  --line: #e2e8f0;
  --brand: #16a34a;
  --brand-dark: #15803d;
  --accent: #dcfce7;
  --warn-bg: #fff7ed;
  --warn-line: #f97316;
  --neg: #dc2626;
  --radius: 14px;
  --shadow: 0 20px 40px -20px rgba(15, 23, 42, .35);
}

* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
}
a { color: inherit; }
h1, h2, h3, h4 { line-height: 1.2; }
h1 { font-size: clamp(2rem, 5vw, 3.2rem); letter-spacing: -.02em; }
h2 { font-size: clamp(1.6rem, 3.5vw, 2.3rem); margin-bottom: 1.5rem; letter-spacing: -.01em; }

.container { width: min(1120px, 100% - 32px); margin-inline: auto; }
.section { padding: 80px 0; }
.section--alt { background: var(--bg-alt); }
.eyebrow { color: var(--brand); font-weight: 700; font-size: .85rem; text-transform: uppercase; letter-spacing: .08em; margin-bottom: .5rem; }
.lead { font-size: 1.15rem; color: var(--muted); margin: 1rem 0 1.5rem; }
.hl { color: var(--brand); }

/* Botões */
.btn {
  display: inline-block; padding: .8rem 1.4rem; border-radius: 999px;
  background: var(--brand); color: #fff; font-weight: 700; text-decoration: none;
  transition: background .2s, transform .2s;
}
.btn:hover { background: var(--brand-dark); transform: translateY(-1px); }
.btn:focus-visible { outline: 3px solid var(--ink); outline-offset: 2px; }
.btn--big { padding: 1rem 1.8rem; font-size: 1.05rem; }
.btn--small { padding: .5rem 1rem; font-size: .9rem; }
.btn--ghost { background: transparent; color: var(--ink); border: 2px solid var(--line); }
.btn--ghost:hover { background: var(--bg-alt); }
.btn--light { background: #fff; color: var(--ink); }
.btn--light:hover { background: var(--accent); }

/* Barra beta */
.beta-bar {
  background: var(--warn-line); color: #fff; text-align: center;
  font-size: .9rem; padding: .5rem 16px;
}
.beta-bar strong { background: #fff; color: var(--warn-line); padding: 0 .4rem; border-radius: 4px; margin-right: .4rem; }
.beta-bar a { font-weight: 700; margin-left: .3rem; }

/* Navegação */
.nav { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: 64px; }
.nav__links { display: flex; gap: 1.5rem; }
.nav__links a { text-decoration: none; color: var(--muted); font-weight: 500; }
.nav__links a:hover { color: var(--ink); }

.logo { display: inline-flex; align-items: center; gap: .4rem; font-weight: 800; font-size: 1.3rem; text-decoration: none; }
.logo__mark { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; background: var(--ink); color: #22c55e; }
.logo__tag { font-size: .65rem; background: var(--warn-line); color: #fff; padding: .1rem .4rem; border-radius: 4px; text-transform: uppercase; }
.logo--light { color: #fff; }
.logo--light .logo__mark { background: var(--brand); color: #fff; }

/* Hero */
.hero { padding: 72px 0 88px; background: radial-gradient(circle at 85% 20%, var(--accent), transparent 45%); }
.hero__grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: center; }
.hero__cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero__note { margin-top: 1rem; font-size: .9rem; color: var(--muted); }

/* Mock de e-mail */
.mail { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); overflow: hidden; font-size: .92rem; }
.mail__bar { display: flex; gap: 6px; padding: 10px 14px; background: var(--bg-alt); }
.mail__bar span { width: 11px; height: 11px; border-radius: 50%; background: #cbd5e1; }
.mail__head { padding: 14px 18px; border-bottom: 1px solid var(--line); color: var(--muted); }
.mail__head b { color: var(--ink); }
.mail__body { padding: 18px; }
.mail__hello { font-weight: 600; margin-bottom: .8rem; }
.mail__row { display: flex; justify-content: space-between; padding: .45rem 0; border-bottom: 1px dashed var(--line); }
.mail__tx { margin: .8rem 0; padding: .6rem .8rem; background: var(--bg-alt); border-radius: 8px; color: var(--muted); }
.mail__tx p { display: flex; justify-content: space-between; }
.mail__tip { font-size: .85rem; background: var(--accent); padding: .6rem .8rem; border-radius: 8px; }
.pos { color: var(--brand); }
.neg { color: var(--neg); }

/* Selos */
.trust { border-block: 1px solid var(--line); padding: 28px 0; }
.trust__inner { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.trust__item { display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem; color: var(--muted); font-size: .9rem; }
.trust__name { color: var(--ink); font-size: 1.05rem; }
.of-logo { height: 36px; width: auto; }

/* Diagrama */
.flow { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 1rem; counter-reset: step; }
.flow__step {
  position: relative; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .3rem;
  padding: 1.5rem 1rem; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  counter-increment: step;
}
.flow__step::before {
  content: counter(step); position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; font-weight: 700; display: grid; place-items: center;
}
.flow__step:not(:last-child)::after {
  content: "→"; position: absolute; right: -1rem; top: 50%; transform: translate(50%, -50%);
  color: var(--brand); font-weight: 800; font-size: 1.3rem;
}
.flow__step span:last-child { color: var(--muted); font-size: .9rem; }
.flow__step--loop, .flow__step--loop + .flow__step { border-color: var(--brand); background: var(--accent); }
.flow__icon { font-size: 2rem; }
.flow__loop-note { margin-top: 1.2rem; text-align: center; color: var(--muted); }

/* Cards */
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.2rem; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card h3 { margin-bottom: .5rem; }
.card p { color: var(--muted); }
.prompt { margin-top: 2rem; padding: 1.5rem; border-left: 4px solid var(--brand); background: #fff; border-radius: 0 var(--radius) var(--radius) 0; }
.prompt__label { font-size: .85rem; color: var(--muted); }
.prompt__text { font-size: 1.2rem; font-weight: 600; }

/* Privacidade */
.privacy { display: grid; grid-template-columns: 1.2fr 1fr; gap: 3rem; align-items: center; }
.checks { list-style: none; padding: 0; display: grid; gap: .8rem; }
.checks li { padding: .9rem 1rem .9rem 2.8rem; background: var(--bg-alt); border-radius: 10px; position: relative; font-weight: 500; }
.checks li::before { content: "✓"; position: absolute; left: 1rem; color: var(--brand); font-weight: 800; }

/* Preços */
small { font-size: .45em; color: var(--muted); font-weight: 500; }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; }
.plan { position: relative; text-align: center; background: #fff; border: 1px dashed var(--line); border-radius: var(--radius); padding: 1.8rem 1rem 1.2rem; opacity: .85; }
.plan--active { border: 2px solid var(--brand); opacity: 1; box-shadow: var(--shadow); }
.plan__desc { color: var(--muted); margin: .3rem 0 1rem; }
.badge.badge--active { background: var(--accent); color: var(--brand-dark); }
.plan__price { font-size: 1.8rem; font-weight: 800; }
.badge { position: absolute; top: .6rem; right: .6rem; font-size: .7rem; text-transform: uppercase; background: var(--bg-alt); padding: .1rem .5rem; border-radius: 999px; color: var(--muted); }

/* Aviso beta */
.warning { background: var(--warn-bg); border: 2px solid var(--warn-line); border-radius: var(--radius); padding: 2rem; }
.warning h2 { margin-bottom: .8rem; }
.warning ul { margin-top: .8rem; display: grid; gap: .4rem; }

/* FAQ */
.faq { max-width: 760px; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 1rem 1.2rem; margin-bottom: .7rem; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { margin-top: .6rem; color: var(--muted); }

/* CTA final */
.cta-final { background: var(--ink); color: #fff; text-align: center; padding: 80px 0; }
.cta-final h2 { margin-bottom: .6rem; }
.cta-final p { color: #cbd5e1; margin-bottom: 1.8rem; }

/* Rodapé */
.footer { background: #020617; color: #94a3b8; padding: 48px 0 32px; font-size: .9rem; }
.footer__top { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 1rem; margin-bottom: 1.5rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 1.2rem; }
.footer__links a { text-decoration: none; }
.footer__links a:hover { color: #fff; }
.footer__legal { border-top: 1px solid #1e293b; padding-top: 1.5rem; margin-bottom: 1rem; }
.footer__legal strong { color: #e2e8f0; }

/* Responsivo */
@media (max-width: 900px) {
  .hero__grid, .privacy { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 1.6rem; }
  .flow__step:not(:last-child)::after { content: "↓"; right: 50%; top: auto; bottom: -1.6rem; transform: translateX(50%); }
  .cards, .plans, .trust__inner { grid-template-columns: 1fr; }
  .nav__links { display: none; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .btn { transition: none; }
}

/* Páginas legais */
.legal { max-width: 760px; padding: 56px 0 80px; }
.legal h1 { font-size: clamp(1.8rem, 4vw, 2.4rem); }
.legal h2 { font-size: 1.25rem; margin: 2rem 0 .6rem; }
.legal p, .legal ul { margin-bottom: .8rem; }
.legal ul { padding-left: 1.2rem; display: grid; gap: .4rem; }
.legal a { color: var(--brand-dark); }
.legal__date { color: var(--muted); font-size: .9rem; margin-bottom: 1.5rem; }
.legal__summary { background: var(--accent); padding: 1rem 1.2rem; border-radius: 10px; font-weight: 500; }

/* Banner de cookies */
.cookie { position: fixed; inset: auto 0 0 0; z-index: 100; padding: 16px; }
.cookie[hidden] { display: none; }
.cookie__box { max-width: 560px; margin-inline: auto; background: #fff; border-radius: var(--radius); padding: 1.4rem; box-shadow: var(--shadow); border: 1px solid var(--line); }
.cookie__title { font-weight: 800; margin-bottom: .4rem; }
.cookie__box a:not(.btn) { color: var(--brand-dark); }
.cookie__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: 1rem; }
button.btn { border: 0; cursor: pointer; font: inherit; font-weight: 700; }

/* Interesse em planos */
.plan .btn { margin-top: 1rem; }
.plan .btn--ghost { border-color: var(--brand); color: var(--brand-dark); }
.toast {
  position: fixed; top: 24px; left: 50%; transform: translateX(-50%); z-index: 110;
  width: max-content; max-width: calc(100% - 32px);
  background: var(--ink); color: #fff; padding: .9rem 1.2rem; border-radius: 10px; box-shadow: var(--shadow); font-weight: 500;
}
.toast[hidden] { display: none; }
