/* ==========================================================================
   Runas — Landing Page
   Folha de estilo mobile-first.

   Breakpoints (min-width, sempre "para cima"):
     400px   respiro interno do card da loja
     480px   botoes lado a lado, features de preco em 2 colunas
     600px   rodape em 2 colunas
     640px   tipografia e espacamentos maiores
     680/720 listas de modulos e passos em 2 colunas
     768px   mock do dashboard ganha sidebar e 4 KPIs
     960px   Loja Online em 2 colunas; rodape em 4
     1024px  navegacao completa no lugar do hamburguer; retrato do dashboard
             passa a 4 indicadores e paineis lado a lado
     1440px  container a 1320px
     1800px  container a 1480px

   Duas excecoes que nao sao min-width. Cada uma fica logo DEPOIS das regras
   que sobrescreve, senao perde no desempate por ordem:
     landscape + max-height: 560px   telefone deitado — hero e mock encurtados
     max-width: 359px                telefone estreito — Loja em 1 coluna
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Tokens
   -------------------------------------------------------------------------- */
:root {
  /* superficies */
  --bg: #080a0f;
  --bg-alt: #0b0f16;
  --surface: #10141d;
  --surface-2: #171c28;
  --surface-3: #0e1521;

  /* tracos */
  --line: rgba(255, 255, 255, 0.06);
  --line-2: rgba(255, 255, 255, 0.07);
  --line-3: rgba(255, 255, 255, 0.1);

  /* texto */
  --text: #e6edf5;
  --text-2: #94a3b8; /* 7,7:1 sobre --bg */
  /* era #64748b, que dava 4,16:1 e reprovava no WCAG AA (minimo 4,5:1) para
     texto normal — e ele carrega conteudo de verdade, nao so decoracao.
     Este da 5,18:1 sobre --bg e 5,02:1 sobre --bg-alt. */
  --text-3: #73849a;
  --text-hi: #fff;

  /* marca */
  --brand: #0ea5e9;
  --brand-2: #38bdf8;
  --indigo: #6366f1;
  --wa: #128c4b;
  --wa-2: #15a058;
  --ink: #04121a;

  /* tipografia */
  --font: "Inter", system-ui, -apple-system, "Segoe UI", sans-serif;
  /* Face de display, so nos titulos de voz. Archivo e da Omnibus-Type (Buenos
     Aires) e tem caracter de letreiro comercial — o oposto da neutralidade da
     Inter. Sendo mais estreita, os titulos cabem melhor, nao pior.
     O corpo continua Inter: e la que mora o risco de reflow. */
  --display: "Archivo", "Inter", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SFMono-Regular", monospace;

  /* escala fluida — cresce do mobile ao desktop sem breakpoint */
  --fs-h1: clamp(2.15rem, 8.4vw, 4.75rem);
  --fs-h2: clamp(1.75rem, 5.4vw, 2.75rem);
  --fs-h2-lg: clamp(1.9rem, 6vw, 3.25rem);
  --fs-h3: clamp(1.02rem, 2.4vw, 1.09rem);
  --fs-lead: clamp(1rem, 3.6vw, 1.19rem);

  /* layout */
  --shell: 1180px;
  --measure: 62ch; /* largura maxima de leitura confortavel */
  --gutter: 20px;
  --section-y: 64px;
  --radius: 12px;
  --radius-lg: 16px;
  --radius-xl: 20px;

  /* alvo minimo de toque (WCAG 2.5.5 / iOS HIG) */
  --tap: 44px;
}

@media (min-width: 640px) {
  :root {
    --gutter: 28px;
    --section-y: 80px;
  }
}

@media (min-width: 1024px) {
  :root {
    --gutter: 32px;
    --section-y: 96px;
  }
}

/* Telas grandes / navegador com zoom-out: manter 1180px deixaria colunas de
   vazio enormes nas laterais, entao o container acompanha a tela. */
@media (min-width: 1440px) {
  :root {
    --shell: 1320px;
    --gutter: 40px;
  }
}

@media (min-width: 1800px) {
  :root {
    --shell: 1480px;
    --section-y: 112px;
  }
}

/* --------------------------------------------------------------------------
   2. Base
   -------------------------------------------------------------------------- */
* {
  box-sizing: border-box;
}

/* scroll-padding-top compensa o header sticky ao pular para uma ancora, e o
   header muda de altura por breakpoint (o logo vai de 44 a 62px). Era fixo em
   84px: no celular sobrava um vao de ~24px acima do titulo da secao. Cada valor
   e a altura real do header naquele breakpoint + ~7px de respiro. Importa mais
   agora que o botao do hero e uma ancora para #precos. */
html {
  scroll-behavior: smooth;
  scroll-padding-top: 68px;
  -webkit-text-size-adjust: 100%;
}

@media (min-width: 640px) {
  html {
    scroll-padding-top: 76px;
  }
}

@media (min-width: 1024px) {
  html {
    scroll-padding-top: 88px;
  }
}

/* O runtime injeta `#dc-root,#dc-root>.sc-host{height:100%}`, o que trava o
   wrapper em UMA tela de altura enquanto o conteudo transborda. Como esse
   wrapper e o bloco container do position:sticky, sem este override o header
   gruda por uma viewport e depois descola e some. O `html` na frente so serve
   para vencer a especificidade do runtime sem precisar de !important. */
html #dc-root,
html #dc-root > .sc-host {
  height: auto;
  min-height: 100%;
}

