/* AI Role Platform page (ai-role-platform.html) — các section riêng của trang, tiền tố .ar-
   Thành phần dùng chung (avatar role, chip, tag, checklist) nằm trong ai-role/shared.css. */

.ar-hero svg,
.ar-section svg,
.ar-how svg,
.ar-final svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ── Layout chung ─────────────────────────────── */
.ar-section { padding: var(--section-padding) 0; }
.ar-section--tint { background: var(--emp-bg-light); }
.ar-section .section-header { margin-bottom: 36px; }

.ar-grid { display: grid; gap: 20px; }
.ar-grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.ar-grid--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.ar-grid--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

.ar-card {
  background: #fff;
  border: 1px solid var(--emp-border);
  border-radius: var(--ar-radius-card);
  padding: 24px;
  transition: border-color var(--transition), box-shadow var(--transition);
}
.ar-card:hover { border-color: #C7D7FE; box-shadow: var(--ar-shadow-float); }
.ar-card h3,
.ar-card h4 {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin: 0 0 8px;
  color: var(--emp-text-primary);
  font-weight: 600;
  line-height: 1.35;
}
.ar-card h3 { font-size: 1.125rem; }
.ar-card h4 { font-size: 1rem; }
.ar-card p { color: var(--emp-text-secondary); font-size: 0.9375rem; line-height: 1.65; }

.ar-card__icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 44px;
  height: 44px;
  margin-bottom: 16px;
  border-radius: 12px;
  background: #EFF6FF;
  color: var(--emp-primary);
}
.ar-card__icon svg { width: 22px; height: 22px; }
.ar-card__icon--sm { width: 40px; height: 40px; margin: 0; }

/* ── Hero ─────────────────────────────────────── */
.ar-hero { min-height: auto; padding: 72px 0 88px; }
.ar-hero h1 { font-size: clamp(2.25rem, 4vw, 3.25rem); }
.ar-hero .hero-sub { margin-bottom: 16px; }
.ar-hero__sign {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 28px;
  color: var(--emp-text-primary);
  font-size: 1rem;
  font-weight: 600;
  opacity: 0;
  animation: heroReveal 0.8s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.25s;
}
.ar-hero__sign svg { color: var(--emp-primary); }
.ar-hero .hero-visual-col { position: relative; }
.ar-hero .hero-visual-col::before {
  content: '';
  position: absolute;
  top: -40px;
  right: -40px;
  width: 320px;
  height: 320px;
  border-radius: 50%;
  background: radial-gradient(circle, rgb(17 84 237 / 0.12), transparent 70%);
  pointer-events: none;
}

