/* AI hallucinations page: pillar cards in the hero, step sub-notes, testimonial grid, blog post cards */
.aih-pillars { margin-top: 88px; text-align: left; }

/* steps: sub-heading and a bordered note under each step */
.feature h4.aih-sub { margin-top: 22px; font-size: 18px; font-weight: 600; letter-spacing: -0.015em; color: var(--fg); }
.feature h4.aih-sub + p { margin-top: 10px; }
.aih-note { margin-top: 24px; padding-left: 18px; border-left: 1px solid rgba(19,233,137,.4); }
.aih-note h4 { font-family: var(--mono); font-size: 12.5px; font-weight: 500; color: var(--accent); }
.feature .aih-note p { margin-top: 8px; font-size: 15.5px; }

/* testimonials */
.aih-tms { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.aih-tm { display: flex; flex-direction: column; padding: 32px; margin: 0; }
.aih-tm-logo { display: block; height: 44px; width: auto; max-width: 160px; margin: -6px 0 22px -4px; object-fit: contain; object-position: left center; filter: grayscale(1) var(--silhouette); opacity: .9; }
.aih-tm blockquote { flex: 1; font-size: 16.5px; line-height: 1.55; letter-spacing: -0.01em; font-weight: 500; }
.aih-tm figcaption { margin-top: 22px; font-size: 14px; color: var(--fg-2); }
.aih-tm figcaption b { display: block; color: var(--fg); font-weight: 500; }
.aih-tm-stats { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; margin-top: 24px; padding-top: 22px; border-top: 1px solid var(--line-2); }
.aih-tm-stats b { display: block; font-size: 28px; line-height: 1; font-weight: 600; letter-spacing: -0.04em; color: var(--accent); }
.aih-tm-stats span { display: block; margin-top: 8px; font-size: 13.5px; line-height: 1.45; color: var(--fg-2); }
.aih-tm .link { margin-top: 22px; font-size: 14.5px; }

/* related articles */
.aih-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.aih-post { display: flex; flex-direction: column; overflow: hidden; padding: 0; }
.aih-post-img { display: block; aspect-ratio: 1024 / 536; overflow: hidden; border-bottom: 1px solid var(--line-2); background: var(--bg-1); }
.aih-post-img img { display: block; width: 100%; height: 100%; object-fit: cover; }
.aih-post-body { display: flex; flex-direction: column; flex: 1; padding: 26px 28px 28px; }
.aih-post-tag { font-family: var(--mono); font-size: 12.5px; color: var(--accent); }
.aih-post h3 { margin-top: 14px; font-size: 19px; line-height: 1.3; font-weight: 600; letter-spacing: -0.02em; }
.aih-post p { flex: 1; margin-top: 12px; font-size: 14.5px; line-height: 1.6; color: var(--fg-2); }
.aih-post-meta { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 22px; font-size: 13.5px; color: var(--fg-3); }
.aih-post-meta .link { font-size: 14px; }

/* final CTA stats: the number leads */
.aih-facts span { font-family: inherit; font-size: clamp(32px, 3.4vw, 42px); line-height: 1; font-weight: 600; letter-spacing: -0.04em; text-transform: none; color: var(--accent); }
.aih-facts b { margin-top: 10px; color: var(--fg-2); }

@media (max-width: 1120px) {
  .aih-tm { padding: 28px; }
}
@media (max-width: 960px) {
  .aih-tms { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .aih-tm:last-child:nth-child(odd) { grid-column: 1 / -1; }
  .aih-pillars { margin-top: 64px; }
  .aih-posts { grid-template-columns: minmax(0, 1fr); max-width: 560px; margin: 0 auto; }
}
@media (max-width: 640px) {
  /* nine cards would stack into a very long column: swipe through them instead */
  .aih-tms { display: flex; gap: 14px; overflow-x: auto; scroll-snap-type: x mandatory; margin: 0 -24px; padding: 0 24px 12px; scroll-padding: 0 24px; scrollbar-width: none; align-items: flex-start; }
  .aih-tms::-webkit-scrollbar { display: none; }
  .aih-tm { flex: 0 0 86%; scroll-snap-align: start; }
}
@media (max-width: 560px) {
  .aih-pillars { margin-top: 48px; }
  .aih-tms { margin: 0 -20px; padding: 0 20px 12px; scroll-padding: 0 20px; }
  .aih-tm { padding: 26px; }
  .aih-post-body { padding: 22px; }
}

/* Light skin: small green text uses --mint (≥4.5:1 on the light surfaces); --accent stays for dots, fills,
   borders and large numbers. Light only, so the dark skin is unchanged. */
:root[data-theme="light"] .aih-note h4,
:root[data-theme="light"] .aih-post-tag,
:root[data-theme="light"] /* final CTA stats: the number leads */
.aih-facts span { color: var(--mint); }
