/* © 2026 สุขใจ (Sookjai) — Landing page · ฟอนต์ Prompt (SIL OFL 1.1)
   ใช้ชุดตัวแปรเดียวกับแอป (styles.css v1.3.4): ขนาด 28/22/18/17/16/15/13 · ความหนา 400/600/700 · ระยะบรรทัด 1.25/1.3/1.4/1.5 · ระยะห่าง 4/8/12/16/24
   ห้ามใส่ขนาด/ความหนา/ระยะบรรทัดลอย ๆ นอกชุดนี้ */
:root {
  --fs-h1: 28px; --fs-h2: 22px; --fs-title: 18px; --fs-body: 17px; --fs-btn: 16px; --fs-sub: 15px; --fs-cap: 13px;
  --fw-regular: 400; --fw-semi: 600; --fw-bold: 700;
  --lh-head: 1.25; --lh-title: 1.3; --lh-sub: 1.4; --lh-body: 1.5;
  --sp-1: 4px; --sp-2: 8px; --sp-3: 12px; --sp-4: 16px; --sp-5: 24px;
  --sp-6: calc(var(--sp-5) * 2); --sp-7: calc(var(--sp-5) * 3); /* ผลคูณของขั้นเดิม ใช้เป็นช่องว่างของส่วนใหญ่ */
  /* สีเดียวกับแอป */
  --bg: #F6F5F1; --card: #FFFFFF; --ink: #161A4D; --muted: #5B5F8F; --line: #DCDDF0;
  --brand: #4D55F5; --brand-soft: #E7E9FF; --lime: #DAFF7C; --lime-soft: #F4FFD2; --lilac: #CA7FFE; --lilac-soft: #F3E4FF;
  --red: #E0453F; --red-soft: #FFEDEB;
  --radius: 20px; --radius-sm: 12px; --shadow: 0 2px 12px rgba(77, 85, 245, .10);
  --wrap: 960px;
}
* { box-sizing: border-box; margin: 0; }
html { scroll-behavior: smooth; }
body { font-family: "Prompt", system-ui, -apple-system, "Segoe UI", sans-serif; font-size: var(--fs-body); font-weight: var(--fw-regular); line-height: var(--lh-body); color: var(--ink); background: #fff; -webkit-text-size-adjust: 100%; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { text-wrap: balance; }
h1 { font-size: var(--fs-h1); font-weight: var(--fw-bold); line-height: var(--lh-head); }
h2 { font-size: var(--fs-h2); font-weight: var(--fw-bold); line-height: var(--lh-title); }
h3 { font-size: var(--fs-title); font-weight: var(--fw-bold); line-height: var(--lh-title); }
p { text-wrap: pretty; }
.sub { font-size: var(--fs-sub); line-height: var(--lh-sub); color: var(--muted); }
.cap { font-size: var(--fs-cap); line-height: var(--lh-sub); color: var(--muted); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--sp-4); }
.section { padding: var(--sp-6) 0; }
.section.soft { background: var(--bg); }
.section-head { max-width: 640px; margin: 0 auto var(--sp-5); text-align: center; }
.section-head h2 { margin-bottom: var(--sp-2); }
:focus-visible { outline: 3px solid var(--brand); outline-offset: 3px; border-radius: var(--radius-sm); }

