/* Qata case study.
   Layout: a narrow label column and a wide content column; product mockups sit on quiet grey stages.
   The page itself is neutral (Geist, greys). Only the mockups use Qata's real UI: Inter, its colours and radii. */

:root {
  --bg: #f7f7f6;
  --fg: #151515;
  --muted: #6c6c6a;
  --line: #e3e3e0;
  --stage: #f0f0ee;
  --stage-2: #e7e7e4;
  --raised: #ffffff;
  --dot: rgba(20, 20, 20, .28);
  --font: 'Geist', ui-sans-serif, system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Geist Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --r: 16px;
  color-scheme: light;
}

* { box-sizing: border-box; margin: 0; padding: 0; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { background: var(--bg); color: var(--fg); font-family: var(--font); font-size: 18px; line-height: 1.55; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
input, textarea, select { font: inherit; color: inherit; }
a { color: inherit; }
img { max-width: 100%; }
:focus-visible { outline: 2px solid var(--fg); outline-offset: 2px; }

.wrap { max-width: 1320px; margin: 0 auto; padding-left: max(24px, env(safe-area-inset-left, 0px)); padding-right: max(24px, env(safe-area-inset-right, 0px)); }

/* ---------- top bar ---------- */
.top { position: sticky; top: env(safe-area-inset-top, 0px); z-index: 40; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); }
.top-in { display: flex; justify-content: space-between; align-items: center; height: 56px; }
.top-link { text-decoration: none; font-size: 14px; }
.top-link.dim { color: var(--muted); }
.top-link:hover { color: var(--fg); }

/* ---------- intro ---------- */
.intro { padding-top: 72px; padding-bottom: 48px; }
.meta { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; margin-bottom: 56px; max-width: 900px; }
.meta dt { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-bottom: 4px; }
.meta dd { font-family: var(--mono); font-size: 13px; }
h1 { font-size: clamp(40px, 6.4vw, 80px); line-height: 1.02; font-weight: 500; letter-spacing: -.035em; max-width: 13ch; text-wrap: balance; }
.lede { margin-top: 24px; font-size: clamp(18px, 1.9vw, 21px); line-height: 1.45; color: var(--muted); max-width: 46ch; }

/* ---------- stages ---------- */
.stage { background: var(--stage); border-radius: var(--r); position: relative; overflow: hidden; overflow: clip; }
.stage-hero { padding: 56px 24px 48px; display: flex; justify-content: center; }
.figcap { font-family: var(--mono); font-size: 12px; color: var(--muted); margin-top: 12px; max-width: 70ch; }

/* ---------- numbers ---------- */
.numbers { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; padding-top: 88px; padding-bottom: 24px; }
.num b { display: block; font-size: clamp(40px, 5vw, 64px); font-weight: 500; letter-spacing: -.04em; line-height: 1; font-variant-numeric: tabular-nums; }
.num span { display: block; margin-top: 12px; font-family: var(--mono); font-size: 12px; color: var(--muted); max-width: 24ch; line-height: 1.5; }

/* ---------- sections ---------- */
.sec { padding-top: 104px; padding-bottom: 0; }
.sec + .sec { padding-top: 88px; }
.row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 48px; }
.lab { font-family: var(--mono); font-size: 12px; font-weight: 400; color: var(--muted); padding-top: 8px; letter-spacing: 0; }
.body { min-width: 0; }
.title { font-size: clamp(28px, 3.4vw, 40px); line-height: 1.1; font-weight: 500; letter-spacing: -.03em; max-width: 20ch; text-wrap: balance; }
.lead p { font-size: clamp(20px, 2.1vw, 25px); line-height: 1.42; letter-spacing: -.01em; max-width: 720px; }
.lead p + p { margin-top: 20px; }
.muted { color: var(--muted); }
.prose { margin-top: 28px; max-width: 700px; }
.prose p { font-size: 18px; line-height: 1.6; }
.prose p + p { margin-top: 16px; }
.intro-p { margin-top: 16px; font-size: 18px; color: var(--muted); max-width: 56ch; }

.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 40px; }
.facts > div { background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 22px 22px 24px; }
.fico { width: 40px; height: 40px; border-radius: 10px; background: var(--stage); display: grid; place-items: center; margin-bottom: 18px; }
.fico svg { width: 20px; height: 20px; }
.facts h4, .principles h4, .learn h4 { font-size: 17px; font-weight: 500; letter-spacing: -.01em; }
.facts p, .principles p, .learn p { margin-top: 6px; font-size: 15px; color: var(--muted); line-height: 1.55; max-width: 46ch; }

.principles { list-style: none; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin-top: 44px; }
.principles li { padding-top: 18px; border-top: 1px solid var(--line); }

.learn { margin-top: 36px; }
.learn article { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.6fr); gap: 32px; padding: 22px 0 24px; border-top: 1px solid var(--line); }
.learn article p { margin-top: 0; font-size: 16px; }

/* feature grid */
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px 24px; margin-top: 44px; }
.feat { margin: 0; min-width: 0; }
.fx { aspect-ratio: 6 / 5; max-width: 100%; }
.feat figcaption { margin-top: 14px; font-size: 15px; line-height: 1.5; color: var(--muted); max-width: 52ch; }
.feat figcaption b { font-weight: 500; color: var(--fg); margin-right: 6px; }

