/*
Theme Name: DueDoor (Astra Child)
Template: astra
Description: DueDoor custom templates for all page types — blog posts, resource categories, industry pages, AI solution pages, homepage
Version: 1.0.0
Author: DueDoor
*/

/* ═══════════════════════════════════════════════
   DESIGN TOKENS — shared across all templates
═══════════════════════════════════════════════ */
:root {
  --bg: #fafbff;
  --bg2: #f3f1ff;
  --card: #ffffff;
  --bd: #e8e6f5;
  --bd2: #d8d4f0;
  --t1: #0f0a2e;
  --t2: #5b5680;
  --t3: #9692b8;
  --p: #6A11CB;
  --p2: #5609a8;
  --g: #00d4aa;
  --y: #ffb800;
  --pk: #ff5c8a;
  --bl: #3b82f6;
  --grad: linear-gradient(135deg, #6A11CB 0%, #5609a8 50%, #00d4aa 100%);
  --grad2: linear-gradient(135deg, #ff5c8a 0%, #6A11CB 100%);
  --grad3: linear-gradient(135deg, #00d4aa 0%, #3b82f6 100%);
}

/* ═══════════════════════════════════════════════
   GLOBAL RESET
═══════════════════════════════════════════════ */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--t1);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body::before {
  content: "";
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 15% 10%, rgba(106,17,203,.12), transparent 40%),
    radial-gradient(circle at 85% 30%, rgba(0,212,170,.10), transparent 40%),
    radial-gradient(circle at 50% 90%, rgba(255,92,138,.08), transparent 40%);
  z-index: -1;
  pointer-events: none;
}
a { color: var(--p); text-decoration: none; }
a:hover { color: var(--p2); }
img { max-width: 100%; height: auto; }

/* ═══════════════════════════════════════════════
   ANIMATIONS
═══════════════════════════════════════════════ */
@keyframes breathe { 0%,100%{transform:scale(1);opacity:.85} 50%{transform:scale(1.04);opacity:1} }
@keyframes shimmer { 0%{background-position:-200% 0} 100%{background-position:200% 0} }
@keyframes float { 0%,100%{transform:translateY(0)} 50%{transform:translateY(-8px)} }
@keyframes pulse { 0%,100%{box-shadow:0 0 0 0 rgba(106,17,203,.4)} 50%{box-shadow:0 0 0 18px rgba(106,17,203,0)} }
@keyframes slideUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }
@keyframes spin { to{transform:rotate(360deg)} }
@keyframes gradientMove { 0%,100%{background-position:0% 50%} 50%{background-position:100% 50%} }
@keyframes scroll { 0%{transform:translateX(0)} 100%{transform:translateX(-50%)} }

.fade-in { animation: slideUp .7s ease both; }
.reveal { opacity: 0; transform: translateY(22px); transition: opacity .6s ease, transform .6s ease; }
.reveal.on { opacity: 1; transform: none; }

/* ═══════════════════════════════════════════════
   SHARED NAV / HEADER
═══════════════════════════════════════════════ */
.dd-hdr {
  background: rgba(255,255,255,.7);
  backdrop-filter: blur(24px) saturate(180%);
  -webkit-backdrop-filter: blur(24px) saturate(180%);
  border-bottom: 1px solid rgba(232,230,245,.6);
  position: sticky;
  top: 0;
  z-index: 100;
}
.dd-hdr-in {
  max-width: 1280px;
  margin: 0 auto;
  padding: 16px 24px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.dd-logo { display: inline-flex; align-items: center; }
.dd-logo img { height: 36px; width: auto; object-fit: contain; }
.dd-nav { display: flex; gap: 32px; align-items: center; }
.dd-nav a { color: var(--t2); font-size: 15px; font-weight: 500; transition: .2s; }
.dd-nav a:hover { color: var(--p); }
.dd-cta {
  background: var(--grad);
  background-size: 200% 200%;
  color: #fff !important;
  padding: 11px 22px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  animation: gradientMove 4s ease infinite;
  box-shadow: 0 8px 24px rgba(106,17,203,.35);
  transition: .2s;
}
.dd-cta:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(106,17,203,.5); }
@media(max-width: 768px) { .dd-nav a:not(.dd-cta) { display: none; } }

