/* ============================================================
   DATA, ANALYTICS & AI PAGE — scoped styles
   Loaded only on: page-templates/tmpl-data-analytics-ai.php
   All selectors prefixed with .kd-data-ai to prevent bleed.
   ============================================================ */

/* ── ROOT VARIABLES ───────────────────────────────────────────*/
.kd-data-ai {
  --ink-900:   #10193a;
  --ink-800:   #182352;
  --ink-600:   #3b477a;
  --ink-400:   #6b7396;
  --ink-300:   #8991b0;
  --blue-600:  #2451e0;
  --blue-500:  #3f6df0;
  --blue-300:  #7fa8f6;
  --teal-400:  #35c9a8;
  --cream:     #f7f4ee;
  --paper:     #fbfaf7;
  --white:     #ffffff;
  --line:      #e7e4db;
  --line-soft: #eeece4;
  --lav-50:    #eef0fb;
  --lav-100:   #e4e8fa;
  --navy-950:  #0a1230;
  --navy-800:  #101c46;
  --radius:    16px;
  --max:       1280px;

  font-family: 'Inter', system-ui, sans-serif;
  color: var(--ink-600);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  background: var(--paper);
}

/* ── BASE ELEMENTS ────────────────────────────────────────────*/
.kd-data-ai *, .kd-data-ai *::before, .kd-data-ai *::after { box-sizing: border-box; }

/* Reset browser/theme default margins so layout matches standalone HTML */
.kd-data-ai h1, .kd-data-ai h2, .kd-data-ai h3, .kd-data-ai h4,
.kd-data-ai p, .kd-data-ai ul, .kd-data-ai li, .kd-data-ai figure { margin: 0; padding: 0; }

.kd-data-ai h1,
.kd-data-ai h2,
.kd-data-ai h3,
.kd-data-ai h4 {
  font-family: 'Plus Jakarta Sans', 'Inter', sans-serif;
  color: var(--ink-900);
  font-weight: 800;
  line-height: 1.14;
  letter-spacing: -0.015em;
}
.kd-data-ai a { color: inherit; text-decoration: none; }
.kd-data-ai img { max-width: 100%; display: block; }

/* ── LAYOUT ───────────────────────────────────────────────────*/
.kd-data-ai .da-wrap {
  max-width: var(--max);
  margin: 0 auto;
  padding: 0 28px;
}
.kd-data-ai section { padding: 100px 0; }
.kd-data-ai .divider { border-top: 1px solid var(--line-soft); }

/* ── UTILITIES ────────────────────────────────────────────────*/
.kd-data-ai .grad-text {
  background: linear-gradient(100deg, var(--blue-600), var(--blue-300));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.kd-data-ai .eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-family: 'Inter', sans-serif;
  font-size: 12px; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase;
  color: var(--ink-400);
}
.kd-data-ai .eyebrow::before {
  content: ""; width: 9px; height: 9px; border-radius: 50%;
  background: var(--blue-500);
  box-shadow: 0 0 0 3px var(--lav-100);
}

/* ── BUTTONS — override main.css .btn ─────────────────────────*/
.kd-data-ai .btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 14px 10px 14px 26px !important;
  border-radius: 999px !important;
  font-family: 'Inter', sans-serif !important;
  font-weight: 700 !important;
  font-size: 15px !important;
  background: var(--navy-800) !important;
  color: #fff !important;
  border: none !important;
  cursor: pointer !important;
  text-decoration: none !important;
  transition: none !important;
  box-shadow: none !important;
  transform: none !important;
}
.kd-data-ai .btn:hover {
  opacity: 0.9 !important;
  transform: none !important;
  box-shadow: none !important;
  text-decoration: none !important;
  color: #fff !important;
}
.kd-data-ai .btn .arrow {
  width: 32px !important; height: 32px !important; border-radius: 50% !important;
  background: #fff !important; color: var(--navy-800) !important;
  display: flex !important; align-items: center !important; justify-content: center !important;
  font-size: 16px !important;
  flex-shrink: 0 !important;
}
.kd-data-ai .btn.light {
  background: #fff !important; color: var(--navy-800) !important;
}
.kd-data-ai .btn.light:hover { color: var(--navy-800) !important; }
.kd-data-ai .btn.light .arrow { background: var(--navy-800) !important; color: #fff !important; }

/* ── BREADCRUMB + BADGE ───────────────────────────────────────*/
.kd-data-ai .crumb {
  font-size: 13px; color: var(--ink-400);
  font-family: 'Inter', monospace;
  padding-top: 24px;
}
.kd-data-ai .crumb a { color: var(--ink-400); }
.kd-data-ai .crumb b { color: var(--ink-800); font-weight: 600; }
.kd-data-ai .badge-pill {
  display: inline-flex; align-items: center; gap: 8px;
  margin-top: 22px; padding: 9px 16px;
  border-radius: 999px;
  background: #fff; border: 1px solid var(--line);
  font-size: 13px; color: var(--ink-600); font-weight: 500;
}
.kd-data-ai .badge-pill .dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--blue-500);
}

