/* ============================================================
   Trang giới thiệu (hiện khi chưa đăng nhập) — dùng chung biến màu của style.css
   ============================================================ */
html.landing-on { scroll-behavior: smooth; }
#landing {
  --ld-grad: linear-gradient(135deg, #6366f1 0%, #8b5cf6 55%, #ec4899 100%);
  --ld-card: var(--tint-04);
  --ld-alt: var(--tint-02);
  --ld-shadow: 0 24px 60px rgba(0,0,0,.35);
  color: var(--text-primary); font-family: var(--font); line-height: 1.6;
  background: var(--bg-base); overflow-x: clip;
}
:root[data-theme="light"] #landing { --ld-shadow: 0 24px 60px rgba(30,41,90,.14); --ld-alt: rgba(15,23,42,.025); }
:where(#landing) *, :where(#landing) *::before, :where(#landing) *::after { box-sizing: border-box; }
:where(#landing) :is(h1, h2, h3, h4, h5, p) { margin: 0; }
:where(#landing) a { color: inherit; text-decoration: none; }
#landing section[id], #landing main { scroll-margin-top: 76px; }
.ld-wrap { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 24px; }
.ld-narrow { max-width: 860px; }
.ic { width: 20px; height: 20px; flex: none; }
.ld-grad { background: var(--ld-grad); -webkit-background-clip: text; background-clip: text; color: transparent; }
/* Hiện dần khi cuộn (chỉ ẩn khi JS đã chạy, tránh mất nội dung nếu JS lỗi) */
.ld-js .ld-reveal { opacity: 0; transform: translateY(18px); transition: opacity .6s ease, transform .6s ease; }
.ld-js .ld-reveal.in { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  .ld-js .ld-reveal { opacity: 1; transform: none; transition: none; }
  html.landing-on { scroll-behavior: auto; }
}
/* Nút */
.ld-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 20px; border-radius: 12px;
  font: 600 14px var(--font); cursor: pointer; border: 1px solid transparent; transition: transform .15s, opacity .2s, background .2s, border-color .2s; white-space: nowrap;
}
.ld-btn:active { transform: scale(.97); }
.ld-btn-lg { padding: 14px 26px; font-size: 15px; border-radius: 14px; }
.ld-btn-primary { background: var(--ld-grad); color: #fff; box-shadow: 0 8px 24px rgba(99,102,241,.35); }
.ld-btn-primary:hover { opacity: .92; transform: translateY(-1px); }
.ld-btn-ghost { background: var(--tint-06); color: var(--text-primary); border-color: var(--border); }
.ld-btn-ghost:hover { background: var(--tint-10); border-color: var(--border-hov); }
.ld-btn-white { background: #fff; color: #4338ca; }
.ld-btn-white:hover { transform: translateY(-1px); box-shadow: 0 10px 28px rgba(0,0,0,.25); }
.ld-btn-outline { background: transparent; color: #fff; border-color: rgba(255,255,255,.55); }
.ld-btn-outline:hover { background: rgba(255,255,255,.12); }
.ld-btn-ic { width: 18px; height: 18px; transition: transform .2s; }
.ld-btn:hover .ld-btn-ic { transform: translateX(3px); }
.ld-icon-btn { width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--border); background: var(--tint-06); color: var(--text-primary); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.ld-icon-btn:hover { background: var(--tint-10); }
/* Thanh điều hướng */
.ld-nav { position: sticky; top: 0; z-index: 700; background: var(--header-bg); backdrop-filter: blur(16px); border-bottom: 1px solid transparent; transition: border-color .2s, box-shadow .2s; }
.ld-nav.scrolled { border-color: var(--border); box-shadow: 0 6px 24px rgba(0,0,0,.18); }
.ld-nav-in { display: flex; align-items: center; justify-content: space-between; gap: 20px; height: 68px; }
.ld-brand { display: inline-flex; align-items: center; gap: 12px; flex: none; }
.ld-brand-t strong { white-space: nowrap; }
.ld-nav .ld-brand-t em { display: none; }
.ld-brand-ic { width: 40px; height: 40px; flex: none; display: inline-flex; filter: drop-shadow(0 6px 14px rgba(99,102,241,.45)); transition: transform .3s cubic-bezier(.2,.8,.2,1); }
.ld-brand-ic .brand-logo { width: 100%; height: 100%; }
.ld-brand:hover .ld-brand-ic { transform: rotate(-6deg) scale(1.06); }
.ld-brand-t { display: flex; flex-direction: column; line-height: 1.2; }
.ld-brand-t strong { font-size: 15px; font-weight: 700; letter-spacing: -.2px; }
.ld-brand-t em { font-style: normal; font-size: 11px; color: var(--text-secondary); }
.ld-links { display: flex; align-items: center; gap: 2px; }
.ld-link { white-space: nowrap; padding: 8px 11px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--text-secondary); transition: color .2s, background .2s; }
.ld-link:hover { color: var(--text-primary); background: var(--tint-06); }
.ld-links-cta { display: none; }
.ld-nav-actions { display: flex; align-items: center; gap: 8px; flex: none; }
.ld-burger { display: none; }
/* Hero */
.ld-hero { position: relative; padding: 72px 0 40px; overflow: hidden; }
.ld-hero-bg { position: absolute; inset: 0; pointer-events: none; }
.ld-hero-bg .b1, .ld-hero-bg .b2 { position: absolute; border-radius: 50%; filter: blur(90px); }
.ld-hero-bg .b1 { width: 560px; height: 560px; left: -140px; top: -160px; background: rgba(99,102,241,.28); }
.ld-hero-bg .b2 { width: 480px; height: 480px; right: -120px; top: 40px; background: rgba(236,72,153,.2); }
.ld-hero-bg .grid { position: absolute; inset: 0; background-image: linear-gradient(var(--tint-04) 1px, transparent 1px), linear-gradient(90deg, var(--tint-04) 1px, transparent 1px); background-size: 56px 56px; mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); -webkit-mask-image: radial-gradient(ellipse 70% 60% at 50% 30%, #000 20%, transparent 75%); }
.ld-hero-in { position: relative; display: grid; grid-template-columns: 1.05fr .95fr; gap: 48px; align-items: center; }
.ld-pill { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; font-size: 13px; font-weight: 600; color: var(--c-brand-soft); background: rgba(99,102,241,.14); border: 1px solid rgba(129,140,248,.35); margin-bottom: 20px; }
.ld-pill-ic { width: 16px; height: 16px; }
.ld-hero h1 { font-size: clamp(30px, 4.3vw, 54px); font-weight: 800; letter-spacing: -1.8px; line-height: 1.22; margin-bottom: 24px; }
.ld-lead { font-size: 18px; color: var(--text-secondary); max-width: 560px; margin-bottom: 30px; }
.ld-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 26px; }
.ld-cta.c { justify-content: center; margin-bottom: 0; }
.ld-trust { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; font-size: 13px; color: var(--text-secondary); }
.ld-trust li { display: inline-flex; align-items: center; gap: 6px; }
.ld-trust .ic { width: 16px; height: 16px; color: var(--c-good); }
/* Khung minh hoạ app */
.ld-hero-art { position: relative; padding: 18px 0 28px; }
.ld-mock { background: var(--surface-2); border: 1px solid var(--border); border-radius: 22px; padding: 18px; box-shadow: var(--ld-shadow); position: relative; }
.ld-mock-bar { display: flex; align-items: center; gap: 6px; margin-bottom: 14px; }
.ld-mock-bar span { width: 10px; height: 10px; border-radius: 50%; background: var(--tint-16); }
.ld-mock-bar span:nth-child(1) { background: #f87171; }
.ld-mock-bar span:nth-child(2) { background: #fbbf24; }
.ld-mock-bar span:nth-child(3) { background: #4ade80; }
.ld-mock-bar em { margin-left: 8px; font-style: normal; font-size: 12px; font-weight: 600; color: var(--text-secondary); }
.ld-mock-q { display: flex; justify-content: space-between; align-items: center; padding: 11px 14px; border-radius: 12px; background: var(--tint-06); font-size: 13px; margin-bottom: 12px; }
.ld-mock-q strong { font-size: 15px; }
.ld-mock-list { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.ld-mock-row { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--border); background: var(--tint-03); }
.ld-mock-row b { display: block; font-size: 13.5px; line-height: 1.25; }
.ld-mock-row small { font-size: 11.5px; color: var(--text-secondary); }
.ld-mock-row strong { font-size: 14.5px; color: var(--c-good); white-space: nowrap; }
.ld-mock-row.best { border-color: rgba(74,222,128,.55); background: rgba(74,222,128,.07); box-shadow: 0 0 0 1px rgba(74,222,128,.25) inset; }
.ld-mock-row.dim { opacity: .65; }
.ld-mock-row.dim strong { color: var(--text-secondary); }
.ld-mock .tag { font-style: normal; font-weight: 700; font-size: 10.5px; padding: 2px 7px; border-radius: 999px; background: rgba(74,222,128,.18); color: var(--c-good); }
.ld-mock-prog { margin-top: 10px; }
.ld-mock-prog > div { display: flex; justify-content: space-between; gap: 10px; font-size: 11.5px; color: var(--text-secondary); margin-bottom: 5px; }
.ld-mock-prog > div span:last-child { color: var(--text-primary); font-weight: 600; white-space: nowrap; }
.ld-mock-prog i { display: block; height: 7px; border-radius: 99px; background: var(--tint-08); position: relative; overflow: hidden; }
.ld-mock-prog i::after { content: ''; position: absolute; inset: 0 auto 0 0; width: var(--w); border-radius: inherit; background: var(--ld-grad); }
.ld-mock-prog i.alt::after { background: linear-gradient(90deg, #38bdf8, #6366f1); }
.ld-mock-prog i.full::after { background: linear-gradient(90deg, #f59e0b, #ef4444); }
.ld-float { position: absolute; display: inline-flex; align-items: center; gap: 8px; padding: 9px 14px; border-radius: 14px; font-size: 12.5px; font-weight: 600; background: var(--surface-1); border: 1px solid var(--border); box-shadow: 0 14px 34px rgba(0,0,0,.3); animation: ldFloat 6s ease-in-out infinite; }
.ld-float .ic { width: 16px; height: 16px; color: var(--c-good); }
.ld-float.f1 { right: 26px; top: 4px; }
.ld-float.f2 { left: 26px; bottom: -6px; animation-delay: -3s; }
.ld-float.f2 .ic { color: var(--c-sky); }
@keyframes ldFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
.ld-note { position: absolute; right: 10px; bottom: 4px; font-size: 10.5px; color: var(--text-muted); letter-spacing: .4px; text-transform: uppercase; }
.ld-bank { display: inline-flex; align-items: center; justify-content: center; background: #fff; border-radius: 10px; padding: 6px 10px; height: 40px; width: 96px; box-shadow: 0 1px 4px rgba(0,0,0,.25); flex: none; }
.ld-bank img { max-height: 100%; max-width: 100%; object-fit: contain; display: block; }
.ld-bank.sm { height: 34px; width: 76px; border-radius: 9px; padding: 5px 8px; }
/* Khối chung */
.ld-section { padding: 92px 0; }
.ld-alt { background: var(--ld-alt); border-block: 1px solid var(--border); }
.ld-head { text-align: center; max-width: 720px; margin: 0 auto 52px; }
.ld-eyebrow { display: inline-block; font-size: 12.5px; font-weight: 700; letter-spacing: 1.2px; text-transform: uppercase; color: var(--c-brand-soft2); margin-bottom: 12px; }
.ld-head h2 { font-size: clamp(28px, 3.6vw, 40px); font-weight: 800; letter-spacing: -1px; line-height: 1.18; margin-bottom: 14px; }
.ld-head p { font-size: 16.5px; color: var(--text-secondary); }
/* Tính năng */
.ld-feat-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.ld-feat { padding: 28px; border-radius: 22px; border: 1px solid var(--border); background: var(--ld-card); transition: transform .2s, border-color .2s, background .2s; }
.ld-feat:hover { transform: translateY(-4px); border-color: rgba(129,140,248,.5); background: var(--tint-06); }
.ld-feat-ic { width: 50px; height: 50px; border-radius: 14px; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 18px; color: #fff; background: var(--ld-grad); box-shadow: 0 8px 20px rgba(99,102,241,.35); }
.ld-feat-ic .ic { width: 24px; height: 24px; }
.ld-feat h3 { font-size: 18px; font-weight: 700; margin-bottom: 8px; letter-spacing: -.2px; }
.ld-feat p { font-size: 14.5px; color: var(--text-secondary); }
/* FAQ */
.ld-faqs { display: grid; gap: 12px; }
.ld-faq { border: 1px solid var(--border); border-radius: 16px; background: var(--bg-base); overflow: hidden; transition: border-color .2s; }
.ld-faq[open] { border-color: rgba(129,140,248,.5); }
.ld-faq summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-size: 16px; font-weight: 600; }
.ld-faq summary::-webkit-details-marker { display: none; }
.ld-faq summary:hover { background: var(--tint-04); }
.ld-faq-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--tint-08); display: inline-flex; align-items: center; justify-content: center; flex: none; transition: transform .25s, background .2s; }
.ld-faq-ic .ic { width: 16px; height: 16px; transform: rotate(90deg); }
.ld-faq[open] .ld-faq-ic { transform: rotate(180deg); background: rgba(99,102,241,.25); }
.ld-faq p { padding: 0 22px 20px; font-size: 15px; color: var(--text-secondary); }
/* Liên hệ */
.ld-contact { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: start; }
.ld-contact-info { display: grid; gap: 14px; }
.ld-ci { display: flex; align-items: center; gap: 16px; padding: 18px 20px; border-radius: 18px; border: 1px solid var(--border); background: var(--ld-card); }
.ld-ci-ic { width: 46px; height: 46px; border-radius: 13px; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; background: var(--ld-grad); }
.ld-ci small { display: block; font-size: 12px; color: var(--text-secondary); }
.ld-ci b { font-size: 15.5px; font-weight: 600; word-break: break-word; }
.ld-ci b a:hover { color: var(--c-brand-soft2); text-decoration: underline; }
.ld-form { display: grid; gap: 16px; padding: 28px; border-radius: 22px; border: 1px solid var(--border); background: var(--ld-card); }
.ld-form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.ld-form label { display: grid; gap: 7px; font-size: 13px; font-weight: 600; color: var(--text-secondary); }
.ld-form input, .ld-form select, .ld-form textarea {
  width: 100%; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--border); background: var(--tint-06); color: var(--text-primary);
  font: 15px var(--font); outline: none; transition: border-color .2s, background .2s;
}
.ld-form select { background: var(--surface-1); }
.ld-form textarea { resize: vertical; min-height: 120px; }
.ld-form input:focus, .ld-form select:focus, .ld-form textarea:focus { border-color: rgba(99,102,241,.7); }
.ld-form input::placeholder, .ld-form textarea::placeholder { color: var(--text-muted); }
.ld-form .ld-btn { justify-self: start; }
.ld-form-status { font-size: 13.5px; min-height: 0; }
.ld-form-status:empty { display: none; }
.ld-form-status.ok { color: var(--c-good); }
.ld-form-status.err { color: var(--c-bad); }
/* CTA cuối */
.ld-final { padding: 0 0 92px; }
.ld-final-card { text-align: center; padding: 64px 28px; border-radius: 30px; color: #fff; position: relative; overflow: hidden; background: var(--ld-grad); box-shadow: 0 30px 70px rgba(99,102,241,.35); }
.ld-final-card::before, .ld-final-card::after { content: ''; position: absolute; border-radius: 50%; background: rgba(255,255,255,.12); }
.ld-final-card::before { width: 320px; height: 320px; left: -90px; top: -150px; }
.ld-final-card::after { width: 260px; height: 260px; right: -70px; bottom: -130px; }
.ld-final-card > * { position: relative; }
.ld-final-card h2 { font-size: clamp(26px, 3.4vw, 38px); font-weight: 800; letter-spacing: -.8px; margin-bottom: 10px; }
.ld-final-card p { font-size: 16.5px; opacity: .92; margin-bottom: 28px; }
/* Footer */
.ld-footer { border-top: 1px solid var(--border); padding: 56px 0 28px; background: var(--ld-alt); }
.ld-foot-grid { display: grid; grid-template-columns: 1.8fr 1fr 1fr; gap: 36px; margin-bottom: 36px; }
.ld-foot-brand p { margin-top: 16px; font-size: 14px; color: var(--text-secondary); max-width: 340px; }
.ld-foot-grid h5 { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .8px; margin-bottom: 14px; }
.ld-foot-grid a:not(.ld-brand), .ld-foot-grid span[data-site] { display: block; font-size: 14.5px; color: var(--text-secondary); padding: 4px 0; }
.ld-foot-grid a:not(.ld-brand):hover { color: var(--text-primary); }
.ld-disclaimer { font-size: 12.5px; color: var(--text-muted); line-height: 1.65; padding-top: 24px; border-top: 1px solid var(--border); }
.ld-foot-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px; margin-top: 20px; font-size: 13px; color: var(--text-secondary); }
.ld-foot-bottom a:hover { color: var(--text-primary); }
/* Hộp thoại đăng nhập phía trên trang giới thiệu */
html.landing-on #auth-screen { background: rgba(6,10,24,.72); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); background-image: none; z-index: 900; }
:root[data-theme="light"].landing-on #auth-screen { background: rgba(30,41,90,.4); }
html.landing-on .auth-bg { display: none; }
html.landing-on #auth-screen .auth-card { background: var(--surface-1); -webkit-backdrop-filter: none; backdrop-filter: none; max-height: calc(100dvh - 32px); overflow-y: auto; animation: ldPop .25s ease; }
@keyframes ldPop { from { opacity: 0; transform: translateY(14px) scale(.98); } to { opacity: 1; transform: none; } }
.auth-close { position: absolute; top: 14px; right: 14px; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--border); background: var(--tint-06); color: var(--text-secondary); font-size: 14px; cursor: pointer; z-index: 2; display: none; }
.auth-close:hover { background: var(--tint-10); color: var(--text-primary); }
html.landing-on .auth-close { display: inline-flex; align-items: center; justify-content: center; }
/* ── Responsive ── */
@media (max-width: 1023px) {
  .ld-hero-in, .ld-contact { grid-template-columns: 1fr; }
  .ld-hero-in { gap: 36px; }
  .ld-hero-art { max-width: 560px; margin: 0 auto; width: 100%; }
  .ld-feat-grid { grid-template-columns: repeat(2, 1fr); }
  .ld-foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 1099px) {
  .ld-burger { display: inline-flex; }
  .ld-hide-m { display: none; }
  .ld-links {
    position: absolute; left: 0; right: 0; top: 68px; flex-direction: column; align-items: stretch; gap: 2px; padding: 12px 16px 18px;
    background: var(--surface-2); border-bottom: 1px solid var(--border); box-shadow: 0 20px 40px rgba(0,0,0,.35);
    display: none;
  }
  .ld-links.open { display: flex; }
  .ld-link { padding: 13px 14px; font-size: 15px; }
  .ld-links-cta { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 10px; }
  .ld-links-cta .ld-btn { padding: 13px; }
}
@media (max-width: 767px) {
  .ld-wrap { padding: 0 18px; }
  .ld-nav-in { height: 62px; }
  .ld-links { top: 62px; }
  .ld-brand-t em { display: none; }
  .ld-hero { padding: 40px 0 36px; }
  .ld-lead { font-size: 16.5px; }
  .ld-cta .ld-btn { flex: 1 1 100%; }
  .ld-section { padding: 64px 0; }
  .ld-head { margin-bottom: 36px; }
  .ld-feat-grid { grid-template-columns: 1fr; }
  .ld-form-row { grid-template-columns: 1fr; }
  .ld-form { padding: 20px; }
  .ld-form .ld-btn { justify-self: stretch; }
  .ld-float.f1 { right: 10px; }
  .ld-float.f2 { left: 10px; }
  .ld-final { padding-bottom: 64px; }
  .ld-final-card { padding: 44px 20px; border-radius: 24px; }
  .ld-final-card .ld-btn { flex: 1 1 100%; }
  .ld-foot-grid { grid-template-columns: 1fr; gap: 26px; }
  .ld-foot-bottom { flex-direction: column; }
  .ld-faq summary { padding: 16px 16px; font-size: 15px; }
  .ld-faq p { padding: 0 16px 18px; }
  .ld-mock { padding: 14px; }
  .ld-mock-row { gap: 10px; padding: 9px 10px; }
  .ld-bank.sm { width: 60px; height: 30px; }
}
/* ── Hiện dần: nhiều hướng, lệch nhịp ── */
.ld-js .ld-reveal { transition: opacity .75s cubic-bezier(.2,.7,.2,1) var(--d, 0ms), transform .75s cubic-bezier(.2,.7,.2,1) var(--d, 0ms); }
.ld-js .ld-reveal[data-reveal="left"] { transform: translateX(-34px); }
.ld-js .ld-reveal[data-reveal="right"] { transform: translateX(34px); }
.ld-js .ld-reveal[data-reveal="zoom"] { transform: scale(.93) translateY(10px); }
.ld-js .ld-reveal.in { opacity: 1; transform: none; }
/* thanh tiến độ & số liệu trong khung minh hoạ chạy khi hiện ra */
.ld-mock-prog i::after { transition: width 1.3s cubic-bezier(.2,.8,.2,1) .35s; }
.ld-js .ld-reveal:not(.in) .ld-mock-prog i::after { width: 0; }
/* ── Thanh tiến độ cuộn ── */
.ld-progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; transform-origin: left; transform: scaleX(0); background: var(--ld-grad); pointer-events: none; }
/* ── Chữ gradient chuyển màu ── */
.ld-grad { background-image: linear-gradient(90deg, #6366f1, #8b5cf6, #ec4899, #8b5cf6, #6366f1); background-size: 200% 100%; animation: ldShimmer 7s linear infinite; }
@keyframes ldShimmer { to { background-position: -200% 0; } }
/* ── Nền hero: trôi + parallax ── */
.ld-hero-bg { --px: 0px; --py: 0px; --sy: 0px; }
.ld-hero-bg .b1, .ld-hero-bg .b2 { translate: var(--px) calc(var(--py) + var(--sy)); transition: translate .5s ease-out; }
.ld-hero-bg .b1 { animation: ldDrift 15s ease-in-out infinite; }
.ld-hero-bg .b2 { animation: ldDrift 19s ease-in-out infinite reverse; }
@keyframes ldDrift { 0%,100% { transform: translate(0,0) scale(1); } 50% { transform: translate(34px, 26px) scale(1.08); } }
/* ── Nút chính: ánh sáng quét qua ── */
.ld-btn-primary.ld-btn-lg { position: relative; overflow: hidden; }
.ld-btn-primary.ld-btn-lg::after { content: ''; position: absolute; top: 0; bottom: 0; width: 40%; left: 0; background: linear-gradient(110deg, transparent, rgba(255,255,255,.4), transparent); transform: translateX(-130%) skewX(-18deg); animation: ldShine 4.5s ease-in-out infinite; pointer-events: none; }
@keyframes ldShine { 0%, 55% { transform: translateX(-130%) skewX(-18deg); } 100% { transform: translateX(380%) skewX(-18deg); } }
/* ── Ánh sáng theo chuột trên thẻ ── */
.ld-spot { position: relative; overflow: hidden; }
.ld-spot::before { content: ''; position: absolute; inset: 0; pointer-events: none; opacity: 0; transition: opacity .3s; border-radius: inherit;
  background: radial-gradient(340px circle at var(--mx, 50%) var(--my, 50%), rgba(129,140,248,.2), transparent 62%); }
.ld-spot:hover::before { opacity: 1; }
.ld-spot > * { position: relative; }
/* ── Hero minh hoạ: chip hạng mục, nghiêng nhẹ theo chuột, đổi cảnh ── */
.ld-hero-art .ld-mock { transform: perspective(1100px) rotateY(var(--ry, 0deg)) rotateX(var(--rx, 0deg)); transition: transform .35s ease-out; will-change: transform; }
.ld-mock-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; }
.ld-chip { font: 600 11.5px var(--font); padding: 6px 11px; border-radius: 999px; border: 1px solid var(--border); background: var(--tint-04); color: var(--text-secondary); cursor: pointer; transition: all .2s; }
.ld-chip:hover { color: var(--text-primary); border-color: var(--border-hov); }
.ld-chip.on { background: var(--ld-grad); color: #fff; border-color: transparent; box-shadow: 0 6px 16px rgba(99,102,241,.4); }
.ld-swap > * { animation: ldIn .5s cubic-bezier(.2,.8,.2,1) both; }
.ld-swap > *:nth-child(2) { animation-delay: .07s; }
.ld-swap > *:nth-child(3) { animation-delay: .14s; }
@keyframes ldIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
.ld-mock-row.best { animation: ldGlow 2.6s ease-in-out infinite; }
@keyframes ldGlow { 0%,100% { box-shadow: 0 0 0 1px rgba(74,222,128,.25) inset, 0 0 0 rgba(74,222,128,0); } 50% { box-shadow: 0 0 0 1px rgba(74,222,128,.4) inset, 0 0 22px rgba(74,222,128,.22); } }
/* ── Phần "Vì sao cần" ── */
.ld-why { display: grid; grid-template-columns: .85fr 1.15fr; gap: 28px; align-items: stretch; }
.ld-pains { display: grid; gap: 14px; align-content: start; }
.ld-pain { display: flex; gap: 16px; align-items: flex-start; padding: 20px 22px; border-radius: 18px; border: 1px solid var(--border); background: var(--ld-card); transition: transform .2s, border-color .2s; }
.ld-pain:hover { transform: translateX(4px); border-color: rgba(248,113,113,.45); }
.ld-pain-ic { flex: none; width: 46px; height: 46px; border-radius: 13px; display: inline-flex; align-items: center; justify-content: center; color: var(--c-bad); background: rgba(248,113,113,.13); }
.ld-pain-ic .ic { width: 22px; height: 22px; }
.ld-pain h3 { font-size: 16.5px; font-weight: 700; margin-bottom: 4px; }
.ld-pain p { font-size: 14.5px; color: var(--text-secondary); }
.ld-compare-head span { display: inline-flex; align-items: center; gap: 8px; }
.ld-cmp-t b { display: block; font-size: 15px; }
.ld-cmp.bad > strong { color: var(--text-secondary); }
.ld-js .ld-reveal:not(.in) .ld-note-inline { font-size: 11.5px; color: var(--text-muted); }
/* ── CTA cuối: nền chuyển màu + vòng tròn trôi ── */
.ld-final-card { background: linear-gradient(120deg, #6366f1, #8b5cf6, #ec4899, #8b5cf6, #6366f1); background-size: 300% 300%; animation: ldGradMove 12s ease infinite; }
@keyframes ldGradMove { 0%,100% { background-position: 0% 50%; } 50% { background-position: 100% 50%; } }
.ld-final-card::before { animation: ldDrift 12s ease-in-out infinite; }
.ld-final-card::after { animation: ldDrift 16s ease-in-out infinite reverse; }
/* ── Responsive cho phần mới ── */
@media (max-width: 1023px) {
  .ld-why { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .ld-cmp > strong { font-size: 22px; }
  .ld-pain { padding: 16px; }
}
/* Người dùng bật "giảm chuyển động" → tắt toàn bộ */
@media (prefers-reduced-motion: reduce) {
  #landing *, #landing *::before, #landing *::after { animation: none !important; transition: none !important; }
  .ld-js .ld-reveal, .ld-js .ld-reveal[data-reveal] { opacity: 1; transform: none; }
}
/* Cân bằng dòng cho tiêu đề và đoạn dẫn: không để rớt một chữ lẻ ở dòng cuối */
.ld-head h2, .ld-final-card h2, .ld-hero h1 { text-wrap: balance; }
.ld-head p, .ld-lead, .ld-final-card p { text-wrap: pretty; }
/* Khẩu hiệu hero: mỗi vế một dòng khi đủ chỗ */
@media (min-width: 420px) {
  .ld-hero h1 { white-space: nowrap; }
}
/* ============================================================
   So sánh: chi tiêu thông thường vs chi tiêu thông minh
   ============================================================ */
.ld-compare { display: flex; flex-direction: column; gap: 18px; padding: 26px; border-radius: 26px; background: var(--surface-2); border: 1px solid var(--border); box-shadow: var(--ld-shadow); position: relative; overflow: hidden; }
.ld-compare::before { content: ''; position: absolute; inset: -40% -20% auto auto; width: 70%; height: 70%; background: radial-gradient(circle, rgba(74,222,128,.14), transparent 65%); pointer-events: none; }
.ld-compare > * { position: relative; }
.ld-cmp-top { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.ld-cmp-top small { display: block; font-size: 12px; color: var(--text-secondary); text-transform: uppercase; letter-spacing: .6px; }
.ld-cmp-top strong { font-size: 19px; letter-spacing: -.3px; }
/* hai ô VS */
.ld-vs { display: grid; grid-template-columns: 1fr auto 1fr; gap: 10px; align-items: stretch; }
.ld-vs-tile { position: relative; display: flex; flex-direction: column; gap: 2px; padding: 18px 16px 16px; border-radius: 20px; border: 1px solid var(--border); background: var(--tint-04); }
.ld-vs-tile b { font-size: 14.5px; }
.ld-vs-tile small { font-size: 12px; color: var(--text-secondary); min-height: 32px; }
.ld-vs-amt { font-size: clamp(24px, 2.6vw, 32px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; margin-top: 6px; }
.ld-vs-tile em { font-style: normal; font-size: 12.5px; color: var(--text-secondary); }
.ld-vs-tile em span { font-weight: 700; color: var(--text-primary); }
.ld-vs-bar { height: 10px; border-radius: 99px; background: var(--tint-08); overflow: hidden; margin-top: 12px; }
.ld-vs-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; transition: width 1.6s cubic-bezier(.2,.8,.2,1) .5s; }
.ld-vs-tile.bad { opacity: .92; }
.ld-vs-tile.bad .ld-vs-amt { color: var(--text-secondary); }
.ld-vs-tile.bad .ld-vs-bar i { background: linear-gradient(90deg, #64748b, #94a3b8); }
.ld-vs-tile.good { border-color: rgba(74,222,128,.55); background: linear-gradient(160deg, rgba(74,222,128,.12), rgba(99,102,241,.08)); animation: ldGlow 2.8s ease-in-out infinite; }
.ld-vs-tile.good .ld-vs-amt { color: var(--c-good); text-shadow: 0 0 24px rgba(74,222,128,.35); }
.ld-vs-tile.good .ld-vs-bar i { background: linear-gradient(90deg, #22c55e, #4ade80 60%, #a3e635); box-shadow: 0 0 18px rgba(74,222,128,.5); }
.ld-vs-x { align-self: center; width: 34px; height: 34px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: 11px; font-weight: 800; color: #fff; background: var(--ld-grad); box-shadow: 0 6px 18px rgba(99,102,241,.45); }
.ld-face { font-size: 34px; line-height: 1; margin-bottom: 6px; display: inline-block; }
.ld-vs-tile.bad .ld-face { animation: ldShake 3.2s ease-in-out infinite; }
.ld-vs-tile.good .ld-face { animation: ldBounce 2.4s ease-in-out infinite; }
@keyframes ldShake { 0%,86%,100% { transform: none; } 90% { transform: translateX(-3px) rotate(-6deg); } 94% { transform: translateX(3px) rotate(6deg); } 98% { transform: translateX(-2px); } }
@keyframes ldBounce { 0%,100% { transform: translateY(0) scale(1); } 50% { transform: translateY(-5px) scale(1.08); } }
.ld-mult { position: absolute; top: -12px; right: 12px; padding: 6px 13px; border-radius: 999px; font-size: 13px; font-weight: 800; color: #052e16; background: linear-gradient(135deg, #bef264, #4ade80); box-shadow: 0 8px 22px rgba(74,222,128,.5); transform-origin: center; white-space: nowrap; transition: transform .7s cubic-bezier(.3,1.6,.4,1) 1.8s, opacity .3s ease 1.8s; }
.ld-mult b { font-size: 15px; }
.ld-mult::after { content: '✦'; position: absolute; top: -9px; right: -5px; font-size: 14px; color: #fde047; animation: ldTwinkle 1.8s ease-in-out infinite; }
@keyframes ldTwinkle { 0%,100% { transform: scale(.6) rotate(0); opacity: .6; } 50% { transform: scale(1.2) rotate(40deg); opacity: 1; } }
/* bảng chi tiết */
.ld-cmp-rows { display: grid; gap: 8px; padding: 14px; border-radius: 18px; background: var(--tint-03); border: 1px solid var(--border); }
.ld-cmp-rh, .ld-cmp-row { display: grid; grid-template-columns: 1.1fr 1fr 1.2fr; gap: 10px; align-items: center; }
.ld-cmp-rh { font-size: 11px; font-weight: 700; color: var(--text-muted); text-transform: uppercase; letter-spacing: .5px; padding: 0 4px 4px; }
.ld-cmp-rh span:last-child, .ld-cr-amt { text-align: right; }
.ld-cmp-row { padding: 9px 10px; border-radius: 12px; background: var(--tint-04); transition: opacity .55s ease calc(.55s + var(--i) * .15s), transform .55s cubic-bezier(.2,.8,.2,1) calc(.55s + var(--i) * .15s), background .2s; }
.ld-cmp-row:hover { background: var(--tint-08); }
.ld-cr-cat b { display: block; font-size: 13.5px; }
.ld-cr-cat em { font-style: normal; font-size: 11.5px; color: var(--text-secondary); }
.ld-cr-card { display: inline-flex; align-items: center; gap: 8px; }
.ld-cr-card .ld-bank.sm { width: 60px; height: 28px; padding: 4px 6px; }
.ld-rate { font-style: normal; font-size: 11.5px; font-weight: 800; padding: 3px 8px; border-radius: 999px; color: #fff; background: var(--ld-grad); }
.ld-cr-amt { display: flex; flex-direction: column; align-items: flex-end; line-height: 1.25; }
.ld-cr-amt s { font-size: 11.5px; color: var(--text-muted); }
.ld-cr-amt b { font-size: 15px; color: var(--c-good); letter-spacing: -.3px; }
.ld-js .ld-reveal:not(.in) .ld-cmp-row { opacity: 0; transform: translateX(-16px); transition-duration: 0s; transition-delay: 0s; }
.ld-js .ld-reveal:not(.in) .ld-vs-bar i { width: 0; transition: none; }
.ld-js .ld-reveal:not(.in) .ld-mult { transform: scale(0) rotate(-25deg); opacity: 0; transition: none; }
/* chênh lệch */
.ld-gain { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 18px 20px; border-radius: 18px; background: linear-gradient(120deg, rgba(74,222,128,.13), rgba(99,102,241,.12)); border: 1px dashed rgba(74,222,128,.55); }
.ld-gain small { display: block; font-size: 12.5px; color: var(--text-secondary); margin-bottom: 2px; }
.ld-gain strong { font-size: clamp(26px, 3vw, 34px); font-weight: 800; letter-spacing: -1px; line-height: 1.15; }
.ld-gain-yr { text-align: right; }
.ld-gain-yr strong { font-size: clamp(17px, 1.8vw, 21px); color: var(--c-good); letter-spacing: -.3px; }
.ld-note-inline { font-size: 11.5px; line-height: 1.55; color: var(--text-muted); }
/* hạt pháo giấy */
.ld-confetti { position: absolute; width: 8px; height: 12px; border-radius: 2px; pointer-events: none; z-index: 5; }
@media (max-width: 1023px) {
  .ld-why { grid-template-columns: 1fr; }
}
@media (max-width: 767px) {
  .ld-compare { padding: 18px; }
  .ld-vs { grid-template-columns: 1fr; }
  .ld-vs-x { justify-self: center; margin: -4px 0; }
  .ld-vs-tile small { min-height: 0; }
  .ld-mult { right: 10px; }
  .ld-cmp-rh { display: none; }
  .ld-cmp-row { grid-template-columns: 1fr auto; row-gap: 6px; }
  .ld-cr-card { grid-row: 2; grid-column: 1; }
  .ld-cr-amt { grid-row: 1 / span 2; grid-column: 2; }
  .ld-gain-yr { text-align: left; }
}
/* chỉnh: nhãn "gấp N lần" nằm trong ô; cột trái giãn đều theo chiều cao khối so sánh */
.ld-mult { top: 10px; right: 10px; }
.ld-pains { align-content: stretch; grid-auto-rows: 1fr; }
.ld-pain { align-items: center; }
@media (max-width: 1023px) {
  .ld-pains { grid-auto-rows: auto; }
}

/* Nút đổi sáng/tối: trong menu trên màn hình nhỏ (nhường chỗ cho nút ngôn ngữ + ☰) */
.ld-theme-m { display: none; }
@media (max-width: 1099px) { .ld-theme-m { display: inline-flex; grid-column: 1 / -1; } }
@media (max-width: 520px) { .ld-theme-n { display: none; } }

/* ── Bảng giá ── */
.ld-price-toggle { display: flex; width: max-content; margin: -22px auto 38px; }
.ld-price-toggle em, .pl-toggle em { font-style: normal; font-size: 11px; font-weight: 800; margin-left: 6px; padding: 2px 7px; border-radius: 999px; background: rgba(34,197,94,.2); color: var(--c-good); }
.ld-price-toggle button.on em, .pl-toggle button.on em { background: rgba(255,255,255,.25); color: #fff; }
.ld-price-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; max-width: 900px; margin: 0 auto; align-items: stretch; }
.ld-plan { position: relative; display: flex; flex-direction: column; padding: 32px; border-radius: 26px; border: 1px solid var(--border); background: var(--ld-card); }
.ld-plan h3 { font-size: 22px; font-weight: 800; letter-spacing: -.4px; }
.ld-plan-sub { color: var(--text-secondary); font-size: 14.5px; margin: 6px 0 20px; min-height: 44px; }
.ld-plan-price { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin-bottom: 6px; }
.ld-plan-price strong { font-size: 44px; font-weight: 800; letter-spacing: -1.5px; line-height: 1; }
.ld-plan-price s { color: var(--text-muted); font-size: 18px; }
.ld-plan-price span { color: var(--text-secondary); font-size: 15px; }
.ld-plan-save { font-size: 13px; font-weight: 700; color: var(--c-good); min-height: 20px; margin-bottom: 4px; }
.ld-plan:not(.ld-plan-vip) .ld-plan-price { margin-bottom: 26px; }
.ld-plan-list { list-style: none; display: grid; gap: 12px; margin: 18px 0 28px; flex: 1; padding: 0; }
.ld-plan-list li { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; line-height: 1.45; }
.ld-plan-list .ic { width: 18px; height: 18px; flex: none; margin-top: 2px; color: var(--c-good); }
.ld-plan-cta { width: 100%; justify-content: center; }
.ld-plan-vip { border: 2px solid transparent; background: linear-gradient(var(--ld-card), var(--ld-card)) padding-box, linear-gradient(var(--bg-base), var(--bg-base)) padding-box, var(--ld-grad) border-box; box-shadow: 0 24px 60px rgba(99,102,241,.25); }
.ld-plan-badge { position: absolute; top: -14px; left: 50%; transform: translateX(-50%); padding: 5px 14px; border-radius: 999px; font-size: 12px; font-weight: 800; color: #fff; background: var(--ld-grad); white-space: nowrap; }
@media (max-width: 767px) {
  .ld-price-grid { grid-template-columns: 1fr; }
  .ld-plan { padding: 26px 22px; }
  .ld-plan-sub { min-height: 0; }
  .ld-price-toggle { margin-top: -10px; }
}

/* Mục Liên hệ: các thẻ thông tin bên trái giãn đều bằng chiều cao form bên phải */
.ld-contact { align-items: stretch; }
.ld-contact-info { grid-auto-rows: 1fr; }
.ld-contact-info .ld-ci { height: 100%; }
@media (max-width: 1023px) { .ld-contact-info { grid-auto-rows: auto; } .ld-contact-info .ld-ci { height: auto; } }

/* Màn hình đầu: choán đủ một khung nhìn (trừ thanh điều hướng) để không lộ mục "Vì sao cần" bên dưới */
.ld-hero { min-height: calc(100vh - 69px); min-height: calc(100svh - 69px); display: flex; align-items: center; }
.ld-hero > .ld-wrap { width: 100%; }
