/* "Ask AI about atheal" footer row. Markup is generated by
   scripts/generate-ask-ai.mjs; it inherits each footer's text colour so the
   same block fits the light and dark footers. Logical properties keep RTL.
   Rules are scoped under .ask-ai to outrank footer rules like `.join-footer ul`. */
.ask-ai {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 16px;
  margin-block: 24px;
}
.ask-ai .ask-ai-label {
  margin: 0;
  color: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.85;
}
.ask-ai .ask-ai-list {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.ask-ai .ask-ai-list li { margin: 0; padding: 0; }
.ask-ai .ask-ai-list li::before { content: none; }
.ask-ai .ask-ai-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  inline-size: 36px;
  block-size: 36px;
  border: 1px solid color-mix(in srgb, currentColor 20%, transparent);
  border-radius: 999px;
  color: inherit;
  opacity: 0.8;
  text-decoration: none;
  transition: opacity 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}
.ask-ai .ask-ai-link:hover,
.ask-ai .ask-ai-link:focus-visible {
  opacity: 1;
  background-color: color-mix(in srgb, currentColor 8%, transparent);
  border-color: color-mix(in srgb, currentColor 40%, transparent);
}
.ask-ai .ask-ai-link:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.ask-ai-link svg { inline-size: 16px; block-size: 16px; fill: currentColor; }

/* Stacked footers: centred on testimonials, start-aligned on the gift page */
.foot .ask-ai { flex-direction: column; }
.footer__inner .ask-ai { flex-direction: column; align-items: flex-start; }
/* Sample plan mutes its footer text already; don't compound the fade */
.plan-footer .ask-ai { color: #f7f7f2; }

@media (prefers-reduced-motion: reduce) {
  .ask-ai .ask-ai-link { transition: none; }
}
