/* ──────────────────────────────────────────────────────────────
   INT Rx · intelligent-rx.com
   โลกของหน้า: กระจกเครื่องสแกนตอนไฟส่องสว่าง (พื้นฟ้าอ่อนเย็น + ไม้บรรทัดมิลลิเมตร)
   วัตถุบนกระจก: กระดาษกล่องยาขาว ฉลาก บิล — กรอบตรวจจับสีทองโลโก้
   เส้นเลเซอร์แดงใช้เฉพาะตอนกำลังสแกน
   ฟอนต์: Chakra Petch (หัวเรื่อง ปุ่ม ราคา เลขรุ่น) · Noto Sans Thai Looped (เนื้อหา) ·
          DotGothic16 (ตัวเลขแบบหัวพิมพ์จุด เฉพาะจำนวนในผลอ่าน เลขขั้นตอน และบรรทัดรหัส)
   ระบบดีไซน์ทั้งหมดบันทึกไว้ที่ DESIGN.md
   ฟอนต์ทั้งหมด SIL OFL 1.1 — ไฟล์และสัญญาอนุญาตอยู่ใน /fonts
   ────────────────────────────────────────────────────────────── */

@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/chakra-petch-thai-600-normal.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/chakra-petch-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: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/chakra-petch-thai-700-normal.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Chakra Petch"; font-style: normal; font-weight: 700; font-display: swap;
  src: url(fonts/chakra-petch-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; }
