/* ==========================================================================
   pronet AIS 12call — style.css
   เว็บไซต์ข้อมูลโปรโมชันเน็ต AIS วันทูคอล โดย ร้านวรวุฒิเทเลคอม
   เขียนด้วยมือทั้งหมด ไม่มี framework / ไม่มี build step
   ========================================================================== */

/* --------------------------------------------------------------------------
   1. Design tokens
   -------------------------------------------------------------------------- */
:root {
  /* แบรนด์ */
  --green: #2daa26;
  --green-deep: #087a36;
  --green-lime: #8cc63f;
  --tint: #f1f9ee;
  --forest: #06391f;
  --forest-deep: #042212;
  --yellow: #f5cf25;
  --orange: #ff8a00;

  /* พื้นหลัง / ตัวอักษร */
  --bg: #f7f9f7;
  --white: #fff;
  --ink: #151515;

  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-600: #4b5563;
  --gray-500: #6b7280;
  --gray-400: #9ca3af;
  --gray-200: #e5e7eb;
  --gray-100: #f3f4f6;
  --gray-50: #f9fafb;

  --emerald-50: #ecfdf5;
  --emerald-100: #d1fae5;
  --emerald-200: #a7f3d0;
  --emerald-300: #6ee7b7;
  --emerald-700: #047857;
  --emerald-800: #065f46;
  --emerald-900: #064e3b;

  --amber-50: #fffbeb;
  --amber-200: #fde68a;
  --amber-800: #92400e;
  --red-50: #fef2f2;
  --red-200: #fecaca;
  --red-700: #b91c1c;
  --blue-50: #eff6ff;
  --blue-200: #bfdbfe;
  --blue-800: #1e40af;

  /* รูปทรง */
  --r-lg: 12px;
  --r-xl: 14px;
  --r-2xl: 18px;
  --wrap: 1280px;
  --tap: 44px;

  /* เงา */
  --sh-xs: 0 1px 2px rgba(16, 24, 40, .06);
  --sh-sm: 0 1px 3px rgba(16, 24, 40, .08), 0 1px 2px rgba(16, 24, 40, .04);
  --sh-md: 0 4px 12px rgba(16, 24, 40, .10);
  --sh-lg: 0 12px 28px rgba(16, 24, 40, .12);

  /* ฟอนต์ */
  --f-body: 'Prompt', 'Noto Sans Thai', -apple-system, 'Segoe UI', sans-serif;
  --f-mono: 'JetBrains Mono', ui-monospace, 'Courier New', monospace;
}

/* --------------------------------------------------------------------------
   2. Reset / base
   -------------------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }

html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--f-body);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; height: auto; display: block; }

/* ไอคอน inline SVG ทั้งหมดมีขนาดเริ่มต้นเสมอ กันไม่ให้ยืดเต็มพื้นที่ */
svg {
  display: block;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
}

h1, h2, h3, h4 {
  margin: 0;
  line-height: 1.3;
  letter-spacing: -.01em;
  color: var(--gray-900);
  font-weight: 800;
}

p { margin: 0 0 1em; }
ul, ol { margin: 0 0 1em; padding-left: 1.4em; }
li { margin-bottom: .4em; }

a { color: var(--green-deep); }

:focus-visible {
  outline: 3px solid var(--green);
  outline-offset: 2px;
  border-radius: 6px;
}

::selection { background: rgba(45, 170, 38, .2); color: var(--green-deep); }

/* ข้ามไปเนื้อหาหลัก (สำหรับผู้ใช้คีย์บอร์ด / screen reader) */
.skip {
  position: absolute;
  left: -9999px;
  top: 0;
  z-index: 100;
  background: var(--yellow);
  color: var(--forest);
  padding: 12px 20px;
  font-weight: 700;
  border-radius: 0 0 var(--r-lg) 0;
}
.skip:focus { left: 0; }

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

/* --------------------------------------------------------------------------
   3. Layout
   -------------------------------------------------------------------------- */
.wrap {
  width: 100%;
  max-width: var(--wrap);
  margin-inline: auto;
  padding-inline: 16px;
}

