/* ===== Brand Ratio — Home v3 "Gallery Quiet" (owner: theme phải NỔI — khung lặng, tranh nổi) =====
   Nguyên tắc: mọi thứ CHẠM ẢNH THEME thì im lặng (không viền đen quanh ảnh, bóng mềm sâu, hover
   phóng ảnh + màn tối từ đáy kiểu gallery). Cá tính brutalism (hard-shadow, số mục lục, vạch dọc)
   CHỈ ở nút và section chữ — nơi không có ảnh. Palette khóa: trắng/đen #28282F/vàng nhạt/xanh nhạt. */

/* Dải marquee tràn 100vw (gồm cả thanh cuộn dọc) — cắt phần dư để trang không có thanh cuộn ngang */
.brand-main { overflow-x: clip; }

/* ---- hero ---- */
.th-hero { max-width: 1496px; margin: 0 auto; padding: 76px 28px 84px; position: relative; overflow: hidden; }
/* align-items: end → đáy cột chữ (dòng meta) và đáy stage bằng nhau, nút "Xem trực tiếp" (bottom:0)
   tự thẳng hàng đáy dòng meta ở MỌI ngôn ngữ (chiều cao cột chữ vi/en khác nhau). */
.th-hero-grid { display: grid; grid-template-columns: 1fr 1.04fr; gap: 56px; align-items: end; }
/* dot-grid rất nhạt — không khí, không tranh sáng với ảnh */
.th-hero::before {
  content: ''; position: absolute; right: -30px; top: 36px; width: 520px; height: 560px;
  background-image: radial-gradient(var(--brand-ink) 1px, transparent 1px);
  background-size: 24px 24px; opacity: 0.07; pointer-events: none;
}
.th-eyebrow {
  display: inline-flex; align-items: center; gap: 12px;
  font-size: 11.5px; letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--brand-ink); font-weight: 700; margin-bottom: 28px;
  background: transparent; padding: 0;
}
.th-eyebrow-dot { width: 34px; height: 1.5px; border-radius: 0; background: var(--brand-ink); }
.th-hero-title {
  font-family: var(--brand-font-display);
  font-size: clamp(44px, 4.8vw, 66px);
  line-height: 1.03; letter-spacing: -0.026em;
  font-weight: var(--brand-weight-display);
  margin: 0 0 22px; text-wrap: balance; color: var(--brand-ink);
}
.th-hero-title .th-title-light { font-weight: var(--brand-weight-thin); letter-spacing: -0.015em; }
.th-hero-sub { font-size: 17px; line-height: 1.65; color: var(--brand-ink-2); max-width: 440px; margin: 0 0 32px; }
.th-hero-ctas { display: flex; gap: 16px; align-items: center; margin-bottom: 26px; flex-wrap: wrap; }
/* Nút "Ratio có gì?": pill viền + icon play tròn; hover hai pha .btn-sweep-out (components.css), nhãn chứa icon + chữ */
.th-watch {
  display: inline-flex; align-items: center; padding: 6px 0; border-radius: 999px;
  background: transparent; color: var(--brand-ink); cursor: pointer; font-family: inherit;
  border: 1.5px solid var(--brand-ink); font-size: 15px; font-weight: 650;
}
.th-watch .btn-sweep-label { display: flex; align-items: center; gap: 11px; padding: 0 22px 0 7px; }
.th-watch-play {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 32px; height: 32px; border-radius: 50%; background: var(--brand-ink); color: #fff;
}
.th-watch-play svg { width: 11px; height: 11px; display: block; margin-left: 2px; }
.th-watch-label { white-space: nowrap; }
.th-hero-meta-line { font-size: 12.5px; font-weight: 550; color: var(--brand-muted); letter-spacing: 0.03em; }

/* ---- hero stage: màn MacBook + iPhone (device-frame.css) chung một phối cảnh 3D, co giãn theo bề rộng ----
   MacBook rộng 86% trong luồng, nghiêng màn về phía phải; iPhone rộng 0,235 × MacBook (tỷ lệ đời thực) bên phải,
   đè nhẹ lên mép phải MacBook, nghiêng màn vào trong để lộ cạnh phải. Độ dày máy (--dv-depth) theo bề rộng stage (cqw).
   Cụm nút dưới MacBook bên trái — đáy stage thẳng hàng dòng meta cột chữ nhờ .th-hero-grid{align-items:end}. */
