
/* ===== page ===== */
/* ===== ABOUT PAGE (page prefix: ab-) ===== */
/* page tokens
   --ab-edge  visible rim for glass buttons on white
   --ab-plate logo plates stay light in both themes so partner/standard logos keep their own colours
   --ab-or-t  orange for SMALL text: #FF6100 is 5.4:1 on white / 4.85:1 on --orange-l (brand #FF6100 is only 3:1);
              dark theme keeps the brand orange, which already passes on navy
   --ab-on-or text on an orange chip (white in light, near-black in dark where the orange is brighter) */
:root{--ab-edge:#E4EEF8;--ab-plate:#fff;--ab-or-t:#FF6100;--ab-on-or:#fff;--ab-ok-t:#008CFF}

/* ---------- page-level fixes to shared pieces (sent as kit requests; delete each once kit/core.css has it) ---------- */
/* light --muted at AA (5.4:1 on white, 4.9:1 on ice); the dark-theme value in core still wins in dark mode */
:root{--muted:#000000}
/* Thai text must not be tracked out */
.kick,.plabel{letter-spacing:0}
/* white text on the kick label: brand orange is 3:1, this is 5.5:1 (both themes) */
.kick b{background:#FF6100}
/* tinted sections fade in instead of cutting the ambient light with a straight edge */
.tint{background:linear-gradient(180deg,transparent 0,color-mix(in srgb,var(--blue-xl) 70%,transparent) 140px,transparent 85%)}
/* heading highlight: brand blues only (sky #289FFF was ~1.5:1 on white); sheen plays once, on reveal */
.h-sec em,.p-hero h1 em{background-image:linear-gradient(90deg,var(--blue-2),var(--blue),var(--blue-2));animation:none}
.h-sec.rv.in em{animation:sheen 2.4s var(--ease) .2s 1}
.p-hero h1 em{animation:sheen 2.4s var(--ease) .5s 1}
/* CTA fills with white text at AA in both themes (core's #FF6100→#FF8100 is 2.1–2.8:1); same values as contact-us */
.btn.primary,.dock a.try-free{background:linear-gradient(135deg,#FF6100,#FF6100)}
.btn.primary{box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 14px 34px -14px rgba(196,72,0,.75)}
.btn.blue{background:linear-gradient(135deg,#008CFF,#008CFF);box-shadow:inset 0 1px 0 rgba(255,255,255,.35),0 14px 34px -14px rgba(0,104,201,.7)}
/* heading scale: the page H1 stays the largest heading (core .h-sec reaches 60px, .p-hero h1 only 56px) */
.ab-hero h1{font-size:clamp(34px,4.6vw,60px)}
main .h-sec{font-size:clamp(28px,3.6vw,48px)}

/* shared small label: "01 จุดเริ่มต้น" */
.ab-k{display:inline-flex;align-items:center;gap:10px;font-size:14px;font-weight:600;color:var(--ab-or-t)}
.ab-k b{display:grid;place-items:center;min-width:34px;height:26px;padding:0 8px;border-radius:999px !important;background:var(--orange-l);color:var(--ab-or-t);letter-spacing:.02em;font-variant-numeric:tabular-nums;transition:background .4s,color .4s}
/* the chapter being read gets a filled number chip */
.ab-ch.on .ab-k b{background:var(--ab-or-t);color:var(--ab-on-or)}

/* glass buttons on light grounds get a visible rim */
.ab-hero .btn:not(.primary),.ab-hours .btn:not(.primary),.ab-addr .btn:not(.primary):not(.blue){border-color:var(--ab-edge)}
/* stat and support rows are not links: no hover lift */
.ab-facts .stat:hover,.ab-sup .sup-item:hover{transform:none}

/* ---------- hero (grid from core .hero2) ---------- */
@media (min-width:901px){.ab-hero .wrap{grid-template-columns:minmax(0,1fr) minmax(0,1.08fr);gap:clamp(28px,5vw,72px)}}
.ab-hero-kick{margin-top:18px}
.ab-hero h1{margin-top:16px}
.ab-hero-art{position:relative;padding:30px 0 40px}
.ab-halo{position:absolute;z-index:-1;inset:-4% -6% 0 4%;border-radius:50% !important;background:radial-gradient(closest-side,rgba(0,140,255,.30),rgba(62,191,251,.12) 60%,transparent 75%)}
.ab-halo::after{content:"";position:absolute;width:46%;aspect-ratio:1;right:-4%;bottom:-6%;border-radius:50% !important;background:radial-gradient(closest-side,rgba(255,113,6,.24),transparent 72%)}
.ab-frame{border-radius:36px !important;padding:10px;animation:rise 1.2s var(--ease) both;transition:transform .5s var(--ease)}
.ab-frame img{width:100%;height:auto;aspect-ratio:16/9;object-fit:cover;border-radius:28px !important}
/* chips sit on sky and steps only (never on faces) and arrive once, staggered, instead of bobbing forever */
.ab-chip{animation:pop .7s var(--ease) .5s both}
.ab-chip i{width:28px;height:28px;flex:none;border-radius:50% !important;display:grid;place-items:center;background:var(--blue)}
.ab-chip svg{width:16px;height:16px;fill:none;stroke:#fff;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}
.ab-chip.c1{left:-12px;top:6px}
.ab-chip.c2{right:-24px;bottom:-6px;animation-delay:.65s}
.ab-chip.c2 i{background:var(--ab-or-t)}
.ab-chip.c3{left:7%;bottom:8px;animation-delay:.8s}
@media (max-width:900px){.ab-hero-art{width:100%;max-width:520px;margin-inline:auto}.ab-chip.c2{right:-8px}}
@media (max-width:560px){
  .ab-hero-art{padding:26px 0 34px}
  .ab-halo{inset:0}
  .ab-frame{border-radius:26px !important;padding:6px}
  .ab-frame img{border-radius:21px !important}
  .ab-chip i{width:22px;height:22px}
  .ab-chip svg{width:13px;height:13px}
  .ab-chip.c1{left:-4px;top:4px}
  .ab-chip.c2{right:-4px;bottom:8px}
  .ab-chip.c3{display:none}
}
@media (max-width:480px){.ab-hero .hero-ctas .btn{flex:1 1 100%}}

/* ---------- facts (3 figures; no count-up so a screenshot never shows a half-counted number) ---------- */
.ab-facts{padding-bottom:clamp(48px,6vw,84px)}
.ab-facts .stats{grid-template-columns:repeat(3,minmax(0,1fr))}
.ab-facts .stat b{font-size:clamp(28px,3.1vw,42px)}
.ab-src{display:flex;flex-wrap:wrap;justify-content:flex-end;align-items:center;gap:0 8px;margin-top:8px}
.ab-src a{display:inline-flex;align-items:center;min-height:44px;color:var(--blue-2);font-weight:600;text-decoration:none}
.ab-src a:hover{text-decoration:underline}
@media (max-width:560px){
  .ab-facts .stats{grid-template-columns:1fr;gap:10px}
  .ab-facts .stat{display:grid;grid-template-columns:auto minmax(0,1fr);align-items:center;gap:0 16px;padding:14px 18px}
  .ab-facts .stat b{grid-column:1;grid-row:1/3;min-width:5.2em;font-size:28px}
  .ab-facts .stat small,.ab-facts .stat span{grid-column:2}
  .ab-src{flex-direction:column;align-items:flex-start;gap:0;margin-top:12px}
  .ab-dot{display:none}
}

/* ---------- story: phones/tablets = vertical timeline of cards (text first, then the visual) ---------- */
.ab-story{position:relative;margin-top:clamp(28px,4vw,48px)}
.ab-chs{--fill:0;position:relative;list-style:none;margin:0;padding:0 0 0 36px;display:grid;gap:18px}
.ab-chs::before,.ab-chs::after{content:"";position:absolute;left:11px;top:16px;bottom:16px;width:3px;border-radius:3px !important;background:var(--line)}
.ab-chs::after{background:linear-gradient(var(--blue),var(--orange));transform-origin:50% 0;transform:scaleY(var(--fill));transition:transform .25s linear}
.ab-ch{border-radius:var(--r-l) !important;padding:clamp(18px,3vw,30px);display:grid;grid-template-columns:minmax(0,1.1fr) minmax(0,.9fr);gap:clamp(18px,3vw,36px);align-items:center}
.ab-ch::before{content:"";position:absolute;left:-33px;top:34px;width:17px;height:17px;border-radius:50% !important;background:var(--ground);border:3px solid var(--line);transition:border-color .4s,background .4s,box-shadow .4s,transform .5s var(--spring)}
.ab-ch.seen::before{border-color:var(--blue);background:var(--blue);box-shadow:0 0 0 5px var(--blue-l)}
.ab-ch-txt{order:-1}
.ab-ch-txt h3{font-size:clamp(22px,2.4vw,32px);line-height:1.25;letter-spacing:-.02em;margin-top:10px}
.ab-ch-txt h3:focus{outline:none}
.ab-ch-txt p{color:var(--mid);margin-top:10px}
.ab-ch-txt p b{color:var(--ink)}
.ab-ch-txt .more{margin-top:14px;min-height:44px}
.ab-ch-txt p,.ab-quote,.ab-vals-l span,.ab-vals-h p,.sup-item span,.stat span{text-wrap-style:pretty}
.ab-ch-art{display:grid;place-items:center;min-height:260px}
.ab-art{position:relative}
@media (max-width:700px){
  .ab-chs{padding-left:28px;gap:14px}
  .ab-chs::before,.ab-chs::after{left:8px}
  .ab-ch{grid-template-columns:1fr;padding:16px 16px 22px}
  .ab-ch::before{left:-27px;top:20px;width:15px;height:15px}
  .ab-ch-art{min-height:0;padding:4px 0 0}
  /* purely typographic visuals repeat the text next to them: phones get the text only */
  .ab-chs .ab-deco{display:none}
}

/* chapter visuals */
/* 01: the path picture with one label per node (rows = thirds of the picture, so each label lines up with its node) */
.ab-art-path{display:grid;grid-template-columns:auto auto;grid-template-rows:repeat(3,minmax(0,1fr));column-gap:14px;align-items:center}
.ab-art-path img{grid-row:1/4;height:240px;width:auto}
.ab-tag{justify-self:start;padding:8px 14px;border-radius:14px !important;font-size:14px;font-weight:600;line-height:1.35;max-width:170px}
.ab-art-word{border-radius:32px !important;padding:30px 34px;text-align:center;display:flex;flex-direction:column;align-items:center;gap:6px;max-width:340px}
.ab-art-word small{font-size:13px;font-weight:600;letter-spacing:.1em;text-transform:uppercase;color:var(--blue-2)}
.ab-art-word b{font-size:clamp(60px,7.6vw,100px);line-height:1.05;letter-spacing:-.04em;color:var(--blue)}
.ab-art-word b i{font-style:normal;color:var(--orange)}
.ab-art-word span{color:var(--mid)}
.ab-art-q small{letter-spacing:0}
.ab-art-q b{color:var(--ink)}
.ab-art-q img{height:20px;width:auto;margin-top:10px}
.ab-cal{border-radius:30px !important;overflow:hidden;width:min(100%,260px);text-align:center;display:flex;flex-direction:column;align-items:center;padding-bottom:22px}
.ab-cal-top{align-self:stretch;padding:12px;background:linear-gradient(135deg,#008CFF,#008CFF);color:#fff;font-weight:600}
.ab-cal b{font-size:clamp(84px,9vw,116px);line-height:1;letter-spacing:-.05em;color:var(--ink);margin-top:16px}
.ab-cal > span:not(.ab-cal-top){color:var(--mid);font-weight:600;margin-top:4px}
.ab-cal img{height:20px;width:auto;margin-top:14px}
.ab-flow{display:flex;flex-direction:column;align-items:center}
.ab-flow span.glass{display:flex;flex-direction:column;align-items:center;min-width:230px;padding:18px 28px;border-radius:26px !important;font-size:36px;font-weight:700;line-height:1.1;color:var(--blue)}
.ab-flow span.o{color:var(--orange)}
.ab-flow small{margin-top:6px;font-size:13px;font-weight:500;color:var(--mid)}
.ab-flow i{position:relative;width:3px;height:46px;border-radius:3px !important;background:linear-gradient(var(--blue),var(--orange))}
.ab-flow i::after{content:"";position:absolute;left:50%;bottom:1px;width:10px;height:10px;border-right:3px solid var(--orange);border-bottom:3px solid var(--orange);transform:translateX(-50%) rotate(45deg)}
.ab-seals{display:grid;gap:14px;width:min(100%,400px)}
.ab-iso{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px}
.ab-iso span,.ab-by span{display:grid;place-items:center;border-radius:20px !important;background:var(--ab-plate);box-shadow:0 12px 28px -18px rgba(0,58,114,.5)}
.ab-iso span{aspect-ratio:1.35;padding:16px}
.ab-iso img{max-height:84px;width:auto;max-width:100%;object-fit:contain}
.ab-by{display:flex;flex-wrap:wrap;align-items:center;gap:8px}
.ab-by small{flex:0 0 100%;font-size:13px;font-weight:600;color:var(--muted)}
.ab-by span{flex:1;height:52px;padding:8px 12px}
.ab-by img{max-height:24px;width:auto;max-width:100%;object-fit:contain}
.ab-sup-by span{height:64px}
.ab-sup-by img{max-height:46px}
.ab-by img.ab-rest{max-height:30px;filter:brightness(.8) saturate(2) contrast(1.5)}
.ab-seal-line{display:none}
.ab-photo{width:100%;max-width:520px;padding-bottom:22px;container-type:inline-size}
.ab-pframe{border-radius:30px !important;padding:8px}
.ab-pframe img{width:100%;height:auto;border-radius:23px !important}
/* centred plate under the photo: width follows its content, so the logo never spills out */
.ab-x{position:absolute;left:0;right:0;bottom:0;margin-inline:auto;width:max-content;max-width:calc(100% - 24px);display:flex;align-items:center;gap:10px;padding:10px 18px;border-radius:18px !important;white-space:nowrap;background:var(--ab-plate);box-shadow:0 14px 30px -16px rgba(0,58,114,.5)}
.ab-x b{font-size:clamp(14px,3.4cqi,17px);color:#008CFF}
.ab-x i{font-style:normal;font-weight:700;color:#008CFF}
.ab-x img{flex:none;height:clamp(14px,4.4cqi,22px);width:auto}
/* the three logo rows read as one sentence on tablets (2-up grid keeps Azure/REST/JWT legible) */
@media (max-width:1023px){
  .ab-tech{display:grid;grid-template-columns:repeat(2,minmax(0,1fr))}
  .ab-tech small,.ab-tech span:first-of-type{grid-column:1/-1}
  .ab-tech img{max-height:28px}
}
@media (max-width:700px){
  .ab-art-path img{height:200px}
  .ab-tag{font-size:13px;padding:7px 12px;max-width:150px}
  .ab-flow span.glass{min-width:190px;font-size:28px;padding:12px 20px}
  .ab-flow i{height:30px}
  .ab-x{gap:8px;padding:8px 12px;border-radius:14px !important}
  /* chapter 05 on phones: the two ISO seals + one line instead of a wall of logo plates */
  .ab-seals .ab-by{display:none}
  .ab-seal-line{display:block;font-size:14px;line-height:1.6;color:var(--mid);text-align:center}
  .ab-iso span{aspect-ratio:1.6;padding:12px}
  .ab-iso img{max-height:64px}
}

/* ---------- story: wide screens = sticky stage + chapter text (set up by page.js) ---------- */
.ab-story.staged{display:grid;grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr);gap:clamp(36px,5vw,80px);align-items:start}
.ab-story.staged .ab-pin{position:sticky;top:118px;height:calc(100vh - 150px);max-height:540px;display:grid;grid-template-rows:minmax(0,1fr) auto;gap:14px}
.ab-story.staged .ab-chs{padding:0;gap:0}
.ab-story.staged .ab-chs::before,.ab-story.staged .ab-chs::after{display:none}
.ab-story.staged .ab-ch{display:flex;align-items:center;min-height:min(38vh,340px);padding:0;border:0;border-radius:0 !important;background:none;box-shadow:none;-webkit-backdrop-filter:none;backdrop-filter:none}
.ab-story.staged .ab-ch::before,.ab-story.staged .ab-ch::after{display:none}
/* the stage shows aria-hidden copies; the originals stay in the accessibility tree, visually hidden (same as core .sr) */
.ab-story.staged .ab-ch > .ab-ch-art{position:absolute;width:1px;height:1px;min-height:0;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
/* chapters that are not being read step back with colour (still AA), never with opacity */
.ab-story.staged .ab-ch-txt{transform:translateY(18px) scale(.98);transform-origin:0 50%;transition:transform .9s var(--ease)}
.ab-story.staged .ab-ch-txt h3,.ab-story.staged .ab-ch-txt p,.ab-story.staged .ab-ch-txt p b{transition:color .6s var(--ease)}
.ab-story.staged .ab-ch:not(.on) .ab-ch-txt h3{color:var(--mid)}
.ab-story.staged .ab-ch:not(.on) .ab-ch-txt p,.ab-story.staged .ab-ch:not(.on) .ab-ch-txt p b{color:var(--muted)}
.ab-story.staged .ab-ch.on .ab-ch-txt{transform:none}
.ab-stage{--i:0;position:relative;overflow:hidden;border-radius:40px !important}
.ab-stage::before{content:"";position:absolute;z-index:-1;inset:-25%;background:radial-gradient(32% 32% at 32% 34%,rgba(0,140,255,.22),transparent 70%),radial-gradient(28% 28% at 70% 70%,rgba(255,113,6,.16),transparent 70%);transform:rotate(calc(var(--i) * 52deg));transition:transform 1.4s var(--ease)}
.ab-stage .ab-ch-art{position:absolute;inset:0;min-height:0;padding:clamp(24px,3vw,40px);opacity:0;transform:translateY(46px) scale(.94);transition:opacity .55s var(--ease),transform .9s var(--ease)}
.ab-stage .ab-ch-art.past{transform:translateY(-46px) scale(.94)}
.ab-stage .ab-ch-art.on{opacity:1;transform:none}
/* stage scenes fill about 70% of the stage */
.ab-stage .ab-art-path{column-gap:20px}
.ab-stage .ab-art-path img{height:min(360px,52vh)}
.ab-stage .ab-tag{font-size:16px;padding:10px 18px;max-width:200px}
.ab-stage .ab-art-word{max-width:400px;padding:40px}
.ab-stage .ab-cal{width:320px}
.ab-stage .ab-flow span.glass{min-width:320px;font-size:52px;padding:24px 36px}
.ab-stage .ab-flow small{font-size:15px}
.ab-stage .ab-seals{width:min(100%,460px)}
.ab-stage .ab-photo{max-width:none}
.ab-rail{display:flex;align-items:center;gap:18px;padding-inline:8px}
.ab-count{display:flex;align-items:baseline;gap:4px;min-width:210px;font-size:14px;color:var(--muted);font-variant-numeric:tabular-nums;white-space:nowrap}
.ab-count b{font-size:24px;color:var(--ink);letter-spacing:-.02em}
.ab-count em{font-style:normal;font-weight:600;color:var(--blue-2);margin-left:10px}
.ab-rail ol{flex:1;display:flex;gap:6px;list-style:none;margin:0;padding:0}
.ab-rail li{flex:1}
.ab-rail a{position:relative;display:block;padding:20px 0;border-radius:6px !important}
.ab-rail a::before,.ab-rail a::after{content:"";display:block;height:4px;border-radius:4px !important;background:var(--line)}
.ab-rail a::after{position:absolute;left:0;right:0;top:20px;background:linear-gradient(90deg,var(--blue),var(--orange));transform:scaleX(0);transform-origin:0 50%;transition:transform .5s var(--ease)}
.ab-rail a:hover::before{background:var(--blue-sky)}
.ab-rail a.done::after,.ab-rail a[aria-current]::after{transform:none}
/* each bar's name (also its accessible name) shows as a small glass tip on hover / keyboard focus */
.ab-tip{position:absolute;left:50%;bottom:calc(100% - 8px);transform:translate(-50%,6px);opacity:0;white-space:nowrap;padding:6px 12px;border-radius:999px !important;font-size:13px;font-weight:600;line-height:1.4;color:var(--ink);background:var(--card);box-shadow:var(--glass-shadow);pointer-events:none;transition:opacity .25s,transform .3s var(--spring)}
.ab-rail a:hover .ab-tip,.ab-rail a:focus-visible .ab-tip{opacity:1;transform:translate(-50%,0)}
.ab-rail li:last-child .ab-tip{left:auto;right:-8px;transform:translateY(6px)}
.ab-rail li:last-child a:hover .ab-tip,.ab-rail li:last-child a:focus-visible .ab-tip{transform:none}
@media (prefers-reduced-motion:reduce){.ab-story.staged .ab-ch-txt{transform:none}}

/* ---------- vision / mission / value ---------- */
#vision,#contact{padding-top:clamp(40px,5vw,72px)}
.ab-ic{display:grid;place-items:center;width:56px;height:56px;border-radius:18px !important;background:var(--blue-l);color:var(--blue-2);flex:none}
.ab-ic.o{background:color-mix(in srgb,var(--orange) 14%,transparent);color:var(--ab-or-t)}
.ab-ic svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ab-vm{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:18px;margin-top:clamp(28px,4vw,44px)}
.ab-vm-c{display:grid;grid-template-columns:56px minmax(0,1fr);gap:14px 18px;align-items:center;padding:clamp(20px,2.6vw,30px);border-radius:var(--r-l) !important}
.ab-vm-c h3,.ab-vals-h h3{font-size:clamp(24px,2.4vw,30px)}
.ab-quote{grid-column:1/-1;font-size:clamp(16px,1.5vw,18px);color:var(--mid)}
.ab-quote::before{content:"“"}
.ab-quote::after{content:"”"}
.ab-vals{display:grid;gap:20px;margin-top:18px;padding:clamp(20px,2.6vw,30px);border-radius:var(--r-l) !important}
.ab-vals-h{display:flex;align-items:center;gap:18px}
.ab-vals-h p{margin-top:2px;font-size:15px;color:var(--mid)}
/* value items are rows inside the glass panel (hairline dividers, no card-in-card) */
.ab-vals-l{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));gap:0 22px;list-style:none;margin:0;padding:0}
.ab-vals-l li{display:flex;flex-direction:column;gap:6px;padding:18px 0 4px;border-top:1px solid var(--line)}
.ab-vals-l i{display:grid;place-items:center;width:44px;height:44px;border-radius:14px !important;background:var(--blue-l);color:var(--blue-2)}
.ab-vals-l li:nth-child(even) i{background:var(--orange-l);color:var(--ab-or-t)}
.ab-vals-l svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ab-vals-l b{margin-top:6px;font-size:17px}
.ab-vals-l span{font-size:14px;line-height:1.55;color:var(--mid)}
@media (min-width:561px) and (max-width:1099px){
  .ab-vals-l{grid-template-columns:repeat(6,minmax(0,1fr));gap:8px 22px}
  .ab-vals-l li{grid-column:span 2}
  .ab-vals-l li:nth-child(n+4){grid-column:span 3}
}
@media (max-width:900px){.ab-vm{grid-template-columns:1fr}}
@media (max-width:560px){
  .ab-vm-c{gap:12px 14px}
  .ab-ic{width:48px;height:48px;border-radius:15px !important}
  .ab-ic svg{width:24px;height:24px}
  .ab-vm-c{grid-template-columns:48px minmax(0,1fr)}
  .ab-vals-l{grid-template-columns:1fr}
  .ab-vals-l li{display:grid;grid-template-columns:44px minmax(0,1fr);gap:2px 14px;padding:14px 0 10px}
  .ab-vals-l i{grid-row:span 2}
  .ab-vals-l b{margin-top:0}
}

/* ---------- partners (logos on the same light plate as the ISO/NIA plates; not links, so no hover lift) ---------- */
.ab-pt-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;list-style:none;margin:clamp(26px,4vw,40px) 0 0;padding:0}
.ab-pt{display:flex;flex-direction:column;gap:2px;padding:12px 12px 18px;border-radius:var(--r-l) !important}
.ab-pt-logo{display:grid;place-items:center;aspect-ratio:16/9;padding:22px;margin-bottom:12px;border-radius:20px !important;background:var(--ab-plate);box-shadow:0 12px 28px -18px rgba(0,58,114,.5)}
.ab-pt-logo img{width:auto;height:auto;max-width:80%;max-height:56px;object-fit:contain}
.ab-pt small{padding-inline:6px;font-size:15px;font-weight:500;color:var(--mid);line-height:1.45}
@media (max-width:600px){.ab-pt-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media (max-width:420px){
  .ab-pt-grid{gap:10px}
  .ab-pt{padding:8px 8px 14px}
  .ab-pt-logo{border-radius:16px !important;margin-bottom:8px;padding:14px}
  .ab-pt-logo img{max-height:40px}
  .ab-pt small{font-size:13px}
}

/* ---------- support ---------- */
.ab-sup{display:grid;grid-template-columns:minmax(0,.85fr) minmax(0,1.15fr);gap:clamp(24px,4vw,64px);align-items:center}
.ab-sup-txt .h-sec,#vmv-h{max-width:none}
.ab-sup-l{display:grid;gap:10px;list-style:none;margin:24px 0 0;padding:0}
.ab-sup .sup-item{grid-template-columns:58px minmax(0,1fr)}
.ab-sup .sup-item b .nw{font-size:inherit;color:inherit}
/* badge sits on the disc's lower corner, clear of the agent's face and shoulder; no bob */
.ab-sup-art .badge-1537{width:34%;right:2%;bottom:-3%;animation:none}
@media (max-width:900px){
  .ab-sup{grid-template-columns:1fr}
  /* heading first, picture after it */
  .ab-sup-art{order:1;width:100%;max-width:260px;min-height:0;margin-inline:auto}
  .ab-sup-art img.person{max-height:300px}
}
@media (max-width:560px){.ab-sup-art .badge-1537{right:0;width:38%}}

/* "ลองเล่น" status-now card: a time scrubber (00.00–24.00) and the live answer */
.ab-hours{margin-top:clamp(44px,6vw,80px);align-items:stretch}
.ab-hours .pg-title{margin-top:14px;font-size:clamp(20px,2vw,26px);text-wrap-style:balance}
.ab-time{margin-top:26px}
.ab-time-h{display:flex;justify-content:space-between;gap:12px;font-size:16px;font-weight:500}
.ab-time-h output{font-weight:700;color:var(--blue-2);font-variant-numeric:tabular-nums}
.ab-dbar{position:relative;height:30px;margin-top:8px}
.ab-dbar-t{position:absolute;left:17px;right:17px;top:11px;height:8px;border-radius:8px !important;background:var(--line)}
/* 08.00 = 480/1440, 18.30 = 1110/1440 of the 00.00–24.00 slider */
.ab-open{position:absolute;top:0;bottom:0;left:33.333%;width:43.75%;border-radius:8px !important;background:linear-gradient(90deg,var(--green),#008CFF)}
.ab-dbar input[type=range]{position:absolute;inset:0;margin:0;background:transparent}
.ab-dbar input[type=range]::-webkit-slider-runnable-track{background:transparent}
.ab-dbar input[type=range]::-moz-range-track{background:transparent}
.ab-dbar input[type=range]::-webkit-slider-thumb{box-shadow:0 0 0 3px var(--ab-st,var(--green)),0 6px 16px -4px rgba(0,58,114,.5)}
.ab-dbar input[type=range]::-moz-range-thumb{box-shadow:0 0 0 3px var(--ab-st,var(--green)),0 6px 16px -4px rgba(0,58,114,.5)}
.ab-hours[data-s=soon]{--ab-st:var(--orange)}
.ab-hours[data-s=closed]{--ab-st:var(--red)}
.ab-dbar-x{position:relative;height:20px;margin:6px 17px 0;font-size:12px;color:var(--muted);font-variant-numeric:tabular-nums}
.ab-dbar-x span{position:absolute;top:0;transform:translateX(-50%)}
.ab-dbar-x span:nth-child(1){left:0;transform:none}
.ab-dbar-x span:nth-child(2){left:33.333%}
.ab-dbar-x span:nth-child(3){left:50%}
.ab-dbar-x span:nth-child(4){left:77.083%}
.ab-dbar-x span:nth-child(5){right:0;transform:none}
.ab-now{margin-top:22px}
.ab-res{--st:var(--green);display:flex;flex-direction:column;justify-content:space-between;gap:22px;overflow:hidden;padding:clamp(22px,3vw,34px);border-radius:var(--r-l) !important}
.ab-res[data-s=soon]{--st:var(--orange)}
.ab-res[data-s=closed]{--st:var(--red)}
/* status cue: a clean colour stripe along the top edge */
.ab-res::before{content:"";position:absolute;z-index:1;left:0;right:0;top:0;height:4px;background:var(--st);transition:background .4s}
.ab-res .pill{gap:8px}
.ab-res .pill.ok{color:var(--ab-ok-t)}
.ab-res .pill.wait{color:var(--ab-or-t)}
/* pulses three times whenever the result turns "open" (no endless loop) */
.ab-res[data-s=open] .pill::before{content:"";width:8px;height:8px;border-radius:50% !important;background:currentColor;animation:abPulse 1.6s ease-out 3}
.ab-res-h{margin-top:14px;font-size:clamp(24px,2.6vw,34px);font-weight:700;line-height:1.2;letter-spacing:-.02em;text-wrap-style:balance}
.ab-res-m{margin-top:8px;color:var(--mid);text-wrap-style:pretty}
.ab-res-d{display:flex;align-items:center;gap:8px;margin-top:16px;padding-top:14px;border-top:1px solid var(--line);font-size:15px;font-weight:600;color:var(--blue-2)}
.ab-res-d::before{content:"";flex:none;width:18px;height:18px;border-radius:50% !important;background:var(--blue-l) radial-gradient(circle,var(--blue) 0 3px,transparent 4px)}
.ab-res .acts{margin:0}
@keyframes abPulse{0%{box-shadow:0 0 0 0 color-mix(in srgb,currentColor 55%,transparent)}100%{box-shadow:0 0 0 9px transparent}}
@media (max-width:560px){.ab-res .acts .btn,.ab-now{flex:1 1 100%;width:100%}}

/* address (the footer already lists phone and e-mail) */
.ab-addr{display:grid;grid-template-columns:56px minmax(0,1fr) auto;gap:clamp(16px,2.4vw,28px);align-items:center;margin-top:clamp(18px,3vw,26px);padding:clamp(18px,2.4vw,26px);border-radius:var(--r-l) !important}
.ab-addr-ic{display:grid;place-items:center;width:56px;height:56px;border-radius:18px !important;background:var(--blue-l);color:var(--blue-2)}
.ab-addr-ic svg{width:28px;height:28px;fill:none;stroke:currentColor;stroke-width:1.8;stroke-linecap:round;stroke-linejoin:round}
.ab-addr-t h3{margin-top:4px;font-size:clamp(19px,1.8vw,22px)}
.ab-addr address{margin-top:6px;font-style:normal;font-size:15px;line-height:1.6;color:var(--mid);text-wrap-style:pretty}
.ab-addr-a{flex-direction:column;align-items:stretch;margin:0}
@media (max-width:1000px){
  .ab-addr{grid-template-columns:56px minmax(0,1fr);align-items:start}
  .ab-addr-a{grid-column:1/-1;flex-direction:row;flex-wrap:wrap}
}
@media (max-width:560px){
  .ab-addr{grid-template-columns:44px minmax(0,1fr);gap:14px}
  .ab-addr-ic{width:44px;height:44px;border-radius:14px !important}
  .ab-addr-ic svg{width:22px;height:22px}
  .ab-addr-a .btn{flex:1 1 100%}
}
.ab-res .acts .btn,.ab-addr .acts .btn{min-height:46px}

/* ---------- CTA (keeps core .sec padding; its last colour is the footer's first, so band and footer read as one) ---------- */
/* bottom glow uses the footer's own ellipse (120% wide, centred) so the band's last row equals the footer's first row */
.ab-cta{background:radial-gradient(120% 40% at 50% 100%,var(--night-2),transparent),radial-gradient(120% 80% at 50% 0%,var(--night-2),var(--night))}
.ab-cta h2{margin-top:14px}
.ab-cta .o-cta h2 span{white-space:nowrap}
.ab-cta .o-cta img{animation:none}
.ab-cta .kick b{white-space:nowrap}
@media (max-width:1000px){
  .ab-cta .o-cta{grid-template-columns:1fr}
  .ab-cta .o-cta img{order:-1;width:180px;justify-self:start}
  .ab-cta .hero-ctas .btn{flex:1 1 220px}
  .ab-cta .kick{padding-right:6px}
  .ab-kx{display:none}
}
@media (max-width:560px){.ab-cta .o-cta img{display:none}}
/* ===== 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}
/* 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))}
}
