/* KimQ product-line layer: hero composite, product lines, the intelligent
   dashboard demo and the dashboard product page. Loaded after refine.css. */

:root {
  /* Be Vietnam Pro is drawn for Vietnamese: stacked diacritics stay clear of
     the line above, so headings no longer need the tight tracking that made
     "Một hội thoại" collide. */
  --font-sans: "Be Vietnam Pro", "Segoe UI Variable Text", "Segoe UI", Arial, sans-serif;
  --viz-blue: #2a78d6;
  --viz-blue-soft: #cfe0f6;
  --good: #17795d;
  --warn: #9a6100;
  --bad: #c2372f;
  --glow: 0 30px 60px -36px rgba(10, 67, 180, 0.55);
}

/* ---------- Header ---------- */
.nav-new {
  margin-left: 6px;
  padding: 1px 6px;
  border-radius: 999px;
  background: #e3f6ee;
  color: var(--good);
  font-size: 9.5px;
  font-weight: 800;
  letter-spacing: 0.06em;
}

/* ---------- Hero with product composite ---------- */
.enterprise-hero.has-visual {
  grid-template-columns: minmax(0, 1.02fr) minmax(0, 1fr);
  gap: clamp(2rem, 5vw, 4.5rem);
  align-items: center;
}
.enterprise-hero.has-visual .hero-copy h1 {
  font-size: clamp(2.4rem, 4.3vw, 3.9rem);
}
.hero-lines {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 26px;
}
.hero-lines a {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  padding: 8px 14px 8px 8px;
  border: 1px solid #d6e3f2;
  border-radius: 999px;
  background: #fff;
  color: #1f3c5a;
  font-size: 13px;
  font-weight: 650;
  box-shadow: var(--edge);
  transition: border-color 0.18s, transform 0.18s;
}
.hero-lines a:hover {
  border-color: #8fb3e3;
  transform: translateY(-1px);
}
.hero-lines i {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--blue-wash);
  color: var(--blue);
  font-style: normal;
  font-size: 11px;
  font-weight: 800;
}
.hero-visual {
  position: relative;
  min-width: 0;
  padding: 0 0 150px 28px;
}
.hero-visual::before {
  content: "";
  position: absolute;
  inset: 8% -6% 4% 6%;
  border-radius: 40px;
  background: radial-gradient(60% 60% at 60% 40%, rgba(42, 120, 214, 0.22), transparent 70%);
  filter: blur(8px);
  pointer-events: none;
}
.mini-dash {
  position: relative;
  padding: 18px;
  border: 1px solid #d3e0ee;
  border-radius: 18px;
  background: #fff;
  box-shadow: var(--glow);
}
.mini-dash-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.mini-dash-head strong {
  display: block;
  font-size: 14px;
  letter-spacing: -0.02em;
}
.mini-dash-head small {
  color: #6c8096;
  font-size: 11px;
}
.sample-tag {
  padding: 3px 9px;
  border: 1px dashed #b9c9db;
  border-radius: 999px;
  color: #5a6f86;
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}
.mini-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}
.mini-kpis div {
  padding: 10px 11px;
  border-radius: 11px;
  background: #f4f7fb;
}
.mini-kpis span {
  display: block;
  color: #60758c;
  font-size: 10.5px;
  line-height: 1.35;
}
.mini-kpis strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
  letter-spacing: -0.03em;
}
.mini-kpis small {
  font-size: 10.5px;
  font-weight: 700;
}
.mini-kpis .down { color: var(--bad); }
.mini-kpis .up { color: var(--good); }
.mini-chart {
  display: block;
  width: 100%;
  height: auto;
  margin-top: 12px;
}
.mini-chart .grid { stroke: #edf1f6; stroke-width: 1; stroke-dasharray: 2 4; }
.mini-chart .ref { stroke: #7d8ea3; stroke-width: 1; stroke-dasharray: 5 4; }
.mini-chart .trend { stroke: var(--viz-blue); stroke-width: 2.4; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.mini-chart .area { stroke: none; }
.mini-chart .dot { fill: var(--viz-blue); stroke: #fff; stroke-width: 2; }
.mini-chart text { fill: #4d6072; font-weight: 600; font-size: 10px; stroke: none; font-family: var(--font-sans); }
.mini-insight {
  display: flex;
  gap: 10px;
  margin-top: 10px;
  padding: 11px 12px;
  border: 1px solid #dbe6f7;
  border-radius: 11px;
  background: linear-gradient(180deg, #f5f9ff, #fff);
  color: #27405f;
  font-size: 12px;
  line-height: 1.55;
}
.ai-chip {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: linear-gradient(145deg, #1176ff, #0b45b8);
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.hero-chat {
  position: absolute;
  left: 0;
  bottom: 0;
  width: min(330px, 78%);
  padding: 12px 13px;
  border: 1px solid #d3e0ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 44px -26px rgba(15, 42, 74, 0.55);
  font-size: 12px;
  line-height: 1.55;
  color: #27405f;
}
.hero-chat header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 7px;
  color: #5d7189;
  font-size: 10.5px;
  font-weight: 700;
}
.zalo-dot {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 6px;
  background: #0068ff;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.hero-chat p {
  margin: 0;
  color: #27405f;
}
.hero-chat p + p {
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid #edf1f6;
  color: #5d7189;
}

/* ---------- Product lines ---------- */
.products-section .section-heading {
  margin-bottom: 40px;
}
.product-lines {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.product-line {
  position: relative;
  display: flex;
  flex-direction: column;
  padding: 26px;
  border: 1px solid var(--line);
  border-radius: 20px;
  background: #fff;
  box-shadow: var(--edge);
  transition: transform 0.22s, box-shadow 0.22s, border-color 0.22s;
}
.product-line:hover {
  transform: translateY(-3px);
  border-color: #b8cde6;
  box-shadow: var(--lift);
}
.product-line.is-feature {
  border-color: #b9d1f3;
  background: linear-gradient(180deg, #f4f8ff 0%, #fff 55%);
}
.product-line-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #50667d;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.line-badge {
  padding: 3px 9px;
  border-radius: 999px;
  background: #e3f6ee;
  color: var(--good);
  font-size: 10px;
  letter-spacing: 0.06em;
}
.line-badge.is-service {
  background: var(--blue-wash);
  color: var(--blue);
}
.product-art {
  height: 138px;
  margin: 18px 0 20px;
  padding: 14px;
  border-radius: 14px;
  background: #f1f5fa;
  overflow: hidden;
}
.product-line h3 {
  font-size: 22px;
}
.product-line > p {
  margin: 10px 0 16px;
  font-size: 14.5px;
  line-height: 1.7;
}
.product-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0 0 20px;
  padding: 0;
  list-style: none;
}
.product-tags li {
  padding: 4px 10px;
  border: 1px solid #dae4ef;
  border-radius: 999px;
  color: #3b5773;
  font-size: 12px;
  font-weight: 600;
}
.product-line .inline-link {
  margin-top: auto;
}
.product-line .inline-link::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
}
/* Art: chat bubbles */
.art-chat {
  display: grid;
  gap: 7px;
}
.art-chat span {
  width: fit-content;
  max-width: 88%;
  padding: 7px 10px;
  border-radius: 4px 11px 11px;
  background: #fff;
  color: #27405f;
  font-size: 11.5px;
  line-height: 1.4;
  box-shadow: var(--edge);
}
.art-chat span.me {
  justify-self: end;
  border-radius: 11px 4px 11px;
  background: #dcebff;
}
/* Art: bars + line */
.art-dash {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  height: 100%;
}
.art-dash > div {
  padding: 9px;
  border-radius: 10px;
  background: #fff;
}
.art-dash small {
  display: block;
  color: #6c8096;
  font-size: 10px;
}
.art-dash b {
  display: block;
  font-size: 17px;
  letter-spacing: -0.03em;
}
.art-dash b em {
  margin-left: 4px;
  color: var(--bad);
  font-size: 10.5px;
  font-style: normal;
}
.art-bars {
  display: flex;
  align-items: flex-end;
  gap: 4px;
  height: 46px;
  margin-top: 6px;
}
.art-bars i {
  flex: 1;
  height: var(--h);
  border-radius: 3px 3px 0 0;
  background: var(--viz-blue-soft);
}
.art-bars i:last-child {
  background: var(--viz-blue);
}
.art-dash svg {
  width: 100%;
  height: 52px;
  margin-top: 4px;
}
/* Art: service steps */
.art-steps {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  align-items: center;
  height: 100%;
}
.art-steps::before {
  content: "";
  position: absolute;
  left: 12%;
  right: 12%;
  top: 38%;
  height: 2px;
  background: linear-gradient(90deg, var(--blue), #b9d1f3);
}
.art-steps span {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 8px;
  color: #3b5773;
  font-size: 10.5px;
  font-weight: 700;
  text-align: center;
}
.art-steps span::before {
  content: attr(data-n);
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 2px solid var(--blue);
  border-radius: 50%;
  background: #fff;
  color: var(--blue);
  font-size: 11px;
}
.art-steps span:first-child::before {
  background: var(--blue);
  color: #fff;
}
.platform-strip {
  display: grid;
  grid-template-columns: auto repeat(4, minmax(0, 1fr));
  align-items: center;
  gap: 14px;
  margin-top: 18px;
  padding: 16px 22px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--canvas);
}
.platform-strip > strong {
  color: #3b5773;
  font-size: 11px;
  letter-spacing: 0.12em;
}
.platform-strip span {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #27405f;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
}
.platform-strip svg {
  width: 18px;
  height: 18px;
  color: var(--blue);
}

/* ---------- Service line intro (Zalo) ---------- */
.line-intro {
  padding-block: var(--space-16) 0;
  background: var(--canvas);
}
.line-intro.is-dark {
  padding-top: clamp(3rem, 5vw, 4rem);
  background: none;
}
.line-intro.is-dark + .section {
  padding-top: clamp(3rem, 5vw, 4.5rem);
}
.line-intro-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 32px;
  padding: 20px 24px;
  border: 1px solid #cfe0f6;
  border-radius: 18px;
  background: linear-gradient(90deg, #f2f7ff, #fff);
}
.line-intro-inner > div {
  display: flex;
  align-items: center;
  gap: 16px;
}
.line-number {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--blue);
  color: #fff;
  font-size: 16px;
  font-weight: 800;
  box-shadow: 0 10px 20px -12px rgba(7, 94, 230, 0.9);
}
.line-intro small {
  display: block;
  color: #50667d;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.line-intro strong {
  font-size: 20px;
  letter-spacing: -0.03em;
}
.line-intro nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.line-intro nav a {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 4px 12px;
  border: 1px solid #d6e3f2;
  border-radius: 999px;
  background: #fff;
  color: #2d4f73;
  font-size: 12.5px;
  font-weight: 650;
}
.line-intro nav a:hover {
  border-color: var(--blue);
  color: var(--blue);
}
.line-intro.is-dark .line-intro-inner {
  border-color: #2c4d6c;
  background: linear-gradient(90deg, #13314f, #0f2942);
}
.line-intro.is-dark small { color: #8fb1d2; }
.line-intro.is-dark strong { color: #fff; }

/* ---------- Dashboard showcase band ---------- */
.dashboard-band {
  position: relative;
  overflow: hidden;
  background: #0f2942;
  color: #dbe7f4;
}
.dashboard-band::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(70% 60% at 85% 0%, rgba(42, 120, 214, 0.35), transparent 65%),
    radial-gradient(50% 50% at 0% 100%, rgba(28, 156, 111, 0.14), transparent 70%);
  pointer-events: none;
}
.dashboard-band > * {
  position: relative;
}
.dashboard-band .section-label { color: #8fb1d2; }
.dashboard-band h2 { color: #fff; }
.dashboard-band .section-heading p { color: #b9cde2; }
.dashboard-band .blue-text { color: #7db4ff; }
.dash-features {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin-top: 28px;
}
.dash-features article {
  padding: 22px;
  border: 1px solid #2a4a69;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.04);
}
.dash-features svg {
  width: 22px;
  height: 22px;
  color: #7db4ff;
}
.dash-features h3 {
  margin: 14px 0 8px;
  color: #fff;
  font-size: 17px;
}
.dash-features p {
  margin: 0;
  color: #b9cde2;
  font-size: 14px;
  line-height: 1.7;
}
.dashboard-band-cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 18px;
  margin-top: 30px;
}
.dashboard-band-cta .button.ghost {
  border-color: #3a5c7d;
  color: #fff;
}
.dashboard-band-cta .button.ghost:hover {
  background: rgba(255, 255, 255, 0.08);
}

/* ---------- The dashboard component ---------- */
.dash {
  --panel: #fff;
  border: 1px solid #d3e0ee;
  border-radius: 20px;
  background: #f4f7fb;
  color: var(--ink);
  box-shadow: 0 40px 80px -48px rgba(0, 0, 0, 0.6);
  overflow: hidden;
}
.dash-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.dash-title {
  display: flex;
  align-items: center;
  gap: 11px;
}
.dash-title strong {
  display: block;
  font-size: 15px;
  letter-spacing: -0.02em;
}
.dash-title small {
  color: #6c8096;
  font-size: 11.5px;
}
.dash-title .brand-mark,
.dash-title .brand-mark svg {
  width: 30px;
  height: 30px;
  border-radius: 9px;
}
.dash-tabs {
  display: flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #eef2f7;
}
.dash-tabs button {
  min-height: 38px;
  padding: 6px 14px;
  border: 0;
  border-radius: 9px;
  background: none;
  color: #4d6072;
  font-size: 13px;
  font-weight: 650;
  white-space: nowrap;
}
.dash-tabs button[aria-selected="true"] {
  background: #fff;
  color: var(--blue);
  box-shadow: 0 1px 3px rgba(15, 42, 74, 0.14);
}
.dash-sourcebar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 12px;
  padding: 10px 18px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfe;
  color: #60758c;
  font-size: 11.5px;
}
.dash-sources {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.dash-sources span {
  padding: 2px 9px;
  border: 1px solid #dae4ef;
  border-radius: 999px;
  background: #fff;
  color: #2d4f73;
  font-weight: 650;
}
.dash-sync {
  margin-left: auto;
  color: var(--good);
  font-weight: 700;
}
.dash-sync::before {
  content: "✓ ";
}
.dash-body {
  padding: 16px;
}
.dash-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}
.dash-kpi {
  padding: 14px 16px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: var(--panel);
}
.dash-kpi span {
  display: block;
  color: #60758c;
  font-size: 12px;
  line-height: 1.4;
}
.dash-kpi strong {
  display: block;
  margin: 4px 0 2px;
  font-size: clamp(20px, 2vw, 26px);
  letter-spacing: -0.035em;
  line-height: 1.2;
}
.dash-kpi small {
  color: #6c8096;
  font-size: 11.5px;
}
.dash-kpi small b {
  font-weight: 750;
}
.tone-down small b { color: var(--bad); }
.tone-warn small b { color: var(--warn); }
.tone-flat small b { color: #4d6072; }
.dash-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr);
  grid-template-areas:
    "trend insight"
    "breakdown insight";
  gap: 12px;
  margin-top: 12px;
}
.dash-card {
  margin: 0;
  padding: 16px;
  border: 1px solid #e1e8f0;
  border-radius: 14px;
  background: var(--panel);
  min-width: 0;
}
.dash-card figcaption {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.dash-card figcaption strong {
  font-size: 13.5px;
}
.dash-card figcaption span {
  color: #6c8096;
  font-size: 11.5px;
}
.dash-trend { grid-area: trend; }
.dash-breakdown { grid-area: breakdown; }
.dash-insight { grid-area: insight; }
.dash-plot {
  position: relative;
}
.dash-line {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.dash-line .grid line { stroke: #edf1f6; stroke-width: 1; stroke-dasharray: 2 4; }
.dash-line text {
  fill: #6c8096;
  stroke: none;
  font-family: var(--font-sans);
  font-size: 11px;
}
.dash-line .ref { stroke: #7d8ea3; stroke-width: 1.2; stroke-dasharray: 6 5; }
.dash-line .ref-label { fill: #4d6072; font-weight: 650; }
.dash-line .area { stroke: none; }
.dash-line .trend { fill: none; stroke: var(--viz-blue); stroke-width: 2.6; stroke-linecap: round; stroke-linejoin: round; }
.dash-line .last-dot,
.dash-line .hover-dot { fill: var(--viz-blue); stroke: #fff; stroke-width: 2.5; }
.dash-line .cross { stroke: #9fb0c3; stroke-width: 1; opacity: 0; }
.dash-line .hover-dot { opacity: 0; }
.dash-line.is-hover .cross,
.dash-line.is-hover .hover-dot { opacity: 1; }
.dash-line .hit { fill: transparent; stroke: none; cursor: crosshair; }
.dash-tip {
  position: absolute;
  z-index: 2;
  transform: translate(-50%, calc(-100% - 14px));
  padding: 6px 10px;
  border-radius: 8px;
  background: #0f2942;
  color: #fff;
  font-size: 12px;
  line-height: 1.45;
  white-space: nowrap;
  pointer-events: none;
}
.dash-tip b {
  display: block;
  color: #9fc2ea;
  font-size: 10.5px;
}
.dash-breakdown ul {
  display: grid;
  gap: 11px;
  margin: 10px 0 0;
  padding: 0;
  list-style: none;
}
.dash-breakdown li {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  font-size: 12.5px;
}
.dash-breakdown li span { color: #3b5773; }
.dash-breakdown li b { font-weight: 700; }
.dash-breakdown li i {
  grid-column: 1 / -1;
  display: block;
  height: 8px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--viz-blue-soft) var(--w), #eef2f7 var(--w));
}
.dash-breakdown li.is-focus i {
  background: linear-gradient(90deg, var(--viz-blue) var(--w), #eef2f7 var(--w));
}
.dash-breakdown li.is-focus span { color: var(--ink); font-weight: 700; }
.dash-insight {
  display: flex;
  flex-direction: column;
  border-color: #cfe0f6;
  background: linear-gradient(180deg, #f5f9ff 0%, #fff 40%);
}
.insight-kicker {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 10px;
  color: #2d4f73;
  font-size: 11.5px;
  font-weight: 750;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.dash-insight h4 {
  margin: 0 0 12px;
  font-size: 16px;
  line-height: 1.45;
  letter-spacing: -0.02em;
}
.dash-insight ol {
  display: grid;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  counter-reset: reason;
}
.dash-insight ol li {
  position: relative;
  padding-left: 28px;
  counter-increment: reason;
}
.dash-insight ol li::before {
  content: counter(reason);
  position: absolute;
  left: 0;
  top: 1px;
  display: grid;
  place-items: center;
  width: 19px;
  height: 19px;
  border-radius: 50%;
  background: #e5efff;
  color: var(--blue);
  font-size: 10.5px;
  font-weight: 800;
}
.dash-insight ol p {
  margin: 0;
  color: #27405f;
  font-size: 13px;
  line-height: 1.55;
}
.dash-insight ol span {
  display: inline-block;
  margin-top: 4px;
  padding: 1px 7px;
  border-radius: 5px;
  background: #eef4ff;
  color: #1a5fca;
  font-size: 10.5px;
  font-weight: 650;
}
.insight-action {
  margin: 0 0 10px;
  padding: 11px 12px;
  border-radius: 10px;
  background: #fff8e8;
  color: #5b4308;
  font-size: 12.5px;
  line-height: 1.55;
}
.insight-action b {
  display: block;
  color: var(--warn);
  font-size: 10.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.insight-zalo {
  display: flex;
  align-items: center;
  gap: 9px;
  margin: auto 0 0;
  padding-top: 10px;
  border-top: 1px solid #e6edf5;
  color: #3b5773;
  font-size: 12px;
  line-height: 1.45;
}
.insight-zalo span {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 22px;
  height: 22px;
  border-radius: 7px;
  background: #0068ff;
  color: #fff;
  font-size: 11px;
  font-weight: 800;
}
.dash-table {
  margin-top: 12px;
  font-size: 12.5px;
}
.dash-table summary {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  color: #2d4f73;
  font-weight: 650;
}
.dash-table-scroll {
  overflow-x: auto;
}
.dash-table table {
  width: 100%;
  border-collapse: collapse;
  background: #fff;
}
.dash-table caption {
  padding: 6px 0;
  color: #60758c;
  text-align: left;
}
.dash-table th,
.dash-table td {
  padding: 6px 8px;
  border: 1px solid #e1e8f0;
  text-align: right;
  white-space: nowrap;
}
.dash-table th[scope="row"] {
  text-align: left;
}
.dash-note {
  margin: 12px 0 0;
  color: #8fb1d2;
  font-size: 12px;
  text-align: center;
}

/* ---------- Dashboard page ---------- */
.dash-hero {
  padding-block: clamp(3.5rem, 6vw, 5rem) 0;
}
.dash-hero-copy {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  align-items: end;
  gap: clamp(2rem, 5vw, 4.5rem);
  margin-bottom: 40px;
}
.dash-hero-copy h1 {
  font-size: clamp(2.4rem, 4.4vw, 3.9rem);
  line-height: 1.08;
}
.dash-hero-copy h1 span {
  color: var(--blue);
}
.dash-hero-copy .hero-lead {
  margin-top: 0;
}
.dash-hero-stage {
  padding-bottom: clamp(3.5rem, 6vw, 5rem);
}
.pain-grid,
.board-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.pain-grid article {
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.pain-grid b {
  display: block;
  color: var(--bad);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.pain-grid h3 {
  margin: 12px 0 10px;
  font-size: 19px;
}
.pain-grid p {
  margin: 0;
  font-size: 14.5px;
  line-height: 1.7;
}
.pipeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: layer;
}
.pipeline li {
  position: relative;
  padding: 26px 22px 24px;
  border: 1px solid var(--line);
  background: #fff;
}
.pipeline li + li {
  border-left: 0;
}
.pipeline li:first-child { border-radius: 18px 0 0 18px; }
.pipeline li:last-child { border-radius: 0 18px 18px 0; background: linear-gradient(180deg, #f2f7ff, #fff); }
.pipeline li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 34px;
  right: -9px;
  width: 16px;
  height: 16px;
  border-top: 1px solid var(--line);
  border-right: 1px solid var(--line);
  background: #fff;
  transform: rotate(45deg);
}
.pipeline .layer-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--blue-wash);
  color: var(--blue);
}
.pipeline .layer-icon svg {
  width: 21px;
  height: 21px;
}
.pipeline small {
  display: block;
  margin-top: 16px;
  color: #50667d;
  font-size: 10.5px;
  font-weight: 750;
  letter-spacing: 0.12em;
}
.pipeline h3 {
  margin: 6px 0 10px;
  font-size: 18px;
}
.pipeline p {
  margin: 0 0 12px;
  font-size: 14px;
  line-height: 1.7;
}
.pipeline ul {
  margin: 0;
  padding: 0;
  list-style: none;
  color: #3b5773;
  font-size: 12.5px;
  line-height: 1.8;
}
.pipeline ul li {
  padding: 0;
  border: 0;
  background: none;
  border-radius: 0;
}
.pipeline ul li::after { display: none; }
.pipeline ul li::before {
  content: "— ";
  color: #9fb0c3;
}
.board-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.board-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 18px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
}
.board-card .layer-icon {
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 13px;
  background: var(--blue-wash);
  color: var(--blue);
}
.board-card h3 {
  font-size: 19px;
}
.board-card q {
  display: block;
  margin: 10px 0 14px;
  color: #27405f;
  font-size: 14.5px;
  font-style: italic;
  line-height: 1.6;
  quotes: "“" "”";
}
.board-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
  font-size: 13px;
}
.board-card dl div {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  gap: 10px;
}
.board-card dt {
  color: #6c8096;
}
.board-card dd {
  margin: 0;
  color: #22415f;
  font-weight: 600;
}
.trust-split {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.trust-split article {
  padding: 28px;
  border-radius: 20px;
}
.trust-split .does {
  border: 1px solid #b9dccd;
  background: linear-gradient(180deg, #effaf5, #fff);
}
.trust-split .doesnt {
  border: 1px solid #efd2cf;
  background: linear-gradient(180deg, #fdf3f2, #fff);
}
.trust-split h3 {
  font-size: 20px;
  margin-bottom: 16px;
}
.trust-split ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.trust-split li {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  gap: 10px;
  color: #27405f;
  font-size: 14.5px;
  line-height: 1.6;
}
.trust-split li::before {
  display: grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 800;
}
.trust-split .does li::before {
  content: "✓";
  background: #d7f0e4;
  color: var(--good);
}
.trust-split .doesnt li::before {
  content: "✕";
  background: #f8dcd9;
  color: var(--bad);
}
.ask-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: center;
  gap: clamp(2rem, 6vw, 5rem);
}
.ask-section .device {
  max-width: 520px;
  justify-self: end;
  width: 100%;
}
.msg-chart {
  display: grid;
  gap: 6px;
  margin-top: 9px;
  padding: 9px 10px;
  border: 1px solid #dfe7f1;
  border-radius: 8px;
  background: #f8fafc;
}
.msg-chart span {
  display: grid;
  grid-template-columns: 82px minmax(0, 1fr) 44px;
  align-items: center;
  gap: 8px;
  font-size: 11px;
}
.msg-chart i {
  height: 7px;
  border-radius: 4px;
  background: linear-gradient(90deg, var(--viz-blue-soft) var(--w), #eef2f7 var(--w));
}
.msg-chart span.is-focus i {
  background: linear-gradient(90deg, var(--viz-blue) var(--w), #eef2f7 var(--w));
}
.msg-chart b {
  text-align: right;
}
.dash-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.dash-steps li {
  padding: 24px;
  border-top: 3px solid var(--blue);
  border-radius: 0 0 16px 16px;
  background: var(--canvas);
}
.dash-steps li:nth-child(2) { border-top-color: #5c9bf0; }
.dash-steps li:nth-child(3) { border-top-color: #a9c8f3; }
.dash-steps b {
  color: var(--blue);
  font-size: 11px;
  letter-spacing: 0.12em;
}
.dash-steps h3 {
  margin: 8px 0 8px;
  font-size: 18px;
}
.dash-steps p {
  margin: 0;
  font-size: 14px;
  line-height: 1.7;
}

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .product-lines {
    grid-template-columns: 1fr 1fr;
  }
  .product-lines > :last-child {
    grid-column: 1 / -1;
  }
  .platform-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .platform-strip > strong {
    grid-column: 1 / -1;
  }
  .dash-grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    grid-template-areas:
      "trend trend"
      "breakdown insight";
  }
  .pipeline {
    grid-template-columns: 1fr 1fr;
    gap: 12px;
  }
  .pipeline li,
  .pipeline li + li {
    border: 1px solid var(--line);
    border-radius: 18px;
  }
  .pipeline li:first-child,
  .pipeline li:last-child {
    border-radius: 18px;
  }
  .pipeline li::after {
    display: none;
  }
}
@media (max-width: 900px) {
  .enterprise-hero.has-visual,
  .dash-hero-copy,
  .ask-section {
    grid-template-columns: 1fr;
  }
  .hero-visual {
    max-width: 560px;
  }
  .dash-features,
  .pain-grid,
  .dash-steps {
    grid-template-columns: 1fr;
  }
  .board-grid,
  .trust-split {
    grid-template-columns: 1fr;
  }
  .ask-section .device {
    justify-self: stretch;
    max-width: none;
  }
}
@media (max-width: 700px) {
  .product-lines {
    grid-template-columns: 1fr;
  }
  .dash-kpis {
    grid-template-columns: 1fr 1fr;
  }
  .dash-grid {
    grid-template-columns: 1fr;
    grid-template-areas:
      "trend"
      "insight"
      "breakdown";
  }
  .dash-head {
    padding: 12px;
  }
  .dash-tabs {
    width: 100%;
    overflow-x: auto;
    scrollbar-width: none;
  }
  .dash-tabs button {
    flex: 1 0 auto;
    padding-inline: 10px;
    font-size: 12.5px;
  }
  .dash-body {
    padding: 10px;
  }
  .dash-sourcebar {
    padding: 10px 12px;
  }
  .dash-sync {
    margin-left: 0;
  }
  .hero-visual {
    padding: 0;
  }
  .hero-chat {
    position: relative;
    width: auto;
    margin: -18px 14px 0;
  }
  .mini-kpis strong {
    font-size: 16px;
  }
  .platform-strip {
    grid-template-columns: 1fr;
  }
  .line-intro-inner {
    padding: 16px;
  }
  .board-card {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .pipeline {
    grid-template-columns: 1fr;
  }
}
@media (prefers-reduced-motion: reduce) {
  .product-line,
  .hero-lines a {
    transition: none;
  }
  .product-line:hover,
  .hero-lines a:hover {
    transform: none;
  }
}
.msg-chart em {
  color: #3b5773;
  font-style: normal;
}
.msg-bubble .msg-chart b {
  display: block;
  margin: 0;
  color: #22415f;
  font-size: 11px;
  letter-spacing: 0;
}

/* The nav now holds one more item, so on mid widths the centred 680px
   connection menu would spill past the viewport. Anchor it to the header
   shell's right edge instead of its trigger. */
@media (min-width: 701px) and (max-width: 1320px) {
  .header-inner {
    position: relative;
  }
  .nav-connections {
    position: static;
  }
  .connection-menu {
    left: auto;
    right: 0;
    width: min(680px, 100%);
    transform: translateY(-8px);
  }
  .nav-connections:hover .connection-menu,
  .nav-connections:focus-within .connection-menu {
    transform: none;
  }
}

/* ---------- Typography for Be Vietnam Pro ---------- */
body {
  letter-spacing: 0;
}
h1,
h2 {
  letter-spacing: -0.03em;
  line-height: 1.16;
}
h3 {
  letter-spacing: -0.015em;
}
.hero-copy h1,
.enterprise-hero.has-visual .hero-copy h1,
.dash-hero-copy h1,
.case-intro-grid h1 {
  line-height: 1.12;
}

/* ---------- Products mega menu ---------- */
.nav-products .use-case-menu {
  width: 600px;
}
.nav-products .nav-new {
  font-style: normal;
  vertical-align: 1px;
}
/* On phones the menu opens as a plain list, so every product stays one tap away. */
@media (max-width: 700px) {
  .nav-products .use-case-menu {
    position: static;
    display: block;
    width: auto;
    padding: 0 0 8px 14px;
    border: 0;
    box-shadow: none;
    opacity: 1;
    visibility: visible;
    transform: none;
    pointer-events: auto;
  }
  .nav-products .use-case-menu::before,
  .nav-products .use-case-menu-head {
    display: none;
  }
  .nav-products .use-case-menu-grid {
    grid-template-columns: 1fr;
    margin: 0;
  }
  .header-inner nav .nav-products .use-case-menu-grid > a {
    min-height: 48px;
    padding: 10px 4px;
    border-radius: 0;
    background: none;
  }
  .nav-products .use-case-menu-grid span {
    display: none;
  }
}

/* A <button> styled as a text link must not keep the browser's grey fill. */
button.button.text {
  border: 0;
  background: none;
}