@font-face { font-family: "Noto Sans Thai Looped"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/noto-sans-thai-looped-thai-400-normal.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai Looped"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/noto-sans-thai-looped-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: "Noto Sans Thai Looped"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/noto-sans-thai-looped-thai-600-normal.woff2) format("woff2");
  unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Noto Sans Thai Looped"; font-style: normal; font-weight: 600; font-display: swap;
  src: url(fonts/noto-sans-thai-looped-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: "DotGothic16"; font-style: normal; font-weight: 400; font-display: swap;
  src: url(fonts/dotgothic16-latin-400-normal.woff2) format("woff2");
  unicode-range: U+0000-00FF, U+2000-206F, U+2212; }

:root {
  /* กระจกสแกน (โทนสว่าง: กระจกที่ไฟสแกนส่องอยู่) */
  --glass: #e9eff6;
  --glass-2: #dfe7f0;
  --glass-3: #d3dde9;
  --rule: #b8c6d8;
  --tick: rgba(44, 70, 104, 0.42);
  --tick-fine: rgba(44, 70, 104, 0.22);
  --on: #0e1a2b;
  --on-2: #44526a;
  /* กระดาษกล่องยา */
  --carton: #fafaf6;
  --carton-2: #eeefe8;
  --carton-3: #d9ddd2;
  --white: #ffffff;
  --ink: #0e1a2b;
  --ink-2: #44526a;
  /* สัญญาณ */
  --lock: #f2b33d;
  --lock-hi: #ffc861;
  --lock-ink: #7a4f00;     /* ตัวหนังสือสีทองขนาดปกติ */
  --lock-display: #9a6400; /* ตัวหนังสือสีทองขนาดใหญ่ (หัวเรื่อง) */
  --lock-on: #1e1400;
  --laser: #ff3b3b;
  --laser-on: #240000;

  --f-display: "Chakra Petch", "Noto Sans Thai Looped", "Leelawadee UI", Tahoma, sans-serif;
  --f-body: "Noto Sans Thai Looped", "Leelawadee UI", Tahoma, sans-serif;
  --f-dot: "DotGothic16", "Chakra Petch", ui-monospace, monospace;

  --gut: 20px;
  --max: 1200px;
  --r: 12px;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --lift: 0 18px 36px -16px rgba(24, 44, 74, 0.32), 0 3px 8px rgba(24, 44, 74, 0.12);
  --lift-paper: 0 14px 28px -14px rgba(14, 26, 43, 0.28), 0 2px 6px rgba(14, 26, 43, 0.08);
}

*, *::before, *::after { box-sizing: border-box; }
html { font-size: 17px; scroll-behavior: smooth; scroll-padding-top: 76px; -webkit-text-size-adjust: 100%; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--glass);
  color: var(--on);
  font: 400 1rem/1.75 var(--f-body);
  text-rendering: optimizeLegibility;
  scrollbar-color: var(--rule) var(--glass);
}
@media (min-width: 900px) { html { font-size: 18px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-underline-offset: 0.22em; text-decoration-thickness: 1px; }
h1, h2, h3, h4 { font-family: var(--f-display); font-weight: 700; line-height: 1.28; margin: 0; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
b, strong { font-weight: 600; }
::selection { background: var(--lock); color: var(--lock-on); }
:focus-visible { outline: 3px solid var(--lock); outline-offset: 3px; border-radius: 4px; }
.sec--paper :focus-visible, .carton :focus-visible, .dock :focus-visible { outline-color: var(--ink); }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.ic { width: 1.15em; height: 1.15em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.2em; }
.ic--flip { transform: scaleX(-1); }
.ic--tick { width: 1em; height: 1em; margin-right: 0.2em; color: #1877f2; stroke-width: 3; }
.dm { font-family: var(--f-dot); font-weight: 400; font-variant-numeric: tabular-nums; letter-spacing: 0.02em; }
.skip { position: absolute; left: 12px; top: -60px; z-index: 50; padding: 10px 16px; background: var(--lock); color: var(--lock-on); border-radius: 8px; font-weight: 600; text-decoration: none; }
.skip:focus { top: 12px; }
.anchor { position: relative; top: -80px; display: block; height: 0; }

/* ป้ายเล็ก */
.tag {
  display: inline-block; padding: 0.05em 0.5em; margin-left: 0.25em;
  border-radius: 5px; font: 700 0.78em/1.5 var(--f-display); letter-spacing: 0.04em; vertical-align: 0.08em; white-space: nowrap;
}
.tag--pro { background: var(--lock); color: var(--lock-on); }
.tag--new { background: var(--ink); color: var(--white); }

/* กรอบตรวจจับ: มุมสี่ด้านแบบช่องเล็งของเครื่องอ่าน */
.lock, .carton, .ptag, .plan {
  --c: var(--lock);
  --k: 14px;
}
.bracket, .carton::after, .ptag::after {
  content: "";
  position: absolute;
  inset: -6px;
  pointer-events: none;
  background:
    linear-gradient(var(--c), var(--c)) top left / var(--k) 2px,
    linear-gradient(var(--c), var(--c)) top left / 2px var(--k),
    linear-gradient(var(--c), var(--c)) top right / var(--k) 2px,
    linear-gradient(var(--c), var(--c)) top right / 2px var(--k),
    linear-gradient(var(--c), var(--c)) bottom left / var(--k) 2px,
    linear-gradient(var(--c), var(--c)) bottom left / 2px var(--k),
    linear-gradient(var(--c), var(--c)) bottom right / var(--k) 2px,
    linear-gradient(var(--c), var(--c)) bottom right / 2px var(--k);
  background-repeat: no-repeat;
  transition: inset 0.35s var(--ease), opacity 0.35s var(--ease);
}

/* ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5em;
  min-height: 52px; padding: 0.65em 1.25em; white-space: nowrap;
  border: 0; border-radius: 10px;
  font: 700 1.08rem/1.25 var(--f-display); text-decoration: none; text-align: center;
  cursor: pointer;
  transition: background-color 0.2s var(--ease), transform 0.2s var(--ease), box-shadow 0.2s var(--ease);
}
.btn:active { transform: translateY(1px); }
.btn--go { background: var(--lock); color: var(--lock-on); box-shadow: 0 8px 16px -8px rgba(24, 44, 74, 0.4); }
.btn--go:hover { background: var(--lock-hi); transform: translateY(-1px); }
.btn--buy { background: var(--ink); color: var(--white); }
.btn--buy:hover { background: #1c3454; }
.btn--line { background: transparent; color: inherit; box-shadow: inset 0 0 0 1.5px currentColor; }
.btn--line:hover { background: rgba(14, 26, 43, 0.06); }
.btn--ghost { background: var(--white); color: var(--on); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--ghost:hover { background: var(--carton-2); }
.btn--wide { width: 100%; }
.btn:disabled { opacity: 0.7; cursor: progress; }

/* ───────────── แถบบน ───────────── */
.bar {
  position: sticky; top: 0; z-index: 30;
  display: grid; grid-template-columns: auto 1fr auto auto; align-items: center; gap: 12px;
  min-height: 64px; padding: 8px var(--gut);
  background: rgba(250, 251, 253, 0.97);
  border-bottom: 1px solid var(--rule);
}
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; min-height: 44px; }
.brand img { width: 42px; height: 42px; border-radius: 9px; }
.brand-word { display: grid; line-height: 1.05; }
.brand-word b { font: 700 1.3rem/1.05 var(--f-display); color: var(--on); letter-spacing: 0.01em; }
.brand-word em { font-style: normal; color: var(--lock-display); }
.brand-word small { font: 600 11px/1.4 var(--f-display); letter-spacing: 0.12em; color: var(--on-2); white-space: nowrap; }
.nav { display: none; }
.nav a, .menu nav a { text-decoration: none; }
.fb-links { display: flex; gap: 8px; justify-self: end; }
.fb { position: relative; display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: inherit; }
.bar .fb { width: 44px; height: 44px; justify-content: center; border-radius: 50%; }
.fb-mono {
  display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 50%;
  font: 700 14px/1 var(--f-display); letter-spacing: 0.02em;
}
.fb-mono--rx { background: #0f766e; color: #ffffff; }
.fb-mono--ii { background: #13244a; color: var(--lock); box-shadow: inset 0 0 0 1px rgba(242, 179, 61, 0.5); }
.fb-f {
  position: absolute; right: -3px; bottom: -3px;
  width: 19px; height: 19px; border: 2px solid var(--glass); border-radius: 50%; background: #1877f2;
}
.fb-f svg { display: block; width: 100%; height: 100%; fill: #fff; }
.bar .fb-copy { display: none; }
.fb-copy { display: grid; line-height: 1.2; }
.fb-copy b { font: 700 0.86rem/1.25 var(--f-display); }
.fb-copy small { font-size: 0.78rem; opacity: 0.85; display: inline-flex; align-items: center; }
.fb:hover .fb-mono { outline: 2px solid var(--lock); outline-offset: 2px; }

.menu { position: relative; }
.menu summary {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; min-width: 44px; padding: 0 10px;
  border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--rule);
  font: 600 0.95rem/1 var(--f-display); cursor: pointer; list-style: none;
}
.menu summary::-webkit-details-marker { display: none; }
.menu summary span { display: none; }
.menu[open] summary { background: var(--lock); color: var(--lock-on); box-shadow: none; }
.menu nav {
  position: absolute; right: 0; top: calc(100% + 10px); width: min(86vw, 320px);
  display: grid; padding: 8px; background: var(--carton); color: var(--ink);
  border-radius: var(--r); box-shadow: var(--lift);
}
.menu nav a { display: flex; align-items: center; min-height: 48px; padding: 0 12px; border-radius: 8px; font: 600 1.02rem/1.3 var(--f-display); }
.menu nav a:hover { background: var(--carton-2); }
@media (min-width: 480px) { .menu summary span { display: inline; } }

@media (min-width: 1380px) {
  .bar { grid-template-columns: auto 1fr auto; gap: 20px; }
  .menu { display: none; }
  .nav { display: flex; flex-wrap: wrap; justify-content: center; gap: 2px 4px; }
  .nav a { display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 7px; border-radius: 7px; font: 600 0.86rem/1.2 var(--f-display); color: var(--on-2); white-space: nowrap; }
  .nav a:hover { color: var(--on); background: var(--glass-3); }
  .nav-vet { color: var(--lock-ink) !important; }
  .nav { flex-wrap: nowrap; }
}
@media (min-width: 1560px) {
  .bar .fb { width: auto; height: auto; min-height: 46px; padding: 4px 12px 4px 4px; border-radius: 10px; box-shadow: inset 0 0 0 1px var(--rule); }
  .bar .fb-copy { display: grid; }
  .bar .fb-f { left: 26px; right: auto; }
}

/* ───────────── ไม้บรรทัดขอบกระจก ───────────── */
.ruler--top {
  height: 16px;
  border-bottom: 1px solid var(--rule);
  background:
    repeating-linear-gradient(90deg, var(--tick) 0 1px, transparent 1px 40px) left bottom / 100% 14px no-repeat,
    repeating-linear-gradient(90deg, var(--tick-fine) 0 1px, transparent 1px 8px) left bottom / 100% 7px no-repeat;
}

/* ───────────── จอแรก ───────────── */
.hero { position: relative; padding-bottom: 28px; overflow: hidden; }
.hero-grid { display: grid; gap: 22px; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 24px var(--gut) 0; }
.hero h1 { font-size: clamp(2.05rem, 8.4vw, 4.6rem); line-height: 1.16; letter-spacing: -0.01em; }
.hero-hook { text-wrap: balance; margin-top: 14px; font: 700 clamp(1.18rem, 4.6vw, 1.6rem)/1.4 var(--f-display); }
.hero-lede { margin-top: 10px; color: var(--on-2); max-width: 36em; }
.hero-more { display: grid; justify-items: start; }
.hero-move { margin-top: 12px; padding-left: 14px; border-left: 1px solid var(--rule); color: var(--on-2); font-size: 0.94em; max-width: 36em; }
.hero-move b { color: var(--on); }
.news {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px; padding: 8px 12px 8px 8px;
  border-radius: 10px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--rule);
  font-size: 0.94em; line-height: 1.45; text-decoration: none;
}
.news .tag { margin: 0; }
.news:hover { box-shadow: inset 0 0 0 1px var(--lock); }

/* กระจกสแกน + บิลจริง */
.scanbed { position: relative; display: grid; gap: 0; }
.doc {
  position: relative; transform: rotate(-1.6deg); transform-origin: 50% 40%;
  border-radius: 4px; box-shadow: var(--lift); background: #f1f1ec;
}
.doc img { border-radius: 4px; width: 100%; }
.laser-run { position: absolute; inset: 0; pointer-events: none; }
.laser {
  position: absolute; left: -2%; right: -2%; top: 0; height: 2px; opacity: 0;
  background: var(--laser); box-shadow: 0 3px 10px rgba(255, 59, 59, 0.55);
}
.lock {
  position: absolute; top: var(--t); left: var(--l); width: var(--w); height: var(--h);
  margin: 0; padding: 0; box-sizing: border-box;
  --k: 8px;
  background-color: rgba(242, 179, 61, 0.14);
  background-image:
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c)),
    linear-gradient(var(--c), var(--c)), linear-gradient(var(--c), var(--c));
  background-size: var(--k) 2px, 2px var(--k), var(--k) 2px, 2px var(--k), var(--k) 2px, 2px var(--k), var(--k) 2px, 2px var(--k);
  background-position: top left, top left, top right, top right, bottom left, bottom left, bottom right, bottom right;
  background-repeat: no-repeat;
  border-radius: 2px;
}
.slip {
  position: relative; z-index: 2; margin: -34vw 3% 0 12%;
  padding: 12px 16px 8px; background: var(--white); color: var(--ink);
  border-radius: 6px; box-shadow: var(--lift);
  transform: rotate(0.6deg);
}
.slip-head { display: flex; justify-content: space-between; gap: 12px; padding-bottom: 6px; border-bottom: 1px dashed var(--carton-3); font: 600 0.8rem/1.4 var(--f-display); letter-spacing: 0.03em; color: var(--ink-2); }
.slip ol { display: grid; }
.slip li { display: grid; grid-template-columns: 1fr auto; gap: 0 12px; padding: 5px 0; border-bottom: 1px dashed var(--carton-3); font-size: 0.93rem; line-height: 1.38; }
.slip li:last-child { border-bottom: 0; }
.slip li b { font-size: 1.25rem; line-height: 1.1; color: var(--ink); justify-self: end; min-width: 1.6em; text-align: right; }
.slip li small { grid-column: 1 / -1; font-size: 0.82rem; color: var(--lock-ink); font-weight: 600; }
.rescan {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 12px 0 8px; flex: none;
  border: 0; border-radius: 8px; background: var(--glass-2); color: var(--on); box-shadow: inset 0 0 0 1px var(--rule);
  font: 600 0.88rem/1 var(--f-display); cursor: pointer;
}
.rescan:hover { box-shadow: inset 0 0 0 1.5px var(--lock); color: var(--lock-ink); }
.scanbed figcaption { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; font-size: 0.86rem; line-height: 1.45; color: var(--on-2); }
.scanbed figcaption a { color: var(--on); font-weight: 600; }

/* การสแกน: เลเซอร์กวาดลงครั้งเดียว กรอบล็อกทีละบรรทัด ผลอ่านพิมพ์ตาม */
@media (prefers-reduced-motion: no-preference) {
  .is-scanning .laser-run { animation: sweep 1.6s cubic-bezier(0.45, 0, 0.25, 1) 0.25s both; }
  .is-scanning .laser { animation: beam 1.6s linear 0.25s both; }
  .is-scanning .lock { animation: lockon 0.5s var(--ease) calc(0.95s + var(--d) * 0.16s) both; }
  .is-scanning .slip li { animation: print 0.55s steps(14, end) calc(1.1s + var(--d) * 0.16s) both; }
}
@keyframes sweep { from { transform: translateY(1%); } to { transform: translateY(98%); } }
@keyframes beam { 0% { opacity: 0; } 10% { opacity: 1; } 88% { opacity: 1; } 100% { opacity: 0; } }
@keyframes lockon { from { opacity: 0; transform: scale(1.35); } to { opacity: 1; transform: none; } }
@keyframes print { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0 0 0 0); } }

