/* TableTap — landing page */
:root {
  --bg: #fbf8f4;
  --surface: #ffffff;
  --ink: #17150f;
  --ink-soft: #5b564c;
  --line: #e8e1d6;
  --brand: #e85d04;
  --brand-dark: #c44d03;
  --brand-soft: #fff1e6;
  --teal: #2a9d8f;
  --teal-soft: #e6f6f4;
  --blue: #457b9d;
  --blue-soft: #e8f1f7;
  --amber: #f4a261;
  --amber-soft: #fff4e8;
  --danger: #c1121f;
  --danger-soft: #fde8ea;
  --radius: 20px;
  --radius-sm: 12px;
  --shadow-sm: 0 2px 8px rgba(23, 21, 15, 0.05);
  --shadow: 0 18px 40px -18px rgba(23, 21, 15, 0.22);
  --shadow-lg: 0 40px 80px -32px rgba(23, 21, 15, 0.32);
  --font: "Inter", "Segoe UI", system-ui, -apple-system, sans-serif;
  --max: 1140px;
}

*,
*::before,
*::after { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: 80px;
  /* Fixed nav is OK with this; sticky would not be. Stops marquee/blobs widening the page. */
  overflow-x: hidden;
}

body.lp {
  margin: 0;
  width: 100%;
  max-width: 100%;
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.6;
  overflow-x: hidden;
  overflow-wrap: break-word;
  /* Offset for fixed navbar */
  padding-top: 68px;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }

.wrap {
  width: 100%;
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 20px;
}

/* ---------- Nav (glassmorphism) ---------- */
.lp-nav {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 248, 244, 0.48);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
  transition: border-color 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
}

.lp-nav.scrolled {
  background: rgba(251, 248, 244, 0.72);
  border-bottom-color: rgba(232, 225, 214, 0.7);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.5),
    0 8px 24px -18px rgba(23, 21, 15, 0.28);
}

.lp-nav-inner {
  display: flex;
  align-items: center;
  gap: 10px;
  height: 68px;
  min-width: 0;
  max-width: 100%;
}

.lp-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.15rem;
  letter-spacing: -0.02em;
  margin-right: auto;
  min-width: 0;
  flex: 0 1 auto;
}

.lp-nav-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.lp-logo img {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  box-shadow: var(--shadow-sm);
}

.lp-logo span i { color: var(--brand); font-style: normal; }

.lp-links {
  display: flex;
  align-items: center;
  gap: 4px;
}

.lp-links a {
  padding: 8px 12px;
  border-radius: 999px;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-soft);
  transition: background 0.18s ease, color 0.18s ease;
}

.lp-links a:hover { background: var(--brand-soft); color: var(--brand-dark); }

.lang-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px;
  gap: 2px;
}

.lang-toggle button {
  min-width: 42px;
  height: 32px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--ink-soft);
}

.lang-toggle button.active { background: var(--ink); color: #fff; }

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.95rem;
  transition: transform 0.15s ease, background 0.18s ease, box-shadow 0.18s ease;
  white-space: nowrap;
}

.btn:active { transform: translateY(1px) scale(0.99); }
.btn-primary { background: var(--brand); color: #fff; box-shadow: 0 10px 24px -12px rgba(232, 93, 4, 0.9); }
.btn-primary:hover { background: var(--brand-dark); }
.btn-outline { border: 1px solid var(--line); background: var(--surface); }
.btn-outline:hover { border-color: var(--ink); }
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--ink); }
.btn-sm { min-height: 38px; padding: 0 16px; font-size: 0.88rem; }
.btn-lg { min-height: 54px; padding: 0 28px; font-size: 1.02rem; }
.btn-white { background: #fff; color: var(--ink); }
.btn-secondary { background: var(--ink); color: #fff; }

.lp-burger {
  display: none;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--surface);
  align-items: center;
  justify-content: center;
}

.lp-burger span {
  display: block;
  width: 18px;
  height: 2px;
  background: var(--ink);
  position: relative;
}

.lp-burger span::before,
.lp-burger span::after {
  content: "";
  position: absolute;
  left: 0;
  width: 18px;
  height: 2px;
  background: var(--ink);
}

.lp-burger span::before { top: -6px; }
.lp-burger span::after { top: 6px; }

.lp-mobile-menu {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 8px 20px 20px;
  border-bottom: 1px solid rgba(232, 225, 214, 0.65);
  background: rgba(251, 248, 244, 0.55);
  backdrop-filter: saturate(1.6) blur(18px);
  -webkit-backdrop-filter: saturate(1.6) blur(18px);
}

.lp-mobile-menu.open { display: flex; }

.lp-mobile-menu a {
  padding: 14px 12px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.lp-mobile-menu a:hover { background: var(--brand-soft); }

.lp-mobile-menu .lp-mobile-cta {
  margin-top: 8px;
  justify-content: center;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  min-height: 48px;
  display: flex;
  align-items: center;
  font-weight: 700;
}

.lp-mobile-menu .lp-mobile-cta:hover { background: var(--brand-dark); }

/* ---------- Sections ---------- */
section { position: relative; }

.sec {
  padding: clamp(64px, 9vw, 116px) 0;
}

.kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand-dark);
  font-size: 0.8rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.sec-head { max-width: 660px; margin-bottom: 44px; }
.sec-head.center { margin-left: auto; margin-right: auto; text-align: center; }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 1.1; margin: 0; }

.sec-head h2 {
  font-size: clamp(1.9rem, 4vw, 2.85rem);
  margin: 16px 0 12px;
}

.sec-head p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 1.05rem;
}

/* ---------- Hero ---------- */
.hero {
  position: relative;
  padding: clamp(48px, 7vw, 92px) 0 clamp(56px, 8vw, 104px);
  /* Keep Y visible so floating chips aren't clipped; X is clipped by html/body. */
  overflow: visible;
}

.blob {
  position: absolute;
  border-radius: 50%;
  filter: blur(70px);
  opacity: 0.55;
  pointer-events: none;
  z-index: 0;
}

.blob-1 { width: 460px; height: 460px; background: #ffd7b5; top: -160px; left: -120px; animation: float1 18s ease-in-out infinite; }
.blob-2 { width: 380px; height: 380px; background: #cfeee9; top: 40px; right: -140px; animation: float2 22s ease-in-out infinite; }
.blob-3 { width: 320px; height: 320px; background: #ffe9d1; bottom: -140px; left: 38%; animation: float1 26s ease-in-out infinite reverse; }

@keyframes float1 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(30px, 34px) scale(1.08); }
}

@keyframes float2 {
  0%, 100% { transform: translate(0, 0) scale(1); }
  50% { transform: translate(-36px, 26px) scale(1.1); }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 64px);
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.hero-grid > * { min-width: 0; }

.hero h1 {
  font-size: clamp(2.3rem, 5.4vw, 3.9rem);
  margin: 20px 0 18px;
}

/* Highlight is painted as a background so it survives line wrapping
   on narrow phones instead of forcing the heading to overflow. */
.hero h1 em {
  font-style: normal;
  color: var(--brand);
  background-image: linear-gradient(transparent 64%, rgba(232, 93, 4, 0.18) 64%);
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

.hero-sub {
  font-size: clamp(1rem, 1.4vw, 1.15rem);
  color: var(--ink-soft);
  max-width: 540px;
  margin: 0 0 26px;
}

.hero-points {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  display: grid;
  gap: 10px;
}

.hero-points li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 600;
  font-size: 0.98rem;
}

.tick {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 0.75rem;
  font-weight: 900;
}

.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; }

.hero-note {
  margin: 16px 0 0;
  font-size: 0.86rem;
  color: var(--ink-soft);
}

/* Phone mockup */
.phone-stage {
  position: relative;
  display: grid;
  place-items: center;
  width: 100%;
  max-width: 100%;
  /* Visible so "Pesanan baru" / "Selesai" chips can float beside the phone. */
  overflow: visible;
  padding: 12px 72px;
  perspective: 1200px;
}

.phone {
  width: min(300px, 78vw);
  max-width: 100%;
  border-radius: 40px;
  background: #1b1a17;
  padding: 10px;
  box-shadow: var(--shadow-lg);
  transform: rotateY(-9deg) rotateX(3deg);
  animation: phoneIn 0.9s cubic-bezier(0.22, 1, 0.36, 1) both;
  position: relative;
  z-index: 1;
}

@keyframes phoneIn {
  from { opacity: 0; transform: rotateY(-18deg) translateY(28px); }
  to { opacity: 1; transform: rotateY(-9deg) rotateX(3deg); }
}

.phone-screen {
  background: var(--bg);
  border-radius: 32px;
  overflow: hidden;
  position: relative;
  min-height: 430px;
}

.ps-scene {
  position: absolute;
  inset: 0;
  opacity: 0;
  transform: translateY(8px);
  transition: opacity 0.45s ease, transform 0.45s ease;
  pointer-events: none;
}

.phone[data-scene="scan"] .ps-scene[data-scene="scan"],
.phone[data-scene="menu"] .ps-scene[data-scene="menu"],
.phone[data-scene="cart"] .ps-scene[data-scene="cart"],
.phone[data-scene="done"] .ps-scene[data-scene="done"] {
  opacity: 1;
  transform: none;
}