/* try it */
.tools { display: flex; gap: 8px; margin-top: 24px; flex-wrap: wrap; }
.tool { font-size: 14px; border: 1px solid var(--line); background: var(--raised); border-radius: 999px; padding: 7px 14px; }
.tool:hover { border-color: var(--fg); }
.stage-try { margin-top: 36px; padding: 48px 24px; display: flex; justify-content: center; }

/* footer */
.foot { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 16px; padding-top: 120px; padding-bottom: calc(120px + env(safe-area-inset-bottom, 0px)); }
.foot a { text-decoration: none; font-size: clamp(22px, 3vw, 32px); letter-spacing: -.02em; }
.foot a:hover { color: var(--muted); }

/* progress pill */
.prog { position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom, 0px)); transform: translateX(-50%); z-index: 50; }
.prog-btn { display: flex; align-items: center; gap: 9px; background: var(--raised); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px 6px 7px; font-family: var(--mono); font-size: 12px; white-space: nowrap; box-shadow: 0 6px 24px -10px rgba(0, 0, 0, .35); }
.ring { width: 20px; height: 20px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke-width: 2.5; }
.ring-bg { stroke: var(--line); }
.ring-fg { stroke: var(--fg); stroke-linecap: round; }
.pct { display: none; }
.prog-menu { position: absolute; bottom: calc(100% + 8px); left: 50%; transform: translateX(-50%) translateY(6px); background: var(--raised); border: 1px solid var(--line); border-radius: 14px; padding: 6px; min-width: 190px; opacity: 0; pointer-events: none; transition: .18s; box-shadow: 0 10px 30px -12px rgba(0, 0, 0, .3); }
.prog.open .prog-menu { opacity: 1; pointer-events: auto; transform: translateX(-50%); }
.prog-menu a { display: block; text-decoration: none; font-family: var(--mono); font-size: 12px; color: var(--muted); padding: 8px 10px; border-radius: 9px; }
.prog-menu a:hover, .prog-menu a.on { background: var(--stage); color: var(--fg); }

/* ---------- artboards (feature mockups) ---------- */
.art { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%) scale(var(--s, 1)); transform-origin: 50% 50%; }
.tapdot { position: absolute; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: var(--dot); pointer-events: none; opacity: 0; z-index: 30; }
.tapdot.on { animation: tap .6s ease-out forwards; }
@keyframes tap { 0% { opacity: 0; transform: scale(1.4); } 30% { opacity: 1; transform: scale(.9); } 100% { opacity: 0; transform: scale(1); } }
.play { position: absolute; right: 14px; top: 14px; z-index: 5; font-size: 13px; background: var(--raised); color: var(--fg); border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; }
.play:hover { border-color: var(--fg); }

/* ================================================================
   APP MOCKUPS: Qata's real UI (values from the app's Tailwind classes)
   ================================================================ */
.app {
  --q-indigo: #4570ff; --q-indigo-dark: #2f56e0; --q-indigo-soft: #e3e9ff;
  --q-ember: #ff6808; --q-ember-soft: #ffeadb; --q-bone: #f1f0ec; --q-ink: #000;
  --q-hairline: #e5e7eb; --q-stone: #d1d5db; --q-smoke: #6e6d6c; --q-graphite: #555;
  --green: #22c55e; --red: #ef4444;
  font-family: Inter, ui-sans-serif, system-ui, sans-serif; font-feature-settings: 'ss01', 'cv11';
  font-size: 16px; line-height: 1.5; color: #000; letter-spacing: 0; text-align: left;
  -webkit-font-smoothing: antialiased;
}
.app * { box-sizing: border-box; }
.app button { cursor: pointer; }
.app .i { display: block; flex: none; }
.app .mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; }

