:root {
  --teal: #1F4E5A; --teal2: #2E6E7E; --teal3: #4F8796; --mist: #E8F0F2;
  --orange: #E07A2F; --cream: #FFF6EC; --ink: #1E2A2E; --muted: #5B6B70; --line: #D7E2E5;
  --bg: #FFFFFF;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
[id] { scroll-margin-top: 72px; }
body { margin: 0; background: var(--bg); color: var(--ink);
  font-family: "Noto Sans Thai", "Leelawadee UI", Tahoma, sans-serif; font-size: 17px; line-height: 1.65; }
body.en { font-family: "Inter", "Segoe UI", Arial, sans-serif; }
a { color: var(--teal2); }
img { max-width: 100%; display: block; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }

/* header */
header.top { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
header.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 62px; gap: 12px; }
.logo { font-weight: 800; font-size: 22px; color: var(--teal); text-decoration: none; letter-spacing: .3px; }
.logo span { color: var(--orange); }
nav a { margin-left: 18px; text-decoration: none; color: var(--ink); font-size: 15.5px; }
nav a.lang { border: 1px solid var(--line); border-radius: 16px; padding: 3px 12px; }
@media (max-width: 760px) { nav a:not(.lang) { display: none; } }

/* hero */
.hero { background: linear-gradient(135deg, var(--teal) 0%, var(--teal2) 100%); color: #fff; padding: 64px 0 56px; }
.hero .kicker { color: #F6B98A; font-weight: 700; letter-spacing: 1px; font-size: 14px; }
.hero h1 { font-size: clamp(30px, 5vw, 46px); line-height: 1.25; margin: 10px 0 14px; }
.hero p { font-size: 19px; max-width: 760px; color: #E4EFF2; margin: 0 0 22px; }
.hero .by { font-size: 15.5px; color: #D6E6EA; }
.btn { display: inline-block; background: var(--orange); color: #fff; text-decoration: none; font-weight: 700;
  padding: 12px 24px; border-radius: 10px; border: 0; font-size: 17px; cursor: pointer; }
.btn:hover { filter: brightness(1.07); }
.btn.ghost { background: transparent; border: 2px solid #fff; }
.btn.disabled { background: #B9C4C7; pointer-events: none; }
.hero .btn + .btn { margin-left: 10px; }

section { padding: 56px 0; }
section.alt { background: var(--mist); }
h2 { font-size: clamp(25px, 3.6vw, 33px); color: var(--teal); margin: 0 0 8px; line-height: 1.3; }
.lead { color: var(--muted); margin: 0 0 28px; }

/* compare table */
table.cmp { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; }
table.cmp th, table.cmp td { padding: 13px 16px; text-align: left; vertical-align: top; border-bottom: 1px solid var(--line); }
table.cmp th { background: var(--teal); color: #fff; }
table.cmp td:first-child { color: var(--muted); width: 42%; }
table.cmp td:last-child { font-weight: 600; }
@media (max-width: 640px) { table.cmp th, table.cmp td { padding: 10px; font-size: 15px; } }

/* product cards (overview) */
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 18px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; }
.card h3 { margin: 0 0 6px; color: var(--teal); font-size: 19px; line-height: 1.35; }
.card p { margin: 0 0 14px; color: var(--muted); font-size: 15.5px; flex: 1; }
.tag { display: inline-block; background: var(--cream); color: var(--orange); font-weight: 700; font-size: 13px;
  border-radius: 12px; padding: 2px 10px; margin-bottom: 8px; align-self: flex-start; }
.price { font-size: 24px; font-weight: 800; color: var(--ink); }
.price s { font-size: 16px; color: var(--muted); font-weight: 400; margin-left: 6px; }
.price small { display: block; font-size: 13px; color: var(--orange); font-weight: 700; }

/* product detail */
.prod { display: grid; grid-template-columns: 1fr 1.05fr; gap: 36px; align-items: start; }
.prod + .prod { margin-top: 56px; padding-top: 56px; border-top: 1px solid var(--line); }
@media (max-width: 860px) { .prod { grid-template-columns: 1fr; } }
.prod h3 { font-size: 25px; color: var(--teal); margin: 4px 0 6px; line-height: 1.35; }
.prod .sum { font-size: 18px; color: var(--ink); margin: 0 0 12px; }
.prod ul { padding-left: 20px; margin: 8px 0 14px; }
.prod li { margin: 3px 0; }
.prod .meta { font-size: 15px; color: var(--muted); margin: 6px 0; }
.buybox { background: var(--cream); border-radius: 14px; padding: 18px 20px; margin-top: 16px; }
.buybox .pay { font-size: 14px; color: var(--muted); margin-top: 8px; }
.gallery img { border: 1px solid var(--line); border-radius: 10px; cursor: zoom-in; background: #fff; }
.gallery .main { margin-bottom: 10px; }
.gallery .thumbs { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: 8px; }
.gallery .thumbs img { height: 110px; width: 100%; object-fit: cover; object-position: top left; }
.note { font-size: 14.5px; color: var(--muted); font-style: italic; }

/* FAQ */
details { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 14px 18px; margin-bottom: 10px; }
summary { font-weight: 700; cursor: pointer; color: var(--teal); }
details p { margin: 8px 0 0; }

/* contact / gov box */
.box { background: #fff; border: 2px solid var(--orange); border-radius: 14px; padding: 22px 24px; }
.box h3 { margin: 0 0 8px; color: var(--teal); }

footer { background: var(--teal); color: #D6E6EA; padding: 30px 0; font-size: 15px; }
footer a { color: #fff; }
footer .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; }

/* lightbox */
#lb { position: fixed; inset: 0; background: rgba(10,20,24,.88); display: none; align-items: center; justify-content: center;
  z-index: 50; padding: 20px; cursor: zoom-out; overflow: auto; }
#lb.on { display: flex; }
#lb img { max-width: 100%; max-height: 100%; border-radius: 8px; background: #fff; }

/* simple pages (download, policy) */
.page { max-width: 820px; margin: 0 auto; padding: 48px 20px 64px; }
.page h1 { color: var(--teal); font-size: 32px; line-height: 1.3; }
.page h2 { font-size: 23px; margin-top: 32px; }
.dl { display: flex; align-items: center; justify-content: space-between; gap: 14px; flex-wrap: wrap;
  border: 1px solid var(--line); border-radius: 12px; padding: 16px 18px; margin: 12px 0; background: #fff; }
.dl b { color: var(--teal); }
.steps li { margin: 6px 0; }
