/* ============================================================================
   NTmart POS — design system
   Dark-first. Light theme via :root[data-theme="light"], set by the boot script
   in <head> so there is no flash. Every colour below is a token: nothing in the
   component layer hard-codes a hex, so light mode is a token swap rather than a
   second stylesheet.
   ========================================================================= */

:root {
  /* --- Surfaces: near-black slate, lifted in four steps --- */
  --bg:          #07090C;
  --bg-2:        #0B0F14;
  --surface:     #10151B;
  --surface-2:   #161C24;
  --glass:       rgba(22, 28, 36, 0.62);
  --glass-nav:   rgba(7, 9, 12, 0.72);

  --line:        rgba(255, 255, 255, 0.085);
  --line-strong: rgba(255, 255, 255, 0.16);

  --ink:         #F2F5F3;
  --ink-2:       #AFB8B4;
  --muted:       #78837E;

  /* --- Brand, pushed to neon luminance for near-black --- */
  --emerald:      #2BE08A;
  --emerald-deep: #16A365;
  --emerald-glow: rgba(43, 224, 138, 0.28);
  --emerald-dim:  rgba(43, 224, 138, 0.10);
  --coral:        #FF7A4D;
  --coral-glow:   rgba(255, 122, 77, 0.26);
  --coral-dim:    rgba(255, 122, 77, 0.10);

  /* Text that sits ON an accent fill, so it flips with the theme. */
  --on-accent:   #04100A;

  /* Square corners throughout: the card language is the ledger row below, and
     rounded panels no longer agree with the square buttons. */
  --radius:    0px;
  --radius-lg: 0px;
  --radius-sm: 0px;

  --sans: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --shadow:    0 24px 60px -28px rgba(0, 0, 0, 0.9);
  --shadow-lg: 0 50px 110px -40px rgba(0, 0, 0, 0.95);

  --nav-h: 74px;
  color-scheme: dark;
}

:root[data-theme="light"] {
  --bg:          #FBFBF8;
  --bg-2:        #F3F4EF;
  --surface:     #FFFFFF;
  --surface-2:   #F7F8F4;
  --glass:       rgba(255, 255, 255, 0.72);
  --glass-nav:   rgba(251, 251, 248, 0.82);

  --line:        rgba(19, 32, 26, 0.11);
  --line-strong: rgba(19, 32, 26, 0.22);

  --ink:         #10201A;
  --ink-2:       #42504A;
  --muted:       #6C7872;

  --emerald:      #0E8C57;
  --emerald-deep: #0A6B42;
  --emerald-glow: rgba(14, 140, 87, 0.20);
  --emerald-dim:  rgba(14, 140, 87, 0.08);
  --coral:        #D9481D;
  --coral-glow:   rgba(217, 72, 29, 0.18);
  --coral-dim:    rgba(217, 72, 29, 0.07);

  --on-accent:   #FFFFFF;

  --shadow:    0 24px 55px -30px rgba(16, 32, 26, 0.30);
  --shadow-lg: 0 50px 100px -44px rgba(16, 32, 26, 0.34);
  color-scheme: light;
}

/* ---------------------------------------------------------------- Base --- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 16px); }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.62;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, h4 { font-family: var(--sans); margin: 0; letter-spacing: -0.025em; font-weight: 700; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
@media (min-width: 760px) { .wrap { padding: 0 32px; } }

:focus-visible { outline: 2.5px solid var(--emerald); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--emerald); color: var(--on-accent); }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; top: -60px; left: 16px; z-index: 200;
  background: var(--emerald); color: var(--on-accent); padding: 10px 18px;
  border-radius: 0; font-weight: 700; text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ------------------------------------------------ Ambient background --- */
/* Two soft accent pools behind the page. Pure CSS radial gradients — no image
   request — sitting under everything at low alpha, so text contrast is
   untouched. */
.aurora {
  position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60% 46% at 12% -6%, var(--emerald-glow), transparent 68%),
    radial-gradient(52% 40% at 92% 6%,  var(--coral-glow),   transparent 66%);
  opacity: 0.55;
}
:root[data-theme="light"] .aurora { opacity: 0.85; }

/* ------------------------------------------------------------ Eyebrow --- */
.eyebrow {
  font-family: var(--mono);
  font-size: 11.5px; letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--emerald); font-weight: 600;
  display: inline-flex; align-items: center; gap: 9px; margin-bottom: 18px;
}
.eyebrow::before {
  content: ''; width: 6px; height: 6px; border-radius: 50%; flex: 0 0 auto;
  background: var(--emerald); box-shadow: 0 0 10px var(--emerald);
}
.eyebrow.coral { color: var(--coral); }
.eyebrow.coral::before { background: var(--coral); box-shadow: 0 0 10px var(--coral); }

/* ------------------------------------------------------------ Buttons --- */
.btn {
  font-family: var(--sans); font-weight: 700; font-size: 14.5px;
  border-radius: 0; padding: 13px 26px; border: 1.5px solid transparent;
  cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; justify-content: center; gap: 9px;
  line-height: 1.2; white-space: nowrap;
  transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease),
              background 0.22s var(--ease), border-color 0.22s var(--ease),
              color 0.22s var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn svg { width: 17px; height: 17px; flex: 0 0 auto; }

