/* oIntegrador - ITEPBrasil */

:root {
  --brand: #4f46e5;
  --brand-dark: #3730a3;
  --brand-2: #06b6d4;
  --brand-3: #8b5cf6;
  --accent: #10b981;
  --ink: #0b1220;
  --ink-2: #1e293b;
  --muted: #5b6478;
  --line: #e6eaf2;
  --bg: #ffffff;
  --bg-soft: #f6f8fc;
  --bg-deep: #0b1220;
  --radius: 18px;
  --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
  --shadow: 0 14px 40px -18px rgba(15, 23, 42, .35);
  --shadow-lg: 0 30px 70px -30px rgba(79, 70, 229, .45);
  --max: 1160px;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; scroll-padding-top: 86px; }

body {
  margin: 0;
  font-family: "Inter", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif;
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

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

a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-dark); }

h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5em; letter-spacing: -.02em; font-weight: 800; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.5rem); }
h2 { font-size: clamp(1.7rem, 3vw, 2.5rem); }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1rem; }

.wrap { width: min(100% - 40px, var(--max)); margin-inline: auto; }
.section { padding: 84px 0; }
.section--soft { background: var(--bg-soft); }
.section--deep { background: var(--bg-deep); color: #e8ecf6; }
.section--deep h2, .section--deep h3 { color: #fff; }
.section--deep .lead, .section--deep p { color: #aab4cc; }

.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: .78rem; font-weight: 700; letter-spacing: .14em;
  text-transform: uppercase; color: var(--brand);
  background: rgba(79, 70, 229, .09);
  border: 1px solid rgba(79, 70, 229, .18);
  padding: 7px 14px; border-radius: 999px; margin-bottom: 18px;
}
.eyebrow--light { color: #a5b4fc; background: rgba(165,180,252,.12); border-color: rgba(165,180,252,.25); }

.lead { font-size: 1.1rem; color: var(--muted); max-width: 62ch; }
.section-head { max-width: 760px; margin-bottom: 46px; }
.section-head--center { margin-inline: auto; text-align: center; }
.section-head--center .lead { margin-inline: auto; }

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  padding: 14px 26px; border-radius: 999px; font-weight: 700; font-size: .98rem;
  border: 1px solid transparent; cursor: pointer; transition: .2s ease;
  text-align: center;
}
.btn:hover { transform: translateY(-2px); color: #fff; }
.btn--primary {
  background: linear-gradient(135deg, var(--brand), var(--brand-3));
  color: #fff; box-shadow: var(--shadow-lg);
}
.btn--ghost { background: #fff; color: var(--ink); border-color: var(--line); }
.btn--ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn--light { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.25); }
.btn--light:hover { background: rgba(255,255,255,.2); color: #fff; }
.btn--accent { background: var(--accent); color: #fff; box-shadow: 0 16px 34px -18px rgba(16,185,129,.9); }
.btn--sm { padding: 10px 18px; font-size: .88rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 60;
  background: rgba(255,255,255,.86);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
.header__inner { display: flex; align-items: center; gap: 24px; height: 74px; }
.brand { display: flex; align-items: center; gap: 11px; font-weight: 800; font-size: 1.15rem; color: var(--ink); }
.brand__mark {
  width: 38px; height: 38px; border-radius: 11px; flex: none;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center; color: #fff; font-size: 1.1rem;
  box-shadow: var(--shadow-sm);
}
.brand small { display: block; font-size: .68rem; font-weight: 600; color: var(--muted); letter-spacing: .1em; text-transform: uppercase; }
.brand:hover { color: var(--ink); }
.brand__logo { height: 54px; width: auto; display: block; }

.logo-grupo { height: 54px; width: auto; display: block; margin: 0 auto 20px; }
.footer__grupo {
  display: inline-flex; align-items: center; gap: 12px;
  background: #fff; border-radius: 12px; padding: 9px 15px; margin-top: 18px;
}
.footer__grupo span {
  font-size: .66rem; font-weight: 700; letter-spacing: .13em;
  text-transform: uppercase; color: var(--muted);
}
.footer__grupo img { height: 30px; width: auto; display: block; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { padding: 9px 15px; border-radius: 999px; font-size: .93rem; font-weight: 600; color: var(--ink-2); }
.nav a:hover { background: var(--bg-soft); color: var(--brand); }
.nav .btn { margin-left: 8px; }

.nav-toggle {
  display: none; margin-left: auto; width: 44px; height: 44px; border-radius: 12px;
  border: 1px solid var(--line); background: #fff; cursor: pointer; padding: 0;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: ""; display: block; width: 18px; height: 2px; background: var(--ink); margin-inline: auto; border-radius: 2px; transition: .2s;
}
.nav-toggle span::before { transform: translateY(-6px); }
.nav-toggle span::after { transform: translateY(4px); }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: 74px 0 84px; }
.hero::before {
  content: ""; position: absolute; inset: -30% -10% auto -10%; height: 130%;
  background:
    radial-gradient(600px 320px at 12% 18%, rgba(79,70,229,.16), transparent 65%),
    radial-gradient(520px 300px at 88% 8%, rgba(6,182,212,.18), transparent 65%),
    radial-gradient(420px 260px at 70% 88%, rgba(139,92,246,.14), transparent 65%);
  z-index: -1;
}
.hero__grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero h1 span {
  background: linear-gradient(120deg, var(--brand), var(--brand-2));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero__cta { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 30px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 22px; margin-top: 34px; padding-top: 26px; border-top: 1px dashed var(--line); }
.hero__meta div { font-size: .86rem; color: var(--muted); }
.hero__meta strong { display: block; font-size: 1.35rem; color: var(--ink); letter-spacing: -.02em; }
.hero__art { position: relative; }
.hero__art img { border-radius: 22px; box-shadow: var(--shadow); }
.hero__badge {
  position: absolute; background: #fff; border: 1px solid var(--line);
  border-radius: 14px; padding: 11px 15px; box-shadow: var(--shadow);
  font-size: .82rem; font-weight: 700; display: flex; align-items: center; gap: 9px;
}
.hero__badge i { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); flex: none; }
.hero__badge--1 { left: -26px; top: 16%; }
.hero__badge--2 { right: -18px; bottom: 12%; }
.hero__badge--2 i { background: var(--brand); }

/* ---------- Genéricos ---------- */
.grid { display: grid; gap: 24px; }
.grid--2 { grid-template-columns: repeat(2, 1fr); }
.grid--3 { grid-template-columns: repeat(3, 1fr); }
.grid--4 { grid-template-columns: repeat(4, 1fr); }

.card {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; box-shadow: var(--shadow-sm); transition: .25s ease;
}
.card:hover { transform: translateY(-5px); box-shadow: var(--shadow); border-color: rgba(79,70,229,.35); }
.card__icon {
  width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center;
  background: linear-gradient(135deg, rgba(79,70,229,.14), rgba(6,182,212,.16));
  color: var(--brand); margin-bottom: 16px;
}
.card h3 { margin-bottom: 6px; }
.card p { color: var(--muted); font-size: .95rem; margin: 0; }

.card--banner { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.card--banner .banner { background: linear-gradient(160deg, #eef2ff, #e0f2fe); border-bottom: 1px solid var(--line); }
.card--banner .banner img { width: 100%; }
.card--banner .body { padding: 24px 26px 28px; }
.tag {
  display: inline-block; font-size: .7rem; font-weight: 800; letter-spacing: .1em;
  text-transform: uppercase; color: var(--brand); background: rgba(79,70,229,.1);
  padding: 5px 11px; border-radius: 999px; margin-bottom: 12px;
}

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split img { border-radius: var(--radius); box-shadow: var(--shadow); }

.checklist { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 12px; }
.checklist li { display: flex; gap: 11px; align-items: flex-start; font-size: .97rem; color: var(--ink-2); }
.checklist li::before {
  content: "✓"; flex: none; width: 22px; height: 22px; border-radius: 50%;
  background: rgba(16,185,129,.15); color: var(--accent);
  display: grid; place-items: center; font-size: .78rem; font-weight: 900; margin-top: 2px;
}

/* ---------- Planos ---------- */
.plans { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 26px; max-width: 900px; margin-inline: auto; }
.plan {
  position: relative; background: #fff; border: 2px solid var(--line);
  border-radius: 22px; padding: 34px 32px; display: flex; flex-direction: column;
  transition: .25s ease; cursor: pointer;
}
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.is-selected { border-color: var(--brand); box-shadow: var(--shadow-lg); }
.plan--featured { background: linear-gradient(170deg, #ffffff, #f5f7ff); border-color: var(--brand); }
.plan__flag {
  position: absolute; top: -14px; left: 50%; transform: translateX(-50%);
  background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff;
  font-size: .72rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: 6px 16px; border-radius: 999px; box-shadow: var(--shadow-sm); white-space: nowrap;
}
.plan__name { font-size: 1.22rem; font-weight: 800; margin: 0 0 4px; }
.plan__desc { color: var(--muted); font-size: .92rem; min-height: 44px; margin-bottom: 18px; }
.plan__price { display: flex; align-items: baseline; gap: 6px; margin-bottom: 4px; }
.plan__price strong { font-size: 2.7rem; font-weight: 900; letter-spacing: -.04em; }
.plan__price span { color: var(--muted); font-weight: 600; font-size: .95rem; }
.plan__cycle { font-size: .82rem; color: var(--muted); margin-bottom: 20px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 26px; display: grid; gap: 11px; }
.plan ul li { display: flex; gap: 10px; font-size: .93rem; color: var(--ink-2); align-items: flex-start; }
.plan ul li::before { content: "✓"; color: var(--accent); font-weight: 900; flex: none; }
.plan ul li.no::before { content: "–"; color: #c3c9d6; }
.plan .btn { margin-top: auto; }
.plan__radio {
  position: absolute; top: 22px; right: 22px; width: 22px; height: 22px;
  border-radius: 50%; border: 2px solid var(--line); background: #fff; transition: .2s;
}
.plan.is-selected .plan__radio { border-color: var(--brand); background: var(--brand); box-shadow: inset 0 0 0 4px #fff; }

.switch-note {
  display: flex; gap: 14px; align-items: center; justify-content: center;
  max-width: 760px; margin: 34px auto 0; padding: 18px 24px;
  background: rgba(16,185,129,.08); border: 1px dashed rgba(16,185,129,.45);
  border-radius: 16px; color: #065f46; font-size: .95rem; text-align: left;
}
.switch-note strong { color: #047857; }

/* ---------- Formulário ---------- */
.form-card {
  background: #fff; border: 1px solid var(--line); border-radius: 24px;
  padding: 40px; box-shadow: var(--shadow); max-width: 720px; margin-inline: auto;
}
.form-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field--full { grid-column: 1 / -1; }
.field label { font-size: .84rem; font-weight: 700; color: var(--ink-2); }
.field label em { color: var(--muted); font-style: normal; font-weight: 500; }
.field input, .field select, .field textarea {
  font: inherit; font-size: .97rem; padding: 13px 15px;
  border: 1.5px solid var(--line); border-radius: 12px; background: #fbfcfe;
  color: var(--ink); transition: .18s; width: 100%;
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--brand); background: #fff;
  box-shadow: 0 0 0 4px rgba(79,70,229,.12);
}
.field .hint { font-size: .78rem; color: var(--muted); }
.field .err { font-size: .78rem; color: #dc2626; font-weight: 600; display: none; }
.field.has-error input { border-color: #dc2626; background: #fef2f2; }
.field.has-error .err { display: block; }

.selected-plan {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  background: linear-gradient(135deg, rgba(79,70,229,.08), rgba(6,182,212,.1));
  border: 1px solid rgba(79,70,229,.25); border-radius: 14px;
  padding: 14px 18px; font-size: .93rem; margin-bottom: 22px; flex-wrap: wrap;
}
.selected-plan b { color: var(--brand); }
.form-legal { font-size: .8rem; color: var(--muted); margin-top: 16px; text-align: center; }
.hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

.form-alert {
  display: none; margin-bottom: 18px; padding: 13px 16px; border-radius: 12px;
  font-size: .9rem; font-weight: 600;
}
.form-alert.show { display: block; }
.form-alert.ok { background: rgba(16,185,129,.12); color: #065f46; border: 1px solid rgba(16,185,129,.4); }
.form-alert.erro { background: rgba(220,38,38,.1); color: #991b1b; border: 1px solid rgba(220,38,38,.35); }

/* ---------- Demo ---------- */
.steps { counter-reset: s; display: grid; gap: 18px; }
.step {
  display: flex; gap: 18px; background: #fff; border: 1px solid var(--line);
  border-radius: 16px; padding: 22px 24px; align-items: flex-start;
}
.step::before {
  counter-increment: s; content: counter(s);
  flex: none; width: 38px; height: 38px; border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-3)); color: #fff;
  display: grid; place-items: center; font-weight: 800;
}
.step h4 { margin: 0 0 4px; font-size: 1rem; }
.step p { margin: 0; font-size: .92rem; color: var(--muted); }

.demo-hero {
  background: linear-gradient(135deg, #0b1220, #1e1b4b 55%, #0e7490);
  color: #fff; border-radius: 26px; padding: 54px; overflow: hidden; position: relative;
}
.demo-hero h2 { color: #fff; }
.demo-hero p { color: #c3cbe0; }
.demo-hero .btn--ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.3); }
.demo-hero .btn--ghost:hover { background: rgba(255,255,255,.12); color: #fff; }
.demo-urls { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.demo-url {
  display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-radius: 12px;
  background: rgba(255,255,255,.08); border: 1px solid rgba(255,255,255,.16);
  font-size: .9rem; color: #e6ebf7; word-break: break-all;
}
.demo-url b { color: #a5f3d0; }

.gallery { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.shot { background: #fff; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: var(--shadow-sm); }
.shot img { background: #fff; }
.shot .body { padding: 22px 24px; }
.shot h3 { font-size: 1.05rem; margin-bottom: 5px; }
.shot p { font-size: .9rem; color: var(--muted); margin: 0; }

/* ---------- Faixa logos / CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-3) 55%, var(--brand-2) 100%);
  border-radius: 26px; padding: 56px; color: #fff; text-align: center;
  box-shadow: var(--shadow-lg); position: relative; overflow: hidden;
}
.cta-band::after {
  content: ""; position: absolute; inset: auto -60px -120px auto; width: 320px; height: 320px;
  background: radial-gradient(circle, rgba(255,255,255,.28), transparent 70%); border-radius: 50%;
}
.cta-band h2 { color: #fff; position: relative; }
.cta-band p { color: rgba(255,255,255,.9); max-width: 60ch; margin-inline: auto; position: relative; }
.cta-band .hero__cta { justify-content: center; position: relative; }

/* ---------- Footer ---------- */
.footer { background: var(--bg-deep); color: #98a2bb; padding: 60px 0 30px; font-size: .92rem; }
.footer h4 { color: #fff; font-size: .82rem; letter-spacing: .14em; text-transform: uppercase; margin-bottom: 16px; }
.footer__grid { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1.2fr; gap: 36px; }
.footer a { color: #b9c2d8; display: block; padding: 5px 0; }
.footer a:hover { color: #fff; }
.footer .brand { color: #fff; margin-bottom: 14px; }
.footer .brand small { color: #7c87a3; }
.footer__bottom {
  margin-top: 44px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.1);
  display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; font-size: .84rem; color: #7c87a3;
}

/* ---------- WhatsApp flutuante ---------- */
.wa-fab {
  position: fixed; right: 22px; bottom: 22px; z-index: 70;
  display: flex; align-items: center; gap: 10px;
  background: #25d366; color: #fff; font-weight: 700; font-size: .92rem;
  padding: 13px 20px 13px 15px; border-radius: 999px;
  box-shadow: 0 16px 34px -14px rgba(37, 211, 102, .85);
  transition: .22s ease;
}
.wa-fab:hover { transform: translateY(-3px); color: #fff; background: #1eb955; }
.wa-fab svg { width: 22px; height: 22px; fill: currentColor; flex: none; }
.wa-fab span b { display: block; font-size: .72rem; font-weight: 600; opacity: .9; line-height: 1.1; }
@media (max-width: 760px) {
  .wa-fab { padding: 0; width: 56px; height: 56px; justify-content: center; right: 16px; bottom: 16px; }
  .wa-fab span { display: none; }
}

/* ---------- Reveal ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: .7s cubic-bezier(.2,.7,.3,1); }
.reveal.in { opacity: 1; transform: none; }

/* ---------- Obrigado ---------- */
.thanks { min-height: 70vh; display: grid; place-items: center; padding: 70px 0; text-align: center; }
.thanks .mark {
  width: 76px; height: 76px; border-radius: 50%; margin: 0 auto 22px;
  background: rgba(16,185,129,.14); color: var(--accent);
  display: grid; place-items: center; font-size: 2rem;
}

/* ---------- Responsivo ---------- */
@media (max-width: 980px) {
  .hero__grid, .split { grid-template-columns: 1fr; gap: 40px; }
  .grid--3, .grid--4 { grid-template-columns: repeat(2, 1fr); }
  .footer__grid { grid-template-columns: repeat(2, 1fr); }
  .demo-hero, .cta-band { padding: 40px 28px; }
  .hero__badge--1 { left: 8px; }
  .hero__badge--2 { right: 8px; }
}

@media (max-width: 760px) {
  .nav {
    position: fixed; inset: 74px 0 auto; flex-direction: column; align-items: stretch;
    background: #fff; border-bottom: 1px solid var(--line); padding: 14px 20px 22px;
    gap: 6px; transform: translateY(-130%); transition: .3s; box-shadow: var(--shadow);
  }
  .nav.open { transform: none; }
  .nav a { padding: 12px 14px; }
  .nav .btn { margin: 8px 0 0; }
  .nav-toggle { display: block; }
  .section { padding: 60px 0; }
  .brand__logo { height: 40px; }
  .grid--2, .grid--3, .grid--4, .plans, .gallery, .form-grid { grid-template-columns: 1fr; }
  .form-card { padding: 26px 22px; }
  .plan { padding: 30px 24px; }
  .footer__grid { grid-template-columns: 1fr; }
  .hero { padding-top: 46px; }
}
