/* ==========================================================
   PDV Pro (Infortec Solutions) — Landing page
   ========================================================== */

:root {
  --primary: #1d5ce6;
  --primary-dark: #1546b8;
  --cyan: #22b5f0;
  --navy: #0b1a4a;
  --navy-2: #0f172a;
  --green: #10b981;
  --whats: #25d366;
  --ink: #0f172a;
  --text: #334155;
  --muted: #64748b;
  --line: #e2e8f0;
  --bg: #ffffff;
  --bg-alt: #f5f8fd;
  --radius: 16px;
  --shadow: 0 10px 30px -12px rgba(15, 23, 42, .18);
  --shadow-lg: 0 30px 60px -20px rgba(11, 26, 74, .40);
}

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

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

body {
  font-family: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
ul, ol { list-style: none; }

h1, h2, h3 { color: var(--ink); line-height: 1.15; letter-spacing: -.02em; }
h1 { font-size: clamp(2.1rem, 4.6vw, 3.4rem); font-weight: 800; }
h2 { font-size: clamp(1.8rem, 3.4vw, 2.5rem); font-weight: 800; }
h3 { font-size: 1.15rem; font-weight: 700; }

.container { width: min(1200px, 100% - 32px); margin-inline: auto; }
.container--narrow { width: min(780px, 100% - 32px); }

.grad {
  background: linear-gradient(90deg, var(--primary), var(--cyan));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

kbd {
  display: inline-grid; place-items: center; min-width: 40px; padding: 6px 8px;
  font: 700 .85rem/1 ui-monospace, "Cascadia Mono", Consolas, monospace;
  color: var(--ink); background: #fff; border: 1px solid #cbd5e1; border-bottom-width: 3px; border-radius: 8px;
}

/* ---------- Botões ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 24px; border-radius: 12px; font-weight: 600; font-size: 1rem;
  transition: transform .2s, box-shadow .2s, background .2s, color .2s, border-color .2s;
}
.btn--primary { background: var(--primary); color: #fff; box-shadow: 0 8px 20px -8px rgba(29, 92, 230, .7); }
.btn--primary:hover { background: var(--primary-dark); transform: translateY(-2px); }
.btn--ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); }
.btn--ghost:hover { border-color: var(--primary); color: var(--primary); transform: translateY(-2px); }
.btn--sm { padding: 10px 18px; font-size: .92rem; }
.btn--block { width: 100%; }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, box-shadow .3s;
}
.header.is-scrolled { border-color: var(--line); box-shadow: 0 4px 20px -10px rgba(15, 23, 42, .15); }
.header__inner { display: flex; align-items: center; justify-content: space-between; height: 72px; }

.logo { display: flex; align-items: center; gap: 10px; color: var(--navy); }
.logo span { display: flex; flex-wrap: wrap; column-gap: .28em; font-size: 1.3rem; font-weight: 600; line-height: 1.05; }
.logo small { flex-basis: 100%; margin-top: 2px; }
.logo strong { color: var(--primary); font-weight: 800; }
.logo small { font-size: .7rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.logo--light { color: #fff; }
.logo--light strong { color: var(--cyan); }
.logo--light small { color: #94a3b8; }

.nav { display: flex; align-items: center; gap: 28px; }
.nav a:not(.btn) { font-weight: 500; position: relative; }
.nav a:not(.btn)::after {
  content: ""; position: absolute; left: 0; bottom: -4px; height: 2px; width: 0;
  background: var(--primary); transition: width .25s;
}
.nav a:not(.btn):hover { color: var(--primary); }
.nav a:not(.btn):hover::after { width: 100%; }

.menu-toggle { display: none; width: 44px; height: 44px; flex-direction: column; justify-content: center; gap: 5px; align-items: center; }
.menu-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; transition: .3s; }
.menu-toggle.is-open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

/* ---------- Hero ---------- */
.hero {
  position: relative; padding: 64px 0 96px; overflow: hidden;
  background:
    radial-gradient(800px 420px at 90% 0%, rgba(34, 181, 240, .16), transparent 60%),
    radial-gradient(700px 420px at 0% 100%, rgba(29, 92, 230, .10), transparent 60%);
}
.hero__inner { display: grid; grid-template-columns: .9fr 1.1fr; gap: 56px; align-items: center; }

.badge {
  display: inline-block; padding: 6px 14px; border-radius: 999px; margin-bottom: 20px;
  background: #eaf1ff; color: var(--primary); font-size: .85rem; font-weight: 600;
  border: 1px solid #c6d8ff;
}
.lead { font-size: 1.15rem; margin: 20px 0 32px; max-width: 540px; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 28px; font-size: .92rem; color: var(--muted); }
.hero__checks li::before { content: "✓"; color: var(--green); font-weight: 800; margin-right: 6px; }

/* Janela de programa Windows em volta dos prints */
.window {
  display: block; width: 100%; text-align: left;
  background: #fff; border-radius: 14px; overflow: hidden;
  box-shadow: var(--shadow-lg); border: 1px solid rgba(15, 23, 42, .12);
}
.window__bar {
  display: flex; align-items: center; gap: 8px; height: 32px; padding: 0 0 0 12px;
  background: #f1f5f9; border-bottom: 1px solid var(--line); font-size: .75rem; color: var(--muted);
}
.window__bar span { flex: 1; }
.window__bar i { width: 42px; height: 100%; position: relative; }
.window__bar i::before { content: ""; position: absolute; inset: 50% 15px auto; height: 1px; background: #64748b; }
.window__bar i:nth-of-type(2)::before { inset: 11px 16px; height: auto; border: 1px solid #64748b; background: none; }
.window__bar i:nth-of-type(3)::before { content: "×"; inset: 0; height: auto; background: none; display: grid; place-items: center; font-size: 1rem; font-style: normal; }
.window > img { width: 100%; height: auto; }

.hero__shot { position: relative; }
.hero__shot .window { transform: perspective(1600px) rotateY(-7deg) rotateX(2deg); transition: transform .6s; }
.hero__shot:hover .window { transform: none; }

.float-card {
  position: absolute; display: flex; align-items: center; gap: 12px;
  padding: 12px 16px; border-radius: 14px; background: #fff;
  box-shadow: var(--shadow); border: 1px solid var(--line);
  animation: float 5s ease-in-out infinite;
}
.float-card small { display: block; font-size: .72rem; color: var(--muted); }
.float-card strong { color: var(--ink); font-size: .95rem; }
.float-card--a { left: -24px; bottom: -26px; }
.float-card--b { right: -14px; top: -24px; animation-delay: -2.5s; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex-shrink: 0; }
.dot--green { background: var(--green); box-shadow: 0 0 0 4px #d1fae5; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Faixa ---------- */
.strip { background: var(--navy); color: #b9c7ec; padding: 36px 0; }
.strip__grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.strip__item strong { display: block; font-size: 1.35rem; font-weight: 800; color: #fff; }
.strip__item span { font-size: .9rem; }

/* ---------- Seções ---------- */
.section { padding: 96px 0; }
.section--alt { background: var(--bg-alt); }
.section--dark {
  color: #b9c7ec;
  background: radial-gradient(900px 500px at 100% 0%, rgba(34, 181, 240, .18), transparent 60%), var(--navy);
}
.section--dark h2 { color: #fff; }
.section__head { text-align: center; max-width: 660px; margin: 0 auto 56px; }
.section__head p { margin-top: 14px; font-size: 1.08rem; color: var(--muted); }
.section--dark .section__head p { color: #b9c7ec; }
.eyebrow {
  display: inline-block; margin-bottom: 12px; font-size: .82rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: .1em; color: var(--primary);
}
.eyebrow--light { color: var(--cyan); }
.muted-lg { margin-top: 16px; font-size: 1.08rem; color: var(--muted); }

/* ---------- Recursos ---------- */
.features { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.feature {
  padding: 28px 24px; border-radius: var(--radius); background: #fff;
  border: 1px solid var(--line); transition: transform .25s, box-shadow .25s, border-color .25s;
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: #c6d8ff; }
.feature__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: linear-gradient(135deg, #eaf1ff, #e0f6fe); color: var(--primary); margin-bottom: 18px;
}
.feature__icon svg { width: 24px; height: 24px; }
.feature p { margin-top: 8px; font-size: .95rem; color: var(--muted); }

.extras { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 40px; }
.extras li {
  padding: 8px 16px; border-radius: 999px; font-size: .9rem; font-weight: 500;
  background: var(--bg-alt); border: 1px solid var(--line); color: var(--ink);
}
.extras li::before { content: "+"; color: var(--primary); font-weight: 800; margin-right: 6px; }

/* ---------- Galeria de telas ---------- */
.gallery__tabs { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-bottom: 36px; }
.gtab {
  padding: 10px 18px; border-radius: 999px; font-weight: 600; font-size: .95rem;
  color: #cbd5f5; border: 1px solid rgba(255, 255, 255, .18); transition: .2s;
}
.gtab:hover { border-color: var(--cyan); color: #fff; }
.gtab.is-active { background: #fff; color: var(--navy); border-color: #fff; }

.gallery__body { display: grid; grid-template-columns: 300px 1fr; gap: 40px; align-items: center; }
.gallery__info h3 { color: #fff; font-size: 1.5rem; }
.gallery__info p { margin-top: 12px; font-size: 1.02rem; }
.gallery__hint { display: inline-block; margin-top: 20px; font-size: .82rem; color: #7f93c9; }
.gallery__frame { cursor: zoom-in; transition: transform .3s; }
.gallery__frame:hover { transform: translateY(-4px); }
.gallery__frame > img { transition: opacity .25s; }
.gallery__frame.is-loading > img { opacity: .3; }

/* ---------- Atalhos ---------- */
.keys-wrap { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.keys { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; }
.key {
  display: grid; justify-items: start; gap: 10px; padding: 14px; border-radius: 14px;
  background: var(--bg-alt); border: 1px solid var(--line); font-size: .85rem; font-weight: 500; color: var(--ink);
  transition: transform .2s, border-color .2s;
}
.key:hover { transform: translateY(-3px); border-color: var(--primary); }
.key--main { background: var(--primary); border-color: var(--primary); color: #fff; }
.key--main kbd { border-color: #0e3a9c; }

/* ---------- Perfis e módulos ---------- */
.profiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.profile {
  padding: 32px 28px; border-radius: 20px; background: #fff; border: 1px solid var(--line);
  transition: transform .25s, box-shadow .25s;
}
.profile:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.profile__emoji { display: grid; place-items: center; width: 56px; height: 56px; font-size: 1.8rem; border-radius: 14px; background: var(--bg-alt); margin-bottom: 18px; }
.profile p { margin-top: 10px; color: var(--muted); }

.addons { margin-top: 32px; padding: 32px; border-radius: 20px; background: #fff; border: 1px dashed #b7cbf5; }
.addons h3 { margin-bottom: 18px; }
.addons__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.addon { display: grid; gap: 4px; padding: 16px 18px; border-radius: 12px; background: var(--bg-alt); }
.addon strong { color: var(--primary); }
.addon span { font-size: .92rem; color: var(--muted); }
.addons__note { margin-top: 18px; font-size: .92rem; color: var(--muted); }
.addons__note::before { content: "✓ "; color: var(--green); font-weight: 800; }

/* ---------- Passos ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; position: relative; }
.steps::before {
  content: ""; position: absolute; top: 28px; left: 16%; right: 16%; height: 2px;
  background: repeating-linear-gradient(90deg, #c6d8ff 0 8px, transparent 8px 16px);
}
.step { text-align: center; position: relative; padding: 0 12px; }
.step__num {
  width: 56px; height: 56px; margin: 0 auto 20px; border-radius: 50%; display: grid; place-items: center;
  font-size: 1.3rem; font-weight: 800; color: #fff; position: relative;
  background: linear-gradient(135deg, var(--primary), var(--cyan)); box-shadow: 0 0 0 8px #fff, 0 10px 24px -8px rgba(29, 92, 230, .6);
}
.step p { margin-top: 8px; color: var(--muted); }

/* ---------- FAQ ---------- */
.faq details {
  background: #fff; border: 1px solid var(--line); border-radius: 14px; margin-bottom: 12px;
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] { border-color: #c6d8ff; box-shadow: var(--shadow); }
.faq summary {
  list-style: none; cursor: pointer; padding: 20px 56px 20px 24px; font-weight: 600; color: var(--ink); position: relative;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; position: absolute; right: 22px; top: 50%; transform: translateY(-50%);
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: #eaf1ff; color: var(--primary); font-size: 1.2rem; font-weight: 600; transition: transform .25s;
}
.faq details[open] summary::after { transform: translateY(-50%) rotate(45deg); }
.faq details p { padding: 0 24px 22px; color: var(--muted); }

/* ---------- CTA ---------- */
.cta {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 48px; align-items: center;
  padding: 56px; border-radius: 28px; color: #d6e2ff;
  background:
    radial-gradient(500px 300px at 0% 0%, rgba(34, 181, 240, .28), transparent 60%),
    linear-gradient(135deg, var(--navy), var(--primary-dark));
  box-shadow: var(--shadow-lg);
}
.cta h2 { color: #fff; }
.cta__text p { margin: 16px 0 28px; font-size: 1.08rem; }
.cta__whats {
  display: inline-flex; align-items: center; gap: 10px; padding: 14px 22px; border-radius: 12px;
  background: var(--whats); color: #053b1d; font-weight: 700; font-size: 1.1rem; transition: transform .2s;
}
.cta__whats:hover { transform: translateY(-2px); }
.cta__logo { margin-top: 36px; width: 240px; padding: 14px 18px; background: #fff; border-radius: 14px; }

.form { background: #fff; padding: 28px; border-radius: 20px; display: grid; gap: 14px; }
.form h3 { margin-bottom: 4px; }
.form label { display: grid; gap: 6px; font-size: .88rem; font-weight: 600; color: var(--ink); }
.form input, .form select {
  font: inherit; font-weight: 400; padding: 12px 14px; border-radius: 10px;
  border: 1px solid var(--line); background: var(--bg-alt); color: var(--ink); transition: border-color .2s, box-shadow .2s;
}
.form input:focus, .form select:focus { outline: none; border-color: var(--primary); box-shadow: 0 0 0 4px #dbe7ff; background: #fff; }
.form .is-invalid { border-color: #ef4444; }
.form__msg { font-size: .9rem; text-align: center; min-height: 1.4em; }
.form__msg.ok { color: #047857; }
.form__msg.err { color: #dc2626; }

/* ---------- Rodapé ---------- */
.footer { background: var(--navy-2); color: #94a3b8; padding: 40px 0; }
.footer__inner { display: flex; align-items: center; justify-content: space-between; gap: 20px 32px; flex-wrap: wrap; }
.footer__slogan { font-weight: 500; color: #cbd5e1; }
.footer__nav { display: flex; gap: 24px; }
.footer__nav a:hover { color: #fff; }
.footer__copy { width: 100%; font-size: .85rem; padding-top: 20px; border-top: 1px solid #1e293b; }

/* ---------- WhatsApp flutuante ---------- */
.whats-float {
  position: fixed; right: 20px; bottom: 20px; z-index: 60; width: 58px; height: 58px; border-radius: 50%;
  display: grid; place-items: center; background: var(--whats); color: #fff;
  box-shadow: 0 10px 25px -8px rgba(0, 0, 0, .45); transition: transform .2s;
}
.whats-float:hover { transform: scale(1.08); }

/* ---------- Lightbox ---------- */
.lightbox {
  position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px;
  background: rgba(2, 6, 23, .88); cursor: zoom-out; animation: fadeIn .2s ease;
}
.lightbox[hidden] { display: none; }
.lightbox img { max-width: 100%; max-height: 100%; border-radius: 10px; box-shadow: 0 30px 80px rgba(0, 0, 0, .6); }
.lightbox__close { position: absolute; top: 14px; right: 18px; font-size: 2.4rem; line-height: 1; color: #fff; }
@keyframes fadeIn { from { opacity: 0; } }

/* ---------- Animação de entrada ---------- */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.is-visible { opacity: 1; transform: none; }

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

/* ---------- Responsivo ---------- */
@media (max-width: 1080px) {
  .features { grid-template-columns: repeat(2, 1fr); }
  .hero__inner, .keys-wrap { grid-template-columns: 1fr; }
  .hero__shot { max-width: 760px; margin: 24px auto 0; width: 100%; }
  .gallery__body { grid-template-columns: 1fr; gap: 24px; }
  .gallery__info { text-align: center; max-width: 640px; margin-inline: auto; }
  .cta { grid-template-columns: 1fr; padding: 40px; }
}

@media (max-width: 820px) {
  .menu-toggle { display: flex; }
  .nav {
    position: fixed; inset: 72px 0 auto 0; flex-direction: column; align-items: stretch; gap: 0;
    background: #fff; padding: 12px 16px 24px; border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 30px -20px rgba(15, 23, 42, .3);
    transform: translateY(-120%); transition: transform .3s ease; z-index: -1;
  }
  .nav.is-open { transform: none; }
  .nav a:not(.btn) { padding: 14px 4px; border-bottom: 1px solid var(--bg-alt); }
  .nav a:not(.btn)::after { display: none; }
  .nav__cta { margin-top: 16px; }

  .strip__grid { grid-template-columns: repeat(2, 1fr); row-gap: 28px; }
  .profiles, .addons__list { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .section { padding: 72px 0; }
}

@media (max-width: 560px) {
  .hero { padding: 40px 0 72px; }
  .features { grid-template-columns: 1fr; }
  .keys { grid-template-columns: repeat(3, 1fr); }
  .hero__shot .window { transform: none; }
  .float-card--a { left: 8px; bottom: -30px; }
  .float-card--b { right: 8px; top: -28px; }
  .hero__actions .btn { width: 100%; }
  .cta { padding: 28px 20px; border-radius: 20px; }
  .form { padding: 20px; }
  .addons { padding: 22px; }
  .footer__inner { flex-direction: column; text-align: center; }
  .footer__nav { flex-wrap: wrap; justify-content: center; }
}
