/* Real Tech — tema escuro (padrão) */
:root {
  color-scheme: dark;
  --bg: #040c22;
  --bg-alt: #061230;
  --surface: rgba(11, 26, 60, .72);
  --surface-solid: #0b1a3c;
  --ink: #eaf3ff;
  --ink-2: #c3d3ec;
  --muted: #8ea3c4;
  --line: rgba(16, 183, 216, .16);
  --line-2: rgba(255, 255, 255, .08);
  --cyan: #10b7d8;
  --blue: #3b6cf6;
  --navy: #2c479a;
  --grad: linear-gradient(90deg, var(--cyan), var(--blue));
  --code-bg: #020817;
  --input: #0f2148;
  --nav-bg: rgba(4, 12, 34, .78);
  --shadow: rgba(0, 0, 0, .45);
  --grid-op: .5;
  --radius: 18px;
  --wrap: 1200px;
  --sans: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Consolas, monospace;
}
/* tema claro */
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #f3f7fc;
  --bg-alt: #e9f0f9;
  --surface: rgba(255, 255, 255, .85);
  --surface-solid: #ffffff;
  --ink: #061331;
  --ink-2: #2a3a5c;
  --muted: #56688a;
  --line: rgba(44, 71, 154, .16);
  --line-2: rgba(6, 19, 49, .08);
  --cyan: #0a9bbb;
  --blue: #2c55d6;
  --code-bg: #061331;
  --input: #eef3fa;
  --nav-bg: rgba(243, 247, 252, .82);
  --shadow: rgba(6, 19, 49, .1);
  --grid-op: .7;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--sans); font-size: 17px; line-height: 1.6; -webkit-font-smoothing: antialiased; overflow-x: hidden; transition: background-color .4s, color .4s; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { margin: 0; font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
h2 { font-size: clamp(2rem, 4.2vw, 3.3rem); max-width: 20ch; text-wrap: balance; }
h3 { font-size: 1.2rem; letter-spacing: -0.02em; }
p { margin: 0; }
.wrap { width: min(var(--wrap), 100% - 32px); margin-inline: auto; }
.muted { color: var(--muted); }
.lead { font-size: 1.3rem; color: var(--ink); line-height: 1.45; letter-spacing: -0.01em; }
.hl { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.label { font-family: var(--mono); font-size: .78rem; color: var(--cyan); letter-spacing: .02em; margin-bottom: 18px; display: block; }
.mono { font-family: var(--mono); }
.link { color: var(--cyan); font-weight: 500; }
.link:hover { text-decoration: underline; text-underline-offset: 4px; }

/* grid de fundo */
.grid-bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: var(--grid-op);
  background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px);
  background-size: 56px 56px;
  mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 25%, transparent 75%);
  -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 20%, #000 25%, transparent 75%);
}
.grid-bg--bottom { mask-image: radial-gradient(ellipse 70% 70% at 30% 90%, #000 20%, transparent 70%); -webkit-mask-image: radial-gradient(ellipse 70% 70% at 30% 90%, #000 20%, transparent 70%); }

/* botões */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 24px; border-radius: 12px; font: 500 .98rem var(--sans); border: 1px solid transparent; cursor: pointer; transition: transform .25s, box-shadow .25s, border-color .25s, color .25s, background .25s; white-space: nowrap; }
.btn span { transition: transform .25s; }
.btn:hover span { transform: translateX(3px); }
.btn--sm { padding: 10px 18px; font-size: .9rem; }
.btn--block { width: 100%; }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 0 0 1px rgba(16,183,216,.35), 0 10px 36px rgba(16,183,216,.22); }
.btn--primary:hover { transform: translateY(-1px); box-shadow: 0 0 0 1px rgba(16,183,216,.6), 0 14px 46px rgba(16,183,216,.38); }
.btn--ghost { border-color: var(--line); color: var(--ink); background: transparent; }
.btn--ghost:hover { border-color: var(--cyan); color: var(--cyan); }

/* logos por tema */
.logo--light { display: none; }
:root[data-theme="light"] .logo--dark { display: none; }
:root[data-theme="light"] .logo--light { display: block; }

