.hero2 h1{font-size:clamp(38px,5.6vw,72px);margin-top:16px;letter-spacing:-.03em;max-width:16ch}
.hero2 h1 em{font-style:normal;color:var(--green-lift)}
.hero2-sub{margin-top:26px;font-size:clamp(16px,1.6vw,19px);color:rgba(238,241,236,.74);max-width:58ch;line-height:1.85}
.hero2-cta{display:flex;flex-wrap:wrap;gap:14px;margin:34px 0 64px}

.trust{
  border:1px solid rgba(238,241,236,.16);border-radius:4px;
  background:linear-gradient(180deg,rgba(26,70,48,.55),rgba(18,48,33,.25));
  padding:26px;margin-bottom:64px;
}
.trust p:first-child{font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:rgba(238,241,236,.5)}
.trust strong{display:block;font-family:var(--display);font-weight:700;font-size:26px;line-height:1.3;margin-top:12px;color:var(--white)}
.trust span{display:block;font-size:14px;color:rgba(238,241,236,.6);margin-top:10px;line-height:1.7}

/* legal callout */
.legal{
  background:var(--navy);border-left:4px solid var(--green);
  padding:34px 36px;border-radius:4px;
  display:grid;grid-template-columns:auto 1fr;gap:26px;align-items:start;
}
.legal-code{
  font-family:var(--mono);font-size:12px;letter-spacing:.12em;
  color:var(--green-lift);white-space:nowrap;padding-top:5px;
}
.legal h2{font-size:24px;letter-spacing:-.02em;margin-bottom:12px}
.legal p{font-size:16px;line-height:1.85;color:rgba(238,241,236,.76);max-width:74ch}

/* channel cards */
.ch-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(290px,1fr));gap:18px}
.ch{
  background:var(--white);border:1px solid var(--rule);border-radius:4px;
  padding:28px 26px;transition:transform .25s ease,border-color .25s ease,box-shadow .25s ease;
}
.ch:hover{transform:translateY(-4px);border-color:var(--green);box-shadow:0 16px 40px -22px rgba(18,48,33,.45)}
.ch-ico{
  width:40px;height:40px;border-radius:3px;background:var(--paper-2);
  display:grid;place-items:center;color:var(--green);margin-bottom:16px;
}
.ch-ico svg{width:21px;height:21px;stroke:currentColor;fill:none;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.ch h3{font-size:20px;letter-spacing:-.02em;margin-bottom:9px}
.ch p{font-size:14.5px;line-height:1.75;color:rgba(18,48,33,.72)}

/* document checklist */
.docs{display:grid;grid-template-columns:1fr 1fr;gap:0 48px}
.docs-col h3{font-size:19px;margin-bottom:6px;letter-spacing:-.015em}
.docs ul{list-style:none;margin-top:14px}
.docs li{
  padding:14px 0 14px 28px;border-bottom:1px solid rgba(238,241,236,.11);
  font-size:15.5px;line-height:1.65;color:rgba(238,241,236,.8);position:relative;
}
.docs li::before{content:"";position:absolute;left:2px;top:23px;width:13px;border-top:1px solid var(--green)}

/* timeline */
.tl{position:relative;margin-top:8px;padding-left:26px}
.tl::before{content:"";position:absolute;left:3px;top:10px;bottom:10px;width:1px;background:rgba(238,241,236,.2)}
.tl-item{position:relative;padding:0 0 34px}
.tl-item::before{
  content:"";position:absolute;left:-26px;top:8px;width:9px;height:9px;border-radius:50%;
  background:var(--green);box-shadow:0 0 0 4px var(--ink);
}
.tl-when{font-family:var(--mono);font-size:11.5px;letter-spacing:.12em;color:var(--green-soft)}
.tl-item h3{font-size:20px;margin:9px 0 8px;letter-spacing:-.02em}
.tl-item p{font-size:15px;line-height:1.75;color:rgba(238,241,236,.66);max-width:64ch}

@media (max-width:1000px){
  .hero2-grid{grid-template-columns:1fr;gap:0}
  .trust{margin-bottom:0}
  .hero2-cta{margin-bottom:44px}
  .docs{grid-template-columns:1fr;gap:0}
  .legal{grid-template-columns:1fr;gap:14px}
}
@media (max-width:720px){
  .hero2{padding-top:110px}
  .legal{padding:26px 22px}
}


/* ===== PHONE-FIRST CONTACT ===== */
/* hero: phone becomes the primary action */
.stub-call{
  display:inline-flex;align-items:center;gap:14px;
  background:var(--green);color:#0A2410;
  padding:14px 30px;border-radius:3px;position:relative;
  transition:transform .22s ease,box-shadow .22s ease;
}
.stub-call::before,.stub-call::after{
  content:"";position:absolute;width:14px;height:14px;border-radius:50%;
  background:var(--ink);top:50%;transform:translateY(-50%);
}
.stub-call::before{left:-7px}
.stub-call::after{right:-7px}
.stub-call:hover{transform:translateY(-3px);box-shadow:0 14px 34px -12px rgba(119,200,98,.65)}
.stub-call svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round;flex:0 0 22px}
.stub-call .lbl{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.16em;text-transform:uppercase;opacity:.62;line-height:1}
.stub-call .no{display:block;font-family:var(--display);font-weight:700;font-size:23px;letter-spacing:-.01em;line-height:1.25;margin-top:3px}

