/* base + ชิ้นส่วนร่วม v2 (T-049 · D-751 · ต้นฉบับ design/website-v2/prototype/style.css) — ไฟล์นี้เหมือนกันทั้ง website และ website-pt */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; font-family: var(--font); color: var(--ink); background: var(--bg); -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, figure { margin: 0; padding: 0; }
ul, ol { list-style: none; }
button { font: inherit; color: inherit; }
.nw { white-space: nowrap; }
.keep { white-space: nowrap; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.w { max-width: 1240px; margin: 0 auto; padding-inline: clamp(20px, 4vw, 40px); }
.ic { flex: none; }
:focus-visible { outline: 2.5px solid var(--p); outline-offset: 3px; border-radius: 10px; }
section { position: relative; }
main { overflow-x: clip; }
.skip { position: absolute; left: 16px; top: -60px; z-index: 100; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: 10px; }
.skip:focus { top: 12px; }

/* ---------- ตัวอักษร ---------- */
h1 { font-size: clamp(40px, 5.6vw, 80px); line-height: 1.1; font-weight: 700; letter-spacing: -.025em; text-wrap: balance; }
h2 { font-size: clamp(32px, 3.9vw, 54px); line-height: 1.14; font-weight: 700; letter-spacing: -.02em; text-wrap: balance; }
h3 { font-size: 22px; line-height: 1.3; font-weight: 700; letter-spacing: -.01em; text-wrap: balance; }
.sub { font-size: clamp(16px, 1.35vw, 19px); line-height: 1.65; color: var(--mut); }
.eb { display: inline-flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 600; color: var(--txp); background: var(--p1); padding: 6px 14px; border-radius: 99px; margin-bottom: 18px; }
.eb::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--p); }
.eb2 { color: var(--txs); background: var(--s1); }
.eb2::before { background: var(--s); }
.eb-d { color: var(--bd-ink); background: var(--bd-card); box-shadow: inset 0 0 0 1px var(--bd-line); }
.eb-d::before { background: var(--g1); box-shadow: 0 0 10px var(--g1); }
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.num { font-family: var(--num); font-weight: 700; letter-spacing: -.03em; }
.k { font-size: 12.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; }
.sh { margin-bottom: clamp(36px, 4vw, 56px); }
.sh-c { text-align: center; max-width: 820px; margin-inline: auto; }
.sh-c .sub { margin-top: 16px; }
.sh-row { display: grid; grid-template-columns: 1.15fr .85fr; gap: 40px; align-items: end; }
.sh-row .sub { max-width: 440px; }

/* ---------- ปุ่ม (pill) ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 48px; padding: 0 22px; border: 0; border-radius: 99px; font-weight: 600; font-size: 15.5px; white-space: nowrap; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; }
.btn:hover { transform: translateY(-1px); }
.btn-lg { height: 56px; padding: 0 28px; font-size: 16.5px; }
.btn-sm { height: 42px; padding: 0 18px; font-size: 14.5px; }
.btn-p { background: var(--btn); color: #fff; box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--btn) 70%, transparent), inset 0 1px 0 rgba(255, 255, 255, .25); }
.btn-p:hover { background: var(--hov); }
.btn-o { background: var(--card); color: var(--ink); box-shadow: inset 0 0 0 1.5px var(--line); }
.btn-o:hover { box-shadow: inset 0 0 0 1.5px var(--line2); }
.btn-ink { background: var(--ink); color: var(--bg); }
.btn-2 { background: var(--s); color: var(--on2); box-shadow: 0 10px 26px -8px color-mix(in srgb, var(--s) 70%, transparent); }
.btn-glass { background: var(--bd-card); color: var(--bd-ink); box-shadow: inset 0 0 0 1px var(--bd-line); backdrop-filter: blur(8px); }
.btn-line { background: var(--line-green); color: #fff; }

/* ---------- โลโก้ (มาร์ค = _mark · ห้ามวาดใหม่) ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; flex: none; }
.mk { width: 36px; height: 36px; border-radius: 11px; background: var(--p); color: #fff; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.mk .mark { width: var(--mk-w, 24px); height: auto; }
.mk-tilt { transform: rotate(-6deg); }
.mk-xs { width: 24px; height: 24px; border-radius: 7px; }
.mk-xs .mark { width: var(--mk-xs-w, 16px); }
.mk-md { width: 44px; height: 44px; border-radius: 13px; }
.mk-md .mark { width: 26px; }
.word-s { color: var(--g2); }
.word { font-family: var(--word-font); font-weight: var(--word-w); font-size: var(--word-size); font-style: var(--word-style); letter-spacing: var(--word-ls); line-height: 1; color: var(--word-c); }

/* ---------- กรอบมือถือ ---------- */
.ph { border-radius: clamp(30px, 3vw, 42px); padding: clamp(6px, .6vw, 9px); background: var(--phbg); box-shadow: 0 30px 60px -20px rgba(10, 8, 16, .45), inset 0 0 0 1.5px rgba(255, 255, 255, .08); }
.ph img { width: 100%; height: auto; border-radius: clamp(24px, 2.5vw, 34px); }

/* ---------- band (S04 · S08 · S13) + glow + glass ---------- */
.dark { background: var(--bd); color: var(--bd-ink); overflow: hidden; isolation: isolate; }
.dark .sub { color: var(--bd-mut); }
.glow { position: absolute; border-radius: 50%; filter: blur(110px); pointer-events: none; z-index: -1; opacity: calc(var(--go, .3) * var(--glow-o)) !important; }
.dark::after { content: ""; position: absolute; inset: 0; z-index: -1; background-image: linear-gradient(var(--bd-grid) 1px, transparent 1px), linear-gradient(90deg, var(--bd-grid) 1px, transparent 1px); background-size: 64px 64px; mask-image: radial-gradient(70% 70% at 50% 40%, #000, transparent); }
.glass { background: rgba(26, 22, 36, .66); border: 1px solid rgba(255, 255, 255, .14); backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-radius: 18px; box-shadow: 0 24px 50px rgba(0, 0, 0, .4); }

@media (max-width: 860px) { .sh-row { grid-template-columns: 1fr; } }
@media (max-width: 640px) { .cta-row .btn { flex: 1 1 100%; } }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