/* แผงควบคุมด้านล่างจอแรก */
.dock {
  position: relative; display: grid; gap: 18px;
  margin: 4px 0 0; padding: 18px;
  background: var(--carton); color: var(--ink); border-radius: var(--r);
  box-shadow: var(--lift);
}
.dock-free { display: grid; gap: 10px; align-content: start; }
.dock-free p { font-size: 0.92rem; line-height: 1.55; color: var(--ink-2); }
.dock-free p b { color: var(--ink); }
.dock-manual { display: inline-flex; align-items: center; gap: 6px; min-height: 44px; vertical-align: middle; font: 600 1rem/1.2 var(--f-display); color: var(--ink); white-space: nowrap; }
.dock-manual:hover { text-decoration: underline; }
.dock-head { font-size: 0.92rem; line-height: 1.5; color: var(--ink-2); margin-bottom: 10px; }
.dock-head b { color: var(--ink); font-family: var(--f-display); font-weight: 700; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.plan {
  position: relative; display: grid; justify-items: center; gap: 2px; min-height: 92px; padding: 10px 4px;
  border: 0; border-radius: 10px; background: var(--white); color: var(--ink);
  box-shadow: inset 0 0 0 1.5px var(--carton-3); cursor: pointer;
  font: 600 0.92rem/1.3 var(--f-display);
  transition: box-shadow 0.25s var(--ease), transform 0.25s var(--ease);
}
.plan b { font-size: clamp(1.25rem, 5.4vw, 1.6rem); line-height: 1.15; }
.plan small { font: 400 0.8rem/1.3 var(--f-body); color: var(--ink-2); }
.plan:hover { box-shadow: inset 0 0 0 2px var(--ink); transform: translateY(-2px); }
.plan:disabled { opacity: 0.7; }
@media (min-width: 760px) {
  .dock { grid-template-columns: minmax(250px, 0.8fr) 1.6fr; gap: 28px; padding: 22px 24px; }
  .dock-buy { padding-left: 28px; border-left: 1px dashed var(--carton-3); }
}

.vet-line {
  display: flex; align-items: center; gap: 10px; max-width: calc(var(--max) + 2 * var(--gut));
  margin: 16px auto 0; padding: 8px var(--gut); min-height: 48px;
  color: var(--on-2); font-size: 0.92rem; line-height: 1.45; text-decoration: none;
}
.vet-line img { width: 30px; height: 30px; border-radius: 7px; background: var(--glass-3); }
.vet-line b { color: var(--lock-ink); }
.vet-line:hover span { color: var(--on); }

@media (min-width: 960px) {
  .hero-grid {
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    grid-template-areas: "copy bed" "more bed" "dock dock";
    gap: 0 52px; padding-top: 26px;
  }
  .hero h1 { font-size: clamp(2.6rem, 3.6vw, 3.4rem); }
  .hero-copy { grid-area: copy; align-self: end; }
  .scanbed { grid-area: bed; align-self: center; justify-self: end; width: 100%; max-width: min(500px, max(340px, calc((100vh - 340px) * 0.88))); padding-bottom: 4px; }
  .hero-more { grid-area: more; align-self: start; padding-bottom: 12px; }
  .dock { grid-area: dock; margin-top: 22px; padding-top: 18px; padding-bottom: 18px; }
  .slip { position: absolute; left: 3%; bottom: 0; width: min(380px, 64%); margin: 0; }
  .scanbed { padding-bottom: 76px !important; }
  .scanbed figcaption { grid-row: 1; justify-content: end; margin: 0 0 10px; text-align: right; }
  .scanbed .rescan { position: absolute; right: 0; bottom: 4px; }
}

/* ───────────── วัตถุกระดาษ ───────────── */
.carton { position: relative; background: var(--carton); color: var(--ink); border-radius: var(--r); box-shadow: var(--lift); }
.carton::after { inset: -7px; opacity: 0.85; }
.carton:hover::after, .carton:focus-within::after { inset: -3px; opacity: 1; }

/* ข้อมูลผลิตภัณฑ์ + ภาพแนะนำ */
.spec-wrap { display: grid; gap: 34px; max-width: calc(var(--max) + 2 * var(--gut)); margin: 0 auto; padding: 44px var(--gut) 56px; }
.spec { padding: 0 0 14px; overflow: visible; }
.spec h2 { padding: 12px 18px; background: var(--ink); color: var(--white); border-radius: var(--r) var(--r) 0 0; font-size: 1.05rem; letter-spacing: 0.04em; }
.spec dl { display: grid; }
.spec dl > div { display: grid; gap: 2px 18px; padding: 12px 18px; border-bottom: 1px solid var(--carton-3); }
.spec dt { font: 700 0.85rem/1.4 var(--f-display); letter-spacing: 0.04em; color: var(--ink-2); }
.spec dd { line-height: 1.6; }
.spec dd b.dm, .spec dd b.num { font-size: 1.2em; }
.code { padding: 12px 18px 0; font-size: 0.8rem; color: var(--ink-2); letter-spacing: 0.08em; word-break: break-word; }
@media (min-width: 640px) { .spec dl > div { grid-template-columns: 9.5rem 1fr; } }

.reel { min-width: 0; }
.ad-track {
  display: grid; grid-auto-flow: column; grid-auto-columns: min(74vw, 300px); gap: 14px;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  padding: 6px 2px 10px; border-radius: var(--r);
}
.ad-track::-webkit-scrollbar { display: none; }
.ad-slide { scroll-snap-align: start; }
.ad-zoom { display: block; width: 100%; padding: 0; border: 0; border-radius: 10px; background: none; cursor: zoom-in; overflow: hidden; box-shadow: var(--lift); }
.ad-zoom img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; transition: transform 0.4s var(--ease); }
.ad-zoom:hover img { transform: scale(1.03); }
.ad-nav { display: flex; align-items: center; justify-content: center; gap: 6px; margin-top: 10px; }
.ad-arrow {
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--glass-2); color: var(--on); box-shadow: inset 0 0 0 1px var(--rule); cursor: pointer;
}
.ad-arrow:hover { box-shadow: inset 0 0 0 1.5px var(--lock); color: var(--lock-ink); }
.ad-dots { display: flex; }
.ad-dot { position: relative; width: 28px; height: 44px; padding: 0; border: 0; background: transparent; cursor: pointer; }
.ad-dot::before {
  content: ""; position: absolute; top: 18px; left: 9px; right: 9px; height: 8px; border-radius: 99px;
  background: var(--rule); transition: background-color 0.2s;
}
.ad-dot[aria-selected="true"] { width: 44px; }
.ad-dot[aria-selected="true"]::before { background: var(--lock); }
.ad-dialog { padding: 0; border: 0; border-radius: 12px; background: transparent; max-width: min(92vw, 560px); }
.ad-dialog::backdrop { background: rgba(5, 10, 18, 0.82); }
.ad-dialog img { max-height: 86vh; width: auto; border-radius: 12px; }
.ad-dialog-close {
  position: absolute; top: 8px; right: 8px; width: 44px; height: 44px; border: 0; border-radius: 50%;
  display: grid; place-items: center; background: var(--ink); color: var(--white); cursor: pointer;
}
@media (min-width: 960px) {
  .spec-wrap { grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); align-items: center; gap: 48px; }
  .ad-track { grid-auto-columns: calc((100% - 28px) / 3); }
}

