/* Agenz Foundation V88 — clean AI Tools directory and approachable Journal */

/* AI Tools: readable four-step delivery flow */
body.design-ai-page .generation-flow {
  position: relative;
  overflow: hidden;
  background: #fff;
}

body.design-ai-page .generation-flow::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 90% 6%, rgba(25, 185, 230, .075), transparent 28rem),
    linear-gradient(rgba(40, 111, 242, .035) 1px, transparent 1px),
    linear-gradient(90deg, rgba(40, 111, 242, .035) 1px, transparent 1px);
  background-size: auto, 64px 64px, 64px 64px;
  mask-image: linear-gradient(to bottom, #000, transparent 80%);
}

body.design-ai-page .generation-flow .section-inner {
  position: relative;
  z-index: 1;
}

body.design-ai-page .generation-flow .section-heading {
  padding-bottom: 34px;
  border-bottom: 1px solid rgba(36, 77, 151, .14);
}

body.design-ai-page .generation-flow .flow-cards {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 15px;
  border: 0;
  background: transparent;
}

body.design-ai-page .generation-flow .flow-cards::before {
  content: "";
  position: absolute;
  z-index: 0;
  top: 34px;
  left: 7%;
  right: 7%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(40, 111, 242, .2) 12%, rgba(40, 111, 242, .2) 88%, transparent);
}

body.design-ai-page .generation-flow .flow-cards article {
  position: relative;
  z-index: 1;
  min-width: 0;
  min-height: 265px;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(36, 77, 151, .2);
  border-radius: 20px;
  background: rgba(255, 255, 255, .96);
  box-shadow:
    0 16px 42px rgba(35, 51, 105, .075),
    inset 0 1px 0 rgba(255, 255, 255, .95);
  transition: transform .25s ease, border-color .25s ease, box-shadow .25s ease;
}

body.design-ai-page .generation-flow .flow-cards article::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 3px;
  background: linear-gradient(90deg, #6854e8, #286ff2 58%, #19b9e6);
}

body.design-ai-page .generation-flow .flow-cards article:hover {
  transform: translateY(-4px);
  border-color: rgba(40, 111, 242, .36);
  box-shadow: 0 22px 52px rgba(35, 51, 105, .115);
}

body.design-ai-page .generation-flow .flow-cards span {
  width: fit-content;
  min-width: 48px;
  height: 36px;
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #1f5fd7;
  border: 1px solid rgba(40, 111, 242, .19);
  border-radius: 999px;
  background: #edf4ff;
  font: 800 .68rem Manrope, sans-serif;
  letter-spacing: .04em;
}

body.design-ai-page .generation-flow .flow-cards h3 {
  margin: 54px 0 12px;
  color: #102047;
  font: 800 clamp(1.1rem, 1.6vw, 1.35rem)/1.2 Manrope, sans-serif;
  letter-spacing: -.035em;
}

body.design-ai-page .generation-flow .flow-cards p {
  margin: 0;
  color: #52617d;
  font-size: .78rem;
  line-height: 1.72;
  overflow-wrap: anywhere;
}

/* AI Tools: structured, white directory instead of a dark accordion wall */
body.design-ai-page .design-universe-section {
  position: relative;
  overflow: hidden;
  color: #102047;
  border-top: 1px solid rgba(36, 77, 151, .12);
  border-bottom: 1px solid rgba(36, 77, 151, .12);
  background: #fff !important;
}

body.design-ai-page .design-universe-section::before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 8% 8%, rgba(104, 84, 232, .07), transparent 26rem),
    radial-gradient(circle at 94% 92%, rgba(25, 185, 230, .08), transparent 30rem);
}

body.design-ai-page .design-universe-section .section-inner {
  position: relative;
  z-index: 1;
}