/* ═══════════════════════════════════════════════
   SHARED FOOTER
═══════════════════════════════════════════════ */
.dd-ft {
  background: var(--t1);
  color: rgba(255,255,255,.7);
  padding: 56px 0 32px;
  margin-top: 80px;
}
.ft-grid {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 24px;
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
}
.ft-col h4 { color: #fff; font-size: 14px; font-weight: 600; margin-bottom: 14px; }
.ft-col ul { list-style: none; }
.ft-col ul li { margin-bottom: 8px; }
.ft-col ul li a { color: rgba(255,255,255,.6); font-size: 14px; transition: .2s; }
.ft-col ul li a:hover { color: #fff; }
.ft-bot {
  max-width: 1280px;
  margin: 32px auto 0;
  padding: 24px 24px 0;
  border-top: 1px solid rgba(255,255,255,.1);
  font-size: 13px;
  color: rgba(255,255,255,.4);
}
@media(max-width: 768px) {
  .ft-grid { grid-template-columns: 1fr 1fr; }
}

/* ═══════════════════════════════════════════════
   READING PROGRESS BAR
═══════════════════════════════════════════════ */
.dd-progress {
  position: fixed;
  top: 0;
  left: 0;
  height: 3px;
  width: 0;
  background: var(--grad);
  z-index: 200;
  transition: width .1s;
}

/* ═══════════════════════════════════════════════
   BREADCRUMBS
═══════════════════════════════════════════════ */
.dd-bc {
  padding: 28px 0 0;
  font-size: 13px;
  color: var(--t3);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.dd-bc a { color: var(--t3); transition: .2s; }
.dd-bc a:hover { color: var(--p); }
.dd-bc-sep { font-size: 12px; opacity: .5; }

/* ═══════════════════════════════════════════════
   CTA BUTTONS (shared)
═══════════════════════════════════════════════ */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--grad);
  background-size: 200% 200%;
  color: #fff;
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  animation: gradientMove 4s ease infinite;
  box-shadow: 0 8px 24px rgba(106,17,203,.35);
  transition: .2s;
  border: none;
  cursor: pointer;
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 12px 32px rgba(106,17,203,.5); color: #fff; }
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(255,255,255,.9);
  color: var(--p);
  padding: 14px 28px;
  border-radius: 14px;
  font-weight: 600;
  font-size: 15px;
  border: 1.5px solid var(--bd2);
  transition: .2s;
}
.btn-ghost:hover { background: var(--bg2); border-color: var(--p); }

/* ═══════════════════════════════════════════════
   WRAP / LAYOUT
═══════════════════════════════════════════════ */
.wrap { max-width: 1280px; margin: 0 auto; padding: 0 24px; }
.wrap-narrow { max-width: 880px; margin: 0 auto; padding: 0 24px; }

/* ═══════════════════════════════════════════════
   SECTION HELPERS
═══════════════════════════════════════════════ */
.s { padding: 80px 0; }
.s-sm { padding: 48px 0; }
.s-alt { background: var(--bg2); }
.s-dark { background: var(--t1); color: #fff; }
.s-hdr { text-align: center; margin-bottom: 52px; }
.s-hdr h2 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; line-height: 1.2; }
.s-hdr p { color: var(--t2); font-size: 17px; margin-top: 12px; max-width: 600px; margin-inline: auto; }
.gr { background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }

/* ═══════════════════════════════════════════════
   BLOG POST — specific styles
═══════════════════════════════════════════════ */
.dd-post-wrap { max-width: 880px; margin: 0 auto; padding: 0 24px; }

.dd-post-hero {
  padding: 40px 0 32px;
  border-bottom: 1px solid var(--bd);
  margin-bottom: 40px;
}
.dd-post-hero .cat-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: var(--bg2);
  border: 1px solid var(--bd);
  color: var(--p);
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.dd-post-hero h1 {
  font-size: clamp(26px, 4vw, 40px);
  font-weight: 800;
  line-height: 1.2;
  margin-bottom: 16px;
  color: var(--t1);
}
.dd-byline {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 14px 0 20px;
  font-size: 14px;
  color: #555;
}
.dd-byline-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, #7c5cff, #00d4aa);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  flex-shrink: 0;
}
.dd-post-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
  color: var(--t3);
}
.dd-post-meta span { display: flex; align-items: center; gap: 4px; }