body {
  margin: 0;
  background: var(--bg);
  font-family: var(--font);
  color: var(--text);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
svg {
  max-width: 100%;
}

a {
  color: var(--brand);
  text-decoration: none;
}

button,
input {
  font-family: inherit;
}

/* Primeiro elemento focavel da pagina: quem navega por teclado pula os 4 links
   do menu e cai direto no conteudo. Fica fora da tela ate receber foco. */
.skip-link {
  position: absolute;
  left: 8px;
  top: -100px;
  z-index: 100;
  padding: 12px 18px;
  border-radius: 0 0 10px 10px;
  background: var(--brand);
  color: var(--ink);
  font-size: 15px;
  font-weight: 700;
}

.skip-link:focus-visible {
  top: 0;
}

/* foco visivel e consistente para navegacao por teclado */
a:focus-visible,
button:focus-visible,
input:focus-visible {
  outline: 2px solid var(--brand-2);
  outline-offset: 3px;
  border-radius: 6px;
}

/* -25% = a largura de UM dos quatro grupos identicos da faixa. Como os grupos
   sao iguais, ao completar o ciclo a faixa volta a uma posicao visualmente
   identica — sem emenda. Mudou a contagem de grupos no HTML, mude aqui:
   a fracao e sempre -100%/n.
   ponytail: cobre viewport ate ~3960px (3 grupos de folga); passou disso,
   mais um grupo. */
@keyframes runas-marquee {
  0% {
    transform: translateX(0);
  }
  100% {
    transform: translateX(-25%);
  }
}

/* --------------------------------------------------------------------------
   3. Primitivos de layout
   -------------------------------------------------------------------------- */
.shell {
  width: 100%;
  max-width: var(--shell);
  margin-inline: auto;
  padding-inline: var(--gutter);
}

.shell--narrow {
  max-width: 880px;
}

.section {
  padding-block: var(--section-y);
}

.section--line {
  border-top: 1px solid var(--line);
}

.section--alt {
  background: var(--bg-alt);
}

/* Painel translucido no lugar do bloco chapado do --alt: a superficie e um veu
   claro sobre o fundo da pagina (mesma logica do header) e a luz vem de tras,
   nao de uma cor solida. Sem backdrop-filter de proposito: aqui nao passa nada
   por baixo — desfocar um fundo opaco custa GPU e nao muda um pixel. */
/* Sem border-bottom: a secao seguinte ja e .section--line e as duas bordas
   empilhadas viravam um filete de 2px. */
.section--glass {
  position: relative;
  background: rgba(255, 255, 255, 0.03);
}

/* A aura: brand no topo, indigo embaixo. Duas fontes de luz em vez de uma
   fazem o painel ler como vidro iluminado, e nao como retangulo com degrade. */
.section--glass::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(
      820px 300px at 50% -4%,
      rgba(14, 165, 233, 0.2),
      transparent 68%
    ),
    radial-gradient(
      620px 260px at 50% 108%,
      rgba(99, 102, 241, 0.13),
      transparent 70%
    );
}

/* sem isto o conteudo ficaria por baixo da aura */
.section--glass > .shell {
  position: relative;
}

.section-head {
  text-align: center;
  max-width: 640px;
  margin: 0 auto 40px;
}

@media (min-width: 768px) {
  .section-head {
    margin-bottom: 56px;
  }
}

.eyebrow {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--brand);
  margin-bottom: 12px;
}

@media (min-width: 640px) {
  .eyebrow {
    font-size: 13px;
    margin-bottom: 14px;
  }
}

h1,
h2,
h3 {
  text-wrap: balance;
}

.h1 {
  font-family: var(--display);
  font-weight: 800;
  font-size: var(--fs-h1);
  line-height: 1.04;
  letter-spacing: -0.028em;
  color: var(--text-hi);
  margin: 0 auto 18px;
  max-width: 900px;
}

.h2 {
  font-family: var(--display);
  font-size: var(--fs-h2);
  line-height: 1.1;
  letter-spacing: -0.022em;
  font-weight: 800;
  color: var(--text-hi);
  margin: 0 0 14px;
}

.h2--lg {
  font-size: var(--fs-h2-lg);
  line-height: 1.06;
  letter-spacing: -0.028em;
  margin-bottom: 18px;
}

.h2--flush {
  margin-bottom: 0;
}

/* Filete que cresce quando a secao entra na tela. So no titulo de Precos —
   marca a secao que decide a conversao, em vez de ser efeito repetido.
   Com movimento reduzido a regra global zera a duracao e ele so aparece. */
.rule {
  width: 0;
  height: 2px;
  margin: 0 auto 18px;
  background: var(--brand);
  border-radius: 2px;
  transition: width 0.7s cubic-bezier(0.2, 0.7, 0.3, 1);
}

.rule.is-on {
  width: 64px;
}

.lead {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  text-wrap: pretty;
}

.muted {
  font-size: 13px;
  color: var(--text-3);
}

.accent {
  color: var(--brand);
}

/* --------------------------------------------------------------------------
   4. Botoes
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: var(--tap);
  padding: 13px 22px;
  border: 0;
  border-radius: var(--radius);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.2;
  text-align: center;
  cursor: pointer;
  transition: background-color 0.18s ease, box-shadow 0.18s ease,
    transform 0.18s ease;
}

@media (min-width: 640px) {
  .btn {
    padding: 15px 28px;
    font-size: 16px;
  }
}

.btn--primary {
  background: var(--brand);
  color: var(--ink);
  box-shadow: 0 8px 24px rgba(14, 165, 233, 0.35);
}

/* "Entrar" e para quem JA e cliente — nao pode disputar atencao com o CTA de
   conversao. Fica discreto, sem preenchimento e sem sombra. */
.btn--ghost {
  background: transparent;
  color: var(--text-2);
  border: 1px solid var(--line-3);
}

.btn--wa {
  background: var(--wa);
  color: #fff;
  box-shadow: 0 10px 26px rgba(18, 140, 75, 0.35);
}

.btn--sm {
  min-height: 40px;
  padding: 9px 16px;
  font-size: 14px;
  border-radius: 10px;
}

.btn--block {
  display: flex;
  width: 100%;
}

/* hover so onde existe ponteiro: evita estado "grudado" apos toque */
@media (hover: hover) {
  .btn--primary:hover {
    background: var(--brand-2);
    color: var(--ink);
  }
  .btn--ghost:hover {
    background: rgba(255, 255, 255, 0.06);
    color: var(--text-hi);
  }
  .btn--wa:hover {
    background: var(--wa-2);
    color: #fff;
  }
  .btn:hover {
    transform: translateY(-1px);
  }
}

.btn:active {
  transform: translateY(0);
}

.btn-row {
  display: flex;
  flex-direction: column;
  gap: 12px;
  align-items: stretch;
}

@media (min-width: 480px) {
  .btn-row {
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
    gap: 14px;
  }
  .btn-row--center {
    justify-content: center;
  }
}

/* --------------------------------------------------------------------------
   5. Header + navegacao
   -------------------------------------------------------------------------- */
/* Fica visivel o tempo todo (a barra e a referencia de onde o usuario esta) e
   translucida, para o conteudo continuar aparecendo por baixo. O fallback
   opaco atende navegador sem backdrop-filter — sem ele o texto ficaria
   ilegivel sobre o conteudo que passa por tras. */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(8, 10, 15, 0.94);
  border-bottom: 1px solid var(--line);
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .site-header {
    background: rgba(8, 10, 15, 0.72);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }
}

.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-block: 8px;
}

.nav-logo {
  display: block;
  flex: none;
}

.nav-logo img {
  display: block;
  height: 44px;
  width: auto;
}

@media (min-width: 640px) {
  .nav-logo img {
    height: 52px;
  }
}

