/* ============================================================
   base.css — INTENTIONALLY NEAR-EMPTY.
   The template ships no visual identity. 100% of visual tokens + components
   are generated FRESH per project in Phase 0, AFTER the Anti-clone gate is approved
   (see CLAUDE.md + PAST-PROJECTS.md). Tokens must stay in sync with assets/js/tailwind.config.js.

   ⚠️ NEVER copy components/CSS from past projects into this file (including retyping from memory).
   Past projects' visual signatures are listed in PAST-PROJECTS.md — a match fails QA.

   Everything below is pure mechanics (reset + reveal contract), zero styling.
   ============================================================ */

/* mechanical reset */
html{ -webkit-text-size-adjust:100%; -webkit-tap-highlight-color:transparent; }
body{ -webkit-font-smoothing:antialiased; }

/* Reveal-on-scroll contract (base.js adds .in on viewport entry; ?revealall shows everything — screenshot.mjs relies on it).
   Hidden only when JS runs: every page must have an inline <head> script adding the `js` class to <html> early.
   No JS → no html.js → everything is visible; blank sections can never ship.
   The reveal's transition/transform/easing is defined by EACH PROJECT per its approved motion direction. */
html.js .reveal{ opacity:0; }
html.js .reveal.in{ opacity:1; }

@media (prefers-reduced-motion: reduce){
  html{ scroll-behavior:auto; }
  *{ animation:none !important; transition-duration:.001ms !important; }
  .reveal{ opacity:1 !important; transform:none !important; }
}

/* ============================================================
   LogiSuite V2 (approved direction "Sổ lãi sống", PROJECT-BRIEF §12, tokens from the shipped app §13.7).
   Page layouts live in assets/css/pages/<page>.css, generated from the approved canvas comps by
   _canvas/build_site.py (desktop comp CSS >= 1280px, mobile comp CSS < 1280px). This file holds the tokens
   and the shared behaviour styles: layout switch, nav dropdown, mobile menu, sticky sub-nav, FAQ, demo form, focus.
   ============================================================ */
:root{
  --ink:#0D0623; --text:#2D2840; --text-2:#5E5872; --muted:#6E6887; --faint:#8A84A0;
  --violet:#7B2FFF; --violet-strong:#6520D4; --violet-soft:#F5F0FF; --violet-line:#D8C4FF; --violet-light:#B98CFF;
  --green:#1B7A47; --green-soft:#ECF7F0; --amber:#A15C00; --amber-soft:#FEF4E2; --red:#C0362C; --red-soft:#FDECEC;
  --surface:#F6F5FA; --line:#ECE9F3; --white:#FFFFFF;
  --r-input:10px; --r-card:14px; --r-panel:22px;
}
body{margin:0;background:var(--white)}
.site{position:relative;-webkit-font-smoothing:auto;-moz-osx-font-smoothing:auto;font-family:'Be Vietnam Pro','BVP Fallback',system-ui,sans-serif;letter-spacing:0;color:var(--text);background:var(--white);overflow-x:clip}
.hidden{display:none!important}

/* layout switch: desktop comp >= 1280px, fluid: page content keeps the comp's 1200px column, the side gutters
   (--gx) absorb the rest (40px at 1280, 120px at 1440, wider beyond). Mobile comp below 1280px. */
@media (min-width:1280px){ .site{width:100%;--gx:max(40px,calc((100vw - 1200px) / 2))}
  .sh-d{z-index:5;padding-left:max(24px,calc(var(--gx) - 40px))!important;padding-right:max(24px,calc(var(--gx) - 40px))!important} }
