/* ==========================================================================
   SERVEQR design system
   ========================================================================== */
:root {
  --ink: #0B1B2B; --ink-2: #24364A; --muted: #5E6E80; --faint: #8A98A8;
  --line: #E4E9F0; --line-2: #D3DBE5;
  --bg: #FFFFFF; --bg-soft: #F5F7FA; --bg-softer: #FAFBFC;
  --brand: #0E7C86; --brand-2: #2EC4B6; --brand-ink: #075E66; --brand-soft: #E3F4F4;
  --sun: #F4A261; --sun-soft: #FDF0E4;
  --ok: #18875A; --ok-soft: #E2F4EB; --warn: #B7791F; --warn-soft: #FCF1DC;
  --danger: #C53B3B; --danger-soft: #FBE7E7; --info: #3563C9; --info-soft: #E6EDFB;
  --radius: 14px; --radius-sm: 10px; --radius-lg: 22px;
  --shadow-sm: 0 1px 2px rgba(11,27,43,.06), 0 1px 3px rgba(11,27,43,.05);
  --shadow: 0 4px 14px rgba(11,27,43,.07), 0 1px 3px rgba(11,27,43,.05);
  --shadow-lg: 0 24px 60px -12px rgba(11,27,43,.22);
  --font: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --mono: 'JetBrains Mono', ui-monospace, Consolas, monospace;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); font-size: 15px; line-height: 1.55; -webkit-font-smoothing: antialiased; }
