/* KitchNerve — public website. One stylesheet for every page. */

:root {
  --ink: #0e0a1f;
  --ink-2: #2a2540;
  --muted: #625f78;
  --muted-2: #8d8aa3;
  --line: #e9e6f5;
  --bg: #fbfaff;
  --bg-2: #f4f1ff;
  --card: #ffffff;
  --brand: #6c4cf5;
  --brand-2: #8f73ff;
  --brand-deep: #4a2fd1;
  --brand-soft: #efeaff;
  --amber: #ff8a3d;
  --amber-soft: #fff1e6;
  --mint: #16a974;
  --mint-soft: #e6f8f0;
  --rose: #f0436a;
  --sky: #2f8cff;
  --radius: 18px;
  --radius-lg: 28px;
  --shadow-sm: 0 1px 2px rgba(14, 10, 31, 0.05), 0 2px 8px rgba(14, 10, 31, 0.04);
  --shadow: 0 10px 30px rgba(32, 18, 92, 0.08), 0 2px 6px rgba(32, 18, 92, 0.05);
  --shadow-lg: 0 30px 80px rgba(32, 18, 92, 0.18), 0 8px 24px rgba(32, 18, 92, 0.08);
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --header-h: 72px;
  --max: 1200px;
  --gutter: 20px;
  color-scheme: light;
}

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

html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; overflow-x: clip; }

body {
  margin: 0;
  overflow-x: hidden;
  overflow-x: clip;
  background: var(--bg);
  color: var(--ink);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.12; letter-spacing: -0.02em; }
