/* Language pages (LANGUAGE_DEMO): switcher, live demo frame and voice showcase. Scoped to lp-.
   Served from public/assets/language-page (committed, no build step). */
.lp { --lp-g: hsl(140 99% 44%); --lp-g6: hsl(142 92% 36%); --lp-g7: hsl(145 90% 26%); --lp-g05: hsl(140 80% 96%); --lp-t: hsl(162 100% 50%);
    --lp-ink: #0a0c0b; --lp-ink2: #3b4250; --lp-ink3: #6a7282; --lp-line: #e6e8ef; --lp-bg: #f3f4f7;
    --lp-fh: 'Plus Jakarta Sans', system-ui, sans-serif; --lp-fb: 'Be Vietnam Pro', system-ui, sans-serif; --lp-ease: cubic-bezier(.2, .8, .2, 1);
    font-family: var(--lp-fb); color: var(--lp-ink); }
.lp button { font: inherit; color: inherit; background: none; border: 0; cursor: pointer; }
.lp :focus-visible { outline: 2px solid var(--lp-g6); outline-offset: 2px; border-radius: 8px; }
.lp-sec-h { text-align: center; }
.lp-sec-h h2 { font: 800 38px/1.12 var(--lp-fh); letter-spacing: -.025em; color: var(--lp-ink); margin: 0; }
.lp-sec-h h2 em { font-style: normal; color: var(--lp-g); }
.lp-sec-h p { color: var(--lp-ink2); margin: 10px 0 0; font-size: 15.5px; }

