/* VTAI — website công ty.
   Bố cục: lưới 12 cột, chữ canh trái, đường kẻ 1px phân tầng, một màu nhấn (xanh logo).
   Ảnh giao diện sản phẩm vẽ bằng HTML, phẳng, viền 1px, gần như không đổ bóng. */

:root {
  --bg: #f7f8fa;
  --surface: #ffffff;
  --sunk: #eef1f6;
  --ink: #0a1f4e;
  --ink-2: #3f4a63;
  --muted: #6b7489;
  --line: #e3e7ee;
  --line-2: #d2d8e2;
  --accent: #0066f0;
  --accent-deep: #003aa9;
  --accent-soft: #eaf2ff;
  --ok: #0e7a4f;
  --ok-soft: #e6f5ee;
  --warn: #a15c00;
  --navy: #0a1f4e;
  --navy-2: #13295c;
  --cyan: #00d9fe;
  --blue-tint: #e6f0ff;
  --cyan-tint: #dff6fb;
  --amber: #f59e0b;
  --amber-tint: #fff1d6;
  --green-tint: #e2f5ea;
  /* dải màu của logo: xanh đậm → xanh → cyan */
  --grad: linear-gradient(135deg, #003aa9 0%, #0066f0 52%, #00c8f5 100%);

  --font: "Be Vietnam Pro", "Segoe UI", system-ui, -apple-system, Arial, sans-serif;
  --wrap: 1200px;
  --gut: clamp(20px, 4vw, 40px);
  --sec: clamp(72px, 9vw, 128px);
  --r: 12px;
  --ease: cubic-bezier(.2, .7, .2, 1);
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: 80px; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 400 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: clip;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
h1, h2, h3 { font-weight: 600; text-wrap: balance; }
button { font: inherit; color: inherit; }
address { font-style: normal; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gut) * 2); margin-inline: auto; padding-inline: var(--gut); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; flex: none; }

.skip { position: absolute; left: var(--gut); top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: 10px 14px; border-radius: 8px; }
.skip:focus { top: 12px; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 44px; padding: 0 18px; border-radius: 8px; border: 1px solid transparent;
  font-weight: 500; font-size: 15px; white-space: nowrap; cursor: pointer;
  transition: background-color .2s, border-color .2s, color .2s, transform .15s;
}
.btn:active { transform: translateY(1px); }
.btn .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.btn:hover .ico { transform: translateX(3px); }
.btn-primary { background: var(--accent); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); }
.btn-line { background: var(--surface); border-color: var(--line-2); color: var(--ink); }
.btn-line:hover { border-color: var(--ink); }
.btn-sm { height: 38px; padding: 0 14px; font-size: 14px; }
.link { display: inline-flex; align-items: center; gap: 6px; font-weight: 500; color: var(--accent); }
.link .ico { width: 16px; height: 16px; transition: transform .25s var(--ease); }
.link:hover .ico { transform: translateX(3px); }

/* Nav */
.nav { position: sticky; top: 0; z-index: 50; background: rgba(247, 248, 250, .86); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); border-bottom: 1px solid transparent; transition: border-color .25s; }
.nav.is-stuck { border-bottom-color: var(--line); }
.nav-in { display: flex; align-items: center; gap: 32px; height: 68px; }
.logo { display: flex; align-items: center; gap: 9px; }
.logo img:first-child { width: 46px; height: 28px; }
.logo img + img { width: 66px; height: 13px; }
.nav-links { display: flex; gap: 28px; margin-left: auto; font-size: 15px; color: var(--ink-2); }
.nav-links a { padding: 6px 0; transition: color .2s; }
.nav-links a:hover { color: var(--ink); }
.nav-cta { margin-left: 8px; }

/* Shared section heads */
.sec { padding-block: var(--sec); }
.sec + .sec { padding-top: 0; }
.head { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px 48px; align-items: end; margin-bottom: clamp(36px, 5vw, 56px); }
.head h2, .h2 { font-size: clamp(2rem, 3.8vw, 3.25rem); line-height: 1.08; letter-spacing: -0.035em; }
.head p { color: var(--ink-2); font-size: 17px; max-width: 48ch; }
.head .link { margin-top: 14px; }
.kicker { font-size: 14px; font-weight: 500; color: var(--accent); margin-bottom: 16px; }

