/* CAN DESIGN WEB STUDIO (2026-10-16 layout).
   The logo is a pastel rainbow disc with a gold rim and ivory letters, so the
   page is quiet around it: warm white, deep plum ink, hair-thin lines, and a
   gold accent for small marks. The rainbow appears only where it means
   something — the logo, a soft glow behind the hero and the contact panel,
   and the thin rule under the header. Pastels never carry text: anything with
   white text on it is ink or --accent. */
:root {
  --pink: #f7d2e6;
  --butter: #f4f7b0;
  --aqua: #aeeee6;
  --mint: #9df0a0;
  --lilac: #e8a8e6;
  --rainbow: linear-gradient(90deg, var(--lilac), var(--pink), var(--butter), var(--aqua), var(--mint));

  --bg: #fbf9f6;
  --soft: #f4f0ea;
  --white: #ffffff;
  --ink: #221b33;
  --ink-2: #2f2745;
  --muted: #5d566d;
  --line: rgba(34, 27, 51, 0.12);
  --gold: #876625;
  --accent: #7d3a92;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(34, 27, 51, 0.04), 0 12px 32px rgba(34, 27, 51, 0.08);

  /* Type. Fahkwang for headlines: wide, high-contrast, a face a designer
     chooses on purpose. IBM Plex Sans Thai for reading. IBM Plex Mono for the
     small technical marks — section numbers and prices. */
  --display: "Fahkwang", "IBM Plex Sans Thai", sans-serif;
  --text: "IBM Plex Sans Thai", system-ui, sans-serif;
  --mono: "IBM Plex Mono", "IBM Plex Sans Thai", monospace;
  --max: 1180px;
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
/* Until main.js has drawn the page, keep the (still empty) footer out of view,
   so nothing jumps when the content arrives. */
.js main#app:not(.ready) { min-height: 100vh; }
.site-footer:empty { display: none; }
html { scroll-behavior: smooth; scroll-padding-top: 126px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--text);
  font-size: 17px;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
h1, h2, h3, h4 { margin: 0; line-height: 1.25; font-weight: 600; font-family: var(--display); }
p { margin: 0; }
a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
.wrap { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }

/* ---------- header */
.site-header {
  position: sticky; top: 0; z-index: 10;
  background: rgba(251, 249, 246, 0.82);
  backdrop-filter: saturate(1.4) blur(14px);
}
.site-header::after { content: ""; display: block; height: 2px; background: var(--rainbow); opacity: 0.8; }
.bar { display: flex; align-items: center; justify-content: space-between; height: 72px; gap: 16px; }
.brand { display: flex; align-items: center; gap: 12px; font-family: var(--display); font-weight: 600; font-size: 0.86rem; letter-spacing: 0.14em; white-space: nowrap; min-width: 0; }
.brand img { width: 44px; height: 44px; border-radius: 50%; flex: none; box-shadow: 0 2px 8px rgba(169, 129, 63, 0.3); }
nav { display: flex; align-items: center; gap: 18px; font-size: 0.93rem; font-weight: 500; }
.nav-links { display: flex; gap: 22px; }
.nav-links a { color: var(--muted); }
.nav-links a:hover { color: var(--ink); }
.nav-cta { background: var(--ink); color: var(--white); padding: 9px 18px; border-radius: 999px; white-space: nowrap; transition: background 0.15s; }
.nav-cta:hover { background: var(--accent); }
.lang { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; flex: none; }
.lang button { font: 600 0.78rem/1 var(--text); padding: 7px 10px; border: 0; background: none; color: var(--muted); cursor: pointer; }
.lang button[aria-pressed="true"] { background: var(--ink); color: var(--white); }

/* ---------- contact bar (top of the header) */
.topbar { background: var(--ink); color: #efeaf6; font-size: 0.88rem; }
.topbar-in { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 42px; }
.topbar-text { color: #d9b878; font-weight: 500; white-space: nowrap; }
.topbar-links { display: flex; align-items: center; gap: 8px; }
.tb { display: inline-flex; align-items: center; gap: 8px; padding: 4px 12px 4px 4px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.14); color: #fff; white-space: nowrap; transition: background 0.15s; }
.tb:hover { background: rgba(255, 255, 255, 0.18); }
.tb-icon { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: #fff; flex: none; }
.tb-icon svg { width: 16px; height: 16px; }
.tb-facebook .tb-icon { color: #1877f2; }
.tb-line .tb-icon { background: #06c755; color: #fff; }
.tb-phone .tb-icon { background: var(--butter); color: var(--ink); }
.tb-email .tb-icon { background: var(--pink); color: var(--ink); }
.tb-label { opacity: 0.7; font-size: 0.8rem; }
.tb-value { font-weight: 600; }

/* ---------- buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--ink); color: var(--white);
  padding: 14px 28px; border-radius: 999px; font-weight: 600; border: 1.5px solid var(--ink);
  transition: background 0.15s, color 0.15s, border-color 0.15s;
}
.btn:hover { background: var(--accent); border-color: var(--accent); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-ghost:hover { background: var(--ink); color: var(--white); border-color: var(--ink); }
.btn-light { background: var(--white); color: var(--ink); border-color: var(--white); }
.btn-light:hover { background: var(--butter); border-color: var(--butter); color: var(--ink); }

/* ---------- hero */
.hero { position: relative; padding: 72px 0 84px; overflow-x: clip; }
.hero::before {
  /* soft rainbow light behind the picture */
  content: ""; position: absolute; z-index: -1; right: -10%; top: -10%; width: 70%; height: 110%;
  background: radial-gradient(closest-side, rgba(232, 168, 230, 0.45), transparent), radial-gradient(closest-side at 70% 60%, rgba(174, 238, 230, 0.5), transparent), radial-gradient(closest-side at 30% 80%, rgba(244, 247, 176, 0.55), transparent);
  filter: blur(20px);
}
.hero-grid { display: grid; gap: 56px; align-items: center; }
.kicker { display: inline-flex; align-items: center; gap: 10px; padding: 6px 16px 6px 10px; border: 1px solid var(--line); border-radius: 999px; background: rgba(255, 255, 255, 0.7); color: var(--muted); font-size: 0.86rem; font-weight: 500; }
.kicker i { width: 8px; height: 8px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 0 4px rgba(169, 129, 63, 0.18); }
.hero h1 { font-size: clamp(2rem, 3.6vw, 3.1rem); font-weight: 600; line-height: 1.2; margin: 22px 0 22px; }
.hero h1 span:not(.plain) { color: var(--accent); }
@media (min-width: 600px) { html[lang="th"] .hero h1 .line { white-space: nowrap; } }
.lead { max-width: 54ch; font-size: 1.1rem; color: var(--muted); }
.hero-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 32px; }
.proof { list-style: none; margin: 44px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, auto); justify-content: start; gap: 0; }
.proof li { display: flex; flex-direction: column; padding: 0 28px; border-left: 1px solid var(--line); }
.proof li:first-child { padding-left: 0; border-left: 0; }
.proof b { font-family: var(--display); font-size: 1.9rem; font-weight: 600; line-height: 1.2; }
.proof span { color: var(--muted); font-size: 0.88rem; line-height: 1.45; max-width: 16ch; }

.hero-art { position: relative; padding: 0 0 48px 48px; }
.browser { background: var(--white); border-radius: 14px; overflow: hidden; box-shadow: 0 2px 6px rgba(34, 27, 51, 0.06), 0 30px 70px rgba(34, 27, 51, 0.16); border: 1px solid var(--line); transform: rotate(1.2deg); }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: var(--soft); border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e3dcd2; }
.browser-bar span { margin-left: 10px; flex: 1; background: var(--white); border-radius: 6px; padding: 1px 10px; font: 500 0.76rem/1.6 var(--mono); color: var(--muted); overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.browser { position: relative; }
.browser-screen { aspect-ratio: 16 / 10.5; overflow: hidden; }
/* the real site scrolls slowly from top to bottom and back, by itself */
.browser-screen img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; animation: page-tour 26s ease-in-out 2s infinite; }
.browser:hover .browser-screen img { animation-play-state: paused; }
@keyframes page-tour { 0%, 8% { object-position: 50% 0; } 46%, 54% { object-position: 50% 100%; } 92%, 100% { object-position: 50% 0; } }
.hero-full { top: 50px; }
.seal { position: absolute; left: 0; bottom: 0; width: 38%; max-width: 210px; height: auto; aspect-ratio: 1; border-radius: 50%; filter: drop-shadow(0 18px 30px rgba(34, 27, 51, 0.22)); }
.chip { position: absolute; right: -8px; bottom: 18px; display: flex; align-items: center; gap: 10px; background: var(--white); border-radius: 14px; padding: 10px 16px; box-shadow: var(--shadow); }
.chip b { font-family: var(--display); font-size: 1.6rem; line-height: 1; color: var(--accent); }
.chip span { font-size: 0.84rem; line-height: 1.3; color: var(--muted); max-width: 12ch; }

.hero-note { margin-top: 14px; font-size: 0.9rem; color: var(--muted); }
.assure { list-style: none; margin: 26px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 10px; }
.assure li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 8px; border-radius: 999px; background: rgba(255, 255, 255, 0.75); border: 1px solid var(--line); font-size: 0.9rem; font-weight: 500; }
.assure li::before { content: ""; width: 18px; height: 18px; border-radius: 50%; flex: none; background: var(--ink) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.6' fill='none' stroke='%23fff' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* ---------- problems → how the site helps */
.pain-grid { display: grid; gap: 18px; margin-bottom: 36px; }
.pain { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; display: flex; flex-direction: column; }
.pain small { display: block; font-family: var(--mono); font-size: 0.74rem; letter-spacing: 0.08em; margin-bottom: 6px; }
.pain-problem { padding: 22px 24px; }
.pain-problem small { color: #b3261e; }
.pain-problem p { font-weight: 600; font-size: 1.05rem; line-height: 1.55; }
.pain-answer { padding: 20px 24px 22px; background: linear-gradient(120deg, rgba(247, 210, 230, 0.35), rgba(174, 238, 230, 0.35)); border-top: 1px dashed var(--line); flex: 1; }
.pain-answer small { color: var(--accent); }
.pain-answer p { color: var(--ink); }
@media (min-width: 720px) { .pain-grid { grid-template-columns: repeat(2, 1fr); } }
#problems .section-head { display: block; }
#problems .section-note { margin-top: 14px; }

/* ---------- "like one? message us" after the samples */
.inline-cta { margin-top: 36px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 16px 24px; padding: 24px 28px; border-radius: var(--radius); background: var(--white); border: 1px solid var(--gold); }
.inline-cta p { font-family: var(--display); font-weight: 600; font-size: 1.15rem; flex: 1 1 320px; }

/* ---------- the package chooser */
.chooser { background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px 28px; margin-bottom: 28px; }
.chooser h3 { font-size: 1.25rem; margin-bottom: 18px; }
.chooser-qs { display: grid; gap: 18px; }
.chooser-q > p { font-weight: 600; margin-bottom: 8px; }
.chooser-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.chooser-opts button { font: 500 0.92rem/1.4 var(--text); padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); cursor: pointer; text-align: left; }
.chooser-opts button:hover { border-color: var(--ink); }
.chooser-opts button[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }
.chooser-result { margin-top: 22px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 20px; padding: 18px 22px; border-radius: 14px; background: var(--ink); color: #efeaf6; }
.chooser-result small { display: block; color: #d9b878; font-size: 0.8rem; }
.chooser-result b { display: block; font-family: var(--display); font-size: 1.3rem; color: var(--white); }
.chooser-result span { color: #cfc7de; font-size: 0.92rem; }
.plan-match { outline: 3px solid var(--gold); outline-offset: 4px; }
@media (min-width: 960px) { .chooser-qs { grid-template-columns: 1.4fr 1fr 1fr; } }

/* ---------- business types, scrolling slowly */
.industries { overflow: hidden; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--white); padding: 16px 0; mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.industries-track { display: flex; width: max-content; animation: slide 60s linear infinite; }
.industries:hover .industries-track { animation-play-state: paused; }
.industries span { display: inline-flex; align-items: center; gap: 28px; padding-right: 28px; font-family: var(--display); font-size: 1.02rem; font-weight: 500; color: var(--muted); white-space: nowrap; }
.industries span::after { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); opacity: 0.7; }
@keyframes slide { to { transform: translateX(-50%); } }

/* ---------- sections */
.section { padding: 104px 0; }
.section-soft { background: var(--soft); }
.section-head { display: grid; gap: 18px 64px; align-items: end; margin-bottom: 48px; }
.eyebrow { font-family: var(--mono); font-size: 0.8rem; font-weight: 500; color: var(--gold); letter-spacing: 0.1em; margin-bottom: 10px; }
.eyebrow::after { content: ""; display: inline-block; width: 40px; height: 1px; background: currentColor; vertical-align: middle; margin-left: 12px; }
.section-head h2 { font-size: clamp(1.9rem, 4vw, 2.9rem); }
.section-note { color: var(--muted); max-width: 60ch; }

/* ---------- about */
.about-grid { display: grid; gap: 8px 72px; }
.about-grid .section-head { display: block; margin-bottom: 24px; }
.about-text { font-size: 1.12rem; line-height: 1.85; }
.about-body .ticks { margin-bottom: 0; }
@media (min-width: 960px) { .about-grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; } }

/* The plain-HTML copy in index.html for crawlers; hidden once main.js runs
   (the html element gets class "js" before the body is drawn). */
.js [data-static] { display: none; }
[data-static] { max-width: var(--max); margin: 0 auto; padding: 40px 24px; }
[data-static] section { margin-bottom: 32px; }

/* ---------- real work */
.case { display: grid; gap: 40px; align-items: center; }
.case + .case { margin-top: 96px; padding-top: 96px; border-top: 1px solid var(--line); }
.case-shot { border-radius: var(--radius); overflow: hidden; background: var(--white); box-shadow: var(--shadow); border: 1px solid var(--line); }
.case-shot-box { position: relative; }
.case-shot { display: block; aspect-ratio: 16 / 11; }
.case-shot img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: object-position var(--scroll-time, 6s) ease-in-out; }
.case-shot:hover img { object-position: 50% 100%; }
.case-type { color: var(--gold); font-weight: 600; font-size: 0.88rem; letter-spacing: 0.02em; }
.case-body h3 { font-size: clamp(1.7rem, 3vw, 2.3rem); margin: 6px 0 14px; }
.case-body > p { color: var(--muted); }
.ticks { list-style: none; margin: 22px 0 28px; padding: 0; display: grid; gap: 10px; align-content: start; }
.ticks li { position: relative; padding-left: 30px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: 0.42em; width: 18px; height: 18px; border-radius: 50%; background: var(--soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 18 18'%3E%3Cpath d='M5 9.4l2.6 2.5L13 6.6' fill='none' stroke='%23876625' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 18px no-repeat; }

/* ---------- demos */
.demo-grid { display: grid; gap: 24px; }
.demo { display: flex; flex-direction: column; background: var(--white); border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); transition: transform 0.25s, box-shadow 0.25s; }
.demo:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.demo-pic { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); }
.demo-badge { position: absolute; top: 12px; left: 12px; z-index: 1; background: var(--ink); color: var(--white); font-size: 0.78rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.demo-real { border-color: var(--gold); }
.demo-pic { aspect-ratio: 4 / 3; }
.demo-pic img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 0; transition: object-position var(--scroll-time, 4s) ease-in-out; }
.demo:hover .demo-pic img { object-position: 50% 100%; }
.demo-text { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.demo h3 { font-size: 1.12rem; margin-bottom: 6px; }
.demo p { color: var(--muted); font-size: 0.94rem; flex: 1; }
.demo-go { margin-top: 14px; font-weight: 600; font-size: 0.92rem; color: var(--accent); }

.demo-item { position: relative; display: flex; }
.demo-item .demo { flex: 1; }
.demo-full { position: absolute; top: 10px; right: 10px; z-index: 2; font: 600 0.8rem/1 var(--text); padding: 8px 12px 8px 30px; border-radius: 999px; border: 0; cursor: pointer; color: var(--white); background: rgba(34, 27, 51, 0.82) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M2 6V2h4M14 6V2h-4M2 10v4h4M14 10v4h-4' fill='none' stroke='%23fff' stroke-width='1.6' stroke-linecap='round'/%3E%3C/svg%3E") 11px center / 13px no-repeat; backdrop-filter: blur(4px); }
.demo-full:hover { background-color: var(--accent); }

/* the whole-page viewer */
.viewer-open { overflow: hidden; }
.page-viewer { position: fixed; inset: 0; z-index: 50; background: rgba(20, 16, 30, 0.72); display: grid; place-items: center; padding: 16px; }
.page-viewer-panel { width: min(920px, 100%); height: min(92vh, 100%); background: var(--white); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0, 0, 0, 0.4); }
.page-viewer-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 20px; border-bottom: 1px solid var(--line); }
.page-viewer-head b { flex: 1; font-family: var(--display); font-size: 1.05rem; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.page-viewer-head .btn { padding: 9px 16px; font-size: 0.9rem; white-space: nowrap; }
.page-viewer-close { flex: none; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); font-size: 1.4rem; line-height: 1; cursor: pointer; color: var(--ink); }
.page-viewer-body { flex: 1; overflow-y: auto; background: var(--soft); overscroll-behavior: contain; }
.page-viewer-body img { width: 100%; height: auto; display: block; }

/* ---------- services: the dark band */
.section-dark { background: var(--ink); color: #efeaf6; position: relative; overflow: hidden; }
.section-dark::before { content: ""; position: absolute; left: -15%; top: -30%; width: 60%; height: 90%; background: radial-gradient(closest-side, rgba(232, 168, 230, 0.16), transparent); pointer-events: none; }
.section-dark .eyebrow { color: #d9b878; }
.section-dark .wrap { position: relative; }
.svc-grid { display: grid; gap: 1px; background: rgba(255, 255, 255, 0.12); border: 1px solid rgba(255, 255, 255, 0.12); border-radius: var(--radius); overflow: hidden; }
.svc { background: var(--ink); padding: 30px 28px; transition: background 0.2s; }
.svc:hover { background: var(--ink-2); }
.svc-num { font-family: var(--mono); font-size: 0.8rem; color: #d9b878; }
.svc h3 { font-size: 1.2rem; margin: 14px 0 8px; color: var(--white); }
.svc p { color: #bdb4cf; font-size: 0.96rem; }
.sub { font-size: 1.4rem; margin: 72px 0 28px; color: var(--white); }
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 28px; counter-reset: step; }
.steps li { counter-increment: step; position: relative; padding-top: 58px; }
.steps li::before { content: counter(step, decimal-leading-zero); position: absolute; left: 0; top: 0; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 50%; border: 1px solid #d9b878; color: #d9b878; font: 500 0.85rem/1 var(--mono); background: var(--ink); z-index: 1; }
.steps b { display: block; font-size: 1.06rem; color: var(--white); margin-bottom: 4px; }
.steps span { color: #bdb4cf; font-size: 0.94rem; }

/* ---------- why us: FAQ */
.faq-grid { display: grid; gap: 8px 72px; }
.faq-grid .section-head { display: block; margin-bottom: 32px; }
.faq-grid .section-note { margin-top: 16px; }
.faq { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { list-style: none; cursor: pointer; display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 22px 4px; font-family: var(--display); font-weight: 600; font-size: 1.1rem; line-height: 1.4; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line); font: 400 1.3rem/1 var(--text); color: var(--muted); transition: transform 0.2s, background 0.2s; }
.faq details[open] summary::after { content: "−"; background: var(--ink); color: var(--white); border-color: var(--ink); }
.faq summary:hover::after { border-color: var(--ink); }
.faq details p { color: var(--muted); padding: 0 56px 24px 4px; }

/* ---------- pricing */
.plans { display: grid; gap: 20px; align-items: stretch; }
.plan { position: relative; display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px 26px 26px; }
.plan-best { background: var(--ink); color: #efeaf6; border-color: var(--ink); box-shadow: 0 30px 60px rgba(34, 27, 51, 0.22); }
.plan-best::before { content: ""; position: absolute; left: 24px; right: 24px; top: 0; height: 3px; background: var(--rainbow); border-radius: 0 0 3px 3px; }
.plan-tag { position: absolute; top: 18px; right: 18px; background: var(--butter); color: var(--ink); font-size: 0.76rem; font-weight: 600; padding: 3px 12px; border-radius: 999px; }
.plan h3 { font-size: 1.16rem; }
.plan-best h3 { padding-right: 64px; }
.plan-best h3 { color: var(--white); }
.plan-price { margin: 16px 0 4px; display: flex; align-items: baseline; gap: 8px; }
.plan-price b { font-family: var(--mono); font-size: 2.1rem; font-weight: 500; letter-spacing: -0.03em; line-height: 1.1; }
.plan-price small { color: var(--muted); font-size: 0.88rem; }
.plan-best .plan-price small, .plan-best .plan-note { color: #bdb4cf; }
.plan-note { color: var(--muted); font-size: 0.92rem; min-height: 3.2em; padding-bottom: 16px; border-bottom: 1px solid var(--line); }
.plan-best .plan-note { border-color: rgba(255, 255, 255, 0.14); }
.plan .ticks { margin: 18px 0 24px; font-size: 0.94rem; flex: 1; gap: 9px; }
.plan-best .ticks li::before { background-color: rgba(255, 255, 255, 0.1); }
.plan .btn { padding: 12px 16px; font-size: 0.94rem; }

/* ---------- articles */
.article-grid { display: grid; gap: 24px; }
.article-card { display: flex; flex-direction: column; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: transform 0.25s, box-shadow 0.25s; }
.article-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.article-pic { aspect-ratio: 16 / 8; display: grid; place-items: center; background: linear-gradient(120deg, var(--pink), var(--butter) 35%, var(--aqua) 65%, var(--lilac)); overflow: hidden; }
.article-pic img { width: 100%; height: 100%; object-fit: cover; }
.article-pic img[width="72"] { width: 72px; height: 72px; border-radius: 50%; filter: drop-shadow(0 8px 16px rgba(34, 27, 51, 0.2)); }
.article-text { padding: 22px 24px 24px; display: flex; flex-direction: column; flex: 1; }
.article-date { font-family: var(--mono); font-size: 0.8rem; color: var(--gold); }
.article-card h3 { font-size: 1.22rem; margin: 6px 0 8px; line-height: 1.4; }
.article-card p { color: var(--muted); font-size: 0.95rem; flex: 1; }
@media (min-width: 720px) { .article-grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1100px) { .article-grid { grid-template-columns: repeat(3, 1fr); } }

/* ---------- an article's own page (articles/*.html) */
html:not(.en) [data-lang="en"], html.en [data-lang="th"] { display: none; }
.article-wrap { max-width: 760px; padding-top: 48px; padding-bottom: 96px; }
.article-back { display: inline-block; color: var(--muted); font-size: 0.92rem; margin-bottom: 32px; }
.article-back:hover { color: var(--ink); }
.article-lang h1 { font-size: clamp(1.9rem, 4.4vw, 2.8rem); line-height: 1.3; margin: 8px 0 18px; }
.article-lead { font-size: 1.15rem; color: var(--muted); padding-bottom: 28px; border-bottom: 1px solid var(--line); }
.article-hero { width: 100%; border-radius: var(--radius); margin-top: 28px; }
.article-body { font-size: 1.08rem; line-height: 1.9; }
.article-body p { margin: 22px 0 0; }
.article-body h2 { font-size: 1.45rem; margin: 44px 0 0; }
.article-cta { margin-top: 64px; padding: 32px; border-radius: var(--radius); background: var(--soft); display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.article-cta p { flex: 1 1 100%; font-weight: 500; }

/* ---------- contact */
.contact-card {
  position: relative; overflow: hidden; display: grid; gap: 36px; align-items: center;
  background: var(--ink); color: #efeaf6; border-radius: 28px; padding: 56px 48px;
}
.contact-card::before { content: ""; position: absolute; right: -10%; top: -40%; width: 70%; height: 180%; background: radial-gradient(closest-side, rgba(232, 168, 230, 0.3), transparent), radial-gradient(closest-side at 60% 70%, rgba(174, 238, 230, 0.22), transparent); pointer-events: none; }
.contact-card > * { position: relative; min-width: 0; }
.contact-links b { overflow-wrap: break-word; }
.contact-card .eyebrow { color: #d9b878; }
.contact-card h2 { font-size: clamp(2rem, 4.4vw, 3.2rem); color: var(--white); }
.contact-lead { max-width: 52ch; color: #cfc7de; font-size: 1.08rem; margin-top: 14px; }
.contact-logo { width: 240px; height: 240px; justify-self: center; border-radius: 50%; filter: drop-shadow(0 20px 40px rgba(0, 0, 0, 0.35)); }
.contact-links { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.contact-links a {
  display: flex; flex-direction: column; min-width: 190px;
  background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.18); border-radius: 14px; padding: 14px 20px;
  transition: background 0.15s, color 0.15s;
}
.contact-links a:hover { background: var(--white); color: var(--ink); }
.contact-links small { opacity: 0.7; font-size: 0.8rem; }
.contact-links b { font-size: 1.05rem; font-weight: 600; }
.contact-steps { margin: 28px 0 0; padding: 0; list-style: none; counter-reset: cs; display: grid; gap: 10px; }
.contact-steps li { counter-increment: cs; display: flex; gap: 12px; align-items: baseline; color: #cfc7de; font-size: 0.95rem; }
.contact-steps li::before { content: counter(cs); flex: none; display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid #d9b878; color: #d9b878; font: 500 0.78rem/1 var(--mono); }
.contact-empty { border: 1px dashed rgba(255, 255, 255, 0.35); border-radius: 14px; padding: 14px 20px; color: #cfc7de; }

/* ---------- footer */
.site-footer { padding: 72px 0 32px; border-top: 1px solid var(--line); background: var(--bg); }
.footer-grid { display: grid; gap: 36px; }
.footer-name { display: flex; align-items: center; gap: 14px; font-family: var(--display); font-weight: 600; letter-spacing: 0.12em; font-size: 0.92rem; margin-bottom: 12px; }
.footer-name img { width: 52px; height: 52px; border-radius: 50%; }
.footer-brand > p:last-child { color: var(--muted); font-size: 0.92rem; max-width: 36ch; }
.footer-col { display: flex; flex-direction: column; gap: 8px; font-size: 0.94rem; }
.footer-col h4 { font-size: 0.82rem; letter-spacing: 0.08em; color: var(--gold); margin-bottom: 6px; font-family: var(--mono); font-weight: 500; }
.footer-col a, .footer-col span { color: var(--muted); }
.footer-col a:hover { color: var(--ink); }
.footer-bottom { grid-column: 1 / -1; border-top: 1px solid var(--line); padding-top: 22px; color: var(--muted); font-size: 0.86rem; }

/* Shown only in the owner's own browser, while admin.html holds unsaved edits. */
.draft-strip { background: var(--ink); color: var(--white); text-align: center; font-size: 0.9rem; padding: 8px 14px; }
.draft-strip a { text-decoration: underline; }

@media (min-width: 720px) {
  .plans { grid-template-columns: repeat(2, 1fr); }
  .demo-grid { grid-template-columns: repeat(2, 1fr); }
  .svc-grid { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(4, 1fr); }
  .steps li:not(:last-child)::after { content: ""; position: absolute; left: 50px; right: -20px; top: 21px; height: 1px; background: rgba(217, 184, 120, 0.4); }
  .footer-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 960px) {
  .hero-grid { grid-template-columns: 1.05fr 0.95fr; }
  .section-head { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; align-items: start; }
  .faq-grid .section-head { position: sticky; top: 110px; }
  .plans { grid-template-columns: repeat(4, 1fr); }
  .case { grid-template-columns: 1.2fr 1fr; gap: 64px; }
  .demo-grid { grid-template-columns: repeat(3, 1fr); }
  .svc-grid { grid-template-columns: repeat(3, 1fr); }
  .contact-card { grid-template-columns: 1fr auto; padding: 72px 72px; }
}
.menu-btn { display: none; flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: var(--white); cursor: pointer; flex-direction: column; align-items: center; justify-content: center; gap: 4px; }
.menu-btn i { display: block; width: 16px; height: 2px; border-radius: 2px; background: var(--ink); transition: transform 0.2s, opacity 0.2s; }
.menu-open .menu-btn i:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-open .menu-btn i:nth-child(2) { opacity: 0; }
.menu-open .menu-btn i:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }
.article-all { margin-top: 32px; }
@media (max-width: 1080px) {
  .menu-btn { display: inline-flex; }
  .nav-links { display: none; }
  .menu-open .nav-links {
    display: flex; flex-direction: column; gap: 0;
    position: absolute; left: 0; right: 0; top: 100%;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: 0 20px 40px rgba(34, 27, 51, 0.12);
    padding: 8px 24px 16px;
  }
  .menu-open .nav-links a { padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 1.05rem; color: var(--ink); }
  .menu-open .nav-links a:last-child { border-bottom: 0; }
}
@media (max-width: 640px) {
  .wrap { padding: 0 18px; }
  nav { gap: 8px; }
  .bar { gap: 10px; height: 64px; }
  .brand { font-size: 0.72rem; letter-spacing: 0.08em; gap: 9px; }
  .brand img { width: 38px; height: 38px; }
  .brand span { overflow: hidden; text-overflow: ellipsis; }
  .nav-cta { padding: 8px 12px; font-size: 0.85rem; }
  .menu-btn { width: 36px; height: 36px; }
  .lang button { padding: 7px 8px; }
  .hero { padding: 40px 0 64px; }
  .proof li { padding: 0 14px; }
  .proof b { font-size: 1.5rem; }
  .hero-art { padding: 0 0 36px 28px; }
  .chip { right: 0; }
  .section { padding: 72px 0; }
  .section-head { margin-bottom: 32px; }
  /* phones: one column that can't grow past the screen, everything centred */
  .contact-card { padding: 40px 20px; border-radius: 22px; grid-template-columns: minmax(0, 1fr); text-align: center; }
  .contact-card .eyebrow::after { display: none; }
  .contact-lead { margin-left: auto; margin-right: auto; }
  .contact-links { justify-content: center; }
  .contact-links a { align-items: center; }
  .contact-steps { max-width: 30ch; margin-left: auto; margin-right: auto; }
  .contact-steps li { text-align: left; }
  .contact-logo { width: 160px; height: 160px; }
  .contact-links a { min-width: 0; flex: 1 1 100%; }
  .faq details p { padding-right: 4px; }
  /* samples two to a row on phones: picture, name and the link — the description waits for the sample itself */
  .demo-grid { grid-template-columns: repeat(2, 1fr); gap: 12px; }
  .demo-text { padding: 12px 12px 14px; }
  .demo h3 { font-size: 0.95rem; line-height: 1.35; }
  .demo p { display: none; }
  .demo-go { margin-top: 6px; font-size: 0.85rem; }
  .demo-badge { top: 8px; left: 8px; font-size: 0.7rem; padding: 2px 9px; }
  .demo-full { top: 6px; right: 6px; font-size: 0.72rem; padding: 6px 9px 6px 24px; background-position: 8px center; background-size: 11px; }
  .page-viewer { padding: 0; }
  .page-viewer-panel { height: 100%; border-radius: 0; }
  .page-viewer-head .btn { padding: 8px 12px; font-size: 0.82rem; }
}
@media (max-width: 420px) {
  .brand span { display: none; }
}
@media (max-width: 1080px) {
  /* the e-mail button only where there is room; it stays in the contact box and footer */
  .tb-email { display: none; }
}
@media (max-width: 860px) {
  .topbar-text { display: none; }
  .topbar-links { flex: 1; justify-content: center; }
}
@media (max-width: 640px) {
  /* phones: icon + short name, the full name/number is one tap away */
  .tb-value { display: none; }
  .tb-label { opacity: 1; font-size: 0.85rem; font-weight: 600; }
  .topbar-links { gap: 6px; }
  .tb { padding: 3px 10px 3px 3px; }
  /* the number itself stays on phones — it's the one people want to see */
  .tb-phone .tb-label { display: none; }
  .tb-phone .tb-value { display: inline; font-size: 0.85rem; }
  .tb-extra { display: none; }
}
@media (max-width: 400px) {
  /* three buttons on a small phone: Facebook keeps just its icon */
  .tb-facebook .tb-label { display: none; }
  .tb-facebook { padding-right: 4px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .demo:hover .demo-pic img, .case-shot:hover img { object-position: 50% 0; }
  .browser-screen img { animation: none; }
  * { transition: none !important; }
  .industries-track { animation: none; flex-wrap: wrap; width: auto; justify-content: center; row-gap: 8px; }
  .industries span[aria-hidden] { display: none; }
}

.article-page .footer-bottom { border-top: 0; padding-top: 0; }
.article-page .site-footer { padding-top: 32px; }

/* ---------- articles/index.html: every article */
.article-list-head { margin-bottom: 40px; }
.article-list-head h1 { font-size: clamp(2rem, 4.6vw, 3rem); margin-top: 8px; }
.article-list-head p { color: var(--muted); margin-top: 12px; max-width: 60ch; }
.article-index .article-grid { margin-bottom: 0; }
.nav-plain { color: var(--muted); font-weight: 500; }
.nav-plain:hover { color: var(--ink); }

/* ---------- floating "chat on LINE" button */
.line-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 10px; padding: 10px 20px 10px 10px; border-radius: 999px; background: #06c755; color: #fff; font-weight: 700; font-size: 1rem; box-shadow: 0 10px 28px rgba(6, 199, 85, 0.38), 0 2px 6px rgba(0, 0, 0, 0.12); transition: transform 0.15s, background 0.15s; }
.line-fab:hover { background: #05b04b; transform: translateY(-2px); }
.line-fab-icon { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: #fff; color: #06c755; flex: none; }
.line-fab-icon svg { width: 22px; height: 22px; }
.viewer-open .line-fab { display: none; }
@media (max-width: 640px) {
  .line-fab { right: 14px; bottom: 14px; padding: 8px 16px 8px 8px; font-size: 0.95rem; }
  .line-fab-icon { width: 30px; height: 30px; }
  .site-footer { padding-bottom: 84px; }
}
@media (prefers-reduced-motion: reduce) { .line-fab:hover { transform: none; } }
