/* tier-a.css — trang bán hàng "Tier A" (57 mã bám chỉ số hải quan). Dùng
   chung token màu với style.css (:root đã định nghĩa ở đó, file này PHẢI
   nạp SAU style.css). 4 màn: hero / bằng chứng / lưới mã / độ sớm — mỗi
   màn 1 layout riêng, không lặp khuôn. */

.wrap { max-width: 1180px; margin: 0 auto; padding: 0 22px; }
/* .tb-nav dùng chung — định nghĩa ở style.css (nạp trước file này). */

/* ===== Màn 1 — Hero ===== */
.hero-a { padding: 64px 0 44px; position: relative; }
.hero-a .eyebrow { font-size: 12px; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--accent); }
.hero-a h1 { font-size: 44px; font-weight: 800; letter-spacing: -1.3px; line-height: 1.08; margin: 14px 0 16px; max-width: 20ch; }
.hero-a h1 .g { background: var(--grad-accent); -webkit-background-clip: text; background-clip: text; color: transparent; }
.hero-a .lead { font-size: 16px; color: var(--text-2); max-width: 62ch; line-height: 1.65; }

#hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-top: 32px; }
.hstat { background: var(--surface-2); border: 1px solid var(--border); border-radius: 14px; padding: 18px 16px; }
.hstat-n { font-size: 30px; font-weight: 800; letter-spacing: -0.6px; color: var(--accent); }
.hstat-l { font-size: 12px; color: var(--text-3); margin-top: 4px; }

/* ===== Màn 2 — Bằng chứng (5 chart nhóm) ===== */
.sec-evidence { padding: 40px 0; border-top: 1px solid var(--border-soft); }
.sec-evidence h2 { font-size: 27px; font-weight: 800; letter-spacing: -0.6px; }
.sec-evidence .sub { color: var(--text-2); font-size: 14.5px; max-width: 70ch; margin-top: 6px; }
#evidence-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; margin-top: 26px; }
.chart-panel { background: var(--surface); border: 1px solid var(--border-soft); border-radius: 16px; padding: 18px 18px 14px; }
.chart-panel-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 10px; }
.chart-panel-head h3 { font-size: 16px; font-weight: 700; }
.r-badge { font-size: 11px; font-weight: 700; color: var(--gold); border: 1px solid var(--gold-deep); border-radius: 999px; padding: 3px 10px; white-space: nowrap; }
.chart-svg { width: 100%; }

/* ===== Màn 3 — 57 mã Tier A (card grid theo nhóm) ===== */
.sec-tickers { padding: 44px 0; background: var(--surface); border-top: 1px solid var(--border-soft); border-bottom: 1px solid var(--border-soft); }
.sec-tickers h2 { font-size: 27px; font-weight: 800; letter-spacing: -0.6px; }
.sec-tickers .sub { color: var(--text-2); font-size: 14.5px; max-width: 70ch; margin-top: 6px; }
.ticker-group { margin-top: 30px; }
.ticker-group:first-child { margin-top: 24px; }
.ticker-group-h { font-size: 15px; font-weight: 700; color: var(--text-2); display: flex; align-items: center; gap: 10px; margin-bottom: 12px; }
.tg-count { font-size: 11px; font-weight: 600; color: var(--text-3); background: var(--surface-2); border: 1px solid var(--border); border-radius: 999px; padding: 2px 9px; }
.ticker-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(168px, 1fr)); gap: 12px; }
.ticker-card { text-align: left; font-family: inherit; color: inherit; background: var(--surface-2); border: 1px solid var(--border); border-radius: 13px; padding: 13px 14px; cursor: pointer; transition: 0.16s; }
.ticker-card:hover { border-color: var(--accent-2); transform: translateY(-2px); }
.tc-top { display: flex; justify-content: space-between; align-items: baseline; }
.tc-ticker { font-size: 16px; font-weight: 800; letter-spacing: -0.2px; }
.tc-n { font-size: 10.5px; color: var(--text-3); }
.tc-name { font-size: 11.5px; color: var(--text-2); margin: 4px 0 10px; line-height: 1.35; min-height: 30px; overflow: hidden; }
.tc-rbar { height: 6px; border-radius: 999px; background: var(--surface-3); overflow: hidden; }
.tc-rbar-fill { height: 100%; background: var(--grad-accent); border-radius: 999px; }
.tc-rval { font-size: 11px; color: var(--text-3); margin-top: 5px; font-weight: 600; }