.btn-primary, .btn-whatsapp {
  background: var(--emerald); color: var(--on-accent);
  box-shadow: 0 14px 34px -14px var(--emerald-glow);
}
.btn-primary:hover, .btn-whatsapp:hover {
  box-shadow: 0 0 26px -2px var(--emerald-glow), 0 20px 44px -16px var(--emerald-glow);
}
.btn-outline {
  background: var(--glass); color: var(--ink);
  border-color: var(--line-strong); backdrop-filter: blur(10px);
}
.btn-outline:hover { border-color: var(--emerald); color: var(--emerald); }
.btn-coral { background: var(--coral); color: #fff; box-shadow: 0 14px 34px -14px var(--coral-glow); }
.btn-coral:hover { box-shadow: 0 0 26px -2px var(--coral-glow), 0 20px 44px -16px var(--coral-glow); }
.btn-ghost { background: transparent; color: var(--ink-2); border-color: var(--line-strong); }
.btn-ghost:hover { color: var(--ink); border-color: var(--ink-2); }
.btn-sm { padding: 10px 20px; font-size: 13.5px; }

/* --------------------------------------------------------------- Nav ---- */
/* Shrinks on scroll via .is-stuck, added by site.js. */
nav {
  position: sticky; top: 0; z-index: 80;
  background: var(--glass-nav);
  backdrop-filter: blur(18px) saturate(1.4);
  -webkit-backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s var(--ease), background 0.3s var(--ease);
}
nav.is-stuck { border-bottom-color: var(--line); }

nav .wrap {
  display: flex; align-items: center; justify-content: space-between; gap: 18px;
  height: var(--nav-h); transition: height 0.3s var(--ease);
}
nav.is-stuck .wrap { height: 60px; }

.brand { display: flex; align-items: center; text-decoration: none; flex: 0 0 auto; }
.brand img { width: auto; height: 32px; display: block; transition: height 0.3s var(--ease); }
nav.is-stuck .brand img { height: 27px; }

.nav-links { display: flex; align-items: center; gap: 26px; font-size: 14.5px; font-weight: 600; }
.nav-links a { white-space: nowrap; }
.nav-links a:not(.btn) {
  text-decoration: none; color: var(--ink-2); position: relative;
  transition: color 0.2s var(--ease);
}
.nav-links a:not(.btn)::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1.5px;
  background: var(--emerald); border-radius: 2px;
  transform: scaleX(0); transform-origin: left; transition: transform 0.24s var(--ease);
}
.nav-links a:not(.btn):hover { color: var(--ink); }
.nav-links a:not(.btn):hover::after { transform: scaleX(1); }
.nav-links a.active-link:not(.btn) { color: var(--emerald); }
.nav-links a.active-link:not(.btn)::after { transform: scaleX(1); }

.qr-generator-link { display: inline-flex; align-items: center; gap: 7px; }
.qr-generator-link svg { width: 15px; height: 15px; flex: 0 0 auto; }
.nav-tools { display: flex; align-items: center; gap: 12px; }

.theme-toggle {
  width: 38px; height: 38px; flex: 0 0 auto;
  display: inline-flex; align-items: center; justify-content: center;
  border-radius: 0; cursor: pointer;
  background: var(--glass); border: 1px solid var(--line-strong); color: var(--ink-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.2s var(--ease);
}
.theme-toggle:hover { color: var(--emerald); border-color: var(--emerald); transform: rotate(-18deg); }
.theme-toggle svg { width: 17px; height: 17px; }
.theme-toggle .icon-sun { display: none; }
:root[data-theme="light"] .theme-toggle .icon-sun  { display: block; }
:root[data-theme="light"] .theme-toggle .icon-moon { display: none; }

.nav-cta { display: none; }
@media (min-width: 1000px) { .nav-cta { display: inline-flex; } }
@media (min-width: 1000px) and (max-width: 1140px) { .nav-links { gap: 18px; } }

.nav-toggle {
  display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; flex-direction: column; gap: 4.5px;
  border-radius: 0; border: 1px solid var(--line-strong);
  background: var(--glass); cursor: pointer;
}
.nav-toggle span {
  width: 17px; height: 1.8px; background: var(--ink); display: block; border-radius: 2px;
  transition: transform 0.24s var(--ease), opacity 0.16s var(--ease);
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.3px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.3px) rotate(-45deg); }
@media (min-width: 1000px) { .nav-toggle { display: none; } }

@media (max-width: 999px) {
  .nav-links {
    position: fixed; top: var(--nav-h); left: 0; right: 0;
    max-height: calc(100dvh - var(--nav-h)); overflow-y: auto;
    background: var(--bg-2); border-bottom: 1px solid var(--line);
    flex-direction: column; align-items: stretch; gap: 0;
    padding: 10px 24px 26px; font-size: 16px;
    transform: translateY(-10px); opacity: 0; pointer-events: none; visibility: hidden;
    transition: transform 0.24s var(--ease), opacity 0.24s var(--ease), visibility 0s linear 0.24s;
  }
  .nav-links.open {
    transform: translateY(0); opacity: 1; pointer-events: auto; visibility: visible;
    transition: transform 0.24s var(--ease), opacity 0.24s var(--ease), visibility 0s;
  }
  .nav-links a:not(.btn) { padding: 15px 0; border-bottom: 1px solid var(--line); }
  .nav-links a:not(.btn)::after { display: none; }
  .nav-links .nav-cta { display: inline-flex; margin-top: 20px; }
}

