.hero {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 28px 20px 56px;
}

.hero-bg {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.baht-watermark {
  position: absolute;
  top: 6%;
  right: -0.08em;
  color: rgba(255, 255, 255, 0.1);
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: clamp(16rem, 34vw, 30rem);
  font-weight: 600;
  line-height: 0.8;
}

.bubble {
  position: absolute;
  border-radius: 50%;
  background: radial-gradient(circle at 32% 30%, #fff 0%, #d8c4ff 42%, #915bff 100%);
  opacity: 0.5;
}

.b1 {
  top: 14%;
  left: 6%;
  width: 92px;
  height: 92px;
  animation: drift 7s ease-in-out infinite;
}

.b2 {
  top: 22%;
  right: 16%;
  width: 26px;
  height: 26px;
  animation: drift 5.5s ease-in-out infinite reverse;
}

.b3 {
  bottom: 16%;
  left: 38%;
  width: 48px;
  height: 48px;
  opacity: 0.35;
}

@keyframes drift {
  50% {
    transform: translateY(-12px);
  }
}

.hero-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 12px 28px;
  align-items: center;
  width: min(1120px, 100%);
  margin: 0 auto;
}

.hero-copy h1 {
  margin: 0;
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: clamp(3.6rem, 8vw, 6.6rem);
  font-weight: 500;
  line-height: 1.28;
}

.lede {
  margin: 8px 0 0;
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  font-weight: 400;
  line-height: 1.45;
}

.hero-copy p {
  margin: 12px 0 0;
  max-width: 36rem;
}

.license {
  margin-top: 18px;
  font-size: 0.98rem;
}

.hero-stage {
  position: relative;
  z-index: 1;
  justify-self: end;
  width: min(100%, 480px);
}

.coin {
  display: block;
  width: 100%;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  cursor: pointer;
}

.coin img {
  display: block;
  width: 100%;
  height: auto;
  filter: drop-shadow(0 26px 28px rgba(48, 0, 120, 0.38));
  transition: filter 0.18s ease, transform 0.18s ease;
}

.coin:hover img {
  transform: translateY(-6px);
}

.coin.is-down img,
.coin:active img {
  transform: translateY(12px) scale(0.96);
  filter: drop-shadow(0 8px 12px rgba(48, 0, 120, 0.3));
}

.coin:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 6px;
  border-radius: 50%;
}

.hint {
  margin: 4px 0 0;
  text-align: center;
  font-size: 1rem;
}

.slip {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-rows: 1fr;
  width: min(1120px, 100%);
  margin: 28px auto 0;
}

.js .slip {
  grid-template-rows: 0fr;
  transition: grid-template-rows 0.45s ease;
}

.js .slip.is-open {
  grid-template-rows: 1fr;
}

.slip-inner {
  overflow: hidden;
}

.slip-card {
  margin-top: 8px;
  padding: 26px 28px 22px;
  border: 10px solid rgba(255, 255, 255, 0.88);
  border-radius: 36px;
  background: #f6f0ff;
  color: #24124a;
  box-shadow: 0 18px 40px rgba(40, 0, 110, 0.22);
}

.slip-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.slip-top h2 {
  margin: 0;
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: 1.6rem;
  font-weight: 500;
  line-height: 1.3;
}

.slip-close {
  flex: 0 0 auto;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #7733ff;
  color: #fff;
  cursor: pointer;
}

.slip-close:focus-visible {
  outline: 3px solid #24124a;
  outline-offset: 3px;
}

.slip-story,
.slip-note {
  margin: 12px 0 0;
  line-height: 1.8;
}

.figures {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin: 18px 0 0;
}

.figures p {
  margin: 0;
  padding: 14px 14px 12px;
  border-radius: 22px;
  background: #fff;
}

.figures span {
  display: block;
  min-height: 2.6em;
  font-size: 0.92rem;
  line-height: 1.45;
}

.figures strong {
  display: block;
  margin-top: 4px;
  color: #7733ff;
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.6rem);
  font-weight: 500;
  line-height: 1.2;
}

.sheet {
  position: relative;
  padding: 72px 20px 96px;
  border-top: 12px solid #fff;
  border-radius: 48px 48px 0 0;
  background: #f6f0ff;
  color: #24124a;
}

