/* light-theme tuning, theme toggle, features menu, live demos */
.logo-l { display: none; }
[data-theme="light"] { --rose-ink: #C21F3E; }
[data-theme="light"] .logo-d { display: none; }
[data-theme="light"] .logo-l { display: block; }
[data-theme="light"] .frame, [data-theme="light"] .phone, [data-theme="light"] .bezel { box-shadow: 0 0 0 1px #C9D9D5, 0 30px 60px -28px var(--shadow); }
[data-theme="light"] .g-main { box-shadow: 0 0 0 1px var(--line), 0 30px 60px -36px var(--shadow); }
[data-theme="light"] .btn-primary { box-shadow: 0 6px 18px -8px rgba(10,102,56,.6); }
[data-theme="light"] .btn-primary:hover { box-shadow: 0 10px 26px -8px rgba(10,102,56,.7); }
[data-theme="light"] .led { box-shadow: 0 0 10px 2px var(--state), 0 0 40px 6px color-mix(in srgb, var(--state) 35%, transparent); }

/* theme toggle */
.theme { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: transparent; border: 1px solid var(--line); color: var(--text); cursor: pointer; flex: none; }
.theme:hover { border-color: var(--muted); }
.theme svg { width: 18px; height: 18px; }
.theme .sun { display: none; }
[data-theme="light"] .theme .sun { display: block; }
[data-theme="light"] .theme .moon { display: none; }

/* features dropdown */
.has-menu { position: relative; }
.menu-trigger { background: none; border: 0; padding: 0; color: var(--muted); font: 500 1rem/1.6 var(--body); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.menu-trigger:hover, .menu-trigger[aria-expanded="true"], .menu-trigger.current { color: var(--text); }
.menu-trigger.current { box-shadow: inset 0 -2px 0 var(--green); }
.menu-trigger svg { width: 12px; height: 12px; transition: transform .25s var(--ease); }
.menu-trigger[aria-expanded="true"] svg { transform: rotate(180deg); }
.mega {
  position: absolute; top: calc(100% + 18px); inset-inline-start: 50%; translate: -50% 0; width: 640px;
  background: var(--surface); border: 1px solid var(--line); border-radius: 20px; padding: 14px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4px;
  box-shadow: 0 30px 70px -20px var(--shadow), 0 0 50px -24px rgba(43,255,154,.35);
  opacity: 0; visibility: hidden; transform: translateY(-6px);
  transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
}
[dir="rtl"] .mega { translate: 50% 0; }
.mega.open { opacity: 1; visibility: visible; transform: none; }
.nav .mega a { display: grid; grid-template-columns: 36px 1fr; gap: 2px 12px; padding: 12px; border-radius: 12px; color: var(--text); text-decoration: none; box-shadow: none; }
.nav .mega a:hover, .nav .mega a:focus-visible { background: var(--surface-2); }
.mega svg { grid-row: span 2; width: 36px; height: 36px; color: var(--green-ink); }
.mega b { font: 500 .98rem/1.3 var(--display); }
.mega span { color: var(--muted); font-size: .86rem; line-height: 1.35; }
.nav .mega a.mega-all { grid-column: 1 / -1; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; display: block; padding: 12px 12px 4px; color: var(--cyan); }
@media (max-width: 900px) {
  .has-menu { border-bottom: 1px solid var(--line); }
  .menu-trigger { padding: 12px 0; width: 100%; justify-content: space-between; }
  .menu-trigger.current { box-shadow: none; color: var(--green-ink); }
  .mega { position: static; translate: none; width: auto; grid-template-columns: 1fr; box-shadow: none; border: 0; padding: 0 0 8px; display: none; opacity: 1; visibility: visible; transform: none; background: transparent; }
  [dir="rtl"] .mega { translate: none; }
  .mega.open { display: grid; }
  .nav .mega a { border-bottom: 0; padding: 10px 8px; }
}

/* ===== live room panel ===== */
.screen.live { container-type: inline-size; background: #0B1222; }
.lp { position: absolute; inset: 0; display: grid; grid-template-rows: 9.5cqw 1fr; color: #fff; font-family: var(--display);
  background: radial-gradient(60% 80% at 15% 10%, rgba(59,130,246,.35), transparent 60%), radial-gradient(50% 70% at 90% 90%, rgba(139,92,246,.35), transparent 60%), #0B1222; }
.lp-top { display: flex; align-items: center; justify-content: space-between; padding: 0 3cqw; border-bottom: 1px solid rgba(255,255,255,.08); }
.screen.live .lp-top img { position: static; opacity: 1; height: 3.3cqw; width: auto; }
.lp-clock { text-align: end; line-height: 1.1; }
.lp-clock b { display: block; font-weight: 300; font-size: 3.4cqw; font-variant-numeric: tabular-nums; }
.lp-clock span { font-size: 1.3cqw; color: rgba(255,255,255,.6); letter-spacing: .04em; }
.lp-main { display: grid; grid-template-columns: 1.6fr 1fr; gap: 2.2cqw; padding: 2.4cqw 3cqw 3cqw; min-height: 0; }
.lp-status { --ps: #117A53; border-radius: 2.2cqw; padding: 3cqw; display: grid; align-content: space-between; background: var(--ps); transition: background .6s var(--ease); position: relative; overflow: hidden; }
.lp-status[data-s="soon"] { --ps: #A86207; }
.lp-status[data-s="busy"] { --ps: #C23A4E; }
.lp-room { font-size: 3.3cqw; font-weight: 500; }
.lp-loc { font-size: 1.25cqw; letter-spacing: .12em; opacity: .7; margin-top: .4cqw; }
[dir="rtl"] .lp-loc { letter-spacing: 0; font-size: 1.5cqw; }
.lp-state { font-size: 7.2cqw; font-weight: 600; line-height: 1.1; display: flex; align-items: center; gap: 1.6cqw; }
.lp-state i { width: 1.8cqw; height: 1.8cqw; border-radius: 50%; background: #fff; opacity: .85; animation: lpdot 1.8s ease-in-out 4; }
@keyframes lpdot { 50% { opacity: .35; transform: scale(.8); } }
.lp-sub { font-size: 2.1cqw; opacity: .92; margin-top: 1cqw; min-height: 2.6cqw; font-family: var(--body); }
.lp-actions { display: flex; flex-wrap: wrap; gap: 1.3cqw; align-items: center; min-height: 5cqw; }
.lp-btn { font: 500 2cqw/1 var(--display); padding: 1.5cqw 3cqw; border-radius: 99px; border: 0; cursor: pointer; background: #fff; color: #10261F; display: inline-flex; align-items: center; gap: 1cqw; transition: transform .15s, box-shadow .2s; }
.lp-btn:hover { transform: translateY(-1px); box-shadow: 0 .6cqw 2cqw rgba(0,0,0,.3); }
.lp-btn.ghost { background: rgba(255,255,255,.16); color: #fff; box-shadow: inset 0 0 0 1px rgba(255,255,255,.35); }
.lp-btn.chip { padding: 1.3cqw 2.2cqw; }
.lp-btn:disabled { opacity: .4; cursor: not-allowed; transform: none; box-shadow: none; }
.lp-btn:focus-visible { outline: .35cqw solid #fff; outline-offset: .4cqw; }
.lp-btn.pulse { animation: lppulse 2.2s ease-out 3; }
@keyframes lppulse { 0% { box-shadow: 0 0 0 0 rgba(255,255,255,.6); } 100% { box-shadow: 0 0 0 2cqw rgba(255,255,255,0); } }
.lp-list { border-radius: 2.2cqw; padding: 2.4cqw; background: rgba(255,255,255,.06); box-shadow: inset 0 0 0 1px rgba(255,255,255,.1); overflow: hidden; }
.lp-list .lp-h { margin: 0 0 1.4cqw; font-size: 1.4cqw; letter-spacing: .14em; font-weight: 500; opacity: .7; }
[dir="rtl"] .lp-list .lp-h { letter-spacing: 0; font-size: 1.7cqw; }
.lp-item { padding-block: 1.2cqw; padding-inline: 1.4cqw 0; border-bottom: 1px solid rgba(255,255,255,.08); border-inline-start: .45cqw solid transparent; transition: opacity .4s, border-color .4s; }
.lp-item small { display: block; font-size: 1.45cqw; opacity: .7; font-variant-numeric: tabular-nums; }
.lp-item b { font-size: 1.9cqw; font-weight: 500; }
.lp-item.past { opacity: .45; }
.lp-item.now { border-inline-start-color: #2BFF9A; }
.lp-item.now small { color: #6CFFBE; opacity: 1; }
.lp-item.new { animation: lpnew .8s var(--ease); }
@keyframes lpnew { from { opacity: 0; transform: translateY(-1.5cqw); } }
.lp-auth { position: absolute; inset: 0; display: grid; place-items: center; background: rgba(4,9,18,.72); backdrop-filter: blur(3px); opacity: 0; pointer-events: none; transition: opacity .25s; }
.lp-auth.on { opacity: 1; pointer-events: auto; }
.lp-auth > div { background: #fff; color: #10261F; border-radius: 2.4cqw; padding: 3cqw 4.5cqw; text-align: center; display: grid; gap: 1.2cqw; justify-items: center; font-size: 2.1cqw; min-width: 30cqw; }
.lp-auth svg { width: 7cqw; height: 7cqw; color: #FF6B35; }
.lp-auth.ok svg { color: #179C6C; }
.lp-auth.on .wave { animation: lpwave 1s ease-out infinite; }
@keyframes lpwave { from { opacity: 1; } to { opacity: .2; } }
.lp-toast { position: absolute; bottom: 3cqw; inset-inline-start: 50%; translate: -50% 0; background: rgba(0,0,0,.75); color: #fff; padding: 1.2cqw 2.6cqw; border-radius: 99px; font: 1.7cqw var(--body); opacity: 0; transition: opacity .3s; pointer-events: none; white-space: nowrap; }
[dir="rtl"] .lp-toast { translate: 50% 0; }
.lp-toast.on { opacity: 1; }

/* demo controls under the hero */
.try { display: grid; gap: 10px; }
.try p { color: var(--muted); font-size: .95rem; }
.try-row { display: flex; flex-wrap: wrap; gap: 8px; }
.try-row button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font: 500 .92rem/1 var(--display); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.try-row button i { width: 9px; height: 9px; border-radius: 50%; }
.try-row button:hover { border-color: var(--muted); }
.try-row button[aria-pressed="true"] { border-color: var(--state); box-shadow: 0 0 18px -6px var(--state); }

/* ===== live order -> kitchen demo ===== */
.order-demo { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 22px; align-items: stretch; }
.od-tab { border-radius: 30px; padding: 9px; background: #0B1418; box-shadow: 0 0 0 1px #2A3C43, 0 30px 60px -28px var(--shadow); }
.od-screen { border-radius: 22px; overflow: hidden; background: #F6F7F9; color: #1A1D29; height: 100%; display: grid; grid-template-rows: auto 1fr auto; min-height: 440px; font-family: var(--body); }
.od-head { background: linear-gradient(135deg, #C9430D, #A8360A); color: #fff; padding: 16px 16px 14px; display: grid; gap: 2px; }
.od-head b { font: 600 1.05rem/1.2 var(--display); }
.od-head span { font-size: .8rem; opacity: .9; }
.od-items { padding: 10px; display: grid; gap: 8px; align-content: start; }
.od-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; background: #fff; border-radius: 14px; padding: 9px; box-shadow: 0 1px 3px rgba(20,30,50,.08); }
.od-item .em { width: 40px; height: 40px; border-radius: 10px; background: #FFF1EB; display: grid; place-items: center; font-size: 20px; }
.od-item b { font: 500 .9rem/1.2 var(--display); display: block; }
.od-item small { color: #6B7280; font-size: .75rem; }
.od-step { display: inline-flex; align-items: center; gap: 6px; }
.od-step button { width: 32px; height: 32px; border-radius: 9px; border: 1.5px solid #FF6B35; background: #fff; color: #E53E1A; font: 600 1rem/1 var(--display); cursor: pointer; display: grid; place-items: center; }
.od-step button.add { background: linear-gradient(135deg, #C9430D, #A8360A); color: #fff; border: 0; }
.od-step button:focus-visible { outline: 2px solid #1565C0; outline-offset: 2px; }
.od-step output { min-width: 14px; text-align: center; font-weight: 600; color: #E53E1A; font-size: .9rem; }
.od-foot { padding: 10px; }
.od-place { width: 100%; min-height: 46px; border: 0; border-radius: 14px; background: linear-gradient(135deg, #C9430D, #A8360A); color: #fff; font: 600 .95rem/1 var(--display); cursor: pointer; display: flex; justify-content: space-between; align-items: center; padding: 0 16px; }
.od-place:disabled { background: #D7DBE2; color: #3F4654; cursor: not-allowed; }
.od-track { font-size: .82rem; color: #1565C0; background: #E3F0FD; border-radius: 10px; padding: 8px 10px; margin-bottom: 8px; display: none; }
.od-track.show { display: block; }
.od-track.ready { color: #2E7D32; background: #E8F5E9; }
.kds { border-radius: 18px; padding: 10px; background: linear-gradient(145deg, #1A2B31, #0A1419); box-shadow: 0 0 0 1px #24363D, 0 30px 60px -28px var(--shadow), 0 0 60px -24px rgba(255,107,53,.45); }
.kds-screen { border-radius: 10px; background: #1A1A2E; color: #fff; min-height: 440px; height: 100%; display: grid; grid-template-rows: auto 1fr; overflow: hidden; font-family: var(--body); }
.kds-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; background: linear-gradient(90deg, #C9430D, #A8360A); }
.kds-head span { color: rgba(255,255,255,.9) !important; }
.kds-head b { font: 600 1rem/1 var(--display); display: flex; align-items: center; gap: 8px; }
.kds-head b::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: #4CAF50; box-shadow: 0 0 8px #4CAF50; }
.kds-head span { color: #9999BB; font-size: .85rem; font-variant-numeric: tabular-nums; }
.kds-cols { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; align-items: start; }
.kds-col .kh { margin: 0 0 8px; font: 500 .8rem/1 var(--display); color: #9999BB; display: flex; justify-content: space-between; }
.kds-col .kh em { font-style: normal; background: #2A2A45; color: #fff; border-radius: 99px; padding: 2px 8px; }
.kds-list { display: grid; gap: 8px; min-height: 60px; }
.kds-card { background: #22223A; border-radius: 10px; padding: 10px; border-top: 3px solid #FF6B35; display: grid; gap: 6px; font-size: .8rem; }
.kds-card.prep { border-top-color: #2196F3; }
.kds-card.ready { border-top-color: #4CAF50; }
.kds-card.live { animation: kdsin .7s var(--ease); box-shadow: 0 0 0 1px #FF6B35, 0 0 24px -6px #FF6B35; }
@keyframes kdsin { from { opacity: 0; transform: translateY(-10px) scale(.97); } }
.kds-card header { display: flex; justify-content: space-between; gap: 6px; }
.kds-card header b { font: 600 .85rem/1.2 var(--display); }
.kds-card header span { color: #FFD54F; font-variant-numeric: tabular-nums; }
.kds-card ul { margin: 0; padding: 0; list-style: none; color: #D6D6EA; display: grid; gap: 2px; }
.kds-card small { color: #9999BB; }
.kds-card button { min-height: 32px; border: 0; border-radius: 8px; background: #1565C0; color: #fff; font: 500 .8rem/1 var(--display); cursor: pointer; }
.kds-card.prep button { background: #2E7D32; }
.kds-card.ready button { background: #2A2A45; color: #C8E6C9; }
.kds-card button:focus-visible { outline: 2px solid #FFD54F; outline-offset: 2px; }
.demo-note { color: var(--muted); font-size: .9rem; margin-top: 14px; }
.demo-head { display: grid; gap: 16px; max-width: 760px; margin-bottom: 40px; }
@media (max-width: 980px) {
  .order-demo { grid-template-columns: 1fr; }
  .od-tab { max-width: 380px; width: 100%; margin-inline: auto; }
}
@media (max-width: 560px) {
  .kds-cols { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .lp-btn.pulse, .lp-state i, .lp-auth .wave { animation: none !important; }
}

/* grouped features menu */
.mega { width: 860px; grid-template-columns: repeat(3, 1fr); gap: 4px 10px; }
.mega-col { display: grid; gap: 2px; align-content: start; }
.mega-h { font: 600 .74rem/1 var(--display); color: var(--muted); padding: 10px 12px 6px; letter-spacing: .02em; }
.nav .mega a { padding: 10px 12px; }
@media (max-width: 1080px) { .mega { width: auto; grid-template-columns: 1fr; } }
