@charset "UTF-8";
/* ==========================================================================
   คิมทำเว็บ (Kimtamweb) — เว็บไซต์ธุรกิจรับทำเว็บ
   Design system: "Deep Teal & Coral"
   --------------------------------------------------------------------------
   โครงไฟล์
     1.  Design tokens (light)
     2.  Dark mode tokens
     3.  Reset & base
     4.  Typography
     5.  Layout (container / section / grid)
     6.  Buttons
     7.  Header + drawer
     8.  Hero
     9.  Cards (feature / service / work / step / quote)
     10. Pricing table
     11. Accordion (FAQ)
     12. Forms
     13. CTA band
     14. Footer
     15. Floating mobile action bar
     16. Utilities & motion
   --------------------------------------------------------------------------
   แก้ชุดสีแบรนด์ทั้งเว็บ = แก้ 3 ตัวแปรใน :root คือ
   --brand-primary / --brand-secondary / --brand-accent
   ========================================================================== */

/* ==========================================================================
   1. DESIGN TOKENS — LIGHT MODE (ค่าเริ่มต้น)
   ตรวจ contrast ผ่าน WCAG 2.1 AA ทุกคู่แล้ว (ดูตารางใน README.md)
   ========================================================================== */
:root {
  /* --- แบรนด์ --- */
  --brand-primary:        #0C4A45;  /* teal เข้ม — heading, header, footer, CTA band   (10.09:1 บนขาว) */
  --brand-primary-hover:  #083733;
  --brand-primary-tint:   #DFF0EC;  /* พื้น badge / pill / กล่องเน้น */
  --brand-secondary:      #0F6B62;  /* ลิงก์ในเนื้อหา, ไอคอน            (6.36:1 บนขาว) */
  --brand-accent:         #C63B1B;  /* coral — ปุ่ม CTA หลัก + eyebrow  (5.19:1 กับขาว) */
  --brand-accent-hover:   #A32F14;
  --brand-accent-tint:    #FDECE6;
  --on-accent:            #FFFFFF;

  /* --- พื้นผิว --- */
  --bg:            #FFFFFF;
  --bg-alt:        #F2F7F5;   /* section สลับ (neutral อมเขียวเล็กน้อย ให้เข้ากับ teal) */
  --surface:       #FFFFFF;
  --surface-raised:#FFFFFF;

  /* --- ตัวอักษร --- */
  --text:          #13211F;   /* 16.60:1 */
  --text-muted:    #4E6360;   /*  6.41:1 */
  --text-on-dark:  #FFFFFF;

  /* --- เส้น --- */
  --border:        #DDE9E6;   /* เส้นตกแต่งเท่านั้น ห้ามใช้เป็นกรอบเดียวของ input */
  --border-strong: #5F7A76;   /* กรอบ input / pill (4.63:1 — ผ่านเกณฑ์ UI 3:1) */

  /* --- สถานะ --- */
  --success:       #136B3A;
  --error:         #B3261E;
  --warning:       #92510A;

  /* --- footer --- */
  --footer-bg:         #072F2C;
  --footer-text:       #FFFFFF;
  --footer-text-muted: #A9C6C1;

  /* --- แบรนด์ภายนอก (ห้ามเปลี่ยน) --- */
  --line-green: #06C755;

  /* --- ระยะห่าง (ฐาน 4px) --- */
  --sp-1: 4px;   --sp-2: 8px;   --sp-3: 12px;  --sp-4: 16px;
  --sp-5: 20px;  --sp-6: 24px;  --sp-8: 32px;  --sp-10: 40px;
  --sp-12: 48px; --sp-16: 64px; --sp-20: 80px; --sp-24: 96px;

  /* --- โครง --- */
  --container: 1180px;
  --gutter: 20px;

  /* --- มุมโค้ง --- */
  --r-sm: 8px;
  --r-md: 14px;
  --r-lg: 20px;
  --r-full: 999px;

  /* --- เงา (light mode เท่านั้น) --- */
  --shadow-sm: 0 1px 2px rgba(12, 74, 69, 0.07);
  --shadow-md: 0 6px 20px rgba(12, 74, 69, 0.09);
  --shadow-lg: 0 18px 44px rgba(12, 74, 69, 0.14);

  /* --- การเคลื่อนไหว --- */
  --transition: 180ms cubic-bezier(0.4, 0, 0.2, 1);

  /* --- ฟอนต์ --- */
  --font-heading: 'Anuphan', 'IBM Plex Sans Thai', 'Noto Sans Thai', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-body:    'IBM Plex Sans Thai', 'Noto Sans Thai', 'Sarabun', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

@media (min-width: 768px)  { :root { --gutter: 24px; } }
@media (min-width: 1024px) { :root { --gutter: 32px; } }

/* ==========================================================================
   2. DARK MODE — ผ่าน prefers-color-scheme (ไม่มีปุ่มสลับ ตามสเปก)
   ========================================================================== */
@media (prefers-color-scheme: dark) {
  :root {
    --brand-primary:        #6FD6C4;  /* teal สว่าง อ่านได้บนพื้นมืด (10.63:1) */
    --brand-primary-hover:  #8FE3D4;
    --brand-primary-tint:   #14312D;
    --brand-secondary:      #6FD6C4;
    --brand-accent:         #FF8A5C;  /* coral สว่าง (7.95:1) */
    --brand-accent-hover:   #FFA37C;
    --brand-accent-tint:    #32201A;
    --on-accent:            #0A1614;  /* ตัวอักษรเข้มบนปุ่ม coral */

    --bg:             #0A1614;   /* เขียวดำ ไม่ใช่ดำสนิท — ลดอาการตาล้าบน OLED */
    --bg-alt:         #0F1E1B;
    --surface:        #122220;
    --surface-raised: #162926;

    --text:           #E6EFEC;   /* ไม่ใช้ขาวสนิท */
    --text-muted:     #9CB4B0;
    --text-on-dark:   #E6EFEC;

    --border:         #223B37;   /* dark mode ใช้เส้นกรอบแทนเงา */
    --border-strong:  #7FA39D;

    --success:        #4ADE80;
    --error:          #FF8A82;
    --warning:        #F0B429;

    --footer-bg:         #071110;
    --footer-text:       #E6EFEC;
    --footer-text-muted: #9CB4B0;

    /* dark mode ปิดเงาทั้งหมด ใช้ border แทน */
    --shadow-sm: none;
    --shadow-md: none;
    --shadow-lg: none;
  }
}

/* ==========================================================================
   3. RESET & BASE
   ========================================================================== */
*, *::before, *::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: 88px; /* กัน anchor ถูก sticky header บัง */
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 1rem;            /* 16px — ไทยห้ามต่ำกว่านี้สำหรับ body */
  line-height: 1.75;          /* ไทยมีวรรณยุกต์ 2 ชั้น ต้อง >= 1.7 */
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-wrap: break-word;
  word-break: normal;
}
body.is-locked { overflow: hidden; }

img, svg, video { max-width: 100%; height: auto; display: block; }
svg { flex: none; }

a { color: var(--brand-secondary); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a:hover { text-decoration: underline; }

button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }

:focus-visible {
  outline: 2px solid var(--brand-accent);
  outline-offset: 3px;
  border-radius: 4px;
}

hr { border: 0; border-top: 1px solid var(--border); margin: var(--sp-10) 0; }

::selection { background: var(--brand-primary-tint); color: var(--text); }