.section { padding: 44px 0; }
.section--tint { background: linear-gradient(180deg, var(--tint) 0%, var(--bg) 100%); }
.section--white { background: var(--white); }

.section__head {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 28px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  background: var(--tint);
  border: 1px solid var(--emerald-200);
  color: var(--green-deep);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.5;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 12px;
  text-align: left;
}
.eyebrow svg { width: 14px; height: 14px; }

.section__head h2 {
  font-size: clamp(24px, 5vw, 34px);
  margin-bottom: 10px;
}

.section__head p {
  color: var(--gray-600);
  font-size: 15.5px;
  margin: 0;
}

@media (min-width: 640px) {
  .wrap { padding-inline: 24px; }
  .section { padding: 56px 0; }
}
@media (min-width: 1024px) {
  .wrap { padding-inline: 32px; }
  .section { padding: 68px 0; }
}

/* --------------------------------------------------------------------------
   4. Header
   -------------------------------------------------------------------------- */
.hd {
  position: sticky;
  top: 0;
  z-index: 40;
  width: 100%;
  background: rgba(255, 255, 255, .96);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(243, 244, 246, .9);
  box-shadow: var(--sh-xs);
}

.hd__bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 60px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
  min-width: 0;
}

.brand__mark {
  width: 30px;
  height: 30px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(8, 122, 54, .22);
  flex: none;
}
.brand__mark svg { width: 16px; height: 16px; color: var(--yellow); fill: var(--yellow); }

.brand__text { display: flex; flex-direction: column; line-height: 1.15; min-width: 0; }

.brand__name {
  display: flex;
  align-items: center;
  gap: 3px;
  font-size: 17px;
  font-weight: 800;
  letter-spacing: -.02em;
  white-space: nowrap;
}
.brand__name .b1 { color: var(--gray-900); }
.brand__name .b2 { color: var(--green); }
.brand__name .b3 { color: var(--green-deep); }

.brand__tag {
  font-size: 10px;
  color: var(--gray-500);
  font-weight: 500;
  letter-spacing: .04em;
  display: none;
}

.hd__nav { display: none; }

.hd__nav a {
  display: block;
  padding: 8px 11px;
  border-radius: 9px;
  font-size: 14px;
  font-weight: 500;
  color: var(--gray-700);
  text-decoration: none;
  white-space: nowrap;
  transition: background .15s, color .15s;
}
.hd__nav a:hover { background: var(--gray-50); color: var(--gray-900); }
.hd__nav a[aria-current="page"] {
  color: var(--green-deep);
  font-weight: 700;
  background: var(--tint);
}

.hd__cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--green);
  color: #fff;
  font-size: 13.5px;
  font-weight: 700;
  padding: 9px 15px;
  border-radius: 10px;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 2px 8px rgba(45, 170, 38, .3);
  transition: background .15s;
  flex: none;
}
.hd__cta:hover { background: var(--green-deep); }
.hd__cta svg { width: 15px; height: 15px; }

/* แถบเมนูเลื่อนแนวนอนสำหรับจอเล็ก */
.hd__rail {
  border-top: 1px solid var(--gray-100);
  overflow-x: auto;
  scrollbar-width: none;
}
.hd__rail::-webkit-scrollbar { display: none; }

.hd__rail ul {
  display: flex;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 8px 16px;
  width: max-content;
  min-width: 100%;
}
.hd__rail li { margin: 0; }

.hd__rail a {
  display: block;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 13.5px;
  font-weight: 600;
  color: var(--gray-700);
  text-decoration: none;
  white-space: nowrap;
  border: 1px solid var(--gray-200);
  background: var(--white);
}
.hd__rail a[aria-current="page"] {
  background: var(--tint);
  color: var(--green-deep);
  border-color: var(--emerald-200);
}

@media (min-width: 640px) {
  .hd__bar { min-height: 72px; }
  .brand__mark { width: 36px; height: 36px; border-radius: 12px; }
  .brand__mark svg { width: 20px; height: 20px; }
  .brand__name { font-size: 22px; }
  .brand__tag { display: block; }
}
@media (min-width: 1180px) {
  .hd__nav { display: flex; align-items: center; gap: 2px; }
  .hd__rail { display: none; }
}

