/* Styles used only on the live site's demo pages (app demos and preview lead capture), never in the downloadable kit. */
/* ---------- interactive app demos (app_*.html, apps.js) ---------- */
.a-app [hidden], .a-panel[hidden] { display: none !important; }
.a-header .d-logo { font-family: var(--font); }
.a-tag { margin-left: 10px; font: 600 .75rem var(--font); color: var(--d-muted); background: var(--d-alt); padding: 3px 10px; border-radius: 999px; letter-spacing: 0; }
.a-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.a-tab { font: 650 .9rem var(--font); padding: 8px 14px; border-radius: 10px; border: 1.5px solid var(--d-line); background: var(--d-bg); color: var(--d-ink); cursor: pointer; }
.a-tab.is-on { background: var(--d-brand); border-color: var(--d-brand); color: var(--d-brand-ink); }
.a-intro { padding: 40px 0 8px; }
.a-intro h1 { font-size: clamp(1.5rem, 3.2vw, 2.2rem); max-width: 900px; }
.a-note { font-size: .88rem; color: var(--d-muted); }
.a-link { background: none; border: 0; padding: 0; color: var(--d-brand); font: inherit; text-decoration: underline; cursor: pointer; }
.a-app { padding-top: 16px; padding-bottom: 56px; }
.a-grid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.a-grid-even { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.a-h { font-size: 1.05rem; margin: 6px 0 12px; display: flex; align-items: center; gap: 8px; }
.a-h:not(:first-child) { margin-top: 22px; }
.a-options { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 10px; }
.a-option { text-align: left; padding: 12px 14px; border: 1.5px solid var(--d-line); border-radius: 12px; background: var(--d-bg); color: var(--d-ink); font: 600 .95rem var(--font); cursor: pointer; display: grid; gap: 2px; }
.a-option small { color: var(--d-muted); font-weight: 500; }
.a-option.is-on, .a-option:hover { border-color: var(--d-brand); background: var(--d-alt); }
.a-chips { display: flex; gap: 8px; flex-wrap: wrap; }
.a-chip { font: 600 .88rem var(--font); padding: 7px 12px; border-radius: 999px; border: 1.5px solid var(--d-line); background: var(--d-bg); color: var(--d-ink); cursor: pointer; }
.a-chip.is-on { background: var(--d-brand); border-color: var(--d-brand); color: var(--d-brand-ink); }
.a-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(78px, 1fr)); gap: 8px; margin-top: 14px; }
.a-slot { font: 600 .9rem var(--font); padding: 9px 0; border-radius: 10px; border: 1.5px solid var(--d-line); background: var(--d-bg); color: var(--d-ink); cursor: pointer; }
.a-slot.is-on { background: var(--d-brand); border-color: var(--d-brand); color: var(--d-brand-ink); }
.a-slot:disabled { opacity: .35; cursor: not-allowed; text-decoration: line-through; }
.a-hint { font-size: .82rem; color: var(--d-muted); margin: 10px 0 0; }
.a-summary { position: sticky; top: 120px; display: grid; gap: 12px; }
.a-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 14px; margin: 0; }
.a-dl dt { color: var(--d-muted); font-size: .9rem; }
.a-dl dd { margin: 0; font-weight: 650; text-align: right; }
.a-totals dt:last-of-type, .a-totals dd:last-of-type { font-size: 1.1rem; color: var(--d-ink); font-weight: 800; border-top: 1px solid var(--d-line); padding-top: 8px; }
.a-error { color: #b91c1c; font-size: .9rem; margin: 0; }
.a-wide { width: 100%; justify-content: center; }
.a-confirm { background: var(--d-alt); border-radius: 12px; padding: 14px; }
.a-big { font-size: 1.2rem; font-weight: 800; color: var(--d-brand); margin: 0 0 6px; display: flex; gap: 8px; align-items: center; }
.a-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; margin-bottom: 16px; }
.a-stat { padding: 16px; display: grid; gap: 2px; }
.a-stat strong { font-size: 1.4rem; color: var(--d-ink); }
.a-stat span { font-size: .85rem; color: var(--d-muted); }
.a-toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.a-toolbar input, .a-toolbar select { font: 1rem var(--font); padding: 9px 12px; border: 1.5px solid var(--d-line); border-radius: 10px; background: var(--d-bg); color: var(--d-ink); }
.a-toolbar input[type=search] { flex: 1 1 220px; }
.a-table-wrap { overflow-x: auto; }
.a-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.a-table th, .a-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--d-line); vertical-align: middle; }
.a-table th { font-size: .78rem; text-transform: uppercase; letter-spacing: .05em; color: var(--d-muted); }
.a-actions { display: flex; gap: 6px; flex-wrap: wrap; }
.a-mini { font: 600 .8rem var(--font); padding: 5px 9px; border-radius: 8px; border: 1px solid var(--d-line); background: var(--d-bg); color: var(--d-ink); cursor: pointer; }
.a-mini:hover { border-color: var(--d-brand); color: var(--d-brand); }
.a-badge { font-size: .75rem; font-weight: 700; padding: 3px 9px; border-radius: 999px; background: var(--d-alt); color: var(--d-brand); }
.a-badge.is-done { background: #dcfce7; color: #166534; }
.a-badge.is-noshow { background: #fee2e2; color: #991b1b; }
.a-badge.is-cancelled { background: #f3f4f6; color: #6b7280; }
.a-empty { color: var(--d-muted); text-align: center; padding: 16px; margin: 0; }
.a-switch { display: inline-flex; gap: 8px; align-items: center; font-weight: 600; font-size: .9rem; }
.a-menu { list-style: none; padding: 0; margin: 0; display: grid; gap: 10px; }
.a-dish { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 14px 16px; }
.a-dish small { display: block; color: var(--d-muted); }
.a-dot { width: 14px; height: 14px; border: 2px solid; border-radius: 3px; position: relative; }
.a-dot::after { content: ""; position: absolute; inset: 2px; border-radius: 50%; background: currentColor; }
.a-dot.is-veg { color: #15803d; }
.a-dot.is-nonveg { color: #b91c1c; }
.a-qty { display: inline-flex; align-items: center; gap: 10px; border: 1.5px solid var(--d-line); border-radius: 10px; padding: 2px; }
.a-qty button { width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--d-alt); color: var(--d-brand); font-size: 1.2rem; font-weight: 700; cursor: pointer; }
.a-qty span { min-width: 1.2em; text-align: center; font-weight: 700; }
.a-cart { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.a-cart li { display: flex; justify-content: space-between; gap: 10px; font-size: .95rem; }
.a-coupon { display: flex; gap: 8px; }
.a-coupon input { flex: 1; min-width: 0; font: 1rem var(--font); padding: 9px 12px; border: 1.5px solid var(--d-line); border-radius: 10px; background: var(--d-bg); color: var(--d-ink); }
.a-track { list-style: none; padding: 0; margin: 8px 0 12px; display: grid; gap: 6px; }
.a-track li { padding-left: 26px; position: relative; color: var(--d-muted); }
.a-track li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 12px; height: 12px; border-radius: 50%; border: 2px solid var(--d-line); }
.a-track li.is-on { color: var(--d-ink); font-weight: 650; }
.a-track li.is-on::before { background: var(--d-brand); border-color: var(--d-brand); }
.a-board { display: grid; grid-template-columns: repeat(5, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; padding-bottom: 6px; }
.a-board-4 { grid-template-columns: repeat(4, minmax(220px, 1fr)); }
.a-col { background: var(--d-alt); border-radius: 14px; padding: 12px; display: grid; gap: 10px; align-content: start; min-height: 160px; }
.a-col h3 { font-size: .9rem; margin: 2px 4px; }
.a-card { padding: 12px 14px; display: grid; gap: 4px; box-shadow: none; }
.a-card small { color: var(--d-muted); }
.a-card .a-mini { justify-self: start; margin-top: 6px; }
.a-card.is-mine { border-color: var(--d-brand); box-shadow: 0 0 0 2px color-mix(in srgb, var(--d-brand) 25%, transparent); }
.a-card.is-due { border-left: 4px solid #dc2626; }
.a-items { list-style: none; padding: 0; margin: 4px 0 0; font-size: .88rem; }
.a-meta { font-size: .8rem; color: var(--d-muted); }
.a-form { display: grid; gap: 12px; }
.a-form .d-row { margin-bottom: 0; }
.a-bars { display: grid; gap: 10px; }
.a-bar { display: grid; grid-template-columns: 110px 1fr 28px; gap: 10px; align-items: center; font-size: .9rem; }
.a-bar b { height: 12px; background: var(--d-alt); border-radius: 99px; overflow: hidden; }
.a-bar i { display: block; height: 100%; background: var(--d-brand); border-radius: 99px; }
.a-bar em { font-style: normal; font-weight: 700; text-align: right; }
.a-list { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.a-range { display: grid !important; grid-template-columns: 1fr auto; }
.a-range output { font-weight: 800; color: var(--d-brand); }
.a-range input { grid-column: 1 / -1; accent-color: var(--d-brand); padding: 0 !important; border: 0 !important; background: transparent !important; }
.a-fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 8px; }
.a-fieldset legend { font-size: .85rem; font-weight: 600; color: var(--d-muted); margin-bottom: 6px; }
.a-check { display: flex !important; gap: 8px; align-items: center; font-weight: 500 !important; color: var(--d-ink) !important; }
.a-check input { width: auto !important; }
.a-price { font-size: clamp(1.4rem, 3vw, 1.9rem); font-weight: 800; color: var(--d-brand); margin: 0; }
.a-hr { border: 0; border-top: 1px solid var(--d-line); width: 100%; margin: 6px 0; }
.a-cta-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; }
.a-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.a-checks li { display: flex; gap: 8px; align-items: center; }
.a-checks .icon { color: var(--d-brand); }
.a-cta-card { display: grid; gap: 12px; }
.a-cta-card .d-btn { justify-content: center; }
@media (max-width: 900px) {
  .a-grid, .a-grid-even, .a-cta-grid { grid-template-columns: minmax(0, 1fr); }
  .a-summary { position: static; }
}
@media print {
  .demo-bar, .d-header, .a-intro, .a-cta, .d-footer, .toast, .a-app .a-form, [data-request], [data-print] { display: none !important; }
  .a-grid { display: block; }
  .a-quote { border: 0; box-shadow: none; }
}

/* ---------- live preview lead capture (demos/_capture.html, preview.js) ---------- */
.p-bar, .p-slide, .p-pop { font-family: var(--font); --p-brand: #4f2bea; }
.p-bar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 75; display: flex; align-items: center; justify-content: center; gap: 10px 20px; flex-wrap: wrap;
  padding: 10px 16px; background: #17152b; color: #fff; box-shadow: 0 -8px 24px rgb(0 0 0 / 18%); transform: translateY(110%); transition: transform .25s; }
.p-bar.is-on { transform: none; }
.p-bar em { font-style: normal; color: #c4b5fd; font-weight: 700; }
.p-bar-actions { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.p-bar .d-btn { background: var(--p-brand); color: #fff; border-color: var(--p-brand); }
.p-bar .d-btn-ghost { background: transparent; color: #fff; border-color: rgb(255 255 255 / 45%); }
.p-link { background: none; border: 0; padding: 4px; color: inherit; font: 600 .9rem var(--font); text-decoration: underline; cursor: pointer; }
.p-slide { position: fixed; right: 20px; bottom: 84px; z-index: 76; width: min(380px, calc(100vw - 32px)); max-height: calc(100vh - 120px); overflow: auto;
  background: #fff; color: #17152b; border-radius: 18px; padding: 22px; box-shadow: 0 20px 50px rgb(0 0 0 / 28%); animation: pIn .3s ease; }
.p-slide h2 { font-size: 1.2rem; margin: 0 0 6px; }
.p-x { position: absolute; top: 8px; right: 10px; width: 34px; height: 34px; border: 0; background: none; font-size: 1.5rem; line-height: 1; color: #6b6785; cursor: pointer; }
.p-form { display: grid; gap: 10px; margin-top: 12px; }
.p-form label { display: grid; gap: 4px; font-size: .85rem; font-weight: 600; color: #4b4766; }
.p-form input[type=text], .p-form input[type=email] { font: 1rem var(--font); padding: 10px 12px; border: 1.5px solid #dcd8ef; border-radius: 10px; color: #17152b; }
.p-form .d-btn { background: var(--p-brand); border-color: var(--p-brand); color: #fff; justify-content: center; }
.p-form .d-fine { text-align: left; margin: 0; }
.p-check { display: flex !important; gap: 8px; align-items: flex-start; font-weight: 400 !important; }
.p-check input { margin-top: 3px; }
.p-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.p-pop { position: fixed; inset: 0; z-index: 90; display: grid; place-items: center; padding: 16px; }
.p-backdrop { position: absolute; inset: 0; background: rgb(15 12 35 / 55%); }
.p-card { position: relative; width: min(440px, 100%); max-height: calc(100vh - 32px); overflow: auto; background: #fff; color: #17152b; border-radius: 20px;
  padding: 28px 24px 18px; box-shadow: 0 30px 70px rgb(0 0 0 / 35%); animation: pIn .3s ease; text-align: center; }
.p-card h2 { font-size: 1.35rem; margin: 6px 0 8px; }
.p-card .p-form { text-align: left; }
.p-pct { display: inline-block; margin: 0; padding: 6px 14px; border-radius: 999px; background: var(--p-brand); color: #fff; font-weight: 800; }
.p-wide { width: 100%; justify-content: center; background: var(--p-brand); border-color: var(--p-brand); color: #fff; margin-top: 8px; }
.p-center { display: block; margin: 10px auto 0; color: var(--p-brand); }
.p-no { background: none; border: 0; color: #6b6785; font: .9rem var(--font); margin-top: 8px; cursor: pointer; }
.p-slide[hidden], .p-pop[hidden] { display: none !important; }
body.has-capture { padding-bottom: 72px; }
.has-capture .b-float { bottom: 84px; }
@keyframes pIn { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@media (max-width: 640px) {
  .p-bar-text { display: none; }
  .p-slide { right: 16px; left: 16px; width: auto; bottom: 120px; }
}