.skip-link {
  position: absolute; top: -60px; left: var(--sp-4); z-index: 999;
  background: var(--brand-primary); color: #FFFFFF;
  padding: 10px 18px; border-radius: var(--r-sm); font-weight: 600;
  transition: top var(--transition);
}
@media (prefers-color-scheme: dark) { .skip-link { color: #0A1614; } }
.skip-link:focus { top: var(--sp-3); text-decoration: none; }

.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;
}

/* ==========================================================================
   4. TYPOGRAPHY
   ========================================================================== */
h1, h2, h3, h4, h5 {
  font-family: var(--font-heading);
  font-weight: 600;
  color: var(--text);
  margin: 0;
  line-height: 1.32;
  letter-spacing: -0.005em;
}
p { margin: 0; }
p + p { margin-top: var(--sp-4); }

/* ขนาดฐาน = mobile (mobile-first) */
.t-display, h1.t-display { font-size: 2.125rem; line-height: 1.24; letter-spacing: -0.015em; }
h1, .t-h1 { font-size: 1.875rem; line-height: 1.28; letter-spacing: -0.012em; }
h2, .t-h2 { font-size: 1.625rem; line-height: 1.32; }
h3, .t-h3 { font-size: 1.3125rem; line-height: 1.4; }
h4, .t-h4 { font-size: 1.125rem; line-height: 1.45; }

@media (min-width: 1024px) {
  .t-display, h1.t-display { font-size: 3.5rem; }
  h1, .t-h1 { font-size: 2.75rem; }
  h2, .t-h2 { font-size: 2.25rem; }
  h3, .t-h3 { font-size: 1.625rem; }
  h4, .t-h4 { font-size: 1.25rem; }
}

.lead {
  font-size: 1.0625rem;
  line-height: 1.8;
  color: var(--text-muted);
  max-width: 56ch;
}
@media (min-width: 1024px) { .lead { font-size: 1.125rem; } }

.t-small   { font-size: 0.875rem; line-height: 1.7; }
.t-caption { font-size: 0.8125rem; line-height: 1.6; }
.t-muted   { color: var(--text-muted); }
.t-num     { font-variant-numeric: tabular-nums; }
.t-body    { max-width: 70ch; }

/* Eyebrow — ห้าม uppercase กับไทย (ทำลายการเรนเดอร์สระ) ใช้ letter-spacing + weight แทน */
.eyebrow {
  display: inline-block;
  font-size: 0.8125rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  line-height: 1.4;
  color: var(--brand-accent);
  margin-bottom: var(--sp-3);
}

.section-head { max-width: 660px; margin-bottom: var(--sp-10); }
.section-head.is-center { margin-left: auto; margin-right: auto; text-align: center; }
.section-head.is-center .lead { margin-left: auto; margin-right: auto; }
.section-head h2 + .lead, .section-head h1 + .lead { margin-top: var(--sp-4); }

.link-arrow {
  display: inline-flex; align-items: center; gap: 6px;
  font-weight: 600; font-size: 0.9375rem;
  color: var(--brand-secondary); text-decoration: none;
}
.link-arrow:hover { text-decoration: underline; }
.link-arrow svg { transition: transform var(--transition); }
.link-arrow:hover svg { transform: translateX(3px); }

/* ==========================================================================
   5. LAYOUT
   ========================================================================== */
.container {
  width: 100%;
  max-width: calc(var(--container) + var(--gutter) * 2);
  margin-inline: auto;
  padding-inline: var(--gutter);
}
.container--narrow { max-width: calc(860px + var(--gutter) * 2); }

.section { padding-block: 56px; }
@media (min-width: 768px)  { .section { padding-block: 72px; } }
@media (min-width: 1024px) { .section { padding-block: 96px; } }
.section--tight { padding-block: 40px; }
@media (min-width: 1024px) { .section--tight { padding-block: 56px; } }
.section--alt { background: var(--bg-alt); }
.section--bordered { border-top: 1px solid var(--border); }

.grid { display: grid; gap: var(--sp-5); }
.grid--2, .grid--3, .grid--4 { grid-template-columns: 1fr; }
@media (min-width: 640px) {
  .grid { gap: var(--sp-6); }
  .grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--3 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (min-width: 1024px) {
  .grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}

.split { display: grid; gap: var(--sp-8); align-items: center; }
@media (min-width: 1024px) {
  .split { grid-template-columns: 1fr 1fr; gap: var(--sp-16); }
  .split--58 { grid-template-columns: 1.38fr 1fr; }
  .split--42 { grid-template-columns: 1fr 1.38fr; }
}

.stack > * + * { margin-top: var(--sp-4); }
.center { text-align: center; }
.mt-4 { margin-top: var(--sp-4); }
.mt-6 { margin-top: var(--sp-6); }
.mt-8 { margin-top: var(--sp-8); }
.mt-10 { margin-top: var(--sp-10); }
.mt-12 { margin-top: var(--sp-12); }

/* ==========================================================================
   6. BUTTONS
   ========================================================================== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--sp-2);
  min-height: 44px; padding: 0 20px;
  border: 0; border-radius: var(--r-sm);
  font-family: var(--font-body); font-size: 0.9375rem; font-weight: 600; line-height: 1;
  text-align: center; text-decoration: none; white-space: nowrap;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.btn:hover { text-decoration: none; transform: translateY(-1px); box-shadow: var(--shadow-sm); }
.btn:active { transform: translateY(1px); box-shadow: none; }
.btn[disabled], .btn.is-disabled { opacity: 0.5; cursor: not-allowed; transform: none; }
.btn[aria-busy="true"] { pointer-events: none; opacity: 0.75; }

.btn--lg { min-height: 52px; padding: 0 28px; font-size: 1rem; }
.btn--sm { min-height: 36px; padding: 0 14px; font-size: 0.875rem; }

.btn--primary { background: var(--brand-accent); color: var(--on-accent); }
.btn--primary:hover { background: var(--brand-accent-hover); }
.btn--primary:focus-visible { outline-color: var(--brand-primary); }

.btn--secondary {
  background: transparent; color: var(--brand-primary);
  border: 1.5px solid var(--brand-primary);
}
.btn--secondary:hover { background: var(--brand-primary-tint); }

.btn--ghost { background: transparent; color: var(--brand-secondary); padding-inline: 4px; }
.btn--ghost:hover { background: transparent; box-shadow: none; text-decoration: underline; }

.btn--on-navy { background: #FFFFFF; color: #0C4A45; }
.btn--on-navy:hover { background: #DFF0EC; }
.btn--on-navy-ghost {
  background: transparent; color: #FFFFFF;
  border: 1.5px solid rgba(255, 255, 255, 0.6);
}
.btn--on-navy-ghost:hover { background: rgba(255, 255, 255, 0.14); border-color: #FFFFFF; }
.btn--on-navy:focus-visible, .btn--on-navy-ghost:focus-visible { outline-color: #FFFFFF; }

.btn--line { background: var(--line-green); color: #FFFFFF; }
.btn--line:hover { background: #05B24C; }

.btn-row { display: flex; flex-wrap: wrap; gap: var(--sp-3); }
.btn-row.is-center { justify-content: center; }
@media (max-width: 639px) {
  .btn-row { flex-direction: column; align-items: stretch; }
  .btn-row .btn { width: 100%; }
}

/* ==========================================================================
   7. HEADER + DRAWER
   ========================================================================== */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: color-mix(in srgb, var(--bg) 92%, transparent);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow var(--transition);
}
@supports not (background: color-mix(in srgb, red, blue)) {
  .site-header { background: var(--bg); }
}
.site-header.is-scrolled { box-shadow: var(--shadow-sm); }

.site-header__inner {
  display: flex; align-items: center; justify-content: space-between; gap: var(--sp-4);
  min-height: 60px;
}
@media (min-width: 768px)  { .site-header__inner { min-height: 64px; } }
@media (min-width: 1024px) { .site-header__inner { min-height: 72px; } }

.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--text); }
.brand:hover { text-decoration: none; }
.brand__mark { width: 34px; height: 34px; }
@media (min-width: 1024px) { .brand__mark { width: 38px; height: 38px; } }
.brand__text { display: flex; flex-direction: column; line-height: 1.15; }
.brand__name {
  font-family: var(--font-heading); font-weight: 600; font-size: 1.0625rem;
  color: var(--brand-primary); letter-spacing: -0.01em;
}
@media (min-width: 1024px) { .brand__name { font-size: 1.1875rem; } }
.brand__sub { font-size: 0.6875rem; color: var(--text-muted); letter-spacing: 0.04em; }

