.prose {
  max-width: 65ch;
  color: #374151;
}

.prose h2 {
  font-size: 2em;
  font-weight: 700;
  margin-top: 2em;
  margin-bottom: 1em;
  color: #1f2937;
}

.prose h3 {
  font-size: 1.5em;
  font-weight: 600;
  margin-top: 1.5em;
  margin-bottom: 0.75em;
  color: #1f2937;
}

.prose p {
  margin-bottom: 1.25em;
  line-height: 1.75;
}

.prose ul, .prose ol {
  margin-top: 1.25em;
  margin-bottom: 1.25em;
  padding-left: 1.5em;
}

.prose li {
  margin-top: 0.5em;
  margin-bottom: 0.5em;
}

.prose a {
  color: #2563eb;
  text-decoration: underline;
  font-weight: 500;
}

.prose a:hover {
  color: #1d4ed8;
}

.prose strong {
  font-weight: 600;
  color: #111827;
}

.prose code {
  background-color: #f3f4f6;
  padding: 0.2em 0.4em;
  border-radius: 0.25rem;
  font-size: 0.875em;
}

.prose blockquote {
  border-left: 4px solid #2563eb;
  padding-left: 1em;
  font-style: italic;
  color: #4b5563;
}

/* Prevent horizontal scroll */
body {
  overflow-x: hidden;
}

/* ========================================
   Use Cases Listing Page
   ======================================== */
.use-cases-listing {
  overflow-x: clip;
}

/* Hero Section */
.use-cases-hero {
  position: relative;
  padding: var(--spacing-3xl) 0;
  background: linear-gradient(180deg, var(--color-background) 0%, var(--color-background-cream) 100%);
  overflow: hidden;
}

.use-cases-hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='80' height='80' viewBox='0 0 80 80' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M40 5L70 22.5V57.5L40 75L10 57.5V22.5L40 5Z' fill='none' stroke='%23fad638' stroke-width='0.5' opacity='0.12'/%3E%3C/svg%3E");
  background-size: 60px 60px;
  pointer-events: none;
}

.use-cases-hero .pattern-left,
.use-cases-hero .pattern-right {
  position: absolute;
  width: 350px;
  height: auto;
  opacity: 0.5;
  pointer-events: none;
  z-index: 0;
}

.use-cases-hero .pattern-left {
  left: -80px;
  top: 50%;
  transform: translateY(-50%);
}

.use-cases-hero .pattern-right {
  right: -80px;
  top: 50%;
  transform: translateY(-50%);
}

.use-cases-hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 700px;
  margin: 0 auto;
}

/* Peeking Bee in Grid */
.grid-peeking-bee {
  position: absolute;
  top: 110px;
  left: calc(50% - 706px);
  z-index: 10;
  pointer-events: none;
}

.grid-peeking-bee img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.15));
}

/* Happy Bee - bottom right */
.grid-happy-bee {
  position: absolute;
  bottom: 80px;
  right: calc(50% - 706px);
  z-index: 10;
  pointer-events: none;
}

.grid-happy-bee img {
  width: 180px;
  height: 180px;
  object-fit: contain;
  filter: drop-shadow(0 8px 25px rgba(0, 0, 0, 0.15));
}

.use-cases-hero-title {
  font-size: var(--font-size-5xl);
  font-weight: 700;
  color: var(--color-text-primary);
  margin: 0 0 var(--spacing-md);
}

.use-cases-hero-subtitle {
  font-size: var(--font-size-lg);
  color: var(--color-text-muted);
  margin: 0 0 var(--spacing-xl);
  line-height: 1.6;
}

/* Grid Section */
.use-cases-grid-section {
  padding: var(--spacing-3xl) 0;
  padding-top: 120px;
  background-color: var(--color-background);
  position: relative;
  overflow: visible;
}

.use-cases-grid-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 200px;
  background: linear-gradient(180deg, var(--color-background-cream) 0%, var(--color-background) 100%);
  pointer-events: none;
}

.use-cases-grid {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--spacing-xl);
}

/* Card Link Wrapper */
.use-case-card-link {
  text-decoration: none;
  display: block;
}

.use-case-card-link:hover {
  text-decoration: none;
}

/* List Card */
.use-case-list-card {
  position: relative;
  background: var(--color-background);
  border: 1px solid var(--color-border-light);
  border-radius: var(--radius-xl);
  padding: var(--spacing-xl);
  transition: all 0.3s ease;
  overflow: hidden;
}

.use-case-list-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 5L52.98 17.5V42.5L30 55L7.02 42.5V17.5L30 5Z' fill='none' stroke='%23fad638' stroke-width='0.3' opacity='0.08'/%3E%3C/svg%3E");
  background-size: 40px 40px;
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}

.use-case-card-link:hover .use-case-list-card {
  border-color: #fad638;
  box-shadow: 0 8px 30px rgba(250, 214, 56, 0.2);
  transform: translateY(-4px);
}

.use-case-card-link:hover .use-case-list-card::before {
  opacity: 1;
}

.card-hexagon-icon {
  width: 48px;
  height: 48px;
  margin-bottom: var(--spacing-md);
  color: #fad638;
  transition: transform 0.3s ease;
}

