:root {
  --ink: #0F172A;
  --ink-2: #1e293b;
  --soft: #475569;
  --mute: #64748b;
  --line: #e2e8f0;
  --sheet: #F8FAFC;
  --pure: #fff;
  --cta: #FF4C29;
  --cta-2: #e23d1d;
  --wa: #25D366;
  --wa-ink: #053;
  --ok: #067647;
  --ok-bg: #dcfce7;
  --err: #b42318;
  --err-bg: #fee2e2;
  --warn: #b54708;
  --warn-bg: #fffaeb;
  --paper: #f7f1e8;
  --foam: #fffdf9;
  --sans: Inter, ui-sans-serif, system-ui, sans-serif;
  --display: Poppins, Inter, sans-serif;
  --shadow: 0 18px 50px rgba(15, 23, 42, .08);
  --r: 18px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; font-family: var(--sans); color: var(--ink); background: var(--pure); line-height: 1.5; }
h1, h2, h3, .brand, .display { font-family: var(--display); letter-spacing: -.03em; }
a { color: inherit; }
img { max-width: 100%; display: block; }
button, input, select, textarea { font: inherit; }
.wrap { width: min(1120px, calc(100% - 32px)); margin: 0 auto; }
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 20px; border: 0; border-radius: 999px;
  background: var(--cta); color: #fff; font-weight: 700; text-decoration: none; cursor: pointer;
  box-shadow: 0 10px 24px rgba(255, 76, 41, .25);
}
.btn:hover { background: var(--cta-2); }
.btn.dark { background: var(--ink); box-shadow: none; }
.btn.line { background: #fff; color: var(--ink); border: 1px solid var(--line); box-shadow: none; }
.btn.wa { background: var(--wa); color: #062; box-shadow: 0 10px 24px rgba(37, 211, 102, .28); }
.btn.sm { min-height: 36px; padding: 0 12px; font-size: .9rem; }
.btn.ghost { background: transparent; color: #fff; box-shadow: none; border: 1px solid #fff3; }
.micro { color: var(--soft); font-size: .92rem; }
.ok { color: var(--ok); } .err { color: var(--err); }
.flash { background: var(--ok-bg); color: var(--ok); padding: 12px 14px; border-radius: 12px; margin-bottom: 16px; font-weight: 600; }
.flash.err { background: var(--err-bg); color: var(--err); }

/* Landing */
.topbar { position: sticky; top: 0; z-index: 40; background: rgba(15,23,42,.92); color: #fff; backdrop-filter: blur(12px); }
.topbar .wrap { display: flex; align-items: center; justify-content: space-between; min-height: 68px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 800; text-decoration: none; }
.brand img { width: 36px; height: 36px; border-radius: 10px; object-fit: cover; }
.nav { display: flex; gap: 18px; align-items: center; }
.nav a { text-decoration: none; color: #e2e8f0; font-size: .95rem; }
.hero {
  background:
    linear-gradient(120deg, rgba(15,23,42,.82), rgba(15,23,42,.45)),
    url('/assets/img/brand/hero.jpg') center/cover;
  color: #fff; padding: 72px 0 80px;
}
.hero h1 { font-size: clamp(2.1rem, 5vw, 3.6rem); line-height: 1.08; margin: 0 0 16px; max-width: 16ch; }
.hero p { font-size: 1.12rem; max-width: 58ch; color: #e2e8f0; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; margin-top: 28px; }
.hero-note { margin-top: 14px; color: #cbd5e1; }
.section { padding: 72px 0; }
.section.alt { background: var(--sheet); }
.section h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); margin: 0 0 10px; }
.grid { display: grid; gap: 18px; }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); }
.pain { background: #fff7f5; border-color: #ffd8cf; }
.gain { background: #f3fff7; border-color: #b8f0cc; }
.feat ico { font-size: 1.4rem; }
.steps { counter-reset: s; }
.steps article { position: relative; padding-left: 8px; }
.steps article::before {
  counter-increment: s; content: counter(s); width: 36px; height: 36px; border-radius: 50%;
  background: var(--ink); color: #fff; display: grid; place-items: center; font-weight: 800; margin-bottom: 12px;
}
.price { font-size: 2.1rem; font-weight: 800; }
.plan.hot { border: 2px solid var(--cta); transform: translateY(-6px); }
.plan .tag { display: inline-block; background: var(--cta); color: #fff; border-radius: 999px; padding: 2px 10px; font-size: .75rem; font-weight: 700; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 14px 18px; }
.faq summary { cursor: pointer; font-weight: 700; }
.cta-band { background: var(--ink); color: #fff; text-align: center; padding: 72px 0; }
.cta-band h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); }
.site-foot { background: #0b1220; color: #94a3b8; padding: 28px 0; font-size: .9rem; }
.site-foot .wrap { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; }

/* Auth */
body.sheet { background: var(--sheet); }
.center-card { width: min(440px, calc(100% - 32px)); margin: 48px auto; background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 28px; box-shadow: var(--shadow); }
.field { display: block; margin: 12px 0; }
.field span { display: block; font-size: .85rem; font-weight: 600; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; min-height: 44px; border: 1px solid var(--line); border-radius: 12px; padding: 8px 12px; background: #fff;
}
.field textarea { min-height: 90px; resize: vertical; }
.trial-note { background: #f0fdf4; color: #166534; padding: 12px; border-radius: 12px; }

/* Menu app */
body.paper { background: #ece7df; }
.menu-app { width: min(480px, 100%); margin: 0 auto; min-height: 100dvh; background: var(--foam); position: relative; padding-bottom: 84px; }
.menu-app header.sticky {
  position: sticky; top: 0; z-index: 20; background: rgba(255,253,249,.94); backdrop-filter: blur(10px);
  padding: 12px 16px 10px; border-bottom: 1px solid #efe6d8;
}
.menu-head { display: flex; align-items: center; gap: 10px; }
.menu-head img { width: 42px; height: 42px; border-radius: 12px; object-fit: cover; }
.status { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: .75rem; font-weight: 700; }
.status.on { background: var(--ok-bg); color: #166534; }
.status.off { background: var(--err-bg); color: #991b1b; }
.search { width: 100%; min-height: 44px; border: 1px solid #eadfce; border-radius: 12px; padding: 8px 12px; margin-top: 10px; background: #fff; }
.cats { display: flex; gap: 8px; overflow-x: auto; padding: 10px 16px; position: sticky; top: 118px; z-index: 15; background: var(--foam); }
.cats a { flex: 0 0 auto; border: 1px solid #eadfce; border-radius: 999px; padding: 8px 12px; text-decoration: none; background: #fff; font-size: .9rem; }
.cats a.on { background: var(--ink); color: #fff; border-color: var(--ink); }
.highlights { display: flex; gap: 10px; overflow-x: auto; padding: 4px 16px 12px; }
.highlights article { flex: 0 0 210px; background: #fff; border-radius: 16px; overflow: hidden; border: 1px solid #efe6d8; }
.highlights img { width: 100%; height: 120px; object-fit: cover; }
.highlights div { padding: 10px; }
.item { display: flex; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #efe6d8; background: #fff; }
.item img { width: 92px; height: 92px; object-fit: cover; border-radius: 14px; }
.item h3 { margin: 0; font-size: 1rem; }
.item p { margin: 4px 0 8px; color: #8a7d72; font-size: .85rem; }
.item .row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.add { width: 36px; height: 36px; border: 0; border-radius: 10px; background: var(--cta); color: #fff; font-size: 1.3rem; cursor: pointer; }
.cartbar {
  position: fixed; left: 50%; bottom: 12px; transform: translateX(-50%);
  width: min(448px, calc(100% - 24px)); display: flex; justify-content: space-between; align-items: center;
  background: var(--ink); color: #fff; padding: 14px 18px; border-radius: 16px; z-index: 25; border: 0; cursor: pointer;
}
.sheet { position: fixed; inset: 0; background: rgb(0 0 0 / .45); display: none; align-items: flex-end; justify-content: center; z-index: 50; }
.sheet.open { display: flex; }
.sheet .box { background: #fff; width: min(480px, 100%); max-height: 92dvh; overflow: auto; border-radius: 22px 22px 0 0; padding: 16px 16px 24px; }
.sheet .hero-pic { width: 100%; height: 180px; object-fit: cover; border-radius: 16px; }
.opt { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.qty { display: flex; align-items: center; gap: 12px; }
.qty button { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); background: #fff; cursor: pointer; }
.pizza-sizes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pizza-sizes label, .chip {
  border: 1px solid var(--line); border-radius: 14px; padding: 10px; cursor: pointer; background: #fff;
}
.pizza-sizes input, .seg input { display: none; }
.pizza-sizes input:checked + span, .chip.on, .seg input:checked + span { outline: 2px solid var(--cta); }
.seg { display: flex; gap: 8px; }
.seg span { display: block; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; }

/* Panels */
.shell { display: flex; min-height: 100dvh; }
.side { width: 260px; background: var(--ink); color: #fff; padding: 18px 12px; flex-shrink: 0; }
.side a { display: block; color: #e2e8f0; text-decoration: none; padding: 9px 12px; border-radius: 10px; }
.side a.on { background: var(--cta); color: #fff; font-weight: 700; }
.side h4 { margin: 18px 12px 6px; font-size: .7rem; letter-spacing: .08em; text-transform: uppercase; color: #94a3b8; }
.side .badge { background: #fff; color: var(--cta); border-radius: 999px; padding: 0 7px; font-size: .75rem; font-weight: 800; }
.main { flex: 1; padding: 24px; background: var(--sheet); min-width: 0; }
.kpi { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; }
.kpi article p { margin: 0; color: var(--mute); font-size: .85rem; }
.kpi strong { font-size: 1.6rem; }
.table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 16px; overflow: hidden; }
.table th, .table td { text-align: left; padding: 12px 10px; border-bottom: 1px solid var(--line); font-size: .92rem; }
.tag { display: inline-block; border-radius: 999px; padding: 2px 8px; font-size: .75rem; font-weight: 700; }
.tag.ativo, .tag.trial { background: var(--ok-bg); color: #166534; }
.tag.atrasado { background: var(--warn-bg); color: var(--warn); }
.tag.inativo, .tag.suspenso { background: #e2e8f0; color: #334155; }
.warn { background: var(--warn-bg); border-color: #f5d08a; }
.kanban { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; align-items: start; }
.col { background: #fff; border: 1px solid var(--line); border-radius: 16px; min-height: 200px; padding: 10px; }
.col h3 { margin: 4px 8px 10px; font-size: .95rem; }
.ticket { background: var(--sheet); border: 1px solid var(--line); border-radius: 12px; padding: 10px; margin-bottom: 8px; }
.ticket.blink { animation: blink 1s infinite; }
@keyframes blink { 50% { background: #ffe8e2; } }
.menu-toggle { display: none; margin-bottom: 12px; }
.impersonate { background: #1d4ed8; color: #fff; padding: 8px 16px; display: flex; justify-content: space-between; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin: 12px 0 18px; }
.filters a { padding: 8px 12px; border-radius: 999px; border: 1px solid var(--line); text-decoration: none; background: #fff; }
.filters a.on { background: var(--ink); color: #fff; }

@media (max-width: 980px) {
  .grid-2, .grid-3, .grid-4, .kpi, .kanban { grid-template-columns: 1fr; }
  .nav { display: none; }
  .plan.hot { transform: none; }
  .side { display: none; }
  .side.open { display: block; position: fixed; inset: 0 auto 0 0; z-index: 40; width: min(280px, 86vw); }
  .menu-toggle { display: inline-flex; }
}
