/* beatflow.business — สี/ฟอนต์/ความโค้งตามคู่มือแบรนด์ (beatflow-playbook docs/แบรนด์/) */
:root {
  --deep: #0a1f44; --navy: #1b3a6b; --navy-600: #152f58; --mid: #4f72a8; --sky: #a9c1e6;
  --tint: #eef3fa; --tint-2: #dce6f4; --ink: #0f172a; --muted: #5b6b82; --line: #dce5f2;
  --r: 10px; --r-card: 16px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: 'IBM Plex Sans Thai', system-ui, sans-serif; color: var(--ink); background: #fff; line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0; }
.wrap { max-width: 1120px; margin: 0 auto; padding: 0 20px; }
.narrow { max-width: 760px; }
.center { text-align: center; justify-content: center; }
.nw { white-space: nowrap; } /* กันตัดคำไทยกลางวลี */

/* ปุ่ม */
.btn { display: inline-flex; align-items: center; gap: 8px; padding: 13px 22px; border-radius: var(--r); font-weight: 600; font-size: 16px; border: 1.5px solid transparent; transition: background .15s, transform .1s; white-space: nowrap; }
.btn:active { transform: scale(.98); }
.btn i { font-size: 20px; }
.btn-sm { padding: 8px 16px; font-size: 14px; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-600); }
.btn-ghost { border-color: var(--line); color: var(--navy); background: #fff; }
.btn-ghost:hover { background: var(--tint); }
.btn-white { background: #fff; color: var(--deep); }
.btn-outline-white { border-color: rgba(255,255,255,.4); color: #fff; }
.btn-outline-white:hover { background: rgba(255,255,255,.08); }

/* แถบบน */
.nav { position: sticky; top: 0; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand img { height: 28px; width: auto; }
.links { display: flex; gap: 22px; margin-left: auto; font-size: 15px; color: var(--muted); }
.links a:hover { color: var(--navy); }
.nav-actions { display: flex; gap: 10px; align-items: center; }
.lang { font: 600 13px/1 inherit; font-family: inherit; color: var(--navy); background: var(--tint); border: 0; border-radius: 999px; padding: 8px 12px; cursor: pointer; }

/* หน้าแรก */
.hero { background: linear-gradient(180deg, #fff 0%, var(--tint) 100%); overflow: hidden; }
.hero-in { display: grid; grid-template-columns: 1.1fr .9fr; gap: 40px; align-items: center; padding-top: 72px; padding-bottom: 72px; }
.eyebrow { display: inline-block; margin: 0 0 14px; padding: 6px 12px; border-radius: 999px; background: var(--tint-2); color: var(--navy); font-size: 14px; font-weight: 600; }
.hero h1 { font-size: 56px; font-weight: 700; color: var(--deep); letter-spacing: -.01em; }
.lead { font-size: 19px; color: var(--muted); margin: 18px 0 28px; max-width: 34em; }
.cta { display: flex; flex-wrap: wrap; gap: 12px; }
.note { margin: 16px 0 0; font-size: 14px; color: var(--muted); }
.hero-visual { position: relative; display: flex; justify-content: center; min-height: 520px; }
.hero-wave { position: absolute; inset: auto -40% -10% -10%; width: 150%; color: var(--tint-2); z-index: 0; }
.phone { position: relative; z-index: 1; width: 270px; border-radius: 38px; padding: 10px; background: var(--deep); box-shadow: 0 30px 60px -20px rgba(10,31,68,.45); }
.phone img { border-radius: 30px; }
.phone.sm { width: 210px; border-radius: 30px; padding: 8px; }
.phone.sm img { border-radius: 23px; }

/* ส่วนทั่วไป */
.sec { padding: 80px 0; }
.sec.alt { background: var(--tint); }
.sec h2 { font-size: 34px; font-weight: 700; color: var(--deep); }
.sub { font-size: 18px; color: var(--muted); margin: 10px 0 0; }
.grid { display: grid; gap: 18px; margin-top: 36px; }
.g3 { grid-template-columns: repeat(3, 1fr); }
.g4 { grid-template-columns: repeat(4, 1fr); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 24px; }
.card h3 { font-size: 18px; font-weight: 600; color: var(--deep); margin: 12px 0 6px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }
.ic { display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center; border-radius: 12px; background: var(--tint); color: var(--navy); font-size: 24px; }
.role .tag { display: inline-block; font-weight: 600; color: #fff; background: var(--navy); border-radius: 999px; padding: 4px 14px; font-size: 14px; margin-bottom: 12px; }
.role p { font-size: 17px; color: var(--ink); }
.list h3 { display: flex; align-items: center; gap: 8px; margin-top: 0; }
.list h3 i { color: var(--navy); font-size: 22px; }
.list ul { list-style: none; padding: 0; margin: 12px 0 0; }
.list li { padding: 7px 0 7px 26px; position: relative; color: var(--ink); border-top: 1px solid var(--tint); font-size: 15px; }
.list li::before { content: ''; position: absolute; left: 4px; top: 15px; width: 10px; height: 10px; border-radius: 3px; background: var(--sky); }

/* ผลลัพธ์ */
.result { background: var(--deep); color: #fff; }
.result-in { display: flex; align-items: center; gap: 36px; padding: 56px 20px; }
.big { font-size: 112px; font-weight: 700; line-height: 1; letter-spacing: -.03em; }
.big span { font-size: 64px; color: var(--sky); }
.result-t { font-size: 28px; font-weight: 600; margin: 0; }
.result-d { color: var(--sky); margin: 6px 0 0; font-size: 17px; }

/* ภาพตัวอย่าง */
.shots { display: grid; grid-template-columns: auto 1fr auto; gap: 28px; align-items: end; margin-top: 44px; }
.shots figure { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 12px; }
.shots figcaption { font-size: 14px; color: var(--muted); text-align: center; }
.screen { border-radius: 12px; border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(10,31,68,.35); }
.paper { width: 230px; border-radius: 6px; border: 1px solid var(--line); box-shadow: 0 20px 40px -24px rgba(10,31,68,.35); }
.demo { font-size: 13px; color: var(--muted); margin: 18px 0 0; text-align: right; }

/* ลูกค้า */
.clients { display: flex; flex-wrap: wrap; justify-content: center; gap: 48px; margin-top: 36px; }
.client { margin: 0; display: flex; flex-direction: column; align-items: center; gap: 14px; font-weight: 600; color: var(--deep); }
.client img { width: 140px; height: 140px; border-radius: 50%; box-shadow: 0 12px 28px -14px rgba(10,31,68,.45); }

/* ขั้นตอน */
.steps { list-style: none; counter-reset: s; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.steps li { counter-increment: s; background: #fff; border: 1px solid var(--line); border-radius: var(--r-card); padding: 22px 18px; position: relative; }
.steps li::before { content: counter(s); display: inline-flex; width: 34px; height: 34px; align-items: center; justify-content: center; border-radius: 50%; background: var(--navy); color: #fff; font-weight: 700; margin-bottom: 12px; }
.steps b { display: block; color: var(--deep); font-size: 17px; }
.steps p { margin: 6px 0 0; font-size: 14px; color: var(--muted); }

/* คำถาม */
details { border-bottom: 1px solid var(--line); padding: 18px 0; }
details:first-of-type { margin-top: 24px; }
summary { cursor: pointer; font-weight: 600; font-size: 17px; color: var(--deep); list-style: none; display: flex; justify-content: space-between; gap: 16px; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; color: var(--navy); font-size: 22px; line-height: 1; }
details[open] summary::after { content: '–'; }
details p { margin: 10px 0 0; color: var(--muted); }

/* ปิดท้าย */
.final { background: var(--deep); color: #fff; padding: 80px 0; position: relative; overflow: hidden; }
.final h2 { font-size: 36px; }
.final p { color: var(--sky); font-size: 18px; margin: 10px 0 28px; }
.foot { background: #071733; color: rgba(255,255,255,.6); font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 24px 20px; flex-wrap: wrap; }
.float-line { position: fixed; right: 18px; bottom: 18px; z-index: 30; width: 56px; height: 56px; border-radius: 50%; background: #06c755; color: #fff; display: none; align-items: center; justify-content: center; font-size: 30px; box-shadow: 0 10px 24px -8px rgba(0,0,0,.35); }

/* แท็บเล็ต */
@media (max-width: 960px) {
  .hero-in { grid-template-columns: 1fr; padding-top: 48px; }
  .hero-visual { min-height: 0; }
  .g4 { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .shots { grid-template-columns: 1fr; justify-items: center; }
  .links { display: none; }
  .nav-actions { margin-left: auto; }
}
/* มือถือ */
@media (max-width: 600px) {
  .hero h1 { font-size: 40px; }
  .lead { font-size: 17px; }
  .sec { padding: 56px 0; }
  .sec h2 { font-size: 27px; }
  .g3, .g4, .steps { grid-template-columns: 1fr; }
  .result-in { flex-direction: column; text-align: center; gap: 8px; }
  .big { font-size: 88px; }
  .result-t { font-size: 22px; }
  .cta .btn { flex: 1 1 100%; justify-content: center; }
  .hide-sm { display: none; }
  .float-line { display: flex; }
  .phone { width: 240px; }
  .demo { text-align: center; }
  .clients { gap: 16px; }
  .client { font-size: 13px; gap: 10px; width: 96px; text-align: center; }
  .client img { width: 96px; height: 96px; }
}
