/* Shared content-width shell used by feature.php and homepage showcase rows */
.th-feature-shell {
  border-left: 1px dashed #e4e5e1;
  border-right: 1px dashed #e4e5e1;
  margin: 0 auto;
  max-width: var(--landing-content-width);
}

/* Same separator as feature.php showcase rows */
.th-feature-separator {
  border-bottom: 1px solid #e6e8ec;
  border-left: 1px dashed #e6e8ec;
  border-right: 1px dashed #e6e8ec;
  height: 31px;
  margin: 0 auto;
  max-width: var(--landing-content-width);
  width: 100%;
}

.th-feature-separator--between {
  margin-top: 0;
  min-height: 70px;
}

@media (max-width: 767px) {
  .th-feature-separator,
  .th-feature-separator--between {
    height: 30px;
    margin-top: 0;
    min-height: 30px;
  }
}

/* Shared showcase row chrome (same as feature.php .th-showcase-row) */
.th-showcase-row {
  border-bottom: 1px solid #e6e8ec;
}

.th-showcase-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(280px, 0.85fr);
  min-height: 440px;
  position: relative;
}

.th-showcase-grid::before {
  border-left: 1px solid #e6e8ec;
  bottom: 0;
  content: "";
  left: 57.5%;
  pointer-events: none;
  position: absolute;
  top: 0;
  z-index: 1;
}

.th-showcase-row.is-reversed .th-showcase-grid {
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
}

.th-showcase-row.is-reversed .th-showcase-grid::before {
  left: 42.5%;
}

.th-showcase-copy {
  align-self: center;
  padding: 3rem 2rem;
}

.th-showcase-copy h2 {
  color: #111827;
  font-family: 'Inter', sans-serif;
  font-size: clamp(1.75rem, 2.6vw, 2.35rem);
  font-weight: 100;
  letter-spacing: -0.03em;
  line-height: 1.05;
  margin: 0 0 0.85rem;
  max-width: 420px;
}

.th-showcase-copy p {
  color: #667085;
  font-size: 0.94rem;
  line-height: 1.58;
  margin: 0 0 1.2rem;
  max-width: 430px;
}

.th-showcase-eyebrow {
  color: #9aa3b2;
  display: block;
  font-size: 0.62rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  margin-bottom: 0.65rem;
  text-transform: uppercase;
}

