/* =========================================================================
   AGILLIZAPP — Landing Page
   Paleta extraída do logo: laranja → verde → azul (agilidade / ciclo)
   ========================================================================= */

:root {
  /* Marca */
  --orange: #f7941d;
  --orange-dark: #e57e12;
  --green: #7dc242;
  --green-dark: #5da22e;
  --blue: #1ca0e3;
  --blue-dark: #1580bd;

  --brand-grad: linear-gradient(120deg, #f7941d 0%, #7dc242 52%, #1ca0e3 100%);
  --brand-grad-soft: linear-gradient(120deg, rgba(247,148,29,.12) 0%, rgba(125,194,66,.12) 52%, rgba(28,160,227,.12) 100%);

  /* Neutros */
  --ink: #10131a;
  --ink-2: #2b3140;
  --muted: #5b6472;
  --line: #e6e9ef;
  --bg: #ffffff;
  --bg-soft: #f6f8fb;
  --bg-dark: #0f1320;
  --bg-dark-2: #161c2d;
  --white: #ffffff;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 2px 8px rgba(16, 19, 26, .06);
  --shadow: 0 12px 40px rgba(16, 19, 26, .10);
  --shadow-lg: 0 28px 70px rgba(16, 19, 26, .16);

  --maxw: 1180px;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 { line-height: 1.15; letter-spacing: -.02em; margin: 0 0 .5em; font-weight: 800; }
h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); }
h2 { font-size: clamp(1.7rem, 3.5vw, 2.6rem); }
h3 { font-size: 1.25rem; }
p { margin: 0 0 1rem; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 22px; }

.grad-text {
  background: var(--brand-grad);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-block;
  font-size: .82rem;
  font-weight: 700;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--green-dark);
  margin-bottom: 14px;
}

.section { padding: 92px 0; }
.section-head { text-align: center; max-width: 720px; margin: 0 auto 56px; }
.section-head p { color: var(--muted); font-size: 1.12rem; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 9px;
  font-weight: 700; font-size: 1rem;
  padding: 14px 26px; border-radius: 999px;
  border: 1.5px solid transparent; cursor: pointer;
  transition: transform .16s ease, box-shadow .16s ease, background .16s ease;
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }
.btn-primary {
  color: #fff; background: var(--brand-grad);
  background-size: 160% 160%;
  box-shadow: 0 10px 24px rgba(28,160,227,.28);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(28,160,227,.36); }