/* Switcher */
.lp-ls { position: relative; display: inline-block; margin: 0 0 22px; text-align: left; z-index: 30; }
.lp-ls-btn { height: 40px; display: flex; align-items: center; gap: 10px; padding: 0 8px 0 14px; border-radius: 99px; font-size: 13.5px; color: var(--lp-ink);
    border: 1px solid transparent !important; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(120deg, rgba(21, 223, 94, .55), #e6e8ef 45%, rgba(0, 255, 178, .45)) border-box !important;
    box-shadow: 0 1px 2px rgba(10, 20, 40, .05), 0 6px 20px rgba(10, 20, 40, .05); white-space: nowrap; }
.lp-ls-btn .nat { font-weight: 600; }
.lp-ls-btn .sep { color: #b7bcc7; }
.lp-ls-btn .en { color: var(--lp-ink2); }
.lp-ls-btn .ct { color: var(--lp-g7); font-weight: 600; }
.lp-ls-btn .chg { display: flex; align-items: center; gap: 4px; font-size: 12px; font-weight: 600; background: var(--lp-bg); border-radius: 99px; height: 28px; padding: 0 10px 0 12px; margin-left: 4px; }
.lp-ls-btn .chg svg { transition: transform .2s var(--lp-ease); }
.lp-ls.open .lp-ls-btn .chg svg { transform: rotate(180deg); }
.lp-ls-pop { position: absolute; left: 50%; top: 48px; width: 400px; transform: translateX(-50%) translateY(-4px); opacity: 0; visibility: hidden; pointer-events: none;
    background: #fff; border-radius: 16px; box-shadow: 0 0 0 1px rgba(10, 20, 40, .06), 0 24px 60px rgba(10, 20, 40, .16); transition: opacity .16s, transform .16s var(--lp-ease), visibility .16s; overflow: hidden; }
.lp-ls.open .lp-ls-pop, .lp-ls:not(.js):focus-within .lp-ls-pop { opacity: 1; visibility: visible; pointer-events: auto; transform: translateX(-50%) translateY(0); }
/* The hero is its own stacking context (isolation): lift it over the demo while the list is open. */
.hero-3:has(.lp-ls.open), .hero-3:has(.lp-ls:not(.js):focus-within) { z-index: 5; }
.lp-ls-srch { display: flex; align-items: center; gap: 8px; margin: 10px; height: 42px; padding: 0 12px; border-radius: 12px; background: var(--lp-bg); border: 1px solid var(--lp-line); }
.lp-ls-srch:focus-within { border-color: var(--lp-g); background: #fff; box-shadow: 0 0 0 3px rgba(21, 223, 94, .15); }
.lp-ls-srch input { flex: 1; border: 0; background: none; outline: none; font-size: 14px; min-width: 0; color: var(--lp-ink); }
.lp-ls-srch kbd { font: 500 11px var(--lp-fb); color: var(--lp-ink3); border: 1px solid var(--lp-line); border-radius: 6px; padding: 1px 6px; background: #fff; box-shadow: none; }
.lp-ls-hd { font-size: 11px; color: var(--lp-ink3); padding: 2px 18px 6px; display: flex; justify-content: space-between; }
.lp-ls-list { height: 308px; overflow-y: auto; padding: 0 6px 8px; overscroll-behavior: contain; }
.lp-ls-row { display: grid; grid-template-columns: 32px minmax(0, 1fr) auto 16px; align-items: center; gap: 10px; height: 44px; padding: 0 10px; border-radius: 10px; color: var(--lp-ink); font-size: 14px; text-decoration: none; }
.lp-ls-row:hover, .lp-ls-row.act { background: var(--lp-g05); color: var(--lp-ink); }
.lp-ls-row[hidden] { display: none; }
.lp-ls-row .cd { width: 32px; height: 24px; border-radius: 6px; background: var(--lp-bg); font: 700 10px var(--lp-fh); color: var(--lp-ink2); display: flex; align-items: center; justify-content: center; letter-spacing: .02em; }
.lp-ls-row .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-ls-row .nm b { font-weight: 600; }
.lp-ls-row .nm span { color: var(--lp-ink3); margin-left: 8px; font-size: 13px; }
.lp-ls-row .vc { font-size: 12px; color: var(--lp-g7); font-weight: 600; }
.lp-ls-row mark { background: rgba(21, 223, 94, .22); color: inherit; border-radius: 3px; padding: 0 1px; }
.lp-ls-row .ck { color: var(--lp-g6); display: flex; }
.lp-ls-none { padding: 28px 18px; color: var(--lp-ink3); font-size: 13.5px; text-align: center; }

/* Live demo frame */
/* The glow and grid reach past the container: clip them so the page never scrolls sideways. */
.lp-demo { padding: 64px 0 88px; position: relative; background: var(--lp-bg); overflow-x: hidden; overflow-x: clip; }
.lp-stage { position: relative; margin-top: 36px; }
.lp-stage::before { content: ""; position: absolute; inset: -70px -40px -60px; z-index: 0; pointer-events: none;
    background: radial-gradient(50% 55% at 50% 50%, rgba(21, 223, 94, .20), rgba(0, 255, 178, .06) 55%, transparent 75%); }
.lp-stage::after { content: ""; position: absolute; inset: -40px -80px; z-index: 0; pointer-events: none;
    background-image: linear-gradient(rgba(10, 20, 40, .045) 1px, transparent 1px), linear-gradient(90deg, rgba(10, 20, 40, .045) 1px, transparent 1px); background-size: 56px 56px;
    -webkit-mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%); mask-image: radial-gradient(60% 60% at 50% 50%, #000, transparent 80%); }
.lp-stage [data-demo-call] { position: relative; z-index: 1; min-height: 578px; }
.lp-handoff { position: absolute; z-index: 3; top: -17px; left: 50%; transform: translateX(-50%) translateY(6px); opacity: 0; visibility: hidden; transition: opacity .25s, transform .3s var(--lp-ease), visibility .25s;
    display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 6px 0 12px; border-radius: 99px; background: #fff; font-size: 13px; white-space: nowrap; color: var(--lp-ink);
    box-shadow: 0 0 0 1px rgba(21, 223, 94, .5), 0 10px 30px rgba(10, 20, 40, .14); }
.lp-handoff.on { opacity: 1; visibility: visible; transform: translateX(-50%) translateY(0); }
.lp-handoff .ok { width: 22px; height: 22px; border-radius: 50%; background: var(--lp-g); display: flex; align-items: center; justify-content: center; }
.lp-handoff b { font-weight: 600; }
.lp-handoff button { font-size: 12px; color: var(--lp-ink3); padding: 0 8px; height: 24px; border-radius: 99px; }
.lp-handoff button:hover { background: var(--lp-bg); color: var(--lp-ink); }
.lp-slim { margin: 0; padding: 28px 0 8px; text-align: center; color: var(--lp-ink2); font-size: 15px; }
.lp-slim a { color: var(--lp-g7); font-weight: 600; }

/* Voice showcase */
.lp-vs { padding: 80px 0 72px; background: #fff; position: relative; }
.lp-vs::before { content: ""; position: absolute; inset: 0; pointer-events: none; background-image: radial-gradient(rgba(10, 20, 40, .07) 1px, transparent 1px); background-size: 22px 22px;
    -webkit-mask-image: linear-gradient(#000, transparent 360px); mask-image: linear-gradient(#000, transparent 360px); }
.lp-vs .container { position: relative; }
.lp-count { display: inline-flex; align-items: center; gap: 10px; margin-top: 14px; font-size: 16px; color: var(--lp-ink); font-weight: 500; }
.lp-count i { width: 8px; height: 8px; border-radius: 50%; background: var(--lp-g); box-shadow: 0 0 0 4px rgba(21, 223, 94, .18); flex-shrink: 0; }
.lp-fl { margin-top: 36px; display: flex; flex-direction: column; gap: 12px; }
.lp-fl-r { display: flex; gap: 12px; align-items: center; min-width: 0; }
.lp-fl-r.top { flex-wrap: wrap; }
.lp-seg { display: flex; padding: 3px; border-radius: 99px; background: var(--lp-bg); border: 1px solid var(--lp-line); flex-shrink: 0; }
.lp-seg button { height: 32px; padding: 0 14px; border-radius: 99px; font-size: 13px; font-weight: 500; color: var(--lp-ink2); white-space: nowrap; display: inline-flex; align-items: center; gap: 6px; }
.lp-seg button[aria-pressed="true"] { background: #fff; color: var(--lp-ink); box-shadow: 0 1px 3px rgba(10, 20, 40, .12); }
.lp-seg button .n { color: var(--lp-ink3); font-size: 11.5px; }
.lp-seg img { height: 14px; width: auto; display: block; }
.lp-fl-lb { font-size: 12px; color: var(--lp-ink3); flex-shrink: 0; width: 46px; }
.lp-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; flex: 1; min-width: 0; height: 34px; align-items: center; }
.lp-chips::-webkit-scrollbar { display: none; }
.lp-chip { height: 32px; padding: 0 14px !important; border-radius: 99px; font-size: 13px; border: 1px solid var(--lp-line) !important; background: #fff !important; color: var(--lp-ink2) !important; white-space: nowrap; flex-shrink: 0; }
.lp-chip:hover { border-color: #cfd3dc !important; color: var(--lp-ink) !important; }
.lp-chip[aria-pressed="true"] { background: var(--lp-ink) !important; border-color: var(--lp-ink) !important; color: #fff !important; }
.lp-clr { font-size: 13px; font-weight: 600; flex-shrink: 0; padding: 0 4px; height: 32px; }
.lp-clr:hover { color: var(--lp-g7); }
.lp-clr[hidden] { display: block; visibility: hidden; }
.lp-meta { display: flex; justify-content: space-between; align-items: center; margin-top: 26px; height: 20px; font-size: 12.5px; color: var(--lp-ink3); }
.lp-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; margin-top: 12px; }
.lp-grid[hidden] { display: none; }
.lp-card { height: 206px; border-radius: 18px; padding: 18px; display: flex; flex-direction: column;
    border: 1px solid transparent; background: linear-gradient(#fff, #fff) padding-box, linear-gradient(140deg, rgba(21, 223, 94, .38), #e8eaf0 38%, #e8eaf0 62%, rgba(0, 255, 178, .34)) border-box;
    box-shadow: 0 1px 2px rgba(10, 20, 40, .04), 0 8px 24px rgba(10, 20, 40, .05); transition: box-shadow .2s; }
.lp-card:hover { box-shadow: 0 1px 2px rgba(10, 20, 40, .05), 0 14px 34px rgba(10, 20, 40, .09); }
.lp-card.on { background: linear-gradient(#fff, #fff) padding-box, linear-gradient(140deg, var(--lp-g), rgba(0, 255, 178, .7)) border-box; box-shadow: 0 0 0 3px rgba(21, 223, 94, .12), 0 14px 34px rgba(21, 223, 94, .12); }
.lp-c-top { display: flex; gap: 14px; align-items: center; }
.lp-orb { width: 64px; height: 64px; flex-shrink: 0; border-radius: 50%; box-shadow: 0 3px 10px rgba(10, 20, 40, .14); }
.lp-c-id { min-width: 0; flex: 1; }
.lp-c-nm { display: flex; align-items: center; gap: 8px; font: 700 17px/1.2 var(--lp-fh); letter-spacing: -.01em; }
.lp-c-nm > span:first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-pb { font: 600 10.5px var(--lp-fb); letter-spacing: .02em; padding: 2px 8px; border-radius: 99px; flex-shrink: 0; border: 1px solid var(--lp-line); color: var(--lp-ink2); background: #fafbfc; display: inline-flex; align-items: center; gap: 5px; height: 22px; }
.lp-pb img { height: 11px; width: auto; display: block; }
.lp-pb img.wm { height: 10px; }
.lp-seg img.wm { height: 12px; }
.lp-c-mt { font-size: 12.5px; color: var(--lp-ink2); margin-top: 4px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-c-tags { display: flex; gap: 6px; margin-top: 14px; height: 22px; align-items: center; overflow: hidden; }
.lp-c-tags > span { font-size: 11.5px; color: var(--lp-ink2); background: var(--lp-bg); padding: 2px 9px; border-radius: 99px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.lp-c-tags .pe { background: none; color: var(--lp-ink3); padding: 0; display: flex; align-items: center; gap: 4px; margin-left: auto; flex-shrink: 0; }
.lp-c-bot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid #eff1f4; }
.lp-play { width: 38px; height: 38px; border-radius: 50% !important; background: var(--lp-ink) !important; color: #fff !important; display: flex; align-items: center; justify-content: center; flex-shrink: 0; transition: transform .15s; }
.lp-play:hover { transform: scale(1.05); }
.lp-card.on .lp-play { background: var(--lp-g) !important; color: var(--lp-ink) !important; }
.lp-card.nosample .lp-play, .lp-card.nosample .lp-eq, .lp-card.nosample .lp-dur { visibility: hidden; }
.lp-eq { display: flex; gap: 3px; align-items: flex-end; height: 18px; width: 23px; }
.lp-eq i { width: 3px; border-radius: 2px; background: #c9ced8; height: 6px; transform-origin: bottom; }
.lp-eq i:nth-child(2) { height: 10px; } .lp-eq i:nth-child(3) { height: 14px; } .lp-eq i:nth-child(4) { height: 8px; } .lp-eq i:nth-child(5) { height: 11px; }
.lp-card.on .lp-eq i, .lp-np .lp-eq i { background: var(--lp-g); height: 18px; animation: lp-eq .9s ease-in-out infinite; }
.lp-card.on .lp-eq i:nth-child(2), .lp-np .lp-eq i:nth-child(2) { animation-delay: -.2s; }
.lp-card.on .lp-eq i:nth-child(3), .lp-np .lp-eq i:nth-child(3) { animation-delay: -.45s; }
.lp-card.on .lp-eq i:nth-child(4), .lp-np .lp-eq i:nth-child(4) { animation-delay: -.1s; }
.lp-card.on .lp-eq i:nth-child(5), .lp-np .lp-eq i:nth-child(5) { animation-delay: -.6s; }
.lp-np.paused .lp-eq i { animation-play-state: paused; }
@keyframes lp-eq { 0%, 100% { transform: scaleY(.3); } 50% { transform: scaleY(1); } }
.lp-dur { font-size: 12px; color: var(--lp-ink3); font-variant-numeric: tabular-nums; width: 32px; }
.lp-use { margin-left: auto; font-size: 13px; font-weight: 600; display: flex; align-items: center; gap: 6px; height: 32px; padding: 0 4px; white-space: nowrap; }
.lp-use:hover { color: var(--lp-g7); }
.lp-use.done { color: var(--lp-g7); }
.lp-empty { height: 206px; margin-top: 12px; border-radius: 18px; border: 1px dashed #d3d7df; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; color: var(--lp-ink2); font-size: 15px; text-align: center; }
.lp-empty[hidden] { display: none; }
.lp-empty button { height: 38px; padding: 0 18px; border-radius: 99px; background: var(--lp-ink) !important; color: #fff !important; font-size: 13.5px; font-weight: 600; }
.lp-more { display: flex; justify-content: center; margin-top: 28px; height: 44px; }
.lp-more button { height: 44px; padding: 0 22px; border-radius: 99px; font-size: 14px; font-weight: 600; border: 1px solid var(--lp-line) !important; background: #fff !important; box-shadow: 0 1px 2px rgba(10, 20, 40, .05); }
.lp-more button:hover { background: var(--lp-g05) !important; border-color: rgba(21, 223, 94, .4) !important; }
.lp-note { text-align: center; font-size: 13px; color: var(--lp-ink3); margin: 22px 0 0; }
.lp-note a { font-weight: 600; color: var(--lp-g7); }

/* Now playing pill */
.lp-np { position: fixed; z-index: 60; left: 50%; bottom: 18px; width: min(620px, calc(100vw - 24px)); height: 64px; transform: translate(-50%, calc(100% + 110px)); transition: transform .38s var(--lp-ease);
    display: grid; grid-template-columns: auto minmax(0, 150px) minmax(0, 1fr) auto auto auto; align-items: center; gap: 14px; padding: 0 10px 0 12px; border-radius: 99px;
    background: rgba(12, 15, 13, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: #fff; box-shadow: 0 0 0 1px rgba(21, 223, 94, .35), 0 20px 50px rgba(8, 20, 14, .35); }
.lp-np.up { transform: translate(-50%, 0); }
.lp-np .lp-orb { width: 40px; height: 40px; box-shadow: none; }
.lp-np .lp-orb svg { width: 40px; height: 40px; }
.lp-np .who { min-width: 0; line-height: 1.25; }
.lp-np .who b { display: block; font: 700 14.5px var(--lp-fh); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.lp-np .who span { font-size: 11.5px; color: #9aa19c; }
.lp-np .pg { display: flex; align-items: center; gap: 10px; min-width: 0; }
.lp-np .bar { flex: 1; height: 4px; border-radius: 4px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.lp-np .bar i { display: block; height: 100%; width: 0; background: linear-gradient(90deg, var(--lp-g), var(--lp-t)); border-radius: 4px; }
.lp-np .tm { font-size: 11.5px; color: #9aa19c; font-variant-numeric: tabular-nums; white-space: nowrap; }
.lp-np .pp { width: 36px; height: 36px; border-radius: 50%; background: rgba(255, 255, 255, .1) !important; color: #fff !important; display: flex; align-items: center; justify-content: center; }
.lp-np .call { height: 42px; padding: 0 18px; border-radius: 99px; background: var(--lp-g) !important; color: var(--lp-ink) !important; font-weight: 600; font-size: 13.5px; white-space: nowrap; display: flex; align-items: center; gap: 6px; box-shadow: 0 6px 20px rgba(21, 223, 94, .35); }
.lp-np .call[hidden] { display: none; }
.lp-np .cl { width: 30px; height: 30px; border-radius: 50%; color: #8a918c !important; display: flex; align-items: center; justify-content: center; }
.lp-np .cl:hover { color: #fff !important; background: rgba(255, 255, 255, .08) !important; }

@media (max-width: 991px) {
    .lp-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    /* Clear of the live chat bubble in the bottom right corner. */
    .lp-np { bottom: 84px; }
}
@media (max-width: 640px) {
    .lp-ls { display: block; margin: 0 auto 18px; max-width: 100%; }
    .lp-ls-btn { width: 100%; justify-content: flex-start; padding-left: 12px; gap: 7px; font-size: 13px; }
    .lp-ls-btn .chg { margin-left: auto; padding: 0 8px; }
    .lp-ls-btn .chg .t { display: none; }
    .lp-ls-pop, .lp-ls.open .lp-ls-pop, .lp-ls:not(.js):focus-within .lp-ls-pop { width: 100%; left: 0; transform: none; }
    .lp-sec-h h2 { font-size: 28px; }
    .lp-sec-h p { font-size: 14.5px; }
    .lp-demo { padding: 44px 0 60px; }
    .lp-stage { margin-top: 28px; }
    .lp-handoff { font-size: 12px; }
    .lp-vs { padding: 56px 0 48px; }
    .lp-count { font-size: 14.5px; align-items: flex-start; text-align: left; max-width: 330px; }
    .lp-count i { margin-top: 7px; }
    .lp-fl-r.top { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; margin: 0 -12px; padding: 0 12px; }
    .lp-fl-r.top::-webkit-scrollbar { display: none; }
    .lp-fl-lb { display: none; }
    .lp-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
    .lp-card { height: 196px; padding: 16px; }
    .lp-np { height: auto; grid-template-columns: auto minmax(0, 1fr) auto auto; grid-template-rows: 56px 12px; border-radius: 22px; padding: 0 8px 0 10px; row-gap: 0; bottom: 84px;
        -webkit-backdrop-filter: none; backdrop-filter: none; background: #0c0f0d; }
    .lp-np .pg { grid-column: 1 / -1; grid-row: 2; align-self: start; padding: 0 6px; }
    .lp-np .tm, .lp-np .cl { display: none; }
    .lp-np .call { height: 38px; padding: 0 14px; font-size: 13px; }
}
@media (max-width: 719px) {
    .lp-stage [data-demo-call] { min-height: 668px; }
}
@media (prefers-reduced-motion: reduce) {
    .lp *, .lp *::before, .lp *::after, .lp-np, .lp-np * { animation: none !important; transition: none !important; }
}

/* The highlight images carry an inline max-width of 400px, wider than a phone's column: keep them
   inside it so the page never scrolls sideways (they stay 400px wide on desktop). */
.section-space-top .col-lg-4 img.img-fluid[style*="max-width"] { max-width: min(400px, 100%) !important; }