.nav { display: none; }
@media (min-width: 1024px) {
  .nav { display: flex; align-items: center; gap: var(--sp-6); }
}
.nav__link {
  position: relative; padding: 6px 0;
  font-size: 0.9375rem; font-weight: 500; color: var(--text); text-decoration: none;
  transition: color var(--transition);
}
.nav__link:hover { color: var(--brand-primary); text-decoration: none; }
.nav__link[aria-current="page"] { color: var(--brand-primary); font-weight: 600; }
.nav__link[aria-current="page"]::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 2px; background: var(--brand-accent); border-radius: 2px;
}

.header__actions { display: flex; align-items: center; gap: var(--sp-2); }
.header__cta { display: none; }
@media (min-width: 1024px) { .header__cta { display: inline-flex; } }

.hamburger {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent; border: 0;
  border-radius: var(--r-sm); color: var(--text);
}
.hamburger:hover { background: var(--brand-primary-tint); }
@media (min-width: 1024px) { .hamburger { display: none; } }

.drawer {
  position: fixed; inset: 0; z-index: 200;
  visibility: hidden; pointer-events: none;
}
.drawer.is-open { visibility: visible; pointer-events: auto; }
.drawer__backdrop {
  position: absolute; inset: 0; background: rgba(7, 25, 23, 0.5);
  opacity: 0; transition: opacity 260ms ease;
}
.drawer.is-open .drawer__backdrop { opacity: 1; }
.drawer__panel {
  position: absolute; top: 0; right: 0; bottom: 0;
  width: min(320px, 88vw);
  background: var(--bg);
  border-left: 1px solid var(--border);
  padding: var(--sp-5);
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 260ms cubic-bezier(0.4, 0, 0.2, 1);
  display: flex; flex-direction: column;
}
.drawer.is-open .drawer__panel { transform: translateX(0); }
.drawer__head { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--sp-6); }
.drawer__close {
  display: inline-flex; align-items: center; justify-content: center;
  width: 44px; height: 44px; background: transparent;
  border: 1px solid var(--border); border-radius: var(--r-sm); color: var(--text);
}
.drawer__close:hover { background: var(--bg-alt); }
.drawer__nav { display: flex; flex-direction: column; gap: 2px; }
.drawer__link {
  display: block; padding: 12px 10px; border-radius: var(--r-sm);
  font-size: 1.0625rem; font-weight: 500; color: var(--text); text-decoration: none;
}
.drawer__link:hover { background: var(--bg-alt); text-decoration: none; }
.drawer__link[aria-current="page"] { color: var(--brand-primary); font-weight: 600; background: var(--brand-primary-tint); }
.drawer__foot { margin-top: auto; padding-top: var(--sp-6); display: flex; flex-direction: column; gap: var(--sp-3); }

@media (prefers-reduced-motion: reduce) {
  .drawer__panel, .drawer__backdrop { transition: none; }
}

/* ==========================================================================
   8. HERO
   ========================================================================== */
.hero { padding-block: 40px 48px; overflow: hidden; }
@media (min-width: 768px)  { .hero { padding-block: 56px 64px; } }
@media (min-width: 1024px) { .hero { padding-block: 72px 88px; } }

.hero__grid { display: grid; gap: var(--sp-10); align-items: center; }
@media (min-width: 1024px) {
  .hero__grid { grid-template-columns: 1.05fr 1fr; gap: var(--sp-16); }
}
.hero h1 { margin-bottom: var(--sp-5); max-width: 17ch; }
.hero .lead { margin-bottom: var(--sp-8); }
.hero__media { position: relative; }
.hero__media .frame { box-shadow: var(--shadow-lg); }

/* จุดขายเร็ว ๆ ใต้ปุ่ม hero */
.hero__points {
  display: flex; flex-wrap: wrap; gap: var(--sp-2) var(--sp-5);
  margin-top: var(--sp-6); padding: 0; list-style: none;
}
.hero__points li {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: 0.875rem; color: var(--text-muted);
}
.hero__points svg { color: var(--brand-primary); }

/* Page hero (หน้าใน) */
.page-hero {
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
  padding-block: 32px 36px;
}
@media (min-width: 1024px) { .page-hero { padding-block: 48px 56px; } }
.page-hero .lead { margin-top: var(--sp-4); }

.breadcrumb { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: var(--sp-3); }
.breadcrumb ol { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.breadcrumb li { display: inline-flex; align-items: center; gap: 6px; }
.breadcrumb li + li::before { content: "/"; color: var(--border-strong); }
.breadcrumb a { color: var(--text-muted); text-decoration: none; }
.breadcrumb a:hover { color: var(--brand-primary); text-decoration: underline; }

/* ==========================================================================
   9. CARDS
   ========================================================================== */
.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
  padding: var(--sp-6);
  display: flex; flex-direction: column;
  transition: transform var(--transition), box-shadow var(--transition), border-color var(--transition);
}
.card--pad-lg { padding: var(--sp-8); }
.card--alt { background: var(--bg-alt); }
.card--flat { box-shadow: none; }

a.card, .card--link { text-decoration: none; color: inherit; }
a.card:hover, .card--hover:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
  border-color: var(--border-strong); /* fallback สำหรับเบราว์เซอร์ที่ไม่รู้จัก color-mix */
  border-color: color-mix(in srgb, var(--brand-primary) 35%, var(--border));
  text-decoration: none;
}
@media (prefers-reduced-motion: reduce) {
  a.card:hover, .card--hover:hover { transform: none; }
}

.card__icon {
  display: inline-flex; align-items: center; justify-content: center;
  width: 48px; height: 48px; flex: none;
  border-radius: var(--r-sm);
  background: var(--brand-primary-tint); color: var(--brand-primary);
  margin-bottom: var(--sp-4);
}
.card__icon--accent { background: var(--brand-accent-tint); color: var(--brand-accent); }
.card h3, .card h4 { margin-bottom: var(--sp-2); }
.card p { color: var(--text-muted); font-size: 0.9375rem; }
.card__foot { margin-top: auto; padding-top: var(--sp-5); }

/* --- การ์ดบริการ (หน้าแรก) --- */
.svc-card { position: relative; }
.svc-card__price {
  display: flex; align-items: baseline; gap: 6px;
  margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: 1px solid var(--border);
}
.svc-card__price b {
  font-family: var(--font-heading); font-size: 1.5rem; font-weight: 600;
  color: var(--brand-primary); font-variant-numeric: tabular-nums;
}
.svc-card__price span { font-size: 0.8125rem; color: var(--text-muted); }
.svc-card ul { margin: var(--sp-4) 0 0; padding: 0; list-style: none; }
.svc-card ul li {
  position: relative; padding-left: 24px; font-size: 0.9375rem;
  color: var(--text-muted); line-height: 1.7;
}
.svc-card ul li + li { margin-top: 6px; }
.svc-card ul li::before {
  content: ""; position: absolute; left: 4px; top: 11px;
  width: 6px; height: 6px; border-radius: 50%; background: var(--brand-primary);
}

