/* =========================================================================
   Affina One — áp lên TRANG CHỦ (24/11/2026)
   Nguồn: artifact "Affina One" (README, foundations/03–06, 14, 15, components Button/Stat,
   tokens.json theme sáng). Bố cục + nội dung giữ theo Figma 51:638; màu, chữ, nút, bo góc,
   con số theo Affina One. Token đặt tên --ao-* để không đụng biến của theme/Bootstrap.
   ========================================================================= */

/* token đặt ở :root (25/11) để /enterprise/ dùng chung; các quy tắc bên dưới vẫn chỉ áp trang chủ */
:root,.affina-route-home{
  /* màu vai trò (theme sáng) */
  --ao-bg:#fafafa; --ao-surface:#ffffff9e; --ao-surface-raised:#ffffffd9; --ao-surface-sunken:#1c171c0d;
  --ao-text:#1c171c; --ao-text-muted:#594a59; --ao-text-brand:#840085; --ao-text-inverse:#fafafa;
  --ao-border:#1c171c1f; --ao-border-strong:#706370; --ao-glass-border:#ffffffb3; --ao-border-brand:#af00b0;
  --ao-primary:#1c171c; --ao-on-primary:#ffffff; --ao-primary-soft:#ebe3eb; --ao-on-primary-soft:#1c171c;
  --ao-brand:#ff51ff; --ao-brand-2:#e8a8ff; --ao-on-brand:#000000;
  --ao-focal-1:#5560ee; --ao-focal-2:#7a3ff0; --ao-focal-3:#b83ac8; --ao-on-focal:#ffffff;
  --ao-mesh-1:#ffe5fd; --ao-mesh-2:#f2ccff; --ao-mesh-3:#e0e3ff; --ao-focus:#2933bf;
  --ao-grad-focal:linear-gradient(120deg,var(--ao-focal-1),var(--ao-focal-2) 50%,var(--ao-focal-3));
  --ao-grad-accent:linear-gradient(100deg,var(--ao-focal-1),var(--ao-focal-2) 55%,var(--ao-focal-3));
  /* chữ */
  --ao-font-sans:"Be Vietnam Pro","Segoe UI",system-ui,sans-serif;
  --ao-font-numeric:Sora,"Be Vietnam Pro",system-ui,sans-serif;
  /* hình khối, độ nổi, kính, chuyển động */
  --ao-radius-xl:12px; --ao-radius-2xl:16px; --ao-radius-3xl:20px; --ao-radius-4xl:24px; --ao-radius-full:9999px;
  --ao-elevation-1:0 1px 2px rgba(64,8,82,.10),0 1px 3px rgba(64,8,82,.06);
  --ao-elevation-2:0 1px 2px rgba(64,8,82,.10),0 3px 8px rgba(64,8,82,.08);
  --ao-elevation-3:0 2px 4px rgba(64,8,82,.10),0 8px 16px rgba(64,8,82,.10);
  --ao-glass-edge:inset 0 1px 0 rgba(255,255,255,.85),inset 0 0 0 1px rgba(255,255,255,.35);
  --ao-blur-sm:8px; --ao-blur-md:20px;
  --ao-ease-out:cubic-bezier(.23,1,.32,1); --ao-press:140ms; --ao-pop:180ms;
  --ao-control-lg:48px;
}

/* ---------- 1 · Chữ: Be Vietnam Pro cho mọi chữ, Sora chỉ cho con số ---------- */
/* trừ khối "Chia sẻ từ khách hàng doanh nghiệp": khối này dùng y nguyên kiểu của /enterprise/ */
html .affina-route-home .home-refresh,html .affina-route-home .home-refresh *:not(.aone--home *){font-family:var(--ao-font-sans)}
html .affina-route-home .home-refresh{background:var(--ao-bg);color:var(--ao-text)}

/* tiêu đề section: title-1 (36/44, 700) trên mobile → 48/56 từ máy tính bảng (đồng bộ mọi tiêu đề section, 24/11); mực text */
html .affina-route-home .home-refresh :is(.protect-melt__title,.sto3__head h2,.v3-head h2,.ptn3 h2){
  font-weight:700;font-size:36px;line-height:44px;letter-spacing:-.01em;
  color:var(--ao-text);-webkit-text-fill-color:var(--ao-text);background:none;text-shadow:none}