/* Hero */
.hero { padding-top: clamp(48px, 8vw, 104px); padding-bottom: var(--sec);
  background:
    radial-gradient(46% 420px at 100% 0%, var(--cyan-tint) 0%, rgba(223, 246, 251, 0) 70%),
    radial-gradient(40% 380px at 0% 8%, var(--blue-tint) 0%, rgba(230, 240, 255, 0) 70%); }
.hero h1 span + span { color: var(--accent); }
.hero-head { display: grid; gap: clamp(28px, 4vw, 48px); }
.hero h1 { font-size: clamp(2.5rem, 6.2vw, 5.5rem); line-height: 1.02; letter-spacing: -0.045em; }
.hero h1 span { display: block; }
.hero h1 small { display: block; font-size: clamp(.95rem, 1.25vw, 1.0625rem); line-height: 1.5; letter-spacing: 0; font-weight: 500; color: var(--accent); margin-bottom: clamp(14px, 1.6vw, 22px); }
.hero-side { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 5fr); gap: 24px 64px; align-items: end; }
.hero-side .act { display: grid; gap: 16px; justify-items: start; }
.hero-side > p { font-size: 18px; color: var(--ink-2); max-width: 52ch; }
.ctas { display: flex; flex-wrap: wrap; gap: 10px; }
.proof { display: flex; align-items: center; gap: 8px; font-size: 14px; color: var(--muted); }
.proof .ico { width: 16px; height: 16px; color: var(--ok); }
.hero-shot { position: relative; margin-top: clamp(44px, 6vw, 80px); border-radius: 28px; padding: clamp(14px, 4.5vw, 64px) clamp(14px, 4.5vw, 64px) clamp(20px, 5.5vw, 80px);
  background:
    linear-gradient(rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 100% 48px,
    linear-gradient(90deg, rgba(255, 255, 255, .07) 1px, transparent 1px) 0 0 / 48px 100%,
    radial-gradient(60% 80% at 88% 8%, rgba(0, 217, 254, .55), rgba(0, 217, 254, 0) 70%),
    var(--grad); }
.hero-shot .win { border-color: rgba(255, 255, 255, .5); box-shadow: 0 32px 64px -28px rgba(3, 20, 64, .55); }
.hero-note { position: absolute; right: clamp(20px, 3vw, 36px); bottom: clamp(16px, 2.5vw, 32px); width: min(320px, 70%); }

/* Window (product mock) */
.win { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; font-size: 14px; }
.win-bar { display: flex; align-items: center; gap: 12px; height: 42px; padding: 0 16px; border-bottom: 1px solid var(--line); color: var(--muted); font-size: 13px; }
.dots { display: flex; gap: 6px; }
.dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line-2); }
.win-bar b { color: var(--ink); font-weight: 500; }
.win-bar .sp { margin-left: auto; }

