/* KimQ refinement layer: brand mark, product surface, connectors,
   rollout, security controls and use-case autoplay chrome.
   Loaded after enterprise.css and zalo-cases.css. */

:root {
  --ink-soft: #3a536c;
  --blue-deep: #0a43b4;
  --blue-wash: #f2f7ff;
  --edge: 0 1px 2px rgba(20, 44, 67, 0.04);
  --lift: 0 18px 40px -28px rgba(15, 42, 74, 0.45);
}

.brand-defs {
  position: absolute;
  width: 0;
  height: 0;
  overflow: hidden;
}

/* ---------- Brand lockup ---------- */
.brand {
  gap: 11px;
}
.brand-mark {
  display: block;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 10px;
  background: none;
  overflow: hidden;
  box-shadow: 0 6px 14px -8px rgba(9, 67, 180, 0.9);
}
.brand-mark svg {
  display: block;
  width: 36px;
  height: 36px;
  stroke: none;
  stroke-width: 0;
}
.brand-word {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}
.brand-ai {
  margin: 0;
  padding: 2px 6px;
  border: 1px solid #bcd3f5;
  border-radius: 5px;
  background: var(--blue-wash);
  color: var(--blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.1em;
  line-height: 1.3;
}
@media (max-width: 700px) {
  .brand-mark,
  .brand-mark svg {
    width: 32px;
    height: 32px;
  }
}

/* ---------- Hero band ---------- */
.hero-band {
  position: relative;
  overflow: hidden;
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(
      118% 128% at 88% -18%,
      rgba(7, 94, 230, 0.13) 0%,
      rgba(7, 94, 230, 0) 58%
    ),
    linear-gradient(180deg, #fbfdff 0%, #fff 72%);
}
.hero-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(19, 60, 110, 0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(19, 60, 110, 0.05) 1px, transparent 1px);
  background-size: 68px 68px;
  mask-image: radial-gradient(84% 76% at 50% 12%, #000 18%, transparent 78%);
  -webkit-mask-image: radial-gradient(84% 76% at 50% 12%, #000 18%, transparent 78%);
  pointer-events: none;
}
.hero-band > .enterprise-hero {
  position: relative;
}
.product-context {
  gap: 10px;
  width: fit-content;
  padding: 7px 14px 7px 10px;
  border: 1px solid #cddff5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  color: #2d4f73;
  font-weight: 650;
  box-shadow: var(--edge);
}
.context-dot {
  position: relative;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1c9c6f;
}
.context-dot::after {
  content: "";
  position: absolute;
  inset: -5px;
  border: 1px solid rgba(28, 156, 111, 0.4);
  border-radius: 50%;
}
.context-sep {
  width: 1px;
  height: 14px;
  background: #cddff5;
}
.context-zalo {
  color: var(--blue);
  font-weight: 700;
}
.hero-footnotes {
  gap: 10px;
}
.hero-footnotes span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 7px 13px;
  border: 1px solid #d9e5f3;
  border-radius: 999px;
  background: #fff;
  color: #3b5773;
  font-size: 12px;
  font-weight: 600;
  box-shadow: var(--edge);
}
.hero-footnotes span::before {
  margin: 0;
  color: #17795d;
  font-weight: 800;
}

/* ---------- Principles band ---------- */
.principles-band {
  background: #0f2942;
  border-block-color: #0f2942;
  color: #dbe7f4;
}
.principles > span:first-child {
  color: #8fb1d2;
  font-weight: 700;
}
.principles strong {
  color: #fff;
}
.principles .plus {
  color: #5b7c9c;
}
.principles-result {
  gap: 12px;
  padding: 8px 16px;
  border: 1px solid #2c4d6c;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.05);
  color: #bcd6ef;
  font-weight: 600;
}

/* ---------- Product surface ---------- */
.surface-band {
  background: var(--canvas);
  border-bottom: 1px solid var(--line);
}
.surface-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(0, 1.08fr);
  align-items: center;
  gap: clamp(2.5rem, 6vw, 5rem);
}
.surface-copy h2 {
  max-width: 22ch;
}
.surface-copy > p {
  max-width: 44ch;
  margin-top: var(--space-5);
}
.surface-points {
  list-style: none;
  margin: var(--space-6) 0;
  padding: 0;
  border-top: 1px solid var(--line);
}
.surface-points li {
  display: grid;
  grid-template-columns: 116px minmax(0, 1fr);
  gap: 18px;
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}
.surface-points strong {
  color: var(--blue);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.7;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.surface-points span {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}
.surface-visual {
  display: grid;
  gap: 14px;
  min-width: 0;
}
.device {
  margin: 0;
  border: 1px solid #cfdcea;
  border-radius: 14px;
  background: #fff;
  overflow: hidden;
  box-shadow: var(--lift);
}
.device-bar {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 11px 15px;
  border-bottom: 1px solid var(--line);
  background: #f2f5f9;
  color: #5d7189;
  font-size: 11px;
  font-weight: 650;
}
.device-dots {
  display: inline-flex;
  gap: 5px;
}
.device-dots i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #cdd6e1;
}
.device-dots i:first-child {
  background: #f0a8a0;
}
.device-dots i:nth-child(2) {
  background: #f2cd8c;
}
.device-dots i:last-child {
  background: #a5cfa0;
}
.device-body {
  padding: 18px 16px;
  background: #eef1f5;
}
.msg {
  display: flex;
  gap: 9px;
  margin-bottom: 13px;
}
.msg:last-child {
  margin-bottom: 0;
}
.msg-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: linear-gradient(145deg, #1176ff, #0b45b8);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}
.msg.from-user {
  justify-content: flex-end;
}
.msg-bubble {
  max-width: 84%;
  padding: 11px 13px;
  border: 1px solid #d8dee6;
  border-radius: 4px 12px 12px;
  background: #fff;
  color: #27405f;
  font-size: 13px;
  line-height: 1.6;
}
.msg.from-user .msg-bubble {
  border-color: #cfe0fa;
  border-radius: 12px 4px 12px;
  background: #e6f1ff;
}
.msg-bubble b {
  display: block;
  margin-bottom: 4px;
  color: #456a92;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.msg-cite {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 9px;
  padding: 4px 8px;
  border-radius: 5px;
  background: #eef4ff;
  color: #1a5fca;
  font-size: 11px;
  font-weight: 650;
}
.msg-cite svg {
  width: 13px;
  height: 13px;
}
.surface-handoff {
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6b8099;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.surface-handoff::before,
.surface-handoff::after {
  content: "";
  flex: 1;
  height: 1px;
  background: #ccd8e5;
}
.surface-report {
  padding: 20px;
  border: 1px solid #cfdcea;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--lift);
}
.report-top {
  display: flex;
  align-items: center;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.report-glyph {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 36px;
  height: 36px;
  border-radius: 9px;
  background: var(--blue-wash);
  color: var(--blue);
}
.report-glyph svg {
  width: 19px;
  height: 19px;
}
.report-top small {
  display: block;
  color: #64798f;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
}
.report-top strong {
  font-size: 15px;
  letter-spacing: -0.02em;
}
.report-flag {
  margin-left: auto;
  padding: 4px 9px;
  border-radius: 999px;
  background: #fff4dd;
  color: #7d5a0f;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.report-rows {
  margin: 14px 0 0;
}
.report-rows > div {
  display: grid;
  grid-template-columns: 104px minmax(0, 1fr);
  gap: 14px;
  padding: 8px 0;
  font-size: 12.5px;
  line-height: 1.6;
}
.report-rows dt {
  color: #6c7f93;
}
.report-rows dd {
  margin: 0;
  color: #22415f;
  font-weight: 600;
}
.report-meter {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  padding-top: 13px;
  border-top: 1px solid var(--line);
  color: #5a7189;
  font-size: 11px;
}
.report-meter span {
  position: relative;
  flex: 1;
  height: 6px;
  border-radius: 99px;
  background: #e6ecf4;
  overflow: hidden;
}
.report-meter span::after {
  content: "";
  position: absolute;
  inset: 0 8% 0 0;
  border-radius: 99px;
  background: linear-gradient(90deg, #1d76ff, #0a43b4);
}
@media (max-width: 950px) {
  .surface-section {
    grid-template-columns: 1fr;
    gap: var(--space-8);
  }
  .surface-copy h2,
  .surface-copy > p {
    max-width: 42rem;
  }
}
@media (max-width: 560px) {
  .surface-points li {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .report-rows > div {
    grid-template-columns: 1fr;
    gap: 2px;
  }
}

/* ---------- Capability icons ---------- */
.cap-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  margin-bottom: var(--space-5);
  border: 1px solid #d5e3f5;
  border-radius: 11px;
  background: var(--blue-wash);
  color: var(--blue);
}
.cap-icon svg {
  width: 21px;
  height: 21px;
}
.capability:hover .cap-icon {
  border-color: #a9c8ef;
  background: #e3eeff;
}
.capability h3 {
  margin-top: var(--space-4);
}

/* ---------- Connector catalogue ---------- */
.connector-block {
  margin-top: var(--space-12);
  padding-top: var(--space-10);
  border-top: 1px solid var(--line);
}
.connector-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: var(--space-6);
  flex-wrap: wrap;
  margin-bottom: var(--space-6);
}
.connector-head h3 {
  font-size: 1.25rem;
}
.connector-head p {
  max-width: 40ch;
  margin: 0;
  font-size: var(--text-sm);
}
.connector-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.connector-grid article {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--edge);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}
.connector-grid article:hover {
  border-color: #b7cde9;
  transform: translateY(-2px);
  box-shadow: var(--lift);
}
.connector-tile {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: -0.03em;
}
.t-zalo {
  background: #e4efff;
  color: #0068ff;
}
.t-google {
  background: #e7f3ea;
  color: #1a7a43;
}
.t-ms {
  background: #e6f0fb;
  color: #11559e;
}
.t-work {
  background: #efeafb;
  color: #5b46a5;
}
.t-crm {
  background: #fdeee6;
  color: #ad5320;
}
.t-erp {
  background: #e7f1f4;
  color: #21697f;
}
.connector-grid strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.connector-grid article > div > span {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 12.5px;
  line-height: 1.6;
}
@media (max-width: 950px) {
  .connector-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 620px) {
  .connector-grid {
    grid-template-columns: 1fr;
  }
}

/* ---------- Security controls ---------- */
.control-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-top: var(--space-10);
  padding-top: var(--space-8);
  border-top: 1px solid #2c4b64;
}
.control-strip article {
  padding: 18px;
  border: 1px solid #33526b;
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.035);
}
.control-strip svg {
  width: 20px;
  height: 20px;
  margin-bottom: 12px;
  color: #93bde4;
}
.control-strip strong {
  display: block;
  margin-bottom: 6px;
  color: #fff;
  font-size: 13.5px;
  letter-spacing: -0.02em;
}
.control-strip p {
  margin: 0;
  color: #a9c0d3;
  font-size: 12.5px;
  line-height: 1.65;
}
@media (max-width: 950px) {
  .control-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 520px) {
  .control-strip {
    grid-template-columns: 1fr;
  }
}

/* ---------- Rollout timeline ---------- */
.rollout-section {
  background: var(--canvas);
  border-block: 1px solid var(--line);
}
.rollout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0;
  padding: 0;
  list-style: none;
  background: #d8e1ec;
  border: 1px solid #d8e1ec;
  border-radius: 12px;
  overflow: hidden;
}
.rollout > li {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px 24px 28px;
  background: #fff;
}
.rollout > li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 3px;
  background: #d8e1ec;
}
.rollout > li:first-child::before {
  background: var(--blue);
}
.rollout > li:nth-child(2)::before {
  background: #4d90f0;
}
.rollout > li:nth-child(3)::before {
  background: #8db6f0;
}
.rollout-phase {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #5d7489;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.11em;
}
.rollout-phase b {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-wash);
  color: var(--blue);
  font-size: 11px;
}
.rollout h3 {
  margin: 18px 0 10px;
  font-size: 1.125rem;
}
.rollout p {
  margin: 0 0 16px;
  font-size: 13.5px;
  line-height: 1.7;
}
.rollout-out {
  margin: auto 0 0;
  padding: 14px 0 0;
  border-top: 1px solid var(--line);
  list-style: none;
}
.rollout-out li {
  position: relative;
  margin-bottom: 7px;
  padding-left: 18px;
  color: #3c556e;
  font-size: 12.5px;
  line-height: 1.6;
}
.rollout-out li:last-child {
  margin-bottom: 0;
}
.rollout-out li::before {
  content: "";
  position: absolute;
  top: 8px;
  left: 0;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9dbde4;
}
@media (max-width: 950px) {
  .rollout {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 600px) {
  .rollout {
    grid-template-columns: 1fr;
  }
  .rollout > li {
    padding: 22px 20px 24px;
  }
}

/* ---------- Deployment cards ---------- */
.deployment-card {
  position: relative;
}
.deployment-card.featured::after {
  content: "ĐƯỢC ĐỀ XUẤT";
  position: absolute;
  top: 22px;
  right: 22px;
  padding: 5px 10px;
  border-radius: 999px;
  background: var(--blue);
  color: #fff;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.09em;
}
.plan-fit {
  display: flex;
  gap: 10px;
  margin: 0 0 var(--space-5);
  padding: 12px 14px;
  border-radius: 9px;
  background: #f4f7fb;
  color: #45607a;
  font-size: 12.5px !important;
  line-height: 1.6 !important;
}
.deployment-card.featured .plan-fit {
  background: #e9f1fd;
}
.plan-fit b {
  color: var(--ink);
  white-space: nowrap;
}

/* ---------- Footer ---------- */
.footer-top {
  grid-template-columns: 1.6fr 1fr 1fr 1fr;
}
.contact-email {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  min-height: 44px;
  color: var(--blue) !important;
  font-size: 13px;
  font-weight: 650;
}
@media (max-width: 950px) {
  .footer-top {
    grid-template-columns: 1fr 1fr;
  }
}
@media (max-width: 700px) {
  .footer-top > div:first-child {
    grid-column: 1 / -1;
  }
}

/* ---------- Section reveal ---------- */
/* Hidden state is opt-in from JS (html.motion-ready) so the page still
   renders fully without scripting or IntersectionObserver. */
@media (prefers-reduced-motion: no-preference) {
  .motion-ready .reveal {
    opacity: 0;
    transform: translateY(16px);
    transition:
      opacity 0.5s ease,
      transform 0.5s ease;
  }
  .motion-ready .reveal.is-in {
    opacity: 1;
    transform: none;
  }
}

/* ---------- Use-case page: metadata and autoplay chrome ---------- */
.case-meta {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1px;
  margin: 0 0 14px;
  background: #d5dfeb;
  border: 1px solid #d5dfeb;
  border-radius: 12px;
  overflow: hidden;
}
.case-meta > div {
  min-width: 0;
  padding: 14px 16px;
  background: #fff;
}
.case-meta dt {
  color: #647a91;
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.1em;
}
.case-meta dd {
  margin: 6px 0 0;
  color: #23415f;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
@media (max-width: 950px) {
  .case-meta {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 700px) {
  .case-meta {
    margin: 0 14px 12px;
  }
}
@media (max-width: 460px) {
  .case-meta {
    grid-template-columns: 1fr;
  }
}

.journey {
  position: relative;
  row-gap: 10px;
}
.autoplay-line {
  position: absolute;
  bottom: -1px;
  left: 0;
  width: 0;
  height: 3px;
  border-radius: 0 3px 3px 0;
  background: linear-gradient(90deg, #4d90f0, var(--blue));
  transition: width 0.25s linear;
  pointer-events: none;
}
.journey.is-playing .autoplay-line {
  box-shadow: 0 0 10px rgba(7, 94, 230, 0.45);
}
.journey-heading .journey-status {
  display: flex;
  align-items: center;
  gap: 7px;
}
.play-dot {
  flex: 0 0 auto;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #b3bfcd;
}
.journey.is-playing .play-dot {
  background: #0d8a5f;
  animation: kq-pulse 1.6s ease-in-out infinite;
}
@keyframes kq-pulse {
  0%,
  100% {
    opacity: 1;
  }
  50% {
    opacity: 0.25;
  }
}
@media (prefers-reduced-motion: reduce) {
  .journey.is-playing .play-dot {
    animation: none;
  }
  .autoplay-line {
    transition: none;
  }
}
.journey-caption {
  grid-column: 1 / -1;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f4f8ff;
  color: #4a6587;
  font-size: 12px;
  line-height: 1.55;
}
.journey-caption svg {
  flex: 0 0 auto;
  width: 15px;
  height: 15px;
  margin-top: 2px;
  color: #2a6ad4;
}
.controls #play[data-state="playing"] {
  border-color: #b9cde8;
  background: var(--blue-wash);
  color: #0d4fae;
}
@media (max-width: 900px) {
  .journey .journey-caption {
    order: 4;
  }
}
@media (max-width: 700px) {
  .journey {
    min-height: 0;
  }
  .journey-caption {
    padding: 9px 10px;
    font-size: 11.5px;
  }
}

@media (max-width: 560px) {
  .report-top {
    flex-wrap: wrap;
    align-items: flex-start;
  }
  .report-top > div {
    flex: 1 1 calc(100% - 48px);
  }
  .report-flag {
    margin: 10px 0 0 48px;
  }
  /* Keep the hero badge on one line at phone widths. */
  .product-context {
    gap: 8px;
    padding: 6px 12px 6px 9px;
    font-size: 12px;
  }
}
@media (max-width: 400px) {
  .product-context {
    flex-wrap: wrap;
    row-gap: 2px;
  }
  .context-sep {
    display: none;
  }
}

/* Autoplay state is called out in words, not only by the moving bar. */
.play-hint {
  display: none;
  color: #0d8a5f;
}
.journey.is-playing .play-hint {
  display: inline;
}
