/* Trực 24 — product site v2 (lighter, layered). Mobile first, no framework. */
:root {
  --blue: #2457f5;
  --blue-600: #1d47d6;
  --blue-ink: #10307f;
  --tint: #eef3ff;
  --tint-2: #f6f8ff;
  --ink: #14213d;
  --mute: #5a6478;
  --line: #e4e9f2;
  --accent: #ff7a1a;
  --ok: #12a150;
  --wrap: 1120px;
  --shadow-sm: 0 1px 2px rgba(20, 33, 61, 0.05), 0 4px 14px rgba(20, 33, 61, 0.06);
  --shadow-lg: 0 24px 60px rgba(36, 87, 245, 0.16), 0 6px 18px rgba(20, 33, 61, 0.06);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: "Be Vietnam Pro", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  font-size: 17px; line-height: 1.65; color: var(--ink); background: #fff; padding-bottom: 76px;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--blue); }
h1, h2, h3 { line-height: 1.22; margin: 0 0 14px; letter-spacing: -0.015em; font-weight: 700; }
h1 { font-size: clamp(2rem, 6.6vw, 3.35rem); }
h2 { font-size: clamp(1.6rem, 4.8vw, 2.5rem); }
h3 { font-size: 1.12rem; font-weight: 600; letter-spacing: 0; }
p { margin: 0 0 12px; }
.hl { color: var(--blue); }
.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 16px; }
.muted { color: var(--mute); }
.center { text-align: center; }
.small { font-size: 0.86rem; color: var(--mute); }
section { padding: 64px 0; }
.head-block { max-width: 680px; margin: 0 auto 36px; text-align: center; }
.head-block p { color: var(--mute); font-size: 1.05rem; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 500; color: var(--blue-ink);
  background: #fff; border: 1px solid var(--line); padding: 6px 14px; border-radius: 999px; margin-bottom: 18px;
  box-shadow: var(--shadow-sm);
}
.chip .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px rgba(18, 161, 80, .15); }

