/* Homepage AI entry: product functions and direct routes. */
.ai-section {
  color: #202923;
  background: #f4f7f3;
}

.home-ai-heading {
  max-width: 720px;
  margin-bottom: clamp(36px, 5vw, 58px);
}

.home-ai-heading .eyebrow { color: #287442; }
.home-ai-heading .section-title { margin: 13px 0 14px; color: #202923; }
.home-ai-heading > p { margin: 0; color: #59675d; font-size: 1.08rem; }

.home-ai-agent {
  display: grid;
  overflow: hidden;
  grid-template-columns: minmax(280px, .82fr) minmax(440px, 1.18fr);
  align-items: stretch;
  background: #fff;
  border: 1px solid #dce4dd;
  border-radius: 18px;
}

.home-ai-agent-copy { padding: clamp(30px, 4vw, 56px); }
.home-ai-agent h3, .home-ai-lower h3 { margin: 0; color: #202923; font-size: clamp(1.45rem, 2.6vw, 2rem); letter-spacing: -.03em; line-height: 1.2; }
.home-ai-agent-copy > p, .home-ai-lower > article > p { margin: 16px 0 0; color: #59675d; }
.home-ai-actions { display: flex; margin-top: 27px; flex-wrap: wrap; align-items: center; gap: 8px 20px; }
.home-ai-actions .text-link { color: #287442; }

.home-ai-product-shot { position: relative; min-height: 290px; margin: 0; padding: 20px 20px 0; overflow: hidden; background: #18251d; }
.home-ai-product-shot img { display: block; width: 100%; height: 100%; min-height: 290px; object-fit: cover; object-position: center top; border: 1px solid rgba(255,255,255,.16); border-bottom: 0; border-radius: 12px 12px 0 0; }
.home-ai-product-shot figcaption { position: absolute; right: 30px; bottom: 14px; padding: 3px 7px; color: #fff; background: rgba(0,0,0,.58); border-radius: 4px; font-size: .875rem; }

.home-ai-lower { display: grid; margin-top: 24px; grid-template-columns: 1.35fr .65fr; gap: 24px; }
.home-ai-capture { display: flex; padding: clamp(28px, 4vw, 46px); flex-direction: column; justify-content: space-between; background: #e8f1e9; border-left: 4px solid #287442; }
.home-ai-import { padding: clamp(28px, 3vw, 42px); background: #fff; border: 1px solid #dce4dd; }
.home-ai-import h3 { font-size: clamp(1.25rem, 2vw, 1.55rem); }
.home-ai-link-list { display: flex; margin-top: 22px; flex-wrap: wrap; gap: 8px 18px; }
.home-ai-link-list a { color: #287442; font-size: .9rem; font-weight: 680; }
.home-ai-note { margin: 28px 0 0; padding-top: 16px; color: #59675d; border-top: 1px solid #cad9cb; font-size: 1rem; }
.home-ai-import .text-link { margin-top: 20px; color: #287442; }
.home-ai-import code { font-family: "SFMono-Regular", Consolas, monospace; font-size: .9em; }

@media (max-width: 900px) {
  .home-ai-agent, .home-ai-lower { grid-template-columns: 1fr; }
  .home-ai-product-shot { min-height: 0; }
  .home-ai-product-shot img { min-height: 0; aspect-ratio: 1.53; }
}

@media (max-width: 680px) {
  .home-ai-heading > p { font-size: 1rem; }
  .home-ai-agent { border-radius: 14px; }
  .home-ai-agent-copy, .home-ai-capture, .home-ai-import { padding: 28px 22px; }
  .home-ai-product-shot { padding: 12px 12px 0; }
  .home-ai-product-shot figcaption { right: 20px; bottom: 8px; font-size: .875rem; }
  .home-ai-lower { gap: 16px; margin-top: 16px; }
}

@media (prefers-color-scheme: dark) {
  .ai-section { color: #eef3ef; background: #172119; }
  .home-ai-heading .eyebrow, .home-ai-actions .text-link, .home-ai-link-list a, .home-ai-import .text-link { color: #8ee1aa; }
  .home-ai-heading .section-title, .home-ai-agent h3, .home-ai-lower h3 { color: #eef3ef; }
  .home-ai-heading > p, .home-ai-agent-copy > p, .home-ai-lower > article > p, .home-ai-note { color: #bdcbbf; }
  .home-ai-agent, .home-ai-import { background: #202923; border-color: #3b4a3e; }
  .home-ai-capture { background: #203126; border-color: #77d69c; }
  .home-ai-note { border-color: #425544; }
}