/* ───────────── ส่วนเนื้อหา ───────────── */
.sec { position: relative; padding: 64px var(--gut) 72px; }
.sec > * { max-width: var(--max); margin-left: auto; margin-right: auto; }
.sec--glass { background: var(--glass); color: var(--on); border-top: 1px solid var(--rule); }
.sec--paper { background: var(--carton); color: var(--ink); }
.sec--paper::before {
  /* รอยปรุขอบกระดาษ */
  content: ""; position: absolute; left: 0; right: 0; top: -6px; height: 12px;
  background: radial-gradient(circle at 6px 6px, var(--glass) 0 3px, transparent 3.5px) 0 0 / 14px 12px repeat-x;
}
.sec-head > * { max-width: 46rem; }
.sec-head h2 { font-size: clamp(1.85rem, 6.2vw, 3.1rem); line-height: 1.22; letter-spacing: -0.005em; }
.sec-head p { margin-top: 14px; max-width: 40em; }
.sec--glass .sec-head p { color: var(--on-2); }
.sec--paper .sec-head p { color: var(--ink-2); }
.sec-head .lead { font: 700 1.2em/1.5 var(--f-display); }
.sec--glass .sec-head .lead { color: var(--on); }
.sec--paper .sec-head .lead { color: var(--ink); }
.legend { font-size: 0.92em; }

