/* Colours and type match the Kgwebo24 app (tailwind.config.js, globals.css). */
:root {
  --brand-800: #122E1A;
  --brand-700: #173A21;
  --brand-600: #1F4A2B;
  --brand-500: #2E5E37;
  --brand-200: #9FC2A3;
  --brand-50: #EAF1EA;
  --cream: #F1ECE1;
  --cream-50: #F8F5EE;
  --cream-200: #E7DFCE;
  --amber-400: #FBBF24;
  --amber-500: #F59E0B;
  --amber-600: #D97706;
  --ink: #221F1A;
  --muted: #6B6559;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --card-shadow: 0 1px 2px rgba(28,24,16,.04), 0 8px 20px -12px rgba(28,24,16,.14);

  --font: "Manrope", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 5vw, 64px);
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--cream-50);
  color: var(--ink);
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; background: none; border: 0; padding: 0; cursor: pointer; }

.ic { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2.25; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.ic-fill { fill: currentColor; stroke: none; }

/* ---------- Nav ---------- */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 50;
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 16px var(--gutter);
  transition: background .4s var(--ease), box-shadow .4s var(--ease), padding .4s var(--ease);
}
.nav.scrolled {
  background: rgba(248,245,238,.85);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  box-shadow: 0 1px 0 rgba(34,31,26,.08);
  padding-top: 10px; padding-bottom: 10px;
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 18px; letter-spacing: -0.02em; }
.logo-mark { width: 34px; height: 34px; flex: none; overflow: visible; }
.logo-mark .scallop { transform-box: fill-box; transform-origin: center top; }
.logo:hover .logo-mark .scallop { animation: sway .7s var(--ease); }
.logo:hover .logo-mark .scallop:nth-of-type(2) { animation-delay: .06s; }
.logo:hover .logo-mark .scallop:nth-of-type(3) { animation-delay: .12s; }
.logo:hover .logo-mark .scallop:nth-of-type(4) { animation-delay: .18s; }
@keyframes sway { 40% { transform: scaleY(1.25); } }
.nav-links { display: flex; gap: 32px; font-size: 15px; font-weight: 700; color: var(--muted); }
.nav-links a { transition: color .3s; }
.nav-links a:hover { color: var(--ink); }

/* ---------- Buttons (same shapes as the app's Button) ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 26px;
  border-radius: 20px;
  background: var(--amber-500);
  color: #fff;
  font-weight: 800;
  font-size: 16px;
  transition: transform .35s var(--ease), background .25s, box-shadow .35s var(--ease);
}
.btn:hover { background: var(--amber-600); transform: translateY(-2px); box-shadow: 0 14px 28px -14px rgba(217,119,6,.7); }
.btn:active { transform: scale(.97); }
.btn .ic { transition: transform .35s var(--ease); }
.btn:hover .ic { transform: translateX(3px); }
.btn-sm { padding: 10px 18px; font-size: 14px; border-radius: 16px; }
.btn-ghost { background: #fff; color: var(--brand-700); box-shadow: var(--card-shadow); }
.btn-ghost:hover { background: #fff; box-shadow: 0 14px 28px -16px rgba(28,24,16,.35); }
.btn-ghost:hover .ic { transform: scale(1.15); }
.btn-outline { background: transparent; color: var(--brand-700); box-shadow: inset 0 0 0 2px var(--brand-700); }
.btn-outline:hover { background: var(--brand-700); color: #fff; box-shadow: none; }

/* ---------- Hero ---------- */
.hero {
  max-width: 1240px; margin: 0 auto;
  min-height: 100svh;
  display: grid; grid-template-columns: 1.05fr .95fr; align-items: center; gap: 40px;
  padding: 110px var(--gutter) 48px;
}
.kicker {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 14px; font-weight: 700; color: var(--brand-500);
  margin-bottom: 20px;
}
.kicker.light { color: var(--amber-400); }
.dot-live { width: 8px; height: 8px; border-radius: 50%; background: var(--brand-500); box-shadow: 0 0 0 0 rgba(46,94,55,.5); animation: live 2s infinite; }
@keyframes live { 70% { box-shadow: 0 0 0 8px rgba(46,94,55,0); } 100% { box-shadow: 0 0 0 0 rgba(46,94,55,0); } }
.hero h1 {
  font-size: clamp(42px, 6.2vw, 76px);
  font-weight: 800;
  line-height: 1.02;
  letter-spacing: -0.04em;
  margin-bottom: 24px;
}
.hl {
  color: var(--brand-500);
  background: linear-gradient(transparent 64%, rgba(245,158,11,.38) 64%, rgba(245,158,11,.38) 90%, transparent 90%) no-repeat 0 0 / 0% 100%;
  animation: mark 1s var(--ease) 1s forwards;
}
@keyframes mark { to { background-size: 100% 100%; } }
.lede { font-size: clamp(17px, 1.45vw, 20px); color: var(--muted); max-width: 31em; margin-bottom: 34px; font-weight: 500; }
.cta-row { display: flex; flex-wrap: wrap; gap: 12px; }
.fine { margin-top: 16px; font-size: 14px; color: var(--muted); font-weight: 600; }

