:root {
  --ink: #0b1f2a; --ink-2: #334155; --muted: #64748b; --line: #e2e8f0; --bg: #ffffff; --soft: #f4f7f8;
  --brand: #0f766e; --brand-2: #14b8a6; --mint: #5eead4; --navy: #0b1f2a; --navy-2: #102c3a;
  --ok: #16a34a; --bad: #dc2626; --warn: #d97706;
}
* { 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: var(--bg); font-size: 16.5px; line-height: 1.7; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 14px; }
h2 { font-size: clamp(26px, 3.4vw, 40px); letter-spacing: -.01em; }
h3 { font-size: 19px; }
p { margin: 0 0 14px; color: var(--ink-2); }
.wrap { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.big { font-size: 20px; margin-top: 30px; }
.muted { color: var(--muted); }
section { padding: 96px 0; }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 12px; font-weight: 600; font: inherit; font-weight: 600; cursor: pointer; border: 1.5px solid transparent; transition: .2s; white-space: nowrap; }
.btn.lg { padding: 14px 26px; font-size: 17px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--brand); color: #fff; box-shadow: 0 8px 24px #0f766e40; }
.btn.primary:hover { background: #115e59; transform: translateY(-1px); }
.btn.outline { border-color: #cbd5e1; color: var(--ink); background: #fff; }
.btn.outline:hover { border-color: var(--brand); color: var(--brand); }
.btn.ghost { color: var(--ink); }
.btn.ghost:hover { color: var(--brand); }

/* nav */
.nav { position: fixed; inset: 0 0 auto; z-index: 50; transition: .25s; }
.nav.scrolled { background: #ffffffe8; backdrop-filter: saturate(1.4) blur(12px); box-shadow: 0 1px 0 var(--line); }
.nav-in { display: flex; align-items: center; gap: 24px; height: 70px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; font-size: 20px; }
.brand b { background: var(--brand); color: #fff; border-radius: 9px; padding: 0 8px; font-size: 17px; line-height: 30px; }
.links { display: flex; gap: 26px; margin-left: 24px; font-size: 15px; color: var(--ink-2); }
.links a:hover { color: var(--brand); }
.nav-cta { margin-left: auto; display: flex; gap: 6px; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 140px 0 80px; background: linear-gradient(180deg, #effcf9 0%, #fff 70%); }
.glow { position: absolute; border-radius: 50%; filter: blur(80px); opacity: .55; pointer-events: none; }
.g1 { width: 520px; height: 520px; background: #99f6e4; top: -160px; right: -120px; }
.g2 { width: 380px; height: 380px; background: #bae6fd; bottom: -120px; left: -140px; }
.hero-in { position: relative; display: grid; grid-template-columns: 1fr 1.15fr; gap: 48px; align-items: center; }
.pill { display: inline-block; padding: 6px 14px; border-radius: 99px; background: #ccfbf1; color: #115e59; font-size: 14px; font-weight: 600; margin-bottom: 18px; }
.hero h1 { font-size: clamp(36px, 5vw, 60px); letter-spacing: -.02em; }
.hl { background: linear-gradient(90deg, var(--brand), #0891b2); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-lead { font-size: 18.5px; max-width: 540px; }
.hero-lead b { color: var(--ink); }
.hero-cta { display: flex; gap: 12px; flex-wrap: wrap; margin: 26px 0 22px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; gap: 18px; flex-wrap: wrap; font-size: 14.5px; color: var(--muted); }
.ticks li::before { content: '✓'; color: var(--brand); font-weight: 700; margin-right: 6px; }
.hero-shot { position: relative; }
.browser { border-radius: 14px; overflow: hidden; background: #fff; box-shadow: 0 40px 80px -20px #0b1f2a55, 0 0 0 1px #0b1f2a14; transform: perspective(1600px) rotateY(-8deg) rotateX(3deg); transform-origin: left center; }
.bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #f1f5f9; border-bottom: 1px solid var(--line); }
.bar i { width: 10px; height: 10px; border-radius: 50%; background: #cbd5e1; }
.bar i:nth-child(1) { background: #f87171; } .bar i:nth-child(2) { background: #fbbf24; } .bar i:nth-child(3) { background: #34d399; }
.bar span { margin-left: 10px; font-size: 12px; color: var(--muted); }
.phone { position: absolute; right: -14px; bottom: -48px; width: 31%; border-radius: 26px; overflow: hidden; border: 7px solid #0b1f2a; box-shadow: 0 30px 60px -10px #0b1f2a66; background: #0b1f2a; }
.phone img { border-radius: 18px; }
.phone.static { position: relative; right: auto; bottom: auto; width: 100%; max-width: 280px; margin: 0 auto; }

/* pain */
.pain { background: var(--soft); }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.pain-card { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 28px; }
.pain-card span { font-size: 34px; }
.pain-card h3 { margin-top: 10px; }

/* section head */
.sec-head { text-align: center; max-width: 760px; margin: 0 auto 48px; }
.kicker { display: inline-block; font-size: 14px; font-weight: 700; color: var(--brand); letter-spacing: .04em; margin-bottom: 10px; }
.sec-head.light h2 { color: #fff; } .sec-head.light p { color: #cbd5e1; } .sec-head.light .kicker { color: var(--mint); }

/* features */
.feat-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.feat { border: 1px solid var(--line); border-radius: 18px; padding: 24px; transition: .25s; background: #fff; }
.feat:hover { border-color: #99f6e4; box-shadow: 0 16px 40px -16px #0f766e40; transform: translateY(-3px); }
.feat i { font-style: normal; font-size: 28px; display: inline-grid; place-items: center; width: 52px; height: 52px; border-radius: 14px; background: #f0fdfa; margin-bottom: 14px; }
.feat p { font-size: 15px; margin: 0; }

/* showcase */
.show { background: linear-gradient(180deg, #fff, var(--soft)); }
.show-in { display: grid; grid-template-columns: 1fr 1.25fr; gap: 56px; align-items: center; }
.show-in.reverse { grid-template-columns: 1.25fr 1fr; }
.show-in.reverse .show-copy { order: 2; }
.shot { border-radius: 16px; overflow: hidden; box-shadow: 0 30px 60px -24px #0b1f2a40, 0 0 0 1px #0b1f2a12; background: #fff; }
.shot.dark { box-shadow: 0 30px 60px -20px #000a; }
.checks { list-style: none; padding: 0; margin: 18px 0 0; }
.checks li { padding: 6px 0 6px 32px; position: relative; color: var(--ink-2); }
.checks li::before { content: '✓'; position: absolute; left: 0; top: 7px; width: 22px; height: 22px; border-radius: 50%; background: #ccfbf1; color: var(--brand); font-size: 13px; font-weight: 700; display: grid; place-items: center; }
.checks.light li { color: #e2e8f0; } .checks.light li::before { background: #14b8a633; color: var(--mint); }
.h3big { font-size: 26px; }

/* LINE แจ้งเตือน */
.line-sec { background: linear-gradient(180deg, #ecfdf5, #fff); }
.line-sec .kicker { color: #06a14a; }
.phone-stage { display: flex; justify-content: center; padding: 10px 0; }

/* simulator */
.how { background: #fff; }
.sim { display: grid; grid-template-columns: 300px 1fr; gap: 28px; background: var(--soft); border: 1px solid var(--line); border-radius: 22px; padding: 28px; }
.sim-form label, .calc label { display: block; font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.sim-form input, .calc input, .lead input, .lead select, .lead textarea { display: block; width: 100%; margin-top: 4px; padding: 11px 13px; border: 1.5px solid #cbd5e1; border-radius: 11px; font: inherit; color: var(--ink); background: #fff; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand-2); box-shadow: 0 0 0 4px #14b8a622; }
.note { font-size: 13px; color: var(--muted); }
.sim-bars { display: flex; align-items: flex-end; gap: 8px; height: 220px; padding: 0 4px; border-bottom: 1.5px solid #cbd5e1; }
.sim-bars .b { flex: 1; display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; position: relative; }
.sim-bars .stack { width: 100%; max-width: 46px; border-radius: 7px 7px 0 0; overflow: hidden; display: flex; flex-direction: column; transition: height .35s ease; }
.sim-bars .pr { background: var(--mint); transition: flex .35s; } .sim-bars .in { background: var(--brand); transition: flex .35s; }
.sim-bars .v { font-size: 11.5px; color: var(--ink-2); margin-bottom: 4px; font-variant-numeric: tabular-nums; white-space: nowrap; }
.sim-bars .n { position: absolute; bottom: -24px; font-size: 12px; color: var(--muted); }
.sim-sum { margin-top: 36px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
.sim-sum div { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; }
.sim-sum span { display: block; font-size: 13px; color: var(--muted); }
.sim-sum b { font-size: 20px; font-variant-numeric: tabular-nums; }
.legend { font-size: 13px; color: var(--muted); margin-top: 10px; display: flex; gap: 16px; }
.legend i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; }

/* HP calc */
.calc { margin-top: 26px; background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 20px; }
.calc-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-out { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; }
.calc-out div { text-align: center; background: var(--soft); border-radius: 12px; padding: 10px 4px; }
.calc-out span { display: block; font-size: 12.5px; color: var(--muted); }
.calc-out b { font-size: 18px; font-variant-numeric: tabular-nums; }

/* credit */
.credit-sec { background: radial-gradient(circle at 80% 0%, #134e4a 0%, var(--navy) 55%); color: #fff; }
.grades { display: flex; justify-content: center; gap: 26px; flex-wrap: wrap; margin-bottom: 44px; }
.grades div { display: flex; flex-direction: column; align-items: center; gap: 6px; color: #cbd5e1; font-size: 14px; }
.g { width: 58px; height: 58px; border-radius: 16px; display: grid; place-items: center; font-size: 26px; }
.gA { background: #dcfce7; color: #15803d; } .gB { background: #e0f2fe; color: #0369a1; } .gC { background: #fef3c7; color: #b45309; }
.gD { background: #fee2e2; color: #dc2626; } .gF { background: #1e293b; color: #fff; outline: 1px solid #475569; }
.credit-shots { display: grid; grid-template-columns: 1.6fr 1fr; gap: 22px; align-items: start; }

/* trio */
.trio { display: grid; grid-template-columns: 280px 1fr 300px; gap: 48px; align-items: center; }
.receipt-shot { border-radius: 14px; overflow: hidden; box-shadow: 0 30px 60px -24px #0b1f2a40, 0 0 0 1px #0b1f2a12; transform: rotate(2deg); }

/* steps */
.steps-sec { background: #fff; }
.steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; counter-reset: s; }
.step { position: relative; border-radius: 20px; padding: 30px; background: var(--soft); border: 1px solid var(--line); }
.step b { display: grid; place-items: center; width: 46px; height: 46px; border-radius: 14px; background: var(--brand); color: #fff; font-size: 20px; margin-bottom: 16px; }

/* pricing */
.pricing { background: var(--soft); }
.plans { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; align-items: stretch; }
.plan { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; display: flex; flex-direction: column; }
.plan.hot { border: 2px solid var(--brand); box-shadow: 0 30px 60px -28px #0f766e66; transform: translateY(-8px); }
.plan .tag { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); background: var(--brand); color: #fff; font-size: 13px; font-weight: 700; padding: 4px 14px; border-radius: 99px; }
.plan h3 { font-size: 22px; margin: 0; }
.price { font-size: 28px; font-weight: 700; margin: 10px 0 18px; }
.plan ul { list-style: none; padding: 0; margin: 0 0 24px; flex: 1; }
.plan li { padding: 7px 0 7px 26px; position: relative; color: var(--ink-2); border-bottom: 1px dashed var(--line); font-size: 15px; }
.plan li::before { content: '✓'; position: absolute; left: 2px; color: var(--brand); font-weight: 700; }

/* faq */
.faq details { border: 1px solid var(--line); border-radius: 16px; padding: 4px 22px; margin-bottom: 12px; background: #fff; }
.faq summary { cursor: pointer; font-weight: 600; padding: 14px 0; list-style: none; display: flex; justify-content: space-between; gap: 10px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; font-size: 22px; color: var(--brand); line-height: 1; transition: .2s; }
.faq details[open] summary::after { transform: rotate(45deg); }
.faq details p { padding-bottom: 8px; }

/* contact */
.contact { background: linear-gradient(135deg, var(--navy) 0%, #134e4a 100%); color: #fff; }
.contact h2 { color: #fff; } .contact p { color: #cbd5e1; }
.contact-in { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center; }
.lead { background: #fff; border-radius: 22px; padding: 28px; color: var(--ink); box-shadow: 0 40px 80px -30px #000a; }
.lead label { display: block; font-size: 14px; color: var(--muted); font-weight: 500; margin-bottom: 12px; }
.lead textarea { resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.form-msg { margin: 12px 0 0; font-size: 15px; min-height: 22px; text-align: center; color: var(--muted); }
.form-msg.ok { color: var(--ok); font-weight: 600; } .form-msg.err { color: var(--bad); }

/* footer */
.foot { background: #071620; color: #94a3b8; padding: 40px 0 26px; font-size: 14px; }
.foot-in { display: flex; justify-content: space-between; gap: 20px; flex-wrap: wrap; align-items: center; }
.foot p { color: #94a3b8; margin: 6px 0 0; }
.brand.light { color: #fff; }
.foot-links { display: flex; gap: 22px; }
.foot-links a:hover { color: #fff; }
.fine { margin-top: 26px; padding-top: 18px; border-top: 1px solid #1e293b; font-size: 12.5px; color: #64748b; }

/* reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .reveal { opacity: 1; transform: none; transition: none; } html { scroll-behavior: auto; } }

/* responsive */
@media (max-width: 1080px) {
  .feat-grid { grid-template-columns: repeat(2, 1fr); }
  .trio { grid-template-columns: 1fr 1fr; }
  .trio > div:nth-child(2) { grid-column: 1 / -1; order: -1; }
  .links { display: none; }
}
@media (max-width: 860px) {
  section { padding: 68px 0; }
  .hero { padding: 110px 0 70px; }
  .hero-in, .show-in, .show-in.reverse, .contact-in, .sim, .credit-shots { grid-template-columns: 1fr; }
  .show-in.reverse .show-copy { order: 0; }
  .browser { transform: none; }
  .phone { width: 34%; right: -6px; bottom: -36px; border-width: 5px; }
  .grid3, .steps, .plans { grid-template-columns: 1fr; }
  .plan.hot { transform: none; }
  .sim-sum { grid-template-columns: 1fr 1fr 1fr; }
  .sim-sum b { font-size: 16px; }
  .calc-out { grid-template-columns: repeat(2, 1fr); }
  .nav-cta .ghost { display: none; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .feat-grid { grid-template-columns: 1fr; }
  .trio { grid-template-columns: 1fr; }
  .row2, .calc-row { grid-template-columns: 1fr; }
  .sim-bars .v { display: none; }
  .wrap { padding: 0 18px; }
  .btn.lg { padding: 13px 20px; }
}
.price small { font-size: 15px; color: var(--muted); font-weight: 500; }
.small-p { font-size: 14px; margin: -14px 0 16px; }
