/* Heno – heno.live. Mobile-first, một tệp CSS, không phụ thuộc thư viện. */
:root {
  --accent: #1554c0;
  --accent-dark: #0d3a8a;
  --orange: #ff8a1f;
  --ink: #111c33;
  --muted: #54607a;
  --line: #e3e8f2;
  --bg: #ffffff;
  --bg-alt: #f5f7fc;
  --soft: #eaf1fe;
  --radius: 18px;
  --shadow: 0 1px 2px rgba(13, 58, 138, .06), 0 8px 24px rgba(13, 58, 138, .07);
  --font: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 76px; }
body { margin: 0; font-family: var(--font); font-size: 16px; line-height: 1.6; color: var(--ink); background: var(--bg); }
img, svg { max-width: 100%; vertical-align: middle; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 3px; }
h1, h2, h3 { line-height: 1.25; margin: 0 0 .5em; letter-spacing: -.01em; }
p { margin: 0 0 1em; }
.wrap { width: 100%; max-width: 1140px; margin: 0 auto; padding: 0 16px; }
.narrow { max-width: 820px; }
.center { text-align: center; }
.muted { color: var(--muted); font-size: .9rem; }
.skip { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 12px; z-index: 99; border-radius: 8px; }
.skip:focus { left: 8px; }
:focus-visible { outline: 3px solid var(--orange); outline-offset: 2px; border-radius: 6px; }

/* nút */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 48px; padding: 0 22px;
  border-radius: 999px; background: var(--accent); color: #fff; font-weight: 600; text-decoration: none; border: 2px solid var(--accent);
  transition: background .15s, transform .15s; }
