/* ============================================================
   POSWARE — design system
   Display: Chakra Petch · Body: Anuphan · Data: IBM Plex Mono
   ============================================================ */

:root {
  --ink: #1b1b33;
  --navy: #30305b;
  --navy-deep: #24244a;
  --navy-ink: #191936;
  --blue: #1467d8;
  --blue-dark: #0f55b5;
  --sky: #2196f3;
  --green: #1fa65a;
  --green-dark: #178a4a;
  --paper: #f5f7fb;
  --bg: #ffffff;
  --card: #ffffff;
  --line: #e4e9f2;
  --muted: #5a6478;
  --receipt: #fffdf6;
  --amber: #f5b301;

  --font-display: "Chakra Petch", "Anuphan", sans-serif;
  --font-body: "Anuphan", "Noto Sans Thai", sans-serif;
  --font-mono: "IBM Plex Mono", "Chakra Petch", monospace;

  --radius: 16px;
  --radius-sm: 10px;
  --shadow-sm: 0 1px 2px rgba(27, 27, 51, .06), 0 2px 8px rgba(27, 27, 51, .05);
  --shadow-md: 0 4px 14px rgba(27, 27, 51, .08), 0 12px 32px rgba(27, 27, 51, .07);
  --shadow-lg: 0 8px 24px rgba(27, 27, 51, .10), 0 24px 64px rgba(27, 27, 51, .12);
  --container: 1160px;
}

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

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

body {
  margin: 0;
  font-family: var(--font-body);
  font-size: 1.0625rem;
  line-height: 1.75;
  color: var(--ink);
  background: var(--bg);
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; }

h1, h2, h3, h4 {
  font-family: var(--font-display);
  line-height: 1.3;
  margin: 0 0 .6em;
  color: var(--ink);
  text-wrap: balance;
}

h1 { font-size: clamp(2rem, 4.6vw, 3.25rem); font-weight: 700; letter-spacing: -.01em; }
h2 { font-size: clamp(1.55rem, 3vw, 2.25rem); font-weight: 700; }
h3 { font-size: 1.25rem; font-weight: 600; }
h4 { font-size: 1.05rem; font-weight: 600; }

p { margin: 0 0 1em; }
a { color: var(--blue); text-decoration: none; }
a:hover { text-decoration: underline; }
ul { padding-left: 1.3em; }

:focus-visible {
  outline: 3px solid var(--sky);
  outline-offset: 2px;
  border-radius: 4px;
}

.skip-link {
  position: absolute; left: -9999px; top: 0;
  background: var(--navy); color: #fff; padding: .6rem 1rem; z-index: 200;
  border-radius: 0 0 8px 0;
}
.skip-link:focus { left: 0; }

.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;
}

.container {
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: clamp(1rem, 4vw, 2rem);
}

