/* All Chat — public website (Apple-like: quiet white, big type, translucent nav, generous space) */
:root {
  --ink: #1d1d1f; --ink-2: #6e6e73; --ink-3: #86868b; --line: #d2d2d7; --bg: #ffffff; --bg-2: #f5f5f7;
  --accent: #7b4fb0; --accent-2: #6a3fa0; --link: #6a3fa0;
  --grad: linear-gradient(120deg, #c2379b 0%, #8a46b0 48%, #1f93cf 100%);
  --font: "Google Sans", "Noto Sans Thai", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 17px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
img { max-width: 100%; height: auto; display: block; }
[hidden] { display: none !important; }

/* nav */
.nav { position: sticky; top: 0; z-index: 50; height: 52px; background: rgba(255,255,255,.72);
  backdrop-filter: saturate(180%) blur(20px); -webkit-backdrop-filter: saturate(180%) blur(20px); border-bottom: 1px solid rgba(0,0,0,.08); }
.nav-in { max-width: 1040px; height: 100%; margin: 0 auto; padding: 0 16px; display: flex; align-items: center; gap: 26px; }
.brand { display: flex; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 17px; }
.brand:hover { text-decoration: none; }
.nav-links { display: flex; gap: 22px; font-size: 13.5px; flex: 1; }
.nav-links a { color: var(--ink); opacity: .8; }
.nav-links a:hover { opacity: 1; text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 14px; font-size: 13.5px; }
.nav-cta .login { color: var(--ink); }
.pill { display: inline-flex; align-items: center; justify-content: center; gap: 6px; border-radius: 980px; font-weight: 500;
  padding: 7px 15px; font-size: 13.5px; background: var(--accent); color: #fff; border: 0; cursor: pointer; white-space: nowrap; }
.pill:hover { background: var(--accent-2); text-decoration: none; }
.pill.lg { padding: 12px 24px; font-size: 17px; }
.pill.ghost { background: transparent; color: var(--link); border: 1px solid var(--link); }
.pill.ghost:hover { background: rgba(123,79,176,.06); }
.more { font-size: 17px; }
.more::after { content: " ›"; }

/* sections */
.sec { padding: 96px 16px; }
.sec.alt { background: var(--bg-2); }
.wrap { max-width: 1040px; margin: 0 auto; }
.center { text-align: center; }
.eyebrow { font-size: 19px; font-weight: 600; color: var(--accent); margin: 0 0 6px; }
.h-xl { font-size: clamp(40px, 7vw, 76px); line-height: 1.32; font-weight: 700; margin: 0; }   /* Thai: room for upper + lower vowels between lines */
.h-l { font-size: clamp(32px, 5vw, 52px); line-height: 1.3; font-weight: 700; margin: 0; }
.h-m { font-size: clamp(24px, 3.2vw, 32px); line-height: 1.35; font-weight: 700; margin: 0; }
/* gradient text: the colour is painted only inside the box, and Thai glyphs (ใ ไ curls, vowels, tone marks) stick out of it —
   pad the box so nothing is cut, and pull it back with negative margins so the layout does not move */
.grad { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
span.grad { padding: .15em .16em; margin: 0 -.16em; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.h-xl .grad { display: inline-block; padding: .12em .16em .1em; margin: .1em -.16em 0; }   /* hero line 2: clear gap under ุ/ู of line 1 */
.lead { font-size: clamp(19px, 2.4vw, 24px); line-height: 1.5; color: var(--ink-2); margin: 18px auto 0; max-width: 760px; }
.ctas { display: flex; gap: 22px; justify-content: center; align-items: center; flex-wrap: wrap; margin-top: 30px; }
.fine { font-size: 13px; color: var(--ink-3); margin-top: 14px; }

/* hero */
.hero { padding: 88px 16px 0; text-align: center; overflow: hidden; }
.hero .shot { margin: 56px auto 0; max-width: 1040px; border-radius: 18px 18px 0 0; overflow: hidden;
  box-shadow: 0 30px 80px rgba(60, 20, 90, .18), 0 0 0 1px rgba(0,0,0,.06); background: #fff; }
.hero .shot .bar { height: 30px; background: #ececf0; display: flex; align-items: center; gap: 7px; padding: 0 12px; }
.hero .shot .bar i { width: 11px; height: 11px; border-radius: 50%; background: #ff5f57; }
.hero .shot .bar i:nth-child(2) { background: #febc2e; } .hero .shot .bar i:nth-child(3) { background: #28c840; }
.hero .shot .bar span { flex: 1; text-align: center; font-size: 12px; color: var(--ink-3); margin-right: 50px; }
.plats { display: flex; gap: 14px; justify-content: center; margin-top: 26px; }
.plats span { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; }
.plats svg { width: 22px; height: 22px; }

/* bento tiles */
.tiles { display: grid; grid-template-columns: repeat(6, 1fr); gap: 20px; margin-top: 56px; }
.tile { background: var(--bg); border-radius: 28px; padding: 36px 32px; grid-column: span 2; display: flex; flex-direction: column; gap: 10px; min-height: 280px; }
.sec.alt .tile { background: #fff; }
.tile.w3 { grid-column: span 3; } .tile.w4 { grid-column: span 4; } .tile.w6 { grid-column: span 6; }
.tile.dark { background: #111014; color: #f5f5f7; }
.tile.dark p { color: #a1a1a6; }
.tile h3 { font-size: 26px; line-height: 1.25; margin: 0; font-weight: 700; }
.tile p { margin: 0; color: var(--ink-2); font-size: 16px; }
.tile .ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; background: var(--bg-2); color: var(--accent); }
.tile.dark .ic { background: #26232c; color: #d8b6f5; }
.tile .ic svg { width: 24px; height: 24px; }
.tile .big { font-size: 64px; font-weight: 700; line-height: 1; margin-top: auto; }
.tile img { border-radius: 14px; margin-top: auto; box-shadow: 0 8px 30px rgba(0,0,0,.08); }

/* steps */
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; margin-top: 56px; text-align: left; }
.step b { display: block; font-size: 15px; color: var(--accent); margin-bottom: 8px; }
.step h3 { font-size: 22px; margin: 0 0 6px; }
.step p { margin: 0; color: var(--ink-2); font-size: 16px; }

/* offer */
.offer { display: grid; grid-template-columns: 1.2fr 1fr; gap: 20px; margin-top: 48px; }
.card { background: #fff; border-radius: 28px; padding: 40px; }
.card h3 { font-size: 28px; margin: 0 0 4px; }
.card ul { padding: 0; margin: 18px 0 0; list-style: none; display: grid; gap: 10px; }
.card li { padding-left: 28px; position: relative; color: var(--ink); font-size: 16px; }
.card li::before { content: ""; position: absolute; left: 4px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(-45deg); }
.card.addon li::before { border-color: var(--ink-3); }
.price { font-size: 56px; font-weight: 700; line-height: 1.1; margin-top: 10px; }
.price small { font-size: 19px; font-weight: 500; color: var(--ink-2); }

/* faq */
.faq { max-width: 780px; margin: 40px auto 0; }
.faq details { border-bottom: 1px solid var(--line); padding: 20px 0; }
.faq summary { cursor: pointer; font-size: 19px; font-weight: 600; list-style: none; display: flex; justify-content: space-between; gap: 20px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; font-size: 26px; font-weight: 300; color: var(--ink-3); line-height: 1; }
.faq details[open] summary::after { content: "−"; }
.faq p { margin: 12px 0 0; color: var(--ink-2); font-size: 16px; }

/* manuals strip */
.docs { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 40px; }
.doc { background: #fff; border-radius: 22px; padding: 28px; display: flex; gap: 18px; align-items: center; }
.doc .ic { width: 52px; height: 52px; border-radius: 14px; background: var(--bg-2); display: grid; place-items: center; color: var(--accent); flex-shrink: 0; }
.doc .ic svg { width: 26px; height: 26px; }
.doc h4 { margin: 0; font-size: 19px; }
.doc .links { display: flex; gap: 16px; margin-top: 4px; font-size: 15px; }

/* footer */
.foot { background: var(--bg-2); color: var(--ink-3); font-size: 12.5px; padding: 26px 16px 40px; }
.foot .wrap { border-top: 1px solid var(--line); padding-top: 18px; display: flex; gap: 18px; flex-wrap: wrap; justify-content: space-between; }
.foot a { color: var(--ink-2); }
.foot .links { display: flex; gap: 18px; flex-wrap: wrap; }

/* reveal on scroll (no bounce) */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .8s ease-out, transform .8s ease-out; }
.rv.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .rv { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .nav-in { justify-content: space-between; }
  .tiles { grid-template-columns: 1fr; }
  .tile, .tile.w3, .tile.w4, .tile.w6 { grid-column: auto; min-height: 0; }
  .steps, .offer, .docs { grid-template-columns: 1fr; }
  .sec { padding: 72px 16px; }
  .card { padding: 30px 24px; }
}

/* ---------- contact chat bubble ---------- */
.cw-btn { position: fixed; right: 20px; bottom: 20px; z-index: 80; height: 54px; padding: 0 20px 0 16px; border-radius: 999px; border: 0;
  background: var(--grad); color: #fff; font: 600 15px var(--font); display: flex; align-items: center; gap: 8px; cursor: pointer;
  box-shadow: 0 10px 30px rgba(123, 79, 176, .4); }
.cw-btn svg { width: 24px; height: 24px; }
.cw-btn .dot { position: absolute; top: 4px; right: 6px; width: 12px; height: 12px; border-radius: 50%; background: #ff3b30; border: 2px solid #fff; }
.cw { position: fixed; right: 20px; bottom: 86px; z-index: 81; width: min(380px, calc(100vw - 32px)); height: min(560px, calc(100dvh - 120px));
  background: #fff; border-radius: 22px; box-shadow: 0 24px 70px rgba(30, 10, 50, .28), 0 0 0 1px rgba(0,0,0,.05);
  display: flex; flex-direction: column; overflow: hidden; font-family: var(--font); color: var(--ink); }
.cw-head { background: var(--grad); color: #fff; padding: 16px 18px; display: flex; align-items: center; gap: 12px; }
.cw-head b { display: block; font-size: 16px; }
.cw-head small { opacity: .85; font-size: 12.5px; }
.cw-head button { margin-left: auto; background: rgba(255,255,255,.18); border: 0; color: #fff; width: 32px; height: 32px; border-radius: 50%; cursor: pointer; font-size: 18px; }
.cw-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: #fafafc; }
.cw-form { display: grid; gap: 10px; font-size: 14px; }
.cw-form input, .cw-form textarea { width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; font: 15px var(--font); background: #fff; }
.cw-form input:focus, .cw-form textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px rgba(123,79,176,.15); }
.cw-form label.ck { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; color: var(--ink-2); }
.cw-form label.ck input { width: auto; margin-top: 3px; }
.cw-msg { max-width: 82%; padding: 9px 13px; border-radius: 18px; font-size: 15px; line-height: 1.45; white-space: pre-wrap; word-wrap: break-word; }
.cw-msg.me { align-self: flex-end; background: var(--accent); color: #fff; border-bottom-right-radius: 6px; }
.cw-msg.them { align-self: flex-start; background: #fff; border: 1px solid #ececf0; border-bottom-left-radius: 6px; }
.cw-msg small { display: block; font-size: 11px; opacity: .7; margin-top: 3px; }
.cw-sys { align-self: center; font-size: 12.5px; color: var(--ink-3); text-align: center; }
.cw-foot { border-top: 1px solid #ececf0; padding: 10px; display: flex; gap: 8px; background: #fff; }
.cw-foot textarea { flex: 1; resize: none; border: 1px solid var(--line); border-radius: 18px; padding: 9px 14px; font: 15px var(--font); max-height: 110px; }
.cw-foot textarea:focus { outline: none; border-color: var(--accent); }
.cw-err { color: #d6345b; font-size: 13px; min-height: 1em; }
@media (max-width: 480px) { .cw { right: 16px; bottom: 82px; } .cw-btn { right: 16px; bottom: 16px; } .cw-btn span { display: none; } .cw-btn { padding: 0 15px; } }

/* pricing */
.price-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 48px; }
.price-card { position: relative; display: flex; flex-direction: column; }
.price-card.pop { box-shadow: 0 0 0 2px var(--accent); }
.price-card ul { flex: 1; }
.price-tag { position: absolute; top: -12px; right: 24px; background: var(--grad); color: #fff; font-size: 13px; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.price-year { color: var(--ink-2); font-size: 14px; margin-top: 4px; }
.price-addon { margin-top: 20px; background: #fff; border-radius: 22px; padding: 20px 28px; color: var(--ink-2); font-size: 15px; }
.price-addon b { color: var(--ink); }
@media (max-width: 860px) { .price-grid { grid-template-columns: 1fr; } }
#pricing .card, #pricing .price-addon { background: var(--bg-2); }