@media (min-width:840px){
  html .affina-route-home .home-refresh :is(.protect-melt__title,.sto3__head h2,.v3-head h2,.ptn3 h2){font-size:48px;line-height:56px;letter-spacing:-.02em}
}
/* "đậm đi với nghiêng mảnh": cụm nhấn trong tiêu đề = ao-accent (300 nghiêng, tô dải focal) */
html .affina-route-home .home-refresh :is(.protect-melt__title span,.v3-head h2 span,.ptn3 h2 span,.sto3__head h2 em,.app3__copy h2 em){
  font-weight:300;font-style:italic;color:var(--ao-text-brand);
  background:var(--ao-grad-accent);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  padding-right:.08em;text-shadow:none;filter:none}
html .affina-route-home .home-refresh :is(.v3-head p,.sto3__head p){color:var(--ao-text-muted);font-size:16px;line-height:24px;font-weight:500}

/* hero: display-hero 900 (56/62 từ máy tính bảng để lớn hơn tiêu đề section 48, 36/44 điện thoại) */
html .affina-route-home .hv3__copy h1{font-weight:900;font-size:36px;line-height:44px;letter-spacing:-.02em}
@media (min-width:840px){html .affina-route-home .hv3__copy h1{font-size:56px;line-height:62px}}

/* tuyên ngôn: phần đậm 900, "Hiệu quả." là cụm nghiêng mảnh tô dải */
html .affina-route-home .stm3__text{font-weight:900;letter-spacing:-.03em;color:var(--ao-text)}
html .affina-route-home .stm3__text em{font-weight:300;font-style:italic;background:var(--ao-grad-accent);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;padding-right:.08em}

