:root {
  --mist: #EEF2F7;
  --mist-deep: #DCE4EE;
  --ink: #0E1A2B;
  --slate: #5B6B80;
  --line: #D3DCE8;
  --glass: rgba(255, 255, 255, .62);
  --delete: #FF5A5F;
  --keep: #2FBF8A;
  --dusk: linear-gradient(120deg, #FF8A5B, #F2609E 50%, #7B5CFF);
  --r-card: 22px;
  --r-pill: 999px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0; color: var(--ink); background: var(--mist);
  background-image: radial-gradient(60vw 50vw at 90% -10%, #E4DDFB 0%, transparent 60%),
                    radial-gradient(50vw 40vw at -10% 30%, #FBE3D8 0%, transparent 55%),
                    linear-gradient(180deg, var(--mist), var(--mist-deep));
  background-attachment: fixed;
  font: 400 17px/1.65 "IBM Plex Sans Thai", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: inherit; }
:focus-visible { outline: 3px solid #7B5CFF; outline-offset: 3px; border-radius: 8px; }
img, video { display: block; max-width: 100%; }

/* Hero: the swipe card stack is the one bold element on the page. */
.hero {
  max-width: 1180px; margin: 0 auto; padding: 56px 24px 40px;
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center;
}
.mark { width: 190px; height: auto; margin-bottom: 36px; }
h1 { font-size: clamp(38px, 5.2vw, 64px); line-height: 1.12; letter-spacing: -.5px; margin: 0 0 20px; font-weight: 700; }
.lead { font-size: 19px; color: var(--slate); max-width: 34em; margin: 0 0 30px; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.btn {
  display: inline-flex; align-items: center; min-height: 48px; padding: 0 24px; border-radius: var(--r-pill);
  font-weight: 600; text-decoration: none; background: var(--glass); border: 1px solid rgba(255,255,255,.8);
  backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.btn.primary { background: var(--ink); color: #fff; border-color: var(--ink); }

.stack { position: relative; height: 560px; }
.card {
  position: absolute; left: 50%; top: 10px; width: 250px; margin-left: -125px; border-radius: 34px;
  border: 7px solid var(--ink); background: var(--ink); box-shadow: 0 30px 60px rgba(14, 26, 43, .22);
}
.c3 { transform: translateX(96px) rotate(10deg); opacity: .9; }
.c2 { transform: translateX(-96px) rotate(-10deg); opacity: .95; }
.c1 { z-index: 2; }
.stamp {
  position: absolute; z-index: 3; left: 50%; top: 70px; margin-left: -110px; padding: 4px 18px; border-radius: 14px;
  border: 4px solid var(--delete); color: var(--delete); font-weight: 700; font-size: 34px; background: rgba(255,255,255,.85);
  transform: rotate(-14deg); opacity: 0;
}
.stack::after {
  content: ""; position: absolute; inset: auto 12% -6px; height: 26px; border-radius: 50%;
  background: var(--dusk); filter: blur(28px); opacity: .55; z-index: -1;
}
@media (prefers-reduced-motion: no-preference) {
  .c1 { animation: swipe 1.5s cubic-bezier(.5, 0, .2, 1) .9s both; }
  .stamp { animation: stamp 1.5s ease .9s both; }
}
@keyframes swipe {
  0%, 30% { transform: none; }
  45% { transform: translateX(-24px) rotate(-6deg); }
  100% { transform: translateX(-120%) rotate(-22deg); opacity: 0; }
}
@keyframes stamp {
  0%, 25% { opacity: 0; transform: rotate(-14deg) scale(1.3); }
  40% { opacity: 1; transform: rotate(-14deg) scale(1); }
  70% { opacity: 1; }
  100% { opacity: 0; transform: translateX(-160px) rotate(-26deg); }
}

.jump {
  position: sticky; top: 0; z-index: 10; display: flex; gap: 6px; overflow-x: auto; padding: 12px 24px;
  justify-content: center; background: rgba(238, 242, 247, .78);
  backdrop-filter: blur(16px); -webkit-backdrop-filter: blur(16px); border-bottom: 1px solid rgba(211, 220, 232, .7);
  scrollbar-width: none;
}
.jump a { white-space: nowrap; padding: 6px 14px; border-radius: var(--r-pill); text-decoration: none; font-size: 15px; font-weight: 500; color: var(--slate); }
.jump a:hover { background: #fff; color: var(--ink); }

main { max-width: 1180px; margin: 0 auto; padding: 0 24px 40px; }
section { padding-top: 64px; scroll-margin-top: 60px; }
.head { max-width: 46em; margin-bottom: 22px; }
h2 { font-size: 30px; line-height: 1.2; margin: 0 0 6px; font-weight: 700; }
.head p { margin: 0; color: var(--slate); }

.brief { max-width: 1180px; }
.brief .say { max-width: 46em; }
.say .promise { font-size: clamp(26px, 3.2vw, 36px); line-height: 1.3; font-weight: 700; margin: 6px 0 14px;
  background: var(--dusk); -webkit-background-clip: text; background-clip: text; color: transparent; }
.values { list-style: none; padding: 0; margin: 30px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.values li { border-top: 3px solid var(--ink); padding-top: 14px; }
.values h3 { margin: 0 0 4px; font-size: 22px; }
.values p { margin: 0; color: var(--slate); font-size: 16px; }
.say .one { font-size: 22px; line-height: 1.5; font-weight: 600; margin: 8px 0 14px; }
.say p { color: var(--slate); margin: 0; }
.say p.one { color: var(--ink); }
.rules { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; align-self: start; }
.rules > div { background: var(--glass); border: 1px solid rgba(255,255,255,.85); border-radius: var(--r-card); padding: 18px 20px; }
.rules h3 { margin: 0 0 6px; font-size: 17px; color: #0B7F61; }
.rules .no h3 { color: #C2334A; }
.rules ul { margin: 0; padding-left: 18px; font-size: 15px; color: var(--slate); }

.grid { display: grid; gap: 18px; }
.g-logo { grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.g-promo { grid-template-columns: repeat(auto-fill, minmax(205px, 1fr)); }
.g-video { grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); }
.g-store, .g-screens { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); }

.tile {
  margin: 0; display: flex; flex-direction: column; background: var(--glass); border: 1px solid rgba(255,255,255,.85);
  border-radius: var(--r-card); padding: 10px; backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px);
}
.frame { border-radius: 14px; overflow: hidden; background: #fff; display: grid; place-items: center; }
.tile.check .frame {
  min-height: 190px; padding: 24px;
  background: repeating-conic-gradient(#E9EEF4 0% 25%, #fff 0% 50%) 50% / 18px 18px;
}
.tile.dark .frame { min-height: 190px; padding: 24px; background: #1B2450; }
.tile.check img, .tile.dark img { max-height: 150px; width: auto; }
.frame video { width: 100%; background: #000; }
figcaption { display: flex; flex-direction: column; gap: 2px; padding: 10px 6px 8px; flex: 1; }
.name { font-weight: 600; font-size: 15px; line-height: 1.4; }
.meta { font-size: 13px; color: var(--slate); }
.dl {
  display: flex; justify-content: center; align-items: center; min-height: 44px; border-radius: var(--r-pill);
  background: var(--ink); color: #fff; text-decoration: none; font-weight: 600; font-size: 15px;
}
.dl:hover { background: #22324A; }

footer { max-width: 1180px; margin: 40px auto 0; padding: 30px 24px 50px; display: flex; gap: 14px; align-items: center; color: var(--slate); font-size: 14px; }
footer img { width: 36px; }

@media (max-width: 860px) {
  .hero { grid-template-columns: 1fr; padding-top: 32px; }
  .stack { height: 440px; }
  .card { width: 200px; margin-left: -100px; }
  .values { grid-template-columns: 1fr; gap: 18px; }
  .jump { justify-content: flex-start; }
}
@media (max-width: 480px) {
  .g-store, .g-screens { grid-template-columns: repeat(2, 1fr); }
  .g-logo, .g-promo, .g-video { grid-template-columns: 1fr; }
}
