/* JP Sistemas — site institucional (padrão visual 2026) */
:root {
  --navy: #002f4b;
  --navy-100: #003d60;
  --navy-200: #001a2e;
  --teal: #0d9488;
  --teal-dark: #0f766e;
  --teal-light: #14b8a6;
  --teal-soft: #ccfbf1;
  --bg: #f5f7fa;
  --white: #ffffff;
  --text: #1f2937;
  --text-muted: #6b7280;
  --border: #e5e7eb;
  --radius: 8px;
  --radius-lg: 12px;
  --control-height: 40px;
  --shadow: 0 1px 3px rgb(0 0 0 / 0.08), 0 1px 2px rgb(0 0 0 / 0.06);
  --shadow-md: 0 8px 24px rgb(0 47 75 / 0.08);
  --shadow-lg: 0 20px 50px rgb(15 23 42 / 0.16);
  --header-h: 72px;
  --font: "Poppins", Inter, system-ui, sans-serif;
}

*,
*::before,
*::after { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  background: var(--bg);
  color: var(--text);
  min-height: 100vh;
  overflow-x: hidden;
  line-height: 1.6;
}

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

a { color: var(--teal); }

.site-bg {
  position: fixed;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  overflow: hidden;
  background:
    radial-gradient(900px 420px at 8% -10%, rgba(13, 148, 136, 0.14), transparent 55%),
    radial-gradient(700px 380px at 100% 8%, rgba(0, 47, 75, 0.1), transparent 50%),
    var(--bg);
}

.site-bg::after {
  content: "";
  position: absolute;
  width: 420px;
  height: 420px;
  right: -80px;
  bottom: 8%;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 184, 166, 0.12), transparent 70%);
  animation: orbFloat 14s ease-in-out infinite;
}

@keyframes orbFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-24px); }
}

section,
.site-footer {
  position: relative;
  z-index: 1;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: var(--header-h);
  padding: 0.75rem 4vw;
  background: var(--navy);
  color: #fff;
  border-bottom: 1px solid rgba(13, 148, 136, 0.28);
}

.site-header.scrolled {
  background: rgba(0, 47, 75, 0.96);
  backdrop-filter: blur(10px);
  box-shadow: 0 8px 24px rgb(0 0 0 / 0.18);
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
}

.logo img { height: 44px; width: auto; }

.logo span {
  font-size: 1.05rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.mobile-menu-btn {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: transparent;
  color: #fff;
  font-size: 1.25rem;
  cursor: pointer;
}

.mobile-menu-btn:hover { background: rgba(255, 255, 255, 0.08); }

#main-nav { display: flex; align-items: center; gap: 0.25rem; }

#main-nav a {
  color: rgba(255, 255, 255, 0.88);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9375rem;
  padding: 0.5rem 0.85rem;
  border-radius: var(--radius);
  transition: background 0.15s ease, color 0.15s ease;
}

#main-nav a:hover,
#main-nav a.is-active {
  color: #fff;
  background: rgba(13, 148, 136, 0.22);
}

#main-nav a.nav-cta {
  background: var(--teal);
  color: #fff;
  min-height: var(--control-height);
  display: inline-flex;
  align-items: center;
}

#main-nav a.nav-cta:hover { background: var(--teal-dark); }

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  min-height: var(--control-height);
  padding: 0.5rem 1.15rem;
  border: 0;
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.15s ease, border-color 0.15s ease;
}

