/**
 * PrinaO Talk homepage — Figma masters
 * Mobile 36:1300 (inside 36:1290, no device shell)
 * Tablet portrait 36:1472 / 36:1471
 * Landscape 36:1664 / 36:1663
 */
*,
*::before,
*::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  background: #fff;
  color: #05070d;
  font-family: Inter, "Noto Sans Thai", sans-serif;
}

.skip-link {
  position: absolute;
  top: -100px;
  left: 16px;
  background: #0866f5;
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  z-index: 10000;
  text-decoration: none;
  font-weight: 600;
}
.skip-link:focus { top: 16px; }

.s01-site {
  width: 100%;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: #fff;
}

.s01-hero {
  position: relative;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: clamp(420px, 52vw, 580px);
}
.s01-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.s01-hero-bg img { width: 100%; height: 100%; object-fit: cover; display: block; }
.s01-hero-bg::after { content: ""; position: absolute; inset: 0; background: rgba(255,255,255,.85); }

.s01-nav {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  height: 72px;
  padding: 0 clamp(16px, 4vw, 158px);
  background: rgba(255,255,255,.95);
  flex-shrink: 0;
  z-index: 2;
}
.s01-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  flex-shrink: 0;
}
.s01-brand img {
  width: 48px;
  height: 48px;
  object-fit: cover;
  border-radius: 13px;
  display: block;
}
.s01-wordmark {
  font-family: Inter, sans-serif;
  font-weight: 800;
  font-size: 28px;
  line-height: 1;
  color: #05070d;
  white-space: nowrap;
}
.s01-wordmark span { color: #0866f5; }

.s01-nav-links {
  display: none;
  align-items: center;
  gap: clamp(16px, 2.2vw, 34px);
}
.s01-nav-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  color: #49618c;
  font-family: "Noto Sans Thai", sans-serif;
  font-weight: 500;
  font-size: clamp(14px, 1.1vw, 16px);
  white-space: nowrap;
}
.s01-nav-item.is-active { color: #0866f5; font-weight: 700; }
.s01-nav-item .s01-nav-bar {
  width: 42px;
  height: 3px;
  border-radius: 2px;
  background: #0866f5;
}

.s01-actions { display: flex; align-items: center; gap: 14px; }
.s01-icon-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: none;
  border: 0;
  padding: 0;
  cursor: pointer;
}
.s01-lang {
  display: flex;
  align-items: center;
  gap: 2px;
  font-family: Inter, sans-serif;
  font-weight: 700;
  font-size: 15px;
  color: #071033;
}
.s01-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  object-fit: cover;
  display: block;
}
.s01-btn-login,
.s01-btn-staff {
  display: none;
  align-items: center;
  gap: 8px;
  height: 46px;
  padding: 0 16px;
  border: 1.5px solid #0866f5;
  border-radius: 12px;
  text-decoration: none;
  font-size: 15px;
  background: transparent;
}
.s01-btn-login { color: #071033; font-family: "Noto Sans Thai", sans-serif; }
.s01-btn-staff { color: #0866f5; font-family: Inter, sans-serif; font-weight: 500; font-size: 14px; }
.s01-desktop-only { display: none; }

.s01-hero-body {
  position: relative;
  display: flex;
  flex: 1;
  min-height: 0;
  gap: clamp(8px, 2vw, 22px);
  padding: clamp(12px, 2vw, 18px) clamp(16px, 8vw, 163px) clamp(12px, 2vw, 16px) clamp(20px, 10vw, 163px);
  overflow: hidden;
}
.s01-copy {
  display: flex;
  flex-direction: column;
  gap: clamp(8px, 1.2vw, 14px);
  width: min(100%, 500px);
  flex-shrink: 0;
  z-index: 1;
}
.s01-eyebrow {
  align-self: flex-start;
  background: rgba(229,241,255,.8);
  color: #0866f5;
  font-family: Inter, sans-serif;
  font-weight: 500;
  font-size: clamp(12px, 1vw, 15px);
  border-radius: 999px;
  padding: 6px 14px;
  margin: 0;
}
.s01-title {
  font-family: Inter, sans-serif;
  font-weight: 900;
  font-size: clamp(42px, 6.2vw, 72px);
  line-height: .9;
  color: #05070d;
  margin: 0;
}
.s01-title span { color: #0866f5; }
.s01-tagline {
  font-family: "Noto Sans Thai", sans-serif;
  font-weight: 800;
  font-size: clamp(26px, 3.2vw, 38px);
  line-height: 1.05;
  color: #05070d;
  margin: 0;
}
.s01-desc {
  font-family: "Noto Sans Thai", sans-serif;
  font-size: clamp(16px, 1.4vw, 21px);
  line-height: 1.45;
  color: #49618c;
  margin: 0;
}
.s01-cta {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 22px;
  width: min(242px, 100%);
  height: 54px;
  background: #0866f5;
  color: #fff;
  text-decoration: none;
  border-radius: 999px;
  font-family: "Noto Sans Thai", sans-serif;
  font-weight: 600;
  font-size: 23px;
}
.s01-benefits {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.s01-benefit {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: "Noto Sans Thai", sans-serif;
  font-size: 13px;
  color: #49618c;
}
.s01-benefit + .s01-benefit {
  padding-left: 20px;
  border-left: 1px solid #cbe7fa;
}

.s01-media {
  position: relative;
  flex: 1;
  min-width: 0;
  min-height: 220px;
}
.s01-companion {
  position: absolute;
  left: 0;
  bottom: -10px;
  width: min(100%, 520px);
  height: auto;
  max-height: 110%;
  object-fit: cover;
  object-position: top center;
  pointer-events: none;
}
.s01-phone-wrap {
  position: absolute;
  right: 0;
  bottom: -10px;
  z-index: 3;
}
.s01-phone {
  width: min(200px, 42vw);
  height: min(318px, 70vw);
  box-shadow: 0 10px 30px rgba(20,77,165,.12);
  border-radius: 30px;
  overflow: hidden;
  cursor: pointer;
}
.hero-phone-preview__image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.s01-phone-head { display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; }
.s01-phone-brand { display: flex; align-items: center; gap: 6px; }
.s01-phone-brand img { width: 28px; height: 28px; border-radius: 8px; object-fit: cover; }
.s01-phone-brand p { margin: 0; font-family: Inter, sans-serif; font-weight: 700; font-size: 11px; color: #fff; }
.s01-phone-head > img { width: 28px; height: 28px; border-radius: 50%; object-fit: cover; }
.s01-phone-search {
  background: #15213b;
  display: flex;
  align-items: center;
  gap: 6px;
  height: 27px;
  padding: 0 8px;
  border-radius: 10px;
  flex-shrink: 0;
  min-width: 0;
}
.s01-phone-search img { flex-shrink: 0; }
.s01-phone-search p {
  margin: 0;
  font-size: 8px;
  color: #b5c0d2;
  font-family: "Noto Sans Thai", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s01-filters { display: flex; gap: 5px; overflow: hidden; flex-shrink: 0; }
.s01-chip { border-radius: 10px; padding: 5px 8px; font-size: 8px; font-family: "Noto Sans Thai", sans-serif; color: #fff; white-space: nowrap; }
.s01-chip.is-on { background: #0866f5; }
.s01-chip.is-off { background: #172747; }
.s01-chip-more { display: none; }
.s01-convo { display: flex; align-items: center; gap: 8px; flex-shrink: 0; min-width: 0; }
.s01-convo img:first-child { width: 29px; height: 29px; border-radius: 50%; object-fit: cover; flex-shrink: 0; }
.s01-convo-copy { flex: 1; min-width: 0; }
.s01-convo-copy .name {
  margin: 0;
  font-size: 8px;
  color: #fff;
  font-family: "Noto Sans Thai", sans-serif;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s01-convo-copy .preview { margin: 0; font-size: 7px; color: #a9b9d1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.s01-status {
  display: inline-block;
  max-width: 100%;
  margin-top: 1px;
  padding: 0 5px;
  border: 1px solid #3dd68c;
  border-radius: 999px;
  color: #3dd68c;
  font-size: 6px;
  font-family: "Noto Sans Thai", sans-serif;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.s01-convo-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 3px;
  flex-shrink: 0;
}
.s01-time { font-size: 6px; color: #8ea0bd; font-family: Inter, sans-serif; line-height: 1; }
.s01-unread {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 12px;
  height: 12px;
  padding: 0 3px;
  border-radius: 999px;
  background: #ff202d;
  color: #fff;
  font-size: 6px;
  font-family: Inter, sans-serif;
  font-weight: 700;
  line-height: 1;
}
.s01-unread.is-dot {
  min-width: 8px;
  width: 8px;
  height: 8px;
  padding: 0;
  background: #0866f5;
  font-size: 0;
}
.s01-phone > .s01-convo:nth-child(n+8) { display: none; }

.s01-why {
  padding: clamp(16px, 2vw, 24px) clamp(16px, 4vw, 48px) clamp(16px, 2vw, 18px);
  display: flex;
  flex-direction: column;
  gap: clamp(10px, 1.4vw, 14px);
  background: linear-gradient(180deg, #f8fdff 0%, #e5f7ff 50%, #f9efff 100%);
}
.s01-why-h { text-align: center; font-family: "Noto Sans Thai", sans-serif; }
.s01-why-h h2 { margin: 0; color: #05070d; font-weight: 400; font-size: clamp(28px, 3vw, 37px); line-height: 1.05; }
.s01-why-h h2 .b { color: #0866f5; }
.s01-why-h h2 .p { color: #9b20f6; }
.s01-why-h p { margin: 0; color: #49618c; font-size: clamp(13px, 1.2vw, 17px); }

.s01-fgrid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.s01-fcard {
  background: rgba(255,255,255,.91);
  border: 1px solid #fff;
  border-radius: 18px;
  overflow: hidden;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.s01-fimg {
  height: 90px;
  min-height: 80px;
  border-radius: 14px;
  overflow: hidden;
  position: relative;
  flex-shrink: 0;
}
.s01-fimg img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.s01-fcopy { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.s01-fcard h3 {
  margin: 0;
  font-family: "Noto Sans Thai", sans-serif;
  font-weight: 700;
  font-size: clamp(15px, 1.3vw, 19px);
  line-height: 1.22;
  color: #1936f1;
}
.s01-fcard p {
  margin: 0;
  font-family: "Noto Sans Thai", sans-serif;
  font-size: clamp(12px, 1vw, 14px);
  line-height: 1.35;
  color: #49618c;
}

.s01-eco {
  padding: clamp(12px, 1.6vw, 20px) clamp(16px, 3vw, 42px) clamp(10px, 1.4vw, 16px);
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: rgba(234,248,255,.96);
}
.s01-eco .s01-why-h h2 { font-size: clamp(26px, 2.6vw, 32px); }
.s01-erow {
  display: flex;
  align-items: stretch;
  gap: 10px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 4px;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}
.s01-egrid,
.s01-erow-line {
  display: contents;
}
.s01-ecard {
  margin: 0;
  padding: 0;
  background: transparent;
  border-radius: 18px;
  flex: 0 0 168px;
  width: 168px;
  aspect-ratio: 1 / 1;
  overflow: hidden;
}
.s01-ecard picture {
  display: block;
  width: 100%;
  height: 100%;
}
.s01-eart {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  display: block;
}
.s01-ecard--ai {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #eaf8ff;
}
.s01-ecard--ai picture {
  width: 90%;
  height: 90%;
}
.s01-ecard--ai .s01-eart {
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.s01-ecopy { display: none; }

.s01-nav-links.open {
  display: flex;
  position: absolute;
  top: 72px;
  left: 0;
  right: 0;
  flex-direction: column;
  gap: 12px;
  padding: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(8,102,245,.12);
  z-index: 5;
}

@media (min-width: 641px) and (orientation: portrait) {
  .s01-nav { height: 76px; padding: 0 28px; }
  .s01-nav-links { display: flex; }
  .s01-desktop-only { display: flex; }
  .s01-avatar { width: 43px; height: 43px; }
  .s01-hero { min-height: 580px; }
  .s01-hero-body { padding: 8px 24px 16px 38px; }
  .s01-copy { width: min(430px, 46%); }
  .s01-companion { width: 460px; bottom: -36px; }
  .s01-phone { width: 160px; height: 224px; border-radius: 38px; }
  .s01-phone-brand img,
  .s01-phone-head > img { width: 18px; height: 18px; }
  .s01-phone-brand p { font-size: 8px; }
  .s01-phone-search { height: 18px; padding: 0 6px; border-radius: 8px; gap: 4px; }
  .s01-phone-search img { width: 8px; height: 8px; }
  .s01-phone-search p,
  .s01-chip,
  .s01-convo-copy .name { font-size: 6px; }
  .s01-chip { padding: 2px 5px; border-radius: 6px; }
  .s01-convo { gap: 5px; }
  .s01-convo img:first-child { width: 18px; height: 18px; }
  .s01-convo-copy .preview,
  .s01-status,
  .s01-time { font-size: 5px; }
  .s01-status { padding: 0 4px; }
  .s01-unread { min-width: 9px; height: 9px; font-size: 5px; }
  .s01-unread.is-dot { min-width: 6px; width: 6px; height: 6px; }
  .s01-phone > .s01-convo:nth-child(n+7) { display: none; }
  .s01-fgrid { gap: 14px; }
  .s01-fcard { flex-direction: row; align-items: flex-start; }
  .s01-fimg { width: 220px; height: auto; min-height: 160px; }
  .s01-erow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    justify-content: space-between;
    gap: 10px;
    overflow: visible;
    padding: 0;
  }
  .s01-ecard {
    width: auto;
    min-width: 0;
    flex: none;
  }
}

@media (min-width: 641px) and (orientation: landscape) {
  .s01-nav { height: 76px; padding: 0 clamp(40px, 10vw, 158px); }
  .s01-nav-links { display: flex; }
  .s01-desktop-only { display: flex; }
  .s01-avatar { width: 43px; height: 43px; }
  .s01-hero { min-height: 560px; height: 560px; max-height: none; }
  .s01-copy { width: min(500px, 42%); }
  .s01-companion { width: min(560px, 78%); bottom: auto; top: 12px; left: -8px; height: 448px; max-height: none; object-fit: contain; object-position: center bottom; }
  .s01-phone-wrap { right: 0; top: 50%; bottom: auto; transform: translateY(-50%); z-index: 3; }
  .s01-phone { width: 220px; height: 430px; border-radius: 34px; }
  .s01-fgrid { grid-template-columns: repeat(4, 1fr); }
  .s01-fcard { flex-direction: column; padding: 10px; gap: 7px; }
  .s01-fimg { width: 100%; height: 83px; }
  .s01-erow {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    align-self: center;
    flex: none;
    width: 1440px;
    max-width: 100%;
    height: auto;
    min-height: 0;
    gap: 10px;
    padding: 0;
    overflow: visible;
  }
  .s01-ecard,
  .s01-ecard--ai {
    display: block;
    flex: 0 1 280px;
    width: 280px;
    height: auto;
    min-width: 0;
    max-width: 280px;
    padding: 0;
    aspect-ratio: 280 / 330;
    background: transparent;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
  }
  .s01-ecard--home { order: 1; }
  .s01-ecard--ai { order: 2; }
  .s01-ecard--talk { order: 3; }
  .s01-ecard--discover { order: 4; }
  .s01-ecard--market { order: 5; }
  .s01-ecard picture,
  .s01-ecard--ai picture {
    display: block;
    width: 100%;
    height: 100%;
  }
  .s01-ecard .s01-eart,
  .s01-ecard--ai .s01-eart {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .s01-ecopy { display: none; }
}

@media (max-width: 640px) {
  .s01-benefit + .s01-benefit { padding-left: 0; border-left: 0; }
  .s01-hero { min-height: 500px; }
  .s01-copy { width: min(420px, 58%); }
  .s01-phone { width: 200px; height: 318px; }
}

.phone-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 9999;
  background: rgba(9, 13, 22, 0.82);
  backdrop-filter: blur(12px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}
.phone-modal-backdrop.open { opacity: 1; pointer-events: auto; }
.phone-modal-dialog { position: relative; max-height: 88vh; max-width: 90vw; }
.phone-modal-close {
  position: absolute;
  top: -12px;
  right: -12px;
  width: 34px;
  height: 34px;
  background: rgba(255,255,255,.95);
  border: 1px solid rgba(0,0,0,.12);
  border-radius: 999px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 10;
}
.phone-modal-img {
  max-width: clamp(260px, 30vw, 360px);
  max-height: 84vh;
  object-fit: contain;
  filter: drop-shadow(0 25px 60px rgba(0,0,0,.65));
}

/* Latest master revisions: 36:1290, 36:1471, 36:1663 */
.s01-copy-tablet,
.s01-copy-landscape { display: none; }

@media (max-width: 640px) {
  .s01-hero { height: 63.452vw; min-height: 0; }
  .s01-nav { height: 9.137vw; padding: 0 3.299vw; gap: 1.523vw; }
  .s01-brand { gap: 1.269vw; }
  .s01-brand img { width: 6.091vw; height: 6.091vw; border-radius: 1.65vw; }
  .s01-wordmark { font-size: 3.553vw; }
  .s01-actions { gap: 2.03vw; }
  .s01-icon-btn img { width: 3.553vw; height: 3.553vw; }
  .s01-actions .s01-icon-btn:first-child img { width: 3.173vw; height: 3.173vw; }
  .s01-avatar { width: 4.822vw; height: 4.822vw; }

  .s01-hero-body {
    gap: 1.015vw;
    padding: 2.284vw 2.538vw 2.03vw 3.553vw;
  }
  .s01-copy { width: 53.299vw; gap: 1.269vw; }
  .s01-eyebrow { padding: .761vw 1.777vw; font-size: 1.65vw; }
  .s01-title { font-size: 7.36vw; }
  .s01-tagline { font-size: 4.315vw; }
  .s01-desc { font-size: 2.538vw; }
  .s01-cta {
    width: 30.711vw;
    height: 6.853vw;
    gap: 2.792vw;
    font-size: 2.919vw;
  }
  .s01-cta img { width: 3.299vw; height: 3.299vw; }
  .s01-benefits { flex-wrap: nowrap; gap: 2.538vw; overflow: hidden; }
  .s01-benefit { gap: 1.015vw; font-size: 1.65vw; white-space: nowrap; }
  .s01-benefit img { width: 3.046vw; height: 3.046vw; }
  .s01-benefit + .s01-benefit {
    padding-left: 2.538vw;
    border-left: .127vw solid #cbe7fa;
  }

  .s01-media { min-height: 0; overflow: visible; }
  .s01-media > picture {
    position: absolute;
    left: -21.154%;
    top: 0;
    width: 128.205%;
    height: 100%;
    z-index: 4;
    overflow: hidden;
    pointer-events: none;
  }
  .s01-companion {
    position: absolute;
    inset: auto;
    left: -24.19%;
    top: -5.77%;
    width: 161.29%;
    height: 192.31%;
    max-width: none;
    max-height: none;
    object-fit: fill;
  }
  .s01-phone-wrap { right: 0; bottom: 0; z-index: 2; }
  .s01-phone {
    width: 17.766vw;
    height: 28.299vw;
    border-radius: 3.807vw;
  }
  .s01-phone-brand { gap: .761vw; }
  .s01-phone-brand img,
  .s01-phone-head > img { width: 3.553vw; height: 3.553vw; }
  .s01-phone-brand p { font-size: 1.396vw; }
  .s01-phone-search { height: 3.426vw; padding: 0 1.015vw; border-radius: 1.269vw; gap: .761vw; }
  .s01-phone-search img { width: 1.65vw; height: 1.65vw; }
  .s01-phone-search p,
  .s01-chip,
  .s01-convo-copy .name { font-size: 1.015vw; }
  .s01-chip { padding: .381vw .761vw; border-radius: .761vw; }
  .s01-convo-copy .preview { font-size: .888vw; }
  .s01-status,
  .s01-time { font-size: .761vw; }
  .s01-status { padding: 0 .508vw; }
  .s01-convo { gap: 1.015vw; }
  .s01-convo img:first-child { width: 3.68vw; height: 3.68vw; }
  .s01-unread { min-width: 1.523vw; height: 1.523vw; font-size: .761vw; padding: 0 .381vw; }
  .s01-unread.is-dot { min-width: 1.015vw; width: 1.015vw; height: 1.015vw; }
  .s01-phone > .s01-convo:nth-child(n+7) { display: none; }

  .s01-why {
    min-height: 88.832vw;
    padding: 3.046vw 2.792vw 2.792vw;
    gap: 2.03vw;
  }
  .s01-why-h h2 { font-size: 5.076vw; }
  .s01-why-h p { font-size: 2.411vw; }
  .s01-fgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.777vw;
  }
  .s01-fcard {
    min-height: 35.089vw;
    padding: 1.777vw;
    gap: 1.269vw;
    border-radius: 2.284vw;
  }
  .s01-fimg {
    width: 100%;
    height: 25.381vw;
    min-height: 22.843vw;
    border-radius: 1.777vw;
  }
  .s01-fcopy { gap: .761vw; }
  .s01-fcard h3 { font-size: 2.538vw; line-height: 1.22; }
  .s01-fcard p { font-size: 2.03vw; line-height: 1.4; }

  .s01-eco {
    min-height: 0;
    padding: 2.538vw 3.046vw 2.03vw;
    gap: 1.777vw;
  }
  .s01-eco .s01-why-h h2 { font-size: 4.569vw; }
  .s01-eco .s01-why-h p { font-size: 2.03vw; }
  .s01-erow { gap: 1.269vw; }
  .s01-ecard {
    flex-basis: 140px;
    width: 140px;
    aspect-ratio: 140 / 210;
    border-radius: 12px;
  }
  .s01-ecard--ai picture {
    width: 100%;
    height: 100%;
  }
}

@media (min-width: 641px) and (orientation: portrait) {
  .s01-copy-mobile,
  .s01-copy-landscape { display: none; }
  .s01-copy-tablet { display: inline; }

  .s01-hero { height: 56.641vw; min-height: 0; max-height: none; }
  .s01-why {
    min-height: 68.359vw;
    padding: 2.344vw 2.93vw;
    gap: 1.563vw;
  }
  .s01-why-h h2 { font-size: 4.102vw; }
  .s01-why-h p { font-size: 1.855vw; }
  .s01-fgrid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1.367vw;
  }
  .s01-fcard {
    min-height: 26.807vw;
    padding: 1.563vw;
    gap: 1.367vw;
    flex-direction: row;
  }
  .s01-fimg {
    width: 29.297vw;
    height: auto;
    min-height: 21.484vw;
    align-self: stretch;
    flex-shrink: 0;
  }
  .s01-fcopy { gap: .977vw; }
  .s01-fcard h3 { font-size: 2.148vw; }
  .s01-fcard p { font-size: 1.563vw; line-height: 1.45; }

  .s01-eco {
    min-height: 0;
    padding: 1.953vw 2.344vw 1.563vw;
    gap: 1.367vw;
  }
  .s01-eco .s01-why-h h2 { font-size: 3.516vw; }
  .s01-eco .s01-why-h p { font-size: 1.563vw; }
  .s01-erow { gap: .977vw; }
  .s01-ecard { border-radius: 1.758vw; }
}

@media (min-width: 641px) and (orientation: landscape) {
  .s01-copy-mobile,
  .s01-copy-tablet { display: none; }
  .s01-copy-landscape { display: inline; }

  .s01-hero { height: 560px; min-height: 560px; max-height: none; }
  .s01-media { overflow: visible; min-height: 0; }
  .s01-media > picture {
    position: absolute;
    left: -8px;
    top: 12px;
    width: min(560px, 78%);
    height: 448px;
    z-index: 2;
    pointer-events: none;
  }
  .s01-companion {
    position: absolute;
    inset: 0;
    left: auto;
    bottom: auto;
    width: 100%;
    height: 100%;
    max-height: none;
    object-fit: contain;
    object-position: center bottom;
  }
  .s01-phone-wrap {
    right: 0;
    top: 50%;
    bottom: auto;
    transform: translateY(-50%);
    z-index: 3;
  }
  .s01-phone { width: 220px; height: 430px; border-radius: 34px; }
  .s01-chip-more { display: inline; }
  .s01-phone > .s01-convo:nth-child(n+8) { display: flex; }
  .s01-phone > .s01-convo:nth-child(n+11) { display: none; }
  .s01-why {
    min-height: 27.995vw;
    padding: 1.302vw 3.125vw;
    gap: .781vw;
  }
  .s01-why-h h2 { font-size: 2.344vw; line-height: 1.1; }
  .s01-why-h p { font-size: .977vw; }
  .s01-fgrid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: .781vw;
  }
  .s01-fcard {
    min-height: 20.508vw;
    padding: .911vw;
    gap: .651vw;
  }
  .s01-fimg { height: 13.021vw; min-height: 11.719vw; }
  .s01-fcopy { gap: .391vw; }
  .s01-fcard h3 { font-size: 1.302vw; line-height: 1.3; }
  .s01-fcard p { font-size: 1.042vw; line-height: 1.5; }

  .s01-eco { padding-top: clamp(10px, 1.042vw, 16px); }
  .s01-eco .s01-why-h h2 { font-size: 1.823vw; line-height: 1.1; }
  .s01-eco .s01-why-h p { font-size: .846vw; }
}

@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .s01-erow {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: center;
    width: 976px;
    max-width: 100vw;
    height: auto;
    padding: 0;
    gap: 16px;
    overflow: visible;
    position: relative;
    left: 50%;
    transform: translateX(-50%);
  }
  .s01-ecard,
  .s01-ecard--ai {
    display: block;
    flex: 0 0 182.4px;
    width: 182.4px;
    height: auto;
    min-width: 0;
    max-width: calc((100vw - 64px) / 5);
    aspect-ratio: 961 / 1536;
    border: 0;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: none;
    background: transparent;
  }
  .s01-ecard picture,
  .s01-ecard--ai picture {
    display: block;
    width: 100%;
    height: 100%;
  }
  .s01-ecard .s01-eart,
  .s01-ecard--ai .s01-eart {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
  }
  .s01-ecopy { display: none; }
}

@media (min-width: 1280px) and (orientation: landscape) and (hover: hover) and (pointer: fine) {
  .s01-eco {
    padding-left: 3.125vw;
    padding-right: 3.125vw;
  }
  .s01-erow {
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    align-items: center;
    width: 100%;
    max-width: none;
    gap: max(10px, .694vw);
  }
  .s01-ecard,
  .s01-ecard--ai {
    flex: none;
    width: 100%;
    max-width: none;
  }
}

.s01-site { padding-bottom: calc(100vw * 148 / 1672); }

.site-footer {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  aspect-ratio: 1672 / 148;
  z-index: 1000;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
}
.site-footer__inner {
  position: relative;
  height: 100%;
  aspect-ratio: 1672 / 148;
  max-width: 100%;
}
.site-footer__artwork {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
}
.site-footer__cta {
  position: absolute;
  left: 67.64%;
  top: 19.59%;
  width: 14.71%;
  height: 44.60%;
  border-radius: 9999px;
  cursor: pointer;
  z-index: 2;
  text-decoration: none;
  -webkit-tap-highlight-color: transparent;
  outline: none;
  transition: transform 220ms cubic-bezier(0.16, 1, 0.3, 1),
              box-shadow 220ms cubic-bezier(0.16, 1, 0.3, 1),
              background-color 180ms ease;
  will-change: transform;
}
.site-footer__cta:focus-visible {
  outline: 2px solid #0866f5;
  outline-offset: 2px;
}
/* Touch & mobile tap / active feedback (Tablet + Mobile) */
.site-footer__cta:active,
.site-footer__cta.is-pressed {
  transform: scale(0.97);
  background-color: rgba(8, 102, 245, 0.22);
  transition-duration: 80ms;
}

@media (min-width: 1280px) and (orientation: landscape) and (hover: hover) and (pointer: fine) {
  .s01-site { padding-bottom: clamp(64px, 4.6875vw, 90px); }
  .site-footer {
    height: clamp(64px, 4.6875vw, 90px);
    aspect-ratio: auto;
    background: linear-gradient(180deg, #fdfcfe 0%, #eee0fc 16%, #d6d2fc 50%, #cde0fc 100%);
  }
}

.page-end-legal-time {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 100%;
  min-height: 80px;
  padding: 12px clamp(16px, 3vw, 42px);
  background: #f8faff;
  border-top: 1px solid #dce7ff;
  font-family: Inter, sans-serif;
  line-height: normal;
  text-align: center;
}
.page-end-legal-brand {
  font-weight: 600;
  font-size: 14px;
  color: #1a3a8f;
}
.page-end-legal-meta {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 2px 16px;
  margin: 0;
  font-weight: 400;
  font-size: 11px;
  color: #596783;
}
.page-end-legal-meta > span { white-space: nowrap; }
.page-end-legal-clock {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}

@media (max-width: 640px) {
  .page-end-legal-time { min-height: 0; padding: 12px max(12px, 3.046vw); }
  .page-end-legal-brand { font-size: 13px; }
  .page-end-legal-meta { gap: 2px 12px; font-size: 10px; }
}

@media (min-width: 641px) and (orientation: portrait) {
  .page-end-legal-time { min-height: 96px; padding: 16px clamp(24px, 3.125vw, 32px); }
  .page-end-legal-brand { font-size: 15px; }
}

@media (min-width: 1280px) and (orientation: landscape) and (hover: hover) and (pointer: fine) {
  .page-end-legal-time {
    padding-left: 3.125vw;
    padding-right: 3.125vw;
  }
}

.rotate-lock { display: none; }

@media (orientation: landscape) and (max-height: 500px) and (hover: none) and (pointer: coarse) {
  .s01-site { padding-bottom: calc(100vw * 148 / 1672 * 1.15); }
  .site-footer {
    height: calc(100vw * 148 / 1672 * 1.15);
    aspect-ratio: auto;
  }
  .site-footer__artwork {
    width: 115%;
    max-width: none;
    margin-left: -7.5%;
  }
}

@media (orientation: landscape) and (max-height: 500px) and (hover: none) and (pointer: coarse) {
  .s01-site,
  .site-footer { display: none; }
  .rotate-lock {
    position: fixed;
    inset: 0;
    z-index: 10001;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 20px;
    padding: 24px;
    background: linear-gradient(180deg, #eaf8ff 0%, #fff 55%, #f6e9ff 100%);
    color: #0866f5;
    text-align: center;
  }
  .rotate-lock__icon { animation: rotate-lock-turn 2.4s ease-in-out infinite; }
  .rotate-lock__msg {
    margin: 0;
    max-width: 300px;
    font-family: "Noto Sans Thai", sans-serif;
    font-size: 18px;
    font-weight: 600;
    line-height: 1.5;
    color: #05070d;
  }
}

@keyframes rotate-lock-turn {
  0%, 20% { transform: rotate(-90deg); }
  50%, 80% { transform: rotate(0deg); }
  100% { transform: rotate(-90deg); }
}

@media (prefers-reduced-motion: reduce) {
  .rotate-lock__icon { animation: none; }
}

@media (max-width: 640px) and (hover: none) and (pointer: coarse) {
  .s01-brand,
  .s01-nav-item,
  .s01-icon-btn,
  .s01-cta,
  .js-phone-trigger,
  .phone-modal-close {
    transition: transform 0.12s ease-out;
  }
  .s01-brand.is-pressed,
  .s01-nav-item.is-pressed,
  .s01-icon-btn.is-pressed,
  .s01-cta.is-pressed,
  .js-phone-trigger.is-pressed,
  .phone-modal-close.is-pressed {
    transform: scale(0.98);
  }
}

/* ==========================================================================
   PC / Desktop Interactive Hover Feedback
   Strictly scoped to PC/Desktop:
   - min-width: 1025px (excludes mobile <=640px, tablet portrait <=1024px, tablet landscape 1024x768)
   - orientation: landscape
   - hover: hover and pointer: fine (requires mouse/trackpad pointer device; excludes touch tablets)
   ========================================================================== */
@media (min-width: 1025px) and (orientation: landscape) and (hover: hover) and (pointer: fine) {
  /* Base state: smooth return on mouseout with gentle 250ms easing */
  .s01-brand,
  .s01-nav-item,
  .s01-icon-btn,
  .s01-lang,
  .s01-btn-login,
  .s01-btn-staff,
  .s01-cta,
  .s01-phone.js-phone-trigger,
  .s01-fcard,
  .s01-ecard,
  .s01-ecard--ai,
  .phone-modal-close,
  .skip-link {
    cursor: pointer;
    transition: transform 250ms cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 250ms cubic-bezier(0.16, 1, 0.3, 1),
                filter 250ms cubic-bezier(0.16, 1, 0.3, 1),
                background-color 220ms ease,
                color 220ms ease,
                border-color 220ms ease,
                z-index 0s 250ms;
    will-change: transform;
  }

  /* Ensure positioned elements can elevate z-index cleanly above siblings */
  .s01-brand,
  .s01-nav-item,
  .s01-icon-btn,
  .s01-lang,
  .s01-btn-login,
  .s01-btn-staff,
  .s01-cta,
  .s01-phone.js-phone-trigger,
  .s01-fcard,
  .s01-ecard,
  .s01-ecard--ai {
    position: relative;
    z-index: 1;
  }

  /* 1. Primary Hero CTA */
  .s01-cta:hover {
    transform: translateY(-7px) scale(1.02);
    z-index: 5;
    background-color: #075be0;
    box-shadow: 0 16px 34px rgba(8, 102, 245, 0.40), 0 4px 12px rgba(8, 102, 245, 0.22);
    transition-delay: 0s;
  }

  /* 2. Brand / Logo Link */
  .s01-brand:hover {
    transform: translateY(-6px) scale(1.02);
    z-index: 5;
    filter: drop-shadow(0 6px 14px rgba(8, 102, 245, 0.25));
    transition-delay: 0s;
  }

  /* 3. Navigation Links */
  .s01-nav-item:hover {
    transform: translateY(-6px) scale(1.02);
    z-index: 5;
    color: #0866f5;
    filter: drop-shadow(0 4px 10px rgba(8, 102, 245, 0.18));
    transition-delay: 0s;
  }

  /* 4. Action Icon Buttons (Search, Menu) */
  .s01-icon-btn:hover {
    transform: translateY(-6px) scale(1.02);
    z-index: 5;
    filter: drop-shadow(0 6px 14px rgba(8, 102, 245, 0.30));
    transition-delay: 0s;
  }

  /* 5. Language Selector */
  .s01-lang:hover {
    transform: translateY(-6px) scale(1.02);
    z-index: 5;
    color: #0866f5;
    filter: drop-shadow(0 4px 10px rgba(8, 102, 245, 0.18));
    transition-delay: 0s;
  }

  /* 6. Header Login Button */
  .s01-btn-login:hover {
    transform: translateY(-6px) scale(1.02);
    z-index: 5;
    background-color: rgba(8, 102, 245, 0.08);
    color: #0866f5;
    box-shadow: 0 8px 22px rgba(8, 102, 245, 0.22), 0 2px 8px rgba(8, 102, 245, 0.12);
    transition-delay: 0s;
  }

  /* 7. Header Staff Login Button */
  .s01-btn-staff:hover {
    transform: translateY(-6px) scale(1.02);
    z-index: 5;
    background-color: #075be0;
    color: #ffffff;
    box-shadow: 0 10px 24px rgba(8, 102, 245, 0.35), 0 3px 10px rgba(8, 102, 245, 0.20);
    transition-delay: 0s;
  }

  /* 8. Phone Mockup Trigger (Click to zoom app modal) */
  .s01-phone.js-phone-trigger:hover {
    transform: translateY(-7px) scale(1.02);
    z-index: 10;
    box-shadow: 0 24px 50px rgba(20, 77, 165, 0.30), 0 8px 18px rgba(20, 77, 165, 0.15);
    transition-delay: 0s;
  }

  /* 9. Feature Cards (Why Section) - Stable Hover */
  .s01-fcard:hover {
    transform: translateY(-6px) scale(1.02);
    z-index: 10;
    border-color: rgba(8, 102, 245, 0.35);
    box-shadow: 0 16px 36px rgba(8, 102, 245, 0.16), 0 4px 12px rgba(8, 102, 245, 0.08);
    transition-delay: 0s;
  }

  /* 10. Ecosystem Cards - Stable Hover */
  .s01-ecard:hover,
  .s01-ecard--ai:hover {
    transform: translateY(-6px) scale(1.02);
    z-index: 10;
    box-shadow: 0 18px 40px rgba(8, 102, 245, 0.20), 0 6px 14px rgba(8, 102, 245, 0.10);
    transition-delay: 0s;
  }

  /* 11. Modal Close Button */
  .phone-modal-close:hover {
    transform: translateY(-6px) scale(1.02);
    z-index: 10;
    background-color: #ffffff;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.22);
    transition-delay: 0s;
  }

  /* 12. Skip to Content Link */
  .skip-link:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 8px 20px rgba(8, 102, 245, 0.45);
    transition-delay: 0s;
  }

  /* 13. Footer CTA Link */
  .site-footer__cta:hover {
    transform: translateY(-2px) scale(1.02);
    background-color: rgba(255, 255, 255, 0.12);
    box-shadow: 0 6px 18px rgba(8, 102, 245, 0.42),
                0 0 0 1px rgba(255, 255, 255, 0.25) inset;
    transition-delay: 0s;
  }

  /* Subtle click / active press feedback for PC mouse */
  .s01-cta:active,
  .s01-btn-login:active,
  .s01-btn-staff:active,
  .s01-icon-btn:active,
  .s01-phone.js-phone-trigger:active,
  .phone-modal-close:active,
  .s01-fcard:active,
  .s01-ecard:active,
  .s01-ecard--ai:active {
    transform: translateY(-1px) scale(0.995);
    transition-duration: 80ms;
  }

  .site-footer__cta:active {
    transform: translateY(0) scale(0.98);
    background-color: rgba(8, 102, 245, 0.18);
    transition-duration: 80ms;
  }
}

@media (prefers-reduced-motion: reduce) {
  .s01-brand,
  .s01-nav-item,
  .s01-icon-btn,
  .s01-lang,
  .s01-btn-login,
  .s01-btn-staff,
  .s01-cta,
  .site-footer__cta,
  .s01-phone.js-phone-trigger,
  .s01-fcard,
  .s01-ecard,
  .s01-ecard--ai,
  .phone-modal-close,
  .skip-link {
    transition: none !important;
    transform: none !important;
  }
}

.s01-tp-anchor--search { display: contents; }
.s01-tp-lang,
.s01-tp-search { display: none; }

@media (min-width: 768px) and (max-width: 1023px) and (orientation: portrait) {
  .s01-nav-links { display: none; }
  .s01-nav-links.open {
    display: flex;
    position: absolute;
    top: calc(100% + 6px);
    right: var(--tp-menu-right, 0px);
    left: auto;
    width: 220px;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid #dbe7f7;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(8, 102, 245, .12);
    z-index: 5;
  }
  .s01-nav-links.open .s01-nav-item {
    flex-direction: row;
    padding: 10px 12px;
    border-radius: 8px;
  }
  .s01-nav-links.open .s01-nav-bar { display: none; }

  .s01-actions .s01-lang { display: none; }
  .s01-tp-anchor {
    position: relative;
    display: flex;
    align-items: center;
  }
  .s01-tp-lang-btn {
    display: flex;
    align-items: center;
    gap: 2px;
    padding: 0;
    border: 0;
    background: none;
    cursor: pointer;
    font-family: Inter, "Noto Sans Thai", sans-serif;
    font-weight: 700;
    font-size: 15px;
    color: #071033;
  }
  .s01-tp-pop {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    margin: 0;
    padding: 8px;
    background: #fff;
    border: 1px solid #dbe7f7;
    border-radius: 12px;
    box-shadow: 0 12px 30px rgba(8, 102, 245, .12);
    z-index: 5;
  }
  .s01-tp-pop[hidden] { display: none; }
  .s01-tp-search:not([hidden]) { display: block; width: 260px; }
  .s01-tp-search-input {
    width: 100%;
    height: 40px;
    padding: 0 12px;
    border: 1px solid #cfe0f7;
    border-radius: 8px;
    background: #fff;
    font-family: "Noto Sans Thai", sans-serif;
    font-size: 15px;
    color: #071033;
  }
  .s01-tp-search-input:focus {
    border-color: #0866f5;
    outline: none;
  }
  .s01-tp-lang-menu {
    min-width: 140px;
    list-style: none;
  }
  .s01-tp-item {
    display: block;
    width: 100%;
    padding: 10px 12px;
    border: 0;
    border-radius: 8px;
    background: none;
    text-align: left;
    font-family: "Noto Sans Thai", sans-serif;
    font-size: 15px;
    color: #49618c;
    cursor: pointer;
  }
  .s01-tp-item[aria-checked="true"] { color: #0866f5; font-weight: 700; }
  .s01-tp-item:hover,
  .s01-tp-item:focus-visible,
  .s01-nav-links.open .s01-nav-item:hover,
  .s01-nav-links.open .s01-nav-item:focus-visible {
    background: rgba(8, 102, 245, .06);
    outline: none;
  }

  .s01-benefits {
    --hero-benefit-inset: 37.6px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding-inline-start: var(--hero-benefit-inset);
  }
  .s01-benefit {
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
  }
  .s01-benefit + .s01-benefit {
    padding-left: 0;
    border-left: 0;
  }
  .s01-cta { flex-shrink: 0; }
}

@media (max-width: 640px) {
  .s01-benefits {
    --hero-benefit-inset: 4.759vw;
    flex-direction: column;
    align-items: stretch;
    gap: 1.015vw;
    width: 100%;
    padding-inline-start: var(--hero-benefit-inset);
  }
  .s01-benefit {
    flex-direction: row;
    justify-content: flex-start;
    width: 100%;
  }
  .s01-benefit + .s01-benefit {
    padding-left: 0;
    border-left: 0;
  }
  .s01-cta { flex-shrink: 0; }
}

@media (min-width: 641px) and (max-width: 1024px) and (orientation: landscape),
       (min-width: 1025px) and (max-width: 1040px) and (orientation: landscape) and (hover: none),
       (min-width: 1025px) and (max-width: 1040px) and (orientation: landscape) and (pointer: coarse),
       (min-width: 1200px) and (orientation: landscape) and (hover: none),
       (min-width: 1200px) and (orientation: landscape) and (pointer: coarse) {
  .s01-benefits {
    --hero-benefit-inset: 37.6px;
    flex-direction: column;
    flex-wrap: nowrap;
    align-items: stretch;
    gap: 8px;
    width: 100%;
    padding-inline-start: var(--hero-benefit-inset);
  }
  .s01-benefit {
    justify-content: flex-start;
    gap: 8px;
    width: 100%;
  }
  .s01-benefit + .s01-benefit {
    padding-left: 0;
    border-left: 0;
  }
  .s01-cta { flex-shrink: 0; }
}

@media (min-width: 768px) and (max-width: 777px) and (orientation: portrait) {
  .s01-benefits { gap: 4px; }
}


