/* Shared chrome for the public marketing pages (landing, pricing, about,
   privacidade). Design tokens, layout container, buttons, header/nav (incl. the
   mobile hamburger) and the footer used to be copy-pasted into each page — a
   footer or nav bug had to be fixed four times. Keep page-specific sections
   (hero, cards, tables, FAQ) in each page's own <style>.

   No build step (architecture invariant #7): plain hand-written CSS, served
   straight from /assets by express.static. Bump the ?v= on the <link> when you
   change this file — static assets cache hard. */

/* The brand palette lives in tokens.css (linked before this file). Only
   marketing-specific tokens stay here. */
:root {
  --teal: #0fae9e;
  --shadow: 0 4px 6px rgba(13,40,26,.04), 0 14px 32px rgba(13,40,26,.07);
  --radius: 16px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  color: var(--body);
  background: #fff;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -0.02em; }

.green { color: var(--green); }
.teal { color: var(--teal); }

/* ---------- layout container ----------
   `.wrap` is the page gutter. `.wrap.narrow` is for prose pages (about,
   privacidade) whose body copy reads better at a shorter measure — while their
   header/footer still span the full 1140px. */
.wrap { max-width: 1140px; margin: 0 auto; padding: 0 24px; }
.wrap.narrow { max-width: 920px; }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  font: inherit; font-weight: 700; font-size: 15px;
  padding: 13px 22px; border-radius: 13px; cursor: pointer;
  border: 1.5px solid transparent;
  transition: transform .12s ease, box-shadow .12s ease, background .12s ease;
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--green); color: #fff; box-shadow: 0 8px 18px rgba(22,179,100,.28); }
.btn-primary:hover { background: var(--green-600); }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { border-color: var(--green); color: var(--green-700); }
/* nav login: soft-green pill so it stands out from the plain ghost without competing with the solid CTA */
.btn-login { background: var(--green-soft); color: var(--green-700); border-color: rgba(22,179,100,.4); font-weight: 700; }
.btn-login:hover { background: #fff; border-color: var(--green); color: var(--green-700); }
.btn-sm { padding: 9px 16px; font-size: 14px; border-radius: 11px; }

/* ---------- header / nav ---------- */
header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.88); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.nav { display: flex; align-items: center; gap: 14px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; color: var(--ink); }
.logo-mark {
  width: 34px; height: 34px; border-radius: 50%;
  background: var(--green); display: grid; place-items: center; color: #fff;
  box-shadow: 0 4px 10px rgba(22,179,100,.35);
}
.nav-links { display: flex; gap: 6px; margin-left: 18px; }
.nav-links a { padding: 8px 14px; border-radius: 9px; font-weight: 600; font-size: 15px; color: var(--body); }
.nav-links a:hover { background: var(--green-tint); color: var(--green-700); }
.nav-links a.active { color: var(--green-700); background: var(--green-soft); }
.nav-spacer { flex: 1; }
.nav-cta { display: flex; gap: 10px; align-items: center; }
.menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; color: var(--ink); border-radius: 8px; }
.menu-btn:hover { background: var(--green-tint); }
.mobile-menu { display: none; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  /* "Entrar" (.btn-login) and any ghost CTA live in the hamburger menu on
     mobile — keeping them in the header crowds it out at 320px. */
  .nav-cta .btn-ghost, .nav-cta .btn-login { display: none; }
  .menu-btn { display: inline-flex; align-items: center; }
  /* Tap the hamburger to reveal the links that don't fit the mobile header. */
  .mobile-menu {
    position: absolute; top: 100%; left: 0; right: 0;
    flex-direction: column; padding: 6px 0;
    background: #fff; border-bottom: 1px solid var(--line);
    box-shadow: 0 14px 26px rgba(13,40,26,.12);
  }
  .mobile-menu.open { display: flex; }
  .mobile-menu a { padding: 14px 22px; font-weight: 600; font-size: 16px; color: var(--ink); }
  .mobile-menu a:hover, .mobile-menu a:active { background: var(--green-tint); color: var(--green-700); }
}

/* ---------- footer ---------- */
footer { border-top: 1px solid var(--line); padding: 40px 0; }
.foot { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.foot .muted { color: var(--muted); font-size: 13.5px; }
.foot-links { display: flex; gap: 18px; flex-wrap: wrap; row-gap: 10px; }
.foot-links a { font-size: 14px; font-weight: 600; color: var(--body); }
.foot-links a:hover { color: var(--green-700); }

/* ---------- phone gutter ----------
   More breathing room from the screen edges. Last in the file so it wins over
   the base `.wrap` padding above. Pages with a full-bleed element that needs a
   tighter gutter (e.g. pricing's .compare-wrap) override it locally. */
@media (max-width: 600px) {
  .wrap { padding-left: 28px; padding-right: 28px; }
  .nav { gap: 10px; }
}