/* ----------------------------------------------------------- Sections --- */
section { padding: 104px 0; position: relative; }
@media (max-width: 760px) { section { padding: 72px 0; } }

.section-head { max-width: 680px; margin-bottom: 52px; }
.section-head h2 { font-size: clamp(28px, 4vw, 42px); line-height: 1.12; }
.section-head p { font-size: 17px; color: var(--ink-2); margin-top: 18px; }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }

.band { background: var(--bg-2); border-block: 1px solid var(--line); }

/* -------------------------------------------------------------- Hero ---- */
.hero { padding: 72px 0 0; position: relative; }
@media (max-width: 760px) { .hero { padding-top: 44px; } }

.hero-copy { max-width: 780px; }
.hero h1 { font-size: clamp(38px, 6.4vw, 70px); line-height: 1.03; font-weight: 800; letter-spacing: -0.038em; }
.hero h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--emerald), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.hero p.lede { font-size: clamp(16.5px, 2vw, 19.5px); color: var(--ink-2); max-width: 56ch; margin: 24px 0 34px; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; }
.hero-note {
  margin-top: 26px; font-size: 13px; color: var(--muted);
  font-family: var(--mono); letter-spacing: 0.01em; max-width: 62ch; line-height: 1.7;
}

/* The visual anchor: bleeds below the fold to pull the eye down. */
.shot-wrap { margin-top: 54px; margin-bottom: -110px; }
@media (max-width: 760px) { .shot-wrap { margin-top: 38px; margin-bottom: -60px; } }

.showcase-tabs {
  display: flex; gap: 8px; margin-bottom: 20px;
  overflow-x: auto; scrollbar-width: none; padding-bottom: 4px;
}
.showcase-tabs::-webkit-scrollbar { display: none; }
.showcase-tab {
  font-family: var(--sans); font-size: 13.5px; font-weight: 700; color: var(--muted);
  background: var(--glass); border: 1px solid var(--line); backdrop-filter: blur(10px);
  border-radius: 0; padding: 10px 20px; cursor: pointer; white-space: nowrap;
  transition: color 0.22s var(--ease), border-color 0.22s var(--ease),
              background 0.22s var(--ease), box-shadow 0.22s var(--ease);
}
.showcase-tab:hover { color: var(--ink); border-color: var(--line-strong); }
.showcase-tab.active {
  color: var(--emerald); border-color: var(--emerald);
  background: var(--emerald-dim); box-shadow: 0 0 22px -6px var(--emerald-glow);
}

/* Gradient hairline border via a 1px-padded wrapper. */
.showcase-frame {
  border-radius: var(--radius-lg); padding: 1px; box-shadow: var(--shadow-lg);
  background: linear-gradient(150deg, var(--line-strong), transparent 42%, var(--emerald-glow));
}
.showcase-inner {
  border-radius: 0; overflow: hidden;
  background: var(--surface); position: relative;
}
.showcase-frame img { width: 100%; display: block; }
.showcase-panel { display: none; }
.showcase-panel.active { display: block; animation: fadeShot 0.32s var(--ease); }
@keyframes fadeShot { from { opacity: 0; transform: scale(0.994); } to { opacity: 1; transform: none; } }
.showcase-caption { font-size: 12.5px; color: var(--muted); margin-top: 16px; font-family: var(--mono); }

/* ----------------------------------------------------------- Marquee ---- */
/* Duplicated track translated -50%: seamless because both halves are identical. */
.marquee {
  overflow: hidden; padding: 30px 0;
  border-block: 1px solid var(--line); background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
          mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.marquee-track {
  display: flex; align-items: center; gap: 60px; width: max-content;
  animation: marquee 34s linear infinite;
}
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
.marquee-item {
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  flex: 0 0 auto; opacity: 0.55; transition: opacity 0.24s var(--ease);
}
.marquee-item:hover { opacity: 1; }
.marquee-item img { height: 42px; width: auto; object-fit: contain; }
:root:not([data-theme="light"]) .marquee-item img { filter: brightness(0) invert(1); }
.marquee-item .role {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted);
}

/* -------------------------------------------------------- Bento grid ---- */
/* 6 columns on desktop; each cell declares its own span. Collapses to one
   column below 720px, where a 2-col cell stops being readable. */
.bento { display: grid; grid-template-columns: 1fr; gap: 16px; }
@media (min-width: 720px)  { .bento { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1000px) { .bento { grid-template-columns: repeat(6, 1fr); gap: 18px; } }

.bento-card {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 24px;
  display: flex; flex-direction: column; gap: 10px;
  text-decoration: none; color: inherit;
  transition: border-color 0.26s var(--ease), transform 0.26s var(--ease),
              box-shadow 0.26s var(--ease), background 0.26s var(--ease);
}
/* Cursor-tracked glow. --mx/--my are written by site.js on pointer move. */
.bento-card::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), var(--emerald-dim), transparent 72%);
  opacity: 0; transition: opacity 0.3s var(--ease);
}
.bento-card:hover { border-color: var(--line-strong); transform: translateY(-3px); box-shadow: var(--shadow); }
.bento-card:hover::before { opacity: 1; }
.bento-card > * { position: relative; }

