/* Siamora — site styles. One file for every page; the hero demo adds demo.css on the home pages.
   Dark, glassy and bright: near-black canvas, glowing brand gradients, frosted surfaces, big
   tight type in the platform's own UI font (SF Pro on Apple devices). No web fonts. */

/* ---------- Tokens ---------- */
:root {
  --rose: #ff8fa3;
  --pink: #ff4d7d;
  --violet: #b94cf5;
  --indigo: #7c5cff;
  --grad: linear-gradient(110deg, var(--rose) 0%, var(--pink) 32%, var(--violet) 68%, var(--indigo) 100%);
  --grad-soft: linear-gradient(135deg, rgb(255 77 125 / 0.22), rgb(124 92 255 / 0.22));

  --bg: #07060b;
  --bg-2: #0d0b13;
  --card: rgb(255 255 255 / 0.035);
  --card-hover: rgb(255 255 255 / 0.06);
  --line: rgb(255 255 255 / 0.08);
  --line-strong: rgb(255 255 255 / 0.14);
  --text: #f6f4f8;
  --text-2: #a9a4b5;
  --text-3: #7d7889;
  --link: #ff8fa6;
  --glass: rgb(20 17 28 / 0.62);

  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'SF Pro Text', 'Segoe UI Variable Display', 'Segoe UI',
    Roboto, 'Helvetica Neue', 'Noto Sans Thai', 'Leelawadee UI', 'Sukhumvit Set', Arial, sans-serif;
  --gutter: 20px;
  --max: 1200px;
  --nav-h: 64px;
  --r-s: 14px;
  --r-m: 22px;
  --r-l: 32px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  color-scheme: dark;
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--nav-h) + 24px); background: var(--bg); }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 17px/1.55 var(--font);
  letter-spacing: -0.011em;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: clip;
}
:lang(th) body { line-height: 1.75; letter-spacing: 0; }
h1, h2, h3 { margin: 0 0 0.4em; overflow-wrap: break-word; font-weight: 700; line-height: 1.04; letter-spacing: -0.04em; text-wrap: balance; }
:lang(th) :is(h1, h2, h3) { letter-spacing: 0; line-height: 1.3; }
h1 { font-size: clamp(2.6rem, 6vw, 5rem); }
h2 { font-size: clamp(2.2rem, 5vw, 4rem); }
h3 { font-size: 1.35rem; line-height: 1.2; letter-spacing: -0.02em; }
p { margin: 0 0 1em; text-wrap: pretty; }
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
img, svg { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; }
::selection { background: rgb(255 77 125 / 0.35); }
:focus-visible { outline: 2px solid var(--rose); outline-offset: 3px; border-radius: 6px; }

.container { width: min(100% - 2 * var(--gutter), var(--max)); margin-inline: auto; }
.grad-text { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
.muted { color: var(--text-2); }
.lead { font-size: clamp(1.1rem, 1.9vw, 1.35rem); line-height: 1.5; color: var(--text-2); letter-spacing: -0.015em; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px; margin: 0 0 20px; padding: 6px 14px;
  border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card);
  color: var(--text); font-size: 0.82rem; font-weight: 600; letter-spacing: 0;
}
.eyebrow::before { content: ''; width: 6px; height: 6px; border-radius: 99px; background: var(--grad); box-shadow: 0 0 12px var(--pink); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: -9999px; }
.skip-link:focus { left: var(--gutter); top: 8px; z-index: 300; padding: 8px 14px; border-radius: var(--r-s); background: var(--bg-2); color: var(--text); }
.link-more { font-weight: 600; white-space: nowrap; }
.link-more::after { content: ' →'; transition: margin 200ms var(--ease); }
.link-more:hover { text-decoration: none; }
.link-more:hover::after { margin-left: 4px; }

.section { position: relative; padding-block: clamp(72px, 9vw, 128px); }
.section-head { max-width: 48rem; margin: 0 auto clamp(48px, 6vw, 72px); text-align: center; }
.section-head .lead { max-width: 34em; margin-inline: auto; }
.section-head p:last-child { margin-bottom: 0; }