.th-hero-stage {
  position: relative; padding-top: 26px; container-type: inline-size;
  perspective: 1500px; perspective-origin: 50% 30%;
}
.th-stage-laptop { --dv-depth: 1.1cqw; width: 86%; transform: rotateY(7deg) rotateX(2deg); transform-origin: 0 50%; }
.th-stage-phone {
  --dv-depth: 2.8cqw;
  position: absolute; right: 3%; bottom: 0; z-index: 2; width: 20.2%;
  transform: rotateY(-28deg) rotateX(2deg); transform-origin: 50% 100%;
}
.th-feature-canvas svg { width: 100%; height: 100%; display: block; }
.th-stage-cap {
  position: absolute; right: 16%; top: 0; z-index: 3;
  font-size: 12px; font-weight: 650; background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px);
  border: 1px solid rgba(40, 40, 47, 0.14); border-radius: 999px; padding: 7px 14px;
}
.th-stage-actions { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; margin-top: 30px; }
/* Nút "Dùng thử miễn phí" chỉ hiện ≤880px (header mobile ẩn nút này) */
.th-stage-trial { display: none; }
/* Nút "Xem trực tiếp": hover .btn-sweep-out (components.css), padding ngang ở .btn-sweep-label để gradient chữ khớp nền */
.th-stage-live {
  display: inline-flex; align-items: center;
  font-size: 12px; font-weight: 700; color: var(--brand-ink); text-decoration: none;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px);
  border: 1px solid rgba(40, 40, 47, 0.14); border-radius: 999px; padding: 8px 0;
}
.th-stage-live .btn-sweep-label { padding: 0 14px; }
@media (max-width: 880px) {
  .th-stage-trial { display: inline-flex; }
}
/* Một cột (≤980px): màn MacBook rộng hết bề rộng nội dung; iPhone giữ tỷ lệ 0,235 × MacBook, lấn nhẹ ra lề phải */
@media (max-width: 980px) {
  .th-stage-laptop { width: 100%; }
  .th-stage-phone { width: 23.5%; right: -3%; }
  .th-stage-cap { right: 6%; }
}

/* ---- tab rail ngành (owner chốt 2026-06-18 refine: KHÔNG pill; tab = TEXT) ----
   Trái: tiêu đề "Themes by Ratio"; phải: hàng tab text. Default ghi + mảnh; active đen + đậm + gạch chân. */
.th-tabrail { background: var(--brand-bg); border-bottom: 1px solid rgba(40, 40, 47, 0.10); }
.th-tabrail-inner {
  max-width: 1496px; margin: 0 auto; padding: 18px 28px;
  display: flex; align-items: center; justify-content: space-between; gap: 24px; flex-wrap: wrap;
}
/* Tiêu đề to NGANG tiêu đề section "Top themes" (owner chốt 2026-06-18) */
.th-tabrail-title {
  flex: none; color: var(--brand-ink); margin: 0;
  font-family: var(--brand-font-display); font-weight: var(--brand-weight-display);
  font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.025em; line-height: 1.05;
}
.th-tabrail-tabs { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; }
.th-tab {
  position: relative; background: none; border: none; padding: 4px 0; cursor: pointer; font-family: inherit;
  font-size: 13.5px; font-weight: 400; color: var(--brand-muted); letter-spacing: 0.01em;
  transition: color var(--brand-dur-fast);
}
.th-tab:hover { color: var(--brand-ink); }
.th-tab.is-active { color: var(--brand-ink); font-weight: 650; }
.th-tab.is-active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -3px; height: 1.5px; background: var(--brand-ink);
}
@media (max-width: 720px) {
  /* Mobile: tiêu đề trên, hàng tab cuộn ngang gọn */
  .th-tabrail-inner { padding: 14px 20px; }
  .th-tabrail-tabs { flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; width: 100%; }
  .th-tabrail-tabs::-webkit-scrollbar { height: 0; }
  .th-tab { white-space: nowrap; }
}