/* big call panel in the contact section */
.callbox{
  background:#0A2410;border-radius:5px;padding:30px 32px;margin-bottom:26px;
  display:flex;flex-wrap:wrap;align-items:center;gap:22px;
}
.callbox-ring{
  width:56px;height:56px;flex:0 0 56px;border-radius:50%;
  background:var(--green-lift);display:grid;place-items:center;color:#0A2410;
  animation:pulse 2.4s ease-out infinite;
}
.callbox-ring svg{width:26px;height:26px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
@keyframes pulse{
  0%{box-shadow:0 0 0 0 rgba(119,200,98,.55)}
  70%{box-shadow:0 0 0 16px rgba(119,200,98,0)}
  100%{box-shadow:0 0 0 0 rgba(119,200,98,0)}
}
.callbox-txt{flex:1 1 200px;min-width:0}
.callbox-txt p{font-family:var(--mono);font-size:10.5px;letter-spacing:.18em;text-transform:uppercase;color:var(--green-soft)}
.callbox-txt a.tel{
  display:inline-block;font-family:var(--display);font-weight:700;
  font-size:clamp(30px,4.2vw,40px);letter-spacing:-.02em;color:#fff;line-height:1.2;margin-top:5px;
  transition:color .2s ease;
}
.callbox-txt a.tel:hover{color:var(--green-lift)}
.callbox-txt span{display:block;font-size:13.5px;color:rgba(238,241,236,.62);margin-top:7px;line-height:1.6}
.callbox-line{
  display:inline-flex;align-items:center;gap:9px;white-space:nowrap;
  border:1px solid rgba(238,241,236,.3);color:#EEF1EC;
  font-family:var(--display);font-weight:600;font-size:15px;
  padding:13px 22px;border-radius:3px;transition:border-color .2s ease,color .2s ease;
}
.callbox-line:hover{border-color:var(--green-lift);color:var(--green-lift)}
.callbox-line svg{width:19px;height:19px;fill:currentColor}

/* sticky bottom bar */
.callbar{
  position:fixed;left:0;right:0;bottom:0;z-index:90;
  display:none;gap:1px;
  background:rgba(238,241,236,.18);
  box-shadow:0 -8px 24px -10px rgba(0,0,0,.6);
  padding-bottom:env(safe-area-inset-bottom);
}
.callbar a{
  flex:1;display:flex;align-items:center;justify-content:center;gap:9px;
  padding:15px 8px;font-family:var(--display);font-weight:600;font-size:15.5px;
}
.callbar .cb-tel{background:var(--green);color:#0A2410}
.callbar .cb-line{background:var(--ink);color:var(--paper)}
.callbar svg{width:19px;height:19px;fill:none;stroke:currentColor;stroke-width:1.9;stroke-linecap:round;stroke-linejoin:round}
.callbar .cb-line svg{fill:currentColor;stroke:none}

@media (max-width:720px){
  .callbar{display:flex}
  body{padding-bottom:60px}
  .callbox{padding:24px 22px;gap:16px}
  .stub-call{width:100%;justify-content:center}
}


/* ===== ONLINE MANAGEMENT SYSTEM ===== */

/* gap: ERP vs OMS */
.gap{display:grid;grid-template-columns:1fr 64px 1fr;gap:0;align-items:stretch}
.gap-col{border:1px solid rgba(238,241,236,.16);border-radius:5px;padding:30px 28px}
.gap-col.erp{background:transparent;border-style:dashed}
.gap-col.oms{background:linear-gradient(180deg,rgba(26,70,48,.55),rgba(18,48,33,.2));border-color:rgba(119,200,98,.4)}
.gap-col b{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--green-soft)}
.gap-col.erp b{color:rgba(238,241,236,.5)}
.gap-col h3{font-size:21px;letter-spacing:-.02em;margin:13px 0 10px}
.gap-col p{font-size:14.5px;line-height:1.8;color:rgba(238,241,236,.7)}
.gap-col ul{list-style:none;margin-top:16px;display:grid;gap:9px}
.gap-col li{font-size:14px;line-height:1.65;padding-left:20px;position:relative;color:rgba(238,241,236,.8)}
.gap-col li::before{content:"";position:absolute;left:0;top:9px;width:12px;border-top:1px solid var(--green)}
.gap-col.erp li{color:rgba(238,241,236,.55)}
.gap-col.erp li::before{border-color:rgba(238,241,236,.3)}
.gap-mid{display:grid;place-items:center;color:var(--green);font-family:var(--mono);font-size:22px}

/* module grid */
.mod-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(230px,1fr));gap:2px;background:rgba(238,241,236,.12)}
.mod{background:var(--ink);padding:22px 20px}
.mod b{font-family:var(--mono);font-size:10.5px;letter-spacing:.14em;color:var(--green-soft)}
.mod h3{font-size:16.5px;letter-spacing:-.015em;margin:10px 0 6px;line-height:1.4}
.mod span{display:block;font-size:12.5px;line-height:1.6;color:rgba(238,241,236,.55)}