@media (min-width:1280px){ .sh-m,.v-mb{display:none!important} #mobileMenu{display:none!important} }
@media (max-width:1279.98px){ .site{width:100%} .sh-d,.v-dk{display:none!important} }

/* skip link + focus */
.skip{position:absolute;left:12px;top:-60px;z-index:200;background:var(--white);color:var(--ink);padding:10px 14px;border-radius:var(--r-input);font:600 14px 'Be Vietnam Pro','BVP Fallback',system-ui,sans-serif;text-decoration:none}
.skip:focus{top:12px}
:focus-visible{outline:2px solid var(--violet-light);outline-offset:3px;border-radius:6px}
a,button{-webkit-tap-highlight-color:transparent}
.btn{cursor:pointer;transition:background-color .15s ease,border-color .15s ease,transform .1s ease}
.btn:active{transform:translateY(1px)}
.btn-o:hover{border-color:var(--violet)}
.foot2 a{transition:color .15s ease}.foot2 a:hover{color:var(--white)}
.lk{transition:opacity .15s ease}.lk:hover{opacity:.85}.lk:active{opacity:.7}

/* header dropdowns (desktop) */
.dd{position:relative}
.dd-t{appearance:none;background:none;border:0;margin:0;cursor:pointer;font:500 15px 'Be Vietnam Pro','BVP Fallback',system-ui,sans-serif;letter-spacing:0;color:rgba(255,255,255,0.9);padding:8px 0;display:inline-flex;align-items:center;gap:4px}
.dd-t:hover,.dd.open .dd-t{color:var(--white)}
.dd-t.cur{color:var(--white);box-shadow:inset 0 -2px 0 var(--violet-light)}
.dd-t svg{transition:transform .15s ease}.dd.open .dd-t svg{transform:rotate(180deg)}
.dd-m{position:absolute;left:-16px;top:calc(100% + 10px);min-width:230px;background:var(--white);border-radius:var(--r-card);padding:8px;box-shadow:0 24px 60px -20px rgba(13,6,35,0.45);border:1px solid var(--line);display:none;flex-direction:column;z-index:60}
.dd-m.dd-2{min-width:330px}
.dd.open .dd-m{display:flex}
.dd-m a{display:flex;flex-direction:column;gap:2px;padding:10px 12px;border-radius:10px;text-decoration:none;color:var(--ink);font:500 14.5px 'Be Vietnam Pro','BVP Fallback',system-ui,sans-serif;letter-spacing:0}
.dd-m a b{font-weight:600}.dd-m a i{font-style:normal;font-size:13px;color:var(--muted)}
.dd-m a:hover,.dd-m a[aria-current]{background:var(--violet-soft);color:var(--violet-strong)}

/* mobile menu */
.mm{position:fixed;left:0;right:0;top:60px;bottom:0;z-index:100;background:var(--ink);overflow-y:auto;font-family:'Be Vietnam Pro','BVP Fallback',system-ui,sans-serif;letter-spacing:0}
.mm-in{display:flex;flex-direction:column;padding:8px 16px calc(24px + env(safe-area-inset-bottom))}
.mm-h{font-size:12px;font-weight:600;letter-spacing:.06em;text-transform:uppercase;color:var(--violet-light);margin:18px 0 4px}
.mm a{display:flex;align-items:center;min-height:48px;color:var(--white);text-decoration:none;font-size:17px;font-weight:500;border-bottom:1px solid rgba(255,255,255,0.08)}
.mm a[aria-current]{color:var(--violet-light)}
.mm a.mm-cta{justify-content:center;margin-top:20px;border:0;height:52px;font-size:16px;font-weight:600}
.sh-m{background:var(--ink)}
body.menu-open .sh-m{position:fixed!important;left:0;right:0;top:0;z-index:110}

/* sticky sub-nav */
.subnav{position:sticky;top:16px;z-index:40}
a.sni{text-decoration:none;cursor:pointer;transition:background-color .15s ease,color .15s ease}
a.sni:hover{color:var(--violet-strong)}
@media (max-width:1279.98px){
  .subnav{top:8px;overflow-x:auto!important;scrollbar-width:none}
  .subnav::-webkit-scrollbar{display:none}
  a.sni{min-height:44px;flex:none}
}

/* "Xem tiếp" cards + footer touch targets */
.nx-c{transition:border-color .15s ease,box-shadow .15s ease}.nx-c:hover{border-color:var(--violet-light);box-shadow:0 18px 40px -26px rgba(13,6,35,0.35)}.nx-c:active{transform:translateY(1px)}

/* FAQ accordion */
:where(button.fq){appearance:none;background:none;border:0;margin:0;padding:0;width:100%;font:inherit;color:inherit;letter-spacing:inherit;text-align:left;cursor:pointer}
button.fq:hover .fi{border-color:var(--violet)}

/* demo form */
.l-g2 input{height:44px;box-sizing:border-box;border:1px solid #D9D4E6;border-radius:12px;padding:0 14px;font:inherit;font-size:15px;color:var(--ink);letter-spacing:0;background:var(--white);width:100%}
.l-g2 input::placeholder{color:#A39DB5}
.l-g2 input:focus{outline:none;border-color:var(--violet);box-shadow:0 0 0 3px rgba(123,47,255,0.15)}
.l-g2 input.err{border-color:var(--red)}
.l-g2 em{font-style:normal;color:var(--red)}
.l-ch button{appearance:none;height:38px;padding:0 14px;border-radius:10px;border:1px solid #D9D4E6;background:var(--white);font:inherit;font-weight:500;color:var(--text);cursor:pointer;display:inline-flex;align-items:center}
.l-ch button.on{border-color:var(--violet);background:var(--violet-soft);color:var(--violet-strong);font-weight:600}
.l-sl button{appearance:none;border:1px solid #D9D4E6;border-radius:12px;padding:8px 10px;display:flex;flex-direction:column;gap:1px;background:var(--white);font:inherit;color:var(--text);text-align:left;cursor:pointer}
.l-sl button.on{border-color:var(--violet);background:var(--violet);color:var(--white)}
.l-ch button:hover,.l-sl button:hover{border-color:var(--violet-light)}
.l-sub{width:100%;border:0;font-family:inherit}
.l-ok{margin:0;padding:12px 14px;border-radius:12px;background:var(--green-soft);color:var(--green);font-weight:600;text-align:center}
@media (max-width:1279.98px){ .l-ch button{min-height:44px} .l-sl button{min-height:56px} }

@media (hover:none){ .btn:hover,.nx-c:hover{box-shadow:none} }

/* touch / click targets >= 44px. Hit areas grow with padding + negative margin so the approved comp layout does not move */
.skip{min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center}
.sh-d>a:first-child{padding:7px 0;margin:-7px 0}
.sh-m>a:first-child{padding:9px 0;margin:-9px 0}
a.nav,.dd-t{min-height:44px;box-sizing:border-box;display:inline-flex;align-items:center}
.lk{padding:10px 0;margin:-10px 0}
.z-lk{padding:14px 0;margin:-14px 0}
.foot2 .fcol a,.foot2 .flinks a{display:inline-flex;align-items:center;padding:13px 0;margin:-13px 0}
button.fq{padding-top:5px;padding-bottom:5px;margin-top:-5px;margin-bottom:-5px}
a.sni{height:44px!important;margin:-3px 0}
.subnav .btn.sm2{height:44px;margin:-3px 0 -3px 8px}
.l-ch button{min-height:44px}
.sh-m a[href*="register"]{height:44px!important}
/* images carry width/height attributes (no layout shift while lazy images load); keep comp sizing in control */
:where(.site img[width][height]){height:auto;max-width:100%}

/* ===== fixes after the build test (19/11) ===== */
.stk{position:relative}
@media (max-width:1279.98px){ .subnav{-webkit-mask-image:none!important;mask-image:none!important;background:#FFFFFF!important} }
.l-sub[hidden]{display:none!important}
.l-err{display:block;margin-top:4px;color:var(--red);font-size:12.5px;font-weight:500;letter-spacing:0}
.l-g2 input[aria-invalid="true"]{border-color:var(--red)}
.drw{overflow-x:auto;scroll-snap-type:x mandatory;scrollbar-width:none;-webkit-overflow-scrolling:touch;scroll-padding-left:120px}
.drw::-webkit-scrollbar{display:none}
.drw>*{scroll-snap-align:start}
@media (max-width:1279.98px){ .drw{scroll-padding-left:16px} }
button.db,button.dbt{border:0;padding:0;font:inherit;cursor:pointer;transition:background-color .15s ease,opacity .15s ease}
button.db:hover,button.dbt:hover{opacity:.85}
button.db:active,button.dbt:active{transform:translateY(1px)}
/* mobile: menu CTA on top, sticky bottom CTA bar */
.mm a.mm-cta{margin:12px 0 4px}
.mcta{display:none}
@media (max-width:1279.98px){
  .mcta{display:flex;gap:8px;position:fixed;left:0;right:0;bottom:0;z-index:90;padding:10px 12px calc(10px + env(safe-area-inset-bottom));background:rgba(13,6,35,0.94);
        backdrop-filter:none;transform:translateY(110%);transition:transform .2s ease;font-family:'Be Vietnam Pro','BVP Fallback',system-ui,sans-serif;letter-spacing:0}
  .mcta.show{transform:none}
  .mcta .btn{flex:1;height:48px;font-size:15px}
  .mcta .mcta-s{border:1px solid rgba(255,255,255,0.45);color:#FFFFFF;background:transparent}
  body.menu-open .mcta{display:none}
}
@media (prefers-reduced-motion:reduce){ .mcta{transition:none} }

/* ===== accessibility pass (19/11) ===== */
:focus-visible{outline:2px solid var(--violet-strong);outline-offset:3px}
.sh-d :focus-visible,.sh-m :focus-visible,.h6 :focus-visible,.pk4 :focus-visible,.foot2 :focus-visible,.cta2 :focus-visible,.mm :focus-visible,.mcta :focus-visible,.dsec2 :focus-visible,.hx :focus-visible,.z-hero :focus-visible,.b-hero :focus-visible,.k-hero :focus-visible,.l-hero :focus-visible{outline-color:#E4DAFF}
html{scroll-padding-top:88px}
@media (max-width:1279.98px){ html{scroll-padding-top:76px;scroll-padding-bottom:84px} }
.l-g2 input::placeholder{color:#7D7792}
.l-sl button.on i{color:#FFFFFF!important}
.l-note a{color:var(--violet-strong)}
.l-ok:focus{outline:none}

/* ===== fixes after functional QA (19/11) ===== */
.dd-m::before{content:"";position:absolute;left:0;right:0;top:-14px;height:14px}
@media (max-width:1279.98px){
  .sh-m{position:sticky!important;top:0;z-index:95}
  .subnav{top:68px!important}
  html{scroll-padding-top:136px}
  .l-g2 input{font-size:16px}
}
.l-alt a{display:flex;flex-direction:column;gap:2px;padding:14px 16px;border-radius:16px;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.18);min-width:170px;color:#FFFFFF;text-decoration:none;transition:background-color .15s ease}
.l-alt a:hover{background:rgba(255,255,255,0.14)}
.l-alt a svg{color:#D8C4FF;margin-bottom:4px}.l-alt a b{font-size:15px;font-weight:600}.l-alt a i{font-style:normal;font-size:12.5px;color:rgba(255,255,255,0.7)}

/* ===== fixes round 3 (19/11) ===== */
.o-cbox span:nth-child(2){color:#1E0F45!important}
@media (max-width:1279.98px){
  .bwv{height:448px!important}
  .c-4>.ph2{align-self:stretch;width:100%}
}
/* tablet layer (plan step B, approved by Daniel 19/11):  768-1279px on top of the mobile comp CSS.
   Content column widens from 720 to 1000px and stacked blocks go back to two columns. */
@media (min-width:768px) and (max-width:1279.98px){
  .site main>section,.site main>.stk>section,.site>.foot2{padding-left:max(32px,calc((100% - 1000px)/2))!important;padding-right:max(32px,calc((100% - 1000px)/2))!important}
  .site main>.stk>.subnav{max-width:none!important;margin-left:max(32px,calc((100% - 1000px)/2))!important;margin-right:max(32px,calc((100% - 1000px)/2))!important}
  .h6.o-hero,.h6{padding-bottom:72px!important}
  .mcta{padding-left:max(12px,calc((100% - 1000px)/2));padding-right:max(12px,calc((100% - 1000px)/2))}
  /* hero */
  .h6t{padding:64px 48px 0!important}
  .h6t h1,.hx h1{font-size:44px!important;line-height:1.12!important;max-width:820px}
  .h6t p,.hx-t p{font-size:18px!important;max-width:640px}
  .h6 .bh4c,.hx-b{flex-direction:row!important;width:auto!important;justify-content:center}
  .h6 .bh4c .btn,.hx-b .btn{width:auto!important;padding:0 28px!important}
  .h6w{margin:48px max(32px,calc((100% - 1000px)/2)) 0!important}
  /* chapters: stacked blocks back to 2 columns */
  .kg{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px!important}
  .two,.o-4,.o-5,.o-pkw{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px!important;align-items:start}
  .three{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px!important}
  .three>:nth-child(3):last-child{grid-column:1/-1}
  .chh{max-width:760px}
  .nx-g{grid-template-columns:1fr 1fr!important;gap:16px!important}
  .faqsec{display:grid!important;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:48px!important;align-items:start!important}
  .askz{max-width:320px!important}
  /* homepage */
  .hx{height:auto!important;padding-bottom:64px}
  .hx-t{padding:72px 48px 0!important}
  .hx-b .btn{display:inline-flex!important}
  .hx-f{position:relative!important;left:auto!important;top:auto!important;transform:none!important;margin:48px auto 0;width:min(1000px,calc(100% - 64px))!important}
  .hx-c{aspect-ratio:1024/560!important}
  .lstrip{margin-top:0!important}
  .lrow{grid-template-columns:repeat(3,minmax(0,1fr))!important}
  .routemap{max-width:600px;margin-left:auto!important;margin-right:auto!important}
  .night-grid{display:grid!important;grid-template-columns:minmax(0,320px) minmax(0,1fr);gap:32px;align-items:center}
  .night-grid .stage{margin-top:0!important}
  .bw{display:grid!important;grid-template-columns:minmax(0,300px) minmax(0,1fr);gap:24px;align-items:center}
  .bw .bwv{margin-top:0!important}
  .bg2{display:grid!important;grid-template-columns:repeat(2,minmax(0,1fr));gap:20px!important}
  .ob{flex-direction:row!important;justify-content:center}
  .ob .btn,.ctab .btn,.cta2 .btn{width:auto!important;padding:0 28px!important}
  .ctab{flex-direction:row!important;justify-content:center}
  .spn{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,1fr);gap:32px;align-items:stretch}
  .spn .sph,.spn .sph img{height:100%!important;min-height:320px;object-fit:cover}
  .l-hg{display:grid!important;grid-template-columns:minmax(0,1fr) minmax(0,440px);grid-template-areas:"t f" "x f";gap:24px 32px!important;align-items:start}
  .l-form,.l-x{width:auto!important;max-width:none!important}
  .z-r{grid-template-columns:minmax(0,140px) minmax(0,1fr) 24px minmax(0,1.2fr)!important;align-items:center;gap:12px!important}
  .z-r>.z-rd{flex-direction:column!important;align-items:flex-start!important}
}
@media (min-width:768px) and (max-width:899.98px){
  .l-hg{grid-template-columns:minmax(0,1fr) minmax(0,1.3fr);grid-template-areas:"t t" "x f"}
}
/* 404 */
.nf{min-height:70vh;display:flex;flex-direction:column;align-items:flex-start;gap:16px;padding:120px max(16px,calc((100% - 960px)/2)) 96px;background:linear-gradient(180deg,var(--ink) 0%,#2A1270 60%,#5A22D6 100%);color:#FFFFFF;font-family:'Be Vietnam Pro','BVP Fallback',system-ui,sans-serif;letter-spacing:0}
.nf-code{font-size:14px;font-weight:600;color:var(--violet-light);letter-spacing:.08em}
.nf h1{margin:0;font-size:clamp(32px,5vw,52px);line-height:1.12;font-weight:500;letter-spacing:0}
.nf p{margin:0;font-size:18px;line-height:1.6;color:rgba(255,255,255,0.82);max-width:620px}
.nf-l{display:flex;flex-wrap:wrap;gap:12px;margin-top:8px}
.nf-s{border:1px solid rgba(255,255,255,0.45);color:#FFFFFF;background:transparent}
.nf-g{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:12px;width:100%;margin-top:32px}
.nf-g a{display:flex;flex-direction:column;gap:4px;padding:16px 18px;border-radius:16px;background:rgba(255,255,255,0.08);border:1px solid rgba(255,255,255,0.16);color:#FFFFFF;text-decoration:none;min-height:44px}
.nf-g a:hover{background:rgba(255,255,255,0.14)}.nf-g b{font-weight:600}.nf-g i{font-style:normal;font-size:14px;color:rgba(255,255,255,0.72)}
.pg-404 .sh-d{position:absolute}

/* fluid desktop 1280-1439: floating cards that hang into the 120px gutter at 1440 get pulled in */
@media (min-width:1280px) and (max-width:1439.98px){ .night .float.f1{right:-12px} }

/* phones in landscape (short viewport): keep only the sticky top bar, so fixed chrome stays under 25% of the height */
@media (max-width:1279.98px) and (max-height:500px){
  .subnav{position:relative!important;top:auto!important}
  html{scroll-padding-top:72px}
  .mcta{display:none!important}
}
/* while typing in a form the keyboard is up: the bottom CTA bar would cover the field */
body.typing .mcta{display:none!important}

/* ===== mobile rhythm (plan steps C + D, approved by Daniel 19/11) =====
   Phones (< 768px): shorter section padding, section leads cut to their opening sentence (.lx, see build_site.py
   short_leads), card groups as horizontal swipe rows where the next card peeks in, product mocks trimmed to the part
   the section talks about. Text floor 11px is applied to the page CSS by build_site.py text_floor(). */
@media (max-width:767.98px){
  .lx{display:none}
  .site main .ch,.site main .pk4,.site main .sec{padding-top:52px!important;padding-bottom:52px!important}
}
/* D: capped product mocks (build_site.py MOCK_CAPS) */
@media (max-width:767.98px){ .capm{max-height:var(--cap,420px);overflow:hidden;-webkit-mask-image:linear-gradient(#000 78%,transparent);mask-image:linear-gradient(#000 78%,transparent)} }
/* Lô hàng & vận hành */
@media (max-width:767.98px){
  /* hero: the lot window peeks behind the task card */
  .pg-van-hanh .o-hero .h6w>.aw2.o-ship{max-height:250px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 62%,transparent);mask-image:linear-gradient(#000 62%,transparent)}
  /* D: mocks */
  .pg-van-hanh .o-pkw .aw2.dark .o-2c{display:none}
  .pg-van-hanh .o-5l>.sw:nth-child(2){display:none}
  .pg-van-hanh .o-5r{padding:56px 0 20px!important}
  .pg-van-hanh .o-2c.b>.o-card:nth-child(2),.pg-van-hanh .a2main>.o-card{display:none}
  .pg-van-hanh .o-k6>:nth-child(n+5){display:none}
  .pg-van-hanh .o-tp>.o-tr:nth-child(n+5){display:none}
  .pg-van-hanh .o-w3>.aw2,.pg-van-hanh .aw2.o-ic:not(.o-perf){max-height:400px;overflow:hidden;-webkit-mask-image:linear-gradient(#000 80%,transparent);mask-image:linear-gradient(#000 80%,transparent)}
  .pg-van-hanh .o-4 .ph2,.pg-van-hanh .o-4 .ph2 img{height:200px!important}
}
/* Chuyển đổi số + trang chủ (mobile rhythm) */
@media (max-width:767.98px){
  .pg-chuyen-doi .z-hv .z-files{display:none}
  .pg-ke-toan .k-ht .k-mini{display:none}
  .faq-more{display:flex}
  .faqs-c .faq:nth-of-type(n+5){display:none}
}
.faq-more{display:none;align-items:center;gap:8px;min-height:44px;margin-top:8px;padding:0;border:0;background:none;font:600 15px 'Be Vietnam Pro','BVP Fallback',system-ui,sans-serif;color:var(--violet-strong);cursor:pointer;letter-spacing:0}
.faq-more:hover{text-decoration:underline}

/* ===== motion + sticky header (19/11, /impeccable animate) =====
   Vocabulary from the approved direction (PROJECT-BRIEF §12): hero settles in once, the route line draws,
   a fee row slides in and the profit recounts. Everything is visible without JS; base.js only adds motion.
   Easing: ease-out-expo. Reduced motion: no movement (base.js skips, CSS below drops keyframes). */
:root{--ease-out:cubic-bezier(.16,1,.3,1);--z-sticky:80}
/* desktop header: absolute over the hero, then a solid ink bar pinned to the top once the hero is passed */
@media (min-width:1280px){
  .sh-d.stuck{position:fixed!important;height:64px!important;z-index:var(--z-sticky)!important;background:var(--ink);box-shadow:0 1px 0 rgba(255,255,255,.07),0 16px 32px -20px rgba(13,6,35,.7)}
  .hdr-stuck .subnav{top:76px!important}
  .hdr-stuck{scroll-padding-top:150px}
  html:has(body.hdr-stuck){scroll-padding-top:150px}
}
/* phone header: a hairline once content scrolls under it */
.sh-m{transition:box-shadow .2s ease}
.scrolled .sh-m{box-shadow:0 1px 0 rgba(255,255,255,.08),0 10px 24px -16px rgba(13,6,35,.8)}
@media (prefers-reduced-motion:no-preference){
  .sh-d.stuck{animation:shIn .36s var(--ease-out)}
  @keyframes shIn{from{transform:translateY(-100%)}to{transform:none}}
  .dd.open .dd-m{animation:ddIn .2s var(--ease-out)}
  @keyframes ddIn{from{opacity:0;transform:translateY(-6px)}to{opacity:1;transform:none}}
  .mm:not(.hidden) .mm-in>*{animation:mmIn .32s var(--ease-out) backwards}
  .mm:not(.hidden) .mm-in>:nth-child(2){animation-delay:30ms}.mm:not(.hidden) .mm-in>:nth-child(3){animation-delay:60ms}
  .mm:not(.hidden) .mm-in>:nth-child(n+4){animation-delay:90ms}
  @keyframes mmIn{from{opacity:0;transform:translateY(-8px)}to{opacity:1;transform:none}}
  .faq.open .fa{animation:faIn .26s var(--ease-out)}
  @keyframes faIn{from{opacity:0;transform:translateY(-4px)}to{opacity:1;transform:none}}
  .fq .fi{transition:transform .2s var(--ease-out)}
  .l-ok:not([hidden]){animation:faIn .3s var(--ease-out)}
}
@media (hover:hover) and (prefers-reduced-motion:no-preference){
  .btn-p{transition:background-color .15s ease,box-shadow .2s ease,transform .2s var(--ease-out)}
  .btn-p:hover{transform:translateY(-1px);box-shadow:0 8px 20px -8px rgba(123,47,255,.55)}
  .btn-p:active{transform:translateY(1px);box-shadow:0 2px 6px rgba(123,47,255,.28)}
  .nx a,.nx-c{transition:transform .2s var(--ease-out),box-shadow .2s ease}
}

/* ===== designer review fixes (19/11) ===== */
.mcta{background:var(--ink)!important}
@media (min-width:1280px){
  .hdr-stuck .subnav{top:72px!important}
  .hdr-stuck .subnav>.btn{display:none}
  /* Bán hàng hero: the CRM window bleeds off the right edge; fade it out at the viewport edge instead of cutting words */
  .pg-ban-hang .b-hw{-webkit-mask-image:linear-gradient(90deg,#000 calc(100vw - var(--gx) - 526px - 160px),transparent calc(100vw - var(--gx) - 526px - 16px));mask-image:linear-gradient(90deg,#000 calc(100vw - var(--gx) - 526px - 160px),transparent calc(100vw - var(--gx) - 526px - 16px))}
  /* Báo giá hero: the Tra nhanh card covers whole rows, its header line wraps */
  .pg-bao-gia .h6w .qp{width:340px!important}
}
.pg-bao-gia .qph{flex-wrap:wrap}
.pg-bao-gia .three .t4{grid-template-columns:auto minmax(0,1fr) auto auto!important}
.pg-bao-gia .three .t4>span:nth-child(2){overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
@media (max-width:767.98px){
  .pg-bao-gia .h6w .qp{width:auto!important;margin-left:0!important;margin-right:0!important;left:auto!important;right:auto!important;top:auto!important;bottom:auto!important}
  .pg-index .orb .io{font-size:13.5px}
}
/* closing CTA (Daniel 19/11, T-37 no dimmed photo): the plain ink band from the approved comp gradient, watermark kept */
.cta2.photo{background:linear-gradient(180deg,#0D0623 0%,#1B0B45 45%,#3B17A0 100%)!important}
.cta2.photo>.cbg,.cta2.photo>.cshade{display:none}
/* audit 19/11: two mock texts under 4.5:1 */
.z-m i{color:#56626F!important}
.pg-ban-hang .g i.tn{color:#14603A!important}
/* polish 19/11: no single-word last lines in leads and answers */
.lead,.fa,.chh p{text-wrap:pretty}

/* ===== legal pages (chinh-sach-bao-mat, dieu-khoan): a short ink band, then a readable document column ===== */
.lg-hd{background:linear-gradient(180deg,var(--ink) 0%,#1B0B45 100%);color:var(--white);padding:136px max(16px,calc((100% - 1040px)/2)) 56px}
.lg-in{max-width:760px}
.lg-k{font-size:14px;font-weight:600;color:var(--violet-light)}
.lg-hd h1{margin:12px 0 0;font-size:clamp(32px,4.4vw,48px);line-height:1.12;font-weight:500;letter-spacing:0;text-wrap:balance}
.lg-hd p{margin:14px 0 0;font-size:18px;line-height:1.6;color:rgba(255,255,255,.82)}
.lg-hd .lg-meta{font-size:14px;color:rgba(255,255,255,.7)}
.lg-draft{display:inline-block;margin-top:18px!important;padding:8px 12px;border-radius:var(--r-input);background:rgba(254,244,226,.12);border:1px solid rgba(254,244,226,.35);font-size:14px!important;color:#FEF4E2!important}
.lgd{display:grid;grid-template-columns:240px minmax(0,1fr);gap:56px;padding:56px max(16px,calc((100% - 1040px)/2)) 96px;font-family:'Be Vietnam Pro','BVP Fallback',system-ui,sans-serif;letter-spacing:0;color:var(--text)}
.lg-toc{position:sticky;top:96px;align-self:start;display:flex;flex-direction:column;gap:0;font-size:14px}
.lg-toc b{font-size:13px;font-weight:600;color:var(--muted);margin-bottom:8px}
.lg-toc a{display:flex;align-items:center;min-height:44px;color:var(--text-2);text-decoration:none;border-radius:8px;padding:0 10px;margin:0 -10px}
.lg-toc a:hover{background:var(--surface);color:var(--ink)}
.lg-body{max-width:720px}
.lg-body h2{margin:44px 0 12px;font-size:24px;line-height:1.3;font-weight:600;letter-spacing:-0.02em;color:var(--ink);scroll-margin-top:96px}
.lg-body h2:first-child{margin-top:0}
.lg-body p,.lg-body li{font-size:16px;line-height:1.7;color:var(--text)}
.lg-body p{margin:0 0 14px;text-wrap:pretty}
.lg-body ul{margin:0 0 14px;padding-left:22px}
.lg-body li{margin:4px 0}
.lg-body a{color:var(--violet-strong);text-underline-offset:3px}
.lg-body b{font-weight:600;color:var(--ink)}
.lg-kv{list-style:none;padding:0!important;border-top:1px solid var(--line)}
.lg-kv li{display:grid;grid-template-columns:220px minmax(0,1fr);gap:16px;margin:0!important;padding:12px 0;border-bottom:1px solid var(--line)}
.lg-mock{background:#FEF4E2;color:#7A4600;border-radius:4px;padding:1px 6px;font-weight:500}
.pg-legal .sh-d{position:absolute}
@media (max-width:1279.98px){ .lg-hd{padding-top:40px} }
@media (max-width:899.98px){
  .lgd{grid-template-columns:1fr;gap:28px;padding-top:32px}
  .lg-toc{position:static;padding:16px;border-radius:var(--r-card);background:var(--surface)}
  .lg-kv li{grid-template-columns:1fr;gap:2px}
}

/* ===== designer re-test fixes (19/11, second review) ===== */
@media (max-width:1279.98px){
  .cta2.v-mb{padding-bottom:64px!important}
  .pg-bao-gia .kfl{margin-top:8px!important}
  .pg-ke-toan .k-3w,.pg-ke-toan .k-4w{align-items:stretch!important}
}
@media (max-width:767.98px){
  .site main .h6{padding-bottom:48px!important}
  /* homepage quote card: the note explaining the recount stays visible, the long header meta goes */
  .pg-index .bwv .fl{display:flex!important;position:absolute!important;left:auto!important;right:6px!important;top:-22px!important;bottom:auto!important;z-index:2;font-size:12px}
  .pg-index .bwv .scr .sh .mu{display:none}
  .pg-index .bwv{margin-top:40px!important}
  /* department band: status pills wrap instead of being cut by the bleed */
  .pg-index .dsc{margin-right:0!important;padding-right:12px!important;border-radius:16px 16px 0 0!important}
  .pg-index .dsr{white-space:normal!important;flex-wrap:wrap;border-radius:12px!important}
  /* Báo giá: chapter 04 mock keeps the 16px gutter; chapter 06 KPI tiles 2 + 1 */
  .pg-bao-gia .w2>.aw2{margin-left:0!important;margin-right:0!important;width:auto!important;max-width:100%!important}
  .pg-bao-gia .kq{grid-template-columns:1fr 1fr!important}
  .pg-bao-gia .kq>:last-child{grid-column:1/-1}
}
@media (min-width:1280px){
  .pg-bao-gia .kfl{bottom:-12px!important}
  .pg-bao-gia .k1 .kvis{padding-bottom:40px!important}
  /* pinned header: short shadow so the sub-nav pill under it stays clean white */
  .sh-d.stuck{box-shadow:0 1px 0 rgba(255,255,255,.07),0 6px 14px -10px rgba(13,6,35,.55)!important}
}
/* desktop: one 96px gap between each module hero's lowest visual and the sub-nav (designer review, Daniel 19/11) */
@media (min-width:1280px){
  .pg-bao-gia main>.stk>.subnav{margin-top:66px!important}
  .pg-van-hanh main>.stk>.subnav{margin-top:46px!important}
  .pg-dieu-hanh main>.stk>.subnav{margin-top:66px!important}
  .pg-ban-hang main>.stk>.subnav{margin-top:-14px!important}
  .pg-ke-toan main>.stk>.subnav{margin-top:0!important}
  .pg-chuyen-doi main>.stk>.subnav{margin-top:-9px!important}
}
/* desktop navigation from 1024px (Daniel 19/11): iPad landscape and small laptops get the full header instead of the
   phone bar + menu button; the page body below stays the tablet layer. */
@media (min-width:1024px) and (max-width:1279.98px){
  .site .sh-d{display:flex!important;z-index:5;padding-left:32px!important;padding-right:32px!important}
  .sh-d a.nav{color:rgba(255,255,255,.9);text-decoration:none;font-size:15px;font-weight:500;padding:8px 0;letter-spacing:0}
  .sh-d a.nav:hover{color:var(--white)}
  .site .sh-d nav{margin-left:40px!important;gap:24px!important}
  .sh-m,#mobileMenu,.mcta{display:none!important}
  .sh-d.stuck{position:fixed!important;height:64px!important;z-index:var(--z-sticky)!important;background:var(--ink);box-shadow:0 1px 0 rgba(255,255,255,.07),0 6px 14px -10px rgba(13,6,35,.55)}
  .site main .h6t,.site main .hx-t,.site main .b-hg,.site main .k-hg,.site main .l-hg{padding-top:136px!important}
  .lg-hd{padding-top:136px}
  .subnav{top:16px!important}
  .hdr-stuck .subnav{top:72px!important}
  .hdr-stuck .subnav>.btn{display:none}
  html{scroll-padding-top:96px;scroll-padding-bottom:0}
  html:has(body.hdr-stuck){scroll-padding-top:150px}
}
@media (min-width:1024px) and (max-width:1279.98px) and (prefers-reduced-motion:no-preference){
  .sh-d.stuck{animation:shIn .36s var(--ease-out)}
}

/* ===== /impeccable critique + harden fixes (19/11) ===== */
.o-tt b,.o-tl>span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;min-width:0}
.o-wk.off em{color:#5E5872}
.subnav{box-shadow:0 10px 24px -16px rgba(13,6,35,.22)!important}
@media (min-width:1024px){
  /* the sub-nav docks flush under the pinned header: no slit of page content between them */
  .hdr-stuck .subnav{top:64px!important;border-top-left-radius:0!important;border-top-right-radius:0!important;border-top-color:transparent!important}
}
@media (max-width:767.98px) and (hover:none){
  /* phones: the department carousel has swipe + dots; the arrow buttons are desktop affordances */
  .pg-index .dnv{display:none!important}
}
/* without JS every FAQ answer stays readable; collapsing needs base.js (html.js is set inline in <head>) */
.faq:not(.open) .fa{display:block}
.js .faq:not(.open) .fa{display:none}
/* Daniel 19/11 (critique round): */
/* B: on phones the header trial button steps aside while the bottom bar carries both CTAs */
/* D: hero leads show their opening sentence at every width (taste: hero subtext <= ~20 words) */
.h6t .lx,.b-ht .lx,.k-ht .lx,.l-ht .lx{display:none!important}
/* E: the support band is not money, so it sits on ledger surface instead of money-soft green */
.pg-index .spn{background:var(--surface)!important}
/* footer: three link columns after the role column was removed (Daniel 19/11) */
@media (min-width:1024px){ .foot2 .fgrid{grid-template-columns:2fr repeat(3,minmax(0,1fr))!important} }


/* ===== shared from the homepage v17 round (Daniel 20/11/2026): tokens, closing CTA .cta3, mega dropdown, quiet links, readable footer ===== */
:root{--tk-ink:#0D0623;--tk-violet:#7B2FFF;--tk-violet-strong:#6520D4;--tk-violet-light:#B98CFF;--tk-violet-soft:#F5F0FF;
  --tk-surface:#F6F5FA;--tk-line:#ECE9F3;--tk-text:#2D2840;--tk-muted:#5E5872;--tk-green:#1B7A47;--tk-green-soft:#ECF7F0;
  --tk-amber:#A15C00;--tk-amber-soft:#FEF4E2;
  --tk-card-sh:0 1px 2px rgba(13,6,35,.05),0 14px 34px -18px rgba(45,20,110,.22);
  --tk-card-sh-hi:0 2px 4px rgba(13,6,35,.06),0 26px 52px -22px rgba(45,20,110,.32);
  --tk-screen-sh:0 2px 6px rgba(13,6,35,.07),0 30px 60px -26px rgba(45,20,110,.38)}
/* ---------- 7. closing CTA ---------- */
.cta3{padding:24px var(--gx,120px) 96px;background:#fff}
.c3in{position:relative;display:grid;grid-template-columns:minmax(0,1fr) minmax(0,520px);gap:56px;align-items:center;border-radius:28px;padding:64px 0 64px 64px;
  background:radial-gradient(700px 360px at 0% 0%,rgba(123,47,255,.34),rgba(123,47,255,0) 70%),var(--tk-ink);overflow:hidden}
.c3t{color:#fff;max-width:520px}
.c3t h2{margin:0;font:500 48px/1.12 'Be Vietnam Pro','BVP Fallback',system-ui,sans-serif;letter-spacing:-.035em;text-wrap:balance}
.c3t p{margin:18px 0 0;font-size:17px;line-height:1.6;color:rgba(255,255,255,.8)}
.c3b{display:flex;gap:12px;margin-top:32px;flex-wrap:wrap}
.c3b .btn-s{border:1px solid rgba(255,255,255,.45)!important;color:#fff!important;background:transparent!important}
.c3v{position:relative;margin-right:64px}
.c3v img{display:block;width:100%;aspect-ratio:4/3.4;object-fit:cover;object-position:40% 50%;border-radius:22px}
.c3chip{position:absolute;display:flex;align-items:center;gap:10px;background:#fff;border-radius:14px;padding:12px 14px;box-shadow:0 24px 44px -18px rgba(0,0,0,.55);
  font:500 13.5px/1.25 'Be Vietnam Pro','BVP Fallback',system-ui,sans-serif;letter-spacing:0;color:var(--tk-ink)}
.c3chip b{display:block;font-weight:600}
.c3chip i{display:block;font-style:normal;font-size:12.5px;color:var(--tk-muted);margin-top:2px}
.c3chip.a{left:-36px;top:36px}
.c3chip.b{right:-24px;bottom:32px}
.c3chip.b b{color:var(--tk-green);font-size:18px;margin-top:2px}
.c3i{flex:none;width:30px;height:30px;border-radius:8px;display:grid;place-items:center}
.c3i.g{background:var(--tk-green-soft);color:var(--tk-green)}
@media (max-width:1279.98px){.cta3{padding:16px 32px 72px}.c3in{grid-template-columns:minmax(0,1fr) minmax(0,400px);padding:48px 0 48px 48px;gap:40px}.c3t h2{font-size:38px}.c3v{margin-right:48px}}
@media (max-width:899.98px){
  .c3in{grid-template-columns:1fr;padding:40px 24px 28px}
  .c3v{margin:8px 0 0}
  .c3chip.a{left:12px;top:12px}.c3chip.b{right:12px;bottom:12px}
}
@media (max-width:767.98px){
  .cta3{padding:8px 16px 56px}
  .c3in{border-radius:22px;padding:36px 20px 20px}
  .c3t h2{font-size:30px}
  .c3t p{font-size:15.5px}
  .c3b{flex-direction:column}.c3b .btn{width:100%}
  .c3v img{aspect-ratio:4/3.6}
  .c3chip{padding:9px 11px;font-size:12.5px}.c3chip.b b{font-size:15px}
}

/* ---------- 10. mega dropdown ---------- */
.dd-m.dd-mega{flex-direction:row;gap:8px;width:640px;min-width:0;padding:10px;left:-24px;border-radius:22px;box-shadow:0 30px 70px -24px rgba(13,6,35,.5)}
.dd-mega .ddl{flex:1;display:flex;flex-direction:column;gap:2px}
.dd-m .ddi{flex-direction:row!important;align-items:center;gap:12px!important;padding:10px 12px!important;transition:background-color .16s var(--ease-out)}
.dd-m .ddi>span:last-child{display:flex;flex-direction:column;gap:2px;min-width:0}
.ddic{flex:none;width:38px;height:38px;border-radius:10px;background:var(--tk-violet-soft);color:var(--tk-violet);display:grid;place-items:center;transition:background-color .16s var(--ease-out),color .16s var(--ease-out)}
.ddic svg{width:19px;height:19px}
.dd-m .ddi:hover .ddic,.dd-m .ddi[aria-current] .ddic{background:var(--tk-violet);color:#fff}
.dd-m .ddi[aria-current] b::after{content:"";display:inline-block;width:6px;height:6px;border-radius:50%;background:var(--tk-violet);margin-left:8px;vertical-align:middle}
.dd-m a.ddf{flex:0 0 228px;display:flex;flex-direction:column;gap:6px;padding:14px!important;border-radius:14px;background:var(--tk-ink)!important;color:#fff!important}
.dd-m a.ddf img{display:block;width:100%;height:120px;object-fit:cover;object-position:0 0;border-radius:10px;margin-bottom:8px;background:#fff}
.dd-m a.ddf b{color:#fff;font-size:15px}
.dd-m a.ddf i{color:rgba(255,255,255,.72)!important;font-size:13px;line-height:1.45}
.ddf-l{margin-top:auto;padding-top:8px;font-size:13.5px;font-weight:600;color:var(--tk-violet-light)}
.dd-m a.ddf:hover .ddf-l{color:#fff}
.dd-m a.ddf:focus-visible{outline:2px solid var(--tk-violet);outline-offset:2px}
@media (prefers-reduced-motion:no-preference){.dd.open .dd-mega{animation:ddMega .18s var(--ease-out)}}
@keyframes ddMega{from{opacity:0;transform:translateY(-6px) scale(.985)}to{opacity:1;transform:none}}

/* quiet "learn more" links: one emphasis signal (T-111) */
.lk{text-decoration:none!important;font-size:16px!important;font-weight:600;gap:6px!important;letter-spacing:0}
.lk-ar{background:none!important;width:auto!important;height:auto!important;color:currentColor!important;transition:transform .2s var(--ease-out)}
.lk-ar svg{width:16px;height:16px}
.lk:hover{opacity:1!important}
.lk:hover .lk-ar{transform:translateX(3px)}
.lk:focus-visible{outline:2px solid currentColor;outline-offset:4px;border-radius:4px}
/* 6. footer: readable on ink (no negative tracking, bigger, brighter) */
.foot2{letter-spacing:0!important;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}
.foot2 .fcol{gap:14px!important}
.foot2 .fcol a{font-size:15px!important;line-height:1.5;color:rgba(255,255,255,.84)!important}
.foot2 .fcol a:hover{color:#fff!important}
.foot2 .fh{font-size:12.5px!important;letter-spacing:.08em!important;color:rgba(255,255,255,.62)!important;margin-bottom:6px!important}
.foot2 .fsub{font-size:14.5px;color:rgba(255,255,255,.7)}
.foot2 .fbottom{font-size:14px!important;color:rgba(255,255,255,.66)!important}
.foot2 .flinks a{color:rgba(255,255,255,.72)!important}

/* ===== type scale v2 (board 61, phương án A, approved by Daniel 20/11/2026) =====
   One family (Be Vietnam Pro, same as the app). Headings 600 with light negative tracking; everything under 20px at 0
   (build_site.py tracking pass). Scale: H1 62 / split-hero H1 54 / H2 44 / H3 26 / lead 19 / card text 17 (desktop). */
.site main :is(h1,h2,h3){font-weight:600!important;text-wrap:balance}
.site main h1{font-size:62px!important;line-height:1.1!important;letter-spacing:-0.03em!important}
.site main :is(.b-ht,.k-ht,.l-ht) h1{font-size:54px!important}
.site main :is(.lg-in,.nf) h1{font-size:48px!important}
.site main h2:not(.lg-body h2){font-size:44px!important;line-height:1.15!important;letter-spacing:-0.025em!important}
.site main h3{font-size:26px!important;line-height:1.25!important;letter-spacing:-0.015em!important}
.site main .dk h3{font-size:24px!important}
.site main :is(.lead,.hx-t>p,.h6t>p,.b-ht>p,.k-ht>p,.l-ht>p,.ctap,.c3t p,.o2t p){font-size:19px!important;line-height:1.6!important;letter-spacing:0!important}
.site main :is(.bp,.si i,.dk li){font-size:17px!important;line-height:1.65!important}
.site main :is(.hx-e,.eyb){font-size:13px!important;font-weight:600!important;letter-spacing:.08em!important}
@media (min-width:768px) and (max-width:1279.98px){
  .site main h1{font-size:48px!important}
  .site main :is(.b-ht,.k-ht,.l-ht,.lg-in,.nf) h1{font-size:44px!important}
  .site main h2:not(.lg-body h2){font-size:36px!important}
  .site main h3{font-size:23px!important}
  .site main .dk h3{font-size:22px!important}
  .site main :is(.lead,.hx-t>p,.h6t>p,.b-ht>p,.k-ht>p,.l-ht>p,.ctap,.c3t p,.o2t p){font-size:18px!important}
  .site main :is(.bp,.si i,.dk li){font-size:16.5px!important}
}
@media (max-width:767.98px){
  .site main h1,.site main :is(.b-ht,.k-ht,.l-ht,.lg-in,.nf) h1{font-size:34px!important;line-height:1.15!important;letter-spacing:-0.025em!important}
  .site main h2:not(.lg-body h2){font-size:28px!important;line-height:1.2!important;letter-spacing:-0.02em!important}
  .site main h3,.site main .dk h3{font-size:21px!important;line-height:1.3!important}
  .site main :is(.lead,.hx-t>p,.h6t>p,.b-ht>p,.k-ht>p,.l-ht>p,.ctap,.c3t p,.o2t p){font-size:16.5px!important}
  .site main :is(.bp,.si i,.dk li){font-size:16px!important;line-height:1.6!important}
  .site main :is(.hx-e,.eyb){font-size:12px!important}
}
/* navbar: 72px, wordmark 19/600, links 15.5/500 at 78% white (100% on hover and for the current section), tracking 0 */
.sh-d{height:72px!important}
.sh-d>a:first-child span{font-size:19px!important;letter-spacing:-0.01em!important}
.sh-d nav{gap:36px!important}
.sh-d a.nav,.sh-d .dd-t{font-size:15.5px!important;font-weight:500!important;letter-spacing:0!important;color:rgba(255,255,255,.78)!important;transition:color .15s ease}
.sh-d a.nav:hover,.sh-d .dd-t:hover,.sh-d .dd.open .dd-t,.sh-d a.nav[aria-current],.sh-d .dd-t.cur{color:#fff!important}
.sh-d .btn{height:44px!important;font-size:15px!important;letter-spacing:0!important}
.sh-m a:first-child span{font-size:18px!important;letter-spacing:-0.01em!important}
.lk{padding:12px 0!important;margin:-12px 0!important}

/* ===== pages v18 (board 62, Daniel 20/11): the remaining pages share the homepage v17 language. Scoped to body.m18 ===== */
/* 1. hero: faint wireframe globe behind the copy, one lane per page (lanes only from 1440px) */
.m18 .h6{isolation:isolate}
.m18 .h6>:not(.mglobe){position:relative}
.mglobe{position:absolute;left:0;right:0;top:0;height:900px;overflow:hidden;z-index:-1;pointer-events:none;
  -webkit-mask-image:linear-gradient(180deg,#000 0%,#000 46%,transparent 74%);mask-image:linear-gradient(180deg,#000 0%,#000 46%,transparent 74%)}
.mglobe svg{position:absolute;left:50%;top:0;width:1440px;height:900px;transform:translateX(-50%);overflow:visible}
.mglobe .hgrid{fill:none;stroke:rgba(185,140,255,.2);stroke-width:1}
.mglobe .hl{fill:none;stroke:url(#hlg);stroke-width:1.6;stroke-linecap:round;opacity:.7;stroke-dasharray:1;stroke-dashoffset:0}
.mglobe .hdot{fill:#fff;filter:drop-shadow(0 0 6px #FF3C9D)}
.mglobe .hpin circle{fill:#E4DAFF}
.mglobe .hpin .hpr{fill:rgba(185,140,255,.22);transform-box:fill-box;transform-origin:center}
.mglobe .hpin text{fill:rgba(255,255,255,.62);font:500 12px 'Be Vietnam Pro','BVP Fallback',system-ui,sans-serif}
.mglobe .hpin text[x^="-"]{text-anchor:end}
@media (prefers-reduced-motion:no-preference){
  .mglobe .hl{animation:mgDraw 1.8s cubic-bezier(.65,0,.35,1) calc(.6s + var(--i) * .35s) backwards}
  .mglobe .hpr{animation:mgPulse 2.8s ease-out infinite}
  .mglobe .hpin:nth-of-type(2n) .hpr{animation-delay:1.4s}
}
@media (prefers-reduced-motion:reduce){.mglobe .hdot{display:none}}
@keyframes mgDraw{from{stroke-dashoffset:1}to{stroke-dashoffset:0}}
@keyframes mgPulse{0%{transform:scale(.6);opacity:.9}100%{transform:scale(2.2);opacity:0}}
@media (max-width:1439.98px){.mglobe .hl,.mglobe .hdot,.mglobe .hpin{display:none}}
@media (max-width:899.98px){.mglobe svg{top:-200px}}

/* 2. feature cards: white card, the visual sits on a dotted lavender stage and lifts on hover */
.m18 .kc{position:relative;isolation:isolate;background:#fff!important;border:1px solid var(--tk-line);box-shadow:var(--tk-card-sh)}
.m18 .kc::before{content:"";position:absolute;left:0;right:0;bottom:0;height:60%;z-index:-1;pointer-events:none;border-radius:0 0 inherit inherit;
  background:radial-gradient(circle at 1px 1px,rgba(123,47,255,.16) 1px,transparent 1.5px) 0 0/18px 18px,linear-gradient(180deg,rgba(245,240,255,0),#F5F0FF 70%)}
.m18 .kci{background:var(--tk-violet-soft)!important;color:var(--tk-violet-strong)}
.m18 .kvis{transition:transform .4s var(--ease-out)}
@media (hover:hover){.m18 .kc:hover .kvis{transform:translateY(-6px)}}

/* 3. one focus row per app screen: it lifts out in white with a brand ring, its siblings step back */
.m18 .fd{opacity:.5;transition:opacity .3s var(--ease-out)}
.m18 .fx{position:relative;z-index:2;background:#fff!important;border-radius:10px;
  box-shadow:0 0 0 6px #fff,0 0 0 7px rgba(123,47,255,.26),0 24px 40px -14px rgba(45,20,110,.42);transition:transform .35s var(--ease-out),box-shadow .35s var(--ease-out)}
.m18 .fx.tile,.m18 .fx.mp,.m18 .fx.vd{box-shadow:0 0 0 1px rgba(123,47,255,.3),0 24px 40px -14px rgba(45,20,110,.42)}
.m18 .aw2.dark .fx{box-shadow:0 0 0 6px #fff,0 0 0 7px rgba(185,140,255,.4),0 24px 44px -14px rgba(0,0,0,.6)}
@media (hover:hover){
  .m18 :hover>.fxp .fd,.m18 .fxp:hover .fd{opacity:.8}
  .m18 :hover>.fxp>.fx,.m18 .fxp:hover>.fx{transform:translateY(-2px)}
}

/* 5. sub-nav: the current chapter is a white pill with a static brand ring (the homepage tab, without the timer) */
.m18 .sni.on{background:linear-gradient(#fff,#fff) padding-box,linear-gradient(135deg,#7B2FFF,#C026D3 55%,#FF3C9D) border-box!important;
  border:1.5px solid transparent;color:var(--tk-violet-strong)!important;box-shadow:0 8px 18px -10px rgba(123,47,255,.55)}
.m18 .sni{border:1.5px solid transparent}

/* 6. "Xem tiếp": the mega-dropdown item style, icon tile + thin arrow that nudges on hover */
.m18 .nx-c{background:#fff!important;border-color:var(--tk-line)!important;box-shadow:var(--tk-card-sh);justify-content:flex-start!important;gap:18px!important;padding:22px 24px!important}
.m18 .nx-c>span:nth-child(2){flex:1;min-width:0;display:flex;flex-direction:column;gap:4px}
.m18 .nx-c .nxi{flex:none;width:48px;height:48px;border-radius:14px;background:var(--tk-violet-soft);color:var(--tk-violet-strong);display:grid;place-items:center}
.m18 .nxi svg{width:22px;height:22px}
.m18 .nx-a{background:none!important;color:var(--tk-violet-strong)!important;width:auto!important;height:auto!important;transition:transform .25s var(--ease-out)}
@media (hover:hover){.m18 .nx-c:hover{box-shadow:var(--tk-card-sh-hi)!important;border-color:#D8C4FF!important}.m18 .nx-c:hover .nx-a{transform:translateX(4px)}}

/* 7. Liên hệ: white agenda cards; the contact card sits on the photo edge with one compact mock tag */
.m18 .l-agi{background:#fff!important;border:1px solid var(--tk-line);box-shadow:var(--tk-card-sh);border-radius:24px!important}
.m18 .l-agn{background:var(--tk-violet-soft)!important}
.m18 .l-agi em{align-self:flex-start;padding:3px 10px;border-radius:999px;background:var(--tk-surface);color:var(--tk-muted)!important;font-size:12.5px!important}
.m18 .l-ab{grid-template-columns:minmax(0,1fr) 540px!important;gap:72px!important}
.m18 .l-ph{position:relative}
.l-ct2{position:absolute;left:-56px;bottom:28px;width:360px;background:#fff;border-radius:18px;padding:16px 20px 6px;box-shadow:0 30px 60px -24px rgba(13,6,35,.45),0 0 0 1px rgba(13,6,35,.04)}
.l-c2h{display:flex;align-items:center;justify-content:space-between;gap:12px;padding-bottom:10px}
.l-c2h b{font-size:15.5px;font-weight:600;color:var(--tk-ink)}
.l-mock2{font-size:11.5px;font-weight:600;color:var(--tk-amber);background:var(--tk-amber-soft);padding:2px 8px;border-radius:999px;white-space:nowrap}
.l-c2r{display:flex;justify-content:space-between;gap:16px;padding:11px 0;border-top:1px solid var(--tk-line);font-size:14px}
.l-c2r i{font-style:normal;color:var(--tk-muted);white-space:nowrap}
.l-c2r b{font-weight:600;color:var(--tk-ink);text-align:right}
@media (max-width:1279.98px){.m18 .l-ab{grid-template-columns:minmax(0,1fr) 480px!important}.l-ct2{left:-32px}}
@media (max-width:899.98px){.m18 .l-ab{display:flex!important;flex-direction:column;gap:8px!important}.m18 .l-ph{height:auto!important}.m18 .l-ph img{height:260px!important}.l-ct2{position:relative;left:auto;bottom:auto;width:auto;margin:-56px 12px 0}}
/* 8. legal pages and 404: the globe grid behind the dark header band */
.m18 .lg-hd,.m18 .nf{position:relative;isolation:isolate;overflow:hidden}
.m18 .lg-hd>:not(.mglobe),.m18 .nf>:not(.mglobe){position:relative}
.mglobe.mg-lg,.mglobe.mg-lg svg{height:600px}
/* designer test 20/11: the globe grid fades out behind the hero copy so no line runs through the lead or the buttons */
.mglobe,.hglobe{-webkit-mask-image:linear-gradient(180deg,#000 0%,#000 46%,transparent 74%),radial-gradient(ellipse 600px 260px at var(--gx-c,50%) 300px,rgba(0,0,0,.18) 0%,rgba(0,0,0,.18) 55%,#000 100%);
  mask-image:linear-gradient(180deg,#000 0%,#000 46%,transparent 74%),radial-gradient(ellipse 600px 260px at var(--gx-c,50%) 300px,rgba(0,0,0,.18) 0%,rgba(0,0,0,.18) 55%,#000 100%);
  -webkit-mask-composite:source-in;mask-composite:intersect}
.k-hero .mglobe,.b-hero .mglobe,.l-hero .mglobe{--gx-c:28%}
.mglobe.mg-lg{--gx-c:35%;-webkit-mask-image:linear-gradient(180deg,#000 0%,#000 60%,transparent 90%),radial-gradient(ellipse 520px 200px at 35% 230px,rgba(0,0,0,.18) 0%,rgba(0,0,0,.18) 55%,#000 100%);mask-image:linear-gradient(180deg,#000 0%,#000 60%,transparent 90%),radial-gradient(ellipse 520px 200px at 35% 230px,rgba(0,0,0,.18) 0%,rgba(0,0,0,.18) 55%,#000 100%)}
.pg-lien-he .mcta{display:none!important}
/* designer test 20/11: rows that step back stay readable. Muted ink (#6E6887, 5.3:1 on white) instead of 50% opacity;
   money (.gr), status chips and pills keep their colour so the green profit is never dimmed */
.m18 .fd{opacity:1!important}
.m18 .fd,.m18 .fd :where(span,b,i,em,small,strong,div):not(.pill):not([class*="p-"]):not(.gr):not(.tg):not(.av):not(.vav){color:#6E6887!important}
.m18 .fd b{font-weight:500}
.m18 .aw2.dark .fd,.m18 .aw2.dark .fd :where(span,b,i,em,small,strong,div):not(.pill):not([class*="p-"]):not(.gr):not(.tg){color:#6E6887!important}
/* designer test 20/11: one look for "Đặt lịch demo" on every dark hero, at every width (outline on ink) */
.h6 .bh4c .btn-s,.h6 .btn-s{background:transparent!important;color:#fff!important;border:1px solid rgba(255,255,255,.45)!important}
@media (hover:hover){.h6 .bh4c .btn-s:hover,.h6 .btn-s:hover{background:rgba(255,255,255,.08)!important;border-color:rgba(255,255,255,.7)!important}}
/* designer test 20/11: Khách hàng hero copy column wide enough for a 3-line H1 */
@media (min-width:1280px){.pg-ban-hang .b-hg{grid-template-columns:560px 1060px!important}}
/* designer test 20/11: on phones the cash-dip card (a red negative figure) no longer leads the Báo cáo hero; the green profit KPIs do */
@media (max-width:767.98px){.pg-dieu-hanh .d-fl{display:none}}
/* designer test 20/11: the three follow-up cards keep their own height (no empty white under short cards) */
.pg-bao-gia #theo-doi .three{align-items:start}
/* designer test 20/11: text inside product mocks ends with an ellipsis rather than being cut mid-word */
.a2sr{min-width:0;white-space:nowrap}
.a2st{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.o-tl>span:first-child{min-width:0;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.pg-bao-gia #theo-doi .sw{height:auto!important}
.hm-m strong{font-size:12.5px;font-weight:500;color:#6E6887}
/* designer test 20/11: Liên hệ hero without the duplicate Zalo/Email chips; the photo sits under the copy */
.m18 .l-hg{grid-template-rows:auto 1fr}
.m18 .l-x{align-self:start;margin-top:-16px}
@media (max-width:899.98px){.m18 .l-x{margin-top:0}}

/* ===== mobile v3 (Daniel 23/11): no sideways scrolling anywhere, full desktop dashboard in the hero ===== */
/* 1. homepage hero: the real 1024px app scaled to the frame (base.js fitMocks), the same screens as desktop */
@media (max-width:899.98px){
  .pg-index .hx-c{display:block;aspect-ratio:1024/560!important}
  .pg-index .hpn picture img{aspect-ratio:1024/560!important;border-radius:8px}
}
@media (max-width:767.98px){
  /* frame bleeds closer to the screen edge so the scaled app is as large as possible */
  .pg-index .hx-f{width:calc(100% - 16px)!important;padding:4px!important;border-radius:12px!important}
  /* the five hero tabs: one segmented row, icon over label, fits 360px without scrolling */
  .pg-index .htabs{display:grid!important;grid-template-columns:repeat(5,minmax(0,1fr));gap:2px;margin:28px 8px 0!important;padding:4px!important;
    width:auto!important;max-width:none!important;overflow:visible!important;border-radius:16px!important;background:rgba(13,6,35,.32)!important;border:1px solid rgba(255,255,255,.16)!important}
  .pg-index .htab{flex-direction:column;justify-content:center;gap:5px;height:56px!important;padding:0 2px!important;border:0!important;border-radius:12px!important;
    background:transparent;font-size:12px!important;line-height:1.1;min-width:0}
  .pg-index .htab.on{background:#fff}
  .pg-index .htab span{white-space:nowrap}
  .pg-index .htab .tring rect{rx:12px}
}
/* 2. card groups stack in one column (they used to be swipe rows) */
@media (max-width:767.98px){
  .site main .kg,.site main .three,.site main .two,.site main .o-pkw,.site main .o-w3,.site main .o-4,.site main .o-5,
  .site main .d-2w,.site main .d-pkw,.site main .z-tbl,.site main .z-rmp,.pg-index .bg2{display:flex!important;flex-direction:column!important;
    overflow:visible!important;margin-left:0!important;margin-right:0!important;padding-left:0!important;padding-right:0!important;gap:16px!important}
  .site main .kg>*,.site main .three>*,.site main .two>*,.site main .o-pkw>*,.site main .o-w3>*,.site main .o-4>*,.site main .o-5>*,
  .site main .d-2w>*,.site main .d-pkw>*,.site main .z-tbl>*,.site main .z-rmp>*,.pg-index .bg2>*{flex:none!important;width:auto!important;max-width:100%!important;min-width:0}
  .pg-index .mods{display:flex!important;flex-direction:column!important;overflow:visible!important;gap:6px!important;margin:0!important;padding:0!important}
  .pg-index .mods>*{flex:none!important;width:100%!important}
  /* department band: cards stack, the desktop carousel arrows go */
  .pg-index .drw{flex-direction:column!important;overflow:visible!important;padding:0 16px!important;gap:16px!important}
  .pg-index .drw>.dk{flex:none!important;width:auto!important}
  .pg-index .dnv{display:none!important}
}
/* 3. mobile menu: icon + one-line description, the same as the desktop product dropdown */
.mm a.mmi{gap:14px;min-height:64px;padding:8px 0;font-size:16px}
.mm a.mmi-s{min-height:52px}
.mmic{flex:none;width:36px;height:36px;border-radius:10px;display:flex;align-items:center;justify-content:center;background:rgba(185,140,255,.14);color:var(--violet-light)}
.mmt{display:flex;flex-direction:column;gap:2px;min-width:0}
.mmt b{font-weight:500;color:var(--white)}
.mmt i{font-style:normal;font-size:13.5px;line-height:1.35;color:rgba(255,255,255,.62)}
.mm a.mmi[aria-current] .mmt b{color:var(--violet-light)}
.mm a.mmi[aria-current] .mmic{background:var(--violet);color:var(--white)}
.mm a.mmi:active{background:rgba(255,255,255,.05)}
@media (hover:hover){.mm a.mmi:hover .mmic{background:rgba(185,140,255,.24)}}
/* 4. page sub-nav on phones and tablets: a "jump to" dropdown instead of a sideways scrolling chip row (built by base.js) */
.snt{display:none}
@media (max-width:1023.98px){
  .site .subnav{display:flex!important;flex-wrap:wrap!important;overflow:visible!important;padding:4px!important;gap:0!important}
  .site .subnav>.snl,.site .subnav>.btn{display:none!important}
  .snt{appearance:none;box-sizing:border-box;display:flex;align-items:center;gap:10px;width:100%;height:48px;padding:0 14px;border:0;border-radius:12px;background:transparent;
    font:500 15px 'Be Vietnam Pro','BVP Fallback',system-ui,sans-serif;letter-spacing:0;color:var(--ink);cursor:pointer;text-align:left}
  .snt .snk{font-size:13px;color:var(--muted)}
  .snt b{font-weight:600;color:var(--violet-strong)}
  .snt svg{margin-left:auto;flex:none;color:var(--muted);transition:transform .2s var(--ease-out)}
  .subnav.open .snt svg{transform:rotate(180deg)}
  .snt:active{background:var(--surface)}
  .snt:focus-visible{outline:2px solid var(--violet);outline-offset:-2px}
  .site .subnav>a.sni{display:none!important}
  .site .subnav.open>a.sni{display:flex!important;flex:0 0 100%!important;box-sizing:border-box;width:100%!important;height:48px!important;margin:0!important;padding:0 14px!important;border-radius:10px;
    align-items:center;gap:10px;justify-content:flex-start;background:transparent;box-shadow:none;border:0}
  .site .subnav.open>a.sni.on{background:var(--violet-soft);color:var(--violet-strong)}
  .site .subnav.open>.snt{border-bottom:1px solid var(--line);border-radius:12px 12px 0 0;margin-bottom:4px}
}
/* tablets: the department band becomes a wrapping grid instead of a sideways carousel */
@media (min-width:768px) and (max-width:1279.98px){
  .pg-index .drw{display:grid!important;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));overflow:visible!important;gap:16px!important;padding:0 max(32px,calc((100% - 1000px)/2))!important}
  .pg-index .drw>.dk{flex:none!important;width:auto!important;height:auto!important}
  .pg-index .dnv{display:none!important}
}
/* phones: groups of more than 3 cards show 3 + a "Xem thêm" button (base.js) */
.more3{display:none}
@media (max-width:767.98px){
  .site main .mclip>:nth-child(n+4):not(.dnv){display:none!important}
  .more3{appearance:none;display:flex;align-items:center;justify-content:center;gap:8px;width:100%;min-height:48px;margin-top:16px;padding:0 16px;
    border:1px solid var(--line);border-radius:12px;background:var(--white);font:600 15px 'Be Vietnam Pro','BVP Fallback',system-ui,sans-serif;
    letter-spacing:0;color:var(--violet-strong);cursor:pointer;box-sizing:border-box}
  .more3:active{background:var(--violet-soft)}
  .more3:focus-visible{outline:2px solid var(--violet);outline-offset:2px}
  .pg-index .dsec2 .more3{width:calc(100% - 32px);margin:16px 16px 0;background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.18);color:var(--white)}
  .pg-index .dsec2 .more3:active{background:rgba(255,255,255,.14)}
}
@media (hover:hover){.more3:hover{border-color:var(--violet-light)}}
/* round 2 (Daniel 23/11): homepage bento on phones zigzags. Cards 2 and 4 mirror: the screen sits on the right
   and bleeds off the left edge, its floating note hangs on the left. */
@media (max-width:767.98px){
  .pg-index .bg2>.bt2:nth-child(odd){padding:28px 22px 0 0!important}
  .pg-index .bg2>.bt2:nth-child(odd) .btx{padding:0 0 0 22px!important}
  .pg-index .bg2>.bt2:nth-child(odd) .bv{border-top-left-radius:0;border-top-right-radius:16px}
  .pg-index .bg2>.bt2:nth-child(odd) .scr{border-radius:0 24px 0 0!important;border-left:0!important;border-right:1px solid #ECE9F3!important}
  .pg-index .bg2>.bt2:nth-child(odd) .fl{right:auto!important;left:-6px!important}
  /* the tall overdue note becomes one line so it sits above the screen instead of over its title */
  .pg-index .bg2 .fl.col{flex-direction:row!important;align-items:baseline!important;gap:8px!important;padding:10px 14px!important;top:-22px!important}
  .pg-index .bg2 .fl.col b{font-size:18px!important}
}
