/* =====================================================================
   HorPak.app — Public website design system (หน้าเว็บสาธารณะ)
   คลาสขึ้นต้นด้วย hp- เพื่อไม่ชนกับคลาสอื่น
   ===================================================================== */
:root {
  --hp-font: 'Plus Jakarta Sans', 'IBM Plex Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --hp-ink: #0b1b13; --hp-ink-2: #344054; --hp-muted: #667085; --hp-faint: #98a2b3;
  --hp-line: #e6ebe8; --hp-bg: #ffffff; --hp-bg-2: #f6f8f7; --hp-bg-3: #eef3f0;
  --hp-brand: #15803d; --hp-brand-2: #16a34a; --hp-brand-3: #22c55e; --hp-brand-ink: #14532d;
  --hp-brand-50: #f0fdf4; --hp-brand-100: #dcfce7; --hp-brand-200: #bbf7d0;
  --hp-grad: linear-gradient(135deg, #22c55e 0%, #15803d 55%, #0f5132 100%);
  --hp-radius: 18px;
  --hp-shadow: 0 1px 2px rgba(16,24,40,.04), 0 8px 24px -12px rgba(16,24,40,.12);
  --hp-shadow-lg: 0 30px 60px -20px rgba(15, 81, 50, .35), 0 12px 24px -12px rgba(16,24,40,.18);
}
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body.hp { margin: 0; font-family: var(--hp-font); color: var(--hp-ink); background: var(--hp-bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
.hp img { max-width: 100%; height: auto; display: block; }
.hp a { color: inherit; text-decoration: none; }
.hp h1, .hp h2, .hp h3, .hp h4, .hp p { margin: 0; }
.hp-wrap { width: min(1200px, 100% - 40px); margin: 0 auto; }
.hp-svg { width: 1em; height: 1em; flex-shrink: 0; }
.hp-grad-text { background: linear-gradient(90deg, #16a34a, #15803d 50%, #0e7490); -webkit-background-clip: text; background-clip: text; color: transparent; }

/* ---------- buttons ---------- */
.hp-btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; height: 46px; padding: 0 22px; border-radius: 14px; font-weight: 700; font-size: 15px; border: 1px solid transparent; cursor: pointer; transition: transform .15s, box-shadow .2s, background .2s; white-space: nowrap; font-family: inherit; }
.hp-btn:hover { transform: translateY(-1px); }
.hp-btn-primary { background: var(--hp-brand); color: #fff !important; box-shadow: 0 10px 22px -10px rgba(21,128,61,.7), inset 0 1px 0 rgba(255,255,255,.15); }
.hp-btn-primary:hover { background: #166534; box-shadow: 0 14px 28px -10px rgba(21,128,61,.8); }
.hp-btn-primary .hp-btn-arrow { width: 30px; height: 30px; margin-right: -12px; border-radius: 10px; background: #fff; color: var(--hp-brand); display: grid; place-items: center; }
.hp-btn-outline { background: #fff; border-color: var(--hp-line); color: var(--hp-ink) !important; }
.hp-btn-outline:hover { border-color: var(--hp-brand-200); background: var(--hp-brand-50); }
.hp-btn-white { background: #fff; color: var(--hp-brand-ink) !important; }
.hp-btn-ghost-w { background: rgba(255,255,255,.12); color: #fff !important; border-color: rgba(255,255,255,.3); }
.hp-btn-lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 16px; }
.hp-btn-block { width: 100%; }
.hp-link { color: var(--hp-brand) !important; font-weight: 700; display: inline-flex; align-items: center; gap: 6px; }
.hp-link:hover { gap: 9px; }

/* ---------- nav ---------- */
.hp-nav { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.82); backdrop-filter: saturate(180%) blur(14px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.hp-nav.scrolled { border-color: var(--hp-line); box-shadow: 0 6px 20px -16px rgba(16,24,40,.4); }
.hp-nav-in { height: 72px; display: flex; align-items: center; gap: 28px; }
.hp-logo { display: flex; align-items: center; gap: 10px; font-weight: 800; font-size: 20px; letter-spacing: -.02em; }
.hp-logo img { width: 36px; height: 36px; border-radius: 10px; }
.hp-logo b { color: var(--hp-brand); font-weight: 800; }
.hp-menu { display: flex; align-items: center; gap: 4px; margin-left: 18px; }
.hp-menu a { padding: 8px 12px; border-radius: 10px; font-weight: 600; font-size: 14.5px; color: var(--hp-ink-2); }
.hp-menu a:hover, .hp-menu a.active { color: var(--hp-brand); background: var(--hp-brand-50); }
.hp-nav-right { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.hp-nav-right .hp-signin { font-weight: 700; font-size: 14.5px; padding: 8px 12px; }
.hp-nav-right .hp-btn { height: 44px; }
.hp-burger { display: none; width: 44px; height: 44px; border-radius: 12px; border: 1px solid var(--hp-line); background: #fff; place-items: center; cursor: pointer; }
.hp-mobile { display: none; border-top: 1px solid var(--hp-line); background: #fff; padding: 12px 20px 20px; }
.hp-mobile a { display: block; padding: 12px 6px; font-weight: 600; border-bottom: 1px solid var(--hp-bg-3); }
.hp-mobile .hp-btn { margin-top: 14px; width: 100%; }
.hp-mobile.open { display: block; }
@media (max-width: 980px) { .hp-menu, .hp-nav-right .hp-signin, .hp-nav-right .hp-btn { display: none; } .hp-burger { display: grid; } }

/* ---------- section basics ---------- */
.hp-section { padding: 96px 0; position: relative; }
.hp-section-sm { padding: 64px 0; }
.hp-alt { background: var(--hp-bg-2); }
.hp-eyebrow { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--hp-brand); background: var(--hp-brand-50); border: 1px solid var(--hp-brand-100); padding: 5px 12px; border-radius: 99px; }
.hp-head { text-align: center; max-width: 760px; margin: 0 auto 52px; }
.hp-h2 { font-size: clamp(28px, 4vw, 44px); line-height: 1.18; font-weight: 800; letter-spacing: -.025em; margin-top: 16px !important; }
.hp-lead { color: var(--hp-muted); font-size: 17px; margin-top: 14px !important; }

/* ---------- hero ---------- */
.hp-hero { position: relative; overflow: hidden; padding: 56px 0 90px; background:
  radial-gradient(900px 500px at 85% 10%, rgba(34,197,94,.14), transparent 60%),
  radial-gradient(700px 500px at 0% 100%, rgba(14,116,144,.08), transparent 60%), #fff; }
.hp-hero::before { content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(15,81,50,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(15,81,50,.05) 1px, transparent 1px);
  background-size: 56px 56px; mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 80% 70% at 60% 40%, #000 30%, transparent 75%); }
.hp-hero-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 40px; align-items: center; }
.hp-pill { display: inline-flex; align-items: center; gap: 10px; padding: 5px 14px 5px 5px; border-radius: 99px; background: #fff; border: 1px solid var(--hp-line); box-shadow: var(--hp-shadow); font-size: 13.5px; font-weight: 600; color: var(--hp-ink-2); }
.hp-pill b { background: var(--hp-grad); color: #fff; font-size: 11px; letter-spacing: .06em; padding: 3px 9px; border-radius: 99px; }
.hp-h1 { font-size: clamp(34px, 4.6vw, 54px); line-height: 1.12; font-weight: 800; letter-spacing: -.03em; margin: 22px 0 18px !important; }
.hp-hero p.hp-sub { font-size: 18px; color: var(--hp-ink-2); max-width: 540px; }
.hp-cta-row { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-top: 30px; }
.hp-play { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: var(--hp-brand) !important; padding: 8px 6px; }
.hp-play span { width: 38px; height: 38px; border-radius: 50%; border: 1.5px solid var(--hp-brand-200); display: grid; place-items: center; background: #fff; }
.hp-checks { display: flex; flex-wrap: wrap; gap: 8px 20px; margin-top: 26px; font-size: 14px; color: var(--hp-ink-2); }
.hp-checks span { display: inline-flex; align-items: center; gap: 7px; }
.hp-checks .hp-svg { color: #fff; background: var(--hp-brand-2); border-radius: 50%; padding: 3px; width: 18px; height: 18px; }

/* device mockup */
.hp-stage { position: relative; perspective: 1800px; min-height: 520px; }
.hp-orb { position: absolute; border-radius: 50%; pointer-events: none; filter: blur(.5px); }
.hp-orb.o1 { width: 220px; height: 220px; right: -40px; top: -30px; background: radial-gradient(circle at 30% 30%, #86efac, #16a34a 55%, #0f5132); box-shadow: 0 30px 60px -20px rgba(21,128,61,.6); }
.hp-orb.o2 { width: 90px; height: 90px; left: -10px; bottom: 30px; background: radial-gradient(circle at 30% 30%, #a7f3d0, #10b981 60%, #065f46); }
.hp-ring { position: absolute; border: 1px dashed rgba(21,128,61,.25); border-radius: 50%; pointer-events: none; }
.hp-ring.r1 { width: 640px; height: 640px; right: -180px; top: -120px; }
.hp-ring.r2 { width: 900px; height: 900px; right: -320px; top: -260px; }
.hp-device { position: relative; z-index: 2; border-radius: 22px; padding: 10px; background: linear-gradient(145deg, #ffffff, #e8efeb); box-shadow: var(--hp-shadow-lg); border: 1px solid #fff;
  transform: rotateY(-14deg) rotateX(7deg) rotateZ(1deg); transform-origin: left center; transition: transform .6s cubic-bezier(.2,.8,.2,1); }
.hp-stage:hover .hp-device { transform: rotateY(-8deg) rotateX(4deg); }
.hp-device img { border-radius: 14px; border: 1px solid var(--hp-line); }
.hp-phone { position: absolute; z-index: 3; width: 170px; right: -6px; bottom: -40px; border-radius: 30px; padding: 7px; background: #0b1b13; box-shadow: var(--hp-shadow-lg); transform: rotate(4deg); }
.hp-phone img { border-radius: 24px; }
.hp-float { position: absolute; z-index: 4; display: flex; align-items: center; gap: 12px; padding: 12px 16px; border-radius: 16px; background: rgba(255,255,255,.92); backdrop-filter: blur(10px); border: 1px solid #fff; box-shadow: var(--hp-shadow-lg); animation: hp-bob 6s ease-in-out infinite; }
.hp-float .ic { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--hp-brand-50); color: var(--hp-brand); font-size: 19px; }
.hp-float small { display: block; font-size: 11.5px; color: var(--hp-muted); line-height: 1.2; }
.hp-float b { font-size: 16px; }
.hp-float.f1 { left: -34px; top: 18%; }
.hp-float.f2 { left: 6%; bottom: -26px; animation-delay: -3s; }
@keyframes hp-bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
@media (max-width: 980px) {
  .hp-hero-grid { grid-template-columns: 1fr; }
  .hp-stage { min-height: 0; margin-top: 20px; }
  .hp-device { transform: none; }
  .hp-phone { width: 120px; right: -6px; bottom: -24px; }
  .hp-float.f1 { left: -6px; top: -20px; }
  .hp-ring { display: none; }
}

/* ---------- strip ---------- */
.hp-strip { border-top: 1px solid var(--hp-line); border-bottom: 1px solid var(--hp-line); background: #fff; padding: 30px 0; }
.hp-strip p { text-align: center; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--hp-faint); margin-bottom: 18px !important; }
.hp-strip-row { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px 38px; }
.hp-strip-row span { display: inline-flex; align-items: center; gap: 9px; font-weight: 700; color: #5b6b63; font-size: 15px; }
.hp-strip-row .hp-svg { width: 22px; height: 22px; color: var(--hp-brand-2); }

/* ---------- feature grid ---------- */
.hp-features { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; position: relative; }
.hp-feature { position: relative; padding: 26px; border-radius: var(--hp-radius); background: #fff; border: 1px solid var(--hp-line); transition: transform .2s, box-shadow .2s, border-color .2s; }
.hp-feature:hover { transform: translateY(-4px); box-shadow: var(--hp-shadow); border-color: var(--hp-brand-200); }
.hp-feature .ic { width: 52px; height: 52px; border-radius: 15px; display: grid; place-items: center; font-size: 24px; color: var(--hp-brand); background: linear-gradient(145deg, var(--hp-brand-50), #fff); border: 1px solid var(--hp-brand-100); margin-bottom: 18px; }
.hp-feature h3 { font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
.hp-feature p { color: var(--hp-muted); font-size: 14.5px; margin-top: 8px !important; }
.hp-feature .hp-tag { position: absolute; top: 22px; right: 22px; font-size: 11px; font-weight: 800; padding: 3px 9px; border-radius: 99px; background: #fff7ed; color: #c2410c; border: 1px solid #fed7aa; }
.hp-feature-dot { position: absolute; width: 8px; height: 8px; border-radius: 50%; background: var(--hp-brand-3); box-shadow: 0 0 0 4px var(--hp-brand-100); }
@media (max-width: 980px) { .hp-features { grid-template-columns: repeat(2, minmax(0, 1fr)); } .hp-feature-dot { display: none; } }
@media (max-width: 620px) { .hp-features { grid-template-columns: 1fr; } }

/* ---------- showcase ---------- */
.hp-show { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 64px; align-items: center; }
.hp-show + .hp-show { margin-top: 110px; }
.hp-show.rev .hp-show-media { order: 2; }
.hp-show-media { position: relative; }
.hp-frame { border-radius: 20px; padding: 8px; background: linear-gradient(145deg, #fff, #e9f0ec); border: 1px solid var(--hp-line); box-shadow: var(--hp-shadow-lg); }
.hp-frame img { border-radius: 14px; border: 1px solid var(--hp-line); }
.hp-pop { position: absolute; width: 46%; border-radius: 16px; overflow: hidden; box-shadow: var(--hp-shadow-lg); border: 4px solid #fff; background: #fff; }
.hp-pop.br { right: -26px; bottom: -40px; }
.hp-pop.bl { left: -26px; bottom: -40px; }
.hp-show h2 { font-size: clamp(26px, 3.4vw, 40px); line-height: 1.2; font-weight: 800; letter-spacing: -.025em; margin: 16px 0 14px !important; }
.hp-show p.hp-lead { margin-top: 0 !important; }
.hp-bullets { list-style: none; padding: 0; margin: 22px 0 28px; display: grid; gap: 12px; }
.hp-bullets li { display: flex; gap: 12px; align-items: flex-start; font-size: 15.5px; color: var(--hp-ink-2); }
.hp-bullets .hp-svg { margin-top: 3px; width: 20px; height: 20px; padding: 3px; border-radius: 50%; background: var(--hp-brand-2); color: #fff; }
@media (max-width: 980px) { .hp-show { grid-template-columns: 1fr; gap: 50px; } .hp-show.rev .hp-show-media { order: 0; } .hp-pop { width: 42%; } .hp-pop.br { right: -6px; } .hp-pop.bl { left: -6px; } }

/* ---------- mobile band ---------- */
.hp-band { position: relative; overflow: hidden; border-radius: 32px; padding: 64px; color: #fff; background: radial-gradient(120% 140% at 100% 0%, #22c55e 0%, #15803d 38%, #0b2e1c 100%); }
.hp-band::after { content: ''; position: absolute; right: -120px; bottom: -160px; width: 460px; height: 460px; border-radius: 50%; border: 60px solid rgba(255,255,255,.05); }
.hp-band-grid { position: relative; z-index: 1; display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.hp-band h2 { font-size: clamp(28px, 3.6vw, 42px); font-weight: 800; letter-spacing: -.02em; line-height: 1.2; }
.hp-band p { opacity: .88; margin-top: 14px !important; font-size: 17px; }
.hp-band .hp-bullets li { color: rgba(255,255,255,.92); }
.hp-band .hp-bullets .hp-svg { background: #fff; color: var(--hp-brand); }
.hp-phones { display: flex; justify-content: center; gap: 22px; align-items: flex-end; }
.hp-phones .p { width: 210px; border-radius: 34px; padding: 8px; background: #06140d; box-shadow: 0 40px 70px -24px rgba(0,0,0,.6); }
.hp-phones .p img { border-radius: 27px; }
.hp-phones .p.up { transform: translateY(-34px) rotate(-3deg); }
.hp-phones .p.dn { transform: rotate(3deg); }
@media (max-width: 980px) { .hp-band { padding: 40px 24px; border-radius: 24px; } .hp-band-grid { grid-template-columns: 1fr; } .hp-phones .p { width: 44%; } }

/* ---------- steps ---------- */
.hp-steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; counter-reset: s; position: relative; }
.hp-steps::before { content: ''; position: absolute; top: 34px; left: 12%; right: 12%; border-top: 2px dashed var(--hp-brand-200); }
.hp-step { position: relative; text-align: center; padding: 0 8px; }
.hp-step .n { position: relative; z-index: 1; width: 68px; height: 68px; margin: 0 auto 18px; border-radius: 22px; display: grid; place-items: center; background: #fff; border: 1px solid var(--hp-brand-100); box-shadow: var(--hp-shadow); color: var(--hp-brand); font-size: 28px; }
.hp-step .n::after { counter-increment: s; content: counter(s); position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--hp-brand); color: #fff; font-size: 13px; font-weight: 800; display: grid; place-items: center; border: 3px solid #fff; }
.hp-step h3 { font-size: 17px; font-weight: 800; }
.hp-step p { color: var(--hp-muted); font-size: 14.5px; margin-top: 6px !important; }
@media (max-width: 860px) { .hp-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); row-gap: 36px; } .hp-steps::before { display: none; } }

/* ---------- pricing ---------- */
.hp-toggle { display: inline-flex; padding: 4px; border-radius: 14px; background: var(--hp-bg-3); border: 1px solid var(--hp-line); gap: 4px; margin-top: 26px; }
.hp-toggle button { border: 0; background: transparent; padding: 9px 18px; border-radius: 11px; font: inherit; font-weight: 700; font-size: 14px; color: var(--hp-muted); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; }
.hp-toggle button.on { background: #fff; color: var(--hp-ink); box-shadow: var(--hp-shadow); }
.hp-toggle em { font-style: normal; font-size: 11px; color: var(--hp-brand); background: var(--hp-brand-100); padding: 2px 7px; border-radius: 99px; }
.hp-plans { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; align-items: stretch; }
.hp-plan { position: relative; display: flex; flex-direction: column; padding: 28px 24px; border-radius: 22px; background: #fff; border: 1px solid var(--hp-line); }
.hp-plan.pop { border: 2px solid var(--hp-brand-2); box-shadow: 0 24px 50px -24px rgba(21,128,61,.45); background: linear-gradient(180deg, var(--hp-brand-50), #fff 35%); }
.hp-plan .rib { position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--hp-grad); color: #fff; font-size: 12px; font-weight: 800; padding: 4px 14px; border-radius: 99px; white-space: nowrap; }
.hp-plan h3 { font-size: 19px; font-weight: 800; }
.hp-plan .tag { font-size: 13px; color: var(--hp-muted); margin-top: 4px !important; min-height: 40px; }
.hp-price { margin-top: 14px; display: flex; align-items: baseline; gap: 4px; }
.hp-price b { font-size: 40px; font-weight: 800; letter-spacing: -.03em; }
.hp-price span { color: var(--hp-muted); font-weight: 600; }
.hp-plan .note { font-size: 12.5px; color: var(--hp-muted); min-height: 20px; }
.hp-plan .save { display: inline-block; font-size: 12px; font-weight: 800; color: var(--hp-brand); background: var(--hp-brand-50); border: 1px solid var(--hp-brand-100); padding: 1px 9px; border-radius: 99px; margin-top: 4px; }
.hp-plan ul { list-style: none; padding: 0; margin: 20px 0 24px; display: grid; gap: 10px; flex: 1; font-size: 14px; color: var(--hp-ink-2); }
.hp-plan li { display: flex; gap: 9px; align-items: flex-start; }
.hp-plan li .hp-svg { margin-top: 3px; color: var(--hp-brand-2); }
.hp-plan li.off { color: var(--hp-faint); }
.hp-plan li.off .hp-svg { color: var(--hp-faint); }
.hp-plan .hp-btn { width: 100%; }
.hp-trial-note { margin: 28px auto 0; max-width: 760px; display: flex; align-items: center; gap: 14px; padding: 16px 20px; border-radius: 16px; color: #fff; background: linear-gradient(90deg, #fbbf24, #f97316 50%, #f43f5e); box-shadow: 0 14px 30px -16px rgba(244,63,94,.6); }
.hp-trial-note .ic { width: 42px; height: 42px; border-radius: 12px; background: rgba(255,255,255,.22); display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.hp-trial-note b { font-size: 16px; }
.hp-trial-note .hp-btn { margin-left: auto; background: #fff; color: #c2410c !important; height: 42px; }
@media (max-width: 1080px) { .hp-plans { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 620px) { .hp-plans { grid-template-columns: 1fr; } .hp-trial-note { flex-wrap: wrap; } .hp-trial-note .hp-btn { width: 100%; margin-left: 0; } }

/* comparison table */
.hp-table-wrap { overflow-x: auto; border-radius: 20px; border: 1px solid var(--hp-line); background: #fff; }
.hp-table { width: 100%; border-collapse: collapse; font-size: 14.5px; min-width: 760px; }
.hp-table th, .hp-table td { padding: 14px 18px; border-bottom: 1px solid var(--hp-bg-3); text-align: center; }
.hp-table th:first-child, .hp-table td:first-child { text-align: left; }
.hp-table thead th { background: var(--hp-bg-2); font-size: 15px; }
.hp-table thead th small { display: block; color: var(--hp-muted); font-weight: 600; font-size: 12.5px; }
.hp-table .grp td { background: var(--hp-bg-2); font-weight: 800; font-size: 12.5px; color: var(--hp-muted); letter-spacing: .04em; }
.hp-table .pro { background: rgba(240,253,244,.7); }
.hp-table .yes { color: var(--hp-brand-2); }
.hp-table .no { color: #cbd5d1; }

/* ---------- trust / quote ---------- */
.hp-trust { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hp-trust div { padding: 22px; border-radius: 18px; background: #fff; border: 1px solid var(--hp-line); display: flex; gap: 14px; }
.hp-trust .ic { width: 44px; height: 44px; flex-shrink: 0; border-radius: 13px; display: grid; place-items: center; font-size: 21px; color: var(--hp-brand); background: var(--hp-brand-50); }
.hp-trust h4 { font-size: 16px; font-weight: 800; }
.hp-trust p { font-size: 14px; color: var(--hp-muted); margin-top: 4px !important; }
.hp-quote { margin-top: 26px; padding: 30px; border-radius: 22px; background: #fff; border: 1px solid var(--hp-line); text-align: center; }
.hp-quote .stars { color: #f59e0b; letter-spacing: 3px; font-size: 18px; }
.hp-quote blockquote { margin: 10px 0 8px; font-size: 20px; font-weight: 700; letter-spacing: -.01em; }
.hp-quote cite { color: var(--hp-muted); font-style: normal; font-size: 14px; }
@media (max-width: 860px) { .hp-trust { grid-template-columns: 1fr; } }

/* ---------- faq ---------- */
.hp-faq { max-width: 860px; margin: 0 auto; display: grid; gap: 12px; }
.hp-faq details { border-radius: 16px; border: 1px solid var(--hp-line); background: #fff; transition: border-color .2s, box-shadow .2s; }
.hp-faq details[open] { border-color: var(--hp-brand-200); box-shadow: var(--hp-shadow); }
.hp-faq summary { list-style: none; cursor: pointer; padding: 18px 22px; display: flex; align-items: center; gap: 12px; font-weight: 700; font-size: 16px; }
.hp-faq summary::-webkit-details-marker { display: none; }
.hp-faq summary::after { content: '+'; margin-left: auto; width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; background: var(--hp-brand-50); color: var(--hp-brand); font-size: 20px; font-weight: 600; flex-shrink: 0; transition: transform .2s; }
.hp-faq details[open] summary::after { transform: rotate(45deg); }
.hp-faq details p { padding: 0 22px 20px; color: var(--hp-ink-2); }

/* ---------- final cta ---------- */
.hp-final { position: relative; overflow: hidden; text-align: center; border-radius: 32px; padding: 72px 28px; color: #fff; background: radial-gradient(100% 160% at 50% 0%, #22c55e 0%, #15803d 40%, #0b2e1c 100%); }
.hp-final::before, .hp-final::after { content: ''; position: absolute; border-radius: 50%; border: 50px solid rgba(255,255,255,.05); }
.hp-final::before { width: 380px; height: 380px; left: -140px; top: -160px; }
.hp-final::after { width: 460px; height: 460px; right: -160px; bottom: -220px; }
.hp-final > * { position: relative; z-index: 1; }
.hp-final h2 { font-size: clamp(28px, 4vw, 46px); font-weight: 800; letter-spacing: -.025em; line-height: 1.2; }
.hp-final p { opacity: .88; font-size: 17px; margin: 14px auto 0 !important; max-width: 620px; }
.hp-final .hp-cta-row { justify-content: center; }

/* ---------- footer ---------- */
.hp-footer { background: #07150e; color: #b4c3bb; padding: 70px 0 30px; margin-top: 96px; }
.hp-foot-grid { display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 40px; }
.hp-footer .hp-logo { color: #fff; }
.hp-footer .hp-logo b { color: #4ade80; }
.hp-footer p.d { margin-top: 14px !important; font-size: 14px; max-width: 320px; }
.hp-footer h5 { margin: 0 0 14px; color: #fff; font-size: 14px; font-weight: 800; letter-spacing: .04em; }
.hp-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; font-size: 14px; }
.hp-footer a:hover { color: #4ade80; }
.hp-foot-bottom { margin-top: 48px; padding-top: 22px; border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; font-size: 13px; }
@media (max-width: 860px) { .hp-foot-grid { grid-template-columns: 1fr 1fr; } .hp-foot-grid > div:first-child { grid-column: 1 / -1; } }

/* ---------- page hero (หน้ารอง) ---------- */
.hp-page-hero { position: relative; overflow: hidden; padding: 64px 0 56px; text-align: center; background: radial-gradient(800px 400px at 50% 0%, rgba(34,197,94,.16), transparent 70%), var(--hp-bg-2); border-bottom: 1px solid var(--hp-line); }
.hp-page-hero h1 { font-size: clamp(32px, 4.6vw, 52px); font-weight: 800; letter-spacing: -.03em; line-height: 1.15; margin-top: 14px; }
.hp-page-hero p { color: var(--hp-muted); font-size: 17px; margin: 14px auto 0 !important; max-width: 640px; }

/* ---------- contact ---------- */
.hp-contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: 28px; align-items: start; }
.hp-channel { display: flex; gap: 14px; align-items: center; padding: 18px; border-radius: 18px; background: #fff; border: 1px solid var(--hp-line); transition: border-color .2s, transform .2s; }
.hp-channel + .hp-channel { margin-top: 12px; }
.hp-channel:hover { border-color: var(--hp-brand-200); transform: translateY(-2px); }
.hp-channel .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; flex-shrink: 0; }
.hp-channel b { display: block; }
.hp-channel small { color: var(--hp-muted); }
.hp-form { padding: 30px; border-radius: 22px; background: #fff; border: 1px solid var(--hp-line); box-shadow: var(--hp-shadow); }
.hp-form label { display: block; font-weight: 700; font-size: 13.5px; margin-bottom: 6px; color: var(--hp-ink-2); }
.hp-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.hp-form .f { margin-bottom: 14px; }
.hp-input { width: 100%; height: 48px; padding: 0 14px; border-radius: 12px; border: 1px solid #d5ddd9; background: #fff; font: inherit; font-size: 15px; color: var(--hp-ink); transition: border-color .15s, box-shadow .15s; }
textarea.hp-input { height: auto; padding: 12px 14px; resize: vertical; min-height: 130px; }
.hp-input:focus { outline: none; border-color: var(--hp-brand-3); box-shadow: 0 0 0 4px rgba(34,197,94,.15); }
.hp-ok { display: none; text-align: center; padding: 40px 10px; }
.hp-ok .ic { width: 64px; height: 64px; margin: 0 auto 14px; border-radius: 50%; display: grid; place-items: center; background: var(--hp-brand-50); color: var(--hp-brand); font-size: 30px; }
@media (max-width: 860px) { .hp-contact { grid-template-columns: 1fr; } .hp-form .row2 { grid-template-columns: 1fr; } }

/* ---------- reveal on scroll ---------- */
.hp-reveal { opacity: 0; transform: translateY(18px); transition: opacity .7s ease, transform .7s ease; }
.hp-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) { .hp-reveal { opacity: 1; transform: none; } .hp-float { animation: none; } html { scroll-behavior: auto; } }
.hp-nowrap { white-space: nowrap; }

/* ===== หน้าเอกสาร (คู่มือ / ข้อตกลง / นโยบาย) ===== */
.hp-meta { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 22px; }
.hp-meta span { display: inline-flex; align-items: center; gap: 7px; font-size: 13.5px; font-weight: 600; color: var(--hp-ink-2); background: #fff; border: 1px solid var(--hp-line); padding: 6px 14px; border-radius: 99px; }
.hp-meta svg { width: 15px; height: 15px; color: var(--hp-brand); }
.hp-doc { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; padding: 56px 0 96px; align-items: start; }
.hp-toc { position: sticky; top: 92px; max-height: calc(100vh - 112px); overflow: auto; padding-right: 6px; }
.hp-toc h4 { font-size: 12px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--hp-faint); margin: 0 0 10px 12px; }
.hp-toc ol { list-style: none; margin: 0 0 18px; padding: 0; }
.hp-toc a { display: flex; gap: 10px; align-items: baseline; padding: 7px 12px; border-radius: 10px; font-size: 14px; font-weight: 600; color: var(--hp-muted); border-left: 2px solid transparent; transition: background .15s, color .15s; line-height: 1.5; }
.hp-toc a small { font-size: 11.5px; color: var(--hp-faint); font-weight: 700; min-width: 18px; }
.hp-toc a:hover { color: var(--hp-ink); background: var(--hp-bg-2); }
.hp-toc a.on { color: var(--hp-brand); background: var(--hp-brand-50); border-left-color: var(--hp-brand); }
.hp-toc a.on small { color: var(--hp-brand); }
.hp-toc-box { margin-top: 8px; padding: 16px; border-radius: 16px; background: var(--hp-bg-2); border: 1px solid var(--hp-line); font-size: 13.5px; color: var(--hp-muted); line-height: 1.6; }
.hp-toc-box b { display: block; color: var(--hp-ink); margin-bottom: 4px; }
.hp-toc-box .hp-btn { height: 38px; font-size: 13.5px; margin-top: 12px; width: 100%; }
.hp-toc-m { display: none; }

.hp-article { min-width: 0; color: var(--hp-ink-2); font-size: 16px; line-height: 1.85; }
.hp-article > section { scroll-margin-top: 96px; padding-bottom: 40px; margin-bottom: 40px; border-bottom: 1px solid var(--hp-line); }
.hp-article > section:last-of-type { border-bottom: 0; }
.hp-article h2 { display: flex; align-items: center; gap: 14px; font-size: clamp(22px, 2.4vw, 28px); font-weight: 800; letter-spacing: -.02em; color: var(--hp-ink); line-height: 1.3; margin: 0 0 6px; }
.hp-article h2 .n { flex-shrink: 0; width: 42px; height: 42px; border-radius: 13px; display: grid; place-items: center; font-size: 15px; font-weight: 800; color: var(--hp-brand); background: var(--hp-brand-50); border: 1px solid var(--hp-brand-100); }
.hp-article h2 .n svg { width: 20px; height: 20px; }
.hp-article .sub { color: var(--hp-muted); margin: 0 0 18px 56px; font-size: 15px; }
.hp-article h3 { font-size: 17.5px; font-weight: 800; color: var(--hp-ink); margin: 26px 0 8px; }
.hp-article p { margin: 0 0 12px; }
.hp-article ul, .hp-article ol.list { margin: 0 0 14px; padding-left: 22px; }
.hp-article li { margin: 4px 0; }
.hp-article li::marker { color: var(--hp-brand-2); }
.hp-article b, .hp-article strong { color: var(--hp-ink); }
.hp-article a:not(.hp-btn) { color: var(--hp-brand); font-weight: 600; text-decoration: underline; text-decoration-color: var(--hp-brand-200); text-underline-offset: 3px; }
.hp-article code, .hp-article kbd { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .86em; padding: 2px 7px; border-radius: 7px; background: var(--hp-bg-3); color: var(--hp-brand-ink); }
.hp-article kbd { border: 1px solid var(--hp-line); border-bottom-width: 2px; background: #fff; color: var(--hp-ink); }
.hp-ui { display: inline-block; font-weight: 700; font-size: .92em; color: var(--hp-brand-ink); background: var(--hp-brand-50); border: 1px solid var(--hp-brand-100); padding: 0 8px; border-radius: 7px; line-height: 1.7; }

.hp-note { display: flex; gap: 12px; padding: 14px 18px; border-radius: 14px; margin: 16px 0; font-size: 15px; line-height: 1.7; background: #eff6ff; border: 1px solid #dbeafe; color: #1e3a8a; }
.hp-note svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 3px; }
.hp-note b { color: inherit; }
.hp-note.ok { background: var(--hp-brand-50); border-color: var(--hp-brand-100); color: var(--hp-brand-ink); }
.hp-note.warn { background: #fffbeb; border-color: #fde68a; color: #78350f; }
.hp-note.lead { background: var(--hp-bg-2); border-color: var(--hp-line); color: var(--hp-ink-2); font-size: 16px; }

.hp-dtable { width: 100%; border-collapse: separate; border-spacing: 0; margin: 14px 0 18px; font-size: 14.5px; border: 1px solid var(--hp-line); border-radius: 14px; overflow: hidden; line-height: 1.6; }
.hp-dtable th { text-align: left; background: var(--hp-bg-2); color: var(--hp-ink); font-weight: 700; padding: 11px 14px; border-bottom: 1px solid var(--hp-line); white-space: nowrap; }
.hp-dtable td { padding: 11px 14px; border-bottom: 1px solid var(--hp-bg-3); vertical-align: top; }
.hp-dtable tr:last-child td { border-bottom: 0; }
.hp-dtable td:first-child { font-weight: 700; color: var(--hp-ink); }
.hp-dtable .req, .hp-dtable .opt { display: inline-block; font-size: 11px; font-weight: 700; padding: 1px 7px; border-radius: 99px; margin-left: 6px; vertical-align: 1px; white-space: nowrap; }
.hp-dtable .req { background: #fef2f2; color: #b91c1c; }
.hp-dtable .opt { background: var(--hp-bg-3); color: var(--hp-muted); }
.hp-tscroll { overflow-x: auto; -webkit-overflow-scrolling: touch; }
.hp-tscroll .hp-dtable { min-width: 540px; }

.hp-dsteps { list-style: none; counter-reset: s; margin: 14px 0 18px; padding: 0; display: grid; gap: 12px; }
.hp-dsteps li { counter-increment: s; position: relative; padding: 14px 18px 14px 62px; border: 1px solid var(--hp-line); border-radius: 14px; background: #fff; margin: 0; line-height: 1.7; }
.hp-dsteps li::before { content: counter(s); position: absolute; left: 16px; top: 14px; width: 32px; height: 32px; border-radius: 10px; background: var(--hp-grad); color: #fff; font-weight: 800; font-size: 14px; display: grid; place-items: center; }
.hp-dsteps li b { display: block; }
.hp-dsteps .tag { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; background: var(--hp-bg-3); color: var(--hp-muted); margin-left: 6px; white-space: nowrap; }

.hp-shot { margin: 18px 0 22px; border-radius: 16px; overflow: hidden; border: 1px solid var(--hp-line); box-shadow: var(--hp-shadow); background: var(--hp-bg-2); }
.hp-shot figcaption { font-size: 13px; color: var(--hp-muted); padding: 10px 16px; background: #fff; border-top: 1px solid var(--hp-line); }
.hp-shot.phone { max-width: 280px; border-radius: 30px; border: 8px solid #0b1b13; margin-left: auto; margin-right: auto; }
.hp-shot-pair { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 22px; align-items: center; }

.hp-cards2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin: 14px 0 18px; }
.hp-mini { padding: 16px 18px; border: 1px solid var(--hp-line); border-radius: 14px; background: #fff; font-size: 14.5px; line-height: 1.7; }
.hp-mini b { display: flex; align-items: center; gap: 8px; margin-bottom: 4px; font-size: 15px; }
.hp-mini b svg { width: 18px; height: 18px; color: var(--hp-brand); flex-shrink: 0; }
.hp-formula { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 14px; background: #0b1b13; color: #bbf7d0; border-radius: 14px; padding: 16px 20px; margin: 12px 0 18px; line-height: 1.9; overflow-x: auto; white-space: nowrap; }
.hp-contact-card { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.hp-article .hp-contact-card a { display: block; padding: 14px 16px; border: 1px solid var(--hp-line); border-radius: 14px; text-decoration: none; color: var(--hp-ink); font-weight: 700; font-size: 14.5px; line-height: 1.5; }
.hp-contact-card a small { display: block; color: var(--hp-muted); font-weight: 500; font-size: 12.5px; }
.hp-article .hp-contact-card a:hover { border-color: var(--hp-brand-200); background: var(--hp-brand-50); }
.hp-doc-end { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; padding: 22px 24px; border-radius: 18px; background: var(--hp-bg-2); border: 1px solid var(--hp-line); }
.hp-doc-end p { margin: 0 !important; font-size: 14.5px; flex: 1 1 280px; }

@media (max-width: 980px) {
  .hp-doc { grid-template-columns: 1fr; gap: 0; padding-top: 28px; }
  .hp-toc { display: none; }
  .hp-toc-m { display: block; margin-bottom: 28px; border: 1px solid var(--hp-line); border-radius: 14px; background: #fff; }
  .hp-toc-m summary { list-style: none; cursor: pointer; padding: 14px 18px; font-weight: 700; display: flex; align-items: center; gap: 10px; }
  .hp-toc-m summary::-webkit-details-marker { display: none; }
  .hp-toc-m summary svg { width: 18px; height: 18px; color: var(--hp-brand); }
  .hp-toc-m ol { list-style: none; margin: 0; padding: 0 10px 12px; columns: 2; column-gap: 8px; }
  .hp-toc-m a { display: block; padding: 7px 10px; border-radius: 9px; font-size: 14px; font-weight: 600; color: var(--hp-ink-2); break-inside: avoid; }
  .hp-toc-m a:hover { background: var(--hp-brand-50); color: var(--hp-brand); }
  .hp-shot-pair { grid-template-columns: 1fr; }
}
@media (max-width: 620px) {
  .hp-article { font-size: 15.5px; }
  .hp-article .sub { margin-left: 0; }
  .hp-cards2, .hp-contact-card { grid-template-columns: 1fr; }
  .hp-toc-m ol { columns: 1; }
  .hp-dtable { font-size: 13.5px; }
  .hp-dtable th, .hp-dtable td { padding: 9px 10px; }
  .hp-dsteps li { padding-left: 56px; }
  .hp-dsteps li::before { left: 12px; }
}
@media print {
  .hp-nav, .hp-toc, .hp-toc-m, .hp-footer, .hp-noprint { display: none !important; }
  .hp-page-hero { padding: 0 0 16px; background: none; border: 0; }
  .hp-doc { display: block; padding: 0; }
  .hp-article > section { padding-bottom: 16px; margin-bottom: 16px; }
  .hp-shot, .hp-note, .hp-dtable { break-inside: avoid; box-shadow: none; }
}