.block {
  width: min(1120px, 100%);
  margin-inline: auto;
  scroll-margin-top: 108px;
}

.sheet > .block + .block {
  margin-top: 96px;
}

.sheet h2 {
  margin: 0;
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 500;
  line-height: 1.25;
}

.sheet a {
  color: #7733ff;
}

.sheet a:focus-visible,
.slip a:focus-visible {
  outline: 3px solid #7733ff;
  outline-offset: 3px;
}

.terms {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 36px 48px;
  align-items: start;
}

.about .prose,
.safety .prose,
.contact .prose,
.terms .prose {
  margin: 16px 0 0;
  max-width: 42rem;
}

.uses {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 0;
  margin: 22px 0 0;
  padding: 0;
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  line-height: 1.45;
}

.uses span {
  margin-right: 1.1rem;
}

.uses span:not(:last-child)::after {
  content: "·";
  margin-left: 1.1rem;
  color: #7733ff;
}

.ledger {
  margin: 0;
}

.ledger div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 0;
  border-bottom: 2px solid #e3d4ff;
}

.ledger dt {
  font-weight: 600;
}

.ledger dd {
  margin: 0;
  color: #7733ff;
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: 1.25rem;
  line-height: 1.35;
  text-align: end;
}

.pending {
  margin: 10px 0 0;
  color: #5c4d78;
  font-size: 0.95rem;
}

.flow-list {
  display: grid;
  gap: 56px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}

.flow-list li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 300px;
  gap: 36px;
  align-items: center;
}

.flow-list h3 {
  margin: 0 0 8px;
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: 1.55rem;
  font-weight: 500;
  line-height: 1.35;
}

.flow-list p {
  margin: 0;
  max-width: 38rem;
}

.phone {
  width: 300px;
  max-width: 100%;
  justify-self: end;
  border-radius: 28px;
  background: #f1ebfe;
  box-shadow: 0 18px 40px rgba(70, 20, 160, 0.12);
  overflow: hidden;
}

.phone img {
  display: block;
  width: 100%;
}

.flow-list li:nth-child(even) {
  grid-template-columns: 300px minmax(0, 1fr);
}

.flow-list li:nth-child(even) .phone {
  order: -1;
  justify-self: start;
}

.who-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 18px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.who-row li {
  max-width: 28rem;
  margin: 0;
  padding: 22px 26px;
  border: 8px solid #fff;
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(80, 30, 170, 0.08);
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: 1.2rem;
  line-height: 1.45;
}

.who-row li:nth-child(2) {
  margin-top: 28px;
  background: #efe4ff;
}

.contact .mail {
  display: inline-block;
  margin-top: 12px;
  font-family: "Mitr", "Leelawadee UI", sans-serif;
  font-size: clamp(1.35rem, 3vw, 2.15rem);
  line-height: 1.35;
  text-underline-offset: 0.18em;
}

.contact p {
  margin: 10px 0 0;
  max-width: 40rem;
}

body.home ::selection {
  background: #fff;
  color: #3d12c4;
}

.sheet ::selection {
  background: #7733ff;
  color: #fff;
}

@media (max-width: 800px) {
  .hero {
    min-height: 0;
    padding-bottom: 36px;
  }

  .hero-grid {
    grid-template-columns: 1fr;
  }

  .hero-stage {
    justify-self: center;
    width: min(100%, 340px);
  }

  .baht-watermark {
    top: 42%;
    right: -0.2em;
    font-size: 14rem;
  }

  .b1,
  .b2,
  .b3 {
    display: none;
  }

  .figures,
  .terms,
  .flow-list li,
  .flow-list li:nth-child(even) {
    grid-template-columns: 1fr;
  }

  .flow-list li .phone,
  .flow-list li:nth-child(even) .phone {
    order: -1;
    justify-self: center;
    width: min(260px, 72%);
    margin: 0 auto;
  }

  .flow-list li:nth-child(even) .flow-copy {
    order: 0;
  }

  .who-row li,
  .who-row li:nth-child(2) {
    margin-top: 0;
    border-radius: 28px;
  }

  .ledger div {
    flex-direction: column;
    gap: 2px;
  }

  .ledger dd {
    text-align: start;
  }

  .slip-top {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (prefers-reduced-motion: reduce) {
  .bubble,
  .coin img,
  .js .slip {
    animation: none;
    transition: none;
  }
}
