/* ==========================================================================
   Wize AI Agent page (Version 4): page-wide pieces used by several sections.
   Template: templates/rc-v4-wize-ai-agent.php. Design: src/creative/AiAgentPage.jsx + aiAgent.css (reve-chat-website).
   Site-wide tokens, container, .rc-btn and the reveal come from css/rc-v4-base.css; this file only adds what the
   Wize AI Agent sections share: tokens, section shell + centred heading, buttons, chat bubbles, outcome pill.
   ========================================================================== */

.rc-wize {
  --rc-font: 'Manrope', 'Google Sans', system-ui, -apple-system, 'Segoe UI', sans-serif; /* headings + UI, like the homepage */
  --rc-font-text: var(--rc-font); /* descriptions too (the design's "type update") */
  --rc-wize-violet: #5b3fd0;
  --rc-wize-deep: #412375;
  --rc-wize-soft: #f2efff;
  --rc-wize-lavender: #f8f7fd;
  --rc-wize-line: rgba(20, 18, 31, 0.1);
  --rc-wize-muted: #67637a;
  --rc-wize-dark: #0d0b17;      /* voice + control sections */
  --rc-wize-ui-line: #e6eaed;   /* simplified product UI (setup mocks) */
  --rc-wize-ui-blue: #004fff;
  --rc-wize-ok: #18a326;
  --rc-wize-ok-ink: #127a1e;
  --rc-wize-ok-bg: #e8f6e9;
  background: #fff;
  overflow-x: clip;
}
/* descriptions use --rc-font-text (Manrope) */
.rc-wize :where(p, small, dd) { font-family: var(--rc-font-text); }
.rc-wize :where(small) { font-size: inherit; }