/* TOC */
.dd-toc {
  background: var(--bg2);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 20px 24px;
  margin: 32px 0;
}
.dd-toc-h { font-size: 13px; font-weight: 700; text-transform: uppercase; letter-spacing: .5px; color: var(--t3); margin-bottom: 12px; }
.dd-toc ol { padding-left: 0; list-style: none; counter-reset: toc; }
.dd-toc ol li {
  counter-increment: toc;
  padding: 6px 0 6px 28px;
  position: relative;
  font-size: 14px;
  border-radius: 8px;
  transition: .2s;
  cursor: pointer;
}
.dd-toc ol li::before {
  content: counter(toc);
  position: absolute;
  left: 0;
  width: 20px;
  height: 20px;
  background: var(--bd2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  top: 8px;
}
.dd-toc ol li a { color: var(--t2); transition: .2s; }
.dd-toc ol li:hover a, .dd-toc ol li.active a { color: var(--p); }
.dd-toc ol li.active::before { background: var(--p); color: #fff; }

/* Post content typography */
.dd-post-content { line-height: 1.8; }
.dd-post-content h2 {
  font-size: clamp(20px, 3vw, 26px);
  font-weight: 700;
  margin: 40px 0 16px;
  color: var(--t1);
  padding-top: 8px;
}
.dd-post-content h3 {
  font-size: 18px;
  font-weight: 600;
  margin: 28px 0 12px;
  color: var(--t1);
}
.dd-post-content p { margin-bottom: 18px; color: var(--t1); }
.dd-post-content ul, .dd-post-content ol {
  margin: 0 0 18px 24px;
}
.dd-post-content li { margin-bottom: 8px; }
.dd-post-content blockquote {
  border-left: 3px solid var(--p);
  background: var(--bg2);
  padding: 16px 20px;
  margin: 24px 0;
  border-radius: 0 12px 12px 0;
  font-style: italic;
  color: var(--t2);
}
.dd-post-content table {
  width: 100%;
  border-collapse: collapse;
  margin: 24px 0;
  font-size: 14px;
}
.dd-post-content th {
  background: var(--bg2);
  padding: 12px 16px;
  text-align: left;
  font-weight: 600;
  border-bottom: 2px solid var(--bd);
}
.dd-post-content td {
  padding: 10px 16px;
  border-bottom: 1px solid var(--bd);
}
.dd-post-content strong { color: var(--t1); font-weight: 600; }

/* Quick answer box */
.quick-answer {
  background: linear-gradient(135deg, rgba(106,17,203,.06), rgba(0,212,170,.06));
  border: 1px solid var(--bd2);
  border-radius: 14px;
  padding: 20px 24px;
  margin: 0 0 28px;
}
.quick-answer-h {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .8px;
  color: var(--p);
  margin-bottom: 8px;
}

/* Stats bar */
.dd-stats {
  display: flex;
  gap: 20px;
  margin: 28px 0;
  flex-wrap: wrap;
}
.dd-stat {
  flex: 1;
  min-width: 100px;
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 14px;
  padding: 18px 16px;
  text-align: center;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.dd-stat-num { font-size: 28px; font-weight: 800; background: var(--grad); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.dd-stat-lbl { font-size: 12px; color: var(--t2); font-weight: 500; margin-top: 4px; }

/* Phone mock */
.dd-phone-wrap {
  display: flex;
  justify-content: center;
  padding: 40px 0;
}
.dd-phone {
  width: 320px;
  background: #fff;
  border-radius: 32px;
  box-shadow: 0 32px 80px rgba(106,17,203,.2), 0 0 0 1px var(--bd);
  overflow: hidden;
}
.dd-phone-screen { background: #f0f0f0; }
.dd-phone-top {
  background: var(--p);
  padding: 12px 16px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.dd-phone-av {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,.25);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: #fff;
  font-size: 13px;
}
.dd-phone-name { color: #fff; font-weight: 600; font-size: 14px; }
.dd-phone-sub { color: rgba(255,255,255,.7); font-size: 11px; }
.dd-chat { padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.dd-bub {
  max-width: 80%;
  padding: 10px 14px;
  border-radius: 14px;
  font-size: 13px;
  line-height: 1.5;
  position: relative;
}
.dd-bub time { display: block; font-size: 10px; margin-top: 4px; opacity: .6; text-align: right; }
.dd-bub-out {
  background: var(--p);
  color: #fff;
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}
.dd-bub-in {
  background: #fff;
  color: var(--t1);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
  box-shadow: 0 1px 4px rgba(0,0,0,.1);
}
.dd-phone-cap {
  padding: 16px;
  background: var(--t1);
  text-align: center;
}
.dd-phone-cap h4 { color: #fff; font-size: 13px; font-weight: 600; margin-bottom: 8px; }

/* Problem-solution grid */
.dd-ps { padding: 40px 0; }
.dd-ps-h { font-size: 20px; font-weight: 800; margin-bottom: 6px; display: flex; align-items: center; gap: 10px; }
.dd-ps-s { color: var(--t2); font-size: 15px; margin-bottom: 28px; }
.dd-ps-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.dd-ps-card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0,0,0,.04);
}
.dd-ps-prob, .dd-ps-sol {
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 14px;
  line-height: 1.5;
}
.dd-ps-prob { border-bottom: 1px solid var(--bd); color: var(--t2); }
.dd-ps-sol { color: var(--t1); font-weight: 500; }

/* ROI Calculator */
.dd-calc {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 20px;
  padding: 32px;
  margin: 32px 0;
  box-shadow: 0 4px 24px rgba(0,0,0,.06);
}
.dd-calc h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.dd-calc-sub { color: var(--t2); font-size: 14px; margin-bottom: 24px; }
.dd-calc-row { display: flex; align-items: center; gap: 16px; margin-bottom: 16px; flex-wrap: wrap; }
.dd-calc-row label { font-size: 13px; color: var(--t2); flex: 1; min-width: 140px; }
.dd-calc-row input[type=range] { flex: 2; accent-color: var(--p); }
.dd-calc-val { font-weight: 700; color: var(--p); min-width: 60px; text-align: right; }
.dd-calc-result {
  background: var(--grad);
  border-radius: 14px;
  padding: 20px 24px;
  margin-top: 20px;
  color: #fff;
  text-align: center;
}
.dd-calc-result-lbl { font-size: 13px; opacity: .9; margin-bottom: 6px; }
.dd-calc-result-num { font-size: 32px; font-weight: 800; }
.dd-calc-result-sub { font-size: 12px; opacity: .8; margin-top: 6px; }

/* WA lead form */
.dd-wa-form {
  background: linear-gradient(135deg, rgba(106,17,203,.05), rgba(0,212,170,.05));
  border: 1px solid var(--bd2);
  border-radius: 20px;
  padding: 32px;
  margin: 32px 0;
}
.dd-wa-form h3 { font-size: 20px; font-weight: 700; margin-bottom: 6px; }
.dd-wa-form p { color: var(--t2); font-size: 14px; margin-bottom: 20px; }
.dd-wa-form input, .dd-wa-form textarea {
  width: 100%;
  padding: 12px 16px;
  border: 1.5px solid var(--bd);
  border-radius: 12px;
  font-family: inherit;
  font-size: 14px;
  color: var(--t1);
  background: var(--card);
  margin-bottom: 12px;
  transition: .2s;
}
.dd-wa-form input:focus, .dd-wa-form textarea:focus {
  outline: none;
  border-color: var(--p);
  box-shadow: 0 0 0 3px rgba(106,17,203,.1);
}
.dd-wa-form textarea { resize: vertical; min-height: 80px; }

/* Bar chart */
.dd-chart {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 24px;
  margin: 32px 0;
}
.dd-chart-h { font-size: 16px; font-weight: 700; margin-bottom: 4px; display: flex; align-items: center; gap: 8px; }
.dd-chart-s { font-size: 13px; color: var(--t3); margin-bottom: 20px; }
.dd-chart-bar { display: flex; align-items: center; gap: 12px; margin-bottom: 10px; }
.dd-chart-bar-lbl { font-size: 13px; font-weight: 500; width: 80px; flex-shrink: 0; }
.dd-chart-bar-track { flex: 1; height: 10px; background: var(--bd); border-radius: 5px; overflow: hidden; }
.dd-chart-bar-fill { height: 100%; background: var(--grad); border-radius: 5px; width: 0; transition: width 1.2s ease; }
.dd-chart-bar-val { font-size: 13px; font-weight: 700; color: var(--p); width: 36px; text-align: right; }

/* ═══════════════════════════════════════════════
   RESOURCE CATEGORY PAGE
═══════════════════════════════════════════════ */
.dd-cat-hero {
  text-align: center;
  padding: 60px 0 40px;
}
.dd-cat-icon-big {
  width: 72px;
  height: 72px;
  border-radius: 20px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 32px;
  color: #fff;
  margin: 0 auto 20px;
  box-shadow: 0 12px 32px rgba(106,17,203,.3);
}
.dd-cat-hero h1 { font-size: clamp(28px, 4vw, 42px); font-weight: 800; margin-bottom: 12px; }
.dd-cat-hero p { color: var(--t2); font-size: 17px; max-width: 560px; margin: 0 auto 24px; }
.dd-cat-chips { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.dd-chip {
  background: var(--card);
  border: 1px solid var(--bd);
  color: var(--t2);
  font-size: 13px;
  padding: 6px 14px;
  border-radius: 20px;
  font-weight: 500;
  transition: .2s;
}
.dd-chip:hover { border-color: var(--p); color: var(--p); }

.dd-blog-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 24px;
  padding: 40px 0 80px;
}
.dd-blog-card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 16px;
  overflow: hidden;
  transition: .25s;
  display: flex;
  flex-direction: column;
}
.dd-blog-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(106,17,203,.12);
  border-color: var(--bd2);
}
.dd-blog-thumb {
  aspect-ratio: 16/9;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  color: var(--p);
}
.dd-blog-thumb img { width: 100%; height: 100%; object-fit: cover; }
.dd-blog-body { padding: 18px 20px; flex: 1; display: flex; flex-direction: column; }
.dd-blog-meta { font-size: 12px; color: var(--t3); margin-bottom: 8px; display: flex; align-items: center; gap: 10px; }
.dd-blog-tag {
  display: inline-block;
  background: var(--bg2);
  color: var(--p);
  font-size: 11px;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: 6px;
  text-transform: uppercase;
  letter-spacing: .3px;
}
.dd-blog-card h3 { font-size: 16px; font-weight: 700; line-height: 1.4; flex: 1; margin-bottom: 12px; }
.dd-blog-card h3 a { color: var(--t1); }
.dd-blog-card h3 a:hover { color: var(--p); }
.dd-blog-read { font-size: 13px; font-weight: 600; color: var(--p); display: inline-flex; align-items: center; gap: 4px; }

/* Category sidebar (used on taxonomy page) */
.dd-cat-layout { display: grid; grid-template-columns: 1fr 280px; gap: 40px; padding: 40px 0 80px; }
.dd-cat-sidebar { position: sticky; top: 80px; align-self: start; }
.dd-cat-sidebar-card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 20px;
  margin-bottom: 16px;
}
.dd-cat-sidebar-card h4 { font-size: 14px; font-weight: 700; margin-bottom: 12px; }
.dd-cat-list { list-style: none; }
.dd-cat-list li { padding: 8px 0; border-bottom: 1px solid var(--bd); font-size: 14px; }
.dd-cat-list li:last-child { border-bottom: none; }
.dd-cat-list a { color: var(--t2); display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.dd-cat-list a:hover { color: var(--p); }
.dd-cat-list a.active { color: var(--p); font-weight: 600; }
@media(max-width: 900px) { .dd-cat-layout { grid-template-columns: 1fr; } .dd-cat-sidebar { position: static; } }

/* ═══════════════════════════════════════════════
   RESOURCES HUB
═══════════════════════════════════════════════ */
.dd-hub-hero {
  padding: 70px 0 50px;
  text-align: center;
}
.dd-hub-hero h1 { font-size: clamp(32px, 5vw, 52px); font-weight: 800; margin-bottom: 14px; }
.dd-hub-hero p { color: var(--t2); font-size: 18px; max-width: 600px; margin: 0 auto; }

.dd-hub-cats {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
  padding: 40px 0 80px;
}
.dd-hub-cat-card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 18px;
  padding: 24px;
  transition: .25s;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.dd-hub-cat-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(106,17,203,.12);
  border-color: var(--p);
}
.dd-hub-cat-icon {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  color: #fff;
}
.dd-hub-cat-card h3 { font-size: 17px; font-weight: 700; }
.dd-hub-cat-card p { font-size: 13px; color: var(--t2); flex: 1; }
.dd-hub-cat-count { font-size: 12px; color: var(--t3); font-weight: 500; }

/* ═══════════════════════════════════════════════
   INDUSTRY PAGE
═══════════════════════════════════════════════ */
.dd-ind-hero {
  padding: 60px 0 40px;
  position: relative;
  overflow: hidden;
}
.dd-ind-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.dd-ind-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(106,17,203,.08);
  border: 1px solid rgba(106,17,203,.2);
  color: var(--p);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 12px;
  border-radius: 20px;
  margin-bottom: 16px;
  text-transform: uppercase;
  letter-spacing: .5px;
}
.dd-ind-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; line-height: 1.2; margin-bottom: 16px; }
.dd-ind-hero p { color: var(--t2); font-size: 16px; margin-bottom: 28px; line-height: 1.7; }
.dd-ind-trust { display: flex; gap: 20px; flex-wrap: wrap; margin-top: 20px; }
.dd-ind-trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--t2); }
.dd-ind-trust-item .num { color: var(--p); }