/* --- ป้ายมุมการ์ด --- */
.badge {
  display: inline-flex; align-items: center; gap: 5px;
  padding: 4px 11px; border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 600; line-height: 1.5;
  background: var(--brand-primary-tint); color: var(--brand-primary);
  white-space: nowrap;
}
.badge--accent { background: var(--brand-accent-tint); color: var(--brand-accent); }
.badge--soon   { background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border); }
.badge--live   {
  background: var(--bg-alt); /* fallback */
  background: color-mix(in srgb, var(--success) 14%, transparent);
  color: var(--success);
}

/* --- การ์ดผลงาน --- */
.work-card { padding: 0; overflow: hidden; }
.work-card__media { background: var(--bg-alt); border-bottom: 1px solid var(--border); }
.work-card__media svg { width: 100%; height: auto; display: block; }
.work-card__body { padding: var(--sp-6); display: flex; flex-direction: column; flex: 1; }
.work-card__meta { display: flex; flex-wrap: wrap; gap: var(--sp-2); margin-bottom: var(--sp-3); }
.work-card.is-soon { opacity: 0.92; }
.work-card.is-soon .work-card__media { filter: grayscale(0.75); }

/* --- การ์ดขั้นตอน --- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; gap: var(--sp-5); }
@media (min-width: 768px)  { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .steps--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.step {
  position: relative; overflow: hidden;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-6);
}
.step__num {
  font-family: var(--font-heading); font-size: 3.25rem; font-weight: 600; line-height: 1;
  color: var(--brand-primary); opacity: 0.16;
  position: absolute; top: 8px; right: 16px; pointer-events: none;
  font-variant-numeric: tabular-nums;
}
.step h3 { font-size: 1.1875rem; margin-bottom: var(--sp-2); padding-right: 56px; }
.step p { color: var(--text-muted); font-size: 0.9375rem; }
.step__todo {
  margin-top: var(--sp-4); padding-top: var(--sp-4);
  border-top: 1px dashed var(--border);
  font-size: 0.875rem;
}
.step__todo b { color: var(--text); display: block; margin-bottom: 4px; font-size: 0.8125rem; }
.step__todo ul { margin: 0; padding-left: 18px; color: var(--text-muted); }
.step__todo li + li { margin-top: 2px; }

/* --- แถบตัวเลข / trust --- */
.trust {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1px; background: var(--border);
  border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden;
}
@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.trust__item { background: var(--surface); padding: var(--sp-5) var(--sp-4); text-align: center; }
.trust__value {
  font-family: var(--font-heading); font-size: 1.375rem; font-weight: 600;
  color: var(--brand-primary); font-variant-numeric: tabular-nums; line-height: 1.3;
}
@media (min-width: 1024px) { .trust__value { font-size: 1.625rem; } }
.trust__label { font-size: 0.8125rem; color: var(--text-muted); line-height: 1.6; margin-top: 4px; }

/* --- กล่องเปรียบเทียบ --- */
.compare { display: grid; gap: var(--sp-5); }
@media (min-width: 768px) { .compare { grid-template-columns: 1fr 1fr; gap: var(--sp-6); } }
.compare__col { border-radius: var(--r-md); padding: var(--sp-6); border: 1px solid var(--border); }
.compare__col--bad  { background: var(--bg-alt); }
.compare__col--good {
  background: var(--surface);
  border-color: var(--border-strong);
  border-color: color-mix(in srgb, var(--brand-primary) 40%, var(--border));
  box-shadow: var(--shadow-md);
}
.compare__col h3 { font-size: 1.125rem; margin-bottom: var(--sp-4); display: flex; align-items: center; gap: var(--sp-2); }
.compare__col ul { list-style: none; margin: 0; padding: 0; }
.compare__col li { position: relative; padding-left: 28px; font-size: 0.9375rem; line-height: 1.7; color: var(--text-muted); }
.compare__col li + li { margin-top: var(--sp-3); }
.compare__col li::before {
  position: absolute; left: 0; top: 0; font-weight: 700;
}
.compare__col--bad li::before  { content: "✕"; color: var(--error); }
.compare__col--good li::before { content: "✓"; color: var(--success); }
.compare__col--good li { color: var(--text); }

/* --- checklist รวม/ไม่รวม --- */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { position: relative; padding-left: 30px; line-height: 1.75; }
.checklist li + li { margin-top: var(--sp-3); }
.checklist li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--brand-primary-tint);
}
.checklist li::after {
  content: ""; position: absolute; left: 5px; top: 12px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--success); border-bottom: 2px solid var(--success);
  transform: rotate(-45deg);
}
.checklist--no li::before { background: var(--bg-alt); border: 1px solid var(--border); }
.checklist--no li::after {
  left: 5.5px; top: 11.5px; width: 8px; height: 8px;
  border: 0; background:
    linear-gradient(45deg, transparent 44%, var(--error) 44%, var(--error) 56%, transparent 56%),
    linear-gradient(-45deg, transparent 44%, var(--error) 44%, var(--error) 56%, transparent 56%);
  transform: none;
}

/* ==========================================================================
   10. PRICING
   ========================================================================== */
.pricing { display: grid; gap: var(--sp-5); align-items: stretch; }
@media (min-width: 768px)  { .pricing { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--sp-6); } }
@media (min-width: 1100px) { .pricing--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }

.plan {
  position: relative; display: flex; flex-direction: column;
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-6);
}
@media (min-width: 1024px) { .plan { padding: var(--sp-8) var(--sp-6); } }
.plan--featured {
  border-color: var(--brand-primary);
  border-width: 2px;
  box-shadow: var(--shadow-md);
}
.plan__flag {
  position: absolute; top: -13px; left: var(--sp-6);
  padding: 3px 12px; border-radius: var(--r-full);
  background: var(--brand-accent); color: var(--on-accent);
  font-size: 0.75rem; font-weight: 600; line-height: 1.6;
}
.plan__name { font-size: 1.1875rem; margin-bottom: var(--sp-1); }
.plan__for { font-size: 0.8125rem; color: var(--text-muted); min-height: 2.6em; }
.plan__price {
  margin: var(--sp-4) 0 var(--sp-5);
  padding-bottom: var(--sp-5); border-bottom: 1px solid var(--border);
  display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap;
}
.plan__price b {
  font-family: var(--font-heading); font-size: 2rem; font-weight: 600; line-height: 1.1;
  color: var(--brand-primary); font-variant-numeric: tabular-nums;
}
.plan__price span { font-size: 0.875rem; color: var(--text-muted); }
.plan__price small { display: block; width: 100%; font-size: 0.8125rem; color: var(--text-muted); margin-top: 6px; }

.plan__list { list-style: none; margin: 0 0 var(--sp-6); padding: 0; font-size: 0.9375rem; }
.plan__list li { position: relative; padding-left: 26px; line-height: 1.7; color: var(--text-muted); }
.plan__list li + li { margin-top: var(--sp-2); }
.plan__list li::before {
  content: ""; position: absolute; left: 3px; top: 10px;
  width: 8px; height: 4px;
  border-left: 2px solid var(--brand-primary); border-bottom: 2px solid var(--brand-primary);
  transform: rotate(-45deg);
}
.plan__list li b { color: var(--text); font-weight: 600; }
.plan__list li.is-no { color: var(--text-muted); opacity: 0.85; }
.plan__list li.is-no::before {
  border: 0; transform: none; top: 12px; left: 2px;
  width: 10px; height: 2px; background: var(--border-strong);
}
.plan__cta { margin-top: auto; }

.plan__meta {
  display: flex; flex-wrap: wrap; gap: var(--sp-2);
  margin-bottom: var(--sp-5);
}
.plan__meta span {
  font-size: 0.75rem; padding: 3px 9px; border-radius: var(--r-full);
  background: var(--bg-alt); color: var(--text-muted); border: 1px solid var(--border);
}

