/* Veymelo POS website · light only · type and buttons follow เกลอ (IBM Plex Sans Thai, black pill, clear "drop" cards) */
@font-face { font-family: "Plex Thai"; src: url(/fonts/plex-thai-400.woff2) format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Plex Thai"; src: url(/fonts/plex-thai-500.woff2) format("woff2"); font-weight: 500; font-display: swap; }
@font-face { font-family: "Plex Thai"; src: url(/fonts/plex-thai-600.woff2) format("woff2"); font-weight: 600; font-display: swap; }
@font-face { font-family: "Plex Thai"; src: url(/fonts/plex-thai-700.woff2) format("woff2"); font-weight: 700; font-display: swap; }
:root {
  color-scheme: light;
  --hi: #232327; --mid: #c3c3c9; --lo: #e0e0e4; --bg: #ffffff; --muted: #6e6e76; --soft: #f5f5f7;
  --drop: inset 0 1.5px 1px rgba(255,255,255,1), inset 0 6px 10px -6px rgba(255,255,255,0.95), inset 0 -6px 10px -6px rgba(24,24,27,0.07), inset 0 -1px 1px rgba(24,24,27,0.04), 0 0 0 0.5px rgba(24,24,27,0.08), 0 5px 15px rgba(64,118,180,0.11), 0 1px 2px rgba(64,118,180,0.07);
  --drop-dark: inset 0 1.5px 1px rgba(255,255,255,0.45), inset 0 8px 14px -8px rgba(255,255,255,0.28), inset 0 -6px 10px -6px rgba(0,0,0,0.5), 0 4px 14px rgba(24,24,27,0.22), 0 1px 2px rgba(24,24,27,0.2);
  --page: 1040px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
html, body { margin: 0; background: var(--bg); color: var(--hi); }
body { font-family: "Plex Thai", -apple-system, BlinkMacSystemFont, "Noto Sans Thai", sans-serif; -webkit-font-smoothing: antialiased; line-height: 1.55; -webkit-tap-highlight-color: transparent; }
button { font: inherit; color: inherit; cursor: pointer; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }

/* top bar: brand + a small «ติดตั้ง» that stays while scrolling */
.top { position: sticky; top: 0; z-index: 10; display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: calc(env(safe-area-inset-top) + 10px) max(16px, calc((100% - var(--page)) / 2)) 10px; background: rgba(255,255,255,0.82); -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%); border-bottom: 1px solid rgba(24,24,27,0.06); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-weight: 700; font-size: 17px; }
.brand img { border-radius: 8px; box-shadow: 0 0 0 0.5px rgba(24,24,27,0.1); }

/* the black pill (เกลอ's «เพิ่ม») */
.pill { flex: none; min-width: 88px; height: 38px; padding: 0 16px; border: 0; border-radius: 19px; background: var(--hi); color: #fff; font-size: 15px; font-weight: 600; box-shadow: var(--drop-dark); transition: transform 0.12s; }
.pill:active { transform: scale(0.96); }
.pill.small { min-width: 0; height: 34px; padding: 0 16px; font-size: 14px; }
.pill.done { background: var(--soft); color: var(--muted); box-shadow: none; }
.pill.busy { opacity: 0.6; }

main { padding: 0 16px; }
.hero { max-width: 640px; margin: 0 auto; padding: 48px 0 40px; text-align: center; }
.badge { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px; border-radius: 999px; box-shadow: var(--drop); color: var(--muted); font-size: 13.5px; font-weight: 500; }
.dot { width: 7px; height: 7px; border-radius: 50%; background: #3cb371; box-shadow: 0 0 0 3px rgba(60,179,113,0.18); }
h1 { margin-top: 20px; font-size: clamp(34px, 8.6vw, 54px); line-height: 1.22; font-weight: 700; letter-spacing: -0.01em; }
.lead { margin-top: 16px; font-size: clamp(16px, 4.2vw, 19px); color: #48484f; }
.wide { display: none; }
.nw { white-space: nowrap; } /* keep Thai phrases whole (the browser splits มือ|ถือ) */

/* the install row: app icon · name · «ติดตั้ง» (like a store listing) */
.app-row { display: flex; align-items: center; gap: 14px; max-width: 440px; margin: 32px auto 0; padding: 14px 14px 14px 14px; border-radius: 24px; box-shadow: var(--drop); text-align: left; }
.app-icon { flex: none; width: 64px; height: 64px; border-radius: 15px; box-shadow: 0 0 0 0.5px rgba(24,24,27,0.12), 0 4px 12px rgba(24,24,27,0.08); }
.app-text { flex: 1; min-width: 0; }
.app-name { font-size: 18px; font-weight: 700; }
.app-name, .app-sub { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.app-sub { font-size: 13.5px; color: var(--muted); }
.hint { margin-top: 12px; font-size: 13.5px; color: var(--muted); }

h2 { font-size: clamp(22px, 5.6vw, 28px); font-weight: 700; text-align: center; }
.features, .steps, .cta { max-width: var(--page); margin: 0 auto; padding: 40px 0; }
.grid { display: grid; grid-template-columns: 1fr; gap: 12px; margin-top: 24px; }
.feat { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; align-items: start; padding: 16px; border-radius: 20px; box-shadow: var(--drop); }
.feat .ico { grid-row: span 2; }
.feat h3 { font-size: 17px; font-weight: 600; }
.feat p { margin-top: 2px; font-size: 14.5px; color: var(--muted); }
.ico { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--lo); background: var(--bg); }
.ico svg { width: 24px; height: 24px; fill: none; stroke: var(--hi); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

.steps ol { list-style: none; margin: 24px auto 0; padding: 0; max-width: 560px; display: grid; gap: 10px; }
.steps li { display: flex; align-items: flex-start; gap: 14px; padding: 14px 16px; border-radius: 18px; box-shadow: var(--drop); }
.n { flex: none; display: grid; place-items: center; width: 32px; height: 32px; border-radius: 16px; background: var(--hi); color: #fff; font-weight: 600; font-size: 15px; box-shadow: var(--drop-dark); }
.steps h3 { font-size: 16px; font-weight: 600; }
.steps p { font-size: 14px; color: var(--muted); }
.cta { padding-top: 8px; padding-bottom: 56px; }
.cta .app-row { margin-top: 0; animation: none; }

.foot { padding: 24px 16px calc(env(safe-area-inset-bottom) + 28px); text-align: center; font-size: 13px; color: var(--muted); border-top: 1px solid rgba(24,24,27,0.06); }
.foot a { text-decoration: none; }

@media (min-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 16px; }
  .feat { display: block; padding: 20px; }
  .feat h3 { margin-top: 14px; }
  .wide { display: inline; }
  .hero { padding: 72px 0 48px; }
}
@media (min-width: 960px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}

/* the guide: a sheet from the bottom (same as เกลอ's install guide) */
.sheet-wrap { position: fixed; inset: 0; z-index: 50; }
.backdrop { position: absolute; inset: 0; background: rgba(15,15,18,0.32); opacity: 0; transition: opacity 0.2s; }
.sheet { position: absolute; left: 0; right: 0; bottom: 0; max-width: 520px; margin: 0 auto; background: var(--bg); border-radius: 24px 24px 0 0; padding: 22px 22px calc(env(safe-area-inset-bottom) + 10px); display: flex; flex-direction: column; gap: 14px; transform: translateY(100%); transition: transform 0.28s cubic-bezier(.2,.9,.3,1); box-shadow: 0 -8px 30px rgba(0,0,0,0.12); }
.sheet-wrap.in .backdrop { opacity: 1; }
.sheet-wrap.in .sheet { transform: none; }
.sheet-wrap.out .backdrop { opacity: 0; }
.sheet-wrap.out .sheet { transform: translateY(100%); }
@media (min-width: 640px) { .sheet { bottom: 50%; border-radius: 24px; transform: translateY(calc(50% + 40px)); opacity: 0; transition: transform 0.28s, opacity 0.2s; } .sheet-wrap.in .sheet { transform: translateY(50%); opacity: 1; } .sheet-wrap.out .sheet { opacity: 0; } }
.guide-head { display: flex; flex-direction: column; align-items: center; gap: 10px; margin-bottom: 4px; }
.big-icon { width: 60px; height: 60px; border-radius: 15px; overflow: hidden; box-shadow: 0 0 0 0.5px rgba(24,24,27,0.12); }
.big-icon img { display: block; width: 60px; height: 60px; }
.guide-title { font-weight: 600; font-size: 17px; text-align: center; }
.step { display: flex; align-items: center; gap: 12px; font-size: 14px; }
.num { flex: none; width: 34px; height: 34px; border-radius: 17px; background: rgba(24,24,27,0.06); display: grid; place-items: center; color: var(--hi); }
.step-text { flex: 1; }
.qr { display: block; width: 200px; height: 200px; margin: 0 auto; border-radius: 16px; box-shadow: var(--drop); padding: 8px; }
.guide-note { color: var(--muted); font-size: 12.5px; text-align: center; }
.actions { display: flex; flex-direction: column; gap: 8px; margin-top: 4px; }
.primary { height: 46px; border: 0; border-radius: 23px; background: var(--hi); color: #fff; font-weight: 500; box-shadow: var(--drop-dark); }
.secondary { height: 46px; border: 1px solid var(--mid); border-radius: 23px; background: var(--bg); font-weight: 500; }
.point-label { text-align: center; font-size: 13px; font-weight: 500; }
.point-bottom { position: relative; height: 46px; margin: 4px -22px 0; }
.arrow { position: absolute; width: 36px; height: 36px; margin-left: -18px; border-radius: 18px; background: var(--hi); color: #fff; display: grid; place-items: center; box-shadow: var(--drop-dark); animation: bob-down 0.84s ease-in-out infinite; }
.arrow.top { position: fixed; top: calc(env(safe-area-inset-top) + 10px); animation-name: bob-up; z-index: 51; }
@keyframes bob-down { 50% { transform: translateY(8px); } }
@keyframes bob-up { 50% { transform: translateY(-8px); } }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .arrow { animation: none; } .sheet, .backdrop { transition: none; } }

/* the install step on pos.veymelo.com/install/ (owner 2026-11-14) */
.install-page .hero { padding-top: 64px; }
.install-icon { display: block; margin: 0 auto 18px; border-radius: 22px; box-shadow: var(--drop); }
.install-big { display: block; min-width: 220px; height: 52px; margin: 30px auto 0; border-radius: 26px; font-size: 17px; }
.feat h3 small { margin-left: 6px; padding: 2px 8px; border-radius: 9px; background: var(--soft); color: var(--muted); font-size: 12px; font-weight: 600; vertical-align: 2px; }