/* Frosted card with a hairline border that brightens towards the top — the base of every panel. */
.glass {
  position: relative;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.055), rgb(255 255 255 / 0.02));
  border: 1px solid var(--line);
  border-radius: var(--r-l);
  box-shadow: inset 0 1px 0 rgb(255 255 255 / 0.06);
}

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 52px; padding: 0 26px; border: 0; border-radius: 999px; cursor: pointer;
  font-size: 1rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap;
  transition: transform 250ms var(--ease), box-shadow 250ms var(--ease), background 250ms var(--ease);
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
.btn--primary { background: var(--grad); color: #fff; box-shadow: 0 10px 30px -10px rgb(255 77 125 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.3); }
.btn--primary:hover { box-shadow: 0 16px 40px -10px rgb(255 77 125 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.3); }
.btn--small { min-height: 38px; padding: 0 18px; font-size: 0.88rem; }

/* ---------- Header: a floating glass pill ---------- */
.nav { position: sticky; top: 0; z-index: 100; padding-top: 12px; }
.nav-bar {
  position: relative; display: flex; align-items: center; gap: 20px; height: 56px; padding: 0 8px 0 18px;
  border: 1px solid var(--line); border-radius: 999px; background: var(--glass);
  -webkit-backdrop-filter: saturate(160%) blur(22px); backdrop-filter: saturate(160%) blur(22px);
  box-shadow: 0 12px 40px -18px rgb(0 0 0 / 0.8);
}
.brand { display: inline-flex; align-items: center; gap: 9px; min-height: 44px; color: var(--text); font-size: 1.12rem; font-weight: 700; letter-spacing: -0.03em; }
.brand:hover { text-decoration: none; }
.brand img { width: 28px; height: 28px; }
.nav-links-wrap { margin-inline: auto; }
.nav-links { display: flex; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav-links a { display: block; padding: 8px 14px; border-radius: 999px; color: var(--text-2); font-size: 0.9rem; font-weight: 500; transition: color 200ms, background 200ms; }
.nav-links a:hover { color: var(--text); background: var(--card-hover); text-decoration: none; }
.nav-tools { display: flex; align-items: center; gap: 6px; }

/* Language picker: a native <details>, so it opens without JS; site.js closes it on outside
   clicks and Escape. */
.lang { position: relative; }
.lang > summary {
  display: inline-flex; align-items: center; gap: 7px; min-height: 40px; padding: 0 12px;
  border-radius: 999px; color: var(--text-2); font-size: 0.88rem; font-weight: 500; cursor: pointer; list-style: none;
  transition: color 200ms, background 200ms;
}
.lang > summary::-webkit-details-marker { display: none; }
.lang > summary:hover, .lang[open] > summary { color: var(--text); background: var(--card-hover); }
.lang .chev { transition: transform 250ms var(--ease); }
.lang[open] .chev { transform: rotate(180deg); }
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 10px); z-index: 10; min-width: 210px; margin: 0; padding: 6px;
  list-style: none; background: rgb(24 21 33 / 0.92); border: 1px solid var(--line-strong); border-radius: 18px;
  -webkit-backdrop-filter: blur(24px); backdrop-filter: blur(24px);
  box-shadow: 0 24px 60px -12px rgb(0 0 0 / 0.7);
  animation: pop-in 200ms var(--ease);
}
.lang--up .lang-menu { top: auto; bottom: calc(100% + 10px); left: 0; right: auto; }
.lang-menu a {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 11px 12px; border-radius: 12px; color: var(--text); font-size: 0.95rem;
}
.lang-menu a:hover { background: var(--card-hover); text-decoration: none; }
.lang-menu small { color: var(--text-3); font-size: 0.8rem; }
.lang-menu a[aria-current='page'] { background: var(--grad-soft); font-weight: 600; }
.lang-menu a[aria-current='page']::after {
  content: ''; width: 16px; height: 16px; flex: none; background: var(--rose);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3 8.5l3.2 3L13 4.5' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / contain no-repeat;
}
.lang-menu a[aria-current='page'] small { display: none; }

/* Mobile menu: the <details> toggles a glass panel under the pill, no JS needed. */
.menu { display: none; }
.menu > summary {
  display: grid; place-items: center; width: 44px; height: 44px; border-radius: 999px;
  cursor: pointer; list-style: none; color: var(--text); background: var(--card-hover);
}
.menu > summary::-webkit-details-marker { display: none; }
.menu .burger line { stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; transition: transform 300ms var(--ease); transform-origin: 9px 9px; }
.menu[open] .burger .l1 { transform: translateY(3.5px) rotate(45deg); }
.menu[open] .burger .l2 { transform: translateY(-3.5px) rotate(-45deg); }
.menu-panel {
  display: none; position: absolute; left: var(--gutter); right: var(--gutter); top: calc(100% + 10px);
  max-height: calc(100dvh - 100px); overflow-y: auto; padding: 12px 20px 24px;
  border: 1px solid var(--line-strong); border-radius: 28px; background: rgb(18 15 26 / 0.94);
  -webkit-backdrop-filter: blur(28px); backdrop-filter: blur(28px);
  box-shadow: 0 30px 80px -20px rgb(0 0 0 / 0.9);
}
.nav:has(.menu[open]) .menu-panel { display: block; animation: pop-in 250ms var(--ease); }
.menu-panel ul { margin: 0; padding: 0; list-style: none; }
.menu-panel li + li { border-top: 1px solid var(--line); }
.menu-panel li a { display: flex; align-items: center; justify-content: space-between; padding: 16px 4px; color: var(--text); font-size: 1.35rem; font-weight: 600; letter-spacing: -0.02em; }
.menu-panel li a::after { content: '→'; color: var(--text-3); font-weight: 400; }
.menu-panel li a:hover { text-decoration: none; }
.menu-panel .btn { width: 100%; margin-top: 16px; }

