@font-face { font-family: 'Sora'; font-weight: 400; font-display: swap; src: url('/assets/fonts/sora-400.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 600; font-display: swap; src: url('/assets/fonts/sora-600.woff2') format('woff2'); }
@font-face { font-family: 'Sora'; font-weight: 700; font-display: swap; src: url('/assets/fonts/sora-700.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Thai'; font-weight: 400; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; src: url('/assets/fonts/plex-thai-400.woff2') format('woff2'); }
@font-face { font-family: 'IBM Plex Sans Thai'; font-weight: 600 700; font-display: swap; unicode-range: U+0E01-0E5B, U+200C-200D, U+25CC; src: url('/assets/fonts/plex-thai-600.woff2') format('woff2'); }

:root {
  --brand: #6A1FE8;
  --brand-600: #5915CC;
  --brand-50: #F4EEFF;
  --brand-100: #E8DDFD;
  --ink: #16163A;
  --text: #2A2A44;
  --muted: #62627E;
  --line: #E6E3F0;
  --bg: #FFFFFF;
  --soft: #F8F6FD;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: 'Sora', 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  font-size: 16px;
  line-height: 1.65;
  color: var(--text);
  background: var(--bg);
}
a { color: var(--brand); text-underline-offset: 3px; }
a:hover { color: var(--brand-600); }
h1, h2, h3 { color: var(--ink); line-height: 1.25; margin: 0 0 .5em; }
h1 { font-size: clamp(30px, 5vw, 46px); letter-spacing: -.01em; }
h2 { font-size: clamp(24px, 3.4vw, 32px); }
h3 { font-size: 19px; }
p { margin: 0 0 1em; }
img { max-width: 100%; display: block; }

.wrap { max-width: 1080px; margin: 0 auto; padding: 0 20px; }

.top { border-bottom: 1px solid var(--line); background: rgba(255,255,255,.92); position: sticky; top: 0; z-index: 10; backdrop-filter: saturate(1.4) blur(8px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 68px; gap: 16px; }
.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-weight: 700; letter-spacing: .08em; font-size: 15px; }
.brand img { height: 34px; width: auto; }
.nav { display: flex; gap: 22px; font-size: 15px; }
.nav a { color: var(--muted); text-decoration: none; }
.nav a:hover { color: var(--brand); }
@media (max-width: 520px) { .nav { display: none; } .brand img { height: 30px; } }

.hero { padding: 80px 0 72px; background: linear-gradient(180deg, var(--brand-50) 0%, #fff 100%); }
.hero .lead { font-size: 19px; color: var(--muted); max-width: 640px; }
.hero .th { color: var(--muted); font-size: 16px; margin-top: -4px; }
.btn { display: inline-block; background: var(--brand); color: #fff; text-decoration: none; font-weight: 700; padding: 12px 22px; border-radius: 10px; }
.btn:hover { background: var(--brand-600); color: #fff; }

section { padding: 64px 0; }
section.alt { background: var(--soft); }
.kicker { text-transform: uppercase; letter-spacing: .14em; font-size: 13px; font-weight: 700; color: var(--brand); margin-bottom: 8px; }

.grid { display: grid; gap: 20px; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 24px; }
.card p { color: var(--muted); margin: 0; }
.card .ic { width: 40px; height: 40px; border-radius: 10px; background: var(--brand-100); color: var(--brand); display: grid; place-items: center; margin-bottom: 14px; }
.card .ic svg { width: 22px; height: 22px; }

.product { display: flex; gap: 18px; align-items: flex-start; text-decoration: none; color: inherit; }
.product img { width: 72px; height: 72px; border-radius: 16px; flex: none; }
.product h3 { margin-bottom: 4px; }
.product:hover h3 { color: var(--brand); }
.tag { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); background: var(--brand-50); border-radius: 999px; padding: 2px 10px; margin-top: 10px; }

.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 28px; margin: 0; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; color: var(--ink); }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 12px; } }

footer { border-top: 1px solid var(--line); padding: 28px 0 40px; font-size: 14px; color: var(--muted); }
footer .wrap { display: flex; flex-wrap: wrap; gap: 8px 24px; justify-content: space-between; }
footer a { color: var(--muted); }

.doc { max-width: 760px; padding-top: 48px; padding-bottom: 64px; }
.doc h2 { font-size: 22px; margin-top: 1.8em; }
.doc ul { padding-left: 1.2em; }
.doc li { margin-bottom: .4em; }
.doc .meta { color: var(--muted); font-size: 15px; }
