/* Restpy design system
   Colors: Red / White / Black (configurable via --brand)
   Light mode default; dark mode toggled by [data-theme="dark"] on <html>. */

:root {
  --brand: #c62828;
  --brand-600: #b71c1c;
  --brand-50:  #ffebee;
  --black: #111111;
  --white: #ffffff;
  --bg:    #fafafa;
  --surface: #ffffff;
  --text:  #1a1a1a;
  --text-muted: #5f6368;
  --border: #e5e5e5;
  --shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.06);
  --radius: 10px;
  --radius-sm: 6px;
  --radius-lg: 18px;
  --success: #2e7d32;
  --warning: #ef6c00;
  --danger:  #c62828;
  --info:    #1565c0;
  --font:   -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

html[data-theme="dark"] {
  --bg:      #0e0e10;
  --surface: #17171a;
  --text:    #f2f2f2;
  --text-muted: #a0a0a7;
  --border:  #2b2b30;
  --shadow:  0 1px 2px rgba(0,0,0,.6), 0 12px 32px rgba(0,0,0,.5);
  --brand-50: #2a0e10;
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--bg); color: var(--text); font-family: var(--font); -webkit-font-smoothing: antialiased; }
body { min-height: 100vh; line-height: 1.55; font-size: 15px; }
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; display: block; }

/* ---------- Layout ---------- */
.container { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
.container-sm { max-width: 720px; margin: 0 auto; padding: 0 20px; }
.grid { display: grid; gap: 20px; }
.grid.cols-2 { grid-template-columns: 1fr 1fr; }
.grid.cols-3 { grid-template-columns: 1fr 1fr 1fr; }
.grid.cols-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .grid.cols-4 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 900px) { .grid.cols-2, .grid.cols-3 { grid-template-columns: 1fr; } }
@media (max-width: 600px) { .grid.cols-4 { grid-template-columns: 1fr 1fr; gap: 10px; } .stat { padding: 12px; } .stat .value { font-size: 22px; } }
.row { display: flex; gap: 16px; flex-wrap: wrap; }
.space { flex: 1; }

/* ---------- Nav ---------- */
.nav { background: var(--surface); border-bottom: 1px solid var(--border); padding: 14px 0; position: sticky; top: 0; z-index: 50; backdrop-filter: saturate(150%) blur(8px); }
.nav-inner { display: flex; align-items: center; gap: 20px; }
.nav .brand { font-weight: 800; font-size: 20px; color: var(--text); letter-spacing: -0.5px; }
.nav .brand .dot { color: var(--brand); }
.nav .links { display: flex; gap: 20px; margin-left: auto; align-items: center; flex-wrap: wrap; }
.nav .links a { color: var(--text); font-weight: 500; font-size: 14px; }
@media (max-width: 700px) {
  .nav .links { gap: 10px; }
  /* Old simple-nav ONLY: hide anchor links so the burger handles them.
     The mega-nav drawer (.nav-mega) has its own slide-in handling. */
  .nav:not(.nav-mega) .links a:not(.btn) { display: none; }
  .nav .brand { font-size: 18px; }
}

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 18px; font-size: 14px; font-weight: 600; border-radius: var(--radius-sm); border: 1px solid transparent; cursor: pointer; transition: transform .06s ease, background .15s ease, border-color .15s ease; font-family: var(--font); background: transparent; color: var(--text); }
.btn:hover { text-decoration: none; transform: translateY(-1px); }
/* Primary button: explicit white text in BOTH themes (some <button> UAs ignore
 * inherited text color so we hard-pin it). */