.bento-card.accent { border-color: var(--emerald-glow); }
.bento-card.coral::before {
  background: radial-gradient(280px circle at var(--mx, 50%) var(--my, 0%), var(--coral-dim), transparent 72%);
}
.bento-card.coral:hover { border-color: var(--coral-glow); }

@media (min-width: 1000px) {
  .span-2 { grid-column: span 2; }
  .span-3 { grid-column: span 3; }
  .span-4 { grid-column: span 4; }
  .span-6 { grid-column: span 6; }
}
@media (min-width: 720px) and (max-width: 999px) {
  .span-4, .span-6 { grid-column: span 2; }
}

.bento-card h3 { font-size: 17.5px; font-weight: 700; letter-spacing: -0.015em; }
.bento-card p { font-size: 14.5px; color: var(--ink-2); margin: 0; }
.bento-card .icon {
  width: 42px; height: 42px; border-radius: 0; margin-bottom: 4px;
  display: flex; align-items: center; justify-content: center; font-size: 19px;
  background: var(--emerald-dim); border: 1px solid var(--emerald-glow);
}
.bento-card.coral .icon { background: var(--coral-dim); border-color: var(--coral-glow); }

.bento-card.tall { min-height: 320px; }
.bento-card .bento-media {
  margin: 14px -24px -26px; border-top: 1px solid var(--line);
  background: var(--bg-2); overflow: hidden;
}
.bento-card .bento-media img { width: 100%; display: block; }

.bento-stat { justify-content: center; }
.bento-stat .stat-value {
  font-size: clamp(34px, 5vw, 48px); font-weight: 800; line-height: 1; letter-spacing: -0.04em;
  background: linear-gradient(140deg, var(--emerald), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.bento-stat .stat-label { font-size: 13.5px; color: var(--ink-2); margin-top: 8px; }
.bento-stat .stat-unit {
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em;
  text-transform: uppercase; color: var(--muted); margin-bottom: 10px;
}

/* --- Micro-animations inside bento cells (CSS only, no Lottie runtime) --- */
.anim-flow { display: flex; align-items: center; gap: 9px; margin-top: 16px; flex-wrap: wrap; }
.anim-node {
  font-family: var(--mono); font-size: 11px; padding: 7px 11px; border-radius: 8px;
  background: var(--surface-2); border: 1px solid var(--line); color: var(--ink-2);
  white-space: nowrap;
}
.anim-node.lit {
  color: var(--emerald); border-color: var(--emerald-glow); background: var(--emerald-dim);
  animation: nodePulse 3.2s var(--ease) infinite;
}
.anim-node.lit:nth-of-type(2) { animation-delay: 0.5s; }
.anim-node.lit:nth-of-type(3) { animation-delay: 1s; }
@keyframes nodePulse {
  0%, 62%, 100% { box-shadow: 0 0 0 0 transparent; }
  20%           { box-shadow: 0 0 20px -3px var(--emerald-glow); }
}
.anim-arrow { color: var(--muted); font-family: var(--mono); font-size: 12px; }

/* A stock chart that breathes — the "watching the shelf" idea, animated. */
.anim-bars { display: flex; align-items: flex-end; gap: 7px; height: 78px; margin-top: 18px; }
.anim-bars i {
  flex: 1; border-radius: 4px 4px 0 0; display: block;
  background: linear-gradient(180deg, var(--emerald), var(--emerald-deep));
  transform-origin: bottom; animation: barGrow 2.6s var(--ease) infinite alternate;
}
.anim-bars i:nth-child(1) { height: 42%; animation-delay: 0s; }
.anim-bars i:nth-child(2) { height: 68%; animation-delay: 0.18s; }
.anim-bars i:nth-child(3) { height: 34%; animation-delay: 0.36s; background: var(--coral); }
.anim-bars i:nth-child(4) { height: 86%; animation-delay: 0.54s; }
.anim-bars i:nth-child(5) { height: 55%; animation-delay: 0.72s; }
.anim-bars i:nth-child(6) { height: 74%; animation-delay: 0.9s; }
@keyframes barGrow { from { transform: scaleY(0.45); } to { transform: scaleY(1); } }

/* A ledger that balances itself. */
.anim-ledger { margin-top: 16px; display: grid; gap: 7px; }
.anim-ledger div {
  display: flex; justify-content: space-between; gap: 12px;
  font-family: var(--mono); font-size: 11.5px; color: var(--ink-2);
  padding: 7px 11px; border-radius: 7px; background: var(--surface-2); border: 1px solid var(--line);
}
.anim-ledger div:last-child {
  color: var(--emerald); border-color: var(--emerald-glow); background: var(--emerald-dim);
  animation: nodePulse 3.4s var(--ease) infinite;
}

/* -------------------------------------------------------- Split block --- */
.split { display: grid; grid-template-columns: 1fr; gap: 36px; align-items: center; }
@media (min-width: 900px) { .split { grid-template-columns: 1.05fr 1fr; gap: 56px; } }
.split.flip > :first-child { order: 2; }
@media (max-width: 899px) { .split.flip > :first-child { order: 0; } }
.split-media {
  border-radius: var(--radius); padding: 1px; box-shadow: var(--shadow);
  background: linear-gradient(150deg, var(--line-strong), transparent 50%, var(--emerald-glow));
}
.split-media img { border-radius: 0; width: 100%; }

/* -------------------------------------------------------- Check lists --- */
.check-list { list-style: none; margin: 24px 0 0; padding: 0; display: grid; gap: 13px; }
.check-list li {
  display: grid; grid-template-columns: 19px 1fr; gap: 13px;
  font-size: 15px; color: var(--ink-2); align-items: start;
}
.check-list li::before {
  content: ""; width: 17px; height: 17px; border-radius: 50%; margin-top: 5px;
  border: 1px solid var(--emerald); background: var(--emerald-dim);
  background-image: linear-gradient(var(--emerald), var(--emerald));
  background-size: 7px 1.5px; background-position: center; background-repeat: no-repeat;
}

/* ------------------------------------------------------------ Pricing --- */
.billing-toggle {
  display: inline-flex; padding: 4px; border-radius: 0; margin-bottom: 44px;
  background: var(--surface); border: 1px solid var(--line); position: relative;
}
.billing-toggle button {
  font-family: var(--sans); font-size: 13.5px; font-weight: 700;
  padding: 10px 22px; border-radius: 0; border: none; background: transparent;
  color: var(--muted); cursor: pointer; white-space: nowrap;
  transition: color 0.24s var(--ease); position: relative; z-index: 1;
}
.billing-toggle button.active { color: var(--on-accent); }
.billing-toggle .slider {
  position: absolute; top: 4px; bottom: 4px; left: 4px; z-index: 0;
  border-radius: 0; background: var(--emerald);
  box-shadow: 0 0 20px -4px var(--emerald-glow);
  transition: transform 0.32s var(--ease), width 0.32s var(--ease);
}

.pricing-grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px)  { .pricing-grid { grid-template-columns: repeat(2, 1fr); align-items: start; } }
@media (min-width: 1040px) { .pricing-grid { grid-template-columns: repeat(4, 1fr); } }

.price-card {
  position: relative; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
  display: flex; flex-direction: column;
  transition: border-color 0.26s var(--ease), transform 0.26s var(--ease), box-shadow 0.26s var(--ease);
}
.price-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }

