/* landing/css/landing.css — เว็บหลักของบริการ (โทนสีเดียวกับ goragod.com) */
:root {
  --navy-950: #061330;
  --navy-900: #0A1F44;
  --navy-800: #0F2C5E;
  --blue-800: #1E40AF;
  --blue-700: #1D4ED8;
  --blue-600: #2563EB;
  --blue-400: #60A5FA;
  --blue-200: #BFDBFE;
  --blue-100: #DBEAFE;
  --blue-50: #EFF6FF;
  --yellow: #FACC15;
  --yellow-hover: #FDE047;
  --ink: #0F172A;
  --ink-2: #334155;
  --muted: #475569;
  --line: #E2E8F0;
  --line-strong: #CBD5E1;
  --bg: #F4F7FB;
  --success: #16A34A;
  --danger: #DC2626;
  --radius: 12px;
  --radius-lg: 20px;
  --shadow-sm: 0 1px 2px rgba(15, 23, 42, .05), 0 1px 3px rgba(15, 23, 42, .07);
  --shadow: 0 18px 40px -18px rgba(10, 31, 68, .35);
  --hero-bg: radial-gradient(1100px 420px at 85% -10%, rgba(96, 165, 250, .35), transparent 60%), linear-gradient(135deg, var(--navy-950) 0%, var(--navy-900) 45%, var(--blue-800) 100%);
  --grid-pattern: linear-gradient(rgba(255, 255, 255, .06) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .06) 1px, transparent 1px);
  --header-h: 72px;
}
* {
  box-sizing: border-box;
}
/* กล่องที่ JS สลับด้วย hidden (.order-grid · .register-done ...) ต้องซ่อนได้แม้ตั้ง display ไว้ */
[hidden] {
  display: none !important;
}
html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}
body.landing {
  margin: 0;
  font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', Tahoma, system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.7;
  color: var(--ink);
  background: #fff;
  accent-color: var(--blue-700);
  -webkit-font-smoothing: antialiased;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}