.btn-primary { background: var(--teal); color: #fff; }
.btn-primary:hover { background: var(--teal-dark); }

.btn-navy { background: var(--navy); color: #fff; }
.btn-navy:hover { background: var(--navy-100); }

.btn-ghost {
  background: transparent;
  color: var(--navy);
  border: 1px solid var(--border);
}
.btn-ghost:hover { background: #fff; border-color: var(--teal); color: var(--teal); }

.btn-lg { min-height: 48px; padding: 0.7rem 1.4rem; font-size: 0.95rem; }

.btn:disabled { opacity: 0.7; cursor: not-allowed; }

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
}

/* Layout */
.wrap {
  width: min(1120px, calc(100% - 2rem));
  margin-inline: auto;
}

.page-hero,
.hero {
  text-align: center;
  padding: 4rem 1rem 2.5rem;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 0.3rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 1rem;
}

.hero h1,
.page-hero h1 {
  margin: 0 0 1rem;
  font-size: clamp(1.85rem, 4vw, 3.1rem);
  font-weight: 700;
  line-height: 1.2;
  color: var(--navy);
  letter-spacing: -0.03em;
}

.hero p,
.page-hero p {
  margin: 0 auto 1.75rem;
  max-width: 720px;
  color: var(--text-muted);
  font-size: 1.05rem;
}

.typewriter-msg {
  margin: 2rem 0 0;
  min-height: 2.4rem;
  font-size: clamp(1.15rem, 2.4vw, 1.65rem);
  font-weight: 700;
  color: var(--navy);
}

#typewriter {
  border-right: 3px solid var(--teal);
  padding-right: 6px;
  animation: blink-caret 1s step-end infinite;
}

@keyframes blink-caret {
  from, to { border-color: transparent; }
  50% { border-color: var(--teal); }
}

.note {
  margin: 1.25rem auto 0;
  max-width: 640px;
  padding: 0.85rem 1rem;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 0.925rem;
}

.section {
  padding: 1.5rem 0 3.5rem;
}

.section-title {
  text-align: center;
  margin: 0 0 0.5rem;
  font-size: clamp(1.5rem, 3vw, 2.1rem);
  color: var(--navy);
  letter-spacing: -0.02em;
}

.section-sub {
  text-align: center;
  margin: 0 auto 2rem;
  max-width: 640px;
  color: var(--text-muted);
}

/* Cards */
.grid-2,
.grid-3,
.grid-4 {
  display: grid;
  gap: 1.25rem;
}

.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: var(--white);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 1.5rem;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.card:hover {
  border-color: rgba(13, 148, 136, 0.45);
  box-shadow: var(--shadow-md);
}

.icon-box {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  margin-bottom: 1rem;
}

.card h3 {
  margin: 0 0 0.5rem;
  font-size: 1.1rem;
  color: var(--navy);
}

.card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 0.95rem;
}

.product-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  padding: 1.75rem;
}

.product-card .btn { margin-top: auto; align-self: flex-start; }

/* Promo */
.promo-banner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.5rem;
  background: var(--navy);
  color: #fff;
  border-radius: var(--radius-lg);
  border: 1px solid rgba(13, 148, 136, 0.35);
}

.promo-banner strong { color: #99f6e4; }
.promo-code {
  font-family: ui-monospace, monospace;
  letter-spacing: 0.08em;
  background: rgba(13, 148, 136, 0.2);
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  border: 1px dashed rgba(153, 246, 228, 0.5);
}

/* Pricing */
.planos-container {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
  align-items: stretch;
}

.plano-card {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1.5rem 1.25rem 1.35rem;
  display: flex;
  flex-direction: column;
  text-align: left;
  position: relative;
  overflow: hidden;
  box-shadow: var(--shadow);
}

.plano-card.featured {
  border-color: var(--teal);
  box-shadow: 0 12px 32px rgb(13 148 136 / 0.16);
}

.plano-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  background: var(--teal);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
}

.plano-badge.alt { background: var(--navy); }

.plano-titulo {
  font-size: 1rem;
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.75rem;
}

.plano-preco,
.plano-total {
  font-size: 2rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.03em;
  line-height: 1.1;
}

.plano-mes,
.plano-detalhe {
  color: var(--text-muted);
  font-size: 0.9rem;
  margin: 0.25rem 0 0.5rem;
}

.plano-desconto {
  display: inline-flex;
  align-self: flex-start;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.78rem;
  font-weight: 700;
  padding: 0.2rem 0.5rem;
  border-radius: 999px;
  margin-bottom: 0.5rem;
}

.plano-obs {
  margin-top: auto;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  color: var(--text);
  font-size: 0.88rem;
  line-height: 1.7;
}

.btn-comprar-plano {
  margin-top: 1rem;
  width: 100%;
}

.tabela-comparativa-wrapper {
  overflow-x: auto;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow);
}

.tabela-comparativa {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.9rem;
}