/* The "most chosen" tier: larger, glowing border, badge. */
.price-card.featured {
  border-color: transparent;
  box-shadow: 0 0 0 1.5px var(--emerald), 0 0 44px -12px var(--emerald-glow), var(--shadow);
}
@media (min-width: 1040px) {
  .price-card.featured { transform: scale(1.045); z-index: 2; }
  .price-card.featured:hover { transform: scale(1.045) translateY(-3px); }
}
.price-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--emerald); color: var(--on-accent);
  font-family: var(--mono); font-size: 10px; font-weight: 700; letter-spacing: 0.1em;
  padding: 5px 14px; border-radius: 0; text-transform: uppercase; white-space: nowrap;
  box-shadow: 0 0 22px -4px var(--emerald-glow);
}
.price-tier-name { font-size: 15px; font-weight: 700; }
.price-amount { font-size: 40px; font-weight: 800; margin: 12px 0 2px; line-height: 1; letter-spacing: -0.04em; }
.price-amount .cur { font-size: 16px; font-weight: 700; color: var(--muted); vertical-align: 10px; margin-right: 3px; }
.price-note { font-family: var(--mono); font-size: 11px; color: var(--muted); margin-bottom: 22px; letter-spacing: 0.04em; }
.price-seats {
  font-family: var(--mono); font-size: 11px; color: var(--emerald);
  letter-spacing: 0.06em; text-transform: uppercase;
  padding-bottom: 14px; margin-bottom: 8px; border-bottom: 1px solid var(--line);
}
.price-line {
  display: grid; grid-template-columns: 15px 1fr; gap: 10px;
  font-size: 13.5px; padding: 7px 0; color: var(--ink-2); align-items: start;
}
.price-line .check { color: var(--emerald); font-weight: 700; line-height: 1.5; }
.price-line.dim { color: var(--muted); opacity: 0.55; }
.price-line.dim .check { color: var(--muted); }
.price-cta { margin-top: auto; padding-top: 22px; }
.price-cta .btn { width: 100%; }

.station-note {
  background: var(--surface); border: 1px solid var(--line); border-left: 2px solid var(--emerald);
  border-radius: var(--radius-sm); padding: 18px 22px; margin-top: 30px;
  font-size: 14px; color: var(--ink-2);
}
.station-note strong { color: var(--ink); }
.pricing-note { text-align: center; font-size: 13.5px; color: var(--muted); margin: 42px auto 0; max-width: 58ch; }

/* ------------------------------------------------------------- Tables --- */
.cap-table-wrap {
  margin-top: 26px; overflow-x: auto;
  border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface);
}
table.cap-table { width: 100%; border-collapse: collapse; font-size: 13.5px; min-width: 660px; }
table.cap-table th, table.cap-table td { padding: 13px 16px; text-align: center; border-bottom: 1px solid var(--line); }
table.cap-table th:first-child, table.cap-table td:first-child { text-align: left; }
table.cap-table thead th {
  background: var(--bg-2); color: var(--ink); font-weight: 700;
  font-family: var(--mono); font-size: 11.5px; letter-spacing: 0.08em; text-transform: uppercase;
}
table.cap-table tbody tr { transition: background 0.18s var(--ease); }
table.cap-table tbody tr:hover { background: var(--surface-2); }
table.cap-table tbody tr:last-child td { border-bottom: 0; }
table.cap-table .yes { color: var(--emerald); font-weight: 700; }
table.cap-table .no { color: var(--muted); opacity: 0.45; }
table.cap-table .row-label { font-weight: 600; color: var(--ink); }
.cap-caption { font-size: 12.5px; color: var(--muted); margin-top: 16px; max-width: 72ch; }