@media (min-width: 1024px) {
  .nav-logo img {
    height: 62px;
  }
}

.nav-links {
  display: none;
}

@media (min-width: 1024px) {
  .nav-links {
    display: flex;
    align-items: center;
    gap: 30px;
    font-size: 14.5px;
    font-weight: 500;
  }
}

.nav-links a,
.nav-drawer a.nav-drawer-link {
  color: var(--text-2);
  transition: color 0.16s ease;
}

@media (hover: hover) {
  .nav-links a:hover {
    color: var(--text-hi);
  }
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

@media (min-width: 1024px) {
  .nav-actions {
    gap: 16px;
  }
}


/* botao hamburguer — 44x44 minimo, some no desktop */
.nav-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: var(--tap);
  height: var(--tap);
  flex: none;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--line-3);
  color: var(--text);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .nav-toggle {
    display: none;
  }
}

.nav-drawer {
  border-top: 1px solid var(--line);
  background: rgba(8, 10, 15, 0.97);
  padding: 12px var(--gutter) 20px;
  display: flex;
  flex-direction: column;
  /* nunca cobre a tela inteira em telefones baixos */
  max-height: calc(100dvh - 64px);
  overflow-y: auto;
}

@media (min-width: 1024px) {
  .nav-drawer {
    display: none;
  }
}

.nav-drawer-link {
  display: flex;
  align-items: center;
  min-height: var(--tap);
  padding: 10px 4px;
  font-size: 16px;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
}

.nav-drawer .btn {
  margin-top: 16px;
}

/* --------------------------------------------------------------------------
   5b. CTA fixo do mobile
   Do fim do hero ate a secao da Loja o telefone ficava sem nenhum botao de
   conversao na tela. Some a partir de 1024px, onde o CTA vive no header.
   -------------------------------------------------------------------------- */
.cta-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px var(--gutter);
  /* respeita a barra de gestos do iPhone */
  padding-bottom: calc(10px + env(safe-area-inset-bottom, 0px));
  background: rgba(8, 10, 15, 0.94);
  border-top: 1px solid var(--line-3);
  transform: translateY(115%);
  pointer-events: none;
  transition: transform 0.24s ease;
}

@supports (backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px)) {
  .cta-sticky {
    background: rgba(8, 10, 15, 0.82);
    backdrop-filter: blur(18px) saturate(140%);
    -webkit-backdrop-filter: blur(18px) saturate(140%);
  }
}

.cta-sticky.is-on {
  transform: none;
  pointer-events: auto;
}

@media (min-width: 1024px) {
  .cta-sticky {
    display: none;
  }
}

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
/* A assinatura da pagina: o fundo do hero E a planilha, e ela se dissolve
   descendo ate virar o painel do produto. O h1 diz "Menos planilha" — o fundo
   passa a ilustrar a frase em vez de decorar.
   A celula e LARGA e BAIXA de proposito: quadrada leria como papel milimetrado
   (generico); retangular le como celula de planilha. E esse detalhe que faz o
   motivo significar alguma coisa. */
.hero {
  position: relative;
  overflow: hidden;
  background: var(--bg);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(255, 255, 255, 0.038) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(255, 255, 255, 0.038) 1px, transparent 1px);
  background-size: 88px 30px;
  /* a dissolucao: a grade some conforme desce, entregando a tela ao mock */
  -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 34%, transparent 78%);
  mask-image: linear-gradient(180deg, #000 0%, #000 34%, transparent 78%);
}

@media (min-width: 1024px) {
  .hero::before {
    background-size: 112px 34px;
  }
}

.hero-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    760px 380px at 50% -6%,
    rgba(14, 165, 233, 0.22),
    transparent 70%
  );
  pointer-events: none;
}

.hero-inner {
  position: relative;
  text-align: center;
  padding-top: 48px;
}

@media (min-width: 768px) {
  .hero-inner {
    padding-top: 68px;
  }
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line-3);
  padding: 8px 14px;
  border-radius: 999px;
  margin-bottom: 22px;
  /* no mobile o texto quebra em vez de estourar a viewport */
  text-align: left;
  max-width: 100%;
}

@media (min-width: 640px) {
  .hero-badge {
    font-size: 13px;
    padding: 8px 16px;
    margin-bottom: 26px;
  }
}

.hero-badge .dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
}

.hero-sub {
  font-size: var(--fs-lead);
  line-height: 1.6;
  color: var(--text-2);
  margin: 0 auto 28px;
  max-width: 600px;
  text-wrap: pretty;
}

/* Saida de baixo compromisso: quem nao quer puxar conversa no WhatsApp desce
   para a demo da loja em vez de fechar a aba. */
.hero-alt {
  margin: 14px 0 0;
  font-size: 14px;
}

.hero-alt a {
  display: inline-flex;
  align-items: center;
  min-height: var(--tap);
  padding: 0 4px;
  color: var(--text-2);
  border-bottom: 1px solid var(--line-3);
  transition: color 0.16s ease, border-color 0.16s ease;
}

@media (hover: hover) {
  .hero-alt a:hover {
    color: var(--text-hi);
    border-bottom-color: var(--brand);
  }
}

.hero-note {
  font-size: 12.5px;
  color: var(--text-3);
  margin-top: 14px;
  margin-bottom: 36px;
  text-wrap: balance;
}

@media (min-width: 640px) {
  .hero-note {
    font-size: 13px;
    margin-bottom: 44px;
  }
}

/* --------------------------------------------------------------------------
   7. Mock do dashboard (hero)
   -------------------------------------------------------------------------- */
/* Alturas escolhidas para o corte cair num lugar honesto: no desktop entram os
   4 indicadores e os dois graficos inteiros, e a fileira de baixo (tabela e top
   produtos) so aponta dentro do esmaecimento — como numa tela recortada. */
.mock-viewport {
  position: relative;
  height: 400px;
  overflow: hidden;
  margin-top: 8px;
}

@media (min-width: 640px) {
  .mock-viewport {
    height: 500px;
  }
}

@media (min-width: 1024px) {
  .mock-viewport {
    height: 680px;
  }
}

.mock-fade {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 120px;
  background: linear-gradient(180deg, rgba(8, 10, 15, 0), var(--bg));
  pointer-events: none;
}

@media (min-width: 1024px) {
  .mock-fade {
    height: 150px;
  }
}

/* Telefone deitado. Ele passa dos 640px de LARGURA e caia nas regras de tablet:
   68px de topo + 380px de mock nao cabem em ~390px de altura, e o h1 saia da
   tela antes de ser lido. Precisa vir depois dos blocos 640/1024 para vencer.
   Vale tambem para desktop com a janela baixa. */
