:root {
  color-scheme: light;
  font-family:
    system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", "Noto Sans Thai",
    sans-serif;
  color: #17172f;
  background: #faf8ff;
  --purple: #6d28ff;
  --pink: #ee3c9a;
  --peach: #ff8a56;
  --ink: #17172f;
  --muted: #615f75;
  --line: #eee8f9;
  --soft: #f5efff;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 10% 4%, #e8ddff 0, transparent 30%),
    radial-gradient(circle at 92% 8%, #ffe1e8 0, transparent 32%),
    #faf8ff;
}

a {
  color: #6329d6;
}

a:focus-visible,
summary:focus-visible {
  outline: 3px solid rgb(109 40 255 / 35%);
  outline-offset: 4px;
}

.shell {
  width: min(100% - 32px, 980px);
  margin: 0 auto;
}

.topbar {
  display: flex;
  min-height: 84px;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  font-weight: 850;
  text-decoration: none;
}

.brand img {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  box-shadow: 0 10px 24px rgb(78 36 154 / 20%);
}

.nav {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px 18px;
}

.nav a {
  color: #4f4c65;
  font-size: 14px;
  font-weight: 700;
  text-decoration: none;
}

.nav a:hover {
  color: var(--purple);
}

.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 18px 0 14px;
  color: var(--muted);
  font-size: 14px;
}

.breadcrumb a {
  font-weight: 700;
  text-decoration: none;
}

.hero {
  overflow: hidden;
  padding: clamp(30px, 7vw, 68px);
  border: 1px solid rgb(255 255 255 / 75%);
  border-radius: 32px;
  color: white;
  background:
    radial-gradient(circle at 88% 18%, rgb(255 255 255 / 24%), transparent 22%),
    linear-gradient(135deg, var(--purple), var(--pink) 58%, var(--peach));
  box-shadow: 0 24px 60px rgb(85 45 166 / 22%);
}

.eyebrow {
  display: inline-flex;
  padding: 8px 13px;
  border: 1px solid rgb(255 255 255 / 30%);
  border-radius: 999px;
  background: rgb(255 255 255 / 15%);
  font-size: 14px;
  font-weight: 800;
}

h1 {
  max-width: 800px;
  margin: 18px 0 14px;
  font-size: clamp(36px, 7vw, 64px);
  line-height: 1.12;
  letter-spacing: -0.025em;
}

.lead {
  max-width: 760px;
  margin: 0;
  color: rgb(255 255 255 / 92%);
  font-size: clamp(18px, 2.6vw, 22px);
  line-height: 1.7;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.button {
  display: inline-flex;
  min-height: 50px;
  align-items: center;
  justify-content: center;
  padding: 0 21px;
  border: 1px solid rgb(255 255 255 / 55%);
  border-radius: 17px;
  color: #5921c4;
  background: white;
  box-shadow: 0 12px 24px rgb(71 18 128 / 18%);
  font-weight: 800;
  text-decoration: none;
  transition: transform 180ms ease, box-shadow 180ms ease;
}

.button.secondary {
  color: white;
  background: rgb(255 255 255 / 13%);
}

.button:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 30px rgb(71 18 128 / 24%);
}

.button:active {
  transform: scale(0.98);
}

.content {
  display: grid;
  gap: 22px;
  padding: 26px 0 50px;
}

.card {
  padding: clamp(24px, 5vw, 44px);
  border: 1px solid var(--line);
  border-radius: 26px;
  background: rgb(255 255 255 / 95%);
  box-shadow: 0 16px 40px rgb(58 38 105 / 9%);
}

.card h2 {
  margin: 0 0 13px;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.3;
}

.card h3 {
  margin: 26px 0 8px;
  font-size: 20px;
}

.card p,
.card li {
  color: var(--muted);
  font-size: 17px;
  line-height: 1.8;
}

.card ul,
.card ol {
  padding-left: 24px;
}

.grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 22px;
}

.mini-card {
  padding: 20px;
  border: 1px solid #eee7fb;
  border-radius: 20px;
  background: linear-gradient(145deg, #fff, #faf7ff);
}

.mini-card strong {
  display: block;
  margin-bottom: 7px;
  color: #332452;
  font-size: 18px;
}

.mini-card p {
  margin: 0;
  font-size: 15px;
}

.callout {
  padding: 20px 22px;
  border: 1px solid #e6d7ff;
  border-radius: 20px;
  color: #503875;
  background: linear-gradient(135deg, #f5efff, #fff4f8);
}

.steps {
  counter-reset: step;
  display: grid;
  gap: 14px;
  margin: 22px 0 0;
  padding: 0;
  list-style: none;
}

.steps li {
  position: relative;
  min-height: 76px;
  padding: 17px 18px 17px 70px;
  border: 1px solid #eee7fb;
  border-radius: 20px;
  background: #fff;
}

.steps li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: 15px;
  left: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 14px;
  color: white;
  background: linear-gradient(135deg, var(--purple), var(--pink));
  font-weight: 900;
  box-shadow: 0 8px 18px rgb(109 40 255 / 22%);
}

.steps strong {
  display: block;
  color: #332452;
}

.faq {
  display: grid;
  gap: 12px;
}

.faq details {
  border: 1px solid #eee7fb;
  border-radius: 18px;
  background: white;
}

.faq summary {
  padding: 18px 20px;
  color: #332452;
  cursor: pointer;
  font-weight: 800;
}

.faq details p {
  margin: 0;
  padding: 0 20px 20px;
}

.updated {
  margin-top: 16px;
  color: rgb(255 255 255 / 78%);
  font-size: 14px;
}

.site-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 4px 0 36px;
  color: var(--muted);
  font-size: 14px;
}

.site-footer a {
  font-weight: 700;
  text-decoration: none;
}

@media (max-width: 700px) {
  .shell {
    width: min(100% - 20px, 980px);
  }

  .topbar {
    min-height: 72px;
    align-items: flex-start;
    padding: 14px 2px;
  }

  .nav {
    display: none;
  }

  .hero,
  .card {
    border-radius: 23px;
  }

  .grid {
    grid-template-columns: 1fr;
  }

  .button {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .button {
    transition: none;
  }
}
