/* ==========================================================================
   marketify.io.vn — landing styles
   Kế thừa tokens + reset + primitives từ css/tokens.css (không sửa file đó).
   Thứ tự: font → shell → header/nav → hero → sections → form → footer → responsive
   ========================================================================== */

/* ---------- Fonts (self-host) ----------
   Một file variable duy nhất (100–900) để mọi weight lẻ hiển thị đúng, không faux-bold.
   /fonts còn 4 file static: không khai báo ở đây (dùng variable thay thế) — Lead xác nhận giữ hay xoá. */
@font-face {
  font-family: "Inter";
  src: url("/fonts/InterVariable.woff2") format("woff2-variations"),
       url("/fonts/InterVariable.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
  unicode-range: U+0000-00FF, U+0100-024F, U+0259, U+1E00-1EFF, U+2000-206F, U+2074, U+20AB, U+20AC, U+2113, U+2122, U+2191, U+2193, U+2212, U+2215, U+2C60-2C7F, U+A720-A7FF;
}

/* ---------- Base ---------- */
html { scroll-padding-top: calc(var(--header-h) + 24px); }

body { letter-spacing: -.006em; }

h1, h2, h3, h4 { color: var(--text-hi); }

p { max-width: 68ch; }

code {
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  font-size: .875em;
  line-height: 1.45;
  padding: 1px 6px;
  border-radius: var(--r-xs);
  background: rgba(148, 168, 214, .12);
  border: 1px solid var(--line);
  color: #DCE6FF;
  white-space: nowrap;
  vertical-align: baseline;
}

.section--light code { background: #EDF2FF; border-color: #DCE5F7; color: #24418F; }

/* Nhóm token kỹ thuật: chỉ được xuống dòng GIỮA các token, không tách nửa chữ/dấu phẩy */
.tok {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 2px 4px;
  vertical-align: baseline;
  max-width: 100%;
}
.tok code { vertical-align: baseline; }

.link-arrow {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: -moz-fit-content;
  width: fit-content;
  margin-top: 14px;
  font-weight: 600;
  font-size: 15px;
  color: var(--brand-hi);
  border-bottom: 1px solid transparent;
  transition: color .16s var(--ease), border-color .16s var(--ease), gap .16s var(--ease);
}
.link-arrow:hover { color: #9DBAFF; gap: 10px; }
.link-arrow .i { width: 17px; height: 17px; }
.section--light .link-arrow { color: var(--brand-deep); }
.section--light .link-arrow:hover { color: #122E99; }
.no-js .link-arrow, a.link-arrow:focus-visible { border-color: currentColor; }

.link-cta {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 48px;
  padding: 4px 4px;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-hi);
  text-decoration: underline;
  text-decoration-color: var(--line-strong);
  text-underline-offset: 5px;
  text-decoration-thickness: 1px;
  transition: color .16s var(--ease), text-decoration-color .16s var(--ease), gap .16s var(--ease);
}
.link-cta .i { width: 18px; height: 18px; transition: transform .16s var(--ease); }
.link-cta:hover { color: var(--brand-hi); text-decoration-color: var(--brand-hi); }
.link-cta:hover .i { transform: translateX(3px); }

.i--ext { width: 13px; height: 13px; margin-left: -2px; opacity: .75; }

/* Glow placement (tối đa 2 cụm/section) */
.glow {
  width: 560px;
  height: 560px;
  max-width: 100vw;
  background: radial-gradient(circle, rgba(46, 107, 255, .34) 0%, rgba(46, 107, 255, .10) 42%, rgba(46, 107, 255, 0) 70%);
}
.glow--a { top: -220px; left: -140px; }
.glow--b { top: 120px; right: -120px; opacity: .7; }
.glow--c { top: 40px; right: -150px; }
.glow--d { top: -160px; right: 10%; opacity: .8; }
.glow--e { bottom: -260px; right: -150px; opacity: .6; }

/* ---------- Overrides primitives của tokens.css (a11y contrast + đều đáy) ---------- */
.grid .card,
.secure__grid > .card,
.problem__grid > .card { height: 100%; }
.section--light .eyebrow { color: var(--brand-deep); }
.section--light .icon-box { color: var(--brand-deep); }
/* :where() → specificity 0, để khai báo riêng từng component bên dưới luôn thắng */
:where(h2.h2) { hyphens: none; overflow-wrap: normal; }
:where(h1, h2, h3, h4) { hyphens: none; }
:where(h3, h4) { overflow-wrap: break-word; }
h2.h2 { font-size: clamp(28px, 3.4vw, 44px); }

/* ---------- Announce ---------- */
.announce {
  position: relative;
  z-index: 60;
  background: var(--grad-brand);
  color: #fff;
  font-size: 14px;
  font-weight: 500;
}
.announce[hidden] { display: none; }
.announce__in { display: flex; align-items: center; justify-content: center; gap: 14px; min-height: 42px; padding-block: 8px; flex-wrap: wrap; text-align: center; }
.announce__text { margin: 0; color: #fff; max-width: none; }
.announce__link { color: #fff; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Header ---------- */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  height: var(--header-h);
  display: flex;
  align-items: center;
  background: rgba(11, 17, 34, .72);
  border-bottom: 1px solid transparent;
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.site-header.is-stuck { background: rgba(9, 14, 28, .92); border-bottom-color: var(--line); }

.header__in { display: flex; align-items: center; gap: 24px; }

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--text-hi); text-decoration: none; }
.brand__mark { width: 34px; height: 34px; border-radius: 10px; box-shadow: 0 6px 18px -8px rgba(46, 107, 255, .9); }
.brand__text { display: flex; flex-direction: column; line-height: 1.05; }
.brand__word { font-size: 20px; font-weight: 800; letter-spacing: -.02em; }
.brand__sub { font-size: 10.5px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--text-dim); margin-top: 3px; }
.brand:hover .brand__word { color: #fff; }

.nav { margin-left: auto; display: flex; align-items: center; gap: 28px; }
.nav__list { display: flex; align-items: center; gap: 4px; margin: 0; padding: 0; list-style: none; }
.nav__link {
  display: inline-block;
  padding: 8px 12px;
  border-radius: var(--r-xs);
  font-size: 14.5px;
  font-weight: 500;
  color: var(--text);
  transition: color .16s var(--ease), background .16s var(--ease);
}
.nav__link:hover, .nav__link.is-active { color: var(--text-hi); background: rgba(255, 255, 255, .06); }

.nav-toggle {
  display: none;
  width: 44px;
  height: 44px;
  margin-left: auto;
  align-items: center;
  justify-content: center;
  border-radius: var(--r-sm);
  border: 1px solid var(--line-strong);
  background: rgba(255, 255, 255, .04);
  cursor: pointer;
}
.nav-toggle__bars { display: flex; flex-direction: column; gap: 5px; width: 18px; }
.nav-toggle__bars span { display: block; height: 2px; border-radius: 2px; background: var(--text-hi); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:first-child { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars span:last-child { transform: translateY(-3.5px) rotate(-45deg); }

.nav-scrim { position: fixed; inset: 0; z-index: 40; background: rgba(4, 7, 16, .6); -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px); }
.nav-scrim[hidden] { display: none; }

/* ---------- Hero ---------- */
.hero {
  position: relative;
  overflow: hidden;
  padding-top: 72px;
  padding-bottom: 88px;
  background: linear-gradient(180deg, #0A1024 0%, var(--ink-900) 60%, var(--ink-950) 100%);
}
.hero__grid-bg {
  position: absolute; inset: 0; z-index: 0; pointer-events: none;
  background-image:
    linear-gradient(to right, rgba(148, 168, 214, .07) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(148, 168, 214, .07) 1px, transparent 1px);
  background-size: 64px 64px;
  -webkit-mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
  mask-image: radial-gradient(ellipse 80% 60% at 50% 0%, #000 30%, transparent 75%);
}
.hero__in {
  display: grid;
  grid-template-columns: minmax(0, 1.02fr) minmax(0, .98fr);
  align-items: center;
  gap: 56px;
}

.hero__chips { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 26px; }

.h1,
.h1.h1 {
  font-size: clamp(34px, 4.2vw, 56px);
  line-height: 1.06;
  font-weight: 800;
  letter-spacing: -.035em;
  color: var(--text-hi);
  text-wrap: balance;
  max-width: none;
}
.h1 .nw { white-space: nowrap; }

.hero__lede {
  margin-top: 24px;
  font-size: 18.5px;
  line-height: 1.65;
  color: var(--text-dim);
  max-width: 52ch;
}
.hero__lede strong { color: var(--text-hi); font-weight: 600; }

.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }

.hero__trust { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 30px; padding: 0; }
.hero__trust .chip { font-size: 12.5px; padding: 6px 12px 6px 9px; }
.hero__trust .chip .i { color: var(--mint); }
.hero__note { margin-top: 12px; font-size: 13.5px; color: var(--text-dim); }

/* --- Console mockup --- */
.hero__visual { position: relative; min-width: 0; }
.console {
  position: relative;
  margin: 0;
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, rgba(24, 36, 68, .92) 0%, rgba(10, 16, 32, .96) 100%);
  box-shadow: var(--shadow-card), 0 40px 90px -40px rgba(46, 107, 255, .5);
  overflow: hidden;
}
.console__side {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  padding: 12px 0;
  background: rgba(7, 11, 24, .72);
  border-right: 1px solid var(--line);
}
.console__logo { width: 22px; height: 22px; border-radius: var(--r-xs); margin-bottom: 8px; }
.console__nav { width: 28px; height: 28px; border-radius: var(--r-xs); display: grid; place-items: center; color: var(--text-dim); }
.console__nav .i { width: 15px; height: 15px; }
.console__nav.on { color: #BFD2FF; background: var(--brand-soft); }
.console__main { min-width: 0; }
.console__head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(7, 11, 24, .4);
}
.console__title { font-size: 12.5px; font-weight: 600; color: var(--text-hi); letter-spacing: -.01em; }
.console__live { margin-left: auto; display: inline-flex; align-items: center; gap: 6px; color: #9FF3D0; font-weight: 600; font-size: 11px; letter-spacing: .04em; text-transform: uppercase; }
.console__live .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); box-shadow: 0 0 0 3px rgba(56, 232, 168, .18); }

.console__body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-rows: 1fr;
  gap: 10px;
  padding: 12px;
}
.panel {
  min-width: 0;
  border-radius: var(--r-md);
  border: 1px solid var(--line);
  background: rgba(17, 26, 48, .82);
  padding: 12px 13px;
  display: flex;
  flex-direction: column;
}
.panel__head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.panel__label { font-size: 11px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: var(--text-hi); }
.panel__meta { font-size: 10.5px; color: var(--text-dim); white-space: nowrap; }
.panel__foot { margin-top: auto; padding-top: 10px; font-size: 10.5px; color: var(--text-dim); max-width: none; }

.bar { height: 6px; border-radius: var(--r-pill); background: rgba(148, 168, 214, .14); overflow: hidden; }
.bar > span {
  display: block; height: 100%; width: var(--w, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #3f78ff, #5B8DFF);
  transform-origin: left center;
  transition: width .9s var(--ease-out);
}
.bar--win > span { background: linear-gradient(90deg, #2E6BFF, var(--cyan)); box-shadow: 0 0 12px rgba(34, 211, 238, .5); }

.cvr-legend { display: flex; justify-content: space-between; gap: 8px; font-size: 10.5px; color: var(--text-dim); margin-bottom: 10px; }
.cvr-legend b { color: var(--text); font-weight: 600; }
.cvr-row + .cvr-row { margin-top: 9px; }
.cvr-row__top { display: flex; justify-content: space-between; align-items: center; margin-bottom: 5px; }
.cvr-row__name { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; color: var(--text); }
.cvr-row__tag { font-size: 10px; font-weight: 600; color: var(--text-dim); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 0 6px; }
.cvr-row__tag--win { color: #9FF3D0; border-color: rgba(56, 232, 168, .35); background: rgba(56, 232, 168, .08); }
.cvr-row__val { font-size: 14px; font-weight: 700; color: var(--text-hi); }
.cvr-row__val--win { color: var(--cyan); }

.spark { width: 100%; height: 34px; margin-top: 10px; }
.spark__line { fill: none; stroke: var(--cyan); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; opacity: .9; }
.spark__area { opacity: .9; }

.leads { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.leads__row { display: flex; align-items: center; gap: 8px; padding: 5px 6px; border-radius: var(--r-xs); background: rgba(255, 255, 255, .025); }
.leads__av { flex: 0 0 auto; width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-weight: 700; color: #fff; background: linear-gradient(135deg, #5B8DFF, #2E6BFF); }
.leads__av--2 { background: linear-gradient(135deg, #22D3EE, #2E6BFF); }
.leads__av--3 { background: linear-gradient(135deg, #38E8A8, #0E9F72); }
.leads__who { display: flex; flex-direction: column; min-width: 0; flex: 1; line-height: 1.25; }
.leads__name { font-size: 12px; font-weight: 600; color: var(--text-hi); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leads__src { font-size: 10px; color: var(--text-dim); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.leads__badge { flex: 0 0 auto; font-size: 9.5px; font-weight: 600; color: #BFD2FF; background: var(--brand-soft); border: 1px solid rgba(91, 141, 255, .28); border-radius: var(--r-pill); padding: 1px 6px; }

.funnel { display: grid; gap: 6px; }
.funnel__step { display: grid; grid-template-columns: 26px 1fr 34px; align-items: center; gap: 8px; font-size: 10.5px; color: var(--text-dim); }
.funnel__step b { font-size: 10.5px; font-weight: 600; color: var(--text); text-align: right; }

.sp-pop { display: flex; align-items: center; gap: 8px; padding: 7px 9px; border-radius: var(--r-xs); background: rgba(46, 107, 255, .1); border: 1px solid rgba(91, 141, 255, .26); }
.sp-pop__icon { width: 22px; height: 22px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--brand-soft); color: var(--brand-hi); flex: 0 0 auto; }
.sp-pop__icon .i { width: 14px; height: 14px; }
.sp-pop__text { font-size: 11px; color: var(--text); line-height: 1.35; }
.sp-pop__text b { color: var(--text-hi); }
.sp-settings { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.sp-settings span { font-size: 10px; color: var(--text-dim); border: 1px solid var(--line); border-radius: var(--r-pill); padding: 1px 7px; }

.console__note { margin-top: 14px; font-size: 12.5px; color: var(--text-dim); text-align: right; }
.console__hint { display: none; align-items: center; gap: 6px; font-size: 11.5px; color: var(--text-dim); margin-bottom: 8px; max-width: none; }
.console__hint .i { width: 14px; height: 14px; color: var(--brand-hi); }

/* ---------- Trust bar ---------- */
.trustbar { background: var(--ink-950); border-block: 1px solid var(--line); }
.trustbar__in { display: flex; align-items: center; justify-content: space-between; gap: 24px; padding-block: 22px; flex-wrap: wrap; }
.trustbar__list { display: flex; flex-wrap: wrap; gap: 10px 28px; margin: 0; padding: 0; list-style: none; }
.trustbar__list li { display: inline-flex; align-items: center; gap: 9px; font-size: 14px; font-weight: 600; color: var(--text); }
.trustbar__list .i { width: 19px; height: 19px; color: var(--brand-hi); }
.trustbar__maker { display: inline-flex; align-items: center; gap: 9px; margin: 0; font-size: 13.5px; color: var(--text-dim); max-width: none; }
.trustbar__maker > .i { width: 18px; height: 18px; color: var(--mint); }
.trustbar__maker b { color: var(--text-hi); font-weight: 600; }
.trustbar__maker a { display: inline-flex; align-items: center; gap: 3px; font-weight: 600; }

/* ---------- Bottom line ---------- */
.bottomline { background: var(--ink-950); border-top: 1px solid var(--line); }
.bottomline__in { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; padding-block: 28px; }
.bottomline__item { display: flex; align-items: flex-start; gap: 12px; min-width: 0; }
.bottomline__item .icon-box { flex: 0 0 auto; }
.bottomline__item > span:last-child { display: flex; flex-direction: column; min-width: 0; }
.bottomline__item b { font-size: 14.5px; font-weight: 600; color: var(--text-hi); line-height: 1.35; }
.bottomline__item > span:last-child > span { font-size: 12.5px; line-height: 1.45; color: var(--text-dim); margin-top: 3px; }

/* ---------- Problem ---------- */
.problem { background: var(--ink-900); }
.problem__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.problem__card { display: flex; flex-direction: column; align-items: flex-start; }
.problem__card p { margin-bottom: 0; }
.problem__card .icon-box { margin-bottom: 20px; color: var(--amber); background: rgba(255, 184, 77, .1); border-color: rgba(255, 184, 77, .24); }
.problem__card h3 { font-size: 18px; }
.problem__turn { margin-top: 36px; font-size: 17px; color: var(--text-dim); display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px; max-width: 76ch; }
.problem__turn .link-arrow { margin-top: 0; }

/* ---------- Solution / stack tabs ---------- */
.stack { display: grid; grid-template-columns: minmax(0, .82fr) minmax(0, 1.18fr); gap: 28px; align-items: start; }
.stack__rail { display: grid; gap: 10px; position: relative; }
.stack__tab {
  position: relative;
  display: grid;
  grid-template-columns: 38px 1fr;
  grid-template-areas: "num title" "num sub";
  column-gap: 12px;
  align-items: center;
  text-align: left;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--light-line);
  background: rgba(255, 255, 255, .55);
  color: var(--light-text);
  cursor: pointer;
  transition: background .2s var(--ease), border-color .2s var(--ease), box-shadow .2s var(--ease), transform .2s var(--ease);
}
.stack__tab:hover { background: #fff; border-color: #CBD8F0; transform: translateX(2px); }
.stack__num { grid-area: num; align-self: center; font-size: 13px; font-weight: 800; letter-spacing: .02em; color: var(--brand-deep); opacity: .8; }
.stack__t { grid-area: title; font-size: 16px; font-weight: 600; letter-spacing: -.01em; }
.stack__s { grid-area: sub; font-size: 12.5px; font-weight: 500; color: var(--light-dim); }
.stack__tab.is-active {
  background: #fff;
  border-color: rgba(46, 107, 255, .42);
  box-shadow: 0 14px 30px -18px rgba(27, 63, 204, .55), inset 3px 0 0 var(--brand);
}
.stack__tab.is-active .stack__num { opacity: 1; }

.stack__panels { min-width: 0; }
.stack__panel {
  background: #fff;
  border: 1px solid var(--light-line);
  border-radius: var(--r-lg);
  padding: 34px;
  box-shadow: var(--shadow-light);
  min-height: 330px;
  display: flex;
  flex-direction: column;
  animation: panelIn .32s var(--ease-out);
}
.stack__panel[hidden] { display: none; }
@keyframes panelIn { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
.stack__panel-head { margin-bottom: 22px; }
.stack__badge { display: inline-block; font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--brand-deep); margin-bottom: 10px; }
.stack__panel h3 { font-size: clamp(20px, 2vw, 24px); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--light-text); margin: 0; }
.stack__measure {
  margin-top: auto;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  align-self: flex-start;
  padding: 8px 14px;
  border-radius: var(--r-pill);
  background: var(--light-soft);
  border: 1px solid #D5E1FF;
  font-size: 13px;
  font-weight: 600;
  color: #24418F;
  max-width: 100%;
}
.stack__measure .i { width: 16px; height: 16px; color: var(--brand-deep); }
.stack__panel .checklist { margin-bottom: 26px; }
.stack__panel .checklist li { min-width: 0; }
.stack__panel .checklist li > span, .product__copy .checklist li > span { min-width: 0; overflow-wrap: anywhere; }

/* ---------- Products ---------- */
.products { background: var(--ink-950); overflow: hidden; padding-top: 72px; padding-bottom: 88px; }
.product {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 56px;
  align-items: center;
  padding-block: 44px;
  border-top: 1px solid var(--line);
}
.product:first-of-type { border-top: 0; padding-top: 8px; }
.product--right .product__copy { order: 2; }
.product--right .product__visual { order: 1; }
.product__kicker { display: flex; align-items: center; gap: 14px; margin-bottom: 18px; }
.product__no { font-size: 13px; font-weight: 800; letter-spacing: .14em; color: var(--brand-hi); }
.product__title { font-size: clamp(24px, 2.6vw, 32px); line-height: 1.15; font-weight: 700; letter-spacing: -.025em; color: var(--text-hi); margin: 0 0 10px; }
.product__pos { font-size: 17px; line-height: 1.6; color: var(--text); margin-bottom: 22px; max-width: 46ch; }
.product__copy .checklist { margin-bottom: 22px; }
.product__copy .checklist li { font-size: 14.5px; color: var(--text-dim); }
.product__copy .checklist li b { color: var(--text-hi); font-weight: 600; }
.product__fit {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-dim);
  padding: 11px 15px;
  border-radius: var(--r-pill);
  border: 1px dashed var(--line-strong);
  background: rgba(255, 255, 255, .025);
  max-width: none;
}
.product__fit .i { width: 17px; height: 17px; color: var(--cyan); margin-top: 2px; }

.product__visual { min-width: 0; }
.mock {
  border-radius: var(--r-xl);
  border: 1px solid var(--line-strong);
  background: linear-gradient(165deg, #131D36 0%, #0A1020 100%);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.mock__bar { display: flex; align-items: center; gap: 10px; padding: 11px 15px; border-bottom: 1px solid var(--line); font-size: 11.5px; color: var(--text-dim); background: rgba(7, 11, 24, .5); }
.mock__body { padding: 18px; }

/* Settings mock (Social proof / Chatbot — dạng bảng cài đặt dùng chung) */
.set-list { list-style: none; margin: 0; padding: 0; display: grid; }
.set-list li { display: grid; grid-template-columns: 1fr auto; gap: 12px; font-size: 12.5px; padding: 8px 0; border-bottom: 1px dashed var(--line); }
.set-list li:last-child { border-bottom: 0; }
.set-list span { color: var(--text-dim); }
.set-list b { color: var(--text-hi); font-weight: 600; white-space: nowrap; }

/* A/B mock */
.ab-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 14px; font-size: 11.5px; }
.ab-head__split { font-weight: 600; color: var(--brand-hi); background: var(--brand-soft); border-radius: 999px; padding: 2px 10px; }
.ab-head__note { color: var(--text-dim); }
.ab-variant { border: 1px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; background: rgba(17, 26, 48, .8); }
.ab-variant + .ab-variant { margin-top: 10px; }
.ab-variant--win { border-color: rgba(34, 211, 238, .34); background: rgba(34, 211, 238, .06); }
.ab-variant__top { display: flex; align-items: center; gap: 8px; margin-bottom: 9px; }
.ab-variant__top b { font-size: 14px; color: var(--text-hi); }
.ab-variant__pill { font-size: 10px; font-weight: 600; border-radius: 999px; padding: 1px 8px; border: 1px solid var(--line); color: var(--text-dim); }
.ab-variant__pill { color: #9FF3D0; border-color: rgba(56, 232, 168, .35); }
.ab-variant__pill--ctl { color: var(--text-dim); border-color: var(--line); }
.ab-variant__cvr { margin-left: auto; font-size: 16px; font-weight: 700; color: var(--cyan); }
.ab-variant__meta { margin-top: 8px; font-size: 10.5px; color: var(--text-dim); }
.ab-src { margin-top: 12px; border-top: 1px dashed var(--line-strong); padding-top: 12px; display: grid; gap: 6px; }
.ab-src__label { font-size: 10.5px; text-transform: uppercase; letter-spacing: .1em; color: var(--text-dim); font-weight: 600; }
.ab-src__row { display: flex; justify-content: space-between; font-size: 12px; }
.ab-src__k { font-style: normal; color: var(--text); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; }
.ab-src__row b { color: var(--text-hi); }

/* Social proof mock */
.sp-popup { display: flex; align-items: center; gap: 10px; padding: 11px 12px; border-radius: var(--r-md); background: #fff; color: #1A2438; box-shadow: 0 16px 32px -18px rgba(0, 0, 0, .7); }
.sp-popup__ic { width: 30px; height: 30px; border-radius: var(--r-xs); display: grid; place-items: center; background: var(--light-soft); color: var(--brand-deep); flex: 0 0 auto; }
.sp-popup__ic .i { width: 18px; height: 18px; }
.sp-popup__body { font-size: 12.5px; line-height: 1.35; flex: 1; min-width: 0; }
.sp-popup__body em { font-style: normal; color: #5A6884; font-size: 11.5px; display: block; }
.sp-popup__x { color: #8494B4; font-size: 16px; line-height: 1; padding: 4px; }
.sp-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 0; }
.sp-list li { display: flex; justify-content: space-between; gap: 12px; font-size: 12.5px; padding: 7px 0; border-bottom: 1px solid var(--line); }
.sp-list li span { color: var(--text-dim); }
.sp-list li b { color: var(--text-hi); font-weight: 600; white-space: nowrap; }
.sp-stats { margin-top: 12px; display: flex; gap: 16px; font-size: 11.5px; color: var(--text-dim); }
.sp-stats b { color: var(--cyan); font-weight: 700; margin-left: 4px; }

/* Chat mock */
.chat { display: flex; flex-direction: column; gap: 8px; }
.chat__steps { display: flex; align-items: center; gap: 6px; margin-bottom: 12px; font-size: 10.5px; color: var(--text-dim); }
.chat__steps i { flex: 1; height: 3px; border-radius: 2px; background: rgba(148, 168, 214, .18); }
.chat__steps i.on { background: var(--brand); }
.chat__steps i.done { background: var(--mint); }
.chat__msg { max-width: 84%; font-size: 12.5px; line-height: 1.45; padding: 9px 12px; border-radius: 14px; }
.chat__msg--bot { align-self: flex-start; background: rgba(24, 36, 68, .95); border: 1px solid var(--line); color: var(--text); border-bottom-left-radius: 4px; }
.chat__msg--me { align-self: flex-end; background: var(--grad-brand); color: #fff; border-bottom-right-radius: 4px; }
.chat__field { margin-top: 6px; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(91, 141, 255, .45); border-radius: 14px; padding: 6px 6px 6px 12px; background: rgba(11, 17, 34, .8); }
.chat__field-txt { font-size: 12.5px; color: var(--text-hi); flex: 1; letter-spacing: .04em; }
.chat__field-btn { font-size: 11.5px; font-weight: 600; color: #fff; background: var(--brand); border-radius: 10px; padding: 5px 12px; }
.chat__saved { margin-top: 14px; display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: #9FF3D0; background: rgba(56, 232, 168, .08); border: 1px solid rgba(56, 232, 168, .24); border-radius: var(--r-xs); padding: 8px 11px; }
.chat__saved b { font-weight: 700; }
.chat__saved .i { width: 16px; height: 16px; }

/* Quiz mock */
.quiz-progress { height: 5px; border-radius: 999px; background: rgba(148, 168, 214, .16); overflow: hidden; margin-bottom: 16px; }
.quiz-progress span { display: block; height: 100%; width: var(--w); background: var(--grad-brand); border-radius: inherit; }
.quiz-q { font-size: 14.5px; font-weight: 600; color: var(--text-hi); line-height: 1.4; margin-bottom: 14px; max-width: none; }
.quiz-opts { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.quiz-opt { display: flex; align-items: center; gap: 10px; font-size: 12.5px; color: var(--text); padding: 10px 12px; border-radius: var(--r-sm); border: 1px solid var(--line); background: rgba(17, 26, 48, .7); }
.quiz-opt.is-sel { border-color: rgba(91, 141, 255, .6); background: var(--brand-soft); color: var(--text-hi); }
.quiz-opt__radio { width: 15px; height: 15px; border-radius: 50%; border: 1.6px solid rgba(148, 168, 214, .5); flex: 0 0 auto; }
.quiz-opt.is-sel .quiz-opt__radio { border-color: var(--brand-hi); background: radial-gradient(circle, #fff 0 3px, var(--brand) 3.5px 100%); }
.quiz-meta { margin-top: 14px; display: flex; gap: 14px; font-size: 11px; color: var(--text-dim); }
.quiz-meta span { display: inline-flex; align-items: center; gap: 5px; }
.quiz-meta .i { width: 13px; height: 13px; }

.products__more {
  margin-top: 44px;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 12px;
  font-size: 15px;
  color: var(--text-dim);
  padding: 20px 24px;
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: rgba(255, 255, 255, .02);
  max-width: none;
}
.products__more b { color: var(--text-hi); }
.products__more .link-arrow { margin-top: 0; margin-left: auto; }

/* ---------- How it works ---------- */
.howto { background: linear-gradient(180deg, #FFFFFF 0%, var(--light-bg) 100%); border-block: 1px solid var(--light-line); }
.steps { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; margin: 0; padding: 0; list-style: none; }
.step { position: relative; height: 100%; background: #fff; border: 1px solid var(--light-line); border-radius: var(--r-lg); padding: 26px 24px 24px; box-shadow: var(--shadow-light); display: flex; flex-direction: column; align-items: flex-start; }
.step__bar { position: absolute; top: -1px; left: 24px; right: 24px; height: 3px; border-radius: 0 0 3px 3px; background: var(--grad-brand); opacity: .85; }
.step__no { font-size: 11.5px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--brand-deep); }
.step__when { display: inline-flex; align-items: center; gap: 6px; margin-top: 10px; font-size: 12.5px; font-weight: 600; color: var(--light-text); background: var(--light-soft); border-radius: var(--r-pill); padding: 3px 11px; }
.step__when .i { width: 14px; height: 14px; color: var(--brand-deep); }
.step h3 { font-size: 17px; line-height: 1.35; font-weight: 600; letter-spacing: -.01em; color: var(--light-text); margin: 16px 0 10px; }
.step__who, .step__out { font-size: 13.5px; line-height: 1.6; color: var(--light-dim); margin: 0; max-width: none; }
.step__who b { color: var(--light-text); font-weight: 600; }
.step__out { margin-top: 12px; padding-top: 12px; border-top: 1px solid var(--light-line); display: flex; gap: 8px; align-items: flex-start; }
.step__out .i { width: 16px; height: 16px; margin-top: 2px; color: var(--brand-deep); flex: 0 0 auto; }

.howto__note { margin-top: 28px; display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: var(--light-dim); background: #fff; border: 1px dashed #C9D7F2; border-radius: var(--r-md); padding: 14px 18px; max-width: none; }
.howto__note .i { width: 18px; height: 18px; color: var(--brand-deep); flex: 0 0 auto; margin-top: 1px; }

/* ---------- Measurement ---------- */
.measure { overflow: hidden; }
.measure__table-wrap { overflow-x: auto; border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(17, 26, 48, .55); -webkit-overflow-scrolling: touch; }
.measure__table { width: 100%; border-collapse: collapse; min-width: 640px; font-size: 14.5px; }
.measure__table-wrap::-webkit-scrollbar { height: 10px; }
.measure__table-wrap::-webkit-scrollbar-thumb { background: rgba(148, 168, 214, .3); border-radius: 999px; }
.measure__table caption { text-align: left; }
.measure__table thead th {
  text-align: left;
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;
  color: var(--text-dim);
  padding: 16px 20px;
  border-bottom: 1px solid var(--line-strong);
  background: rgba(7, 11, 24, .5);
}
.measure__table tbody th, .measure__table tbody td { padding: 16px 20px; border-bottom: 1px solid var(--line); vertical-align: top; color: var(--text); }
.measure__table tbody tr:last-child th, .measure__table tbody tr:last-child td { border-bottom: 0; }
.measure__table tbody tr { transition: background .16s var(--ease); }
.measure__table tbody tr:hover { background: rgba(46, 107, 255, .07); }
.measure__table tbody th { display: flex; align-items: center; gap: 10px; font-weight: 600; color: var(--text-hi); white-space: nowrap; width: 26%; }
.measure__table tbody th .i { width: 19px; height: 19px; color: var(--cyan); }
.measure__table tbody td:last-child { color: var(--text); }
.measure__table tbody td:nth-child(2) { color: var(--text-dim); }

.promise { margin-top: 28px; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; }
.promise__card { border-radius: var(--r-lg); border: 1px solid var(--line); background: rgba(17, 26, 48, .6); padding: 26px 28px; }
.promise__card h3 { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; color: var(--text-hi); margin: 0 0 16px; }
.promise__card h3 .i { width: 20px; height: 20px; color: var(--amber); }
.promise__card + .promise__card h3 .i, .promise__card:nth-child(2) h3 .i { color: var(--mint); }
.promise__card .checklist li { font-size: 14.5px; color: var(--text-dim); }

/* ---------- Security ---------- */
.secure__grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.secure__card { display: flex; flex-direction: column; align-items: flex-start; }
.secure__card .icon-box { margin-bottom: 18px; }
.secure__card h3 { font-size: 17px; }
.secure__figure { margin: 28px 0 0; }
.secure__figure img { width: 100%; height: auto; border-radius: var(--r-lg); border: 1px solid var(--light-line); box-shadow: var(--shadow-light); }
.where { margin-top: 28px; background: #fff; border: 1px solid var(--light-line); border-radius: var(--r-lg); padding: 30px 32px; box-shadow: var(--shadow-light); }
.where h3 { display: flex; align-items: center; gap: 10px; font-size: 18px; font-weight: 700; letter-spacing: -.01em; color: var(--light-text); margin: 0 0 18px; }
.where h3 .i { width: 20px; height: 20px; color: var(--brand-deep); }
.where__list { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.where__list li { display: flex; gap: 10px; font-size: 14px; line-height: 1.6; color: var(--light-dim); }
.where__list li b { color: var(--light-text); font-weight: 600; }
.where__list .i { width: 18px; height: 18px; color: var(--brand-deep); flex: 0 0 auto; margin-top: 3px; }
.where__more { margin-top: 18px; font-size: 13.5px; color: var(--light-dim); }
.where__more a { font-weight: 600; color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Honesty ---------- */
.honesty { background: var(--ink-900); }
.honesty__in { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: start; }
.honesty__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.honesty__list li {
  display: flex; gap: 12px; align-items: flex-start;
  font-size: 15px; line-height: 1.6; color: var(--text-dim);
  background: rgba(255, 255, 255, .025);
  border: 1px solid var(--line);
  border-left: 3px solid rgba(255, 107, 107, .55);
  border-radius: var(--r-sm);
  padding: 15px 18px;
}
.honesty__list li b { color: var(--text-hi); font-weight: 600; }
.honesty__list .i { width: 18px; height: 18px; color: var(--red); flex: 0 0 auto; margin-top: 2px; }
.honesty__turn { margin-top: 24px; font-size: 16px; color: var(--text); font-style: normal; border-left: 2px solid var(--brand-hi); padding-left: 16px; }

/* ---------- Domains ---------- */
.dns { background: #fff; border: 1px solid var(--light-line); border-radius: var(--r-xl); padding: 28px; box-shadow: var(--shadow-light); }
.dns__root {
  display: flex; align-items: center; gap: 14px;
  border-radius: var(--r-lg);
  border: 1px solid rgba(46, 107, 255, .28);
  background: linear-gradient(135deg, #F1F5FF 0%, #EAF5FF 100%);
  padding: 16px 20px;
  flex-wrap: wrap;
}
.dns__root-icon { width: 42px; height: 42px; border-radius: var(--r-sm); display: grid; place-items: center; background: var(--grad-brand); color: #fff; flex: 0 0 auto; }
.dns__root-icon .i { width: 22px; height: 22px; }
.dns__root-text { display: flex; flex-direction: column; min-width: 0; flex: 1; }
.dns__root-text b { font-size: 16px; font-weight: 700; letter-spacing: -.01em; color: var(--light-text); }
.dns__root-text em { font-style: normal; font-size: 12.5px; color: var(--light-dim); }

.dns__branches { list-style: none; margin: 0; padding: 16px 0 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.dns__branch {
  position: relative;
  display: flex; flex-direction: column; align-items: flex-start; gap: 6px;
  padding: 16px 18px;
  border-radius: var(--r-md);
  border: 1px solid var(--light-line);
  background: var(--light-bg);
}
.dns__branch::before {
  content: "";
  position: absolute; top: -17px; left: 26px; width: 1px; height: 16px;
  background: #C6D4EE;
}
.dns__branch-name { display: inline-flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 600; color: var(--light-text); letter-spacing: -.005em; }
.dns__branch-name .i { width: 16px; height: 16px; color: var(--brand-deep); }
.dns__branch-desc { font-size: 12.5px; color: var(--light-dim); }

.dns__facts { list-style: none; margin: 20px 0 0; padding: 18px 0 0; border-top: 1px solid var(--light-line); display: flex; flex-wrap: wrap; gap: 10px 24px; }
.dns__facts li { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--light-text); }
.dns__facts .i { width: 16px; height: 16px; color: var(--brand-deep); }

.status { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: #5A6884; background: #EDF1F9; border: 1px solid #DCE4F2; border-radius: var(--r-pill); padding: 2px 10px; }
.status .dot { width: 6px; height: 6px; border-radius: 50%; background: var(--mint); }
/* Đang chạy: chip đặc, dot mint, chữ đậm */
.status--on { color: #0B6B4A; background: #E6F9F1; border-color: #BFEEDC; font-weight: 700; }
.status--on .dot { background: #12B981; box-shadow: 0 0 0 3px rgba(18, 185, 129, .18); }
/* Sẵn sàng khi triển khai: chỉ viền mảnh, không dot, chữ dim */
.status--ready { color: #5A6884; background: transparent; border: 1px solid #C9D5E8; border-style: dashed; font-weight: 500; }

/* ---------- FAQ ---------- */
.faq { background: var(--ink-950); }
.faq__in { display: grid; grid-template-columns: minmax(0, .72fr) minmax(0, 1.28fr); gap: 56px; align-items: start; }
.faq__list { display: grid; gap: 10px; }
.faq__item {
  border: 1px solid var(--line);
  border-radius: var(--r-md);
  background: rgba(17, 26, 48, .55);
  transition: border-color .2s var(--ease), background .2s var(--ease);
}
.faq__item[open] { border-color: var(--line-strong); background: rgba(24, 36, 68, .7); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  list-style: none;
  cursor: pointer;
  padding: 18px 22px;
  font-size: 16px;
  font-weight: 600;
  color: var(--text-hi);
  letter-spacing: -.01em;
  transition: color .16s var(--ease);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary:hover { color: #fff; }
.faq__ic { position: relative; flex: 0 0 auto; width: 22px; height: 22px; border-radius: 50%; border: 1px solid var(--line-strong); }
.faq__ic::before, .faq__ic::after { content: ""; position: absolute; top: 50%; left: 50%; background: var(--brand-hi); border-radius: 2px; transform: translate(-50%, -50%); transition: transform .2s var(--ease), opacity .2s var(--ease); }
.faq__ic::before { width: 10px; height: 2px; }
.faq__ic::after { width: 2px; height: 10px; }
.faq__item[open] .faq__ic { border-color: rgba(91, 141, 255, .5); background: var(--brand-soft); }
.faq__item[open] .faq__ic::after { transform: translate(-50%, -50%) rotate(90deg); opacity: 0; }
.faq__a { padding: 0 22px 20px; }
.faq__disclaimer { margin-top: 18px; font-size: 13px; color: var(--text-dim); font-style: normal; padding-left: 2px; max-width: 62ch; }
.faq__a p { font-size: 15px; line-height: 1.7; color: var(--text-dim); max-width: 68ch; }

/* ---------- Contact ---------- */
.contact { background: linear-gradient(180deg, var(--ink-900) 0%, #0A1024 100%); overflow: hidden; }
.contact__in { display: grid; grid-template-columns: minmax(0, .95fr) minmax(0, 1.05fr); gap: 56px; align-items: start; }
.contact__trust { list-style: none; margin: 30px 0 0; padding: 0; display: grid; gap: 12px; }
.contact__trust li { display: flex; align-items: flex-start; gap: 11px; font-size: 15px; color: var(--text-dim); }
.contact__trust li b { color: var(--text-hi); font-weight: 600; }
.contact__trust .i { width: 19px; height: 19px; color: var(--mint); margin-top: 2px; }

.contact__info { margin-top: 32px; padding-top: 26px; border-top: 1px solid var(--line); }
.contact__info-title { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.contact__row { display: flex; align-items: center; gap: 12px; padding: 8px 0; text-decoration: none; color: var(--text); }
.contact__row span:last-child { display: flex; flex-direction: column; line-height: 1.35; }
.contact__row b { font-size: 11.5px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--text-dim); }
.contact__row em { font-style: normal; font-size: 15px; font-weight: 600; color: var(--text-hi); }
a.contact__row:hover em { color: var(--brand-hi); }
.contact__row[hidden] { display: none; }

/* form card */
.contact__panel { min-width: 0; }
.form-card {
  background: var(--light-card);
  color: var(--light-text);
  border: 1px solid var(--light-line);
  border-radius: var(--r-xl);
  padding: 34px;
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9);
}
.form-card__head h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--light-text); margin: 0 0 6px; }
.form-card__head p { font-size: 14px; color: var(--light-dim); }
.form-card__head .req, .field .req { color: #C62F2F; font-weight: 700; }
.form__status { display: none; }
.form__status:not(:empty) {
  display: block;
  margin: 18px 0 4px;
  padding: 12px 14px;
  border-radius: var(--r-sm);
  font-size: 14px;
  line-height: 1.5;
  color: #8E2323;
  background: #FDECEC;
  border: 1px solid #F6CBCB;
}
.form__status:not(:empty)::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #D64545; margin-right: 8px; vertical-align: 1px; }

.form { margin-top: 20px; display: grid; gap: 16px; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.field { display: flex; flex-direction: column; min-width: 0; }
.field label { font-size: 13.5px; font-weight: 600; color: var(--light-text); margin-bottom: 7px; }
.field .opt { font-weight: 500; color: var(--light-dim); }
.field input, .field select, .field textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 14px;
  border-radius: var(--r-xs);
  border: 1px solid #D3DCEB;
  background: #FBFCFE;
  color: var(--light-text);
  font-size: 15px;
  transition: border-color .16s var(--ease), box-shadow .16s var(--ease), background .16s var(--ease);
}
.field textarea { resize: vertical; min-height: 88px; line-height: 1.55; }
.field input::placeholder, .field textarea::placeholder { color: #93A0B7; }
.field input:hover, .field select:hover, .field textarea:hover { border-color: #B9C8E0; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--brand);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(46, 107, 255, .16);
}
.field input[aria-invalid="true"], .field select[aria-invalid="true"], .field textarea[aria-invalid="true"] {
  border-color: #D64545;
  background: #FFF8F8;
}
.field input[aria-invalid="true"]:focus, .field select[aria-invalid="true"]:focus, .field textarea[aria-invalid="true"]:focus { box-shadow: 0 0 0 3px rgba(214, 69, 69, .18); }

.field .select-wrap { position: relative; }
.field .select-wrap select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select-wrap__ic { position: absolute; right: 14px; top: 50%; transform: translateY(-50%); width: 14px; height: 14px; color: var(--light-dim); pointer-events: none; }

.field__hint { margin-top: 6px; font-size: 12.5px; color: var(--light-dim); max-width: none; }
.field__err { display: none; }
.field__err:not(:empty) { display: block; margin-top: 6px; font-size: 12.5px; font-weight: 500; color: #C62F2F; max-width: none; }

/* honeypot — không dùng display:none để bot vẫn "thấy" field */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; opacity: 0; pointer-events: none; }

.form__consent { font-size: 12.5px; line-height: 1.55; color: var(--light-dim); margin-top: 0; max-width: none; }
.form__consent + .btn { margin-top: 2px; }
.form-card__foot { margin-top: 18px; padding-top: 16px; border-top: 1px solid var(--light-line); font-size: 12.5px; color: var(--light-dim); text-align: center; max-width: none; }
.form-card__foot a { color: var(--brand-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }

.form.is-loading .btn__label::after { content: "…"; }
.form.is-loading .btn .i { display: none; }

.thanks { text-align: center; padding: 26px 6px 6px; animation: panelIn .36s var(--ease-out); }
.thanks[hidden] { display: none; }
.thanks:focus { outline: none; }
.thanks__ic { display: inline-grid; place-items: center; width: 62px; height: 62px; border-radius: 50%; background: #E6F9F1; color: #0E9F72; margin-bottom: 18px; }
.thanks__ic .i { width: 30px; height: 30px; stroke-width: 2.2; }
.thanks h3 { font-size: 22px; font-weight: 700; letter-spacing: -.02em; color: var(--light-text); margin: 0 0 10px; }
.thanks p { color: var(--light-dim); font-size: 15px; margin-inline: auto; }
.thanks code { background: #EDF2FF; border-color: #DCE5F7; color: #24418F; font-weight: 600; }
.thanks__note { margin-top: 8px; font-size: 13px !important; }
.thanks .btn { margin-top: 22px; color: #14213D; border-color: #C9D7F2; background: #fff; }
.thanks .btn:hover { background: #F3F6FD; }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink-950); border-top: 1px solid var(--line); padding-top: 64px; }
.footer__in { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 40px; }
.footer__brand p { margin-top: 16px; font-size: 14px; color: var(--text-dim); max-width: 34ch; line-height: 1.65; }
.footer__col h3 { font-size: 12px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin: 0 0 16px; }
.footer__col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 11px; }
.footer__col li { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.footer__col a { font-size: 14.5px; color: var(--text); transition: color .16s var(--ease); }
.footer__col a:hover { color: var(--text-hi); text-decoration: underline; text-underline-offset: 3px; }
.footer__col a .i { display: inline; }
.footer__tag { font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #A9BCE0; border: 1px solid var(--line); border-radius: var(--r-pill); padding: 1px 7px; }
.footer__tag--on { color: #9FF3D0; border-color: rgba(56, 232, 168, .3); }
.footer__bottom { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px 24px; margin-top: 48px; padding-block: 22px; border-top: 1px solid var(--line); }
.footer__bottom p { font-size: 13px; color: var(--text-dim); max-width: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .hero__in { gap: 40px; }
}

/* Tablet 641–1023: giữ h2 ≥ 32px, không nhỏ hơn h1 mobile */
@media (min-width: 641px) and (max-width: 1023px) {
  h2.h2.h2 { font-size: 34px; }
  .h1, .h1.h1 { font-size: clamp(42px, 5.6vw, 54px); }
}

/* Desktop: 2 dòng H1, dấu chấm không treo lẻ */
@media (min-width: 1024px) {
  .h1, .h1.h1 { max-width: 32ch; }
}

@media (max-width: 1023px) {
  /* nav → drawer */
  .nav-toggle { display: inline-flex; }
  .nav {
    position: fixed;
    inset: var(--header-h) 0 0 0;
    z-index: 45;
    margin: 0;
    padding: 24px var(--gutter) 40px;
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    background: var(--ink-950);
    overflow-y: auto;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity .22s var(--ease), transform .22s var(--ease), visibility .22s;
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; }
  .nav__list { flex-direction: column; align-items: stretch; gap: 2px; }
  .nav__link { display: block; padding: 15px 14px; font-size: 18px; font-weight: 600; color: var(--text-hi); border-bottom: 1px solid var(--line); border-radius: 0; }
  .nav__link:hover, .nav__link.is-active { background: transparent; color: var(--brand-hi); }
  .nav__cta { margin-top: 22px; min-height: 52px; font-size: 16px; }
  body.nav-open .site-header { background: var(--ink-950); }

  .hero { padding-top: 48px; padding-bottom: 64px; }
  .hero__in { grid-template-columns: minmax(0, 1fr); gap: 44px; }
  .h1 { max-width: none; }
  .hero__visual { max-width: 640px; margin-inline: auto; width: 100%; }
  .console { transform: none; }
  .console__note { text-align: left; }

  .trustbar__in { justify-content: flex-start; }

  .problem__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .stack { grid-template-columns: minmax(0, 1fr); }
  .stack__rail { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 6px; scrollbar-width: thin; }
  .stack__tab { flex: 0 0 auto; grid-template-columns: auto 1fr; padding: 12px 16px; }
  .stack__tab:hover { transform: none; }
  .stack__s { display: none; }
  .stack__panel { padding: 26px; min-height: 0; }

  .product, .product--right { grid-template-columns: minmax(0, 1fr); gap: 32px; padding-block: 40px; }
  .product--right .product__copy, .product--right .product__visual { order: 0; }
  .product__visual { max-width: 560px; }

  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .secure__grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bottomline__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .where__list { grid-template-columns: minmax(0, 1fr); gap: 14px; }

  .honesty__in, .faq__in, .contact__in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
  .contact__panel { max-width: 640px; }

  .footer__in { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
}

@media (max-width: 640px) {
  h1, h2.h2 { text-wrap: pretty; }
  .hero, .products, .measure, .contact, .problem, .faq, .honesty { overflow-x: clip; }
  .hero { padding-top: 36px; }
  .hero__chips { gap: 8px; margin-bottom: 20px; }
  .hero__chips .chip { font-size: 11.5px; }
  .h1, .h1.h1 { font-size: 34px; letter-spacing: -.028em; line-height: 1.1; max-width: none; }
  .hero__lede { font-size: 16.5px; margin-top: 18px; }
  .hero__cta { margin-top: 20px; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; }
  .hero__cta .btn { flex: 1 1 100%; width: 100%; }
  .hero__cta .link-cta { min-height: 36px; padding: 2px 2px; font-size: 14.5px; }
  .hero__trust { display: none; }
  .hero__trust { margin-top: 20px; flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; padding-bottom: 2px; }
  .hero__trust::-webkit-scrollbar { display: none; }
  .hero__trust .chip { flex: 0 0 auto; font-size: 11.5px; padding: 5px 10px 5px 8px; }

  /* S3: trên mobile chỉ giữ 2 panel ngay sau hero, cuộn ngang snap để xem tiếp */
  .console { grid-template-columns: 38px minmax(0, 1fr); }
  .console__nav:nth-of-type(n+4) { display: none; }
  .console__body {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding-bottom: 10px;
    scrollbar-width: none;
  }
  .console__body::-webkit-scrollbar { display: none; }
  .panel { flex: 0 0 82%; scroll-snap-align: start; }
  .console__body::after { content: ""; flex: 0 0 1px; }
  .console__note { text-align: left; margin-top: 10px; }
  .console__hint { display: flex; }

  .trustbar__list { gap: 8px 18px; }
  .trustbar__list li { font-size: 13px; }
  .trustbar__maker { font-size: 12.5px; }

  .problem__grid { grid-template-columns: minmax(0, 1fr); }
  .bottomline__in { grid-template-columns: minmax(0, 1fr); gap: 14px; padding-block: 22px; }
  .problem__card { padding: 22px; }
  .problem__turn { font-size: 16px; flex-direction: column; align-items: flex-start; }

  .stack__panel { padding: 22px 20px; }
  .stack__measure { font-size: 12.5px; border-radius: var(--r-sm); }

  .product__pos { font-size: 16px; }
  .mock__body { padding: 14px; }
  .products__more { flex-direction: column; align-items: flex-start; }
  .products__more .link-arrow { margin-left: 0; }

  .steps { grid-template-columns: minmax(0, 1fr); }

  .measure__table tbody th { white-space: normal; width: auto; }

  .promise { grid-template-columns: minmax(0, 1fr); }
  .promise__card { padding: 22px; }

  .secure__grid { grid-template-columns: minmax(0, 1fr); }
  .where { padding: 22px; }

  .dns { padding: 18px; }
  .dns__branches { grid-template-columns: minmax(0, 1fr); }
  .dns__root { padding: 14px; gap: 12px; }
  .dns__root .status { margin-left: 54px; }

  .faq__item summary { padding: 15px 16px; font-size: 15px; }
  .faq__a { padding: 0 16px 16px; }

  .form-card { padding: 22px 18px; border-radius: var(--r-lg); }
  .form__row { grid-template-columns: minmax(0, 1fr); gap: 16px; }

  .footer__in { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .footer__brand { grid-column: 1 / -1; }
  .footer__bottom { flex-direction: column; margin-top: 32px; }
}

@media (max-width: 480px) {
  .footer__col { grid-column: 1 / -1; }
  .footer__col ul { gap: 9px; }
}

@media (max-width: 380px) {
  .brand__sub { font-size: 9.5px; letter-spacing: .1em; }
  .h1, .h1.h1 { font-size: 32px; }
  .panel { flex-basis: 88%; }
}

/* ---------- Trang phụ: privacy / 404 ---------- */
.legal-hero { padding-top: 72px; padding-bottom: 56px; overflow: hidden; }
.legal-h1 { font-size: clamp(32px, 4.4vw, 54px); max-width: 22ch; margin: 0; }
.legal__meta { margin-top: 22px; font-size: 13.5px; color: var(--text-dim); max-width: none; }
.legal__meta a { font-weight: 600; }

.legal__in { display: grid; grid-template-columns: 260px minmax(0, 1fr); gap: 56px; align-items: start; }
.legal__toc { position: sticky; top: calc(var(--header-h) + 24px); background: #fff; border: 1px solid var(--light-line); border-radius: var(--r-lg); padding: 20px 22px; box-shadow: var(--shadow-light); }
.legal__toc-title { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--light-dim); margin-bottom: 12px; }
.legal__toc ol { margin: 0; padding: 0; list-style: none; display: grid; gap: 8px; counter-reset: none; }
.legal__toc a { font-size: 13.5px; font-weight: 500; color: var(--light-text); line-height: 1.4; display: block; padding: 2px 0; transition: color .16s var(--ease); }
.legal__toc a:hover { color: var(--brand-deep); text-decoration: underline; text-underline-offset: 3px; }

.legal__body { min-width: 0; max-width: 760px; }
.legal__body section { padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--light-line); scroll-margin-top: calc(var(--header-h) + 24px); }
.legal__body section:last-of-type { border-bottom: 0; }
.legal__body h2 { font-size: clamp(20px, 2.2vw, 25px); line-height: 1.25; font-weight: 700; letter-spacing: -.02em; color: var(--light-text); margin: 0 0 14px; }
.legal__body p { font-size: 15.5px; line-height: 1.75; color: var(--light-dim); margin-bottom: 12px; }
.legal__body p:last-child { margin-bottom: 0; }
.legal__body ul { margin: 0 0 14px; padding-left: 20px; display: grid; gap: 9px; }
.legal__body li { font-size: 15px; line-height: 1.7; color: var(--light-dim); }
.legal__body strong { color: var(--light-text); font-weight: 600; }
.legal__body a { color: var(--brand-deep); font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.legal__back { margin-top: 8px; }

.nav--static { gap: 12px; }
a.nav__link { color: var(--text); }

.error-page { min-height: calc(100vh - var(--header-h)); display: flex; align-items: center; padding-block: 80px; overflow: hidden; }
.error-page__in { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .9fr); gap: 56px; align-items: center; }
.error-code { font-size: clamp(72px, 12vw, 148px); font-weight: 800; letter-spacing: -.05em; line-height: .9; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; font-variant-numeric: tabular-nums; }
.error-page h1 { font-size: clamp(26px, 3vw, 38px); line-height: 1.15; font-weight: 800; letter-spacing: -.03em; color: var(--text-hi); margin: 18px 0 14px; max-width: 20ch; }
.error-page p { font-size: 17px; color: var(--text-dim); max-width: 48ch; }
.error-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 30px; }
.error-links { background: rgba(17, 26, 48, .6); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px; }
.error-links p { font-size: 11.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 14px; }
.error-links ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.error-links a { display: flex; align-items: center; gap: 10px; font-size: 15px; font-weight: 600; color: var(--text); padding: 6px 0; transition: color .16s var(--ease), gap .16s var(--ease); }
.error-links a:hover { color: var(--brand-hi); gap: 14px; }
.error-links .i { width: 17px; height: 17px; color: var(--brand-hi); }

@media (max-width: 1023px) {
  .legal__in { grid-template-columns: minmax(0, 1fr); gap: 28px; }
  .legal__toc { position: static; }
  .legal__toc ol { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 18px; }
  .error-page__in { grid-template-columns: minmax(0, 1fr); gap: 36px; }
}

@media (max-width: 640px) {
  .legal-hero { padding-top: 40px; }
  .legal__toc ol { grid-template-columns: minmax(0, 1fr); }
  .legal__body p, .legal__body li { font-size: 15px; }
  .error-page { padding-block: 48px; }
  .error-actions .btn { flex: 1 1 100%; }
}

/* ---------- Tinh chỉnh cuối (QA round 2) ---------- */
/* Code token: không tách giữa chữ và dấu phẩy */
li { hanging-punctuation: first allow-end; }
/* Một dòng H1 trên desktop: cột chữ rộng hơn visual */
@media (min-width: 1024px) {
  .hero__in { grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr); }
  .h1, .h1.h1 { font-size: clamp(40px, 3.5vw, 54px); }
  .hero__lede { max-width: 46ch; }
}
/* Form: badge tiến trình bước chat — 2 hàng mobile khoảng cách gọn */
@media (max-width: 640px) {
  .product__fit { border-radius: var(--r-sm); }
  .mock__body { padding: 14px 12px; }
  .sp-popup { padding: 9px 10px; }
  .set-list li, .sp-list li { font-size: 12px; }
  .measure__table { min-width: 0; }
  .measure__table thead { display: none; }
  .measure__table, .measure__table tbody, .measure__table tr, .measure__table th, .measure__table td { display: block; width: 100%; }
  .measure__table-wrap { border: 0; background: transparent; overflow: visible; }
  .measure__table tbody tr {
    border: 1px solid var(--line);
    border-radius: var(--r-md);
    background: rgba(17, 26, 48, .6);
    padding: 4px 0;
    margin-bottom: 10px;
  }
  .measure__table tbody tr:hover { background: rgba(17, 26, 48, .6); }
  .measure__table tbody th, .measure__table tbody td { border-bottom: 0; padding: 6px 16px; }
  .measure__table tbody td::before { content: attr(data-label); display: block; font-size: 10.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 2px; }
}
