/**
 * Template 6 home sections — shared by live site canvas and Page Builder editor.
 * Keep selectors unscoped so GrapesJS canvas and .t6-home both pick them up.
 */
:root {
  --cosmos-primary: #5c85ee;
  --cosmos-primary-dark: #4a73d4;
  --cosmos-ink: #1a1a1a;
  --cosmos-muted: #666666;
}

.t6-home-stats {
  position: relative;
  z-index: 12;
  margin-top: -72px;
  padding: 0 20px 8px;
}
.t6-home-stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.25rem;
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f8ff 100%);
  border: 1px solid rgba(92, 133, 238, 0.14);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
}
.t6-home-stat {
  position: relative;
  padding: 1.15rem 1rem 1.2rem;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  text-align: center;
  transition: transform .25s ease, box-shadow .25s ease;
}
.t6-home-stat:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(92, 133, 238, 0.14);
}
.t6-home-stat-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  margin-bottom: 0.65rem;
  border-radius: 14px;
  background: rgba(92, 133, 238, 0.12);
  color: var(--cosmos-primary);
  font-size: 1.15rem;
}
.t6-home-stat-value {
  margin: 0;
  color: var(--cosmos-ink);
  font-size: clamp(1.65rem, 3vw, 2.15rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.1;
}
.t6-home-stat-label {
  margin: 0.35rem 0 0;
  color: var(--cosmos-ink);
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.25;
}
.t6-home-stat-hint {
  margin: 0.35rem 0 0;
  color: var(--cosmos-muted);
  font-size: 0.8rem;
  line-height: 1.4;
}

.t6-home-intro {
  position: relative;
  padding: 20px 20px 12px;
}
.t6-home-intro-shell {
  padding: clamp(1.75rem, 4vw, 2.75rem);
  border-radius: 28px;
  background: linear-gradient(165deg, #ffffff 0%, #f3f6fd 55%, #eef3ff 100%);
  border: 1px solid rgba(92, 133, 238, 0.12);
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.1);
}
.t6-home-intro-title {
  margin: 0 0 1rem;
  color: var(--cosmos-ink);
  font-size: clamp(1.75rem, 3.4vw, 2.65rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.15;
}
.t6-home-intro-lead {
  color: var(--cosmos-primary-dark);
  font-size: clamp(1rem, 1.6vw, 1.15rem);
  font-weight: 600;
  line-height: 1.55;
  max-width: 28rem;
}
.t6-home-intro-lead p { margin: 0; }
.t6-home-intro-body {
  color: var(--cosmos-muted);
  font-size: 1.02rem;
  line-height: 1.75;
}
.t6-home-intro-body p { margin: 0 0 1rem; }
.t6-home-intro-body p:last-child { margin-bottom: 0; }
.t6-home-intro-media {
  margin: 1.25rem 0 0;
  border-radius: 18px;
  overflow: hidden;
  background: #e8edfb;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.1);
}
.t6-home-intro-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(420px, 55vh);
  object-fit: contain;
  object-position: center center;
  background: #0f172a;
}

.t6-home-partners {
  padding: 12px 20px 32px;
}
.t6-home-partners-head {
  max-width: 40rem;
  margin: 0 auto 1.75rem;
}
.t6-home-partners-title {
  margin: 0 0 0.65rem;
  color: var(--cosmos-ink);
  font-size: clamp(1.55rem, 3vw, 2.1rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.t6-home-partners-sub {
  margin: 0;
  color: var(--cosmos-muted);
  font-size: 1rem;
  line-height: 1.55;
}
.t6-home-partners-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}
.t6-home-partner {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  padding: 1.25rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(92, 133, 238, 0.12);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
  color: inherit;
  text-decoration: none;
}
.t6-home-partner-logo {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: linear-gradient(145deg, #e8edfb 0%, #dce6fb 100%);
  color: var(--cosmos-primary-dark);
  font-size: 0.85rem;
  font-weight: 800;
  letter-spacing: 0.02em;
  overflow: hidden;
}
.t6-home-partner-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 8px;
  background: #fff;
}
.t6-home-partner-name {
  margin: 0;
  color: var(--cosmos-ink);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.3;
}
.t6-home-partner-role {
  margin: 0.2rem 0 0;
  color: var(--cosmos-primary);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}
.t6-home-partner-desc {
  margin: 0.45rem 0 0;
  color: var(--cosmos-muted);
  font-size: 0.9rem;
  line-height: 1.5;
}

.t6-home-intro--tight {
  padding-top: 8px;
}
.t6-home-intro-media--cover img {
  object-fit: cover;
  background: #e8edfb;
}
.t6-home-intro-media--contain img {
  object-fit: contain;
  background: #fff;
  max-height: min(280px, 40vh);
}
.t6-home-subsection-title {
  margin: 1.25rem 0 0.75rem;
  color: var(--cosmos-ink);
  font-size: 1.05rem;
  font-weight: 750;
}
.t6-home-list {
  margin: 0;
  padding-left: 1.15rem;
  color: var(--cosmos-muted);
  font-size: 1rem;
  line-height: 1.65;
}
.t6-home-list li + li {
  margin-top: 0.45rem;
}
.t6-home-kicker {
  margin: 0 0 0.5rem;
  color: var(--cosmos-primary);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}
.t6-home-kicker--on-dark {
  color: rgba(255, 255, 255, 0.78);
}

.t6-home-split {
  padding: 8px 20px 12px;
}
.t6-home-split-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: clamp(1.25rem, 3vw, 2rem);
  align-items: center;
  padding: clamp(1.25rem, 3vw, 2rem);
  border-radius: 28px;
  background: #fff;
  border: 1px solid rgba(92, 133, 238, 0.12);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}
.t6-home-split-media {
  margin: 0;
  border-radius: 18px;
  overflow: hidden;
  background: #e8edfb;
}
.t6-home-split-media img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(420px, 50vh);
  object-fit: cover;
}
.t6-home-split-title {
  margin: 0 0 1rem;
  color: var(--cosmos-ink);
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.2;
}