.btn:hover { background: var(--accent-dark); border-color: var(--accent-dark); }
.btn:active { transform: translateY(1px); }
.btn-sm { min-height: 40px; padding: 0 16px; font-size: .92rem; }
.btn-ghost { background: transparent; color: var(--accent); }
.btn-ghost:hover { background: var(--soft); color: var(--accent-dark); }
.btn-light { background: #fff; color: var(--accent-dark); border-color: #fff; }
.btn-light:hover { background: #fff3e6; border-color: #fff3e6; }
.btn-store { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 6px 18px 6px 14px; border-radius: 12px;
  background: #111; color: #fff; text-decoration: none; line-height: 1.1; font-weight: 600; font-size: 1.05rem; }
.btn-store small { display: block; font-size: .7rem; font-weight: 400; opacity: .85; }
.btn-store:hover { background: #333; }
.btn-store.sm { min-height: 42px; padding: 4px 14px 4px 10px; font-size: .9rem; border-radius: 10px; }
.btn-store.is-soon { background: #eef0f4; color: #6b7387; cursor: default; }
.lnk { display: inline-flex; align-items: center; gap: 4px; font-weight: 600; text-decoration: none; }
.lnk:hover { text-decoration: underline; }

/* đầu trang */
.hdr { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(10px);
  -webkit-backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.hdr-in { display: flex; align-items: center; gap: 16px; min-height: 64px; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 800; font-size: 1.35rem; color: var(--accent-dark); text-decoration: none; }
.brand svg { width: 36px; height: 36px; flex: none; }
.nav { display: none; gap: 4px; margin-left: auto; }
.nav a { padding: 8px 12px; border-radius: 999px; color: var(--ink); text-decoration: none; font-weight: 500; font-size: .95rem; }
.nav a:hover { background: var(--soft); color: var(--accent-dark); }
.hdr .btn { margin-left: auto; }

/* hero */
.hero { position: relative; overflow: hidden; padding: 40px 0 48px;
  background: radial-gradient(600px 360px at 95% 0%, #dfe9fd 0, transparent 70%), radial-gradient(360px 240px at 0% 85%, #fff2e4 0, transparent 70%); }
.hero-in { display: grid; gap: 36px; align-items: center; }
.eyebrow { display: inline-block; margin-bottom: 12px; font-size: .85rem; font-weight: 600; color: var(--accent); background: var(--soft);
  padding: 4px 12px; border-radius: 999px; }
.hero h1 { font-size: clamp(2rem, 7.2vw, 3.4rem); font-weight: 800; }
.hl { color: var(--accent); }
.lead { font-size: 1.08rem; color: var(--muted); max-width: 40em; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 22px 0 18px; }
.hero-tick { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 18px; color: var(--muted); font-size: .95rem; }
.hero-tick li { display: inline-flex; align-items: center; gap: 6px; }
.hero-tick svg { color: #1f8a70; }
.hero-art { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; max-width: 420px; margin: 0 auto; }
.hero-art img { width: 100%; height: auto; aspect-ratio: 1; border-radius: 22%; box-shadow: 0 10px 24px rgba(13, 58, 138, .16); }
.hero-art img:nth-child(odd) { transform: translateY(10px); }

/* khối */
.sec { padding: 56px 0; }
.sec-alt { background: var(--bg-alt); }
.sec-h { font-size: clamp(1.5rem, 4.8vw, 2.15rem); font-weight: 800; color: var(--ink); }
.sec-sub { color: var(--muted); max-width: 46em; margin-bottom: 28px; }
.more { margin-top: 24px; }
.more a { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; }

/* thẻ app */
.app-grid { display: grid; gap: 16px; }
.app-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  padding: 18px; box-shadow: var(--shadow); border-top: 4px solid var(--c, var(--accent)); }
.app-card-top { display: flex; gap: 14px; align-items: center; text-decoration: none; color: inherit; margin-bottom: 10px; }
.app-card-top img { width: 64px; height: 64px; border-radius: 22%; flex: none; }
.app-card h3 { font-size: 1.15rem; margin: 0 0 2px; color: var(--ink); }
.app-card-top:hover h3 { color: var(--accent); }
.app-tag { margin: 0; font-size: .88rem; color: var(--muted); line-height: 1.4; }
.app-card > p { color: #33405c; font-size: .96rem; flex: 1; }
.app-card-act { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; }

/* chặng */
.chang { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; counter-reset: c; }
.chang li { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.chang li::before { counter-increment: c; content: counter(c); width: 32px; height: 32px; margin-bottom: 12px;
  border-radius: 50%; background: var(--orange); color: #fff; font-weight: 700; display: grid; place-items: center; }
.chang h3 { font-size: 1.1rem; margin-bottom: 4px; }
.chang p { color: var(--muted); margin-bottom: 10px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; }
.chips a { padding: 4px 12px; border-radius: 999px; background: var(--soft); text-decoration: none; font-weight: 600; font-size: .88rem; }
.chips a:hover { background: var(--accent); color: #fff; }

/* web */
.web-grid { display: grid; gap: 12px; }
.web-card { display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: var(--radius); border: 1px solid var(--line);
  background: #fff; text-decoration: none; color: var(--ink); transition: border-color .15s, box-shadow .15s; }
.web-card:hover { border-color: var(--accent); box-shadow: var(--shadow); }
.web-card strong { display: block; font-size: 1.05rem; margin-bottom: 2px; }
.web-card span span { color: var(--muted); font-size: .93rem; line-height: 1.5; }
.web-ico { flex: none; width: 44px; height: 44px; border-radius: 12px; background: #fff3e6; color: #c25e00; display: grid; place-items: center; }

/* vì sao */
.visao { list-style: none; padding: 0; margin: 24px 0 0; display: grid; gap: 14px; }
.visao li { background: #fff; border-radius: var(--radius); padding: 20px; border: 1px solid var(--line); }
.vs-ico { width: 44px; height: 44px; border-radius: 12px; background: var(--soft); color: var(--accent); display: grid; place-items: center; margin-bottom: 12px; }
.visao h3 { font-size: 1.08rem; margin-bottom: 4px; }
.visao p { color: var(--muted); margin: 0; font-size: .96rem; }

/* hỏi đáp */
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; padding: 18px 36px 18px 0; font-weight: 600; font-size: 1.04rem; position: relative; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 6px; top: 26px; width: 10px; height: 10px; border-right: 2px solid var(--accent);
  border-bottom: 2px solid var(--accent); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(-135deg); top: 30px; }
.faq details p { color: #33405c; margin: 0 0 18px; }

/* dải kêu gọi */
.cta-band { background: linear-gradient(120deg, var(--accent), var(--accent-dark)); color: #fff; }
.cta-in { display: grid; gap: 18px; align-items: center; }
.cta-band h2 { font-size: 1.5rem; margin-bottom: 4px; }
.cta-band p { margin: 0; opacity: .9; }
.cta-band .btn { word-break: break-all; }

/* trang app */
.crumb { display: flex; gap: 8px; padding-top: 16px; font-size: .9rem; color: var(--muted); }
.crumb a { text-decoration: none; }
.app-hero { padding: 24px 0 40px; background: radial-gradient(560px 320px at 100% 0, color-mix(in srgb, var(--c) 16%, transparent) 0, transparent 70%); }
.app-hero-in { display: grid; gap: 20px; }
.app-ico-lg { width: 96px; height: 96px; border-radius: 22%; box-shadow: 0 12px 28px rgba(13, 58, 138, .18); }
.app-hero h1 { font-size: clamp(1.75rem, 6vw, 2.8rem); font-weight: 800; }
.app-hero .eyebrow { color: var(--c); background: color-mix(in srgb, var(--c) 12%, #fff); }
.note { font-size: .92rem; color: var(--muted); background: #fff8ef; border: 1px solid #ffe0bf; padding: 10px 14px; border-radius: 12px; max-width: 40em; }
.tn { list-style: none; padding: 0; margin: 20px 0 0; display: grid; gap: 4px; }
.tn li { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.tn-ico { flex: none; width: 34px; height: 34px; border-radius: 50%; background: #e3f4ee; color: #1f8a70; display: grid; place-items: center; }
.tn h3 { font-size: 1.06rem; margin-bottom: 2px; }
.tn p { margin: 0; color: #33405c; }

/* 404 */
.big404 { font-size: 5rem; font-weight: 800; color: var(--soft); -webkit-text-stroke: 2px var(--accent); margin: 0; line-height: 1; }

/* chân trang */
.ftr { background: #0b1b3d; color: #c7d2ea; padding: 48px 0 24px; font-size: .95rem; }
.ftr a { color: #fff; }
.ftr .brand { color: #fff; margin-bottom: 12px; }
.ftr-grid { display: grid; gap: 28px; }
.ftr-brand p { margin-bottom: 8px; }
.ftr .muted { color: #8f9bb8; }
.ftr-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: #8f9bb8; margin-bottom: 10px; }
.ftr ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.ftr ul a { color: #dde5f5; text-decoration: none; }
.ftr ul a:hover { color: #fff; text-decoration: underline; }
.ftr-bot { margin-top: 32px; padding-top: 18px; background: linear-gradient(#1f3260, #1f3260) no-repeat 16px 0 / calc(100% - 32px) 1px; color: #8f9bb8; font-size: .85rem; }

@media (max-width: 639px) {
  .visao li { display: grid; grid-template-columns: 44px 1fr; column-gap: 14px; padding: 16px; }
  .visao li > span { grid-row: span 2; margin-bottom: 0; }
  .visao h3 { margin-bottom: 2px; }
}
@media (min-width: 640px) {
  .app-grid, .web-grid, .visao { grid-template-columns: repeat(2, 1fr); }
  .chang { grid-template-columns: repeat(2, 1fr); }
  .app-hero-in { grid-template-columns: auto 1fr; align-items: start; gap: 32px; }
  .app-ico-lg { width: 120px; height: 120px; }
  .cta-in { grid-template-columns: 1fr auto; }
}
@media (min-width: 900px) {
  .nav { display: flex; }
  .hdr .btn { margin-left: 8px; }
  .hero { padding: 72px 0 80px; }
  .hero-in { grid-template-columns: 1.15fr 1fr; gap: 56px; }
  .hero-art { max-width: 460px; gap: 16px; }
  .sec { padding: 80px 0; }
  .app-grid { grid-template-columns: repeat(3, 1fr); }
  .app-grid.four, #ung-dung .app-grid { grid-template-columns: repeat(4, 1fr); }
  .visao { grid-template-columns: repeat(3, 1fr); }
  .chang { grid-template-columns: repeat(4, 1fr); }
  .ftr-grid { grid-template-columns: 2fr 1fr 1fr; }
}
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } * { transition: none !important; } }