.app { display: grid; grid-template-columns: 208px minmax(0, 1fr); }
.side { border-right: 1px solid var(--line); padding: 14px 10px; display: grid; gap: 2px; align-content: start; color: var(--ink-2); font-size: 13.5px; }
.side span { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-radius: 7px; }
.side .ico { width: 16px; height: 16px; color: var(--muted); }
.side .on { background: var(--accent-soft); color: var(--accent); font-weight: 500; }
.side .on .ico { color: var(--accent); }
.side em { margin-left: auto; font-style: normal; font-size: 12px; color: var(--muted); font-variant-numeric: tabular-nums; }
.side small { padding: 14px 10px 6px; font-size: 12px; color: var(--muted); }
.main { padding: 20px 22px 8px; min-width: 0; }
.main-top { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.main-top b { font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.main-top span { font-size: 13px; color: var(--muted); }
.kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: 10px; margin-bottom: 18px; }
.kpis div { padding: 14px 16px; }
.kpis div + div { border-left: 1px solid var(--line); }
.kpis dt { font-size: 12.5px; color: var(--muted); }
.kpis dd { font-size: 26px; font-weight: 600; letter-spacing: -0.03em; line-height: 1.25; font-variant-numeric: tabular-nums; margin-top: 4px; }
.kpis dd small { font-size: 12px; font-weight: 500; color: var(--ok); letter-spacing: 0; margin-left: 6px; }

/* Rows (table-like lists inside mocks) */
.rows { display: grid; }
.rows-h, .row { display: grid; grid-template-columns: var(--cols, minmax(0, 1.4fr) minmax(0, 1.3fr) minmax(0, 1fr) 48px); gap: 12px; align-items: center; }
.rows-h { font-size: 12px; color: var(--muted); padding: 0 4px 8px; border-bottom: 1px solid var(--line); }
.row { padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 13.5px; }
.row:last-child { border-bottom: 0; }
.who { display: flex; align-items: center; gap: 10px; min-width: 0; font-weight: 500; }
.who span:last-child, .cut { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sub { color: var(--muted); }
.t { color: var(--muted); font-size: 12.5px; text-align: right; font-variant-numeric: tabular-nums; }
.av { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; font-size: 11.5px; font-weight: 600; color: var(--ink-2); background: var(--sunk); }
.av[data-c="1"] { background: #e6eefc; color: #1d4fb8; }
.av[data-c="2"] { background: #fdeee6; color: #a3471b; }
.av[data-c="3"] { background: #e6f5ee; color: #0e6b45; }
.av[data-c="4"] { background: #f1ecfb; color: #4b3a8f; }
.av[data-c="5"] { background: #fff4dc; color: #8a5a00; }

/* Status: a dot and a word, no pill */
.st { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; color: var(--muted); white-space: nowrap; }
.st::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); flex: none; }
.st.ok { color: var(--ok); }
.st.ok::before { background: var(--ok); }
.st.you { color: #b45309; font-weight: 500; }
.st.you::before { background: var(--amber); }
.st.err { color: var(--warn); }
.st.err::before { background: var(--warn); }

/* Floating note */
.note { display: flex; gap: 12px; align-items: flex-start; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; box-shadow: 0 18px 40px -24px rgba(10, 31, 78, .35); font-size: 13.5px; }
.note + .note { margin-top: 8px; }
.note .ic { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--ok-soft); color: var(--ok); }
.note .ic.ai { background: var(--ink); color: #fff; }
.note .ic .ico { width: 15px; height: 15px; }
.note b { display: block; font-weight: 600; }
.note p { color: var(--muted); }
.note time { margin-left: auto; padding-left: 8px; font-size: 12px; color: var(--muted); white-space: nowrap; }

/* Inbox */
.inbox { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); }
.inbox .list { border-right: 1px solid var(--line); }
.inbox .list .row { --cols: minmax(0, 1fr) auto; padding: 12px 16px; }
.inbox .list .row.on { background: var(--accent-soft); }
.inbox .list .who { align-items: flex-start; }
.inbox .list .who > span:last-child { display: grid; min-width: 0; }
.inbox .list .who small { font-weight: 400; color: var(--muted); font-size: 13px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chat { display: flex; flex-direction: column; min-width: 0; }
.chat-h { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.chat-h b { font-weight: 600; }
.chat-h span { font-size: 13px; color: var(--muted); }
.chat-b { flex: 1; display: grid; gap: 14px; align-content: start; padding: 20px 18px; }
.day { justify-self: center; font-size: 12px; color: var(--muted); }
.msg { max-width: 82%; padding: 10px 14px; border-radius: 14px 14px 14px 4px; background: var(--sunk); line-height: 1.5; }
.msg.ai { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--accent); color: #fff; }
.msg.agent { justify-self: end; border-radius: 14px 14px 4px 14px; background: var(--ink); color: #fff; }
.msg-meta { font-size: 12px; color: var(--muted); margin-bottom: -8px; }
.msg-meta.r { justify-self: end; }
.srcs { justify-self: end; display: flex; flex-wrap: wrap; gap: 6px; margin-top: -6px; }
.srcs span { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--ink-2); border: 1px solid var(--line); border-radius: 6px; padding: 3px 8px; background: var(--surface); }
.srcs .ico { width: 13px; height: 13px; color: var(--muted); }
.chat-in { margin: 0 18px 18px; display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 6px 0 14px; border: 1px solid var(--line-2); border-radius: 10px; color: var(--muted); font-size: 14px; }
.chat-in i { width: 32px; height: 32px; border-radius: 7px; background: var(--ink); display: grid; place-items: center; color: #fff; }
.chat-in .ico { width: 15px; height: 15px; }

/* Statement */
.statement { position: relative; overflow: hidden; background: var(--accent); color: #fff; padding-block: var(--sec) !important; }
.statement + .sec { padding-top: var(--sec); }
.statement .wrap { position: relative; }
.statement .mark { position: absolute; right: -4%; top: 50%; width: min(52%, 640px); aspect-ratio: 52 / 32; margin-top: -16%; background: #fff; opacity: .1;
  -webkit-mask: url(brand/logo-mark.svg) center / contain no-repeat; mask: url(brand/logo-mark.svg) center / contain no-repeat; pointer-events: none; }
.statement .big em { font-style: normal; color: #9eecff; display: block; }
.statement .big { font-size: clamp(2rem, 5.4vw, 4.5rem); line-height: 1.06; letter-spacing: -0.04em; font-weight: 600; max-width: 17ch; }
.statement .about { display: grid; grid-template-columns: minmax(0, 6fr) minmax(0, 6fr); gap: 32px 48px; margin-top: clamp(32px, 4vw, 48px); }
.statement .about > p { font-size: 18px; color: #fff; max-width: 46ch; }
.facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; align-content: start; }
.facts div { border-top: 1px solid rgba(255, 255, 255, .45); padding-top: 12px; }
.facts dt { font-size: 13px; color: #fff; }
.facts dd { font-weight: 500; margin-top: 4px; line-height: 1.4; }

/* Flow: sticky picture beside three steps */
.flow { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 32px 72px; }
.flow-intro { margin-bottom: 24px; }
.steps li { padding: 28px 0; border-top: 1px solid var(--line); }
.steps li:last-child { border-bottom: 1px solid var(--line); }
.steps .n { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; font-size: 13px; font-weight: 600; font-variant-numeric: tabular-nums; background: var(--tint); color: var(--tone); margin-bottom: 6px; }
.steps li:nth-child(1), #flow-stage[data-step="0"] { --tint: var(--blue-tint); --tone: var(--accent-deep); }
.steps li:nth-child(2), #flow-stage[data-step="1"] { --tint: var(--green-tint); --tone: var(--ok); }
.steps li:nth-child(3), #flow-stage[data-step="2"] { --tint: var(--amber-tint); --tone: #8a5a00; }
.feat:nth-child(1) { --tint: var(--blue-tint); }
.feat:nth-child(2) { --tint: var(--green-tint); }
.feat:nth-child(3) { --tint: var(--amber-tint); }
.feat:nth-child(4) { --tint: var(--cyan-tint); }
.feat:nth-child(5) { --tint: var(--green-tint); }
.feat:nth-child(6) { --tint: var(--blue-tint); }
.tinted { --tint: var(--cyan-tint); border-radius: 24px; padding: clamp(12px, 3.5vw, 48px); background: linear-gradient(120deg, var(--blue-tint), var(--cyan-tint)); }
.tinted .win { box-shadow: 0 28px 56px -36px rgba(10, 31, 78, .4); }
.steps h3 { font-size: clamp(1.25rem, 1.8vw, 1.5rem); letter-spacing: -0.02em; margin: 6px 0 8px; }
.steps p { color: var(--ink-2); max-width: 46ch; }
.step-vis { margin-top: 20px; }
.stage { background: var(--tint, var(--sunk)); border-radius: 16px; transition: background-color .5s; padding: clamp(20px, 3vw, 40px); display: grid; place-items: center; }
.stage > * { width: min(100%, 420px); }

.lead dl { display: grid; grid-template-columns: 1fr 1fr; }
.lead dl div { padding: 12px 16px; border-top: 1px solid var(--line); }
.lead dl div:nth-child(odd) { border-right: 1px solid var(--line); }
.lead dt { font-size: 12px; color: var(--muted); }
.lead dd { font-weight: 500; margin-top: 2px; }
.lead-h { display: flex; align-items: center; justify-content: space-between; padding: 12px 16px; font-weight: 600; }

@media (min-width: 1024px) {
  .js .flow-pin { position: sticky; top: 108px; align-self: start; }
  .js .flow-pin .stage { position: relative; min-height: 440px; }
  .js .flow-pin .stage > * { position: absolute; inset: 50% auto auto 50%; transform: translate(-50%, calc(-50% + 12px)); opacity: 0; transition: opacity .45s var(--ease), transform .6s var(--ease); width: min(calc(100% - 64px), 420px); }
  .js .flow-pin .stage > .on { opacity: 1; transform: translate(-50%, -50%); }
  .js .steps li { min-height: 34vh; display: flex; flex-direction: column; justify-content: center; opacity: .38; transition: opacity .35s; }
  .js .steps li.on { opacity: 1; }
  .js .steps .step-vis { display: none; }
}
.flow-pin { display: none; }
@media (min-width: 1024px) { .js .flow-pin { display: block; } }

/* Features */
.feats { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.feat { background: var(--surface); border: 1px solid var(--line); border-radius: 16px; padding: 28px; display: grid; gap: 8px; align-content: start; }
.feat h3 { font-size: 19px; letter-spacing: -0.015em; }
.feat > p { color: var(--ink-2); font-size: 15px; max-width: 46ch; }
.feat .stage { margin-top: 16px; height: 280px; place-items: start center; padding: 28px 28px 0; overflow: hidden; position: relative; }
.feat .stage::after { content: ""; position: absolute; inset: auto 0 0; height: 56px; background: linear-gradient(transparent, var(--tint, var(--sunk))); pointer-events: none; }
.feat .win, .feat .stage > .notes { width: min(100%, 440px); }

.toggles .tg { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 16px; border-top: 1px solid var(--line); }
.toggles .tg b { display: block; font-weight: 500; font-size: 14px; }
.toggles .tg small { color: var(--muted); font-size: 12.5px; }
.sw { width: 34px; height: 20px; border-radius: 999px; background: var(--line-2); position: relative; flex: none; }
.sw::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(10, 31, 78, .25); }
.sw.on { background: var(--accent); }
.sw.on::after { left: 16px; }

.chart { padding: 16px 18px 18px; }
.chart-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; color: var(--muted); }
.chart-num { display: flex; align-items: baseline; gap: 10px; margin: 6px 0 14px; }
.chart-num b { font-size: 34px; font-weight: 600; letter-spacing: -0.03em; font-variant-numeric: tabular-nums; }
.chart-num span { font-size: 13px; color: var(--muted); }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 112px; border-bottom: 1px solid var(--line); background: repeating-linear-gradient(to top, transparent 0 27px, var(--line) 27px 28px); }
.bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: linear-gradient(#35b6f2, var(--accent)); opacity: .38; transform-origin: 50% 100%; }
.bars i:nth-last-child(-n + 4) { opacity: .7; }
.bars i:last-child { opacity: 1; }
.axis { display: flex; justify-content: space-between; font-size: 11.5px; color: var(--muted); margin-top: 6px; }

/* Security */
.sec-grid { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 40px 72px; align-items: start; }
.sec-grid .h2 + p { margin-top: 16px; color: var(--ink-2); font-size: 17px; max-width: 46ch; }
.faq { margin-top: 32px; border-top: 1px solid var(--line); }
.faq div { padding: 18px 0; border-bottom: 1px solid var(--line); }
.faq dt { font-weight: 600; font-size: 16px; }
.faq dd { color: var(--ink-2); margin-top: 4px; font-size: 15px; }
.sessions .rows-h, .sessions .row { --cols: minmax(0, 1.2fr) minmax(0, 1.5fr) minmax(0, .9fr); }
.sessions .rows { padding: 12px 16px 6px; }

/* Closing + footer */
.close { position: relative; color: #fff; padding: var(--sec) 0 28px;
  background: radial-gradient(70% 520px at 92% 0%, rgba(0, 102, 240, .7), rgba(0, 102, 240, 0) 70%), radial-gradient(40% 360px at 100% 0%, rgba(0, 217, 254, .35), rgba(0, 217, 254, 0) 70%), var(--navy); }
.close::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: var(--grad); }
.close h2 em { font-style: normal; color: #7fe3ff; }
.reach { margin: 18px 0 0 !important; font-size: 15px !important; color: rgba(255, 255, 255, .72); }
.reach a { color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.reach a:hover { text-decoration-color: #fff; }
.foot li a[href^="tel"], .foot li a[href^="mailto"] { color: #fff; }

/* Nút liên hệ nổi ở góc phải dưới */
.fabs { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40; display: grid; gap: 10px; }
.fab { position: relative; width: 48px; height: 48px; border-radius: 50%; display: grid; place-items: center; color: #fff; box-shadow: 0 10px 24px -10px rgba(10, 31, 78, .55), 0 0 0 1px rgba(255, 255, 255, .5); transition: transform .2s var(--ease), box-shadow .2s; }
.fab:hover { transform: translateY(-2px) scale(1.05); }
.fab:active { transform: scale(.96); }
.fab .ico { width: 22px; height: 22px; }
.fab-call { background: #0e9f6e; }
/* Logo chính thức của Messenger, Facebook, Zalo, YouTube: hiện nguyên bản, không nền, không cắt */
.fab-brand { box-shadow: none; filter: drop-shadow(0 6px 10px rgba(10, 31, 78, .28)); }
.fab-brand img { width: 100%; height: 100%; object-fit: contain; }
.fab-l { position: absolute; right: calc(100% + 10px); top: 50%; translate: 6px -50%; padding: 6px 10px; border-radius: 8px; background: var(--ink); color: #fff; font-size: 13px; font-weight: 500; white-space: nowrap; opacity: 0; pointer-events: none; transition: opacity .2s, translate .2s var(--ease); }
.fab:hover .fab-l, .fab:focus-visible .fab-l { opacity: 1; translate: 0 -50%; }
@media (max-width: 639px) { .fabs { gap: 8px; right: 12px; bottom: 12px; } .fab { width: 44px; height: 44px; } }
@media (max-width: 639px) { .foot > :last-child { grid-column: 1 / -1; padding-right: 60px; } .legal { padding-right: 60px; } }
@media print { .fabs { display: none; } }
.close-cta { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: 32px 64px; align-items: end; padding-bottom: clamp(56px, 7vw, 96px); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.close h2 { font-size: clamp(2.2rem, 5vw, 4.25rem); line-height: 1.04; letter-spacing: -0.04em; }
.close-cta p { color: rgba(255, 255, 255, .72); font-size: 17px; margin-bottom: 24px; }
.close .btn-primary { background: #fff; color: var(--navy); }
.close .btn-primary:hover { background: var(--accent-soft); }
.close .btn-line { background: transparent; color: #fff; border-color: rgba(255, 255, 255, .3); }
.close .btn-line:hover { border-color: #fff; }
.foot { display: grid; grid-template-columns: minmax(0, 5fr) repeat(3, minmax(0, 2fr)); gap: 32px; padding: 48px 0 40px; font-size: 14px; }
.foot .logo img:first-child { width: 52px; height: 32px; }
.foot .logo img + img { width: 73px; height: 14px; }
.foot .tag { margin-top: 16px; color: rgba(255, 255, 255, .72); max-width: 30ch; }
.foot .foot-h { font-size: 14px; font-weight: 500; margin-bottom: 12px; }
.foot li { color: rgba(255, 255, 255, .64); padding: 4px 0; }
.foot li a:hover { color: #fff; }
.legal { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .14); font-size: 13px; color: rgba(255, 255, 255, .5); }

/* Motion: a mock rises in once when it first comes into view (only with JS and motion allowed) */
.motion [data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.motion [data-reveal].in { opacity: 1; transform: none; }
[data-depth] { will-change: transform; }

/* Tablet */
@media (max-width: 1023px) {
  .nav-links { display: none; }
  .nav-cta { margin-left: auto; }
  .hero-head, .hero-side, .head, .flow, .sec-grid, .close-cta, .statement .about { grid-template-columns: minmax(0, 1fr); }
  .app { grid-template-columns: minmax(0, 1fr); }
  .side { display: none; }
  .kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .kpis div:nth-child(3) { border-left: 0; }
  .kpis div:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .foot { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .foot > :first-child { grid-column: 1 / -1; }
}

/* Phone */
@media (max-width: 639px) {
  body { font-size: 15.5px; }
  .nav-in { height: 60px; }
  .logo img:first-child { width: 38px; height: 23px; }
  .logo img + img { width: 56px; height: 11px; }
  .ctas .btn { flex: 1 1 100%; }
  .hero-note { position: relative; right: auto; bottom: auto; width: auto; margin: -16px 10px 0; }
  .hero-shot { border-radius: 20px; }
  .main { padding: 16px 14px 4px; }
  .rows-h, .row { --cols: minmax(0, 1.3fr) minmax(0, 1fr); }
  .rows-h > :nth-child(n + 3), .row > :nth-child(n + 3):not(.st) { display: none; }
  .row > .st { grid-column: 2; justify-self: start; }
  .hero-shot .rows-h > :nth-child(2), .hero-shot .row > :nth-child(2) { display: none; }
  .inbox { grid-template-columns: minmax(0, 1fr); }
  .inbox .list { display: none; }
  .msg { max-width: 92%; }
  .facts { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .feats { grid-template-columns: minmax(0, 1fr); }
  .feat { padding: 22px; }
  .feat .stage { height: 240px; padding: 20px 16px 0; }
  .sessions .rows-h, .sessions .row { --cols: minmax(0, 1fr) auto; }
  .sessions .row > .st { grid-column: auto; }
  .lead dl { grid-template-columns: minmax(0, 1fr); }
  .lead dl div:nth-child(odd) { border-right: 0; }
  .foot { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* small helpers used by the mocks */
.sched { padding: 6px 14px 0; }
.sched .row { --cols: minmax(0, 1.4fr) minmax(0, 1fr) minmax(0, 1fr); }
.note .ic.muted { background: var(--sunk); color: var(--muted); }
.role { font-weight: 400; font-size: 13px; color: var(--muted); }
.chat-h .av .ico { width: 14px; height: 14px; }
.notes { width: min(100%, 440px); }
.flow-pin .stage > .notes { width: min(calc(100% - 64px), 420px); }
@media (max-width: 639px) {
  .sched .row { --cols: minmax(0, 1fr) auto; }
  .sched .row > .sub { display: none; }
  .sched .row > .st { grid-column: 2; }
}
@media (max-width: 639px) {
  .hero-side .act { justify-items: stretch; }
  .win-bar .sp { display: none; }
  .win-bar > span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
  .sessions .row > .sub, .sessions .rows-h > :nth-child(2) { display: none; }
}

/* Kênh của hội thoại trong hộp thư */
.ch { display: inline-block; margin-right: 6px; padding: 0 5px; border-radius: 4px; font-style: normal; font-size: 11px; font-weight: 600; line-height: 17px; vertical-align: 1px; }
.ch.m { background: var(--blue-tint); color: var(--accent-deep); }
.ch.z { background: var(--cyan-tint); color: #04708a; }
.handoff .row { --cols: minmax(0, 1fr) auto; }
.handoff .who > span:last-child { display: grid; min-width: 0; }
.handoff .who small { font-weight: 400; font-size: 12.5px; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 639px) { .handoff .row > .st { grid-column: auto; } }
.av.tk { background: #111; color: #fff; font-size: 13px; }

/* Soạn chương trình tour */
.tinted.warm { background: linear-gradient(120deg, var(--amber-tint), var(--blue-tint) 70%); }
.win-bar .dl { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 6px; background: var(--accent); color: #fff; font-weight: 500; }
.win-bar .dl .ico { width: 14px; height: 14px; }
.tour { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); }
.doc { border-right: 1px solid var(--line); min-width: 0; }
.doc-tabs { display: flex; gap: 4px; padding: 6px 16px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.doc-tabs span { padding: 8px 10px; margin-bottom: -1px; border-bottom: 2px solid transparent; color: var(--muted); }
.doc-tabs .on { color: var(--ink); font-weight: 500; border-color: var(--accent); }
.doc-tools { display: flex; align-items: center; gap: 14px; padding: 8px 18px; border-bottom: 1px solid var(--line); font-size: 13px; color: var(--ink-2); white-space: nowrap; overflow: hidden; }
.doc-tools b, .doc-tools i, .doc-tools u { width: 14px; text-align: center; color: var(--ink); }
.doc-tools .sep { width: 1px; height: 16px; background: var(--line-2); }
.doc-page { padding: 22px 26px 26px; }
.doc-page h4 { margin: 0 0 8px; font-size: 15.5px; font-weight: 600; letter-spacing: -0.01em; }
.doc-page ul + h4 { margin-top: 18px; }
.doc-page li { display: grid; grid-template-columns: 50px minmax(0, 1fr); gap: 8px; padding: 5px 0; font-size: 14px; color: var(--ink-2); }
.doc-page time { color: var(--muted); font-variant-numeric: tabular-nums; }
.pl { display: inline-flex; align-items: center; gap: 4px; padding: 0 6px; border-radius: 5px; background: var(--accent-soft); color: var(--accent-deep); font-weight: 500; white-space: nowrap; }
.pl .ico { width: 13px; height: 13px; }
.caret { display: inline-block; width: 2px; height: 1.15em; margin-left: 2px; background: var(--accent); vertical-align: -3px; }
.add { flex: none; padding: 3px 10px; border: 1px solid var(--line-2); border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--accent); }
.add.done { border-color: transparent; background: var(--ok-soft); color: var(--ok); }
.pl + .desc, .doc-page .desc { display: block; margin-top: 4px; font-size: 13px; color: var(--muted); }

/* Bản đồ chọn địa điểm: bản đồ Google Maps thật (khung nhúng, không bấm được), ghim của VTAI vẽ đè lên theo độ lệch so với tâm bản đồ ở zoom 15.
   Đổi tâm hoặc zoom thì phải tính lại --x/--y của từng ghim. Thẻ mô tả cách đáy 40px để không che logo và dòng bản quyền của Google. */
.map { position: relative; min-height: 500px; overflow: hidden; background: #e9eef2; }
.map-frame, .map-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.map-legend { position: absolute; right: 12px; top: 12px; display: grid; gap: 6px; justify-items: end; }
.map-legend span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 9px; border-radius: 999px; background: var(--surface); box-shadow: 0 2px 8px rgba(10, 31, 78, .18); font-size: 12px; font-weight: 500; }
.map-legend span::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: var(--pin); }
.v { --pin: var(--accent); }
.c { --pin: #e8590c; }
.pin { position: absolute; left: calc(50% + var(--x)); top: calc(50% + var(--y)); width: 30px; height: 30px; margin: -30px 0 0 -15px; padding: 0; border: 0; background: none; cursor: pointer; transition: transform .2s var(--ease); transform-origin: 50% 100%; }
.pin::before { content: ""; position: absolute; inset: 0; border-radius: 50% 50% 50% 0; rotate: -45deg; background: var(--pin); border: 2px solid #fff; box-shadow: 0 3px 8px rgba(10, 31, 78, .35); }
.pin::after { content: ""; position: absolute; left: 50%; top: 42%; width: 9px; height: 9px; margin: -4.5px 0 0 -4.5px; border-radius: 50%; background: #fff; }
.pin:hover { transform: scale(1.1); }
.pin.on { transform: scale(1.28); z-index: 2; }
.pin-card { position: absolute; left: 12px; right: 12px; bottom: 40px; z-index: 3; display: grid; gap: 4px; padding: 14px 16px; border-radius: 12px; background: var(--surface); box-shadow: 0 12px 32px -12px rgba(10, 31, 78, .45); }
.pin-card .kind { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 500; color: var(--muted); }
.pin-card .kind::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pin); }
.pin-card b { font-size: 15px; font-weight: 600; }
.pin-card p { font-size: 13px; color: var(--ink-2); line-height: 1.5; }
.pin-card .add { justify-self: start; margin-top: 6px; padding: 6px 12px; border: 0; background: var(--accent); color: #fff; cursor: pointer; font-family: inherit; }
.pin-card .add:hover { background: var(--accent-deep); }
.pin-card .add.done { background: var(--ok-soft); color: var(--ok); cursor: default; }
.points { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px 32px; margin-top: clamp(28px, 4vw, 44px); }
.points li { padding-top: 14px; border-top: 1px solid var(--line-2); }
.points b { display: block; font-weight: 600; margin-bottom: 4px; }
.points span { color: var(--ink-2); font-size: 15px; }
@media (max-width: 1023px) { .nav-links { display: none; } }
@media (min-width: 1024px) and (max-width: 1180px) { .nav-links { gap: 20px; } .nav-in { gap: 24px; } }
@media (max-width: 767px) {
  .map { min-height: 520px; }
  .tour { grid-template-columns: minmax(0, 1fr); }
  .doc { border-right: 0; border-bottom: 1px solid var(--line); }
  .doc-page { padding: 18px 16px 20px; }
  .doc-page li { grid-template-columns: 44px minmax(0, 1fr); }
  .points { grid-template-columns: minmax(0, 1fr); }
}
.doc-tabs span { white-space: nowrap; }
.chat-h b { white-space: nowrap; }
.chat-h span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
@media (max-width: 639px) {
  .win-bar .dl, .doc-tabs span:nth-child(3), .doc-tools span:nth-last-child(-n + 2) { display: none; }
}
