/* 「不会配？让你自己的 AI 来」: in the install chapter, a console 「?」 card whose prompt goes to the
   person's own AI client, which does the setup. On the dark install band; the cards are light. */

.ai-setup { max-width: 1080px; margin-top: clamp(56px, 9vh, 104px); }
.ai-setup h3 { margin: 0; color: #fff; font-size: clamp(22px, 2.4vw, 30px); font-weight: 650; line-height: 1.3; letter-spacing: -.02em; }
.ai-setup > p { max-width: 640px; margin: 12px 0 0; color: #b9c8c2; }

.ai-setup-flow { display: grid; grid-template-columns: minmax(0, 1fr) 56px minmax(0, 1.15fr); align-items: center; margin-top: 28px; }

.ai-help-card { margin: 0; padding: 18px 20px 20px; border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: 0 24px 60px rgb(0 0 0 / 22%); }
.ai-help-head { display: flex; align-items: center; gap: 10px; }
.ai-help-q { display: grid; place-items: center; width: 22px; height: 22px; border: 1.5px solid var(--jade); border-radius: 50%; color: var(--jade); font-size: 13px; font-weight: 700; line-height: 1; user-select: none; }
.ai-help-head b { font-size: 16px; }
.ai-help-head .growth-badge { margin-left: auto; }
.ai-help-card > p { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
.ai-help-prompt { position: relative; margin-top: 14px; padding: 12px 14px; border: 1px solid var(--jade-line); border-radius: 10px; background: var(--jade-soft); }
.ai-help-prompt > span:first-child { color: var(--jade); font-size: 12px; font-weight: 600; }
.ai-help-prompt q { display: block; margin-top: 4px; color: var(--ink); font-size: 14px; line-height: 1.65; quotes: none; }
.ai-help-copied { position: absolute; top: 10px; right: 12px; padding: 1px 9px; border-radius: 999px; background: var(--jade); color: #fff; font-size: 12px; line-height: 1.6; user-select: none; }

/* The prompt travels from the card to the client. */
.ai-setup-arrow { position: relative; height: 2px; margin: 0 10px; background: #3b5a4f; }
.ai-setup-arrow::after { content: ""; position: absolute; right: -1px; top: 50%; width: 9px; height: 9px; border-top: 2px solid #8bc1a8; border-right: 2px solid #8bc1a8; translate: 0 -50%; rotate: 45deg; }
.ai-setup-arrow::before { content: ""; position: absolute; left: 0; top: 50%; width: 8px; height: 8px; margin-top: -4px; border-radius: 50%; background: #8bc1a8; opacity: 0; }
@media (prefers-reduced-motion: no-preference) {
  .ai-setup-arrow::before { animation: ai-setup-travel 2.6s ease-in-out infinite; }
}
@keyframes ai-setup-travel {
  0% { opacity: 0; transform: translateX(0); }
  20% { opacity: 1; }
  70% { opacity: 1; transform: translateX(26px); }
  100% { opacity: 0; transform: translateX(26px); }
}

.ai-setup-chat { margin: 0; color: var(--ink); }
.ai-setup-chat .window-body { font-size: 14px; }

.ai-setup-control { margin: 26px 0 0; color: #e9f1ee; font-weight: 500; }
.ai-setup-soon { margin: 10px 0 0; color: #8fa39b; font-size: 14px; }
.ai-setup-soon .growth-badge { display: inline-block; margin-right: 10px; }

@media (max-width: 860px) {
  .ai-setup-flow { grid-template-columns: minmax(0, 1fr); }
  .ai-setup-arrow { justify-self: center; width: 2px; height: 36px; margin: 8px 0; }
  .ai-setup-arrow::after { right: auto; left: 50%; top: auto; bottom: -1px; translate: -50% 0; rotate: 135deg; }
  .ai-setup-arrow::before { left: 50%; top: 0; margin: 0 0 0 -4px; }
  @keyframes ai-setup-travel {
    0% { opacity: 0; transform: translateY(0); }
    20% { opacity: 1; }
    70% { opacity: 1; transform: translateY(22px); }
    100% { opacity: 0; transform: translateY(22px); }
  }
}
