/* ============================================================
   Agência EME — Home (light SaaS) · paleta mono + azul
   ============================================================ */

:root {
  --bg:        #ffffff;
  --bg-soft:   #f6f7f9;
  --bg-soft-2: #f0f2f6;
  --ink:       #0e0f12;
  --ink-2:     #1d2129;
  --muted:     #5a626e;
  --muted-2:   #8a92a0;
  --line:      #e8ebf0;
  --line-2:    #eceef2;

  --accent:    #2d5bff;
  --accent-d:  #1f47d6;
  --accent-sb: #eef2ff;   /* azul muito claro p/ chips */

  --radius:    16px;
  --radius-lg: 24px;
  --radius-xl: 30px;

  --shadow-sm: 0 2px 8px rgba(16, 24, 40, .04);
  --shadow:    0 14px 40px -18px rgba(16, 24, 40, .18);
  --shadow-lg: 0 30px 70px -28px rgba(16, 24, 40, .28);

  --maxw: 1140px;
  --font: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink-2);
  background: var(--bg);
  line-height: 1.6;
  letter-spacing: -.01em;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

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

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* Skip link (acessibilidade) */
.skip-link {
  position: absolute;
  left: 16px; top: -60px;
  z-index: 200;
  background: var(--accent);
  color: #fff;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 10px;
  transition: top .2s ease;
}
.skip-link:focus { top: 16px; outline: 2px solid #fff; outline-offset: 2px; }

.section { padding: 96px 0; }
.section--tight { padding: 40px 0 96px; }

/* ---------- Tipografia de seção ---------- */
.eyebrow {
  display: inline-block;
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.section-title {
  font-size: clamp(1.7rem, 3.2vw, 2.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -.03em;
  color: var(--ink);
  margin: 0;
}
.section-head { margin-bottom: 56px; }
.section-head--center { text-align: center; max-width: 680px; margin-inline: auto; }
.lead { font-size: 1.1rem; color: var(--muted); }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-weight: 600;
  font-size: .96rem;
  letter-spacing: -.01em;
  padding: 11px 20px;
  border-radius: 12px;
  border: 1px solid transparent;
  cursor: pointer;
  transition: transform .15s ease, background .2s ease, box-shadow .2s ease, color .2s ease, border-color .2s ease;
}
.btn--lg { padding: 14px 26px; font-size: 1rem; }
.btn--solid {
  background: var(--accent);
  color: #fff;
  box-shadow: 0 10px 22px -10px rgba(45, 91, 255, .6);
}
.btn--solid:hover { background: var(--accent-d); transform: translateY(-2px); box-shadow: 0 16px 30px -12px rgba(45, 91, 255, .6); }
.btn--ghost {
  background: #fff;
  border-color: var(--line);
  color: var(--ink);
  box-shadow: var(--shadow-sm);
}
.btn--ghost:hover { border-color: var(--accent); color: var(--accent); transform: translateY(-2px); }
.btn--light {
  background: #fff;
  color: var(--ink);
}
.btn--light:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ============================================================
   HEADER
   ============================================================ */
.header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .8);
  backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line-2);
}
.header__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 70px;
}
.logo__img { height: 26px; width: auto; }
.footer__logo { height: 24px; width: auto; }

.nav { display: flex; align-items: center; gap: 36px; }
.nav__list { display: flex; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav__list a {
  color: var(--muted);
  font-weight: 500;
  font-size: .95rem;
  transition: color .2s ease;
}
.nav__list a:hover { color: var(--ink); }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none; border: 0; cursor: pointer; padding: 8px;
}
.nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: transform .25s ease, opacity .2s ease; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  overflow: hidden;
  background:
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 60%);
  padding: 84px 0 92px;
}
.hero__glow {
  position: absolute;
  top: -180px; right: -120px;
  width: 620px; height: 620px;
  background: radial-gradient(circle at center, rgba(45, 91, 255, .14), transparent 62%);
  filter: blur(10px);
  pointer-events: none;
}
.hero__inner {
  position: relative;
  display: grid;
  grid-template-columns: 1.05fr .95fr;
  gap: 56px;
  align-items: center;
}
.pill {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: .85rem;
  font-weight: 600;
  color: var(--ink-2);
  background: #fff;
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  padding: 7px 15px 7px 12px;
  border-radius: 999px;
  margin-bottom: 26px;
  max-width: 100%;
  text-align: left;
}
.pill__dot {
  flex-shrink: 0;
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 0 4px rgba(45, 91, 255, .15);
}
.hero__title {
  font-size: clamp(2.1rem, 4.6vw, 3.4rem);
  font-weight: 800;
  line-height: 1.08;
  letter-spacing: -.035em;
  color: var(--ink);
  margin: 0 0 22px;
  overflow-wrap: break-word;
}
.hl { color: var(--accent); }
.hero__subtitle {
  font-size: clamp(1.05rem, 1.5vw, 1.18rem);
  color: var(--muted);
  margin: 0 0 32px;
  max-width: 540px;
}
.hero__actions { display: flex; flex-wrap: wrap; gap: 14px; }

