/* AI Integrated System — page-only styles */

/* ask demo */
.ask-question {
  padding: 11px 14px;
  border: 1px solid var(--border-strong); border-radius: 8px;
  background: var(--bg);
  font-family: var(--font-mono); font-size: 12.5px; line-height: 1.5; color: var(--fg);
}
.ask-answer { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--accent); border-radius: 10px; background: color-mix(in oklch, var(--accent-surface) 70%, var(--surface)); }
.ask-answer.is-swapping { animation: askIn 0.25s ease; }
@keyframes askIn { from { opacity: 0.35; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.ask-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; }
.ask-title { font-family: var(--font-display); font-size: 16px; font-weight: 600; line-height: 1.3; }
.ask-lines { display: grid; gap: 4px; font-size: 12.5px; line-height: 1.55; color: var(--fg); }
.ask-lines b { color: var(--accent-strong); font-weight: 600; }
.ask-table-wrap { overflow-x: auto; }
.ask-table { width: 100%; border-collapse: collapse; font-size: 12px; }
.ask-table th { padding: 4px 8px; text-align: left; font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); border-bottom: 1px solid var(--border); }
.ask-table td { padding: 5px 8px; border-bottom: 1px solid var(--border); font-variant-numeric: tabular-nums; }
.ask-table tr:last-child td { border-bottom: 0; }
.ask-table td.num { text-align: right; white-space: nowrap; }
.ask-table .neg { color: var(--danger); }
.ask-src { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; font-size: 11.5px; color: var(--muted); }
.ask-src code { font-family: var(--font-mono); font-size: 10.5px; letter-spacing: 0.04em; padding: 2px 7px; border: 1px solid var(--border); border-radius: 999px; color: var(--muted); }
.ask-mode { white-space: nowrap; }

/* before / after */
.ba { display: grid; gap: 16px; padding: clamp(18px, 2.6vw, 28px); }
.ba-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; }
.ba-panel { display: none; gap: 14px; }
.ba-panel.active { display: grid; animation: askIn 0.25s ease; }
.ba-steps { display: grid; gap: 0; }
.ba-step { display: grid; grid-template-columns: 26px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 12px 0; border-top: 1px solid var(--border); }
.ba-step:first-child { border-top: 0; }
.ba-step .n { display: grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--border-strong); font-family: var(--font-mono); font-size: 11px; color: var(--muted); }
.ba-step b { display: block; font-size: 14px; font-weight: 600; }
.ba-step p { margin-top: 2px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.ba-step .t { font-family: var(--font-mono); font-size: 12px; color: var(--muted); white-space: nowrap; padding-top: 2px; }
.ba-total { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; padding: 14px 16px; border: 1px solid var(--border); border-radius: 8px; background: var(--bg); font-size: 14px; }
.ba-total b { font-family: var(--font-display); font-size: 22px; font-weight: 600; }
.ba-total b.ok { color: var(--success-text); }
