/* ============================================================
   fidelidade-lp.css — Landing page do Programa de Fidelidade.
   Identidade Duomobi (tokens em duomobi/tokens/duomobi-tokens.css).
   Motion via GSAP (assets/fidelidade-lp.js). Mobile-friendly.
   ============================================================ */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  --lp-max: 1180px;
  --lp-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lp-card: #0f1517;
  --lp-card-line: rgba(255, 255, 255, 0.07);
  --lp-glow: 0 0 0 1px rgba(34, 197, 94, 0.16), 0 24px 80px -28px rgba(34, 197, 94, 0.32);
}

html { scroll-behavior: smooth; }
body {
  font-family: var(--duomobi-font-sans, 'Inter', system-ui, sans-serif);
  background: var(--duomobi-bg, #07090a);
  color: var(--duomobi-fg-1, #e8eeec);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  letter-spacing: -0.01em;
  overflow-x: hidden;
}
a { color: inherit; text-decoration: none; }

.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 11.5px/1 var(--duomobi-font-mono, 'JetBrains Mono', monospace);
  text-transform: uppercase; letter-spacing: 0.16em;
  color: var(--duomobi-accent-fg, #6ee7a3);
}
.kicker::before {
  content: ''; width: 18px; height: 1px;
  background: var(--duomobi-accent, #22c55e);
}
.kicker--center { justify-content: center; }
.grad {
  background: var(--duomobi-gradient, linear-gradient(105deg, #6ee7a3, #22c55e 52%, #15803d));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}

/* ── Botões ─────────────────────────────────────────────── */
.btn-primary, .btn-ghost {
  display: inline-flex; align-items: center; gap: 9px;
  height: 48px; padding: 0 26px; border-radius: 12px;
  font: 600 14.5px/1 var(--duomobi-font-sans, 'Inter', sans-serif);
  cursor: pointer; border: 1px solid transparent;
  transition: transform 0.25s var(--lp-ease), background 0.2s, border-color 0.2s, box-shadow 0.3s;
}
.btn-primary {
  background: var(--duomobi-gradient, linear-gradient(105deg, #6ee7a3, #22c55e 52%, #15803d));
  color: #04140a; box-shadow: 0 10px 30px -10px rgba(34, 197, 94, 0.55);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 18px 44px -12px rgba(34, 197, 94, 0.7); }
.btn-ghost {
  background: rgba(255, 255, 255, 0.03); color: var(--duomobi-fg-1, #e8eeec);
  border-color: var(--duomobi-line-strong, #2a3438);
}
.btn-ghost:hover { transform: translateY(-2px); border-color: var(--duomobi-accent-line, #22c55e55); color: #fff; }
.btn-primary svg, .btn-ghost svg { width: 17px; height: 17px; stroke: currentColor; fill: none; stroke-width: 2; }

/* ── Nav ────────────────────────────────────────────────── */
.lp-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 60;
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px clamp(18px, 4vw, 46px);
  transition: background 0.3s, border-color 0.3s, backdrop-filter 0.3s;
  border-bottom: 1px solid transparent;
}
.lp-nav.scrolled {
  background: rgba(7, 9, 10, 0.72); backdrop-filter: blur(14px) saturate(140%);
  border-bottom-color: var(--lp-card-line);
}
.brand { display: inline-flex; align-items: center; gap: 11px; font-weight: 700; font-size: 17px; letter-spacing: -0.03em; }
.brand .mark {
  width: 26px; height: 26px; border-radius: 8px;
  background: var(--duomobi-gradient, linear-gradient(135deg, #6ee7a3, #15803d));
  box-shadow: var(--lp-glow);
}
.brand .tag {
  font: 500 10px/1 var(--duomobi-font-mono, monospace); text-transform: uppercase; letter-spacing: 0.14em;
  color: var(--duomobi-fg-3, #6b7775); padding: 4px 8px; border: 1px solid var(--lp-card-line); border-radius: 999px;
}
.lp-nav .btn-primary { height: 40px; padding: 0 18px; font-size: 13px; }

/* ── Hero ───────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh; display: flex; align-items: center;
  padding: 120px clamp(18px, 4vw, 46px) 80px; overflow: hidden;
}
.hero-bg { position: absolute; inset: 0; z-index: 0; pointer-events: none; }
.hero-bg .blob {
  position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.5;
  will-change: transform;
}
.hero-bg .b1 { width: 620px; height: 620px; top: -180px; right: -120px; background: radial-gradient(circle, rgba(34, 197, 94, 0.4), transparent 65%); }
.hero-bg .b2 { width: 520px; height: 520px; bottom: -200px; left: -120px; background: radial-gradient(circle, rgba(34, 197, 94, 0.22), transparent 65%); }
.hero-bg .b3 { width: 360px; height: 360px; top: 30%; left: 42%; background: radial-gradient(circle, rgba(110, 231, 163, 0.18), transparent 60%); }
.hero-bg .grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.025) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
  mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 35%, #000 30%, transparent 75%);
}
.hero-inner { position: relative; z-index: 1; max-width: var(--lp-max); margin: 0 auto; width: 100%; text-align: center; }
.hero .kicker { margin-bottom: 22px; }
.hero-title {
  font-size: clamp(40px, 7vw, 82px); font-weight: 800; line-height: 1.02;
  letter-spacing: -0.045em; margin: 0 auto 24px; max-width: 16ch;
}
.hero-sub {
  font-size: clamp(15px, 2vw, 19px); line-height: 1.6; color: var(--duomobi-fg-2, #9aa6a3);
  max-width: 56ch; margin: 0 auto 38px;
}
.hero-cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 56px; }
.hero-kpis { display: flex; gap: clamp(18px, 5vw, 64px); justify-content: center; flex-wrap: wrap; }
.kpi { text-align: center; }
.kpi .v { font-size: clamp(28px, 4vw, 42px); font-weight: 800; letter-spacing: -0.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi .l { margin-top: 9px; font-size: 12px; color: var(--duomobi-fg-3, #6b7775); text-transform: uppercase; letter-spacing: 0.08em; font-weight: 600; }

/* .anim-up é só um seletor para o JS animar; visível por padrão
   (sem JS/GSAP a página continua legível). O GSAP esconde via gsap.set. */

/* Reveal on scroll: IntersectionObserver adiciona .in. SEM a classe .reveal
   (que o JS injeta) o elemento fica visível → sem JS a página continua legível.
   Transition de classe não congela como gsap.from interrompido. */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.7s var(--lp-ease), transform 0.7s var(--lp-ease); }
.reveal.in { opacity: 1; transform: none; }

/* ── Stage (slideshow das telas reais — auto-avança, dots diretos) ─ */
.stage { position: relative; padding: clamp(70px, 11vh, 140px) clamp(18px, 4vw, 46px); }
.stage-pin {
  max-width: var(--lp-max); margin: 0 auto;
  display: flex; flex-direction: column; gap: clamp(26px, 4vw, 42px);
}
.stage-grid {
  display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
  gap: clamp(28px, 5vw, 72px); align-items: center;
}
.stage-copy { position: relative; min-height: 340px; }
.panel {
  position: absolute; inset: 0; opacity: 0; transform: translateY(14px) scale(0.99);
  pointer-events: none; transition: opacity 0.55s var(--lp-ease), transform 0.55s var(--lp-ease);
  display: flex; flex-direction: column; justify-content: center;
}
.panel.active { opacity: 1; transform: none; pointer-events: auto; }
.panel .pnum {
  font: 600 12px/1 var(--duomobi-font-mono, monospace); color: var(--duomobi-accent-fg, #6ee7a3);
  letter-spacing: 0.18em; margin-bottom: 16px;
}
.panel h2 { font-size: clamp(26px, 3.4vw, 40px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; margin-bottom: 16px; }
.panel p { font-size: clamp(14.5px, 1.5vw, 16.5px); line-height: 1.65; color: var(--duomobi-fg-2, #9aa6a3); margin-bottom: 22px; max-width: 42ch; }
.panel ul { list-style: none; display: flex; flex-direction: column; gap: 11px; }
.panel li { display: flex; align-items: flex-start; gap: 11px; font-size: 14px; color: var(--duomobi-fg-1, #e8eeec); }
.panel li svg { width: 19px; height: 19px; flex-shrink: 0; margin-top: 1px; stroke: var(--duomobi-accent, #22c55e); fill: none; stroke-width: 2.2; }

/* Device / browser frame */
.stage-media { perspective: 1600px; }
.device {
  position: relative; border-radius: 16px; overflow: hidden;
  background: #0b1012; border: 1px solid var(--lp-card-line);
  box-shadow: 0 40px 120px -40px rgba(0, 0, 0, 0.85), var(--lp-glow);
  transform-style: preserve-3d; will-change: transform;
}
.device-bar {
  display: flex; align-items: center; gap: 10px; padding: 11px 15px;
  background: linear-gradient(180deg, #131a1c, #0e1416); border-bottom: 1px solid var(--lp-card-line);
}
.device-bar .dots { display: flex; gap: 7px; }
.device-bar .dots i { width: 11px; height: 11px; border-radius: 50%; background: #2a3438; display: block; }
.device-bar .dots i:nth-child(1) { background: #ff5f57; }
.device-bar .dots i:nth-child(2) { background: #febc2e; }
.device-bar .dots i:nth-child(3) { background: #28c840; }
.device-bar .url {
  flex: 1; display: flex; align-items: center; gap: 8px; justify-content: center;
  height: 28px; border-radius: 8px; background: rgba(0, 0, 0, 0.35);
  font: 500 12px/1 var(--duomobi-font-mono, monospace); color: var(--duomobi-fg-3, #6b7775);
  border: 1px solid rgba(255, 255, 255, 0.04); max-width: 360px; margin: 0 auto;
}
.device-bar .url svg { width: 12px; height: 12px; stroke: var(--duomobi-accent-fg, #6ee7a3); fill: none; }
.device-bar .live {
  display: inline-flex; align-items: center; gap: 6px; font: 700 10px/1 var(--duomobi-font-mono, monospace);
  text-transform: uppercase; letter-spacing: 0.1em; color: var(--duomobi-accent-fg, #6ee7a3);
}
.device-bar .live .pulse { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; box-shadow: 0 0 0 0 rgba(34,197,94,0.6); animation: lpPulse 2s infinite; }
@keyframes lpPulse { 0% { box-shadow: 0 0 0 0 rgba(34,197,94,0.55); } 70% { box-shadow: 0 0 0 9px rgba(34,197,94,0); } 100% { box-shadow: 0 0 0 0 rgba(34,197,94,0); } }
.device-screen { position: relative; height: clamp(420px, 56vh, 600px); background: #07090a; transition: height 0.45s var(--lp-ease); }
.device-screen iframe { width: 100%; height: 100%; border: 0; display: block; transition: opacity 0.26s var(--lp-ease); }
.device-screen.swapping iframe { opacity: 0.32; } /* dip suave durante a troca de tela */
.device-screen .veil {
  position: absolute; inset: 0; display: grid; place-items: center; background: #07090a;
  color: var(--duomobi-fg-3, #6b7775); font-size: 13px; transition: opacity 0.5s; z-index: 2;
}
.device-screen .veil.hidden { opacity: 0; pointer-events: none; }

/* Indicador estilo "stories" com rótulos: segmento ativo enche + rótulo acende.
   Sinaliza claramente onde está e qual tela vem a seguir. */
.stage-dots { display: flex; gap: clamp(8px, 1.6vw, 18px); justify-content: center; align-items: flex-start; flex-wrap: wrap; }
.stage-dots button {
  flex: 1 1 0; min-width: 92px; max-width: 220px;
  display: flex; flex-direction: column; gap: 9px;
  background: transparent; border: 0; cursor: pointer; padding: 0; text-align: left;
}
.stage-dots button .seg {
  position: relative; height: 4px; border-radius: 3px;
  background: rgba(255, 255, 255, 0.12); overflow: hidden;
  transition: box-shadow 0.3s var(--lp-ease), background 0.3s;
}
.stage-dots button .fill {
  position: absolute; left: 0; top: 0; bottom: 0; width: 0;
  background: var(--duomobi-gradient, linear-gradient(90deg, #6ee7a3, #22c55e)); border-radius: 3px;
}
.stage-dots button.active .seg { box-shadow: 0 0 16px rgba(34, 197, 94, 0.5); }
/* A barra (.fill) é animada por estilo inline no JS (robusto pra reiniciar). */
.stage-dots button .lbl {
  font: 600 11px/1 var(--duomobi-font-mono, monospace); letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--duomobi-fg-4, #4a5553); transition: color 0.3s var(--lp-ease); white-space: nowrap;
}
.stage-dots button:hover .lbl { color: var(--duomobi-fg-2, #9aa6a3); }
.stage-dots button.active .lbl { color: var(--duomobi-accent-fg, #6ee7a3); }

/* ── Section base ───────────────────────────────────────── */
.sec { padding: clamp(80px, 12vh, 150px) clamp(18px, 4vw, 46px); max-width: var(--lp-max); margin: 0 auto; }
.sec-head { text-align: center; max-width: 60ch; margin: 0 auto clamp(44px, 6vw, 72px); }
.sec-head .kicker { margin-bottom: 18px; }
.sec-head h2 { font-size: clamp(30px, 4.5vw, 52px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.06; margin-bottom: 18px; }
.sec-head p { font-size: clamp(15px, 1.8vw, 18px); color: var(--duomobi-fg-2, #9aa6a3); line-height: 1.6; }

/* ── Features grid ──────────────────────────────────────── */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.feat {
  position: relative; padding: 30px 26px; border-radius: 16px;
  background: var(--lp-card); border: 1px solid var(--lp-card-line);
  transition: transform 0.4s var(--lp-ease), border-color 0.3s, background 0.3s;
  overflow: hidden;
}
.feat::after {
  content: ''; position: absolute; inset: 0; border-radius: 16px; padding: 1px;
  background: linear-gradient(140deg, rgba(34,197,94,0.4), transparent 50%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity 0.35s;
}
.feat:hover { transform: translateY(-4px); background: #131a1c; }
.feat:hover::after { opacity: 1; }
.feat .ico {
  width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 20px;
  background: var(--duomobi-accent-soft, rgba(34,197,94,0.1)); border: 1px solid var(--duomobi-accent-line, rgba(34,197,94,0.22));
}
.feat .ico svg { width: 23px; height: 23px; stroke: var(--duomobi-accent-fg, #6ee7a3); fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feat h3 { font-size: 18px; font-weight: 700; letter-spacing: -0.02em; margin-bottom: 10px; }
.feat p { font-size: 14px; line-height: 1.6; color: var(--duomobi-fg-2, #9aa6a3); }

/* ── Steps ──────────────────────────────────────────────── */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: step; }
.step { position: relative; padding: 30px 26px 30px; border-radius: 16px; background: var(--lp-card); border: 1px solid var(--lp-card-line); }
.step .n {
  font: 800 15px/1 var(--duomobi-font-mono, monospace); width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center; margin-bottom: 18px;
  color: #04140a; background: var(--duomobi-gradient, linear-gradient(135deg, #6ee7a3, #15803d));
}
.step h3 { font-size: 17px; font-weight: 700; margin-bottom: 9px; letter-spacing: -0.02em; }
.step p { font-size: 14px; line-height: 1.6; color: var(--duomobi-fg-2, #9aa6a3); }
.step .arrow { position: absolute; right: -14px; top: 46px; color: var(--duomobi-fg-4, #4a5553); }
.step:last-child .arrow { display: none; }

/* ── CTA final ──────────────────────────────────────────── */
.cta-final { padding: clamp(18px, 4vw, 46px); }
.cta-band {
  position: relative; max-width: var(--lp-max); margin: 0 auto; overflow: hidden;
  border-radius: 28px; padding: clamp(48px, 8vw, 96px) clamp(28px, 6vw, 80px); text-align: center;
  background: linear-gradient(135deg, #0c2a18, #07090a 70%);
  border: 1px solid var(--duomobi-accent-line, rgba(34,197,94,0.22));
}
.cta-band::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(34,197,94,0.3), transparent 55%), radial-gradient(circle at 90% 100%, rgba(110,231,163,0.18), transparent 50%);
  pointer-events: none;
}
.cta-band > * { position: relative; }
.cta-band h2 { font-size: clamp(30px, 5vw, 56px); font-weight: 800; letter-spacing: -0.04em; line-height: 1.05; margin-bottom: 18px; }
.cta-band p { font-size: clamp(15px, 2vw, 19px); color: var(--duomobi-fg-2, #9aa6a3); margin: 0 auto 34px; max-width: 50ch; line-height: 1.6; }

/* ── Footer ─────────────────────────────────────────────── */
.lp-foot {
  border-top: 1px solid var(--lp-card-line); padding: 34px clamp(18px, 4vw, 46px);
  display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap;
  color: var(--duomobi-fg-3, #6b7775); font-size: 13px; max-width: var(--lp-max); margin: 0 auto;
}

/* ── Responsivo ─────────────────────────────────────────── */
@media (max-width: 900px) {
  .stage { padding: 56px clamp(18px, 4vw, 46px); }
  .stage-grid { grid-template-columns: 1fr; gap: 24px; }
  .stage-copy { min-height: 300px; }
  .stage-dots { gap: 7px; }
  .stage-dots button { min-width: 66px; }
  .stage-dots button .lbl { font-size: 9px; letter-spacing: 0.04em; }
  .feat-grid, .steps { grid-template-columns: 1fr; }
  .step .arrow { display: none; }
  .device-screen { height: clamp(420px, 64vh, 560px); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .anim-up { opacity: 1 !important; transform: none !important; }
  .reveal { opacity: 1 !important; transform: none !important; transition: none !important; }
  .hero-bg .blob { animation: none !important; }
  .device-screen iframe { transition: none !important; }
  .device-screen.swapping iframe { opacity: 1 !important; }
}