/* ── HERO ─────────────────────────────────────────────────────*/
/* Override main.css .hero (min-height:100vh, display:flex, overflow:hidden) */
.kd-data-ai .hero {
  position: static;
  min-height: auto;
  display: block;
  align-items: initial;
  overflow: visible;
  /* padding-top:80px clears the 72px fixed site nav + 8px breathing room */
  padding: 80px 0 70px;
  background:
    radial-gradient(900px 420px at 8% 0%, #e3e6fb 0%, transparent 60%),
    radial-gradient(900px 420px at 92% 10%, #dff3ef 0%, transparent 55%),
    #fbfaf7;
}
/* Override main.css .hero-grid (position:absolute, inset:0, background-image, mask-image) */
.kd-data-ai .hero-grid {
  position: static;
  inset: auto;
  background-image: none;
  background-size: auto;
  -webkit-mask-image: none;
  mask-image: none;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 50px;
  align-items: start;
  margin-top: 38px;
}
.kd-data-ai .hero h1 {
  font-size: 56px;
  line-height: 1.14;
  letter-spacing: -0.015em;
  margin-bottom: 26px;
}
.kd-data-ai .hero p.lead {
  font-size: 16.5px; color: var(--ink-600);
  max-width: 600px; margin-bottom: 34px;
}

/* ── HERO MOCK CARD ───────────────────────────────────────────*/
.kd-data-ai .mock-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: 18px; padding: 26px;
  box-shadow: 0 20px 50px -25px rgba(16,25,58,0.25);
  margin-top: 44px;
}
.kd-data-ai .mock-top {
  display: flex; align-items: center; justify-content: space-between;
  margin-bottom: 18px;
}
.kd-data-ai .mock-top .who { font-size: 13px; color: var(--ink-400); font-weight: 600; }
.kd-data-ai .mock-top .live {
  font-size: 11.5px; font-weight: 700; color: #1a9c6d;
  background: #e5f8ef; padding: 5px 10px; border-radius: 999px;
}
.kd-data-ai .mock-title {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 20px;
}
.kd-data-ai .mock-title h4 { font-size: 19px; color: var(--ink-900); }
.kd-data-ai .mock-title .sub {
  font-size: 12.5px; color: var(--ink-400); margin-top: 4px; font-weight: 500;
}
.kd-data-ai .ring {
  width: 64px; height: 64px; border-radius: 50%;
  background: conic-gradient(var(--blue-500) 82%, var(--lav-100) 0);
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.kd-data-ai .ring span {
  width: 50px; height: 50px; border-radius: 50%; background: #fff;
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 13px; color: var(--ink-900);
}
.kd-data-ai .mock-row {
  display: flex; align-items: center; justify-content: space-between;
  padding: 13px 0; border-top: 1px solid var(--line-soft);
  font-size: 13.5px;
}
.kd-data-ai .mock-row .flow {
  display: flex; align-items: center; gap: 10px;
  color: var(--ink-800); font-weight: 600;
}
.kd-data-ai .mock-row .flow .to { color: var(--ink-400); font-weight: 400; }
.kd-data-ai .tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 700;
  padding: 5px 10px; border-radius: 999px;
  border: none;
  line-height: 1.4;
}
.kd-data-ai .tag.blue  { background: #e7f0ff; color: var(--blue-600); }
.kd-data-ai .tag.green { background: #e5f8ef; color: #1a9c6d; }
.kd-data-ai .tag.amber { background: #fdf1e0; color: #b5760f; }

/* ── SECTION HEAD (reused) ────────────────────────────────────*/
.kd-data-ai .section-head {
  max-width: 780px; margin: 0 auto 50px; text-align: center;
}
.kd-data-ai .section-head .eyebrow { display: flex; justify-content: center; width: 100%; }
.kd-data-ai .section-head h2 { font-size: 32px; margin: 18px 0 16px; }
.kd-data-ai .section-head p { font-size: 15.5px; color: var(--ink-400); }

/* ── REASON BAND ──────────────────────────────────────────────*/
.kd-data-ai .reason-band { text-align: center; padding: 70px 0; }
.kd-data-ai .reason-band h2 { font-size: 32px; max-width: 760px; margin: 14px auto 22px; }
.kd-data-ai .reason-band p { max-width: 760px; margin: 0 auto 32px; font-size: 15.5px; }
.kd-data-ai .reason-band .eyebrow { display: flex; justify-content: center; }

/* ── STAT GRID ────────────────────────────────────────────────*/
.kd-data-ai .stat-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
}
.kd-data-ai .stat-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 26px 22px;
}
.kd-data-ai .stat-card .num {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 24px;
  color: var(--ink-900); margin-bottom: 8px;
}
.kd-data-ai .stat-card .num span {
  background: linear-gradient(100deg, var(--blue-600), var(--teal-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kd-data-ai .stat-card .label { font-size: 13.5px; color: var(--ink-400); }

/* ── ICON GRID (core services) ────────────────────────────────*/
.kd-data-ai .icon-grid {
  display: grid; grid-template-columns: repeat(2, 1fr); gap: 22px;
}
.kd-data-ai .icon-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 30px;
}
.kd-data-ai .icon-badge {
  width: 52px; height: 52px; border-radius: 12px;
  background: var(--lav-50);
  display: flex; align-items: center; justify-content: center;
  margin-bottom: 18px; flex-shrink: 0;
}
.kd-data-ai .icon-badge svg {
  width: 28px; height: 28px; display: block;
}
.kd-data-ai .icon-card h3 { font-size: 19px; margin-bottom: 10px; }
.kd-data-ai .icon-card p { font-size: 14px; color: var(--ink-400); margin-bottom: 16px; }
.kd-data-ai .icon-card ul {
  list-style: none;
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 12px;
}
.kd-data-ai .icon-card li {
  font-size: 13px; color: var(--ink-600);
  padding-left: 15px; position: relative; font-weight: 500;
}
.kd-data-ai .icon-card li::before {
  content: ""; position: absolute; left: 0; top: 7px;
  width: 5px; height: 5px; border-radius: 50%;
  background: var(--blue-500);
}

/* ── APPROACH GRID (3x2) ──────────────────────────────────────*/
.kd-data-ai .approach-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.kd-data-ai .approach-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px;
}
.kd-data-ai .approach-card .num-tag {
  font-size: 12px; color: var(--ink-300); font-weight: 700;
  margin-bottom: 14px; letter-spacing: 0.05em;
}
.kd-data-ai .approach-card h3 { font-size: 17.5px; margin-bottom: 10px; }
.kd-data-ai .approach-card p { font-size: 13.5px; color: var(--ink-400); margin-bottom: 14px; }
.kd-data-ai .approach-card .tags { display: flex; flex-wrap: wrap; gap: 7px; }
.kd-data-ai .approach-card .tags span {
  font-size: 11.5px; color: var(--ink-600); font-weight: 600;
  background: var(--lav-50); padding: 5px 10px; border-radius: 999px;
}
.kd-data-ai .approach-cta-card {
  background: var(--lav-50); border: none;
  border-radius: var(--radius);
  padding: 28px;
  display: flex; flex-direction: column; justify-content: center;
}
.kd-data-ai .approach-cta-card h3 { font-size: 16px; margin-bottom: 8px; }
.kd-data-ai .approach-cta-card p { font-size: 13.5px; color: var(--ink-400); margin-bottom: 16px; }

/* ── INDUSTRY GRID ────────────────────────────────────────────*/
.kd-data-ai .industry-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px;
}
.kd-data-ai .industry-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 24px 22px;
}
.kd-data-ai .industry-card h3 { font-size: 16px; margin-bottom: 9px; }
.kd-data-ai .industry-card p { font-size: 13px; color: var(--ink-400); }
.kd-data-ai .industry-cta-card {
  background: var(--lav-50); border: none;
  border-radius: var(--radius); padding: 24px 22px;
}
.kd-data-ai .industry-cta-card h3 { font-size: 16px; margin-bottom: 9px; }
.kd-data-ai .industry-cta-card p { font-size: 13px; color: var(--ink-400); }

/* ── TECH GRID ────────────────────────────────────────────────*/
.kd-data-ai .tech-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px;
}
.kd-data-ai .tech-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 22px 24px;
}
.kd-data-ai .tech-card .cat {
  font-size: 11.5px; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--blue-600);
  font-weight: 700; margin-bottom: 9px;
}
.kd-data-ai .tech-card .items { font-size: 15px; color: var(--ink-900); font-weight: 600; }

