/* ============================================================
   MeiReport Landing Page — style.css
   Mobile-first, sem frameworks externos
   ============================================================ */

/* ---------- Reset & base ---------- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  /* Cores principais */
  --bg-deep:       #0d1f0f;
  --bg-dark:       #122214;
  --bg-mid:        #1a3a1c;
  --bg-card:       #1e3f20;
  --neon:          #4ade80;  /* verde lima — destaque / CTA */
  --neon-dark:     #22c55e;
  --text-white:    #ffffff;
  --text-muted:    #a5c8a8;
  --text-dark:     #111111;
  --text-code:     #4ade80;
  --error:         #f87171;
  --success:       #4ade80;

  /* Tipografia */
  --font:          'Inter', system-ui, sans-serif;

  /* Espaçamentos */
  --section-py:    5rem;
  --radius:        0.75rem;
  --radius-lg:     1.25rem;

  /* Transições */
  --transition:    0.25s ease;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font);
  background-color: var(--bg-deep);
  color: var(--text-white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

ul { list-style: none; }

/* ---------- Container ---------- */
.container {
  width: 100%;
  max-width: 1160px;
  margin: 0 auto;
  padding: 0 1.25rem;
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius);
  font-family: var(--font);
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
  transition: filter var(--transition), transform var(--transition);
  border: none;
  text-align: center;
}

.btn:hover {
  filter: brightness(1.1);
  transform: translateY(-1px);
}

.btn:active {
  transform: translateY(0);
}

/* CTA — verde lima */
.btn--cta {
  background-color: var(--neon);
  color: var(--text-dark);
}

/* Nav link CTA */
.btn--nav {
  background-color: var(--neon);
  color: var(--text-dark);
  padding: 0.5rem 1.25rem;
  font-size: 0.9rem;
}

/* Full width */
.btn--full {
  width: 100%;
}

/* Large */
.btn--large {
  padding: 1rem 2.25rem;
  font-size: 1.1rem;
}

/* Loading state */
.btn--loading {
  opacity: 0.7;
  pointer-events: none;
}

/* ---------- Highlight text ---------- */
.highlight {
  color: var(--neon);
}

/* ---------- Section defaults ---------- */
.section {
  padding: var(--section-py) 0;
}

.section--dark {
  background-color: var(--bg-dark);
}

/* Planos — background com banner2 (aplicado via media queries) */

.section__title {
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 800;
  text-align: center;
  margin-bottom: 0.75rem;
}

.section__subtitle {
  font-size: 1.05rem;
  color: var(--text-muted);
  text-align: center;
  max-width: 580px;
  margin: 0 auto 3rem;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  padding: 1rem 0;
  background-color: transparent;
  transition: background-color var(--transition), box-shadow var(--transition);
}

.navbar.scrolled {
  background-color: rgba(13, 31, 15, 0.95);
  backdrop-filter: blur(8px);
  box-shadow: 0 1px 0 rgba(74, 222, 128, 0.15);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.navbar__links {
  display: none; /* mobile: oculto; desktop: flex */
  align-items: center;
  gap: 2rem;
  font-size: 0.95rem;
  font-weight: 500;
}

.navbar__links a:not(.btn) {
  color: var(--text-muted);
  transition: color var(--transition);
}

.navbar__links a:not(.btn):hover {
  color: var(--neon);
}

/* Hamburger */
.hamburger {
  display: flex;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.25rem;
}

.hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background-color: var(--text-white);
  border-radius: 2px;
  transition: transform var(--transition), opacity var(--transition);
}

/* Hamburger open state */
.hamburger.open span:nth-child(1) {
  transform: translateY(7px) rotate(45deg);
}
.hamburger.open span:nth-child(2) {
  opacity: 0;
}
.hamburger.open span:nth-child(3) {
  transform: translateY(-7px) rotate(-45deg);
}