/* ปุ่ม */
.btn { display: inline-block; font: inherit; font-size: var(--fs-btn); font-weight: var(--fw-bold); line-height: var(--lh-title); padding: var(--sp-3) var(--sp-5); border-radius: 999px; border: 2px solid var(--brand); background: var(--brand); color: #fff; text-decoration: none; text-align: center; cursor: pointer; box-shadow: var(--shadow); transition: transform .15s, box-shadow .15s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(77, 85, 245, .28); }
.btn:active { transform: translateY(0); }
.btn.sm { font-size: var(--fs-sub); padding: var(--sp-2) var(--sp-4); }
.btn.ghost { background: #fff; color: var(--brand); }
.btn.lime { background: var(--lime); border-color: var(--lime); color: var(--ink); }
.tag { display: inline-block; font-size: var(--fs-cap); font-weight: var(--fw-semi); line-height: var(--lh-title); padding: var(--sp-1) var(--sp-3); border-radius: 999px; background: var(--brand-soft); color: var(--brand); }

/* หัวหน้า */
.site { position: sticky; top: 0; z-index: 10; background: rgba(255, 255, 255, .94); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
.site .wrap { display: flex; align-items: center; justify-content: space-between; gap: var(--sp-3); min-height: 60px; }
.logo { display: inline-flex; align-items: center; gap: var(--sp-2); text-decoration: none; font-size: var(--fs-title); font-weight: var(--fw-bold); }
.logo img { width: 36px; height: 36px; border-radius: var(--radius-sm); }

/* ภาพหน้าจอ */
.phone { width: 100%; max-width: 280px; margin: 0 auto; padding: var(--sp-2); background: #fff; border: 1px solid var(--line); border-radius: 28px; box-shadow: 0 8px 28px rgba(22, 26, 77, .14); }
.crop { overflow: hidden; border-radius: var(--radius); background: #fff; }
.crop img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.crop.nav { aspect-ratio: 750 / 1440; }     /* ภาพ 2 เท่า ตัดแถบเมนูล่างออก */
.crop.full { aspect-ratio: 750 / 1624; }
.crop.nat { aspect-ratio: 404 / 872; }
.crop.n469 { aspect-ratio: 469 / 1015; }
.doc { background: #fff; border: 1px solid var(--line); border-radius: var(--sp-2); box-shadow: 0 8px 24px rgba(22, 26, 77, .12); overflow: hidden; }
.doc img { width: 100%; height: auto; }

/* ส่วนหัว Hero */
.hero { padding: var(--sp-5) 0 var(--sp-6); background: linear-gradient(180deg, var(--brand-soft), #fff 70%); overflow: hidden; }
.hero .wrap { display: grid; gap: var(--sp-5); }
.hero h1 { margin: var(--sp-3) 0; }
.hero .lead { margin-bottom: var(--sp-5); }
.hero-note { margin-top: var(--sp-3); }

/* ตัวเลข */
.stats { list-style: none; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); }
.stats li { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-4); text-align: center; box-shadow: var(--shadow); }
.stats b { display: block; font-size: var(--fs-h2); font-weight: var(--fw-bold); line-height: var(--lh-title); color: var(--brand); }
.stats span { display: block; margin-top: var(--sp-1); }

/* ปัญหา / การ์ด */
.cards { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: var(--sp-5); box-shadow: var(--shadow); }
.card .ic { display: grid; place-items: center; width: 44px; height: 44px; margin-bottom: var(--sp-3); border-radius: var(--radius-sm); background: var(--lime-soft); font-size: var(--fs-h2); line-height: var(--lh-head); }
.card:nth-child(2) .ic { background: var(--lilac-soft); } .card:nth-child(3) .ic { background: var(--brand-soft); } .card:nth-child(4) .ic { background: var(--red-soft); }
.card h3 { margin-bottom: var(--sp-1); }

/* วิธีเริ่ม */
.start { display: grid; gap: var(--sp-5); align-items: center; }
.start-step { text-align: center; }
.start-step .phone { margin-bottom: var(--sp-3); }
.arrow { text-align: center; color: var(--brand); font-size: var(--fs-h1); font-weight: var(--fw-bold); line-height: var(--lh-head); }

/* ตัวอย่างผลลัพธ์ */
.feature { display: grid; gap: var(--sp-5); align-items: center; padding: var(--sp-5) 0; }
.feature + .feature { border-top: 1px solid var(--line); }
.feature .num { display: inline-grid; place-items: center; width: 32px; height: 32px; margin-bottom: var(--sp-2); border-radius: 50%; background: var(--brand); color: #fff; font-size: var(--fs-sub); font-weight: var(--fw-bold); }
.feature h3 { margin-bottom: var(--sp-2); }
.feature ul { list-style: none; padding: 0; margin-top: var(--sp-3); display: grid; gap: var(--sp-2); }
.feature li { position: relative; padding-left: var(--sp-5); }
.feature li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: var(--lime); font-size: var(--fs-cap); font-weight: var(--fw-bold); line-height: 18px; text-align: center; }
.pair { display: grid; grid-template-columns: 1fr 1fr; gap: var(--sp-3); align-items: start; }
.pair .doc, .pair .phone { max-width: none; }
.shots-note { margin-top: var(--sp-4); text-align: center; }

/* คนเดียว / ชวนพี่น้อง */
.two { display: grid; gap: var(--sp-3); }
.two .card.accent { background: var(--lime-soft); border-color: transparent; }
.rights { list-style: none; padding: 0; margin-top: var(--sp-3); display: grid; gap: var(--sp-2); }
.rights li { padding: var(--sp-3); background: #fff; border: 1px solid var(--line); border-radius: var(--radius-sm); }
.rights b { font-weight: var(--fw-bold); }

/* 4 ขั้นตอน */
.steps { list-style: none; padding: 0; display: grid; gap: var(--sp-3); counter-reset: s; }
.steps li { counter-increment: s; position: relative; padding: var(--sp-4) var(--sp-4) var(--sp-4) calc(var(--sp-7) + var(--sp-1)); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.steps li::before { content: counter(s); position: absolute; left: var(--sp-4); top: var(--sp-4); width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--brand); color: #fff; font-weight: var(--fw-bold); }
.steps li:nth-child(2)::before { background: var(--lilac); } .steps li:nth-child(3)::before { background: var(--lime); color: var(--ink); } .steps li:nth-child(4)::before { background: var(--ink); }
.steps h3 { margin-bottom: var(--sp-1); }
.iphone { margin-top: var(--sp-4); padding: var(--sp-4); background: var(--lime-soft); border-radius: var(--radius-sm); }
.cta-row { margin-top: var(--sp-5); text-align: center; }

/* ความปลอดภัย */
.safe { display: grid; gap: var(--sp-5); padding: var(--sp-5); background: var(--brand); color: #fff; border-radius: var(--radius); }
.safe h2 { margin-bottom: var(--sp-2); }
.safe .lead { color: rgba(255, 255, 255, .88); }
.safe ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.safe li { padding: var(--sp-3) var(--sp-4); background: rgba(255, 255, 255, .12); border-radius: var(--radius-sm); }
.safe li::before { content: "✓ "; color: var(--lime); font-weight: var(--fw-bold); }
.safe .cap { color: rgba(255, 255, 255, .8); }

/* รีวิว (ที่ว่าง) */
.reviews { list-style: none; padding: 0; display: grid; gap: var(--sp-3); }
.reviews li { min-height: 120px; display: grid; place-items: center; padding: var(--sp-5); border: 2px dashed var(--line); border-radius: var(--radius); color: var(--muted); text-align: center; font-size: var(--fs-sub); line-height: var(--lh-sub); background: #fff; }

/* ราคา */
.plans { display: grid; gap: var(--sp-3); }
.plan { display: flex; flex-direction: column; gap: var(--sp-3); padding: var(--sp-5); background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.plan.free { border: 2px solid var(--brand); }
.plan h3 { display: flex; align-items: center; gap: var(--sp-2); flex-wrap: wrap; }
.plan .price { font-size: var(--fs-h2); font-weight: var(--fw-bold); line-height: var(--lh-title); color: var(--brand); }
.plan ul { list-style: none; padding: 0; display: grid; gap: var(--sp-2); }
.plan li { position: relative; padding-left: var(--sp-5); font-size: var(--fs-sub); line-height: var(--lh-sub); }
.plan li::before { content: "✓"; position: absolute; left: 0; top: 0; font-weight: var(--fw-bold); color: var(--brand); }
.plan .btn { margin-top: auto; }
.plan.soon .btn { opacity: .6; pointer-events: none; }

/* คำถามที่พบบ่อย */
.faq { max-width: 720px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); padding: var(--sp-4) 0; }
.faq summary { display: flex; justify-content: space-between; gap: var(--sp-3); cursor: pointer; font-size: var(--fs-title); font-weight: var(--fw-semi); line-height: var(--lh-title); list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; flex: none; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-weight: var(--fw-bold); }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin-top: var(--sp-3); color: var(--muted); }

/* ติดต่อ + ท้ายหน้า */
.contact { text-align: center; }
.contact .btn { margin-top: var(--sp-4); }
.foot { padding: var(--sp-5) 0; background: var(--ink); color: rgba(255, 255, 255, .85); text-align: center; }
.foot p + p { margin-top: var(--sp-2); }

@media (min-width: 768px) {
  .section { padding: var(--sp-7) 0; }
  .hero { padding: var(--sp-7) 0; }
  .hero .wrap { grid-template-columns: 1.1fr .9fr; align-items: center; gap: var(--sp-6); }
  .stats { grid-template-columns: repeat(4, 1fr); }
  .cards { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .start { grid-template-columns: 1fr auto 1fr; }
  .feature { grid-template-columns: 1fr 1fr; gap: var(--sp-6); }
  .feature:nth-of-type(even) .media { order: 2; }
  .two { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
  .steps { grid-template-columns: 1fr 1fr; }
  .safe { grid-template-columns: 1fr 1fr; padding: var(--sp-6); align-items: center; }
  .reviews { grid-template-columns: repeat(3, 1fr); }
  .plans { grid-template-columns: 1fr 1fr; gap: var(--sp-4); }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } .btn { transition: none; } }

.two .after { margin-top: var(--sp-3); }
.foot .cap { color: inherit; }

.crop.hero-s { aspect-ratio: 404 / 785; }
.crop.tbl { aspect-ratio: 404 / 825; }

.crop.res { aspect-ratio: 404 / 838; }
.pair.stack { grid-template-columns: 1fr; gap: var(--sp-4); }
.pair.stack .phone { max-width: 320px; margin: 0 auto; }

/* mockup ไฟล์ PDF: กระดาษซ้อน + แถบชื่อไฟล์ */
.doc { position: relative; overflow: visible; border: 0; background: transparent; box-shadow: none; padding-top: var(--sp-5); }
.doc::before { content: attr(data-file); position: absolute; top: 0; left: 0; right: 0; height: var(--sp-5); padding: 0 var(--sp-3) 0 var(--sp-6); display: flex; align-items: center; background: var(--ink); color: #fff; border-radius: var(--sp-2) var(--sp-2) 0 0; font-size: var(--fs-cap); font-weight: var(--fw-semi); line-height: var(--lh-sub); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.doc::after { content: ""; position: absolute; left: var(--sp-3); top: var(--sp-3); width: var(--sp-2); height: var(--sp-2); border-radius: 50%; background: var(--lime); box-shadow: 12px 0 0 var(--lilac); }
.doc img { position: relative; display: block; background: #fff; border: 1px solid var(--line); border-top: 0; border-radius: 0 0 var(--sp-2) var(--sp-2); box-shadow: 0 var(--sp-3) var(--sp-5) rgba(22, 26, 77, .18), var(--sp-2) var(--sp-2) 0 -1px #fff, var(--sp-2) var(--sp-2) 0 0 var(--line); }

.mock { margin: 0; border-radius: var(--sp-3); overflow: hidden; box-shadow: 0 var(--sp-3) var(--sp-5) rgba(22, 26, 77, .18); }
.mock img { display: block; width: 100%; height: auto; }
.crop.sum { aspect-ratio: 404 / 820; }