.ps-scan {
  height: 100%;
  display: grid;
  place-content: center;
  justify-items: center;
  text-align: center;
  font-weight: 700;
  color: var(--ink-soft);
  background: radial-gradient(circle at 50% 42%, #fff 0, var(--bg) 70%);
}

.ps-scan p { margin: 16px 0 0; }

.ps-scan-frame {
  width: 148px;
  height: 148px;
  border: 3px solid var(--brand);
  border-radius: 18px;
  position: relative;
  animation: scanPulse 1.6s ease-in-out infinite;
}

.ps-scan-qr {
  position: absolute;
  inset: 18px;
  background:
    repeating-linear-gradient(90deg, #17150f 0 8px, transparent 8px 14px),
    repeating-linear-gradient(#17150f 0 8px, transparent 8px 14px);
  opacity: 0.85;
  border-radius: 8px;
}

@keyframes scanPulse {
  0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(232, 93, 4, 0.35); }
  50% { transform: scale(1.03); box-shadow: 0 0 0 10px rgba(232, 93, 4, 0); }
}

.ps-item.hit .ps-add {
  background: var(--brand);
  color: #fff;
  transform: scale(1.12);
}

.ps-cart {
  opacity: 0;
  transform: translateY(12px);
  pointer-events: none;
}

.ps-cart-ui { padding: 36px 16px 16px; }
.ps-cart-h { font-weight: 800; margin-bottom: 12px; }
.ps-cart-line { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px dashed var(--line); font-size: 0.82rem; font-weight: 600; }
.ps-serve { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin: 14px 0; }
.ps-serve span { text-align: center; font-size: 0.72rem; font-weight: 800; padding: 8px; border-radius: 10px; border: 2px solid var(--line); }
.ps-serve span.on { border-color: var(--brand); background: var(--brand-soft); color: var(--brand); }
.ps-send { background: var(--brand); color: #fff; text-align: center; font-weight: 800; padding: 12px; border-radius: 12px; font-size: 0.85rem; }
.phone[data-scene="cart"] .ps-send { animation: sendPulse 1.2s ease-in-out infinite; }

@keyframes sendPulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.03); }
}