/* Journey steps */
.dd-hero-steps {
  display: flex;
  gap: 8px;
  margin-top: 28px;
  overflow-x: auto;
  padding-bottom: 8px;
}
.dd-hero-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  min-width: 90px;
}
.dd-hero-step-n {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--grad);
  color: #fff;
  font-weight: 700;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dd-hero-step-title { font-size: 11px; font-weight: 600; text-align: center; color: var(--t1); }
.dd-hero-step-sub { font-size: 10px; color: var(--t3); text-align: center; }

/* Demo frame */
.dd-demo-frame {
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 32px 80px rgba(106,17,203,.2);
  border: 1px solid var(--bd);
}
.dd-demo-frame iframe { width: 100%; border: none; }

/* Message slider */
.dd-msg-slider { background: var(--t1); padding: 24px 0; overflow: hidden; }
.dd-msg-track {
  display: flex;
  gap: 16px;
  animation: scroll 30s linear infinite;
  width: max-content;
}
.dd-msg-track:hover { animation-play-state: paused; }
.dd-msg-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(255,255,255,.06);
  border: 1px solid rgba(255,255,255,.1);
  border-radius: 12px;
  padding: 12px 16px;
  min-width: 260px;
}
.dd-mb-ico {
  width: 36px;
  height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.dd-mb-txt { font-size: 13px; color: rgba(255,255,255,.85); font-weight: 500; }
.dd-mb-label { font-size: 11px; color: rgba(255,255,255,.4); margin-top: 2px; }

/* Features grid */
.dd-features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}
.dd-feature-card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 24px;
  transition: .25s;
}
.dd-feature-card:hover {
  border-color: var(--p);
  box-shadow: 0 8px 32px rgba(106,17,203,.1);
  transform: translateY(-2px);
}
.dd-feature-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: var(--bg2);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 22px;
  margin-bottom: 14px;
  color: var(--p);
}
.dd-feature-card h3 { font-size: 15px; font-weight: 700; margin-bottom: 8px; }
.dd-feature-card p { font-size: 13px; color: var(--t2); line-height: 1.6; }