.rise { opacity: 0; transform: translateY(24px); animation: rise .9s var(--ease) forwards; animation-delay: var(--d, 0s); }
@keyframes rise { to { opacity: 1; transform: none; } }

.hero-stage { position: relative; display: grid; place-items: center; padding: 20px 0; }
.hero-stage::before {
  content: ""; position: absolute; inset: 8% 4%;
  border-radius: 48px;
  background: var(--cream);
  transform: rotate(-4deg);
  z-index: -1;
}
.float-chip {
  position: absolute;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 16px;
  border-radius: 20px;
  font-size: 14px; font-weight: 600;
  box-shadow: 0 18px 36px -18px rgba(28,24,16,.4);
  white-space: nowrap;
}
.float-chip b { font-weight: 800; }
.chip-a { top: 2%; left: -6%; background: var(--brand-50); color: var(--brand-700); animation: bob 6s ease-in-out infinite; }
.chip-b { bottom: 30%; right: -2%; background: #fff; color: var(--amber-600); animation: bob 6s ease-in-out -3s infinite; }
.sdot { width: 8px; height: 8px; border-radius: 50%; }
.sdot.amber { background: var(--amber-500); }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Device frame ---------- */
.device {
  --s: .8;
  position: relative;
  width: calc(360px * var(--s) + 20px);
  height: calc(740px * var(--s) + 20px);
  border-radius: calc(44px * var(--s) + 10px);
  background: #12140F;
  box-shadow: 0 50px 90px -40px rgba(18,46,26,.6), inset 0 0 0 1.5px rgba(255,255,255,.08);
  flex: none;
}
#hero-device { animation: float 8s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0) rotate(-1.5deg); } 50% { transform: translateY(-12px) rotate(-.5deg); } }

/* ---------- Demo ---------- */
.demo {
  margin: 0 var(--gutter);
  border-radius: 40px;
  background: var(--brand-700);
  color: #fff;
  padding: clamp(56px, 8vw, 104px) clamp(20px, 5vw, 80px);
  scroll-margin-top: 24px;
}
.demo-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-areas: "head stage" "steps stage";
  grid-template-rows: auto 1fr;
  column-gap: clamp(32px, 6vw, 96px);
  align-items: start;
}
.demo-head { grid-area: head; }
.demo-head h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.demo-sub { margin-top: 14px; color: rgba(255,255,255,.6); font-weight: 600; }
.steps { grid-area: steps; list-style: none; margin: 36px 0 0; padding: 0; display: grid; gap: 4px; }
.step {
  width: 100%; text-align: left;
  display: grid; gap: 4px;
  padding: 14px 18px 16px;
  border-radius: 20px;
  color: rgba(255,255,255,.55);
  transition: background .4s var(--ease), color .3s;
  position: relative;
}
.step:hover { color: rgba(255,255,255,.85); }
.step-t { font-size: 18px; font-weight: 800; letter-spacing: -0.01em; display: flex; align-items: center; gap: 8px; }
.step-d {
  font-size: 15px; font-weight: 500; color: rgba(255,255,255,.7);
  max-height: 0; opacity: 0; overflow: hidden;
  transition: max-height .5s var(--ease), opacity .4s;
}
.step .bar { height: 3px; border-radius: 3px; background: rgba(255,255,255,.1); overflow: hidden; margin-top: 8px; opacity: 0; transition: opacity .3s; }
.step .bar i { display: block; height: 100%; width: 0; background: var(--amber-500); border-radius: inherit; }
.step.on { background: rgba(255,255,255,.07); color: #fff; }
.step.on .step-d { max-height: 90px; opacity: 1; }
.step.on .bar { opacity: 1; }
.step.on .bar i { animation: fill var(--dur, 6s) linear forwards; }
.steps.paused .step.on .bar i { animation-play-state: paused; }
@keyframes fill { to { width: 100%; } }
.pro {
  font-style: normal; font-size: 11px; font-weight: 800;
  padding: 3px 8px; border-radius: 999px;
  background: var(--amber-500); color: #fff;
}
.demo-stage { grid-area: stage; display: flex; flex-direction: column; align-items: center; gap: 18px; }
.demo-stage .device { box-shadow: 0 50px 90px -40px rgba(0,0,0,.7), inset 0 0 0 1.5px rgba(255,255,255,.1); }
.playpause {
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center;
  background: var(--amber-500); color: #fff;
  box-shadow: 0 10px 24px -10px rgba(0,0,0,.6);
  transition: transform .3s var(--ease);
}
.playpause:hover { transform: scale(1.08); }
.playpause .ic { width: 16px; height: 16px; }

/* ---------- Pricing ---------- */
.pricing { max-width: 960px; margin: 0 auto; padding: clamp(80px, 11vw, 140px) var(--gutter) clamp(60px, 8vw, 100px); scroll-margin-top: 40px; }
.pricing-head { text-align: center; margin-bottom: 48px; }
.pricing-head h2, .final h2 { font-size: clamp(34px, 4.4vw, 54px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.05; }
.sub { margin-top: 14px; color: var(--muted); font-weight: 600; }
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.plan {
  display: flex; flex-direction: column;
  background: #fff;
  border-radius: 28px;
  padding: 32px 28px;
  box-shadow: var(--card-shadow);
  transition: transform .5s var(--ease), box-shadow .5s var(--ease);
}
.plan:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -28px rgba(28,24,16,.35); }
.plan h3 { font-size: 18px; font-weight: 800; }
.price { font-size: 56px; font-weight: 800; letter-spacing: -0.045em; line-height: 1; margin: 16px 0 10px; }
.price span { font-size: 28px; letter-spacing: -0.02em; }
.price small { font-size: 15px; font-weight: 600; letter-spacing: 0; color: var(--muted); margin-left: 6px; }
.plan-desc { color: var(--muted); font-weight: 600; font-size: 15px; }
.plan ul { list-style: none; margin: 26px 0 30px; padding: 0; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 12px; font-size: 15px; font-weight: 600; }
.plan li::before {
  content: ""; flex: none; width: 20px; height: 20px; margin-top: 1px; border-radius: 50%;
  background: var(--brand-50) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23173A21' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 12px no-repeat;
}
.plan-pro { background: var(--brand-700); color: #fff; }
.plan-pro .plan-desc, .plan-pro .price small { color: rgba(255,255,255,.65); }
.plan-pro li::before { background-color: rgba(255,255,255,.12); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23FBBF24' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }

/* ---------- Final + footer ---------- */
.final { text-align: center; padding: 20px var(--gutter) clamp(80px, 10vw, 120px); display: grid; justify-items: center; gap: 28px; }
.final h2 { max-width: 14em; }
.footer {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 16px;
  padding: 32px var(--gutter);
  border-top: 1px solid rgba(34,31,26,.08);
  font-size: 14px; font-weight: 600; color: var(--muted);
}

/* ---------- Scroll reveal ---------- */
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity .9s var(--ease), transform .9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1 !important; transform: none !important; }

/* =====================================================================
   App replica. Everything below is drawn at the app's real size
   (a 360px-wide phone) and scaled down by --s.
   ===================================================================== */
.app {
  position: absolute; top: 10px; left: 10px;
  width: 360px; height: 740px;
  transform: scale(var(--s)); transform-origin: 0 0;
  border-radius: 44px;
  overflow: hidden;
  background: var(--cream);
  color: var(--ink);
  font-family: var(--font);
  font-size: 16px; line-height: 1.5;
  -webkit-user-select: none; user-select: none;
}
.app * { box-sizing: border-box; }
.app .ic { width: 20px; height: 20px; stroke-width: 2; }

.a-status {
  position: absolute; inset: 0 0 auto 0; height: 44px; z-index: 40;
  display: flex; justify-content: space-between; align-items: center;
  padding: 4px 30px 0;
  font-size: 14px; font-weight: 800;
}
.a-status::after { content: ""; position: absolute; left: 50%; top: 11px; width: 98px; height: 28px; border-radius: 20px; background: #000; transform: translateX(-50%); }
.a-status .sig { display: flex; gap: 2px; align-items: flex-end; height: 11px; }
.a-status .sig i { width: 3px; border-radius: 1px; background: var(--ink); }
.a-status .sig i:nth-child(1) { height: 4px; } .a-status .sig i:nth-child(2) { height: 6px; } .a-status .sig i:nth-child(3) { height: 8px; } .a-status .sig i:nth-child(4) { height: 11px; }
.a-status .sig.off i { background: rgba(34,31,26,.2); }
.a-status .rt { display: flex; gap: 6px; align-items: center; }
.a-status .batt { width: 24px; height: 12px; border-radius: 4px; border: 1.5px solid var(--ink); padding: 1.5px; }
.a-status .batt i { display: block; height: 100%; width: 70%; background: var(--ink); border-radius: 1.5px; }

.layer {
  position: absolute; inset: 0;
  padding: 52px 16px 0;
  transition: opacity .45s var(--ease), transform .45s var(--ease);
}
.layer:not(.on) { opacity: 0; transform: translateX(24px); pointer-events: none; }

.a-card { background: #fff; border-radius: 28px; box-shadow: var(--card-shadow); }
.av { border-radius: 20px; display: flex; align-items: center; justify-content: center; font-weight: 700; flex: none; }
.av.sm { width: 32px; height: 32px; font-size: 12px; }
.av.md { width: 40px; height: 40px; font-size: 14px; }
.av.lg { width: 48px; height: 48px; font-size: 16px; }
.t-em { background: #D1FAE5; color: #065F46; } .t-am { background: #FEF3C7; color: #92400E; }
.t-ro { background: #FFE4E6; color: #9F1239; } .t-sk { background: #E0F2FE; color: #075985; }
.t-vi { background: #EDE9FE; color: #5B21B6; } .t-or { background: #FFEDD5; color: #9A3412; }
.t-te { background: #CCFBF1; color: #115E59; } .t-pi { background: #FCE7F3; color: #9D174D; }
.av.brand { background: var(--brand-700); color: #fff; }

.a-h1 { font-size: 24px; font-weight: 800; line-height: 32px; }
.a-sub { font-size: 14px; color: var(--slate-400); font-weight: 500; margin-top: 2px; }
.a-label { font-size: 12px; font-weight: 800; color: var(--slate-400); text-transform: uppercase; letter-spacing: .025em; }
.a-link { font-size: 12px; font-weight: 700; color: var(--brand-700); }
.between { display: flex; align-items: center; justify-content: space-between; }

/* Home */
.home-head { display: flex; align-items: center; gap: 12px; margin-bottom: 16px; }
.hello { font-size: 18px; font-weight: 800; line-height: 28px; }
.synced { font-size: 12px; font-weight: 600; color: var(--slate-400); display: flex; align-items: center; gap: 6px; }
.synced i { width: 6px; height: 6px; border-radius: 50%; background: var(--brand-500); }
.sales { background: var(--brand-700); border-radius: 28px; padding: 20px; margin-bottom: 16px; color: #fff; }
.sales .lbl { font-size: 14px; font-weight: 600; color: rgba(255,255,255,.7); }
.pill-am { background: var(--amber-500); color: #fff; font-size: 12px; font-weight: 700; padding: 4px 10px; border-radius: 999px; display: inline-flex; align-items: center; gap: 4px; }
.pill-am .ic { width: 12px; height: 12px; stroke-width: 2.5; }
.sales .amt { font-size: 36px; font-weight: 800; line-height: 40px; margin: 4px 0 16px; font-variant-numeric: tabular-nums; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 56px; margin-bottom: 8px; }
.bars i { flex: 1; border-radius: 6px; background: rgba(255,255,255,.15); transition: height .8s var(--ease); }
.bars i:last-child { background: var(--amber-500); }
.bar-lbl { display: flex; justify-content: space-between; font-size: 10px; font-weight: 600; color: rgba(255,255,255,.5); margin-bottom: 16px; }
.tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.tile { background: rgba(255,255,255,.1); border-radius: 20px; padding: 10px 12px; }
.tile .k { font-size: 11px; font-weight: 600; color: rgba(255,255,255,.6); }
.tile .v { font-size: 14px; font-weight: 700; margin-top: 2px; }
.qas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 20px; }
.qa { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.qa .c { width: 56px; height: 56px; border-radius: 50%; background: #fff; color: var(--brand-700); display: grid; place-items: center; box-shadow: var(--card-shadow); }
.qa .c .ic { width: 24px; height: 24px; stroke-width: 2.25; }
.qa.primary .c { background: var(--amber-500); color: #fff; }
.qa span { font-size: 11px; font-weight: 700; color: #3A362E; }
.low-row { display: flex; align-items: center; gap: 12px; padding: 12px 20px; }
.low-row + .low-row { border-top: 1px solid var(--cream); }
.low-row .nm { font-size: 14px; font-weight: 700; }
.low-row .st { font-size: 12px; font-weight: 600; color: var(--amber-600); display: flex; align-items: center; gap: 6px; margin-top: 2px; }
.low-row .st i { width: 6px; height: 6px; border-radius: 50%; background: var(--amber-500); }
.low-row .st.out { color: #EF4444; } .low-row .st.out i { background: #EF4444; }
.btn-dark-sm { background: var(--brand-700); color: #fff; font-size: 12px; font-weight: 700; padding: 8px 12px; border-radius: 20px; flex: none; }
.low-row.new { animation: rowIn .6s var(--ease) both; }
@keyframes rowIn { from { opacity: 0; transform: translateY(-8px); background: #FFFBEB; } }

/* Bottom nav */
.bnav { position: absolute; left: 0; right: 0; bottom: 0; z-index: 25; background: var(--brand-700); border-radius: 28px 28px 0 0; display: flex; padding-bottom: 16px; }
.bn { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 10px 0; font-size: 11px; font-weight: 600; color: rgba(255,255,255,.7); }
.bn.on { color: var(--amber-400); font-weight: 700; }
.bn.on .ic { stroke-width: 2.5; }
.bn-mid { flex: 1; display: flex; justify-content: center; padding-top: 6px; }
.fab { width: 56px; height: 56px; margin-top: -24px; border-radius: 50%; background: var(--amber-500); color: #fff; display: grid; place-items: center; box-shadow: 0 0 0 4px var(--cream), 0 10px 15px -3px rgba(0,0,0,.2); }
.fab .ic { width: 26px; height: 26px; stroke-width: 2.5; }

/* Till */
.till-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; min-height: 54px; }
.cart-btn { background: var(--brand-700); color: #fff; border-radius: 20px; padding: 10px 14px; font-size: 14px; font-weight: 700; display: flex; gap: 8px; transition: opacity .3s, transform .3s var(--ease); }
.cart-btn.hide { opacity: 0; transform: scale(.9); }
.search { position: relative; margin-bottom: 12px; }
.search .in { height: 48px; border-radius: 20px; background: #fff; box-shadow: var(--card-shadow); padding: 0 56px 0 40px; display: flex; align-items: center; font-size: 16px; color: var(--slate-400); }
.search .mag { position: absolute; left: 16px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--slate-400); }
.search .scanb { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 12px; background: var(--brand-700); color: #fff; display: grid; place-items: center; }
.search .scanb .ic { width: 18px; height: 18px; }
.chips { display: flex; gap: 8px; margin-bottom: 12px; overflow: hidden; }
.chip { white-space: nowrap; padding: 8px 16px; border-radius: 999px; font-size: 14px; font-weight: 700; background: #fff; color: var(--slate-500); box-shadow: var(--card-shadow); flex: none; }
.chip.on { background: var(--brand-700); color: #fff; box-shadow: none; }
.pgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.pcard { position: relative; padding: 12px; display: flex; flex-direction: column; text-align: left; transition: transform .15s, box-shadow .3s; }
.pcard .av { margin-bottom: 8px; }
.pcard .nm { font-size: 14px; font-weight: 700; line-height: 1.25; padding-right: 24px; }
.pcard .pr { color: var(--brand-700); font-weight: 800; padding-top: 8px; margin-top: auto; }
.pcard.in { box-shadow: 0 0 0 2px var(--brand-700), var(--card-shadow); }
.pcard .badge { position: absolute; top: 10px; right: 10px; width: 24px; height: 24px; border-radius: 50%; background: var(--amber-500); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; transform: scale(0); transition: transform .35s cubic-bezier(.3,1.6,.5,1); }
.pcard.in .badge { transform: scale(1); }
.cartbar { position: absolute; left: 16px; right: 16px; bottom: 96px; z-index: 20; padding: 16px 24px; border-radius: 20px; background: var(--brand-700); color: #fff; font-weight: 700; display: flex; justify-content: space-between; box-shadow: 0 10px 15px -3px rgba(0,0,0,.2); transition: transform .45s var(--ease), opacity .3s; }
.cartbar.hide { transform: translateY(20px); opacity: 0; }
.offbar { position: absolute; left: 0; right: 0; top: 0; z-index: 45; background: var(--amber-500); color: #fff; text-align: center; font-size: 12px; font-weight: 600; padding: 4px 16px; transform: translateY(-100%); transition: transform .45s var(--ease); }
.offbar.show { transform: none; }

/* Bottom sheet (cart) */
.backdrop { position: absolute; inset: 0; z-index: 30; background: rgba(0,0,0,.4); opacity: 0; pointer-events: none; transition: opacity .4s; }
.backdrop.show { opacity: 1; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; z-index: 35; background: #fff; border-radius: 28px 28px 0 0; padding: 12px 16px 28px; transform: translateY(105%); transition: transform .5s var(--ease); }
.sheet.show { transform: none; }
.handle { width: 40px; height: 5px; border-radius: 5px; background: #E2E8F0; margin: 0 auto 14px; }
.sheet-t { font-size: 18px; font-weight: 800; margin-bottom: 12px; }
.line { display: flex; align-items: center; gap: 12px; padding: 8px 0; border-bottom: 1px solid var(--cream); }
.line:last-of-type { border-bottom: 0; }
.line .nm { font-size: 14px; font-weight: 700; }
.line .each { font-size: 12px; color: var(--slate-400); }
.qty { display: flex; align-items: center; gap: 8px; }
.qty b { width: 20px; text-align: center; font-size: 14px; }
.qty i { width: 28px; height: 28px; border-radius: 50%; background: var(--cream); display: grid; place-items: center; }
.qty .ic { width: 12px; height: 12px; stroke-width: 2.5; }
.line .sum { font-size: 14px; font-weight: 700; min-width: 56px; text-align: right; }
.total { display: flex; justify-content: space-between; align-items: center; border-top: 2px solid var(--cream); padding-top: 12px; margin: 4px 0 12px; }
.total span { font-size: 14px; font-weight: 700; color: var(--slate-500); }
.total b { font-size: 24px; font-weight: 800; }
.paid-l { font-size: 12px; font-weight: 700; color: var(--slate-400); margin-bottom: 6px; }
.denoms { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-bottom: 8px; }
.denoms span { padding: 10px 0; border-radius: 12px; text-align: center; font-size: 14px; font-weight: 700; background: var(--cream); color: #475569; transition: background .25s, color .25s; }
.denoms span.on { background: var(--amber-500); color: #fff; }
.change { font-size: 12px; font-weight: 700; color: var(--amber-600); margin-bottom: 12px; }
.change b { display: inline-block; }
.change b.pop { animation: pop .45s cubic-bezier(.3,1.6,.5,1); }
@keyframes pop { 40% { transform: scale(1.35); } }
.tabpart { display: none; margin-bottom: 12px; }
.sheet.tab .tabpart { display: grid; gap: 8px; }
.sheet.tab .cashpart { display: none; }
.cust-in { height: 48px; border-radius: 20px; background: var(--cream); padding: 0 16px; display: flex; align-items: center; font-size: 16px; color: var(--slate-400); }
.cust-in.filled { color: var(--ink); }
.cust { background: #FFFBEB; border-radius: 20px; padding: 10px 16px; opacity: 0; transform: translateY(-6px); transition: opacity .35s, transform .35s var(--ease); }
.cust.show { opacity: 1; transform: none; }
.cust .n { font-size: 14px; font-weight: 700; color: #B45309; }
.cust .d { display: flex; align-items: center; gap: 8px; margin-top: 4px; font-size: 12px; font-weight: 600; color: rgba(180,83,9,.8); }
.rel { font-size: 10px; font-weight: 700; padding: 2px 8px; border-radius: 999px; background: var(--brand-50); color: var(--brand-700); }
.sheet-btns { display: flex; gap: 8px; }
.sheet-btns span { flex: 1; text-align: center; padding: 10px 16px; border-radius: 20px; font-size: 14px; font-weight: 700; transition: opacity .3s, transform .15s; }
.b-out { box-shadow: inset 0 0 0 2px var(--brand-700); color: var(--brand-700); }
.b-amb { background: var(--amber-500); color: #fff; }
.sheet.tab .b-amb { opacity: .5; }

/* Tab book */
.owed .k { font-size: 12px; font-weight: 700; color: var(--slate-400); }
.owed .v { font-size: 30px; font-weight: 800; line-height: 36px; margin-top: 2px; }
.pill-red { background: #FEF2F2; color: #DC2626; font-size: 12px; font-weight: 700; padding: 6px 12px; border-radius: 999px; }
.prog { height: 10px; border-radius: 999px; background: var(--cream); overflow: hidden; margin: 12px 0 8px; }
.prog i { display: block; height: 100%; width: 69%; background: var(--brand-700); border-radius: inherit; }
.owed .note { font-size: 12px; font-weight: 500; color: var(--slate-400); margin-bottom: 12px; }
.b-dark { background: var(--brand-700); color: #fff; border-radius: 20px; padding: 10px 16px; font-size: 14px; font-weight: 700; display: flex; justify-content: center; align-items: center; gap: 8px; transition: transform .15s; }
.b-dark .ic { width: 16px; height: 16px; }
.seg { display: flex; gap: 4px; background: #fff; border-radius: 20px; padding: 4px; box-shadow: var(--card-shadow); margin: 12px 0 12px; }
.seg span { flex: 1; text-align: center; padding: 10px 0; border-radius: 12px; font-size: 14px; font-weight: 700; color: var(--slate-500); }
.seg span.on { background: var(--brand-700); color: #fff; }
.trow { display: flex; align-items: center; gap: 12px; padding: 14px 16px; margin-bottom: 8px; }
.trow .nm { font-size: 14px; font-weight: 700; }
.trow .od { font-size: 12px; font-weight: 600; color: #EF4444; }
.trow .ow { margin-left: auto; font-size: 14px; font-weight: 800; color: #DC2626; }
.trow .sent { font-size: 11px; font-weight: 700; color: var(--brand-700); display: none; align-items: center; gap: 3px; }
.trow .sent .ic { width: 12px; height: 12px; stroke-width: 3; }
.reminded .trow .sent { display: inline-flex; animation: rowIn .5s var(--ease) both; }
.reminded .trow:nth-child(2) .sent { animation-delay: .15s; }
.reminded .trow:nth-child(3) .sent { animation-delay: .3s; }

/* WhatsApp-style notification */
.notif { position: absolute; left: 10px; right: 10px; top: 50px; z-index: 46; background: rgba(255,255,255,.96); border-radius: 22px; padding: 12px 14px; display: flex; gap: 10px; box-shadow: 0 18px 36px -12px rgba(0,0,0,.35); transform: translateY(-140%); transition: transform .55s var(--ease); }
.notif.show { transform: none; }
.notif .wa { width: 36px; height: 36px; border-radius: 10px; background: #25D366; color: #fff; display: grid; place-items: center; flex: none; }
.notif .wa .ic { width: 20px; height: 20px; }
.notif .who { font-size: 13px; font-weight: 800; display: flex; justify-content: space-between; }
.notif .who small { font-size: 11px; color: var(--slate-400); font-weight: 600; }
.notif p { font-size: 13px; line-height: 1.35; color: #334155; font-weight: 500; }

/* Finger tap */
.tap { position: absolute; z-index: 60; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; background: rgba(23,58,33,.22); box-shadow: 0 0 0 2px rgba(23,58,33,.35); pointer-events: none; opacity: 0; }
.tap.go { animation: tap .6s var(--ease); }
@keyframes tap { 0% { opacity: 0; transform: scale(1.6); } 35% { opacity: 1; transform: scale(.85); } 100% { opacity: 0; transform: scale(1.3); } }
.pressed { transform: scale(.95) !important; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .hero { grid-template-columns: 1fr; padding-top: 100px; min-height: 0; gap: 56px; }
  .hero-stage { padding: 0 0 20px; }
  .demo-inner { grid-template-columns: 1fr; grid-template-areas: "head" "stage" "steps"; justify-items: stretch; }
  .demo-stage { justify-self: center; margin-top: 36px; }
  .steps { margin-top: 28px; }
  .plans { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .nav-links { display: none; }
  .hero h1 { letter-spacing: -0.035em; }
  .cta-row .btn { flex: 1 1 100%; }
  #hero-device { --s: .7 !important; }
  #demo-device { --s: .74 !important; }
  .float-chip { font-size: 12px; padding: 9px 12px; }
  .chip-a { left: -2%; top: 6%; }
  .chip-b { right: -2%; bottom: 28%; }
  .demo { margin: 0 8px; border-radius: 28px; }
  .step { padding: 12px 14px 14px; }
  .step-t { font-size: 16px; }
}

/* ---------- Reduced motion ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition: none !important; scroll-behavior: auto !important; }
  .rise { opacity: 1; transform: none; }
  .hl { background-size: 100% 100%; }
}
