:root {
  --pmh-surface: #ffffff;
  --pmh-soft: #f7fafc;
  --pmh-ink: #0f172a;
  --pmh-muted: #526071;
  --pmh-line: #d8e0ea;
  --pmh-blue: #1d4ed8;
  --pmh-blue-strong: #1e40af;
  --pmh-pink: #d81b72;
  --pmh-green: #047857;
  --pmh-amber: #b45309;
  --pmh-shadow: 0 18px 45px rgba(15, 23, 42, .11);
}

html {
  scroll-padding-top: 18px;
}

body {
  color: var(--pmh-ink);
  background:
    linear-gradient(180deg, #f8fbff 0%, #f7fafc 32%, #ffffff 100%);
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
.qa h3:focus-visible {
  outline: 3px solid #f59e0b;
  outline-offset: 3px;
}

.btn,
.auth-link,
.field input,
.field select,
.check2,
.promo-row input {
  min-height: 44px;
}

.header-actions,
.hero-cta {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.top {
  padding-top: 14px;
}

.logo img {
  width: clamp(190px, 38vw, 300px);
}

.hero {
  background:
    radial-gradient(circle at 85% 16%, rgba(236, 72, 153, .13), transparent 32%),
    linear-gradient(180deg, #eaf2ff 0%, #f8fafc 72%);
  padding-bottom: 48px;
}

.hero-in {
  padding-top: 30px;
}

.hero h1 {
  max-width: 760px;
  font-size: clamp(34px, 7vw, 54px);
  line-height: 1.12;
  letter-spacing: 0;
}

.hero p.lead {
  max-width: 650px;
  color: #334155;
  font-size: clamp(18px, 2.4vw, 22px);
}

.hero .sub {
  max-width: 680px;
  color: #334155;
}

.hero-img img {
  width: min(340px, 72vw);
  border: 1px solid rgba(15, 23, 42, .08);
  box-shadow: var(--pmh-shadow);
}

.btn {
  border-radius: 10px;
  box-shadow: 0 10px 22px rgba(29, 78, 216, .15);
}

.btn-pink {
  background: var(--pmh-pink);
}

.btn-ghost-line {
  background: #ffffff;
  color: var(--pmh-blue);
  border: 1.5px solid #bfdbfe;
  box-shadow: none;
}

.btn-ghost-line:hover {
  background: #eff6ff;
  color: var(--pmh-blue-strong);
}

section {
  padding: 52px 0;
}

.sec-head {
  text-align: left;
  margin-left: 0;
}

.sec-head h2,
.team h2,
.prereg h2 {
  letter-spacing: 0;
  line-height: 1.25;
}

.pains,
.steps,
.price-grid {
  align-items: stretch;
}

.pain,
.step,
.card,
.monthly-strip,
.qa {
  border-color: var(--pmh-line);
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(15, 23, 42, .05);
}

.pain {
  text-align: left;
}

.pain i {
  width: 42px;
  height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #fff1f5;
}

.solution,
.prereg {
  border-radius: 14px;
  background: linear-gradient(135deg, #ffffff 0%, #eff6ff 55%, #fff7ed 100%);
  border-color: #bfdbfe;
}

.step .n {
  border-radius: 10px;
}

.team {
  background: #ffffff;
}

.auto-check {
  background: #eef6ff;
  border: 1.5px solid #93c5fd;
  border-radius: 12px;
  padding: 16px;
  margin-bottom: 18px;
}

.auto-check-title {
  font-size: 17px;
  font-weight: 700;
  color: var(--pmh-blue);
  margin-bottom: 10px;
}

.uppercase-input {
  text-transform: uppercase;
}

.form-actions-line {
  margin-top: 14px;
}

.inline-result {
  margin-top: 12px;
  font-size: 14px;
  line-height: 1.6;
}

.prereg-progress {
  background: #ffffff;
  border: 1px solid var(--pmh-line);
  border-radius: 12px;
  padding: 12px 14px;
  margin-bottom: 14px;
}

.prereg-progress span {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: var(--pmh-muted);
  margin-bottom: 8px;
}

.prereg-bar {
  height: 8px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.prereg-bar span {
  width: 50%;
  height: 100%;
  display: block;
  margin: 0;
  background: linear-gradient(90deg, var(--pmh-blue), var(--pmh-pink));
  border-radius: inherit;
}

.field input,
.field select,
.modal .field input,
.promo-row input {
  border-color: #cbd5e1;
  color: var(--pmh-ink);
}

.field input:focus,
.field select:focus,
.modal .field input:focus,
.promo-row input:focus {
  outline: 3px solid rgba(245, 158, 11, .34);
  outline-offset: 1px;
  border-color: var(--pmh-blue);
}

.prereg-result {
  display: none;
  margin-top: 14px;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  line-height: 1.7;
}

.prereg-result.ok {
  background: #ecfdf5;
  border: 1px solid #6ee7b7;
  color: #065f46;
}

.prereg-result.err {
  background: #fef2f2;
  border: 1px solid #fca5a5;
  color: #991b1b;
}

.prereg-line-note {
  background: #ffffff;
  border: 1.5px solid #93c5fd;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 13.5px;
  color: var(--pmh-ink);
  line-height: 1.7;
}

.prereg-line-note b:first-child {
  color: var(--pmh-blue);
}

.card.feature::before {
  content: "แนะนำสำหรับเริ่มใช้งาน";
  position: absolute;
  top: -1px;
  right: 18px;
  background: var(--pmh-blue);
  color: #ffffff;
  padding: 6px 12px;
  border-radius: 0 0 10px 10px;
  font-size: 12px;
  font-weight: 700;
}

.promo-badge {
  background: var(--pmh-pink);
}

.promo-login-note {
  display: inline-block;
  margin-top: 10px;
  margin-bottom: 0;
  font-size: 12.5px;
}

.promo-login-link {
  color: var(--blue);
  font-weight: 600;
}

.qa h3 {
  min-height: 44px;
  display: flex;
  align-items: center;
}

@media (max-width: 720px) {
  .wrap {
    padding: 0 16px;
  }

  .top {
    padding-left: 16px;
    padding-right: 16px;
  }

  .header-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .hero-cta .btn,
  .header-actions > .btn,
  .auth-area,
  .auth-area .btn,
  .auth-link {
    width: 100%;
    text-align: center;
    justify-content: center;
  }

  .hero h1 {
    font-size: 36px;
  }

  .trust {
    gap: 12px;
  }

  .trust div {
    width: 100%;
    background: rgba(255, 255, 255, .76);
    border: 1px solid rgba(191, 219, 254, .9);
    border-radius: 10px;
    padding: 10px 12px;
  }

  .prereg {
    padding: 22px 16px;
  }

  .price-grid {
    gap: 14px;
    grid-template-columns: minmax(0, 1fr);
  }

  .price-grid > .card {
    box-sizing: border-box;
    width: 100%;
    min-width: 0;
    max-width: 100%;
    margin-left: 0;
    margin-right: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
