:root {
  --ink: #0f172a;
  --ink-2: #334155;
  --muted: #475569;
  --line: #e2e8f0;
  --ground: #ffffff;
  --soft: #eff6ff;
  --soft-2: #f8fafc;
  --blue: #2563eb;
  --blue-dark: #1d4ed8;
  --blue-ink: #1e40af;
  --green: #10b981;
  --green-ink: #047857;
  --night: #0b1220;
  --night-2: #111a2e;
  --night-line: #1e293b;
  --radius: 16px;
  --font: "Plus Jakarta Sans", "IBM Plex Sans Thai", system-ui, sans-serif;
  --mark: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 120'%3E%3Crect x='42' y='0' width='36' height='36' rx='9' fill='%232563eb'/%3E%3Crect x='0' y='42' width='36' height='36' rx='9' fill='%232563eb'/%3E%3Crect x='84' y='42' width='36' height='36' rx='9' fill='%232563eb'/%3E%3Crect x='42' y='84' width='36' height='36' rx='9' fill='%232563eb'/%3E%3Crect x='42' y='42' width='36' height='36' rx='9' fill='%2310b981'/%3E%3C/svg%3E");
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; background: var(--ground); color: var(--ink); font-family: var(--font); font-size: 17px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--blue); }
h1, h2, h3, h4 { line-height: 1.35; margin: 0; text-wrap: balance; }
p { margin: 0; }

