:root {
  --gold: #d4b465;
  --gold-deep: #b8893a;
  --cream: #ebe4d6;
  --ink: #0b0d0b;
  --text: #f4f1ea;
  --muted: rgba(244, 241, 234, 0.78);
  --safe-top: env(safe-area-inset-top, 0px);
  --safe-bot: env(safe-area-inset-bottom, 0px);
  --nav-h: 108px;
  --font: "IBM Plex Sans Thai", Tahoma, sans-serif;
  --brand: "Oswald", "IBM Plex Sans Thai", sans-serif;
}

* { box-sizing: border-box; }
html, body {
  margin: 0;
  height: 100%;
  background: #050605;
  color: var(--text);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow: hidden;
}

.stage {
  position: relative;
  width: min(480px, 100vw);
  height: 100dvh;
  margin: 0 auto;
  overflow-x: hidden;
  overflow-y: auto;
  scroll-snap-type: y mandatory;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
  background: #000;
  box-shadow: 0 0 0 1px rgba(255,255,255,.04);
}

.topbar {
  position: fixed;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 100vw);
  z-index: 20;
  padding: calc(14px + var(--safe-top)) 18px 0;
  pointer-events: none;
  background: linear-gradient(180deg, rgba(0,0,0,.55), transparent);
}
.brand {
  font-family: var(--brand);
  font-size: 13px;
  letter-spacing: .14em;
  font-weight: 500;
}
.counter {
  position: absolute;
  top: calc(14px + var(--safe-top));
  right: 18px;
  font-size: 13px;
  opacity: .85;
}
.progress {
  margin-top: 12px;
  height: 2px;
  background: rgba(255,255,255,.18);
  border-radius: 2px;
  overflow: hidden;
}
.progress i {
  display: block;
  height: 100%;
  width: 20%;
  background: linear-gradient(90deg, var(--gold-deep), var(--gold));
  transition: width .35s ease;
}

.track {
  display: block;
  width: 100%;
  height: auto;
}

.slide {
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 100dvh;
  scroll-snap-align: start;
  scroll-snap-stop: always;
  background: #111 center/cover no-repeat;
  background-image: linear-gradient(to bottom, rgba(0,0,0,.35), rgba(0,0,0,.82)), var(--bg);
  padding: calc(72px + var(--safe-top)) 20px calc(var(--nav-h) + var(--safe-bot));
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.shade {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(8,10,8,.28) 0%, rgba(8,10,8,.15) 35%, rgba(5,6,5,.78) 68%, rgba(5,6,5,.94) 100%);
  pointer-events: none;
}
.shade--strong {
  background:
    linear-gradient(180deg, rgba(5,6,5,.45) 0%, rgba(5,6,5,.35) 40%, rgba(5,6,5,.88) 70%, #050605 100%);
}
.shade--form {
  background:
    linear-gradient(180deg, rgba(5,8,5,.55) 0%, rgba(8,12,8,.72) 40%, #0a100c 100%);
}

.content {
  position: relative;
  z-index: 2;
  max-width: 420px;
  animation: rise .45s ease both;
}
.slide.is-active .content { animation: rise .45s ease both; }

@keyframes rise {
  from { opacity: 0; transform: translateY(14px); }
  to { opacity: 1; transform: none; }
}

.eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 10px;
  color: var(--gold);
  font-size: 13px;
  font-weight: 600;
}
.eyebrow span {
  width: 22px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.title-lg {
  margin: 0 0 12px;
  font-family: var(--brand);
  font-size: clamp(34px, 9vw, 44px);
  font-weight: 600;
  letter-spacing: .04em;
  line-height: 1.05;
}
.title-md {
  margin: 0 0 12px;
  font-size: clamp(24px, 6.4vw, 30px);
  font-weight: 700;
  line-height: 1.28;
}
.title-md em {
  font-style: normal;
  color: var(--gold);
}
.title-gold {
  margin: 0 0 14px;
  color: var(--gold);
  font-size: clamp(26px, 7vw, 34px);
  font-weight: 700;
  line-height: 1.25;
}
.subhead {
  margin: 16px 0 10px;
  font-size: 18px;
  font-weight: 700;
}
.body {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}
.body--tight { margin-bottom: 0; }

.pill {
  display: inline-flex;
  margin-top: 4px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(12,14,12,.72);
  border: 1px solid rgba(212,180,101,.35);
  font-size: 13px;
  font-weight: 600;
}

.money-list { display: grid; gap: 8px; margin: 0 0 14px; }
.money-card {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 14px;
  background: rgba(10,12,10,.72);
  border: 1px solid rgba(212,180,101,.28);
  backdrop-filter: blur(8px);
}
.money-card strong {
  color: var(--gold);
  font-size: 22px;
  font-weight: 700;
  letter-spacing: .01em;
}
.money-card span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0 0 14px;
}
.tags span {
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255,255,255,.35);
  font-size: 12px;
  font-weight: 500;
}

