/* ── Base ─────────────────────────────────────────────────────────────── */
:root {
  --navy: #1b3a6b;
  --blue: #2c5aa0;
  --blue-soft: #eef3fb;
  --yellow: #ffc107;
  --green: #27ae60;
  --ink: #22304a;
  --muted: #6b7688;
  --line: #e6eaf2;
  --bg: #f5f7fb;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Sarabun', 'Segoe UI', system-ui, sans-serif;
  margin: 0; color: var(--ink); line-height: 1.7; background: #fff;
}
.container { max-width: 1080px; margin: auto; padding: 0 20px; }
.container-narrow { max-width: 760px; }
h1, h2, h3 { line-height: 1.35; margin: 0 0 12px; }
p { margin: 0 0 12px; }
a { color: var(--blue); }

/* ── Buttons ──────────────────────────────────────────────────────────── */
.btn {
  display: inline-block; padding: 13px 28px; border-radius: 10px;
  text-decoration: none; font-weight: 700; font-size: 15px;
  border: none; cursor: pointer; transition: transform .12s, box-shadow .12s, background .15s;
}
.btn:hover { transform: translateY(-1px); }
.btn-primary {
  background: var(--yellow); color: var(--navy);
  box-shadow: 0 4px 14px rgba(255,193,7,.35);
}
.btn-primary:hover { background: #ffca2c; }
.btn-ghost { background: transparent; color: var(--blue); border: 2px solid var(--blue); padding: 11px 26px; }
.btn-ghost:hover { background: var(--blue-soft); }
.btn-outline { background: transparent; color: var(--navy); border: 2px solid var(--navy); padding: 11px 26px; }
.btn-outline:hover { background: var(--blue-soft); }
.btn-light { background: #fff; color: var(--navy); }
.btn-sm { padding: 9px 18px; font-size: 13.5px; border-radius: 8px; }
.btn-block { display: block; text-align: center; }

/* ── Header ───────────────────────────────────────────────────────────── */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(255,255,255,.94); backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
}
.header-row { display: flex; align-items: center; gap: 28px; padding: 14px 20px; }
.brand {
  font-size: 20px; font-weight: 800; color: var(--navy);
  text-decoration: none; display: flex; align-items: center; gap: 8px;
}
.main-nav { display: flex; gap: 22px; margin-left: auto; }
.main-nav a {
  color: var(--ink); text-decoration: none; font-size: 14.5px; font-weight: 500;
}
.main-nav a:hover { color: var(--blue); }

/* ── Hero ─────────────────────────────────────────────────────────────── */
.hero {
  background: linear-gradient(160deg, #fdfeff 0%, var(--blue-soft) 100%);
  border-bottom: 1px solid var(--line);
}
.hero-grid {
  display: grid; grid-template-columns: 1.1fr .9fr; gap: 48px;
  align-items: center; padding-top: 72px; padding-bottom: 72px;
}
.hero-badge {
  display: inline-block; background: #e6f4ea; color: #157347;
  font-size: 13px; font-weight: 700; padding: 5px 14px; border-radius: 20px;
  margin-bottom: 18px;
}
.hero h1 { font-size: 42px; font-weight: 800; color: var(--navy); }
.hero h1 em { font-style: normal; color: var(--blue); }
.hero-sub { font-size: 16.5px; color: var(--muted); max-width: 480px; margin-bottom: 26px; }
.hero-cta { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 22px; }
.hero-trust {
  list-style: none; padding: 0; margin: 0;
  display: flex; gap: 18px; flex-wrap: wrap;
  font-size: 13px; color: var(--muted);
}

/* hero mock document */
.hero-visual { display: flex; justify-content: center; }
.doc-mock {
  background: #fff; border-radius: 16px; width: 100%; max-width: 400px;
  box-shadow: 0 24px 60px rgba(27,58,107,.18);
  overflow: hidden; position: relative;
  transform: rotate(1.5deg);
}
.doc-mock-head {
  background: var(--navy); padding: 12px 16px;
  display: flex; align-items: center; gap: 6px;
}
.doc-dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255,255,255,.35); }
.doc-mock-title { color: #fff; font-size: 12.5px; font-weight: 600; margin-left: 8px; }
.doc-mock-body { padding: 22px; }
.doc-line { height: 10px; border-radius: 5px; background: var(--line); margin-bottom: 10px; }
.doc-line.w-70 { width: 70%; } .doc-line.w-50 { width: 50%; }
.doc-table { margin-top: 18px; border: 1px solid var(--line); border-radius: 10px; overflow: hidden; }
.doc-row {
  display: grid; grid-template-columns: 1fr 60px 80px;
  padding: 9px 14px; font-size: 13px; border-bottom: 1px solid var(--line);
}
.doc-row span:nth-child(2), .doc-row span:nth-child(3) { text-align: right; }
.doc-row.head { background: var(--bg); font-weight: 700; font-size: 12px; color: var(--muted); }
.doc-row.total { border-bottom: none; font-weight: 800; color: var(--navy); background: #fffbe8; }
.doc-stamp {
  position: absolute; right: 18px; bottom: 60px;
  border: 3px solid var(--green); color: var(--green);
  font-weight: 800; font-size: 15px; padding: 4px 14px; border-radius: 8px;
  transform: rotate(-10deg); opacity: .85;
}

/* ── Sections ─────────────────────────────────────────────────────────── */
.section { padding: 76px 0; }
.section-alt { background: var(--bg); }
.section-tag {
  color: var(--blue); font-weight: 700; font-size: 13px;
  text-transform: uppercase; letter-spacing: 1.5px; margin-bottom: 8px;
}
.section-title { font-size: 30px; font-weight: 800; color: var(--navy); }
.section-sub { color: var(--muted); font-size: 15.5px; margin-bottom: 8px; }

/* ── Features ─────────────────────────────────────────────────────────── */
.features-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 36px;
}
.feature-card {
  background: #fff; border: 1px solid var(--line); border-radius: 14px;
  padding: 26px 24px; transition: box-shadow .15s, transform .15s;
}
.feature-card:hover { box-shadow: 0 10px 30px rgba(27,58,107,.1); transform: translateY(-3px); }
.feature-icon { font-size: 30px; margin-bottom: 12px; }
.feature-card h3 { font-size: 17px; font-weight: 700; color: var(--navy); }
.feature-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ── Steps ────────────────────────────────────────────────────────────── */
.steps-grid {
  display: grid; grid-template-columns: repeat(3, 1fr);
  gap: 22px; margin-top: 36px;
}
.step-card {
  background: #fff; border-radius: 14px; padding: 28px 24px;
  border: 1px solid var(--line); position: relative;
}
.step-num {
  width: 40px; height: 40px; border-radius: 50%;
  background: var(--navy); color: #fff; font-weight: 800; font-size: 18px;
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 16px;
}
.step-card h3 { font-size: 16.5px; font-weight: 700; color: var(--navy); }
.step-card p { font-size: 14px; color: var(--muted); margin: 0; }

/* ── Pricing ──────────────────────────────────────────────────────────── */
.pricing-grid {
  display: grid; grid-template-columns: repeat(2, minmax(0, 380px));
  gap: 24px; margin-top: 36px; justify-content: center;
}
.price-card {
  background: #fff; border: 1px solid var(--line); border-radius: 16px;
  padding: 32px 28px; position: relative;
}
.price-card.featured {
  border: 2px solid var(--yellow);
  box-shadow: 0 16px 44px rgba(255,193,7,.18);
}
.price-flag {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--yellow); color: var(--navy);
  font-size: 12px; font-weight: 800; padding: 3px 16px; border-radius: 20px;
}
.price-card h3 { font-size: 18px; font-weight: 800; color: var(--navy); }
.price { margin: 6px 0 4px; }
.price-num { font-size: 34px; font-weight: 800; color: var(--navy); }
.price-desc { font-size: 13.5px; color: var(--muted); margin-bottom: 18px; }
.price-list {
  list-style: none; padding: 0; margin: 0 0 24px;
  font-size: 14px; color: var(--ink);
}
.price-list li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.price-list li:last-child { border-bottom: none; }

