/* =====================================================================
   DataGage — product presentation page
   Builds on css/site.css (tokens, components, mockup kit).
   All layout uses logical properties so RTL mirrors automatically.
   Sections
   01 Slide frame & progress dots   07 Tour mockups
   02 Hero                          08 Agent run (band)
   03 Product app mockup (dg-app)   09 Feature tabs & chart gallery
   04 Insight cards                 10 Governance & deployment
   05 Problem → promise             11 Audience, rollout, CTA
   06 Module map                    12 Responsive
   ===================================================================== */

/* ---------------------------------------------------------------------
   01 · Slide frame & progress dots
   --------------------------------------------------------------------- */
.dg-slide { position: relative; }
@media (min-width: 1024px) and (min-height: 720px) {
  .section.dg-slide { min-height: 82vh; display: flex; flex-direction: column; justify-content: center; }
  .section.dg-slide > .container { width: 100%; }
}

.dg-dots {
  position: fixed;
  z-index: 90;
  top: 50%;
  inset-inline-end: 14px;
  transform: translateY(-50%);
  display: none;
}
@media (min-width: 1360px) and (min-height: 660px) { .dg-dots { display: block; } }
.dg-dots ol {
  list-style: none;
  margin: 0;
  padding: 8px 5px;
  display: flex;
  flex-direction: column;
  gap: 1px;
  border-radius: var(--radius-full);
  background: var(--glass);
  border: 1px solid var(--border);
  -webkit-backdrop-filter: blur(12px) saturate(150%);
  backdrop-filter: blur(12px) saturate(150%);
  box-shadow: var(--shadow-sm);
}
.dg-dots a {
  position: relative;
  display: grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
}
.dg-dots a::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: var(--radius-full);
  background: var(--border-strong);
  transition: height .3s var(--ease-out), background-color .25s;
}
.dg-dots a:hover::before { background: var(--text-muted); }
.dg-dots a[aria-current="true"]::before { height: 15px; background: var(--pa); }
.dg-dot-label {
  position: absolute;
  top: 50%;
  inset-inline-end: calc(100% + 12px);
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 5px 11px;
  border-radius: var(--radius-full);
  background: var(--text);
  color: var(--bg);
  font-size: .76rem;
  font-weight: 600;
  white-space: nowrap;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-50%) translateX(calc(6px * var(--dir)));
  transition: opacity .2s, transform .25s var(--ease-out);
  box-shadow: var(--shadow);
}
.dg-dot-label b { font-family: var(--font-mono); font-weight: 500; font-size: .68rem; opacity: .6; }
.dg-dots a:hover .dg-dot-label,
.dg-dots a:focus-visible .dg-dot-label { opacity: 1; transform: translateY(-50%); }

/* slide numbers ("01 / 17") must not be reordered in RTL */
.eyebrow .num { direction: ltr; unicode-bidi: isolate; }