body.design-ai-page .design-universe-heading {
  padding: clamp(26px, 4vw, 42px);
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(280px, .75fr);
  gap: clamp(28px, 5vw, 72px);
  align-items: end;
  border: 1px solid rgba(36, 77, 151, .18);
  border-radius: 26px;
  background: linear-gradient(145deg, #fff, #f5f9ff);
  box-shadow: 0 18px 48px rgba(35, 51, 105, .07);
}

body.design-ai-page .design-universe-heading > p {
  margin: 0;
  padding-left: 28px;
  color: #52617d;
  border-left: 2px solid rgba(40, 111, 242, .24);
  font-size: .9rem;
  line-height: 1.75;
}

body.design-ai-page .design-universe-section .category-accordion {
  margin-top: 24px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

body.design-ai-page .design-universe-section .category-item {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(36, 77, 151, .2);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 10px 30px rgba(35, 51, 105, .055);
  transition: border-color .24s ease, box-shadow .24s ease, transform .24s ease;
}

body.design-ai-page .design-universe-section .category-item:last-child {
  border-bottom: 1px solid rgba(36, 77, 151, .2);
}

body.design-ai-page .design-universe-section .category-item:hover,
body.design-ai-page .design-universe-section .category-item.open {
  border-color: rgba(40, 111, 242, .38);
  box-shadow: 0 16px 38px rgba(35, 51, 105, .09);
}

body.design-ai-page .design-universe-section .category-item > button {
  min-height: 84px;
  padding: 17px 18px;
  grid-template-columns: 42px minmax(0, 1fr) auto 36px;
  gap: 13px;
  color: #102047;
  border: 0;
  background: transparent;
}

body.design-ai-page .design-universe-section .category-item > button:focus-visible {
  outline: 3px solid rgba(40, 111, 242, .18);
  outline-offset: -3px;
}

body.design-ai-page .design-universe-section .category-item > button span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #1f5fd7;
  border: 1px solid rgba(40, 111, 242, .17);
  border-radius: 12px;
  background: #edf4ff;
  font: 800 .62rem Manrope, sans-serif;
}

body.design-ai-page .design-universe-section .category-item > button strong {
  min-width: 0;
  color: #102047;
  font: 800 clamp(.96rem, 1.25vw, 1.12rem)/1.25 Manrope, sans-serif;
  letter-spacing: -.025em;
}

body.design-ai-page .design-universe-section .category-item > button small {
  padding: 7px 9px;
  color: #6a7892;
  border: 1px solid rgba(36, 77, 151, .13);
  border-radius: 999px;
  background: #f8faff;
  font-size: .58rem;
  font-weight: 800;
  white-space: nowrap;
}

body.design-ai-page .design-universe-section .category-item > button i {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  color: #286ff2;
  border: 1px solid rgba(40, 111, 242, .18);
  border-radius: 50%;
  background: #fff;
  font-size: 1rem;
  line-height: 1;
}

body.design-ai-page .design-universe-section .category-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  max-height: 0;
  padding: 0 18px;
  opacity: 0;
  overflow: hidden;
  border-top: 1px solid transparent;
  transition: max-height .38s ease, padding .3s ease, opacity .25s ease, border-color .25s ease;
}

body.design-ai-page .design-universe-section .category-item.open .category-content {
  max-height: 760px;
  padding: 16px 18px 18px;
  opacity: 1;
  border-top-color: rgba(36, 77, 151, .12);
}

