/* Landing da JYZE CRM. Mobile first nas correções de toque; layout em três faixas:
   celular < 600px · tablet 600-899px · desktop 900px+. */
:root {
  --blue: #2563eb;
  --violet: #4f46e5;
  --ink: #172033;
  --ink2: #43516a;
  --muted: #64748b;
  --bg: #fafcff;
  --line: #dce6f5;
  --grad: linear-gradient(135deg, #2563eb, #4f46e5);
  --max: 1160px;
  --ease: cubic-bezier(.22, 1, .36, 1);
  --shadow: 0 26px 70px -36px #1e3a8a66;
  --gutter: 22px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 95px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

body {
  margin: 0;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', Arial, sans-serif;
  line-height: 1.6;
  -webkit-tap-highlight-color: transparent;
}

a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1, h2, h3 { letter-spacing: -.04em; line-height: 1.1; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
::selection { background: #dbeafe; color: var(--ink); }

.container {
  width: min(100%, var(--max));
  margin: auto;
  padding-inline: max(var(--gutter), env(safe-area-inset-left, 0px)) max(var(--gutter), env(safe-area-inset-right, 0px));
}

/* Cabeçalho */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  border-bottom: 1px solid transparent;
  background: #fafcffd9;
  -webkit-backdrop-filter: blur(16px);
  backdrop-filter: blur(16px);
  transition: .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: 0 4px 24px #1e3a8a0d; }
.header-inner { display: flex; align-items: center; gap: 22px; height: 88px; }
.brand { display: inline-flex; flex: none; align-items: center; min-height: 44px; }
.brand img { display: block; width: auto; height: 40px; }
.nav { display: flex; gap: 4px; margin-left: 12px; }
.nav a { padding: 9px 11px; border-radius: 9px; color: var(--ink2); font-size: 13px; font-weight: 700; }
.nav a:hover { background: #eaf1ff; color: var(--blue); }
.header-cta { display: flex; gap: 10px; margin-left: auto; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 44px;
  padding: 12px 19px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 800;
  line-height: 1;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--grad); color: #fff; box-shadow: 0 14px 30px -13px #2563eb99; }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-lg { min-height: 52px; padding: 16px 25px; font-size: 15px; }

@media (hover: hover) { .btn:hover { transform: translateY(-2px); } }

.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  font-size: 22px;
  cursor: pointer;
}
.mobile-menu { padding: 8px var(--gutter) 20px; border-top: 1px solid var(--line); background: #fff; }
.mobile-menu a:not(.btn) { display: block; padding: 12px; color: var(--ink2); font-weight: 700; }
.mobile-menu .btn { width: 100%; margin-top: 10px; }

/* Hero */
.hero { position: relative; padding: 70px 0 0; overflow: hidden; }
.hero-glow,
.hero-grid { position: absolute; inset: 0; pointer-events: none; }
.hero-glow {
  height: 850px;
  background: radial-gradient(520px 420px at 80% 4%, #c7d9ffb3, transparent 64%), radial-gradient(510px 400px at 10% 28%, #e2e7ffb3, transparent 67%);
  animation: glow 14s ease-in-out infinite alternate;
}
/* A máscara fica parada no contêiner; só o padrão do pseudo-elemento desliza, via transform. */
.hero-grid {
  height: 780px;
  overflow: hidden;
  opacity: .48;
  -webkit-mask-image: radial-gradient(700px 430px at 58% 20%, #000, transparent 74%);
  mask-image: radial-gradient(700px 430px at 58% 20%, #000, transparent 74%);
}
.hero-grid::before {
  position: absolute;
  inset: -44px 0 0 -44px;
  background-image: linear-gradient(#2563eb0d 1px, transparent 1px), linear-gradient(90deg, #2563eb0d 1px, transparent 1px);
  background-size: 44px 44px;
  content: '';
  animation: grid 22s linear infinite;
}
.hero-inner { position: relative; display: grid; grid-template-columns: 1fr 1.04fr; align-items: center; gap: 52px; padding-bottom: 54px; }

.eyebrow,
.kicker { display: inline-flex; align-items: center; color: #1d4ed8; font-size: 11px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; }
.eyebrow { padding: 8px 13px; border: 1px solid var(--line); border-radius: 999px; background: #fff; box-shadow: 0 6px 14px #1e3a8a0b; }

.hero h1 { margin-top: 19px; font-size: clamp(39px, 5vw, 62px); }
.hero h1 span { color: var(--blue); }
.lede { max-width: 500px; margin-top: 20px; color: var(--ink2); font-size: 17px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.trust-chips { display: flex; flex-wrap: wrap; gap: 9px 18px; margin: 23px 0 0; padding: 0; color: var(--muted); font-size: 13px; font-weight: 700; list-style: none; }

/* Prévia do painel */
.hero-mock { position: relative; animation: mock 6s ease-in-out infinite; }
.mock-window { overflow: hidden; border: 1px solid var(--line); border-radius: 24px; background: #fff; box-shadow: 0 35px 90px -37px #1e3a8a80; transition: .45s var(--ease); }
.mock-bar { display: flex; align-items: center; gap: 7px; padding: 13px 17px; border-bottom: 1px solid #e8eef8; background: #f8fbff; }
.mock-bar i { width: 9px; height: 9px; border-radius: 50%; background: #ff6b6b; }
.mock-bar i:nth-child(2) { background: #fbbf24; }
.mock-bar i:nth-child(3) { background: #34d399; }
.mock-bar span { margin-left: 9px; padding: 4px 12px; border: 1px solid #e4ebf7; border-radius: 7px; background: #fff; color: #718098; font-size: 10px; }
.mock-body { display: grid; grid-template-columns: 140px 1fr; min-height: 355px; }
.mock-body aside { padding: 18px 12px; border-right: 1px solid #e7edf8; background: linear-gradient(180deg, #fbfdff, #f4f8ff); }
.mock-body aside b { display: block; margin: 2px 8px 20px; font-size: 14px; }
.mock-body aside small { font-size: 7px; }
.mock-body aside em { display: block; margin: 3px 0; padding: 8px; border-radius: 8px; color: #718098; font-size: 10px; font-style: normal; font-weight: 700; }
.mock-body aside .active { background: #dbeafe; color: #1d4ed8; }
.mock-main { padding: 20px; }
.mock-heading { display: flex; align-items: center; justify-content: space-between; }
.mock-heading small,
.mock-heading b { display: block; }
.mock-heading small { color: #8491a4; font-size: 9px; }
.mock-heading b { font-size: 18px; }
.mock-heading button { padding: 8px 10px; border: 0; border-radius: 7px; background: #2563eb; color: #fff; font: 700 9px 'Plus Jakarta Sans'; }
.mock-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.mock-stats > div { padding: 10px; border: 1px solid #e7edf8; border-radius: 10px; transition: .3s var(--ease); }
.mock-stats small,
.mock-stats span { display: block; color: #8390a4; font-size: 8px; }
.mock-stats b { display: block; margin: 3px 0; font-size: 17px; }
.mock-stats span { color: #16a34a; }
.pipeline { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.pipeline > div { padding: 9px; border-radius: 9px; background: #f8faff; }
.pipeline > div > b { display: block; margin-bottom: 8px; font-size: 9px; }
.pipeline > div > b small { float: right; color: #8795a8; }
.pipeline i { display: inline-block; width: 6px; height: 6px; margin-right: 4px; border-radius: 50%; background: #2563eb; }
.pipeline i.amber { background: #f59e0b; }
.pipeline i.green { background: #16a34a; }
.pipeline article { display: block; margin-top: 6px; padding: 8px; border: 1px solid #e7edf8; border-radius: 7px; background: #fff; transition: .3s var(--ease); }
.pipeline strong,
.pipeline article span,
.pipeline article small { display: block; }
.pipeline strong { font-size: 8px; }
.pipeline article span,
.pipeline article small { margin-top: 2px; color: #8390a4; font-size: 7px; }

@media (hover: hover) {
  .hero-mock:hover .mock-window { box-shadow: 0 46px 100px -34px #1e3a8a8c; transform: translateY(-7px) rotate(-.4deg); }
  .mock-stats > div:hover,
  .pipeline article:hover { box-shadow: 0 9px 16px -13px #1e3a8a80; transform: translateY(-3px); }
}

.float-card { position: absolute; display: flex; align-items: center; gap: 9px; padding: 10px 12px; border: 1px solid #d9e5f6; border-radius: 12px; background: #fff; box-shadow: var(--shadow); }
.float-card span { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; background: #dbeafe; color: #2563eb; font-weight: 800; }
.float-card small,
.float-card b { display: block; font-size: 9px; }
.float-card small { color: #8190a4; }
.float-card.first { top: 20%; right: -30px; animation: floata 5s ease-in-out infinite; }
.float-card.second { bottom: 8%; left: -35px; animation: floatb 5.8s ease-in-out infinite; }

.strip { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); border: 1px solid var(--line); border-radius: 18px 18px 0 0; background: #ffffffcc; }
.strip div { padding: 19px 24px; border-right: 1px solid var(--line); }
.strip div:last-child { border: 0; }
.strip b,
.strip small { display: block; }
.strip b { font-size: 14px; }
.strip small { margin-top: 2px; color: var(--muted); font-size: 12px; }

/* Seções */
.section { padding: 108px 0; }
.alt { background: #f3f7ff; }
.section-head { max-width: 710px; margin-bottom: 43px; }
.section-head h2,
.split h2 { margin-top: 13px; font-size: clamp(30px, 4vw, 47px); }
.section-head p,
.split-copy > p { margin-top: 16px; color: var(--ink2); font-size: 16px; }

.feature-grid,
.audience-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.feature { min-height: 210px; padding: 25px; border: 1px solid var(--line); border-radius: 18px; background: #fff; box-shadow: 0 10px 28px -24px #1e3a8a55; transition: .3s var(--ease); }
.feature.highlight { background: linear-gradient(145deg, #eff6ff, #fff); }
.icon { display: grid; place-items: center; width: 43px; height: 43px; border-radius: 12px; background: #dbeafe; color: #1d4ed8; font-size: 22px; }
.feature h3 { margin-top: 22px; font-size: 18px; }
.feature p { margin-top: 9px; color: var(--muted); font-size: 14px; }

.split { display: grid; grid-template-columns: 1fr 1fr; align-items: center; gap: 92px; }
.check-list { display: grid; gap: 10px; margin: 25px 0 0; padding: 0; color: var(--ink2); font-size: 14px; font-weight: 700; list-style: none; }
.flow-card { padding: 27px; border: 1px solid #d7e4f6; border-radius: 22px; background: #fff; box-shadow: var(--shadow); }
.flow-label { display: block; margin-bottom: 18px; color: #66758a; font-size: 11px; font-weight: 800; letter-spacing: .11em; text-transform: uppercase; }
.flow-step { position: relative; display: flex; align-items: center; gap: 13px; padding: 13px 0; }
.flow-step:not(:last-child)::after { position: absolute; top: 49px; left: 17px; width: 1px; height: 22px; background: #cbdaf0; content: ""; }
.flow-step b { display: grid; place-items: center; flex: none; width: 35px; height: 35px; border-radius: 10px; background: #dbeafe; color: #1d4ed8; font-size: 12px; }
.flow-step strong,
.flow-step small { display: block; }
.flow-step strong { font-size: 14px; }
.flow-step small { color: var(--muted); font-size: 12px; }
.flow-step i { flex: none; width: 9px; height: 9px; margin-left: auto; border-radius: 50%; background: #2563eb; }
.flow-step.final i { background: #16a34a; }

.audience { padding: 27px; border-top: 2px solid #2563eb; border-radius: 0 0 18px 18px; background: #fff; box-shadow: var(--shadow); transition: .3s var(--ease); }
.audience span { color: #2563eb; font-size: 12px; font-weight: 800; }
.audience h3 { margin-top: 33px; font-size: 19px; }
.audience p { margin-top: 9px; color: var(--muted); font-size: 14px; }

@media (hover: hover) {
  .feature:hover,
  .audience:hover { border-color: #b9d2fa; box-shadow: 0 24px 42px -27px #1e3a8a80; transform: translateY(-7px); }
}

/* Perguntas: o summary inteiro é a área de toque. */
.faq-wrap { display: grid; grid-template-columns: .8fr 1.2fr; gap: 70px; }
.faq { display: grid; gap: 10px; }
.faq details { border: 1px solid var(--line); border-radius: 13px; background: #fff; }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 56px; padding: 16px 20px; font-size: 14px; font-weight: 800; list-style: none; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary span { flex: none; color: #2563eb; font-size: 20px; line-height: 16px; transition: transform .2s var(--ease); }
.faq details[open] summary span { transform: rotate(45deg); }
.faq p { padding: 0 20px 18px; color: var(--muted); font-size: 14px; }

.final-cta { padding: 108px 0; background: radial-gradient(550px 260px at 80% 0, #4f46e5, transparent 65%), #172554; color: #fff; text-align: center; }
.final-cta .container { max-width: 780px; }
.kicker.light { color: #bfdbfe; }
.final-cta h2 { margin-top: 15px; font-size: clamp(33px, 4.5vw, 52px); }
.final-cta p { max-width: 570px; margin: 18px auto 28px; color: #cbd5e1; }
.btn-white { background: #fff; color: #1d4ed8; box-shadow: 0 16px 32px -17px #000; }

footer { padding: 28px 0 max(28px, env(safe-area-inset-bottom, 0px)); background: #101b3e; color: #afbdd8; }
.footer-inner { display: flex; align-items: center; gap: 24px; }
.footer-inner .brand img { height: 28px; filter: brightness(0) invert(1); }
.footer-inner p { font-size: 13px; }
.footer-inner > a:last-child { display: inline-flex; align-items: center; min-height: 44px; margin-left: auto; color: #fff; font-size: 13px; font-weight: 700; }

/* Revelação ao rolar: o conteúdo só fica oculto quando o script avisa que está rodando. */
.js .reveal { opacity: 0; transform: translateY(18px); transition: opacity .65s var(--ease), transform .65s var(--ease); }
.js .reveal.visible { opacity: 1; transform: none; }

@keyframes glow { to { transform: translate3d(0, -22px, 0) scale(1.04); } }
@keyframes grid { to { transform: translate(44px, 44px); } }
@keyframes mock { 50% { transform: translateY(-9px); } }
@keyframes floata { 50% { transform: translate(4px, -12px); } }
@keyframes floatb { 50% { transform: translate(-5px, 10px); } }

/* Tablet e celular: navegação no menu e uma coluna. */
@media (max-width: 899px) {
  .nav,
  .header-cta { display: none; }
  .menu-toggle { display: block; }
  .hero-inner,
  .split,
  .faq-wrap { grid-template-columns: 1fr; gap: 38px; }
  .hero-copy { text-align: center; }
  .hero-actions,
  .trust-chips { justify-content: center; }
  .lede { margin-inline: auto; }
  .hero-mock { max-width: 620px; margin: auto; }
  .feature-grid { grid-template-columns: repeat(2, 1fr); }
  .faq-wrap .section-head { margin-bottom: 0; }

  /* Os laços decorativos do fundo ficam parados: economizam bateria e quadros no celular. */
  .hero-glow,
  .hero-grid::before,
  .hero-mock,
  .float-card { animation: none; }
}

@media (max-width: 599px) {
  :root { --gutter: 18px; }
  .header-inner { height: 72px; }
  .brand img { height: 34px; }
  .hero { padding-top: 40px; }
  .hero-inner { padding-bottom: 44px; }
  .hero h1 { font-size: 38px; }
  .lede { font-size: 16px; }
  .hero-actions .btn { flex: 1 1 100%; }
  .mock-body { grid-template-columns: 90px 1fr; min-height: 290px; }
  .mock-body aside { padding: 12px 7px; }
  .mock-body aside b { margin: 2px 3px 13px; font-size: 10px; }
  .mock-body aside em { padding: 7px 4px; font-size: 8px; }
  .mock-main { padding: 13px; }
  .mock-stats { grid-template-columns: 1fr 1fr; }
  .mock-stats > div:last-child,
  .pipeline > div:last-child,
  .float-card { display: none; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .strip { grid-template-columns: 1fr 1fr; border-radius: 14px; }
  .strip div { padding: 14px; border-bottom: 1px solid var(--line); }
  .strip div:nth-child(2n) { border-right: 0; }
  .strip div:nth-last-child(-n + 2) { border-bottom: 0; }
  .section { padding: 72px 0; }
  .feature-grid,
  .audience-grid { grid-template-columns: 1fr; }
  .feature { min-height: 0; }
  .section-head { margin-bottom: 30px; }
  .section-head h2,
  .split h2 { font-size: 31px; }
  .flow-card { padding: 22px 18px; }
  .final-cta { padding: 80px 0; }
  .footer-inner { flex-wrap: wrap; gap: 12px 24px; }
  .footer-inner > a:last-child { margin-left: 0; }
}

/* Movimento reduzido: laços decorativos param; a revelação vira só esmaecimento. */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-glow,
  .hero-grid::before,
  .hero-mock,
  .float-card { animation: none; }
  .js .reveal { transform: none; transition: opacity .4s ease; }
  .btn,
  .feature,
  .audience,
  .mock-window,
  .mock-stats > div,
  .pipeline article { transition: none; }
  .btn:hover,
  .feature:hover,
  .audience:hover,
  .hero-mock:hover .mock-window,
  .mock-stats > div:hover,
  .pipeline article:hover { transform: none; }
}