@media(max-width: 768px) { .dd-ind-hero-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════
   AI SOLUTIONS PAGE
═══════════════════════════════════════════════ */
.dd-ai-hero {
  padding: 60px 0 40px;
  text-align: center;
}
.dd-ai-hero h1 { font-size: clamp(28px, 4vw, 44px); font-weight: 800; margin-bottom: 14px; }
.dd-ai-hero p { color: var(--t2); font-size: 17px; max-width: 580px; margin: 0 auto 28px; }

.dd-ai-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 20px;
  padding: 40px 0 80px;
}
.dd-ai-card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 18px;
  padding: 28px 24px;
  transition: .25s;
  display: flex;
  flex-direction: column;
  gap: 14px;
  position: relative;
  overflow: hidden;
}
.dd-ai-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: var(--grad);
  opacity: 0;
  transition: .3s;
}
.dd-ai-card:hover { transform: translateY(-4px); box-shadow: 0 16px 48px rgba(106,17,203,.15); border-color: var(--p); }
.dd-ai-card-icon {
  width: 52px;
  height: 52px;
  border-radius: 16px;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  color: #fff;
  box-shadow: 0 8px 20px rgba(106,17,203,.25);
}
.dd-ai-card h3 { font-size: 17px; font-weight: 700; }
.dd-ai-card p { font-size: 13px; color: var(--t2); line-height: 1.6; flex: 1; }
.dd-ai-card-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  font-weight: 600;
  color: var(--p);
}