@media (orientation: landscape) and (max-height: 560px) {
  .hero-inner {
    padding-top: 24px;
  }
  .hero-note {
    margin-bottom: 22px;
  }
  .mock-viewport {
    height: 190px;
  }
  .mock-fade {
    height: 90px;
  }
  /* a barra fixa comeria um quinto da tela util */
  .cta-sticky {
    display: none;
  }
}

.mock {
  width: 1020px;
  max-width: 100%;
  margin: 0 auto;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
  overflow: hidden;
  background: var(--bg);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--brand);
  box-shadow: 0 -8px 80px -24px rgba(14, 165, 233, 0.4);
  text-align: left;
}

.mock-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
}

.mock-bar .dot {
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #2a3140;
}

@media (min-width: 640px) {
  .mock-bar .dot {
    width: 11px;
    height: 11px;
  }
}

.mock-url {
  margin-left: 8px;
  font-size: 11px;
  color: var(--text-3);
  font-weight: 600;
  font-family: var(--mono);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (min-width: 640px) {
  .mock-url {
    font-size: 12px;
    margin-left: 10px;
  }
}

/* Daqui para baixo tudo espelha frontend/src — as medidas sao ~0,75x das do
   app (quadro de 1020px contra a tela real de 1600px) e as cores sao as mesmas
   de styles/variables.scss. As tres semanticas que a landing nao tinha vem como
   token local em vez de valor solto repetido. */
.mock {
  --ok: #10b981;
  --warn: #f59e0b;
  --bad: #ef4444;
}

/* --- Navbar do app (Navbar.scss) --- */
.app-nav {
  padding-inline: 18px;
}

.app-nav-capsule {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 48px;
  padding-inline: 6px;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-top: none;
  border-radius: 0 0 9px 9px;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

.app-nav-side {
  display: flex;
  align-items: center;
  min-width: 0;
}

.app-nav-btn {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 12px;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.08em;
  color: var(--text-2);
  white-space: nowrap;
}

.app-nav-btn .ico {
  width: 11px;
  height: 11px;
  flex: none;
}

.app-nav-divider {
  width: 1px;
  height: 18px;
  flex: none;
  background: var(--line-2);
  margin-inline: 6px;
}

.app-nav-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding-inline: 6px;
}

.app-nav-brand img {
  height: 24px;
  width: auto;
  opacity: 0.9;
  filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.5));
}

.app-nav-brand-label {
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.13em;
  color: var(--text-hi);
}

/* pilula azul do usuario — o unico bloco preenchido da barra, no app tambem */
.app-user {
  display: flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 12px;
  margin-inline: 6px;
  border-radius: 6px;
  background: linear-gradient(
    135deg,
    rgba(14, 165, 233, 0.8),
    rgba(56, 189, 248, 0.8)
  );
  border: 1px solid rgba(14, 165, 233, 0.5);
  box-shadow: 0 2px 12px rgba(14, 165, 233, 0.3);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.app-user .ico {
  width: 12px;
  height: 12px;
  flex: none;
}

/* O app esconde os rotulos da barra em telas estreitas; o retrato faz igual. */
@media (max-width: 767px) {
  .app-nav {
    padding-inline: 12px;
  }
  .app-nav-capsule {
    height: 42px;
  }
  .app-nav-btn-label,
  .app-nav-brand-label,
  .app-user-name {
    display: none;
  }
  .app-user {
    padding: 0 9px;
  }
}

/* --- Corpo: sidebar + conteudo --- */
.mock-body {
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 768px) {
  .mock-body {
    grid-template-columns: 165px 1fr;
  }
}

/* a sidebar nao cabe em telefone — no app ela tambem vira gaveta */
.mock-side {
  display: none;
}

@media (min-width: 768px) {
  .mock-side {
    display: flex;
    flex-direction: column;
    gap: 6px;
    padding: 12px 9px;
    background: rgba(16, 20, 29, 0.6);
    border-right: 1px solid var(--line-2);
  }
}

.side-item {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 33px;
  padding: 8px 9px;
  border-radius: 8px;
  border: 1px solid transparent;
  font-size: 11.5px;
  font-weight: 500;
  color: var(--text-2);
}

.side-item .ico {
  width: 14px;
  height: 14px;
  flex: none;
}

.side-item span {
  flex: 1;
  min-width: 0;
}

.side-caret {
  width: 12px;
  height: 12px;
  flex: none;
  color: var(--text-3);
}

.side-item.is-active {
  background: linear-gradient(90deg, rgba(14, 165, 233, 0.15), transparent);
  border-color: rgba(255, 255, 255, 0.15);
  box-shadow: inset 2px 0 0 var(--brand);
  color: var(--brand);
}

.side-item.is-active .ico {
  filter: drop-shadow(0 0 8px rgba(14, 165, 233, 0.6));
}

.mock-main {
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 15px;
  min-width: 0;
}

/* --- Cartoes de indicador (mockStats + .stat-card) --- */
.mock-kpis {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

/* 4 colunas so a partir de 1024px, onde o quadro chega aos 1020px cheios. Antes
   disso cada cartao ficaria com ~120px e "R$ 45.230,00" em mono nao cabe. */
@media (min-width: 1024px) {
  .mock-kpis {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--brand);
  border-radius: 12px;
  padding: 12px;
  min-width: 0;
}

.kpi-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 10px;
  background: rgba(14, 165, 233, 0.15);
  border: 1px solid rgba(14, 165, 233, 0.2);
  color: var(--brand);
  box-shadow: inset 0 1px 0 0 rgba(255, 255, 255, 0.1);
}

.kpi-icon svg {
  width: 15px;
  height: 15px;
}

/* Abaixo de 1024px sao 2 colunas em vez de 4, e o cartao fica estreito: com
   18px o "R$ 45.230,00" em mono quebrava em duas linhas e desalinhava a grade. */
@media (min-width: 1024px) {
  .kpi {
    padding: 14px;
  }
  .kpi-icon {
    width: 32px;
    height: 32px;
    margin-bottom: 12px;
  }
  .kpi-icon svg {
    width: 17px;
    height: 17px;
  }
  .kpi-title {
    font-size: 9.5px;
  }
  .kpi-value {
    font-size: 18px;
  }
}

.kpi--secondary {
  border-top-color: var(--indigo);
}
.kpi--secondary .kpi-icon {
  background: rgba(99, 102, 241, 0.15);
  border-color: rgba(99, 102, 241, 0.2);
  color: var(--indigo);
}

.kpi--success {
  border-top-color: var(--ok);
}
.kpi--success .kpi-icon {
  background: rgba(16, 185, 129, 0.15);
  border-color: rgba(16, 185, 129, 0.2);
  color: var(--ok);
}

.kpi--warning {
  border-top-color: var(--warn);
}
.kpi--warning .kpi-icon {
  background: rgba(245, 158, 11, 0.15);
  border-color: rgba(245, 158, 11, 0.2);
  color: var(--warn);
}

.kpi-title {
  font-size: 9px;
  font-weight: 500;
  color: var(--text-2);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 6px;
}

.kpi-value {
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text-hi);
  margin-bottom: 9px;
}