/* Chamado para o público secundário (Pix & Pagamentos) */
.hero__switch {
  display: flex;
  align-items: center;
  gap: 14px;
  margin: 0 0 28px;
  padding: 14px 18px;
  max-width: 540px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 3px solid var(--accent);
  border-radius: 14px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.hero__switch:hover { transform: translateY(-2px); box-shadow: var(--shadow); border-color: #c9d6ff; border-left-color: var(--accent); }
.hero__switch__icon {
  flex-shrink: 0;
  width: 38px; height: 38px;
  border-radius: 10px;
  display: grid; place-items: center;
  background: var(--accent-sb);
  color: var(--accent);
}
.hero__switch__icon svg { width: 19px; height: 19px; }
.hero__switch__text { font-size: .92rem; color: var(--muted); line-height: 1.45; }
.hero__switch__text strong { display: block; color: var(--ink); font-weight: 700; font-size: .98rem; }
.hero__switch__arrow {
  margin-left: auto;
  flex-shrink: 0;
  color: var(--accent);
  font-weight: 700;
  font-size: 1.2rem;
  transition: transform .2s ease;
}
.hero__switch:hover .hero__switch__arrow { transform: translateX(4px); }

/* Hero mockup (clean light card) */
.hero__media { position: relative; }
.ui-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.ui-card__head {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line-2);
  background: var(--bg-soft);
}
.ui-card__dots { display: flex; gap: 6px; }
.ui-card__dots span { width: 10px; height: 10px; border-radius: 50%; background: #d6dae2; }
.ui-card__dots span:first-child { background: #ff6157; }
.ui-card__dots span:nth-child(2) { background: #ffbd2e; }
.ui-card__dots span:nth-child(3) { background: #28c840; }
.ui-card__title { font-size: .85rem; font-weight: 600; color: var(--muted); }
.ui-card__body { padding: 22px; }

.ui-stats { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.ui-stat {
  background: var(--bg-soft);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  padding: 14px 16px;
}
.ui-stat__label { display: block; font-size: .78rem; color: var(--muted-2); margin-bottom: 4px; }
.ui-stat__value { font-size: 1.5rem; font-weight: 800; color: var(--ink); letter-spacing: -.02em; }
.ui-stat__trend { display: inline-block; font-size: .76rem; font-weight: 700; margin-left: 6px; }
.ui-stat__trend--up { color: #15a36a; }
.ui-stat__trend--down { color: #15a36a; }

.ui-chart { height: 100px; margin-bottom: 16px; }
.ui-chart svg { width: 100%; height: 100%; }

.ui-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ui-list li {
  display: flex; align-items: center; gap: 10px;
  font-size: .9rem; font-weight: 500; color: var(--ink-2);
  padding: 9px 12px;
  background: var(--bg-soft);
  border-radius: 10px;
}
.ui-list__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--accent); }
.ui-tag {
  margin-left: auto;
  font-style: normal;
  font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  padding: 3px 9px; border-radius: 999px;
}
.ui-tag--ok { background: rgba(21, 163, 106, .12); color: #0f7a4e; }
.ui-tag--live { background: var(--accent-sb); color: var(--accent-d); }

.ui-badge {
  position: absolute;
  left: -18px; bottom: -16px;
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--ink);
  color: #fff;
  font-size: .82rem; font-weight: 600;
  padding: 10px 16px;
  border-radius: 12px;
  box-shadow: var(--shadow);
}
.ui-badge svg { width: 16px; height: 16px; color: #6fe3a8; }

/* ============================================================
   DIFERENCIAIS (light)
   ============================================================ */
.diferenciais { background: var(--bg); }
.cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 30px;
  display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease, border-color .2s ease;
}
.card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #dfe4ee; }
.card__icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: grid; place-items: center;
  background: var(--accent-sb);
  color: var(--accent);
  margin-bottom: 22px;
}
.card__icon svg { width: 25px; height: 25px; }
.card__title { font-size: 1.18rem; font-weight: 700; color: var(--ink); margin: 0 0 12px; line-height: 1.3; letter-spacing: -.02em; }
.card__text { color: var(--muted); margin: 0 0 22px; flex: 1; }

.link-cta {
  font-weight: 600; font-size: .94rem;
  color: var(--accent);
  display: inline-flex; align-items: center; gap: 6px;
  transition: gap .2s ease;
}
.link-cta:hover { gap: 11px; }

/* ============================================================
   SETOR (soft bg)
   ============================================================ */
.setor { background: var(--bg-soft); }
.setor__inner {
  display: grid; grid-template-columns: 1.05fr .95fr; gap: 64px; align-items: center;
}
.setor__content .lead { margin: 18px 0 28px; }
.feature-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; }
.feature-list li {
  position: relative;
  padding-left: 36px;
  font-weight: 500;
  color: var(--ink-2);
}
.feature-list li::before {
  content: "";
  position: absolute;
  left: 0; top: 1px;
  width: 22px; height: 22px;
  border-radius: 7px;
  background: var(--accent) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='13' height='13' viewBox='0 0 24 24' fill='none' stroke='%23ffffff' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
}

.glass-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
  box-shadow: var(--shadow);
}
.glass-card__row {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 16px;
  border-radius: 14px;
  font-weight: 600; color: var(--ink-2);
  transition: background .2s ease;
}
.glass-card__row + .glass-card__row { margin-top: 2px; }
.glass-card__row:hover { background: var(--bg-soft); }
.glass-card__ico { font-size: 1.1rem; }
.glass-card__row--accent { background: var(--accent-sb); color: var(--accent-d); }
.glass-card__row--accent:hover { background: var(--accent-sb); }
.glass-card__row em {
  margin-left: auto; font-style: normal;
  font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em;
  background: var(--accent); color: #fff;
  padding: 3px 9px; border-radius: 999px;
}

/* ============================================================
   PAGAMENTOS & INTEGRAÇÕES (abertura outros setores)
   ============================================================ */
.pagamentos {
  background:
    radial-gradient(700px 300px at 50% -10%, rgba(45, 91, 255, .10), transparent 60%),
    var(--accent-sb);
  border-top: 1px solid #e3e9ff;
  border-bottom: 1px solid #e3e9ff;
}
.pag-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
  margin-bottom: 40px;
}
.pag-card {
  background: rgba(255, 255, 255, .8);
  border: 1px solid #dfe6ff;
  border-radius: var(--radius);
  padding: 28px 26px;
  backdrop-filter: blur(4px);
  transition: transform .2s ease, box-shadow .2s ease;
}
.pag-card:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.pag-card__icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: grid; place-items: center;
  background: var(--accent);
  color: #fff;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px -8px rgba(45, 91, 255, .7);
}
.pag-card__icon svg { width: 23px; height: 23px; }
.pag-card__title { font-size: 1.1rem; font-weight: 700; color: var(--ink); margin: 0 0 10px; letter-spacing: -.02em; }
.pag-card__text { color: var(--muted); font-size: .96rem; margin: 0; }

.pag-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px 20px;
  text-align: center;
}
.pag-cta__note { color: var(--muted); font-size: .95rem; max-width: 420px; text-align: left; }

