/* Zowar landing page. Own stylesheet so the dashboard CSS stays untouched. */
:root {
  --maroon: #8A1538;
  --maroon-deep: #4E0B20;
  --ink: #1C1216;
  --muted: #6B5D63;
  --line: #EBE3E6;
  --paper: #FFFFFF;
  --mist: #F6F2F4;
  --sand: #E6D5B8;
  --ready: #1E9E5A;
  --display: 'Alexandria', 'IBM Plex Sans Arabic', system-ui, sans-serif;
  --body: 'Rubik', 'IBM Plex Sans Arabic', system-ui, sans-serif; /* closest free (OFL) match to Thmanyah Sans; swap if Thmanyah grants web-font permission */
  --wrap: 1160px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--paper); color: var(--ink); font: 17px/1.75 var(--body); -webkit-font-smoothing: antialiased; }
a { color: inherit; }
img, svg { display: block; }
:focus-visible { outline: 3px solid var(--maroon); outline-offset: 3px; border-radius: 6px; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 24px; }
h1, h2, h3 { font-family: var(--display); margin: 0; line-height: 1.15; letter-spacing: -.01em; }
p { margin: 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px; border: 2px solid var(--maroon); background: var(--maroon); color: #fff; font: 600 17px var(--body); text-decoration: none; cursor: pointer; transition: background .15s, color .15s; }
.btn:hover { background: var(--maroon-deep); border-color: var(--maroon-deep); }
.btn.line { background: transparent; color: var(--maroon); }
.btn.line:hover { background: var(--maroon); color: #fff; }
.btn.white { background: #fff; color: var(--maroon); border-color: #fff; }
.btn.white:hover { background: var(--sand); border-color: var(--sand); }
.btn.sm { min-height: 42px; padding: 0 18px; font-size: 15px; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.top .wrap { display: flex; align-items: center; gap: 28px; height: 72px; }
.logo { display: flex; align-items: center; gap: 10px; font: 800 24px var(--display); color: var(--maroon); text-decoration: none; }
.logo i { width: 34px; height: 34px; border-radius: 10px; background: var(--maroon); color: #fff; display: grid; place-items: center; font: 800 19px var(--display); font-style: normal; }
.top nav { display: flex; gap: 22px; margin-inline-start: auto; }
.top nav a { text-decoration: none; color: var(--muted); font-weight: 500; font-size: 15px; }
.top nav a:hover { color: var(--maroon); }
.top .actions { display: flex; gap: 10px; }

/* serrated edge from the Qatar flag: used as the divider into maroon sections */
.serrate { height: 26px; background: var(--maroon); -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='26'%3E%3Cpath d='M0 26 20 0 40 26Z'/%3E%3C/svg%3E") repeat-x bottom / 40px 26px; mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='26'%3E%3Cpath d='M0 26 20 0 40 26Z'/%3E%3C/svg%3E") repeat-x bottom / 40px 26px; }
.serrate.down { transform: scaleY(-1); }

/* hero */
.hero { padding: 64px 0 88px; overflow: hidden; }
.hero .wrap { display: grid; grid-template-columns: 1.15fr .85fr; gap: 48px; align-items: center; }
.hero .kicker { color: var(--maroon); font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(44px, 7vw, 92px); font-weight: 800; color: var(--ink); }
.hero h1 span { display: block; }
.hero .lead { font-size: 20px; color: var(--muted); margin: 26px 0 34px; max-width: 34em; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero .facts { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 26px; color: var(--muted); font-size: 15px; }
.hero .facts b { color: var(--ink); font-weight: 600; }

/* animated pager demo: one 10s loop, phone + cashier tablet */
.demo { position: relative; height: 560px; }
.phone { position: absolute; inset-inline-start: 30px; top: 0; width: 270px; height: 550px; border-radius: 46px; background: #121014; padding: 12px; box-shadow: 0 30px 60px -20px rgba(78,11,32,.45); animation: buzz 10s infinite; }
.screen { position: relative; height: 100%; border-radius: 36px; overflow: hidden; color: #fff; background: radial-gradient(120% 80% at 70% 10%, #9b2147 0%, #4E0B20 55%, #23060f 100%); }
.screen .notch { width: 92px; height: 26px; border-radius: 20px; background: #000; margin: 10px auto 0; }
.screen .date { text-align: center; margin-top: 28px; font-size: 14px; opacity: .8; }
.screen .clock { text-align: center; font: 600 64px/1 var(--display); margin-top: 4px; }
.live { position: absolute; inset-inline: 14px; top: 200px; background: rgba(255,255,255,.14); backdrop-filter: blur(8px); border-radius: 22px; padding: 14px 16px; display: flex; align-items: center; gap: 12px; }
.live .num { font: 800 34px/1 var(--display); min-width: 52px; text-align: center; }
.live small { display: block; opacity: .75; font-size: 12px; }
.live .state { font-weight: 600; font-size: 15px; position: relative; height: 24px; }
.live .state span { position: absolute; inset-inline-start: 0; white-space: nowrap; }
.live .s1 { animation: s1 10s infinite; }
.live .s2 { animation: s2 10s infinite; color: #7CF0AE; }
.notif { position: absolute; inset-inline: 10px; top: 52px; background: #fff; color: var(--ink); border-radius: 20px; padding: 12px 14px; box-shadow: 0 10px 30px rgba(0,0,0,.3); animation: notif 10s infinite; }
.notif .h { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); }
.notif .h i { width: 20px; height: 20px; border-radius: 6px; background: var(--maroon); color: #fff; display: grid; place-items: center; font: 800 11px var(--display); font-style: normal; }
.notif b { display: block; font-size: 16px; margin-top: 4px; }
.notif p { font-size: 13px; color: var(--muted); }
.reply { position: absolute; inset-inline: 14px; bottom: 34px; display: grid; grid-template-columns: 1fr 1fr; gap: 8px; animation: replyIn 10s infinite; }
.reply span { text-align: center; border-radius: 16px; padding: 12px 0; font-weight: 600; font-size: 15px; background: rgba(255,255,255,.16); }
.reply .go { background: #fff; color: var(--maroon); animation: tap 10s infinite; }
.tablet { position: absolute; z-index: 2; inset-inline-end: 0; bottom: 10px; width: 250px; background: #fff; border-radius: 22px; border: 1px solid var(--line); box-shadow: 0 24px 50px -20px rgba(28,18,22,.35); padding: 16px; }
.tablet .t-h { display: flex; justify-content: space-between; font-size: 13px; color: var(--muted); margin-bottom: 10px; }
.tablet .row { display: flex; align-items: center; gap: 10px; padding: 9px 10px; border-radius: 12px; background: var(--mist); margin-top: 6px; font-size: 14px; }
.tablet .row b { font: 800 18px var(--display); min-width: 30px; }
.tablet .row em { margin-inline-start: auto; font-style: normal; font-size: 12px; color: var(--muted); }
.tablet .row.hot { position: relative; }
.tablet .row.hot em { position: relative; width: 82px; height: 20px; text-align: end; }
.tablet .row.hot em span { position: absolute; inset-inline-end: 0; white-space: nowrap; }
.tablet .row.hot .c1 { animation: s1 10s infinite; }
.tablet .row.hot .c2 { animation: seen 10s infinite; color: var(--ready); font-weight: 700; }
.tablet .row.hot { animation: rowflash 10s infinite; }

@keyframes buzz { 0%, 27% { transform: rotate(0); } 28% { transform: rotate(-3deg); } 29% { transform: rotate(3deg); } 30% { transform: rotate(-3deg); } 31% { transform: rotate(3deg); } 32%, 100% { transform: rotate(0); } }
@keyframes notif { 0%, 27% { opacity: 0; transform: translateY(-30px); } 31%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; transform: translateY(-30px); } }
@keyframes s1 { 0%, 27% { opacity: 1; } 30%, 95% { opacity: 0; } 100% { opacity: 1; } }
@keyframes s2 { 0%, 27% { opacity: 0; } 30%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes replyIn { 0%, 33% { opacity: 0; transform: translateY(16px); } 37%, 94% { opacity: 1; transform: none; } 98%, 100% { opacity: 0; } }
@keyframes tap { 0%, 54% { transform: scale(1); } 56% { transform: scale(.92); background: var(--sand); } 60%, 100% { transform: scale(1); } }
@keyframes seen { 0%, 57% { opacity: 0; } 60%, 95% { opacity: 1; } 100% { opacity: 0; } }
@keyframes rowflash { 0%, 57% { background: var(--mist); } 60%, 95% { background: #E4F6EC; } 100% { background: var(--mist); } }

/* proof band */
.band { background: var(--maroon); color: #fff; }
.band .wrap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; padding-block: 44px 52px; }
.band h3 { font-size: 22px; font-weight: 700; margin-bottom: 6px; }
.band p { opacity: .85; font-size: 16px; }

/* chapters */
.chapter { padding: 110px 0; }
.chapter .wrap { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.chapter.flip .copy { order: 2; }
.chapter h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; }
.chapter .copy > p { font-size: 19px; color: var(--muted); margin-top: 18px; max-width: 30em; }
.chapter ul { list-style: none; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.chapter li { padding-inline-start: 30px; position: relative; }
.chapter li::before { content: ''; position: absolute; inset-inline-start: 0; top: .55em; width: 14px; height: 14px; background: var(--maroon); clip-path: polygon(0 0, 100% 50%, 0 100%); transform: scaleX(-1); }
.chapter.dark { background: var(--maroon-deep); color: #fff; }
.chapter.dark .copy > p { color: rgba(255,255,255,.75); }
.chapter.dark li::before { background: var(--sand); }
.chapter.mist { background: var(--mist); }

/* TV waiting screen mock */
.tv { background: #0f0a0c; border-radius: 18px; padding: 12px; box-shadow: 0 30px 60px -24px rgba(0,0,0,.6); }
.tv-in { border-radius: 10px; background: #1b1216; display: grid; grid-template-columns: 1fr 1.3fr; min-height: 300px; overflow: hidden; }
.tv-in > div { padding: 20px; }
.tv-in h4 { margin: 0 0 14px; font: 600 15px var(--body); color: rgba(255,255,255,.6); }
.tv-in .prep span { display: inline-block; margin: 0 0 8px 8px; padding: 6px 12px; border-radius: 10px; background: rgba(255,255,255,.08); color: rgba(255,255,255,.7); font: 700 20px var(--display); }
.tv-in .ready { background: var(--maroon); }
.tv-in .ready h4 { color: rgba(255,255,255,.85); }
.tv-in .ready span { display: inline-block; margin: 0 0 10px 10px; padding: 8px 16px; border-radius: 12px; background: #fff; color: var(--maroon); font: 800 34px var(--display); }
.tv-stand { width: 120px; height: 14px; margin: 0 auto; background: #0f0a0c; border-radius: 0 0 10px 10px; }

/* wallet loyalty card mock */
.wallet { max-width: 380px; margin-inline: auto; position: relative; }
.wcard { border-radius: 22px; padding: 22px; background: var(--sand); color: var(--maroon-deep); box-shadow: 0 30px 60px -24px rgba(0,0,0,.55); }
.wcard.back { position: absolute; inset: 0; transform: translate(-18px, -22px) rotate(-4deg); background: #c9b28c; opacity: .6; box-shadow: none; }
.wcard .w-h { display: flex; justify-content: space-between; align-items: center; font-weight: 700; }
.wcard .w-h i { font-style: normal; font-size: 13px; font-weight: 500; opacity: .75; }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 10px; margin: 22px 0; }
.stamps span { aspect-ratio: 1; border-radius: 50%; border: 2px dashed rgba(78,11,32,.35); display: grid; place-items: center; font-size: 20px; }
.stamps span.on { border: 0; background: var(--maroon); color: #fff; }
.stamps span.gift { border-style: solid; border-color: var(--maroon); }
.wcard .w-f { display: flex; justify-content: space-between; font-size: 14px; }
.wcard .qr { width: 86px; height: 86px; margin: 18px auto 0; border-radius: 10px; background:
  conic-gradient(from 90deg at 30% 30%, var(--maroon-deep) 25%, transparent 0) 0 0 / 18px 18px,
  #fff; border: 8px solid #fff; }

/* menu + order phone mock */
.menu-mock { max-width: 330px; margin-inline: auto; background: #fff; border-radius: 34px; border: 10px solid #121014; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(28,18,22,.4); }
.menu-mock .m-h { background: var(--maroon); color: #fff; padding: 22px 18px 16px; }
.menu-mock .m-h b { font: 800 20px var(--display); }
.menu-mock .m-h small { display: block; opacity: .8; }
.menu-mock .tabs { display: flex; gap: 6px; padding: 12px 14px 4px; font-size: 13px; overflow: hidden; }
.menu-mock .tabs span { padding: 5px 12px; border-radius: 999px; background: var(--mist); white-space: nowrap; }
.menu-mock .tabs span:first-child { background: var(--ink); color: #fff; }
.menu-mock .it { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.menu-mock .it small { display: block; color: var(--muted); font-size: 12px; }
.menu-mock .it s { color: var(--muted); font-size: 12px; margin-inline-end: 4px; }
.menu-mock .it .p { font-weight: 700; white-space: nowrap; }
.menu-mock .add { width: 30px; height: 30px; border-radius: 50%; background: var(--maroon); color: #fff; display: grid; place-items: center; font-weight: 700; flex: none; }
.menu-mock .cart { margin: 14px; border-radius: 16px; background: var(--maroon); color: #fff; display: flex; justify-content: space-between; padding: 14px 16px; font-weight: 600; }

/* cashier flow */
.flow { display: grid; gap: 14px; }
.flow .step { display: flex; align-items: center; gap: 16px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 18px 20px; }
.flow .step b { font: 800 15px var(--display); color: var(--maroon); min-width: 92px; }
.flow .step span { color: var(--muted); font-size: 15px; }
.flow .arrow { justify-self: center; color: var(--maroon); font-size: 22px; line-height: 1; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 24px; }
.chips span { border: 1px solid var(--line); background: #fff; border-radius: 999px; padding: 6px 14px; font-size: 14px; }
.chips span.on { border-color: var(--maroon); color: var(--maroon); font-weight: 600; }

/* steps (a real sequence) */
.steps { padding: 110px 0; }
.steps h2, .pricing h2, .faq h2 { font-size: clamp(32px, 4vw, 48px); font-weight: 800; margin-bottom: 40px; }
.steps ol { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 40px; counter-reset: s; }
.steps li { counter-increment: s; border-top: 3px solid var(--maroon); padding-top: 22px; }
.steps li::before { content: counter(s, arabic-indic); display: block; font: 800 44px/1 var(--display); color: var(--maroon); margin-bottom: 14px; }
.steps li h3 { font-size: 22px; margin-bottom: 8px; }
.steps li p { color: var(--muted); }

/* pricing */
.pricing { padding: 110px 0; background: var(--mist); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; align-items: start; }
.plan { background: #fff; border-radius: 24px; padding: 30px; border: 1px solid var(--line); }
.plan h3 { font-size: 22px; }
.plan .price { font: 800 44px/1 var(--display); margin: 18px 0 4px; }
.plan .price small { font: 500 15px var(--body); color: var(--muted); }
.plan .for { color: var(--muted); font-size: 15px; }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 10px; font-size: 16px; }
.plan li::before { content: '✓'; color: var(--maroon); font-weight: 700; margin-inline-end: 10px; }
.plan .btn { width: 100%; }
.plan.pro { background: var(--maroon); color: #fff; border-color: var(--maroon); transform: translateY(-14px); }
.plan.pro .for, .plan.pro .price small { color: rgba(255,255,255,.75); }
.plan.pro li::before { color: var(--sand); }
.pricing .note { text-align: center; color: var(--muted); margin-top: 26px; font-size: 15px; }

/* faq */
.faq { padding: 110px 0; }
.faq .wrap { max-width: 820px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 22px 0; font: 600 19px var(--body); display: flex; justify-content: space-between; gap: 16px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font: 400 26px/1 var(--display); color: var(--maroon); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding: 0 0 22px; color: var(--muted); max-width: 40em; }

/* closing */
.closing { background: var(--maroon); color: #fff; text-align: center; padding: 70px 0 90px; }
.closing h2 { font-size: clamp(34px, 5vw, 60px); font-weight: 800; }
.closing p { opacity: .85; font-size: 19px; margin: 16px 0 30px; }
.foot { background: var(--maroon-deep); color: rgba(255,255,255,.75); font-size: 14px; }
.foot .wrap { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; padding-block: 26px; }
.foot nav { display: flex; gap: 18px; }
.foot a { text-decoration: none; }
.foot a:hover { color: #fff; }

/* responsive */
@media (max-width: 960px) {
  .top nav { display: none; }
  .hero .wrap, .chapter .wrap { grid-template-columns: 1fr; gap: 48px; }
  .chapter.flip .copy { order: 0; }
  .demo { max-width: 420px; width: 100%; margin-inline: auto; }
  .band .wrap, .steps ol, .plans { grid-template-columns: 1fr; }
  .plan.pro { transform: none; }
  .chapter, .steps, .pricing, .faq { padding: 76px 0; }
}
@media (max-width: 520px) {
  .wrap { padding: 0 16px; }
  .top .wrap { gap: 12px; }
  .top .actions .line { display: none; }
  .hero { padding-top: 40px; }
  .hero .lead { font-size: 18px; }
  .demo { height: auto; display: flex; flex-direction: column-reverse; }
  .phone { position: relative; inset: auto; width: 250px; height: 500px; margin: 0 auto; }
  .live { top: 180px; }
  .tablet { position: relative; inset: auto; width: 100%; max-width: 320px; margin: 22px auto 0; }
  .tv-in { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .phone, .notif, .reply, .reply .go, .live .s1, .live .s2, .tablet .row.hot, .tablet .row.hot .c1, .tablet .row.hot .c2 { animation: none; }
  .live .s1, .tablet .row.hot .c1 { opacity: 0; }
  .tablet .row.hot { background: #E4F6EC; }
}

/* which plan a feature belongs to */
.ptag { display: inline-block; margin-bottom: 16px; padding: 4px 14px; border-radius: 999px; background: rgba(138,21,56,.08); color: var(--maroon); font-size: 14px; font-weight: 600; }
.chapter.dark .ptag { background: rgba(255,255,255,.12); color: var(--sand); }

/* ---- panels: each feature sits on its own rounded colour slab ---- */
.chapter { margin: 0 16px 16px; border-radius: 40px; }
.chapter.sand { background: #F2E8D8; }
.chapter.sand li::before { background: var(--maroon); }
.chapter#pos { background: #fff; border: 1px solid var(--line); }
.steps { margin-top: 0; }

/* ---- live mockups (driven by landing.js when they scroll into view) ---- */
.tv-in span { transition: transform .5s cubic-bezier(.2,.9,.3,1.3), opacity .4s; }
.tv-in .ready span.just { animation: called 1.2s ease-out; }
@keyframes called { 0% { transform: scale(.4); opacity: 0; } 50% { transform: scale(1.15); opacity: 1; box-shadow: 0 0 0 12px rgba(255,255,255,.25); } 100% { transform: none; box-shadow: 0 0 0 0 rgba(255,255,255,0); } }

.stamps span { transition: background .25s, transform .25s; }
.stamps span.on.pop { animation: stamp .45s cubic-bezier(.2,.9,.3,1.4); }
@keyframes stamp { 0% { transform: scale(1.8) rotate(-18deg); opacity: 0; } 100% { transform: none; opacity: 1; } }
.stamps span.gift.won { background: var(--maroon); color: #fff; animation: gift .8s ease-in-out 2; }
@keyframes gift { 50% { transform: scale(1.2) rotate(8deg); } }

.menu-mock { position: relative; }
.menu-mock .scan { display: none; }
.menu-mock.live .scan { position: absolute; inset: 0; z-index: 3; display: grid; place-content: center; justify-items: center; gap: 16px; background: rgba(255,255,255,.96); color: var(--muted); font-size: 15px; transition: opacity .4s; }
.menu-mock.live.read .scan { opacity: 0; pointer-events: none; }
.menu-mock .paper { position: relative; width: 150px; padding: 18px 16px; background: #FBF7EF; border: 1px solid #E8DCC5; border-radius: 6px; transform: rotate(-3deg); overflow: hidden; display: grid; gap: 9px; box-shadow: 0 10px 24px -12px rgba(0,0,0,.3); }
.menu-mock .paper i { height: 7px; border-radius: 4px; background: #D9C9AB; }
.menu-mock .paper i:nth-child(odd) { width: 70%; }
.menu-mock .paper::after { content: ''; position: absolute; inset-inline: 0; top: -30%; height: 30%; background: linear-gradient(transparent, rgba(138,21,56,.35), transparent); animation: sweep 1.1s linear infinite; }
@keyframes sweep { to { top: 100%; } }
.menu-mock.live .it { opacity: 0; transform: translateY(10px); transition: opacity .35s, transform .35s; }
.menu-mock.live .it.show { opacity: 1; transform: none; }
.menu-mock .add.hit { animation: hit .35s; }
@keyframes hit { 50% { transform: scale(1.35); } }

.flow .step { transition: border-color .3s, background .3s, transform .3s; }
.flow .step.on { border-color: var(--maroon); background: #FBF1F4; transform: translateX(-6px); }
.flow .step.on b::after { content: ' ●'; color: var(--ready); }

@media (max-width: 520px) { .chapter { margin: 0 8px 8px; border-radius: 28px; } }
@media (prefers-reduced-motion: reduce) {
  .tv-in .ready span.just, .stamps span.on.pop, .stamps span.gift.won, .menu-mock .paper::after, .menu-mock .add.hit { animation: none; }
}
.wcard:not(.back) { position: relative; }

/* ---- try it on your phone ---- */
.try { padding: 90px 0; }
.try .wrap { display: grid; grid-template-columns: 1.2fr .8fr; gap: 48px; align-items: center; background: #fff; border: 2px solid var(--maroon); border-radius: 40px; padding: 56px; max-width: calc(var(--wrap) - 48px); }
.try h2 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; }
.try .copy > p { font-size: 19px; color: var(--muted); margin-top: 14px; max-width: 30em; }
.try ol { list-style: none; counter-reset: t; padding: 0; margin: 26px 0 0; display: grid; gap: 12px; }
.try li { counter-increment: t; display: flex; align-items: center; gap: 14px; font-weight: 600; }
.try li::before { content: counter(t, arabic-indic); width: 36px; height: 36px; border-radius: 50%; background: var(--maroon); color: #fff; display: grid; place-items: center; font: 800 17px var(--display); flex: none; }
.try .try-open { display: none; margin-top: 26px; }
.try-qr { display: grid; justify-items: center; gap: 12px; color: var(--muted); font-size: 14px; text-align: center; }
#tryQr { width: 230px; height: 230px; padding: 14px; border-radius: 24px; background: #fff; box-shadow: 0 0 0 8px var(--mist), 0 24px 50px -24px rgba(78,11,32,.4); }
#tryQr svg { width: 100%; height: 100%; }
#tryQr svg path, #tryQr svg rect[fill="#000000"] { fill: var(--maroon-deep); }
@media (max-width: 960px) { .try .wrap { grid-template-columns: 1fr; padding: 36px 28px; } }
@media (hover: none) and (pointer: coarse) { .try .try-open { display: inline-flex; } }
@media (max-width: 520px) { .try { padding: 56px 0; } .try .wrap { border-radius: 28px; margin-inline: 8px; padding: 30px 20px; } .try-qr { display: none; } .try .try-open { display: inline-flex; width: 100%; } }

/* order numbers in a dot-matrix face, like a pager display */
.live .num, .tablet .row b, .tv-in .prep span, .tv-in .ready span { font-family: 'Doto', ui-monospace, monospace; font-weight: 900; font-variant-numeric: tabular-nums; }
.live .num { font-size: 40px; }
.tablet .row b { font-size: 24px; min-width: 38px; }
.live .num { font-size: 46px; }
.tv-in .prep span { font-size: 24px; }
.tv-in .ready span { font-size: 40px; }

/* ================= v3: hero doors, popup, mobile menu, stubs, order ================= */
.skip { position: absolute; inset-inline-start: 12px; top: -60px; z-index: 50; background: var(--maroon); color: #fff; padding: 10px 16px; border-radius: 10px; text-decoration: none; }
.skip:focus { top: 12px; }

/* mobile menu */
.menu-btn { display: none; width: 44px; height: 44px; border: 0; background: transparent; border-radius: 12px; cursor: pointer; padding: 0; flex-direction: column; justify-content: center; align-items: center; gap: 5px; }
.menu-btn span { width: 20px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform .2s, opacity .2s; }
.menu-btn[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.menu-btn[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
.menu-btn[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
.mnav { position: absolute; inset-inline: 10px; top: 76px; background: #fff; border-radius: 24px; padding: 10px 10px 14px; box-shadow: 0 30px 60px -20px rgba(28,18,22,.45); display: grid; animation: drop .2s ease-out; }
.mnav[hidden] { display: none; }
.mnav a:not(.btn) { padding: 13px 14px; text-decoration: none; font-weight: 600; border-radius: 12px; }
.mnav a:not(.btn):hover { background: var(--mist); }
.mnav .btn { margin-top: 8px; }
@keyframes drop { from { opacity: 0; transform: translateY(-8px); } }

/* hero: big headline, four ticket "doors", then the pitch */
.hero { padding: 48px 0 72px; }
.hero .wrap { display: block; }
.hero h1 { font-size: clamp(48px, 9vw, 128px); line-height: 1.02; }
.hero h1 span { display: inline; color: var(--maroon); }
.doors { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 36px; }
.door { --bg: var(--maroon); --fg: #fff; position: relative; display: flex; flex-direction: column; min-height: 470px; padding: 22px 22px 0; border-radius: 28px; background: var(--bg); color: var(--fg); text-decoration: none; overflow: hidden; transition: transform .25s cubic-bezier(.2,.9,.3,1.2); }
.door:hover { transform: translateY(-6px); }
.door:hover .stub i { transform: translateX(-6px); }
.d-menu { --bg: var(--ink); }
.d-loyal { --bg: var(--sand); --fg: var(--maroon-deep); }
.d-order { --bg: var(--ready); }
.door .art { position: relative; flex: 1; display: grid; place-items: center; min-height: 190px; color: var(--fg); }
.door .art svg { width: 100%; max-width: 210px; height: auto; overflow: visible; }
.door h2 { font-size: 30px; font-weight: 800; margin-top: 10px; }
.door p { font-size: 15px; line-height: 1.6; opacity: .85; margin-top: 6px; min-height: 3.2em; }
/* the tear-off stub: dashed line with two punched notches */
.stub { position: relative; display: flex; justify-content: space-between; align-items: center; margin: 18px -22px 0; padding: 16px 22px 18px; border-top: 2px dashed color-mix(in srgb, var(--fg) 35%, transparent); font-size: 13px; font-weight: 600; }
.stub::before, .stub::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); }
.stub::before { inset-inline-start: -11px; } .stub::after { inset-inline-end: -11px; }
.stub span { padding: 3px 12px; border-radius: 999px; background: color-mix(in srgb, var(--fg) 16%, transparent); }
.stub i { font-style: normal; font-size: 24px; transition: transform .25s; }
.dnum { position: absolute; z-index: 1; font: 900 40px/1 'Doto', monospace; top: 50%; left: 50%; transform: translate(-50%, -58%); }
.hero-foot { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 40px; }
.hero-foot .lead { margin: 0; font-size: 21px; color: var(--ink); }
.hero-foot .facts { margin-top: 18px; }

/* dot-matrix art */
.dm .off { fill: currentColor; opacity: .14; }
.dm .on { fill: currentColor; }
.art-car .body { animation: carBob .5s ease-in-out infinite alternate; }
.art-car .road { animation: road .6s linear infinite; }
.art-car .wind { animation: wind .6s linear infinite; }
.art-car .car { animation: carIn 6s cubic-bezier(.3,.7,.3,1) infinite; }
@keyframes carBob { to { transform: translateY(.35px); } }
@keyframes road { to { transform: translateX(-4px); } }
@keyframes wind { from { transform: translateX(0); opacity: .9; } to { transform: translateX(6px); opacity: 0; } }
@keyframes carIn { 0% { transform: translateX(-30px); } 18%, 82% { transform: translateX(0); } 100% { transform: translateX(30px); } }
.art-phone .ring { animation: ringOut 1.6s ease-out infinite; transform-box: fill-box; transform-origin: center; }
.art-phone .ring.r2 { animation-delay: .8s; }
@keyframes ringOut { 0% { opacity: .9; } 100% { opacity: 0; } }
.d-pager .art { animation: doorBuzz 3s infinite; }
@keyframes doorBuzz { 0%, 80% { transform: none; } 82% { transform: rotate(-3deg); } 84% { transform: rotate(3deg); } 86% { transform: rotate(-3deg); } 88% { transform: rotate(2deg); } 90%, 100% { transform: none; } }
.art-stamps .on { transition: opacity .3s; }
.art-menu .scanline { animation: scanY 2.4s linear infinite; }
@keyframes scanY { from { transform: translateY(0); } to { transform: translateY(15px); } }

/* "see it work" popup */
.watch { border: 0; padding: 30px; border-radius: 32px; width: min(680px, calc(100vw - 24px)); max-height: calc(100dvh - 24px); overflow: auto; background: #fff; color: var(--ink); box-shadow: 0 40px 120px -30px rgba(0,0,0,.7); }
.watch::backdrop { background: rgba(28,18,22,.8); backdrop-filter: blur(4px); }
.watch[open] { animation: pop .25s cubic-bezier(.2,.9,.3,1.2); }
@keyframes pop { from { opacity: 0; transform: scale(.94); } }
.watch h2 { font-size: 30px; font-weight: 800; }
.watch .x { position: absolute; inset-inline-end: 16px; top: 16px; width: 44px; height: 44px; border-radius: 50%; border: 0; background: var(--mist); font-size: 26px; line-height: 1; cursor: pointer; }
.watch-steps { list-style: none; counter-reset: w; padding: 0; margin: 14px 0 20px; display: grid; gap: 6px; color: var(--muted); font-size: 15px; }
.watch-steps li { counter-increment: w; display: flex; gap: 10px; align-items: center; transition: color .3s; }
.watch-steps li::before { content: counter(w); font: 900 18px 'Doto', monospace; color: var(--maroon); width: 18px; }
.watch-steps li.on { color: var(--ink); font-weight: 600; }
.watch-stage .demo { height: 560px; }
.watch > .btn { width: 100%; margin-top: 18px; }

/* ticket stub at the foot of each feature panel */
.chapter { padding-bottom: 0; overflow: hidden; }
.cstub { position: relative; display: flex !important; grid-template-columns: none !important; align-items: center; justify-content: space-between; gap: 16px; margin-top: 80px; padding-block: 22px 26px; border-top: 2px dashed rgba(28,18,22,.18); }
.cstub::before, .cstub::after { content: ''; position: absolute; top: -15px; width: 28px; height: 28px; border-radius: 50%; background: var(--paper); }
.cstub::before { inset-inline-start: -30px; } .cstub::after { inset-inline-end: -30px; }
.cstub .ptag { margin: 0; }
.cstub .cnum { font: 900 34px/1 'Doto', monospace; opacity: .55; }
.cstub a { font-weight: 600; text-underline-offset: 5px; }
.chapter.dark .cstub { border-color: rgba(255,255,255,.22); }
.chapter.dark .cstub a { color: var(--sand); }

/* order chapter: delivery-mode tabs */
.chapter.order { background: #E5F4EC; }
.chapter.order li::before { background: var(--ready); }
.modes { display: flex; gap: 8px; margin-top: 26px; flex-wrap: wrap; }
.modes button { min-height: 48px; padding: 0 24px; border-radius: 999px; border: 2px solid var(--ink); background: transparent; font: 700 18px var(--display); color: var(--ink); cursor: pointer; transition: background .15s, color .15s; }
.modes button[aria-selected="true"] { background: var(--ink); color: #fff; }
.modes button:hover:not([aria-selected="true"]) { background: rgba(28,18,22,.08); }
.mode-note { margin-top: 16px; font-size: 17px; color: var(--muted); min-height: 1.8em; }
.omock { max-width: 330px; margin-inline: auto; background: #fff; border-radius: 34px; border: 10px solid #121014; overflow: hidden; box-shadow: 0 30px 60px -24px rgba(28,18,22,.4); }
.omock .o-h { background: var(--ready); color: #fff; padding: 22px 18px 16px; }
.omock .o-h b { font: 800 20px var(--display); }
.omock .o-h small { display: block; opacity: .9; }
.omock .o-art { position: relative; height: 130px; display: grid; place-items: center; color: var(--ready); background: #F3FAF6; }
.omock .o-art .art { width: 190px; }
.omock .o-art svg { width: 100%; }
.omock .o-tag { position: absolute; inset-inline-end: 12px; bottom: 10px; font: 700 13px var(--body); background: #fff; color: var(--ink); border-radius: 999px; padding: 3px 12px; box-shadow: 0 4px 12px rgba(0,0,0,.08); }
.omock .o-line { display: flex; justify-content: space-between; padding: 12px 16px; border-bottom: 1px solid var(--line); font-size: 15px; }
.omock .o-field { margin: 14px 16px 0; padding: 12px 14px; border-radius: 14px; background: var(--mist); font-size: 14px; color: var(--muted); }
.omock .o-field b { color: var(--ink); font-family: 'Doto', var(--body); font-weight: 900; font-size: 18px; }
.omock .o-send { margin: 14px; border-radius: 16px; background: var(--ink); color: #fff; text-align: center; padding: 14px; font-weight: 600; }
.omock .o-art .art { transition: opacity .25s; }
.omock:not([data-mode="car"]) .o-art .car { animation: none; }

/* steps with dot-matrix numerals */
.steps ol.dots li { border: 0; background: var(--mist); border-radius: 28px; padding: 28px; }
.steps ol.dots li::before { content: counter(s); font: 900 120px/1 'Doto', monospace; color: var(--maroon); margin-bottom: 20px; }
.steps-more { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 30px; color: var(--muted); }
.link { border: 0; background: none; padding: 0; font: inherit; color: var(--maroon); font-weight: 600; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }

/* closing with flying order tickets */
.closing { position: relative; overflow: hidden; padding: 90px 0 150px; }
.closing .wrap { position: relative; z-index: 1; }
.closing .cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }
.btn.ghost { background: transparent; border-color: rgba(255,255,255,.6); color: #fff; }
.btn.ghost:hover { background: #fff; color: var(--maroon); border-color: #fff; }
.tickets { position: absolute; inset: 0; pointer-events: none; }
.tk { position: absolute; display: inline-flex; align-items: baseline; gap: 8px; padding: 10px 20px; border-radius: 12px; background: #fff; color: var(--maroon-deep); font: 900 34px/1 'Doto', monospace; box-shadow: 0 18px 40px -16px rgba(0,0,0,.5); animation: float 6s ease-in-out infinite alternate; }
.tk small { font: 700 14px var(--body); }
.t1 { inset-inline-start: 6%; bottom: 24px; --r: -8deg; }
.t2 { inset-inline-start: 22%; top: 30px; --r: 10deg; background: var(--sand); animation-delay: -2s; }
.t3 { inset-inline-end: 8%; bottom: 30px; --r: 7deg; font: 800 22px var(--display); background: var(--ready); color: #fff; animation-delay: -4s; }
.t4 { inset-inline-end: 20%; top: 26px; --r: -6deg; background: var(--ink); color: #fff; animation-delay: -1s; }
.t5 { inset-inline-start: 45%; bottom: 14px; --r: 4deg; animation-delay: -3s; }
@keyframes float { from { transform: rotate(var(--r)) translateY(0); } to { transform: rotate(calc(var(--r) * -.4)) translateY(-10px); } }
.tk { transform: rotate(var(--r)); }

/* fuller footer */
.foot { font-size: 15px; }
.foot .wrap { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; padding-block: 56px 28px; }
.foot .logo { color: #fff; }
.foot .logo i { background: #fff; color: var(--maroon-deep); }
.f-brand p { margin-top: 14px; max-width: 24em; }
.foot nav { display: grid; gap: 10px; align-content: start; }
.foot nav h3 { font: 700 15px var(--display); color: #fff; margin-bottom: 4px; }
.foot .f-bottom { display: block; padding-block: 20px 28px; border-top: 1px solid rgba(255,255,255,.12); font-size: 13px; }

@media (max-width: 960px) {
  .menu-btn { display: flex; margin-inline-start: auto; }
  .top .actions .line { display: none; }
  .doors { grid-template-columns: 1fr 1fr; }
  .door { min-height: 400px; }
  .hero-foot { grid-template-columns: 1fr; gap: 22px; }
  .foot .wrap { grid-template-columns: 1fr 1fr; }
  .f-brand { grid-column: 1 / -1; }
  .cstub { margin-top: 56px; }
}
@media (max-width: 520px) {
  .doors { grid-template-columns: 1fr; }
  .door { min-height: 0; }
  .door .art { min-height: 160px; }
  .door .art svg { max-width: 180px; }
  .watch { padding: 22px 16px; border-radius: 24px; }
  .watch-stage .demo { height: auto; }
  .cstub { flex-wrap: wrap; }
  .cstub::before { inset-inline-start: -22px; } .cstub::after { inset-inline-end: -22px; }
  .cstub .cnum { display: none; }
  .steps ol.dots li::before { font-size: 90px; }
  .tk { font-size: 24px; padding: 8px 14px; }
  .t2, .t5 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .art-car .body, .art-car .road, .art-car .wind, .art-car .car, .art-phone .ring, .d-pager .art, .art-menu .scanline, .tk, .mnav, .watch[open] { animation: none !important; }
  .door, .door:hover { transform: none; }
}
.dm .st { fill: currentColor; opacity: .14; }
.dm .st.on { opacity: 1; }
.door .art svg.art-car, .omock svg.art-car { overflow: hidden; }
@keyframes road { from { transform: translateX(0); } to { transform: translateX(4px); } }
@keyframes carIn { 0% { transform: translateX(34px); } 18%, 82% { transform: translateX(0); } 100% { transform: translateX(-34px); } }
.door .art svg.art-car, .door .art svg.art-stamps { max-width: 100%; }
.dnum { font-size: 46px; }
.omock .o-tag { bottom: auto; top: 10px; }
.omock .o-art .art { margin-top: 14px; }

/* ---- try it: the live cashier card ---- */
.desk { --notch: #fff; position: relative; background: #fff; border-radius: 28px; box-shadow: 0 0 0 1px var(--line), 0 30px 60px -28px rgba(78,11,32,.45); padding: 22px 24px 0; }
.desk-h b { display: block; font: 800 20px var(--display); }
.desk-h span { color: var(--muted); font-size: 14px; }
.desk-body { display: grid; grid-template-columns: 1fr auto; gap: 20px; align-items: center; margin: 18px 0 14px; }
.desk-qr { width: 190px; height: 190px; padding: 10px; border-radius: 18px; background: #fff; box-shadow: 0 0 0 6px var(--mist); justify-self: start; }
.desk-qr svg { width: 100%; height: 100%; }
.desk-qr svg path, .desk-qr svg rect[fill="#000000"] { fill: var(--maroon-deep); }
.desk-qr:empty { background: repeating-linear-gradient(45deg, var(--mist) 0 8px, #fff 8px 16px); }
.desk-num { text-align: center; padding-inline: 10px; }
.desk-num small { display: block; color: var(--muted); font-size: 13px; }
.desk-num b { display: block; font: 900 84px/1 'Doto', monospace; color: var(--ink); transition: color .3s; }
.desk.rang .desk-num b { color: var(--maroon); }
.desk-num b.buzz { animation: doorBuzz .9s; }
.desk-track { list-style: none; padding: 0; margin: 0 0 4px; display: flex; flex-wrap: wrap; gap: 6px; }
.desk-track li { font-size: 13px; padding: 4px 11px; border-radius: 999px; background: var(--mist); color: var(--muted); transition: background .3s, color .3s; }
.desk-track li::before { content: '○ '; }
.desk-track li.on { background: #E4F6EC; color: var(--ready); font-weight: 600; }
.desk-track li.on::before { content: '✓ '; }
.desk-foot { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin: 16px -24px 0; padding: 16px 24px 18px; border-top: 2px dashed var(--line); }
.desk-foot::before, .desk-foot::after { content: ''; position: absolute; top: -12px; width: 22px; height: 22px; border-radius: 50%; background: var(--paper); box-shadow: inset 0 0 0 1px var(--line); }
.desk-foot::before { inset-inline-start: -11px; } .desk-foot::after { inset-inline-end: -11px; }
.desk-status { font-size: 14px; font-weight: 600; color: var(--muted); min-height: 1.5em; flex: 1 1 180px; }
.desk-btns { display: flex; gap: 8px; }
.desk-btns .btn[disabled] { opacity: .45; cursor: not-allowed; }
.try .try-qr { display: none; }
@media (hover: none), (pointer: coarse) { .desk { display: none; } .try .try-open { display: inline-flex; } }
@media (max-width: 520px) { .desk-qr { width: 150px; height: 150px; } .desk-num b { font-size: 64px; } }
@media (prefers-reduced-motion: reduce) { .desk-num b.buzz { animation: none; } }
.try .desk-track { counter-reset: none; display: flex; gap: 6px; margin: 0 0 4px; }
.try .desk-track li { display: inline-block; counter-increment: none; font-weight: 500; }
.try .desk-track li::before { width: auto; height: auto; border-radius: 0; background: none; color: inherit; display: inline; font: inherit; content: '○ '; }
.try .desk-track li.on::before { content: '✓ '; }
.desk [hidden] { display: none !important; }
