/* ============================================================================
   lemmamsn · home institucional
   Identidade alinhada com app.lemmamsn.com.br (Inter, sage greens, soft shadows).
   Carregado depois de _legal.css. Override de fonte/topbar/footer + componentes
   próprios da landing (hero, cards, coex, plataforma).
   ============================================================================ */

@import url("https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&display=swap");

:root {
  --home-max:       1120px;
  --content-max:    920px;
  --radius-card:    14px;
  --radius-soft:    10px;
  --shadow-card:    0 1px 2px rgb(15 23 42 / 0.04), 0 8px 24px rgb(15 23 42 / 0.04);
  --shadow-cta:     0 6px 18px rgb(94 130 40 / 0.18);

  --sage:           124 163 59;     /* #7CA33B — verde lemma */
  --sage-dark:      94 130 40;      /* #5E8228 */
  --lime:           181 203 63;     /* #B5CB3F — verde msn */
  --ink:            17 24 39;       /* #111827 */
  --ink-2:          55 65 81;       /* #374151 */
  --mute:           107 114 128;    /* #6B7280 */
  --line:           226 232 240;    /* #E2E8F0 */
  --warm:           250 250 247;    /* off-white */
}

/* sobrescreve o body do _legal.css ---------------------------------------- */
html, body {
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
  background: rgb(var(--warm));
  color: rgb(var(--ink));
  font-size: 16px;
  line-height: 1.55;
}

/* TOPBAR override (todas as páginas) ------------------------------------- */
.topbar {
  background: white;
  border-bottom: 1px solid rgb(var(--line));
  padding: 12px 0;
  position: sticky;
  top: 0;
  z-index: 50;
  backdrop-filter: saturate(160%) blur(6px);
}
.topbar-inner {
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 0 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 20px;
  color: rgb(var(--sage-dark));
  letter-spacing: -0.015em;
}
.brand::before { content: none; }        /* remove o quadradinho "L" do _legal */
.brand img.brand-mark {
  width: 44px;
  height: 44px;
  display: block;
}
.brand .brand-text { line-height: 1; }
.brand .brand-text .b1 { color: rgb(var(--sage-dark)); }
.brand .brand-text .b2 { color: rgb(var(--lime)); }
@media (max-width: 600px) {
  .brand { font-size: 17px; gap: 9px; }
  .brand img.brand-mark { width: 36px; height: 36px; }
}

.topbar-nav { display: flex; align-items: center; gap: 22px; font-size: 13.5px; }
.topbar-nav a {
  color: rgb(var(--mute));
  text-decoration: none;
  font-weight: 500;
  transition: color 0.15s ease;
}
.topbar-nav a:hover { color: rgb(var(--sage-dark)); }
.topbar-nav a.ativo { color: rgb(var(--sage-dark)); font-weight: 600; }

.topbar-nav .topbar-cta {
  background: rgb(var(--sage-dark));
  color: white !important;
  padding: 9px 16px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 13px;
  box-shadow: var(--shadow-cta);
  transition: transform 0.1s ease, background 0.15s ease;
}
.topbar-nav .topbar-cta:hover {
  background: rgb(var(--sage));
  transform: translateY(-1px);
}

/* MAIN width (só na home) ------------------------------------------------- */
body.home main {
  max-width: none;
  margin: 0;
  padding: 0;
}

/* HERO (layout B: lado a lado) ------------------------------------------- */
.hero {
  display: grid;
  grid-template-columns: 360px 1fr;
  gap: 48px;
  align-items: center;
  max-width: var(--home-max);
  margin: 0 auto;
  padding: 88px 28px 64px;
  text-align: left;
}
.hero-logo {
  width: 340px;
  height: auto;
  margin: 0;
  display: block;
}
.hero .hero-body { max-width: 580px; }
@media (max-width: 900px) {
  .hero {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 28px;
    padding: 56px 22px 44px;
  }
  .hero-logo { width: 280px; margin: 0 auto; }
}
.hero h1 {
  font-family: "Inter", sans-serif;
  font-weight: 800;
  font-size: 44px;
  line-height: 1.1;
  letter-spacing: -0.025em;
  color: rgb(var(--ink));
  margin: 0 0 18px;
}
.hero h1 .accent { color: rgb(var(--sage-dark)); }
.hero p.lead {
  font-size: 17.5px;
  line-height: 1.6;
  color: rgb(var(--ink-2));
  max-width: 640px;
  margin: 0 auto 32px;
}
.cta-row {
  display: flex;
  justify-content: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}
@media (max-width: 900px) {
  .cta-row { justify-content: center; }
}