/* --------------------------------------------------------------------------
   5. Breadcrumb
   -------------------------------------------------------------------------- */
.crumb { padding: 14px 0 0; }
.crumb ol {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  list-style: none;
  margin: 0;
  padding: 0;
  font-size: 13px;
  color: var(--gray-500);
}
.crumb li { margin: 0; display: flex; align-items: center; gap: 6px; }
.crumb li:not(:last-child)::after { content: "›"; color: var(--gray-400); }
.crumb a { color: var(--gray-600); text-decoration: none; }
.crumb a:hover { color: var(--green-deep); text-decoration: underline; }
.crumb [aria-current="page"] { color: var(--gray-900); font-weight: 600; }

/* --------------------------------------------------------------------------
   6. Hero
   -------------------------------------------------------------------------- */
.hero {
  position: relative;
  overflow: hidden;
  padding: 30px 0 44px;
  background: linear-gradient(180deg, rgba(241, 249, 238, .6) 0%, var(--bg) 55%, var(--bg) 100%);
}

.hero::before,
.hero::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  filter: blur(60px);
  pointer-events: none;
}
.hero::before {
  top: -80px; right: -80px;
  width: 340px; height: 340px;
  background: rgba(140, 198, 63, .12);
}
.hero::after {
  bottom: -80px; left: -80px;
  width: 300px; height: 300px;
  background: rgba(45, 170, 38, .10);
}

.hero__inner { position: relative; z-index: 1; }

.hero h1 {
  font-size: clamp(28px, 7vw, 46px);
  font-weight: 800;
  margin: 0 0 4px;
}

.hero__sub {
  font-size: clamp(22px, 5.6vw, 36px);
  font-weight: 800;
  color: var(--green);
  letter-spacing: -.02em;
  line-height: 1.25;
  margin: 0 0 14px;
}

.hero__lead {
  color: var(--gray-600);
  font-size: 16px;
  max-width: 62ch;
  margin: 0 0 20px;
}

.pulse {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }

/* แถบจุดเด่น 4 ช่อง */
.chips {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin: 0 0 22px;
  padding: 0;
  list-style: none;
}
.chips li {
  display: flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  padding: 10px 12px;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--gray-800);
  box-shadow: var(--sh-xs);
  margin: 0;
}
.chips svg { width: 16px; height: 16px; color: var(--green); }

.hero__actions { display: flex; flex-wrap: wrap; gap: 10px; }

/* การ์ดสรุปข้อมูลข้าง hero — บอกตัวตนผู้ดำเนินการตั้งแต่หน้าจอแรก */
.hero__aside {
  margin-top: 28px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: 20px;
  box-shadow: var(--sh-sm);
}
.hero__aside h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 15.5px;
  color: var(--green-deep);
  margin: 0 0 14px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--gray-100);
}
.hero__aside dl {
  margin: 0 0 14px;
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 9px 14px;
  font-size: 13.5px;
}
.hero__aside dt { color: var(--gray-500); white-space: nowrap; }
.hero__aside dd { margin: 0; color: var(--gray-900); font-weight: 600; text-align: right; }
.hero__aside dd b { color: var(--green-deep); font-size: 15px; }
.hero__aside > p { margin: 0; font-size: 12.5px; color: var(--gray-600); line-height: 1.65; }
.hero__aside a { color: var(--green-deep); font-weight: 600; }

@media (min-width: 640px) {
  .chips { grid-template-columns: repeat(4, 1fr); }
}
@media (min-width: 1024px) {
  .hero { padding: 52px 0 72px; }
  .hero__lead { font-size: 17.5px; }
  .hero--split .hero__inner {
    display: grid;
    grid-template-columns: 1.2fr .8fr;
    gap: 44px;
    align-items: center;
  }
  .hero--split .hero__aside { margin-top: 0; }
}