/* ---- sortbar + showcase ---- */
.th-grid-main { max-width: 1496px; margin: 0 auto; padding: 48px 28px 38px; }
.th-sortbar { display: flex; justify-content: space-between; align-items: center; margin-bottom: 28px; }
.th-count { font-size: 14px; color: var(--brand-muted); }
.th-count strong { font-size: 24px; font-weight: 750; color: var(--brand-ink); margin-right: 5px; }
.th-marquee-hint { font-size: 12.5px; font-weight: 550; color: var(--brand-muted); letter-spacing: 0.02em; }

/* Cỡ ô + khe là nguồn duy nhất (home.js đọc --th-cell, --th-gap để tính số ô và thời lượng);
   min-height giữ chỗ 2 hàng trước khi marquee dựng (chống dịch bố cục). */
.th-marquee-stack {
  --th-cell: 364px; --th-gap: 30px;
  display: flex; flex-direction: column; gap: var(--th-gap);
  width: 100vw; position: relative;
  left: 50%; right: 50%; margin-left: -50vw; margin-right: -50vw;
  padding: 10px 0 18px;
  min-height: calc(2 * (var(--th-cell) * 1.25 + 48px) + var(--th-gap) + 28px);
}
.th-marquee-row { overflow: hidden; }
/* Track là khung định vị cao một ô (thẻ 4:5) + đệm 18px trên / 30px dưới cho bóng thẻ và nhấc -6px khi rê;
   mỗi ô đặt tuyệt đối ở mép trái, home.js chạy transform từng ô (Web Animations). */
.th-marquee-track { position: relative; height: calc(var(--th-cell) * 1.25 + 48px); }
.th-marquee-cell { position: absolute; left: 0; top: 18px; width: var(--th-cell); }
@media (max-width: 720px) { .th-marquee-stack { --th-cell: 236px; --th-gap: 16px; } }

