@font-face { font-family: "Prompt"; font-weight: 500; font-display: swap; src: url(/assets/fonts/prompt-500-thai.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Prompt"; font-weight: 500; font-display: swap; src: url(/assets/fonts/prompt-500-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2191, U+2193, U+2212; }
@font-face { font-family: "Sarabun"; font-weight: 400; font-display: swap; src: url(/assets/fonts/sarabun-400-thai.woff2) format("woff2"); unicode-range: U+02D7, U+0303, U+0331, U+0E01-0E5B, U+200C-200D, U+25CC; }
@font-face { font-family: "Sarabun"; font-weight: 400; font-display: swap; src: url(/assets/fonts/sarabun-400-latin.woff2) format("woff2"); unicode-range: U+0000-00FF, U+2000-206F, U+2191, U+2193, U+2212; }

:root { --navy: #06142e; --navy-2: #0d2450; --gold: #d9b25f; --gold-light: #f3ddA0; --text: #eef1f8; --muted: #a9b4cc; }
* { box-sizing: border-box; margin: 0; padding: 0; }
html { background: var(--navy); }
body {
  min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; color: var(--text);
  font-family: "Sarabun", "Leelawadee UI", sans-serif; line-height: 1.6; text-align: center;
  background: radial-gradient(circle at 50% 32%, var(--navy-2) 0, var(--navy) 62%) var(--navy);
}
main { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px; padding: 32px 20px; }
picture { display: block; }
/* logo: one fixed box for all three pictures (badges 1:1, wide 3:2), so swapping never moves the page */
.logo-box { --h: min(440px, 86vw, 58vh); position: relative; display: block; flex: none; height: var(--h); width: min(calc(var(--h) * 1.5), calc(100vw - 32px));
  padding: 0; border: 0; border-radius: 18px; background: none; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.logo-box:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.logo-box picture { position: absolute; inset: 0; opacity: 0; visibility: hidden; transition: opacity .25s ease, visibility .25s; }
.logo { display: block; width: 100%; height: 100%; object-fit: contain; filter: drop-shadow(0 18px 36px rgba(0, 0, 0, .45)); }
/* without JavaScript the square logo shows */
html:not([data-logo="b"]):not([data-logo="c"]) .logo-a, html[data-logo="b"] .logo-b, html[data-logo="c"] .logo-c { opacity: 1; visibility: visible; }
@media (prefers-reduced-motion: reduce) { .logo-box picture { transition: none; } }
.lead { font-family: "Prompt", "Leelawadee UI", sans-serif; font-weight: 500; font-size: clamp(17px, 4.6vw, 22px); color: var(--gold-light);
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center; column-gap: 14px; max-width: 760px; }
.lead span { white-space: nowrap; }
.dot { color: var(--gold); font-size: .55em; }
.status { font-size: 15px; color: var(--muted); }
.demo {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 6px 20px; margin-top: 4px;
  border: 1px solid rgba(217, 178, 95, .55); border-radius: 999px; color: var(--gold); font-size: 15px; text-decoration: none;
}
.demo:hover { border-color: var(--gold); background: rgba(217, 178, 95, .1); }
.demo:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
/* 404 page */
.nf { gap: 12px; }
.nf-icon { display: block; width: 72px; height: 72px; }
.code { font-family: "Prompt", sans-serif; font-size: clamp(76px, 24vw, 128px); color: var(--gold); line-height: 1; }
.nf h1 { font-family: "Prompt", "Leelawadee UI", sans-serif; font-weight: 500; font-size: clamp(21px, 5.8vw, 28px); color: var(--gold-light); line-height: 1.4; }
.nf-line { font-size: 16px; color: var(--muted); }
.nf-line span, .nw { white-space: nowrap; }
.nf-actions { display: flex; flex-direction: column; align-items: stretch; gap: 12px; width: 100%; max-width: 360px; margin-top: 12px; }
.btn { display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 8px 26px; border-radius: 999px; background: var(--gold); color: var(--navy); text-decoration: none; font-family: "Prompt", "Leelawadee UI", sans-serif; font-weight: 500; font-size: 17px; }
.btn:hover { background: var(--gold-light); }
.btn:focus-visible { outline: 2px solid var(--gold-light); outline-offset: 3px; }
.nf-actions .demo { justify-content: center; margin-top: 0; }
@media (min-width: 640px) { .nf-actions { flex-direction: row; justify-content: center; align-items: center; max-width: none; } }
footer { padding: 16px; font-size: 13px; color: var(--muted); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
/* the separator disappears when the two phrases stack on narrow phones */
@media (max-width: 519px) { .lead { flex-direction: column; } .dot { display: none; } }
/* landing: intro, video, Demo button stacked on phones */
.intro { display: flex; flex-direction: column; align-items: center; gap: 18px; min-width: 0; }
.promo { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.promo video { display: block; width: min(320px, 86vw); height: auto; aspect-ratio: 9 / 16; border-radius: 18px; background: #000; object-fit: cover; box-shadow: 0 14px 32px rgba(0, 0, 0, .45); }
.promo figcaption { font-size: 14px; color: var(--muted); }
/* wide screens: everything on one screen - text on the left, the 9:16 video sized to the window height on the right */
@media (min-width: 900px) and (min-aspect-ratio: 1/1) {
  body { height: 100vh; height: 100dvh; min-height: 560px; }
  main.home { min-height: 0; display: grid; grid-template-columns: minmax(0, 720px) auto; grid-template-rows: auto auto; grid-template-areas: "intro promo" "demo promo";
    justify-content: center; align-content: center; column-gap: 56px; row-gap: 18px; padding: 16px 32px 0; }
  .home .intro { grid-area: intro; align-self: end; }
  .home .promo { grid-area: promo; align-self: center; }
  .home > .demo { grid-area: demo; justify-self: center; align-self: start; }
  .home .logo-box { --h: min(360px, 40vh); width: min(calc(var(--h) * 1.5), 100%); }
  .home .promo video { width: auto; height: min(calc(100vh - 110px), 940px); height: min(calc(100dvh - 110px), 940px); }
  footer { padding: 10px; }
}