/* --------------------------------------------------------------------------
   7. ปุ่ม
   -------------------------------------------------------------------------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: var(--tap);
  padding: 11px 20px;
  border-radius: var(--r-xl);
  font-family: inherit;
  font-size: 15px;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  border: 1px solid transparent;
  transition: background .15s, border-color .15s, color .15s, transform .1s;
}
.btn:active { transform: translateY(1px); }
.btn svg { width: 17px; height: 17px; }

.btn--primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 2px 10px rgba(45, 170, 38, .28);
}
.btn--primary:hover { background: var(--green-deep); }

.btn--ghost {
  background: var(--white);
  color: var(--gray-800);
  border-color: var(--gray-200);
}
.btn--ghost:hover { border-color: var(--green); color: var(--green-deep); }

.btn--block { width: 100%; }

/* --------------------------------------------------------------------------
   7b. แถบเลือกหมวด (เป็นลิงก์จริงทุกอัน ไม่ใช่ตัวกรองด้วย JavaScript)
   -------------------------------------------------------------------------- */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  list-style: none;
  margin: 0 0 26px;
  padding: 0;
}
.filters li { margin: 0; }

.filters a {
  display: inline-block;
  padding: 8px 17px;
  border-radius: 999px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  color: var(--gray-700);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
  white-space: nowrap;
  transition: border-color .15s, color .15s, background .15s;
}
.filters a:hover { border-color: var(--green); color: var(--green-deep); }
.filters a[aria-current="page"] {
  background: var(--green);
  border-color: var(--green);
  color: #fff;
  box-shadow: 0 2px 8px rgba(45, 170, 38, .28);
}

/* --------------------------------------------------------------------------
   8. การ์ดแพ็กเกจ
   -------------------------------------------------------------------------- */
.pkgs {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.pkgs > li { margin: 0; }

@media (min-width: 560px) { .pkgs { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 900px)  { .pkgs { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1180px) { .pkgs { grid-template-columns: repeat(4, 1fr); } }

.pkg {
  position: relative;
  display: flex;
  flex-direction: column;
  height: 100%;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: 18px;
  box-shadow: var(--sh-xs);
  transition: transform .2s, border-color .2s, box-shadow .2s;
}
.pkg:hover {
  transform: translateY(-3px);
  border-color: rgba(45, 170, 38, .6);
  box-shadow: var(--sh-md);
}

.pkg--popular { border-color: rgba(45, 170, 38, .55); box-shadow: var(--sh-sm); }

.pkg__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 12px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
  background: var(--tint);
  color: var(--green-deep);
  border: 1px solid var(--emerald-200);
  white-space: nowrap;
}

.pill--hot {
  background: var(--yellow);
  color: var(--forest);
  border-color: var(--yellow);
}

.pkg__price { display: flex; align-items: baseline; gap: 5px; }
.pkg__price b {
  font-size: 34px;
  font-weight: 800;
  color: var(--gray-900);
  letter-spacing: -.02em;
  line-height: 1;
}
.pkg__price span { font-size: 14px; font-weight: 600; color: var(--gray-600); }

.pkg__vat {
  font-size: 12px;
  color: var(--emerald-700);
  font-weight: 500;
  margin: 4px 0 12px;
}

.pkg__body {
  background: var(--bg);
  border: 1px solid rgba(209, 250, 229, .9);
  border-radius: var(--r-xl);
  padding: 13px;
  margin-bottom: 14px;
  flex-grow: 1;
}

.pkg__speed {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  font-weight: 600;
  color: var(--gray-900);
  line-height: 1.55;
  margin-bottom: 9px;
}
.pkg__speed svg { width: 16px; height: 16px; color: var(--green); margin-top: 3px; }

.pkg__benefits { list-style: none; margin: 0; padding: 0; }
.pkg__benefits li {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald-900);
  line-height: 1.6;
  margin-bottom: 4px;
}
.pkg__benefits li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--green-deep);
  margin-top: 8px;
  flex: none;
}