/* ============================================================
   POR QUE A EME
   ============================================================ */
.por-que { background: var(--bg); }
.attrs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.attr {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow-sm);
  transition: transform .2s ease, box-shadow .2s ease;
}
.attr:hover { transform: translateY(-5px); box-shadow: var(--shadow); }
.attr__icon {
  width: 50px; height: 50px;
  margin-bottom: 18px;
  border-radius: 13px;
  display: grid; place-items: center;
  background: var(--accent-sb);
  color: var(--accent);
}
.attr__icon svg { width: 24px; height: 24px; }
.attr__title { font-size: 1.05rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; letter-spacing: -.02em; }
.attr__text { color: var(--muted); font-size: .95rem; margin: 0; }

/* ============================================================
   COMO TRABALHAMOS
   ============================================================ */
.processo { background: var(--bg-soft); }
.steps {
  list-style: none; margin: 0; padding: 0;
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px;
  position: relative;
}
.step {
  position: relative;
  padding: 30px 26px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}
.step__num {
  display: grid; place-items: center;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: var(--accent);
  color: #fff;
  font-weight: 800; font-size: 1.1rem;
  margin-bottom: 18px;
  box-shadow: 0 8px 18px -8px rgba(45, 91, 255, .7);
}
.step__title { font-size: 1.08rem; font-weight: 700; color: var(--ink); margin: 0 0 8px; letter-spacing: -.02em; }
.step__text { color: var(--muted); margin: 0; font-size: .95rem; }