/* store theme (white label): default theme "Brasa" */
.st { --brand: #ff6808; --onb: #000; --fondo: #f1f0ec; --card: #fff; --texto: #000; --sec: #6e6d6c; --borde: #e5e7eb; color: var(--texto); }

/* phone frame (PhoneFrame.jsx): drawn at 375 × 812 and scaled */
.ph { --k: .86; width: calc(375px * var(--k)); height: calc(812px * var(--k)); position: relative; flex: none; }
.ph-in { position: absolute; left: 0; top: 0; width: 375px; height: 812px; transform: scale(var(--k)); transform-origin: 0 0; background: #fff; border: 1px solid #e5e7eb; border-radius: 38px; overflow: hidden; overflow: clip; display: flex; flex-direction: column; box-shadow: 0 24px 60px -28px rgba(0, 0, 0, .2); }
.sb { padding: 16px 28px 6px; display: flex; justify-content: space-between; align-items: center; flex: none; font-size: 13px; font-weight: 600; letter-spacing: -.025em; }
.sb span:last-child { display: flex; align-items: center; gap: 4px; }

/* storefront */
.st-screen { flex: 1; min-height: 0; position: relative; display: flex; flex-direction: column; background: var(--fondo); }
.st-head { background: var(--card); border-bottom: 1px solid var(--borde); flex: none; position: relative; }
.st-row { padding: 16px 16px 12px; display: flex; align-items: center; gap: 12px; }
.st-id { flex: 1; min-width: 0; display: flex; align-items: center; gap: 10px; }
.st-name { font-size: var(--nm, 20px); line-height: 28px; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.st-pill { flex: none; display: inline-flex; align-items: center; gap: 6px; font-size: 11px; line-height: 16px; font-weight: 500; padding: 4px 10px; border-radius: 999px; background: var(--fondo); border: 1px solid var(--borde); white-space: nowrap; }
.st-pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: block; transition: background .3s; }
.st-pill.closed i { background: var(--red); }
.st-search { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.st-cats { padding: 0 16px 12px; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.st-cats::-webkit-scrollbar { display: none; }
.cat { flex: none; white-space: nowrap; padding: 8px 16px; border-radius: 999px; font-size: 14px; line-height: 20px; font-weight: 500; border: 1px solid var(--borde); background: var(--card); color: var(--texto); transition: background .3s, color .3s, border-color .3s; }
.cat.on { background: var(--brand); color: var(--onb); border-color: transparent; }
.st-main { flex: 1; min-height: 0; overflow-y: auto; padding: 20px 16px 128px; scrollbar-width: none; }
.st-main::-webkit-scrollbar { display: none; }
.st-sec + .st-sec { margin-top: 32px; }
.st-sec h2 { font-size: 18px; line-height: 28px; font-weight: 600; letter-spacing: -.025em; margin-bottom: 12px; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.made { font-size: 12px; line-height: 16px; color: var(--sec); text-align: center; margin-top: 64px; }
.made a { font-weight: 600; color: var(--texto); text-decoration: none; }
.made a:hover { text-decoration: underline; }
.st-note { background: var(--card); border: 1px solid var(--borde); border-radius: 16px; padding: 10px 12px; font-size: 13px; line-height: 20px; color: var(--sec); text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* product card */
.pc { background: var(--card); border: 1px solid var(--borde); border-radius: 20px; overflow: hidden; display: flex; flex-direction: column; position: relative; isolation: isolate; transition: background .5s, border-color .5s; }
.pc-img { width: 100%; aspect-ratio: 1; background: var(--fondo); position: relative; overflow: hidden; transition: background .5s; }
.pc-img img { width: 100%; height: 100%; padding: 12px; object-fit: contain; display: block; }
.pc.out .pc-img img { filter: grayscale(1); opacity: .5; }
.pc-b { padding: 12px; display: flex; flex-direction: column; flex-grow: 1; }
.pc.out .pc-b { opacity: .6; }
.pc-n { font-size: 15px; line-height: 1.375; font-weight: 500; letter-spacing: -.025em; }
.pc-d { font-size: 12px; line-height: 16px; color: var(--sec); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.pc-f { display: flex; align-items: flex-end; justify-content: space-between; gap: 8px; margin-top: auto; padding-top: 12px; }
.pc-p { display: flex; flex-direction: column; min-width: 0; }
.pc-p small { font-size: 12px; line-height: 1; color: var(--sec); margin-bottom: 4px; }
.pc-p b { font-size: 18px; line-height: 1; font-weight: 600; letter-spacing: -.025em; white-space: nowrap; }
.pc-p b.off { color: var(--brand); }
.pc-p s { font-size: 14px; line-height: 20px; color: var(--sec); margin-top: 4px; }
.add { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--onb); transition: background .3s, color .3s; }
.add.dis { background: var(--borde); color: var(--sec); cursor: not-allowed; }
.add.ghost { background: var(--fondo); border: 1px solid var(--borde); color: var(--texto); }
.nostock { flex: none; font-size: 12px; line-height: 16px; font-weight: 500; padding: 6px 10px; border-radius: 999px; background: var(--fondo); border: 1px solid var(--borde); color: var(--sec); white-space: nowrap; }
.qty { position: absolute; top: 10px; right: 10px; z-index: 2; background: var(--texto); color: var(--card); font-size: 14px; font-weight: 600; min-width: 36px; height: 36px; padding: 0 10px; border-radius: 999px; display: grid; place-items: center; animation: pop .25s ease-out; }
.disc { position: absolute; top: 10px; left: 10px; z-index: 1; background: var(--brand); color: var(--onb); font-size: 14px; font-weight: 600; height: 36px; padding: 0 12px; border-radius: 999px; display: flex; align-items: center; }
@keyframes pop { from { transform: scale(.85); opacity: 0; } to { transform: none; opacity: 1; } }

/* floating cart bar */
.cbar { position: absolute; left: 16px; right: 16px; bottom: 20px; z-index: 5; background: var(--texto); color: var(--card); border-radius: 999px; padding: 12px 24px 12px 12px; display: flex; align-items: center; justify-content: space-between; box-shadow: 0 8px 30px rgba(0, 0, 0, .18); transform: translateY(130px); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.cbar.show { transform: none; }
.cbar > span { display: flex; align-items: center; gap: 12px; font-weight: 500; }
.cbar .n { background: var(--brand); color: var(--onb); font-size: 14px; font-weight: 600; min-width: 36px; height: 36px; padding: 0 8px; border-radius: 999px; display: grid; place-items: center; }
.cbar > b { font-weight: 600; }

/* sheets (modals as bottom sheets on phones) */
.sh { position: absolute; inset: 0; z-index: 10; pointer-events: none; }
.sh-bg { position: absolute; inset: 0; width: 100%; background: rgba(0, 0, 0, .5); opacity: 0; transition: opacity .3s; }
.sh-p { position: absolute; left: 0; right: 0; bottom: 0; background: var(--card); border-radius: 28px 28px 0 0; transform: translateY(102%); transition: transform .42s cubic-bezier(.2, .8, .2, 1); display: flex; flex-direction: column; max-height: 90%; }
.sh.open { pointer-events: auto; }
.sh.open .sh-bg { opacity: 1; }
.sh.open .sh-p { transform: none; }
.sh-cart .sh-p { height: 90%; }
.mh { padding: 20px 20px 16px; display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; flex: none; }
.mh p { font-size: 14px; line-height: 20px; color: var(--sec); }
.mh h2 { font-size: 20px; line-height: 28px; font-weight: 600; letter-spacing: -.025em; display: flex; align-items: center; gap: 8px; }
.x { width: 36px; height: 36px; border-radius: 50%; background: var(--fondo); display: grid; place-items: center; flex: none; }
.opts { padding: 0 20px 24px; display: flex; flex-direction: column; gap: 8px; overflow-y: auto; }
.opt { width: 100%; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 16px; background: var(--fondo); border: 1px solid var(--borde); border-radius: 16px; text-align: left; transition: border-color .2s; }
.opt:hover, .opt.hit { border-color: var(--brand); }
.opt h4 { font-size: 16px; line-height: 24px; font-weight: 500; }
.opt span.pr { color: var(--sec); margin-top: 4px; display: block; }
.opt.out { opacity: .6; cursor: default; }
.opt.out em { font-style: normal; font-size: 14px; font-weight: 500; color: var(--sec); }

.cart-h { border-bottom: 1px solid var(--borde); align-items: center; }
.cart-b { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 28px; scrollbar-width: none; }
.cart-b::-webkit-scrollbar { display: none; }
.items { display: flex; flex-direction: column; gap: 12px; }
.it { display: flex; gap: 12px; align-items: center; }
.it-img { width: 56px; height: 56px; background: var(--fondo); border-radius: 12px; overflow: hidden; flex: none; }
.it-img img { width: 100%; height: 100%; object-fit: contain; padding: 4px; display: block; }
.it-t { flex: 1; min-width: 0; }
.it-t h4 { font-weight: 500; line-height: 1.375; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.it-t p { font-size: 14px; color: var(--sec); }
.step { display: flex; align-items: center; border: 1px solid var(--borde); border-radius: 999px; flex: none; }
.step button { width: 36px; height: 36px; display: grid; place-items: center; color: var(--sec); }
.step span { width: 24px; text-align: center; font-size: 14px; font-weight: 600; }
.fields { display: flex; flex-direction: column; gap: 20px; }
.lbl { display: block; font-size: 14px; line-height: 20px; font-weight: 500; margin-bottom: 8px; }
.lbl em { font-style: normal; font-weight: 400; color: var(--sec); }
.seg { display: flex; background: var(--fondo); border-radius: 999px; padding: 4px; border: 1px solid var(--borde); }
.seg button { flex: 1; padding: 10px 0; font-size: 14px; line-height: 20px; font-weight: 500; border-radius: 999px; color: var(--sec); }
.seg button.on { background: var(--card); color: var(--texto); box-shadow: 0 0 0 1px var(--borde); }
.where { font-size: 14px; color: var(--sec); margin-top: 8px; display: flex; gap: 6px; align-items: flex-start; }
.times { display: flex; flex-wrap: wrap; gap: 8px; }
.times button { padding: 8px 16px; border-radius: 999px; font-size: 14px; line-height: 20px; font-weight: 500; border: 1px solid var(--borde); background: var(--card); }
.times button.on { background: var(--brand); color: var(--onb); border-color: transparent; }
.field { width: 100%; border: 1px solid var(--borde); border-radius: 12px; padding: 12px 16px; outline: none; background: var(--card); font-size: 16px; line-height: 24px; }
.field:focus { border-color: var(--brand); }
.pays { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pays button { display: flex; align-items: center; justify-content: center; gap: 8px; padding: 12px 0; border-radius: 16px; font-size: 14px; line-height: 20px; font-weight: 500; border: 1px solid var(--borde); background: var(--card); }
.pays button.on { border-color: var(--brand); background: var(--fondo); box-shadow: 0 0 0 1px var(--brand); }
.alias { padding: 16px; background: var(--fondo); border-radius: 16px; }
.alias > p { font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.alias div { display: flex; align-items: center; gap: 8px; }
.alias code { flex: 1; font-size: 14px; background: var(--card); padding: 10px 12px; border-radius: 12px; border: 1px solid var(--borde); }
.alias .cp { width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: var(--onb); flex: none; }
.cart-f { padding: 16px 20px 20px; border-top: 1px solid var(--borde); background: var(--card); flex: none; }
.tot { display: flex; justify-content: space-between; align-items: baseline; margin-bottom: 16px; }
.tot span { color: var(--sec); }
.tot b { font-size: 24px; line-height: 32px; font-weight: 600; letter-spacing: -.025em; }
.send { width: 100%; font-weight: 500; padding: 16px 0; border-radius: 999px; display: flex; justify-content: center; align-items: center; gap: 8px; background: var(--brand); color: var(--onb); }
.priv { font-size: 12px; line-height: 1.375; color: var(--sec); text-align: center; margin-top: 12px; }
.priv u { text-decoration: underline; }

/* whatsapp (generic chat look) */
.wa-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; background: #efeae2; }
.wa-top { display: flex; align-items: center; gap: 10px; padding: 8px 14px 10px; background: #f6f6f6; border-bottom: 1px solid #e2e2e2; flex: none; }
.wa-av { width: 38px; height: 38px; border-radius: 50%; background: #dfe5e7; color: #54656f; font-size: 13px; font-weight: 600; display: grid; place-items: center; flex: none; }
.wa-top b { display: block; font-size: 16px; line-height: 1.2; font-weight: 600; }
.wa-top small { font-size: 12px; color: #667781; }
.wa-chat { flex: 1; min-height: 0; overflow-y: auto; padding: 12px 12px; display: flex; flex-direction: column; gap: 8px; scrollbar-width: none; }
.wa-chat::-webkit-scrollbar { display: none; }
.wa-day { align-self: center; background: #fff; color: #54656f; font-size: 11px; font-weight: 500; border-radius: 8px; padding: 4px 10px; }
.wa-hint { margin: auto; text-align: center; font-size: 14px; color: #667781; max-width: 22ch; }
.bub { background: #d9fdd3; border-radius: 8px 8px 2px 8px; padding: 7px 10px 6px; font-size: 15px; line-height: 1.4; color: #111b21; box-shadow: 0 1px .5px rgba(11, 20, 26, .13); max-width: 86%; align-self: flex-end; animation: pop .3s ease-out; }
.bub.in { background: #fff; border-radius: 8px 8px 8px 2px; align-self: flex-start; }
.bub .t { display: block; text-align: right; font-size: 11px; color: #667781; margin-top: 2px; }
.bub .t i { font-style: normal; color: #53bdeb; letter-spacing: -3px; margin-left: 3px; }
.bub .gap { height: 8px; }
.wa-comp { display: flex; align-items: flex-end; gap: 8px; padding: 8px 10px 28px; background: #f6f6f6; flex: none; }
.wa-draft { flex: 1; background: #fff; border-radius: 20px; border: 1px solid #e2e2e2; padding: 9px 14px; font-size: 15px; line-height: 1.4; max-height: 300px; overflow-y: auto; color: #8696a0; scrollbar-width: none; }
.wa-draft::-webkit-scrollbar { display: none; }
.wa-draft.has { color: #111b21; }
.wa-send { width: 42px; height: 42px; border-radius: 50%; background: #25a366; color: #fff; display: grid; place-items: center; flex: none; }
.wa-send.ready { animation: ready 1.8s infinite; }
@keyframes ready { 0% { box-shadow: 0 0 0 0 rgba(37, 163, 102, .4); } 70%, 100% { box-shadow: 0 0 0 10px rgba(37, 163, 102, 0); } }
.code-hl { border-radius: 4px; transition: background .4s; }
.code-hl.on { background: #ffe0c7; }

/* owner panel (mobile layout) */
.ow-screen { flex: 1; min-height: 0; display: flex; flex-direction: column; background: var(--q-bone); position: relative; }
.ow-bar { height: 64px; flex: none; background: #fff; border-bottom: 1px solid var(--q-hairline); padding: 0 16px; display: flex; align-items: center; justify-content: space-between; }
.logo { display: inline-flex; align-items: center; gap: 8px; font-size: 20px; font-weight: 500; letter-spacing: -.025em; }
.logo img { width: 32px; height: 32px; display: block; }
.ow-bar-r { display: flex; align-items: center; gap: 8px; }
.bellpill { background: var(--q-ember); color: #fff; font-size: 12px; font-weight: 600; height: 32px; padding: 0 12px; border-radius: 999px; display: flex; align-items: center; gap: 6px; animation: pop .25s ease-out; }
.ibtn { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--q-graphite); }
.ow-body { flex: 1; min-height: 0; overflow-y: auto; padding: 16px 16px 120px; scrollbar-width: none; }
.ow-body::-webkit-scrollbar { display: none; }
.ph1 { font-size: 32px; line-height: 1.25; font-weight: 500; letter-spacing: -.03em; }
.ph-sub { color: var(--q-smoke); margin-top: 4px; }
.btns { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.b { display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-weight: 500; border-radius: 999px; padding: 10px 20px; white-space: nowrap; }
.b-sm { padding: 8px 16px; font-size: 14px; line-height: 20px; }
.b-pri { background: var(--q-indigo); color: #fff; }
.b-sec { background: var(--q-bone); color: #000; }
.b-out { background: #fff; color: #000; }
.b-dis { background: #fff; color: var(--q-graphite); }
.live { margin: 12px 0 24px; font-size: 14px; color: var(--q-smoke); display: flex; align-items: center; gap: 8px; }
.live i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); display: block; animation: pulse 2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .45; } }
.card { background: #fff; border-radius: 20px; }
.pcard { padding: 20px; margin-bottom: 24px; box-shadow: 0 0 0 2px var(--q-ember); animation: pop .3s ease-out; }
.pcard-h { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; }
.pcard-h i { width: 10px; height: 10px; border-radius: 50%; background: var(--q-ember); display: block; }
.h2 { font-size: 20px; line-height: 28px; font-weight: 500; letter-spacing: -.025em; }
.pcard > p { font-size: 14px; line-height: 20px; color: var(--q-smoke); margin-bottom: 20px; }
.pitems { display: flex; flex-direction: column; gap: 8px; }
.pitem { background: var(--q-bone); border-radius: 16px; padding: 12px; display: flex; flex-direction: column; gap: 12px; overflow: hidden; transition: opacity .3s, transform .3s; }
.pitem.leave { opacity: 0; transform: translateY(6px); }
.pitem-r { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ocode { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-weight: 600; color: var(--q-ember); background: #fff; padding: 4px 10px; border-radius: 8px; flex: none; transition: box-shadow .4s; }
.ocode.on { box-shadow: 0 0 0 2px #ffc49c; }
.pitem-r b { font-weight: 500; display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pitem-r small { font-size: 12px; line-height: 16px; color: var(--q-smoke); display: block; }
.pitem .btns { margin-top: 0; flex-wrap: nowrap; }
.pitem .btns .b { flex: 1; }
.counts { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 24px; }
.cnt { background: #fff; border-radius: 20px; padding: 20px; }
.cnt p { font-size: 14px; line-height: 20px; color: var(--q-smoke); display: flex; align-items: center; gap: 6px; }
.cnt b { display: block; font-size: 36px; line-height: 40px; font-weight: 500; letter-spacing: -.025em; margin-top: 12px; }
.cnt.road { background: var(--q-indigo-soft); }
.cnt.road p, .cnt.road b { color: var(--q-indigo); }
.cnt.done p { color: #000; }
.cnt.today { background: #000; }
.cnt.today p { color: rgba(255, 255, 255, .7); }
.cnt.today b { color: #fff; }
.olist { overflow: hidden; }
.olist li { list-style: none; padding: 16px 20px; border-top: 1px solid var(--q-hairline); display: flex; flex-direction: column; gap: 10px; }
.olist li:first-child { border-top: 0; }
.olist li.new { animation: rowin 1.2s ease-out; }
@keyframes rowin { from { background: var(--q-indigo-soft); } to { background: #fff; } }
.on-name { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.on-name span { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; color: var(--q-smoke); margin-left: 8px; font-weight: 400; }
.on-det { font-size: 14px; }
.on-det b { font-weight: 500; }
.on-det span { color: var(--q-smoke); margin-left: 8px; }
.on-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.chip { display: inline-flex; align-items: center; gap: 6px; padding: 4px 12px; font-size: 12px; line-height: 16px; font-weight: 500; border-radius: 999px; white-space: nowrap; transition: background .3s, color .3s; }
.chip.retiro { background: var(--q-bone); }
.chip.delivery { background: var(--q-ember-soft); }
.chip.pending { background: var(--q-bone); color: #000; }
.chip.road { background: var(--q-indigo-soft); color: var(--q-indigo); }
.chip.done { background: #000; color: #fff; }
.on-act { margin-left: auto; display: flex; gap: 4px; }
.empty { padding: 48px 24px; text-align: center; color: var(--q-smoke); font-size: 15px; }
.toast { position: absolute; left: 16px; right: 16px; bottom: 16px; z-index: 8; background: #000; color: #fff; border-radius: 20px; padding: 16px; display: flex; align-items: center; gap: 12px; box-shadow: 0 25px 50px -12px rgba(0, 0, 0, .25); transform: translateY(calc(100% + 24px)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.toast.show { transform: none; }
.toast .ic { width: 40px; height: 40px; border-radius: 50%; background: var(--q-ember); display: grid; place-items: center; flex: none; }
.toast-t { flex: 1; min-width: 0; }
.toast-t b { font-weight: 500; display: block; }
.toast-t small { font-size: 14px; color: rgba(255, 255, 255, .7); display: block; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.toast .b { background: #fff; color: #000; padding: 8px 16px; font-size: 14px; }

.cursor { position: absolute; left: 0; top: 0; width: 22px; height: 22px; margin: -11px 0 0 -11px; border-radius: 50%; background: rgba(20, 20, 20, .22); border: 1.5px solid rgba(255, 255, 255, .9); z-index: 40; pointer-events: none; opacity: 0; transition: translate .7s cubic-bezier(.45, 0, .2, 1), opacity .3s; }
.cursor.show { opacity: 1; }
.cursor.tap { animation: ctap .4s ease-out; }
@keyframes ctap { 40% { scale: .75; } }

/* ---------- the three-pane demo ---------- */
.demo { position: relative; overflow-anchor: none; }
.panes { display: flex; justify-content: center; gap: 44px; align-items: flex-start; }
.pane-lab { font-size: 14px; color: var(--muted); margin: 0 0 14px 4px; display: flex; gap: 8px; align-items: center; transition: color .3s; }
.pane-lab i { font-style: normal; width: 18px; height: 18px; border-radius: 50%; border: 1px solid currentColor; display: grid; place-items: center; font-size: 10px; }
.demo[data-stage="store"] .p-store .pane-lab, .demo[data-stage="wa"] .p-wa .pane-lab, .demo[data-stage="panel"] .p-panel .pane-lab { color: var(--fg); }
.demo-tabs { display: none; gap: 4px; margin: 0 auto 20px; width: max-content; max-width: 100%; background: var(--raised); border: 1px solid var(--line); border-radius: 999px; padding: 3px; }
.demo-tabs button { font-family: var(--mono); font-size: 12px; padding: 6px 13px; border-radius: 999px; color: var(--muted); }
.demo[data-stage="store"] [data-st="store"], .demo[data-stage="wa"] [data-st="wa"], .demo[data-stage="panel"] [data-st="panel"] { background: var(--fg); color: var(--bg); }
.demo.auto .panes { pointer-events: none; }

/* ---------- feature artboards ---------- */
.mcard { background: #fff; border-radius: 20px; }
.mshadow { box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .25); }
.eyebrow { font-size: 12px; line-height: 16px; font-weight: 700; text-transform: uppercase; letter-spacing: .025em; color: var(--q-smoke); }
.slice { width: 375px; background: var(--fondo); border-radius: 14px; overflow: hidden; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .25); border: 1px solid rgba(0, 0, 0, .04); }
.slice .st-main { padding-bottom: 20px; overflow: hidden; }
.toggle { position: relative; width: 48px; height: 28px; border-radius: 999px; background: var(--q-stone); flex: none; transition: background .25s; }
.toggle::after { content: ''; position: absolute; left: 4px; top: 4px; width: 20px; height: 20px; background: #fff; border-radius: 50%; transition: transform .25s; }
.toggle.on { background: var(--q-indigo); }
.toggle.on::after { transform: translateX(20px); }
.scard { padding: 24px; display: flex; align-items: center; justify-content: space-between; gap: 16px; }
.scard .big { font-size: 24px; line-height: 32px; font-weight: 500; letter-spacing: -.025em; margin-top: 4px; display: flex; align-items: center; gap: 8px; }
.scard .big i { width: 10px; height: 10px; border-radius: 50%; display: block; background: var(--green); transition: background .3s; }
.scard .big i.off { background: var(--red); }
.input { width: 100%; border: 1px solid var(--q-hairline); border-radius: 12px; padding: 12px 16px; background: #fff; transition: border-color .2s, box-shadow .2s; min-height: 50px; }
.input.focus { border-color: var(--q-indigo); box-shadow: 0 0 0 4px var(--q-indigo-soft); }
.flabel { display: block; font-size: 14px; line-height: 20px; font-weight: 500; margin-bottom: 6px; }
.caret { display: inline-block; width: 1.5px; height: 1.1em; background: #000; vertical-align: -3px; margin-left: 1px; animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.notice { margin-top: 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; background: var(--q-indigo-soft); color: var(--q-indigo); border-radius: 16px; padding: 12px 16px; font-size: 14px; line-height: 20px; transition: opacity .35s, transform .35s; }
.notice u { font-weight: 500; flex: none; }
.hide { opacity: 0; transform: translateY(4px); }
.fchip { font-size: 12px; line-height: 16px; font-weight: 500; padding: 6px 12px; border-radius: 999px; background: var(--q-bone); white-space: nowrap; transition: background .2s, color .2s; }
.fchip.req { background: var(--q-indigo-soft); color: var(--q-indigo); }
.fchip.hit { background: var(--q-indigo); color: #fff; }
.fchip.hit:not(.req) { background: var(--q-hairline); color: #000; }
.ta { border: 1px solid var(--q-hairline); border-radius: 12px; padding: 12px 16px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; line-height: 1.625; white-space: pre-wrap; min-height: 172px; }
.prevbox { background: var(--q-bone); border-radius: 16px; padding: 16px; }
.prevbub { background: #fff; border-radius: 16px 16px 16px 6px; padding: 16px; font-size: 14px; line-height: 1.625; white-space: pre-wrap; min-height: 140px; }
.prevbub mark { background: transparent; color: inherit; transition: background .6s; border-radius: 3px; }
.prevbub mark.on { background: var(--q-indigo-soft); }
.preset { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; border: 1px solid var(--q-hairline); background: #fff; font-size: 14px; font-weight: 500; text-align: left; transition: border-color .3s, box-shadow .3s; }
.preset.on { border-color: var(--q-indigo); box-shadow: 0 0 0 2px var(--q-indigo-soft); }
.sw3 { display: flex; }
.sw3 i { width: 24px; height: 24px; border-radius: 50%; border: 2px solid #fff; box-shadow: 0 0 0 1px var(--q-hairline); display: block; }
.sw3 i + i { margin-left: -6px; }
.ccheck { border-radius: 16px; border: 2px solid #16a34a; padding: 10px 12px; background: #fff; transition: border-color .3s; }
.ccheck.bad { border-color: var(--red); }
.ccheck p { font-size: 12px; line-height: 1.25; color: var(--q-smoke); }
.ccheck .r { margin-top: 4px; line-height: 1; }
.ccheck .r b { font-size: 24px; font-weight: 600; letter-spacing: -.025em; font-variant-numeric: tabular-nums; }
.ccheck .r span { font-size: 20px; font-weight: 300; }
.ccheck em { display: block; font-style: normal; font-size: 12px; font-weight: 500; margin-top: 6px; color: #15803d; }
.ccheck.bad em { color: #dc2626; }
.colorrow { display: flex; align-items: center; gap: 12px; padding: 12px; border-radius: 16px; background: var(--q-bone); }
.colorrow .sw { width: 40px; height: 40px; border-radius: 12px; flex: none; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .08); }
.colorrow b { display: block; font-size: 14px; font-weight: 500; }
.colorrow small { display: block; font-size: 12px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; color: var(--q-smoke); text-transform: uppercase; }
.qrcard { background: #fff; border-radius: 16px; padding: 18px 18px 14px; text-align: center; width: 190px; border: 1px dashed var(--q-stone); position: relative; overflow: hidden; }
.qrcard b { display: block; font-size: 16px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.qrcard svg { width: 140px; height: 140px; display: block; margin: 0 auto; }
.qrcard small { display: block; font-size: 12px; color: var(--q-smoke); margin-top: 10px; }
.scan { position: absolute; left: 22px; right: 22px; top: 46px; height: 2px; background: var(--q-indigo); opacity: 0; box-shadow: 0 0 10px rgba(69, 112, 255, .5); }
.qrcard.scanning .scan { animation: scan 1.6s ease-in-out; }
@keyframes scan { 0% { opacity: 0; top: 46px; } 15% { opacity: .9; } 50% { top: 182px; } 85% { opacity: .9; } 100% { opacity: 0; top: 46px; } }
.urlbar { width: 360px; background: #fff; border-radius: 999px; padding: 12px 18px; display: flex; align-items: center; gap: 10px; font-size: 16px; box-shadow: 0 18px 40px -22px rgba(0, 0, 0, .25); }
.lib { display: grid; grid-template-columns: repeat(5, 72px); gap: 10px; }
.lib div { width: 72px; height: 72px; border-radius: 16px; background: rgba(255, 255, 255, .5); border: 1px dashed rgba(0, 0, 0, .12); display: grid; place-items: center; overflow: hidden; transition: background .4s, border-color .4s; }
.lib img { width: 100%; height: 100%; object-fit: contain; padding: 8px; opacity: 0; transform: scale(.9); transition: opacity .5s, transform .5s; }
.lib div.on { background: var(--q-bone); border: 1px solid transparent; }
.lib div.on img { opacity: 1; transform: none; }
.btab { display: flex; align-items: center; gap: 8px; background: #fff; border-radius: 12px 12px 0 0; padding: 10px 14px; font-size: 13px; width: 250px; }
.btab img { width: 16px; height: 16px; }
.fade-swap { transition: opacity .35s; }
.fade-swap.out { opacity: 0; }

/* ---------- responsive ---------- */
@media (max-width: 1080px) {
  .demo-tabs { display: flex; }
  .pane { display: none; }
  .demo[data-stage="store"] .p-store, .demo[data-stage="wa"] .p-wa, .demo[data-stage="panel"] .p-panel { display: block; }
  .pane-lab { justify-content: center; margin-left: 0; }
}
@media (max-width: 1100px) { .facts { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 900px) {
  .row { grid-template-columns: 1fr; gap: 14px; }
  .lab { padding-top: 0; }
  .principles { grid-template-columns: 1fr; gap: 0; }
  .principles li { padding: 18px 0 20px; }
  .learn article { grid-template-columns: 1fr; gap: 6px; }
}
@media (max-width: 640px) {
  .wrap { padding-left: max(16px, env(safe-area-inset-left, 0px)); padding-right: max(16px, env(safe-area-inset-right, 0px)); }
  body { font-size: 16px; }
  .intro { padding-top: 40px; padding-bottom: 32px; }
  .meta { grid-template-columns: 1fr 1fr; row-gap: 16px; margin-bottom: 36px; }
  .stage-hero, .stage-try { padding: 24px 8px 28px; }
  .numbers { grid-template-columns: 1fr; gap: 32px; padding-top: 64px; }
  .sec { padding-top: 80px; }
  .sec + .sec { padding-top: 64px; }
  .facts { grid-template-columns: 1fr; }
  .ph { --k: .8; }
  .feats { grid-template-columns: 1fr; gap: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
  html { scroll-behavior: auto; }
}