/* ── FAQ ──────────────────────────────────────────────────────────────── */
.faq-item {
  background: #fff; border: 1px solid var(--line); border-radius: 12px;
  padding: 0; margin-top: 14px; overflow: hidden;
}
.faq-item summary {
  cursor: pointer; font-weight: 700; font-size: 15.5px; color: var(--navy);
  padding: 18px 22px; list-style: none; position: relative;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+'; position: absolute; right: 20px; top: 50%;
  transform: translateY(-50%); font-size: 22px; color: var(--blue);
  transition: transform .15s;
}
.faq-item[open] summary::after { content: '−'; }
.faq-item p { padding: 0 22px 18px; margin: 0; font-size: 14.5px; color: var(--muted); }

/* ── CTA band ─────────────────────────────────────────────────────────── */
.cta-band {
  background: linear-gradient(135deg, var(--navy) 0%, var(--blue) 100%);
  color: #fff; text-align: center; padding: 64px 20px;
}
.cta-band h2 { font-size: 28px; font-weight: 800; }
.cta-band p { color: rgba(255,255,255,.75); margin-bottom: 24px; }

/* ── Footer ───────────────────────────────────────────────────────────── */
.site-footer { background: #fff; border-top: 1px solid var(--line); padding: 40px 0 0; }
.footer-row {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 24px; flex-wrap: wrap; padding-bottom: 24px;
}
.footer-row strong { color: var(--navy); font-size: 17px; }
.footer-sub { font-size: 13px; color: var(--muted); margin: 4px 0 0; }
.footer-nav { display: flex; gap: 20px; flex-wrap: wrap; }
.footer-nav a { font-size: 13.5px; color: var(--muted); text-decoration: none; }
.footer-nav a:hover { color: var(--blue); }
.footer-copy {
  border-top: 1px solid var(--line); padding-top: 16px; padding-bottom: 20px;
  font-size: 12.5px; color: #aab2c0;
}

/* ── Articles (หน้าในหมวดบทความใช้ CSS ชุดนี้ร่วมกัน) ─────────────────── */
.article-body { max-width: 720px; margin: 40px auto 80px; padding: 0 20px; }
.article-body h1 { font-size: 30px; color: var(--navy); }
.article-body ul { padding-left: 22px; }

/* ── Responsive ───────────────────────────────────────────────────────── */
@media (max-width: 900px) {
  .main-nav { display: none; }
  .hero-grid { grid-template-columns: 1fr; gap: 36px; padding-top: 48px; padding-bottom: 48px; }
  .hero h1 { font-size: 30px; }
  .hero-visual { order: -1; }
  .doc-mock { transform: none; max-width: 340px; }
  .features-grid, .steps-grid { grid-template-columns: 1fr; }
  .pricing-grid { grid-template-columns: 1fr; }
  .section { padding: 52px 0; }
  .section-title { font-size: 24px; }
}