img, svg { max-width: 100%; }
a { color: var(--brand); text-decoration: none; }
a:hover { color: var(--brand-ink); }
h1, h2, h3, h4 { margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; }
p { margin: 0 0 1em; }
button, input, select, textarea { font: inherit; color: inherit; }
::selection { background: var(--brand-2); color: #fff; }
.boot { min-height: 100vh; display: grid; place-items: center; }
.spinner { width: 28px; height: 28px; border-radius: 50%; border: 3px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.mono { font-family: var(--mono); letter-spacing: .02em; }
.muted { color: var(--muted); }
.faint { color: var(--faint); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.right { text-align: right; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.row.between { justify-content: space-between; }
.stack > * + * { margin-top: 12px; }
.grow { flex: 1; min-width: 0; }
.hide { display: none !important; }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid transparent; font-weight: 600; font-size: 14px; cursor: pointer; transition: background .15s, border-color .15s, transform .05s, box-shadow .15s; white-space: nowrap; text-decoration: none; background: none; }
.btn:active { transform: translateY(1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn-primary { background: var(--ink); color: #fff; }
.btn-primary:hover { background: #1A2F45; color: #fff; }
.btn-brand { background: var(--brand); color: #fff; }
.btn-brand:hover { background: var(--brand-ink); color: #fff; }
.btn-ghost { background: var(--bg); border-color: var(--line-2); color: var(--ink); }
.btn-ghost:hover { background: var(--bg-soft); color: var(--ink); }
.btn-soft { background: var(--bg-soft); color: var(--ink); }
.btn-soft:hover { background: var(--line); color: var(--ink); }
.btn-danger { background: var(--danger); color: #fff; }
.btn-danger:hover { background: #A52F2F; color: #fff; }
.btn-danger-ghost { background: var(--bg); border-color: #F0C9C9; color: var(--danger); }
.btn-danger-ghost:hover { background: var(--danger-soft); }
.btn-lg { height: 50px; padding: 0 24px; font-size: 15.5px; border-radius: 12px; }
.btn-sm { height: 32px; padding: 0 12px; font-size: 13px; border-radius: 8px; }
.btn-xs { height: 26px; padding: 0 9px; font-size: 12px; border-radius: 7px; gap: 5px; }
.btn-block { width: 100%; }
.icon-btn { width: 34px; height: 34px; display: inline-grid; place-items: center; border-radius: 9px; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; color: var(--ink-2); }
.icon-btn:hover { background: var(--bg-soft); }
.link-btn { background: none; border: 0; padding: 0; color: var(--brand); font-weight: 600; cursor: pointer; }

/* ---------- forms ---------- */
.field { display: block; margin-bottom: 14px; }
.field > span, .label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
.input, .select, .textarea { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); outline: none; transition: border-color .15s, box-shadow .15s; }
.textarea { height: auto; min-height: 84px; padding: 10px 12px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(14,124,134,.15); }
.input-color { width: 48px; height: 42px; padding: 4px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); cursor: pointer; }
.hint { font-size: 12.5px; color: var(--muted); margin-top: 5px; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.check { display: flex; gap: 9px; align-items: flex-start; cursor: pointer; font-size: 14px; }
.check input { margin-top: 3px; accent-color: var(--brand); width: 16px; height: 16px; }
.switch { position: relative; display: inline-block; width: 38px; height: 22px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line-2); border-radius: 22px; cursor: pointer; transition: .2s; }
.switch span::before { content: ''; position: absolute; width: 16px; height: 16px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: var(--shadow-sm); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(16px); }
.segmented { display: inline-flex; background: var(--bg-soft); border-radius: 10px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: none; padding: 6px 12px; border-radius: 8px; font-weight: 600; font-size: 13px; cursor: pointer; color: var(--muted); }
.segmented button.on { background: var(--bg); color: var(--ink); box-shadow: var(--shadow-sm); }

/* ---------- badges, pills ---------- */
.badge { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 8px; border-radius: 999px; font-size: 11.5px; font-weight: 700; letter-spacing: .02em; background: var(--bg-soft); color: var(--ink-2); white-space: nowrap; }
.badge::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .8; }
.badge.plain::before { display: none; }
.b-ok { background: var(--ok-soft); color: var(--ok); }
.b-warn { background: var(--warn-soft); color: var(--warn); }
.b-danger { background: var(--danger-soft); color: var(--danger); }
.b-info { background: var(--info-soft); color: var(--info); }
.b-brand { background: var(--brand-soft); color: var(--brand-ink); }
.b-sun { background: var(--sun-soft); color: #B4621B; }
.b-dark { background: var(--ink); color: #fff; }
.tag { display: inline-block; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; padding: 2px 7px; border-radius: 6px; background: var(--bg-soft); color: var(--muted); }
.lock-pill { display: inline-flex; align-items: center; gap: 4px; font-size: 10.5px; font-weight: 800; letter-spacing: .05em; text-transform: uppercase; padding: 2px 7px; border-radius: 6px; background: var(--sun-soft); color: #B4621B; }

/* ---------- cards & tables ---------- */
.card { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.card-h { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-h h3 { margin: 0; font-size: 15.5px; }
.card.flush { padding: 0; overflow: hidden; }
.card.flush .card-h { padding: 16px 20px 0; }
.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 11.5px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--bg-softer); white-space: nowrap; }
.table td { padding: 12px 14px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.click { cursor: pointer; }
.table tr.click:hover td { background: var(--bg-softer); }
.empty { text-align: center; padding: 40px 20px; color: var(--muted); }
.empty .em-icon { font-size: 34px; margin-bottom: 8px; }
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; }
.kpi .k-label { font-size: 12.5px; color: var(--muted); font-weight: 600; }
.kpi .k-value { font-size: 26px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.kpi .k-sub { font-size: 12.5px; color: var(--muted); margin-top: 2px; }
.delta-up { color: var(--ok); font-weight: 700; }
.delta-down { color: var(--danger); font-weight: 700; }
.meter { height: 7px; background: var(--bg-soft); border-radius: 9px; overflow: hidden; }
.meter > i { display: block; height: 100%; background: var(--brand); border-radius: 9px; }
.meter.warn > i { background: var(--sun); }
.alert { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: 12px; font-size: 14px; border: 1px solid; }
.alert-warn { background: var(--warn-soft); border-color: #F1DDB2; color: #6E4A10; }
.alert-danger { background: var(--danger-soft); border-color: #F2C7C7; color: #7C2222; }
.alert-info { background: var(--info-soft); border-color: #CAD8F6; color: #23428A; }
.alert-ok { background: var(--ok-soft); border-color: #BDE5D0; color: #105D3E; }
.alert b { font-weight: 700; }

/* ---------- modal & toast ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(11,27,43,.45); backdrop-filter: blur(3px); z-index: 100; display: flex; align-items: center; justify-content: center; padding: 16px; animation: fade .15s; }
.modal { background: var(--bg); border-radius: 18px; width: 100%; max-width: 520px; max-height: calc(100vh - 32px); display: flex; flex-direction: column; box-shadow: var(--shadow-lg); animation: pop .18s ease-out; }
.modal.wide { max-width: 760px; }
.modal-h { display: flex; align-items: center; justify-content: space-between; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.modal-h h3 { margin: 0; font-size: 17px; }
.modal-b { padding: 20px 22px; overflow-y: auto; }
.modal-f { display: flex; justify-content: flex-end; gap: 10px; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg-softer); border-radius: 0 0 18px 18px; }
@keyframes fade { from { opacity: 0; } }
@keyframes pop { from { opacity: 0; transform: translateY(8px) scale(.98); } }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; }
.toast { background: var(--ink); color: #fff; padding: 11px 16px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); animation: pop .2s; max-width: min(92vw, 440px); pointer-events: auto; }
.toast.error { background: var(--danger); }
.toast.success { background: var(--ok); }

/* ==========================================================================
   Marketing site
   ========================================================================== */
.m-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.85); backdrop-filter: saturate(1.6) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s; }
.m-nav.scrolled { border-bottom-color: var(--line); }
.m-nav .inner { max-width: 1200px; margin: 0 auto; height: 68px; display: flex; align-items: center; gap: 28px; padding: 0 24px; }
.logo { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 18px; letter-spacing: -.02em; color: var(--ink); }
.logo:hover { color: var(--ink); }
.logo b { color: var(--brand); font-weight: 800; }
.logo svg { width: 28px; height: 28px; }
.m-links { display: flex; gap: 4px; flex: 1; }
.m-links a { color: var(--ink-2); font-weight: 600; font-size: 14.5px; padding: 8px 12px; border-radius: 8px; }
.m-links a:hover, .m-links a.on { color: var(--ink); background: var(--bg-soft); }
.m-cta { display: flex; gap: 8px; }
.m-burger { display: none; }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.section { padding: 96px 0; }
.section.tight { padding: 64px 0; }
.section.soft { background: var(--bg-soft); }
.section.dark { background: var(--ink); color: #fff; }
.section.dark .muted { color: #9FB0C2; }
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brand); text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.section.dark .eyebrow { color: var(--brand-2); }
.h-display { font-size: clamp(40px, 6vw, 72px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; }
.h-display em, .h-section em { font-family: var(--serif); font-weight: 400; font-style: italic; letter-spacing: -.01em; color: var(--brand); }
.section.dark .h-section em { color: var(--brand-2); }
.h-section { font-size: clamp(30px, 4vw, 46px); font-weight: 800; letter-spacing: -.03em; }
.lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.center { text-align: center; }
.center .lead { margin-left: auto; margin-right: auto; }
.hero { padding: 72px 0 90px; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; inset: -40% -10% auto auto; width: 900px; height: 900px; background: radial-gradient(closest-side, rgba(46,196,182,.16), transparent 70%); pointer-events: none; }
.hero::after { content: ''; position: absolute; left: -200px; bottom: -300px; width: 700px; height: 700px; background: radial-gradient(closest-side, rgba(244,162,97,.14), transparent 70%); pointer-events: none; }
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.hero .lead { margin: 22px 0 30px; }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; }
.hero-proof { display: flex; gap: 22px; margin-top: 30px; flex-wrap: wrap; color: var(--muted); font-size: 14px; font-weight: 500; }
.hero-proof span { display: inline-flex; align-items: center; gap: 7px; }
.hero-proof svg { color: var(--ok); }
.pill-note { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: var(--bg); border: 1px solid var(--line); font-size: 13.5px; font-weight: 600; color: var(--ink-2); margin-bottom: 22px; box-shadow: var(--shadow-sm); }
.pill-note b { background: var(--ink); color: #fff; border-radius: 999px; padding: 2px 9px; font-size: 11.5px; }

/* phone mockup */
.phone { width: 300px; height: 610px; border-radius: 46px; background: #0B1B2B; padding: 11px; box-shadow: var(--shadow-lg), inset 0 0 0 2px #1d3046; position: relative; margin: 0 auto; }
.phone::before { content: ''; position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 92px; height: 26px; background: #0B1B2B; border-radius: 20px; z-index: 3; }
.phone .screen { width: 100%; height: 100%; border-radius: 36px; overflow: hidden; background: #fff; position: relative; }
.phone iframe { width: 100%; height: 100%; border: 0; display: block; }
.hero-visual { position: relative; }
.float-card { position: absolute; background: var(--bg); border-radius: 16px; box-shadow: var(--shadow-lg); padding: 12px 14px; font-size: 13px; z-index: 4; border: 1px solid var(--line); animation: floaty 6s ease-in-out infinite; }
.float-card .fc-t { font-weight: 700; }
.float-card.fc1 { left: -30px; top: 110px; }
.float-card.fc2 { right: -24px; top: 300px; animation-delay: -2s; }
.float-card.fc3 { left: -10px; bottom: 60px; animation-delay: -4s; }
@keyframes floaty { 50% { transform: translateY(-8px); } }

.mock-menu { height: 100%; display: flex; flex-direction: column; font-size: 12px; }
.mock-cover { background: linear-gradient(135deg, #0E7C86, #2EC4B6); color: #fff; padding: 46px 16px 18px; }
.mock-cover .mc-logo { font-weight: 800; letter-spacing: .14em; font-size: 15px; }
.mock-cover .mc-loc { display: inline-block; background: rgba(255,255,255,.2); border-radius: 99px; padding: 3px 10px; font-weight: 700; margin-top: 8px; font-size: 11px; }
.mock-tabs { display: flex; gap: 6px; padding: 12px 14px 6px; }
.mock-tabs span { padding: 5px 10px; border-radius: 99px; background: var(--bg-soft); font-weight: 700; font-size: 10.5px; }
.mock-tabs span.on { background: var(--ink); color: #fff; }
.mock-item { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.mock-item .mi-img { width: 42px; height: 42px; border-radius: 10px; background: var(--bg-soft); display: grid; place-items: center; font-size: 22px; }
.mock-item .mi-name { font-weight: 700; font-size: 12px; }
.mock-item .mi-add { margin-left: auto; width: 26px; height: 26px; border-radius: 8px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 700; }
.mock-cart { margin: auto 12px 14px; background: #0E7C86; color: #fff; border-radius: 14px; padding: 12px 14px; display: flex; justify-content: space-between; font-weight: 700; }

.logos-strip { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-top: 8px; }
.logos-strip span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); font-weight: 600; color: var(--ink-2); font-size: 14px; }

.feature-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.feature { padding: 26px; border-radius: var(--radius-lg); border: 1px solid var(--line); background: var(--bg); transition: transform .2s, box-shadow .2s; }
.feature:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.feature .f-icon { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); margin-bottom: 16px; }
.feature h3 { font-size: 17px; margin-bottom: 6px; }
.feature p { color: var(--muted); margin: 0; font-size: 14.5px; }
.feature ul { margin: 12px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--ink-2); }
.feature ul li { padding: 3px 0 3px 22px; position: relative; }
.feature ul li::before { content: ''; position: absolute; left: 2px; top: 10px; width: 10px; height: 6px; border-left: 2px solid var(--brand); border-bottom: 2px solid var(--brand); transform: rotate(-45deg); }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; margin-top: 48px; counter-reset: step; }
.step { position: relative; padding: 24px; border-radius: var(--radius-lg); background: var(--bg); border: 1px solid var(--line); }
.section.dark .step { background: #12263A; border-color: #1F3850; }
.step .s-num { width: 34px; height: 34px; border-radius: 10px; background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 16px; }
.section.dark .step .s-num { background: var(--brand-2); color: var(--ink); }
.step h3 { font-size: 17px; }
.step p { color: var(--muted); margin: 0; font-size: 14.5px; }

.split { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.split.rev > :first-child { order: 2; }
.checklist { list-style: none; padding: 0; margin: 22px 0 0; }
.checklist li { padding: 7px 0 7px 32px; position: relative; font-weight: 500; }
.checklist li::before { content: ''; position: absolute; left: 0; top: 9px; width: 20px; height: 20px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230E7C86' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/20px no-repeat; }
.section.dark .checklist li::before { background-color: #12363F; }

/* dynamic QR diagram */
.qr-flow { display: grid; grid-template-columns: auto 1fr; gap: 0; background: var(--bg); border-radius: var(--radius-lg); border: 1px solid var(--line); padding: 28px; box-shadow: var(--shadow); color: var(--ink); }
.qr-flow .qf-qr { width: 132px; height: 132px; padding: 8px; background: #fff; border-radius: 14px; border: 1px solid var(--line); }
.qr-flow .qf-qr svg { width: 100%; height: 100%; display: block; }
.qf-chain { padding-left: 28px; display: flex; flex-direction: column; gap: 8px; justify-content: center; }
.qf-chain .qf-row { display: flex; align-items: center; gap: 10px; font-size: 14.5px; }
.qf-chain .qf-row .arrow { color: var(--faint); }
.qf-chain code { font-family: var(--mono); background: var(--bg-soft); padding: 3px 8px; border-radius: 6px; font-size: 13px; }
.qf-toggle { margin-top: 18px; grid-column: 1 / -1; display: flex; gap: 12px; align-items: center; padding-top: 18px; border-top: 1px dashed var(--line-2); }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; margin-top: 48px; align-items: stretch; }
.price-card { position: relative; border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 30px 28px; background: var(--bg); display: flex; flex-direction: column; }
.price-card.popular { border: 2px solid var(--ink); box-shadow: var(--shadow-lg); transform: translateY(-8px); }
.price-card .popular-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 11.5px; font-weight: 800; letter-spacing: .1em; padding: 6px 14px; border-radius: 999px; white-space: nowrap; }
.price-card .popular-tag::before { content: '★ '; color: var(--sun); }
.price-card h3 { font-size: 20px; margin-bottom: 4px; }
.price-card .p-tag { color: var(--muted); font-size: 14px; min-height: 44px; }
.price-card .p-price { font-size: 48px; font-weight: 800; letter-spacing: -.04em; margin: 14px 0 2px; }
.price-card .p-price small { font-size: 16px; font-weight: 600; color: var(--muted); letter-spacing: 0; }
.price-card .p-qr { font-size: 13px; font-weight: 600; color: var(--ok); margin-bottom: 20px; }
.price-card ul { list-style: none; padding: 0; margin: 22px 0 0; font-size: 14.5px; }
.price-card ul li { padding: 6px 0 6px 28px; position: relative; }
.price-card ul li::before { content: ''; position: absolute; left: 0; top: 9px; width: 18px; height: 18px; border-radius: 50%; background: var(--brand-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 20'%3E%3Cpath d='M6 10.5l2.5 2.5L14 7.5' fill='none' stroke='%230E7C86' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/18px no-repeat; }
.price-card .p-inherit { font-weight: 700; font-size: 13.5px; margin-top: 22px; color: var(--ink-2); }
.price-card .p-inherit + ul { margin-top: 8px; }
.price-card .btn { margin-top: auto; }
.price-card .p-foot { margin-top: 26px; }
.compare td:not(:first-child), .compare th:not(:first-child) { text-align: center; }
.compare .yes { color: var(--ok); font-weight: 800; }
.compare .no { color: var(--faint); }
.faq { max-width: 780px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 18px 0; }
.faq summary { font-weight: 700; font-size: 16.5px; cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; }
.faq summary::after { content: '+'; font-size: 22px; line-height: 1; color: var(--muted); }
.faq details[open] summary::after { content: '–'; }
.faq details p { margin: 10px 0 0; color: var(--muted); }

.solution-card { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; padding: 40px; border-radius: 28px; background: var(--bg-soft); margin-bottom: 26px; }
.solution-card:nth-child(even) .sc-visual { order: -1; }
.sc-visual { height: 280px; border-radius: 20px; display: grid; place-items: center; font-size: 96px; position: relative; overflow: hidden; }
.sc-visual .sc-chip { position: absolute; background: #fff; border-radius: 12px; padding: 8px 12px; font-size: 13px; font-weight: 700; box-shadow: var(--shadow); }
.cta-band { border-radius: 32px; background: var(--ink); color: #fff; padding: 64px; display: flex; align-items: center; justify-content: space-between; gap: 32px; position: relative; overflow: hidden; }
.cta-band::after { content: ''; position: absolute; right: -120px; top: -160px; width: 480px; height: 480px; background: radial-gradient(closest-side, rgba(46,196,182,.35), transparent); }
.cta-band h2 { font-size: clamp(28px, 3.4vw, 40px); margin: 0 0 8px; }
.cta-band p { color: #A9B8C8; margin: 0; font-size: 17px; }
.cta-band .btn { position: relative; z-index: 1; }
.cta-band .btn-ghost { background: transparent; color: #fff; border-color: #34506C; }
.cta-band .btn-ghost:hover { background: #12263A; }

.demo-grid { display: grid; grid-template-columns: 340px 1fr; gap: 48px; align-items: start; margin-top: 40px; }
.demo-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.demo-card { border: 1px solid var(--line); border-radius: 18px; padding: 22px; background: var(--bg); display: flex; flex-direction: column; gap: 10px; }
.demo-card .dc-top { display: flex; align-items: center; gap: 10px; }
.demo-card .dc-icon { width: 40px; height: 40px; border-radius: 11px; display: grid; place-items: center; background: var(--bg-soft); }
.demo-card h3 { font-size: 16px; margin: 0; }
.demo-card p { color: var(--muted); font-size: 14px; margin: 0; flex: 1; }

.m-footer { background: var(--ink); color: #A9B8C8; padding: 64px 0 36px; font-size: 14px; }
.m-footer .f-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.m-footer h4 { color: #fff; font-size: 13px; text-transform: uppercase; letter-spacing: .1em; margin-bottom: 14px; }
.m-footer a { color: #A9B8C8; display: block; padding: 4px 0; }
.m-footer a:hover { color: #fff; }
.m-footer .logo { color: #fff; }
.m-footer .f-bottom { border-top: 1px solid #1F3850; margin-top: 44px; padding-top: 24px; display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }

/* ==========================================================================
   Auth pages
   ========================================================================== */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-side { background: var(--ink); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; position: relative; overflow: hidden; }
.auth-side::after { content: ''; position: absolute; right: -200px; bottom: -200px; width: 600px; height: 600px; background: radial-gradient(closest-side, rgba(46,196,182,.3), transparent); }
.auth-side .logo { color: #fff; }
.auth-side h2 { font-size: 38px; letter-spacing: -.03em; max-width: 440px; }
.auth-side h2 em { font-family: var(--serif); font-weight: 400; color: var(--brand-2); }
.auth-main { display: flex; align-items: center; justify-content: center; padding: 40px 24px; }
.auth-box { width: 100%; max-width: 440px; }
.auth-box h1 { font-size: 28px; }
.demo-logins { display: grid; gap: 8px; margin-top: 8px; }
.demo-logins button { display: flex; align-items: center; gap: 12px; text-align: left; padding: 11px 14px; border: 1px solid var(--line-2); border-radius: 12px; background: var(--bg); cursor: pointer; }
.demo-logins button:hover { background: var(--bg-soft); }
.demo-logins .dl-t { font-weight: 700; font-size: 14px; }
.demo-logins .dl-s { font-size: 12.5px; color: var(--muted); }
.divider { display: flex; align-items: center; gap: 12px; color: var(--faint); font-size: 12.5px; margin: 22px 0; }
.divider::before, .divider::after { content: ''; flex: 1; height: 1px; background: var(--line); }
.plan-pick { display: grid; gap: 10px; }
.plan-pick label { display: flex; gap: 12px; align-items: center; border: 1.5px solid var(--line-2); border-radius: 12px; padding: 14px; cursor: pointer; }
.plan-pick label.on { border-color: var(--ink); background: var(--bg-softer); }
.plan-pick input { accent-color: var(--ink); }
.steps-ind { display: flex; gap: 6px; margin-bottom: 26px; }
.steps-ind i { height: 4px; flex: 1; border-radius: 4px; background: var(--line); }
.steps-ind i.on { background: var(--ink); }

/* ==========================================================================
   Dashboard (venue + admin)
   ========================================================================== */
.dash { display: grid; grid-template-columns: 252px 1fr; min-height: 100vh; background: var(--bg-soft); }
.side { background: var(--bg); border-right: 1px solid var(--line); padding: 16px 12px; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.side .logo { padding: 6px 10px 16px; }
.side.admin-side { background: var(--ink); border-color: var(--ink); }
.side.admin-side .logo { color: #fff; }
.venue-switch { margin: 0 4px 14px; }
.venue-switch .select { height: 40px; font-weight: 600; }
.nav-group { margin-bottom: 14px; }
.nav-group .ng-t { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .1em; color: var(--faint); padding: 6px 12px; }
.nav-item { display: flex; align-items: center; gap: 11px; padding: 8px 12px; border-radius: 9px; color: var(--ink-2); font-weight: 600; font-size: 14px; }
.nav-item:hover { background: var(--bg-soft); color: var(--ink); }
.nav-item.on { background: var(--ink); color: #fff; }
.nav-item .count { margin-left: auto; background: var(--danger); color: #fff; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 99px; }
.nav-item .lock-pill { margin-left: auto; }
.admin-side .nav-item { color: #B8C6D4; }
.admin-side .nav-item:hover { background: #142B41; color: #fff; }
.admin-side .nav-item.on { background: var(--brand); color: #fff; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--line); }
.admin-side .side-foot { border-color: #1F3850; }
.user-chip { display: flex; align-items: center; gap: 10px; padding: 8px 10px; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: var(--brand-soft); color: var(--brand-ink); display: grid; place-items: center; font-weight: 800; font-size: 13px; flex: none; }
.user-chip .uc-n { font-weight: 700; font-size: 13.5px; line-height: 1.2; }
.user-chip .uc-r { font-size: 12px; color: var(--muted); text-transform: capitalize; }
.admin-side .user-chip .uc-n { color: #fff; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { height: 64px; display: flex; align-items: center; gap: 14px; padding: 0 28px; background: var(--bg); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.topbar h1 { font-size: 19px; margin: 0; }
.topbar .tb-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.side-toggle { display: none; }
.content { padding: 26px 28px 60px; max-width: 1320px; width: 100%; }
.page-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 20px; align-items: start; }
.sub-banner { margin: 18px 28px 0; }
.live-dot { display: inline-flex; align-items: center; gap: 7px; font-size: 12.5px; font-weight: 700; color: var(--ok); }
.live-dot::before { content: ''; width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 0 rgba(24,135,90,.6); animation: pulse 1.8s infinite; }
.live-dot.slow { color: var(--muted); }
.live-dot.slow::before { background: var(--faint); animation: none; }
@keyframes pulse { 70% { box-shadow: 0 0 0 8px rgba(24,135,90,0); } 100% { box-shadow: 0 0 0 0 rgba(24,135,90,0); } }
.upsell { text-align: center; padding: 56px 24px; }
.upsell .u-icon { width: 60px; height: 60px; border-radius: 18px; background: var(--sun-soft); color: #B4621B; display: grid; place-items: center; margin: 0 auto 18px; }
.upsell h2 { font-size: 22px; }
.upsell p { color: var(--muted); max-width: 460px; margin: 0 auto 22px; }

/* orders */
.kanban { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; align-items: start; }
.k-col { background: #EDF1F5; border-radius: 16px; padding: 12px; min-height: 200px; }
.k-col-h { display: flex; align-items: center; justify-content: space-between; padding: 4px 6px 12px; font-weight: 800; font-size: 13px; text-transform: uppercase; letter-spacing: .06em; }
.k-col-h .cnt { background: var(--bg); border-radius: 99px; padding: 1px 9px; font-size: 12px; }
.o-card { background: var(--bg); border-radius: 13px; padding: 14px; box-shadow: var(--shadow-sm); margin-bottom: 10px; border: 1px solid var(--line); animation: pop .2s; }
.o-card.is-new { border-color: var(--sun); box-shadow: 0 0 0 3px rgba(244,162,97,.2); }
.o-card .o-top { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.o-card .o-num { font-weight: 800; font-size: 15px; }
.o-card .o-loc { font-weight: 700; font-size: 14px; color: var(--brand-ink); }
.o-card .o-time { font-size: 12px; color: var(--muted); }
.o-card ul { list-style: none; padding: 0; margin: 10px 0; font-size: 13.5px; }
.o-card li { padding: 3px 0; }
.o-card li b { display: inline-block; min-width: 24px; }
.o-card .o-opts { color: var(--muted); font-size: 12.5px; padding-left: 24px; }
.o-card .o-note { background: var(--warn-soft); color: #6E4A10; font-size: 12.5px; padding: 6px 9px; border-radius: 8px; margin-bottom: 10px; }
.o-card .o-actions { display: flex; gap: 6px; align-items: center; }
.o-card .o-total { margin-left: auto; font-weight: 800; }
.svc-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 13px; background: var(--bg); border: 1px solid var(--line); margin-bottom: 10px; }
.svc-card .svc-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--sun-soft); display: grid; place-items: center; font-size: 20px; flex: none; }
.svc-card.ack .svc-icon { background: var(--info-soft); }

/* kitchen display */
.kds { min-height: 100vh; background: #0A1622; color: #E8EEF4; padding: 18px; }
.kds-top { display: flex; align-items: center; gap: 12px 16px; margin-bottom: 18px; flex-wrap: wrap; }
.kds-top > b { white-space: nowrap; }
.kds-top .logo { color: #fff; }
.kds-top .segmented { background: #132638; }
.kds-top .segmented button { color: #8EA2B6; }
.kds-top .segmented button.on { background: #24405C; color: #fff; }
.kds-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(270px, 1fr)); gap: 14px; }
.kds-card { background: #132638; border-radius: 16px; overflow: hidden; border: 2px solid #1C3550; display: flex; flex-direction: column; }
.kds-card.late { border-color: #D9534F; }
.kds-card.warn { border-color: #E0A030; }
.kds-card .kc-h { padding: 12px 14px; display: flex; justify-content: space-between; align-items: center; background: #1A3149; }
.kds-card .kc-num { font-size: 22px; font-weight: 800; }
.kds-card .kc-loc { font-weight: 700; color: #7FDCD3; }
.kds-card .kc-timer { font-family: var(--mono); font-size: 18px; font-weight: 700; }
.kds-card.late .kc-timer { color: #FF8A85; }
.kds-card ul { list-style: none; margin: 0; padding: 12px 14px; flex: 1; font-size: 16px; }
.kds-card li { padding: 5px 0; border-bottom: 1px dashed #233E5A; }
.kds-card li:last-child { border: 0; }
.kds-card li .qty { display: inline-block; min-width: 30px; font-weight: 800; color: #F4A261; }
.kds-card li .opts { display: block; font-size: 13px; color: #8EA2B6; padding-left: 30px; }
.kds-card .kc-note { margin: 0 14px 12px; background: #3A2E12; color: #F5D38A; padding: 7px 10px; border-radius: 8px; font-size: 14px; }
.kds-card .kc-btn { border: 0; padding: 16px; font-weight: 800; font-size: 16px; cursor: pointer; text-transform: uppercase; letter-spacing: .06em; }
.kds-card .kc-btn.start { background: #F4A261; color: #2A1606; }
.kds-card .kc-btn.ready { background: #2EC4B6; color: #062A27; }
.kds-card .kc-btn.done { background: #24405C; color: #fff; }
.kds-empty { text-align: center; padding: 120px 20px; color: #6E849A; font-size: 20px; }

/* menu editor */
.menu-layout { display: grid; grid-template-columns: 270px 1fr; gap: 20px; align-items: start; }
.cat-list .cat { display: flex; align-items: center; gap: 6px; padding: 9px 10px; border-radius: 10px; cursor: pointer; font-weight: 600; font-size: 14px; }
.cat-list .cat:hover { background: var(--bg-soft); }
.cat-list .cat.on { background: var(--brand-soft); color: var(--brand-ink); }
.cat-list .cat .c-n { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cat-list .cat .c-c { font-size: 12px; color: var(--muted); }
.cat-list .cat .c-act { display: none; gap: 2px; }
.cat-list .cat:hover .c-act, .cat-list .cat.on .c-act { display: flex; }
.cat-list .cat .c-act button { border: 0; background: none; cursor: pointer; padding: 3px; color: var(--muted); border-radius: 5px; }
.cat-list .cat .c-act button:hover { background: var(--bg); color: var(--ink); }
.prod-row { display: flex; align-items: center; gap: 14px; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.prod-row:last-child { border-bottom: 0; }
.prod-row.off { opacity: .55; }
.prod-img { width: 48px; height: 48px; border-radius: 12px; background: var(--bg-soft); display: grid; place-items: center; font-size: 24px; flex: none; overflow: hidden; }
.prod-img img { width: 100%; height: 100%; object-fit: cover; }
.prod-row .p-n { font-weight: 700; }
.prod-row .p-d { font-size: 13px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.prod-row .p-p { font-weight: 700; min-width: 80px; text-align: right; }
.opt-group { border: 1px solid var(--line); border-radius: 12px; padding: 12px; margin-bottom: 10px; background: var(--bg-softer); }

/* locations / QR */
.zone-h { display: flex; align-items: center; gap: 10px; margin: 22px 0 10px; }
.zone-h h3 { margin: 0; font-size: 15px; }
.qr-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 14px; }
.qr-card { background: var(--bg); border: 1px solid var(--line); border-radius: 16px; padding: 14px; display: flex; flex-direction: column; gap: 10px; }
.qr-card .qc-top { display: flex; align-items: center; gap: 10px; }
.qr-thumb { width: 64px; height: 64px; border-radius: 10px; border: 1px solid var(--line); padding: 4px; background: #fff; flex: none; cursor: pointer; }
.qr-thumb svg { width: 100%; height: 100%; display: block; }
.qr-card.dim .qr-thumb { opacity: .4; }
.qr-card .qc-n { font-weight: 700; font-size: 14.5px; }
.qr-card .qc-c { font-family: var(--mono); font-size: 12.5px; color: var(--muted); }
.qr-card .qc-meta { display: flex; justify-content: space-between; align-items: center; font-size: 12.5px; color: var(--muted); }
.qr-card .qc-actions { display: flex; gap: 6px; }
.qr-big { width: 260px; height: 260px; margin: 0 auto; padding: 12px; background: #fff; border-radius: 16px; border: 1px solid var(--line); }
.qr-big svg { width: 100%; height: 100%; display: block; }

/* print sheet */
.print-sheet { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; padding: 20px; background: #fff; }
.print-card { border: 2px solid var(--ink); border-radius: 18px; padding: 18px 16px; text-align: center; break-inside: avoid; page-break-inside: avoid; }
.print-card .pc-brand { font-weight: 800; letter-spacing: .14em; font-size: 15px; }
.print-card .pc-call { font-size: 13px; margin: 4px 0 10px; color: var(--muted); }
.print-card .pc-qr { width: 150px; height: 150px; margin: 0 auto; }
.print-card .pc-qr svg { width: 100%; height: 100%; }
.print-card .pc-loc { font-weight: 800; font-size: 18px; margin-top: 8px; }
.print-card .pc-url { font-family: var(--mono); font-size: 11px; color: var(--muted); }
.print-card .pc-pow { font-size: 10px; color: var(--faint); margin-top: 6px; }
.print-toolbar { display: flex; gap: 10px; align-items: center; padding: 16px 20px; border-bottom: 1px solid var(--line); background: var(--bg); position: sticky; top: 0; }
@media print {
  .print-toolbar, #toasts { display: none !important; }
  .print-sheet { padding: 0; gap: 10mm; }
  body { background: #fff; }
}

/* charts */
.chart { width: 100%; display: block; }
.chart text { font-family: var(--font); font-size: 11px; fill: var(--muted); }
.bar-list .bl-row { display: grid; grid-template-columns: 1fr auto; gap: 4px 12px; padding: 7px 0; font-size: 14px; }
.bar-list .bl-bar { grid-column: 1 / -1; height: 6px; background: var(--bg-soft); border-radius: 6px; overflow: hidden; }
.bar-list .bl-bar i { display: block; height: 100%; background: var(--brand); border-radius: 6px; }
.locked-block { position: relative; }
.locked-block .lb-over { position: absolute; inset: 0; background: rgba(255,255,255,.75); backdrop-filter: blur(3px); display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; gap: 8px; border-radius: var(--radius); padding: 20px; z-index: 2; }

/* branding preview */
.brand-layout { display: grid; grid-template-columns: 1fr 340px; gap: 24px; align-items: start; }
.brand-preview { position: sticky; top: 88px; }
.brand-preview .phone { width: 300px; height: 600px; }

/* billing */
.plan-cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.plan-mini { border: 1.5px solid var(--line); border-radius: 16px; padding: 18px; display: flex; flex-direction: column; gap: 6px; background: var(--bg); }
.plan-mini.current { border-color: var(--ink); background: var(--bg-softer); }
.plan-mini .pm-price { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }
.plan-mini .pm-price small { font-size: 13px; color: var(--muted); font-weight: 600; }
.plan-mini ul { margin: 6px 0 10px; padding-left: 18px; font-size: 13px; color: var(--ink-2); }

/* onboarding checklist */
.onb li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 14px; }
.onb li:last-child { border: 0; }
.onb .onb-c { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-2); flex: none; display: grid; place-items: center; }
.onb .done .onb-c { background: var(--ok); border-color: var(--ok); color: #fff; }
.onb .done span.t { color: var(--muted); text-decoration: line-through; }
.onb ul { list-style: none; padding: 0; margin: 0; }

/* admin */
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; font-size: 16px; font-weight: 700; padding: 18px; background: var(--bg-soft); border-radius: 14px; }
.chain .ch-arrow { color: var(--faint); font-weight: 400; }
.chain code { font-family: var(--mono); background: var(--ink); color: #fff; padding: 4px 10px; border-radius: 8px; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { padding: 9px 0 9px 20px; border-left: 2px solid var(--line); position: relative; font-size: 13.5px; }
.timeline li::before { content: ''; position: absolute; left: -6px; top: 14px; width: 10px; height: 10px; border-radius: 50%; background: var(--bg); border: 2px solid var(--brand); }

/* ==========================================================================
   Customer ordering app (mobile first)
   ========================================================================== */
.cx { --c-primary: #0E7C86; --c-accent: #F4A261; max-width: 520px; margin: 0 auto; min-height: 100vh; background: var(--bg); position: relative; padding-bottom: 110px; }
.cx.font-serif { font-family: 'Fraunces', Georgia, serif; }
.cx.font-rounded { font-family: 'Nunito', var(--font); }
.cx.font-mono { font-family: var(--mono); }
.cx-cover { position: relative; color: #fff; padding: 34px 20px 24px; background: var(--c-primary); overflow: hidden; }
.cx-cover.gradient { background: linear-gradient(140deg, var(--c-primary) 0%, color-mix(in srgb, var(--c-primary) 55%, var(--c-accent)) 100%); }
.cx-cover.waves::after { content: ''; position: absolute; left: 0; right: 0; bottom: -1px; height: 38px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 120' preserveAspectRatio='none'%3E%3Cpath d='M0 60 C 150 110 350 0 600 50 C 850 100 1050 20 1200 60 L1200 120 L0 120 Z' fill='white'/%3E%3C/svg%3E") center/100% 100% no-repeat; }
.cx-cover.waves { padding-bottom: 46px; background: linear-gradient(170deg, var(--c-primary), color-mix(in srgb, var(--c-primary) 70%, #fff)); }
.cx-cover.minimal { background: var(--bg); color: var(--ink); border-bottom: 1px solid var(--line); }
.cx-cover.minimal .cx-loc { background: var(--bg-soft); color: var(--ink); }
.cx-logo { font-weight: 800; letter-spacing: .16em; font-size: 20px; }
.cx-logo img { max-height: 46px; max-width: 180px; display: block; }
.cx-welcome { margin: 10px 0 14px; font-size: 14.5px; opacity: .92; max-width: 380px; }
.cx-loc { display: inline-flex; align-items: center; gap: 7px; background: rgba(255,255,255,.2); border-radius: 999px; padding: 6px 13px; font-weight: 700; font-size: 13.5px; }
.cx-tabs { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.95); backdrop-filter: blur(10px); display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.cx-tabs::-webkit-scrollbar { display: none; }
.cx-tabs button { flex: none; border: 0; background: var(--bg-soft); padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.cx-tabs button.on { background: var(--c-primary); color: #fff; }
.cx-section { padding: 6px 16px 4px; scroll-margin-top: 64px; }
.cx-section h2 { font-size: 19px; margin: 20px 0 6px; }
.cx-item { display: flex; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); cursor: pointer; }
.cx-item:last-child { border-bottom: 0; }
.cx-item .ci-info { flex: 1; min-width: 0; }
.cx-item .ci-name { font-weight: 700; font-size: 15.5px; }
.cx-item .ci-desc { color: var(--muted); font-size: 13.5px; margin: 2px 0 6px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cx-item .ci-price { font-weight: 700; }
.cx-item .ci-tags { display: inline-flex; gap: 4px; margin-left: 6px; vertical-align: 1px; }
.cx-item .ci-img { width: 88px; height: 88px; border-radius: 16px; background: var(--bg-soft); display: grid; place-items: center; font-size: 40px; flex: none; position: relative; overflow: hidden; }
.cx-item .ci-img img { width: 100%; height: 100%; object-fit: cover; }
.cx-item .ci-add { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border-radius: 10px; background: #fff; color: var(--ink); display: grid; place-items: center; font-weight: 800; font-size: 18px; box-shadow: var(--shadow); }
.cx-item .ci-qty { position: absolute; left: 6px; top: 6px; min-width: 22px; height: 22px; border-radius: 11px; background: var(--c-primary); color: #fff; font-size: 12px; font-weight: 800; display: grid; place-items: center; padding: 0 6px; }
.cx-help { margin: 20px 16px 0; padding: 18px; border-radius: 18px; background: var(--bg-soft); }
.cx-help h3 { font-size: 16px; margin-bottom: 10px; }
.cx-help .svc-btns { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.cx-help .svc-btns button { border: 1px solid var(--line-2); background: var(--bg); border-radius: 12px; padding: 11px 10px; font-weight: 700; font-size: 13.5px; cursor: pointer; display: flex; align-items: center; gap: 8px; font-family: inherit; }
.cx-help .svc-btns button:hover { border-color: var(--c-primary); }
.cx-powered { text-align: center; font-size: 12px; color: var(--faint); padding: 26px 0 10px; }
.cx-powered b { color: var(--ink-2); }
.cx-bar { position: fixed; left: 50%; transform: translateX(-50%); bottom: 14px; width: calc(100% - 28px); max-width: 492px; z-index: 30; }
.cx-bar button { width: 100%; height: 58px; border: 0; border-radius: 18px; background: var(--c-primary); color: #fff; font-weight: 800; font-size: 16px; display: flex; align-items: center; padding: 0 18px; gap: 12px; cursor: pointer; box-shadow: 0 10px 30px -6px rgba(0,0,0,.35); font-family: inherit; }
.cx-bar .cb-count { background: rgba(255,255,255,.22); border-radius: 9px; min-width: 30px; height: 30px; display: grid; place-items: center; font-size: 14px; }
.cx-bar .cb-total { margin-left: auto; }
.sheet-back { position: fixed; inset: 0; background: rgba(11,27,43,.5); z-index: 60; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.sheet { background: var(--bg); width: 100%; max-width: 520px; max-height: 92vh; border-radius: 24px 24px 0 0; display: flex; flex-direction: column; animation: slideup .22s ease-out; }
@keyframes slideup { from { transform: translateY(40px); opacity: .5; } }
.sheet-h { padding: 18px 20px 10px; display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; }
.sheet-h h3 { font-size: 20px; margin: 0; }
.sheet-b { padding: 0 20px 16px; overflow-y: auto; }
.sheet-f { padding: 12px 20px calc(16px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.sheet .s-hero { height: 150px; border-radius: 18px; background: var(--bg-soft); display: grid; place-items: center; font-size: 72px; margin-bottom: 14px; overflow: hidden; }
.sheet .s-hero img { width: 100%; height: 100%; object-fit: cover; }
.opt-h { display: flex; justify-content: space-between; align-items: center; margin: 16px 0 8px; font-weight: 800; }
.opt-choice { display: flex; align-items: center; gap: 12px; padding: 12px 2px; border-bottom: 1px solid var(--line); cursor: pointer; font-size: 15px; }
.opt-choice input { accent-color: var(--c-primary, var(--brand)); width: 18px; height: 18px; }
.opt-choice .oc-p { margin-left: auto; color: var(--muted); font-size: 14px; }
.qty-ctl { display: inline-flex; align-items: center; gap: 4px; background: var(--bg-soft); border-radius: 12px; padding: 4px; }
.qty-ctl button { width: 36px; height: 36px; border: 0; border-radius: 9px; background: var(--bg); font-size: 18px; font-weight: 700; cursor: pointer; box-shadow: var(--shadow-sm); font-family: inherit; }
.qty-ctl span { min-width: 30px; text-align: center; font-weight: 800; }
.qty-ctl.sm button { width: 28px; height: 28px; font-size: 15px; border-radius: 7px; }
.qty-ctl.sm span { min-width: 22px; font-size: 14px; }
.cx-primary { width: 100%; height: 54px; border: 0; border-radius: 16px; background: var(--c-primary, var(--ink)); color: #fff; font-weight: 800; font-size: 16px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 10px; font-family: inherit; }
.cx-primary:disabled { opacity: .6; cursor: wait; }
.cart-line { display: flex; gap: 12px; padding: 14px 0; border-bottom: 1px solid var(--line); align-items: flex-start; }
.cart-line .cl-info { flex: 1; min-width: 0; }
.cart-line .cl-n { font-weight: 700; }
.cart-line .cl-o { font-size: 13px; color: var(--muted); }
.cart-line .cl-p { font-weight: 700; white-space: nowrap; }
.sum-row { display: flex; justify-content: space-between; padding: 6px 0; font-size: 15px; }
.sum-row.total { font-weight: 800; font-size: 18px; padding-top: 12px; }
.cx-status { padding: 30px 20px; text-align: center; }
.cx-status .cs-icon { width: 76px; height: 76px; border-radius: 50%; margin: 6px auto 16px; display: grid; place-items: center; background: var(--ok-soft); color: var(--ok); }
.cx-status h1 { font-size: 26px; margin-bottom: 6px; }
.track-steps { display: flex; justify-content: space-between; margin: 26px 0 8px; position: relative; text-align: center; }
.track-steps::before { content: ''; position: absolute; top: 15px; left: 12%; right: 12%; height: 3px; background: var(--line); }
.track-steps .ts { flex: 1; position: relative; font-size: 12.5px; font-weight: 700; color: var(--faint); }
.track-steps .ts i { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; margin: 0 auto 6px; background: var(--bg); border: 3px solid var(--line); font-style: normal; font-size: 14px; position: relative; z-index: 1; }
.track-steps .ts.done { color: var(--ink); }
.track-steps .ts.done i { background: var(--c-primary, var(--brand)); border-color: var(--c-primary, var(--brand)); color: #fff; }
.track-steps .ts.cur i { box-shadow: 0 0 0 6px color-mix(in srgb, var(--c-primary, var(--brand)) 20%, transparent); }
.receipt { text-align: left; background: var(--bg-soft); border-radius: 18px; padding: 16px 18px; margin-top: 22px; }
.unavail { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding: 32px 24px; background: var(--bg-soft); }
.unavail .u-ic { width: 84px; height: 84px; border-radius: 26px; background: var(--bg); display: grid; place-items: center; margin-bottom: 22px; box-shadow: var(--shadow); color: var(--muted); }
.unavail h1 { font-size: 23px; max-width: 340px; }
.unavail p { color: var(--muted); max-width: 320px; font-size: 16px; }
.unavail .u-code { font-family: var(--mono); font-size: 12px; color: var(--faint); margin-top: 26px; }

/* ==========================================================================
   Pricing: monthly subscription + one-time onboarding & QR package
   ========================================================================== */
.price-grid.six { grid-template-columns: repeat(3, 1fr); row-gap: 34px; }
.price-card .p-label { font-size: 11.5px; font-weight: 800; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); margin-top: 14px; }
.price-card .p-price { margin-top: 4px; }
.price-card .p-price small:first-child { font-size: 15px; }
.price-card .p-approx { font-size: 13px; color: var(--muted); font-weight: 600; min-height: 20px; }
.price-card .p-once { background: var(--bg-soft); border-radius: 12px; padding: 4px 14px 12px; margin: 14px 0 18px; }
.price-card .p-once .p-label { margin-top: 10px; }
.price-card .p-once-price { font-size: 20px; font-weight: 800; letter-spacing: -.02em; margin-top: 4px; }
.price-card.popular .p-once { background: var(--brand-soft); }
.keep-note { display: flex; gap: 12px; align-items: center; justify-content: center; text-align: center; max-width: 760px; margin: 34px auto 0; padding: 14px 18px; border-radius: 14px; background: var(--bg-soft); color: var(--ink-2); font-weight: 600; font-size: 14.5px; }
.pkg { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; margin-top: 64px; padding: 36px; border-radius: 24px; border: 1px solid var(--line); background: var(--bg); }
.pkg .checklist { margin: 0; }
.extras { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; max-width: 760px; margin: 28px auto 0; }
.extra { border: 1px dashed var(--line-2); border-radius: 14px; padding: 14px 16px; display: grid; gap: 4px; }
.value-band { padding: 26px 0; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg); }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.value { display: flex; gap: 12px; align-items: flex-start; }
.value b { font-size: 16px; display: block; margin-bottom: 2px; }
.value .v-icon { width: 42px; height: 42px; border-radius: 12px; background: var(--ink); color: #fff; display: grid; place-items: center; flex: none; }
.compare th .tiny { font-weight: 600; text-transform: none; letter-spacing: 0; }
@media (max-width: 1080px) { .price-grid.six { grid-template-columns: repeat(2, 1fr); } .values { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 900px) { .price-grid.six { grid-template-columns: 1fr; } .pkg, .extras { grid-template-columns: 1fr; padding: 24px; } }
@media (max-width: 560px) { .values { grid-template-columns: 1fr; } }

/* ==========================================================================
   Multiple menus (dashboard menu bar + guest menu switcher)
   ========================================================================== */
.menu-bar { padding: 12px; margin-bottom: 16px; }
.menu-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; }
.mtab { flex: none; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; padding: 9px 14px; border-radius: 12px; border: 1px solid var(--line-2); background: var(--bg); cursor: pointer; text-align: start; font-family: inherit; }
.mtab b { font-size: 14px; }
.mtab small { font-size: 11.5px; color: var(--muted); font-weight: 600; white-space: nowrap; }
.mtab.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.mtab.on small { color: #A9B8C8; }
.mtab.off b { text-decoration: line-through; opacity: .7; }
.mtab.add { flex-direction: row; align-items: center; color: var(--brand); border-style: dashed; font-weight: 700; font-size: 13.5px; }
.mtab.locked { flex-direction: row; align-items: center; gap: 6px; color: var(--muted); border-style: dashed; cursor: default; font-size: 13px; font-weight: 600; }
.menu-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.menu-meta svg { vertical-align: -2px; }
.day-chip { position: relative; cursor: pointer; }
.day-chip input { position: absolute; opacity: 0; pointer-events: none; }
.day-chip span { display: inline-block; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-2); font-size: 13px; font-weight: 600; color: var(--muted); }
.day-chip input:checked + span { background: var(--brand-soft); border-color: var(--brand); color: var(--brand-ink); }
.cx-menus { display: flex; gap: 8px; overflow-x: auto; padding: 12px 16px 0; scrollbar-width: none; }
.cx-menus button { flex: none; border: 1.5px solid var(--line-2); background: var(--bg); padding: 7px 14px; border-radius: 12px; font-weight: 800; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.cx-menus button.on { border-color: var(--c-primary); color: var(--c-primary); background: color-mix(in srgb, var(--c-primary) 8%, #fff); }
.cx-hours { margin: 16px; padding: 18px; border-radius: 18px; background: var(--bg-soft); }
.cx-hours h3 { font-size: 17px; margin-bottom: 6px; }
.cx-hours .sum-row { font-size: 14px; }

/* ==========================================================================
   Languages
   ========================================================================== */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 8px 0 10px; border: 1px solid var(--line-2); border-radius: 10px; background: var(--bg); color: var(--ink-2); cursor: pointer; }
.lang-switch select { border: 0; background: transparent; font-weight: 600; font-size: 13.5px; cursor: pointer; outline: none; max-width: 120px; }
.lang-switch.on-dark { background: rgba(255,255,255,.14); border-color: rgba(255,255,255,.25); color: #fff; }
.lang-switch.on-dark select { color: #fff; }
.lang-switch.on-dark option { color: var(--ink); }
.cx-lang { position: absolute; top: 14px; inset-inline-end: 14px; z-index: 2; }
.cx-cover.minimal .lang-switch.on-dark { background: var(--bg-soft); border-color: var(--line); color: var(--ink); }
.cx-cover.minimal .lang-switch.on-dark select { color: var(--ink); }
.trans-row { border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; margin-bottom: 8px; background: var(--bg-softer); display: grid; gap: 8px; }
/* right-to-left languages (Arabic, Hebrew, Persian) */
[dir="rtl"] .checklist li, [dir="rtl"] .price-card ul li, [dir="rtl"] .feature ul li { padding-left: 0; padding-right: 30px; }
[dir="rtl"] .checklist li::before, [dir="rtl"] .price-card ul li::before { left: auto; right: 0; }
[dir="rtl"] .feature ul li::before { left: auto; right: 2px; }
[dir="rtl"] .cx-item .ci-add { right: auto; left: 6px; }
[dir="rtl"] .cx-item .ci-qty { left: auto; right: 6px; }
[dir="rtl"] .float-card.fc1, [dir="rtl"] .float-card.fc3 { left: auto; right: -30px; }
[dir="rtl"] .float-card.fc2 { right: auto; left: -24px; }
[dir="rtl"] .hero-cta .btn svg, [dir="rtl"] .cx-primary svg { transform: scaleX(-1); }
[dir="rtl"] .faq summary { text-align: right; }
[dir="rtl"] .table th, [dir="rtl"] .table td { text-align: right; }
[dir="rtl"] .table .right { text-align: left; }
@media (max-width: 900px) {
  [dir="rtl"] .side { left: auto; right: 0; transform: translateX(100%); }
  [dir="rtl"] .dash.side-open .side { transform: none; }
}
.kit-rows { display: grid; gap: 8px; }
.kit-row { display: flex; align-items: center; gap: 12px; padding: 8px 12px; border: 1px solid var(--line); border-radius: 12px; }
.kit-row .kr-l { flex: 1; font-weight: 600; font-size: 14px; }
.kit-row input { width: 90px; height: 38px; text-align: center; }

/* ==========================================================================
   Responsive
   ========================================================================== */
@media (max-width: 1080px) {
  .kpis { grid-template-columns: repeat(2, 1fr); }
  .page-grid, .brand-layout { grid-template-columns: 1fr; }
  .brand-preview { position: static; }
  .feature-grid { grid-template-columns: 1fr 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 900px) {
  .m-links, .m-cta .btn-ghost { display: none; }
  .m-burger { display: inline-grid; margin-left: auto; }
  .m-nav.open .m-links { display: flex; flex-direction: column; position: absolute; top: 68px; left: 0; right: 0; background: var(--bg); padding: 12px 16px 18px; border-bottom: 1px solid var(--line); box-shadow: var(--shadow); }
  .m-nav .inner { padding: 0 16px; gap: 12px; }
  .wrap { padding: 0 16px; }
  .section { padding: 64px 0; }
  .hero { padding: 40px 0 60px; }
  .hero-grid, .split, .solution-card, .demo-grid { grid-template-columns: 1fr; gap: 36px; }
  .split.rev > :first-child { order: 0; }
  .solution-card { padding: 24px; }
  .solution-card:nth-child(even) .sc-visual { order: 0; }
  .float-card.fc1 { left: 0; } .float-card.fc2 { right: 0; } .float-card.fc3 { left: 0; }
  .price-grid { grid-template-columns: 1fr; max-width: 440px; margin-left: auto; margin-right: auto; }
  .price-card.popular { transform: none; }
  .cta-band { flex-direction: column; align-items: flex-start; padding: 36px 26px; }
  .m-footer .f-grid { grid-template-columns: 1fr 1fr; }
  .auth { grid-template-columns: 1fr; }
  .auth-side { display: none; }
  .dash { grid-template-columns: 1fr; }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 80; transform: translateX(-100%); transition: transform .2s; box-shadow: var(--shadow-lg); }
  .dash.side-open .side { transform: none; }
  .dash.side-open::after { content: ''; position: fixed; inset: 0; background: rgba(11,27,43,.4); z-index: 70; }
  .side-toggle { display: inline-grid; }
  .topbar { padding: 0 16px; }
  .content { padding: 18px 16px 50px; }
  .sub-banner { margin: 14px 16px 0; }
  .kanban { grid-template-columns: 1fr; }
  .menu-layout { grid-template-columns: 1fr; }
  .plan-cards { grid-template-columns: 1fr; }
  .print-sheet { grid-template-columns: 1fr 1fr; }
  .demo-cards { grid-template-columns: 1fr; }
  .qr-flow { grid-template-columns: 1fr; }
  .qf-chain { padding-left: 0; padding-top: 18px; }
}
@media (max-width: 560px) {
  .feature-grid, .steps { grid-template-columns: 1fr; }
  .kpis { grid-template-columns: 1fr 1fr; gap: 10px; }
  .kpi .k-value { font-size: 21px; }
  .grid-2, .grid-3 { grid-template-columns: 1fr; }
  .phone { width: 270px; height: 550px; }
  .m-footer .f-grid { grid-template-columns: 1fr; }
  .topbar h1 { font-size: 16px; }
  .topbar .tb-right .hide-sm { display: none; }
  .hero-proof { gap: 12px; }
}