/* --------------------------------------------------------------------------
   10a. ราคาเปิดตัวช่วงสร้างผลงาน — ใช้เฉพาะ "สายเขียนเอง"
   --------------------------------------------------------------------------
   หลักการที่ยึดไว้ (อย่าแก้ให้ผิดหลักนี้)
   · ต้องอ่านออกทันทีว่าเป็น "ราคาชั่วคราว มีเงื่อนไข" ไม่ใช่ราคาถาวร
   · ราคาปกติแสดงขีดฆ่าไว้ข้าง ๆ ตัวเล็กกว่า — ไม่ใช่ตัวใหญ่แข่งกับราคาจริง
   · ⚠️ ห้ามใส่ countdown timer หรือตัวเลข "เหลืออีก X ราย" ที่นับถอยหลังเอง
     ตัวเลขที่เหลือมาจาก SITE.launchSlotsLeft ใน assets/config.js เท่านั้น
     ซึ่งคุณคิมแก้เองตามความจริง (ดูคำอธิบายในไฟล์นั้น)
   -------------------------------------------------------------------------- */

/* แถบบนหัวการ์ด — บอกว่าการ์ดใบนี้เป็นราคาเปิดตัว */
.plan__launch {
  display: flex; align-items: flex-start; gap: 8px;
  margin: 0 0 var(--sp-4); padding: 9px 12px;
  border-radius: var(--r-sm);
  background: var(--brand-accent-tint);
  color: var(--brand-accent);
  font-size: 0.8125rem; font-weight: 600; line-height: 1.55;
}
.plan__launch svg { flex: 0 0 auto; margin-top: 3px; }

/* ราคาปกติที่ถูกขีดฆ่า — วางต่อท้ายราคาเปิดตัวในแถวเดียวกัน
   ที่จอแคบ flex-wrap ของ .plan__price จะดันลงบรรทัดใหม่เอง ไม่ทับกัน */