/* ---- card: KHUNG LẶNG — không viền đen quanh ảnh, bóng mềm như ảnh nổi trên giấy ---- */
.th-card { cursor: pointer; }
.th-card-media {
  position: relative; aspect-ratio: 4/5; border-radius: 14px;
  overflow: hidden; background: var(--brand-strip);
  border: none;
  /* Owner chốt 2026-06-18: shadow nền NHẸ hơn (không "quá nhiều") để không bị marquee-row cắt */
  box-shadow: 0 1px 2px rgba(40, 40, 47, 0.05), 0 6px 16px rgba(40, 40, 47, 0.07);
  transition: transform var(--brand-dur) var(--brand-ease), box-shadow var(--brand-dur) var(--brand-ease);
}
.th-card:hover .th-card-media {
  transform: translateY(-6px);
  /* Owner chốt 2026-06-18: thu độ lan shadow hover để KHÔNG bị marquee-row (overflow hidden) cắt */
  box-shadow: 0 2px 4px rgba(40, 40, 47, 0.05), 0 12px 26px rgba(40, 40, 47, 0.12);
}
.th-card-media svg,
.th-card-media .thumb-pic,
.th-card-media .thumb-pic img { width: 100%; height: 100%; display: block; object-fit: cover; object-position: top; }
.th-card-media .thumb-pic img { transition: transform 420ms var(--brand-ease); }
.th-card:hover .th-card-media .thumb-pic img { transform: scale(1.045); }
/* Overlay gallery: màn tối mờ dâng từ đáy — ảnh vẫn thấy rõ, nội dung dồn đáy trái */
.th-card-overlay {
  position: absolute; inset: 0; z-index: 2;
  display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-end;
  gap: 10px; text-align: left; padding: 22px;
  background: linear-gradient(to top, rgba(40, 40, 47, 0.82) 0%, rgba(40, 40, 47, 0.38) 38%, transparent 62%);
  opacity: 0; pointer-events: none; transition: opacity 220ms ease;
}
.th-card:hover .th-card-overlay { opacity: 1; pointer-events: auto; }
/* Nút "Xem chi tiết" (trắng) trên màn tối của thẻ: hover hai pha .btn-sweep-out (components.css) */
.th-overlay-btn {
  padding: 11px 0; border-radius: 999px; font-size: 13px; font-weight: 700;
  text-decoration: none; border: none; cursor: pointer; font-family: inherit;
}
.th-overlay-btn.primary { background: #fff; color: var(--brand-ink); }
.th-overlay-btn .btn-sweep-label { padding: 0 22px; }
/* Hàng nút overlay: "Xem chi tiết" + nút tròn "Thêm vào giỏ" */
.th-overlay-actions { display: flex; align-items: center; gap: 10px; }
.th-overlay-cart {
  display: inline-flex; align-items: center; justify-content: center; flex: none;
  width: 38px; height: 38px; border-radius: 999px;
  background: rgba(255, 255, 255, 0.16); color: #fff; border: 1px solid rgba(255, 255, 255, 0.5); cursor: pointer;
  transition: background var(--brand-dur-fast), color var(--brand-dur-fast), border-color var(--brand-dur-fast);
}
.th-overlay-cart:hover { background: var(--brand-mint); color: var(--brand-ink); border-color: var(--brand-mint); }
.th-overlay-cart svg { width: 18px; height: 18px; display: block; }
.th-card-name { margin: 0; font-size: 19px; font-weight: 750; letter-spacing: -0.01em; color: #fff; }
.th-card-price { font-size: 13px; font-weight: 650; color: rgba(255, 255, 255, 0.92); font-variant-numeric: tabular-nums; }
.th-studio { font-size: 12px; color: rgba(255, 255, 255, 0.7); margin-left: 6px; font-weight: 500; }
/* Nhãn hạng (Top themes / Mới lên kệ) — chữ trắng mảnh trên màn tối, không khung */
.th-tier-label {
  font-size: 10.5px; font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase;
  color: rgba(255, 255, 255, 0.92);
}

.th-badge {
  position: absolute; top: 14px; left: 14px; z-index: 3;
  background: rgba(255, 255, 255, 0.92); backdrop-filter: blur(6px); color: var(--brand-ink);
  padding: 5px 11px; border-radius: 999px;
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  border: none; transform: none;
}
.th-badge-premium { background: rgba(40, 40, 47, 0.88); color: #fff; }

/* ---- ô "đang về": LẶNG — nền kem phẳng, không sọc, dấu mộc nhỏ mờ ---- */
.th-marquee-cell > .th-coming-cell { width: 100%; }
.th-coming-cell {
  aspect-ratio: 4/5; border-radius: 14px;
  border: 1px dashed rgba(40, 40, 47, 0.22);
  background: var(--brand-strip);
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px;
  color: var(--brand-ink); text-align: center; padding: 26px;
}
.th-seal {
  width: 64px; height: 64px; border-radius: 50%;
  border: 1px solid rgba(40, 40, 47, 0.25); background: transparent;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px;
  transform: rotate(-8deg); box-shadow: none; opacity: 0.65; padding: 8px;
}
.th-seal b { font-size: 9px; letter-spacing: 0.16em; font-weight: 800; }
.th-seal span { font-size: 6.5px; letter-spacing: 0.06em; color: var(--brand-muted); font-weight: 700; text-transform: uppercase; line-height: 1.4; }
.th-coming-cell strong { font-size: 14.5px; font-weight: 700; background: transparent; padding: 0; }
.th-coming-cell .th-coming-sub { font-size: 12px; line-height: 1.55; color: var(--brand-muted); max-width: 210px; background: transparent; padding: 0; }

/* ---- empty ---- */
.th-empty { text-align: center; padding: 80px 24px; display: flex; flex-direction: column; align-items: center; gap: 14px; }
.th-empty-mark { font-size: 52px; color: var(--brand-muted); margin-bottom: 4px; font-weight: 250; }
.th-empty h3 { font-size: 26px; margin: 0; }
.th-empty p { color: var(--brand-muted); margin: 0 0 12px; max-width: 400px; }

/* ---- đầu mục editorial: số + hairline (section chữ — giữ cá tính) ---- */
.th-section-head {
  display: grid; grid-template-columns: auto 1fr; gap: 28px; align-items: end;
  border-bottom: 1px solid rgba(40, 40, 47, 0.92); padding-bottom: 24px; margin: 0 0 48px;
}
.th-sec-no { font-size: 13px; font-weight: 250; letter-spacing: 0.08em; line-height: 1; display: flex; align-items: baseline; gap: 5px; padding-bottom: 6px; }
.th-sec-no b { font-size: 42px; font-weight: 250; letter-spacing: -0.02em; }
.th-section-head h2 {
  font-family: var(--brand-font-display); font-weight: var(--brand-weight-display);
  font-size: clamp(30px, 3.6vw, 46px); letter-spacing: -0.025em; margin: 0 0 6px; line-height: 1.05;
}
.th-section-head p { color: var(--brand-muted); margin: 0; max-width: 480px; font-size: 14.5px; font-weight: 500; }

/* ---- Top themes (3 card lớn) ---- */
.th-top { max-width: 1496px; margin: 0 auto; padding: 46px 28px 56px; }
.th-top-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 34px; }
.th-top-item .th-card-media { aspect-ratio: 4/5; }
.th-top-foot { display: flex; justify-content: space-between; align-items: baseline; margin-top: 16px; padding: 0 2px; }
.th-top-name { font-size: 17px; font-weight: 750; letter-spacing: -0.01em; }
.th-top-price { font-size: 14px; font-weight: 650; color: var(--brand-ink-2); font-variant-numeric: tabular-nums; border: none; padding: 0; background: transparent; }

/* ---- strip "Mọi theme đều có": vàng nhạt đặc + vạch dọc + số (section chữ) ---- */
/* Nền full-width cùng màu vòng tròn sau phone mục quote; nội dung max-width 1496px */
.th-gets { background: var(--brand-strip-2); }
.th-gets-inner { max-width: 1496px; margin: 0 auto; padding: 78px 28px; }
.th-gets-inner h2 {
  font-family: var(--brand-font-display); font-weight: var(--brand-weight-display);
  font-size: clamp(26px, 3vw, 38px); letter-spacing: -0.025em; margin: 0 0 40px;
}
.th-gets-grid { display: grid; grid-template-columns: repeat(4, 1fr); align-items: stretch; }
/* Không padding dọc: vạch dọc (border-left) cao bằng nội dung, grid stretch giữ các vạch bằng nhau */
.th-get { padding: 0 26px; border-left: 1px solid rgba(40, 40, 47, 0.85); }
.th-get:first-child { border-left: none; padding-left: 2px; }
.th-get-no { font-size: 12px; font-weight: 250; letter-spacing: 0.06em; margin-bottom: 16px; }
.th-get-icon {
  width: 44px; height: 44px; border-radius: 12px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-surface); border: 1px solid rgba(40, 40, 47, 0.16);
  color: var(--brand-ink); margin-bottom: 16px; box-shadow: none;
}
.th-get h3 { font-size: 15.5px; font-weight: 750; margin: 0 0 8px; }
.th-get p { font-size: 13px; line-height: 1.6; color: var(--brand-ink-2); margin: 0; }
@media (max-width: 980px) {
  .th-gets-grid { grid-template-columns: 1fr 1fr; row-gap: 32px; }
  .th-get:nth-child(3) { border-left: none; padding-left: 2px; }
}
/* Mobile: số trên, rồi icon trái + tiêu đề, mô tả phải */
@media (max-width: 560px) {
  .th-gets-grid { grid-template-columns: 1fr; }
  .th-get { border-left: none; padding-left: 2px; display: grid; grid-template-columns: 44px 1fr; column-gap: 16px; align-items: start; }
  .th-get-no { grid-column: 1 / -1; margin-bottom: 12px; }
  .th-get-icon { grid-row: 2 / span 2; margin-bottom: 0; }
  .th-get h3 { grid-column: 2; margin-top: 3px; }
  .th-get p { grid-column: 2; }
}

/* ---- Mới lên kệ (grid 4 card) ---- */
.th-new { max-width: 1496px; margin: 0 auto; padding: 92px 28px 64px; }
.th-new-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px; }
.th-new-item .th-top-foot { margin-top: 14px; }
.th-new-item .th-top-name { font-size: 15px; }
.th-new-item .th-top-price { font-size: 13px; }
.th-new-item .th-seal { width: 56px; height: 56px; }
@media (max-width: 980px) { .th-new-grid { grid-template-columns: 1fr 1fr; } }

