/* Phase G: live Yotify demo (kitchen taps drive a guest phone). Additive. */
.ydemo { display: grid; grid-template-columns: 1.1fr .9fr; gap: 0; margin: 8px 0 30px; border: 1.5px solid var(--rule); background: rgba(6, 32, 68, .35); }
.yd-kitchen, .yd-guest { padding: 22px 24px; min-width: 0; }
.yd-guest { border-inline-start: 1px solid var(--rule-soft); display: grid; justify-items: center; align-content: center; gap: 10px; }
.yd-k { font: 700 10px/1 var(--mono); letter-spacing: .2em; color: var(--mark); margin: 0 0 12px; }
[lang="ar"] .yd-k { letter-spacing: 0; font-size: 12px; }
.yd-ticket { position: relative; background: var(--paper-face-2); border: 1px solid var(--rule-soft); padding: 16px 18px 20px; margin-bottom: 16px; }
.yd-ticket::after { content: ""; position: absolute; inset-inline: 0; bottom: -6px; height: 6px; background: linear-gradient(135deg, var(--paper-face-2) 50%, transparent 50%) 0 0 / 12px 6px, linear-gradient(225deg, var(--paper-face-2) 50%, transparent 50%) 0 0 / 12px 6px; }
.yd-no { font: 700 22px var(--mono); margin: 0 0 4px; }
.yd-items { margin: 0; color: var(--ink-2); font-size: 14px; }
.yd-state { margin: 8px 0 0; font: 700 11px var(--mono); letter-spacing: .14em; color: var(--mark); text-transform: uppercase; }
[lang="ar"] .yd-state { letter-spacing: 0; text-transform: none; font-size: 13px; }
.yd-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.yd-btns .btn { min-height: 44px; }
.yd-btns .btn[disabled] { opacity: .35; cursor: default; }
.yd-hint { margin: 12px 0 0; font-size: 12px; color: var(--ink-3); }
/* the guest's phone */
.yd-phone { width: min(230px, 100%); aspect-ratio: 9 / 17; border: 3px solid var(--ink-2); border-radius: 26px; padding: 12px 12px 14px; background: var(--paper-deep); position: relative; display: flex; flex-direction: column; gap: 8px; box-shadow: 0 0 0 1px var(--rule-soft); }
.yd-phone::before { content: ""; position: absolute; inset-block-start: 6px; left: 50%; width: 38px; height: 4px; margin-left: -19px; border-radius: 3px; background: var(--rule); }
.yd-shop { margin: 14px 0 0; font: 700 12px var(--sans); text-align: center; color: var(--ink-2); }
.yd-ord { margin: 0; font: 700 12px var(--mono); text-align: center; color: var(--ink-3); }
.yd-steps { list-style: none; margin: 8px 6px 0; padding: 0; display: grid; gap: 14px; position: relative; flex: 1; align-content: center; }
.yd-steps::before { content: ""; position: absolute; inset-block: 10px; inset-inline-start: 9px; border-inline-start: 2px dashed var(--rule-soft); }
.yd-steps li { position: relative; display: flex; align-items: center; gap: 12px; font-size: 13px; color: var(--ink-3); transition: color .4s; }
.yd-steps li i { width: 20px; height: 20px; border-radius: 50%; border: 2px solid var(--rule); background: var(--paper-deep); flex: 0 0 auto; transition: background .4s, border-color .4s, box-shadow .4s; position: relative; z-index: 1; }
.yd-steps li.done { color: var(--ink-2); } .yd-steps li.done i { background: var(--ink-2); border-color: var(--ink-2); }
.yd-steps li.now { color: var(--ink); font-weight: 700; } .yd-steps li.now i { border-color: var(--mark); background: var(--mark); box-shadow: 0 0 0 5px rgba(255, 211, 107, .22); }
.yd-msg { margin: 0; min-height: 2.6em; text-align: center; font: 700 14px/1.3 var(--sans); color: var(--ink); }
.yd-phone.ready { border-color: var(--mark); box-shadow: 0 0 0 1px var(--mark), 0 0 40px rgba(255, 211, 107, .35); }
.yd-phone.ready .yd-msg { color: var(--mark); }
html.motion .yd-phone.ready { animation: fx7-buzz .7s ease .1s 2; }
html.motion .yd-steps li.now i { animation: fx7-pulse 1.6s ease-in-out infinite; }
@keyframes fx7-buzz { 0%, 100% { transform: none; } 15% { transform: translateX(-4px) rotate(-1.2deg); } 30% { transform: translateX(4px) rotate(1.2deg); } 45% { transform: translateX(-3px) rotate(-.8deg); } 60% { transform: translateX(3px) rotate(.8deg); } 75% { transform: translateX(-1px); } }
@keyframes fx7-pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(255, 211, 107, .22); } 50% { box-shadow: 0 0 0 9px rgba(255, 211, 107, .05); } }
@media (max-width: 760px) { .ydemo { grid-template-columns: 1fr; } .yd-guest { border-inline-start: 0; border-top: 1px solid var(--rule-soft); } }
/* less text: details fold-outs and hidden card summaries */
.more { margin: 18px 0 0; }
.more > summary { cursor: pointer; display: inline-block; font: 700 11px var(--mono); letter-spacing: .16em; text-transform: uppercase; color: var(--ink-2); padding: 8px 12px; border: 1px dashed var(--rule); list-style: none; }
.more > summary::-webkit-details-marker { display: none; }
.more > summary::before { content: "+ "; color: var(--mark); }
.more[open] > summary::before { content: "– "; }
.more > summary:hover { color: var(--mark); border-color: var(--mark); }
[lang="ar"] .more > summary { letter-spacing: 0; text-transform: none; font-size: 13px; }
.more[open] > :not(summary) { margin-top: 14px; }
.pkg .sum { display: none; }
.pkg h3 { min-height: 0; }
.sheet-note { font-size: clamp(1rem, 1.5vw, 1.15rem); }
/* process steps: a picture per step, quiet scan line loops (the track is pinned, so no reveal-clip here) */
.pstep .pshot { aspect-ratio: 16 / 9; margin: 6px 0 12px; }
.pstep .pshot img { transform: none; }
.pstep:hover .pshot img { transform: scale(1.05); }
html.motion .pstep .pshot::after { animation: fx6-scan-loop 8s ease-in-out infinite; }
html.motion .pstep:nth-child(2) .pshot::after { animation-delay: 1.4s; } html.motion .pstep:nth-child(3) .pshot::after { animation-delay: 2.8s; }
html.motion .pstep:nth-child(4) .pshot::after { animation-delay: 4.2s; } html.motion .pstep:nth-child(5) .pshot::after { animation-delay: 5.6s; }
@media (max-height: 760px) and (min-width: 901px) { .pstep { padding: 20px 24px 18px; } .pstep .pshot { aspect-ratio: 2 / 1; } }
.no-pin .pstep .pshot { max-width: 520px; aspect-ratio: 16 / 9; }
/* even less text: taglines instead of lists; card details live in the order sheet */
.tagline { margin: 6px 0 0; font: 600 14px var(--mono); color: var(--ink-2); letter-spacing: .02em; }
[lang="ar"] .tagline { font-family: var(--sans); letter-spacing: 0; font-size: 15px; }
.detail .btns { margin-top: 16px; }
.pkg li:nth-child(n+3) { display: none; }
.pkg .deliv { display: none; }
.pay-row { grid-template-columns: 1fr; }
.pay-row .invoice-card { text-align: start; }
.step { font-size: 0; } .step b { font-size: 1rem; }