/* ============================================================
   CTA FINAL / CONTATO (painel azul arredondado)
   ============================================================ */
.cta-panel {
  position: relative;
  overflow: hidden;
  display: grid;
  grid-template-columns: 1.25fr .75fr;
  gap: 48px;
  align-items: center;
  background: linear-gradient(135deg, #16204a 0%, var(--ink) 55%, #0b0c10 100%);
  border-radius: var(--radius-xl);
  padding: 56px 56px;
  color: #fff;
}
.cta-panel__glow {
  position: absolute;
  top: -120px; left: -80px;
  width: 460px; height: 460px;
  background: radial-gradient(circle, rgba(45, 91, 255, .45), transparent 62%);
  pointer-events: none;
}
.cta-panel__content { position: relative; }
.cta-panel__title {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -.025em;
  margin: 0 0 16px;
}
.cta-panel__text { color: rgba(255, 255, 255, .72); font-size: 1.08rem; margin: 0 0 28px; max-width: 520px; }

.cta-panel__contato {
  position: relative;
  font-style: normal;
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(255, 255, 255, .14);
  border-radius: var(--radius);
  padding: 26px 28px;
}
.cta-panel__contato strong { display: block; font-size: 1.05rem; margin-bottom: 16px; }
.cta-panel__contato p {
  display: flex; align-items: flex-start; gap: 11px;
  color: rgba(255, 255, 255, .74);
  margin: 0 0 14px;
  font-size: .95rem;
  line-height: 1.5;
}
.cta-panel__contato p:last-child { margin-bottom: 0; }
.cta-panel__contato svg { width: 18px; height: 18px; color: #7d9bff; flex-shrink: 0; margin-top: 2px; }
.cta-panel__contato a { color: #fff; font-weight: 500; transition: color .2s ease; }
.cta-panel__contato a:hover { color: #9db3ff; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--bg); border-top: 1px solid var(--line-2); }
.footer__inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1.4fr;
  gap: 48px;
  padding: 56px 24px 44px;
}
.footer__tagline { margin: 16px 0 0; color: var(--muted); max-width: 250px; font-size: .95rem; }
.footer__nav-title {
  display: block;
  font-size: .78rem; font-weight: 700; text-transform: uppercase; letter-spacing: .1em;
  color: var(--muted-2);
  margin-bottom: 16px;
}
.footer__nav { display: flex; flex-direction: column; gap: 11px; }
.footer__nav a { color: var(--muted); font-size: .95rem; transition: color .2s ease; }
.footer__nav a:hover { color: var(--accent); }
.footer__contato p { margin: 0 0 8px; color: var(--muted); font-size: .95rem; }
.footer__contato a { transition: color .2s ease; }
.footer__contato a:hover { color: var(--accent); }
.footer__bottom { border-top: 1px solid var(--line-2); padding: 22px 0; }
.footer__bottom p { margin: 0; font-size: .88rem; color: var(--muted-2); }

/* ============================================================
   RESPONSIVO
   ============================================================ */
@media (max-width: 980px) {
  .section { padding: 76px 0; }
  .hero__inner, .setor__inner { grid-template-columns: 1fr; gap: 48px; }
  .hero__media { max-width: 480px; }
  .cards { grid-template-columns: 1fr; }
  .attrs, .steps, .pag-grid { grid-template-columns: repeat(2, 1fr); }
  .cta-panel { grid-template-columns: 1fr; gap: 36px; padding: 44px 36px; }
  .footer__inner { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 720px) {
  .nav-toggle { display: flex; }
  .nav {
    position: fixed;
    inset: 70px 0 auto 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: #fff;
    border-bottom: 1px solid var(--line);
    padding: 10px 24px 22px;
    transform: translateY(-140%);
    transition: transform .3s ease;
    box-shadow: var(--shadow);
  }
  .nav.is-open { transform: translateY(0); }
  .nav__list { flex-direction: column; gap: 0; }
  .nav__list li { border-bottom: 1px solid var(--line-2); }
  .nav__list a { display: block; padding: 14px 0; }
  .nav__cta { margin-top: 16px; text-align: center; }
}

@media (max-width: 520px) {
  .container { padding: 0 18px; }
  .section { padding: 64px 0; }
  .attrs, .steps, .pag-grid, .footer__inner { grid-template-columns: 1fr; }
  .ui-stats { grid-template-columns: 1fr 1fr; }
  .hero__actions { flex-direction: column; align-items: stretch; }
  .hero__actions .btn { width: 100%; }
  .cta-panel { padding: 36px 24px; }
  .ui-badge { left: 50%; transform: translateX(-50%); }
}
