/* Pointie for business — landing page */
:root {
  --bg: #FFF8F2; --surface: #FFFFFF; --soft: #FFEBDD; --ink: #2B1A10; --muted: #7A5A47; --line: #F1DCCB;
  --primary: #FF6B1A; --primary-2: #FF7A2E; --accent: #C2410C; --dark: #0B0B0B; --dark-2: #161616; --dark-line: #2A2A2A;
  --on-dark: #F7F7F7; --on-dark-muted: #A9A9A9; --gold: #FFC83D; --teal: #0E8A7A; --violet: #6D4AFF;
  --radius: 22px;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 110px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 16px/1.6 'IBM Plex Sans Thai', system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
[hidden] { display: none !important; }
.wrap { width: min(1160px, 100% - 40px); margin: 0 auto; }
.muted { color: var(--muted); }
em { font-style: normal; color: var(--primary); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 20px; border-radius: 14px; font-weight: 700; font-size: 15px; text-decoration: none; border: 1px solid transparent; transition: transform .15s, background .2s, box-shadow .2s; white-space: nowrap; }
.btn:hover { transform: translateY(-1px); }
.btn.primary { background: var(--primary); color: #fff; box-shadow: 0 10px 24px rgba(255,107,26,.3); }
.btn.primary:hover { background: #F25A08; }
.btn.ghost { background: var(--surface); color: var(--ink); border-color: var(--line); }
.btn.ghost.on-dark { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.25); }
.btn.sm { height: 38px; padding: 0 14px; font-size: 14px; border-radius: 11px; }
.btn.lg { height: 54px; padding: 0 26px; font-size: 16px; border-radius: 16px; }
.cta-row { display: flex; gap: 12px; flex-wrap: wrap; }

/* nav */
.nav { position: sticky; top: 0; z-index: 30; background: rgba(11,11,11,.82); backdrop-filter: saturate(150%) blur(12px); border-bottom: 1px solid rgba(255,255,255,.06); color: var(--on-dark); }
.nav-in { display: flex; align-items: center; gap: 20px; height: 64px; }
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; text-decoration: none; }
.brand img { width: 30px; height: 30px; border-radius: 9px; }
.brand span { font-size: 12px; font-weight: 600; color: var(--primary-2); padding: 2px 8px; border-radius: 999px; background: rgba(255,122,46,.14); }
.brand.small { font-size: 16px; }
.links { display: flex; gap: 22px; margin-left: 12px; font-size: 14px; font-weight: 600; }
.links a { text-decoration: none; color: var(--on-dark-muted); }
.links a:hover { color: var(--on-dark); }
.nav-cta { display: flex; gap: 8px; margin-left: auto; }
.nav .btn.ghost { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.2); }

