/* =========================================================
   JOLENAR — Demonstrações interativas (cardápio, app, CRM, ERP)
   Usa as variáveis de css/style.css
   ========================================================= */

body.demo-page { background: var(--soft); }
.demo-top { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.9); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.demo-top__inner { display: flex; align-items: center; gap: 16px; height: 68px; }
.demo-top__label { font-size: 13px; font-weight: 600; color: var(--lime-deep); background: var(--lime-soft); padding: 5px 12px; border-radius: 999px; }
.demo-top__actions { margin-left: auto; display: flex; gap: 8px; }

.demo-intro { padding: 48px 0 28px; display: flex; justify-content: space-between; align-items: flex-end; gap: 32px; flex-wrap: wrap; }
.demo-intro h1 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 10px; }
.demo-intro p { color: var(--muted); max-width: 620px; font-size: 18px; }
.demo-steps { display: flex; gap: 8px; flex-wrap: wrap; }
.demo-steps li { font-size: 13px; font-weight: 600; background: var(--white); border: 1px solid var(--line); padding: 7px 12px; border-radius: 999px; }
.demo-steps b { color: var(--lime-deep); margin-right: 4px; }

.demo-card { background: var(--white); border-radius: var(--radius-lg); border: 1px solid var(--line); box-shadow: 0 30px 60px -40px rgba(15,17,21,.35); }
.demo-label { display: flex; align-items: center; gap: 8px; font-family: var(--font-head); font-weight: 700; font-size: 14px; color: var(--muted); margin-bottom: 14px; }
.demo-label i { width: 8px; height: 8px; border-radius: 50%; background: var(--lime-deep); }

.demo-reset { border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 8px 14px; font: 600 13px var(--font-body); cursor: pointer; color: var(--ink-2); }
.demo-reset:hover { border-color: var(--ink); }

.demo-real { padding: 56px 0 80px; display: grid; grid-template-columns: 1fr 1.3fr; gap: 48px; align-items: start; }
.demo-real h2 { font-size: clamp(26px, 3vw, 36px); }
.demo-real ul { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.demo-real li { background: var(--white); border: 1px solid var(--line); border-radius: 16px; padding: 18px 20px; font-size: 15px; color: var(--ink-2); }
.demo-real li b { display: block; font-family: var(--font-head); color: var(--ink); margin-bottom: 4px; }
.demo-cta { padding-bottom: 96px; }

/* Botões genéricos das demos */
.dbtn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; border-radius: 12px; padding: 12px 16px; font: 700 14px var(--font-head); cursor: pointer; background: var(--ink); color: var(--white); transition: transform .2s, background .2s, opacity .2s; }
.dbtn:active { transform: scale(.97); }
.dbtn--lime { background: var(--lime); color: var(--ink); }
.dbtn--ghost { background: var(--soft); color: var(--ink); }
.dbtn--sm { padding: 8px 12px; font-size: 12px; border-radius: 10px; }
.dbtn--block { width: 100%; }
.dbtn[disabled] { opacity: .45; cursor: not-allowed; }

/* Avisos (toast) */
.toast-wrap { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 90; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); }
.toast { display: flex; align-items: center; gap: 12px; background: var(--ink); color: var(--white); padding: 14px 16px; border-radius: 14px; box-shadow: 0 20px 40px -15px rgba(0,0,0,.5); font-size: 14px; animation: toastIn .35s var(--ease); }
.toast i { width: 26px; height: 26px; border-radius: 8px; background: var(--lime); color: var(--ink); display: grid; place-items: center; font-style: normal; font-weight: 800; flex: none; }
.toast button { margin-left: auto; background: transparent; border: 1px solid rgba(255,255,255,.25); color: var(--lime); border-radius: 8px; padding: 6px 10px; font: 600 12px var(--font-body); cursor: pointer; }
@keyframes toastIn { from { opacity: 0; transform: translateY(12px); } }