/* NAV */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: background .3s, box-shadow .3s; }
.nav.is-scrolled { background: var(--nav-bg); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); box-shadow: 0 1px 0 var(--line); }
.nav__inner { display: flex; align-items: center; gap: 28px; height: 72px; }
.brand .logo { height: 30px; width: auto; }
.nav__links { display: flex; gap: 26px; margin-left: auto; font-size: .93rem; color: var(--ink-2); }
.nav__links a:hover { color: var(--cyan); }
.nav__parent { font-family: var(--mono); font-size: .82rem; padding-left: 26px; border-left: 1px solid var(--line); }
.theme-toggle { width: 42px; height: 42px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--ink); display: grid; place-items: center; cursor: pointer; flex: none; transition: border-color .3s, color .3s; }
.theme-toggle:hover { border-color: var(--cyan); color: var(--cyan); }
.theme-toggle svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-toggle .i-moon { display: none; }
:root[data-theme="light"] .theme-toggle .i-sun { display: none; }
:root[data-theme="light"] .theme-toggle .i-moon { display: block; }
.nav__toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line); background: transparent; border-radius: 12px; cursor: pointer; flex-direction: column; justify-content: center; align-items: center; gap: 6px; }
.nav__toggle span { width: 18px; height: 1.5px; background: var(--ink); transition: transform .3s; }
.nav__toggle[aria-expanded="true"] span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav__toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.75px) rotate(-45deg); }
.mobile-menu { display: flex; flex-direction: column; padding: 8px 16px 20px; background: var(--bg); border-bottom: 1px solid var(--line); }
.mobile-menu a:not(.btn) { padding: 12px 4px; font-size: 1.1rem; border-bottom: 1px solid var(--line-2); }
.mobile-menu .btn { margin-top: 14px; }
.mobile-menu[hidden] { display: none; }

/* HERO */
.hero { position: relative; isolation: isolate; padding: 150px 0 0; overflow: hidden; }
.hero__glow { position: absolute; z-index: -1; width: 900px; height: 900px; right: -300px; top: -380px; border-radius: 50%; background: radial-gradient(circle, rgba(16,183,216,.3), rgba(44,71,154,.22) 40%, transparent 68%); filter: blur(40px); pointer-events: none; animation: drift 16s ease-in-out infinite alternate; }
@keyframes drift { to { transform: translate(-80px, 60px); } }
.hero__inner { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; }
.hero__text { display: grid; gap: 26px; justify-items: start; }
.chip { display: inline-flex; align-items: center; gap: 10px; font: .8rem var(--mono); color: var(--ink-2); padding: 7px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); transition: border-color .3s; }
.chip:hover { border-color: var(--cyan); }
.chip__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(16,183,216,.18); animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 7px rgba(16,183,216,.05); } }
.hero h1 { font-size: clamp(2.6rem, 5.6vw, 4.8rem); letter-spacing: -0.045em; line-height: 1; max-width: 13ch; }
.hero__lead { font-size: 1.15rem; color: var(--muted); max-width: 48ch; }
.hero__actions { display: flex; gap: 12px; flex-wrap: wrap; }