/* Dropdown "Legal" no topbar -------------------------------------------- */
.nav-drop { position: relative; }
.nav-drop > button {
  background: none; border: none; font: inherit;
  color: rgb(var(--mute)); cursor: pointer; padding: 0;
  font-weight: 500; display: inline-flex; align-items: center; gap: 5px;
  transition: color 0.15s ease;
}
.nav-drop > button:hover,
.nav-drop:hover > button,
.nav-drop:focus-within > button { color: rgb(var(--sage-dark)); }
.nav-drop > button::after { content: "▾"; font-size: 10px; opacity: 0.7; }
.nav-drop .menu {
  position: absolute; top: 100%; right: 0; margin-top: 10px;
  background: white; border: 1px solid rgb(var(--line));
  border-radius: 12px; padding: 8px; min-width: 220px;
  box-shadow: 0 12px 32px rgb(15 23 42 / 0.08);
  display: none; flex-direction: column; gap: 2px;
}
.nav-drop:hover .menu,
.nav-drop:focus-within .menu { display: flex; }
.nav-drop .menu a {
  padding: 9px 12px; border-radius: 8px;
  color: rgb(var(--ink-2)); font-size: 13.5px; font-weight: 500;
  text-decoration: none; transition: background 0.12s ease;
}
.nav-drop .menu a:hover { background: rgb(var(--warm)); color: rgb(var(--sage-dark)); }

/* Status badge (em avaliação Meta) ------------------------------------- */
.status-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245, 158, 11, 0.1);
  color: rgb(146, 64, 14);
  border: 1px solid rgba(245, 158, 11, 0.3);
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 600;
  margin-bottom: 18px;
}
.status-badge::before {
  content: ""; width: 8px; height: 8px; border-radius: 50%;
  background: rgb(245, 158, 11);
  box-shadow: 0 0 0 3px rgba(245, 158, 11, 0.2);
}
@media (max-width: 900px) { .status-badge { margin-left: auto; margin-right: auto; } }

.coex-status {
  background: rgba(245, 158, 11, 0.08);
  border: 1px solid rgba(245, 158, 11, 0.28);
  border-left-width: 4px;
  border-radius: var(--radius-soft);
  padding: 14px 18px;
  margin: 22px 0 0;
  font-size: 13.5px;
  color: rgb(120, 53, 15);
  line-height: 1.6;
}
.coex-status strong { color: rgb(146, 64, 14); }
.btn-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 14.5px;
  text-decoration: none;
  border: 1px solid transparent;
  transition: transform 0.1s ease, background 0.15s ease, border-color 0.15s ease, box-shadow 0.2s ease;
}
.btn-cta.primary {
  background: rgb(var(--sage-dark));
  color: white;
  box-shadow: var(--shadow-cta);
}
.btn-cta.primary:hover {
  background: rgb(var(--sage));
  transform: translateY(-1px);
}
.btn-cta.ghost {
  background: white;
  color: rgb(var(--ink));
  border-color: rgb(var(--line));
}
.btn-cta.ghost:hover {
  border-color: rgb(var(--sage));
  color: rgb(var(--sage-dark));
}

/* SECTION genérica ------------------------------------------------------- */
.section {
  padding: 72px 28px;
}
.section-inner {
  max-width: var(--home-max);
  margin: 0 auto;
}
.section h2 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 30px;
  letter-spacing: -0.02em;
  color: rgb(var(--ink));
  margin: 0 0 12px;
}
.section .eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgb(var(--sage));
  margin-bottom: 14px;
  display: block;
}
.section .section-sub {
  font-size: 16px;
  color: rgb(var(--ink-2));
  max-width: 680px;
  margin: 0 0 40px;
  line-height: 1.6;
}
.section.alt {
  background: white;
  border-top: 1px solid rgb(var(--line));
  border-bottom: 1px solid rgb(var(--line));
}

/* CARDS ------------------------------------------------------------------ */
.cards {
  display: grid;
  gap: 18px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}
.card {
  background: white;
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius-card);
  padding: 26px;
  box-shadow: var(--shadow-card);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}
.card:hover {
  transform: translateY(-2px);
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04), 0 14px 32px rgb(15 23 42 / 0.06);
}
.card .ico {
  width: 44px;
  height: 44px;
  border-radius: 11px;
  background: rgb(var(--sage) / 0.12);
  color: rgb(var(--sage-dark));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  margin-bottom: 16px;
}
.card h3 {
  font-family: "Inter", sans-serif;
  font-size: 17px;
  font-weight: 700;
  margin: 0 0 8px;
  color: rgb(var(--ink));
  letter-spacing: -0.01em;
}
.card p {
  margin: 0;
  font-size: 14.5px;
  color: rgb(var(--ink-2));
  line-height: 1.6;
}

