/* Disposição das páginas da landing (index.html e funcionalidades.html).
   Prefixo lp- (o DS proíbe criar classes pb-). Cores, tipografia, botões,
   cards e movimento vêm do Premium Blue (styles/premium-blue + overrides). */
.pb-section-title, .pb-hero-title { text-wrap: balance; }
.lp-icon { width: 16px; height: 16px; flex-shrink: 0; }
.lp-row { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; }

/* Header */
.lp-brand { display: inline-flex; align-items: center; gap: 10px; color: inherit; }
.lp-brand img { width: 36px; height: 36px; border-radius: var(--pb-radius-btn); box-shadow: var(--pb-shadow-sm); }
.lp-brand__name { font-size: 20px; font-weight: var(--pb-weight-black); letter-spacing: var(--pb-tracking-display); line-height: 1; white-space: nowrap; }
.lp-brand__tag { margin-left: 6px; font-size: var(--pb-text-2xs); font-weight: var(--pb-weight-extrabold); letter-spacing: var(--pb-tracking-caps); color: var(--pb-muted); }
.pb-header.is-scrolled .lp-brand__tag { color: rgb(255 255 255 / 0.6); }
.pb-header.is-scrolled .lp-brand .pb-text-accent { color: var(--pb-blue-soft); }
.lp-actions { display: flex; align-items: center; gap: 8px; }

/* Hero */
.lp-hero { margin-top: calc(-1 * var(--pb-header-h)); padding-block: calc(var(--pb-header-h) + 64px) 64px; }
.lp-hero .pb-aurora--1 { width: 460px; height: 460px; top: -140px; left: -140px; }
.lp-hero .pb-aurora--2 { width: 420px; height: 420px; top: 60px; right: -120px; }
.lp-hero__grid { position: relative; display: grid; gap: 48px; align-items: center; }
.lp-hero__title { margin-top: 20px; font-size: clamp(40px, 4.7vw, 62px); }
.lp-hero__lead { margin-top: 18px; max-width: 540px; }
.lp-hero__ctas { margin-top: 30px; }
.lp-checks { margin: 20px 0 0; padding: 0; list-style: none; gap: 10px 22px; }

/* ---------- Cena do produto no hero ----------
   Janela do Theus (PDV com uma venda em andamento) com leve perspectiva, sobre
   um brilho da marca, e três elementos flutuando nas bordas: aviso de NFC-e
   (vidro), faturamento do dia (receita do .pb-dark-card) e balança (chip).
   Dados ilustrativos; tudo aria-hidden. */
.lp-stage { position: relative; padding: 48px 12px 64px 40px; margin-bottom: 28px; isolation: isolate; }
.lp-stage::before { content: ""; position: absolute; inset: 6% 2% 4% 8%; z-index: -1; border-radius: 40px; filter: blur(46px);
  background: radial-gradient(60% 60% at 30% 30%, rgb(1 122 254 / 0.38), transparent 70%), radial-gradient(55% 55% at 80% 75%, rgb(34 211 238 / 0.3), transparent 70%); }
.lp-window { position: relative; overflow: hidden; border: 1px solid rgb(255 255 255 / 0.9); border-radius: 18px; background: #fff;
  box-shadow: 0 0 0 1px var(--pb-line), 0 2px 6px rgb(1 29 60 / 0.06), 0 34px 80px -24px rgb(1 55 114 / 0.42);
  transform: perspective(1800px) rotateY(-8deg) rotateX(3deg); transform-origin: 70% 50%; transition: transform .8s var(--pb-ease-out); }
