/* Home · seção "De onde vier o pedido": diagrama com linhas e um pedido que viaja (JS em home.js, bloco "fluxo"). */
.hf { position: relative; background: #021a1e; color: #fff; padding: clamp(52px, 7vw, 104px) 0 clamp(44px, 6vw, 84px); overflow: hidden; }
.hf::before { content: ""; position: absolute; left: 50%; top: 46%; width: min(1100px, 120vw); aspect-ratio: 1.5; transform: translate(-50%, -50%); background: radial-gradient(closest-side, rgba(6, 115, 125, .5), transparent 70%); pointer-events: none; }
.hf::after { content: ""; position: absolute; inset: 0; background-image: radial-gradient(rgba(255, 255, 255, .07) 1px, transparent 1.4px); background-size: 26px 26px; mask-image: radial-gradient(70% 70% at 50% 45%, #000 20%, transparent 78%); pointer-events: none; }
.hf > .container { position: relative; z-index: 1; }

.hf-topo { text-align: center; max-width: 780px; margin: 0 auto; }
.hf-topo .hf-olho { display: inline-flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: #5eead4; }
.hf-topo .hf-olho::before, .hf-topo .hf-olho::after { content: ""; width: 26px; height: 1px; background: rgba(94, 234, 212, .5); }
.hf-topo h2 { margin: 14px 0 0; font-size: clamp(30px, 4.4vw, 54px); line-height: 1.04; letter-spacing: -.035em; font-weight: 700; }
.hf-topo h2 em { display: block; font-family: var(--font-display); font-style: italic; font-weight: 400; color: #5eead4; letter-spacing: -.015em; }
.hf-topo p { margin: 16px auto 0; max-width: 46ch; font-size: clamp(15.5px, 1.35vw, 18px); line-height: 1.5; color: rgba(255, 255, 255, .7); }

/* —— diagrama —— */
.hf-diagrama { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; column-gap: clamp(56px, 9vw, 150px); margin-top: clamp(34px, 5vw, 60px); }
.hf-linhas { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.hf-linhas path { fill: none; stroke-linecap: round; }
.hf-linhas .base { stroke: rgba(255, 255, 255, .13); stroke-width: 1.4; transition: stroke .35s ease; }
.hf-linhas .base.is-on { stroke: rgba(94, 234, 212, .55); }
.hf-linhas .pulso { stroke: #5eead4; stroke-width: 3; stroke-dasharray: 9 100; stroke-dashoffset: 9; opacity: 0; filter: drop-shadow(0 0 5px rgba(94, 234, 212, .9)); }
.hf-linhas .pulso.is-on { opacity: 1; animation: hfViaja .9s cubic-bezier(.45, .05, .35, 1) forwards; }
@keyframes hfViaja { from { stroke-dashoffset: 9; } to { stroke-dashoffset: -100; } }

.hf-col { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 10px; }
.hf-col--entra { align-items: flex-end; }
.hf-col--sai { align-items: flex-start; }
.hf-col > small { font-size: 11.5px; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5); font-weight: 700; margin-bottom: 4px; width: min(100%, 250px); }
.hf-col--entra > small { text-align: left; }
.hf-no { width: min(100%, 250px); display: flex; align-items: center; gap: 12px; padding: 10px 14px 10px 10px; border-radius: 16px; background: rgba(255, 255, 255, .045); border: 1px solid rgba(255, 255, 255, .1); transition: background .35s ease, border-color .35s ease, transform .35s ease, box-shadow .35s ease; }
.hf-no__ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; background: rgba(94, 234, 212, .12); color: #5eead4; flex: 0 0 auto; transition: background .35s ease, color .35s ease; }
.hf-no b { display: block; font-size: 15px; font-weight: 650; line-height: 1.15; }
.hf-no small { display: block; font-size: 12.5px; color: rgba(255, 255, 255, .55); margin-top: 1px; }
.hf-no.is-on { background: rgba(94, 234, 212, .13); border-color: rgba(94, 234, 212, .65); box-shadow: 0 0 0 4px rgba(94, 234, 212, .09), 0 14px 30px -16px rgba(94, 234, 212, .7); }
.hf-col--entra .hf-no.is-on { transform: translateX(6px); }
.hf-col--sai .hf-no.is-on { transform: translateX(-6px); }
.hf-no.is-on .hf-no__ic { background: #5eead4; color: #021a1e; }

/* centro: o sistema + o pedido da vez */
.hf-meio { position: relative; z-index: 1; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.hf-hub { position: relative; width: clamp(96px, 10vw, 128px); aspect-ratio: 1; display: grid; place-items: center; }
.hf-hub::before, .hf-hub::after { content: ""; position: absolute; inset: -22%; border-radius: 50%; border: 1px solid rgba(94, 234, 212, .4); animation: hfOnda 3.2s ease-out infinite; }
.hf-hub::after { animation-delay: 1.6s; }
@keyframes hfOnda { from { transform: scale(.62); opacity: .9; } to { transform: scale(1.35); opacity: 0; } }
.hf-hub span { position: relative; z-index: 1; width: 100%; height: 100%; border-radius: 30%; background: #fff; display: grid; place-items: center; box-shadow: 0 0 0 8px rgba(255, 255, 255, .06), 0 26px 50px -18px rgba(0, 0, 0, .8); transition: transform .3s ease; }
.hf-hub.is-on span { animation: hfBate .5s ease; }
@keyframes hfBate { 35% { transform: scale(1.1); } }
.hf-hub img { width: 60%; height: auto; display: block; }
.hf-ticket { min-width: 168px; text-align: center; background: #fff; color: #021a1e; border-radius: 14px; padding: 9px 14px 10px; box-shadow: 0 18px 34px -18px rgba(0, 0, 0, .8); position: relative; }
.hf-ticket::before { content: ""; position: absolute; left: 50%; top: -6px; width: 12px; height: 12px; background: #fff; transform: translateX(-50%) rotate(45deg); border-radius: 2px; }
.hf-ticket small { display: block; font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; font-weight: 700; color: #0f766e; }
.hf-ticket b { display: block; font-size: 17px; letter-spacing: -.01em; margin-top: 1px; }
.hf-ticket span { display: block; font-size: 12.5px; color: #4b5b63; }
.hf-ticket.is-troca { animation: hfTroca .45s ease; }
@keyframes hfTroca { from { opacity: 0; transform: translateY(6px) scale(.96); } to { opacity: 1; transform: none; } }

/* frases de apoio */
.hf-frases { list-style: none; margin: clamp(34px, 5vw, 56px) auto 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); max-width: 900px; border-top: 1px solid rgba(255, 255, 255, .12); }
.hf-frases li { padding: 20px 22px 0; text-align: center; font-size: 14.5px; line-height: 1.45; color: rgba(255, 255, 255, .66); }
.hf-frases li + li { border-left: 1px solid rgba(255, 255, 255, .12); }
.hf-frases b { display: block; color: #fff; font-size: 17px; font-weight: 650; letter-spacing: -.01em; margin-bottom: 3px; }

/* —— celular: o fluxo desce —— */
@media (max-width: 820px) {
  .hf-diagrama { grid-template-columns: 1fr; row-gap: 64px; }
  .hf-col { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
  .hf-col > small { grid-column: 1 / -1; width: fit-content; justify-self: center; text-align: center !important; margin-bottom: 2px; padding: 2px 10px; background: #021a1e; border-radius: 999px; }
  .hf-no { width: auto; padding: 8px 10px 8px 8px; gap: 9px; border-radius: 14px; }
  .hf-no__ic { width: 32px; height: 32px; font-size: 16px; border-radius: 9px; }
  .hf-no b { font-size: 14px; }
  .hf-no small { display: none; }
  .hf-col--entra .hf-no.is-on, .hf-col--sai .hf-no.is-on { transform: translateY(3px); }
  .hf-frases { grid-template-columns: 1fr; border-top: 0; }
  .hf-frases li { padding: 14px 0; border-top: 1px solid rgba(255, 255, 255, .12); }
  .hf-frases li + li { border-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .hf-hub::before, .hf-hub::after, .hf-hub.is-on span, .hf-ticket.is-troca { animation: none; }
  .hf-linhas .pulso { display: none; }
  .hf-no { transition: none; }
}