/* ── WHY BOX ──────────────────────────────────────────────────*/
.kd-data-ai .why-box {
  background: var(--lav-50);
  border-radius: 22px;
  padding: 44px;
}
.kd-data-ai .why-grid {
  display: grid; grid-template-columns: 1fr 1fr; gap: 34px 60px;
}
.kd-data-ai .why-item h3 { font-size: 18px; margin-bottom: 10px; }
.kd-data-ai .why-item p { font-size: 14px; color: var(--ink-600); }

/* ── OUTCOMES ─────────────────────────────────────────────────*/
.kd-data-ai .outcome-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
}
.kd-data-ai .outcome-card {
  background: #fff; border: 1px solid var(--line);
  border-radius: var(--radius); padding: 28px 24px;
}
.kd-data-ai .outcome-card .big {
  font-family: 'Plus Jakarta Sans', sans-serif;
  font-weight: 800; font-size: 22px;
}
.kd-data-ai .outcome-card .big span {
  background: linear-gradient(100deg, var(--blue-600), var(--teal-400));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kd-data-ai .outcome-card .sub {
  font-size: 12.5px; color: var(--blue-600); font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.05em;
  margin: 6px 0 12px;
}
.kd-data-ai .outcome-card p { font-size: 13.5px; color: var(--ink-400); }

/* ── DARK CTA CARD ────────────────────────────────────────────*/
.kd-data-ai .cta-card {
  border-radius: 26px;
  padding: 56px 60px;
  color: #fff;
  position: relative; overflow: hidden;
  background-image:
    radial-gradient(700px 400px at 85% 15%, rgba(36,81,224,0.55) 0%, transparent 60%),
    radial-gradient(circle, rgba(255,255,255,0.14) 1px, transparent 1.4px);
  background-size: auto, 22px 22px;
  background-color: var(--navy-950);
}
.kd-data-ai .cta-card .eyebrow { color: #9fb0e8; }
.kd-data-ai .cta-card .eyebrow::before {
  background: var(--blue-300);
  box-shadow: 0 0 0 3px rgba(127,168,246,0.2);
}
.kd-data-ai .cta-card h2 { color: #fff; font-size: 34px; max-width: 600px; margin: 18px 0 16px; }
.kd-data-ai .cta-card h2 em {
  font-style: normal;
  background: linear-gradient(100deg, #cfe0ff, var(--blue-300));
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.kd-data-ai .cta-card p { color: #b7c0e2; max-width: 560px; font-size: 14.5px; margin-bottom: 28px; }
.kd-data-ai .cta-checks {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 12px 40px; margin-bottom: 32px; max-width: 640px;
}
.kd-data-ai .cta-checks .item {
  display: flex; align-items: center; gap: 10px;
  font-size: 14px; color: #dde3f7;
}
.kd-data-ai .cta-checks .tick {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--blue-600);
  display: flex; align-items: center; justify-content: center;
  font-size: 11px; flex-shrink: 0; color: #fff;
}

/* ── RESPONSIVE — 1080px ─────────────────────────────────────*/
@media (max-width: 1080px) {
  .kd-data-ai .hero h1 { font-size: 48px; }
}

/* ── RESPONSIVE — 980px (tablet landscape) ───────────────────*/
@media (max-width: 980px) {
  /* Hero */
  .kd-data-ai .hero { padding: 72px 0 56px; }
  .kd-data-ai .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .kd-data-ai .hero h1 { font-size: 40px; }
  .kd-data-ai .hero p.lead { font-size: 15.5px; max-width: 100%; }
  /* Mock card — reset the top offset when stacked */
  .kd-data-ai .mock-card { margin-top: 0; }

  /* Grids → 2 columns */
  .kd-data-ai .stat-grid      { grid-template-columns: repeat(2, 1fr); }
  .kd-data-ai .icon-grid      { grid-template-columns: repeat(2, 1fr); }
  .kd-data-ai .industry-grid  { grid-template-columns: repeat(2, 1fr); }
  .kd-data-ai .tech-grid      { grid-template-columns: repeat(2, 1fr); }
  .kd-data-ai .approach-grid  { grid-template-columns: repeat(2, 1fr); }
  .kd-data-ai .outcome-grid   { grid-template-columns: repeat(2, 1fr); }
  .kd-data-ai .why-grid       { grid-template-columns: 1fr 1fr; gap: 24px 40px; }

  /* Why box */
  .kd-data-ai .why-box { padding: 32px; }

  /* CTA */
  .kd-data-ai .cta-card { padding: 44px 40px; }

  /* Sections */
  .kd-data-ai section { padding: 80px 0; }
  .kd-data-ai .reason-band { padding: 60px 0; }
}

/* ── RESPONSIVE — 767px (tablet portrait) ────────────────────*/
@media (max-width: 767px) {
  .kd-data-ai .da-wrap { padding: 0 20px; }
  .kd-data-ai .hero h1 { font-size: 36px; }
  .kd-data-ai .section-head h2 { font-size: 26px; }
  .kd-data-ai .cta-card h2 { font-size: 26px; }

  /* Approach → single column on portrait tablet */
  .kd-data-ai .approach-grid { grid-template-columns: 1fr; }
}

/* ── RESPONSIVE — 600px (mobile) ────────────────────────────*/
@media (max-width: 600px) {
  /* Hero */
  .kd-data-ai .hero { padding: 64px 0 48px; }
  .kd-data-ai .hero h1 { font-size: 32px; line-height: 1.18; }
  .kd-data-ai .hero p.lead { font-size: 15px; }
  .kd-data-ai .crumb { font-size: 12px; padding-top: 16px; }
  .kd-data-ai .badge-pill { font-size: 12px; padding: 7px 13px; margin-top: 14px; }

  /* All grids → 1 column */
  .kd-data-ai .stat-grid,
  .kd-data-ai .icon-grid,
  .kd-data-ai .industry-grid,
  .kd-data-ai .tech-grid,
  .kd-data-ai .approach-grid,
  .kd-data-ai .why-grid,
  .kd-data-ai .outcome-grid,
  .kd-data-ai .cta-checks { grid-template-columns: 1fr; }

  /* Why box */
  .kd-data-ai .why-box { padding: 24px 20px; }

  /* CTA */
  .kd-data-ai .cta-card { padding: 32px 22px; }
  .kd-data-ai .cta-card h2 { font-size: 22px; }

  /* Sections */
  .kd-data-ai section { padding: 56px 0; }
  .kd-data-ai .reason-band { padding: 48px 0; }
}