.ps-done { height: 100%; display: grid; place-content: center; text-align: center; gap: 8px; }
.ps-done-ico { width: 64px; height: 64px; margin: 0 auto; border-radius: 50%; background: var(--teal); color: #fff; display: grid; place-items: center; font-size: 1.8rem; font-weight: 900; }
.ps-done strong { font-size: 1.05rem; }
.ps-done span { color: var(--ink-soft); font-size: 0.8rem; }

.phone-caption {
  margin: 14px 0 0;
  text-align: center;
  font-weight: 700;
  font-size: 0.88rem;
  color: var(--ink-soft);
  min-height: 1.4em;
}

.phone-notch {
  position: absolute;
  top: 8px;
  left: 50%;
  transform: translateX(-50%);
  width: 84px;
  height: 18px;
  border-radius: 999px;
  background: #1b1a17;
  z-index: 3;
}

.ps-head {
  padding: 30px 16px 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.ps-brand { font-weight: 800; color: var(--brand); font-size: 1.05rem; line-height: 1.1; }
.ps-table { font-size: 0.75rem; color: var(--ink-soft); font-weight: 600; }
.ps-lang { font-size: 0.68rem; font-weight: 800; color: var(--ink-soft); border: 1px solid var(--line); border-radius: 999px; padding: 3px 8px; background: #fff; }

.ps-tabs { display: flex; gap: 6px; padding: 12px 16px 4px; }
.ps-tab { flex: 1; text-align: center; font-size: 0.75rem; font-weight: 700; padding: 8px; border-radius: 9px; background: #fff; border: 1px solid var(--line); color: var(--ink-soft); }
.ps-tab.on { background: var(--brand); border-color: var(--brand); color: #fff; }

.ps-list { padding: 10px 16px 74px; display: grid; gap: 8px; }

.ps-item {
  display: grid;
  grid-template-columns: 38px 1fr auto;
  gap: 10px;
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 9px;
}

.ps-add { transition: transform 0.2s ease, background 0.2s ease, color 0.2s ease; }

.ps-thumb {
  width: 38px;
  height: 38px;
  border-radius: 9px;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 0.9rem;
}

.ps-item > span:not([class]) { min-width: 0; }
.ps-name { display: block; font-size: 0.82rem; font-weight: 700; line-height: 1.2; }
.ps-price { display: block; font-size: 0.74rem; color: var(--ink-soft); font-weight: 600; white-space: nowrap; }
.ps-add { width: 30px; height: 30px; border-radius: 9px; background: var(--brand-soft); color: var(--brand); font-weight: 800; display: grid; place-items: center; }

.ps-cart {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  background: var(--ink);
  color: #fff;
  border-radius: 14px;
  padding: 12px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.82rem;
  font-weight: 700;
  opacity: 0;
  transform: translateY(12px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}

.phone[data-scene="menu"] .ps-cart.show {
  opacity: 1;
  transform: none;
}

.ps-cart b { background: var(--brand); border-radius: 999px; padding: 2px 8px; margin-right: 8px; }

/* Floating chips around phone */
.chip {
  position: absolute;
  z-index: 2;
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(232, 225, 214, 0.9);
  border-radius: 14px;
  padding: 10px 14px;
  box-shadow: var(--shadow);
  font-size: 0.8rem;
  font-weight: 700;
  display: flex;
  align-items: center;
  gap: 8px;
  white-space: nowrap;
  max-width: min(200px, 46%);
  animation: bob 4.5s ease-in-out infinite;
}

.chip small { display: block; font-weight: 600; color: var(--ink-soft); font-size: 0.72rem; }
.chip .dot { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.chip-1 { top: 14%; left: 0; animation-delay: 0.2s; }
.chip-1 .dot { background: var(--amber); }
.chip-2 { bottom: 16%; right: 0; animation-delay: 1.4s; }
.chip-2 .dot { background: var(--teal); }

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

/* ---------- Stats ---------- */
.stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
  margin-top: clamp(40px, 6vw, 72px);
  position: relative;
  z-index: 1;
}

.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 18px;
  text-align: center;
}

.stat b { display: block; font-size: clamp(1.2rem, 2.2vw, 1.6rem); letter-spacing: -0.02em; }
.stat span { font-size: 0.84rem; color: var(--ink-soft); }

/* ---------- Marquee ---------- */
.marquee {
  overflow: hidden;
  max-width: 100%;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  padding: 14px 0;
}

.marquee-track {
  display: flex;
  gap: 40px;
  width: max-content;
  max-width: none;
  animation: slide 26s linear infinite;
  will-change: transform;
}

.marquee span {
  font-weight: 700;
  color: var(--ink-soft);
  font-size: 0.95rem;
  display: flex;
  align-items: center;
  gap: 40px;
  white-space: nowrap;
}

.marquee span::after { content: "•"; color: var(--brand); }

@keyframes slide {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* ---------- Features bento ---------- */
.bento {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px;
  position: relative;
  overflow: hidden;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow);
  border-color: #d9d0c1;
}

.card::after {
  content: "";
  position: absolute;
  inset: auto -30% -60% auto;
  width: 180px;
  height: 180px;
  border-radius: 50%;
  background: var(--brand-soft);
  opacity: 0;
  transition: opacity 0.3s ease;
}

.card:hover::after { opacity: 0.7; }
.card > * { position: relative; z-index: 1; }

.card h3 { font-size: 1.12rem; margin-bottom: 8px; }
.card p { margin: 0; color: var(--ink-soft); font-size: 0.94rem; }

.feat-ico {
  position: relative;
  width: 58px;
  height: 58px;
  border-radius: 16px;
  margin-bottom: 16px;
  background: var(--brand-soft);
  display: grid;
  place-items: center;
  overflow: hidden;
  transition: transform 0.28s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.card:hover .feat-ico { transform: scale(1.14) rotate(-6deg); }
.card.bump .feat-ico { animation: case-pop 0.4s cubic-bezier(0.2, 1.5, 0.4, 1); }
.card:nth-child(2) .feat-ico { background: var(--amber-soft); }
.card:nth-child(3) .feat-ico { background: var(--blue-soft); }
.card:nth-child(4) .feat-ico { background: var(--teal-soft); }
.card:nth-child(5) .feat-ico { background: var(--brand-soft); }
.card:nth-child(6) .feat-ico { background: var(--blue-soft); }

.fi-qr {
  width: 28px;
  height: 28px;
  border-radius: 4px;
  background:
    linear-gradient(#1a1a1a 0 0) 0 0 / 7px 7px no-repeat,
    linear-gradient(#1a1a1a 0 0) 100% 0 / 7px 7px no-repeat,
    linear-gradient(#1a1a1a 0 0) 0 100% / 7px 7px no-repeat,
    repeating-conic-gradient(#1a1a1a 0 25%, transparent 0 50%) 50% / 8px 8px;
  z-index: 1;
}
.fi-laser {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 2px;
  background: var(--brand);
  box-shadow: 0 0 8px var(--brand);
  animation: fi-scan 1s linear infinite;
  z-index: 2;
}
.fi-bell {
  position: relative;
  width: 18px;
  height: 18px;
  border-radius: 18px 18px 4px 4px;
  background: var(--brand);
  animation: fi-ring 0.7s ease-in-out infinite;
}
.fi-bell::after {
  content: "";
  position: absolute;
  bottom: 14px;
  left: 50%;
  width: 8px;
  height: 8px;
  margin-left: -4px;
  border-radius: 50%;
  background: var(--brand);
}
.fi-wave {
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  border: 2px solid var(--brand);
  opacity: 0;
  animation: ping-out 1.1s ease-out infinite;
}
.fi-pan {
  position: absolute;
  width: 32px;
  height: 8px;
  bottom: 16px;
  border-radius: 0 0 16px 16px;
  background: #2b2b2b;
}
.fi-lid {
  position: absolute;
  width: 26px;
  height: 6px;
  bottom: 24px;
  border-radius: 8px 8px 2px 2px;
  background: #5c5c5c;
  animation: lid-hop 0.55s ease-in-out infinite;
}
.fi-flame {
  position: absolute;
  bottom: 10px;
  width: 12px;
  height: 10px;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 50% 80%, #ffd166, #e85d04 60%, transparent 72%);
  animation: flame-flicker 0.22s ease-in-out infinite alternate;
}
.fi-cam {
  position: relative;
  width: 30px;
  height: 22px;
  border-radius: 6px;
  background: #2b2b2b;
  z-index: 1;
}
.fi-cam::before {
  content: "";
  position: absolute;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  border: 2px solid #fff;
  left: 50%;
  top: 50%;
  margin: -8px 0 0 -8px;
}
.fi-flash {
  position: absolute;
  inset: 0;
  background: #fff;
  opacity: 0;
  animation: fi-flash 1.6s ease-in-out infinite;
}
.fi-bar {
  position: absolute;
  bottom: 14px;
  width: 7px;
  border-radius: 3px 3px 0 0;
  background: var(--brand);
  animation: fi-bars 0.9s ease-in-out infinite;
}
.fi-bar.b1 { left: 16px; height: 16px; animation-delay: 0s; }
.fi-bar.b2 { left: 26px; height: 26px; animation-delay: 0.15s; background: var(--teal); }
.fi-bar.b3 { left: 36px; height: 12px; animation-delay: 0.3s; }
.fi-bill {
  width: 22px;
  height: 28px;
  border-radius: 3px;
  background: #fff;
  box-shadow: 0 0 0 2px var(--brand);
  z-index: 1;
}
.fi-tick {
  position: absolute;
  right: 8px;
  bottom: 8px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-size: 0.7rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  animation: case-pop 0.9s cubic-bezier(0.2, 1.5, 0.4, 1) infinite;
}

@keyframes fi-scan {
  0% { top: 12px; }
  100% { top: 42px; }
}
@keyframes fi-ring {
  0%, 100% { transform: rotate(-12deg); }
  50% { transform: rotate(12deg); }
}
@keyframes fi-flash {
  0%, 70%, 100% { opacity: 0; }
  75% { opacity: 0.7; }
  82% { opacity: 0; }
}
@keyframes fi-bars {
  0%, 100% { transform: scaleY(0.55); }
  50% { transform: scaleY(1); }
}

.fi-cafe-cup {
  width: 22px;
  height: 18px;
  border-radius: 0 0 10px 10px;
  border: 3px solid var(--brand);
  border-top: none;
  z-index: 1;
}
.fi-cafe-steam {
  position: absolute;
  top: 14px;
  width: 4px;
  height: 12px;
  border-radius: 99px;
  background: var(--brand);
  opacity: 0.5;
  animation: steam-rise 1.2s ease-in-out infinite;
}
.fi-cafe-steam.s1 { left: 22px; animation-delay: 0s; }
.fi-cafe-steam.s2 { left: 32px; animation-delay: 0.35s; }
.fi-mail {
  position: absolute;
  right: 6px;
  top: 8px;
  font-size: 0.65rem;
  font-weight: 900;
  color: var(--teal);
  animation: case-pop 1s ease-in-out infinite;
}
.fi-shield {
  width: 26px;
  height: 30px;
  background: var(--teal);
  clip-path: polygon(50% 0, 100% 18%, 100% 62%, 50% 100%, 0 62%, 0 18%);
  z-index: 1;
}
.fi-lock {
  position: absolute;
  width: 10px;
  height: 8px;
  bottom: 18px;
  border-radius: 2px;
  background: #fff;
  box-shadow: 0 -6px 0 -2px #fff, 0 -8px 0 0 transparent, 0 -8px 0 2px #fff;
}

@keyframes steam-rise {
  0%, 100% { transform: translateY(0) scaleY(1); opacity: 0.35; }
  50% { transform: translateY(-6px) scaleY(1.2); opacity: 0.75; }
}

/* ---------- All-in-one orbit ---------- */
.allinone-sec {
  background: linear-gradient(180deg, var(--bg) 0%, #fff 50%, var(--teal-soft) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.aio-stage {
  max-width: 520px;
  margin: 0 auto;
  text-align: center;
}

.aio-visual {
  --aio-orbit-r: 186px;
  --aio-hub-top: 54px;
  --aio-lap: 16s;
  --aio-cycle: 48s;
  --aio-count: 8;
  position: relative;
  width: min(100%, 460px);
  height: 460px;
  margin: 0 auto 20px;
}

.aio-ring {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--aio-orbit-r) * 2);
  height: calc(var(--aio-orbit-r) * 2);
  margin: calc(-1 * var(--aio-orbit-r)) 0 0 calc(-1 * var(--aio-orbit-r));
  border-radius: 50%;
  border: 2px dashed rgba(232, 93, 4, 0.38);
  z-index: 1;
  pointer-events: none;
  box-sizing: border-box;
}

.aio-glow {
  position: absolute;
  left: 50%;
  top: 50%;
  width: calc(var(--aio-orbit-r) * 2 - 12px);
  height: calc(var(--aio-orbit-r) * 2 - 12px);
  margin: calc(-1 * (var(--aio-orbit-r) - 6px)) 0 0 calc(-1 * (var(--aio-orbit-r) - 6px));
  border-radius: 50%;
  background: radial-gradient(circle, rgba(232, 93, 4, 0.12) 0%, transparent 70%);
  z-index: 0;
  animation: aio-glow-pulse 3s ease-in-out infinite;
}

.aio-orbit {
  position: absolute;
  inset: 0;
  z-index: 10;
  animation: aio-lap-spin var(--aio-lap) linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.aio-hub {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  width: 132px;
  padding: 16px 12px;
  border-radius: 24px;
  background: var(--surface);
  border: 2px solid var(--brand);
  box-shadow: 0 20px 40px -20px rgba(232, 93, 4, 0.45);
  display: grid;
  gap: 4px;
  justify-items: center;
  z-index: 40;
  animation: aio-hub-pulse 2.4s ease-in-out infinite;
}

.aio-hub::before {
  content: "";
  position: absolute;
  top: -3px;
  left: 50%;
  width: 14px;
  height: 6px;
  margin-left: -7px;
  border-radius: 6px 6px 2px 2px;
  background: rgba(232, 93, 4, 0.45);
  pointer-events: none;
}

.aio-hub img { border-radius: 12px; }
.aio-hub strong { font-size: 0.95rem; }
.aio-hub small { font-size: 0.72rem; color: var(--ink-soft); font-weight: 600; }

.aio-sat {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 0;
  height: 0;
  transform: rotate(var(--slot));
  pointer-events: none;
}

.aio-sat-arm {
  animation: aio-queue-radial var(--aio-cycle) ease-in-out infinite both;
  animation-delay: calc(var(--i) * var(--aio-lap) / var(--aio-count));
  animation-play-state: paused;
  will-change: transform, opacity;
}

.aio-chip-wrap {
  animation: aio-keep-upright var(--aio-lap) linear infinite;
  animation-play-state: paused;
  will-change: transform;
}

.aio-chip {
  position: relative;
  width: 74px;
  margin: 0;
  padding: 8px 6px 10px;
  border-radius: 14px;
  background: var(--surface);
  border: 1px solid var(--line);
  box-shadow: var(--shadow-sm);
  display: grid;
  gap: 5px;
  justify-items: center;
  pointer-events: auto;
  cursor: default;
  transform: translate(-50%, -50%);
  will-change: filter, border-color;
  animation: aio-chip-strike var(--aio-cycle) ease-in-out infinite both;
  animation-delay: calc(var(--i) * var(--aio-lap) / var(--aio-count));
  animation-play-state: paused;
}

.aio-strike-line {
  position: absolute;
  left: 6px;
  right: 6px;
  top: 50%;
  height: 2px;
  margin-top: 4px;
  background: var(--danger);
  border-radius: 1px;
  transform: scaleX(0);
  transform-origin: left center;
  animation: aio-strike-draw var(--aio-cycle) ease-in-out infinite both;
  animation-delay: calc(var(--i) * var(--aio-lap) / var(--aio-count));
  animation-play-state: paused;
  pointer-events: none;
}

.aio-strike-line::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 0;
  height: 2px;
  background: var(--danger);
  border-radius: 1px;
  transform: rotate(-52deg) scaleX(0);
  transform-origin: left center;
  animation: aio-strike-draw-alt var(--aio-cycle) ease-in-out infinite both;
  animation-delay: calc(var(--i) * var(--aio-lap) / var(--aio-count));
  animation-play-state: paused;
}

.aio-label {
  position: relative;
  font-size: 0.6rem;
  font-weight: 800;
  line-height: 1.15;
  color: var(--ink-soft);
  transition: color 0.15s ease;
}

.aio-chip.is-active-label {
  border-color: rgba(220, 53, 69, 0.45);
  box-shadow: 0 8px 20px -10px rgba(220, 53, 69, 0.35);
}

.aio-chip.is-active-label .aio-label {
  color: var(--danger);
}

.aio-visual.is-running .aio-orbit,
.aio-visual.is-running .aio-sat-arm,
.aio-visual.is-running .aio-chip-wrap,
.aio-visual.is-running .aio-chip,
.aio-visual.is-running .aio-strike-line,
.aio-visual.is-running .aio-strike-line::after {
  animation-play-state: running;
}

.aio-ico {
  width: 30px;
  height: 26px;
  border-radius: 6px;
  background: var(--brand-soft);
  position: relative;
}

/* Ring turns once per lap; each tool joins at the top one lap-slot after the previous.
   Item i pops out of the hub top at i * lap / count, rides 2 laps, then is pulled
   back in through the hub top — a queue of tools chasing each other like a loader. */
@keyframes aio-lap-spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

@keyframes aio-keep-upright {
  from { transform: rotate(calc(-1 * var(--slot))); }
  to { transform: rotate(calc(-1 * var(--slot) - 360deg)); }
}

@keyframes aio-queue-radial {
  0% {
    transform: translateY(calc(-1 * var(--aio-hub-top))) scale(0.08);
    opacity: 0;
  }
  0.8% {
    transform: translateY(calc(-1 * var(--aio-hub-top))) scale(0.55);
    opacity: 0.85;
  }
  2.4%, 63% {
    transform: translateY(calc(-1 * var(--aio-orbit-r))) scale(1);
    opacity: 1;
  }
  65.2% {
    transform: translateY(calc(-1 * var(--aio-orbit-r) * 0.7)) scale(0.72);
    opacity: 0.8;
  }
  66.7% {
    transform: translateY(calc(-1 * var(--aio-hub-top))) scale(0.28);
    opacity: 0.28;
  }
  67.6%, 100% {
    transform: translateY(calc(-1 * var(--aio-hub-top))) scale(0.08);
    opacity: 0;
  }
}

@keyframes aio-chip-strike {
  0%, 34%, 67%, 100% {
    filter: grayscale(0);
    border-color: var(--line);
  }
  37%, 62% {
    filter: grayscale(0.5);
    border-color: rgba(220, 53, 69, 0.45);
  }
}

@keyframes aio-strike-draw {
  0%, 34%, 66%, 100% { transform: scaleX(0); opacity: 0; }
  36% { transform: scaleX(0); opacity: 1; }
  38%, 62% { transform: scaleX(1); opacity: 1; }
  64% { transform: scaleX(1); opacity: 0.3; }
}

@keyframes aio-strike-draw-alt {
  0%, 34%, 66%, 100% { transform: rotate(-52deg) scaleX(0); opacity: 0; }
  36% { transform: rotate(-52deg) scaleX(0); opacity: 1; }
  38%, 62% { transform: rotate(-52deg) scaleX(1); opacity: 1; }
  64% { transform: rotate(-52deg) scaleX(1); opacity: 0.3; }
}

@keyframes aio-glow-pulse {
  0%, 100% { transform: scale(1); opacity: 0.7; }
  50% { transform: scale(1.08); opacity: 1; }
}

@keyframes aio-hub-pulse {
  0%, 100% { box-shadow: 0 20px 40px -20px rgba(232, 93, 4, 0.45); }
  50% { box-shadow: 0 24px 48px -16px rgba(42, 157, 143, 0.45); }
}

.aio-ico-printer::before {
  content: "";
  position: absolute;
  inset: 6px 8px auto;
  height: 10px;
  border: 2px solid var(--brand);
  border-radius: 2px;
}
.aio-ico-printer::after {
  content: "";
  position: absolute;
  left: 10px;
  right: 10px;
  bottom: 5px;
  height: 8px;
  background: #ddd;
  border-radius: 1px;
}

.aio-ico-pos {
  background: #2b2b2b;
}
.aio-ico-pos::after {
  content: "RM";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  color: #7cff7c;
  font-size: 0.62rem;
  font-weight: 900;
}

.aio-ico-calc::after {
  content: "123";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 900;
  color: var(--brand);
}

.aio-ico-paper {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line);
}
.aio-ico-paper::after {
  content: "";
  position: absolute;
  left: 8px;
  right: 8px;
  top: 8px;
  height: 2px;
  background: var(--line);
  box-shadow: 0 5px 0 var(--line), 0 10px 0 var(--line);
}

.aio-ico-pager {
  background: #2f2f2f;
}
.aio-ico-pager::before {
  content: "";
  position: absolute;
  inset: 5px 7px 9px;
  border-radius: 4px;
  border: 2px solid #888;
}
.aio-ico-pager::after {
  content: ")))";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 2px;
  text-align: center;
  font-size: 0.46rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  color: #ffb347;
}

.aio-ico-menu {
  background: #fff;
  box-shadow: inset 0 0 0 2px var(--line);
}
.aio-ico-menu::before {
  content: "";
  position: absolute;
  left: 0;
  top: 4px;
  bottom: 4px;
  width: 5px;
  background: var(--brand);
  border-radius: 2px 0 0 2px;
}
.aio-ico-menu::after {
  content: "MENU";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  padding-left: 4px;
  font-size: 0.42rem;
  font-weight: 900;
  color: var(--ink-soft);
}

.aio-ico-radio {
  background: #1f2937;
}
.aio-ico-radio::before {
  content: "";
  position: absolute;
  left: 50%;
  top: 2px;
  width: 2px;
  height: 7px;
  margin-left: -1px;
  background: #9ca3af;
  border-radius: 1px;
}
.aio-ico-radio::after {
  content: "";
  position: absolute;
  inset: 8px 6px 4px;
  border-radius: 3px;
  background: #374151;
  box-shadow: inset 0 -4px 0 #111827;
}

.aio-ico-whatsapp {
  background: #25d366;
}
.aio-ico-whatsapp::after {
  content: "WA";
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  font-size: 0.58rem;
  font-weight: 900;
  color: #fff;
}

.aio-status {
  margin: 0 0 14px;
  font-weight: 800;
  font-size: 1rem;
  min-height: 1.4em;
  color: var(--brand-dark);
}

.aio-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: center;
}

.aio-pill {
  padding: 6px 12px;
  border-radius: 999px;
  background: var(--surface);
  border: 1px solid var(--line);
  font-size: 0.74rem;
  font-weight: 800;
  color: var(--teal);
}

/* Cafe case animation */
.cafe-scene { grid-template-columns: 150px 1fr; }

.lp-cafe-hero {
  position: relative;
  width: 132px;
  height: 132px;
}

.lp-cstage {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.lp-cafe-hero[data-stage="scan"] .lp-c-scan,
.lp-cafe-hero[data-stage="otp"] .lp-c-otp,
.lp-cafe-hero[data-stage="track"] .lp-c-track,
.lp-cafe-hero[data-stage="receipt"] .lp-c-receipt { display: flex; }

.c-shop-qr {
  width: 56px;
  height: 56px;
  border-radius: 8px;
  border: 3px solid var(--brand);
  background: repeating-conic-gradient(#111 0 25%, #fff 0 50%) 50% / 10px 10px;
}

.c-laser {
  position: absolute;
  left: 24px;
  right: 24px;
  height: 2px;
  background: var(--brand);
  animation: w-scan 0.85s linear infinite;
}

.c-otp-box {
  font-size: 1.1rem;
  font-weight: 900;
  letter-spacing: 0.15em;
  color: var(--brand);
  animation: case-pop 0.8s ease-in-out infinite;
}

.c-mail {
  position: absolute;
  top: 24px;
  right: 28px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 900;
  display: grid;
  place-items: center;
}

.c-track-bar {
  width: 80px;
  height: 6px;
  border-radius: 99px;
  background: var(--line);
  position: relative;
  overflow: hidden;
}

.c-track-dot {
  position: absolute;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: var(--brand);
  animation: c-track-move 1.4s ease-in-out infinite;
}

.c-receipt-slip {
  width: 48px;
  height: 64px;
  background: #fff;
  border: 1px dashed var(--line);
  border-radius: 4px;
  box-shadow: var(--shadow-sm);
}

.c-check {
  position: absolute;
  bottom: 20px;
  right: 24px;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--teal);
  color: #fff;
  font-weight: 900;
  display: grid;
  place-items: center;
  animation: check-pop 1.2s ease-in-out infinite;
}

.cafe-card { background: var(--teal-soft); border-color: #b7e0da; }

@keyframes c-track-move {
  0%, 100% { left: 26px; top: 59px; }
  50% { left: 82px; top: 59px; }
}

@media (max-width: 560px) {
  .aio-visual {
    --aio-orbit-r: 124px;
    --aio-hub-top: 46px;
    height: 320px;
  }
  .aio-hub { width: 108px; padding: 12px 10px; border-radius: 20px; }
  .aio-hub strong { font-size: 0.85rem; }
  .aio-hub small { font-size: 0.64rem; }
  .aio-chip { width: 64px; padding: 6px 4px 8px; border-radius: 12px; }
  .aio-ico { width: 26px; height: 22px; }
  .aio-label { font-size: 0.54rem; }
}

/* ---------- Steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
  counter-reset: step;
}

.step {
  padding-top: 26px;
  border-top: 2px solid var(--line);
  position: relative;
}

.step::before {
  counter-increment: step;
  content: counter(step, decimal-leading-zero);
  position: absolute;
  top: -16px;
  left: 0;
  background: var(--bg);
  padding-right: 12px;
  font-weight: 900;
  font-size: 1.05rem;
  color: var(--brand);
}

.step.in-view { border-top-color: var(--brand); }
.step h3 { font-size: 1.05rem; margin-bottom: 8px; }
.step p { margin: 0; color: var(--ink-soft); font-size: 0.93rem; }

/* ---------- Demo tabs ---------- */
.demo-shell {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: var(--shadow);
  overflow-x: clip;
  max-width: 100%;
}

/* Tabs scroll sideways on phones rather than stacking into a tall column. */
.demo-tabs {
  display: flex;
  gap: 6px;
  background: var(--bg);
  padding: 6px;
  border-radius: 999px;
  margin-bottom: 18px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
}

.demo-tabs::-webkit-scrollbar { display: none; }

.demo-tab {
  flex: 0 0 auto;
  min-height: 42px;
  padding: 0 20px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
  white-space: nowrap;
  scroll-snap-align: center;
}

@media (min-width: 721px) {
  .demo-tab { flex: 1 1 auto; }
}

.demo-tab.on { background: var(--ink); color: #fff; }

.demo-toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 18px;
  flex-wrap: wrap;
}

.demo-toolbar .demo-tabs {
  flex: 1;
  margin-bottom: 0;
  min-width: 0;
}

.demo-acts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.o-flags { display: flex; flex-wrap: wrap; gap: 6px; justify-content: flex-end; }

.serve-pill {
  display: inline-flex;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  background: var(--brand-soft);
  color: var(--brand);
  border-radius: 999px;
  padding: 3px 8px;
  margin-bottom: 8px;
}

.serve-pill.sini {
  background: var(--teal-soft);
  color: var(--teal);
}

.o-card {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 16px;
  background: #fff;
}

.o-card.warn { border-color: #f4c99b; background: #fffaf3; }
.o-card.info { border-color: #a9c8dc; background: #f4f9fc; }
.o-card.unpaid { box-shadow: inset 3px 0 0 var(--danger); }
.o-table { font-size: 1.7rem; font-weight: 900; letter-spacing: -0.03em; line-height: 1; }
.o-meta { font-size: 0.78rem; color: var(--ink-soft); }
.o-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; border-top: 1px solid var(--line); padding-top: 10px; }
.o-total { font-weight: 900; font-size: 1.05rem; }

.o-card.done {
  opacity: 0.72;
  border-color: var(--line);
  background: #fff;
  box-shadow: none;
}

.btn-success {
  background: var(--teal);
  color: #fff;
  border-color: var(--teal);
}

.o-card.tb-mini {
  max-width: 320px;
}

/* ---------- Staff flow (dashboard cinema) ---------- */
.staff-cinema {
  padding: clamp(48px, 8vw, 88px) 0;
  background: var(--surface);
  border-top: 1px solid var(--line);
}

.tablet-frame {
  max-width: 760px;
  width: 100%;
  margin: 28px auto 0;
  background: #1b1a17;
  border-radius: 24px;
  padding: 12px;
  box-shadow: var(--shadow-lg);
}

.tb-chrome {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 12px;
  color: #f4efe6;
  font-weight: 800;
  font-size: 0.88rem;
  min-width: 0;
}

.tb-title {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.tb-dots {
  flex: none;
  width: 42px;
  height: 10px;
  border-radius: 999px;
  background: radial-gradient(circle at 6px 5px, #ff5f57 4px, transparent 5px),
    radial-gradient(circle at 21px 5px, #febc2e 4px, transparent 5px),
    radial-gradient(circle at 36px 5px, #28c840 4px, transparent 5px);
}

.tb-body {
  background: #f0ebe3;
  border-radius: 16px;
  overflow: hidden;
}

.tb-scene {
  display: none;
  padding: 16px;
}

.tb-scene.on {
  display: block;
  animation: paneIn 0.4s ease;
}

.stat-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 140px), 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.stat-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 14px 16px;
}

.stat-card .label {
  color: var(--ink-soft);
  font-size: 0.8rem;
  font-weight: 600;
}

.stat-card .value {
  font-size: 1.35rem;
  font-weight: 800;
  margin-top: 4px;
}

.cinema-hub {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 160px), 1fr));
  gap: 10px;
}

.cinema-hub .order-card { padding: 14px; }
.cinema-hub .order-meta { margin: 6px 0 0; }

#desk-cinema .kitchen-card { min-height: 0; max-width: none; }
#desk-cinema .btn {
  border-radius: 10px;
  min-height: 44px;
  white-space: normal;
  line-height: 1.25;
  padding: 8px 14px;
  pointer-events: none;
}
#desk-cinema .btn-secondary {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
}
#desk-cinema .kitchen-actions .btn,
#desk-cinema .order-card-footer .btn { animation: sendPulse 1.4s ease-in-out infinite; }

.demo-pane { display: none; }
.demo-pane.on {
  display: grid;
  gap: 16px;
  animation: paneIn 0.35s ease;
}

.demo-pane.table-grid.on {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
}

.demo-pane.kitchen-grid.on {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 1fr));
}

@keyframes paneIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

/* Match live cashier / kitchen / waiter cards */
#demo-proto {
  --accent: var(--brand);
  --border: var(--line);
  --bg-elevated: #fff;
  --ink-muted: var(--ink-soft);
  --warning: var(--amber);
  --info: var(--blue);
  --success: var(--teal);
}

#demo-proto .btn {
  border-radius: 10px;
  min-height: 48px;
  white-space: normal;
  line-height: 1.25;
  padding: 8px 14px;
}

#demo-proto .btn-secondary {
  background: var(--bg);
  border: 1px solid var(--line);
  color: var(--ink);
}

.order-card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--shadow-sm);
}