/* Phòng họp minh họa: khung cửa sổ sáng, sân khấu video tối, kịch bản chạy bằng ai-role/hero-call.js */
.ar-call {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 480px;
  margin-left: auto;
  padding: 10px;
  border: 1px solid var(--emp-border);
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 40px 80px -40px rgb(15 23 42 / 0.45), 0 12px 24px -16px rgb(15 23 42 / 0.12);
  text-align: left;
  opacity: 0;
  animation: heroReveal 0.9s cubic-bezier(0.16, 1, 0.3, 1) forwards 0.35s;
}
.ar-call__bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  padding: 4px 6px 12px;
  font-size: 0.8125rem;
}
.ar-call__live {
  display: inline-flex;
  flex-shrink: 0;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border-radius: 999px;
  background: #F0FDF4;
  color: #15803D;
  font-weight: 600;
}
.ar-call__live > span:first-child {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
  animation: arPulse 1.6s ease-out infinite;
}
.ar-call__room {
  overflow: hidden;
  min-width: 0;
  color: var(--emp-text-primary);
  font-weight: 600;
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ar-call__apps { flex-shrink: 0; margin-left: auto; color: var(--emp-text-secondary); font-size: 0.75rem; }
.ar-call__clock {
  flex-shrink: 0;
  color: var(--emp-text-secondary);
  font-size: 0.75rem;
  font-variant-numeric: tabular-nums;
}

.ar-call__stage { padding: 8px; border-radius: 14px; background: #0B1220; }
.ar-call__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.ar-call__tile {
  position: relative;
  display: grid;
  place-items: center;
  aspect-ratio: 16 / 10;
  border-radius: 10px;
  background: radial-gradient(120% 100% at 50% 0%, #1E293B 0%, #111827 75%);
  box-shadow: inset 0 0 0 1px rgb(255 255 255 / 0.06);
  transition: box-shadow 0.35s ease, background 0.35s ease;
}
.ar-call__tile.is-speaking {
  background: radial-gradient(120% 100% at 50% 0%, #1D3A8A 0%, #111827 75%);
  box-shadow: inset 0 0 0 2px #3B82F6, 0 0 0 3px rgb(59 130 246 / 0.22);
}
.ar-call__avatar {
  position: relative;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: #EAF1FF;
  color: #1154ED;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  transition: transform 0.35s ease;
}
.ar-call__avatar[data-tone='amber'] { background: #FEF3C7; color: #B45309; }
.ar-call__avatar[data-tone='indigo'] { background: #EEF0FF; color: #4338CA; }
.ar-call__avatar[data-tone='teal'] { background: #DDF6F1; color: #0F766E; }
.ar-call__tile.is-speaking .ar-call__avatar { transform: scale(1.06); }
.ar-call__tile.is-speaking .ar-call__avatar::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid rgb(96 165 250 / 0.7);
  border-radius: 50%;
  animation: arRing 1.4s ease-out infinite;
}
.ar-call__tag {
  position: absolute;
  top: 8px;
  left: 8px;
  padding: 2px 7px;
  border-radius: 999px;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  line-height: 1.5;
}
.ar-call__tag--ai { background: rgb(59 130 246 / 0.2); color: #93C5FD; }
.ar-call__tag--human { background: rgb(245 158 11 / 0.18); color: #FCD34D; }
.ar-call__name {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
}
.ar-call__name > span:last-child {
  overflow: hidden;
  padding: 2px 7px;
  border-radius: 6px;
  background: rgb(0 0 0 / 0.45);
  white-space: nowrap;
  text-overflow: ellipsis;
}
.ar-call__mic {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgb(0 0 0 / 0.45);
  color: #64748B;
  transition: background 0.3s ease, color 0.3s ease;
}
.ar-call__mic svg { width: 11px; height: 11px; stroke-width: 2.2; }
.ar-call__tile.is-speaking .ar-call__mic { background: #2563EB; color: #fff; }
.ar-call__tile .ar-wave {
  position: absolute;
  top: 9px;
  right: 10px;
  height: 14px;
  opacity: 0;
  transition: opacity 0.25s ease;
}
.ar-call__tile.is-speaking .ar-wave { opacity: 1; }

.ar-call__caption {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-height: 86px;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgb(255 255 255 / 0.06);
}
.ar-call__caption-head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  color: #93C5FD;
  font-size: 0.6875rem;
  font-weight: 700;
}
.ar-call__cc {
  padding: 0 4px;
  border: 1px solid rgb(255 255 255 / 0.28);
  border-radius: 4px;
  color: #CBD5E1;
  font-size: 0.5625rem;
  letter-spacing: 0.04em;
}
.ar-call__src {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  overflow: hidden;
  min-width: 0;
  margin-left: auto;
  padding: 2px 8px;
  border: 1px solid rgb(34 197 94 / 0.32);
  border-radius: 999px;
  background: rgb(34 197 94 / 0.12);
  color: #86EFAC;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  transform: translateY(3px);
  transition: opacity 0.35s ease, transform 0.35s ease;
}
.ar-call__src span { overflow: hidden; text-overflow: ellipsis; }
.ar-call__src svg { flex-shrink: 0; width: 11px; height: 11px; stroke-width: 2.2; }
.ar-call__src.is-shown { opacity: 1; transform: none; }
.ar-call__caption p { margin: 0; color: #F1F5F9; font-size: 0.875rem; line-height: 1.55; }
.ar-call__caption p.is-typing::after {
  content: '';
  display: inline-block;
  width: 2px;
  height: 1em;
  margin-left: 2px;
  vertical-align: -2px;
  background: #93C5FD;
  animation: arCaret 0.9s steps(1) infinite;
}

.ar-call__controls { display: flex; justify-content: center; gap: 8px; padding-top: 10px; }
.ar-call__btn {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.1);
  color: #E2E8F0;
}
.ar-call__btn svg { width: 16px; height: 16px; }
.ar-call__btn.is-on { background: rgb(59 130 246 / 0.25); color: #93C5FD; }
.ar-call__btn--end { width: 48px; border-radius: 999px; background: #DC2626; color: #fff; }

/* Biên bản trồi ra khi thư ký AI chốt việc; người thật ký ở bước cuối.
   Nằm đè cột phải (CFO, CMO đã nói xong) để không che phụ đề và người đang nói. */
.ar-mom {
  position: absolute;
  z-index: 2;
  top: 64px;
  right: -40px;
  width: 256px;
  padding: 14px;
  border: 1px solid var(--emp-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 24px 48px -20px rgb(15 23 42 / 0.35);
  opacity: 0;
  transform: translateY(14px) scale(0.97);
  transition: opacity 0.4s ease, transform 0.5s cubic-bezier(0.16, 1, 0.3, 1);
  pointer-events: none;
}
.ar-mom.is-open { opacity: 1; transform: none; }
.ar-mom__head { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; font-size: 0.8125rem; }
.ar-mom__head svg { flex-shrink: 0; color: var(--emp-primary); }
.ar-mom__head strong { color: var(--emp-text-primary); font-weight: 600; }
.ar-mom__rec {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  margin-left: auto;
  color: #DC2626;
  font-size: 0.6875rem;
  font-weight: 600;
}
.ar-mom__rec > span:first-child { width: 6px; height: 6px; border-radius: 50%; background: currentColor; animation: arBlink 1.2s ease-in-out infinite; }
.ar-mom__list { list-style: none; display: grid; gap: 10px; margin: 0 0 12px; padding: 0; }
.ar-mom__list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  opacity: 0;
  transform: translateX(-8px);
  transition: opacity 0.35s ease, transform 0.45s cubic-bezier(0.16, 1, 0.3, 1);
}
.ar-mom__list li.is-in { opacity: 1; transform: none; }
.ar-mom__check {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  margin-top: 1px;
  border-radius: 50%;
  background: #DBE6FE;
  color: var(--emp-primary);
}
.ar-mom__check svg { width: 11px; height: 11px; stroke-width: 3; }
.ar-mom__list strong { display: block; color: var(--emp-text-primary); font-size: 0.8125rem; font-weight: 600; line-height: 1.35; }
.ar-mom__list small { color: var(--emp-text-secondary); font-size: 0.6875rem; }
.ar-mom__stamp {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 10px;
  border: 1px solid #FDE68A;
  border-radius: 999px;
  background: #FFFBEB;
  color: #B45309;
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
  transition: background 0.3s ease, border-color 0.3s ease, color 0.3s ease;
}
.ar-mom__stamp.is-signed { border-color: #BBF7D0; background: #F0FDF4; color: #15803D; animation: arStamp 0.45s cubic-bezier(0.16, 1, 0.3, 1); }

.ar-wave { display: flex; align-items: center; gap: 3px; height: 18px; margin-left: auto; }
.ar-wave i {
  display: block;
  width: 3px;
  height: 100%;
  border-radius: 2px;
  background: #60A5FA;
  transform-origin: center;
  animation: arWave 1.1s ease-in-out infinite;
}
.ar-wave i:nth-child(2) { animation-delay: 0.15s; }
.ar-wave i:nth-child(3) { animation-delay: 0.3s; }
.ar-wave i:nth-child(4) { animation-delay: 0.45s; }

@keyframes arRing {
  from { opacity: 1; transform: scale(0.92); }
  to { opacity: 0; transform: scale(1.35); }
}
@keyframes arCaret { 50% { opacity: 0; } }
@keyframes arBlink { 50% { opacity: 0.35; } }
@keyframes arStamp {
  0% { transform: scale(1.25) rotate(-4deg); }
  100% { transform: none; }
}
@keyframes arPulse {
  0% { box-shadow: 0 0 0 0 rgb(21 128 61 / 0.45); }
  100% { box-shadow: 0 0 0 7px rgb(21 128 61 / 0); }
}
@keyframes arWave {
  0%, 100% { transform: scaleY(0.35); }
  50% { transform: scaleY(1); }
}

/* ── Problem: icon + tiêu đề + mô tả, không khung; hover nổi nền và tiêu đề xanh ── */
.ar-problem .section-title { text-wrap: balance; }
.ar-pains { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.ar-pain {
  display: flex;
  flex-direction: column;
  padding: 28px 24px;
  border-radius: var(--ar-radius-card);
  transition: background 0.3s ease, box-shadow 0.3s ease;
}
.ar-pain:hover { background: #F5F8FF; box-shadow: 0 18px 40px -28px rgb(17 84 237 / 0.35); }
.ar-pain__icon { display: block; width: 40px; height: 40px; margin-bottom: 20px; color: #172554; transition: color 0.3s ease; }
.ar-pain__icon svg { width: 100%; height: 100%; stroke-width: 1.5; }
.ar-pain__title {
  margin: 0 0 10px;
  color: #172554;
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: 0.01em;
  line-height: 1.4;
  text-transform: uppercase;
  text-wrap: balance;
  transition: color 0.3s ease;
}
.ar-pain__desc { margin: 0; color: var(--emp-text-secondary); font-size: 0.9375rem; line-height: 1.65; }
.ar-pain:hover .ar-pain__icon,
.ar-pain:hover .ar-pain__title { color: var(--emp-primary); }
@supports (-webkit-background-clip: text) or (background-clip: text) {
  .ar-pain:hover .ar-pain__title {
    background: linear-gradient(90deg, #1154ED, #38BDF8);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
  }
}

/* ── Solution ─────────────────────────────────── */
.ar-pillar {
  padding: 28px 28px 32px;
  border-radius: 14px;
  box-shadow: 0 1px 2px rgb(15 23 42 / 0.04);
  transition: translate 0.35s cubic-bezier(0.22, 1, 0.36, 1), background 0.35s ease, border-color 0.35s ease, box-shadow 0.35s ease;
}
.ar-pillar[data-anim].is-in {
  transition:
    opacity 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    transform 0.7s cubic-bezier(0.22, 0.61, 0.36, 1),
    translate 0.35s cubic-bezier(0.22, 1, 0.36, 1),
    background 0.35s ease,
    border-color 0.35s ease,
    box-shadow 0.35s ease;
  transition-delay: var(--anim-delay, 0s), var(--anim-delay, 0s), 0s, 0s, 0s, 0s;
}
.ar-pillar__head { display: flex; flex-direction: column; align-items: flex-start; margin-bottom: 18px; }
.ar-pillar__head .ar-card__icon {
  width: 52px;
  height: 52px;
  margin: 0 0 18px;
  border-radius: 50%;
  transition: background 0.35s ease, color 0.35s ease;
}
.ar-pillar__head h3 { margin: 0 0 4px; font-size: 1.125rem; font-weight: 700; letter-spacing: -0.2px; transition: color 0.35s ease; }
.ar-pillar__head span { color: var(--emp-text-secondary); font-size: 0.875rem; transition: color 0.35s ease; }
.ar-pillar .ar-checks li { transition: color 0.35s ease; }
.ar-pillar .ar-checks li::before { transition: background-color 0.35s ease; }
@media (hover: hover) and (pointer: fine) {
  .ar-pillar:hover {
    translate: 0 -4px;
    background: var(--emp-primary);
    border-color: var(--emp-primary);
    box-shadow: 0 16px 36px rgb(17 84 237 / 0.28);
  }
  .ar-pillar:hover .ar-card__icon { background: rgb(255 255 255 / 0.2); color: #fff; }
  .ar-pillar:hover h3,
  .ar-pillar:hover .ar-checks li { color: #fff; }
  .ar-pillar:hover .ar-pillar__head span { color: rgb(255 255 255 / 0.8); }
  .ar-pillar:hover .ar-checks li::before { background-color: #fff; }
}

/* ── AI Role team: dãy avatar chọn role + một thẻ chi tiết (ai-role/team.js) ── */
.ar-avatar {
  display: grid;
  flex-shrink: 0;
  place-items: center;
  width: 64px;
  height: 64px;
  border-radius: 50%;
  background: var(--tone-bg, #EEF2F6);
  color: var(--tone-fg, #334155);
  font-size: 0.75rem;
  font-weight: 700;
  transition: background 0.3s, color 0.3s, box-shadow 0.3s, transform 0.3s;
}
.ar-avatar svg { width: 28px; height: 28px; stroke-width: 1.7; }
.ar-avatar--lg { width: 56px; height: 56px; border-radius: 18px; }
.ar-avatar--lg svg { width: 26px; height: 26px; }
.ar-avatar--sm { width: 32px; height: 32px; }
.ar-avatar--sm svg { width: 16px; height: 16px; stroke-width: 2; }
.ar-avatar--soon { border: 1.5px dashed #CBD5E1; background: #fff; color: #94A3B8; }
.ar-avatar--soon svg { width: 22px; height: 22px; }

.ar-team .section-title,
.ar-team .section-subtitle { text-wrap: balance; }
.ar-soon { color: var(--emp-primary); white-space: nowrap; }
.ar-soon-btn { font-family: inherit; cursor: default; }
.ar-final__btn.ar-soon-btn { font-size: inherit; }
.ar-btn-label { min-width: 0; white-space: normal; text-align: center; line-height: 1.3; }
.ar-soon-inline { font-weight: 500; opacity: 0.8; white-space: nowrap; }

.ar-roster {
  position: relative;
  display: flex;
  justify-content: center;
  gap: 4px;
  margin: 8px auto 0;
  padding: 6px 4px 4px;
}
.ar-roster::before {
  content: '';
  position: absolute;
  top: 38px;
  left: 50%;
  z-index: -1;
  width: min(100%, 720px);
  height: 1px;
  background: linear-gradient(90deg, transparent, var(--emp-border) 12%, var(--emp-border) 88%, transparent);
  transform: translateX(-50%);
}
.ar-roster__item {
  display: flex;
  flex: 0 0 116px;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 0 4px 12px;
  border: 0;
  background: none;
  color: inherit;
  font: inherit;
  text-align: center;
  cursor: pointer;
}
.ar-roster__item .ar-avatar { margin-bottom: 8px; box-shadow: 0 0 0 6px #fff; }
.ar-roster__item strong { color: var(--emp-text-primary); font-size: 0.9375rem; font-weight: 600; line-height: 1.3; transition: color 0.3s; }
.ar-roster__item small { color: var(--emp-text-secondary); font-size: 0.75rem; line-height: 1.35; }
.ar-roster__item:hover .ar-avatar { transform: translateY(-3px); }
.ar-roster__item.is-active .ar-avatar {
  background: var(--tone-fg);
  color: #fff;
  box-shadow: 0 0 0 6px #fff, 0 0 0 8px var(--tone-fg), 0 16px 28px -10px var(--tone-fg);
  transform: translateY(-3px);
}
.ar-roster__item.is-active strong { color: var(--tone-fg); }
.ar-roster__item:focus-visible { outline: none; }
.ar-roster__item:focus-visible .ar-avatar { outline: 2px solid var(--emp-primary); outline-offset: 10px; }
.ar-roster__item--soon { cursor: default; }

.ar-roster-dots { display: flex; justify-content: center; gap: 6px; margin-top: 4px; }
.ar-roster-dots[hidden] { display: none; }
.ar-roster-dots button {
  width: 6px;
  height: 6px;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #CBD5E1;
  cursor: pointer;
  transition: width 0.25s ease, background 0.25s ease;
}
.ar-roster-dots button.is-active { width: 20px; background: var(--emp-primary); }
.ar-roster__item--soon strong { color: var(--emp-text-secondary); }

.ar-team__panel {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 0.9fr);
  max-width: 1040px;
  margin: 24px auto 0;
  overflow: hidden;
  border: 1px solid var(--emp-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 60px -40px rgb(15 23 42 / 0.25);
}
.ar-team__panel:focus-visible { outline: 2px solid var(--emp-primary); outline-offset: 2px; }
.ar-team__panel.is-swapped > * { animation: arTeamIn 0.45s cubic-bezier(0.2, 0.7, 0.2, 1) both; }
.ar-team__panel.is-swapped > * + * { animation-delay: 0.06s; }
@keyframes arTeamIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: none; }
}

.ar-team__card { display: flex; flex-direction: column; gap: 18px; padding: 36px; }
.ar-team__head { display: flex; align-items: center; gap: 16px; }
.ar-team__head .ar-avatar { width: auto; height: auto; border-radius: 0; background: none; }
.ar-team__head .ar-avatar svg { width: 40px; height: 40px; stroke-width: 1.8; }
.ar-team__head h3 { margin: 0 0 6px; color: var(--emp-text-primary); font-size: 1.375rem; font-weight: 700; line-height: 1.3; }
.ar-team__domain {
  display: inline-block;
  padding: 3px 10px;
  border-radius: 999px;
  background: var(--tone-bg);
  color: var(--tone-fg);
  font-size: 0.8125rem;
  font-weight: 600;
}
.ar-team__summary { margin: 0; color: var(--emp-text-label); font-size: 1rem; line-height: 1.65; }
.ar-team__card .ar-checks { gap: 10px; }
.ar-team__cta { align-self: flex-start; margin-top: auto; }

.ar-team__preview {
  display: flex;
  flex-direction: column;
  gap: 14px;
  padding: 28px;
  border-left: 1px solid var(--emp-border);
  background:
    radial-gradient(circle at 1px 1px, rgb(15 23 42 / 0.06) 1px, transparent 0) 0 0 / 18px 18px,
    var(--emp-bg-light);
}
.ar-team__preview-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  color: var(--emp-text-label);
  font-size: 0.8125rem;
  font-weight: 600;
}

.ar-bubble--user {
  align-self: flex-end;
  max-width: 85%;
  padding: 10px 14px;
  border-radius: 16px 16px 4px 16px;
  background: var(--emp-primary);
  color: #fff;
  font-size: 0.875rem;
  line-height: 1.5;
}
.ar-bubble--role { display: flex; align-items: flex-start; gap: 10px; }
.ar-bubble--role > div {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--emp-border);
  border-radius: 4px 16px 16px 16px;
  background: #fff;
}
.ar-bubble--role p { margin: 0; color: var(--emp-text-label); font-size: 0.875rem; line-height: 1.55; }
.ar-bubble__flag { color: #B45309; font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase; }

.ar-team__refusal {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 10px;
  margin-top: auto;
  padding: 12px 14px;
  border: 1px dashed #FCD34D;
  border-radius: 14px;
  background: #FFFBEB;
}
.ar-team__refusal p { flex-basis: 100%; order: 3; margin: 0; color: var(--emp-text-label); font-size: 0.8125rem; line-height: 1.5; }
.ar-team__redirect { margin-left: auto; color: #B45309; font-size: 0.75rem; font-weight: 600; }

/* ── How it works: nền tối động, sơ đồ luồng bên trái, các bước bên phải (ai-role/how-flow.js) ── */
.ar-how {
  --ar-how-line: rgb(148 163 184 / 0.14);
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: calc(var(--section-padding) + 40px) 0;
  background: #060B1F;
  color: #fff;
}
.ar-how__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ar-how__bg::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 70% at 22% 45%, rgb(17 84 237 / 0.4), transparent 70%),
    radial-gradient(50% 60% at 100% 100%, rgb(14 165 233 / 0.14), transparent 70%),
    linear-gradient(180deg, #050A1C 0%, #0A1638 100%);
}
.ar-how__grid {
  position: absolute;
  inset: -48px 0 0;
  background-image:
    linear-gradient(rgb(148 163 184 / 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgb(148 163 184 / 0.08) 1px, transparent 1px);
  background-size: 48px 48px;
  -webkit-mask-image: radial-gradient(65% 75% at 30% 50%, #000 25%, transparent 80%);
  mask-image: radial-gradient(65% 75% at 30% 50%, #000 25%, transparent 80%);
  animation: arGridDrift 14s linear infinite;
}
.ar-how__glow { position: absolute; border-radius: 50%; filter: blur(90px); }
.ar-how__glow--a {
  top: 15%;
  left: 4%;
  width: 440px;
  height: 440px;
  background: #1D4ED8;
  opacity: 0.5;
  animation: arFloatA 18s ease-in-out infinite alternate;
}
.ar-how__glow--b {
  right: 2%;
  bottom: -12%;
  width: 360px;
  height: 360px;
  background: #0EA5E9;
  opacity: 0.22;
  animation: arFloatB 22s ease-in-out infinite alternate;
}

.ar-how__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: clamp(32px, 4vw, 56px);
  align-items: center;
}

/* Sơ đồ: mọi kích thước tính theo hệ toạ độ 560×480 của SVG (1 đơn vị = --u) */
.ar-how__visual { container-type: inline-size; }
.ar-how__map { --u: calc(100cqw / 560); position: relative; aspect-ratio: 560 / 480; }
.ar-how__wires { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.ar-how__wire {
  fill: none;
  stroke: rgb(148 163 184 / 0.28);
  stroke-width: 1.5;
  stroke-dasharray: 4 6;
  transition: stroke 0.4s ease;
  animation: arDash 1.2s linear infinite;
}
.ar-how__wire.is-lit { stroke: #60A5FA; stroke-width: 2; filter: drop-shadow(0 0 6px rgb(96 165 250 / 0.8)); }
.ar-how__ring { fill: none; stroke: rgb(148 163 184 / 0.16); stroke-width: 1; transform-box: fill-box; transform-origin: center; transition: stroke 0.4s ease; }
.ar-how__ring--outer { stroke-dasharray: 2 8; animation: arSpin 40s linear infinite; }
.ar-how__ring.is-lit { stroke: rgb(96 165 250 / 0.55); }
.ar-how__dots circle { fill: #93C5FD; stroke: none; opacity: 0.2; transition: opacity 0.4s ease; }
.ar-how__dots circle.is-lit { opacity: 1; filter: drop-shadow(0 0 4px #60A5FA); }

.ar-how__node {
  position: absolute;
  top: calc(var(--y) * var(--u));
  left: calc(var(--x) * var(--u));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #CBD5E1;
  font-size: calc(12 * var(--u));
  font-weight: 600;
  line-height: 1.2;
  opacity: 0.5;
  transform: translate(-50%, -50%);
  transition: opacity 0.4s ease, transform 0.4s ease, color 0.4s ease, background 0.4s ease, border-color 0.4s ease, box-shadow 0.4s ease;
}
.ar-how__node.is-lit { color: #fff; opacity: 1; }

.ar-how__src,
.ar-how__card,
.ar-how__sign {
  border: 1px solid rgb(148 163 184 / 0.22);
  border-radius: calc(10 * var(--u));
  background: rgb(15 23 42 / 0.65);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ar-how__src.is-lit,
.ar-how__card.is-lit {
  border-color: rgb(96 165 250 / 0.6);
  background: rgb(17 84 237 / 0.24);
  box-shadow: 0 0 calc(24 * var(--u)) rgb(59 130 246 / 0.45);
}
.ar-how__src {
  justify-content: flex-start;
  gap: calc(6 * var(--u));
  width: calc(118 * var(--u));
  height: calc(34 * var(--u));
  padding: 0 calc(9 * var(--u));
  font-size: calc(10.5 * var(--u));
  white-space: nowrap;
}
.ar-how__src svg { flex-shrink: 0; width: calc(13 * var(--u)); height: calc(13 * var(--u)); color: #60A5FA; }
.ar-how__src--dw { border-color: rgb(96 165 250 / 0.4); }
.ar-how__label {
  position: absolute;
  top: calc(var(--y) * var(--u));
  left: calc(var(--x) * var(--u));
  color: #64748B;
  font-size: calc(9.5 * var(--u));
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}

.ar-how__core {
  flex-direction: column;
  gap: calc(4 * var(--u));
  width: calc(92 * var(--u));
  height: calc(92 * var(--u));
  border: 1px solid rgb(147 197 253 / 0.5);
  border-radius: calc(26 * var(--u));
  background: linear-gradient(145deg, #2563EB, #1E3A8A);
  box-shadow: 0 0 calc(40 * var(--u)) rgb(37 99 235 / 0.55), inset 0 1px 0 rgb(255 255 255 / 0.25);
  color: #fff;
  opacity: 0.85;
}
.ar-how__core svg { width: calc(30 * var(--u)); height: calc(30 * var(--u)); fill: #fff; stroke: none; }
.ar-how__core img { width: calc(40 * var(--u)); height: calc(40 * var(--u)); object-fit: contain; }
.ar-how__core b { font-size: calc(12 * var(--u)); font-weight: 700; letter-spacing: 0.02em; }
.ar-how__core::before,
.ar-how__core::after {
  content: '';
  position: absolute;
  inset: -1px;
  border: 1px solid rgb(96 165 250 / 0.6);
  border-radius: inherit;
  animation: arCorePulse 2.8s ease-out infinite;
}
.ar-how__core::after { animation-delay: 1.4s; }
.ar-how__core.is-lit {
  box-shadow: 0 0 calc(72 * var(--u)) rgb(59 130 246 / 0.85), inset 0 1px 0 rgb(255 255 255 / 0.3);
  transform: translate(-50%, -50%) scale(1.06);
}

.ar-how__role {
  width: calc(42 * var(--u));
  height: calc(42 * var(--u));
  border: 1px solid rgb(148 163 184 / 0.3);
  border-radius: 50%;
  background: rgb(30 41 59 / 0.9);
  color: #93C5FD;
  font-size: calc(11 * var(--u));
  font-weight: 700;
}
.ar-how__role.is-lit {
  border-color: #fff;
  background: #EFF6FF;
  color: #1154ED;
  box-shadow: 0 0 calc(20 * var(--u)) rgb(96 165 250 / 0.7);
  transform: translate(-50%, -50%) scale(1.1);
}

.ar-how__card {
  flex-direction: column;
  align-items: stretch;
  justify-content: flex-start;
  gap: calc(6 * var(--u));
  width: calc(120 * var(--u));
  padding: calc(8 * var(--u));
}
.ar-how__room { height: calc(72 * var(--u)); }
.ar-how__doc { align-items: flex-start; height: calc(80 * var(--u)); }
.ar-how__card-head {
  display: flex;
  align-items: center;
  gap: calc(4 * var(--u));
  color: #94A3B8;
  font-size: calc(10 * var(--u));
  white-space: nowrap;
}
.ar-how__room .ar-how__card-head { justify-content: center; overflow: hidden; font-size: calc(9.5 * var(--u)); }
.ar-how__card-head svg { width: calc(11 * var(--u)); height: calc(11 * var(--u)); color: #60A5FA; }
.ar-how__room-grid { display: grid; flex: 1; grid-template-columns: 1fr 1fr; gap: calc(3 * var(--u)); }
.ar-how__room-grid i { border-radius: calc(3 * var(--u)); background: rgb(148 163 184 / 0.18); }
.ar-how__room-grid i.is-on { background: rgb(59 130 246 / 0.45); }
.ar-how__room.is-lit .ar-how__room-grid i { animation: arTalk 2.4s steps(1) infinite; }
.ar-how__room.is-lit .ar-how__room-grid i:nth-child(2) { animation-delay: 0.6s; }
.ar-how__room.is-lit .ar-how__room-grid i:nth-child(3) { animation-delay: 1.2s; }
.ar-how__room.is-lit .ar-how__room-grid i:nth-child(4) { animation-delay: 1.8s; }
.ar-how__lines { display: grid; gap: calc(4 * var(--u)); width: 100%; }
.ar-how__lines i { height: calc(4 * var(--u)); border-radius: calc(2 * var(--u)); background: rgb(148 163 184 / 0.32); transform-origin: left; }
.ar-how__lines i:nth-child(2) { width: 80%; }
.ar-how__lines i:nth-child(3) { width: 58%; }
.ar-how__doc.is-lit .ar-how__lines i { animation: arWrite 0.6s ease both; }
.ar-how__doc.is-lit .ar-how__lines i:nth-child(2) { animation-delay: 0.25s; }
.ar-how__doc.is-lit .ar-how__lines i:nth-child(3) { animation-delay: 0.5s; }
.ar-how__audit {
  display: inline-flex;
  align-items: center;
  gap: calc(3 * var(--u));
  padding: calc(1 * var(--u)) calc(6 * var(--u));
  border: 1px solid rgb(34 197 94 / 0.3);
  border-radius: 999px;
  background: rgb(34 197 94 / 0.14);
  color: #86EFAC;
  font-size: calc(9.5 * var(--u));
}
.ar-how__audit svg { width: calc(9 * var(--u)); height: calc(9 * var(--u)); stroke-width: 3; }

.ar-how__sign {
  justify-content: flex-start;
  gap: calc(6 * var(--u));
  width: calc(120 * var(--u));
  height: calc(44 * var(--u));
  padding: 0 calc(8 * var(--u));
  border-radius: calc(22 * var(--u));
}
.ar-how__sign.is-lit {
  border-color: rgb(252 211 77 / 0.6);
  background: rgb(245 158 11 / 0.14);
  box-shadow: 0 0 calc(24 * var(--u)) rgb(245 158 11 / 0.4);
}
.ar-how__sign-avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: calc(28 * var(--u));
  height: calc(28 * var(--u));
  border-radius: 50%;
  background: #FEF3C7;
  color: #B45309;
  font-size: calc(8 * var(--u));
  font-weight: 700;
}
.ar-how__sign-ink { width: calc(68 * var(--u)); height: calc(24 * var(--u)); stroke: #FCD34D; stroke-width: 2; stroke-dasharray: 300; stroke-dashoffset: 0; }
.ar-how__sign.is-lit .ar-how__sign-ink { animation: arInk 1.6s ease 0.2s both; }

.ar-how__head {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: var(--section-stack-gap);
  margin-bottom: 28px;
}
.ar-how__head > * { margin: 0; }
.ar-how__badge { align-self: flex-start; border-color: rgb(147 197 253 / 0.25); background: rgb(59 130 246 / 0.14); color: #BFDBFE; }
.ar-how__badge .badge-dot { background: #60A5FA; box-shadow: 0 0 10px #60A5FA; }
.ar-how .section-title { color: #fff; font-size: clamp(1.75rem, 3.4vw, 2.5rem); text-wrap: balance; }
.ar-how__sub { max-width: 32rem; color: #94A3B8; font-size: 1.0625rem; line-height: 1.65; }

.ar-how__steps { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--ar-how-line); }
.ar-how__step {
  position: relative;
  display: grid;
  grid-template-columns: 40px minmax(0, 190px) minmax(0, 1fr);
  gap: 4px 20px;
  align-items: baseline;
  padding: 18px 0;
  border-bottom: 1px solid var(--ar-how-line);
  cursor: pointer;
}
.ar-how__num { color: #475569; font-size: 0.8125rem; font-weight: 700; font-variant-numeric: tabular-nums; transition: color 0.3s ease; }
.ar-how__step h3 { margin: 0; color: #CBD5E1; font-size: 1rem; font-weight: 600; line-height: 1.4; transition: color 0.3s ease; }
.ar-how__step p { margin: 0; color: #94A3B8; font-size: 0.9375rem; line-height: 1.6; transition: color 0.3s ease; }
.ar-how__step.is-active .ar-how__num { color: #60A5FA; }
.ar-how__step.is-active h3 { color: #fff; }
.ar-how__step.is-active p { color: #E2E8F0; }
.ar-how__step--human.is-active .ar-how__num,
.ar-how__step--human.is-active h3,
.ar-how__step:hover .ar-how__num,
.ar-how__step:hover h3 { color: #FCD34D; }
.ar-how__bar {
  position: absolute;
  right: 0;
  bottom: -1px;
  left: 0;
  height: 2px;
  background: linear-gradient(90deg, #2563EB, #60A5FA);
  transform: scaleX(0);
  transform-origin: left;
}
.ar-how__step--human .ar-how__bar { background: linear-gradient(90deg, #F59E0B, #FCD34D); }
.ar-how__step.is-active .ar-how__bar { animation: arHowBar 4.5s linear forwards; }
.ar-how.is-paused .ar-how__bar { animation-play-state: paused; }

.ar-how__note {
  margin-top: 48px;
  padding: 24px;
  border: 1px solid rgb(148 163 184 / 0.16);
  border-radius: var(--ar-radius-card);
  background: rgb(15 23 42 / 0.55);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
}
.ar-how__note-icon {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  background: rgb(59 130 246 / 0.16);
  color: #93C5FD;
}
.ar-how__note-icon svg { width: 20px; height: 20px; }
.ar-how__note-title { margin: 0 0 20px; color: #E2E8F0; font-size: 1.0625rem; font-weight: 600; line-height: 1.4; }
.ar-how__note-title b { color: #60A5FA; font-weight: 700; }
.ar-how__ways { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 0; padding: 0; list-style: none; }
.ar-how__ways li { display: flex; align-items: flex-start; gap: 14px; }
.ar-how__ways h4 { margin: 0 0 4px; color: #fff; font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.ar-how__ways p { margin: 0; color: #94A3B8; font-size: 0.875rem; line-height: 1.6; }

@keyframes arGridDrift { to { transform: translateY(48px); } }
@keyframes arFloatA { to { transform: translate(80px, -40px) scale(1.12); } }
@keyframes arFloatB { to { transform: translate(-90px, -60px) scale(0.9); } }
@keyframes arDash { to { stroke-dashoffset: -10; } }
@keyframes arSpin { to { transform: rotate(360deg); } }
@keyframes arCorePulse {
  from { opacity: 0.9; transform: scale(1); }
  to { opacity: 0; transform: scale(1.7); }
}
@keyframes arTalk {
  0% { background: rgb(59 130 246 / 0.55); box-shadow: inset 0 0 0 1px #60A5FA; }
  25% { background: rgb(148 163 184 / 0.18); box-shadow: none; }
}
@keyframes arWrite { from { transform: scaleX(0); } }
@keyframes arInk { from { stroke-dashoffset: 300; } }
@keyframes arHowBar { to { transform: scaleX(1); } }


/* ── Trust: hai trụ (số liệu có nguồn · khu vực riêng), mỗi trụ có hình minh họa + 4 ý ── */
.ar-trust { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.ar-trust__pillar {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--emp-border);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 30px 60px -48px rgb(15 23 42 / 0.35);
}
.ar-trust__visual {
  position: relative;
  min-height: 232px;
  padding: 24px;
  border-bottom: 1px solid var(--emp-border);
  background:
    radial-gradient(circle at 1px 1px, rgb(17 84 237 / 0.08) 1px, transparent 0) 0 0 / 18px 18px,
    linear-gradient(180deg, #F5F8FF, #EEF3FD);
}
.ar-trust__body { padding: 28px 28px 32px; }
.ar-trust__title { margin: 0; color: #172554; font-size: 1.125rem; font-weight: 700; line-height: 1.4; text-wrap: balance; }
.ar-trust__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 28px; margin: 24px 0 0; padding: 0; list-style: none; }
.ar-trust__icon { display: block; width: 22px; height: 22px; margin-bottom: 10px; color: var(--emp-primary); }
.ar-trust__icon svg { width: 100%; height: 100%; stroke-width: 1.7; }
.ar-trust__list h4 { margin: 0 0 6px; color: var(--emp-text-primary); font-size: 0.9375rem; font-weight: 600; line-height: 1.4; }
.ar-trust__list h4 .ar-tag { margin-left: 4px; vertical-align: 1px; }
.ar-trust__list p { margin: 0; color: var(--emp-text-secondary); font-size: 0.8125rem; line-height: 1.6; }

/* Minh họa 1: nguồn → cổng kiểm soát → câu trả lời có nguồn / bị chặn */
.ar-proof { display: grid; grid-template-columns: auto minmax(20px, 1fr) auto minmax(20px, 1fr) auto; align-items: center; }
.ar-proof__sources { display: flex; flex-direction: column; gap: 8px; }
.ar-proof__sources span {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid #DBE6FE;
  border-radius: 10px;
  background: #fff;
  color: var(--emp-text-label);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.ar-proof__sources svg { width: 14px; height: 14px; color: var(--emp-primary); }
.ar-proof__wire {
  position: relative;
  height: 2px;
  margin: 0 8px;
  background: repeating-linear-gradient(90deg, #A9C2FB 0 6px, transparent 6px 11px);
}
.ar-proof__wire i {
  position: absolute;
  top: -3px;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--emp-primary);
  box-shadow: 0 0 0 4px rgb(17 84 237 / 0.15);
  animation: arWireX 2.4s linear infinite;
}
.ar-proof__wire + .ar-proof__gate + .ar-proof__wire i { animation-delay: 1.2s; }
.ar-proof__gate { display: flex; flex-direction: column; align-items: center; gap: 8px; }
.ar-proof__shield {
  position: relative;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 18px;
  background: var(--emp-primary);
  color: #fff;
  box-shadow: 0 14px 28px -12px rgb(17 84 237 / 0.7);
}
.ar-proof__shield::after {
  content: '';
  position: absolute;
  inset: -6px;
  border: 2px solid rgb(17 84 237 / 0.35);
  border-radius: 22px;
  animation: arGatePulse 2.4s ease-out infinite;
}
.ar-proof__shield svg { width: 26px; height: 26px; stroke-width: 1.8; }
.ar-proof__gate small { color: var(--emp-primary); font-size: 0.6875rem; font-weight: 700; white-space: nowrap; }
.ar-proof__out { display: flex; flex-direction: column; align-items: flex-start; gap: 10px; }
.ar-proof__answer {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px 10px;
  width: 168px;
  padding: 10px;
  border: 1px solid var(--emp-border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 24px -18px rgb(15 23 42 / 0.4);
}
.ar-proof__answer .ar-avatar { width: 26px; height: 26px; }
.ar-proof__lines { display: grid; gap: 5px; }
.ar-proof__lines i { height: 6px; border-radius: 3px; background: #E2E8F0; }
.ar-proof__lines i:last-child { width: 65%; }
.ar-proof__cite {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-self: start;
  gap: 4px;
  padding: 3px 8px;
  border: 1px solid #BBF7D0;
  border-radius: 999px;
  background: #F0FDF4;
  color: #15803D;
  font-size: 0.6875rem;
  font-weight: 700;
}
.ar-proof__cite svg { width: 12px; height: 12px; stroke-width: 3; }
.ar-proof__blocked {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border: 1px dashed #FCA5A5;
  border-radius: 10px;
  background: #FEF2F2;
  color: #B91C1C;
  font-size: 0.6875rem;
  font-weight: 700;
  white-space: nowrap;
}
.ar-proof__blocked svg { width: 12px; height: 12px; stroke-width: 3; }

/* Minh họa 2: dữ liệu từng công ty tách riêng, role chỉ đọc tài liệu được cấp */
.ar-vault { display: grid; grid-template-columns: minmax(0, 1.25fr) auto minmax(0, 1fr); align-content: center; row-gap: 14px; }
.ar-vault__room {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--emp-border);
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 24px -18px rgb(15 23 42 / 0.4);
}
.ar-vault__room.is-other { background: rgb(255 255 255 / 0.6); box-shadow: none; opacity: 0.7; }
.ar-vault__head { display: flex; align-items: center; gap: 6px; padding: 0 2px 2px; color: var(--emp-text-primary); font-size: 0.75rem; font-weight: 700; }
.ar-vault__head svg { width: 14px; height: 14px; color: #64748B; stroke-width: 2; }
.ar-vault__row {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  padding: 5px 6px;
  border-radius: 10px;
  background: #F8FAFC;
  color: var(--emp-text-label);
  font-size: 0.75rem;
  font-weight: 600;
  white-space: nowrap;
}
.ar-vault__row .ar-avatar { width: 22px; height: 22px; }
.ar-vault__row > span:not(.ar-avatar) { overflow: hidden; text-overflow: ellipsis; }
.ar-vault__row b { display: grid; flex-shrink: 0; place-items: center; width: 20px; height: 20px; margin-left: auto; border-radius: 50%; }
.ar-vault__row b svg { width: 12px; height: 12px; stroke-width: 2.6; }
.ar-vault__row.is-ok b { background: #DCFCE7; color: #15803D; }
.ar-vault__row.is-deny { color: #94A3B8; }
.ar-vault__row.is-deny > span:not(.ar-avatar) { text-decoration: line-through; }
.ar-vault__row.is-deny b { background: #FEE2E2; color: #B91C1C; animation: arDeny 4s ease-in-out infinite; }
.ar-vault__row i { width: 70%; height: 7px; border-radius: 4px; background: #E2E8F0; }
.ar-vault__wall {
  position: relative;
  width: 2px;
  margin: 0 18px;
  background: repeating-linear-gradient(180deg, #94A3B8 0 6px, transparent 6px 11px);
}
.ar-vault__wall span {
  position: absolute;
  top: 50%;
  left: 50%;
  padding: 3px 6px;
  border-radius: 6px;
  background: #0F172A;
  color: #fff;
  font-size: 0.625rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
  transform: translate(-50%, -50%);
}
.ar-vault__key {
  display: inline-flex;
  grid-column: 1 / -1;
  align-items: center;
  justify-self: center;
  gap: 6px;
  padding: 5px 12px;
  border-radius: 999px;
  background: #0F172A;
  color: #fff;
  font-size: 0.6875rem;
  font-weight: 600;
}
.ar-vault__key svg { width: 14px; height: 14px; color: #FCD34D; stroke-width: 2; }

@keyframes arWireX { from { left: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { left: calc(100% - 8px); opacity: 0; } }
@keyframes arWireY { from { top: 0; opacity: 0; } 15% { opacity: 1; } 85% { opacity: 1; } to { top: calc(100% - 8px); opacity: 0; } }
@keyframes arGatePulse { from { opacity: 0.9; transform: scale(1); } to { opacity: 0; transform: scale(1.25); } }
@keyframes arDeny { 0%, 80%, 100% { transform: none; } 84% { transform: translateX(-2px); } 88% { transform: translateX(2px); } 92% { transform: translateX(-1px); } }

/* Vòng đời role: dòng thời gian có số thứ tự */
.ar-life {
  margin-top: 24px;
  padding: 32px;
  border-radius: 24px;
  background: #0F172A;
  color: #fff;
}
.ar-life__head h3 { margin: 0 0 6px; color: #fff; font-size: 1.25rem; font-weight: 600; }
.ar-life__head p { color: #94A3B8; font-size: 0.9375rem; }
.ar-life__steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 24px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
  counter-reset: life;
}
.ar-life__steps::before {
  content: '';
  position: absolute;
  top: 17px;
  right: calc((100% - 96px) / 5 - 18px);
  left: 18px;
  height: 2px;
  background: linear-gradient(90deg, #334155, #3B82F6 70%, #334155);
}
.ar-life__steps li { position: relative; padding-top: 52px; counter-increment: life; }
.ar-life__steps li::before {
  content: counter(life);
  position: absolute;
  top: 0;
  left: 0;
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid #334155;
  border-radius: 50%;
  background: #1E293B;
  color: #CBD5E1;
  font-size: 0.875rem;
  font-weight: 700;
}
.ar-life__steps li:nth-child(4)::before { border-color: #3B82F6; background: var(--emp-primary); color: #fff; box-shadow: 0 0 0 6px rgb(59 130 246 / 0.2); }
.ar-life__steps span {
  display: inline-block;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgb(148 163 184 / 0.14);
  color: #93C5FD;
  font-size: 0.6875rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.ar-life__steps h4 { margin: 10px 0 4px; color: #fff; font-size: 0.9375rem; font-weight: 600; }
.ar-life__steps p { color: #94A3B8; font-size: 0.8125rem; line-height: 1.55; }

/* ── Comparison ───────────────────────────────── */
.ar-compare {
  overflow-x: auto;
  border: 1px solid var(--emp-border);
  border-radius: 20px;
  background: #fff;
}
.ar-compare table { width: 100%; min-width: 680px; border-collapse: collapse; font-size: 0.9375rem; }
.ar-compare th,
.ar-compare td {
  padding: 16px 20px;
  border-bottom: 1px solid var(--emp-border);
  line-height: 1.55;
  text-align: left;
  vertical-align: top;
}
.ar-compare tr:last-child th,
.ar-compare tr:last-child td { border-bottom: 0; }
.ar-compare thead th { background: var(--emp-bg-light); color: var(--emp-text-label); font-size: 0.8125rem; font-weight: 700; }
.ar-compare tbody th { width: 24%; color: var(--emp-text-primary); font-weight: 600; }
.ar-compare td { width: 38%; color: var(--emp-text-secondary); }
.ar-compare .is-us { background: #F5F8FF; color: var(--emp-text-primary); }
.ar-compare thead .is-us { background: var(--emp-primary); color: #fff; }
.ar-compare td.is-us { position: relative; padding-left: 50px; }
.ar-compare td.is-us::before {
  content: '';
  position: absolute;
  top: 18px;
  left: 20px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #DBE6FE var(--ar-check) center / 12px no-repeat;
}

/* ── Role library: nền navy, vòng tròn trung tâm, 4 ý hai bên (kiểu Sao Kim BrandShift) ── */
.ar-lib {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  background: radial-gradient(90% 120% at 50% 45%, #0C2BB5 0%, #0A2196 35%, #07176E 70%, #040D48 100%);
  color: #fff;
}
.ar-lib__bg { position: absolute; inset: 0; z-index: -1; pointer-events: none; }
.ar-lib__beam {
  position: absolute;
  top: 50%;
  left: 50%;
  width: 160vmax;
  height: 160vmax;
  background: conic-gradient(from 0deg, transparent 0 30deg, rgb(147 197 253 / 0.07) 55deg, transparent 85deg, transparent 200deg, rgb(147 197 253 / 0.05) 225deg, transparent 255deg);
  transform: translate(-50%, -50%);
  animation: arLibSpin 60s linear infinite;
}
.ar-lib__glow { position: absolute; width: 520px; height: 520px; border-radius: 50%; filter: blur(100px); opacity: 0.35; }
.ar-lib__glow--a { top: -200px; left: -160px; background: #1D4ED8; animation: arLibDrift 18s ease-in-out infinite alternate; }
.ar-lib__glow--b { right: -180px; bottom: -220px; background: #3B82F6; opacity: 0.2; animation: arLibDrift 22s ease-in-out infinite alternate-reverse; }

.ar-lib__stage {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 380px) minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-items: center;
  gap: 88px 48px;
  padding: 32px 0;
}
.ar-lib__core {
  display: flex;
  flex-direction: column;
  grid-row: 1 / 3;
  grid-column: 2;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 48px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: 50%;
  background: radial-gradient(circle at 50% 40%, rgb(59 130 246 / 0.12), transparent 70%);
  text-align: center;
}
.ar-lib__title {
  margin: 0 0 16px;
  padding: 0.18em 0 0.06em;
  background: linear-gradient(90deg, #fff 35%, #A5C8FF);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  font-size: clamp(1.625rem, 2.6vw, 2.125rem);
  font-weight: 600;
  line-height: 1.3;
  text-transform: uppercase;
  text-wrap: balance;
}
.ar-lib__sub { max-width: 280px; margin: 0; color: rgb(255 255 255 / 0.8); font-size: 0.875rem; line-height: 1.6; text-wrap: balance; }

.ar-lib__item {
  position: relative;
  width: 100%;
  max-width: 360px;
  padding: 22px 28px;
  border-radius: 4px;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.06), rgb(255 255 255 / 0.03));
  text-align: center;
  transition: background 0.3s;
}
.ar-lib__item::after {
  content: '';
  position: absolute;
  bottom: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  margin-left: -5px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 8px 2px rgb(255 255 255 / 0.6), 0 0 18px 6px rgb(191 219 254 / 0.35);
}
.ar-lib__item--1 { grid-row: 1; grid-column: 1; justify-self: end; }
.ar-lib__item--2 { grid-row: 2; grid-column: 1; justify-self: end; }
.ar-lib__item--3 { grid-row: 1; grid-column: 3; justify-self: start; margin-top: 32px; }
.ar-lib__item--4 { grid-row: 2; grid-column: 3; justify-self: start; margin-top: 32px; }
.ar-lib__item h3 { margin: 0 0 8px; color: #fff; font-size: 1rem; font-weight: 600; letter-spacing: 0.01em; text-transform: uppercase; transition: color 0.3s; }
.ar-lib__item p { margin: 0; color: rgb(255 255 255 / 0.78); font-size: 0.8125rem; line-height: 1.6; }
.ar-lib__item:hover { background: linear-gradient(180deg, rgb(255 255 255 / 0.1), rgb(255 255 255 / 0.05)); }
.ar-lib__item:hover h3 { color: #A5C8FF; }

@keyframes arLibSpin { to { transform: translate(-50%, -50%) rotate(360deg); } }
@keyframes arLibDrift { to { transform: translate(80px, 40px) scale(1.1); } }

/* ── Final CTA (dựa trên .new-cta-section) ────── */
.ar-final { text-align: left; }
.ar-final__inner {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 40px;
  align-items: center;
}
.ar-final .cta-heading { margin-bottom: 12px; text-wrap: balance; }
.ar-final .cta-subheading { margin: 0; max-width: 32rem; }
.ar-final__actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-top: 24px; }
.ar-final .ar-final__actions > a { width: auto; max-width: none; margin: 0; }
.ar-final__btn--solid {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: var(--btn-h);
  padding: 0 24px;
  border: 2px solid #fff;
  border-radius: var(--radius-sm);
  box-sizing: border-box;
  background: #fff;
  color: var(--emp-primary);
  font-weight: 600;
  text-decoration: none;
  transition: background var(--transition);
}
.ar-final__btn--solid:hover { background: #EFF6FF; }
.ar-final__values {
  list-style: none;
  display: grid;
  gap: 14px;
  margin: 0;
  padding: 24px;
  border: 1px solid rgb(255 255 255 / 0.16);
  border-radius: var(--ar-radius-card);
  background: rgb(255 255 255 / 0.08);
}
.ar-final__values li {
  position: relative;
  padding-left: 32px;
  color: rgb(255 255 255 / 0.94);
  font-size: 0.9375rem;
  line-height: 1.55;
}
.ar-final__values li::before {
  content: '';
  position: absolute;
  top: 1px;
  left: 0;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18) var(--ar-check-white) center / 12px no-repeat;
}

/* ── Responsive ───────────────────────────────── */
@media (max-width: 1100px) {
  .ar-trust { grid-template-columns: 1fr; }
  .ar-grid--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 960px) {
  .ar-how__ways { grid-template-columns: 1fr; gap: 18px; }
  .ar-life__steps { grid-template-columns: 1fr; gap: 22px; }
  .ar-life__steps::before { display: none; }
  .ar-life__steps li { padding: 6px 0 0 56px; }
  .ar-life__steps li:not(:last-child)::after { content: ''; position: absolute; top: 36px; bottom: -22px; left: 17px; width: 2px; background: #334155; }
  .ar-life__steps li:nth-child(3)::after { background: linear-gradient(180deg, #334155, #3B82F6); }
  .ar-roster {
    justify-content: flex-start;
    padding: 14px 4px 4px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .ar-roster::-webkit-scrollbar { display: none; }
  .ar-roster::before { display: none; }
  .ar-roster__item { flex-basis: 96px; scroll-snap-align: center; }
  .ar-roster__item:first-child { scroll-snap-align: start; }
  .ar-roster__item .ar-avatar { width: 56px; height: 56px; }
  .ar-roster__item .ar-avatar svg { width: 24px; height: 24px; }
  .ar-team__panel { grid-template-columns: 1fr; margin-top: 16px; }
  .ar-team__preview { border-left: 0; border-top: 1px solid var(--emp-border); }
  .ar-final__inner { grid-template-columns: 1fr; gap: 28px; }
  .ar-how__inner { grid-template-columns: 1fr; gap: 28px; }
  .ar-how__content { display: contents; }
  .ar-how__head { order: 1; align-items: center; margin-bottom: 0; text-align: center; }
  .ar-how__badge { align-self: center; }
  .ar-how__visual { order: 2; width: 100%; max-width: 560px; margin: 0 auto; }
  .ar-how__steps { order: 3; }
}

@media (max-width: 860px) {
  .ar-lib__stage { grid-template-columns: 1fr; grid-template-rows: none; gap: 16px; justify-items: center; }
  .ar-lib__core { margin-bottom: 28px; }
  .ar-lib__core { grid-row: auto; grid-column: auto; width: min(340px, 84vw); padding: 36px; }
  .ar-lib__item,
  .ar-lib__item--3,
  .ar-lib__item--4 { grid-row: auto; grid-column: auto; justify-self: stretch; max-width: none; margin-top: 0; }
  .ar-lib__item::after { display: none; }
  .ar-grid--2,
  .ar-grid--3,
  .ar-pains { grid-template-columns: 1fr; }
  .ar-pain { padding: 20px 4px; }
  .ar-pain:hover { background: none; box-shadow: none; }
}

@media (max-width: 768px) {
  .ar-final__actions { flex-direction: column; align-items: stretch; width: 100%; max-width: 360px; margin-inline: auto; }
  .ar-final .ar-final__actions > a { width: 100%; }
  .ar-hero { padding: 0; }
  .ar-hero__sign { justify-content: center; }
  .ar-call { margin: 0 auto; }
  .ar-mom { top: 52px; right: 8px; width: min(256px, 62%); }
  .ar-team__card,
  .ar-team__preview,
  .ar-pillar { padding: 22px; }
  .ar-team__cta { align-self: stretch; }
  .ar-life { padding: 22px; }
}

@media (max-width: 560px) {
  .ar-grid--4 { grid-template-columns: 1fr; }
  .ar-trust__body { padding: 22px 20px 26px; }
  .ar-trust__list { grid-template-columns: 1fr; gap: 20px; }
  .ar-trust__visual { padding: 20px 16px; }
  .ar-proof { grid-template-columns: 1fr; justify-items: center; }
  .ar-proof__sources { flex-flow: row wrap; justify-content: center; }
  .ar-proof__wire { width: 2px; height: 26px; margin: 8px 0; background: repeating-linear-gradient(180deg, #A9C2FB 0 6px, transparent 6px 11px); }
  .ar-proof__wire i { top: 0; left: -3px; animation-name: arWireY; }
  .ar-proof__out { align-items: center; }
  .ar-vault { grid-template-columns: minmax(0, 1.8fr) auto minmax(0, 0.8fr); }
  .ar-vault__wall { margin: 0 22px; }
  .ar-vault__row { white-space: normal; line-height: 1.3; }
  .ar-vault__room.is-other .ar-vault__head { white-space: nowrap; }
  .ar-vault__room.is-other .ar-vault__head svg { display: none; }
  .ar-call__apps { display: none; }
  .ar-call__clock { margin-left: auto; }
  .ar-call__avatar { width: 42px; height: 42px; font-size: 0.6875rem; }
  .ar-call__tag { top: 6px; left: 6px; }
  .ar-call__name { right: 6px; bottom: 6px; left: 6px; }
  .ar-call__mic { display: none; }
  .ar-call__caption p { font-size: 0.8125rem; }
  .ar-how__step { grid-template-columns: 32px minmax(0, 1fr); padding: 16px 0; }
  .ar-how__step p { grid-column: 2; }
  .ar-how__note { margin-top: 32px; padding: 18px; }
}

@media (prefers-reduced-motion: reduce) {
  .ar-call__live > span:first-child,
  .ar-call__tile.is-speaking .ar-call__avatar::after,
  .ar-mom__rec > span:first-child,
  .ar-mom__stamp.is-signed,
  .ar-wave i,
  .ar-how__grid,
  .ar-how__glow,
  .ar-how__wire,
  .ar-how__ring--outer,
  .ar-how__core::before,
  .ar-how__core::after,
  .ar-how__room.is-lit .ar-how__room-grid i,
  .ar-how__doc.is-lit .ar-how__lines i,
  .ar-how__sign.is-lit .ar-how__sign-ink,
  .ar-team__panel.is-swapped > *,
  .ar-proof__shield::after,
  .ar-vault__row.is-deny b { animation: none; }
  .ar-proof__wire i { display: none; }
  .ar-lib__beam,
  .ar-lib__glow { animation: none; }
  .ar-roster__item:hover .ar-avatar,
  .ar-roster__item.is-active .ar-avatar { transform: none; }
  .ar-how__dots,
  .ar-how__bar { display: none; }
  .ar-pillar:hover { translate: none; }
}
