/* zum — home (18/09/2026). Tokens do design system (4.Marca/design-system.md).
   Efeitos inspirados em componentes MIT da 21st.dev (Magic UI: animated-list, marquee,
   number-ticker, shimmer-button, bento-grid, border-beam; Motion Primitives: text-effect,
   spotlight), reescritos em CSS/JS puro porque o site é estático. */

@font-face { font-family: 'Bagel Fat One'; src: url('bagel-fat-one.woff2') format('woff2'); font-display: swap; }
@font-face { font-family: 'Figtree'; font-weight: 300 900; src: url('figtree.woff2') format('woff2'); font-display: swap; }

:root {
  --violeta: #2A1B4D; --violeta-tom: #35255F; --noite: #1A1030; --ameixa: #5C4A85;
  --lilas: #C4B5E8; --areia: #E9E4F2; --creme: #F8F6FB; --tinta: #241A3D; --borda: #E4DFEE;
  --ouro: #F5B324; --beleza: #FF3D8B; --casa: #5FA88C; --moda: #A98BE8; --eletro: #2FD4D4;
  --gorda: 'Bagel Fat One', 'Arial Black', sans-serif;
  --fina: 'Figtree', system-ui, sans-serif;
  --curva: cubic-bezier(.22, 1, .36, 1);
}

* { margin: 0; padding: 0; box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { font-family: var(--fina); background: var(--creme); color: var(--tinta); font-size: 17px;
  line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

h1, h2 { font-family: var(--gorda); font-weight: 400; line-height: .98; letter-spacing: -.01em;
  text-transform: uppercase; }
h2 { font-size: clamp(38px, 10vw, 64px); margin-bottom: 18px; }
h2 em, h1 em { font-style: normal; }
h3 { font-weight: 700; font-size: 19px; line-height: 1.2; }
.kicker { font-size: 13px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase;
  color: var(--ameixa); margin-bottom: 10px; }
.kicker-claro { color: var(--lilas); }

/* ── botão ouro com brilho que atravessa (shimmer-button) ─────────────────────────── */
.btn { position: relative; display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 60px; padding: 0 30px; border-radius: 999px; font-family: var(--fina); font-weight: 700;
  font-size: 18px; text-decoration: none; overflow: hidden; isolation: isolate;
  transition: transform .15s var(--curva), box-shadow .2s; -webkit-tap-highlight-color: transparent; }
.btn-ouro { background: var(--ouro); color: var(--violeta); box-shadow: 0 0 0 0 rgba(245,179,36,.55);
  animation: pulso 2.8s var(--curva) infinite; }
.btn-ouro::after { content: ""; position: absolute; inset: -40% auto -40% -60%; width: 45%; z-index: -1;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,.75), transparent);
  transform: skewX(-20deg); animation: brilho 3.2s ease-in-out infinite; }
.btn:active { transform: scale(.97); }
.btn-p { min-height: 48px; padding: 0 22px; font-size: 16px; animation: none; }
@keyframes brilho { 0%, 55% { left: -60%; } 100% { left: 130%; } }
@keyframes pulso { 0% { box-shadow: 0 0 0 0 rgba(245,179,36,.5); } 70%, 100% { box-shadow: 0 0 0 16px rgba(245,179,36,0); } }

/* ── hero ─────────────────────────────────────────────────────────────────────────── */
.hero { position: relative; background: var(--violeta); color: var(--creme); overflow: hidden;
  padding: 34px 0 70px; }
.padrao { position: absolute; inset: -20px -60px; font-family: var(--gorda); font-size: 120px;
  line-height: .9; color: var(--violeta-tom); white-space: nowrap; user-select: none; opacity: .75;
  animation: deriva 40s linear infinite; }