/* sheets: big rounded section containers */
.sheet { border-radius: 36px; margin: 0 8px; }
.sheet-tint { background: linear-gradient(180deg, var(--tint) 0%, var(--tint-2) 100%); }
.sheet-blue { background: radial-gradient(800px 400px at 80% 0%, #3b6bff 0%, transparent 60%), var(--blue); color: #fff; }
.sheet-blue .muted, .sheet-blue p { color: rgba(255, 255, 255, .82); }
.sheet-blue h2 { font-size: clamp(1.4rem, 4.2vw, 2.15rem); font-weight: 600; line-height: 1.32; }

/* header */
.top { position: sticky; top: 0; z-index: 20; background: rgba(255, 255, 255, .86); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid transparent; transition: border-color .2s; }
.top.scrolled { border-bottom-color: var(--line); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; height: 66px; }
.logo { display: flex; align-items: center; gap: 9px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 1.25rem; }
.logo-mark { width: 34px; height: 34px; }
.nav { display: none; gap: 28px; align-items: center; }
.nav a:not(.btn) { color: var(--ink); text-decoration: none; font-weight: 500; font-size: 0.97rem; }
.nav a:not(.btn):hover { color: var(--blue); }

/* buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border: 0; cursor: pointer; font: inherit;
  font-weight: 600; text-decoration: none; border-radius: 999px; padding: 8px 24px 8px 8px; min-height: 54px;
  transition: transform .08s, background .2s, box-shadow .2s, border-color .2s; }
.btn:active { transform: translateY(1px); }
.btn .arr { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; flex: none; }
.btn .arr svg { width: 18px; height: 18px; }
.btn-primary { background: var(--blue); color: #fff; box-shadow: 0 10px 24px rgba(36, 87, 245, .28); }
.btn-primary .arr { background: #fff; color: var(--blue); }
.btn-primary:hover { background: var(--blue-600); }
.btn-ghost { background: #fff; color: var(--ink); border: 1px solid var(--line); padding: 8px 24px; }
.btn-ghost:hover { border-color: var(--blue); color: var(--blue); }
.btn-sm { min-height: 44px; padding: 6px 18px; font-size: 0.95rem; }
.btn-light { background: #fff; color: var(--blue); padding: 8px 24px 8px 8px; }
.btn-light .arr { background: var(--blue); color: #fff; }

/* hero */
.hero { padding: 40px 0 24px; text-align: center; overflow: hidden; position: relative;
  background: radial-gradient(900px 460px at 50% -10%, #e4ecff 0%, rgba(228, 236, 255, 0) 70%); }
.hero p.lead { font-size: 1.1rem; color: var(--mute); max-width: 620px; margin: 0 auto; }
.hero .actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin: 26px 0 16px; }
.ticks { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; justify-content: center;
  color: var(--mute); font-size: 0.93rem; }
.ticks li { display: flex; align-items: center; gap: 6px; }
.ticks svg { width: 17px; height: 17px; color: var(--ok); flex: none; }

/* stage: phone + rings + floating cards */
.stage { position: relative; margin: 44px auto 0; max-width: 760px; height: 560px; }
.rings { position: absolute; left: 50%; top: 52%; transform: translate(-50%, -50%); width: 760px; height: 760px; pointer-events: none; }
.rings i { position: absolute; inset: 0; margin: auto; border-radius: 50%; border: 1px solid rgba(36, 87, 245, .14);
  background: radial-gradient(circle, rgba(36, 87, 245, .05) 0%, rgba(36, 87, 245, 0) 70%); }
.rings i:nth-child(1) { width: 300px; height: 300px; }
.rings i:nth-child(2) { width: 480px; height: 480px; }
.rings i:nth-child(3) { width: 680px; height: 680px; border-style: dashed; }
.phone { position: relative; z-index: 2; width: 272px; margin: 0 auto; background: #fff; border-radius: 42px; padding: 9px;
  box-shadow: var(--shadow-lg); border: 1px solid #dfe6f3; }
.phone::before { content: ""; position: absolute; top: 18px; left: 50%; transform: translateX(-50%); width: 74px; height: 20px;
  background: #14213d; border-radius: 999px; z-index: 3; }
.screen { background: #f4f7fc; border-radius: 34px; overflow: hidden; height: 520px; display: flex; flex-direction: column; text-align: left; }
.chat-head { background: #fff; padding: 46px 14px 12px; display: flex; align-items: center; gap: 10px; border-bottom: 1px solid #edf1f7; }
.chat-head .av { width: 34px; height: 34px; border-radius: 50%; background: var(--tint); color: var(--blue); display: grid; place-items: center; flex: none; }
.chat-head .av svg { width: 20px; height: 20px; }
.chat-head b { display: block; font-size: 0.9rem; font-weight: 600; }
.chat-head small { color: var(--mute); font-size: 0.74rem; display: flex; align-items: center; gap: 5px; }
.chat-head small::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--ok); }
.chat-body { flex: 1; padding: 12px 10px; display: flex; flex-direction: column; gap: 8px; overflow: hidden; justify-content: flex-end;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 48px); mask-image: linear-gradient(to bottom, transparent 0, #000 48px); }
.clock { align-self: center; font-size: 0.7rem; color: var(--mute); padding: 2px 10px; }
.msg { max-width: 84%; padding: 8px 12px; border-radius: 16px; font-size: 0.8rem; line-height: 1.45; opacity: 0;
  transform: translateY(8px); transition: opacity .35s, transform .35s; }
.msg.show { opacity: 1; transform: none; }
.msg.in { background: #fff; align-self: flex-start; border-bottom-left-radius: 6px; border: 1px solid #e8edf5; }
.msg.out { background: var(--blue); color: #fff; align-self: flex-end; border-bottom-right-radius: 6px; }
.msg b { white-space: nowrap; font-weight: 600; }
.typing { align-self: flex-start; background: #fff; border: 1px solid #e8edf5; border-radius: 16px; padding: 9px 13px; display: none; gap: 4px; }
.typing.show { display: flex; }
.typing i { width: 6px; height: 6px; border-radius: 50%; background: #9aa6b8; animation: blink 1.2s infinite; }
.typing i:nth-child(2) { animation-delay: .2s; } .typing i:nth-child(3) { animation-delay: .4s; }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }
.chat-input { background: #fff; margin: 0 10px 12px; border-radius: 999px; padding: 9px 14px; color: #9aa6b8; font-size: 0.78rem; border: 1px solid #e8edf5; }

.float { position: absolute; z-index: 3; background: rgba(255, 255, 255, .92); backdrop-filter: blur(10px); border: 1px solid #e6ecf6;
  border-radius: 16px; box-shadow: var(--shadow-sm), 0 14px 34px rgba(20, 33, 61, .08); padding: 10px 14px; text-align: left;
  font-size: 0.86rem; animation: bob 6s ease-in-out infinite; }
.float b { font-weight: 600; }
.float .ic { width: 30px; height: 30px; border-radius: 10px; display: grid; place-items: center; flex: none; }
.float .ic svg { width: 17px; height: 17px; }
.f-notify { left: 0; top: 330px; width: 250px; display: flex; gap: 10px; align-items: flex-start; animation-delay: -1s; }
.f-notify .ic { background: #e8f8ef; color: var(--ok); }
.f-notify small { display: block; color: var(--mute); font-size: 0.78rem; line-height: 1.4; margin-top: 2px; }
.f-fast { right: 10px; top: 70px; display: flex; gap: 8px; align-items: center; animation-delay: -3s; }
.f-fast .ic { background: #fff2e8; color: var(--accent); }
.f-price { right: 0; top: 380px; display: flex; gap: 8px; align-items: center; animation-delay: -2s; }
.f-price .ic { background: var(--tint); color: var(--blue); }
.f-channels { left: -30px; top: 120px; display: flex; gap: 6px; align-items: center; animation-delay: -4s; }
.f-channels span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 0.7rem; font-weight: 700; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }

/* proof strip */
.strip { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 28px; color: var(--mute); font-size: 0.95rem; padding: 28px 0 8px; }
.strip span { display: flex; align-items: center; gap: 8px; }
.strip svg { width: 20px; height: 20px; color: var(--blue); }

/* stats in blue sheet */
.stats { display: grid; gap: 14px; margin-top: 30px; }
.stat { background: rgba(255, 255, 255, .1); border: 1px solid rgba(255, 255, 255, .18); border-radius: 20px; padding: 18px 20px; }
.stat b { display: block; font-size: 1.6rem; font-weight: 700; color: #fff; line-height: 1.2; }
.stat span { color: rgba(255, 255, 255, .82); font-size: 0.95rem; }

/* feature split */
.split { display: grid; gap: 28px; align-items: center; }
.flist { display: flex; flex-direction: column; gap: 12px; }
.fitem { display: flex; gap: 14px; padding: 16px 18px; border-radius: 18px; border: 1px solid transparent; }
.fitem.on { background: #fff; border-color: #dfe7f7; box-shadow: var(--shadow-sm); }
.fitem .ic { width: 42px; height: 42px; border-radius: 12px; background: var(--tint); color: var(--blue); display: grid; place-items: center; flex: none; }
.fitem .ic svg { width: 22px; height: 22px; }
.fitem h3 { margin: 0 0 4px; }
.fitem p { margin: 0; color: var(--mute); font-size: 0.96rem; }
.notif-card { background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); padding: 18px; max-width: 400px; margin: 0 auto; border: 1px solid #e6ecf6; }
.notif-card .bar { display: flex; align-items: center; gap: 10px; padding: 4px 4px 14px; border-bottom: 1px solid #eef2f8; margin-bottom: 12px; }
.notif-card .bar .ic { width: 36px; height: 36px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; }
.notif-card .bar .ic svg { width: 18px; height: 18px; }
.notif-card .bar b { font-weight: 600; display: block; font-size: 0.95rem; }
.notif-card .bar small { color: var(--mute); font-size: 0.78rem; }
.note { background: var(--tint-2); border: 1px solid #e6ecf8; border-radius: 16px; padding: 12px 14px; margin-bottom: 10px; font-size: 0.88rem; line-height: 1.5; }
.note .t { display: flex; justify-content: space-between; font-weight: 600; margin-bottom: 2px; }
.note .t small { color: var(--mute); font-weight: 400; }
.note.hot { background: #fff7f0; border-color: #ffe2cc; }

/* examples: horizontal scroller on phones */
.scroller { display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory;
  padding: 4px 16px 18px; margin: 0 -16px; scrollbar-width: none; }
.scroller::-webkit-scrollbar { display: none; }
.ex { scroll-snap-align: start; background: #fff; border: 1px solid #e6ecf6; border-radius: 24px; padding: 22px; display: flex;
  flex-direction: column; gap: 10px; box-shadow: var(--shadow-sm); }
.ex .tile { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; color: #fff; }
.ex .tile svg { width: 24px; height: 24px; }
.ex .tag { font-size: 0.82rem; font-weight: 600; color: var(--mute); }
.ex q { quotes: "“" "”"; font-weight: 600; font-size: 1.02rem; line-height: 1.45; }
.ex .ans { color: var(--mute); font-size: 0.93rem; }
.ex .btn { align-self: flex-start; margin-top: auto; }
.g-blue { background: linear-gradient(135deg, #4f7cff, #2457f5); }
.g-teal { background: linear-gradient(135deg, #2cc9b0, #0f9d8a); }
.g-violet { background: linear-gradient(135deg, #9b7bff, #6a4cf5); }
.g-orange { background: linear-gradient(135deg, #ffa25c, #ff7a1a); }

/* steps */
.steps { display: grid; gap: 14px; counter-reset: s; }
.step { background: #fff; border: 1px solid #e6ecf6; border-radius: 24px; padding: 22px 22px 22px 84px; position: relative; box-shadow: var(--shadow-sm); }
.step::before { counter-increment: s; content: counter(s, decimal-leading-zero); position: absolute; left: 22px; top: 22px;
  width: 44px; height: 44px; border-radius: 14px; background: var(--tint); color: var(--blue); font-weight: 700; display: grid; place-items: center; }
.step h3 { margin-bottom: 4px; }
.step p { margin: 0; color: var(--mute); font-size: 0.96rem; }

/* faq */
.faq { max-width: 780px; margin: 0 auto; }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; font-weight: 600; padding: 18px 36px 18px 0; list-style: none; position: relative; font-size: 1.02rem; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; position: absolute; right: 4px; top: 24px; width: 10px; height: 10px; border-right: 2px solid var(--blue);
  border-bottom: 2px solid var(--blue); transform: rotate(45deg); transition: transform .2s; }
.faq details[open] summary::after { transform: rotate(225deg); top: 28px; }
.faq details p { color: var(--mute); padding-bottom: 8px; }

/* sign-up */
.signup-wrap { display: grid; gap: 24px; align-items: start; }
.signup { background: #fff; border-radius: 28px; box-shadow: var(--shadow-lg); padding: 24px 20px; border: 1px solid #e6ecf6; }
.perks { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.perks li { display: flex; gap: 10px; align-items: flex-start; }
.perks svg { width: 22px; height: 22px; color: var(--ok); flex: none; margin-top: 2px; }
.field { margin-bottom: 14px; }
.field label { display: block; font-weight: 500; margin-bottom: 6px; font-size: 0.94rem; }
.field input, .field select, .field textarea { width: 100%; font: inherit; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--line);
  background: var(--tint-2); min-height: 50px; transition: border-color .2s, background .2s; }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 4px rgba(36, 87, 245, .1); }
.signup .btn-primary { width: 100%; padding: 8px 24px; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-msg { margin-top: 12px; font-weight: 500; }
.form-msg.ok { color: var(--ok); } .form-msg.err { color: #c2410c; }

/* footer */
footer { padding: 40px 0 28px; color: var(--mute); font-size: 0.92rem; }
footer .wrap { display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; }
footer a { color: var(--mute); }
.contact-line[hidden] { display: none; }

/* chat widget button sits above the mobile action bar */
body:has(.actionbar) { --tlbh-bottom: 84px; }
.actionbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; gap: 10px; padding: 10px 12px;
  padding-bottom: calc(10px + env(safe-area-inset-bottom)); background: rgba(255, 255, 255, .94); border-top: 1px solid var(--line);
  backdrop-filter: blur(10px); }
.actionbar .btn { flex: 1; min-height: 48px; padding: 8px 12px; font-size: 0.96rem; }

/* prose pages */
.prose { max-width: 760px; margin: 0 auto; padding: 36px 0 60px; }
.prose h1 { font-size: clamp(1.7rem, 5vw, 2.3rem); }
.prose h2 { font-size: 1.25rem; margin-top: 30px; }
.prose li { margin-bottom: 6px; }

/* small phones: tighter stage */
@media (max-width: 759px) {
  .stage { height: 500px; margin-top: 36px; }
  .phone { width: 236px; border-radius: 38px; }
  .screen { height: 456px; border-radius: 30px; }
  .rings { width: 520px; height: 520px; }
  .rings i:nth-child(1) { width: 260px; height: 260px; } .rings i:nth-child(2) { width: 380px; height: 380px; } .rings i:nth-child(3) { width: 510px; height: 510px; }
  .f-fast { right: 0; top: -14px; font-size: 0.78rem; padding: 7px 10px; }
  .f-channels, .f-price { display: none; }
  .stat { padding: 14px 18px; } .stat b { font-size: 1.35rem; }
  .f-notify { left: 50%; transform: translateX(-50%); top: auto; bottom: -6px; width: 270px; animation: none; }
  .float .ic { width: 26px; height: 26px; }
  .sheet { border-radius: 28px; margin: 0 6px; }
}
@media (min-width: 760px) {
  body { padding-bottom: 0; }
  .actionbar { display: none; }
  body:has(.actionbar) { --tlbh-bottom: 20px; }
  .nav { display: flex; }
  section { padding: 96px 0; }
  .hero { padding: 64px 0 40px; }
  .sheet { margin: 0 20px; border-radius: 44px; }
  .stats { grid-template-columns: repeat(3, 1fr); }
  .split { grid-template-columns: 1fr 1fr; gap: 56px; }
  .scroller { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin: 0; padding: 4px 0; }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .step { padding: 84px 24px 24px; }
  .signup-wrap { grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: center; }
  .signup { padding: 34px; }
  .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .msg { transition: none; } .typing i, .float { animation: none; }
}