/* a pilula verde/vermelha e o que da a leitura de "esta melhorando" num relance */
.kpi-change {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 3px 8px;
  border-radius: 999px;
  font-size: 9px;
  font-weight: 700;
  white-space: nowrap;
}

.kpi-change svg {
  width: 9px;
  height: 9px;
  flex: none;
}

.kpi-change i {
  font-style: normal;
  font-weight: 500;
  color: var(--text-3);
  margin-left: 3px;
}

.kpi-change.is-up {
  color: var(--ok);
  background: rgba(16, 185, 129, 0.15);
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.kpi-change.is-down {
  color: var(--bad);
  background: rgba(239, 68, 68, 0.15);
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* --- Paineis (.dash-card) --- */
.mock-charts,
.mock-rows {
  display: grid;
  grid-template-columns: 1fr;
  gap: 15px;
}

@media (min-width: 1024px) {
  .mock-charts,
  .mock-rows {
    grid-template-columns: 1.8fr 1fr;
  }
}

/* Empilhada, esta fileira cai muito abaixo do recorte — renderizar uma tabela
   de 5 colunas que ninguem ve so custa layout. */
@media (max-width: 1023px) {
  .mock-rows {
    display: none;
  }
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 12px;
  padding: 14px;
  min-width: 0;
}

.panel-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}

.panel-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-hi);
}

.panel-legend {
  font-size: 9.5px;
  color: var(--text-2);
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.panel-legend .dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--brand);
}

/* --- Grafico de linha (lineChartData: Seg..Dom, 1200..2800) ---
   O viewBox comeca e termina EXATAMENTE nas linhas de grade dos extremos, o que
   deixa os rotulos do eixo Y baterem com elas usando so space-between. As
   margens negativas centram o primeiro e o ultimo rotulo na propria linha. */
.chart-line {
  display: flex;
  gap: 6px;
  height: 150px;
}

@media (min-width: 1024px) {
  .chart-line {
    height: 195px;
  }
}

.chart-y {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  flex: none;
  margin-block: -0.55em 0.45em;
  font-size: 8.5px;
  line-height: 1.1;
  color: var(--text-3);
  text-align: right;
}

.chart-plot {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.chart-plot svg {
  flex: 1;
  width: 100%;
  min-height: 0;
  display: block;
}

.chart-x {
  display: flex;
  justify-content: space-between;
  margin-top: 4px;
  font-size: 9px;
  color: var(--text-3);
}

/* --- Rosca (categoriasVendas, corte de 70%) --- */
.donut-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.donut {
  width: 110px;
  height: 110px;
  border-radius: 50%;
  flex: none;
  background: conic-gradient(
    #3b82f6 0 43%,
    #10b981 43% 67%,
    #f59e0b 67% 82%,
    #8b5cf6 82% 93%,
    #ef4444 93% 100%
  );
  display: flex;
  align-items: center;
  justify-content: center;
}

.donut-hole {
  width: 77px;
  height: 77px;
  border-radius: 50%;
  background: var(--surface);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.donut-label {
  font-size: 8.5px;
  font-weight: 500;
  color: var(--text-3);
  margin-bottom: 2px;
}

/* Inter, nao mono: e o que o app usa aqui, e em mono os 12 caracteres encostam
   no anel da rosca. */
.donut-value {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--text-hi);
  white-space: nowrap;
}

.legend {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 10.5px;
  color: var(--text-2);
  flex: 1 1 105px;
  min-width: 0;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 7px;
}

.legend-item i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  flex: none;
  font-style: normal;
}

.legend-item b {
  color: var(--text-hi);
  font-weight: 600;
  margin-left: auto;
}

/* --- Vendas recentes (.dash-table) --- */
.dash-table {
  width: 100%;
  border-collapse: collapse;
}

.dash-table th {
  padding: 5px 6px;
  font-size: 8px;
  font-weight: 700;
  color: var(--text-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  text-align: left;
  white-space: nowrap;
  border-bottom: 1px solid var(--line-2);
}

.dash-table td {
  padding: 6px;
  font-size: 10px;
  color: var(--text);
  white-space: nowrap;
  border-bottom: 1px solid rgba(255, 255, 255, 0.03);
}

.dash-table .valor {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

.tag {
  display: inline-block;
  padding: 2px 6px;
  border-radius: 4px;
  font-size: 8.5px;
  font-weight: 600;
}

.tag--ok {
  background: rgba(16, 185, 129, 0.15);
  color: var(--ok);
}
.tag--wait {
  background: rgba(245, 158, 11, 0.15);
  color: var(--warn);
}
.tag--sent {
  background: rgba(14, 165, 233, 0.15);
  color: var(--brand);
}

/* --- Top produtos --- */
.top-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.top-item {
  display: flex;
  align-items: center;
  gap: 9px;
}

.top-rank {
  width: 24px;
  height: 21px;
  flex: none;
  border-radius: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 8.5px;
  font-weight: 800;
}

.top-info {
  flex: 1;
  min-width: 0;
}

.top-info b {
  display: block;
  font-size: 10px;
  font-weight: 500;
  line-height: 1.3;
  color: var(--text);
  margin-bottom: 5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.top-track {
  display: block;
  height: 3px;
  border-radius: 2px;
  background: rgba(255, 255, 255, 0.06);
  overflow: hidden;
}

.top-fill {
  display: block;
  height: 100%;
  border-radius: 2px;
}

.top-count {
  flex: none;
  font-size: 9px;
  font-weight: 500;
  color: var(--text-2);
  white-space: nowrap;
}

/* --------------------------------------------------------------------------
   8. Faixa de confianca (marquee)
   -------------------------------------------------------------------------- */
.marquee {
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--bg-alt);
  overflow: hidden;
}

.marquee-mask {
  padding: 18px 0;
  -webkit-mask-image: linear-gradient(
    90deg,
    transparent,
    #000 12%,
    #000 88%,
    transparent
  );
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}

@media (min-width: 640px) {
  .marquee-mask {
    padding: 24px 0;
  }
}

.marquee-track {
  display: flex;
  width: max-content;
  animation: runas-marquee 26s linear infinite;
}

.marquee-group {
  display: flex;
  align-items: center;
  gap: 28px;
  padding-right: 28px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--text-2);
  flex: none;
}

@media (min-width: 640px) {
  .marquee-group {
    gap: 44px;
    padding-right: 44px;
    font-size: 15px;
  }
}

.marquee-group span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
}

