/* ==========================================================================
   ZaikoStorage — Landing page
   Conceito: "palco escuro + papel de cupom". Códigos de barras em movimento,
   laser de leitura e um cupom que imprime vendas ao vivo.
   Sem dependências externas (compatível com CSP estrita).
   ========================================================================== */
@font-face {
  font-family: 'Titan One';
  src: url('/fonts/TitanOne-Regular.woff2') format('woff2');
  font-weight: 400; font-style: normal; font-display: swap;
}

:root {
  --red: #b93c2c;
  --red-600: #9f3124;
  --red-300: #e0826f;
  --amber: #d9932e;
  --amber-300: #edbd78;
  --amber-100: #faedd6;
  --stage: #120c0b;
  --stage-2: #1b1311;
  --paper: #fbf6ef;
  --paper-2: #f4ece1;
  --ink: #1c1512;
  --ink-soft: #6f6059;
  --line: rgb(28 21 18 / .12);
  --ok: #1f9d5c;
  --display: 'Titan One', 'Arial Black', system-ui, sans-serif;
  --sans: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --mono: ui-monospace, 'SFMono-Regular', Menlo, Consolas, 'Liberation Mono', monospace;
  --r: 14px;
  --wrap: 1200px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { overflow-x: clip; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 400 17px/1.6 var(--sans); color: var(--ink); background: var(--stage); -webkit-font-smoothing: antialiased; overflow-x: clip; }
img, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p, ul, ol { margin: 0; }
ul, ol { padding: 0; list-style: none; }
button { font: inherit; cursor: pointer; }
:focus-visible { outline: 3px solid var(--amber); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(100% - 40px, var(--wrap)); margin-inline: auto; }
.center { display: flex; justify-content: center; margin-top: 44px; }
.muted { color: var(--ink-soft); }
.ico { width: 20px; height: 20px; fill: currentColor; flex: none; }
.skip { position: absolute; left: -999px; top: 8px; z-index: 100; padding: 10px 14px; background: #fff; color: #000; border-radius: 8px; }
.skip:focus { left: 8px; }

/* ---------------- Botões ---------------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  height: 48px; padding: 0 22px; border-radius: 999px; border: 0;
  font: 700 15px/1 var(--sans); text-decoration: none; white-space: nowrap;
  transition: transform .15s ease, box-shadow .2s ease, background-color .2s ease, color .2s;
}
.btn:active { transform: translateY(1px) scale(.99); }
.btn--sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn--lg { height: 56px; padding: 0 28px; font-size: 16px; }
.btn--xl { height: 64px; padding: 0 36px; font-size: 18px; }
.btn--block { width: 100%; justify-content: center; }
.btn--primary {
  color: #fff; background: linear-gradient(180deg, #c9462f, var(--red));
  box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 10px 28px -10px rgb(185 60 44 / .9), 0 0 0 1px rgb(0 0 0 / .1);
}
.btn--primary:hover { transform: translateY(-2px); box-shadow: 0 1px 0 rgb(255 255 255 / .25) inset, 0 16px 36px -12px rgb(185 60 44 / 1), 0 0 0 1px rgb(0 0 0 / .1); }
.btn--ghost { color: #fff; background: rgb(255 255 255 / .06); box-shadow: inset 0 0 0 1.5px rgb(255 255 255 / .22); backdrop-filter: blur(6px); }
.btn--ghost:hover { background: rgb(255 255 255 / .12); }
.btn--outline { color: var(--ink); background: transparent; box-shadow: inset 0 0 0 1.5px var(--line); }
.btn--outline:hover { box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--quiet { color: var(--ink-soft); background: transparent; text-decoration: underline; text-underline-offset: 3px; padding: 0 8px; }

/* ---------------- Topo ---------------- */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; height: var(--nav-h); transition: background-color .3s, box-shadow .3s, backdrop-filter .3s; }
.nav.is-solid { background: rgb(18 12 11 / .82); backdrop-filter: blur(14px) saturate(1.3); box-shadow: 0 1px 0 rgb(255 255 255 / .06); }
.nav__inner { height: 100%; display: flex; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
/* Logo sem fundo: o fundo da página (escuro ou claro) já dá contraste ao vermelho/âmbar do logo. */
.brand__mark { display: grid; place-items: center; width: 34px; height: 34px; }
.brand__mark img { width: 32px; height: auto; }
/* No topo (fundo escuro com vermelho), o logo fica sobre o quadrado branco. */
.nav .brand__mark { width: 38px; height: 38px; border-radius: 11px; background: #fff; box-shadow: 0 6px 16px -6px rgb(0 0 0 / .5); }
.nav .brand__mark img { width: 24px; }
.brand__name { font: 400 21px/1 var(--display); letter-spacing: .01em; }
.brand__name em { font-style: normal; color: var(--amber-300); }
.brand--dark { color: var(--ink); }
.brand--dark .brand__name em { color: var(--red); }
.nav__links { display: none; margin-left: auto; gap: 4px; }
.nav__links a { padding: 8px 14px; border-radius: 999px; color: rgb(255 255 255 / .78); font-weight: 600; font-size: 14.5px; text-decoration: none; }
.nav__links a:hover { color: #fff; background: rgb(255 255 255 / .08); }
.nav__cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.link-login { display: inline-flex; align-items: center; white-space: nowrap; color: rgb(255 255 255 / .8); font-weight: 600; font-size: 14.5px; text-decoration: none; padding: 8px 12px; }
.link-login:hover { color: #fff; }
@media (min-width: 960px) {
  .nav__links { display: flex; }
  .nav__cta { margin-left: 8px; }
  .link-login { display: inline; }
}

/* ---------------- Palco escuro (herói e seções escuras) ---------------- */
.stage { position: relative; isolation: isolate; overflow: hidden; color: #fff; background:
  radial-gradient(110% 80% at 15% 15%, rgb(185 60 44 / .42), transparent 55%),
  radial-gradient(70% 70% at 95% 100%, rgb(217 147 46 / .18), transparent 60%),
  var(--stage); }
.stage--soft { background: radial-gradient(90% 60% at 50% 0%, rgb(185 60 44 / .22), transparent 70%), var(--stage-2); }
.stage__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.stage__bg i { position: absolute; display: block; }
/* Efeito do herói: "estoque em movimento" — piso de galpão em perspectiva
   avançando, luzes quentes e etiquetas de preço/estoque flutuando em camadas. */
.orb { width: 52vmax; height: 52vmax; border-radius: 50%; filter: blur(60px); opacity: .55; mix-blend-mode: screen; }
.orb--a { left: -12vmax; top: -18vmax; background: radial-gradient(circle, rgb(185 60 44 / .9), transparent 65%); animation: orbA 22s ease-in-out infinite alternate; }
.orb--b { right: -16vmax; bottom: -22vmax; background: radial-gradient(circle, rgb(217 147 46 / .7), transparent 65%); animation: orbB 26s ease-in-out infinite alternate; }
.orb--dim { opacity: .3; }
@keyframes orbA { to { transform: translate(14vmax, 10vmax) scale(1.1); } }
@keyframes orbB { to { transform: translate(-12vmax, -8vmax) scale(1.15); } }
.floor { position: absolute; left: 0; right: 0; bottom: 0; height: 34%; perspective: 420px; perspective-origin: 50% 0%; overflow: hidden;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 75%, transparent 100%);
  mask-image: linear-gradient(to bottom, transparent 0%, #000 35%, #000 75%, transparent 100%); }
.floor i { position: absolute; left: -60%; right: -60%; top: 0; height: 220%; transform-origin: 50% 0; transform: rotateX(72deg);
  background-image:
    linear-gradient(rgb(237 189 120 / .28) 1.5px, transparent 1.5px),
    linear-gradient(90deg, rgb(237 189 120 / .2) 1.5px, transparent 1.5px);
  background-size: 72px 72px; animation: floor 2.8s linear infinite; }
.floor--slow i { animation-duration: 5s; }
@keyframes floor { to { background-position: 0 72px, 0 0; } }
.tags { position: absolute; inset: 0; }
.tag {
  position: absolute; left: var(--x); bottom: -12%; padding: 7px 12px 7px 20px; border-radius: 7px 999px 999px 7px;
  background: rgb(251 246 239 / .95); color: var(--ink); font: 700 14px/1 var(--mono); white-space: nowrap;
  box-shadow: 0 12px 30px -12px rgb(0 0 0 / .7);
  transform: scale(var(--z)); opacity: 0; filter: blur(calc((1 - var(--z)) * 1.6px));
  animation: tagRise 24s linear var(--d) infinite;
}
.tag::before { content: ''; position: absolute; left: 7px; top: 50%; width: 6px; height: 6px; margin-top: -3px; border-radius: 50%; background: var(--stage); }
.tag--ok { background: rgb(31 157 92 / .92); color: #fff; }
.tag--warn { background: rgb(217 147 46 / .95); }
@keyframes tagRise {
  0% { transform: translateY(0) scale(var(--z)) rotate(-4deg); opacity: 0; }
  8% { opacity: calc(var(--z) * .5); }
  85% { opacity: calc(var(--z) * .4); }
  100% { transform: translateY(-120vh) scale(var(--z)) rotate(4deg); opacity: 0; }
}
.dots { inset: 0; opacity: .5; background-image: radial-gradient(rgb(255 255 255 / .12) 1px, transparent 1.2px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent); mask-image: radial-gradient(80% 70% at 50% 40%, #000, transparent); }
.grain {
  inset: 0; opacity: .12; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

/* ---------------- Herói ---------------- */
.hero { min-height: min(100svh, 980px); display: flex; align-items: center; padding: calc(var(--nav-h) + 40px) 0 72px; }
.hero__inner { display: grid; gap: 56px; align-items: center; }
@media (min-width: 1080px) { .hero__inner { grid-template-columns: minmax(0, 1.2fr) minmax(360px, 420px); gap: 72px; } }
.eyebrow { display: flex; align-items: center; gap: 14px; max-width: 560px; margin-bottom: 22px; font: 600 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--amber-300); }
.eyebrow .rule { flex: 1; height: 1px; background: linear-gradient(90deg, rgb(237 189 120 / .6), transparent); }
.hero__title { font: 400 clamp(2.9rem, 8vw, 6.4rem)/1.02 var(--display); letter-spacing: -.005em; }
.hero__title .line { display: block; }
.hero__title .cycler { display: grid; color: var(--amber); padding-bottom: .08em; }
/* Palavra que "decodifica": as letras embaralham e se fixam uma a uma, como uma leitura de código. */
.cycler .w { grid-area: 1 / 1; white-space: nowrap; }
.cycler .w:not(:first-child) { visibility: hidden; }            /* sem JS: mostra só a 1ª */
.cycler.is-live .w { visibility: hidden; }                       /* com JS: as palavras só dão a largura */
.cycler .decode { grid-area: 1 / 1; white-space: nowrap; }
.decode .ch { display: inline-block; transition: color .2s, text-shadow .2s; }
.decode .ch.is-noise { color: rgb(237 189 120 / .38); }
.decode .ch.is-hit { color: #ffe2b3; text-shadow: 0 0 18px rgb(255 190 110 / .9), 0 0 42px rgb(217 147 46 / .6); }
.decode .caret { display: inline-block; width: .08em; height: .82em; margin-left: .06em; vertical-align: -.02em; background: var(--amber); box-shadow: 0 0 16px rgb(217 147 46 / .8); animation: caret 1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.hero__lead { max-width: 560px; margin-top: 26px; font-size: clamp(17px, 1.6vw, 19.5px); line-height: 1.6; color: rgb(255 255 255 / .78); }
.hero__lead strong { color: #fff; font-weight: 700; }
.hero__lead em { color: var(--amber-300); font-style: normal; font-weight: 700; }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__actions--center { justify-content: center; }
.hero__trust { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 14px; color: rgb(255 255 255 / .6); }
.hero__trust li { display: inline-flex; align-items: center; gap: 8px; }
.hero__trust li::before { content: ''; width: 16px; height: 16px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/11px no-repeat; }

/* ---------------- Cupom (demo viva) ---------------- */
.hero__demo { position: relative; justify-self: center; width: 100%; max-width: 420px; }
.hero__demo-note { margin-top: 18px; text-align: center; font-size: 13.5px; color: rgb(255 255 255 / .55); }
.hero__demo-note strong { color: var(--amber-300); }
.receipt {
  --notch: 11px;
  position: relative; padding: 22px 24px 18px; border-radius: 6px; color: var(--ink); background: var(--paper);
  transform: rotate(-1.5deg);
  box-shadow: 0 40px 80px -30px rgb(0 0 0 / .85), 0 14px 30px -12px rgb(0 0 0 / .6);
  animation: print .9s cubic-bezier(.2, .9, .25, 1) .15s both;
}
@keyframes print { from { clip-path: inset(0 0 100% 0); transform: rotate(-1.5deg) translateY(-26px); } to { clip-path: inset(-20% -20% -20% -20%); } }
.receipt__head { display: flex; justify-content: space-between; padding-bottom: 12px; border-bottom: 1.5px dashed var(--line); font: 700 11px/1 var(--mono); letter-spacing: .14em; color: var(--ink-soft); }
.receipt__title { margin: 16px 0 10px; font: 400 clamp(21px, 6.4vw, 26px)/1.1 var(--display); white-space: nowrap; }
.receipt__title em { font-style: normal; color: var(--red); }
/* Alturas fixas: o cupom não muda de tamanho enquanto a demo roda (sem "tremida"). */
.receipt__items { height: 176px; overflow: hidden; }
.receipt__items li {
  display: grid; grid-template-columns: auto 1fr auto; align-items: baseline; gap: 10px; padding: 8px 0;
  border-bottom: 1px dotted var(--line); font: 600 14px/1.3 var(--mono); animation: itemIn .45s cubic-bezier(.2, .8, .2, 1) both;
}
.receipt__items li b { color: var(--red); }
.receipt__items li span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@keyframes itemIn { from { opacity: 0; transform: translateY(-6px); background: rgb(217 147 46 / .22); } to { opacity: 1; transform: none; } }
.receipt__total { display: flex; align-items: baseline; justify-content: space-between; margin-top: 12px; font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.receipt__total strong { font: 400 32px/1 var(--display); letter-spacing: 0; color: var(--ink); font-variant-numeric: tabular-nums; }
.receipt__stock { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: var(--amber-100); color: #82461f; font: 600 12.5px/1.35 var(--mono); height: calc(2 * 1.35em + 16px); overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; transition: background-color .3s, color .3s; }
.receipt__stock.is-alert { background: #fde2dc; color: var(--red-600); }
.receipt__scan {
  display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 50px; margin-top: 14px;
  border: 0; border-radius: 12px; color: #fff; background: var(--ink); font-weight: 700; font-size: 15px;
  box-shadow: 0 10px 24px -12px rgb(0 0 0 / .8); transition: transform .15s, background .2s;
}
.receipt__scan:hover { background: #000; transform: translateY(-1px); }
.receipt__scan .ico { fill: none; }
.receipt__perf { margin: 18px calc(-1 * 24px) 12px; border-top: 1.5px dashed var(--line); }
.receipt__code { height: 34px; background: repeating-linear-gradient(90deg, var(--ink) 0 2px, transparent 2px 4px, var(--ink) 4px 7px, transparent 7px 9px, var(--ink) 9px 10px, transparent 10px 14px); opacity: .9; }
.receipt__laser {
  position: absolute; left: -8px; right: -8px; top: 0; height: 3px; opacity: 0; z-index: 2; pointer-events: none;
  background: linear-gradient(90deg, transparent, var(--red) 15%, #ff8a6b 50%, var(--red) 85%, transparent);
  box-shadow: 0 0 18px 4px rgb(185 60 44 / .55), 0 0 60px 10px rgb(217 147 46 / .25);
}
.receipt.is-scanning .receipt__laser { animation: laser .7s ease-in-out; }
@keyframes laser { 0% { top: 8%; opacity: 1; } 100% { top: 92%; opacity: 0; } }
.receipt__stamp {
  position: absolute; right: 18px; top: 70px; padding: 6px 12px; border: 3px solid var(--ok); border-radius: 8px;
  font: 400 24px/1 var(--display); letter-spacing: .08em; color: var(--ok); background: rgb(31 157 92 / .07);
  transform: rotate(-14deg) scale(2); opacity: 0; pointer-events: none;
}
.receipt.is-done .receipt__stamp { animation: stamp .5s cubic-bezier(.2, 1.6, .4, 1) forwards; }
@keyframes stamp { to { transform: rotate(-14deg) scale(1); opacity: 1; } }

/* ---------------- Seções ---------------- */
.section { padding: clamp(80px, 11vw, 140px) 0; }
.paper { background: var(--paper); color: var(--ink); }
.paper--tight { padding: 72px 0 24px; }
.kicker { display: inline-flex; align-items: center; gap: 10px; margin-bottom: 16px; font: 700 12px/1 var(--mono); letter-spacing: .22em; text-transform: uppercase; color: var(--red); }
.kicker::before { content: ''; width: 22px; height: 2px; background: currentColor; }
.kicker--light { color: var(--amber-300); }
.h2 { max-width: 880px; font: 400 clamp(2.1rem, 4.8vw, 3.9rem)/1.05 var(--display); letter-spacing: -.005em; }
.h2 em { font-style: normal; color: var(--red); }
.h2--light { color: #fff; }
.h2--light em { color: var(--amber); }
.h2--sm { font-size: clamp(1.8rem, 3.4vw, 2.6rem); }

/* Dor */
.pains { display: grid; gap: 18px; margin-top: 56px; }
@media (min-width: 900px) {
  .pains { grid-template-columns: repeat(3, 1fr); gap: 22px; }
  /* As 3 caixas compartilham as mesmas linhas: a linha tracejada fica na mesma altura nas três. */
  @supports (grid-template-rows: subgrid) {
    .pain { display: grid; grid-row: span 4; grid-template-rows: subgrid; row-gap: 0; }
    .pain__fix { margin-top: 18px !important; align-self: start; }
  }
}
.pain { position: relative; display: flex; flex-direction: column; padding: 30px 28px 26px; border-radius: var(--r); background: #fff; box-shadow: 0 0 0 1px var(--line), 0 18px 40px -30px rgb(28 21 18 / .45); }
.pain__num { font: 400 44px/1 var(--display); color: transparent; -webkit-text-stroke: 1.5px var(--red); }
.pain h3 { margin: 14px 0 8px; font-size: 21px; font-weight: 800; }
.pain p { color: var(--ink-soft); font-size: 16px; }
.pain__fix { margin-top: auto !important; margin-bottom: 0; padding-top: 16px; padding-top: 16px; border-top: 1.5px dashed var(--line); color: var(--ink) !important; font-size: 15px !important; }
.pain__fix b { color: var(--ok); }

/* Recursos (bento) */
.bento { display: grid; gap: 16px; margin-top: 56px; }
@media (min-width: 720px) { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1080px) { .bento { grid-template-columns: repeat(3, 1fr); } .card--xl { grid-row: span 2; } }
.card {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; border-radius: 18px; overflow: hidden;
  background: linear-gradient(180deg, rgb(255 255 255 / .06), rgb(255 255 255 / .025));
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / .09); backdrop-filter: blur(6px);
  transition: transform .25s ease, box-shadow .25s ease;
}
.card:hover { transform: translateY(-4px); box-shadow: inset 0 0 0 1px rgb(237 189 120 / .35), 0 24px 50px -30px rgb(0 0 0 / .9); }
.card h3 { font-size: 20px; font-weight: 800; color: #fff; }
.card p { color: rgb(255 255 255 / .68); font-size: 15.5px; }
.card p b { color: #fff; }
.card__ico { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 6px; border-radius: 12px; background: rgb(217 147 46 / .14); box-shadow: inset 0 0 0 1px rgb(217 147 46 / .3); font-size: 22px; }
.card__visual { margin: -4px -4px 14px; }
.scanviz { position: relative; height: 230px; border-radius: 14px; background: radial-gradient(80% 70% at 50% 40%, rgb(185 60 44 / .3), transparent), #0c0808; overflow: hidden; }
.scanviz__code { position: absolute; left: 50%; top: 50%; width: 62%; height: 44%; transform: translate(-50%, -50%); background: repeating-linear-gradient(90deg, #fff 0 3px, transparent 3px 6px, #fff 6px 7px, transparent 7px 11px, #fff 11px 15px, transparent 15px 17px); opacity: .9; border-radius: 2px; }
.scanviz__frame i { position: absolute; width: 34px; height: 34px; border: 3px solid var(--amber); }
.scanviz__frame i:nth-child(1) { left: 12%; top: 16%; border-right: 0; border-bottom: 0; border-top-left-radius: 10px; }
.scanviz__frame i:nth-child(2) { right: 12%; top: 16%; border-left: 0; border-bottom: 0; border-top-right-radius: 10px; }
.scanviz__frame i:nth-child(3) { left: 12%; bottom: 16%; border-right: 0; border-top: 0; border-bottom-left-radius: 10px; }
.scanviz__frame i:nth-child(4) { right: 12%; bottom: 16%; border-left: 0; border-top: 0; border-bottom-right-radius: 10px; }
.scanviz__laser { position: absolute; left: 10%; right: 10%; height: 2px; top: 20%; background: #ff5a3c; box-shadow: 0 0 16px 4px rgb(255 90 60 / .6); animation: scanv 2.4s ease-in-out infinite alternate; }
@keyframes scanv { to { top: 78%; } }
.scanviz__read { position: absolute; left: 50%; bottom: 12px; transform: translateX(-50%); padding: 6px 12px; border-radius: 999px; background: rgb(31 157 92 / .92); color: #fff; font: 700 12px/1 var(--mono); letter-spacing: .06em; white-space: nowrap; }

/* Como funciona */
.steps { display: grid; gap: 18px; margin-top: 56px; counter-reset: s; }
@media (min-width: 900px) { .steps { grid-template-columns: repeat(3, 1fr); } }
.step { position: relative; padding: 30px 28px; border-radius: var(--r); background: var(--paper-2); box-shadow: inset 0 0 0 1px var(--line); }
.step__n { display: grid; place-items: center; width: 50px; height: 50px; border-radius: 50%; background: var(--ink); color: var(--amber-300); font: 400 22px/1 var(--display); }
.step h3 { margin: 18px 0 8px; font-size: 21px; font-weight: 800; }
.step p { color: var(--ink-soft); font-size: 16px; }
@media (min-width: 900px) {
  .step:not(:last-child)::after { content: ''; position: absolute; top: 55px; right: -18px; width: 18px; border-top: 2px dashed rgb(185 60 44 / .5); }
}

/* Segurança */
.sec { display: grid; gap: 48px; align-items: center; }
@media (min-width: 1000px) { .sec { grid-template-columns: 1.05fr .95fr; gap: 72px; } }
.lead-light { max-width: 560px; margin-top: 22px; color: rgb(255 255 255 / .72); font-size: 18px; }
.lead-light b { color: #fff; }
.checks { display: grid; gap: 12px; margin-top: 28px; }
.checks li { display: flex; gap: 12px; align-items: flex-start; color: rgb(255 255 255 / .86); }
.checks li::before { content: ''; flex: none; width: 22px; height: 22px; margin-top: 2px; border-radius: 7px; background: rgb(217 147 46 / .18) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23edbd78' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12.5l4.5 4.5L19 7.5'/%3E%3C/svg%3E") center/14px no-repeat; box-shadow: inset 0 0 0 1px rgb(217 147 46 / .35); }
.log { border-radius: 18px; background: rgb(12 8 8 / .7); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .1), 0 30px 60px -30px rgb(0 0 0 / .9); overflow: hidden; }
.log__head { display: flex; justify-content: space-between; padding: 14px 18px; border-bottom: 1px solid rgb(255 255 255 / .08); font: 700 12px/1 var(--mono); letter-spacing: .14em; text-transform: uppercase; color: rgb(255 255 255 / .6); }
.log__live { color: #5fd49a; animation: blink 1.6s ease-in-out infinite; }
@keyframes blink { 50% { opacity: .4; } }
.log__list li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 13px 18px; border-bottom: 1px solid rgb(255 255 255 / .05); font-size: 14px; color: rgb(255 255 255 / .75); }
.log__list li:first-child { animation: itemIn .5s ease both; }
.log__list b { color: #fff; font-weight: 700; }
.log__list time { font: 500 12px/1 var(--mono); color: rgb(255 255 255 / .45); }
.dot { width: 9px; height: 9px; border-radius: 50%; }
.dot--g { background: #5fd49a; } .dot--a { background: var(--amber); } .dot--b { background: #6aa8ff; } .dot--r { background: #ff7a66; }

/* Para quem */
.segments { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.segments li { padding: 10px 18px; border-radius: 999px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); font-weight: 650; font-size: 15px; }

/* FAQ */
.faq { display: grid; gap: 40px; }
@media (min-width: 960px) { .faq { grid-template-columns: .8fr 1.2fr; gap: 72px; } }
.faq .muted { margin-top: 18px; }
.text-link { color: var(--red); font-weight: 700; }
.faq__list { display: grid; gap: 10px; }
.faq__list details { border-radius: 14px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); transition: box-shadow .2s; }
.faq__list details[open] { box-shadow: inset 0 0 0 1.5px var(--red); }
.faq__list summary { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 20px 22px; font-weight: 750; font-size: 17px; cursor: pointer; list-style: none; }
.faq__list summary::-webkit-details-marker { display: none; }
.faq__list summary::after {
  content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background:
    linear-gradient(var(--red), var(--red)) center / 12px 2px no-repeat,
    linear-gradient(var(--red), var(--red)) center / 2px 12px no-repeat,
    var(--paper-2);
  transition: transform .25s;
}
.faq__list details[open] summary::after { transform: rotate(45deg); }
.faq__list details p { padding: 0 22px 20px; color: var(--ink-soft); }

/* CTA final */
.final { padding: clamp(96px, 13vw, 170px) 0; text-align: center; }
.final__title { max-width: 900px; margin-inline: auto; font: 400 clamp(2.4rem, 6vw, 5rem)/1.04 var(--display); }
.final__title em { font-style: normal; color: var(--amber); }
.final__lead { max-width: 560px; margin: 22px auto 0; color: rgb(255 255 255 / .75); font-size: 19px; }
.final__small { margin-top: 20px; font-size: 14px; color: rgb(255 255 255 / .55); }

/* Rodapé */
.footer { background: var(--paper); color: var(--ink); padding: 56px 0 28px; border-top: 1px solid var(--line); }
.footer__inner { display: grid; gap: 32px; }
@media (min-width: 900px) { .footer__inner { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer__tag { margin-top: 14px; color: var(--ink-soft); font-size: 15px; }
.footer__links { display: grid; gap: 10px; align-content: start; }
.footer__links a, .linkish { justify-self: start; color: var(--ink); text-decoration: none; font-size: 15px; font-weight: 600; background: none; border: 0; padding: 0; }
.footer__links a:hover, .linkish:hover { color: var(--red); }
.footer__bottom { margin-top: 36px; padding-top: 24px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px; font-size: 13px; color: var(--ink-soft); }
.footer__copy, .footer__dev { font-size: 13px; }
/* Crédito "Desenvolvido por SANTOSUTECH" — mesmo padrão dos sites Santosutech:
   TECH na cor da marca com brilho; ao passar o mouse, uma linha luminosa cresce por baixo. */
.footer__dev { font-weight: 700; margin-right: 28px; }
.footer__dev a { position: relative; display: inline-block; padding-bottom: 2px; color: inherit; font-weight: 700; text-decoration: none; }
.footer__dev a::after { content: ''; position: absolute; left: 0; bottom: 0; width: 0; height: 1px; background: var(--red); box-shadow: 0 0 8px rgb(185 60 44 / .85), 0 0 18px rgb(185 60 44 / .5); transition: width .4s; }
.footer__dev a:hover::after, .footer__dev a:focus-visible::after { width: 100%; }
.footer__dev a { transition: color .35s, text-shadow .35s; }
.footer__dev .su { color: var(--red); text-shadow: 0 0 6px rgb(185 60 44 / .45), 0 0 12px rgb(185 60 44 / .2); transition: color .35s, text-shadow .35s; }
/* Hover: o "TECH" acende forte e o nome inteiro ganha um brilho suave. */
.footer__dev a:hover, .footer__dev a:focus-visible { text-shadow: 0 0 10px rgb(185 60 44 / .35); }
.footer__dev a:hover .su, .footer__dev a:focus-visible .su {
  color: #e0503b;
  text-shadow: 0 0 6px rgb(224 80 59 / 1), 0 0 14px rgb(185 60 44 / .9), 0 0 28px rgb(185 60 44 / .6);
}
@media (max-width: 768px) { .footer__bottom { flex-direction: column; text-align: center; } .footer__dev { margin-right: 0; } }

/* Conversão fixa */
.stickybar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: flex; gap: 10px; padding: 12px 16px max(12px, env(safe-area-inset-bottom));
  background: rgb(18 12 11 / .9); backdrop-filter: blur(12px); box-shadow: 0 -1px 0 rgb(255 255 255 / .08);
  transform: translateY(110%); transition: transform .35s ease;
}
.stickybar.is-visible { transform: none; }
.stickybar__wa { display: grid; place-items: center; flex: none; width: 48px; height: 48px; border-radius: 50%; background: #25d366; color: #fff; }
@media (min-width: 900px) { .stickybar { display: none; } }
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 40; display: none; align-items: center; gap: 10px; height: 54px; padding: 0 20px 0 16px;
  border-radius: 999px; background: #25d366; color: #fff; font-weight: 750; text-decoration: none;
  box-shadow: 0 14px 30px -10px rgb(37 211 102 / .7); transition: transform .2s;
}
.wa-float:hover { transform: translateY(-3px); }
.wa-float .ico { width: 24px; height: 24px; }
@media (min-width: 900px) { .wa-float { display: inline-flex; } }

/* Cookies */
.cookie {
  position: fixed; z-index: 60; left: 16px; right: 16px; bottom: 16px; display: grid; gap: 14px; max-width: 760px; margin-inline: auto; padding: 20px 22px;
  border-radius: 18px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 70px -20px rgb(0 0 0 / .6), 0 0 0 1px var(--line);
  animation: rise .5s cubic-bezier(.2, .9, .3, 1) both;
}
.cookie[hidden] { display: none; }
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
.cookie__title { font-weight: 800; margin-bottom: 4px; }
.cookie p { font-size: 14.5px; color: var(--ink-soft); }
.cookie a { color: var(--red); font-weight: 700; }
.cookie__actions { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: 8px; }
@media (min-width: 760px) { .cookie { left: 24px; right: auto; margin: 0; max-width: 520px; } }
.cookie-modal { width: min(520px, calc(100% - 32px)); padding: 0; border: 0; border-radius: 20px; background: var(--paper); color: var(--ink); box-shadow: 0 40px 90px -20px rgb(0 0 0 / .7); }
.cookie-modal::backdrop { background: rgb(12 8 8 / .6); backdrop-filter: blur(4px); }
.cookie-modal__form { display: grid; gap: 14px; padding: 26px; }
.cookie-modal h2 { font: 400 26px/1.1 var(--display); }
.ck { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 14px 16px; border-radius: 12px; background: #fff; box-shadow: inset 0 0 0 1px var(--line); cursor: pointer; }
.ck small { display: block; margin-top: 2px; color: var(--ink-soft); font-size: 13px; }
.ck input { appearance: none; flex: none; width: 46px; height: 26px; border-radius: 999px; background: #d9cfc6; position: relative; cursor: pointer; transition: background .2s; }
.ck input::after { content: ''; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgb(0 0 0 / .3); transition: transform .2s; }
.ck input:checked { background: var(--ok); }
.ck input:checked::after { transform: translateX(20px); }
.ck input:disabled { opacity: .6; cursor: not-allowed; }
.cookie-modal__actions { display: flex; justify-content: flex-end; }

/* Revelar ao rolar */
/* Só esconde para animar quando o JS está rodando (sem JS, ou se ele falhar, tudo aparece). */
.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2, .8, .2, 1); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (max-width: 560px) {
  .tag:nth-child(n+5) { display: none; }
  .floor { height: 40%; }
  body { font-size: 16px; }
  .hero { padding-top: calc(var(--nav-h) + 24px); }
  .hero__actions .btn { width: 100%; }
  .nav .btn--sm { padding: 0 14px; }
  .brand__name { font-size: 19px; }
  .receipt { transform: none; }
}

/* ---------------- Celular/tablet: sem animações, mais limpo e leve ---------------- */
@media (max-width: 768px) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-delay: 0s !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  html { scroll-behavior: auto; }
  /* Fundo: tira as luzes, o piso de códigos, o granulado e as etiquetas flutuantes. */
  .stage__bg .orb, .stage__bg .floor, .stage__bg .grain, .stage__bg .tag { display: none !important; }
  .stage__bg { background: radial-gradient(130% 55% at 50% 0%, rgb(185 60 44 / .22), transparent 65%); }
  /* Título: palavra fixa, sem "decodificar". */
  .cycler .w { position: static; transform: none; visibility: visible; }
  .cycler .w:not(:first-child) { display: none; }
  .js .reveal { opacity: 1; transform: none; }
  /* Desfoque pesa no celular: fundo sólido no lugar. */
  .nav.is-solid { backdrop-filter: none; background: rgb(18 12 11 / .96); }
  .stickybar { backdrop-filter: none; background: rgb(18 12 11 / .97); }
  .btn--ghost, .card { backdrop-filter: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
  .cycler .w { position: static; transform: none; }
  .cycler .w:not(:first-child) { display: none; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Chegou ao rodapé: botões flutuantes saem de cena (não cobrem o conteúdo final). */
body.at-footer .wa-float { opacity: 0; transform: translateY(20px); pointer-events: none; }
body.at-footer .stickybar { transform: translateY(110%); }
.wa-float { transition: transform .2s, opacity .25s; }

/* ---------------- Estabilidade de layout (sem "tremida") ----------------
   Animações que trocam texto (título que decodifica, auditoria ao vivo) não podem
   mudar o tamanho de nada: a largura do título vem só das palavras reais (ocultas)
   e a palavra animada fica por cima, sem ocupar espaço. */
@media (max-width: 1079px) { .hero__inner { grid-template-columns: minmax(0, 1fr); } }
.hero__inner > * { min-width: 0; }
.hero__title .cycler { position: relative; }
.cycler .decode { position: absolute; left: 0; top: 0; }
@media (max-width: 480px) { .hero__title { font-size: clamp(2.3rem, 11.5vw, 2.9rem); } }
.log__list li > span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Celular: mesmos efeitos, mas leves para a GPU do aparelho.
   - Luzes sem blend-mode (o blend força repintar a tela inteira). */
@media (max-width: 768px), (hover: none) and (pointer: coarse) {
  .orb { mix-blend-mode: normal; opacity: .42; width: 70vw; height: 70vw; filter: blur(36px); }
  .orb--dim { opacity: .24; }
  .tag { filter: none; }
  .grain { mix-blend-mode: normal; opacity: .05; }
  .receipt__laser { box-shadow: 0 0 12px 3px rgb(185 60 44 / .45); }
}
/* Seção fora da tela: animações pausadas (economiza bateria e evita repintura). */
.stage.is-off .stage__bg *, .stage.is-off .tag { animation-play-state: paused !important; }

/* Topo no celular: logo + botão sempre cabem na largura (nada vaza para a direita). */
@media (max-width: 480px) {
  .nav__inner { gap: 10px; }
  .nav .brand { min-width: 0; flex-shrink: 1; gap: 8px; }
  .nav .brand__name { font-size: 17px; white-space: nowrap; }
  .nav__cta { flex-shrink: 0; }
  .nav .btn--sm { height: 38px; padding: 0 13px; font-size: 13.5px; white-space: nowrap; }
  .link-login { padding: 8px 4px; font-size: 14px; }
}
@media (max-width: 389px) { .nav .brand__name { display: none; } }

/* Cupom: nada pode "vazar" para fora dele (carimbo ampliado, brilho do laser).
   Em navegadores de celular mais antigos, qualquer coisa além da borda da tela
   alarga a página por um instante e ela "treme" para os lados. */
html, body { overflow-x: hidden; }
@supports (overflow: clip) { html, body { overflow-x: clip; } }
.receipt__stamp { transform: rotate(-14deg) scale(1.35); visibility: hidden; }
.receipt.is-done .receipt__stamp { visibility: visible; }
@media (max-width: 768px) {
  .receipt__laser { left: 0; right: 0; }
}
/* Belt-and-braces: o herói nunca deixa nada passar da largura da tela. */
.hero { overflow: hidden; }
@supports (overflow: clip) { .hero { overflow: clip; overflow-clip-margin: 0; } }
/* Letra embaralhada: ocupa o espaço da letra real (invisível) e mostra o ruído por cima,
   centralizado e sem largura própria — a codificação nunca alarga o título nem a tela. */
.decode .ch.is-noise { position: relative; color: transparent; }
.decode .ch.is-noise::after {
  content: attr(data-n); position: absolute; left: 50%; top: 0; transform: translateX(-50%);
  color: rgb(237 189 120 / .38); pointer-events: none;
}
.decode { max-width: 100%; }

/* ---------------- Título "Seu estoque, …" flexível ----------------
   A linha animada NÃO tem largura própria: ela ocupa a
   largura disponível e nada que acontece dentro dela (palavras, codificação,
   brilho) muda o tamanho do herói ou da página. As palavras de referência
   saem do fluxo; a altura é fixa em 1 linha. */
.hero__title .cycler {
  display: block; position: relative; width: 100%; min-width: 0; max-width: 100%;
  height: 1.12em; overflow: visible; white-space: nowrap;
}
.cycler .w { position: absolute; left: 0; top: 0; }
.cycler .decode { position: absolute; left: 0; top: 0; }
.hero__copy, .hero__title { min-width: 0; max-width: 100%; }
.hero__title { overflow-wrap: anywhere; }

/* Cupom: a largura vem só da coluna; o conteúdo nunca a altera. */
.hero__demo { min-width: 0; max-width: min(420px, 100%); }
.receipt__items li { grid-template-columns: auto minmax(0, 1fr) auto; }
/* Celular: o cupom "imprime" sem girar (antes girava de -1,5° até 0 ao abrir). */
@keyframes printFlat { from { clip-path: inset(0 0 100% 0); transform: translateY(-26px); } to { clip-path: inset(-20% -20% -20% -20%); } }
@media (max-width: 560px) { .receipt { animation-name: printFlat; } }

/* ---------------- Planos ---------------- */
.billing-toggle { display: inline-flex; gap: 4px; margin-top: 36px; padding: 5px; border-radius: 999px; background: rgb(255 255 255 / .07); box-shadow: inset 0 0 0 1px rgb(255 255 255 / .14); }
.billing-toggle button { display: inline-flex; align-items: center; gap: 8px; height: 40px; padding: 0 20px; border: 0; border-radius: 999px; background: none; color: rgb(255 255 255 / .75); font-weight: 700; font-size: 15px; cursor: pointer; }
.billing-toggle button[aria-checked='true'] { background: #fff; color: var(--ink); }
.billing-toggle .save { padding: 3px 8px; border-radius: 999px; background: var(--amber); color: var(--ink); font: 800 11px/1 var(--mono); }
.plans { display: grid; gap: 20px; margin-top: 32px; }
@media (min-width: 800px) { .plans { grid-template-columns: 1fr 1fr; align-items: stretch; } }
.plan {
  position: relative; display: flex; flex-direction: column; padding: 32px 28px 28px; border-radius: 22px;
  background: rgb(255 255 255 / .04); color: #fff; box-shadow: inset 0 0 0 1px rgb(255 255 255 / .12);
}
.plan--pro { background: var(--paper); color: var(--ink); box-shadow: 0 30px 70px -30px rgb(0 0 0 / .9), inset 0 0 0 2px var(--amber); }
.plan__name { font: 400 30px/1 var(--display); }
.plan__desc { margin-top: 8px; font-size: 15px; opacity: .72; }
.plan__price { display: flex; align-items: baseline; flex-wrap: wrap; gap: 6px; margin-top: 22px; }
.plan__value { font: 400 clamp(2.4rem, 6vw, 3.1rem)/1 var(--display); font-variant-numeric: tabular-nums; }
.plan--pro .plan__value { color: var(--red); }
.plan__per { font-weight: 700; opacity: .7; }
.plan__note { min-height: 1.4em; margin-top: 6px; font-size: 14px; color: var(--ink-soft); }
.plan__list { display: grid; align-content: start; gap: 10px; margin: 22px 0 26px; font-size: 15.5px; flex: 1; }
.plan__list li { position: relative; padding-left: 28px; }
.plan__list li::before { content: ''; position: absolute; left: 0; top: .3em; width: 17px; height: 17px; border-radius: 50%; background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5 9-10'/%3E%3C/svg%3E") center / 11px no-repeat; }
.plan__list li.is-off { opacity: .45; text-decoration: line-through; }
.plan__list li.is-off::before { background: rgb(255 255 255 / .25); }
.plan__fine { margin-top: 12px; text-align: center; font-size: 14px; color: var(--ink-soft); }
.plan__fine a { color: var(--red); font-weight: 700; }

.plan__note { color: rgb(255 255 255 / .6); }
.plan--pro .plan__note { color: var(--ink-soft); }
.plan__list .plan__sep { height: 1px; min-height: 0; padding: 0; margin: 6px 0; background: var(--line); }
.plan__list .plan__sep::before { display: none; }
/* Linhas equivalentes dos dois planos ficam na mesma altura (comparação lado a lado). */
.plan__list li { min-height: 1.55em; }
.secure { display: flex; align-items: center; gap: 12px; margin-top: 28px; color: rgb(255 255 255 / .75); font-size: 15px; }
.secure b { color: #fff; }
.secure__ico { flex: none; width: 34px; height: 34px; color: var(--ok); }

/* "Feito para quem vende no balcão": título e etiquetas centralizados. */
.section[aria-labelledby="quem-title"] .h2 { margin-inline: auto; text-align: center; }
.section[aria-labelledby="quem-title"] .segments { justify-content: center; }
.plan:not(.plan--pro) .plan__fine { color: rgb(255 255 255 / .6); }
.plan:not(.plan--pro) .plan__fine a { color: var(--amber-300); }