/* ขั้นตอน */
.steps { display: grid; gap: 0; margin-top: 34px; counter-reset: s; }
.steps li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 16px 0; border-top: 1px solid var(--rule); }
.sec--paper .steps li { border-color: var(--carton-3); }
.steps li > b {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px;
  background: var(--lock); color: var(--lock-on); font-size: 1.35rem;
}
.steps h3 { font-size: 1.28rem; }
.steps p { margin-top: 4px; color: var(--on-2); }
.sec--paper .steps p { color: var(--ink-2); }
@media (min-width: 900px) {
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
  .steps--paper { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps li { grid-template-columns: 1fr; padding-top: 18px; border-top-width: 2px; }
}
@media (min-width: 1100px) { .steps--paper { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* ข้อเท็จจริงสั้น */
.facts { display: grid; gap: 0; margin-top: 36px; }
.facts li { padding: 16px 0; border-top: 1px solid var(--rule); }
.sec--paper .facts li { border-color: var(--carton-3); }
.facts h3 { font-size: 1.24rem; }
.facts p { margin-top: 6px; color: var(--on-2); }
.sec--paper .facts p { color: var(--ink-2); }
@media (min-width: 900px) {
  .facts { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }
  .facts--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1100px) { .facts--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.facts--stack { grid-template-columns: 1fr !important; margin-top: 0; }

/* หลักฐาน: บิล → หน้าจอโปรแกรม */
.proof { display: grid; gap: 16px; margin-top: 40px; align-items: center; }
.proof img { border-radius: 6px; box-shadow: var(--lift); background: var(--white); }
.proof-paper { width: min(100%, 420px); transform: rotate(-1.2deg); }
.proof-arrow { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: var(--lock); color: var(--lock-on); transform: rotate(90deg); justify-self: center; }
.proof figcaption { font-size: 0.92rem; color: var(--on-2); }
@media (min-width: 900px) {
  .proof { grid-template-columns: minmax(0, 0.75fr) auto minmax(0, 1.6fr); gap: 22px; }
  .proof-arrow { transform: none; }
  .proof figcaption { grid-column: 1 / -1; }
}

/* ───────────── แคตตาล็อกฟังก์ชัน ───────────── */
.catalog { margin-top: 36px; border-top: 2px solid var(--ink); }
.group { border-bottom: 1px solid var(--carton-3); }
.group > summary, .group--link {
  position: relative; display: grid; grid-template-columns: 1fr 44px; gap: 4px 12px; align-items: center;
  padding: 18px 0; cursor: pointer; list-style: none; text-decoration: none; color: inherit;
}
.group > summary::-webkit-details-marker { display: none; }
.group > summary::after, .group--link .ic {
  content: ""; grid-column: 2; grid-row: 1 / span 2; justify-self: end;
  width: 40px; height: 40px; border-radius: 8px;
}
.group > summary::after {
  background:
    linear-gradient(var(--ink), var(--ink)) center / 14px 2px no-repeat,
    linear-gradient(var(--ink), var(--ink)) center / 2px 14px no-repeat,
    var(--carton-2);
  transition: background-color 0.2s;
}
.group[open] > summary::after { background: linear-gradient(var(--lock-on), var(--lock-on)) center / 14px 2px no-repeat, var(--lock); }
.group--link .ic { padding: 9px; background: var(--carton-2); }
.g-name { font: 700 clamp(1.3rem, 4.6vw, 1.75rem)/1.3 var(--f-display); }
.g-sum { grid-column: 1; color: var(--ink-2); font-size: 0.95em; line-height: 1.6; }
.group > summary:hover .g-name, .group--link:hover .g-name { text-decoration: underline; text-decoration-color: var(--lock); text-decoration-thickness: 3px; text-underline-offset: 0.18em; }
.g-body { padding: 4px 0 28px; }
.items { display: grid; gap: 0 32px; }
.items li { position: relative; padding: 9px 0 9px 22px; border-top: 1px dashed var(--carton-3); line-height: 1.6; }
.items li::before { content: ""; position: absolute; left: 2px; top: 0.95em; width: 8px; height: 8px; border-radius: 2px; background: var(--ink); }
.items a { font-weight: 600; color: var(--lock-ink); white-space: nowrap; }
.deep { margin-top: 18px; padding: 18px; background: var(--white); border-radius: var(--r); box-shadow: var(--lift-paper); }
.deep h3 { font-size: 1.22rem; }
.deep h3 + p { margin-top: 6px; color: var(--ink-2); }
.deep p + h3 { margin-top: 18px; }
.more { margin-top: 22px; }
.more a { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 1rem/1.3 var(--f-display); }
.sec--glass .more a { color: var(--lock-ink); }
.sec--paper .more a { color: var(--lock-ink); }
@media (min-width: 900px) {
  .group > summary, .group--link { grid-template-columns: minmax(220px, 0.42fr) 1fr 44px; padding: 22px 0; }
  .g-sum { grid-column: 2; }
  .group > summary::after, .group--link .ic { grid-column: 3; grid-row: 1; }
  .g-body { padding-left: calc(0.42 * (100% - 44px - 24px) + 12px); }
  .items { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 900px) and (max-width: 1099px) { .g-body { padding-left: 0; } }

/* มือถือ: สองรายการพับ */
.twin { display: grid; gap: 22px; margin-top: 36px; }
.fold { padding: 4px 18px 16px; }
.fold summary { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; cursor: pointer; list-style: none; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary .g-name { font-size: 1.15rem; }
.fold summary::after { content: ""; width: 36px; height: 36px; flex: none; border-radius: 8px; color: var(--ink); background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat, var(--carton-2); }
.fold[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, var(--lock); color: var(--lock-on); }
@media (min-width: 900px) { .twin { grid-template-columns: 1fr 1fr; align-items: start; } }

/* ───────────── ฉลาก ───────────── */
.sheet {
  display: grid; gap: 16px; margin-top: 36px; padding: 18px;
  background: #e2e4dc; border-radius: var(--r);
  box-shadow: inset 0 0 0 1px var(--carton-3);
}
.label {
  position: relative; padding: 14px 16px 12px; background: var(--white); color: #111;
  border-radius: 10px; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.06), 0 6px 14px -8px rgba(14, 26, 43, 0.35);
  font-size: 0.95rem; line-height: 1.6;
}
.label-lang { position: absolute; top: 10px; right: 12px; padding: 0 8px; border-radius: 5px; background: var(--ink); color: var(--white); font: 600 0.78rem/1.6 var(--f-display); }
.label-drug { font: 700 1.1rem/1.4 var(--f-display); padding-right: 90px; padding-bottom: 6px; margin-bottom: 6px; border-bottom: 1.5px solid #111; }
.label-warn { font-weight: 600; }
.label [lang="my"], .label [lang="km"], .label [lang="ar"] { color: #2c3646; }
.sheet-note { font-size: 0.86rem; color: var(--ink-2); }
@media (min-width: 900px) {
  .sheet { grid-template-columns: repeat(3, minmax(0, 1fr)); padding: 24px; gap: 20px; }
  .sheet-note { grid-column: 1 / -1; }
}
.langs { margin-top: 40px; }
.langs h3 { font-size: 1.25rem; }
.langs dl { display: grid; margin-top: 10px; }
.langs dl > div { display: grid; gap: 0 18px; padding: 10px 0; border-top: 1px solid var(--carton-3); }
.langs dt { font: 700 0.95rem/1.5 var(--f-display); color: var(--ink-2); }
@media (min-width: 640px) { .langs dl > div { grid-template-columns: 15rem 1fr; } }
.note-wide { margin-top: 26px; padding: 14px 16px; background: var(--white); border-radius: var(--r); color: var(--ink-2); box-shadow: var(--lift-paper); }

/* ───────────── บันทึกรุ่น ───────────── */
.log { margin-top: 32px; }
.log-list li { display: grid; grid-template-columns: 1fr; gap: 4px 22px; padding: 16px 0; border-top: 1px solid var(--rule); }
.log-list li > b { color: var(--lock-ink); font-size: 1.1rem; }
.log-list h3 { font-size: 1.22rem; }
.log-list p { margin-top: 4px; color: var(--on-2); }
.log-more { margin-top: 6px; border-top: 1px solid var(--rule); }
.log-more > summary {
  display: inline-flex; align-items: center; gap: 10px; min-height: 52px; margin-top: 12px; padding: 0 16px;
  border-radius: 10px; box-shadow: inset 0 0 0 1.5px var(--rule); cursor: pointer; list-style: none;
  font: 700 1rem/1.2 var(--f-display);
}
.log-more > summary::-webkit-details-marker { display: none; }
.log-more > summary::after { content: ""; width: 16px; height: 16px; color: var(--lock-ink); background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat; }
.log-more[open] > summary::after { background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat; }
.log-more > summary:hover { box-shadow: inset 0 0 0 1.5px var(--lock); }
.log-more .log-list { margin-top: 12px; }
@media (min-width: 760px) { .log-list li { grid-template-columns: 8.5rem 1fr; } }

/* ───────────── ราคา: ป้ายแขวน ───────────── */
.tags { display: grid; gap: 26px; margin-top: 40px; align-items: start; }
.ptag {
  position: relative; display: grid; gap: 12px; padding: 34px 20px 20px;
  background: var(--white); color: var(--ink); border-radius: var(--r);
  box-shadow: var(--lift-paper), inset 0 0 0 1px var(--carton-3);
  --c: var(--ink); --k: 12px;
}
.ptag::before {
  /* รูเจาะของป้ายแขวน */
  content: ""; position: absolute; top: 12px; left: 50%; width: 12px; height: 12px; margin-left: -6px;
  border-radius: 50%; background: var(--carton); box-shadow: inset 0 1px 2px rgba(14, 26, 43, 0.35);
}
.ptag::after { inset: -6px; opacity: 0; }
.ptag:hover::after, .ptag:focus-within::after { inset: -3px; opacity: 1; }
.ptag--pro { box-shadow: var(--lift-paper), inset 0 0 0 2.5px var(--ink); --c: var(--lock-ink); }
.ptag--pro::after { opacity: 1; inset: -7px; --c: var(--lock); --k: 16px; }
.ptag h3 { display: grid; gap: 2px; }
.p-plan { font: 600 0.92rem/1.4 var(--f-display); color: var(--ink-2); }
.p-price { font: 700 1.7rem/1.25 var(--f-display); }
.p-price b.num { font-size: 1.15em; }
.p-detail { color: var(--ink-2); line-height: 1.6; }
.ptag ul { display: grid; }
.ptag li { position: relative; padding: 7px 0 7px 26px; border-top: 1px dashed var(--carton-3); line-height: 1.55; }
.ptag li::before {
  content: ""; position: absolute; left: 2px; top: 0.75em; width: 14px; height: 8px;
  border-left: 2.5px solid var(--ink); border-bottom: 2.5px solid var(--ink); transform: rotate(-45deg);
}
.p-try { padding: 10px 0; border-top: 1px dashed var(--carton-3); border-bottom: 1px dashed var(--carton-3); font-size: 0.92rem; line-height: 1.6; }
.p-worth { font: 700 0.98rem/1.5 var(--f-display); color: var(--lock-ink); }
.pay-note { font-size: 0.85rem; line-height: 1.55; color: var(--ink-2); }
.price-notice { display: flex; gap: 8px; align-items: flex-start; padding: 10px 12px; border-radius: 10px; background: #fff3d6; color: #6b3f00; box-shadow: inset 0 0 0 1px #e5b44c; font: 600 0.92rem/1.55 var(--f-body); }
.ptag .btn { width: 100%; }
@media (min-width: 720px) { .tags { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1180px) { .tags { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; } }

.addon { display: grid; gap: 14px 28px; margin-top: 30px; padding: 20px; background: var(--white); border-radius: var(--r); box-shadow: var(--lift-paper), inset 0 0 0 1px var(--carton-3); }
.addon h3 { font-size: 1.2rem; }
.addon p { margin-top: 6px; color: var(--ink-2); }
.addon-price { padding-top: 12px; border-top: 1px dashed var(--carton-3); }
.addon-price .p-price { margin: 0; color: var(--ink); }
@media (min-width: 900px) {
  .addon { grid-template-columns: 1fr 17rem; align-items: center; }
  .addon-price { padding: 0 0 0 26px; border-top: 0; border-left: 1px dashed var(--carton-3); }
}

.license { margin-top: 44px; padding-top: 22px; border-top: 2px solid var(--ink); }
.license h3 { font-size: clamp(1.3rem, 4.4vw, 1.6rem); }
.license > p { margin-top: 8px; color: var(--ink-2); max-width: 46em; }
.license ol { display: grid; gap: 10px 22px; margin-top: 18px; }
.license li { display: grid; grid-template-columns: 40px 1fr; gap: 12px; align-items: center; line-height: 1.55; }
.license li b { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 8px; background: var(--ink); color: var(--white); font-size: 1.2rem; }
@media (min-width: 900px) { .license ol { grid-template-columns: repeat(4, minmax(0, 1fr)); } .license li { grid-template-columns: 1fr; align-items: start; } }

/* ───────────── ดาวน์โหลด ───────────── */
.dl-grid { display: grid; gap: 34px; margin-top: 34px; }
.dl-card { display: grid; gap: 14px; padding: 22px 20px; align-content: start; }
.dl-brand { display: flex; align-items: center; gap: 16px; margin: -22px -20px 4px; padding: 18px 20px; border-radius: var(--r) var(--r) 0 0; background: var(--ink); color: var(--white); }
.dl-brand img { width: 78px; height: 78px; border-radius: 10px; }
.dl-brand p { display: grid; line-height: 1.1; }
.dl-brand b { font: 700 2rem/1.05 var(--f-display); }
.dl-brand em { font-style: normal; color: var(--lock); }
.dl-brand small { font: 600 0.72rem/1.6 var(--f-display); letter-spacing: 0.2em; color: #c7d2e1; }
.dl-ver { font-size: 0.92rem; color: var(--ink-2); }
.dl-meta { display: grid; }
.dl-meta > div { display: grid; gap: 0 14px; padding: 8px 0; border-top: 1px dashed var(--carton-3); }
.dl-meta dt { font: 700 0.88rem/1.5 var(--f-display); color: var(--ink-2); }
@media (min-width: 640px) { .dl-meta > div { grid-template-columns: 7.5rem 1fr; } }
.link-strong { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font: 700 1rem/1.3 var(--f-display); color: var(--lock-ink); }
.dl-side .facts li:first-child { border-top: 0; padding-top: 0; }
@media (min-width: 960px) { .dl-grid { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 54px; align-items: start; } }

.install { margin-top: 54px; padding-top: 26px; border-top: 2px solid var(--rule); }
.install h3 { font-size: clamp(1.35rem, 4.6vw, 1.75rem); }
.install > p { margin-top: 8px; color: var(--on-2); }
.install ol { display: grid; margin-top: 20px; }
.install li { display: grid; grid-template-columns: 52px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--rule); }
.install li > b { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 8px; box-shadow: inset 0 0 0 1.5px var(--lock); color: var(--lock-ink); font-size: 1.3rem; }
.install h4 { font-size: 1.2rem; }
.install li p { margin-top: 2px; color: var(--on-2); }
.help { margin-top: 18px; padding: 14px 16px; border-radius: 10px; background: var(--glass-2); box-shadow: inset 0 0 0 1px var(--rule); }
.help b { color: var(--lock-ink); }
@media (min-width: 900px) { .install ol { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 0 22px; } .install li { grid-template-columns: 1fr; border-top-width: 2px; } }

/* ───────────── คำถาม ───────────── */
.faq { margin-top: 30px; }
.faq details { max-width: 52rem; }
.faq details:first-child { border-top: 2px solid var(--ink); }
.faq details { border-bottom: 1px solid var(--carton-3); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 14px; min-height: 64px; padding: 12px 0;
  font: 700 1.15rem/1.4 var(--f-display); cursor: pointer; list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 36px; height: 36px; flex: none; border-radius: 8px; color: var(--ink); background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, linear-gradient(currentColor, currentColor) center / 2px 12px no-repeat, var(--carton-2); }
.faq details[open] summary::after { background: linear-gradient(currentColor, currentColor) center / 12px 2px no-repeat, var(--lock); color: var(--lock-on); }
.faq details p { padding: 0 0 18px; color: var(--ink-2); max-width: 44em; }

/* ───────────── ติดต่อ ───────────── */
.final { display: grid; gap: 36px; }
.final > * { margin: 0; }
.final-copy h2 { font-size: clamp(1.85rem, 6.4vw, 3rem); line-height: 1.22; }
.final-copy p { margin-top: 14px; color: var(--on-2); max-width: 36em; }
.final-actions { display: grid; gap: 10px; margin-top: 24px; }
.contact { display: grid; gap: 18px; padding: 20px; align-content: start; }
.contact > img { width: 160px; height: 160px; background: var(--white); padding: 6px; }
.contact h3 { font-size: 1.3rem; }
.contact div > p { margin-top: 4px; }
.fb--card { display: flex; margin-top: 10px; min-height: 52px; padding: 8px 0 0; border-top: 1px dashed var(--carton-3); }
.fb--card:hover .fb-copy b { text-decoration: underline; }
@media (min-width: 560px) { .final-actions { grid-template-columns: repeat(auto-fit, minmax(14rem, max-content)); } .contact { grid-template-columns: 160px 1fr; } }
@media (min-width: 960px) {
  .final { grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr); align-items: center; padding-left: max(var(--gut), calc((100% - var(--max)) / 2)); padding-right: max(var(--gut), calc((100% - var(--max)) / 2)); }
}

/* ───────────── ท้ายหน้า ───────────── */
.foot {
  display: grid; gap: 18px; padding: 28px var(--gut) 40px;
  border-top: 1px solid var(--rule); background: var(--glass);
}
.foot nav { display: flex; flex-wrap: wrap; gap: 4px 6px; }
.foot nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 10px; border-radius: 8px; color: var(--on-2); text-decoration: none; font: 600 0.95rem/1.2 var(--f-display); }
.foot nav a:hover { color: var(--on); background: var(--glass-2); }
@media (min-width: 760px) { .foot { grid-template-columns: auto 1fr; align-items: center; } .foot nav { justify-content: flex-end; } }
@media (min-width: 1240px) { .foot { padding-left: max(var(--gut), calc((100% - var(--max)) / 2)); padding-right: max(var(--gut), calc((100% - var(--max)) / 2)); } }

/* ราคา: ตัวเลขที่คนอ่านมากที่สุด ใช้ตัวหัวเรื่องให้อ่านชัด (ตัวจุดไว้สำหรับรหัส รุ่น จำนวน) */
.num { font-family: var(--f-display); font-weight: 700; font-variant-numeric: tabular-nums; letter-spacing: 0; }

/* แถบทางลัดล่างจอ (มือถือ) — แผงควบคุมของเครื่องสแกนแบบย่อ */
.quickbar { display: none; }
@media (max-width: 759px) {
  .quickbar {
    position: fixed; z-index: 40; left: 0; right: 0; bottom: 0;
    display: grid; grid-template-columns: 1.25fr 1fr; gap: 8px;
    padding: 8px 12px calc(8px + env(safe-area-inset-bottom));
    background: var(--carton); border-top: 1px solid var(--carton-3);
    box-shadow: 0 -10px 24px -12px rgba(24, 44, 74, 0.3);
    transition: transform 0.35s var(--ease), opacity 0.35s var(--ease);
  }
  .quickbar .btn { min-height: 50px; padding: 0.5em 0.6em; font-size: 1rem; }
  .quickbar.is-away { transform: translateY(110%); opacity: 0; pointer-events: none; }
  .foot { padding-bottom: 96px; }
}
.btn--plate { background: var(--white); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--ink); }
.btn--plate:hover { background: var(--carton-2); }
@media (prefers-reduced-motion: reduce) { .quickbar { transition: none; } }

/* ขั้นตอนติดตั้งอยู่ข้างการ์ดดาวน์โหลด */
.dl-side .install { margin-top: 0; padding-top: 0; border-top: 0; }
.dl-side .install ol { grid-template-columns: 1fr !important; gap: 0 !important; }
.dl-side .install li { grid-template-columns: 52px 1fr !important; border-top-width: 1px !important; }

@media (max-width: 759px) {
  .bar { min-height: 58px; padding-top: 6px; padding-bottom: 6px; }
  .hero-grid { padding-top: 10px; gap: 10px; }
  .hero h1 { font-size: clamp(1.9rem, 7.8vw, 2.35rem); line-height: 1.12; }
  .hero-hook { margin-top: 6px; font-size: 1.05rem; line-height: 1.4; text-wrap: wrap; }
  .doc { width: 80%; }
  .slip { margin: -23vw 0 0 auto; width: 88%; padding: 7px 12px 3px; }
  .slip li { padding: 3px 0; }
  /* จอเล็ก: กรอบบางลงและเผื่อขอบออกไปรอบบรรทัด ไม่ให้มุมกรอบทับตัวอักษร */
  .lock { --k: 5px; margin: -2px 0 0 -3px; padding: 2px 0 0 3px; box-sizing: content-box; background-color: rgba(242, 179, 61, 0.1);
    background-size: var(--k) 1.5px, 1.5px var(--k), var(--k) 1.5px, 1.5px var(--k), var(--k) 1.5px, 1.5px var(--k), var(--k) 1.5px, 1.5px var(--k); }
  .slip-head { font-size: 0.76rem; padding-bottom: 4px; }
  .slip li { font-size: 0.88rem; padding: 4px 0; }
  .slip li b { font-size: 1.1rem; }
  .slip li small { font-size: 0.76rem; }
}


@media (min-width: 960px) and (max-height: 860px) {
  .hero-grid { padding-top: 14px; }
  .hero h1 { font-size: clamp(2.3rem, 3.2vw, 2.9rem); }
  .hero-hook { margin-top: 8px; font-size: 1.3rem; }
  .hero-move { margin-top: 8px; font-size: 0.88em; line-height: 1.6; }
  .hero-lede { margin-top: 6px; }
  .news { margin-top: 10px; }
  .dock { margin-top: 14px; }
  .plan { min-height: 78px; padding: 6px 4px; }
  .dock-head { margin-bottom: 6px; }
}

.price-notice[hidden] { display: none; }
.price-notice .ic { margin-top: 0.25em; }

/* ── ขอบกระจกและกระดาษกล่อง ──
   ไม้บรรทัดมิลลิเมตรด้านซ้ายของกระจกสแกน (จอใหญ่) และมุมกล่องที่ถูกตัดเฉียงแบบกล่องยาไดคัท */
@media (min-width: 960px) {
  .hero::before {
    content: ""; position: absolute; left: 0; top: 16px; bottom: 0; width: 14px;
    border-right: 1px solid var(--rule);
    background:
      repeating-linear-gradient(180deg, var(--tick) 0 1px, transparent 1px 40px) right top / 14px 100% no-repeat,
      repeating-linear-gradient(180deg, var(--tick-fine) 0 1px, transparent 1px 8px) right top / 7px 100% no-repeat;
  }
}
.carton { border-top-right-radius: 0; }
.carton::before {
  content: ""; position: absolute; z-index: 1; top: 0; right: 0; width: 22px; height: 22px; pointer-events: none;
  background: linear-gradient(225deg, var(--glass) 0 50%, var(--carton-3) 50% calc(50% + 1px), transparent calc(50% + 1px));
}
.spec h2 { border-top-right-radius: 0; }

/* มือถือจอแคบ/เตี้ย: ให้ผลอ่านทั้งใบยังอยู่เหนือแถบปุ่มล่างจอ */
@media (max-width: 374px) {
  .hero-hook { font-size: 0.94rem; }
  .hero h1 { font-size: 1.85rem; }
}
@media (max-width: 759px) and (max-height: 620px) {
  .ruler--top { height: 10px; }
  .hero h1 { font-size: 1.7rem; }
  .hero-grid { padding-top: 6px; gap: 8px; }
  .slip li small { display: none; }
  .slip-head { display: none; }
  .slip li { font-size: 0.84rem; padding: 2px 0; }
  .doc { width: 66%; }
  .slip { margin-top: -18vw; }
}

/* จอแคบกว่า 400px: เก็บโลโก้ + INT Rx ไว้ครบ ซ่อนบรรทัดเล็กใต้ชื่อ ไม่ให้ชนปุ่มเพจ */
@media (max-width: 399px) {
  .bar .brand-word small { display: none; }
  .bar .brand-word b { font-size: 1.35rem; }
}

/* ปุ่มในป้ายราคาและการ์ดดาวน์โหลดตัดบรรทัดได้บนจอแคบ ไม่ดันหน้าให้ล้นจอ */
.ptag .btn, .btn--wide { white-space: normal; }
.brand-word b { white-space: nowrap; }
@media (max-width: 359px) {
  .bar { gap: 8px; padding-left: 14px; padding-right: 14px; }
  .brand { gap: 7px; }
  .brand img { width: 36px; height: 36px; }
  .bar .brand-word b { font-size: 1.15rem; }
  .fb-links { gap: 4px; }
}

/* โทนสว่าง: วัตถุกระดาษบนกระจกต้องมีขอบบาง ๆ ไม่ให้กลืนกับพื้น */
.carton, .dock, .slip { box-shadow: var(--lift), 0 0 0 1px rgba(24, 44, 74, 0.08); }
.sec--glass + .sec--glass { border-top: 1px solid var(--rule); }
.doc { box-shadow: 0 16px 30px -14px rgba(24, 44, 74, 0.45), 0 0 0 1px rgba(24, 44, 74, 0.1); }

/* ── แสงไฟเครื่องสแกน ──
   กระจกช่วงจอแรกสว่างที่สุดใต้บิล แล้วค่อย ๆ หรี่ไปที่ขอบ · มีหลอดไฟเส้นบางใต้ไม้บรรทัดที่เลเซอร์เริ่มวิ่ง */
.hero {
  background:
    radial-gradient(ellipse 48% 66% at 73% 44%, #fbfdff 0%, #f6f9fd 42%, #eef3f9 68%, rgba(233, 239, 246, 0) 86%),
    linear-gradient(180deg, #e8eef6 0%, #e4ebf3 60%, #dde5ef 100%);
}
@media (max-width: 959px) {
  .hero { background:
    radial-gradient(ellipse 78% 34% at 50% 52%, #fbfdff 0%, #f6f9fd 45%, #eef3f9 70%, rgba(233, 239, 246, 0) 90%),
    linear-gradient(180deg, #e8eef6, #e4ebf3 60%, #dde5ef); }
}
.ruler--top { position: relative; }
.ruler--top::after {
  content: ""; position: absolute; left: 0; right: 0; top: 100%; height: 22px; pointer-events: none;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0) 0%, #ffffff 18%, #ffffff 82%, rgba(255, 255, 255, 0) 100%) top / 100% 3px no-repeat,
    linear-gradient(180deg, rgba(246, 251, 255, 0.95) 0%, rgba(240, 246, 252, 0.6) 30%, rgba(233, 239, 246, 0) 100%);
}
:root { --tick: rgba(14, 26, 43, 0.45); --tick-fine: rgba(14, 26, 43, 0.24); }

/* ── หัวเรื่องบรรทัดที่สอง: ตัวหมึก + แถบไฮไลต์สีทอง (เหมือนปากกาเน้นบนบิล) ── */
.hero h1 .hl, .sec-head h2 .hl, .final-copy h2 > .hl {
  display: inline; color: var(--ink);
  background: linear-gradient(180deg, transparent 56%, rgba(242, 179, 61, 0.55) 56%, rgba(242, 179, 61, 0.55) 90%, transparent 90%);
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  padding: 0 0.14em;
  margin-left: -0.14em;
}
.final-copy h2 > .hl span { padding: 0; background: none; }

/* บิลตัวอย่าง (วาดเป็นเวกเตอร์ในหน้า) */
.invoice { display: block; width: 100%; height: auto; border-radius: 4px; }
.proof-paper.invoice { width: min(100%, 440px); background: #fffefa; border-radius: 6px; box-shadow: var(--lift); }

/* ฉลากที่พิมพ์จริง วางบนแผ่นฉลากเหมือนดวงอื่น */
.label-print { display: grid; gap: 8px; justify-items: center; }
.label-print img { width: 100%; max-width: 520px; border-radius: 10px; background: #fff; box-shadow: 0 1px 0 rgba(0,0,0,.06), 0 6px 14px -8px rgba(14,26,43,.35); }
.label-print figcaption { font-size: 0.86rem; color: var(--ink-2); }
@media (min-width: 900px) { .label-print { grid-column: 1 / -1; } }
.ad-zoom img { aspect-ratio: 4 / 5; object-fit: cover; }