/* ---- trích dẫn + phone: vòng xanh nhạt + bóng mềm ---- */
.th-quote { background: var(--brand-bg); }
.th-quote-inner {
  max-width: 1496px; margin: 0 auto; padding: 96px 28px;
  display: grid; grid-template-columns: 1.15fr 0.85fr; gap: 60px; align-items: center;
}
.th-quote-mark {
  font-family: var(--brand-font-display); font-weight: var(--brand-weight-display);
  font-size: 84px; line-height: 0.55; color: var(--brand-ink); margin-bottom: 26px;
}
.th-quote-text {
  font-size: clamp(22px, 2.4vw, 30px); line-height: 1.45; font-weight: 500;
  letter-spacing: -0.012em; color: var(--brand-ink); margin: 0 0 20px; max-width: 560px;
}
.th-quote-author { font-size: 13.5px; color: var(--brand-muted); font-weight: 450; }
/* Điều hướng carousel theme: mũi tên đường ngang dài + bộ đếm; hover mờ nhẹ */
.th-quote-nav { display: flex; align-items: center; gap: 24px; margin-top: 95px; }
.th-quote-arrow {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 8px 0; background: none; border: none; color: var(--brand-ink); cursor: pointer;
  transition: opacity var(--brand-dur-fast);
}
.th-quote-arrow:hover { opacity: 0.5; }
.th-quote-arrow svg { width: 48px; height: 12px; display: block; }
.th-quote-counter { font-size: 14px; font-weight: 650; color: var(--brand-ink-2); font-variant-numeric: tabular-nums; letter-spacing: 0.06em; min-width: 52px; text-align: center; }