.order-card.unpaid {
  border-color: #f1a7ad;
  box-shadow: 0 0 0 2px rgba(193, 18, 31, 0.08);
}

.order-card.done { opacity: 0.78; }

.order-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 12px;
}

.order-flags {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: flex-end;
}

.table-num {
  font-size: clamp(1.8rem, 4vw, 2.4rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.03em;
}

.order-meta {
  font-size: 0.85rem;
  color: var(--ink-soft);
  margin: 6px 0 12px;
}

.order-items {
  list-style: none;
  margin: 0 0 14px;
  padding: 0;
}

.order-items li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px dashed var(--line);
  font-size: 1rem;
}

.order-items li:last-child { border-bottom: none; }
.order-items .qty { font-weight: 800; color: var(--brand); }

.order-card-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.order-total { font-size: 1.2rem; font-weight: 800; }

.kitchen-card {
  background: #fff;
  border: 2px solid var(--line);
  border-radius: 14px;
  padding: 20px;
  min-height: 260px;
  display: flex;
  flex-direction: column;
}

.kitchen-card.menunggu { border-color: var(--amber); background: #fffaf3; }
.kitchen-card.sedang_dimasak { border-color: var(--blue); background: #f3f8fb; }
.kitchen-card.siap { border-color: var(--brand); background: #fff6ee; }
.kitchen-card.diambil { border-color: var(--teal); background: #f3fbf6; }
.kitchen-card.takeaway { box-shadow: inset 6px 0 0 var(--brand); }
.kitchen-card.done { opacity: 0.78; }

.kitchen-table {
  font-size: clamp(2rem, 5vw, 2.8rem);
  font-weight: 800;
  line-height: 1;
  margin-bottom: 8px;
}

.serve-badge {
  display: inline-block;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
  margin: 4px 0 8px;
  width: fit-content;
}

.serve-badge.bungkus { background: #fff1e6; color: var(--brand); }
.serve-badge.sini { background: #e6f6f4; color: #1d7a70; }

.kitchen-qty {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--brand);
}

.kitchen-item-name {
  font-size: 1.35rem;
  font-weight: 800;
  margin: 0 0 4px;
  line-height: 1.2;
}

.kitchen-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: auto;
  padding-top: 8px;
}

.kitchen-actions .btn {
  flex: 1 1 140px;
}

.badge {
  display: inline-flex;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 800;
  white-space: nowrap;
}

.badge.amber { background: var(--amber-soft); color: #9a5b00; }
.badge.blue { background: var(--blue-soft); color: var(--blue); }
.badge.green { background: var(--teal-soft); color: var(--teal); }
.badge.red { background: var(--danger-soft); color: var(--danger); }

.demo-hint { margin: 16px 0 0; font-size: 0.84rem; color: var(--ink-soft); text-align: center; }

.pulse {
  display: inline-block;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--teal);
  margin-right: 6px;
  animation: pulse 1.6s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { box-shadow: 0 0 0 0 rgba(42, 157, 143, 0.5); }
  50% { box-shadow: 0 0 0 6px rgba(42, 157, 143, 0); }
}

/* ---------- Pricing ---------- */
.billing {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px;
  margin: 0 auto 12px;
}

.billing button {
  min-height: 40px;
  padding: 0 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 0.92rem;
  color: var(--ink-soft);
}

.billing button.on { background: var(--ink); color: #fff; }

.save-pill {
  display: block;
  text-align: center;
  font-size: 0.82rem;
  font-weight: 700;
  color: var(--teal);
  margin-bottom: 34px;
}

.plans {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: start;
}

.plan {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 28px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}

.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow); }

.plan.featured {
  border-color: var(--brand);
  box-shadow: 0 24px 50px -26px rgba(232, 93, 4, 0.55);
  position: relative;
}

.plan-tag {
  position: absolute;
  top: -13px;
  left: 24px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 5px 14px;
  font-size: 0.74rem;
  font-weight: 800;
}

.plan h3 { font-size: 1.25rem; }
.plan .desc { margin: 6px 0 0; color: var(--ink-soft); font-size: 0.92rem; }

.price { display: grid; gap: 4px; }
.price-row { display: flex; align-items: baseline; gap: 6px; }
.price .amt { font-size: clamp(2.1rem, 4vw, 2.7rem); font-weight: 900; letter-spacing: -0.04em; }
.price .cur { font-size: 1.05rem; font-weight: 800; color: var(--ink-soft); }
.price .per { font-size: 0.9rem; color: var(--ink-soft); font-weight: 600; }
.price-year {
  margin: 0;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.plan ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.plan li { display: flex; gap: 10px; align-items: flex-start; font-size: 0.93rem; }
.plan li .tick { margin-top: 1px; }
.plan .btn { width: 100%; margin-top: auto; }
.pricing-note { text-align: center; color: var(--ink-soft); font-size: 0.86rem; margin: 28px 0 0; }

/* ---------- Add-ons ---------- */
.addons-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  align-items: stretch;
}

.addon-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}

.addon-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #d9d0c1;
}

.addon-soon { opacity: 0.88; }
.addon-soon:hover { transform: none; box-shadow: none; }

.addon-photo {
  position: relative;
  aspect-ratio: 4 / 3;
  background: #f3ede4;
  overflow: hidden;
}

.addon-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.addon-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--brand);
  color: #fff;
  border-radius: 999px;
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  box-shadow: 0 8px 20px -10px rgba(232, 93, 4, 0.8);
}