.plan__was {
  margin-left: 2px;
  font-size: 0.875rem; line-height: 1.6; color: var(--text-muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.plan__was s { text-decoration-thickness: 1.5px; }

/* กล่องอธิบายเงื่อนไขราคาเปิดตัว (ใต้การ์ดสายเขียนเอง) */
.launch {
  margin-top: var(--sp-8);
  padding: var(--sp-6);
  border: 1px solid var(--brand-accent);
  border-radius: var(--r-md);
  background: var(--surface);
}
@media (min-width: 768px) { .launch { padding: var(--sp-8); } }
.launch > * + * { margin-top: var(--sp-4); }
.launch h4 { font-size: 1.125rem; }
.launch p { color: var(--text-muted); font-size: 0.9375rem; }
.launch p b, .launch p strong { color: var(--text); }
.launch .badge { margin-bottom: var(--sp-3); }

.launch__sub { font-weight: 600; color: var(--text) !important; }

.launch__list { margin: 0; padding-left: 1.4em; font-size: 0.9375rem; color: var(--text-muted); }
.launch__list li { line-height: 1.75; }
.launch__list li + li { margin-top: var(--sp-2); }
.launch__list li b { color: var(--text); font-weight: 600; }
.launch__list li::marker { color: var(--brand-accent); font-weight: 600; }

/* ตารางย่อ ราคาปกติ ↔ ราคาเปิดตัว */
.launch__prices { list-style: none; margin: 0; padding: 0; }
.launch__prices li {
  display: flex; align-items: baseline; flex-wrap: wrap; gap: var(--sp-1) var(--sp-3);
  padding: 10px 0; border-top: 1px solid var(--border); font-size: 0.9375rem;
}
.launch__prices li:last-child { border-bottom: 1px solid var(--border); }
/* จอแคบ: ชื่อแพ็กขึ้นบรรทัดเดียว แล้วราคาเปิดตัว+ราคาปกติอยู่บรรทัดถัดไปคู่กัน
   จอกว้าง: ชื่อแพ็กดันราคาไปชิดขวา */
.launch__prices .p-name { flex: 1 1 100%; color: var(--text-muted); }
@media (min-width: 480px) { .launch__prices .p-name { flex: 1 1 auto; } }
.launch__prices .p-was {
  font-size: 0.875rem; color: var(--text-muted);
  font-variant-numeric: tabular-nums; white-space: nowrap;
}
.launch__prices .p-now {
  font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 600;
  color: var(--brand-accent); font-variant-numeric: tabular-nums; white-space: nowrap;
}

/* บรรทัด "ยังเปิดรับอีกกี่ราย" — เนื้อความถูกเติมโดย config.js เท่านั้น
   ไม่มีค่าใน HTML → ปิด JavaScript แล้วจะไม่มีตัวเลขค้างให้เข้าใจผิด */
.launch p.launch__left {
  display: flex; align-items: flex-start; gap: 8px;
  padding: 10px 14px; border-radius: var(--r-sm);
  background: var(--bg-alt); border: 1px solid var(--border);
  font-size: 0.875rem; color: var(--text);
}
.launch p.launch__left b { font-weight: 600; }
[data-launch-left][hidden] { display: none !important; }

/* --------------------------------------------------------------------------
   10b. TRACK SWITCH — ปุ่มสลับ 2 สายราคา (WordPress / เขียนเอง)
   หลักการ: ไม่มี JS ก็ยังใช้ได้ — ปุ่มสลับถูกซ่อนไว้ด้วย [hidden] ใน HTML
   แล้ว app.js ค่อยเปิดใช้ (ถ้า JS ไม่ทำงาน ทั้ง 2 สายจะแสดงเรียงกันตามปกติ)
   -------------------------------------------------------------------------- */
.track-switch {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  max-width: 620px; margin: 0 auto var(--sp-8);
  padding: 6px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--r-md);
}
.track-switch[hidden] { display: none; }

.track-switch__btn {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  min-height: 72px; padding: 10px var(--sp-2);
  background: transparent; border: 0; border-radius: 10px;
  color: var(--text); text-align: center;
  transition: background var(--transition), color var(--transition), box-shadow var(--transition);
}
.track-switch__btn:hover { background: var(--surface); }
.track-switch__btn b {
  font-family: var(--font-heading); font-size: 1.0625rem; font-weight: 600; line-height: 1.3;
}
.track-switch__tag  { font-size: 0.8125rem; line-height: 1.45; color: var(--text-muted); }
.track-switch__from { font-size: 0.75rem; line-height: 1.4; color: var(--text-muted); font-variant-numeric: tabular-nums; }

.track-switch__btn[aria-selected="true"] {
  background: var(--brand-primary); color: #FFFFFF; box-shadow: var(--shadow-sm);
}
.track-switch__btn[aria-selected="true"] .track-switch__tag,
.track-switch__btn[aria-selected="true"] .track-switch__from { color: rgba(255, 255, 255, 0.86); }
@media (prefers-color-scheme: dark) {
  .track-switch__btn[aria-selected="true"] { color: #0A1614; }
  .track-switch__btn[aria-selected="true"] .track-switch__tag,
  .track-switch__btn[aria-selected="true"] .track-switch__from { color: rgba(10, 22, 20, 0.78); }
}
@media (min-width: 640px) {
  .track-switch__btn { min-height: 76px; }
  .track-switch__btn b { font-size: 1.125rem; }
}

/* กล่องแนะนำการเลือกสาย (หัวของแต่ละ panel) */
.track-panel[hidden] { display: none; }
.track-panel + .track-panel { margin-top: var(--sp-12); }
.track-panel__head { max-width: 60ch; margin: 0 auto var(--sp-8); text-align: center; }
.track-panel__head h3 { font-size: 1.25rem; margin-bottom: var(--sp-2); }
.track-panel__head p { color: var(--text-muted); font-size: 0.9375rem; }
.track-panel__head .badge { margin-bottom: var(--sp-3); }

/* ป้ายสายบนการ์ดราคา — กันสับสนเวลาเข้ามาจากลิงก์ตรง */
.plan__track {
  display: inline-flex; align-items: center; gap: 5px;
  align-self: flex-start;
  padding: 3px 10px; margin-bottom: var(--sp-3);
  border-radius: var(--r-full);
  font-size: 0.75rem; font-weight: 600; line-height: 1.5;
  background: var(--brand-primary-tint); color: var(--brand-primary);
}
.plan__track--code { background: var(--brand-accent-tint); color: var(--brand-accent); }

/* คำถามช่วยตัดสินใจเร็ว ๆ เหนือปุ่มสลับ */
.decide {
  max-width: 720px; margin: 0 auto var(--sp-8);
  border: 1px solid var(--border); border-radius: var(--r-md);
  background: var(--surface); padding: var(--sp-5);
}
.decide > p { font-weight: 600; text-align: center; margin-bottom: var(--sp-4); }
.decide__grid { display: grid; gap: var(--sp-3); }
@media (min-width: 640px) { .decide__grid { grid-template-columns: 1fr 1fr; } }
.decide__opt {
  border: 1px solid var(--border); border-radius: var(--r-sm);
  background: var(--bg-alt); padding: var(--sp-4);
  font-size: 0.875rem; color: var(--text-muted); line-height: 1.7;
}
.decide__opt b { display: block; color: var(--text); margin-top: 4px; }

/* --------------------------------------------------------------------------
   10c. ตารางเทียบ 2 สาย — มือถือพับเป็นการ์ด ไม่ต้องเลื่อนแนวนอน
   -------------------------------------------------------------------------- */
.vs { margin-top: var(--sp-6); }
.vs table { width: 100%; border-collapse: collapse; font-size: 0.9375rem; }
.vs caption { text-align: left; }
.vs th, .vs td { text-align: left; vertical-align: top; line-height: 1.7; }
.vs__mark { font-weight: 700; margin-right: 5px; }
.vs__mark--yes  { color: var(--success); }
.vs__mark--no   { color: var(--error); }
.vs__mark--part { color: var(--warning); }
.vs strong { color: var(--text); }

/* มือถือ: แต่ละแถว = 1 การ์ด หัวข้ออยู่บน แล้ว 2 สายเรียงลงมา */
@media (max-width: 767px) {
  .vs table, .vs tbody, .vs tr, .vs th, .vs td { display: block; width: 100%; }
  .vs thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .vs tbody tr {
    border: 1px solid var(--border); border-radius: var(--r-md);
    background: var(--surface); padding: var(--sp-4); margin-bottom: var(--sp-3);
  }
  .vs tbody th[scope="row"] {
    font-family: var(--font-heading); font-weight: 600; font-size: 0.9375rem;
    color: var(--text); padding-bottom: var(--sp-3);
    border-bottom: 1px dashed var(--border); margin-bottom: var(--sp-3);
  }
  .vs tbody td { color: var(--text-muted); padding: 6px 0 0; }
  .vs tbody td::before {
    content: attr(data-track);
    display: block; font-size: 0.75rem; font-weight: 600;
    color: var(--brand-primary); margin-bottom: 2px;
  }
  .vs tbody td + td { margin-top: var(--sp-3); }
  .vs tbody td + td::before { color: var(--brand-accent); }
}

/* จอใหญ่: ตาราง 3 คอลัมน์เต็ม */
@media (min-width: 768px) {
  .vs { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; }
  .vs th, .vs td { padding: 14px var(--sp-5); }
  .vs thead th {
    background: var(--bg-alt); font-size: 0.9375rem; font-weight: 600;
    border-bottom: 1px solid var(--border);
  }
  .vs thead th:first-child { width: 26%; }
  .vs tbody tr + tr th, .vs tbody tr + tr td { border-top: 1px solid var(--border); }
  .vs tbody th[scope="row"] { font-weight: 600; background: var(--bg-alt); }
  .vs tbody td { color: var(--text-muted); }
  .vs tbody td:last-child { background: var(--brand-accent-tint); color: var(--text); }
}

/* --- รายการราคา 3 ระดับย่อ ๆ (ใช้ในการ์ดสายบนหน้าแรก) --- */
.tier-list { list-style: none; margin: var(--sp-5) 0 0; padding: 0; }
.tier-list li {
  display: flex; align-items: baseline; justify-content: space-between; gap: var(--sp-4);
  padding: 11px 0; border-top: 1px solid var(--border); font-size: 0.9375rem;
}
.tier-list li:last-child { border-bottom: 1px solid var(--border); }
.tier-list span { color: var(--text-muted); }
.tier-list b {
  font-family: var(--font-heading); font-size: 1.125rem; font-weight: 600;
  color: var(--brand-primary); font-variant-numeric: tabular-nums; white-space: nowrap;
}
/* ราคาปกติที่ขีดฆ่าในรายการย่อ — เล็กกว่าและจางกว่าราคาจริงเสมอ */
.tier-list b s {
  font-family: var(--font-body); font-size: 0.75rem; font-weight: 400;
  color: var(--text-muted); margin-right: 5px;
}
.tier-list--launch b { color: var(--brand-accent); }

/* --- แถบตัวเลขเปรียบเทียบต้นทุนระยะยาว --- */
.stat-row { display: grid; gap: var(--sp-4); margin-top: var(--sp-6); }
@media (min-width: 768px) { .stat-row { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.stat {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-md); padding: var(--sp-5); text-align: center;
}
.stat b {
  display: block; font-family: var(--font-heading); font-size: 1.375rem; font-weight: 600;
  color: var(--brand-primary); font-variant-numeric: tabular-nums; line-height: 1.3;
}
.stat span { display: block; font-size: 0.8125rem; color: var(--text-muted); margin-top: 4px; line-height: 1.6; }
.stat--win b { color: var(--brand-accent); }

/* --- ตารางแบบ responsive (add-on / care) --- */
.table-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; border: 1px solid var(--border); border-radius: var(--r-md); }
table.tbl { width: 100%; border-collapse: collapse; font-size: 0.9375rem; min-width: 520px; }
table.tbl th, table.tbl td { padding: 14px var(--sp-4); text-align: left; vertical-align: top; line-height: 1.65; }
table.tbl thead th {
  background: var(--bg-alt); color: var(--text); font-weight: 600; font-size: 0.875rem;
  border-bottom: 1px solid var(--border); white-space: nowrap;
}
table.tbl tbody tr + tr td { border-top: 1px solid var(--border); }
table.tbl td:last-child, table.tbl th:last-child { text-align: right; white-space: nowrap; }
table.tbl .price { font-weight: 600; color: var(--brand-primary); font-variant-numeric: tabular-nums; }
.table-note { font-size: 0.8125rem; color: var(--text-muted); margin-top: var(--sp-3); }

/* ==========================================================================
   11. ACCORDION (FAQ)
   ========================================================================== */
.faq { border: 1px solid var(--border); border-radius: var(--r-md); overflow: hidden; background: var(--surface); }
.faq details + details { border-top: 1px solid var(--border); }
.faq summary {
  display: flex; align-items: flex-start; justify-content: space-between; gap: var(--sp-4);
  padding: var(--sp-5); cursor: pointer; list-style: none;
  font-family: var(--font-heading); font-weight: 600; font-size: 1.0625rem; line-height: 1.5;
  color: var(--text);
  transition: background var(--transition);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary:hover { background: var(--bg-alt); }
.faq summary:focus-visible { outline: 2px solid var(--brand-accent); outline-offset: -2px; }
.faq__icon {
  flex: none; width: 24px; height: 24px; margin-top: 2px;
  color: var(--brand-primary);
  transition: transform 220ms cubic-bezier(0.4, 0, 0.2, 1);
}
.faq details[open] .faq__icon { transform: rotate(45deg); }
.faq__body { padding: 0 var(--sp-5) var(--sp-5); }
.faq__body p, .faq__body ul { color: var(--text-muted); font-size: 0.9375rem; max-width: 68ch; }
.faq__body ul { margin: var(--sp-3) 0 0; padding-left: 20px; }
.faq__body li + li { margin-top: 4px; }
@media (prefers-reduced-motion: reduce) { .faq__icon { transition: none; } }

.faq-group + .faq-group { margin-top: var(--sp-10); }
.faq-group > h2 { margin-bottom: var(--sp-5); font-size: 1.375rem; }

/* ==========================================================================
   12. FORMS
   ========================================================================== */
.form { max-width: 640px; }
.field + .field { margin-top: var(--sp-5); }
.field label {
  display: block; font-size: 0.875rem; font-weight: 500;
  color: var(--text); margin-bottom: 6px;
}
.field .req { color: var(--brand-accent); }
.field .hint { font-size: 0.8125rem; color: var(--text-muted); margin-top: 5px; }

.field input[type="text"], .field input[type="tel"], .field input[type="email"],
.field select, .field textarea {
  width: 100%;
  min-height: 52px;
  padding: 0 var(--sp-4);
  font-size: 1rem;            /* ห้ามต่ำกว่า 16px ไม่งั้น iOS ซูมหน้าจอเอง */
  line-height: 1.6;
  background: var(--bg);
  color: var(--text);
  border: 1px solid var(--border-strong);
  border-radius: var(--r-sm);
  transition: border-color var(--transition), box-shadow var(--transition);
  appearance: none;
}
.field textarea { min-height: 140px; padding: 14px var(--sp-4); resize: vertical; }
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%235F7A76' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center;
  padding-right: 44px;
}
@media (prefers-color-scheme: dark) {
  .field select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%237FA39D' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  }
}
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand-primary);
  box-shadow: 0 0 0 3px rgba(12, 74, 69, 0.2); /* fallback */
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--brand-primary) 22%, transparent);
}
.field input[aria-invalid="true"], .field textarea[aria-invalid="true"], .field select[aria-invalid="true"] {
  border-color: var(--error);
}
.field .err { display: none; font-size: 0.8125rem; color: var(--error); margin-top: 6px; }
.field.has-error .err { display: block; }