.marquee-group span i {
  color: var(--brand);
  font-style: normal;
}

/* --------------------------------------------------------------------------
   8b. Problema
   Tratamento deliberadamente diferente das features (que vem logo abaixo):
   sem chip de icone, so um filete na lateral. E texto, nao catalogo.
   -------------------------------------------------------------------------- */
.problem-list {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px;
}

@media (min-width: 720px) {
  .problem-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 30px 56px;
  }
}

.problem-item {
  border-left: 2px solid rgba(255, 255, 255, 0.13);
  padding-left: 16px;
}

.problem-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-hi);
  margin: 0 0 6px;
}

.problem-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  max-width: var(--measure);
  text-wrap: pretty;
}

.problem-bridge {
  margin: 36px auto 0;
  max-width: 640px;
  text-align: center;
  font-size: var(--fs-lead);
  line-height: 1.5;
  font-weight: 600;
  color: var(--text);
  text-wrap: balance;
}

/* --------------------------------------------------------------------------
   9. Recursos / Como funciona (listas de features)
   -------------------------------------------------------------------------- */
/* Tres diferenciais em card, com peso visual proprio... */
.feature-lead {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}

@media (min-width: 960px) {
  .feature-lead {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 20px;
  }
  /* lado a lado, um titulo de uma linha faria o texto do card do meio comecar
     mais alto que o dos vizinhos */
  .fcard-title {
    min-height: 2.5em;
  }
}

.fcard {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-top: 2px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  transition: transform 0.22s ease, border-color 0.22s ease;
}

@media (min-width: 640px) {
  .fcard {
    padding: 28px 24px;
  }
}

@media (hover: hover) {
  .fcard:hover {
    transform: translateY(-3px);
    border-color: rgba(14, 165, 233, 0.35);
  }
}

.fcard-icon {
  width: 46px;
  height: 46px;
  border-radius: var(--radius);
  background: rgba(14, 165, 233, 0.12);
  color: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}

.fcard-title {
  font-size: clamp(1.09rem, 3.2vw, 1.24rem);
  line-height: 1.25;
  font-weight: 700;
  color: var(--text-hi);
  letter-spacing: -0.015em;
  margin: 0 0 8px;
}

.fcard-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  text-wrap: pretty;
}

/* Cascata da integracao — o unico efeito da pagina que existe para EXPLICAR, e
   nao para enfeitar. A proposta de valor do produto e uma relacao de causa e
   consequencia ("bateu no caixa, quatro coisas acontecem"), e causalidade e
   justamente o que movimento comunica melhor que texto.
   A estrutura e um gatilho e quatro consequencias PARALELAS, nao uma fila: por
   isso o filete lateral, que mostra os quatro ramificando do mesmo evento.
   O escalonamento e so temporal, para dar a leitura de "isso dispara aquilo". */
.cascade {
  margin-top: 18px;
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  background: var(--surface);
  border: 1px solid var(--line-2);
  /* o filete a esquerda marca de onde a corrente parte */
  border-left: 2px solid var(--brand);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
}

@media (min-width: 640px) {
  .cascade {
    gap: 20px;
    padding: 18px 24px;
  }
}

.cascade-trigger {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: none;
  font-size: 13px;
  font-weight: 700;
  color: var(--brand);
}

.cascade-dot {
  width: 7px;
  height: 7px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
}

/* no mobile a corrente empilha, e uma seta para a direita mentiria */
.cascade-arrow {
  display: none;
  flex: none;
  color: var(--text-3);
}

@media (min-width: 900px) {
  .cascade-arrow {
    display: block;
  }
}

.cascade-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 22px;
}

@media (min-width: 640px) {
  .cascade-list {
    gap: 10px 26px;
  }
}

.cascade-item {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--text-2);
  opacity: 0;
  transform: translateY(4px);
  transition: opacity 0.45s ease, transform 0.45s ease;
}

.cascade-item svg {
  flex: none;
  color: var(--brand);
}

.cascade.is-on .cascade-item {
  opacity: 1;
  transform: none;
}

.cascade.is-on .cascade-item:nth-child(1) {
  transition-delay: 0.08s;
}
.cascade.is-on .cascade-item:nth-child(2) {
  transition-delay: 0.22s;
}
.cascade.is-on .cascade-item:nth-child(3) {
  transition-delay: 0.36s;
}
.cascade.is-on .cascade-item:nth-child(4) {
  transition-delay: 0.5s;
}

/* ...e o resto como lista de apoio: mesmo conteudo, metade do peso. */
.feature-rest {
  margin-top: 44px;
  padding-top: 32px;
  border-top: 1px solid var(--line);
}

@media (min-width: 640px) {
  .feature-rest {
    margin-top: 56px;
  }
}

.feature-rest-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 24px;
}

.frest {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px 40px;
}

@media (min-width: 600px) {
  .frest {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 1024px) {
  .frest {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

.frest-item {
  display: flex;
  gap: 11px;
  align-items: flex-start;
}

.frest-item > svg {
  flex: none;
  margin-top: 2px;
  color: var(--text-3);
}

.frest-title {
  font-size: 14.5px;
  font-weight: 700;
  color: var(--text);
  margin: 0 0 3px;
}

/* --text-2, nao --text-3: e conteudo de verdade, e o --text-3 nao passa no
   contraste AA sobre o fundo escuro (~4,2:1). */
.frest-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--text-2);
  margin: 0;
  text-wrap: pretty;
}

.steps-grid {
  display: grid;
  grid-template-columns: 1fr;
  column-gap: 56px;
}

@media (min-width: 680px) {
  .steps-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (min-width: 980px) {
  .steps-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

.feature {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  padding: 22px 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  transition: transform 0.22s ease, background-color 0.22s ease;
}

@media (min-width: 640px) {
  .feature {
    gap: 18px;
    padding: 26px 4px;
  }
}

@media (hover: hover) {
  .feature:hover {
    transform: translateY(-3px);
    background-color: rgba(255, 255, 255, 0.02);
  }
  .feature:hover .feature-icon {
    box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.55),
      0 0 34px -2px rgba(14, 165, 233, 0.75);
  }
}

.feature-icon {
  width: 42px;
  height: 42px;
  flex: none;
  border-radius: var(--radius);
  background: rgba(14, 165, 233, 0.12);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--brand);
  font-family: var(--mono);
  font-size: 15px;
  font-weight: 700;
  /* aura de base: o efeito era so no :hover, ou seja, nao existia no celular —
     que e onde a maioria le esta secao */
  box-shadow: 0 0 0 1px rgba(14, 165, 233, 0.2),
    0 0 20px -4px rgba(14, 165, 233, 0.4);
  transition: box-shadow 0.22s ease;
}

@media (min-width: 640px) {
  .feature-icon {
    width: 44px;
    height: 44px;
  }
}

.feature-title {
  font-size: var(--fs-h3);
  font-weight: 700;
  color: var(--text-hi);
  margin: 2px 0 6px;
}

.feature-text {
  font-size: 14.5px;
  line-height: 1.6;
  color: var(--text-2);
  margin: 0;
  /* em telas largas a coluna cresce; a linha de texto nao deve acompanhar */
  max-width: var(--measure);
  text-wrap: pretty;
}

/* --------------------------------------------------------------------------
   10. Loja Online
   -------------------------------------------------------------------------- */
.loja-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 40px;
  align-items: center;
}