/* editor */
.editor { background: var(--code-bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; box-shadow: 0 40px 90px var(--shadow), 0 0 80px rgba(16,183,216,.08); color: #c9dbf5; }
.editor__bar { display: flex; align-items: center; gap: 7px; padding: 12px 16px; border-bottom: 1px solid rgba(16,183,216,.16); }
.editor__bar i { width: 10px; height: 10px; border-radius: 50%; background: #1c2a4a; }
.editor__tab { margin-left: 12px; font: .76rem var(--mono); color: #eaf3ff; padding: 4px 10px; border-radius: 6px; background: rgba(16,183,216,.1); }
.editor__code { margin: 0; padding: 22px 22px 22px 10px; font: .88rem/1.85 var(--mono); overflow-x: auto; }
.editor__code .ln { display: inline-block; width: 2.4em; text-align: right; margin-right: 1.2em; color: #3a4c72; user-select: none; }
.editor__code .k { color: #c792ea; }
.editor__code .s { color: #7dd3a8; }
.editor__code .f { color: #10b7d8; }
.editor__code .v { color: #f6c177; }
.editor__code .c { color: #5c7099; font-style: italic; }
.caret { display: inline-block; width: 8px; height: 1.1em; vertical-align: -3px; margin-left: 4px; background: #10b7d8; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.editor__status { display: flex; gap: 18px; padding: 10px 16px; border-top: 1px solid rgba(16,183,216,.16); font: .72rem var(--mono); color: #8ea3c4; background: rgba(16,183,216,.04); }
.editor__status .push { margin-left: auto; color: #10b7d8; }
.editor__status .ok { display: inline-block; width: 7px; height: 7px; border-radius: 50%; background: #34d399; margin-right: 6px; }

/* strip */
.strip { display: grid; grid-template-columns: repeat(4, 1fr); margin-top: 96px; border-block: 1px solid var(--line); }
.strip div { padding: 30px 0; display: grid; gap: 4px; }
.strip div + div { padding-left: 28px; border-left: 1px solid var(--line); }
.strip strong { font-size: clamp(1.8rem, 3.4vw, 2.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.strip span { color: var(--muted); font-size: .9rem; }

/* SECTIONS */
.section { position: relative; isolation: isolate; padding: 120px 0; overflow: hidden; }
.section--alt { background: var(--bg-alt); }
.head { margin-bottom: 56px; }
.head .muted { max-width: 54ch; margin-top: 20px; font-size: 1.08rem; }

.about { display: grid; grid-template-columns: 1.1fr 1fr; gap: 80px; align-items: end; }
.about__body { display: grid; gap: 20px; color: var(--muted); justify-items: start; }

/* serviços */
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.svc { background: var(--bg-alt); padding: 34px; display: grid; gap: 10px; align-content: start; transition: background .3s; position: relative; }
.svc:hover { background: var(--surface-solid); }
.svc::after { content: ""; position: absolute; left: 0; top: 0; height: 2px; width: 0; background: var(--grad); transition: width .5s ease; }
.svc:hover::after { width: 100%; }
.svc p { color: var(--muted); }
.icon { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; background: rgba(16,183,216,.1); border: 1px solid rgba(16,183,216,.3); color: var(--cyan); margin-bottom: 14px; }
.icon svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* cases */
.cases { display: grid; gap: 28px; }
.case { display: grid; grid-template-columns: 1.15fr 1fr; gap: 56px; align-items: center; padding: 24px; border: 1px solid var(--line); border-radius: 24px; background: var(--surface); transition: border-color .3s; }
.case:hover { border-color: rgba(16,183,216,.45); }
.case--rev .case__img { order: 2; }
.case__img { border-radius: 16px; overflow: hidden; aspect-ratio: 16/10; background: #fff; }
.case__img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s ease; }
.case:hover .case__img img { transform: scale(1.03); }
.case__body { display: grid; gap: 12px; padding-right: 24px; }
.case--rev .case__body { padding: 0 0 0 24px; }
.case__body .label { margin: 0; }
.case h3 { font-size: clamp(1.8rem, 3vw, 2.4rem); }
.case p { color: var(--muted); max-width: 46ch; }
.pills { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.pills li { font: .76rem var(--mono); padding: 5px 11px; border-radius: 999px; border: 1px solid var(--line); color: var(--ink-2); }

/* timeline */
.timeline { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; counter-reset: s; }
.timeline li { position: relative; padding: 28px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 18px; align-content: start; }
.timeline li:not(:last-child)::after { content: ""; position: absolute; top: 46px; right: -17px; width: 18px; height: 1px; background: var(--cyan); opacity: .6; }
.t-n { font: 500 .8rem var(--mono); color: var(--cyan); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; border: 1px solid rgba(16,183,216,.4); background: rgba(16,183,216,.08); }
.timeline h3 { margin-bottom: 8px; }
.timeline p { color: var(--muted); font-size: .96rem; }

/* qualidade */
.quality { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.quality__lead { margin-top: 22px; max-width: 46ch; font-size: 1.08rem; }
.checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 0; }
.checks li { display: flex; gap: 16px; align-items: center; padding: 20px 4px; border-bottom: 1px solid var(--line); font-size: 1.1rem; letter-spacing: -0.01em; }
.checks li:first-child { border-top: 1px solid var(--line); }
.checks i { flex: none; width: 24px; height: 24px; border-radius: 7px; background: rgba(16,183,216,.12); border: 1px solid rgba(16,183,216,.4); position: relative; }
.checks i::after { content: ""; position: absolute; left: 8px; top: 4px; width: 5px; height: 10px; border: solid var(--cyan); border-width: 0 2px 2px 0; transform: rotate(45deg); }

/* modelos */
.models { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.model { position: relative; padding: 34px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--surface); display: grid; gap: 12px; align-content: start; transition: transform .35s, border-color .3s; }
.model:hover { transform: translateY(-4px); border-color: rgba(16,183,216,.45); }
.model p { color: var(--muted); }
.model--feat { border-color: rgba(16,183,216,.5); box-shadow: 0 0 0 1px rgba(16,183,216,.2), 0 20px 60px rgba(16,183,216,.1); }
.badge { position: absolute; top: 18px; right: 18px; font: .7rem var(--mono); color: var(--cyan); padding: 3px 9px; border-radius: 999px; background: rgba(16,183,216,.12); }

/* contato */
.contact__grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 80px; align-items: start; }
.contact__info { display: grid; gap: 22px; }
.contact__info .muted { font-size: 1.1rem; max-width: 40ch; }
.channels { display: grid; gap: 12px; margin-top: 12px; max-width: 420px; }
.channels a { display: grid; gap: 2px; padding: 18px 20px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface); font-weight: 500; transition: border-color .3s; overflow-wrap: anywhere; }
.channels a:hover { border-color: var(--cyan); }
.channels small { font: .72rem var(--mono); color: var(--cyan); text-transform: uppercase; letter-spacing: .06em; }

.form { background: var(--surface-solid); border: 1px solid var(--line); border-radius: 22px; padding: 34px; display: grid; gap: 16px; box-shadow: 0 30px 80px var(--shadow); }
.form__row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.form label { display: grid; gap: 6px; font-size: .85rem; font-weight: 500; color: var(--ink-2); }
.form input:not([type="checkbox"]), .form select, .form textarea { font: inherit; font-size: 1rem; color: var(--ink); background: var(--input); border: 1px solid transparent; border-radius: 10px; padding: 12px 14px; width: 100%; transition: border-color .2s; }
.form textarea { resize: vertical; }
.form input:focus, .form select:focus, .form textarea:focus { outline: none; border-color: var(--cyan); }
.form .check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; color: var(--muted); }
.form .check input { margin-top: 3px; accent-color: var(--cyan); }
.form .check a { text-decoration: underline; }
.form__ok { background: rgba(16,183,216,.1); border: 1px solid rgba(16,183,216,.3); padding: 14px 16px; border-radius: 10px; font-size: .95rem; }

/* footer */
.footer { border-top: 1px solid var(--line); padding: 64px 0 28px; color: var(--muted); font-size: .94rem; }
.footer__inner { display: flex; justify-content: space-between; gap: 40px; flex-wrap: wrap; }
.footer__brand { display: grid; gap: 14px; max-width: 360px; }
.footer__brand .logo { height: 30px; width: auto; }
.footer__brand a { color: var(--cyan); }
.footer__links { display: flex; flex-wrap: wrap; gap: 14px 28px; align-content: start; }
.footer__links a:hover { color: var(--cyan); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; margin-top: 48px; padding-top: 22px; border-top: 1px solid var(--line-2); font-size: .84rem; }
.footer__bottom .mono { color: var(--cyan); }

.wa-float { position: fixed; right: 20px; bottom: 20px; z-index: 40; width: 56px; height: 56px; border-radius: 50%; background: #25d366; color: #fff; display: grid; place-items: center; box-shadow: 0 10px 30px rgba(37,211,102,.35); transition: transform .3s; }
.wa-float:hover { transform: scale(1.08); }
.wa-float svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s cubic-bezier(.2,.7,.2,1), transform .9s cubic-bezier(.2,.7,.2,1); }
.reveal.is-in { opacity: 1; transform: none; }

/* ===================== DEMOS INTERATIVAS ===================== */
.case--demo { grid-template-columns: 1.55fr 1fr; gap: 40px; align-items: center; }
.case--demo.case--rev { grid-template-columns: 1fr 1.55fr; }
.case--demo.case--rev .demo { order: 2; }
.demo-tip { display: flex; align-items: center; gap: 10px; font: .8rem var(--mono); color: var(--cyan); margin-top: 6px; }
.demo-tip__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--cyan); box-shadow: 0 0 0 4px rgba(16,183,216,.18); animation: pulse 2s ease-in-out infinite; flex: none; }

.demo { position: relative; border-radius: 16px; overflow: hidden; font-family: var(--sans); font-size: 14px; line-height: 1.4; text-align: left; box-shadow: 0 30px 70px var(--shadow); isolation: isolate; }
.demo button { font: inherit; cursor: pointer; border: 0; background: none; color: inherit; }
.demo svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.demo__live { display: inline-flex; align-items: center; gap: 6px; font: .7rem var(--mono); opacity: .75; white-space: nowrap; }
.demo__live i { width: 7px; height: 7px; border-radius: 50%; background: #22c55e; animation: pulse 2s infinite; }
.demo__toast { position: absolute; left: 50%; bottom: 14px; z-index: 20; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; background: #0f172a; color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .82rem; box-shadow: 0 10px 30px rgba(0,0,0,.35); transition: opacity .25s, transform .25s; width: max-content; max-width: calc(100% - 28px); text-align: center; }
.demo__toast.is-on { opacity: 1; transform: translate(-50%, 0); }

/* ---------- Comandas ---------- */
.cmd { --o: #e4572e; --o-d: #c2410c; --o-50: #fff4ee; background: #fffaf7; color: #1c1917; border: 1px solid rgba(228,87,46,.25); }
.cmd .demo__bar { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; background: #1c1917; color: #fafaf9; }
.demo__tabs { display: flex; gap: 4px; }
.cmd .demo__tabs button { display: inline-flex; align-items: center; gap: 7px; padding: 8px 12px; border-radius: 8px; color: #d6d3d1; font-weight: 500; transition: background .2s, color .2s; }
.cmd .demo__tabs button:hover { background: rgba(255,255,255,.08); color: #fff; }
.cmd .demo__tabs button.on { background: var(--o); color: #fff; }
.cmd .demo__tabs em { font-style: normal; font-size: .7rem; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: rgba(255,255,255,.18); display: inline-grid; place-items: center; }
.cmd .demo__body { height: 470px; overflow: hidden; }

.cmd-client { height: 100%; display: grid; grid-template-columns: minmax(250px, 300px) 1fr; gap: 24px; padding: 18px 22px; background: radial-gradient(circle at 80% 20%, #ffe7db, transparent 60%), #fffaf7; }
.cmd-phone { height: 100%; display: flex; flex-direction: column; background: #fff; border: 6px solid #1c1917; border-radius: 26px; overflow: hidden; box-shadow: 0 16px 40px rgba(28,25,23,.18); }
.cmd-phone__head { display: flex; justify-content: space-between; align-items: center; padding: 12px 14px; background: var(--o); color: #fff; }
.cmd-phone__head small { display: block; font-size: .68rem; opacity: .85; }
.cmd-phone__head strong { font-size: 1.15rem; letter-spacing: -.02em; }
.cmd-store { font-size: .7rem; font-weight: 600; background: rgba(255,255,255,.2); padding: 4px 8px; border-radius: 6px; }
.cmd-chips { display: flex; gap: 6px; padding: 10px 12px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid #f1ece8; flex: none; }
.cmd-chips button { padding: 5px 10px; border-radius: 999px; background: #f5f0ec; font-size: .74rem; white-space: nowrap; color: #57534e; }
.cmd-chips button.on { background: #1c1917; color: #fff; }
.cmd-list { flex: 1; overflow-y: auto; padding: 4px 10px; scrollbar-width: thin; }
.cmd-item { display: grid; grid-template-columns: 40px 1fr auto; gap: 10px; align-items: center; padding: 10px 2px; border-bottom: 1px solid #f5f0ec; }
.cmd-item__img { width: 40px; height: 40px; border-radius: 10px; background: var(--o-50); color: var(--o); display: grid; place-items: center; }
.cmd-item__img svg { width: 20px; height: 20px; }
.cmd-item__info { display: grid; min-width: 0; }
.cmd-item__info b { font-size: .86rem; }
.cmd-item__info small { font-size: .7rem; color: #78716c; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cmd-item__info span { font-size: .78rem; font-weight: 600; color: var(--o-d); }
.cmd-qty { display: flex; align-items: center; gap: 6px; }
.cmd-qty button { width: 26px; height: 26px; border-radius: 8px; background: #f5f0ec; font-size: 1rem; line-height: 1; display: grid; place-items: center; }
.cmd-qty button.plus { background: var(--o); color: #fff; }
.cmd-qty b { min-width: 12px; text-align: center; font-size: .85rem; }
.cmd-cart { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 12px; border-top: 1px solid #f1ece8; background: #fff; flex: none; }
.cmd-cart small { display: block; font-size: .68rem; color: #78716c; }
.cmd-cart b { font-size: .95rem; }
.cmd-cart button { background: var(--o); color: #fff; font-weight: 600; font-size: .82rem; padding: 9px 14px; border-radius: 10px; transition: transform .2s; }
.cmd-cart button:not(:disabled):hover { transform: translateY(-1px); }
.cmd-cart button:disabled { background: #e7e5e4; color: #a8a29e; cursor: default; }
.cmd-hint { align-self: center; display: grid; gap: 14px; color: #44403c; }
.cmd-hint__k { font: .72rem var(--mono); color: var(--o-d); text-transform: uppercase; letter-spacing: .08em; }
.cmd-hint ol { margin: 0; padding-left: 18px; display: grid; gap: 10px; font-size: .9rem; }
.cmd-hint ol button { color: var(--o-d); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.cmd-hint p { font-size: .82rem; color: #78716c; border-left: 3px solid var(--o); padding-left: 12px; }

.kds { height: calc(100% - 30px); display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; padding: 12px; background: #0c0a09; color: #f5f5f4; }
.cmd .demo__body:has(.kds) { background: #0c0a09; }
.kds__col { background: #1c1917; border-radius: 12px; padding: 10px; overflow-y: auto; display: flex; flex-direction: column; gap: 8px; scrollbar-width: thin; }
.kds__col h5 { margin: 0 0 2px; font-size: .78rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: #a8a29e; display: flex; justify-content: space-between; }
.kds__col h5 span { background: #292524; color: #fafaf9; border-radius: 6px; padding: 0 7px; }
.kds-card { background: #292524; border-radius: 10px; padding: 10px; border-left: 4px solid #57534e; display: grid; gap: 6px; animation: none; }
.kds-card.warn { border-left-color: #eab308; background: #33290f; }
.kds-card.late { border-left-color: #ef4444; background: #3a1715; }
.kds-card.ok { border-left-color: #22c55e; }
.kds-card.is-new { animation: kdsIn .6s ease, kdsGlow 1.6s ease 2; }
@keyframes kdsIn { from { transform: translateY(-10px); opacity: 0; } }
@keyframes kdsGlow { 50% { box-shadow: 0 0 0 3px rgba(228,87,46,.6); } }
.kds-card header { display: flex; justify-content: space-between; font-size: .8rem; }
.kds-card header span { font: .72rem var(--mono); color: #d6d3d1; }
.kds-card.warn header span { color: #facc15; }
.kds-card.late header span { color: #f87171; }
.kds-card p { font-size: .72rem; color: #a8a29e; margin: 0; }
.kds-card ul { list-style: none; margin: 0; padding: 0; font-size: .82rem; display: grid; gap: 2px; }
.kds-card ul b { color: #fb923c; }
.kds-card button { margin-top: 2px; background: #e4572e; color: #fff; border-radius: 7px; padding: 6px 8px; font-size: .74rem; font-weight: 600; }
.kds-card.ok button { background: #16a34a; }
.kds__empty { font-size: .78rem; color: #57534e; text-align: center; padding: 18px 0; }
.kds__legend { height: 30px; margin: 0; padding: 0 14px 8px; display: flex; align-items: center; gap: 8px; font: .7rem var(--mono); color: #a8a29e; background: #0c0a09; }
.kds__legend span { width: 10px; height: 10px; border-radius: 3px; display: inline-block; margin-left: 6px; }
.kds__legend .warn { background: #eab308; }
.kds__legend .late { background: #ef4444; }

.pdv { height: 100%; display: flex; flex-direction: column; gap: 12px; padding: 14px; background: #fafaf9; }
.pdv__kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; flex: none; }
.pdv__kpis div { background: #fff; border: 1px solid #ece7e3; border-radius: 10px; padding: 9px 12px; }
.pdv__kpis small { display: block; font-size: .68rem; color: #78716c; }
.pdv__kpis b { font-size: 1.02rem; letter-spacing: -.01em; }
.pdv__main { flex: 1; min-height: 0; display: grid; grid-template-columns: 1.2fr 1fr; gap: 12px; }
.pdv__grid { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 1fr; gap: 8px; }
.mesa { border-radius: 10px !important; padding: 8px !important; display: grid; align-content: center; justify-items: start; gap: 1px; text-align: left; border: 2px solid transparent !important; transition: transform .15s; }
.mesa:hover { transform: translateY(-2px); }
.mesa b { font-size: .82rem; }
.mesa small { font-size: .66rem; opacity: .85; }
.mesa span { font-size: .7rem; font-weight: 600; }
.mesa.livre { background: #dcfce7 !important; color: #14532d !important; }
.mesa.ocupada { background: #fee2e2 !important; color: #7f1d1d !important; }
.mesa.pagamento { background: #fef9c3 !important; color: #713f12 !important; }
.mesa.sel { border-color: #1c1917 !important; }
.pdv-panel { background: #fff; border: 1px solid #ece7e3; border-radius: 12px; padding: 14px; display: flex; flex-direction: column; gap: 8px; min-height: 0; overflow-y: auto; }
.pdv-panel--empty { align-items: center; justify-content: center; text-align: center; color: #a8a29e; font-size: .85rem; }
.pdv-panel h5 { margin: 0; font-size: 1rem; display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.pill-st { font-size: .64rem; font-weight: 600; padding: 3px 8px; border-radius: 999px; }
.pill-st.ocupada { background: #fee2e2; color: #991b1b; }
.pill-st.pagamento { background: #fef9c3; color: #854d0e; }
.pdv-free { color: #78716c; font-size: .85rem; }
.pdv-lines { list-style: none; margin: 0; padding: 0; display: grid; align-content: start; gap: 6px; font-size: .8rem; flex: 1; overflow-y: auto; }
.pdv-lines li, .pdv-sum { display: flex; justify-content: space-between; gap: 8px; }
.pdv-sum { font-size: .8rem; color: #57534e; }
.pdv-sum--total { font-size: .98rem; color: #1c1917; padding-top: 6px; border-top: 1px dashed #d6d3d1; }
.pdv-pay { margin-top: 4px; background: #16a34a !important; color: #fff !important; font-weight: 600; padding: 10px !important; border-radius: 9px; }
.pdv-pay:hover { background: #15803d !important; }

/* ---------- Photolog ---------- */
.pl { --b: #2563eb; --b-d: #1d4ed8; --b-50: #eff6ff; --b-100: #dbeafe; background: #f8fafc; color: #0f172a; border: 1px solid #dbe4f0; height: 520px; display: flex; flex-direction: column; }
.pl-top { display: flex; align-items: center; gap: 12px; padding: 10px 16px; background: #1b2a3a; color: #e2e8f0; flex: none; }
.pl-logo { font-weight: 700; font-size: 1.05rem; letter-spacing: -.02em; color: #fff; margin-right: auto; }
.pl-logo b { color: #3b82f6; }
.pl-user { font: .72rem var(--mono); background: rgba(255,255,255,.1); padding: 4px 9px; border-radius: 6px; }
.pl-app { flex: 1; min-height: 0; display: grid; grid-template-columns: 160px 1fr; }
.pl-nav { background: #fff; border-right: 1px solid #e2e8f0; padding: 12px 8px; display: flex; flex-direction: column; gap: 4px; }
.pl-nav button { display: flex; align-items: center; gap: 9px; padding: 9px 10px; border-radius: 8px; color: #475569; font-weight: 500; font-size: .84rem; text-align: left; }
.pl-nav button:hover { background: var(--b-50); color: var(--b-d); }
.pl-nav button.on { background: var(--b-100); color: #1e3a8a; }
.pl-main { padding: 16px 18px; overflow-y: auto; min-height: 0; scrollbar-width: thin; }
.pl-main h4 { margin: 0 0 12px; font-size: 1.15rem; color: var(--b); letter-spacing: -.02em; }
.pl-seg { display: inline-flex; background: #e2e8f0; border-radius: 8px; padding: 3px; gap: 2px; }
.pl-seg button { padding: 5px 11px; border-radius: 6px; font-size: .78rem; color: #475569; font-weight: 500; }
.pl-seg button.on { background: #fff; color: var(--b-d); box-shadow: 0 1px 3px rgba(15,23,42,.12); }
.pl-search { display: grid; gap: 10px; }
.pl-search__row { display: flex; gap: 8px; }
.pl input, .pl select { font: inherit; font-size: .86rem; color: #0f172a; background: #fff; border: 1px solid #bfdbfe; border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0; }
.pl input:focus, .pl select:focus { outline: none; border-color: var(--b); box-shadow: 0 0 0 3px rgba(37,99,235,.15); }
.pl-search button[type="submit"], .pl-send, .pl-actions .pri { background: var(--b) !important; color: #fff !important; font-weight: 600; padding: 8px 16px !important; border-radius: 8px; white-space: nowrap; }
.pl-search button[type="submit"]:hover, .pl-send:not(:disabled):hover, .pl-actions .pri:hover { background: var(--b-d) !important; }
.pl-count { font-size: .76rem; color: #64748b; margin: 12px 0 8px; }
.pl-folders { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.pl-folder { background: #fff !important; border: 1px solid #dbeafe !important; border-radius: 10px; padding: 8px !important; display: grid; gap: 8px; text-align: left; transition: border-color .2s, transform .2s, box-shadow .2s; }
.pl-folder:hover { border-color: var(--b) !important; transform: translateY(-2px); box-shadow: 0 8px 20px rgba(37,99,235,.12); }
.pl-folder__thumbs { display: grid; grid-template-columns: 2fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; height: 92px; border-radius: 6px; overflow: hidden; }
.pl-folder__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pl-folder__thumbs img:first-child { grid-row: span 2; }
.pl-folder__info { display: grid; gap: 1px; }
.pl-folder__info b { font-size: .88rem; }
.pl-folder__info small { font-size: .72rem; color: #64748b; }
.pl-folder__info > span { font-size: .72rem; color: #475569; display: flex; align-items: center; gap: 6px; margin-top: 3px; }
.pl-badge { font-size: .64rem; font-weight: 600; padding: 2px 7px; border-radius: 999px; }
.pl-badge.in { background: #dcfce7; color: #166534; }
.pl-badge.out { background: #f3e8ff; color: #6b21a8; }
.pl-empty { font-size: .85rem; color: #64748b; grid-column: 1 / -1; }
.pl-back { color: var(--b-d) !important; font-size: .8rem; font-weight: 600; margin-bottom: 8px; }
.pl-detail__head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.pl-detail__head h5 { margin: 0 0 3px; font-size: 1.05rem; }
.pl-detail__head p { margin: 0; font-size: .76rem; color: #64748b; }
.pl-actions { display: flex; gap: 6px; }
.pl-actions button { font-size: .78rem !important; padding: 7px 12px !important; border-radius: 8px; border: 1px solid #bfdbfe !important; color: var(--b-d) !important; background: #fff !important; font-weight: 600; }
.pl-photos { display: grid; grid-template-columns: repeat(auto-fill, minmax(130px, 1fr)); gap: 8px; }
.pl-photos button { border-radius: 8px; overflow: hidden; aspect-ratio: 4/3; transition: transform .2s, box-shadow .2s; }
.pl-photos button:hover { transform: scale(1.03); box-shadow: 0 8px 20px rgba(15,23,42,.18); }
.pl-photos img { width: 100%; height: 100%; object-fit: cover; }
.pl-up { display: grid; gap: 14px; }
.pl-up__grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pl-up label { display: grid; gap: 5px; font-size: .76rem; font-weight: 600; color: #334155; align-content: start; }
.pl-up label .pl-seg { justify-self: start; }
.pl-drop { display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; padding: 10px; border: 2px dashed #bfdbfe; border-radius: 10px; background: #fff; }
.pl-add { aspect-ratio: 4/3; border-radius: 8px; background: var(--b-50) !important; color: var(--b-d) !important; display: grid; place-items: center; align-content: center; gap: 2px; font-size: .76rem; font-weight: 600; transition: background .2s; }
.pl-add:hover { background: var(--b-100) !important; }
.pl-add svg { width: 22px; height: 22px; }
.pl-add small { font-weight: 400; font-size: .62rem; color: #64748b; }
.pl-up-item { display: grid; gap: 4px; }
.pl-up-item img { width: 100%; aspect-ratio: 4/3; object-fit: cover; border-radius: 8px; }
.pl-up-item__bar { height: 4px; border-radius: 2px; background: #e2e8f0; overflow: hidden; }
.pl-up-item__bar i { display: block; height: 100%; background: var(--b); transition: width .85s ease; }
.pl-up-item.done .pl-up-item__bar i { background: #22c55e; }
.pl-up-item small { font: .62rem var(--mono); color: #64748b; }
.pl-up-item small b { color: #16a34a; }
.pl-send { justify-self: start; padding: 10px 18px !important; }
.pl-send:disabled { background: #cbd5e1 !important; cursor: default; }
.pl-table { border: 1px solid #dbeafe; border-radius: 10px; overflow: auto; background: #fff; }
.pl-table table { width: 100%; border-collapse: collapse; font-size: .8rem; }
.pl-table th { text-align: left; font-weight: 600; color: #475569; background: #f1f5f9; padding: 9px 12px; white-space: nowrap; }
.pl-table td { padding: 9px 12px; border-top: 1px solid #eef2f7; white-space: nowrap; }
.pl-table td:first-child { font-family: var(--mono); font-size: .74rem; color: #64748b; }
.pl-lb { position: absolute; inset: 0; z-index: 15; background: rgba(15,23,42,.85); display: grid; place-items: center; padding: 20px; animation: fadeIn .2s ease; cursor: zoom-out; }
@keyframes fadeIn { from { opacity: 0; } }
.pl-lb figure { position: relative; margin: 0; width: min(560px, 100%); cursor: default; }
.pl-lb img { width: 100%; height: auto; max-height: 400px; object-fit: contain; border-radius: 10px; }
.pl-lb figcaption { color: #e2e8f0; font: .76rem var(--mono); text-align: center; margin-top: 8px; }
.pl-lb__nav, .pl-lb__x { position: absolute; width: 36px; height: 36px; border-radius: 50% !important; background: rgba(255,255,255,.9) !important; color: #0f172a !important; font-size: 1.3rem !important; display: grid; place-items: center; line-height: 1; }
.pl-lb__nav { top: calc(50% - 30px); }
.pl-lb__nav.prev { left: 8px; }
.pl-lb__nav.next { right: 8px; }
.pl-lb__x { top: 8px; right: 8px; }

/* responsivo */
@media (max-width: 1024px) {
  .nav__links, .nav__cta { display: none; }
  .theme-toggle { margin-left: auto; }
  .nav__toggle { display: flex; }
  .hero__inner, .about, .quality, .contact__grid { grid-template-columns: 1fr; gap: 48px; }
  .services, .models { grid-template-columns: 1fr 1fr; }
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline li::after { display: none; }
  .case, .case--rev, .case--demo, .case--demo.case--rev { grid-template-columns: 1fr; gap: 24px; }
  .case--demo.case--rev .demo { order: 0; }
  .case--rev .case__img { order: 0; }
  .case__body, .case--rev .case__body { padding: 0 8px 8px; }
  .strip { grid-template-columns: 1fr 1fr; }
  .strip div:nth-child(3) { padding-left: 0; border-left: 0; }
  .strip div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 680px) {
  body { font-size: 16px; }
  .section { padding: 84px 0; }
  .hero { padding-top: 120px; }
  .hero__actions, .hero__actions .btn { width: 100%; }
  .editor__code { font-size: .7rem; padding: 16px 14px 16px 4px; }
  .editor__code .ln { width: 1.6em; margin-right: .8em; }
  .chip__extra { display: none; }
  .editor__status span:nth-child(3) { display: none; }
  .strip { margin-top: 64px; }
  .services, .models, .timeline, .form__row { grid-template-columns: 1fr; }
  .svc, .model { padding: 26px; }
  .case { padding: 14px; border-radius: 20px; }
  .form { padding: 22px; }
  .head { margin-bottom: 40px; }
  /* demos no celular */
  .demo { border-radius: 14px; }
  .cmd .demo__tabs button { padding: 7px 9px; font-size: .8rem; gap: 5px; }
  .cmd .demo__bar { padding: 8px; }
  .cmd .demo__live { display: none; }
  .cmd .demo__body { height: 520px; }
  .cmd-client { grid-template-columns: 1fr; padding: 12px; }
  .cmd-hint { display: none; }
  .kds { grid-template-columns: 1fr; overflow-y: auto; height: calc(100% - 30px); }
  .kds__col { overflow: visible; }
  .pdv__main { grid-template-columns: 1fr; grid-template-rows: auto auto; align-content: start; overflow-y: auto; }
  .pdv__grid { grid-auto-rows: 64px; gap: 6px; }
  .mesa { padding: 6px !important; }
  .mesa b { font-size: .74rem; white-space: nowrap; }
  .mesa span { font-size: .64rem; }
  .pdv-panel { overflow: visible; }
  .pdv__kpis b { font-size: .88rem; }
  .pl { height: 560px; }
  .pl-app { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .pl-nav { flex-direction: row; border-right: 0; border-bottom: 1px solid #e2e8f0; padding: 6px; overflow-x: auto; }
  .pl-nav button { white-space: nowrap; padding: 7px 9px; font-size: .78rem; }
  .pl-main { padding: 12px; }
  .pl-up__grid { grid-template-columns: 1fr; }
  .pl-folders { grid-template-columns: 1fr 1fr; }
  .pl-folder__thumbs { height: 70px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}