.addon-body {
  padding: 20px 22px 22px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  flex: 1;
}

.addon-body h3 { font-size: 1.08rem; margin: 0; }
.addon-desc { margin: 0; color: var(--ink-soft); font-size: 0.9rem; line-height: 1.55; flex: 1; }

.addon-price-row {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-wrap: wrap;
  margin-top: 2px;
}

.addon-price {
  font-size: 1.28rem;
  font-weight: 900;
  color: var(--brand);
  letter-spacing: -0.02em;
}

.addon-suffix {
  font-size: 0.86rem;
  font-weight: 600;
  color: var(--ink-soft);
}

.addon-cta { width: 100%; margin-top: 4px; }
.addon-cta.disabled {
  opacity: 0.55;
  pointer-events: none;
  cursor: default;
}

.addons-note {
  text-align: center;
  color: var(--ink-soft);
  font-size: 0.86rem;
  margin: 28px 0 0;
  max-width: 720px;
  margin-left: auto;
  margin-right: auto;
}

/* ---------- FAQ ---------- */
.faq { max-width: 780px; margin: 0 auto; display: grid; gap: 10px; }

.qa {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  overflow: hidden;
}

.qa-q {
  width: 100%;
  text-align: left;
  padding: 18px 20px;
  font-weight: 700;
  font-size: 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

.qa-q i {
  font-style: normal;
  flex: none;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  display: grid;
  place-items: center;
  font-weight: 900;
  transition: transform 0.25s ease;
}

.qa.open .qa-q i { transform: rotate(45deg); }

.qa-a {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease;
}

.qa-a p { margin: 0; padding: 0 20px 18px; color: var(--ink-soft); font-size: 0.95rem; }

/* ---------- CTA ---------- */
.cta-band {
  background: linear-gradient(135deg, #17150f 0%, #3a2a17 60%, #7a3b06 100%);
  color: #fff;
  border-radius: var(--radius);
  padding: clamp(36px, 6vw, 64px);
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-band::before,
.cta-band::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  opacity: 0.4;
}

.cta-band::before { width: 300px; height: 300px; background: #e85d04; top: -110px; left: -60px; }
.cta-band::after { width: 260px; height: 260px; background: #2a9d8f; bottom: -120px; right: -50px; }
.cta-band > * { position: relative; z-index: 1; }
.cta-band h2 { font-size: clamp(1.7rem, 3.6vw, 2.5rem); margin-bottom: 12px; }
.cta-band p { color: rgba(255, 255, 255, 0.78); max-width: 520px; margin: 0 auto 26px; }
.cta-actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* ---------- Footer ---------- */
.lp-footer {
  border-top: 1px solid var(--line);
  margin-top: clamp(56px, 8vw, 96px);
  padding: 48px 0 32px;
}

.foot-grid {
  display: grid;
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
  gap: 28px;
}

.foot-grid h4 { margin: 0 0 12px; font-size: 0.82rem; text-transform: uppercase; letter-spacing: 0.08em; color: var(--ink-soft); }
.foot-grid ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.foot-grid a { color: var(--ink-soft); font-size: 0.92rem; }
.foot-grid a:hover { color: var(--brand); }
.foot-about p { color: var(--ink-soft); font-size: 0.92rem; max-width: 320px; margin: 12px 0 0; }

.foot-bottom {
  margin-top: 36px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  color: var(--ink-soft);
  font-size: 0.86rem;
}

.foot-credit { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.foot-credit a { color: var(--brand); font-weight: 800; }
.foot-credit a:hover { text-decoration: underline; }

/* ---------- Reveal ---------- */
.reveal {
  opacity: 0;
  transform: translateY(22px);
  transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.22, 1, 0.36, 1);
}

.reveal.in-view { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .phone-stage { order: -1; padding: 8px 40px; }
  .chip-1 { top: 8%; left: 0; }
  .chip-2 { bottom: 12%; right: 0; }
  .bento { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans { grid-template-columns: 1fr; max-width: 480px; margin: 0 auto; }
  .plan.featured { order: -1; }
  .addons-grid { grid-template-columns: repeat(2, 1fr); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}

/* Collapse desktop links + move primary CTA into the hamburger menu. */
@media (max-width: 899px) {
  .lp-links { display: none; }
  .lp-burger { display: flex; }
  .lp-nav-actions .btn-outline,
  .lp-nav-actions .btn-primary { display: none !important; }
  .stats { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 560px) {
  .bento { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .addons-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .hero-cta .btn { width: 100%; }
  .foot-grid { grid-template-columns: 1fr; }
  .wrap { padding: 0 16px; }
  .tablet-frame { padding: 8px; border-radius: 18px; }
  .tb-scene { padding: 12px; }
  .tb-chrome { padding: 2px 6px 10px; font-size: 0.8rem; }
  .kitchen-card { padding: 18px; min-height: 0; }
  .kitchen-actions .btn { flex: 1 1 100%; }
  .order-card-footer { flex-direction: column; align-items: stretch; }
  .order-card-footer .btn { width: 100%; }
  .chip { display: none; }
  .phone-stage { padding: 0; perspective: none; overflow: hidden; }
  /* 3D tilt widens the painted box past 320px — flatten on phones. */
  .phone {
    width: min(280px, 100%);
    transform: none;
    animation: none;
  }
  .ps-scan-frame { animation: none; }
  .lp-logo { font-size: 1.05rem; }
  .lp-logo img { width: 30px; height: 30px; }
  .lang-toggle button { min-width: 40px; padding: 0 8px; }
}

/* ---------- Case study: table vs pickup ---------- */
.cases { background: linear-gradient(180deg, #fff8f1 0%, var(--bg) 48%, #eef7f5 100%); }

.case-hook {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: stretch;
  margin: 0 0 32px;
}

.hook-side {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 24px;
  padding: 22px 22px 24px;
  overflow: hidden;
  position: relative;
}

.hook-side.chaos {
  background: linear-gradient(180deg, #fff5f5, #fff);
  border-color: #f3cfd2;
}

.hook-side.calm {
  background: linear-gradient(180deg, #eef8f6, #fff);
  border-color: #c6e6e1;
}

.hook-side h3 {
  margin: 10px 0 8px;
  font-size: 1.45rem;
  letter-spacing: -0.03em;
}

.hook-side p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.98rem;
}

.hook-stage {
  position: relative;
  height: 92px;
  margin-bottom: 12px;
}

.shout {
  position: absolute;
  font-size: 0.78rem;
  font-weight: 800;
  background: #fff;
  border: 1px solid #f3cfd2;
  color: var(--danger);
  padding: 6px 10px;
  border-radius: 12px 12px 12px 4px;
  animation: shout-pop 1.6s ease-in-out infinite;
  white-space: nowrap;
}
.shout.s1 { top: 8px; left: 8px; animation-delay: 0s; }
.shout.s2 { top: 36px; left: 38%; animation-delay: 0.35s; }
.shout.s3 { top: 10px; right: 8px; animation-delay: 0.7s; }

.hook-clock {
  position: absolute;
  right: 16px;
  bottom: 4px;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--danger-soft);
  color: var(--danger);
  font-weight: 900;
  font-size: 1.2rem;
  display: grid;
  place-items: center;
  animation: fi-ring 0.8s ease-in-out infinite;
}

.hook-phone {
  position: relative;
  width: 54px;
  height: 78px;
  margin: 6px auto 0;
  border-radius: 12px;
  background: #1a1a1a;
  display: grid;
  place-items: center;
}

.hook-ok {
  color: #fff;
  font-weight: 900;
  font-size: 1.3rem;
  z-index: 1;
  animation: check-pop 1.2s ease-in-out infinite;
}

.hook-ping {
  position: absolute;
  inset: 6px;
  border-radius: 50%;
  border: 2px solid var(--teal);
  animation: ping-out 1.1s ease-out infinite;
}

.hook-vs {
  display: grid;
  place-items: center;
  align-self: center;
}

.hook-vs span {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 0.78rem;
  display: grid;
  place-items: center;
  box-shadow: 0 10px 22px rgba(232, 93, 4, 0.35);
  animation: case-pop 0.9s cubic-bezier(0.2, 1.5, 0.4, 1) infinite;
}

@keyframes shout-pop {
  0%, 100% { transform: translateY(0) scale(1); opacity: 0.85; }
  50% { transform: translateY(-8px) scale(1.06); opacity: 1; }
}

.case-tag {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.case-tag.bad { background: var(--danger-soft); color: var(--danger); }
.case-tag.good { background: var(--teal-soft); color: var(--teal); }

.case-pain-arrow {
  font-size: 1.6rem;
  font-weight: 900;
  color: var(--brand);
  animation: case-nudge 0.9s ease-in-out infinite;
}

.case-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  max-width: 520px;
  margin: 0 auto 22px;
  padding: 6px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 999px;
}

.case-switch button {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 800;
  padding: 0 16px;
}

.case-switch button.on {
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px -12px rgba(232, 93, 4, 0.9);
  animation: case-pop 0.35s cubic-bezier(0.2, 1.4, 0.4, 1);
}

.case-play {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 28px;
  padding: 22px;
  box-shadow: var(--shadow);
  overflow: hidden;
}

.case-panel { display: none; }
.case-play[data-mode="waiter"] [data-panel="waiter"],
.case-play[data-mode="pickup"] [data-panel="pickup"],
.case-play[data-mode="cafe"] [data-panel="cafe"] { display: block; }

.case-switch.case-switch-3 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  justify-content: center;
  align-items: stretch;
  gap: 8px;
  width: 100%;
  max-width: 680px;
  margin: 0 auto 22px;
  overflow: visible;
}

.case-switch-3 button {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  text-align: center;
  white-space: nowrap;
  padding: 0 12px;
}

@media (max-width: 640px) {
  .case-switch.case-switch-3 {
    display: flex;
    grid-template-columns: none;
    justify-content: flex-start;
    align-items: center;
    max-width: 100%;
    overflow-x: auto;
    overscroll-behavior-x: contain;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .case-switch-3::-webkit-scrollbar { display: none; }

  .case-switch-3 button {
    flex: 0 0 auto;
    width: auto;
    font-size: 0.82rem;
    padding: 0 14px;
  }
}

.case-lead { margin: 0 0 14px; font-weight: 650; color: var(--ink-soft); }

.case-flow {
  list-style: none;
  margin: 0 0 20px;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 10px;
  counter-reset: cf;
}

.case-flow li {
  counter-increment: cf;
  background: var(--bg);
  border-radius: 14px;
  padding: 12px 12px 12px 14px;
  font-size: 0.84rem;
  font-weight: 700;
  position: relative;
  animation: case-rise 0.45s cubic-bezier(0.2, 1.3, 0.4, 1) both;
}

.case-flow li::before {
  content: counter(cf);
  display: inline-flex;
  width: 22px;
  height: 22px;
  margin-right: 6px;
  border-radius: 50%;
  background: var(--brand-soft);
  color: var(--brand);
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 900;
  vertical-align: middle;
}

.case-flow li:nth-child(2) { animation-delay: 0.06s; }
.case-flow li:nth-child(3) { animation-delay: 0.12s; }
.case-flow li:nth-child(4) { animation-delay: 0.18s; }

.case-scene {
  display: grid;
  grid-template-columns: 180px 1fr;
  gap: 18px;
  align-items: center;
}

.case-phone {
  background: #1a1a1a;
  border-radius: 22px;
  padding: 10px 10px 14px;
  color: #fff;
  box-shadow: 0 16px 30px rgba(0,0,0,0.18);
}

.case-phone-bar {
  height: 8px;
  width: 42%;
  margin: 4px auto 10px;
  border-radius: 99px;
  background: #333;
}

.mini-item {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #2a2a2a;
  border-radius: 10px;
  padding: 8px;
  margin-bottom: 6px;
  font-size: 0.72rem;
  font-weight: 700;
}

.mini-item i {
  flex: none;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-style: normal;
  font-weight: 800;
  color: #c44d03;
  background: linear-gradient(155deg, #ffe8d4, #f4a261);
}

.mini-item b {
  margin-left: auto;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--brand);
  display: grid;
  place-items: center;
}

.mini-ok {
  margin: 8px auto 0;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--teal);
  display: grid;
  place-items: center;
  font-weight: 900;
  animation: case-pop 0.9s cubic-bezier(0.2, 1.5, 0.4, 1) infinite;
}

.case-dash { display: grid; gap: 12px; }

.case-kcard {
  background: var(--amber-soft);
  border: 1px solid #f0d2b0;
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
}

.case-kcard.bounce { animation: case-bob 1.1s ease-in-out infinite; }
.case-kcard strong { font-size: 1.05rem; }
.case-kcard small { color: var(--ink-soft); }

.case-waiter {
  display: flex;
  align-items: center;
  gap: 12px;
  font-weight: 800;
}

.tray {
  width: 54px;
  height: 14px;
  border-radius: 8px;
  background: #c4a574;
  box-shadow: 0 8px 0 #8d6e46;
  animation: case-slide 1.2s ease-in-out infinite;
}

.pickup-scene {
  grid-template-columns: 150px 1fr;
}

.waiter-scene {
  grid-template-columns: 150px 1fr;
}

.lp-waiter-hero {
  position: relative;
  width: 132px;
  height: 132px;
}

.lp-wstage {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.lp-waiter-hero[data-stage="scan"] .lp-w-scan,
.lp-waiter-hero[data-stage="send"] .lp-w-send,
.lp-waiter-hero[data-stage="cook"] .lp-w-cook,
.lp-waiter-hero[data-stage="serve"] .lp-w-serve { display: flex; }

.w-phone {
  position: relative;
  width: 72px;
  height: 96px;
  border-radius: 14px;
  background: #1a1a1a;
  box-shadow: 0 10px 22px rgba(0,0,0,0.2);
  display: grid;
  place-items: center;
  overflow: hidden;
}

.w-qr {
  width: 42px;
  height: 42px;
  border-radius: 4px;
  background:
    linear-gradient(#fff 0 0) 0 0 / 8px 8px no-repeat,
    linear-gradient(#fff 0 0) 100% 0 / 8px 8px no-repeat,
    linear-gradient(#fff 0 0) 0 100% / 8px 8px no-repeat,
    repeating-conic-gradient(#111 0 25%, #fff 0 50%) 50% / 10px 10px;
  z-index: 1;
}

.w-laser {
  position: absolute;
  left: 12px;
  right: 12px;
  height: 3px;
  background: #39ff14;
  box-shadow: 0 0 10px #39ff14;
  animation: w-scan 0.85s linear infinite;
  z-index: 2;
}

.w-send {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 1.8rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  z-index: 1;
  animation: w-fly 0.85s cubic-bezier(0.2, 1.4, 0.4, 1) infinite;
}

.w-burst {
  position: absolute;
  inset: 18px;
  border-radius: 50%;
  border: 3px solid var(--brand);
  animation: ping-out 0.9s ease-out infinite;
}

.lp-w-cook .cook-pan {
  position: absolute;
  width: 70px;
  height: 16px;
  bottom: 36px;
  border-radius: 0 0 36px 36px;
  background: #2b2b2b;
}

.lp-w-cook .cook-lid {
  position: absolute;
  width: 56px;
  height: 12px;
  bottom: 50px;
  border-radius: 16px 16px 4px 4px;
  background: #5c5c5c;
  animation: lid-hop 0.55s ease-in-out infinite;
}

.lp-w-cook .cook-flame {
  position: absolute;
  bottom: 22px;
  width: 22px;
  height: 18px;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 50% 80%, #ffd166, #e85d04 60%, transparent 72%);
  animation: flame-flicker 0.22s ease-in-out infinite alternate;
}

.w-table {
  position: absolute;
  right: 14px;
  bottom: 28px;
  width: 36px;
  height: 36px;
  border-radius: 8px;
  background: #c4a574;
  box-shadow: 0 8px 0 #8d6e46;
}

.w-person {
  position: absolute;
  left: 18px;
  bottom: 40px;
  width: 18px;
  height: 34px;
  border-radius: 9px 9px 4px 4px;
  background: var(--blue);
  animation: w-walk 1s ease-in-out infinite;
}

.w-person::before {
  content: "";
  position: absolute;
  top: -12px;
  left: 2px;
  width: 14px;
  height: 14px;
  border-radius: 50%;
  background: #f4d6b8;
}

.w-tray {
  position: absolute;
  left: 28px;
  bottom: 58px;
  width: 28px;
  height: 6px;
  border-radius: 3px;
  background: #eee;
  box-shadow: 0 2px 0 #bbb;
  animation: w-walk 1s ease-in-out infinite;
}

.w-dash-card {
  background: var(--amber-soft);
  border: 1px solid #f0d2b0;
  border-radius: 14px;
  padding: 12px 14px;
  display: grid;
  gap: 2px;
  max-width: 280px;
  animation: case-bob 1.1s ease-in-out infinite;
}

.w-dash-card strong { font-size: 1.05rem; }
.w-dash-card small { color: var(--ink-soft); }
.lp-waiter-hero[data-stage="cook"] ~ .lp-track-copy .w-dash-card,
.w-dash-card.cook { background: var(--blue-soft); border-color: #c5dceb; }
.lp-waiter-hero[data-stage="serve"] ~ .lp-track-copy .w-dash-card,
.w-dash-card.serve { background: var(--teal-soft); border-color: #b7e0da; }

.case-flow li.is-current {
  border: 2px solid var(--brand);
  background: var(--brand-soft);
}

.case-flow li.is-done {
  border-color: var(--teal);
  color: var(--teal);
}

.lp-track-hero {
  position: relative;
  width: 132px;
  height: 132px;
}

.lp-stage {
  position: absolute;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
}

.lp-track-hero[data-stage="queue"] .lp-queue,
.lp-track-hero[data-stage="cooking"] .lp-cook,
.lp-track-hero[data-stage="ready"] .lp-ready,
.lp-track-hero[data-stage="done"] .lp-done { display: flex; }

.lp-queue .orb-ring {
  position: absolute;
  inset: 8px;
  border-radius: 50%;
  border: 3px dashed var(--brand);
  animation: spin 3.2s linear infinite;
}

.lp-queue .orb-ticket {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: var(--brand);
  color: #fff;
  font-weight: 900;
  font-size: 1.4rem;
  display: grid;
  place-items: center;
  animation: ticket-bob 0.9s ease-in-out infinite;
  z-index: 1;
}

.lp-cook .cook-pan {
  position: absolute;
  width: 70px;
  height: 16px;
  bottom: 36px;
  border-radius: 0 0 36px 36px;
  background: #2b2b2b;
}

.lp-cook .cook-lid {
  position: absolute;
  width: 56px;
  height: 12px;
  bottom: 50px;
  border-radius: 16px 16px 4px 4px;
  background: #5c5c5c;
  animation: lid-hop 0.55s ease-in-out infinite;
}

.lp-cook .cook-flame {
  position: absolute;
  bottom: 22px;
  width: 22px;
  height: 18px;
  border-radius: 50% 50% 40% 40%;
  background: radial-gradient(circle at 50% 80%, #ffd166, #e85d04 60%, transparent 72%);
  animation: flame-flicker 0.22s ease-in-out infinite alternate;
}

.lp-ready .ready-ping {
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  border: 3px solid var(--teal);
  animation: ping-out 1.2s ease-out infinite;
}

.lp-ready .ready-bag {
  width: 58px;
  height: 58px;
  border-radius: 14px;
  background: var(--teal);
  color: #fff;
  font-size: 1.6rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  z-index: 1;
  animation: bag-bounce 0.7s cubic-bezier(0.36, 1.5, 0.46, 1) infinite;
}

.lp-done .done-check {
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 2rem;
  font-weight: 900;
  display: grid;
  place-items: center;
  animation: check-pop 1.4s ease-in-out infinite;
}

.lp-track-title {
  margin: 0 0 10px;
  font-size: 1.25rem;
  font-weight: 900;
}

.lp-track-steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 6px;
}

.lp-track-steps li {
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding-bottom: 8px;
  border-bottom: 3px solid var(--line);
}

.lp-track-steps li.is-current {
  color: var(--brand);
  border-bottom-color: var(--brand);
}

.lp-track-steps li.is-done {
  color: var(--teal);
  border-bottom-color: var(--teal);
}

@keyframes case-nudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}
@keyframes case-pop {
  from { transform: scale(0.92); }
  to { transform: scale(1); }
}
@keyframes case-rise {
  from { opacity: 0; transform: translateY(12px) scale(0.96); }
  to { opacity: 1; transform: none; }
}
@keyframes case-bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-7px); }
}
@keyframes case-slide {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(18px); }
}
@keyframes spin { to { transform: rotate(360deg); } }
@keyframes ticket-bob {
  0%, 100% { transform: translateY(0) rotate(-6deg); }
  50% { transform: translateY(-8px) rotate(6deg); }
}
@keyframes lid-hop {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  50% { transform: translateY(-8px) rotate(5deg); }
}
@keyframes flame-flicker {
  from { transform: scaleY(0.85); }
  to { transform: scaleY(1.15); }
}
@keyframes ping-out {
  0% { transform: scale(0.5); opacity: 0.8; }
  100% { transform: scale(1.3); opacity: 0; }
}
@keyframes bag-bounce {
  0%, 100% { transform: translateY(0) rotate(-4deg); }
  40% { transform: translateY(-12px) rotate(5deg) scale(1.06); }
}
@keyframes check-pop {
  0%, 100% { transform: scale(1) rotate(-8deg); }
  40% { transform: scale(1.12) rotate(8deg); }
}
@keyframes w-scan {
  0% { top: 18px; opacity: 0.3; }
  50% { opacity: 1; }
  100% { top: 72px; opacity: 0.3; }
}
@keyframes w-fly {
  0%, 100% { transform: translateY(6px) scale(1); }
  50% { transform: translateY(-14px) scale(1.08); }
}
@keyframes w-walk {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(42px); }
}

@media (max-width: 800px) {
  .case-hook { grid-template-columns: 1fr; }
  .hook-vs { transform: rotate(90deg); margin: -4px 0; }
  .case-flow { grid-template-columns: 1fr 1fr; }
  .case-scene, .pickup-scene, .waiter-scene { grid-template-columns: 1fr; justify-items: center; }
}

.lp-blog-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.lp-blog-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px;
  box-shadow: var(--shadow-sm);
}

.lp-blog-card h3 {
  font-size: 1.05rem;
  margin: 0 0 10px;
  line-height: 1.35;
}

.lp-blog-card h3 a:hover { color: var(--brand); }

.lp-blog-card p {
  margin: 0 0 14px;
  color: var(--ink-soft);
  font-size: 0.95rem;
}

.lp-blog-link {
  font-weight: 600;
  color: var(--brand);
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
  .reveal { opacity: 1; transform: none; }
  .tb-scene .btn,
  .ps-send { animation: none !important; }
  .aio-orbit,
  .aio-sat-arm,
  .aio-chip-wrap,
  .aio-chip,
  .aio-strike-line,
  .aio-strike-line::after { animation: none !important; }
  .aio-orbit { transform: none; }
  .aio-sat-arm {
    transform: translateY(calc(-1 * var(--aio-orbit-r))) scale(1);
    opacity: 1;
  }
  .aio-chip-wrap { transform: rotate(calc(-1 * var(--slot))); }
  .aio-chip { transform: translate(-50%, -50%); }
  .aio-strike-line,
  .aio-strike-line::after {
    transform: scaleX(1);
    opacity: 1;
  }
  .aio-strike-line::after { transform: rotate(-52deg) scaleX(1); }
}