/* กล่องรหัส USSD */
.code {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--tint);
  border: 2px dashed rgba(45, 170, 38, .8);
  border-radius: var(--r-xl);
  padding: 9px 12px;
  margin-bottom: 12px;
}
.code__val {
  font-family: var(--f-mono);
  font-size: 15px;
  font-weight: 800;
  color: var(--green-deep);
  letter-spacing: .04em;
  word-break: break-all;
}
.code svg { width: 16px; height: 16px; color: var(--green); }

.pkg__actions { display: grid; gap: 8px; }

.pkg__note {
  margin: 10px 0 0;
  font-size: 11.5px;
  color: var(--gray-500);
  text-align: center;
  line-height: 1.5;
}
.pkg__note b { color: var(--emerald-800); font-weight: 700; }
.pkg__note--auto b { color: var(--orange); }

/* คำเน้นในข้อความความเร็ว */
.hl-key { font-weight: 800; color: var(--green-deep); }
.hl-num { font-weight: 900; color: var(--green-deep); font-size: 1.05em; }

/* --------------------------------------------------------------------------
   9. ตารางเปรียบเทียบ
   -------------------------------------------------------------------------- */
.tablebox {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-2xl);
  box-shadow: var(--sh-sm);
  overflow: hidden;
}

.tablescroll { overflow-x: auto; }

table.cmp {
  width: 100%;
  border-collapse: collapse;
  text-align: left;
  min-width: 720px;
  font-size: 14px;
}

table.cmp caption {
  caption-side: top;
  text-align: left;
  padding: 14px 16px;
  font-size: 13px;
  color: var(--gray-600);
  background: var(--gray-50);
  border-bottom: 1px solid var(--gray-200);
}

table.cmp thead tr {
  background: var(--green);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
}
table.cmp th { padding: 13px 15px; font-weight: 700; white-space: nowrap; }
table.cmp th.c { text-align: center; }

table.cmp tbody tr { background: var(--white); border-top: 1px solid var(--gray-100); }
table.cmp tbody tr:hover { background: rgba(241, 249, 238, .6); }

table.cmp td { padding: 14px 15px; vertical-align: middle; }
table.cmp td.c { text-align: center; }
table.cmp td.nowrap { white-space: nowrap; }

.t-price b { font-size: 17px; font-weight: 800; color: var(--gray-900); }
.t-price span { font-size: 12px; color: var(--gray-500); margin-left: 3px; }

.t-dur {
  display: inline-block;
  padding: 2px 11px;
  border-radius: 999px;
  background: var(--emerald-50);
  color: var(--emerald-800);
  font-size: 12px;
  font-weight: 600;
  border: 1px solid var(--emerald-100);
  white-space: nowrap;
}

.t-speed { font-weight: 600; color: var(--gray-900); max-width: 320px; }
.t-benefit { font-size: 12.5px; color: var(--emerald-700); font-weight: 600; }

.t-code {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--tint);
  border: 1px dashed var(--green);
  padding: 6px 11px;
  border-radius: 9px;
  font-family: var(--f-mono);
  font-size: 13px;
  font-weight: 700;
  color: var(--emerald-900);
  white-space: nowrap;
}

.t-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  background: var(--green);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
  padding: 8px 15px;
  border-radius: 9px;
  text-decoration: none;
  white-space: nowrap;
  min-height: 38px;
}
.t-btn:hover { background: var(--green-deep); }
.t-btn svg { width: 14px; height: 14px; }

.tablefoot {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 13px 16px;
  background: var(--tint);
  border-top: 1px solid var(--emerald-100);
  font-size: 13px;
  font-weight: 600;
  color: var(--emerald-800);
}
.tablefoot svg { width: 16px; height: 16px; color: var(--green-deep); }

/* --------------------------------------------------------------------------
   10. กล่องข้อมูล / โน้ต
   -------------------------------------------------------------------------- */
.note {
  border-radius: var(--r-2xl);
  padding: 18px 20px;
  border: 1px solid var(--gray-200);
  background: var(--white);
  margin: 0 0 20px;
}
.note > :last-child { margin-bottom: 0; }
.note h3 {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 16.5px;
  margin: 0 0 9px;
}
.note h3 svg { width: 19px; height: 19px; }
.note p, .note li { font-size: 14.5px; color: var(--gray-700); }

