/* PostJaa - Public site (landing) */
:root {
    --ink: #0b1220;
    --ink-2: #121b30;
    --ink-3: #1b2640;
    --text: #1e293b;
    --muted: #64748b;
    --line: #e6e9f0;
    --bg: #ffffff;
    --soft: #f5f7fb;
    --brand: #1d9bf0;
    --brand-dark: #1080d0;
    --violet: #7c5cff;
    --mint: #19c37d;
    --sun: #ffb020;
    --radius: 18px;
    --shadow-sm: 0 2px 8px rgba(15, 23, 42, .06);
    --shadow: 0 12px 32px rgba(15, 23, 42, .10);
    --shadow-lg: 0 30px 80px rgba(8, 15, 35, .35);
    --ease: cubic-bezier(.2, .8, .2, 1);
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
    margin: 0;
    font-family: 'IBM Plex Sans Thai', 'Noto Sans Thai', system-ui, -apple-system, 'Segoe UI', sans-serif;
    color: var(--text);
    background: var(--bg);
    line-height: 1.7;
    -webkit-font-smoothing: antialiased;
    overflow-x: hidden;
}
h1, h2, h3, h4, h5 { color: var(--ink); font-weight: 700; line-height: 1.3; }
a { color: var(--brand-dark); }
img { max-width: 100%; }
.skip-link { position: absolute; left: -999px; top: 8px; z-index: 2000; background: #fff; padding: 8px 14px; border-radius: 8px; }
.skip-link:focus { left: 12px; }
:focus-visible { outline: 3px solid rgba(29, 155, 240, .55); outline-offset: 2px; }

/* ---------- Buttons ---------- */
.btn-brand, .btn-ghost, .btn-light-soft {
    display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
    border-radius: 999px; padding: .8rem 1.5rem; font-weight: 600; text-decoration: none;
    transition: transform .25s var(--ease), box-shadow .25s var(--ease), background .25s;
    border: 1px solid transparent; cursor: pointer; white-space: nowrap;
}
.btn-brand {
    color: #fff; background: linear-gradient(135deg, var(--brand), var(--violet));
    box-shadow: 0 10px 24px rgba(29, 155, 240, .35);
    background-size: 160% 160%;
}
.btn-brand:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 16px 34px rgba(124, 92, 255, .4); background-position: 100% 0; }
.btn-ghost { color: #fff; border-color: rgba(255, 255, 255, .28); background: rgba(255, 255, 255, .06); }
.btn-ghost:hover { color: #fff; background: rgba(255, 255, 255, .14); transform: translateY(-2px); }
.btn-light-soft { color: var(--ink); background: var(--soft); border-color: var(--line); }
.btn-light-soft:hover { color: var(--ink); background: #fff; box-shadow: var(--shadow); transform: translateY(-2px); }
.btn-lg-pill { padding: 1rem 1.9rem; font-size: 1.05rem; }

/* ---------- Navbar ---------- */
.site-nav {
    position: fixed; inset: 0 0 auto 0; z-index: 1030;
    transition: background .3s, box-shadow .3s, padding .3s;
    padding: 1rem 0;
}
.site-nav.scrolled { background: rgba(11, 18, 32, .82); backdrop-filter: blur(14px); box-shadow: 0 6px 24px rgba(0, 0, 0, .18); padding: .55rem 0; }
.site-nav .container { display: flex; align-items: center; gap: 1rem; }
.brand { display: inline-flex; align-items: center; gap: .55rem; color: #fff; text-decoration: none; font-weight: 700; font-size: 1.3rem; }
.brand:hover { color: #fff; }
.brand-mark {
    width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center;
    background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff; font-size: 1.05rem;
    box-shadow: 0 6px 16px rgba(29, 155, 240, .45);
}
.nav-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; list-style: none; padding: 0; margin-bottom: 0; }
.nav-links a { color: rgba(255, 255, 255, .78); text-decoration: none; padding: .5rem .85rem; border-radius: 999px; font-weight: 500; transition: color .2s, background .2s; }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255, 255, 255, .08); }
.nav-actions { display: flex; align-items: center; gap: .5rem; }
.nav-actions .btn-brand, .nav-actions .btn-ghost { padding: .55rem 1.15rem; }
.nav-toggle { display: none; margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.7rem; line-height: 1; padding: .25rem .4rem; }
@media (max-width: 991.98px) {
    .nav-toggle { display: block; }
    .nav-menu {
        position: fixed; inset: 64px 12px auto 12px; background: var(--ink-2); border: 1px solid rgba(255, 255, 255, .08);
        border-radius: 20px; padding: 1rem; box-shadow: var(--shadow-lg);
        opacity: 0; transform: translateY(-10px) scale(.98); pointer-events: none; transition: .25s var(--ease);
    }
    .nav-menu.open { opacity: 1; transform: none; pointer-events: auto; }
    .nav-links { flex-direction: column; align-items: stretch; margin: 0 0 .75rem; }
    .nav-links a { padding: .75rem 1rem; }
    .nav-actions { flex-direction: column; align-items: stretch; }
}
@media (min-width: 992px) { .nav-menu { display: flex; align-items: center; gap: 1rem; margin-left: auto; } }

/* ---------- Hero ---------- */
.hero {
    position: relative; overflow: hidden; color: #cbd5e1;
    background: radial-gradient(1200px 600px at 80% -10%, #1a2a52 0%, transparent 60%), var(--ink);
    padding: 140px 0 110px;
}
.hero::after { /* เส้นตาราง */
    content: ""; position: absolute; inset: 0; pointer-events: none;
    background-image: linear-gradient(rgba(255, 255, 255, .04) 1px, transparent 1px), linear-gradient(90deg, rgba(255, 255, 255, .04) 1px, transparent 1px);
    background-size: 48px 48px;
    mask-image: radial-gradient(ellipse at 50% 30%, #000 30%, transparent 75%);
}
.aurora { position: absolute; border-radius: 50%; filter: blur(70px); opacity: .55; pointer-events: none; }
.aurora-1 { width: 520px; height: 520px; background: var(--brand); top: -160px; left: -120px; animation: drift 18s ease-in-out infinite; }
.aurora-2 { width: 460px; height: 460px; background: var(--violet); bottom: -200px; right: 10%; animation: drift 22s ease-in-out infinite reverse; }
.aurora-3 { width: 300px; height: 300px; background: #12c2e9; top: 30%; right: -80px; opacity: .35; animation: drift 26s ease-in-out infinite; }
@keyframes drift {
    0%, 100% { transform: translate(0, 0) scale(1); }
    33% { transform: translate(60px, 40px) scale(1.1); }
    66% { transform: translate(-40px, 30px) scale(.95); }
}
.hero .container { position: relative; z-index: 2; }
.eyebrow {
    display: inline-flex; align-items: center; gap: .5rem; padding: .4rem .9rem; border-radius: 999px;
    background: rgba(255, 255, 255, .07); border: 1px solid rgba(255, 255, 255, .12); color: #e2e8f0; font-size: .9rem;
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 0 rgba(25, 195, 125, .6); animation: ping 2s infinite; }
@keyframes ping { 0% { box-shadow: 0 0 0 0 rgba(25, 195, 125, .6); } 80%, 100% { box-shadow: 0 0 0 10px rgba(25, 195, 125, 0); } }
.hero h1 { color: #fff; font-size: clamp(2.2rem, 5vw, 3.6rem); letter-spacing: -.01em; margin: 1.2rem 0 1rem; }
.grad-text {
    background: linear-gradient(90deg, #5cc8ff, #a78bfa, #5cc8ff); background-size: 200% auto;
    -webkit-background-clip: text; background-clip: text; color: transparent; animation: shine 6s linear infinite;
}
@keyframes shine { to { background-position: 200% center; } }
.hero-lead { font-size: 1.15rem; max-width: 560px; color: #b8c4d6; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin: 2rem 0 1.6rem; }
.hero-points { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; list-style: none; padding: 0; margin: 0; font-size: .95rem; }
.hero-points i { color: var(--mint); margin-right: .35rem; }

/* App mockup */
.mockup-wrap { position: relative; perspective: 1400px; }
.mockup {
    position: relative; background: rgba(18, 27, 48, .9); border: 1px solid rgba(255, 255, 255, .1);
    border-radius: 24px; box-shadow: var(--shadow-lg); padding: 18px; color: #e2e8f0;
    transform: rotateY(-8deg) rotateX(4deg); transition: transform .6s var(--ease);
    animation: floaty 7s ease-in-out infinite;
}
.mockup-wrap:hover .mockup { transform: rotateY(0) rotateX(0); }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
.mockup-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.mockup-bar span { width: 10px; height: 10px; border-radius: 50%; background: #334155; }
.mockup-bar span:nth-child(1) { background: #ff5f57; } .mockup-bar span:nth-child(2) { background: #febc2e; } .mockup-bar span:nth-child(3) { background: #28c840; }
.mockup-bar b { margin-left: auto; font-weight: 500; font-size: .8rem; color: #94a3b8; }
.composer { background: var(--ink-3); border-radius: 16px; padding: 14px; border: 1px solid rgba(255, 255, 255, .06); }
.composer-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; font-size: .85rem; color: #94a3b8; }
.avatar { width: 34px; height: 34px; border-radius: 50%; background: linear-gradient(135deg, #5cc8ff, #a78bfa); display: grid; place-items: center; color: #fff; font-weight: 700; font-size: .85rem; flex: none; }
.composer-text { min-height: 52px; color: #f1f5f9; font-size: .98rem; }
.caret { display: inline-block; width: 2px; height: 1.1em; background: var(--brand); vertical-align: -3px; margin-left: 1px; animation: blink 1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.composer-foot { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding-top: 10px; border-top: 1px solid rgba(255, 255, 255, .06); font-size: .8rem; color: #94a3b8; }
.composer-foot i { color: var(--brand); font-size: 1rem; }
.chip-time { margin-left: auto; padding: .25rem .7rem; border-radius: 999px; background: rgba(29, 155, 240, .14); color: #7cd0ff; }
.btn-schedule { padding: .3rem .9rem; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 600; border: 0; font-size: .8rem; }
.btn-schedule.pulse { animation: press .5s var(--ease); }
@keyframes press { 40% { transform: scale(.9); } 100% { transform: scale(1); } }
.char-count { font-variant-numeric: tabular-nums; }

.queue-title { display: flex; align-items: center; justify-content: space-between; margin: 16px 2px 8px; font-size: .82rem; color: #94a3b8; }
.queue { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.queue li {
    min-width: 0; /* grid item: ให้ข้อความตัด ... แทนการล้นกรอบ */
    display: flex; align-items: center; gap: 10px; padding: 10px 12px; border-radius: 14px;
    background: rgba(255, 255, 255, .04); border: 1px solid rgba(255, 255, 255, .06); font-size: .85rem;
    animation: slideIn .6s var(--ease) both;
}
.queue li .q-text { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #e2e8f0; }
.queue li .q-time { color: #94a3b8; font-size: .78rem; font-variant-numeric: tabular-nums; }
.status { padding: .15rem .6rem; border-radius: 999px; font-size: .72rem; font-weight: 600; transition: background .4s, color .4s; }
.status.wait { background: rgba(255, 176, 32, .15); color: #ffcf70; }
.status.done { background: rgba(25, 195, 125, .16); color: #5be3a6; }
@keyframes slideIn { from { opacity: 0; transform: translateY(-14px) scale(.97); } to { opacity: 1; transform: none; } }

.float-chip {
    position: absolute; z-index: 3; display: flex; align-items: center; gap: .55rem;
    padding: .6rem .9rem; border-radius: 14px; background: #fff; color: var(--ink); font-size: .85rem; font-weight: 600;
    box-shadow: var(--shadow); animation: floaty 6s ease-in-out infinite;
}
.float-chip i { width: 28px; height: 28px; border-radius: 9px; display: grid; place-items: center; color: #fff; }
.float-chip small { display: block; font-weight: 400; color: var(--muted); font-size: .72rem; line-height: 1.2; }
.chip-a { top: -18px; left: -26px; animation-delay: -2s; }
.chip-a i { background: var(--mint); }
.chip-b { bottom: -34px; right: -18px; animation-delay: -4s; }
.chip-b i { background: var(--violet); }
.toast-posted {
    position: absolute; z-index: 4; left: 50%; bottom: -22px; translate: -50% 0;
    display: flex; align-items: center; gap: .5rem; padding: .55rem 1rem; border-radius: 999px;
    background: var(--mint); color: #04261a; font-weight: 700; font-size: .85rem; box-shadow: 0 10px 24px rgba(25, 195, 125, .4);
    opacity: 0; transform: translateY(10px); transition: .4s var(--ease);
}
.toast-posted.show { opacity: 1; transform: none; }
@media (max-width: 991.98px) {
    .hero { padding: 120px 0 90px; text-align: center; }
    .hero-lead { margin: 0 auto; }
    .hero-cta, .hero-points { justify-content: center; }
    .mockup-wrap { margin-top: 3.5rem; }
    .mockup { transform: none; text-align: left; }
    .chip-a { left: 0; } .chip-b { display: none; }
}
@media (max-width: 575.98px) {
    .composer-foot .bi-emoji-smile, .composer-foot .bi-calendar-event { display: none; }
    .chip-time, .btn-schedule { white-space: nowrap; }
    .mockup { padding: 14px; }
}

/* ---------- Marquee ---------- */
.marquee { background: var(--ink-2); border-top: 1px solid rgba(255, 255, 255, .06); padding: 18px 0; overflow: hidden; color: #94a3b8; }
.marquee-track { display: flex; gap: 3rem; width: max-content; animation: marquee 40s linear infinite; }
.marquee:hover .marquee-track { animation-play-state: paused; }
.marquee span { display: inline-flex; align-items: center; gap: .6rem; white-space: nowrap; font-weight: 500; }
.marquee span i { color: var(--brand); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* ---------- Sections ---------- */
.section { padding: 100px 0; position: relative; }
.section-soft { background: var(--soft); }
.section-head { max-width: 700px; margin: 0 auto 3.5rem; text-align: center; }
.section-kicker { display: inline-block; color: var(--brand-dark); font-weight: 700; font-size: .9rem; letter-spacing: .04em; margin-bottom: .6rem; }
.section-head h2 { font-size: clamp(1.8rem, 3.5vw, 2.6rem); margin-bottom: .8rem; }
.section-head p { color: var(--muted); font-size: 1.08rem; margin: 0; }

/* Steps */
.steps { position: relative; display: grid; grid-template-columns: repeat(3, 1fr); gap: 2rem; }
.steps-line {
    position: absolute; top: 34px; left: 16%; right: 16%; height: 2px;
    background: linear-gradient(90deg, var(--brand), var(--violet)); transform: scaleX(0); transform-origin: left;
    transition: transform 1.4s var(--ease) .2s;
}
.steps.in-view .steps-line { transform: scaleX(1); }
.step { position: relative; text-align: center; padding: 0 .5rem; }
.step-num {
    width: 68px; height: 68px; margin: 0 auto 1.2rem; border-radius: 22px; display: grid; place-items: center;
    background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow); font-size: 1.6rem; color: var(--brand-dark);
    position: relative; z-index: 1;
}
.step-num b { position: absolute; top: -8px; right: -8px; width: 26px; height: 26px; border-radius: 50%; background: var(--ink); color: #fff; font-size: .8rem; display: grid; place-items: center; }
.step h3 { font-size: 1.2rem; }
.step p { color: var(--muted); margin: 0; }
@media (max-width: 767.98px) { .steps { grid-template-columns: 1fr; } .steps-line { display: none; } }

/* Features */
.feature-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.25rem; }
@media (max-width: 1199.98px) { .feature-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 575.98px) { .feature-grid { grid-template-columns: 1fr; } }
.feature {
    position: relative; padding: 1.6rem; border-radius: var(--radius); background: #fff; border: 1px solid var(--line);
    transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s; overflow: hidden;
}
.feature::before {
    content: ""; position: absolute; inset: 0; opacity: 0; transition: opacity .35s;
    background: radial-gradient(400px 160px at var(--mx, 50%) var(--my, 0%), rgba(29, 155, 240, .10), transparent 70%);
}
.feature:hover { transform: translateY(-6px); box-shadow: var(--shadow); border-color: rgba(29, 155, 240, .35); }
.feature:hover::before { opacity: 1; }
.feature-icon {
    width: 50px; height: 50px; border-radius: 15px; display: grid; place-items: center; font-size: 1.35rem; color: #fff;
    background: linear-gradient(135deg, var(--brand), var(--violet)); margin-bottom: 1rem; transition: transform .35s var(--ease);
}
.feature:hover .feature-icon { transform: rotate(-8deg) scale(1.08); }
.feature h3 { font-size: 1.08rem; margin-bottom: .45rem; }
.feature p { color: var(--muted); font-size: .95rem; margin: 0; position: relative; }

/* Showcase (split) */
.showcase { display: grid; grid-template-columns: 1.05fr 1fr; gap: 4rem; align-items: center; }
@media (max-width: 991.98px) { .showcase { grid-template-columns: 1fr; gap: 2.5rem; } }
.check-list { list-style: none; padding: 0; margin: 1.5rem 0 0; display: grid; gap: .9rem; }
.check-list li { display: flex; gap: .8rem; }
.check-list i { flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: rgba(25, 195, 125, .14); color: #0f9d63; font-size: .9rem; margin-top: 2px; }
.calendar-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--shadow); padding: 1.4rem; }
.calendar-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 1rem; font-weight: 700; color: var(--ink); }
.calendar-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 6px; text-align: center; font-size: .8rem; }
.calendar-grid .dow { color: var(--muted); font-weight: 600; padding-bottom: 4px; }
.calendar-grid .day { aspect-ratio: 1; border-radius: 10px; display: grid; place-items: center; background: var(--soft); color: var(--text); position: relative; }
.calendar-grid .day.has { background: rgba(29, 155, 240, .12); color: var(--brand-dark); font-weight: 700; }
.calendar-grid .day.has::after { content: ""; position: absolute; bottom: 5px; width: 5px; height: 5px; border-radius: 50%; background: var(--brand); }
.calendar-grid .day.today { background: var(--ink); color: #fff; }
.calendar-grid .day.pop { animation: pop .5s var(--ease) both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
.calendar-foot { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: 1rem; }
.tag { display: inline-flex; align-items: center; gap: .35rem; padding: .3rem .75rem; border-radius: 999px; font-size: .8rem; background: var(--soft); border: 1px solid var(--line); }
.tag i { color: var(--brand); }

/* Pricing */
.price-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 1.25rem; align-items: stretch; }
.price-card {
    position: relative; display: flex; flex-direction: column; padding: 2rem 1.6rem; border-radius: 22px; background: #fff;
    border: 1px solid var(--line); transition: transform .35s var(--ease), box-shadow .35s var(--ease);
}
.price-card:hover { transform: translateY(-6px); box-shadow: var(--shadow); }
.price-card.featured { border: 0; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, var(--brand), var(--violet), var(--brand)) border-box; border: 2px solid transparent; box-shadow: 0 18px 50px rgba(29, 155, 240, .18); }
.price-badge { position: absolute; top: -13px; left: 50%; translate: -50% 0; padding: .25rem .85rem; border-radius: 999px; background: linear-gradient(135deg, var(--brand), var(--violet)); color: #fff; font-size: .78rem; font-weight: 700; white-space: nowrap; }
.price-name { font-weight: 700; color: var(--ink); font-size: 1.15rem; }
.price-desc { color: var(--muted); font-size: .9rem; min-height: 2.6em; }
.price-amount { display: flex; align-items: baseline; gap: .35rem; margin: 1rem 0 .3rem; }
.price-amount b { font-size: 2.6rem; color: var(--ink); line-height: 1; font-variant-numeric: tabular-nums; }
.price-amount span { color: var(--muted); }
.price-meta { font-size: .88rem; color: var(--brand-dark); font-weight: 600; margin-bottom: 1.2rem; }
.price-list { list-style: none; padding: 0; margin: 0 0 1.6rem; display: grid; gap: .55rem; font-size: .93rem; flex: 1; }
.price-list li { display: flex; gap: .55rem; }
.price-list i { color: var(--mint); }
.price-card .btn-brand, .price-card .btn-light-soft { width: 100%; }
.price-note { text-align: center; color: var(--muted); font-size: .92rem; margin-top: 1.6rem; }

/* FAQ */
.faq { max-width: 820px; margin: 0 auto; }
.faq-item { border: 1px solid var(--line); border-radius: 16px; background: #fff; margin-bottom: .75rem; overflow: hidden; transition: box-shadow .3s, border-color .3s; }
.faq-item.open { box-shadow: var(--shadow-sm); border-color: rgba(29, 155, 240, .35); }
.faq-q { width: 100%; text-align: left; background: none; border: 0; padding: 1.1rem 1.3rem; display: flex; align-items: center; gap: 1rem; font-weight: 600; color: var(--ink); font-size: 1.02rem; }
.faq-q i { margin-left: auto; transition: transform .3s var(--ease); color: var(--brand-dark); }
.faq-item.open .faq-q i { transform: rotate(45deg); }
.faq-a { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .35s var(--ease); }
.faq-item.open .faq-a { grid-template-rows: 1fr; }
.faq-a > div { overflow: hidden; }
.faq-a p { margin: 0; padding: 0 1.3rem 1.2rem; color: var(--muted); }

/* CTA */
.cta {
    position: relative; overflow: hidden; border-radius: 28px; padding: 4rem 2rem; text-align: center; color: #cbd5e1;
    background: linear-gradient(120deg, #0b1220, #172554, #2e1065, #0b1220); background-size: 300% 300%; animation: gradmove 14s ease infinite;
}
@keyframes gradmove { 0%, 100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.cta h2 { color: #fff; font-size: clamp(1.7rem, 3.5vw, 2.5rem); }
.cta .hero-cta { justify-content: center; margin-bottom: 0; }
.cta .spark { position: absolute; width: 6px; height: 6px; border-radius: 50%; background: #fff; opacity: .5; animation: rise 8s linear infinite; }
@keyframes rise { from { transform: translateY(0); opacity: 0; } 15% { opacity: .6; } to { transform: translateY(-420px); opacity: 0; } }

/* Footer */
.site-footer { background: var(--ink); color: #94a3b8; padding: 70px 0 30px; margin-top: 100px; }
.site-footer h3 { color: #fff; font-size: 1rem; margin-bottom: 1rem; }
.site-footer a { color: #94a3b8; text-decoration: none; }
.site-footer a:hover { color: #fff; }
.site-footer ul { list-style: none; padding: 0; margin: 0; display: grid; gap: .5rem; }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, .08); margin-top: 3rem; padding-top: 1.5rem; display: flex; flex-wrap: wrap; justify-content: space-between; gap: 1rem; font-size: .9rem; }

/* ---------- Reveal on scroll ---------- */
.reveal { opacity: 0; transform: translateY(28px); transition: opacity .8s var(--ease), transform .8s var(--ease); transition-delay: var(--d, 0s); }
.reveal.in { opacity: 1; transform: none; }
.reveal-left { transform: translateX(-34px); }
.reveal-right { transform: translateX(34px); }
.reveal-zoom { transform: scale(.94); }
.no-js .reveal { opacity: 1; transform: none; }

/* ---------- Mobile polish ---------- */
html, body { overflow-x: clip; } /* กันเลื่อนซ้ายขวาบน iOS (overflow-x: hidden บน body ไม่พอ) */
.brand { min-width: 0; }
.brand-text { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mockup-bar b { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; padding-left: 8px; }
@media (max-width: 767.98px) {
    .section { padding: 72px 0; }
    .section-head { margin-bottom: 2.5rem; }
    .cta { padding: 3rem 1.25rem; border-radius: 22px; }
    .site-footer { margin-top: 72px; }
    .feature { padding: 1.3rem; }
    .price-card { padding: 1.8rem 1.3rem; }
}
@media (max-width: 420px) {
    .brand { font-size: 1.1rem; }
    .brand-mark { width: 32px; height: 32px; }
    .hero h1 { font-size: 1.95rem; }
    .hero-cta { flex-direction: column; align-items: stretch; }
    .hero-cta a { width: 100%; }
    .btn-lg-pill { padding: .9rem 1.4rem; }
    .float-chip { display: none; }
    .composer-foot .char-count { display: none; }
    .faq-q { padding: 1rem 1.05rem; font-size: .97rem; }
    .faq-a p { padding: 0 1.05rem 1.1rem; }
}

@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; scroll-behavior: auto !important; }
    .reveal { opacity: 1; transform: none; }
    .marquee-track { animation: none; }
}
