/* Home: hero com tela de máquina animada, cartão RFID e faixa de destaques. */

.hero { position: relative; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(800px 420px at 78% 30%, rgba(244, 187, 46, .16), transparent 70%),
    radial-gradient(500px 300px at 0% 100%, rgba(217, 149, 12, .12), transparent 70%);
}
.hero::after { /* bolhas subindo */
  content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image:
    radial-gradient(circle, rgba(244, 187, 46, .5) 0 2px, transparent 3px),
    radial-gradient(circle, rgba(247, 241, 230, .35) 0 1.5px, transparent 2.5px);
  background-size: 140px 160px, 90px 120px;
  background-position: 20px 0, 60px 40px;
  animation: bubbles 18s linear infinite;
  mask-image: linear-gradient(to top, #000, transparent 85%);
  -webkit-mask-image: linear-gradient(to top, #000, transparent 85%);
}
@keyframes bubbles { to { background-position: 20px -640px, 60px -480px; } }

.hero__inner {
  position: relative; z-index: 1;
  max-width: var(--maxw); margin: 0 auto; padding: clamp(48px, 7vw, 96px) var(--pad-x) clamp(56px, 8vw, 112px);
  display: grid; grid-template-columns: 1.05fr 1fr; gap: clamp(32px, 5vw, 72px); align-items: center;
}
.hero h1 { margin-bottom: 22px; font-size: clamp(2.3rem, 4.8vw, 3.7rem); }
.hero h1 em {
  font-style: normal; color: var(--amber); position: relative; white-space: nowrap;
}
.hero h1 em::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: .02em; height: .14em;
  background: var(--amber); opacity: .35; border-radius: 4px; transform-origin: left;
  animation: underline 1s .4s cubic-bezier(.2, .8, .2, 1) both;
}
@keyframes underline { from { transform: scaleX(0); } }
.hero__lead { font-size: clamp(1.05rem, 1.6vw, 1.2rem); color: var(--ink-2); max-width: 560px; margin-bottom: 30px; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 36px; }
.hero__facts {
  list-style: none; margin: 0; padding: 22px 0 0; border-top: 1px dashed rgba(247, 241, 230, .2);
  display: grid; grid-template-columns: auto auto auto; justify-content: start; gap: 18px clamp(20px, 3vw, 36px);
}
.hero__facts li { font-size: .88rem; line-height: 1.35; color: var(--muted); display: flex; flex-direction: column; gap: 6px; }
.hero__facts strong { font: 600 clamp(1.05rem, 1.6vw, 1.3rem)/1 var(--font-mono); color: var(--ink); letter-spacing: -.02em; white-space: nowrap; }
@media (max-width: 520px) {
  /* no celular: uma linha por destaque, valor à esquerda e explicação ao lado */
  .hero__facts { grid-template-columns: 1fr; gap: 12px; }
  .hero__facts li { display: grid; grid-template-columns: 9.5em 1fr; align-items: baseline; gap: 12px; }
  .hero__facts strong { font-size: 1.02rem; }
}

.hero__visual { position: relative; padding: 0 0 40px 32px; }
.hero__photo { margin: 0; border-radius: 26px; overflow: hidden; box-shadow: var(--shadow-lg); aspect-ratio: 960 / 763; border: 1px solid rgba(247, 241, 230, .1); }
.hero__photo img { width: 100%; height: 100%; object-fit: cover; }

/* tela da máquina (decorativa) */
.screen {
  position: absolute; left: 0; bottom: 0; width: min(330px, 74%);
  background: #0c0b0a; border-radius: 18px; padding: 12px;
  border: 1px solid rgba(247, 241, 230, .14);
  box-shadow: 0 24px 50px rgba(0, 0, 0, .5), inset 0 0 0 4px #1c1915;
  font-family: var(--font-mono); color: #f7f1e6;
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 50% { transform: translateY(-8px); } }
.screen__top { display: flex; justify-content: space-between; align-items: center; font-size: .68rem; letter-spacing: .16em; color: var(--amber); padding: 2px 4px 10px; }
.screen__dot { width: 8px; height: 8px; border-radius: 50%; background: #5cc27a; box-shadow: 0 0 10px #5cc27a; animation: blink 1.6s steps(2) infinite; }
@keyframes blink { 50% { opacity: .3; } }
.screen__body { display: flex; gap: 14px; align-items: flex-end; background: linear-gradient(160deg, #f4bb2e, #d9950c); border-radius: 12px; padding: 14px; color: #1b1714; }
.screen__info { flex: 1; min-width: 0; }
.screen__name { font: 800 1.15rem/1.1 var(--font-display); margin: 0 0 2px; }
.screen__style { font-size: .68rem; margin: 0 0 10px; opacity: .75; }
.screen__price { font-weight: 600; font-size: 1.05rem; margin: 0; }
.screen__price small { font-size: .7rem; opacity: .7; }
.screen__ml { font-size: .7rem; margin: 6px 0 0; padding-top: 6px; border-top: 1px solid rgba(27, 23, 20, .2); }
.screen__ml span { font-weight: 700; font-size: .9rem; }
.screen__keg { margin-top: 10px; height: 6px; border-radius: 6px; background: rgba(247, 241, 230, .12); overflow: hidden; }
.screen__keg span { display: block; height: 100%; width: 68%; background: linear-gradient(90deg, #5cc27a, #f4bb2e); border-radius: inherit; animation: keg 9s linear infinite; }
@keyframes keg { from { width: 72%; } to { width: 64%; } }

/* copo enchendo */
.glass {
  position: relative; width: 58px; height: 84px; flex: none;
  clip-path: polygon(0 0, 100% 0, 88% 100%, 12% 100%);
  background: rgba(255, 255, 255, .35);
}
.glass__beer {
  position: absolute; left: 0; right: 0; bottom: 0; height: 0;
  background: linear-gradient(#ffcf55, #e5a11b);
  animation: pour 9s cubic-bezier(.4, .1, .3, 1) infinite;
}
.glass__beer::before { /* bolhinhas no copo */
  content: ""; position: absolute; inset: 0;
  background-image: radial-gradient(circle, rgba(255, 255, 255, .7) 0 1px, transparent 1.5px);
  background-size: 9px 11px; animation: fizz 2s linear infinite; opacity: .6;
}
@keyframes fizz { to { background-position: 0 -22px; } }
.glass__foam { position: absolute; left: -2px; right: -2px; top: -9px; height: 12px; background: #fffaf1; border-radius: 6px 6px 3px 3px; }
@keyframes pour { 0%, 6% { height: 0; } 70%, 92% { height: 86%; } 100% { height: 0; } }

/* cartão RFID */
.rfid {
  position: absolute; right: -6px; top: 14%;
  width: 170px; aspect-ratio: 85.6 / 54; border-radius: 12px; padding: 12px 14px;
  background: linear-gradient(135deg, #2a2420, #121010 60%);
  border: 1px solid rgba(244, 187, 46, .5);
  box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
  display: flex; flex-direction: column; justify-content: space-between;
  transform: rotate(8deg); animation: card 7s ease-in-out infinite;
  font-family: var(--font-mono);
}
@keyframes card { 50% { transform: rotate(4deg) translateY(-10px); } }
.rfid__chip { width: 26px; height: 20px; border-radius: 4px; background: linear-gradient(135deg, #f4bb2e, #b07a10); }
.rfid__brand { font: 800 .82rem/1 var(--font-display); letter-spacing: .12em; color: var(--amber); }
.rfid__num { font-size: .62rem; color: #d6cab8; }

@media (max-width: 920px) {
  .hero__inner { grid-template-columns: 1fr; }
  .hero__visual { max-width: 560px; }
}
@media (max-width: 480px) {
  .hero__visual { padding-left: 0; }
  .rfid { width: 130px; right: 6px; top: -18px; }
  .screen { width: 82%; }
}

/* destaque "funciona sem internet" na seção da solução */
.offline-box {
  display: flex; gap: 16px; align-items: flex-start;
  margin: 8px 0 24px; padding: 18px 20px; border-radius: var(--radius);
  background: rgba(244, 187, 46, .12); border: 1px solid rgba(244, 187, 46, .45);
}
.offline-box__icon { width: 44px; height: 44px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--amber); color: var(--stout); }
.offline-box__icon svg { width: 22px; height: 22px; }
.offline-box__title { font: 700 1.08rem/1.3 var(--font-display); color: var(--ink); margin: 0 0 6px; }
.offline-box p:last-child { margin: 0; font-size: .95rem; color: var(--ink-2); }

/* faixa de destaques ("linha de chope") */
.pourline { background: var(--amber); color: var(--stout); position: relative; }
/* borda da faixa: o chope "sobe" para dentro do hero, espelhando a onda do rodapé.
   Onda âmbar clara na frente e uma âmbar escura atrás, sempre acima dela (só a de trás
   desenha a borda com o escuro, sem quinas). Tangentes horizontais: a repetição não forma bicos. */
.pourline::before, .pourline::after { content: ""; position: absolute; left: 0; right: 0; pointer-events: none; background-repeat: repeat-x; }
.pourline::before {
  top: -30px; height: 32px; background-size: 520px 32px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 520 32' preserveAspectRatio='none'%3E%3Cpath d='M0 12 C130 12 130 2 260 2 S390 12 520 12 V32 H0Z' fill='%23d9950c'/%3E%3C/svg%3E");
  animation: foot-wave-rev 30s linear infinite;
}
.pourline::after {
  top: -20px; height: 22px; background-size: 400px 22px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 400 22' preserveAspectRatio='none'%3E%3Cpath d='M0 16 C100 16 100 6 200 6 S300 16 400 16 V22 H0Z' fill='%23f4bb2e'/%3E%3C/svg%3E");
  animation: foot-wave 24s linear infinite;
}
/* keyframes foot-wave e foot-wave-rev ficam em common.css (compartilhados com o rodapé) */
.pourline__inner {
  list-style: none; margin: 0 auto; max-width: var(--maxw); padding: 22px var(--pad-x);
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.pourline li { display: flex; align-items: center; gap: 12px; font-size: .92rem; line-height: 1.3; }
.pourline svg { width: 26px; height: 26px; flex: none; }
.pourline strong { display: block; font-family: var(--font-display); font-size: 1rem; }
@media (max-width: 860px) { .pourline__inner { grid-template-columns: 1fr 1fr; } }
@media (max-width: 440px) { .pourline__inner { grid-template-columns: 1fr; } }

.faq-layout { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.faq-layout .sec-head { position: sticky; top: calc(var(--nav-h) + 24px); }
@media (max-width: 860px) {
  .faq-layout { grid-template-columns: 1fr; }
  .faq-layout .sec-head { position: static; }
}