.segmented { display: flex; margin-top: 16px; padding: 4px; border-radius: 999px; background: rgb(255 255 255 / 0.06); }
.segmented a { flex: 1; padding: 10px 8px; border-radius: 999px; color: var(--text-2); font-size: 0.92rem; font-weight: 500; text-align: center; }
.segmented a:hover { text-decoration: none; color: var(--text); }
.segmented a[aria-current='page'] { background: var(--grad); color: #fff; box-shadow: 0 4px 16px -4px rgb(255 77 125 / 0.6); }

@media (max-width: 899px) {
  .nav-links-wrap, .nav-tools .lang, .nav-tools .btn { display: none; }
  .nav-tools { margin-left: auto; }
  .menu { display: block; }
}

/* ---------- Store badges ---------- */
.badges { display: flex; flex-wrap: wrap; gap: 12px; margin: 0; padding: 0; list-style: none; }
.badge {
  display: inline-flex; flex-direction: column; justify-content: center; min-width: 156px; min-height: 52px;
  padding: 6px 20px; border: 1px solid var(--line-strong); border-radius: 16px;
  background: rgb(255 255 255 / 0.04); color: var(--text); line-height: 1.15;
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  transition: transform 250ms var(--ease), border-color 250ms, background 250ms;
}
a.badge:hover { transform: translateY(-2px); border-color: rgb(255 255 255 / 0.3); text-decoration: none; }
.badge small { font-size: 0.7rem; color: var(--text-2); letter-spacing: 0; }
.badge strong { font-size: 1.08rem; font-weight: 600; letter-spacing: -0.02em; }
.badge.is-soon small { background: var(--grad); -webkit-background-clip: text; background-clip: text; color: transparent; font-weight: 700; }
.badges-pulse .badge { animation: ring 1.1s var(--ease) 1; }
@keyframes ring {
  0%, 100% { box-shadow: 0 0 0 0 rgb(255 77 125 / 0.55); }
  30% { box-shadow: 0 0 0 6px rgb(255 77 125 / 0.55); }
}

.chips { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 28px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 0.9rem; }
.chips li { display: inline-flex; align-items: center; gap: 7px; }
.chips svg { flex: none; color: var(--rose); }

/* ---------- iPhone ---------- */
/* One device for the hero demo and the feature screenshots, sized by --w and drawn in cqw so
   bezel, island, buttons and status bar scale together. */
.iphone {
  --w: 300px;
  container-type: inline-size;
  position: relative;
  width: min(100%, var(--w));
  /* 3.2cqw of bezel around a 402 x 874 pt (iPhone 17) screen, so screenshots fill it exactly. */
  aspect-ratio: 100 / 209.9;
  margin-inline: auto;
}
/* The body is a child so its own sizes can be in cqw too (container units never resolve against
   the container element itself). Titanium edge, thin black border, glass. */
.iphone-body {
  position: absolute; inset: 0; padding: 3.2cqw; border-radius: 16.7cqw;
  background: #050506;
  box-shadow:
    inset 0 0 0 0.45cqw #77737d,
    inset 0 0 0 0.6cqw #2c2a31,
    0 50px 100px -30px rgb(0 0 0 / 0.9);
}
.iphone-body::before {
  /* Brushed-titanium sheen on the frame band. */
  content: ''; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; padding: 0.45cqw;
  background: linear-gradient(150deg, #b7b3bd, #4c4952 18%, #2d2b31 45%, #6f6b76 70%, #3a3840);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  mask-composite: exclude;
}
/* Earpiece: the thin slit where the glass meets the frame, centred above the island. */
.iphone-speaker {
  position: absolute; z-index: 2; top: 1.05cqw; left: 50%; translate: -50% 0;
  width: 15cqw; height: 0.55cqw; border-radius: 1cqw;
  background: #1c1c21; box-shadow: inset 0 0.15cqw 0.2cqw #000, 0 0.1cqw 0 rgb(255 255 255 / 0.07);
}
.iphone-screen {
  position: relative; width: 100%; height: 100%; overflow: hidden;
  border-radius: 13.5cqw; background: #fff8f7; isolation: isolate;
}
.iphone-screen > img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.iphone-top { position: absolute; z-index: 5; inset: 0 0 auto; width: 100%; height: auto; pointer-events: none; fill: #000; color: #000; }
.iphone-top text { font: 600 16.8px -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'SF Pro', 'Segoe UI', Roboto, sans-serif; letter-spacing: -0.2px; font-feature-settings: 'case', 'tnum'; }
/* Side buttons barely stand proud of the frame, as on the real phone. */
.iphone-btn { position: absolute; width: 0.75cqw; background: linear-gradient(90deg, #2e2c33, #8d8a94 55%, #48454e); }
.iphone-btn.action, .iphone-btn.vol-up, .iphone-btn.vol-down { left: -0.5cqw; border-radius: 0.4cqw 0 0 0.4cqw; }
.iphone-btn.action { top: 18.5%; height: 4.6%; }
.iphone-btn.vol-up { top: 26%; height: 7.2%; }
.iphone-btn.vol-down { top: 35%; height: 7.2%; }
.iphone-btn.power, .iphone-btn.camera { right: -0.5cqw; border-radius: 0 0.4cqw 0.4cqw 0; transform: scaleX(-1); }
.iphone-btn.power { top: 27%; height: 10.5%; }
.iphone-btn.camera { top: 56%; height: 5.6%; right: -0.3cqw; width: 0.5cqw; background: linear-gradient(90deg, #1d1c21, #55525b); }
/* Content starts ~15 pt below the island (66 pt of 402), like an iOS screen with no nav bar. */
.iphone .gd { --gd-top: 15.4cqw; }
.iphone-home {
  position: absolute; z-index: 5; bottom: 1.9cqw; left: 50%; translate: -50% 0;
  width: 33cqw; height: 1.25cqw; border-radius: 99px; background: rgb(0 0 0 / 0.85); pointer-events: none;
}

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; overflow: hidden; margin-top: calc(-1 * (var(--nav-h) + 4px)); padding: calc(var(--nav-h) + clamp(48px, 8vw, 96px)) 0 clamp(64px, 8vw, 112px); }
/* Aurora: three blurred brand-coloured blobs drifting slowly behind everything, plus a fine grid
   that fades out towards the edges. */
.aurora { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.aurora span { position: absolute; border-radius: 50%; filter: blur(90px); opacity: 0.55; will-change: transform; }
.aurora .a1 { width: 52vw; height: 52vw; max-width: 760px; max-height: 760px; left: 42%; top: -18%; background: #ff4d7d; animation: drift-a 18s ease-in-out infinite alternate; }
.aurora .a2 { width: 46vw; height: 46vw; max-width: 680px; max-height: 680px; left: 62%; top: 22%; background: #7c5cff; animation: drift-b 22s ease-in-out infinite alternate; }
.aurora .a3 { width: 36vw; height: 36vw; max-width: 520px; max-height: 520px; left: -8%; top: 40%; background: #b94cf5; opacity: 0.28; animation: drift-a 26s ease-in-out infinite alternate-reverse; }
.aurora::after {
  content: ''; position: absolute; inset: 0;
  background-image:
    linear-gradient(rgb(255 255 255 / 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgb(255 255 255 / 0.045) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
  mask-image: radial-gradient(ellipse 70% 60% at 50% 40%, #000 20%, transparent 75%);
}
.hero::after { content: ''; position: absolute; inset: auto 0 0; height: 180px; z-index: -1; background: linear-gradient(transparent, var(--bg)); }
@keyframes drift-a { to { transform: translate3d(-8%, 10%, 0) scale(1.12); } }
@keyframes drift-b { to { transform: translate3d(10%, -8%, 0) scale(0.92); } }

.hero-grid { display: grid; gap: 64px; align-items: center; }
.hero-copy { min-width: 0; }
.hero h1 { margin-bottom: 24px; }
.hero .lead { max-width: 30em; margin-bottom: 36px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; }
.hero-demo { position: relative; min-width: 0; }
.hero-demo .iphone { --w: 340px; }
.hero-demo::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: 52%; width: 120%; aspect-ratio: 1; translate: -50% -50%;
  background: radial-gradient(closest-side, rgb(255 77 125 / 0.45), rgb(124 92 255 / 0.25) 55%, transparent);
  filter: blur(30px);
}
.hero-demo::before { transition: scale 500ms var(--ease), filter 500ms var(--ease); }

/* "Try the live demo". Where the phone sits beside the copy (≥1000px) the arrow turns to point at
   it and hovering lights the phone's glow; a click (site.js) plays .is-pinged instead of scrolling:
   a ring around the phone, a little wave through the cards, a nudge on the first ♥. */
.btn--demo .btn-arrow { transition: translate 250ms var(--ease), rotate 250ms var(--ease); }
.btn--demo:hover .btn-arrow { translate: 0 3px; }
@media (min-width: 1000px) {
  .btn--demo .btn-arrow { rotate: -90deg; }
  .btn--demo:hover .btn-arrow { translate: 4px 0; }
  .hero-grid:has(.btn--demo:hover) .hero-demo::before { scale: 1.12; filter: blur(30px) brightness(1.35); }
}
.hero-demo .iphone::after {
  content: ''; position: absolute; inset: 0; z-index: 7; border-radius: 16.7cqw; pointer-events: none; opacity: 0;
  box-shadow: 0 0 0 2px rgb(255 120 160 / 0.9), 0 0 48px 6px rgb(255 77 125 / 0.55);
}
.hero-demo.is-pinged .iphone { animation: phone-hello 800ms var(--ease); }
.hero-demo.is-pinged .iphone::after { animation: phone-ring 1100ms var(--ease) 2; }
/* gd-in stays first in the list so it isn't replayed when .is-pinged comes off (demo.css). */
.hero-demo.is-pinged .gd-pane-grid .gd-card { animation: gd-in 320ms var(--ease), card-hello 600ms var(--ease) calc(150ms + var(--i, 0) * 70ms); }
.hero-demo.is-pinged .gd-pane-grid .gd-card:first-child .gd-like { animation: like-tap 800ms ease-out 700ms 2; }
.gd-card:nth-child(2) { --i: 1; }
.gd-card:nth-child(3) { --i: 2; }
.gd-card:nth-child(4) { --i: 3; }
.gd-card:nth-child(5) { --i: 4; }
.gd-card:nth-child(6) { --i: 5; }
@keyframes phone-hello { 35% { scale: 1.025; rotate: -1deg; } 70% { scale: 1.01; rotate: 0.6deg; } }
@keyframes phone-ring { 0% { opacity: 0; scale: 1; } 25% { opacity: 1; } 100% { opacity: 0; scale: 1.06; } }
@keyframes card-hello { 45% { scale: 1.05; } }
@keyframes like-tap {
  0% { scale: 1; box-shadow: 0 0 0 0 rgb(255 120 160 / 0.8); }
  30% { scale: 1.2; }
  100% { scale: 1; box-shadow: 0 0 0 10px rgb(255 120 160 / 0); }
}
.demo-hint { margin: 28px 0 0; text-align: center; color: var(--text-2); font-size: 0.9rem; }
.demo-hint .arrow { display: inline-block; color: var(--rose); animation: nudge 1.6s ease-in-out infinite; }
@keyframes nudge { 50% { transform: translateY(-4px); } }

/* Floating glass notifications around the phone — decorative, aria-hidden. */
.float {
  position: absolute; z-index: 6; pointer-events: none; display: flex; align-items: center; gap: 10px;
  padding: 10px 14px 10px 10px; border: 1px solid var(--line-strong); border-radius: 18px;
  background: rgb(22 19 30 / 0.72); color: var(--text); font-size: 0.82rem; line-height: 1.25; white-space: nowrap;
  -webkit-backdrop-filter: blur(18px) saturate(160%); backdrop-filter: blur(18px) saturate(160%);
  box-shadow: 0 20px 50px -18px rgb(0 0 0 / 0.9);
  animation: bob 6s ease-in-out infinite;
}
.float img { width: 38px; height: 38px; border-radius: 50%; object-fit: cover; flex: none; }
.float b { display: block; font-weight: 600; }
.float small { display: block; color: var(--text-2); font-size: 0.76rem; max-width: 170px; overflow: hidden; text-overflow: ellipsis; }
.float .ico { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: 12px; background: var(--grad); color: #fff; }
/* Floats are placed against the phone itself (.phone-wrap) and overlap only its bezel, so they
   never cover the live demo's buttons. */
.phone-wrap { position: relative; width: min(100%, 340px); margin-inline: auto; }
.float--match { right: calc(100% - 22px); top: 15%; }
.float--msg { left: calc(100% - 22px); top: 36%; animation-delay: -2s; }
.float--verified { left: calc(100% - 22px); top: 62%; animation-delay: -4s; }
.float--near { display: none; animation-delay: -1s; }
@keyframes bob { 50% { transform: translateY(-10px); } }

@media (min-width: 1000px) {
  .hero-grid { grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 48px; }
}
@media (max-width: 999px) {
  .hero-copy { text-align: center; }
  .hero .lead { margin-inline: auto; }
  .hero-actions, .hero .chips { justify-content: center; }
}
/* Phones have no room beside the device: two small floats sit over its top corners instead. */
@media (max-width: 699px) {
  .float { font-size: 0.74rem; padding: 7px 10px 7px 7px; border-radius: 14px; }
  .float img, .float .ico { width: 30px; height: 30px; }
  .float small { display: none; }
  .float--match { right: auto; left: -10px; top: -22px; }
  .float--near { display: flex; left: auto; right: -10px; bottom: auto; top: 18%; }
  .float--msg, .float--verified { display: none; }
}
@media (max-width: 560px) {
  .hero-actions .btn { width: 100%; }
  .hero-actions .badges { width: 100%; justify-content: center; }
  .hero-actions .badges li { flex: 1; }
  .hero-actions .badge { width: 100%; min-width: 0; align-items: center; }
}

/* ---------- Marquee ---------- */
.marquee { overflow: hidden; padding-block: 22px; border-block: 1px solid var(--line); background: var(--bg-2);
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 10%, #000 90%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 40s linear infinite; }
.marquee ul { display: flex; flex: none; gap: 44px; margin: 0; padding: 0 22px; list-style: none; }
.marquee li { display: inline-flex; align-items: center; gap: 44px; color: var(--text-2); font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; white-space: nowrap; }
.marquee li::after { content: '✦'; font-size: 0.8rem; color: var(--pink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- How it works ---------- */
.steps { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; counter-reset: step; }
.step { padding: 36px 32px 34px; }
.step-icon {
  display: grid; place-items: center; width: 56px; height: 56px; margin-bottom: 28px; border-radius: 18px;
  background: var(--grad); color: #fff; box-shadow: 0 12px 30px -10px rgb(255 77 125 / 0.7), inset 0 1px 0 rgb(255 255 255 / 0.3);
}
.step-num { display: block; margin-bottom: 8px; color: var(--text-3); font-size: 0.85rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.step p { margin: 0; color: var(--text-2); }
@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 767px) {
  .step { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; padding: 24px 22px; }
  .step-icon { grid-row: span 3; width: 48px; height: 48px; margin: 0; border-radius: 15px; }
  .step-num { margin-bottom: 2px; }
  .step h3 { margin-bottom: 6px; }
}

/* ---------- Feature bento ---------- */
/* Desktop: an asymmetric bento grid. Below 900px: a swipeable, snapping row of the same cards. */
.bento { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.bento-card { display: flex; flex-direction: column; overflow: hidden; padding: 32px 32px 0; min-width: 0; }
.bento-card h3 { font-size: clamp(1.35rem, 2vw, 1.7rem); }
.bento-card p { margin: 0; color: var(--text-2); }
.bento-num { margin: 0 0 14px; color: var(--rose); font-size: 0.8rem; font-weight: 700; letter-spacing: 0.08em; }
.bento-media { flex: 1; display: flex; align-items: flex-start; justify-content: center; margin-top: 32px; min-height: 260px; }
.bento-media .iphone { --w: 250px; margin-bottom: -40%; }
.bento-card--grid .bento-media .iphone { --w: 330px; }
.lang-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0 0; padding: 0; list-style: none; }
.lang-chips li { padding: 7px 14px; border: 1px solid var(--line-strong); border-radius: 999px; background: var(--card); font-size: 0.9rem; font-weight: 500; }
/* Cursor spotlight (site.js sets --mx/--my on pointer move). */
[data-spotlight]::before {
  content: ''; position: absolute; inset: 0; z-index: 0; border-radius: inherit; pointer-events: none; opacity: 0;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 0%), rgb(255 77 125 / 0.14), transparent 60%);
  transition: opacity 300ms var(--ease);
}
[data-spotlight]:hover::before { opacity: 1; }
[data-spotlight] > * { position: relative; z-index: 1; }

@media (min-width: 900px) {
  .bento { grid-template-columns: repeat(6, minmax(0, 1fr)); }
  .bento-card { grid-column: span 2; }
  .bento-card--grid { grid-column: span 3; grid-row: span 2; }
  .bento-card--swipe, .bento-card--chat { grid-column: span 3; flex-direction: row; gap: 24px; padding: 32px 0 0 32px; }
  .bento-card--swipe > div:first-of-type, .bento-card--chat > div:first-of-type { flex: 1; padding-bottom: 32px; }
  .bento-card--swipe .bento-media, .bento-card--chat .bento-media { flex: none; width: 46%; margin-top: 0; min-height: 300px; overflow: hidden; }
  .bento-card--swipe .iphone, .bento-card--chat .iphone { --w: 220px; margin-bottom: 0; translate: 0 6%; }
  .bento-card--languages { grid-column: span 6; flex-direction: row; align-items: center; gap: 40px; padding: 40px 0 0 48px; }
  .bento-card--languages > div:first-of-type { flex: 1; padding-bottom: 40px; }
  .bento-card--languages .bento-media { flex: none; width: 320px; margin-top: 0; min-height: 300px; overflow: hidden; align-self: stretch; }
  .bento-card--languages .iphone { --w: 260px; }
}
@media (max-width: 899px) {
  .bento {
    grid-auto-flow: column; grid-auto-columns: min(84vw, 360px); gap: 14px;
    margin-inline: calc(-1 * var(--gutter)); padding: 4px var(--gutter) 8px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .bento::-webkit-scrollbar { display: none; }
  .bento-card { scroll-snap-align: start; padding: 28px 24px 0; }
  .bento-media { min-height: 300px; overflow: hidden; }
  .bento-media .iphone, .bento-card--grid .bento-media .iphone { --w: 230px; }
}
.bento-hint { display: none; margin: 18px 0 0; text-align: center; color: var(--text-3); font-size: 0.85rem; }
@media (max-width: 899px) { .bento-hint { display: block; } }

/* ---------- Privacy ---------- */
.privacy-card { display: grid; gap: 40px; padding: clamp(28px, 6vw, 72px); overflow: hidden; }
.privacy-card > * { min-width: 0; }
.privacy-card .link-more { white-space: normal; }
.privacy-card::after {
  content: ''; position: absolute; z-index: -1; right: -10%; top: -40%; width: 60%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(closest-side, rgb(124 92 255 / 0.35), transparent); filter: blur(20px);
}
.privacy-icon { width: 64px; height: 64px; margin-bottom: 28px; filter: drop-shadow(0 10px 30px rgb(255 77 125 / 0.5)); }
.privacy-card h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); }
.promises { display: grid; gap: 12px; align-content: center; margin: 0; padding: 0; list-style: none; }
.promises li {
  display: flex; align-items: center; gap: 14px; padding: 20px 22px; border: 1px solid var(--line); border-radius: 20px;
  background: rgb(255 255 255 / 0.03); font-size: 1.1rem; font-weight: 600;
}
.promises svg { flex: none; color: var(--rose); width: 24px; height: 24px; }
@media (min-width: 900px) { .privacy-card { grid-template-columns: 1.2fr 0.8fr; align-items: center; gap: 64px; } }

/* ---------- FAQ ---------- */
.faq-grid { display: grid; gap: 40px; }
.faq-aside h2 { margin-bottom: 20px; }
.faq-aside p { color: var(--text-2); }
.faq-list { display: grid; gap: 10px; }
.faq-list details { border: 1px solid var(--line); border-radius: 20px; background: var(--card); transition: background 250ms, border-color 250ms; }
.faq-list details[open] { background: var(--card-hover); border-color: var(--line-strong); }
.faq-list summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  padding: 22px 24px; cursor: pointer; list-style: none; font-size: 1.08rem; font-weight: 600; letter-spacing: -0.015em;
}
.faq-list summary::-webkit-details-marker { display: none; }
.faq-list summary::after {
  content: ''; flex: none; width: 30px; height: 30px; border-radius: 50%;
  background:
    linear-gradient(currentColor, currentColor) center / 12px 1.6px no-repeat,
    linear-gradient(currentColor, currentColor) center / 1.6px 12px no-repeat,
    rgb(255 255 255 / 0.07);
  color: var(--text); transition: transform 350ms var(--ease), background-color 250ms;
}
.faq-list details[open] summary::after { transform: rotate(135deg); }
.faq-list details p { margin: -4px 0 0; padding: 0 64px 24px 24px; color: var(--text-2); }
@media (min-width: 900px) {
  .faq-grid { grid-template-columns: 0.8fr 1.2fr; gap: 72px; }
  .faq-aside { position: sticky; top: calc(var(--nav-h) + 48px); align-self: start; }
}

/* ---------- Final CTA ---------- */
.cta-card { position: relative; overflow: hidden; padding: clamp(56px, 9vw, 112px) clamp(24px, 6vw, 72px); text-align: center; border-radius: 40px; border: 1px solid var(--line-strong);
  background:
    radial-gradient(60% 80% at 20% 0%, rgb(255 77 125 / 0.45), transparent 70%),
    radial-gradient(60% 80% at 85% 100%, rgb(124 92 255 / 0.5), transparent 70%),
    radial-gradient(40% 60% at 60% 30%, rgb(185 76 245 / 0.3), transparent 70%),
    #120e1a;
}
.cta-card::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgb(255 255 255 / 0.12) 1px, transparent 1px); background-size: 22px 22px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000, transparent 70%); mask-image: radial-gradient(ellipse at center, #000, transparent 70%);
}
.cta-card > * { position: relative; }
.cta-icon {
  width: 104px; height: 104px; margin: 0 auto 32px; padding: 14px; border-radius: 26px; background: #fff;
  box-shadow: 0 24px 60px -16px rgb(255 77 125 / 0.8), 0 0 0 8px rgb(255 255 255 / 0.06);
}
.cta-card h2 { max-width: 13em; margin-inline: auto; font-size: clamp(2.4rem, 6vw, 4.6rem); }
.cta-card .lead { max-width: 30em; margin: 0 auto 40px; color: rgb(246 244 248 / 0.78); }
.cta-card .badges { justify-content: center; }

/* ---------- Footer ---------- */
.footer { padding-block: 72px 40px; border-top: 1px solid var(--line); color: var(--text-2); font-size: 0.9rem; }
.footer-top { display: grid; gap: 40px; padding-bottom: 48px; }
.footer-brand p { max-width: 22em; margin: 14px 0 0; color: var(--text-3); }
.footer-cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 32px; }
.footer-cols h2 { margin: 0 0 10px; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: var(--text-3); }
:lang(th) .footer-cols h2 { letter-spacing: 0; }
.footer-cols ul { margin: 0; padding: 0; list-style: none; }
.footer-cols a { display: inline-block; padding-block: 8px; color: var(--text-2); }
.footer-cols a:hover { color: var(--text); text-decoration: none; }
.footer-bottom { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; padding-top: 24px; border-top: 1px solid var(--line); }
.footer-bottom p { margin: 0; color: var(--text-3); }
.footer .lang > summary { margin-left: -12px; }
@media (min-width: 900px) { .footer-top { grid-template-columns: 1fr 1.6fr; } }

/* ---------- Inner pages ---------- */
.page-glow { position: relative; isolation: isolate; overflow-x: clip; }
.page-glow::before {
  content: ''; position: absolute; z-index: -1; left: 50%; top: -260px; width: min(1100px, 140vw); height: 620px; translate: -50% 0;
  background: radial-gradient(closest-side, rgb(255 77 125 / 0.22), rgb(124 92 255 / 0.14) 60%, transparent);
  filter: blur(40px); pointer-events: none;
}
.page-head { padding-block: clamp(72px, 10vw, 128px) clamp(40px, 5vw, 64px); text-align: center; }
.page-head .lead { max-width: 32em; margin-inline: auto; }
.support-grid { display: grid; gap: 16px; padding-bottom: clamp(88px, 10vw, 140px); }
.card { padding: 36px 32px; }
.card h2 { font-size: 1.5rem; letter-spacing: -0.025em; }
.card p { color: var(--text-2); }
.card--accent {
  background:
    radial-gradient(70% 120% at 0% 0%, rgb(255 77 125 / 0.35), transparent 70%),
    radial-gradient(70% 120% at 100% 100%, rgb(124 92 255 / 0.35), transparent 70%), #120e1a;
  border-color: var(--line-strong);
}
.card--accent h2 { font-size: clamp(1.5rem, 4vw, 2.4rem); overflow-wrap: anywhere; }
@media (min-width: 768px) { .support-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } .card--accent { grid-column: 1 / -1; } }

/* ---------- Legal ---------- */
.legal-wrap { display: grid; gap: 40px; padding-block: clamp(48px, 7vw, 88px) clamp(88px, 10vw, 140px); }
.legal { min-width: 0; max-width: 740px; color: #dcd8e2; line-height: 1.75; }
.legal .crumbs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 28px; padding: 0; list-style: none; font-size: 0.85rem; color: var(--text-3); }
.crumbs li + li::before { content: '/'; margin-right: 6px; opacity: 0.6; }
.crumbs a { color: var(--text-2); }
.legal h1 { font-size: clamp(2rem, 6.5vw, 3.8rem); color: var(--text); hyphens: auto; overflow-wrap: break-word; }
.effective { margin: 0 0 20px; color: var(--text-2); font-size: 0.95rem; }
.draft {
  display: flex; align-items: center; gap: 10px; margin: 0 0 32px; padding: 12px 16px;
  border: 1px solid var(--line); border-radius: var(--r-s); background: var(--card); color: var(--text-2); font-size: 0.9rem; font-weight: 500;
}
.draft::before { content: ''; flex: none; width: 8px; height: 8px; border-radius: 99px; background: var(--grad); box-shadow: 0 0 10px var(--pink); }
.legal-note {
  margin: 0 0 32px; padding: 18px 20px; border: 1px solid var(--line-strong); border-radius: var(--r-m);
  background: var(--grad-soft); color: var(--text); font-weight: 500;
}
.legal-note p { margin: 0; }
.legal h2 { margin-top: 2.2em; padding-top: 1.3em; border-top: 1px solid var(--line); color: var(--text); font-size: clamp(1.5rem, 3vw, 2rem); letter-spacing: -0.025em; }
.legal h3 { margin-top: 1.6em; color: var(--text); font-size: 1.12rem; }
.legal strong { color: var(--text); }
.legal p, .legal li { overflow-wrap: break-word; }
.legal ul, .legal ol { padding-left: 1.3em; }
.legal li { margin-bottom: 0.5em; }
.legal li::marker { color: var(--rose); }
.table-wrap { overflow-x: auto; margin-bottom: 1.5em; border: 1px solid var(--line); border-radius: var(--r-s); }
.legal table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.legal th, .legal td { padding: 12px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.legal th + th, .legal td + td { border-left: 1px solid var(--line); }
.legal tr:last-child td { border-bottom: 0; }
.legal th { background: var(--card-hover); color: var(--text); font-weight: 600; }
.toc { font-size: 0.9rem; }
.toc ol { margin: 0; padding: 0; list-style: none; }
.toc li a { display: block; padding: 7px 0; color: var(--text-2); }
.toc li a:hover { color: var(--text); text-decoration: none; }
.toc--inline { margin: 0 0 8px; border: 1px solid var(--line); border-radius: var(--r-m); background: var(--card); }
.toc--inline summary { display: flex; justify-content: space-between; padding: 16px 18px; cursor: pointer; font-weight: 600; color: var(--text); list-style: none; }
.toc--inline summary::-webkit-details-marker { display: none; }
.toc--inline summary::after { content: '+'; color: var(--rose); font-weight: 400; transition: transform 250ms var(--ease); }
.toc--inline[open] summary::after { transform: rotate(45deg); }
.toc--inline ol { padding: 0 18px 14px; }
.toc--side { display: none; }
.toc-title { margin: 0 0 8px; color: var(--text); font-weight: 600; }
@media (min-width: 1024px) {
  .legal-wrap { grid-template-columns: minmax(0, 1fr) 250px; gap: 72px; }
  .toc--inline { display: none; }
  .toc--side {
    display: block; grid-column: 2; grid-row: 1; position: sticky; top: calc(var(--nav-h) + 40px); align-self: start;
    max-height: calc(100vh - var(--nav-h) - 80px); overflow-y: auto; padding-left: 18px; border-left: 1px solid var(--line);
  }
  .toc--side li a { padding: 5px 0; }
}

/* ---------- 404 ---------- */
.nf { padding-block: clamp(72px, 12vw, 150px); text-align: center; }
.nf-code { margin: 0 0 32px; font-size: clamp(7rem, 24vw, 13rem); font-weight: 800; line-height: 1; letter-spacing: -0.06em; }
.nf-blocks { display: grid; gap: 16px; max-width: 64rem; margin-inline: auto; }
.nf-blocks > div { padding: 32px 24px; border: 1px solid var(--line); border-radius: var(--r-l); background: var(--card); }
.nf-blocks h1, .nf-blocks h2 { font-size: 1.4rem; }
.nf-blocks .btn { margin-top: 4px; }
@media (min-width: 768px) { .nf-blocks { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

/* ---------- Motion ---------- */
@keyframes pop-in { from { opacity: 0; transform: translateY(-6px) scale(0.98); } }
/* Only once JS is known to run (lang-redirect.js swaps html.no-js for html.js), so content never
   stays hidden without it. */
.js .reveal { opacity: 0; transform: translateY(28px); filter: blur(6px); transition: opacity 900ms var(--ease), transform 900ms var(--ease), filter 900ms var(--ease); transition-delay: var(--delay, 0ms); }
.js .reveal.is-in { opacity: 1; transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  .js .reveal { opacity: 1; transform: none; filter: none; }
}
