/* Páginas públicas e da conta do cliente (fora do mapa). Tokens do design system Tech Money. */
:root {
  --bg: #f8fafc; --surface: #ffffff; --surface-2: #f1f5f9;
  --border: rgba(15, 23, 42, 0.12); --border-strong: rgba(15, 23, 42, 0.22);
  --text: #0f172a; --text-2: #334155; --muted: #64748b;
  --emerald: #047857; --emerald-dim: rgba(4, 120, 87, 0.09); --rose: #be123c; --amber: #b45309;
  --sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --display: 'Space Grotesk', var(--sans);
  --mono: 'JetBrains Mono', ui-monospace, monospace;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #080b14; --surface: #0f1522; --surface-2: #161e2e; --border: rgba(226, 232, 240, 0.12); --border-strong: rgba(226, 232, 240, 0.24);
    --text: #f1f5f9; --text-2: #cbd5e1; --muted: #94a3b8; --emerald: #34d399; --emerald-dim: rgba(52, 211, 153, 0.12); --rose: #fb7185; --amber: #fbbf24;
  }
}
* { box-sizing: border-box; margin: 0; padding: 0; }
body { background: var(--bg); color: var(--text); font: 16px/1.6 var(--sans); -webkit-font-smoothing: antialiased; }
a { color: var(--emerald); font-weight: 600; }
.topo { max-width: 1080px; margin: 0 auto; padding: 18px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.marca { font: 700 1.15rem var(--display); letter-spacing: -0.02em; color: var(--text); text-decoration: none; white-space: nowrap; }
.marca { display: inline-flex; align-items: center; }
.marca img { display: block; height: 48px; width: auto; }
.marca span { font: 700 0.62rem var(--sans); color: var(--emerald); background: var(--emerald-dim); border-radius: 4px; padding: 2px 6px; margin-left: 6px; letter-spacing: 0.08em; vertical-align: middle; }
.topo nav { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; justify-content: flex-end; }
.topo nav a { font-size: 0.9rem; color: var(--text-2); text-decoration: none; }
.topo nav a.botao { color: #fff; }
main { max-width: 1080px; margin: 0 auto; padding: 8px 16px 56px; }
main.estreito { max-width: 560px; }
main.medio { max-width: 820px; }
h1 { font: 700 clamp(1.7rem, 4.5vw, 2.6rem)/1.15 var(--display); letter-spacing: -0.02em; margin: 16px 0 10px; }
h2 { font: 700 1.25rem var(--display); margin: 32px 0 10px; letter-spacing: -0.01em; }
h3 { font: 700 1.02rem var(--display); margin: 0 0 6px; }
.lead { color: var(--text-2); max-width: 64ch; font-size: 1.05rem; }
.cartao { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 22px; }
.cartao + .cartao { margin-top: 16px; }
.grade { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 18px; }
.campo { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.campo label { font-weight: 600; font-size: 0.92rem; }
.dica { font-size: 0.82rem; color: var(--muted); }
input[type=text], input[type=email], input[type=tel], input[type=number], select {
  font: inherit; color: var(--text); background: var(--surface); border: 1px solid var(--border-strong); border-radius: 10px; padding: 10px 12px; width: 100%;
}
input:focus, select:focus { outline: none; border-color: var(--emerald); box-shadow: 0 0 0 3px var(--emerald-dim); }
.codigo-campo { font: 700 1.6rem var(--mono); letter-spacing: 0.4em; text-align: center; }
.opcao { display: flex; gap: 10px; align-items: flex-start; font-size: 0.9rem; color: var(--text-2); cursor: pointer; }
.opcao input { margin-top: 4px; accent-color: var(--emerald); width: 18px; height: 18px; flex: none; }
.botao { display: inline-block; font: 700 1rem var(--sans); color: #fff; background: #047857; border: 0; border-radius: 999px; padding: 12px 26px; cursor: pointer; text-decoration: none; text-align: center; }
.botao:disabled { opacity: 0.6; cursor: wait; }
.botao.sec { background: transparent; color: var(--emerald); border: 1px solid var(--emerald); }
.botao.peq { padding: 7px 14px; font-size: 0.86rem; }
.botao.perigo { background: transparent; color: var(--rose); border: 1px solid var(--rose); }
.largo { width: 100%; }
.erro { color: var(--rose); font-weight: 600; margin: 10px 0; }
.ok { color: var(--emerald); font-weight: 600; margin: 10px 0; }
.aviso { background: rgba(180, 83, 9, 0.1); border: 1px solid rgba(180, 83, 9, 0.35); color: var(--text); border-radius: 12px; padding: 12px 14px; margin: 12px 0; }
.escondido { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.abas { display: flex; gap: 6px; background: var(--surface-2); border-radius: 999px; padding: 4px; margin: 18px 0; }
.abas button { flex: 1; font: 600 0.92rem var(--sans); border: 0; border-radius: 999px; padding: 9px; background: transparent; color: var(--text-2); cursor: pointer; }
.abas button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
/* planos */
.plano { display: flex; flex-direction: column; gap: 10px; position: relative; }
.plano.destaque { border: 2px solid var(--emerald); }
.plano .selo { position: absolute; top: -12px; left: 20px; background: #047857; color: #fff; font: 700 0.72rem var(--sans); padding: 3px 10px; border-radius: 999px; letter-spacing: 0.04em; }
.preco { font: 700 2rem var(--display); letter-spacing: -0.02em; }
.preco small { font: 500 0.9rem var(--sans); color: var(--muted); }
.plano ul { list-style: none; display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; color: var(--text-2); flex: 1; }
.plano li::before { content: '✓'; color: var(--emerald); font-weight: 700; margin-right: 8px; }
.plano li.nao { color: var(--muted); }
.plano li.nao::before { content: '–'; color: var(--muted); }
.ciclo { display: inline-flex; gap: 4px; background: var(--surface-2); border-radius: 999px; padding: 4px; margin-top: 8px; }
.ciclo button { font: 600 0.86rem var(--sans); border: 0; border-radius: 999px; padding: 7px 14px; background: transparent; color: var(--text-2); cursor: pointer; }
.ciclo button[aria-pressed="true"] { background: var(--surface); color: var(--text); box-shadow: 0 1px 3px rgba(15, 23, 42, 0.12); }
.recursos { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); margin-top: 18px; }
.recursos .cartao p { font-size: 0.9rem; color: var(--text-2); }
.hero { padding: 28px 0 8px; }
.hero .acoes { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 20px; }
/* tabelas */
.tabela { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.tabela th { text-align: left; font-size: 0.78rem; color: var(--muted); font-weight: 600; text-transform: uppercase; letter-spacing: 0.04em; border-bottom: 1px solid var(--border); padding: 8px 6px; }
.tabela td { padding: 9px 6px; border-bottom: 1px solid var(--border); vertical-align: top; }
.rolar { overflow-x: auto; }
.etiqueta { display: inline-block; font: 700 0.72rem var(--sans); padding: 2px 8px; border-radius: 999px; background: var(--surface-2); color: var(--text-2); }
.etiqueta.verde { background: var(--emerald-dim); color: var(--emerald); }
.etiqueta.vermelha { background: rgba(190, 18, 60, 0.1); color: var(--rose); }
.etiqueta.ambar { background: rgba(180, 83, 9, 0.12); color: var(--amber); }
.linha { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.texto p, .texto li { color: var(--text-2); margin-bottom: 10px; max-width: 72ch; }
.texto ul, .texto ol { padding-left: 22px; }
.mono { font-family: var(--mono); font-size: 0.88em; }
footer { max-width: 1080px; margin: 0 auto; padding: 0 16px 32px; font-size: 0.82rem; color: var(--muted); }
footer a { font-weight: 500; }
@media (max-width: 600px) { .cartao { padding: 18px; } .topo nav a.opcional { display: none; } }
/* cartões lado a lado numa grade: sem o espaço de cima usado quando ficam empilhados */
.grade > .cartao + .cartao, .recursos > .cartao + .cartao, .kpis > .cartao + .cartao { margin-top: 0; }
a.cartao { display: flex; flex-direction: column; text-decoration: none; color: inherit; font-weight: inherit; transition: border-color .15s; }
a.cartao:hover { border-color: var(--emerald); }
a.cartao .dica { font-weight: 400; }
a.cartao .ir { margin-top: auto; padding-top: 12px; color: var(--emerald); font-weight: 600; font-size: .92rem; }

/* Balões dos mapas (clique numa fazenda ou visita): legíveis no tema claro e no escuro */
.maplibregl-map .maplibregl-popup-content { background: var(--surface); color: var(--text); border: 1px solid var(--border-strong, rgba(127, 127, 127, .3)); border-radius: 12px; padding: 10px 26px 10px 14px; font: .84rem/1.45 var(--sans); box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .55); }
.maplibregl-map .maplibregl-popup-content b, .maplibregl-map .maplibregl-popup-content strong { color: var(--text); }
.maplibregl-map .maplibregl-popup-content span, .maplibregl-map .maplibregl-popup-content small { color: var(--text-2); }
.maplibregl-map .maplibregl-popup-content a { color: var(--emerald); font-weight: 700; }
.maplibregl-map .maplibregl-popup-close-button { color: var(--muted); font-size: 18px; width: 26px; height: 26px; border-radius: 8px; }
.maplibregl-map .maplibregl-popup-close-button:hover { background: var(--surface-2); color: var(--text); }
.maplibregl-map .maplibregl-popup-anchor-bottom .maplibregl-popup-tip, .maplibregl-map .maplibregl-popup-anchor-bottom-left .maplibregl-popup-tip, .maplibregl-map .maplibregl-popup-anchor-bottom-right .maplibregl-popup-tip { border-top-color: var(--surface); }
.maplibregl-map .maplibregl-popup-anchor-top .maplibregl-popup-tip, .maplibregl-map .maplibregl-popup-anchor-top-left .maplibregl-popup-tip, .maplibregl-map .maplibregl-popup-anchor-top-right .maplibregl-popup-tip { border-bottom-color: var(--surface); }
.maplibregl-map .maplibregl-popup-anchor-left .maplibregl-popup-tip { border-right-color: var(--surface); }
.maplibregl-map .maplibregl-popup-anchor-right .maplibregl-popup-tip { border-left-color: var(--surface); }