/* ═══════════════════════════════════════════════
   HOMEPAGE HERO
═══════════════════════════════════════════════ */
.dd-home-hero {
  padding: 80px 0 60px;
}
.dd-home-hero-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}
.dd-home-hero h1 { font-size: clamp(32px, 5vw, 56px); font-weight: 900; line-height: 1.1; margin-bottom: 20px; }
.dd-home-hero p { color: var(--t2); font-size: 18px; line-height: 1.7; margin-bottom: 32px; max-width: 520px; }
.dd-hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 32px; }
.dd-hero-trust { display: flex; gap: 20px; flex-wrap: wrap; }
.dd-hero-trust-item { display: flex; align-items: center; gap: 6px; font-size: 13px; color: var(--t3); }
@media(max-width: 768px) { .dd-home-hero-grid { grid-template-columns: 1fr; } }

/* Pain points grid */
.dd-pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 20px;
}
.dd-pain-card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 24px;
}
.dd-pain-card-icon { font-size: 28px; margin-bottom: 12px; }
.dd-pain-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.dd-pain-card p { font-size: 14px; color: var(--t2); }

/* Testimonials */
.dd-testimonials { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 20px; }
.dd-testimonial-card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 16px;
  padding: 24px;
}
.dd-testimonial-stars { color: #ffb800; font-size: 14px; margin-bottom: 12px; }
.dd-testimonial-text { font-size: 14px; line-height: 1.7; color: var(--t2); margin-bottom: 16px; }
.dd-testimonial-author { display: flex; align-items: center; gap: 10px; }
.dd-testimonial-av {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--grad);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-weight: 700;
  font-size: 13px;
  flex-shrink: 0;
}
.dd-testimonial-name { font-size: 14px; font-weight: 600; }
.dd-testimonial-role { font-size: 12px; color: var(--t3); }