/* COEXISTÊNCIA (compacto, 1 visual + texto) ----------------------------- */
.coex {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: center;
  background: white;
  border: 1px solid rgb(var(--line));
  border-radius: 18px;
  padding: 36px;
  box-shadow: var(--shadow-card);
}
.coex-texto h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 22px;
  margin: 0 0 12px;
  color: rgb(var(--ink));
  letter-spacing: -0.01em;
}
.coex-texto p {
  font-size: 15px;
  color: rgb(var(--ink-2));
  line-height: 1.65;
  margin: 0 0 12px;
}
.coex-nota {
  font-size: 13.5px;
  color: rgb(var(--ink-2));
  background: rgb(var(--sage) / 0.06);
  border: 1px solid rgb(var(--sage) / 0.2);
  border-radius: var(--radius-soft);
  padding: 12px 14px;
  margin-top: 14px;
}
.coex-nota strong { color: rgb(var(--sage-dark)); }
.coex-visual {
  display: grid;
  grid-template-rows: auto auto auto;
  gap: 14px;
  text-align: center;
}
.coex-visual .nodo {
  background: rgb(var(--warm));
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius-card);
  padding: 20px;
}
.coex-visual .nodo .emoji { font-size: 28px; line-height: 1; margin-bottom: 8px; }
.coex-visual .nodo .lbl {
  font-weight: 700;
  font-size: 14px;
  color: rgb(var(--ink));
  letter-spacing: -0.01em;
}
.coex-visual .nodo .sub {
  font-size: 12.5px;
  color: rgb(var(--mute));
  margin-top: 3px;
}
.coex-visual .conector {
  text-align: center;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.16em;
  color: rgb(var(--sage));
  text-transform: uppercase;
  position: relative;
}
.coex-visual .conector::before,
.coex-visual .conector::after {
  content: "";
  display: block;
  position: absolute;
  left: 50%;
  width: 2px;
  height: 10px;
  background: rgb(var(--sage) / 0.4);
  transform: translateX(-50%);
}
.coex-visual .conector::before { top: -10px; }
.coex-visual .conector::after  { bottom: -10px; }

/* PERMISSÕES (lista discreta) ------------------------------------------- */
.permissoes {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}
.perm {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 22px;
  padding: 16px 20px;
  background: white;
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius-card);
}
.perm code {
  font-family: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 12.5px;
  color: rgb(var(--sage-dark));
  font-weight: 600;
  word-break: break-all;
  align-self: center;
}
.perm .why {
  font-size: 13.5px;
  color: rgb(var(--ink-2));
  line-height: 1.6;
}

/* PLATAFORMA (call-to-action grande) ----------------------------------- */
.plataforma {
  background: linear-gradient(135deg, rgb(var(--sage-dark)), rgb(var(--sage)));
  color: white;
  border-radius: 18px;
  padding: 44px 40px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 28px;
  box-shadow: 0 12px 32px rgb(94 130 40 / 0.22);
}
.plataforma h3 {
  font-family: "Inter", sans-serif;
  font-weight: 700;
  font-size: 24px;
  margin: 0 0 8px;
  color: white;
  letter-spacing: -0.01em;
}
.plataforma p {
  margin: 0;
  font-size: 15px;
  color: rgb(255 255 255 / 0.92);
  max-width: 540px;
  line-height: 1.6;
}
.plataforma .btn-cta {
  background: white;
  color: rgb(var(--sage-dark));
  box-shadow: 0 6px 18px rgb(0 0 0 / 0.12);
  border: none;
}
.plataforma .btn-cta:hover {
  background: rgb(var(--warm));
  color: rgb(var(--sage-dark));
  transform: translateY(-1px);
}

/* SOBRE ---------------------------------------------------------------- */
.sobre-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 18px;
  background: white;
  border: 1px solid rgb(var(--line));
  border-radius: var(--radius-card);
  padding: 28px;
  box-shadow: var(--shadow-card);
}
.sobre-grid .field { font-size: 14px; }
.sobre-grid .field .k {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: rgb(var(--mute));
  font-weight: 700;
  margin-bottom: 6px;
}
.sobre-grid .field .v { color: rgb(var(--ink-2)); line-height: 1.55; }
.sobre-grid .field a { color: rgb(var(--sage-dark)); text-decoration: none; font-weight: 500; }
.sobre-grid .field a:hover { color: rgb(var(--sage)); text-decoration: underline; }

/* FOOTER override ------------------------------------------------------ */
footer {
  background: white;
  border-top: 1px solid rgb(var(--line));
  padding: 32px 28px;
  color: rgb(var(--mute));
  font-size: 13px;
  text-align: center;
}
footer .links { margin-bottom: 10px; }
footer .links a {
  color: rgb(var(--mute));
  text-decoration: none;
  margin: 0 10px;
  font-weight: 500;
}
footer .links a:hover { color: rgb(var(--sage-dark)); }
footer .tagline {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.18em;
  color: rgb(var(--sage));
  margin-top: 14px;
}
footer .tagline .lime { color: rgb(var(--lime)); }

/* Mobile --------------------------------------------------------------- */
@media (max-width: 760px) {
  .topbar-inner { padding: 0 18px; gap: 10px; }
  .topbar-nav { gap: 14px; font-size: 12.5px; }
  .topbar-nav .topbar-cta { padding: 7px 12px; font-size: 12.5px; }

  .hero { padding: 48px 22px 40px; }
  .hero-logo { width: 132px; height: 132px; margin-bottom: 22px; }
  .hero h1 { font-size: 30px; }
  .hero p.lead { font-size: 15.5px; }

  .section { padding: 48px 22px; }
  .section h2 { font-size: 24px; }

  .coex { grid-template-columns: 1fr; padding: 24px; gap: 20px; }
  .perm { grid-template-columns: 1fr; gap: 6px; }
  .plataforma { grid-template-columns: 1fr; text-align: center; padding: 32px 24px; }
  .plataforma p { max-width: none; }
}