/* ------------------------------------------------------- Social proof --- */
.testi-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 720px)  { .testi-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1040px) { .testi-grid { grid-template-columns: repeat(3, 1fr); } }

.testi-card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 26px 24px; display: flex; flex-direction: column; gap: 16px;
  transition: border-color 0.26s var(--ease), transform 0.26s var(--ease);
}
.testi-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.stars { display: flex; gap: 3px; color: var(--coral); }
.stars svg { width: 15px; height: 15px; fill: currentColor; }
.testi-card blockquote { margin: 0; font-size: 15px; color: var(--ink); line-height: 1.62; }
.testi-who { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 4px; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%; flex: 0 0 auto;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 14.5px; color: var(--on-accent);
  background: linear-gradient(140deg, var(--emerald), var(--emerald-deep));
}
.testi-avatar.c2 { background: linear-gradient(140deg, var(--coral), #C2461F); color: #fff; }
.testi-name { font-size: 14px; font-weight: 700; display: flex; align-items: center; gap: 6px; }
.testi-name .verified { color: var(--emerald); display: inline-flex; }
.testi-name .verified svg { width: 14px; height: 14px; fill: currentColor; }
.testi-role { font-size: 12.5px; color: var(--muted); }

/* --------------------------------------------------------- Code block --- */
.code-block {
  background: var(--bg-2); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; margin-top: 22px;
}
.code-head {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--surface);
}
.code-head .file { font-family: var(--mono); font-size: 11.5px; color: var(--muted); letter-spacing: 0.04em; }
.code-copy {
  font-family: var(--mono); font-size: 11px; font-weight: 600;
  padding: 6px 12px; border-radius: 0; cursor: pointer;
  background: transparent; border: 1px solid var(--line-strong); color: var(--ink-2);
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.code-copy:hover, .code-copy.copied { color: var(--emerald); border-color: var(--emerald); }
.code-block pre {
  margin: 0; padding: 18px; overflow-x: auto;
  font-family: var(--mono); font-size: 12.5px; line-height: 1.75; color: var(--ink-2);
}
.code-block .k { color: var(--coral); }
.code-block .s { color: var(--emerald); }
.code-block .c { color: var(--muted); font-style: italic; }
.code-block .n { color: var(--ink); }

/* ---------------------------------------------------------- Accordion --- */
.faq { display: grid; gap: 12px; max-width: 860px; }
.faq details {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm);
  overflow: hidden; transition: border-color 0.24s var(--ease);
}
.faq details[open] { border-color: var(--emerald-glow); }
.faq summary {
  cursor: pointer; padding: 18px 22px; font-weight: 700; font-size: 15.5px;
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+"; font-family: var(--mono); font-size: 20px; color: var(--emerald);
  flex: 0 0 auto; transition: transform 0.24s var(--ease); line-height: 1;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--emerald); }
.faq .faq-body { padding: 0 22px 20px; font-size: 14.5px; color: var(--ink-2); }
.faq .faq-body p { margin: 0; }
.faq .faq-body a { color: var(--emerald); text-underline-offset: 3px; }

/* ---------------------------------------------------------- Page head --- */
.page-head { padding: 72px 0 0; }
@media (max-width: 760px) { .page-head { padding-top: 46px; } }
.page-head h1 { font-size: clamp(33px, 5.4vw, 54px); line-height: 1.05; font-weight: 800; letter-spacing: -0.035em; }
.page-head h1 em {
  font-style: normal;
  background: linear-gradient(100deg, var(--emerald), var(--coral));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.page-head p { font-size: 17.5px; color: var(--ink-2); max-width: 62ch; margin: 20px 0 0; }
.page-head p a { color: var(--emerald); text-decoration-color: var(--emerald-glow); text-underline-offset: 3px; }

/* --------------------------------------------------------- More links --- */
.more-link {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 22px;
  font-weight: 700; font-size: 14px; color: var(--emerald); text-decoration: none;
}
.more-link span[aria-hidden] { transition: transform 0.22s var(--ease); }
.more-link:hover span[aria-hidden] { transform: translateX(4px); }
.bento-card .more-link { margin-top: auto; padding-top: 14px; }
.bento-card:hover .more-link span[aria-hidden] { transform: translateX(4px); }

/* --------------------------------------------------- Hardware / steps --- */
.hardware-grid { display: grid; grid-template-columns: 1fr; gap: 18px; }
@media (min-width: 700px) { .hardware-grid { grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); } }
.hardware-card {
  margin: 0; background: var(--surface); border: 1px solid var(--line);
  border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column;
  transition: border-color 0.26s var(--ease), transform 0.26s var(--ease);
}
.hardware-card:hover { border-color: var(--line-strong); transform: translateY(-3px); }
.hardware-shot { background: var(--bg-2); padding: 22px; border-bottom: 1px solid var(--line); }
/* The product shots ship on white. On the dark theme a plain <img> would sit in a
   white box, so they are knocked back with a blend; light mode needs neither. */
