/* GreenFlow — estilos compartilhados entre a landing e a página de resultados. */

:root {
  --ground:      #0E0E10;
  --surface:     #17171B;
  --surface-2:   #1F1F24;
  --line:        #2A2A31;

  --ink:         #F2F4F2;
  --ink-mid:     #A8AFAA;
  --ink-dim:     #767D78;

  --green:       #00B37E;
  --green-deep:  #00875F;
  --lime:        #7DD957;
  --green-wash:  rgba(0, 179, 126, 0.09);
  --green-edge:  rgba(0, 179, 126, 0.30);

  --red:         #F75A68;
  --red-wash:    rgba(247, 90, 104, 0.10);
  --amber:       #FBA94C;

  --display: "Chivo", "Helvetica Neue", Arial, sans-serif;
  --body:    "Karla", "Segoe UI", system-ui, sans-serif;

  --pad: clamp(20px, 5vw, 32px);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--ground);
  color: var(--ink);
  font-family: var(--body);
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

.shell { max-width: 1080px; margin: 0 auto; padding-inline: var(--pad); }
.shell-wide { max-width: 1240px; margin: 0 auto; padding-inline: var(--pad); }

a { color: var(--green); }
a:focus-visible, button:focus-visible, select:focus-visible, summary:focus-visible {
  outline: 2px solid var(--lime); outline-offset: 3px; border-radius: 4px;
}

h1, h2, h3 {
  font-family: var(--display); font-weight: 900; line-height: 1.08;
  letter-spacing: -0.02em; text-wrap: balance; margin: 0;
}

.eyebrow {
  font-size: 12px; font-weight: 700; text-transform: uppercase;
  letter-spacing: 0.16em; color: var(--green); margin: 0 0 14px;
}

.num { font-variant-numeric: tabular-nums; }

/* ---------- Botões ---------- */
.cta {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  background: var(--green-deep); color: #fff; text-decoration: none;
  font-family: var(--display); font-weight: 700; font-size: 17px;
  padding: 16px 30px; border-radius: 10px; border: 1px solid var(--green);
  transition: background .16s ease, transform .16s ease; cursor: pointer;
}
.cta:hover { background: var(--green); transform: translateY(-1px); }
.cta-ghost { background: transparent; color: var(--ink); border: 1px solid var(--line); }
.cta-ghost:hover { background: var(--surface-2); border-color: var(--green-edge); }

/* ---------- Barra do topo ---------- */
header.bar {
  border-bottom: 1px solid var(--line);
  position: sticky; top: 0; z-index: 20;
  background: rgba(14,14,16,0.92); backdrop-filter: blur(8px);
}
.bar-in { display: flex; align-items: center; justify-content: space-between; padding-block: 14px; gap: 16px; }
.bar-in img { height: 30px; width: auto; }
.bar-nav { display: flex; align-items: center; gap: 10px; }
.bar-link {
  color: var(--ink); text-decoration: none; font-weight: 700; font-size: 15px;
  padding: 9px 18px; border: 1px solid var(--line); border-radius: 8px; white-space: nowrap;
}
.bar-link:hover { border-color: var(--green-edge); background: var(--surface-2); }
.bar-link.solid { background: var(--green-deep); border-color: var(--green); color: #fff; }
.bar-link.solid:hover { background: var(--green); }
@media (max-width: 560px) { .bar-link.hide-sm { display: none; } }

/* ---------- Seções ---------- */
section { padding-block: clamp(56px, 9vw, 96px); }
section + section { border-top: 1px solid var(--line); }
h2 { font-size: clamp(1.85rem, 4.6vw, 2.6rem); }
.lede { color: var(--ink-mid); max-width: 58ch; margin: 18px 0 0; font-size: 1.06rem; }

/* ---------- Grade de KPI ---------- */
.kpis {
  display: grid; grid-template-columns: repeat(2, 1fr);
  gap: 1px; background: var(--line);
  border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
}
@media (min-width: 760px) { .kpis.four { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 760px) { .kpis.three { grid-template-columns: repeat(3, 1fr); } }
.kpi { background: var(--surface); padding: 22px 20px; }
.kpi .v {
  display: block; font-family: var(--display); font-weight: 900;
  font-size: clamp(1.6rem, 4.4vw, 2.2rem); letter-spacing: -0.03em;
  font-variant-numeric: tabular-nums; line-height: 1;
}
.kpi .v.up { color: var(--green); }
.kpi .v.down { color: var(--red); }
.kpi .l { display: block; font-size: 13px; color: var(--ink-dim); margin-top: 9px; }

/* ---------- Cartões ---------- */
.card {
  background: var(--surface); border: 1px solid var(--line);
  border-radius: 14px; padding: 26px;
}
.card h3 { font-size: 1.16rem; font-weight: 700; margin-bottom: 14px; }

.rowlist { display: flex; flex-direction: column; margin: 0; padding: 0; list-style: none; }
.rowlist li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 16px;
  padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 15px;
}
.rowlist li:last-child { border-bottom: none; }
.rowlist .k { color: var(--ink-mid); }
.rowlist .v { font-family: var(--display); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.rowlist .v.up { color: var(--green); }
.rowlist .v.down { color: var(--red); }

/* ---------- Rodapé ---------- */
footer {
  border-top: 1px solid var(--line); padding-block: 40px 52px;
  color: var(--ink-dim); font-size: 14px;
}
.foot-top { display: flex; flex-wrap: wrap; gap: 20px; justify-content: space-between; align-items: center; margin-bottom: 26px; }
.foot-top img { height: 26px; width: auto; opacity: .85; }
.age {
  display: inline-flex; align-items: center; gap: 9px;
  border: 1px solid var(--line); border-radius: 100px; padding: 6px 15px;
  font-weight: 700; color: var(--ink-mid); font-size: 13px;
}
.age b { color: var(--ink); }
footer p { max-width: 76ch; margin: 0 0 12px; line-height: 1.55; }

/* ---------- Estado de carregamento ---------- */
.loading { color: var(--ink-dim); }
[data-live] { transition: opacity .2s ease; }
.is-loading [data-live] { opacity: .45; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