.btn-ghost { color: var(--ink); background: #fff; border-color: var(--line); }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue-dark); transform: translateY(-2px); }
.btn-lg { padding: 17px 34px; font-size: 1.06rem; }
.btn-block { width: 100%; justify-content: center; }
.btn-wa { background: #25d366; color: #fff; box-shadow: 0 10px 24px rgba(37,211,102,.3); }
.btn-wa:hover { transform: translateY(-2px); box-shadow: 0 16px 32px rgba(37,211,102,.4); }
.btn-login { color: var(--blue-dark); background: #fff; border-color: var(--blue); }
.btn-login:hover { background: var(--blue); color: #fff; transform: translateY(-2px); box-shadow: 0 12px 26px rgba(28,160,227,.28); }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.82);
  backdrop-filter: saturate(180%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .2s, box-shadow .2s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.nav { display: flex; align-items: center; justify-content: space-between; height: 72px; }
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { height: 38px; width: auto; }
.nav-links { display: flex; align-items: center; gap: 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { font-weight: 600; font-size: .96rem; color: var(--ink-2); transition: color .15s; }
.nav-links a:hover { color: var(--blue-dark); }
.nav-cta { display: flex; align-items: center; gap: 12px; }
.nav-cta .btn { padding: 9px 18px; font-size: .9rem; }
.nav-cta .btn-login svg { width: 16px; height: 16px; }
.nav-toggle { display: none; background: none; border: 0; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2.4px; background: var(--ink); border-radius: 2px; margin: 5px 0; transition: .25s; }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 74px 0 90px;
  background:
    radial-gradient(1100px 520px at 82% -10%, rgba(28,160,227,.10), transparent 60%),
    radial-gradient(900px 480px at 10% 8%, rgba(247,148,29,.10), transparent 60%),
    var(--bg);
}
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 { margin-bottom: 20px; }
.hero .lead { font-size: 1.22rem; color: var(--ink-2); max-width: 560px; margin-bottom: 30px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 26px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 22px; color: var(--muted); font-size: .92rem; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 7px; }
.hero-trust svg { color: var(--green-dark); flex-shrink: 0; }

.pill {
  display: inline-flex; align-items: center; gap: 9px;
  background: var(--brand-grad-soft);
  border: 1px solid var(--line);
  padding: 7px 15px 7px 9px; border-radius: 999px;
  font-size: .86rem; font-weight: 700; color: var(--ink-2);
  margin-bottom: 22px;
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 4px rgba(125,194,66,.2); }

/* Hero visual (mockup SVG) */
.hero-visual { position: relative; }
.hero-visual .card-float {
  position: absolute; background: #fff; border-radius: 14px;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  padding: 12px 16px; display: flex; align-items: center; gap: 11px;
  font-weight: 700; font-size: .9rem;
  animation: floaty 5s ease-in-out infinite;
}
.hero-visual .cf-1 { top: 26px; left: -18px; }
.hero-visual .cf-2 { bottom: 40px; right: -14px; animation-delay: 1.4s; }
.hero-visual .cf-badge { width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }

/* ---------- Faixa de logos / stats ---------- */
.stats { background: var(--bg-soft); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.stats-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 20px; padding: 46px 0; text-align: center; }
.stat .num { font-size: 2.3rem; font-weight: 900; letter-spacing: -.03em; }
.stat .lbl { color: var(--muted); font-weight: 600; font-size: .96rem; }

/* ---------- Módulos ---------- */
.modules-grid { display: grid; grid-template-columns: repeat(2,1fr); gap: 26px; }
.module-card {
  position: relative; background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 34px 32px;
  box-shadow: var(--shadow-sm); overflow: hidden;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.module-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px; background: var(--accent, var(--brand-grad));
}
.module-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: transparent; }
.module-ico {
  width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center;
  color: #fff; margin-bottom: 20px; box-shadow: var(--shadow-sm);
}
.module-card h3 { margin-bottom: 6px; }
.module-tag { font-size: .78rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--muted); }
.module-card > p { color: var(--muted); margin: 12px 0 18px; }
.feat-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.feat-list li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink-2); }
.feat-list svg { flex-shrink: 0; margin-top: 3px; color: var(--green-dark); }

/* ---------- Diferenciais ---------- */
.features { background: var(--bg-soft); }
.feature-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 24px; }
.feature {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.feature:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.feature-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--brand-grad-soft); color: var(--blue-dark); }
.feature h3 { font-size: 1.12rem; }
.feature p { color: var(--muted); font-size: .96rem; margin: 0; }

/* ---------- Como funciona ---------- */
.steps-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 30px; counter-reset: step; }
.step { text-align: center; position: relative; }
.step-num {
  width: 62px; height: 62px; margin: 0 auto 18px; border-radius: 50%;
  display: grid; place-items: center; font-weight: 900; font-size: 1.5rem; color: #fff;
  background: var(--brand-grad); box-shadow: 0 10px 26px rgba(28,160,227,.28);
}
.step h3 { font-size: 1.15rem; }
.step p { color: var(--muted); font-size: .98rem; }

