/* Plugable — páginas de produto (Plugable Flex) no layout do site novo.
   Usa os tokens e componentes de site.css e o cabeçalho/rodapé de legal.css. */

.pl-b { color: var(--text); font-family: 'Sora', system-ui, sans-serif; overflow-x: clip; }
.pl-b *, .pl-b *::before, .pl-b *::after { box-sizing: border-box; }
.pl-b section { padding: 5rem 1.25rem; }
@media (min-width: 768px) { .pl-b section { padding: 7rem 2.5rem; } }
.pl-b .pl-b__wrap { max-width: 1160px; margin: 0 auto; }
.pl-b p { margin: 0 0 1rem; }
.pl-b img { display: block; max-width: 100%; }

.pl-b__eyebrow {
  margin: 0 0 1.1rem !important;
  color: var(--blue);
  font-weight: 500;
  font-size: .8rem;
  letter-spacing: .14em;
  text-transform: uppercase;
}

/* Abertura */
.pl-b__hero { text-align: center; padding-bottom: 3rem !important; }
.pl-b__hero h1 {
  max-width: 17ch;
  margin: 0 auto 1.4rem;
  font-weight: 800;
  font-size: clamp(2.3rem, 5.4vw, 4.4rem);
  line-height: 1.02;
  letter-spacing: -.03em;
  color: var(--heading);
}
.pl-b__hero > .pl-b__wrap > p:not(.pl-b__eyebrow) {
  max-width: 640px;
  margin: 0 auto 2rem;
  color: var(--muted);
  font-weight: 300;
  font-size: clamp(1rem, 1.6vw, 1.25rem);
  line-height: 1.6;
}
.pl-b__hero .pl-b__wrap > div[style] { margin-bottom: 3.5rem !important; }

.pl-b__cta-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 1rem 2.8rem;
  border-radius: 999px;
  background: var(--btn);   /* cor sólida, sem degradê */
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / 55%), 0 2px 6px rgb(0 0 0 / 18%);
  color: #fff !important;
  font-weight: 500;
  font-size: .95rem;
  letter-spacing: .1em;
  text-transform: uppercase;
  text-decoration: none !important;
  transition: filter .2s var(--ease), transform .2s var(--ease);
}
.pl-b__cta-btn:hover { background-color: var(--btn-hover); transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgb(0 0 0 / 60%), 0 0 0 6px rgb(0 0 0 / 8%); }
.pl-b__cta-btn--dark:hover { background-color: #fff; }
.pl-b__cta-btn:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }
.pl-b__cta-btn--dark {
  background: #fff;
  box-shadow: 0 10px 30px rgb(0 20 45 / 25%);
  outline: 0;
  color: var(--blue) !important;
}
.pl-b__cta-btn--dark:focus-visible { outline: 2px solid #fff; }

/* Celular flutuante da abertura */
.pl-b__shot {
  position: relative;
  width: min(300px, 70vw);
  margin: 0 auto;
  aspect-ratio: 1170 / 1992;
  padding: 8px;
  border-radius: 38px;
  background: #0B1220;
  box-shadow: 0 40px 90px rgb(0 20 45 / 35%), inset 0 0 0 1px rgb(255 255 255 / 12%);
}
.pl-b__shot::before {
  content: "";
  position: absolute;
  inset: -30%;
  z-index: -1;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(31 102 184 / 32%), transparent 62%);
  filter: blur(30px);
}
.pl-b__shot img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 30px; }