/* menu tree */
.tree{display:grid;grid-template-columns:200px 1fr;gap:26px;align-items:start}
.tree-root{
  background:var(--green);color:#0A2410;border-radius:6px;padding:26px 22px;text-align:center;
  font-family:var(--display);font-weight:700;font-size:20px;letter-spacing:-.02em;line-height:1.3;
}
.tree-root span{display:block;font-family:var(--mono);font-size:10px;letter-spacing:.14em;font-weight:500;margin-top:8px;opacity:.75}
.tree-branches{display:grid;gap:10px}
.tree-row{display:grid;grid-template-columns:1fr 1fr 1fr;gap:10px;align-items:stretch}
.tw{
  border:1px solid rgba(238,241,236,.18);border-radius:4px;padding:14px 16px;
  background:rgba(26,70,48,.35);display:flex;flex-direction:column;justify-content:center;
}
.tw b{font-family:var(--display);font-weight:600;font-size:14.5px;line-height:1.35}
.tw span{font-size:12px;color:rgba(238,241,236,.58);margin-top:5px;line-height:1.55}
.tw.sub{background:transparent;border-style:dashed}
.tw.empty{border:0;background:transparent}

/* order simulator */
.sim-tabs{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:28px}
.sim-tab{
  font-family:var(--display);font-weight:600;font-size:14.5px;
  border:1px solid var(--rule);background:var(--white);color:var(--navy);
  padding:11px 18px;border-radius:100px;cursor:pointer;
  transition:background .18s ease,color .18s ease,border-color .18s ease;
}
.sim-tab:hover{border-color:var(--green)}
.sim-tab[aria-selected="true"]{background:var(--navy);color:var(--white);border-color:var(--navy)}
.sim-body{display:grid;grid-template-columns:340px 1fr;gap:28px;align-items:start}
.doc{
  background:var(--white);border:1px solid var(--rule);border-radius:5px;overflow:hidden;
  box-shadow:0 18px 40px -26px rgba(18,48,33,.5);
}
.doc-bar{padding:12px 18px;display:flex;justify-content:space-between;align-items:center;
  font-family:var(--mono);font-size:10.5px;letter-spacing:.1em}