.field--check { display: flex; align-items: flex-start; gap: var(--sp-3); }
.field--check input[type="checkbox"] {
  width: 22px; height: 22px; margin: 2px 0 0; flex: none;
  accent-color: var(--brand-primary);
}
.field--check label { margin: 0; font-weight: 400; font-size: 0.875rem; line-height: 1.7; color: var(--text-muted); }

.field--hp { position: absolute; left: -9999px; opacity: 0; height: 0; overflow: hidden; }

/* ตัวเลือกแบบการ์ด (ใช้กับ "สายที่สนใจ") — กดง่ายบนมือถือ */
.choice { display: grid; gap: var(--sp-2); }
@media (min-width: 480px) { .choice { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.choice__item { position: relative; }
.choice__item input {
  position: absolute; inset: 0; width: 100%; height: 100%;
  margin: 0; opacity: 0; cursor: pointer;
}
.choice__item span {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  min-height: 56px; padding: 10px var(--sp-4);
  border: 1px solid var(--border-strong); border-radius: var(--r-sm);
  background: var(--bg); font-size: 0.9375rem; line-height: 1.5;
  transition: border-color var(--transition), background var(--transition);
}
.choice__item small { font-size: 0.75rem; color: var(--text-muted); }
.choice__item input:checked + span {
  border-color: var(--brand-primary); border-width: 2px; padding: 9px 15px;
  background: var(--brand-primary-tint); font-weight: 600;
}
.choice__item input:focus-visible + span { outline: 2px solid var(--brand-accent); outline-offset: 2px; }

.form__foot { margin-top: var(--sp-8); }
.form__note { font-size: 0.8125rem; color: var(--text-muted); margin-top: var(--sp-3); }
.form__alert {
  margin-bottom: var(--sp-5); padding: var(--sp-4);
  border-radius: var(--r-sm); font-size: 0.9375rem;
  border: 1px solid var(--error); color: var(--error);
  background: transparent; /* fallback */
  background: color-mix(in srgb, var(--error) 8%, transparent);
}
.form__alert[hidden] { display: none; }
@media (max-width: 639px) { .form__foot .btn { width: 100%; } }

/* กล่องข้อมูลติดต่อ */
.contact-list { list-style: none; margin: 0; padding: 0; }
.contact-list li { display: flex; gap: var(--sp-4); align-items: flex-start; }
.contact-list li + li { margin-top: var(--sp-5); padding-top: var(--sp-5); border-top: 1px solid var(--border); }
.contact-list__ico {
  flex: none; width: 40px; height: 40px; border-radius: var(--r-sm);
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-primary-tint); color: var(--brand-primary);
}
.contact-list dt { font-size: 0.8125rem; color: var(--text-muted); margin-bottom: 2px; }
.contact-list dd { margin: 0; font-weight: 600; font-size: 1.0625rem; }
.contact-list dd a { color: var(--text); text-decoration: none; }
.contact-list dd a:hover { color: var(--brand-primary); text-decoration: underline; }

/* ==========================================================================
   13. CTA BAND
   ========================================================================== */
.cta-band {
  position: relative; overflow: hidden;
  background: var(--brand-primary);
  color: #FFFFFF;
  padding-block: 56px;
}
@media (min-width: 1024px) { .cta-band { padding-block: 80px; } }
@media (prefers-color-scheme: dark) {
  .cta-band { background: var(--surface); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); color: var(--text); }
}
.cta-band__deco {
  position: absolute; top: -80px; right: -80px; width: 340px; height: 340px;
  color: rgba(255, 255, 255, 0.06); pointer-events: none;
}
@media (prefers-color-scheme: dark) { .cta-band__deco { color: rgba(111, 214, 196, 0.06); } }
.cta-band__inner { position: relative; text-align: center; max-width: 720px; margin-inline: auto; }
.cta-band h2 { color: inherit; max-width: 22ch; margin-inline: auto; }
.cta-band p { color: rgba(255, 255, 255, 0.84); margin-top: var(--sp-4); }
@media (prefers-color-scheme: dark) { .cta-band p { color: var(--text-muted); } }
.cta-band .btn-row { margin-top: var(--sp-8); justify-content: center; }
@media (prefers-color-scheme: dark) {
  .cta-band .btn--on-navy { background: var(--brand-accent); color: var(--on-accent); }
  .cta-band .btn--on-navy:hover { background: var(--brand-accent-hover); }
  .cta-band .btn--on-navy-ghost { color: var(--text); border-color: var(--border-strong); }
}

/* ==========================================================================
   14. FOOTER
   ========================================================================== */
.site-footer {
  background: var(--footer-bg);
  color: var(--footer-text);
  padding-block: 56px var(--sp-8);
}
@media (min-width: 1024px) { .site-footer { padding-block: 72px var(--sp-8); } }
.site-footer a { color: var(--footer-text-muted); text-decoration: none; }
.site-footer a:hover { color: var(--footer-text); text-decoration: underline; }

.footer__grid { display: grid; gap: var(--sp-8); }
@media (min-width: 768px)  { .footer__grid { grid-template-columns: 1.6fr 1fr 1fr; gap: var(--sp-10); } }
@media (min-width: 1024px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1.4fr; } }