/* Cột phải: phone LỚN HƠN + tên theme bên dưới */
.th-quote-stage { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.th-quote-phone { margin: 0; position: relative; display: flex; justify-content: center; padding: 24px 0; }
.th-quote-ring {
  position: absolute; width: 460px; height: 460px; max-width: 94vw; border-radius: 50%;
  background: var(--brand-strip-2); top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.th-quote-phone { perspective: 1600px; }
.th-quote-device { --dv-depth: 24px; width: min(270px, 62vw); transform: rotateY(-18deg) rotateX(3deg); }
/* Caption tên theme BÊN DƯỚI phone (không overlay) — "Tên · by Studio". Weight nhẹ (owner 2026-06-18) */
.th-quote-cap { position: relative; text-align: center; font-size: 14.5px; font-weight: 500; color: var(--brand-ink-2); }
.th-quote-cap-name { position: relative; color: var(--brand-ink); font-weight: 600; text-decoration: none; }
.th-quote-cap-name::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px; height: 1px; background: currentColor;
  transform: scaleX(0); transform-origin: left center; transition: transform 0.25s var(--brand-ease-eqx);
}
.th-quote-cap-name:hover::after { transform: scaleX(1); }
.th-quote-cap-by { margin-left: 6px; font-weight: 400; color: var(--brand-muted); }
/* ≤980px: một cột — trích dẫn → phone → tên theme → nút prev/next (cột trái tan vào khung để xếp lại thứ tự) */
@media (max-width: 980px) {
  .th-quote-inner { display: flex; flex-direction: column; align-items: stretch; gap: 0; padding: 48px 28px 56px; }
  .th-quote-left { display: contents; }
  .th-quote-mark { margin-bottom: 18px; }
  .th-quote-text { margin-bottom: 12px; }
  .th-quote-stage { order: 1; margin-top: 24px; gap: 14px; }
  .th-quote-nav { order: 2; margin-top: 18px; justify-content: center; }
  .th-new { padding-bottom: 32px; }
}

/* ---- band Apps: trắng kẹp viền đen + cửa sổ mockup (section chữ — giữ nhịp, bóng mềm) ---- */
.th-apps {
  background: var(--brand-bg); color: var(--brand-ink);
  border-top: 1px solid rgba(40, 40, 47, 0.92); border-bottom: 1px solid rgba(40, 40, 47, 0.92);
  position: relative; overflow: hidden;
}
.th-apps::before {
  content: ''; position: absolute; left: -70px; bottom: -90px;
  width: 340px; height: 340px; border-radius: 50%; background: var(--brand-strip);
}
.th-apps-inner { max-width: 1496px; margin: 0 auto; padding: 88px 28px; position: relative; }
.th-apps-head { max-width: 620px; }
.th-eyebrow-dark { background: transparent; color: var(--brand-ink); }
.th-apps-title {
  font-family: var(--brand-font-display); font-size: clamp(30px, 3.6vw, 46px);
  font-weight: var(--brand-weight-display); letter-spacing: -0.025em; margin: 0 0 12px;
}
.th-apps-sub { font-size: 15.5px; line-height: 1.65; color: var(--brand-ink-2); margin: 0 0 44px; }
.th-apps-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 36px; }
.th-app-card {
  background: var(--brand-surface); border: 1px solid rgba(40, 40, 47, 0.14);
  border-radius: 18px; overflow: hidden; padding: 0;
  box-shadow: 0 16px 40px rgba(40, 40, 47, 0.08);
  transition: transform var(--brand-dur) var(--brand-ease), box-shadow var(--brand-dur) var(--brand-ease);
}
.th-app-card:hover { transform: translateY(-4px); box-shadow: 0 28px 64px rgba(40, 40, 47, 0.13); }
.th-app-win {
  border-bottom: 1px solid rgba(40, 40, 47, 0.1); background: var(--brand-strip);
  padding: 10px 16px; display: flex; gap: 6px; align-items: center;
}
.th-app-win i { width: 9px; height: 9px; border-radius: 50%; border: none; display: block; }
/* 3 chấm = traffic light macOS: close (đỏ) · thu nhỏ/tạm ẩn (vàng) · phóng to (xanh) */
.th-app-win i:nth-child(1) { background: #ff5f57; }
.th-app-win i:nth-child(2) { background: #febc2e; }
.th-app-win i:nth-child(3) { background: #28c840; }
.th-app-win span { margin-left: 8px; font-size: 10.5px; font-weight: 800; letter-spacing: 0.14em; }
/* mockup UI trừu tượng — khối skeleton, KHÔNG số liệu giả */
.th-app-mock { padding: 18px 20px 6px; display: grid; grid-template-columns: 1.2fr 0.8fr; gap: 12px; }
.th-sk { border: 1px solid rgba(40, 40, 47, 0.12); border-radius: 10px; height: 56px; position: relative; overflow: hidden; }
.th-sk-tall { height: 124px; grid-row: span 2; }
.th-sk::after { content: ''; position: absolute; left: 10px; top: 10px; right: 36%; height: 8px; border-radius: 99px; background: var(--brand-strip-2); }
.th-sk::before { content: ''; position: absolute; left: 10px; top: 26px; right: 22%; height: 8px; border-radius: 99px; background: var(--brand-strip); }
.th-app-card > .th-app-icon, .th-app-card > h3, .th-app-card > p { margin-left: 24px; margin-right: 24px; }
.th-app-icon {
  width: 42px; height: 42px; border-radius: 11px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--brand-strip-2); border: none;
  color: var(--brand-ink); margin-top: 16px; margin-bottom: 12px;
}
.th-app-card h3 { font-size: 19px; font-weight: 750; margin: 0 0 8px; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.th-app-tag {
  font-size: 9.5px; font-weight: 800; letter-spacing: 0.12em; text-transform: uppercase;
  border: 1px solid rgba(40, 40, 47, 0.2); border-radius: 999px; padding: 4px 10px; background: var(--brand-strip);
}
.th-app-card p { font-size: 14px; line-height: 1.6; color: var(--brand-ink-2); margin: 0 0 24px; }
/* Nút apps band giờ dùng .btn-primary.btn-sweep (base.css) — bỏ hard-shadow cũ (owner chốt 2026-06-18).
   Giữ class .th-apps-cta chỉ để định vị (không thêm style nền/viền để không đè sweep). */
.th-apps-cta { margin-top: 4px; }

/* ---- 3 bước (section chữ — thẻ lặng, số mảnh lớn) ---- */
.th-steps { max-width: 1496px; margin: 0 auto; padding: 92px 28px; }
.th-steps-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
.th-step {
  background: var(--brand-surface); border: 1px solid rgba(40, 40, 47, 0.14);
  border-radius: 18px; padding: 30px 28px;
  box-shadow: 0 10px 28px rgba(40, 40, 47, 0.06);
  transition: transform var(--brand-dur) var(--brand-ease), box-shadow var(--brand-dur) var(--brand-ease);
}
.th-step:hover { transform: translateY(-4px); box-shadow: 0 22px 50px rgba(40, 40, 47, 0.11); }
.th-step-num { font-size: 38px; font-weight: 250; letter-spacing: -0.02em; color: var(--brand-ink); margin-bottom: 14px; font-variant-numeric: tabular-nums; }
.th-step h3 { font-size: 18px; font-weight: 750; margin: 0 0 8px; }
.th-step p { font-size: 14.5px; line-height: 1.65; color: var(--brand-ink-2); margin: 0; }

/* ---- CTA cuối: strip xanh nhạt đặc + chữ R mờ ---- */
.th-final { background: var(--brand-strip-2); position: relative; overflow: hidden; }
.th-final::before {
  content: 'R'; position: absolute; right: -30px; top: 50%; transform: translateY(-54%);
  font-family: var(--brand-font-display); font-weight: var(--brand-weight-display);
  font-size: 420px; line-height: 1; color: rgba(40, 40, 47, 0.05); pointer-events: none;
}
.th-final-inner { max-width: 760px; margin: 0 auto; padding: 96px 28px; text-align: center; position: relative; }
.th-final h2 {
  font-family: var(--brand-font-display); font-size: clamp(30px, 3.6vw, 46px);
  letter-spacing: -0.025em; font-weight: var(--brand-weight-display); margin: 0 0 12px;
}
.th-final p { color: var(--brand-ink-2); font-size: 16px; margin: 0 0 32px; }

/* ---- responsive ---- */
@media (max-width: 980px) {
  .th-hero-grid { grid-template-columns: 1fr; gap: 48px; }
  .th-apps-grid { grid-template-columns: 1fr; }
  .th-steps-grid { grid-template-columns: 1fr; }
  .th-section-head { grid-template-columns: 1fr; gap: 10px; }
  .th-sec-no { order: -1; }
}

/* ---- mobile ≤720px: Theme nổi bật, Mới lên kệ, Không chỉ website thành hàng trượt ngang (lộ mép thẻ kế);
   3 bước: số trái, nội dung phải ---- */
@media (max-width: 720px) {
  .th-top-grid, .th-new-grid, .th-apps-grid {
    grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 78%; gap: 16px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
    margin-left: -28px; margin-right: -28px; padding: 6px 28px 18px; scroll-padding-inline: 28px;
  }
  .th-top-grid::-webkit-scrollbar, .th-new-grid::-webkit-scrollbar, .th-apps-grid::-webkit-scrollbar { display: none; }
  .th-top-item, .th-new-item, .th-app-card { scroll-snap-align: start; }
  .th-step { display: grid; grid-template-columns: auto 1fr; column-gap: 18px; align-items: start; padding: 24px 22px; }
  .th-step-num { grid-row: 1 / span 2; margin-bottom: 0; line-height: 1; min-width: 46px; }
  .th-step h3 { margin-top: 4px; }
}