/* Mobile menu */
.mobile-menu {
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  z-index: 99;
  background-color: var(--bg-dark);
  border-bottom: 1px solid rgba(74, 222, 128, 0.15);
  padding: 1.5rem 1.25rem;
  display: none;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu.open {
  display: flex;
}

.mobile-menu ul {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.mobile-menu a:not(.btn) {
  display: block;
  padding: 0.5rem 0;
  font-size: 1rem;
  font-weight: 500;
  color: var(--text-muted);
  border-bottom: 1px solid rgba(255,255,255,0.06);
}

.mobile-menu a:not(.btn):hover {
  color: var(--neon);
}

/* Logo */
.logo {
  font-size: 1.5rem;
  font-weight: 800;
  letter-spacing: -0.5px;
}

.logo__mei {
  color: var(--neon);
}

.logo__report {
  -webkit-text-stroke: 0.5px var(--neon);
  color: var(--text-white);
  opacity: 0.85;
}


/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 7rem 0 4rem;
  background:
    linear-gradient(to right,
      var(--bg-deep)               0%,
      var(--bg-deep)               32%,
      rgba(13, 31, 15, 0.90)       44%,
      rgba(13, 31, 15, 0.35)       56%,
      rgba(13, 31, 15, 0.60)       72%,
      rgba(13, 31, 15, 0.80)       100%
    ),
    url('static/banner.webp') 42% center / cover no-repeat,
    var(--bg-deep);
  overflow: hidden;
}

.hero__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3rem;
}

.hero__copy {
  text-align: center;
  max-width: 680px;
}

.hero__headline {
  font-size: clamp(2rem, 6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.25rem;
}

.hero__subheadline {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 560px;
  margin: 0 auto 2rem;
}

/* WhatsApp Mockup */
.hero__mockup {
  width: 100%;
  max-width: 360px;
}

.wpp-phone {
  background-color: #e5ddd5;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,0.5);
}

.wpp-header {
  background-color: #075e54;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
}

.wpp-avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background-color: var(--neon);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 0.75rem;
  color: var(--text-dark);
  flex-shrink: 0;
}

.wpp-info {
  display: flex;
  flex-direction: column;
}

.wpp-name {
  font-weight: 600;
  font-size: 0.95rem;
  color: #fff;
}

.wpp-status {
  font-size: 0.75rem;
  color: #4ade80;
}

.wpp-body {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='60' height='60' viewBox='0 0 60 60'%3E%3Cg fill-rule='evenodd'%3E%3Cg fill='%23c2bcb5' fill-opacity='0.2'%3E%3Cpath d='M36 34v-4h-2v4h-4v2h4v4h2v-4h4v-2h-4zm0-30V0h-2v4h-4v2h4v4h2V6h4V4h-4zM6 34v-4H4v4H0v2h4v4h2v-4h4v-2H6zM6 4V0H4v4H0v2h4v4h2V6h4V4H6z'/%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
}

.wpp-msg {
  max-width: 85%;
  padding: 0.5rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.85rem;
  line-height: 1.4;
  color: var(--text-dark);
}

.wpp-msg--out {
  align-self: flex-end;
  background-color: #dcf8c6;
  border-bottom-right-radius: 0;
}

.wpp-msg--in {
  align-self: flex-start;
  background-color: #ffffff;
  border-bottom-left-radius: 0;
}

.wpp-link {
  color: #128c7e;
  font-weight: 600;
  font-size: 0.8rem;
}


/* ============================================================
   COMO FUNCIONA — 3 PASSOS
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
}

.step {
  background-color: var(--bg-card);
  border: 1px solid rgba(74, 222, 128, 0.12);
  border-radius: var(--radius-lg);
  padding: 2rem;
  position: relative;
}

.step__number {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--neon);
  color: var(--text-dark);
  font-weight: 800;
  font-size: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1rem;
}

.step__title {
  font-size: 1.2rem;
  font-weight: 700;
  margin-bottom: 0.5rem;
}

.step__desc {
  color: var(--text-muted);
  font-size: 0.95rem;
}

.step__desc code {
  background-color: rgba(74, 222, 128, 0.15);
  color: var(--neon);
  padding: 0.1em 0.35em;
  border-radius: 4px;
  font-size: 0.9em;
}


/* ============================================================
   COMANDOS
   ============================================================ */
