/* =====================================================================
   eCommittee — halaman utama awam (ecommittee.app)
   Hero: perbualan kumpulan WhatsApp AJK yang dijawab oleh eCommittee.
   Menggunakan token warna dan fon daripada app.css.
   ===================================================================== */
.lp { background: var(--bg); color: var(--ink); }
.lp-wrap { width: min(1160px, 100% - 2.5rem); margin-inline: auto; }
.lp :focus-visible { outline: 3px solid var(--gold-2); outline-offset: 3px; }

/* Jalur promosi */
.lp-trialbar { background: linear-gradient(90deg, #E9C95C, var(--gold) 60%, #C79C1E); color: var(--emerald-ink); }
.lp-trialbar-in { display: flex; align-items: center; justify-content: center; gap: .9rem 1.4rem; flex-wrap: wrap; padding: .6rem 0; text-align: center; }
.lp-trialbar p { margin: 0; font-size: .92rem; font-weight: 550; }
.lp-trialbar-btn {
    font-size: .85rem; font-weight: 750; color: #fff; text-decoration: none; white-space: nowrap;
    background: var(--emerald-deep); padding: .38rem .95rem; border-radius: 999px;
}
.lp-trialbar-btn:hover { color: #fff; background: var(--emerald-ink); }

/* Navigasi */
.lp-nav {
    position: sticky; top: 0; z-index: 50; background: rgba(7, 31, 27, .9);
    -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-bottom: 1px solid rgba(255,255,255,.06);
}
.lp-nav-in { display: flex; align-items: center; gap: 1.5rem; height: 66px; }
.lp-nav .mark { width: 34px; height: 34px; font-size: 1.15rem; border-radius: 11px; }
.lp-links { display: flex; gap: 1.5rem; margin-left: auto; }
.lp-links a { color: #BFD3CD; text-decoration: none; font-size: .9rem; font-weight: 600; }
.lp-links a:hover { color: #fff; }
.lp-nav-cta { display: flex; gap: .5rem; }
.lp-nav .btn-ghost { background: transparent; color: #fff; border-color: rgba(255,255,255,.24); box-shadow: none; }
.lp-nav .btn-ghost:hover { background: rgba(255,255,255,.08); color: #fff; }

.btn-gold {
    background: linear-gradient(135deg, #F2DB8A 0%, var(--gold) 55%, #B18A18 100%); color: var(--emerald-ink); border-color: transparent;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 14px 28px -12px rgba(201,162,39,.7);
}
.btn-gold:hover { color: var(--emerald-ink); filter: brightness(1.05); }
.btn-onDark { background: rgba(255,255,255,.06); color: #fff; border-color: rgba(255,255,255,.24); }
.btn-onDark:hover { background: rgba(255,255,255,.12); color: #fff; }

/* Hero */
.lp-hero {
    position: relative; overflow: hidden; color: #D6E6E1;
    padding: clamp(2.8rem, 6vw, 5rem) 0 clamp(3rem, 6vw, 5rem);
    background:
        radial-gradient(720px 420px at 92% 10%, rgba(227,195,90,.17), transparent 62%),
        radial-gradient(700px 520px at -8% -10%, rgba(46,170,140,.36), transparent 60%),
        linear-gradient(155deg, #0F4A40 0%, var(--emerald-deep) 55%, var(--emerald-ink) 100%);
}
.lp-hero-in { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: clamp(2rem, 5vw, 4.5rem); align-items: center; }
.lp-hero h1 {
    margin: 0; color: #fff;
    font: 780 clamp(2.5rem, 6.2vw, 4.7rem)/.98 var(--display);
    font-variation-settings: 'opsz' 96, 'wdth' 80; letter-spacing: -.035em; max-width: 12ch;
    text-wrap: balance;
}
.lp-lede { margin: 1.4rem 0 0; font-size: clamp(1.02rem, 1.5vw, 1.15rem); line-height: 1.65; color: #B4CBC4; max-width: 50ch; }
.lp-cta { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.lp-assure { list-style: none; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; margin: 1.6rem 0 0; padding: 0; font-size: .87rem; color: #9FBAB2; }
.lp-assure li { position: relative; padding-left: 1.2rem; }
.lp-assure li::before { content: '✓'; position: absolute; left: 0; color: var(--gold-2); font-weight: 800; }

/* Telefon & perbualan */
.lp-phone {
    width: min(390px, 100%); justify-self: end;
    border-radius: 34px; padding: 10px; background: #0B1715;
    box-shadow: 0 40px 80px -30px rgba(0,0,0,.7), 0 0 0 1px rgba(255,255,255,.08), inset 0 0 0 1px rgba(255,255,255,.04);
    transform: rotate(1.5deg);
}
.lp-phone-top {
    display: flex; align-items: center; gap: .7rem; padding: .8rem .9rem; border-radius: 26px 26px 0 0;
    background: #1F2C2A; color: #E9EFEE;
}
.lp-phone-top strong { display: block; font-size: .92rem; }
.lp-phone-top span:not(.lp-av) { font-size: .74rem; color: #93A7A2; }
.lp-av { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 50%; background: var(--gold); color: var(--emerald-ink); font: 800 .72rem var(--display); }
.lp-chat {
    display: flex; flex-direction: column; gap: .5rem; padding: .9rem .75rem 1.1rem; border-radius: 0 0 26px 26px; min-height: 430px;
    background-color: #E7DFD4;
    background-image: radial-gradient(rgba(0,0,0,.035) 1px, transparent 1px);
    background-size: 14px 14px;
}
.msg {
    position: relative; max-width: 86%; padding: .45rem .65rem 1.05rem; border-radius: 10px;
    font-size: .84rem; line-height: 1.42; color: #1D2725; box-shadow: 0 1px 1px rgba(0,0,0,.08);
    animation: msg-in .45s cubic-bezier(.2,.8,.2,1) both; animation-delay: calc(var(--d) * .9s + .3s);
}
.msg b { display: block; font-size: .74rem; font-weight: 750; color: #7A5A0A; margin-bottom: .1rem; }
.msg i { position: absolute; right: .55rem; bottom: .25rem; font-style: normal; font-size: .64rem; color: #7B8784; }
.msg.in { align-self: flex-start; background: #fff; border-top-left-radius: 3px; }
.msg.in:nth-child(2) b { color: #1E6E8C; }
.msg.out { align-self: flex-end; background: #D6F5CF; border-top-right-radius: 3px; display: grid; gap: .35rem; }
.msg-card { display: grid; gap: .05rem; padding: .4rem .55rem; border-radius: 7px; background: rgba(255,255,255,.75); border-left: 3px solid var(--emerald-2); }
.msg-card strong { font-size: .8rem; color: var(--emerald-deep); }
.msg-card em { font-style: normal; font-size: .72rem; color: #4D5C59; }
@keyframes msg-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { .msg { animation: none; } }

.lp-made { background: var(--emerald-ink); color: #8FAAA2; border-top: 1px solid rgba(255,255,255,.06); }
.lp-made p { margin: 0; padding: .9rem 0; font-size: .86rem; text-align: center; }

/* Seksyen */
.lp-sec { padding: clamp(3.5rem, 8vw, 6rem) 0; }
.lp-head { max-width: 660px; margin-bottom: 2.2rem; }
.lp-head h2 {
    margin: 0; font: 760 clamp(1.8rem, 3.8vw, 2.8rem)/1.05 var(--display);
    font-variation-settings: 'opsz' 96, 'wdth' 86; letter-spacing: -.03em; text-wrap: balance;
}
.lp-head p { margin: .9rem 0 0; color: var(--muted); font-size: 1.04rem; line-height: 1.6; max-width: 58ch; }

/* Tab jawatan */
.lp-roles { background: var(--surface); border: 1px solid var(--line); border-radius: 24px; box-shadow: var(--sh-2); overflow: hidden; }
.lp-tablist { display: flex; gap: .3rem; padding: .5rem; background: var(--surface-2); border-bottom: 1px solid var(--line); overflow-x: auto; }
.lp-tablist button {
    flex: 1 0 auto; padding: .75rem 1.1rem; border: 0; border-radius: 14px; background: transparent; cursor: pointer;
    font: 700 .95rem var(--sans); color: var(--ink-2);
}
.lp-tablist button:hover { background: rgba(15,92,77,.06); }
.lp-tablist button[aria-selected="true"] { background: var(--emerald-deep); color: #fff; box-shadow: 0 8px 18px -10px rgba(10,46,40,.8); }
.lp-panel { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); align-items: center; padding: clamp(1.5rem, 4vw, 3rem); }
.lp-panel[hidden] { display: none; }
.lp-panel h3 { margin: 0; font: 740 clamp(1.4rem, 2.6vw, 1.9rem)/1.15 var(--display); letter-spacing: -.02em; }
.lp-panel ul { list-style: none; margin: 1.3rem 0 0; padding: 0; display: grid; gap: .85rem; }
.lp-panel li { position: relative; padding-left: 1.8rem; color: var(--ink-2); line-height: 1.55; }
.lp-panel li::before {
    content: ''; position: absolute; left: 0; top: .3rem; width: 16px; height: 16px; border-radius: 50%;
    background: var(--mint) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M4.5 8.2l2.2 2.2 4.8-4.8' fill='none' stroke='%230F5C4D' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center/16px no-repeat;
}

/* Kertas contoh */
.lp-paper {
    position: relative; background: #FFFEFB; border: 1px solid rgba(14,27,25,.1); border-radius: 6px;
    padding: 1.4rem 1.5rem 1.6rem; box-shadow: 0 30px 50px -28px rgba(10,46,40,.45), 0 2px 0 rgba(14,27,25,.04);
    font-size: .85rem; transform: rotate(-1deg);
}
.pp-head { display: grid; gap: .2rem; text-align: center; padding-bottom: .9rem; margin-bottom: .8rem; border-bottom: 2px solid var(--ink); }
.pp-head span:first-child { font: 750 .8rem var(--display); letter-spacing: .02em; }
.pp-head span:last-child { font-size: .78rem; color: var(--ink-2); }
.pp-row { display: grid; grid-template-columns: 2.4rem 1fr; padding: .38rem 0; }
.pp-row b { font-weight: 750; }
.pp-dec { margin: .2rem 0 .4rem 2.4rem; padding: .55rem .7rem; background: var(--surface-2); border-left: 3px solid var(--gold); font-size: .8rem; line-height: 1.5; }
.pp-dec span { display: block; color: var(--emerald); font-weight: 700; margin-top: .2rem; }
.pp-stamp {
    position: absolute; right: 1.2rem; bottom: 1rem; transform: rotate(-9deg);
    font: 800 .82rem var(--display); color: var(--emerald-2); border: 2px solid var(--emerald-2); border-radius: 8px; padding: .2rem .6rem; opacity: .85;
}
.lp-receipt { transform: rotate(1deg); }
.rc-top { display: flex; justify-content: space-between; gap: 1rem; font: 750 .8rem var(--display); padding-bottom: .8rem; margin-bottom: .6rem; border-bottom: 1px dashed var(--line-strong); }
.rc-line { display: grid; grid-template-columns: 8.5rem 1fr; gap: .5rem; padding: .45rem 0; border-bottom: 1px dotted var(--line-strong); }
.rc-line span { color: var(--muted); }
.rc-amt { display: inline-block; margin-top: 1rem; padding: .45rem .9rem; border: 2px solid var(--ink); font: 780 1.3rem var(--display); }
.rc-sign { position: absolute; right: 1.5rem; bottom: 1.4rem; width: 8rem; text-align: center; border-top: 1px solid var(--ink); padding-top: .25rem; font-size: .75rem; color: var(--muted); }
.lp-approve { transform: none; border-radius: 18px; }
.ap-title { font: 740 1rem var(--display); margin-bottom: .9rem; }
.ap-item { display: flex; justify-content: space-between; gap: 1rem; align-items: center; padding: .85rem; border: 1px solid var(--line); border-radius: 12px; }
.ap-item b { display: block; }
.ap-item span { font-size: .76rem; color: var(--muted); }
.ap-item strong { font: 760 1.05rem var(--display); white-space: nowrap; }
.ap-item.dim { opacity: .5; margin-top: .7rem; }
.ap-actions { display: flex; justify-content: flex-end; gap: .5rem; margin-top: .6rem; }
.ap-actions span { padding: .45rem .9rem; border-radius: 10px; font-weight: 700; font-size: .82rem; }
.ap-no { border: 1px solid rgba(184,65,46,.3); color: var(--red); }
.ap-yes { background: var(--emerald-2); color: #fff; }
.lp-vote { transform: none; border-radius: 18px; max-width: 380px; justify-self: center; width: 100%; }
.vt-title { font: 740 1rem var(--display); margin-bottom: .9rem; }
.vt-opt { display: flex; align-items: center; gap: .7rem; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 12px; margin-bottom: .5rem; }
.vt-opt span { width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; }
.vt-opt.sel { border-color: var(--emerald-2); background: var(--mint); }
.vt-opt.sel span { border-color: var(--emerald-2); box-shadow: inset 0 0 0 3px #fff; background: var(--emerald-2); }
.vt-btn { margin-top: .9rem; text-align: center; padding: .7rem; border-radius: 12px; background: var(--emerald-deep); color: #fff; font-weight: 700; }

/* Perbandingan */
.lp-compare-sec { background: var(--surface); border-block: 1px solid var(--line); }
.lp-compare { border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.cmp-row { display: grid; grid-template-columns: 1fr 1fr; }
.cmp-row span { padding: 1rem 1.3rem; line-height: 1.55; }
.cmp-row + .cmp-row { border-top: 1px solid var(--line); }
.cmp-row span:first-child { color: var(--muted); background: var(--surface-2); }
.cmp-row span:last-child { color: var(--ink); font-weight: 600; }
.cmp-h span { font: 750 .95rem var(--display); color: var(--ink) !important; padding-block: .85rem; }
.cmp-h span:last-child { background: var(--emerald-deep); color: #fff !important; }

/* Banner cuba sekarang */
.lp-try { padding: clamp(1.5rem, 4vw, 2.5rem) 0; }
.lp-try-in {
    display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 1.5rem 3rem; align-items: center;
    padding: clamp(2rem, 5vw, 3.5rem); border-radius: 28px; color: var(--emerald-ink);
    background:
        radial-gradient(500px 260px at 100% 0%, rgba(255,255,255,.45), transparent 60%),
        linear-gradient(130deg, #F3DE90 0%, var(--gold-2) 40%, var(--gold) 100%);
    box-shadow: 0 30px 60px -30px rgba(140,109,14,.6);
}
.lp-try h2 { margin: 0; font: 780 clamp(1.7rem, 3.6vw, 2.6rem)/1.05 var(--display); font-variation-settings: 'opsz' 96, 'wdth' 84; letter-spacing: -.03em; max-width: 18ch; }
.lp-try p { margin: .9rem 0 0; max-width: 56ch; line-height: 1.6; color: #3E3410; font-weight: 520; }
.lp-try-cta { display: grid; gap: .7rem; justify-items: center; }
.lp-try .btn-gold { background: var(--emerald-deep); color: #fff; box-shadow: 0 16px 30px -14px rgba(7,31,27,.8); }
.lp-try .btn-gold:hover { background: var(--emerald-ink); color: #fff; }
.lp-try-wa { font-weight: 700; font-size: .9rem; color: var(--emerald-ink); }

/* Harga */
.lp-prices { max-width: 820px; }
.lp-note { margin: 1.3rem 0 0; color: var(--muted); font-size: .92rem; line-height: 1.6; max-width: 70ch; }

/* Soalan lazim */
.lp-faq-sec { padding-top: 0; }
.lp-faq { max-width: 820px; }
.lp-faq details { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 0 1.25rem; margin-bottom: .6rem; }
.lp-faq summary { cursor: pointer; list-style: none; padding: 1.05rem 0; font-weight: 700; display: flex; justify-content: space-between; gap: 1rem; }
.lp-faq summary::-webkit-details-marker { display: none; }
.lp-faq summary::after { content: '+'; font: 700 1.3rem/1 var(--display); color: var(--emerald); transition: transform .25s; }
.lp-faq details[open] summary::after { transform: rotate(45deg); }
.lp-faq details p { margin: 0 0 1.15rem; color: var(--ink-2); line-height: 1.65; max-width: 70ch; }

/* Penutup */
.lp-end {
    padding: clamp(3.5rem, 8vw, 5.5rem) 0; color: #fff;
    background: radial-gradient(600px 300px at 100% 100%, rgba(227,195,90,.15), transparent 60%), linear-gradient(140deg, #0F4A40, var(--emerald-ink));
}
.lp-end-in { display: grid; gap: 1.6rem; justify-items: start; }
.lp-end h2 { margin: 0; font: 780 clamp(1.8rem, 4vw, 3rem)/1.05 var(--display); font-variation-settings: 'opsz' 96, 'wdth' 84; letter-spacing: -.03em; max-width: 20ch; }
.lp-end-cta { display: flex; flex-wrap: wrap; gap: .7rem; }

.lp-foot { padding: 1.4rem 0 2rem; color: var(--muted); font-size: .85rem; }
.lp-foot-in { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .6rem 1.5rem; }
.lp-foot-in span:last-child { display: flex; gap: 1.2rem; }
.lp-foot a { color: var(--ink-2); }

/* Bar CTA melekat (telefon sahaja) */
.lp-dock { display: none; }

@media (max-width: 960px) {
    .lp-links { display: none; }
    .lp-nav-cta { margin-left: auto; }
    .lp-hero-in { grid-template-columns: 1fr; }
    .lp-phone { justify-self: center; transform: none; }
    .lp-panel { grid-template-columns: 1fr; }
    .lp-try-in { grid-template-columns: 1fr; }
    .lp-try-cta { justify-items: start; }
}
@media (max-width: 640px) {
    .lp-hide-sm { display: none; }
    .lp-trialbar-in { flex-wrap: nowrap; justify-content: space-between; text-align: left; }
    .lp-trialbar p { font-size: .84rem; }
    .lp-cta .btn { flex: 1 1 100%; justify-content: center; }
    .lp-chat { min-height: 0; }
    .cmp-row { grid-template-columns: 1fr; }
    .cmp-h { display: none; }
    .cmp-row span:first-child { font-size: .88rem; padding-bottom: .5rem; }
    .cmp-row span:last-child { padding-top: .6rem; }
    .cmp-row:not(.cmp-h) span:first-child::before { content: 'Sekarang: '; font-weight: 700; color: var(--red); }
    .cmp-row:not(.cmp-h) span:last-child::before { content: 'eCommittee: '; font-weight: 750; color: var(--emerald-2); }
    .lp-tablist { flex-wrap: wrap; }
    .lp-tablist button { flex: 1 1 40%; padding: .65rem .8rem; font-size: .88rem; }
    .rc-line { grid-template-columns: 1fr; gap: .1rem; }
    .rc-sign { position: static; margin: 1rem 0 0 auto; }
    .lp-dock {
        display: flex; position: fixed; left: .75rem; right: .75rem; bottom: .75rem; z-index: 60;
        align-items: center; justify-content: space-between; gap: .75rem;
        padding: .6rem .6rem .6rem 1rem; border-radius: 16px; background: var(--emerald-deep); color: #fff;
        box-shadow: 0 18px 40px -12px rgba(7,31,27,.7);
        transform: translateY(150%); transition: transform .3s ease;
    }
    .lp-dock.show { transform: none; }
    .lp-dock span { font-weight: 700; font-size: .9rem; }
    .lp-foot { padding-bottom: 5.5rem; }
}
@media (prefers-reduced-motion: reduce) { .lp-dock { transition: none; } }