.site-container {
  background: var(--bg);
  flex: 1;
}
h1,
h2,
h3 {
  font-weight: 700;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--navy-900);
  margin: 0 0 .5em;
}
h3 {
  font-weight: 600;
}
h1,
h2 {
  text-wrap: balance;
}
a {
  color: var(--blue-700);
  text-decoration: none;
}
a:hover {
  color: var(--blue-800);
}
img {
  max-width: 100%;
}
::selection {
  background: var(--yellow);
  color: var(--navy-900);
}
:focus-visible {
  outline: 3px solid var(--blue-400);
  outline-offset: 2px;
}
.is-dark :focus-visible {
  outline-color: var(--yellow);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
  border: 0;
}
.skip-link {
  position: absolute;
  left: 16px;
  top: -100px;
  z-index: 100;
  padding: 8px 16px;
  border-radius: 8px;
  background: var(--yellow);
  color: var(--navy-900);
  font-weight: 600;
}
.skip-link:focus {
  top: 12px;
}
.wrap {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}
.wrap.narrow {
  max-width: 780px;
}
.center {
  text-align: center;
}
.right {
  text-align: right;
}
.muted {
  color: var(--muted);
}
.grid {
  display: grid;
  gap: 24px;
}
.grid-4 {
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
}
.card {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-sm);
}
/* ปุ่ม */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 44px;
  padding: 10px 20px;
  border-radius: 10px;
  border: 2px solid transparent;
  font: inherit;
  font-weight: 600;
  line-height: 1.2;
  white-space: nowrap;
  cursor: pointer;
  transition: background-color .2s, color .2s, border-color .2s, box-shadow .2s, transform .2s;
}
.btn:hover {
  transform: translateY(-1px);
}
.btn:disabled {
  opacity: .6;
  cursor: wait;
  transform: none;
}
.btn-primary {
  background: var(--blue-700);
  color: #fff;
}
.btn-primary:hover {
  background: var(--blue-800);
  color: #fff;
}
.btn-outline {
  border-color: var(--blue-700);
  color: var(--blue-700);
  background: transparent;
}
.btn-outline:hover {
  background: var(--blue-700);
  color: #fff;
}
.btn-accent {
  background: var(--yellow);
  color: var(--navy-900);
  box-shadow: 0 10px 24px -10px rgba(250, 204, 21, .7);
}
.btn-accent:hover {
  background: var(--yellow-hover);
  color: var(--navy-900);
}
.btn-ghost {
  border-color: rgba(255, 255, 255, .55);
  color: #fff;
  background: transparent;
}
.btn-ghost:hover {
  background: #fff;
  border-color: #fff;
  color: var(--navy-900);
}
.btn-large {
  min-height: 52px;
  padding: 12px 28px;
  font-size: 1.05rem;
}
.btn-block {
  width: 100%;
}
.btn-arrow::after {
  content: '→';
  transition: transform .2s;
}
.btn-arrow:hover::after {
  transform: translateX(4px);
}
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--blue-700);
}
.eyebrow::before {
  content: '';
  width: 24px;
  height: 2px;
  background: currentColor;
}
.is-dark .eyebrow {
  color: var(--yellow);
}
/* ส่วนหัว */
.site-header {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, .9);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--line);
}
.site-header .wrap {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: -.02em;
  color: var(--navy-900);
}
.brand:hover {
  color: var(--navy-900);
}
.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 11px;
  background: var(--navy-900);
  color: var(--yellow);
  font-size: 1.35rem;
  line-height: 1;
  box-shadow: inset 0 -3px 0 rgba(250, 204, 21, .35);
}
.site-nav {
  display: flex;
  align-items: center;
  gap: 6px;
}
.site-nav a:not(.btn) {
  padding: 8px 12px;
  border-radius: 8px;
  color: var(--ink-2);
  font-weight: 500;
  transition: color .2s, background-color .2s;
}
.site-nav a:not(.btn):hover {
  color: var(--blue-700);
  background: var(--blue-50);
}
.site-nav .nav-signin {
  color: var(--blue-700) !important;
  font-weight: 600 !important;
}
.site-nav .btn {
  margin-left: 8px;
}
.nav-toggle,
.nav-button {
  display: none;
}
/* ส่วนเปิดหน้า */
.hero,
.page-head,
.cta-box {
  position: relative;
  overflow: hidden;
  isolation: isolate;
  background: var(--hero-bg);
  color: #fff;
}
.hero::before,
.page-head::before,
.cta-box::before {
  content: '';
  position: absolute;
  inset: 0;
  z-index: -1;
  background-image: var(--grid-pattern);
  background-size: 44px 44px;
  -webkit-mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%);
  mask-image: radial-gradient(circle at 70% 40%, #000, transparent 75%);
}
.hero {
  padding: clamp(3.5rem, 7vw, 6rem) 0 clamp(7rem, 11vw, 9.5rem);
}
.hero .wrap {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, .9fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.hero h1 {
  margin: 16px 0 20px;
  font-size: clamp(2.1rem, 1.3rem + 2.6vw, 3.4rem);
  line-height: 1.2;
  color: #fff;
}
.hero h1 em {
  font-style: normal;
  color: var(--yellow);
}
.hero-lead {
  max-width: 620px;
  margin: 0 0 32px;
  color: var(--blue-100);
  font-size: clamp(1.02rem, .95rem + .3vw, 1.2rem);
  line-height: 1.75;
}
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin: 0;
}
.hero-points {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 24px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
  color: #E2E8F0;
  font-size: .95rem;
}
.hero-points li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.hero-points li::before {
  content: '✓';
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: rgba(250, 204, 21, .18);
  color: var(--yellow);
  font-size: .75rem;
  font-weight: 700;
}
.hero-card {
  padding: 32px;
  border-radius: 24px;
  background: rgba(255, 255, 255, .07);
  border: 1px solid rgba(255, 255, 255, .16);
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .6);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.hero-card h2 {
  margin: 0 0 4px;
  font-size: 1.3rem;
  color: #fff;
}
.hero-card-lead {
  margin: 0 0 20px;
  color: var(--blue-200);
  font-size: .95rem;
}
.hero-card label {
  color: var(--blue-100);
  margin-top: 0;
}
.hero-card .input-suffix {
  border-color: transparent;
}
.signin-form {
  display: grid;
  gap: 12px;
}
.hero-card-modules {
  margin-top: 24px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .14);
}
.hero-card-modules small {
  display: block;
  margin-bottom: 12px;
  color: var(--blue-200);
  font-size: .85rem;
}
.hero-card-modules ul {
  display: grid;
  grid-template-columns: repeat(8, minmax(0, 1fr));
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.hero-card-modules li {
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  border-radius: 10px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .12);
  color: #fff;
  font-size: 1.1rem;
  transition: background-color .2s, border-color .2s, color .2s;
}
.hero-card-modules li:hover {
  background: var(--yellow);
  border-color: var(--yellow);
  color: var(--navy-900);
}
/* ช่องกรอก */
label {
  display: block;
  font-weight: 600;
  font-size: .95rem;
  color: var(--ink-2);
  margin: 14px 0 6px;
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="file"],
select,
textarea {
  width: 100%;
  min-height: 46px;
  padding: 10px 14px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  font: inherit;
  color: var(--ink);
  background: #fff;
  transition: border-color .2s, box-shadow .2s;
}
input:focus,
select:focus,
textarea:focus {
  outline: none;
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}
.input-suffix {
  display: flex;
  align-items: stretch;
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  overflow: hidden;
  transition: border-color .2s, box-shadow .2s;
}
.input-suffix:focus-within {
  border-color: var(--blue-600);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, .15);
}
.hero-card .input-suffix:focus-within {
  box-shadow: 0 0 0 4px rgba(250, 204, 21, .45);
}
.input-suffix input {
  flex: 1;
  min-width: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none !important;
}
.input-suffix span {
  display: flex;
  align-items: center;
  padding: 0 14px;
  border-left: 1px solid var(--line);
  background: var(--bg);
  color: var(--muted);
  white-space: nowrap;
}
/* หัวข้อของแต่ละส่วน */
.section {
  padding: clamp(3.5rem, 6vw, 6rem) 0;
}
.section-alt {
  background: var(--bg);
}
.section-head {
  max-width: 760px;
  margin: 0 auto 48px;
  text-align: center;
}
.section-title {
  margin: 12px 0;
  font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem);
}
.section-lead {
  margin: 0;
  color: var(--muted);
  font-size: 1.05rem;
}
/* จุดเด่น (แผงที่ซ้อนขอบล่างของส่วนเปิดหน้า) */
.features {
  background: var(--bg);
}
.features-panel {
  position: relative;
  z-index: 1;
  top: calc(-1 * clamp(4rem, 7vw, 5.5rem));
  margin-bottom: calc(-1 * clamp(4rem, 7vw, 5.5rem));
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
}
.feature {
  display: flex;
  gap: 16px;
  padding: 28px;
  background: #fff;
}
.feature h3 {
  margin: 2px 0 4px;
  font-size: 1.05rem;
}
.feature p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
}
.feature-icon,
.module-icon {
  flex: 0 0 48px;
  display: inline-grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: var(--radius);
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 1.35rem;
}
/* ระบบงาน */
.modules {
  background: var(--bg);
}
.module {
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 28px 24px;
  box-shadow: var(--shadow-sm);
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.module:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(29, 78, 216, .35);
}
.module:hover .module-icon {
  background: var(--blue-700);
  color: #fff;
}
.module .module-icon {
  margin-bottom: 18px;
  transition: background-color .25s, color .25s;
}
.module h3 {
  font-size: 1.12rem;
  margin-bottom: 6px;
}
.module p {
  margin: 0 0 16px;
  color: var(--muted);
  font-size: .95rem;
}
.module ul,
.plan ul {
  margin: 0;
  padding: 0;
  list-style: none;
}
.module li,
.plan li {
  position: relative;
  margin: 8px 0;
  padding-left: 28px;
  font-size: .95rem;
  color: var(--ink-2);
  line-height: 1.6;
}
.module li::before,
.plan li::before {
  content: '✓';
  position: absolute;
  left: 0;
  top: 2px;
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: .7rem;
  font-weight: 700;
}
/* ราคา */
.plan {
  position: relative;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 32px 26px 26px;
  transition: transform .25s, box-shadow .25s, border-color .25s;
}
.plan:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: rgba(29, 78, 216, .35);
}
.plan h3 {
  font-size: 1.12rem;
  margin-bottom: 12px;
}
.plan-price {
  display: flex;
  align-items: baseline;
  gap: 2px;
  margin: 0 0 12px;
  font-size: 2.5rem;
  font-weight: 700;
  line-height: 1.1;
  letter-spacing: -.02em;
  color: var(--navy-900);
}
.plan-price sup {
  align-self: flex-start;
  margin-top: .35em;
  font-size: 1.1rem;
}
.plan-price small {
  margin-left: 4px;
  font-size: .95rem;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--muted);
}
.plan-members {
  align-self: flex-start;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin: 0 0 20px;
  padding: 4px 12px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: .88rem;
  font-weight: 500;
}
.plan ul {
  flex: 1;
  margin-bottom: 24px;
  padding-top: 20px;
  border-top: 1px solid var(--line);
}
.plan .plan-includes {
  color: var(--blue-700);
  font-weight: 500;
}
.plan .plan-includes::before {
  content: '+';
  background: var(--blue-700);
  color: #fff;
  font-size: .85rem;
}
.plan .btn {
  width: 100%;
}
.plan.recommended {
  background: var(--hero-bg);
  border-color: transparent;
  color: #fff;
  box-shadow: 0 30px 60px -30px rgba(10, 31, 68, .7);
}
.plan.recommended h3,
.plan.recommended .plan-price {
  color: #fff;
}
.plan.recommended .plan-price small {
  color: var(--blue-200);
}
.plan.recommended .plan-members {
  background: rgba(255, 255, 255, .1);
  color: var(--blue-100);
}
.plan.recommended ul {
  border-top-color: rgba(255, 255, 255, .14);
}
.plan.recommended li {
  color: #E2E8F0;
}
.plan.recommended li::before {
  background: rgba(250, 204, 21, .18);
  color: var(--yellow);
}
.plan.recommended .plan-includes {
  color: var(--yellow);
}
.plan.recommended .plan-includes::before {
  background: var(--yellow);
  color: var(--navy-900);
}
.plan-badge {
  position: absolute;
  top: -13px;
  left: 26px;
  padding: 3px 14px;
  border-radius: 999px;
  background: var(--yellow);
  color: var(--navy-900);
  font-size: .8rem;
  font-weight: 700;
  box-shadow: 0 8px 18px -8px rgba(250, 204, 21, .8);
}
/* ขั้นตอน */
.steps-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 24px;
}
.step {
  position: relative;
  text-align: center;
  padding: 0 12px;
}
.step + .step::before {
  content: '';
  position: absolute;
  z-index: 0;
  top: 30px;
  right: calc(50% + 42px);
  width: calc(100% - 60px);
  height: 2px;
  background: linear-gradient(90deg, var(--blue-200), var(--blue-600));
}
.step-no {
  position: relative;
  z-index: 1;
  display: inline-grid;
  place-items: center;
  width: 60px;
  height: 60px;
  margin-bottom: 18px;
  border-radius: 18px;
  background: var(--navy-900);
  color: var(--yellow);
  font-size: 1.4rem;
  font-weight: 700;
  box-shadow: var(--shadow);
}
.step h3 {
  font-size: 1.15rem;
  margin-bottom: 6px;
}
.step p {
  margin: 0 auto;
  max-width: 300px;
  color: var(--muted);
}
/* คำถามที่พบบ่อย */
.faq-grid {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(0, 1.4fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: start;
}
.faq-intro {
  position: sticky;
  top: calc(var(--header-h) + 32px);
}
.faq-intro .section-title {
  text-align: left;
}
.faq-intro p {
  color: var(--muted);
}
.faq-list {
  display: grid;
  gap: 12px;
}
.faq details {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  transition: border-color .2s, box-shadow .2s;
}
.faq details[open] {
  border-color: var(--blue-200);
  box-shadow: var(--shadow-sm);
}
.faq summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px 20px;
  cursor: pointer;
  font-weight: 600;
  color: var(--navy-900);
  list-style: none;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: '+';
  flex: 0 0 28px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--blue-50);
  color: var(--blue-700);
  font-size: 1.2rem;
  font-weight: 500;
  line-height: 1;
  transition: transform .25s, background-color .25s, color .25s;
}
.faq details[open] summary::after {
  transform: rotate(45deg);
  background: var(--blue-700);
  color: #fff;
}
.faq summary:hover {
  color: var(--blue-700);
}
.faq details p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--ink-2);
}
/* ชวนสมัคร */
.cta {
  padding: 0 0 clamp(3.5rem, 6vw, 6rem);
}
.cta-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding: clamp(2.5rem, 5vw, 4rem);
  border-radius: 28px;
}
.cta-box h2 {
  margin: 12px 0 8px;
  font-size: clamp(1.6rem, 1.2rem + 1.4vw, 2.3rem);
  color: #fff;
}
.cta-box p {
  margin: 0;
  color: var(--blue-100);
}
.cta-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  flex-shrink: 0;
}
/* หน้าย่อย */
.page-head {
  padding: clamp(2.5rem, 5vw, 4rem) 0 clamp(2.5rem, 5vw, 3.5rem);
}
.page-head::after {
  content: '';
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--yellow) 0 120px, transparent 120px);
}
.page-head h1 {
  margin: 0 0 8px;
  font-size: clamp(1.7rem, 1.2rem + 1.5vw, 2.4rem);
  color: #fff;
}
.page-head p {
  margin: 0;
  color: var(--blue-100);
  font-size: 1.05rem;
}
.register,
.order,
.renew,
.page-content {
  padding: 40px 0 80px;
}
.register-form {
  max-width: 980px;
  margin: 0 auto;
}
.register-form fieldset {
  min-width: 0;
  margin: 0 0 24px;
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: #fff;
  box-shadow: var(--shadow-sm);
}
.register-form legend {
  float: left;
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 0 0 18px;
  padding: 0;
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--navy-900);
}
.register-form legend + * {
  clear: both;
}
.legend-no {
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: var(--navy-900);
  color: var(--yellow);
  font-size: .95rem;
}
.package-picker {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}
.package-option {
  display: flex;
  gap: 12px;
  margin: 0;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  cursor: pointer;
  font-weight: 400;
  color: var(--ink);
  transition: border-color .2s, background-color .2s, box-shadow .2s;
}
.package-option:hover {
  border-color: var(--blue-200);
}
.package-option:has(input:checked) {
  border-color: var(--blue-600);
  background: var(--blue-50);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
}
.package-option input {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
  margin-top: 4px;
}
.package-body {
  display: grid;
  gap: 2px;
}
.package-body strong {
  color: var(--navy-900);
}
.package-price {
  color: var(--blue-700);
  font-weight: 600;
}
.package-body small {
  color: var(--muted);
}
.total {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
  margin: 20px 0 0;
  padding: 14px 18px;
  border-radius: var(--radius);
  background: var(--bg);
  font-size: 1.05rem;
}
.total strong {
  font-size: 1.6rem;
  color: var(--blue-700);
}
.total small {
  color: var(--muted);
}
.row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 20px;
}
.field-error,
.field-hint {
  margin: 6px 0 0;
  font-size: .88rem;
  min-height: 1em;
}
.field-hint {
  color: var(--muted);
}
.is-error {
  color: var(--danger) !important;
}
.is-ok {
  color: var(--success) !important;
}
.accept {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-weight: 400;
  margin-top: 20px;
  color: var(--ink-2);
}
.accept input {
  margin-top: 5px;
}
.hp {
  position: absolute;
  left: -10000px;
  width: 1px;
  height: 1px;
  overflow: hidden;
}
.form-message {
  padding: 12px 16px;
  border-radius: 10px;
}
.form-message.is-error {
  background: #FEF2F2;
  border: 1px solid #FECACA;
}
.form-message.is-success {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  color: var(--success);
}
.notice {
  padding: 20px;
  border-radius: var(--radius);
  background: #fff;
  border: 1px solid var(--line);
  text-align: center;
  color: var(--muted);
}
.register-done {
  max-width: 640px;
  margin: 0 auto;
  text-align: center;
  padding: 48px 32px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
}
.done-icon {
  display: inline-grid;
  place-items: center;
  width: 80px;
  height: 80px;
  margin-bottom: 16px;
  border-radius: 50%;
  background: #DCFCE7;
  color: var(--success);
  font-size: 2.4rem;
}
.order-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 24px;
  align-items: start;
}
.order-grid h2 {
  font-size: 1.25rem;
}
.order-grid h3 {
  font-size: 1.02rem;
  margin-top: 20px;
}
.order-items {
  width: 100%;
  border-collapse: collapse;
  margin-bottom: 20px;
}
.order-items th,
.order-items td {
  padding: 10px 8px;
  border-bottom: 1px solid var(--line);
  text-align: left;
}
.order-items thead th {
  color: var(--muted);
  font-size: .88rem;
  font-weight: 600;
}
.order-items tfoot th {
  border-bottom: 0;
  font-size: 1.05rem;
  color: var(--navy-900);
}
.order-items .right {
  text-align: right;
}
.order-meta {
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 8px 20px;
  margin: 0;
}
.order-meta dt {
  color: var(--muted);
}
.order-meta dd {
  margin: 0;
}
.status {
  display: inline-block;
  padding: 2px 12px;
  border-radius: 999px;
  background: var(--blue-50);
  color: var(--blue-700);
  font-weight: 600;
  font-size: .9rem;
}
.promptpay {
  text-align: center;
}
.promptpay canvas {
  max-width: 240px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.banks ul {
  list-style: none;
  padding: 0;
  margin: 0;
}
.banks li {
  padding: 12px 0;
  border-bottom: 1px dashed var(--line);
}
.notify-form {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.notify-form button {
  margin-top: 16px;
}
.renew form button {
  margin-top: 20px;
  width: 100%;
}
.page-content .card {
  padding: clamp(24px, 4vw, 48px);
}
.page-content h1 {
  font-size: clamp(1.6rem, 1.2rem + 1.2vw, 2rem);
}
.page-content h2 {
  margin-top: 1.6em;
  font-size: 1.25rem;
}
.page-content li {
  margin: 6px 0;
  color: var(--ink-2);
}
.view-notfound .page-content {
  padding: 100px 0;
}
.view-notfound h1 {
  font-size: clamp(1.8rem, 1.2rem + 2vw, 2.6rem);
}
/* ส่วนท้าย */
.site-footer {
  background: var(--navy-950);
  color: #CBD5E1;
  padding: 64px 0 28px;
  font-size: .95rem;
}
.footer-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) repeat(2, minmax(0, 1fr));
  gap: 40px;
}
.footer-brand .brand {
  color: #fff;
  margin-bottom: 14px;
}
.footer-brand .brand-mark {
  background: var(--yellow);
  color: var(--navy-900);
  box-shadow: none;
}
.footer-brand p {
  max-width: 380px;
  margin: 0;
  color: #94A3B8;
}
.footer-links h2 {
  margin: 0 0 14px;
  font-size: .82rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #fff;
}
.footer-links ul {
  margin: 0;
  padding: 0;
  list-style: none;
  display: grid;
  gap: 8px;
}
.site-footer a {
  color: #CBD5E1;
  transition: color .2s;
}
.site-footer a:hover {
  color: var(--yellow);
}
.site-footer .copy {
  margin: 48px 0 0;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, .1);
  color: #64748B;
  font-size: .88rem;
}
/* ค่อย ๆ ปรากฏเมื่อเลื่อนถึง (เบราว์เซอร์ที่ไม่รองรับจะแสดงตามปกติ) */
@media (prefers-reduced-motion: no-preference) {
  @supports (animation-timeline: view()) {
    .reveal {
      animation: reveal linear both;
      animation-timeline: view();
      animation-range: entry 0% entry 35%;
    }
  }
}
@keyframes reveal {
  from {
    opacity: 0;
    transform: translateY(28px);
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *,
  *::before,
  *::after {
    transition: none !important;
  }
}
@media (max-width: 1024px) {
  .features-panel {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  .footer-brand {
    grid-column: 1 / -1;
  }
}
@media (max-width: 860px) {
  :root {
    --header-h: 64px;
  }
  .hero .wrap,
  .order-grid,
  .row,
  .faq-grid,
  .steps-grid {
    grid-template-columns: 1fr;
  }
  .faq-intro {
    position: static;
  }
  .step + .step::before {
    display: none;
  }
  .cta-box {
    flex-direction: column;
    align-items: flex-start;
  }
  .nav-toggle {
    display: block;
    position: absolute;
    width: 1px;
    height: 1px;
    opacity: 0;
    pointer-events: none;
  }
  .nav-button {
    position: relative;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    margin-right: -8px;
    border-radius: 10px;
    cursor: pointer;
  }
  .nav-button span,
  .nav-button span::before,
  .nav-button span::after {
    position: absolute;
    display: block;
    width: 22px;
    height: 2px;
    border-radius: 2px;
    background: var(--navy-900);
    content: '';
    transition: transform .25s, background-color .25s;
  }
  .nav-button span::before {
    transform: translateY(-7px);
  }
  .nav-button span::after {
    transform: translateY(7px);
  }
  .nav-toggle:checked + .nav-button span {
    background: transparent;
  }
  .nav-toggle:checked + .nav-button span::before {
    transform: rotate(45deg);
  }
  .nav-toggle:checked + .nav-button span::after {
    transform: rotate(-45deg);
  }
  .nav-toggle:focus-visible + .nav-button {
    outline: 3px solid var(--blue-400);
  }
  .site-nav {
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    display: none;
    flex-direction: column;
    align-items: stretch;
    gap: 2px;
    padding: 12px 16px 20px;
    background: #fff;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 20px 50px rgba(10, 31, 68, .18);
  }
  .site-nav a:not(.btn) {
    padding: 12px;
  }
  .site-nav .btn {
    margin: 8px 0 0;
  }
  .nav-toggle:checked ~ .site-nav {
    display: flex;
  }
}
@media (max-width: 600px) {
  .wrap {
    padding: 0 16px;
  }
  .features-panel {
    grid-template-columns: 1fr;
  }
  .feature,
  .card,
  .register-form fieldset {
    padding: 22px 20px;
  }
  .hero-card {
    padding: 24px 20px;
  }
  .hero-actions .btn,
  .cta-actions,
  .cta-actions .btn {
    width: 100%;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .input-suffix span {
    padding: 0 10px;
    font-size: .9rem;
  }
}