.footer__brand .brand__name { color: #FFFFFF; }
.footer__brand .brand__sub { color: var(--footer-text-muted); }
.footer__about { font-size: 0.9375rem; color: var(--footer-text-muted); margin-top: var(--sp-4); max-width: 40ch; }
.footer__title { font-size: 0.875rem; font-weight: 600; color: #FFFFFF; margin-bottom: var(--sp-4); }
.footer__list { list-style: none; margin: 0; padding: 0; font-size: 0.9375rem; }
.footer__list li + li { margin-top: 10px; }
.footer__social { display: flex; gap: var(--sp-2); margin-top: var(--sp-5); }
.footer__social a {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--r-sm);
  background: rgba(255, 255, 255, 0.08); color: #FFFFFF;
}
.footer__social a:hover { background: rgba(255, 255, 255, 0.18); text-decoration: none; }
.footer__bottom {
  margin-top: var(--sp-12); padding-top: var(--sp-6);
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  display: flex; flex-wrap: wrap; gap: var(--sp-3) var(--sp-6);
  align-items: center; justify-content: space-between;
  font-size: 0.8125rem; color: var(--footer-text-muted);
}
.footer__bottom nav { display: flex; flex-wrap: wrap; gap: var(--sp-4); }

/* ==========================================================================
   15. FLOATING MOBILE ACTION BAR
   ========================================================================== */
/* ใช้ flex + flex:1 แทน grid 2 คอลัมน์ เพื่อให้ปุ่มที่เหลือ "ขยายเต็มแถบ" เอง
   เมื่อปุ่ม LINE ถูกซ่อน (ยังไม่มี LINE OA) — ไม่ต้องแก้ CSS ตอนได้ลิงก์มา */
.mobile-bar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 90;
  display: flex; gap: 1px;
  background: var(--border);
  border-top: 1px solid var(--border);
  padding-bottom: env(safe-area-inset-bottom);
}
@media (min-width: 768px) { .mobile-bar { display: none; } }
.mobile-bar a {
  flex: 1 1 0; min-width: 0;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 54px; font-size: 0.9375rem; font-weight: 600; text-decoration: none;
}

/* --------------------------------------------------------------------------
   ปุ่ม / ลิงก์ LINE ที่ยังไม่มีปลายทาง
   ค่าเริ่มต้นใน .html คือ `data-line-el hidden` = ซ่อน (ทำงานแม้ปิด JavaScript)
   assets/config.js จะเอา hidden ออกให้เองเมื่อกรอก SITE.lineUrl แล้วเท่านั้น
   ต้องใช้ !important เพราะ .btn / .card / .mobile-bar a ตั้ง display ไว้
   ซึ่งจะ override แอตทริบิวต์ hidden ตามปกติ
   -------------------------------------------------------------------------- */
[data-line-el][hidden] { display: none !important; }

/* หลักการเดียวกันกับไอคอนโซเชียลที่ยังไม่มีเพจ (Facebook / Instagram)
   ซ่อนไว้ใน HTML ก่อน แล้ว config.js ค่อยเปิดเมื่อกรอกลิงก์จริง         */
[data-social][hidden] { display: none !important; }
.mobile-bar__call { background: var(--brand-primary); color: #FFFFFF; }
.mobile-bar__line { background: var(--line-green); color: #FFFFFF; }
@media (prefers-color-scheme: dark) { .mobile-bar__call { color: #0A1614; } }
.has-mobile-bar .site-footer { padding-bottom: 78px; }
@media (min-width: 768px) { .has-mobile-bar .site-footer { padding-bottom: var(--sp-8); } }

/* ==========================================================================
   16. UTILITIES / MEDIA FRAME / MOTION
   ========================================================================== */
/* กรอบภาพ (ใช้ครอบ SVG placeholder และภาพจริงในอนาคต) */
.frame {
  border-radius: var(--r-md);
  overflow: hidden;
  border: 1px solid var(--border);
  background: var(--bg-alt);
}
.frame svg, .frame img { width: 100%; height: auto; display: block; }

/* ภาพผลงานจริงเตี้ยกว่าคอลัมน์เนื้อหา — ให้ชิดบนแทนลอยกลาง */
@media (min-width: 1024px) {
  .split > .frame { align-self: start; }
}
.frame--flat { box-shadow: none; }

/* ป้ายบอกว่าเป็นรูป placeholder ที่ต้องเปลี่ยน (ดู IMAGE-BRIEF.md) */
[data-image-slot] { position: relative; }

/* ไอคอนเช็กวงกลม (หน้าขอบคุณ) */
.success-mark {
  display: inline-flex; align-items: center; justify-content: center;
  width: 76px; height: 76px; border-radius: 50%;
  color: var(--success);
  background: var(--bg-alt); /* fallback */
  background: color-mix(in srgb, var(--success) 14%, transparent);
  margin-bottom: var(--sp-6);
}

.note {
  border-left: 3px solid var(--brand-accent);
  background: var(--bg-alt);
  border-radius: 0 var(--r-sm) var(--r-sm) 0;
  padding: var(--sp-4) var(--sp-5);
  font-size: 0.9375rem;
  color: var(--text-muted);
}
.note b, .note strong { color: var(--text); }

.callout {
  background: var(--brand-primary-tint);
  border-radius: var(--r-md);
  padding: var(--sp-6);
}
@media (min-width: 768px) { .callout { padding: var(--sp-8); } }
.callout h3 { margin-bottom: var(--sp-3); }
.callout p { color: var(--text-muted); }
.callout .btn-row { margin-top: var(--sp-6); }

.anchor-nav {
  display: flex; gap: var(--sp-2); overflow-x: auto; padding-bottom: var(--sp-2);
  scrollbar-width: none; -ms-overflow-style: none;
  scroll-snap-type: x proximity;
}
.anchor-nav::-webkit-scrollbar { display: none; }
.anchor-nav a {
  flex: none; scroll-snap-align: start;
  display: inline-flex; align-items: center; min-height: 40px; padding: 0 16px;
  border: 1px solid var(--border-strong); border-radius: var(--r-full);
  font-size: 0.875rem; font-weight: 500; color: var(--text); text-decoration: none;
  background: var(--bg);
}
.anchor-nav a:hover { background: var(--brand-primary-tint); border-color: var(--brand-primary); text-decoration: none; }

/* บทความยาว (privacy) */
.prose { max-width: 70ch; }
.prose h2 { margin-top: var(--sp-12); margin-bottom: var(--sp-4); font-size: 1.375rem; scroll-margin-top: 96px; }
.prose h2:first-child { margin-top: 0; }
.prose h3 { margin-top: var(--sp-8); margin-bottom: var(--sp-3); font-size: 1.125rem; }
.prose p, .prose li { color: var(--text-muted); }
.prose ul, .prose ol { padding-left: 22px; margin: var(--sp-4) 0; }
.prose li + li { margin-top: 6px; }
.toc {
  position: sticky; top: 96px;
  border: 1px solid var(--border); border-radius: var(--r-md);
  padding: var(--sp-5); background: var(--surface);
}
.toc h2 { font-size: 0.875rem; font-weight: 600; margin: 0 0 var(--sp-3); }
.toc ol { list-style: none; margin: 0; padding: 0; font-size: 0.875rem; counter-reset: toc; }
.toc li { counter-increment: toc; }
.toc li + li { margin-top: 8px; }
.toc a { color: var(--text-muted); text-decoration: none; display: block; }
.toc a::before { content: counter(toc) ". "; color: var(--border-strong); }
.toc a:hover { color: var(--brand-primary); }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(16px); }
.reveal.is-in { opacity: 1; transform: none; transition: opacity 500ms ease-out, transform 500ms ease-out; }
@media (prefers-reduced-motion: reduce) {
  .reveal { opacity: 1 !important; transform: none !important; }
  .reveal.is-in { transition: none; }
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
}

/* พิมพ์เอกสาร */
@media print {
  .site-header, .mobile-bar, .cta-band, .drawer, .site-footer .footer__social { display: none !important; }
  body { color: #000; background: #fff; }
}
