/* Platform pages: modern home page + help chat widget. Animations respect "reduce motion". */
:root { --p-navy: #12355b; --p-blue: #1f4e79; --p-sky: #2d6aa3; --p-gold: #f2a900; --p-ink: #14202e; --p-mute: #5b6878; --p-line: #e4e9f0; --p-soft: #f5f8fc; }
.plat-full { overflow-x: hidden; }
/* ---------- hero */
.ph-hero { position: relative; color: #fff; background: linear-gradient(150deg, var(--p-navy) 0%, var(--p-blue) 55%, var(--p-sky) 100%); padding: 72px 0 120px; overflow: hidden; isolation: isolate; }
.ph-hero::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 90px; background: #fff; clip-path: ellipse(75% 100% at 50% 100%); z-index: 0; }
.ph-blob { position: absolute; border-radius: 50%; filter: blur(60px); opacity: .45; z-index: -1; animation: ph-drift 18s ease-in-out infinite alternate; }
.ph-blob.b1 { width: 420px; height: 420px; background: #3d8bd4; top: -120px; right: -80px; }
.ph-blob.b2 { width: 320px; height: 320px; background: var(--p-gold); bottom: -60px; left: -100px; opacity: .25; animation-delay: -6s; }
.ph-blob.b3 { width: 260px; height: 260px; background: #6fb3ff; top: 40%; left: 45%; opacity: .2; animation-delay: -11s; }
@keyframes ph-drift { from { transform: translate(0, 0) scale(1); } to { transform: translate(40px, 30px) scale(1.12); } }
.ph-eyebrow { display: inline-flex; align-items: center; gap: .5rem; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); border-radius: 999px; padding: .35rem .9rem; font-size: .85rem; backdrop-filter: blur(6px); }
.ph-eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: #4ade80; box-shadow: 0 0 0 0 rgba(74,222,128,.7); animation: ph-pulse 2s infinite; }
@keyframes ph-pulse { 70% { box-shadow: 0 0 0 10px rgba(74,222,128,0); } 100% { box-shadow: 0 0 0 0 rgba(74,222,128,0); } }
.ph-title { font-size: clamp(2.1rem, 5vw, 3.6rem); font-weight: 750; line-height: 1.08; letter-spacing: -.02em; margin: 1rem 0; }
.ph-title .hl { background: linear-gradient(90deg, #ffd35c, var(--p-gold)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.ph-lead { font-size: 1.15rem; color: rgba(255,255,255,.85); max-width: 560px; }
.ph-cta .btn { padding: .8rem 1.4rem; border-radius: 12px; font-weight: 600; }
.ph-cta .btn-gold { background: var(--p-gold); border-color: var(--p-gold); color: #1d1600; box-shadow: 0 10px 24px -8px rgba(242,169,0,.7); transition: transform .2s, box-shadow .2s; }
.ph-cta .btn-gold:hover { transform: translateY(-2px); box-shadow: 0 14px 30px -8px rgba(242,169,0,.8); }
.ph-cta .btn-ghost { color: #fff; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.06); }
.ph-cta .btn-ghost:hover { background: rgba(255,255,255,.14); color: #fff; }
.ph-trust { font-size: .9rem; color: rgba(255,255,255,.75); }
/* hero mock-up */
.ph-mock { position: relative; max-width: 470px; margin-left: auto; }
.ph-window { background: #fff; color: var(--p-ink); border-radius: 18px; box-shadow: 0 30px 70px -20px rgba(6,20,40,.55); overflow: hidden; animation: ph-float 7s ease-in-out infinite; }
.ph-window .bar { display: flex; gap: 6px; padding: 12px 14px; background: #f1f4f8; }
.ph-window .bar i { width: 10px; height: 10px; border-radius: 50%; background: #d4dae3; display: block; }
.ph-window .body { padding: 18px; display: grid; gap: 12px; }
.ph-kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.ph-kpi { background: var(--p-soft); border-radius: 12px; padding: 10px; }
.ph-kpi b { display: block; font-size: 1.25rem; }
.ph-kpi span { font-size: .72rem; color: var(--p-mute); }
.ph-bars { display: flex; align-items: flex-end; gap: 8px; height: 90px; padding: 8px 4px 0; border-bottom: 1px solid var(--p-line); }
.ph-bars span { flex: 1; border-radius: 6px 6px 0 0; background: linear-gradient(180deg, var(--p-sky), var(--p-blue)); transform-origin: bottom; animation: ph-grow 1.2s cubic-bezier(.2,.8,.2,1) both; }
.ph-bars span:nth-child(odd) { background: linear-gradient(180deg, #ffd35c, var(--p-gold)); }
@keyframes ph-grow { from { transform: scaleY(0); } }
.ph-row { display: flex; align-items: center; gap: 10px; font-size: .82rem; }
.ph-row .av { width: 28px; height: 28px; border-radius: 50%; background: #dbe7f5; color: var(--p-blue); display: grid; place-items: center; font-weight: 700; font-size: .7rem; }
.ph-row .pill { margin-left: auto; font-size: .7rem; padding: .15rem .55rem; border-radius: 999px; background: #e3f7ea; color: #137a3a; }
.ph-chip { position: absolute; background: #fff; color: var(--p-ink); border-radius: 14px; padding: 10px 14px; font-size: .82rem; font-weight: 600; box-shadow: 0 16px 40px -14px rgba(6,20,40,.5); display: flex; align-items: center; gap: 8px; animation: ph-float 6s ease-in-out infinite; }
.ph-chip i { font-size: 1.1rem; }
.ph-chip.c1 { left: -36px; top: -18px; animation-delay: -2s; }
.ph-chip.c2 { right: -24px; bottom: 40px; animation-delay: -4s; }
@keyframes ph-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
/* ---------- sections */
.ph-sec { padding: 72px 0; }
.ph-sec.soft { background: var(--p-soft); }
.ph-h2 { font-size: clamp(1.6rem, 3.2vw, 2.3rem); font-weight: 720; letter-spacing: -.01em; color: var(--p-ink); }
.ph-sub { color: var(--p-mute); max-width: 620px; margin: .5rem auto 0; }
.ph-feature { height: 100%; background: #fff; border: 1px solid var(--p-line); border-radius: 18px; padding: 24px; transition: transform .25s, box-shadow .25s, border-color .25s; }
.ph-feature:hover { transform: translateY(-4px); box-shadow: 0 18px 40px -20px rgba(18,53,91,.35); border-color: #cfdbea; }
.ph-ico { width: 46px; height: 46px; border-radius: 12px; display: grid; place-items: center; font-size: 1.3rem; color: var(--p-blue); background: linear-gradient(135deg, #e6f0fb, #f4f8fd); margin-bottom: 14px; }
.ph-feature h3 { font-size: 1.05rem; font-weight: 650; color: var(--p-ink); }
.ph-feature p { font-size: .92rem; color: var(--p-mute); margin: 0; }
.ph-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.ph-stat { text-align: center; }
.ph-stat b { display: block; font-size: 2rem; font-weight: 750; color: var(--p-blue); }
.ph-stat span { color: var(--p-mute); font-size: .9rem; }
.ph-step { position: relative; padding-left: 64px; }
.ph-step .n { position: absolute; left: 0; top: 0; width: 46px; height: 46px; border-radius: 50%; background: var(--p-blue); color: #fff; display: grid; place-items: center; font-weight: 700; box-shadow: 0 0 0 6px #e6f0fb; }
.ph-step h3 { font-size: 1.05rem; font-weight: 650; }
.ph-step p { color: var(--p-mute); font-size: .92rem; }
.ph-plan { height: 100%; background: #fff; border: 1px solid var(--p-line); border-radius: 20px; padding: 26px; display: flex; flex-direction: column; transition: transform .25s, box-shadow .25s; }
.ph-plan:hover { transform: translateY(-4px); box-shadow: 0 22px 50px -24px rgba(18,53,91,.4); }
.ph-plan.featured { border: 2px solid var(--p-blue); position: relative; }
.ph-plan.featured::before { content: attr(data-badge); position: absolute; top: -12px; left: 24px; background: var(--p-gold); color: #1d1600; font-size: .72rem; font-weight: 700; padding: .2rem .7rem; border-radius: 999px; }
.ph-plan .price { font-size: 2rem; font-weight: 750; color: var(--p-ink); line-height: 1.1; }
.ph-plan .per { display: block; margin-top: 4px; color: var(--p-mute); font-size: .95rem; font-weight: 500; }
.ph-plan ul { list-style: none; padding: 0; margin: 1rem 0 1.4rem; font-size: .92rem; }
.ph-plan li { padding: .3rem 0 .3rem 1.6rem; position: relative; }
.ph-plan li::before { content: "\F26E"; font-family: bootstrap-icons; position: absolute; left: 0; color: #16a34a; }
.ph-faq .accordion-item { border: 1px solid var(--p-line); border-radius: 14px !important; margin-bottom: 10px; overflow: hidden; }
.ph-faq .accordion-button { font-weight: 600; }
.ph-faq .accordion-button:not(.collapsed) { background: var(--p-soft); color: var(--p-blue); box-shadow: none; }
.ph-band { background: linear-gradient(120deg, var(--p-navy), var(--p-sky)); color: #fff; border-radius: 24px; padding: 48px 32px; position: relative; overflow: hidden; }
.ph-band::after { content: ""; position: absolute; width: 300px; height: 300px; border-radius: 50%; background: rgba(242,169,0,.25); filter: blur(50px); right: -60px; top: -80px; }
.ph-find { max-width: 480px; }
.ph-find .form-control { border-radius: 12px; }
/* scroll reveal */
.rv { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s cubic-bezier(.2,.8,.2,1); }
.rv.in { opacity: 1; transform: none; }
.rv.d1 { transition-delay: .08s; } .rv.d2 { transition-delay: .16s; } .rv.d3 { transition-delay: .24s; } .rv.d4 { transition-delay: .32s; } .rv.d5 { transition-delay: .4s; }
.ph-hero .rv { transition-duration: .9s; }
@media (max-width: 991px) { .ph-mock { margin: 40px auto 0; } .ph-chip.c1 { left: -8px; } .ph-chip.c2 { right: -6px; } }
@media (max-width: 575px) { .ph-hero { padding: 48px 0 100px; } .ph-stats { grid-template-columns: repeat(2, 1fr); } .ph-sec { padding: 52px 0; } .ph-chip { display: none; } .ph-band { padding: 36px 22px; } }
@media (prefers-reduced-motion: reduce) { .ph-blob, .ph-window, .ph-chip, .ph-bars span, .ph-eyebrow .dot { animation: none !important; } .rv { opacity: 1; transform: none; transition: none; } }

/* ---------- help chat widget */
#pc { position: fixed; right: 20px; bottom: 20px; z-index: 1080; font-size: .92rem; }
#pc .pc-btn { width: 58px; height: 58px; border-radius: 50%; border: 0; background: var(--p-blue); color: #fff; font-size: 1.5rem; box-shadow: 0 12px 30px -8px rgba(18,53,91,.6); display: grid; place-items: center; transition: transform .2s; animation: pc-pop .5s 1s both; }
#pc .pc-btn:hover { transform: scale(1.06); }
#pc.pc-open .pc-btn { transform: rotate(90deg) scale(.9); }
@keyframes pc-pop { from { transform: scale(0); } to { transform: scale(1); } }
#pc .pc-panel { position: absolute; right: 0; bottom: 72px; width: min(370px, calc(100vw - 32px)); height: min(560px, calc(100vh - 110px)); background: #fff; border-radius: 18px; box-shadow: 0 24px 60px -18px rgba(6,20,40,.45); display: flex; flex-direction: column; overflow: hidden; animation: pc-in .25s ease-out; }
@keyframes pc-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
#pc .pc-head { background: linear-gradient(135deg, var(--p-navy), var(--p-sky)); color: #fff; padding: 14px 16px; display: flex; align-items: center; gap: 10px; }
#pc .pc-head .av { width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.18); display: grid; place-items: center; }
#pc .pc-head small { display: block; opacity: .8; font-size: .75rem; }
#pc .pc-close { margin-left: auto; background: none; border: 0; color: #fff; font-size: 1.2rem; }
#pc .pc-list { flex: 1; overflow-y: auto; padding: 14px; background: var(--p-soft); display: flex; flex-direction: column; gap: 8px; }
#pc .pc-msg { max-width: 85%; padding: 9px 12px; border-radius: 14px; white-space: pre-line; line-height: 1.4; word-wrap: break-word; animation: pc-in .2s ease-out; }
#pc .pc-bot, #pc .pc-owner { background: #fff; border: 1px solid var(--p-line); align-self: flex-start; border-bottom-left-radius: 4px; }
#pc .pc-owner { border-color: #bcd3ec; }
#pc .pc-who { font-size: .7rem; font-weight: 700; color: var(--p-blue); margin-bottom: 2px; }
#pc .pc-visitor { background: var(--p-blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 4px; }
#pc .pc-pending { opacity: .6; }
#pc .pc-typing span { display: inline-block; width: 6px; height: 6px; margin: 0 2px; border-radius: 50%; background: #9aa8b8; animation: pc-dot 1s infinite; }
#pc .pc-typing span:nth-child(2) { animation-delay: .15s; } #pc .pc-typing span:nth-child(3) { animation-delay: .3s; }
@keyframes pc-dot { 50% { transform: translateY(-4px); opacity: .5; } }
#pc .pc-chips { display: flex; flex-wrap: wrap; gap: 6px; padding: 8px 12px 0; background: #fff; }
#pc .pc-chips button { border: 1px solid var(--p-line); background: #fff; border-radius: 999px; padding: .2rem .7rem; font-size: .78rem; color: var(--p-blue); }
#pc .pc-chips button:hover { background: var(--p-soft); }
#pc .pc-form, #pc .pc-mail { display: flex; gap: 6px; padding: 10px 12px; background: #fff; }
#pc .pc-mail { flex-wrap: wrap; border-top: 1px solid var(--p-line); }
#pc .pc-mail input { flex: 1 1 140px; }
#pc .pc-form input { border-radius: 999px; }
#pc .pc-form button { border-radius: 50%; width: 38px; height: 38px; padding: 0; flex: none; }
#pc .pc-foot { font-size: .7rem; color: var(--p-mute); text-align: center; padding: 0 10px 8px; background: #fff; }
@media (max-width: 575px) { #pc { right: 14px; bottom: 14px; } }
@media (prefers-reduced-motion: reduce) { #pc * { animation: none !important; transition: none !important; } }