/* ---------- barcode motif ---------- */
.barcode {
  display: inline-block;
  height: 1.6em;
  width: 5.5em;
  background: repeating-linear-gradient(90deg,
    currentColor 0 2px, transparent 2px 4px,
    currentColor 4px 5px, transparent 5px 9px,
    currentColor 9px 12px, transparent 12px 14px,
    currentColor 14px 15px, transparent 15px 18px);
  opacity: .9;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  font-family: var(--font-mono);
  font-size: .8rem;
  font-weight: 600;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: .9rem;
}
.eyebrow::before {
  content: "";
  height: 1em;
  width: 2.2em;
  background: repeating-linear-gradient(90deg,
    currentColor 0 2px, transparent 2px 4px,
    currentColor 4px 7px, transparent 7px 9px,
    currentColor 9px 10px, transparent 10px 13px);
}
.on-dark .eyebrow { color: #9ec5ff; }

/* ---------- top bar ---------- */
.topbar {
  background: var(--navy-ink);
  color: #cdd5ec;
  font-size: .85rem;
  line-height: 1;
}
.topbar .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  min-height: 38px;
}
.topbar a { color: #fff; display: inline-flex; align-items: center; gap: .4rem; }
.topbar a:hover { color: #9ec5ff; text-decoration: none; }
.topbar-group { display: flex; align-items: center; gap: 1.25rem; }
.topbar .mono { font-family: var(--font-mono); font-size: .85rem; }
@media (max-width: 640px) {
  .topbar-group:last-child { display: none; }
  .topbar .container { justify-content: center; }
}

/* ---------- header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s, box-shadow .25s;
}
.site-header.scrolled { border-color: var(--line); box-shadow: var(--shadow-sm); }
.site-header .container {
  display: flex;
  align-items: center;
  gap: 1.5rem;
  min-height: 72px;
}
.brand { display: inline-flex; align-items: center; flex-shrink: 0; }
.brand img { height: 40px; width: auto; display: block; }

.site-nav { margin-left: auto; }
.site-nav ul {
  display: flex;
  align-items: center;
  gap: .25rem;
  list-style: none;
  margin: 0;
  padding: 0;
}
.site-nav a {
  display: block;
  padding: .55rem .85rem;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink);
  border-radius: 10px;
}
.site-nav a:hover { background: var(--paper); text-decoration: none; }
.site-nav a[aria-current] { color: var(--blue); }
.site-nav a[aria-current]::after {
  content: "";
  display: block;
  height: 3px;
  margin-top: 2px;
  background: repeating-linear-gradient(90deg,
    var(--blue) 0 3px, transparent 3px 5px,
    var(--blue) 5px 6px, transparent 6px 9px);
}

/* dropdown */
.has-sub { position: relative; }
.has-sub > button {
  display: flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .85rem;
  font: inherit;
  font-family: var(--font-display);
  font-weight: 500;
  font-size: .98rem;
  color: var(--ink);
  background: none;
  border: 0;
  border-radius: 10px;
  cursor: pointer;
}
.has-sub > button:hover { background: var(--paper); }
.has-sub > button svg { transition: transform .2s; }
.has-sub.open > button svg { transform: rotate(180deg); }
.sub-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  min-width: 220px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  padding: .4rem;
  display: none;
  flex-direction: column;
  gap: 2px;
}
.has-sub.open .sub-menu { display: flex; }
.sub-menu a { padding: .5rem .75rem; border-radius: 8px; font-size: .95rem; }
.sub-menu .ext { color: var(--muted); font-size: .78em; margin-left: .3em; }
.has-sub.current > button { color: var(--blue); }
.sub-menu a[aria-current="page"] { color: var(--blue); background: #eef4ff; }

.header-cta { flex-shrink: 0; }

.nav-toggle {
  display: none;
  margin-left: auto;
  background: none;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: .5rem .6rem;
  cursor: pointer;
  color: var(--ink);
}

@media (max-width: 920px) {
  /* backdrop-filter would trap the fixed-position nav panel inside the header */
  .site-header {
    background: #fff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .site-nav {
    position: fixed;
    inset: 0;
    top: 0;
    z-index: 150;
    background: #fff;
    padding: 5.5rem 1.5rem 2rem;
    transform: translateX(100%);
    visibility: hidden; /* keep off-screen links out of the tab order */
    transition: transform .3s ease, visibility .3s;
    overflow-y: auto;
    margin-left: 0;
  }
  .site-nav.open { transform: translateX(0); visibility: visible; box-shadow: var(--shadow-lg); }
  .site-nav ul { flex-direction: column; align-items: stretch; gap: .3rem; }
  .site-nav a, .has-sub > button { font-size: 1.15rem; width: 100%; padding: .8rem 1rem; }
  .sub-menu {
    position: static;
    border: 0;
    box-shadow: none;
    padding-left: 1.2rem;
    background: var(--paper);
    border-radius: 10px;
  }
  .nav-toggle { display: inline-flex; z-index: 160; position: relative; }
  .site-header:has(.site-nav.open) .nav-toggle { visibility: hidden; }
  .nav-close {
    position: absolute;
    top: 1.1rem; right: 1.1rem;
    background: var(--paper);
    border: 0; border-radius: 10px;
    padding: .6rem .7rem;
    cursor: pointer;
  }
  .header-cta { display: none; }
}
@media (min-width: 921px) { .nav-close { display: none; } }

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .55rem;
  padding: .78rem 1.5rem;
  border-radius: 12px;
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 1rem;
  line-height: 1.3;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .15s, box-shadow .15s, background .15s;
}
.btn:hover { text-decoration: none; transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 6px 16px rgba(20, 103, 216, .25); }
.btn-primary:hover { background: var(--blue-dark); color: #fff; }
.btn-ghost { border-color: var(--line); color: var(--ink); background: #fff; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-line { background: #0f7a3d; color: #fff; box-shadow: 0 6px 16px rgba(15, 122, 61, .3); }
.btn-line:hover { background: #0c6633; color: #fff; }
.btn-white { background: #fff; color: var(--navy); }
.btn-white:hover { background: #eef3ff; color: var(--navy); }
.btn-outline-light { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-light:hover { border-color: #fff; color: #fff; background: rgba(255,255,255,.08); }
.btn-sm { padding: .5rem 1rem; font-size: .92rem; border-radius: 10px; }
.btn-lg { padding: .95rem 2rem; font-size: 1.1rem; }

/* ---------- sections ---------- */
.section { padding-block: clamp(3.5rem, 8vw, 6rem); }
.section-tight { padding-block: clamp(2.5rem, 5vw, 3.5rem); }
.section-alt { background: var(--paper); }
.section-dark {
  background:
    radial-gradient(1200px 500px at 85% -10%, rgba(33, 150, 243, .18), transparent 60%),
    var(--navy-deep);
  color: #d9e1f5;
}
.section-dark h2, .section-dark h3 { color: #fff; }
.section-head { max-width: 720px; margin-bottom: clamp(2rem, 4vw, 3rem); }
.section-head.center { margin-inline: auto; text-align: center; }
.section-head.center .eyebrow { justify-content: center; }
.section-head p { color: var(--muted); font-size: 1.1rem; }
.section-dark .section-head p { color: #b9c4e0; }

/* ---------- hero ---------- */
.hero {
  position: relative;
  background:
    radial-gradient(900px 480px at 8% -12%, rgba(33, 150, 243, .10), transparent 60%),
    radial-gradient(700px 420px at 100% 8%, rgba(48, 48, 91, .08), transparent 55%),
    linear-gradient(180deg, #fbfcff 0%, var(--bg) 100%);
  overflow: hidden;
}
.hero .container {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr);
  gap: clamp(2rem, 5vw, 4rem);
  align-items: center;
  padding-block: clamp(3.5rem, 8vw, 6.5rem);
}
.hero h1 { margin-bottom: .5em; }
.hero-sub { font-size: 1.15rem; color: var(--muted); max-width: 34em; }
.hero-actions { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: 1.8rem; }
.hero-note {
  margin-top: 1.1rem;
  font-size: .92rem;
  color: var(--muted);
  display: flex;
  align-items: center;
  gap: .5rem;
}
.hero-note .mono { font-family: var(--font-mono); color: var(--ink); }

@media (max-width: 860px) {
  .hero .container { grid-template-columns: 1fr; }
  .hero-visual { order: -1; max-width: 420px; margin-inline: auto; }
}

/* ---------- signature: thermal receipt ---------- */
.receipt-wrap { position: relative; display: grid; justify-items: center; }
.receipt {
  position: relative;
  width: min(340px, 88vw);
  background: var(--receipt);
  color: var(--ink);
  font-family: var(--font-mono);
  box-shadow: var(--shadow-lg);
  transform: rotate(-1.6deg);
  padding: 1.4rem 1.5rem 1.1rem;
  border-radius: 3px 3px 0 0;
}
.receipt::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: -6px;
  height: 6px;
  background: linear-gradient(90deg, #d9d4c4 0 42%, transparent 42% 58%, #d9d4c4 58%);
  border-radius: 3px 3px 0 0;
  opacity: .6;
}
.receipt-tear {
  width: min(340px, 88vw);
  height: 12px;
  transform: rotate(-1.6deg);
  background:
    linear-gradient(-45deg, transparent 8px, var(--receipt) 0) 0 0 / 16px 100%,
    linear-gradient(45deg, transparent 8px, var(--receipt) 0) 8px 0 / 16px 100%;
  background-repeat: repeat-x;
  filter: drop-shadow(0 10px 12px rgba(27,27,51,.12));
  margin-top: -1px;
}
.receipt-head {
  text-align: center;
  border-bottom: 1.5px dashed #c9c2ad;
  padding-bottom: .8rem;
  margin-bottom: .9rem;
}
.receipt-head .shop { font-weight: 600; font-size: 1.02rem; letter-spacing: .12em; }
.receipt-head .meta { font-size: .72rem; color: #7d7660; letter-spacing: .06em; margin-top: .2rem; }
.receipt-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  font-size: .85rem;
  padding-block: .34rem;
}
.receipt-row .label { color: #5c563f; }
.receipt-row .value { font-weight: 600; font-size: 1.05rem; white-space: nowrap; }
.receipt-total {
  border-top: 1.5px dashed #c9c2ad;
  margin-top: .7rem;
  padding-top: .75rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-weight: 600;
}
.receipt-total .value { font-size: 1.15rem; color: var(--green-dark); }
.receipt-foot { text-align: center; margin-top: 1rem; }
.receipt-foot .barcode { width: 9em; height: 2.1em; color: var(--ink); }
.receipt-foot .msg { font-size: .7rem; letter-spacing: .18em; color: #7d7660; margin-top: .35rem; }

@keyframes printIn {
  0% { clip-path: inset(0 0 100% 0); transform: rotate(-1.6deg) translateY(-26px); }
  100% { clip-path: inset(0 0 -20% 0); transform: rotate(-1.6deg) translateY(0); }
}
.receipt.print { animation: printIn 1s cubic-bezier(.25, .9, .3, 1) .15s backwards; }

/* ---------- trust / marquee ---------- */
.trust { border-block: 1px solid var(--line); background: #fff; }
.trust-inner { padding-block: 1.6rem; }
.trust-label {
  text-align: center;
  font-family: var(--font-mono);
  font-size: .78rem;
  letter-spacing: .16em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 1.1rem;
}
.marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent);
}
.marquee-track {
  display: flex;
  align-items: center;
  gap: clamp(2rem, 5vw, 4rem);
  width: max-content;
  animation: marquee 42s linear infinite;
}
.marquee:hover .marquee-track,
.marquee.paused .marquee-track { animation-play-state: paused; }
.marquee-toggle {
  display: block;
  margin: .9rem auto 0;
  background: none;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: .3rem .9rem;
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .08em;
  color: var(--muted);
  cursor: pointer;
}
.marquee-toggle:hover { border-color: var(--blue); color: var(--blue); }
.marquee img {
  height: 52px;
  width: auto;
  filter: grayscale(1);
  opacity: .65;
  transition: filter .25s, opacity .25s;
}
.marquee img:hover { filter: none; opacity: 1; }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- feature cards ---------- */
.grid { display: grid; gap: 1.4rem; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 980px) { .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 620px) { .grid-2, .grid-3, .grid-4 { grid-template-columns: 1fr; } }

.card {
  background: var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 1.7rem 1.6rem;
  transition: transform .2s, box-shadow .2s, border-color .2s;
}
.card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: #d3ddf0; }
.card h3 { margin-bottom: .45em; }
.card p { color: var(--muted); font-size: .98rem; margin: 0; }
.card .icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 52px; height: 52px;
  border-radius: 14px;
  background: linear-gradient(135deg, #e8f1ff, #f2f7ff);
  color: var(--blue);
  margin-bottom: 1.1rem;
}
.card .icon svg { width: 26px; height: 26px; }

/* ---------- showcase (screenshots) ---------- */
.showcase {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(2rem, 4vw, 3.5rem);
  align-items: center;
}
@media (max-width: 860px) { .showcase { grid-template-columns: 1fr; } }
.screen-frame {
  border-radius: 14px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: var(--shadow-md);
  overflow: hidden;
}
.screen-frame .bar {
  display: flex;
  gap: 6px;
  padding: 10px 14px;
  border-bottom: 1px solid var(--line);
  background: var(--paper);
}
.screen-frame .bar i {
  width: 10px; height: 10px;
  border-radius: 50%;
  background: #d5dcea;
}
.screen-frame .bar i:first-child { background: #f0a7a7; }
.screen-frame .bar i:nth-child(2) { background: #f2d491; }
.screen-frame .bar i:nth-child(3) { background: #a9dcb6; }
.screen-frame img { display: block; width: 100%; }
.check-list { list-style: none; padding: 0; margin: 1.2rem 0 0; }
.check-list li {
  position: relative;
  padding-left: 2rem;
  margin-bottom: .7rem;
  color: var(--ink);
}
.check-list li::before {
  content: "";
  position: absolute;
  left: 0; top: .32em;
  width: 1.15em; height: 1.15em;
  border-radius: 50%;
  background: var(--green);
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.5-4.3-4.3 1.7-1.7 2.6 2.6 5.6-5.6 1.7 1.7-7.3 7.3Z"/></svg>') center/contain no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="M12 2a10 10 0 1 0 0 20 10 10 0 0 0 0-20Zm-1.2 14.5-4.3-4.3 1.7-1.7 2.6 2.6 5.6-5.6 1.7 1.7-7.3 7.3Z"/></svg>') center/contain no-repeat;
}
.on-dark .check-list li { color: #d9e1f5; }
.check-list.two-col { columns: 2; column-gap: 2.5rem; }
@media (max-width: 720px) { .check-list.two-col { columns: 1; } }
.check-list.two-col li { break-inside: avoid; }

/* ---------- stats band ---------- */
.stats-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1.5rem;
  text-align: center;
}
@media (max-width: 720px) { .stats-band { grid-template-columns: repeat(2, 1fr); } }
.stat .num {
  font-family: var(--font-mono);
  font-size: clamp(1.9rem, 4vw, 2.6rem);
  font-weight: 600;
  color: #fff;
  line-height: 1.1;
}
.stat .num .unit { font-size: .55em; color: #9ec5ff; }
.stat .cap { color: #b9c4e0; font-size: .95rem; margin-top: .3rem; }

/* ---------- pricing ---------- */
.tier-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; align-items: stretch; }
@media (max-width: 940px) { .tier-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; } }
.tier {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  transition: transform .2s, box-shadow .2s;
}
.tier:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.tier.featured { border: 2px solid var(--blue); box-shadow: var(--shadow-md); }
.tier .flag {
  position: absolute;
  top: -14px; left: 50%;
  transform: translateX(-50%);
  background: var(--blue);
  color: #fff;
  font-family: var(--font-display);
  font-size: .8rem;
  font-weight: 600;
  padding: .25rem .9rem;
  border-radius: 999px;
  white-space: nowrap;
}
.tier .tier-name { font-family: var(--font-display); font-weight: 700; font-size: 1.3rem; }
.tier .tier-for { color: var(--muted); font-size: .95rem; min-height: 3.2em; margin-top: .2rem; }
.tier .tier-price { font-family: var(--font-mono); font-size: 1.05rem; margin-block: 1rem .4rem; color: var(--navy); font-weight: 600; }
.tier ul { list-style: none; padding: 0; margin: 1rem 0 1.6rem; flex: 1; }
.tier li { padding-left: 1.7rem; position: relative; margin-bottom: .55rem; font-size: .97rem; }
.tier li::before {
  content: "✓";
  position: absolute; left: 0;
  color: var(--green);
  font-weight: 700;
}
.tier li.no { color: var(--muted); }
.tier li.no::before { content: "—"; color: #8b94a8; }

/* comparison table */
.table-scroll {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}
table.compare {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
  font-size: .95rem;
}
.compare th, .compare td { padding: .65rem 1rem; text-align: center; }
.compare thead th {
  font-family: var(--font-display);
  font-size: 1.02rem;
  background: var(--navy);
  color: #fff;
  position: sticky;
  top: 0;
}
.compare thead th:first-child { text-align: left; border-radius: 0; }
.compare td:first-child, .compare th:first-child { text-align: left; }
.compare tbody tr { border-top: 1px solid var(--line); }
.compare tbody tr:nth-child(even):not(.group) { background: #fafbfe; }
.compare tr.group th {
  background: var(--paper);
  font-family: var(--font-display);
  font-weight: 600;
  color: var(--navy);
  padding-block: .55rem;
  text-align: left;
}
.compare .yes, .compare .no {
  display: inline-block;
  width: 1.25em; height: 1.25em;
  border-radius: 50%;
  vertical-align: middle;
}
.compare .yes { background: var(--green); position: relative; }
.compare .yes::after {
  content: "";
  position: absolute; inset: 0;
  -webkit-mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="m9.6 16.6-4.2-4.2 1.4-1.4 2.8 2.8 7.6-7.6 1.4 1.4-9 9Z"/></svg>') center/70% no-repeat;
  mask: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path fill="black" d="m9.6 16.6-4.2-4.2 1.4-1.4 2.8 2.8 7.6-7.6 1.4 1.4-9 9Z"/></svg>') center/70% no-repeat;
  background: #fff;
}
.compare .no { background: #e8ebf2; position: relative; }
.compare .no::after {
  content: "";
  position: absolute;
  left: 25%; right: 25%; top: calc(50% - 1px);
  height: 2px;
  background: #6b7488;
  border-radius: 2px;
}
.edition-dot { display: inline-block; width: .7em; height: .7em; border-radius: 50%; margin-right: .45em; }

/* ---------- devices ---------- */
.device-card { text-align: center; padding: 1.6rem 1.2rem; }
.device-card .ph {
  height: 110px;
  display: grid;
  place-items: center;
  margin-bottom: 1rem;
}
.device-card .ph img { max-height: 100px; width: auto; }
.device-card h3 { font-size: 1.08rem; margin-bottom: .2em; }
.device-card p { font-size: .92rem; }

/* ---------- download ---------- */
.dl-card {
  display: flex;
  align-items: center;
  gap: 1.2rem;
  padding: 1.4rem 1.5rem;
}
.dl-card .ph {
  flex-shrink: 0;
  width: 64px; height: 64px;
  display: grid;
  place-items: center;
  background: var(--paper);
  border-radius: 14px;
}
.dl-card .ph img { max-width: 46px; max-height: 46px; }
.dl-card .dl-info { flex: 1; min-width: 0; }
.dl-card h3 { font-size: 1.05rem; margin: 0 0 .15em; }
.dl-card .meta { font-family: var(--font-mono); font-size: .8rem; color: var(--muted); }

/* ---------- timeline (story) ---------- */
.timeline { position: relative; max-width: 760px; margin-inline: auto; padding-left: 2.2rem; }
.timeline::before {
  content: "";
  position: absolute;
  left: .55rem; top: .4rem; bottom: .4rem;
  width: 2px;
  background: repeating-linear-gradient(180deg, var(--line) 0 8px, transparent 8px 14px);
}
.tl-item { position: relative; padding-bottom: 2.4rem; }
.tl-item:last-child { padding-bottom: 0; }
.tl-item::before {
  content: "";
  position: absolute;
  left: -2.2rem; top: .45rem;
  width: 1.15rem; height: 1.15rem;
  border-radius: 50%;
  background: #fff;
  border: 3px solid var(--blue);
  margin-left: .05rem;
}
.tl-item .year {
  font-family: var(--font-mono);
  font-weight: 600;
  color: var(--blue);
  letter-spacing: .08em;
  font-size: .95rem;
}
.tl-item h2 { font-size: 1.25rem; font-weight: 600; margin: .2em 0 .3em; }
.tl-item p { color: var(--muted); margin: 0; }

.pull-quote {
  border-left: 4px solid var(--sky);
  background: var(--paper);
  border-radius: 0 var(--radius) var(--radius) 0;
  padding: 1.4rem 1.8rem;
  font-family: var(--font-display);
  font-size: 1.2rem;
  color: var(--navy);
  margin-block: 2.5rem;
}

/* ---------- logo grid (customer) ---------- */
.logo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
  gap: 1rem;
}
.logo-grid .cell {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  display: grid;
  place-items: center;
  padding: 1.1rem;
  min-height: 110px;
  transition: box-shadow .2s, transform .2s;
}
.logo-grid .cell:hover { box-shadow: var(--shadow-sm); transform: translateY(-2px); }
.logo-grid img {
  max-height: 64px;
  width: auto;
  max-width: 100%;
  filter: grayscale(1);
  opacity: .75;
  transition: filter .25s, opacity .25s;
}
.logo-grid .cell:hover img { filter: none; opacity: 1; }

/* ---------- contact ---------- */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 2rem; align-items: start; }
@media (max-width: 860px) { .contact-grid { grid-template-columns: 1fr; } }
.contact-card .row {
  display: flex;
  gap: 1rem;
  padding-block: .85rem;
  border-bottom: 1px dashed var(--line);
  align-items: flex-start;
}
.contact-card .row:last-child { border-bottom: 0; }
.contact-card .row .ic {
  flex-shrink: 0;
  width: 42px; height: 42px;
  border-radius: 12px;
  background: #e8f1ff;
  color: var(--blue);
  display: grid;
  place-items: center;
}
.contact-card .row .ic svg { width: 22px; height: 22px; }
.contact-card .row .row-t {
  font-family: var(--font-display);
  font-size: .95rem;
  margin: 0 0 .1em;
  color: var(--muted);
  font-weight: 500;
}
.contact-card .row p, .contact-card .row a { margin: 0; font-size: 1.02rem; }
.contact-card .mono { font-family: var(--font-mono); }
.line-qr-wrap {
  margin: 0 0 0 auto;
  flex-shrink: 0;
  text-align: center;
}
.line-qr-wrap img {
  display: block;
  width: 112px;
  height: 112px;
  padding: 8px;
  background: #fff;
  border: 2px solid var(--green);
  border-radius: 12px;
}
.line-qr-wrap figcaption {
  font-size: .75rem;
  color: var(--green-dark);
  font-weight: 600;
  margin-top: .35rem;
}
@media (max-width: 520px) {
  .line-qr-wrap { margin-left: 3.6rem; margin-top: .6rem; }
  .contact-card .row { flex-wrap: wrap; }
}
.map-frame {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  aspect-ratio: 4 / 3.4;
}
.map-frame iframe { width: 100%; height: 100%; border: 0; display: block; }

/* ---------- steps (free demo) ---------- */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.4rem; }
@media (max-width: 860px) { .steps { grid-template-columns: 1fr; max-width: 480px; margin-inline: auto; } }
.step { position: relative; padding-top: .4rem; }
.step .n {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .85rem;
  color: var(--blue);
  letter-spacing: .1em;
  margin-bottom: .4rem;
}

/* business-type cards (home) */
.biz-card h3 { font-size: 1.1rem; }
.biz-card p { font-size: .93rem; }

/* ---------- FAQ ---------- */
.faq { max-width: 760px; margin-inline: auto; }
.faq details {
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: #fff;
  margin-bottom: .8rem;
  overflow: hidden;
}
.faq summary {
  cursor: pointer;
  padding: 1rem 1.3rem;
  font-family: var(--font-display);
  font-weight: 600;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: "+";
  font-family: var(--font-mono);
  font-size: 1.3rem;
  color: var(--blue);
  transition: transform .2s;
  flex-shrink: 0;
}
.faq details[open] summary::after { transform: rotate(45deg); }
.faq .a { padding: 0 1.3rem 1.1rem; color: var(--muted); }
.faq .a p { margin-bottom: .5em; }

/* ---------- CTA band ---------- */
.cta-band {
  position: relative;
  background:
    radial-gradient(800px 400px at 15% 120%, rgba(33, 150, 243, .25), transparent 60%),
    var(--navy);
  color: #fff;
  overflow: hidden;
}
.cta-band::before {
  content: "";
  position: absolute;
  inset-inline: 0;
  top: 0;
  height: 10px;
  background:
    linear-gradient(-45deg, transparent 8px, var(--bg) 0) 0 0 / 16px 100%,
    linear-gradient(45deg, transparent 8px, var(--bg) 0) 8px 0 / 16px 100%;
  background-repeat: repeat-x;
}
.section-alt + .cta-band::before {
  background:
    linear-gradient(-45deg, transparent 8px, var(--paper) 0) 0 0 / 16px 100%,
    linear-gradient(45deg, transparent 8px, var(--paper) 0) 8px 0 / 16px 100%;
  background-repeat: repeat-x;
}
.cta-band .container {
  padding-block: clamp(3.5rem, 7vw, 5.5rem);
  text-align: center;
}
.cta-band h2 { color: #fff; font-size: clamp(1.7rem, 3.6vw, 2.5rem); }
.cta-band p { color: #c3cdea; max-width: 38em; margin-inline: auto; font-size: 1.08rem; }
.cta-band .actions {
  display: flex;
  flex-wrap: wrap;
  gap: .9rem;
  justify-content: center;
  margin-top: 2rem;
}
.cta-band .tel-note { margin-top: 1.4rem; font-size: .95rem; color: #9aa8cf; }
.cta-band .tel-note a { color: #fff; font-family: var(--font-mono); }

/* ---------- footer ---------- */
.site-footer { background: var(--navy-ink); color: #b6c0dc; font-size: .96rem; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 2.5rem;
  padding-block: 3.5rem 2.5rem;
}
@media (max-width: 940px) { .footer-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .footer-grid { grid-template-columns: 1fr; } }
.site-footer h3 {
  color: #fff;
  font-size: .95rem;
  letter-spacing: .06em;
  margin-bottom: 1rem;
}
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: .55rem; }
.site-footer a { color: #b6c0dc; }
.site-footer a:hover { color: #fff; }
.footer-brand img { height: 40px; width: auto; filter: brightness(0) invert(1); opacity: .95; }
.footer-brand p { margin-top: 1rem; max-width: 30em; color: #8f9bbd; }
.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, .1);
  padding-block: 1.3rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.footer-bottom .mono { font-family: var(--font-mono); font-size: .78rem; letter-spacing: .12em; color: #7c88ab; }
.footer-bottom .barcode { color: #7c88ab; height: 1.3em; }

/* ---------- page hero (subpages) ---------- */
.page-hero {
  background:
    radial-gradient(700px 320px at 90% -20%, rgba(33, 150, 243, .12), transparent 60%),
    linear-gradient(180deg, #fafbff, #fff);
  border-bottom: 1px solid var(--line);
}
.page-hero .container { padding-block: clamp(2.8rem, 6vw, 4.5rem); }
.page-hero p.lead { color: var(--muted); font-size: 1.12rem; max-width: 42em; margin: 0; }
.breadcrumbs {
  font-size: .85rem;
  color: var(--muted);
  margin-bottom: 1rem;
  font-family: var(--font-mono);
}
.breadcrumbs ol { list-style: none; display: flex; flex-wrap: wrap; gap: .4rem; padding: 0; margin: 0; }
.breadcrumbs li + li::before { content: "/"; margin-right: .4rem; color: #c3cad8; }
.breadcrumbs a { color: var(--muted); }
.breadcrumbs [aria-current] { color: var(--blue); }

/* ---------- reveal animation ---------- */
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
.reveal-d1 { transition-delay: .08s; }
.reveal-d2 { transition-delay: .16s; }
.reveal-d3 { transition-delay: .24s; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal { opacity: 1; transform: none; transition: none; }
  .receipt.print { animation: none; }
  .marquee-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; }
  * { transition-duration: .01ms !important; animation-duration: .01ms !important; }
}

/* ---------- misc ---------- */
.mono { font-family: var(--font-mono); }
.text-center { text-align: center; }
.mt-2 { margin-top: 2rem; }
.mt-3 { margin-top: 3rem; }
.muted { color: var(--muted); }
.badge {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .72rem;
  font-weight: 600;
  letter-spacing: .08em;
  padding: .18rem .6rem;
  border-radius: 999px;
  background: #eef4ff;
  color: var(--blue);
  border: 1px solid #d8e6ff;
  vertical-align: middle;
}
.badge.addon { background: #fff7e0; color: #8a6d00; border-color: #f2e3ac; }

/* ---------- chat bubble ---------- */
.chat-root {
  position: fixed;
  right: clamp(.9rem, 3vw, 1.6rem);
  bottom: clamp(.9rem, 3vw, 1.6rem);
  z-index: 140;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: .8rem;
}
.chat-fab {
  width: 58px;
  height: 58px;
  border-radius: 50%;
  border: 0;
  cursor: pointer;
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(135deg, var(--sky), var(--blue-dark));
  box-shadow: 0 6px 18px rgba(20, 103, 216, .38);
  transition: transform .18s, box-shadow .18s;
}
.chat-fab:hover { transform: translateY(-2px) scale(1.04); box-shadow: 0 10px 24px rgba(20, 103, 216, .45); }
.chat-fab .ic-close { display: none; }
.chat-root.open .chat-fab .ic-chat { display: none; }
.chat-root.open .chat-fab .ic-close { display: block; }
.chat-panel {
  width: min(340px, calc(100vw - 2rem));
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 18px;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  animation: chatIn .25s ease;
}
@keyframes chatIn { from { opacity: 0; transform: translateY(10px); } }
.chat-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: .95rem 1.15rem;
  background: linear-gradient(135deg, var(--navy), var(--navy-deep));
  color: #fff;
}
.chat-head-txt { display: flex; flex-direction: column; line-height: 1.35; }
.chat-head-txt strong { font-family: var(--font-display); font-size: 1rem; }
.chat-head-txt span { font-size: .8rem; color: #b9c4e0; display: inline-flex; align-items: center; gap: .4rem; }
.chat-dot {
  width: .55em; height: .55em;
  border-radius: 50%;
  background: #3DD03D;
  box-shadow: 0 0 0 3px rgba(61, 208, 61, .25);
}
.chat-close {
  background: rgba(255, 255, 255, .12);
  border: 0;
  color: #fff;
  border-radius: 9px;
  padding: .45rem .5rem;
  cursor: pointer;
  display: grid;
  place-items: center;
}
.chat-close:hover { background: rgba(255, 255, 255, .22); }
.chat-body { padding: 1.05rem 1.15rem 1.15rem; }
.chat-msg {
  background: var(--paper);
  border: 1px solid var(--line);
  border-radius: 4px 14px 14px 14px;
  padding: .8rem 1rem;
  font-size: .95rem;
  margin-bottom: .9rem;
}
.chat-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  width: 100%;
  padding: .7rem 1rem;
  margin-top: .55rem;
  border-radius: 11px;
  border: 1.5px solid var(--line);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink);
}
.chat-action:hover { text-decoration: none; border-color: var(--blue); color: var(--blue); }
.chat-action-primary { background: var(--blue); border-color: var(--blue); color: #fff; }
.chat-action-primary:hover { background: var(--blue-dark); color: #fff; }
@media (max-width: 520px) {
  .chat-fab { width: 52px; height: 52px; }
}
@media print { .chat-root { display: none; } }

/* ---------- owner edit mode (?edit=1) ---------- */
.edit-toolbar {
  position: fixed;
  inset-inline: 0;
  bottom: 0;
  z-index: 300;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: .6rem 1rem;
  padding: .7rem clamp(1rem, 3vw, 1.6rem);
  background: var(--navy-ink);
  color: #d9e1f5;
  font-size: .88rem;
  box-shadow: 0 -6px 20px rgba(0, 0, 0, .25);
}
.edit-badge {
  font-family: var(--font-mono);
  font-weight: 600;
  font-size: .78rem;
  letter-spacing: .1em;
  background: var(--amber);
  color: #3d3000;
  padding: .25rem .6rem;
  border-radius: 6px;
  white-space: nowrap;
}
.edit-hint { flex: 1; min-width: 220px; }
.edit-hint b { color: #fff; font-weight: 600; }
.edit-actions { display: flex; gap: .5rem; }
.edit-btn {
  font-family: var(--font-display);
  font-weight: 600;
  font-size: .88rem;
  padding: .5rem .95rem;
  border-radius: 9px;
  border: 1.5px solid transparent;
  cursor: pointer;
}
.edit-save { background: var(--green); color: #fff; }
.edit-save:hover { background: var(--green-dark); }
.edit-exit { background: none; border-color: rgba(255, 255, 255, .35); color: #fff; }
.edit-exit:hover { border-color: #fff; }
body.edit-mode { padding-bottom: 64px; }
body.edit-mode .chat-root { display: none; }
.editable-region { outline: 1.5px dashed transparent; outline-offset: 2px; transition: outline-color .15s; }
body.edit-mode .editable-region:hover { outline-color: var(--sky); }
.editable-region:focus-visible,
body.edit-mode .editable-region:focus {
  outline: 2px solid var(--amber);
  outline-offset: 2px;
  border-radius: 2px;
}

/* ---------- Blog / articles ---------- */
.article-prose { max-width: 72ch; margin-inline: auto; }
.article-prose > p { margin-block: 1rem; line-height: 1.85; }
.article-prose h2 { margin-top: 2.4rem; margin-bottom: .6rem; }
.article-prose h3 { margin-top: 1.8rem; margin-bottom: .5rem; }
.article-prose ul, .article-prose ol { padding-inline-start: 1.4rem; margin-block: 1rem; line-height: 1.85; }
.article-hero { display: block; width: 100%; height: auto; border-radius: 12px; box-shadow: 0 12px 30px rgba(48,48,91,.12); margin-block: 1.6rem; }
.article-figure { margin: 1.8rem 0; }
.article-figure img { display: block; max-width: 100%; height: auto; border-radius: 10px; box-shadow: 0 8px 22px rgba(48,48,91,.10); }
.article-figure figcaption { font-size: .85rem; color: var(--muted, #5a6478); margin-top: .55rem; text-align: center; }
.related-grid { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.blog-card { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.blog-card .thumb { aspect-ratio: 16/9; object-fit: cover; width: 100%; height: auto; background: var(--paper, #f5f7fb); }
.blog-card .thumb.contain { object-fit: contain; padding: 1.2rem; }
.blog-card .body { padding: 1.1rem 1.2rem 1.3rem; display: flex; flex-direction: column; gap: .45rem; }
.blog-card h3 { font-size: 1.05rem; }
.blog-card p { font-size: .9rem; }