.th-showcase-visual {
  align-items: center;
  background:
    linear-gradient(120deg, rgba(255,255,255,0.16), rgba(255,255,255,0)),
    linear-gradient(180deg, #eef7fb 0%, #f7f9f5 52%, #f1efe1 100%);
  background-position: center, center;
  background-repeat: no-repeat, no-repeat;
  background-size: 100% 100%, 100% 100%;
  border: 1px solid #e0e5ec;
  border-radius: 8px;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  margin: 10px;
  min-height: 420px;
  overflow: hidden;
  padding: 2rem;
  position: relative;
}

.th-showcase-visual::before {
  background-image: radial-gradient(circle at 24% 20%, rgba(255,255,255,0.2) 0 0.65px, transparent 1px);
  background-size: 5px 5px;
  content: "";
  inset: 0;
  mask-image: linear-gradient(180deg, transparent 0%, transparent 50%, #000 100%);
  -webkit-mask-image: linear-gradient(180deg, transparent 0%, transparent 50%, #000 100%);
  pointer-events: none;
  position: absolute;
  z-index: 1;
}

.th-showcase-visual::after {
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  content: "";
  inset: 0;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
  z-index: 0;
}

.th-showcase-row.is-reversed .th-showcase-visual {
  border: 1px solid #e0e5ec;
  margin: 10px;
  order: 2;
}

.th-showcase-card {
  background: rgba(255,255,255,0.95);
  border: 1px solid rgba(255,255,255,0.88);
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(29, 43, 68, 0.18);
  max-width: 360px;
  padding: 1rem;
  position: relative;
  width: min(86%, 360px);
  z-index: 2;
}

@media (max-width: 900px) {
  .th-showcase-grid,
  .th-showcase-row.is-reversed .th-showcase-grid {
    grid-template-columns: 1fr;
    min-height: 0;
  }

  .th-showcase-grid::before,
  .th-showcase-row.is-reversed .th-showcase-grid::before {
    display: none;
  }

  .th-showcase-visual,
  .th-showcase-row.is-reversed .th-showcase-visual,
  .th-showcase-row .th-showcase-visual {
    background: #fff;
    background-image: none;
    border: 0;
    margin: 10px;
    min-height: 0;
    order: initial;
    padding: 2px;
  }

  .th-showcase-visual::before,
  .th-showcase-visual::after {
    background-image: none;
    display: none;
  }

  .th-showcase-visual .th-showcase-card {
    max-width: none;
    padding: 5px;
    width: 100%;
  }
}

/* Shared illustration wrapper used by feature.php heroes and home feature stack */

.th-feature-visual {
  align-items: center;
  background: transparent;
  background-image: none;
  border: 0;
  box-sizing: border-box;
  display: flex;
  justify-content: center;
  margin: 10px;
  min-height: 430px;
  overflow: hidden;
  padding: 0;
  position: relative;
  width: auto;
  max-width: 100%;
}

.th-feature-visual::before,
.th-feature-visual::after {
  content: none;
  display: none;
}

.th-feature-visual > * {
  max-width: 100%;
  min-width: 0;
}

/* Shared mobile/tablet rules for hero illustrations (home + feature.php) */
@media (max-width: 980px) {
  .th-feature-visual {
    height: auto;
    margin: 0;
    max-width: 100%;
    min-height: 0;
    overflow: visible;
    padding: 0.5rem 0.15rem;
    width: 100%;
  }

  .th-feature-hero-card,
  .th-feature-hero-card.th-ai-writing-hero-card,
  .th-feature-hero-card.th-prompt-tracking-hero-card,
  .th-feature-hero-card.th-community-agent-hero-card,
  .th-feature-hero-card.th-cd-hero-card,
  .th-feature-hero-card.th-alm-hero-card,
  .th-feature-hero-card.th-cat-hero-card {
    box-sizing: border-box;
    max-width: 100% !important;
    width: 100% !important;
  }

  .th-ai-writing-hero,
  .th-prompt-tracking-hero,
  .th-cd-hero,
  .th-alm-hero,
  .th-rc-hero-feed {
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .th-ai-writing-flow {
    display: none;
  }

  .th-ai-writing-results {
    gap: 0.62rem;
    grid-template-columns: 1fr;
  }

  .th-ai-writing-result-card {
    min-height: 0;
    min-width: 0;
    width: 100%;
  }

  .th-rc-hero-row,
  .hf-visuals .th-rc-hero-row {
    animation: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    grid-template-columns: none;
    min-height: 0;
    opacity: 1;
    transform: none;
  }

  .th-rc-hero-divider,
  .th-rc-hero-chevron,
  .hf-visuals .th-rc-hero-divider,
  .hf-visuals .th-rc-hero-chevron {
    display: none;
  }

  .th-rc-hero-post,
  .th-rc-hero-suggestion,
  .hf-visuals .th-rc-hero-post,
  .hf-visuals .th-rc-hero-suggestion {
    min-width: 0;
    width: 100%;
  }

  .th-rc-hero-post-title,
  .hf-visuals .th-rc-hero-post-title {
    overflow-wrap: anywhere;
    word-break: break-word;
  }

  .th-rc-hero-suggestion,
  .hf-visuals .th-rc-hero-suggestion {
    animation: none;
    min-height: 0;
    opacity: 1;
    padding-right: 0;
    transform: none;
  }

  .th-rc-hero-suggestion-text,
  .hf-visuals .th-rc-hero-suggestion-text {
    height: auto;
    min-height: 0;
    overflow: visible;
  }

  .th-pt-chat {
    max-width: 100%;
    width: 100%;
  }

  .th-pt-chat-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .th-pt-chat-tabs {
    max-width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .th-pt-chat-tab {
    flex: 0 0 auto;
  }

  .th-alm-hero {
    align-items: center;
    justify-content: center;
  }

  .th-alm-widget {
    max-width: min(340px, 100%);
    min-height: 0;
    width: 100%;
  }
}

@media (max-width: 640px) {
  .th-feature-visual {
    margin: 0;
    padding: 0.25rem 0;
  }

  .th-ai-writing-result-card {
    min-height: 0;
    padding: 0.72rem;
  }

  .th-ai-writing-result-badge {
    margin-top: 0.85rem;
  }

  .th-rc-hero-row {
    padding: 0.75rem 0.7rem;
  }

  .th-rc-hero-post-title {
    font-size: 0.78rem;
  }

  .th-rc-hero-suggestion-text {
    font-size: 0.72rem;
    line-height: 1.45;
  }

  .th-pt-chat-body {
    gap: 0.75rem;
    padding: 0.8rem;
  }

  .th-pt-user-bubble,
  .th-pt-ai-bubble {
    font-size: 0.78rem;
  }

  .th-pt-chat-tab {
    font-size: 0.58rem;
    padding: 0.36rem 0.42rem 0.5rem;
  }

  .th-cd-hero-card {
    padding: 12px;
  }

  .th-alm-widget {
    max-width: min(320px, 100%);
    min-height: 360px;
  }

  .th-alm-widget-body {
    max-height: 240px;
    min-height: 200px;
  }
}