@media (min-width: 960px) {
  .loja-grid {
    grid-template-columns: 1fr 1fr;
    gap: 56px;
  }
}

.loja-copy .lead {
  max-width: 460px;
  margin-bottom: 28px;
}

.store-card {
  width: 100%;
  max-width: 460px;
  margin-inline: auto;
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 24px 60px -30px rgba(0, 0, 0, 0.7);
}

@media (min-width: 960px) {
  .store-card {
    margin-right: 0;
  }
}

.store-cover {
  position: relative;
}

.store-cover-fade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    rgba(16, 20, 29, 0) 40%,
    rgba(16, 20, 29, 0.9)
  );
  pointer-events: none;
}

.store-head {
  padding: 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: -32px;
  position: relative;
}

@media (min-width: 400px) {
  .store-head {
    padding: 18px 20px;
  }
}

.store-avatar {
  width: 56px;
  height: 56px;
  flex: none;
  border: 3px solid var(--surface);
  border-radius: 50%;
  background: var(--surface);
}

.store-id {
  flex: 1;
  min-width: 0;
}

.store-name {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-hi);
}

.store-meta {
  font-size: 12px;
  color: var(--text-2);
}

.store-open {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(14, 165, 233, 0.15);
  padding: 5px 10px;
  border-radius: 999px;
  white-space: nowrap;
  flex: none;
}

.store-body {
  padding: 16px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

@media (min-width: 400px) {
  .store-body {
    padding: 18px 20px;
  }
}

.store-search {
  display: flex;
  gap: 10px;
}

.store-search-field {
  flex: 1;
  min-width: 0;
  height: 44px;
  border-radius: 9px;
  background: var(--surface-2);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 12px;
}

.store-search-field svg {
  flex: none;
}

.store-search-field input {
  flex: 1;
  min-width: 0;
  background: transparent;
  border: none;
  outline: none;
  color: var(--text);
  /* 16px evita o zoom automatico do iOS ao focar o campo */
  font-size: 16px;
}

/* `pointer: fine` e essencial: um iPad em retrato tem 768px de largura, entrava
   nesta regra e voltava a sofrer o zoom automatico do iOS ao focar o campo. */
@media (min-width: 640px) and (pointer: fine) {
  .store-search-field input {
    font-size: 12.5px;
  }
}

.store-search-btn {
  width: 80px;
  height: 44px;
  flex: none;
  border-radius: 9px;
  background: var(--brand);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--ink);
}

.store-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

@media (min-width: 400px) {
  .store-grid {
    gap: 14px;
  }
}

.store-item {
  background: var(--surface-2);
  border-radius: var(--radius);
  overflow: hidden;
  min-width: 0;
}

/* Fundo claro atras das fotos de produto: os PNGs vinham com o xadrez de
   transparencia queimado nos pixels e ficavam ilegiveis na superficie escura.
   As fotos foram tratadas para #F5F5F5 — a mesma cor que o <image-slot>
   produz ao pintar rgba(127,127,127,.08) sobre este branco. */
.store-thumb {
  position: relative;
  height: 104px;
  background: #fff;
  overflow: hidden;
}

@media (min-width: 400px) {
  .store-thumb {
    height: 118px;
  }
}

.store-item-body {
  padding: 10px;
}

@media (min-width: 400px) {
  .store-item-body {
    padding: 12px;
  }
}

.store-item-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-hi);
  line-height: 1.35;
}

.store-item-foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 10px;
}

.store-price {
  font-family: var(--mono);
  font-size: 13.5px;
  font-weight: 700;
  color: var(--brand);
}

.qty {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: none;
}

.qty-num {
  font-family: var(--mono);
  font-size: 13px;
  color: var(--text);
  min-width: 12px;
  text-align: center;
}

.step-btn {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
  cursor: pointer;
  border: 0;
}

/* Nao encolhe em tela grande: um alvo de toque diminuindo conforme a tela
   cresce e o contrario do esperado, e 26px ficava no limite do WCAG 2.5.8. */

.step-btn--add {
  background: var(--wa);
  color: #fff;
}

.step-btn--sub {
  background: var(--surface-3);
  color: var(--text-2);
  border: 1px solid rgba(255, 255, 255, 0.08);
}

.step-btn--ghost {
  background: transparent;
  color: var(--text-3);
}

.store-empty {
  padding: 28px 12px;
  text-align: center;
  font-size: 13px;
  color: var(--text-3);
}

.cart {
  background: var(--surface-3);
  border: 1px solid var(--line-2);
  border-radius: 11px;
  padding: 8px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cart-line {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 7px 8px;
  border-radius: 8px;
  background: var(--surface-2);
}

.cart-line-info {
  flex: 1;
  min-width: 0;
}

.cart-line-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-hi);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.cart-line-sub {
  font-family: var(--mono);
  font-size: 11.5px;
  color: var(--text-2);
}

/* Fecha a demonstracao da Loja Online: o pedido montado aqui vira a mensagem
   que cai no WhatsApp — que e exatamente a promessa do texto da secao. */
.cart-send {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  margin-top: 2px;
  padding: 10px 12px;
  border-radius: 8px;
  background: var(--wa);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  text-align: center;
}

.cart-send svg {
  flex: none;
}

@media (hover: hover) {
  .cart-send:hover {
    background: var(--wa-2);
  }
}