.use-case-card-link:hover .card-hexagon-icon {
  transform: scale(1.1) rotate(10deg);
}

.card-hexagon-icon svg {
  width: 100%;
  height: 100%;
}

.card-title {
  font-size: var(--font-size-xl);
  font-weight: 600;
  color: var(--color-text-primary);
  margin: 0 0 var(--spacing-sm);
  line-height: 1.3;
}

.card-painpoint {
  font-size: var(--font-size-sm);
  color: var(--color-text-muted);
  margin: 0 0 var(--spacing-lg);
  line-height: 1.6;
}

.card-link-text {
  display: inline-flex;
  align-items: center;
  gap: var(--spacing-xs);
  font-size: var(--font-size-sm);
  font-weight: 600;
  color: #d4a800;
  transition: gap 0.2s ease;
}

.use-case-card-link:hover .card-link-text {
  gap: var(--spacing-sm);
}

.card-link-text svg {
  width: 16px;
  height: 16px;
}

/* Responsive */
@media (max-width: 1280px) {
  .grid-peeking-bee {
    left: 20px;
  }

  .grid-happy-bee {
    right: 20px;
  }
}

@media (max-width: 1024px) {
  .grid-peeking-bee {
    left: 10px;
    top: 50px;
  }

  .grid-peeking-bee img {
    width: 120px;
    height: 120px;
  }

  .grid-happy-bee {
    right: 10px;
    bottom: 60px;
  }

  .grid-happy-bee img {
    width: 120px;
    height: 120px;
  }
}

@media (max-width: 768px) {
  .use-cases-hero .pattern-left,
  .use-cases-hero .pattern-right {
    display: none;
  }

  .use-cases-hero-title {
    font-size: var(--font-size-3xl);
  }

  .grid-peeking-bee,
  .grid-happy-bee {
    display: none;
  }

  .use-cases-grid {
    grid-template-columns: 1fr;
  }
}

.use-case-page {
  overflow-x: clip;
}

/* Subtle yellow glow directly behind the card */
.use-case-hero .container {
  position: relative;
}

.use-case-hero .container::before {
  content: '';
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 140%;
  height: 110%;
  background: radial-gradient(ellipse at center, rgba(240, 157, 23, 0.15) 0%, rgba(245, 166, 35, 0.06) 40%, transparent 70%);
  pointer-events: none;
  z-index: 0;
}

/* Make sections transparent so glow shows through */
.use-case-header {
  background-color: transparent;
}

.article-section {
  background-color: transparent;
}

/* Card layout - wider rectangle with solid background */
.use-case-card {
  display: block;
  position: relative;
  max-width: 700px;
  margin: 0 auto;
  padding: var(--spacing-2xl) var(--spacing-3xl);
  background: #fffefd;
  border-radius: var(--radius-2xl);
  box-shadow: var(--shadow-lg);
  z-index: 1;
}

/* Position bees relative to the card */
.use-case-card-mascot {
  position: absolute;
  z-index: 2;
}

/* Left bee - bottom left, peeking from outside the card edge */
.use-case-card-mascot.mascot-left {
  left: -187px;
  bottom: 20px;
  top: auto;
}

/* Right bee - top right, overlapping card edge */
.use-case-card-mascot.mascot-right {
  right: -120px;
  top: -35px;
  bottom: auto;
}

/* Flip right bee (happy bee) to face the card */
.use-case-card-mascot.mascot-right img {
  transform: scaleX(-1);
}

/* Left bee faces right (toward card) - no flip needed */
.use-case-card-mascot.mascot-left img {
  transform: none;
}

/* Larger bee mascots */
.use-case-card-mascot img,
.use-case-card-mascot svg {
  width: 260px;
  height: 260px;
}

/* Bold heading-style labels */
.painpoint-label,
.solution-label {
  font-size: var(--font-size-2xl);
  text-transform: none;
  letter-spacing: normal;
  margin-bottom: var(--spacing-sm);
}

/* Warm amber color for painpoint text (instead of purple) */
.painpoint-label,
.painpoint-text {
  color: #444444;
}

/* Tablet size */
@media (max-width: 1024px) {
  .use-case-card {
    max-width: 500px;
    padding: var(--spacing-xl) var(--spacing-2xl);
  }

  .use-case-card-mascot.mascot-left {
    left: -120px;
    bottom: -30px;
  }

  .use-case-card-mascot.mascot-right {
    right: -80px;
    top: -10px;
  }

  .use-case-card-mascot img,
  .use-case-card-mascot svg {
    width: 180px;
    height: 180px;
  }
}

/* Mobile size */
@media (max-width: 768px) {
  .use-case-card {
    max-width: 100%;
    padding: var(--spacing-xl) var(--spacing-md);
  }

  .use-case-card-mascot {
    position: relative;
    left: auto;
    right: auto;
    top: auto;
    bottom: auto;
    display: flex;
    justify-content: center;
    margin-bottom: var(--spacing-md);
  }

  .use-case-card-mascot.mascot-left {
    left: auto;
    bottom: auto;
  }

  .use-case-card-mascot.mascot-right {
    display: none;
  }

  .use-case-card-mascot img,
  .use-case-card-mascot svg {
    width: 140px;
    height: 140px;
  }
}
