/* ============================================================
   AI by SSS (aibysss.com) — Shared Stylesheet
   Theme: Trust Blue (CI จากโลโก้) + ปุ่ม LINE สีเขียว
   ============================================================ */

:root {
  /* แบรนด์หลัก — น้ำเงิน CI จากโลโก้ (น่าเชื่อถือ) */
  --brand: #1366DC;
  --brand-2: #2E9BF0;
  --brand-dark: #0A47AE;
  --brand-deep: #07285E;
  --brand-light: #e6effd;

  /* ปุ่ม LINE (เขียว) */
  --line: #06C755;
  --line-dark: #05a948;

  --ink: #13294b;
  --ink-soft: #46586f;
  --muted: #8693a6;
  --bg: #ffffff;
  --bg-soft: #f3f8fe;
  --bg-tint: #ecf4fe;
  --card: #ffffff;
  --border: #e0e8f2;
  --warn: #ff7a00;
  --star: #ffb300;
  --shadow-sm: 0 2px 8px rgba(13, 41, 90, 0.06);
  --shadow-md: 0 10px 30px rgba(13, 41, 90, 0.10);
  --shadow-lg: 0 20px 50px rgba(13, 41, 90, 0.16);
  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1140px;
  --font: "Noto Sans Thai", "Sarabun", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

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

body {
  font-family: var(--font);
  color: var(--ink);
  background: var(--bg);
  line-height: 1.7;
  font-size: 17px;
  overflow-x: hidden;
}

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

a { color: var(--brand-dark); text-decoration: none; }
a:hover { text-decoration: underline; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

h1, h2, h3, h4 { line-height: 1.3; color: var(--ink); font-weight: 800; }
h1 { font-size: clamp(28px, 5vw, 44px); }
h2 { font-size: clamp(24px, 4vw, 34px); }
h3 { font-size: clamp(19px, 3vw, 23px); }
p { color: var(--ink-soft); }

section { padding: 56px 0; }
.section-tight { padding: 36px 0; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  font-family: var(--font); font-weight: 800; font-size: 17px;
  padding: 14px 26px; border-radius: 999px; border: 0; cursor: pointer;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
  text-align: center; line-height: 1.2;
}
.btn:hover { text-decoration: none; transform: translateY(-2px); }
/* ปุ่ม LINE = เขียว เด่นชัด */
.btn-line {
  background: var(--line); color: #fff;
  box-shadow: 0 8px 22px rgba(6, 199, 85, .35);
}
.btn-line:hover { background: var(--line-dark); color: #fff; box-shadow: 0 12px 28px rgba(6, 199, 85, .45); }
/* ปุ่มรอง = น้ำเงินแบรนด์ */
.btn-outline {
  background: #fff; color: var(--brand-dark); border: 2px solid var(--brand);
}
.btn-outline:hover { background: var(--brand-light); color: var(--brand-dark); }
.btn-lg { font-size: 19px; padding: 17px 36px; }
.btn-block { display: flex; width: 100%; }
.btn .ico { width: 22px; height: 22px; fill: currentColor; }

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 900;
  background: rgba(255,255,255,.92); backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex; align-items: center; justify-content: space-between;
  height: 66px; gap: 16px;
}
.brand { display: flex; align-items: center; gap: 10px; font-weight: 900; font-size: 21px; color: var(--ink); }
.brand:hover { text-decoration: none; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 50%; overflow: hidden; flex-shrink: 0;
  background: linear-gradient(135deg, var(--brand), var(--brand-2));
  display: grid; place-items: center;
  box-shadow: 0 4px 12px rgba(27,116,228,.35);
}
.brand-logo { width: 100%; height: 100%; object-fit: cover; border-radius: 50%; display: block; }
.nav-links { display: flex; align-items: center; gap: 6px; }
.nav-links a {
  color: var(--ink-soft); font-weight: 600; padding: 8px 12px; border-radius: 8px; font-size: 16px;
}
.nav-links a:hover { color: var(--brand-dark); background: var(--bg-tint); text-decoration: none; }
.nav-cta { display: flex; align-items: center; gap: 10px; }
.nav-toggle {
  display: none; background: none; border: 0; cursor: pointer; padding: 8px;
  flex-direction: column; gap: 5px;
}
.nav-toggle span { width: 24px; height: 3px; background: var(--ink); border-radius: 3px; transition: .2s; }

/* ---------- Hero ---------- */
.hero {
  background: radial-gradient(1200px 400px at 80% -10%, var(--brand-light), transparent),
              linear-gradient(180deg, var(--bg-tint), #fff);
  padding: 64px 0 56px;
}
.hero-grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; }
.hero .eyebrow {
  display: inline-flex; align-items: center; gap: 8px; background: #fff; color: var(--brand-dark);
  font-weight: 700; font-size: 14px; padding: 7px 14px; border-radius: 999px;
  border: 1px solid var(--border); box-shadow: var(--shadow-sm); margin-bottom: 18px;
}
.hero h1 { margin-bottom: 16px; }
.hero h1 .hl { color: var(--brand-dark); }
.hero p.lead { font-size: 19px; color: var(--ink-soft); margin-bottom: 26px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 22px; }
.hero-trust { display: flex; flex-wrap: wrap; gap: 18px; color: var(--ink-soft); font-size: 15px; font-weight: 600; }
.hero-trust span { display: inline-flex; align-items: center; gap: 6px; }
.hero-visual {
  background: #fff; border: 1px solid var(--border); border-radius: 22px; padding: 24px;
  box-shadow: var(--shadow-lg);
}
.price-tag-big { font-size: 46px; font-weight: 900; color: var(--brand-dark); }
.price-tag-big small { font-size: 18px; color: var(--muted); font-weight: 700; }

/* ---------- Pills / chips ---------- */
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 14px 0; }
.chip {
  background: var(--bg-tint); color: var(--brand-dark); font-weight: 600; font-size: 14px;
  padding: 6px 13px; border-radius: 999px; border: 1px solid var(--border);
}

/* ---------- Section heading ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 36px; }
.sec-head .kicker { color: var(--brand); font-weight: 800; letter-spacing: .5px; text-transform: uppercase; font-size: 14px; }
.sec-head h2 { margin: 8px 0 10px; }
.sec-head p { font-size: 17px; }

/* ---------- Product grid ---------- */
.grid { display: grid; gap: 22px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
.grid-4 { grid-template-columns: repeat(4, 1fr); }

.product-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 26px; box-shadow: var(--shadow-sm); transition: transform .18s, box-shadow .18s, border-color .18s;
  display: flex; flex-direction: column;
}
.product-card:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); border-color: var(--brand); }
.product-card .pc-icon {
  width: 54px; height: 54px; border-radius: 14px; display: grid; place-items: center;
  font-size: 26px; margin-bottom: 14px; background: var(--bg-tint);
}
.product-card h3 { margin-bottom: 6px; }
.product-card h3 a { color: var(--ink); }
.product-card h3 a:hover { color: var(--brand-dark); text-decoration: none; }
.product-card p { font-size: 15.5px; flex: 1; margin-bottom: 14px; }
.product-card .pc-price { font-weight: 900; color: var(--brand-dark); font-size: 22px; margin-bottom: 14px; }
.product-card .pc-price small { font-size: 14px; color: var(--muted); font-weight: 600; }
.product-card .pc-actions { display: flex; gap: 8px; }
.product-card .pc-actions .btn { flex: 1; font-size: 15px; padding: 11px 14px; }