/* FAQ */
.dd-faq { max-width: 720px; margin: 0 auto; }
.dd-faq-item {
  border-bottom: 1px solid var(--bd);
  padding: 20px 0;
}
.dd-faq-q {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  cursor: pointer;
  font-weight: 600;
  font-size: 16px;
  color: var(--t1);
}
.dd-faq-q span { flex: 1; }
.dd-faq-icon { transition: .3s; flex-shrink: 0; color: var(--p); }
.dd-faq-item.open .dd-faq-icon { transform: rotate(180deg); }
.dd-faq-a { font-size: 15px; color: var(--t2); line-height: 1.7; max-height: 0; overflow: hidden; transition: max-height .4s ease; }
.dd-faq-item.open .dd-faq-a { max-height: 400px; padding-top: 12px; }

/* Pricing table */
.dd-pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.dd-pricing-card {
  background: var(--card);
  border: 1px solid var(--bd);
  border-radius: 20px;
  padding: 28px;
}
.dd-pricing-card.featured {
  background: var(--grad);
  border: none;
  color: #fff;
}
.dd-pricing-card h3 { font-size: 16px; font-weight: 700; margin-bottom: 8px; }
.dd-pricing-price { font-size: 36px; font-weight: 800; margin: 12px 0; }
.dd-pricing-price sub { font-size: 14px; font-weight: 400; }
.dd-pricing-features { list-style: none; margin: 20px 0; }
.dd-pricing-features li { padding: 8px 0; font-size: 14px; display: flex; align-items: center; gap: 8px; border-bottom: 1px solid rgba(0,0,0,.06); }
.dd-pricing-card.featured .dd-pricing-features li { border-bottom-color: rgba(255,255,255,.15); }