/* Painéis azuis: problema e chamada final */
.pl-b--dark { padding-top: 0 !important; padding-bottom: 0 !important; }
.pl-b--dark .pl-b__wrap {
  padding: 3.5rem 1.5rem;
  border-radius: 40px;
  background:
    radial-gradient(circle at 85% 15%, rgb(111 163 224 / 40%), transparent 55%),
    linear-gradient(160deg, #004084 0%, #0B5AA8 60%, #1F66B8 100%);
  color: #fff;
  text-align: center;
  box-shadow: 0 30px 70px rgb(0 64 132 / 18%);
}
@media (min-width: 768px) { .pl-b--dark .pl-b__wrap { padding: 5rem 4rem; border-radius: 60px; } }
.pl-b__eyebrow--dark { color: rgb(255 255 255 / 75%); }
.pl-b--dark h2 {
  max-width: 20ch;
  margin: 0 auto 1.2rem;
  color: #fff;
  font-weight: 700;
  font-size: clamp(1.8rem, 3.6vw, 2.8rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.pl-b--dark p:not(.pl-b__eyebrow) { max-width: 640px; margin: 0 auto; color: rgb(255 255 255 / 82%); font-weight: 300; font-size: 1.1rem; line-height: 1.6; }
.pl-b__final { padding-bottom: 5rem !important; }
.pl-b__final h2 { margin-bottom: 2rem; }

/* Blocos de recurso: texto + tela, alternando lados */
.pl-b__problem + section { padding-top: 6rem; }
.pl-b__feature { display: grid; grid-template-columns: 1fr 1.15fr; align-items: center; gap: 4rem; }
.pl-b__feature.is-reverse .pl-b__feature-text { order: 2; }
.pl-b__feature-text h2 {
  margin: 0 0 1rem;
  color: var(--text);
  font-weight: 700;
  font-size: clamp(1.7rem, 3vw, 2.5rem);
  line-height: 1.1;
  letter-spacing: -.02em;
}
.pl-b__feature-text p { color: var(--muted); font-weight: 300; font-size: 1.1rem; line-height: 1.7; }
.pl-b__feature-text::before {
  content: "";
  display: block;
  width: 48px;
  height: 4px;
  margin-bottom: 1.4rem;
  border-radius: 999px;
  background: linear-gradient(90deg, #004084, #1F66B8);
}

/* Dois celulares (funcionário + garçom) */
.pl-b__duo { position: relative; display: flex; justify-content: center; gap: 1.5rem; padding: 1rem 0 2rem; }
.pl-b__duo .pl-b__feature-shot {
  width: min(42%, 240px);
  aspect-ratio: 1170 / 1992;
  padding: 6px;
  border-radius: 30px;
  background: #0B1220;
  box-shadow: 0 30px 60px rgb(0 20 45 / 30%), inset 0 0 0 1px rgb(255 255 255 / 12%);
}
.pl-b__duo .pl-b__feature-shot:nth-child(2) { margin-top: 3rem; }
.pl-b__duo img { width: 100%; height: 100%; object-fit: cover; object-position: center top; border-radius: 24px; }

/* Painéis (RH, restaurante) numa janela de navegador que rola ao passar o mouse */
.pl-b__feature-shot--dashboard {
  position: relative;
  padding-top: 34px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 70px rgb(11 37 69 / 14%);
  overflow: hidden;
}
.pl-b__feature-shot--dashboard::before {
  /* barra da janela com os três pontos */
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 34px;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 18px 17px, #E86A6A 5px, transparent 5.5px),
    radial-gradient(circle at 36px 17px, #F0B84D 5px, transparent 5.5px),
    radial-gradient(circle at 54px 17px, #5CC27E 5px, transparent 5.5px),
    #EEF3F9;
}
.pl-b__feature-shot--dashboard img {
  width: 100%;
  height: clamp(260px, 30vw, 400px);
  object-fit: cover;
  object-position: center top;
  transition: object-position 6s var(--ease);
}
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pl-b__feature-shot--dashboard:hover img { object-position: center bottom; }
}

/* Cartão de fidelidade */
.pl-b__feature-shot--mobile {
  justify-self: center;
  width: min(100%, 420px);
  padding: 1.5rem;
  border: 1px solid var(--line);
  border-radius: 32px;
  background: #F7F9FC;
  box-shadow: 0 30px 70px rgb(11 37 69 / 12%);
}
.pl-b__feature-shot--mobile img { width: 100%; border-radius: 20px; }

/* Entrada dos blocos ao rolar (só com movimento permitido) */
@media (prefers-reduced-motion: no-preference) {
  .reveal-on .pl-b section > .pl-b__wrap { opacity: 0; transform: translateY(40px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
  .reveal-on .pl-b section.is-in > .pl-b__wrap { opacity: 1; transform: none; }
  .pl-b__shot { animation: float 6s ease-in-out infinite; }
  .pl-b__duo .pl-b__feature-shot:first-child { animation: float 6.5s ease-in-out infinite; }
  .pl-b__duo .pl-b__feature-shot:nth-child(2) { animation: float 7.5s ease-in-out -2.5s infinite; }
}

@media (max-width: 900px) {
  .pl-b__feature { grid-template-columns: 1fr; gap: 2.5rem; }
  .pl-b__feature.is-reverse .pl-b__feature-text { order: 0; }
}

/* ───────── Telas horizontais (Plugable Shop): janela de navegador na abertura e telas inteiras nos blocos ───────── */
.pl-b__hero-screen {
  position: relative;
  width: min(980px, 100%);
  margin: 0 auto;
  padding-top: 38px;
  border: 1px solid var(--line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 40px 90px rgb(11 37 69 / 18%);
}
.pl-b__hero-screen::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 38px;
  border-bottom: 1px solid var(--line);
  border-radius: 24px 24px 0 0;
  background:
    radial-gradient(circle at 20px 19px, #E86A6A 5px, transparent 5.5px),
    radial-gradient(circle at 38px 19px, #F0B84D 5px, transparent 5.5px),
    radial-gradient(circle at 56px 19px, #5CC27E 5px, transparent 5.5px),
    #EEF3F9;
}
.pl-b__hero-screen img { width: 100%; height: auto; border-radius: 0 0 23px 23px; }
.pl-b__hero-screen + * { margin-top: 0; }
.pl-b__hero-screen { box-shadow: 0 40px 90px rgb(11 37 69 / 18%), 0 0 140px rgb(31 102 184 / 20%); }
.pl-b__hero-screen[data-protect]::after { content: ""; position: absolute; inset: 0; z-index: 3; }

.pl-b__feature-shot--dashboard.is-full img { height: auto; object-fit: initial; }
@media (hover: hover) and (pointer: fine) and (prefers-reduced-motion: no-preference) {
  .pl-b__feature-shot--dashboard.is-full:hover img { object-position: center top; }
}

/* Proteção das telas: a camada transparente recebe o clique direito e o arrastar */
.pl-b [data-protect] img { -webkit-user-drag: none; user-select: none; -webkit-touch-callout: none; pointer-events: none; }
.pl-b__feature-shot--dashboard[data-protect]::after { content: ""; position: absolute; inset: 0; z-index: 3; }

@media (prefers-reduced-motion: no-preference) {
  .pl-b__hero-screen { animation: float 7s ease-in-out infinite; }
}
/* Logotipo do produto na abertura (no lugar da etiqueta em texto) */
.pl-b__eyebrow--logo { line-height: 0; }
.pl-b__eyebrow--logo img { display: block; width: auto; max-width: 80%; height: clamp(34px, 4vw, 54px); margin: 0 auto; }