.commands-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

.cmd-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(74, 222, 128, 0.12);
  border-radius: var(--radius);
  padding: 1.25rem 1.5rem;
  transition: border-color var(--transition), transform var(--transition);
}

.cmd-card:hover {
  border-color: var(--neon);
  transform: translateY(-2px);
}

.cmd-card__code {
  display: block;
  color: var(--neon);
  font-size: 0.9rem;
  font-family: 'Courier New', Courier, monospace;
  margin-bottom: 0.4rem;
  word-break: break-all;
}

.cmd-card__desc {
  font-size: 0.9rem;
  color: var(--text-muted);
}


/* ============================================================
   PLANOS
   ============================================================ */
.plans {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  max-width: 480px;
  margin: 0 auto;
}

.plan-card {
  background-color: var(--bg-card);
  border: 1px solid rgba(74, 222, 128, 0.15);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  position: relative;
  text-align: center;
}

.plan-card--featured {
  border-color: var(--neon);
  box-shadow: 0 0 0 1px var(--neon), 0 12px 40px rgba(74, 222, 128, 0.15);
}

.plan-card__badge {
  display: inline-block;
  background-color: var(--neon);
  color: var(--text-dark);
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.2rem 0.75rem;
  border-radius: 999px;
  margin-bottom: 1.25rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.plan-card__name {
  font-size: 1.5rem;
  font-weight: 800;
  margin-bottom: 0.75rem;
}

.plan-card__price {
  display: flex;
  align-items: flex-end;
  justify-content: center;
  gap: 0.25rem;
  margin-bottom: 1.75rem;
}

.plan-card__currency {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--text-muted);
  line-height: 1.8;
}

.plan-card__amount {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1;
  color: var(--neon);
}

.plan-card__amount small {
  font-size: 1.75rem;
  font-weight: 700;
}

.plan-card__trial {
  font-size: 0.85rem;
  color: var(--neon);
  margin-top: -1.25rem;
  margin-bottom: 1.5rem;
  font-weight: 500;
}

.plan-card__period {
  font-size: 1rem;
  color: var(--text-muted);
  line-height: 2;
}

.plan-card__features {
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-bottom: 2rem;
}

.plan-card__features li {
  font-size: 0.95rem;
  color: var(--text-muted);
}


/* ============================================================
   CADASTRO — FORMULÁRIO
   ============================================================ */
.signup-form {
  max-width: 520px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.form-group label {
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text-muted);
}

.form-group label span[aria-hidden] {
  color: var(--neon);
}

.optional {
  font-weight: 400;
  font-size: 0.8rem;
  color: var(--text-muted);
  opacity: 0.7;
}

.form-group input {
  background-color: var(--bg-card);
  border: 1px solid rgba(74, 222, 128, 0.2);
  border-radius: var(--radius);
  padding: 0.85rem 1rem;
  font-family: var(--font);
  font-size: 1rem;
  color: var(--text-white);
  transition: border-color var(--transition), box-shadow var(--transition);
  outline: none;
  width: 100%;
}

.form-group input::placeholder {
  color: rgba(165, 200, 168, 0.4);
}

.form-group input:focus {
  border-color: var(--neon);
  box-shadow: 0 0 0 3px rgba(74, 222, 128, 0.15);
}

.form-group input:invalid:not(:placeholder-shown) {
  border-color: var(--error);
}

/* Feedback messages */
.form-feedback {
  padding: 0.85rem 1rem;
  border-radius: var(--radius);
  font-size: 0.95rem;
  font-weight: 500;
}

.form-feedback--success {
  background-color: rgba(74, 222, 128, 0.12);
  border: 1px solid rgba(74, 222, 128, 0.35);
  color: var(--neon);
}