.note--green  { background: var(--tint);      border-color: var(--emerald-200); }
.note--green h3 { color: var(--green-deep); }
.note--amber  { background: var(--amber-50);  border-color: var(--amber-200); }
.note--amber h3 { color: var(--amber-800); }
.note--red    { background: var(--red-50);    border-color: var(--red-200); }
.note--red h3 { color: var(--red-700); }
.note--blue   { background: var(--blue-50);   border-color: var(--blue-200); }
.note--blue h3 { color: var(--blue-800); }

/* --------------------------------------------------------------------------
   11. ขั้นตอนการสมัคร
   -------------------------------------------------------------------------- */
.steps {
  display: grid;
  gap: 16px;
  list-style: none;
  margin: 0 0 22px;
  padding: 0;
  counter-reset: step;
}
.steps > li {
  position: relative;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: 22px 20px 20px;
  box-shadow: var(--sh-xs);
  margin: 0;
}
.steps > li::before {
  counter-increment: step;
  content: counter(step);
  position: absolute;
  top: -14px;
  left: 20px;
  width: 34px;
  height: 34px;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 3px 10px rgba(8, 122, 54, .3);
}
.steps h3 { font-size: 17px; margin: 10px 0 7px; }
.steps p { font-size: 14.5px; color: var(--gray-600); margin: 0; }

@media (min-width: 768px) { .steps { grid-template-columns: repeat(3, 1fr); } }

/* --------------------------------------------------------------------------
   12. FAQ (ใช้ <details> — เนื้อหาอยู่ใน HTML เสมอ)
   -------------------------------------------------------------------------- */
.faq { display: grid; gap: 10px; }

.faq details {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  overflow: hidden;
  box-shadow: var(--sh-xs);
}
.faq details[open] { border-color: var(--emerald-200); }