html[lang="th"] .en, html[lang="en"] .th { display: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.skip { position: absolute; left: -999px; top: 8px; background: var(--ink); color: #fff; padding: 8px 12px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.muted { color: var(--muted); }

/* header */
.top { position: sticky; top: 0; z-index: 5; background: rgba(255, 255, 255, .92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.top-row { display: flex; align-items: center; gap: 24px; min-height: 68px; }
.brand img { width: 168px; height: auto; margin-left: -10px; }
.nav { display: flex; gap: 22px; margin-left: auto; }
.nav a { color: var(--ink-2); text-decoration: none; font-weight: 500; font-size: 15px; }
.nav a:hover { color: var(--blue); }
.top-actions { display: flex; align-items: center; gap: 10px; }
.lang { border: 1px solid var(--line); background: #fff; border-radius: 10px; padding: 8px 12px; font: 600 14px var(--font); color: var(--ink-2); cursor: pointer; min-height: 40px; }
.lang:hover { border-color: var(--blue); color: var(--blue); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 12px; font-weight: 700; text-decoration: none; font-size: 16px; }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: 15px; }
.btn-pri { background: var(--blue); color: #fff; }
.btn-pri:hover { background: var(--blue-dark); }
.btn-sec { background: #fff; color: var(--blue-dark); border: 1.5px solid var(--blue); }
.btn-sec:hover { background: var(--soft); }

/* hero */
.hero { background: radial-gradient(1200px 520px at 85% 0%, #dbeafe 0%, transparent 60%), linear-gradient(180deg, var(--soft) 0%, #fff 100%); padding: 72px 0 64px; overflow: hidden; }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.eyebrow { color: var(--blue-dark); font-weight: 700; font-size: 15px; letter-spacing: .02em; margin-bottom: 14px; }
.hero h1 { font-size: clamp(34px, 4.6vw, 56px); font-weight: 800; letter-spacing: -.01em; }
.lede { color: var(--muted); font-size: 18px; margin-top: 18px; max-width: 54ch; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.facts { list-style: none; padding: 0; margin: 36px 0 0; display: flex; flex-wrap: wrap; gap: 12px 32px; }
.facts li { display: flex; align-items: baseline; gap: 8px; color: var(--muted); font-size: 15px; }
.facts b { font-size: 26px; font-weight: 800; color: var(--ink); }
.hero-shot { position: relative; padding-bottom: 40px; }
.browser { margin: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); box-shadow: 0 24px 60px -24px rgba(15, 23, 42, .35); background: #fff; }
.browser-bar { display: flex; gap: 6px; padding: 10px 12px; background: var(--soft-2); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.phone { margin: 0; width: 220px; border-radius: 34px; overflow: hidden; border: 8px solid var(--ink); box-shadow: 0 24px 60px -20px rgba(15, 23, 42, .45); background: #fff; }
.phone-hero { position: absolute; right: -12px; bottom: 0; width: 168px; border-width: 6px; border-radius: 28px; }

/* sections */
section { padding: 80px 0; }
.sec-h { font-size: clamp(26px, 3vw, 38px); font-weight: 800; text-align: center; margin-bottom: 14px; }
.sec-h.left { text-align: left; }
.sec-sub { text-align: center; color: var(--muted); font-size: 18px; max-width: 62ch; margin: 0 auto 40px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }

/* pains */
.pain-grid { display: grid; grid-template-columns: 1fr 2fr; gap: 48px; align-items: start; }
.pain-intro p { color: var(--muted); font-size: 18px; margin-top: 4px; }
.pain-list { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.pain-list li { border: 1px solid var(--line); border-left: 4px solid #f59e0b; border-radius: 12px; padding: 16px 18px; color: var(--muted); font-size: 16px; background: #fff; }
.pain-list li:last-child { grid-column: 1 / -1; }
.pain-list b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 2px; }

/* flow */
.how { background: var(--soft); }
.how .sec-h { margin-bottom: 40px; }
.flow { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 28px; counter-reset: f; }
.flow li { position: relative; background: #fff; border: 1px solid #bfdbfe; border-radius: var(--radius); padding: 22px; color: var(--muted); font-size: 16px; counter-increment: f; }
.flow li:not(:last-child)::after { content: ""; position: absolute; right: -22px; top: 50%; width: 16px; height: 16px; border-top: 3px solid var(--blue); border-right: 3px solid var(--blue); transform: translateY(-50%) rotate(45deg); }
.flow-k { display: flex; align-items: center; gap: 10px; color: var(--ink); font-weight: 800; font-size: 19px; margin-bottom: 8px; }
.flow-k::before { content: counter(f); display: grid; place-items: center; flex: none; width: 32px; height: 32px; border-radius: 9px; background: var(--blue); color: #fff; font-size: 16px; }
.flow li:last-child .flow-k::before { background: var(--green-ink); }
.how-note { text-align: center; color: var(--blue-ink); font-weight: 600; font-size: 18px; max-width: 60ch; margin: 36px auto 0; }

/* showcase */
.showcase .sec-h { margin-bottom: 48px; }
.show { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 64px; }
.show.flip { grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr); }
.show.flip .browser { order: 2; }
.show h3 { font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; }
.ticks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 12px; }
.ticks li { padding-left: 34px; position: relative; color: var(--ink-2); }
.ticks li::before { content: ""; position: absolute; left: 0; top: 4px; width: 22px; height: 22px; border-radius: 50%; background: var(--blue) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M5 12l5 5L19 8'/%3E%3C/svg%3E") center / 14px no-repeat; }
.mod-h { font-size: 22px; font-weight: 800; text-align: center; margin: 8px 0 24px; }
.mods { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.mod { border: 1px solid var(--line); border-radius: 14px; padding: 18px 20px; background: var(--soft-2); }
.mod h4 { font-size: 17px; margin-bottom: 6px; }
.mod p { color: var(--muted); font-size: 15px; }

/* why */
.why { background: var(--soft-2); }
.why-item { padding-top: 64px; position: relative; }
.why-item::before { content: ""; position: absolute; left: 24px; top: 24px; width: 28px; height: 28px; background: var(--mark) center / contain no-repeat; }
.why-item h3 { font-size: 19px; margin-bottom: 8px; }
.why-item p { color: var(--muted); font-size: 16px; }

/* packages */
.pkg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.pkg { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 24px 22px; background: #fff; }
.pkg img { height: 44px; width: auto; margin-left: -8px; align-self: flex-start; }
.pkg-seg { font-weight: 700; font-size: 17px; margin-top: 10px; }
.pkg-lim { color: var(--blue-ink); font-weight: 600; font-size: 15px; margin-top: 2px; }
.pkg-hl { list-style: none; padding: 0; margin: 14px 0 16px; display: grid; gap: 6px; font-size: 15px; color: var(--ink-2); }
.pkg-hl li { padding-left: 18px; position: relative; }
.pkg-hl li::before { content: ""; position: absolute; left: 2px; top: .7em; width: 7px; height: 7px; border-radius: 2px; background: var(--green); }
.pkg-dep { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); color: var(--muted); font-size: 14px; }
.pkg-top { background: var(--night); border-color: var(--night); color: #f8fafc; }
.pkg-top .pkg-lim { color: #93c5fd; }
.pkg-top .pkg-hl { color: #e2e8f0; }
.pkg-top .pkg-hl li::before { background: #34d399; }
.pkg-top .pkg-dep { color: #cbd5e1; border-color: var(--night-line); }
.pkg-note { text-align: center; color: var(--muted); margin-top: 28px; }
.pkg-note a { font-weight: 700; }

/* security */
.trust { background: var(--night); color: #f8fafc; }
.trust .sec-h { color: #fff; margin-bottom: 40px; }
.trust-item { border: 1px solid var(--night-line); border-radius: var(--radius); padding: 24px; background: var(--night-2); }
.trust-item h3 { font-size: 18px; margin-bottom: 8px; color: #fff; }
.trust-item p { color: #cbd5e1; font-size: 16px; }
.tech { list-style: none; padding: 0; margin: 32px 0 0; display: grid; grid-template-columns: 1fr 1fr 1.4fr; gap: 20px; color: #cbd5e1; font-size: 15px; }
.tech li { border-top: 1px solid var(--night-line); padding-top: 16px; }
.tech b { display: block; color: #93c5fd; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin-bottom: 4px; }

/* integrations */
.connect-grid { display: grid; grid-template-columns: 1.4fr 1fr; gap: 48px; align-items: center; }
.connect .muted { font-size: 17px; }
.chips { list-style: none; padding: 0; margin: 22px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.chips li { border: 1px solid var(--line); background: var(--soft-2); border-radius: 999px; padding: 6px 16px; font-size: 15px; font-weight: 600; color: var(--ink-2); }
.partner { display: block; text-decoration: none; color: var(--ink-2); border: 1px solid #99f6e4; background: #f0fdfa; border-radius: var(--radius); padding: 26px; font-size: 16px; }
.partner b { display: block; color: var(--ink); font-size: 20px; margin-bottom: 6px; }
.partner-link { display: block; margin-top: 12px; color: #0f766e; font-weight: 700; }
.partner:hover { border-color: #0f766e; }

/* steps */
.start { background: var(--soft-2); }
.start .sec-h { margin-bottom: 40px; }
.steps { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 16px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 22px 20px; color: var(--muted); font-size: 15px; }
.steps li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; font-weight: 800; margin-bottom: 12px; }
.steps b { display: block; color: var(--ink); font-size: 17px; margin-bottom: 6px; }

/* faq */
.faq-wrap { max-width: 820px; }
.faq .sec-h { margin-bottom: 32px; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 40px 18px 0; font-weight: 700; font-size: 18px; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 6px; top: 50%; transform: translateY(-50%); font-size: 26px; font-weight: 500; color: var(--blue); }
.faq details[open] summary::after { content: "−"; }
.faq details p { color: var(--muted); padding: 0 0 20px; }

/* contact */
.contact { padding-top: 24px; }
.contact-box { max-width: 1140px; margin: 0 auto; background: var(--blue-dark); color: #fff; border-radius: 24px; padding: 40px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; justify-content: space-between; }
.contact-box h2 { font-size: clamp(24px, 2.8vw, 34px); font-weight: 800; }
.contact-box p { color: #dbeafe; margin-top: 8px; font-size: 17px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; }
.contact-links a { background: #fff; color: var(--blue-ink); min-height: 48px; padding: 0 20px; border-radius: 12px; display: inline-flex; align-items: center; gap: 8px; font-weight: 700; text-decoration: none; }
.contact-links a:hover { background: var(--soft); }
.contact-box :focus-visible { outline-color: #fff; }

.foot { border-top: 1px solid var(--line); padding: 28px 0; margin-top: 80px; }
.foot-row { display: flex; flex-wrap: wrap; gap: 16px; align-items: center; justify-content: space-between; color: var(--muted); font-size: 15px; }
.foot img { margin-left: -8px; }

/* responsive */
@media (max-width: 1080px) {
  .mods { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
  .nav { display: none; }
  .top-actions { margin-left: auto; }
  .hero { padding: 48px 0 40px; }
  .hero-grid, .pain-grid, .show, .show.flip, .connect-grid { grid-template-columns: minmax(0, 1fr); }
  .show { gap: 24px; }
  .show.flip .browser { order: 0; }
  .grid3, .pkg-grid { grid-template-columns: 1fr 1fr; }
  .flow { grid-template-columns: 1fr 1fr; }
  .flow li:nth-child(2)::after { display: none; }
  .tech { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  .brand img { width: 136px; }
  .top-actions .btn-sm { display: none; }
  section { padding: 56px 0; }
  .grid3, .pkg-grid, .pain-list, .mods, .steps { grid-template-columns: 1fr; }
  .flow { grid-template-columns: 1fr; gap: 26px; }
  .flow li:not(:last-child)::after { display: block; right: auto; left: 50%; top: auto; bottom: -21px; transform: translateX(-50%) rotate(135deg); }
  .phone-hero { width: 112px; right: 0; border-width: 5px; border-radius: 22px; }
  .facts b { font-size: 22px; }
  .contact-box { padding: 28px 22px; }
  .foot { margin-top: 56px; }
}
.shot-note { text-align: center; color: var(--muted); font-size: 14px; margin-top: 28px; }
.browser a { display: block; cursor: zoom-in; }
