/* magbiz — เว็บแนะนำบริษัท (magbizcloud.com)
   สี/ฟอนต์ชุดเดียวกับหน้า login ของแอป: เขียวหลัก #0a7b52 · เขียวโลโก้ #10cd88 (ใช้เป็นจุด/เส้น/ปุ่มบนพื้นเข้มเท่านั้น
   — ห้ามเป็นพื้นใต้ตัวหนังสือขาว) · ฉากเข้ม = เขียวหลักผสมดำ · ฟอนต์ IBM Plex Sans Thai */

@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-sans-thai-thai-400-normal.woff2) format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-sans-thai-thai-500-normal.woff2) format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/ibm-plex-sans-thai-thai-600-normal.woff2) format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/ibm-plex-sans-thai-thai-700-normal.woff2) format("woff2"); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-display: swap; font-weight: 400; src: url(fonts/ibm-plex-sans-thai-latin-400-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-sans-thai-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/ibm-plex-sans-thai-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Sans Thai"; font-style: normal; font-display: swap; font-weight: 700; src: url(fonts/ibm-plex-sans-thai-latin-700-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
/* ตัวเลข (.mono) — เดิมดึง CSS จาก fonts.googleapis.com ซึ่งบล็อกการวาดหน้า ~0.75 วิบนมือถือ (PageSpeed 22 ต.ค. 2569) · คัดจาก @fontsource/ibm-plex-mono 5.3.0 (SIL OFL) */
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 500; src: url(fonts/ibm-plex-mono-latin-500-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: "IBM Plex Mono"; font-style: normal; font-display: swap; font-weight: 600; src: url(fonts/ibm-plex-mono-latin-600-normal.woff2) format("woff2"); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #17201c;
  --muted: #5a6661;
  --line: #e0e6e3;
  --canvas: #f3f5f4;
  --paper: #ffffff;
  --primary: #0a7b52;
  --primary-hover: #09714b;
  --brand: #10cd88;
  --g-950: #021b12;          /* เขียวหลัก 22% + ดำ (มุมเข้มสุดของฉาก) */
  --g-900: #04301f;
  --g-800: #06442d;          /* เขียวหลัก 55% + ดำ */
  --on-dark: #ffffff;
  --on-dark-2: rgba(255, 255, 255, .80);
  --on-dark-3: rgba(255, 255, 255, .62);
  --amber: #f5b742;
  --shadow: 0 1px 2px rgba(16, 24, 20, .04), 0 12px 32px rgba(16, 24, 20, .08);
  --font: "IBM Plex Sans Thai", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --gutter: clamp(16px, 4vw, 40px);
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 8px); -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--paper); line-height: 1.65; font-size: 16px;
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
button { font: inherit; color: inherit; cursor: pointer; }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; letter-spacing: -.01em; }
:focus-visible { outline: 2px solid var(--brand); outline-offset: 3px; border-radius: 6px; }