p { margin: 0; }
::selection { background: var(--brand); color: #fff; }

.container { width: 100%; max-width: var(--max); margin: 0 auto; padding: 0 var(--gutter); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Type ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px 6px 8px;
  border: 1px solid rgba(108, 76, 245, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  font-size: 13px;
  font-weight: 700;
  color: var(--brand-deep);
  backdrop-filter: blur(6px);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 99px; background: var(--mint); box-shadow: 0 0 0 4px rgba(22, 169, 116, 0.18); animation: pulse 2s infinite; }
.dark .eyebrow { border-color: rgba(255, 255, 255, 0.16); background: rgba(255, 255, 255, 0.06); color: #d9d0ff; }

.display { font-size: clamp(38px, 6.2vw, 72px); font-weight: 800; letter-spacing: -0.035em; }
.h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; letter-spacing: -0.03em; }
.h3 { font-size: clamp(20px, 2.2vw, 24px); font-weight: 750; }
.lead { font-size: clamp(16px, 1.6vw, 19px); color: var(--muted); }
.dark .lead { color: #b9b4d6; }
.grad-text {
  background: linear-gradient(100deg, var(--brand) 0%, #b14cf5 45%, var(--amber) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

/* ---------- Buttons ---------- */
.btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 22px;
  border: 1px solid transparent;
  border-radius: 14px;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease), background 0.2s, color 0.2s, border-color 0.2s;
  white-space: nowrap;
  overflow: hidden;
}
.btn svg { width: 18px; height: 18px; transition: transform 0.25s var(--ease); }
.btn:hover svg.arrow { transform: translateX(3px); }
.btn-primary { background: linear-gradient(135deg, var(--brand) 0%, var(--brand-deep) 100%); color: #fff; box-shadow: 0 10px 24px rgba(108, 76, 245, 0.35); }
.btn-primary::after {
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 30%, rgba(255, 255, 255, 0.35) 50%, transparent 70%);
  transform: translateX(-120%);
  transition: transform 0.7s var(--ease);
  content: '';
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(108, 76, 245, 0.42); }
.btn-primary:hover::after { transform: translateX(120%); }
.btn-ghost { border-color: var(--line); background: #fff; color: var(--ink); }
.btn-ghost:hover { border-color: #cfc4ff; transform: translateY(-2px); box-shadow: var(--shadow); }
.dark .btn-ghost { border-color: rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.06); color: #fff; }
.btn-sm { min-height: 40px; padding: 0 16px; border-radius: 12px; font-size: 14px; }
.btn-lg { min-height: 56px; padding: 0 28px; border-radius: 16px; font-size: 16px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  z-index: 50;
  top: 0;
  height: var(--header-h);
  border-bottom: 1px solid transparent;
  background: rgba(251, 250, 255, 0.72);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  transition: border-color 0.3s, box-shadow 0.3s, background 0.3s;
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(255, 255, 255, 0.86); box-shadow: 0 6px 24px rgba(32, 18, 92, 0.06); }
.site-header .container { display: flex; height: 100%; align-items: center; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 20px; font-weight: 800; letter-spacing: -0.03em; }
.brand-mark { width: 36px; height: 36px; flex: none; }
.brand small { display: block; margin-top: -3px; font-size: 10.5px; font-weight: 600; letter-spacing: 0.02em; color: var(--muted-2); }
.nav { display: flex; align-items: center; gap: 4px; margin: 0 auto; }
.nav a {
  position: relative;
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14.5px;
  font-weight: 600;
  color: var(--ink-2);
  transition: color 0.2s, background 0.2s;
}
.nav a:hover { background: var(--brand-soft); color: var(--brand-deep); }
.nav a[aria-current='page'] { color: var(--brand-deep); }
.nav a[aria-current='page']::after { position: absolute; right: 12px; bottom: 2px; left: 12px; height: 2px; border-radius: 2px; background: var(--brand); content: ''; }
.header-cta { display: flex; align-items: center; gap: 10px; }
.menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  color: var(--ink);
  cursor: pointer;
}
.menu-toggle svg { width: 22px; height: 22px; }

/* ---------- Drawer (mobile + tablet): slides in from the left ---------- */
.drawer-backdrop {
  position: fixed;
  z-index: 90;
  inset: 0;
  background: rgba(14, 10, 31, 0.45);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.35s var(--ease);
  backdrop-filter: blur(2px);
}
.drawer {
  position: fixed;
  z-index: 100;
  top: 0;
  bottom: 0;
  left: 0;
  display: flex;
  width: min(360px, 88vw);
  flex-direction: column;
  padding: 18px 18px 24px;
  background: #fff;
  box-shadow: 30px 0 80px rgba(14, 10, 31, 0.25);
  transform: translateX(-104%);
  transition: transform 0.45s var(--ease);
  overflow-y: auto;
}
.drawer-open .drawer { transform: none; }
.drawer-open .drawer-backdrop { opacity: 1; pointer-events: auto; }
.drawer-open { overflow: hidden; }
.drawer-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; }
.drawer-close {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  cursor: pointer;
  transition: transform 0.3s var(--ease), background 0.2s;
}
.drawer-close:hover { background: var(--brand-soft); transform: rotate(90deg); }
.drawer-close svg { width: 20px; height: 20px; }
.drawer nav { display: flex; flex-direction: column; gap: 4px; }
.drawer nav a {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border-radius: 14px;
  font-weight: 650;
  opacity: 0;
  transform: translateX(-16px);
  transition: background 0.2s, opacity 0.4s var(--ease), transform 0.4s var(--ease);
}
.drawer-open .drawer nav a { opacity: 1; transform: none; }
.drawer nav a .ico { display: grid; width: 38px; height: 38px; flex: none; place-items: center; border-radius: 11px; background: var(--bg-2); color: var(--brand); }
.drawer nav a .ico svg { width: 19px; height: 19px; }
.drawer nav a small { display: block; font-size: 12.5px; font-weight: 500; color: var(--muted-2); }
.drawer nav a:hover { background: var(--bg-2); }
.drawer nav a[aria-current='page'] { background: var(--brand-soft); color: var(--brand-deep); }
.drawer nav a[aria-current='page'] .ico { background: var(--brand); color: #fff; }
.drawer-foot { display: grid; gap: 10px; margin-top: auto; padding-top: 20px; }

/* ---------- Sections ---------- */
.section { position: relative; padding: clamp(64px, 9vw, 120px) 0; }
.section-tight { padding: clamp(48px, 6vw, 80px) 0; }
.section-head { max-width: 760px; margin: 0 auto clamp(36px, 5vw, 64px); text-align: center; }
.section-head .h2 { margin-top: 16px; }
.section-head .lead { margin-top: 16px; }
.section-head.left { margin-left: 0; text-align: left; }
.dark { background: var(--ink); color: #fff; }
.dark .muted { color: #b9b4d6; }
.muted { color: var(--muted); }
.bg-soft { background: linear-gradient(180deg, var(--bg) 0%, var(--bg-2) 100%); }

/* Decorative glows behind dark / hero sections */
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: 0.55; pointer-events: none; }
.glow.violet { background: #7c5cff; }
.glow.amber { background: #ff9a52; }
.glow.mint { background: #2fd3a0; }

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; padding: clamp(48px, 7vw, 96px) 0 clamp(64px, 8vw, 110px); }
.hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(60% 50% at 85% 10%, rgba(143, 115, 255, 0.28), transparent 70%),
    radial-gradient(45% 45% at 5% 30%, rgba(255, 138, 61, 0.16), transparent 70%),
    linear-gradient(180deg, #fff 0%, var(--bg) 100%);
}
.hero-grid-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(108, 76, 245, 0.06) 1px, transparent 1px), linear-gradient(90deg, rgba(108, 76, 245, 0.06) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: radial-gradient(70% 60% at 50% 20%, #000 30%, transparent 75%);
}
.hero .container { position: relative; display: grid; align-items: center; gap: 56px; grid-template-columns: 1.02fr 1fr; }
.hero h1 { margin-top: 20px; }
.hero .lead { margin-top: 20px; max-width: 560px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.hero-proof { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 28px; font-size: 14px; font-weight: 600; color: var(--muted); }
.hero-proof span { display: inline-flex; align-items: center; gap: 8px; }
.hero-proof svg { width: 18px; height: 18px; color: var(--mint); }

/* Page hero (inner pages) */
.page-hero { position: relative; overflow: hidden; padding: clamp(56px, 8vw, 104px) 0 clamp(40px, 6vw, 72px); text-align: center; }
.page-hero .lead { max-width: 720px; margin: 18px auto 0; }
.page-hero .hero-actions { justify-content: center; }
.crumbs { display: inline-flex; gap: 8px; margin-bottom: 18px; font-size: 13px; font-weight: 600; color: var(--muted-2); }
.crumbs a:hover { color: var(--brand); }

/* ---------- Live POS mock (hero) ---------- */
.mock-stage { position: relative; min-height: 520px; perspective: 1600px; }
.mock-window {
  position: relative;
  z-index: 2;
  overflow: hidden;
  border: 1px solid rgba(108, 76, 245, 0.16);
  border-radius: 22px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transform: rotateY(-8deg) rotateX(4deg);
  transform-origin: left center;
  animation: floatTilt 9s ease-in-out infinite;
}
.mock-bar { display: flex; align-items: center; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); background: #faf9ff; }
.mock-bar i { width: 10px; height: 10px; border-radius: 99px; background: #e4e0f3; }
.mock-bar i:nth-child(1) { background: #ff6b6b; }
.mock-bar i:nth-child(2) { background: #ffc94d; }
.mock-bar i:nth-child(3) { background: #3fd48a; }
.mock-bar b { margin-left: 10px; font-size: 12px; color: var(--muted-2); }
.mock-body { display: grid; grid-template-columns: 1.35fr 1fr; min-height: 380px; }
.mock-menu { padding: 14px; border-right: 1px solid var(--line); }
.mock-tabs { display: flex; gap: 6px; margin-bottom: 12px; }
.mock-tabs span { padding: 5px 10px; border-radius: 99px; background: var(--bg-2); font-size: 11px; font-weight: 700; color: var(--muted); }
.mock-tabs span.on { background: var(--brand); color: #fff; }
.mock-items { display: grid; gap: 8px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.mock-item { position: relative; padding: 10px; border: 1px solid var(--line); border-radius: 12px; background: #fff; font-size: 12px; font-weight: 700; transition: transform 0.3s var(--ease), border-color 0.3s, box-shadow 0.3s; }
.mock-item em { display: block; margin-top: 4px; font-size: 11px; font-style: normal; font-weight: 700; color: var(--brand); }
.mock-item .veg { position: absolute; top: 9px; right: 9px; width: 10px; height: 10px; border: 1.5px solid var(--mint); border-radius: 2px; }
.mock-item .veg::after { position: absolute; inset: 2px; border-radius: 99px; background: var(--mint); content: ''; }
.mock-item .veg.nv { border-color: var(--rose); }
.mock-item .veg.nv::after { background: var(--rose); }
.mock-item.tap { border-color: var(--brand); box-shadow: 0 0 0 3px rgba(108, 76, 245, 0.18); transform: scale(0.96); }
.mock-cart { display: flex; flex-direction: column; padding: 14px; background: #fcfbff; }
.mock-cart h5 { margin: 0 0 10px; font-size: 12px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.mock-lines { display: flex; min-height: 150px; flex-direction: column; gap: 7px; }
.mock-line { display: flex; justify-content: space-between; gap: 6px; padding: 8px 9px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-sm); font-size: 11.5px; font-weight: 700; animation: lineIn 0.45s var(--ease) both; }
.mock-line small { display: block; font-size: 10px; font-weight: 600; color: var(--muted-2); }
.mock-totals { margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--line); font-size: 11.5px; }
.mock-totals div { display: flex; justify-content: space-between; color: var(--muted); }
.mock-totals .grand { margin-top: 4px; font-size: 15px; font-weight: 800; color: var(--ink); }
.mock-pay { margin-top: 10px; padding: 10px; border-radius: 11px; background: linear-gradient(135deg, var(--brand), var(--brand-deep)); color: #fff; font-size: 12px; font-weight: 800; text-align: center; }
.float-card {
  position: absolute;
  z-index: 3;
  padding: 12px 14px;
  border: 1px solid rgba(108, 76, 245, 0.14);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-lg);
  backdrop-filter: blur(10px);
  font-size: 12.5px;
}
.float-card b { display: block; font-size: 14px; }
.float-ticket { right: -18px; bottom: 26px; width: 210px; animation: bob 6s ease-in-out infinite; }
.float-ticket .tk-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.float-ticket .tk-no { font-size: 20px; font-weight: 800; color: var(--brand-deep); }
.status-pill { display: inline-flex; align-items: center; gap: 5px; padding: 3px 8px; border-radius: 99px; font-size: 10.5px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.04em; transition: background 0.4s, color 0.4s; }
.status-pill::before { width: 6px; height: 6px; border-radius: 99px; background: currentColor; content: ''; }
.status-pill.cooking { background: var(--amber-soft); color: #d2621b; }
.status-pill.ready { background: var(--mint-soft); color: var(--mint); }
.float-ticket ul { margin: 0; padding: 0; list-style: none; }
.float-ticket li { display: flex; justify-content: space-between; padding: 3px 0; font-weight: 600; color: var(--ink-2); }
.float-ticket .timer { margin-top: 8px; height: 5px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.float-ticket .timer span { display: block; height: 100%; border-radius: inherit; background: linear-gradient(90deg, var(--amber), var(--mint)); animation: timer 7s linear infinite; }
.float-stat { bottom: 120px; left: -34px; display: flex; align-items: center; gap: 10px; animation: bob 7s ease-in-out -2s infinite; }
.float-stat .ring { display: grid; width: 42px; height: 42px; place-items: center; border-radius: 12px; background: var(--mint-soft); color: var(--mint); }
.float-stat .ring svg { width: 22px; height: 22px; }
.float-ai { top: -18px; right: 40px; display: flex; align-items: center; gap: 8px; animation: bob 8s ease-in-out -4s infinite; }
.float-ai .spark { display: grid; width: 30px; height: 30px; place-items: center; border-radius: 9px; background: linear-gradient(135deg, var(--brand), #b14cf5); color: #fff; }
.float-ai .spark svg { width: 17px; height: 17px; }

/* ---------- Logo marquee ---------- */
.marquee { position: relative; overflow: hidden; padding: 26px 0; border-block: 1px solid var(--line); background: #fff; mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; gap: 56px; animation: marquee 32s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee-item { display: inline-flex; align-items: center; gap: 10px; font-size: 16px; font-weight: 750; color: #8a86a3; white-space: nowrap; }
.marquee-item svg { width: 22px; height: 22px; color: var(--brand-2); }

/* ---------- Stats ---------- */
.stats { display: grid; gap: 16px; grid-template-columns: repeat(4, minmax(0, 1fr)); }
.stat { padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.stat b { display: block; font-size: clamp(30px, 3.6vw, 42px); font-weight: 800; letter-spacing: -0.03em; color: var(--brand-deep); }
.stat span { font-size: 14px; font-weight: 600; color: var(--muted); }
.dark .stat { border-color: rgba(255, 255, 255, 0.1); background: rgba(255, 255, 255, 0.04); }
.dark .stat b { color: #fff; }
.dark .stat span { color: #b9b4d6; }

/* ---------- Cards / grids ---------- */
.grid { display: grid; gap: 20px; }
.grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.card {
  position: relative;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--card);
  box-shadow: var(--shadow-sm);
  transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease), border-color 0.35s;
}
.card:hover { border-color: #d8ceff; box-shadow: var(--shadow); transform: translateY(-4px); }
.card h3 { margin-top: 18px; font-size: 19px; font-weight: 750; }
.card p { margin-top: 10px; font-size: 15px; color: var(--muted); }
.card .ico {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 15px;
  background: var(--brand-soft);
  color: var(--brand);
  transition: transform 0.4s var(--ease);
}
.card:hover .ico { transform: rotate(-6deg) scale(1.06); }
.card .ico svg { width: 26px; height: 26px; }
.ico.amber { background: var(--amber-soft); color: #e06a1f; }
.ico.mint { background: var(--mint-soft); color: var(--mint); }
.ico.sky { background: #e7f1ff; color: var(--sky); }
.ico.rose { background: #ffe9ee; color: var(--rose); }
.card .more { display: inline-flex; align-items: center; gap: 6px; margin-top: 16px; font-size: 14px; font-weight: 700; color: var(--brand); }
.card .more svg { width: 16px; height: 16px; transition: transform 0.25s var(--ease); }
.card:hover .more svg { transform: translateX(4px); }
.dark .card { border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.04); box-shadow: none; }
.dark .card p { color: #b9b4d6; }
.dark .card .ico { background: rgba(143, 115, 255, 0.16); color: #c8b9ff; }
.tag { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; background: var(--bg-2); font-size: 12px; font-weight: 700; color: var(--brand-deep); }
.tag.new { background: linear-gradient(135deg, var(--brand), #b14cf5); color: #fff; }

/* Bullet list with ticks */
.ticks { display: grid; gap: 12px; margin: 22px 0 0; padding: 0; list-style: none; }
.ticks li { position: relative; padding-left: 32px; color: var(--ink-2); }
.ticks li::before {
  position: absolute;
  top: 3px;
  left: 0;
  display: grid;
  width: 21px;
  height: 21px;
  place-items: center;
  border-radius: 7px;
  background: var(--mint-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2316a974' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 13px no-repeat;
  content: '';
}
.ticks li b { color: var(--ink); }
.dark .ticks li { color: #d8d3f0; }
.dark .ticks li b { color: #fff; }

/* ---------- Feature rows (text + screenshot) ---------- */
.feature-row { display: grid; align-items: center; gap: clamp(32px, 6vw, 80px); grid-template-columns: 1fr 1.1fr; }
.feature-row + .feature-row { margin-top: clamp(72px, 10vw, 128px); }
.feature-row.flip .feature-copy { order: 2; }
.feature-copy .h2 { margin-top: 14px; font-size: clamp(28px, 3.4vw, 40px); }
.feature-copy .lead { margin-top: 14px; }

/* Screenshot frame */
.shot {
  position: relative;
  margin: 0;
  overflow: hidden;
  border: 1px solid rgba(108, 76, 245, 0.16);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  transition: transform 0.6s var(--ease);
}
.shot:hover { transform: translateY(-6px) scale(1.01); }
.shot-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; border-bottom: 1px solid var(--line); background: #faf9ff; }
.shot-bar i { width: 9px; height: 9px; border-radius: 99px; background: #e4e0f3; }
.shot-bar span { margin-left: 8px; overflow: hidden; padding: 3px 10px; border-radius: 7px; background: #fff; font-size: 11px; color: var(--muted-2); text-overflow: ellipsis; white-space: nowrap; }
.shot img { width: 100%; height: auto; }
.shot figcaption { padding: 10px 14px; border-top: 1px solid var(--line); background: #fff; font-size: 13px; color: var(--muted); }
.shot-wrap { position: relative; }
.shot-wrap::before {
  position: absolute;
  z-index: -1;
  inset: 10% -6% -8% 8%;
  border-radius: 40px;
  background: linear-gradient(135deg, rgba(143, 115, 255, 0.35), rgba(255, 138, 61, 0.22));
  filter: blur(40px);
  content: '';
}
.shot.portrait { max-width: 400px; margin: 0 auto; }
.shot.portrait img { max-height: 720px; object-fit: cover; object-position: top; }
.shot.phone { max-width: 320px; margin: 0 auto; border-radius: 34px; border-width: 8px; border-color: #15102b; }

/* ---------- Steps / flow ---------- */
.steps { position: relative; display: grid; gap: 18px; grid-template-columns: repeat(4, minmax(0, 1fr)); counter-reset: step; }
.step { position: relative; padding: 26px 22px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; box-shadow: var(--shadow-sm); }
.step::before {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  font-weight: 800;
  color: #fff;
  counter-increment: step;
  content: counter(step);
}
.step h3 { margin-top: 16px; font-size: 17px; font-weight: 750; }
.step p { margin-top: 8px; font-size: 14.5px; color: var(--muted); }
.dark .step { border-color: rgba(255, 255, 255, 0.08); background: rgba(255, 255, 255, 0.04); box-shadow: none; }
.dark .step p { color: #b9b4d6; }

/* Bill pipeline (billing page) */
.pipeline { position: relative; display: grid; gap: 0; }
.pipe-step { position: relative; display: grid; gap: 20px; grid-template-columns: 64px 1fr; padding-bottom: 34px; }
.pipe-step:last-child { padding-bottom: 0; }
.pipe-step::before { position: absolute; top: 64px; bottom: 0; left: 31px; width: 2px; background: linear-gradient(var(--brand-2), var(--line)); content: ''; }
.pipe-step:last-child::before { display: none; }
.pipe-dot { position: relative; display: grid; width: 64px; height: 64px; place-items: center; border-radius: 20px; background: #fff; box-shadow: var(--shadow); color: var(--brand); }
.pipe-dot svg { width: 28px; height: 28px; }
.pipe-dot b { position: absolute; top: -6px; right: -6px; display: grid; width: 24px; height: 24px; place-items: center; border-radius: 8px; background: var(--brand); font-size: 12px; color: #fff; }
.pipe-step h3 { margin-top: 6px; font-size: 20px; font-weight: 750; }
.pipe-step p { margin-top: 6px; color: var(--muted); }

/* Receipt mock */
.receipt {
  position: relative;
  max-width: 380px;
  margin: 0 auto;
  padding: 26px 24px 34px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-family: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: 13px;
  color: #1d1930;
  --tooth: 12px;
  mask: conic-gradient(from -45deg at bottom, #0000, #000 1deg 89deg, #0000 90deg) 50% / var(--tooth) 100%;
}
.receipt h4 { font-family: 'Plus Jakarta Sans', sans-serif; font-size: 20px; text-align: center; }
.receipt .rc-sub { margin-top: 4px; font-size: 11.5px; color: #77738f; text-align: center; }
.receipt hr { margin: 14px 0; border: 0; border-top: 1px dashed #c9c4dc; }
.receipt .row { display: flex; justify-content: space-between; gap: 10px; padding: 3px 0; }
.receipt .row small { display: block; color: #8b87a3; }
.receipt .row.total { margin-top: 4px; font-size: 17px; font-weight: 800; }
.receipt .row.save { color: var(--mint); }
.receipt .row.hl { margin: 0 -8px; padding: 3px 8px; border-radius: 6px; background: rgba(108, 76, 245, 0.1); transition: background 0.3s; }
.receipt .token { margin: 12px auto 0; padding: 8px 12px; border: 2px dashed var(--brand); border-radius: 10px; font-size: 15px; font-weight: 800; color: var(--brand-deep); text-align: center; }

/* Calculator (billing page) */
.calc { display: grid; gap: 22px; grid-template-columns: 1fr 1fr; padding: 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.calc label { display: block; margin-bottom: 14px; font-size: 13px; font-weight: 700; color: var(--ink-2); }
.calc input[type='range'] { width: 100%; accent-color: var(--brand); }
.calc .seg { display: inline-flex; padding: 4px; border-radius: 12px; background: var(--bg-2); }
.calc .seg button { padding: 7px 12px; border: 0; border-radius: 9px; background: transparent; font-size: 13px; font-weight: 700; color: var(--muted); cursor: pointer; }
.calc .seg button.on { background: #fff; color: var(--brand-deep); box-shadow: var(--shadow-sm); }
.calc .val { float: right; color: var(--brand-deep); }
.calc-out { padding: 20px; border-radius: 18px; background: var(--ink); color: #fff; }
.calc-out .row { display: flex; justify-content: space-between; padding: 8px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.08); font-size: 14.5px; color: #cfc9ea; }
.calc-out .row b { color: #fff; font-variant-numeric: tabular-nums; }
.calc-out .row.total { border: 0; padding-top: 14px; font-size: 19px; }
.calc-out .row.total b { font-size: 26px; }
.calc-out .note { margin-top: 10px; font-size: 12.5px; color: #9d97bd; }

/* ---------- Tabs (features page) ---------- */
.tabbar { position: sticky; z-index: 20; top: calc(var(--header-h) + 8px); display: flex; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 48px; padding: 6px; overflow-x: auto; border: 1px solid var(--line); border-radius: 16px; background: rgba(255, 255, 255, 0.9); box-shadow: var(--shadow); backdrop-filter: blur(10px); scrollbar-width: none; }
.tabbar::-webkit-scrollbar { display: none; }
.tabbar a { flex: none; padding: 9px 14px; border-radius: 11px; font-size: 14px; font-weight: 700; color: var(--muted); transition: background 0.2s, color 0.2s; }
.tabbar a:hover { color: var(--ink); }
.tabbar a.on { background: var(--brand); color: #fff; }

/* ---------- Pricing ---------- */
.plans { display: grid; gap: 20px; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; padding: 32px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow-sm); transition: transform 0.35s var(--ease), box-shadow 0.35s var(--ease); }
.plan:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.plan.best { border: 2px solid var(--brand); box-shadow: var(--shadow-lg); }
.plan .ribbon { position: absolute; top: -14px; left: 50%; padding: 6px 14px; border-radius: 99px; background: linear-gradient(135deg, var(--brand), #b14cf5); font-size: 12px; font-weight: 800; color: #fff; transform: translateX(-50%); white-space: nowrap; }
.plan h3 { font-size: 22px; font-weight: 800; }
.plan .term { margin-top: 6px; font-size: 14px; color: var(--muted); }
.plan .ticks { margin-top: 22px; margin-bottom: 28px; }
.plan .btn { margin-top: auto; }
.compare { width: 100%; border-collapse: separate; border-spacing: 0; overflow: hidden; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; font-size: 14.5px; }
.compare th, .compare td { padding: 14px 18px; border-bottom: 1px solid var(--line); text-align: center; }
.compare th:first-child, .compare td:first-child { text-align: left; }
.compare thead th { background: var(--bg-2); font-size: 13px; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
.compare tbody tr:last-child td { border-bottom: 0; }
.compare tbody tr:hover td { background: #fcfbff; }
.yes { color: var(--mint); font-weight: 800; }
.no { color: #c3bfd6; }

/* ---------- FAQ ---------- */
.faq { max-width: 860px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 22px 4px; font-size: 17px; font-weight: 700; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .pm { position: relative; width: 28px; height: 28px; flex: none; border-radius: 9px; background: var(--bg-2); transition: transform 0.3s var(--ease), background 0.3s; }
.faq summary .pm::before, .faq summary .pm::after { position: absolute; top: 50%; left: 50%; width: 12px; height: 2px; border-radius: 2px; background: var(--brand); transform: translate(-50%, -50%); content: ''; }
.faq summary .pm::after { transform: translate(-50%, -50%) rotate(90deg); transition: transform 0.3s var(--ease); }
.faq details[open] summary .pm { background: var(--brand-soft); }
.faq details[open] summary .pm::after { transform: translate(-50%, -50%) rotate(0deg); }
.faq .answer { padding: 0 4px 22px; color: var(--muted); animation: fadeDown 0.4s var(--ease); }

/* ---------- CTA band ---------- */
.cta-band { position: relative; overflow: hidden; padding: clamp(40px, 6vw, 72px); border-radius: 32px; background: radial-gradient(80% 120% at 100% 0%, #8f73ff 0%, transparent 60%), radial-gradient(70% 120% at 0% 100%, #ff8a3d 0%, transparent 55%), var(--ink); color: #fff; text-align: center; }
.cta-band .h2 { max-width: 760px; margin: 0 auto; }
.cta-band .lead { max-width: 620px; margin: 16px auto 0; color: #d5cff0; }
.cta-band .hero-actions { justify-content: center; }
.cta-band .btn-primary { background: #fff; color: var(--brand-deep); box-shadow: 0 14px 30px rgba(0, 0, 0, 0.25); }

/* ---------- Contact ---------- */
.contact-grid { display: grid; gap: 28px; grid-template-columns: 1fr 1.2fr; align-items: start; }
.form { padding: 32px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: #fff; box-shadow: var(--shadow); }
.form .row2 { display: grid; gap: 16px; grid-template-columns: 1fr 1fr; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 13.5px; font-weight: 700; color: var(--ink-2); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 48px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  font: inherit;
  font-size: 15px;
  color: var(--ink);
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--brand); outline: none; box-shadow: 0 0 0 4px rgba(108, 76, 245, 0.14); }
.form-note { margin-top: 12px; font-size: 13px; color: var(--muted-2); }
.form-done { display: none; padding: 18px; border-radius: 14px; background: var(--mint-soft); font-weight: 600; color: #0b7a52; }
.form.is-done .form-done { display: block; animation: fadeDown 0.4s var(--ease); }

/* ---------- Footer ---------- */
.site-footer { position: relative; overflow: hidden; padding: 72px 0 28px; background: var(--ink); color: #cfc9ea; }
.footer-grid { display: grid; gap: 40px; grid-template-columns: 1.5fr repeat(3, 1fr); }
.site-footer .brand { color: #fff; }
.site-footer .brand small { color: #8d88ad; }
.site-footer p { margin-top: 16px; max-width: 340px; font-size: 14.5px; color: #a49ec4; }
.site-footer h4 { margin-bottom: 14px; font-size: 13px; text-transform: uppercase; letter-spacing: 0.08em; color: #fff; }
.site-footer ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; }
.site-footer ul a { color: #a49ec4; transition: color 0.2s; }
.site-footer ul a:hover { color: #fff; }
.footer-base { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; margin-top: 56px; padding-top: 22px; border-top: 1px solid rgba(255, 255, 255, 0.08); font-size: 13.5px; color: #8d88ad; }

/* ---------- Page bot ---------- */
.kn-bot { position: fixed; z-index: 80; right: 20px; bottom: 20px; display: flex; flex-direction: column; align-items: flex-end; gap: 12px; }
.kn-bot-bubble {
  position: relative;
  max-width: 280px;
  padding: 14px 16px;
  border: 1px solid var(--line);
  border-radius: 18px 18px 6px 18px;
  background: #fff;
  box-shadow: var(--shadow-lg);
  font-size: 14px;
  opacity: 0;
  transform: translateY(10px) scale(0.96);
  transform-origin: bottom right;
  transition: opacity 0.35s var(--ease), transform 0.35s var(--ease);
  pointer-events: none;
}
.kn-bot.is-talking .kn-bot-bubble { opacity: 1; transform: none; pointer-events: auto; }
.kn-bot-title { display: block; margin-bottom: 2px; padding-right: 22px; font-size: 12px; font-weight: 800; text-transform: uppercase; letter-spacing: 0.06em; color: var(--brand); }
.kn-bot-text b { color: var(--brand-deep); }
.kn-bot-bubble .typing { display: inline-flex; gap: 4px; padding: 4px 0; }
.kn-bot-bubble .typing i { width: 7px; height: 7px; border-radius: 99px; background: var(--brand-2); animation: typing 1s infinite; }
.kn-bot-bubble .typing i:nth-child(2) { animation-delay: 0.15s; }
.kn-bot-bubble .typing i:nth-child(3) { animation-delay: 0.3s; }
.kn-bot-bubble .kn-bot-x { position: absolute; top: 6px; right: 6px; display: grid; width: 26px; height: 26px; place-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--muted-2); cursor: pointer; }
.kn-bot-bubble .kn-bot-x:hover { background: var(--bg-2); }
.kn-bot-bubble .kn-bot-x svg { width: 14px; height: 14px; }
.kn-bot-links { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.kn-bot-links a { padding: 5px 10px; border-radius: 99px; background: var(--bg-2); font-size: 12px; font-weight: 700; color: var(--brand-deep); }
.kn-bot-links a:hover { background: var(--brand-soft); }
.kn-bot-btn {
  position: relative;
  display: grid;
  width: 62px;
  height: 62px;
  place-items: center;
  border: 0;
  border-radius: 20px;
  background: linear-gradient(135deg, var(--brand), #b14cf5);
  box-shadow: 0 14px 30px rgba(108, 76, 245, 0.45);
  color: #fff;
  cursor: pointer;
  transition: transform 0.3s var(--ease);
  animation: botFloat 4s ease-in-out infinite;
}
.kn-bot-btn:hover { transform: scale(1.06) rotate(-4deg); }
.kn-bot-btn svg { width: 34px; height: 34px; }
.kn-bot-btn .eye { animation: blink 4s infinite; transform-origin: center; transform-box: fill-box; }
.kn-bot-btn::after { position: absolute; top: -3px; right: -3px; width: 14px; height: 14px; border: 3px solid #fff; border-radius: 99px; background: var(--mint); content: ''; }

/* ---------- Scroll reveal ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease), transform 0.9s var(--ease); transition-delay: var(--d, 0s); }
.reveal.from-left { transform: translateX(-36px); }
.reveal.from-right { transform: translateX(36px); }
.reveal.zoom { transform: scale(0.94); }
.reveal.is-in { opacity: 1; transform: none; }
.scroll-progress { position: fixed; z-index: 60; top: 0; left: 0; height: 3px; width: 100%; background: linear-gradient(90deg, var(--brand), #b14cf5, var(--amber)); transform: scaleX(0); transform-origin: left; }

/* ---------- Keyframes ---------- */
@keyframes pulse { 0%, 100% { box-shadow: 0 0 0 4px rgba(22, 169, 116, 0.18); } 50% { box-shadow: 0 0 0 8px rgba(22, 169, 116, 0.05); } }
@keyframes floatTilt { 0%, 100% { transform: rotateY(-8deg) rotateX(4deg) translateY(0); } 50% { transform: rotateY(-5deg) rotateX(2deg) translateY(-10px); } }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
@keyframes lineIn { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes timer { from { width: 0; } to { width: 100%; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes fadeDown { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }
@keyframes typing { 0%, 60%, 100% { opacity: 0.3; transform: translateY(0); } 30% { opacity: 1; transform: translateY(-3px); } }
@keyframes botFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -6px; } }
@keyframes blink { 0%, 92%, 100% { transform: scaleY(1); } 95% { transform: scaleY(0.1); } }

/* ---------- Large screens ---------- */
@media (min-width: 1440px) {
  :root { --max: 1320px; }
}

/* ---------- Laptop / small desktop ---------- */
@media (max-width: 1180px) {
  .nav a { padding: 8px 9px; font-size: 14px; }
  .float-ticket { right: -6px; }
}

/* ---------- Tablet: drawer menu, simpler grids ---------- */
@media (max-width: 1023px) {
  :root { --gutter: 28px; --header-h: 66px; }
  .nav, .header-cta .btn-ghost { display: none; }
  .menu-toggle { display: inline-flex; order: -1; }
  .site-header .container { gap: 14px; }
  .header-cta { margin-left: auto; }
  .hero .container { grid-template-columns: 1fr; gap: 48px; text-align: center; }
  .hero .lead { margin-left: auto; margin-right: auto; }
  .hero-actions, .hero-proof { justify-content: center; }
  .mock-stage { max-width: 640px; margin: 0 auto; }
  .mock-window { transform: none; animation: none; }
  .float-stat { left: -8px; }
  .grid-4, .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .feature-row, .feature-row.flip { grid-template-columns: 1fr; }
  .feature-row.flip .feature-copy { order: 0; }
  .plans { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .plan.best { order: -1; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-grid > div:first-child { grid-column: 1 / -1; }
  .contact-grid, .calc { grid-template-columns: 1fr; }
  /* The full comparison table becomes the plan cards above it. */
  .compare-wrap { display: none; }
}

/* ---------- Phone ---------- */
@media (max-width: 640px) {
  :root { --gutter: 16px; --header-h: 62px; }
  body { font-size: 15.5px; }
  .header-cta .btn { min-height: 40px; padding: 0 14px; font-size: 13.5px; }
  .brand { font-size: 18px; }
  .brand small { display: none; }
  .hero-actions .btn { width: 100%; }
  .mock-stage { min-height: 0; }
  .mock-body { grid-template-columns: 1fr; }
  .mock-menu { border-right: 0; border-bottom: 1px solid var(--line); }
  .mock-lines { min-height: 110px; }
  /* Decorative floating cards would crowd a phone screen. */
  .float-stat, .float-ai { display: none; }
  .float-ticket { position: relative; right: auto; bottom: auto; width: auto; margin: -24px 12px 0; }
  .grid-2, .grid-3, .grid-4, .steps { grid-template-columns: 1fr; }
  .stats { grid-template-columns: 1fr 1fr; gap: 12px; }
  .stat { padding: 18px 16px; }
  .card { padding: 22px; }
  .form { padding: 22px; }
  .form .row2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .cta-band { border-radius: 24px; }
  .cta-band .btn { width: 100%; }
  .kn-bot { right: 14px; bottom: 14px; }
  .kn-bot-btn { width: 54px; height: 54px; border-radius: 18px; }
  .kn-bot-bubble { max-width: calc(100vw - 28px); }
  .pipe-step { grid-template-columns: 52px 1fr; gap: 14px; }
  .pipe-dot { width: 52px; height: 52px; border-radius: 16px; }
  .pipe-step::before { top: 52px; left: 25px; }
  .tabbar { margin-left: calc(var(--gutter) * -1); margin-right: calc(var(--gutter) * -1); border-radius: 0; border-inline: 0; width: auto; }
  .hide-phone { display: none !important; }
  /* Sideways entrances would poke past a narrow screen: rise instead. */
  .reveal.from-left, .reveal.from-right { transform: translateY(24px); }
  .reveal.from-left.is-in, .reveal.from-right.is-in { transform: none; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; scroll-behavior: auto !important; }
  .reveal { opacity: 1; transform: none; }
}