/* eyebrows on the dark/cta surfaces */
.cta-band .dg-cta-eyebrow { color: #b3a8ff; justify-content: center; margin-bottom: 18px; }
.cta-band .dg-cta-eyebrow .num { color: var(--band-muted); }

/* ---------------------------------------------------------------------
   02 · Hero
   --------------------------------------------------------------------- */
.dg-hero { padding-top: clamp(32px, 5vw, 64px); }
.dg-hero .aurora { --aurora-2: color-mix(in oklab, var(--cyan) 30%, transparent); }
.dg-hero-inner { max-width: 1040px; }
.dg-crumbs { justify-content: center; margin-bottom: 18px; }
.dg-crumbs [aria-current] { color: var(--text-2); font-weight: 600; }
.dg-eyebrow { margin-bottom: 14px; }
.dg-hero h1.dg-title { margin-bottom: 26px; }
.dg-wordmark {
  display: block;
  padding-bottom: .04em;
  font-family: var(--font-sans);
  font-size: clamp(3.6rem, 1.2rem + 11vw, 10.5rem);
  font-weight: 700;
  line-height: .92;
  letter-spacing: -0.058em;
  direction: ltr;
  background: linear-gradient(175deg, var(--text) 30%, color-mix(in oklab, var(--text) 35%, var(--pa)) 100%);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
html[lang="ar"] .dg-wordmark { font-family: var(--font-sans); line-height: .95; letter-spacing: -0.058em !important; }
.dg-position {
  display: block;
  margin-top: 18px;
  font-size: clamp(1.3rem, .95rem + 1.5vw, 2.25rem);
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: -0.025em;
  color: var(--text);
}
html[lang="ar"] .dg-position { font-family: var(--font-display-ar); font-weight: 700; line-height: 1.55; }
.dg-hero .lead { max-width: 740px; }
.dg-chips {
  list-style: none;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
  margin-top: 28px;
}
.dg-chips .chip {
  padding: 6px 12px;
  font-size: .82rem;
  white-space: normal;
  background: color-mix(in oklab, var(--surface) 82%, transparent);
}
.dg-chips .chip .i { width: 14px; height: 14px; color: var(--pa); }

.dg-hero-visual { max-width: 1240px; margin-inline: auto; }
.dg-hero-visual .dg-app { box-shadow: var(--shadow-lg), 0 40px 120px -60px color-mix(in oklab, var(--pa) 55%, transparent); }

/* floating chips around the hero mockup */
.dg-float {
  position: absolute;
  z-index: 3;
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 330px;
  padding: 10px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  font-size: .84rem;
  line-height: 1.4;
  color: var(--text);
  text-align: start;
}
.dg-float-ask { inset-inline-start: -22px; bottom: 64px; animation: dg-bob 6s var(--ease-in-out) infinite; }
.dg-float-guard { inset-inline-end: 72px; top: -26px; animation: dg-bob 7s var(--ease-in-out) 1s infinite; }
.dg-float-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; flex-shrink: 0; background: var(--accent); color: var(--accent-contrast); }
.dg-float-ico.ok { background: var(--success-soft); color: var(--success); }
.dg-float-ico .i { width: 17px; height: 17px; }
.dg-float-txt { display: flex; flex-direction: column; }
.dg-float-txt small { font-size: .7rem; font-weight: 600; color: var(--text-muted); }
.dg-float-send { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; background: var(--surface-2); color: var(--accent-text); flex-shrink: 0; }
.dg-float-send .i { width: 14px; height: 14px; }
@keyframes dg-bob { 50% { transform: translateY(-7px); } }
@media (max-width: 1180px) { .dg-float { display: none; } }

/* ---------------------------------------------------------------------
   03 · Product app mockup
   Light: site tokens with a soft glass feel.
   Dark: DataGage's own Dark theme tokens (5.1), scoped to the mockup.
   --------------------------------------------------------------------- */
.dg-app {
  container-type: inline-size;
  --dg-bg: var(--bg-2);
  --dg-panel: color-mix(in oklab, var(--surface) 84%, transparent);
  --dg-line: var(--border);
  --dg-glow-a: color-mix(in oklab, var(--brand) 16%, transparent);
  --dg-glow-b: color-mix(in oklab, var(--pa) 13%, transparent);
  --dg-side: color-mix(in oklab, var(--surface) 58%, transparent);
  --dg-headbg: color-mix(in oklab, var(--surface) 66%, transparent);
  --dg-shadow: 0 1px 2px rgba(14, 12, 27, .04), 0 10px 30px -14px rgba(40, 30, 120, .16);
  background:
    radial-gradient(55% 45% at 100% 0%, var(--dg-glow-a), transparent 70%),
    radial-gradient(45% 45% at 0% 100%, var(--dg-glow-b), transparent 70%),
    var(--dg-bg);
}
[data-theme="dark"] .dg-app {
  --bg: #0b0e13;
  --bg-2: #10141b;
  --surface: #161b24;
  --surface-2: #1c222d;
  --surface-3: #232a36;
  --border: rgba(255, 255, 255, .07);
  --border-strong: rgba(255, 255, 255, .13);
  --text: #eceff4;
  --text-2: #c0c7d2;
  --text-muted: #939bab;
  --s1: #6ea8fe; --s2: #3fd5c0; --s3: #f7907c; --s4: #b39dfa; --s5: #f5c451; --s6: #7ddc8f;
  --dg-bg: #0b0e13;
  --dg-panel: linear-gradient(160deg, rgba(36, 42, 55, .72), rgba(22, 27, 36, .56));
  --dg-line: rgba(255, 255, 255, .07);
  --dg-glow-a: rgba(139, 124, 246, .22);
  --dg-glow-b: rgba(63, 213, 192, .14);
  --dg-side: rgba(17, 21, 29, .58);
  --dg-headbg: rgba(13, 17, 23, .62);
  --dg-shadow: inset 0 1px 0 rgba(255, 255, 255, .06), 0 1px 2px rgba(0, 0, 0, .35), 0 14px 34px -16px rgba(0, 0, 0, .75);
  border-color: rgba(255, 255, 255, .13);
  color: var(--text);
}
.dg-app .mock-bar { background: color-mix(in oklab, var(--surface-2) 80%, transparent); border-bottom-color: var(--dg-line); }
.dg-app .mock-url { background: var(--surface); }

.dg-head {
  display: flex;
  align-items: center;
  gap: 12px;
  height: 46px;
  padding-inline: 14px;
  border-bottom: 1px solid var(--dg-line);
  background: var(--dg-headbg);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
  font-size: 12px;
}
.dg-head > .i { width: 17px; height: 17px; color: var(--text-2); }
.dg-logo { display: flex; align-items: center; gap: 8px; font-family: var(--font-sans); font-size: 13.5px; font-weight: 700; }
.dg-mark { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 7px; background: linear-gradient(135deg, var(--accent), var(--pa)); color: #fff; }
.dg-mark .i { width: 13px; height: 13px; }
.dg-head-sp { flex: 1; }
.dg-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px; border-radius: 99px; border: 1px solid var(--border-strong); color: var(--text-2); font-weight: 600; font-size: 11.5px; }
.dg-pill .i { width: 13px; height: 13px; }
.dg-lang { padding: 3px 8px; border-radius: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.dg-lang .t-en { font-family: var(--font-ar); }
.dg-lang .t-ar { font-family: var(--font-sans); }
.dg-user { display: flex; align-items: center; gap: 8px; font-size: 11.5px; color: var(--text-2); white-space: nowrap; }

.dg-shell { position: relative; display: grid; grid-template-columns: 190px minmax(0, 1fr) 238px; min-height: 540px; }
.dg-side {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 8px;
  border-inline-end: 1px solid var(--dg-line);
  background: var(--dg-side);
  min-width: 0;
}
.dg-nav {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 6px 10px;
  border-radius: 12px;
  color: var(--text-2);
  font-size: 12px;
  white-space: nowrap;
  min-width: 0;
}
.dg-nav > span { overflow: hidden; text-overflow: ellipsis; }
.dg-nav > .i { width: 15px; height: 15px; opacity: .85; }
.dg-nav.active { background: var(--accent); color: var(--accent-contrast); box-shadow: 0 8px 18px -10px var(--accent-glow); }
[data-theme="dark"] .dg-app .dg-nav.active { background: color-mix(in oklab, var(--accent) 62%, #1c222d); color: #fff; }
.dg-nav .ai-dot { margin-inline-start: auto; width: 6px; height: 6px; border-radius: 50%; flex-shrink: 0; background: var(--brand); box-shadow: 0 0 0 3px var(--accent-soft); }
.dg-nav .dg-caret { margin-inline-start: auto; width: 13px; height: 13px; }
.dg-sub { display: grid; gap: 1px; padding-inline-start: 12px; }
.dg-folder { display: flex; align-items: center; gap: 7px; padding: 5px 10px; font-size: 11px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.dg-folder .i { width: 13px; height: 13px; }
.dg-child { padding-block: 5px; font-size: 11.5px; }
.dg-child > .i { width: 13px; height: 13px; }

.dg-main { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 16px; min-width: 0; }
.dg-dash-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dg-crumb { font-size: 10.5px; color: var(--text-muted); }
.dg-h { font-size: 16px; font-weight: 700; letter-spacing: -0.01em; }
.dg-push { margin-inline-start: auto; }
.dg-fchip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 99px; background: var(--pa-soft); color: var(--pa-ink); font-size: 10.5px; font-weight: 600; white-space: nowrap; }
.dg-icon-btn { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 9px; border: 1px solid var(--dg-line); background: var(--dg-panel); color: var(--text-2); }
.dg-icon-btn .i { width: 14px; height: 14px; }

/* Glass KPI tiles (decorative colours via --k) */
.dg-kpis { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.dg-kpi {
  --k: #1E88E5;
  position: relative;
  display: block;
  padding: 13px 14px 16px;
  border-radius: 18px;
  overflow: hidden;
  isolation: isolate;
  color: #fff;
  background:
    radial-gradient(90% 85% at 100% 100%, color-mix(in oklab, var(--k) 55%, #fff) 0%, transparent 62%),
    linear-gradient(135deg, color-mix(in oklab, var(--k) 78%, #000), var(--k));
  box-shadow: 0 14px 30px -18px var(--k), inset 0 1px 0 rgba(255, 255, 255, .25);
}
.dg-kpi::before {
  content: "";
  position: absolute;
  z-index: -1;
  inset-block-start: -40px;
  inset-inline-end: -32px;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: rgba(255, 255, 255, .18);
}
.dg-kpi::after {
  content: "";
  position: absolute;
  inset-inline: 14px;
  bottom: 0;
  height: 3px;
  border-radius: 3px 3px 0 0;
  background: var(--kt, #86efac);
  box-shadow: 0 0 12px var(--kt, #86efac);
}
.dg-kpi .kl { display: block; font-size: 11px; font-weight: 500; opacity: .86; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-kpi .kv { display: block; margin-top: 3px; font-family: var(--font-sans); font-size: 21px; font-weight: 650; letter-spacing: -0.035em; font-variant-numeric: tabular-nums; white-space: nowrap; }
html[lang="ar"] .dg-kpi .kv { letter-spacing: -0.035em !important; }
.dg-kpi .kd { margin-top: 6px; padding: 2px 8px; border-radius: 99px; background: rgba(255, 255, 255, .2); font-family: var(--font-sans); font-size: 10.5px; font-weight: 600; }
.dg-kpi .kc { margin-inline-start: 6px; font-size: 10px; opacity: .8; }
[data-theme="dark"] .dg-app .dg-kpi,
[data-theme="dark"] .dg-kpi { box-shadow: 0 0 0 1px rgba(255, 255, 255, .06), 0 18px 40px -16px var(--k), 0 0 46px -20px var(--k); }

.dg-charts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dg-card {
  min-width: 0;
  padding: 12px 14px;
  border-radius: 16px;
  background: var(--dg-panel);
  border: 1px solid var(--dg-line);
  box-shadow: var(--dg-shadow);
}
.dg-span-2 { grid-column: span 2; }
.dg-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: 12px; font-weight: 600; color: var(--text-2); }
.dg-card-head > :first-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-card-head .dg-more { margin-inline-start: auto; width: 14px; height: 14px; color: var(--text-muted); }
.dg-tag { display: inline-flex; align-items: center; gap: 4px; margin-inline-start: auto; padding: 2px 8px; border-radius: 99px; background: var(--surface-2); font-size: 10px; font-weight: 600; color: var(--text-muted); white-space: nowrap; }
.dg-tag .i { width: 11px; height: 11px; }
.dg-tag-ok { background: var(--success-soft); color: var(--success); }
.dg-tag .typing i { width: 4px; height: 4px; }

.dg-svg .c1 { fill: var(--s1); }
.dg-svg .c2 { fill: var(--s2); }
.dg-svg .dg-ln { stroke: var(--s3); }
.dg-svg .dg-dot3 { fill: var(--s3); stroke: var(--surface); stroke-width: 2; }
.dg-svg .ax { fill: var(--text-muted); font-size: 8px; font-family: var(--font-sans); }
.dg-svg .ax-b { font-weight: 700; fill: var(--text-2); }
.dg-svg .wf-ln { stroke: var(--border-strong); stroke-dasharray: 2 2; }
.dg-grow rect.c1, .dg-grow rect.c2 { transform-box: fill-box; transform-origin: 50% 100%; }
.is-in .dg-grow rect.c1, .is-in .dg-grow rect.c2,
.is-active .dg-grow rect.c1, .is-active .dg-grow rect.c2 { animation: bar-grow .9s var(--ease-out) both; }

.dg-legend { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: 10.5px; color: var(--text-muted); }
.dg-legend > span { display: inline-flex; align-items: center; gap: 5px; }
.dg-legend i, .dg-dlegend i { display: inline-block; width: 8px; height: 8px; border-radius: 2px; background: var(--c); flex-shrink: 0; }

.dg-donut-wrap { position: relative; width: 104px; height: 104px; margin: 2px auto 10px; }
.dg-donut {
  width: 104px;
  height: 104px;
  border-radius: 50%;
  background: conic-gradient(var(--s1) 0 46%, var(--s2) 46% 67%, var(--s3) 67% 80%, var(--s4) 80% 91%, var(--s5) 91% 100%);
  -webkit-mask: radial-gradient(circle, transparent 57%, #000 58%);
  mask: radial-gradient(circle, transparent 57%, #000 58%);
}
.dg-donut-c { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; line-height: 1.1; font-family: var(--font-sans); }
.dg-donut-c b { font-size: 15px; }
.dg-donut-c small { font-size: 9.5px; color: var(--text-muted); }
.dg-dlegend { list-style: none; padding: 0; margin: 0; display: grid; gap: 4px; font-size: 10.5px; color: var(--text-2); }
.dg-dlegend li { display: flex; align-items: center; gap: 6px; min-width: 0; }
.dg-dlegend li > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-dlegend b { margin-inline-start: auto; font-family: var(--font-sans); font-weight: 600; color: var(--text); }
.dg-hbars .hbar { grid-template-columns: 82px 1fr 36px; font-size: 11px; }
.dg-hbars .hbar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.dg-ins-pill {
  position: absolute;
  inset-block-end: 14px;
  inset-inline-end: 14px;
  display: none;
  align-items: center;
  gap: 7px;
  padding: 7px 8px 7px 12px;
  border-radius: 99px;
  background: var(--accent);
  color: var(--accent-contrast);
  font-size: 11.5px;
  font-weight: 600;
  box-shadow: 0 12px 30px -10px var(--accent-glow);
}
[dir="rtl"] .dg-ins-pill { padding: 7px 12px 7px 8px; }
.dg-ins-pill .i { width: 14px; height: 14px; }
.dg-ins-pill b { display: grid; place-items: center; min-width: 20px; height: 20px; padding-inline: 5px; border-radius: 99px; background: rgba(255, 255, 255, .25); font-size: 10.5px; font-family: var(--font-sans); }

/* ---------------------------------------------------------------------
   04 · AI Insights rail & cards
   --------------------------------------------------------------------- */
.dg-rail {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border-inline-start: 1px solid var(--dg-line);
  background: color-mix(in oklab, var(--surface) 42%, transparent);
  min-width: 0;
}
[data-theme="dark"] .dg-app .dg-rail { background: rgba(17, 21, 29, .45); }
.dg-rail-head { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 700; }
.dg-av-sm { width: 22px; height: 22px; border-radius: 7px; }
.dg-av-sm .i { width: 12px; height: 12px; }
.dg-badge { display: grid; place-items: center; min-width: 20px; height: 20px; margin-inline-start: auto; padding-inline: 6px; border-radius: 99px; background: var(--accent); color: var(--accent-contrast); font-family: var(--font-sans); font-size: 10.5px; font-weight: 700; }
.dg-rail-feed { display: grid; gap: 8px; }
.dg-rail-foot { display: flex; align-items: center; gap: 6px; margin-top: auto; font-size: 10.5px; color: var(--text-muted); }
.dg-rail-foot > .i { width: 13px; height: 13px; margin-inline-start: auto; }

.dg-ins {
  min-width: 0;
  padding: 10px 11px;
  border-radius: 14px;
  background: var(--dg-panel, var(--surface));
  border: 1px solid var(--dg-line, var(--border));
  box-shadow: var(--dg-shadow, var(--shadow-sm));
  font-size: 11.5px;
}
.dg-ins-top { display: flex; align-items: center; gap: 6px; margin-bottom: 4px; min-width: 0; }
.dg-kind { flex-shrink: 0; padding: 1px 7px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
html[lang="ar"] .dg-kind { text-transform: none; font-size: 10.5px; }
.dg-kind.k-change { background: var(--pa-soft); color: var(--pa-ink); }
.dg-kind.k-trend { background: var(--success-soft); color: var(--success); }
.dg-kind.k-top { background: var(--gold-soft); color: var(--gold-ink); }
.dg-ins-t { font-size: 10.5px; color: var(--text-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-ins-v { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 7px; font-family: var(--font-sans); font-size: 17px; font-weight: 700; letter-spacing: -0.02em; }
html[lang="ar"] .dg-ins-v { letter-spacing: -0.02em !important; }
.dg-ins-v small { font-size: 10.5px; font-weight: 600; color: var(--success); letter-spacing: 0; }
html[lang="ar"] .dg-ins-v small { font-family: var(--font-ar); }
.dg-ins-v-sm { font-size: 12.5px; letter-spacing: 0; }
html[lang="ar"] .dg-ins-v-sm { font-family: var(--font-ar); }
.dg-ins p { margin-top: 3px; font-size: 10.5px; line-height: 1.45; color: var(--text-2); }
html[lang="ar"] .dg-ins p { font-size: 11px; line-height: 1.65; }
.dg-spark { display: block; width: 100%; height: 34px; margin-top: 4px; }
.dg-spark .ln { fill: none; stroke: var(--s2); stroke-width: 2; vector-effect: non-scaling-stroke; }
.dg-spark .ar { fill: var(--s2); opacity: .16; }
.dg-mbars { display: grid; gap: 4px; margin-top: 6px; }
.dg-mbars i { display: block; height: 6px; width: var(--w); border-radius: 99px; background: linear-gradient(90deg, var(--s5), color-mix(in oklab, var(--s5) 60%, transparent)); }
[dir="rtl"] .dg-mbars i { background: linear-gradient(-90deg, var(--s5), color-mix(in oklab, var(--s5) 60%, transparent)); }

/* ---------------------------------------------------------------------
   05 · Problem → promise
   --------------------------------------------------------------------- */
.dg-versus {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 20px;
  align-items: stretch;
  max-width: 1100px;
  margin-inline: auto;
}
.dg-vs {
  position: relative;
  padding: clamp(24px, 3vw, 40px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
}
.dg-vs-before { background: var(--bg-2); }
.dg-vs-after { box-shadow: 0 30px 80px -40px color-mix(in oklab, var(--pa) 45%, transparent); }
.dg-vs header { margin-bottom: 24px; }
.dg-vs h3 { margin-top: 12px; }
.dg-vs-before h3 { color: var(--text-2); }
.dg-vs-tag {
  display: inline-flex;
  padding: 4px 11px;
  border-radius: var(--radius-full);
  background: var(--surface-3);
  color: var(--text-muted);
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
}
html[lang="ar"] .dg-vs-tag { font-family: var(--font-ar); font-size: .82rem; text-transform: none; }
.dg-vs-after .dg-vs-tag { background: var(--pa-soft); color: var(--pa-ink); }
.dg-vs-list { list-style: none; padding: 0; display: grid; gap: 20px; }
.dg-vs-list li { display: grid; grid-template-columns: 36px minmax(0, 1fr); gap: 14px; align-items: start; }
.dg-vs-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--surface-2); color: var(--text-muted); }
.dg-vs-ico .i { width: 18px; height: 18px; }
.dg-vs-after .dg-vs-ico { background: var(--pa-soft); color: var(--pa-ink); }
.dg-vs-list strong { display: block; margin-bottom: 2px; font-weight: 600; color: var(--text); line-height: 1.4; }
.dg-vs-before .dg-vs-list strong { color: var(--text-2); }
.dg-vs-list div > span { display: block; font-size: .94rem; color: var(--text-muted); line-height: 1.55; }
.dg-vs-after .dg-vs-list div > span { color: var(--text-2); }
.dg-vs-arrow {
  align-self: center;
  display: grid;
  place-items: center;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: var(--accent);
  color: var(--accent-contrast);
  box-shadow: 0 12px 32px -10px var(--accent-glow), 0 0 0 8px color-mix(in oklab, var(--accent) 10%, transparent);
}
.dg-vs-arrow .i { width: 22px; height: 22px; }

/* ---------------------------------------------------------------------
   06 · Module map
   --------------------------------------------------------------------- */
.dg-grid-soft { opacity: .7; }
.dg-map { position: relative; display: grid; gap: 20px; }
.dg-map-row { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; list-style: none; margin: 0; padding: 0; }
.dg-layer {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 14px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  border: 1px dashed var(--border-strong);
  background: color-mix(in oklab, var(--surface) 88%, transparent);
  font-size: .85rem;
  color: var(--text-2);
}
.dg-layer-model { grid-column: 5 / 7; border-color: var(--accent-border); background: color-mix(in oklab, var(--accent-soft) 55%, var(--surface)); }
.dg-layer-guard { grid-column: 1 / -1; justify-content: center; border-style: solid; background: color-mix(in oklab, var(--success-soft) 45%, var(--surface)); border-color: color-mix(in oklab, var(--success) 30%, var(--border)); }
.dg-layer-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-family: var(--font-mono);
  font-size: .7rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--text-muted);
}
html[lang="ar"] .dg-layer-label { font-family: var(--font-ar); font-size: .84rem; text-transform: none; }
.dg-layer-label .i { width: 15px; height: 15px; color: var(--accent-text); }
.dg-layer-guard .dg-layer-label .i { color: var(--success); }
.dg-layer-items { display: flex; flex-wrap: wrap; gap: 6px; }
.dg-layer-items > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .78rem;
  font-weight: 500;
  white-space: nowrap;
}
.dg-layer-items em { font-style: normal; font-size: .68rem; font-weight: 700; color: var(--success); }

.dg-flow > li { position: relative; display: flex; }
.dg-flow > li:not(:last-child)::after {
  content: "";
  position: absolute;
  z-index: 1;
  top: 38px;
  inset-inline-start: 100%;
  width: 18px;
  height: 2px;
  background: repeating-linear-gradient(90deg, var(--pa) 0 5px, transparent 5px 9px);
  animation: dg-flow 1s linear infinite;
}
@keyframes dg-flow { to { background-position: calc(9px * var(--dir)) 0; } }
/* ticks down to the governed layer */
.dg-flow > li::before {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  bottom: -20px;
  width: 0;
  height: 20px;
  border-inline-start: 2px dashed color-mix(in oklab, var(--success) 45%, var(--border));
}
/* ticks up to the model layer for AI nodes */
.dg-node.is-ai::after {
  content: "";
  position: absolute;
  inset-inline-start: 50%;
  top: -21px;
  height: 20px;
  border-inline-start: 2px dashed var(--accent-border);
}

.dg-node {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  padding: 18px 16px 16px;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  transition: border-color .3s, transform .3s var(--ease-out), box-shadow .3s;
}
.dg-node.is-ai {
  border-color: transparent;
  background:
    linear-gradient(var(--surface), var(--surface)) padding-box,
    linear-gradient(135deg, var(--accent-border), var(--border) 45%, color-mix(in oklab, var(--cyan) 45%, transparent)) border-box;
}
.dg-node:hover, .dg-node:focus-visible, .dg-node.is-lit {
  border-color: color-mix(in oklab, var(--pa) 55%, var(--border));
  transform: translateY(-4px);
  box-shadow: 0 22px 44px -24px color-mix(in oklab, var(--pa) 70%, transparent);
}
.dg-node-top { display: flex; align-items: center; justify-content: space-between; }
.dg-node-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; background: var(--pa-soft); color: var(--pa-ink); transition: background-color .3s, color .3s; }
.dg-node-icon .i { width: 20px; height: 20px; }
.dg-node.is-ai .dg-node-icon { background: var(--accent-soft); color: var(--accent-ink); }
.dg-node.is-lit .dg-node-icon, .dg-node:hover .dg-node-icon { background: var(--pa); color: var(--bg); }
.dg-node.is-ai.is-lit .dg-node-icon, .dg-node.is-ai:hover .dg-node-icon { background: var(--accent); color: var(--accent-contrast); }
.dg-node-num { font-family: var(--font-mono); font-size: .72rem; color: var(--text-muted); }
.dg-node strong { font-size: 1.06rem; font-weight: 650; line-height: 1.3; color: var(--text); }
.dg-node-desc { font-size: .86rem; line-height: 1.5; color: var(--text-2); }
html[lang="ar"] .dg-node-desc { font-size: .9rem; line-height: 1.7; }
.dg-node-tags { display: flex; flex-wrap: wrap; gap: 4px; margin-top: auto; padding-top: 6px; }
.dg-node-tags > span { padding: 2px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); font-size: .72rem; color: var(--text-2); white-space: nowrap; }
html[lang="ar"] .dg-node-tags > span { font-size: .76rem; }

/* ---------------------------------------------------------------------
   07 · Tour & tour mockups
   --------------------------------------------------------------------- */
.dg-tour-section .tour-visual { height: min(740px, calc(100vh - var(--nav-h) - 48px)); }
.dg-tour-section .tour-panel > .mock { max-height: 100%; -webkit-mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); mask-image: linear-gradient(to bottom, #000 calc(100% - 36px), transparent); }
.dg-step .ai-chip { margin-bottom: 14px; }
.dg-step h3 { margin-bottom: 14px; }
.tour-step-visual .dg-m { max-height: none; }

.dg-m { font-size: 12.5px; }
.dg-pad { display: flex; flex-direction: column; gap: 11px; padding: 16px 18px 18px; min-width: 0; }
.dg-page-title { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.dg-page-title > .i { width: 18px; height: 18px; color: var(--accent-text); }
.dg-page-title .chip { font-size: 10.5px; }
.dg-sub { margin-top: -6px; font-size: 11.5px; color: var(--text-muted); }

/* buttons inside mockups */
.dg-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 11px;
  border-radius: 99px;
  border: 1px solid var(--border-strong);
  background: var(--surface);
  color: var(--text-2);
  font-size: 11.5px;
  font-weight: 600;
  white-space: nowrap;
}
.dg-btn .i { width: 13px; height: 13px; }
.dg-btn.pri { background: var(--accent); border-color: transparent; color: var(--accent-contrast); }
.dg-btn-ai { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-ink); }
.dg-btn-sm { padding: 3px 9px; font-size: 10.5px; }
.dg-toggle { display: inline-flex; align-items: center; gap: 6px; font-size: 11.5px; font-weight: 600; color: var(--text-2); white-space: nowrap; }
.dg-toggle i { position: relative; width: 28px; height: 16px; border-radius: 99px; background: var(--surface-3); }
.dg-toggle i::after { content: ""; position: absolute; top: 2px; inset-inline-start: 2px; width: 12px; height: 12px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0, 0, 0, .25); }
.dg-toggle.on i { background: var(--pa); }
.dg-toggle.on i::after { inset-inline-start: 14px; }

/* Ask Your Data */
.dg-ask { padding: 12px; border-radius: 16px; border: 1px solid var(--accent-border); background: var(--dg-panel); box-shadow: 0 0 0 4px var(--accent-soft); }
.dg-ask-q { min-height: 38px; font-size: 13.5px; font-weight: 500; line-height: 1.5; color: var(--text); }
.dg-caret-blink { display: inline-block; width: 2px; height: 1.05em; margin-inline-start: 2px; vertical-align: -3px; background: var(--accent); animation: dg-blink 1s steps(1) infinite; }
@keyframes dg-blink { 50% { opacity: 0; } }
.dg-ask-row { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; }
.dg-ask .dg-ask-row { margin-top: 10px; }
.dg-result { display: flex; flex-direction: column; gap: 9px; }
.dg-res-head { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 11px; color: var(--text-muted); }
.dg-res-head .chip { font-size: 10.5px; }
.dg-sql { border-radius: 12px; border: 1px solid var(--dg-line); overflow: hidden; }
.dg-sql-head { display: flex; align-items: center; gap: 6px; padding: 6px 10px; font-size: 11px; font-weight: 600; color: var(--text-2); background: var(--surface-2); }
.dg-sql-head .i { width: 13px; height: 13px; }
.dg-ds-name { font-family: var(--font-mono); font-size: 10px; font-weight: 500; color: var(--text-muted); direction: ltr; }
.dg-sql .code { border-radius: 0; font-size: 10.5px; }
.code .del { color: #f7907c; text-decoration: line-through; text-decoration-color: rgba(247, 144, 124, .6); }
.code .add { color: #9be7a9; }
.dg-table-wrap { border-radius: 12px; border: 1px solid var(--dg-line); background: var(--surface); overflow: hidden; }
.dg-table-wrap .mock-table th { background: var(--surface-2); }
.ltr-cell { direction: ltr; text-align: start; font-family: var(--font-mono); font-size: 10.5px; }
[dir="rtl"] .ltr-cell { text-align: end; }
.dg-row-on td { background: color-mix(in oklab, var(--accent-soft) 55%, transparent); }

/* AI Assistant */
.dg-asst { display: grid; grid-template-columns: 170px minmax(0, 1fr); min-height: 520px; }
.dg-recent { display: flex; flex-direction: column; gap: 3px; padding: 12px 10px; border-inline-end: 1px solid var(--dg-line); background: var(--dg-side); font-size: 11.5px; min-width: 0; }
.dg-recent .dg-btn { justify-content: center; margin-bottom: 10px; }
.dg-recent-label { display: flex; align-items: center; gap: 5px; padding: 4px 6px; font-size: 10px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
html[lang="ar"] .dg-recent-label { text-transform: none; font-size: 11px; }
.dg-recent-label .i { width: 12px; height: 12px; }
.dg-recent-item { display: flex; flex-direction: column; padding: 6px 8px; border-radius: 10px; color: var(--text-2); line-height: 1.35; }
.dg-recent-item small { font-size: 10px; color: var(--text-muted); }
.dg-recent-item.cur { background: var(--accent-soft); color: var(--accent-ink); }
.dg-thread { display: flex; flex-direction: column; gap: 10px; padding: 14px 16px; min-width: 0; }
.dg-thread .chat { flex: 1; gap: 9px; }
.dg-ds { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.dg-ds > .i { width: 13px; height: 13px; }
.dg-ds .chip { padding: 2px 8px; font-size: 10.5px; direction: ltr; }
.dg-ai-msg { display: flex; align-items: flex-start; gap: 9px; }
.dg-ai-body { flex: 1; min-width: 0; font-size: 12px; line-height: 1.55; color: var(--text); }
html[lang="ar"] .dg-ai-body { font-size: 12.5px; line-height: 1.75; }
.dg-ai-body ul { margin-top: 5px; padding-inline-start: 16px; color: var(--text-2); }
.dg-ai-body b { font-weight: 700; }
.dg-gchart { padding: 10px 12px; border-radius: 14px; border: 1px solid var(--dg-line); background: var(--dg-panel); }
.dg-gbars { display: flex; align-items: flex-end; gap: 14px; height: 84px; padding-inline: 4px; border-bottom: 1px solid var(--border); direction: ltr; }
.dg-gbars > div { flex: 1; display: flex; align-items: flex-end; gap: 3px; height: 100%; }
.dg-gbars i { flex: 1; height: var(--h); border-radius: 4px 4px 1px 1px; background: var(--s4); transform-origin: bottom; }
.dg-gbars i + i { background: var(--s1); }
.is-in .dg-gbars i, .is-active .dg-gbars i { animation: bar-grow .9s var(--ease-out) both; }
.dg-gbars-l { display: flex; gap: 14px; margin-top: 4px; padding-inline: 4px; direction: ltr; font-size: 9.5px; color: var(--text-muted); }
.dg-gbars-l span { flex: 1; text-align: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dg-insight-line { display: flex; align-items: flex-start; gap: 6px; margin-top: 8px; font-size: 11px; color: var(--text-2); }
.dg-insight-line .i { width: 13px; height: 13px; margin-top: 2px; color: var(--gold); }
.dg-showq { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; color: var(--text-muted); }
.dg-showq > .i { width: 12px; height: 12px; }
.dg-xl { display: inline-flex; align-items: center; gap: 4px; color: var(--accent-text); font-weight: 600; }
.dg-xl .i { width: 12px; height: 12px; }
.dg-m .suggest { display: inline-flex; align-items: center; gap: 5px; }
.dg-m .suggest .i { width: 11px; height: 11px; color: var(--accent-text); }
.dg-thread .chat-input .dg-btn { padding: 2px 8px; }

/* AI Insights panel */
.dg-ins-stage { position: relative; min-height: 540px; padding: 16px; }
.dg-ins-ghost { display: grid; gap: 12px; opacity: .55; filter: saturate(.6); }
.dg-ghost-kpis, .dg-ghost-charts { display: grid; gap: 10px; }
.dg-ghost-kpis { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.dg-ghost-kpis i { height: 68px; border-radius: 16px; background: linear-gradient(135deg, color-mix(in oklab, var(--s1) 55%, transparent), color-mix(in oklab, var(--s2) 40%, transparent)); }
.dg-ghost-charts { grid-template-columns: 2fr 1fr; }
.dg-ghost-charts i { height: 170px; border-radius: 16px; background: var(--dg-panel); border: 1px solid var(--dg-line); }
.dg-ghost-charts i:last-child { grid-column: 1 / -1; height: 150px; }
.dg-ins-panel {
  position: absolute;
  inset-block: 16px;
  inset-inline-end: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  width: min(450px, calc(100% - 32px));
  padding: 14px;
  border-radius: 22px;
  background: color-mix(in oklab, var(--surface) 94%, transparent);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
  -webkit-backdrop-filter: blur(22px) saturate(150%);
  backdrop-filter: blur(22px) saturate(150%);
}
[data-theme="dark"] .dg-app .dg-ins-panel { background: rgba(23, 28, 37, .97); }
.dg-plan { display: grid; gap: 6px; padding: 9px 11px; border-radius: 12px; background: var(--surface-2); font-size: 10.5px; color: var(--text-2); }
.dg-plan-row { display: flex; justify-content: space-between; gap: 8px; flex-wrap: wrap; }
.dg-plan-bar { height: 6px; border-radius: 99px; background: var(--surface-3); overflow: hidden; }
.dg-plan-bar i { display: block; height: 100%; width: var(--w); border-radius: inherit; background: linear-gradient(90deg, var(--accent), var(--pa)); }
[dir="rtl"] .dg-plan-bar i { background: linear-gradient(-90deg, var(--accent), var(--pa)); }
.dg-plan-bar-anim i { position: relative; overflow: hidden; }
.dg-plan-bar-anim i::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .45), transparent); animation: dg-sheen 1.6s linear infinite; }
@keyframes dg-sheen { from { transform: translateX(-100%); } to { transform: translateX(100%); } }
.dg-ins-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dg-ins-hbars { margin-top: 6px; gap: 5px; }
.dg-ins-hbars .hbar { grid-template-columns: 62px 1fr 30px; font-size: 9.5px; gap: 5px; }
.dg-ins-hbars .hbar > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-ins-hbars .track { height: 6px; }

/* Auto Dashboard */
.dg-auto-req { display: grid; gap: 9px; padding: 12px; border-radius: 16px; border: 1px solid var(--dg-line); background: var(--dg-panel); }
.dg-auto-text { padding: 9px 11px; border-radius: 12px; background: var(--surface); border: 1px solid var(--border-strong); font-size: 12.5px; line-height: 1.5; }
.dg-progress { display: grid; gap: 8px; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--accent-border); background: color-mix(in oklab, var(--accent-soft) 60%, transparent); }
.dg-phases { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11px; font-weight: 600; color: var(--text-muted); }
.dg-phases li { display: inline-flex; align-items: center; gap: 6px; }
.dg-phases li + li::before { content: ""; width: 18px; height: 1px; margin-inline-end: 2px; background: var(--border-strong); }
.dg-phases li.done, .dg-phases li.run { color: var(--text); }
.dg-st { display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; border: 1.5px solid var(--border-strong); }
.dg-st .i { width: 10px; height: 10px; }
.done > .dg-st { background: var(--success); border-color: var(--success); color: #fff; }
.run > .dg-st { border-color: var(--accent); border-top-color: transparent; animation: spin .9s linear infinite; }
.dg-prog-line { display: flex; justify-content: space-between; gap: 8px; font-size: 11px; color: var(--text-2); }
.dg-stop { font-weight: 600; color: var(--danger); }
.dg-built { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.dg-built .dg-kpi { padding: 10px 11px 13px; border-radius: 14px; }
.dg-built .dg-kpi .kv { font-size: 16px; }
.dg-built .dg-kpi .kl { padding-inline-end: 16px; font-size: 10.5px; }
.dg-tested { position: absolute; inset-block-start: 8px; inset-inline-end: 8px; display: grid; place-items: center; width: 16px; height: 16px; border-radius: 50%; background: rgba(255, 255, 255, .28); }
.dg-tested .i { width: 10px; height: 10px; }
.dg-built-wide { grid-column: span 2; }
.dg-built .dg-card { padding: 10px 12px; }
.dg-mini-donut { display: flex; align-items: center; gap: 12px; }
.dg-donut-sm { width: 64px; height: 64px; flex-shrink: 0; }
.dg-mini-donut .dg-dlegend { flex: 1; min-width: 0; }
.dg-building { border-style: dashed; display: grid; gap: 7px; align-content: start; }
.dg-building .tool-chip { justify-self: start; }

/* AI Decision */
.dg-rep-top { display: flex; align-items: flex-start; gap: 12px; }
.dg-kicker { display: flex; align-items: center; gap: 6px; font-size: 10px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-text); }
html[lang="ar"] .dg-kicker { font-size: 11px; text-transform: none; }
.dg-kicker .i { width: 13px; height: 13px; }
.dg-report-q { margin-top: 4px; font-size: 14px; font-weight: 700; line-height: 1.4; }
.dg-verdict { position: relative; padding: 12px 14px; border-radius: 16px; color: #fff; background: linear-gradient(135deg, #3b2bb0, #5b47e0 55%, #0e7490); box-shadow: 0 18px 40px -22px #5b47e0; overflow: hidden; }
.dg-verdict::after { content: ""; position: absolute; inset-block-start: -40px; inset-inline-end: -30px; width: 120px; height: 120px; border-radius: 50%; background: rgba(255, 255, 255, .12); }
.dg-verdict-l { font-size: 10px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; opacity: .8; }
html[lang="ar"] .dg-verdict-l { font-size: 11px; text-transform: none; }
.dg-verdict p { margin-top: 3px; font-size: 13px; font-weight: 600; line-height: 1.5; }
.dg-conf { display: inline-flex; align-items: center; gap: 7px; margin-top: 8px; padding: 3px 10px; border-radius: 99px; background: rgba(255, 255, 255, .17); font-size: 10.5px; font-weight: 600; }
.dg-conf-dots { display: inline-flex; gap: 3px; }
.dg-conf-dots i { width: 6px; height: 6px; border-radius: 50%; background: #fff; }
.dg-conf-dots i.off { background: rgba(255, 255, 255, .35); }
.dg-rep-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; }
.dg-rep-sec { min-width: 0; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--dg-line); background: var(--dg-panel); }
.dg-rep-h { display: flex; align-items: center; gap: 6px; margin-bottom: 7px; font-size: 11px; font-weight: 700; color: var(--text-2); }
.dg-rep-h .i { width: 13px; height: 13px; color: var(--accent-text); }
.dg-rep-h2 { margin-top: 9px; }
.dg-ev { list-style: none; padding: 0; margin: 0; display: grid; gap: 5px; font-size: 11px; }
.dg-ev li { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; color: var(--text-2); }
.dg-ev b { font-family: var(--font-sans); font-weight: 700; color: var(--text); white-space: nowrap; }
.dg-steps-ol { list-style: none; padding: 0; margin: 0; display: grid; gap: 7px; counter-reset: dgs; }
.dg-steps-ol li { display: grid; grid-template-columns: 18px minmax(0, 1fr); gap: 7px; font-size: 11px; line-height: 1.4; }
.dg-steps-ol li::before { counter-increment: dgs; content: counter(dgs); display: grid; place-items: center; width: 18px; height: 18px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-ink); font-size: 10px; font-weight: 700; font-family: var(--font-sans); }
.dg-steps-ol small { display: block; margin-top: 1px; font-size: 10px; color: var(--text-muted); }
.dg-risk { display: grid; gap: 5px; font-size: 11px; line-height: 1.45; }
.dg-risk .r { color: var(--warning); font-weight: 600; }
.dg-risk .m { display: flex; align-items: flex-start; gap: 5px; color: var(--success); }
.dg-risk .m .i { width: 12px; height: 12px; margin-top: 3px; }
.dg-rep-p { font-size: 11px; line-height: 1.5; color: var(--text-2); }

/* AI Advisor & PDF */
.dg-adv-stage { display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); align-items: start; gap: 0; min-height: 540px; padding: 20px 18px; }
.dg-pdf {
  --bc: #00796B;
  position: relative;
  padding: 16px 16px 12px;
  border-radius: 6px;
  background: #fff;
  color: #1d2030;
  font-size: 10px;
  line-height: 1.45;
  box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .45), 0 0 0 1px rgba(0, 0, 0, .06);
  transform: rotate(calc(-1.6deg * var(--dir)));
}
.dg-pdf-brand { display: flex; align-items: center; gap: 8px; padding-bottom: 9px; border-bottom: 2px solid var(--bc); }
.dg-pdf-brand b { display: block; font-size: 11px; }
.dg-pdf-brand small { display: block; font-size: 8.5px; color: #6b7080; }
.dg-pdf-logo { display: grid; place-items: center; width: 28px; height: 28px; border-radius: 8px; flex-shrink: 0; background: var(--bc); color: #fff; font-family: var(--font-sans); font-size: 8.5px; font-weight: 800; letter-spacing: .02em; }
.dg-pdf-tag { margin-inline-start: auto; padding: 2px 6px; border-radius: 4px; background: #fde8e8; color: #b91c1c; font-family: var(--font-mono); font-size: 8px; font-weight: 700; }
.dg-pdf-title { margin: 10px 0 2px; font-size: 13px; font-weight: 700; line-height: 1.3; }
.dg-pdf-k { margin-top: 8px; font-size: 8.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--bc); }
html[lang="ar"] .dg-pdf-k { font-size: 9.5px; text-transform: none; }
.dg-pdf p { margin-top: 2px; font-size: 9.5px; color: #4a4e5e; }
.dg-pdf-figs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; margin-top: 4px; }
.dg-pdf-figs > div { padding: 6px 7px; border-radius: 6px; background: #f2f5f5; }
.dg-pdf-figs b { display: block; font-family: var(--font-sans); font-size: 12px; color: var(--bc); }
.dg-pdf-figs span { font-size: 8.5px; color: #5b6070; }
.dg-pdf-bars { display: flex; align-items: flex-end; gap: 5px; height: 46px; margin-top: 8px; padding-bottom: 2px; border-bottom: 1px solid #e3e6ea; direction: ltr; }
.dg-pdf-bars i { flex: 1; height: var(--h); border-radius: 3px 3px 0 0; background: color-mix(in oklab, var(--bc) 45%, #fff); }
.dg-pdf-bars i:first-child { background: var(--bc); }
.dg-pdf-recs { list-style: none; padding: 0; margin: 4px 0 0; display: grid; gap: 4px; font-size: 9.5px; color: #3a3e4e; }
.dg-pdf-recs li { display: flex; align-items: flex-start; gap: 6px; }
.prio { flex-shrink: 0; padding: 1px 6px; border-radius: 99px; background: #fde8e8; color: #b91c1c; font-size: 8px; font-weight: 700; }
.prio.med { background: #fdf1e2; color: #b45309; }
.dg-pdf-foot { display: flex; justify-content: space-between; gap: 8px; margin-top: 10px; padding-top: 6px; border-top: 1px solid #e6e8ee; font-size: 8px; color: #8a8fa0; }
.dg-adv-card {
  position: relative;
  z-index: 2;
  margin-top: 56px;
  margin-inline-start: -34px;
  padding: 14px;
  border-radius: 18px;
  background: var(--surface);
  border: 1px solid var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.dg-adv-q { margin: 6px 0 10px; font-size: 12.5px; font-weight: 600; line-height: 1.45; }
.dg-find { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; counter-reset: dgf; }
.dg-find li { display: grid; grid-template-columns: 20px minmax(0, 1fr); gap: 8px; font-size: 11px; line-height: 1.45; color: var(--text-2); }
.dg-find li::before { counter-increment: dgf; content: counter(dgf); display: grid; place-items: center; width: 20px; height: 20px; border-radius: 7px; background: var(--pa-soft); color: var(--pa-ink); font-family: var(--font-sans); font-size: 10px; font-weight: 700; }
.dg-find b { color: var(--text); }
.dg-takeaway { margin-top: 10px; padding: 9px 11px; border-radius: 12px; background: var(--pa-soft); font-size: 11px; line-height: 1.5; color: var(--text); }
.dg-takeaway b { display: block; margin-bottom: 1px; color: var(--pa-ink); }

/* ETL */
.dg-etl-flow { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.dg-etl-flow > .i { width: 14px; height: 14px; color: var(--text-muted); }
.dg-etl-node { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; border: 1px solid var(--dg-line); background: var(--dg-panel); font-family: var(--font-mono); font-size: 10.5px; color: var(--text-2); }
.dg-etl-node .i { width: 13px; height: 13px; color: var(--text-muted); }
.dg-etl-ai { border-color: var(--accent-border); background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-sans); font-weight: 600; }
html[lang="ar"] .dg-etl-ai { font-family: var(--font-ar); }
.dg-etl-ai .i { color: var(--accent-ink); }
.dg-xform { display: inline-flex; align-items: center; gap: 4px; padding: 1px 8px; border-radius: 99px; font-size: 10px; font-weight: 600; }
.dg-xform .i { width: 11px; height: 11px; }
.dg-xform.ai { background: var(--accent-soft); color: var(--accent-ink); }
.dg-xform.rx { background: var(--surface-2); color: var(--text-2); font-family: var(--font-mono); }
.dg-parser { display: grid; gap: 8px; padding: 12px; border-radius: 16px; border: 1px solid var(--accent-border); background: var(--dg-panel); box-shadow: 0 16px 36px -22px var(--accent-glow); }
.dg-parser .dg-rep-h { margin-bottom: 0; }
.dg-prompt { padding: 9px 11px; border-radius: 10px; background: var(--surface); border: 1px solid var(--border-strong); font-size: 11.5px; line-height: 1.5; }
.dg-try { display: grid; gap: 5px; }
.dg-try-head { display: flex; }
.dg-try-row { display: grid; grid-template-columns: minmax(0, 1fr) 16px minmax(0, 1fr); align-items: center; gap: 6px; font-size: 11px; }
.dg-try-row > span { padding: 4px 9px; border-radius: 8px; background: var(--surface-2); border: 1px solid var(--border); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-try-row > span:last-child { background: var(--success-soft); border-color: transparent; color: var(--success); font-weight: 600; }
.dg-try-row > .i { width: 14px; height: 14px; color: var(--text-muted); }
.dg-try-cat { grid-template-columns: minmax(0, 2fr) 16px minmax(0, 1fr); padding-top: 6px; border-top: 1px dashed var(--border); }
.dg-log { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 14px; padding: 8px 11px; border-radius: 10px; background: var(--surface-2); font-size: 10.5px; color: var(--text-muted); }

/* ---------------------------------------------------------------------
   08 · Agent run (band)
   --------------------------------------------------------------------- */
.dg-agent .aurora { opacity: .45; --aurora-3: rgba(34, 211, 238, .32); }
.dg-agent .bg-grid { opacity: .6; }
.dg-agent-bar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.dg-replay { color: var(--band-text); border-color: var(--border-strong); background: rgba(255, 255, 255, .04); }
.dg-replay:hover { background: rgba(255, 255, 255, .1); }
.dg-run { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: 20px; align-items: start; }
.dg-console { border-radius: var(--radius-lg); border: 1px solid var(--border-strong); background: color-mix(in oklab, var(--surface) 92%, transparent); box-shadow: 0 40px 100px -50px rgba(0, 0, 0, .8); overflow: hidden; }
.dg-console-bar { display: flex; align-items: center; gap: 10px; padding: 12px 18px; border-bottom: 1px solid var(--border); background: rgba(255, 255, 255, .03); font-family: var(--font-mono); font-size: .76rem; color: var(--text-muted); }
html[lang="ar"] .dg-console-bar { font-family: var(--font-ar); font-size: .84rem; }
.dg-run-steps { list-style: none; margin: 0; padding: 10px 20px 18px; display: grid; }
.dg-run-steps > li { position: relative; display: grid; grid-template-columns: 34px minmax(0, 1fr); gap: 14px; padding-block: 10px; }
.dg-run-steps > li:not(:last-child)::after { content: ""; position: absolute; inset-inline-start: 16px; top: 46px; bottom: -6px; width: 2px; background: linear-gradient(var(--accent-border), transparent); }
.dg-rs-ico { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 11px; background: var(--accent-soft); color: var(--accent-ink); }
.dg-rs-ico .i { width: 16px; height: 16px; }
.dg-rs-human .dg-rs-ico { background: var(--gold-soft); color: var(--gold); }
.dg-rs-t { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-weight: 600; color: var(--text); }
.dg-rs-n { font-family: var(--font-mono); font-size: .7rem; font-weight: 500; color: var(--text-muted); }
.dg-rs-d { display: block; margin-top: 2px; font-size: .9rem; line-height: 1.55; color: var(--text-2); }
.dg-run-steps .tool-chip { max-width: 100%; margin-top: 7px; font-size: .72rem; white-space: normal; overflow-wrap: anywhere; }
html[lang="ar"] .dg-run-steps .tool-chip { direction: rtl; font-family: var(--font-ar); font-size: .8rem; }
.dg-run-side { display: grid; gap: 16px; }
.dg-ctrl .check-list { margin-top: 12px; font-size: .95rem; }
.dg-ctrl .check-list li .i { color: var(--success); }
.dg-out { display: grid; gap: 8px; }
.dg-out-label { font-family: var(--font-mono); font-size: .72rem; letter-spacing: .06em; text-transform: uppercase; color: var(--text-muted); }
html[lang="ar"] .dg-out-label { font-family: var(--font-ar); font-size: .84rem; text-transform: none; }
.dg-ins-lg { padding: 16px; border-radius: 18px; font-size: .9rem; }
.dg-ins-lg .dg-ins-t { font-size: .8rem; }
.dg-ins-lg .dg-ins-v { font-size: 1.7rem; }
.dg-ins-lg .dg-ins-v small { font-size: .82rem; }
.dg-ins-lg p { font-size: .86rem; }
.dg-kpi-lg { padding: 18px 20px 22px; border-radius: 20px; }
.dg-kpi-lg .kl { font-size: .85rem; }
.dg-kpi-lg .kv { font-size: 2rem; }
.dg-kpi-lg .kd { font-size: .78rem; }
.dg-kpi-lg .kc { font-size: .78rem; }

/* ---------------------------------------------------------------------
   09 · Feature tabs & chart gallery
   --------------------------------------------------------------------- */
.dg-tabs-center { display: flex; justify-content: center; }
.dg-tab-n { display: inline-grid; place-items: center; min-width: 22px; height: 20px; padding-inline: 6px; border-radius: 99px; background: var(--accent-soft); color: var(--accent-ink); font-family: var(--font-mono); font-size: .68rem; font-weight: 600; }
.dg-feat-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.dg-feat-list > li {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  gap: 14px;
  padding: 18px;
  border-radius: var(--radius-lg);
  background: var(--surface);
  border: 1px solid var(--border);
  transition: border-color .2s, transform .25s var(--ease-out), box-shadow .25s;
}
.dg-feat-list > li:hover { border-color: var(--border-strong); transform: translateY(-2px); box-shadow: var(--shadow); }
.dg-feat-list > li::after {
  content: "";
  position: absolute;
  inset-block-start: 16px;
  inset-inline-end: 16px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--success-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23047857' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E") center / 10px no-repeat;
}
[data-theme="dark"] .dg-feat-list > li::after { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%2334d399' stroke-width='3' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M20 6 9 17l-5-5'/%3E%3C/svg%3E"); }
.dg-feat-ai > li::after { display: none; }
.dg-fi { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--pa-soft); color: var(--pa-ink); }
.dg-fi .i { width: 19px; height: 19px; }
.dg-feat-ai .dg-fi { background: var(--accent-soft); color: var(--accent-ink); }
.dg-feat-list strong { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 8px; padding-inline-end: 24px; font-size: .98rem; font-weight: 600; line-height: 1.35; color: var(--text); }
.dg-feat-list strong .chip { padding: 1px 8px; font-size: .68rem; }
.dg-feat-list p { margin-top: 4px; font-size: .88rem; line-height: 1.55; color: var(--text-2); }
html[lang="ar"] .dg-feat-list p { font-size: .92rem; line-height: 1.75; }
.dg-fnum { position: absolute; inset-block-start: 18px; inset-inline-end: 18px; font-family: var(--font-mono); font-size: .7rem; font-weight: 500; color: var(--text-muted); }

.dg-gal-head { display: flex; justify-content: center; margin-bottom: 14px; }
.dg-gal { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 10px; margin-bottom: 22px; }
.dg-gal li {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 9px;
  padding: 16px 8px 12px;
  border-radius: 16px;
  background: var(--surface);
  border: 1px solid var(--border);
  font-size: .82rem;
  font-weight: 600;
  color: var(--text-2);
  text-align: center;
  transition: border-color .2s, transform .25s var(--ease-out);
}
.dg-gal li:hover { border-color: color-mix(in oklab, var(--pa) 45%, var(--border)); transform: translateY(-2px); }
.dg-gal svg { width: 58px; height: 42px; overflow: visible; }
.dg-gal .gl { stroke: var(--border-strong); stroke-width: 1.2; }
.dg-gal .gl-f { fill: none; stroke: var(--border-strong); stroke-width: 1; }
.dg-gal .f1 { fill: var(--s1); }
.dg-gal .f2 { fill: var(--s2); }
.dg-gal .f3 { fill: var(--s3); }
.dg-gal .fa { fill: var(--s1); opacity: .22; }
.dg-gal .st1 { fill: none; stroke: var(--s1); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dg-gal .st2 { fill: none; stroke: var(--s2); stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.dg-gal .sp1 { stroke: var(--s1); }
.dg-gal .sp2 { stroke: var(--s2); }
.dg-gal .sp3 { stroke: var(--s3); }
.dg-gal .fr { fill: color-mix(in oklab, var(--s2) 30%, transparent); stroke: var(--s2); stroke-width: 1.8; stroke-linejoin: round; }
.dg-gal .hm rect { fill: var(--pa); }
.dg-gal .mp { fill: var(--surface-3); stroke: var(--border-strong); stroke-width: 1; }
.dg-gal .mk { fill: var(--s3); stroke: var(--surface); stroke-width: 1.5; }
.dg-gal .tb-h { fill: var(--surface-3); }

.dg-themes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 760px; margin: 0 auto 22px; }
.dg-theme { position: relative; padding: 10px; border-radius: 18px; border: 1px solid var(--border); overflow: hidden; }
.dg-th-bar { display: flex; gap: 4px; margin-bottom: 8px; }
.dg-th-bar i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .35; }
.dg-th-body { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.dg-th-k { height: 34px; border-radius: 8px; }
.dg-th-c { grid-column: 1 / -1; height: 46px; border-radius: 8px; }
.dg-th-name { display: block; margin-top: 8px; font-size: .82rem; font-weight: 700; }
/* product themes are previewed in their own fixed colours */
.dg-theme-classic { background: #ffffff; color: #2b2b2b; border-color: #e3e3e3; }
.dg-theme-classic .dg-th-k { background: #ff6d41; }
.dg-theme-classic .dg-th-k + .dg-th-k { background: #1E88E5; }
.dg-theme-classic .dg-th-c { background: #f4f4f4; border: 1px solid #e6e6e6; }
.dg-theme-glass { background: radial-gradient(70% 60% at 100% 0%, rgba(213, 240, 95, .55), transparent 70%), radial-gradient(70% 60% at 0% 100%, rgba(242, 180, 155, .55), transparent 70%), #eceee8; color: #1b1e17; border-color: rgba(27, 30, 23, .1); }
.dg-theme-glass .dg-th-k { background: linear-gradient(135deg, #3c481f, #5d7a2a); border-radius: 12px; }
.dg-theme-glass .dg-th-k + .dg-th-k { background: linear-gradient(135deg, #b9d940, #d5f05f); }
.dg-theme-glass .dg-th-c { background: rgba(255, 255, 255, .62); border: 1px solid rgba(255, 255, 255, .85); border-radius: 12px; }
.dg-theme-dark { background: radial-gradient(70% 60% at 100% 0%, rgba(139, 124, 246, .3), transparent 70%), radial-gradient(70% 60% at 0% 100%, rgba(63, 213, 192, .2), transparent 70%), #0b0e13; color: #eceff4; border-color: rgba(255, 255, 255, .1); }
.dg-theme-dark .dg-th-k { background: linear-gradient(135deg, #1b4a8a, #6ea8fe); box-shadow: 0 0 18px -4px #6ea8fe; }
.dg-theme-dark .dg-th-k + .dg-th-k { background: linear-gradient(135deg, #12645a, #3fd5c0); box-shadow: 0 0 18px -4px #3fd5c0; }
.dg-theme-dark .dg-th-c { background: linear-gradient(160deg, rgba(36, 42, 55, .72), rgba(22, 27, 36, .56)); border: 1px solid rgba(255, 255, 255, .07); }

/* ---------------------------------------------------------------------
   10 · Governance & deployment
   --------------------------------------------------------------------- */
.dg-path { margin: 0 0 24px; }
.dg-path-row {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  background: var(--surface);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
}
.dg-path-step { position: relative; display: flex; flex-direction: column; gap: 8px; padding: 22px 20px; font-size: .86rem; line-height: 1.5; color: var(--text-2); }
.dg-path-step + .dg-path-step { border-inline-start: 1px solid var(--border); }
.dg-path-step:not(:last-child)::after {  content: "\203A";  position: absolute;  z-index: 1;  top: 31px;  inset-inline-end: -12px;  display: grid;  place-items: center;  width: 22px;  height: 22px;  padding-bottom: 2px;  border-radius: 50%;  background: var(--surface);  border: 1px solid var(--border-strong);  color: var(--pa-ink);  font-size: 15px;  font-weight: 700;  line-height: 1;}
.dg-path-step.is-model { background: color-mix(in oklab, var(--accent-soft) 55%, var(--surface)); }
.dg-path-step.is-guard { background: color-mix(in oklab, var(--success-soft) 60%, var(--surface)); }
.dg-path-num { font-family: var(--font-mono); font-size: .7rem; color: var(--text-muted); }
.dg-path-ico { display: grid; place-items: center; width: 38px; height: 38px; border-radius: 12px; background: var(--pa-soft); color: var(--pa-ink); }
.dg-path-ico .i { width: 19px; height: 19px; }
.is-model .dg-path-ico { background: var(--accent); color: var(--accent-contrast); }
.is-guard .dg-path-ico { background: var(--success); color: var(--bg); }
.dg-path-step strong { font-size: .98rem; font-weight: 650; line-height: 1.3; color: var(--text); }

.dg-pillars { margin-bottom: 24px; }
.dg-pillars .card p { font-size: .94rem; }

.dg-gov-split { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 20px; margin-bottom: 24px; }
.dg-gov-split .h3 { margin: 10px 0 18px; }
.dg-byom-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 14px; align-items: start; }
.dg-prov { list-style: none; padding: 0; display: grid; gap: 8px; }
.dg-prov li { position: relative; display: flex; flex-direction: column; gap: 1px; padding: 11px 13px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--border); }
.dg-prov strong { font-size: .92rem; font-weight: 650; color: var(--text); font-family: var(--font-sans); }
.dg-prov li > span { font-size: .8rem; color: var(--text-muted); }
.dg-prov em { position: absolute; inset-block-start: 10px; inset-inline-end: 10px; font-style: normal; padding: 2px 8px; font-size: .68rem; }
.dg-set { padding: 12px; border-radius: 16px; font-size: 11.5px; }
.dg-set-head { display: flex; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 12px; font-weight: 700; }
.dg-set-head .i { width: 14px; height: 14px; color: var(--accent-text); }
.dg-set-row { display: flex; flex-direction: column; gap: 3px; padding: 7px 0; border-bottom: 1px solid var(--dg-line); }
.dg-set-row > span { font-size: 10.5px; color: var(--text-muted); }
.dg-set-row b { display: flex; align-items: center; justify-content: space-between; gap: 6px; padding: 5px 9px; border-radius: 9px; background: var(--surface); border: 1px solid var(--border-strong); font-size: 11px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dg-set-row b.ltr { display: block; font-family: var(--font-mono); font-size: 10.5px; }
.dg-set-row b .i { width: 12px; height: 12px; color: var(--text-muted); }
.dg-set-muted { color: var(--text-muted); font-style: italic; }
html[lang="ar"] .dg-set-muted { font-style: normal; }
.dg-set-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; }
.dg-set-foot .chip { font-size: 10.5px; }
.dg-sov { display: flex; align-items: flex-start; gap: 10px; margin-top: 18px; padding: 12px 14px; border-radius: 14px; background: var(--success-soft); color: var(--text); font-weight: 600; font-size: .95rem; line-height: 1.5; }
.card p.dg-sov { color: var(--text); }
.dg-sov .i { width: 20px; height: 20px; margin-top: 1px; color: var(--success); flex-shrink: 0; }
.dg-deploy-list { list-style: none; padding: 0; display: grid; gap: 14px; }
.dg-deploy-list li { display: grid; grid-template-columns: 38px minmax(0, 1fr); gap: 12px; align-items: start; }
.dg-deploy-list strong { display: block; font-weight: 600; color: var(--text); }
.dg-deploy-list li div > span { display: block; font-size: .9rem; line-height: 1.5; color: var(--text-2); }

.dg-gov-note {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px 24px;
  padding: clamp(20px, 3vw, 28px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--accent-border);
  background:
    radial-gradient(60% 120% at 100% 0%, var(--accent-glow), transparent 70%),
    var(--surface);
}
.dg-gov-ico { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--accent); color: var(--accent-contrast); }
.dg-gov-ico .i { width: 24px; height: 24px; }
.dg-gov-note h3 { margin-bottom: 6px; }
.dg-gov-note p { color: var(--text-2); font-size: .96rem; }

/* ---------------------------------------------------------------------
   11 · Audience, rollout, CTA
   --------------------------------------------------------------------- */
.dg-personas .card > p { margin-bottom: 14px; }
.dg-personas .check-list { font-size: .92rem; gap: 8px; }
.dg-sectors { margin-top: 28px; padding: clamp(20px, 3vw, 32px); border-radius: var(--radius-xl); border: 1px solid var(--border); background: var(--bg-2); }
.dg-sectors-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 24px; margin-bottom: 18px; }
.dg-sectors-head p { color: var(--text-muted); font-size: .94rem; }
.dg-sector-list { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 12px; }
.dg-sector-list li { display: flex; flex-direction: column; gap: 10px; padding: 16px; border-radius: var(--radius-lg); background: var(--surface); border: 1px solid var(--border); }
.dg-sec-ico { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 11px; background: var(--pa-soft); color: var(--pa-ink); }
.dg-sec-ico .i { width: 18px; height: 18px; }
.dg-sector-list strong { font-weight: 650; color: var(--text); }
.dg-sec-kpis { display: flex; flex-wrap: wrap; gap: 4px; }
.dg-sec-kpis > span { padding: 2px 8px; border-radius: 99px; background: var(--surface-2); border: 1px solid var(--border); font-size: .74rem; color: var(--text-2); white-space: nowrap; }

.dg-rollout .step-num { font-size: .72rem; }
.dg-rollout .step-num span { color: var(--text-muted); }
html[lang="ar"] .dg-rollout .step-num span { font-family: var(--font-ar); font-size: .82rem; }

.dg-cta-site { margin-top: 22px !important; font-size: .9rem; }
.dg-cta-site a { display: inline-flex; align-items: center; gap: 5px; color: #fff; text-decoration: underline; text-underline-offset: 3px; text-decoration-color: rgba(255, 255, 255, .4); }
.dg-cta-site a:hover { text-decoration-color: #fff; }
.dg-cta-site .i { width: 14px; height: 14px; }
.dg-xsell { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 20px; }
.dg-xcard { min-height: 100%; }
.dg-xcard .product-name { display: block; }
.dg-x-name { font-size: clamp(1.35rem, 1.1rem + .9vw, 1.8rem) !important; letter-spacing: -0.025em !important; line-height: 1.2 !important; }
html[lang="ar"] .dg-x-name { font-family: var(--font-display-ar) !important; letter-spacing: 0 !important; line-height: 1.5 !important; }
/* Arabic labels: the shared .product-tag uses a Latin mono face and uppercase */
html[lang="ar"] .product-tag { font-family: var(--font-ar); font-size: .8rem; text-transform: none; }
.dg-x-desc { display: block; color: var(--text-2); margin-bottom: 18px; }
.dg-xcard .link-arrow { margin-top: auto; }

/* ---------------------------------------------------------------------
   12 · Responsive
   --------------------------------------------------------------------- */
/* hero app mockup (container queries on .dg-app) */
@container (max-width: 1080px) {
  .dg-shell { grid-template-columns: 178px minmax(0, 1fr); }
  .dg-rail { display: none; }
  .dg-ins-pill { display: inline-flex; }
  .dg-main { padding-bottom: 60px; }
}
@container (max-width: 760px) {
  .dg-shell { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .dg-side { display: none; }
  .dg-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .dg-charts { grid-template-columns: minmax(0, 1fr); }
  .dg-span-2 { grid-column: auto; }
  .dg-user-name, .dg-pill { display: none; }
}
@container (max-width: 560px) {
  .dg-hide-narrow { display: none; }
  .dg-hide-xs { display: none !important; }
  .dg-kpi .kv { font-size: 18px; }
  .dg-kpi .kc { display: none; }
  .dg-pad { padding: 14px; }
  .dg-asst { grid-template-columns: minmax(0, 1fr); min-height: 0; }
  .dg-recent { display: none; }
  .dg-ins-stage { min-height: 0; padding: 12px; }
  .dg-ins-ghost { display: none; }
  .dg-ins-panel { position: relative; inset: auto; width: auto; }
  .dg-ins-grid { grid-template-columns: minmax(0, 1fr); }
  .dg-built { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-rep-grid { grid-template-columns: minmax(0, 1fr); }
  .dg-rep-top { flex-direction: column; }
  .dg-rep-top .dg-push { margin-inline-start: 0; }
  .dg-adv-stage { grid-template-columns: minmax(0, 1fr); min-height: 0; padding: 16px 14px; }
  .dg-adv-card { margin: -24px 10px 0; }
  .dg-pdf { transform: none; }
  .dg-set-row b.ltr { font-size: 10px; }
}

@media (max-width: 1180px) {
  .dg-map-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dg-layer-model { grid-column: 1 / -1; }
  .dg-flow > li:nth-child(3n)::after { display: none; }
  .dg-flow > li::before, .dg-node.is-ai::after { display: none; }
  .dg-path-row { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dg-path-step:nth-child(n+4) { border-top: 1px solid var(--border); }
  .dg-path-step:nth-child(4) { border-inline-start: 0; }
  .dg-path-step:nth-child(3n)::after { display: none; }
  .dg-sector-list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .dg-feat-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 1024px) {
  .dg-gov-split { grid-template-columns: minmax(0, 1fr); }
  .dg-run { grid-template-columns: minmax(0, 1fr); }
  .dg-run-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 900px) {
  .dg-versus { grid-template-columns: minmax(0, 1fr); }
  .dg-vs-arrow { justify-self: center; transform: rotate(90deg); }
  [dir="rtl"] .dg-vs-arrow { transform: rotate(-90deg); }
  .dg-gov-note { grid-template-columns: auto minmax(0, 1fr); }
  .dg-gov-note .link-arrow { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .dg-map-row { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .dg-flow > li::after { display: none; }
  .dg-path-row { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-path-step { padding: 18px 16px; }
  .dg-path-step::after { display: none; }
  .dg-path-step:nth-child(n+3) { border-top: 1px solid var(--border); }
  .dg-path-step:nth-child(odd) { border-inline-start: 0; }
  .dg-path-step:nth-child(4) { border-inline-start: 1px solid var(--border); }
  .dg-sector-list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dg-feat-list { grid-template-columns: minmax(0, 1fr); }
  .dg-byom-grid { grid-template-columns: minmax(0, 1fr); }
  .dg-run-side { grid-template-columns: minmax(0, 1fr); }
  .dg-xsell { grid-template-columns: minmax(0, 1fr); }
  .dg-themes { gap: 8px; }
  .dg-theme { padding: 8px; border-radius: 14px; }
  .dg-th-k { height: 24px; }
  .dg-th-c { height: 30px; }
  .dg-run-steps { padding: 6px 14px 14px; }
  .dg-console-bar { padding: 10px 14px; }
}
@media (max-width: 520px) {
  .dg-map-row { grid-template-columns: minmax(0, 1fr); }
  .dg-sector-list { grid-template-columns: minmax(0, 1fr); }
  .dg-path-row { grid-template-columns: minmax(0, 1fr); }
  .dg-path-step { border-inline-start: 0 !important; }
  .dg-path-step + .dg-path-step { border-top: 1px solid var(--border); }
  .dg-gov-note { grid-template-columns: minmax(0, 1fr); }
  .dg-chips .chip { font-size: .78rem; }
  .dg-agent-bar { flex-direction: column; align-items: stretch; }
  .dg-agent-bar .tab-list { width: 100%; }
}

@media (prefers-reduced-motion: reduce) {
  .dg-float, .dg-flow > li::after, .dg-caret-blink, .dg-plan-bar-anim i::after { animation: none !important; }
}
@media print {
  .dg-dots, .dg-float, .dg-replay { display: none !important; }
}

/* keep the last tour visual fully in view before the tour releases it */
@media (min-width: 961px) {
  .dg-tour-section .dg-step:last-child { min-height: min(760px, calc(100vh - var(--nav-h) - 24px)); }
}