.lp-stage:hover .lp-window { transform: perspective(1800px) rotateY(-4deg) rotateX(1.5deg); }
.lp-window__bar { display: flex; align-items: center; gap: 12px; height: 40px; padding: 0 14px; border-bottom: 1px solid var(--pb-line); background: var(--pb-off-white); }
.lp-window__dots { display: flex; gap: 6px; }
.lp-window__dots i { width: 10px; height: 10px; border-radius: 50%; background: var(--pb-ink-a14); }
.lp-window__title { flex: 1; text-align: center; font-size: var(--pb-text-2xs); font-weight: var(--pb-weight-bold); color: var(--pb-muted); }
.lp-window__body { display: grid; grid-template-columns: 1.45fr 1fr; }
.lp-cart { padding: 16px 18px 14px; }
.lp-cart__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 8px; }
.lp-cart__head strong { font-size: var(--pb-text-sm); font-weight: var(--pb-weight-black); letter-spacing: var(--pb-tracking-tight); }
.lp-cart__head span { font-size: var(--pb-text-2xs); font-weight: var(--pb-weight-bold); color: var(--pb-muted); }
.lp-item { display: grid; grid-template-columns: 28px 1fr auto; gap: 10px; align-items: center; padding: 8px 0; border-top: 1px solid var(--pb-line); }
.lp-item__ico { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; font-size: 14px; background: var(--pb-navy-light); }
.lp-item__name { display: block; font-size: 12px; font-weight: var(--pb-weight-bold); color: var(--pb-ink); line-height: 1.3; }
.lp-item__meta { display: flex; align-items: center; gap: 6px; font-size: 11px; color: var(--pb-muted); font-variant-numeric: tabular-nums; }
.lp-item__meta .pb-badge { padding: 0 6px; font-size: 9.5px; }
.lp-item__total { font-size: 12px; font-weight: var(--pb-weight-extrabold); color: var(--pb-ink); font-variant-numeric: tabular-nums; }
.lp-pay { display: flex; flex-direction: column; gap: 12px; padding: 16px; border-left: 1px solid var(--pb-line); background: linear-gradient(180deg, #f6faff 0%, #eef5fe 100%); }
.lp-pay__label { font-size: 9.5px; font-weight: var(--pb-weight-extrabold); letter-spacing: var(--pb-tracking-caps); text-transform: uppercase; color: var(--pb-muted); }
.lp-pay__total { margin-top: 2px; font-size: 30px; font-weight: var(--pb-weight-black); letter-spacing: -0.035em; line-height: 1; color: var(--pb-ink); font-variant-numeric: tabular-nums; }
.lp-pay__methods { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.lp-pay__method { display: grid; justify-items: center; gap: 2px; padding: 8px 4px; border: 1px solid var(--pb-line); border-radius: 10px; background: #fff; font-size: 10px; font-weight: var(--pb-weight-bold); color: var(--pb-ink-a70); }
.lp-pay__method b { font-size: 15px; line-height: 1; }
.lp-pay__method.is-on { border-color: rgb(1 122 254 / 0.5); color: var(--pb-blue-strong); background: #fff; box-shadow: 0 0 0 3px rgb(1 122 254 / 0.12); }
.lp-pay__rows { display: grid; grid-template-columns: 1fr auto; gap: 4px 8px; font-size: 11px; color: var(--pb-muted); font-variant-numeric: tabular-nums; }
.lp-pay__rows strong { color: var(--pb-ink); text-align: right; }
.lp-pay__btn { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: auto; height: 38px; border-radius: var(--pb-radius-btn); color: #fff; font-size: 12px; font-weight: var(--pb-weight-extrabold); background: var(--pb-grad-cta); box-shadow: var(--pb-shadow-cta); }
.lp-pay__nfce { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; font-weight: var(--pb-weight-semibold); color: var(--pb-muted); }

/* Flutuantes */
.lp-float { position: absolute; z-index: 2; }
.lp-toast { top: 4px; left: -10px; display: flex; align-items: center; gap: 12px; padding: 12px 16px 12px 12px !important; border-radius: 14px; }
.lp-toast__ico { display: grid; place-items: center; width: 34px; height: 34px; flex-shrink: 0; border-radius: 50%; color: #fff; background: linear-gradient(135deg, #10b981, #059669); box-shadow: 0 4px 12px rgb(5 150 105 / 0.35); }
.lp-toast__ico svg { width: 18px; height: 18px; }
.lp-toast strong { display: block; font-size: 12.5px; font-weight: var(--pb-weight-extrabold); color: var(--pb-ink); }
.lp-toast span { font-size: 11px; color: var(--pb-muted); }
.lp-kpi { left: -22px; bottom: -34px; width: 212px; padding: 16px 18px 14px; border: 1px solid transparent; border-radius: 18px; color: #fff; animation-delay: -3s;
  background: linear-gradient(150deg, var(--pb-dark-600) 0%, var(--pb-dark-500) 100%) padding-box, var(--pb-grad-brand) border-box;
  box-shadow: 0 24px 50px -16px rgb(1 29 60 / 0.55); }
.lp-kpi__head { display: flex; justify-content: space-between; align-items: center; font-size: 10px; font-weight: var(--pb-weight-extrabold); letter-spacing: var(--pb-tracking-caps); text-transform: uppercase; color: rgb(255 255 255 / 0.7); }
.lp-kpi__head .pb-live { width: 7px; height: 7px; background: #34d399; }
.lp-kpi__value { margin-top: 6px; font-size: 30px; font-weight: var(--pb-weight-black); letter-spacing: -0.035em; line-height: 1; font-variant-numeric: tabular-nums; }
.lp-kpi svg { display: block; width: 100%; height: 44px; margin-top: 10px; }
.lp-kpi__foot { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; color: rgb(255 255 255 / 0.72); font-variant-numeric: tabular-nums; }
.lp-kpi__foot b { color: #fff; }
.lp-chip-scale { right: -4px; bottom: 22px; display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px 8px 8px; border: 1px solid var(--pb-line); border-radius: 999px; background: #fff; box-shadow: 0 10px 26px -8px rgb(1 55 114 / 0.3); font-size: 12px; font-weight: var(--pb-weight-bold); color: var(--pb-ink); animation-delay: -5s; }
.lp-chip-scale i { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-style: normal; font-size: 13px; background: var(--pb-navy-light); }
.lp-chip-scale span { color: var(--pb-muted); font-weight: var(--pb-weight-semibold); font-variant-numeric: tabular-nums; }

@media (max-width: 1100px) and (min-width: 960px) { .lp-items > .lp-item:nth-child(n+5) { display: none; } }
@media (max-width: 640px) {
  .lp-stage { padding: 58px 0 150px; }
  .lp-stage::before { inset: 10% 0 10% 0; }
  .lp-window { transform: none; }
  .lp-stage:hover .lp-window { transform: none; }
  .lp-window__body { grid-template-columns: 1fr; }
  .lp-pay { border-left: 0; border-top: 1px solid var(--pb-line); }
  .lp-items > .lp-item:nth-child(n+4) { display: none; }
  .lp-toast { top: 0; left: 8px; right: 8px; }
  .lp-kpi { left: auto; }
  .lp-kpi { right: 8px; bottom: 0; width: 210px; }
  .lp-chip-scale { display: none; }
}

/* Faixa de módulos (pb-marquee: o conteúdo vai duplicado, a animação move -50%) */
.lp-band { padding-block: 22px; border-block: 1px solid var(--pb-line); overflow: hidden; }
.lp-marquee { display: flex; gap: 12px; width: max-content; }
.lp-marquee .pb-chip { white-space: nowrap; }

/* Seções */
.lp-head { display: grid; gap: 12px; margin-bottom: 44px; }
.lp-head--center { justify-items: center; text-align: center; }
.lp-grid-3 { display: grid; gap: 16px; }
.lp-feature .pb-logo-tile { width: 48px; height: 48px; border-radius: var(--pb-radius-lg); color: var(--pb-blue); background: var(--pb-navy-light); box-shadow: inset 0 0 0 1px rgb(1 122 254 / 0.12); }
.lp-feature .pb-logo-tile svg { width: 22px; height: 22px; }
.lp-feature .pb-h3 { margin-top: 18px; }
.lp-feature .pb-card__text { margin-top: 6px; }
.lp-feature .pb-feature-list { margin-top: 14px; }

.lp-split { display: grid; gap: 48px; align-items: center; }
.lp-points { display: grid; gap: 18px; margin: 28px 0 0; padding: 0; list-style: none; }
.lp-point { display: flex; gap: 14px; align-items: flex-start; }
.lp-point__icon { display: grid; place-items: center; width: 36px; height: 36px; flex-shrink: 0; border-radius: var(--pb-radius-lg); color: var(--pb-blue); background: #fff; border: 1px solid var(--pb-line); box-shadow: var(--pb-shadow-xs); }
.lp-point__icon svg { width: 18px; height: 18px; }
.lp-point strong { display: block; font-size: var(--pb-text-md); font-weight: var(--pb-weight-black); color: var(--pb-ink); }
.lp-point span { font-size: var(--pb-text-ui); line-height: 1.55; color: var(--pb-muted); }
.lp-fiscal { padding: 26px; }
.lp-fiscal .pb-kicker { color: rgb(255 255 255 / 0.6); } /* DS usa 35% no escuro; 60% para passar AA (como no CDD) */
.lp-fiscal__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 8px; }
.lp-fiscal .pb-table { color: #fff; }
.lp-fiscal .pb-table td { border-color: rgb(255 255 255 / 0.08); }
.lp-fiscal .pb-table td:last-child { text-align: right; }
.lp-fiscal .pb-table tbody tr:hover { background: rgb(255 255 255 / 0.04); }
.lp-fiscal small { display: block; font-size: var(--pb-text-xs); color: rgb(255 255 255 / 0.6); }
.lp-fiscal .pb-badge--success { color: #6ee7b7; background: rgb(16 185 129 / 0.14); border-color: rgb(16 185 129 / 0.3); }

.lp-cta { display: grid; gap: 32px; align-items: center; }

.lp-footer-brand .lp-brand__tag { color: rgb(255 255 255 / 0.55); }
.lp-footer-brand .pb-text-accent { color: var(--pb-blue-soft); }
.lp-footer-text { margin-top: 12px; max-width: 300px; font-size: var(--pb-text-ui); line-height: 1.6; color: rgb(255 255 255 / 0.6); }

/* Botão flutuante do WhatsApp: receita do .pb-icon-btn, no gradiente do CTA */
.lp-wa-float { position: fixed; right: 20px; bottom: 20px; z-index: var(--pb-z-header); display: grid; place-items: center; width: 56px; height: 56px; border-radius: 50%; color: #fff; background: var(--pb-grad-cta); box-shadow: var(--pb-shadow-cta-lg); transition: transform var(--pb-duration-medium) var(--pb-ease-out), box-shadow var(--pb-duration-medium); }
.lp-wa-float:hover { transform: translateY(-2px); box-shadow: var(--pb-shadow-cta-hover); }
.lp-wa-float svg { width: 26px; height: 26px; }

/* Entrada ao rolar (AGENTS.md 4.5): invisível até o IntersectionObserver aplicar .pb-reveal */
[data-reveal]:not(.pb-reveal) { opacity: 0; }

@media (min-width: 960px) {
  .lp-hero__grid { grid-template-columns: 1fr 1.02fr; }
  .lp-grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .lp-split { grid-template-columns: 1fr 1fr; }
  .lp-cta { grid-template-columns: 1.3fr 1fr; }
}
@media (min-width: 640px) and (max-width: 959px) {
  .lp-grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 767px) {
  .lp-hero { padding-block: calc(var(--pb-header-h) + 32px) 48px; }
  .pb-section { padding-block: var(--pb-section-y-mobile); }
}
@media (max-width: 420px) {
  .lp-brand__tag, .lp-actions .lp-wa-label { display: none; }
  .lp-hero__ctas .pb-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) {
  [data-reveal]:not(.pb-reveal) { opacity: 1; }
}

/* ---------- Navegação no celular: pílulas numa segunda linha rolável (AGENTS.md 12.2) ---------- */
:root { --lp-nav-row: 44px; }
.pb-nav-link { white-space: nowrap; }
@media (max-width: 767px) {
  .pb-header__inner { flex-wrap: wrap; height: auto; row-gap: 0; }
  .pb-header__inner > .lp-brand, .pb-header__inner > .lp-actions { min-height: var(--pb-header-h); }
  .pb-header .pb-nav { display: flex; order: 3; flex: 1 0 100%; height: var(--lp-nav-row); overflow-x: auto; scrollbar-width: none; }
  .pb-header .pb-nav::-webkit-scrollbar { display: none; }
  .lp-hero { margin-top: calc(-1 * (var(--pb-header-h) + var(--lp-nav-row))); padding-top: calc(var(--pb-header-h) + var(--lp-nav-row) + 32px); }
}

/* ---------- Página de funcionalidades ---------- */
/* Painel de números do hero: receita do .pb-dark-card com borda no gradiente da marca */
.lp-hero-panel { position: relative; overflow: hidden; display: grid; gap: 22px; padding: 28px; border: 1px solid transparent; border-radius: var(--pb-radius-2xl);
  background: linear-gradient(150deg, var(--pb-dark-600) 0%, var(--pb-dark-500) 100%) padding-box, var(--pb-grad-brand) border-box;
  color: #fff; box-shadow: 0 2px 8px rgb(1 76 157 / 0.18), 0 22px 50px -12px rgb(1 122 254 / 0.4); }
.lp-hero-panel::before { content: ""; position: absolute; top: -40%; right: -20%; width: 70%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(closest-side, rgb(34 211 238 / 0.22), transparent); pointer-events: none; }
.lp-hero-panel > * { position: relative; }
.lp-metric-label { font-size: var(--pb-text-2xs); font-weight: var(--pb-weight-extrabold); letter-spacing: var(--pb-tracking-caps); text-transform: uppercase; color: rgb(255 255 255 / 0.72); }
.lp-hero-panel .pb-display { font-size: clamp(56px, 6vw, 76px); color: #fff; }
.lp-hero-panel__note { margin-top: 4px; font-size: var(--pb-text-ui); color: rgb(255 255 255 / 0.72); }
.lp-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; padding-top: 20px; border-top: 1px solid rgb(255 255 255 / 0.1); }
.lp-metrics > div { display: grid; gap: 4px; min-width: 0; padding: 0 14px; border-left: 1px solid rgb(255 255 255 / 0.1); }
.lp-metrics > div:first-child { padding-left: 0; border-left: 0; }
.lp-metrics dd { margin: 0; font-size: 26px; font-weight: var(--pb-weight-black); letter-spacing: var(--pb-tracking-heading); }
.lp-portal-bar { height: 6px; border-radius: 99px; background: rgb(255 255 255 / 0.12); overflow: hidden; }
.lp-portal-bar > i { display: block; height: 100%; background: var(--pb-grad-brand-x); }

/* Índice das áreas no vidro, na base do hero */
.lp-areas { display: flex; align-items: center; gap: 12px; padding: 10px !important; }
.lp-areas .pb-segmented { flex: 1; overflow-x: auto; scrollbar-width: none; justify-content: flex-start; }
.lp-areas .pb-segmented::-webkit-scrollbar { display: none; }
.lp-areas .pb-segmented__item { padding: 8px 16px; font-size: var(--pb-text-ui); white-space: nowrap; text-decoration: none; }

/* Seções de área */
.lp-area-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px 32px; margin-bottom: 36px; }
.lp-area-head > div { display: grid; gap: 10px; }
.lp-area-count { flex-shrink: 0; }
.lp-feat-grid { display: grid; gap: 16px; }
.lp-feat { display: flex; gap: 16px; align-items: flex-start; }
.lp-feat .pb-logo-tile { width: 48px; height: 48px; flex-shrink: 0; font-size: 24px; line-height: 1; border-radius: var(--pb-radius-lg); background: var(--pb-navy-light); box-shadow: inset 0 0 0 1px rgb(1 122 254 / 0.12); }
.lp-feat .pb-h3 { font-size: var(--pb-text-md); }
.lp-feat .pb-card__text { margin-top: 4px; }
.pb-dark-shell .lp-feat { padding: 24px; }
.pb-dark-shell .lp-feat .pb-logo-tile { background: rgb(255 255 255 / 0.08); box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.12); }
.pb-dark-shell .lp-feat .pb-card__text { color: rgb(255 255 255 / 0.72); }
.pb-dark-shell .pb-kicker { color: rgb(255 255 255 / 0.6); }

/* Apps: Theus PDV e Theus Terminal em destaque */
.lp-apps { display: grid; gap: 20px; }
.lp-app { display: grid; gap: 14px; }
.lp-app .pb-logo-tile { width: 64px; height: 64px; font-size: 32px; border-radius: var(--pb-radius-xl); background: var(--pb-navy-light); box-shadow: inset 0 0 0 1px rgb(1 122 254 / 0.14); }
.lp-app__name { font-size: 26px; font-weight: var(--pb-weight-black); letter-spacing: var(--pb-tracking-heading); }

.lp-cta-panel { display: grid; gap: 28px; align-items: center; }

@media (min-width: 640px) { .lp-feat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lp-apps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .lp-feat-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .lp-cta-panel { grid-template-columns: 1.4fr 1fr; } }
@media (max-width: 420px) { .lp-metrics dd { font-size: 22px; } .lp-metrics > div { padding: 0 8px; } }
