/* Demonstração interativa + efeitos leves */
.demo { background: radial-gradient(1200px 500px at 50% 0%, var(--orange-soft), transparent 70%), var(--bg); }
.demo-grid { display: grid; gap: 28px; margin-top: 36px; align-items: start; }
@media (min-width: 900px) { .demo-grid { grid-template-columns: 320px 1fr; gap: 48px; max-width: 980px; margin-left: auto; margin-right: auto; } }
.demo-col { display: flex; flex-direction: column; align-items: center; min-width: 0; }
.demo-label { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 14px; color: var(--muted); margin-bottom: 12px; }
.demo-label span { width: 24px; height: 24px; border-radius: 50%; background: var(--ink); color: #fff; display: grid; place-items: center; font-size: 12px; }
.demo-foot { text-align: center; margin-top: 28px; color: var(--muted); font-size: 14px; }
.demo-foot a { color: var(--orange); font-weight: 700; }

/* Celular */
.demo-phone { width: 300px; max-width: 100%; height: 600px; background: #fff; border: 8px solid #1F1F23; border-radius: 42px; padding: 12px 12px 14px; box-shadow: 0 40px 80px -30px rgba(0,0,0,.4); display: flex; flex-direction: column; }
.demo-screen { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; scrollbar-width: none; }
.demo-screen::-webkit-scrollbar { display: none; }
.demo-screen > * { animation: dIn .28s ease both; flex: none; }
@keyframes dIn { from { opacity: 0; transform: translateY(6px); } }
.demo-screen button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; text-align: left; padding: 0; }
.d-banner { height: 80px; border-radius: 16px; background: linear-gradient(120deg, var(--orange), #FF9A3C); }
.d-logo { width: 50px; height: 50px; margin: -26px 0 0 12px; border-radius: 14px; background: #fff; display: grid; place-items: center; font-size: 24px; box-shadow: var(--shadow); }
.d-title { margin-top: 4px; font-weight: 800; font-size: 16px; }
.d-meta { font-size: 11px; color: var(--good); display: flex; align-items: center; gap: 5px; }
.demo .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--good); display: inline-block; }
.d-tabs { display: flex; gap: 6px; margin-top: 12px; }
.demo-screen .d-tabs button { font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 99px; background: #F1F0EC; color: var(--muted); }
.demo-screen .d-tabs button.on { background: var(--orange); color: #fff; }
.d-hint { margin-top: 10px; font-size: 12px; font-weight: 700; color: var(--orange); background: var(--orange-soft); padding: 7px 10px; border-radius: 10px; text-align: center; }
.demo-screen > .d-hint { animation: dPulse 1.6s ease-in-out infinite; }
@keyframes dPulse { 50% { transform: scale(1.03); } }
.d-items { display: grid; gap: 8px; margin-top: 10px; }
.demo-screen .d-item { display: flex; align-items: center; gap: 10px; padding: 8px; border: 1px solid var(--line); border-radius: 14px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.demo-screen .d-item:hover { border-color: var(--orange); transform: translateY(-1px); box-shadow: 0 6px 16px -8px rgba(255,85,0,.45); }
.demo-screen .d-item:active { transform: scale(.98); }
.d-item i { width: 42px; height: 42px; border-radius: 11px; background: var(--orange-soft); display: grid; place-items: center; font-style: normal; font-size: 22px; flex: none; }
.d-item div { flex: 1; display: grid; }
.d-item b { font-size: 13px; }
.d-item small { font-size: 12px; color: var(--muted); }
.d-item em { font-style: normal; width: 26px; height: 26px; border-radius: 8px; background: var(--orange); color: #fff; display: grid; place-items: center; font-weight: 800; }
.demo-screen .d-cart, .demo-screen .d-cta { margin-top: auto; width: 100%; background: var(--orange); color: #fff; font-weight: 800; font-size: 14px; padding: 13px; border-radius: 14px; text-align: center; display: flex; justify-content: center; align-items: center; gap: 8px; box-shadow: 0 10px 20px -8px rgba(255,85,0,.6); transition: background .15s; }
.demo-screen .d-cart { position: sticky; bottom: 0; animation: dPop .35s cubic-bezier(.2,1.6,.4,1) both; }
.demo-screen .d-cart:hover, .demo-screen .d-cta:hover { background: var(--orange-dark); }
.d-items + .d-cart, .d-cta { margin-top: 14px; }
@keyframes dPop { from { transform: scale(.9); opacity: 0; } }
.d-badge { background: #fff; color: var(--orange); border-radius: 99px; min-width: 22px; height: 22px; display: grid; place-items: center; font-size: 12px; }
.d-top { display: flex; align-items: center; gap: 8px; padding: 2px 0 10px; font-size: 15px; }
.demo-screen .d-back { width: 32px; height: 32px; border-radius: 10px; background: #F1F0EC; display: grid; place-items: center; font-size: 16px; }
.d-hero, .d-track-hero { height: 130px; border-radius: 18px; background: var(--orange-soft); display: grid; place-items: center; font-size: 64px; }
.d-track-hero.ok { background: #E7F7F0; }
.d-desc { margin-top: 10px; font-size: 13px; color: var(--muted); }
.d-sub { margin: 14px 0 6px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.demo-screen .d-opt { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; margin-bottom: 6px; border: 1.5px solid var(--line); border-radius: 12px; font-size: 13px; font-weight: 600; }
.d-opt small { color: var(--muted); font-weight: 500; }
.demo-screen .d-opt.on { border-color: var(--orange); background: var(--orange-soft); }
.d-line { display: flex; align-items: center; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.d-line div { flex: 1; display: grid; }
.d-line small { color: var(--muted); font-size: 11px; }
.demo-screen .d-rm { width: 24px; height: 24px; border-radius: 8px; background: #F1F0EC; text-align: center; color: var(--muted); }
.d-sum { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-top: 8px; }
.d-total { color: var(--ink); font-weight: 800; font-size: 15px; }
.d-pays { display: flex; flex-wrap: wrap; gap: 6px; }
.demo-screen .d-chip { font-size: 12px; font-weight: 600; padding: 7px 10px; border-radius: 99px; border: 1.5px solid var(--line); }
.demo-screen .d-chip.on { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-dark); }
.d-track-msg { text-align: center; font-weight: 700; margin-top: 12px; font-size: 14px; }
.d-steps { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.d-steps li { display: flex; align-items: center; gap: 10px; font-size: 13px; color: #A1A1AA; font-weight: 600; }
.d-steps li::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid #D4D4D8; flex: none; }
.d-steps li.ok { color: var(--ink); }
.d-steps li.ok::before { background: var(--good); border-color: var(--good); }
.d-steps li.now { color: var(--orange); }
.d-steps li.now::before { border-color: var(--orange); animation: dRing 1.2s ease-in-out infinite; }
@keyframes dRing { 0%, 100% { box-shadow: 0 0 0 3px rgba(255,85,0,.2); } 50% { box-shadow: 0 0 0 7px rgba(255,85,0,.06); } }

/* Painel */
.demo-panel { position: relative; width: 100%; max-width: 560px; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 18px; box-shadow: var(--shadow); min-height: 420px; overflow: hidden; }
.demo-panel button { font: inherit; cursor: pointer; }
.p-head { display: flex; justify-content: space-between; align-items: center; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.p-live { display: flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; color: var(--good); }
.p-empty { text-align: center; padding: 40px 10px 20px; display: grid; gap: 6px; justify-items: center; }
.p-radar { width: 64px; height: 64px; border-radius: 50%; background: var(--orange-soft); position: relative; margin-bottom: 12px; }
.p-radar::before, .p-radar::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid var(--orange); animation: dRadar 2s ease-out infinite; }
.p-radar::after { animation-delay: 1s; }
@keyframes dRadar { from { transform: scale(.6); opacity: .9; } to { transform: scale(1.7); opacity: 0; } }
.p-card { margin-top: 16px; border: 1.5px solid var(--line); border-radius: 18px; padding: 16px; animation: dSlide .45s cubic-bezier(.2,1.4,.4,1) both; }
@keyframes dSlide { from { transform: translateY(-14px) scale(.97); opacity: 0; } }
.p-card.flash { border-color: var(--orange); animation: dSlide .45s cubic-bezier(.2,1.4,.4,1) both, dGlow 1.4s ease-in-out .45s infinite; }
@keyframes dGlow { 50% { box-shadow: 0 0 0 6px rgba(255,85,0,.14); } }
.p-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.p-tag { font-size: 11px; font-weight: 800; padding: 4px 9px; border-radius: 99px; }
.p-new { background: var(--orange-soft); color: var(--orange); }
.p-prep { background: #FEF3C7; color: #B45309; }
.p-out { background: #DBEAFE; color: #1D4ED8; }
.p-done { background: #E7F7F0; color: var(--good); }
.p-items { margin: 12px 0; padding-left: 18px; font-size: 14px; display: grid; gap: 4px; }
.p-total { padding-top: 10px; border-top: 1px dashed var(--line); font-size: 14px; }
.p-btns { display: flex; gap: 8px; margin-top: 14px; }
.p-btn { flex: 1; padding: 11px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--ink); font-weight: 700; font-size: 14px; transition: transform .1s, background .15s; }
.p-btn:active { transform: scale(.97); }
.p-btn.on { background: var(--orange); border-color: var(--orange); color: #fff; }
.p-btn.on:hover { background: var(--orange-dark); }
.p-tip { margin-top: 12px; font-size: 13px; color: var(--muted); text-align: center; }
.p-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-top: 16px; }
.p-stats div { background: var(--bg); border-radius: 12px; padding: 10px; display: grid; gap: 2px; min-width: 0; }
.p-stats small { font-size: 11px; color: var(--muted); }
.p-stats b { font-size: 14px; }
.p-toast { position: absolute; left: 50%; bottom: 16px; transform: translate(-50%, 12px); background: var(--ink); color: #fff; font-size: 13px; font-weight: 600; padding: 9px 14px; border-radius: 12px; opacity: 0; pointer-events: none; transition: opacity .2s, transform .2s; white-space: nowrap; }
.p-toast.show { opacity: 1; transform: translate(-50%, 0); }

/* Efeitos leves */
.hero-visual { perspective: 900px; }
.hero-visual .phone, .hero-visual .order-card { transition: transform .25s ease-out; will-change: transform; }
.hero-visual .phone { animation: heroFloat 6s ease-in-out infinite; }
@keyframes heroFloat { 50% { translate: 0 -8px; } }
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .hero-visual .phone, .demo-screen > *, .p-radar::before, .p-radar::after, .p-card.flash, .d-steps li.now::before { animation: none !important; }
  .reveal { opacity: 1; transform: none; transition: none; }
}

/* Modo automático */
.demo-grid { position: relative; }
.demo-mode { display: flex; justify-content: center; align-items: center; gap: 6px; flex-wrap: wrap; margin: 22px auto 0; font-size: 13px; font-weight: 600; color: var(--muted); text-align: center; }
.demo-mode button { font: inherit; color: var(--orange); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.dm-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--bad); animation: dmBlink 1.2s ease-in-out infinite; }
@keyframes dmBlink { 50% { opacity: .25; } }
.d-finger { position: absolute; left: 0; top: 0; width: 34px; height: 34px; margin: -17px 0 0 -17px; border-radius: 50%; background: rgba(24,24,27,.28); border: 3px solid #fff; box-shadow: 0 6px 18px rgba(0,0,0,.25); pointer-events: none; opacity: 0; z-index: 5; transition: transform .6s cubic-bezier(.45,0,.2,1), opacity .3s; }
.d-finger.show { opacity: 1; }
.d-finger::after { content: ""; position: absolute; inset: -3px; border-radius: 50%; border: 3px solid var(--orange); opacity: 0; }
.d-finger.tap { background: rgba(255,85,0,.45); }
.d-finger.tap::after { animation: dTap .5s ease-out; }
@keyframes dTap { from { transform: scale(.6); opacity: 1; } to { transform: scale(2.2); opacity: 0; } }
