/* FaceInTime — หน้าแรกสำหรับขายระบบ (faceintime.net)
   สีตามโลโก้ชุด FT: กรมท่า #15346B · เขียวมะนาว #B2D703 · ฟอนต์ Noto Sans Thai (self-hosted จากแอป) */
:root{
  --navy:#15346B; --navy-2:#0F2750; --navy-3:#1E4585;
  --lime:#B2D703; --lime-ink:#5F7300; --lime-soft:#F2F8D1;
  --ink:#1E293B; --ink-2:#334155; --ink-3:#475569; --ink-4:#64748B; --ink-5:#94A3B8;
  --line:#E2E8F0; --bg:#F6F8FB; --surface:#FFFFFF;
  --green:#16A34A; --amber:#F59E0B; --red:#EF4444; --blue:#0EA5E9;
  --r:16px; --r-lg:24px;
  --shadow:0 18px 40px -16px rgba(15,23,42,.18), 0 6px 12px rgba(15,23,42,.05);
}
*{ box-sizing:border-box; }
html{ scroll-behavior:smooth; scroll-padding-top:76px; }
body{ margin:0; font-family:'Noto Sans Thai',system-ui,sans-serif; color:var(--ink); background:var(--surface); line-height:1.65; -webkit-font-smoothing:antialiased; }
img{ max-width:100%; height:auto; }
a{ color:inherit; }
h1,h2,h3{ line-height:1.2; margin:0; font-weight:700; letter-spacing:-.01em; }
p{ margin:0; }
.wrap{ width:100%; max-width:1180px; margin:0 auto; padding:0 24px; }
.eyebrow{ font-size:12px; font-weight:700; letter-spacing:.22em; text-transform:uppercase; color:var(--lime-ink); }
.lime{ color:var(--lime); }
.nowrap{ white-space:nowrap; }