/* ---------- Features ---------- */
.feature {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 24px; box-shadow: var(--shadow-sm);
}
.feature .f-ico { font-size: 30px; margin-bottom: 10px; }
.feature h3 { font-size: 19px; margin-bottom: 6px; }
.feature p { font-size: 15.5px; }

/* ---------- Steps ---------- */
.steps { counter-reset: step; display: grid; gap: 18px; grid-template-columns: repeat(4, 1fr); }
.step {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 22px; position: relative; box-shadow: var(--shadow-sm);
}
.step::before {
  counter-increment: step; content: counter(step);
  position: absolute; top: -16px; left: 22px;
  width: 36px; height: 36px; border-radius: 50%; background: var(--brand); color: #fff;
  display: grid; place-items: center; font-weight: 900; box-shadow: 0 6px 14px rgba(27,116,228,.4);
}
.step h3 { font-size: 18px; margin: 8px 0 6px; }
.step p { font-size: 15px; }

/* ---------- Price table ---------- */
.pricing { display: grid; gap: 20px; grid-template-columns: repeat(3, 1fr); }
.price-card {
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 28px 24px; text-align: center; box-shadow: var(--shadow-sm); position: relative;
  display: flex; flex-direction: column;
}
.price-card.featured { border: 2px solid var(--brand); box-shadow: var(--shadow-md); }
.price-card .pop {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  background: var(--brand); color: #fff; font-size: 13px; font-weight: 800;
  padding: 5px 14px; border-radius: 999px;
}
.price-card .plan-name { font-weight: 800; font-size: 19px; }
.price-card .plan-price { font-size: 40px; font-weight: 900; color: var(--brand-dark); margin: 10px 0 2px; }
.price-card .plan-price small { font-size: 16px; color: var(--muted); font-weight: 700; }
.price-card ul { list-style: none; text-align: left; margin: 16px 0 20px; display: grid; gap: 9px; }
.price-card ul li { padding-left: 28px; position: relative; font-size: 15px; color: var(--ink-soft); }
.price-card ul li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 900; }
.price-card .btn { margin-top: auto; }

