/* =====================================================================
 * landing.css — หน้าแนะนำระบบ SriCare HIS (modules/site/landing.php · รอบ ux U1)
 *   ใช้เฉพาะหน้า landing (ไม่โหลด app.css/bootstrap) · ฟอนต์ Sarabun ในเครื่อง · ไอคอน bootstrap-icons
 *   จอ 390px – 1920px ไม่มีแถบเลื่อนแนวนอน · คอนทราสต์ตาม WCAG AA · prefers-reduced-motion ปิดแอนิเมชัน
 * ===================================================================== */
@font-face { font-family: 'Sarabun'; font-weight: 400; font-display: swap; src: url('../fonts/sarabun-thai-400.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Sarabun'; font-weight: 400; font-display: swap; src: url('../fonts/sarabun-latin-400.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sarabun'; font-weight: 500; font-display: swap; src: url('../fonts/sarabun-thai-500.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Sarabun'; font-weight: 500; font-display: swap; src: url('../fonts/sarabun-latin-500.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sarabun'; font-weight: 600; font-display: swap; src: url('../fonts/sarabun-thai-600.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Sarabun'; font-weight: 600; font-display: swap; src: url('../fonts/sarabun-latin-600.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }
@font-face { font-family: 'Sarabun'; font-weight: 700; font-display: swap; src: url('../fonts/sarabun-thai-700.woff2') format('woff2'); unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: 'Sarabun'; font-weight: 700; font-display: swap; src: url('../fonts/sarabun-latin-700.woff2') format('woff2'); unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+2000-206F, U+2074, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  --ink: #0f172a;
  --muted: #475569;
  --line: #dbe3ee;
  --bg: #ffffff;
  --bg-alt: #f1f6fb;
  --brand: #1d5fa8;
  --brand-d: #0b2e5b;
  --brand-dd: #07203f;
  --teal: #2bb3c0;
  --cta: #c2410c;
  --cta-h: #9a3412;
  --yes: #15803d;
  --no: #b91c1c;
  --part: #b45309;
  --hl: #ffd166;
  --radius: 14px;
  --shadow: 0 1px 2px rgba(15, 23, 42, .06), 0 8px 24px rgba(15, 23, 42, .06);
  --shadow-lg: 0 18px 50px rgba(7, 32, 63, .28);
  --nav-h: 64px;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 12px); -webkit-text-size-adjust: 100%; }
body.lp {
  margin: 0; background: var(--bg); color: var(--ink);
  font-family: 'Sarabun', system-ui, -apple-system, 'Segoe UI', Tahoma, sans-serif; font-size: 1rem; line-height: 1.65;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: var(--brand); }
h1, h2, h3, h4 { line-height: 1.3; margin: 0 0 .5rem; font-weight: 700; }
p { margin: 0 0 1rem; }
:focus-visible { outline: 3px solid #f59e0b; outline-offset: 2px; border-radius: 4px; }
.vh { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 12px; top: -48px; z-index: 100; background: #fff; color: var(--brand-d); padding: .5rem .9rem; border-radius: 8px; font-weight: 600; }
.skip-link:focus { top: 12px; }
.wrap { width: 100%; max-width: 1200px; margin: 0 auto; padding: 0 16px; }
.wrap.narrow { max-width: 860px; }
@media (min-width: 768px) { .wrap { padding: 0 24px; } }

/* ------------------------------------------------------------ ปุ่ม */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem; border: 2px solid transparent; border-radius: 10px;
  padding: .62rem 1.05rem; font: inherit; font-weight: 600; line-height: 1.25; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, border-color .15s, transform .15s, box-shadow .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-lg { padding: .9rem 1.35rem; font-size: 1.06rem; border-radius: 12px; }
.btn-sm { padding: .42rem .8rem; font-size: .92rem; }
.btn-block { width: 100%; }
.btn-cta { background: var(--cta); color: #fff; box-shadow: 0 6px 18px rgba(194, 65, 12, .35); }
.btn-cta:hover { background: var(--cta-h); color: #fff; }
.btn-light { background: #fff; color: var(--brand-d); border-color: #fff; }
.btn-light:hover { background: #eaf2fb; color: var(--brand-d); }
.btn-ghost { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .55); }
.btn-ghost:hover { background: rgba(255, 255, 255, .12); color: #fff; }

/* ------------------------------------------------------------ แถบบน */
.lp-preview { background: #fef3c7; color: #78350f; text-align: center; padding: .45rem 16px; font-size: .9rem; }
.lp-nav {
  position: sticky; top: 0; z-index: 50; background: rgba(7, 32, 63, .94); color: #fff;
  -webkit-backdrop-filter: saturate(140%) blur(8px); backdrop-filter: saturate(140%) blur(8px); transition: box-shadow .2s;
}
.lp-nav.is-scrolled { box-shadow: 0 6px 20px rgba(0, 0, 0, .25); }
.nav-in { display: flex; align-items: center; gap: 12px; min-height: var(--nav-h); position: relative; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-size: 1.2rem; font-weight: 600; white-space: nowrap; }
.brand b { color: var(--hl); }
.nav-links { display: none; }
.nav-links a { color: #e2e8f0; text-decoration: none; padding: .45rem .6rem; border-radius: 8px; font-weight: 500; white-space: nowrap; }
.nav-cta .btn { white-space: nowrap; }
.nav-links a:hover { color: #fff; background: rgba(255, 255, 255, .1); }
.nav-cta { margin-left: auto; display: flex; align-items: center; gap: 8px; }
.nav-cta .btn-ghost { display: none; }
.nav-cta .btn-cta { display: none; }
.lang-sw { font-size: .9rem; color: #cbd5e1; white-space: nowrap; }
.lang-sw a { color: #fff; text-decoration: underline; text-underline-offset: 3px; padding: .3rem .2rem; }
.lang-sw b { color: var(--hl); }
.nav-toggle { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 10px; border: 1px solid rgba(255, 255, 255, .35); background: transparent; color: #fff; font-size: 1.5rem; cursor: pointer; }
.nav-links.is-open {
  display: flex; flex-direction: column; position: absolute; top: 100%; left: 0; right: 0; padding: 8px 16px 16px; gap: 2px;
  background: var(--brand-dd); box-shadow: 0 14px 28px rgba(0, 0, 0, .3);
}
.nav-links.is-open a { padding: .7rem .8rem; }
@media (min-width: 576px) { .nav-cta .btn-cta { display: inline-flex; } }
@media (min-width: 768px) { .nav-cta .btn-ghost { display: inline-flex; } }
@media (min-width: 1180px) {
  .nav-links, .nav-links.is-open { display: flex; position: static; flex-direction: row; padding: 0; background: none; box-shadow: none; margin-left: 12px; gap: 2px; }
  .nav-toggle { display: none; }
}

/* ------------------------------------------------------------ HERO */
.hero {
  position: relative; color: #fff; overflow: hidden; padding: 44px 0 36px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(43, 179, 192, .45), transparent 60%),
    radial-gradient(700px 380px at -10% 110%, rgba(255, 209, 102, .16), transparent 60%),
    linear-gradient(135deg, #07203f 0%, #0b2e5b 42%, #1d5fa8 100%);
}
.hero::before {
  content: ""; position: absolute; inset: 0; opacity: .14; pointer-events: none;
  background-image: linear-gradient(rgba(255, 255, 255, .5) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .5) 1px, transparent 1px);
  background-size: 44px 44px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 85%); mask-image: linear-gradient(180deg, #000 0%, transparent 85%);
}
.hero-in { position: relative; display: grid; gap: 32px; align-items: center; }
.eyebrow { display: inline-flex; align-items: center; gap: .45rem; background: rgba(255, 255, 255, .12); border: 1px solid rgba(255, 255, 255, .25); border-radius: 999px; padding: .3rem .85rem; font-size: .9rem; font-weight: 500; margin-bottom: 1rem; }
.hero h1 { font-size: clamp(2rem, 1.25rem + 3.4vw, 3.5rem); line-height: 1.22; letter-spacing: -.01em; margin-bottom: 1rem; }
.hero h1 .hl { color: var(--hl); display: inline-block; }
.hero .lead { font-size: clamp(1.02rem, .95rem + .35vw, 1.22rem); color: #dbe7f5; max-width: 40rem; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 1.4rem 0 1.1rem; }
.hero-cta .btn { flex: 1 1 220px; }
@media (min-width: 576px) { .hero-cta .btn { flex: 0 0 auto; } }
.hero-ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .35rem; color: #e2e8f0; font-size: .97rem; }
.hero-ticks i { color: #6ee7b7; margin-right: .3rem; }
.hero-visual { position: relative; }
.window { background: #fff; border-radius: var(--radius); box-shadow: var(--shadow-lg); overflow: hidden; border: 1px solid rgba(255, 255, 255, .5); }
.window-bar { display: flex; align-items: center; gap: 6px; padding: 9px 12px; background: #e9eef5; }
.window-bar span { width: 10px; height: 10px; border-radius: 50%; background: #f87171; }
.window-bar span:nth-child(2) { background: #fbbf24; }
.window-bar span:nth-child(3) { background: #34d399; }
.window-bar em { margin-left: 10px; font-style: normal; font-size: .78rem; color: #475569; background: #fff; border-radius: 6px; padding: 1px 10px; }
.mock { display: grid; grid-template-columns: 22% 1fr; min-height: 260px; background: #f4f7fb; }
.mock-side { background: linear-gradient(180deg, #0b2e5b, #1d5fa8); }
.mock-main { padding: 14px; display: grid; gap: 12px; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.mock-row i { height: 54px; border-radius: 10px; background: #fff; box-shadow: var(--shadow); }
.mock-chart { height: 110px; border-radius: 10px; background: linear-gradient(180deg, rgba(43, 179, 192, .25), rgba(43, 179, 192, 0)), #fff; box-shadow: var(--shadow); }
.float-card { display: none; }
.shot-cap { margin: .55rem 0 0; font-size: .8rem; color: #b8c9de; text-align: center; }
@media (min-width: 992px) {
  .hero { padding: 72px 0 48px; }
  .hero-in { grid-template-columns: 1.02fr .98fr; gap: 48px; }
  .float-card {
    display: flex; align-items: center; gap: .6rem; position: absolute; background: #fff; color: var(--ink); border-radius: 12px; padding: .6rem .9rem;
    box-shadow: var(--shadow-lg); font-size: .9rem; max-width: 260px;
  }
  .float-card i { font-size: 1.4rem; color: var(--brand); }
  .float-card b { color: var(--cta); font-size: 1.1rem; }
  .fc-1 { left: -18px; bottom: 34px; }
  .fc-2 { right: 12px; top: -18px; }
}
.stats { position: relative; margin-top: 36px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .2); border-radius: var(--radius); padding: 14px 14px 12px; display: grid; gap: 2px; }
.stat i { font-size: 1.3rem; color: var(--hl); }
.stat-num { font-size: clamp(1.7rem, 1.3rem + 1.6vw, 2.5rem); font-weight: 700; line-height: 1.15; font-variant-numeric: tabular-nums; }
.stat-label { color: #dbe7f5; font-size: .92rem; line-height: 1.35; }
.stats-note { position: relative; margin: 10px 0 0; font-size: .82rem; color: #b8c9de; }
@media (min-width: 768px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }

/* ------------------------------------------------------------ แถบจุดเด่น */
.strip { background: #fff; border-bottom: 1px solid var(--line); }
.strip-in { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 22px; padding: 14px 16px; font-size: .93rem; color: var(--muted); font-weight: 500; }
.strip-in i { color: var(--brand); margin-right: .25rem; }

/* ------------------------------------------------------------ ส่วนเนื้อหา */
.sec { padding: 56px 0; }
.sec.alt { background: var(--bg-alt); }
@media (min-width: 992px) { .sec { padding: 80px 0; } }
.kicker { color: var(--brand); font-weight: 700; font-size: .95rem; letter-spacing: .02em; margin-bottom: .35rem; }
.sec h2 { font-size: clamp(1.55rem, 1.1rem + 1.9vw, 2.4rem); margin-bottom: 1.6rem; max-width: 46rem; }
.sec .sub { color: var(--muted); margin: -1rem 0 1.6rem; max-width: 46rem; }
.grid { display: grid; gap: 16px; }
.g3 { grid-template-columns: minmax(0, 1fr); }
@media (min-width: 640px) { .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 992px) { .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow); min-width: 0; }
.card h3 { font-size: 1.12rem; }

.pain { display: flex; flex-direction: column; gap: 12px; }
.pain-q { display: flex; gap: 12px; align-items: flex-start; }
.pain-q i { flex: 0 0 auto; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; background: #fee2e2; color: var(--no); font-size: 1.25rem; }
.pain-q h3 { margin: 0; padding-top: .4rem; }
.pain-a { margin: 0; display: flex; gap: .55rem; color: var(--muted); border-top: 1px dashed var(--line); padding-top: 12px; }
.pain-a i { color: var(--yes); flex: 0 0 auto; margin-top: .2rem; }
.pain-a b { color: var(--brand-d); }

.ben-card { position: relative; overflow: hidden; }
.ben-ic { display: inline-grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; font-size: 1.45rem; color: #fff; margin-bottom: .8rem;
  background: linear-gradient(135deg, var(--brand), var(--teal)); }
.ben-card p { color: var(--muted); margin: 0; }
.mid-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 32px; }
.mid-cta span { color: var(--muted); font-weight: 500; }

.feat-card { display: flex; flex-direction: column; }
.feat-head { display: flex; align-items: center; gap: 10px; margin-bottom: .6rem; }
.feat-head i { flex: 0 0 auto; width: 40px; height: 40px; display: grid; place-items: center; border-radius: 11px; background: #e0efff; color: var(--brand); font-size: 1.2rem; }
.feat-head h3 { margin: 0; flex: 1 1 auto; min-width: 0; font-size: 1.05rem; }
.pill { flex: 0 0 auto; background: #fff7ed; color: var(--cta-h); border: 1px solid #fed7aa; border-radius: 999px; padding: .1rem .6rem; font-size: .82rem; font-weight: 600; white-space: nowrap; }
.ticks { list-style: none; padding: 0; margin: 0; display: grid; gap: .3rem; }
.ticks li { position: relative; padding-left: 1.55rem; overflow-wrap: anywhere; }
.ticks li::before { content: "\f272"; font-family: 'bootstrap-icons'; position: absolute; left: 0; top: .05rem; color: var(--yes); font-weight: 700; }
.ticks.big li { font-size: 1.04rem; margin-bottom: .2rem; }
.more { margin-top: .5rem; }
.more summary { cursor: pointer; color: var(--brand); font-weight: 600; list-style: none; padding: .2rem 0; }
.more summary::-webkit-details-marker { display: none; }
.more summary::before { content: "\f282"; font-family: 'bootstrap-icons'; display: inline-block; margin-right: .35rem; transition: transform .15s; font-size: .85em; }
.more[open] summary::before { transform: rotate(180deg); }
.more .ticks { margin-top: .4rem; }

.mods { margin-top: 36px; }
.mods h3 { font-size: 1.15rem; margin-bottom: .9rem; }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.chips li { background: #fff; border: 1px solid var(--line); border-radius: 999px; padding: .28rem .8rem; font-size: .9rem; color: var(--ink); box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.stats-s { margin-top: 32px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.stat-s { background: var(--bg-alt); border-radius: 12px; padding: 14px; display: grid; gap: 0; }
.stat-s i { color: var(--brand); font-size: 1.15rem; }
.stat-s .stat-num { font-size: 1.6rem; color: var(--brand-d); }
.stat-s .stat-label { color: var(--muted); font-size: .9rem; }
@media (min-width: 768px) { .stats-s { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; } }

.steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); counter-reset: s; }
@media (min-width: 640px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1100px) { .steps { grid-template-columns: repeat(5, minmax(0, 1fr)); } }
.step { position: relative; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 18px 18px; box-shadow: var(--shadow); }
.step-no { position: absolute; top: -14px; left: 18px; width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--cta); color: #fff; font-weight: 700; box-shadow: 0 4px 10px rgba(194, 65, 12, .35); }
.step > i { display: block; font-size: 1.6rem; color: var(--brand); margin: .2rem 0 .4rem; }
.step h3 { font-size: 1.06rem; }
.step p { color: var(--muted); margin: 0; font-size: .96rem; }

.cmp-wrap { position: relative; overflow-x: auto; border-radius: var(--radius); border: 1px solid var(--line); box-shadow: var(--shadow); background: #fff; -webkit-overflow-scrolling: touch; }
.cmp { width: 100%; min-width: 560px; border-collapse: collapse; }
.cmp th, .cmp td { position: relative; padding: .8rem .9rem; border-bottom: 1px solid var(--line); text-align: center; vertical-align: middle; }
.cmp thead th { background: #f8fafc; font-size: .95rem; }
.cmp tbody th { text-align: left; font-weight: 500; }
.cmp tbody tr:last-child th, .cmp tbody tr:last-child td { border-bottom: 0; }
.cmp .us { background: #eff6ff; }
.cmp thead .us { background: var(--brand); color: #fff; }
.cmp i { font-size: 1.3rem; }
.cmp .yes { color: var(--yes); }
.cmp .no { color: var(--no); }
.cmp .part { color: var(--part); }
.note { color: var(--muted); font-size: .85rem; margin: .6rem 0 0; }
.sec-pair { display: grid; gap: 16px; margin-top: 32px; }
@media (min-width: 992px) { .sec-pair { grid-template-columns: 1fr 1fr; gap: 20px; } }
.sec-card h3 { display: flex; align-items: center; gap: .5rem; }
.sec-card h3 i { color: var(--brand); }

.band { background: linear-gradient(120deg, #c2410c 0%, #b4380a 35%, #0b2e5b 100%); color: #fff; padding: 44px 0; }
.band-in { display: grid; gap: 20px; align-items: center; }
.band h2 { font-size: clamp(1.45rem, 1.05rem + 1.6vw, 2.1rem); margin-bottom: .4rem; }
.band p { margin: 0; color: #fff; }
.band-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.band .btn-cta { background: #fff; color: var(--cta-h); box-shadow: none; }
.band .btn-cta:hover { background: #fff7ed; color: var(--cta-h); }
.band .btn-light { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .7); }
.band .btn-light:hover { background: rgba(255, 255, 255, .12); color: #fff; }
@media (min-width: 992px) { .band-in { grid-template-columns: 1fr auto; } }

.faq { background: #fff; border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; box-shadow: 0 1px 2px rgba(15, 23, 42, .04); }
.faq summary { cursor: pointer; list-style: none; padding: 1rem 3rem 1rem 1.1rem; font-weight: 600; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "\f282"; font-family: 'bootstrap-icons'; position: absolute; right: 1.1rem; top: 1rem; color: var(--brand); transition: transform .15s; }
.faq[open] summary::after { transform: rotate(180deg); }
.faq p { padding: 0 1.1rem 1rem; margin: 0; color: var(--muted); }

/* ------------------------------------------------------------ ติดต่อ / ฟอร์ม */
.contact-in { display: grid; gap: 28px; align-items: start; }
@media (min-width: 992px) { .contact-in { grid-template-columns: .9fr 1.1fr; gap: 48px; } }
.contact-copy p { color: var(--muted); }
.contact-btns { display: grid; gap: 10px; margin-top: 22px; }
.cbtn { display: flex; align-items: center; gap: 12px; text-decoration: none; color: var(--ink); background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); }
.cbtn:hover { border-color: var(--brand); }
.cbtn i { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; color: #fff; background: var(--brand); font-size: 1.15rem; flex: 0 0 auto; }
.cbtn.contact-line i { background: #06c755; }
.cbtn.contact-email i { background: var(--teal); }
.cbtn span { display: grid; min-width: 0; }
.cbtn small { color: var(--muted); overflow-wrap: anywhere; }
.lead-form h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.fld { margin: 0 0 14px; border: 0; padding: 0; min-width: 0; }
.fld label, .fld legend { display: block; font-weight: 600; margin-bottom: .3rem; padding: 0; }
.req { color: var(--no); }
.lead-form input[type=text], .lead-form input[type=tel], .lead-form input[type=email], .lead-form textarea {
  width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #94a3b8; border-radius: 10px; padding: .65rem .8rem;
}
.lead-form textarea { resize: vertical; min-height: 110px; }
.lead-form input:focus, .lead-form textarea:focus { outline: 3px solid rgba(29, 95, 168, .35); outline-offset: 0; border-color: var(--brand); }
.lead-form [aria-invalid=true] { border-color: var(--no); background: #fff7f7; }
.field-error { color: var(--no); font-size: .9rem; margin-top: .25rem; }
.frow { display: grid; gap: 0 14px; }
@media (min-width: 576px) { .frow { grid-template-columns: 1fr 1fr; } }
.hint { color: var(--muted); font-size: .88rem; margin: -6px 0 14px; }
.hint.center { text-align: center; margin: 10px 0 0; }
.checks { display: grid; gap: 6px; }
@media (min-width: 576px) { .checks { grid-template-columns: 1fr 1fr; } }
.chk, .fld label.chk { display: flex; gap: .55rem; align-items: flex-start; font-weight: 400 !important; cursor: pointer; line-height: 1.45; }
.chk input { width: 20px; height: 20px; margin: .12rem 0 0; flex: 0 0 auto; accent-color: var(--brand); }
.privacy { background: #f8fafc; border: 1px solid var(--line); border-radius: 12px; padding: 14px; margin: 4px 0 16px; font-size: .9rem; }
.privacy h4 { font-size: .98rem; display: flex; gap: .4rem; align-items: center; }
.privacy h4 i { color: var(--yes); }
.privacy p { color: var(--muted); margin-bottom: .7rem; }
.consent { font-size: .96rem; color: var(--ink); }
.hp { position: absolute !important; left: -10000px; top: auto; width: 1px; height: 1px; overflow: hidden; }
.alert { border-radius: 10px; padding: .75rem .9rem; margin-bottom: 14px; font-weight: 500; }
.alert-danger { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.alert-warning { background: #fffbeb; color: #92400e; border: 1px solid #fde68a; }
.done { text-align: center; padding: 32px 22px; }
.done > i { font-size: 3rem; color: var(--yes); display: block; margin-bottom: .6rem; }
.done .bi-chat-dots { color: var(--brand); }
.done p { color: var(--muted); }

/* ------------------------------------------------------------ ท้ายหน้า */
.lp-foot { background: var(--brand-dd); color: #cbd5e1; padding: 32px 0; }
.foot-in { display: grid; gap: 16px; }
.foot-brand { display: flex; align-items: center; gap: 12px; color: #fff; }
.foot-brand small { display: block; color: #b8c9de; }
.foot-links { display: flex; flex-wrap: wrap; gap: 6px 18px; }
.foot-links a { color: #e2e8f0; text-decoration: none; }
.foot-links a:hover { color: #fff; text-decoration: underline; }
.credit { margin: 0; font-size: .9rem; color: #b8c9de; }
@media (min-width: 992px) { .foot-in { grid-template-columns: auto 1fr auto; align-items: center; } .foot-links { justify-content: center; } }

/* ------------------------------------------------------------ แถบปุ่มล่างบนมือถือ */
.mbar { display: none; }
@media (max-width: 767.98px) {
  body.lp.has-mbar { padding-bottom: calc(74px + env(safe-area-inset-bottom, 0px)); }
  .mbar {
    display: flex; gap: 8px; position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    background: rgba(255, 255, 255, .97); border-top: 1px solid var(--line); box-shadow: 0 -8px 24px rgba(15, 23, 42, .12);
  }
  .mbar .btn { flex: 1 1 0; min-width: 0; padding: .7rem .5rem; font-size: .95rem; white-space: nowrap; }
  .mbar .btn-light { border-color: var(--line); }
  .mbar .mbar-ic { flex: 0 0 48px; font-size: 1.15rem; }
}


/* ------------------------------------------------------------ ข้อมูลสด / กราฟเคลื่อนไหว (รอบ ux U1b) */
.live-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: #22c55e; vertical-align: middle; box-shadow: 0 0 0 0 rgba(34, 197, 94, .65); animation: lp-pulse 1.6s ease-out infinite; }
@keyframes lp-pulse { 0% { box-shadow: 0 0 0 0 rgba(34, 197, 94, .65); } 70% { box-shadow: 0 0 0 9px rgba(34, 197, 94, 0); } 100% { box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); } }
.sec.live {
  position: relative; overflow: hidden; color: #fff;
  background:
    radial-gradient(820px 380px at 92% 0%, rgba(43, 179, 192, .32), transparent 60%),
    radial-gradient(700px 360px at 0% 100%, rgba(194, 65, 12, .16), transparent 60%),
    linear-gradient(160deg, #07203f 0%, #0b2e5b 55%, #123f75 100%);
}
.sec.live .kicker { color: #7dd3fc; display: inline-flex; align-items: center; gap: .5rem; }
.sec.live h2 { color: #fff; }
.sec.live .sub { color: #d6e4f5; }
.live-grid { display: grid; gap: 16px; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 768px) { .live-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .lc-wide { grid-column: 1 / -1; } }
@media (min-width: 1100px) { .live-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } .lc-wide { grid-column: span 2; } }
.lcard { position: relative; min-width: 0; background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 16px; box-shadow: 0 10px 30px rgba(0, 0, 0, .18); }
.lc-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: .45rem; }
.lc-head h3 { margin: 0; font-size: 1.02rem; color: #fff; }
.lc-head h3 i { color: var(--hl); margin-right: .2rem; }
.live-badge { flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem; font-size: .75rem; font-weight: 700; letter-spacing: .08em; color: #86efac; background: rgba(34, 197, 94, .14); border: 1px solid rgba(34, 197, 94, .45); border-radius: 999px; padding: .1rem .55rem; }
.lc-kpis { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: .1rem 0 .6rem; color: #d6e4f5; font-size: .92rem; }
.lc-kpis b { font-size: 1.35rem; margin-right: .2rem; font-variant-numeric: tabular-nums; }
.lc-kpis .k-opd b { color: #93c5fd; }
.lc-kpis .k-er b { color: #fca5a5; }
.lc-kpis .k-ipd b { color: #fcd34d; }
.chart-box { position: relative; width: 100%; }
.chart-box canvas { display: block; }
.h-daily { height: 240px; }
.h-stream { height: 170px; }
.h-units { height: 310px; }
.h-pie { height: 260px; }
.h-gauge { height: 200px; }
@media (min-width: 992px) { .h-daily { height: 290px; } .h-stream { height: 200px; } }
.stream-now { color: #d6e4f5; font-size: .92rem; min-height: 2.6rem; }
.stream-now b { font-size: 1.9rem; color: #fff; margin-right: .3rem; font-variant-numeric: tabular-nums; }
.lc-note { color: #b8c9de; font-size: .82rem; margin: .45rem 0 0; }
.live-note { color: #b8c9de; font-size: .85rem; margin: 18px 0 0; }
.gauge-mid { position: absolute; left: 0; right: 0; bottom: 8px; text-align: center; pointer-events: none; line-height: 1.1; }
.gauge-mid b { font-size: 2.3rem; color: #fff; font-variant-numeric: tabular-nums; }
.gauge-mid > span { font-size: 1.2rem; color: #d6e4f5; margin-left: 2px; }
.gauge-mid small { display: block; margin-top: .25rem; color: #b8c9de; font-size: .85rem; }
.sec.live .live-cta span { color: #d6e4f5; }
.fc-live { flex-wrap: wrap; max-width: 250px; }
.fc-live .spark { flex: 1 0 100%; position: relative; height: 46px; }
.fc-live b { color: var(--cta); }


/* ------------------------------------------------------------ ตัวคำนวณความคุ้มค่า + คาดการณ์เงิน (รอบ ux U1b) */
.sec.roi { background: linear-gradient(180deg, #fff7ed 0%, #ffffff 46%); }
.roi-cost { display: flex; align-items: center; gap: 12px; margin: -6px 0 22px; padding: 14px 18px; border-radius: var(--radius); background: #0b2e5b; color: #fff; font-size: 1.05rem; box-shadow: var(--shadow-lg); }
.roi-cost[hidden] { display: none; }
.roi-cost i { font-size: 1.6rem; color: var(--hl); }
.roi-cost b { color: var(--hl); font-size: 1.5rem; font-variant-numeric: tabular-nums; }
.roi-grid { display: grid; gap: 20px; grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 992px) { .roi-grid { grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 28px; } }
.roi-form h3, .roi-card h3 { font-size: 1.1rem; display: flex; align-items: center; gap: .45rem; }
.roi-form h3 i { color: var(--brand); }
.roi-field { margin-bottom: 12px; }
.roi-field label { display: block; font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.roi-pair { display: grid; grid-template-columns: minmax(0, 1fr) 118px; gap: 10px; align-items: center; }
.roi-pair input[type=range] { width: 100%; accent-color: var(--cta); min-width: 0; }
.roi-form input[type=number] { width: 100%; font: inherit; font-size: 16px; color: var(--ink); background: #fff; border: 1px solid #94a3b8; border-radius: 8px; padding: .4rem .55rem; text-align: right; }
.roi-form input:focus { outline: 3px solid rgba(29, 95, 168, .35); outline-offset: 0; border-color: var(--brand); }
.roi-assume { margin-top: 8px; border-top: 1px dashed var(--line); padding-top: 10px; }
.roi-assume summary { cursor: pointer; font-weight: 600; color: var(--brand); padding: .3rem 0; }
.roi-agrid { display: grid; gap: 8px 14px; grid-template-columns: minmax(0, 1fr); margin: 8px 0 12px; }
@media (min-width: 576px) { .roi-agrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.roi-a { display: grid; grid-template-columns: minmax(0, 1fr) 92px; gap: 8px; align-items: center; font-size: .88rem; color: var(--muted); }
.btn-outline { background: #fff; color: var(--brand-d); border-color: var(--line); }
.btn-outline:hover { border-color: var(--brand); color: var(--brand); }
.roi-out { display: grid; gap: 16px; min-width: 0; }
.roi-total { background: linear-gradient(135deg, #0b2e5b, #1d5fa8); color: #fff; border: 0; text-align: center; padding: 22px 18px; }
.roi-total > span { display: block; color: #dbe7f5; font-weight: 500; }
.roi-total > b { display: block; font-size: clamp(2rem, 1.4rem + 2.6vw, 3.2rem); line-height: 1.15; color: var(--hl); font-variant-numeric: tabular-nums; margin: .2rem 0; }
.roi-total > b small { font-size: 1rem; color: #fff; }
.roi-sub { color: #dbe7f5; font-size: .95rem; }
.roi-sub b { color: #fff; font-variant-numeric: tabular-nums; }
.h-roi { height: 230px; }
.h-roi5 { height: 200px; }
.roi-list { list-style: none; padding: 0; margin: 12px 0 0; display: grid; gap: 8px; }
.roi-list li { display: grid; grid-template-columns: 12px minmax(0, 1fr) auto; gap: 2px 10px; align-items: baseline; font-size: .95rem; }
.roi-list .roi-dot { width: 12px; height: 12px; border-radius: 3px; align-self: center; }
.roi-list b { font-variant-numeric: tabular-nums; white-space: nowrap; }
.roi-list small { grid-column: 2 / -1; color: var(--muted); font-size: .8rem; }
.roi-disclaimer { margin: 0; font-size: .85rem; color: #78350f; background: #fef3c7; border: 1px solid #fde68a; border-radius: 10px; padding: .6rem .8rem; }
.roi-cta { display: flex; flex-wrap: wrap; gap: 12px; }
.roi-cta .btn { flex: 1 1 240px; }
.fc-kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 16px; }
@media (min-width: 992px) { .fc-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; } }
.fk { background: rgba(255, 255, 255, .06); border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radius); padding: 14px; display: grid; gap: 2px; min-width: 0; }
.fk span { color: #d6e4f5; font-size: .88rem; line-height: 1.35; }
.fk b { font-size: clamp(1.3rem, 1rem + 1.3vw, 1.9rem); color: #fff; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.fk small { color: #b8c9de; font-size: .8rem; }
.fk-hi { border-color: rgba(251, 191, 36, .55); background: rgba(251, 191, 36, .1); }
.fk-hi b { color: var(--hl); }
.h-fc { height: 280px; }
@media (min-width: 992px) { .h-fc { height: 340px; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .btn:hover { transform: none; }
}
@media print {
  .lp-nav, .mbar, .hero::before, .lead-form { display: none !important; }
  .hero { background: #0b2e5b; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