/* ---------- Planos ---------- */
.pricing { background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.save-badge { text-align: center; margin: 8px 0 44px; }
.save-badge span { background: rgba(125,194,66,.16); color: var(--green-dark); font-weight: 700; font-size: .85rem; padding: 5px 14px; border-radius: 999px; }

/* Combobox de cobrança por plano */
.plan-billing-row { margin-bottom: 14px; }
.plan-billing {
  width: 100%;
  font-family: inherit; font-size: .9rem; font-weight: 700; color: var(--ink);
  background: var(--bg-soft); border: 1.5px solid var(--line); border-radius: 10px;
  padding: 11px 40px 11px 14px; cursor: pointer;
  appearance: none; -webkit-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235b6472' stroke-width='2.5'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 13px center;
  transition: border-color .15s, box-shadow .15s;
}
.plan-billing:hover { border-color: var(--blue); }
.plan-billing:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(28,160,227,.15); }
.plan.featured .plan-billing { background: #fff; }

.plans { display: grid; grid-template-columns: repeat(3,1fr); gap: 26px; align-items: stretch; }
.plan {
  position: relative; background: #fff; border: 1.5px solid var(--line);
  border-radius: 20px; padding: 34px 30px; display: flex; flex-direction: column;
  box-shadow: var(--shadow-sm); transition: transform .2s, box-shadow .2s;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.featured { border-color: transparent; box-shadow: var(--shadow-lg); transform: scale(1.03); }
.plan.featured::before {
  content: ""; position: absolute; inset: -1.5px; border-radius: 20px; padding: 1.5px;
  background: var(--brand-grad); -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude; pointer-events: none;
}
.plan-tag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: var(--brand-grad); color: #fff; font-weight: 700; font-size: .78rem;
  letter-spacing: .05em; text-transform: uppercase; padding: 6px 16px; border-radius: 999px;
  box-shadow: 0 8px 20px rgba(28,160,227,.3);
}
.plan h3 { font-size: 1.4rem; margin-bottom: 4px; }
.plan .desc { color: var(--muted); font-size: .95rem; min-height: 44px; margin-bottom: 18px; }
.price { display: flex; align-items: baseline; gap: 4px; margin-bottom: 4px; }
.price .cur { font-size: 1.2rem; font-weight: 700; color: var(--ink-2); }
.price .val { font-size: 3rem; font-weight: 900; letter-spacing: -.03em; }
.price .per { color: var(--muted); font-weight: 600; font-size: 1rem; }
.price-sub { color: var(--muted); font-size: .9rem; min-height: 22px; margin-bottom: 22px; }
.price-sub strong { color: var(--green-dark); }
.plan .btn { margin-bottom: 24px; }
.plan-feats { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.plan-feats li { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; }
.plan-feats svg { flex-shrink: 0; margin-top: 3px; color: var(--green-dark); }
.plan-feats li.off { color: var(--muted); }
.plan-feats li.off svg { color: #c3c9d4; }

/* ---------- FAQ ---------- */
.faq-list { max-width: 800px; margin: 0 auto; display: grid; gap: 14px; }
.faq-item { border: 1px solid var(--line); border-radius: var(--radius-sm); background: #fff; overflow: hidden; box-shadow: var(--shadow-sm); }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  padding: 20px 24px; font-size: 1.05rem; font-weight: 700; color: var(--ink);
  display: flex; justify-content: space-between; align-items: center; gap: 16px;
}
.faq-q .chev { transition: transform .25s; flex-shrink: 0; color: var(--blue); }
.faq-item.open .chev { transform: rotate(180deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .3s ease; }
.faq-a p { padding: 0 24px 20px; color: var(--muted); margin: 0; }

/* ---------- CTA final ---------- */
.cta-final { padding: 96px 0; }
.cta-box {
  position: relative; overflow: hidden;
  background: var(--bg-dark); border-radius: 28px; padding: 64px 40px; text-align: center;
  color: #fff; box-shadow: var(--shadow-lg);
}
.cta-box::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(800px 400px at 80% 120%, rgba(28,160,227,.35), transparent 60%),
              radial-gradient(700px 360px at 12% -20%, rgba(247,148,29,.28), transparent 60%);
}
.cta-box > * { position: relative; }
.cta-box h2 { color: #fff; }
.cta-box p { color: #c8cfdd; font-size: 1.15rem; max-width: 560px; margin: 0 auto 30px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.site-footer { background: var(--bg-dark); color: #aeb6c6; padding: 66px 0 30px; }
.footer-grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 36px; margin-bottom: 44px; }
.footer-brand img { height: 40px; margin-bottom: 16px; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { font-size: .95rem; max-width: 320px; }
.footer-col h4 { color: #fff; font-size: .95rem; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 16px; }
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.footer-col a { font-size: .95rem; transition: color .15s; }
.footer-col a:hover { color: #fff; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding-top: 26px; display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .88rem; }
.footer-bottom .regions { max-width: 620px; color: #7e8798; }

/* ---------- WhatsApp flutuante ---------- */
.wa-float {
  position: fixed; bottom: 24px; right: 24px; z-index: 60;
  width: 60px; height: 60px; border-radius: 50%; background: #25d366;
  display: grid; place-items: center; color: #fff;
  box-shadow: 0 12px 30px rgba(37,211,102,.45);
  transition: transform .2s;
}
.wa-float:hover { transform: scale(1.08); }
.wa-float::after {
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(37,211,102,.5); animation: pulse 2.2s infinite;
}
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(37,211,102,.5); } 70% { box-shadow: 0 0 0 18px rgba(37,211,102,0); } 100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); } }

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Responsivo ---------- */
@media (max-width: 960px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-visual { max-width: 480px; margin: 0 auto; }
  .modules-grid, .feature-grid, .steps-grid, .plans { grid-template-columns: 1fr; }
  .plan.featured { transform: none; }
  .stats-grid { grid-template-columns: repeat(2,1fr); gap: 34px 20px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 760px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav-links.open {
    display: flex; position: absolute; top: 72px; left: 0; right: 0; flex-direction: column;
    background: #fff; padding: 20px 22px; gap: 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow);
  }
  .section { padding: 66px 0; }
  .feature-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .price .val { font-size: 2.6rem; }
}
@media (max-width: 480px) {
  body { font-size: 16px; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .cta-box { padding: 48px 22px; }
}