@keyframes deriva { to { transform: translateX(-260px); } }
.aurora { position: absolute; inset: 0; pointer-events: none; filter: blur(60px); opacity: .55; }
.aurora span { position: absolute; border-radius: 50%; animation: flutua 14s ease-in-out infinite alternate; }
.aurora span:nth-child(1) { width: 60vw; height: 60vw; max-width: 520px; max-height: 520px; left: -15%; top: 30%; background: #5C3FB0; }
.aurora span:nth-child(2) { width: 45vw; height: 45vw; max-width: 420px; max-height: 420px; right: -10%; top: -5%; background: #FF3D8B; opacity: .45; animation-delay: -5s; }
.aurora span:nth-child(3) { width: 40vw; height: 40vw; max-width: 380px; max-height: 380px; right: 10%; bottom: -15%; background: #F5B324; opacity: .25; animation-delay: -9s; }
@keyframes flutua { to { transform: translate(8%, -10%) scale(1.15); } }

.hero-grid { position: relative; max-width: 1080px; margin: 0 auto; padding: 0 20px; display: grid; gap: 46px; }
.hero-texto { text-align: center; display: flex; flex-direction: column; align-items: center; }
.marca { width: 150px; height: auto; margin-bottom: 22px; }
.eyebrow { display: inline-flex; align-items: center; gap: 9px; padding: 8px 16px; border-radius: 999px;
  border: 1px solid rgba(196,181,232,.35); background: rgba(26,16,48,.35); backdrop-filter: blur(6px);
  font-size: 12.5px; letter-spacing: .06em; text-transform: uppercase; color: var(--lilas); }
.ao-vivo { width: 8px; height: 8px; border-radius: 50%; background: #3BD671; box-shadow: 0 0 0 0 rgba(59,214,113,.7);
  animation: vivo 1.8s infinite; }
@keyframes vivo { 70%, 100% { box-shadow: 0 0 0 9px rgba(59,214,113,0); } }
.h1 { font-size: clamp(42px, 12.4vw, 76px); color: var(--creme); margin: 20px 0 16px; }
.h1 em { color: var(--ouro); }
.h1 .p { display: inline-block; opacity: 0; filter: blur(10px); transform: translateY(14px);
  animation: palavra .7s var(--curva) forwards; }
@keyframes palavra { to { opacity: 1; filter: blur(0); transform: none; } }
.sub { font-size: 18px; color: var(--lilas); max-width: 440px; margin-bottom: 26px; }
.hero .btn { width: 100%; max-width: 420px; }
.chips { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-top: 18px; }
.chips li { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--lilas);
  padding: 6px 13px; border: 1px solid rgba(196,181,232,.3); border-radius: 999px; }

/* celular com o chat (animated-list) */
.celular-area { position: relative; display: flex; justify-content: center; }
.celular { position: relative; width: min(330px, 88vw); height: 560px; border-radius: 42px; padding: 10px;
  background: #0F0820; border: 1px solid rgba(196,181,232,.25);
  box-shadow: 0 30px 80px rgba(10,5,25,.55), inset 0 0 0 2px rgba(255,255,255,.04);
  animation: sobe 1s var(--curva) .5s both; }
@keyframes sobe { from { opacity: 0; transform: translateY(40px) rotate(-3deg); } }
.cel-topo { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #20133F;
  border-radius: 32px 32px 0 0; }
.cel-topo img { width: 36px; height: 36px; border-radius: 50%; background: var(--creme); }
.cel-topo strong { display: block; font-size: 15px; color: var(--creme); }
.cel-topo span { font-size: 11.5px; color: var(--lilas); }
.cel-chat { position: relative; height: calc(100% - 60px); overflow: hidden; border-radius: 0 0 32px 32px;
  background: #EAE4F3 radial-gradient(rgba(42,27,77,.06) 1px, transparent 1px) 0 0/14px 14px;
  display: flex; flex-direction: column; justify-content: flex-end; gap: 10px; padding: 12px 12px 14px;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 70px); mask-image: linear-gradient(to bottom, transparent 0, #000 70px); }
.msg { align-self: flex-start; width: 86%; background: #fff; border-radius: 4px 14px 14px 14px; padding: 6px;
  color: #1c1c1c; font-size: 12.5px; line-height: 1.38; box-shadow: 0 1px 1px rgba(0,0,0,.08);
  animation: chega .55s var(--curva) both; transform-origin: top left; }
@keyframes chega { from { opacity: 0; transform: translateY(24px) scale(.94); } }
.msg .foto { background: #fff; border-radius: 9px; height: 132px; display: flex; align-items: center;
  justify-content: center; margin-bottom: 6px; border: 1px solid #f0edf5; }
.msg .foto img { height: 118px; width: auto; }
.msg p { padding: 0 5px; }
.msg .risco { text-decoration: line-through; color: #777; }
.msg .hora { display: block; text-align: right; font-size: 10.5px; color: #8a8a8a; padding: 0 5px; }

.selo-flutuante { position: absolute; z-index: 2; padding: 10px 14px; border-radius: 16px; background: var(--creme);
  color: var(--violeta); font-weight: 700; font-size: 14px; line-height: 1.2; box-shadow: 0 14px 30px rgba(10,5,25,.35);
  animation: boia 5s ease-in-out infinite; }
.selo-flutuante b { display: block; font-family: var(--gorda); font-weight: 400; font-size: 24px; }
.selo-flutuante:empty { display: none; }
.selo-a { left: max(0px, calc(50% - 215px)); top: 70px; transform: rotate(-4deg); }
.selo-b { right: max(0px, calc(50% - 215px)); bottom: 70px; animation-delay: -2.5s; }
.selo-b b { color: var(--beleza); }
@keyframes boia { 50% { translate: 0 -10px; } }

/* ── faixa de marcas (marquee) ────────────────────────────────────────────────────── */
.faixa-marcas { background: var(--noite); color: var(--creme); overflow: hidden; padding: 16px 0;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent); }
.faixa-trilho { display: flex; width: max-content; align-items: center; gap: 26px; animation: rola 32s linear infinite; }
.faixa-trilho span { font-family: var(--gorda); font-size: 22px; text-transform: uppercase; white-space: nowrap; }
.faixa-trilho i { color: var(--ouro); font-style: normal; }
@keyframes rola { to { transform: translateX(-50%); } }

/* ── seções ────────────────────────────────────────────────────────────────────────── */
section { padding: 72px 0; }

.quedas { background: var(--creme); }
.economia { font-size: 18px; color: var(--ameixa); margin-bottom: 22px; }
.economia strong { color: var(--tinta); }
.ticker { font-family: var(--gorda); font-weight: 400; font-size: 30px; background: var(--ouro); color: var(--violeta);
  padding: 0 10px; border-radius: 8px; display: inline-block; font-variant-numeric: tabular-nums; }
.filtros { display: flex; gap: 8px; margin-bottom: 18px; }
.filtros button { font: 600 15px var(--fina); color: var(--ameixa); background: transparent; border: 1px solid var(--borda);
  padding: 9px 18px; border-radius: 999px; cursor: pointer; transition: .2s; }
.filtros button[aria-selected="true"] { background: var(--violeta); border-color: var(--violeta); color: var(--creme); }

.grade-quedas { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.queda { position: relative; display: flex; flex-direction: column; background: #fff; border: 1px solid var(--borda);
  border-radius: 14px; padding: 10px; text-decoration: none; color: var(--tinta); overflow: hidden;
  transition: transform .25s var(--curva), border-color .25s; }
.queda:hover { transform: translateY(-4px); border-color: var(--lilas); }
.queda .img { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 8px; }
.queda .img img { width: 100%; height: 100%; object-fit: contain; transition: transform .4s var(--curva); }
.queda:hover .img img { transform: scale(1.06) rotate(-2deg); }
.queda .off { position: absolute; top: 10px; left: 10px; background: var(--ouro); color: var(--violeta);
  font-weight: 800; font-size: 14px; padding: 3px 9px; border-radius: 7px; }
.queda .marca-p { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--ameixa); }
.queda .nome { font-size: 14.5px; font-weight: 600; line-height: 1.25; margin: 2px 0 8px; min-height: 36px; }
.queda .de { font-size: 13px; color: var(--ameixa); text-decoration: line-through; }
.queda .por { font-family: var(--gorda); font-size: 23px; line-height: 1.05; color: var(--tinta); }
.queda .loja { margin-top: 6px; font-size: 12px; color: var(--ameixa); }
.queda .ver { margin-top: 10px; font-size: 13px; font-weight: 700; color: var(--violeta); }
.queda.sai { display: none; }
.ressalva { margin-top: 16px; font-size: 13px; color: var(--ameixa); }

/* como funciona: linha que enche com a rolagem */
.como { background: var(--areia); }
.passos { list-style: none; position: relative; margin-top: 12px; --prog: 0; }
.passos::before, .passos::after { content: ""; position: absolute; left: 23px; top: 24px; bottom: 24px; width: 3px; border-radius: 3px; }
.passos::before { background: var(--borda); }
.passos::after { background: var(--violeta); transform-origin: top; transform: scaleY(var(--prog)); }
.passos li { position: relative; z-index: 1; display: flex; gap: 18px; padding: 14px 0; }
.bolinha { flex: none; width: 49px; height: 49px; border-radius: 50%; background: var(--violeta); color: var(--creme);
  display: flex; align-items: center; justify-content: center; font-family: var(--gorda); font-size: 22px;
  box-shadow: 0 0 0 6px var(--areia); }
.passos h3 { margin: 10px 0 4px; }
.passos p { color: var(--ameixa); }

/* bento escuro com luz (spotlight + border-beam) */
.ganhos { background: var(--noite); color: var(--creme); }
.ganhos h2 em { color: var(--ouro); }
.bento { display: grid; gap: 12px; margin-top: 8px; }
.bloco { position: relative; overflow: hidden; border-radius: 20px; padding: 24px; background: #221540;
  border: 1px solid rgba(196,181,232,.14); --x: 50%; --y: 50%; }
.bloco::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .3s; pointer-events: none;
  background: radial-gradient(260px circle at var(--x) var(--y), rgba(196,181,232,.18), transparent 70%); }
.bloco:hover::before, .bloco.ativo::before { opacity: 1; }
.bloco-grande::after { content: ""; position: absolute; inset: 0; border-radius: inherit; padding: 1.5px; pointer-events: none;
  background: conic-gradient(from var(--ang, 0deg), transparent 0 70%, var(--ouro) 85%, transparent 100%);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0); animation: feixe 5s linear infinite; }
@property --ang { syntax: "<angle>"; inherits: false; initial-value: 0deg; }
@keyframes feixe { to { --ang: 360deg; } }
.rotulo { display: block; font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--ouro); margin-bottom: 10px; }
.bloco h3 { font-size: 22px; margin-bottom: 6px; }
.bloco p { color: var(--lilas); font-size: 16px; }
.grafico { margin-top: 18px; height: 90px; }
.grafico svg { width: 100%; height: 100%; overflow: visible; }
.grafico .linha { fill: none; stroke: var(--ouro); stroke-width: 3; stroke-linecap: round; stroke-dasharray: 420; stroke-dashoffset: 420; }
.grafico .ponto { fill: var(--ouro); opacity: 0; }
.bloco.visivel .linha { transition: stroke-dashoffset 1.6s var(--curva) .3s; stroke-dashoffset: 0; }
.bloco.visivel .ponto { transition: opacity .3s 1.8s; opacity: 1; }

/* nichos */
.nichos { display: grid; grid-template-columns: repeat(2, 1fr); gap: 12px; }
.nicho { display: flex; flex-direction: column; gap: 8px; padding: 18px; border-radius: 16px; background: var(--areia);
  border: 1px solid var(--borda); text-decoration: none; color: var(--ameixa); min-height: 130px; }
.nicho h3 { font-size: 17px; }
.nicho-ativo { background: var(--violeta); color: var(--creme); border-color: var(--violeta); grid-column: span 2; min-height: 0;
  transition: transform .2s var(--curva); }
.nicho-ativo:active { transform: scale(.98); }
.nicho-ativo h3 { font-size: 22px; }
.mini { font-weight: 700; color: var(--ouro); }
.tag { font-size: 11.5px; font-weight: 300; letter-spacing: .14em; text-transform: uppercase; }
.tag-beleza { color: #FF8DBA; } .tag-casa { color: var(--casa); } .tag-moda { color: var(--moda); } .tag-eletro { color: #1BA8A8; }

/* dúvidas com abertura suave */
.duvidas details { border-bottom: 1px solid var(--borda); }
.duvidas summary { list-style: none; cursor: pointer; padding: 20px 40px 20px 0; font-weight: 700; font-size: 18px; position: relative; }
.duvidas summary::-webkit-details-marker { display: none; }
.duvidas summary::after { content: "+"; position: absolute; right: 4px; top: 50%; translate: 0 -50%; font-size: 26px; font-weight: 400;
  color: var(--ameixa); transition: rotate .3s var(--curva); }
.duvidas details[open] summary::after { rotate: 45deg; }
.duvidas details p { padding: 0 0 20px; color: var(--ameixa); }
@supports (interpolate-size: allow-keywords) {
  .duvidas { interpolate-size: allow-keywords; }
  .duvidas details::details-content { height: 0; overflow: hidden; transition: height .35s var(--curva), content-visibility .35s allow-discrete; }
  .duvidas details[open]::details-content { height: auto; }
}

/* fecho */
.fecho { position: relative; overflow: hidden; background: var(--violeta); color: var(--creme); text-align: center; padding: 90px 0; }
.fecho h2 { color: var(--creme); }
.fecho h2 em { color: var(--ouro); }
.fecho p { color: var(--lilas); max-width: 420px; margin: 0 auto 28px; }
.fecho .btn { width: 100%; max-width: 420px; }
.fecho .wrap { position: relative; }

footer { text-align: center; padding: 44px 20px calc(110px + env(safe-area-inset-bottom)); font-size: 14px; color: var(--ameixa); }
.logo-rodape { width: 90px; height: auto; margin: 0 auto 14px; }
footer p { margin-bottom: 10px; }
footer .aviso { font-size: 12px; max-width: 520px; margin: 0 auto 8px; }
.copyright { font-size: 12px; }

/* barra fixa */
.barra-fixa { position: fixed; left: 12px; right: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 8px 8px 8px 18px;
  background: rgba(26,16,48,.92); backdrop-filter: blur(10px); border-radius: 999px; color: var(--lilas); font-size: 13px;
  box-shadow: 0 12px 30px rgba(10,5,25,.35); transform: translateY(140%); transition: transform .45s var(--curva); }
.barra-fixa.on { transform: none; }

/* revelar ao rolar */
.revelar { opacity: 0; transform: translateY(26px); transition: opacity .7s var(--curva), transform .7s var(--curva); }
.revelar.visivel { opacity: 1; transform: none; }
.sem-js .revelar { opacity: 1; transform: none; }

/* ── telas maiores ─────────────────────────────────────────────────────────────────── */
@media (min-width: 720px) {
  .grade-quedas { grid-template-columns: repeat(3, 1fr); gap: 16px; }
  .bento { grid-template-columns: repeat(3, 1fr); }
  .bloco-grande { grid-column: span 2; grid-row: span 2; }
  .bloco-largo { grid-column: span 3; }
  .nichos { grid-template-columns: repeat(4, 1fr); }
  .nicho-ativo { grid-column: span 1; }
  .passos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
  .passos::before, .passos::after { display: none; }
  .passos li { flex-direction: column; }
}
@media (min-width: 980px) {
  .hero { padding: 60px 0 90px; }
  .hero-grid { grid-template-columns: 1.1fr .9fr; align-items: center; }
  .hero-texto { text-align: left; align-items: flex-start; }
  .chips { justify-content: flex-start; }
  .grade-quedas { grid-template-columns: repeat(4, 1fr); }
  .barra-fixa { display: none; }
  footer { padding-bottom: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  .h1 .p, .revelar { opacity: 1; filter: none; transform: none; }
}