body.design-ai-page .design-universe-section .category-content span {
  min-width: 0;
  padding: 10px 11px;
  color: #52617d;
  border: 1px solid rgba(36, 77, 151, .14);
  border-radius: 10px;
  background: #f8faff;
  font-size: .66rem;
  font-weight: 700;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

body.design-ai-page .format-guide-wrap {
  margin-top: 24px;
  padding: clamp(24px, 3vw, 36px);
  display: grid;
  grid-template-columns: minmax(250px, .65fr) minmax(0, 1.5fr);
  gap: clamp(26px, 4vw, 54px);
  border: 1px solid rgba(36, 77, 151, .18);
  border-radius: 24px;
  background: #f8faff;
}

body.design-ai-page .format-guide-heading h3 {
  margin: 16px 0 10px;
  color: #102047;
  font: 800 clamp(1.25rem, 2.2vw, 1.8rem)/1.15 Manrope, sans-serif;
  letter-spacing: -.045em;
}

body.design-ai-page .format-guide-heading > p:last-child {
  margin: 0;
  color: #52617d;
  font-size: .78rem;
  line-height: 1.7;
}

body.design-ai-page .format-guide-wrap .format-guide {
  margin: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  background: transparent;
}

body.design-ai-page .format-guide-wrap .format-guide article {
  min-width: 0;
  padding: 17px;
  border: 1px solid rgba(36, 77, 151, .16);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 7px 20px rgba(35, 51, 105, .045);
}

body.design-ai-page .format-guide-wrap .format-guide strong {
  color: #286ff2;
  font-size: .77rem;
}

body.design-ai-page .format-guide-wrap .format-guide p {
  margin: 7px 0 0;
  color: #52617d;
  font-size: .68rem;
  line-height: 1.5;
}

/* Insights: white editorial index and clearer value language */
body.insights-page .insights-index-section {
  position: relative;
  overflow: hidden;
  color: #102047;
  background: #fff !important;
}

body.insights-page .insights-index-section > .section-inner {
  position: relative;
  z-index: 1;
}

body.insights-page .insights-index-section .insights-discovery {
  border-color: rgba(36, 77, 151, .2);
  background: #fff;
  box-shadow: 0 14px 38px rgba(35, 51, 105, .07);
}

body.insights-page .insights-index-section .showcase-rail-controls {
  margin-top: 34px;
  padding-top: 26px;
  border-top: 1px solid rgba(36, 77, 151, .14);
}

body.insights-page .insights-index-section .showcase-rail-controls > span {
  color: #52617d;
  font-size: .61rem;
  letter-spacing: .11em;
}

body.insights-page .insights-index-section .article-grid > .article-card {
  border-color: rgba(36, 77, 151, .2);
  box-shadow: 0 16px 42px rgba(35, 51, 105, .075);
}

body.insights-page .showcase-metrics span {
  color: #60708c;
  background: #fff;
}

body.insights-page .showcase-metrics b {
  color: #175fd8;
  overflow-wrap: anywhere;
}

@media (max-width: 1020px) {
  body.design-ai-page .generation-flow .flow-cards {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body.design-ai-page .generation-flow .flow-cards::before {
    display: none;
  }

  body.design-ai-page .design-universe-heading,
  body.design-ai-page .format-guide-wrap {
    grid-template-columns: 1fr;
  }

  body.design-ai-page .design-universe-heading > p {
    padding: 22px 0 0;
    border-top: 1px solid rgba(36, 77, 151, .14);
    border-left: 0;
  }
}

@media (max-width: 760px) {
  body.design-ai-page .generation-flow .section-heading {
    padding-bottom: 24px;
  }

  body.design-ai-page .generation-flow .flow-cards {
    grid-template-columns: 1fr;
    gap: 11px;
  }

  body.design-ai-page .generation-flow .flow-cards article {
    min-height: 0;
    padding: 19px;
    border-bottom: 1px solid rgba(36, 77, 151, .2);
  }

  body.design-ai-page .generation-flow .flow-cards h3 {
    margin-top: 28px;
  }

  body.design-ai-page .design-universe-heading {
    padding: 23px;
    border-radius: 20px;
  }

  body.design-ai-page .design-universe-section .category-accordion {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.design-ai-page .design-universe-section .category-item > button {
    min-height: 76px;
    padding: 14px;
    grid-template-columns: 38px minmax(0, 1fr) 34px;
    gap: 11px;
  }

  body.design-ai-page .design-universe-section .category-item > button small {
    display: none;
  }

  body.design-ai-page .design-universe-section .category-content {
    grid-template-columns: 1fr;
    padding-inline: 14px;
  }

  body.design-ai-page .design-universe-section .category-item.open .category-content {
    padding: 14px;
  }

  body.design-ai-page .format-guide-wrap {
    padding: 22px;
    border-radius: 20px;
  }

  body.design-ai-page .format-guide-wrap .format-guide {
    grid-template-columns: 1fr;
  }

  body.insights-page .insights-index-section .showcase-rail-controls {
    align-items: flex-start;
  }

  body.insights-page .insights-index-section .showcase-rail-controls > span {
    max-width: calc(100% - 100px);
    font-size: .49rem;
    line-height: 1.55;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.design-ai-page .generation-flow .flow-cards article,
  body.design-ai-page .design-universe-section .category-item,
  body.design-ai-page .design-universe-section .category-content {
    transition: none;
  }
}