.cart-empty {
  padding: 14px 8px;
  text-align: center;
  font-size: 12.5px;
  color: var(--text-3);
}

.cart-toggle {
  width: 100%;
  min-height: var(--tap);
  background: var(--surface-2);
  border: none;
  border-radius: 11px;
  padding: 12px 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  text-align: left;
}

.cart-badge {
  width: 30px;
  height: 30px;
  flex: none;
  border-radius: 50%;
  background: var(--brand);
  color: var(--ink);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 800;
}

.cart-label {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  color: #cbd5e1;
}

.cart-total {
  font-family: var(--mono);
  font-size: 14px;
  font-weight: 700;
  color: var(--text-hi);
}

.cart-caret {
  color: var(--text-3);
  display: flex;
  flex: none;
  transition: transform 0.2s ease;
}

/* --------------------------------------------------------------------------
   11. Precos
   -------------------------------------------------------------------------- */
.pricing {
  position: relative;
  overflow: hidden;
}

.pricing-glow {
  position: absolute;
  inset: 0;
  background: radial-gradient(
    600px 300px at 50% 0%,
    rgba(14, 165, 233, 0.16),
    transparent 70%
  );
  pointer-events: none;
}

.pricing-inner {
  position: relative;
}

.price-card {
  max-width: 560px;
  margin: 0 auto;
  background: var(--surface);
  border: 1px solid rgba(14, 165, 233, 0.3);
  border-top: 2px solid var(--brand);
  border-radius: var(--radius-xl);
  padding: 26px 20px;
  box-shadow: 0 24px 70px -30px rgba(14, 165, 233, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

@media (min-width: 640px) {
  .price-card {
    padding: 38px;
  }
}

.price-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 8px;
}

.price-plan {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-hi);
}

.price-tag {
  font-size: 12px;
  font-weight: 700;
  color: var(--brand);
  background: rgba(14, 165, 233, 0.15);
  padding: 5px 11px;
  border-radius: 999px;
}

.price-value {
  font-family: var(--display);
  font-size: clamp(1.75rem, 6.4vw, 2.5rem);
  font-weight: 800;
  color: var(--text-hi);
  line-height: 1.07;
  letter-spacing: -0.015em;
  margin: 12px 0 4px;
  text-wrap: balance;
}

.price-note {
  font-size: 13.5px;
  color: var(--text-3);
  margin-bottom: 24px;
  text-wrap: pretty;
}

.price-features {
  display: grid;
  grid-template-columns: 1fr;
  gap: 11px 20px;
  margin-bottom: 26px;
}

@media (min-width: 480px) {
  .price-features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.price-feature {
  display: flex;
  gap: 9px;
  align-items: center;
  font-size: 14px;
  color: #cbd5e1;
}

.price-feature svg {
  color: var(--brand);
  flex: none;
}

.price-foot {
  text-align: center;
  margin: 16px 0 0;
}

/* --------------------------------------------------------------------------
   12. FAQ
   -------------------------------------------------------------------------- */
.faq-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line-2);
  border-radius: 14px;
  overflow: hidden;
}

.faq-q {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: var(--tap);
  padding: 17px 18px;
  background: transparent;
  border: none;
  cursor: pointer;
  text-align: left;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.4;
}

@media (min-width: 640px) {
  .faq-q {
    padding: 20px 22px;
    font-size: 16.5px;
  }
}

.faq-sign {
  font-family: var(--mono);
  font-size: 22px;
  font-weight: 700;
  color: var(--brand);
  flex: none;
  line-height: 1;
}

.faq-a {
  padding: 0 18px 18px;
  font-size: 14.5px;
  line-height: 1.65;
  color: var(--text-2);
  text-wrap: pretty;
}

@media (min-width: 640px) {
  .faq-a {
    padding: 0 22px 22px;
    font-size: 15px;
  }
}

/* 13. CTA final — removido junto com a secao no HTML (era a quarta repeticao
   do mesmo pedido). O motivo de grade dele vive no hero e no .cta-sticky. */

/* --------------------------------------------------------------------------
   14. Rodape
   -------------------------------------------------------------------------- */
.footer {
  background: var(--bg);
  border-top: 1px solid var(--line);
}

.footer-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  padding-block: 48px 32px;
}

@media (min-width: 600px) {
  .footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 36px;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}

@media (min-width: 960px) {
  .footer-grid {
    grid-template-columns: 2fr 1fr 1.2fr;
    padding-block: 56px 40px;
  }
  .footer-brand {
    grid-column: auto;
  }
}

.footer-logo {
  height: 64px;
  width: auto;
  display: block;
  margin-bottom: 14px;
}

@media (min-width: 640px) {
  .footer-logo {
    height: 82px;
    margin-bottom: 16px;
  }
}

.footer-about {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-3);
  margin: 0;
  max-width: 320px;
  text-wrap: pretty;
}

.footer-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 14px;
}

.footer-links {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
}

.footer-links a {
  color: var(--text-2);
  display: flex;
  align-items: center;
  min-height: 36px;
  transition: color 0.16s ease;
}

@media (hover: hover) {
  .footer-links a:hover {
    color: var(--text-hi);
  }
}

.footer-bar {
  border-top: 1px solid var(--line);
  padding-block: 20px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 22px;
  align-items: center;
  justify-content: space-between;
  font-size: 12.5px;
  color: var(--text-3);
}

@media (min-width: 640px) {
  .footer-bar {
    font-size: 13px;
    padding-block: 22px;
  }
}

.footer-bar a {
  color: var(--text-3);
  display: inline-flex;
  align-items: center;
  min-height: 32px;
}

.footer-legal {
  display: flex;
  gap: 22px;
}

/* --------------------------------------------------------------------------
   14b. Telefone estreito (iPhone SE, Galaxy A0x — 320/360px)
   Unico bloco max-width da folha, e por isso fica no fim: precisa vencer as
   regras base que sobrescreve, todas de mesma especificidade.
   -------------------------------------------------------------------------- */
@media (max-width: 359px) {
  :root {
    --gutter: 14px;
  }
  /* duas colunas davam ~130px de card: a foto virava selo e o nome do produto
     quebrava em tres linhas */
  .store-grid {
    grid-template-columns: 1fr;
  }
  .store-thumb {
    height: 130px;
  }
}

/* --------------------------------------------------------------------------
   15. Acessibilidade — movimento reduzido
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  .marquee-track {
    animation: none;
  }
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    /* sem isto o escalonamento da cascata continuaria: zerar a duracao nao
       zera o atraso, e os itens apareceriam de estalo ate meio segundo depois */
    transition-delay: 0ms !important;
  }
}