/* ── ปุ่ม ── */
.btn{ display:inline-flex; align-items:center; justify-content:center; gap:8px; min-height:44px; padding:0 20px; border-radius:999px; font-weight:700; font-size:15px; text-decoration:none; border:1.5px solid transparent; cursor:pointer; white-space:nowrap; transition:transform .08s, background .15s, box-shadow .15s; }
.btn:active{ transform:translateY(1px); }
.btn-lg{ min-height:52px; padding:0 28px; font-size:16px; }
.btn-lime{ background:var(--lime); color:#1B2A00; box-shadow:0 8px 20px -8px rgba(178,215,3,.7); }
.btn-lime:hover{ background:#C4EA10; }
.btn-ghost{ background:transparent; color:var(--navy); border-color:var(--line); }
.btn-ghost:hover{ background:var(--bg); }
.btn-outline{ background:transparent; color:#fff; border-color:rgba(255,255,255,.45); }
.btn-outline:hover{ background:rgba(255,255,255,.1); }
.contact .btn-outline{ color:var(--navy); border-color:var(--navy); }
.contact .btn-outline:hover{ background:rgba(21,52,107,.06); }

/* ── แถบนำทาง ── */
.nav{ position:sticky; top:0; z-index:50; background:rgba(255,255,255,.92); backdrop-filter:blur(10px); border-bottom:1px solid var(--line); }
.nav-in{ display:flex; align-items:center; gap:24px; min-height:68px; }
.brand img{ height:40px; width:auto; display:block; }
.nav-links{ display:flex; gap:26px; margin-left:auto; }
.nav-links a{ text-decoration:none; font-weight:600; font-size:14.5px; color:var(--ink-2); }
.nav-links a:hover{ color:var(--navy); }
.nav-cta{ display:flex; align-items:center; gap:10px; }
.nav-toggle{ display:none; width:44px; height:44px; border:1px solid var(--line); border-radius:12px; background:#fff; cursor:pointer; flex-direction:column; align-items:center; justify-content:center; gap:5px; }
.nav-toggle span{ width:18px; height:2px; background:var(--navy); border-radius:2px; }

/* ── Hero ── */
.hero{ position:relative; overflow:hidden; color:#fff; background:linear-gradient(135deg, var(--navy-2) 0%, var(--navy) 55%, var(--navy-3) 100%); }
.hero-wm{ position:absolute; right:-6%; top:-12%; width:min(720px, 70vw); opacity:.05; pointer-events:none; user-select:none; }
.hero-in{ position:relative; display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.95fr); gap:48px; align-items:center; padding-top:72px; padding-bottom:88px; }
.hero .eyebrow{ color:var(--lime); }
.hero h1{ font-size:clamp(34px, 4.6vw, 58px); margin-top:16px; }
.lead{ font-size:clamp(16px, 1.35vw, 19px); color:rgba(255,255,255,.82); margin-top:20px; max-width:560px; }
.hero-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:30px; }
.hero-trust{ list-style:none; padding:0; margin:30px 0 0; display:flex; flex-wrap:wrap; gap:8px 22px; font-size:13.5px; color:rgba(255,255,255,.75); }
.hero-trust li::before{ content:"✓"; color:var(--lime); font-weight:700; margin-right:7px; }

/* ภาพจำลองหน้าจอ */
.hero-visual{ position:relative; min-height:420px; }
.mock{ background:#fff; color:var(--ink); border-radius:18px; box-shadow:var(--shadow); overflow:hidden; }
.mock-dash{ position:absolute; left:0; top:12px; width:min(460px, 100%); }
.mock-top{ display:flex; align-items:center; gap:6px; padding:12px 14px; border-bottom:1px solid var(--line); background:var(--bg); }
.mock-top .dot{ width:9px; height:9px; border-radius:50%; background:#D5DCE6; }
.mock-title{ margin-left:8px; font-size:12.5px; font-weight:600; color:var(--ink-3); }
.mock-stats{ display:grid; grid-template-columns:repeat(4,1fr); gap:8px; padding:14px; }
.st{ background:#ECFDF3; border-radius:12px; padding:10px 8px; text-align:center; }
.st b{ display:block; font-size:22px; color:var(--green); line-height:1.1; }
.st span{ font-size:11.5px; color:var(--ink-3); }
.st-amber{ background:#FFF7E6; } .st-amber b{ color:var(--amber); }
.st-blue{ background:#E6F6FD; } .st-blue b{ color:var(--blue); }
.st-red{ background:#FEECEC; } .st-red b{ color:var(--red); }
.mock-rows{ padding:0 14px 14px; display:grid; gap:8px; }
.row{ display:flex; align-items:center; gap:10px; padding:8px 10px; border:1px solid var(--line); border-radius:12px; font-size:13px; }
.av{ width:32px; height:32px; border-radius:50%; background:#DCE7F7; color:var(--navy); font-style:normal; font-weight:700; font-size:12px; display:grid; place-items:center; flex:none; }
.av.a2{ background:#FDE7EF; color:#9D174D; } .av.a3{ background:#FFF1D6; color:#92400E; } .av.a4{ background:#E3F8EA; color:#166534; }
.av.big{ width:56px; height:56px; font-size:18px; margin:0 auto 8px; }
.nm{ flex:1; min-width:0; font-weight:600; line-height:1.15; }
.nm small{ display:block; font-weight:500; color:var(--ink-4); font-size:11px; }
.row em{ font-style:normal; font-weight:700; font-variant-numeric:tabular-nums; }
.row .ok{ color:var(--green); } .row .late{ color:var(--amber); }
.mock-phone{ position:absolute; right:0; bottom:-10px; width:222px; border-radius:26px; border:6px solid #0B1424; }
.ph-bar{ display:flex; align-items:center; justify-content:space-between; padding:10px 12px; background:var(--navy); color:#fff; font-size:12px; font-weight:700; }
.ph-bar img{ width:22px; height:22px; }
.ph-card{ text-align:center; padding:14px 12px 10px; }
.ph-card b{ display:block; font-size:14px; }
.ph-card small{ color:var(--ink-4); font-size:11px; }
.ph-scan{ margin-top:10px; font-size:11.5px; font-weight:600; color:var(--green); background:#ECFDF3; border-radius:999px; padding:5px 10px; display:inline-flex; align-items:center; gap:6px; }
.pulse{ width:8px; height:8px; border-radius:50%; background:var(--green); box-shadow:0 0 0 0 rgba(22,163,74,.5); animation:pulse 1.8s infinite; }
@keyframes pulse{ 0%{ box-shadow:0 0 0 0 rgba(22,163,74,.5); } 70%{ box-shadow:0 0 0 8px rgba(22,163,74,0); } 100%{ box-shadow:0 0 0 0 rgba(22,163,74,0); } }
.ph-grid{ display:grid; grid-template-columns:repeat(3,1fr); border-top:1px solid var(--line); }
.ph-grid div{ text-align:center; padding:10px 4px; }
.ph-grid b{ display:block; font-size:14px; color:var(--navy); }
.ph-grid span{ font-size:10.5px; color:var(--ink-4); }

/* ── ปัญหาที่แก้ ── */
.pains{ background:var(--bg); border-bottom:1px solid var(--line); }
.pains-in{ display:grid; grid-template-columns:repeat(4,1fr); gap:14px; padding:22px 24px; }
.pain{ display:flex; gap:10px; align-items:flex-start; font-size:13.5px; color:var(--ink-3); }
.pain span{ flex:none; width:22px; height:22px; border-radius:50%; display:grid; place-items:center; font-size:12px; font-weight:800; background:#FEECEC; color:var(--red); }
.pain.yes{ color:var(--ink); font-weight:600; }
.pain.yes span{ background:var(--lime); color:#1B2A00; }

/* ── ส่วนทั่วไป ── */
section{ padding:80px 0; }
.sec-head{ text-align:center; max-width:720px; margin:0 auto 44px; }
.sec-head.left{ text-align:left; margin:0 0 32px; }
.sec-head h2{ font-size:clamp(26px, 3vw, 38px); margin-top:12px; color:var(--navy); }
.sec-head p{ color:var(--ink-3); margin-top:12px; font-size:16.5px; }
.grid3{ display:grid; grid-template-columns:repeat(3,1fr); gap:20px; }
.grid2{ display:grid; grid-template-columns:repeat(2,1fr); gap:20px; }
.card{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:26px; }
.card h3{ font-size:19px; color:var(--navy); }
.card p{ color:var(--ink-3); margin-top:10px; font-size:14.5px; }

/* คุณสมบัติ */
.feat{ background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:26px; transition:transform .15s, box-shadow .15s; }
.feat:hover{ transform:translateY(-3px); box-shadow:var(--shadow); }
.feat .ic{ width:48px; height:48px; border-radius:14px; background:var(--lime-soft); color:var(--navy); display:grid; place-items:center; margin-bottom:16px; }
.feat .ic svg{ width:24px; height:24px; fill:none; stroke:currentColor; stroke-width:1.8; stroke-linecap:round; stroke-linejoin:round; }
.feat h3{ font-size:17.5px; color:var(--navy); }
.feat p{ color:var(--ink-3); font-size:14.5px; margin-top:8px; }

/* วิธีทำงาน */
.how{ background:var(--bg); }
.steps{ list-style:none; padding:0; margin:0; display:grid; grid-template-columns:repeat(3,1fr); gap:20px; counter-reset:step; }
.steps li{ position:relative; background:var(--surface); border:1px solid var(--line); border-radius:var(--r-lg); padding:28px 24px 24px; }
.steps .n{ position:absolute; top:-16px; left:22px; width:34px; height:34px; border-radius:50%; background:var(--navy); color:var(--lime); font-weight:800; display:grid; place-items:center; box-shadow:0 6px 14px -6px rgba(21,52,107,.6); }
.steps h3{ font-size:17.5px; color:var(--navy); margin-top:6px; }
.steps p{ color:var(--ink-3); font-size:14.5px; margin-top:8px; }

/* เหมาะกับใคร */
.who-card .tag{ display:inline-block; font-size:11.5px; font-weight:700; letter-spacing:.08em; color:var(--lime-ink); background:var(--lime-soft); border-radius:999px; padding:4px 10px; margin-bottom:12px; }
.who-card ul{ margin:12px 0 0; padding-left:0; list-style:none; color:var(--ink-3); font-size:14.5px; display:grid; gap:8px; }
.who-card li::before{ content:"•"; color:var(--lime); font-weight:800; margin-right:8px; }

/* รูปแบบติดตั้ง */
.deploy{ background:var(--bg); }
.deploy .note{ margin-top:18px; font-size:13.5px; color:var(--ink-4); }

/* ติดต่อ */
.contact-in{ display:grid; grid-template-columns:1.1fr .9fr; gap:48px; align-items:center; }
.contact h2{ font-size:clamp(26px, 3vw, 38px); color:var(--navy); margin-top:12px; }
.contact p{ color:var(--ink-3); margin-top:14px; font-size:16px; }
.contact-actions{ display:flex; gap:12px; flex-wrap:wrap; margin-top:26px; }
.contact-card{ text-align:center; box-shadow:var(--shadow); }
.contact-card img{ width:200px; margin:0 auto 10px; }
.contact-card dl{ display:grid; grid-template-columns:auto 1fr; gap:8px 16px; text-align:left; margin:14px 0 0; font-size:14px; }
.contact-card dt{ color:var(--ink-4); font-weight:600; white-space:nowrap; }
.contact-card dd{ margin:0; color:var(--ink); }
.contact-card a{ color:var(--navy); font-weight:600; text-decoration:none; }
/* LINE OA ในการ์ดติดต่อ */
.contact-line{ display:flex; align-items:center; gap:16px; margin-top:18px; padding-top:16px; border-top:1px dashed var(--line); text-align:left; }
.contact-line img{ width:120px; height:120px; margin:0; flex:none; border-radius:12px; border:1px solid var(--line); }
.contact-line-t{ font-weight:700; color:var(--navy); font-size:15px; }
.contact-line-id{ font-family:ui-monospace, SFMono-Regular, Menlo, monospace; font-size:14px; color:var(--ink-3); margin:2px 0 10px; }
.btn-line{ background:#06C755; color:#fff !important; box-shadow:0 8px 20px -8px rgba(6,199,85,.6); }
.btn-line:hover{ background:#05B04C; }
.contact-line-s{ font-size:12px; color:var(--ink-4); margin-top:8px; }
@media (max-width:480px){ .contact-line{ flex-direction:column; text-align:center; } .contact-line img{ width:160px; height:160px; } }

/* ท้ายหน้า */
.foot{ background:var(--navy-2); color:rgba(255,255,255,.75); padding:36px 0; }
.foot-in{ display:flex; align-items:center; gap:24px; flex-wrap:wrap; }
.foot img{ height:36px; width:auto; }
.foot nav{ display:flex; gap:20px; flex-wrap:wrap; margin-left:auto; }
.foot nav a{ color:rgba(255,255,255,.8); text-decoration:none; font-size:14px; font-weight:600; }
.foot nav a:hover{ color:#fff; }
.copy{ width:100%; font-size:11.5px; letter-spacing:.2em; color:rgba(255,255,255,.45); }

/* ── จอกลาง / มือถือ ── */
@media (max-width: 980px){
  .hero-in{ grid-template-columns:1fr; padding-top:56px; padding-bottom:64px; }
  .hero-visual{ min-height:0; height:430px; max-width:520px; }
  .grid3{ grid-template-columns:repeat(2,1fr); }
  .steps{ grid-template-columns:1fr; gap:28px; }
  .pains-in{ grid-template-columns:repeat(2,1fr); }
  .contact-in{ grid-template-columns:1fr; gap:28px; }
}
@media (max-width: 760px){
  .nav-links{ display:none; position:absolute; left:0; right:0; top:100%; flex-direction:column; gap:0; background:#fff; border-bottom:1px solid var(--line); padding:6px 0; }
  .nav-links.open{ display:flex; }
  .nav-links a{ padding:13px 24px; }
  .nav-cta .btn-lime{ display:none; }
  .nav-toggle{ display:flex; }
  .nav-cta{ margin-left:auto; }
  section{ padding:56px 0; }
  .grid3,.grid2,.pains-in{ grid-template-columns:1fr; }
  .hero-visual{ height:auto; display:grid; gap:16px; max-width:none; }
  .mock-dash,.mock-phone{ position:static; width:100%; }
  .mock-phone{ max-width:260px; margin:0 auto; }
  .brand img{ height:34px; }
  .hero-actions .btn{ flex:1; }
}
@media (prefers-reduced-motion: reduce){ .pulse{ animation:none; } .feat:hover{ transform:none; } html{ scroll-behavior:auto; } }
.addon{ display:inline-block; vertical-align:middle; margin-left:6px; font-size:11px; font-weight:700; letter-spacing:.06em; color:var(--lime-ink); background:var(--lime-soft); border-radius:999px; padding:2px 8px; }