.hardware-shot img { width: 100%; height: 220px; object-fit: contain; mix-blend-mode: multiply; }
:root:not([data-theme="light"]) .hardware-shot { background: #F4F4F0; }
.hardware-card figcaption { padding: 22px 24px 26px; }
.hardware-card h3 { font-size: 16.5px; font-weight: 700; margin: 0 0 7px; }
.hardware-card p { font-size: 14px; color: var(--ink-2); margin: 0; }
.hardware-note { margin-top: 28px; font-size: 14px; color: var(--muted); border-top: 1px solid var(--line); padding-top: 22px; }

.steps-grid { counter-reset: step; display: grid; grid-template-columns: 1fr; gap: 30px; }
@media (min-width: 780px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step { counter-increment: step; position: relative; padding-left: 56px; }
.step::before {
  content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: -2px;
  font-family: var(--mono); font-weight: 700; font-size: 13px;
  width: 40px; height: 40px; border-radius: 0;
  background: var(--emerald-dim); border: 1px solid var(--emerald-glow); color: var(--emerald);
  display: flex; align-items: center; justify-content: center;
}
.step h3 { font-size: 16.5px; font-weight: 700; }
.step p { font-size: 14.5px; color: var(--ink-2); margin: 7px 0 0; }

/* The annotated rig shot (hardware page) */
.rig { margin: 0; display: grid; grid-template-columns: 1fr; gap: 32px; align-items: center; }
@media (min-width: 900px) { .rig { grid-template-columns: 1.2fr 1fr; gap: 48px; } }
.rig-shot { background: #F4F4F0; border: 1px solid var(--line); border-radius: var(--radius); padding: 16px; }
:root[data-theme="light"] .rig-shot { background: var(--surface); }
.rig-canvas { position: relative; display: block; line-height: 0; }
.rig-shot img { width: 100%; height: auto; mix-blend-mode: multiply; }
.rig-pin {
  position: absolute; left: var(--x); top: var(--y); transform: translate(-50%, -50%);
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--coral); color: #fff; border: 2px solid #fff;
  font-family: var(--mono); font-size: 12px; font-weight: 700; line-height: 1;
  box-shadow: 0 2px 10px rgba(0, 0, 0, 0.35);
}
@media (max-width: 560px) { .rig-pin { width: 22px; height: 22px; font-size: 10px; border-width: 1.5px; } }
.rig-legend { margin: 0; padding: 0; list-style: none; counter-reset: rig; }
.rig-legend li {
  display: grid; grid-template-columns: 28px 1fr; gap: 15px;
  padding: 15px 0; border-bottom: 1px solid var(--line);
}
.rig-legend li:last-child { border-bottom: 0; }
.rig-legend li::before {
  counter-increment: rig; content: counter(rig);
  width: 28px; height: 28px; border-radius: 50%;
  background: var(--coral-dim); border: 1px solid var(--coral); color: var(--coral);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--mono); font-size: 12px; font-weight: 700;
}
.rig-legend h3 { font-size: 15.5px; font-weight: 700; margin: 0 0 3px; }
.rig-legend p { font-size: 14px; color: var(--ink-2); margin: 0; }

/* ----------------------------------------------------------- CTA/foot --- */
.cta { text-align: center; position: relative; overflow: hidden; }
.cta::before {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(52% 70% at 50% 100%, var(--emerald-glow), transparent 70%);
  opacity: 0.8;
}
.cta .wrap { position: relative; }
.cta h2 { font-size: clamp(30px, 4.6vw, 48px); font-weight: 800; letter-spacing: -0.035em; line-height: 1.08; }
.cta p { color: var(--ink-2); font-size: 17px; margin: 20px auto 34px; max-width: 50ch; }
.cta-btns { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

footer { background: var(--bg-2); border-top: 1px solid var(--line); color: var(--muted); padding: 40px 0; }
footer .wrap {
  display: flex; flex-direction: column; gap: 14px; align-items: center;
  text-align: center; font-size: 13px; flex-wrap: wrap;
}
@media (min-width: 760px) { footer .wrap { flex-direction: row; justify-content: space-between; text-align: left; } }
@media (max-width: 759px) { footer .wrap > div:last-child { width: 100%; } }
footer .brand-line span { color: var(--ink); font-weight: 700; }
footer a { color: var(--muted); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: 3px; }
footer a:hover { color: var(--emerald); text-decoration-color: currentColor; }

/* ------------------------------------------------------------- Motion --- */
/* Scroll-driven reveal. .reveal is only activated once site.js adds .js-reveal
   to <html>, so with JS off every element renders in its final state instead of
   staying invisible forever. */
.js-reveal .reveal { opacity: 0; transform: translateY(22px); }
.js-reveal .reveal.in {
  opacity: 1; transform: none;
  transition: opacity 0.6s var(--ease), transform 0.6s var(--ease);
}
.js-reveal .reveal.d1.in { transition-delay: 0.06s; }
.js-reveal .reveal.d2.in { transition-delay: 0.12s; }
.js-reveal .reveal.d3.in { transition-delay: 0.18s; }
.js-reveal .reveal.d4.in { transition-delay: 0.24s; }

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

/* -------------------------------------- Appearance demo (features page) --- */
/* Shows the POS in its own light/dark themes. Separate from the site theme
   toggle in the navbar — this one only swaps the screenshot. */
.theme-demo { margin-top: 16px; }
.theme-demo img {
  border-radius: var(--radius-sm); border: 1px solid var(--line); display: none;
}
.theme-demo img.active { display: block; }
.theme-switch {
  display: inline-flex; border: 1px solid var(--line); border-radius: 0;
  padding: 3px; margin-top: 14px; background: var(--bg-2);
}
.theme-switch button {
  font-family: var(--mono); font-size: 11px; font-weight: 600; letter-spacing: 0.06em;
  border: none; background: transparent; padding: 7px 15px; border-radius: 0;
  cursor: pointer; color: var(--muted); transition: color 0.2s var(--ease), background 0.2s var(--ease);
}
.theme-switch button:hover { color: var(--ink); }
.theme-switch button.active { background: var(--emerald); color: var(--on-accent); }

/* ------------------------------------------------ Image scaling guard --- */
/* width/height attributes on an <img> are CSS presentational hints, so a stray
   height="900" will stretch the picture once CSS sets width:100%. Every image
   that fills its container gets height:auto so the file's own aspect ratio
   wins, and the attributes are left in place purely to reserve layout space. */
.showcase-frame img,
.split-media img,
.bento-media img,
.theme-demo img,
.rig-shot img {
  width: 100%;
  height: auto;
}

/* --------------------------------------------------- Footer social link --- */
.footer-social {
  display: inline-flex; align-items: center; gap: 7px;
  text-decoration: none; color: var(--muted);
  transition: color 0.2s var(--ease);
}
.footer-social:hover { color: var(--emerald); }
.footer-social svg { width: 15px; height: 15px; fill: currentColor; flex: 0 0 auto; }


/* ============================================================================
   CARD SHELL — "machined panel"
   Cards carry no border. Each is a slightly lighter slab with a 1px highlight
   along its top edge, the way a machined panel catches light, plus a soft drop
   shadow that seats it on the page.

   The weakness of a borderless card is that neighbours can read as one block
   when the grid tightens. Three things hold them apart:
     1. --panel-bg is a real step away from the page beneath it, in BOTH themes.
        The dark theme can use --surface-2, but in light mode --surface-2
        (#F7F8F4) is almost the page colour (#FBFBF8), so cards there are white.
     2. The top highlight gives every card a visible top edge, which is the edge
        that disappears first when two cards stack vertically.
     3. The drop shadow separates a card from the one below it.

   Data containers (the capability tables, the code block) keep their 1px border:
   a table with no outer frame reads as unmoored rather than calm.
   ========================================================================= */

:root {
  --panel-bg:     var(--surface-2);
  --panel-bg-alt: var(--surface);
  --panel-hi:     rgba(255, 255, 255, 0.075);
  --panel-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 10px 24px -18px rgba(0, 0, 0, 0.9);
  --panel-shadow-hover: 0 1px 2px rgba(0, 0, 0, 0.5), 0 18px 38px -20px rgba(0, 0, 0, 0.95);
}
:root[data-theme="light"] {
  --panel-bg:     #FFFFFF;
  --panel-bg-alt: #FFFFFF;
  --panel-hi:     rgba(255, 255, 255, 0.9);
  --panel-shadow: 0 1px 2px rgba(16, 32, 26, 0.07), 0 10px 22px -16px rgba(16, 32, 26, 0.22);
  --panel-shadow-hover: 0 1px 3px rgba(16, 32, 26, 0.10), 0 18px 34px -18px rgba(16, 32, 26, 0.28);
}

.bento-card,
.price-card,
.hardware-card,
.testi-card,
.faq details {
  border: 0;
  background: var(--panel-bg);
  box-shadow: inset 0 1px 0 var(--panel-hi), var(--panel-shadow);
}

.bento-card:hover,
.price-card:hover,
.hardware-card:hover,
.testi-card:hover {
  background: var(--panel-bg-alt);
  box-shadow: inset 0 1px 0 var(--panel-hi), var(--panel-shadow-hover);
}

/* The accent now lives in the icon chip and the heading rather than an edge,
   since there is no border left to tint. */
.bento-card.accent .icon { background: var(--emerald-dim); border-color: var(--emerald); }
.bento-card.coral  .icon { background: var(--coral-dim);   border-color: var(--coral); }

/* The featured tier can no longer be marked with a border, so it keeps its ring
   as a drawn outline in the shadow stack and sits on the lighter surface. */
.price-card.featured {
  background: var(--panel-bg-alt);
  box-shadow: 0 0 0 1.5px var(--emerald), 0 0 44px -12px var(--emerald-glow), var(--panel-shadow);
}
.price-card.featured:hover {
  box-shadow: 0 0 0 1.5px var(--emerald), 0 0 52px -12px var(--emerald-glow), var(--panel-shadow-hover);
}
.faq details[open] { box-shadow: inset 0 1px 0 var(--panel-hi), 0 0 0 1px var(--emerald-glow), var(--panel-shadow); }

/* Internal dividers that used to rely on the card's own border colour. */
.hardware-shot { border-bottom: 1px solid var(--line); }
.bento-card .bento-media { border-top: 1px solid var(--line); }

/* A borderless slab needs a little more air around it than a bordered one, or
   the shadows of neighbouring cards start to touch. */
@media (min-width: 1000px) { .bento { gap: 22px; } }