.checks {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 10px;
}
.checks li {
  position: relative;
  padding-left: 28px;
  font-size: 14px;
  line-height: 1.4;
  color: var(--text);
}
.checks li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 2px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid var(--gold);
  background:
    linear-gradient(var(--gold), var(--gold)) center 55%/8px 2px no-repeat,
    linear-gradient(var(--gold), var(--gold)) 42% 58%/2px 6px no-repeat;
  transform: rotate(-45deg);
  box-shadow: inset 0 0 0 5px transparent;
}
.checks--grid {
  grid-template-columns: 1fr 1fr;
  gap: 8px 10px;
}
.checks--grid li { font-size: 13px; }

.steps {
  margin: 0 0 4px;
  padding: 0;
  list-style: none;
  counter-reset: step;
  display: grid;
  gap: 10px;
}
.steps li {
  counter-increment: step;
  position: relative;
  padding-left: 34px;
  font-size: 14px;
  line-height: 1.4;
}
.steps li::before {
  content: counter(step);
  position: absolute;
  left: 0;
  top: 0;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: var(--gold);
  color: #1a1408;
  font-size: 12px;
  font-weight: 700;
  display: grid;
  place-items: center;
}

.slide--form {
  justify-content: flex-end;
  overflow: hidden;
}
.slide--form .content--form {
  width: 100%;
  max-width: none;
  max-height: calc(100% - 8px);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
  padding-bottom: 4px;
}
.slide--form .form-card {
  border-radius: 22px;
  border-bottom: 1px solid rgba(212,180,101,.22);
  margin-bottom: 8px;
}
.form-card {
  margin-top: 10px;
  padding: 18px 16px 14px;
  border-radius: 22px 22px 0 0;
  background: linear-gradient(180deg, #141a14 0%, #0c100c 100%);
  border: 1px solid rgba(212,180,101,.22);
  border-bottom: 0;
}
.form-card h3 {
  margin: 0 0 6px;
  font-size: 20px;
  font-weight: 700;
}
.form-card > p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.4;
}
form label {
  display: block;
  margin: 0 0 10px;
  font-size: 12px;
  color: rgba(244,241,234,.7);
  font-weight: 500;
}
form input {
  display: block;
  width: 100%;
  margin-top: 5px;
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255,255,255,.12);
  background: rgba(255,255,255,.06);
  color: #fff;
  font: inherit;
  font-size: 15px;
}
form input:focus {
  outline: 2px solid rgba(212,180,101,.55);
  outline-offset: 1px;
  background: rgba(255,255,255,.09);
}
.form-err {
  margin: 0 0 8px;
  color: #ff8d7a;
  font-size: 12px;
}
.btn-gold {
  width: 100%;
  min-height: 48px;
  border: 0;
  border-radius: 12px;
  background: linear-gradient(180deg, #e2c37a, var(--gold-deep));
  color: #1a1408;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.btn-gold[disabled] { opacity: .65; cursor: wait; }
.form-note {
  margin: 8px 0 0;
  text-align: center;
  color: rgba(212,180,101,.85);
  font-size: 12px;
}
.or {
  margin: 14px 0 10px;
  text-align: center;
  color: rgba(244,241,234,.45);
  font-size: 12px;
}
.chat-btn {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin: 0 0 8px;
  padding: 12px 14px;
  border-radius: 12px;
  text-decoration: none;
  color: #fff;
  font-weight: 700;
}
.chat-btn small {
  font-weight: 500;
  opacity: .9;
  font-size: 12px;
}
.chat-wa { background: #25d366; }
.chat-line { background: #06c755; }

.nav {
  position: fixed;
  left: 50%;
  transform: translateX(-50%);
  width: min(480px, 100vw);
  bottom: 0;
  z-index: 25;
  display: grid;
  grid-template-columns: 1fr 1.35fr;
  gap: 10px;
  padding: 0 16px calc(12px + var(--safe-bot));
  background: linear-gradient(180deg, transparent, rgba(0,0,0,.55) 30%, rgba(0,0,0,.75));
  pointer-events: none;
}
.nav button {
  pointer-events: auto;
}
.nav.is-last {
  grid-template-columns: 1fr;
}
.nav.is-last .btn-next { display: none; }
.nav.is-last .hint { display: none; }
.btn-back, .btn-next {
  min-height: 48px;
  border-radius: 14px;
  font: inherit;
  font-size: 15px;
  font-weight: 700;
  cursor: pointer;
}
.btn-back {
  border: 1px solid rgba(255,255,255,.55);
  background: rgba(0,0,0,.55);
  color: #fff;
}
.btn-back[hidden] { display: none; }
.btn-next {
  border: 0;
  background: var(--cream);
  color: #1a1712;
}
.hint {
  grid-column: 1 / -1;
  margin: 2px 0 0;
  text-align: center;
  font-size: 12px;
  color: rgba(255,255,255,.7);
}

.popup {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(8,10,8,.62);
}
.popup[hidden] { display: none !important; }
.popup__card {
  position: relative;
  width: min(420px, 100%);
  padding: 26px 20px 18px;
  border-radius: 22px;
  background: #fff;
  color: #1f2a17;
  border-top: 5px solid var(--gold-deep);
  box-shadow: 0 20px 50px rgba(0,0,0,.28);
}
.popup__close {
  position: absolute;
  top: 8px;
  right: 10px;
  width: 36px;
  height: 36px;
  border: 0;
  background: transparent;
  font-size: 26px;
  color: #6b7069;
  cursor: pointer;
}
.popup__card h3 {
  margin: 0 36px 8px 0;
  font-size: 22px;
}
.popup__sub {
  margin: 0 0 14px;
  color: #4a4f53;
  font-size: 14px;
  line-height: 1.45;
}
.popup label { color: #1f2a17; }
.popup input {
  background: #f7f4ee;
  border: 1px solid #d7d2c8;
  color: #1f2a17;
}
.popup__chat {
  display: block;
  width: 100%;
  margin-top: 10px;
  border: 0;
  background: transparent;
  color: var(--gold-deep);
  font: inherit;
  font-size: 13px;
  font-weight: 700;
  text-decoration: underline;
  cursor: pointer;
}
.popup__chats { margin-top: 10px; }

.ok {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(15,20,12,.55);
}
.ok[hidden] { display: none !important; }
.ok__card {
  width: min(420px, 100%);
  padding: 28px 24px;
  border-radius: 14px;
  background: #fff;
  color: #1f2a17;
  text-align: center;
}
.ok__card h3 { margin: 0 0 10px; font-size: 28px; }
.ok__card p { margin: 0 0 18px; color: #4a4f53; }
.ok__card button {
  border: 0;
  background: #e85a1a;
  color: #fff;
  font-weight: 700;
  border-radius: 8px;
  min-height: 44px;
  padding: 0 22px;
  cursor: pointer;
  font: inherit;
}

@media (min-width: 900px) {
  body {
    display: grid;
    place-items: center;
    background:
      radial-gradient(ellipse at 50% 0%, #1a2214 0%, #050605 55%);
  }
  .stage {
    height: min(920px, 100dvh);
    border-radius: 18px;
    overflow: hidden;
  }
}