/* ---------- Comparison / benefits list ---------- */
.benefits { display: grid; gap: 14px; grid-template-columns: repeat(2, 1fr); }
.benefit { display: flex; gap: 14px; align-items: flex-start;
  background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 16px 18px; }
.benefit .b-ico { font-size: 24px; line-height: 1; }
.benefit h4 { font-size: 17px; margin-bottom: 3px; }
.benefit p { font-size: 14.5px; margin: 0; }

/* ---------- Prose (articles / content) ---------- */
.prose { max-width: 820px; margin: 0 auto; }
.prose h2 { margin: 34px 0 14px; }
.prose h3 { margin: 26px 0 10px; }
.prose p { margin-bottom: 16px; }
.prose ul, .prose ol { margin: 0 0 18px 22px; }
.prose li { margin-bottom: 8px; color: var(--ink-soft); }
.prose table { width: 100%; border-collapse: collapse; margin: 18px 0; font-size: 15.5px; }
.prose th, .prose td { border: 1px solid var(--border); padding: 11px 14px; text-align: left; }
.prose th { background: var(--bg-tint); font-weight: 800; color: var(--ink); }
.prose blockquote {
  border-left: 4px solid var(--brand); background: var(--bg-tint);
  padding: 14px 18px; border-radius: 0 10px 10px 0; margin: 18px 0; color: var(--ink-soft);
}

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; display: grid; gap: 12px; }
.faq-item { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; text-align: left; background: none; border: 0; cursor: pointer;
  font-family: var(--font); font-weight: 700; font-size: 17px; color: var(--ink);
  padding: 18px 20px; display: flex; justify-content: space-between; align-items: center; gap: 14px;
}
.faq-q .plus { color: var(--brand); font-size: 24px; font-weight: 900; transition: transform .2s; flex-shrink: 0; }
.faq-item.open .faq-q .plus { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height .25s ease; padding: 0 20px; }
.faq-item.open .faq-a { max-height: 600px; padding-bottom: 18px; }
.faq-a p { font-size: 15.5px; }