/* ===== Modal chi tiết mã ===== */
.modal { position: fixed; inset: 0; z-index: 200; display: none; align-items: center; justify-content: center; background: rgba(3, 8, 16, 0.72); backdrop-filter: blur(4px); padding: 20px; }
.modal.on { display: flex; }
.modal-box { background: var(--surface); border: 1px solid var(--border); border-radius: 18px; padding: 24px; max-width: 620px; width: 100%; max-height: 86vh; overflow-y: auto; box-shadow: var(--shadow); position: relative; }
.modal-close { position: absolute; top: 14px; right: 14px; background: none; border: none; color: var(--text-3); font-size: 20px; cursor: pointer; line-height: 1; }
.modal-close:hover { color: var(--text); }
.modal-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; padding-right: 24px; }
.modal-head h3 { font-size: 20px; font-weight: 800; }
.modal-name { font-size: 13px; font-weight: 500; color: var(--text-2); margin-left: 8px; }
.modal-axis-note { display: flex; flex-direction: column; gap: 4px; font-size: 11.5px; color: var(--text-3); margin-top: 8px; }
.modal-axis-note .dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; margin-right: 6px; }
.modal-axis-note .dot.gold { background: var(--gold); }
.modal-axis-note .dot.teal { background: var(--accent); }
.modal-evidence { margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--border-soft); font-size: 12.5px; color: var(--text-2); font-style: italic; }

/* ===== Màn 4 — Độ sớm ===== */
.sec-early { padding: 46px 0 60px; }
.sec-early h2 { font-size: 27px; font-weight: 800; letter-spacing: -0.6px; }
.sec-early .sub { color: var(--text-2); font-size: 14.5px; max-width: 70ch; margin-top: 6px; }
.early-panel { margin-top: 24px; background: linear-gradient(120deg, color-mix(in srgb, var(--accent) 8%, var(--surface)), var(--surface)); border: 1px solid var(--accent-2); border-radius: 16px; padding: 22px 24px; }
.early-panel h3 { font-size: 15px; font-weight: 700; color: var(--accent); margin-bottom: 12px; }
#early-signal-caption { font-size: 13px; color: var(--text-2); margin-top: 12px; line-height: 1.6; }
.timeline { display: flex; gap: 18px; flex-wrap: wrap; margin-top: 14px; font-size: 12px; }
.timeline .tl-item { display: flex; align-items: center; gap: 7px; color: var(--text-2); }
.timeline .tl-item b { color: var(--text); }
.timeline .dot2 { width: 8px; height: 8px; border-radius: 50%; flex: none; }
.timeline .dot2.slow { background: var(--text-3); }
.timeline .dot2.fast { background: var(--accent); }

.methodology { margin-top: 26px; font-size: 13px; color: var(--text-2); line-height: 1.7; max-width: 76ch; }
.methodology h3 { font-size: 13.5px; font-weight: 700; color: var(--text); margin-bottom: 6px; }

.limits { margin-top: 20px; list-style: none; display: flex; flex-direction: column; gap: 8px; max-width: 76ch; }
.limits li { font-size: 12.5px; color: var(--text-2); display: flex; gap: 8px; line-height: 1.55; }
.limits li::before { content: "—"; flex: none; color: var(--text-3); }

.legal-note { margin-top: 22px; padding: 13px 16px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-soft); border-left: 3px solid var(--gold-deep); font-size: 12.5px; color: var(--text-2); line-height: 1.6; }
.legal-note b { color: var(--gold); }

@media (max-width: 860px) {
  .hero-a h1 { font-size: 32px; }
  #hero-stats { grid-template-columns: repeat(2, 1fr); }
  #evidence-grid { grid-template-columns: 1fr; }
  .ticker-cards { grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
}
