/* หน้า Landing (โหมด Persuade) — โทนกรมท่า/น้ำเงิน/ส้มโคราช/มิ้นต์ ใช้ตัวแปรสีจาก app.css */
.l-wrap { max-width: 1160px; margin: 0 auto; padding: 0 20px; }
body.landing { background: #fff; overflow-x: clip; }
.landing h1, .landing h2 { letter-spacing: -.025em; text-wrap: balance; }

/* ---------- ปุ่ม ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 52px; padding: 0 26px; border-radius: 999px;
  font: inherit; font-weight: 700; font-size: 17px; text-decoration: none; border: 2px solid transparent; cursor: pointer;
  transition: transform .15s cubic-bezier(.16, 1, .3, 1), box-shadow .2s, background .15s; white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn-coral { background: var(--coral); color: var(--ink); box-shadow: 0 10px 20px -10px rgba(21, 13, 69, .55); }
.btn-coral:hover { background: var(--coral-hover); color: var(--ink); }
.btn-navy { background: var(--ink); color: #fff; }
.btn-navy:hover { background: #241a63; color: #fff; }
.btn-ghost { background: #fff; color: var(--ink); border-color: var(--line-strong); }
.btn-ghost:hover { border-color: var(--primary); color: var(--primary-press); background: #fff; }
.btn-sm { min-height: 44px; padding: 0 20px; font-size: 16px; }

/* ---------- แถบบนของหน้า Landing (ใช้ .topbar ของ shell.css) ---------- */
.topbar .login { color: var(--ink); font-weight: 700; text-decoration: none; padding: 10px 6px; }
.topbar .login:hover { color: var(--primary); }
@media (max-width: 420px) { .topbar .login { display: none; } }
html { scroll-padding-top: 84px; }

/* ---------- Hero ---------- */
.hero { position: relative; isolation: isolate; padding: 28px 0 96px; overflow: clip; border-radius: 0 0 140px 0; }
.hero::before { /* แผ่นไล่สีฟ้าเฉียงด้านขวา */
  content: ""; position: absolute; z-index: -1; right: -14%; top: -18%; width: 62%; height: 150%; border-radius: 160px;
  background: linear-gradient(145deg, #2d5bf0 0%, #5b8cff 55%, #7aa5ff 100%); transform: rotate(14deg);
}
.hero-grid { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.hero h1 { font-size: clamp(34px, 4.2vw, 56px); line-height: 1.18; margin: 0 0 18px; color: var(--ink); }
.hl { background: linear-gradient(transparent 62%, rgba(255, 122, 89, .55) 62%, rgba(255, 122, 89, .55) 92%, transparent 92%); padding: 0 2px; }
.hero p.lead { font-size: 19px; line-height: 1.65; color: var(--ink-2); max-width: 34em; margin: 0 0 28px; }
.hero .cta { display: flex; gap: 14px; flex-wrap: wrap; }
.chips { display: flex; gap: 10px 18px; flex-wrap: wrap; margin-top: 26px; padding: 0; list-style: none; color: var(--ink-2); font-size: 15.5px; font-weight: 700; }
.chips li { display: inline-flex; align-items: center; gap: 8px; }
.chips svg { color: var(--primary); flex: none; }
@media (max-width: 960px), (min-width: 1100px) and (max-width: 1199px) {
  .hero { padding-bottom: 64px; border-radius: 0 0 64px 0; }
  .hero::before { right: -40%; top: 38%; width: 120%; height: 70%; transform: rotate(-8deg); border-radius: 100px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
}

/* โทรศัพท์ (ทำด้วย CSS) ใช้งานจริงได้: พิมพ์แล้วสัญญาเปลี่ยนตาม */
.stage { position: relative; display: grid; place-items: center; min-height: 680px; padding-top: 56px; }
.phone {
  position: relative; width: 316px; border-radius: 44px; padding: 12px; background: var(--ink);
  box-shadow: 0 40px 70px -24px rgba(21, 13, 69, .55), 0 18px 30px -12px rgba(21, 13, 69, .3); transform: rotate(-3deg);
}
.phone::before { content: ""; position: absolute; top: 20px; left: 50%; width: 84px; height: 22px; margin-left: -42px; border-radius: 20px; background: var(--ink); z-index: 3; }
.screen { border-radius: 34px; background: #fff; overflow: hidden; height: 596px; display: flex; flex-direction: column; }
.screen-top { padding: 38px 18px 10px; display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 15px; color: var(--ink); border-bottom: 1px solid var(--line); }
.screen-top span.dot { width: 9px; height: 9px; border-radius: 50%; background: var(--mint); }
.screen-body { padding: 12px 16px 0; flex: 1; overflow: hidden; display: flex; flex-direction: column; gap: 8px; }
.screen label { margin: 0 0 3px; font-size: 13px; color: var(--ink-2); }
.screen input { min-height: 40px; font-size: 15px; border-radius: 10px; padding: 0 12px; }
.screen .fields { display: grid; grid-template-columns: 1.4fr 1fr; gap: 8px; }
.screen .paper { padding: 14px 14px 12px; font-size: 11.6px; line-height: 1.85; box-shadow: none; border-color: var(--line); border-radius: 12px; flex: 1; overflow: hidden; }
.screen .paper h1 { font-size: 14.5px; margin-bottom: 6px; }
.screen .paper .closing { font-size: 10.5px; margin-top: 4px; line-height: 1.6; }
.screen .paper .sign { margin-top: 10px; gap: 12px; }
.screen .paper .sign .line { height: 24px; position: relative; }
.screen .paper .sign svg { position: absolute; left: 18%; bottom: 2px; width: 62%; }
.screen-foot { padding: 10px 16px 18px; }
.screen-foot a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; border-radius: 12px; background: var(--primary); color: #fff; text-decoration: none; font-weight: 700; }
.screen-foot a:hover { background: var(--primary-hover); color: #fff; }

.orb { position: absolute; border-radius: 50%; z-index: 0; }
.orb.mint { width: 96px; height: 96px; background: var(--mint); left: 8%; top: 10%; }
.orb.coral { width: 58px; height: 58px; background: var(--coral); right: 9%; bottom: 14%; }
.orb.ring { width: 150px; height: 150px; border: 14px solid rgba(255, 255, 255, .5); right: 2%; top: 4%; }
.phone, .float-card { z-index: 1; }
.float-card {
  position: absolute; left: 4%; top: 18px; display: flex; align-items: center; gap: 12px; padding: 12px 18px 12px 12px; border-radius: 18px;
  background: #fff; box-shadow: 0 22px 40px -16px rgba(21, 13, 69, .4); font-weight: 700; color: var(--ink);
}
.float-card .ok { width: 40px; height: 40px; border-radius: 12px; background: var(--green-bg); color: var(--green); display: grid; place-items: center; flex: none; }
.float-card small { display: block; font-weight: 400; color: var(--muted); font-size: 13px; line-height: 1.3; }
@media (max-width: 960px), (min-width: 1100px) and (max-width: 1199px) { .stage { min-height: 640px; } }
@media (max-width: 420px) { .phone { width: 296px; } .float-card { left: 0; top: 10px; padding: 10px 14px 10px 10px; } }

/* ---------- ส่วนทั่วไป ---------- */
.l-sec { padding: 96px 0; }
.l-sec h2 { font-size: clamp(30px, 4vw, 44px); line-height: 1.22; margin: 0 0 14px; color: var(--ink); }
.l-sec p.sub { font-size: 18px; color: var(--ink-2); max-width: 38em; margin: 0 0 8px; }
.center { text-align: center; }
.center p.sub { margin-left: auto; margin-right: auto; }
@media (max-width: 720px) { .l-sec { padding: 64px 0; } }


/* ---------- ฟีเจอร์ (แถวสลับซ้าย-ขวา) ---------- */
.show { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; padding: 40px 0; }
.show.flip .show-text { order: 2; }
.show h3 { font-size: clamp(26px, 3vw, 34px); line-height: 1.25; margin: 0 0 12px; letter-spacing: -.02em; color: var(--ink); text-wrap: balance; }
.nb { white-space: nowrap; }
.show-text p { font-size: 17.5px; color: var(--ink-2); margin: 0 0 14px; }
.ticks { list-style: none; padding: 0; margin: 16px 0 0; display: grid; gap: 10px; }
.ticks li { display: flex; gap: 12px; align-items: flex-start; font-weight: 700; color: var(--ink-2); }
.ticks svg { color: var(--primary); flex: none; margin-top: 4px; }
.panel {
  position: relative; border-radius: 28px; padding: 28px; background: linear-gradient(145deg, #eef2ff, #e2e9ff); overflow: hidden;
  box-shadow: inset 0 0 0 1px rgba(45, 91, 240, .1);
}
.panel .paper { box-shadow: 0 24px 40px -22px rgba(21, 13, 69, .45); font-size: 12.5px; line-height: 1.9; padding: 22px 24px; }
.panel .paper h1 { font-size: 16px; }
.win { background: #fff; border-radius: 16px; box-shadow: 0 24px 40px -22px rgba(21, 13, 69, .45); overflow: hidden; }
.win-bar { display: flex; gap: 6px; padding: 12px 14px; border-bottom: 1px solid var(--line); }
.win-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--line-strong); }
.win-body { padding: 18px; }
@media (max-width: 860px) { .show { grid-template-columns: 1fr; gap: 28px; } .show.flip .show-text { order: 0; } .panel { padding: 18px; } }

/* mock: หน้า PDF + ช่องเซ็น */
.pdfmock { background: #fff; border-radius: 12px; padding: 26px 24px 24px; position: relative; box-shadow: 0 24px 40px -22px rgba(21, 13, 69, .45); }
.pdfmock .mt { margin: 0 0 10px; font-size: 14px; font-weight: 700; text-align: center; color: #55537d; }
.pdfmock p { margin: 0 0 7px; font-size: 12px; line-height: 1.7; color: #67658f; }
.sigfield { position: relative; display: flex; align-items: center; justify-content: center; height: 54px; border-radius: 6px; font-size: 13px; font-weight: 700; margin-top: 22px; }
.sigfield.b::after { content: ""; position: absolute; right: -5px; bottom: -5px; width: 10px; height: 10px; background: #fff; border: 2px solid #d97706; border-radius: 2px; }
.sigfield.b::before { content: ""; position: absolute; left: -5px; top: -5px; width: 10px; height: 10px; background: #fff; border: 2px solid #d97706; border-radius: 2px; }
.pdfmock .cursor { position: absolute; right: 8%; bottom: 14px; width: 26px; height: 26px; color: var(--ink); filter: drop-shadow(0 2px 2px rgba(21, 13, 69, .35)); }
.sigfield.a { border: 2px solid var(--primary); background: rgba(45, 91, 240, .1); color: var(--primary); }
.sigfield.b { border: 2px solid #d97706; background: rgba(217, 119, 6, .1); color: #a35a00; }
.sigrow { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }

/* mock: หน้าหลักฐาน */
.evid { background: #fff; border-radius: 12px; padding: 22px 24px; box-shadow: 0 24px 40px -22px rgba(21, 13, 69, .45); font-size: 13.5px; }
.evid h4 { text-align: center; font-size: 16px; margin: 0 0 12px; color: var(--ink); }
.evid dl { margin: 0; }
.evid .r { display: grid; grid-template-columns: 8.5em 1fr; gap: 10px; padding: 7px 0; border-top: 1px solid var(--line); }
.evid dt { font-weight: 700; color: var(--ink-2); }
.evid dd { margin: 0; color: var(--ink-2); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }

/* ---------- ขั้นตอน (พื้นน้ำเงิน) ---------- */
.steps-band { position: relative; isolation: isolate; color: #fff; background: linear-gradient(135deg, #17238f 0%, #2037b8 55%, #2848d0 100%); overflow: hidden; }
.steps-band::before { content: ""; position: absolute; z-index: -1; left: -8%; top: -30%; width: 420px; height: 420px; border-radius: 50%; background: rgba(255, 255, 255, .08); }
.steps-band::after { content: ""; position: absolute; z-index: -1; right: -6%; bottom: -34%; width: 520px; height: 520px; border-radius: 50%; background: rgba(62, 224, 178, .18); }
.steps-band h2 { color: #fff; }
.steps-band p.sub { color: #eef2ff; }
.s3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; margin-top: 48px; padding: 0; list-style: none; counter-reset: s; }
.s3 li { counter-increment: s; position: relative; padding: 28px 26px 26px; border-radius: 24px; background: rgba(21, 13, 69, .32); border: 1px solid rgba(255, 255, 255, .22); }
.s3 li::before { content: counter(s); display: grid; place-items: center; width: 46px; height: 46px; border-radius: 50%; background: var(--coral); color: var(--ink); font-weight: 700; font-size: 20px; margin-bottom: 16px; }
.s3 h3 { margin: 0 0 8px; font-size: 22px; color: #fff; text-wrap: balance; }
.s3 p { margin: 0; color: #eef2ff; font-size: 16.5px; }
@media (max-width: 860px) { .s3 { grid-template-columns: 1fr; } }

/* ---------- เทมเพลต ---------- */
.tpls { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 34px auto 0; padding: 0; list-style: none; max-width: 940px; }
.tpls li { padding: 12px 22px; border-radius: 16px; background: #fff; border: 1.5px solid var(--line-strong); font-weight: 700; color: var(--ink); box-shadow: 0 6px 14px -8px rgba(21, 13, 69, .25); }
.tpls li:nth-child(3n+1) { border-color: #b7c6ff; } .tpls li:nth-child(3n+2) { border-color: #ffc7b8; } .tpls li:nth-child(3n) { border-color: #a6ecd5; }
.note { text-align: center; margin: 22px auto 0; color: var(--muted); max-width: 40em; font-size: 15.5px; }

/* ---------- ราคา ---------- */
.plans { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; max-width: 900px; margin: 44px auto 0; align-items: stretch; }
.plan { border-radius: 28px; padding: 36px 34px; background: #fff; border: 1.5px solid var(--line-strong); display: flex; flex-direction: column; }
.plan h3 { margin: 0 0 6px; font-size: 24px; }
.plan .p { font-size: 54px; font-weight: 700; letter-spacing: -.03em; line-height: 1.15; margin: 8px 0 2px; }
.plan .p small { font-size: 17px; font-weight: 400; letter-spacing: 0; color: var(--muted); }
.plan ul { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; flex: 1; }
.plan li { display: flex; gap: 12px; align-items: flex-start; }
.plan li svg { color: var(--primary); flex: none; margin-top: 4px; }
.plan.pro { background: var(--ink); color: #fff; border-color: var(--ink); box-shadow: 0 34px 60px -28px rgba(21, 13, 69, .7); }
.plan.pro h3, .plan.pro .p { color: #fff; }
.plan.pro .p small { color: #b8b4e6; }
.plan.pro li { color: #ecebff; }
.plan.pro li svg { color: var(--mint); }
.plan .btn { width: 100%; }
@media (max-width: 760px) { .plans { grid-template-columns: 1fr; } }

/* ---------- คำถาม ---------- */
.faq { max-width: 820px; margin: 40px auto 0; display: grid; gap: 12px; }
.faq details { background: #fff; border: 1.5px solid var(--line); border-radius: 18px; padding: 0 22px; }
.faq details[open] { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-tint); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 0; font-weight: 700; font-size: 18px; color: var(--ink); display: flex; justify-content: space-between; gap: 16px; align-items: center; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 12px; height: 12px; border-right: 2.5px solid var(--primary); border-bottom: 2.5px solid var(--primary); transform: rotate(45deg); transition: transform .2s; margin-top: -4px; }
.faq details[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.faq p { margin: 0 0 18px; color: var(--ink-2); font-size: 16.5px; }

/* ---------- ปิดท้าย ---------- */
.final { position: relative; isolation: isolate; overflow: hidden; border-radius: 36px; padding: 72px 28px; text-align: center; color: #fff; background: var(--ink); }
.final::before { content: ""; position: absolute; z-index: -1; left: -60px; top: -60px; width: 260px; height: 260px; border-radius: 50%; background: #2d5bf0; opacity: .55; }
.final::after { content: ""; position: absolute; z-index: -1; right: -40px; bottom: -70px; width: 220px; height: 220px; border-radius: 50%; background: var(--coral); opacity: .75; }
.final h2 { color: #fff; max-width: 18em; margin: 0 auto 14px; }
.final p { color: #cfcdf3; font-size: 18px; margin: 0 auto 28px; max-width: 32em; }
.l-foot { padding: 56px 0 44px; }
.l-foot .l-wrap { display: flex; gap: 20px 40px; flex-wrap: wrap; align-items: center; justify-content: space-between; }
.l-foot p { margin: 0; color: var(--muted); font-size: 14.5px; max-width: 36em; }
.l-foot a { color: var(--ink-2); font-weight: 700; }

@media (prefers-reduced-motion: reduce) { .btn { transition: none; } }

/* กรอบเล็กในโทรศัพท์: ย่อหน้าเยื้องน้อยลง */
.screen .paper p, .screen .paper .closing { text-indent: 1.5em; }
.screen .paper h1 { border-bottom-width: 3px; }