/* Moldura de celular grande (demos) */
.device { position: relative; width: 360px; max-width: 100%; height: 720px; margin-inline: auto; border-radius: 48px; background: var(--ink); padding: 12px; box-shadow: 0 50px 80px -40px rgba(15,17,21,.6); }
.device__notch { position: absolute; top: 20px; left: 50%; width: 96px; height: 24px; border-radius: 14px; background: var(--ink); transform: translateX(-50%); z-index: 5; }
.device__screen { position: relative; width: 100%; height: 100%; border-radius: 38px; overflow: hidden; background: #F7F8F5; display: flex; flex-direction: column; }
.device__status { display: flex; justify-content: space-between; padding: 14px 26px 6px; font-size: 12px; font-weight: 700; flex: none; }
.screen { flex: 1; overflow-y: auto; overscroll-behavior: contain; -webkit-overflow-scrolling: touch; scrollbar-width: none; }
.screen::-webkit-scrollbar { display: none; }

/* Notificação push dentro do celular */
.push { position: absolute; left: 12px; right: 12px; top: 46px; z-index: 6; display: flex; gap: 10px; align-items: center; background: rgba(255,255,255,.96); border-radius: 18px; padding: 12px 14px; box-shadow: 0 16px 30px -12px rgba(0,0,0,.35); transform: translateY(-140%); transition: transform .45s var(--ease); font-size: 13px; }
.push.is-on { transform: translateY(0); }
.push i { width: 32px; height: 32px; border-radius: 10px; background: var(--brand, var(--ink)); color: var(--white); display: grid; place-items: center; font-style: normal; font-weight: 800; flex: none; }
.push b { display: block; font-size: 13px; }
.push span { color: var(--muted); font-size: 12px; }

/* =================== CARDÁPIO =================== */
.dm-grid { display: grid; grid-template-columns: 400px 1fr; gap: 28px; align-items: start; }
.dm-phone { position: sticky; top: 90px; }
.menu-app { --brand: #6B1E2E; }
.ma-head { padding: 6px 18px 12px; flex: none; }
.ma-head small { display: block; font-size: 11px; color: var(--muted); }
.ma-head b { font-family: var(--font-head); font-size: 20px; }
.ma-table { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: 11px; font-weight: 700; background: var(--lime); padding: 4px 10px; border-radius: 999px; }
.ma-tabs { display: flex; gap: 6px; padding: 0 18px 12px; overflow-x: auto; flex: none; scrollbar-width: none; }
.ma-tabs::-webkit-scrollbar { display: none; }
.ma-tabs button { flex: none; border: 0; background: var(--white); border-radius: 999px; padding: 8px 14px; font: 600 13px var(--font-body); cursor: pointer; color: var(--muted); box-shadow: 0 1px 0 var(--line); }
.ma-tabs button.is-on { background: var(--brand); color: var(--white); }
.ma-list { padding: 0 14px 100px; display: grid; gap: 10px; }
.ma-item { display: grid; grid-template-columns: 58px 1fr auto; gap: 12px; align-items: center; background: var(--white); border-radius: 18px; padding: 10px; box-shadow: 0 1px 0 var(--line); transition: background .3s; }
.ma-item.is-added { background: var(--lime-soft); }
.ma-emoji { width: 58px; height: 58px; border-radius: 14px; display: grid; place-items: center; font-size: 28px; background: linear-gradient(140deg, #FBF5EF, #F1E4D6); }
.ma-item b { display: block; font-size: 14px; line-height: 1.25; }
.ma-item small { display: block; font-size: 11px; color: var(--muted); line-height: 1.3; }
.ma-item em { display: block; font-style: normal; font-family: var(--font-head); font-weight: 800; font-size: 13px; margin-top: 4px; }
.qty { display: flex; align-items: center; gap: 6px; }
.qty button { width: 32px; height: 32px; border-radius: 10px; border: 0; background: var(--brand); color: var(--white); font: 800 18px var(--font-head); cursor: pointer; display: grid; place-items: center; }
.qty button.minus { background: var(--soft); color: var(--ink); }
.qty span { min-width: 16px; text-align: center; font-weight: 800; font-size: 14px; }
.ma-bar { position: absolute; left: 12px; right: 12px; bottom: 14px; z-index: 4; display: flex; justify-content: space-between; align-items: center; background: var(--brand); color: var(--white); border: 0; border-radius: 18px; padding: 16px 18px; font: 700 14px var(--font-head); cursor: pointer; box-shadow: 0 16px 30px -12px rgba(0,0,0,.5); transform: translateY(140%); transition: transform .4s var(--ease); }
.ma-bar.is-on { transform: translateY(0); }
.ma-bar span:first-child { display: inline-flex; align-items: center; gap: 8px; }
.ma-bar i { font-style: normal; background: var(--white); color: var(--brand); border-radius: 8px; padding: 2px 8px; }
.ma-section { padding: 0 18px 24px; display: grid; gap: 12px; }
.ma-back { border: 0; background: none; font: 600 13px var(--font-body); color: var(--muted); cursor: pointer; padding: 0; justify-self: start; }
.ma-cart-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; background: var(--white); border-radius: 14px; padding: 12px; box-shadow: 0 1px 0 var(--line); font-size: 14px; }
.ma-cart-item b { display: block; }
.ma-cart-item small { color: var(--muted); }
.ma-field { display: grid; gap: 6px; font-size: 12px; font-weight: 600; color: var(--muted); }
.ma-field textarea, .ma-field input, .ma-field select { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 400 14px var(--font-body); color: var(--ink); background: var(--white); resize: none; }
.ma-pay { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ma-pay label { display: flex; align-items: center; gap: 8px; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 10px; font-size: 13px; font-weight: 600; cursor: pointer; }
.ma-pay input { accent-color: var(--brand); }
.ma-total { display: flex; justify-content: space-between; font-family: var(--font-head); font-weight: 800; font-size: 18px; padding-top: 6px; }
.ma-status { text-align: center; padding: 30px 22px; display: grid; gap: 14px; justify-items: center; }
.ma-check { width: 76px; height: 76px; border-radius: 50%; background: var(--lime); display: grid; place-items: center; font-size: 34px; font-weight: 800; animation: pop .5s var(--ease); }
@keyframes pop { from { transform: scale(.4); opacity: 0; } }
.ma-status h3 { font-size: 22px; }
.ma-status p { color: var(--muted); font-size: 14px; }
.ma-track { width: 100%; display: grid; gap: 8px; text-align: left; margin-top: 4px; }
.ma-track li { display: flex; align-items: center; gap: 12px; background: var(--white); border-radius: 14px; padding: 12px 14px; font-size: 14px; font-weight: 600; color: var(--muted); box-shadow: 0 1px 0 var(--line); transition: all .3s; }
.ma-track li i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); flex: none; transition: all .3s; }
.ma-track li.is-done { color: var(--ink); }
.ma-track li.is-done i { background: var(--lime); border-color: var(--lime); }
.ma-track li.is-now i { border-color: var(--brand); animation: blink 1s infinite; }

/* Cozinha (KDS) */
.kds { padding: 22px; }
.kds__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.kds__head h2 { font-size: 22px; }
.kds__tools { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.switch { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; cursor: pointer; }
.switch input { width: 38px; height: 22px; appearance: none; -webkit-appearance: none; border-radius: 999px; background: var(--line); position: relative; cursor: pointer; transition: background .2s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--white); transition: transform .2s; }
.switch input:checked { background: var(--lime-deep); }
.switch input:checked::after { transform: translateX(16px); }
.kds__alert { display: none; align-items: center; gap: 10px; background: #FFF4E5; border: 1px solid #F5A524; color: #7A4B00; border-radius: 12px; padding: 10px 14px; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.kds__alert.is-on { display: flex; animation: toastIn .3s var(--ease); }
.kds__alert button { margin-left: auto; }
.kds__cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.kds__col { background: var(--soft); border-radius: 18px; padding: 12px; min-height: 380px; }
.kds__col h3 { display: flex; justify-content: space-between; font-size: 14px; margin: 4px 4px 12px; }
.kds__col h3 span { background: var(--white); border-radius: 999px; padding: 0 9px; font-size: 12px; line-height: 22px; }
.kds__empty { font-size: 13px; color: var(--muted); text-align: center; padding: 30px 10px; border: 2px dashed var(--line); border-radius: 14px; }
.ticket { background: var(--white); border-radius: 14px; padding: 14px; box-shadow: 0 1px 0 var(--line); margin-bottom: 10px; animation: ticketIn .5s var(--ease); }
.ticket.is-new { box-shadow: 0 0 0 3px var(--lime), 0 10px 20px -10px rgba(0,0,0,.2); }
@keyframes ticketIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } }
.ticket__top { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 8px; }
.ticket__top b { font-family: var(--font-head); font-size: 16px; }
.ticket__top small { color: var(--muted); font-size: 12px; }
.ticket ul { display: grid; gap: 4px; font-size: 14px; margin-bottom: 10px; }
.ticket li b { margin-right: 6px; }
.ticket__obs { font-size: 12px; background: #FFF8E6; border-radius: 8px; padding: 6px 8px; margin-bottom: 10px; color: #7A4B00; }
.ticket .dbtn { width: 100%; }

/* Mão animada (dica de toque) */
.tap-hint { position: absolute; z-index: 7; width: 54px; height: 54px; pointer-events: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 64 64'%3E%3Cpath d='M24 6c3 0 5 2 5 5v17l2-1c3-1 6 0 7 3l1 2 2-1c3-1 6 1 6 4v1l2-1c3 0 5 2 5 5v9c0 9-6 15-15 15h-6c-5 0-9-2-12-6L11 43c-2-2-2-5 0-7 2-2 5-2 7 0l1 1V11c0-3 2-5 5-5z' fill='%23FFFFFF' stroke='%230F1115' stroke-width='3' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat; filter: drop-shadow(0 6px 10px rgba(0,0,0,.3)); animation: tapHint 1.6s ease-in-out infinite; }
.tap-hint::before { content: ""; position: absolute; left: 10px; top: -6px; width: 26px; height: 26px; border-radius: 50%; border: 3px solid var(--lime); opacity: 0; animation: tapRing 1.6s ease-out infinite; }
@keyframes tapHint { 0%, 100% { transform: translate(0, 0); } 45% { transform: translate(-4px, -6px) scale(.92); } }
@keyframes tapRing { 40% { opacity: 0; transform: scale(.4); } 50% { opacity: 1; } 100% { opacity: 0; transform: scale(1.8); } }

/* =================== APP =================== */
.da-grid { display: grid; grid-template-columns: 1fr 400px 1fr; gap: 28px; align-items: center; }
.da-side { display: grid; gap: 14px; }
.da-tip { background: var(--white); border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; font-size: 14px; color: var(--muted); }
.da-tip b { display: block; font-family: var(--font-head); color: var(--ink); font-size: 16px; margin-bottom: 4px; }
.da-brand { display: grid; gap: 12px; }
.da-swatches { display: flex; gap: 8px; flex-wrap: wrap; }
.da-swatches button { width: 34px; height: 34px; border-radius: 10px; border: 3px solid var(--white); box-shadow: 0 0 0 1px var(--line); cursor: pointer; }
.da-swatches button.is-on { box-shadow: 0 0 0 2px var(--ink); }
.app-ui { --brand: #0F1115; }
.au-head { padding: 6px 20px 14px; display: flex; justify-content: space-between; align-items: center; flex: none; }
.au-head small { display: block; font-size: 11px; color: var(--muted); }
.au-head b { font-family: var(--font-head); font-size: 19px; }
.au-logo { width: 38px; height: 38px; border-radius: 12px; background: var(--brand); color: var(--white); display: grid; place-items: center; font-family: var(--font-head); font-weight: 800; }
.au-page { display: none; padding: 0 16px 20px; gap: 12px; }
.au-page.is-on { display: grid; animation: fadeUp .35s var(--ease); }
@keyframes fadeUp { from { opacity: 0; transform: translateY(8px); } }
.au-cam { position: relative; border-radius: 20px; overflow: hidden; background: var(--ink); }
.au-cam img { width: 100%; height: auto; aspect-ratio: 16/10; opacity: .92; }
.au-cam span { position: absolute; left: 10px; top: 10px; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: var(--white); background: rgba(0,0,0,.5); padding: 4px 9px; border-radius: 8px; }
.au-cam em { position: absolute; right: 10px; top: 10px; font-style: normal; font-size: 11px; color: var(--white); background: rgba(0,0,0,.5); padding: 4px 8px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.au-gate { position: relative; overflow: hidden; border: 0; border-radius: 18px; padding: 18px; background: var(--brand); color: var(--white); font: 800 16px var(--font-head); cursor: pointer; }
.au-gate .bar { position: absolute; left: 0; bottom: 0; height: 4px; width: 0; background: var(--lime); }
.au-gate.is-open { background: var(--lime); color: var(--ink); }
.au-quick { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.au-quick button { text-align: left; border: 0; background: var(--white); border-radius: 16px; padding: 14px; font: 600 13px var(--font-body); cursor: pointer; box-shadow: 0 1px 0 var(--line); display: grid; gap: 8px; }
.au-quick i { width: 30px; height: 30px; border-radius: 10px; background: var(--lime-soft); border: 2px solid var(--lime); }
.au-h { font-family: var(--font-head); font-weight: 800; font-size: 15px; margin-top: 4px; }
.au-log { display: grid; gap: 8px; }
.au-log li { display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 14px; padding: 10px 12px; font-size: 13px; box-shadow: 0 1px 0 var(--line); }
.au-log li small { margin-left: auto; color: var(--muted); }
.au-days { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.au-days::-webkit-scrollbar { display: none; }
.au-days button, .au-slots button { border: 0; background: var(--white); border-radius: 14px; padding: 10px 12px; font: 600 13px var(--font-body); cursor: pointer; box-shadow: 0 1px 0 var(--line); flex: none; }
.au-days button { display: grid; gap: 2px; min-width: 56px; text-align: center; }
.au-days button small { font-size: 11px; color: var(--muted); }
.au-slots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.au-days button.is-on, .au-slots button.is-on { background: var(--brand); color: var(--white); }
.au-days button.is-on small { color: rgba(255,255,255,.7); }
.au-slots button.is-off { opacity: .35; text-decoration: line-through; pointer-events: none; }
.au-code { text-align: center; background: var(--white); border-radius: 20px; padding: 18px; display: grid; gap: 10px; justify-items: center; box-shadow: 0 1px 0 var(--line); }
.au-qr { display: grid; grid-template-columns: repeat(11, 1fr); gap: 2px; width: 150px; height: 150px; }
.au-qr i { background: var(--ink); border-radius: 1px; }
.au-qr i.o { background: transparent; }
.au-code b { font-family: var(--font-head); font-size: 26px; letter-spacing: .2em; }
.au-notice { display: grid; gap: 4px; background: var(--white); border-radius: 16px; padding: 14px; box-shadow: 0 1px 0 var(--line); cursor: pointer; font-size: 13px; position: relative; }
.au-notice b { font-size: 14px; }
.au-notice span { color: var(--muted); }
.au-notice.is-unread::after { content: ""; position: absolute; right: 14px; top: 16px; width: 9px; height: 9px; border-radius: 50%; background: #E5484D; }
.au-tabs { flex: none; display: grid; grid-template-columns: repeat(4, 1fr); background: var(--white); border-top: 1px solid var(--line); padding: 8px 8px 18px; }
.au-tabs button { position: relative; border: 0; background: none; display: grid; justify-items: center; gap: 4px; font: 600 11px var(--font-body); color: var(--muted); cursor: pointer; padding: 6px 0; }
.au-tabs button i { width: 22px; height: 22px; border-radius: 7px; border: 2px solid currentColor; }
.au-tabs button.is-on { color: var(--brand); }
.au-tabs button.is-on i { background: var(--brand); }
.au-badge { position: absolute; top: 0; right: 22%; min-width: 17px; height: 17px; border-radius: 9px; background: #E5484D; color: var(--white); font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; }
.au-badge:empty { display: none; }

/* =================== CRM e ERP (painéis) =================== */
.panel { padding: 22px; }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.panel__head h2 { font-size: 22px; }
.panel__tools { display: flex; gap: 8px; flex-wrap: wrap; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; margin-bottom: 18px; }
.kpi { background: var(--soft); border-radius: 16px; padding: 16px; }
.kpi small { display: block; color: var(--muted); font-size: 12px; font-weight: 600; }
.kpi b { font-family: var(--font-head); font-size: 24px; font-variant-numeric: tabular-nums; }
.kpi.is-bump b { animation: bump .6s var(--ease); color: var(--lime-deep); }
@keyframes bump { 30% { transform: scale(1.12); } }

.board { display: grid; grid-template-columns: repeat(4, minmax(220px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; scroll-snap-type: x mandatory; }
.board__col { background: var(--soft); border-radius: 18px; padding: 12px; min-height: 420px; scroll-snap-align: start; transition: background .2s, box-shadow .2s; }
.board__col.is-over { background: var(--lime-soft); box-shadow: inset 0 0 0 2px var(--lime-deep); }
.board__col h3 { display: flex; justify-content: space-between; align-items: center; font-size: 14px; margin: 2px 4px 4px; }
.board__col h3 span { background: var(--white); border-radius: 999px; padding: 0 9px; font-size: 12px; line-height: 22px; }
.board__sum { font-size: 12px; color: var(--muted); margin: 0 4px 12px; }
.deal { position: relative; background: var(--white); border-radius: 14px; padding: 12px 12px 10px; box-shadow: 0 1px 0 var(--line); margin-bottom: 10px; cursor: grab; user-select: none; -webkit-user-select: none; transition: box-shadow .2s, transform .2s; }
.deal:hover { box-shadow: 0 10px 20px -12px rgba(0,0,0,.3); }
.deal.is-dragging { position: fixed; z-index: 100; pointer-events: none; transform: rotate(3deg); box-shadow: 0 30px 40px -15px rgba(0,0,0,.4); cursor: grabbing; }
.deal.is-ghost { opacity: .35; }
.deal b { display: block; font-size: 14px; padding-right: 30px; }
.deal small { display: block; color: var(--muted); font-size: 12px; }
.deal__row { display: flex; justify-content: space-between; align-items: center; margin-top: 10px; }
.deal__val { font-family: var(--font-head); font-weight: 800; font-size: 14px; }
.tag { font-size: 11px; font-weight: 700; padding: 3px 8px; border-radius: 999px; background: var(--soft); }
.tag--site { background: #E8F1FF; color: #1F5BB5; }
.tag--whats { background: #E6F9EE; color: #12804A; }
.tag--ind { background: #FFF2E0; color: #A35A00; }
.deal__next { position: absolute; right: 8px; top: 8px; width: 28px; height: 28px; border-radius: 9px; border: 0; background: var(--soft); cursor: pointer; font: 800 14px var(--font-head); }
.deal__next:hover { background: var(--lime); }
.deal.is-won { box-shadow: inset 3px 0 0 var(--lime-deep), 0 1px 0 var(--line); }

/* Gaveta / modal */
.sheet-bg { position: fixed; inset: 0; z-index: 80; background: rgba(15,17,21,.45); display: none; align-items: flex-end; justify-content: center; }
.sheet-bg.is-on { display: flex; animation: fadeIn .2s; }
@keyframes fadeIn { from { opacity: 0; } }
.sheet { width: min(520px, 100%); max-height: 88vh; overflow-y: auto; background: var(--white); border-radius: 24px 24px 0 0; padding: 24px; display: grid; gap: 14px; animation: sheetUp .35s var(--ease); }
@media (min-width: 761px) { .sheet-bg { align-items: center; } .sheet { border-radius: 24px; } }
@keyframes sheetUp { from { transform: translateY(40px); opacity: 0; } }
.sheet h3 { font-size: 22px; }
.sheet__row { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.sheet__actions { display: flex; gap: 8px; justify-content: flex-end; flex-wrap: wrap; }
.timeline { display: grid; gap: 8px; }
.timeline li { font-size: 13px; background: var(--soft); border-radius: 12px; padding: 10px 12px; }
.timeline li small { display: block; color: var(--muted); }

/* ERP */
.erp { display: grid; grid-template-columns: 210px 1fr; min-height: 640px; }
.erp__nav { background: var(--ink); color: var(--white); border-radius: var(--radius-lg) 0 0 var(--radius-lg); padding: 22px 14px; display: grid; align-content: start; gap: 6px; }
.erp__brand { font-family: var(--font-head); font-weight: 800; font-size: 18px; padding: 0 10px 16px; display: flex; align-items: center; gap: 8px; }
.erp__brand i { width: 22px; height: 22px; border-radius: 7px; background: var(--lime); }
.erp__nav button { text-align: left; border: 0; background: none; color: #A9B0BA; border-radius: 12px; padding: 12px 12px; font: 600 14px var(--font-body); cursor: pointer; display: flex; justify-content: space-between; }
.erp__nav button.is-on { background: #1F232B; color: var(--white); }
.erp__nav button em { font-style: normal; background: #E5484D; color: var(--white); font-size: 11px; border-radius: 999px; padding: 0 7px; line-height: 20px; }
.erp__nav button em:empty { display: none; }
.erp__main { padding: 24px; min-width: 0; }
.erp__view { display: none; }
.erp__view.is-on { display: block; animation: fadeUp .3s var(--ease); }
.erp-split { display: grid; grid-template-columns: 1.4fr 1fr; gap: 16px; }
.box { background: var(--soft); border-radius: 18px; padding: 18px; }
.box h3 { font-size: 16px; margin-bottom: 12px; }
.chart7 { display: flex; align-items: flex-end; gap: 10px; height: 170px; padding-top: 10px; }
.chart7 div { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; gap: 6px; height: 100%; }
.chart7 i { display: block; width: 100%; border-radius: 8px 8px 0 0; background: #D7DBD3; transition: height .7s var(--ease); min-height: 4px; }
.chart7 div:last-child i { background: var(--lime-deep); }
.chart7 small { font-size: 11px; color: var(--muted); }
.rows { display: grid; gap: 8px; }
.rows li { display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 12px; padding: 10px 12px; font-size: 13px; flex-wrap: wrap; }
.rows li b { font-weight: 700; }
.rows li small.board__sum { flex-basis: 100%; margin: 0; }
.rows li .r { margin-left: auto; font-family: var(--font-head); font-weight: 800; }
.rows li.is-new { animation: ticketIn .5s var(--ease); box-shadow: inset 3px 0 0 var(--lime-deep); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-grid .ma-field:first-child { grid-column: 1 / -1; }
.stock { display: grid; gap: 8px; }
.stock li { display: grid; grid-template-columns: 1.4fr 1fr auto; gap: 14px; align-items: center; background: var(--white); border-radius: 14px; padding: 12px 14px; font-size: 14px; }
.stock li small { display: block; color: var(--muted); font-size: 12px; }
.meter { height: 8px; border-radius: 8px; background: var(--soft); overflow: hidden; }
.meter i { display: block; height: 100%; border-radius: 8px; background: var(--lime-deep); transition: width .6s var(--ease); }
.stock li.is-low .meter i { background: #E5484D; }
.stock li.is-low b { color: #C62828; }
.pill-st { font-size: 11px; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--lime-soft); color: var(--lime-deep); }
.pill-st--wait { background: #FFF2E0; color: #A35A00; }

/* Evita que o conteúdo estique as colunas da grade */
.dm-grid > *, .da-grid > *, .kpis > *, .erp > *, .erp-split > *, .form-grid > * { min-width: 0; }

/* =================== Responsivo =================== */
@media (max-width: 1080px) {
  .dm-grid { grid-template-columns: 1fr; }
  .dm-phone { position: static; }
  .da-grid { grid-template-columns: 1fr; }
  .da-side--left { order: 2; }
  .da-side--right { order: 3; }
  .kpis { grid-template-columns: 1fr 1fr; }
  .erp { grid-template-columns: 1fr; }
  .erp__nav { border-radius: var(--radius-lg) var(--radius-lg) 0 0; grid-auto-flow: column; grid-auto-columns: max-content; overflow-x: auto; align-items: center; padding: 12px; }
  .erp__brand { padding: 0 10px 0 4px; }
  .erp-split { grid-template-columns: 1fr; }
  .demo-real { grid-template-columns: 1fr; }
}
@media (max-width: 760px) {
  .demo-top__label, .demo-top .btn--light { display: none; }
  .demo-intro { padding-top: 28px; }
  .device { width: 100%; height: 680px; border-radius: 40px; padding: 10px; }
  .device__screen { border-radius: 31px; }
  .kds { padding: 16px; }
  .kds__cols { grid-template-columns: 1fr; }
  .kds__col { min-height: 0; }
  .board { grid-template-columns: repeat(4, 82%); }
  .panel, .erp__main { padding: 16px; }
  .form-grid, .sheet__row { grid-template-columns: 1fr; }
  .stock li { grid-template-columns: 1fr auto; }
  .stock li .meter { grid-column: 1 / -1; grid-row: 2; }
  .demo-real ul { grid-template-columns: 1fr; }
  .kpi { padding: 12px; }
  .kpi b { font-size: 17px; }
}
@media (prefers-reduced-motion: reduce) { .tap-hint { display: none; } }