/* ---------- section shell: 64 / 56 (<=1000) / 44 (<=700) ---------- */
.rc-wize .rc-wize-section { position: relative; padding: 64px 0; color: var(--rc-ink); }
.rc-wize .rc-wize-section-lavender { background: var(--rc-wize-lavender); }
.rc-wize .rc-wize-section-white { background: #fff; }
.rc-wize .rc-wize-section-dark { background: var(--rc-wize-dark); color: #fff; }
@media (max-width: 1000px) { .rc-wize .rc-wize-section { padding: 56px 0; } }
@media (max-width: 700px) { .rc-wize .rc-wize-section { padding: 44px 0; } }

/* ---------- centred section heading (rc-section-head / -title / -subtitle + rc-wize-head) ---------- */
.rc-wize .rc-wize-head { align-items: center; gap: 12px; max-width: none; margin-bottom: 40px; text-align: center; }
.rc-wize .rc-wize-head .rc-section-title {
  width: 100%; max-width: 700px; /* title and description share one 700px column */
  margin-inline: auto;
  font-size: 40px; font-weight: 600; line-height: 1.1; letter-spacing: -0.02em;
  color: inherit; text-wrap: balance;
}
.rc-wize .rc-wize-head .rc-section-title em { font-size: 1.08em; font-weight: 400; color: var(--rc-wize-violet); }
.rc-wize .rc-wize-head .rc-section-subtitle {
  width: 100%; max-width: 700px; margin-inline: auto;
  font-size: 18px; line-height: 1.55; color: var(--rc-ink-2); text-wrap: pretty;
}
.rc-wize .rc-wize-section-dark .rc-wize-head .rc-section-title em { color: var(--rc-violet-light); }
.rc-wize .rc-wize-section-dark .rc-wize-head .rc-section-subtitle { color: rgba(255, 255, 255, 0.72); }
@media (max-width: 860px) {
  .rc-wize .rc-wize-head .rc-section-title { font-size: 32px; line-height: 1.08; letter-spacing: -0.022em; }
}
@media (max-width: 700px) {
  .rc-wize .rc-wize-head { margin-bottom: 28px; }
  .rc-wize .rc-wize-head .rc-section-title { font-size: 30px; }
  .rc-wize .rc-wize-head .rc-section-subtitle { font-size: 16.5px; }
}

/* ---------- buttons (on top of .rc-btn .rc-btn-lg) ---------- */
.rc-wize .rc-wize-cta { gap: 12px; }
.rc-wize .rc-wize-cta-center { justify-content: center; margin-top: 40px; }
.rc-wize .rc-wize-btn { font-family: var(--rc-font); font-weight: 500; line-height: 1.55; transition: transform 0.2s var(--rc-ease), background-color 0.2s, border-color 0.2s, filter 0.2s; }
.rc-wize .rc-wize-btn.rc-btn-primary:hover { filter: brightness(1.12); transform: translateY(-1px); box-shadow: 0 10px 24px -12px rgba(65, 35, 117, 0.7); }
.rc-wize .rc-wize-btn-light { color: var(--rc-ink); background: #fff; }
.rc-wize .rc-wize-btn-light:hover { color: var(--rc-ink); background: #efe9ff; transform: translateY(-1px); }
.rc-wize .rc-wize-btn-ghost { color: #fff; background: transparent; border-color: rgba(255, 255, 255, 0.28); }
.rc-wize .rc-wize-btn-ghost:hover { color: #fff; border-color: rgba(255, 255, 255, 0.6); background: rgba(255, 255, 255, 0.06); }
@media (max-width: 700px) {
  .rc-wize .rc-wize-btn { height: 48px; padding: 0 22px; font-size: 15.5px; }
  .rc-wize .rc-wize-cta { width: 100%; }
  .rc-wize .rc-wize-cta .rc-wize-btn { flex: 1 1 auto; }
}

/* ---------- text link with arrow ---------- */
.rc-wize .rc-wize-link {
  display: inline-flex; align-items: center; gap: 6px; padding-bottom: 2px;
  border-bottom: 1px solid currentColor; font-family: inherit; font-size: 15px; font-weight: 500; color: var(--rc-wize-violet);
  transition: gap 0.2s var(--rc-ease);
}
.rc-wize .rc-wize-link:hover { gap: 10px; color: var(--rc-wize-violet); }
/* touch targets on phones and tablets (the design's mobile pass) */
@media (max-width: 860px) { .rc-wize .rc-wize-section .rc-wize-link { min-height: 44px; padding-block: 10px; } }

/* ---------- status dot in card bars (hero run card, explorer) ---------- */
.rc-wize .rc-wize-dot { display: inline-block; flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--rc-wize-ok); }
.rc-wize .rc-wize-dot-violet { background: var(--rc-wize-violet); }

/* ---------- chat bubbles (flow, explorer, setup preview, control) ---------- */
.rc-wize .rc-wize-bubble {
  margin: 0; max-width: 84%; padding: 10px 14px;
  font-family: var(--rc-font-text); font-size: 14.5px; line-height: 1.45;
  animation: rc-wize-pop 0.3s ease both;
}
.rc-wize .rc-wize-bubble-customer { align-self: flex-end; border-radius: 16px 16px 4px 16px; background: var(--rc-ink); color: #fff; }
.rc-wize .rc-wize-bubble-agent { align-self: flex-start; border-radius: 16px 16px 16px 4px; background: #f0f1f5; color: var(--rc-ink); }

/* ---------- outcome pill (flow, explorer) ---------- */
.rc-wize .rc-wize-outcome {
  display: inline-flex; align-items: center; gap: 8px; align-self: flex-start;
  margin: 0 18px 18px; padding: 9px 15px; border-radius: 999px;
  background: var(--rc-wize-ok-bg); color: var(--rc-wize-ok-ink); font-size: 14px; font-weight: 500;
  opacity: 0; transform: translateY(6px); transition: opacity 0.35s, transform 0.35s;
}
.rc-wize .rc-wize-outcome svg { flex: none; }
.rc-wize .rc-wize-outcome.is-on { opacity: 1; transform: none; }

/* ---------- small print under a demo ---------- */
.rc-wize .rc-wize-note { margin-top: 18px; font-family: var(--rc-font-text); font-size: 13px; color: var(--rc-wize-muted); text-align: center; }

@keyframes rc-wize-in { from { opacity: 0; } to { opacity: 1; } }
@keyframes rc-wize-pop { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes rc-wize-spin { to { transform: rotate(360deg); } }
@keyframes rc-wize-pulse { 50% { opacity: 0.25; transform: scale(0.7); } }

@media (prefers-reduced-motion: reduce) {
  .rc-wize *, .rc-wize *::before, .rc-wize *::after { animation: none !important; transition-duration: 0.01ms !important; }
}