/* hero */
.hero { position: relative; overflow: hidden; background: var(--dark); color: var(--on-dark); padding: 72px 0 96px; }
.hero .glow { position: absolute; right: -10%; top: -20%; width: 900px; height: 900px; border-radius: 50%; background: radial-gradient(circle, rgba(255,122,46,.32), rgba(255,122,46,0) 62%); pointer-events: none; }
.hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.eyebrow { display: inline-block; font-size: 13px; font-weight: 700; letter-spacing: .02em; color: var(--primary); margin-bottom: 14px; }
.hero .eyebrow { color: var(--primary-2); padding: 5px 12px; border-radius: 999px; background: rgba(255,122,46,.12); border: 1px solid rgba(255,122,46,.25); }
.hero h1 { font-size: clamp(40px, 5.6vw, 68px); line-height: 1.12; font-weight: 700; letter-spacing: -.01em; }
.hero h1 em { font-family: 'Kanit', sans-serif; font-style: italic; font-weight: 800; color: var(--gold); display: inline-block; transform: rotate(-2deg); }
.lead { margin-top: 20px; font-size: 18px; color: #D6D6D6; max-width: 34em; }
.hero .cta-row { margin-top: 30px; }
.hero .btn.ghost { background: transparent; color: var(--on-dark); border-color: rgba(255,255,255,.25); }
.ticks { list-style: none; padding: 0; margin: 26px 0 0; display: flex; gap: 20px; flex-wrap: wrap; font-size: 14px; color: var(--on-dark-muted); }
.ticks li::before { content: '✓'; color: var(--primary-2); font-weight: 700; margin-right: 6px; }
.hero-visual { position: relative; height: 560px; }
.phone { position: absolute; margin: 0; width: 250px; border-radius: 34px; overflow: hidden; border: 8px solid #1f1f1f; box-shadow: 0 30px 80px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.06); background: #000; }
.phone img { width: 100%; height: auto; }
.phone.p1 { left: 4%; top: 30px; transform: rotate(-6deg); }
.phone.p2 { right: 2%; top: 0; transform: rotate(4deg); z-index: 2; }
.hero .mascot { position: absolute; left: 34%; bottom: -10px; width: 170px; z-index: 3; filter: drop-shadow(0 16px 30px rgba(0,0,0,.5)); animation: bob 3s ease-in-out infinite; }
@keyframes bob { 50% { transform: translateY(-10px); } }

/* live stats */
.live { background: var(--dark-2); color: var(--on-dark); border-top: 1px solid var(--dark-line); padding: 26px 0; }
.live-title { display: flex; align-items: center; gap: 10px; font-weight: 700; margin-bottom: 14px; flex-wrap: wrap; }
.live-title small { font-weight: 500; color: var(--on-dark-muted); font-size: 13px; }
.live-title .dot { width: 9px; height: 9px; border-radius: 50%; background: #4CC38A; box-shadow: 0 0 0 0 rgba(76,195,138,.6); animation: pulse 2s infinite; }
@keyframes pulse { 70% { box-shadow: 0 0 0 10px rgba(76,195,138,0); } 100% { box-shadow: 0 0 0 0 rgba(76,195,138,0); } }
.live-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; }
.live-grid div { padding: 16px 18px; border-radius: 16px; background: #0f0f0f; border: 1px solid var(--dark-line); }
.live-grid b { display: block; font-size: 34px; line-height: 1.1; font-variant-numeric: tabular-nums; color: var(--primary-2); }
.live-grid span { font-size: 14px; color: var(--on-dark-muted); }

/* product facts */
.facts { background: var(--surface); border-bottom: 1px solid var(--line); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.facts-grid div { padding: 30px 22px; border-left: 1px solid var(--line); display: flex; flex-direction: column; gap: 6px; }
.facts-grid div:first-child { border-left: 0; }
.facts-grid b { font-size: 44px; line-height: 1; font-weight: 700; color: var(--primary); font-variant-numeric: tabular-nums; }
.facts-grid span { font-size: 14px; color: var(--muted); line-height: 1.5; }

/* sections */
.sec { padding: 88px 0; }
.sec.alt { background: #FFF1E6; }
.sec.dark { background: var(--dark); color: var(--on-dark); }
.h2 { font-size: clamp(28px, 3.6vw, 42px); line-height: 1.25; font-weight: 700; margin-bottom: 36px; letter-spacing: -.01em; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
.grid4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 10px; }
.card h3 { font-size: 19px; }
.card p, .feat p { color: var(--muted); font-size: 15px; }
.card .ic { width: 46px; height: 46px; border-radius: 14px; background: var(--soft); color: var(--accent); display: flex; align-items: center; justify-content: center; }
.feat { padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); display: flex; flex-direction: column; gap: 8px; border-top: 3px solid var(--primary); }
.feat h3 { font-size: 17px; }

/* steps */
.steps { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.steps li { display: flex; flex-direction: column; gap: 10px; }
.steps b { font-size: 18px; }
.steps p { color: var(--muted); font-size: 15px; }
.step-img { height: 240px; border-radius: var(--radius); overflow: hidden; background: var(--dark); border: 1px solid var(--line); }
.step-img img { width: 100%; height: 100%; object-fit: cover; object-position: top; }
.step-img.stand { display: flex; align-items: center; justify-content: center; background: linear-gradient(160deg, #2a1a10, #0b0b0b); }
.stand-box { width: 190px; padding: 18px 16px; border-radius: 18px; background: #fff; color: #2B1A10; display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; font-size: 12px; font-weight: 600; box-shadow: 0 20px 40px rgba(0,0,0,.45); transform: rotate(-3deg); }
.stand-box img { width: 54px; height: 54px; border-radius: 50%; }
.stand-box .qr { width: 86px; height: 86px; border-radius: 8px; background:
  conic-gradient(from 90deg at 30% 30%, #000 25%, #fff 0) 0 0 / 14px 14px, #fff; border: 6px solid #000; }

/* metrics */
.metrics { display: grid; grid-template-columns: .9fr 1.1fr; gap: 48px; align-items: center; }
.metrics .eyebrow { color: var(--primary-2); }
.metrics .h2 { margin-bottom: 24px; }
.metrics em { color: var(--gold); }
.mlist { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 14px; }
.mlist li { display: flex; flex-direction: column; padding-left: 16px; border-left: 3px solid var(--primary-2); }
.mlist b { font-size: 16px; }
.mlist span { color: var(--on-dark-muted); font-size: 14px; }
.shot { margin: 0; }
.shot img { border-radius: 18px; border: 1px solid var(--dark-line); box-shadow: 0 30px 70px rgba(0,0,0,.6); }
.shot figcaption { margin-top: 10px; font-size: 12px; color: var(--on-dark-muted); text-align: right; }

/* calculator */
.calc { display: grid; grid-template-columns: .8fr 1.2fr; gap: 48px; align-items: start; }
.calc .h2 { margin-bottom: 16px; }
.calc-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; box-shadow: 0 20px 50px rgba(120,60,20,.08); }
.calc-box label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.calc-box input[type=number] { height: 46px; border-radius: 12px; border: 1px solid var(--line); padding: 0 12px; font: inherit; font-size: 16px; color: var(--ink); background: var(--bg); width: 100%; }
.calc-box input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.calc-box input[type=range] { width: 100%; accent-color: var(--primary); height: 28px; }
.calc-box .full { grid-column: 1 / -1; }
.calc-box b#liftOut { color: var(--primary); }
.calc-out { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.calc-out div { padding: 14px 16px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); display: flex; flex-direction: column; }
.calc-out span { font-size: 12px; color: var(--muted); font-weight: 600; }
.calc-out b { font-size: 24px; font-variant-numeric: tabular-nums; }
.calc-out .net { background: var(--primary); border-color: var(--primary); color: #fff; }
.calc-out .net span { color: rgba(255,255,255,.85); }
.fine { font-size: 12px; color: var(--muted); line-height: 1.5; }

/* screens */
.screens { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.screens figure { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.screens img { border-radius: 26px; border: 6px solid #1f1f1f; box-shadow: 0 20px 40px rgba(43,26,16,.18); }
.screens figcaption { text-align: center; font-weight: 600; font-size: 14px; }

/* faq */
.faq { max-width: 820px; }
.faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 20px; margin-bottom: 10px; }
.faq summary { cursor: pointer; padding: 18px 0; font-weight: 700; list-style: none; display: flex; justify-content: space-between; gap: 12px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: '+'; color: var(--primary); font-size: 22px; line-height: 1; }
.faq details[open] summary::after { content: '–'; }
.faq details p { padding: 0 0 18px; color: var(--muted); }

/* final */
.final { background: var(--dark); color: var(--on-dark); padding: 72px 0; }
.final-in { display: flex; align-items: center; gap: 36px; }
.final-in img { width: 180px; flex: none; }
.final h2 { font-size: clamp(26px, 3.2vw, 38px); }
.final p { color: var(--on-dark-muted); margin: 10px 0 22px; max-width: 40em; }
.foot { background: #050505; color: var(--on-dark-muted); font-size: 14px; padding: 24px 0 calc(24px + env(safe-area-inset-bottom)); }
.foot-in { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.foot .brand { color: var(--on-dark); }
.foot nav { margin-left: auto; display: flex; gap: 18px; flex-wrap: wrap; }
.foot a { text-decoration: none; }
.foot a:hover { color: var(--on-dark); }

/* reveal on scroll */
.reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.reveal.in { opacity: 1; transform: none; }

/* responsive */
@media (max-width: 1000px) {
  .links { display: none; }
  .hero-in, .metrics, .calc { grid-template-columns: 1fr; }
  .hero-visual { height: 470px; max-width: 520px; width: 100%; margin: 0 auto; }
  .grid4, .screens { grid-template-columns: repeat(2, 1fr); }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .facts-grid div:nth-child(3) { border-left: 0; }
  .facts-grid div:nth-child(n+3) { border-top: 1px solid var(--line); }
}
@media (max-width: 720px) {
  .wrap { width: calc(100% - 32px); }
  .nav-cta .ghost { display: none; }
  .hero { padding: 44px 0 60px; }
  .lead { font-size: 16px; }
  .hero-visual { height: 400px; }
  .phone { width: 190px; border-width: 6px; border-radius: 26px; }
  .hero .mascot { width: 120px; left: 30%; }
  .grid3, .steps { grid-template-columns: 1fr; }
  .sec { padding: 60px 0; }
  .calc-box { grid-template-columns: 1fr 1fr; padding: 18px; }
  .calc-out { grid-template-columns: 1fr; }
  .final-in { flex-direction: column; text-align: center; }
  .final .cta-row { justify-content: center; }
  .final-in img { width: 130px; }
  .facts-grid b { font-size: 36px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .reveal { opacity: 1; transform: none; }
}

/* sign-up request dialog */
.apply { width: min(520px, calc(100% - 24px)); max-height: calc(100dvh - 24px); padding: 0; border: 0; border-radius: 24px; background: var(--surface); color: var(--ink); box-shadow: 0 40px 100px rgba(0,0,0,.45); }
.apply::backdrop { background: rgba(11,11,11,.6); backdrop-filter: blur(3px); }
.apply[open] { animation: pop .25s cubic-bezier(.2,1.2,.4,1); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.apply-form { position: relative; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.apply .x { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border-radius: 50%; border: 0; background: var(--soft); color: var(--accent); font-size: 22px; line-height: 1; cursor: pointer; }
.apply-head { display: flex; gap: 12px; align-items: center; padding-right: 40px; }
.apply-head img { width: 52px; height: 52px; border-radius: 50%; flex: none; }
.apply-head h2 { font-size: 22px; }
.apply-head p { color: var(--muted); font-size: 14px; }
.apply label { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; color: var(--muted); }
.apply input:not([type=radio]):not([type=checkbox]) { height: 46px; border-radius: 12px; border: 1px solid var(--line); background: var(--bg); padding: 0 14px; font: inherit; font-size: 16px; color: var(--ink); width: 100%; }
.apply input:focus { outline: 2px solid var(--primary); outline-offset: 1px; }
.apply input.bad { border-color: #D93636; background: #FDECEC; }
.apply .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.types { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.types legend { font-size: 13px; font-weight: 600; color: var(--muted); padding: 0; margin-bottom: 6px; }
.types.bad legend { color: #D93636; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; flex-direction: row !important; }
.chip input { position: absolute; opacity: 0; pointer-events: none; }
.chip span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--bg); color: var(--ink); font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s; }
.chip input:checked + span { background: var(--primary); border-color: var(--primary); color: #fff; }
.chip input:focus-visible + span { outline: 2px solid var(--primary); outline-offset: 2px; }
.apply .consent { flex-direction: row; align-items: flex-start; gap: 10px; font-weight: 500; font-size: 13px; color: var(--muted); }
.apply .consent input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--primary); flex: none; }
.apply .consent.bad span { color: #D93636; }
.apply .hp { position: absolute; left: -9999px; width: 1px; height: 1px; opacity: 0; }
.apply .err { color: #D93636; font-size: 14px; font-weight: 600; }
.apply .btn.lg { width: 100%; }
.apply-done { padding: 34px 26px 26px; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 10px; }
.apply-done img { width: 150px; }
.apply-done p { color: var(--muted); margin-bottom: 10px; }
@media (max-width: 520px) { .apply .row2 { grid-template-columns: 1fr; } .apply-form { padding: 22px 18px; } }

/* announcement ticker (scrolling banner) */
.ticker { display: flex; overflow: hidden; height: 36px; align-items: center; background: linear-gradient(90deg, #FF6B1A, #FF8A3D 50%, #FF6B1A); color: #fff; text-decoration: none; font-size: 14px; white-space: nowrap; user-select: none;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); mask-image: linear-gradient(90deg, transparent, #000 4%, #000 96%, transparent); }
.tk-track { display: flex; flex: none; animation: ticker 38s linear infinite; }
.ticker:hover .tk-track, .ticker:focus-visible .tk-track { animation-play-state: paused; }
.tk-item { display: inline-flex; align-items: center; gap: 10px; padding-right: 10px; }
.tk-item img { width: 22px; height: 22px; border-radius: 50%; box-shadow: 0 0 0 2px rgba(255,255,255,.6); }
.tk-item b { font-weight: 700; }
.tk-item em { font-style: normal; font-weight: 700; color: #FFF3B0; }
.tk-sep { opacity: .7; margin: 0 6px; }
@keyframes ticker { from { transform: translateX(0); } to { transform: translateX(-100%); } }
@media (prefers-reduced-motion: reduce) {
  .ticker { justify-content: center; -webkit-mask-image: none; mask-image: none; }
  .tk-track { animation: none !important; }
  .tk-track + .tk-track, .tk-track .tk-item ~ .tk-item { display: none; }
}
@media (max-width: 720px) { .ticker { height: 32px; font-size: 13px; } .tk-track { animation-duration: 26s; } }