.t6-home-prose-block {
  padding: 8px 20px 12px;
}
.t6-home-prose-shell {
  max-width: 52rem;
  margin: 0 auto;
  padding: clamp(1.5rem, 3.5vw, 2.25rem);
  border-radius: 24px;
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
  border: 1px solid rgba(15, 23, 42, 0.06);
  text-align: left;
}
.t6-home-prose-block--accent .t6-home-prose-shell {
  background: linear-gradient(165deg, #f3f6fd 0%, #eef3ff 100%);
  border-color: rgba(92, 133, 238, 0.14);
}
.t6-home-prose-title {
  margin: 0 0 1rem;
  color: var(--cosmos-ink);
  font-size: clamp(1.35rem, 2.6vw, 1.85rem);
  font-weight: 800;
  letter-spacing: -0.02em;
  line-height: 1.25;
}
.t6-home-prose-title--on-dark {
  color: #fff;
}

.t6-home-duo {
  padding: 8px 20px 12px;
}
.t6-home-duo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}
.t6-home-duo-card {
  display: flex;
  flex-direction: column;
  height: 100%;
  padding: clamp(1.35rem, 3vw, 1.85rem);
  border-radius: 24px;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.08);
}
.t6-home-duo-card--challenge {
  background: linear-gradient(180deg, #ffffff 0%, #f7f9fc 100%);
}
.t6-home-duo-card--solution {
  background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 55%, #4a73d4 100%);
  border-color: transparent;
  color: #fff;
}
.t6-home-intro-body--on-dark,
.t6-home-intro-body--on-dark p {
  color: rgba(255, 255, 255, 0.92);
}
.t6-home-intro-body--on-dark strong {
  color: #fff;
}

.t6-home-features-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}
.t6-home-feature {
  padding: 1.35rem 1.25rem;
  border-radius: 20px;
  background: #fff;
  border: 1px solid rgba(92, 133, 238, 0.12);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.06);
}
.t6-home-feature-title {
  margin: 0 0 0.55rem;
  color: var(--cosmos-ink);
  font-size: 1.05rem;
  font-weight: 750;
  line-height: 1.3;
}
.t6-home-feature-desc {
  margin: 0;
  color: var(--cosmos-muted);
  font-size: 0.95rem;
  line-height: 1.55;
}