/* ---------- CTA band ---------- */
.cta-band {
  background: linear-gradient(135deg, var(--brand), var(--brand-deep));
  border-radius: 24px; padding: 44px 32px; text-align: center; color: #fff;
  box-shadow: var(--shadow-md);
}
.cta-band h2 { color: #fff; margin-bottom: 10px; }
.cta-band p { color: rgba(255,255,255,.92); font-size: 18px; margin-bottom: 22px; }
/* ปุ่ม LINE ในแถบ CTA = เขียวเด่นบนพื้นน้ำเงิน */
.cta-band .btn-line { background: var(--line); color: #fff; }
.cta-band .btn-line:hover { background: var(--line-dark); color: #fff; }

/* ---------- Breadcrumb ---------- */
.breadcrumb { font-size: 14px; color: var(--muted); padding: 16px 0 0; }
.breadcrumb a { color: var(--ink-soft); }
.breadcrumb span { margin: 0 6px; }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--brand-deep); color: #fff; }
.trustbar .container { display: flex; flex-wrap: wrap; justify-content: center; gap: 30px; padding: 22px 20px; text-align: center; }
.trust-item { display: flex; flex-direction: column; }
.trust-item b { font-size: 26px; color: #fff; }
.trust-item span { font-size: 14px; color: rgba(255,255,255,.72); }

/* ---------- Footer ---------- */
.site-footer { background: var(--brand-deep); color: rgba(255,255,255,.80); padding: 50px 0 26px; margin-top: 20px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
.site-footer h4 { color: #fff; font-size: 16px; margin-bottom: 14px; }
.site-footer a { color: rgba(255,255,255,.74); display: block; padding: 4px 0; font-size: 15px; }
.site-footer a:hover { color: var(--brand-2); text-decoration: none; }
.footer-brand p { color: rgba(255,255,255,.62); font-size: 14.5px; margin: 12px 0; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.14); padding-top: 18px; text-align: center; font-size: 13.5px; color: rgba(255,255,255,.58); }
.footer-bottom a { display: inline; color: var(--brand-2); }
.foot-links { text-align: center; padding: 0 0 14px; font-size: 14px; line-height: 2; }
.foot-links a { color: rgba(255,255,255,.75); display: inline; margin: 0 2px; }
.foot-links a:hover { color: var(--brand-2); text-decoration: none; }

/* ---------- Floating LINE button (เขียว เด่นชัด) ---------- */
.float-line {
  position: fixed; right: 20px; bottom: 20px; z-index: 950;
  display: inline-flex; align-items: center; gap: 10px;
  background: var(--line); color: #fff; font-weight: 800; font-size: 17px;
  padding: 15px 26px 15px 20px; border-radius: 999px; border: 3px solid #fff;
  box-shadow: 0 14px 34px rgba(6,199,85,.55); animation: pulse 2.2s infinite;
}
.float-line:hover { background: var(--line-dark); color: #fff; text-decoration: none; transform: translateY(-3px) scale(1.03); }
.float-line .ico { width: 28px; height: 28px; fill: #fff; }
@keyframes pulse {
  0% { box-shadow: 0 12px 30px rgba(6,199,85,.5), 0 0 0 0 rgba(6,199,85,.5); }
  70% { box-shadow: 0 12px 30px rgba(6,199,85,.5), 0 0 0 16px rgba(6,199,85,0); }
  100% { box-shadow: 0 12px 30px rgba(6,199,85,.5), 0 0 0 0 rgba(6,199,85,0); }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; } .mt-1 { margin-top: 10px; } .mt-2 { margin-top: 20px; } .mt-3 { margin-top: 30px; }
.bg-soft { background: var(--bg-soft); }
.bg-mint { background: var(--bg-tint); }
.note { font-size: 14px; color: var(--muted); }
.badge-warranty { display:inline-flex; align-items:center; gap:6px; background: var(--brand-light); color: var(--brand-dark); font-weight:700; font-size:14px; padding:6px 12px; border-radius:999px; }

/* ---------- Responsive ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; }
  .hero-visual { order: -1; }
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .pricing { grid-template-columns: 1fr; max-width: 460px; margin: 0 auto; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 640px) {
  body { font-size: 16px; }
  section { padding: 42px 0; }
  .nav-links {
    display: none; position: absolute; top: 66px; left: 0; right: 0;
    background: #fff; flex-direction: column; align-items: stretch; gap: 0;
    border-bottom: 1px solid var(--border); padding: 8px; box-shadow: var(--shadow-md);
  }
  .nav-links.open { display: flex; }
  .nav-links a { padding: 12px 14px; border-radius: 8px; }
  .nav-toggle { display: flex; }
  .nav .nav-cta .btn-text-hide { display: none; }
  .grid-3, .grid-4, .grid-2, .benefits, .steps { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero-cta .btn { flex: 1; }
  /* มือถือ: ปุ่ม LINE เป็นแถบเขียวเต็มความกว้างด้านล่าง เด่นสุด กดง่าย */
  .float-line {
    left: 12px; right: 12px; bottom: 12px; justify-content: center;
    padding: 16px; font-size: 18px; border-radius: 16px; border: 0;
    box-shadow: 0 -2px 16px rgba(0,0,0,.12), 0 10px 26px rgba(6,199,85,.5);
  }
  body { padding-bottom: 80px; }
  .cta-band { padding: 34px 20px; }
}

/* ---------- LINE contact / QR ---------- */
.line-contact {
  display: grid; grid-template-columns: 1.5fr .8fr; gap: 30px; align-items: center;
  background: #fff; border: 1px solid var(--border); border-radius: 20px;
  padding: 34px; box-shadow: var(--shadow-md);
}
.line-contact .kicker { color: var(--brand); font-weight: 800; letter-spacing: .5px; text-transform: uppercase; font-size: 14px; }
.lc-info h2 { margin: 6px 0 10px; }
.lc-info > p { font-size: 16px; }
.lc-tip { background: var(--brand-light); border-radius: 10px; padding: 11px 15px; margin: 14px 0 18px; color: var(--ink); font-size: 15.5px; }
.lc-tip b { color: var(--brand-dark); }
.lc-info .btn-line { display: inline-flex; }
.lc-id { margin-top: 12px; color: var(--ink-soft); font-size: 15px; }
.lc-id b { color: var(--ink); }
.lc-qr { text-align: center; }
.lc-qr img { width: 190px; height: 190px; border: 1px solid var(--border); border-radius: 14px; padding: 8px; background: #fff; margin: 0 auto 8px; }
.lc-qr span { display: block; font-size: 14px; color: var(--muted); font-weight: 700; line-height: 1.45; }
@media (max-width: 780px) {
  .line-contact { grid-template-columns: 1fr; text-align: center; padding: 26px 20px; }
  .lc-qr { order: -1; }
  .lc-tip { text-align: left; }
}