.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 var(--gutter); position: relative; }
.dark { background: var(--g-900); color: var(--on-dark); position: relative; overflow: hidden; }
.grain { position: absolute; inset: 0; pointer-events: none; opacity: .07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E"); }

/* ── ปุ่ม ── */
.btn { --mx: 0px; --my: 0px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 12px; font-weight: 600;
  border: 1px solid transparent; white-space: nowrap; transition: background .2s, color .2s, border-color .2s, box-shadow .25s, transform .25s var(--ease);
  transform: translate(var(--mx), var(--my)); }
.btn-sm { height: 40px; padding: 0 16px; font-size: 14px; }
.btn-lg { height: 54px; padding: 0 26px; font-size: 16px; }
.btn-brand { background: var(--brand); color: var(--g-950); box-shadow: 0 10px 30px -10px rgba(16, 205, 136, .65); }
.btn-brand:hover { background: #2bdc9a; box-shadow: 0 14px 36px -10px rgba(16, 205, 136, .8); }
.btn-glass { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); color: #fff; backdrop-filter: blur(8px); }
.btn-glass:hover { background: rgba(255, 255, 255, .16); }
.btn-ghost { color: inherit; border-color: currentColor; border-color: color-mix(in srgb, currentColor 35%, transparent); }
.btn-ghost:hover { background: color-mix(in srgb, currentColor 10%, transparent); }
.btn .arrow { font-style: normal; transition: transform .25s var(--ease); }
.btn:hover .arrow { transform: translateX(4px); }

/* ── แถบบน ── */
.progress { position: fixed; top: 0; left: 0; right: 0; height: 3px; z-index: 60; pointer-events: none; }
.progress span { display: block; height: 100%; width: 100%; transform-origin: left; transform: scaleX(var(--p, 0)); background: linear-gradient(90deg, var(--primary), var(--brand)); }
.nav { position: fixed; top: 0; left: 0; right: 0; z-index: 50; color: #fff; transition: background .3s, box-shadow .3s, color .3s, backdrop-filter .3s; }
.nav-inner { max-width: 1200px; margin: 0 auto; height: var(--nav-h); padding: 0 var(--gutter); display: flex; align-items: center; gap: 28px; }
.nav-logo { position: relative; flex: none; width: 128px; height: 36px; }
.nav-logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; object-position: left center; transition: opacity .3s; }
.logo-dark { opacity: 0; }
.nav-links { display: flex; gap: 4px; margin-left: auto; }
.nav-links a { padding: 8px 12px; border-radius: 10px; font-size: 14px; white-space: nowrap; color: var(--on-dark-2); transition: color .2s, background .2s; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-login-m { display: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav.scrolled { background: rgba(255, 255, 255, .94); color: var(--ink); backdrop-filter: saturate(1.6) blur(16px); -webkit-backdrop-filter: saturate(1.6) blur(16px);
  box-shadow: 0 1px 0 var(--line), 0 8px 24px rgba(16, 24, 20, .06); }
.nav.scrolled .logo-light { opacity: 0; }
.nav.scrolled .logo-dark { opacity: 1; }
.nav.scrolled .nav-links a { color: var(--muted); }
.nav.scrolled .nav-links a:hover { color: var(--ink); background: var(--canvas); }
.nav.scrolled .btn-brand { background: var(--primary); color: #fff; box-shadow: none; }
.nav.scrolled .btn-brand:hover { background: var(--primary-hover); }
.nav-burger { display: none; width: 40px; height: 40px; border: 0; background: none; padding: 0; position: relative; }
.nav-burger span { position: absolute; left: 10px; right: 10px; height: 2px; border-radius: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.nav-burger span:first-child { top: 15px; }
.nav-burger span:last-child { top: 23px; }
.nav.open .nav-burger span:first-child { top: 19px; transform: rotate(45deg); }
.nav.open .nav-burger span:last-child { top: 19px; transform: rotate(-45deg); }
/* เมนูธุรกิจ — ชี้หรือกด Tab เข้าแล้วแผงเปิด (CSS ล้วน) · แผงพื้นขาวเสมอ ทั้งตอนแถบบนโปร่งบนฉากเขียวและตอนเลื่อนลง */
.nav-drop { position: relative; display: flex; }
.nav-caret { display: inline-block; width: 7px; height: 7px; margin-left: 8px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor;
  transform: translateY(-3px) rotate(45deg); transition: transform .25s var(--ease); }
.nav-drop:hover .nav-caret, .nav-drop:focus-within .nav-caret { transform: translateY(1px) rotate(-135deg); }
.nav-drop-p { position: absolute; top: 100%; right: 0; width: 560px; margin-top: 12px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px;
  background: #fff; color: var(--ink); border: 1px solid var(--line); border-radius: 18px; box-shadow: 0 24px 60px rgba(2, 27, 18, .22);
  visibility: hidden; opacity: 0; transform: translateY(6px); transition: opacity .2s, transform .25s var(--ease), visibility .2s; }
.nav-drop-p::before { content: ""; position: absolute; left: 0; right: 0; top: -14px; height: 14px; }   /* ทางเดินเมาส์จากหัวเมนูลงแผง ไม่ให้แผงปิดกลางทาง */
.nav-drop:hover .nav-drop-p, .nav-drop:focus-within .nav-drop-p { visibility: visible; opacity: 1; transform: none; }
.nav-drop-h { grid-column: 1 / -1; padding: 4px 12px 8px; font-size: 12.5px; font-weight: 600; color: var(--muted); }
.nav .nav-links .nav-drop-p a { display: flex; flex-direction: column; gap: 1px; padding: 10px 12px; border-radius: 12px; color: var(--ink); white-space: normal; }
.nav .nav-links .nav-drop-p a:hover { background: #f1fbf6; color: var(--ink); }
.nav-drop-p b { font-size: 14.5px; font-weight: 600; line-height: 1.45; }
.nav-drop-p small { font-size: 12.5px; font-weight: 500; color: var(--primary); }
.nav .nav-links .nav-drop-p .nav-drop-dev { grid-column: 1 / -1; margin-top: 6px; border: 1px dashed #bfeedb; background: linear-gradient(135deg, #f1fbf6, #fff); }
.nav-drop-p .nav-drop-dev small { color: var(--muted); }

/* ── ฉากเปิด ── */
.hero { min-height: 100vh; min-height: 100svh; display: flex; align-items: center; padding: calc(var(--nav-h) + 48px) 0 96px;
  background: linear-gradient(140deg, var(--g-950) 0%, var(--g-800) 48%, var(--primary) 100%); }
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; }
.hero-glow { position: absolute; inset: -20%; pointer-events: none;
  background: radial-gradient(38% 34% at 16% 22%, rgba(16, 205, 136, .30), transparent 70%),
              radial-gradient(42% 38% at 90% 88%, rgba(16, 205, 136, .24), transparent 70%);
  animation: breathe 9s ease-in-out infinite alternate; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 48px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: 12px; font-size: 14px; font-weight: 500; letter-spacing: .02em; color: var(--primary); }
.eyebrow span { width: 36px; height: 3px; border-radius: 2px; background: var(--brand); flex: none; }
.eyebrow-dark { color: var(--on-dark-2); }
.hero-title { margin: 22px 0 14px; font-size: clamp(40px, 6.2vw, 80px); line-height: 1.12; font-weight: 700; letter-spacing: -.015em; }
.hero-title .line { display: block; overflow: hidden; padding-bottom: .16em; }   /* เผื่อที่ให้เส้นใต้ "ระบบเดียว" (กล่องบรรทัดตัดส่วนที่ล้น) */
.hero-title .line > .rise { display: inline-block; }
.mark { font-style: normal; position: relative; white-space: nowrap; color: #fff; }
.mark svg { position: absolute; left: -2%; right: -2%; bottom: .1em; width: 104%; height: .24em; overflow: visible; }
.mark path { fill: none; stroke: var(--brand); stroke-width: 6; stroke-linecap: round; stroke-dasharray: 320; stroke-dashoffset: 320; animation: draw 1.1s 1s var(--ease) forwards; }
.hero-trust { margin: 0 0 18px; font-size: 14px; font-weight: 500; line-height: 1.7; color: var(--on-dark-2); }   /* แถบสั้นใต้หัวเรื่อง (ข้อ 178) */
.hero-trust span { white-space: nowrap; }   /* จอแคบตัดบรรทัดที่ตัวคั่น · ไม่ตัดกลางวลี */
.hero-lead { max-width: 560px; font-size: clamp(16px, 1.5vw, 18px); line-height: 1.8; color: var(--on-dark-2); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 34px 0 30px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; max-width: 600px; }
.chips li { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; color: rgba(255, 255, 255, .92);
  background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .17); backdrop-filter: blur(6px); animation: rise .5s var(--d, 0s) var(--ease) both; }
.chips li::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }
.rise { animation: rise .75s var(--d, 0s) var(--ease) both; }

.glass { background: rgba(255, 255, 255, .09); border: 1px solid rgba(255, 255, 255, .19); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
  box-shadow: 0 24px 60px rgba(0, 0, 0, .28); }
.hero-visual { position: relative; height: 480px; --px: 0; --py: 0; }
.hero-visual .layer { position: absolute; inset: 0; transform: translate3d(calc(var(--px) * var(--depth, 10) * 1px), calc(var(--py) * var(--depth, 10) * 1px), 0); transition: transform .6s var(--ease); }
.hero-visual .layer > * { position: absolute; }   /* ชั้นนอกขยับตามเมาส์ · ชั้นในเล่น animation (ใช้ transform ตัวเดียวกันไม่ได้ — animation ที่จบแล้วค้างค่าทับ) */
.win { top: 40px; left: 6%; right: 2%; border-radius: 20px; padding: 18px 20px 14px; animation: rise .9s .35s var(--ease) both; }
.win-bar { display: flex; align-items: center; gap: 6px; font-size: 12px; color: var(--on-dark-3); margin-bottom: 16px; }
.win-bar i { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, .22); }
.win-bar span { margin-left: 8px; }
.kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin-bottom: 18px; }
.kpis > div { padding: 12px 14px; border-radius: 12px; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .1); }
.kpis small { display: block; font-size: 12px; color: var(--on-dark-3); }
.kpis b { display: block; font-size: 22px; font-weight: 600; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.kpis em { font-style: normal; font-size: 12px; color: var(--on-dark-3); }
.kpis em.up { color: var(--brand); }
.bars { display: flex; align-items: flex-end; gap: 7px; height: 130px; padding-top: 6px; border-bottom: 1px solid rgba(255, 255, 255, .12); }
.bars b { flex: 1; height: var(--h); border-radius: 5px 5px 1px 1px; transform-origin: bottom;
  background: linear-gradient(180deg, var(--brand), rgba(16, 205, 136, .28)); animation: grow 1s var(--d) var(--ease) both; }
.win-foot { display: flex; justify-content: space-between; font-size: 11px; color: var(--on-dark-3); padding-top: 8px; }
.toast { display: flex; gap: 12px; align-items: center; padding: 14px 18px 14px 14px; border-radius: 16px; width: max-content; max-width: 300px; }
.toast b { display: block; font-size: 14px; font-weight: 600; }
.toast small { display: block; font-size: 12px; color: var(--on-dark-3); }
.tick { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; font-weight: 700; color: #fff;
  background: rgba(16, 205, 136, .3); border: 1px solid rgba(16, 205, 136, .62); }
.tick-soft { background: rgba(245, 183, 66, .2); border-color: rgba(245, 183, 66, .55); color: var(--amber); }
.t1 { left: -6%; top: 332px; animation: rise .8s .7s var(--ease) both, float 8s 1.5s ease-in-out infinite; }
.t2 { right: -3%; top: 404px; animation: rise .8s .85s var(--ease) both, float 9s 2.5s ease-in-out infinite; }
.t3 { right: 6%; top: -8px; animation: rise .8s 1s var(--ease) both, float 7s 3.2s ease-in-out infinite; }
.scroll-cue { position: absolute; left: 50%; bottom: 26px; width: 26px; height: 42px; margin-left: -13px; border-radius: 14px; border: 1.5px solid rgba(255, 255, 255, .4); }
.scroll-cue span { position: absolute; left: 50%; top: 8px; width: 4px; height: 8px; margin-left: -2px; border-radius: 2px; background: var(--brand); animation: cue 1.8s ease-in-out infinite; }

/* ── แถบวิ่ง ── */
.marquee { background: var(--g-950); color: var(--on-dark-2); overflow: hidden; border-top: 1px solid rgba(255, 255, 255, .06);
  -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 38s linear infinite; }
.marquee span { display: inline-flex; align-items: center; gap: 22px; padding: 18px 22px 18px 0; font-size: 15px; font-weight: 500; white-space: nowrap; }
.marquee span::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 12px var(--brand); }
.marquee:hover .marquee-track { animation-play-state: paused; }

/* ── ส่วนทั่วไป ── */
.section { padding: clamp(80px, 11vw, 136px) 0; position: relative; }
.section-canvas { background: var(--canvas); }
.head { max-width: 720px; margin-bottom: clamp(40px, 6vw, 64px); }
.head h2, .split-copy h2, .cta h2 { margin: 16px 0 16px; font-size: clamp(30px, 4vw, 48px); line-height: 1.28; font-weight: 700; letter-spacing: -.012em; }
.head p, .split-copy > p { font-size: clamp(16px, 1.4vw, 18px); color: var(--muted); line-height: 1.8; }
.dark .head p, .dark .split-copy > p { color: var(--on-dark-2); }
.head p + p { margin-top: 14px; }
.card { background: var(--paper); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--shadow); }

/* ซ่อนรอเลื่อนถึงเฉพาะตอนเปิด JavaScript — เครื่องมือที่ไม่รัน JavaScript (ตัวสรุปหน้าเว็บ · ภาพตัวอย่างลิงก์) เห็นเนื้อหาครบ */
@media (scripting: enabled) {
  [data-reveal] { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--d, 0s) var(--ease), transform .8s var(--d, 0s) var(--ease); }
  [data-reveal].in { opacity: 1; transform: none; }
}

/* ── สายเอกสาร ── */
.flow { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 32px; align-items: start; }
.flow-steps { position: relative; display: flex; flex-direction: column; gap: 6px; }
.flow-steps li:not(.flow-rail) { position: relative; z-index: 1; }
.flow-steps button { width: 100%; display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; column-gap: 12px; text-align: left;
  padding: 14px 16px 14px 10px; border: 1px solid transparent; border-radius: 16px; background: none; transition: background .3s, border-color .3s, box-shadow .3s; }
.flow-steps .n { grid-row: span 2; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; font-family: var(--mono); font-size: 13px; font-weight: 600;
  color: var(--muted); background: var(--paper); border: 1.5px solid var(--line); transition: all .35s var(--ease); }
.flow-steps .t { font-size: 16px; font-weight: 600; align-self: end; }
.flow-steps .s { font-size: 13px; color: var(--muted); }
.flow-steps button:hover { background: var(--canvas); }
.flow-steps button.done .n { color: var(--primary); border-color: var(--brand); background: #e7faf2; }
.flow-steps button.active { background: var(--paper); border-color: var(--line); box-shadow: var(--shadow); }
.flow-steps button.active .n { color: #fff; background: var(--primary); border-color: var(--primary); box-shadow: 0 0 0 6px rgba(16, 205, 136, .18); }
.flow-rail { position: absolute; left: 31px; top: 36px; bottom: 36px; width: 2px; background: var(--line); border-radius: 2px; }
.flow-rail i { position: absolute; left: 0; top: 0; width: 100%; height: var(--fill, 0%); background: linear-gradient(var(--brand), var(--primary)); border-radius: 2px; transition: height .7s var(--ease); }
.flow-rail i::after { content: ""; position: absolute; left: 50%; bottom: -5px; width: 10px; height: 10px; margin-left: -5px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 5px rgba(16, 205, 136, .22), 0 0 18px var(--brand); }

.flow-stage { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 20px; align-items: start; }
.doc { padding: 22px 22px 18px; position: relative; overflow: hidden; }
.doc::before { content: ""; position: absolute; left: 0; right: 0; top: 0; height: 4px; background: linear-gradient(90deg, var(--primary), var(--brand)); }
.doc-top { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 16px; }
.doc-kind { font-size: 13px; color: var(--muted); }
.doc-no { font-size: 22px; font-weight: 600; color: var(--ink); }
.badge { flex: none; font-size: 12px; font-weight: 600; padding: 5px 10px; border-radius: 999px; background: #e7faf2; color: var(--primary); border: 1px solid #bfeedb; }
.doc-meta { display: flex; gap: 10px; font-size: 14px; padding: 10px 12px; background: var(--canvas); border-radius: 10px; margin-bottom: 14px; }
.doc-meta span { color: var(--muted); }
.doc-lines { width: 100%; border-collapse: collapse; font-size: 14px; }
.doc-lines th { text-align: left; font-weight: 500; font-size: 12px; color: var(--muted); padding: 6px 0; border-bottom: 1px solid var(--line); }
.doc-lines th:not(:first-child), .doc-lines .num { text-align: right; font-variant-numeric: tabular-nums; }
.doc-lines td { padding: 9px 0; border-bottom: 1px dashed var(--line); }
.doc-lines tfoot td { border: 0; padding: 6px 0 0; color: var(--muted); }
.doc-lines tfoot .total td { padding-top: 8px; color: var(--ink); font-weight: 700; font-size: 16px; }
.doc-effects { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; min-height: 34px; }
.fx { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; padding: 6px 12px; border-radius: 999px; background: var(--canvas); border: 1px solid var(--line);
  animation: pop .5s var(--d, 0s) var(--ease) both; }
.fx::before { content: "✓"; font-size: 11px; font-weight: 700; color: var(--primary); }
.doc.swap { animation: swap .55s var(--ease); }

.dark-card { background: var(--g-950); border-color: #0b3a28; color: var(--on-dark); box-shadow: 0 24px 60px -20px rgba(2, 27, 18, .55); }
.ledger { padding: 18px 18px 16px; }
.ledger-head { display: flex; justify-content: space-between; gap: 10px; font-size: 13px; color: var(--on-dark-3); margin-bottom: 14px; }
.ledger-head .mono { color: var(--brand); }
.ledger-cols, .lrow { display: grid; grid-template-columns: minmax(0, 1fr) 82px 82px; gap: 8px; }
.ledger-cols { font-size: 11px; letter-spacing: .04em; color: var(--on-dark-3); padding-bottom: 8px; border-bottom: 1px solid rgba(255, 255, 255, .1); }
.ledger-cols span:not(:first-child), .lrow span:not(:first-child) { text-align: right; }
.ledger-body { min-height: 132px; }
.lrow { padding: 10px 0; font-size: 14px; border-bottom: 1px dashed rgba(255, 255, 255, .1); animation: slideIn .5s var(--d, 0s) var(--ease) both; }
.lrow .mono { font-size: 13px; }
.lrow.cr span:first-child { padding-left: 18px; color: var(--on-dark-2); }
.lempty { padding: 34px 0; text-align: center; font-size: 14px; color: var(--on-dark-3); animation: fadeIn .4s both; }
.ledger-foot { display: flex; justify-content: space-between; align-items: center; gap: 8px; min-height: 30px; padding-top: 12px; font-size: 12px; color: var(--on-dark-3); }
.ledger-foot b { color: var(--brand); font-weight: 600; animation: fadeIn .5s .5s both; }

/* ── วิดีโอสั้น (#film · ข้อ 197) — กรอบ 16:9 พื้นเขียวเข้มระหว่างรอภาพปก · ปุ่มหยุด/เล่นมุมซ้ายล่าง (ขวาล่างชนปุ่ม LINE ลอย · site.js เปิดให้เมื่อเล่นเอง) ── */
.film .head { margin-bottom: clamp(28px, 4vw, 44px); }
.film-frame { position: relative; max-width: 1040px; margin: 0 auto; aspect-ratio: 16 / 9; border-radius: 20px; overflow: hidden;
  background: var(--g-900); box-shadow: 0 1px 2px rgba(16, 24, 20, .04), 0 24px 60px -20px rgba(2, 27, 18, .55); }
.film-frame video { display: block; width: 100%; height: 100%; object-fit: cover; }
.film-toggle { position: absolute; left: 14px; bottom: 14px; width: 40px; height: 40px; border-radius: 999px; display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .35); background: rgba(2, 27, 18, .55); opacity: .75; transition: opacity .2s; }
.film-toggle[hidden] { display: none; }
.film-toggle:hover, .film-toggle:focus-visible { opacity: 1; }
.film-toggle span { width: 12px; height: 14px; border-left: 4px solid #fff; border-right: 4px solid #fff; }   /* หยุด */
.film-toggle.paused span { width: 0; height: 0; margin-left: 4px; border: 8px solid transparent; border-right: 0; border-left: 13px solid #fff; }   /* เล่น */

/* ── ระบบงาน ── */
.mods { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.mod { --mx: 50%; --my: 0%; padding: 26px 24px 24px; position: relative; overflow: hidden; transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, opacity .8s var(--d, 0s) var(--ease); }
.mod::before { content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s; pointer-events: none;
  background: radial-gradient(360px circle at var(--mx) var(--my), rgba(16, 205, 136, .12), transparent 60%); }
.mod:hover { transform: translateY(-4px); border-color: #bfeedb; box-shadow: 0 2px 4px rgba(16, 24, 20, .04), 0 22px 48px rgba(10, 123, 82, .12); }
.mod:hover::before { opacity: 1; }
.mod-ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; margin-bottom: 18px; color: var(--primary);
  background: linear-gradient(135deg, #e7faf2, #d3f5e7); border: 1px solid #bfeedb; transition: transform .45s var(--ease); }
.mod:hover .mod-ic { transform: rotate(-8deg) scale(1.06); }
.mod-ic svg, .tcell svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.mod h3 { font-size: 19px; font-weight: 600; margin-bottom: 6px; }
.mod p { font-size: 14.5px; color: var(--muted); line-height: 1.7; margin-bottom: 14px; }
.mod ul { display: grid; gap: 6px; padding-top: 14px; border-top: 1px solid var(--line); }
.mod li { position: relative; padding-left: 18px; font-size: 14px; line-height: 1.6; }
.mod li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 6px; height: 6px; border-radius: 50%; background: var(--brand); }

/* ── สองคอลัมน์ ── */
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(36px, 6vw, 80px); align-items: center; }
.checks { display: grid; gap: 12px; margin-top: 28px; }
.checks li { position: relative; padding-left: 34px; font-size: 15.5px; line-height: 1.65; color: var(--on-dark-2); }
.checks li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--brand); background: rgba(16, 205, 136, .14); border: 1px solid rgba(16, 205, 136, .4); }
.checks-light li { color: var(--ink); }
.checks-light li::before { color: var(--primary); background: #e7faf2; border-color: #bfeedb; }

/* ── ภาษี ── */
.tax { background: linear-gradient(160deg, var(--g-950), var(--g-900) 55%, var(--g-800)); }
.tax::before { content: ""; position: absolute; width: 640px; height: 640px; right: -200px; top: -160px; border-radius: 50%; pointer-events: none;
  background: radial-gradient(circle, rgba(16, 205, 136, .2), transparent 65%); }
.taxcard { border-radius: 22px; padding: 22px; }
.taxcard-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.taxcard-head small { display: block; font-size: 12px; color: var(--on-dark-3); }
.taxcard-head b { font-size: 18px; font-weight: 600; }
.ring { position: relative; width: 58px; height: 58px; }
.ring svg { width: 58px; height: 58px; transform: rotate(-90deg); }
.ring circle { fill: none; stroke: rgba(255, 255, 255, .12); stroke-width: 4; }
.ring .ring-v { stroke: var(--brand); stroke-linecap: round; stroke-dasharray: 100.5; stroke-dashoffset: calc(100.5 - 100.5 * var(--v, 0)); transition: stroke-dashoffset .6s var(--ease); }
.ring span { position: absolute; inset: 0; display: grid; place-items: center; font-family: var(--mono); font-size: 12px; font-weight: 600; }
.taxrows { display: grid; gap: 8px; }
.taxrows li { display: grid; grid-template-columns: 96px minmax(0, 1fr) auto; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 12px;
  background: rgba(255, 255, 255, .05); border: 1px solid rgba(255, 255, 255, .08); transition: background .4s, border-color .4s; }
.taxrows .form { font-size: 14px; font-weight: 600; color: #fff; white-space: nowrap; }
.taxrows span:nth-child(2) { font-size: 13.5px; color: var(--on-dark-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.taxrows em { font-style: normal; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; color: var(--on-dark-3); background: rgba(255, 255, 255, .07); white-space: nowrap; transition: all .4s; }
.taxrows li.ok { background: rgba(16, 205, 136, .08); border-color: rgba(16, 205, 136, .28); }
.taxrows li.ok em { color: var(--g-950); background: var(--brand); animation: pop .45s var(--ease); }
.taxrows li.due em { color: var(--g-950); background: var(--amber); animation: pop .45s var(--ease); }

/* ── ผู้ช่วย AI ── */
.ai { background: radial-gradient(60% 50% at 50% 0%, #eef9f4, var(--paper) 70%); }
.ai-tabs { display: flex; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 26px; padding: 6px; border-radius: 18px; background: var(--canvas); border: 1px solid var(--line);
  overflow-x: auto; scrollbar-width: none; }
.ai-tabs::-webkit-scrollbar { display: none; }
.ai-tabs button { flex: none; border: 0; background: none; padding: 10px 18px; border-radius: 13px; font-size: 15px; font-weight: 600; color: var(--muted); white-space: nowrap; transition: background .25s, color .25s, box-shadow .25s; }
.ai-tabs button:hover { color: var(--ink); }
.ai-tabs button[aria-selected="true"] { background: var(--paper); color: var(--primary); box-shadow: 0 6px 18px rgba(16, 24, 20, .08); }
@media (scripting: none) { .ai-tabs { display: none; } }   /* ไม่รัน JavaScript = ไม่มีบทสนทนา — ตัวอย่างคำสั่งอยู่ในข้อความข้าง ๆ แล้ว */
.ai-tabs em, .soon { font-style: normal; display: inline-block; margin-left: 6px; padding: 1px 8px; border-radius: 999px; font-size: 11.5px; font-weight: 600; vertical-align: 2px;
  color: #8a5a00; background: #fff4dc; border: 1px solid #f3dca3; }
.ai-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: clamp(24px, 4vw, 44px); align-items: start; }
.ai-side { display: grid; gap: 14px; }
.ai-group { padding: 20px 22px; border-radius: 18px; background: var(--paper); border: 1px solid var(--line); }
.ai-group h3 { font-size: 18px; font-weight: 600; margin-bottom: 4px; }
.ai-group > p { font-size: 14.5px; color: var(--muted); line-height: 1.7; }
.ai-asks { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.ai-asks li { font-size: 13.5px; line-height: 1.5; padding: 7px 12px; border-radius: 12px 12px 12px 4px; background: #f1fbf6; border: 1px solid #d3f0e3; }
.ai-soon { background: linear-gradient(135deg, #fffaf0, #fff); border-style: dashed; border-color: #f3dca3; }
.ai-safe { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; margin-top: 34px; }
.ai-safe li { position: relative; padding-left: 30px; font-size: 14.5px; line-height: 1.6; }
.ai-safe li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 7px; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: var(--primary); background: #e7faf2; border: 1px solid #bfeedb; }
.chat { overflow: hidden; }
.chat-head { display: flex; align-items: center; gap: 10px; padding: 16px 18px; border-bottom: 1px solid var(--line); font-weight: 600; font-size: 15px; }
.chat-head small { font-weight: 400; color: var(--muted); font-size: 12.5px; }
.chat-head .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(16, 205, 136, .2); }
.chat-replay { margin-left: auto; width: 32px; height: 32px; border-radius: 9px; border: 1px solid var(--line); background: var(--paper); color: var(--muted); font-size: 16px; transition: transform .4s var(--ease), color .2s; }
.chat-replay:hover { color: var(--primary); transform: rotate(-180deg); }
.chat-body { display: flex; flex-direction: column; gap: 12px; padding: 20px 18px 22px; min-height: 560px; background: linear-gradient(180deg, var(--canvas), var(--paper) 70%); }
.msg { max-width: 86%; padding: 12px 15px; border-radius: 16px; font-size: 14.5px; line-height: 1.65; animation: msgIn .45s var(--ease) both; }
.msg.me { align-self: flex-end; background: var(--primary); color: #fff; border-bottom-right-radius: 5px; }
.msg.note { align-self: center; max-width: 94%; padding: 6px 14px; border-radius: 999px; font-size: 13px; text-align: center; color: #8a5a00; background: #fff4dc; border: 1px solid #f3dca3; }
.msg.ai { align-self: flex-start; background: var(--paper); border: 1px solid var(--line); border-bottom-left-radius: 5px; box-shadow: 0 6px 18px rgba(16, 24, 20, .05); }
.msg .file { display: flex; align-items: center; gap: 10px; margin-top: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255, 255, 255, .14); font-size: 13px; }
.msg .file i { font-style: normal; width: 28px; height: 32px; border-radius: 5px; display: grid; place-items: center; font-size: 9px; font-weight: 700; background: #fff; color: #c2410c; }
.typing { align-self: flex-start; display: flex; gap: 5px; padding: 14px 16px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); animation: msgIn .3s both; }
.typing i { width: 7px; height: 7px; border-radius: 50%; background: var(--muted); animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .15s; }
.typing i:nth-child(3) { animation-delay: .3s; }
.mini { margin-top: 10px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: 13px; }
.mini-top { display: flex; justify-content: space-between; align-items: center; padding: 10px 12px; background: var(--canvas); }
.mini-top b { font-family: var(--mono); font-size: 13.5px; }
.mini-top em.ok { background: #e7faf2; color: var(--primary); border-color: #bfeedb; }
.mini-top em { font-style: normal; font-size: 11.5px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: #fff4dc; color: #8a5a00; border: 1px solid #f3dca3; }
.mini dl { display: grid; grid-template-columns: auto 1fr; gap: 4px 14px; margin: 0; padding: 10px 12px; }
.mini dt { color: var(--muted); }
.mini dd { margin: 0; text-align: right; font-variant-numeric: tabular-nums; }

/* ── ความมั่นใจ ── */
.trust { padding-top: clamp(64px, 8vw, 96px); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: 22px; overflow: hidden; margin-bottom: 40px; }
.stats > div { background: var(--paper); padding: 28px 24px; }
.stats b { display: block; font-size: clamp(36px, 4.4vw, 54px); line-height: 1.1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--primary), #0fa36d); -webkit-background-clip: text; background-clip: text; color: transparent; }
.stats b small { font-size: .7em; }
.stats > div > span { display: block; margin-top: 6px; font-size: 14.5px; color: var(--muted); }
.trust-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.tcell { display: grid; grid-template-columns: 44px 1fr; grid-template-rows: auto auto; align-content: start; column-gap: 14px; padding: 18px; border-radius: 16px; background: var(--paper); border: 1px solid var(--line); }
.tcell svg { grid-row: span 2; width: 44px; height: 44px; padding: 10px; border-radius: 12px; color: var(--primary); background: #e7faf2; }
.tcell b { font-weight: 600; font-size: 15.5px; }
.tcell span { font-size: 13.5px; color: var(--muted); line-height: 1.6; }
.trust-badges { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 36px; margin-top: 32px; }   /* ป้ายทางการ AWS · Cloudflare (ข้อ 181) — ห้ามยืด/ครอบสี */
.trust-badges img { height: 52px; width: auto; }   /* ป้าย Cloudflare ออกแบบมาให้แสดงใหญ่ — ต่ำกว่านี้ตัวหนังสือในป้ายอ่านไม่ออก */
.trust-badges .tb-aws { height: 40px; }

/* ── หน้าธุรกิจ (build.mjs สร้าง) ── */
.hero-sub { min-height: 0; padding: calc(var(--nav-h) + 72px) 0 96px; }
.hero-sub .hero-grid { grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); }
.hero-sub .hero-title { font-size: clamp(32px, 3.7vw, 52px); line-height: 1.25; text-wrap: balance; }
.hero-sub .hero-lead { max-width: 640px; }
.hero-mock { position: relative; padding: 26px 3% 44px; }
.hero-mock .toast { position: absolute; background: rgba(4, 48, 31, .9); border-color: rgba(16, 205, 136, .35); }   /* ลอยทับภาพจอพื้นขาว — กระจกใสแบบหน้าแรกทำตัวหนังสือขาวหาย */
.hm-t1 { left: -5%; bottom: 0; animation: rise .8s .8s var(--ease) both, float 8s 1.6s ease-in-out infinite; }
.hm-t2 { right: -3%; top: -6px; animation: rise .8s .95s var(--ease) both, float 9s 2.6s ease-in-out infinite; }
.text-link { color: var(--primary); font-weight: 600; }
.text-link:hover { text-decoration: underline; }

/* งานที่เคยวุ่นวาย: แบบเดิม | ระบบทำแทน แล้วผลที่ได้ */
.pains { display: grid; gap: 18px; max-width: 1040px; margin: 0 auto; }
.pain { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); grid-template-areas: "h h" "was now" "win win"; overflow: hidden;
  transition: transform .35s var(--ease), box-shadow .35s, opacity .8s var(--d, 0s) var(--ease); }
.pain:hover { transform: translateY(-3px); box-shadow: 0 2px 4px rgba(16, 24, 20, .04), 0 22px 48px rgba(10, 123, 82, .12); }
.pain-h { grid-area: h; display: flex; align-items: center; gap: 14px; padding: 20px 24px 16px; border-bottom: 1px solid var(--line); }
.pain-n { flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-size: 13px; font-weight: 600; color: var(--primary); background: #e7faf2; border: 1px solid #bfeedb; }
.pain-h h3 { font-size: 19px; font-weight: 600; line-height: 1.45; }
.pain-was { grid-area: was; padding: 18px 24px 20px; background: var(--canvas); border-right: 1px solid var(--line); }
.pain-now { grid-area: now; padding: 18px 24px 20px; }
.pain-k { display: block; margin-bottom: 8px; font-size: 12.5px; font-weight: 700; letter-spacing: .03em; color: #b42318; }
.pain-now .pain-k { color: var(--primary); }
.pain-was p { font-size: 14.5px; color: var(--muted); line-height: 1.75; }
.pain-now ol { counter-reset: s; display: grid; gap: 10px; }
.pain-now li { counter-increment: s; position: relative; padding-left: 34px; font-size: 14.5px; line-height: 1.65; }
.pain-now li::before { content: counter(s); position: absolute; left: 0; top: 1px; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center;
  font-size: 12px; font-weight: 700; color: #fff; background: var(--primary); }
.pain-win { grid-area: win; display: flex; align-items: center; gap: 10px; padding: 14px 24px; border-top: 1px solid #d3f0e3; background: #f1fbf6; font-size: 15px; font-weight: 600; color: var(--g-800); }
.pain-win svg { flex: none; width: 22px; height: 22px; fill: none; stroke: var(--primary); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* เครื่องมือที่ใช้จริงทุกวัน: ข้อความ + ภาพจอ สลับซ้ายขวา */
.tools { display: grid; gap: clamp(56px, 8vw, 96px); }
.tool { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.tool-rev .tool-copy { order: 2; }
.tool-k { display: inline-flex; padding: 5px 12px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--primary); background: #e7faf2; border: 1px solid #bfeedb; }
.tool h3 { margin: 14px 0 10px; font-size: clamp(24px, 2.6vw, 32px); line-height: 1.35; font-weight: 700; letter-spacing: -.01em; }
.tool-copy > p { font-size: 16px; color: var(--muted); line-height: 1.8; }
.tool .checks { margin-top: 20px; }
.tool-vis { position: relative; }
.tool-vis::before { content: ""; position: absolute; inset: -10% -6%; border-radius: 40px; pointer-events: none; background: radial-gradient(55% 55% at 50% 45%, rgba(16, 205, 136, .17), transparent 70%); }
.tool-vis > * { position: relative; }

/* ตัวอย่างคำสั่งผู้ช่วย AI */
.asks { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; max-width: 980px; margin: 0 auto; }
.ask { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; padding: 20px 22px; transition: opacity .8s var(--d, 0s) var(--ease), transform .8s var(--d, 0s) var(--ease); }
.ask-k { font-size: 12px; font-weight: 600; padding: 3px 10px; border-radius: 999px; color: var(--primary); background: #e7faf2; border: 1px solid #bfeedb; }
.ask-q { font-size: 16.5px; font-weight: 600; line-height: 1.55; padding: 12px 15px; border-radius: 16px 16px 16px 5px; color: #fff; background: var(--primary); }
.ask-a { font-size: 14px; color: var(--muted); line-height: 1.7; }
.ask-soon { border-style: dashed; border-color: #f3dca3; background: linear-gradient(135deg, #fffaf0, #fff); }
.ask-soon .ask-k { color: #8a5a00; background: #fff4dc; border-color: #f3dca3; }
.ask-soon .ask-q { color: var(--ink); background: #fff; border: 1px dashed #c8d1cd; }

/* ราคาและสิ่งที่ได้: ราคา/ปุ่มจากการ์ดแพ็กเกจ | ทุกอย่างที่ได้ */
.plan { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); max-width: 1040px; margin: 0 auto; overflow: hidden; border-radius: 24px; }
.plan-buy { display: flex; flex-direction: column; padding: 30px 28px; border-right: 1px solid var(--line); background: linear-gradient(180deg, #f1fbf6, #fff 60%); }
.plan-buy h3 { font-size: 26px; font-weight: 700; letter-spacing: -.01em; }
.plan-buy h3 span { font-weight: 500; color: var(--primary); }
.plan-buy .pk-for { margin-bottom: 14px; }
.plan .pk-btn { color: #fff; background: var(--primary); }
.plan .pk-btn:hover { background: var(--primary-hover); }
.plan-all { padding: 30px 32px; }
.plan-h { margin: 0 0 18px; font-size: 18px; font-weight: 700; }
.plan-base { margin: -12px 0 18px; font-size: 14px; color: var(--muted); }
.plan-groups { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 28px; }
.plan-groups h4 { margin: 0 0 6px; font-size: 14px; font-weight: 700; color: var(--primary); }
.plan-groups ul { display: grid; gap: 4px; }
.plan-groups li { position: relative; padding-left: 16px; font-size: 14px; line-height: 1.6; }
.plan-groups li::before { content: ""; position: absolute; left: 2px; top: .68em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* ── ภาพจอตัวอย่าง (mock.mjs วาด) — หน้าตาแบบแอปจริง พื้นขาว ── */
.mk { overflow: hidden; border: 1px solid var(--line); border-radius: 16px; background: var(--paper); color: var(--ink); font-size: 13px; line-height: 1.5; text-align: left;
  box-shadow: 0 30px 70px -28px rgba(2, 27, 18, .4), 0 2px 6px rgba(16, 24, 20, .05); }
.mk-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--canvas); border-bottom: 1px solid var(--line); font-size: 12px; }
.mk-bar i { flex: none; width: 9px; height: 9px; border-radius: 50%; background: #d5ddd9; }
.mk-bar span { min-width: 0; margin-left: 6px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-bar .pill { flex: none; margin-left: auto; }
.mk-body { padding: 14px 16px 16px; }
.pill { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; color: var(--muted); background: var(--canvas); border: 1px solid var(--line); }
.pill.ok { color: var(--primary); background: #e7faf2; border-color: #bfeedb; }
.pill.warn { color: #8a5a00; background: #fff4dc; border-color: #f3dca3; }
.pill.bad { color: #b42318; background: #fdecea; border-color: #f6c9c4; }
.pill.info { color: #1d4ed8; background: #eaf2ff; border-color: #c9dbff; }
.mk-t { width: 100%; border-collapse: collapse; table-layout: fixed; font-size: 12.5px; }
.mk-t th { padding: 0 6px 8px; border-bottom: 1px solid var(--line); text-align: left; font-size: 11px; font-weight: 500; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-t td { padding: 9px 6px; border-bottom: 1px dashed var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-t th:first-child, .mk-t td:first-child { padding-left: 0; }
.mk-t th:last-child, .mk-t td:last-child { padding-right: 0; }
.mk-t .n { text-align: right; font-variant-numeric: tabular-nums; }
.mk-t .b { font-weight: 700; }
.mk-t tr.hl td { background: #f1fbf6; font-weight: 600; }
.mk-foot { display: flex; justify-content: space-between; gap: 10px; margin-top: 10px; padding: 9px 12px; border-radius: 10px; background: var(--canvas); font-size: 12.5px; color: var(--muted); }
.mk-foot b { color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-l { display: grid; gap: 8px; }
.mk-l li { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--paper); }
.mk-l li > div { flex: 1; min-width: 0; }
.mk-l b { display: block; font-size: 13px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-l small { display: block; font-size: 11.5px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-l em { flex: none; font-style: normal; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-ck { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 700; color: #fff; background: var(--primary); }
.mk-l li.todo { background: #fffaf0; border-color: #f3dca3; }
.mk-l li.todo .mk-ck { background: #fff; border: 2px dashed #d9a441; }
.mk-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 14px; }
.mk-kpis > div { min-width: 0; padding: 11px 13px; border-radius: 12px; background: var(--canvas); }
.mk-kpis small { display: block; font-size: 11.5px; color: var(--muted); }
.mk-kpis b { display: block; font-size: 20px; font-weight: 700; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-kpis em { display: block; font-style: normal; font-size: 11.5px; color: var(--muted); }
.mk-kpis em.up { color: var(--primary); font-weight: 600; }
.mk-hb { display: grid; gap: 9px; }
.mk-hb li { display: grid; grid-template-columns: minmax(0, 8em) minmax(0, 1fr) 5.4em; align-items: center; gap: 10px; font-size: 12px; }
.mk-hb span { color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-hb i { position: relative; height: 10px; border-radius: 99px; overflow: hidden; background: var(--canvas); }
.mk-hb i::after { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--primary), var(--brand));
  transform-origin: left; animation: growX 1s var(--d, 0s) var(--ease) both; }
.mk-hb b { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-s { display: grid; }
.mk-s li { position: relative; display: flex; gap: 12px; padding: 7px 0; }
.mk-s li:not(:last-child)::before { content: ""; position: absolute; left: 10px; top: 32px; bottom: -6px; width: 2px; background: var(--line); }
.mk-s li.done:not(:last-child)::before { background: var(--primary); }
.mk-s li > i { flex: none; position: relative; width: 22px; height: 22px; margin-top: 1px; border-radius: 50%; border: 2px solid var(--line); background: var(--paper); }
.mk-s li.done > i { border-color: var(--primary); background: var(--primary); }
.mk-s li.done > i::after { content: "✓"; position: absolute; inset: 0; display: grid; place-items: center; font-size: 11px; font-weight: 700; font-style: normal; color: #fff; }
.mk-s li.now > i { border-color: var(--brand); box-shadow: 0 0 0 5px rgba(16, 205, 136, .18); }
.mk-s li.now > i::after { content: ""; position: absolute; inset: 3px; border-radius: 50%; background: var(--brand); }
.mk-s b { display: block; font-size: 13.5px; font-weight: 600; }
.mk-s small { display: block; font-size: 12px; color: var(--muted); }
.mk-s li.now b { color: var(--primary); }
.mk-s li.todo b { font-weight: 500; color: var(--muted); }
.mk-bd { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mk-bd > div { min-width: 0; min-height: 190px; padding: 10px; border-radius: 12px; background: var(--canvas); }
.mk-bd h5 { display: flex; justify-content: space-between; align-items: center; margin: 0 0 8px; font-size: 12px; font-weight: 600; color: var(--muted); }
.mk-bd h5 span { padding: 0 7px; border-radius: 99px; font-size: 11px; background: var(--paper); }
.mk-card { margin-bottom: 8px; padding: 9px 10px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); box-shadow: 0 2px 6px rgba(16, 24, 20, .04); }
.mk-card b { display: block; font-family: var(--mono); font-size: 11px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-card small { display: block; margin: 2px 0 4px; font-size: 11.5px; line-height: 1.45; color: var(--muted); }
.mk-pos { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 12px; }
.mk-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; align-content: start; }
.mk-tiles > div { min-width: 0; display: flex; flex-direction: column; padding: 7px; border-radius: 10px; border: 1px solid var(--line); background: var(--paper); }
.mk-tiles i { height: 34px; margin-bottom: 5px; border-radius: 7px; background: linear-gradient(135deg, hsl(var(--h) 62% 88%), hsl(calc(var(--h) + 40) 62% 78%)); }
.mk-tiles span { font-size: 11px; line-height: 1.35; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-tiles b { font-size: 12px; color: var(--primary); }
.mk-cart { display: flex; flex-direction: column; min-width: 0; padding: 10px 12px; border-radius: 12px; background: var(--canvas); font-size: 12px; }
.mk-cart h5 { margin: 0 0 4px; font-size: 12px; font-weight: 600; color: var(--muted); }
.mk-cart p { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 8px; padding: 5px 0; border-bottom: 1px dashed #d5ddd9; }
.mk-cart p span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mk-cart p em { font-style: normal; color: var(--muted); }
.mk-cart p b { font-weight: 500; font-variant-numeric: tabular-nums; }
.mk-cart p.neg { color: var(--primary); }
.mk-tot { display: flex; justify-content: space-between; align-items: baseline; margin-top: auto; padding-top: 10px; font-weight: 700; }
.mk-tot b { font-size: 22px; font-variant-numeric: tabular-nums; }
.mk-pay { display: flex; gap: 6px; margin-top: 8px; }
.mk-pay span { flex: 1; padding: 7px 4px; border-radius: 9px; text-align: center; font-size: 11px; font-weight: 600; white-space: nowrap; background: var(--paper); border: 1px solid var(--line); }
.mk-pay span.on { color: #fff; background: var(--primary); border-color: var(--primary); }
.mk-slip { position: relative; max-width: 340px; margin: 0 auto 8px; padding: 22px 22px 24px; border-radius: 6px 6px 0 0; background: #fff; color: var(--ink); font-size: 13px;
  box-shadow: 0 30px 70px -28px rgba(2, 27, 18, .4), 0 2px 6px rgba(16, 24, 20, .05); }
.mk-slip::after { content: ""; position: absolute; left: 0; right: 0; bottom: -8px; height: 8px; background: radial-gradient(circle at 8px 0, transparent 6px, #fff 6.5px) 0 0 / 16px 8px repeat-x; }   /* ขอบล่างแบบกระดาษฉีก */
.mk-slip.wide { max-width: 460px; border: 1px solid var(--line); border-radius: 8px; }
.mk-slip.wide::after { display: none; }
.mk-slip h5 { margin: 0; text-align: center; font-size: 15px; font-weight: 700; }
.mk-sub { display: block; margin: 2px 0 12px; text-align: center; font-size: 11.5px; color: var(--muted); }
.mk-slip p { display: flex; justify-content: space-between; gap: 14px; padding: 4px 0; }
.mk-slip p span { min-width: 0; }
.mk-slip p b { flex: none; font-weight: 500; font-variant-numeric: tabular-nums; white-space: nowrap; }
.mk-slip p.dim { font-size: 12px; color: var(--muted); }
.mk-slip p.neg b { color: var(--primary); }
.mk-slip p.bad, .mk-slip p.bad b { font-weight: 700; color: #b42318; }
.mk-slip p.total { margin-top: 4px; padding-top: 8px; border-top: 1px solid var(--ink); font-size: 15px; font-weight: 700; }
.mk-slip p.total b { font-weight: 700; }
.mk-slip hr { margin: 8px 0; border: 0; border-top: 1px dashed #c8d1cd; }
.mk-btn { display: block; margin-top: 14px; padding: 10px; border-radius: 10px; text-align: center; font-size: 13px; font-weight: 600; color: #fff; background: var(--primary); }
.mk-stamp { position: absolute; right: 18px; bottom: 16px; padding: 3px 10px; border: 2px solid var(--primary); border-radius: 8px; font-size: 11px; font-weight: 700; color: var(--primary); transform: rotate(-8deg); }
.mk-phone { width: 280px; max-width: 100%; margin: 0 auto; padding: 10px; border-radius: 38px; background: #0b1410; box-shadow: 0 34px 80px -26px rgba(2, 27, 18, .55); }
.mk-ph-top { padding: 22px 14px 11px; border-radius: 29px 29px 0 0; text-align: center; font-size: 12.5px; font-weight: 600; color: #fff; background: var(--primary); position: relative; }
.mk-ph-top::before { content: ""; position: absolute; top: 8px; left: 50%; width: 64px; height: 6px; margin-left: -32px; border-radius: 6px; background: rgba(0, 0, 0, .35); }
.mk-ph-body { min-height: 330px; padding: 14px 12px 18px; border-radius: 0 0 29px 29px; background: var(--paper); }
.mk-ph-body .mk-slip { max-width: none; margin: 0; padding: 4px 4px 0; box-shadow: none; }
.mk-ph-body .mk-slip::after { display: none; }
.mk-ph-body .mk-hb li { grid-template-columns: minmax(0, 6.4em) minmax(0, 1fr) 4.6em; }
@keyframes growX { from { transform: scaleX(0); } to { transform: scaleX(1); } }

/* ── ธุรกิจที่รองรับ (การ์ดลิงก์ไปหน้าธุรกิจ · หน้าธุรกิจใช้ชุดเดียวกันในส่วน "ธุรกิจอื่น") ── */
.biz { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.biz-c { display: flex; flex-direction: column; gap: 6px; padding: 22px 20px 18px; color: var(--ink); transition: transform .35s var(--ease), box-shadow .35s, border-color .35s, opacity .8s var(--d, 0s) var(--ease); }
.biz-c:hover { transform: translateY(-4px); border-color: #bfeedb; box-shadow: 0 2px 4px rgba(16, 24, 20, .04), 0 22px 48px rgba(10, 123, 82, .12); }
.biz-c:hover .mod-ic { transform: rotate(-8deg) scale(1.06); }
.biz-c .mod-ic { margin-bottom: 8px; }
.biz-c b { font-size: 17px; font-weight: 600; line-height: 1.45; }
.biz-d { flex: 1; font-size: 14px; color: var(--muted); line-height: 1.65; }
/* สูงเท่ากันทุกใบ เส้นคั่นราคาอยู่ระดับเดียวกัน (Chain มีบรรทัดค่าสำนักงานใหญ่) */
.biz-p { display: flex; flex-direction: column; min-height: 86px; margin-top: 10px; padding-top: 12px; border-top: 1px solid var(--line); font-size: 13px; font-weight: 600; color: var(--muted); }
.biz-p strong { font-size: 19px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.biz-p strong small { font-size: 12.5px; font-weight: 500; color: var(--muted); }
.biz-p > small { font-size: 12.5px; font-weight: 500; }
.biz-go { display: flex; align-items: center; gap: 6px; margin-top: 12px; font-size: 14px; font-weight: 600; color: var(--primary); }
.biz-go i { font-style: normal; transition: transform .25s var(--ease); }
.biz-c:hover .biz-go i { transform: translateX(4px); }
.biz-note { margin-top: 22px; text-align: center; font-size: 14px; color: var(--muted); }
.biz-note a { color: var(--primary); font-weight: 600; }

/* ── แพ็กเกจราคา ── */
.pricing { background: radial-gradient(60% 50% at 50% 0%, #e9f8f1, var(--paper) 70%); }
.head-center { margin-left: auto; margin-right: auto; text-align: center; }
.trial-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600;
  color: var(--primary); background: #e7faf2; border: 1px solid #bfeedb; }
.trial-pill::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--brand); box-shadow: 0 0 0 4px rgba(16, 205, 136, .2); animation: blink 1.6s infinite; }
.trial-pill-dark { color: #fff; background: rgba(16, 205, 136, .16); border-color: rgba(16, 205, 136, .45); margin-bottom: 18px; }
.calc { --fill: 15%; display: grid; grid-template-columns: auto minmax(0, 1fr) 120px; gap: 20px; align-items: center; max-width: 760px; margin: 0 auto 28px; padding: 16px 24px; border-radius: 16px; }
.calc label { font-weight: 600; font-size: 15px; white-space: nowrap; }
.calc output { justify-self: end; font-weight: 700; font-size: 18px; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.calc input[type=range] { -webkit-appearance: none; appearance: none; width: 100%; height: 8px; border-radius: 99px; cursor: pointer;
  background: linear-gradient(90deg, var(--primary), var(--brand)) 0 / var(--fill) 100% no-repeat, var(--line); }
.calc input[type=range]::-webkit-slider-thumb { -webkit-appearance: none; width: 26px; height: 26px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 4px 12px rgba(10, 123, 82, .3); transition: transform .2s var(--ease); }
.calc input[type=range]::-moz-range-thumb { width: 22px; height: 22px; border-radius: 50%; background: #fff; border: 3px solid var(--primary); box-shadow: 0 4px 12px rgba(10, 123, 82, .3); }
.calc input[type=range]:active::-webkit-slider-thumb { transform: scale(1.15); }
.pk-tabs { display: flex; justify-content: center; gap: 6px; width: max-content; max-width: 100%; margin: 0 auto 26px; padding: 6px; border-radius: 18px; background: var(--canvas); border: 1px solid var(--line); }
.pk-tabs button { display: flex; flex-direction: column; align-items: center; gap: 1px; min-width: 210px; padding: 10px 22px; border: 0; border-radius: 13px; background: none;
  font-size: 16px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s, box-shadow .25s; }
.pk-tabs button small { font-size: 12.5px; font-weight: 500; }
.pk-tabs button:hover { color: var(--ink); }
.pk-tabs button[aria-selected="true"] { background: var(--paper); color: var(--primary); box-shadow: 0 6px 18px rgba(16, 24, 20, .08); }
.pk-panel:not([hidden]) { animation: fadeIn .4s var(--ease); }
.pk-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.pk-grid-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin: 0 auto; }
.pk-grid-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; }
.pk-grid-4 .pk { padding: 28px 20px 22px; }
.pk-grid-4 .pk-price b { font-size: 38px; }
.nw { white-space: nowrap; }   /* คำที่ห้ามตัดกลาง เช่น (ถ้ามี) */
/* รอบการจ่าย (รายเดือน/รายปี) */
.pk-bill { display: flex; justify-content: center; align-items: center; gap: 12px; margin: -8px auto 26px; font-size: 14px; color: var(--muted); }
.pk-bill-sw { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--canvas); border: 1px solid var(--line); }
.pk-bill-sw button { border: 0; background: none; padding: 7px 16px; border-radius: 999px; font-size: 14px; font-weight: 600; color: var(--muted); transition: background .25s, color .25s; }
.pk-bill-sw button[aria-checked="true"] { background: var(--primary); color: #fff; }
.pk-bill-sw em { font-style: normal; font-size: 12px; margin-left: 4px; padding: 2px 8px; border-radius: 999px; background: #e7faf2; color: var(--primary); }
.pk-bill-sw button[aria-checked="true"] em { background: rgba(255, 255, 255, .2); color: #fff; }
@media (scripting: none) { .pk-bill { display: none; } }
.pk { position: relative; display: flex; flex-direction: column; padding: 28px 24px 24px; border-radius: 22px; transition: transform .35s var(--ease), box-shadow .35s, opacity .8s var(--d, 0s) var(--ease); }
.pk:hover { transform: translateY(-4px); box-shadow: 0 2px 4px rgba(16, 24, 20, .04), 0 24px 50px rgba(10, 123, 82, .14); }
.pk-hot { border: 2px solid var(--primary); box-shadow: 0 2px 4px rgba(16, 24, 20, .04), 0 26px 60px rgba(10, 123, 82, .18); }
.pk-tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; font-size: 12.5px; font-weight: 600; white-space: nowrap;
  color: #fff; background: var(--primary); box-shadow: 0 6px 16px rgba(10, 123, 82, .3); }
.pk h3 { font-size: 24px; font-weight: 700; letter-spacing: -.01em; }
.pk h3 span { font-weight: 500; color: var(--primary); }
.pk-for { font-size: 13.5px; font-weight: 600; color: var(--primary); margin-top: 2px; }
.pk-desc { font-size: 14px; color: var(--muted); line-height: 1.65; margin: 8px 0 18px; min-height: 3.3em; }
.pk-price { display: flex; flex-wrap: wrap; align-items: baseline; column-gap: 8px; }
.pk-price b { font-size: 44px; line-height: 1.1; font-weight: 700; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pk-price span { font-size: 14px; color: var(--muted); }
.pk-base { font-size: 14px; color: var(--muted); margin: 4px 0 16px; min-height: 1.6em; }
.pk-base b { color: var(--ink); font-weight: 600; }
.pk-total { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--canvas); margin-bottom: 16px; }
.pk-total-l { font-size: 13px; color: var(--muted); }
.pk-total-v { font-size: 18px; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.pk-total-v.na { font-size: 13px; font-weight: 500; color: var(--muted); white-space: normal; text-align: right; }
.pk-total-v.bump { animation: pop .35s var(--ease); }
.pk-btn { width: 100%; height: 48px; font-size: 15px; color: var(--primary); background: #fff; border: 1.5px solid var(--primary); }
.pk-btn:hover { background: #e7faf2; }
.pk-hot .pk-btn { color: #fff; background: var(--primary); }
.pk-hot .pk-btn:hover { background: var(--primary-hover); }
.pk-feats { display: grid; gap: 9px; margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.pk-feats li { position: relative; padding-left: 26px; font-size: 14.5px; line-height: 1.6; }
.pk-feats li::before { content: "✓"; position: absolute; left: 0; top: 1px; width: 18px; height: 18px; border-radius: 6px; display: grid; place-items: center;
  font-size: 11px; font-weight: 700; color: var(--primary); background: #e7faf2; }
.pk-feats .pk-users { margin-top: 4px; color: var(--muted); font-size: 13.5px; }
.pk-feats .pk-users::before { content: ""; background: var(--canvas) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%235a6661' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='8' r='4'/%3E%3Cpath d='M4 21a8 8 0 0 1 16 0'/%3E%3C/svg%3E") center / 12px no-repeat; }
.addons { display: grid; grid-template-columns: repeat(auto-fit, minmax(330px, 1fr)); gap: 14px; margin-top: 26px; }
.addon { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 16px; transition: transform .3s var(--ease), border-color .3s, opacity .8s var(--d, 0s) var(--ease); }
.addon > div:first-child { min-width: 0; display: grid; gap: 2px; }
.addon-k { font-size: 12px; font-weight: 600; color: var(--primary); }
.addon b { font-size: 16px; font-weight: 600; }
.addon > div:first-child > span:last-child { font-size: 13px; color: var(--muted); line-height: 1.55; }
.addon-p { flex: none; text-align: right; }
.addon-p b { display: block; font-size: 22px; font-weight: 700; color: var(--ink); font-variant-numeric: tabular-nums; white-space: nowrap; }
.addon-p span { font-size: 12.5px; color: var(--muted); white-space: nowrap; }
.addon-custom { background: linear-gradient(135deg, #f1fbf6, #fff); border-style: dashed; border-color: #bfeedb; }
.addon-custom:hover { transform: translateY(-3px); border-color: var(--primary); }
.addon-custom .addon-p b { font-size: 16px; color: var(--primary); }
.pk-more { margin-top: 14px; border-top: 1px dashed var(--line); padding-top: 12px; }
.pk-more summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--primary); }
.pk-more summary::-webkit-details-marker { display: none; }
.pk-more summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
.pk-more[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.pk-more[open] summary { margin-bottom: 4px; }
.pk-more-body { animation: fadeIn .35s var(--ease); }
.pk-more h4 { margin: 12px 0 4px; font-size: 13px; font-weight: 700; color: var(--ink); }
.pk-more ul { display: grid; gap: 3px; }
.pk-more li { position: relative; padding-left: 14px; font-size: 13.5px; line-height: 1.6; color: var(--muted); }
.pk-more li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.cmp { margin-top: 26px; border: 1px solid var(--line); border-radius: 18px; background: var(--paper); overflow: hidden; }
.cmp summary { cursor: pointer; list-style: none; display: flex; justify-content: center; align-items: center; gap: 10px; padding: 16px; font-weight: 600; color: var(--primary); }
.cmp summary::-webkit-details-marker { display: none; }
.cmp summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(45deg) translateY(-2px); transition: transform .3s var(--ease); }
.cmp[open] summary::after { transform: rotate(-135deg) translateY(-2px); }
.cmp[open] summary { border-bottom: 1px solid var(--line); }
.cmp-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.cmp table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 14px; table-layout: fixed; }
.cmp thead th:first-child { width: 250px; }
.cmp th, .cmp td { padding: 11px 14px; text-align: center; border-bottom: 1px solid var(--line); vertical-align: middle; line-height: 1.45; }
.cmp tbody th { text-align: left; font-weight: 500; color: var(--ink); }
.cmp thead th { font-size: 12px; font-weight: 500; color: var(--muted); background: var(--canvas); }
.cmp thead th b { display: block; font-size: 16px; font-weight: 700; color: var(--ink); }
.cmp thead th:nth-child(3), .cmp tbody td:nth-child(3) { background: #f1fbf6; }
.cmp tr > :first-child { position: sticky; left: 0; z-index: 1; background: var(--paper); box-shadow: 1px 0 0 var(--line); }
.cmp thead tr > :first-child { background: var(--canvas); }
.cmp .cmp-g th { position: static; text-align: left; font-size: 12.5px; font-weight: 700; letter-spacing: .02em; color: var(--primary); background: var(--canvas); box-shadow: none; }
.cmp td { color: var(--muted); font-size: 13px; }
.cmp .y { font-style: normal; display: inline-grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; font-size: 12px; font-weight: 700; color: var(--primary); background: #e7faf2; }
.cmp .n { font-style: normal; color: #b7c1bc; }
.pk-notes { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 24px; margin-top: 26px; font-size: 13px; color: var(--muted); }
.pk-notes li { position: relative; padding-left: 14px; }
.pk-notes li::before { content: ""; position: absolute; left: 0; top: .65em; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }

/* ── ปรับแต่งตามธุรกิจ ── */
.dev { background: radial-gradient(70% 60% at 85% 0%, rgba(16, 205, 136, .16), transparent 60%), linear-gradient(180deg, #06150f, var(--g-950)); }
.head-dark { max-width: 760px; }
.dev-grid { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, .85fr); gap: clamp(32px, 5vw, 64px); align-items: start; }
.svcs { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.svc { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: 18px; box-shadow: none; transition: transform .35s var(--ease), border-color .35s, background .35s, opacity .8s var(--d, 0s) var(--ease); }
.svc:hover { transform: translateY(-4px); border-color: rgba(16, 205, 136, .5); background: rgba(16, 205, 136, .08); }
.svc-n { font-size: 12px; color: var(--brand); }
.svc b { font-size: 18px; font-weight: 600; }
.svc > span:last-child { font-size: 14px; color: var(--on-dark-2); line-height: 1.7; }
.steps { position: relative; display: grid; gap: 28px; padding-left: 40px; }
.steps-rail { position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: rgba(255, 255, 255, .12); border-radius: 2px; }
.steps-rail i { position: absolute; left: 0; top: 0; width: 100%; height: calc(var(--sp, 0) * 100%); background: linear-gradient(var(--brand), var(--primary)); border-radius: 2px; }
.steps li:not(.steps-rail) { position: relative; display: grid; gap: 2px; }
.steps li:not(.steps-rail)::before { content: ""; position: absolute; left: -36px; top: 4px; width: 16px; height: 16px; border-radius: 50%; background: var(--g-950); border: 2px solid rgba(255, 255, 255, .3); transition: all .4s var(--ease); }
.steps li.lit::before { border-color: var(--brand); background: var(--brand); box-shadow: 0 0 0 6px rgba(16, 205, 136, .18); }
.steps .step-k { font-size: 13px; font-weight: 500; color: var(--brand); }
.steps b { font-size: 18px; font-weight: 600; }
.steps li > span:last-child { font-size: 14.5px; color: var(--on-dark-2); }

/* ── ติดต่อ ── */
.cta { padding: clamp(88px, 12vw, 140px) 0; text-align: center; background: linear-gradient(140deg, var(--g-950) 0%, var(--g-800) 50%, var(--primary) 100%); }
.cta-net { position: absolute; inset: 0; width: 100%; height: 100%; opacity: .75; }
.cta-inner { max-width: 820px; }
.cta h2 { font-size: clamp(32px, 4.6vw, 56px); margin-top: 0; }
.cta p { font-size: 18px; color: var(--on-dark-2); }
/* ── คำถามที่พบบ่อย (details เปิดอ่านได้แม้ไม่รัน JavaScript) ── */
.faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.faq details { background: var(--paper); border: 1px solid var(--line); border-radius: 16px; transition: border-color .25s, box-shadow .25s; }
.faq details[open] { border-color: #bfeedb; box-shadow: var(--shadow); }
.faq summary { list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 18px 22px; font-size: 17px; font-weight: 600; cursor: pointer; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 20px; font-weight: 500; line-height: 1;
  color: var(--primary); background: #e7faf2; border: 1px solid #bfeedb; transition: transform .3s var(--ease); }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq summary:hover { color: var(--primary); }
.faq details p { padding: 0 22px 20px; font-size: 15.5px; line-height: 1.8; color: var(--muted); }

/* การ์ดช่องทางติดต่อ (เขียนไว้ใน index.html · LINE ผูกด้วย contact.js) */
.contact-cards { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; text-align: left; }   /* การ์ดกว้างตามเนื้อหา — แบ่งช่องเท่ากันแล้วอีเมลขาดกลางคำ */
.cc { display: flex; align-items: center; gap: 14px; padding: 16px 22px 16px 18px; min-width: 0; border-radius: 16px; color: #fff; background: rgba(255, 255, 255, .08); border: 1px solid rgba(255, 255, 255, .18);
  backdrop-filter: blur(8px); transition: background .2s, border-color .2s, transform .3s var(--ease); }
a.cc:hover { background: rgba(255, 255, 255, .14); border-color: rgba(255, 255, 255, .32); transform: translateY(-2px); }
.cc-ic { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; color: var(--brand); background: rgba(16, 205, 136, .16); border: 1px solid rgba(16, 205, 136, .45); }
.cc-ic svg, .fc-ic svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.cc-line, .fc-line { background: #06C755; border-color: #06C755; }
.cc-line svg { width: 34px; height: 34px; }
.cc-t { min-width: 0; display: flex; flex-direction: column; gap: 1px; }
.cc-t b { font-size: 16px; font-weight: 600; }
.cc-t small { font-size: 13.5px; color: var(--on-dark-2); white-space: nowrap; }
.cc-nums { display: flex; flex-direction: column; font-size: 15px; font-variant-numeric: tabular-nums; }
.cc-nums a { width: max-content; color: #fff; transition: color .2s; }
.cc-nums a:hover { color: var(--brand); }
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 30px; }

/* ── ท้ายเว็บ ── */
.foot { background: #04110b; padding: 56px 0 28px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr 1.3fr; gap: 32px; padding-bottom: 36px; }
.foot-grid::after { content: ""; position: absolute; left: var(--gutter); right: var(--gutter); bottom: 0; height: 1px; background: rgba(255, 255, 255, .08); }   /* เส้นคั่นเท่าความกว้างเนื้อหา (border ของ .wrap ยาวรวมระยะขอบ) */
.foot-brand img { width: 150px; height: auto; margin-bottom: 14px; }
.foot-brand p { font-size: 14px; color: var(--on-dark-3); max-width: 340px; }
.foot nav { display: grid; gap: 10px; align-content: start; font-size: 14px; }
.foot nav b { font-size: 13px; color: #fff; font-weight: 600; margin-bottom: 4px; }
.foot nav a { color: var(--on-dark-3); transition: color .2s; }
.foot nav a:hover { color: var(--brand); }
.fc { display: flex; align-items: flex-start; gap: 10px; color: var(--on-dark-3); }
.fc-ic { flex: none; width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; color: var(--brand); }
.fc-ic svg { width: 18px; height: 18px; }
.fc-line svg { width: 22px; height: 22px; }
.fc-nums { display: flex; flex-direction: column; gap: 6px; font-variant-numeric: tabular-nums; }

/* กล่อง QR Code ของ LINE (คอมพิวเตอร์ · contact.js สร้าง) */
.qr-dlg { width: min(360px, calc(100vw - 32px)); padding: 26px 24px 22px; border: 0; border-radius: 22px; text-align: center; color: var(--ink); background: var(--paper);
  font-family: var(--font); box-shadow: 0 30px 80px rgba(2, 27, 18, .45); }
.qr-dlg[open] { animation: dlgIn .4s var(--ease); }
.qr-dlg::backdrop { background: rgba(2, 27, 18, .62); backdrop-filter: blur(4px); }
.qr-x { position: absolute; top: 12px; right: 12px; width: 34px; height: 34px; border: 0; border-radius: 10px; background: var(--canvas); color: var(--muted); font-size: 22px; line-height: 1; }
.qr-x:hover { color: var(--ink); }
.qr-head { display: flex; align-items: center; gap: 12px; text-align: left; margin: 0 28px 18px 0; }
.qr-head b { display: block; font-size: 17px; font-weight: 600; }
.qr-head small { display: block; font-size: 13px; color: var(--muted); }
.qr-box { position: relative; width: 236px; margin: 0 auto 18px; padding: 10px; border-radius: 18px; border: 1px solid var(--line); }
.qr-box img { width: 216px; height: 216px; }
.qr-logo { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 12px; display: grid; place-items: center;
  background: #06C755; box-shadow: 0 0 0 4px #fff; }
.qr-logo svg { width: 34px; height: 34px; }
.qr-open { width: 100%; height: 46px; font-size: 15px; background: #06C755; color: #fff; }   /* ตัวหนาบนเขียว LINE — ปุ่มตามแบบของ LINE */
.qr-open:hover { background: #05b34c; }
@keyframes dlgIn { from { opacity: 0; transform: translateY(14px) scale(.96); } to { opacity: 1; transform: none; } }
.foot-bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; padding-top: 22px; font-size: 13px; color: var(--on-dark-3); }
/* ผู้ให้บริการ (ข้อ 50 · ข้อ 78 เอาที่อยู่และเลขผู้เสียภาษีออก เหลือชื่อบริษัท — เจ้าของระบบสั่ง 15 ต.ค. 2569) — ตัวเล็ก สีเดียวกับ © */
.foot-provider { margin-top: 8px; font-size: 13px; line-height: 1.6; color: var(--on-dark-3); }

/* ── ปุ่ม LINE ลอย (contact.js สร้าง) — เขียว LINE #06C755 ใช้เป็นพื้นของโลโก้เท่านั้น · ข้อความอยู่บนป้ายพื้นขาว (ขาวบนเขียว LINE ~2:1 อ่านยาก) ── */
.line-fab { position: fixed; z-index: 55; right: max(18px, calc(env(safe-area-inset-right) + 12px)); bottom: max(18px, calc(env(safe-area-inset-bottom) + 12px));
  width: 58px; height: 58px; border-radius: 50%; background: #06C755; display: grid; place-items: center;
  box-shadow: 0 12px 28px -8px rgba(6, 199, 85, .7), 0 4px 12px rgba(0, 0, 0, .16);
  animation: fabIn .6s 1.2s var(--ease) backwards; transition: transform .3s var(--ease), opacity .3s, box-shadow .3s; }
.line-fab::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid #06C755; pointer-events: none; animation: fabPing 3s 2.4s ease-out infinite; }
.line-fab:hover { transform: translateY(-3px) scale(1.04); box-shadow: 0 16px 32px -8px rgba(6, 199, 85, .8), 0 6px 14px rgba(0, 0, 0, .18); }
.line-fab-ic svg { width: 38px; height: 38px; }
.line-fab-tip { position: absolute; right: calc(100% + 14px); top: 50%; display: block; padding: 9px 14px; border-radius: 14px; white-space: nowrap;
  background: #fff; color: var(--ink); font-size: 14px; font-weight: 600; line-height: 1.35; box-shadow: 0 10px 28px rgba(16, 24, 20, .18);
  opacity: 0; visibility: hidden; transform: translate(8px, -50%); transition: opacity .3s, transform .35s var(--ease), visibility .3s; }
.line-fab-tip small { display: block; font-size: 12px; font-weight: 500; color: var(--muted); }
.line-fab-tip::after { content: ""; position: absolute; right: -6px; top: 50%; width: 12px; height: 12px; margin-top: -6px; background: #fff; transform: rotate(45deg); border-radius: 2px; }
.line-fab:hover .line-fab-tip, .line-fab:focus-visible .line-fab-tip, .line-fab.greet .line-fab-tip { opacity: 1; visibility: visible; transform: translate(0, -50%); }
.line-fab.away, .nav.open ~ .line-fab { opacity: 0; transform: translateY(18px) scale(.85); pointer-events: none; }
@keyframes fabIn { from { opacity: 0; transform: translateY(24px) scale(.5); } to { opacity: 1; transform: none; } }
@keyframes fabPing { 0% { transform: scale(1); opacity: .65; } 70%, 100% { transform: scale(1.45); opacity: 0; } }

/* ── การเคลื่อนไหว ── */
@keyframes rise { from { opacity: 0; transform: translateY(22px); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { translate: 0 0; } 50% { translate: 0 -10px; } }
@keyframes grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes breathe { from { opacity: .7; } to { opacity: 1; } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes cue { 0% { opacity: 0; transform: translateY(0); } 30% { opacity: 1; } 80% { opacity: 0; transform: translateY(14px); } 100% { opacity: 0; } }
@keyframes marquee { to { transform: translateX(-50%); } }
@keyframes pop { 0% { opacity: 0; transform: scale(.85); } 60% { transform: scale(1.04); } 100% { opacity: 1; transform: none; } }
@keyframes swap { 0% { opacity: .2; transform: translateY(10px) scale(.985); } 100% { opacity: 1; transform: none; } }
@keyframes slideIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes msgIn { from { opacity: 0; transform: translateY(10px) scale(.98); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .25; } 40% { opacity: 1; } }

/* ── จอแคบ ── */
@media (max-width: 1240px) {
  .pk-grid-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 860px; margin: 0 auto; gap: 18px; }
}

@media (max-width: 1080px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { height: 420px; max-width: 560px; width: 100%; }
  .flow { grid-template-columns: 1fr; }
  .flow-steps { flex-direction: row; overflow-x: auto; gap: 8px; padding-bottom: 6px; scrollbar-width: none; }
  .flow-steps::-webkit-scrollbar { display: none; }
  .flow-steps li:not(.flow-rail) { flex: none; }
  .flow-steps button { grid-template-columns: auto 1fr; padding: 10px 14px 10px 10px; }
  .flow-steps .n { width: 34px; height: 34px; font-size: 12px; }
  .flow-steps .s { display: none; }
  .flow-rail { display: none; }
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .biz { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dev-grid { grid-template-columns: 1fr; }
  .hero-sub .hero-grid { grid-template-columns: 1fr; }
  .hero-mock { max-width: 560px; width: 100%; }
  .tool { grid-template-columns: 1fr; }
  .tool-rev .tool-copy { order: 0; }
  .ai-grid { grid-template-columns: 1fr; }
  .plan { grid-template-columns: 1fr; max-width: 620px; }
  .plan-buy { border-right: 0; border-bottom: 1px solid var(--line); }
  .pk-grid, .pk-grid-2, .pk-grid-4 { grid-template-columns: 1fr; max-width: 520px; margin: 0 auto; gap: 26px; }
  .addons { grid-template-columns: 1fr; max-width: 520px; margin-left: auto; margin-right: auto; }
  .pk-desc { min-height: 0; }
  .pk-notes { flex-direction: column; align-items: flex-start; max-width: 520px; margin-left: auto; margin-right: auto; }
}
/* แถบเมนูพับเป็นปุ่มสามขีดที่ 1000px (เดิม 920) — ชื่อเมนูไทย 6 ตัวไม่พอที่ราว 940px แล้วตัดเป็นสองบรรทัด */
@media (max-width: 1000px) {
  .nav-links { position: fixed; top: var(--nav-h); left: 0; right: 0; flex-direction: column; gap: 0; margin: 0; padding: 8px var(--gutter) 18px;
    background: #fff; box-shadow: 0 18px 30px rgba(16, 24, 20, .12);
    visibility: hidden; opacity: 0; transform: translateY(-8px); transition: opacity .25s, transform .25s var(--ease), visibility .25s; }
  .nav.open .nav-links { visibility: visible; opacity: 1; transform: none; }
  .nav .nav-links a { color: var(--ink); padding: 14px 4px; border-radius: 0; border-bottom: 1px solid var(--line); font-size: 16px; }
  .nav-login-m { display: block; }
  .nav-login { display: none; }
  .nav-burger { display: block; }
  .nav-cta { margin-left: auto; }   /* เมนูพับออกไปแล้ว ไม่มีอะไรดันปุ่มไปทางขวา */
  .nav-links { max-height: calc(100vh - var(--nav-h)); max-height: calc(100dvh - var(--nav-h)); overflow-y: auto; }
  /* เมนูธุรกิจ: รายการแสดงใต้หัวข้อเลย (ไม่มีแผงลอย) · visibility ตามเมนูหลัก — แผงตั้ง visible เองจะโผล่ทั้งที่เมนูปิด */
  .nav-drop { display: block; }
  .nav-drop-t { display: block; }
  .nav-caret, .nav-drop-h, .nav-drop-p::before { display: none; }
  .nav-drop-p, .nav-drop:hover .nav-drop-p, .nav-drop:focus-within .nav-drop-p { position: static; width: auto; margin: 0; padding: 0; display: block; visibility: inherit; opacity: 1; transform: none;
    background: none; border: 0; border-radius: 0; box-shadow: none; }
  .nav .nav-links .nav-drop-p a { flex-direction: row; justify-content: space-between; align-items: baseline; gap: 12px; padding: 11px 4px 11px 18px; border-radius: 0; border-bottom: 1px solid var(--line); }
  .nav .nav-links .nav-drop-p a:hover { background: none; }
  .nav-drop-p b { font-size: 15px; font-weight: 500; }
  .nav-drop-p small { flex: none; }
  .nav .nav-links .nav-drop-p .nav-drop-dev { margin: 0; border: 0; border-bottom: 1px solid var(--line); background: none; }
  .nav-drop-p .nav-drop-dev small { display: none; }
  .nav.open { background: #fff; color: var(--ink); }
  .nav.open .logo-light { opacity: 0; }
  .nav.open .logo-dark { opacity: 1; }
  .nav.open .btn-brand { background: var(--primary); color: #fff; box-shadow: none; }
}
@media (max-width: 920px) {
  .split { grid-template-columns: 1fr; }
  .flow-stage { grid-template-columns: 1fr; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .trust-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .foot-grid { grid-template-columns: 1fr 1fr; }
  .foot-brand, .foot-contact { grid-column: 1 / -1; }
  .contact-cards { flex-direction: column; align-items: stretch; max-width: 420px; margin-left: auto; margin-right: auto; }
  .cc-t small { white-space: normal; overflow-wrap: anywhere; }
}
@media (max-width: 640px) {
  :root { --nav-h: 60px; }
  .nav-inner { gap: 12px; }
  .nav-logo { width: 112px; }
  .hero { padding-bottom: 72px; }
  .hero-title { font-size: clamp(36px, 11vw, 48px); }
  .hero-actions .btn { flex: 1 1 100%; }
  .hero-visual { height: 330px; }
  .win { left: 0; right: 0; top: 30px; padding: 14px; }
  .kpis b { font-size: 17px; }
  .bars { height: 84px; gap: 5px; }
  .t1 { left: -2%; top: 248px; }
  .t2, .scroll-cue { display: none; }
  .t3 { right: 0; top: -14px; }
  .toast { padding: 10px 14px 10px 10px; max-width: 250px; }
  .tick { width: 30px; height: 30px; border-radius: 9px; }
  .mods, .svcs, .trust-grid { grid-template-columns: 1fr; }
  .biz { grid-template-columns: 1fr; gap: 10px; }
  .biz-c { display: grid; grid-template-columns: auto minmax(0, 1fr); column-gap: 14px; row-gap: 2px; padding: 16px; }
  .biz-c .mod-ic { grid-row: span 4; margin: 0; width: 42px; height: 42px; }
  .biz-go { margin-top: 6px; }
  .pain { grid-template-columns: 1fr; grid-template-areas: "h" "was" "now" "win"; }
  .pain-h, .pain-was, .pain-now, .pain-win { padding-left: 18px; padding-right: 18px; }
  .pain-was { border-right: 0; border-bottom: 1px solid var(--line); }
  .pain-h h3 { font-size: 17px; }
  .asks, .plan-groups { grid-template-columns: 1fr; }
  .plan-buy, .plan-all { padding: 24px 20px; }
  .hero-mock { padding: 18px 0 34px; }
  .hm-t1 { left: -2%; }
  .hm-t2 { display: none; }
  .mk-pos { grid-template-columns: 1fr; }
  .mk-bd { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .mk-bd > div:nth-child(n + 3) { display: none; }   /* จอแคบ: สองคอลัมน์แรกพอ — สามคอลัมน์เลขที่ใบงานถูกตัด */
  .mk-bd > div { min-height: 150px; padding: 8px; }
  .mk-body { padding: 12px; }
  .biz-p { min-height: 0; margin-top: 6px; padding-top: 8px; }
  .faq summary { padding: 16px 18px; font-size: 16px; }
  .faq details p { padding: 0 18px 18px; font-size: 15px; }
  .ledger-cols, .lrow { grid-template-columns: minmax(0, 1fr) 72px 72px; }
  .lrow .mono { font-size: 12px; }
  .taxrows li { grid-template-columns: 84px minmax(0, 1fr) auto; padding: 10px 12px; }
  .stats > div { padding: 20px 16px; }
  .cta-actions .btn { flex: 1 1 100%; }
  .chat-body { min-height: 540px; }
  .ai-tabs { width: 100%; }
  .ai-tabs button { padding: 9px 12px; font-size: 14px; }
  .calc { grid-template-columns: 1fr auto; gap: 12px 16px; padding: 16px 18px; }
  .pk-tabs { width: 100%; }
  .cmp table { min-width: 620px; font-size: 13px; }
  .cmp thead th:first-child { width: 132px; }
  .cmp th, .cmp td { padding: 9px 8px; }
  .cmp tbody th { font-size: 12.5px; }
  .pk-tabs button { flex: 1; min-width: 0; padding: 10px 8px; font-size: 15px; }
  .addons { grid-template-columns: 1fr; }
  .calc input[type=range] { grid-column: 1 / -1; grid-row: 2; }
  .calc output { font-size: 16px; }
  .pk-price b { font-size: 38px; }
}

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

/* ═══ บทความความรู้ /guide (build.mjs · articles.mjs) ═══ */
.post-hero { padding: calc(var(--nav-h) + 56px) 0 64px; background: linear-gradient(140deg, var(--g-950) 0%, var(--g-800) 60%, var(--primary) 100%); }
.post-head { max-width: 780px; }   /* เท่า .post-body — ขอบซ้ายของหัวกับเนื้อหาตรงแนวเดียวกัน */
.post-crumbs { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 18px; font-size: 14px; color: var(--on-dark-3); }
.post-crumbs a { color: var(--on-dark-2); }
.post-crumbs a:hover { color: var(--on-dark); }
.post-title { font-size: clamp(30px, 3.6vw, 46px); line-height: 1.3; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.post-meta { margin-top: 16px; font-size: 15px; color: var(--on-dark-2); }
.post-lead { margin-top: 16px; max-width: 640px; font-size: clamp(16px, 1.4vw, 18px); line-height: 1.8; color: var(--on-dark-2); }
.post { padding-top: clamp(48px, 7vw, 80px); }
.post-body { max-width: 780px; }
.post-body h2 { margin: 44px 0 14px; font-size: clamp(22px, 2.4vw, 28px); line-height: 1.4; font-weight: 700; }
.post-body p { margin: 0 0 16px; font-size: 17px; line-height: 1.85; }
.post-body ul, .post-body ol { margin: 0 0 18px; padding-left: 1.4em; font-size: 17px; line-height: 1.85; }
.post-body li { margin: 4px 0; }
.post-body li::marker { color: var(--primary); }
.post-body .post-answer { padding: 20px 24px; border-left: 4px solid var(--brand); border-radius: 0 16px 16px 0; background: #f1fbf6; font-size: 18px; }
.post-body .post-note { margin-top: 36px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 14.5px; line-height: 1.75; color: var(--muted); }
.post-table { margin: 6px 0 22px; overflow-x: auto; }
.post-table table { width: 100%; border-collapse: collapse; font-size: 15.5px; line-height: 1.6; }
.post-table th, .post-table td { padding: 10px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.post-table thead th { background: var(--canvas); font-size: 14px; font-weight: 600; color: var(--muted); }
.post-table tbody th { font-weight: 600; }
.biz-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); max-width: 820px; margin: 0 auto; }
.post-reads { max-width: 900px; margin-left: auto; margin-right: auto; line-height: 1.9; }
@media (max-width: 640px) {
  .biz-2 { grid-template-columns: 1fr; }
  .biz-c.biz-c-text { display: flex; }   /* การ์ดบทความไม่มีไอคอน — ไม่ใช้ตาราง 2 คอลัมน์ของการ์ดธุรกิจ */
  .post-table table { font-size: 14.5px; }
}
