/* หน้าแรก ตาม design/Main.html ใช้ตัวแปรสีจาก styles.css */
body.home{background:var(--card)}
.wrap{max-width:1200px;margin:0 auto;padding:0 24px;width:100%}
.pillbtn{display:inline-flex;align-items:center;justify-content:center;gap:10px;height:52px;padding:0 26px;border-radius:30px;background:var(--grad);color:#fff;font-size:16px;font-weight:600;white-space:nowrap}
.pillbtn.lg{height:60px;font-size:17px}.pillbtn.white{background:#fff;color:#1b2350}.pillbtn.blue{background:#2057b6}.pillbtn.line{background:var(--card);color:var(--ink);border:1.5px solid var(--line)}
.pillbtn[aria-disabled=true]{opacity:.6;pointer-events:none}
.eyebrow{font-size:14px;font-weight:600;letter-spacing:2px;color:var(--ink)}
.h-top{height:96px;display:flex;align-items:center;justify-content:space-between;gap:20px}
.h-top .brand{padding:0;font-size:22px}.h-top .brand small{font-size:14px}
.h-nav{display:flex;gap:32px}.h-nav a{font-size:16px;font-weight:500;color:var(--ink);padding:10px 4px}.h-nav a[aria-current]{color:var(--or);font-weight:600}
.h-act{display:flex;align-items:center;gap:18px}.h-act .login{font-size:16px;font-weight:600;color:var(--ink);padding:10px 4px}
.h-hero{position:relative;overflow:hidden;background:linear-gradient(180deg,#fff7f0 0%,#fdf7f2 48%,#f3f7ff 100%)}
:root[data-theme=dark] .h-hero{background:linear-gradient(180deg,#0b1226 0%,#0a1122 100%)}
.h-hero .sun{position:absolute;right:-60px;top:50px;width:660px;height:660px;border-radius:50%;background:radial-gradient(circle at 50% 42%,#fde68a 0%,#fbbf24 22%,#e2600d 55%,#d9793c 85%,#1a3a9e 100%);opacity:.92}
:root[data-theme=dark] .h-hero .sun{opacity:.55}
.h-hero .wrap{position:relative;display:flex;align-items:center;gap:40px;min-height:740px;padding-top:40px;padding-bottom:40px}
.h-copy{flex:0 1 620px;display:flex;flex-direction:column;gap:26px}
.h-copy h1{font-size:clamp(32px,3.9vw,52px);line-height:1.2;letter-spacing:-.5px}
.g1{background:linear-gradient(90deg,#cf4d0a 0%,#c26536 55%,#1e57b8 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
.g2t{background:linear-gradient(90deg,#1e57b8 0%,#172f80 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
:root[data-theme=dark] .g2t{background:linear-gradient(90deg,#7fa6ff 0%,#9dbbff 100%);-webkit-background-clip:text;background-clip:text}
.h-copy p{margin:0;font-size:19px;line-height:1.8;color:var(--mut)}
.h-tag{align-self:flex-start;height:36px;padding:0 16px;border-radius:18px;background:var(--soft);font-size:14px;font-weight:600;display:flex;align-items:center;gap:8px}
.h-ticks{display:flex;gap:22px;flex-wrap:wrap;font-size:14px;color:var(--mut)}.h-ticks span{display:flex;gap:8px;align-items:center}
.h-art{position:relative;flex:1;min-height:520px}
.h-mock{position:absolute;right:20px;top:60px;width:min(460px,100%);border-radius:26px;background:var(--card);box-shadow:0 30px 70px rgba(20,84,194,.22);padding:26px;display:flex;flex-direction:column;gap:14px}
.h-mock .m{display:flex;align-items:center;gap:12px;padding:12px 14px;border-radius:14px;border:1px solid var(--bsoft)}
.h-mock .m.on{border:2px solid #c2410c}.h-mock .m i{width:38px;height:38px;border-radius:12px;background:var(--soft);display:flex;align-items:center;justify-content:center;color:var(--bluetx)}.h-mock .m.on i{background:var(--osoft);color:var(--or)}
.h-mock .m b{display:block;font-size:15px;font-weight:600}.h-mock .m span span{font-size:12px;color:var(--mut)}
.h-mock .bar{height:8px;border-radius:4px;background:var(--osoft)}.h-mock .bar div{width:66%;height:100%;border-radius:4px;background:var(--blue)}
.h-float{position:absolute;border-radius:16px;padding:12px 16px;font-size:14px;font-weight:600;display:flex;align-items:center;gap:10px}
.h-float.a{left:0;top:20px;background:#2057b6;color:#fff;box-shadow:0 16px 40px rgba(32,87,182,.25)}
.h-float.b{right:0;bottom:30px;background:var(--card);flex-direction:column;align-items:flex-start;gap:2px;box-shadow:0 16px 40px rgba(20,84,194,.18)}.h-float.b span{font-size:13px;font-weight:400;color:var(--mut)}
.h-steps{position:relative;overflow:hidden;background:linear-gradient(120deg,#cf4d0a 0%,#e2600d 38%,#1d3fae 72%,#172f80 100%);padding:90px 0;color:#fff}
.h-steps .eyebrow,.h-steps h2{color:#fff}
.h-head{display:flex;justify-content:space-between;align-items:flex-end;gap:24px;margin-bottom:44px}
.h-head h2,.h-sec h2{font-size:clamp(28px,3.4vw,44px);line-height:1.3;font-weight:700}
.h-head>div{display:flex;flex-direction:column;gap:12px}
.h-3{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:24px}
.h-step{border-radius:24px;background:var(--card);color:var(--ink);padding:30px;display:flex;flex-direction:column;gap:14px}
.h-step .t{display:flex;justify-content:space-between;align-items:center}.h-step .t i{width:60px;height:60px;border-radius:18px;background:var(--osoft);color:var(--or);display:flex;align-items:center;justify-content:center}
.h-step:nth-child(2) .t i{background:var(--soft);color:var(--bluetx)}
.h-step .t b{font-family:'Prompt';font-size:50px;font-weight:700;line-height:1;color:var(--osoft)}.h-step:nth-child(2) .t b{color:var(--bsoft)}
.h-step h3{font-size:23px;font-weight:700}.h-step p{margin:0;font-size:15px;line-height:1.75;color:var(--mut);flex:1}.h-step a{font-size:15px;font-weight:600;color:var(--or)}
.h-sec{padding:110px 0}.h-sec.alt{background:var(--soft)}
.h-why{display:flex;align-items:center;gap:90px}
.h-orb{position:relative;width:min(500px,100%);aspect-ratio:1;flex-shrink:0}
.h-orb .o1{position:absolute;inset:4%;border-radius:50%;background:var(--osoft)}.h-orb .o2{position:absolute;inset:14%;border-radius:50%;background:var(--card);display:flex;align-items:center;justify-content:center}.h-orb .o2 img{width:46%;border-radius:50%}
.h-badge{position:absolute;border-radius:18px;padding:16px 20px;display:flex;flex-direction:column;gap:4px;font-size:13px}
.h-badge b{font-family:'Prompt';font-size:26px;font-weight:700}
.h-badge.a{left:-2%;bottom:8%;background:#2057b6;color:#fff;box-shadow:0 20px 40px rgba(32,87,182,.25)}
.h-badge.b{right:0;bottom:22%;background:var(--card);color:var(--mut);box-shadow:0 20px 40px rgba(20,84,194,.16)}.h-badge.b b{color:var(--or)}
:root[data-theme=dark] .h-badge.b,:root[data-theme=dark] .h-float.b,:root[data-theme=dark] .h-mock{border:1px solid var(--line)}
.h-why .txt{display:flex;flex-direction:column;gap:22px}.h-why .txt p{margin:0;font-size:17px;line-height:1.85;color:var(--mut)}
.h-list{display:flex;flex-direction:column;gap:16px}.h-list span{display:flex;align-items:center;gap:14px;font-size:17px;font-weight:500}.h-list i{width:28px;height:28px;border-radius:50%;background:var(--soft);color:var(--bluetx);display:flex;align-items:center;justify-content:center;flex-shrink:0}
.h-4{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:24px}
.h-tool{border-radius:22px;background:var(--card);border:1px solid var(--bsoft);padding:24px;display:flex;flex-direction:column;gap:14px;color:var(--ink)}
.h-tool .t{display:flex;justify-content:space-between;align-items:flex-start}.h-tool .t i{width:58px;height:58px;border-radius:18px;background:var(--osoft);color:var(--or);display:flex;align-items:center;justify-content:center}
.h-tool.b .t i{background:var(--soft);color:var(--bluetx)}
.h-tool .cr{font-size:11.5px;font-weight:600;color:var(--or);background:var(--osoft);padding:3px 9px;border-radius:12px}
.h-tool h3{font-size:19px;line-height:1.4;font-weight:600}.h-tool p{margin:0;font-size:14.5px;line-height:1.7;color:var(--mut);flex:1}
.h-tool .f{display:flex;justify-content:space-between;padding-top:12px;border-top:1px solid var(--bsoft);font-size:13px;color:var(--mut)}
.h-soon{display:flex;gap:12px;align-items:center;flex-wrap:wrap;font-size:15px;color:var(--mut);margin-top:40px}.h-soon span{height:32px;padding:0 14px;border-radius:16px;background:var(--card);border:1px solid var(--bsoft);color:var(--ink);font-size:14px;font-weight:500;display:flex;align-items:center}
.h-6{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:20px}
.h-plat{border-radius:20px;border:1px solid var(--bsoft);background:var(--card);padding:22px;display:flex;flex-direction:column;gap:14px}.h-plat.on{border:2px solid #c2410c}
.h-plat .t{display:flex;justify-content:space-between;align-items:flex-start;gap:6px}.h-plat .t i{width:52px;height:52px;border-radius:50%;background:#1a3a9e;color:#fff;display:flex;align-items:center;justify-content:center;font-style:normal;font-weight:700;font-family:'Prompt'}
.h-plat .t span{height:26px;padding:0 10px;border-radius:13px;background:var(--soft);font-size:12px;font-weight:600;display:flex;align-items:center;white-space:nowrap}.h-plat.on .t span{background:#c2410c;color:#fff}
.h-plat b{font-family:'Prompt';font-size:18px;font-weight:600;line-height:1.35}.h-plat small{font-size:13px;color:var(--mut)}
.h-price{background:linear-gradient(180deg,#fffaf6 0%,#f6faff 100%)}:root[data-theme=dark] .h-price{background:var(--soft)}
.h-price .center{display:flex;flex-direction:column;align-items:center;gap:14px;text-align:center;margin-bottom:44px}
.h-plan{border-radius:26px;border:1px solid var(--bsoft);background:var(--card);padding:34px;display:flex;flex-direction:column;gap:20px}
.h-plan.rec{border:2px solid #c2410c;background:var(--osoft)}:root:not([data-theme=dark]) .h-plan.rec{background:#fff9f3}
.h-plan .n{display:flex;justify-content:space-between;align-items:center;font-family:'Prompt';font-size:20px;font-weight:600}.h-plan .n span{height:28px;padding:0 12px;border-radius:14px;background:#2057b6;color:#fff;font-size:13px;display:flex;align-items:center;font-family:'Anuphan'}
.h-plan .p{font-family:'Prompt';font-size:40px;font-weight:700;color:var(--or)}.h-plan .p small{font-family:'Anuphan';font-size:16px;font-weight:500;color:var(--mut)}
.h-plan ul{list-style:none;margin:0;padding:0;display:flex;flex-direction:column;gap:12px;font-size:15px}.h-plan li{display:flex;gap:10px;align-items:center}.h-plan li svg{color:var(--bluetx)}
.h-cta{position:relative;overflow:hidden;border-radius:32px;background:linear-gradient(135deg,#2057b6 0%,#1e56b8 55%,#1a3a9e 100%);padding:70px 80px;display:flex;justify-content:space-between;align-items:center;gap:40px;color:#fff}
.h-cta::before{content:"";position:absolute;right:-60px;top:-100px;width:340px;height:340px;border-radius:50%;background:radial-gradient(circle at 50% 42%,#fde68a 0%,#fbbf24 22%,#e2600d 55%,#d9793c 85%,#1a3a9e 100%);opacity:.9}
.h-cta>*{position:relative}.h-cta h2{font-size:clamp(26px,3vw,40px);color:#fff}.h-cta p{margin:12px 0 0;font-size:18px;color:#d6e6f5}
.h-foot{background:#2057b6;color:#fff;padding:56px 0}:root[data-theme=dark] .h-foot{background:#111a33}
.h-foot .wrap{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;flex-wrap:wrap}
.h-foot .brand{color:#fff;padding:0 0 14px}.h-foot .brand small{color:#b7cbe0}.h-foot .co{font-size:14px;color:#b7cbe0}
.h-foot nav{display:flex;gap:32px;flex-wrap:wrap;font-size:15px}.h-foot nav a{color:#e2ecf6}
.squig{display:block}
@media (max-width:1100px){.h-nav{display:none}.h-4{grid-template-columns:repeat(2,minmax(0,1fr))}.h-6{grid-template-columns:repeat(3,minmax(0,1fr))}.h-why{gap:48px}}
@media (max-width:900px){
  .h-top{height:64px}.h-top .brand small,.h-act .lang,.h-act .login{display:none}.h-act{gap:10px}.h-act .pillbtn{height:44px;padding:0 18px;font-size:14.5px}
  .h-hero .wrap{flex-direction:column;align-items:stretch;min-height:0;padding-top:36px;padding-bottom:48px}.h-copy{flex:none}.h-copy p{font-size:16.5px}
  .h-hero .sun{width:380px;height:380px;right:-140px;top:auto;bottom:40px}.h-art{min-height:420px}.h-mock{right:0;top:50px;padding:20px}.h-float.a{top:0}.h-float.b{bottom:0}
  .h-steps{padding:60px 0}.h-head{flex-direction:column;align-items:flex-start}.h-3{grid-template-columns:1fr}
  .h-sec{padding:64px 0}.h-why{flex-direction:column;align-items:stretch}.h-orb{align-self:center;width:min(360px,100%)}
  .h-4{grid-template-columns:1fr 1fr;gap:12px}.h-tool{padding:16px}.h-tool .t i{width:46px;height:46px;border-radius:14px}.h-tool .f span:first-child{display:none}.h-tool h3{font-size:16px}.h-tool p{font-size:13.5px}.h-tool .cr{font-size:10.5px;padding:2px 7px}
  .h-6{grid-template-columns:1fr 1fr;gap:12px}.h-cta{flex-direction:column;align-items:stretch;padding:40px 24px;border-radius:24px}
}

/* หน้าข้อความ (404, เซสชันหมดอายุ) และหน้าเอกสาร */
.msg-page{min-height:calc(100vh - 96px - 170px);display:flex;flex-direction:column;align-items:center;justify-content:center;gap:18px;text-align:center;padding:60px 24px}
.msg-page .big{font-family:'Prompt';font-size:clamp(80px,14vw,150px);font-weight:700;line-height:1;background:linear-gradient(90deg,#cf4d0a 0%,#c26536 55%,#1e57b8 100%);-webkit-background-clip:text;background-clip:text;color:transparent}
body.home .doc{min-height:calc(100vh - 96px - 170px)}.doc.wide{max-width:1100px}
/* หน้าเข้าสู่ระบบ ตาม design/Login.html */
.lg-page{display:flex;min-height:100vh}
.lg-side{position:relative;width:660px;max-width:46%;flex-shrink:0;background:#f3f7ff;overflow:hidden;display:flex;flex-direction:column;padding:48px 64px}
:root[data-theme=dark] .lg-side{background:var(--soft)}
.lg-dot{position:absolute;right:70px;top:120px;width:70px;height:70px;border-radius:50%;background:var(--grad)}
.lg-copy{position:relative;margin-top:90px;display:flex;flex-direction:column;gap:18px}.lg-copy h1{font-size:clamp(30px,3.2vw,44px);line-height:1.3}
.lg-orb{position:relative;margin-top:50px;align-self:center;width:min(360px,80%);aspect-ratio:1;border-radius:50%;background:var(--bsoft);display:flex;align-items:center;justify-content:center}
.lg-orb img{width:44%;border-radius:50%}
.lg-chip{position:absolute;border-radius:14px;background:var(--card);box-shadow:0 16px 40px rgba(26,58,158,.14);padding:12px 16px;display:flex;align-items:center;gap:10px;font-size:14px;font-weight:600;white-space:nowrap}
.lg-chip i{width:30px;height:30px;border-radius:50%;color:#fff;display:flex;align-items:center;justify-content:center}
.lg-chip.a{left:-12%;top:11%}.lg-chip.b{right:-10%;bottom:14%}
.lg-main{flex:1;display:flex;align-items:center;justify-content:center;padding:40px 24px}
.lg-form{width:460px;max-width:100%;display:flex;flex-direction:column;gap:22px}
.lg-tabs{display:flex;padding:5px;border-radius:12px;background:var(--soft)}
.lg-tabs a{flex:1;height:46px;border-radius:8px;font-size:15px;font-weight:500;display:flex;align-items:center;justify-content:center;color:var(--mut)}
.lg-tabs a[aria-selected=true]{background:var(--card);box-shadow:0 4px 12px rgba(26,58,158,.1);font-weight:600;color:var(--ink)}
.lg-or{display:flex;align-items:center;gap:14px;font-size:13px;color:var(--mut)}.lg-or::before,.lg-or::after{content:"";flex:1;height:1px;background:var(--line)}
.lg-email{border:0;margin:0;padding:0;display:flex;flex-direction:column;gap:18px;min-width:0}.lg-email label,.lg-email .btn{opacity:.55}.lg-email input{cursor:not-allowed}
@media (max-width:900px){.lg-page{flex-direction:column}.lg-side{width:auto;max-width:none;padding:14px 20px;background:var(--card);border-bottom:1px solid var(--line)}.lg-side .brand small,.lg-dot,.lg-copy,.lg-orb{display:none}.lg-main{align-items:flex-start;padding:28px 20px 48px}}