/* thẻ: tên = headline/title, chữ đọc = body, chữ phụ = text-muted */
html .affina-route-home .pm-card__content h3{font-weight:700;font-size:36px;line-height:44px;letter-spacing:-.01em}
@media (min-width:840px){html .affina-route-home .pm-card__content h3{font-size:44px;line-height:50px}}
html .affina-route-home .pm-card__sub{font-size:16px;line-height:24px;font-weight:500}
html .affina-route-home .hub3__title{font-weight:600;font-size:20px;line-height:28px;letter-spacing:0;color:var(--ao-text)}
html .affina-route-home .hub3__more{font-weight:700;font-size:14px;line-height:20px;color:var(--ao-text);text-decoration:underline;text-underline-offset:3px}
html .affina-route-home .ptn3__card h3{font-weight:600;font-size:16px;line-height:20px;color:var(--ao-text)}
html .affina-route-home .onl3__glass h3{font-weight:600;font-size:20px;line-height:28px}
html .affina-route-home .onl3__glass p{font-size:14px;line-height:20px;font-weight:500}
html .affina-route-home .onl3__num{font-weight:900;letter-spacing:-.02em;background:none;color:#fff;-webkit-text-fill-color:#fff;text-shadow:0 2px 18px rgba(28,23,28,.35)}

/* ---------- 2 · Con số: Sora 700 (numeral); một con số điểm nhấn tô dải mỗi màn hình ---------- */
html .affina-route-home .app3__rate b{font-family:var(--ao-font-numeric);font-weight:700;font-size:28px;line-height:36px;letter-spacing:-.02em}
html .affina-route-home .app3__rate{font-weight:500;font-size:16px}

/* ---------- 3 · Nút (ao-btn): pill, cao 48, chữ 600 16px; lún scale(.97) khi nhấn ---------- */
html .affina-route-home .home-refresh :is(.pm-btn,.v3-pill){
  min-height:var(--ao-control-lg);height:auto;padding:0 24px;gap:8px;border:1px solid transparent;border-radius:var(--ao-radius-full);
  font-weight:600;font-size:16px;line-height:20px;letter-spacing:0;
  transition:transform var(--ao-press) var(--ao-ease-out),filter var(--ao-press) var(--ao-ease-out),box-shadow var(--ao-pop) var(--ao-ease-out),background-color var(--ao-press) var(--ao-ease-out)}
html .affina-route-home .home-refresh :is(.pm-btn,.v3-pill):active{transform:scale(.97)}
html .affina-route-home .home-refresh :is(.pm-btn,.v3-pill):focus-visible{outline:2px solid var(--ao-focus);outline-offset:2px}
/* icon trong nút: chevron 18px ngay sau nhãn, không còn vòng tròn hồng (hồng #FF51FF chỉ làm mảng nền) */
html .affina-route-home .home-refresh :is(.pm-btn__go,.v3-pill__go){display:inline-flex;padding:0;margin-right:-4px;border-radius:0;background:none}
html .affina-route-home .home-refresh :is(.pm-btn__go,.v3-pill__go) img{width:18px;height:18px}

/* nút điểm nhấn duy nhất của màn hình đầu: "Báo giá nhanh" ở hero = ao-btn--focal */
html .affina-route-home .hv3__ctas .pm-btn{background:var(--ao-grad-focal);color:var(--ao-on-focal);
  box-shadow:0 8px 24px rgba(85,96,238,.35),0 4px 18px rgba(184,58,200,.30)}
html .affina-route-home .hv3__ctas .pm-btn:hover{color:var(--ao-on-focal);filter:brightness(1.07) saturate(1.05)}
/* nút phụ trên ảnh = ao-btn--outline (kính, chữ mực) */
html .affina-route-home .home-refresh .v3-pill--glass{background:var(--ao-surface-raised);color:var(--ao-text);border-color:var(--ao-glass-border);
  -webkit-backdrop-filter:blur(var(--ao-blur-sm));backdrop-filter:blur(var(--ao-blur-sm))}
html .affina-route-home .home-refresh .v3-pill--glass:hover{background:#fff;color:var(--ao-text)}

/* nút chính của khu vực = ao-btn (mực) */
html .affina-route-home .home-refresh .v3-pill--dark{background:var(--ao-primary);color:var(--ao-on-primary);padding:0 24px}
html .affina-route-home .home-refresh .v3-pill--dark:hover{background:#3a313a;color:var(--ao-on-primary)}
html .affina-route-home .home-refresh .v3-pill--dark .v3-pill__go img{filter:brightness(0) invert(1)}
/* nút trên thẻ màu (Mua ngay / Báo giá nhanh) = ao-btn--outline trắng, chữ mực */
html .affina-route-home .pm-card .pm-btn{background:var(--ao-surface-raised);color:var(--ao-text);border-color:var(--ao-glass-border)}
html .affina-route-home .pm-card .pm-btn:hover{background:#fff;color:var(--ao-text)}
html .affina-route-home .pm-card .pm-btn__go img{filter:brightness(0)}
/* "Bắt đầu ngay" trên nền câu chuyện = outline; nút sáng khác cùng kiểu */
html .affina-route-home .home-refresh .v3-pill--light{background:var(--ao-surface-raised);color:var(--ao-text);border-color:var(--ao-border-strong);padding:0 24px}
html .affina-route-home .home-refresh .v3-pill__go--dark{background:none}
html .affina-route-home .home-refresh .v3-pill__go--dark img{filter:brightness(0)}
/* ít ưu tiên = ao-btn--ghost */
/* liên kết chữ trên thẻ màu */
html .affina-route-home :is(.pm-ask-fina,.sto3__more){font-weight:700;font-size:14px;line-height:20px;text-underline-offset:3px}
/* nút tròn mũi tên của slider = ao-icon-btn outline */
html .affina-route-home .v3-round{width:48px;height:48px;background:var(--ao-surface-raised);border:1px solid var(--ao-border-strong);border-radius:var(--ao-radius-full)}
html .affina-route-home .v3-round--glass{background:var(--ao-surface);border-color:var(--ao-glass-border)}

/* chip (ao-chip): pill, chữ callout 14px */
html .affina-route-home .pm-card__chip,html .affina-route-home .hub3__tag{border-radius:var(--ao-radius-full);font-weight:500;font-size:14px;line-height:20px}
html .affina-route-home .hub3__tag{background:var(--ao-surface-raised);color:var(--ao-text);border:1px solid var(--ao-glass-border)}

/* ---------- 4 · Hình khối: bo đều 4 góc, khối càng lớn bo càng lớn ---------- */
html .affina-route-home .home-refresh :is(.hv3,.sto3,.pm-card,.onl3__step,.app3__box){border-radius:var(--ao-radius-4xl)}
html .affina-route-home .home-refresh .sto3__card{border-radius:var(--ao-radius-3xl)}
html .affina-route-home .home-refresh .ptn3__card{border-radius:var(--ao-radius-3xl)}
html .affina-route-home .home-refresh :is(.hub3__img,.onl3__glass,.hv3__fina){border-radius:var(--ao-radius-2xl)}
html .affina-route-home .home-refresh .stm3__tile{border-radius:var(--ao-radius-2xl)}

/* ---------- 5 · Kính và độ nổi ---------- */
/* thẻ câu chuyện: mặt kính sáng 4 lớp (màu kính, mờ nền, viền sáng, cạnh bắt sáng + bóng), chữ mực */
html .affina-route-home .sto3__card{background:var(--ao-surface-raised);border:1px solid var(--ao-glass-border);
  -webkit-backdrop-filter:blur(var(--ao-blur-md)) saturate(160%);backdrop-filter:blur(var(--ao-blur-md)) saturate(160%);
  box-shadow:var(--ao-glass-edge),var(--ao-elevation-2);color:var(--ao-text)}
html .affina-route-home .sto3__body h3{color:var(--ao-text);font-weight:700;font-size:20px;line-height:28px;letter-spacing:-.01em}
html .affina-route-home .sto3__quote{color:var(--ao-text-muted);font-size:14px;line-height:20px;font-weight:500}
html .affina-route-home .sto3__meta{color:var(--ao-text-muted)}
html .affina-route-home .sto3__meta b{color:var(--ao-text)}
html .affina-route-home .sto3__more{color:var(--ao-text);text-decoration:underline}
html .affina-route-home .sto3__card img{border-radius:var(--ao-radius-2xl)}
/* thẻ đối tác: kính trên nền phẳng (viền sáng + bóng nhẹ); nền khu vực về bg phẳng (60% trung tính) */
html .affina-route-home .home-refresh .ptn3{background:var(--ao-bg)}
html .affina-route-home .ptn3__card{background:#fff;border:1px solid var(--ao-border);box-shadow:var(--ao-elevation-1)}
/* chú thích bước trên ảnh: kính mỏng tối để chữ trắng đạt tương phản trên ảnh */
html .affina-route-home .onl3__glass{border:1px solid rgba(255,255,255,.28)}

/* ---------- 6 · Cảnh mở đầu: câu chữ dùng display 900 ---------- */
.af-intro__quote{font-family:"Be Vietnam Pro",system-ui,sans-serif;font-weight:900;letter-spacing:-.03em}
.af-intro__quote .w--brand>span{background:none;-webkit-text-fill-color:#fff;color:#fff;filter:none}
.af-intro__skip{font-family:"Be Vietnam Pro",system-ui,sans-serif;font-weight:600;font-size:16px}

@media (prefers-reduced-motion:reduce){html .affina-route-home .home-refresh :is(.pm-btn,.v3-pill){transition:none}}

/* ---------- chỉnh sau khi xem ảnh chụp ---------- */
/* cụm nghiêng trên nền ảnh tối (app): dải focal không đủ tương phản → nghiêng mảnh màu trắng */
html .affina-route-home .home-refresh .app3__copy h2 em{background:none;color:#fff;-webkit-text-fill-color:#fff}
/* góc trong = góc ngoài − đệm (20 − 8 = 12) */
html .affina-route-home .sto3__card img{border-radius:var(--ao-radius-xl)}
/* "Bắt đầu ngay" là hành động chính của khu câu chuyện → ao-btn (mực); "Hỏi chatbot FINA" đứng cạnh là outline */
html .affina-route-home .home-refresh .sto3 .v3-pill--light{background:var(--ao-primary);color:var(--ao-on-primary);border-color:transparent}
html .affina-route-home .home-refresh .sto3 .v3-pill--light:hover{background:#3a313a;color:var(--ao-on-primary)}
html .affina-route-home .home-refresh .sto3 .v3-pill__go--dark img{filter:brightness(0) invert(1)}
html .affina-route-home .home-refresh .sto3 .v3-pill--glass{border-color:var(--ao-border-strong)}
/* tiêu đề section: lớp DS cũ (affina-ds-apply) đặt Familjen với selector mạnh hơn → khai lại phông ở đây; app dùng cùng thang */
html .affina-route-home .home-refresh :is(.protect-melt__title,.sto3__head h2,.v3-head h2,.ptn3 h2,.app3__copy h2){font-family:var(--ao-font-sans)}
html .affina-route-home .home-refresh .app3__copy h2{font-weight:700;font-size:36px;line-height:44px;letter-spacing:-.01em}
@media (min-width:840px){html .affina-route-home .home-refresh .app3__copy h2{font-size:48px;line-height:56px;letter-spacing:-.02em}}

/* ---------- "Chia sẻ từ khách hàng doanh nghiệp" = y hệt /enterprise/ ----------
   Rule chung .home-refresh h2 (home.css: Familjen + chữ cắt gradient) không được chạm vào khối này. */
html .affina-route-home .home-refresh .aone--home #testimonials h2{font-family:inherit;background:none;-webkit-background-clip:border-box;background-clip:border-box;-webkit-text-fill-color:currentColor}

/* ---------- Affina Hub: 3 bài thành dải cuộn ngang dưới 1200px ----------
   Thẻ kế tiếp lộ một phần để báo còn nội dung; bắt dính từng thẻ; dải tràn sát mép màn hình,
   mép trái thẻ đầu vẫn thẳng hàng với tiêu đề. Từ 1200px trở lên giữ lưới 3 cột. */
html .affina-route-home .hub3__img{height:auto;aspect-ratio:4/3}
html .affina-route-home .hub3__img img{position:absolute;inset:0}
html .affina-route-home .hub3__title{display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden}
/* giữ chỗ đủ 2 dòng tiêu đề để các link "Đọc câu chuyện" nằm thẳng một hàng giữa các thẻ */
html .affina-route-home .hub3__title{min-height:56px;min-height:2lh}
@media (max-width:1199.98px){
  html .affina-route-home .home-refresh .hub3__grid{
    display:grid;grid-template-columns:none;grid-auto-flow:column;grid-auto-columns:clamp(280px,40vw,400px);gap:16px;
    overflow-x:auto;overscroll-behavior-x:contain;scroll-snap-type:x mandatory;scrollbar-width:none;
    margin-inline:calc(var(--af-edge) * -1);padding:4px var(--af-edge) 8px;scroll-padding-inline:var(--af-edge)}
  html .affina-route-home .home-refresh .hub3__grid::-webkit-scrollbar{display:none}
  html .affina-route-home .hub3__card{scroll-snap-align:start}
  html .affina-route-home .hub3 .v3-head{flex-direction:row;flex-wrap:wrap;align-items:flex-end}
}
/* "Xem tất cả bài viết" là link chữ, không phải nút: chữ đậm + gạch chân + mũi tên, vùng bấm cao 48 */
html .affina-route-home .hub3__all{display:inline-flex;align-items:center;gap:4px;min-height:48px;font-weight:600;font-size:16px;line-height:24px;color:var(--ao-text);
  text-decoration:underline;text-decoration-thickness:1px;text-underline-offset:4px;white-space:nowrap}
html .affina-route-home .hub3__all:hover{color:var(--ao-brand);text-decoration-thickness:2px}
html .affina-route-home .hub3__all:focus-visible{outline:2px solid var(--ao-focus);outline-offset:2px;border-radius:4px}
html .affina-route-home .hub3__all img{width:16px;height:16px}
html .affina-route-home .hub3 .v3-head__ctas{gap:24px}
@media (max-width:767.98px){
  html .affina-route-home .home-refresh .hub3__grid{grid-auto-columns:78vw;gap:12px}
  /* điện thoại: tiêu đề | link "Xem tất cả" cùng hàng (link dẫn tới đúng nội dung bên dưới),
     mô tả, rồi nút chính. Thứ tự Tab vẫn là link trước, nút sau như mắt nhìn. */
  html .affina-route-home .hub3 .v3-head{display:grid;grid-template-columns:minmax(0,1fr) auto;
    grid-template-areas:"title all" "sub sub" "cta cta";gap:0 16px;align-items:last baseline}
  html .affina-route-home .hub3 .v3-head > div:first-child,html .affina-route-home .hub3 .v3-head__ctas{display:contents}
  html .affina-route-home .hub3 .v3-head h2{grid-area:title}
  html .affina-route-home .hub3 .v3-head p{grid-area:sub;margin-top:12px}
  html .affina-route-home .hub3 .hub3__all{grid-area:all;font-size:14px;line-height:20px;margin-block:-14px}
  html .affina-route-home .hub3 .v3-head .v3-pill--dark{grid-area:cta;justify-self:start;margin-top:24px}
}
/* màn hẹp (<375): không đủ chỗ cho tiêu đề + link cùng hàng → link xuống dưới mô tả, thẳng mép trái */
@media (max-width:374.98px){
  html .affina-route-home .hub3 .v3-head{grid-template-areas:"title title" "sub sub" "all all" "cta cta"}
  html .affina-route-home .hub3 .hub3__all{justify-self:start;margin-block:12px -12px}
  html .affina-route-home .hub3 .v3-head .v3-pill--dark{margin-top:24px}
}
/* lề section ở ≤860px là 16px, dải thẻ đang kéo ra 20px (--af-edge) nên trang lòi 4px cuộn ngang → kéo đúng 16px */
@media (max-width:860px){
  html .affina-route-home .home-refresh .hub3__grid{margin-inline:-16px;padding-inline:16px;scroll-padding-inline:16px}
}
html .affina-route-home .hub3__card:focus-visible{outline:2px solid var(--ao-focus);outline-offset:4px;border-radius:var(--ao-radius-2xl)}

/* ---------- Quy tắc nhấn mạnh trong headline/title (Lucas, 24/11) ----------
   Chữ cần nhấn = ĐẬM như phần còn lại của tiêu đề + TÔ MÀU dải focal. Không nghiêng, không mảnh.
   Thay cho cụm "nghiêng mảnh 300" của ao-accent trên trang chủ. */
html .affina-route-home .home-refresh :is(.protect-melt__title span,.v3-head h2 span,.ptn3 h2 span,.sto3__head h2 em,.stm3__text em){
  font-weight:inherit;font-style:normal;color:var(--ao-text-brand);
  background:var(--ao-grad-accent);-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;
  padding-right:0;text-shadow:none;filter:none}
/* trên nền ảnh trời xanh đậm (app): dải focal tối quá → cùng hướng màu nhưng bậc sáng, vẫn đậm */
html .affina-route-home .home-refresh .app3__copy h2 em{
  font-weight:inherit;font-style:normal;
  background:linear-gradient(100deg,#c3c8ff,#d8c4ff 55%,#ffc2fb);-webkit-background-clip:text;background-clip:text;color:#ffc2fb;-webkit-text-fill-color:transparent}
/* tuyên ngôn: "Hiệu quả." đậm 900 như hai câu trên, vẫn thụt lề như thiết kế */
html .affina-route-home .stm3__text em{font-weight:900}

/* ---------- Tuyên ngôn "Đơn giản. Minh bạch. Hiệu quả." — ba nhịp, ba bậc thang (24/11) ----------
   Mỗi chữ một dòng, lùi dần như bậc thang. Theo cuộn (--p của .stm3, 0→1): chữ từ nét viền mờ → đổ đầy mực, lần lượt từng chữ;
   "Hiệu quả." được dải focal quét từ trái sang. Không JS / giảm chuyển động: --p = 1 → hiện đủ. */
html .affina-route-home .stm3__text{display:flex;flex-direction:column;align-items:flex-start;gap:.04em;font-size:clamp(40px,7vw,104px);line-height:1;letter-spacing:-.035em}
html .affina-route-home .stm3__text .stm3__w{
  /* --pt = tiến độ thẳng (không easing): chữ đổ mực khi chính nó đã vào màn hình — chữ 1 lúc ở nửa dưới, chữ 3 khi tới giữa */
  --t:calc(.5 + var(--i) * .12);--wi:clamp(0,(var(--pt,1) - var(--t)) / .18,1);
  display:flex;align-items:flex-start;gap:.2em;white-space:nowrap;margin-left:calc(var(--i) * 1.5em);
  color:var(--ao-text);color:color-mix(in srgb,var(--ao-text) calc(var(--wi) * 100%),transparent);
  -webkit-text-stroke:.02em rgba(28,23,28,calc(.4 * (1 - var(--wi))));
  transform:translateX(calc((1 - var(--wi)) * -.35em))}
html .affina-route-home .home-refresh .stm3__text .stm3__w--accent{
  color:transparent;-webkit-text-fill-color:transparent;
  background:var(--ao-grad-accent) 0 0 / calc(var(--wi) * 100%) 100% no-repeat;-webkit-background-clip:text;background-clip:text}
@media (max-width:860px){
  html .affina-route-home .stm3__text{font-size:clamp(32px,11vw,56px)}
  html .affina-route-home .stm3__text .stm3__w{margin-left:calc(var(--i) * .9em)}
}

/* 25/11 · con số dùng Sora (quy tắc chữ chung .home-refresh * đang đè lên, nên tăng độ ưu tiên) */
/* footer trang chủ: tiêu đề Be Vietnam Pro như mọi tiêu đề khác */

/* ===== 25/11 · Affina One bước 3: thang chữ trang chủ (khớp /enterprise/) ===== */
html .affina-route-home .home-refresh .pm-card__content h3{font-size:36px;line-height:44px}
html .affina-route-home .home-refresh .sto3__meta span{font-weight:500}
html .affina-route-home .home-refresh .app3 p{font-weight:500}
html .affina-route-home .cs__quote{font-size:24px;line-height:32px;font-weight:500}
html .affina-route-home .cs__name b{font-size:16px;line-height:24px}
html .affina-route-home .cs__name small{font-size:14px;line-height:20px;font-weight:500}
html .affina-route-home .cs__count{font-size:14px;font-weight:500}
@media (max-width:860px){
  html .affina-route-home .home-refresh .pm-card__content h3{font-size:28px;line-height:36px}
  html .affina-route-home .aone-h2{font-size:36px;line-height:44px}
  html .affina-route-home .cs__quote{font-size:20px;line-height:28px}
}

/* ===== 25/11 · Affina One bước 5: bo góc trang chủ (16 / 20 / 24 / tròn hẳn) ===== */
html .affina-route-home .home-refresh .pm-ghost{border-radius:24px}
html .affina-route-home .home-refresh .hv3__fina-frame{border-radius:8px}

/* 25/11 · bước 6: lề trang dùng chung 2 trang — nội dung tối đa 1280, lề 32 (điện thoại 16) */
:root{--ao-gutter:max(32px,calc((100% - 1280px) / 2))}
@media (max-width:860px){:root{--ao-gutter:16px}}

/* ===== 25/11 · Affina One bước 6: khung bố cục trang chủ =====
   nội dung tối đa 1280 · lề 32 (điện thoại 16) · đệm section 96 / 80 / 64
   khối nền bo góc (câu chuyện thật) cách mép 12 (điện thoại 8), chữ bên trong vẫn thẳng cột 1280 trên máy tính */
html .affina-route-home .home-refresh :is(.protect-melt,.v3-sec,.ptn3,.app3){padding-inline:var(--ao-gutter)}
html .affina-route-home .home-refresh .sto3{padding-inline:max(20px,calc((100% - 1280px) / 2 - 12px))}
/* hàng nút + thẻ câu chuyện thẳng cột với tiêu đề (bỏ lệch 12px / 20px bên trong) */
html .affina-route-home .home-refresh .sto3__bar{margin-inline:0}
html .affina-route-home .home-refresh .sto3__track{padding-inline:0;scroll-padding-inline:0}
/* thẻ "Bạn muốn bảo vệ cho ai?" lấp đủ cột 1280, khoảng giữa 2 thẻ lớn 24 (spacing-3xl) */
@media (min-width:992px){html .affina-route-home .home-refresh .protect-melt__grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:24px}}
html .affina-route-home .home-refresh :is(.protect-melt,.v3-sec,.ptn3,.sto3){padding-block:96px}
@media (max-width:1024px){
  html .affina-route-home .home-refresh :is(.protect-melt,.v3-sec,.ptn3,.sto3){padding-block:80px}
}
@media (max-width:860px){
  html .affina-route-home .home-refresh :is(.protect-melt,.v3-sec,.ptn3,.sto3){padding-block:64px}
  html .affina-route-home .home-refresh .sto3{padding-inline:16px}
}

/* ---- Affina trong con số (khối dưới hero, bố cục A · 25/11) ----
   Số Sora, chữ BVP; lề trong thẻ hero = lề trang − 12 (thẻ cách mép 12) để thẳng cột với header.
   100% ở đây là bề rộng thẻ hero (= màn hình − 24) nên trừ 1256 thay vì 1280. */
html .affina-route-home .home-refresh{--hn-x:max(20px,calc((100% - 1256px) / 2 - 12px))}
@media (max-width:860px){html .affina-route-home .home-refresh{--hn-x:16px}}
html .affina-route-home .home-refresh .hv3__hero{padding-inline:var(--hn-x)}
html .affina-route-home .home-refresh .hn{display:flex;flex-direction:column;justify-content:flex-end;gap:40px;min-height:560px;overflow:visible;padding:96px var(--hn-x) 48px;color:#fff}
html .affina-route-home .home-refresh .hn ul{margin:0;padding:0;list-style:none}
html .affina-route-home .home-refresh .hn__title{margin:0;font-family:var(--ao-font-sans);font-weight:600;font-size:24px;line-height:32px;letter-spacing:-.01em;color:#fff;-webkit-text-fill-color:#fff;background:none}
html .affina-route-home .home-refresh .hn__stats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:32px}
html .affina-route-home .home-refresh .hn__stats li{padding-top:24px;border-top:1px solid rgba(255,255,255,.28)}
html .affina-route-home .home-refresh .hn__stats strong{display:block;font-family:var(--ao-font-numeric);font-weight:700;font-size:clamp(36px,3.6vw,52px);line-height:1;letter-spacing:-.02em;font-variant-numeric:tabular-nums;white-space:nowrap;color:#fff}
/* số đang đếm: giữ khung chữ cố định (tabular-nums ở strong), bản đọc cho trình đọc màn hình nằm ẩn bên cạnh */
html .affina-route-home .home-refresh .hn__stats .hn__count{display:inline;margin:0;font:inherit;color:inherit;max-width:none}
html .affina-route-home .home-refresh .hn__stats .hn__sr{position:absolute;width:1px;height:1px;margin:-1px;padding:0;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap;border:0}
html .affina-route-home .home-refresh .hn__stats span{display:block;max-width:26ch;margin-top:12px;font-size:16px;line-height:24px;font-weight:500;color:rgba(255,255,255,.86)}
html .affina-route-home .home-refresh .hn__foot{display:flex;align-items:center;justify-content:space-between;gap:24px;padding-top:24px;border-top:1px solid rgba(255,255,255,.16)}
html .affina-route-home .home-refresh .hn__iso{display:flex;align-items:center;gap:16px;margin:0}
html .affina-route-home .home-refresh .hn__isoimg{display:block;height:56px;width:auto;border-radius:8px}
html .affina-route-home .home-refresh .hn__iso span{max-width:30ch;font-size:14px;line-height:20px;font-weight:500;color:rgba(255,255,255,.86)}
html .affina-route-home .home-refresh .hn__stores{display:flex;flex-wrap:wrap;gap:12px}
html .affina-route-home .home-refresh .hn__stores a{display:inline-flex;align-items:center;min-height:48px;border-radius:10px}
html .affina-route-home .home-refresh .hn__stores a:focus-visible{outline:3px solid #7a3ff0;outline-offset:3px}
html .affina-route-home .home-refresh .hn__stores img{display:block;height:44px;width:auto}
@media (max-width:1024px){
  html .affina-route-home .home-refresh .hn__stats{grid-template-columns:repeat(2,minmax(0,1fr));row-gap:40px}
  html .affina-route-home .home-refresh .hn__stats strong{font-size:48px}
}
@media (max-width:860px){
  html .affina-route-home .home-refresh .hn{min-height:0;gap:32px;padding:64px var(--hn-x) 24px}
  html .affina-route-home .home-refresh .hn__stats{grid-template-columns:1fr;gap:0}
  html .affina-route-home .home-refresh .hn__stats li{display:grid;grid-template-columns:160px 1fr;align-items:center;gap:12px;padding:16px 0}
  html .affina-route-home .home-refresh .hn__stats strong{font-size:30px}
  html .affina-route-home .home-refresh .hn__stats span{margin:0;font-size:14px;line-height:20px}
  html .affina-route-home .home-refresh .hn__foot{flex-direction:column;align-items:flex-start}
}
