/* =========================================================
   Luxe Clinical — ส่วนประกอบหน้าเว็บโปรแกรมคลินิก (prefix lx-)
   ใช้สีจากตัวแปรใน app.css · ส่วนพื้นเข้ม (hero, ความปลอดภัย, CTA) ใช้ --night คงที่ทุกธีม
   ========================================================= */

.lx-wrap { width: min(100% - 2 * var(--gutter), var(--container)); margin-inline: auto; }
[class*="lx-"] .icon { stroke-width: 1.5; }

.lx-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin: 0;
  color: var(--gold-text);
  font: 500 14.5px/1.4 var(--font-body);
  letter-spacing: .04em;
}
.lx-eyebrow::before { content: ""; width: 28px; height: 1px; background: currentColor; flex: none; }
.lx-dark .lx-eyebrow { color: var(--gold-l); }

.lx-h2 { margin: 16px 0 0; font-family: var(--font-display); font-size: clamp(30px, 3.4vw, 46px); font-weight: 500; line-height: 1.32; letter-spacing: 0; }
.lx-h2 strong { font-weight: 700; }

/* ปุ่มบนพื้นเข้ม */
.btn-glass { border-color: rgba(255, 255, 255, .28); color: #fff; background: rgba(255, 255, 255, .04); }
.btn-glass:hover { border-color: rgba(255, 255, 255, .5); background: rgba(255, 255, 255, .08); }

/* ---------------------------------------------------------- header (พื้นกรมท่าทุกธีม) */

/* เบลอพื้นหลังไว้ที่ ::before — ถ้าใส่ backdrop-filter ที่ header เอง เมนูเต็มจอ (position: fixed) จะถูกจำกัดให้สูงเท่า header */
.site-header {
  background: transparent;
  border-bottom-color: rgba(255, 255, 255, .06);
}
.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(6, 17, 31, .9);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
}
.site-header .logo { color: #fff; }
.site-header .logo-text { display: grid; line-height: 1.15; font-family: var(--font-display); font-weight: 500; letter-spacing: .02em; }
.site-header .logo-text small, .site-footer .logo-text small { font: 500 12px/1.4 var(--font-body); letter-spacing: .26em; color: var(--gold-l); }
.site-footer .logo-text { display: grid; line-height: 1.15; }
.site-footer .logo-text small { color: var(--gold-text); }
.site-header .nav-desktop a { color: #B9C7D8; font-weight: 400; }
.site-header .nav-desktop a:hover { color: #fff; background: rgba(255, 255, 255, .06); }
.site-header .nav-desktop a[aria-current="page"] { color: #fff; }
.site-header .nav-desktop a[aria-current="page"]::after { background: var(--gold); }
.site-header .theme-toggle, .site-header .menu-toggle { border-color: rgba(255, 255, 255, .16); color: #C9D6E5; }
.site-header .theme-toggle:hover, .site-header .menu-toggle:hover { background: rgba(255, 255, 255, .06); color: #fff; }

/* ---------------------------------------------------------- hero (พื้นเข้ม) */

/* พื้นเข้มทุกธีม: ตั้งสีตัวอักษรของธีมใหม่ภายในกล่อง ให้หัวข้อจาก app.css เป็นสีอ่อน */
.lx-dark, .lx-type.is-hi, .lx-price.is-featured, .lx-cta, .lx-co {
  --text: #EEF4FB;
  --text-2: #BBCADC;
  --muted: #9DAFC5;
  --accent: #5ED3C5;
  --gold-text: #E8D5AE;
  color: var(--text);
}

.lx-dark {
  position: relative;
  overflow: hidden;
  color: #fff;
  background:
    radial-gradient(900px 600px at 78% 30%, rgba(43, 181, 168, .22), transparent 60%),
    radial-gradient(700px 500px at 10% 90%, rgba(201, 169, 110, .14), transparent 60%),
    linear-gradient(180deg, var(--night), var(--night-2));
}
.lx-hero::before, .lx-phero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask: radial-gradient(800px 500px at 60% 40%, #000, transparent 75%);
  mask: radial-gradient(800px 500px at 60% 40%, #000, transparent 75%);
  pointer-events: none;
}
.lx-hero { padding: 88px 0 150px; }
.lx-hero .lx-wrap { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 56px; align-items: center; }
.lx-hero h1, .lx-phero h1 { margin: 22px 0; font-family: var(--font-display); font-size: clamp(38px, 4.6vw, 60px); font-weight: 500; line-height: 1.3; letter-spacing: 0; }
.lx-hero h1 strong, .lx-phero h1 strong {
  display: inline-block;
  padding-top: .08em; /* กันสระบนถูกตัดตอนไล่สีตัวอักษร */
  font-weight: 700;
  background: linear-gradient(90deg, var(--gold-l), #fff 45%, var(--teal-l));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.lx-lead { margin: 0; max-width: 560px; color: #D3DEEA; font-size: 18px; font-weight: 400; line-height: 1.75; }
.lx-actions { display: flex; flex-wrap: wrap; gap: 14px; margin-top: 36px; }
.lx-proof { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 40px 0 0; padding: 0; list-style: none; color: #B9C7D8; font-size: 15px; }
.lx-proof li { display: flex; align-items: center; gap: 8px; }
.lx-proof .icon { color: var(--teal-l); }

.lx-stage { position: relative; perspective: 1600px; }
.lx-frame {
  padding: 10px;
  border-radius: 20px;
  background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04));
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .7);
  transform: rotateY(-11deg) rotateX(5deg);
  transform-origin: left center;
}
.lx-frame img { display: block; width: 100%; height: auto; border-radius: 12px; }
.lx-glass {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 16px;
  background: rgba(10, 27, 46, .66);
  -webkit-backdrop-filter: blur(14px);
  backdrop-filter: blur(14px);
  border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 20px 40px -18px rgba(0, 0, 0, .6);
  color: #C9D6E5;
  font-size: 14.5px;
  line-height: 1.45;
}
.lx-glass b { display: block; color: #fff; font: 600 15.5px/1.3 var(--font-display); }
.lx-glass .lx-dot { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; flex: none; }
.lx-glass--a { left: -40px; top: 40px; }
.lx-glass--a .lx-dot { background: rgba(229, 154, 174, .18); color: #F3B7C6; }
.lx-glass--b { left: -14px; bottom: 24px; }
.lx-glass--b .lx-dot { background: rgba(43, 181, 168, .18); color: var(--teal-l); }
.lx-phone {
  position: absolute;
  right: -10px;
  bottom: -60px;
  width: 168px;
  padding: 7px;
  border-radius: 30px;
  background: #0A1626;
  border: 1px solid rgba(232, 213, 174, .3);
  box-shadow: 0 40px 80px -24px rgba(0, 0, 0, .8);
}
.lx-phone img { display: block; width: 100%; height: auto; border-radius: 24px; }

/* หัวหน้าเพจภายใน */
.lx-phero { padding: 88px 0 100px; }
.lx-phero .lx-wrap { position: relative; }
.lx-phero h1 { max-width: 880px; }
.lx-phero .lx-lead { margin-top: 18px; }
.lx-cta .lx-eyebrow { color: var(--gold-l); }
.lx-crumb ol { display: flex; flex-wrap: wrap; gap: 6px; margin: 0; padding: 0; list-style: none; font-size: 14.5px; color: #B9C7D8; }
.lx-crumb li + li::before { content: "·"; margin-right: 6px; }
.lx-crumb a { color: #B9C7D8; text-decoration: none; }
.lx-crumb a:hover { color: #fff; }
.lx-crumb [aria-current] { color: var(--gold-l); }

.lx-tabs { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 44px; }
.lx-tabs a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 0 20px;
  border-radius: var(--pill);
  border: 1px solid rgba(255, 255, 255, .16);
  background: rgba(255, 255, 255, .03);
  color: #B9C7D8;
  font: 400 16px var(--font-display);
  text-decoration: none;
}
.lx-tabs a:hover { color: #fff; border-color: rgba(255, 255, 255, .36); }
.lx-tabs .icon { color: var(--teal-l); }

/* ---------------------------------------------------------- ตัวเลขใต้ hero */

.lx-stats { position: relative; z-index: 3; margin-top: -64px; }
.lx-stats dl {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  margin: 0;
  border-radius: 24px;
  background: var(--panel);
  border: 1px solid var(--line);
  box-shadow: var(--card-shadow);
}
.lx-stats dl > div { display: flex; flex-direction: column-reverse; justify-content: flex-end; padding: 26px; border-left: 1px solid var(--line); }
.lx-stats dl > div:first-child { border-left: 0; }
.lx-stats dd { margin: 0; font: 400 38px/1.1 var(--font-display); color: var(--text); }
.lx-stats dd em { font-style: normal; font-weight: 400; color: var(--gold-text); }
.lx-stats dt { margin-top: 6px; font-size: 14.5px; color: var(--muted); }

/* ---------------------------------------------------------- section */

.lx-section { padding: var(--section-y) 0; }
.lx-section--tight { padding-top: 0; }
.lx-mist { background: var(--panel-2); }
.lx-head { display: grid; grid-template-columns: 1.6fr 1fr; gap: 40px; align-items: end; margin-bottom: 56px; }
.lx-head p:last-child { margin: 0; color: var(--muted); font-size: 16.5px; }

/* วงกลมไอคอน */
.lx-ring {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--panel-2);
  color: var(--accent);
  flex: none;
}

/* ประเภทคลินิก */
.lx-types { display: grid; grid-template-columns: repeat(5, 1fr); gap: 18px; }
.lx-types--4 { grid-template-columns: repeat(4, 1fr); }
.lx-type {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 14px;
  min-height: 280px;
  padding: 28px 24px 26px;
  border-radius: var(--radius-lg);
  background: var(--panel);
  border: 1px solid var(--line);
  color: var(--text);
  text-decoration: none;
  transition: transform .25s var(--ease), box-shadow .25s var(--ease);
}
.lx-type:hover { transform: translateY(-4px); box-shadow: var(--card-shadow); }
.lx-type h3 { margin: 0; font: 400 20px/1.3 var(--font-display); }
.lx-type p { margin: 0; color: var(--muted); font-size: 15.5px; line-height: 1.65; }
.lx-type .lx-go { margin-top: auto; display: flex; align-items: center; gap: 6px; font: 600 15px var(--font-display); }
.lx-num { position: absolute; right: 20px; top: 18px; font: 400 14.5px var(--font-display); color: var(--gold-text); letter-spacing: .1em; }
.lx-type.is-hi { background: linear-gradient(160deg, var(--night-2), var(--night-3)); border-color: transparent; color: #fff; }
.lx-type.is-hi .lx-ring { background: rgba(255, 255, 255, .06); border-color: rgba(232, 213, 174, .4); color: var(--gold-l); }
.lx-type.is-hi p { color: #C4D1DF; }
.lx-type.is-hi .lx-go, .lx-type.is-hi .lx-num { color: var(--gold-l); }

/* สองคอลัมน์ ข้อความ + ภาพ */
.lx-split { display: grid; grid-template-columns: 1fr 1.05fr; gap: 70px; align-items: center; }
.lx-split .lx-lead-dark { margin: 18px 0 30px; color: var(--text-2); font-size: 17.5px; font-weight: 400; }
.lx-dl { display: grid; grid-template-columns: 1fr 1fr; margin: 0; border-top: 1px solid var(--border); }
.lx-dl > div { display: grid; grid-template-columns: auto 1fr; column-gap: 14px; align-content: start; padding: 18px 6px; border-bottom: 1px solid var(--border); }
.lx-dl > div > .icon { grid-row: span 2; }
.lx-dl > div:nth-child(odd) { border-right: 1px solid var(--border); padding-right: 18px; }
.lx-dl > div:nth-child(even) { padding-left: 18px; }
.lx-dl .icon { color: var(--accent); margin-top: 3px; flex: none; }
.lx-dl dt { font: 600 16.5px var(--font-display); }
.lx-dl dd { margin: 0; font-size: 14.5px; color: var(--muted); }
.lx-shot { padding: 12px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); box-shadow: var(--shadow-frame); }
.lx-shot img { display: block; width: 100%; height: auto; border-radius: 18px; }

/* ฟีเจอร์ 9 หมวด */
.lx-fgrid { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.lx-fcat { padding: 32px 30px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--panel); }
.lx-fcat.is-addon { background: linear-gradient(180deg, var(--gold-tint), var(--panel)); }
.lx-fcat-top { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.lx-fcat-top .lx-ring { width: 44px; height: 44px; }
.lx-fcat-top small { display: block; font: 400 14.5px var(--font-display); color: var(--gold-text); letter-spacing: .12em; }
.lx-fcat h3 { margin: 0; font: 600 19px/1.3 var(--font-display); }
.lx-tag { margin-left: auto; padding: 3px 10px; border: 1px solid var(--gold); border-radius: var(--pill); color: var(--gold-text); font: 500 12.5px var(--font-body); letter-spacing: .14em; }
.lx-fcat ul { display: grid; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lx-fcat li { position: relative; padding-left: 20px; color: var(--text-2); font-size: 15.5px; line-height: 1.55; }
.lx-fcat li::before { content: ""; position: absolute; left: 0; top: 10px; width: 8px; height: 1px; background: var(--teal); }
.lx-fcat li b { color: var(--text); font-weight: 500; }

/* เส้นทางในหนึ่งวัน */
.lx-journey { position: relative; display: grid; grid-template-columns: repeat(7, 1fr); margin: 0; padding: 0; list-style: none; }
.lx-journey::before { content: ""; position: absolute; left: 7%; right: 7%; top: 31px; height: 1px; background: linear-gradient(90deg, var(--gold-l), var(--teal), var(--gold-l)); }
.lx-journey li { position: relative; padding: 0 6px; text-align: center; }
.lx-journey .lx-ring { width: 62px; height: 62px; margin: 0 auto 16px; background: var(--panel); border-color: var(--border-2); box-shadow: 0 10px 20px -14px rgba(6, 17, 31, .4); }
.lx-journey b { display: block; font: 600 16.5px var(--font-display); }
.lx-journey span { font-size: 14.5px; color: var(--muted); }

/* ภาพหน้าจอแบบ bento */
.lx-bento { display: grid; grid-template-columns: repeat(4, 1fr); grid-auto-rows: 220px; gap: 18px; margin: 0; padding: 0; list-style: none; }
.lx-bento li { position: relative; overflow: hidden; border-radius: 22px; background: var(--panel); border: 1px solid var(--line); }
.lx-bento img { display: block; width: 100%; height: 100%; object-fit: cover; object-position: top left; }
.lx-bento .w2 { grid-column: span 2; }
.lx-bento .h2 { grid-row: span 2; }
.lx-bento .top img { object-position: top center; }
.lx-bento p {
  position: absolute;
  left: 12px;
  bottom: 12px;
  max-width: calc(100% - 24px);
  margin: 0;
  padding: 10px 14px;
  border-radius: 14px;
  background: rgba(6, 17, 31, .74);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  color: #fff;
  font: 600 15px/1.35 var(--font-display);
}
.lx-bento p span { display: block; font: 400 14px/1.4 var(--font-body); color: #B9C7D8; }
.lx-privacy { display: flex; justify-content: center; align-items: center; gap: 8px; margin: 22px 0 0; color: var(--muted); font-size: 14.5px; }
.lx-privacy .icon { color: var(--gold-text); }

/* ความปลอดภัย (พื้นเข้ม) */
.lx-sec { background: linear-gradient(180deg, var(--night), var(--night-2)); color: #fff; }
.lx-sec::after { content: ""; position: absolute; right: -200px; top: -200px; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(43, 181, 168, .18), transparent 65%); pointer-events: none; }
.lx-sec .lx-head p:last-child { color: #C4D1DF; }
.lx-cards4 { position: relative; z-index: 1; display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; }
.lx-sec .lx-cards4 li { padding: 28px 24px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.lx-sec .lx-ring { width: 48px; height: 48px; background: transparent; border-color: rgba(232, 213, 174, .4); color: var(--gold-l); }
.lx-cards4 b { display: block; margin: 18px 0 6px; font: 600 17px var(--font-display); }
.lx-sec .lx-cards4 span { color: #C4D1DF; font-size: 15px; }

/* ราคา */
.lx-prices { display: grid; grid-template-columns: 1fr 1.1fr 1fr; gap: 20px; align-items: stretch; }
.lx-price { display: flex; flex-direction: column; gap: 16px; padding: 36px 32px; border-radius: 28px; background: var(--panel); border: 1px solid var(--line); }
.lx-price h3 { margin: 0; font: 500 15px var(--font-body); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.lx-amt { margin: 0; font: 400 52px/1 var(--font-display); }
.lx-amt small { margin-left: 6px; font: 400 16px var(--font-body); color: var(--muted); }
.lx-price ul { display: grid; gap: 12px; margin: 6px 0 0; padding: 0; list-style: none; color: var(--text-2); font-size: 16px; }
.lx-price li { display: flex; gap: 10px; }
.lx-price li .icon { color: var(--accent); margin-top: 4px; flex: none; }
.lx-price .btn { justify-content: center; margin-top: auto; }
.lx-price.is-featured { transform: translateY(-14px); background: linear-gradient(160deg, var(--night), var(--night-3)); border-color: rgba(201, 169, 110, .55); color: #fff; box-shadow: 0 40px 80px -36px rgba(6, 17, 31, .7); }
.lx-price.is-featured h3 { color: var(--gold-l); }
.lx-price.is-featured .lx-amt small { color: #C4D1DF; }
.lx-price.is-featured ul { color: #C9D6E5; }
.lx-price.is-featured li .icon { color: var(--gold-l); }
.lx-badge { align-self: flex-start; padding: 5px 14px; border-radius: var(--pill); background: linear-gradient(90deg, var(--gold-l), var(--gold)); color: #1C1407; font: 600 13.5px var(--font-display); }

/* ตารางเปรียบเทียบ */
.lx-cmp-wrap { overflow-x: auto; border-radius: 24px; border: 1px solid var(--line); background: var(--panel); }
.lx-cmp { width: 100%; border-collapse: collapse; font-size: 16px; }
.lx-cmp th, .lx-cmp td { padding: 17px 24px; border-bottom: 1px solid var(--line); text-align: center; }
.lx-cmp th:first-child, .lx-cmp td:first-child { text-align: left; color: var(--text-2); font-weight: 400; }
.lx-cmp thead th { background: var(--panel-2); color: var(--text); font: 600 16px var(--font-display); }
.lx-cmp thead th.is-pro { background: var(--night-2); color: var(--gold-l); }
.lx-cmp td.is-pro { background: var(--gold-tint); }
.lx-cmp .icon { color: var(--accent); vertical-align: middle; }
.lx-cmp .lx-no { color: var(--subtle); }
.lx-cmp .lx-grp th { padding-top: 26px; background: var(--panel); color: var(--gold-text); font: 500 14px var(--font-body); letter-spacing: .04em; text-align: left; }
.lx-cmp tbody tr:last-child td { border-bottom: 0; }

/* ขั้นตอน 4 ขั้น */
.lx-steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin: 0; padding: 0; list-style: none; counter-reset: lx-step; }
.lx-steps li { padding: 30px 26px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); counter-increment: lx-step; }
.lx-steps li::before { content: counter(lx-step, decimal-leading-zero); display: block; font: 400 46px/1 var(--font-display); color: var(--gold-text); }
.lx-steps b { display: block; margin: 18px 0 6px; font: 600 18px var(--font-display); }
.lx-steps span { font-size: 15.5px; color: var(--muted); }

/* คำถามที่พบบ่อย */
.lx-faqw { display: grid; grid-template-columns: 1fr 1.6fr; gap: 64px; align-items: start; }
.lx-faqw .lx-side-note { margin: 16px 0 0; color: var(--muted); }
.lx-faq { display: grid; gap: 12px; }
.lx-faq details { padding: 0 28px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line); }
.lx-faq summary { display: flex; justify-content: space-between; align-items: center; gap: 20px; min-height: 68px; cursor: pointer; list-style: none; font: 400 17px/1.4 var(--font-display); }
.lx-faq summary::-webkit-details-marker { display: none; }
.lx-faq summary::after { content: "+"; font: 400 30px/1 var(--font-display); color: var(--gold-text); }
.lx-faq details[open] summary::after { content: "–"; }
.lx-faq details p { margin: 0 0 24px; color: var(--text-2); font-size: 16.5px; }

/* ปัญหา → วิธีแก้ (หน้าโซลูชัน) */
.lx-rows > section { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; padding: 64px 0; border-top: 1px solid var(--line); scroll-margin-top: calc(var(--header-h) + 16px); }
.lx-rows > section:first-child { border-top: 0; padding-top: 0; }
.lx-rows > section:nth-child(even) > :first-child { order: 2; }
.lx-rows h2 { margin: 16px 0; font: 400 34px/1.25 var(--font-display); letter-spacing: 0; }
.lx-rows h2 strong { font-weight: 700; }
.lx-rows p.lx-row-lead { margin: 0 0 24px; color: var(--text-2); font-size: 17px; font-weight: 400; }
.lx-ticks { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.lx-ticks li { display: flex; gap: 12px; color: var(--text-2); font-size: 16.5px; }
.lx-ticks li b { color: var(--text); font-weight: 500; }
.lx-ticks .icon { color: var(--accent); margin-top: 3px; flex: none; }
.lx-art { display: grid; place-items: center; aspect-ratio: 16 / 10; border-radius: 28px; background: radial-gradient(400px 260px at 70% 30%, rgba(43, 181, 168, .25), transparent 70%), linear-gradient(160deg, var(--night-2), var(--night-3)); color: var(--gold-l); }
.lx-art .lx-ring { width: 120px; height: 120px; background: rgba(255, 255, 255, .04); border-color: rgba(232, 213, 174, .35); color: var(--gold-l); }
.lx-art .icon { width: 52px; height: 52px; stroke-width: 1.2; }

.lx-core { display: grid; grid-template-columns: 1fr 1.5fr; gap: 56px; align-items: center; padding: 52px 56px; border-radius: 32px; background: var(--panel-2); }
.lx-chips { display: flex; flex-wrap: wrap; gap: 10px; margin: 0; padding: 0; list-style: none; }
.lx-chips li { display: inline-flex; align-items: center; gap: 8px; padding: 11px 18px; border-radius: var(--pill); background: var(--panel); border: 1px solid var(--line); color: var(--text-2); font-size: 15.5px; }
.lx-chips .icon { color: var(--accent); }

/* เกี่ยวกับเรา */
.lx-story p { margin: 0 0 16px; color: var(--text-2); font-size: 17px; font-weight: 400; }
.lx-quote { margin: 30px 0 0; padding: 4px 0 4px 24px; border-left: 2px solid var(--gold); font: 400 23px/1.6 var(--font-display); color: var(--text); }
.lx-cards4--light li { padding: 32px 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.lx-cards4--light b { font-size: 18.5px; }
.lx-cards4--light span { color: var(--muted); font-size: 15.5px; }
.lx-co { display: grid; grid-template-columns: repeat(4, 1fr); margin: 0; border-radius: 28px; overflow: hidden; background: linear-gradient(160deg, var(--night), var(--night-3)); border: 1px solid rgba(201, 169, 110, .35); color: #fff; }
.lx-co > div { padding: 32px 30px; border-left: 1px solid rgba(255, 255, 255, .08); }
.lx-co > div:first-child { border-left: 0; }
.lx-co dt { margin-bottom: 8px; color: var(--gold-l); font-size: 14.5px; }
.lx-co dd { margin: 0; font: 400 17px/1.5 var(--font-display); overflow-wrap: anywhere; }

/* แถบชวนนัดเดโม (แทน cta-band เดิม) */
.lx-cta-band { padding: 0 0 var(--section-y); }
.lx-cta {
  display: grid;
  grid-template-columns: 1.4fr auto;
  gap: 40px;
  align-items: center;
  padding: 72px 64px;
  border-radius: 36px;
  background: radial-gradient(600px 400px at 85% 20%, rgba(43, 181, 168, .35), transparent 60%), linear-gradient(135deg, var(--night), var(--night-3));
  color: #fff;
}
.lx-cta h2 { margin: 16px 0 0; font: 400 clamp(28px, 3vw, 42px)/1.25 var(--font-display); }
.lx-cta h2 strong { font-weight: 700; color: var(--gold-l); }
.lx-cta p { margin: 14px 0 0; color: #D3DEEA; }
.lx-cta .lx-actions { margin: 0; justify-content: flex-end; }

/* ผลงาน: หัวกลุ่ม */
.lx-group-title { display: flex; align-items: baseline; gap: 16px; margin: 0 0 28px; font: 400 30px/1.3 var(--font-display); }
.lx-group-title small { color: var(--muted); font: 400 16px var(--font-body); }
.lx-group + .lx-group { margin-top: 80px; padding-top: 56px; border-top: 1px solid var(--line); }

/* ---------------------------------------------------------- responsive */

@media (max-width: 1024px) {
  .lx-hero .lx-wrap, .lx-split, .lx-faqw, .lx-core { grid-template-columns: 1fr; }
  .lx-types, .lx-types--4 { grid-template-columns: repeat(2, 1fr); }
  .lx-fgrid { grid-template-columns: repeat(2, 1fr); }
  .lx-cards4, .lx-steps, .lx-co { grid-template-columns: repeat(2, 1fr); }
  .lx-co > div:nth-child(3) { border-left: 0; }
  .lx-co > div:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .08); }
  .lx-prices { grid-template-columns: 1fr; max-width: 560px; margin-inline: auto; }
  .lx-price.is-featured { transform: none; }
  .lx-stats dl { grid-template-columns: repeat(3, 1fr); }
  .lx-stats dl > div:nth-child(4) { border-left: 0; }
  .lx-stats dl > div:nth-child(n+4) { border-top: 1px solid var(--line); }
  .lx-journey { grid-template-columns: repeat(4, 1fr); row-gap: 28px; }
  .lx-journey::before { display: none; }
  .lx-rows > section { grid-template-columns: 1fr; gap: 32px; }
  .lx-rows > section:nth-child(even) > :first-child { order: 0; }
  .lx-stage { max-width: 680px; }
}

@media (max-width: 640px) {
  .lx-hero { padding: 48px 0 120px; }
  .lx-phero { padding: 52px 0 72px; }
  .lx-lead { font-size: 16.5px; }
  .lx-actions { flex-direction: column; align-items: stretch; }
  .lx-frame { transform: none; }
  .lx-glass { display: none; }
  .lx-phone { width: 112px; right: -4px; bottom: -28px; }
  .lx-stats { margin-top: -48px; }
  .lx-stats dl { grid-template-columns: 1fr 1fr; }
  .lx-stats dl > div { padding: 20px; border-left: 0; border-top: 1px solid var(--line); }
  .lx-stats dl > div:first-child, .lx-stats dl > div:nth-child(2) { border-top: 0; }
  .lx-stats dl > div:nth-child(even) { border-left: 1px solid var(--line); }
  .lx-stats dl > div:last-child { grid-column: span 2; border-left: 0; }
  .lx-stats dd { font-size: 30px; }
  .lx-head { grid-template-columns: 1fr; gap: 16px; margin-bottom: 36px; }
  .lx-types, .lx-types--4, .lx-fgrid, .lx-cards4, .lx-steps, .lx-co { grid-template-columns: 1fr; }
  .lx-co > div { border-left: 0; border-top: 1px solid rgba(255, 255, 255, .08); }
  .lx-co > div:first-child { border-top: 0; }
  .lx-type { min-height: 0; }
  .lx-dl { grid-template-columns: 1fr; }
  .lx-dl > div:nth-child(odd) { border-right: 0; padding-right: 6px; }
  .lx-dl > div:nth-child(even) { padding-left: 6px; }
  .lx-split { gap: 40px; }
  .lx-journey { grid-template-columns: repeat(3, 1fr); }
  .lx-bento { grid-template-columns: 1fr; grid-auto-rows: 240px; }
  .lx-bento .w2, .lx-bento .h2 { grid-column: auto; grid-row: auto; }
  .lx-cmp { min-width: 620px; }
  .lx-cmp th, .lx-cmp td { padding: 14px 16px; }
  .lx-core { padding: 34px 24px; gap: 28px; }
  .lx-faq details { padding: 0 20px; }
  .lx-rows h2 { font-size: 27px; }
  .lx-rows > section { padding: 44px 0; }
  .lx-cta { grid-template-columns: 1fr; padding: 44px 28px; border-radius: 28px; }
  .lx-cta .lx-actions { justify-content: flex-start; }
  .lx-group-title { flex-direction: column; gap: 4px; font-size: 26px; }
}

/* ---------------------------------------------------------- /contact: ฟอร์มนัดเดโมลอยทับหัวหน้า */

.lx-contact { padding-top: 0; }
.lx-contact .contact-grid { position: relative; z-index: 2; margin-top: -56px; grid-template-areas: "form" "info"; }
.lx-contact .lead-form { box-shadow: var(--card-shadow); }
.lx-contact .contact-info { padding: 32px 28px; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
@media (min-width: 1025px) {
  .lx-contact .contact-grid { grid-template-columns: minmax(0, 7fr) minmax(0, 4fr); grid-template-areas: "form info"; grid-template-rows: auto; gap: 28px; }
}
@media (max-width: 640px) {
  .lx-contact .contact-grid { margin-top: -40px; }
}

/* ---------------------------------------------------------- LINE CRM (หน้าแรก) */

.lx-dark.lx-crm {
  background:
    radial-gradient(700px 500px at 12% 18%, rgba(201, 169, 110, .18), transparent 60%),
    radial-gradient(800px 560px at 92% 85%, rgba(43, 181, 168, .2), transparent 60%),
    linear-gradient(180deg, var(--night-2), var(--night));
}
.lx-crm .lx-head p:last-child { color: #C4D1DF; }
.lx-crm-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1.25fr 1fr; gap: 64px; align-items: center; }
.lx-crm-stage { position: relative; padding-bottom: 72px; }
.lx-crm-shot { padding: 10px; border-radius: 20px; background: linear-gradient(145deg, rgba(255, 255, 255, .18), rgba(255, 255, 255, .04)); border: 1px solid rgba(255, 255, 255, .14); box-shadow: 0 50px 100px -30px rgba(0, 0, 0, .7); }
.lx-crm-shot img, .lx-crm-insight img { display: block; width: 100%; height: auto; border-radius: 12px; }
.lx-crm-insight { position: absolute; right: -24px; bottom: 0; width: 46%; padding: 8px; border-radius: 16px; background: #0A1626; border: 1px solid rgba(232, 213, 174, .35); box-shadow: 0 30px 60px -18px rgba(0, 0, 0, .8); }
.lx-crm-list { display: grid; gap: 16px; margin: 0; padding: 0; list-style: none; }
.lx-crm-list li { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-content: start; padding: 24px 26px; border-radius: 22px; background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .1); }
.lx-crm-list .lx-ring { grid-row: span 3; width: 52px; height: 52px; background: transparent; border-color: rgba(232, 213, 174, .4); color: var(--gold-l); }
.lx-crm-tag { font: 500 14px/1.4 var(--font-body); letter-spacing: .2em; color: var(--gold-l); }
.lx-crm-list b { margin: 4px 0 6px; font: 600 19px/1.35 var(--font-display); }
.lx-crm-list li > span:last-child { color: #C4D1DF; font-size: 15.5px; line-height: 1.65; }
.lx-crm-auto { position: relative; z-index: 1; display: flex; flex-wrap: wrap; align-items: center; gap: 10px 12px; margin-top: 48px; padding-top: 32px; border-top: 1px solid rgba(255, 255, 255, .1); }
.lx-crm-auto p { margin: 0 8px 0 0; color: var(--gold-l); font: 500 15px var(--font-body); letter-spacing: .04em; }
.lx-crm-auto span { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: var(--pill); border: 1px solid rgba(255, 255, 255, .16); color: #DDE7F2; font-size: 15.5px; }
.lx-crm-auto .icon { color: var(--teal-l); }
@media (max-width: 1024px) {
  .lx-crm-grid { grid-template-columns: 1fr; gap: 40px; }
  .lx-crm-insight { right: 0; }
}
@media (max-width: 640px) {
  .lx-crm-stage { padding-bottom: 48px; }
  .lx-crm-insight { width: 58%; }
  .lx-crm-list li { padding: 20px; }
  .lx-crm-auto p { width: 100%; }
}

/* ---------------------------------------------------------- หน้าโปรแกรมตามประเภทคลินิก /clinic/{slug} */

.lx-pains { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.lx-pain { overflow: hidden; border-radius: 24px; background: var(--panel); border: 1px solid var(--line); }
.lx-pain-q { margin: 0; padding: 22px 26px; background: var(--panel-2); color: var(--text-2); font-size: 16px; }
.lx-pain > div { padding: 24px 26px; }
.lx-pain h3 { margin: 0 0 8px; font: 600 21px/1.35 var(--font-display); }
.lx-pain > div p { margin: 0; color: var(--text-2); font-size: 16px; }
.lx-split--top { align-items: start; }
.lx-ticks--gap { margin-top: 28px; }
.lx-shots { display: grid; gap: 22px; }
.lx-shots figure { margin: 0; }
.lx-shots figcaption { padding: 12px 8px 4px; color: var(--text-2); font-size: 15px; }
.lx-shots figcaption span { color: var(--muted); }
.lx-links-title { margin: 0 0 20px; font: 600 24px/1.3 var(--font-display); }
.lx-chips a { display: inline-flex; align-items: center; gap: 8px; color: inherit; text-decoration: none; }
.lx-chips a:hover { color: var(--accent); }
.lx-phero .lx-actions { margin-top: 30px; }

/* หน้าแรก: 7 ประเภท + ช่องชวนนัดเดโม · ฟีเจอร์ 2 กลุ่ม */
.lx-types.lx-types--8 { grid-template-columns: repeat(4, 1fr); }
.lx-type-cta { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 12px; padding: 28px 24px; border-radius: var(--radius-lg); border: 1px dashed var(--gold); background: var(--gold-tint); }
.lx-type-cta b { font: 600 21px/1.35 var(--font-display); }
.lx-type-cta span { color: var(--text-2); font-size: 15.5px; }
.lx-fgrid.lx-fgrid--4 { grid-template-columns: repeat(4, 1fr); }
.lx-fgrid--4 .lx-fcat { padding: 26px 22px; }
.lx-sub { display: flex; align-items: baseline; gap: 14px; margin: 0 0 20px; font: 600 25px/1.3 var(--font-display); }
.lx-fgrid + .lx-sub { margin-top: 56px; }
.lx-sub small { color: var(--muted); font: 400 15.5px var(--font-body); }

@media (max-width: 1024px) {
  .lx-pains { grid-template-columns: 1fr; }
  .lx-types.lx-types--8, .lx-fgrid.lx-fgrid--4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 640px) {
  .lx-types.lx-types--8, .lx-fgrid.lx-fgrid--4 { grid-template-columns: 1fr; }
  .lx-sub { flex-direction: column; gap: 2px; }
}