.doc-bar.ok{background:#123021;color:var(--green-lift)}
.doc-bar.block{background:#5A2418;color:#F0B7A4}
.doc-no{padding:24px 20px;text-align:center;border-bottom:1px dashed var(--rule)}
.doc-no b{display:block;font-family:var(--mono);font-size:19px;letter-spacing:.06em;color:var(--navy)}
.doc-no span{display:block;font-size:12.5px;color:rgba(18,48,33,.55);margin-top:8px}
.doc-rows{padding:6px 20px 20px}
.doc-row{display:flex;justify-content:space-between;gap:14px;padding:12px 0;border-bottom:1px solid var(--rule);font-size:13.5px;color:rgba(18,48,33,.8)}
.doc-row:last-child{border-bottom:0}
.doc-row b{font-family:var(--display);font-weight:600;color:var(--navy);text-align:right}
.doc-row b.warn{color:#B4472C}

.sim-steps{display:grid;gap:2px;background:var(--rule)}
.sim-step{background:var(--white);padding:16px 20px;display:flex;gap:16px;align-items:flex-start}
.sim-step i{
  font-style:normal;font-family:var(--mono);font-size:10px;letter-spacing:.1em;
  color:var(--green);min-width:38px;padding-top:3px;
}
.sim-step span{font-size:14.5px;line-height:1.7;color:rgba(18,48,33,.82)}
.sim-step.stop i{color:#B4472C}
.sim-note{margin-top:20px;border-left:2px solid var(--green);padding-left:14px;
  font-size:13.5px;line-height:1.75;color:rgba(18,48,33,.62);max-width:70ch}

/* quota calc */
.qt{display:grid;grid-template-columns:repeat(3,1fr);gap:2px;background:rgba(238,241,236,.12)}
.qt-col{background:var(--ink);padding:28px 26px}
.qt-col b{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--green-soft)}
.qt-col h3{font-size:20px;letter-spacing:-.02em;margin:12px 0 9px}
.qt-col p{font-size:14px;line-height:1.75;color:rgba(238,241,236,.68)}
.qt-calc{margin-top:16px;border-top:1px dashed rgba(238,241,236,.2);padding-top:14px;display:grid;gap:8px}
.qt-line{display:flex;justify-content:space-between;gap:12px;font-size:13px;color:rgba(238,241,236,.72)}
.qt-line b{font-family:var(--mono);color:var(--paper)}
.qt-line.total b{color:var(--green-lift)}

/* interface flow */
.iface{display:grid;grid-template-columns:1fr 56px 1fr;gap:0;align-items:center}
.if-box{border:1px solid var(--rule);border-radius:5px;padding:26px 24px;background:var(--white)}
.if-box b{font-family:var(--mono);font-size:10.5px;letter-spacing:.16em;text-transform:uppercase;color:var(--green)}
.if-box h3{font-size:19px;color:var(--navy);letter-spacing:-.02em;margin:12px 0 10px}
.if-box p{font-size:14px;line-height:1.75;color:rgba(18,48,33,.72)}
.if-box ul{list-style:none;margin-top:14px;display:grid;gap:7px}
.if-box li{font-size:13px;color:rgba(18,48,33,.8);padding-left:18px;position:relative;line-height:1.6}
.if-box li::before{content:"";position:absolute;left:0;top:9px;width:11px;border-top:1px solid var(--green)}
.if-mid{display:grid;place-items:center;color:var(--green);font-family:var(--mono);font-size:20px}

@media (max-width:1000px){
  .gap,.iface{grid-template-columns:1fr}
  .gap-mid,.if-mid{padding:14px 0;transform:rotate(90deg)}
  .tree{grid-template-columns:1fr}
  .sim-body{grid-template-columns:1fr}
  .qt{grid-template-columns:1fr}
}
@media (max-width:700px){
  .tree-row{grid-template-columns:1fr}
  .tw.empty{display:none}
}

/* ===== ICON SIZE SAFETY NET =====
   ทุกไอคอนในคอมโพเนนต์ปุ่ม/กล่องติดต่อ ต้องมีขนาดกำกับเสมอ
   กันกรณีไฟล์สไตล์เฉพาะหน้าไม่ได้ถูกโหลด */
.callbox-ring svg,
.callbox-line svg,
.callbar svg,
.callbar a svg,
.cb-tel svg,
.cb-line svg,
.stub-call svg,
.btn-line svg,
.chc-ico svg,
.ch-ico svg,
.sys-ico svg,
.pil-ico svg{
  width:22px;height:22px;flex:0 0 auto;
  fill:none;stroke:currentColor;stroke-width:1.9;
  stroke-linecap:round;stroke-linejoin:round;
}
.callbox-ring svg{width:26px;height:26px}
.callbar svg,.callbar a svg,.cb-tel svg,.cb-line svg{width:19px;height:19px}
.callbox-ring{
  width:56px;height:56px;flex:0 0 56px;border-radius:50%;
  display:grid;place-items:center;
}
