
/* ===== page ===== */
/* ================= HRMS PAGE (prefix .hr-) =================
   Sections: local nav · hero (definition + module hub) · HRMS vs HRIS · 7 functions (sticky media) · lifecycle simulator
   (ลองเล่น) · who it fits (+ headcount slider) · price + how to start · FAQ · CTA.
   Shared pieces from kit/core.css: glass, seg, kick, h-sec, lead, more, crumb, btn, faq, rv, hm-cb (CTA bar).
   The local nav + header/dock choreography is the same pattern as pages/organization (kit request: move it into core).
   CI is light-only (kit/ci.css + build.py strip dark rules), so this file has no dark-mode block. */

:root{--hr-panel:linear-gradient(160deg,#FFFFFF 0%,#E4EEF8 100%);--hr-panel-sh:0 30px 60px -34px rgba(0,58,114,.45);--hr-halo:rgba(0,140,255,.18);--hr-bar:rgba(255,255,255,.94)}
html{scroll-padding-top:88px}
.hr-sprite{position:absolute;width:0;height:0;overflow:hidden}
main svg:has(> use){fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
main p,main li,main dd,main small,main .lead{text-wrap:pretty}
main h1,main h2,main h3,main summary,main .h-sec{text-wrap:balance}
main .kick,main .kick b,main .plabel{letter-spacing:0}
main .sec{padding-block:clamp(36px,4.5vw,64px)}

/* ---------- shell on this page (same as organization; candidates for core) ---------- */
.nav .nav-in.glass{--glass-bg:var(--hr-bar);--glass-bg-2:var(--hr-bar)}
.nav{transition:transform .45s var(--ease)}
html.hr-hd-hide:not(.sheet-open) .nav:not(:focus-within){transform:translateY(calc(-100% - 24px))}
@media (min-width:1021px) and (max-width:1180px){.nav .logo{width:118px}.nav .menu > li > a,.nav .menu > li > button{padding-inline:6px}.nav .nav-r .btn{padding:0 14px}}
@media (max-width:560px){.topbar{height:10px}.topbar .wrap{display:none}}
/* dock: this page has its own CTA bar; 621–1360px it becomes a bottom pill that steps aside over the hero, while scrolling
   down and while a [data-dock-away] block (functions, playground) is on screen */
.dock .try-free{display:none}
@media (min-width:621px) and (max-width:1360px){
  .dock{flex-direction:row;align-items:center;right:50%;transform:translateX(50%);gap:6px;padding:6px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .dock a{width:44px;height:44px}
  .dock a img{width:24px;height:24px}
  .dock a span.tip{display:none}
  .dock.away:not(:focus-within),.dock.kb,html.sheet-open .dock{transform:translate(50%,calc(100% + 24px))}
}
@media (max-width:1360px){
  .dock.hr-dk-hide:not(:focus-within){transform:translate(50%,calc(100% + 24px));opacity:0;visibility:hidden;pointer-events:none;transition:transform .4s var(--ease),opacity .3s,visibility 0s .4s}
}

/* ---------- local product nav ---------- */
.hr-lsent{height:0}
.hr-lnav{position:sticky;top:calc(env(safe-area-inset-top,0px) + 10px);z-index:55;margin-top:10px;padding-inline:12px;transition:transform .45s var(--ease),opacity .3s,visibility 0s}
.hr-lnav.hr-off{transform:translateY(-130%);opacity:0;visibility:hidden;pointer-events:none;transition:transform .45s var(--ease),opacity .3s,visibility 0s .45s}
.hr-lnav-in.glass{--glass-bg:var(--hr-bar);--glass-bg-2:var(--hr-bar)}
.hr-lnav-in{position:relative;max-width:1240px;margin-inline:auto;display:flex;align-items:center;gap:14px;height:56px;padding:0 8px 0 20px;border-radius:999px !important}
.hr-lcta{gap:0;transition:opacity .3s,visibility 0s}
.hr-l30{white-space:pre}
@media (min-width:1021px){html:not(.hr-hd-hide) .hr-lcta{visibility:hidden;opacity:0;transition:opacity .2s,visibility 0s .2s}}
@media (max-width:480px){.hr-l30{display:none}}
.hr-lnav-t{min-height:44px;display:flex;align-items:center;gap:10px;font-weight:700;white-space:nowrap;text-decoration:none;color:var(--ink)}
.hr-lnav-t img{width:26px;height:26px}
.hr-lseg{margin-inline:auto;padding:3px;background:transparent}
.hr-lseg a{font-size:14px;padding:7px 14px;color:var(--mid);white-space:nowrap}
.hr-lseg .hr-ltop{display:none}
.hr-lseg:not(:has([aria-current=true])) .thumb{opacity:0}
.hr-lnav .btn{min-height:44px;padding:0 18px;font-size:14px}
.hr-lnav .btn:hover{transform:none}
.hr-lnav-tg{display:none;align-items:center;gap:8px;margin-right:auto;min-height:44px;padding:0 6px 0 0;border:0;background:transparent;font-size:16px;font-weight:700;color:var(--ink);white-space:nowrap}
.hr-lnav-tg img{width:24px;height:24px}
.hr-lnav-tg svg{width:20px;height:20px;transition:transform .35s var(--spring)}
.hr-lnav-tg[aria-expanded=true] svg{transform:rotate(180deg)}
@media (max-width:1100px) and (min-width:901px){.hr-lseg a{padding:7px 10px;font-size:13.5px}}
@media (max-width:900px){
  .hr-lnav-t{display:none}
  .hr-lnav-tg{display:inline-flex}
  .hr-lnav-in{padding-left:14px}
  .hr-lseg{position:absolute;top:calc(100% + 8px);left:0;right:0;display:none;flex-direction:column;gap:2px;padding:8px;border-radius:24px !important;background:var(--card);border:1px solid var(--line);box-shadow:var(--glass-shadow)}
  .hr-lseg.open{display:flex;animation:sheetIn .35s var(--ease)}
  .hr-lseg .thumb{display:none}
  .hr-lseg a,.hr-lseg .hr-ltop{display:flex;align-items:center;min-height:46px;padding:0 16px;font-size:16px;border-radius:16px !important}
  .hr-lseg a[aria-current=true]{background:var(--blue-l);color:var(--blue-2)}
}

/* ---------- hero ---------- */
.hr-hero{padding-block:clamp(20px,3.5vw,48px) clamp(16px,2vw,28px)}
.hr-hero .wrap{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(20px,3vw,40px) clamp(24px,4vw,56px);align-items:center}
.hr-hero h1{font-size:clamp(38px,4.4vw,58px);font-weight:700;letter-spacing:-.035em;line-height:1.14;margin-top:16px}
.hr-h1-2{display:block}
.hr-hero h1 em{font-style:normal}
.hr-hero .lead b{color:var(--ink)}
/* hub */
.hr-hub{position:relative;isolation:isolate;width:min(100%,500px);aspect-ratio:1;margin-inline:auto}
.hr-hub::before{content:"";position:absolute;z-index:-1;inset:4%;border-radius:50% !important;background:radial-gradient(closest-side,var(--hr-halo),transparent 78%)}
.hr-spokes{position:absolute;inset:0;width:100%;height:100%;overflow:visible}
.hr-ring{fill:none;stroke:#289FFF;stroke-width:.35;stroke-dasharray:1 1.6}
.hr-sp line{stroke:#E4EEF8;stroke-width:.45;transition:stroke .3s,stroke-width .3s}
.hr-sp line.hot{stroke:var(--blue);stroke-width:.7}
/* data pulses travel from each module into the shared record */
.hr-pl line{stroke:var(--blue);stroke-width:1;stroke-linecap:round;stroke-dasharray:7 200;stroke-dashoffset:8;animation:hrPulse 4.2s var(--ease) infinite}
.hr-pl line:nth-child(2){animation-delay:.6s}.hr-pl line:nth-child(3){animation-delay:1.2s}.hr-pl line:nth-child(4){animation-delay:1.8s}
.hr-pl line:nth-child(5){animation-delay:2.4s}.hr-pl line:nth-child(6){animation-delay:3s}.hr-pl line:nth-child(7){animation-delay:3.6s}
@keyframes hrPulse{0%{stroke-dashoffset:8;opacity:0}12%{opacity:1}55%{stroke-dashoffset:-96;opacity:1}62%,100%{stroke-dashoffset:-100;opacity:0}}
.hr-core{position:absolute;left:31%;top:31%;width:38%;height:38%;border-radius:50% !important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;text-align:center;padding:8px;animation:rise 1s var(--ease) both}
.hr-core img{width:62%;height:auto}
.hr-core b{font-size:clamp(24px,3vw,36px);line-height:1.1;letter-spacing:-.02em;color:var(--blue);margin-top:4px}
.hr-core small{font-size:13px;line-height:1.3}
.hr-node{position:absolute;transform:translate(-50%,-30px);display:flex;flex-direction:column;align-items:center;gap:6px;font-size:14px;font-weight:600;color:var(--ink);text-decoration:none;white-space:nowrap;animation:rise .9s var(--ease) both}
.hr-node > span{width:60px;height:60px;border-radius:20px !important;display:grid;place-items:center;transition:transform .45s var(--spring),box-shadow .3s}
.hr-node img{width:28px;height:28px}
.hr-node:hover > span,.hr-node:focus-visible > span{transform:translateY(-4px) scale(1.06);box-shadow:0 0 0 2px var(--blue),var(--glass-shadow)}
.hr-node:focus-visible{outline:none}
.hr-node:nth-child(1){left:50%;top:10%}
.hr-node:nth-child(2){left:81.3%;top:25.1%;animation-delay:.08s}
.hr-node:nth-child(3){left:89%;top:58.9%;animation-delay:.16s}
.hr-node:nth-child(4){left:67.4%;top:86%;animation-delay:.24s}
.hr-node:nth-child(5){left:32.6%;top:86%;animation-delay:.32s}
.hr-node:nth-child(6){left:11%;top:58.9%;animation-delay:.4s}
.hr-node:nth-child(7){left:18.7%;top:25.1%;animation-delay:.48s}
/* facts */
.hr-facts{grid-column:1/-1;list-style:none;margin:4px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.hr-facts li{display:flex;flex-direction:column;gap:2px;padding:16px 20px;border-radius:var(--r) !important}
.hr-facts b{font-size:clamp(28px,3vw,40px);font-weight:700;letter-spacing:-.03em;line-height:1.15;color:var(--blue)}
.hr-facts small{font-size:14px}
@media (max-width:900px){.hr-facts{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:760px){
  .hr-hero .wrap{grid-template-columns:minmax(0,1fr);row-gap:0}
  .hr-hero-copy{display:contents}
  .hr-hero .crumb{order:1}
  
  .hr-hero h1{order:3}
  .hr-hub{order:4;width:min(100%,380px);margin-top:18px}
  .hr-hero .lead{order:5;margin-top:14px}
  .hr-hero .hero-ctas{order:6;margin-top:20px}
  .hr-facts{order:7;margin-top:26px}
}
@media (max-width:560px){
  .hr-hero h1{font-size:34px}
  .hr-node{font-size:12px;gap:4px;transform:translate(-50%,-23px)}
  .hr-node > span{width:46px;height:46px;border-radius:15px !important}
  .hr-node img{width:22px;height:22px}
  .hr-core small{display:none}
  .hr-facts{gap:10px}
  .hr-facts li{padding:14px 16px}
  .hr-facts small{font-size:13px}
}

/* ---------- HRMS vs HRIS ---------- */
/* table only (MKT 5/11: rings diagram removed) — full width, larger type */
.hr-vs-in{display:block}
.hr-vs .lead{max-width:72ch}
.hr-vs .h-sec{max-width:none}
.hr-tbl-wrap{margin-top:clamp(20px,2.4vw,28px);border-radius:28px !important;padding:8px clamp(14px,2vw,28px);overflow-x:auto}
.hr-tbl-wrap:focus-visible{outline:2px solid var(--blue);outline-offset:2px}
.hr-tbl{width:100%;border-collapse:collapse;font-size:clamp(16px,1.3vw,18px);line-height:1.6;min-width:520px}
.hr-tbl th,.hr-tbl td{padding:clamp(14px,1.6vw,20px) clamp(12px,1.6vw,22px);text-align:left;vertical-align:top;border-bottom:1px dashed var(--line);transition:background-color .35s,color .35s}
.hr-tbl tr:last-child > *{border-bottom:0}
.hr-tbl thead th{font-size:clamp(19px,1.8vw,24px);font-weight:700}
.hr-tbl thead th.c-hris,.hr-tbl thead th.c-hrms{width:42%}
/* phones: both columns stay on screen (no sideways scroll) */
@media (max-width:640px){.hr-tbl{min-width:0;font-size:14.5px;line-height:1.5}.hr-tbl th,.hr-tbl td{padding:12px 7px}.hr-tbl tbody th{white-space:normal;width:22%}.hr-tbl thead th{font-size:18px}.hr-tbl-wrap{padding:6px 8px}}
.hr-tbl tbody th{font-weight:600;white-space:nowrap;width:1%}
.hr-tbl[data-col=hrms] .c-hrms,.hr-tbl[data-col=hris] .c-hris{background:var(--blue-xl)}
.hr-tbl[data-col=hrms] thead .c-hrms,.hr-tbl[data-col=hris] thead .c-hris{color:var(--blue);border-radius:14px 14px 0 0 !important}
.hr-yes{display:inline-flex;align-items:center;gap:6px;font-weight:700;color:var(--blue)}
.hr-yes svg{width:18px;height:18px;stroke-width:3}

/* ---------- 7 functions: sticky media ---------- */
.hr-fn-head .h-sec{max-width:none}
.hr-fn-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.02fr);gap:clamp(24px,4vw,56px);align-items:start;margin-top:28px}
.hr-fn-list{list-style:none;margin:0;padding:0;display:grid;gap:14px}
.hr-fn-list > li{display:grid}
.hr-fn-it{position:relative;padding:20px 24px 18px 78px;border-radius:28px !important;scroll-margin-top:100px;cursor:pointer;transition:border-color .4s,box-shadow .4s,transform .5s var(--spring)}
.hr-fn-it:hover{transform:translateY(-3px)}
.hr-fn-it.on{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue),var(--glass-shadow)}
.hr-fn-no{position:absolute;left:22px;top:20px;width:40px;height:40px;border-radius:13px !important;display:grid;place-items:center;font-weight:700;font-size:15px;background:var(--blue-l);color:var(--blue);font-variant-numeric:tabular-nums;transition:background-color .4s,color .4s}
.hr-fn-it.on .hr-fn-no{background:var(--blue);color:#fff}
.hr-fn-it h3{font-size:clamp(19px,1.8vw,23px);line-height:1.3}
.hr-fn-it h3:focus{outline:none}
.hr-fn-it p{margin:6px 0 0;font-size:16px}
.hr-fn-pts{list-style:none;margin:12px 0 0;padding:0;display:grid;gap:6px}
.hr-fn-pts li{position:relative;padding-left:24px;font-size:15px;font-weight:500}
.hr-fn-pts li::before{content:"";position:absolute;left:3px;top:.6em;width:8px;height:8px;border-radius:50% !important;background:var(--blue);box-shadow:0 0 0 4px var(--blue-l)}
.hr-fn-it .more{margin-top:10px}
.hr-fn-mimg{display:none}
.hr-stage{position:sticky;top:92px}
.hr-stage-in{position:relative;aspect-ratio:1;width:min(100%,calc(100vh - 140px));margin-inline:auto;border-radius:36px !important;background:var(--hr-panel);box-shadow:var(--hr-panel-sh),inset 0 0 0 1px rgba(0,58,114,.06)}
.hr-stage-in::before{content:"";position:absolute;z-index:-1;inset:-8%;border-radius:50% !important;filter:blur(30px);background:radial-gradient(closest-side,var(--hr-halo),transparent 75%)}
.hr-stage-in > img{position:absolute;inset:5%;width:90%;height:90%;object-fit:contain;opacity:0;transform:translateY(28px) scale(.95);transition:opacity .55s var(--ease),transform .9s var(--ease)}
.hr-stage-in > img.on{opacity:1;transform:none}
.hr-count{position:absolute;right:16px;bottom:16px;font-size:14px;padding:6px 14px;border-radius:999px !important;font-variant-numeric:tabular-nums;--glass-bg:var(--card);--glass-bg-2:var(--card)}
.hr-count b{color:var(--blue)}
.hr-stage-dots{position:absolute;left:22px;bottom:28px;display:flex;gap:6px}
.hr-stage-dots i{width:7px;height:7px;border-radius:9px !important;background:#289FFF;transition:width .45s var(--spring),background-color .3s}
.hr-stage-dots i.on{width:24px;background:var(--blue)}
/* tablets, phones and short screens: no pinned panel — a swipeable row of cards, each with its own screen */
@media (max-width:900px),(max-height:620px){
  .hr-fn-grid{display:block;margin-top:18px}
  .hr-stage{display:none}
  .hr-fn-list{--g:clamp(16px,4vw,40px);display:flex;gap:12px;overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;margin-inline:calc(-1 * var(--g));padding:6px var(--g) 14px;scroll-padding-inline:var(--g)}
  .hr-fn-list::-webkit-scrollbar{display:none}
  .hr-fn-list > li{flex:0 0 min(84vw,380px);scroll-snap-align:start}
  .hr-fn-it{padding:16px 18px 18px;cursor:auto}
  .hr-fn-it:hover{transform:none}
  .hr-fn-it.on{border-color:var(--glass-edge);box-shadow:var(--glass-shadow)}
  .hr-fn-it.on .hr-fn-no{background:var(--blue-l);color:var(--blue)}
  .hr-fn-mimg{display:block;width:100%;height:auto;aspect-ratio:16/11;object-fit:contain;border-radius:20px !important;background:var(--hr-panel);margin-bottom:12px}
  .hr-fn-no{position:static;display:inline-grid;width:34px;height:34px;font-size:14px;margin-bottom:8px}
  .hr-fn-it p{font-size:15px}
}

/* ---------- lifecycle simulator ---------- */
/* employee record */
@keyframes hrFlash{0%,30%{background:var(--orange-l);box-shadow:0 0 0 4px var(--orange-l)}100%{background:transparent;box-shadow:0 0 0 4px transparent}}
.hr-end{margin-top:18px;padding:16px 18px;border-radius:22px !important;background:var(--blue-xl);border:1px solid var(--line);display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between;animation:swapIn .5s var(--ease)}
.hr-end p{margin:0;max-width:56ch}
.hr-end .acts{margin:0}
.hr-end svg{width:18px;height:18px}
@media (max-width:560px){
  /* phones: numbers only; the step name stays for screen readers and shows in the eyebrow above the title */
  .hr-end .acts{width:100%}.hr-end .btn{flex:1 1 auto}
}

/* ---------- who it fits ---------- */
.hr-fit-head{display:grid;grid-template-columns:minmax(0,1.35fr) minmax(0,.65fr);gap:clamp(20px,4vw,48px);align-items:end}
.hr-fit-head .h-sec{max-width:none}
.hr-size{padding:20px 22px;border-radius:24px !important}
.hr-size .plabel{display:flex;align-items:baseline;gap:6px;font-size:14px;font-weight:600}
.hr-size output{font-size:26px;font-weight:700;color:var(--blue);line-height:1}
.hr-size input{width:100%;margin-top:12px}
.hr-size p{margin:10px 0 0;font-size:15px;font-weight:600;color:var(--blue)}
.hr-fit-cards{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:14px}
.hr-fit-cards li{display:flex;flex-direction:column;padding:22px;border-radius:28px !important;transition:transform .5s var(--spring),border-color .35s,box-shadow .35s}
.hr-fit-cards li:hover{transform:translateY(-5px)}
.hr-fit-cards li.on{border-color:var(--blue);box-shadow:0 0 0 1px var(--blue),var(--glass-shadow)}
.hr-fit-n{font-weight:600}
.hr-fit-n b{font-size:clamp(30px,3vw,40px);letter-spacing:-.03em;color:var(--blue);margin-right:4px}
.hr-fit-cards h3{font-size:18px;margin-top:6px}
.hr-fit-cards p{margin:8px 0 14px;font-size:15px}
.hr-fit-tag{margin-top:auto;align-self:flex-start;font-size:14px;font-weight:700;padding:6px 14px;border-radius:999px !important;background:var(--blue-l);color:var(--blue)}
.hr-fit-cards li.on .hr-fit-tag{background:var(--blue);color:#fff}
@media (max-width:900px){.hr-fit-head{grid-template-columns:minmax(0,1fr)}.hr-fit-cards{grid-template-columns:minmax(0,1fr)}.hr-fit-cards li{padding:18px 20px}}

/* ---------- price + how to start ---------- */
.hr-price{padding-top:clamp(20px,3vw,40px)!important}
.hr-price .h-sec{max-width:none}
.hr-plans{list-style:none;margin:24px 0 0;padding:0;display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}
.hr-plans li{position:relative;padding:22px;border-radius:26px !important;transition:transform .5s var(--spring)}
.hr-plans li:hover{transform:translateY(-5px)}
.hr-plans h3{font-size:16px;letter-spacing:.04em;color:var(--blue)}
.hr-pr{margin:8px 0 0;display:flex;align-items:baseline;gap:4px}
.hr-pr b{font-size:clamp(30px,3vw,40px);letter-spacing:-.03em;line-height:1.1}
.hr-pr span{font-size:15px;font-weight:600}
.hr-pr-n{margin:4px 0 0;font-size:13px}
.hr-pr-f{margin:12px 0 0;padding-top:12px;border-top:1px dashed var(--line);font-size:15px;font-weight:500}
@media (max-width:1100px){.hr-plans{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:420px){.hr-plans{grid-template-columns:minmax(0,1fr)}}

/* ---------- "คุณสงสัยไหม" question row (same look as home/price .hm-tq) ---------- */
.hr-tq{display:flex;flex-wrap:wrap;align-items:center;justify-content:center;gap:8px;margin:clamp(20px,2.4vw,32px) 0 0;padding-top:16px;border-top:1px dashed #E4EEF8}
.hr-tq-l{flex:none;white-space:nowrap;display:inline-flex;align-items:center;gap:8px;font-size:clamp(15px,1.4vw,18px);font-weight:700;color:var(--orange)}
.hr-tq-l i{position:relative;width:10px;height:10px;border-radius:50% !important;background:var(--orange)}
.hr-tq-l i::after{content:"";position:absolute;inset:-5px;border-radius:50% !important;border:2px solid var(--orange);animation:hrTq 1.8s ease-out infinite}
@keyframes hrTq{0%{transform:scale(.6);opacity:1}100%{transform:scale(1.6);opacity:0}}
.hr-tq-q{display:inline-flex;align-items:center;gap:8px;min-height:44px;padding:5px 14px 5px 6px;border-radius:999px !important;border:1px solid #E4EEF8;background:#fff;color:var(--ink);font:500 14px/1.35 var(--f);text-align:left;max-width:100%;transition:transform .3s var(--spring),border-color .2s,box-shadow .2s}
.hr-tq-q span{flex:none;width:26px;height:26px;border-radius:50% !important;display:grid;place-items:center;background:var(--blue);color:#fff;font-weight:700;font-size:13px}
.hr-tq-q:hover{transform:translateY(-2px);border-color:var(--blue);box-shadow:0 10px 22px -14px rgba(0,114,243,.6)}
@media (max-width:560px){.hr-tq{justify-content:flex-start;flex-wrap:nowrap;overflow-x:auto;scrollbar-width:none;padding-bottom:4px;margin-inline:-16px;padding-inline:16px}.hr-tq::-webkit-scrollbar{display:none}.hr-tq-q{flex:none;max-width:78vw}}

/* ---------- FAQ ---------- */
.hr-faq .h-sec{font-size:clamp(28px,3.4vw,44px);max-width:16ch}
.hr-faq .faq-links{display:flex;flex-direction:column;align-items:flex-start}

/* headings: the blue sheen runs once when revealed */
main .h-sec em{animation:none}
main .h-sec.in em{animation:sheen 1.8s var(--ease) .2s 1}

@media (prefers-reduced-motion: reduce){
  .hr-pl{display:none}
  .hr-core,.hr-node,.hr-end{animation:none}
  .hr-tq-l i::after{animation:none}
  .hr-stage-in img,.hr-fn-it,.hr-lnav,.hr-lcta,.nav{transition:none}
  .hr-fn-it:hover,.hr-fit-cards li:hover,.hr-plans li:hover,.hr-tq-q:hover{transform:none}
  main .h-sec.in em{animation:none}
}

/* ===== 7 functions: replica screens of the HumanSoft web (built in page.js; layout from the real app, data "ตัวอย่าง").
   Sized in em off one container-relative font size so the whole screen scales with the square panel. ===== */
.hr-stage-in{container-type:inline-size}
.hr-scr{position:absolute;inset:5% 4% 11%;opacity:0;transform:translateY(24px) scale(.96);transition:opacity .55s var(--ease),transform .9s var(--ease);pointer-events:none}
.hr-scr.on{opacity:1;transform:none}
.hr-app{position:relative;height:100%;display:flex;flex-direction:column;border-radius:1.3em !important;overflow:hidden;background:#fff;box-shadow:0 30px 60px -30px rgba(0,58,114,.55),0 0 0 1px rgba(0,40,90,.08);font-size:clamp(9px,2.35cqw,14px);line-height:1.4;color:#008CFF;text-align:left}
.hr-app svg{width:1.2em;height:1.2em;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:none}
.hr-a-bar{flex:none;height:2.3em;display:flex;align-items:center;gap:.45em;padding:0 1em;background:#EEF3F8;border-bottom:1px solid #E1E9F2}
.hr-a-bar i{width:.75em;height:.75em;border-radius:50% !important;background:#FF6100}.hr-a-bar i+i{background:#FF8100}.hr-a-bar i+i+i{background:#008CFF}
.hr-a-bar span{margin:0 auto;padding:.2em 3em;border-radius:.4em !important;background:#fff;font-size:.8em;color:#000000}
.hr-a-tag{position:absolute;right:1em;top:.5em;padding:.15em .6em;border-radius:999px !important;background:#FFF1E8;color:#FF6100;font-size:.75em;font-weight:700}
.hr-a-body{flex:1;display:grid;grid-template-columns:4.6em minmax(0,1fr);min-height:0}
.hr-a-sb{display:flex;flex-direction:column;align-items:center;gap:.15em;padding:.5em .25em;background:linear-gradient(180deg,#008CFF,#008CFF);color:#fff;overflow:hidden}
.hr-a-sb > b{font-size:1.8em;font-weight:800;line-height:1;margin:.15em 0 .3em}
.hr-a-sb span{display:flex;flex-direction:column;align-items:center;gap:.15em;width:4em;padding:.35em 0;border-radius:.6em !important;font-size:.62em;white-space:nowrap;overflow:hidden}
.hr-a-sb span svg{width:2em;height:2em}
.hr-a-sb span.on{background:#fff;color:#008CFF;font-weight:700}
.hr-a-main{display:flex;flex-direction:column;min-width:0;background:#F2F6FA}
.hr-a-top{flex:none;display:flex;align-items:center;gap:.6em;padding:.45em .9em;background:#fff;border-bottom:1px solid #E4EEF8}
.hr-a-top .co{display:flex;flex-direction:column;line-height:1.2}.hr-a-top .co b{font-size:.82em}.hr-a-top .co small{font-size:.66em;color:#000000}
.hr-a-top .ai{display:inline-flex;align-items:center;gap:.3em;margin-left:.4em;padding:.25em .7em;border-radius:999px !important;border:1px solid #E4EEF8;font-size:.72em;font-weight:700;color:#008CFF}
.hr-a-top .ics{margin-left:auto;display:flex;align-items:center;gap:.4em;color:#008CFF}
.hr-a-top .ics i{width:1.5em;height:1.5em;border-radius:50% !important;background:#008CFF;color:#fff;font:700 .7em/1.5em var(--f);text-align:center;font-style:normal}
.hr-a-top .av{width:1.9em;height:1.9em;border-radius:50% !important;display:grid;place-items:center;background:linear-gradient(135deg,#289FFF,#0072F3);color:#fff;font-size:.78em;font-weight:700}
.hr-a-hd{flex:none;display:flex;align-items:center;justify-content:space-between;gap:.8em;padding:.8em 1.1em 1.7em;background:linear-gradient(180deg,#289FFF,#289FFF);color:#fff}
.hr-a-hd > div{display:flex;flex-direction:column;min-width:0}.hr-a-hd small{font-size:.7em;opacity:.92}.hr-a-hd b{font-size:1.3em;font-weight:700}
.hr-a-hd.w{background:#fff;color:#008CFF;padding-bottom:.8em;border-bottom:1px solid #E4EEF8}.hr-a-hd.w b{color:#008CFF}
.hr-a-pg{flex:1;min-height:0;position:relative;display:flex;flex-direction:column;gap:.55em;padding:0 1em 1em;margin-top:-1em;overflow:hidden}
.hr-a-hd.w + .hr-a-pg{margin-top:0;padding-top:.7em}
.hr-a-card{background:#fff;border-radius:.8em !important;padding:.65em .8em;box-shadow:0 0 0 1px #E4EEF8}
.hr-a-card > b{display:block;font-size:.9em;margin-bottom:.35em}.hr-a-card small,.hr-a-box small{font-size:.72em;color:#000000}
.hr-a-btn{display:inline-flex;align-items:center;gap:.3em;padding:.42em .85em;border-radius:.45em !important;background:#008CFF;color:#fff;font-size:.76em;font-weight:700;white-space:nowrap}
.hr-a-btn.w{background:#fff;color:#008CFF;box-shadow:0 0 0 1px rgba(0,0,0,.08)}.hr-a-btn.g{background:#fff;color:#008CFF;box-shadow:0 0 0 1px #289FFF}.hr-a-btn.d{background:#008CFF}
.hr-a-prog{flex:1;max-width:42%;display:flex;flex-direction:column;align-items:flex-end;gap:.2em}
.hr-a-prog::before{content:"";align-self:stretch;height:.45em;border-radius:1em !important;background:rgba(255,255,255,.4)}
.hr-a-prog i{align-self:flex-start;height:.45em;width:96%;margin-top:-.65em;border-radius:1em !important;background:#FF8100}
.hr-a-prog small{font-size:.7em}
.hr-a-split{display:grid;grid-template-columns:9.5em minmax(0,1fr);gap:.6em;min-height:0}
.hr-a-sub{display:flex;flex-direction:column;gap:.3em;padding:.6em;background:#fff;border-radius:.8em !important;box-shadow:0 0 0 1px #E4EEF8}
.hr-a-sub small{font-size:.75em;font-weight:700;margin-bottom:.1em}
.hr-a-sub span{padding:.3em .4em;border-radius:.5em !important;border:1px solid #289FFF;color:#008CFF;font-size:.7em;text-align:center;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hr-a-sub span.on{background:#008CFF;border-color:#008CFF;color:#fff;font-weight:700}
.hr-a-g2{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.55em}
.hr-a-box{padding:.6em;border-radius:.7em !important;background:#fff;box-shadow:0 0 0 1px #E4EEF8}
.hr-a-sex{display:flex;justify-content:space-around;margin:.35em 0 .2em}
.hr-a-sex span{display:flex;flex-direction:column;align-items:center;font-size:1.9em;line-height:1.1}.hr-a-sex b{font-size:.45em}
.hr-a-sex .m{color:#289FFF}.hr-a-sex .f{color:rgb(220,120,150)}.hr-a-sex .x{color:#000000}
.hr-a-sum{text-align:center;font-size:.85em;font-weight:700}.hr-a-sum b{color:#008CFF;font-size:1.2em}
.hr-a-kv{display:flex;justify-content:space-between;gap:.4em;margin-top:.35em;padding:.35em .45em;border-radius:.5em !important;box-shadow:0 0 0 1px #E4EEF8;font-size:.72em}
.hr-a-tabs{display:flex;gap:.2em;border-bottom:1px solid #DCE6F0;background:#fff;border-radius:.6em .6em 0 0 !important;padding:0 .4em}
.hr-a-tabs span{padding:.5em .6em;font-size:.72em;font-weight:600;color:#008CFF;border-bottom:2px solid transparent;white-space:nowrap}
.hr-a-tabs span.on{color:#008CFF;border-bottom-color:#008CFF}
.hr-a-flt{display:flex;flex-wrap:wrap;gap:.35em}
.hr-a-flt span{display:inline-flex;align-items:center;gap:.3em;padding:.35em .6em;border-radius:.4em !important;border:1px solid #E4EEF8;background:#fff;font-size:.7em;color:#000000}
.hr-a-flt.s{align-items:center}.hr-a-flt.s > span:first-child{flex:1;border-radius:999px !important}
.hr-a-acts{display:flex;justify-content:flex-end;gap:.3em;margin-top:.5em}
.hr-a-tbl{border-radius:.7em !important;overflow:hidden;background:#fff;box-shadow:0 0 0 1px #E4EEF8}
.hr-a-tbl .th,.hr-a-tbl .tr{display:grid;grid-template-columns:1fr 1.6fr 1.15fr .7fr;gap:.4em;align-items:center;padding:.45em .7em;font-size:.72em}
.hr-a-tbl .th{background:#289FFF;color:#fff;font-weight:700}
.hr-a-tbl .tr{border-top:1px solid #EEF3F8}
.hr-a-tbl.ev .th,.hr-a-tbl.ev .tr{grid-template-columns:2fr .6fr .8fr 1fr}
.hr-a-tbl em,.hr-a-docs em{font-style:normal}
.hr-a-tbl .tr > span > em:not(.st){display:inline-block;padding:.1em .55em;border-radius:999px !important;background:#E4EEF8;color:#008CFF;font-weight:600}
.hr-a-month{padding:.35em .7em;border-radius:.45em !important;background:#fff;color:#008CFF;font-size:.75em}
.hr-a-alert{align-self:flex-end;margin-top:.4em;padding:.4em .8em;border-radius:.5em !important;background:#FF6100;color:#fff;font-size:.72em;font-weight:600}
.hr-a-eq p{display:flex;align-items:center;justify-content:center;gap:.6em;margin:.25em 0}.hr-a-eq p b{font-size:2em;color:#008CFF}.hr-a-eq p span{font-size:1.4em;font-weight:700}
.hr-a-pie{display:flex;align-items:center;gap:.7em;margin-top:.35em}
.hr-a-pie > i{flex:none;width:4.6em;height:4.6em;border-radius:50% !important;background:conic-gradient(#008CFF 0 83%,#FF8100 83% 96%,#289FFF 96% 100%)}
.hr-a-pie p{display:flex;align-items:center;gap:.35em;font-size:.7em}.hr-a-pie .d,.hr-a-pie .d2,.hr-a-pie .d3{width:.7em;height:.7em;border-radius:50% !important;background:#008CFF}.hr-a-pie .d2{background:#FF8100}.hr-a-pie .d3{background:#289FFF}
.hr-a-run p{display:flex;justify-content:space-between;font-size:.78em;font-weight:700}
.hr-a-run .pct::after{content:"100%";color:#008CFF}
.hr-a-run .bar,.hr-a-score .bar{display:block;height:.55em;margin:.4em 0;border-radius:1em !important;background:#E4EEF8;overflow:hidden}
.hr-a-run .bar i,.hr-a-score .bar i{display:block;height:100%;border-radius:inherit !important;background:linear-gradient(90deg,#008CFF,#008CFF);transform-origin:0 50%}
.hr-a-score .bar i{width:37.5%}
.hr-a-score p{display:flex;justify-content:space-between;font-size:.74em}
.hr-a-run .chips{display:flex;flex-wrap:wrap;gap:.3em}.hr-a-run .chips em{font-style:normal;padding:.15em .55em;border-radius:999px !important;background:#E4EEF8;color:#008CFF;font-size:.7em;font-weight:700}
.hr-a-docs{border-radius:.7em !important;overflow:hidden;background:#fff;box-shadow:0 0 0 1px #E4EEF8}
.hr-a-docs .grp{display:flex;justify-content:space-between;gap:.5em;padding:.45em .7em;background:#E4EEF8;font-size:.72em;font-weight:700}.hr-a-docs .grp small{font-weight:600;color:#008CFF}
.hr-a-docs .row{display:grid;grid-template-columns:1.6em minmax(0,1fr) auto;gap:.5em;align-items:center;padding:.5em .7em;border-top:1px solid #EEF3F8;font-size:.74em}
.hr-a-docs .row b{display:block;font-weight:700}.hr-a-docs .row small{color:#000000}
.hr-a-docs .ck{width:1.3em;height:1.3em;border-radius:.3em !important;border:1.5px solid #289FFF;display:grid;place-items:center;color:#fff;background:#008CFF;border-color:#008CFF}
.hr-a-docs .ck svg{width:.95em;height:.95em;stroke-width:3}
.st{display:inline-grid}.st > span{grid-area:1/1;padding:.12em .55em;border-radius:999px !important;font-size:.92em;font-weight:700;white-space:nowrap;text-align:center}
.st .w{background:#FFF1E8;color:#FF6100}.st .o{background:#E4EEF8;color:#008CFF}
.st .w:not(:only-child){opacity:0}
.hr-a-float{position:absolute;right:1em;bottom:1em;display:flex;gap:.3em;padding:.35em;border-radius:.6em !important;background:#fff;box-shadow:0 10px 24px -10px rgba(0,30,80,.45)}
.hr-a-btn.ok{background:#fff;color:#008CFF;box-shadow:0 0 0 1px #289FFF}.hr-a-btn.no{background:#fff;color:#FF6100;box-shadow:0 0 0 1px #FF8100}.hr-a-btn.chk{background:#fff;color:#FF6100;box-shadow:0 0 0 1px #FF6100}
.hr-a-desc{max-width:52%;font-size:.7em;color:#000000;text-align:right}
.hr-a-srch{flex:1;max-width:45%;display:inline-flex;align-items:center;gap:.4em;padding:.4em .8em;border-radius:999px !important;background:#fff;color:#000000;font-size:.75em}
.hr-a-upd{font-size:.72em}
.hr-a-g2.dash .hr-a-card{min-height:9em}
.hr-app .hr-a-line{display:block;width:100%;height:auto;margin-top:.3em;stroke:none}   /* beats the icon-size rule .hr-app svg */
.hr-a-line .ln{fill:none;stroke:#008CFF;stroke-width:2.2;stroke-linejoin:round}.hr-a-line .area{fill:rgba(61,139,247,.12)}.hr-a-line circle{fill:#008CFF}
.hr-a-bars{display:grid;gap:.45em;margin-top:.5em}.hr-a-bars p{display:grid;grid-template-columns:3.2em 1fr;align-items:center;gap:.4em;font-size:.7em}
.hr-a-bars i{display:block;height:.9em;width:var(--w);border-radius:.3em !important;background:linear-gradient(90deg,#289FFF,rgb(220,120,150));transform-origin:0 50%}
.hr-a-aib{display:flex;gap:.6em;align-items:flex-start;padding:.7em .8em;border-radius:.8em !important;background:linear-gradient(120deg,#E4EEF8,#fff);box-shadow:0 0 0 1px #E4EEF8,0 12px 26px -16px rgba(0,90,180,.6)}
.hr-a-aib .ic{flex:none;width:2.2em;height:2.2em;border-radius:50% !important;display:grid;place-items:center;background:linear-gradient(135deg,#0072F3,#008CFF);color:#fff}
.hr-a-aib p{font-size:.76em}.hr-a-aib p b{display:block;color:#008CFF}
@media (prefers-reduced-motion:no-preference){
  .hr-scr.on .hr-a-prog i{animation:aGrowX 1.4s var(--ease) .3s both}
  .hr-scr.on .hr-a-sub span{animation:aIn .45s var(--ease) both}
  .hr-scr.on .hr-a-sub span:nth-child(3){animation-delay:.08s}.hr-scr.on .hr-a-sub span:nth-child(4){animation-delay:.16s}.hr-scr.on .hr-a-sub span:nth-child(5){animation-delay:.24s}.hr-scr.on .hr-a-sub span:nth-child(6){animation-delay:.32s}.hr-scr.on .hr-a-sub span:nth-child(7){animation-delay:.4s}.hr-scr.on .hr-a-sub span:nth-child(8){animation-delay:.48s}
  .hr-scr.on .hr-a-sex span,.hr-scr.on .hr-a-sum,.hr-scr.on .hr-a-kv{animation:aPop .5s var(--spring) both}
  .hr-scr.on .hr-a-sex span:nth-child(2){animation-delay:.12s}.hr-scr.on .hr-a-sex span:nth-child(3){animation-delay:.24s}.hr-scr.on .hr-a-sum{animation-delay:.5s}
  .hr-scr.on .hr-a-kv:nth-of-type(1){animation-delay:.3s}.hr-scr.on .hr-a-kv:nth-of-type(2){animation-delay:.45s}.hr-scr.on .hr-a-kv:nth-of-type(3){animation-delay:.6s}
  .hr-scr.on .hr-a-tbl .tr{animation:aIn .5s var(--ease) both}
  .hr-scr.on .hr-a-tbl .tr:nth-child(3){animation-delay:.35s}.hr-scr.on .hr-a-tbl .tr:nth-child(4){animation-delay:.7s}.hr-scr.on .hr-a-tbl .tr:nth-child(5){animation-delay:1.05s}.hr-scr.on .hr-a-tbl .tr:nth-child(6){animation-delay:1.4s}
  .hr-scr.on .hr-a-tbl .tr:nth-child(2){animation-delay:0s}
  .hr-scr.on .hr-a-alert{animation:aDrop .5s var(--spring) .2s both}
  .hr-scr.on .hr-a-pie > i{animation:aSpin .9s var(--ease) .3s both}
  .hr-scr.on .hr-a-run .bar i{animation:aGrowX 2s var(--ease) .8s both}
  .hr-scr.on .hr-a-run .pct::after{animation:aFade .3s 2.8s both}
  .hr-scr.on .hr-a-run .chips em{animation:aPop .45s var(--spring) both}
  .hr-scr.on .hr-a-run .chips em:nth-child(1){animation-delay:1.3s}.hr-scr.on .hr-a-run .chips em:nth-child(2){animation-delay:1.7s}.hr-scr.on .hr-a-run .chips em:nth-child(3){animation-delay:2.1s}.hr-scr.on .hr-a-run .chips em:nth-child(4){animation-delay:2.5s}
  .hr-a-docs .ck{background:#fff;border-color:#289FFF}
  .hr-scr.on .hr-a-docs .ck{animation:aTick .3s both}
  .hr-scr.on .hr-a-docs .r1 .ck{animation-delay:.25s}.hr-scr.on .hr-a-docs .r2 .ck{animation-delay:.5s}.hr-scr.on .hr-a-docs .r0 .ck{animation-delay:0s}
  .hr-scr.on .hr-a-float{animation:aRise .5s var(--spring) .7s both}
  .hr-scr.on .st .w:not(:only-child){animation:aOut .35s both;animation-delay:var(--d,1.4s)}
  .hr-scr.on .st .o{animation:aIn2 .35s both;animation-delay:var(--d,1.4s)}
  .hr-a-docs .r1{--d:1.8s}.hr-a-docs .r2{--d:2.2s}
  .hr-scr.on .hr-a-tbl.ev .tr.new{animation:aNew 1.6s var(--ease) both}
  .hr-scr.on .hr-a-score .bar i{animation:aGrowX 1.6s var(--ease) .9s both}
  .hr-scr.on .hr-a-line .ln{stroke-dasharray:260;animation:aDraw 1.6s var(--ease) .2s both}
  .hr-scr.on .hr-a-line .area{animation:aFade .6s 1.4s both}.hr-scr.on .hr-a-line circle{animation:aPop .4s var(--spring) 1.7s both;transform-box:fill-box;transform-origin:center}
  .hr-scr.on .hr-a-bars i{animation:aGrowX .9s var(--spring) both}
  .hr-scr.on .hr-a-bars p:nth-child(2) i{animation-delay:.15s}.hr-scr.on .hr-a-bars p:nth-child(3) i{animation-delay:.3s}.hr-scr.on .hr-a-bars p:nth-child(4) i{animation-delay:.45s}
  .hr-scr.on .hr-a-aib{animation:aRise .6s var(--spring) 1.9s both}
  .hr-scr.on .hr-a-top .ai{animation:aGlow 2.4s ease-in-out 1.9s 2}
}
@keyframes aGrowX{from{transform:scaleX(0)}}
@keyframes aIn{from{opacity:0;transform:translateY(8px)}}
@keyframes aPop{from{opacity:0;transform:scale(.7)}}
@keyframes aDrop{from{opacity:0;transform:translateY(-10px)}}
@keyframes aSpin{from{opacity:0;transform:rotate(-120deg) scale(.6)}}
@keyframes aFade{from{opacity:0}}
@keyframes aTick{from{background:#fff;border-color:#289FFF}to{background:#008CFF;border-color:#008CFF}}
@keyframes aRise{from{opacity:0;transform:translateY(14px)}}
@keyframes aOut{from{opacity:1}to{opacity:0}}
@keyframes aIn2{from{opacity:0;transform:scale(.8)}to{opacity:1;transform:none}}
@keyframes aNew{0%{opacity:0;transform:translateY(-10px);background:#FFF1E8}30%{opacity:1;transform:none;background:#FFF1E8}100%{background:#fff}}
@keyframes aDraw{from{stroke-dashoffset:260}to{stroke-dashoffset:0}}
@keyframes aGlow{50%{box-shadow:0 0 0 .35em rgba(0,140,255,.25)}}

/* ===== เริ่มใช้ระบบ HRMS อย่างไร: 3 step cards (live copy) with illustrative SVG infographics that play on reveal ===== */
.hr-start{margin-top:clamp(28px,3.4vw,44px)}
.hr-start-head{display:flex;align-items:flex-end;justify-content:space-between;gap:12px 24px;flex-wrap:wrap}
.hr-start-head h2{font-size:clamp(22px,2.3vw,28px);line-height:1.25}.hr-start-head p{margin:6px 0 0;font-size:15.5px}
.hr-start-steps{position:relative;list-style:none;margin:18px 0 0;padding:0;display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:clamp(14px,2vw,28px)}
.hr-sc{position:relative;z-index:1;display:flex;flex-direction:column;padding:10px 10px 18px;border-radius:28px !important}
.hr-start-steps > .hr-sc:nth-child(1){z-index:3}.hr-start-steps > .hr-sc:nth-child(2){z-index:2}   /* arrow sits over the next card */
.hr-sarr::before{content:"→"}
.hr-start-steps > .rv:nth-child(2){transition-delay:.1s}.hr-start-steps > .rv:nth-child(3){transition-delay:.2s}
.hr-sarr{position:absolute;z-index:2;right:calc(-1 * clamp(14px,2vw,28px) / 2 - 16px);top:30%;width:32px;height:32px;border-radius:50% !important;display:grid;place-items:center;background:var(--blue);color:#fff;font-weight:700;box-shadow:0 8px 18px -8px rgba(0,90,180,.7)}
.hr-sn{align-self:flex-start;margin:14px 8px 0;padding:3px 10px;border-radius:999px !important;background:var(--blue-l);color:var(--blue-2);font-size:12.5px;font-weight:700}
.hr-sc:last-child .hr-sn{background:var(--orange-l);color:var(--orange)}
.hr-stt{margin:8px 8px 0;font-size:18px;font-weight:700;color:var(--ink)}
.hr-sc > small{margin:2px 8px 0;font-size:14.5px;color:var(--mid)}
.hr-ig{position:relative;margin:0;aspect-ratio:320/170;border-radius:20px !important;overflow:hidden;background:linear-gradient(160deg,var(--blue-xl),var(--card) 70%)}
.hr-ig::after{content:"Illustration";position:absolute;left:12px;bottom:6px;font-size:10px;color:var(--muted)}
.hr-ig svg{display:block;width:100%;height:100%;font-family:inherit;stroke:none}   /* core gives svg:has(> use) a 2px stroke */
.hr-ig .ig-card{fill:var(--card);stroke:#E4EEF8;stroke-width:1}
.hr-ig .ig-field{fill:var(--card);stroke:#E4EEF8;stroke-width:1.2}
.hr-ig .ig-bl{fill:var(--blue-l)}.hr-ig .ig-bl2{fill:#289FFF}.hr-ig .ig-b{fill:var(--blue)}
.hr-ig .ig-ol{fill:var(--orange-l)}.hr-ig .ig-o{fill:var(--orange)}
.hr-ig text{font-size:12px;font-weight:600;fill:var(--ink)}.hr-ig .ig-sm{font-size:11px}.hr-ig .ig-to{fill:var(--orange)}
.hr-ig .ig-tw{fill:#fff;font-weight:700}.hr-ig .ig-big{font-size:17px}.hr-ig .ig-logo{font-size:26px;font-weight:800}
.hr-ig .ig-ln0{fill:none;stroke:#E4EEF8;stroke-width:1}
.hr-ig .ig-ln{fill:none;stroke:#289FFF;stroke-width:1.6;stroke-dasharray:4 5;stroke-linecap:round}
.hr-ig use{fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.hr-ig .ig-ib{color:var(--blue)}.hr-ig .ig-iw{color:#fff}
.hr-ig .ig-pop,.hr-ig .ig-type,.hr-ig .ig-pulse,.hr-ig .ig-gear,.hr-ig .ig-press{transform-box:fill-box;transform-origin:center}
.hr-ig .ig-type{transform-origin:0 50%}
@media (prefers-reduced-motion:no-preference){
  .hr-sc:not(.in) .ig-pop,.hr-sc:not(.in) .ig-type,.hr-sc:not(.in) .ig-ray{opacity:0}
  .hr-sc.in .ig-pop{animation:igPop .55s var(--spring) both}
  .hr-sc.in .ig-type{animation:igType .7s var(--ease) both}
  .hr-sc.in .ig-ray{animation:igFade .4s both}
  .hr-sc.in .d1{animation-delay:.15s}.hr-sc.in .d2{animation-delay:.4s}.hr-sc.in .d3{animation-delay:.65s}.hr-sc.in .d4{animation-delay:.9s}.hr-sc.in .d5{animation-delay:1.15s}.hr-sc.in .d6{animation-delay:1.4s}
  .hr-sc.in .ig-press{animation:igPress 2.6s ease-in-out 1s infinite}
  .hr-sc.in .ig-flow{animation:igFlow 1.1s linear infinite}
  .hr-sc.in .ig-move{animation:igMove 2.8s var(--ease) infinite}
  .hr-sc.in .ig-gear{animation:igSpin 6s linear infinite}
  .hr-sc.in .ig-bob{animation:igBob 3s ease-in-out infinite}
  .hr-sc.in .ig-pulse{animation:igPulse 2.4s ease-in-out infinite}
  .hr-sc.in .hr-sarr{animation:igNudge 1.6s ease-in-out infinite}
}
@keyframes igPop{from{opacity:0;transform:translateY(8px) scale(.8)}}
@keyframes igType{from{transform:scaleX(0)}}
@keyframes igFade{from{opacity:0}}
@keyframes igPress{0%,70%,100%{transform:none}78%{transform:scale(.94)}86%{transform:none}}
@keyframes igFlow{to{stroke-dashoffset:-18}}
@keyframes igMove{0%{transform:translateX(0);opacity:0}12%{opacity:1}80%{transform:translateX(64px);opacity:1}100%{transform:translateX(70px);opacity:0}}
@keyframes igSpin{to{transform:rotate(360deg)}}
@keyframes igBob{50%{transform:translateY(-6px)}}
@keyframes igPulse{50%{transform:scale(1.08)}}
@keyframes igNudge{50%{transform:translateX(4px)}}
@media (max-width:900px){.hr-start-steps{grid-template-columns:minmax(0,1fr)}.hr-sarr{right:auto;left:50%;top:auto;bottom:calc(-1 * clamp(14px,2vw,28px) / 2 - 16px);margin-left:-16px}.hr-sc.in .hr-sarr{animation:none}.hr-sarr::before{content:"↓"}}

/* ================= สรุปแบบหน้าเดียว (#onepage, before FAQ) + extra Register CTAs — shared block (same look as /th/compare/payroll-software) =================
   Recap of this page's own content only; no heading tags (live H-outline unchanged). Plays once when revealed; still in reduced motion. */
.op-sprite{position:absolute;width:0;height:0;overflow:hidden}
.op-sec{position:relative;padding-block:clamp(30px,3.6vw,48px) clamp(10px,1.4vw,20px)}
.op{position:relative;padding:clamp(16px,2vw,24px);border-radius:var(--r-l) !important;background:var(--card);border:1px solid var(--line);box-shadow:0 30px 60px -40px rgba(0,60,140,.45)}
.op svg,.op-cta-in svg,.op-cta-strip svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.op-head{position:relative;overflow:hidden;padding:clamp(18px,2.2vw,26px) clamp(18px,2.4vw,30px);border-radius:24px !important;background:linear-gradient(120deg,#0072F3,#008CFF);color:#fff}
.op-head::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.22) 50%,transparent 65%);transform:translateX(-120%);pointer-events:none}
.op-k{font-size:13.5px;font-weight:600;color:rgba(255,255,255,.88)}
.op-t{margin-top:4px;font-size:clamp(22px,2.6vw,32px);font-weight:800;line-height:1.25;color:#fff;text-wrap:balance}
.op-sub{display:block;font-size:.62em;font-weight:600;color:rgba(255,255,255,.92)}
.op-grid{display:grid;grid-template-columns:minmax(0,1fr) minmax(0,1.1fr) minmax(0,1fr);gap:14px;margin-top:14px}
.op-box{padding:18px 18px 16px;border-radius:22px !important;background:var(--blue-xl);border:1px solid var(--line)}
.op-h{display:flex;align-items:center;gap:10px;font-size:16px;font-weight:700;color:var(--ink);line-height:1.35}
.op-h b{flex:none;width:28px;height:28px;border-radius:50% !important;display:grid;place-items:center;background:var(--blue);color:#fff;font-size:13.5px}
.op ul,.op ol{list-style:none;margin:12px 0 0;padding:0}
.op-ic{flex:none;width:36px;height:36px;border-radius:12px !important;display:grid;place-items:center;background:var(--card);color:var(--blue);border:1px solid #E4EEF8}
.op-tiles{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.op-tiles li{display:flex;flex-direction:column;gap:8px;padding:12px;border-radius:16px !important;background:var(--card)}
.op-tiles b{display:block;font-size:14px;line-height:1.4;color:var(--ink)}
.op-tiles small{display:block;margin-top:2px;font-size:12.5px;line-height:1.45;color:var(--mid)}
.op-chk{display:grid;gap:6px}
.op-chk li{display:flex;align-items:flex-start;gap:10px;padding:8px 10px;border-radius:12px !important;background:var(--card);font-size:14px;line-height:1.45;color:var(--ink)}
.op-tick{flex:none;width:22px;height:22px;border-radius:50% !important;display:grid;place-items:center;background:var(--blue);color:#fff;margin-top:1px}
.op-tick svg{width:13px;height:13px;stroke-width:3}
.op-neg .op-tick{background:var(--ground-2);color:var(--mid)}
.op-lad{display:grid;gap:10px}
.op-lad li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:12px;align-items:end;padding:10px 12px;border-radius:14px !important;background:var(--card);font-size:13.5px;line-height:1.45;color:var(--mid)}
.op-lad li b{display:block;font-size:14.5px;color:var(--ink)}
.op-bar{display:flex;align-items:flex-end;height:46px;border-radius:8px !important;background:#E4EEF8;overflow:hidden}
.op-bar i{display:block;width:100%;border-radius:8px 8px 0 0 !important;transform-origin:50% 100%}
.op-lad .z1 .op-bar i{height:34%;background:var(--blue-sky)}.op-lad .z2 .op-bar i{height:66%;background:var(--blue)}.op-lad .z3 .op-bar i{height:100%;background:var(--orange)}
.op-wide{margin-top:14px}
.op-wide ul{display:grid;grid-template-columns:repeat(var(--n),minmax(0,1fr));gap:8px}
.op-wide li{display:flex;flex-direction:column;gap:6px;padding:12px;border-radius:16px !important;background:var(--card)}
.op-wide li b{font-size:14px;line-height:1.35;color:var(--ink)}
.op-wide li small{font-size:13px;line-height:1.45;color:var(--mid)}
.op-hs{display:grid;grid-template-columns:minmax(0,1fr) auto;align-items:center;gap:12px 18px;margin-top:14px;padding:16px 18px;border-radius:22px !important;background:var(--orange-l);border:1px solid var(--line)}
.op-hs .op-h{grid-column:1/-1}.op-hs .op-h b{background:var(--orange)}
.op-hs ul{margin:0;display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:8px}
.op-hs li{display:flex;flex-direction:column;padding:8px 12px;border-radius:14px !important;background:var(--card);line-height:1.3}
.op-hs li small{font-size:12px;color:var(--mid)}
.op-hs li b{font-size:16px;color:var(--orange)}
.op-act{display:flex;flex-direction:column;gap:8px}
.op-act .btn{justify-content:center;white-space:nowrap}
.op-note{margin-top:12px;font-size:13px;line-height:1.6;color:var(--mid)}
.op-note b{color:var(--ink)}
@media (prefers-reduced-motion:no-preference){
  .op:not(.in) li{opacity:0}
  .op.in .op-head::after{animation:opSweep 1.6s var(--ease) .3s 1}
  .op.in .op-tiles li{animation:opPop .5s var(--spring) both;animation-delay:calc(.25s + var(--i) * .1s)}
  .op.in .op-chk li{animation:opRise .45s var(--ease) both;animation-delay:calc(.4s + var(--i) * .1s)}
  .op.in .op-tick{animation:opPop .45s var(--spring) both;animation-delay:calc(.6s + var(--i) * .1s)}
  .op.in .op-lad li{animation:opRise .45s var(--ease) both;animation-delay:calc(.5s + var(--i) * .15s)}
  .op.in .op-bar i{animation:opGrow .9s var(--ease) both;animation-delay:calc(.7s + var(--i) * .15s)}
  .op.in .op-wide li{animation:opRise .45s var(--ease) both;animation-delay:calc(.9s + var(--i) * .08s)}
  .op.in .op-hs li{animation:opPop .45s var(--spring) both;animation-delay:calc(1.2s + var(--i) * .08s)}
  .op-cta-strip.in::after{animation:opSweep 1.6s var(--ease) .4s 1}
}
@keyframes opPop{from{opacity:0;transform:translateY(8px) scale(.85)}}
@keyframes opRise{from{opacity:0;transform:translateY(10px)}}
@keyframes opGrow{from{transform:scaleY(0)}}
@keyframes opSweep{to{transform:translateX(120%)}}
@media (max-width:1100px){.op-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.op-grid > .op-box:last-child{grid-column:1/-1}.op-wide ul{grid-template-columns:repeat(3,minmax(0,1fr))}.op-hs{grid-template-columns:minmax(0,1fr)}.op-hs ul{grid-template-columns:repeat(3,minmax(0,1fr))}.op-act{flex-direction:row;flex-wrap:wrap}}
@media (max-width:700px){.op-grid{grid-template-columns:minmax(0,1fr)}.op-wide ul,.op-hs ul{grid-template-columns:repeat(2,minmax(0,1fr))}.op-tiles li,.op-wide li{padding:10px}.op-ic{width:32px;height:32px;border-radius:10px !important}.op-act .btn{flex:1}}
/* extra Register CTAs inside content sections */
.op-cta-in{display:flex;flex-wrap:wrap;align-items:center;gap:10px 14px;margin-top:20px}
.op-cta-in small{font-size:13.5px;color:var(--mid)}
.op-cta-in .btn svg,.op-cta-strip .btn svg{width:18px;height:18px;stroke-width:2.2;transition:transform .35s var(--spring)}
.op-cta-in .btn:hover svg,.op-cta-strip .btn:hover svg{transform:translateX(4px)}
.op-cta-strip{position:relative;overflow:hidden;display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:14px 24px;margin-top:clamp(16px,2vw,24px);padding:18px 18px 18px clamp(18px,2.4vw,28px);border-radius:26px !important;background:linear-gradient(120deg,#0072F3,#008CFF);box-shadow:0 22px 44px -28px rgba(0,90,200,.8)}
.op-cta-strip::after{content:"";position:absolute;inset:0;background:linear-gradient(110deg,transparent 35%,rgba(255,255,255,.22) 50%,transparent 65%);transform:translateX(-120%);pointer-events:none}
.op-cta-strip p{position:relative;z-index:1;font-size:clamp(17px,1.6vw,20px);font-weight:700;line-height:1.4;color:#fff}
.op-cta-strip small{display:block;margin-top:2px;font-size:13.5px;font-weight:500;color:rgba(255,255,255,.88)}
.op-cta-strip .btn{position:relative;z-index:1;flex:none;background:#fff;border-color:#fff;color:var(--blue-2)}
.op-cta-strip.o{background:linear-gradient(120deg,#FF6100,#FF8100);box-shadow:0 22px 44px -28px rgba(255,97,0,.8)}
.op-cta-strip.o .btn{color:#FF6100}
@media (max-width:560px){.op-cta-strip .btn{width:100%;justify-content:center}}
@media (max-width:420px){.op-act{flex-direction:column}}
/* ===== Shared CTA bar (every page): slim bar floats above the bottom of the screen while scrolling,
   then docks as a full-width band just above the footer. Markup: kit/COMPONENTS.md §15 ===== */
.hm-cb-wrap{position:sticky;bottom:calc(14px + env(safe-area-inset-bottom,0px));z-index:60;margin:48px 0 40px;padding-inline:16px;pointer-events:none;transition:transform .5s var(--spring),opacity .35s}
.hm-cb-wrap.is-hidden{transform:translateY(calc(100% + 40px));opacity:0}
.hm-cb{pointer-events:auto;max-width:min(1080px,calc(100vw - 200px));margin-inline:auto;display:flex;align-items:center;justify-content:space-between;gap:20px;padding:12px 12px 12px 28px;border-radius:999px !important;
  background:linear-gradient(135deg,#0072F3,#00A2FF)!important;border:0;box-shadow:0 20px 44px -18px rgba(0,114,243,.7);color:#fff;transition:box-shadow .4s,max-width .5s var(--ease)}
.hm-cb-wrap.is-docked .hm-cb{box-shadow:0 10px 28px -20px rgba(0,114,243,.6);max-width:min(1200px,calc(100vw - 32px))}
.hm-cb-txt{display:flex;flex-direction:column;min-width:0}
.hm-cb-txt h2{font-size:clamp(17px,1.7vw,22px);line-height:1.3;font-weight:600;color:#fff;margin:0}
.hm-cb-txt h2 b{font-weight:700}
.hm-cb-txt > span{font-size:13px;color:#fff;opacity:.9}
.hm-cb-act{display:flex;gap:8px;flex:none}
.hm-cb .btn{min-height:46px;padding:0 22px}
.hm-cb .btn.primary{background:#fff!important;border-color:#fff!important;color:#008CFF!important}
.hm-cb .hm-cb-sales{background:transparent!important;border:1.5px solid rgba(255,255,255,.8)!important;color:#fff!important;box-shadow:none!important}
.hm-cb-end{height:1px}
@media (max-width:1100px){.hm-cb{max-width:calc(100vw - 112px)}}
@media (max-width:760px){
  .hm-cb-wrap{bottom:calc(80px + env(safe-area-inset-bottom,0px));padding-inline:10px}
  .hm-cb{max-width:none;padding:8px 8px 8px 18px;gap:10px}
  .hm-cb-txt > span,.hm-cb-sales,.hm-cb-pre{display:none}
  .hm-cb-txt h2{font-size:15px}
  .hm-cb .btn{min-height:44px;padding:0 16px;font-size:14px}
}

.hm-cb-wrap.is-docked{padding-inline:0;margin-bottom:0}
.hm-cb{transition:max-width .6s var(--ease),border-radius .6s var(--ease),padding .6s var(--ease),box-shadow .4s}
.hm-cb-wrap.is-docked .hm-cb{max-width:100%!important;border-radius:0 !important;padding:30px max(24px,calc((100vw - 1200px)/2));box-shadow:none}
.hm-cb-wrap.is-docked .hm-cb-txt h2{font-size:clamp(20px,2.2vw,28px)}
/* leave room for the docked AI panel on wide screens */
/* the floating AI window covers the bottom-right corner: the bar slides left of it while it is open */
@media (min-width:1024px){html.ai-open .hm-cb-wrap:not(.is-docked){padding-right:430px}html.ai-open .hm-cb-wrap:not(.is-docked) .hm-cb{max-width:none}}
@media (max-width:760px){.hm-cb-x .hm-cb-a{display:none}.hm-cb-x .hm-cb-pre{display:inline}}
/* tablet: the floating dock sits on the right edge, so the bar keeps clear of it */
@media (min-width:621px) and (max-width:1100px){.hm-cb-wrap:not(.is-docked){padding-right:100px}.hm-cb-wrap:not(.is-docked) .hm-cb{max-width:none}}
/* ===== HumanSoft CI layer (HumanSoft-CI.pdf, dev summary 14/10/2026 — pending Marketing sign-off) =====
   Loaded after page CSS on every page. Colours: Deep Blue #008CFF (headings, borders, buttons), Light Blue #289FFF,
   Vivid Orange #FF6100 / Light Orange #FF8100 (accent only), Pale Blue #E4EEF8 (cards), White, Black,
   gradient #0072F3 → #00A2FF at −45°. Text colours limited to black / white / blue / orange. No green/red.
   Content pages stay light (no full dark pages) → dark mode is switched off. Font: Anuphan only.
   Hard-coded hex colours in page CSS/JS are snapped to this palette at build time (kit/build.py ci_map). */
:root,:root[data-theme="dark"],:root:not([data-theme="light"]){
  color-scheme:light;
  --blue:#008CFF; --blue-2:#008CFF; --blue-sky:#289FFF; --blue-l:#E4EEF8; --blue-xl:#E4EEF8;
  --orange:#FF6100; --orange-2:#FF6100; --orange-3:#FF8100; --orange-l:#FFF1E8;
  --ink:#000000; --mid:#000000; --muted:#000000; --line:#E4EEF8;
  --ground:#FFFFFF; --ground-2:#E4EEF8; --card:#FFFFFF;
  --green:#008CFF; --green-l:#E4EEF8; --red:#FF6100; --red-l:#FFF1E8;
  --glass-bg:rgba(255,255,255,.88); --glass-bg-2:rgba(255,255,255,.74); --glass-edge:rgba(255,255,255,.9); --glass-rim:rgba(0,114,243,.10);
  --glass-shadow:0 18px 50px -22px rgba(0,114,243,.35); --spec:rgba(255,255,255,.9);
  --blob-a:rgba(0,140,255,.24); --blob-b:rgba(255,97,0,.12); --blob-c:rgba(40,159,255,.30);
  --night:#0072F3; --night-2:#00A2FF; --on-night:#FFFFFF; --on-night-2:#FFFFFF;
  --ci-grad:linear-gradient(135deg,#0072F3 0%,#00A2FF 100%);
}
@media (prefers-color-scheme: dark){:root:not([data-theme="light"]){color-scheme:light}}

/* secondary text: black (CI) with hierarchy from size/weight instead of grey */
.lead,.note,.crumb,small,.plabel{color:#000}

/* blue bands use the CI gradient (−45°: dark top-left → light bottom-right) with white text */
.night{background:var(--ci-grad)!important;color:#fff}
.night .lead,.night p,.night small,.night .plabel,.night li{color:#fff}
.night .h-sec em,.night h2 em,.night h1 em{background:none!important;-webkit-text-fill-color:#fff!important;color:#fff!important}
.night .kick{color:#fff}
.glow{display:none}

/* buttons: Deep Blue is the button colour; orange is accent only */
.btn.primary,.btn.blue{background:#008CFF!important;border-color:#008CFF!important;color:#fff!important;box-shadow:0 14px 34px -14px rgba(0,140,255,.7)!important}
.btn.primary:hover,.btn.blue:hover{background:#0072F3!important;border-color:#0072F3!important}
.night .btn.primary,.night .btn.blue{background:#fff!important;border-color:#fff!important;color:#008CFF!important}
.dock a.try-free{background:#FF6100!important}

/* headline accents: blue only (orange stays for numbers / warnings) */
.h-sec em,.hero .display .ln:nth-child(2) > span{background-image:linear-gradient(90deg,#0072F3,#00A2FF,#0072F3)!important}
h1 em{background:none!important;-webkit-text-fill-color:#008CFF!important;color:#008CFF!important}
.night h1 em{-webkit-text-fill-color:#fff!important;color:#fff!important}
.kick b{background:#FF6100;color:#fff}
.kick{color:#008CFF}

/* free-trial calls to action (ทดลองใช้ฟรี 30 วัน / เริ่มใช้งานฟรี / ทดลองใช้งานฟรี) are orange — Marketing decision 25/10/2026 */
a.btn[href*="/registration"]:not(#_){background:#FF6100!important;border-color:#FF6100!important;color:#fff!important;box-shadow:0 14px 34px -14px rgba(255,97,0,.75)!important}
a.btn[href*="/registration"]:not(#_):hover{background:#FF8100!important;border-color:#FF8100!important}
.msheet a[href*="/registration"]:not(.btn){color:#FF6100}
/* ===== HumanSoft AI assistant: floating chat widget (bottom-right) with LINE / phone as secondary contact options =====
   Launcher .ai-fab = one "ถาม AI" button · panel floats over the page (never pushes content) · LINE / โทร 1537 sit inside it.
   The old shell dock (#dock) is kept in the DOM for page scripts that read it, but hidden: its LINE/contact moved here. */
#dock{display:none!important}

.ai-fab{position:fixed;z-index:72;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));display:flex;flex-direction:column;align-items:center;gap:10px;transition:opacity .3s,transform .45s var(--spring)}
html.ai-open .ai-fab{opacity:0;pointer-events:none;transform:translateY(16px) scale(.9)}
/* main launcher: the emphasised one */
.ai-tab{position:relative;width:72px;height:72px;border:0;border-radius:24px !important;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:2px;
  background:linear-gradient(135deg,#0072F3,#00A2FF);color:#fff;font:700 12.5px/1.1 var(--f);cursor:pointer;box-shadow:0 18px 36px -14px rgba(0,114,243,.75);isolation:isolate;transition:transform .45s var(--spring)}
.ai-tab svg{width:26px;height:26px}
.ai-tab:hover{transform:translateY(-3px) scale(1.04)}
.ai-tab .ai-dot{position:absolute;top:-3px;right:-3px;width:14px;height:14px;border-radius:50% !important;background:#FF6100;box-shadow:0 0 0 3px #fff}

.ai-panel{position:fixed;z-index:73;right:max(16px,env(safe-area-inset-right,0px));bottom:calc(18px + env(safe-area-inset-bottom,0px));width:390px;max-width:calc(100vw - 32px);height:min(640px,calc(100vh - 110px));
  display:flex;flex-direction:column;border-radius:26px !important;overflow:hidden;background:#fff;border:1px solid #E4EEF8;box-shadow:0 34px 80px -30px rgba(0,58,140,.5);
  transform-origin:100% 100%;transform:translateY(16px) scale(.92);opacity:0;visibility:hidden;transition:transform .45s var(--spring),opacity .25s,visibility 0s .45s}
html.ai-open .ai-panel{transform:none;opacity:1;visibility:visible;transition:transform .45s var(--spring),opacity .25s,visibility 0s}
.ai-head{display:flex;align-items:center;gap:12px;padding:14px 14px 14px 18px;background:linear-gradient(135deg,#0072F3,#00A2FF);color:#fff}
.ai-ava{width:40px;height:40px;border-radius:14px !important;background:rgba(255,255,255,.18);display:grid;place-items:center;flex:none}
.ai-ava svg{width:24px;height:24px}
.ai-head b{display:block;font-size:16px}
.ai-head small{font-size:12px;color:#fff;opacity:.9}
.ai-head .ai-x{margin-left:auto;width:38px;height:38px;border-radius:50% !important;border:0;background:rgba(255,255,255,.18);color:#fff;display:grid;place-items:center;cursor:pointer}
.ai-head .ai-x:hover{background:rgba(255,255,255,.3)}
.ai-log{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:10px;background:#E4EEF8;overscroll-behavior:contain}
.ai-msg{max-width:88%;padding:11px 14px;border-radius:18px !important;font-size:15px;line-height:1.6;color:#000;white-space:pre-line;animation:aiIn .35s var(--ease)}
.ai-msg.bot{align-self:flex-start;background:#fff;border:1px solid #E4EEF8;border-bottom-left-radius:6px !important}
.ai-msg.me{align-self:flex-end;background:#008CFF;color:#fff;border-bottom-right-radius:6px !important}
.ai-msg a{color:#008CFF;font-weight:600}
.ai-msg .ai-src{display:block;margin-top:8px;font-size:12px;color:#000;opacity:.7}
@keyframes aiIn{from{transform:translateY(8px);opacity:0}}
.ai-typing{display:inline-flex;gap:4px;padding:14px}
.ai-typing i{width:7px;height:7px;border-radius:50% !important;background:#289FFF;animation:aiDot 1s infinite}
.ai-typing i:nth-child(2){animation-delay:.15s}.ai-typing i:nth-child(3){animation-delay:.3s}
@keyframes aiDot{40%{transform:translateY(-5px);background:#008CFF}}
.ai-chips{display:flex;flex-wrap:wrap;gap:6px;align-self:flex-start;max-width:100%}
.ai-chips button{border:1px solid #289FFF;background:#fff;color:#008CFF;border-radius:999px !important;padding:7px 12px;font:500 13px/1.3 var(--f);cursor:pointer;text-align:left}
.ai-chips button:hover{background:#E4EEF8}
.ai-form{display:flex;gap:8px;padding:12px 12px 8px;border-top:1px solid #E4EEF8;background:#fff}
.ai-form input{flex:1;min-width:0;border:1px solid #E4EEF8;border-radius:999px !important;padding:11px 16px;font:15px var(--f);color:#000;background:#E4EEF8}
.ai-form input:focus{outline:2px solid #008CFF;outline-offset:1px}
.ai-form button{width:46px;height:46px;flex:none;border:0;border-radius:50% !important;background:#008CFF;color:#fff;display:grid;place-items:center;cursor:pointer}
.ai-form button[disabled]{opacity:.45}
/* secondary: talk to a person */
.ai-contact{display:flex;align-items:center;gap:8px;padding:4px 12px 10px;background:#fff;font-size:12.5px}
.ai-contact > span{margin-right:auto;color:#000}
.ai-contact a{display:inline-flex;align-items:center;gap:6px;min-height:32px;padding:0 12px;border-radius:999px !important;font-weight:600;text-decoration:none;font-size:12.5px}
.ai-contact .ai-c-line{background:#008CFF;color:#fff}.ai-contact .ai-c-line img{width:16px;height:16px}
.ai-contact .ai-c-call{border:1px solid #E4EEF8;color:#008CFF}.ai-contact .ai-c-call svg{width:14px;height:14px;stroke:#008CFF;fill:none;stroke-width:2.2}
.ai-note{margin:0;padding:0 14px 10px;font-size:11px;color:#000;opacity:.65;background:#fff}

/* phones: launcher = AI only (LINE / call live inside the sheet); panel becomes a bottom sheet */
@media (max-width:620px){
  .ai-fab{right:12px;bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  .ai-tab{width:62px;height:62px;border-radius:22px !important;font-size:11.5px}
  .ai-tab svg{width:22px;height:22px}
  .ai-panel{left:8px;right:8px;bottom:8px;width:auto;max-width:none;height:min(80vh,640px);transform:translateY(calc(100% + 24px))}
}
@media (prefers-reduced-motion:reduce){.ai-panel,.ai-fab,.ai-msg{transition:none!important;animation:none!important}}

/* ===== "ถาม AI" launcher: alive enough to invite a tap (respects reduced motion) ===== */
.ai-tab::before{content:"";position:absolute;inset:-4px;border-radius:28px !important;z-index:-1;background:conic-gradient(from var(--ai-a,0deg),#FF6100,#00A2FF,#008CFF,#FF8100,#FF6100);animation:aiSpin 3s linear infinite;filter:blur(1px)}
.ai-tab::after{content:"";position:absolute;inset:0;border-radius:inherit !important;z-index:-1;background:linear-gradient(135deg,#0072F3,#00A2FF);box-shadow:0 0 0 0 rgba(0,140,255,.55);animation:aiRing 2.4s ease-out infinite}
.ai-tab svg{animation:aiWiggle 4.8s ease-in-out infinite;transform-origin:50% 60%}
.ai-tab .ai-dot{animation:aiDotPulse 1.6s ease-in-out infinite}
@property --ai-a{syntax:"<angle>";inherits:false;initial-value:0deg}
@keyframes aiSpin{to{--ai-a:360deg}}
@keyframes aiRing{0%{box-shadow:0 0 0 0 rgba(0,140,255,.55)}80%,100%{box-shadow:0 0 0 16px rgba(0,140,255,0)}}
@keyframes aiWiggle{0%,82%,100%{transform:rotate(0)}86%{transform:rotate(-14deg) scale(1.15)}90%{transform:rotate(12deg) scale(1.15)}94%{transform:rotate(-6deg)}}
@keyframes aiDotPulse{50%{transform:scale(1.35)}}
.ai-bubble{position:fixed;z-index:72;right:104px;bottom:calc(30px + env(safe-area-inset-bottom,0px));max-width:240px;padding:12px 16px;border-radius:18px 18px 4px 18px !important;background:#fff;border:1px solid #E4EEF8;box-shadow:0 18px 40px -18px rgba(0,114,243,.55);font:500 14px/1.45 var(--f);color:#000;cursor:pointer;
  opacity:0;transform:translateX(16px) scale(.9);transform-origin:100% 100%;pointer-events:none;transition:opacity .35s,transform .5s var(--spring)}
.ai-bubble b{color:#008CFF}
.ai-bubble.show{opacity:1;transform:none;pointer-events:auto}
html.ai-open .ai-bubble{display:none}
@media (max-width:620px){.ai-bubble{right:12px;bottom:calc(160px + env(safe-area-inset-bottom,0px))}}
@media (prefers-reduced-motion:reduce){.ai-tab::before,.ai-tab::after,.ai-tab svg,.ai-tab .ai-dot{animation:none!important}}

/* ===== docked mode: the expand button in the header pins the assistant beside the page (≥1100px) ===== */
.ai-dockbtn{margin-left:auto}
.ai-dockbtn + .ai-x{margin-left:6px!important}
html.ai-dock .ai-dock-arr{transform:rotate(180deg);transform-origin:9px 12px}
@media (max-width:1099px){.ai-dockbtn{display:none}.ai-dockbtn + .ai-x{margin-left:auto!important}}
@media (min-width:1100px){
  html.ai-dock .ai-panel{top:calc(env(safe-area-inset-top,0px) + 86px);bottom:16px;height:auto;width:380px;transform-origin:100% 50%;transform:translateX(calc(100% + 32px))}
  html.ai-dock.ai-open .ai-panel{transform:none}
  html.ai-dock.ai-open body{padding-right:404px;transition:padding .45s var(--ease)}
  html.ai-dock.ai-open .hm-cb-wrap:not(.is-docked){padding-right:16px}
}
/* in-chat sign-up ("สนใจสมัครใช้งาน"): orange call-to-action chip, step counter, answer summary, consent */
.ai-chips button.ai-lead{background:linear-gradient(135deg,#FF6100,#FF6100);border-color:#FF6100;color:#fff;font-weight:700;box-shadow:0 8px 18px -10px rgba(255,97,0,.8)}
.ai-chips button.ai-lead:hover{background:#FF6100}
.ai-chips button.ai-x2{border-color:#E4EEF8;color:#008CFF;font-size:12px;padding:5px 10px}
.ai-chips button.ai-x2:hover{background:#E4EEF8}
.ai-msg .ai-step{display:block;margin-top:6px;font-size:11.5px;color:#008CFF}
.ai-pdpa{display:flex;gap:6px;align-items:flex-start;font-size:12px;line-height:1.45;color:#008CFF}
.ai-pdpa input{margin:2px 0 0;accent-color:#008CFF;flex:none}
.ai-pdpa a{color:#008CFF}
.ai-ok{display:inline-grid;place-items:center;width:22px;height:22px;margin-right:4px;border-radius:50% !important;background:#008CFF;color:#fff;font-size:13px;vertical-align:-4px}
.ai-dim{color:#000000;font-weight:400}
.ai-pdpa.ai-need{outline:2px solid #FF6100;outline-offset:4px;border-radius:6px !important}
.ai-chips button:disabled{opacity:.5;cursor:default}
/* "ลงทะเบียนสำเร็จ" card (same content as the registration success page, without the password) */
.ai-msg.bot.ai-msg-reg{max-width:100%;width:100%;white-space:normal;padding:16px 14px}
.ai-reg{display:grid;gap:8px;justify-items:center;text-align:center;font-size:14px}
.ai-reg-h{font-size:18px;color:#008CFF}
.ai-reg-ic{width:64px;height:64px;border-radius:50% !important;background:#E4EEF8;display:grid;place-items:center;font-size:34px;line-height:1}
.ai-hs{color:#008CFF}.ai-hs i{font-style:normal;color:#FF6100}
.ai-reg-d{display:grid;grid-template-columns:auto minmax(0,1fr);gap:4px 8px;width:100%;margin:2px 0 0;padding:10px 12px;border:1px solid #E4EEF8;border-radius:12px !important;text-align:left;font-size:13px}
.ai-reg-d dt{color:#008CFF}.ai-reg-d dd{margin:0;font-weight:600;word-break:break-word}
.ai-reg-url{width:100%;padding:8px 10px;border:1px solid #E4EEF8;border-radius:10px !important;font-size:13px;word-break:break-all}
.ai-reg-url a{color:#008CFF;font-weight:600}
.ai-reg small{font-size:11.5px;line-height:1.5;color:#000000}.ai-reg small em{font-style:normal;color:#FF6100}
.ai-reg-go,.ai-reg-ct{display:block;width:100%;padding:10px 12px;border-radius:999px !important;font:700 14px/1.3 var(--f);text-align:center;text-decoration:none;cursor:pointer}
.ai-msg .ai-reg-go{background:#008CFF;color:#fff;border:0;box-shadow:0 10px 20px -12px rgba(0,140,255,.9)}.ai-msg .ai-reg-go:hover{background:#0072F3}   /* CI blue (kit/build maps off-palette colours) */
.ai-reg-ct{background:#fff;color:#008CFF;border:1.5px solid #289FFF}.ai-reg-ct:hover{background:#E4EEF8}.ai-reg-ct:disabled{opacity:.55;cursor:default}
.ai-ct{display:flex;gap:6px;margin-top:8px}
.ai-msg .ai-ct a{flex:1;padding:8px 10px;border-radius:999px !important;text-align:center;font-weight:700;font-size:13px;text-decoration:none}
.ai-msg .ai-ct-tel{border:1.5px solid #289FFF;color:#008CFF}.ai-msg .ai-ct-line{background:#008CFF;color:#fff}

/* ===== override ฝั่งเรา: ผู้ช่วย AI เป็น drawer (desktop) / เต็มหน้า (mobile) ===== */
.ai-tab::after{border-radius:24px!important}
/* วงแสงรอบปุ่ม "ถาม AI": เพิ่มฟ้าสว่าง #2ED1FF คั่นระหว่างส้ม #FF6100 กับฟ้าสด #00A2FF และระหว่างฟ้า #008CFF กับส้มอ่อน #FF8100 (ของ MKT ไม่มีสีนี้) */
.ai-tab::before{background:conic-gradient(from var(--ai-a,0deg),#FF6100,#2ED1FF,#00A2FF,#008CFF,#2ED1FF,#FF8100,#FF6100)!important}
/* มือถือ/แท็บเล็ตเล็ก (≤760px): แถบ "ลองใช้จริง ฟรี 30 วัน" (#start .hm-cb-wrap) วางแถวเดียวกับปุ่ม "ถาม AI" (ชิดซ้ายของปุ่ม) ไม่ลอยอยู่เหนือปุ่ม (มติ ผู้ใช้ 4 พ.ย. 2026)
   ของ MKT ตั้ง bottom:80px เพื่อเว้นที่ให้ dock (LINE/โทร) แต่ทุกหน้าของ MKT ซ่อน dock ไว้เอง (#dock{display:none!important}) → ไม่มีอะไรให้เว้น
   ขนาดปุ่ม AI: ≤620px = 72px (เดิม 62px · ขยายให้ใหญ่สุดในแถว 5 พ.ย. 2026) ชิดขวา 12px ล่าง 12px · 621–760px = 72px ชิดขวา 16px ล่าง 18px
   ใช้ html นำหน้าเพื่อชนะกฎของ MKT (.hm-cb-wrap:not(.is-docked){padding-right:…}) ที่มี specificity สูงกว่า */
@media (max-width:760px){
  html .hm-cb-wrap{bottom:calc(18px + env(safe-area-inset-bottom,0px))}
  html .hm-cb-wrap:not(.is-docked){padding-right:calc(16px + 72px + 10px)}
}
@media (max-width:620px){
  html .hm-cb-wrap{bottom:calc(12px + env(safe-area-inset-bottom,0px))}
  html .hm-cb-wrap:not(.is-docked){padding-right:calc(12px + 62px + 8px)}
}
/* มือถือ (≤620px): แถบลอย "ลองใช้จริง ฟรี 30 วัน" (ข้อความตกเป็น 2 บรรทัด เบียดปุ่ม) แตกเป็น 3 ปุ่มให้เลือก = dock เดิมของ MKT (#dock: LINE แชทกับเรา · ติดต่อเรา · ทดลองใช้ฟรี)
   วางแถวเดียวกับปุ่ม "ถาม AI" ซึ่งใหญ่สุด 72px (มติ ผู้ใช้ 5 พ.ย. 2026) · กฎของ dock + ปุ่ม AI อยู่ใน src/app/globals.css (ไฟล์นี้ถูก generate ซ้ำ)
   ที่นี่แค่ซ่อนแถบตอนลอย (ปุ่มทดลองใช้ฟรีอยู่ใน dock แล้ว) · ตอนลงไปเป็นแถบเต็มจอเหนือ footer (.is-docked) แสดงตามเดิม */
@media (max-width:620px){
  html .hm-cb-wrap:not(.is-docked){opacity:0;visibility:hidden;pointer-events:none}
}
/* bubble ข้อความของปุ่ม "ถาม AI" (.ai-bubble): แถบทดลองใช้ฟรีลงมาอยู่ข้างปุ่มแล้ว → bubble ลงมาติดเหนือปุ่ม (ห่าง 10px) · MKT ตั้ง bottom:160px เพื่อเว้นที่ให้แถบที่เคยอยู่เหนือปุ่ม
   621–760px: ของ MKT วาง bubble ทางซ้ายของปุ่ม (right:104px) ซึ่งตอนนี้ทับแถบทดลองใช้ฟรี → วางเหนือปุ่มแทน · ขนาดปุ่ม AI: 72px ชิดขวา 16px ล่าง 18px (≤620px: 72px · 12px · 12px) */
@media (max-width:760px){
  html .ai-bubble{right:16px;bottom:calc(18px + 72px + 10px + env(safe-area-inset-bottom,0px))}
}
@media (max-width:620px){
  html .ai-bubble{right:12px;bottom:calc(12px + 72px + 10px + env(safe-area-inset-bottom,0px))}
}
/* ลดภาระเครื่อง (ไม่ลดเอฟเฟกต์): section ที่อยู่นอกจอไม่ต้องเรนเดอร์/เล่นแอนิเมชัน
   1) RedesignRuntime ใส่ data-rd-off ให้ section ที่ห่างจอเกิน ~1 หน้าจอ → หยุดแอนิเมชัน CSS ข้างใน (กลับมาเล่นต่อจากจุดเดิมเมื่อเลื่อนใกล้)
   2) content-visibility:auto ข้ามการ layout/paint ของ section ที่ยังไม่ถึง · ไม่ใส่ที่ hero / scene / rail (เลื่อนแบบปักค้าง) / cb-wrap (sticky) */
#rd-root [data-rd-off],#rd-root [data-rd-off] *,#rd-root [data-rd-off] *::before,#rd-root [data-rd-off] *::after{animation-play-state:paused!important}
/* 3) backdrop-filter (blur) เป็นของแพงสุดของ GPU — หน้านี้มี ~127 ชิ้น · ปิดเฉพาะใน section ที่ห่างจอเกิน 1 หน้าจอ (มองไม่เห็นอยู่แล้ว) เลื่อนเข้าใกล้ก็กลับมาก่อนถึงจอ */
#rd-root [data-rd-off],#rd-root [data-rd-off] *{-webkit-backdrop-filter:none!important;backdrop-filter:none!important}
/* แถบคุกกี้ (component กลาง · globals.css เป็นแถบเหลี่ยมเต็มความกว้าง) ในหน้านี้ให้โค้งตามดีไซน์ MKT: การ์ดลอย radius 24 · ปุ่มเม็ดยา · กระจกฝ้า
   CSS นี้โหลดเฉพาะหน้าที่เปิดดีไซน์ใหม่ (<link> ถูกถอดเมื่อออกจากหน้า) หน้าอื่นไม่เปลี่ยน */
.cookie-consent-banner{box-sizing:border-box;padding:10px max(16px,env(safe-area-inset-right,0px)) 10px max(16px,env(safe-area-inset-left,0px));
  background:rgba(255,255,255,.86);-webkit-backdrop-filter:blur(18px) saturate(1.4);backdrop-filter:blur(18px) saturate(1.4);
  border:solid #E4EEF8;border-width:1px 0;box-shadow:0 18px 50px -24px rgba(0,58,140,.35);font-family:var(--f)}
.cookie-consent-btns button{border-radius:999px !important;min-height:44px;font-family:var(--f)}
/* แถบเลื่อนของแถวการ์ดฟีเจอร์ (.hm-rail-track): globals.css ของเว็บเรากำหนด ::-webkit-scrollbar สีเทา + ปุ่มลูกศรทั้งเว็บ (ชนะ scrollbar-width:thin ของ MKT)
   → ออกแบบใหม่ตามธีม: ราง = ฟ้าจาง · ตัวเลื่อน = ไล่สีฟ้าแบรนด์ทรงเม็ดยา · ชี้แล้วฟ้าเข้มขึ้นนิดหน่อย · ไม่มีปุ่มลูกศร
   (::-webkit-scrollbar ใช้ได้เมื่อ scrollbar-width/color เป็น auto เท่านั้น → ตั้ง auto ให้ Chrome/Edge · Firefox ใช้ scrollbar-color ด้านล่าง) */
#rd-root .hm-rail-track,#rd-root .hm-tx-rail{scrollbar-width:auto!important;scrollbar-color:auto!important}
#rd-root .hm-rail-track::-webkit-scrollbar{height:12px!important;width:12px!important;display:block!important}
#rd-root .hm-rail-track::-webkit-scrollbar-button{display:none!important;width:0!important;height:0!important}
#rd-root .hm-rail-track::-webkit-scrollbar-track{background:rgba(0,140,255,.10)!important;border-radius:999px!important;margin:0 24px}
#rd-root .hm-rail-track::-webkit-scrollbar-thumb{background:linear-gradient(90deg,#008CFF,#00A2FF)!important;border:3px solid transparent!important;background-clip:padding-box!important;border-radius:999px!important}
#rd-root .hm-rail-track::-webkit-scrollbar-thumb:hover{background:linear-gradient(90deg,#0072F3,#008CFF)!important;background-clip:padding-box!important}
@supports (-moz-appearance:none){#rd-root .hm-rail-track{scrollbar-width:thin!important;scrollbar-color:#008CFF rgba(0,140,255,.10)!important}}
/* ไอคอนในปุ่มกลางวง (.ta-fp ลายนิ้วมือ · .ta-bio · .of-pad): Tailwind preflight ของเว็บเรากำหนด svg{display:block} (ในชุดต้นฉบับ svg เป็น inline จึงถูกจัดกึ่งกลางด้วย text-align:center ของปุ่ม)
   พอเป็น block ไอคอนชิดซ้ายของปุ่ม → จัดกึ่งกลางแนวนอนเอง */
#rd-root :is(.ta-fp,.ta-bio button,.of-pad)>.ta-ic{margin-inline:auto}
/* แถบล่างของกล้องสแกน QR (.ta-cambar.dark): ทำให้เหมือนแอปจริง — แถบเทาไล่สี · ปุ่มแฟลช/รูปภาพเป็นวงกลมเทาเข้มไม่มีขอบ · ไอคอนเทา
   (เดิมไอคอนรับสีดำจากสไตล์อื่นบนพื้นดำ จึงเห็นแค่วงขอบขาวเปล่า ๆ) */
#rd-root .ta-cambar.dark{background:linear-gradient(180deg,#3b3b3d,#58585b)}
#rd-root .ta-cambar.dark span{width:46px;height:46px;border:0;background:rgba(20,20,22,.55);color:#9a9a9e}
#rd-root .ta-cambar.dark .ta-ic{width:22px;height:22px;stroke:currentColor}
/* class .ring ของ MKT (โดนัท "252 คน") ชนกับ utility .ring ของ Tailwind ในเว็บเรา (box-shadow 0 0 0 1px = เส้นขอบดำ) — ในชุดต้นฉบับไม่มี Tailwind จึงไม่มีเส้น */
#rd-root .ring{--tw-ring-shadow:0 0 #0000;--tw-ring-offset-shadow:0 0 #0000;box-shadow:none}
/* ส่วน "ทุกช่องทาง": ข้อความ "เมนู องค์กร › ข้อมูลพนักงาน" ใต้คำอธิบายนอกจอจำลอง — เอาออกตามที่ขอ (breadcrumb ในจอจำลอง .fx-crumb ยังอยู่) */
.fx-path{display:none!important}
/* section .t-plain (หน้าฟีเจอร์: หัวข้อ + ย่อหน้า + รายการข้อ) ซ่อนไว้ก่อนตามที่ขอ — ยังอยู่ใน HTML · ลบบรรทัดนี้เพื่อเอากลับ */
#rd-root .t-plain{display:none!important}

/* ไม่มีปุ่มสลับ "ย่อเป็นหน้าต่างลอย" — ใช้โหมดปักแผง/drawer แบบเดียว (สคริปต์ตั้ง dock เป็นค่าเริ่มต้นเอง) */
.ai-head .ai-dockbtn{display:none!important}
.ai-head .ai-dockbtn + .ai-x,.ai-head .ai-x{margin-left:auto!important}
/* drawer เลื่อนเข้า-ออกเรียบ ๆ ไม่เด้ง (ของ MKT ใช้ --spring) */
.ai-panel{transition:transform .3s ease,opacity .2s ease,visibility 0s .3s}
html.ai-open .ai-panel{transition:transform .3s ease,opacity .2s ease,visibility 0s}
@media (min-width:1100px){
  /* โหมดปักแผง (จำค่าไว้ใน localStorage) เดิมลอยเป็นการ์ดมุมโค้งใต้ header — ทำให้เป็น drawer เต็มสูงเหมือนโหมดปกติ (กว้าง 404px = ช่องที่เว็บเว้นให้) */
  /* ผู้ช่วยปักข้างจอ (เนื้อหาถูกดันซ้าย 404px) → แถบคุกกี้คาดเต็มพื้นที่ที่เหลือ ไม่ลอดใต้ drawer */
  html.ai-dock.ai-open .cookie-consent-banner{right:404px}
  html.ai-dock .ai-panel{top:0;bottom:0;right:0;height:100vh;height:100dvh;width:404px;border-radius:0 !important;border-width:0 0 0 1px;box-shadow:-24px 0 60px -30px rgba(0,58,140,.45)}
}
@media (max-width:620px){
  .ai-panel{inset:0;left:0;right:0;top:0;bottom:0;width:100%;max-width:none;height:100vh;height:100dvh;border-radius:0 !important;border-width:0;box-shadow:none;transform:translateY(100%)}
  .ai-head{padding-top:calc(14px + env(safe-area-inset-top,0px))}
  .ai-note{padding-bottom:calc(10px + env(safe-area-inset-bottom,0px))}
}
/* drawer ของจอใหญ่ — media สุดท้ายของไฟล์ ห้ามมี media ต่อจากนี้ */
@media (min-width:621px){
  .ai-panel{top:0;bottom:0;right:0;height:100vh;height:100dvh;width:420px;max-width:100vw;border-radius:0 !important;border-width:0 0 0 1px;
    transform-origin:100% 50%;transform:translateX(100%);box-shadow:-24px 0 60px -30px rgba(0,58,140,.45)}
  .ai-head{padding-top:calc(14px + env(safe-area-inset-top,0px))}
}
