
.g-wrap{ max-width: 1200px; margin: 0 auto; }


.ghero{ background:#fff; padding: 64px var(--sp-3) 56px; min-height: calc(100vh - 123px); min-height: calc(100svh - 123px); display:flex; flex-direction:column; justify-content:space-between; box-sizing:border-box; }
.ghero .g-wrap{ width:100%; display:flex; flex-direction:column; justify-content:space-between; flex:1; gap: 0; }
.g-procs{ margin-top: auto; padding-top: 64px; }
.g-top{ display:grid; grid-template-columns: minmax(0,1fr) minmax(0,1fr); gap: 72px; align-items: start; margin-top: 44px; }
.g-h1{ font-size: clamp(40px, 4.5vw, 66px) !important; line-height: 1.02 !important; letter-spacing: -.045em !important; font-weight: 500 !important; margin: 0 !important; color: var(--ink); text-wrap: balance; }
.g-h1 .gold{ color: #6B7280 !important; }
html[lang="th"] .g-h1, html[lang="zh-Hans"] .g-h1{ letter-spacing: 0 !important; line-height: 1.22 !important; font-size: clamp(30px,3.4vw,50px) !important; }
html[lang="zh-Hans"] .g-h1 .gold{ white-space: nowrap; }
.g-lede{ font-size: 20px; line-height: 1.5; color: #4A505C; margin: 0; max-width: 440px; padding-top: 18px; letter-spacing: -.01em; }
html[lang="th"] .g-lede, html[lang="zh-Hans"] .g-lede{ letter-spacing: 0; line-height: 1.7; font-size: 18px; }


.g-routes ul{ list-style:none; margin: 0; padding:0; border-top: 1.5px solid var(--acc); }
.g-routes li{ border-bottom: 1px solid var(--hair); }
.g-route{ display:flex; align-items:center; justify-content:space-between; gap: 16px; padding: 12px 4px 12px 0; text-decoration:none !important; color: var(--ink) !important; font-size: 22px; font-weight: 500; letter-spacing: -.025em; line-height: 1.2; transition: padding .35s var(--ease), color .2s ease; }
html[lang="th"] .g-route, html[lang="zh-Hans"] .g-route{ letter-spacing: 0; font-size: 19px; }
.g-route i{ font-style: normal; font-weight: 400; color: #6B7280; transition: transform .35s var(--ease), color .2s ease; }
.g-route:hover{ padding-left: 8px; color: var(--acc) !important; }
.g-route:hover i{ transform: translateX(4px); color: var(--acc); }
.g-route:focus-visible{ outline: 2px solid var(--acc); outline-offset: 2px; }


.g-tabs{ display:flex; align-items: baseline; gap: 44px; border-bottom: 1px solid var(--hair); flex-wrap: wrap; }
.g-tab{ appearance:none; background:none; border:0; padding: 0 0 16px; margin: 0; font: inherit; font-size: 30px; font-weight: 500; letter-spacing: -.035em; color: #6B7280; cursor:pointer; position:relative; line-height: 1.1; transition: color .25s ease; }
html[lang="th"] .g-tab, html[lang="zh-Hans"] .g-tab{ letter-spacing: 0; font-size: 26px; }
.g-tab::after{ content:''; position:absolute; left:0; right:0; bottom:-1px; height: 2px; background: var(--acc); transform: scaleX(0); transform-origin:left; transition: transform .4s var(--ease); }
.g-tab:hover, .g-tab.on{ color: var(--ink); }
.g-tab.on::after{ transform: scaleX(1); }
.g-tab:focus-visible{ outline: 2px solid var(--acc); outline-offset: 4px; border-radius: 2px; }
.g-model{ margin-left: auto; font-size: 14px; font-weight: 500; color: var(--ink) !important; text-decoration:none; padding-bottom: 18px; white-space: nowrap; }
.g-model:hover{ color: var(--acc) !important; }
.g-panes{ position:relative; min-height: 92px; }
.g-pane{ position:absolute; inset: 0 0 auto 0; opacity:0; visibility:hidden; transform: translateY(4px); transition: opacity .3s ease, transform .4s var(--ease), visibility 0s .3s; }
.g-pane.on{ position:relative; opacity:1; visibility:visible; transform:none; transition: opacity .35s ease, transform .45s var(--ease); }
.g-line{ display:inline-block; margin-top: 18px; font-size: 17px; color: #2A2F38 !important; text-decoration:none; letter-spacing: -.01em; }
.g-line i{ font-style: normal; color: var(--acc); transition: margin .3s var(--ease); }
.g-line:hover{ color: var(--ink) !important; } .g-line:hover i{ margin-left: 4px; }
.g-steps{ list-style:none; margin: 18px 0 0; padding:0; display:flex; gap: 0; counter-reset: s; }
.g-steps li{ flex:1; counter-increment: s; border-top: 1px solid var(--hair-2); }
.g-steps li:first-child{ border-top-color: var(--acc); }
.g-steps a{ display:block; padding: 9px 12px 0 0; font-size: 13px; color: #5B6170 !important; text-decoration:none; white-space: nowrap; }
.g-steps a::before{ content: counter(s, decimal-leading-zero) "  "; color: #6B7280; font-variant-numeric: tabular-nums; margin-right: 6px; }
.g-steps a:hover{ color: var(--ink) !important; }


.gwhy{ background:#fff; padding: 140px var(--sp-3) 150px; border-top: 1px solid var(--hair); }
.gwhy .g-wrap{ display:grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 48px; }
.gwhy h3{ font-size: clamp(40px, 4.8vw, 72px); font-weight: 500; letter-spacing: -.045em; line-height: 1; margin: 0 0 18px; color: var(--ink); }
html[lang="th"] .gwhy h3, html[lang="zh-Hans"] .gwhy h3{ letter-spacing: 0; line-height: 1.25; font-size: clamp(32px,3.6vw,54px); }
.gwhy p{ margin:0; font-size: 16px; color: #5B6170; line-height: 1.5; }


.site-footer .footer-col:not(:last-child){ display:none !important; }
.site-footer{ padding-top: 0 !important; }
.site-footer .footer-inner{ display:grid !important; grid-template-columns: 1fr auto !important; gap: 48px !important; align-items: start; padding-top: 48px !important; padding-bottom: 28px !important; }
.site-footer .footer-col h4{ display:none !important; }
.site-footer .footer-col p{ font-size: 13px !important; line-height: 1.6 !important; opacity: .7; }
.site-footer .footer-brand p{ font-size: 13px !important; opacity: .7; margin-bottom: 0 !important; }
.site-footer .footer-bottom{ font-size: 12px !important; padding-top: 18px !important; padding-bottom: 22px !important; }


.g-toolsec{ background:#fff; padding: 8px var(--sp-3) 72px; }
.g-tool{ max-width: 900px; scroll-margin-top: 140px; }
.g-tool .f-ctext{ max-height: calc(1.6em * 8.4); }
#g-clauses{ scroll-margin-top: 140px; }



.g-sheet{ position: fixed; inset: -10vh -20vw; z-index: 9999; background: #E9ECF0; transform: translateX(-125%) skewX(-5deg); pointer-events:none; display:grid; place-items:center; }
.g-sheet img{ width: 56px; height: 56px; opacity: 0; transform: skewX(5deg); transition: opacity .18s ease .16s; }
.g-sheet.go{ transform: translateX(0) skewX(-5deg); transition: transform .34s cubic-bezier(.65,0,.35,1); pointer-events: all; }
.g-sheet.go img{ opacity: 1; }
html.g-in body::after{ content:''; position: fixed; inset: -10vh -20vw; z-index: 9999; pointer-events:none; transform: translateX(125%) skewX(-5deg);
  background: #E9ECF0 url('/assets/logo-cacap-red.svg') center / 56px 56px no-repeat; animation: gsweepin .48s cubic-bezier(.65,0,.35,1) backwards; }
@keyframes gsweepin{ 0%,20%{ transform: translateX(0) skewX(-5deg); } 100%{ transform: translateX(125%) skewX(-5deg); } }


.site-header{ position: sticky !important; top: 0 !important; z-index: 1000 !important; background: rgba(255,255,255,.78) !important;
  backdrop-filter: saturate(1.6) blur(16px) !important; -webkit-backdrop-filter: saturate(1.6) blur(16px) !important;
  border-bottom: 1px solid transparent !important; box-shadow: none !important; transition: border-color .3s ease, background .3s ease; }
.site-header.d-scrolled, html.g-scrolled .site-header{ border-bottom-color: rgba(31,58,95,.10) !important; background: rgba(255,255,255,.72) !important; }
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))){ .site-header{ background: rgba(255,255,255,.97) !important; } }


html.g-js .g-rv{ opacity: 0; filter: blur(6px); transform: translateY(14px); transition: opacity .7s ease, filter .8s ease, transform .8s cubic-bezier(.2,.7,.2,1); transition-delay: var(--d,0s); }
html.g-js .g-rv.in{ opacity: 1; filter: none; transform: none; }

@media (prefers-reduced-motion: reduce){ .g-sheet, html.g-in body::after{ display:none !important; } .g-pane, .g-tab::after, .g-route{ transition: none !important; }
  html.g-js .g-rv{ opacity:1 !important; filter:none !important; transform:none !important; transition:none !important; } }


@media (max-width: 1100px){
  .ghero{ min-height: 0; padding-top: 56px; }
  .g-top{ grid-template-columns: 1fr; gap: 32px; margin-top: 20px; }
  .g-lede{ padding-top: 0; }
  .g-procs{ padding-top: 56px; }
  .gwhy .g-wrap{ grid-template-columns: 1fr; gap: 40px; }
  .gwhy{ padding: 88px var(--sp-3); }
}
@media (max-width: 700px){
  .ghero{ padding: 36px var(--sp-3) 48px; }
  .g-h1{ margin-bottom: 16px !important; }
  .g-lede{ font-size: 16.5px; }
  .g-top{ gap: 26px; margin-top: 14px; }
  .g-procs{ padding-top: 44px; }
  .g-route{ font-size: 19px; padding: 13px 0; }
  .g-tabs{ display:grid; grid-template-columns: max-content 1fr; column-gap: 28px; row-gap: 0; border-bottom: 0; }
  .g-tab{ font-size: 17px; white-space: nowrap; padding: 12px 0; text-align:left; border-bottom: 1px solid var(--hair); }
  .g-tab::after{ right: auto; width: 32px; }
  .g-model{ grid-column: 1 / -1; margin: 12px 0 0; padding-bottom: 0; order: 9; }
  .g-line{ font-size: 15.5px; margin-top: 14px; }
  .g-steps{ flex-wrap: wrap; } .g-steps li{ flex: 0 0 50%; } .g-steps a{ font-size: 12.5px; padding-bottom: 8px; }
  .g-panes{ min-height: 0; }
  .site-footer .footer-inner{ grid-template-columns: 1fr !important; gap: 20px !important; padding-top: 40px !important; }
  .g-toolsec{ padding-bottom: 48px; }
}

@media (max-width: 700px){ html[lang="th"] .g-tabs{ grid-template-columns: 1fr 1fr; } html[lang="th"] .g-tab{ white-space: normal; } }