.t6-home-cta {
  padding: 8px 20px 32px;
}
.t6-home-cta-shell {
  padding: clamp(1.75rem, 4vw, 2.5rem);
  border-radius: 28px;
  background: linear-gradient(145deg, #1e3a8a 0%, #2563eb 55%, #4a73d4 100%);
  color: #fff;
  box-shadow: 0 22px 48px rgba(37, 99, 235, 0.28);
}
.t6-home-cta-title {
  margin: 0 0 1rem;
  color: #fff;
  font-size: clamp(1.45rem, 2.8vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.02em;
}
.t6-home-list--on-dark {
  color: rgba(255, 255, 255, 0.92);
}
.t6-home-cta-links {
  display: grid;
  gap: 0.75rem;
}
.t6-home-cta-link {
  display: block;
  padding: 0.85rem 1rem;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  font-weight: 600;
  font-size: 0.95rem;
  text-decoration: none;
  transition: background .2s ease, transform .2s ease;
}
.t6-home-cta-link:hover {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
  transform: translateY(-1px);
}
.t6-home-cta-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 0.35rem;
  padding: 0.95rem 1.25rem;
  border-radius: 14px;
  background: #fff;
  color: #1e3a8a;
  font-weight: 800;
  font-size: 0.98rem;
  text-decoration: none;
  transition: transform .2s ease, box-shadow .2s ease;
}
.t6-home-cta-button:hover {
  color: #1e3a8a;
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

/* Nested under About/Contact static cards: shells must match hero width
   (avoid stacked t2-static-card + section + container-xl gutters). */
.t2-static-card :is(.t6-home-intro, .t6-home-intro--tight, .t6-home-split, .t6-home-prose-block, .t6-home-duo, .t6-home-partners, .t6-home-cta, .t6-home-stats),
.t6-about-builder-card :is(.t6-home-intro, .t6-home-intro--tight, .t6-home-split, .t6-home-prose-block, .t6-home-duo, .t6-home-partners, .t6-home-cta, .t6-home-stats),
.t6-contact-builder-card :is(.t6-home-intro, .t6-home-intro--tight, .t6-home-split, .t6-home-prose-block, .t6-home-duo, .t6-home-partners, .t6-home-cta, .t6-home-stats) {
  padding-left: 0;
  padding-right: 0;
}
.t2-static-card :is(.t6-home-intro, .t6-home-split, .t6-home-prose-block, .t6-home-duo, .t6-home-partners, .t6-home-cta, .t6-home-stats) > .container-xl,
.t6-about-builder-card :is(.t6-home-intro, .t6-home-split, .t6-home-prose-block, .t6-home-duo, .t6-home-partners, .t6-home-cta, .t6-home-stats) > .container-xl,
.t6-contact-builder-card :is(.t6-home-intro, .t6-home-split, .t6-home-prose-block, .t6-home-duo, .t6-home-partners, .t6-home-cta, .t6-home-stats) > .container-xl {
  max-width: none;
  width: 100%;
  padding-left: 0;
  padding-right: 0;
}

@media (max-width: 991.98px) {
  .t6-home-stats-grid,
  .t6-home-partners-grid,
  .t6-home-features-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .t6-home-duo-grid,
  .t6-home-split-shell {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 575.98px) {
  .t6-home-stats {
    margin-top: -36px;
    padding: 0 16px 4px;
  }
  .t6-home-stats-grid,
  .t6-home-partners-grid,
  .t6-home-features-grid,
  .t6-home-duo-grid {
    grid-template-columns: 1fr;
  }
  .t6-home-intro,
  .t6-home-split,
  .t6-home-prose-block,
  .t6-home-duo {
    padding: 8px 12px 4px;
  }
  .t2-static-card :is(.t6-home-intro, .t6-home-split, .t6-home-prose-block, .t6-home-duo, .t6-home-partners, .t6-home-cta, .t6-home-stats),
  .t6-about-builder-card :is(.t6-home-intro, .t6-home-split, .t6-home-prose-block, .t6-home-duo, .t6-home-partners, .t6-home-cta, .t6-home-stats),
  .t6-contact-builder-card :is(.t6-home-intro, .t6-home-split, .t6-home-prose-block, .t6-home-duo, .t6-home-partners, .t6-home-cta, .t6-home-stats) {
    padding-left: 0;
    padding-right: 0;
  }
  .t6-home-intro-shell,
  .t6-home-split-shell,
  .t6-home-prose-shell,
  .t6-home-duo-card,
  .t6-home-cta-shell {
    padding: 1.25rem 1rem;
    border-radius: 20px;
  }
  .t6-home-intro-media,
  .t6-home-split-media {
    margin-bottom: 0.25rem;
  }
  .t6-home-intro-media img,
  .t6-home-split-media img {
    max-height: min(240px, 42vh);
  }
  .t6-home-partners,
  .t6-home-cta {
    padding: 8px 12px 24px;
  }
  .t2-static-card :is(.t6-home-partners, .t6-home-cta),
  .t6-about-builder-card :is(.t6-home-partners, .t6-home-cta),
  .t6-contact-builder-card :is(.t6-home-partners, .t6-home-cta) {
    padding-left: 0;
    padding-right: 0;
  }
  .t6-home-intro-title,
  .t6-home-split-title,
  .t6-home-prose-title,
  .t6-home-cta-title {
    font-size: clamp(1.35rem, 5.5vw, 1.75rem);
  }
  .t6-home-intro-body {
    font-size: 0.98rem;
    line-height: 1.65;
  }
}
