:root {
  --bg: #ffffff;
  --bg-soft: #f4f7f6;
  --text: #0f172a;
  --muted: #5b6475;
  --line: #e3e8ee;
  --brand: #0f766e;
  --brand-2: #14b8a6;
  --accent: #ea580c;
  --radius: 14px;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 80px; } /* nhảy tới mục không bị header che */
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
img { max-width: 100%; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 "Inter", "Segoe UI", Roboto, Arial, sans-serif; }
a { color: var(--brand); }
.wrap { max-width: 1100px; margin: 0 auto; padding: 0 20px; }

/* header */
header { position: sticky; top: 0; z-index: 10; background: rgba(255,255,255,.92); backdrop-filter: blur(8px); border-bottom: 1px solid var(--line); }
header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.logo { display: flex; align-items: center; gap: 8px; font-weight: 800; font-size: 20px; color: var(--text); text-decoration: none; }
.logo-mark { width: 30px; height: 30px; display: block; }
nav { display: flex; gap: 20px; margin-left: auto; }
nav a { color: var(--muted); text-decoration: none; font-weight: 500; }
nav a:hover { color: var(--brand); }
.btn { display: inline-block; padding: 11px 20px; border-radius: 10px; background: var(--brand); color: #fff; font-weight: 600; text-decoration: none; border: 0; }
.btn:hover { background: #0d6660; }
.btn.ghost { background: transparent; color: var(--brand); border: 1.5px solid var(--brand); }
/* chọn ngôn ngữ */
.lang { display: flex; flex: none; border: 1px solid var(--line); border-radius: 8px; overflow: hidden; font-size: 13px; font-weight: 700; }
.lang a { display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; color: var(--muted); text-decoration: none; }
.lang img { display: block; width: 18px; height: 12px; object-fit: cover; border-radius: 2px; box-shadow: 0 0 0 1px rgba(15, 23, 42, .12); }
.lang a:hover { color: var(--brand); }
.lang a.on { background: var(--brand); color: #fff; }
.lang a:focus-visible, nav a:focus-visible, .btn:focus-visible, .menu-btn:focus-visible { outline: 2px solid var(--brand); outline-offset: 2px; }
header .btn { white-space: nowrap; }

/* nút ☰ (chỉ hiện trên màn hình nhỏ) */
.menu-btn { display: none; flex: none; width: 40px; height: 40px; padding: 0; border: 1px solid var(--line); border-radius: 10px; background: #fff; cursor: pointer; place-items: center; }
.menu-btn span, .menu-btn span::before, .menu-btn span::after { display: block; width: 18px; height: 2px; border-radius: 2px; background: var(--text); transition: transform .2s, background .2s; }
.menu-btn span { position: relative; }
.menu-btn span::before, .menu-btn span::after { content: ""; position: absolute; left: 0; }
.menu-btn span::before { top: -6px; } .menu-btn span::after { top: 6px; }
header.open .menu-btn span { background: transparent; }
header.open .menu-btn span::before { transform: translateY(6px) rotate(45deg); }
header.open .menu-btn span::after { transform: translateY(-6px) rotate(-45deg); }
@media (prefers-reduced-motion: reduce) { .menu-btn span, .menu-btn span::before, .menu-btn span::after { transition: none; } }

@media (max-width: 960px) {
  header .wrap { gap: 10px; }
  .lang { margin-left: auto; }
  .menu-btn { display: grid; }
  header .btn { padding: 9px 14px; font-size: 14px; }
  nav { display: none; position: absolute; top: 100%; left: 0; right: 0; margin: 0; flex-direction: column; gap: 0;
    padding: 6px 20px 14px; background: #fff; border-bottom: 1px solid var(--line); box-shadow: 0 16px 30px -18px rgba(15, 23, 42, .35); }
  header.open nav { display: flex; }
  nav a { padding: 12px 4px; border-bottom: 1px solid var(--line); font-size: 16px; color: var(--text); }
  nav a:last-child { border-bottom: 0; }
}
@media (max-width: 440px) {
  header .btn { display: none; }
  .logo { font-size: 18px; }
  .lang a { padding: 5px 8px; gap: 5px; }
}

/* hero */
.hero { padding: 72px 0 56px; background: radial-gradient(1000px 400px at 80% 0%, #ccfbf1 0%, transparent 60%); }
.hero .wrap { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 48px; align-items: center; }
.hero h1 { font-size: clamp(32px, 5vw, 50px); line-height: 1.12; margin: 0 0 18px; letter-spacing: -0.02em; }
.hero h1 span { color: var(--brand); }
.hero p { font-size: 18px; color: var(--muted); margin: 0 0 28px; }
.hero .cta { display: flex; gap: 12px; flex-wrap: wrap; }
@media (max-width: 860px) { .hero .wrap { grid-template-columns: minmax(0, 1fr); } }
.hero-solo .wrap { grid-template-columns: 1fr; max-width: 820px; text-align: center; }
.hero-solo .cta { justify-content: center; }

/* demo card (mô phỏng bảng thống kê của extension) */
.demo { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 20px 50px rgba(15,23,42,.10); padding: 18px; max-width: 420px; justify-self: center; width: 100%; }
.demo-img { height: 150px; border-radius: 10px; background: linear-gradient(135deg, #fde68a, #fca5a5 55%, #a5b4fc); display: grid; place-items: center; font-weight: 800; font-size: 26px; color: #fff; text-shadow: 0 2px 8px rgba(0,0,0,.2); }
.demo-title { margin: 10px 0 12px; font-weight: 600; font-size: 14px; }
.demo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 6px; }
.demo-grid div { background: var(--bg-soft); border-radius: 8px; padding: 6px; text-align: center; }
.demo-grid small { display: block; font-size: 11px; color: var(--muted); }
.demo-grid b { font-size: 15px; }
.demo-grid .hot b { color: var(--accent); }
.demo-tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 12px; }
.demo-tags span { font-size: 12px; border: 1px solid var(--line); border-radius: 20px; padding: 2px 9px; color: var(--muted); }

/* sections */
section { padding: 72px 0; }
section.soft { background: var(--bg-soft); }
.section-head { text-align: center; max-width: 640px; margin: 0 auto 44px; }
.section-head h2 { font-size: clamp(26px, 3.5vw, 36px); margin: 0 0 10px; letter-spacing: -0.01em; }
.section-head p { color: var(--muted); margin: 0; }
.cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 20px; }
.card { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.card .ico { width: 42px; height: 42px; border-radius: 10px; background: #ccfbf1; color: var(--brand); display: grid; place-items: center; font-size: 20px; margin-bottom: 14px; }
.card h3 { margin: 0 0 8px; font-size: 18px; }
.card p { margin: 0; color: var(--muted); font-size: 15px; }

.steps { counter-reset: s; display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 20px; }
.step { position: relative; padding: 24px 24px 24px 72px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); }
.step::before { counter-increment: s; content: counter(s); position: absolute; left: 22px; top: 22px; width: 34px; height: 34px; border-radius: 50%; background: var(--brand); color: #fff; font-weight: 700; display: grid; place-items: center; }
.step h3 { margin: 0 0 6px; font-size: 17px; }
.step p { margin: 0; color: var(--muted); font-size: 15px; }

.faq { max-width: 760px; margin: 0 auto; }
.faq details { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 16px 20px; margin-bottom: 12px; }
.faq summary { cursor: pointer; font-weight: 600; }
.faq details p { color: var(--muted); margin: 10px 0 0; }

.cta-band { text-align: center; background: linear-gradient(135deg, var(--brand), #115e59); color: #fff; border-radius: 20px; padding: 48px 24px; }
.cta-band h2 { margin: 0 0 10px; font-size: 30px; }
.cta-band p { margin: 0 0 24px; opacity: .9; }
.cta-band .btn { background: #fff; color: var(--brand); }

/* legal pages */
.legal { max-width: 780px; margin: 0 auto; padding: 56px 20px 72px; }
.legal h1 { font-size: 36px; margin: 0 0 6px; }
.legal .updated { color: var(--muted); margin: 0 0 32px; }
.legal h2 { font-size: 21px; margin: 32px 0 8px; }
.legal p, .legal li { color: #334155; }

/* footer */
footer { border-top: 1px solid var(--line); padding: 40px 0 28px; color: var(--muted); font-size: 14px; }
footer .cols { display: flex; flex-wrap: wrap; gap: 40px; justify-content: space-between; }
footer h4 { margin: 0 0 10px; color: var(--text); font-size: 15px; }
footer ul { list-style: none; margin: 0; padding: 0; }
footer li { margin: 6px 0; }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--brand); }
.disclaimer { margin-top: 28px; padding-top: 18px; border-top: 1px solid var(--line); font-size: 13px; }

/* ===== landing (bố cục kiểu trang giới thiệu extension) ===== */
.eyebrow { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; color: var(--brand); background: #ccfbf1; border-radius: 20px; padding: 4px 12px; margin-bottom: 16px; }
.eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--brand-2); }
.hero .btn.soon { background: var(--text); }
.hero .btn.soon:hover { background: #1e293b; }
.hero-points { display: flex; flex-wrap: wrap; gap: 8px 18px; margin: 22px 0 0; padding: 0; list-style: none; font-size: 14px; color: var(--muted); }
.hero-points li::before { content: "✓"; color: var(--brand); font-weight: 800; margin-right: 6px; }

/* cửa sổ trình duyệt mô phỏng */
.browser { background: #fff; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 24px 60px rgba(15,23,42,.14); overflow: hidden; width: 100%; max-width: 520px; justify-self: center; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 12px; background: #f8fafc; border-bottom: 1px solid var(--line); }
.browser-bar i { width: 10px; height: 10px; border-radius: 50%; background: #e2e8f0; }
.browser-bar span { margin-left: 8px; flex: 1; height: 20px; border-radius: 6px; background: #fff; border: 1px solid var(--line); font-size: 11px; color: var(--muted); padding: 1px 8px; overflow: hidden; white-space: nowrap; }
.browser-body { padding: 14px; }
.sortbar { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 12px; font-size: 12px; }
.sortbar b { font-weight: 600; color: var(--muted); align-self: center; margin-right: 2px; }
.sortbar span { border: 1px solid var(--line); border-radius: 20px; padding: 2px 10px; color: var(--muted); }
.sortbar span.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.pgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.pcard { border: 1px solid var(--line); border-radius: 10px; overflow: hidden; font-size: 11px; position: relative; }
.pcard.hl { border-color: #f97316; box-shadow: 0 0 0 2px rgba(249,115,22,.28); }
.pimg { height: 68px; }
.pimg.a { background: linear-gradient(135deg, #fde68a, #fca5a5); }
.pimg.b { background: linear-gradient(135deg, #bfdbfe, #c7d2fe); }
.pimg.c { background: linear-gradient(135deg, #bbf7d0, #99f6e4); }
.pstats { padding: 6px 7px; display: grid; grid-template-columns: 1fr 1fr; gap: 2px 6px; color: var(--muted); }
.pstats b { color: var(--text); }
.pbadge { position: absolute; top: 6px; left: 6px; font-size: 10px; font-weight: 800; background: #fff7ed; color: #c2410c; border-radius: 8px; padding: 1px 6px; }

/* thanh thông báo */
.notice { padding: 0; }
.notice .box { display: flex; gap: 14px; align-items: flex-start; background: #fff7ed; border: 1px solid #fed7aa; border-radius: var(--radius); padding: 16px 20px; color: #7c2d12; font-size: 15px; }
.notice .box strong { color: #9a3412; }
.notice .box .i { flex: none; width: 28px; height: 28px; border-radius: 50%; background: #fdba74; color: #7c2d12; display: grid; place-items: center; font-weight: 800; }

/* hàng tính năng xen kẽ */
.feat { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 56px; align-items: center; padding: 40px 0; }
.feat + .feat { border-top: 1px solid var(--line); }
.feat:nth-child(even) .feat-text { order: 2; }
.feat-num { display: inline-block; font-size: 13px; font-weight: 700; color: var(--brand); background: #ccfbf1; border-radius: 20px; padding: 2px 10px; margin-bottom: 10px; }
.feat h3 { font-size: clamp(22px, 2.6vw, 28px); margin: 0 0 12px; letter-spacing: -0.01em; }
.feat p { color: var(--muted); margin: 0 0 14px; }
.feat ul { margin: 0; padding: 0; list-style: none; }
.feat li { margin: 8px 0; padding-left: 26px; position: relative; color: #334155; }
.feat li::before { content: "✓"; position: absolute; left: 0; top: 0; width: 18px; height: 18px; border-radius: 50%; background: #ccfbf1; color: var(--brand); font-size: 11px; font-weight: 800; display: grid; place-items: center; margin-top: 3px; }
.visual { background: var(--bg-soft); border: 1px solid var(--line); border-radius: var(--radius); padding: 22px; }
.mini { background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 12px; }
.mini + .mini { margin-top: 10px; }
.mini.hl { border-color: #f97316; box-shadow: 0 0 0 2px rgba(249,115,22,.28); background: #fffaf5; }
.mini-title { font-weight: 600; font-size: 14px; margin-bottom: 6px; display: flex; justify-content: space-between; gap: 8px; }
.mini-row { display: flex; justify-content: space-between; font-size: 13px; padding: 3px 0; color: var(--muted); }
.mini-row b { color: var(--text); }
.pill { font-size: 11px; font-weight: 700; padding: 1px 8px; border-radius: 10px; background: #fef3c7; color: #92400e; white-space: nowrap; }
.pill.up { background: #dcfce7; color: #166534; }
.tbl { width: 100%; border-collapse: collapse; font-size: 13px; background: #fff; border-radius: 10px; overflow: hidden; }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); text-align: left; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl th { background: #f8fafc; color: var(--muted); font-size: 12px; font-weight: 600; }
.tbl .n { text-align: right; }
.tbl .hot { color: var(--accent); font-weight: 700; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 90px; padding: 8px 4px 0; }
.bars i { flex: 1; border-radius: 4px 4px 0 0; background: #99f6e4; }
.bars i.on { background: var(--brand); }
@media (max-width: 860px) { .feat { grid-template-columns: minmax(0, 1fr); gap: 24px; } .feat:nth-child(even) .feat-text { order: 0; } }

/* thẻ miễn phí bản beta (thay cho bảng giá) */
.beta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 32px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 36px; box-shadow: 0 20px 50px rgba(15,23,42,.06); }
.beta .price { font-size: 44px; font-weight: 800; letter-spacing: -0.02em; margin: 6px 0; }
.beta .price small { font-size: 16px; font-weight: 600; color: var(--muted); }
.beta p { color: var(--muted); margin: 0 0 20px; }
.beta ul { margin: 0; padding: 0; list-style: none; display: grid; gap: 10px; }
.beta li { padding-left: 26px; position: relative; }
.beta li::before { content: "✓"; position: absolute; left: 0; color: var(--brand); font-weight: 800; }
@media (max-width: 760px) { .beta { grid-template-columns: minmax(0, 1fr); padding: 26px; } }
@media (max-width: 480px) { .pgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pgrid .pcard:nth-child(3) { display: none; } }

/* header không còn nút chọn ngôn ngữ: đẩy nút sang phải trên màn hình nhỏ */
@media (max-width: 960px) { header .btn { margin-left: auto; } }
@media (max-width: 440px) { .menu-btn { margin-left: auto; } }