.btn-primary,
.btn-primary:link,
.btn-primary:visited,
button.btn-primary,
input[type=submit].btn-primary { background: var(--brand) !important; color: #fff !important; border-color: var(--brand) !important; }
.btn-primary:hover,
button.btn-primary:hover,
input[type=submit].btn-primary:hover { background: var(--brand-600) !important; color: #fff !important; border-color: var(--brand-600) !important; }
.btn-primary:active,
.btn-primary:focus { color: #fff !important; }
.btn-ghost { background: transparent; color: var(--text); border-color: var(--border); }
.btn-ghost:hover { border-color: var(--brand); color: var(--brand); }
.btn-dark { background: var(--black); color: #fff; }
.btn-sm { padding: 6px 12px; font-size: 13px; }
.btn-lg { padding: 14px 26px; font-size: 16px; }
.btn-block { width: 100%; }
.btn-danger, button.btn-danger { background: var(--danger) !important; color: #fff !important; border-color: var(--danger) !important; }
.btn-danger:hover, button.btn-danger:hover { color: #fff !important; }
.btn-success, button.btn-success { background: var(--success) !important; color: #fff !important; border-color: var(--success) !important; }
.btn-success:hover, button.btn-success:hover { color: #fff !important; }
.btn:disabled { opacity: .5; cursor: not-allowed; }

/* ---------- Cards & surfaces ---------- */
.card { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); }
.card-sm { padding: 14px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.stat { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 18px; }
.stat .label { color: var(--text-muted); font-size: 12px; font-weight: 600; text-transform: uppercase; letter-spacing: .5px; }
.stat .value { font-size: 26px; font-weight: 800; margin-top: 6px; color: var(--text); }

/* ---------- Forms ---------- */
.form-group { margin-bottom: 14px; }
.form-group label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; color: var(--text); }
.input, select, textarea { width: 100%; padding: 10px 12px; font-size: 14px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--surface); color: var(--text); font-family: inherit; }
.input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.input-group { position: relative; }
.input-group .eye { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); background: none; border: none; cursor: pointer; color: var(--text-muted); padding: 4px; }
.helper { font-size: 12px; color: var(--text-muted); margin-top: 4px; }
.error { color: var(--danger); font-size: 13px; margin-top: 4px; }

/* ---------- Tables ---------- */
.card { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); font-size: 14px; vertical-align: top; }
.table th { font-size: 12px; text-transform: uppercase; letter-spacing: .5px; color: var(--text-muted); white-space: nowrap; }
.table tr:hover td { background: var(--bg); }
@media (max-width: 700px) { .table th, .table td { padding: 8px 6px; font-size: 13px; } .table th { font-size: 11px; } }

/* ---------- Badges ---------- */
.badge { display: inline-block; padding: 3px 10px; border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; }
.badge-placed    { background: #e3f2fd; color: #1565c0; }
.badge-accepted  { background: #fff3e0; color: #ef6c00; }
.badge-preparing { background: #fff3e0; color: #ef6c00; }
.badge-ready     { background: #e8f5e9; color: #2e7d32; }
.badge-served    { background: #e0f7fa; color: #00838f; }
.badge-completed { background: #eeeeee; color: #555; }
.badge-cancelled { background: #ffebee; color: #c62828; }
.badge-on_the_way { background: #fff3e0; color: #ef6c00; }
.src-badge { display: inline-flex; align-items: center; gap: 4px; padding: 3px 9px; border-radius: 6px; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .3px; vertical-align: middle; }
.src-qr       { background: #fff5f5; color: #c62828; }
.src-manual   { background: #e3f2fd; color: #1565c0; }
.src-takeaway { background: #f3e5f5; color: #6a1b9a; }
.src-delivery { background: #e8f5e9; color: #2e7d32; }
.src-zomato   { background: #ffebee; color: #d32f2f; }
.src-swiggy   { background: #fff3e0; color: #e65100; }
.src-magicpin { background: #fce4ec; color: #ad1457; }
.src-dineout  { background: #e0f7fa; color: #00838f; }
.src-other    { background: #f5f5f5; color: #555; }
.badge-paid      { background: #e8f5e9; color: #2e7d32; }
.badge-pending   { background: #fff3e0; color: #ef6c00; }
html[data-theme="dark"] .badge-placed   { background: #0d2339; color: #90caf9; }
html[data-theme="dark"] .badge-accepted, html[data-theme="dark"] .badge-preparing { background: #2b1a00; color: #ffb74d; }
html[data-theme="dark"] .badge-ready, html[data-theme="dark"] .badge-paid   { background: #0f2910; color: #a5d6a7; }
html[data-theme="dark"] .badge-served   { background: #0a2527; color: #80deea; }
html[data-theme="dark"] .badge-completed { background: #252525; color: #ddd; }
html[data-theme="dark"] .badge-cancelled { background: #2a0e10; color: #ef9a9a; }

/* ========== MODERN MARKETING SITE ==========
   References: jamezz.com, grafterr.com. Image-rich, gradient-backed, lots of whitespace. */

.hero-modern {
  position: relative;
  padding: 72px 0 90px;
  overflow: hidden;
  background:
    radial-gradient(ellipse 800px 600px at 85% 20%, rgba(198, 40, 40, .12), transparent 60%),
    radial-gradient(ellipse 700px 500px at 15% 80%, rgba(198, 40, 40, .06), transparent 60%),
    var(--bg);
}
.hero-modern::before {
  content: ''; position: absolute; inset: 0;
  background-image: radial-gradient(circle at 1px 1px, rgba(0,0,0,.04) 1px, transparent 0);
  background-size: 32px 32px; opacity: .5; pointer-events: none;
}
html[data-theme="dark"] .hero-modern::before { background-image: radial-gradient(circle at 1px 1px, rgba(255,255,255,.05) 1px, transparent 0); }
.hero-modern .container { position: relative; z-index: 1; }
.hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
@media (max-width: 900px) { .hero-grid { grid-template-columns: 1fr; gap: 24px; } }

.hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; background: var(--surface); border: 1px solid var(--border); border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--text); margin-bottom: 24px; }
.hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--brand); animation: pulse 2s infinite; }
@keyframes pulse { 0%,100% { opacity: 1; } 50% { opacity: .35; } }

.hero-title { font-size: 64px; line-height: 1.04; margin: 0 0 22px; letter-spacing: -2.4px; font-weight: 800; }
.hero-title .accent { color: var(--brand); position: relative; }
.hero-title .accent::after { content: ''; position: absolute; left: 0; right: 0; bottom: 4%; height: 14px; background: var(--brand-50); z-index: -1; transform: skewX(-8deg); }
html[data-theme="dark"] .hero-title .accent::after { background: rgba(198,40,40,.25); }
.hero-sub { font-size: 19px; color: var(--text-muted); max-width: 540px; margin: 0 0 32px; line-height: 1.55; }
.hero-cta-row { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.hero-bullets { display: flex; gap: 24px; flex-wrap: wrap; margin-top: 28px; padding-top: 24px; border-top: 1px solid var(--border); font-size: 14px; color: var(--text-muted); }
.hero-bullets > div { display: flex; align-items: center; gap: 8px; }
@media (max-width: 900px) { .hero-title { font-size: 42px; letter-spacing: -1.5px; } .hero-sub { font-size: 16px; } }
@media (max-width: 600px) { .hero-title { font-size: 32px; letter-spacing: -1px; } .hero-modern { padding: 50px 0 60px; } }

/* Phone mockup — hand-built static menu, perfectly responsive at every size */
.phone-wrap { position: relative; display: flex; align-items: center; justify-content: center; min-height: 600px; padding: 20px 0; }
.phone-frame { position: relative; width: 320px; height: 640px; background: #1a1a1a; border-radius: 44px; padding: 14px; box-shadow: 0 30px 80px rgba(0,0,0,.25), 0 10px 30px rgba(0,0,0,.08); }
.phone-frame::before { content: ''; position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 100px; height: 24px; background: #000; border-radius: 14px; z-index: 2; }
.phone-frame .phone-screen { position: relative; width: 100%; height: 100%; border-radius: 30px; overflow: hidden; background: #fff; }

.menu-mock { font-family: var(--font); color: #1a1a1a; font-size: 12px; line-height: 1.4; height: 100%; position: relative; }
.menu-mock .mm-hero { background: linear-gradient(135deg, #c62828, #b71c1c); color: #fff; padding: 38px 14px 14px; }
.menu-mock .mm-hero-row { display: flex; align-items: center; gap: 6px; }
.menu-mock .mm-logo { background: #fff; color: #c62828; font-weight: 800; font-size: 11px; padding: 4px 8px; border-radius: 6px; }
.menu-mock .mm-pick { background: rgba(255,255,255,.18); border-radius: 5px; padding: 3px 6px; font-size: 9px; font-weight: 600; color: #fff; }
.menu-mock .mm-title { font-size: 16px; font-weight: 800; margin-top: 10px; letter-spacing: -.3px; }
.menu-mock .mm-sub { font-size: 10px; opacity: .85; margin-top: 1px; }
.menu-mock .mm-body { padding: 10px 12px; background: #fafafa; height: calc(100% - 90px); overflow: hidden; }
.menu-mock .mm-chips { display: flex; gap: 4px; flex-wrap: wrap; margin-bottom: 8px; }
.menu-mock .mm-chip { font-size: 8.5px; font-weight: 600; padding: 4px 8px; border-radius: 999px; background: #fff; border: 1px solid #e0e0e0; color: #555; white-space: nowrap; }
.menu-mock .mm-banner { background: linear-gradient(135deg, #ffe6e6, #fff); border-left: 3px solid #c62828; border-radius: 8px; padding: 8px 10px; font-size: 9.5px; margin-bottom: 10px; }
.menu-mock .mm-banner b { font-size: 10.5px; }
.menu-mock .mm-cat { font-size: 12px; font-weight: 800; margin: 8px 0 6px; }
.menu-mock .mm-item { background: #fff; border: 1px solid #eee; border-radius: 8px; padding: 8px; display: flex; gap: 8px; margin-bottom: 6px; }
.menu-mock .mm-thumb { width: 50px; height: 50px; border-radius: 6px; flex-shrink: 0; display: flex; align-items: center; justify-content: center; font-size: 22px; }
.menu-mock .mm-thumb.t1 { background: linear-gradient(135deg, #ffe0b2, #ffcc80); }
.menu-mock .mm-thumb.t2 { background: linear-gradient(135deg, #ffcdd2, #ef9a9a); }
.menu-mock .mm-thumb.t3 { background: linear-gradient(135deg, #c8e6c9, #a5d6a7); }
.menu-mock .mm-veg-dot { display: inline-block; width: 9px; height: 9px; border: 1.5px solid #2e7d32; padding: 1px; vertical-align: middle; margin-right: 3px; box-sizing: content-box; }
.menu-mock .mm-veg-dot::after { content: ''; display: block; width: 100%; height: 100%; background: #2e7d32; border-radius: 50%; }
.menu-mock .mm-veg-dot.non { border-color: #c62828; }
.menu-mock .mm-veg-dot.non::after { background: #c62828; }
.menu-mock .mm-name { font-weight: 700; font-size: 10.5px; }
.menu-mock .mm-desc { color: #888; font-size: 8.5px; margin-top: 1px; line-height: 1.3; }
.menu-mock .mm-row2 { display: flex; align-items: center; gap: 6px; margin-top: 4px; font-size: 9.5px; }
.menu-mock .mm-price { font-weight: 800; color: #c62828; font-size: 11px; }
.menu-mock .mm-time { color: #888; }
.menu-mock .mm-add { margin-left: auto; background: #c62828; color: #fff; border-radius: 5px; padding: 3px 8px; font-size: 9px; font-weight: 700; }
.menu-mock .mm-cart { position: absolute; bottom: 0; left: 0; right: 0; background: #c62828; color: #fff; padding: 10px 14px; display: flex; align-items: center; gap: 10px; font-size: 11px; }
.menu-mock .mm-cart strong { font-size: 12px; }
.menu-mock .mm-cart-cta { margin-left: auto; background: #fff; color: #c62828; padding: 5px 10px; border-radius: 5px; font-weight: 800; font-size: 10px; }

/* Floating cards around the phone */
.phone-floats { position: absolute; inset: 0; pointer-events: none; z-index: 3; }
.phone-floats .float-card { position: absolute; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; padding: 10px 14px; box-shadow: 0 12px 30px rgba(0,0,0,.12); font-size: 12px; line-height: 1.45; max-width: 200px; }
.phone-floats .fc-1 { top: 10%; right: -10px; }
.phone-floats .fc-2 { bottom: 12%; left: -10px; }

@media (max-width: 1100px) { .phone-floats .fc-1 { right: -10px; } .phone-floats .fc-2 { left: -10px; } }
@media (max-width: 900px) {
  .phone-wrap { min-height: 540px; }
  .phone-frame { width: 280px; height: 560px; }
  .phone-floats { display: none; }
}
@media (max-width: 480px) {
  .phone-frame { width: 260px; height: 520px; }
  .phone-wrap { min-height: 500px; }
  .menu-mock { font-size: 11px; }
}

/* Hero metric strip */
.metric-strip { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; margin-top: 48px; padding: 28px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.metric-strip .metric { text-align: center; }
.metric-strip .metric .num { font-size: 36px; font-weight: 800; letter-spacing: -1px; color: var(--text); }
.metric-strip .metric .lbl { font-size: 13px; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; margin-top: 4px; }
@media (max-width: 700px) { .metric-strip { grid-template-columns: 1fr 1fr; gap: 20px; } .metric-strip .metric .num { font-size: 28px; } }

/* Channels grid */
.channel-card { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease; cursor: pointer; height: 100%; }
.channel-card:hover { transform: translateY(-4px); border-color: var(--brand); box-shadow: 0 16px 40px rgba(0,0,0,.08); }
.channel-card .icon-box { width: 56px; height: 56px; border-radius: 14px; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; font-size: 28px; margin-bottom: 18px; }
.channel-card h3 { font-size: 20px; margin: 0 0 8px; letter-spacing: -.3px; }
.channel-card p { color: var(--text-muted); margin: 0 0 16px; font-size: 14px; line-height: 1.55; }
.channel-card .arrow { color: var(--brand); font-weight: 600; font-size: 14px; display: inline-flex; align-items: center; gap: 4px; }

/* Feature blocks (alternating) */
.feature-block { padding: 80px 0; border-top: 1px solid var(--border); }
.feature-block .container { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: center; }
.feature-block.reverse .feature-text { order: 2; }
.feature-block .label { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--brand); margin-bottom: 14px; }
.feature-block h2 { font-size: 38px; line-height: 1.15; letter-spacing: -1px; margin: 0 0 18px; font-weight: 800; }
.feature-block p { font-size: 17px; color: var(--text-muted); line-height: 1.6; margin: 0 0 24px; }
.feature-block ul.checks { list-style: none; padding: 0; margin: 0 0 28px; }
.feature-block ul.checks li { display: flex; align-items: flex-start; gap: 12px; padding: 8px 0; font-size: 15px; }
.feature-block ul.checks li::before { content: '✓'; flex-shrink: 0; width: 22px; height: 22px; background: var(--brand-50); color: var(--brand); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 12px; margin-top: 2px; }
.feature-visual {
  position: relative;
  /* v6.2: soft brand gradient placeholder so the slot is never blank
   * while a slow SVG/image is in flight. Once the img paints, it sits
   * on top of the gradient cleanly. */
  background: linear-gradient(135deg, var(--brand-50) 0%, #fff5f5 100%);
  border-radius: 18px;
  padding: 8px;
  min-height: 280px;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.feature-visual img {
  max-width: 100%; height: auto;
  border-radius: 14px;
  display: block;
}
@media (max-width: 900px) {
  .feature-block { padding: 50px 0; }
  .feature-block .container { grid-template-columns: 1fr; gap: 30px; }
  .feature-block.reverse .feature-text { order: 0; }
  .feature-block h2 { font-size: 28px; }
}

/* Industries grid */
.industry-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.industry-card { aspect-ratio: 1; border-radius: 14px; background: var(--surface); border: 1px solid var(--border); display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px; text-align: center; transition: all .2s ease; }
.industry-card:hover { border-color: var(--brand); background: var(--brand-50); transform: translateY(-2px); }
.industry-card .ico { font-size: 32px; margin-bottom: 8px; }
.industry-card .nm { font-size: 12px; font-weight: 600; }
@media (max-width: 900px) { .industry-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px) { .industry-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; } .industry-card .ico { font-size: 24px; } .industry-card .nm { font-size: 11px; } }

/* Testimonials */
.testimonial { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 28px; height: 100%; display: flex; flex-direction: column; }
.testimonial .stars { color: #f5b400; font-size: 16px; margin-bottom: 14px; }
.testimonial .quote { font-size: 16px; line-height: 1.6; color: var(--text); margin-bottom: 18px; font-weight: 500; flex: 1; }
.testimonial .who { display: flex; align-items: center; gap: 12px; }
.testimonial .avatar { width: 44px; height: 44px; border-radius: 50%; background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; display: flex; align-items: center; justify-content: center; font-weight: 800; flex-shrink: 0; }
.testimonial .who .name { font-weight: 700; font-size: 14px; }
.testimonial .who .role { font-size: 12px; color: var(--text-muted); }

/* Logo wall */
.logo-wall { display: grid; grid-template-columns: repeat(6, 1fr); gap: 30px; align-items: center; opacity: .6; padding: 24px 0; }
.logo-wall > div { text-align: center; font-weight: 800; font-size: 18px; letter-spacing: -.3px; color: var(--text); font-style: italic; }
@media (max-width: 700px) { .logo-wall { grid-template-columns: repeat(3, 1fr); gap: 20px; } }

/* FAQ */
.faq-item { background: var(--surface); border: 1px solid var(--border); border-radius: 12px; margin-bottom: 10px; overflow: hidden; }
.faq-item summary { padding: 18px 22px; cursor: pointer; font-weight: 600; font-size: 16px; list-style: none; display: flex; align-items: center; gap: 12px; }
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::before { content: '+'; width: 24px; height: 24px; background: var(--brand-50); color: var(--brand); border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 14px; transition: transform .2s ease; flex-shrink: 0; }
.faq-item[open] summary::before { content: '−'; }
.faq-item .answer { padding: 0 22px 18px 58px; color: var(--text-muted); font-size: 15px; line-height: 1.6; }

/* CTA strip */
.cta-strip { background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; padding: 60px 0; border-radius: 24px; margin: 60px 20px; }
.cta-strip .container-sm { text-align: center; }
.cta-strip h2 { color: #fff; font-size: 38px; letter-spacing: -1px; margin: 0 0 14px; }
.cta-strip p { color: rgba(255,255,255,.85); font-size: 17px; max-width: 540px; margin: 0 auto 28px; }
.cta-strip .btn-primary { background: #fff; color: var(--brand); }
.cta-strip .btn-primary:hover { background: rgba(255,255,255,.9); color: var(--brand); }
.cta-strip .btn-ghost { color: #fff; border-color: rgba(255,255,255,.4); }
.cta-strip .btn-ghost:hover { color: #fff; border-color: #fff; }
@media (max-width: 700px) { .cta-strip h2 { font-size: 26px; } .cta-strip { margin: 40px 12px; padding: 40px 20px; } }

/* Section helpers */
.section-eyebrow { display: inline-block; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 1.2px; color: var(--brand); margin-bottom: 12px; }

/* Legacy hero (kept for any other page using it) */
.hero { padding: 72px 0; text-align: left; }
.hero h1 { font-size: 52px; line-height: 1.1; margin: 0 0 18px; letter-spacing: -1.5px; }
.hero h1 .accent { color: var(--brand); }
.hero p.sub { font-size: 18px; color: var(--text-muted); max-width: 560px; margin: 0 0 28px; }
.hero .cta-row { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-visual { display:flex; align-items:center; justify-content:center; }
.hero-visual img { max-width: 420px; width: 100%; height: auto; }
@media (max-width: 900px) { .hero h1 { font-size: 36px; } .hero p.sub { font-size: 16px; } .hero { padding: 32px 0; } .hero-visual img { max-width: 280px; } }
@media (max-width: 600px) { .hero h1 { font-size: 28px; letter-spacing: -1px; } .section { padding: 40px 0; } .section h2 { font-size: 26px; } }
.section { padding: 72px 0; }
.section h2 { font-size: 34px; margin: 0 0 16px; letter-spacing: -0.8px; }
.section .lead { color: var(--text-muted); max-width: 720px; margin-bottom: 32px; font-size: 17px; }
.pricing { border: 2px solid var(--border); border-radius: var(--radius-lg); padding: 28px; background: var(--surface); }
.pricing.featured { border-color: var(--brand); transform: translateY(-6px); }
.pricing .price { font-size: 42px; font-weight: 800; margin: 8px 0 4px; }
.pricing .price small { font-size: 14px; color: var(--text-muted); font-weight: 500; }
.pricing ul { list-style: none; padding: 0; margin: 18px 0; }
.pricing li { padding: 6px 0; color: var(--text-muted); }
.pricing li::before { content: "✓  "; color: var(--brand); font-weight: 800; }

/* ---------- Footer ---------- */
.footer { background: var(--black); color: #bbb; padding: 40px 0 24px; margin-top: 60px; }
.footer a { color: #fff; }
.footer .columns { display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
@media (max-width: 760px) { .footer .columns { grid-template-columns: 1fr; } }
.footer .copyright { border-top: 1px solid #2a2a2a; padding-top: 18px; font-size: 13px; text-align: center; }

/* ---------- Theme toggle ---------- */
.theme-toggle { background: transparent; border: 1px solid var(--border); border-radius: 999px; width: 38px; height: 38px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; color: var(--text); }
.theme-toggle:hover { border-color: var(--brand); color: var(--brand); }

/* ---------- Dashboard shell ---------- */
.dash { display: grid; grid-template-columns: 240px 1fr; min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--border); padding: 20px 14px; overflow-y: auto; }
.sidebar .logo { font-weight: 800; font-size: 18px; margin-bottom: 20px; color: var(--text); }
.sidebar .logo .dot { color: var(--brand); }
.sidebar nav a { display: flex; align-items: center; gap: 10px; padding: 10px 12px; color: var(--text); border-radius: 8px; font-size: 14px; font-weight: 500; margin-bottom: 2px; }
.sidebar nav a:hover { background: var(--bg); text-decoration: none; }
.sidebar nav a.active { background: var(--brand-50); color: var(--brand); font-weight: 600; }
.main { padding: 24px 32px; overflow-x: auto; min-width: 0; }
.topbar { display: flex; align-items: center; gap: 14px; margin-bottom: 24px; }
.topbar h1 { margin: 0; font-size: 24px; }

/* Mobile sidebar = drawer (slides in from the RIGHT — matches the public nav) */
.menu-burger { display: none; background: transparent; border: 1px solid var(--border); border-radius: 8px; width: 40px; height: 40px; align-items: center; justify-content: center; cursor: pointer; color: var(--text); }
.menu-burger:hover { border-color: var(--brand); color: var(--brand); }
.menu-burger .mb-icon-close { display: none; }
.sidebar-backdrop { display: none; position: fixed; inset: 0; background: rgba(0,0,0,.5); z-index: 99; }

@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; }
  .sidebar {
    position: fixed; top: 0; right: 0; bottom: 0; left: auto;
    width: min(280px, 86vw); z-index: 100;
    transform: translateX(100%); transition: transform .25s cubic-bezier(.2,.6,.2,1);
    box-shadow: -16px 0 40px rgba(0,0,0,.18);
    border-right: 0; border-left: 1px solid var(--border);
  }
  .sidebar.open { transform: translateX(0); }
  .sidebar-backdrop.show { display: block; }
  body.sidebar-open { overflow: hidden; }
  .menu-burger { display: inline-flex; }
  .menu-burger.is-open .mb-icon-open { display: none; }
  .menu-burger.is-open .mb-icon-close { display: block; }
  .main { padding: 16px; }
  .topbar h1 { font-size: 20px; }
}

/* ---------- Kiosk mode (iPad, full-screen, large touch targets) ---------- */
.kiosk { font-size: 18px; }
.kiosk .menu-hero { padding: 40px 32px 48px; }
.kiosk .menu-hero h1 { font-size: 36px; }
.kiosk .menu-item { padding: 22px; gap: 22px; border-width: 2px; }
.kiosk .menu-item .thumb { width: 140px; height: 140px; border-radius: 14px; }
.kiosk .menu-item .name { font-size: 22px; }
.kiosk .menu-item .desc { font-size: 16px; }
.kiosk .menu-item .price { font-size: 22px; }
.kiosk .menu-item .qty button { width: 48px; height: 48px; font-size: 24px; }
.kiosk .menu-item .qty .qty-val { font-size: 20px; min-width: 28px; text-align: center; }
.kiosk .btn-sm { padding: 12px 18px; font-size: 16px; }
.kiosk .cart-bar { padding: 22px 32px; font-size: 18px; }
.kiosk .cart-bar button { padding: 16px 24px; font-size: 18px; }
@media (max-width: 900px) { .kiosk .menu-item .thumb { width: 100px; height: 100px; } }

/* ---------- Customer menu ---------- */
.menu-hero { background: linear-gradient(135deg, var(--brand), var(--brand-600)); color: #fff; padding: 28px 20px 36px; }
.menu-hero h1 { margin: 0 0 4px; font-size: 24px; }
.menu-hero p { margin: 0; opacity: .85; font-size: 14px; }
.menu-item { background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 14px; display: flex; gap: 14px; margin-bottom: 12px; }
.menu-item .thumb { width: 90px; height: 90px; border-radius: 10px; background: var(--bg); flex-shrink: 0; object-fit: cover; }
@media (max-width: 480px) { .menu-item .thumb { width: 70px; height: 70px; } .menu-item { padding: 10px; gap: 10px; } .menu-item .name { font-size: 15px; } .menu-item .desc { font-size: 12px; } }
.menu-item .info { flex: 1; }
.menu-item .name { font-weight: 700; font-size: 16px; margin-bottom: 2px; }
.menu-item .desc { color: var(--text-muted); font-size: 13px; margin-bottom: 8px; }
.menu-item .meta { display: flex; gap: 10px; font-size: 13px; color: var(--text-muted); align-items: center; }
.menu-item .price { font-weight: 800; color: var(--brand); font-size: 16px; }
.menu-item .qty { display: flex; align-items: center; gap: 8px; }
.menu-item .qty button { width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--border); background: var(--surface); font-weight: 700; color: var(--text); cursor: pointer; }
.veg-dot { display: inline-block; width: 12px; height: 12px; border: 2px solid #2e7d32; padding: 1px; }
.veg-dot.non { border-color: #c62828; }
.veg-dot span { display: block; width: 100%; height: 100%; background: #2e7d32; border-radius: 50%; }
.veg-dot.non span { background: #c62828; }

.cart-bar { position: sticky; bottom: 0; background: var(--brand); color: #fff; padding: 16px 20px; display: flex; align-items: center; gap: 12px; box-shadow: 0 -4px 20px rgba(0,0,0,.1); }
.cart-bar .count { font-weight: 700; }
.cart-bar button { margin-left: auto; background: #fff; color: var(--brand); border: none; padding: 10px 18px; border-radius: var(--radius-sm); font-weight: 700; cursor: pointer; }

/* ---------- Auth pages ---------- */
.auth-wrap { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 20px; }
.auth-card { width: 100%; max-width: 420px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow); }
.auth-card h1 { margin: 0 0 6px; font-size: 26px; }
.auth-card .sub { color: var(--text-muted); margin: 0 0 24px; font-size: 14px; }
.auth-card .captcha-q { background: var(--bg); padding: 10px 14px; border-radius: var(--radius-sm); font-family: ui-monospace, monospace; font-weight: 700; display: inline-block; }
.auth-card .footer-link { text-align: center; margin-top: 16px; font-size: 13px; color: var(--text-muted); }

/* ---------- Alerts ---------- */
.alert { padding: 12px 14px; border-radius: var(--radius-sm); margin-bottom: 14px; font-size: 14px; }
.alert-success { background: #e8f5e9; color: #1b5e20; border: 1px solid #c8e6c9; }
.alert-danger  { background: #ffebee; color: #b71c1c; border: 1px solid #ffcdd2; }
.alert-info    { background: #e3f2fd; color: #0d47a1; border: 1px solid #bbdefb; }
html[data-theme="dark"] .alert-success { background: #0f2910; color: #a5d6a7; border-color: #1b5e20; }
html[data-theme="dark"] .alert-danger  { background: #2a0e10; color: #ef9a9a; border-color: #5d1a1a; }
html[data-theme="dark"] .alert-info    { background: #0d2339; color: #90caf9; border-color: #1565c0; }

.pill { display: inline-block; padding: 3px 8px; background: var(--brand-50); color: var(--brand); border-radius: 999px; font-size: 11px; font-weight: 700; text-transform: uppercase; }
.muted { color: var(--text-muted); }
.center { text-align: center; }
.hide { display: none !important; }
.mt-2 { margin-top: 8px; } .mt-3 { margin-top: 16px; } .mt-4 { margin-top: 24px; }
.mb-2 { margin-bottom: 8px; } .mb-3 { margin-bottom: 16px; } .mb-4 { margin-bottom: 24px; }
.flex { display: flex; gap: 10px; align-items: center; }

/* ---------- v4.0 mega menu ---------- */
.nav-mega .nav-item { position: relative; }
.nav-mega .nav-link { color: var(--text); font-weight: 500; font-size: 14px; cursor: pointer; padding: 6px 0; }
/* JS-driven open state with a ~2s close-delay so users can comfortably move
 * into the panel without it snapping shut.  Keyboard focus also opens it. */
.nav-mega .has-mega.is-open > .mega-panel,
.nav-mega .has-mega:focus-within > .mega-panel { display: block; }
.mega-panel {
  display: none; position: absolute; top: calc(100% + 12px); left: 50%; transform: translateX(-50%);
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0,0,0,.18); padding: 22px; width: min(820px, 92vw); z-index: 60;
}
.mega-panel::before { content: ''; position: absolute; top: -8px; left: 50%; transform: translateX(-50%) rotate(45deg); width: 14px; height: 14px; background: var(--surface); border-left: 1px solid var(--border); border-top: 1px solid var(--border); }
.mega-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mega-card { display: flex; gap: 12px; padding: 10px; border-radius: 10px; transition: background .15s; align-items: center; color: var(--text); }
.mega-card:hover { background: var(--brand-50); }
.mega-card img { width: 64px; height: 56px; object-fit: cover; border-radius: 8px; flex-shrink: 0; }
.mega-card .mega-thumb-fallback { width: 64px; height: 56px; background: var(--brand-50); display: flex; align-items: center; justify-content: center; border-radius: 8px; font-size: 24px; flex-shrink: 0; }
.mega-card .mega-title { font-weight: 700; font-size: 14px; margin-bottom: 2px; }
.mega-card .mega-sub { font-size: 12px; color: var(--text-muted); line-height: 1.3; }

.nav-burger {
  display: none; background: none; border: none;
  color: var(--text); cursor: pointer; padding: 6px;
  margin-left: auto;          /* RIGHT-aligned on mobile */
  z-index: 56;
}
.nav-burger-icon-close { display: none; }
.nav-backdrop { display: none; }

@media (max-width: 980px) {
  .nav-burger { display: inline-flex; align-items: center; justify-content: center; }
  body.nav-open .nav-burger-icon-open  { display: none; }
  body.nav-open .nav-burger-icon-close { display: block; }

  /* Slide-in drawer from the RIGHT */
  .nav-mega .links {
    display: flex !important;
    position: fixed !important; top: 0 !important; right: 0 !important; bottom: 0 !important; left: auto !important;
    width: min(320px, 86vw) !important; height: 100vh !important;
    flex-direction: column !important; align-items: stretch !important; flex-wrap: nowrap !important;
    padding: 80px 18px 22px !important; gap: 6px !important; margin: 0 !important;
    background: var(--surface); border-left: 1px solid var(--border);
    box-shadow: -16px 0 40px rgba(0,0,0,.18);
    overflow-y: auto;
    transform: translateX(100%);
    transition: transform .25s cubic-bezier(.2,.6,.2,1);
    z-index: 55;
  }
  body.nav-open .nav-mega .links { transform: translateX(0); }

  /* Backdrop appears under the drawer when open */
  .nav-backdrop {
    display: block; position: fixed; inset: 0;
    background: rgba(0,0,0,.45); z-index: 54;
    opacity: 0; pointer-events: none;
    transition: opacity .2s ease;
  }
  body.nav-open .nav-backdrop { opacity: 1; pointer-events: auto; }

  /* Disable body scroll while drawer open */
  body.nav-open { overflow: hidden; }

  /* Each mega-panel collapses inline as a section */
  .mega-panel { position: static; transform: none; width: auto; box-shadow: none; padding: 8px 0; border: none; }
  .mega-panel::before { display: none; }
  .mega-grid { grid-template-columns: 1fr; }
  .nav-mega .has-mega .mega-panel { display: block; }
}

/* ---------- v4.0 CMS pages ---------- */
.cms-hero {
  position: relative; min-height: 360px; padding: 96px 0 72px; color: #fff;
  background-color: var(--brand); background-size: cover; background-position: center;
  display: flex; align-items: center;
}
.cms-hero h1 { font-size: clamp(32px, 5vw, 52px); margin: 12px 0 14px; line-height: 1.1; max-width: 800px; }
.cms-hero .cms-hero-sub { font-size: clamp(16px, 2vw, 20px); opacity: .92; max-width: 720px; line-height: 1.5; }
.cms-hero .hero-eyebrow { display: inline-flex; align-items: center; gap: 8px; background: rgba(255,255,255,.18); border: 1px solid rgba(255,255,255,.3); color: #fff; padding: 6px 12px; border-radius: 999px; font-size: 12px; font-weight: 600; }
.cms-hero .hero-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #fff; display: inline-block; }

.cms-body { padding: 64px 0 96px; }
.container.narrow { max-width: 820px; }
.prose { font-size: 17px; line-height: 1.75; color: var(--text); }
.prose h2 { font-size: 26px; margin: 36px 0 14px; font-weight: 800; color: var(--text); }
.prose h3 { font-size: 20px; margin: 28px 0 10px; font-weight: 700; }
.prose p { margin: 0 0 16px; }
.prose ul, .prose ol { margin: 0 0 18px; padding-left: 26px; }
.prose ul li, .prose ol li { margin-bottom: 6px; }
.prose a { color: var(--brand); text-decoration: underline; }
.prose code { background: var(--bg); padding: 2px 6px; border-radius: 4px; font-size: 90%; }
.prose strong { color: var(--text); font-weight: 700; }
.prose em { color: var(--text-muted); }
.prose hr { border: none; border-top: 1px solid var(--border); margin: 32px 0; }
.contact-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 22px; margin: 28px 0; }
.contact-grid h3 { font-size: 16px; margin: 0 0 8px; }
.contact-grid p { margin: 0; font-size: 14px; line-height: 1.6; }

/* ========== v4.2 — Footer rebuild ========== */
.footer-v2 { background: #0f1115; color: #c8cdd5; padding: 56px 0 22px; margin-top: 80px; }
.footer-v2 .container { padding: 0 24px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.4fr; gap: 48px; }
@media (max-width: 980px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; } }
@media (max-width: 540px) { .footer-grid { grid-template-columns: 1fr; gap: 30px; } }

.footer-col-brand .footer-logo { font-weight: 800; font-size: 26px; color: #fff; letter-spacing: -0.5px; margin-bottom: 12px; }
.footer-col-brand .footer-logo .dot { color: var(--brand); }
.footer-col-brand .footer-desc { font-size: 14px; line-height: 1.7; color: #9ca3af; max-width: 380px; margin: 0 0 20px; }
.footer-col-brand .footer-desc a { color: #fff; text-decoration: underline; }

.footer-socials { display: flex; gap: 10px; }
.footer-socials a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 38px; height: 38px; border-radius: 10px;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.08);
  color: #c8cdd5; transition: all .15s ease;
}
.footer-socials a:hover { background: var(--brand); border-color: var(--brand); color: #fff; transform: translateY(-2px); }

.footer-heading {
  font-weight: 700; color: #fff; font-size: 13px; letter-spacing: .12em;
  text-transform: uppercase; margin-bottom: 18px;
}
.footer-col ul { list-style: none; padding: 0; margin: 0; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a { color: #9ca3af; font-size: 14px; transition: color .15s; }
.footer-col ul li a:hover { color: #fff; }

.footer-contact li { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 12px; color: #9ca3af; font-size: 14px; line-height: 1.5; }
.footer-contact li svg { flex-shrink: 0; margin-top: 3px; opacity: .7; }
.footer-contact li a { color: #9ca3af; }
.footer-contact li a:hover { color: #fff; }

.footer-cta-buttons { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; }
.footer-btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 14px; border-radius: 8px; font-size: 13px; font-weight: 600;
  background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.12);
  color: #fff; transition: all .15s ease;
}
.footer-btn:hover { background: var(--brand); border-color: var(--brand); transform: translateX(2px); }
.footer-btn-icon { font-size: 14px; }

.footer-divider { border: 0; border-top: 1px solid rgba(255,255,255,.08); margin: 40px 0 18px; }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; font-size: 13px; color: #6b7280; }
.footer-bottom a { color: #fff; text-decoration: underline; }
@media (max-width: 540px) { .footer-bottom { flex-direction: column; text-align: center; } }

/* Wider mega-panel for Solutions (15 verticals — needs 3 columns × 5 rows) */
.mega-panel-wide { width: min(1100px, 96vw); padding: 18px 22px; }
.mega-grid-3col { grid-template-columns: repeat(3, 1fr); gap: 8px; max-height: 70vh; overflow-y: auto; }
.mega-grid-3col .mega-card { padding: 8px; }
.mega-grid-3col .mega-card img { width: 56px; height: 50px; }
.mega-grid-3col .mega-card .mega-title { font-size: 13px; }
.mega-grid-3col .mega-card .mega-sub { font-size: 11px; }
@media (max-width: 980px) {
  .mega-panel-wide { width: auto; }
  .mega-grid-3col { grid-template-columns: 1fr; max-height: none; }
}

/* ========== v4.2 — Apex page styling ========== */
.apex-badge-row {
  display: flex; align-items: center; gap: 16px; flex-wrap: wrap;
  margin: 28px 0 36px; padding: 16px 22px;
  background: linear-gradient(135deg, #fff5f5, #fee2e2);
  border: 1px solid var(--brand); border-radius: 12px;
}
.apex-tier-badge {
  background: linear-gradient(135deg, #c62828, #ef4444); color: #fff;
  padding: 8px 16px; border-radius: 999px; font-weight: 800; font-size: 14px;
  letter-spacing: .04em; box-shadow: 0 4px 12px rgba(198, 40, 40, .25);
}
.apex-tier-sub { color: var(--brand); font-weight: 600; font-size: 14px; }

.apex-feature-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px;
  margin: 24px 0 36px;
}
@media (max-width: 720px) { .apex-feature-grid { grid-template-columns: 1fr; } }
.apex-feature-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
  padding: 22px; transition: all .15s ease;
}
.apex-feature-card:hover {
  border-color: var(--brand); box-shadow: 0 12px 28px rgba(198, 40, 40, 0.12);
  transform: translateY(-2px);
}
.apex-feature-icon { font-size: 32px; margin-bottom: 10px; line-height: 1; }
.apex-feature-card h3 {
  margin: 0 0 8px; font-size: 17px; font-weight: 700;
  color: var(--text);
}
.apex-feature-card p { margin: 0; font-size: 14px; line-height: 1.6; color: var(--text-muted); }

.apex-booking-box {
  margin-top: 32px; padding: 24px; border-radius: 14px;
  background: var(--brand-50); border: 1px solid var(--brand);
}
.apex-booking-box h3 { margin-top: 0; color: var(--brand); }

/* ========== v4.2 — Home: client logos, order modes, no-hidden-charges ========== */
.client-logo-grid {
  display: grid; grid-template-columns: repeat(8, 1fr); gap: 14px;
}
@media (max-width: 1100px) { .client-logo-grid { grid-template-columns: repeat(4, 1fr); } }
@media (max-width: 600px)  { .client-logo-grid { grid-template-columns: repeat(2, 1fr); } }
.client-logo-card {
  position: relative; aspect-ratio: 1.25 / 1; border-radius: 10px; overflow: hidden;
  background: var(--bg); border: 1px solid var(--border);
}
.client-logo-card img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .35s ease; }
.client-logo-card:hover img { transform: scale(1.06); }
.client-logo-overlay {
  position: absolute; inset: auto 0 0 0;
  background: linear-gradient(to top, rgba(0,0,0,.85), transparent);
  padding: 24px 12px 10px; color: #fff;
}
.client-logo-name { font-weight: 700; font-size: 13px; }
.client-logo-city { font-size: 11px; opacity: .85; }

/* Order Anywhere section (Apex feature) */
.order-anywhere-section { padding: 80px 0; background: linear-gradient(180deg, var(--bg), var(--surface)); }
.order-mode-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
@media (max-width: 980px) { .order-mode-grid { grid-template-columns: 1fr; } }
.order-mode-card {
  background: var(--surface); border: 1px solid var(--border); border-radius: 18px;
  padding: 28px; transition: all .15s ease; position: relative;
}
.order-mode-card:hover {
  border-color: var(--brand); box-shadow: 0 16px 40px rgba(198, 40, 40, .12); transform: translateY(-3px);
}
.order-mode-card-featured {
  border-color: var(--brand); box-shadow: 0 12px 28px rgba(198, 40, 40, .12); position: relative;
}
.order-mode-card-featured::before {
  content: 'MOST USED'; position: absolute; top: -10px; left: 24px;
  background: var(--brand); color: #fff; font-size: 10px; font-weight: 800;
  letter-spacing: .08em; padding: 4px 10px; border-radius: 4px;
}
.order-mode-icon {
  width: 60px; height: 60px; border-radius: 14px; display: flex;
  align-items: center; justify-content: center; font-size: 28px; margin-bottom: 18px;
}
.order-mode-card h3 { margin: 0 0 8px; font-size: 22px; font-weight: 700; }
.order-mode-card > p { margin: 0 0 14px; color: var(--text-muted); line-height: 1.6; font-size: 15px; }
.order-mode-card ul { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); padding-top: 14px; }
.order-mode-card ul li {
  font-size: 13px; color: var(--text); padding: 4px 0; padding-left: 22px; position: relative;
}
.order-mode-card ul li::before {
  content: '✓'; position: absolute; left: 0; top: 4px; color: var(--success); font-weight: 800;
}

/* No hidden charges */
.no-hidden-charges-banner {
  max-width: 880px; margin: 0 auto 36px; padding: 22px 28px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5); border: 1px solid #10b981;
  border-radius: 16px; display: flex; align-items: center; gap: 18px;
}
.nhc-icon { font-size: 38px; flex-shrink: 0; }
.nhc-text { font-size: 15px; line-height: 1.6; color: #064e3b; }
.nhc-text strong { display: block; font-size: 17px; margin-bottom: 4px; color: #065f46; }
@media (max-width: 600px) {
  .no-hidden-charges-banner { flex-direction: column; text-align: center; padding: 20px; }
  .nhc-text { font-size: 14px; }
}

/* Testimonial card refresh — picks up DB-driven avatars */
.testimonial-card { background: var(--surface); border: 1px solid var(--border); border-radius: 14px; padding: 24px; transition: all .15s ease; }
.testimonial-card:hover { border-color: var(--brand); box-shadow: 0 12px 28px rgba(198,40,40,.10); transform: translateY(-2px); }
.testimonial-card .stars { color: #f59e0b; font-size: 16px; margin-bottom: 12px; letter-spacing: 2px; }
.testimonial-card .quote { font-size: 15px; line-height: 1.6; margin: 0 0 18px; color: var(--text); }
.testimonial-card .who { display: flex; align-items: center; gap: 10px; }
.testimonial-card .avatar { width: 42px; height: 42px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 14px; flex-shrink: 0; }
.testimonial-card .avatar.avatar-img { padding: 0; object-fit: cover; }
.testimonial-card .name { font-weight: 700; font-size: 14px; color: var(--text); }
.testimonial-card .role { font-size: 12px; color: var(--text-muted); }

/* Section eyebrow with apex tier badge support */
.section-eyebrow .apex-tier-badge { vertical-align: middle; }

/* ================================================================
   v4.3 — DASHBOARD UX 2.0
   Modernizes the manager / kitchen / waiter / reception / super-admin
   portals with refined sidebar, topbar, cards, tables, buttons, badges.
   These rules are appended LATER so they override the v3 originals
   without us having to surgically edit the older blocks.
   ================================================================ */

/* ----- Layout shell ----- */
.dash { grid-template-columns: 248px 1fr; }
.dash .sidebar {
  background: var(--surface);
  border-right: 1px solid var(--border);
  padding: 22px 14px 24px;
  overflow-y: auto;
  scrollbar-width: thin;
}
.dash .sidebar::-webkit-scrollbar { width: 6px; }
.dash .sidebar::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.dash .sidebar .logo {
  font-weight: 800; font-size: 22px; letter-spacing: -.5px;
  padding: 0 8px 4px; margin-bottom: 4px;
}

/* Sidebar nav links — denser, with subtle indicator */
.dash .sidebar nav { margin-top: 14px; }
.dash .sidebar nav a {
  display: flex; align-items: center; gap: 12px;
  padding: 9px 12px; margin-bottom: 1px;
  font-size: 13.5px; font-weight: 500;
  color: var(--text);
  border-radius: 8px;
  transition: all .12s ease;
  position: relative;
}
.dash .sidebar nav a > span:first-child {
  display: inline-flex; align-items: center; justify-content: center;
  width: 22px; flex-shrink: 0; opacity: .85;
}
.dash .sidebar nav a:hover {
  background: var(--bg); color: var(--brand); text-decoration: none;
}
.dash .sidebar nav a.active {
  background: var(--brand-50); color: var(--brand); font-weight: 700;
}
.dash .sidebar nav a.active::before {
  content: ''; position: absolute; left: 0; top: 8px; bottom: 8px;
  width: 3px; background: var(--brand); border-radius: 0 3px 3px 0;
}

/* ----- Topbar refresh ----- */
.dash .main { padding: 20px 28px 36px; }
.dash .topbar {
  display: flex; align-items: center; gap: 14px;
  margin-bottom: 22px; padding-bottom: 18px;
  border-bottom: 1px solid var(--border);
}
.dash .topbar h1 {
  font-size: 22px; font-weight: 700; letter-spacing: -.3px;
  margin: 0;
}
.dash .topbar .input,
.dash .topbar select { padding: 8px 12px; }

/* ----- Cards ----- */
.dash .card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 22px;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
  margin-bottom: 16px;
}
.dash .card h3 { font-size: 16px; font-weight: 700; margin: 0 0 14px; }
.dash .card h2 { font-size: 20px; font-weight: 700; margin: 0 0 16px; }

/* ----- Stat cards ----- */
.dash .stat {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease;
}
.dash .stat:hover {
  transform: translateY(-1px);
  border-color: var(--brand);
  box-shadow: 0 8px 24px rgba(198,40,40,.08);
}
.dash .stat .label {
  color: var(--text-muted); font-size: 11px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .8px;
}
.dash .stat .value {
  font-size: 28px; font-weight: 800; margin-top: 8px;
  letter-spacing: -.5px;
}

/* ----- Tables ----- */
.dash .table { width: 100%; border-collapse: collapse; }
.dash .table th {
  text-align: left; padding: 12px 14px;
  font-size: 11px; text-transform: uppercase; letter-spacing: .6px;
  font-weight: 700; color: var(--text-muted);
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  white-space: nowrap;
}
.dash .table td {
  padding: 14px;
  border-bottom: 1px solid var(--border);
  font-size: 14px; vertical-align: middle;
}
.dash .table tr:last-child td { border-bottom: 0; }
.dash .table tr:hover td { background: var(--bg); }
.dash .table tr td strong { font-weight: 700; }

/* Make cards with tables wrap the overflow horizontally on small screens */
.dash .card { overflow-x: auto; }

/* ----- Forms ----- */
.dash .form-group label {
  font-size: 12px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  color: var(--text-muted);
  margin-bottom: 6px;
}
.dash .input,
.dash select,
.dash textarea {
  padding: 10px 12px; font-size: 14px; border-radius: 8px;
}
.dash .input:focus, .dash select:focus, .dash textarea:focus {
  border-color: var(--brand);
  box-shadow: 0 0 0 3px rgba(198,40,40,.12);
}

/* ----- Buttons (subtle shadow on primary) ----- */
.dash .btn { padding: 9px 16px; border-radius: 8px; font-weight: 600; }
.dash .btn-sm { padding: 6px 12px; font-size: 12.5px; }
.dash .btn-lg { padding: 13px 24px; }
.dash .btn-primary { box-shadow: 0 1px 2px rgba(198,40,40,.12), 0 4px 10px rgba(198,40,40,.16); }
.dash .btn-primary:hover { box-shadow: 0 2px 4px rgba(198,40,40,.18), 0 8px 18px rgba(198,40,40,.22); }
.dash .btn-ghost { background: var(--bg); border-color: var(--border); }
.dash .btn-ghost:hover { background: var(--surface); }

/* ----- Badges (denser, more semantic) ----- */
.dash .badge {
  display: inline-block; padding: 3px 9px; border-radius: 6px;
  font-size: 10.5px; font-weight: 700;
  text-transform: uppercase; letter-spacing: .5px;
  vertical-align: middle;
}

/* ----- Alerts ----- */
.dash .alert {
  border-radius: 10px; padding: 14px 16px; font-size: 13.5px;
  border: 1px solid; display: flex; gap: 10px; align-items: flex-start;
}
.dash .alert::before {
  content: ''; width: 4px; align-self: stretch; border-radius: 999px; margin-right: 8px;
}
.dash .alert-success { background: #f0fdf4; color: #14532d; border-color: #bbf7d0; }
.dash .alert-success::before { background: #16a34a; }
.dash .alert-danger  { background: #fef2f2; color: #7f1d1d; border-color: #fecaca; }
.dash .alert-danger::before  { background: #dc2626; }

html[data-theme="dark"] .dash .alert-success { background: #052e16; color: #86efac; border-color: #14532d; }
html[data-theme="dark"] .dash .alert-danger  { background: #2a0e10; color: #fca5a5; border-color: #5d1a1a; }

/* ----- Empty states ----- */
.dash .empty-state {
  text-align: center; padding: 56px 24px;
  border: 1px dashed var(--border); border-radius: 14px;
  background: var(--bg);
}
.dash .empty-state .icon { font-size: 48px; margin-bottom: 16px; opacity: .65; }
.dash .empty-state h3 { font-size: 18px; font-weight: 700; margin: 0 0 8px; }
.dash .empty-state p { color: var(--text-muted); font-size: 14px; margin: 0 0 18px; }

/* ----- Pills / chips ----- */
.dash .pill { padding: 4px 10px; font-size: 11px; }

/* ----- Breakpoints ----- */
@media (max-width: 980px) {
  .dash { grid-template-columns: 1fr; }
  .dash .main { padding: 16px; }
  .dash .topbar { padding-bottom: 14px; margin-bottom: 16px; gap: 10px; }
  .dash .topbar h1 { font-size: 18px; }
  .dash .card { padding: 18px; border-radius: 12px; }
  .dash .stat .value { font-size: 24px; }
  .dash .table th, .dash .table td { padding: 10px 8px; font-size: 13px; }
}
@media (max-width: 540px) {
  .dash .main { padding: 12px; }
  .dash .topbar h1 { font-size: 16px; }
  .dash .card { padding: 14px; }
  .dash .stat { padding: 14px; }
  .dash .stat .value { font-size: 20px; }
  .dash .table th { font-size: 10px; }
  .dash .grid.cols-2,
  .dash .grid.cols-3,
  .dash .grid.cols-4 { grid-template-columns: 1fr !important; }
}

/* ----- Dashboard sidebar drawer — slides in from the RIGHT on mobile ----- */
@media (max-width: 980px) {
  .dash .sidebar {
    position: fixed !important;
    top: 0 !important; right: 0 !important; bottom: 0 !important; left: auto !important;
    width: min(300px, 88vw) !important; max-width: 88vw;
    z-index: 100;
    transform: translateX(100%) !important;
    transition: transform .22s cubic-bezier(.2,.6,.2,1);
    box-shadow: -16px 0 40px rgba(0,0,0,.18);
    border-right: 0; border-left: 1px solid var(--border);
  }
  .dash .sidebar.open { transform: translateX(0) !important; }
  .menu-burger { display: inline-flex; align-items: center; justify-content: center; }
  body.sidebar-open { overflow: hidden; }
}

/* ================================================================
   v4.3 — RESPONSIVE POLISH (Phase 3.2)
   Targeted fixes for known mobile problems on the dashboards.
   ================================================================ */

/* Action-button rows in tables — wrap and tighten on small screens */
@media (max-width: 760px) {
  .dash .table td a.btn,
  .dash .table td button.btn,
  .dash .table td form { display: inline-block; margin-bottom: 4px; }
  .dash .table td { white-space: normal !important; }
  .dash .table td .btn-sm { padding: 5px 9px; font-size: 11.5px; }
}

/* Inline forms in tables — stack the dropdown + button vertically on phones */
@media (max-width: 540px) {
  .dash .table form .input,
  .dash .table form select { display: block !important; width: 100% !important; margin-bottom: 6px; }
  .dash .table form .btn { width: 100%; }
}

/* Topbar overflow — wrap onto two lines instead of squeezing */
@media (max-width: 760px) {
  .dash .topbar { flex-wrap: wrap; row-gap: 8px; }
  .dash .topbar h1 { width: 100%; order: -1; }
  .dash .topbar .space { display: none; }
  .dash .topbar select { width: 100%; }
}

/* Long card title overflow */
.dash .card h2,
.dash .card h3 { word-break: break-word; }

/* Filter chips above tables (manager/orders status filter, etc.) */
@media (max-width: 760px) {
  .dash .flex.mb-3 { flex-wrap: wrap; gap: 6px; }
  .dash .flex.mb-3 .btn-sm { padding: 5px 9px; font-size: 11.5px; }
}

/* Sticky cart bar / signal bar on customer flows — no horizontal scroll */
@media (max-width: 540px) {
  .cart-bar { padding: 12px 14px; gap: 8px; }
  .cart-bar .count { font-size: 13px; }
  .cart-bar button { padding: 8px 14px; font-size: 13px; }
}

/* Phone-frame on home: shrink gracefully */
@media (max-width: 540px) {
  .phone-frame { transform: scale(.85); transform-origin: top center; }
  .hero-modern { padding: 32px 0 60px; }
  .hero-modern .hero-title { font-size: clamp(28px, 7vw, 42px) !important; }
  .hero-cta-row { flex-direction: column; align-items: stretch; }
  .hero-cta-row .btn { width: 100%; justify-content: center; }
}

/* Public pages: cms-hero scales properly */
.cms-hero { padding: 80px 0 56px; }
@media (max-width: 540px) {
  .cms-hero { padding: 56px 0 40px; min-height: auto; }
  .cms-hero h1 { font-size: clamp(26px, 7vw, 36px); }
  .cms-body { padding: 36px 0 60px; }
  .prose { font-size: 16px; }
  .prose h2 { font-size: 22px; }
}

/* Footer column gap tightens on phone */
@media (max-width: 540px) {
  .footer-v2 { padding: 36px 0 18px; margin-top: 48px; }
  .footer-v2 .footer-grid { gap: 26px; }
}

/* Channel cards on home — shrink padding on phone */
@media (max-width: 540px) {
  .channel-card { padding: 18px; }
  .channel-card h3 { font-size: 16px; }
  .channel-card p { font-size: 13px; }
}

/* Pricing cards stack with breathing room */
@media (max-width: 768px) {
  .pricing-card { padding: 22px; }
  .pricing-card .price { font-size: 32px; }
}

/* Tables wrapper helper — wrap any raw <table> in cards properly */
.dash .card .table { min-width: max-content; }
@media (max-width: 760px) {
  .dash .card .table { min-width: 100%; }
}

/* Idle warning banner — readable on phones */
@media (max-width: 540px) {
  #idle-warn { left: 10px !important; right: 10px !important; transform: none !important; max-width: none !important; }
}

/* Theme toggle on mobile — keep it visible */
@media (max-width: 540px) {
  .theme-toggle { width: 36px; height: 36px; padding: 6px; }
}

/* Hero phone-mock readability on really small screens */
@media (max-width: 380px) {
  .hero-modern .hero-grid { gap: 30px; }
  .phone-frame { transform: scale(.7); margin: -40px auto 0; }
}

/* Forms inside cards stack inputs full-width */
@media (max-width: 540px) {
  .dash .grid.cols-2 .form-group,
  .dash .grid.cols-3 .form-group { margin-bottom: 12px; }
}

/* ================================================================
   v4.3 — APEX menu detail modal (Phase 3.3)
   Click a menu item on an Apex restaurant → fullscreen modal with
   video/photo at top, full description, nutrition, add-to-cart.
   ================================================================ */
.menu-item-apex { cursor: pointer; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.menu-item-apex:hover {
  transform: translateY(-2px);
  border-color: var(--brand);
  box-shadow: 0 12px 28px rgba(198,40,40,.10);
}
.menu-item-apex:focus { outline: 3px solid var(--brand); outline-offset: 2px; }

.apex-modal {
  position: fixed; inset: 0; z-index: 200;
  display: flex; align-items: center; justify-content: center;
  padding: 0;
}
.apex-modal.hide { display: none; }
.apex-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.78); backdrop-filter: blur(6px); }
.apex-modal-card {
  position: relative; z-index: 1;
  background: var(--surface);
  border-radius: 22px; overflow: hidden;
  width: 100%; max-width: 560px; max-height: 92vh;
  display: flex; flex-direction: column;
  box-shadow: 0 30px 80px rgba(0,0,0,.5);
  animation: apex-pop .25s cubic-bezier(.2,.6,.2,1);
}
@keyframes apex-pop {
  from { transform: translateY(20px) scale(.96); opacity: 0; }
  to   { transform: none; opacity: 1; }
}
.apex-modal-close {
  position: absolute; top: 12px; right: 12px; z-index: 5;
  width: 36px; height: 36px; border-radius: 50%;
  background: rgba(0,0,0,.55); color: #fff;
  border: 0; font-size: 24px; line-height: 1;
  cursor: pointer; transition: background .15s;
}
.apex-modal-close:hover { background: rgba(0,0,0,.85); }

.apex-modal-media {
  width: 100%; aspect-ratio: 16/10; background: #000;
  display: flex; align-items: center; justify-content: center; overflow: hidden;
}
.apex-modal-media img,
.apex-modal-media video,
.apex-modal-media iframe {
  width: 100%; height: 100%; object-fit: cover; border: 0; display: block;
}

.apex-modal-body {
  padding: 22px 24px 28px;
  overflow-y: auto;
  flex: 1; min-height: 0;
}
.apex-modal-body h2 { font-size: 24px; font-weight: 800; }

.apex-modal-nutrition .apex-nutri {
  display: flex; flex-wrap: wrap; gap: 8px;
}
.apex-modal-nutrition .apex-nutri span {
  background: var(--bg); border: 1px solid var(--border);
  padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600;
  color: var(--text);
}

.apex-modal-cta {
  display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  padding-top: 18px; border-top: 1px solid var(--border); margin-top: 18px;
}
.apex-modal-price { font-size: 28px; font-weight: 800; color: var(--brand); flex: 1; min-width: 100px; }
.apex-modal-cta .btn-lg { padding: 13px 22px; }

.apex-qty {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 999px;
  padding: 4px;
}
.apex-qty button {
  width: 36px; height: 36px; border-radius: 50%;
  border: 0; background: var(--surface); color: var(--text);
  font-size: 22px; font-weight: 700; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.apex-qty button:hover { background: var(--brand-50); color: var(--brand); }
.apex-qty .apex-qty-val { font-weight: 800; min-width: 24px; text-align: center; }

@media (max-width: 540px) {
  .apex-modal-card { max-height: 100vh; max-width: 100%; border-radius: 18px 18px 0 0; align-self: flex-end; height: 92vh; }
  .apex-modal { align-items: flex-end; }
  .apex-modal-body { padding: 18px 18px 22px; }
  .apex-modal-body h2 { font-size: 20px; }
  .apex-modal-price { font-size: 24px; }
}

/* ================================================================
   v4.3 — PUBLIC SITE responsive polish (Phase 3.4)
   ================================================================ */

/* Mega-menu mobile drawer polish — DO NOT touch .nav-mega .links here.
 * The .links rule is owned by the v4.6 drawer rule earlier in this file
 * (slide-from-right). These rules only style the inner mega-panels. */
@media (max-width: 980px) {
  .nav-mega .nav-link { padding: 12px 4px; font-weight: 600; border-bottom: 1px solid var(--border); }
  .nav-mega .nav-item.has-mega > .mega-panel { display: block; padding: 0; border: 0; box-shadow: none; transform: none; position: static; }
  .nav-mega .mega-panel::before { display: none; }
  .nav-mega .mega-grid,
  .nav-mega .mega-grid-3col { grid-template-columns: 1fr 1fr !important; gap: 6px; max-height: none; overflow: visible; }
  .nav-mega .mega-card { padding: 8px; }
  .nav-mega .mega-card img { width: 50px; height: 44px; }
  .nav-mega .mega-card .mega-title { font-size: 12px; }
  .nav-mega .mega-card .mega-sub { display: none; }
  .nav-mega .btn { width: 100%; justify-content: center; }
  .nav-mega .theme-toggle { align-self: flex-start; }
}
@media (max-width: 480px) {
  .nav-mega .mega-grid,
  .nav-mega .mega-grid-3col { grid-template-columns: 1fr !important; }
  .nav-mega .mega-card .mega-sub { display: block; font-size: 11px; }
}

/* Pricing cards — make sure they don't overflow when content is long */
@media (max-width: 980px) {
  #pricing .grid { grid-template-columns: 1fr 1fr !important; gap: 14px; }
}
@media (max-width: 700px) {
  #pricing .grid { grid-template-columns: 1fr !important; }
  #pricing .pricing-card { padding: 22px; }
}

/* All-features grid — wraps cleanly down to 1 col */
.all-features-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 980px) { .all-features-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .all-features-grid { grid-template-columns: 1fr; gap: 12px; } }

/* Apex feature grid responsive */
@media (max-width: 980px) {
  .apex-feature-grid { grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (max-width: 600px) {
  .apex-feature-grid { grid-template-columns: 1fr; }
  .apex-feature-card { padding: 18px; }
  .apex-feature-card h3 { font-size: 16px; }
  .apex-feature-card p { font-size: 13px; }
}

/* Apex badge wraps nicely on phones */
@media (max-width: 600px) {
  .apex-badge-row { padding: 14px 18px; gap: 10px; }
  .apex-tier-sub { font-size: 13px; }
}

/* No hidden charges banner stacks */
@media (max-width: 540px) {
  .no-hidden-charges-banner { padding: 18px 16px; }
  .nhc-icon { font-size: 32px; }
  .nhc-text strong { font-size: 15px; }
}

/* Order-mode cards — featured badge stays visible on mobile */
@media (max-width: 600px) {
  .order-mode-card { padding: 22px; }
  .order-mode-card h3 { font-size: 19px; }
  .order-anywhere-section { padding: 56px 0; }
}

/* Client-logo cards — smaller on tiny screens */
@media (max-width: 380px) {
  .client-logo-grid { gap: 8px; }
  .client-logo-name { font-size: 11px; }
  .client-logo-city { font-size: 10px; }
}

/* Section headings cap at viewport width */
.section h2 { word-break: break-word; }
@media (max-width: 540px) {
  .section h2 { font-size: clamp(24px, 6.5vw, 32px) !important; line-height: 1.2 !important; }
  .section .lead { font-size: 15px !important; }
  .section { padding: 56px 0 !important; }
  .section-eyebrow { font-size: 11px; }
}

/* Footer socials wider tap targets on phones */
@media (max-width: 540px) {
  .footer-socials a { width: 42px; height: 42px; }
  .footer-btn { padding: 12px 14px; font-size: 14px; }
}

/* Tabs / chip rows in dashboards — never break out of the card */
.dash .flex.mb-3 a.btn { white-space: nowrap; }

/* Make sure no <pre>/<code> blocks blow out responsive widths in CMS bodies */
.prose pre, .prose code { white-space: pre-wrap; word-break: break-word; }

/* Img responsiveness everywhere (safety net) */
.cms-body img,
.prose img { max-width: 100%; height: auto; border-radius: 10px; }

/* Iframes (calendar embeds, video) responsive */
.cms-body iframe,
.prose iframe { max-width: 100%; }

/* ========== v4.4 — Super admin feature toggles + locked screen ========== */
.feature-toggle {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--border); border-radius: 10px;
  cursor: pointer; transition: all .12s ease;
  background: var(--surface); user-select: none;
}
.feature-toggle:hover { border-color: var(--brand); background: var(--brand-50); }
.feature-toggle input[type=checkbox] {
  appearance: none; -webkit-appearance: none;
  width: 36px; height: 20px; border-radius: 999px;
  background: var(--border); position: relative; cursor: pointer; transition: background .15s ease; flex-shrink: 0;
}
.feature-toggle input[type=checkbox]::after {
  content: ''; position: absolute; left: 2px; top: 2px;
  width: 16px; height: 16px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.2); transition: transform .15s ease;
}
.feature-toggle input[type=checkbox]:checked { background: var(--brand); }
.feature-toggle input[type=checkbox]:checked::after { transform: translateX(16px); }
.feature-toggle span { font-size: 13.5px; font-weight: 600; color: var(--text); }

/* Payment-due lock screen (Phase 4.6) */
.lock-screen {
  min-height: 100vh; display: flex; align-items: center; justify-content: center;
  background: linear-gradient(135deg, #fef2f2, #fff7ed); padding: 24px;
}
.lock-card {
  max-width: 540px; width: 100%; background: #fff; border-radius: 18px;
  padding: 44px 36px; text-align: center;
  box-shadow: 0 30px 80px rgba(0,0,0,.15); border: 1px solid var(--border);
}
.lock-icon { font-size: 64px; margin-bottom: 14px; }
.lock-card h1 { font-size: 26px; font-weight: 800; margin: 0 0 12px; color: var(--brand); }
.lock-card p  { font-size: 15px; color: var(--text); line-height: 1.6; margin: 0 0 14px; }
.lock-card .lock-cta { margin-top: 24px; display: flex; gap: 10px; justify-content: center; flex-wrap: wrap; }
html[data-theme="dark"] .lock-screen { background: linear-gradient(135deg, #2a0e10, #1f1611); }
html[data-theme="dark"] .lock-card { background: var(--surface); }

/* ================================================================
   v4.5 — KETPY AI ASSISTANT chat widget
   ================================================================ */
.kai-root { font-family: var(--font); }

.kai-launcher {
  position: fixed; right: 22px; bottom: 22px; z-index: 250;
  display: inline-flex; align-items: center; gap: 10px;
  padding: 12px 18px 12px 14px;
  background: linear-gradient(135deg, #c62828, #ef4444);
  color: #fff; border: 0; border-radius: 999px;
  font-size: 14px; font-weight: 700; cursor: pointer;
  box-shadow: 0 12px 32px rgba(198, 40, 40, .35), 0 4px 8px rgba(0,0,0,.08);
  transition: transform .15s ease, box-shadow .15s ease;
  user-select: none;
}
.kai-launcher:hover { transform: translateY(-2px); box-shadow: 0 18px 40px rgba(198, 40, 40, .45); }
.kai-launcher.kai-launcher-active .kai-launcher-label { display: none; }
.kai-launcher.kai-launcher-active { padding: 12px 14px; }
.kai-launcher-icon { display: inline-flex; align-items: center; justify-content: center; }
.kai-launcher-label { line-height: 1; }
.kai-launcher-pulse {
  position: absolute; inset: 0; border-radius: 999px; pointer-events: none;
  box-shadow: 0 0 0 0 rgba(198, 40, 40, .4);
  animation: kai-pulse 2.4s infinite;
}
@keyframes kai-pulse {
  0%   { box-shadow: 0 0 0 0 rgba(198, 40, 40, .4); }
  70%  { box-shadow: 0 0 0 18px rgba(198, 40, 40, 0); }
  100% { box-shadow: 0 0 0 0 rgba(198, 40, 40, 0); }
}

/* Hidden by default — only the .kai-panel-open class shows it.
 * (We can't rely on the HTML5 [hidden] attribute alone because `display: flex`
 *  rules will override it.) */
.kai-panel {
  display: none;
}
.kai-panel.kai-panel-open {
  position: fixed; right: 22px; bottom: 84px; z-index: 251;
  width: 380px; max-width: calc(100vw - 24px);
  height: 540px; max-height: calc(100vh - 110px);
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  box-shadow: 0 24px 60px rgba(0,0,0,.18), 0 8px 16px rgba(0,0,0,.06);
  display: flex; flex-direction: column;
  animation: kai-slide-up .25s cubic-bezier(.2,.6,.2,1);
}
@keyframes kai-slide-up { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }

.kai-header {
  background: linear-gradient(135deg, #c62828, #b71c1c);
  color: #fff; padding: 16px 18px;
  display: flex; align-items: center; gap: 12px;
}
.kai-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,.2);
  display: flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.kai-title { font-weight: 700; font-size: 15px; }
.kai-status { font-size: 11px; opacity: .85; display: flex; align-items: center; gap: 5px; margin-top: 1px; }
.kai-dot { width: 8px; height: 8px; background: #4ade80; border-radius: 50%; box-shadow: 0 0 8px #4ade80; }
.kai-close {
  margin-left: auto; background: rgba(255,255,255,.15); border: 0; color: #fff;
  width: 30px; height: 30px; border-radius: 50%; cursor: pointer; font-size: 22px;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.kai-close:hover { background: rgba(255,255,255,.3); }

.kai-messages {
  flex: 1; overflow-y: auto; padding: 16px 14px;
  background: var(--bg);
  scrollbar-width: thin;
}
.kai-messages::-webkit-scrollbar { width: 6px; }
.kai-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 3px; }

.kai-msg { display: flex; margin-bottom: 12px; max-width: 100%; }
.kai-msg-bot { justify-content: flex-start; }
.kai-msg-me  { justify-content: flex-end; }
.kai-bubble {
  max-width: 84%; padding: 10px 13px; border-radius: 14px;
  font-size: 14px; line-height: 1.5;
  position: relative; word-wrap: break-word;
}
.kai-msg-bot .kai-bubble {
  background: var(--surface); border: 1px solid var(--border);
  color: var(--text); border-bottom-left-radius: 4px;
}
.kai-msg-me .kai-bubble {
  background: var(--brand); color: #fff;
  border-bottom-right-radius: 4px;
}
.kai-msg-me .kai-bubble a { color: #fff; text-decoration: underline; }
.kai-msg-bot .kai-bubble a { color: var(--brand); text-decoration: underline; font-weight: 600; }
.kai-bubble-text { word-break: break-word; }
.kai-bubble-text strong { font-weight: 700; }
.kai-bubble-time {
  font-size: 10px; opacity: .55; margin-top: 4px; text-align: right;
}
.kai-msg-me .kai-bubble-time { color: rgba(255,255,255,.85); }

/* Typing indicator */
.kai-typing .kai-bubble { padding: 10px 14px; }
.kai-typing-dots { display: inline-flex; gap: 4px; align-items: center; height: 14px; }
.kai-typing-dots span {
  width: 7px; height: 7px; background: var(--text-muted); border-radius: 50%;
  animation: kai-bounce 1.2s infinite;
}
.kai-typing-dots span:nth-child(2) { animation-delay: .15s; }
.kai-typing-dots span:nth-child(3) { animation-delay: .30s; }
@keyframes kai-bounce {
  0%, 60%, 100% { opacity: .4; transform: translateY(0); }
  30%           { opacity: 1;  transform: translateY(-4px); }
}

.kai-chips {
  display: flex; flex-wrap: wrap; gap: 6px;
  padding: 0 14px 8px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  padding-top: 10px;
}
.kai-chips:empty { display: none; }
.kai-chip {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 999px; padding: 6px 12px;
  font-size: 12px; font-weight: 600; cursor: pointer;
  color: var(--text); transition: all .12s ease;
}
.kai-chip:hover { background: var(--brand-50); border-color: var(--brand); color: var(--brand); }

.kai-form {
  display: flex; gap: 6px; padding: 12px 12px 8px;
  background: var(--surface); border-top: 1px solid var(--border);
}
.kai-form input {
  flex: 1; padding: 10px 14px; border: 1px solid var(--border);
  border-radius: 999px; font-size: 14px; background: var(--bg); color: var(--text);
  font-family: inherit;
}
.kai-form input:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 3px var(--brand-50); }
.kai-form button {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--brand); color: #fff; border: 0; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  transition: background .12s, transform .06s;
}
.kai-form button:hover { background: var(--brand-600); transform: scale(1.05); }

.kai-foot {
  text-align: center; font-size: 10px; padding: 6px 0 8px;
  color: var(--text-muted); background: var(--surface);
}
.kai-foot a { color: var(--text-muted); }

@media (max-width: 540px) {
  .kai-launcher { right: 14px; bottom: 14px; padding: 10px 14px; font-size: 13px; }
  .kai-launcher-icon { width: 22px; height: 22px; }
  .kai-launcher-label { display: none; }
  .kai-panel.kai-panel-open {
    right: 0; bottom: 0; left: 0; top: 0;
    width: 100%; height: 100%; max-height: 100%;
    border-radius: 0; max-width: 100%;
  }
}

/* ========== v5.5 — Apex wide CTA card — light whitish-red theme ========== */
.apex-cta-card {
  display: grid; grid-template-columns: 1fr auto; gap: 24px;
  align-items: center;
  padding: 22px 28px;
  background: linear-gradient(135deg, #fff5f5, #fee2e2);
  border: 1px solid var(--brand); border-radius: 16px;
  box-shadow: 0 4px 16px rgba(198, 40, 40, .12);
}
.apex-cta-eyebrow { font-size: 12px; letter-spacing: .08em; color: var(--brand); margin-bottom: 6px; }
.apex-cta-title { margin: 0 0 8px; font-size: 22px; font-weight: 800; color: #1a1a1a; }
.apex-cta-desc {
  margin: 0; font-size: 14px; line-height: 1.55; color: #5f1a1a;
  display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden;
}
.apex-cta-actions { display: flex; gap: 10px; flex-shrink: 0; }
.apex-cta-actions .btn-ghost { background: rgba(255,255,255,.7); border-color: rgba(198, 40, 40, .3); color: var(--brand); }
.apex-cta-actions .btn-ghost:hover { background: #fff; border-color: var(--brand); color: var(--brand); }

@media (max-width: 760px) {
  .apex-cta-card { grid-template-columns: 1fr; padding: 20px; gap: 14px; text-align: center; }
  .apex-cta-actions { flex-direction: column; }
  .apex-cta-actions .btn { width: 100%; }
  .apex-cta-title { font-size: 19px; }
  .apex-cta-desc { font-size: 13px; }
}

/* ========== v4.6 — Footer link colours: no white highlight, hover-only colour ========== */
.footer-v2 .footer-desc { color: #9ca3af !important; }
.footer-v2 .footer-desc a,
.footer-v2 .footer-link-muted,
.footer-v2 .footer-link-muted a,
.footer-v2 .footer-bottom a {
  color: #9ca3af !important;
  text-decoration: none !important;
  border-bottom: 1px dotted transparent;
  transition: color .15s ease, border-color .15s ease;
}
.footer-v2 .footer-desc a:hover,
.footer-v2 .footer-link-muted a:hover,
.footer-v2 .footer-bottom a:hover {
  color: #fff !important;
  border-bottom-color: #fff;
}

/* ========== v4.6 — AI assistant teaser bubble ========== */
.kai-teaser {
  position: fixed; right: 22px; bottom: 80px; z-index: 249;
  display: flex; align-items: stretch;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 12px 14px; padding-right: 32px;
  box-shadow: 0 12px 28px rgba(0,0,0,.18), 0 4px 8px rgba(0,0,0,.08);
  cursor: pointer; max-width: 260px;
  opacity: 0; transform: translateY(8px) scale(.96);
  transition: opacity .22s ease, transform .22s ease;
}
.kai-teaser-in { opacity: 1; transform: none; }
.kai-teaser::after {
  content: ''; position: absolute; bottom: -10px; right: 28px;
  width: 0; height: 0; border-left: 10px solid transparent; border-right: 10px solid transparent;
  border-top: 10px solid var(--surface);
}
.kai-teaser-bubble strong { display: block; font-size: 14px; color: var(--text); margin-bottom: 2px; }
.kai-teaser-bubble span { font-size: 13px; color: var(--text-muted); }
.kai-teaser-x {
  position: absolute; top: 4px; right: 6px;
  width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: var(--bg); color: var(--text-muted);
  font-size: 16px; line-height: 1; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
.kai-teaser-x:hover { background: var(--brand-50); color: var(--brand); }

@media (max-width: 540px) {
  .kai-teaser { right: 14px; bottom: 68px; max-width: calc(100vw - 28px); }
}

/* ========== v4.6 — Scroll-to-top floating button (sits below AI launcher) ========== */
.scroll-top-btn {
  position: fixed; right: 28px; bottom: 92px; z-index: 248;
  width: 44px; height: 44px; border-radius: 50%;
  background: var(--surface); color: var(--brand);
  border: 1px solid var(--border);
  display: inline-flex; align-items: center; justify-content: center;
  cursor: pointer; box-shadow: 0 6px 16px rgba(0,0,0,.12), 0 2px 4px rgba(0,0,0,.06);
  transition: all .15s ease;
  animation: stb-fade-in .18s ease;
}
@keyframes stb-fade-in { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.scroll-top-btn:hover { background: var(--brand); color: #fff; transform: translateY(-2px); border-color: var(--brand); }
.scroll-top-btn[hidden] { display: none !important; }

/* When the AI launcher is in compact (active) state, lift the scroll-top button. */
@media (max-width: 540px) {
  .scroll-top-btn { right: 20px; bottom: 80px; width: 40px; height: 40px; }
}

/* ========== v4.6 — Form-submit success panel ========== */
.form-thanks {
  text-align: center; padding: 28px 16px;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  border: 1px solid #10b981; border-radius: 14px;
  animation: ft-pop .25s ease;
}
@keyframes ft-pop { from { opacity: 0; transform: scale(.96); } to { opacity: 1; transform: none; } }
.form-thanks-icon { font-size: 48px; margin-bottom: 12px; }
.form-thanks h3 { font-size: 20px; color: #064e3b; font-weight: 800; margin: 0 0 10px; }
.form-thanks p { font-size: 14px; color: #064e3b; line-height: 1.6; margin: 0; }
html[data-theme="dark"] .form-thanks { background: linear-gradient(135deg, #052e16, #064e3b); border-color: #10b981; }
html[data-theme="dark"] .form-thanks h3,
html[data-theme="dark"] .form-thanks p { color: #d1fae5; }

/* ========== v4.6 — Contact page (3 cards + form + FAQ) ========== */
.contact-2col { padding: 60px 0; }
@media (max-width: 980px) { .contact-2col .grid.cols-2 { grid-template-columns: 1fr !important; gap: 24px !important; } }

.contact-cards { display: flex; flex-direction: column; gap: 14px; }
.contact-card {
  display: flex; gap: 14px; align-items: flex-start;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 14px; padding: 18px 20px;
  text-decoration: none; color: var(--text);
  transition: all .15s ease;
}
.contact-card:hover { border-color: var(--brand); box-shadow: 0 12px 28px rgba(198,40,40,.10); transform: translateX(2px); text-decoration: none; }
.contact-card-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-card-label { font-size: 11px; text-transform: uppercase; letter-spacing: .8px; color: var(--text-muted); font-weight: 700; margin-bottom: 4px; }
.contact-card-value { font-size: 17px; font-weight: 700; color: var(--text); }
.contact-card-sub   { font-size: 12.5px; color: var(--text-muted); margin-top: 2px; }

.contact-faq { padding: 60px 0 96px; background: var(--bg); border-top: 1px solid var(--border); }
.faq-list { display: flex; flex-direction: column; gap: 12px; }
.faq-item {
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 4px 18px;
  transition: border-color .15s ease;
}
.faq-item:hover { border-color: var(--brand); }
.faq-item summary {
  list-style: none; padding: 14px 0; cursor: pointer; font-weight: 700; font-size: 15px;
  color: var(--text); position: relative; padding-right: 28px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 4px; top: 14px; font-size: 22px; line-height: 1; color: var(--brand);
  transition: transform .2s ease;
}
.faq-item[open] summary::after { content: '−'; }
.faq-answer { padding: 0 0 16px; font-size: 14.5px; line-height: 1.6; color: var(--text-muted); }
.faq-answer a { color: var(--brand); text-decoration: underline; }

/* ========== v5.0 — Delivery partner integrations grid + connect modal ========== */
.partner-card { transition: transform .15s ease, box-shadow .15s ease; }
.partner-card:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.10); }
.partner-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px; flex-shrink: 0;
}

.partner-modal {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,.6); backdrop-filter: blur(6px);
  display: flex; align-items: center; justify-content: center;
  padding: 20px;
  animation: pm-fade .2s ease;
}
@keyframes pm-fade { from { opacity: 0; } to { opacity: 1; } }
.partner-modal-card {
  background: var(--surface); border-radius: 18px; overflow: hidden;
  width: 100%; max-width: 480px; max-height: 92vh;
  position: relative; box-shadow: 0 30px 80px rgba(0,0,0,.4);
  animation: pm-pop .25s cubic-bezier(.2,.6,.2,1);
}
@keyframes pm-pop { from { transform: translateY(16px) scale(.96); } to { transform: none; } }
.partner-modal-close {
  position: absolute; top: 14px; right: 14px; z-index: 5;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(0,0,0,.45); color: #fff; border: 0;
  font-size: 22px; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center; line-height: 1;
}
.partner-modal-header {
  padding: 28px 24px 22px; color: #fff; text-align: center;
}
.partner-modal-icon { font-size: 38px; line-height: 1; }
.partner-modal-header h2 { margin: 12px 0 6px; font-size: 22px; font-weight: 800; color: #fff; }
.partner-modal-header p { margin: 0; opacity: .9; font-size: 14px; }
.partner-modal-body { padding: 22px 24px 26px; overflow-y: auto; max-height: calc(92vh - 180px); }
@media (max-width: 540px) {
  .partner-modal { padding: 0; align-items: flex-end; }
  .partner-modal-card { max-height: 96vh; max-width: 100%; border-radius: 18px 18px 0 0; }
}

/* When the mobile nav drawer is open, hide the AI launcher + teaser + scroll-top
 * so they don't visually fight the drawer. */
@media (max-width: 980px) {
  body.nav-open .kai-launcher,
  body.nav-open .kai-panel,
  body.nav-open #kai-teaser,
  body.nav-open .scroll-top-btn { display: none !important; }
  /* Same when the dashboard sidebar is open */
  body.sidebar-open .kai-launcher,
  body.sidebar-open .kai-panel,
  body.sidebar-open #kai-teaser,
  body.sidebar-open .scroll-top-btn { display: none !important; }
}

/* ================================================================
   v5.2 — Justified text alignment for all body paragraphs.
   Applies wherever long-form text lives: CMS pages (.prose),
   home + section bodies, contact / FAQ answers, apex feature cards,
   public testimonials, etc. Headings + buttons + lists stay un-justified.
   ================================================================ */
.prose p,
.prose li,
.cms-body p,
.cms-body li,
.section p:not(.muted):not(.lead):not(.center),
.section .lead,
.contact-card-sub,
.faq-answer,
.faq-answer p,
.apex-feature-card p,
.apex-cta-desc,
.testimonial .quote,
.testimonial-card .quote,
.order-mode-card > p,
.nhc-text,
.hero-sub,
.cms-hero-sub,
.feature-block p,
.lock-card p,
.form-thanks p,
.footer-desc,
.kai-bubble-text {
  text-align: justify;
  text-justify: inter-word;
  hyphens: auto;
}
/* Headings + center-aligned blocks should NOT be justified. */
.center, .center *, h1, h2, h3, h4, h5, h6,
.section h2, .section h3, .section h1,
.btn, .pill, .badge {
  text-align: revert;
  hyphens: manual;
}
/* On very narrow screens (≤480px), justify can make awkward gaps in short
 * lines — fall back to left-align. */
@media (max-width: 480px) {
  .prose p, .prose li, .cms-body p,
  .section p, .section .lead,
  .faq-answer, .apex-feature-card p, .apex-cta-desc,
  .testimonial-card .quote, .order-mode-card > p {
    text-align: left;
  }
}

/* ========== v5.2 — "Edit this page" floating button for super admin ========== */
.cms-edit-btn {
  position: fixed; top: 80px; right: 20px; z-index: 200;
  background: linear-gradient(135deg, #1f2937, #111827); color: #fff !important;
  padding: 10px 16px; border-radius: 999px; font-size: 13px; font-weight: 700;
  text-decoration: none; box-shadow: 0 8px 22px rgba(0,0,0,.25);
  display: inline-flex; align-items: center; gap: 6px;
  transition: transform .15s ease, box-shadow .15s ease;
}
.cms-edit-btn:hover { transform: translateY(-2px); box-shadow: 0 12px 28px rgba(0,0,0,.35); color: #fff !important; text-decoration: none; }
@media (max-width: 540px) { .cms-edit-btn { top: 76px; right: 14px; padding: 8px 12px; font-size: 12px; } }

/* ================================================================
   v5.3 — Hero phone-mock interactive demo (review / placing / tracking)
   ================================================================ */
.menu-mock { position: relative; height: 100%; display: flex; flex-direction: column; }
.menu-mock .mm-logo {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.16); padding: 4px 10px 4px 4px; border-radius: 999px;
  font-weight: 700; font-size: 11px; color: #fff;
}
.menu-mock .mm-logo svg { display: block; }
.menu-mock .mm-body { flex: 1; overflow-y: auto; -webkit-overflow-scrolling: touch; }

/* Quantity stepper inside menu items */
.menu-mock .mm-qty {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--brand); color: #fff;
  border-radius: 999px; padding: 2px;
  margin-left: auto;
}
.menu-mock .mm-qty button {
  width: 22px; height: 22px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.25); color: #fff;
  font-size: 14px; line-height: 1; cursor: pointer; font-weight: 700;
}
.menu-mock .mm-qty span { padding: 0 4px; font-weight: 800; font-size: 12px; min-width: 14px; text-align: center; }
.menu-mock .mm-add { cursor: pointer; transition: transform .15s ease; }
.menu-mock .mm-add:active { transform: scale(.94); }
.menu-mock .mm-item.is-hot { box-shadow: 0 0 0 1px rgba(198, 40, 40, .3); }

/* Chip "sent" feedback */
.menu-mock .mm-chip { cursor: pointer; transition: all .2s ease; }
.menu-mock .mm-chip.is-acked { background: var(--success); color: #fff !important; border-color: var(--success); }

.menu-mock .mm-cart { cursor: pointer; transition: filter .15s ease; }
.menu-mock .mm-cart:active { filter: brightness(.92); }

/* Review screen */
.menu-mock .mm-hero-thin {
  padding: 14px 16px 12px;
  display: flex; align-items: center; gap: 12px;
}
.menu-mock .mm-back {
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(255,255,255,.2); color: #fff; border: 0;
  cursor: pointer; font-size: 14px;
}
.menu-mock .mm-title-thin { font-weight: 700; font-size: 14px; color: #fff; }
.menu-mock .mm-rev-card {
  background: #fff; border-radius: 12px; padding: 14px;
  margin: 12px; box-shadow: 0 4px 12px rgba(0,0,0,.06);
}
.menu-mock .mm-rev-table { font-size: 11px; color: #888; margin-bottom: 8px; }
.menu-mock .mm-rev-line {
  display: flex; justify-content: space-between; padding: 4px 0; font-size: 12px;
}
.menu-mock .mm-rev-line.muted { color: #888; }
.menu-mock .mm-rev-hr { border: 0; border-top: 1px dashed #e5e5e5; margin: 8px 0; }
.menu-mock .mm-rev-total { font-weight: 800; font-size: 14px; color: var(--brand); padding-top: 6px; border-top: 1px solid #eee; margin-top: 4px; }
.menu-mock .mm-pay-strip { display: flex; gap: 8px; padding: 0 12px 12px; }
.menu-mock .mm-pay-opt {
  flex: 1; padding: 10px; text-align: center;
  border: 1px solid var(--border); border-radius: 10px;
  font-size: 11px; font-weight: 600; cursor: pointer; background: #fff;
}
.menu-mock .mm-pay-active { border-color: var(--brand); background: var(--brand-50); color: var(--brand); }
.menu-mock .mm-cta {
  background: var(--brand); color: #fff; padding: 14px;
  text-align: center; font-weight: 700; cursor: pointer;
  font-size: 13px;
}
.menu-mock .mm-cta-disabled { background: #f3f4f6; color: #9ca3af; cursor: default; }

/* Placing-spinner screen */
.menu-mock .mm-placing {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; padding: 30px;
  background: linear-gradient(135deg, var(--brand-50), #fff);
}
.menu-mock .mm-placing-spin {
  width: 50px; height: 50px; border-radius: 50%;
  border: 4px solid var(--brand-50); border-top-color: var(--brand);
  animation: mm-spin 1s linear infinite;
}
@keyframes mm-spin { to { transform: rotate(360deg); } }
.menu-mock .mm-placing-msg { font-weight: 800; color: var(--text); font-size: 14px; }
.menu-mock .mm-placing-sub { color: var(--text-muted); font-size: 11px; }

/* Tracking screen */
.menu-mock .mm-hero-track {
  position: relative;
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%);
}
.menu-mock .mm-track-status {
  position: absolute; right: 12px; top: 12px;
  background: rgba(255,255,255,.2); color: #fff;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700;
}
.menu-mock .mm-track-list { list-style: none; padding: 14px; margin: 0; }
.menu-mock .mm-track-step {
  display: flex; gap: 10px; align-items: flex-start;
  padding: 8px 0; opacity: .45; transition: opacity .3s;
}
.menu-mock .mm-track-step.is-done,
.menu-mock .mm-track-step.is-active { opacity: 1; }
.menu-mock .mm-track-step.is-active .mm-track-bullet {
  background: var(--brand); color: #fff;
  box-shadow: 0 0 0 4px rgba(198, 40, 40, .15);
  animation: mm-pulse 1.5s ease infinite;
}
@keyframes mm-pulse {
  0%, 100% { box-shadow: 0 0 0 4px rgba(198, 40, 40, .15); }
  50%      { box-shadow: 0 0 0 8px rgba(198, 40, 40, .25); }
}
.menu-mock .mm-track-bullet {
  width: 26px; height: 26px; border-radius: 50%;
  background: #f3f4f6; color: var(--brand);
  display: flex; align-items: center; justify-content: center;
  font-size: 12px; flex-shrink: 0; transition: background .25s, color .25s;
}
.menu-mock .mm-track-step.is-done .mm-track-bullet { background: var(--success); color: #fff; }
.menu-mock .mm-track-label { font-weight: 700; font-size: 12px; color: var(--text); }
.menu-mock .mm-track-sub { font-size: 10px; color: var(--text-muted); }
.menu-mock .mm-track-bill {
  margin: 12px; padding: 12px;
  background: var(--brand-50); border-radius: 10px;
  text-align: center;
}
.menu-mock .mm-track-amount { font-size: 18px; font-weight: 800; color: var(--brand); }

/* ================================================================
   v5.3 — Bigger client-logo cards
   ================================================================ */
.client-logo-grid {
  grid-template-columns: repeat(4, 1fr) !important;
  gap: 18px !important;
}
@media (max-width: 980px) { .client-logo-grid { grid-template-columns: repeat(3, 1fr) !important; } }
@media (max-width: 600px) { .client-logo-grid { grid-template-columns: repeat(2, 1fr) !important; gap: 12px !important; } }
.client-logo-card { aspect-ratio: 1.2 / 1 !important; border-radius: 14px !important; }
.client-logo-card img { transform: none; }
.client-logo-card:hover img { transform: scale(1.05); }
.client-logo-name { font-size: 15px !important; }
.client-logo-city { font-size: 12px !important; }
.client-logo-overlay { padding: 36px 16px 14px !important; }

/* ================================================================
   v5.3 — CUSTOMER MENU UX/UI 2.0
   Beautiful, modern, professional QR-menu redesign.
   The PHP/HTML structure is unchanged — these rules layer on top.
   ================================================================ */

/* -------- Page shell -------- */
body:has(.menu-hero) { background: linear-gradient(180deg, #fef7f7 0%, #fafafa 200px); }

/* -------- Hero — gradient with subtle pattern -------- */
.menu-hero {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%) !important;
  padding: 28px 20px 38px !important;
  position: relative;
  overflow: hidden;
}
.menu-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(circle at 20% 0%, rgba(255,255,255,.18) 0%, transparent 50%),
              radial-gradient(circle at 80% 100%, rgba(0,0,0,.18) 0%, transparent 50%);
  pointer-events: none;
}
.menu-hero h1 {
  font-size: 26px !important; font-weight: 800 !important;
  letter-spacing: -.5px !important; margin: 0 0 6px !important;
  position: relative; z-index: 1;
}
.menu-hero p { font-size: 13.5px !important; opacity: .92 !important; position: relative; z-index: 1; }

/* -------- Quick-action chip row -------- */
.menu-hero .flex,
.menu-hero ~ .container .flex.mb-3 {
  gap: 8px !important; flex-wrap: wrap;
}

/* -------- Menu items — modern card with hover lift -------- */
.menu-item {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  border-radius: 18px !important;
  padding: 14px !important; gap: 14px !important;
  margin-bottom: 14px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 4px 12px rgba(0,0,0,.04) !important;
  transition: transform .25s cubic-bezier(.2,.6,.2,1), box-shadow .25s ease, border-color .15s !important;
  display: flex; align-items: stretch;
  position: relative;
}
.menu-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 12px rgba(0,0,0,.06), 0 16px 32px rgba(198, 40, 40, .08) !important;
  border-color: rgba(198, 40, 40, .25) !important;
}
.menu-item.menu-item-apex { cursor: pointer; }
.menu-item.menu-item-apex::after {
  content: ''; position: absolute; top: 8px; right: 8px;
  width: 26px; height: 26px; border-radius: 50%;
  background: rgba(198, 40, 40, .08) url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23c62828" stroke-width="2.5" stroke-linecap="round" stroke-linejoin="round"><circle cx="11" cy="11" r="7"/><path d="m21 21-4.3-4.3"/></svg>') center / 14px no-repeat;
  opacity: 0; transition: opacity .15s;
}
.menu-item.menu-item-apex:hover::after { opacity: 1; }

/* Photo thumbnail — bigger, rounder, with subtle ring */
.menu-item .thumb {
  width: 110px !important; height: 110px !important;
  border-radius: 14px !important;
  object-fit: cover; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand-50), #fff);
}
@media (max-width: 540px) {
  .menu-item .thumb { width: 88px !important; height: 88px !important; }
}

/* Item title row */
.menu-item .info { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.menu-item .info .flex { gap: 6px; align-items: center; }
.menu-item .name {
  font-weight: 800 !important; font-size: 16.5px !important;
  letter-spacing: -.2px; color: #1a1a1a;
}
.menu-item .desc {
  color: #5f6368 !important; font-size: 13px !important;
  line-height: 1.4; margin-top: 2px !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Veg/non-veg dot — tighter rendering */
.menu-item .veg-dot { width: 14px !important; height: 14px !important; padding: 1.5px !important; flex-shrink: 0; }

/* Meta row at bottom of card */
.menu-item .meta {
  margin-top: auto !important;
  padding-top: 10px;
  display: flex; align-items: center; gap: 10px;
}
.menu-item .price {
  font-weight: 800 !important; font-size: 17px !important;
  color: var(--brand) !important; letter-spacing: -.2px;
}

/* Quantity stepper — pill style */
.menu-item .qty {
  display: inline-flex; align-items: center; gap: 6px;
  background: #f8f9fb; border: 1px solid var(--border);
  border-radius: 999px; padding: 3px 4px;
}
.menu-item .qty button {
  width: 30px !important; height: 30px !important;
  border-radius: 50% !important; border: 0 !important;
  background: #fff !important; color: var(--text) !important;
  font-size: 16px !important; font-weight: 700 !important; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
  box-shadow: 0 1px 2px rgba(0,0,0,.06);
  transition: all .12s;
}
.menu-item .qty button:hover { background: var(--brand-50) !important; color: var(--brand) !important; }
.menu-item .qty .qty-val { padding: 0 4px; font-weight: 800; min-width: 18px; text-align: center; font-size: 14px; }

/* Customise button (when item has modifiers) */
.menu-item .meta .btn-primary {
  border-radius: 999px !important; padding: 7px 14px !important; font-size: 12.5px !important;
}

/* Category headings — sticky tabs feel */
.menu-cat-title,
.container > h3 {
  position: relative;
  font-size: 18px; font-weight: 800; letter-spacing: -.3px;
  margin: 24px 0 14px; padding-left: 14px;
}
.menu-cat-title::before,
.container > h3::before {
  content: ''; position: absolute; left: 0; top: 6px; bottom: 6px;
  width: 4px; border-radius: 2px;
  background: linear-gradient(to bottom, var(--brand), #b91c1c);
}

/* Banner/promo callout */
.banner-promo {
  background: linear-gradient(135deg, #fff5f5 0%, #fee2e2 100%) !important;
  border: 1px solid var(--brand) !important;
  border-radius: 16px !important;
  padding: 14px 18px !important;
  box-shadow: 0 4px 14px rgba(198, 40, 40, .15);
}

/* Modifier picker modal — bottom-sheet style */
#mod-modal:not(.hide) { backdrop-filter: blur(8px); }
#mod-modal .card {
  border-radius: 22px 22px 0 0 !important;
  padding: 22px !important;
  box-shadow: 0 -8px 30px rgba(0,0,0,.18) !important;
}
#mod-modal h3 { font-size: 20px; font-weight: 800; }

/* Cart bar at bottom — gradient, prominent */
.cart-bar {
  background: linear-gradient(135deg, var(--brand) 0%, var(--brand-600) 100%) !important;
  padding: 14px 18px !important;
  box-shadow: 0 -8px 24px rgba(198, 40, 40, .25) !important;
  border-radius: 18px 18px 0 0 !important;
}
.cart-bar .count { font-weight: 700; font-size: 14px; }
.cart-bar .total { font-weight: 800; font-size: 16px; }
.cart-bar button {
  border-radius: 999px !important;
  padding: 10px 22px !important; font-size: 14px !important;
  background: #fff !important; color: var(--brand) !important;
  font-weight: 800 !important; box-shadow: 0 4px 12px rgba(0,0,0,.15);
  transition: transform .12s, box-shadow .12s;
}
.cart-bar button:hover { transform: scale(1.04); box-shadow: 0 6px 18px rgba(0,0,0,.2); }

/* "Search by item" chip / filter pills, language switcher */
.menu-hero .input,
.menu-hero select {
  background: rgba(255,255,255,.18) !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  color: #fff !important;
  border-radius: 10px !important;
  font-weight: 600;
}
.menu-hero .input::placeholder { color: rgba(255,255,255,.7) !important; }

/* Apex modal already styled — keep consistent rounding here */
.apex-modal-card { border-radius: 22px !important; }

/* Allergen / nutrition collapsible */
.menu-item details summary {
  font-size: 11.5px !important;
  background: var(--bg);
  display: inline-block;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  margin-top: 4px;
  user-select: none;
}
.menu-item details[open] summary { background: var(--brand-50); color: var(--brand); border-color: var(--brand); }

/* Empty-state message */
.container > .card.center { border-radius: 18px !important; padding: 32px !important; }

/* ----- Mobile fine-tuning ----- */
@media (max-width: 540px) {
  .menu-hero { padding: 22px 16px 30px !important; }
  .menu-hero h1 { font-size: 22px !important; }
  .menu-item { padding: 12px !important; gap: 12px !important; border-radius: 16px !important; }
  .menu-item .name { font-size: 15.5px !important; }
  .menu-item .desc { font-size: 12.5px !important; -webkit-line-clamp: 2; }
  .menu-item .price { font-size: 15.5px !important; }
}

/* ================================================================
   v5.4 — MODERN HOME PAGE — floating background decorations,
   glassmorphism, advanced hovers, gradient meshes.
   ================================================================ */

/* Layer floats behind every section but in front of the page background. */
.fbg-layer {
  position: absolute; inset: 0;
  pointer-events: none; overflow: hidden;
  z-index: 0;
}
body { position: relative; }
main { position: relative; z-index: 1; }

.fbg {
  position: absolute;
  opacity: .07;                  /* very low visibility */
  filter: drop-shadow(0 4px 12px rgba(0,0,0,.08));
  will-change: transform;
}
html[data-theme="dark"] .fbg { opacity: .04; }

/* Sizes & positions. Each one has its own coordinates + animation. */
.fbg-1  { width: 90px;  top: 8%;   left: 6%;  animation: fbg-float-a 18s ease-in-out infinite; }
.fbg-2  { width: 70px;  top: 14%;  right: 9%; animation: fbg-float-b 22s ease-in-out infinite; transform: rotate(-15deg); }
.fbg-3  { width: 80px;  top: 30%;  left: 4%;  animation: fbg-float-c 20s ease-in-out infinite; transform: rotate(20deg); }
.fbg-4  { width: 110px; top: 22%;  right: 5%; animation: fbg-float-a 24s ease-in-out infinite; transform: rotate(40deg); }
.fbg-5  { width: 75px;  top: 42%;  right: 14%; animation: fbg-float-b 19s ease-in-out infinite; transform: rotate(-25deg); }
.fbg-6  { width: 95px;  top: 50%;  left: 8%;  animation: fbg-float-c 21s ease-in-out infinite; }
.fbg-7  { width: 70px;  top: 60%;  right: 7%; animation: fbg-float-a 23s ease-in-out infinite; }
.fbg-8  { width: 60px;  top: 65%;  left: 12%; animation: fbg-float-b 17s ease-in-out infinite; transform: rotate(15deg); }
.fbg-9  { width: 90px;  top: 73%;  right: 10%; animation: fbg-float-c 25s ease-in-out infinite; transform: rotate(-30deg); }
.fbg-10 { width: 80px;  top: 78%;  left: 5%;  animation: fbg-float-a 20s ease-in-out infinite; }
.fbg-11 { width: 65px;  top: 84%;  right: 12%; animation: fbg-float-b 22s ease-in-out infinite; }
.fbg-12 { width: 100px; top: 38%;  left: 14%; animation: fbg-float-c 26s ease-in-out infinite; transform: rotate(8deg); }
.fbg-13 { width: 65px;  top: 88%;  left: 9%;  animation: fbg-float-a 19s ease-in-out infinite; transform: rotate(-12deg); }
.fbg-14 { width: 70px;  top: 92%;  right: 6%; animation: fbg-float-b 24s ease-in-out infinite; }
.fbg-15 { width: 110px; top: 18%;  left: 28%; animation: fbg-float-c 28s ease-in-out infinite; transform: rotate(35deg); }

/* Three slightly different idle animations so the page feels alive
   without being noisy. translateY + tiny rotate, gentle and slow. */
@keyframes fbg-float-a {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-20px) rotate(8deg); }
}
@keyframes fbg-float-b {
  0%, 100% { transform: translate(0, 0) rotate(-15deg); }
  50%      { transform: translate(8px, -15px) rotate(-5deg); }
}
@keyframes fbg-float-c {
  0%, 100% { transform: translate(0, 0) rotate(0deg); }
  33%      { transform: translate(-10px, -10px) rotate(6deg); }
  66%      { transform: translate(10px, -16px) rotate(-4deg); }
}

/* Hide / shrink on small screens so they don't get crowded */
@media (max-width: 760px) {
  .fbg { opacity: .05; }
  .fbg-1, .fbg-2, .fbg-3, .fbg-4, .fbg-5, .fbg-6, .fbg-7 { transform: scale(.7); }
  .fbg-8, .fbg-9, .fbg-10, .fbg-11, .fbg-12, .fbg-13, .fbg-14, .fbg-15 { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .fbg { animation: none; }
}

/* ================================================================
   v5.4 — Advanced section polish (gradient meshes, glass cards)
   ================================================================ */

/* Subtle radial gradient mesh on the hero (richer than the existing flat) */
.hero-modern {
  background:
    radial-gradient(ellipse 60% 80% at 20% 0%, rgba(198, 40, 40, .08), transparent 70%),
    radial-gradient(ellipse 40% 60% at 100% 50%, rgba(198, 40, 40, .06), transparent 70%),
    var(--bg);
  position: relative;
  overflow: hidden;
}

/* Channel cards — frosted glass treatment + animated border */
.channel-card {
  position: relative;
  background: rgba(255,255,255,.6) !important;
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(0,0,0,.06) !important;
  transition: transform .35s cubic-bezier(.2,.6,.2,1), box-shadow .25s, border-color .25s;
}
.channel-card::before {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  padding: 1px; background: linear-gradient(135deg, transparent, var(--brand), transparent);
  -webkit-mask: linear-gradient(#fff 0 0) content-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor; mask-composite: exclude;
  opacity: 0; transition: opacity .25s ease;
}
.channel-card:hover { transform: translateY(-6px); }
.channel-card:hover::before { opacity: 1; }
html[data-theme="dark"] .channel-card { background: rgba(23,23,26,.7) !important; }

/* Order-mode cards — modern lift, no overflow:hidden so the "MOST USED"
 * badge above the card is fully visible (was clipped previously). */
.order-mode-card {
  background: linear-gradient(135deg, rgba(255,255,255,.96), rgba(255,255,255,.88));
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  position: relative;
}
html[data-theme="dark"] .order-mode-card { background: linear-gradient(135deg, rgba(23,23,26,.96), rgba(23,23,26,.88)); }

/* Pricing cards — Pro / featured uses the SAME white background as Lite + Elite.
 * No animated gradient. Just the existing red border accent + lift transform. */

/* Industry cards — soft shadow + colour-on-hover */
.industry-card { transition: all .25s cubic-bezier(.2,.6,.2,1); }
.industry-card:hover {
  background: linear-gradient(135deg, var(--brand-50), #fff) !important;
  transform: translateY(-3px) scale(1.02);
  border-color: var(--brand) !important;
  box-shadow: 0 12px 28px rgba(198, 40, 40, .12);
}

/* Metric strip — pulsing accent */
.metric-strip .metric { position: relative; transition: transform .25s; }
.metric-strip .metric:hover { transform: translateY(-2px); }
.metric-strip .num {
  background: linear-gradient(135deg, var(--brand), #b91c1c);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
  font-weight: 800;
}

/* Section eyebrows — gradient pill */
.section-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: linear-gradient(135deg, var(--brand-50), rgba(198, 40, 40, .15));
  color: var(--brand) !important;
  padding: 5px 12px; border-radius: 999px;
  font-weight: 700; font-size: 11px; letter-spacing: .8px; text-transform: uppercase;
}

/* Feature blocks — subtle 3D tilt on image hover */
.feature-block .feat-img,
.feature-block img {
  transition: transform .4s cubic-bezier(.2,.6,.2,1), box-shadow .25s;
}
.feature-block:hover .feat-img,
.feature-block:hover img {
  transform: perspective(1000px) rotateY(-3deg) rotateX(2deg) translateZ(8px);
}

/* Testimonial cards — gradient border on hover */
.testimonial-card { position: relative; }
.testimonial-card::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit;
  background: linear-gradient(135deg, var(--brand), #b91c1c);
  opacity: 0; z-index: -1; transition: opacity .25s;
  margin: -1px;
}
.testimonial-card:hover::after { opacity: .4; }

/* Final CTA strip — animated gradient background */
.cta-strip {
  background:
    linear-gradient(135deg, var(--brand) 0%, #b91c1c 50%, var(--brand) 100%) !important;
  background-size: 200% 200% !important;
  animation: cta-gradient 12s ease infinite;
}
@keyframes cta-gradient {
  0%, 100% { background-position: 0% 50%; }
  50%      { background-position: 100% 50%; }
}

/* No-hidden-charges callout — premium look */
.no-hidden-charges-banner {
  background:
    linear-gradient(135deg, #ecfdf5 0%, #d1fae5 100%),
    radial-gradient(circle at 100% 0%, rgba(16, 185, 129, .15), transparent) !important;
  position: relative; overflow: hidden;
}
.no-hidden-charges-banner::before {
  content: ''; position: absolute; top: -50%; right: -30%; width: 50%; height: 200%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.4), transparent);
  transform: rotate(20deg); animation: nhc-shimmer 6s ease-in-out infinite;
}
@keyframes nhc-shimmer {
  0%, 100% { transform: translateX(0) rotate(20deg); opacity: 0; }
  50%      { transform: translateX(-100%) rotate(20deg); opacity: 1; }
}

/* Smooth section reveal-on-scroll feel via opacity transition (subtle) */
.section { transition: opacity .4s ease; }

/* Apex CTA card — animated shimmer on hover */
.apex-cta-card { position: relative; overflow: hidden; }
.apex-cta-card::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.3), transparent);
  transform: translateX(-100%); transition: transform .8s cubic-bezier(.2,.6,.2,1);
}
.apex-cta-card:hover::before { transform: translateX(100%); }

/* Phone-frame — subtle 3D + floating animation */
.phone-frame {
  animation: phone-float 6s ease-in-out infinite;
}
@keyframes phone-float {
  0%, 100% { transform: translateY(0); }
  50%      { transform: translateY(-8px); }
}
@media (prefers-reduced-motion: reduce) { .phone-frame { animation: none; } }

/* ================================================================
   v5.6 — Center alignment for ALL headings/subheadings + final
   orange→red purge. Highest specificity to override anything earlier.
   ================================================================ */

/* All marketing-page headings/subheadings centered. Excludes dashboard
 * headings (.dash h1/h2/h3) which stay left-aligned for data density,
 * and excludes the prose CMS body (which has its own typographic flow). */
main .section h1,
main .section h2,
main .section h3,
main .section h4,
main .section .lead,
main .section .section-eyebrow,
main .hero-modern h1,
main .hero-modern h2,
main .hero-modern .hero-sub,
main .hero-modern .hero-eyebrow,
main .cms-hero h1,
main .cms-hero h2,
main .cms-hero .cms-hero-sub,
main .cms-hero .hero-eyebrow,
main .cta-strip h2,
main .cta-strip p,
main .apex-cta-card .apex-cta-eyebrow,
main .apex-cta-card .apex-cta-title,
main .apex-cta-card .apex-cta-desc,
main .pricing h3,
main .channel-card h3,
main .order-mode-card h3,
main .footer .footer-heading {
  text-align: center !important;
}

/* Dashboard topbar h1 still left-aligned — explicit override */
.dash .topbar h1,
.dash h1,
.dash h2,
.dash h3,
.dash h4 {
  text-align: left !important;
}

/* Hero text container needs to be centered for the centered text to look right */
main .section .center,
main .section [class*="container"] > .center {
  margin-left: auto !important; margin-right: auto !important;
}

/* Section paragraph leads (centered above their grids) */
main .section .lead { max-width: 720px; margin-left: auto !important; margin-right: auto !important; }

/* Channel cards / pricing / industry — internal h3 stays centered */
main .channel-card h3, main .channel-card p,
main .pricing h3, main .pricing .price,
main .order-mode-card h3, main .order-mode-card > p {
  text-align: center !important;
}

/* List items inside cards stay left-aligned (justified-text rule from v5.2 also overrides) */
main .channel-card ul, main .order-mode-card ul, main .pricing ul,
main .order-mode-card ul li, main .channel-card ul li, main .pricing ul li {
  text-align: left !important;
}

/* ================================================================
   v5.6 — Metric strip: solid red, NO gradient (was looking orange)
   ================================================================ */
.metric-strip .num,
.metric-strip .metric .num {
  background: none !important;
  -webkit-background-clip: initial !important;
  background-clip: initial !important;
  -webkit-text-fill-color: var(--brand) !important;
  color: var(--brand) !important;
}

/* ================================================================
   v5.6 — AI launcher: SOLID red (was red→light-red gradient that
   could read as orange/warm). Also kill the warm pulse halo.
   ================================================================ */
.kai-launcher {
  background: linear-gradient(135deg, var(--brand) 0%, #b91c1c 100%) !important;
}
.kai-launcher-pulse {
  box-shadow: 0 0 0 0 rgba(198, 40, 40, .5) !important;
}
@keyframes kai-pulse {
  0%   { box-shadow: 0 0 0 0   rgba(198, 40, 40, .5); }
  70%  { box-shadow: 0 0 0 18px rgba(198, 40, 40, 0); }
  100% { box-shadow: 0 0 0 0   rgba(198, 40, 40, 0); }
}

/* Apex tier badge — solid brand red, no warm gradient */
.apex-tier-badge {
  background: linear-gradient(135deg, var(--brand) 0%, #b91c1c 100%) !important;
}

/* ================================================================
   v5.6 — HOME PAGE MODERNIZATION ROUND 2
   Researched patterns: layered hero gradients, mesh background on
   sections, refined card shadows, better hover micro-interactions,
   modern badge styles, depth via stacked decorations.
   ================================================================ */

/* Refined hero — softer mesh + decorated angle */
.hero-modern {
  background:
    radial-gradient(circle 600px at 15% -10%, rgba(198, 40, 40, .12), transparent 70%),
    radial-gradient(circle 500px at 95% 30%, rgba(220, 38, 38, .07), transparent 70%),
    radial-gradient(circle 700px at 50% 100%, rgba(254, 226, 226, .5), transparent 70%),
    var(--bg) !important;
}
.hero-modern .hero-eyebrow {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(198, 40, 40, .2);
  box-shadow: 0 4px 12px rgba(198, 40, 40, .08);
  padding: 6px 14px;
}
.hero-modern .hero-title {
  background: linear-gradient(135deg, #1a1a1a 0%, #1a1a1a 50%, #5f1a1a 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero-modern .hero-title .accent {
  -webkit-text-fill-color: var(--brand);
}

/* Section transitions — soft stripes between sections */
section.section + section.section { border-top: 1px solid rgba(198, 40, 40, .04); }

/* Card shadows — deeper, multi-layer (researched material design 3) */
.channel-card,
.order-mode-card,
.pricing,
.apex-cta-card,
.testimonial-card,
.feature-block,
.industry-card {
  box-shadow:
    0 1px 2px rgba(0,0,0,.04),
    0 4px 8px rgba(0,0,0,.04),
    0 16px 24px rgba(198, 40, 40, .04) !important;
}
.channel-card:hover,
.order-mode-card:hover,
.pricing:hover,
.apex-cta-card:hover,
.testimonial-card:hover {
  box-shadow:
    0 1px 2px rgba(0,0,0,.06),
    0 8px 20px rgba(0,0,0,.06),
    0 32px 48px rgba(198, 40, 40, .12) !important;
}

/* Channel cards — refined */
.channel-card .icon-box {
  width: 56px; height: 56px;
  background: linear-gradient(135deg, var(--brand-50), #fff5f5) !important;
  border: 1px solid rgba(198, 40, 40, .15);
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 28px; margin: 0 auto 16px;
}

/* Order-anywhere section — better backdrop */
.order-anywhere-section {
  background:
    radial-gradient(circle 400px at 0% 50%, rgba(198, 40, 40, .04), transparent 70%),
    radial-gradient(circle 400px at 100% 50%, rgba(245, 158, 11, .03), transparent 70%),
    var(--bg) !important;
}
.order-mode-icon {
  border: 1px solid rgba(198, 40, 40, .1);
  box-shadow: 0 4px 12px rgba(0,0,0,.04);
}

/* Industry grid — modern */
.industry-grid { gap: 14px !important; }
.industry-card {
  background: linear-gradient(135deg, #fff, #fafafa) !important;
  border-radius: 16px !important;
  transition: all .28s cubic-bezier(.2,.6,.2,1) !important;
}
.industry-card:hover {
  background: linear-gradient(135deg, var(--brand-50), #fff5f5) !important;
  transform: translateY(-4px) !important;
}

/* Pricing — deeper card style */
.pricing {
  border-radius: 22px !important;
  padding: 32px 28px !important;
}
.pricing.featured {
  background: linear-gradient(180deg, #fef7f7 0%, #fff 100%) !important;
}

/* CTA strip — depth */
.cta-strip {
  position: relative;
  overflow: hidden;
}
.cta-strip::before {
  content: ''; position: absolute; top: 0; left: 50%; transform: translateX(-50%);
  width: 200%; height: 100%; pointer-events: none;
  background: radial-gradient(ellipse 50% 80% at 50% 0%, rgba(255,255,255,.2), transparent 70%);
}

/* Testimonial — quote mark decoration */
.testimonial-card { position: relative; }
.testimonial-card::before {
  content: '"'; position: absolute; top: -8px; left: 16px;
  font-size: 80px; font-family: Georgia, serif;
  color: var(--brand); opacity: .12;
  line-height: 1; pointer-events: none;
  font-weight: 700;
}

/* No-hidden-charges — refined */
.no-hidden-charges-banner {
  border-radius: 18px !important;
  box-shadow: 0 8px 24px rgba(16, 185, 129, .1);
}
.nhc-icon {
  background: linear-gradient(135deg, #10b981, #059669);
  color: #fff;
  width: 56px; height: 56px;
  border-radius: 14px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 26px;
}

/* Floating decorations — even more subtle so they don't fight content */
.fbg { opacity: .05 !important; }

/* Final FAQ list polish */
details.faq-item, .section details {
  background: var(--surface);
  border-radius: 12px !important;
  border: 1px solid var(--border);
  margin-bottom: 10px;
  transition: all .2s;
}
details.faq-item:hover, .section details:hover {
  border-color: var(--brand);
  box-shadow: 0 4px 12px rgba(198, 40, 40, .06);
}

/* ================================================================
   v5.6 — QR MENU HERO 2.0
   Researched best-in-class design (Resy / Toast / Square Online).
   Background: restaurant cover photo with dark gradient overlay.
   Restaurant name in big serif-ish display type with floating eyebrow.
   ================================================================ */
.menu-hero-2 {
  position: relative;
  background-size: cover !important;
  background-position: center !important;
  padding: 0 !important;
  overflow: hidden;
  min-height: 280px;
  display: flex; flex-direction: column;
}
.menu-hero-2::after {
  content: ''; position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 60% 50% at 0% 100%, rgba(198, 40, 40, .25), transparent 60%),
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(0,0,0,.3), transparent 60%);
  pointer-events: none;
}

.menu-hero-bar {
  position: relative; z-index: 2;
  padding: 14px 0 6px;
  background: linear-gradient(180deg, rgba(0,0,0,.35), transparent);
}
.menu-hero-bar .container { padding: 0 16px; gap: 8px; }
.menu-hero-brand { display: inline-flex; align-items: center; gap: 8px; }
.menu-hero-logo {
  height: 38px; padding: 4px 10px; border-radius: 10px;
  background: rgba(255,255,255,.95);
  box-shadow: 0 4px 12px rgba(0,0,0,.15);
}
.menu-hero-pick,
.menu-hero-theme {
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.35);
  color: #fff !important;
  border-radius: 10px;
  padding: 6px 10px;
  font-size: 12.5px; font-weight: 600;
  cursor: pointer;
}
.menu-hero-theme {
  width: 36px; height: 36px;
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0;
}
.menu-hero-pick option { color: #1a1a1a; }

.menu-hero-body {
  position: relative; z-index: 2;
  padding: 36px 0 36px;
  flex: 1;
  display: flex; flex-direction: column; justify-content: flex-end;
}
.menu-hero-body .container { padding: 0 22px; }

.menu-hero-eyebrow {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,.18);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,.3);
  color: #fff !important;
  padding: 6px 12px; border-radius: 999px;
  font-size: 12px; font-weight: 700;
  letter-spacing: .04em;
  margin-bottom: 14px;
}

.menu-hero-name {
  margin: 0 0 8px !important;
  font-size: clamp(28px, 6vw, 42px) !important;
  font-weight: 800 !important;
  letter-spacing: -1px !important;
  color: #fff !important;
  text-shadow: 0 4px 24px rgba(0,0,0,.35);
  line-height: 1.05;
  /* Subtle gold-ish gradient for the name (research: Resy/OpenTable do this) */
  background: linear-gradient(135deg, #fff 0%, #fef2f2 100%);
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent;
}

.menu-hero-subtitle {
  margin: 0 !important;
  color: rgba(255,255,255,.92) !important;
  font-size: 14px !important;
  font-weight: 500;
  letter-spacing: .02em;
  text-shadow: 0 2px 10px rgba(0,0,0,.3);
}

/* Quick-action buttons under hero — pill-style with brand red on hover */
body:has(.menu-hero-2) .container > .flex > .btn-ghost.btn-sm {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.06) !important;
  color: #1a1a1a !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-size: 13px !important;
  box-shadow: 0 2px 6px rgba(0,0,0,.04);
  transition: all .15s ease;
}
body:has(.menu-hero-2) .container > .flex > .btn-ghost.btn-sm:hover {
  background: var(--brand-50) !important;
  border-color: var(--brand) !important;
  color: var(--brand) !important;
  transform: translateY(-1px);
  box-shadow: 0 6px 14px rgba(198, 40, 40, .15);
}

/* Page background tint behind menu items — soft, warm */
body:has(.menu-hero-2) {
  background:
    radial-gradient(circle 800px at 50% -200px, rgba(198, 40, 40, .04), transparent),
    #fafaf8 !important;
}

/* Menu item cards — final polish */
body:has(.menu-hero-2) .menu-item {
  background: #fff !important;
  border: 1px solid rgba(0,0,0,.05) !important;
  border-radius: 18px !important;
  box-shadow: 0 1px 2px rgba(0,0,0,.03), 0 4px 14px rgba(0,0,0,.04) !important;
  padding: 14px 16px !important;
  margin-bottom: 12px !important;
  position: relative;
  transition: transform .25s cubic-bezier(.2,.6,.2,1), box-shadow .25s, border-color .15s;
}
body:has(.menu-hero-2) .menu-item:hover {
  transform: translateY(-3px);
  border-color: rgba(198, 40, 40, .25) !important;
  box-shadow: 0 4px 12px rgba(0,0,0,.05), 0 16px 32px rgba(198, 40, 40, .1) !important;
}

/* Photo with rounded corners + subtle border */
body:has(.menu-hero-2) .menu-item .thumb {
  width: 100px !important; height: 100px !important;
  border-radius: 14px !important;
  object-fit: cover;
  border: 1px solid rgba(0,0,0,.05);
}

/* Item name + description — typographic refinement */
body:has(.menu-hero-2) .menu-item .name {
  font-size: 16.5px !important;
  font-weight: 800 !important;
  color: #1a1a1a !important;
  letter-spacing: -.2px;
  line-height: 1.3;
}
body:has(.menu-hero-2) .menu-item .desc {
  font-size: 12.5px !important;
  color: #5f6368 !important;
  line-height: 1.4;
  margin-top: 4px !important;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
}

/* Price — strong and red */
body:has(.menu-hero-2) .menu-item .price {
  font-weight: 800 !important;
  font-size: 17px !important;
  color: var(--brand) !important;
  letter-spacing: -.3px;
}

/* Quantity / add buttons */
body:has(.menu-hero-2) .menu-item .qty {
  background: var(--brand) !important;
  border: 0 !important;
  border-radius: 999px !important;
  padding: 3px 4px;
  box-shadow: 0 4px 10px rgba(198, 40, 40, .25);
}
body:has(.menu-hero-2) .menu-item .qty button {
  background: rgba(255,255,255,.25) !important;
  color: #fff !important;
  width: 30px !important; height: 30px !important;
  border: 0 !important;
  font-weight: 700 !important;
}
body:has(.menu-hero-2) .menu-item .qty button:hover {
  background: rgba(255,255,255,.4) !important;
  color: #fff !important;
}
body:has(.menu-hero-2) .menu-item .qty .qty-val {
  color: #fff !important; font-weight: 800; font-size: 14px;
  padding: 0 6px; min-width: 18px; text-align: center;
}

/* Customise button */
body:has(.menu-hero-2) .menu-item .meta .btn-primary {
  border-radius: 999px !important;
  padding: 8px 16px !important;
  font-size: 12.5px !important;
  box-shadow: 0 4px 10px rgba(198, 40, 40, .2) !important;
}

/* Category headings — accent bar + bigger type */
body:has(.menu-hero-2) .container > h3 {
  position: relative;
  font-size: 22px !important;
  font-weight: 800 !important;
  letter-spacing: -.4px;
  margin: 32px 0 16px !important;
  padding: 0 0 8px 0 !important;
  text-align: left !important;
  color: #1a1a1a;
}
body:has(.menu-hero-2) .container > h3::after {
  content: ''; position: absolute; left: 0; bottom: 0;
  width: 40px; height: 3px;
  border-radius: 2px;
  background: linear-gradient(90deg, var(--brand), #b91c1c);
}

/* Promo banner */
.banner-promo,
body:has(.menu-hero-2) .card.banner-promo {
  background: linear-gradient(135deg, #fef2f2, #fee2e2) !important;
  border: 1px solid rgba(198, 40, 40, .25) !important;
  border-radius: 16px !important;
  padding: 14px 18px !important;
  box-shadow: 0 4px 12px rgba(198, 40, 40, .08);
  position: relative; overflow: hidden;
}

/* Cart bar — premium, gradient */
body:has(.menu-hero-2) .cart-bar {
  background: linear-gradient(135deg, var(--brand) 0%, #b91c1c 100%) !important;
  border-radius: 22px 22px 0 0 !important;
  padding: 16px 20px !important;
  box-shadow: 0 -8px 28px rgba(198, 40, 40, .3) !important;
}
body:has(.menu-hero-2) .cart-bar button {
  background: #fff !important;
  color: var(--brand) !important;
  border-radius: 999px !important;
  padding: 11px 22px !important;
  font-size: 14px !important; font-weight: 800 !important;
  box-shadow: 0 6px 14px rgba(0,0,0,.18);
  transition: transform .12s, box-shadow .12s;
}
body:has(.menu-hero-2) .cart-bar button:hover {
  transform: scale(1.05);
  box-shadow: 0 10px 22px rgba(0,0,0,.25);
}

/* Section headings on QR menu page should NOT center (these are categories) */
body:has(.menu-hero-2) h1,
body:has(.menu-hero-2) h2,
body:has(.menu-hero-2) h3,
body:has(.menu-hero-2) h4 {
  text-align: left !important;
}
.menu-hero-2 h1 { text-align: left !important; }

/* Mobile fine-tuning */
@media (max-width: 540px) {
  .menu-hero-2 { min-height: 240px; }
  .menu-hero-name { font-size: 28px !important; }
  body:has(.menu-hero-2) .menu-item .thumb { width: 84px !important; height: 84px !important; }
  body:has(.menu-hero-2) .menu-item .name { font-size: 15px !important; }
  body:has(.menu-hero-2) .container > h3 { font-size: 20px !important; }
}

/* ================================================================
   v5.6.1 — QR menu hero override fix
   The earlier .menu-hero rule has background: linear-gradient !important
   which beats inline background-image. Override here so .menu-hero-2's
   inline restaurant-photo URL actually shows through.
   ================================================================ */
section.menu-hero-2 {
  /* Inline style on this element provides background-image with cover photo +
   * gradient overlay. We must NOT set background here; just reset properties. */
  background-color: #1a0808 !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
}
/* Specifically override the v5.3 .menu-hero rule that was overriding our inline */
section.menu-hero.menu-hero-2[style*="background-image"] {
  /* Browser uses the inline background-image. We just need to make sure no
   * later rule's `background:` shorthand wipes it. */
  background-color: transparent !important;
}

/* ================================================================
   v5.7 — HOME PAGE TWEAKS
   1) Hero title + subtitle LEFT-ALIGNED (revert v5.6 centering for
      the home hero only — section headings stay centered).
   2) Final CTA "Stop losing tables to slow service" — replace solid
      red gradient with a real restaurant photo + dark overlay so
      the heading + body text read like a magazine cover.
   ================================================================ */

/* 1. Hero left-align — overrides the v5.6 `text-align: center` rule.
 *    Use html body main … so specificity is high enough to beat anything. */
html body main section.hero-modern,
html body main section.hero-modern .container,
html body main section.hero-modern .hero-grid,
html body main section.hero-modern .hero-grid > div,
html body main section.hero-modern .hero-eyebrow,
html body main section.hero-modern .hero-title,
html body main section.hero-modern h1,
html body main section.hero-modern .hero-sub,
html body main section.hero-modern .hero-bullets,
html body main section.hero-modern .hero-bullets > div,
html body main section.hero-modern .hero-cta-row,
html body main section.hero-modern p {
  text-align: left !important;
}
/* Eyebrow chip: don't let display/inline-flex be confused by text-align */
html body main section.hero-modern .hero-eyebrow {
  margin-left: 0 !important;
  margin-right: auto !important;
  align-self: flex-start;
}
/* Hero subtitle keeps its 540px max-width but anchored to the left */
html body main section.hero-modern .hero-sub {
  margin-left: 0 !important;
  margin-right: auto !important;
}
/* Make sure the CTA row + bullets sit on the left edge too */
html body main section.hero-modern .hero-cta-row {
  justify-content: flex-start !important;
}
html body main section.hero-modern .hero-bullets {
  justify-content: flex-start !important;
}

/* ================================================================
   v5.9 — HOME PAGE: left-align ALL headings + subheadings.
   The v5.6 rule centered everything on marketing pages; user wants
   the home page to read like a magazine (flush-left). Other public
   pages (CMS pages, contact page) keep their centered headings.
   Scope is `body.page-home` so this only fires on the home view.
   ================================================================ */
body.page-home main h1,
body.page-home main h2,
body.page-home main h3,
body.page-home main h4,
body.page-home main h5,
body.page-home main p.lead,
body.page-home main .lead,
body.page-home main .section-eyebrow,
body.page-home main .hero-eyebrow,
body.page-home main .hero-sub,
body.page-home main .cms-hero-sub,
body.page-home main .cta-strip h2,
body.page-home main .cta-strip p,
body.page-home main .apex-cta-card .apex-cta-eyebrow,
body.page-home main .apex-cta-card .apex-cta-title,
body.page-home main .apex-cta-card .apex-cta-desc,
body.page-home main .pricing h3,
body.page-home main .pricing .price,
body.page-home main .channel-card h3,
body.page-home main .channel-card p,
body.page-home main .order-mode-card h3,
body.page-home main .order-mode-card > p,
body.page-home main .section .center,
body.page-home main .center {
  text-align: left !important;
}

/* Section header containers — strip the auto centering margin so the
 * eyebrow + h2 + lead all anchor to the container's left edge. */
body.page-home main .section .center,
body.page-home main .center {
  margin-left: 0 !important;
  margin-right: auto !important;
}
body.page-home main .section .lead {
  margin-left: 0 !important;
  margin-right: auto !important;
  max-width: 720px;
}

/* Buttons + CTAs that were centered via flex justify-content also flush left */
body.page-home main .cta-strip .container-sm,
body.page-home main .cta-strip .container-sm > div {
  text-align: left !important;
  justify-content: flex-start !important;
}
body.page-home main .cta-strip p {
  margin-left: 0 !important;
}

/* Pricing cards keep prices left-aligned, but list items already are */
body.page-home main .pricing ul,
body.page-home main .channel-card ul,
body.page-home main .order-mode-card ul {
  text-align: left !important;
}

/* Footer on home keeps its own layout — don't touch */
body.page-home main + .footer h1,
body.page-home main + .footer h2,
body.page-home main + .footer h3 { /* untouched */ }

/* 2. Final CTA — restaurant photo background + dark overlay.
 *    Photo: warm-lit dining room (Unsplash, royalty-free).
 *    Overlay gradient: dark on the diagonal so text never gets lost
 *    against the highlights of the underlying photo. */
.cta-strip {
  background:
    linear-gradient(135deg, rgba(0, 0, 0, .72) 0%, rgba(0, 0, 0, .55) 50%, rgba(40, 8, 8, .78) 100%),
    url('https://images.unsplash.com/photo-1517248135467-4c7edcad34c4?auto=format&fit=crop&w=1600&q=80') center/cover no-repeat !important;
  background-size: cover !important;
  animation: none !important;
  border: 1px solid rgba(255, 255, 255, .08);
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .15),
    0 24px 48px rgba(0, 0, 0, .25),
    inset 0 1px 0 rgba(255, 255, 255, .08) !important;
}
/* The pre-existing ::before adds a subtle white sheen at the top —
 * dial it back so the dark photo dominates. */
.cta-strip::before {
  background: radial-gradient(ellipse 60% 100% at 50% 0%, rgba(255, 255, 255, .08), transparent 70%) !important;
}
/* Heading + body text crisp white with a faint shadow for legibility */
.cta-strip h2 {
  color: #fff !important;
  text-shadow: 0 2px 12px rgba(0, 0, 0, .35);
  font-weight: 800 !important;
}
.cta-strip p {
  color: rgba(255, 255, 255, .92) !important;
  text-shadow: 0 1px 6px rgba(0, 0, 0, .3);
}
/* Buttons stay the same colour but pop a bit more against the photo */
.cta-strip .btn-primary {
  background: #fff !important;
  color: var(--brand) !important;
  box-shadow: 0 8px 20px rgba(0, 0, 0, .22) !important;
}
.cta-strip .btn-primary:hover {
  background: rgba(255, 255, 255, .94) !important;
  transform: translateY(-1px);
}
.cta-strip .btn-ghost {
  color: #fff !important;
  border-color: rgba(255, 255, 255, .55) !important;
  background: rgba(255, 255, 255, .06) !important;
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.cta-strip .btn-ghost:hover {
  background: rgba(255, 255, 255, .14) !important;
  border-color: #fff !important;
}

/* ================================================================
   v6.0 — Blog & Restpy Academy: magazine reading experience.
   Featured top card + responsive grid of cover-image cards;
   article reading view uses a hero image, justified body text,
   and proper typographic rhythm tuned for prose.
   ================================================================ */

/* Blog hero strip — softer than the home hero, just title + sub + tabs */
.blog-hero {
  padding: 72px 0 28px;
  background:
    radial-gradient(circle 600px at 12% -20%, rgba(198, 40, 40, .08), transparent 70%),
    radial-gradient(circle 500px at 92% 0%, rgba(254, 226, 226, .55), transparent 70%),
    var(--bg);
  border-bottom: 1px solid var(--border);
}
.blog-hero .blog-eyebrow {
  display: inline-block;
  font-size: 12px; letter-spacing: 1.2px; text-transform: uppercase;
  color: var(--brand); font-weight: 700; margin-bottom: 10px;
}
.blog-hero-title {
  font-size: clamp(34px, 5vw, 52px);
  letter-spacing: -1.6px; line-height: 1.05;
  margin: 4px 0 14px; font-weight: 800;
}
.blog-hero-sub {
  font-size: 18px; color: var(--text-muted);
  max-width: 680px; line-height: 1.55; margin: 0;
}

/* Tabs row above the hero title (Blog / Changelog / Press) */
.blog-tabs { display: flex; gap: 8px; margin-bottom: 18px; flex-wrap: wrap; }
.blog-tab {
  padding: 7px 16px; border-radius: 999px;
  font-size: 14px; font-weight: 600;
  background: var(--surface); color: var(--text);
  border: 1px solid var(--border);
  text-decoration: none; transition: all .15s ease;
}
.blog-tab:hover { border-color: var(--brand); color: var(--brand); }
.blog-tab.is-active { background: var(--brand); border-color: var(--brand); color: #fff !important; }

/* Section padding */
.blog-section { padding: 56px 0 96px; }

/* Empty state */
.blog-empty {
  text-align: center; padding: 80px 24px;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px;
}
.blog-empty-icon { font-size: 56px; margin-bottom: 12px; }
.blog-empty h3 { margin: 0 0 8px; font-size: 22px; }

/* Featured card — full-width, image left + body right (stacks on mobile) */
.blog-feature {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 22px; overflow: hidden;
  text-decoration: none; color: inherit;
  margin-bottom: 56px;
  transition: all .25s cubic-bezier(.2,.6,.2,1);
  box-shadow: 0 1px 2px rgba(0,0,0,.04), 0 8px 24px rgba(0,0,0,.04);
}
.blog-feature:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 40, 40, .35);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 24px 48px rgba(198, 40, 40, .12);
  text-decoration: none;
}
.blog-feature-img {
  background-size: cover; background-position: center;
  background-color: var(--brand-50);
  min-height: 360px; position: relative;
  display: flex; align-items: center; justify-content: center;
}
.blog-feature-img[data-fallback] {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.5), transparent 55%),
    linear-gradient(135deg, var(--brand) 0%, #b91c1c 100%);
}
.blog-feature-body {
  padding: 40px 44px; display: flex; flex-direction: column;
  justify-content: center; gap: 14px;
}
.blog-feature-title {
  font-size: clamp(24px, 2.6vw, 34px);
  letter-spacing: -.6px; line-height: 1.15;
  margin: 0; font-weight: 800; color: var(--text);
}
.blog-feature-excerpt {
  font-size: 16px; line-height: 1.6;
  color: var(--text-muted); margin: 0;
}

/* Card grid (3-up at desktop, 2-up at tablet, 1 at phone) */
.blog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.blog-grid-tight { gap: 20px; grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) {
  .blog-grid, .blog-grid-tight { grid-template-columns: repeat(2, 1fr); }
  .blog-feature { grid-template-columns: 1fr; }
  .blog-feature-img { min-height: 240px; }
  .blog-feature-body { padding: 28px; }
}
@media (max-width: 640px) {
  .blog-grid, .blog-grid-tight { grid-template-columns: 1fr; }
}

/* Card */
.blog-card {
  display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 18px; overflow: hidden;
  text-decoration: none; color: inherit;
  transition: all .22s cubic-bezier(.2,.6,.2,1);
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.blog-card:hover {
  transform: translateY(-4px);
  border-color: rgba(198, 40, 40, .3);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 16px 32px rgba(198, 40, 40, .1);
  text-decoration: none;
}
.blog-card-img {
  position: relative;
  height: 180px;
  background-size: cover; background-position: center;
  background-color: var(--brand-50);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.blog-card-img[data-fallback] {
  background:
    radial-gradient(circle at 30% 30%, rgba(255,255,255,.4), transparent 55%),
    linear-gradient(135deg, var(--brand) 0%, #7f1d1d 100%);
}
.blog-card-fallback-logo {
  width: 70px; height: 70px; opacity: .85;
  filter: brightness(0) invert(1);
}
.blog-card-sm .blog-card-img { height: 130px; }

.blog-card-body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.blog-card-title {
  font-size: 18px; line-height: 1.3; letter-spacing: -.3px;
  margin: 0; font-weight: 700; color: var(--text);
}
.blog-card-sm .blog-card-title { font-size: 15px; }
.blog-card-excerpt {
  font-size: 14px; line-height: 1.55;
  color: var(--text-muted); margin: 0; flex: 1;
}
.blog-card-meta {
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
  font-size: 12px; color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .5px; font-weight: 600;
}

/* Pills (kind badges) */
.blog-pill {
  display: inline-flex; align-items: center; gap: 4px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 11px; font-weight: 700; text-transform: uppercase;
  letter-spacing: .6px;
  background: var(--brand-50); color: var(--brand);
  border: 1px solid rgba(198, 40, 40, .2);
}
.blog-pill-blog       { background: rgba(198, 40, 40, .1);  color: var(--brand);  border-color: rgba(198, 40, 40, .25); }
.blog-pill-changelog  { background: rgba(16, 185, 129, .12); color: #047857;       border-color: rgba(16, 185, 129, .3); }
.blog-pill-press      { background: rgba(59, 130, 246, .12); color: #1d4ed8;       border-color: rgba(59, 130, 246, .3); }
.blog-pill-video      { background: rgba(239, 68, 68, .12);  color: #b91c1c;       border-color: rgba(239, 68, 68, .3); }
.blog-pill-checklist  { background: rgba(245, 158, 11, .12); color: #92400e;       border-color: rgba(245, 158, 11, .3); }
.blog-pill-article    { background: rgba(99, 102, 241, .12); color: #4338ca;       border-color: rgba(99, 102, 241, .3); }
.blog-pill-overlay {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: rgba(255, 255, 255, .92);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, .15);
}

.blog-readmore {
  font-size: 13px; font-weight: 700; color: var(--brand);
  letter-spacing: .2px; margin-top: 4px;
}

/* ============= Article reading view ============= */
.blog-article { padding: 56px 0 24px; }
.blog-article-head { margin-bottom: 36px; }
.blog-back {
  display: inline-block; font-size: 13px; color: var(--text-muted);
  text-decoration: none; margin-bottom: 22px; font-weight: 600;
}
.blog-back:hover { color: var(--brand); text-decoration: none; }
.blog-article-title {
  font-size: clamp(30px, 4.5vw, 48px);
  letter-spacing: -1.4px; line-height: 1.08; font-weight: 800;
  margin: 14px 0 16px; color: var(--text);
}
.blog-article-deck {
  font-size: 20px; line-height: 1.5; color: var(--text-muted);
  margin: 0 0 28px; font-weight: 400;
}
.blog-article-byline { display: flex; gap: 14px; align-items: center; margin-top: 20px; }
.blog-author-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--brand) 0%, #b91c1c 100%);
  color: #fff; font-weight: 800; font-size: 17px;
  display: flex; align-items: center; justify-content: center;
}
.blog-author-name { font-weight: 700; font-size: 14px; }
.blog-author-meta { font-size: 13px; color: var(--text-muted); }

.blog-article-hero {
  margin: 8px 0 40px;
  border-radius: 0;
  overflow: hidden;
}
.blog-article-hero img {
  width: 100%; height: auto; display: block;
  max-height: 540px; object-fit: cover;
}
.blog-article-hero-inline {
  margin: 24px 0 32px;
  border-radius: 16px;
}
.blog-article-hero-inline img {
  border-radius: 16px;
  max-height: 420px;
}

/* The actual prose — JUSTIFIED text per request */
.blog-article-body {
  font-size: 17.5px;
  line-height: 1.78;
  color: var(--text);
  text-align: justify;
  hyphens: auto;
  -webkit-hyphens: auto;
  text-justify: inter-word;
}
.blog-article-body > * { max-width: 100%; }
.blog-article-body p { margin: 0 0 22px; }
.blog-article-body h2 {
  font-size: 28px; letter-spacing: -.6px;
  margin: 44px 0 14px; line-height: 1.2;
  text-align: left; font-weight: 800;
}
.blog-article-body h3 {
  font-size: 22px; margin: 32px 0 10px;
  text-align: left; font-weight: 700;
}
.blog-article-body h4 {
  font-size: 18px; margin: 24px 0 8px;
  text-align: left; font-weight: 700;
}
.blog-article-body ul,
.blog-article-body ol { padding-left: 22px; margin: 0 0 22px; text-align: left; }
.blog-article-body li { margin: 6px 0; }
.blog-article-body a {
  color: var(--brand); font-weight: 600;
  text-decoration: underline; text-decoration-thickness: 1.5px;
  text-underline-offset: 3px;
}
.blog-article-body a:hover { color: #b91c1c; }
.blog-article-body strong { font-weight: 700; color: var(--text); }
.blog-article-body em { font-style: italic; }
.blog-article-body blockquote {
  margin: 28px 0;
  padding: 18px 24px;
  border-left: 4px solid var(--brand);
  background: var(--brand-50);
  border-radius: 8px;
  font-size: 18px; line-height: 1.55;
  color: var(--text); font-style: italic;
  text-align: left;
}
.blog-article-body blockquote p:last-child { margin-bottom: 0; }
.blog-article-body img {
  max-width: 100%; height: auto;
  border-radius: 12px;
  margin: 28px auto; display: block;
}
.blog-article-body code {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  background: var(--surface);
  padding: 2px 6px; border-radius: 4px;
  font-size: 0.9em;
}
.blog-article-body pre {
  background: #1a1a1a; color: #f5f5f5;
  padding: 18px 22px; border-radius: 10px;
  overflow-x: auto; margin: 24px 0;
  font-size: 14px; line-height: 1.5;
  text-align: left;
}
.blog-article-body pre code { background: transparent; padding: 0; color: inherit; }

.blog-article-tags {
  margin-top: 36px; padding-top: 24px;
  border-top: 1px solid var(--border);
  display: flex; gap: 8px; flex-wrap: wrap;
}
.blog-article-tags .pill {
  background: var(--surface); border: 1px solid var(--border);
  font-size: 12px; padding: 4px 12px; border-radius: 999px;
  color: var(--text-muted);
}

/* Read-next strip */
.blog-related {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 56px; padding-bottom: 80px;
}
.blog-related-heading {
  font-size: 24px; margin: 0 0 28px; letter-spacing: -.4px;
}

/* ============= Academy ============= */
.academy-category { margin-bottom: 56px; }
.academy-category:last-child { margin-bottom: 0; }
.academy-category-head {
  display: flex; align-items: baseline; gap: 16px;
  margin-bottom: 22px; padding-bottom: 14px;
  border-bottom: 1px solid var(--border);
}
.academy-category-head h2 {
  font-size: 24px; margin: 0; letter-spacing: -.4px;
  font-weight: 700;
}
.academy-category-count {
  font-size: 13px; color: var(--text-muted);
  font-weight: 600;
}

.academy-post { padding: 48px 0 80px; }
.academy-post-grid {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 48px;
  align-items: start;
}
@media (max-width: 980px) {
  .academy-post-grid { grid-template-columns: 1fr; gap: 28px; }
  .academy-sidebar { position: static !important; max-height: none !important; }
}

.academy-sidebar {
  position: sticky; top: 90px;
  max-height: calc(100vh - 110px);
  overflow-y: auto;
  padding-right: 16px;
  border-right: 1px solid var(--border);
}
.academy-sidebar-group { margin-top: 22px; }
.academy-sidebar-cat {
  font-size: 11px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--text-muted); font-weight: 700; margin-bottom: 8px;
}
.academy-sidebar-link {
  display: flex; gap: 8px; align-items: flex-start;
  padding: 7px 10px; border-radius: 8px;
  font-size: 14px; line-height: 1.4;
  text-decoration: none; color: var(--text);
  transition: background .15s ease;
}
.academy-sidebar-link:hover { background: var(--bg); text-decoration: none; }
.academy-sidebar-link.is-active {
  background: var(--brand-50); color: var(--brand); font-weight: 700;
}

.academy-article { min-width: 0; } /* prevent grid blow-out */
.academy-video {
  position: relative; padding-top: 56.25%;
  border-radius: 14px; overflow: hidden;
  margin: 24px 0 32px; background: #000;
}
.academy-video iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}

/* On phone, drop to comfortable read width and don't justify too aggressively
 * (justified prose with hyphenation tends to look ragged on narrow columns) */
@media (max-width: 640px) {
  .blog-article-body { font-size: 16.5px; line-height: 1.7; text-align: left; }
  .blog-article-body h2 { font-size: 24px; }
}

/* ================================================================
   v6.2 — Hero trust strip — RESPONSIVE REWRITE
   3 KPI cards in a row on desktop, 3 still in a row on tablet (smaller),
   stacked vertically on phones with a clean card look.
   Uses CSS grid so spacing stays mathematically equal at every size.
   ================================================================ */
.hero-trust {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  margin-top: 28px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .04),
    0 8px 24px rgba(198, 40, 40, .05);
  max-width: 620px;
  overflow: hidden;
}

.hero-trust-item {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  min-width: 0;
}
/* Internal divider lines via right-border on the first two cells */
.hero-trust-item + .hero-trust-divider + .hero-trust-item,
.hero-trust > .hero-trust-item:not(:last-child) {
  border-right: 1px solid var(--border);
}

.hero-trust-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-50); color: var(--brand);
  font-size: 18px; flex-shrink: 0;
}
.hero-trust-stars {
  display: inline-flex; gap: 1px;
  font-size: 18px; line-height: 1; color: #f59e0b;
  flex-shrink: 0;
  width: 38px; height: 38px;
  align-items: center; justify-content: center;
  background: rgba(245, 158, 11, .1);
  border-radius: 10px;
  font-size: 13px;
  letter-spacing: -1px;
}
.hero-trust-stars span { display: inline-block; }
.hero-trust-text {
  min-width: 0;
  display: flex; flex-direction: column;
}
.hero-trust-text strong {
  font-size: 15px; font-weight: 800;
  color: var(--text); line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.hero-trust-text small {
  font-size: 11.5px; color: var(--text-muted);
  margin-top: 2px; line-height: 1.25;
  font-weight: 500;
}
/* The old explicit divider <div> is no longer used (replaced by border-right);
 * keep it visually hidden so existing markup still works. */
.hero-trust-divider { display: none; }

/* Tablet — keep 3-col but tighten paddings */
@media (max-width: 980px) {
  .hero-trust { max-width: 100%; }
  .hero-trust-item { padding: 14px 14px; gap: 10px; }
  .hero-trust-icon, .hero-trust-stars {
    width: 34px; height: 34px; font-size: 16px;
  }
  .hero-trust-text strong { font-size: 14px; }
  .hero-trust-text small  { font-size: 11px; }
}

/* Phone — stack vertically; each row a full-width card-row. */
@media (max-width: 600px) {
  .hero-trust {
    grid-template-columns: 1fr;
    margin-top: 22px;
  }
  .hero-trust > .hero-trust-item:not(:last-child) {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }
  .hero-trust-item { padding: 12px 16px; }
  .hero-trust-icon, .hero-trust-stars {
    width: 36px; height: 36px;
  }
}

/* ================================================================
   v6.3 — FEATURE GRID (replaces v6.1 asymmetric bento).
   Strict 3-up grid of equal-size cards. Predictable rhythm.
   Breakpoints: 1100→3-col, 760→2-col, 540→1-col.
   One card may be `feature-tile-accent` for visual emphasis but it's
   the SAME size — no row/column spans.
   ================================================================ */
.feature-grid-section { padding: 80px 0; }

.feature-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}

.feature-tile {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 26px 24px 24px;
  display: flex; flex-direction: column; gap: 10px;
  transition: transform .2s ease, border-color .2s ease, box-shadow .2s ease;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .03);
  min-height: 200px;
}
.feature-tile:hover {
  transform: translateY(-3px);
  border-color: rgba(198, 40, 40, .3);
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 12px 28px rgba(198, 40, 40, .1);
}
.feature-tile h3 {
  font-size: 18px;
  line-height: 1.25;
  letter-spacing: -.2px;
  margin: 4px 0 0;
  font-weight: 700;
  color: var(--text);
  display: flex; align-items: center; gap: 8px; flex-wrap: wrap;
}
.feature-tile p {
  font-size: 14.5px;
  line-height: 1.55;
  color: var(--text-muted);
  margin: 0;
}
.feature-tile-icon {
  width: 48px; height: 48px;
  border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 22px;
  flex-shrink: 0;
  background: var(--brand-50);
  color: var(--brand);
}
/* Pill on a tile (e.g. NEW) */
.feature-tile-pill {
  display: inline-flex; align-items: center;
  background: var(--brand);
  color: #fff;
  font-size: 10.5px; font-weight: 800;
  text-transform: uppercase; letter-spacing: .6px;
  padding: 2.5px 8px;
  border-radius: 999px;
  white-space: nowrap;
}
.feature-tile-accent .feature-tile-pill {
  background: rgba(255, 255, 255, .25);
  color: #fff;
  backdrop-filter: blur(8px);
}

/* Single-card emphasis — same size, brand-coloured surface */
.feature-tile-accent {
  background: linear-gradient(135deg, var(--brand) 0%, #b91c1c 100%);
  border-color: transparent;
  color: #fff;
}
.feature-tile-accent h3,
.feature-tile-accent p { color: #fff; }
.feature-tile-accent p { opacity: .92; }
.feature-tile-accent .feature-tile-icon {
  background: rgba(255, 255, 255, .2);
  color: #fff;
}
.feature-tile-accent:hover {
  box-shadow: 0 1px 2px rgba(0, 0, 0, .05), 0 18px 40px rgba(198, 40, 40, .35);
}

/* Tablet — 2-up */
@media (max-width: 980px) {
  .feature-grid-section { padding: 64px 0; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .feature-tile { padding: 22px 20px 20px; min-height: 180px; }
  .feature-tile h3 { font-size: 17px; }
  .feature-tile p  { font-size: 14px; }
  .feature-tile-icon { width: 44px; height: 44px; font-size: 20px; }
}
/* Small tablet / large phone — still 2-up but more compact */
@media (max-width: 720px) {
  .feature-grid { gap: 12px; }
  .feature-tile { padding: 20px 18px 18px; min-height: 0; }
}
/* Phone — single column */
@media (max-width: 480px) {
  .feature-grid-section { padding: 48px 0; }
  .feature-grid { grid-template-columns: 1fr; gap: 12px; }
  .feature-tile { padding: 20px 18px 18px; }
  .feature-tile-icon { width: 42px; height: 42px; font-size: 19px; }
}

/* ================================================================
   v6.1 — DASHBOARD UX UPGRADES
   Research: 2026 SaaS dashboards = command palette + sticky context
   + KPI-with-trend hierarchy. All three reduce time-to-action.
   ================================================================ */

/* ---- Command palette trigger in topbar ---- */
.cmdk-trigger {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 10px;
  color: var(--text-muted);
  font-size: 13px; font-weight: 500;
  cursor: pointer; transition: all .15s ease;
  margin-right: 8px;
}
.cmdk-trigger:hover { border-color: var(--brand); color: var(--brand); }
.cmdk-trigger-icon { font-size: 13px; }
.cmdk-trigger-label { display: inline; }
.cmdk-trigger-kbd {
  font-size: 10.5px; font-weight: 600;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 1.5px 5px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
@media (max-width: 700px) {
  .cmdk-trigger-label, .cmdk-trigger-kbd { display: none; }
  .cmdk-trigger { padding: 7px 10px; }
}

/* ---- Command palette overlay ----
 * v6.7 — Bug fix: `display: flex` was overriding the browser's default
 * `[hidden] { display: none }` rule, so the palette was visible on page
 * load instead of staying closed until ⌘K. Force-hide when [hidden]. */
.cmdk-overlay[hidden] { display: none !important; }
.cmdk-overlay {
  position: fixed; inset: 0; z-index: 9000;
  background: rgba(15, 15, 20, .55);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  display: flex; align-items: flex-start; justify-content: center;
  padding: 14vh 16px 16px;
  animation: cmdk-fade .14s ease-out;
}
@keyframes cmdk-fade {
  from { opacity: 0; }
  to   { opacity: 1; }
}
body.cmdk-open { overflow: hidden; }
.cmdk-modal {
  width: 100%; max-width: 600px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  box-shadow:
    0 1px 2px rgba(0, 0, 0, .12),
    0 24px 56px rgba(0, 0, 0, .35);
  overflow: hidden;
  animation: cmdk-slide .18s cubic-bezier(.2, .6, .2, 1);
}
@keyframes cmdk-slide {
  from { transform: translateY(-12px); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cmdk-search {
  display: flex; align-items: center; gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--border);
}
.cmdk-search-icon { font-size: 18px; opacity: .6; }
.cmdk-search input {
  flex: 1; border: 0; outline: 0; background: transparent;
  font-size: 16px; color: var(--text);
  font-family: inherit;
}
.cmdk-esc {
  font-size: 11px; font-weight: 600;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: 4px; padding: 2px 7px;
  color: var(--text-muted);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  text-transform: uppercase;
}
.cmdk-list {
  max-height: 60vh; overflow-y: auto;
  padding: 6px;
}
.cmdk-group {
  font-size: 11px; text-transform: uppercase; letter-spacing: 1px;
  font-weight: 700; color: var(--text-muted);
  padding: 14px 14px 6px;
}
.cmdk-item {
  display: flex; align-items: center; gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  text-decoration: none;
  color: var(--text); font-size: 14px;
  cursor: pointer;
  transition: background .08s ease;
}
.cmdk-item.is-active {
  background: var(--brand-50);
  color: var(--brand);
}
.cmdk-item:hover { text-decoration: none; }
.cmdk-item-icon { font-size: 16px; flex-shrink: 0; width: 22px; text-align: center; }
.cmdk-item-label { flex: 1; }
.cmdk-enter {
  font-size: 11px; font-weight: 700;
  background: rgba(255, 255, 255, .8);
  border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 6px;
  color: var(--brand);
}
.cmdk-empty {
  padding: 28px 18px; text-align: center;
  color: var(--text-muted); font-size: 14px;
}
.cmdk-foot {
  display: flex; gap: 18px;
  padding: 10px 18px;
  font-size: 11.5px; color: var(--text-muted);
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.cmdk-foot kbd {
  font-size: 10.5px; font-weight: 600;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: 4px; padding: 1px 5px; margin-right: 4px;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}

/* Dark theme tweaks for cmdk */
html[data-theme="dark"] .cmdk-modal { background: #1a1a1a; }
html[data-theme="dark"] .cmdk-search { border-bottom-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .cmdk-foot { background: rgba(255,255,255,.02); border-top-color: rgba(255,255,255,.08); }
html[data-theme="dark"] .cmdk-item.is-active { background: rgba(198, 40, 40, .2); color: #fca5a5; }
html[data-theme="dark"] .cmdk-enter { background: rgba(0,0,0,.4); color: #fca5a5; }

/* ---- Sticky dashboard context strip ---- */
.dash-context {
  display: flex; align-items: center; gap: 14px;
  padding: 10px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 12px;
  margin: 6px 0 16px;
  font-size: 13px;
  position: sticky;
  top: 70px;
  z-index: 80;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.dash-context-item {
  display: flex; align-items: center; gap: 8px;
}
.dash-context-icon { font-size: 14px; }
.dash-context-label {
  color: var(--text-muted);
  text-transform: uppercase; letter-spacing: .5px;
  font-size: 11px; font-weight: 600;
}
.dash-context-item strong {
  color: var(--text); font-weight: 700;
}
.dash-context-divider {
  width: 1px; height: 18px; background: var(--border);
}
.dash-context-spacer { flex: 1; }
.dash-context-action {
  padding: 6px 12px;
  background: var(--brand); color: #fff !important;
  border-radius: 8px;
  font-size: 12.5px; font-weight: 700;
  text-decoration: none;
  transition: background .15s ease;
}
.dash-context-action:hover { background: #b91c1c; text-decoration: none; }
@media (max-width: 700px) {
  .dash-context { flex-wrap: wrap; gap: 10px 14px; padding: 10px 12px; }
  .dash-context-divider { display: none; }
  .dash-context-action { font-size: 12px; padding: 5px 10px; }
  .dash-context-spacer { flex-basis: 0; }
}

/* ---- KPI strip with sparklines ---- */
.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
}
@media (max-width: 980px) { .kpi-strip { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .kpi-strip { grid-template-columns: 1fr; } }

.kpi-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px 20px 16px;
  display: flex; flex-direction: column; gap: 10px;
  transition: all .2s ease;
  box-shadow: 0 1px 2px rgba(0,0,0,.03);
}
.kpi-card:hover {
  border-color: rgba(198, 40, 40, .25);
  box-shadow: 0 1px 2px rgba(0,0,0,.05), 0 12px 24px rgba(0,0,0,.06);
}
.kpi-head {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 12px;
}
.kpi-label {
  font-size: 12px; text-transform: uppercase; letter-spacing: .8px;
  color: var(--text-muted); font-weight: 700;
  margin-bottom: 6px;
}
.kpi-value {
  font-size: 28px; line-height: 1; font-weight: 800;
  letter-spacing: -.6px; color: var(--text);
}
.kpi-icon {
  width: 38px; height: 38px; border-radius: 10px;
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 18px; flex-shrink: 0;
}
.kpi-spark {
  width: 100%; height: 28px;
  margin-top: 4px;
}
.kpi-delta {
  font-size: 12px; font-weight: 700;
  padding: 2px 8px; border-radius: 999px;
  display: inline-flex; align-items: center;
  align-self: flex-start;
}
.kpi-delta-up   { background: rgba(16, 185, 129, .12); color: #047857; }
.kpi-delta-down { background: rgba(239, 68, 68,  .12); color: #b91c1c; }
.kpi-delta-flat { background: var(--bg);  color: var(--text-muted); }
.kpi-link {
  font-size: 13px; font-weight: 700; color: var(--brand);
  text-decoration: none; margin-top: auto;
}
.kpi-link:hover { text-decoration: underline; }

/* ================================================================
   v6.1 — QR MENU UX UPGRADES
   Research: 2026 QR menu best practices = sticky horizontal category
   chips with scrollspy, large tap targets, premium cart bar.
   ================================================================ */

/* Horizontal category chip rail — sticky under the hero, snap-scrolls on phones */
.cat-chip-rail {
  position: sticky;
  top: 0; z-index: 50;
  margin: 6px -12px 14px;
  padding: 10px 12px;
  display: flex; gap: 8px;
  overflow-x: auto; overflow-y: hidden;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
  /* Hide the scrollbar but keep scrolling */
  scrollbar-width: none;
}
.cat-chip-rail::-webkit-scrollbar { display: none; }
.cat-chip {
  flex-shrink: 0;
  scroll-snap-align: start;
  padding: 9px 16px;
  font-size: 14px; font-weight: 600;
  background: var(--surface);
  color: var(--text);
  border: 1.5px solid var(--border);
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
  white-space: nowrap;
  font-family: inherit;
}
.cat-chip:hover { border-color: rgba(198, 40, 40, .3); }
.cat-chip.is-active {
  background: var(--brand);
  border-color: var(--brand);
  color: #fff;
  box-shadow: 0 4px 12px rgba(198, 40, 40, .25);
}
.cat-heading {
  scroll-margin-top: 80px; /* so the sticky rail doesn't cover the heading */
}

/* ---- Cart bar refinements ---- */
.cart-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 18px !important;
  border-radius: 16px 16px 0 0 !important;
  background: linear-gradient(135deg, var(--brand) 0%, #b91c1c 100%) !important;
  box-shadow: 0 -8px 28px rgba(0, 0, 0, .18) !important;
  animation: cart-bar-slide-in .32s cubic-bezier(.2, .6, .2, 1);
}
@keyframes cart-bar-slide-in {
  from { transform: translateY(100%); opacity: 0; }
  to   { transform: translateY(0); opacity: 1; }
}
.cart-bar.hide { display: none; }
.cart-bar-icon {
  width: 40px; height: 40px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px);
  display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px;
}
.cart-bar-info { flex: 1; min-width: 0; }
.cart-bar .count {
  font-weight: 800; font-size: 15px;
  color: #fff; line-height: 1.2;
}
.cart-bar-meta {
  font-size: 13px;
  color: rgba(255, 255, 255, .9);
  margin-top: 1px;
}
.cart-bar .total { font-weight: 700; }
.cart-bar-cta {
  background: #fff !important;
  color: var(--brand) !important;
  padding: 11px 18px !important;
  border-radius: 12px !important;
  font-weight: 800 !important;
  font-size: 14px !important;
  border: 0 !important;
  box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
  cursor: pointer;
  transition: transform .12s ease;
  white-space: nowrap;
}
.cart-bar-cta:hover { transform: translateY(-1px); }
.cart-bar-cta:active { transform: translateY(0); }
@media (max-width: 480px) {
  .cart-bar { padding: 12px 14px !important; gap: 10px; }
  .cart-bar-icon { width: 36px; height: 36px; font-size: 18px; }
  .cart-bar-cta { padding: 10px 14px !important; font-size: 13px !important; }
}

/* ================================================================
   v6.2 — IMAGE LOADING UX
   Goal: zero broken-icon flicker on slow CDN first-hit.
   - Soft brand-tinted placeholder behind every <img> so during the
     load window the slot looks intentional (gradient skeleton).
   - cms-hero already has `background-color: var(--brand)` so even if
     the Unsplash hero is still in flight, the section paints red.
   - body content images get the gradient too — cleaner than the
     browser's default broken-image icon. */
img {
  background-color: rgba(198, 40, 40, .04);
}
.cms-body img,
.blog-article-body img,
.mega-card img {
  background-image:
    linear-gradient(135deg, rgba(198, 40, 40, .06) 0%, rgba(198, 40, 40, .14) 100%);
  /* Keep the layout stable during slow first paint. The original
   * hero/figure CSS already provides a fixed height; this is only a
   * floor. */
  min-height: 1px;
}
.mega-card img {
  /* Mega menu thumbnails: ensure they don't visibly show the gradient
   * once loaded — the natural `object-fit: cover` already crops, but
   * we want the placeholder to disappear cleanly when src loads. */
  background-color: var(--brand-50);
}

/* When an <img> fails entirely the browser would normally render the
 * alt text + a broken-image glyph. We don't want that on marketing
 * pages — fall back to the gradient instead. */
img:not([src]),
img[src=""] {
  visibility: hidden;
}

/* CMS-hero already has fallback brand color — make the transition
 * to the loaded image smoother. */
.cms-hero {
  transition: background-image .3s ease;
}