.tabela-comparativa th,
.tabela-comparativa td {
  padding: 0.85rem 1rem;
  text-align: center;
  border-bottom: 1px solid var(--border);
}

.tabela-comparativa th {
  background: var(--navy);
  color: #fff;
  font-weight: 600;
}

.tabela-comparativa td:first-child {
  text-align: left;
  font-weight: 600;
  color: var(--navy);
}

.tabela-comparativa tbody tr:hover td { background: #f8fffe; }

.info-section {
  background: #fff;
  border: 1px solid var(--border);
  border-left: 4px solid var(--teal);
  border-radius: var(--radius-lg);
  padding: 1.35rem 1.5rem;
  box-shadow: var(--shadow);
}

.info-section h3 {
  margin: 0 0 0.5rem;
  color: var(--navy);
}

.info-section p { margin: 0; color: var(--text-muted); }

/* Portfolio */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}

.portfolio-card { padding: 0; overflow: hidden; }

.portfolio-card-media {
  aspect-ratio: 16/9;
  background: #eef2f6;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}

.portfolio-card-media img,
.portfolio-card-media video {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.play-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgb(0 47 75 / 0.35);
  color: #fff;
  font-size: 3rem;
}

.portfolio-card-body { padding: 1.1rem 1.2rem 1.25rem; }

.portfolio-card-body h3 {
  margin: 0;
  font-size: 1rem;
}

.portfolio-card-link {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  margin-top: 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  text-decoration: none;
}

/* Footer */
.site-footer {
  margin-top: 3rem;
  padding: 2rem 1rem;
  text-align: center;
  background: var(--navy);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.9rem;
}

.site-footer a { color: #99f6e4; text-decoration: none; font-weight: 600; }
.site-footer a:hover { color: #fff; }

.btn-topo {
  position: fixed;
  right: 20px;
  bottom: 20px;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: var(--radius);
  background: var(--teal);
  color: #fff;
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 40;
}
.btn-topo.visible { display: flex; }
.btn-topo:hover { background: var(--teal-dark); }

/* Modals */
.modal-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgb(15 23 42 / 0.55);
  backdrop-filter: blur(4px);
}

.modal-bg.active { display: flex; }

.modal-box,
.modal {
  background: #fff;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  width: min(560px, 100%);
  max-height: 90vh;
  overflow: auto;
  padding: 1.25rem 1.35rem 1.4rem;
  position: relative;
}

.modal-header-row,
.modal h2,
.modal-box h2 {
  margin: 0 1.75rem 1rem 0;
  font-size: 1.05rem;
  color: var(--navy);
}

.modal-close,
.close-btn {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius);
  background: var(--bg);
  color: var(--text-muted);
  cursor: pointer;
  font-size: 1.2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.modal-close:hover,
.close-btn:hover { background: #e5e7eb; color: var(--text); }

.sistema-opcoes { display: grid; gap: 0.75rem; }

.sistema-opcao {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  padding: 1rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: #fff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.15s ease;
}

.sistema-opcao:hover { border-color: var(--teal); }

.sistema-icon {
  width: 44px;
  height: 44px;
  border-radius: var(--radius);
  background: var(--teal-soft);
  color: var(--teal-dark);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.sistema-info h3 { margin: 0 0 0.2rem; font-size: 1rem; color: var(--navy); }
.sistema-info p { margin: 0; font-size: 0.85rem; color: var(--text-muted); }
.sistema-arrow { margin-left: auto; color: var(--teal); }

.login-info-demo {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.85rem;
}

.demo-sistema {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 1rem;
  background: var(--bg);
}

.demo-title {
  font-weight: 700;
  color: var(--navy);
  margin-bottom: 0.55rem;
}

.demo-btn { margin-top: 0.85rem; width: 100%; }

/* Cupom */
.cupom-modal-box { width: min(460px, 100%); text-align: center; padding: 1.6rem 1.4rem; }

.cupom-badge {
  display: inline-block;
  background: var(--teal-soft);
  color: var(--teal-dark);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 0.28rem 0.7rem;
  border-radius: 999px;
  margin-bottom: 0.75rem;
}

.cupom-code {
  display: inline-block;
  margin: 0.75rem 0;
  padding: 0.65rem 1rem;
  border: 1px dashed var(--teal);
  border-radius: var(--radius);
  font-size: 1.55rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  color: var(--navy);
}

.cupom-desconto {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--teal-dark);
}

.cupom-msg,
.cupom-sempre { color: var(--text-muted); margin: 0.4rem 0; }

.cupom-cta { margin-top: 1rem; }

/* Payment form */
.modal-pagamento { width: min(480px, 100%); text-align: left; }

.resumo-compra {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem 1rem;
  margin-bottom: 1rem;
}

.resumo-linha { display: flex; justify-content: space-between; font-size: 0.9rem; margin-bottom: 0.35rem; }
.resumo-linha.total { margin-top: 0.5rem; padding-top: 0.5rem; border-top: 1px solid var(--border); font-weight: 700; color: var(--navy); }

.form-secao { margin-bottom: 0.85rem; }
.form-secao label { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--navy); margin-bottom: 0.3rem; }
.form-row-duo { display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem; }

.modal-input-group { position: relative; }
.modal-input-group i {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
}

.modal input,
.cupom-input-group input {
  width: 100%;
  min-height: var(--control-height);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.4rem 0.75rem 0.4rem 2.2rem;
  font-family: inherit;
  font-size: 0.9rem;
  outline: none;
}

.cupom-input-group input { padding-left: 0.75rem; }

.modal input:focus {
  border-color: var(--teal);
  box-shadow: 0 0 0 3px rgb(13 148 136 / 0.15);
}

.cupom-input-group { display: flex; gap: 0.5rem; }
.btn-cupom { min-height: var(--control-height); }

.cupom-msg.success { color: var(--teal-dark); font-size: 0.82rem; }
.cupom-msg.error { color: #dc2626; font-size: 0.82rem; }

.sistema-escolha-opcoes { display: grid; gap: 0.4rem; }
.sistema-escolha-opt { display: flex; gap: 0.45rem; font-size: 0.9rem; cursor: pointer; }

.btn-pagar-mp { width: 100%; }
.payment-info { font-size: 0.85rem; color: var(--text-muted); display: flex; align-items: center; gap: 0.4rem; }

.modal-resultado { text-align: center; }
.resultado-icon {
  width: 64px;
  height: 64px;
  margin: 0.4rem auto 1rem;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.8rem;
  color: #fff;
}
.modal-resultado.success .resultado-icon { background: var(--teal); }
.modal-resultado.failure .resultado-icon { background: #dc2626; }
.modal-resultado.pending .resultado-icon { background: #d97706; }

.resultado-acoes { display: grid; gap: 0.65rem; }
.btn-whatsapp-sucesso,
.btn-personalizado-whatsapp {
  background: #16a34a;
  color: #fff;
}
.btn-whatsapp-sucesso:hover,
.btn-personalizado-whatsapp:hover { background: #15803d; }

.modal-midia-bg {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1100;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgb(15 23 42 / 0.72);
}

.modal-midia-bg.active { display: flex; }

.modal-midia-content { position: relative; max-width: 90vw; }

.modal-midia-content img,
.modal-midia-content video {
  max-width: 100%;
  max-height: 85vh;
  border-radius: var(--radius-lg);
}

.modal-midia-close {
  position: absolute;
  top: -40px;
  right: 0;
  width: 32px;
  height: 32px;
  border: 0;
  border-radius: var(--radius);
  background: #fff;
  cursor: pointer;
}

@media (max-width: 1024px) {
  .planos-container,
  .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .portfolio-grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 768px) {
  .mobile-menu-btn { display: inline-flex; }
  .site-header { flex-wrap: wrap; }
  #main-nav {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.5rem 0 0.75rem;
  }
  #main-nav.open { display: flex; }
  .grid-2,
  .grid-3,
  .login-info-demo,
  .form-row-duo { grid-template-columns: 1fr; }
  .hero-actions .btn { width: 100%; }
}

@media (max-width: 640px) {
  .planos-container,
  .portfolio-grid { grid-template-columns: 1fr; }
  .logo span { font-size: 0.9rem; letter-spacing: 0.08em; }
  .logo img { height: 38px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .site-bg::after { animation: none; }
  [data-aos] { opacity: 1 !important; transform: none !important; }
}