/* ═══════════════════════════════════════════════
   CONTACT / FIND LEADS / TECHNOLOGY PAGES
═══════════════════════════════════════════════ */
.dd-contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; padding: 60px 0 80px; align-items: start; }
@media(max-width: 768px) { .dd-contact-grid { grid-template-columns: 1fr; } }

/* ═══════════════════════════════════════════════
   PAGINATION
═══════════════════════════════════════════════ */
.dd-pagination {
  display: flex;
  justify-content: center;
  gap: 8px;
  padding: 40px 0;
}
.dd-pagination a, .dd-pagination span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  border: 1px solid var(--bd);
  transition: .2s;
}
.dd-pagination a:hover, .dd-pagination .current {
  background: var(--p);
  color: #fff;
  border-color: var(--p);
}

/* ═══════════════════════════════════════════════
   RESPONSIVE
═══════════════════════════════════════════════ */
@media(max-width: 640px) {
  .s { padding: 48px 0; }
  .dd-blog-grid { grid-template-columns: 1fr; }
  .dd-hub-cats { grid-template-columns: 1fr 1fr; }
  .dd-ai-grid { grid-template-columns: 1fr 1fr; }
  .dd-features-grid { grid-template-columns: 1fr; }
  .dd-ps-grid { grid-template-columns: 1fr; }
  .dd-phone { width: 280px; }
  .ft-grid { grid-template-columns: 1fr; }
}