.form-feedback--error {
  background-color: rgba(248, 113, 113, 0.1);
  border: 1px solid rgba(248, 113, 113, 0.35);
  color: var(--error);
}


/* ============================================================
   FOOTER
   ============================================================ */
.footer {
  background-color: var(--bg-dark);
  border-top: 1px solid rgba(74, 222, 128, 0.1);
  padding: 2.5rem 0;
}

.footer__inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.75rem;
  text-align: center;
}

.footer__tagline {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.footer__copy {
  font-size: 0.8rem;
  color: rgba(165, 200, 168, 0.5);
}


/* ============================================================
   ANIMAÇÕES — SCROLL FADE-IN
   ============================================================ */
.fade-in {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.fade-in.visible {
  opacity: 1;
  transform: translateY(0);
}

.fade-in--delay {
  transition-delay: 0.15s;
}


/* ============================================================
   RESPONSIVIDADE — Tablet e Desktop
   ============================================================ */

/* Mobile: sem imagem de fundo no hero nem nos planos */
@media (max-width: 899px) {
  .hero {
    background: linear-gradient(160deg, var(--bg-deep) 0%, var(--bg-mid) 100%);
  }

  #planos.section--dark {
    background: var(--bg-dark);
  }
}



/* Tablet: 640px+ */
@media (min-width: 640px) {
  .commands-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .steps {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* Desktop: 900px+ */
@media (min-width: 900px) {
  .navbar__links {
    display: flex;
  }

  .hamburger {
    display: none;
  }

  .hero {
    padding: 9rem 0 6rem;
  }

  .hero__inner {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 4rem;
  }

  .hero__copy {
    text-align: left;
    flex: 0 0 auto;
    max-width: 460px;
  }

  .hero__copy .hero__subheadline {
    margin-left: 0;
  }

  .hero__mockup {
    flex-shrink: 0;
    max-width: 340px;
    margin-left: auto;
  }

  .steps {
    grid-template-columns: repeat(3, 1fr);
  }

  .commands-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  .plans {
    max-width: 420px;
  }

  /* Banner2 começa a aparecer a partir do desktop */
  #planos.section--dark {
    background:
      linear-gradient(to right,
        var(--bg-dark)             0%,
        var(--bg-dark)             30%,
        rgba(18, 34, 20, 0.90)     44%,
        rgba(18, 34, 20, 0.35)     58%
      ),
      url('static/banner2.webp') 45% center / auto 100% no-repeat,
      var(--bg-dark);
  }
}

/* Large desktop: 1100px+ */
@media (min-width: 1100px) {
  .commands-grid {
    grid-template-columns: repeat(4, 1fr);
  }

  #planos.section--dark {
    background:
      linear-gradient(to right,
        var(--bg-dark)             0%,
        var(--bg-dark)             30%,
        rgba(18, 34, 20, 0.90)     44%,
        rgba(18, 34, 20, 0.35)     58%
      ),
      url('static/banner2.webp') 55% center / cover no-repeat,
      var(--bg-dark);
  }
}

@media (min-width: 1300px) {
  #planos.section--dark {
    background:
      linear-gradient(to right,
        var(--bg-dark)             0%,
        var(--bg-dark)             30%,
        rgba(18, 34, 20, 0.90)     44%,
        rgba(18, 34, 20, 0.35)     58%,
        rgba(18, 34, 20, 0.70)     80%,
        rgba(18, 34, 20, 0.88)     100%
      ),
      url('static/banner2.webp') 65% center / cover no-repeat,
      var(--bg-dark);
  }
}

@media (min-width: 1500px) {
  #planos.section--dark {
    background:
      linear-gradient(to right,
        var(--bg-dark)             0%,
        var(--bg-dark)             30%,
        rgba(18, 34, 20, 0.90)     44%,
        rgba(18, 34, 20, 0.35)     58%,
        rgba(18, 34, 20, 0.70)     80%,
        rgba(18, 34, 20, 0.88)     100%
      ),
      url('static/banner2.webp') 75% center / cover no-repeat,
      var(--bg-dark);
  }
}