.faq summary {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  padding: 15px 17px;
  cursor: pointer;
  font-size: 15.5px;
  font-weight: 600;
  color: var(--gray-900);
  list-style: none;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before {
  content: "?";
  width: 24px; height: 24px;
  border-radius: 50%;
  background: var(--tint);
  color: var(--green-deep);
  border: 1px solid var(--emerald-200);
  font-size: 13px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
  margin-top: 1px;
}
.faq summary:hover { background: var(--gray-50); }
.faq details[open] summary { background: var(--tint); }

.faq__a {
  padding: 0 17px 16px 52px;
  font-size: 14.5px;
  color: var(--gray-700);
  line-height: 1.75;
}
.faq__a > :last-child { margin-bottom: 0; }
.faq__a code {
  font-family: var(--f-mono);
  background: var(--tint);
  border: 1px solid var(--emerald-200);
  color: var(--green-deep);
  padding: 1px 6px;
  border-radius: 5px;
  font-size: .95em;
  font-weight: 700;
}

/* --------------------------------------------------------------------------
   13. การ์ดลิงก์ / หมวดหมู่
   -------------------------------------------------------------------------- */
.cards {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.cards > li { margin: 0; }

.cards a {
  display: flex;
  flex-direction: column;
  height: 100%;
  gap: 5px;
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: 17px;
  text-decoration: none;
  box-shadow: var(--sh-xs);
  transition: transform .18s, border-color .18s, box-shadow .18s;
}
.cards a:hover {
  transform: translateY(-3px);
  border-color: var(--green);
  box-shadow: var(--sh-md);
}

.cards__badge {
  display: inline-flex;
  align-items: baseline;
  gap: 4px;
  align-self: flex-start;
  background: linear-gradient(135deg, var(--green), var(--green-deep));
  color: #fff;
  border-radius: 10px;
  padding: 5px 11px;
  font-size: 16px;
  font-weight: 800;
  margin-bottom: 4px;
}
.cards__badge small { font-size: 10px; font-weight: 600; opacity: .85; }

.cards strong { font-size: 15.5px; color: var(--gray-900); font-weight: 700; }
.cards span { font-size: 13px; color: var(--gray-600); line-height: 1.6; }
.cards em {
  font-style: normal;
  font-size: 13px;
  font-weight: 700;
  color: var(--green-deep);
  margin-top: auto;
  padding-top: 8px;
}

@media (min-width: 900px) { .cards { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   14. เนื้อหาแบบบทความ (หน้านโยบาย / เกี่ยวกับเรา)
   -------------------------------------------------------------------------- */
.prose {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: 24px 20px;
  box-shadow: var(--sh-xs);
  max-width: 860px;
}
.prose > :last-child { margin-bottom: 0; }

.prose h2 {
  font-size: 21px;
  margin: 30px 0 12px;
  padding-bottom: 9px;
  border-bottom: 2px solid var(--tint);
}
.prose h2:first-child { margin-top: 0; }
.prose h3 { font-size: 17px; margin: 22px 0 9px; color: var(--green-deep); }
.prose p, .prose li { font-size: 15.5px; color: var(--gray-700); line-height: 1.85; }
.prose strong { color: var(--gray-900); font-weight: 700; }
.prose ul, .prose ol { padding-left: 1.5em; }
.prose a { color: var(--green-deep); font-weight: 600; }

.prose code {
  font-family: var(--f-mono);
  background: var(--tint);
  border: 1px solid var(--emerald-200);
  color: var(--green-deep);
  padding: 2px 7px;
  border-radius: 5px;
  font-size: .93em;
  font-weight: 700;
}

.prose pre {
  background: var(--forest);
  color: #d1fae5;
  padding: 14px 16px;
  border-radius: var(--r-xl);
  overflow-x: auto;
  font-family: var(--f-mono);
  font-size: 13px;
  line-height: 1.7;
}
.prose pre code { background: none; border: 0; color: inherit; padding: 0; font-weight: 400; }

@media (min-width: 768px) { .prose { padding: 32px 34px; } }

/* ตารางข้อมูลตัวตน */
.factsheet {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 15px;
  border: 1px solid var(--gray-200);
  border-radius: var(--r-xl);
  overflow: hidden;
}
.factsheet th,
.factsheet td { padding: 12px 15px; text-align: left; border-bottom: 1px solid var(--gray-100); }
.factsheet tr:last-child th,
.factsheet tr:last-child td { border-bottom: 0; }
.factsheet th {
  background: var(--tint);
  color: var(--green-deep);
  font-weight: 700;
  width: 40%;
  white-space: nowrap;
  vertical-align: top;
}
.factsheet td { color: var(--gray-800); background: var(--white); }
.factsheet a { color: var(--green-deep); font-weight: 600; }

@media (max-width: 600px) {
  .factsheet, .factsheet tbody, .factsheet tr, .factsheet th, .factsheet td { display: block; width: 100%; }
  .factsheet th { border-bottom: 0; padding-bottom: 4px; }
  .factsheet td { padding-top: 0; padding-bottom: 14px; }
}

/* --------------------------------------------------------------------------
   15. แถบความน่าเชื่อถือ
   -------------------------------------------------------------------------- */
.trust {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  list-style: none;
  margin: 0;
  padding: 0;
}
.trust > li {
  background: var(--white);
  border: 1px solid var(--gray-200);
  border-radius: var(--r-2xl);
  padding: 18px 16px;
  text-align: center;
  box-shadow: var(--sh-xs);
  margin: 0;
}
.trust__ico {
  width: 42px; height: 42px;
  margin: 0 auto 10px;
  border-radius: 13px;
  background: var(--tint);
  border: 1px solid var(--emerald-200);
  display: flex;
  align-items: center;
  justify-content: center;
}
.trust__ico svg { width: 21px; height: 21px; color: var(--green-deep); }
.trust strong { display: block; font-size: 15px; color: var(--gray-900); margin-bottom: 4px; }
.trust span { font-size: 12.5px; color: var(--gray-600); line-height: 1.6; }

@media (min-width: 900px) { .trust { grid-template-columns: repeat(4, 1fr); } }

/* --------------------------------------------------------------------------
   16. Footer
   -------------------------------------------------------------------------- */
.ft {
  background: var(--forest);
  color: #fff;
  border-top: 4px solid var(--green);
  padding: 48px 0 26px;
  margin-top: 20px;
}

.ft__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 30px;
  margin-bottom: 34px;
}
@media (min-width: 700px)  { .ft__grid { grid-template-columns: repeat(2, 1fr); } }
@media (min-width: 1024px) { .ft__grid { grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; } }

.ft__brand { display: flex; align-items: center; gap: 9px; margin-bottom: 14px; }
.ft__mark {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: var(--green);
  display: flex;
  align-items: center;
  justify-content: center;
}
.ft__mark svg { width: 17px; height: 17px; color: var(--yellow); fill: var(--yellow); }
.ft__name { display: flex; gap: 3px; font-size: 19px; font-weight: 800; letter-spacing: -.02em; }
.ft__name .f2 { color: var(--green-lime); }

.ft p { font-size: 13px; color: rgba(209, 250, 229, .8); line-height: 1.8; }

.ft h2 {
  font-size: 14.5px;
  font-weight: 700;
  color: #fff;
  margin: 0 0 13px;
  letter-spacing: .02em;
}

.ft ul { list-style: none; margin: 0; padding: 0; }
.ft li { margin-bottom: 9px; }
.ft a {
  color: rgba(209, 250, 229, .85);
  text-decoration: none;
  font-size: 13.5px;
  transition: color .15s;
}
.ft a:hover { color: var(--green-lime); text-decoration: underline; }

.ft__mono {
  font-family: var(--f-mono);
  color: var(--yellow);
  font-weight: 700;
  font-size: 13px;
}

.ft__badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 12px;
  color: var(--emerald-300);
  background: rgba(255, 255, 255, .06);
  border: 1px solid rgba(140, 198, 63, .3);
  padding: 6px 12px;
  border-radius: 999px;
  margin-top: 6px;
}
.ft__badge svg { width: 14px; height: 14px; }

.ft__legal {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 22px;
  margin-bottom: 20px;
}
.ft__legal p {
  font-size: 12.5px;
  color: rgba(209, 250, 229, .72);
  line-height: 1.85;
  max-width: 100ch;
}
.ft__legal b { color: var(--green-lime); font-weight: 700; }

.ft__bottom {
  border-top: 1px solid rgba(255, 255, 255, .12);
  padding-top: 20px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  font-size: 12.5px;
  color: rgba(209, 250, 229, .7);
}
.ft__bottom nav { display: flex; flex-wrap: wrap; gap: 8px 14px; }
.ft__bottom a { font-size: 12.5px; }

/* --------------------------------------------------------------------------
   17. Toast (แจ้งผลคัดลอกรหัส) — เสริมเท่านั้น เว็บใช้งานได้ครบแม้ปิด JS
   -------------------------------------------------------------------------- */
.toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  transform: translateX(-50%) translateY(20px);
  background: var(--forest);
  color: #fff;
  padding: 12px 20px;
  border-radius: var(--r-xl);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--sh-lg);
  border: 1px solid var(--green);
  opacity: 0;
  pointer-events: none;
  transition: opacity .2s, transform .2s;
  z-index: 90;
  max-width: calc(100vw - 32px);
  text-align: center;
}
.toast[data-show="1"] { opacity: 1; transform: translateX(-50%) translateY(0); }

/* --------------------------------------------------------------------------
   18. Utilities
   -------------------------------------------------------------------------- */
.stack > * + * { margin-top: 18px; }
.mb0 { margin-bottom: 0; }
.center { text-align: center; }
.muted { color: var(--gray-600); font-size: 14px; }
.updated {
  font-size: 13px;
  color: var(--gray-500);
  margin: 0 0 18px;
}
.updated b { color: var(--emerald-800); }

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

@media print {
  .hd, .ft__grid, .toast, .hd__rail { display: none; }
  body { background: #fff; }
  .pkg, .prose, .tablebox { box-shadow: none; border-color: #ccc; }
}
