/* =================================================================
   พร้อมลิงค์ — Premium landing page
   (loads after style.css; reuses its tokens & .btn/.nav/.container)
   ================================================================= */

.lp { overflow-x: clip; }

/* Animated gradient orbs in the background */
.orbs { position: fixed; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.orb { position: absolute; border-radius: 50%; opacity: .5; animation: orbFloat 18s ease-in-out infinite;
    will-change: transform; }
.orb.o1 { width: 700px; height: 700px; background: radial-gradient(circle, #0d9488 0%, #0d9488 34%, transparent 70%); top: -120px; left: -80px; }
.orb.o2 { width: 640px; height: 640px; background: radial-gradient(circle, #22d3ee 0%, #22d3ee 34%, transparent 70%); top: 200px; right: -100px; animation-delay: -6s; }
.orb.o3 { width: 580px; height: 580px; background: radial-gradient(circle, #2193b0 0%, #2193b0 34%, transparent 70%); bottom: -120px; left: 30%; animation-delay: -11s; }
@keyframes orbFloat { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(30px,-40px) scale(1.12); } }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(26px); transition: opacity .7s cubic-bezier(.2,.7,.2,1), transform .7s cubic-bezier(.2,.7,.2,1); }
.reveal.in { opacity: 1; transform: none; }
.reveal.d1 { transition-delay: .08s; } .reveal.d2 { transition-delay: .16s; }
.reveal.d3 { transition-delay: .24s; } .reveal.d4 { transition-delay: .32s; }

/* ---------------- Hero ---------------- */
.lp-hero { position: relative; padding: 70px 0 60px; }
.lp-hero-grid { display: grid; grid-template-columns: 1.05fr .95fr; gap: 56px; align-items: center; position: relative; z-index: 1; }
.lp-badge { display: inline-flex; align-items: center; gap: 8px; padding: 7px 15px; border-radius: 100px;
    font-size: 13px; font-weight: 600; background: rgba(13, 148, 136,.12); border: 1px solid rgba(13, 148, 136,.3); color: #c9bcff; margin-bottom: 22px; }
.lp-badge .live { width: 8px; height: 8px; border-radius: 50%; background: #2ec16e; box-shadow: 0 0 0 0 rgba(46,193,110,.6); animation: pulse 1.8s infinite; }
@keyframes pulse { 0% { box-shadow: 0 0 0 0 rgba(46,193,110,.55); } 70% { box-shadow: 0 0 0 10px rgba(46,193,110,0); } 100% { box-shadow: 0 0 0 0 rgba(46,193,110,0); } }
.lp-hero h1 { font-size: clamp(36px, 5.2vw, 60px); line-height: 1.08; font-weight: 800; letter-spacing: -.025em; }
.lp-hero h1 .grad { background: linear-gradient(110deg, #2dd4bf, #22d3ee 60%, #ffb347); -webkit-background-clip: text; background-clip: text; color: transparent; }
.lp-hero .lead { font-size: 18px; color: var(--text-muted); margin: 20px 0 26px; max-width: 480px; }

/* Username claim box */
.claim { display: flex; gap: 8px; background: var(--surface); border: 1px solid var(--border); border-radius: 14px;
    padding: 7px; max-width: 440px; transition: border-color .2s, box-shadow .2s; }
.claim:focus-within { border-color: var(--primary); box-shadow: 0 0 0 4px var(--primary-glow); }
.claim .pre { display: flex; align-items: center; padding-left: 12px; color: var(--text-muted); font-size: 15px; white-space: nowrap; }
.claim input { flex: 1; min-width: 0; border: 0; background: transparent; color: var(--text); font-size: 15px; font-family: inherit; outline: none; padding: 8px 4px; }
.claim button { white-space: nowrap; }
.claim-hint { font-size: 13px; margin-top: 10px; height: 18px; }
.claim-hint .ok { color: #6ee7a8; } .claim-hint .no { color: var(--text-muted); }

.lp-stats { display: flex; gap: 32px; margin-top: 34px; }
.lp-stats .n { font-size: 26px; font-weight: 800; }
.lp-stats .l { font-size: 13px; color: var(--text-muted); }
.lp-avatars { display: flex; align-items: center; gap: 12px; margin-top: 26px; }
.lp-avatars .stack { display: flex; }
.lp-avatars .stack span { width: 34px; height: 34px; border-radius: 50%; border: 2px solid var(--bg); margin-left: -10px;
    background-size: cover; background-position: center; display: grid; place-items: center; font-size: 15px; }
.lp-avatars .stack span:first-child { margin-left: 0; }
.lp-avatars small { color: var(--text-muted); font-size: 13px; }

/* iPhone 17 style device showing a live mockup iframe */
.device-wrap { position: relative; display: grid; place-items: center; }
.device { width: 300px; height: 612px; border-radius: 54px; padding: 11px; position: relative; z-index: 2;
    background: linear-gradient(150deg, #4a4a50 0%, #232327 38%, #1a1a1d 100%);
    box-shadow: 0 40px 90px rgba(0,0,0,.55), inset 0 0 0 1.5px rgba(255,255,255,.08), 0 0 0 1px rgba(0,0,0,.5);
    animation: deviceIn .8s cubic-bezier(.2,.8,.2,1) both; }
.device .screen { position: relative; width: 100%; height: 100%; border-radius: 44px; overflow: hidden; background: #000; }
.device .screen iframe { width: 100%; height: 100%; border: 0; display: block; transition: opacity .3s ease, transform .3s ease; }
.device.sliding .screen iframe { opacity: 0; transform: translateX(-18px); }

/* Carousel dots under the hero phone */
.hero-dots { display: flex; gap: 8px; justify-content: center; margin-top: 22px; }
.hero-dots button { width: 8px; height: 8px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
    background: var(--border); transition: width .25s, background .25s; }
.hero-dots button:hover { background: var(--text-muted); }
.hero-dots button.on { width: 24px; border-radius: 100px; background: linear-gradient(135deg, var(--primary), var(--accent)); }
/* Dynamic Island */
.device .island { position: absolute; top: 22px; left: 50%; transform: translateX(-50%); width: 96px; height: 28px;
    background: #000; border-radius: 100px; z-index: 5; box-shadow: inset 0 0 0 1px rgba(255,255,255,.06); }
.device .island::after { content: ''; position: absolute; right: 9px; top: 50%; transform: translateY(-50%);
    width: 9px; height: 9px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #2a3a52, #060a12);
    box-shadow: 0 0 0 1px rgba(120,160,200,.18); }
@keyframes deviceIn { from { opacity: 0; transform: translateY(30px) rotateX(8deg); } to { opacity: 1; transform: none; } }
.device.glow::after { content: ''; position: absolute; inset: -3px; border-radius: 54px; z-index: -1;
    background: linear-gradient(135deg, var(--primary), var(--accent)); filter: blur(24px); opacity: .5; }

/* Floating glass cards around the phone */
.float-card { position: absolute; z-index: 4; background: rgba(22,22,32,.84);
    border: 1px solid rgba(255,255,255,.1); border-radius: 16px; padding: 12px 15px; box-shadow: 0 16px 40px rgba(0,0,0,.4);
    display: flex; align-items: center; gap: 11px; animation: floaty 5s ease-in-out infinite; }
.float-card .fc-ic { width: 38px; height: 38px; border-radius: 11px; display: grid; place-items: center; font-size: 19px; flex-shrink: 0; }
.float-card b { font-size: 15px; display: block; line-height: 1.2; }
.float-card span { font-size: 12px; color: var(--text-muted); }
.fc-1 { top: 40px; left: -42px; animation-delay: -1s; }
.fc-2 { top: 230px; right: -54px; animation-delay: -2.5s; }
.fc-3 { bottom: 60px; left: -50px; animation-delay: -3.6s; }
@keyframes floaty { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-13px); } }
.mini-bars { display: flex; align-items: flex-end; gap: 3px; height: 26px; }
.mini-bars i { width: 5px; height: 100%; transform-origin: bottom; border-radius: 2px; background: linear-gradient(var(--primary), var(--accent)); animation: barGrow 1.4s ease-in-out infinite alternate; }
/* transform แทน height — height เปลี่ยน = เบราว์เซอร์ต้อง layout ใหม่ทุกเฟรม ตลอดเวลา */
@keyframes barGrow { from { transform: scaleY(.3); } to { transform: scaleY(1); } }

/* ---------------- Category marquee ---------------- */
.marquee { overflow: hidden; padding: 14px 0; -webkit-mask: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.mq-track { display: flex; gap: 12px; width: max-content; animation: scrollX 32s linear infinite; }
.marquee:hover .mq-track { animation-play-state: paused; }
@keyframes scrollX { to { transform: translateX(-50%); } }
.mq-chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 18px; border-radius: 100px; white-space: nowrap;
    background: var(--surface); border: 1px solid var(--border); font-weight: 600; font-size: 14px; color: var(--text-muted); }

/* ---------------- Interactive showcase ---------------- */
.showcase { padding: 80px 0; }
.sc-tabs { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 8px; margin-bottom: 34px; justify-content: flex-start; scrollbar-width: none; }
.sc-tabs::-webkit-scrollbar { display: none; }
.sc-tab { padding: 9px 16px; border-radius: 100px; border: 1px solid var(--border); background: var(--surface);
    color: var(--text-muted); font-weight: 600; font-size: 14px; white-space: nowrap; transition: all .15s; }
.sc-tab:hover { color: var(--text); transform: translateY(-2px); }
.sc-tab.active { background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; border-color: transparent; }
.sc-stage { display: grid; grid-template-columns: 320px 1fr; gap: 50px; align-items: center; }
.sc-info h3 { font-size: 28px; font-weight: 800; }
.sc-info .sc-cat { color: var(--primary); font-weight: 700; font-size: 14px; margin-bottom: 6px; }
.sc-info .sc-hi { margin: 22px 0 26px; display: flex; flex-direction: column; gap: 12px; }
.sc-info .sc-hi div { display: flex; align-items: center; gap: 11px; font-size: 15px; }
.sc-info .sc-hi .tick { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 13px;
    background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; flex-shrink: 0; }

/* ---------------- 3 Pillars ---------------- */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 22px; }
.pillar { padding: 32px 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
    text-align: center; transition: transform .2s, border-color .2s; }
.pillar:hover { transform: translateY(-5px); border-color: var(--primary); }
.pillar .pi { width: 66px; height: 66px; margin: 0 auto 16px; border-radius: 20px; display: grid; place-items: center; font-size: 32px;
    background: linear-gradient(135deg, rgba(13, 148, 136,.22), rgba(34, 211, 238,.16)); border: 1px solid var(--border); }
.pillar h3 { font-size: 20px; margin-bottom: 8px; }
.pillar p { color: var(--text-muted); font-size: 15px; }

/* ---------------- AI teaser band ---------------- */
.ai-band { position: relative; overflow: hidden; border-radius: 28px; padding: 60px 32px; text-align: center;
    background: linear-gradient(135deg, #0b7268 0%, #0d9488 45%, #22d3ee 100%); box-shadow: 0 24px 70px rgba(13, 148, 136,.35); }
.ai-band > * { position: relative; z-index: 1; }
/* ลูกแก้วตกแต่ง — selector ต้องชนะ .ai-band > * ไม่งั้นกลายเป็นบล็อกจริงดันเนื้อหา (เกิดช่องว่างยักษ์) */
.ai-band .ai-orb { position: absolute; width: 360px; height: 360px; border-radius: 50%; top: -160px; right: -80px; z-index: 0;
    background: radial-gradient(circle, rgba(255,255,255,.35), transparent 65%); animation: orbFloat 12s ease-in-out infinite; }
.ai-badge { display: inline-flex; align-items: center; gap: 7px; padding: 7px 16px; border-radius: 100px; font-size: 13px; font-weight: 700;
    background: rgba(255,255,255,.32); color: #fff; margin-bottom: 18px; }
.ai-band h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; color: #fff; letter-spacing: -.02em; }
.ai-band > p { color: rgba(255,255,255,.92); font-size: 18px; max-width: 620px; margin: 14px auto 24px; }
.ai-feats { display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; margin-bottom: 30px; }
.ai-feats span { background: rgba(255,255,255,.16); color: #fff; padding: 9px 16px; border-radius: 100px; font-size: 14px; font-weight: 600;
    border: 1px solid rgba(255,255,255,.2); }
.ai-waitlist { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.ai-waitlist input[type=email] { flex: 1; min-width: 0; border: 0; border-radius: 12px; padding: 0 18px; font-size: 16px; font-family: inherit;
    background: rgba(255,255,255,.95); color: #1a1a1a; outline: none; }
.ai-waitlist input[type=email]::placeholder { color: #888; }
.wl-msg { color: rgba(255,255,255,.85); font-size: 14px; margin-top: 16px; }

/* ---------------- Features (premium) ---------------- */
.feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.feat { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border);
    position: relative; overflow: hidden; transition: transform .2s, border-color .2s; }
.feat:hover { transform: translateY(-5px); border-color: var(--primary); }
.feat::before { content: ''; position: absolute; top: -40px; right: -40px; width: 120px; height: 120px; border-radius: 50%;
    background: radial-gradient(circle, var(--primary-glow), transparent 70%); opacity: 0; transition: opacity .3s; }
.feat:hover::before { opacity: 1; }
.feat .fi { width: 52px; height: 52px; border-radius: 14px; display: grid; place-items: center; font-size: 25px; margin-bottom: 16px;
    background: linear-gradient(135deg, rgba(13, 148, 136,.2), rgba(34, 211, 238,.14)); border: 1px solid var(--border); }
.feat h3 { font-size: 18px; margin-bottom: 8px; }
.feat p { color: var(--text-muted); font-size: 15px; }

/* ---------------- Steps ---------------- */
.lp-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.lp-step { padding: 28px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); position: relative; }
.lp-step .num { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; font-size: 17px;
    background: linear-gradient(135deg, var(--primary), var(--accent)); color: #fff; margin-bottom: 16px; }
.lp-step h3 { font-size: 18px; margin-bottom: 6px; }
.lp-step p { color: var(--text-muted); font-size: 15px; }

/* ---------------- Stats band ---------------- */
.statband { border-radius: 26px; padding: 50px 30px; background:
    linear-gradient(135deg, rgba(13, 148, 136,.16), rgba(34, 211, 238,.1)); border: 1px solid var(--border); }
.statband-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; text-align: center; }
.statband .v { font-size: clamp(30px, 4vw, 44px); font-weight: 800;
    background: linear-gradient(120deg, #2dd4bf, #22d3ee); -webkit-background-clip: text; background-clip: text; color: transparent; }
.statband .l { color: var(--text-muted); font-size: 14px; margin-top: 4px; }

/* ---------------- Testimonials ---------------- */
.testi-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.testi { padding: 26px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--border); }
.testi .stars { color: #ffc555; font-size: 14px; margin-bottom: 12px; letter-spacing: 2px; }
.testi p { font-size: 15px; line-height: 1.7; margin-bottom: 18px; }
.testi .who { display: flex; align-items: center; gap: 12px; }
.testi .who img { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; }
.testi .who b { font-size: 15px; display: block; }
.testi .who span { font-size: 13px; color: var(--text-muted); }

/* ---------------- Responsive ---------------- */
@media (max-width: 940px) {
    .lp-hero-grid { grid-template-columns: 1fr; gap: 40px; }
    .device-wrap { order: -1; }
    .float-card { display: none; }
    .sc-stage { grid-template-columns: 1fr; gap: 30px; }
    .sc-info { order: 2; text-align: center; }
    .sc-info .sc-hi div { justify-content: center; }
    .feat-grid, .lp-steps, .testi-grid, .pillars { grid-template-columns: 1fr; }
    .statband-grid { grid-template-columns: repeat(2, 1fr); }
    .ai-waitlist { flex-direction: column; }
    .ai-band { padding: 44px 22px; }
}
@media (max-width: 480px) {
    .claim { flex-direction: column; }
    .lp-stats { gap: 20px; }
}

/* ============================================================
   LIGHT THEME (Instabio-inspired) + multi-phone hero cluster
   ============================================================ */
body.lp {
    --bg: #ffffff; --surface: #ffffff; --surface-2: #f4f5fb; --border: #e7e9f3;
    --text: #14141d; --text-muted: #5e6478;
    background:
        radial-gradient(circle at 8% 0%, rgba(13, 148, 136,.07), transparent 42%),
        radial-gradient(circle at 94% 2%, rgba(34, 211, 238,.06), transparent 38%),
        #ffffff;
    color: var(--text);
}
.lp .orbs { display: none; }
.lp .nav { background: #fff;  /* ทึบพอบังเนื้อหาที่เลื่อนผ่านข้างหลัง — เดิม .82 อาศัย backdrop-filter ปั่นให้อ่านไม่ออก ซึ่งถอดออกแล้ว */ border-bottom: 1px solid var(--border); }
.lp .lp-badge { background: rgba(13, 148, 136,.1); border-color: rgba(13, 148, 136,.22); color: #6a47f5; }
.lp .float-card { background: rgba(255,255,255,.92); border: 1px solid var(--border); box-shadow: 0 14px 36px rgba(30,30,70,.13); }
.lp .float-card b { color: var(--text); }
.lp .float-card span { color: var(--text-muted); }
.lp .fc-1 { top: 26px; left: -26px; }
.lp .fc-3 { bottom: 40px; right: -26px; left: auto; }
.lp .hero-dots button { background: #cfd3e6; }

/* Soft shadows for depth on white */
.lp .card, .lp .feat, .lp .pillar, .lp .testi, .lp .lp-step, .lp .plan, .lp .mq-chip, .lp .sc-tab, .lp .claim {
    box-shadow: 0 4px 18px rgba(30,30,70,.05);
}
.lp .feat:hover, .lp .pillar:hover { box-shadow: 0 18px 44px rgba(13, 148, 136,.14); }
.lp .plan.featured { box-shadow: 0 18px 48px rgba(13, 148, 136,.18); }

/* แพ็กเกจ: แถวเดียว เลื่อน/ปัดแนวนอนได้ (กันตกเป็น 2 แถวเมื่อมีหลายแพ็ก) */
.lp .pricing { display: flex; gap: 22px; align-items: stretch;
    overflow-x: auto; scroll-snap-type: x proximity; padding: 18px 4px 22px;
    scrollbar-width: thin; scrollbar-color: var(--border) transparent; }
.lp .pricing::-webkit-scrollbar { height: 8px; }
.lp .pricing::-webkit-scrollbar-thumb { background: var(--border); border-radius: 999px; }
.lp .pricing::-webkit-scrollbar-track { background: transparent; }
/* ยืดเต็มแถวบนจอใหญ่ (การ์ดเติมเต็มพอดี ไม่มีใบถูกตัดครึ่ง) แต่ไม่หดต่ำกว่า 250px → จอแคบเลื่อนได้ */
.lp .pricing .plan { flex: 1 0 250px; max-width: 360px; scroll-snap-align: center; }
.lp .statband { background: linear-gradient(135deg, rgba(13, 148, 136,.10), rgba(34, 211, 238,.07)); border-color: var(--border); }
.lp .device { box-shadow: 0 30px 68px rgba(30,30,70,.22), inset 0 0 0 1.5px rgba(255,255,255,.08); }

/* Phone cluster (center = interactive carousel, sides = static previews) */
.phone-cluster { display: flex; align-items: center; justify-content: center; position: relative; }
.phone-cluster .device.center { z-index: 3; }
.phone-cluster .device.side { width: 200px; height: 420px; z-index: 1; border-radius: 40px; animation: none; opacity: .96; }
.phone-cluster .device.side .screen { border-radius: 31px; }
.phone-cluster .device.side .island { display: none; }
.phone-cluster .device.side iframe { pointer-events: none; }
.phone-cluster .device.side.side-l { margin-right: -74px; transform: rotate(-7deg) translateY(12px) scale(.95); }
.phone-cluster .device.side.side-r { margin-left: -74px; transform: rotate(7deg) translateY(12px) scale(.95); }

@media (max-width: 1100px) { .phone-cluster { transform: scale(.86); } }
@media (max-width: 940px) {
    .phone-cluster { transform: none; }
    .phone-cluster .device.side { display: none; }
}

/* ---------------- Hero composed mockup: Landing + Chatbot + Orders ---------------- */
.hero-stage { isolation: isolate; }
.hero-panel { position: absolute; z-index: 4; width: 250px; background: rgba(255,255,255,.97);
    border: 1px solid var(--border); border-radius: 18px; padding: 14px;
    box-shadow: 0 20px 50px rgba(30,30,70,.18); animation: floaty 6s ease-in-out infinite; }
.hero-panel .hp-head { display: flex; align-items: center; gap: 8px; font-size: 13px; margin-bottom: 11px; }
.hero-panel .hp-head b { font-size: 13.5px; color: var(--text); }
.hp-avatar, .hp-ic { width: 27px; height: 27px; border-radius: 9px; display: grid; place-items: center; font-size: 14px;
    background: rgba(13,148,136,.12); flex-shrink: 0; }
.hp-live { width: 7px; height: 7px; border-radius: 50%; background: #2ec16e; margin-left: auto; flex-shrink: 0;
    box-shadow: 0 0 0 0 rgba(46,193,110,.6); animation: pulse 1.8s infinite; }
.hp-on { font-size: 11px; color: #16a34a; font-weight: 700; }

/* payment success panel (left) */
.hp-pay { top: 44px; left: -88px; width: 212px; }
.hp-ic.ok { background: rgba(22,163,74,.14); }
.hp-payrow { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 3px; }
.hp-payrow span { font-size: 11px; color: var(--text-muted); }
.hp-payrow b { font-size: 19px; font-weight: 800; color: var(--text); }
.hp-paysub { font-size: 10.5px; color: var(--text-muted); line-height: 1.4; }

/* order management panel (right) */
.hp-order { bottom: 48px; right: -104px; animation-delay: -2.6s; }
.hp-badge { margin-left: auto; font-size: 10.5px; font-weight: 700; padding: 3px 9px; border-radius: 100px;
    background: rgba(22,163,74,.14); color: #16a34a; border: 1px solid rgba(22,163,74,.32); }
.hp-orow { display: flex; align-items: center; gap: 9px; }
.hp-orow .hp-emoji { font-size: 22px; flex-shrink: 0; }
.hp-ometa { flex: 1; min-width: 0; }
.hp-ometa b { display: block; font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hp-ometa span { font-size: 11px; color: var(--text-muted); }
.hp-amt { font-size: 14px; font-weight: 800; color: #0d9488; flex-shrink: 0; }
.hp-bar { height: 6px; border-radius: 100px; background: var(--surface-2); overflow: hidden; margin: 12px 0 10px; }
.hp-bar i { display: block; height: 100%; width: 100%; transform-origin: left; border-radius: 100px; background: linear-gradient(90deg, #0d9488, #22d3ee);
    animation: hpFill 2.6s ease-in-out infinite alternate; }
/* transform แทน width — เหตุผลเดียวกับ barGrow */
@keyframes hpFill { from { transform: scaleX(.44); } to { transform: scaleX(.82); } }
.hp-stat { display: flex; align-items: baseline; gap: 8px; }
.hp-stat > span:first-child { font-size: 11px; color: var(--text-muted); }
.hp-stat b { font-size: 17px; font-weight: 800; color: var(--text); }
.hp-up { font-size: 11px; font-weight: 800; color: #16a34a; margin-left: auto; }

/* small live chip (top-right) */
.hero-chip { position: absolute; z-index: 4; top: -6px; right: -28px; display: flex; align-items: center; gap: 9px;
    background: rgba(255,255,255,.97); border: 1px solid var(--border); border-radius: 14px; padding: 9px 13px;
    box-shadow: 0 14px 34px rgba(30,30,70,.14); animation: floaty 5s ease-in-out infinite; animation-delay: -1.2s; }
.hero-chip .hc-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; font-size: 16px;
    background: rgba(13,148,136,.12); flex-shrink: 0; }
.hero-chip b { font-size: 14px; display: block; line-height: 1.2; color: var(--text); }
.hero-chip span { font-size: 11px; color: var(--text-muted); }

@media (max-width: 1100px) {
    .hp-pay { left: -50px; } .hp-order { right: -60px; } .hero-chip { right: -14px; }
}
@media (max-width: 940px) {
    .hero-panel, .hero-chip { display: none; }
}

/* ---------------- Feature highlights (ไฮไลท์ฟีเจอร์เด่น) ---------------- */
.hl { display: flex; flex-direction: column; gap: 22px; margin-top: 8px; }
.hl-row { display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center;
    background: var(--surface); border: 1px solid var(--border); border-radius: 22px; padding: 34px 36px; }
.hl-row.flip .hl-text { order: 2; }
.hl-row.flip .hl-visual { order: 1; }
.hl-chip { display: inline-block; font-size: 13px; font-weight: 700; padding: 6px 13px; border-radius: 100px;
    background: rgba(13, 148, 136,.12); border: 1px solid rgba(13, 148, 136,.3); color: #c9bcff; margin-bottom: 14px; }
.hl-text h3 { font-size: 25px; margin-bottom: 10px; letter-spacing: -.02em; }
.hl-text > p { color: var(--text-muted); font-size: 15px; line-height: 1.65; }
.hl-points { list-style: none; margin-top: 14px; display: flex; flex-direction: column; gap: 8px; padding: 0; }
.hl-points li { font-size: 14px; display: flex; gap: 9px; align-items: flex-start; }
.hl-points li::before { content: '✓'; color: #2ec16e; font-weight: 800; flex-shrink: 0; }
.hl-visual { display: grid; gap: 10px; }
.hv-card { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 13px 15px;
    display: flex; align-items: center; gap: 12px; font-size: 14px; }
.hv-card .hv-emoji { font-size: 24px; flex-shrink: 0; }
.hv-card b { display: block; font-size: 14px; }
.hv-card span { font-size: 12.5px; color: var(--text-muted); }
.hv-pill { margin-left: auto; flex-shrink: 0; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 100px;
    background: linear-gradient(135deg,#0d9488,#22d3ee); color: #fff; }
.hv-pill.ok { background: rgba(46,193,110,.18); color: #2ec16e; border: 1px solid rgba(46,193,110,.4); }
.hv-bubble { max-width: 88%; padding: 10px 14px; border-radius: 14px; font-size: 13.5px; line-height: 1.5; }
.hv-bubble.in { background: var(--surface-2); border: 1px solid var(--border); border-bottom-left-radius: 4px; justify-self: start; }
.hv-bubble.out { background: linear-gradient(135deg,#0d9488,#22d3ee); color: #fff; border-bottom-right-radius: 4px; justify-self: end; }
.hv-tags { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; margin-top: 4px; }
.hv-tag { font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 100px;
    background: var(--surface-2); border: 1px solid var(--border); }
@media (max-width: 860px) {
    .hl-row { grid-template-columns: 1fr; padding: 24px 20px; gap: 20px; }
    .hl-row.flip .hl-text { order: 1; }
    .hl-row.flip .hl-visual { order: 2; }
}

/* ---------------- แถบแพลตฟอร์มที่เชื่อมต่อได้ (hero) ---------------- */
.lp-integrations { margin-top: 26px; }
.lp-integrations small { display: block; font-size: 12.5px; color: var(--text-muted); margin-bottom: 10px; }
.lpi-row { display: flex; gap: 8px; flex-wrap: wrap; }
.lpi { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center;
    background: var(--surface); border: 1px solid var(--border); color: var(--c, var(--text-muted));
    transition: transform .15s ease, box-shadow .15s ease; cursor: default; }
.lpi svg { width: 20px; height: 20px; display: block; }
.lpi:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 10px 22px rgba(0,0,0,.14); }

/* ================================================================
   4 PILLARS FEATURE SHOWCASE CSS
   ================================================================ */

.pillars-showcase {
    display: flex;
    flex-direction: column;
    gap: 70px;
    margin-top: 40px;
}

.pillar-row {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 60px;
    align-items: center;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: 28px;
    padding: 50px;
    box-shadow: 0 15px 40px rgba(0,0,0,0.04);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.pillar-row:hover {
    transform: translateY(-4px);
    box-shadow: 0 25px 60px rgba(13,148,136,0.08);
}

.pillar-row.flip .pillar-text {
    order: 2;
}

.pillar-row.flip .pillar-visual {
    order: 1;
}

.pillar-badge {
    display: inline-block;
    font-size: 13px;
    font-weight: 700;
    padding: 6px 14px;
    border-radius: 100px;
    margin-bottom: 18px;
    text-transform: uppercase;
    letter-spacing: 0.03em;
}

.badge-teal {
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.3);
    color: #0b7268;
}

.badge-purple {
    background: rgba(13, 148, 136, 0.12);
    border: 1px solid rgba(13, 148, 136, 0.3);
    color: #0b7268;
}

.badge-yellow {
    background: rgba(202, 138, 4, 0.12);
    border: 1px solid rgba(202, 138, 4, 0.3);
    color: #a16207;
}

.badge-red {
    background: rgba(220, 38, 38, 0.12);
    border: 1px solid rgba(220, 38, 38, 0.3);
    color: #b91c1c;
}

.pillar-text h3 {
    font-size: clamp(22px, 2.5vw, 30px);
    font-weight: 800;
    color: var(--text);
    line-height: 1.25;
    margin-bottom: 16px;
    letter-spacing: -0.02em;
}

.pillar-text p {
    color: var(--text-muted);
    font-size: 15.5px;
    line-height: 1.7;
    margin-bottom: 24px;
}

.pillar-points {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pillar-points li {
    font-size: 14.5px;
    line-height: 1.6;
    color: var(--text);
    display: flex;
    gap: 10px;
    align-items: flex-start;
}

.pillar-points li strong {
    color: var(--text);
}

.pillar-points li::before {
    content: "✓";
    color: #10b981;
    font-weight: 900;
    font-size: 15px;
    flex-shrink: 0;
    margin-top: 1px;
}

.pillar-visual {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

/* ----------- 1. LINK SALE PAGE VISUAL ----------- */
.phone-mockup-wrapper {
    width: 290px;
    height: 520px;
    background: #09090b;
    border-radius: 40px;
    padding: 10px;
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25), 0 0 40px rgba(13,148,136,0.15);
    border: 4px solid #27272a;
}

.phone-mockup-screen {
    background: #f8fafc;
    border-radius: 32px;
    height: 100%;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    font-family: inherit;
    border: 1px solid #e4e4e7;
}

.shop-header {
    background: #ffffff;
    border-bottom: 1px solid #e4e4e7;
    padding: 12px 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}

.shop-avatar {
    width: 32px;
    height: 32px;
    background: #fdf2f8;
    border-radius: 50%;
    display: grid;
    place-items: center;
    font-size: 16px;
    border: 1px solid #fbcfe8;
}

.shop-info h4 {
    font-size: 12.5px;
    font-weight: 700;
    color: #0f172a;
    margin: 0;
}

.shop-info p {
    font-size: 9px;
    color: #64748b;
    margin: 0;
}

.shop-products {
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    flex: 1;
    overflow-y: auto;
}

.shop-product-card {
    background: #ffffff;
    border: 1px solid #e4e4e7;
    border-radius: 12px;
    padding: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    position: relative;
}

.shop-product-card.glow {
    border-color: #0d9488;
    box-shadow: 0 4px 15px rgba(13, 148, 136, 0.1);
}

.spc-badge {
    position: absolute;
    top: 4px;
    left: 4px;
    background: #ef4444;
    color: #ffffff;
    font-size: 8px;
    font-weight: 700;
    padding: 2px 5px;
    border-radius: 4px;
}

.spc-emoji {
    font-size: 24px;
    width: 40px;
    height: 40px;
    background: #f1f5f9;
    border-radius: 8px;
    display: grid;
    place-items: center;
}

.spc-details {
    flex: 1;
}

.spc-details h5 {
    font-size: 11px;
    font-weight: 700;
    color: #0f172a;
    margin: 0 0 2px 0;
}

.spc-details .price {
    font-size: 11px;
    font-weight: 700;
    color: #0d9488;
}

.spc-details .price small {
    color: #94a3b8;
    text-decoration: line-through;
    font-weight: 400;
    margin-left: 2px;
}

.spc-btn {
    background: #0d9488;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 9.5px;
    font-weight: 700;
    padding: 6px 10px;
    cursor: pointer;
}

.shop-cart-bar {
    background: linear-gradient(90deg, #0d9488, #0f766e);
    color: #ffffff;
    padding: 10px 14px;
    font-size: 11px;
    font-weight: 700;
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid rgba(0,0,0,0.05);
}

.promptpay-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(15, 23, 42, 0.65);
    backdrop-filter: blur(4px);
    height: 60%;
    display: flex;
    align-items: flex-end;
    animation: slideUp 0.3s ease-out;
}

.pp-qr-container {
    background: #ffffff;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    width: 100%;
    padding: 16px;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: 0 -10px 25px rgba(0,0,0,0.15);
}

.pp-header {
    background: #1e3a8a;
    color: #ffffff;
    width: 100%;
    text-align: center;
    padding: 6px;
    border-radius: 6px;
    margin-bottom: 12px;
}

.pp-logo-text {
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.05em;
}

.pp-qr-mock {
    width: 100px;
    height: 100px;
    border: 2px solid #0f172a;
    position: relative;
    display: grid;
    place-items: center;
    font-size: 8px;
    color: #94a3b8;
    background: #f8fafc;
    margin-bottom: 8px;
}

.qr-line {
    position: absolute;
    width: 14px;
    height: 14px;
    border: 2px solid #0f172a;
}
.border-tl { top: -2px; left: -2px; border-right: 0; border-bottom: 0; }
.border-tr { top: -2px; right: -2px; border-left: 0; border-bottom: 0; }
.border-bl { bottom: -2px; left: -2px; border-right: 0; border-top: 0; }
.border-br { bottom: -2px; right: -2px; border-left: 0; border-top: 0; }

.pp-amount {
    font-size: 16px;
    font-weight: 800;
    color: #0f172a;
}

.pp-hint {
    font-size: 8.5px;
    color: #64748b;
    margin-top: 2px;
}

/* ----------- 2. AI CHATBOT VISUAL ----------- */
.chatbot-mockup-wrapper {
    width: 100%;
    max-width: 380px;
    background: #1e293b;
    border-radius: 20px;
    border: 1px solid #334155;
    overflow: hidden;
    box-shadow: 0 20px 40px rgba(0,0,0,0.2), 0 0 30px rgba(13,148,136,0.12);
}

.cb-tabs {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    background: #0f172a;
    border-bottom: 1px solid #334155;
}

.cb-tab {
    background: none;
    border: none;
    color: #64748b;
    font-size: 11px;
    font-weight: 700;
    padding: 10px 4px;
    cursor: pointer;
    text-align: center;
}

.cb-tab.active {
    color: #ffffff;
    background: #1e293b;
    border-bottom: 2px solid #0d9488;
}

.cb-chat-area {
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    background: #0f172a;
}

.cb-message {
    display: flex;
    gap: 8px;
    max-width: 85%;
}

.cb-message.incoming {
    align-self: flex-start;
}

.cb-message.outgoing {
    align-self: flex-end;
    flex-direction: row-reverse;
}

.msg-avatar {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    background: #1e293b;
    display: grid;
    place-items: center;
    font-size: 12px;
    flex-shrink: 0;
}

.cb-message.outgoing .msg-avatar {
    background: #0d9488;
}

.msg-content {
    background: #1e293b;
    color: #cbd5e1;
    font-size: 12.5px;
    line-height: 1.5;
    padding: 10px 12px;
    border-radius: 14px;
}

.cb-message.incoming .msg-content {
    border-top-left-radius: 2px;
    border: 1px solid #334155;
}

.cb-message.outgoing .msg-content {
    background: linear-gradient(135deg, #0d9488, #0b7268);
    color: #ffffff;
    border-top-right-radius: 2px;
}

.cb-system-notify {
    align-self: center;
    background: rgba(16, 185, 129, 0.1);
    border: 1px solid rgba(16, 185, 129, 0.25);
    border-radius: 100px;
    padding: 4px 12px;
    font-size: 10.5px;
    color: #10b981;
}

.cb-footer-slogan {
    background: #1e293b;
    padding: 8px 12px;
    font-size: 9.5px;
    color: #94a3b8;
    text-align: center;
    border-top: 1px solid #334155;
}

/* ----------- 3. ORDER MANAGEMENT VISUAL ----------- */
.orders-mockup-wrapper {
    width: 100%;
    max-width: 380px;
    background: #ffffff;
    border-radius: 20px;
    border: 1px solid #e4e4e7;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.06), 0 0 30px rgba(234,179,8,0.1);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.om-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px solid #f4f4f5;
    padding-bottom: 10px;
}

.om-stat {
    font-size: 12px;
    color: #18181b;
}

.om-btn-print {
    background: #0f172a;
    color: #ffffff;
    border: none;
    border-radius: 6px;
    font-size: 10px;
    font-weight: 700;
    padding: 6px 12px;
    cursor: default;
}

.om-order-list {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.om-order-item {
    background: #f8fafc;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px 12px;
}

.om-order-item.active {
    border-color: #eab308;
    background: #fefce8;
}

.omi-meta {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.omi-meta .ref {
    font-size: 11px;
    font-weight: 700;
    color: #1e293b;
}

.omi-meta .status {
    font-size: 9px;
    font-weight: 700;
    padding: 2px 6px;
    border-radius: 4px;
}

.omi-meta .status.new {
    background: rgba(234, 179, 8, 0.15);
    color: #a16207;
}

.omi-meta .status.shipped {
    background: rgba(59, 130, 246, 0.15);
    color: #1d4ed8;
}

.omi-details b {
    font-size: 11.5px;
    color: #0f172a;
    display: block;
}

.omi-details p {
    font-size: 10.5px;
    color: #64748b;
    margin: 2px 0 0 0;
}

.om-print-dialog {
    background: #f1f5f9;
    border: 1px solid #e2e8f0;
    border-radius: 10px;
    padding: 10px;
    font-size: 11px;
}

.om-print-dialog h5 {
    font-weight: 700;
    color: #1e293b;
    margin: 0 0 6px 0;
}

.print-options {
    display: flex;
    gap: 6px;
}

.print-options .opt {
    background: #ffffff;
    border: 1px solid #cbd5e1;
    padding: 4px 8px;
    border-radius: 6px;
    font-size: 9px;
    color: #475569;
}

.print-options .opt.active {
    border-color: #0f172a;
    background: #0f172a;
    color: #ffffff;
}

/* ----------- 4. SHIPPING INTEGRATION VISUAL ----------- */
.shipping-mockup-wrapper {
    width: 100%;
    max-width: 380px;
    background: #fafafa;
    border-radius: 20px;
    border: 1px solid #e5e5e5;
    padding: 16px;
    box-shadow: 0 20px 40px rgba(0,0,0,0.05), 0 0 30px rgba(239,68,68,0.08);
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.shipping-booking-status {
    background: rgba(16, 185, 129, 0.08);
    border: 1px solid rgba(16, 185, 129, 0.2);
    border-radius: 12px;
    padding: 10px 12px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.sbs-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: #10b981;
    color: #ffffff;
    display: grid;
    place-items: center;
    font-size: 11px;
    font-weight: 700;
}

.sbs-text b {
    font-size: 11px;
    color: #065f46;
    display: block;
}

.sbs-text p {
    font-size: 9.5px;
    color: #047857;
    margin: 1px 0 0 0;
}

.shipping-label-card {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    padding: 12px;
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.slc-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-bottom: 1px dashed #e5e5e5;
    padding-bottom: 6px;
}

.slc-carrier {
    font-size: 11px;
    font-weight: 700;
    color: #eab308;
}

.slc-tracking {
    font-size: 10px;
    font-weight: 700;
    color: #737373;
}

.slc-barcode {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.bar-line {
    height: 24px;
    background: #171717;
    width: 100%;
    max-width: 140px;
}

.bar-line.l1 { background: repeating-linear-gradient(90deg, #171717, #171717 2px, #ffffff 2px, #ffffff 4px); }
.bar-line.l2 { background: repeating-linear-gradient(90deg, #171717, #171717 1px, #ffffff 1px, #ffffff 3px); }
.bar-line.l3 { background: repeating-linear-gradient(90deg, #171717, #171717 3px, #ffffff 3px, #ffffff 5px); }
.bar-line.l4 { background: repeating-linear-gradient(90deg, #171717, #171717 2px, #ffffff 2px, #ffffff 5px); }

.bar-num {
    font-size: 9px;
    color: #737373;
    letter-spacing: 0.05em;
}

.shipping-carriers-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
}

.sc-logo {
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 8px;
    padding: 6px;
    text-align: center;
    font-size: 10.5px;
    font-weight: 700;
    color: #404040;
}

/* Animations */
@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

@keyframes pulse {
    0%, 100% { opacity: 1; }
    50% { opacity: .5; }
}

.animate-pulse {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Responsive grid for pillars */
@media (max-width: 960px) {
    .pillar-row {
        grid-template-columns: 1fr;
        padding: 30px;
        gap: 40px;
    }
    
    .pillar-row.flip .pillar-text {
        order: 1;
    }
    
    .pillar-row.flip .pillar-visual {
        order: 2;
    }
}

/* =====================================================================
   Real app icons · iPhone chat mockups · animated order timeline · carriers
   ===================================================================== */

/* Brand app-icon tiles (real-app look) */
.appic { width: 18px; height: 18px; border-radius: 5px; display: inline-grid; place-items: center; flex-shrink: 0; }
.appic svg { width: 12px; height: 12px; display: block; }

/* ---------- HERO: chat-selling screen inside the phone ---------- */
.device .screen.sell-screen { background: #e9edf2; display: flex; flex-direction: column; }
.sell-screen .ss-top { display: flex; align-items: center; gap: 8px; padding: 42px 14px 10px; background: #fff;
    border-bottom: 1px solid #e7e9f0; flex-shrink: 0; }
.sell-screen .ss-back { font-size: 22px; color: #9aa2b1; line-height: 1; }
.sell-screen .ss-av { width: 32px; height: 32px; border-radius: 50%; background: #fde7f1; display: grid; place-items: center; font-size: 16px; flex-shrink: 0; }
.sell-screen .ss-who { flex: 1; min-width: 0; line-height: 1.2; }
.sell-screen .ss-who b { font-size: 14px; color: #14141d; display: block; }
.sell-screen .ss-who span { font-size: 10.5px; color: #16a34a; display: flex; align-items: center; gap: 4px; }
.sell-screen .ss-dot { width: 6px; height: 6px; border-radius: 50%; background: #16a34a; display: inline-block; }
.sell-screen .ss-line { width: 22px; height: 22px; border-radius: 6px; }
.sell-screen .ss-line svg { width: 14px; height: 14px; }
.sell-screen .ss-body { flex: 1; overflow: hidden; padding: 12px; display: flex; flex-direction: column; gap: 8px; }
.sell-screen .ss-day { align-self: center; font-size: 10px; color: #8a93a6; background: rgba(0,0,0,.06); padding: 2px 10px; border-radius: 100px; }
.sell-screen .ss-msg { max-width: 82%; font-size: 12.5px; line-height: 1.45; padding: 8px 12px; border-radius: 16px; }
.sell-screen .ss-msg.in { align-self: flex-start; background: #fff; color: #20242e; border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.sell-screen .ss-msg.out { align-self: flex-end; background: #06C755; color: #fff; border-bottom-right-radius: 5px; }
.sell-screen .ss-msg.out.pay { background: linear-gradient(135deg, #0d9488, #0b7268); }
.sell-screen .ss-msg.out.pay b { font-size: 13px; }
.sell-screen .ss-prod { align-self: flex-start; width: 86%; background: #fff; border-radius: 14px; padding: 8px;
    display: flex; gap: 8px; align-items: center; box-shadow: 0 2px 8px rgba(0,0,0,.07); }
.sell-screen .ss-prod-img { width: 46px; height: 46px; border-radius: 10px; background: #fdf2f8; display: grid; place-items: center; font-size: 24px; flex-shrink: 0; }
.sell-screen .ss-prod-info { min-width: 0; line-height: 1.35; }
.sell-screen .ss-prod-info b { font-size: 12px; color: #14141d; display: block; }
.sell-screen .ss-price { font-size: 13px; font-weight: 800; color: #0d9488; }
.sell-screen .ss-price s { font-size: 10px; font-weight: 500; color: #aab0bd; margin-left: 3px; }
.sell-screen .ss-stock { font-size: 9.5px; color: #16a34a; font-weight: 700; display: block; }
.sell-screen .ss-typing { align-self: flex-start; display: flex; gap: 3px; background: #fff; padding: 10px 12px;
    border-radius: 16px; border-bottom-left-radius: 5px; box-shadow: 0 1px 2px rgba(0,0,0,.06); }
.sell-screen .ss-typing i { width: 6px; height: 6px; border-radius: 50%; background: #c2c8d4; animation: ssType 1.2s infinite; }
.sell-screen .ss-typing i:nth-child(2) { animation-delay: .2s; }
.sell-screen .ss-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes ssType { 0%,60%,100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-4px); opacity: 1; } }
.sell-screen .ss-input { display: flex; align-items: center; gap: 8px; padding: 8px 12px 16px; background: #fff; border-top: 1px solid #e7e9f0; flex-shrink: 0; }
.sell-screen .ss-field { flex: 1; font-size: 11.5px; color: #9aa2b1; background: #eef0f4; border-radius: 100px; padding: 8px 14px; }
.sell-screen .ss-send { width: 30px; height: 30px; border-radius: 50%; background: #06C755; color: #fff; display: grid; place-items: center; font-size: 13px; flex-shrink: 0; }

/* ---------- AI Chatbot: iPhone frame ---------- */
.cb-phone { width: 300px; height: 600px; border-radius: 52px; padding: 11px; position: relative;
    background: linear-gradient(150deg, #3a3a40 0%, #1a1a1d 60%); box-shadow: 0 30px 64px rgba(30,30,70,.22), inset 0 0 0 1.5px rgba(255,255,255,.07); }
.cb-island { position: absolute; top: 20px; left: 50%; transform: translateX(-50%); width: 86px; height: 24px; background: #000; border-radius: 100px; z-index: 5; }
.cb-screen { position: relative; width: 100%; height: 100%; border-radius: 42px; overflow: hidden; background: #0f172a; display: flex; flex-direction: column; }
.cb-phone .cb-tabs { padding-top: 36px; background: #0b1220; }
.cb-phone .cb-tab { display: flex; align-items: center; justify-content: center; gap: 5px; font-size: 10px; padding: 9px 2px; }
.cb-chat-header { display: flex; align-items: center; gap: 9px; padding: 10px 14px; background: #111a2e; border-bottom: 1px solid #243049; }
.cbh-av { width: 30px; height: 30px; border-radius: 50%; background: #fde7f1; display: grid; place-items: center; font-size: 15px; flex-shrink: 0; }
.cbh-info { line-height: 1.25; min-width: 0; }
.cbh-info b { font-size: 12.5px; color: #fff; display: block; }
.cbh-info span { font-size: 10px; color: #7c89a3; display: flex; align-items: center; gap: 5px; }
.cbh-dot { width: 6px; height: 6px; border-radius: 50%; background: #22c55e; display: inline-block; }
.cb-phone .cb-chat-area { flex: 1; overflow: hidden; padding: 14px; gap: 10px; }
.cb-inputbar { display: flex; align-items: center; gap: 8px; padding: 10px 14px 16px; background: #111a2e; border-top: 1px solid #243049; }
.cbi-field { flex: 1; font-size: 11px; color: #6b7894; background: #1c2740; border-radius: 100px; padding: 8px 14px; }
.cbi-send { width: 28px; height: 28px; border-radius: 50%; background: #0d9488; color: #fff; display: grid; place-items: center; font-size: 12px; flex-shrink: 0; }

/* ---------- Order Management: animated flow timeline ---------- */
.order-flow { position: relative; padding: 18px 6px 8px; }
.of-track { position: absolute; top: 32px; left: 40px; right: 40px; height: 4px; background: #e6e9ef; border-radius: 100px; overflow: hidden; }
.of-fill { display: block; height: 100%; width: 4%; border-radius: 100px; background: linear-gradient(90deg, #0d9488, #22d3ee); animation: ofFill 7s ease-in-out infinite; }
.of-steps { position: relative; display: flex; justify-content: space-between; }
.of-step { display: flex; flex-direction: column; align-items: center; gap: 6px; width: 25%; }
.of-dot { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: 14px; background: #eef1f5; filter: grayscale(1) opacity(.5); }
.of-label { font-size: 10px; font-weight: 700; color: #94a3b8; }
.of-step.s1 .of-dot { animation: ofDot 7s ease-in-out infinite; }
.of-step.s2 .of-dot { animation: ofDot 7s ease-in-out infinite; animation-delay: 1.5s; }
.of-step.s3 .of-dot { animation: ofDot 7s ease-in-out infinite; animation-delay: 3.4s; }
.of-step.s4 .of-dot { animation: ofDotDone 7s ease-in-out infinite; animation-delay: 5.2s; }
@keyframes ofFill { 0%,7%{width:4%} 22%{width:34%} 30%{width:34%} 50%{width:66%} 58%{width:66%} 80%,100%{width:100%} }
@keyframes ofDot {
    0%, 100% { filter: grayscale(1) opacity(.5); background: #eef1f5; box-shadow: none; transform: scale(1); }
    14%, 92% { filter: none; background: #d1fae5; box-shadow: 0 0 0 4px rgba(13,148,136,.13); transform: scale(1.06); }
}
@keyframes ofDotDone {
    0%, 100% { filter: grayscale(1) opacity(.5); background: #eef1f5; box-shadow: none; transform: scale(1); }
    14%, 92% { filter: none; background: #fef3c7; box-shadow: 0 0 0 4px rgba(202,138,4,.16); transform: scale(1.1); }
}
.omi-meta .status.processing { background: rgba(13,148,136,.12); color: #0b7268; }
.omi-foot { display: flex; gap: 6px; margin-top: 9px; }
.omi-chip { font-size: 9.5px; font-weight: 700; color: #475569; background: #fff; border: 1px solid #e2e8f0; border-radius: 6px; padding: 4px 8px; }

/* ---------- Real carrier logos (brand-colored wordmarks) ---------- */
.carrier { display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 11.5px;
    border-radius: 8px; padding: 8px 10px; letter-spacing: -.01em; line-height: 1; white-space: nowrap;
    box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.cr-flash { background: #FFC900; color: #16181d; }
.cr-kerry { background: #FF6A13; color: #ffffff; }
.cr-jt    { background: #E2000F; color: #ffffff; }
.cr-thp   { background: #E50012; color: #ffffff; }
.slc-carrier .carrier { font-size: 10.5px; padding: 5px 8px; }

/* ---------- Hero floating logos (ขนส่ง + โซเชียล) ---------- */
.hero-floaters { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hfloat { position: absolute; width: 54px; height: 54px; border-radius: 50%; background: #fff;
    display: grid; place-items: center; box-shadow: 0 10px 26px rgba(30,30,70,.13), 0 0 0 1px rgba(20,20,45,.04);
    animation: hbob var(--dur, 7s) ease-in-out infinite; animation-delay: var(--d, 0s); }
.hfloat img { width: 74%; height: 74%; object-fit: contain; }
.hfloat.soc { color: #fff; }
.hfloat.soc svg { width: 52%; height: 52%; }
@keyframes hbob {
    0%, 100% { transform: translate(0, 0); }
    50%      { transform: translate(var(--mx, 8px), var(--my, -14px)); }
}
@media (max-width: 940px) {
    .hfloat { width: 46px; height: 46px; }
    .hf-hide-sm { display: none; }
}
@media (max-width: 600px) {
    .hero-floaters { display: none; }
}



/* ===================================================================
   Landing v2 (redesign 2026-07) — ย้าย inline <style> จาก index.php
   มารวมที่นี่ให้ browser cache ได้ + สไตล์ section ใหม่
   =================================================================== */

/* Hero CTA + กล่องทดลองคุย AI */
.hero-cta { display: flex; gap: 10px; flex-wrap: wrap; margin: 4px 0 16px; }
.ai-try { margin: 2px 0 18px; }
.ai-try > small { display: block; color: var(--text-muted, #6b7280); margin-bottom: 9px; }
.ai-try-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ai-demo-chip { cursor: pointer; border: 1px solid var(--primary, #7c5cff); background: rgba(124,92,255,.08);
    color: var(--primary, #7c5cff); font-weight: 600; font-size: 13px; font-family: inherit;
    padding: 8px 14px; border-radius: 100px; transition: .15s; }
.ai-demo-chip:hover { background: var(--primary, #7c5cff); color: #fff; }
.sell-screen .ss-body { overflow-y: auto; }
.sell-screen .ss-input input.ss-field { color: #222; border: 0; outline: 0; font-family: inherit; min-width: 0; }
.sell-screen .ss-input input.ss-field::placeholder { color: #9aa2b1; }
.sell-screen .ss-input .ss-send { border: 0; background: transparent; cursor: pointer; font: inherit; color: inherit; }
.sell-screen .ss-input .ss-send:hover { opacity: .7; }

/* วิธีทำงาน 4 ขั้น */
#howit .flow-steps { display: flex; align-items: stretch; justify-content: center; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
#howit .flow-step { flex: 1; min-width: 200px; max-width: 260px; position: relative; background: var(--surface, #fff);
    border: 1px solid var(--border, #e6e6ee); border-radius: 18px; padding: 26px 18px 18px; text-align: center; }
#howit .fs-num { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); width: 28px; height: 28px;
    border-radius: 50%; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--primary, #7c5cff), var(--accent, #ff5ca8)); color: #fff; font-weight: 800; font-size: 14px; }
#howit .fs-ic { font-size: 34px; line-height: 1; margin-bottom: 10px; }
#howit .flow-step h3 { font-size: 16px; margin: 0 0 6px; }
#howit .flow-step p { font-size: 13.5px; color: var(--text-muted, #6b7280); margin: 0; line-height: 1.5; }
#howit .flow-arrow { display: flex; align-items: center; font-size: 24px; color: var(--primary, #7c5cff); font-weight: 700; }
@media (max-width: 760px) {
    #howit .flow-arrow { transform: rotate(90deg); }
    #howit .flow-step { max-width: none; }
}

/* พาร์ตเนอร์: ช่องทางขาย + ขนส่ง */
#partners .partner-label { text-align: center; font-size: 13px; font-weight: 700; color: var(--text-muted); margin-bottom: 12px; }
#partners .partner-row { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 14px; }
#partners .pchan { width: 54px; height: 54px; border-radius: 15px; display: grid; place-items: center; color: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.12); }
#partners .pchan svg { width: 28px; height: 28px; }
#partners .pcarrier { height: 56px; min-width: 88px; padding: 0 14px; display: flex; align-items: center; justify-content: center;
    background: #fff; border: 1px solid var(--border, #e2e2e7); border-radius: 14px; }
#partners .pcarrier img { max-height: 34px; max-width: 84px; object-fit: contain; }
#partners .partner-note { text-align: center; font-size: 13.5px; color: var(--text-muted); margin-top: 14px; line-height: 1.7; }

/* FAQ บนหน้าแรก */
#faq .faq-list { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
#faq details { background: var(--surface, #fff); border: 1px solid var(--border, #e6e6ee); border-radius: 14px; padding: 2px 18px; transition: .15s; }
#faq details[open] { border-color: var(--primary, #7c5cff); }
#faq summary { cursor: pointer; list-style: none; padding: 15px 0; font-weight: 700; font-size: 15.5px;
    display: flex; justify-content: space-between; align-items: center; gap: 12px; }
#faq summary::-webkit-details-marker { display: none; }
#faq summary::after { content: '+'; font-size: 22px; color: var(--primary, #7c5cff); font-weight: 400; line-height: 1; flex: none; }
#faq details[open] summary::after { content: '\2013'; }
#faq .faq-a { padding: 0 0 16px; color: var(--text-muted, #6b7280); line-height: 1.6; font-size: 14.5px; }
#faq .faq-a a { color: var(--primary, #7c5cff); }
#faq .faq-more { text-align: center; margin-top: 18px; font-size: 14.5px; }
#faq .faq-more a { color: var(--primary, #7c5cff); font-weight: 700; text-decoration: none; }

/* บล็อกข้อมูลสรุป (machine-readable facts) */
#product-facts .facts-card { background: var(--surface, #fff); border: 1px solid var(--border, #e6e6ee);
    border-radius: 18px; padding: 26px 28px; max-width: 860px; margin: 8px auto 0; }
#product-facts dl { margin: 0; }
#product-facts dt { font-weight: 800; font-size: 15px; margin-top: 18px; color: var(--text); }
#product-facts dt:first-child { margin-top: 0; }
#product-facts dd { margin: 6px 0 0; color: var(--text-muted, #6b7280); font-size: 14.5px; line-height: 1.75; }
#product-facts .facts-updated { text-align: center; color: var(--text-muted); font-size: 12.5px; margin-top: 12px; }

/* การ์ดตัวอย่างการใช้งานตามประเภทร้าน */
.uc-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 8px; }
.uc-card { background: var(--surface, #fff); border: 1px solid var(--border, #e6e6ee); border-radius: 18px; padding: 22px 20px; }
.uc-card .uc-ic { font-size: 30px; line-height: 1; margin-bottom: 10px; }
.uc-card h3 { font-size: 16px; margin: 0 0 8px; }
.uc-card p { font-size: 14px; color: var(--text-muted, #6b7280); margin: 0 0 10px; line-height: 1.65; }
.uc-card ul { margin: 0; padding: 0; list-style: none; }
.uc-card li { font-size: 13.5px; color: var(--text-muted, #6b7280); padding: 4px 0 4px 22px; position: relative; line-height: 1.5; }
.uc-card li::before { content: '✓'; position: absolute; left: 0; color: var(--primary, #7c5cff); font-weight: 800; }

/* แถบลดความเสี่ยงใต้ราคา + ลิงก์เพิ่มเติม */
.pricing-trust { text-align: center; color: var(--text-muted); font-size: 13.5px; margin-top: 18px; line-height: 1.8; }
.pricing-trust a { color: var(--primary, #7c5cff); }

/* หมายเหตุหมวดเทมเพลต (ข้อความ crawlable ใต้ showcase) */
.sc-cats-note { text-align: center; color: var(--text-muted); font-size: 13.5px; margin-top: 16px; line-height: 1.7; max-width: 720px; margin-left: auto; margin-right: auto; }

/* บล็อก AI ผู้ช่วยแต่งหน้าร้าน (ย่อจาก ai-band เดิม ให้อยู่ใต้ showcase) */
.ai-mini { background: linear-gradient(135deg, #6a47f5, #9c6bff); border-radius: 22px; color: #fff;
    padding: 30px 28px; max-width: 860px; margin: 34px auto 0; text-align: center; position: relative; overflow: hidden; }
.ai-mini h3 { font-size: 22px; margin: 0 0 8px; color: #fff; }
.ai-mini p { color: rgba(255,255,255,.92); font-size: 14.5px; margin: 0 auto 14px; max-width: 620px; line-height: 1.7; }
.ai-mini .ai-feats { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin-bottom: 18px; }
.ai-mini .ai-feats span { background: rgba(255,255,255,.16); border-radius: 100px; padding: 7px 14px; font-size: 13px; }

/* ปุ่มแชทลอย (LINE) — จุดเริ่มคุยก่อนตัดสินใจ */
.float-chat { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; align-items: center; gap: 9px;
    background: #06C755; color: #fff; border-radius: 100px; padding: 11px 18px 11px 13px; font-weight: 700; font-size: 14px;
    text-decoration: none; box-shadow: 0 10px 28px rgba(6,199,85,.4); transition: .15s; }
.float-chat:hover { transform: translateY(-2px); box-shadow: 0 14px 32px rgba(6,199,85,.5); }
.float-chat svg { width: 22px; height: 22px; }
@media (max-width: 600px) { .float-chat span { display: none; } .float-chat { padding: 12px; } }

/* ---------------- Hero animations: ทยอยโผล่ + โต้ตอบเมาส์ ---------------- */
/* ฝั่งข้อความลอยขึ้นทีละชิ้น — fill backwards: จบแล้วปล่อยกลับสไตล์ปกติ ไม่ทับ hover */
@keyframes heroRise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
.lp-hero .lp-badge, .lp-hero h1, .lp-hero .lead, .lp-hero .hero-cta,
.lp-hero .ai-try, .lp-hero .lp-avatars, .lp-hero .lp-integrations {
    animation: heroRise .65s cubic-bezier(.2,.7,.2,1) backwards;
}
.lp-hero .lp-badge { animation-delay: .05s; }
.lp-hero h1 { animation-delay: .16s; }
.lp-hero .lead { animation-delay: .28s; }
.lp-hero .hero-cta { animation-delay: .4s; }
.lp-hero .ai-try { animation-delay: .52s; }
.lp-hero .lp-avatars { animation-delay: .64s; }
.lp-hero .lp-integrations { animation-delay: .76s; }

/* หัวข้อไล่สีไหลวนช้า ๆ */
.lp-hero h1 .grad { background-size: 220% 100%; animation: gradShift 7s ease-in-out infinite; }
@keyframes gradShift { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }

/* ไอคอนแพลตฟอร์มเด้งเรียงตัวตามหลังคอลัมน์ซ้าย */
@keyframes lpiPop { from { opacity: 0; transform: scale(.4); } to { opacity: 1; transform: none; } }
.lp-hero .lpi { animation: lpiPop .45s cubic-bezier(.34,1.56,.64,1) backwards; }
.lp-hero .lpi:nth-child(1) { animation-delay: .85s; }
.lp-hero .lpi:nth-child(2) { animation-delay: .9s; }
.lp-hero .lpi:nth-child(3) { animation-delay: .95s; }
.lp-hero .lpi:nth-child(4) { animation-delay: 1s; }
.lp-hero .lpi:nth-child(5) { animation-delay: 1.05s; }
.lp-hero .lpi:nth-child(6) { animation-delay: 1.1s; }
.lp-hero .lpi:nth-child(7) { animation-delay: 1.15s; }
.lp-hero .lpi:nth-child(8) { animation-delay: 1.2s; }
.lp-hero .lpi:nth-child(9) { animation-delay: 1.25s; }

/* ปุ่ม "เริ่มใช้ฟรี": แสงวูบผ่านเป็นระยะ */
.hero-cta .btn-primary { position: relative; overflow: hidden; }
.hero-cta .btn-primary::after { content: ''; position: absolute; top: -4px; bottom: -4px; left: -60%; width: 42%;
    background: linear-gradient(105deg, transparent, rgba(255,255,255,.5), transparent);
    transform: skewX(-20deg); animation: ctaShine 4s ease-in-out 1.8s infinite; pointer-events: none; }
@keyframes ctaShine { 0% { left: -60%; } 24% { left: 130%; } 100% { left: 130%; } }

/* การ์ดลอยฝั่งขวาโผล่แบบสปริงก่อนแล้วค่อยลอยต่อ — ใช้ translate/scale property
   (คนละตัวกับ transform ของ floaty เลยไม่ชนกัน · เบราว์เซอร์เก่าได้ fade อย่างเดียว) */
@keyframes panelIn { from { opacity: 0; translate: 0 20px; scale: .82; } to { opacity: 1; translate: 0 0; scale: 1; } }
.hero-stage .hero-panel { animation: floaty 6s ease-in-out infinite, panelIn .65s cubic-bezier(.25,.9,.3,1.25) backwards; }
.hero-stage .hp-pay { animation-delay: 0s, .55s; }
.hero-stage .hp-order { animation-delay: -2.6s, .8s; }
.hero-stage .hero-chip { animation: floaty 5s ease-in-out infinite, panelIn .65s cubic-bezier(.25,.9,.3,1.25) backwards;
    animation-delay: -1.2s, 1.05s; }

/* แชทในจอมือถือทยอยเด้งเหมือนคุยกันจริง — ข้อความที่ JS เพิ่มทีหลัง (ตัวที่ 6+) เด้งทันทีไม่หน่วง */
@keyframes msgIn { from { opacity: 0; translate: 0 10px; scale: .94; } to { opacity: 1; translate: 0 0; scale: 1; } }
.sell-screen .ss-body > * { animation: msgIn .4s cubic-bezier(.2,.8,.3,1.2) backwards; }
.sell-screen .ss-body > :nth-child(1) { animation-delay: 1.05s; }
.sell-screen .ss-body > :nth-child(2) { animation-delay: 1.3s; }
.sell-screen .ss-body > :nth-child(3) { animation-delay: 1.6s; }
.sell-screen .ss-body > :nth-child(4) { animation-delay: 1.95s; }
.sell-screen .ss-body > :nth-child(5) { animation-delay: 2.3s; }

/* การ์ด/มือถือขยับตามเมาส์เบา ๆ — JS ตั้ง --mx/--my (-1..1) บน .hero-stage เฉพาะจอมีเมาส์ */
.hero-stage .hero-panel, .hero-stage .hero-chip, .hero-stage .phone-cluster {
    translate: calc(var(--mx, 0) * var(--pd, 0) * 1px) calc(var(--my, 0) * var(--pd, 0) * 1px);
    transition: translate .4s cubic-bezier(.2,.7,.3,1);
}
.hero-stage .hp-pay { --pd: 14; }
.hero-stage .hp-order { --pd: 10; }
.hero-stage .hero-chip { --pd: 18; }
.hero-stage .phone-cluster { --pd: 5; }

/* ---------------- Hologram phones: เครื่องข้างฉายฟังก์ชันวนลูปเป็นโฮโลแกรม ---------------- */
/* เครื่องข้างโปร่งแสงเรืองแสงฟ้า + ลอยขึ้นลง (ลอยด้วย translate property — ไม่ชน transform rotate เดิม) */
.phone-cluster .device.side.holo {
    background: linear-gradient(160deg, rgba(34,211,238,.20), rgba(13,148,136,.08) 55%, rgba(34,211,238,.16));
    box-shadow: 0 0 0 1px rgba(34,211,238,.4), 0 0 30px rgba(34,211,238,.3), inset 0 0 20px rgba(34,211,238,.14);
    animation: holoFloat 6s ease-in-out infinite, holoFlicker 5.2s steps(1, end) infinite,
        holoIn .7s cubic-bezier(.25,.9,.3,1.25) backwards;
}
/* กันกลุ่มมือถือที่กว้างขึ้นดัน grid จนคอลัมน์ข้อความแคบ — ให้ล้นคอลัมน์แทน (.lp กัน scroll แนวนอนอยู่แล้ว) */
.lp-hero-grid > * { min-width: 0; }
.phone-cluster .device { flex-shrink: 0; }

/* ถ่างเครื่องข้างออกจากเดิม (-74px) ให้เห็นเนื้อหาบนจอโฮโลแกรมชัดขึ้น */
.phone-cluster .device.side.side-l.holo { animation-delay: 0s, 0s, .4s;
    margin-right: -38px; transform: rotate(-7deg) translateY(6px) scale(.95); }
.phone-cluster .device.side.side-r.holo { animation-delay: -3s, -2.3s, .55s;
    margin-left: -38px; transform: rotate(7deg) translateY(6px) scale(.95); }
/* โผล่แบบสปริงด้วย opacity+scale เท่านั้น — ปล่อย translate ให้ holoFloat คุมตั้งแต่ต้น ไม่กระตุกตอนส่งไม้ */
@keyframes holoIn { from { opacity: 0; scale: .84; } to { opacity: .96; scale: 1; } }
@keyframes holoFloat { 0%, 100% { translate: 0 0; } 50% { translate: 0 -11px; } }
@keyframes holoFlicker { 0%, 100% { opacity: .96; } 7% { opacity: .84; } 8.5% { opacity: .96; }
    43% { opacity: .9; } 44.5% { opacity: .96; } 71% { opacity: .86; } 72.5% { opacity: .96; } }

/* จอโฮโลแกรม: พื้นเข้มอมฟ้า + scanline + แสงกวาดลงเป็นระยะ */
.holo-screen { background: linear-gradient(175deg, #06232b, #031a20 60%, #052a30); position: relative; }
.holo-screen::after { content: ''; position: absolute; inset: 0; z-index: 6; pointer-events: none; border-radius: inherit;
    background: repeating-linear-gradient(0deg, rgba(34,211,238,.07) 0 1px, transparent 1px 3px); }
.holo-screen::before { content: ''; position: absolute; left: 0; right: 0; top: -45%; height: 36%; z-index: 5; pointer-events: none;
    background: linear-gradient(180deg, transparent, rgba(34,211,238,.2), transparent);
    animation: holoScan 4.4s linear infinite; }
@keyframes holoScan { to { top: 112%; } }

/* ฉากฟังก์ชันวนลูป: โชว์ทีละฉาก ฉากละ ~4.5 วิ (ฉากแรกเป็นสถานะพื้น — โหมดลดการเคลื่อนไหวเห็นฉากนี้) */
.holo-scene { position: absolute; inset: 0; padding: 18px 14px 14px; display: flex; flex-direction: column; gap: 9px;
    color: #b9ecfa; font-size: 11.5px; opacity: 0; animation: sceneLoop 13.5s linear infinite; }
.holo-scene:nth-child(1) { animation-delay: -13.5s; opacity: 1; }
.holo-scene:nth-child(2) { animation-delay: -9s; }
.holo-scene:nth-child(3) { animation-delay: -4.5s; }
@keyframes sceneLoop {
    0% { opacity: 1; translate: 0 0; }
    28% { opacity: 1; translate: 0 0; }
    33.3% { opacity: 0; translate: 0 -9px; }
    95% { opacity: 0; translate: 0 9px; }
    100% { opacity: 1; translate: 0 0; }
}

/* ชิ้นส่วน UI ในฉากโฮโลแกรม */
.hs-head { display: flex; align-items: center; gap: 6px; margin-bottom: 2px; }
.hs-head b { color: #eafcff; font-size: 12.5px; }
.hs-ic { width: 24px; height: 24px; border-radius: 8px; display: grid; place-items: center; font-size: 12px;
    background: rgba(34,211,238,.16); border: 1px solid rgba(34,211,238,.3); flex-shrink: 0; }
.hs-tag { margin-left: auto; font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 100px;
    background: rgba(34,211,238,.14); border: 1px solid rgba(34,211,238,.35); color: #7fe7f7; white-space: nowrap; }
.hs-row { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 7px 9px;
    background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.16); border-radius: 9px; }
.hs-row span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-row b { color: #7fe7f7; flex-shrink: 0; }
.hs-bar { height: 5px; border-radius: 100px; background: rgba(34,211,238,.12); overflow: hidden; }
.hs-bar i { display: block; height: 100%; width: 100%; transform-origin: left; border-radius: 100px; background: linear-gradient(90deg, #0d9488, #22d3ee);
    animation: hpFill 2.6s ease-in-out infinite alternate; }
.hs-foot { display: flex; align-items: baseline; gap: 6px; margin-top: auto; padding-top: 6px;
    border-top: 1px dashed rgba(34,211,238,.25); }
.hs-foot b { color: #eafcff; font-size: 14px; }
.hs-up { margin-left: auto; color: #5eead4; font-weight: 800; font-size: 10.5px; }
.hs-chips { display: flex; gap: 5px; flex-wrap: wrap; }
.hs-chips span { font-size: 9.5px; font-weight: 700; padding: 3px 8px; border-radius: 100px;
    background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.3); color: #9feef9; }
.hs-track { display: flex; gap: 4px; }
.hs-track i { flex: 1; height: 5px; border-radius: 100px; background: rgba(34,211,238,.14); }
.hs-track i.on { background: linear-gradient(90deg, #0d9488, #22d3ee); box-shadow: 0 0 8px rgba(34,211,238,.5); }
.hs-qr { flex: 1; display: grid; place-items: center; }
.hs-qr i { width: 92px; height: 92px; border-radius: 10px; border: 1px solid rgba(34,211,238,.4);
    background:
        repeating-linear-gradient(0deg, rgba(34,211,238,.55) 0 5px, transparent 5px 11px),
        repeating-linear-gradient(90deg, rgba(34,211,238,.55) 0 5px, transparent 5px 11px),
        rgba(3,26,32,.9);
    background-blend-mode: screen; box-shadow: 0 0 22px rgba(34,211,238,.25); }
.hs-chat { display: flex; align-items: center; gap: 7px; padding: 6px 9px;
    background: rgba(34,211,238,.08); border: 1px solid rgba(34,211,238,.16); border-radius: 9px; }
.hs-chat > span:nth-child(2) { flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.hs-chat b { min-width: 17px; height: 17px; border-radius: 100px; display: grid; place-items: center;
    background: linear-gradient(135deg, #0d9488, #22d3ee); color: #032025; font-size: 10px; }
.hs-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--c, #22d3ee); flex-shrink: 0;
    box-shadow: 0 0 7px var(--c, #22d3ee); }
.hs-bub { max-width: 88%; padding: 6px 10px; border-radius: 11px; font-size: 11px; line-height: 1.45; }
.hs-bub.in { align-self: flex-start; background: rgba(34,211,238,.1); border: 1px solid rgba(34,211,238,.2);
    border-bottom-left-radius: 4px; }
.hs-bub.out { align-self: flex-end; background: rgba(13,148,136,.4); border: 1px solid rgba(45,212,191,.35);
    border-bottom-right-radius: 4px; color: #dffcf6; }
.hs-typing { align-self: flex-end; display: flex; gap: 4px; padding: 7px 10px; border-radius: 11px;
    background: rgba(13,148,136,.28); border: 1px solid rgba(45,212,191,.3); }
.hs-typing i { width: 5px; height: 5px; border-radius: 50%; background: #5eead4; animation: ssType 1.2s infinite; }
.hs-typing i:nth-child(2) { animation-delay: .2s; }
.hs-typing i:nth-child(3) { animation-delay: .4s; }
.hs-chart { flex: 1; display: flex; align-items: flex-end; gap: 6px; padding: 4px 4px 0; }
.hs-chart i { flex: 1; height: var(--h, 40%); border-radius: 4px 4px 0 0;
    background: linear-gradient(180deg, #22d3ee, #0d9488); box-shadow: 0 0 10px rgba(34,211,238,.35);
    animation: hsGrow .7s cubic-bezier(.2,.8,.3,1.1) backwards; }
.hs-chart i:nth-child(2) { animation-delay: .07s; } .hs-chart i:nth-child(3) { animation-delay: .14s; }
.hs-chart i:nth-child(4) { animation-delay: .21s; } .hs-chart i:nth-child(5) { animation-delay: .28s; }
.hs-chart i:nth-child(6) { animation-delay: .35s; } .hs-chart i:nth-child(7) { animation-delay: .42s; }
@keyframes hsGrow { from { scale: 1 0; } to { scale: 1 1; } }
.hs-chart i { transform-origin: bottom; }

/* แท่นโฮโลแกรมใต้กลุ่มมือถือ: จานเรืองแสง + วงแหวนกระจาย + ลำแสงฉายขึ้น */
.holo-base { position: absolute; bottom: -36px; left: 50%; translate: -50% 0; width: min(440px, 92vw); height: 120px;
    z-index: 0; pointer-events: none; }
.hb-disc { position: absolute; left: 0; right: 0; bottom: 0; height: 74px; border-radius: 50%;
    background: radial-gradient(ellipse at center, rgba(34,211,238,.38), rgba(34,211,238,.1) 55%, transparent 72%);
    filter: blur(2px); }
.hb-ring { position: absolute; left: 50%; bottom: 14px; width: 250px; height: 62px; border-radius: 50%;
    border: 1.5px solid rgba(34,211,238,.55); translate: -50% 50%; opacity: .3;
    animation: hbRing 3.6s ease-out infinite; }
.hb-ring.r2 { animation-delay: 1.2s; }
.hb-ring.r3 { animation-delay: 2.4s; }
@keyframes hbRing { 0% { scale: .5; opacity: .8; } 100% { scale: 1.55; opacity: 0; } }
.hb-cone { position: absolute; left: 50%; bottom: 42px; translate: -50% 0; width: 320px; height: 360px; opacity: .45;
    background: linear-gradient(0deg, rgba(34,211,238,.18), rgba(34,211,238,.05) 55%, transparent);
    clip-path: polygon(37% 0, 63% 0, 100% 100%, 0 100%);
    animation: hbCone 4.8s ease-in-out infinite; }
@keyframes hbCone { 0%, 100% { opacity: .34; } 50% { opacity: .55; } }
@media (max-width: 940px) { .hb-cone { width: 230px; height: 260px; } .hb-ring { width: 190px; height: 48px; } }

/* จัดการ์ดลอยหลบจอโฮโลแกรม — ชำระเงินขึ้นมุมบนซ้าย ออเดอร์ลงล่างขวา */
.hp-pay { top: -18px; left: -70px; }
.hp-order { bottom: 20px; right: -96px; }
@media (max-width: 1100px) { .hp-pay { left: -44px; } .hp-order { right: -56px; } }

/* จอแคบ (แท็บเล็ตนอน): ย่อเครื่องข้างและซุกหลังเครื่องกลางมากขึ้น กันโดนขอบจอตัดกลางเนื้อหา */
@media (max-width: 1100px) {
    .phone-cluster .device.side.holo { width: 176px; height: 376px; }
    .phone-cluster .device.side.side-l.holo { margin-right: -66px; }
    .phone-cluster .device.side.side-r.holo { margin-left: -66px; }
}

/* ผู้ใช้ตั้งค่าลดการเคลื่อนไหว: ตัดอนิเมชันตกแต่งทั้งหน้า landing (เนื้อหาโชว์ทันที)
   ต้องล้าง delay ด้วย — ไม่งั้นของที่หน่วงคิวไว้จะค้างล่องหนจนกว่าจะถึงคิวตัวเอง */
@media (prefers-reduced-motion: reduce) {
    .lp *, .lp *::before, .lp *::after {
        animation-duration: .01ms !important;
        animation-delay: 0s !important;
        animation-iteration-count: 1 !important;
        transition-duration: .01ms !important;
        transition-delay: 0s !important;
    }
}

/* ---------------- Animation ที่มองไม่เห็น ต้องไม่กินเฟรม ----------------
   หน้านี้มี element ที่ animation วิ่งพร้อมกัน ~56 ตัว และมันวิ่งต่อแม้เลื่อนผ่านไปแล้ว
   วัดจริง (scroll 130 เฟรม): ปล่อยวิ่งทั้งหมด median 33.3ms/เฟรม · หยุดทั้งหมด 16.7ms
   ⇒ หยุดเฉพาะตัวที่อยู่นอกจอ ได้ 60fps โดยที่คนดูไม่รู้สึกว่าอะไรหายไป
   (คลาสนี้ถูกใส่/ถอดโดย IntersectionObserver ใน index.php) */
.anim-off, .anim-off *, .anim-off *::before, .anim-off *::after { animation-play-state: paused !important; }

/* เคารพการตั้งค่า "ลดการเคลื่อนไหว" ของระบบผู้ใช้ */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: .01ms !important; animation-iteration-count: 1 !important;
        transition-duration: .01ms !important; scroll-behavior: auto !important;
    }
}
